!function(e,t){“object”==typeof exports&&“object”==typeof module?module.exports=t():“function”==typeof define&&define.amd?define([],t):“object”==typeof exports?exports.aladin=t():e.aladin=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.AladinError=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.ALADIN_HANDLER="aladin",t.ALADIN_STORAGE_LABEL="aladin",t.DEFAULT_ALADIN_HOST="http://13.58.89.243/auth",t.DEFAULT_SCOPE=["store_write"],t.ALADIN_APP_PRIVATE_KEY_LABEL="aladin-transit-private-key",t.ALADIN_DEFAULT_GAIA_HUB_URL="https://finalgaia.aladinnetwork.org",t.DEFAULT_CORE_NODE="https://core.aladin.org",t.NAME_LOOKUP_PATH="/v1/names",t.LOCALSTORAGE_SESSION_KEY="aladin-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(`aladin.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(`aladin.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,aladinAPIUrl:y,associationToken:m,version:l}):u.Logger.info(”aladin.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_ALADIN_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.aladinAPIUrl=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.aladinAPIUrl}/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.aladinAPIUrl}/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.aladinAPIUrl}/v1/addresses/bitcoin/${t}`).then(e=>e.json()).then(e=>e.names)}getNamespaceBurnAddress(e){return Promise.all([fetch(`${this.aladinAPIUrl}/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.aladinAPIUrl);const t=`${this.aladinAPIUrl}/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.aladinAPIUrl}/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.aladinAPIUrl}/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.aladinAPIUrl}/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.aladinAPIUrl}/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.aladinAPIUrl}/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.aladinAPIUrl}/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.aladinAPIUrl}/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.aladinAPIUrl}/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.aladinAPIUrl}/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.AladinNetwork=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:“aladin”,password:“aladinsystem”})),w=new b(“https://core.aladin.org”,“https://broadcast.aladin.org”,new v);t.network={AladinNetwork: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_ALADIN_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 aladin.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 aladin.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 aladin.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.aladinAPIUrl&&void 0!==r.aladinAPIUrl&&(y.Logger.info(`Overriding ${b.config.network.aladinAPIUrl} `+`with ${r.aladinAPIUrl}`),b.config.network.aladinAPIUrl=r.aladinAPIUrl),e=`${b.config.network.aladinAPIUrl}${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.ALADIN_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.ALADIN_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.ALADIN_GAIA_HUB_LABEL=i.ALADIN_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]&&“aladin_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.ALADIN_GAIA_HUB_LABEL=“aladin-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 Aladin 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 aladin id`,`verifying that ${t} is my aladin id`,`verifying that "${t}" is my aladin id`]:[`verifying that "${t}" is my aladin id`,`verifying that ${t} is my aladin id`,`verifying that "${t}" is my aladin 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.AladinNamespace=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“: ”this.message“ (code ”this.code“)]”},i},o=function(e,t){return t[n.trace]=e[n.trace],t},t.make_errors=function(e){var t,r,n,o,a,u;for(n in a={msg:{},name:{},code:{}},e.OK=“Success”,r=100,e)o=e[n],“OK”!==n?(u=r++,a[t=i(n)+“Error”]=s(t,u,o)):u=0,a[n]=u,a.msg[n]=a.msg[u]=o,a.name[n]=a.name[u]=n,a.code[n]=u;return a},a=function(e,t){if(null!=t)return null==e.istack&&(e.istack=[]),e.istack.push(t)},t.make_esc=u=function(e,t){var r;return null==t&&(t=null!=(r=u.caller)?r.name:void 0),function®{return o(r,function(){var n,i;return i=arguments[0],n=2<=arguments.length?l.call(arguments,1):[],null==i?r.apply(null,n):e.__esc?void 0:(e.__esc=!0,a(i,null!=t?t:"unnamed error"),e(i))})}},t.EscOk=function(){function e(e,t){this.gcb=e,this.where=t}return e.prototype.bailout=function(){var e;if(this.gcb)return e=this.gcb,this.gcb=null,e(!1)},e.prototype.check_ok=function(e){return o(e,(t=this,function(){var r,n;return n=arguments[0],r=2<=arguments.length?l.call(arguments,1):[],n?e.apply(null,r):t.bailout()}));var t},e.prototype.check_err=function(e){return o(e,(t=this,function(){var r,n;return n=arguments[0],r=2<=arguments.length?l.call(arguments,1):[],null!=n?(a(n,t.where),t.bailout()):e.apply(null,r)}));var t},e.prototype.check_non_null=function(e){return o(e,(t=this,function(){var r;return null==(r=1<=arguments.length?l.call(arguments,0):[])[0]?t.bailout():e.apply(null,r)}));var t},e}(),t.EscErr=function(){function e(e,t){this.gcb=e,this.where=t}return e.prototype.finish=function(e){var t;if(this.gcb)return t=this.gcb,this.gcb=null,t(e)},e.prototype.check_ok=function(e,t,r){return null==t&&(t=Error),null==r&&(r=null),o(e,function(){var n,i,o;return o=arguments[0],n=2<=arguments.length?l.call(arguments,1):[],o?e.apply(null,n):(i=new t(r),a(i,this.where),this.finish(i))})},e.prototype.check_err=function(e){return o(e,function(){var t,r;return r=arguments[0],t=2<=arguments.length?l.call(arguments,1):[],null!=r?(a(r,this.where),this.finish(r)):e.apply(null,t)})},e}(),t.Canceler=function(){function e(e){this.klass=null!=e?e:Error,this._canceled=!1}return e.prototype.is_canceled=function(){return this._canceled},e.prototype.is_ok=function(){return!this._canceled},e.prototype.cancel=function(){return this._canceled=!0},e.prototype.err=function(){return this._canceled?new this.klass("Aborted"):null},e}(),t.chain=function(e,t){return function(){var r;return r=1<=arguments.length?l.call(arguments,0):[],t(function(){return e.apply(null,r)})}},t.chain_err=function(e,t){return function(){var r;return r=1<=arguments.length?l.call(arguments,0):[],t(function(){var t;return t=1<=arguments.length?l.call(arguments,0):[],e.apply(null,null!=t[0]&&null==r[0]?t:r)})}}}).call(this)},function(e,t,r){"use strict";var n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(121));t.default=i,function(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(121))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(123);t.AppConfig=n.AppConfig;var i=r(58);t.makeAuthResponse=i.makeAuthResponse;var o=r(186);t.getAuthRequestFromURL=o.getAuthRequestFromURL,t.fetchAppManifest=o.fetchAppManifest,t.redirectUserToApp=o.redirectUserToApp;var a=r(478);t.makeCoreSessionRequest=a.makeCoreSessionRequest,t.sendCoreSessionRequest=a.sendCoreSessionRequest,t.getCoreSession=a.getCoreSession;var s=r(185);t.verifyAuthRequest=s.verifyAuthRequest,t.verifyAuthResponse=s.verifyAuthResponse,t.isExpirationDateValid=s.isExpirationDateValid,t.isIssuanceDateValid=s.isIssuanceDateValid,t.doPublicKeysMatchUsername=s.doPublicKeysMatchUsername,t.doPublicKeysMatchIssuer=s.doPublicKeysMatchIssuer,t.doSignaturesMatchPublicKeys=s.doSignaturesMatchPublicKeys,t.isManifestUriValid=s.isManifestUriValid,t.isRedirectUriValid=s.isRedirectUriValid,t.verifyAuthRequestAndLoadManifest=s.verifyAuthRequestAndLoadManifest;var u=r(183);t.isUserSignedIn=u.isUserSignedIn,t.redirectToSignIn=u.redirectToSignIn,t.redirectToSignInWithAuthRequest=u.redirectToSignInWithAuthRequest,t.isSignInPending=u.isSignInPending,t.handlePendingSignIn=u.handlePendingSignIn,t.loadUserData=u.loadUserData,t.signUserOut=u.signUserOut;var c=r(58);t.makeAuthRequest=c.makeAuthRequest},function(e,t,r){"use strict";t.byteLength=function(e){var t=c(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){for(var t,r=c(e),n=r[0],a=r[1],s=new o(function(e,t,r){return 3*(t+r)/4-r}(0,n,a)),u=0,f=a>0?n-4:n,l=0;l>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=i[e.charCodeAt(l)]<<2|i[e.charCodeAt(l+1)]>>4,s[u++]=255&t);1===a&&(t=i[e.charCodeAt(l)]<<10|i[e.charCodeAt(l+1)]<<4|i[e.charCodeAt(l+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error(“Invalid string. Length must be a multiple of 4”);var r=e.indexOf(“=”);return-1===r&&(r=t),[r,r===t?0:4-r%4]}function f(e,t,r){for(var i,o,a=[],s=t;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join(“”)}i[“-”.charCodeAt(0)]=62,i[“_”.charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<>1,f=-7,l=r?i-1:0,h=r?-1:1,d=e[t+l];for(l+=h,o=d&(1<<-f)-1,d>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=h,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=h,f-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,f=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(a++,u/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*u-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*b}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),t.TokenSigner=void 0;var n=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t={typ:this.tokenType,alg:this.cryptoClient.algorithmName};return Object.assign({},t,e)}},{key:“sign”,value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.header®,i=c(e,n),o=this.cryptoClient.createHash(i),s=this.cryptoClient.signHash(o,this.rawPrivateKey);return t?{header:[a.default.encode(JSON.stringify(n))],payload:JSON.stringify(e),signature:[s]}:[i,s].join(“.”)}}]),e}();t.TokenSigner=f},function(e,t,r){“use strict”;(function(e){Object.defineProperty(t,“__esModule”,{value:!0});var n=r(224);function i(t,r){return void 0===r&&(r=“utf8”),e.isBuffer(t)?a(t.toString(“base64”)):a(e.from(t,r).toString(“base64”))}function o(e){return e=e.toString(),n.default(e).replace(/-/g,“+”).replace(/_/g,“/”)}function a(e){return e.replace(/=/g,“”).replace(/+/g,“-”).replace(///g,“_”)}var s=i;s.encode=i,s.decode=function(t,r){return void 0===r&&(r=“utf8”),e.from(o(t),“base64”).toString®},s.toBase64=o,s.fromBase64=a,s.toBuffer=function(t){return e.from(o(t),“base64”)},t.default=s}).call(this,r(1).Buffer)},function(e,t,r){“use strict”;(function(e){Object.defineProperty(t,“__esModule”,{value:!0}),t.default=function(t){var r=t.length,n=r%4;if(!n)return t;var i=r,o=4-n,a=r+o,s=e.alloc(a);for(s.write(t);o–;)s.write(“=”,i++);return s.toString()}}).call(this,r(1).Buffer)},function(e,t,r){“use strict”;(function(e){Object.defineProperty(t,“__esModule”,{value:!0}),t.SECP256K1Client=void 0;var n,i=function(){function e(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:“jose”;if(!r||!n)throw new l.MissingParametersError(“a signing input hash and private key are all required”);var o=t.loadPrivateKey(n).sign®,a=e.from(o.toDER());if(“der”===i)return a.toString(“hex”);if(“jose”===i)return(0,f.derToJose)(a,“ES256”);throw Error(“Invalid signature format”)}},{key:“loadSignature”,value:function(e){return(0,f.joseToDer)(e,“ES256”)}},{key:“verifyHash”,value:function(e,r,n){if(!(e&&r&&n))throw new l.MissingParametersError(“a signing input hash, der signature, and public key are all required”);return t.loadPublicKey(n).verify(e,r)}}]),t}();h.algorithmName=“ES256K”,h.ec=new o.ec(“secp256k1”),h.keyEncoder=new u.default({curveParameters:[1,3,132,0,10],privatePEMOptions:{label:“EC PRIVATE KEY”},publicPEMOptions:{label:“PUBLIC KEY”},curve:h.ec})}).call(this,r(1).Buffer)},function(e){e.exports={_args:[[“elliptic@6.4.1”,“/Users/Yukan/Desktop/work/aladin/aladin.js”]],_from:“elliptic@6.4.1”,_id:“elliptic@6.4.1”,_inBundle:!1,_integrity:“sha512-BsXLz5sqX8OHcsh7CqBMztyXARmGQ3LWPtGjJi6DiJHq5C/qvi9P3OqgswKSDftbu8+IoI/QDTAm2fFnQ9SZSQ==”,_location:“/elliptic”,_phantomChildren:{},_requested:{type:“version”,registry:!0,raw:“elliptic@6.4.1”,name:“elliptic”,escapedName:“elliptic”,rawSpec:“6.4.1”,saveSpec:null,fetchSpec:“6.4.1”},_requiredBy:[“/”,“/browserify-sign”,“/create-ecdh”,“/jsontokens”,“/key-encoder”,“/tiny-secp256k1”],_resolved:“https://registry.npmjs.org/elliptic/-/elliptic-6.4.1.tgz”,_spec:“6.4.1”,_where:“/Users/Yukan/Desktop/work/aladin/aladin.js”,author:{name:“Fedor Indutny”,email:“fedor@indutny.com”},bugs:{url:“https://github.com/indutny/elliptic/issues”},dependencies:{“bn.js”:“^4.4.0”,brorand:“^1.0.1”,“hash.js”:“^1.0.0”,“hmac-drbg”:“^1.0.0”,inherits:“^2.0.1”,“minimalistic-assert”:“^1.0.0”,“minimalistic-crypto-utils”:“^1.0.0”},description:“EC cryptography”,devDependencies:{brfs:“^1.4.3”,coveralls:“^2.11.3”,grunt:“^0.4.5”,“grunt-browserify”:“^5.0.0”,“grunt-cli”:“^1.2.0”,“grunt-contrib-connect”:“^1.0.0”,“grunt-contrib-copy”:“^1.0.0”,“grunt-contrib-uglify”:“^1.0.1”,“grunt-mocha-istanbul”:“^3.0.1”,“grunt-saucelabs”:“^8.6.2”,istanbul:“^0.4.2”,jscs:“^2.9.0”,jshint:“^2.6.0”,mocha:“^2.1.0”},files:[“lib”],homepage:“https://github.com/indutny/elliptic”,keywords:[“EC”,“Elliptic”,“curve”,“Cryptography”],license:“MIT”,main:“lib/elliptic.js”,name:“elliptic”,repository:{type:“git”,url:“git+ssh://git@github.com/indutny/elliptic.git”},scripts:{jscs:“jscs benchmarks/*.js lib/*.js lib/*/.js lib///*.js test/index.js”,jshint:“jscs benchmarks/*.js lib/*.js lib/*/.js lib///*.js test/index.js”,lint:“npm run jscs && npm run jshint”,test:“npm run lint && npm run unit”,unit:“istanbul test _mocha –reporter=spec test/index.js”,version:“grunt dist && git add dist/”},version:“6.4.1”}},function(e,t,r){“use strict”;var n=t,i=r(4),o=r(11),a=r(125);n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t){for(var r=[],n=1<=0;){var o;if(i.isOdd()){var a=i.andln(n-1);o=a>(n>>1)-1?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,a,s,u=e.andln(3)+n&3,c=t.andln(3)+i&3;3===u&&(u=-1),3===c&&(c=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==c?u:-u,r[0].push(o),a=0==(1&c)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?c:-c,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n=“_”+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return“string”==typeof e?n.toArray(e,“hex”):e},n.intFromLE=function(e){return new i(e,“hex”,“le”)}},function(e,t){},function(e,t){},function(e,t,r){“use strict”;var n=r(4),i=r(9).utils,o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error(“Not implemented”)},u.prototype.validate=function(){throw new Error(“Not implemented”)},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<=u;t–)c=(c<<1)+n[t];a.push(c)}for(var f=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=i;h>0;h–){for(u=0;u=0;c–){for(t=0;c>=0&&0===a[c];c–)t++;if(c>=0&&t++,u=u.dblp(t),c<0)break;var f=a[c];s(0!==f),u="affine"===e.type?f>0?u.mixedAdd(i[f-1>>1]):u.mixedAdd(i[-f-1>>1].neg()):f>0?u.add(i[f-1>>1]):u.add(i[-f-1>>1].neg())}return“affine”===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,c=this._wnafT3,f=0,l=0;l=1;l-=2){var d=l-1,p=l;if(1===s[d]&&1===s[p]){var b=[t[d],null,null,t[p]];0===t[d].y.cmp(t[p].y)?(b[1]=t[d].add(t[p]),b[2]=t[d].toJ().mixedAdd(t[p].neg())):0===t[d].y.cmp(t[p].y.redNeg())?(b[1]=t[d].toJ().mixedAdd(t[p]),b[2]=t[d].add(t[p].neg())):(b[1]=t[d].toJ().mixedAdd(t[p]),b[2]=t[d].toJ().mixedAdd(t[p].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[d],r[p]);f=Math.max(m[0].length,f),c[d]=new Array(f),c[p]=new Array(f);for(var g=0;g=0;l–){for(var k=0;l>=0;){var x=!0;for(g=0;g=0&&k++,w=w.dblp(k),l<0)break;for(g=0;g0?E=u[g][A-1>>1]:A<0&&(E=u[g][-A-1>>1].neg()),w=“affine”===E.type?w.mixedAdd(E):w.add(E))}}for(l=0;l=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:i},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add©.neg()}},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub®.cmp(this.zero))throw new Error(“invalid point”);var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o“:”“},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub®).redISub(this.y);return this.curve.point(r,n)},f.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd®.redIAdd®.redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(e){return e=new o(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},f.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},f.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},f.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},a(l,s.BasePoint),c.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul®,o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),f=c.redMul(s),l=n.redMul©,h=u.redSqr().redIAdd(f).redISub(l).redISub(l),d=u.redMul(l.redISub(h)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),f=r.redMul(u),l=s.redSqr().redIAdd©.redISub(f).redISub(f),h=s.redMul(f.redISub(l)).redISub(i.redMul©),d=this.z.redMul(a);return this.curve.jpoint(l,h,d)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp®)return!0}},l.prototype.inspect=function(){return this.isInfinity()?”“:”“},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){”use strict“;var n=r(59),i=r(4),o=r(3),a=n.base,s=r(9).utils;function u(e){a.call(this,”mont“,e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){a.BasePoint.call(this,e,”projective“),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),e.exports=u,u.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(c,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new c(this,e,t)},u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray(”be“,this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?”“:”“},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul®));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error(”Not supported on Montgomery curve“)},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul®,a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o–)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error(”Not supported on Montgomery curve“)},c.prototype.jumlAdd=function(){throw new Error(”Not supported on Montgomery curve“)},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){”use strict“;var n=r(59),i=r(9),o=r(4),a=r(3),s=n.base,u=i.utils.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,”edwards“,e),this.a=new o(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),u(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function f(e,t,r,n,i){s.BasePoint.call(this,e,”projective“),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(t,16),this.y=new o(r,16),this.z=n?new o(n,16):this.curve.one,this.t=i&&new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}a(c,s),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul®),i=this.one.redSub(this.c2.redMul(this.d).redMul®),a=n.redMul(i.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error(”invalid point“);var u=s.fromRed().isOdd();return(t&&!u||!t&&u)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new o(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(i.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error(”invalid point“);return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error(”invalid point“);return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd®,i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul®));return 0===n.cmp(i)},a(f,s.BasePoint),c.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new f(this,e,t,r,n)},f.fromJSON=function(e,t){return new f(e,t[0],t[1],t[2])},f.prototype.inspect=function(){return this.isInfinity()?”“:”“},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd®;var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub®,s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),f=i.redMul(s),l=a.redMul(o);return this.curve.point(u,c,l,f)},f.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(c.redSub(o)),r=a.redMul(u)}}else{var c=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=c.redSub(s).redSub(s);e=this.curve._mulC(n.redISub©).redMul(u),t=this.curve._mulC©.redMul(i.redISub(o)),r=c.redMul(u)}return this.curve.point(e,t,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),f=s.redMul(u),l=o.redMul(u),h=a.redMul(s);return this.curve.point(c,f,h,l)},f.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(u).redMul(f);return this.curve.twisted?(t=n.redMul©.redMul(a.redSub(this.curve._mulA(o))),r=u.redMul©):(t=n.redMul©.redMul(a.redSub(o)),r=this.curve._mulC(u).redMul©),this.curve.point(l,t,r)},f.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},f.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},function(e,t,r){”use strict“;var n,i=t,o=r(82),a=r(9),s=a.utils.assert;function u(e){”short“===e.type?this.curve=new a.curve.short(e):”edwards“===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),”Invalid curve“),s(this.g.mul(this.n).isInfinity(),”Invalid curve, G*N != O“)}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c(”p192“,{type:”short“,prime:”p192“,p:”ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff“,a:”ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc“,b:”64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1“,n:”ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831“,hash:o.sha256,gRed:!1,g:[”188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012“,”07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811“]}),c(”p224“,{type:”short“,prime:”p224“,p:”ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001“,a:”ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe“,b:”b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4“,n:”ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d“,hash:o.sha256,gRed:!1,g:[”b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21“,”bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34“]}),c(”p256“,{type:”short“,prime:null,p:”ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff“,a:”ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc“,b:”5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b“,n:”ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551“,hash:o.sha256,gRed:!1,g:[”6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296“,”4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5“]}),c(”p384“,{type:”short“,prime:null,p:”ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff“,a:”ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc“,b:”b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef“,n:”ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973“,hash:o.sha384,gRed:!1,g:[”aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7“,”3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f“]}),c(”p521“,{type:”short“,prime:null,p:”000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff“,a:”000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc“,b:”00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00“,n:”000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409“,hash:o.sha512,gRed:!1,g:[”000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66“,”00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650“]}),c(”curve25519“,{type:”mont“,prime:”p25519“,p:”7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed“,a:”76d06“,b:”1“,n:”1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed“,hash:o.sha256,gRed:!1,g:[”9“]}),c(”ed25519“,{type:”edwards“,prime:”p25519“,p:”7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed“,a:”-1“,c:”1“,d:”52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3“,n:”1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed“,hash:o.sha256,gRed:!1,g:[”216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a“,”6666666666666666666666666666666666666666666666666666666666666658“]});try{n=r(241)}catch(e){n=void 0}c(”secp256k1“,{type:”short“,prime:”k256“,p:”ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f“,a:”0“,b:”7“,n:”ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141“,h:”1“,hash:o.sha256,beta:”7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee“,lambda:”5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72“,basis:[{a:”3086d221a7d46bcde86c90e49284eb15“,b:”-e4437ed6010e88286f547fa90abfe4c3“},{a:”114ca50f7a8e2f3f657c1108d9d44cfd8“,b:”3086d221a7d46bcde86c90e49284eb15“}],gRed:!1,g:[”79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798“,”483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8“,n]})},function(e,t,r){”use strict“;t.sha1=r(236),t.sha224=r(237),t.sha256=r(128),t.sha384=r(238),t.sha512=r(129)},function(e,t,r){”use strict“;var n=r(18),i=r(44),o=r(127),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,f=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,f),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return s.iaddn(1),this.keyFromPrivate(s)}},f.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn®),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,r,a){”object“===n®&&(a=r,r=null),a||(a={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var s=this.n.byteLength(),u=t.getPrivate().toArray(”be“,s),f=e.toArray(”be“,s),l=new o({hash:this.hash,entropy:u,nonce:f,pers:a.pers,persEnc:a.persEnc||”utf8“}),h=this.n.sub(new i(1)),d=0;;d++){var p=a.k?a.k(d):new i(l.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(h)>=0)){var b=this.g.mul(p);if(!b.isInfinity()){var y=b.getX(),m=y.umod(this.n);if(0!==m.cmpn(0)){var g=p.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var v=(b.getY().isOdd()?1:0)|(0!==y.cmp(m)?2:0);return a.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),v^=1),new c({r:m,s:g,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var o=(t=new c(t,”hex“)).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),f=u.mul(e).umod(this.n),l=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(f,r.getPublic(),l)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(f,r.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,r,n){s((3&r)===r,”The recovery param is more than two bits“),t=new c(t,n);var o=this.n,a=new i(e),u=t.r,f=t.s,l=1&r,h=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error(”Unable to find sencond key candinate“);u=h?this.curve.pointFromX(u.add(this.curve.n),l):this.curve.pointFromX(u,l);var d=t.r.invm(o),p=o.sub(a).mul(d).umod(o),b=f.mul(d).umod(o);return this.g.mulAdd(p,u,b)},f.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new c(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(82),i=r(125),o=r(11);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,”Not enough entropy. Minimum is: “this.minEntropy” bits“),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat®;this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,”Not enough entropy. Minimum is: “this.minEntropy” bits“),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error(”Reseed is required“);”string“!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||”hex“),this._update®);for(var o=[];o.length”}},function(e,t,r){“use strict”;var n=r(4),i=r(9).utils,o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,“Signature without r or s”),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);for(e.push(128|r);–r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),a=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var c=u(e,r);if(e.length!==c+r.place)return!1;var f=e.slice(r.place,c+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===f[0]&&128&f[1]&&(f=f.slice(1)),this.r=new n(a),this.s=new n(f),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c(t),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];f(n,t.length),(n=n.concat(t)).push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(82),i=r(9),o=i.utils,a=o.assert,s=o.parseBytes,u=r(247),c=r(248);function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},f.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,–this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return“”;for(var t=this.head,r=“”+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,o=n.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,r=o,i=s,t.copy(r,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+“ ”+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){“use strict”;if(!e.setImmediate){var n,i,o,a,s,u=1,c={},f=!1,l=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,“[object process]”==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){p(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(“”,“*”),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):l&&“onreadystatechange”in l.createElement(“script”)?(i=l.documentElement,n=function(e){var t=l.createElement(“script”);t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(a=“setImmediate$”+Math.random()+“$”,s=function(t){t.source===e&&“string”==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener(“message”,s,!1):e.attachEvent(“onmessage”,s),n=function(t){e.postMessage(a+t,“*”)}),h.setImmediate=function(e){“function”!=typeof e&&(e=new Function(“”+e));for(var t=new Array(arguments.length-1),r=0;r>>2}function f(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,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,l=0;l<16;++l)r[l]=e.readInt32BE(4*l);for(;l<80;++l)r[l]=r[l-3]^r[l-8]^r[l-14]^r[l-16];for(var h=0;h<80;++h){var d=~~(h/20),p=0|((t=n)<<5|t>>>27)+f(d,i,o,s)+u+r[h]+a[d];u=s,s=o,o=c(i),i=n,n=p}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},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(3),i=r(38),o=r(2).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,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,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31;for(var d=0;d<80;++d){var p=~~(d/20),b=c(n)+l(p,i,o,s)+u+r[d]+a[p]|0;u=s,s=o,o=f(i),i=n,n=b}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},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(3),i=r(135),o=r(38),a=r(2).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28);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},e.exports=u},function(e,t,r){var n=r(3),i=r(136),o=r(38),a=r(2).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(48);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),e},e.exports=u},function(e,t,r){"use strict";var n=r(3),i=r(2).Buffer,o=r(27),a=i.alloc(128),s=64;function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>s?t=e(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a–){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length0;n–)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r=“encrypt”===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat®:r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];r=a.r28shl(r,s),i=a.r28shl(i,s),a.pc2(r,i,e.keys,o)}},c.prototype._update=function(e,t,r,n){var i=this._desState,o=a.readUInt32BE(e,t),s=a.readUInt32BE(e,t+4);a.ip(o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],“encrypt”===this.type?this._encrypt(i,o,s,i.tmp,0):this._decrypt(i,o,s,i.tmp,0),o=i.tmp[0],s=i.tmp[1],a.writeUInt32BE(r,o,n),a.writeUInt32BE(r,s,n+4)},c.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,o=h}a.rip(s,o,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var o=r,s=t,u=e.keys.length-2;u>=0;u-=2){var c=e.keys[u],f=e.keys[u+1];a.expand(o,e.tmp,0),c^=e.tmp[0],f^=e.tmp[1];var l=a.substitute(c,f),h=o;o=(s^a.permute(l))>>>0,s=h}a.rip(o,s,n,i)}},function(e,t,r){“use strict”;var n=r(11),i=r(3),o={};function a(e){n.equal(e.length,8,“Invalid IV length”),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r>a%8,e._prev=o(e._prev,r?n:i);return s}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,a=n.allocUnsafe(o),s=-1;++s>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t0;t–)n[t]=n[t]>>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,r){var n=r(145),i=r(2).Buffer,o=r(92),a=r(146),s=r(27),u=r(64),c=r(65);function f(e,t,r){s.call(this),this._cache=new l,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from®,this._mode=e,this._autopadding=!0}function l(){this.cache=i.allocUnsafe(0)}function h(e,t,r){var s=o[e.toLowerCase()];if(!s)throw new TypeError(“invalid suite type”);if(“string”==typeof r&&(r=i.from®),“GCM”!==s.mode&&r.length!==s.iv)throw new TypeError(“invalid iv length ”+r.length);if(“string”==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError(“invalid key length ”+t.length);return“stream”===s.type?new a(s.module,t,r,!0):“auth”===s.type?new n(s.module,t,r,!0):new f(s.module,t,r)}r(3)(f,s),f.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push®;return i.concat(n)},f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error(“unable to decrypt data”);var r=-1;for(;++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError(“invalid suite type”);var n=c(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},t.createDecipheriv=h},function(e,t){t[“des-ecb”]={key:8,iv:0},t[“des-cbc”]=t.des={key:8,iv:8},t[“des-ede3-cbc”]=t.des3={key:24,iv:8},t[“des-ede3”]={key:24,iv:0},t[“des-ede-cbc”]={key:16,iv:8},t[“des-ede”]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(147),i=r(284),o=r(285);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,“hex”),n=new e(i[t].gen,“hex”);return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,s,u){return e.isBuffer(i)||void 0===a[i]?t(r,“binary”,i,s):(i=i||“binary”,u=u||“binary”,s=s||new e([2]),e.isBuffer(s)||(s=new e(s,u)),“number”==typeof r?new o(n(r,s),s,!0):(e.isBuffer®||(r=new e(r,i)),new o(r,s,!0)))}}).call(this,r(1).Buffer)},function(e){e.exports={modp1:{gen:“02”,prime:“ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff”},modp2:{gen:“02”,prime:“ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff”},modp5:{gen:“02”,prime:“ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff”},modp14:{gen:“02”,prime:“ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff”},modp15:{gen:“02”,prime:“ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff”},modp16:{gen:“02”,prime:“ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff”},modp17:{gen:“02”,prime:“ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff”},modp18:{gen:“02”,prime:“ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff”}}},function(e,t,r){(function(t){var n=r(4),i=new(r(148)),o=new n(24),a=new n(11),s=new n(10),u=new n(3),c=new n(7),f=r(147),l=r(26);function h(e,r){return r=r||“utf8”,t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function d(e,r){return r=r||“utf8”,t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=b;var p={};function b(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=d):this._primeCode=8}function y(e,r){var n=new t(e.toArray());return r?n.toString®:n}Object.defineProperty(b.prototype,“verifyError”,{enumerable:!0,get:function(){return“number”!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString(“hex”),n=[r,e.toString(16)].join(“_”);if(n in p)return p[n];var l,h=0;if(e.isEven()||!f.simpleSieve||!f.fermatTest(e)||!i.test(e))return h+=1,h+=“02”===r||“05”===r?8:4,p[n]=h,h;switch(i.test(e.shrn(1))||(h+=2),r){case“02”:e.mod(o).cmp(a)&&(h+=8);break;case“05”:(l=e.mod(s)).cmp(u)&&l.cmp©&&(h+=8);break;default:h+=4}return p[n]=h,h}(this.__prime,this.__gen)),this._primeCode}}),b.prototype.generateKeys=function(){return this._priv||(this._priv=new n(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},b.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length0&&r.ishrn(n),r}function l(e,r,i){var o,a;do{for(o=new t(0);8*o.lengththis.name“(entity) {n this._initNamed(entity);n})”)}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||“der”,this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||“der”,this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(e,t){var r=[].indexOf;e.exports=function(e,t){if®return e.indexOf(t);for(var n=0;nt.label“—–”],o=0;ot.label“—–”),n.join(“n”)}},function(e,t,r){“use strict”;var n=r(48),i=n.define(“Time”,function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define(“AttributeTypeValue”,function(){this.seq().obj(this.key(“type”).objid(),this.key(“value”).any())}),a=n.define(“AlgorithmIdentifier”,function(){this.seq().obj(this.key(“algorithm”).objid(),this.key(“parameters”).optional(),this.key(“curve”).objid().optional())}),s=n.define(“SubjectPublicKeyInfo”,function(){this.seq().obj(this.key(“algorithm”).use(a),this.key(“subjectPublicKey”).bitstr())}),u=n.define(“RelativeDistinguishedName”,function(){this.setof(o)}),c=n.define(“RDNSequence”,function(){this.seqof(u)}),f=n.define(“Name”,function(){this.choice({rdnSequence:this.use©})}),l=n.define(“Validity”,function(){this.seq().obj(this.key(“notBefore”).use(i),this.key(“notAfter”).use(i))}),h=n.define(“Extension”,function(){this.seq().obj(this.key(“extnID”).objid(),this.key(“critical”).bool().def(!1),this.key(“extnValue”).octstr())}),d=n.define(“TBSCertificate”,function(){this.seq().obj(this.key(“version”).explicit(0).int().optional(),this.key(“serialNumber”).int(),this.key(“signature”).use(a),this.key(“issuer”).use(f),this.key(“validity”).use(l),this.key(“subject”).use(f),this.key(“subjectPublicKeyInfo”).use(s),this.key(“issuerUniqueID”).implicit(1).bitstr().optional(),this.key(“subjectUniqueID”).implicit(2).bitstr().optional(),this.key(“extensions”).explicit(3).seqof(h).optional())}),p=n.define(“X509Certificate”,function(){this.seq().obj(this.key(“tbsCertificate”).use(d),this.key(“signatureAlgorithm”).use(a),this.key(“signatureValue”).bitstr())});e.exports=p},function(e){e.exports={“2.16.840.1.101.3.4.1.1”:“aes-128-ecb”,“2.16.840.1.101.3.4.1.2”:“aes-128-cbc”,“2.16.840.1.101.3.4.1.3”:“aes-128-ofb”,“2.16.840.1.101.3.4.1.4”:“aes-128-cfb”,“2.16.840.1.101.3.4.1.21”:“aes-192-ecb”,“2.16.840.1.101.3.4.1.22”:“aes-192-cbc”,“2.16.840.1.101.3.4.1.23”:“aes-192-ofb”,“2.16.840.1.101.3.4.1.24”:“aes-192-cfb”,“2.16.840.1.101.3.4.1.41”:“aes-256-ecb”,“2.16.840.1.101.3.4.1.42”:“aes-256-cbc”,“2.16.840.1.101.3.4.1.43”:“aes-256-ofb”,“2.16.840.1.101.3.4.1.44”:“aes-256-cfb”}},function(e,t,r){var n=/Proc-Type: 4,ENCRYPTED[nr]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[nr]+([0-9A-znr+/=]+)[nr]+/m,i=/^—–BEGIN ((?:.*? KEY)|CERTIFICATE)—–/m,o=/^—–BEGIN ((?:.*? KEY)|CERTIFICATE)—–([0-9A-znr+/=]+)—–END 1—–$/m,a=r(65),s=r(91),u=r(2).Buffer;e.exports=function(e,t){var r,c=e.toString(),f=c.match(n);if(f){var l=“aes”+f[1],h=u.from(f[2],“hex”),d=u.from(f[3].replace(/[rn]/g,“”),“base64”),p=a(t,h.slice(0,8),parseInt(f[1],10)).key,b=[],y=s.createDecipheriv(l,p,h);b.push(y.update(d)),b.push(y.final()),r=u.concat(b)}else{var m=c.match(o);r=new u(m[2].replace(/[rn]/g,“”),“base64”)}return{tag:c.match(i)[1],data:r}}},function(e,t,r){(function(t){var n=r(4),i=r(9).ec,o=r(66),a=r(154);function s(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error(“invalid sig”)}e.exports=function(e,r,u,c,f){var l=o(u);if(“ec”===l.type){if(“ecdsa”!==c&&“ecdsa/rsa”!==c)throw new Error(“wrong public key type”);return function(e,t,r){var n=a[r.data.algorithm.curve.join(“.”)];if(!n)throw new Error(“unknown curve ”+r.data.algorithm.curve.join(“.”));var o=new i(n),s=r.data.subjectPrivateKey.data;return o.verify(t,e,s)}(e,r,l)}if(“dsa”===l.type){if(“dsa”!==c)throw new Error(“wrong public key type”);return function(e,t,r){var i=r.data.p,a=r.data.q,u=r.data.g,c=r.data.pub_key,f=o.signature.decode(e,“der”),l=f.s,h=f.r;s(l,a),s(h,a);var d=n.mont(i),p=l.invm(a);return 0===u.toRed(d).redPow(new n(t).mul(p).mod(a)).fromRed().mul(c.toRed(d).redPow(h.mul(p).mod(a)).fromRed()).mod(i).mod(a).cmp(h)}(e,r,l)}if(“rsa”!==c&&“ecdsa/rsa”!==c)throw new Error(“wrong public key type”);r=t.concat([f,r]);for(var h=l.modulus.byteLength(),d=[1],p=0;r.length+d.length+2r-h-2)throw new Error(“message too long”);var d=l.alloc(r-n-h-2),p=r-f-1,b=i(f),y=s(l.concat([c,d,l.alloc(1,1),t],p),a(b,p)),m=s(b,a(y,f));return new u(l.concat([l.alloc(1),m,y],r))}(p,t);else if(1===h)d=function(e,t,r){var n,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error(“message too long”);n=r?l.alloc(a-o-3,255):function(e){var t,r=l.allocUnsafe(e),n=0,o=i(2*e),a=0;for(;n=0)throw new Error(“data too long for modulus”)}return r?f(d,p):c(d,p)}},function(e,t,r){var n=r(66),i=r(155),o=r(156),a=r(4),s=r(93),u=r(22),c=r(157),f=r(2).Buffer;e.exports=function(e,t,r){var l;l=e.padding?e.padding:r?1:4;var h,d=n(e),p=d.modulus.byteLength();if(t.length>p||new a(t).cmp(d.modulus)>=0)throw new Error(“decryption error”);h=r?c(new a(t),d):s(t,d);var b=f.alloc(p-h.length);if(h=f.concat([b,h],p),4===l)return function(e,t){var r=e.modulus.byteLength(),n=u(“sha1”).update(f.alloc(0)).digest(),a=n.length;if(0!==t[0])throw new Error(“decryption error”);var s=t.slice(1,a+1),c=t.slice(a+1),l=o(s,i(c,a)),h=o(c,i(l,r-a-1));if(function(e,t){e=f.from(e),t=f.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i=t.length){o++;break}var a=t.slice(2,i-1);(“0002”!==n.toString(“hex”)&&!r||“0001”!==n.toString(“hex”)&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,h,r);if(3===l)return h;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(2),a=r(26),s=o.Buffer,u=o.kMaxLength,c=e.crypto||e.msCrypto,f=Math.pow(2,32)-1;function l(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>f||e<0)throw new TypeError("offset must be a uint32");if(e>u||e>t)throw new RangeError(“offset out of range”)}function h(e,t,r){if(“number”!=typeof e||e!=e)throw new TypeError(“size must be a number”);if(e>f||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>u)throw new RangeError(“buffer too small”)}function d(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return c.getRandomValues(s),i?void n.nextTick(function(){i(null,e)}):e}if(!i)return a®.copy(e,t),e;a(r,function(r,n){if®return i®;n.copy(e,t),i(null,e)})}c&&c.getRandomValues||!n.browser?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError(’“buf” argument must be a Buffer or Uint8Array’);if(“function”==typeof r)i=r,r=0,n=t.length;else if(“function”==typeof n)i=n,n=t.length-r;else if(“function”!=typeof i)throw new TypeError(‘“cb” argument must be a function’);return l(r,t.length),h(n,r,t.length),d(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError(‘“buf” argument must be a Buffer or Uint8Array’);l(r,t.length),void 0===n&&(n=t.length-r);return h(n,r,t.length),d(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(7),r(14))},function(e,t,r){“use strict”;e.exports=r(308)},function(e,t,r){“use strict”;(function(t){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(50),o=r(4),a=r(9).ec,s=i.define(“ECPrivateKey”,function(){this.seq().obj(this.key(“version”).int(),this.key(“privateKey”).octstr(),this.key(“parameters”).explicit(0).objid().optional(),this.key(“publicKey”).explicit(1).bitstr().optional())}),u=i.define(“SubjectPublicKeyInfo”,function(){this.seq().obj(this.key(“algorithm”).seq().obj(this.key(“id”).objid(),this.key(“curve”).objid()),this.key(“pub”).bitstr())}),c={secp256k1:{curveParameters:[1,3,132,0,10],privatePEMOptions:{label:“EC PRIVATE KEY”},publicPEMOptions:{label:“PUBLIC KEY”},curve:new a(“secp256k1”)}};function f(e){“string”==typeof e&&(!function(e,t){if(!e)throw new Error(t||“Assertion failed”)}(c.hasOwnProperty(e),“Unknown curve ”+e),e=c[e]),this.options=e,this.algorithmID=[1,2,840,10045,2,1]}f.ECPrivateKeyASN=s,f.SubjectPublicKeyInfoASN=u,f.prototype.privateKeyObject=function(e,r){var n={version:new o(1),privateKey:new t(e,“hex”),parameters:this.options.curveParameters};return r&&(n.publicKey={unused:0,data:new t(r,“hex”)}),n},f.prototype.publicKeyObject=function(e){return{algorithm:{id:this.algorithmID,curve:this.options.curveParameters},pub:{unused:0,data:new t(e,“hex”)}}},f.prototype.encodePrivate=function(e,r,i){if(“raw”===r){if(“string”===!n(e))throw“private key must be a string”;var o,a=(o=this.options.curve.keyFromPrivate(e,“hex”)).getPublic(“hex”);o=this.privateKeyObject(e,a)}else if(“der”===r){if(“buffer”==typeof e);else{if(“string”!=typeof e)throw“private key must be a buffer or a string”;e=new t(e,“hex”)}o=s.decode(e,“der”)}else{if(“pem”!==r)throw“invalid private key format”;if(“string”===!n(e))throw“private key must be a string”;o=s.decode(e,“pem”,this.options.privatePEMOptions)}if(“raw”===i)return o.privateKey.toString(“hex”);if(“der”===i)return s.encode(o,“der”).toString(“hex”);if(“pem”===i)return s.encode(o,“pem”,this.options.privatePEMOptions);throw“invalid destination format for private key”},f.prototype.encodePublic=function(e,r,i){var o;if(“raw”===r){if(“string”===!n(e))throw“public key must be a string”;o=this.publicKeyObject(e)}else if(“der”===r){if(“buffer”==typeof e);else{if(“string”!=typeof e)throw“public key must be a buffer or a string”;e=new t(e,“hex”)}o=u.decode(e,“der”)}else{if(“pem”!==r)throw“invalid public key format”;if(“string”===!n(e))throw“public key must be a string”;o=u.decode(e,“pem”,this.options.publicPEMOptions)}if(“raw”===i)return o.pub.data.toString(“hex”);if(“der”===i)return u.encode(o,“der”).toString(“hex”);if(“pem”===i)return u.encode(o,“pem”,this.options.publicPEMOptions);throw“invalid destination format for public key”},e.exports=f}).call(this,r(1).Buffer)},function(e,t,r){“use strict”;var n=r(50),i=r(3);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(149).runInThisContext(“(function ”this.name“(entity) {n this._initNamed(entity);n})”)}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||“der”,this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||“der”,this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(e,t,r){“use strict”;var n=r(3);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join(“/”)},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return“[”+JSON.stringify(e)+“]”}).join(“”),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+“ at: ”+(this.path||“(shallow)”),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},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=r(51).Reporter,o=r(51).EncoderBuffer,a=r(51).DecoderBuffer,s=r(11),u=[“seq”,“seqof”,“set”,“setof”,“objid”,“bool”,“gentime”,“utctime”,“null_”,“enum”,“int”,“objDesc”,“bitstr”,“bmpstr”,“charstr”,“genstr”,“graphstr”,“ia5str”,“iso646str”,“numstr”,“octstr”,“printstr”,“t61str”,“unistr”,“utf8str”,“videostr”],c=[“key”,“obj”,“use”,“optional”,“explicit”,“implicit”,“def”,“choice”,“any”,“contains”].concat(u);function f(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=f;var l=[“enc”,“parent”,“children”,“tag”,“args”,“reverseArgs”,“choice”,“optional”,“any”,“obj”,“use”,“alteredUse”,“key”,“default”,“explicit”,“implicit”,“contains”];f.prototype.clone=function(){var e=this._baseState,t={};l.forEach(function®{t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},f.prototype._wrap=function(){var e=this._baseState;c.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push®,r[t].apply(r,arguments)}},this)},f.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),s.equal(t.children.length,1,“Root node can have only one child”)},f.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if(“object”!==n(e)||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function®{r==(0|r)&&(r|=0);var n=e[r];t[n]=r}),t}))},[“_peekTag”,“_decodeTag”,“_use”,“_decodeStr”,“_decodeObjid”,“_decodeTime”,“_decodeNull”,“_decodeInt”,“_decodeBool”,“_decodeList”,“_encodeComposite”,“_encodeStr”,“_encodeObjid”,“_encodeTime”,“_encodeNull”,“_encodeInt”,“_encodeBool”].forEach(function(e){f.prototype[e]=function(){var t=this._baseState;throw new Error(e+“ not implemented for encoding: ”+t.enc)}}),u.forEach(function(e){f.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs®,this}}),f.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},f.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},f.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},f.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},f.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},f.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},f.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,o=!0,s=null;if(null!==r.key&&(s=e.enterKey(r.key)),r.optional){var u=null;if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(o=this._peekTag(e,u,r.any),e.isError(o))return o}else{var c=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore©}}if(r.obj&&o&&(n=e.enterObject()),o){if(null!==r.explicit){var f=this._decodeTag(e,r.explicit);if(e.isError(f))return f;e=f}var l=e.offset;if(null===r.use&&null===r.choice){var h;r.any&&(h=e.save());var d=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(d))return d;r.any?i=e.raw(h):e=d}if(t&&t.track&&null!==r.tag&&t.track(e.path(),l,e.length,“tagged”),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,“content”),r.any||(i=null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function®{r._decode(e,t)}),r.contains&&(“octstr”===r.tag||“bitstr”===r.tag)){var p=new a(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(p,t)}}return r.obj&&o&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,r.key,i),i},f.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return“seq”===e||“set”===e?null:“seqof”===e||“setof”===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):“objid”===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):“objid”===e?this._decodeObjid(t,null,null,r):“gentime”===e||“utctime”===e?this._decodeTime(t,e,r):“null_”===e?this._decodeNull(t,r):“bool”===e?this._decodeBool(t,r):“objDesc”===e?this._decodeStr(t,e,r):“int”===e||“enum”===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error(“unknown tag: ”+e)},f.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},f.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some(function(o){var a=e.save(),s=r.choice[o];try{var u=s._decode(e,t);if(e.isError(u))return!1;n={type:o,value:u},i=!0}catch(t){return e.restore(a),!1}return!0},this),i?n:e.error(“Choice not matched”)},f.prototype._createEncoderBuffer=function(e){return new o(e,this.reporter)},f.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},f.prototype._encodeValue=function(e,t,r){var o=this._baseState;if(null===o.parent)return o.children[0]._encode(e,t||new i);var a=null;if(this.reporter=t,o.optional&&void 0===e){if(null===o.default)return;e=o.default}var s=null,u=!1;if(o.any)a=this._createEncoderBuffer(e);else if(o.choice)a=this._encodeChoice(e,t);else if(o.contains)s=this._getUse(o.contains,r)._encode(e,t),u=!0;else if(o.children)s=o.children.map(function®{if(“null_”===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error(“Child should have a key”);var i=t.enterKey(r._baseState.key);if(“object”!==n(e))return t.error(“Child expected, but input is not object”);var o=r._encode(e[r._baseState.key],t,e);return t.leaveKey(i),o},this).filter(function(e){return e}),s=this._createEncoderBuffer(s);else if(“seqof”===o.tag||“setof”===o.tag){if(!o.args||1!==o.args.length)return t.error(“Too many args for : ”+o.tag);if(!Array.isArray(e))return t.error(“seqof/setof, but data is not Array”);var c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function®{var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},c))}else null!==o.use?a=this._getUse(o.use,r)._encode(e,t):(s=this._encodePrimitive(o.tag,e),u=!0);if(!o.any&&null===o.choice){var f=null!==o.implicit?o.implicit:o.tag,l=null===o.implicit?“universal”:“context”;null===f?null===o.use&&t.error(“Tag could be omitted only for .use()”):null===o.use&&(a=this._encodeComposite(f,u,l,s))}return null!==o.explicit&&(a=this._encodeComposite(o.explicit,!1,“context”,a)),a},f.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+“ not found in ”+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},f.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(“objid”===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if(“objid”===e)return this._encodeObjid(t,null,null);if(“gentime”===e||“utctime”===e)return this._encodeTime(t,e);if(“null_”===e)return this._encodeNull();if(“int”===e||“enum”===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if(“bool”===e)return this._encodeBool(t);if(“objDesc”===e)return this._encodeStr(t,e);throw new Error(“Unsupported tag: ”+e)},f.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},f.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 ‘()+,-./:=?]*$/.test(e)}},function(e,t,r){“use strict”;var n=r(159);t.tagClass={0:“universal”,1:“application”,2:“context”,3:“private”},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:“end”,1:“bool”,2:“int”,3:“bitstr”,4:“octstr”,5:“null_”,6:“objid”,7:“objDesc”,8:“external”,9:“real”,10:“enum”,11:“embed”,12:“utf8str”,13:“relativeOid”,16:“seq”,17:“set”,18:“numstr”,19:“printstr”,20:“t61str”,21:“videostr”,22:“ia5str”,23:“utctime”,24:“gentime”,25:“graphstr”,26:“iso646str”,27:“genstr”,28:“unistr”,29:“charstr”,30:“bmpstr”},t.tagByName=n._reverse(t.tag)},function(e,t,r){“use strict”;var n=t;n.der=r(160),n.pem=r(314)},function(e,t,r){“use strict”;var n=r(3),i=r(1).Buffer,o=r(160);function a(e){o.call(this,e),this.enc=“pem”}n(a,o),e.exports=a,a.prototype.decode=function(e,t){for(var r=e.toString().split(/[rn]+/g),n=t.label.toUpperCase(),a=/^—–(BEGIN|END) ([^-]+)—–$/,s=-1,u=-1,c=0;ct.label“—–”],o=0;ot.label“—–”),n.join(“n”)}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),t.default=void 0;var n=ke(r(94)),i=ke(r(162)),o=ke(r(318)),a=ke(r(319)),s=ke(r(320)),u=ke(r(321)),c=ke(r(322)),f=ke(r(323)),l=ke(r(324)),h=ke(r(325)),d=ke(r(67)),p=ke(r(326)),b=ke(r(96)),y=ke(r(327)),m=Se(r(328)),g=Se(r(329)),v=ke(r(330)),_=ke(r(331)),w=ke(r(332)),S=ke(r(333)),k=ke(r(334)),x=ke(r(165)),E=ke(r(166)),A=ke(r(335)),P=ke(r(336)),O=ke(r(337)),T=ke(r(164)),j=Se(r(338)),M=ke(r(339)),I=ke(r(167)),B=ke(r(340)),D=ke(r(341)),C=ke(r(342)),N=ke(r(343)),U=ke(r(344)),R=ke(r(345)),F=ke(r(346)),z=ke(r(347)),L=ke(r(348)),q=ke(r(163)),H=ke(r(349)),$=ke(r(350)),K=ke(r(351)),V=ke(r(352)),G=ke(r(353)),W=ke(r(354)),X=ke(r(355)),Z=ke(r(356)),J=ke(r(357)),Y=ke(r(358)),Q=Se(r(359)),ee=ke(r(360)),te=ke(r(361)),re=ke(r(362)),ne=ke(r(363)),ie=ke(r(364)),oe=ke(r(365)),ae=ke(r(366)),se=ke(r(367)),ue=ke(r(368)),ce=ke(r(369)),fe=Se(r(370)),le=ke(r(168)),he=ke(r(169)),de=ke(r(371)),pe=ke(r(372)),be=ke(r(373)),ye=ke(r(374)),me=ke(r(375)),ge=ke(r(170)),ve=ke(r(376)),_e=ke(r(377)),we=ke(r(95));function Se(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}function ke(e){return e&&e.__esModule?e:{default:e}}var xe={version:“10.11.0”,toDate:n.default,toFloat:i.default,toInt:o.default,toBoolean:a.default,equals:s.default,contains:u.default,matches:c.default,isEmail:f.default,isURL:l.default,isMACAddress:h.default,isIP:d.default,isIPRange:p.default,isFQDN:b.default,isBoolean:y.default,isAlpha:m.default,isAlphaLocales:m.locales,isAlphanumeric:g.default,isAlphanumericLocales:g.locales,isNumeric:v.default,isPort:_.default,isLowercase:w.default,isUppercase:S.default,isAscii:k.default,isFullWidth:x.default,isHalfWidth:E.default,isVariableWidth:A.default,isMultibyte:P.default,isSurrogatePair:O.default,isInt:T.default,isFloat:j.default,isFloatLocales:j.locales,isDecimal:M.default,isHexadecimal:I.default,isDivisibleBy:B.default,isHexColor:D.default,isISRC:C.default,isMD5:N.default,isHash:U.default,isJWT:R.default,isJSON:F.default,isEmpty:z.default,isLength:L.default,isByteLength:q.default,isUUID:H.default,isMongoId:$.default,isAfter:K.default,isBefore:V.default,isIn:G.default,isCreditCard:W.default,isIdentityCard:X.default,isISIN:Z.default,isISBN:J.default,isISSN:Y.default,isMobilePhone:Q.default,isMobilePhoneLocales:Q.locales,isPostalCode:fe.default,isPostalCodeLocales:fe.locales,isCurrency:ee.default,isISO8601:te.default,isRFC3339:re.default,isISO31661Alpha2:ne.default,isISO31661Alpha3:ie.default,isBase64:oe.default,isDataURI:ae.default,isMagnetURI:se.default,isMimeType:ue.default,isLatLong:ce.default,ltrim:le.default,rtrim:he.default,trim:de.default,escape:pe.default,unescape:be.default,stripLow:ye.default,whitelist:me.default,blacklist:ge.default,isWhitelisted:ve.default,normalizeEmail:_e.default,toString:we.default};t.default=xe,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){return(0,i.default)(e),parseInt(e,t||10)};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){if((0,i.default)(e),t)return“1”===e||“true”===e;return“0”!==e&&“false”!==e&&“”!==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”;Object.defineProperty(t,“__esModule”,{value:!0}),t.default=function(e,t){return(0,i.default)(e),e===t};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){return(0,n.default)(e),e.indexOf((0,i.default)(t))>=0};var n=o(r(0)),i=o(r(95));function o(e){return e&&e.__esModule?e:{default: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,r){(0,i.default)(e),“[object RegExp]”!==Object.prototype.toString.call(t)&&(t=new RegExp(t,r));return t.test(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”;Object.defineProperty(t,“__esModule”,{value:!0}),t.default=function(e,t){if((0,n.default)(e),(t=(0,i.default)(t,c)).require_display_name||t.allow_display_name){var r=e.match(f);if®e=r[1];else if(t.require_display_name)return!1}var u=e.split(“@”),y=u.pop(),m=u.join(“@”),g=y.toLowerCase();if(t.domain_specific_validation&&(“gmail.com”===g||“googlemail.com”===g)){var v=(m=m.toLowerCase()).split(“+”)[0];if(!(0,o.default)(v.replace(“.”,“”),{min:6,max:30}))return!1;for(var _=v.split(“.”),w=0;w<_.length;w++)if(!h.test(_[w]))return!1}if(!(0,o.default)(m,{max:64})||!(0,o.default)(y,{max:254}))return!1;if(!(0,a.default)(y,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,s.default)(y)){if(!y.startsWith("[")||!y.endsWith("]"))return!1;var S=y.substr(1,y.length-2);if(0===S.length||!(0,s.default)(S))return!1}}if('"'===m[0])return m=m.slice(1,m.length-1),t.allow_utf8_local_part?b.test(m):d.test(m);for(var k=t.allow_utf8_local_part?p:l,x=m.split("."),E=0;E$/i,l=/^[a-zd!#$%&’*+-/=?^_`{|}~]+$/i,h=/^[a-zd]+$/,d=/^([sx01-x08x0bx0cx0e-x1fx7fx21x23-x5bx5d-x7e]|(\[x01-x09x0bx0cx0d-x7f]))*$/i,p=/^[a-zd!#$%&‘*+-/=?^_`{|}~u00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]+$/i,b=/^([sx01-x08x0bx0cx0e-x1fx7fx21x23-x5bx5d-x7eu00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]|(\[x01-x09x0bx0cx0d-x7fu00A0-uD7FFuF900-uFDCFuFDF0-uFFEF]))*$/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){if((0,n.default)(e),!e||e.length>=2083||/[s<>]/.test(e))return!1;if(0===e.indexOf(“mailto:”))return!1;var r,s,l,h,d,p,b,y;if(t=(0,a.default)(t,u),b=e.split(“#”),e=b.shift(),b=e.split(“?”),e=b.shift(),(b=e.split(“://”)).length>1){if(r=b.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf®)return!1}else{if(t.require_protocol)return!1;if(“//”===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;b[0]=e.substr(2)}}if(“”===(e=b.join(“://”)))return!1;if(b=e.split(“/”),“”===(e=b.shift())&&!t.require_host)return!0;if((b=e.split(“@”)).length>1){if(t.disallow_auth)return!1;if((s=b.shift()).indexOf(“:”)>=0&&s.split(“:”).length>2)return!1}h=b.join(“@”),p=null,y=null;var m=h.match©;m?(l=“”,y=m[1],p=m[2]||null):(b=h.split(“:”),l=b.shift(),b.length&&(p=b.join(“:”)));if(null!==p&&(d=parseInt(p,10),!/^[0-9]+$/.test(p)||d<=0||d>65535))return!1;if(!((0,o.default)(l)||(0,i.default)(l,t)||y&&(0,o.default)(y,6)))return!1;if(l=l||y,t.host_whitelist&&!f(l,t.host_whitelist))return!1;if(t.host_blacklist&&f(l,t.host_blacklist))return!1;return!0};var n=s(r(0)),i=s(r(96)),o=s(r(67)),a=s(r(33));function s(e){return e&&e.__esModule?e:{default:e}}var u={protocols:[“http”,“https”,“ftp”],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},c=/^[([^]]+)](?::([0-9]+))?$/;function f(e,t){for(var r=0;r1&&t[1].startsWith(“0”))return!1;return(0,i.default)(t[0],4)&&t[1]<=32&&t[1]>=0};var n=o(r(0)),i=o(r(67));function o(e){return e&&e.__esModule?e:{default:e}}var a=/^d{1,2}$/;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),[“true”,“false”,“1”,“0”].indexOf(e)>=0};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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:“en-US”;if((0,i.default)(e),t in o.alpha)return o.alpha[t].test(e);throw new Error(“Invalid locale ’”.concat(t,“‘”))},t.locales=void 0;var n,i=(n=r(0))&&n.__esModule?n:{default:n},o=r(68);var a=Object.keys(o.alpha);t.locales=a},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:“en-US”;if((0,i.default)(e),t in o.alphanumeric)return o.alphanumeric[t].test(e);throw new Error(“Invalid locale ’”.concat(t,“‘”))},t.locales=void 0;var n,i=(n=r(0))&&n.__esModule?n:{default:n},o=r(68);var a=Object.keys(o.alphanumeric);t.locales=a},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),t.default=function(e,t){if((0,i.default)(e),t&&t.no_symbols)return a.test(e);return o.test(e)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^[+-]?([0-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,{min:0,max:65535})};var n,i=(n=r(164))&&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){return(0,i.default)(e),e===e.toLowerCase()};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){return(0,i.default)(e),e===e.toUpperCase()};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){return(0,i.default)(e),o.test(e)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^[x00-x7F]+$/;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.fullWidth.test(e)&&a.halfWidth.test(e)};var n,i=(n=r(0))&&n.__esModule?n:{default:n},o=r(165),a=r(166);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)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/[^x00-x7F]/;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)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/[uD800-uDBFF][uDC00-uDFFF]/;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),t=t||{};var r=new RegExp(“^(?:[-+])?(?:[0-9]+)?(?:\”.concat(t.locale?o.decimal[t.locale]:“.”,“[0-9]*)?(?:[eE][+\-]?(?:[0-9]+))?$”));if(“”===e||“.”===e||“-”===e||“+”===e)return!1;var n=parseFloat(e.replace(“,”,“.”));return r.test(e)&&(!t.hasOwnProperty(“min”)||n>=t.min)&&(!t.hasOwnProperty(“max”)||n<=t.max)&&(!t.hasOwnProperty("lt")||nt.gt)},t.locales=void 0;var n,i=(n=r(0))&&n.__esModule?n:{default:n},o=r(68);var a=Object.keys(o.decimal);t.locales=a},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),t.default=function(e,t){if((0,i.default)(e),(t=(0,n.default)(t,u)).locale in a.decimal)return!(0,o.default)(c,e.replace(/ /g,“”))&&function(e){return new RegExp(“^[-+]?([0-9]+)?(\”.concat(a.decimal[e.locale],“[0-9]{”).concat(e.decimal_digits,“})”).concat(e.force_decimal?“”:“?”,“$”))}(t).test(e);throw new Error(“Invalid locale ’”.concat(t.locale,“‘”))};var n=s(r(33)),i=s(r(0)),o=s(r(97)),a=r(68);function s(e){return e&&e.__esModule?e:{default:e}}var u={force_decimal:!1,decimal_digits:“1,”,locale:“en-US”},c=[“”,“-”,“+”];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){return(0,n.default)(e),(0,i.default)(e)%parseInt(t,10)==0};var n=o(r(0)),i=o(r(162));function o(e){return e&&e.__esModule?e:{default: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){return(0,i.default)(e),o.test(e)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/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){return(0,i.default)(e),o.test(e)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{3}d{2}d{5}$/;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)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^[a-f0-9]{32}$/;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){return(0,i.default)(e),new RegExp(“^[a-f0-9]{”.concat(o[t],“}$”)).test(e)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};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)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^([A-Za-z0-9-_~\/][=]{0,2}).([A-Za-z0-9-_~\/][=]{0,2})(?:.([A-Za-z0-9-_~\/][=]{0,2}))?$/;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)}Object.defineProperty(t,“__esModule”,{value:!0}),t.default=function(e){(0,o.default)(e);try{var t=JSON.parse(e);return!!t&&“object”===a(t)}catch(e){}return!1};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){return(0,n.default)(e),0===((t=(0,i.default)(t,a)).ignore_whitespace?e.trim().length:e.length)};var n=o(r(0)),i=o(r(33));function o(e){return e&&e.__esModule?e:{default:e}}var a={ignore_whitespace:!1};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)}Object.defineProperty(t,“__esModule”,{value:!0}),t.default=function(e,t){var r,n;(0,o.default)(e),“object”===a(t)?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var i=e.match(/[uD800-uDBFF][uDC00-uDFFF]/g)||[],s=e.length-i.length;return s>=r&&(void 0===n||s<=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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:“all”;(0,i.default)(e);var r=o[t];return r&&r.test(e)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/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){return(0,n.default)(e),(0,i.default)(e)&&24===e.length};var n=o(r(0)),i=o(r(167));function o(e){return e&&e.__esModule?e:{default: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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var r=(0,i.default)(t),o=(0,i.default)(e);return!!(o&&r&&o>r)};var n=o(r(0)),i=o(r(94));function o(e){return e&&e.__esModule?e:{default: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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var r=(0,i.default)(t),o=(0,i.default)(e);return!!(o&&r&&o=0}if(“object”===s(t))return t.hasOwnProperty(e);if(t&&“function”==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var i=a(r(0)),o=a(r(95));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s=“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){(0,i.default)(e);var t=e.replace(/[- ]+/g,“”);if(!o.test(t))return!1;for(var r,n,a,s=0,u=t.length-1;u>=0;u–)r=t.substring(u,u+1),n=parseInt(r,10),s+=a&&(n*=2)>=10?n%10+1:n,a=!a;return!(s%10!=0||!t)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35d{3})d{11}|6[27][0-9]{14})$/;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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:“any”;if((0,i.default)(e),t in o)return o[t](e);if(“any”===t){for(var r in o)if(o.hasOwnProperty®){var n=o[r];if(n(e))return!0}return!1}throw new Error(“Invalid locale ’”.concat(t,“‘”))};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o={ES:function(e){(0,i.default)(e);var t={X:0,Y:1,Z:2},r=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test®)return!1;var n=r.slice(0,-1).replace(//g,function(e)return t[e]});return r.endsWith([“T”,“R”,“W”,“A”,“G”,“M”,“Y”,“F”,“P”,“D”,“X”,“B”,“N”,“J”,“Z”,“S”,“Q”,“V”,“H”,“L”,“C”,“K”,“E”][n%23])}};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){if((0,i.default)(e),!o.test(e))return!1;for(var t,r,n=e.replace(/[A-Z]/g,function(e){return parseInt(e,36)}),a=0,s=!0,u=n.length-2;u>=0;u–)t=n.substring(u,u+1),r=parseInt(t,10),a+=s&&(r*=2)>=10?r+1:r,s=!s;return parseInt(e.substr(e.length-1),10)===(1e4-a)%10};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^[A-Z]{2}[0-9A-Z]{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(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:“”;(0,i.default)(t);r=String®;if(!r)return e(t,10)||e(t,13);var n=t.replace(/[s-]+/g,“”);var u=0;var c;if(“10”===r){if(!o.test(n))return!1;for(c=0;c<9;c++)u+=(c+1)*n.charAt(c);if("X"===n.charAt(9)?u+=100:u+=10*n.charAt(9),u%11==0)return!!n}else if("13"===r){if(!a.test(n))return!1;for(c=0;c<12;c++)u+=s[c%2]*n.charAt(c);if(n.charAt(12)-(10-u%10)%10==0)return!!n}return!1};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^(?:[0-9]{9}X|[0-9]{10})$/,a=/^(?:[0-9]{13})$/,s=[1,3];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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.default)(e);var r=o;if(r=t.require_hyphen?r.replace(“?”,“”):r,!(r=t.case_sensitive?new RegExp®:new RegExp(r,“i”)).test(e))return!1;for(var n=e.replace(“-”,“”).toUpperCase(),a=0,s=0;s”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function(e,t,r){if((0,i.default)(e),r&&r.strictMode&&!e.startsWith(”+“))return!1;if(Array.isArray(t))return t.some(function(t){if(o.hasOwnProperty(t)){var r=o[t];if(r.test(e))return!0}return!1});if(t in o)return o[t].test(e);if(!t||”any“===t){for(var n in o)if(o.hasOwnProperty(n)){var a=o[n];if(a.test(e))return!0}return!1}throw new Error(”Invalid locale ’“.concat(t,”‘“))},t.locales=void 0;var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o={”ar-AE“:/^((+?971)|0)?5[024568]d{7}$/,”ar-DZ“:/^(+?213|0)(5|6|7)d{8}$/,”ar-EG“:/^((+?20)|0)?1[012]d{8}$/,”ar-IQ“:/^(+?964|0)?7[0-9]d{8}$/,”ar-JO“:/^(+?962|0)?7[789]d{7}$/,”ar-KW“:/^(+?965)[569]d{7}$/,”ar-SA“:/^(!?(+?966)|0)?5d{8}$/,”ar-SY“:/^(!?(+?963)|0)?9d{8}$/,”ar-TN“:/^(+?216)?[2459]d{7}$/,”be-BY“:/^(+?375)?(24|25|29|33|44)d{7}$/,”bg-BG“:/^(+?359|0)?8[789]d{7}$/,”bn-BD“:/+?(88)?0?1[356789][0-9]{8}b/,”cs-CZ“:/^(+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,”da-DK“:/^(+?45)?s?d{2}s?d{2}s?d{2}s?d{2}$/,”de-DE“:/^(+49)?0?1(5[0-25-9]d|6([23]|0d?)|7([0-57-9]|6d))d{7}$/,”el-GR“:/^(+?30|0)?(69d{8})$/,”en-AU“:/^(+?61|0)4d{8}$/,”en-GB“:/^(+?44|0)7d{9}$/,”en-GH“:/^(+233|0)(20|50|24|54|27|57|26|56|23|28)d{7}$/,”en-HK“:/^(+?852-?)?[456789]d{3}-?d{4}$/,”en-IE“:/^(+?353|0)8[356789]d{7}$/,”en-IN“:/^(+?91|0)?[6789]d{9}$/,”en-KE“:/^(+?254|0)?[7]d{8}$/,”en-MU“:/^(+?230|0)?d{8}$/,”en-NG“:/^(+?234|0)?[789]d{9}$/,”en-NZ“:/^(+?64|0)[28]d{7,9}$/,”en-PK“:/^((+92)|(0092))-{0,1}d{3}-{0,1}d{7}$|^d{11}$|^d{4}-d{7}$/,”en-RW“:/^(+?250|0)?[7]d{8}$/,”en-SG“:/^(+65)?[89]d{7}$/,”en-TZ“:/^(+?255|0)?[67]d{8}$/,”en-UG“:/^(+?256|0)?[7]d{8}$/,”en-US“:/^((+1|1)?( |-)?)?(([2-9][0-9]{2})|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,”en-ZA“:/^(+?27|0)d{9}$/,”en-ZM“:/^(+?26)?09[567]d{7}$/,”es-ES“:/^(+?34)?(6d{1}|7[1234])d{7}$/,”es-MX“:/^(+?52)?(1|01)?d{10,11}$/,”es-UY“:/^(+598|0)9[1-9][d]{6}$/,”et-EE“:/^(+?372)?s?(5|8[1-4])s?([0-9]s?){6,7}$/,”fa-IR“:/^(+?98[-s]?|0)9[0-39]d[-s]?d{3?d{4}$/,”fi-FI“:/^(+?358|0)s?(4(0|1|2|4|5|6)?|50)s?(ds?){4,8}d$/,”fo-FO“:/^(+?298)?s?d{2}s?d{2}s?d{2}$/,”fr-FR“:/^(+?33|0)d{8}$/,”he-IL“:/^(+972|0)(|5|77)d{6}$/,”hu-HU“:/^(+?36)(20|30|70)d{7}$/,”id-ID“:/^(+?62|0)8(1|2|3|5|7|9|8)([s?|d]{5,11})$/,”it-IT“:/^(+?39)?s?3d{2} ?d{6,7}$/,”ja-JP“:/^(+?81|0)0[ -]?[1-9]d{2}[ -]?d{5}$/,”kk-KZ“:/^(+?7|8)?7d{9}$/,”kl-GL“:/^(+?299)?s?d{2}s?d{2}s?d{2}$/,”ko-KR“:/^((+?82)[ -]?)?0?1({1})[ -]?d{3,4}[ -]?d{4}$/,”lt-LT“:/^(+370|8)d{8}$/,”ms-MY“:/^(+?6?01){1}(([0145]{1}(-|s)?d{7,8})|([236789]{1}(s|-)?d{7}))$/,”nb-NO“:/^(+?47)?d{7}$/,”nl-BE“:/^(+?32|0)4?d{8}$/,”nn-NO“:/^(+?47)?d{7}$/,”pl-PL“:/^(+?48)? ?[5-8]d ?d{3} ?d{2} ?d{2}$/,”pt-BR“:/(?=^(+?5{2}-?|0){2}-?d{4}-?d{4}$)(^(+?5{2}-?|0){2}-?[6-9]{1}d{3}-?d{4}$)|(^(+?5{2}-?|0){2}-?9{1}d{3}-?d{4}$)/,”pt-PT“:/^(+?351)?9d{7}$/,”ro-RO“:/^(+?4?0)s?7d{2}(/|s|.|-)?d{3}(s|.|-)?d{3}$/,”ru-RU“:/^(+?7|8)?9d{9}$/,”sl-SI“:/^(+386s?|0)(d{1}s?d{3}s?d{2}s?d{2}|d{2}s?d{3}s?d{3})$/,”sk-SK“:/^(+?421)? ?[1-9]{2} ?[0-9]{3} ?[0-9]{3}$/,”sr-RS“:/^(+3816|06)[- d]{5,9}$/,”sv-SE“:/^(+?46|0)?7?[02369](?d){7}$/,”th-TH“:/^(+66|66|0)d{9}$/,”tr-TR“:/^(+?90|0)?5d{9}$/,”uk-UA“:/^(+?38|8)?0d{9}$/,”vi-VN“:/^(+?84|0)((3())|(5())|(7())|(8())|(9()))([0-9]{7})$/,”zh-CN“:/^((+|00)86)?1([0-9]|4|66|7|9)[0-9]{8}$/,”zh-TW“:/^(+?886-?|0)?9d{8}$/};o=o,o=o,o=o;var a=Object.keys(o);t.locales=a},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function(e,t){return(0,i.default)(e),function(e){var t=”\d{“.concat(e.digits_after_decimal,”}“);e.digits_after_decimal.forEach(function(e,r){0!==r&&(t=”“.concat(t,”|\d{“).concat(e,”}“))});var r=”(\“.concat(e.symbol.replace(/./g,”\.“),”)“).concat(e.require_symbol?”“:”?“),n=”\d{0,2}(\“.concat(e.thousands_separator,”\d{3})*“),i=”(“.concat([”0“,”\d*“,n].join(”|“),”)?“),o=”(\“.concat(e.decimal_separator,”(“).concat(t,”))“).concat(e.require_decimal?”“:”?“),a=i+(e.allow_decimal||e.require_decimal?o:”“);return e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?a+=”-?“:e.negative_sign_before_digits&&(a=”-?“+a)),e.allow_negative_sign_placeholder?a=”( (?!\-))?“.concat(a):e.allow_space_after_symbol?a=” ?“.concat(a):e.allow_space_after_digits&&(a+=”( (?!$))?“),e.symbol_after_digits?a+=r:a=r+a,e.allow_negatives&&(e.parens_for_negatives?a=”(\(“.concat(a,”\)|“).concat(a,”)“):e.negative_sign_before_digits||e.negative_sign_after_digits||(a=”-?“+a)),new RegExp(”^(?!-? )(?=.*\d)“.concat(a,”$“))}(t=(0,n.default)(t,a)).test(e)};var n=o(r(33)),i=o(r(0));function o(e){return e&&e.__esModule?e:{default:e}}var a={symbol:”$“,require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:”,“,decimal_separator:”.“,allow_decimal:!0,require_decimal:!1,digits_after_decimal:,allow_space_after_digits:!1};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=o.test(e);return t&&r&&t.strict?a(e):r};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^(?d{4}(?!d{2}b))((-?)((0|1)(3([12]d|0|3))?|W(d|5)(-?[1-7])?|(00|0d|d{2}|3(d|6)))([Ts](((d|2)((:?)[0-5]d)?|24:?00)(d+(?!:))?)?(17d(d+)?)?(|([+-])([01]d|2):?([0-5]d)?)?)?)?$/,a=function(e){var t=e.match(/^(d{4})-?(d{3})([ T]{1}.*|$)/);if(t){var r=Number(t),n=Number(t);return r%4==0&&r%100!=0?n<=366:n<=365}var i=e.match(/(d{4})-?(d{0,2})-?(d*)/).map(Number),o=i[1],a=i,s=i,u=a?”0“.concat(a).slice(-2):a,c=s?”0“.concat(s).slice(-2):s,f=new Date(”“.concat(o,”-“).concat(u||”01“,”-“).concat(c||”01“));return!isNaN(f.getUTCFullYear())&&(!a||!s||f.getUTCFullYear()===o&&f.getUTCMonth()+1===a&&f.getUTCDate()===s)};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),h.test(e)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/([0-9]|2)/,a=/[0-9]/,s=new RegExp(”“.concat(o.source,”:“).concat(a.source)),u=new RegExp(”(|“.concat(s.source,”)“)),c=new RegExp(”“.concat(o.source,”:“).concat(a.source,”:“).concat(/([0-9]|60)/.source).concat(/(.+)?/.source)),f=new RegExp(”“.concat(/{4}/.source,”-“).concat(/(0|1)/.source,”-“).concat(/([12]d|0|3)/.source)),l=new RegExp(”“.concat(c.source).concat(u.source)),h=new RegExp(”“.concat(f.source,”[ tT]“).concat(l.source));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,n.default)(e),(0,i.default)(a,e.toUpperCase())};var n=o(r(0)),i=o(r(97));function o(e){return e&&e.__esModule?e:{default:e}}var a=;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,n.default)(e),(0,i.default)(a,e.toUpperCase())};var n=o(r(0)),i=o(r(97));function o(e){return e&&e.__esModule?e:{default:e}}var a=;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){(0,i.default)(e);var t=e.length;if(!t||t%4!=0||o.test(e))return!1;var r=e.indexOf(”=“);return-1===r||r===t-1||r===t-2&&”=“===e};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=//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){(0,i.default)(e);var t=e.split(”,“);if(t.length<2)return!1;var r=t.shift().trim().split(”;“),n=r.shift();if(”data:“!==n.substr(0,5))return!1;var u=n.substr(5);if(”“!==u&&!o.test(u))return!1;for(var c=0;c.toLowerCase());else if(!a.test(r))return!1;for(var f=0;f))return!1;return!0};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^+/[a-z0-9-+]+$/i,a=/^+=[a-z0-9-]+$/i,s=/^*$/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){return(0,i.default)(e),o.test(e.trim())};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^magnet:?xt=urn:+:[a-z0-9]{32,40}&dn=.+&tr=.+$/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){return(0,i.default)(e),o.test(e)||a.test(e)||s.test(e)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^(application|audio|font|image|message|model|multipart|text|video)/{1,100}$/i,a=/^text/{1,100};s?charset=(”{0,70}“|[a-zA-Z0-9.-+]{0,70})(s?([a-zA-Z0-9.-+s]{1,20}))?$/i,s=/^multipart/{1,100}(;s?(boundary|charset)=(”{0,70}“|[a-zA-Z0-9.-+]{0,70})(s?([a-zA-Z0-9.-+s]{1,20}))?){0,2}$/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){if((0,i.default)(e),!e.includes(”,“))return!1;var t=e.split(”,“);return o.test(t)&&a.test(t)};var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^(??(90(.0+)?|?d(.d+)?)$/,a=/^s??(180(.0+)?|1d(.d+)?|d{1,2}(.d+)?))?$/;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){if((0,i.default)(e),t in u)return u.test(e);if(”any“===t){for(var r in u)if(u.hasOwnProperty®){var n=u;if(n.test(e))return!0}return!1}throw new Error(”Invalid locale '“.concat(t,”'“))},t.locales=void 0;var n,i=(n=r(0))&&n.__esModule?n:{default:n};var o=/^d{4}$/,a=/^d{5}$/,s=/^d{6}$/,u={AD:/^ADd{3}$/,AT:o,AU:o,BE:o,BG:o,CA:/^d[s-]?dd$/i,CH:o,CZ:/^d{3}s?d{2}$/,DE:a,DK:o,DZ:a,EE:a,ES:a,FI:a,FR:/^d{2}s?d{3}$/,GB:/^(girs?0aa|{1,2}d?s?(d{2})?)$/i,GR:/^d{3}s?d{2}$/,HR:/^(d{4}$)/,HU:o,IL:a,IN:s,IS:/^d{3}$/,IT:a,JP:/^d{3}-d{4}$/,KE:a,LI:/^(948|949)$/,LT:/^LT-d{5}$/,LU:o,LV:/^LV-d{4}$/,MX:a,NL:/^d{4}s?{2}$/i,NO:o,PL:/^d{2}-d{3}$/,PT:/^d{4}-d{3}?$/,RO:s,RU:s,SA:a,SE:/^d{3}s?d{2}$/,SI:o,SK:/^d{3}s?d{2}$/,TN:o,TW:/^d{3}(d{2})?$/,UA:a,US:/^d{5}(-d{4})?$/,ZA:o,ZM:a},c=Object.keys(u);t.locales=c},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0}),t.default=function(e,t){return(0,n.default)((0,i.default)(e,t),t)};var n=o(r(169)),i=o(r(168));function o(e){return e&&e.__esModule?e:{default: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){return(0,i.default)(e),e.replace(/&/g,”&amp;“).replace(/”/g,“&quot;”).replace(/'/g,“&#x27;”).replace(/</g,“&lt;”).replace(/>/g,“&gt;”).replace(///g,“&#x2F;”).replace(/\/g,“&#x5C;”).replace(/`/g,“&#96;”)};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){return(0,i.default)(e),e.replace(/&amp;/g,“&”).replace(/&quot;/g,'“').replace(/&#x27;/g,”'“).replace(/&lt;/g,”<“).replace(/&gt;/g,”>“).replace(/&#x2F;/g,”/“).replace(/&#x5C;/g,”\“).replace(/&#96;/g,”`“)};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,n.default)(e);var r=t?”\x00-\x09\x0B\x0C\x0E-\x1F\x7F“:”\x00-\x1F\x7F“;return(0,i.default)(e,r)};var n=o(r(0)),i=o(r(170));function o(e){return e&&e.__esModule?e:{default: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){return(0,i.default)(e),e.replace(new RegExp(”+“),”g“),”“)};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=e.length-1;r>=0;r–)if(-1===t.indexOf(e))return!1;return!0};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){t=(0,i.default)(t,o);var r=e.split(”@“),n=r.pop(),l=;if(l=l.toLowerCase(),”gmail.com“===l||”googlemail.com“===l){if(t.gmail_remove_subaddress&&(l=l.split(”+“)),t.gmail_remove_dots&&(l=l.replace(/.+/g,f)),!l.length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(l=l.toLowerCase()),l=t.gmail_convert_googlemaildotcom?”gmail.com“:l}else if(a.indexOf(l)>=0){if(t.icloud_remove_subaddress&&(l=l.split(”+“)),!l.length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(l=l.toLowerCase())}else if(s.indexOf(l)>=0){if(t.outlookdotcom_remove_subaddress&&(l=l.split(”+“)),!l.length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(l=l.toLowerCase())}else if(u.indexOf(l)>=0){if(t.yahoo_remove_subaddress){var h=l.split(”-“);l=h.length>1?h.slice(0,-1).join(”-“):h}if(!l.length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(l=l.toLowerCase())}else c.indexOf(l)>=0?((t.all_lowercase||t.yandex_lowercase)&&(l=l.toLowerCase()),l=”yandex.ru“):t.all_lowercase&&(l=l.toLowerCase());return l.join(”@“)};var n,i=(n=r(33))&&n.__esModule?n:{default:n};var o={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=,s=,u=,c=;function f(e){return e.length>1?e:”“}e.exports=t.default,e.exports.default=t.default},function(e,t,r){”use strict“;(function(e){Object.defineProperty(t,”__esModule“,{value:!0}),t.derToJose=function(t,r){t=f(t);var i=u®,o=c((t=n.decode(t,”der“)).r,i),a=c(t.s,i);return s=t=(t=e.concat(,o.length+a.length)).toString(”base64“),t=s.replace(/+/g,”-“).replace(///g,”_“).replace(/=/g,”“);var s},t.joseToDer=function(t,r){t=f(t);var n=u®,a=t.length;if(a!==2*n)throw new TypeError('”'r'“ signatures must be ”'+2*n+'“ bytes, saw ”'a'“');var s=l(t.slice(0,n)),c=l(t.slice(n)),h=2+s.length+1+1+c.length,d=h<128;t=e.alloc((d?2:3)+h);var p=0;t=32|i,d?t=h:(t=129,t=255&h);return t=0|o,t=s.length,s.copy(t,p),p+=s.length,t=0|o,t=c.length,c.copy(t,p),t};var n=r(50).define(”ECDSASigValue“,function(){this.seq().obj(this.key(”r“).int(),this.key(”s“).int())}),i=16,o=2;function a(e){return(e/8|0)+(e%8==0?0:1)}var s={ES256:a(256),ES384:a(384),ES512:a(512)};function u(e){var t=s;if(t)return t;throw new Error('Unknown algorithm ”'e'“')}function c(t,r){return e.from(t.toString(”hex“,r),”hex“)}function f(t){if(e.isBuffer(t))return e.from(t);if(”string“==typeof t)return e.from(t,”base64“);throw new TypeError(”ECDSA signature must be a Base64 string or a Buffer“)}function l(t){for(var r=0,n=t.length;r;)++r;if(t>=128&&–r<0){var i=t;return(t=e.alloc(1+t.length))=0,i.copy(t,1),t}return 0===r?t:t=t.slice®}}).call(this,r(1).Buffer)},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)}Object.defineProperty(t,”__esModule“,{value:!0}),t.TokenVerifier=void 0;var i,o=”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)},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,”value“in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),s=r(80),u=(i=s)&&i.__esModule?i:{default:i},c=r(81),f=r(69);t.TokenVerifier=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError(”Cannot call a class as a function“)}(this,e),!t||!r)throw new f.MissingParametersError(”a signing algorithm and public key are required“);if(”string“!=typeof t)throw”signing algorithm parameter must be a string“;if(t=t.toUpperCase(),!c.cryptoClients.hasOwnProperty(t))throw”invalid signing algorithm“;this.tokenType=”JWT“,this.cryptoClient=c.cryptoClients,this.rawPublicKey=r}return a(e,[{key:”verify“,value:function(e){return”string“==typeof e?this.verifyCompact(e):”object“===(void 0===e?”undefined“:o(e))&&this.verifyExpanded(e)}},{key:”verifyCompact“,value:function(e){var t=e.split(”.“),r=t+”.“+t,n=this.cryptoClient.createHash®,i=this.cryptoClient.loadSignature(t);return this.cryptoClient.verifyHash(n,i,this.rawPublicKey)}},{key:”verifyExpanded“,value:function(e){var t=this,r=.join(”.“),n=this.cryptoClient.createHash®,i=!0;return e.signature.map(function(e){var r=t.cryptoClient.loadSignature(e);t.cryptoClient.verifyHash(n,r,t.rawPublicKey)||(i=!1)}),i}}]),e}()},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)}Object.defineProperty(t,”__esModule“,{value:!0});var 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)};t.decodeToken=function(e){if(”string“==typeof e){var t=e.split(”.“),r=JSON.parse(s.default.decode(t)),n=JSON.parse(s.default.decode(t)),o=t;return{header:r,payload:n,signature:o}}if(”object“===(void 0===e?”undefined“:i(e))){var a=e.payload;”{“!==e.payload&&(a=s.default.decode(a));var u=[];return e.header.map(function(e){var t=JSON.parse(s.default.decode(e));u.push(t)}),{header:u,payload:JSON.parse(a),signature:e.signature}}};var o,a=r(80),s=(o=a)&&o.__esModule?o:{default:o}},function(e,t,r){(function(t){var n=r(63),i=t.alloc(1,1),o=t.alloc(1,0);e.exports=function(e,r,a,s){var u=t.alloc(32,0),c=t.alloc(32,1);u=n(”sha256“,u).update©.update(o).update®.update(e).digest(),c=n(”sha256“,u).update©.digest(),u=n(”sha256“,u).update©.update(i).update®.update(e).digest(),c=n(”sha256“,u).update©.digest();for(var f=c=n(”sha256“,u).update©.digest();!s(f)||!a(f);)u=n(”sha256“,u).update©.update(o).digest(),c=n(”sha256“,u).update©.digest(),f=c=n(”sha256“,u).update©.digest();return f}}).call(this,r(1).Buffer)},function(e,t,r){var n=r(6);function i(e){return e<n.OP_PUSHDATA1?1:e<=255?2:e<=65535?3:5}e.exports={encodingLength:i,encode:function(e,t,r){var o=i(t);return 1===o?e.writeUInt8(t,r):2===o?(e.writeUInt8(n.OP_PUSHDATA1,r),e.writeUInt8(t,r+1)):3===o?(e.writeUInt8(n.OP_PUSHDATA2,r),e.writeUInt16LE(t,r+1)):(e.writeUInt8(n.OP_PUSHDATA4,r),e.writeUInt32LE(t,r+1)),o},decode:function(e,t){var r,i,o=e.readUInt8(t);if(o<n.OP_PUSHDATA1)r=o,i=1;else if(o===n.OP_PUSHDATA1){if(t+2>e.length)return null;r=e.readUInt8(t+1),i=2}else if(o===n.OP_PUSHDATA2){if(t+3>e.length)return null;r=e.readUInt16LE(t+1),i=3}else{if(t+5>e.length)return null;if(o!==n.OP_PUSHDATA4)throw new Error(”Unexpected opcode“);r=e.readUInt32LE(t+1),i=5}return{opcode:o,number:r,size:i}}}},function(e,t,r){(function(t){var n=r(98),i=r(172);function o(e){return t.isBuffer(e)}function a(e){return”string“==typeof e&&/^({2})+$/i.test(e)}function s(e,t){var r=e.toJSON();function n(n){if(!e(n))return!1;if(n.length===t)return!0;throw i.tfCustomError(r+”(Length: “t”)“,r+”(Length: “n.length”)“)}return n.toJSON=function(){return r},n}var u=s.bind(null,n.Array),c=s.bind(null,o),f=s.bind(null,a),l=s.bind(null,n.String);var h=Math.pow(2,53)-1;var d={ArrayN:u,Buffer:o,BufferN:c,Finite:function(e){return”number“==typeof e&&isFinite(e)},Hex:a,HexN:f,Int8:function(e){return e<<24>>24===e},Int16:function(e){return e<<16>>16===e},Int32:function(e){return(0|e)===e},Int53:function(e){return”number“==typeof e&&e>=-h&&e<=h&&Math.floor(e)===e},Range:function(e,t,r){function i(n,i){return r(n,i)&&n>e&&n<t}return r=r||n.Number,i.toJSON=function(){return”“.concat(r.toJSON(),” between [“).concat(e,”, “).concat(t,”]“)},i},StringN:l,UInt8:function(e){return(255&e)===e},UInt16:function(e){return(65535&e)===e},UInt32:function(e){return e>>>0===e},UInt53:function(e){return”number“==typeof e&&e>=0&&e<=h&&Math.floor(e)===e}};for(var p in d)d.toJSON=function(e){return e}.bind(null,p);e.exports=d}).call(this,r(1).Buffer)},function(e,t,r){var n=r(6),i={};for(var o in n){i[n]=o}e.exports=i},function(e,t,r){var n=r(171),i=r(2).Buffer,o=r(10),a=r(19),s=i.alloc(1,0);function u(e){for(var t=0;0===e;)++t;return t===e.length?s:128&(e=e.slice(t))?i.concat(,1+e.length):e}function c(e){0===e&&(e=e.slice(1));var t=i.alloc(32,0),r=Math.max(0,32-e.length);return e.copy(t,r),t}e.exports={decode:function(e){var t=e.readUInt8(e.length-1),r=-129&t;if(r<=0||r>=4)throw new Error(”Invalid hashType “+t);var o=n.decode(e.slice(0,-1)),a=c(o.r),s=c(o.s);return{signature:i.concat(,64),hashType:t}},encode:function(e,t){o({signature:a.BufferN(64),hashType:a.UInt8},{signature:e,hashType:t});var r=-129&t;if(r<=0||r>=4)throw new Error(”Invalid hashType “+t);var s=i.allocUnsafe(1);s.writeUInt8(t,0);var c=u(e.slice(0,32)),f=u(e.slice(32,64));return i.concat()}}},function(e,t,r){var n=r(2).Buffer,i=r(28),o=r(387),a=r(10),s=r(19),u=r(174),c=r(99);function f(){this.version=1,this.prevHash=null,this.merkleRoot=null,this.timestamp=0,this.bits=0,this.nonce=0}f.fromBuffer=function(e){if(e.length<80)throw new Error(”Buffer too small (< 80 bytes)“);var t=0;function r®{return t+=r,e.slice(t-r,t)}function n(){var r=e.readUInt32LE(t);return t+=4,r}var i=new f;if(i.version=function(){var r=e.readInt32LE(t);return t+=4,r}(),i.prevHash=r(32),i.merkleRoot=r(32),i.timestamp=n(),i.bits=n(),i.nonce=n(),80===e.length)return i;function o(){var r=c.fromBuffer(e.slice(t),!0);return t+=r.byteLength(),r}var a,s=(a=u.decode(e,t),t+=u.decode.bytes,a);i.transactions=[];for(var l=0;l<s;++l){var h=o();i.transactions.push(h)}return i},f.prototype.byteLength=function(e){return e||!this.transactions?80:80+u.encodingLength(this.transactions.length)+this.transactions.reduce(function(e,t){return e+t.byteLength()},0)},f.fromHex=function(e){return f.fromBuffer(n.from(e,”hex“))},f.prototype.getHash=function(){return i.hash256(this.toBuffer(!0))},f.prototype.getId=function(){return this.getHash().reverse().toString(”hex“)},f.prototype.getUTCDate=function(){var e=new Date(0);return e.setUTCSeconds(this.timestamp),e},f.prototype.toBuffer=function(e){var t,r=n.allocUnsafe(this.byteLength(e)),i=0;function o(e){e.copy(r,i),i+=e.length}function a(e){r.writeUInt32LE(e,i),i+=4}return t=this.version,r.writeInt32LE(t,i),i+=4,o(this.prevHash),o(this.merkleRoot),a(this.timestamp),a(this.bits),a(this.nonce),e||!this.transactions?r:(u.encode(this.transactions.length,r,i),i+=u.encode.bytes,this.transactions.forEach(function(e){var t=e.byteLength();e.toBuffer(r,i),i+=t}),r)},f.prototype.toHex=function(e){return this.toBuffer(e).toString(”hex“)},f.calculateTarget=function(e){var t=((4278190080&e)>>24)-3,r=8388607&e,i=n.alloc(32,0);return i.writeUIntBE(r,29-t,3),i},f.calculateMerkleRoot=function(e){if(a(,e),0===e.length)throw TypeError(”Cannot compute merkle root for zero transactions“);var t=e.map(function(e){return e.getHash()});return o(t,i.hash256)},f.prototype.checkMerkleRoot=function(){if(!this.transactions)return!1;var e=f.calculateMerkleRoot(this.transactions);return 0===this.merkleRoot.compare(e)},f.prototype.checkProofOfWork=function(){var e=this.getHash().reverse(),t=f.calculateTarget(this.bits);return e.compare(t)<=0},e.exports=f},function(e,t,r){(function(t){e.exports=function(e,r){if(!Array.isArray(e))throw TypeError(”Expected values Array“);if(”function“!=typeof r)throw TypeError(”Expected digest Function“);for(var n=e.length,i=e.concat();n>1;){for(var o=0,a=0;a<n;a+=2,++o){var s=i,u=a+1===n?s:i,c=t.concat();i=r©}n=o}return i}}).call(this,r(1).Buffer)},function(e,t){function r(e,t){if(”number“!=typeof e)throw new Error(”cannot write a non-number as a number“);if(e<0)throw new Error(”specified a negative value for writing an unsigned value“);if(e>t)throw new Error(”RangeError: value out of range“);if(Math.floor(e)!==e)throw new Error(”value has a fractional component“)}e.exports={readUInt64LE:function(e,t){var n=e.readUInt32LE(t),i=e.readUInt32LE(t+4);return r((i*=4294967296)+n,9007199254740991),i+n},writeUInt64LE:function(e,t,n){return r(t,9007199254740991),e.writeInt32LE(-1&t,n),e.writeUInt32LE(Math.floor(t/4294967296),n+4),n+8}}},function(e,t,r){”use strict“;var n=r(390),i=r(2).Buffer;e.exports=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),i=e®;if(!(n^i|n^i|n^i|n^i))return r}return{encode:function(t){var r=e(t);return n.encode(i.concat(,t.length+4))},decode:function(e){var r=t(n.decode(e));if(!r)throw new Error(”Invalid checksum“);return r},decodeUnsafe:function(e){var r=n.decodeUnsafe(e);if®return t®}}}},function(e,t,r){var n=r(391);e.exports=n(”123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz“)},function(e,t,r){var n=r(2).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError(”Alphabet too long“);var t=new Uint8Array(256);t.fill(255);for(var r=0;r<e.length;r++){var i=e.charAt®,o=i.charCodeAt(0);if(255!==t)throw new TypeError(i+” is ambiguous“);t=r}var a=e.length,s=e.charAt(0),u=Math.log(a)/Math.log(256),c=Math.log(256)/Math.log(a);function f(e){if(”string“!=typeof e)throw new TypeError(”Expected String“);if(0===e.length)return n.alloc(0);var r=0;if(” “!==e){for(var i=0,o=0;e===s;)i++,r++;for(var c=(e.length-r)*u+1>>>0,f=new Uint8Array©;e;){var l=t;if(255===l)return;for(var h=0,d=c-1;(0!==l||h>>>0,f=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error(”Non-zero carry“);o=h,r++}if(” “!==e){for(var p=c-o;p!==c&&0===f;)p++;var b=n.allocUnsafe(i+(c-p));b.fill(0,0,i);for(var y=i;p!==c;)b=f;return b}}}return{encode:function(t){if(!n.isBuffer(t))throw new TypeError(”Expected Buffer“);if(0===t.length)return”“;for(var r=0,i=0,o=0,u=t.length;o!==u&&0===t;)o++,r++;for(var f=(u-o)*c+1>>>0,l=new Uint8Array(f);o!==u;){for(var h=t,d=0,p=f-1;(0!==h||d>>>0,l=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error(”Non-zero carry“);i=d,o++}for(var b=f-i;b!==f&&0===l;)b++;for(var y=s.repeat®;b);return y},decodeUnsafe:f,decode:function(e){var t=f(e);if(t)return t;throw new Error(”Non-base“a” character“)}}}},function(e,t,r){var n=r(2).Buffer,i=r(177),o=r(28),a=r(5),s=r(15),u=r(6),c=r(101),f=r(10),l=r(19),h=r(400),d=h.types,p=r(175),b=r(99);function y(e,t){f(l.Buffer,e);var r=h.output(e);switch®{case d.P2PKH:if(!t)return{type:r};var n=c.p2pkh({output:e}).hash,i=o.hash160(t);return n.equals(i)?{type:r,pubkeys:,signatures:[void 0]}:{type:r};case d.P2WPKH:if(!t)return{type:r};var a=c.p2wpkh({output:e}).hash,s=o.hash160(t);return a.equals(s)?{type:r,pubkeys:,signatures:[void 0]}:{type:r};case d.P2PK:return{type:r,pubkeys:,signatures:[void 0]};case d.P2MS:var u=c.p2ms({output:e});return{type:r,pubkeys:u.pubkeys,signatures:u.pubkeys.map(function(){}),maxSignatures:u.m}}return{type:r}}function m(e,t){this.__prevTxSet={},this.network=e||s.bitcoin,this.maximumFeeRate=t||2500,this.__inputs=[],this.__tx=new b,this.__tx.version=2}function g(e){return void 0!==e.signScript&&void 0!==e.signType&&void 0!==e.pubkeys&&void 0!==e.signatures&&e.signatures.length===e.pubkeys.length&&e.pubkeys.length>0&&(!1===e.hasWitness||void 0!==e.value)}function v(e){return e.readUInt8(e.length-1)}m.prototype.setLockTime=function(e){if(f(l.UInt32,e),this.__inputs.some(function(e){return!!e.signatures&&e.signatures.some(function(e){return e})}))throw new Error(”No, this would invalidate signatures“);this.__tx.locktime=e},m.prototype.setVersion=function(e){f(l.UInt32,e),this.__tx.version=e},m.fromTransaction=function(e,t){var r=new m(t);return r.setVersion(e.version),r.setLockTime(e.locktime),e.outs.forEach(function(e){r.addOutput(e.script,e.value)}),e.ins.forEach(function(e){r.__addInputUnsafe(e.hash,e.index,{sequence:e.sequence,script:e.script,witness:e.witness})}),r.__inputs.forEach(function(t,r){!function(e,t,r){if(e.redeemScriptType===d.P2MS&&e.redeemScript&&e.pubkeys.length!==e.signatures.length){var n=e.signatures.concat();e.signatures=e.pubkeys.map(function(i){var o,s=p.fromPublicKey(i);return n.some(function(i,u){if(!i)return!1;var c=a.signature.decode(i),f=t.hashForSignature(r,e.redeemScript,c.hashType);return!!s.verify(f,c.signature)&&(n=void 0,o=i,!0)}),o})}}(t,e,r)}),r},m.prototype.addInput=function(e,t,r,i){if(!this.__canModifyInputs())throw new Error(”No, this would invalidate signatures“);var o;if(”string“==typeof e)e=n.from(e,”hex“).reverse();else if(e instanceof b){var a=e.outs;i=a.script,o=a.value,e=e.getHash()}return this.__addInputUnsafe(e,t,{sequence:r,prevOutScript:i,value:o})},m.prototype.__addInputUnsafe=function(e,t,r){if(b.isCoinbaseHash(e))throw new Error(”coinbase inputs not supported“);var n=e.toString(”hex“)+”:“+t;if(void 0!==this.__prevTxSet)throw new Error(”Duplicate TxOut: “+n);var i={};if(void 0!==r.script&&(i=function e(t,r,n,i){if(0===t.length&&0===r.length)return{};if(!n){var o=h.input(t,!0),s=h.witness(r,!0);o===d.NONSTANDARD&&(o=void 0),s===d.NONSTANDARD&&(s=void 0),n=o||s}switch(n){case d.P2WPKH:var u=c.p2wpkh({witness:r}),f=u.output,l=u.pubkey,p=u.signature;return{prevOutScript:f,prevOutType:d.P2WPKH,pubkeys:,signatures:};case d.P2PKH:var b=c.p2pkh({input:t}),y=b.output,m=b.pubkey,g=b.signature;return{prevOutScript:y,prevOutType:d.P2PKH,pubkeys:,signatures:};case d.P2PK:var v=c.p2pk({input:t}).signature;return{prevOutType:d.P2PK,pubkeys:[void 0],signatures:};case d.P2MS:var _=c.p2ms({input:t,output:i},{allowIncomplete:!0}),w=_.m,S=_.pubkeys,k=_.signatures;return{prevOutType:d.P2MS,pubkeys:S,signatures:k,maxSignatures:w}}if(n===d.P2SH){var x=c.p2sh({input:t,witness:r}),E=x.output,A=x.redeem,P=h.output(A.output),O=e(A.input,A.witness,P,A.output);return O.prevOutType?{prevOutScript:E,prevOutType:d.P2SH,redeemScript:A.output,redeemScriptType:O.prevOutType,witnessScript:O.witnessScript,witnessScriptType:O.witnessScriptType,pubkeys:O.pubkeys,signatures:O.signatures}:{}}if(n===d.P2WSH){var T,j=c.p2wsh({input:t,witness:r}),M=j.output,I=j.redeem,B=h.output(I.output);return(T=B===d.P2WPKH?e(I.input,I.witness,B):e(a.compile(I.witness),[],B,I.output)).prevOutType?{prevOutScript:M,prevOutType:d.P2WSH,witnessScript:I.output,witnessScriptType:T.prevOutType,pubkeys:T.pubkeys,signatures:T.signatures}:{}}return{prevOutType:d.NONSTANDARD,prevOutScript:t}}(r.script,r.witness||)),void 0!==r.value&&(i.value=r.value),!i.prevOutScript&&r.prevOutScript){var o;if(!i.pubkeys&&!i.signatures){var s=y(r.prevOutScript);s.pubkeys&&(i.pubkeys=s.pubkeys,i.signatures=s.signatures),o=s.type}i.prevOutScript=r.prevOutScript,i.prevOutType=o||h.output(r.prevOutScript)}var u=this.__tx.addInput(e,t,r.sequence,r.scriptSig);return this.__inputs=i,this.__prevTxSet=!0,u},m.prototype.addOutput=function(e,t){if(!this.__canModifyOutputs())throw new Error(”No, this would invalidate signatures“);return”string“==typeof e&&(e=i.toOutputScript(e,this.network)),this.__tx.addOutput(e,t)},m.prototype.build=function(){return this.__build(!1)},m.prototype.buildIncomplete=function(){return this.__build(!0)},m.prototype.__build=function(e){if(!e){if(!this.__tx.ins.length)throw new Error(”Transaction has no inputs“);if(!this.__tx.outs.length)throw new Error(”Transaction has no outputs“)}var t=this.__tx.clone();if(this.__inputs.forEach(function(r,n){if(!r.prevOutType&&!e)throw new Error(”Transaction is not complete“);var i=function e(t,r,n){var i=r.pubkeys||[],o=r.signatures||;switch(t){case d.P2PKH:if(0===i.length)break;if(0===o.length)break;return c.p2pkh({pubkey:i,signature:o});case d.P2WPKH:if(0===i.length)break;if(0===o.length)break;return c.p2wpkh({pubkey:i,signature:o});case d.P2PK:if(0===i.length)break;if(0===o.length)break;return c.p2pk({signature:o});case d.P2MS:var a=r.maxSignatures;o=n?o.map(function(e){return e||u.OP_0}):o.filter(function(e){return e});var s=!n||a===o.length;return c.p2ms({m:a,pubkeys:i,signatures:o},{allowIncomplete:n,validate:s});case d.P2SH:var f=e(r.redeemScriptType,r,n);if(!f)return;return c.p2sh({redeem:{output:f.output||r.redeemScript,input:f.input,witness:f.witness}});case d.P2WSH:var l=e(r.witnessScriptType,r,n);if(!l)return;return c.p2wsh({redeem:{output:r.witnessScript,input:l.input,witness:l.witness}})}}(r.prevOutType,r,e);if(i)t.setInputScript(n,i.input),t.setWitness(n,i.witness);else{if(!e&&r.prevOutType===d.NONSTANDARD)throw new Error(”Unknown input type“);if(!e)throw new Error(”Not enough information“)}}),!e&&this.__overMaximumFees(t.virtualSize()))throw new Error(”Transaction has absurd fees“);return t},m.prototype.sign=function(e,t,r,n,i,o){if(t.network&&t.network!==this.network)throw new TypeError(”Inconsistent network“);if(!this.__inputs)throw new Error(”No input at index: “+e);if(n=n||b.SIGHASH_ALL,this.__needsOutputs(n))throw new Error(”Transaction needs outputs“);var s=this.__inputs;if(void 0!==s.redeemScript&&r&&!s.redeemScript.equals®)throw new Error(”Inconsistent redeemScript“);var u,h=t.publicKey||t.getPublicKey();if(!g(s)){if(void 0!==i){if(void 0!==s.value&&s.value!==i)throw new Error(”Input didn't match witnessValue“);f(l.Satoshi,i),s.value=i}if(!g(s)){var p=function(e,t,r,n){if(r&&n){var i=c.p2wsh({redeem:{output:n}}),o=c.p2wsh({output:r}),s=c.p2sh({redeem:{output:r}}),u=c.p2sh({redeem:i});if(!i.hash.equals(o.hash))throw new Error(”Witness script inconsistent with prevOutScript“);if(!s.hash.equals(u.hash))throw new Error(”Redeem script inconsistent with prevOutScript“);var f=y(i.redeem.output,t);if(!f.pubkeys)throw new Error(f.type+” not supported as witnessScript (“+a.toASM(n)+”)“);e.signatures&&e.signatures.some(function(e){return e})&&(f.signatures=e.signatures);var l=n;if(f.type===d.P2WPKH)throw new Error(”P2SH(P2WSH(P2WPKH)) is a consensus failure“);return{redeemScript:r,redeemScriptType:d.P2WSH,witnessScript:n,witnessScriptType:f.type,prevOutType:d.P2SH,prevOutScript:s.output,hasWitness:!0,signScript:l,signType:f.type,pubkeys:f.pubkeys,signatures:f.signatures,maxSignatures:f.maxSignatures}}if®{var h=c.p2sh({redeem:{output:r}});if(e.prevOutScript){var p;try{p=c.p2sh({output:e.prevOutScript})}catch(e){throw new Error(”PrevOutScript must be P2SH“)}if(!h.hash.equals(p.hash))throw new Error(”Redeem script inconsistent with prevOutScript“)}var b=y(h.redeem.output,t);if(!b.pubkeys)throw new Error(b.type+” not supported as redeemScript (“+a.toASM®+”)“);e.signatures&&e.signatures.some(function(e){return e})&&(b.signatures=e.signatures);var m=r;return b.type===d.P2WPKH&&(m=c.p2pkh({pubkey:b.pubkeys}).output),{redeemScript:r,redeemScriptType:b.type,prevOutType:d.P2SH,prevOutScript:h.output,hasWitness:b.type===d.P2WPKH,signScript:m,signType:b.type,pubkeys:b.pubkeys,signatures:b.signatures,maxSignatures:b.maxSignatures}}if(n){var g=c.p2wsh({redeem:{output:n}});if(e.prevOutScript){var v=c.p2wsh({output:e.prevOutScript});if(!g.hash.equals(v.hash))throw new Error(”Witness script inconsistent with prevOutScript“)}var _=y(g.redeem.output,t);if(!_.pubkeys)throw new Error(_.type+” not supported as witnessScript (“+a.toASM(n)+”)“);e.signatures&&e.signatures.some(function(e){return e})&&(_.signatures=e.signatures);var w=n;if(_.type===d.P2WPKH)throw new Error(”P2WSH(P2WPKH) is a consensus failure“);return{witnessScript:n,witnessScriptType:_.type,prevOutType:d.P2WSH,prevOutScript:g.output,hasWitness:!0,signScript:w,signType:_.type,pubkeys:_.pubkeys,signatures:_.signatures,maxSignatures:_.maxSignatures}}if(e.prevOutType&&e.prevOutScript){if(e.prevOutType===d.P2SH)throw new Error(”PrevOutScript is “e.prevOutType”, requires redeemScript“);if(e.prevOutType===d.P2WSH)throw new Error(”PrevOutScript is “e.prevOutType”, requires witnessScript“);if(!e.prevOutScript)throw new Error(”PrevOutScript is missing“);var S=y(e.prevOutScript,t);if(!S.pubkeys)throw new Error(S.type+” not supported (“+a.toASM(e.prevOutScript)+”)“);e.signatures&&e.signatures.some(function(e){return e})&&(S.signatures=e.signatures);var k=e.prevOutScript;return S.type===d.P2WPKH&&(k=c.p2pkh({pubkey:S.pubkeys}).output),{prevOutType:S.type,prevOutScript:e.prevOutScript,hasWitness:S.type===d.P2WPKH,signScript:k,signType:S.type,pubkeys:S.pubkeys,signatures:S.signatures,maxSignatures:S.maxSignatures}}var x=c.p2pkh({pubkey:t}).output;return{prevOutType:d.P2PKH,prevOutScript:x,hasWitness:!1,signScript:x,signType:d.P2PKH,pubkeys:,signatures:[void 0]}}(s,h,r,o);Object.assign(s,p)}if(!g(s))throw Error(s.prevOutType+” not supported“)}if(u=s.hasWitness?this.__tx.hashForWitnessV0(e,s.signScript,s.value,n):this.__tx.hashForSignature(e,s.signScript,n),!s.pubkeys.some(function(e,r){if(!h.equals(e))return!1;if(s.signatures)throw new Error(”Signature already exists“);if(33!==h.length&&s.hasWitness)throw new Error(”BIP143 rejects uncompressed public keys in P2WPKH or P2WSH“);var i=t.sign(u);return s.signatures=a.signature.encode(i,n),!0}))throw new Error(”Key pair cannot sign for this input“)},m.prototype.__canModifyInputs=function(){return this.__inputs.every(function(e){return!e.signatures||e.signatures.every(function(e){return!e||v(e)&b.SIGHASH_ANYONECANPAY})})},m.prototype.__needsOutputs=function(e){return e===b.SIGHASH_ALL?0===this.__tx.outs.length:0===this.__tx.outs.length&&this.__inputs.some(function(e){return!!e.signatures&&e.signatures.some(function(e){return!!e&&!(v(e)&b.SIGHASH_NONE)})})},m.prototype.__canModifyOutputs=function(){var e=this.__tx.ins.length,t=this.__tx.outs.length;return this.__inputs.every(function®{return void 0===r.signatures||r.signatures.every(function®{if(!r)return!0;var n=31&v®;return n===b.SIGHASH_NONE||(n===b.SIGHASH_SINGLE?e<=t:void 0)})})},m.prototype.__overMaximumFees=function(e){return(this.__inputs.reduce(function(e,t){return e+(t.value>>>0)},0)-this.__tx.outs.reduce(function(e,t){return e+t.value},0))/e>this.maximumFeeRate},e.exports=m},function(e,t,r){var n=r(35),i=r(10),o=r(6),a=r(5),s=r(15).bitcoin;e.exports=function(e,t){if(!e.data&&!e.output)throw new TypeError(”Not enough data“);t=Object.assign({validate:!0},t||{}),i({network:i.maybe(i.Object),output:i.maybe(i.Buffer),data:i.maybe(i.arrayOf(i.Buffer))},e);var r={network:e.network||s};if(n.prop(r,”output“,function(){if(e.data)return a.compile(.concat(e.data))}),n.prop(r,”data“,function(){if(e.output)return a.decompile(e.output).slice(1)}),t.validate&&e.output){var u=a.decompile(e.output);if(u!==o.OP_RETURN)throw new TypeError(”Output is invalid“);if(!u.slice(1).every(i.Buffer))throw new TypeError(”Output is invalid“);if(e.data&&!function(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t)})}(e.data,r.data))throw new TypeError(”Data mismatch“)}return Object.assign(r,e)}},function(e,t,r){var n=r(35),i=r(10),o=r(6),a=r(34),s=r(5),u=r(15).bitcoin,c=o.OP_RESERVED;function f(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t)})}e.exports=function(e,t){if(!(e.input||e.output||e.pubkeys&&void 0!==e.m||e.signatures))throw new TypeError(”Not enough data“);function r(e){return s.isCanonicalScriptSignature(e)||t.allowIncomplete&&e===o.OP_0}t=Object.assign({validate:!0},t||{}),i({network:i.maybe(i.Object),m:i.maybe(i.Number),n:i.maybe(i.Number),output:i.maybe(i.Buffer),pubkeys:i.maybe(i.arrayOf(a.isPoint)),signatures:i.maybe(i.arrayOf®),input:i.maybe(i.Buffer)},e);var l,h={network:e.network||u},d=!1;function p(e){d||(d=!0,l=s.decompile(e),h.m=l-c,h.n=l-c,h.pubkeys=l.slice(1,-2))}if(n.prop(h,”output“,function(){if(e.m&&h.n&&e.pubkeys)return s.compile([].concat(c+e.m,e.pubkeys,c+h.n,o.OP_CHECKMULTISIG))}),n.prop(h,”m“,function(){if(h.output)return p(h.output),h.m}),n.prop(h,”n“,function(){if(h.pubkeys)return h.pubkeys.length}),n.prop(h,”pubkeys“,function(){if(e.output)return p(e.output),h.pubkeys}),n.prop(h,”signatures“,function(){if(e.input)return s.decompile(e.input).slice(1)}),n.prop(h,”input“,function(){if(e.signatures)return s.compile(.concat(e.signatures))}),n.prop(h,”witness“,function(){if(h.input)return[]}),t.validate){if(e.output){if(p(e.output),!i.Number(l))throw new TypeError(”Output is invalid“);if(!i.Number(l))throw new TypeError(”Output is invalid“);if(l!==o.OP_CHECKMULTISIG)throw new TypeError(”Output is invalid“);if(h.m<=0||h.n>16||h.m>h.n||h.n!==l.length-3)throw new TypeError(”Output is invalid“);if(!h.pubkeys.every(function(e){return a.isPoint(e)}))throw new TypeError(”Output is invalid“);if(void 0!==e.m&&e.m!==h.m)throw new TypeError(”m mismatch“);if(void 0!==e.n&&e.n!==h.n)throw new TypeError(”n mismatch“);if(e.pubkeys&&!f(e.pubkeys,h.pubkeys))throw new TypeError(”Pubkeys mismatch“)}if(e.pubkeys){if(void 0!==e.n&&e.n!==e.pubkeys.length)throw new TypeError(”Pubkey count mismatch“);if(h.n=e.pubkeys.length,h.n<h.m)throw new TypeError(”Pubkey count cannot be less than m“)}if(e.signatures){if(e.signatures.length<h.m)throw new TypeError(”Not enough signatures provided“);if(e.signatures.length>h.m)throw new TypeError(”Too many signatures provided“)}if(e.input){if(e.input!==o.OP_0)throw new TypeError(”Input is invalid“);if(0===h.signatures.length||!h.signatures.every®)throw new TypeError(”Input has invalid signature(s)“);if(e.signatures&&!f(e.signatures,h.signatures))throw new TypeError(”Signature mismatch“);if(void 0!==e.m&&e.m!==e.signatures.length)throw new TypeError(”Signature count mismatch“)}}return Object.assign(h,e)}},function(e,t,r){var n=r(35),i=r(10),o=r(6),a=r(34),s=r(5),u=r(15).bitcoin;e.exports=function(e,t){if(!(e.input||e.output||e.pubkey||e.input||e.signature))throw new TypeError(”Not enough data“);t=Object.assign({validate:!0},t||{}),i({network:i.maybe(i.Object),output:i.maybe(i.Buffer),pubkey:i.maybe(a.isPoint),signature:i.maybe(s.isCanonicalScriptSignature),input:i.maybe(i.Buffer)},e);var r=n.value(function(){return s.decompile(e.input)}),c={network:e.network||u};if(n.prop(c,”output“,function(){if(e.pubkey)return s.compile()}),n.prop(c,”pubkey“,function(){if(e.output)return e.output.slice(1,-1)}),n.prop(c,”signature“,function(){if(e.input)return r()}),n.prop(c,”input“,function(){if(e.signature)return s.compile()}),n.prop(c,”witness“,function(){if(c.input)return[]}),t.validate){if(e.output){if(e.output!==o.OP_CHECKSIG)throw new TypeError(”Output is invalid“);if(!a.isPoint(c.pubkey))throw new TypeError(”Output pubkey is invalid“);if(e.pubkey&&!e.pubkey.equals(c.pubkey))throw new TypeError(”Pubkey mismatch“)}if(e.signature&&e.input&&!e.input.equals(c.input))throw new TypeError(”Signature mismatch“);if(e.input){if(1!==r().length)throw new TypeError(”Input is invalid“);if(!s.isCanonicalScriptSignature(c.signature))throw new TypeError(”Input has invalid signature“)}}return Object.assign(c,e)}},function(e,t,r){(function(t){var n=r(35),i=r(10),o=r(6),a=r(34),s=r(28),u=r(5),c=r(15).bitcoin,f=r(52);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.pubkey||e.input))throw new TypeError(”Not enough data“);r=Object.assign({validate:!0},r||{}),i({network:i.maybe(i.Object),address:i.maybe(i.String),hash:i.maybe(i.BufferN(20)),output:i.maybe(i.BufferN(25)),pubkey:i.maybe(a.isPoint),signature:i.maybe(u.isCanonicalScriptSignature),input:i.maybe(i.Buffer)},e);var l=n.value(function(){var t=f.decode(e.address);return{version:t.readUInt8(0),hash:t.slice(1)}}),h=n.value(function(){return u.decompile(e.input)}),d=e.network||c,p={network:d};if(n.prop(p,”address“,function(){if(p.hash){var e=t.allocUnsafe(21);return e.writeUInt8(d.pubKeyHash,0),p.hash.copy(e,1),f.encode(e)}}),n.prop(p,”hash“,function(){return e.output?e.output.slice(3,23):e.address?l().hash:e.pubkey||p.pubkey?s.hash160(e.pubkey||p.pubkey):void 0}),n.prop(p,”output“,function(){if(p.hash)return u.compile()}),n.prop(p,”pubkey“,function(){if(e.input)return h()}),n.prop(p,”signature“,function(){if(e.input)return h()}),n.prop(p,”input“,function(){if(e.pubkey&&e.signature)return u.compile()}),n.prop(p,”witness“,function(){if(p.input)return[]}),r.validate){var b;if(e.address){if(l().version!==d.pubKeyHash)throw new TypeError(”Invalid version or Network mismatch“);if(20!==l().hash.length)throw new TypeError(”Invalid address“);b=l().hash}if(e.hash){if(b&&!b.equals(e.hash))throw new TypeError(”Hash mismatch“);b=e.hash}if(e.output){if(25!==e.output.length||e.output!==o.OP_DUP||e.output!==o.OP_HASH160||20!==e.output||e.output!==o.OP_EQUALVERIFY||e.output!==o.OP_CHECKSIG)throw new TypeError(”Output is invalid“);var y=e.output.slice(3,23);if(b&&!b.equals(y))throw new TypeError(”Hash mismatch“);b=y}if(e.pubkey){var m=s.hash160(e.pubkey);if(b&&!b.equals(m))throw new TypeError(”Hash mismatch“);b=m}if(e.input){var g=h();if(2!==g.length)throw new TypeError(”Input is invalid“);if(!u.isCanonicalScriptSignature(g))throw new TypeError(”Input has invalid signature“);if(!a.isPoint(g))throw new TypeError(”Input has invalid pubkey“);if(e.signature&&!e.signature.equals(g))throw new TypeError(”Signature mismatch“);if(e.pubkey&&!e.pubkey.equals(g))throw new TypeError(”Pubkey mismatch“);var v=s.hash160(g);if(b&&!b.equals(v))throw new TypeError(”Hash mismatch“)}}return Object.assign(p,e)}}).call(this,r(1).Buffer)},function(e,t,r){(function(t){var n=r(35),i=r(10),o=r(6),a=r(28),s=r(5),u=r(15).bitcoin,c=r(52);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.redeem||e.input))throw new TypeError(”Not enough data“);r=Object.assign({validate:!0},r||{}),i({network:i.maybe(i.Object),address:i.maybe(i.String),hash:i.maybe(i.BufferN(20)),output:i.maybe(i.BufferN(23)),redeem:i.maybe({network:i.maybe(i.Object),output:i.maybe(i.Buffer),input:i.maybe(i.Buffer),witness:i.maybe(i.arrayOf(i.Buffer))}),input:i.maybe(i.Buffer),witness:i.maybe(i.arrayOf(i.Buffer))},e);var f=e.network;f||(f=e.redeem&&e.redeem.network||u);var l={network:f},h=n.value(function(){var t=c.decode(e.address);return{version:t.readUInt8(0),hash:t.slice(1)}}),d=n.value(function(){return s.decompile(e.input)}),p=n.value(function(){var t=d();return{network:f,output:t,input:s.compile(t.slice(0,-1)),witness:e.witness||[]}});if(n.prop(l,”address“,function(){if(l.hash){var e=t.allocUnsafe(21);return e.writeUInt8(f.scriptHash,0),l.hash.copy(e,1),c.encode(e)}}),n.prop(l,”hash“,function(){return e.output?e.output.slice(2,22):e.address?h().hash:l.redeem&&l.redeem.output?a.hash160(l.redeem.output):void 0}),n.prop(l,”output“,function(){if(l.hash)return s.compile()}),n.prop(l,”redeem“,function(){if(e.input)return p()}),n.prop(l,”input“,function(){if(e.redeem&&e.redeem.input&&e.redeem.output)return s.compile([].concat(s.decompile(e.redeem.input),e.redeem.output))}),n.prop(l,”witness“,function(){return l.redeem&&l.redeem.witness?l.redeem.witness:l.input?[]:void 0}),r.validate){var b;if(e.address){if(h().version!==f.scriptHash)throw new TypeError(”Invalid version or Network mismatch“);if(20!==h().hash.length)throw new TypeError(”Invalid address“);b=h().hash}if(e.hash){if(b&&!b.equals(e.hash))throw new TypeError(”Hash mismatch“);b=e.hash}if(e.output){if(23!==e.output.length||e.output!==o.OP_HASH160||20!==e.output||e.output!==o.OP_EQUAL)throw new TypeError(”Output is invalid“);var y=e.output.slice(2,22);if(b&&!b.equals(y))throw new TypeError(”Hash mismatch“);b=y}var m=function(e){if(e.output){var t=s.decompile(e.output);if(!t||t.length<1)throw new TypeError(”Redeem.output too short“);var r=a.hash160(e.output);if(b&&!b.equals®)throw new TypeError(”Hash mismatch“);b=r}if(e.input){var n=e.input.length>0,i=e.witness&&e.witness.length>0;if(!n&&!i)throw new TypeError(”Empty input“);if(n&&i)throw new TypeError(”Input and witness provided“);if(n){var o=s.decompile(e.input);if(!s.isPushOnly(o))throw new TypeError(”Non push-only scriptSig“)}}};if(e.input){var g=d();if(!g||g.length<1)throw new TypeError(”Input too short“);if(!t.isBuffer(p().output))throw new TypeError(”Input is invalid“);m(p())}if(e.redeem){if(e.redeem.network&&e.redeem.network!==f)throw new TypeError(”Network mismatch“);if(e.input){var v=p();if(e.redeem.output&&!e.redeem.output.equals(v.output))throw new TypeError(”Redeem.output mismatch“);if(e.redeem.input&&!e.redeem.input.equals(v.input))throw new TypeError(”Redeem.input mismatch“)}m(e.redeem)}if(e.witness&&e.redeem&&e.redeem.witness&&!function(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t)})}(e.redeem.witness,e.witness))throw new TypeError(”Witness and redeem.witness mismatch“)}return Object.assign(l,e)}}).call(this,r(1).Buffer)},function(e,t,r){(function(t){var n=r(35),i=r(10),o=r(6),a=r(34),s=r(28),u=r(100),c=r(5),f=r(15).bitcoin,l=t.alloc(0);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.pubkey||e.witness))throw new TypeError(”Not enough data“);r=Object.assign({validate:!0},r||{}),i({address:i.maybe(i.String),hash:i.maybe(i.BufferN(20)),input:i.maybe(i.BufferN(0)),network:i.maybe(i.Object),output:i.maybe(i.BufferN(22)),pubkey:i.maybe(a.isPoint),signature:i.maybe(c.isCanonicalScriptSignature),witness:i.maybe(i.arrayOf(i.Buffer))},e);var h=n.value(function(){var r=u.decode(e.address),n=r.words.shift(),i=u.fromWords(r.words);return{version:n,prefix:r.prefix,data:t.from(i)}}),d=e.network||f,p={network:d};if(n.prop(p,”address“,function(){if(p.hash){var e=u.toWords(p.hash);return e.unshift(0),u.encode(d.bech32,e)}}),n.prop(p,”hash“,function(){return e.output?e.output.slice(2,22):e.address?h().data:e.pubkey||p.pubkey?s.hash160(e.pubkey||p.pubkey):void 0}),n.prop(p,”output“,function(){if(p.hash)return c.compile()}),n.prop(p,”pubkey“,function(){return e.pubkey?e.pubkey:e.witness?e.witness:void 0}),n.prop(p,”signature“,function(){if(e.witness)return e.witness}),n.prop(p,”input“,function(){if(p.witness)return l}),n.prop(p,”witness“,function(){if(e.pubkey&&e.signature)return}),r.validate){var b;if(e.address){if(d&&d.bech32!==h().prefix)throw new TypeError(”Invalid prefix or Network mismatch“);if(0!==h().version)throw new TypeError(”Invalid address version“);if(20!==h().data.length)throw new TypeError(”Invalid address data“);b=h().data}if(e.hash){if(b&&!b.equals(e.hash))throw new TypeError(”Hash mismatch“);b=e.hash}if(e.output){if(22!==e.output.length||e.output!==o.OP_0||20!==e.output)throw new TypeError(”Output is invalid“);if(b&&!b.equals(e.output.slice(2)))throw new TypeError(”Hash mismatch“);b=e.output.slice(2)}if(e.pubkey){var y=s.hash160(e.pubkey);if(b&&!b.equals(y))throw new TypeError(”Hash mismatch“);b=y}if(e.witness){if(2!==e.witness.length)throw new TypeError(”Witness is invalid“);if(!c.isCanonicalScriptSignature(e.witness))throw new TypeError(”Witness has invalid signature“);if(!a.isPoint(e.witness))throw new TypeError(”Witness has invalid pubkey“);if(e.signature&&!e.signature.equals(e.witness))throw new TypeError(”Signature mismatch“);if(e.pubkey&&!e.pubkey.equals(e.witness))throw new TypeError(”Pubkey mismatch“);var m=s.hash160(e.witness);if(b&&!b.equals(m))throw new TypeError(”Hash mismatch“)}}return Object.assign(p,e)}}).call(this,r(1).Buffer)},function(e,t,r){(function(t){var n=r(35),i=r(10),o=r(6),a=r(100),s=r(28),u=r(5),c=r(15).bitcoin,f=t.alloc(0);e.exports=function(e,r){if(!(e.address||e.hash||e.output||e.redeem||e.witness))throw new TypeError(”Not enough data“);r=Object.assign({validate:!0},r||{}),i({network:i.maybe(i.Object),address:i.maybe(i.String),hash:i.maybe(i.BufferN(32)),output:i.maybe(i.BufferN(34)),redeem:i.maybe({input:i.maybe(i.Buffer),network:i.maybe(i.Object),output:i.maybe(i.Buffer),witness:i.maybe(i.arrayOf(i.Buffer))}),input:i.maybe(i.BufferN(0)),witness:i.maybe(i.arrayOf(i.Buffer))},e);var l=n.value(function(){var r=a.decode(e.address),n=r.words.shift(),i=a.fromWords(r.words);return{version:n,prefix:r.prefix,data:t.from(i)}}),h=n.value(function(){return u.decompile(e.redeem.input)}),d=e.network;d||(d=e.redeem&&e.redeem.network||c);var p={network:d};if(n.prop(p,”address“,function(){if(p.hash){var e=a.toWords(p.hash);return e.unshift(0),a.encode(d.bech32,e)}}),n.prop(p,”hash“,function(){return e.output?e.output.slice(2):e.address?l().data:p.redeem&&p.redeem.output?s.sha256(p.redeem.output):void 0}),n.prop(p,”output“,function(){if(p.hash)return u.compile()}),n.prop(p,”redeem“,function(){if(e.witness)return{output:e.witness,input:f,witness:e.witness.slice(0,-1)}}),n.prop(p,”input“,function(){if(p.witness)return f}),n.prop(p,”witness“,function(){if(e.redeem&&e.redeem.input&&e.redeem.input.length>0&&e.redeem.output&&e.redeem.output.length>0){var t=u.toStack(h());return p.redeem=Object.assign({witness:t},e.redeem),p.redeem.input=f,[].concat(t,e.redeem.output)}if(e.redeem&&e.redeem.output&&e.redeem.witness)return.concat(e.redeem.witness,e.redeem.output)}),r.validate){var b;if(e.address){if(l().prefix!==d.bech32)throw new TypeError(”Invalid prefix or Network mismatch“);if(0!==l().version)throw new TypeError(”Invalid address version“);if(32!==l().data.length)throw new TypeError(”Invalid address data“);b=l().data}if(e.hash){if(b&&!b.equals(e.hash))throw new TypeError(”Hash mismatch“);b=e.hash}if(e.output){if(34!==e.output.length||e.output!==o.OP_0||32!==e.output)throw new TypeError(”Output is invalid“);var y=e.output.slice(2);if(b&&!b.equals(y))throw new TypeError(”Hash mismatch“);b=y}if(e.redeem){if(e.redeem.network&&e.redeem.network!==d)throw new TypeError(”Network mismatch“);if(e.redeem.input&&e.redeem.input.length>0&&e.redeem.witness&&e.redeem.witness.length>0)throw new TypeError(”Ambiguous witness source“);if(e.redeem.output){if(0===u.decompile(e.redeem.output).length)throw new TypeError(”Redeem.output is invalid“);var m=s.sha256(e.redeem.output);if(b&&!b.equals(m))throw new TypeError(”Hash mismatch“);b=m}if(e.redeem.input&&!u.isPushOnly(h()))throw new TypeError(”Non push-only scriptSig“);if(e.witness&&e.redeem.witness&&!function(e,t){return e.length===t.length&&e.every(function(e,r){return e.equals(t)})}(e.witness,e.redeem.witness))throw new TypeError(”Witness and redeem.witness mismatch“)}if(e.witness&&e.redeem&&e.redeem.output&&!e.redeem.output.equals(e.witness))throw new TypeError(”Witness and redeem.output mismatch“)}return Object.assign(p,e)}}).call(this,r(1).Buffer)},function(e,t,r){var n=r(5).decompile,i=r(102),o=r(403),a=r(103),s=r(104),u=r(408),c=r(411),f=r(413),l=r(415),h={P2MS:”multisig“,NONSTANDARD:”nonstandard“,NULLDATA:”nulldata“,P2PK:”pubkey“,P2PKH:”pubkeyhash“,P2SH:”scripthash“,P2WPKH:”witnesspubkeyhash“,P2WSH:”witnessscripthash“,WITNESS_COMMITMENT:”witnesscommitment“};e.exports={input:function(e,t){var r=n(e);if(!r)throw new TypeError(”Invalid script“);return s.input.check®?h.P2PKH:u.input.check(r,t)?h.P2SH:i.input.check(r,t)?h.P2MS:a.input.check®?h.P2PK:h.NONSTANDARD},output:function(e){if(c.output.check(e))return h.P2WPKH;if(f.output.check(e))return h.P2WSH;if(s.output.check(e))return h.P2PKH;if(u.output.check(e))return h.P2SH;var t=n(e);if(!t)throw new TypeError(”Invalid script“);return i.output.check(t)?h.P2MS:a.output.check(t)?h.P2PK:l.output.check(t)?h.WITNESS_COMMITMENT:o.output.check(t)?h.NULLDATA:h.NONSTANDARD},witness:function(e,t){var r=n(e);if(!r)throw new TypeError(”Invalid script“);return c.input.check®?h.P2WPKH:f.input.check(r,t)?h.P2WSH:h.NONSTANDARD},types:h}},function(e,t,r){var n=r(5),i=r(6);function o(e){return e===i.OP_0||n.isCanonicalScriptSignature(e)}function a(e,t){var r=n.decompile(e);return!(r.length<2)&&(r===i.OP_0&&(t?r.slice(1).every(o):r.slice(1).every(n.isCanonicalScriptSignature)))}a.toJSON=function(){return”multisig input“},e.exports={check:a}},function(e,t,r){var n=r(5),i=r(19),o=r(6),a=o.OP_RESERVED;function s(e,t){var r=n.decompile(e);if(r.length<4)return!1;if(r!==o.OP_CHECKMULTISIG)return!1;if(!i.Number(r))return!1;if(!i.Number(r))return!1;var s=r-a,u=r-a;return!(s<=0)&&(!(u>16)&&(!(s>u)&&(u===r.length-3&&(!!t||r.slice(1,-2).every(n.isCanonicalPubKey)))))}s.toJSON=function(){return”multi-sig output“},e.exports={check:s}},function(e,t,r){var n=r(5),i=r(6);function o(e){var t=n.compile(e);return t.length>1&&t===i.OP_RETURN}o.toJSON=function(){return”null data output“},e.exports={output:{check:o}}},function(e,t,r){var n=r(5);function i(e){var t=n.decompile(e);return 1===t.length&&n.isCanonicalScriptSignature(t)}i.toJSON=function(){return”pubKey input“},e.exports={check:i}},function(e,t,r){var n=r(5),i=r(6);function o(e){var t=n.decompile(e);return 2===t.length&&n.isCanonicalPubKey(t)&&t===i.OP_CHECKSIG}o.toJSON=function(){return”pubKey output“},e.exports={check:o}},function(e,t,r){var n=r(5);function i(e){var t=n.decompile(e);return 2===t.length&&n.isCanonicalScriptSignature(t)&&n.isCanonicalPubKey(t)}i.toJSON=function(){return”pubKeyHash input“},e.exports={check:i}},function(e,t,r){var n=r(5),i=r(6);function o(e){var t=n.compile(e);return 25===t.length&&t===i.OP_DUP&&t===i.OP_HASH160&&20===t&&t===i.OP_EQUALVERIFY&&t===i.OP_CHECKSIG}o.toJSON=function(){return”pubKeyHash output“},e.exports={check:o}},function(e,t,r){e.exports={input:r(409),output:r(410)}},function(e,t,r){var n=r(2).Buffer,i=r(5),o=r(102),a=r(103),s=r(104),u=r(178),c=r(179);function f(e,t){var r=i.decompile(e);if(r.length<1)return!1;var f=r;if(!n.isBuffer(f))return!1;var l=i.decompile(i.compile(r.slice(0,-1))),h=i.decompile(f);return!!h&&(!!i.isPushOnly(l)&&(1===r.length?c.check(h)||u.check(h):!(!s.input.check(l)||!s.output.check(h))||(!(!o.input.check(l,t)||!o.output.check(h))||!(!a.input.check(l)||!a.output.check(h)))))}f.toJSON=function(){return”scriptHash input“},e.exports={check:f}},function(e,t,r){var n=r(5),i=r(6);function o(e){var t=n.compile(e);return 23===t.length&&t===i.OP_HASH160&&20===t&&t===i.OP_EQUAL}o.toJSON=function(){return”scriptHash output“},e.exports={check:o}},function(e,t,r){e.exports={input:r(412),output:r(178)}},function(e,t,r){var n=r(5);function i(e){var t,r=n.decompile(e);return 2===r.length&&n.isCanonicalScriptSignature(r)&&(t=r,n.isCanonicalPubKey(t)&&33===t.length)}i.toJSON=function(){return”witnessPubKeyHash input“},e.exports={check:i}},function(e,t,r){e.exports={input:r(414),output:r(179)}},function(e,t,r){(function(t){var n=r(5),i=r(19),o=r(10),a=r(102),s=r(103),u=r(104);function c(e,r){if(o(i.Array,e),e.length<1)return!1;var c=e;if(!t.isBuffer©)return!1;var f=n.decompile©;if(!f||0===f.length)return!1;var l=n.compile(e.slice(0,-1));return!(!u.input.check(l)||!u.output.check(f))||(!(!a.input.check(l,r)||!a.output.check(f))||!(!s.input.check(l)||!s.output.check(f)))}c.toJSON=function(){return”witnessScriptHash input“},e.exports={check:c}}).call(this,r(1).Buffer)},function(e,t,r){e.exports={output:r(416)}},function(e,t,r){var n=r(2).Buffer,i=r(5),o=r(19),a=r(10),s=r(6),u=n.from(”aa21a9ed“,”hex“);function c(e){var t=i.compile(e);return t.length>37&&t===s.OP_RETURN&&36===t&&t.slice(2,6).equals(u)}c.toJSON=function(){return”Witness commitment output“},e.exports={check:c,decode:function(e){return a(c,e),i.decompile(e).slice(4,36)},encode:function(e){a(o.Hash256bit,e);var t=n.allocUnsafe(36);return u.copy(t,0),e.copy(t,4),i.compile()}}},function(e,t,r){var n=r(22),i=r(63);e.exports={hash160:function(e){return n(”rmd160“).update(n(”sha256“).update(e).digest()).digest()},hmacSHA512:function(e,t){return i(”sha512“,e).update(t).digest()}}},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=r(419),o=r(420);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=_,t.resolve=function(e,t){return _(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?_(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=_(e));return e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a;var s=/^([a-z0-9.-]:)/i,u=/:*$/,c=/^(//?(?!/)*)(?[^s]*)?$/,f=.concat([”<“,”>“,'”',“`”,“ ”,“r”,“n”,“t”]),l=.concat(f),h=.concat(l),d=,p=/^{0,63}$/,b=/^({0,63})(.*)$/,y={javascript:!0,“javascript:”:!0},m={javascript:!0,“javascript:”:!0},g={!0,https:!0,ftp:!0,gopher:!0,file:!0,“http:”:!0,“https:”:!0,“ftp:”:!0,“gopher:”:!0,“file:”:!0},v=r(421);function _(e,t,r){if(e&&o.isObject(e)&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}a.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError(“Parameter 'url' must be a string, not ”+n(e));var a=e.indexOf(“?”),u=-1!==a&&a=f.replace(/\/g,“/”);var _=e=f.join(u);if(_=_.trim(),!r&&1===e.split(“#”).length){var w=c.exec(_);if(w)return this.path=_,this.href=_,this.pathname=w,w?(this.search=w,this.query=t?v.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search=“”,this.query={}),this}var S=s.exec(_);if(S){var k=(S=S).toLowerCase();this.protocol=k,_=_.substr(S.length)}if(r||S||_.match(/^//+@[^@/]+/)){var x=“//”===_.substr(0,2);!x||S&&m||(_=_.substr(2),this.slashes=!0)}if(!m&&(x||S&&!g)){for(var E,A,P=-1,O=0;O<d.length;O++){-1!==(T=_.indexOf(d))&&(-1===P||T<P)&&(P=T)}-1!==(A=-1===P?_.lastIndexOf(“@”):_.lastIndexOf(“@”,P))&&(E=_.slice(0,A),_=_.slice(A+1),this.auth=decodeURIComponent(E)),P=-1;for(O=0;O<h.length;O++){var T;-1!==(T=_.indexOf(h))&&(-1===P||T<P)&&(P=T)}-1===P&&(P=_.length),this.host=_.slice(0,P),_=_.slice(P),this.parseHost(),this.hostname=this.hostname||“”;var j=“[”===this.hostname&&“]”===this.hostname;if(!j)for(var M=this.hostname.split(/./),I=(O=0,M.length);O<I;O++){var B=M;if(B&&!B.match(p)){for(var D=“”,C=0,N=B.length;C127?D+=“x”:D+=B;if(!D.match(p)){var U=M.slice(0,O),R=M.slice(O+1),F=B.match(b);F&&(U.push(F),R.unshift(F)),R.length&&(_=“/”+R.join(“.”)+_),this.hostname=U.join(“.”);break}}}this.hostname.length>255?this.hostname=“”:this.hostname=this.hostname.toLowerCase(),j||(this.hostname=i.toASCII(this.hostname));var z=this.port?“:”+this.port:“”,L=this.hostname||“”;this.host=L+z,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),“/”!==_&&(_=“/”+_))}if(!y)for(O=0,I=l.length;O<I;O++){var q=l;if(-1!==_.indexOf(q)){var H=encodeURIComponent(q);H===q&&(H=escape(q)),_=_.split(q).join(H)}}var $=_.indexOf(“#”);-1!==$&&(this.hash=_.substr($),_=_.slice(0,$));var K=_.indexOf(“?”);if(-1!==K?(this.search=_.substr(K),this.query=_.substr(K+1),t&&(this.query=v.parse(this.query)),_=_.slice(0,K)):t&&(this.search=“”,this.query={}),_&&(this.pathname=_),g&&this.hostname&&!this.pathname&&(this.pathname=“/”),this.pathname||this.search){z=this.pathname||“”;var V=this.search||“”;this.path=z+V}return this.href=this.format(),this},a.prototype.format=function(){var e=this.auth||“”;e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,“:”),e+=“@”);var t=this.protocol||“”,r=this.pathname||“”,n=this.hash||“”,i=!1,a=“”;this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(“:”)?this.hostname:“[”this.hostname“]”),this.port&&(i+=“:”+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=v.stringify(this.query));var s=this.search||a&&“?”+a||“”;return t&&“:”!==t.substr(-1)&&(t+=“:”),this.slashes||(!t||g)&&!1!==i?(i=“//”+(i||“”),r&&“/”!==r.charAt(0)&&(r=“/”+r)):i||(i=“”),n&&“#”!==n.charAt(0)&&(n=“#”+n),s&&“?”!==s.charAt(0)&&(s=“?”+s),t+i+(r=r.replace(//g,function(e){return encodeURIComponent(e)}))+(s=s.replace(“#”,“%23”))+n},a.prototype.resolve=function(e){return this.resolveObject(_(e,!1,!0)).format()},a.prototype.resolveObject=function(e){if(o.isString(e)){var t=new a;t.parse(e,!1,!0),e=t}for(var r=new a,n=Object.keys(this),i=0;i<n.length;i++){var s=n;r=this}if(r.hash=e.hash,“”===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var u=Object.keys(e),c=0;c<u.length;c++){var f=u;“protocol”!==f&&(r=e)}return g&&r.hostname&&!r.pathname&&(r.path=r.pathname=“/”),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!g){for(var l=Object.keys(e),h=0;h<l.length;h++){var d=l;r=e}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||m)r.pathname=e.pathname;else{for(var p=(e.pathname||“”).split(“/”);p.length&&!(e.host=p.shift()););e.host||(e.host=“”),e.hostname||(e.hostname=“”),“”!==p&&p.unshift(“”),p.length<2&&p.unshift(“”),r.pathname=p.join(“/”)}if(r.search=e.search,r.query=e.query,r.host=e.host||“”,r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var b=r.pathname||“”,y=r.search||“”;r.path=b+y}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&“/”===r.pathname.charAt(0),_=e.host||e.pathname&&“/”===e.pathname.charAt(0),w=_||v||r.host&&e.pathname,S=w,k=r.pathname&&r.pathname.split(“/”)||[],x=(p=e.pathname&&e.pathname.split(“/”)||,r.protocol&&!g);if(x&&(r.hostname=“”,r.port=null,r.host&&(“”===k?k=r.host:k.unshift(r.host)),r.host=“”,e.protocol&&(e.hostname=null,e.port=null,e.host&&(“”===p?p=e.host:p.unshift(e.host)),e.host=null),w=w&&(“”===p||“”===k)),_)r.host=e.host||“”===e.host?e.host:r.host,r.hostname=e.hostname||“”===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,k=p;else if(p.length)k||(k=[]),k.pop(),k=k.concat(p),r.search=e.search,r.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(x)r.hostname=r.host=k.shift(),(T=!!(r.host&&r.host.indexOf(“@”)>0)&&r.host.split(“@”))&&(r.auth=T.shift(),r.host=r.hostname=T.shift());return r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:“”)+(r.search?r.search:“”)),r.href=r.format(),r}if(!k.length)return r.pathname=null,r.search?r.path=“/”+r.search:r.path=null,r.href=r.format(),r;for(var E=k.slice(-1),A=(r.host||e.host||k.length>1)&&(“.”===E||“..”===E)||“”===E,P=0,O=k.length;O>=0;O–)“.”===(E=k)?k.splice(O,1):“..”===E?(k.splice(O,1),P++):P&&(k.splice(O,1),P–);if(!w&&!S)for(;P–;P)k.unshift(“..”);!w||“”===k||k&&“/”===k.charAt(0)||k.unshift(“”),A&&“/”!==k.join(“/”).substr(-1)&&k.push(“”);var T,j=“”===k||k&&“/”===k.charAt(0);x&&(r.hostname=r.host=j?“”:k.length?k.shift():“”,(T=!!(r.host&&r.host.indexOf(“@”)>0)&&r.host.split(“@”))&&(r.auth=T.shift(),r.host=r.hostname=T.shift()));return(w=w||r.host&&k.length)&&!j&&k.unshift(“”),k.length?r.pathname=k.join(“/”):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:“”)+(r.search?r.search:“”)),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(“:”!==(t=t)&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;function o(e){return(o=“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)} /*! mths.be/punycode v1.4.1 by @mathias */!function(a){var s=“object”==o(t)&&t&&!t.nodeType&&t,u=“object”==o(e)&&e&&!e.nodeType&&e,c=“object”==(void 0===n?“undefined”:o(n))&&n;c.global!==c&&c.window!==c&&c.self!==c||(a=c);var f,l,h=2147483647,d=36,p=1,b=26,y=38,m=700,g=72,v=128,_=“-”,w=/^xn–/,S=//,k=//g,x={overflow:“Overflow: input needs wider integers to process”,“not-basic”:“Illegal input >= 0x80 (not a basic code point)”,“invalid-input”:“Invalid input”},E=d-p,A=Math.floor,P=String.fromCharCode;function O(e){throw new RangeError(x)}function T(e,t){for(var r=e.length,n=[];r–;)n=t(e);return n}function j(e,t){var r=e.split(“@”),n=“”;return r.length>1&&(n=r+“@”,e=r),n+T((e=e.replace(k,“.”)).split(“.”),t).join(“.”)}function M(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i–):n.push(t);return n}function I(e){return T(e,function(e){var t=“”;return e>65535&&(t+=P((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=P(e)}).join(“”)}function B(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function D(e,t,r){var n=0;for(e=r?A(e/m):e>>1,e+=A(e/t);e>E*b>>1;n+=d)e=A(e/E);return A(n+(E+1)*e/(e+y))}function C(e){var t,r,n,i,o,a,s,u,c,f,l,y=[],m=e.length,w=0,S=v,k=g;for((r=e.lastIndexOf(_))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&O(“not-basic”),y.push(e.charCodeAt(n));for(i=r>0?r+1:0;i<m;){for(o=w,a=1,s=d;i>=m&&O(“invalid-input”),((u=(l=e.charCodeAt(i++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:d)>=d||u>A((h-w)/a))&&O(“overflow”),w+=u*a,!(u<(c=s<=k?p:s>=k+b?b:s-k));s+=d)a>A(h/(f=d-c))&&O(“overflow”),a*=f;k=D(w-o,t=y.length+1,0==o),A(w/t)>h-S&&O(“overflow”),S+=A(w/t),w%=t,y.splice(w++,0,S)}return I(y)}function N(e){var t,r,n,i,o,a,s,u,c,f,l,y,m,w,S,k=[];for(y=(e=M(e)).length,t=v,r=0,o=g,a=0;a)<128&&k.push(P(l));for(n=i=k.length,i&&k.push(_);n<y;){for(s=h,a=0;a)>=t&&lA((h-r)/(m=n+1))&&O(“overflow”),r+=(s-t)*m,t=s,a=0;a)<t&&++r>h&&O(“overflow”),l==t){for(u=r,c=d;!(u<(f=c<=o?p:c>=o+b?b:c-o));c+=d)S=u-f,w=d-f,k.push(P(B(f+S%w,0))),u=A(S/w);k.push(P(B(u,0))),o=D(r,m,n==i),r=0,++n}++r,++t}return k.join(“”)}if(f={version:“1.4.1”,ucs2:{decode:M,encode:I},decode:C,encode:N,toASCII:function(e){return j(e,function(e){return S.test(e)?“xn–”+N(e):e})},toUnicode:function(e){return j(e,function(e){return w.test(e)?C(e.slice(4).toLowerCase()):e})}},“object”==o(r(181))&&r(181))void 0===(i=function(){return f}.call(t,r,t,e))||(e.exports=i);else if(s&&u)if(e.exports==s)u.exports=f;else for(l in f)f.hasOwnProperty(l)&&(s=f);else a.punycode=f}(this)}).call(this,r(17)(e),r(7))},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)}e.exports={isString:function(e){return“string”==typeof e},isObject:function(e){return“object”===n(e)&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,r){“use strict”;t.decode=t.parse=r(422),t.encode=t.stringify=r(423)},function(e,t,r){“use strict”;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||“&”,r=r||“=”;var a={};if(“string”!=typeof e||0===e.length)return a;var s=/+/g;e=e.split(t);var u=1e3;o&&“number”==typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var f=0;f<c;++f){var l,h,d,p,b=e.replace(s,“%20”),y=b.indexOf®;y>=0?(l=b.substr(0,y),h=b.substr(y+1)):(l=b,h=“”),d=decodeURIComponent(l),p=decodeURIComponent(h),n(a,d)?i(a)?a.push(p):a=[a,p]:a=p}return a};var i=Array.isArray||function(e){return“[object Array]”===Object.prototype.toString.call(e)}},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=function(e){switch(n(e)){case“string”:return e;case“boolean”:return e?“true”:“false”;case“number”:return isFinite(e)?e:“”;default:return“”}};e.exports=function(e,t,r,u){return t=t||“&”,r=r||“=”,null===e&&(e=void 0),“object”===n(e)?a(s(e),function(n){var s=encodeURIComponent(i(n))+r;return o(e)?a(e,function(e){return s+encodeURIComponent(i(e))}).join(t):s+encodeURIComponent(i(e))}).join(t):u?encodeURIComponent(i(u))+r+encodeURIComponent(i(e)):“”};var o=Array.isArray||function(e){return“[object Array]”===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n,n));return r}var s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push®;return t}},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)}e.exports=“object”==(“undefined”==typeof self?“undefined”:r(self))?self.FormData:window.FormData},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});const n=r(426),i=r(43),o=r(24);class a{constructor(e){if(e){const t=new n.SessionData(e);this.setSessionData(t)}}getSessionData(){throw new Error(“Abstract class”)}setSessionData(e){throw new Error(“Abstract class”)}deleteSessionData(){throw new Error(“Abstract class”)}}t.SessionDataStore=a;t.InstanceDataStore=class extends a{constructor(e){super(e),this.sessionData||this.setSessionData(new n.SessionData({}))}getSessionData(){if(!this.sessionData)throw new o.NoSessionDataError(“No session data was found.”);return this.sessionData}setSessionData(e){return this.sessionData=e,!0}deleteSessionData(){return this.setSessionData(new n.SessionData({})),!0}};t.LocalStorageStore=class extends a{constructor(e){if(super(e),e&&e.storeOptions&&e.storeOptions.localStorageKey&&“string”==typeof e.storeOptions.localStorageKey?this.key=e.storeOptions.localStorageKey:this.key=i.LOCALSTORAGE_SESSION_KEY,!localStorage.getItem(this.key)){const e=new n.SessionData({});this.setSessionData(e)}}getSessionData(){const e=localStorage.getItem(this.key);if(!e)throw new o.NoSessionDataError(“No session data was found in localStorage”);const t=JSON.parse(e);return n.SessionData.fromJSON(t)}setSessionData(e){return localStorage.setItem(this.key,e.toString()),!0}deleteSessionData(){return localStorage.removeItem(this.key),this.setSessionData(new n.SessionData({})),!0}}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});const n=r(24),i=“1.0.0”;class o{constructor(e){this.version=i,this.appPrivateKey=e.appPrivateKey,this.identityAddress=e.identityAddress,this.username=e.username,this.coreNode=e.coreNode,this.hubUrl=e.hubUrl,this.userData=e.userData,this.transitKey=e.transitKey}getGaiaHubConfig(){return this.userData&&this.userData.gaiaHubConfig}setGaiaHubConfig(e){this.userData.gaiaHubConfig=e}static fromJSON(e){if(e.version!==i)throw new n.InvalidStateError(`JSON data version ${e.version} not supported by SessionData`);const t={appPrivateKey:e.appPrivateKey,identityAddress:e.identityAddress,username:e.username,coreNode:e.coreNode,hubUrl:e.hubUrl,userData:e.userData,transitKey:e.transitKey};return new o(t)}toString(){return JSON.stringify(this)}}t.SessionData=o},function(e,t,r){“use strict”;e.exports=function(e){return encodeURIComponent(e).replace(//g,function(e){return“%”.concat(e.charCodeAt(0).toString(16).toUpperCase())})}},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=new RegExp(“%{2}”,“gi”),o=new RegExp(“(%{2})+”,“gi”);function a(e,t){try{return decodeURIComponent(e.join(“”))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],a®,a(n))}function s(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(i),r=1;r<t.length;r++)t=(e=a(t,r).join(“”)).match(i);return e}}e.exports=function(e){if(“string”!=typeof e)throw new TypeError(“Expected `encodedURI` to be of type `string`, got `”+n(e)+“`”);try{return e=e.replace(/+/g,“ ”),decodeURIComponent(e)}catch(t){return function(e){for(var t={“%FE%FF”:“��”,“%FF%FE”:“��”},r=o.exec(e);r;){try{t[r]=decodeURIComponent(r)}catch(e){var n=s(r);n!==r&&(t[r]=n)}r=o.exec(e)}t=“�”;for(var i=Object.keys(t),a=0;a<i.length;a++){var u=i;e=e.replace(new RegExp(u,“g”),t)}return e}(e)}}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});const n=r(16),i=r(20);t.launchCustomProtocol=function(e,t,r){const o=Math.random().toString(36).substr(2,9),a=`echo-reply-${o}`;[“localStorage”,“document”,“setTimeout”,“clearTimeout”,“addEventListener”,“removeEventListener”].forEach(e=>n.checkWindowAPI(“detectProtocolLaunch”,e)),window.localStorage.setItem(a,Date.now().toString());const s=()=>{try{window.localStorage.removeItem(a);for(let e=0;e<window.localStorage.length;e++){const t=window.localStorage.key(e);if(t&&t.startsWith(“echo-reply-”)){const e=window.localStorage.getItem(t);(“success”===e||Date.now()-parseInt(e,10)>36e5)&&window.localStorage.removeItem(t)}}}catch(e){i.Logger.error(“Exception cleaning up echo-reply entries in localStorage”),i.Logger.error(e)}};let u=0;const c=()=>{u&&(window.clearTimeout(u),u=0)},f=(e=1e3)=>{c(),u=window.setTimeout(()=>{if(u){let e;c(),“success”===window.localStorage.getItem(a)?(i.Logger.info(“Protocol echo reply detected.”),e=t):(i.Logger.info(“Protocol handler not detected.”),e=r),r=(()=>{}),t=(()=>{}),s(),setTimeout(()=>e(),100)}},e)};f();const l=window.document.createElement(“input”);l.type=“text”;const h=l.style;h.all=“initial”,h.opacity=“0”,h.filter=“alpha(opacity=0)”,h.height=“0”,h.width=“0”;const d=()=>{let e=!1;l.addEventListener(“focus”,()=>{e=!0},{once:!0,capture:!0}),setTimeout(()=>{u&&!e&&(i.Logger.info(“Detected possible browser prompt for opening the protocol handler app.”),window.clearTimeout(u),l.addEventListener(“focus”,()=>{u&&(i.Logger.info(“Possible browser prompt closed, restarting auth redirect timeout.”),f())},{once:!0,capture:!0}))},100)};l.addEventListener(“blur”,d,{once:!0,capture:!0}),setTimeout(()=>l.removeEventListener(“blur”,d),200),window.document.body.appendChild(l),l.focus();const p=()=>{window.document.hidden&&u&&(i.Logger.info(“Detected immediate page visibility change (protocol handler probably working).”),f(3e3))};window.document.addEventListener(“visibilitychange”,p,{once:!0,capture:!0}),setTimeout(()=>window.document.removeEventListener(“visibilitychange”,p),500),window.addEventListener(“storage”,function e(n){if(n.key===a&&“success”===window.localStorage.getItem(a)){c(),l.removeEventListener(“blur”,d),i.Logger.info(“Protocol echo reply detected from localStorage event.”),window.removeEventListener(“storage”,e);const n=t;t=(()=>{}),r=(()=>{}),s(),setTimeout(()=>n(),100)}},!1),i.Logger.info(“Attempting protocol launch via iframe injection.”);const b=`${n.ALADIN_HANDLER}:${e}&echo=${o}`,y=window.document.createElement(“iframe”),m=y.style;m.all=“initial”,m.display=“none”,y.src=b,window.document.body.appendChild(y)}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),t.getZoneFileTemplate=function(){return“{$origin}n{$ttl}nn; SOA Recordn{name} {ttl} IN SOA {mname}{rname}(n{serial} ;serialn{refresh} ;refreshn{retry} ;retryn{expire} ;expiren{minimum} ;minimum ttln)nn; NS Recordsn{ns}nn; MX Recordsn{mx}nn; A Recordsn{a}nn; AAAA Recordsn{aaaa}nn; CNAME Recordsn{cname}nn; PTR Recordsn{ptr}nn; TXT Recordsn{txt}nn; SRV Recordsn{srv}nn; SPF Recordsn{spf}nn; URI Recordsn{uri}n”}},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,t){for(var r=0;r<t.length;r++){var n=t;n.enumerable=n.enumerable||!1,n.configurable=!0,“value”in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,“__esModule”,{value:!0}),t.ZoneFile=void 0;var o=r(191),a=r(192),s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError(“Cannot call a class as a function”)}(this,e),“object”===n(t)?this.jsonZoneFile=JSON.parse(JSON.stringify(t)):“string”==typeof t&&(this.jsonZoneFile=(0,a.parseZoneFile)(t))}var t,r,s;return t=e,(r=[{key:“toJSON”,value:function(){return this.jsonZoneFile}},{key:“toString”,value:function(){return(0,o.makeZoneFile)(this.toJSON())}}])&&i(t.prototype,r),s&&i(t,s),e}();t.ZoneFile=s},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)}!function(){var t={};if(t.async=r(433),“object”!==n(t.async))throw new Error(“Module async is required (github.com/caolan/async)”);var i=t.async;function o(e,t){if(!t||“object”!==n(t))return e;for(var r=Object.keys(t),i=r.length;i–;)e[r]=t[r];return e}function a(){var e={},t=Array.prototype.slice.call(arguments),r=null,n=null;return t.forEach(function(t){if(t&&t.constructor===Object)for(r=Object.keys(t),n=r.length;n–;)e[r]=t[r]}),e}function s(){this.custom={},this.extend=function(e){return o(this.custom,e)},this.reset=function(){this.custom={}},this.remove=function(e){c.array(e)||(e=),e.forEach(function(e){delete this.custom},this)}}function u(e,t){var r=;if(this._schema=e,this._custom={},null!=t)for(var n in t)t.hasOwnProperty(n)&&(this._custom=t);this._getDepth=function(){return r.length},this._dumpStack=function(){return r.map(function(e){return e.replace(/^[/g,“”)}).join(“.”).replace(/.u001bu001cu001du001e/g,“[”)},this._deeperObject=function(e){return r.push(/^[a-z$][a-z0-9$]*$/i.test(e)?e:‘[“’e‘”]'),this},this._deeperArray=function(e){return r.push(“[”e“]”),this},this._back=function(){return r.pop(),this}}var c={function:function(e){return“function”==typeof e},string:function(e){return“string”==typeof e},number:function(e){return“number”==typeof e&&!isNaN(e)},integer:function(e){return“number”==typeof e&&e%1==0},NaN:function(e){return“number”==typeof e&&isNaN(e)},boolean:function(e){return“boolean”==typeof e},null:function(e){return null===e},date:function(e){return null!=e&&e instanceof Date},object:function(e){return null!=e&&e.constructor===Object},array:function(e){return null!=e&&e.constructor===Array},any:function(e){return!0}};function f(e,t){return“function”==typeof e?t instanceof e:c[e=e in c?e:“any”](t)}function l(e,t){for(var r=[],n=e.indexOf(t);-1!==n;)r.push(n),n=e.indexOf(t,n+1);return r}var h={void:/^$/,url:/^(https?|ftp)://((((|d|-|.|_|~|)|(%[da-f]{2})|[!$&'()*+,;=]|:)*@)?(((d|[1-9]d|1dd|2d|25).(d|[1-9]d|1dd|2d|25).(d|[1-9]d|1dd|2d|25).(d|[1-9]d|1dd|2d|25))|((([a-z]|d|)|(([a-z]|d|)([a-z]|d|-|.|_|~|)*([a-z]|d|))).)?(([a-z]|)|(([a-z]|)([a-z]|d|-|.|_|~|)*([a-z]|))).?)(:d*)?)(/(((|d|-|.|_|~|)|(%[da-f]{2})|[!$&'()*+,;=]|:|@)+(/(([a-z]|d|-|.|_|~|)|(%[da-f]{2})|[!$&'()*+,;=]|:|@)*)*)?)?(?((([a-z]|d|-|.|_|~|)|(%[da-f]{2})|[!$&'()*+,;=]|:|@)|[uE000-uF8FF]|/|?)*)?(#(((|d|-|.|_|~|)|(%[da-f]{2})|[!$&'()*+,;=]|:|@)|/|?)*)?$/i,“date-time”:/^d{4}-d{2}-d{2}Td{2}:d{2}:d{2}(.d{3})?(Z?|(-|+)d{2}:d{2})$/,date:/^d{4}-d{2}-d{2}$/,coolDateTime:/^d{4}(-|/)d{2}(-|/)d{2}(T| )d{2}:d{2}:d{2}(.d{3})?Z?$/,time:/^d{2}:d{2}:d{2}$/,color:/^#()+$/i,email:/^(((|d||[u00A0-uD7FFuF900-uFDCFuFDF0-uFFEF])+(.(|d||[u00A0-uD7FFuF900-uFDCFuFDF0-uFFEF])+)*)|((x22)((((x20|x09)*(x0dx0a))?(x20|x09)+)?((|x21||[x5d-x7e]|)|(\([x01-x09x0bx0cx0d-x7f]|))))*(((x20|x09)*(x0dx0a))?(x20|x09)+)?(x22)))|d|)|(([a-z]|d|)([a-z]|d|-|.|_|~|)*([a-z]|d|))).)+(([a-z]|)|(([a-z]|)([a-z]|d|-|.|_|~|)*([a-z]|))).?$/i,numeric:/^+$/,integer:/^-?+$/,decimal:/^-?*.?[0-9]+$/,alpha:/^+$/i,alphaNumeric:/^+$/i,alphaDash:/^+$/i,javascript:/^[a-z0-9_$]*$/i,upperString:/^[A-Z ]*$/,lowerString:/^[a-z ]*$/},d={optional:function(e,t){!0!==(“boolean”==typeof e.optional?e.optional:“true”===e.optional)&&void 0===t&&this.report(“is missing and not optional”,null,“optional”)},type:function(e,t){if(void 0!==t&&(“string”==typeof e.type||e.type instanceof Array||“function”==typeof e.type)){var r=c.array(e.type)?e.type:;r.some(function(e){return f(e,t)})||(r=r.map(function(e){return“function”==typeof e?“and instance of ”+e.name:e}),this.report(“must be ”+r.join(“ or ”)+“, but is ”+function(e){for(var t in c)if(f(t,e))return“any”!==t?t:“an instance of ”+e.constructor.name}(t),null,“type”))}},uniqueness:function(e,t){if(“string”==typeof e.uniqueness&&(e.uniqueness=“true”===e.uniqueness),“boolean”==typeof e.uniqueness&&!1!==e.uniqueness&&(c.array(t)||“string”==typeof t))for(var r=[],n=0;n)>=0)){var i=l(t,t);i.length>1&&(r.push(t),this.report(“has value [”t[n]“] more than once at indexes [”+i.join(“, ”)+“]”,null,“uniqueness”))}},pattern:function(e,t){var r=e.pattern;if(“string”==typeof t){var n=!1;c.array®||(r=),r.forEach(function(e){“string”==typeof e&&e in h&&(e=h),e instanceof RegExp&&e.test(t)&&(n=!0)}),n||this.report(“must match [”+r.join(“ or ”)+'], but is equal to “'t'”',null,“pattern”)}},validDate:function(e,t){“true”===String(e.validDate)&&t instanceof Date&&isNaN(t.getTime())&&this.report(“must be a valid date”,null,“validDate”)},minLength:function(e,t){if(“string”==typeof t||c.array(t)){var r=Number(e.minLength);isNaN®||t.length<r&&this.report(“must be longer than ”r“ elements, but it has ”+t.length,null,“minLength”)}},maxLength:function(e,t){if(“string”==typeof t||c.array(t)){var r=Number(e.maxLength);isNaN®||t.length>r&&this.report(“must be shorter than ”r“ elements, but it has ”+t.length,null,“maxLength”)}},exactLength:function(e,t){if(“string”==typeof t||c.array(t)){var r=Number(e.exactLength);isNaN®||t.length!==r&&this.report(“must have exactly ”r“ elements, but it have ”+t.length,null,“exactLength”)}},lt:function(e,t){var r=Number(e.lt);“number”!=typeof t||isNaN®||t>=r&&this.report(“must be less than ”r', but is equal to “'t'”',null,“lt”)},lte:function(e,t){var r=Number(e.lte);“number”!=typeof t||isNaN®||t>r&&this.report(“must be less than or equal to ”r', but is equal to “'t'”',null,“lte”)},gt:function(e,t){var r=Number(e.gt);“number”!=typeof t||isNaN®||t<=r&&this.report(“must be greater than ”r', but is equal to “'t'”',null,“gt”)},gte:function(e,t){var r=Number(e.gte);“number”!=typeof t||isNaN®||t<r&&this.report(“must be greater than or equal to ”r', but is equal to “'t'”',null,“gte”)},eq:function(e,t){if(“number”==typeof t||“string”==typeof t||“boolean”==typeof t){var r=e.eq;if(“number”==typeof r||“string”==typeof r||“boolean”==typeof r||c.array®)if(c.array®){for(var n=0;n)return;this.report(“must be equal to [”+r.map(function(e){return'“'e'”'}).join(“ or ”)+'], but is equal to “'t'”',null,“eq”)}else t!==r&&this.report('must be equal to “'r'”, but is equal to “'t'”',null,“eq”)}},ne:function(e,t){if(“number”==typeof t||“string”==typeof t){var r=e.ne;if(“number”==typeof r||“string”==typeof r||c.array®)if(c.array®){for(var n=0;n)return void this.report('must not be equal to “'r[n]'”',null,“ne”)}else t===r&&this.report('must not be equal to “'r'”',null,“ne”)}},someKeys:function(e,t){var r=e.someKeys;c.object(t)&&(r.some(function(e){return e in t})||this.report(“must have at least key ”+r.map(function(e){return'“'e'”'}).join(“ or ”),null,“someKeys”))},strict:function(e,t){if(“string”==typeof e.strict&&(e.strict=“true”===e.strict),!0===e.strict&&c.object(t)&&c.object(e.properties)){if(void 0===e.properties){var r=Object.keys(t).filter(function(t){return void 0===e.properties});if(r.length>0){var n=“should not contains ”+(r.length>1?“properties”:“property”)+“ [”+r.map(function(e){return'“'e'”'}).join(“, ”)+“]”;this.report(n,null,“strict”)}}}},exec:function(e,t,r){var n=this;if(“function”==typeof r)return this.asyncExec(e,t,r);(c.array(e.exec)?e.exec:).forEach(function®{“function”==typeof r&&r.call(n,e,t)})},properties:function(e,t,r){if(“function”==typeof r)return this.asyncProperties(e,t,r);if(e.properties instanceof Object&&t instanceof Object){var n,i=e.properties;if(null!=i)for(n in t)n in i||(this._deeperObject(n),this._validate(i,t),this._back());for(n in i)“*”!==n&&(this._deeperObject(n),this._validate(i,t),this._back())}},items:function(e,t,r){if(“function”==typeof r)return this.asyncItems(e,t,r);if(e.items instanceof Object&&t instanceof Object){var n,i,o=e.items;if(c.array(o)&&c.array(t))for(n=0,i=o.length;n,t),this._back();else for(var a in t)t.hasOwnProperty(a)&&(this._deeperArray(a),this._validate(o,t),this._back())}}},p={asyncExec:function(e,t,r){var n=this;i.eachSeries(c.array(e.exec)?e.exec:,function(r,o){if(“function”==typeof r){if(r.length>2)return r.call(n,e,t,o);r.call(n,e,t)}i.nextTick(o)},r)},asyncProperties:function(e,t,r){if(!(e.properties instanceof Object&&c.object(t)))return r();var n=this,o=e.properties;i.series([function(e){if(null==o)return e();i.eachSeries(Object.keys(t),function(e,r){if(e in o)return i.nextTick®;n._deeperObject(e),n._asyncValidate(o,t,function(e){n._back(),r(e)})},e)},function(e){i.eachSeries(Object.keys(o),function(e,r){if(“*”===e)return i.nextTick®;n._deeperObject(e),n._asyncValidate(o,t,function(e){n._back(),r(e)})},e)}],r)},asyncItems:function(e,t,r){if(!(e.items instanceof Object&&t instanceof Object))return r();var n=this,o=e.items;c.array(o)&&c.array(t)?i.timesSeries(o.length,function(e,r){n._deeperArray(e),n._asyncValidate(o,t,function(e,t){n._back(),r(e,t)}),n._back()},r):i.eachSeries(Object.keys(t),function(e,r){n._deeperArray(e),n._asyncValidate(o,t,function(e,t){n._back(),r(e,t)})},r)}};function b(e,t){u.prototype.constructor.call(this,e,a(b.custom,t));var r=[];this._basicFields=Object.keys(d),this._customFields=Object.keys(this._custom),this.origin=null,this.report=function(e,t,n){var i={code:t||this.userCode||null,reason:n||“unknown”,message:this.userError||e||“is invalid”,property:this.userAlias?this.userAlias+“ (”+this._dumpStack()+“)”:this._dumpStack()};return r.push(i),this},this.result=function(){return{error:r,valid:0===r.length,format:function(){return!0===this.valid?“Candidate is valid”:this.error.map(function(e){return“Property ”e.property“: ”+e.message}).join(“n”)}}}}o(b.prototype,d),o(b.prototype,p),o(b,new s),b.prototype.validate=function(e,t){if(this.origin=e,“function”==typeof t){var r=this;return i.nextTick(function(){r._asyncValidate(r._schema,e,function(e){r.origin=null,t(e,r.result())})})}return this._validate(this._schema,e).result()},b.prototype._validate=function(e,t,r){return this.userCode=e.code||null,this.userError=e.error||null,this.userAlias=e.alias||null,this._basicFields.forEach(function®{(r in e||“optional”===r)&&“function”==typeof this&&this(e,t)},this),this._customFields.forEach(function®{r in e&&“function”==typeof this._custom&&this._custom.call(this,e,t)},this),this},b.prototype._asyncValidate=function(e,t,r){var n=this;this.userCode=e.code||null,this.userError=e.error||null,this.userAlias=e.alias||null,i.series([function®{i.eachSeries(Object.keys(d),function(r,o){i.nextTick(function(){if((r in e||“optional”===r)&&“function”==typeof n){if(n.length>2)return n(e,t,o);n(e,t)}o()})},r)},function®{i.eachSeries(Object.keys(n._custom),function(r,o){i.nextTick(function(){if(r in e&&“function”==typeof n._custom){if(n._custom.length>2)return n._custom.call(n,e,t,o);n._custom.call(n,e,t)}o()})},r)}],r)};var y={number:function(e,t){var r;if(“number”==typeof e)return e;if(“”===e)return void 0!==t.def?t.def:null;if(“string”==typeof e){if(“number”==typeof(r=parseFloat(e.replace(/,/g,“.”).replace(/ /g,“”))))return r}else if(e instanceof Date)return+e;return null},integer:function(e,t){var r;if(“number”==typeof e&&e%1==0)return e;if(“”===e)return void 0!==t.def?t.def:null;if(“string”==typeof e){if(“number”==typeof(r=parseInt(e.replace(/ /g,“”),10)))return r}else{if(“number”==typeof e)return parseInt(e,10);if(“boolean”==typeof e)return e?1:0;if(e instanceof Date)return+e}return null},string:function(e,t){return“boolean”==typeof e||“number”==typeof e||e instanceof Date?e.toString():c.array(e)?t.items||t.properties?e:e.join(String(t.joinWith||“,”)):e instanceof Object?t.items||t.properties?e:JSON.stringify(e):“string”==typeof e&&e.length?e:null},date:function(e,t){if(e instanceof Date)return e;var r=new Date(e);return isNaN(r.getTime())?null:r},boolean:function(e,t){return void 0===e?null:(“string”!=typeof e||“false”!==e.toLowerCase())&&!!e},object:function(e,t){if(“string”!=typeof e||c.object(e))return e;try{return JSON.parse(e)}catch(e){return null}},array:function(e,t){if(c.array(e))return e;if(void 0===e)return null;if(“string”==typeof e){if(“”===e.slice(-1))try{return JSON.parse(e)}catch(e){return null}return e.split(String(t.splitWith||“,”))}return c.array(e)?null:}},m={upper:function(e){return e.toUpperCase()},lower:function(e){return e.toLowerCase()},title:function(e){return e.replace(/S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})},capitalize:function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()},ucfirst:function(e){return e.charAt(0).toUpperCase()+e.substr(1)},trim:function(e){return e.trim()}},g={strict:function(e,t){if(“string”==typeof e.strict&&(e.strict=“true”===e.strict),!0!==e.strict)return t;if(!c.object(e.properties))return t;if(!c.object(t))return t;return Object.keys(t).forEach(function®{r in e.properties||delete t}),t},optional:function(e,t){return!0===(“boolean”==typeof e.optional?e.optional:“false”!==e.optional)?t:void 0!==t?t:(this.report(),e.def===Date?new Date:e.def)},type:function(e,t){if(“string”!=typeof e.type||“function”!=typeof y)return t;var r,n=“boolean”!=typeof e.optional||e.optional;return“function”==typeof y?(null===(r=y(t,e))&&!n||!r&&isNaN®||null===r&&“string”===e.type)&&(r=e.def):n||(r=e.def),(null!=r||void 0!==e.def&&e.def===r)&&r!==t?(this.report(),r):t},rules:function(e,t){var r=e.rules;if(“string”!=typeof t||“string”!=typeof r&&!c.array®)return t;var n=!1;return(c.array®?r:).forEach(function(e){“function”==typeof m&&(t=m(t),n=!0)}),n&&this.report(),t},min:function(e,t){var r=Number(t);if(isNaN®)return t;var n=Number(e.min);return isNaN(n)?t:r<n?(this.report(),n):t},max:function(e,t){var r=Number(t);if(isNaN®)return t;var n=Number(e.max);return isNaN(n)?t:r>n?(this.report(),n):t},minLength:function(e,t){var r=Number(e.minLength);if(“string”!=typeof t||isNaN®||r<0)return t;var n=“”,i=r-t.length;if(i>0){for(var o=0;o<i;o++)n+=“-”;return this.report(),t+n}return t},maxLength:function(e,t){var r=Number(e.maxLength);return“string”!=typeof t||isNaN®||r<0?t:t.length>r?(this.report(),t.slice(0,r)):t},properties:function(e,t,r){if(“function”==typeof r)return this.asyncProperties(e,t,r);if(!t||“object”!==n(t))return t;var i,o,a=e.properties;if(void 0!==a)for(o in t)o in a||(this._deeperObject(o),void 0!==(i=this._sanitize(e.properties,t))&&(t=i),this._back());for(o in e.properties)“*”!==o&&(this._deeperObject(o),void 0!==(i=this._sanitize(e.properties,t))&&(t=i),this._back());return t},items:function(e,t,r){if(“function”==typeof r)return this.asyncItems(e,t,r);if(!(e.items instanceof Object&&t instanceof Object))return t;var n;if(c.array(e.items)&&c.array(t)){var i=e.items.length=this._sanitize(e.items,t),this._back()}else for(n in t)t.hasOwnProperty(n)&&(this._deeperArray(n),t=this._sanitize(e.items,t),this._back());return t},exec:function(e,t,r){return“function”==typeof r?this.asyncExec(e,t,r):((c.array(e.exec)?e.exec:).forEach(function®{“function”==typeof r&&(t=r.call(this,e,t))},this),t)}},v={asyncExec:function(e,t,r){var n=this,o=c.array(e.exec)?e.exec:;i.eachSeries(o,function(r,i){if(“function”==typeof r){if(r.length>2)return r.call(n,e,t,function(e,r){if(e)return i(e);t=r,i()});t=r.call(n,e,t)}i()},function(e){r(e,t)})},asyncProperties:function(e,t,r){if(!t||“object”!==n(t))return r(null,t);var o=this,a=e.properties;i.series([function(e){if(null==a)return e();var r=a;i.eachSeries(Object.keys(t),function(e,n){if(e in a)return n();o._deeperObject(e),o._asyncSanitize(r,t,function(r,i){void 0!==i&&(t=i),o._back(),n()})},e)},function(e){i.eachSeries(Object.keys(a),function(e,r){if(“*”===e)return r();o._deeperObject(e),o._asyncSanitize(a,t,function(n,i){if(n)return r(n);void 0!==i&&(t=i),o._back(),r()})},e)}],function(e){return r(e,t)})},asyncItems:function(e,t,r){if(!(e.items instanceof Object&&t instanceof Object))return r(null,t);var n=this,o=e.items;if(c.array(o)&&c.array(t)){var a=o.length<t.length?o.length:t.length;i.timesSeries(a,function(e,r){n._deeperArray(e),n._asyncSanitize(o,t,function(i,o){if(i)return r(i);t=o,n._back(),r()})},function(e){r(e,t)})}else i.eachSeries(Object.keys(t),function(e,r){n._deeperArray(e),n._asyncSanitize(o,t,function(i,o){if(i)return r();t=o,n._back(),r()})},function(e){r(e,t)});return t}};function _(e,t){u.prototype.constructor.call(this,e,a(_.custom,t));var r=[];this._basicFields=Object.keys(g),this._customFields=Object.keys(this._custom),this.origin=null,this.report=function(e){var t={message:e||“was sanitized”,property:this.userAlias?this.userAlias+“ (”+this._dumpStack()+“)”:this._dumpStack()};r.some(function(e){return e.property===t.property})||r.push(t)},this.result=function(e){return{data:e,reporting:r,format:function(){return this.reporting.map(function(e){return“Property ”e.property“ ”+e.message}).join(“n”)}}}}o(_.prototype,g),o(_.prototype,v),o(_,new s),_.prototype.sanitize=function(e,t){if(this.origin=e,“function”==typeof t){var r=this;return this._asyncSanitize(this._schema,e,function(e,n){r.origin=null,t(e,r.result(n))})}var n=this._sanitize(this._schema,e);return this.origin=null,this.result(n)},_.prototype._sanitize=function(e,t){return this.userAlias=e.alias||null,this._basicFields.forEach(function®{(r in e||“optional”===r)&&“function”==typeof this&&(t=this(e,t))},this),this._customFields.forEach(function®{r in e&&“function”==typeof this._custom&&(t=this._custom.call(this,e,t))},this),t},_.prototype._asyncSanitize=function(e,t,r){var n=this;this.userAlias=e.alias||null,i.waterfall([function®{i.reduce(n._basicFields,t,function(t,r,o){i.nextTick(function(){if((r in e||“optional”===r)&&“function”==typeof n){if(n.length>2)return n(e,t,o);t=n(e,t)}o(null,t)})},r)},function(t,r){i.reduce(n._customFields,t,function(t,r,o){i.nextTick(function(){if(r in e&&“function”==typeof n._custom){if(n._custom.length>2)return n._custom.call(n,e,t,o);t=n._custom.call(n,e,t)}o(null,t)})},r)}],r)};var w=-2147483648,S=2147483647,k={int:function(e,t){return e+(0|Math.random()*(t-e+1))},float:function(e,t){return Math.random()*(t-e)+e},bool:function(){return Math.random()>.5},char:function(e,t){return String.fromCharCode(this.int(e,t))},fromList:function(e){return e}},x={“date-time”:function(){return(new Date).toISOString()},date:function(){return(new Date).toISOString().replace(/T.*$/,“”)},time:function(){return(new Date).toLocaleTimeString({},{hour12:!1})},color:function(e,t){var r=“#”;e<1&&(e=1);for(var n=0,i=k.int(e,t);n<i;n++)r+=k.fromList(“0123456789abcdefABCDEF”);return r},numeric:function(){return“”+k.int(0,S)},integer:function(){return!0===k.bool()?“-”+this.numeric():this.numeric()},decimal:function(){return this.integer()+“.”+this.numeric()},alpha:function(e,t){var r=“”;e<1&&(e=1);for(var n=0,i=k.int(e,t);n<i;n++)r+=k.fromList(“abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ”);return r},alphaNumeric:function(e,t){var r=“”;e<1&&(e=1);for(var n=0,i=k.int(e,t);n<i;n++)r+=k.fromList(“abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789”);return r},alphaDash:function(e,t){var r=“”;e<1&&(e=1);for(var n=0,i=k.int(e,t);n<i;n++)r+=k.fromList(“-abcdefghijklmnopqrstuvwxyz-ABCDEFGHIJKLMNOPQRSTUVWXYZ_-0123456789_-”);return r},javascript:function(e,t){for(var r=k.fromList(“_$abcdefghijklmnopqrstuvwxyz_$ABCDEFGHIJKLMNOPQRSTUVWXYZ_$”),n=0,i=k.int(e,t-1);n<i;n++)r+=k.fromList(“_$abcdefghijklmnopqrstuvwxyz_$ABCDEFGHIJKLMNOPQRSTUVWXYZ_$0123456789_$”);return r}};function E(e){var t=w,r=S;return null!=e.gte?t=e.gte:null!=e.gt&&(t=e.gt+1),null!=e.lte?r=e.lte:null!=e.lt&&(r=e.lt-1),{min:t,max:r}}var A={string:function(e){if(null!=e.eq)return e.eq;var t=“”,r=null!=e.minLength?e.minLength:0,n=null!=e.maxLength?e.maxLength:32;if(“string”==typeof e.pattern&&“function”==typeof x)return x(r,n);for(var i=null!=e.exactLength?e.exactLength:k.int(r,n),o=0;o<i;o++)t+=k.char(32,126);return t},number:function(e){if(null!=e.eq)return e.eq;var t=E(e),r=k.float(t.min,t.max);if(null!=e.ne)for(var n=c.array(e.ne)?e.ne:;-1!==n.indexOf®;)r=k.float(t.min,t.max);return r},integer:function(e){if(null!=e.eq)return e.eq;var t=E(e),r=k.int(t.min,t.max);if(null!=e.ne)for(var n=c.array(e.ne)?e.ne:;-1!==n.indexOf®;)r=k.int(t.min,t.max);return r},boolean:function(e){return null!=e.eq?e.eq:k.bool()},null:function(e){return null},date:function(e){return null!=e.eq?e.eq:new Date},object:function(e){var t={},r=e.properties||{};for(var n in r)if(r.hasOwnProperty(n)){if(!0===r.optional&&!0===k.bool())continue;if(“*”!==n)t=this.generate(r);else for(var i=“_random_key”,o=i+0,a=k.int(1,9),s=1;s<=a;s++)o in r||(t=this.generate(r)),o=i+s}return t},array:function(e){var t,r,n,i,o=e.items||{},a=null!=e.minLength?e.minLength:0,s=null!=e.maxLength?e.maxLength:16;if(c.array(o))for(n=o.length,null!=e.exactLength?n=e.exactLength:n<a?n=a:n>s&&(n=s),r=new Array(n),t=null,i=0;i.type||“any”,c.array(t)&&(t=t),r=this(o);else for(n=null!=e.exactLength?e.exactLength:k.int(a,s),r=new Array(n),t=o.type||“any”,c.array(t)&&(t=t),i=0;i=this(o);return r},any:function(e){var t=Object.keys(A);return this[t](e)}};function P(){}o(P.prototype,A);var O=null;P.instance=function(){return O instanceof P||(O=new P),O},P.prototype.generate=function(e){var t=e.type||“any”;return c.array(t)&&(t=t),this(e)};var T={};e.exports?e.exports=T:window.SchemaInspector=T,T.newSanitization=function(e,t){return new _(e,t)},T.newValidation=function(e,t){return new b(e,t)},T.Validation=b,T.Sanitization=_,T.sanitize=function(e,t,r,n){return 3===arguments.length&&“function”==typeof r&&(n=r,r=null),new _(e,r).sanitize(t,n)},T.validate=function(e,t,r,n){return 3===arguments.length&&“function”==typeof r&&(n=r,r=null),new b(e,r).validate(t,n)},T.generate=function(e,t){if(“number”==typeof t){for(var r=new Array(t),n=0;n=P.instance().generate(e);return r}return P.instance().generate(e)}}()},function(e,t,r){(function(e,r,n,i){var o;function a(e){return(a=“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)} /*!

* async
* https://github.com/caolan/async
*
* Copyright 2010-2014 Caolan McMahon
* Released under the MIT license
*/

/*!

* async
* https://github.com/caolan/async
*
* Copyright 2010-2014 Caolan McMahon
* Released under the MIT license
*/

!function(){var s,u={};function c(){}function f(e){return e}function l(e){return!!e}function h(e){return!e}var d=“object”===(“undefined”==typeof self?“undefined”:a(self))&&self.self===self&&self||“object”===(void 0===e?“undefined”:a(e))&&e.global===e&&e||this;function p(e){return function(){if(null===e)throw new Error(“Callback was already called.”);e.apply(this,arguments),e=null}}function b(e){return function(){null!==e&&(e.apply(this,arguments),e=null)}}null!=d&&(s=d.async),u.noConflict=function(){return d.async=s,u};var y=Object.prototype.toString,m=Array.isArray||function(e){return“[object Array]”===y.call(e)};function g(e){return m(e)||“number”==typeof e.length&&e.length>=0&&e.length%1==0}function v(e,t){for(var r=-1,n=e.length;++r,r,e)}function _(e,t){for(var r=-1,n=e.length,i=Array(n);++r=t(e,r,e);return i}function w(e){return _(Array(e),function(e,t){return t})}function S(e,t){for(var r=0;r===t)return r;return-1}var k=Object.keys||function(e){var t=[];for(var r in e)e.hasOwnProperty®&&t.push®;return t};function x(e){var t,r,n=-1;return g(e)?(t=e.length,function(){return++n<t?n:null}):(r=k(e),t=r.length,function(){return++n:null})}function E(e,t){return t=null==t?e.length-1:+t,function(){for(var r=Math.max(arguments.length-t,0),n=Array®,i=0;i=arguments;switch(t){case 0:return e.call(this,n);case 1:return e.call(this,arguments,n)}}}function A(e){return function(t,r,n){return e(t,n)}}var P=“function”==typeof r&&r,O=P?function(e){P(e)}:function(e){setTimeout(e,0)};function T(e){return function(t,r,n){n=b(n||c);var i=x(t=t||[]);if(e<=0)return n(null);var o=!1,a=0,s=!1;!function u(){if(o&&a<=0)return n(null);for(;a<e&&!s;){var c=i();if(null===c)return o=!0,void(a<=0&&n(null));a+=1,r(t,c,p(function(e){a-=1,e?(n(e),s=!0):u()}))}}()}}function j(e){return function(t,r,n){return e(u.eachOf,t,r,n)}}function M(e){return function(t,r,n,i){return e(T®,t,n,i)}}function I(e){return function(t,r,n){return e(u.eachOfSeries,t,r,n)}}function B(e,t,r,n){n=b(n||c);var i=g(t=t||[])?:{};e(t,function(e,t,n){r(e,function(e,r){i=r,n(e)})},function(e){n(e,i)})}function D(e,t,r,n){var i=[];e(t,function(e,t,n){r(e,function®{r&&i.push({index:t,value:e}),n()})},function(){n(_(i.sort(function(e,t){return e.index-t.index}),function(e){return e.value}))})}function C(e,t,r,n){D(e,t,function(e,t){r(e,function(e){t(!e)})},n)}function N(e,t,r){return function(n,i,o,a){function s(){a&&a(r(!1,void 0))}function u(e,n,i){if(!a)return i();o(e,function(n){a&&t(n)&&(a(r(!0,e)),a=o=!1),i()})}arguments.length>3?e(n,i,u,s):(a=o,o=i,e(n,u,s))}}function U(e,t){return t}function R(e,t,r){r=r||c;var n=g(t)?[]:{};e(t,function(e,t,r){e(E(function(e,i){i.length<=1&&(i=i),n=i,r(e)}))},function(e){r(e,n)})}function F(e,t,r,n){var i=[];e(t,function(e,t,n){r(e,function(e,t){i=i.concat(t||),n(e)})},function(e){n(e,i)})}function z(e,t,r){if(null==t)t=1;else if(0===t)throw new Error(“Concurrency must not be zero”);function n(e,t,r,n){if(null!=n&&“function”!=typeof n)throw new Error(“task callback must be a function”);if(e.started=!0,m(t)||(t=),0===t.length&&e.idle())return u.setImmediate(function(){e.drain()});v(t,function(t){var i={data:t,callback:n||c};r?e.tasks.unshift(i):e.tasks.push(i),e.tasks.length===e.concurrency&&e.saturated()}),u.setImmediate(e.process)}function i(e,t){return function(){o-=1;var r=!1,n=arguments;v(t,function(e){v(a,function(t,n){t!==e||r||(a.splice(n,1),r=!0)}),e.callback.apply(e,n)}),e.tasks.length+o===0&&e.drain(),e.process()}}var o=0,a=[],s={tasks:,concurrency:t,payload:r,saturated:c,empty:c,drain:c,started:!1,paused:!1,push:function(e,t){n(s,e,!1,t)},kill:function(){s.drain=c,s.tasks=[]},unshift:function(e,t){n(s,e,!0,t)},process:function(){for(;!s.paused&&o<s.concurrency&&s.tasks.length;){var t=s.payload?s.tasks.splice(0,s.payload):s.tasks.splice(0,s.tasks.length),r=_(t,function(e){return e.data});0===s.tasks.length&&s.empty(),o+=1,a.push(t);var n=p(i(s,t));e(r,n)}},length:function(){return s.tasks.length},running:function(){return o},workersList:function(){return a},idle:function(){return s.tasks.length+o===0},pause:function(){s.paused=!0},resume:function(){if(!1!==s.paused){s.paused=!1;for(var e=Math.min(s.concurrency,s.tasks.length),t=1;t<=e;t++)u.setImmediate(s.process)}}};return s}function L(e){return E(function(t,r){t.apply(null,r.concat([E(function(t,r){“object”===(“undefined”==typeof console?“undefined”:a(console))&&(t?console.error&&console.error(t):console&&v(r,function(t){console(t)}))})]))})}function q(e){return function(t,r,n){e(w(t),r,n)}}function H(e){return E(function(t,r){var n=E(function®{var n=this,i=r.pop();return e(t,function(e,t,i){e.apply(n,r.concat())},i)});return r.length?n.apply(this,r):n})}function $(e){return E(function(t){var r=t.pop();t.push(function(){var e=arguments;n?u.setImmediate(function(){r.apply(null,e)}):r.apply(null,e)});var n=!0;e.apply(this,t),n=!1})}“object”===(void 0===n?“undefined”:a(n))&&“function”==typeof n.nextTick?u.nextTick=n.nextTick:u.nextTick=O,u.setImmediate=P?O:u.nextTick,u.forEach=u.each=function(e,t,r){return u.eachOf(e,A(t),r)},u.forEachSeries=u.eachSeries=function(e,t,r){return u.eachOfSeries(e,A(t),r)},u.forEachLimit=u.eachLimit=function(e,t,r,n){return T(t)(e,A®,n)},u.forEachOf=u.eachOf=function(e,t,r){r=b(r||c);for(var n,i=x(e=e||[]),o=0;null!=(n=i());)o+=1,t(e,n,p(a));function a(e){o–,e?r(e):null===n&&o<=0&&r(null)}0===o&&r(null)},u.forEachOfSeries=u.eachOfSeries=function(e,t,r){r=b(r||c);var n=x(e=e||[]),i=n();!function o(){var a=!0;if(null===i)return r(null);t(e,i,p(function(e){if(e)r(e);else{if(null===(i=n()))return r(null);a?u.setImmediate(o):o()}})),a=!1}()},u.forEachOfLimit=u.eachOfLimit=function(e,t,r,n){T(t)(e,r,n)},u.map=j(B),u.mapSeries=I(B),u.mapLimit=M(B),u.inject=u.foldl=u.reduce=function(e,t,r,n){u.eachOfSeries(e,function(e,n,i){r(t,e,function(e,r){t=r,i(e)})},function(e){n(e,t)})},u.foldr=u.reduceRight=function(e,t,r,n){var i=_(e,f).reverse();u.reduce(i,t,r,n)},u.transform=function(e,t,r,n){3===arguments.length&&(n=r,r=t,t=m(e)?[]:{}),u.eachOf(e,function(e,n,i){r(t,e,n,i)},function(e){n(e,t)})},u.select=u.filter=j(D),u.selectLimit=u.filterLimit=M(D),u.selectSeries=u.filterSeries=I(D),u.reject=j(C),u.rejectLimit=M(C),u.rejectSeries=I(C),u.any=u.some=N(u.eachOf,l,f),u.someLimit=N(u.eachOfLimit,l,f),u.all=u.every=N(u.eachOf,h,h),u.everyLimit=N(u.eachOfLimit,h,h),u.detect=N(u.eachOf,f,U),u.detectSeries=N(u.eachOfSeries,f,U),u.detectLimit=N(u.eachOfLimit,f,U),u.sortBy=function(e,t,r){function n(e,t){var r=e.criteria,n=t.criteria;return r<n?-1:r>n?1:0}u.map(e,function(e,r){t(e,function(t,n){t?r(t):r(null,{value:e,criteria:n})})},function(e,t){if(e)return r(e);r(null,_(t.sort(n),function(e){return e.value}))})},u.auto=function(e,t,r){“function”==typeof arguments&&(r=t,t=null),r=b(r||c);var n=k(e),i=n.length;if(!i)return r(null);t||(t=i);var o={},a=0,s=!1,f=[];function l(e){f.unshift(e)}function h(){i–,v(f.slice(0),function(e){e()})}l(function(){i||r(null,o)}),v(n,function(n){if(!s){for(var i,c=m(e)?e:[e],d=E(function(e,t){if(a–,t.length<=1&&(t=t),e){var i={};f=function(e,t){i=e},v(k(c=o),function(e){f(c,e)}),i=t,s=!0,r(e,i)}else o=t,u.setImmediate(h);var c,f}),p=c.slice(0,c.length-1),b=p.length;b–;){if(!(i=e[p]))throw new Error(“Has nonexistent dependency in ”+p.join(“, ”));if(m(i)&&S(i,n)>=0)throw new Error(“Has cyclic dependencies”)}y()?(a++,c(d,o)):l(function e(){y()&&(a++,(t=S(f,e))>=0&&f.splice(t,1),c(d,o));var t})}function y(){return a<t&&(e=function(e,t){return e&&o.hasOwnProperty(t)},r=!0,v(p,function(t,n,i){r=e(r,t,n,i)}),r)&&!o.hasOwnProperty(n);var e,r}})},u.retry=function(e,t,r){var n=5,i=0,o=[],s={times:n,interval:i};var c=arguments.length;if(c<1||c>3)throw new Error(“Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)”);function f(e,t){function r(e,r){return function(n){e(function(e,t){n(!e||r,{err:e,result:t})},t)}}function n(e){return function(t){setTimeout(function(){t(null)},e)}}for(;s.times;){var i=!(s.times-=1);o.push(r(s.task,i)),!i&&s.interval>0&&o.push(n(s.interval))}u.series(o,function(t,r){r=r,(e||s.callback)(r.err,r.result)})}return c<=2&&“function”==typeof e&&(r=t,t=e),“function”!=typeof e&&function(e,t){if(“number”==typeof t)e.times=parseInt(t,10)||n;else{if(“object”!==a(t))throw new Error(“Unsupported argument type for 'times': ”+a(t));e.times=parseInt(t.times,10)||n,e.interval=parseInt(t.interval,10)||i}}(s,e),s.callback=r,s.task=t,s.callback?f():f},u.waterfall=function(e,t){if(t=b(t||c),!m(e)){var r=new Error(“First argument to waterfall must be an array of functions”);return t®}if(!e.length)return t();!function e®{return E(function(n,i){if(n)t.apply(null,.concat(i));else{var o=r.next();o?i.push(e(o)):i.push(t),$®.apply(null,i)}})}(u.iterator(e))()},u.parallel=function(e,t){R(u.eachOf,e,t)},u.parallelLimit=function(e,t,r){R(T(t),e,r)},u.series=function(e,t){R(u.eachOfSeries,e,t)},u.iterator=function(e){return function t®{function n(){return e.length&&e.apply(null,arguments),n.next()}return n.next=function(){return r<e.length-1?t(r+1):null},n}(0)},u.apply=E(function(e,t){return E(function®{return e.apply(null,t.concat®)})}),u.concat=j(F),u.concatSeries=I(F),u.whilst=function(e,t,r){if(r=r||c,e()){var n=E(function(i,o){i?r(i):e.apply(this,o)?t(n):r.apply(null,.concat(o))});t(n)}else r(null)},u.doWhilst=function(e,t,r){var n=0;return u.whilst(function(){return++n<=1||t.apply(this,arguments)},e,r)},u.until=function(e,t,r){return u.whilst(function(){return!e.apply(this,arguments)},t,r)},u.doUntil=function(e,t,r){return u.doWhilst(e,function(){return!t.apply(this,arguments)},r)},u.during=function(e,t,r){r=r||c;var n=E(function(t,n){t?r(t):(n.push(i),e.apply(this,n))}),i=function(e,i){e?r(e):i?t(n):r(null)};e(i)},u.doDuring=function(e,t,r){var n=0;u.during(function(e){n++<1?e(null,!0):t.apply(this,arguments)},e,r)},u.queue=function(e,t){return z(function(t,r){e(t,r)},t,1)},u.priorityQueue=function(e,t){function r(e,t){return e.priority-t.priority}var n=u.queue(e,t);return n.push=function(e,t,i){!function(e,t,n,i){if(null!=i&&“function”!=typeof i)throw new Error(“task callback must be a function”);if(e.started=!0,m(t)||(t=),0===t.length)return u.setImmediate(function(){e.drain()});v(t,function(t){var o={data:t,priority:n,callback:“function”==typeof i?i:c};e.tasks.splice(function(e,t,r){for(var n=-1,i=e.length-1;n<i;){var o=n+(i-n+1>>>1);r(t,e)>=0?n=o:i=o-1}return n}(e.tasks,o,r)+1,0,o),e.tasks.length===e.concurrency&&e.saturated(),u.setImmediate(e.process)})}(n,e,t,i)},delete n.unshift,n},u.cargo=function(e,t){return z(e,1,t)},u.log=L(“log”),u.dir=L(“dir”),u.memoize=function(e,t){var r={},n={},i=Object.prototype.hasOwnProperty;t=t||f;var o=E(function(o){var a=o.pop(),s=t.apply(null,o);i.call(r,s)?u.setImmediate(function(){a.apply(null,r)}):i.call(n,s)?n.push(a):(n=[a],e.apply(null,o.concat([E(function(e){r=e;var t=n;delete n;for(var i=0,o=t.length;i.apply(null,e)})])))});return o.memo=r,o.unmemoized=e,o},u.unmemoize=function(e){return function(){return(e.unmemoized||e).apply(null,arguments)}},u.times=q(u.map),u.timesSeries=q(u.mapSeries),u.timesLimit=function(e,t,r,n){return u.mapLimit(w(e),t,r,n)},u.seq=function(){var e=arguments;return E(function(t){var r=this,n=t;“function”==typeof n?t.pop():n=c,u.reduce(e,t,function(e,t,n){t.apply(r,e.concat())},function(e,t){n.apply(r,.concat(t))})})},u.compose=function(){return u.seq.apply(null,Array.prototype.reverse.call(arguments))},u.applyEach=H(u.eachOf),u.applyEachSeries=H(u.eachOfSeries),u.forever=function(e,t){var r=p(t||c),n=$(e);!function e(t){if(t)return r(t);n(e)}()},u.ensureAsync=$,u.constant=E(function(e){var t=.concat(e);return function(e){return e.apply(this,t)}}),u.wrapSync=u.asyncify=function(e){return E(function(t){var r,n,i,o=t.pop();try{r=e.apply(this,t)}catch(e){return o(e)}(“function”===(i=a(n=r))||“object”===i&&n)&&“function”==typeof r.then?r.then(function(e){o(null,e)}).catch(function(e){o(e.message?e:new Error(e))}):o(null,r)})},“object”===a(i)&&i.exports?i.exports=u:void 0===(o=function(){return u}.apply(t,[]))||(i.exports=o)}()}).call(this,r(7),r(87).setImmediate,r(14),r(17)(e))},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(53)),o=r(41);t.Facebook=class extends o.Service{static getProofUrl(e){return this.normalizeUrl(e)}static normalizeUrl(e){let t=e.proof_url.toLowerCase();if((t=super.prefixScheme(t)).startsWith(“facebook.com”)){let r=t.split(“facebook.com”);const n=(r=(t=`www.facebook.com${r[1]}`).split(“https://www.facebook.com/”)[1].split(“/posts/”))[1];t=`https://www.facebook.com/${e.identifier}/posts/${n}`}else{if(!t.match(/(?:http[s]*://){0,1}(?:[a-zA-Z0-9-]+.)+facebook.com/))throw new Error(`Proof url ${e.proof_url} is not valid for service ${e.service}`);{const r=t.split(“facebook.com/”).split(“/posts/”);t=`www.facebook.com/${e.identifier}/posts/${r}`}}return t}static getProofStatement(e){const t=i.default.load(e)(‘meta').attr(“content”);return void 0!==t?t.trim():“”}}},function(e){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e,t,r){var n=r(200),i=e.exports=Object.create(n),o={tagName:“name”};Object.keys(o).forEach(function(e){var t=o;Object.defineProperty(i,e,{get:function(){return this||null},set:function(e){return this=e,e}})})},function(e,t,r){var n=r(199),i=r(36);function o(e,t){this.init(e,t)}function a(e,t){return i.getElementsByTagName(e,t,!0)}function s(e,t){return i.getElementsByTagName(e,t,!0,1)}function u(e,t,r){return i.getText(i.getElementsByTagName(e,t,r,1)).trim()}function c(e,t,r,n,i){var o=u(r,n,i);o&&(e=o)}r(3)(o,n),o.prototype.init=n;var f=function(e){return“rss”===e||“feed”===e||“rdf:RDF”===e};o.prototype.onend=function(){var e,t,r={},i=s(f,this.dom);i&&(“feed”===i.name?(t=i.children,r.type=“atom”,c(r,“id”,“id”,t),c(r,“title”,“title”,t),(e=s(“link”,t))&&(e=e.attribs)&&(e=e.href)&&(r.link=e),c(r,“description”,“subtitle”,t),(e=u(“updated”,t))&&(r.updated=new Date(e)),c(r,“author”,“email”,t,!0),r.items=a(“entry”,t).map(function(e){var t,r={};return c(r,“id”,“id”,e=e.children),c(r,“title”,“title”,e),(t=s(“link”,e))&&(t=t.attribs)&&(t=t.href)&&(r.link=t),(t=u(“summary”,e)||u(“content”,e))&&(r.description=t),(t=u(“updated”,e))&&(r.pubDate=new Date(t)),r})):(t=s(“channel”,i.children).children,r.type=i.name.substr(0,3),r.id=“”,c(r,“title”,“title”,t),c(r,“link”,“link”,t),c(r,“description”,“description”,t),(e=u(“lastBuildDate”,t))&&(r.updated=new Date(e)),c(r,“author”,“managingEditor”,t,!0),r.items=a(“item”,i.children).map(function(e){var t,r={};return c(r,“id”,“guid”,e=e.children),c(r,“title”,“title”,e),c(r,“link”,“link”,e),c(r,“description”,“description”,e),(t=u(“pubDate”,e))&&(r.pubDate=new Date(t)),r}))),this.dom=r,n.prototype._handleCallback.call(this,i?null:Error(“couldn't find root of feed”))},e.exports=o},function(e,t,r){var n=r(40),i=r(110),o=n.isTag;e.exports={getInnerHTML:function(e,t){return e.children?e.children.map(function(e){return i(e,t)}).join(“”):“”},getOuterHTML:i,getText:function e(t){if(Array.isArray(t))return t.map(e).join(“”);if(o(t)||t.type===n.CDATA)return e(t.children);if(t.type===n.Text)return t.data;return“”}}},function(e,t,r){var n=r(440),i=r(441);t.decode=function(e,t){return(!t||t<=0?i.XML:i.HTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?i.XML:i.HTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?n.XML:n.HTML)(e)},t.encodeXML=n.XML,t.encodeHTML4=t.encodeHTML5=t.encodeHTML=n.HTML,t.decodeXML=t.decodeXMLStrict=i.XML,t.decodeHTML4=t.decodeHTML5=t.decodeHTML=i.HTML,t.decodeHTML4Strict=t.decodeHTML5Strict=t.decodeHTMLStrict=i.HTMLStrict,t.escape=n.escape},function(e,t,r){var n=s(r(109)),i=u(n);t.XML=d(n,i);var o=s(r(108)),a=u(o);function s(e){return Object.keys(e).sort().reduce(function(t,r){return t[e]=“&”r“;”,t},{})}function u(e){var t=[],r=;return Object.keys(e).forEach(function(e){1===e.length?t.push(“\”+e):r.push(e)}),r.unshift(“”),new RegExp(r.join(“|”),“g”)}t.HTML=d(o,a);var c=//g,f=/[uDC00-uDFFF]/g;function l(e){return“&#x”+e.charCodeAt(0).toString(16).toUpperCase()+“;”}function h(e){return“&#x”+(1024*(e.charCodeAt(0)-55296)+e.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+“;”}function d(e,t){function r(t){return e}return function(e){return e.replace(t,r).replace(f,h).replace(c,l)}}var p=u(n);t.escape=function(e){return e.replace(p,l).replace(f,h).replace(c,l)}},function(e,t,r){var n=r(108),i=r(198),o=r(109),a=r(197),s=c(o),u=c(n);function c(e){var t=Object.keys(e).join(“|”),r=h(e),n=new RegExp(“&(?:”+(t+=“|#[\da-fA-F]+|#\d+”)+“);”,“g”);return function(e){return String(e).replace(n,r)}}var f=function(){for(var e=Object.keys(i).sort(l),t=Object.keys(n).sort(l),r=0,o=0;r===t?(t+=“;?”,o++):t+=“;”;var a=new RegExp(“&(?:”+t.join(“|”)+“|#[\da-fA-F]+;?|#\d+;?)”,“g”),s=h(n);function u(e){return“;”!==e.substr(-1)&&(e+=“;”),s(e)}return function(e){return String(e).replace(a,u)}}();function l(e,t){return e<t?1:-1}function h(e){return function(t){return“#”===t.charAt(1)?“X”===t.charAt(2)||“x”===t.charAt(2)?a(parseInt(t.substr(3),16)):a(parseInt(t.substr(2),10)):e}}e.exports={XML:s,HTML:f,HTMLStrict:u}},function(e,t){var r=t.getChildren=function(e){return e.children},n=t.getParent=function(e){return e.parent};t.getSiblings=function(e){var t=n(e);return t?r(t):},t.getAttributeValue=function(e,t){return e.attribs&&e.attribs},t.hasAttrib=function(e,t){return!!e.attribs&&hasOwnProperty.call(e.attribs,t)},t.getName=function(e){return e.name}},function(e,t){t.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},t.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o=t}},t.appendChild=function(e,t){if(t.parent=e,1!==e.children.push(t)){var r=e.children;r.next=t,t.prev=r,t.next=null}},t.append=function(e,t){var r=e.parent,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=r,n){if(n.prev=t,r){var i=r.children;i.splice(i.lastIndexOf(n),0,t)}}else r&&r.children.push(t)},t.prepend=function(e,t){var r=e.parent;if®{var n=r.children;n.splice(n.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},function(e,t,r){var n=r(40).isTag;function i(e,t,r,n){for(var o,a=[],s=0,u=t.length;s)&&(a.push(t),–n<=0))&&(o=t.children,!(r&&o&&o.length>0&&(o=i(e,o,r,n),a=a.concat(o),(n-=o.length)<=0)));s++);return a}e.exports={filter:function(e,t,r,n){Array.isArray(t)||(t=);“number”==typeof n&&isFinite(n)||(n=1/0);return i(e,t,!1!==r,n)},find:i,findOneChild:function(e,t){for(var r=0,n=t.length;r))return t;return null},findOne:function e(t,r){var i=null;for(var o=0,a=r.length;o)&&(t(r)?i=r:r.children.length>0&&(i=e(t,r.children)));return i},existsOne:function e(t,r){for(var i=0,o=r.length;i)&&(t(r)||r.children.length>0&&e(t,r.children)))return!0;return!1},findAll:function e(t,r){var i=[];for(var o=0,a=r.length;o)&&(t(r)&&i.push(r),r.children.length>0&&(i=i.concat(e(t,r.children))));return i}}},function(e,t,r){var n=r(40),i=t.isTag=n.isTag;t.testElement=function(e,t){for(var r in e)if(e.hasOwnProperty®){if(“tag_name”===r){if(!i(t)||!e.tag_name(t.name))return!1}else if(“tag_type”===r){if(!e.tag_type(t.type))return!1}else if(“tag_contains”===r){if(i(t)||!e.tag_contains(t.data))return!1}else if(!t.attribs||!e(t.attribs))return!1}else;return!0};var o={tag_name:function(e){return“function”==typeof e?function(t){return i(t)&&e(t.name)}:“*”===e?i:function(t){return i(t)&&t.name===e}},tag_type:function(e){return“function”==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return“function”==typeof e?function(t){return!i(t)&&e(t.data)}:function(t){return!i(t)&&t.data===e}}};function a(e,t){return“function”==typeof t?function®{return r.attribs&&t(r.attribs)}:function®{return r.attribs&&r.attribs===t}}function s(e,t){return function®{return e®||t®}}t.getElements=function(e,t,r,n){var i=Object.keys(e).map(function(t){var r=e;return t in o?o®:a(t,r)});return 0===i.length?[]:this.filter(i.reduce(s),t,r,n)},t.getElementById=function(e,t,r){return Array.isArray(t)||(t=),this.findOne(a(“id”,e),t,!1!==r)},t.getElementsByTagName=function(e,t,r,n){return this.filter(o.tag_name(e),t,r,n)},t.getElementsByTagType=function(e,t,r,n){return this.filter(o.tag_type(e),t,r,n)}},function(e,t){t.removeSubsets=function(e){for(var t,r,n,i=e.length;–i>-1;){for(t=r=e,e=null,n=!0;r;){if(e.indexOf®>-1){n=!1,e.splice(i,1);break}r=r.parent}n&&(e=t)}return e};var r=1,n=2,i=4,o=8,a=16,s=t.compareDocumentPosition=function(e,t){var s,u,c,f,l,h,d=[],p=;if(e===t)return 0;for(s=e;s;)d.unshift(s),s=s.parent;for(s=t;s;)p.unshift(s),s=s.parent;for(h=0;d===p;)h++;return 0===h?r:(c=(u=d).children,f=d,l=p,c.indexOf(f)>c.indexOf(l)?u===t?i|a:i:u===e?n|o:n)};t.uniqueSort=function(e){var t,r,o=e.length;for(e=e.slice();–o>-1;)t=e,(r=e.indexOf(t))>-1&&r<o&&e.splice(o,1);return e.sort(function(e,t){var r=s(e,t);return r&n?-1:r&i?1:0}),e}},function(e,t,r){e.exports=i;var n=r(201);function i(e){n.call(this,new o(this),e)}function o(e){this.scope=e}r(3)(i,n),i.prototype.readable=!0;var a=r(54).EVENTS;Object.keys(a).forEach(function(e){if(0===a)o.prototype=function(){this.scope.emit(e)};else if(1===a)o.prototype=function(t){this.scope.emit(e,t)};else{if(2!==a)throw Error(“wrong number of arguments!”);o.prototype=function(t,r){this.scope.emit(e,t,r)}}})},function(e,t){},function(e,t,r){function n(e){this._cbs=e||{}}e.exports=n;var i=r(54).EVENTS;Object.keys(i).forEach(function(e){if(0===i)e=“on”+e,n.prototype=function(){this._cbs&&this._cbs()};else if(1===i)e=“on”+e,n.prototype=function(t){this._cbs&&this._cbs(t)};else{if(2!==i)throw Error(“wrong number of arguments”);e=“on”+e,n.prototype=function(t,r){this._cbs&&this._cbs(t,r)}}})},function(e,t,r){function n(e){this._cbs=e||{},this.events=[]}e.exports=n;var i=r(54).EVENTS;Object.keys(i).forEach(function(e){if(0===i)e=“on”+e,n.prototype=function(){this.events.push(),this._cbs&&this._cbs()};else if(1===i)e=“on”+e,n.prototype=function(t){this.events.push(),this._cbs&&this._cbs(t)};else{if(2!==i)throw Error(“wrong number of arguments”);e=“on”+e,n.prototype=function(t,r){this.events.push(),this._cbs&&this._cbs(t,r)}}}),n.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},n.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var e=0,t=this.events.length;e[0]]){var r=this.events.length;1===r?this._cbs[this.events[0]]():2===r?this._cbs[this.events[0]](this.events[1]):this._cbs[this.events[0]](this.events[1],this.events[2])}}},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(112),o=r(55),a=o.isTag,s=o.domEach,u=Object.prototype.hasOwnProperty,c=o.camelCase,f=o.cssCase,l=/s+/,h={forEach:r(76),extend:r(202),some:r(460)},d={null:null,true:!0,false:!1},p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,b=/^(?:{[wW]*}|[[wW]*])$/,y=function(e,t){if(e&&a(e))return e.attribs||(e.attribs={}),t?u.call(e.attribs,t)?p.test(t)?t:e.attribs:“option”===e.name&&“value”===t?i.text(e.children):“input”!==e.name||“radio”!==e.attribs.type&&“checkbox”!==e.attribs.type||“value”!==t?void 0:“on”:e.attribs},m=function(e,t,r){null===r?w(e,t):e.attribs=r+“”};t.attr=function(e,t){return“object”===n(e)||void 0!==t?s(this,“function”==typeof t?function(r,n){m(n,e,t.call(n,r,n.attribs))}:function(r,i){a(i)&&(“object”===n(e)?h.forEach(e,function(e,t){m(i,t,e)}):m(i,e,t))}):y(this,e)};var g=function(e,t){if(e&&a(e))return e.hasOwnProperty(t)?e:p.test(t)?void 0!==y(e,t):y(e,t)},v=function(e,t,r){e=p.test(t)?!!r:r};t.prop=function(e,t){var r,i=0;if(“string”==typeof e&&void 0===t){switch(e){case“style”:r=this.css(),h.forEach(r,function(e,t){r=t}),r.length=i;break;case“tagName”:case“nodeName”:r=this.name.toUpperCase();break;default:r=g(this,e)}return r}if(“object”===n(e)||void 0!==t)return s(this,“function”==typeof t?function(r,n){v(n,e,t.call(n,r,g(n,e)))}:function(r,i){a(i)&&(“object”===n(e)?h.forEach(e,function(e,t){v(i,t,e)}):v(i,e,t))})};var _=function(e,t){var r,n,i,o,a,s,l,h=1===arguments.length;for(h?i=(r=Object.keys(e.attribs).filter(function(e){return“data-”===e.slice(0,“data-”.length)})).map(function(e){return c(e.slice(“data-”.length))}):(r=,i=),s=0,l=r.length;s,o=i,u.call(e.attribs,n)){if(a=e.attribs,u.call(d,a))a=d;else if(a===String(Number(a)))a=Number(a);else if(b.test(a))try{a=JSON.parse(a)}catch(e){}e.data=a}return h?e.data:a};t.data=function(e,t){var r=this;if(r&&a®)return r.data||(r.data={}),e?“object”===n(e)||void 0!==t?(s(this,function(r,i){!function(e,t,r){if(e.data||(e.data={}),“object”===n(t))return h.extend(e.data,t);“string”==typeof t&&void 0!==r?e.data=r:“object”===n(t)&&h.extend(e.data,t)}(i,e,t)}),this):u.call(r.data,e)?r.data:_(r,e):_®},t.val=function(e){var t=0===arguments.length,r=this;if®switch(r.name){case“textarea”:return this.text(e);case“input”:switch(this.attr(“type”)){case“radio”:return t?this.attr(“value”):(this.attr(“value”,e),this);default:return this.attr(“value”,e)}return;case“select”:var i,o=this.find(“option:selected”);if(void 0===o)return;if(!t){if(!this.attr().hasOwnProperty(“multiple”)&&“object”==n(e))return this;“object”!=n(e)&&(e=),this.find(“option”).removeAttr(“selected”);for(var a=0;ae[a]'“]').attr(”selected“,”“);return this}return i=o.attr(”value“),this.attr().hasOwnProperty(”multiple“)&&(i=[],s(o,function(e,t){i.push(y(t,”value“))})),i;case”option“:return t?this.attr(”value“):(this.attr(”value“,e),this)}};var w=function(e,t){e.attribs&&u.call(e.attribs,t)&&delete e.attribs};t.removeAttr=function(e){return s(this,function(t,r){w(r,e)}),this},t.hasClass=function(e){return h.some(this,function(t){var r,n=t.attribs,i=n&&n.class,o=-1;if(i)for(;(o=i.indexOf(e,o+1))>-1;)if(r=o+e.length,(0===o||l.test(i))&&(r===i.length||l.test(i)))return!0})},t.addClass=function(e){if(”function“==typeof e)return s(this,function(r,n){var i=n.attribs.class||”“;t.addClass.call(,e.call(n,r,i))});if(!e||”string“!=typeof e)return this;for(var r=e.split(l),n=this.length,i=0;i)){var o,u,c=y(this,”class“);if©{u=” “c” “,o=r.length;for(var f=0;f<o;f++){var h=r+” “;u.indexOf(” “+h)<0&&(u+=h)}m(this,”class“,u.trim())}else m(this,”class“,r.join(” “).trim())}return this};var S=function(e){return e?e.trim().split(l):[]};t.removeClass=function(e){var r,n,i;return”function“==typeof e?s(this,function(r,n){t.removeClass.call(,e.call(n,r,n.attribs.class||”“))}):(r=S(e),n=r.length,i=0===arguments.length,s(this,function(e,t){if(a(t))if(i)t.attribs.class=”“;else{for(var o,s,u=S(t.attribs.class),c=0;c))>=0&&(u.splice(o,1),s=!0,c–);s&&(t.attribs.class=u.join(” “))}}))},t.toggleClass=function(e,r){if(”function“==typeof e)return s(this,function(n,i){t.toggleClass.call(,e.call(i,n,i.attribs.class||”“,r),r)});if(!e||”string“!=typeof e)return this;for(var n,i,o=e.split(l),u=o.length,c=”boolean“==typeof r?r?1:-1:0,f=this.length,h=0;h)){n=S(this.attribs.class);for(var d=0;d),c>=0&&i<0?n.push(o):c<=0&&i>=0&&n.splice(i,1);this.attribs.class=n.join(” “)}return this},t.is=function(e){return!!e&&this.filter(e).length>0}},function(e,t,r){var n=r(453),i=r(454);e.exports=function(e){return i(n(e))},e.exports.parse=n,e.exports.compile=i},function(e,t){e.exports=function(e){if(”even“===(e=e.trim().toLowerCase()))return;if(”odd“===e)return;var t,n=e.match®;if(!n)throw new SyntaxError(”n-th rule couldn't be parsed ('“e”')“);return n?(t=parseInt(n,10),isNaN(t)&&(t=”-“===n.charAt(0)?-1:1)):t=0,[t,n?parseInt((n||”“)+n,10):0]};var r=/^(?d*n)?s*(?:(?)s*(d+))?$/},function(e,t,r){e.exports=function(e){var t=e,r=e-1;if(r<0&&t<=0)return o;if(-1===t)return function(e){return e<=r};if(0===t)return function(e){return e===r};if(1===t)return r<0?i:function(e){return e>=r};var n=r%t;n<0&&(n+=t);if(t>1)return function(e){return e>=r&&e%t===n};return t*=-1,function(e){return e<=r&&e%t===n}};var n=r(56),i=n.trueFunc,o=n.falseFunc},function(e,t,r){e.exports=function(e,t,r){return h(d(e,t,r))},e.exports.compileUnsafe=d,e.exports.compileToken=v;var n=r(456),i=r(36),o=i.isTag,a=r(457),s=r(458),u=r(56),c=u.trueFunc,f=u.falseFunc,l=r(206);function h(e){return function(t){return o(t)&&e(t)}}function d(e,t,r){return v(n(e,t),t,r)}function p(e){return”pseudo“===e.type&&(”scope“===e.name||Array.isArray(e.data)&&e.data.some(function(e){return e.some(p)}))}var b={type:”descendant“},y={type:”pseudo“,name:”scope“},m={},g=i.getParent;function v(e,t,r){(e=e.filter(function(e){return e.length>0})).forEach(s);var n=Array.isArray®;return(r=t&&t.context||r)&&!n&&(r=),function(e,t){var r=!!t&&!!t.length&&t.every(function(e){return e===m||!!g(e)});e.forEach(function(e){if(e.length>0&&_(e)&&”descendant“!==e.type);else{if(!r||p(e))return;e.unshift(b)}e.unshift(y)})}(e,r),e.map(function(e){return function(e,t,r,n){var i=n&&”scope“===e.name&&”descendant“===e.type;return e.reduce(function(e,n,o){return e===f?e:a(e,n,t,r,i&&1===o)},t&&t.rootFunc||c)}(e,t,r,n)}).reduce(w,f)}function _(e){return l<0}function w(e,t){return t===f||e===c?e:e===f||t===c?t:function®{return e®||t®}}var S=r(113).filters,k=i.existsOne,x=(o=i.isTag,i.getChildren);function E(e){return e.some(_)}S.not=function(e,t,r,n){var i={xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict)};if(i.strict&&(t.length>1||t.some(E)))throw new SyntaxError(”complex selectors in :not aren't allowed in strict mode“);var o=v(t,i,n);return o===f?e:o===c?f:function(t){return!o(t)&&e(t)}},S.has=function(e,t,r){var n={xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict)},i=t.some(E)?:null,a=v(t,n,i);return a===f?f:a===c?function(t){return x(t).some(o)&&e(t)}:(a=h(a),i?function(t){return e(t)&&(i=t,k(a,x(t)))}:function(t){return e(t)&&k(a,x(t))})},S.matches=function(e,t,r,n){return v(t,{xmlMode:!(!r||!r.xmlMode),strict:!(!r||!r.strict),rootFunc:e},n)}},function(e,t,r){”use strict“;e.exports=function(e,t){var r=[];if(”“!==(e=function e(t,r,i){var h,y,m,g,v=[],_=!1;function w(){var e=r.match(n);return r=r.substr(e.length),d(e)}function S(e){for(;p(r.charAt(e));)e++;r=r.substr(e)}function k(e){for(var t=0;”\“===r.charAt(–e);)t++;return 1==(1&t)}for(S(0);”“!==r;)if(p(y=r.charAt(0)))_=!0,S(1);else if(y in s)v.push({type:s}),_=!1,S(1);else if(”,“===y){if(0===v.length)throw new SyntaxError(”empty sub-selector“);t.push(v),v=[],_=!1,S(1)}else if(_&&(v.length>0&&v.push({type:”descendant“}),_=!1),”*“===y)r=r.substr(1),v.push({type:”universal“});else if(y in u)r=r.substr(1),v.push({type:”attribute“,name:u[0],action:u[1],value:w(),ignoreCase:!1});else if(”[“===y){if(r=r.substr(1),!(h=r.match(o)))throw new SyntaxError(”Malformed attribute selector: “+r);r=r.substr(h.length),m=d(h),i&&(”lowerCaseAttributeNames“in i?!i.lowerCaseAttributeNames:i.xmlMode)||(m=m.toLowerCase()),v.push({type:”attribute“,name:m,action:a[h],value:d(h||h||”“),ignoreCase:!!h})}else if(”:“===y){if(”:“===r.charAt(1)){r=r.substr(2),v.push({type:”pseudo-element“,name:w().toLowerCase()});continue}if(r=r.substr(1),m=w().toLowerCase(),h=null,”(“===r.charAt(0))if(m in c){var x=(g=r.charAt(1))in l;if(r=r.substr(x+1),r=e(h=[],r,i),x){if(r.charAt(0)!==g)throw new SyntaxError(”unmatched quotes in :“+m);r=r.substr(1)}if(”)“!==r.charAt(0))throw new SyntaxError(”missing closing parenthesis in :“m” “+r);r=r.substr(1)}else{for(var E=1,A=1;A>0&&E<r.length;E++)”(“!==r.charAt(E)||k(E)?”)“!==r.charAt(E)||k(E)||A–:A++;if(A)throw new SyntaxError(”parenthesis not matched“);h=r.substr(1,E-2),r=r.substr(E),m in f&&((g=h.charAt(0))===h.slice(-1)&&g in l&&(h=h.slice(1,-1)),h=d(h))}v.push({type:”pseudo“,name:m,data:h})}else{if(!n.test®)return v.length&&”descendant“===v.type&&v.pop(),b(t,v),r;m=w(),i&&(”lowerCaseTags“in i?!i.lowerCaseTags:i.xmlMode)||(m=m.toLowerCase()),v.push({type:”tag“,name:m})}return b(t,v),r}(r,e+”“,t)))throw new SyntaxError(”Unmatched selector: “+e);return r};var n=/^(?:\.|)+/,i=/\({1,6}s?|(s)|.)/gi,o=/^s*((?:\.|)+)s*(?:(S?)=s*(?:([’”])([^]*?)3|(#?(?:\.|[wu00b0-uFFFF-])*)|)|)s*(i)?]/,a={__proto__:null,undefined:“exists”,“”:“equals”,“~”:“element”,“^”:“start”,$:“end”,“*”:“any”,“!”:“not”,“|”:“hyphen”},s={__proto__:null,“>”:“child”,“<”:“parent”,“~”:“sibling”,“+”:“adjacent”},u={__proto__:null,“#”:,“.”:[“class”,“element”]},c={__proto__:null,has:!0,not:!0,matches:!0},f={__proto__:null,contains:!0,icontains:!0},l={__proto__:null,'“':!0,”'“:!0};function h(e,t,r){var n=”0x“+t-65536;return n!=n||r?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)}function d(e){return e.replace(i,h)}function p(e){return” “===e||”n“===e||”t“===e||”f“===e||”r“===e}function b(e,t){if(e.length>0&&0===t.length)throw new SyntaxError(”empty sub-selector“);e.push(t)}},function(e,t,r){var n=r(36),i=n.isTag,o=n.getParent,a=n.getChildren,s=n.getSiblings,u=n.getName;e.exports={__proto__:null,attribute:r(205).compile,pseudo:r(113).compile,tag:function(e,t){var r=t.name;return function(t){return u(t)===r&&e(t)}},descendant:function(e,t,r,n,i){return function(t){if(i&&e(t))return!0;for(var r=!1;!r&&(t=o(t));)r=e(t);return r}},parent:function(e,t,r){if(r&&r.strict)throw SyntaxError(”Parent selector isn't part of CSS3“);return function(e){return a(e).some(n)};function n(t){return i(t)&&e(t)}},child:function(e){return function(t){var r=o(t);return!!r&&e®}},sibling:function(e){return function(t){for(var r=s(t),n=0;n)){if(r===t)break;if(e(r))return!0}return!1}},adjacent:function(e){return function(t){for(var r,n=s(t),o=0;o)){if(n===t)break;r=n}return!!r&&e®}},universal:function(e){return e}}},function(e,t,r){e.exports=function(e){for(var t=e.map(o),r=1;r<e.length;r++){var n=t;if(!(n<0))for(var i=r-1;i>=0&&n;i–){var a=e;e=e,e=a,t=t,t=n}}};var n=r(206),i={__proto__:null,exists:10,equals:8,not:7,start:6,end:6,any:5,hyphen:4,element:4};function o(e){var t=n;if(t===n.attribute)(t=i)===i.equals&&”id“===e.name&&(t=9),e.ignoreCase&&(t>>=1);else if(t===n.pseudo)if(e.data)if(”has“===e.name||”contains“===e.name)t=0;else if(”matches“===e.name||”not“===e.name){t=0;for(var r=0;r.length){var a=o(e.data[0]);if(0===a){t=0;break}a>t&&(t=a)}e.data.length>1&&t>0&&(t-=1)}else t=1;else t=3;return t}},function(e,t,r){(function(e,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=200,o=”lodash_hash_undefined“,a=800,s=16,u=9007199254740991,c=”[object Arguments]“,f=”[object AsyncFunction]“,l=”[object Function]“,h=”[object GeneratorFunction]“,d=”[object Null]“,p=”[object Object]“,b=”[object Proxy]“,y=”[object Undefined]“,m=/^[object .+?Constructor]$/,g=/^(?:0|d*)$/,v={};v[”[object Float32Array]“]=v[”[object Float64Array]“]=v[”[object Int8Array]“]=v[”[object Int16Array]“]=v[”[object Int32Array]“]=v[”[object Uint8Array]“]=v[”[object Uint8ClampedArray]“]=v[”[object Uint16Array]“]=v[”[object Uint32Array]“]=!0,v=v[”[object Array]“]=v[”[object ArrayBuffer]“]=v[”[object Boolean]“]=v[”[object DataView]“]=v[”[object Date]“]=v[”[object Error]“]=v=v[”[object Map]“]=v[”[object Number]“]=v=v[”[object RegExp]“]=v[”[object Set]“]=v[”[object String]“]=v[”[object WeakMap]“]=!1;var _=”object“==(void 0===e?”undefined“:n(e))&&e&&e.Object===Object&&e,w=”object“==(”undefined“==typeof self?”undefined“:n(self))&&self&&self.Object===Object&&self,S=_||w||Function(”return this“)(),k=”object“==n(t)&&t&&!t.nodeType&&t,x=k&&”object“==n®&&r&&!r.nodeType&&r,E=x&&x.exports===k,A=E&&_.process,P=function(){try{return A&&A.binding&&A.binding(”util“)}catch(e){}}(),O=P&&P.isTypedArray;function T(e,t){return”__proto__“==t?void 0:e}var j,M,I,B=Array.prototype,D=Function.prototype,C=Object.prototype,N=S[”core-js_shared“],U=D.toString,R=C.hasOwnProperty,F=(j=/+$/.exec(N&&N.keys&&N.keys.IE_PROTO||”“))?”Symbol(src)_1.“+j:”“,z=C.toString,L=U.call(Object),q=RegExp(”^“+U.call(R).replace(/[\^$.*+?(){}|]/g,”\$&“).replace(/hasOwnProperty|(function).*?(?=\()| for .+?(?=\])/g,”$1.*?“)+”$“),H=E?S.Buffer:void 0,$=S.Symbol,K=S.Uint8Array,V=H?H.allocUnsafe:void 0,G=(M=Object.getPrototypeOf,I=Object,function(e){return M(I(e))}),W=Object.create,X=C.propertyIsEnumerable,Z=B.splice,J=$?$.toStringTag:void 0,Y=function(){try{var e=ke(Object,”defineProperty“);return e({},”“,{}),e}catch(e){}}(),Q=H?H.isBuffer:void 0,ee=Math.max,te=Date.now,re=ke(S,”Map“),ne=ke(Object,”create“),ie=function(){function e(){}return function(t){if(!De(t))return{};if(W)return W(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function oe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function ae(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function se(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function ue(e){var t=this.__data__=new ae(e);this.size=t.size}function ce(e,t){var r=Te(e),n=!r&&Oe(e),i=!r&&!n&&Me(e),o=!r&&!n&&!i&&Ne(e),a=r||n||i||o,s=a?function(e,t){for(var r=-1,n=Array(e);++r=t®;return n}(e.length,String):[],u=s.length;for(var c in e)!t&&!R.call(e,c)||a&&(”length“==c||i&&(”offset“==c||”parent“==c)||o&&(”buffer“==c||”byteLength“==c||”byteOffset“==c)||xe(c,u))||s.push©;return s}function fe(e,t,r){(void 0===r||Pe(e,r))&&(void 0!==r||t in e)||de(e,t,r)}function le(e,t,r){var n=e;R.call(e,t)&&Pe(n,r)&&(void 0!==r||t in e)||de(e,t,r)}function he(e,t){for(var r=e.length;r–;)if(Pe(e[0],t))return r;return-1}function de(e,t,r){”__proto__“==t&&Y?Y(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e=r}oe.prototype.clear=function(){this.__data__=ne?ne(null):{},this.size=0},oe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__;return this.size-=t?1:0,t},oe.prototype.get=function(e){var t=this.__data__;if(ne){var r=t;return r===o?void 0:r}return R.call(t,e)?t:void 0},oe.prototype.has=function(e){var t=this.__data__;return ne?void 0!==t:R.call(t,e)},oe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r=ne&&void 0===t?o:t,this},ae.prototype.clear=function(){this.__data__=[],this.size=0},ae.prototype.delete=function(e){var t=this.__data__,r=he(t,e);return!(r<0||(r==t.length-1?t.pop():Z.call(t,r,1),–this.size,0))},ae.prototype.get=function(e){var t=this.__data__,r=he(t,e);return r<0?void 0:t[1]},ae.prototype.has=function(e){return he(this.__data__,e)>-1},ae.prototype.set=function(e,t){var r=this.__data__,n=he(r,e);return n<0?(++this.size,r.push()):r[1]=t,this},se.prototype.clear=function(){this.size=0,this.__data__={hash:new oe,map:new(re||ae),string:new oe}},se.prototype.delete=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t},se.prototype.get=function(e){return Se(this,e).get(e)},se.prototype.has=function(e){return Se(this,e).has(e)},se.prototype.set=function(e,t){var r=Se(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},ue.prototype.clear=function(){this.__data__=new ae,this.size=0},ue.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},ue.prototype.get=function(e){return this.__data__.get(e)},ue.prototype.has=function(e){return this.__data__.has(e)},ue.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ae){var n=r.__data__;if(!re||n.length<i-1)return n.push(),this.size=++r.size,this;r=this.__data__=new se(n)}return r.set(e,t),this.size=r.size,this};var pe,be=function(e,t,r){for(var n=-1,i=Object(e),o=r(e),a=o.length;a–;){var s=o;if(!1===t(i,s,i))break}return e};function ye(e){return null==e?void 0===e?y:d:J&&J in Object(e)?function(e){var t=R.call(e,J),r=e;try{e=void 0;var n=!0}catch(e){}var i=z.call(e);n&&(t?e=r:delete e);return i}(e):function(e){return z.call(e)}(e)}function me(e){return Ce(e)&&ye(e)==c}function ge(e){return!(!De(e)||(t=e,F&&F in t))&&(Ie(e)?q:m).test(function(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+”“}catch(e){}}return”“}(e));var t}function ve(e){if(!De(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push®;return t}(e);var t=Ee(e),r=[];for(var n in e)(”constructor“!=n||!t&&R.call(e,n))&&r.push(n);return r}function _e(e,t,r,n,i){e!==t&&be(t,function(o,a){if(De(o))i||(i=new ue),function(e,t,r,n,i,o,a){var s=T(e,r),u=T(t,r),c=a.get(u);if©return void fe(e,r,c);var f=o?o(s,u,r+”“,e,t,a):void 0,l=void 0===f;if(l){var h=Te(u),d=!h&&Me(u),b=!h&&!d&&Ne(u);f=u,h||d||b?Te(s)?f=s:Ce(_=s)&&je(_)?f=function(e,t){var r=-1,n=e.length;t||(t=Array(n));for(;++r=e;return t}(s):d?(l=!1,f=function(e,t){if(t)return e.slice();var r=e.length,n=V?V®:new e.constructor®;return e.copy(n),n}(u,!0)):b?(l=!1,y=u,m=!0?(g=y.buffer,v=new g.constructor(g.byteLength),new K(v).set(new K(g)),v):y.buffer,f=new y.constructor(m,y.byteOffset,y.length)):f=[]:function(e){if(!Ce(e)||ye(e)!=p)return!1;var t=G(e);if(null===t)return!0;var r=R.call(t,”constructor“)&&t.constructor;return”function“==typeof r&&r instanceof r&&U.call®==L}(u)||Oe(u)?(f=s,Oe(s)?f=function(e){return function(e,t,r,n){var i=!r;r||(r={});var o=-1,a=t.length;for(;++o<a;){var s=t,u=n?n(r,e,s,r,e):void 0;void 0===u&&(u=e),i?de(r,s,u):le(r,s,u)}return r}(e,Ue(e))}(s):(!De(s)||n&&Ie(s))&&(f=function(e){return”function“!=typeof e.constructor||Ee(e)?{}:ie(G(e))}(u))):l=!1}var y,m,g,v;var _;l&&(a.set(u,f),i(f,u,n,o,a),a.delete(u));fe(e,r,f)}(e,t,a,r,_e,n,i);else{var s=n?n(T(e,a),o,a+”“,e,t,i):void 0;void 0===s&&(s=o),fe(e,a,s)}},Ue)}function we(e,t){return Ae(function(e,t,r){return t=ee(void 0===t?e.length-1:t,0),function(){for(var n=arguments,i=-1,o=ee(n.length-t,0),a=Array(o);++i=n;i=-1;for(var s=Array(t+1);++i=n;return s=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r);case 2:return e.call(t,r,r);case 3:return e.call(t,r,r,r)}return e.apply(t,r)}(e,this,s)}}(e,t,ze),e+”“)}function Se(e,t){var r,i,o=e.__data__;return(”string“==(i=n(r=t))||”number“==i||”symbol“==i||”boolean“==i?”__proto__“!==r:null===r)?o[”string“==typeof t?”string“:”hash“]:o.map}function ke(e,t){var r=function(e,t){return null==e?void 0:e}(e,t);return ge®?r:void 0}function xe(e,t){var r=n(e);return!!(t=null==t?u:t)&&(”number“==r||”symbol“!=r&&g.test(e))&&e>-1&&e%1==0&&e<t}function Ee(e){var t=e&&e.constructor;return e===(”function“==typeof t&&t.prototype||C)}var Ae=function(e){var t=0,r=0;return function(){var n=te(),i=s-(n-r);if(r=n,i>0){if(++t>=a)return arguments}else t=0;return e.apply(void 0,arguments)}}(Y?function(e,t){return Y(e,”toString“,{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:ze);function Pe(e,t){return e===t||e!=e&&t!=t}var Oe=me(function(){return arguments}())?me:function(e){return Ce(e)&&R.call(e,”callee“)&&!X.call(e,”callee“)},Te=Array.isArray;function je(e){return null!=e&&Be(e.length)&&!Ie(e)}var Me=Q||function(){return!1};function Ie(e){if(!De(e))return!1;var t=ye(e);return t==l||t==h||t==f||t==b}function Be(e){return”number“==typeof e&&e>-1&&e%1==0&&e<=u}function De(e){var t=n(e);return null!=e&&(”object“==t||”function“==t)}function Ce(e){return null!=e&&”object“==n(e)}var Ne=O?function(e){return function(t){return e(t)}}(O):function(e){return Ce(e)&&Be(e.length)&&!!v};function Ue(e){return je(e)?ce(e,!0):ve(e)}var Re,Fe=(Re=function(e,t,r){_e(e,t,r)},we(function(e,t){var r=-1,i=t.length,o=i>1?t:void 0,a=i>2?t:void 0;for(o=Re.length>3&&”function“==typeof o?(i–,o):void 0,a&&function(e,t,r){if(!De®)return!1;var i=n(t);return!!(”number“==i?je®&&xe(t,r.length):”string“==i&&t in r)&&Pe(r,e)}(t,t,a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=t;s&&Re(e,s,r,o)}return e}));function ze(e){return e}r.exports=Fe}).call(this,r(7),r(17)(e))},function(e,t,r){(function(e,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=200,o=”Expected a function“,a=”lodash_hash_undefined“,s=1,u=2,c=1/0,f=9007199254740991,l=”[object Arguments]“,h=”[object Array]“,d=”[object Boolean]“,p=”[object Date]“,b=”[object Error]“,y=”[object Function]“,m=”[object GeneratorFunction]“,g=”[object Map]“,v=”[object Number]“,_=”[object Object]“,w=”[object RegExp]“,S=”[object Set]“,k=”[object String]“,x=”[object Symbol]“,E=”[object ArrayBuffer]“,A=”[object DataView]“,P=/.|[(?:[^]*|([”'])(?:(?!1)|\.)*?1)]/,O=/^w*$/,T=/^./,j=/[^.]+|[(?:(-?d+(?:.d+)?)|()((?:(?!2)|\.)*?)2)]|(?=(?:.|[])(?:.|[]|$))/g,M=/\(\)?/g,I=/^[object .+?Constructor]$/,B=/^(?:0|d*)$/,D={};D[“[object Float32Array]”]=D[“[object Float64Array]”]=D[“[object Int8Array]”]=D[“[object Int16Array]”]=D[“[object Int32Array]”]=D[“[object Uint8Array]”]=D[“[object Uint8ClampedArray]”]=D[“[object Uint16Array]”]=D[“[object Uint32Array]”]=!0,D=D=D=D=D=D=D=D=D=D=D=D=D=D=D[“[object WeakMap]”]=!1;var C=“object”==(void 0===e?“undefined”:n(e))&&e&&e.Object===Object&&e,N=“object”==(“undefined”==typeof self?“undefined”:n(self))&&self&&self.Object===Object&&self,U=C||N||Function(“return this”)(),R=“object”==n(t)&&t&&!t.nodeType&&t,F=R&&“object”==n®&&r&&!r.nodeType&&r,z=F&&F.exports===R&&C.process,L=function(){try{return z&&z.binding(“util”)}catch(e){}}(),q=L&&L.isTypedArray;function H(e,t){for(var r=-1,n=e?e.length:0;++r,r,e))return!0;return!1}function $(e){var t=!1;if(null!=e&&“function”!=typeof e.toString)try{t=!!(e+“”)}catch(e){}return t}function K(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r=[n,e]}),r}function V(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r=e}),r}var G,W,X,Z=Array.prototype,J=Function.prototype,Y=Object.prototype,Q=U[“core-js_shared”],ee=(G=/+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||“”))?“Symbol(src)_1.”+G:“”,te=J.toString,re=Y.hasOwnProperty,ne=Y.toString,ie=RegExp(“^”+te.call(re).replace(/[\^$.*+?(){}|]/g,“\$&”).replace(/hasOwnProperty|(function).*?(?=\()| for .+?(?=\])/g,“$1.*?”)+“$”),oe=U.Symbol,ae=U.Uint8Array,se=Y.propertyIsEnumerable,ue=Z.splice,ce=(W=Object.keys,X=Object,function(e){return W(X(e))}),fe=Ke(U,“DataView”),le=Ke(U,“Map”),he=Ke(U,“Promise”),de=Ke(U,“Set”),pe=Ke(U,“WeakMap”),be=Ke(Object,“create”),ye=Qe(fe),me=Qe(le),ge=Qe(he),ve=Qe(de),_e=Qe(pe),we=oe?oe.prototype:void 0,Se=we?we.valueOf:void 0,ke=we?we.toString:void 0;function xe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Ee(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Ae(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Pe(e){var t=-1,r=e?e.length:0;for(this.__data__=new Ae;++t)}function Oe(e){this.__data__=new Ee(e)}function Te(e,t){var r=nt(e)||rt(e)?function(e,t){for(var r=-1,n=Array(e);++r=t®;return n}(e.length,String):[],n=r.length,i=!!n;for(var o in e)!t&&!re.call(e,o)||i&&(“length”==o||Ge(o,n))||r.push(o);return r}function je(e,t){for(var r=e.length;r–;)if(tt(e[0],t))return r;return-1}xe.prototype.clear=function(){this.__data__=be?be(null):{}},xe.prototype.delete=function(e){return this.has(e)&&delete this.__data__},xe.prototype.get=function(e){var t=this.__data__;if(be){var r=t;return r===a?void 0:r}return re.call(t,e)?t:void 0},xe.prototype.has=function(e){var t=this.__data__;return be?void 0!==t:re.call(t,e)},xe.prototype.set=function(e,t){return this.__data__=be&&void 0===t?a:t,this},Ee.prototype.clear=function(){this.__data__=[]},Ee.prototype.delete=function(e){var t=this.__data__,r=je(t,e);return!(r<0||(r==t.length-1?t.pop():ue.call(t,r,1),0))},Ee.prototype.get=function(e){var t=this.__data__,r=je(t,e);return r<0?void 0:t[1]},Ee.prototype.has=function(e){return je(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var r=this.__data__,n=je(r,e);return n<0?r.push():r[1]=t,this},Ae.prototype.clear=function(){this.__data__={hash:new xe,map:new(le||Ee),string:new xe}},Ae.prototype.delete=function(e){return $e(this,e).delete(e)},Ae.prototype.get=function(e){return $e(this,e).get(e)},Ae.prototype.has=function(e){return $e(this,e).has(e)},Ae.prototype.set=function(e,t){return $e(this,e).set(e,t),this},Pe.prototype.add=Pe.prototype.push=function(e){return this.__data__.set(e,a),this},Pe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.clear=function(){this.__data__=new Ee},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ee){var n=r.__data__;if(!le||n.length<i-1)return n.push(),this;r=this.__data__=new Ae(n)}return r.set(e,t),this};var Me,Ie,Be=(Me=function(e,t){return e&&De(e,t,lt)},function(e,t){if(null==e)return e;if(!it(e))return Me(e,t);for(var r=e.length,n=Ie?r:-1,i=Object(e);(Ie?n–:++n,n,i););return e}),De=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s–;){var u=a;if(!1===r(o,u,o))break}return t}}();function Ce(e,t){for(var r=0,n=(t=We(t,e)?:qe(t)).length;null!=e&&r)];return r&&r==n?e:void 0}function Ne(e,t){return null!=e&&t in Object(e)}function Ue(e,t,r,n,i){return e===t||(null==e||null==t||!st(e)&&!ut(t)?e!=e&&t!=t:function(e,t,r,n,i,o){var a=nt(e),c=nt(t),f=h,y=h;a||(f=(f=Ve(e))==l?_:f);c||(y=(y=Ve(t))==l?_:y);var m=f==_&&!$(e),P=y==_&&!$(t),O=f==y;if(O&&!m)return o||(o=new Oe),a||ft(e)?He(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch®{case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!n(new ae(e),new ae(t)));case d:case p:case v:return tt(+e,+t);case b:return e.name==t.name&&e.message==t.message;case w:case k:return e==t+“”;case g:var c=K;case S:var f=o&u;if(c||(c=V),e.size!=t.size&&!f)return!1;var l=a.get(e);if(l)return l==t;o|=s,a.set(e,t);var h=He(c(e),c(t),n,i,o,a);return a.delete(e),h;case x:if(Se)return Se.call(e)==Se.call(t)}return!1}(e,t,f,r,n,i,o);if(!(i&u)){var T=m&&re.call(e,“__wrapped__”),j=P&&re.call(t,“__wrapped__”);if(T||j){var M=T?e.value():e,I=j?t.value():t;return o||(o=new Oe),r(M,I,n,i,o)}}if(!O)return!1;return o||(o=new Oe),function(e,t,r,n,i,o){var a=i&u,s=lt(e),c=s.length,f=lt(t).length;if(c!=f&&!a)return!1;for(var l=c;l–;){var h=s;if(!(a?h in t:re.call(t,h)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var p=!0;o.set(e,t),o.set(t,e);for(var b=a;++l<c;){h=s;var y=e,m=t;if(n)var g=a?n(m,y,h,t,e,o):n(y,m,h,e,t,o);if(!(void 0===g?y===m||r(y,m,n,i,o):g)){p=!1;break}b||(b=“constructor”==h)}if(p&&!b){var v=e.constructor,_=t.constructor;v!=_&&“constructor”in e&&“constructor”in t&&!(“function”==typeof v&&v instanceof v&&“function”==typeof _&&_ instanceof _)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,r,n,i,o)}(e,t,Ue,r,n,i))}function Re(e){return!(!st(e)||(t=e,ee&&ee in t))&&(ot(e)||$(e)?ie:I).test(Qe(e));var t}function Fe(e){return“function”==typeof e?e:null==e?ht:“object”==n(e)?nt(e)?function(e,t){if(We(e)&&Xe(t))return Ze(Ye(e),t);return function®{var n=function(e,t,r){var n=null==e?void 0:Ce(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){t=We(t,e)?:qe(t);var n,i=-1,o=t.length;for(;++i<o;){var a=Ye(t);if(!(n=null!=e&&r(e,a)))break;e=e}if(n)return n;return!!(o=e?e.length:0)&&at(o)&&Ge(a,o)&&(nt(e)||rt(e))}(e,t,Ne)}(r,e):Ue(t,n,void 0,s|u)}}(e,e):function(e){var t=function(e){var t=lt(e),r=t.length;for(;r–;){var n=t,i=e;t=[n,i,Xe(i)]}return t}(e);if(1==t.length&&t[2])return Ze(t[0],t[1]);return function®{return r===e||function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i–;){var c=r;if(a&&c?c!==e[c]:!(cin e))return!1}for(;++i<o;){var f=(c=r)[0],l=e,h=c;if(a&&c){if(void 0===l&&!(f in e))return!1}else{var d=new Oe;if(n)var p=n(l,h,f,e,t,d);if(!(void 0===p?Ue(h,l,n,s|u,d):p))return!1}}return!0}(r,e,t)}}(e):We(t=e)?(r=Ye(t),function(e){return null==e?void 0:e}):function(e){return function(t){return Ce(t,e)}}(t);var t,r}function ze(e){if(r=(t=e)&&t.constructor,n=“function”==typeof r&&r.prototype||Y,t!==n)return ce(e);var t,r,n,i=[];for(var o in Object(e))re.call(e,o)&&“constructor”!=o&&i.push(o);return i}function Le(e,t){var r;return Be(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function qe(e){return nt(e)?e:Je(e)}function He(e,t,r,n,i,o){var a=i&u,c=e.length,f=t.length;if(c!=f&&!(a&&f>c))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var h=-1,d=!0,p=i&s?new Pe:void 0;for(o.set(e,t),o.set(t,e);++h<c;){var b=e,y=t;if(n)var m=a?n(y,b,h,t,e,o):n(b,y,h,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!H(t,function(e,t){if(!p.has(t)&&(b===e||r(b,e,n,i,o)))return p.add(t)})){d=!1;break}}else if(b!==y&&!r(b,y,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function $e(e,t){var r,i,o=e.__data__;return(“string”==(i=n(r=t))||“number”==i||“symbol”==i||“boolean”==i?“__proto__”!==r:null===r)?o[“string”==typeof t?“string”:“hash”]:o.map}function Ke(e,t){var r=function(e,t){return null==e?void 0:e}(e,t);return Re®?r:void 0}var Ve=function(e){return ne.call(e)};function Ge(e,t){return!!(t=null==t?f:t)&&(“number”==typeof e||B.test(e))&&e>-1&&e%1==0&&e<t}function We(e,t){if(nt(e))return!1;var r=n(e);return!(“number”!=r&&“symbol”!=r&&“boolean”!=r&&null!=e&&!ct(e))||(O.test(e)||!P.test(e)||null!=t&&e in Object(t))}function Xe(e){return e==e&&!st(e)}function Ze(e,t){return function®{return null!=r&&(r===t&&(void 0!==t||e in Object®))}}(fe&&Ve(new fe(new ArrayBuffer(1)))!=A||le&&Ve(new le)!=g||he&&“[object Promise]”!=Ve(he.resolve())||de&&Ve(new de)!=S||pe&&“[object WeakMap]”!=Ve(new pe))&&(Ve=function(e){var t=ne.call(e),r=t==_?e.constructor:void 0,n=r?Qe®:void 0;if(n)switch(n){case ye:return A;case me:return g;case ge:return“[object Promise]”;case ve:return S;case _e:return“[object WeakMap]”}return t});var Je=et(function(e){var t;e=null==(t=e)?“”:function(e){if(“string”==typeof e)return e;if(ct(e))return ke?ke.call(e):“”;var t=e+“”;return“0”==t&&1/e==-c?“-0”:t}(t);var r=[];return T.test(e)&&r.push(“”),e.replace(j,function(e,t,n,i){r.push(n?i.replace(M,“$1”):t||e)}),r});function Ye(e){if(“string”==typeof e||ct(e))return e;var t=e+“”;return“0”==t&&1/e==-c?“-0”:t}function Qe(e){if(null!=e){try{return te.call(e)}catch(e){}try{return e+“”}catch(e){}}return“”}function et(e,t){if(“function”!=typeof e||t&&“function”!=typeof t)throw new TypeError(o);var r=function r(){var n=arguments,i=t?t.apply(this,n):n,o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(et.Cache||Ae),r}function tt(e,t){return e===t||e!=e&&t!=t}function rt(e){return function(e){return ut(e)&&it(e)}(e)&&re.call(e,“callee”)&&(!se.call(e,“callee”)||ne.call(e)==l)}et.Cache=Ae;var nt=Array.isArray;function it(e){return null!=e&&at(e.length)&&!ot(e)}function ot(e){var t=st(e)?ne.call(e):“”;return t==y||t==m}function at(e){return“number”==typeof e&&e>-1&&e%1==0&&e<=f}function st(e){var t=n(e);return!!e&&(“object”==t||“function”==t)}function ut(e){return!!e&&“object”==n(e)}function ct(e){return“symbol”==n(e)||ut(e)&&ne.call(e)==x}var ft=q?function(e){return function(t){return e(t)}}(q):function(e){return ut(e)&&at(e.length)&&!!D};function lt(e){return it(e)?Te(e):ze(e)}function ht(e){return e}r.exports=function(e,t,r){var i=nt(e)?H:Le;return r&&function(e,t,r){if(!st®)return!1;var i=n(t);return!!(“number”==i?it®&&Ge(t,r.length):“string”==i&&t in r)&&tt(r,e)}(e,t,r)&&(t=void 0),i(e,Fe(t))}}).call(this,r(7),r(17)(e))},function(e,t,r){var n=r(204),i=r(55),o=i.domEach,a=r(54).DomUtils.uniqueSort,s=i.isTag,u={bind:r(111),forEach:r(76),reject:r(462),filter:r(463),reduce:r(464)};t.find=function(e){var t,r=u.reduce(this,function(e,t){return e.concat(u.filter(t.children,s))},[]),i=this.constructor.contains;if(e&&“string”!=typeof e)return t=e.cheerio?e.get():,this._make(t.filter(function(e){var t,r;for(t=0,r=this.length;t,e))return!0},this));var o={__proto__:this.options,context:this.toArray()};return this._make(n(e,r,o))},t.parent=function(e){var r=[];return o(this,function(e,t){var n=t.parent;n&&r.indexOf(n)<0&&r.push(n)}),arguments.length&&(r=t.filter.call(r,e,this)),this._make®},t.parents=function(e){var t=[];return this.get().reverse().forEach(function®{f(this,r.parent,e,1/0).forEach(function(e){-1===t.indexOf(e)&&t.push(e)})},this),this._make(t)},t.parentsUntil=function(e,t){var r,i,o=[];return“string”==typeof e?r=n(e,this.parents().toArray(),this.options):e&&e.cheerio?i=e.toArray():e&&(r=e),this.toArray().reverse().forEach(function(e){for(;(e=e.parent)&&(r&&e!==r||i&&-1===i.indexOf(e)||!r&&!i);)s(e)&&-1===o.indexOf(e)&&o.push(e)},this),this._make(t?n(t,o,this.options):o)},t.closest=function(e){var t=[];return e?(o(this,function(r,n){var i=f(this,n,e,1);i&&t.indexOf(i)<0&&t.push(i)}.bind(this)),this._make(t)):this._make(t)},t.next=function(e){if(!this)return this;var r=[];return u.forEach(this,function(e){for(;e=e.next;)if(s(e))return void r.push(e)}),e?t.filter.call(r,e,this):this._make®},t.nextAll=function(e){if(!this)return this;var r=[];return u.forEach(this,function(e){for(;e=e.next;)s(e)&&-1===r.indexOf(e)&&r.push(e)}),e?t.filter.call(r,e,this):this._make®},t.nextUntil=function(e,r){if(!this)return this;var i,o,a=[];return“string”==typeof e?i=n(e,this.nextAll().get(),this.options):e&&e.cheerio?o=e.get():e&&(i=e),u.forEach(this,function(e){for(;(e=e.next)&&(i&&e!==i||o&&-1===o.indexOf(e)||!i&&!o);)s(e)&&-1===a.indexOf(e)&&a.push(e)}),r?t.filter.call(a,r,this):this._make(a)},t.prev=function(e){if(!this)return this;var r=[];return u.forEach(this,function(e){for(;e=e.prev;)if(s(e))return void r.push(e)}),e?t.filter.call(r,e,this):this._make®},t.prevAll=function(e){if(!this)return this;var r=[];return u.forEach(this,function(e){for(;e=e.prev;)s(e)&&-1===r.indexOf(e)&&r.push(e)}),e?t.filter.call(r,e,this):this._make®},t.prevUntil=function(e,r){if(!this)return this;var i,o,a=[];return“string”==typeof e?i=n(e,this.prevAll().get(),this.options):e&&e.cheerio?o=e.get():e&&(i=e),u.forEach(this,function(e){for(;(e=e.prev)&&(i&&e!==i||o&&-1===o.indexOf(e)||!i&&!o);)s(e)&&-1===a.indexOf(e)&&a.push(e)}),r?t.filter.call(a,r,this):this._make(a)},t.siblings=function(e){var r=this.parent(),n=u.filter(r?r.children():this.siblingsAndMe(),u.bind(function(e){return s(e)&&!this.is(e)},this));return void 0!==e?t.filter.call(n,e,this):this._make(n)},t.children=function(e){var r=u.reduce(this,function(e,t){return e.concat(u.filter(t.children,s))},[]);return void 0===e?this._make®:t.filter.call(r,e,this)},t.contents=function(){return this._make(u.reduce(this,function(e,t){return e.push.apply(e,t.children),e},[]))},t.each=function(e){for(var t=0,r=this.length;t,t,this);)++t;return this},t.map=function(e){return this._make(u.reduce(this,function(t,r,n){var i=e.call(r,n,r);return null==i?t:t.concat(i)},[]))};var c=function(e){return function(t,r){var i;return r=r||this,i=“string”==typeof t?n.compile(t,r.options):“function”==typeof t?function(e,r){return t.call(e,r,e)}:t.cheerio?t.is.bind(t):function(e){return t===e},r._make(e(this,i))}};function f(e,r,n,i){for(var o=[];r&&o.length,n,e).length||o.push®,r=r.parent;return o}t.filter=c(u.filter),t.not=c(u.reject),t.has=function(e){var r=this;return t.filter.call(this,function(){return r._make(this).find(e).length>0})},t.first=function(){return this.length>1?this._make(this):this},t.last=function(){return this.length>1?this._make(this):this},t.eq=function(e){return 0===(e=+e)&&this.length<=1?this:(e<0&&(e=this.length+e),this?this._make(this):this._make([]))},t.get=function(e){return null==e?Array.prototype.slice.call(this):this},t.index=function(e){var t,r;return 0===arguments.length?(t=this.parent().children(),r=this):“string”==typeof e?(t=this._make(e),r=this):(t=this,r=e.cheerio?e:e),t.get().indexOf®},t.slice=function(){return this._make([].slice.apply(this,arguments))},t.end=function(){return this.prevObject||this._make([])},t.add=function(e,t){for(var r=this._make(e,t),n=a(r.get().concat(this.get())),i=0;i=n;return r.length=n.length,r},t.addBack=function(e){return this.add(arguments.length?this.prevObject.filter(e):this.prevObject)}},function(e,t,r){(function(e,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=200,o=“Expected a function”,a=“lodash_hash_undefined”,s=1,u=2,c=1/0,f=9007199254740991,l=“[object Arguments]”,h=“[object Array]”,d=“[object Boolean]”,p=“[object Date]”,b=“[object Error]”,y=“[object Function]”,m=“[object GeneratorFunction]”,g=“[object Map]”,v=“[object Number]”,_=“[object Object]”,w=“[object RegExp]”,S=“[object Set]”,k=“[object String]”,x=“[object Symbol]”,E=“[object ArrayBuffer]”,A=“[object DataView]”,P=/.|[(?:[^]*|([“'])(?:(?!1)|\.)*?1)]/,O=/^w*$/,T=/^./,j=/[^.]+|[(?:(-?d+(?:.d+)?)|()((?:(?!2)|\.)*?)2)]|(?=(?:.|[])(?:.|[]|$))/g,M=/\(\)?/g,I=/^[object .+?Constructor]$/,B=/^(?:0|d*)$/,D={};D[”[object Float32Array]“]=D[”[object Float64Array]“]=D[”[object Int8Array]“]=D[”[object Int16Array]“]=D[”[object Int32Array]“]=D[”[object Uint8Array]“]=D[”[object Uint8ClampedArray]“]=D[”[object Uint16Array]“]=D[”[object Uint32Array]“]=!0,D=D=D=D=D=D=D=D=D=D=D=D=D=D=D[”[object WeakMap]“]=!1;var C=”object“==(void 0===e?”undefined“:n(e))&&e&&e.Object===Object&&e,N=”object“==(”undefined“==typeof self?”undefined“:n(self))&&self&&self.Object===Object&&self,U=C||N||Function(”return this“)(),R=”object“==n(t)&&t&&!t.nodeType&&t,F=R&&”object“==n®&&r&&!r.nodeType&&r,z=F&&F.exports===R&&C.process,L=function(){try{return z&&z.binding(”util“)}catch(e){}}(),q=L&&L.isTypedArray;function H(e,t){for(var r=-1,n=e?e.length:0,i=0,o=[];++r<n;){var a=e;t(a,r,e)&&(o=a)}return o}function $(e,t){for(var r=-1,n=e?e.length:0;++r,r,e))return!0;return!1}function K(e){var t=!1;if(null!=e&&”function“!=typeof e.toString)try{t=!!(e+”“)}catch(e){}return t}function V(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r=[n,e]}),r}function G(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r=e}),r}var W,X,Z,J=Array.prototype,Y=Function.prototype,Q=Object.prototype,ee=U[”core-js_shared“],te=(W=/+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||”“))?”Symbol(src)_1.“+W:”“,re=Y.toString,ne=Q.hasOwnProperty,ie=Q.toString,oe=RegExp(”^“+re.call(ne).replace(/[\^$.*+?(){}|]/g,”\$&“).replace(/hasOwnProperty|(function).*?(?=\()| for .+?(?=\])/g,”$1.*?“)+”$“),ae=U.Symbol,se=U.Uint8Array,ue=Q.propertyIsEnumerable,ce=J.splice,fe=(X=Object.keys,Z=Object,function(e){return X(Z(e))}),le=Ve(U,”DataView“),he=Ve(U,”Map“),de=Ve(U,”Promise“),pe=Ve(U,”Set“),be=Ve(U,”WeakMap“),ye=Ve(Object,”create“),me=et(le),ge=et(he),ve=et(de),_e=et(pe),we=et(be),Se=ae?ae.prototype:void 0,ke=Se?Se.valueOf:void 0,xe=Se?Se.toString:void 0;function Ee(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Ae(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Pe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Oe(e){var t=-1,r=e?e.length:0;for(this.__data__=new Pe;++t)}function Te(e){this.__data__=new Ae(e)}function je(e,t){var r=it(e)||nt(e)?function(e,t){for(var r=-1,n=Array(e);++r=t®;return n}(e.length,String):[],n=r.length,i=!!n;for(var o in e)!t&&!ne.call(e,o)||i&&(”length“==o||We(o,n))||r.push(o);return r}function Me(e,t){for(var r=e.length;r–;)if(rt(e[0],t))return r;return-1}Ee.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ee.prototype.delete=function(e){return this.has(e)&&delete this.__data__},Ee.prototype.get=function(e){var t=this.__data__;if(ye){var r=t;return r===a?void 0:r}return ne.call(t,e)?t:void 0},Ee.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t:ne.call(t,e)},Ee.prototype.set=function(e,t){return this.__data__=ye&&void 0===t?a:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,r=Me(t,e);return!(r<0||(r==t.length-1?t.pop():ce.call(t,r,1),0))},Ae.prototype.get=function(e){var t=this.__data__,r=Me(t,e);return r<0?void 0:t[1]},Ae.prototype.has=function(e){return Me(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var r=this.__data__,n=Me(r,e);return n<0?r.push():r[1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Ee,map:new(he||Ae),string:new Ee}},Pe.prototype.delete=function(e){return Ke(this,e).delete(e)},Pe.prototype.get=function(e){return Ke(this,e).get(e)},Pe.prototype.has=function(e){return Ke(this,e).has(e)},Pe.prototype.set=function(e,t){return Ke(this,e).set(e,t),this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,a),this},Oe.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new Ae},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ae){var n=r.__data__;if(!he||n.length<i-1)return n.push(),this;r=this.__data__=new Pe(n)}return r.set(e,t),this};var Ie,Be,De=(Ie=function(e,t){return e&&Ne(e,t,ht)},function(e,t){if(null==e)return e;if(!ot(e))return Ie(e,t);for(var r=e.length,n=Be?r:-1,i=Object(e);(Be?n–:++n,n,i););return e});function Ce(e,t){var r=[];return De(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}var Ne=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s–;){var u=a;if(!1===r(o,u,o))break}return t}}();function Ue(e,t){for(var r=0,n=(t=Xe(t,e)?:He(t)).length;null!=e&&r)];return r&&r==n?e:void 0}function Re(e,t){return null!=e&&t in Object(e)}function Fe(e,t,r,n,i){return e===t||(null==e||null==t||!ut(e)&&!ct(t)?e!=e&&t!=t:function(e,t,r,n,i,o){var a=it(e),c=it(t),f=h,y=h;a||(f=(f=Ge(e))==l?_:f);c||(y=(y=Ge(t))==l?_:y);var m=f==_&&!K(e),P=y==_&&!K(t),O=f==y;if(O&&!m)return o||(o=new Te),a||lt(e)?$e(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch®{case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!n(new se(e),new se(t)));case d:case p:case v:return rt(+e,+t);case b:return e.name==t.name&&e.message==t.message;case w:case k:return e==t+”“;case g:var c=V;case S:var f=o&u;if(c||(c=G),e.size!=t.size&&!f)return!1;var l=a.get(e);if(l)return l==t;o|=s,a.set(e,t);var h=$e(c(e),c(t),n,i,o,a);return a.delete(e),h;case x:if(ke)return ke.call(e)==ke.call(t)}return!1}(e,t,f,r,n,i,o);if(!(i&u)){var T=m&&ne.call(e,”__wrapped__“),j=P&&ne.call(t,”__wrapped__“);if(T||j){var M=T?e.value():e,I=j?t.value():t;return o||(o=new Te),r(M,I,n,i,o)}}if(!O)return!1;return o||(o=new Te),function(e,t,r,n,i,o){var a=i&u,s=ht(e),c=s.length,f=ht(t).length;if(c!=f&&!a)return!1;for(var l=c;l–;){var h=s;if(!(a?h in t:ne.call(t,h)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var p=!0;o.set(e,t),o.set(t,e);for(var b=a;++l<c;){h=s;var y=e,m=t;if(n)var g=a?n(m,y,h,t,e,o):n(y,m,h,e,t,o);if(!(void 0===g?y===m||r(y,m,n,i,o):g)){p=!1;break}b||(b=”constructor“==h)}if(p&&!b){var v=e.constructor,_=t.constructor;v!=_&&”constructor“in e&&”constructor“in t&&!(”function“==typeof v&&v instanceof v&&”function“==typeof _&&_ instanceof _)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,r,n,i,o)}(e,t,Fe,r,n,i))}function ze(e){return!(!ut(e)||(t=e,te&&te in t))&&(at(e)||K(e)?oe:I).test(et(e));var t}function Le(e){return”function“==typeof e?e:null==e?dt:”object“==n(e)?it(e)?function(e,t){if(Xe(e)&&Ze(t))return Je(Qe(e),t);return function®{var n=function(e,t,r){var n=null==e?void 0:Ue(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){t=Xe(t,e)?:He(t);var n,i=-1,o=t.length;for(;++i<o;){var a=Qe(t);if(!(n=null!=e&&r(e,a)))break;e=e}if(n)return n;return!!(o=e?e.length:0)&&st(o)&&We(a,o)&&(it(e)||nt(e))}(e,t,Re)}(r,e):Fe(t,n,void 0,s|u)}}(e,e):function(e){var t=function(e){var t=ht(e),r=t.length;for(;r–;){var n=t,i=e;t=[n,i,Ze(i)]}return t}(e);if(1==t.length&&t[2])return Je(t[0],t[1]);return function®{return r===e||function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i–;){var c=r;if(a&&c?c!==e[c]:!(cin e))return!1}for(;++i<o;){var f=(c=r)[0],l=e,h=c;if(a&&c){if(void 0===l&&!(f in e))return!1}else{var d=new Te;if(n)var p=n(l,h,f,e,t,d);if(!(void 0===p?Fe(h,l,n,s|u,d):p))return!1}}return!0}(r,e,t)}}(e):Xe(t=e)?(r=Qe(t),function(e){return null==e?void 0:e}):function(e){return function(t){return Ue(t,e)}}(t);var t,r}function qe(e){if(r=(t=e)&&t.constructor,n=”function“==typeof r&&r.prototype||Q,t!==n)return fe(e);var t,r,n,i=[];for(var o in Object(e))ne.call(e,o)&&”constructor“!=o&&i.push(o);return i}function He(e){return it(e)?e:Ye(e)}function $e(e,t,r,n,i,o){var a=i&u,c=e.length,f=t.length;if(c!=f&&!(a&&f>c))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var h=-1,d=!0,p=i&s?new Oe:void 0;for(o.set(e,t),o.set(t,e);++h<c;){var b=e,y=t;if(n)var m=a?n(y,b,h,t,e,o):n(b,y,h,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!$(t,function(e,t){if(!p.has(t)&&(b===e||r(b,e,n,i,o)))return p.add(t)})){d=!1;break}}else if(b!==y&&!r(b,y,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ke(e,t){var r,i,o=e.__data__;return(”string“==(i=n(r=t))||”number“==i||”symbol“==i||”boolean“==i?”__proto__“!==r:null===r)?o[”string“==typeof t?”string“:”hash“]:o.map}function Ve(e,t){var r=function(e,t){return null==e?void 0:e}(e,t);return ze®?r:void 0}var Ge=function(e){return ie.call(e)};function We(e,t){return!!(t=null==t?f:t)&&(”number“==typeof e||B.test(e))&&e>-1&&e%1==0&&e<t}function Xe(e,t){if(it(e))return!1;var r=n(e);return!(”number“!=r&&”symbol“!=r&&”boolean“!=r&&null!=e&&!ft(e))||(O.test(e)||!P.test(e)||null!=t&&e in Object(t))}function Ze(e){return e==e&&!ut(e)}function Je(e,t){return function®{return null!=r&&(r===t&&(void 0!==t||e in Object®))}}(le&&Ge(new le(new ArrayBuffer(1)))!=A||he&&Ge(new he)!=g||de&&”[object Promise]“!=Ge(de.resolve())||pe&&Ge(new pe)!=S||be&&”[object WeakMap]“!=Ge(new be))&&(Ge=function(e){var t=ie.call(e),r=t==_?e.constructor:void 0,n=r?et®:void 0;if(n)switch(n){case me:return A;case ge:return g;case ve:return”[object Promise]“;case _e:return S;case we:return”[object WeakMap]“}return t});var Ye=tt(function(e){var t;e=null==(t=e)?”“:function(e){if(”string“==typeof e)return e;if(ft(e))return xe?xe.call(e):”“;var t=e+”“;return”0“==t&&1/e==-c?”-0“:t}(t);var r=[];return T.test(e)&&r.push(”“),e.replace(j,function(e,t,n,i){r.push(n?i.replace(M,”$1“):t||e)}),r});function Qe(e){if(”string“==typeof e||ft(e))return e;var t=e+”“;return”0“==t&&1/e==-c?”-0“:t}function et(e){if(null!=e){try{return re.call(e)}catch(e){}try{return e+”“}catch(e){}}return”“}function tt(e,t){if(”function“!=typeof e||t&&”function“!=typeof t)throw new TypeError(o);var r=function r(){var n=arguments,i=t?t.apply(this,n):n,o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(tt.Cache||Pe),r}function rt(e,t){return e===t||e!=e&&t!=t}function nt(e){return function(e){return ct(e)&&ot(e)}(e)&&ne.call(e,”callee“)&&(!ue.call(e,”callee“)||ie.call(e)==l)}tt.Cache=Pe;var it=Array.isArray;function ot(e){return null!=e&&st(e.length)&&!at(e)}function at(e){var t=ut(e)?ie.call(e):”“;return t==y||t==m}function st(e){return”number“==typeof e&&e>-1&&e%1==0&&e<=f}function ut(e){var t=n(e);return!!e&&(”object“==t||”function“==t)}function ct(e){return!!e&&”object“==n(e)}function ft(e){return”symbol“==n(e)||ct(e)&&ie.call(e)==x}var lt=q?function(e){return function(t){return e(t)}}(q):function(e){return ct(e)&&st(e.length)&&!!D};function ht(e){return ot(e)?je(e):qe(e)}function dt(e){return e}r.exports=function(e,t){return(it(e)?H:Ce)(e,function(e){if(”function“!=typeof e)throw new TypeError(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t);case 2:return!e.call(this,t,t);case 3:return!e.call(this,t,t,t)}return!e.apply(this,t)}}(Le(t)))}}).call(this,r(7),r(17)(e))},function(e,t,r){(function(e,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=200,o=”Expected a function“,a=”lodash_hash_undefined“,s=1,u=2,c=1/0,f=9007199254740991,l=”[object Arguments]“,h=”[object Array]“,d=”[object Boolean]“,p=”[object Date]“,b=”[object Error]“,y=”[object Function]“,m=”[object GeneratorFunction]“,g=”[object Map]“,v=”[object Number]“,_=”[object Object]“,w=”[object RegExp]“,S=”[object Set]“,k=”[object String]“,x=”[object Symbol]“,E=”[object ArrayBuffer]“,A=”[object DataView]“,P=/.|[(?:[^]*|([”'])(?:(?!1)|\.)*?1)]/,O=/^w*$/,T=/^./,j=/[^.]+|[(?:(-?d+(?:.d+)?)|()((?:(?!2)|\.)*?)2)]|(?=(?:.|[])(?:.|[]|$))/g,M=/\(\)?/g,I=/^[object .+?Constructor]$/,B=/^(?:0|d*)$/,D={};D[“[object Float32Array]”]=D[“[object Float64Array]”]=D[“[object Int8Array]”]=D[“[object Int16Array]”]=D[“[object Int32Array]”]=D[“[object Uint8Array]”]=D[“[object Uint8ClampedArray]”]=D[“[object Uint16Array]”]=D[“[object Uint32Array]”]=!0,D=D=D=D=D=D=D=D=D=D=D=D=D=D=D[“[object WeakMap]”]=!1;var C=“object”==(void 0===e?“undefined”:n(e))&&e&&e.Object===Object&&e,N=“object”==(“undefined”==typeof self?“undefined”:n(self))&&self&&self.Object===Object&&self,U=C||N||Function(“return this”)(),R=“object”==n(t)&&t&&!t.nodeType&&t,F=R&&“object”==n®&&r&&!r.nodeType&&r,z=F&&F.exports===R&&C.process,L=function(){try{return z&&z.binding(“util”)}catch(e){}}(),q=L&&L.isTypedArray;function H(e,t){for(var r=-1,n=e?e.length:0,i=0,o=[];++r<n;){var a=e;t(a,r,e)&&(o=a)}return o}function $(e,t){for(var r=-1,n=e?e.length:0;++r,r,e))return!0;return!1}function K(e){var t=!1;if(null!=e&&“function”!=typeof e.toString)try{t=!!(e+“”)}catch(e){}return t}function V(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r=[n,e]}),r}function G(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r=e}),r}var W,X,Z,J=Array.prototype,Y=Function.prototype,Q=Object.prototype,ee=U[“core-js_shared”],te=(W=/+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||“”))?“Symbol(src)_1.”+W:“”,re=Y.toString,ne=Q.hasOwnProperty,ie=Q.toString,oe=RegExp(“^”+re.call(ne).replace(/[\^$.*+?(){}|]/g,“\$&”).replace(/hasOwnProperty|(function).*?(?=\()| for .+?(?=\])/g,“$1.*?”)+“$”),ae=U.Symbol,se=U.Uint8Array,ue=Q.propertyIsEnumerable,ce=J.splice,fe=(X=Object.keys,Z=Object,function(e){return X(Z(e))}),le=Ve(U,“DataView”),he=Ve(U,“Map”),de=Ve(U,“Promise”),pe=Ve(U,“Set”),be=Ve(U,“WeakMap”),ye=Ve(Object,“create”),me=et(le),ge=et(he),ve=et(de),_e=et(pe),we=et(be),Se=ae?ae.prototype:void 0,ke=Se?Se.valueOf:void 0,xe=Se?Se.toString:void 0;function Ee(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Ae(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Pe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Oe(e){var t=-1,r=e?e.length:0;for(this.__data__=new Pe;++t)}function Te(e){this.__data__=new Ae(e)}function je(e,t){var r=it(e)||nt(e)?function(e,t){for(var r=-1,n=Array(e);++r=t®;return n}(e.length,String):[],n=r.length,i=!!n;for(var o in e)!t&&!ne.call(e,o)||i&&(“length”==o||We(o,n))||r.push(o);return r}function Me(e,t){for(var r=e.length;r–;)if(rt(e[0],t))return r;return-1}Ee.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ee.prototype.delete=function(e){return this.has(e)&&delete this.__data__},Ee.prototype.get=function(e){var t=this.__data__;if(ye){var r=t;return r===a?void 0:r}return ne.call(t,e)?t:void 0},Ee.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t:ne.call(t,e)},Ee.prototype.set=function(e,t){return this.__data__=ye&&void 0===t?a:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,r=Me(t,e);return!(r<0||(r==t.length-1?t.pop():ce.call(t,r,1),0))},Ae.prototype.get=function(e){var t=this.__data__,r=Me(t,e);return r<0?void 0:t[1]},Ae.prototype.has=function(e){return Me(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var r=this.__data__,n=Me(r,e);return n<0?r.push():r[1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Ee,map:new(he||Ae),string:new Ee}},Pe.prototype.delete=function(e){return Ke(this,e).delete(e)},Pe.prototype.get=function(e){return Ke(this,e).get(e)},Pe.prototype.has=function(e){return Ke(this,e).has(e)},Pe.prototype.set=function(e,t){return Ke(this,e).set(e,t),this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,a),this},Oe.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new Ae},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ae){var n=r.__data__;if(!he||n.length<i-1)return n.push(),this;r=this.__data__=new Pe(n)}return r.set(e,t),this};var Ie,Be,De=(Ie=function(e,t){return e&&Ne(e,t,ht)},function(e,t){if(null==e)return e;if(!ot(e))return Ie(e,t);for(var r=e.length,n=Be?r:-1,i=Object(e);(Be?n–:++n,n,i););return e});function Ce(e,t){var r=[];return De(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}var Ne=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s–;){var u=a;if(!1===r(o,u,o))break}return t}}();function Ue(e,t){for(var r=0,n=(t=Xe(t,e)?:He(t)).length;null!=e&&r)];return r&&r==n?e:void 0}function Re(e,t){return null!=e&&t in Object(e)}function Fe(e,t,r,n,i){return e===t||(null==e||null==t||!ut(e)&&!ct(t)?e!=e&&t!=t:function(e,t,r,n,i,o){var a=it(e),c=it(t),f=h,y=h;a||(f=(f=Ge(e))==l?_:f);c||(y=(y=Ge(t))==l?_:y);var m=f==_&&!K(e),P=y==_&&!K(t),O=f==y;if(O&&!m)return o||(o=new Te),a||lt(e)?$e(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch®{case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!n(new se(e),new se(t)));case d:case p:case v:return rt(+e,+t);case b:return e.name==t.name&&e.message==t.message;case w:case k:return e==t+“”;case g:var c=V;case S:var f=o&u;if(c||(c=G),e.size!=t.size&&!f)return!1;var l=a.get(e);if(l)return l==t;o|=s,a.set(e,t);var h=$e(c(e),c(t),n,i,o,a);return a.delete(e),h;case x:if(ke)return ke.call(e)==ke.call(t)}return!1}(e,t,f,r,n,i,o);if(!(i&u)){var T=m&&ne.call(e,“__wrapped__”),j=P&&ne.call(t,“__wrapped__”);if(T||j){var M=T?e.value():e,I=j?t.value():t;return o||(o=new Te),r(M,I,n,i,o)}}if(!O)return!1;return o||(o=new Te),function(e,t,r,n,i,o){var a=i&u,s=ht(e),c=s.length,f=ht(t).length;if(c!=f&&!a)return!1;for(var l=c;l–;){var h=s;if(!(a?h in t:ne.call(t,h)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var p=!0;o.set(e,t),o.set(t,e);for(var b=a;++l<c;){h=s;var y=e,m=t;if(n)var g=a?n(m,y,h,t,e,o):n(y,m,h,e,t,o);if(!(void 0===g?y===m||r(y,m,n,i,o):g)){p=!1;break}b||(b=“constructor”==h)}if(p&&!b){var v=e.constructor,_=t.constructor;v!=_&&“constructor”in e&&“constructor”in t&&!(“function”==typeof v&&v instanceof v&&“function”==typeof _&&_ instanceof _)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,r,n,i,o)}(e,t,Fe,r,n,i))}function ze(e){return!(!ut(e)||(t=e,te&&te in t))&&(at(e)||K(e)?oe:I).test(et(e));var t}function Le(e){return“function”==typeof e?e:null==e?dt:“object”==n(e)?it(e)?function(e,t){if(Xe(e)&&Ze(t))return Je(Qe(e),t);return function®{var n=function(e,t,r){var n=null==e?void 0:Ue(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){t=Xe(t,e)?:He(t);var n,i=-1,o=t.length;for(;++i<o;){var a=Qe(t);if(!(n=null!=e&&r(e,a)))break;e=e}if(n)return n;return!!(o=e?e.length:0)&&st(o)&&We(a,o)&&(it(e)||nt(e))}(e,t,Re)}(r,e):Fe(t,n,void 0,s|u)}}(e,e):function(e){var t=function(e){var t=ht(e),r=t.length;for(;r–;){var n=t,i=e;t=[n,i,Ze(i)]}return t}(e);if(1==t.length&&t[2])return Je(t[0],t[1]);return function®{return r===e||function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i–;){var c=r;if(a&&c?c!==e[c]:!(cin e))return!1}for(;++i<o;){var f=(c=r)[0],l=e,h=c;if(a&&c){if(void 0===l&&!(f in e))return!1}else{var d=new Te;if(n)var p=n(l,h,f,e,t,d);if(!(void 0===p?Fe(h,l,n,s|u,d):p))return!1}}return!0}(r,e,t)}}(e):Xe(t=e)?(r=Qe(t),function(e){return null==e?void 0:e}):function(e){return function(t){return Ue(t,e)}}(t);var t,r}function qe(e){if(r=(t=e)&&t.constructor,n=“function”==typeof r&&r.prototype||Q,t!==n)return fe(e);var t,r,n,i=[];for(var o in Object(e))ne.call(e,o)&&“constructor”!=o&&i.push(o);return i}function He(e){return it(e)?e:Ye(e)}function $e(e,t,r,n,i,o){var a=i&u,c=e.length,f=t.length;if(c!=f&&!(a&&f>c))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var h=-1,d=!0,p=i&s?new Oe:void 0;for(o.set(e,t),o.set(t,e);++h<c;){var b=e,y=t;if(n)var m=a?n(y,b,h,t,e,o):n(b,y,h,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!$(t,function(e,t){if(!p.has(t)&&(b===e||r(b,e,n,i,o)))return p.add(t)})){d=!1;break}}else if(b!==y&&!r(b,y,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ke(e,t){var r,i,o=e.__data__;return(“string”==(i=n(r=t))||“number”==i||“symbol”==i||“boolean”==i?“__proto__”!==r:null===r)?o[“string”==typeof t?“string”:“hash”]:o.map}function Ve(e,t){var r=function(e,t){return null==e?void 0:e}(e,t);return ze®?r:void 0}var Ge=function(e){return ie.call(e)};function We(e,t){return!!(t=null==t?f:t)&&(“number”==typeof e||B.test(e))&&e>-1&&e%1==0&&e<t}function Xe(e,t){if(it(e))return!1;var r=n(e);return!(“number”!=r&&“symbol”!=r&&“boolean”!=r&&null!=e&&!ft(e))||(O.test(e)||!P.test(e)||null!=t&&e in Object(t))}function Ze(e){return e==e&&!ut(e)}function Je(e,t){return function®{return null!=r&&(r===t&&(void 0!==t||e in Object®))}}(le&&Ge(new le(new ArrayBuffer(1)))!=A||he&&Ge(new he)!=g||de&&“[object Promise]”!=Ge(de.resolve())||pe&&Ge(new pe)!=S||be&&“[object WeakMap]”!=Ge(new be))&&(Ge=function(e){var t=ie.call(e),r=t==_?e.constructor:void 0,n=r?et®:void 0;if(n)switch(n){case me:return A;case ge:return g;case ve:return“[object Promise]”;case _e:return S;case we:return“[object WeakMap]”}return t});var Ye=tt(function(e){var t;e=null==(t=e)?“”:function(e){if(“string”==typeof e)return e;if(ft(e))return xe?xe.call(e):“”;var t=e+“”;return“0”==t&&1/e==-c?“-0”:t}(t);var r=[];return T.test(e)&&r.push(“”),e.replace(j,function(e,t,n,i){r.push(n?i.replace(M,“$1”):t||e)}),r});function Qe(e){if(“string”==typeof e||ft(e))return e;var t=e+“”;return“0”==t&&1/e==-c?“-0”:t}function et(e){if(null!=e){try{return re.call(e)}catch(e){}try{return e+“”}catch(e){}}return“”}function tt(e,t){if(“function”!=typeof e||t&&“function”!=typeof t)throw new TypeError(o);var r=function r(){var n=arguments,i=t?t.apply(this,n):n,o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(tt.Cache||Pe),r}function rt(e,t){return e===t||e!=e&&t!=t}function nt(e){return function(e){return ct(e)&&ot(e)}(e)&&ne.call(e,“callee”)&&(!ue.call(e,“callee”)||ie.call(e)==l)}tt.Cache=Pe;var it=Array.isArray;function ot(e){return null!=e&&st(e.length)&&!at(e)}function at(e){var t=ut(e)?ie.call(e):“”;return t==y||t==m}function st(e){return“number”==typeof e&&e>-1&&e%1==0&&e<=f}function ut(e){var t=n(e);return!!e&&(“object”==t||“function”==t)}function ct(e){return!!e&&“object”==n(e)}function ft(e){return“symbol”==n(e)||ct(e)&&ie.call(e)==x}var lt=q?function(e){return function(t){return e(t)}}(q):function(e){return ct(e)&&st(e.length)&&!!D};function ht(e){return ot(e)?je(e):qe(e)}function dt(e){return e}r.exports=function(e,t){return(it(e)?H:Ce)(e,Le(t))}}).call(this,r(7),r(17)(e))},function(e,t,r){(function(e,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=200,o=“Expected a function”,a=“lodash_hash_undefined”,s=1,u=2,c=1/0,f=9007199254740991,l=“[object Arguments]”,h=“[object Array]”,d=“[object Boolean]”,p=“[object Date]”,b=“[object Error]”,y=“[object Function]”,m=“[object GeneratorFunction]”,g=“[object Map]”,v=“[object Number]”,_=“[object Object]”,w=“[object RegExp]”,S=“[object Set]”,k=“[object String]”,x=“[object Symbol]”,E=“[object ArrayBuffer]”,A=“[object DataView]”,P=/.|[(?:[^]*|([“'])(?:(?!1)|\.)*?1)]/,O=/^w*$/,T=/^./,j=/[^.]+|[(?:(-?d+(?:.d+)?)|()((?:(?!2)|\.)*?)2)]|(?=(?:.|[])(?:.|[]|$))/g,M=/\(\)?/g,I=/^[object .+?Constructor]$/,B=/^(?:0|d*)$/,D={};D[”[object Float32Array]“]=D[”[object Float64Array]“]=D[”[object Int8Array]“]=D[”[object Int16Array]“]=D[”[object Int32Array]“]=D[”[object Uint8Array]“]=D[”[object Uint8ClampedArray]“]=D[”[object Uint16Array]“]=D[”[object Uint32Array]“]=!0,D=D=D=D=D=D=D=D=D=D=D=D=D=D=D[”[object WeakMap]“]=!1;var C=”object“==(void 0===e?”undefined“:n(e))&&e&&e.Object===Object&&e,N=”object“==(”undefined“==typeof self?”undefined“:n(self))&&self&&self.Object===Object&&self,U=C||N||Function(”return this“)(),R=”object“==n(t)&&t&&!t.nodeType&&t,F=R&&”object“==n®&&r&&!r.nodeType&&r,z=F&&F.exports===R&&C.process,L=function(){try{return z&&z.binding(”util“)}catch(e){}}(),q=L&&L.isTypedArray;function H(e,t,r,n){var i=-1,o=e?e.length:0;for(n&&o&&(r=e);++i,i,e);return r}function $(e,t){for(var r=-1,n=e?e.length:0;++r,r,e))return!0;return!1}function K(e,t,r,n,i){return i(e,function(e,i,o){r=n?(n=!1,e):t(r,e,i,o)}),r}function V(e){var t=!1;if(null!=e&&”function“!=typeof e.toString)try{t=!!(e+”“)}catch(e){}return t}function G(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r=[n,e]}),r}function W(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r=e}),r}var X,Z,J,Y=Array.prototype,Q=Function.prototype,ee=Object.prototype,te=U[”core-js_shared“],re=(X=/+$/.exec(te&&te.keys&&te.keys.IE_PROTO||”“))?”Symbol(src)_1.“+X:”“,ne=Q.toString,ie=ee.hasOwnProperty,oe=ee.toString,ae=RegExp(”^“+ne.call(ie).replace(/[\^$.*+?(){}|]/g,”\$&“).replace(/hasOwnProperty|(function).*?(?=\()| for .+?(?=\])/g,”$1.*?“)+”$“),se=U.Symbol,ue=U.Uint8Array,ce=ee.propertyIsEnumerable,fe=Y.splice,le=(Z=Object.keys,J=Object,function(e){return Z(J(e))}),he=Ve(U,”DataView“),de=Ve(U,”Map“),pe=Ve(U,”Promise“),be=Ve(U,”Set“),ye=Ve(U,”WeakMap“),me=Ve(Object,”create“),ge=et(he),ve=et(de),_e=et(pe),we=et(be),Se=et(ye),ke=se?se.prototype:void 0,xe=ke?ke.valueOf:void 0,Ee=ke?ke.toString:void 0;function Ae(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Pe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Oe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Te(e){var t=-1,r=e?e.length:0;for(this.__data__=new Oe;++t)}function je(e){this.__data__=new Pe(e)}function Me(e,t){var r=it(e)||nt(e)?function(e,t){for(var r=-1,n=Array(e);++r=t®;return n}(e.length,String):[],n=r.length,i=!!n;for(var o in e)!t&&!ie.call(e,o)||i&&(”length“==o||We(o,n))||r.push(o);return r}function Ie(e,t){for(var r=e.length;r–;)if(rt(e[0],t))return r;return-1}Ae.prototype.clear=function(){this.__data__=me?me(null):{}},Ae.prototype.delete=function(e){return this.has(e)&&delete this.__data__},Ae.prototype.get=function(e){var t=this.__data__;if(me){var r=t;return r===a?void 0:r}return ie.call(t,e)?t:void 0},Ae.prototype.has=function(e){var t=this.__data__;return me?void 0!==t:ie.call(t,e)},Ae.prototype.set=function(e,t){return this.__data__=me&&void 0===t?a:t,this},Pe.prototype.clear=function(){this.__data__=[]},Pe.prototype.delete=function(e){var t=this.__data__,r=Ie(t,e);return!(r<0||(r==t.length-1?t.pop():fe.call(t,r,1),0))},Pe.prototype.get=function(e){var t=this.__data__,r=Ie(t,e);return r<0?void 0:t[1]},Pe.prototype.has=function(e){return Ie(this.__data__,e)>-1},Pe.prototype.set=function(e,t){var r=this.__data__,n=Ie(r,e);return n<0?r.push():r[1]=t,this},Oe.prototype.clear=function(){this.__data__={hash:new Ae,map:new(de||Pe),string:new Ae}},Oe.prototype.delete=function(e){return Ke(this,e).delete(e)},Oe.prototype.get=function(e){return Ke(this,e).get(e)},Oe.prototype.has=function(e){return Ke(this,e).has(e)},Oe.prototype.set=function(e,t){return Ke(this,e).set(e,t),this},Te.prototype.add=Te.prototype.push=function(e){return this.__data__.set(e,a),this},Te.prototype.has=function(e){return this.__data__.has(e)},je.prototype.clear=function(){this.__data__=new Pe},je.prototype.delete=function(e){return this.__data__.delete(e)},je.prototype.get=function(e){return this.__data__.get(e)},je.prototype.has=function(e){return this.__data__.has(e)},je.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Pe){var n=r.__data__;if(!de||n.length<i-1)return n.push(),this;r=this.__data__=new Oe(n)}return r.set(e,t),this};var Be,De,Ce=(Be=function(e,t){return e&&Ne(e,t,ht)},function(e,t){if(null==e)return e;if(!ot(e))return Be(e,t);for(var r=e.length,n=De?r:-1,i=Object(e);(De?n–:++n,n,i););return e}),Ne=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s–;){var u=a;if(!1===r(o,u,o))break}return t}}();function Ue(e,t){for(var r=0,n=(t=Xe(t,e)?:He(t)).length;null!=e&&r)];return r&&r==n?e:void 0}function Re(e,t){return null!=e&&t in Object(e)}function Fe(e,t,r,n,i){return e===t||(null==e||null==t||!ut(e)&&!ct(t)?e!=e&&t!=t:function(e,t,r,n,i,o){var a=it(e),c=it(t),f=h,y=h;a||(f=(f=Ge(e))==l?_:f);c||(y=(y=Ge(t))==l?_:y);var m=f==_&&!V(e),P=y==_&&!V(t),O=f==y;if(O&&!m)return o||(o=new je),a||lt(e)?$e(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch®{case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!n(new ue(e),new ue(t)));case d:case p:case v:return rt(+e,+t);case b:return e.name==t.name&&e.message==t.message;case w:case k:return e==t+”“;case g:var c=G;case S:var f=o&u;if(c||(c=W),e.size!=t.size&&!f)return!1;var l=a.get(e);if(l)return l==t;o|=s,a.set(e,t);var h=$e(c(e),c(t),n,i,o,a);return a.delete(e),h;case x:if(xe)return xe.call(e)==xe.call(t)}return!1}(e,t,f,r,n,i,o);if(!(i&u)){var T=m&&ie.call(e,”__wrapped__“),j=P&&ie.call(t,”__wrapped__“);if(T||j){var M=T?e.value():e,I=j?t.value():t;return o||(o=new je),r(M,I,n,i,o)}}if(!O)return!1;return o||(o=new je),function(e,t,r,n,i,o){var a=i&u,s=ht(e),c=s.length,f=ht(t).length;if(c!=f&&!a)return!1;for(var l=c;l–;){var h=s;if(!(a?h in t:ie.call(t,h)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var p=!0;o.set(e,t),o.set(t,e);for(var b=a;++l<c;){h=s;var y=e,m=t;if(n)var g=a?n(m,y,h,t,e,o):n(y,m,h,e,t,o);if(!(void 0===g?y===m||r(y,m,n,i,o):g)){p=!1;break}b||(b=”constructor“==h)}if(p&&!b){var v=e.constructor,_=t.constructor;v!=_&&”constructor“in e&&”constructor“in t&&!(”function“==typeof v&&v instanceof v&&”function“==typeof _&&_ instanceof _)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,r,n,i,o)}(e,t,Fe,r,n,i))}function ze(e){return!(!ut(e)||(t=e,re&&re in t))&&(at(e)||V(e)?ae:I).test(et(e));var t}function Le(e){return”function“==typeof e?e:null==e?dt:”object“==n(e)?it(e)?function(e,t){if(Xe(e)&&Ze(t))return Je(Qe(e),t);return function®{var n=function(e,t,r){var n=null==e?void 0:Ue(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){t=Xe(t,e)?:He(t);var n,i=-1,o=t.length;for(;++i<o;){var a=Qe(t);if(!(n=null!=e&&r(e,a)))break;e=e}if(n)return n;return!!(o=e?e.length:0)&&st(o)&&We(a,o)&&(it(e)||nt(e))}(e,t,Re)}(r,e):Fe(t,n,void 0,s|u)}}(e,e):function(e){var t=function(e){var t=ht(e),r=t.length;for(;r–;){var n=t,i=e;t=[n,i,Ze(i)]}return t}(e);if(1==t.length&&t[2])return Je(t[0],t[1]);return function®{return r===e||function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i–;){var c=r;if(a&&c?c!==e[c]:!(cin e))return!1}for(;++i<o;){var f=(c=r)[0],l=e,h=c;if(a&&c){if(void 0===l&&!(f in e))return!1}else{var d=new je;if(n)var p=n(l,h,f,e,t,d);if(!(void 0===p?Fe(h,l,n,s|u,d):p))return!1}}return!0}(r,e,t)}}(e):Xe(t=e)?(r=Qe(t),function(e){return null==e?void 0:e}):function(e){return function(t){return Ue(t,e)}}(t);var t,r}function qe(e){if(r=(t=e)&&t.constructor,n=”function“==typeof r&&r.prototype||ee,t!==n)return le(e);var t,r,n,i=[];for(var o in Object(e))ie.call(e,o)&&”constructor“!=o&&i.push(o);return i}function He(e){return it(e)?e:Ye(e)}function $e(e,t,r,n,i,o){var a=i&u,c=e.length,f=t.length;if(c!=f&&!(a&&f>c))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var h=-1,d=!0,p=i&s?new Te:void 0;for(o.set(e,t),o.set(t,e);++h<c;){var b=e,y=t;if(n)var m=a?n(y,b,h,t,e,o):n(b,y,h,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!$(t,function(e,t){if(!p.has(t)&&(b===e||r(b,e,n,i,o)))return p.add(t)})){d=!1;break}}else if(b!==y&&!r(b,y,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ke(e,t){var r,i,o=e.__data__;return(”string“==(i=n(r=t))||”number“==i||”symbol“==i||”boolean“==i?”__proto__“!==r:null===r)?o[”string“==typeof t?”string“:”hash“]:o.map}function Ve(e,t){var r=function(e,t){return null==e?void 0:e}(e,t);return ze®?r:void 0}var Ge=function(e){return oe.call(e)};function We(e,t){return!!(t=null==t?f:t)&&(”number“==typeof e||B.test(e))&&e>-1&&e%1==0&&e<t}function Xe(e,t){if(it(e))return!1;var r=n(e);return!(”number“!=r&&”symbol“!=r&&”boolean“!=r&&null!=e&&!ft(e))||(O.test(e)||!P.test(e)||null!=t&&e in Object(t))}function Ze(e){return e==e&&!ut(e)}function Je(e,t){return function®{return null!=r&&(r===t&&(void 0!==t||e in Object®))}}(he&&Ge(new he(new ArrayBuffer(1)))!=A||de&&Ge(new de)!=g||pe&&”[object Promise]“!=Ge(pe.resolve())||be&&Ge(new be)!=S||ye&&”[object WeakMap]“!=Ge(new ye))&&(Ge=function(e){var t=oe.call(e),r=t==_?e.constructor:void 0,n=r?et®:void 0;if(n)switch(n){case ge:return A;case ve:return g;case _e:return”[object Promise]“;case we:return S;case Se:return”[object WeakMap]“}return t});var Ye=tt(function(e){var t;e=null==(t=e)?”“:function(e){if(”string“==typeof e)return e;if(ft(e))return Ee?Ee.call(e):”“;var t=e+”“;return”0“==t&&1/e==-c?”-0“:t}(t);var r=[];return T.test(e)&&r.push(”“),e.replace(j,function(e,t,n,i){r.push(n?i.replace(M,”$1“):t||e)}),r});function Qe(e){if(”string“==typeof e||ft(e))return e;var t=e+”“;return”0“==t&&1/e==-c?”-0“:t}function et(e){if(null!=e){try{return ne.call(e)}catch(e){}try{return e+”“}catch(e){}}return”“}function tt(e,t){if(”function“!=typeof e||t&&”function“!=typeof t)throw new TypeError(o);var r=function r(){var n=arguments,i=t?t.apply(this,n):n,o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(tt.Cache||Oe),r}function rt(e,t){return e===t||e!=e&&t!=t}function nt(e){return function(e){return ct(e)&&ot(e)}(e)&&ie.call(e,”callee“)&&(!ce.call(e,”callee“)||oe.call(e)==l)}tt.Cache=Oe;var it=Array.isArray;function ot(e){return null!=e&&st(e.length)&&!at(e)}function at(e){var t=ut(e)?oe.call(e):”“;return t==y||t==m}function st(e){return”number“==typeof e&&e>-1&&e%1==0&&e<=f}function ut(e){var t=n(e);return!!e&&(”object“==t||”function“==t)}function ct(e){return!!e&&”object“==n(e)}function ft(e){return”symbol“==n(e)||ct(e)&&oe.call(e)==x}var lt=q?function(e){return function(t){return e(t)}}(q):function(e){return ct(e)&&st(e.length)&&!!D};function ht(e){return ot(e)?Me(e):qe(e)}function dt(e){return e}r.exports=function(e,t,r){var n=it(e)?H:K,i=arguments.length<3;return n(e,Le(t),r,i,Ce)}}).call(this,r(7),r(17)(e))},function(e,t,r){var n=r(75),i=r(112),o=n.update,a=n.evaluate,s=r(55),u=s.domEach,c=s.cloneDom,f=s.isHtml,l=Array.prototype.slice,h={flatten:r(466),bind:r(111),forEach:r(76)};t._makeDomArray=function(e,t){return null==e?[]:e.cheerio?t?c(e.get(),e.options):e.get():Array.isArray(e)?h.flatten(e.map(function(e){return this._makeDomArray(e,t)},this)):”string“==typeof e?a(e,this.options):t?c():[e]};var d=function(e){return function(){var t=l.call(arguments),r=this.length-1;return u(this,function(n,o){var a,s;s=”function“==typeof t?t.call(o,n,i.html(o.children)):t,a=this._makeDomArray(s,n<r),e(a,o.children,o)})}},p=function(e,t,r,n,i){var o,a,s,u,c,f=.concat(n),l=e||null,h=e||null;for(o=0,a=n.length;o).parent||u.root)&&c.children.indexOf(n),c&&s>-1&&(c.children.splice(s,1),i===c&&t>s&&f–),u.root=null,u.parent=i,u.prev&&(u.prev.next=u.next||null),u.next&&(u.next.prev=u.prev||null),u.prev=n||l,u.next=n||h;return l&&(l.next=n),h&&(h.prev=n),e.splice.apply(e,f)};t.appendTo=function(e){return e.cheerio||(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e.append(this),this},t.prependTo=function(e){return e.cheerio||(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e.prepend(this),this},t.append=d(function(e,t,r){p(t,t.length,0,e,r)}),t.prepend=d(function(e,t,r){p(t,0,0,e,r)}),t.wrap=function(e){var t=”function“==typeof e&&e,r=this.length-1;return h.forEach(this,h.bind(function(n,i){var a,s,u=n.parent||n.root,c=u.children;u&&(t&&(e=t.call(n,i)),”string“!=typeof e||f(e)||(e=this.parents().last().find(e).clone()),a=this._makeDomArray(e,i,a),p(c,s,0,a,u))},this)),this},t.after=function(){var e=l.call(arguments),t=this.length-1;return u(this,function(r,n){var o=n.parent||n.root;if(o){var a,s,u=o.children,c=u.indexOf(n);c<0||(a=”function“==typeof e?e.call(n,r,i.html(n.children)):e,s=this._makeDomArray(a,r<t),p(u,c+1,0,s,o))}}),this},t.insertAfter=function(e){var t=[],r=this;return”string“==typeof e&&(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e=this._makeDomArray(e),r.remove(),u(e,function(e,n){var i=r._makeDomArray(r.clone()),o=n.parent||n.root;if(o){var a=o.children,s=a.indexOf(n);s<0||(p(a,s+1,0,i,o),t.push(i))}}),this.constructor.call(this.constructor,this._makeDomArray(t))},t.before=function(){var e=l.call(arguments),t=this.length-1;return u(this,function(r,n){var o=n.parent||n.root;if(o){var a,s,u=o.children,c=u.indexOf(n);c<0||(a=”function“==typeof e?e.call(n,r,i.html(n.children)):e,s=this._makeDomArray(a,r<t),p(u,c,0,s,o))}}),this},t.insertBefore=function(e){var t=[],r=this;return”string“==typeof e&&(e=this.constructor.call(this.constructor,e,null,this._originalRoot)),e=this._makeDomArray(e),r.remove(),u(e,function(e,n){var i=r._makeDomArray(r.clone()),o=n.parent||n.root;if(o){var a=o.children,s=a.indexOf(n);s<0||(p(a,s,0,i,o),t.push(i))}}),this.constructor.call(this.constructor,this._makeDomArray(t))},t.remove=function(e){var t=this;return e&&(t=t.filter(e)),u(t,function(e,t){var r=t.parent||t.root;if®{var n=r.children,i=n.indexOf(t);i<0||(n.splice(i,1),t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.prev=t.next=t.parent=t.root=null)}}),this},t.replaceWith=function(e){var t=this;return u(this,function(r,n){var i=n.parent||n.root;if(i){var a,s=i.children,u=t._makeDomArray(”function“==typeof e?e.call(n,r,n):e);o(u,null),a=s.indexOf(n),p(s,a,1,u,i),n.parent=n.prev=n.next=n.root=null}}),this},t.empty=function(){return u(this,function(e,t){h.forEach(t.children,function(e){e.next=e.prev=e.parent=null}),t.children.length=0}),this},t.html=function(e){if(void 0===e)return this&&this.children?i.html(this.children,this.options):null;var t=this.options;return u(this,function(r,n){h.forEach(n.children,function(e){e.next=e.prev=e.parent=null});var i=e.cheerio?e.clone().get():a(”“+e,t);o(i,n)}),this},t.toString=function(){return i.html(this,this.options)},t.text=function(e){return void 0===e?i.text(this):”function“==typeof e?u(this,function(r,n){var o=;return t.text.call(o,e.call(n,r,i.text(o)))}):(u(this,function(t,r){h.forEach(r.children,function(e){e.next=e.prev=e.parent=null}),o({data:”“+e,type:”text“,parent:r,prev:null,next:null,children:[]},r)}),this)},t.clone=function(){return this._make(c(this.get(),this.options))}},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=9007199254740991,i=”[object Arguments]“,o=”[object Function]“,a=”[object GeneratorFunction]“,s=”object“==(void 0===t?”undefined“:r(t))&&t&&t.Object===Object&&t,u=”object“==(”undefined“==typeof self?”undefined“:r(self))&&self&&self.Object===Object&&self,c=s||u||Function(”return this“)();function f(e,t){for(var r=-1,n=t.length,i=e.length;++r=t;return e}var l=Object.prototype,h=l.hasOwnProperty,d=l.toString,p=c.Symbol,b=l.propertyIsEnumerable,y=p?p.isConcatSpreadable:void 0;function m(e){return g(e)||function(e){return function(e){return function(e){return!!e&&”object“==r(e)}(e)&&function(e){return null!=e&&function(e){return”number“==typeof e&&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)}(e)}(e)&&h.call(e,”callee“)&&(!b.call(e,”callee“)||d.call(e)==i)}(e)||!!(y&&e&&e)}var g=Array.isArray;e.exports=function(e){return e&&e.length?function e(t,r,n,i,o){var a=-1,s=t.length;for(n||(n=m),o||(o=[]);++a<s;){var u=t;r>0&&n(u)?r>1?e(u,r-1,n,i,o):f(o,u):i||(o=u)}return o}(e,1):[]}}).call(this,r(7))},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(55).domEach,o={pick:r(468)},a=Object.prototype.toString;function s(e,t){var r=function(e){return(e=(e||”“).trim())?e.split(”;“).reduce(function(e,t){var r=t.indexOf(”:“);return r<1||r===t.length-1?e:(e=t.slice(r+1).trim(),e)},{}):{}}(e.attribs.style);return”string“==typeof t?r:Array.isArray(t)?o.pick(r,t):r}t.css=function(e,t){return 2===arguments.length||”[object Object]“===a.call(e)?i(this,function(r,i){!function e(t,r,i,o){if(”string“==typeof r){var a=s(t);”function“==typeof i&&(i=i.call(t,o,a)),”“===i?delete a:null!=i&&(a=i),t.attribs.style=(u=a,Object.keys(u||{}).reduce(function(e,t){return e+=(e?” “:”“)t”: “u[t]”;“},”“))}else”object“==n®&&Object.keys®.forEach(function(n){e(t,n,r)});var u}(i,e,t,r)}):s(this,e)}},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=1/0,i=9007199254740991,o=”[object Arguments]“,a=”[object Function]“,s=”[object GeneratorFunction]“,u=”[object Symbol]“,c=”object“==(void 0===t?”undefined“:r(t))&&t&&t.Object===Object&&t,f=”object“==(”undefined“==typeof self?”undefined“:r(self))&&self&&self.Object===Object&&self,l=c||f||Function(”return this“)();function h(e,t){for(var r=-1,n=t.length,i=e.length;++r=t;return e}var d=Object.prototype,p=d.hasOwnProperty,b=d.toString,y=l.Symbol,m=d.propertyIsEnumerable,g=y?y.isConcatSpreadable:void 0,v=Math.max;function _(e){return S(e)||function(e){return function(e){return k(e)&&function(e){return null!=e&&function(e){return”number“==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!function(e){var t=function(e){var t=r(e);return!!e&&(”object“==t||”function“==t)}(e)?b.call(e):”“;return t==a||t==s}(e)}(e)}(e)&&p.call(e,”callee“)&&(!m.call(e,”callee“)||b.call(e)==o)}(e)||!!(g&&e&&e)}function w(e){if(”string“==typeof e||function(e){return”symbol“==r(e)||k(e)&&b.call(e)==u}(e))return e;var t=e+”“;return”0“==t&&1/e==-n?”-0“:t}var S=Array.isArray;function k(e){return!!e&&”object“==r(e)}var x,E,A=(x=function(e,t){return null==e?{}:function(e,t){return function(e,t,r){for(var n=-1,i=t.length,o={};++n<i;){var a=t,s=e;r(s,a)&&(o=s)}return o}(e=Object(e),t,function(t,r){return r in e})}(e,function(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r=t(e,r,e);return i}(function e(t,r,n,i,o){var a=-1,s=t.length;for(n||(n=_),o||(o=[]);++a<s;){var u=t;r>0&&n(u)?r>1?e(u,r-1,n,i,o):h(o,u):i||(o=u)}return o}(t,1),w))},E=v(void 0===E?x.length-1:E,0),function(){for(var e=arguments,t=-1,r=v(e.length-E,0),n=Array®;++t=e;t=-1;for(var i=Array(E+1);++t=e;return i=n,function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r);case 2:return e.call(t,r,r);case 3:return e.call(t,r,r,r)}return e.apply(t,r)}(x,this,i)});e.exports=A}).call(this,r(7))},function(e,t,r){var n=/%20/g,i=/r?n/g,o={map:r(470)};t.serialize=function(){var e=this.serializeArray();return o.map(e,function(e){return encodeURIComponent(e.name)+”=“+encodeURIComponent(e.value)}).join(”&“).replace(n,”+“)},t.serializeArray=function(){var e=this.constructor;return this.map(function(){var t=e(this);return”form“===this.name?t.find(”input,select,textarea,keygen“).toArray():t.filter(”input,select,textarea,keygen“).toArray()}).filter(‘:not(:disabled):not(:submit, :button, :image, :reset, :file):matches(, :not(:checkbox, :radio))').map(function(t,r){var n=e®,a=n.attr(”name“),s=n.val();return null==s?null:Array.isArray(s)?o.map(s,function(e){return{name:a,value:e.replace(i,”rn“)}}):{name:a,value:s.replace(i,”rn“)}}).get()}},function(e,t,r){(function(e,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=200,o=”Expected a function“,a=”lodash_hash_undefined“,s=1,u=2,c=1/0,f=9007199254740991,l=”[object Arguments]“,h=”[object Array]“,d=”[object Boolean]“,p=”[object Date]“,b=”[object Error]“,y=”[object Function]“,m=”[object GeneratorFunction]“,g=”[object Map]“,v=”[object Number]“,_=”[object Object]“,w=”[object RegExp]“,S=”[object Set]“,k=”[object String]“,x=”[object Symbol]“,E=”[object ArrayBuffer]“,A=”[object DataView]“,P=/.|[(?:[^]*|([”'])(?:(?!1)|\.)*?1)]/,O=/^w*$/,T=/^./,j=/[^.]+|[(?:(-?d+(?:.d+)?)|()((?:(?!2)|\.)*?)2)]|(?=(?:.|[])(?:.|[]|$))/g,M=/\(\)?/g,I=/^[object .+?Constructor]$/,B=/^(?:0|d*)$/,D={};D[“[object Float32Array]”]=D[“[object Float64Array]”]=D[“[object Int8Array]”]=D[“[object Int16Array]”]=D[“[object Int32Array]”]=D[“[object Uint8Array]”]=D[“[object Uint8ClampedArray]”]=D[“[object Uint16Array]”]=D[“[object Uint32Array]”]=!0,D=D=D=D=D=D=D=D=D=D=D=D=D=D=D[“[object WeakMap]”]=!1;var C=“object”==(void 0===e?“undefined”:n(e))&&e&&e.Object===Object&&e,N=“object”==(“undefined”==typeof self?“undefined”:n(self))&&self&&self.Object===Object&&self,U=C||N||Function(“return this”)(),R=“object”==n(t)&&t&&!t.nodeType&&t,F=R&&“object”==n®&&r&&!r.nodeType&&r,z=F&&F.exports===R&&C.process,L=function(){try{return z&&z.binding(“util”)}catch(e){}}(),q=L&&L.isTypedArray;function H(e,t){for(var r=-1,n=e?e.length:0,i=Array(n);++r=t(e,r,e);return i}function $(e,t){for(var r=-1,n=e?e.length:0;++r,r,e))return!0;return!1}function K(e){var t=!1;if(null!=e&&“function”!=typeof e.toString)try{t=!!(e+“”)}catch(e){}return t}function V(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r=[n,e]}),r}function G(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r=e}),r}var W,X,Z,J=Array.prototype,Y=Function.prototype,Q=Object.prototype,ee=U[“core-js_shared”],te=(W=/+$/.exec(ee&&ee.keys&&ee.keys.IE_PROTO||“”))?“Symbol(src)_1.”+W:“”,re=Y.toString,ne=Q.hasOwnProperty,ie=Q.toString,oe=RegExp(“^”+re.call(ne).replace(/[\^$.*+?(){}|]/g,“\$&”).replace(/hasOwnProperty|(function).*?(?=\()| for .+?(?=\])/g,“$1.*?”)+“$”),ae=U.Symbol,se=U.Uint8Array,ue=Q.propertyIsEnumerable,ce=J.splice,fe=(X=Object.keys,Z=Object,function(e){return X(Z(e))}),le=Ve(U,“DataView”),he=Ve(U,“Map”),de=Ve(U,“Promise”),pe=Ve(U,“Set”),be=Ve(U,“WeakMap”),ye=Ve(Object,“create”),me=et(le),ge=et(he),ve=et(de),_e=et(pe),we=et(be),Se=ae?ae.prototype:void 0,ke=Se?Se.valueOf:void 0,xe=Se?Se.toString:void 0;function Ee(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Ae(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Pe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e;this.set(n,n)}}function Oe(e){var t=-1,r=e?e.length:0;for(this.__data__=new Pe;++t)}function Te(e){this.__data__=new Ae(e)}function je(e,t){var r=it(e)||nt(e)?function(e,t){for(var r=-1,n=Array(e);++r=t®;return n}(e.length,String):[],n=r.length,i=!!n;for(var o in e)!t&&!ne.call(e,o)||i&&(“length”==o||We(o,n))||r.push(o);return r}function Me(e,t){for(var r=e.length;r–;)if(rt(e[0],t))return r;return-1}Ee.prototype.clear=function(){this.__data__=ye?ye(null):{}},Ee.prototype.delete=function(e){return this.has(e)&&delete this.__data__},Ee.prototype.get=function(e){var t=this.__data__;if(ye){var r=t;return r===a?void 0:r}return ne.call(t,e)?t:void 0},Ee.prototype.has=function(e){var t=this.__data__;return ye?void 0!==t:ne.call(t,e)},Ee.prototype.set=function(e,t){return this.__data__=ye&&void 0===t?a:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,r=Me(t,e);return!(r<0||(r==t.length-1?t.pop():ce.call(t,r,1),0))},Ae.prototype.get=function(e){var t=this.__data__,r=Me(t,e);return r<0?void 0:t[1]},Ae.prototype.has=function(e){return Me(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var r=this.__data__,n=Me(r,e);return n<0?r.push():r[1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Ee,map:new(he||Ae),string:new Ee}},Pe.prototype.delete=function(e){return Ke(this,e).delete(e)},Pe.prototype.get=function(e){return Ke(this,e).get(e)},Pe.prototype.has=function(e){return Ke(this,e).has(e)},Pe.prototype.set=function(e,t){return Ke(this,e).set(e,t),this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,a),this},Oe.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new Ae},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Ae){var n=r.__data__;if(!he||n.length<i-1)return n.push(),this;r=this.__data__=new Pe(n)}return r.set(e,t),this};var Ie,Be,De=(Ie=function(e,t){return e&&Ce(e,t,ht)},function(e,t){if(null==e)return e;if(!ot(e))return Ie(e,t);for(var r=e.length,n=Be?r:-1,i=Object(e);(Be?n–:++n,n,i););return e}),Ce=function(e){return function(t,r,n){for(var i=-1,o=Object(t),a=n(t),s=a.length;s–;){var u=a;if(!1===r(o,u,o))break}return t}}();function Ne(e,t){for(var r=0,n=(t=Xe(t,e)?:He(t)).length;null!=e&&r)];return r&&r==n?e:void 0}function Ue(e,t){return null!=e&&t in Object(e)}function Re(e,t,r,n,i){return e===t||(null==e||null==t||!ut(e)&&!ct(t)?e!=e&&t!=t:function(e,t,r,n,i,o){var a=it(e),c=it(t),f=h,y=h;a||(f=(f=Ge(e))==l?_:f);c||(y=(y=Ge(t))==l?_:y);var m=f==_&&!K(e),P=y==_&&!K(t),O=f==y;if(O&&!m)return o||(o=new Te),a||lt(e)?$e(e,t,r,n,i,o):function(e,t,r,n,i,o,a){switch®{case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!n(new se(e),new se(t)));case d:case p:case v:return rt(+e,+t);case b:return e.name==t.name&&e.message==t.message;case w:case k:return e==t+“”;case g:var c=V;case S:var f=o&u;if(c||(c=G),e.size!=t.size&&!f)return!1;var l=a.get(e);if(l)return l==t;o|=s,a.set(e,t);var h=$e(c(e),c(t),n,i,o,a);return a.delete(e),h;case x:if(ke)return ke.call(e)==ke.call(t)}return!1}(e,t,f,r,n,i,o);if(!(i&u)){var T=m&&ne.call(e,“__wrapped__”),j=P&&ne.call(t,“__wrapped__”);if(T||j){var M=T?e.value():e,I=j?t.value():t;return o||(o=new Te),r(M,I,n,i,o)}}if(!O)return!1;return o||(o=new Te),function(e,t,r,n,i,o){var a=i&u,s=ht(e),c=s.length,f=ht(t).length;if(c!=f&&!a)return!1;for(var l=c;l–;){var h=s;if(!(a?h in t:ne.call(t,h)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var p=!0;o.set(e,t),o.set(t,e);for(var b=a;++l<c;){h=s;var y=e,m=t;if(n)var g=a?n(m,y,h,t,e,o):n(y,m,h,e,t,o);if(!(void 0===g?y===m||r(y,m,n,i,o):g)){p=!1;break}b||(b=“constructor”==h)}if(p&&!b){var v=e.constructor,_=t.constructor;v!=_&&“constructor”in e&&“constructor”in t&&!(“function”==typeof v&&v instanceof v&&“function”==typeof _&&_ instanceof _)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,r,n,i,o)}(e,t,Re,r,n,i))}function Fe(e){return!(!ut(e)||(t=e,te&&te in t))&&(at(e)||K(e)?oe:I).test(et(e));var t}function ze(e){return“function”==typeof e?e:null==e?dt:“object”==n(e)?it(e)?function(e,t){if(Xe(e)&&Ze(t))return Je(Qe(e),t);return function®{var n=function(e,t,r){var n=null==e?void 0:Ne(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){t=Xe(t,e)?:He(t);var n,i=-1,o=t.length;for(;++i<o;){var a=Qe(t);if(!(n=null!=e&&r(e,a)))break;e=e}if(n)return n;return!!(o=e?e.length:0)&&st(o)&&We(a,o)&&(it(e)||nt(e))}(e,t,Ue)}(r,e):Re(t,n,void 0,s|u)}}(e,e):function(e){var t=function(e){var t=ht(e),r=t.length;for(;r–;){var n=t,i=e;t=[n,i,Ze(i)]}return t}(e);if(1==t.length&&t[2])return Je(t[0],t[1]);return function®{return r===e||function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i–;){var c=r;if(a&&c?c!==e[c]:!(cin e))return!1}for(;++i<o;){var f=(c=r)[0],l=e,h=c;if(a&&c){if(void 0===l&&!(f in e))return!1}else{var d=new Te;if(n)var p=n(l,h,f,e,t,d);if(!(void 0===p?Re(h,l,n,s|u,d):p))return!1}}return!0}(r,e,t)}}(e):Xe(t=e)?(r=Qe(t),function(e){return null==e?void 0:e}):function(e){return function(t){return Ne(t,e)}}(t);var t,r}function Le(e){if(r=(t=e)&&t.constructor,n=“function”==typeof r&&r.prototype||Q,t!==n)return fe(e);var t,r,n,i=[];for(var o in Object(e))ne.call(e,o)&&“constructor”!=o&&i.push(o);return i}function qe(e,t){var r=-1,n=ot(e)?Array(e.length):[];return De(e,function(e,i,o){n=t(e,i,o)}),n}function He(e){return it(e)?e:Ye(e)}function $e(e,t,r,n,i,o){var a=i&u,c=e.length,f=t.length;if(c!=f&&!(a&&f>c))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var h=-1,d=!0,p=i&s?new Oe:void 0;for(o.set(e,t),o.set(t,e);++h<c;){var b=e,y=t;if(n)var m=a?n(y,b,h,t,e,o):n(b,y,h,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!$(t,function(e,t){if(!p.has(t)&&(b===e||r(b,e,n,i,o)))return p.add(t)})){d=!1;break}}else if(b!==y&&!r(b,y,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ke(e,t){var r,i,o=e.__data__;return(“string”==(i=n(r=t))||“number”==i||“symbol”==i||“boolean”==i?“__proto__”!==r:null===r)?o[“string”==typeof t?“string”:“hash”]:o.map}function Ve(e,t){var r=function(e,t){return null==e?void 0:e}(e,t);return Fe®?r:void 0}var Ge=function(e){return ie.call(e)};function We(e,t){return!!(t=null==t?f:t)&&(“number”==typeof e||B.test(e))&&e>-1&&e%1==0&&e<t}function Xe(e,t){if(it(e))return!1;var r=n(e);return!(“number”!=r&&“symbol”!=r&&“boolean”!=r&&null!=e&&!ft(e))||(O.test(e)||!P.test(e)||null!=t&&e in Object(t))}function Ze(e){return e==e&&!ut(e)}function Je(e,t){return function®{return null!=r&&(r===t&&(void 0!==t||e in Object®))}}(le&&Ge(new le(new ArrayBuffer(1)))!=A||he&&Ge(new he)!=g||de&&“[object Promise]”!=Ge(de.resolve())||pe&&Ge(new pe)!=S||be&&“[object WeakMap]”!=Ge(new be))&&(Ge=function(e){var t=ie.call(e),r=t==_?e.constructor:void 0,n=r?et®:void 0;if(n)switch(n){case me:return A;case ge:return g;case ve:return“[object Promise]”;case _e:return S;case we:return“[object WeakMap]”}return t});var Ye=tt(function(e){var t;e=null==(t=e)?“”:function(e){if(“string”==typeof e)return e;if(ft(e))return xe?xe.call(e):“”;var t=e+“”;return“0”==t&&1/e==-c?“-0”:t}(t);var r=[];return T.test(e)&&r.push(“”),e.replace(j,function(e,t,n,i){r.push(n?i.replace(M,“$1”):t||e)}),r});function Qe(e){if(“string”==typeof e||ft(e))return e;var t=e+“”;return“0”==t&&1/e==-c?“-0”:t}function et(e){if(null!=e){try{return re.call(e)}catch(e){}try{return e+“”}catch(e){}}return“”}function tt(e,t){if(“function”!=typeof e||t&&“function”!=typeof t)throw new TypeError(o);var r=function r(){var n=arguments,i=t?t.apply(this,n):n,o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a),a};return r.cache=new(tt.Cache||Pe),r}function rt(e,t){return e===t||e!=e&&t!=t}function nt(e){return function(e){return ct(e)&&ot(e)}(e)&&ne.call(e,“callee”)&&(!ue.call(e,“callee”)||ie.call(e)==l)}tt.Cache=Pe;var it=Array.isArray;function ot(e){return null!=e&&st(e.length)&&!at(e)}function at(e){var t=ut(e)?ie.call(e):“”;return t==y||t==m}function st(e){return“number”==typeof e&&e>-1&&e%1==0&&e<=f}function ut(e){var t=n(e);return!!e&&(“object”==t||“function”==t)}function ct(e){return!!e&&“object”==n(e)}function ft(e){return“symbol”==n(e)||ct(e)&&ie.call(e)==x}var lt=q?function(e){return function(t){return e(t)}}(q):function(e){return ct(e)&&st(e.length)&&!!D};function ht(e){return ot(e)?je(e):Le(e)}function dt(e){return e}r.exports=function(e,t){return(it(e)?H:qe)(e,ze(t))}}).call(this,r(7),r(17)(e))},function(e){e.exports={_args:[],_from:“cheerio@0.22.0”,_id:“cheerio@0.22.0”,_inBundle:!1,_integrity:“sha1-qbqoYKP5tZWmuBsahocxIe06Jp4=”,_location:“/cheerio”,_phantomChildren:{},_requested:{type:“version”,registry:!0,raw:“cheerio@0.22.0”,name:“cheerio”,escapedName:“cheerio”,rawSpec:“0.22.0”,saveSpec:null,fetchSpec:“0.22.0”},_requiredBy:,_resolved:“registry.npmjs.org/cheerio/-/cheerio-0.22.0.tgz”,_spec:“0.22.0”,_where:“/Users/Yukan/Desktop/work/aladin/aladin.js”,author:{name:“Matt Mueller”,email:“mattmuelle@gmail.com”,url:“mat.io”},bugs:{url:“github.com/cheeriojs/cheerio/issues”},dependencies:{“css-select”:“~1.2.0”,“dom-serializer”:“~0.1.0”,entities:“~1.1.1”,htmlparser2:“^3.9.1”,“lodash.assignin”:“^4.0.9”,“lodash.bind”:“^4.1.4”,“lodash.defaults”:“^4.0.1”,“lodash.filter”:“^4.4.0”,“lodash.flatten”:“^4.2.0”,“lodash.foreach”:“^4.3.0”,“lodash.map”:“^4.4.0”,“lodash.merge”:“^4.4.0”,“lodash.pick”:“^4.2.1”,“lodash.reduce”:“^4.4.0”,“lodash.reject”:“^4.4.0”,“lodash.some”:“^4.4.0”},description:“Tiny, fast, and elegant implementation of core jQuery designed specifically for the server”,devDependencies:{benchmark:“^2.1.0”,coveralls:“^2.11.9”,“expect.js”:“~0.3.1”,istanbul:“^0.4.3”,jquery:“^3.0.0”,jsdom:“^9.2.1”,jshint:“^2.9.2”,mocha:“^2.5.3”,xyz:“~0.5.0”},engines:{node:“>= 0.6”},files:,homepage:“https://github.com/cheeriojs/cheerio#readme”,keywords:[“htmlparser”,“jquery”,“selector”,“scraper”,“parser”,“html”],license:“MIT”,main:“./index.js”,name:“cheerio”,repository:{type:“git”,url:“git://github.com/cheeriojs/cheerio.git”},scripts:{test:“make test”},version:“0.22.0”}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});const n=r(41);t.Github=class extends n.Service{static getBaseUrls(){return[“https://gist.github.com/”,“http://gist.github.com”,“gist.github.com”]}static normalizeUrl(e){return“”}static getProofUrl(e){const t=this.getBaseUrls();let r=e.proof_url.toLowerCase();r=super.prefixScheme®;for(let n=0;n<t.length;n++){const i=`${t}${e.identifier}`.toLowerCase();if(r.startsWith(i)){const e=r.endsWith(“/”)?“raw”:“/raw”;return`${r}${e}`}}throw new Error(`Proof url ${e.proof_url} is not valid for service ${e.service}`)}}},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(53)),o=r(41);t.Twitter=class extends o.Service{static getBaseUrls(){return[“https://twitter.com/”,“http://twitter.com/”,“twitter.com/”]}static normalizeUrl(e){return“”}static getProofStatement(e){const t=i.default.load(e)(‘meta').attr(“content”);return void 0!==t?t.trim().replace(““”,“”).replace(“””,“”):“”}}},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(53)),o=r(41);t.Instagram=class extends o.Service{static getBaseUrls(){return[“https://www.instagram.com/”,“https://instagram.com/”]}static getProofUrl(e){const t=this.getBaseUrls(),r=this.normalizeUrl(e);for(let e=0;e<t.length;e++)if(r.startsWith(`${t}`))return r;throw new Error(`Proof url ${e.proof_url} is not valid for service ${e.service}`)}static normalizeUrl(e){let t=e.proof_url;if((t=super.prefixScheme(t)).startsWith(“instagram.com”)){const e=t.split(“instagram.com”);t=`https://www.instagram.com${e[1]}`}return t}static shouldValidateIdentityInBody(){return!0}static getProofIdentity(e){const t=i.default.load(e)(’meta').attr(“content”);return void 0!==t&&t.split(“:”).length>1?t.split(“:”).match(/(@w+)/).substr(1):“”}static getProofStatement(e){const t=i.default.load(e)(‘meta').attr(“content”);return void 0!==t&&t.split(“:”).length>1?t.split(“:”).trim().replace(““”,“”).replace(“””,“”):“”}}},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(53)),o=r(41);t.HackerNews=class extends o.Service{static getBaseUrls(){return[“https://news.ycombinator.com/user?id=”,“http://news.ycombinator.com/user?id=”,“news.ycombinator.com/user?id=”]}static getProofUrl(e){const t=this.getBaseUrls(),r=super.prefixScheme(e.proof_url);for(let n=0;n<t.length;n++)if(r===`${t}${e.identifier}`)return r;throw new Error(`Proof url ${e.proof_url} is not valid for service ${e.service}`)}static normalizeUrl(e){return“”}static getProofStatement(e){const t=i.default.load(e),r=t(“#hnmain”).children().find(“table”);let n=“”;return r.length>0&&r.each((e,r)=>{const i=t®.find(“tr”);i.length>0&&i.each((e,r)=>{“about:”===t®.find(“td”).first().text().trim()&&(n=t®.find(“td”).last().text().trim())})}),n}}},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(53)),o=r(41);t.LinkedIn=class extends o.Service{static getBaseUrls(){return[“https://www.linkedin.com/feed/update/”,“http://www.linkedin.com/feed/update/”,“www.linkedin.com/feed/update/”]}static getProofUrl(e){const t=this.getBaseUrls();let r=e.proof_url.toLowerCase();r=super.prefixScheme®;for(let e=0;e<t.length;e++)if(r.startsWith(`${t}`))return r;throw new Error(`Proof url ${e.proof_url} is not valid for service ${e.service}`)}static normalizeUrl(e){return“”}static shouldValidateIdentityInBody(){return!0}static getProofIdentity(e){const t=i.default.load(e)(“article”).find(“.post-meta__profile-link”);return void 0!==t?void 0===t.attr(“href”)?“”:t.attr(“href”).split(“/”).pop():“”}static getProofStatement(e){const t=i.default.load(e)(“article”).find(“.commentary”);let r=“”;return void 0!==t&&(r=t.text()),r}}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0}),t.getName=function(e){if(!e)return null;let t=null;return e.name?t=e.name:(e.givenName||e.familyName)&&(t=“”,e.givenName&&(t=e.givenName),e.familyName&&(t+=` ${e.familyName}`)),t},t.getGivenName=function(e){if(!e)return null;let t=null;e.givenName?t=e.givenName:e.name&&(t=e.name.split(“ ”).slice(0,-1).join(“ ”));return t},t.getFamilyName=function(e){if(!e)return null;let t=null;e.familyName?t=e.familyName:e.name&&(t=e.name.split(“ ”).pop());return t},t.getDescription=function(e){if(!e)return null;let t=null;return e.description&&(t=e.description),t},t.getAvatarUrl=function(e){if(!e)return null;let t=null;return e.image&&e.image.map(e=>“avatar”===e.name?t=e.contentUrl:null),t},t.getVerifiedAccounts=function(e,t){if(!e)return null;const r=[];return e.hasOwnProperty(“account”)&&t&&e.account.map(e=>{let n=!1,i=null;return t.map(t=>(t.hasOwnProperty(“proof_url”)&&(t.proofUrl=t.proof_url),!(!t.valid||t.service!==e.service||t.identifier!==e.identifier||!t.proofUrl||(n=!0,i=t.proofUrl,0)))),n?(e.proofUrl=i,r.push(e),e):null}),r},t.getOrganizations=function(e){return e?e.hasOwnProperty(“worksFor”)?e.worksFor:[]:null},t.getConnections=function(e){if(!e)return null;let t=[];return e.hasOwnProperty(“knows”)&&(t=e.knows),t},t.getAddress=function(e){if(!e)return null;let t=null;if(e.hasOwnProperty(“address”)){const r=[];e.address.hasOwnProperty(“streetAddress”)&&r.push(e.address.streetAddress),e.address.hasOwnProperty(“addressLocality”)&&r.push(e.address.addressLocality),e.address.hasOwnProperty(“postalCode”)&&r.push(e.address.postalCode),e.address.hasOwnProperty(“addressCountry”)&&r.push(e.address.addressCountry),r.length&&(t=r.join(“, ”))}return t},t.getBirthDate=function(e){if(!e)return null;const t=;let r=null;if(e.hasOwnProperty(“birthDate”)){const n=new Date(e.birthDate);r=`${t} ${n.getDate()}, ${n.getFullYear()}`}return r}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});const n=r(25);function i(e,t,r,i=null,o=null){null===o&&(o=“.default”);const a={version:1,blockchain_id:i,app_private_key:r,app_domain:e,methods:t,app_public_keys:,device_id:o};return new n.TokenSigner(“ES256k”,r).sign(a)}function o(e,t,r,n){return Promise.resolve().then(()=>{if(!n)throw new Error(“Missing API password”)}).then(()=>{return fetch(`${e}:${t}/v1/auth?authRequest=${r}`,{headers:{Authorization:`bearer ${n}`}})}).then(e=>{if(!e.ok)throw new Error(“HTTP status not OK”);return e.text()}).then(e=>{const t=JSON.parse(e).token;if(!t)throw new Error(“Failed to get Core session token”);return t}).catch(e=>{throw console.error(e),new Error(“Invalid Core response: not JSON”)})}r(79),t.makeCoreSessionRequest=i,t.sendCoreSessionRequest=o,t.getCoreSession=function(e,t,r,a,s=null,u=null,c=“0”){if(!u)return Promise.reject(“No authRequest provided”);let f=null,l=null;try{if(!(l=n.decodeToken(u)))return Promise.reject(“Invalid authRequest in URL query string”);if(!l.payload)return Promise.reject(“Invalid authRequest in URL query string”);f=l.payload}catch(e){return console.error(e.stack),Promise.reject(“Failed to parse authRequest in URL”)}const h=f.domain_name;return h?o(e,t,i(h,f.scopes,a,s,c),r):Promise.reject(“No domain_name in authRequest”)}},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var n=r(74);t.Profile=n.Profile;var i=r(480);t.Person=i.Person,t.Organization=i.Organization,t.CreativeWork=i.CreativeWork,t.resolveZoneFileToPerson=i.resolveZoneFileToPerson;var o=r(30);t.signProfileToken=o.signProfileToken,t.wrapProfileToken=o.wrapProfileToken,t.verifyProfileToken=o.verifyProfileToken,t.extractProfile=o.extractProfile;var a=r(193);t.validateProofs=a.validateProofs;var s=r(194);t.profileServices=s.profileServices,t.containsValidProofStatement=s.containsValidProofStatement,t.containsValidAddressProofStatement=s.containsValidAddressProofStatement;var u=r(72);t.makeProfileZoneFile=u.makeProfileZoneFile,t.getTokenFileUrl=u.getTokenFileUrl,t.resolveZoneFileToProfile=u.resolveZoneFileToProfile;var c=r(189);t.lookupProfile=c.lookupProfile},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});var n=r(106);t.Person=n.Person;var i=r(481);t.Organization=i.Organization;var o=r(482);t.CreativeWork=o.CreativeWork;var a=r(208);t.getPersonFromLegacyFormat=a.getPersonFromLegacyFormat;var s=r(483);t.resolveZoneFileToPerson=s.resolveZoneFileToPerson},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(74),s={type:“object”,properties:{“@context”:{type:“string”,optional:!0},“@type”:{type:“string”},“@id”:{type:“string”,optional:!0}}};class u extends a.Profile{constructor(e={}){super(e),this._profile=Object.assign({},{“@type”:“Organization”},this._profile)}static validateSchema(e,t=!1){return s.strict=t,i.default.validate(s,e)}static fromToken(e,t=null){const r=o.extractProfile(e,t);return new u®}}t.Organization=u},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(74),s={type:“object”,properties:{“@context”:{type:“string”,optional:!0},“@type”:{type:“string”},“@id”:{type:“string”,optional:!0}}};class u extends a.Profile{constructor(e={}){super(e),this._profile=Object.assign({},{“@type”:“CreativeWork”},this._profile)}static validateSchema(e,t=!1){return s.strict=t,i.default.validate(s,e)}static fromToken(e,t=null){const r=o.extractProfile(e,t);return new u®}}t.CreativeWork=u},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});const n=r(190),i=r(106),o=r(72),a=r(30);t.resolveZoneFileToPerson=function(e,t,r){let s=null;try{if(!(s=n.parseZoneFile(e)).hasOwnProperty(“$origin”))throw s=null,new Error(“zone file is missing an origin”)}catch(e){console.error(e)}let u=null;if(s&&Object.keys(s).length>0)(u=o.getTokenFileUrl(s))?fetch(u).then(e=>e.text()).then(e=>JSON.parse(e)).then(e=>{const n=e.token,i=a.extractProfile(n,t);r(i)}).catch(e=>{console.warn(e)}):(console.warn(“Token file url not found”),r({}));else{let t=null;try{t=JSON.parse(e),t=i.Person.fromLegacyFormat(t).profile()}catch(e){console.warn(e)}r(t)}}},function(e,t,r){“use strict”;function n(e){for(var r in e)t.hasOwnProperty®||(t=e)}Object.defineProperty(t,“__esModule”,{value:!0});var i=r(209);t.makePreorderSkeleton=i.makePreorderSkeleton;var o=r(485);t.transactions=o.transactions,n(r(114)),n(r(210));var a=r(486);t.safety=a.safety},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=r(114),a=r(209),s=r(29),u=r(24),c=r(210),f=“aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa”,l=“ffffffffffffffffffffffffffffffffffffffff”;function h(e,t,r,n=!0){if(e.length<=0)throw new Error(“Owner has no UTXOs for UPDATE.”);e.sort((e,t)=>e.value-t.value);const i=e,o=r.addInput(i.tx_hash,i.tx_output_n);return n&&r.addOutput(t,i.value),{index:o,value:i.value}}function d(e,t,r,n,i,a=null){null===a&&(a=e.addOutput(t,o.DUST_MINIMUM));const s=o.estimateTXBytes(e,0,0)*n,u=o.sumOutputValues(e),c=o.addUTXOsToFund(e,r,s+u-i,n);return o.getTransactionInsideBuilder(e).outs.value+=c,e}function p(e,t=!1){return t?e.buildIncomplete().toHex():e.build().toHex()}function b(e){return“string”==typeof e?c.PubkeyHashSigner.fromHexString(e):e}t.transactions={makeRenewal:function(t,r,n,u,c=null,f=null,l=!1){const y=s.config.network;!f&&c&&(f=o.hash160(e.from©).toString(“hex”));const m=t.split(“.”).pop(),g=b(u),v=b(n);return Promise.all().then(()=>{const s=Promise.all().then(()=>a.makeRenewalSkeleton(t,r,e,i,n,f)).then(e=>{const t=i.default.TransactionBuilder.fromTransaction(e,y.layer1);return t.setVersion(1),t});return Promise.all().then(()=>{const u=h(a,e,t,!1),c=o.getTransactionInsideBuilder(t).outs,f=i.default.address.fromOutputScript(c.script,y.layer1);if(f!==e)return Promise.reject(new Error(`Original owner ${e} should have an output at `+`index 2 in transaction was ${f}`));c.value=u.value;const l=d(t,n,r,s,u.value);return o.signInputs(l,g,)})}).then(e=>p(e,l))},makeUpdate:function(t,r,n,u,c=“”,f=!1){const l=s.config.network;if(!c&&!u)return Promise.reject(new Error(“Need zonefile or valueHash arguments”));if(0===c.length){if(!u)return Promise.reject(new Error(“Need zonefile or valueHash arguments”));c=o.hash160(e.from(u)).toString(“hex”)}else if(40!==c.length)return Promise.reject(new Error(`Invalid valueHash ${c}`));const y=b(n),m=b®;return Promise.all().then(()=>{const n=l.getConsensusHash().then(e=>a.makeUpdateSkeleton(t,e,c)).then(e=>{const t=i.default.TransactionBuilder.fromTransaction(e,l.layer1);return t.setVersion(1),t});return Promise.all().then(()=>{const s=h(i,e,t),u=d(t,r,n,a,s.value);return o.signInputs(u,y,)})}).then(e=>p(e,f))},makePreorder:function(e,t,r,n=!1){const u=s.config.network,c=e.split(“.”).pop(),f=b®;return f.getAddress().then(r=>{const s=Promise.all().then(()=>a.makePreorderSkeleton(e,n,r,o,i,t));return Promise.all().then(()=>{const a=i.default.TransactionBuilder.fromTransaction(n,u.layer1);a.setVersion(1);const s=d(a,r,e,t,0,1);return o.signInputs(s,f)}).then(e=>p(e,n))})},makeRegister:function(t,r,n,u=null,c=null,f=!1){const l=s.config.network;if(!c&&u)c=o.hash160(e.from(u)).toString(“hex”);else if(c&&40!==c.length)return Promise.reject(new Error(`Invalid zonefile hash ${c}`));const h=a.makeRegisterSkeleton(t,r,c),y=i.default.TransactionBuilder.fromTransaction(h,l.layer1);y.setVersion(1);const m=b(n);return m.getAddress().then(e=>Promise.all().then(()=>{const n=d(y,e,t,r,0);return o.signInputs(n,m)})).then(e=>p(e,f))},makeTransfer:function(e,t,r,n,u=!1,c=!1){const f=s.config.network,l=b(n),y=b®;return Promise.all().then(()=>{const s=f.getConsensusHash().then(r=>a.makeTransferSkeleton(e,r,t,u)).then(e=>{const t=i.default.TransactionBuilder.fromTransaction(e,f.layer1);return t.setVersion(1),t});return Promise.all().then(()=>{const s=h(i,r,e),u=d(e,n,t,a,s.value);return o.signInputs(u,l,)})}).then(e=>p(e,c))},makeRevoke:function(e,t,r,n=!1){const u=s.config.network,c=b®,f=b(t);return Promise.all().then(()=>{const n=a.makeRevokeSkeleton(e),s=i.default.TransactionBuilder.fromTransaction(n,u.layer1);return s.setVersion(1),Promise.all().then(()=>{const s=h(i,t,e),u=d(e,r,n,a,s.value);return o.signInputs(u,c,)})}).then(e=>p(e,n))},makeNamespacePreorder:function(e,t,r,n=!1){const u=s.config.network,c=b®;return c.getAddress().then(r=>{const s=Promise.all().then(()=>a.makeNamespacePreorderSkeleton(e,n,r,t,i));return Promise.all().then(()=>{const a=i.default.TransactionBuilder.fromTransaction(n,u.layer1);a.setVersion(1);const s=d(a,r,e,t,0,1);return o.signInputs(s,c)}).then(e=>p(e,n))})},makeNamespaceReveal:function(e,t,r,n=!1){const u=s.config.network;if(!e.check())return Promise.reject(new Error(“Invalid namespace”));const c=a.makeNamespaceRevealSkeleton(e,t),f=b®;return f.getAddress().then(e=>Promise.all().then(()=>{const n=i.default.TransactionBuilder.fromTransaction(c,u.layer1);n.setVersion(1);const a=d(n,e,t,r,0);return o.signInputs(a,f)})).then(e=>p(e,n))},makeNamespaceReady:function(e,t,r=!1){const n=s.config.network,u=a.makeNamespaceReadySkeleton(e),c=b(t);return c.getAddress().then(e=>Promise.all().then(()=>{const a=i.default.TransactionBuilder.fromTransaction(u,n.layer1);a.setVersion(1);const s=d(a,e,t,r,0);return o.signInputs(s,c)})).then(e=>p(e,r))},makeBitcoinSpend:function(e,t,r,n=!1){if(r<=0)return Promise.reject(new u.InvalidParameterError(“amount”,“amount must be greater than zero”));const a=s.config.network,c=b(t);return c.getAddress().then(t=>Promise.all().then(()=>{const f=new i.default.TransactionBuilder(a.layer1);f.setVersion(1);const l=f.addOutput(e,0);let h;try{h=o.addUTXOsToFund(f,n,r,s,!1)}catch(e){if(“NotEnoughFundsError”!==e.name)throw e;r-=e.leftToFund,h=0}let d=s*o.estimateTXBytes(f,0,0);const p=s*o.estimateTXBytes(f,0,1)-d;h>p&&(d+=p,f.addOutput(t,h));const b=r-d;if(b<o.DUST_MINIMUM)throw new u.InvalidAmountError(d,r);return o.getTransactionInsideBuilder(f).outs.value=b,o.signInputs(f,c)})).then(e=>p(e,n))},makeNameImport:function(e,t,r,n,u=!1){const c=s.config.network,f=a.makeNameImportSkeleton(e,t,r),l=b(n);return l.getAddress().then(e=>Promise.all().then(()=>{const n=d(i.default.TransactionBuilder.fromTransaction(f,c.layer1),e,t,r,0);return o.signInputs(n,l)})).then(e=>p(e,u))},makeAnnounce:function(e,t,r=!1){const n=s.config.network,u=a.makeAnnounceSkeleton(e),c=b(t);return c.getAddress().then(e=>Promise.all().then(()=>{const a=d(i.default.TransactionBuilder.fromTransaction(u,n.layer1),e,t,r,0);return o.signInputs(a,c)})).then(e=>p(e,r))},makeTokenTransfer:function(e,t,r,n,u,c,f=!1){const l=s.config.network,y=!!c,m=b(u),g=c?b©:m,v=l.getConsensusHash().then(i=>a.makeTokenTransferSkeleton(e,i,t,r,n));return Promise.all().then(()=>{const r=y?l.getUTXOs(t):Promise.resolve([]);return Promise.all().then(()=>{const u=i.default.TransactionBuilder.fromTransaction(s,l.layer1);if(y){const i=h(r,e,u),s=d(u,t,n,a,i.value);return o.signInputs(s,g,)}{const t=d(u,e,r,a,0);return o.signInputs(t,m)}})}).then(e=>p(e,f))},AladinNamespace:a.AladinNamespace,estimatePreorder:function(e,t,r,n=1){const i=s.config.network,u=i.getNamePrice(e).then(n=>a.makePreorderSkeleton(e,f,r,i.getDefaultBurnAddress(),n,t));return Promise.all().then(()=>{const r=o.sumOutputValues(t);return e*o.estimateTXBytes(t,n,0)+r})},estimateRegister:function(e,t,r,n=!1,i=1){const u=s.config.network;let c;n&&(c=l);const f=a.makeRegisterSkeleton(e,t,c);return u.getFeeRate().then(e=>{const t=o.sumOutputValues(f);return e*o.estimateTXBytes(f,i,1)+t})},estimateTransfer:function(e,t,r,n,i=1){const u=s.config.network,c=a.makeTransferSkeleton(e,f,t);return u.getFeeRate().then(e=>{const t=o.sumOutputValues©;return e*o.estimateTXBytes(c,1+i,2)+t})},estimateUpdate:function(e,t,r,n=1){const i=s.config.network,u=a.makeUpdateSkeleton(e,f,l);return i.getFeeRate().then(e=>{const t=o.sumOutputValues(u);return e*o.estimateTXBytes(u,1+n,2)+t})},estimateRenewal:function(e,t,r,n,i=!1,u=1){const c=s.config.network;let f;i&&(f=l);const h=c.getNamePrice(e).then(n=>a.makeRenewalSkeleton(e,t,r,c.getDefaultBurnAddress(),n,f));return Promise.all().then(()=>{const r=o.sumOutputValues(t);return e*o.estimateTXBytes(t,1+u,1)+r-5500})},estimateRevoke:function(e,t,r,n=1){const i=s.config.network,u=a.makeRevokeSkeleton(e);return Promise.all().then(()=>{const t=o.sumOutputValues(u);return e*o.estimateTXBytes(u,1+n,2)+t})},estimateNamespacePreorder:function(e,t,r,n=1){const i=s.config.network,u=i.getNamespacePrice(e).then(n=>a.makeNamespacePreorderSkeleton(e,f,r,t,n));return Promise.all().then(()=>{const r=o.sumOutputValues(t);return e*o.estimateTXBytes(t,n,0)+r})},estimateNamespaceReveal:function(e,t,r,n=1){const i=s.config.network,u=a.makeNamespaceRevealSkeleton(e,t);return i.getFeeRate().then(e=>{const t=o.sumOutputValues(u);return e*o.estimateTXBytes(u,n,1)+t})},estimateNamespaceReady:function(e,t=1){const r=s.config.network,n=a.makeNamespaceReadySkeleton(e);return r.getFeeRate().then(e=>{const r=o.sumOutputValues(n);return e*o.estimateTXBytes(n,t,1)+r})},estimateNameImport:function(e,t,r,n=1){const i=s.config.network,u=a.makeNameImportSkeleton(e,t,r);return i.getFeeRate().then(e=>{const t=o.sumOutputValues(u);return e*o.estimateTXBytes(u,n,1)+t})},estimateAnnounce:function(e,t=1){const r=s.config.network,n=a.makeAnnounceSkeleton(e);return r.getFeeRate().then(e=>{const r=o.sumOutputValues(n);return e*o.estimateTXBytes(n,t,1)+r})},estimateTokenTransfer:function(e,t,r,n,i=1,u=1){const c=s.config.network,l=a.makeTokenTransferSkeleton(e,f,t,r,n);return c.getFeeRate().then(e=>{const t=o.sumOutputValues(l);return e*o.estimateTXBytes(l,i,u)+t})}}}).call(this,r(1).Buffer)},function(e,t,r){“use strict”;Object.defineProperty(t,“__esModule”,{value:!0});const n=r(29);function i(e=“”){const t=/^[a-z0-9-_]$/;if(!e||e.length>37)return Promise.resolve(!1);const r=e.split(“.”);return 2!==r.length?Promise.resolve(!1):Promise.resolve(r.reduce((e,r)=>!!e&&t.test®,!0))}t.safety={addressCanReceiveName:function(e){return n.config.network.getNamesOwned(e).then(e=>Promise.all(e.map(e=>i(e))).then(e=>e.filter(e=>e).length<25))},isInGracePeriod:function(e){const t=n.config.network;return Promise.all().then(()=>{const n=e.expire_block;return t>=n&&t<r+n}).catch(e=>{if(“Name not found”===e.message)return!1;throw e})},ownsName:function(e,t){return n.config.network.getNameInfo(e).then(e=>e.address===t).catch(e=>{if(“Name not found”===e.message)return!1;throw e})},isNameAvailable:function(e){return n.config.network.getNameInfo(e).then(()=>!1).catch(e=>{if(“Name not found”===e.message)return!0;throw e})},isNameValid:i,isNamespaceValid:function(e){return Promise.resolve(null!==e.match(/^{1,19}$/))},isNamespaceAvailable:function(e){return n.config.network.getNamespaceInfo(e).then(()=>!1).catch(e=>{if(“Namespace not found”===e.message)return!0;throw e})},revealedNamespace:function(e,t){return n.config.network.getNamespaceInfo(e).then(e=>e.recipient_address===t).catch(e=>{if(“Namespace not found”===e.message)return!1;throw e})},namespaceIsReady:function(e){return n.config.network.getNamespaceInfo(e).then(e=>e.ready).catch(e=>{if(“Namespace not found”===e.message)return!1;throw e})},namespaceIsRevealed:function(e){return n.config.network.getNamespaceInfo(e).then(e=>!e.ready).catch(e=>{if(“Namespace not found”===e.message)return!1;throw e})},isAccountSpendable:function(e,t,r){return n.config.network.getAccountStatus(e,t).then(e=>e.transfer_send_block_id>=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())})},i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t=e);return t.default=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,“__esModule”,{value:!0});const a=i(r(31)),s=i(r(23)),u=o(r(211)),c=o(r(180)),f=r(16),l=r(212),h=0,d=888,p=0,b=44,y=0,m=0,g=“EXTERNAL_ADDRESS”,v=“CHANGE_ADDRESS”;function _(e){return f.ecPairToHexString(s.ECPair.fromPrivateKey(e.privateKey))}function w(e){return e.publicKey.toString(“hex”)}class S{constructor(e){this.rootNode=e}toBase58(){return this.rootNode.toBase58()}static fromSeedBuffer(e){return new S(c.default.fromSeed(e))}static fromBase58(e){return new S(c.default.fromBase58(e))}static fromEncryptedMnemonic(e,t){return l.decryptMnemonic(e,t).then(e=>{const t=u.default.mnemonicToSeed(e);return new S(c.default.fromSeed(t))}).catch(e=>{throw e.message&&e.message.startsWith(“bad header;”)?new Error(“Incorrect password”):e})}static generateMnemonic(){return u.default.generateMnemonic(128,a.randomBytes)}static encryptMnemonic(e,t){return n(this,void 0,void 0,function*(){return(yield l.encryptMnemonic(e,t)).toString(“hex”)})}getIdentityPrivateKeychain(){return this.rootNode.deriveHardened(d).deriveHardened(p)}getBitcoinPrivateKeychain(){return this.rootNode.deriveHardened(b).deriveHardened(y).deriveHardened(m)}getBitcoinNode(e,t=g){return S.getNodeFromBitcoinKeychain(this.getBitcoinPrivateKeychain().toBase58(),e,t)}getIdentityAddressNode(e){return this.getIdentityPrivateKeychain().deriveHardened(e)}static getAppsNode(e){return e.deriveHardened(h)}getIdentitySalt(){const e=w(this.getIdentityPrivateKeychain());return a.default.createHash(“sha256”).update(e).digest(“hex”)}getBitcoinAddress(e){return S.getAddressFromBIP32Node(this.getBitcoinNode(e))}getBitcoinPrivateKey(e){return _(this.getBitcoinNode(e))}getBitcoinPublicKeychain(){return this.getBitcoinPrivateKeychain().neutered()}getIdentityPublicKeychain(){return this.getIdentityPrivateKeychain().neutered()}static getNodeFromBitcoinKeychain(e,t,r=g){let n;if(r===g)n=0;else{if(r!==v)throw new Error(“Invalid chain type”);n=1}return c.default.fromBase58(e).derive(n).derive(t)}static getAddressFromBitcoinKeychain(e,t,r=g){return S.getAddressFromBIP32Node(S.getNodeFromBitcoinKeychain(e,t,r))}static getLegacyAppPrivateKey(e,t,r){const n=function(e){let t=0;if(0===e.length)return t;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt®,t&=t;return 2147483647&t}(a.default.createHash(“sha256”).update(`${r}${t}`).digest(“hex”));return _(c.default.fromBase58(e).deriveHardened(n)).slice(0,64)}static getAddressFromBIP32Node(e){return s.default.payments.p2pkh({pubkey:e.publicKey}).address}static getAppPrivateKey(e,t,r){const n=a.default.createHash(“sha256”).update(`${r}${t}`).digest(“hex”),i=[];if(64!==n.length)throw new Error(`Unexpected app-domain hash length of ${n.length}`);for(let e=0;e<11;e++)i.push(n.slice(6*e,6*e+6));let o=c.default.fromBase58(e);return i.forEach(e=>{if(e.length>6)throw new Error(“Invalid hex string length”);o=o.deriveHardened(parseInt(e,16))}),_(o).slice(0,64)}getIdentityKeyPair(e,t=!1){const r=this.getIdentityAddressNode(e),n=S.getAddressFromBIP32Node®;let i=_®;return t&&66===i.length&&(i=i.slice(0,64)),{key:i,keyID:w®,address:n,appsNodeKey:S.getAppsNode®.toBase58(),salt:this.getIdentitySalt()}}}t.AladinWallet=S},function(e,t,r){(function(e){var n;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)}!function(o){“use strict”;for(var a=,s=10,u=44032,c=4352,f=4449,l=4519,h=19,d=21,p=28,b=d*p,y=h*b,m=function(e,t){this.codepoint=e,this.feature=t},g={},v=[],_=0;_<=255;++_)v=0;var w=[function(e,t,r){return t<60||13311<t&&t<42607?new m(t,a):e(t,r)},function(e,t,r){var n=g;return s&&(g=n),n},function(e,t,r){return r?e(t,r):new m(t,null)},function(e,t,r){var n;if(t<c||c+h<=t&&t<u||u+y<t)return e(t,r);if(c<=t&&t<c+h){var i={},o=(t-c)*d;for(n=0;n=u+p*(n+o);return new m(t,)}var a=t-u,s=a%p,g=[];if(0!==s)g=[u+a-s,l+s];else for(g=[c+Math.floor(a/b),f+Math.floor(a%b/p)],g={},n=1;n[l+n]=t+n;return new m(t,g)},function(e,t,r){var n=65280&t,i=(m.udata||{})[t];return new m(t,i||a)}];m.fromCharCode=w.reduceRight(function(e,t){return function(r,n){return t(e,r,n)}},null),m.isHighSurrogate=function(e){return e>=55296&&e<=56319},m.isLowSurrogate=function(e){return e>=56320&&e<=57343},m.prototype.prepFeature=function(){this.feature||(this.feature=m.fromCharCode(this.codepoint,!0).feature)},m.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},m.prototype.getDecomp=function(){return this.prepFeature(),this.feature||null},m.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature&&256&this.feature},m.prototype.isExclude=function(){return this.prepFeature(),!!this.feature&&512&this.feature},m.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature?255&this.feature:0},m.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature)return null;var t=this.feature[e.codepoint];return t?m.fromCharCode(t):null};var S=function(e){this.str=e,this.cursor=0};S.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return m.isHighSurrogate(t)&&this.cursor<this.str.length&&m.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),m.fromCharCode(t)}return this.str=null,null};var k=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};k.prototype.next=function(){if(0===this.resBuf.length){var e=this.it.next();if(!e)return null;this.resBuf=function e(t,r){var n=r.getDecomp();if(!n||t&&r.isCompatibility())return;for(var i=[],o=0;o<n.length;++o){var a=e(t,m.fromCharCode(n));i=i.concat(a)}return i}(this.canonical,e)}return this.resBuf.shift()};var x=function(e){this.it=e,this.resBuf=[]};x.prototype.next=function(){var e;if(0===this.resBuf.length)do{var t=this.it.next();if(!t)break;e=t.getCanonicalClass();var r=this.resBuf.length;if(0!==e)for(;r>0;–r){if(this.resBuf.getCanonicalClass()<=e)break}this.resBuf.splice(r,0,t)}while(0!==e);return this.resBuf.shift()};var E=function(e){this.it=e,this.procBuf=[],this.resBuf=,this.lastClass=null};E.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf.getComposite(e),r=e.getCanonicalClass();t&&(this.lastClass=t:(0===r&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=r,this.procBuf.push(e))}}return this.resBuf.shift()};var A=function(e,t){for(var r,n=function(e,t){switch(e){case”NFD“:return new x(new k(new S(t),!0));case”NFKD“:return new x(new k(new S(t),!1));case”NFC“:return new E(new x(new k(new S(t),!0)));case”NFKC“:return new E(new x(new k(new S(t),!1)))}throw e+” is invalid“}(e,t),i=”“;r=n.next();)i+=r.toString();return i};m.udata={0:{60:,61:,62:,65:,66:,67:,68:,69:,70:,71:,72:,73:,74:,75:,76:,77:,78:,79:,80:,82:,83:,84:,85:,86:,87:,88:,89:,90:,97:,98:,99:,100:,101:,102:,103:,104:,105:,106:,107:,108:,109:,110:,111:,112:,114:,115:,116:,117:,118:,119:,120:,121:,122:,160:[,256],168:[,256,{768:8173,769:901,834:8129}],170:[,256],175:[,256],178:[,256],179:[,256],180:[,256],181:[,256],184:[,256],185:[,256],186:[,256],188:[,256],189:[,256],190:[,256],192:[],193:[],194:[,,{768:7846,769:7844,771:7850,777:7848}],195:[],196:[,,{772:478}],197:[,,{769:506}],198:,199:[,,{769:7688}],200:[],201:[],202:[,,{768:7872,769:7870,771:7876,777:7874}],203:[],204:[],205:[],206:[],207:[,,{769:7726}],209:[],210:[],211:[],212:[,,{768:7890,769:7888,771:7894,777:7892}],213:[,,{769:7756,772:556,776:7758}],214:[,,{772:554}],216:,217:[],218:[],219:[],220:[,,{768:475,769:471,772:469,780:473}],221:[],224:[],225:[],226:[,,{768:7847,769:7845,771:7851,777:7849}],227:[],228:[,,{772:479}],229:[,,{769:507}],230:,231:[,,{769:7689}],232:[],233:[],234:[,,{768:7873,769:7871,771:7877,777:7875}],235:[],236:[],237:[],238:[],239:[,,{769:7727}],241:[],242:[],243:[],244:[,,{768:7891,769:7889,771:7895,777:7893}],245:[,,{769:7757,772:557,776:7759}],246:[,,{772:555}],248:,249:[],250:[],251:[],252:[,,{768:476,769:472,772:470,780:474}],253:[],255:[]},256:{256:[],257:[],258:[,,{768:7856,769:7854,771:7860,777:7858}],259:[,,{768:7857,769:7855,771:7861,777:7859}],260:[],261:[],262:[],263:[],264:[],265:[],266:[],267:[],268:[],269:[],270:[],271:[],274:[,,{768:7700,769:7702}],275:[,,{768:7701,769:7703}],276:[],277:[],278:[],279:[],280:[],281:[],282:[],283:[],284:[],285:[],286:[],287:[],288:[],289:[],290:[],291:[],292:[],293:[],296:[],297:[],298:[],299:[],300:[],301:[],302:[],303:[],304:[],306:[,256],307:[,256],308:[],309:[],310:[],311:[],313:[],314:[],315:[],316:[],317:[],318:[],319:[,256],320:[,256],323:[],324:[],325:[],326:[],327:[],328:[],329:[,256],332:[,,{768:7760,769:7762}],333:[,,{768:7761,769:7763}],334:[],335:[],336:[],337:[],340:[],341:[],342:[],343:[],344:[],345:[],346:[,,{775:7780}],347:[,,{775:7781}],348:[],349:[],350:[],351:[],352:[,,{775:7782}],353:[,,{775:7783}],354:[],355:[],356:[],357:[],360:[,,{769:7800}],361:[,,{769:7801}],362:[,,{776:7802}],363:[,,{776:7803}],364:[],365:[],366:[],367:[],368:[],369:[],370:[],371:[],372:[],373:[],374:[],375:[],376:[],377:[],378:[],379:[],380:[],381:[],382:[],383:[,256,{775:7835}],416:[,,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[,,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[,,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[,,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:,452:[,256],453:[,256],454:[,256],455:[,256],456:[,256],457:[,256],458:[,256],459:[,256],460:[,256],461:[],462:[],463:[],464:[],465:[],466:[],467:[],468:[],469:[],470:[],471:[],472:[],473:[],474:[],475:[],476:[],478:[],479:[],480:[],481:[],482:[],483:[],486:[],487:[],488:[],489:[],490:[,,{772:492}],491:[,,{772:493}],492:[],493:[],494:[],495:[],496:[],497:[,256],498:[,256],499:[,256],500:[],501:[],504:[],505:[],506:[],507:[],508:[],509:[],510:[],511:[],66045:},512:{512:[],513:[],514:[],515:[],516:[],517:[],518:[],519:[],520:[],521:[],522:[],523:[],524:[],525:[],526:[],527:[],528:[],529:[],530:[],531:[],532:[],533:[],534:[],535:[],536:[],537:[],538:[],539:[],542:[],543:[],550:[,,{772:480}],551:[,,{772:481}],552:[,,{774:7708}],553:[,,{774:7709}],554:[],555:[],556:[],557:[],558:[,,{772:560}],559:[,,{772:561}],560:[],561:[],562:[],563:[],658:,688:[,256],689:[,256],690:[,256],691:[,256],692:[,256],693:[,256],694:[,256],695:[,256],696:[,256],728:[,256],729:[,256],730:[,256],731:[,256],732:[,256],733:[,256],736:[,256],737:[,256],738:[,256],739:[,256],740:[,256],66272:},768:{768:,769:,770:,771:,772:,773:,774:,775:,776:,777:,778:,779:,780:,781:,782:,783:,784:,785:,786:,787:,788:,789:,790:,791:,792:,793:,794:,795:,796:,797:,798:,799:,800:,801:,802:,803:,804:,805:,806:,807:,808:,809:,810:,811:,812:,813:,814:,815:,816:,817:,818:,819:,820:,821:,822:,823:,824:,825:,826:,827:,828:,829:,830:,831:,832:[,230],833:[,230],834:,835:[,230],836:[,230],837:,838:,839:,840:,841:,842:,843:,844:,845:,846:,848:,849:,850:,851:,852:,853:,854:,855:,856:,857:,858:,859:,860:,861:,862:,863:,864:,865:,866:,867:,868:,869:,870:,871:,872:,873:,874:,875:,876:,877:,878:,879:,884:[],890:[,256],894:[],900:[,256],901:[],902:[],903:[],904:[],905:[],906:[],908:[],910:[],911:[],912:[],913:,917:,919:,921:,927:,929:,933:,937:,938:[],939:[],940:[,,{837:8116}],941:[],942:[,,{837:8132}],943:[],944:[],945:,949:,951:,953:,959:,961:,965:,969:,970:[,,{768:8146,769:912,834:8151}],971:[,,{768:8162,769:944,834:8167}],972:[],973:[],974:[,,{837:8180}],976:[,256],977:[,256],978:[,256,{769:979,776:980}],979:[],980:[],981:[,256],982:[,256],1008:[,256],1009:[,256],1010:[,256],1012:[,256],1013:[,256],1017:[,256],66422:,66423:,66424:,66425:,66426:},1024:{1024:[],1025:[],1027:[],1030:,1031:[],1036:[],1037:[],1038:[],1040:,1043:,1045:,1046:,1047:,1048:,1049:[],1050:,1054:,1059:,1063:,1067:,1069:,1072:,1075:,1077:,1078:,1079:,1080:,1081:[],1082:,1086:,1091:,1095:,1099:,1101:,1104:[],1105:[],1107:[],1110:,1111:[],1116:[],1117:[],1118:[],1140:,1141:,1142:[],1143:[],1155:,1156:,1157:,1158:,1159:,1217:[],1218:[],1232:[],1233:[],1234:[],1235:[],1238:[],1239:[],1240:,1241:,1242:[],1243:[],1244:[],1245:[],1246:[],1247:[],1250:[],1251:[],1252:[],1253:[],1254:[],1255:[],1256:,1257:,1258:[],1259:[],1260:[],1261:[],1262:[],1263:[],1264:[],1265:[],1266:[],1267:[],1268:[],1269:[],1272:[],1273:[]},1280:{1415:[,256],1425:,1426:,1427:,1428:,1429:,1430:,1431:,1432:,1433:,1434:,1435:,1436:,1437:,1438:,1439:,1440:,1441:,1442:,1443:,1444:,1445:,1446:,1447:,1448:,1449:,1450:,1451:,1452:,1453:,1454:,1455:,1456:,1457:,1458:,1459:,1460:,1461:,1462:,1463:,1464:,1465:,1466:,1467:,1468:,1469:,1471:,1473:,1474:,1476:,1477:,1479:},1536:{1552:,1553:,1554:,1555:,1556:,1557:,1558:,1559:,1560:,1561:,1562:,1570:[],1571:[],1572:[],1573:[],1574:[],1575:,1608:,1610:,1611:,1612:,1613:,1614:,1615:,1616:,1617:,1618:,1619:,1620:,1621:,1622:,1623:,1624:,1625:,1626:,1627:,1628:,1629:,1630:,1631:,1648:,1653:[,256],1654:[,256],1655:[,256],1656:[,256],1728:[],1729:,1730:[],1746:,1747:[],1749:,1750:,1751:,1752:,1753:,1754:,1755:,1756:,1759:,1760:,1761:,1762:,1763:,1764:,1767:,1768:,1770:,1771:,1772:,1773:},1792:{1809:,1840:,1841:,1842:,1843:,1844:,1845:,1846:,1847:,1848:,1849:,1850:,1851:,1852:,1853:,1854:,1855:,1856:,1857:,1858:,1859:,1860:,1861:,1862:,1863:,1864:,1865:,1866:,2027:,2028:,2029:,2030:,2031:,2032:,2033:,2034:,2035:},2048:{2070:,2071:,2072:,2073:,2075:,2076:,2077:,2078:,2079:,2080:,2081:,2082:,2083:,2085:,2086:,2087:,2089:,2090:,2091:,2092:,2093:,2137:,2138:,2139:,2276:,2277:,2278:,2279:,2280:,2281:,2282:,2283:,2284:,2285:,2286:,2287:,2288:,2289:,2290:,2291:,2292:,2293:,2294:,2295:,2296:,2297:,2298:,2299:,2300:,2301:,2302:,2303:},2304:{2344:,2345:[],2352:,2353:[],2355:,2356:[],2364:,2381:,2385:,2386:,2387:,2388:,2392:[,512],2393:[,512],2394:[,512],2395:[,512],2396:[,512],2397:[,512],2398:[,512],2399:[,512],2492:,2503:,2507:[],2508:[],2509:,2524:[,512],2525:[,512],2527:[,512]},2560:{2611:[,512],2614:[,512],2620:,2637:,2649:[,512],2650:[,512],2651:[,512],2654:[,512],2748:,2765:,68109:,68111:,68152:,68153:,68154:,68159:,68325:,68326:},2816:{2876:,2887:,2888:[],2891:[],2892:[],2893:,2908:[,512],2909:[,512],2962:,2964:[],3014:,3015:,3018:[],3019:[],3020:[],3021:},3072:{3142:,3144:[],3149:,3157:,3158:,3260:,3263:,3264:[],3270:,3271:[],3272:[],3274:[,,{3285:3275}],3275:[],3277:},3328:{3398:,3399:,3402:[],3403:[],3404:[],3405:,3530:,3545:,3546:[],3548:[,,{3530:3549}],3549:[],3550:[]},3584:{3635:[,256],3640:,3641:,3642:,3656:,3657:,3658:,3659:,3763:[,256],3768:,3769:,3784:,3785:,3786:,3787:,3804:[,256],3805:[,256]},3840:{3852:[,256],3864:,3865:,3893:,3895:,3897:,3907:[,512],3917:[,512],3922:[,512],3927:[,512],3932:[,512],3945:[,512],3953:,3954:,3955:[,512],3956:,3957:[,512],3958:[,512],3959:[,256],3960:[,512],3961:[,256],3962:,3963:,3964:,3965:,3968:,3969:[,512],3970:,3971:,3972:,3974:,3975:,3987:[,512],3997:[,512],4002:[,512],4007:[,512],4012:[,512],4025:[,512],4038:},4096:{4133:,4134:[],4151:,4153:,4154:,4237:,4348:[,256],69702:,69759:,69785:,69786:[],69787:,69788:[],69797:,69803:[],69817:,69818:},4352:{69888:,69889:,69890:,69934:[],69935:[],69937:,69938:,69939:,69940:,70003:,70080:},4608:{70197:,70198:,70377:,70378:},4864:{4957:,4958:,4959:,70460:,70471:,70475:[],70476:[],70477:,70502:,70503:,70504:,70505:,70506:,70507:,70508:,70512:,70513:,70514:,70515:,70516:},5120:{70841:,70843:[],70844:[],70846:[],70850:,70851:},5376:{71096:,71097:,71098:[],71099:[],71103:,71104:},5632:{71231:,71350:,71351:},5888:{5908:,5940:,6098:,6109:},6144:{6313:},6400:{6457:,6458:,6459:},6656:{6679:,6680:,6752:,6773:,6774:,6775:,6776:,6777:,6778:,6779:,6780:,6783:,6832:,6833:,6834:,6835:,6836:,6837:,6838:,6839:,6840:,6841:,6842:,6843:,6844:,6845:},6912:{6917:,6918:[],6919:,6920:[],6921:,6922:[],6923:,6924:[],6925:,6926:[],6929:,6930:[],6964:,6970:,6971:[],6972:,6973:[],6974:,6975:,6976:[],6977:[],6978:,6979:[],6980:,7019:,7020:,7021:,7022:,7023:,7024:,7025:,7026:,7027:,7082:,7083:,7142:,7154:,7155:},7168:{7223:,7376:,7377:,7378:,7380:,7381:,7382:,7383:,7384:,7385:,7386:,7387:,7388:,7389:,7390:,7391:,7392:,7394:,7395:,7396:,7397:,7398:,7399:,7400:,7405:,7412:,7416:,7417:},7424:{7468:[,256],7469:[,256],7470:[,256],7472:[,256],7473:[,256],7474:[,256],7475:[,256],7476:[,256],7477:[,256],7478:[,256],7479:[,256],7480:[,256],7481:[,256],7482:[,256],7484:[,256],7485:[,256],7486:[,256],7487:[,256],7488:[,256],7489:[,256],7490:[,256],7491:[,256],7492:[,256],7493:[,256],7494:[,256],7495:[,256],7496:[,256],7497:[,256],7498:[,256],7499:[,256],7500:[,256],7501:[,256],7503:[,256],7504:[,256],7505:[,256],7506:[,256],7507:[,256],7508:[,256],7509:[,256],7510:[,256],7511:[,256],7512:[,256],7513:[,256],7514:[,256],7515:[,256],7516:[,256],7517:[,256],7518:[,256],7519:[,256],7520:[,256],7521:[,256],7522:[,256],7523:[,256],7524:[,256],7525:[,256],7526:[,256],7527:[,256],7528:[,256],7529:[,256],7530:[,256],7544:[,256],7579:[,256],7580:[,256],7581:[,256],7582:[,256],7583:[,256],7584:[,256],7585:[,256],7586:[,256],7587:[,256],7588:[,256],7589:[,256],7590:[,256],7591:[,256],7592:[,256],7593:[,256],7594:[,256],7595:[,256],7596:[,256],7597:[,256],7598:[,256],7599:[,256],7600:[,256],7601:[,256],7602:[,256],7603:[,256],7604:[,256],7605:[,256],7606:[,256],7607:[,256],7608:[,256],7609:[,256],7610:[,256],7611:[,256],7612:[,256],7613:[,256],7614:[,256],7615:[,256],7616:,7617:,7618:,7619:,7620:,7621:,7622:,7623:,7624:,7625:,7626:,7627:,7628:,7629:,7630:,7631:,7632:,7633:,7634:,7635:,7636:,7637:,7638:,7639:,7640:,7641:,7642:,7643:,7644:,7645:,7646:,7647:,7648:,7649:,7650:,7651:,7652:,7653:,7654:,7655:,7656:,7657:,7658:,7659:,7660:,7661:,7662:,7663:,7664:,7665:,7666:,7667:,7668:,7669:,7676:,7677:,7678:,7679:},7680:{7680:[],7681:[],7682:[],7683:[],7684:[],7685:[],7686:[],7687:[],7688:[],7689:[],7690:[],7691:[],7692:[],7693:[],7694:[],7695:[],7696:[],7697:[],7698:[],7699:[],7700:[],7701:[],7702:[],7703:[],7704:[],7705:[],7706:[],7707:[],7708:[],7709:[],7710:[],7711:[],7712:[],7713:[],7714:[],7715:[],7716:[],7717:[],7718:[],7719:[],7720:[],7721:[],7722:[],7723:[],7724:[],7725:[],7726:[],7727:[],7728:[],7729:[],7730:[],7731:[],7732:[],7733:[],7734:[,,{772:7736}],7735:[,,{772:7737}],7736:[],7737:[],7738:[],7739:[],7740:[],7741:[],7742:[],7743:[],7744:[],7745:[],7746:[],7747:[],7748:[],7749:[],7750:[],7751:[],7752:[],7753:[],7754:[],7755:[],7756:[],7757:[],7758:[],7759:[],7760:[],7761:[],7762:[],7763:[],7764:[],7765:[],7766:[],7767:[],7768:[],7769:[],7770:[,,{772:7772}],7771:[,,{772:7773}],7772:[],7773:[],7774:[],7775:[],7776:[],7777:[],7778:[,,{775:7784}],7779:[,,{775:7785}],7780:[],7781:[],7782:[],7783:[],7784:[],7785:[],7786:[],7787:[],7788:[],7789:[],7790:[],7791:[],7792:[],7793:[],7794:[],7795:[],7796:[],7797:[],7798:[],7799:[],7800:[],7801:[],7802:[],7803:[],7804:[],7805:[],7806:[],7807:[],7808:[],7809:[],7810:[],7811:[],7812:[],7813:[],7814:[],7815:[],7816:[],7817:[],7818:[],7819:[],7820:[],7821:[],7822:[],7823:[],7824:[],7825:[],7826:[],7827:[],7828:[],7829:[],7830:[],7831:[],7832:[],7833:[],7834:[,256],7835:[],7840:[,,{770:7852,774:7862}],7841:[,,{770:7853,774:7863}],7842:[],7843:[],7844:[],7845:[],7846:[],7847:[],7848:[],7849:[],7850:[],7851:[],7852:[],7853:[],7854:[],7855:[],7856:[],7857:[],7858:[],7859:[],7860:[],7861:[],7862:[],7863:[],7864:[,,{770:7878}],7865:[,,{770:7879}],7866:[],7867:[],7868:[],7869:[],7870:[],7871:[],7872:[],7873:[],7874:[],7875:[],7876:[],7877:[],7878:[],7879:[],7880:[],7881:[],7882:[],7883:[],7884:[,,{770:7896}],7885:[,,{770:7897}],7886:[],7887:[],7888:[],7889:[],7890:[],7891:[],7892:[],7893:[],7894:[],7895:[],7896:[],7897:[],7898:[],7899:[],7900:[],7901:[],7902:[],7903:[],7904:[],7905:[],7906:[],7907:[],7908:[],7909:[],7910:[],7911:[],7912:[],7913:[],7914:[],7915:[],7916:[],7917:[],7918:[],7919:[],7920:[],7921:[],7922:[],7923:[],7924:[],7925:[],7926:[],7927:[],7928:[],7929:[]},7936:{7936:[,,{768:7938,769:7940,834:7942,837:8064}],7937:[,,{768:7939,769:7941,834:7943,837:8065}],7938:[,,{837:8066}],7939:[,,{837:8067}],7940:[,,{837:8068}],7941:[,,{837:8069}],7942:[,,{837:8070}],7943:[,,{837:8071}],7944:[,,{768:7946,769:7948,834:7950,837:8072}],7945:[,,{768:7947,769:7949,834:7951,837:8073}],7946:[,,{837:8074}],7947:[,,{837:8075}],7948:[,,{837:8076}],7949:[,,{837:8077}],7950:[,,{837:8078}],7951:[,,{837:8079}],7952:[,,{768:7954,769:7956}],7953:[,,{768:7955,769:7957}],7954:[],7955:[],7956:[],7957:[],7960:[,,{768:7962,769:7964}],7961:[,,{768:7963,769:7965}],7962:[],7963:[],7964:[],7965:[],7968:[,,{768:7970,769:7972,834:7974,837:8080}],7969:[,,{768:7971,769:7973,834:7975,837:8081}],7970:[,,{837:8082}],7971:[,,{837:8083}],7972:[,,{837:8084}],7973:[,,{837:8085}],7974:[,,{837:8086}],7975:[,,{837:8087}],7976:[,,{768:7978,769:7980,834:7982,837:8088}],7977:[,,{768:7979,769:7981,834:7983,837:8089}],7978:[,,{837:8090}],7979:[,,{837:8091}],7980:[,,{837:8092}],7981:[,,{837:8093}],7982:[,,{837:8094}],7983:[,,{837:8095}],7984:[,,{768:7986,769:7988,834:7990}],7985:[,,{768:7987,769:7989,834:7991}],7986:[],7987:[],7988:[],7989:[],7990:[],7991:[],7992:[,,{768:7994,769:7996,834:7998}],7993:[,,{768:7995,769:7997,834:7999}],7994:[],7995:[],7996:[],7997:[],7998:[],7999:[],8000:[,,{768:8002,769:8004}],8001:[,,{768:8003,769:8005}],8002:[],8003:[],8004:[],8005:[],8008:[,,{768:8010,769:8012}],8009:[,,{768:8011,769:8013}],8010:[],8011:[],8012:[],8013:[],8016:[,,{768:8018,769:8020,834:8022}],8017:[,,{768:8019,769:8021,834:8023}],8018:[],8019:[],8020:[],8021:[],8022:[],8023:[],8025:[,,{768:8027,769:8029,834:8031}],8027:[],8029:[],8031:[],8032:[,,{768:8034,769:8036,834:8038,837:8096}],8033:[,,{768:8035,769:8037,834:8039,837:8097}],8034:[,,{837:8098}],8035:[,,{837:8099}],8036:[,,{837:8100}],8037:[,,{837:8101}],8038:[,,{837:8102}],8039:[,,{837:8103}],8040:[,,{768:8042,769:8044,834:8046,837:8104}],8041:[,,{768:8043,769:8045,834:8047,837:8105}],8042:[,,{837:8106}],8043:[,,{837:8107}],8044:[,,{837:8108}],8045:[,,{837:8109}],8046:[,,{837:8110}],8047:[,,{837:8111}],8048:[,,{837:8114}],8049:[],8050:[],8051:[],8052:[,,{837:8130}],8053:[],8054:[],8055:[],8056:[],8057:[],8058:[],8059:[],8060:[,,{837:8178}],8061:[],8064:[],8065:[],8066:[],8067:[],8068:[],8069:[],8070:[],8071:[],8072:[],8073:[],8074:[],8075:[],8076:[],8077:[],8078:[],8079:[],8080:[],8081:[],8082:[],8083:[],8084:[],8085:[],8086:[],8087:[],8088:[],8089:[],8090:[],8091:[],8092:[],8093:[],8094:[],8095:[],8096:[],8097:[],8098:[],8099:[],8100:[],8101:[],8102:[],8103:[],8104:[],8105:[],8106:[],8107:[],8108:[],8109:[],8110:[],8111:[],8112:[],8113:[],8114:[],8115:[],8116:[],8118:[,,{837:8119}],8119:[],8120:[],8121:[],8122:[],8123:[],8124:[],8125:[,256],8126:[],8127:[,256,{768:8141,769:8142,834:8143}],8128:[,256],8129:[],8130:[],8131:[],8132:[],8134:[,,{837:8135}],8135:[],8136:[],8137:[],8138:[],8139:[],8140:[],8141:[],8142:[],8143:[],8144:[],8145:[],8146:[],8147:[],8150:[],8151:[],8152:[],8153:[],8154:[],8155:[],8157:[],8158:[],8159:[],8160:[],8161:[],8162:[],8163:[],8164:[],8165:[],8166:[],8167:[],8168:[],8169:[],8170:[],8171:[],8172:[],8173:[],8174:[],8175:[],8178:[],8179:[],8180:[],8182:[,,{837:8183}],8183:[],8184:[],8185:[],8186:[],8187:[],8188:[],8189:[],8190:[,256,{768:8157,769:8158,834:8159}]},8192:{8192:[],8193:[],8194:[,256],8195:[,256],8196:[,256],8197:[,256],8198:[,256],8199:[,256],8200:[,256],8201:[,256],8202:[,256],8209:[,256],8215:[,256],8228:[,256],8229:[,256],8230:[,256],8239:[,256],8243:[,256],8244:[,256],8246:[,256],8247:[,256],8252:[,256],8254:[,256],8263:[,256],8264:[,256],8265:[,256],8279:[,256],8287:[,256],8304:[,256],8305:[,256],8308:[,256],8309:[,256],8310:[,256],8311:[,256],8312:[,256],8313:[,256],8314:[,256],8315:[,256],8316:[,256],8317:[,256],8318:[,256],8319:[,256],8320:[,256],8321:[,256],8322:[,256],8323:[,256],8324:[,256],8325:[,256],8326:[,256],8327:[,256],8328:[,256],8329:[,256],8330:[,256],8331:[,256],8332:[,256],8333:[,256],8334:[,256],8336:[,256],8337:[,256],8338:[,256],8339:[,256],8340:[,256],8341:[,256],8342:[,256],8343:[,256],8344:[,256],8345:[,256],8346:[,256],8347:[,256],8348:[,256],8360:[,256],8400:,8401:,8402:,8403:,8404:,8405:,8406:,8407:,8408:,8409:,8410:,8411:,8412:,8417:,8421:,8422:,8423:,8424:,8425:,8426:,8427:,8428:,8429:,8430:,8431:,8432:},8448:{8448:[,256],8449:[,256],8450:[,256],8451:[,256],8453:[,256],8454:[,256],8455:[,256],8457:[,256],8458:[,256],8459:[,256],8460:[,256],8461:[,256],8462:[,256],8463:[,256],8464:[,256],8465:[,256],8466:[,256],8467:[,256],8469:[,256],8470:[,256],8473:[,256],8474:[,256],8475:[,256],8476:[,256],8477:[,256],8480:[,256],8481:[,256],8482:[,256],8484:[,256],8486:[],8488:[,256],8490:[],8491:[],8492:[,256],8493:[,256],8495:[,256],8496:[,256],8497:[,256],8499:[,256],8500:[,256],8501:[,256],8502:[,256],8503:[,256],8504:[,256],8505:[,256],8507:[,256],8508:[,256],8509:[,256],8510:[,256],8511:[,256],8512:[,256],8517:[,256],8518:[,256],8519:[,256],8520:[,256],8521:[,256],8528:[,256],8529:[,256],8530:[,256],8531:[,256],8532:[,256],8533:[,256],8534:[,256],8535:[,256],8536:[,256],8537:[,256],8538:[,256],8539:[,256],8540:[,256],8541:[,256],8542:[,256],8543:[,256],8544:[,256],8545:[,256],8546:[,256],8547:[,256],8548:[,256],8549:[,256],8550:[,256],8551:[,256],8552:[,256],8553:[,256],8554:[,256],8555:[,256],8556:[,256],8557:[,256],8558:[,256],8559:[,256],8560:[,256],8561:[,256],8562:[,256],8563:[,256],8564:[,256],8565:[,256],8566:[,256],8567:[,256],8568:[,256],8569:[,256],8570:[,256],8571:[,256],8572:[,256],8573:[,256],8574:[,256],8575:[,256],8585:[,256],8592:,8594:,8596:,8602:[],8603:[],8622:[],8653:[],8654:[],8655:[],8656:,8658:,8660:},8704:{8707:,8708:[],8712:,8713:[],8715:,8716:[],8739:,8740:[],8741:,8742:[],8748:[,256],8749:[,256],8751:[,256],8752:[,256],8764:,8769:[],8771:,8772:[],8773:,8775:[],8776:,8777:[],8781:,8800:[],8801:,8802:[],8804:,8805:,8813:[],8814:[],8815:[],8816:[],8817:[],8818:,8819:,8820:[],8821:[],8822:,8823:,8824:[],8825:[],8826:,8827:,8828:,8829:,8832:[],8833:[],8834:,8835:,8836:[],8837:[],8838:,8839:,8840:[],8841:[],8849:,8850:,8866:,8872:,8873:,8875:,8876:[],8877:[],8878:[],8879:[],8882:,8883:,8884:,8885:,8928:[],8929:[],8930:[],8931:[],8938:[],8939:[],8940:[],8941:[]},8960:{9001:[],9002:[]},9216:{9312:[,256],9313:[,256],9314:[,256],9315:[,256],9316:[,256],9317:[,256],9318:[,256],9319:[,256],9320:[,256],9321:[,256],9322:[,256],9323:[,256],9324:[,256],9325:[,256],9326:[,256],9327:[,256],9328:[,256],9329:[,256],9330:[,256],9331:[,256],9332:[,256],9333:[,256],9334:[,256],9335:[,256],9336:[,256],9337:[,256],9338:[,256],9339:[,256],9340:[,256],9341:[,256],9342:[,256],9343:[,256],9344:[,256],9345:[,256],9346:[,256],9347:[,256],9348:[,256],9349:[,256],9350:[,256],9351:[,256],9352:[,256],9353:[,256],9354:[,256],9355:[,256],9356:[,256],9357:[,256],9358:[,256],9359:[,256],9360:[,256],9361:[,256],9362:[,256],9363:[,256],9364:[,256],9365:[,256],9366:[,256],9367:[,256],9368:[,256],9369:[,256],9370:[,256],9371:[,256],9372:[,256],9373:[,256],9374:[,256],9375:[,256],9376:[,256],9377:[,256],9378:[,256],9379:[,256],9380:[,256],9381:[,256],9382:[,256],9383:[,256],9384:[,256],9385:[,256],9386:[,256],9387:[,256],9388:[,256],9389:[,256],9390:[,256],9391:[,256],9392:[,256],9393:[,256],9394:[,256],9395:[,256],9396:[,256],9397:[,256],9398:[,256],9399:[,256],9400:[,256],9401:[,256],9402:[,256],9403:[,256],9404:[,256],9405:[,256],9406:[,256],9407:[,256],9408:[,256],9409:[,256],9410:[,256],9411:[,256],9412:[,256],9413:[,256],9414:[,256],9415:[,256],9416:[,256],9417:[,256],9418:[,256],9419:[,256],9420:[,256],9421:[,256],9422:[,256],9423:[,256],9424:[,256],9425:[,256],9426:[,256],9427:[,256],9428:[,256],9429:[,256],9430:[,256],9431:[,256],9432:[,256],9433:[,256],9434:[,256],9435:[,256],9436:[,256],9437:[,256],9438:[,256],9439:[,256],9440:[,256],9441:[,256],9442:[,256],9443:[,256],9444:[,256],9445:[,256],9446:[,256],9447:[,256],9448:[,256],9449:[,256],9450:[,256]},10752:{10764:[,256],10868:[,256],10869:[,256],10870:[,256],10972:[,512]},11264:{11388:[,256],11389:[,256],11503:,11504:,11505:},11520:{11631:[,256],11647:,11744:,11745:,11746:,11747:,11748:,11749:,11750:,11751:,11752:,11753:,11754:,11755:,11756:,11757:,11758:,11759:,11760:,11761:,11762:,11763:,11764:,11765:,11766:,11767:,11768:,11769:,11770:,11771:,11772:,11773:,11774:,11775:},11776:{11935:[,256],12019:[,256]},12032:{12032:[,256],12033:[,256],12034:[,256],12035:[,256],12036:[,256],12037:[,256],12038:[,256],12039:[,256],12040:[,256],12041:[,256],12042:[,256],12043:[,256],12044:[,256],12045:[,256],12046:[,256],12047:[,256],12048:[,256],12049:[,256],12050:[,256],12051:[,256],12052:[,256],12053:[,256],12054:[,256],12055:[,256],12056:[,256],12057:[,256],12058:[,256],12059:[,256],12060:[,256],12061:[,256],12062:[,256],12063:[,256],12064:[,256],12065:[,256],12066:[,256],12067:[,256],12068:[,256],12069:[,256],12070:[,256],12071:[,256],12072:[,256],12073:[,256],12074:[,256],12075:[,256],12076:[,256],12077:[,256],12078:[,256],12079:[,256],12080:[,256],12081:[,256],12082:[,256],12083:[,256],12084:[,256],12085:[,256],12086:[,256],12087:[,256],12088:[,256],12089:[,256],12090:[,256],12091:[,256],12092:[,256],12093:[,256],12094:[,256],12095:[,256],12096:[,256],12097:[,256],12098:[,256],12099:[,256],12100:[,256],12101:[,256],12102:[,256],12103:[,256],12104:[,256],12105:[,256],12106:[,256],12107:[,256],12108:[,256],12109:[,256],12110:[,256],12111:[,256],12112:[,256],12113:[,256],12114:[,256],12115:[,256],12116:[,256],12117:[,256],12118:[,256],12119:[,256],12120:[,256],12121:[,256],12122:[,256],12123:[,256],12124:[,256],12125:[,256],12126:[,256],12127:[,256],12128:[,256],12129:[,256],12130:[,256],12131:[,256],12132:[,256],12133:[,256],12134:[,256],12135:[,256],12136:[,256],12137:[,256],12138:[,256],12139:[,256],12140:[,256],12141:[,256],12142:[,256],12143:[,256],12144:[,256],12145:[,256],12146:[,256],12147:[,256],12148:[,256],12149:[,256],12150:[,256],12151:[,256],12152:[,256],12153:[,256],12154:[,256],12155:[,256],12156:[,256],12157:[,256],12158:[,256],12159:[,256],12160:[,256],12161:[,256],12162:[,256],12163:[,256],12164:[,256],12165:[,256],12166:[,256],12167:[,256],12168:[,256],12169:[,256],12170:[,256],12171:[,256],12172:[,256],12173:[,256],12174:[,256],12175:[,256],12176:[,256],12177:[,256],12178:[,256],12179:[,256],12180:[,256],12181:[,256],12182:[,256],12183:[,256],12184:[,256],12185:[,256],12186:[,256],12187:[,256],12188:[,256],12189:[,256],12190:[,256],12191:[,256],12192:[,256],12193:[,256],12194:[,256],12195:[,256],12196:[,256],12197:[,256],12198:[,256],12199:[,256],12200:[,256],12201:[,256],12202:[,256],12203:[,256],12204:[,256],12205:[,256],12206:[,256],12207:[,256],12208:[,256],12209:[,256],12210:[,256],12211:[,256],12212:[,256],12213:[,256],12214:[,256],12215:[,256],12216:[,256],12217:[,256],12218:[,256],12219:[,256],12220:[,256],12221:[,256],12222:[,256],12223:[,256],12224:[,256],12225:[,256],12226:[,256],12227:[,256],12228:[,256],12229:[,256],12230:[,256],12231:[,256],12232:[,256],12233:[,256],12234:[,256],12235:[,256],12236:[,256],12237:[,256],12238:[,256],12239:[,256],12240:[,256],12241:[,256],12242:[,256],12243:[,256],12244:[,256],12245:[,256]},12288:{12288:[,256],12330:,12331:,12332:,12333:,12334:,12335:,12342:[,256],12344:[,256],12345:[,256],12346:[,256],12358:,12363:,12364:[],12365:,12366:[],12367:,12368:[],12369:,12370:[],12371:,12372:[],12373:,12374:[],12375:,12376:[],12377:,12378:[],12379:,12380:[],12381:,12382:[],12383:,12384:[],12385:,12386:[],12388:,12389:[],12390:,12391:[],12392:,12393:[],12399:,12400:[],12401:[],12402:,12403:[],12404:[],12405:,12406:[],12407:[],12408:,12409:[],12410:[],12411:,12412:[],12413:[],12436:[],12441:,12442:,12443:[,256],12444:[,256],12445:,12446:[],12447:[,256],12454:,12459:,12460:[],12461:,12462:[],12463:,12464:[],12465:,12466:[],12467:,12468:[],12469:,12470:[],12471:,12472:[],12473:,12474:[],12475:,12476:[],12477:,12478:[],12479:,12480:[],12481:,12482:[],12484:,12485:[],12486:,12487:[],12488:,12489:[],12495:,12496:[],12497:[],12498:,12499:[],12500:[],12501:,12502:[],12503:[],12504:,12505:[],12506:[],12507:,12508:[],12509:[],12527:,12528:,12529:,12530:,12532:[],12535:[],12536:[],12537:[],12538:[],12541:,12542:[],12543:[,256]},12544:{12593:[,256],12594:[,256],12595:[,256],12596:[,256],12597:[,256],12598:[,256],12599:[,256],12600:[,256],12601:[,256],12602:[,256],12603:[,256],12604:[,256],12605:[,256],12606:[,256],12607:[,256],12608:[,256],12609:[,256],12610:[,256],12611:[,256],12612:[,256],12613:[,256],12614:[,256],12615:[,256],12616:[,256],12617:[,256],12618:[,256],12619:[,256],12620:[,256],12621:[,256],12622:[,256],12623:[,256],12624:[,256],12625:[,256],12626:[,256],12627:[,256],12628:[,256],12629:[,256],12630:[,256],12631:[,256],12632:[,256],12633:[,256],12634:[,256],12635:[,256],12636:[,256],12637:[,256],12638:[,256],12639:[,256],12640:[,256],12641:[,256],12642:[,256],12643:[,256],12644:[,256],12645:[,256],12646:[,256],12647:[,256],12648:[,256],12649:[,256],12650:[,256],12651:[,256],12652:[,256],12653:[,256],12654:[,256],12655:[,256],12656:[,256],12657:[,256],12658:[,256],12659:[,256],12660:[,256],12661:[,256],12662:[,256],12663:[,256],12664:[,256],12665:[,256],12666:[,256],12667:[,256],12668:[,256],12669:[,256],12670:[,256],12671:[,256],12672:[,256],12673:[,256],12674:[,256],12675:[,256],12676:[,256],12677:[,256],12678:[,256],12679:[,256],12680:[,256],12681:[,256],12682:[,256],12683:[,256],12684:[,256],12685:[,256],12686:[,256],12690:[,256],12691:[,256],12692:[,256],12693:[,256],12694:[,256],12695:[,256],12696:[,256],12697:[,256],12698:[,256],12699:[,256],12700:[,256],12701:[,256],12702:[,256],12703:[,256]},12800:{12800:[,256],12801:[,256],12802:[,256],12803:[,256],12804:[,256],12805:[,256],12806:[,256],12807:[,256],12808:[,256],12809:[,256],12810:[,256],12811:[,256],12812:[,256],12813:[,256],12814:[,256],12815:[,256],12816:[,256],12817:[,256],12818:[,256],12819:[,256],12820:[,256],12821:[,256],12822:[,256],12823:[,256],12824:[,256],12825:[,256],12826:[,256],12827:[,256],12828:[,256],12829:[,256],12830:[,256],12832:[,256],12833:[,256],12834:[,256],12835:[,256],12836:[,256],12837:[,256],12838:[,256],12839:[,256],12840:[,256],12841:[,256],12842:[,256],12843:[,256],12844:[,256],12845:[,256],12846:[,256],12847:[,256],12848:[,256],12849:[,256],12850:[,256],12851:[,256],12852:[,256],12853:[,256],12854:[,256],12855:[,256],12856:[,256],12857:[,256],12858:[,256],12859:[,256],12860:[,256],12861:[,256],12862:[,256],12863:[,256],12864:[,256],12865:[,256],12866:[,256],12867:[,256],12868:[,256],12869:[,256],12870:[,256],12871:[,256],12880:[,256],12881:[,256],12882:[,256],12883:[,256],12884:[,256],12885:[,256],12886:[,256],12887:[,256],12888:[,256],12889:[,256],12890:[,256],12891:[,256],12892:[,256],12893:[,256],12894:[,256],12895:[,256],12896:[,256],12897:[,256],12898:[,256],12899:[,256],12900:[,256],12901:[,256],12902:[,256],12903:[,256],12904:[,256],12905:[,256],12906:[,256],12907:[,256],12908:[,256],12909:[,256],12910:[,256],12911:[,256],12912:[,256],12913:[,256],12914:[,256],12915:[,256],12916:[,256],12917:[,256],12918:[,256],12919:[,256],12920:[,256],12921:[,256],12922:[,256],12923:[,256],12924:[,256],12925:[,256],12926:[,256],12928:[,256],12929:[,256],12930:[,256],12931:[,256],12932:[,256],12933:[,256],12934:[,256],12935:[,256],12936:[,256],12937:[,256],12938:[,256],12939:[,256],12940:[,256],12941:[,256],12942:[,256],12943:[,256],12944:[,256],12945:[,256],12946:[,256],12947:[,256],12948:[,256],12949:[,256],12950:[,256],12951:[,256],12952:[,256],12953:[,256],12954:[,256],12955:[,256],12956:[,256],12957:[,256],12958:[,256],12959:[,256],12960:[,256],12961:[,256],12962:[,256],12963:[,256],12964:[,256],12965:[,256],12966:[,256],12967:[,256],12968:[,256],12969:[,256],12970:[,256],12971:[,256],12972:[,256],12973:[,256],12974:[,256],12975:[,256],12976:[,256],12977:[,256],12978:[,256],12979:[,256],12980:[,256],12981:[,256],12982:[,256],12983:[,256],12984:[,256],12985:[,256],12986:[,256],12987:[,256],12988:[,256],12989:[,256],12990:[,256],12991:[,256],12992:[,256],12993:[,256],12994:[,256],12995:[,256],12996:[,256],12997:[,256],12998:[,256],12999:[,256],13000:[,256],13001:[,256],13002:[,256],13003:[,256],13004:[,256],13005:[,256],13006:[,256],13007:[,256],13008:[,256],13009:[,256],13010:[,256],13011:[,256],13012:[,256],13013:[,256],13014:[,256],13015:[,256],13016:[,256],13017:[,256],13018:[,256],13019:[,256],13020:[,256],13021:[,256],13022:[,256],13023:[,256],13024:[,256],13025:[,256],13026:[,256],13027:[,256],13028:[,256],13029:[,256],13030:[,256],13031:[,256],13032:[,256],13033:[,256],13034:[,256],13035:[,256],13036:[,256],13037:[,256],13038:[,256],13039:[,256],13040:[,256],13041:[,256],13042:[,256],13043:[,256],13044:[,256],13045:[,256],13046:[,256],13047:[,256],13048:[,256],13049:[,256],13050:[,256],13051:[,256],13052:[,256],13053:[,256],13054:[,256]},13056:{13056:[,256],13057:[,256],13058:[,256],13059:[,256],13060:[,256],13061:[,256],13062:[,256],13063:[,256],13064:[,256],13065:[,256],13066:[,256],13067:[,256],13068:[,256],13069:[,256],13070:[,256],13071:[,256],13072:[,256],13073:[,256],13074:[,256],13075:[,256],13076:[,256],13077:[,256],13078:[,256],13079:[,256],13080:[,256],13081:[,256],13082:[,256],13083:[,256],13084:[,256],13085:[,256],13086:[,256],13087:[,256],13088:[,256],13089:[,256],13090:[,256],13091:[,256],13092:[,256],13093:[,256],13094:[,256],13095:[,256],13096:[,256],13097:[,256],13098:[,256],13099:[,256],13100:[,256],13101:[,256],13102:[,256],13103:[,256],13104:[,256],13105:[,256],13106:[,256],13107:[,256],13108:[,256],13109:[,256],13110:[,256],13111:[,256],13112:[,256],13113:[,256],13114:[,256],13115:[,256],13116:[,256],13117:[,256],13118:[,256],13119:[,256],13120:[,256],13121:[,256],13122:[,256],13123:[,256],13124:[,256],13125:[,256],13126:[,256],13127:[,256],13128:[,256],13129:[,256],13130:[,256],13131:[,256],13132:[,256],13133:[,256],13134:[,256],13135:[,256],13136:[,256],13137:[,256],13138:[,256],13139:[,256],13140:[,256],13141:[,256],13142:[,256],13143:[,256],13144:[,256],13145:[,256],13146:[,256],13147:[,256],13148:[,256],13149:[,256],13150:[,256],13151:[,256],13152:[,256],13153:[,256],13154:[,256],13155:[,256],13156:[,256],13157:[,256],13158:[,256],13159:[,256],13160:[,256],13161:[,256],13162:[,256],13163:[,256],13164:[,256],13165:[,256],13166:[,256],13167:[,256],13168:[,256],13169:[,256],13170:[,256],13171:[,256],13172:[,256],13173:[,256],13174:[,256],13175:[,256],13176:[,256],13177:[,256],13178:[,256],13179:[,256],13180:[,256],13181:[,256],13182:[,256],13183:[,256],13184:[,256],13185:[,256],13186:[,256],13187:[,256],13188:[,256],13189:[,256],13190:[,256],13191:[,256],13192:[,256],13193:[,256],13194:[,256],13195:[,256],13196:[,256],13197:[,256],13198:[,256],13199:[,256],13200:[,256],13201:[,256],13202:[,256],13203:[,256],13204:[,256],13205:[,256],13206:[,256],13207:[,256],13208:[,256],13209:[,256],13210:[,256],13211:[,256],13212:[,256],13213:[,256],13214:[,256],13215:[,256],13216:[,256],13217:[,256],13218:[,256],13219:[,256],13220:[,256],13221:[,256],13222:[,256],13223:[,256],13224:[,256],13225:[,256],13226:[,256],13227:[,256],13228:[,256],13229:[,256],13230:[,256],13231:[,256],13232:[,256],13233:[,256],13234:[,256],13235:[,256],13236:[,256],13237:[,256],13238:[,256],13239:[,256],13240:[,256],13241:[,256],13242:[,256],13243:[,256],13244:[,256],13245:[,256],13246:[,256],13247:[,256],13248:[,256],13249:[,256],13250:[,256],13251:[,256],13252:[,256],13253:[,256],13254:[,256],13255:[,256],13256:[,256],13257:[,256],13258:[,256],13259:[,256],13260:[,256],13261:[,256],13262:[,256],13263:[,256],13264:[,256],13265:[,256],13266:[,256],13267:[,256],13268:[,256],13269:[,256],13270:[,256],13271:[,256],13272:[,256],13273:[,256],13274:[,256],13275:[,256],13276:[,256],13277:[,256],13278:[,256],13279:[,256],13280:[,256],13281:[,256],13282:[,256],13283:[,256],13284:[,256],13285:[,256],13286:[,256],13287:[,256],13288:[,256],13289:[,256],13290:[,256],13291:[,256],13292:[,256],13293:[,256],13294:[,256],13295:[,256],13296:[,256],13297:[,256],13298:[,256],13299:[,256],13300:[,256],13301:[,256],13302:[,256],13303:[,256],13304:[,256],13305:[,256],13306:[,256],13307:[,256],13308:[,256],13309:[,256],13310:[,256],13311:[,256]},27136:{92912:,92913:,92914:,92915:,92916:},27392:{92976:,92977:,92978:,92979:,92980:,92981:,92982:},42496:{42607:,42612:,42613:,42614:,42615:,42616:,42617:,42618:,42619:,42620:,42621:,42652:[,256],42653:[,256],42655:,42736:,42737:},42752:{42864:[,256],43000:[,256],43001:[,256]},43008:{43014:,43204:,43232:,43233:,43234:,43235:,43236:,43237:,43238:,43239:,43240:,43241:,43242:,43243:,43244:,43245:,43246:,43247:,43248:,43249:},43264:{43307:,43308:,43309:,43347:,43443:,43456:},43520:{43696:,43698:,43699:,43700:,43703:,43704:,43710:,43711:,43713:,43766:},43776:{43868:[,256],43869:[,256],43870:[,256],43871:[,256],44013:},48128:{113822:},53504:{119134:[,512],119135:[,512],119136:[,512],119137:[,512],119138:[,512],119139:[,512],119140:[,512],119141:,119142:,119143:,119144:,119145:,119149:,119150:,119151:,119152:,119153:,119154:,119163:,119164:,119165:,119166:,119167:,119168:,119169:,119170:,119173:,119174:,119175:,119176:,119177:,119178:,119179:,119210:,119211:,119212:,119213:,119227:[,512],119228:[,512],119229:[,512],119230:[,512],119231:[,512],119232:[,512]},53760:{119362:,119363:,119364:},54272:{119808:[,256],119809:[,256],119810:[,256],119811:[,256],119812:[,256],119813:[,256],119814:[,256],119815:[,256],119816:[,256],119817:[,256],119818:[,256],119819:[,256],119820:[,256],119821:[,256],119822:[,256],119823:[,256],119824:[,256],119825:[,256],119826:[,256],119827:[,256],119828:[,256],119829:[,256],119830:[,256],119831:[,256],119832:[,256],119833:[,256],119834:[,256],119835:[,256],119836:[,256],119837:[,256],119838:[,256],119839:[,256],119840:[,256],119841:[,256],119842:[,256],119843:[,256],119844:[,256],119845:[,256],119846:[,256],119847:[,256],119848:[,256],119849:[,256],119850:[,256],119851:[,256],119852:[,256],119853:[,256],119854:[,256],119855:[,256],119856:[,256],119857:[,256],119858:[,256],119859:[,256],119860:[,256],119861:[,256],119862:[,256],119863:[,256],119864:[,256],119865:[,256],119866:[,256],119867:[,256],119868:[,256],119869:[,256],119870:[,256],119871:[,256],119872:[,256],119873:[,256],119874:[,256],119875:[,256],119876:[,256],119877:[,256],119878:[,256],119879:[,256],119880:[,256],119881:[,256],119882:[,256],119883:[,256],119884:[,256],119885:[,256],119886:[,256],119887:[,256],119888:[,256],119889:[,256],119890:[,256],119891:[,256],119892:[,256],119894:[,256],119895:[,256],119896:[,256],119897:[,256],119898:[,256],119899:[,256],119900:[,256],119901:[,256],119902:[,256],119903:[,256],119904:[,256],119905:[,256],119906:[,256],119907:[,256],119908:[,256],119909:[,256],119910:[,256],119911:[,256],119912:[,256],119913:[,256],119914:[,256],119915:[,256],119916:[,256],119917:[,256],119918:[,256],119919:[,256],119920:[,256],119921:[,256],119922:[,256],119923:[,256],119924:[,256],119925:[,256],119926:[,256],119927:[,256],119928:[,256],119929:[,256],119930:[,256],119931:[,256],119932:[,256],119933:[,256],119934:[,256],119935:[,256],119936:[,256],119937:[,256],119938:[,256],119939:[,256],119940:[,256],119941:[,256],119942:[,256],119943:[,256],119944:[,256],119945:[,256],119946:[,256],119947:[,256],119948:[,256],119949:[,256],119950:[,256],119951:[,256],119952:[,256],119953:[,256],119954:[,256],119955:[,256],119956:[,256],119957:[,256],119958:[,256],119959:[,256],119960:[,256],119961:[,256],119962:[,256],119963:[,256],119964:[,256],119966:[,256],119967:[,256],119970:[,256],119973:[,256],119974:[,256],119977:[,256],119978:[,256],119979:[,256],119980:[,256],119982:[,256],119983:[,256],119984:[,256],119985:[,256],119986:[,256],119987:[,256],119988:[,256],119989:[,256],119990:[,256],119991:[,256],119992:[,256],119993:[,256],119995:[,256],119997:[,256],119998:[,256],119999:[,256],120000:[,256],120001:[,256],120002:[,256],120003:[,256],120005:[,256],120006:[,256],120007:[,256],120008:[,256],120009:[,256],120010:[,256],120011:[,256],120012:[,256],120013:[,256],120014:[,256],120015:[,256],120016:[,256],120017:[,256],120018:[,256],120019:[,256],120020:[,256],120021:[,256],120022:[,256],120023:[,256],120024:[,256],120025:[,256],120026:[,256],120027:[,256],120028:[,256],120029:[,256],120030:[,256],120031:[,256],120032:[,256],120033:[,256],120034:[,256],120035:[,256],120036:[,256],120037:[,256],120038:[,256],120039:[,256],120040:[,256],120041:[,256],120042:[,256],120043:[,256],120044:[,256],120045:[,256],120046:[,256],120047:[,256],120048:[,256],120049:[,256],120050:[,256],120051:[,256],120052:[,256],120053:[,256],120054:[,256],120055:[,256],120056:[,256],120057:[,256],120058:[,256],120059:[,256],120060:[,256],120061:[,256],120062:[,256],120063:[,256]},54528:{120064:[,256],120065:[,256],120066:[,256],120067:[,256],120068:[,256],120069:[,256],120071:[,256],120072:[,256],120073:[,256],120074:[,256],120077:[,256],120078:[,256],120079:[,256],120080:[,256],120081:[,256],120082:[,256],120083:[,256],120084:[,256],120086:[,256],120087:[,256],120088:[,256],120089:[,256],120090:[,256],120091:[,256],120092:[,256],120094:[,256],120095:[,256],120096:[,256],120097:[,256],120098:[,256],120099:[,256],120100:[,256],120101:[,256],120102:[,256],120103:[,256],120104:[,256],120105:[,256],120106:[,256],120107:[,256],120108:[,256],120109:[,256],120110:[,256],120111:[,256],120112:[,256],120113:[,256],120114:[,256],120115:[,256],120116:[,256],120117:[,256],120118:[,256],120119:[,256],120120:[,256],120121:[,256],120123:[,256],120124:[,256],120125:[,256],120126:[,256],120128:[,256],120129:[,256],120130:[,256],120131:[,256],120132:[,256],120134:[,256],120138:[,256],120139:[,256],120140:[,256],120141:[,256],120142:[,256],120143:[,256],120144:[,256],120146:[,256],120147:[,256],120148:[,256],120149:[,256],120150:[,256],120151:[,256],120152:[,256],120153:[,256],120154:[,256],120155:[,256],120156:[,256],120157:[,256],120158:[,256],120159:[,256],120160:[,256],120161:[,256],120162:[,256],120163:[,256],120164:[,256],120165:[,256],120166:[,256],120167:[,256],120168:[,256],120169:[,256],120170:[,256],120171:[,256],120172:[,256],120173:[,256],120174:[,256],120175:[,256],120176:[,256],120177:[,256],120178:[,256],120179:[,256],120180:[,256],120181:[,256],120182:[,256],120183:[,256],120184:[,256],120185:[,256],120186:[,256],120187:[,256],120188:[,256],120189:[,256],120190:[,256],120191:[,256],120192:[,256],120193:[,256],120194:[,256],120195:[,256],120196:[,256],120197:[,256],120198:[,256],120199:[,256],120200:[,256],120201:[,256],120202:[,256],120203:[,256],120204:[,256],120205:[,256],120206:[,256],120207:[,256],120208:[,256],120209:[,256],120210:[,256],120211:[,256],120212:[,256],120213:[,256],120214:[,256],120215:[,256],120216:[,256],120217:[,256],120218:[,256],120219:[,256],120220:[,256],120221:[,256],120222:[,256],120223:[,256],120224:[,256],120225:[,256],120226:[,256],120227:[,256],120228:[,256],120229:[,256],120230:[,256],120231:[,256],120232:[,256],120233:[,256],120234:[,256],120235:[,256],120236:[,256],120237:[,256],120238:[,256],120239:[,256],120240:[,256],120241:[,256],120242:[,256],120243:[,256],120244:[,256],120245:[,256],120246:[,256],120247:[,256],120248:[,256],120249:[,256],120250:[,256],120251:[,256],120252:[,256],120253:[,256],120254:[,256],120255:[,256],120256:[,256],120257:[,256],120258:[,256],120259:[,256],120260:[,256],120261:[,256],120262:[,256],120263:[,256],120264:[,256],120265:[,256],120266:[,256],120267:[,256],120268:[,256],120269:[,256],120270:[,256],120271:[,256],120272:[,256],120273:[,256],120274:[,256],120275:[,256],120276:[,256],120277:[,256],120278:[,256],120279:[,256],120280:[,256],120281:[,256],120282:[,256],120283:[,256],120284:[,256],120285:[,256],120286:[,256],120287:[,256],120288:[,256],120289:[,256],120290:[,256],120291:[,256],120292:[,256],120293:[,256],120294:[,256],120295:[,256],120296:[,256],120297:[,256],120298:[,256],120299:[,256],120300:[,256],120301:[,256],120302:[,256],120303:[,256],120304:[,256],120305:[,256],120306:[,256],120307:[,256],120308:[,256],120309:[,256],120310:[,256],120311:[,256],120312:[,256],120313:[,256],120314:[,256],120315:[,256],120316:[,256],120317:[,256],120318:[,256],120319:[,256]},54784:{120320:[,256],120321:[,256],120322:[,256],120323:[,256],120324:[,256],120325:[,256],120326:[,256],120327:[,256],120328:[,256],120329:[,256],120330:[,256],120331:[,256],120332:[,256],120333:[,256],120334:[,256],120335:[,256],120336:[,256],120337:[,256],120338:[,256],120339:[,256],120340:[,256],120341:[,256],120342:[,256],120343:[,256],120344:[,256],120345:[,256],120346:[,256],120347:[,256],120348:[,256],120349:[,256],120350:[,256],120351:[,256],120352:[,256],120353:[,256],120354:[,256],120355:[,256],120356:[,256],120357:[,256],120358:[,256],120359:[,256],120360:[,256],120361:[,256],120362:[,256],120363:[,256],120364:[,256],120365:[,256],120366:[,256],120367:[,256],120368:[,256],120369:[,256],120370:[,256],120371:[,256],120372:[,256],120373:[,256],120374:[,256],120375:[,256],120376:[,256],120377:[,256],120378:[,256],120379:[,256],120380:[,256],120381:[,256],120382:[,256],120383:[,256],120384:[,256],120385:[,256],120386:[,256],120387:[,256],120388:[,256],120389:[,256],120390:[,256],120391:[,256],120392:[,256],120393:[,256],120394:[,256],120395:[,256],120396:[,256],120397:[,256],120398:[,256],120399:[,256],120400:[,256],120401:[,256],120402:[,256],120403:[,256],120404:[,256],120405:[,256],120406:[,256],120407:[,256],120408:[,256],120409:[,256],120410:[,256],120411:[,256],120412:[,256],120413:[,256],120414:[,256],120415:[,256],120416:[,256],120417:[,256],120418:[,256],120419:[,256],120420:[,256],120421:[,256],120422:[,256],120423:[,256],120424:[,256],120425:[,256],120426:[,256],120427:[,256],120428:[,256],120429:[,256],120430:[,256],120431:[,256],120432:[,256],120433:[,256],120434:[,256],120435:[,256],120436:[,256],120437:[,256],120438:[,256],120439:[,256],120440:[,256],120441:[,256],120442:[,256],120443:[,256],120444:[,256],120445:[,256],120446:[,256],120447:[,256],120448:[,256],120449:[,256],120450:[,256],120451:[,256],120452:[,256],120453:[,256],120454:[,256],120455:[,256],120456:[,256],120457:[,256],120458:[,256],120459:[,256],120460:[,256],120461:[,256],120462:[,256],120463:[,256],120464:[,256],120465:[,256],120466:[,256],120467:[,256],120468:[,256],120469:[,256],120470:[,256],120471:[,256],120472:[,256],120473:[,256],120474:[,256],120475:[,256],120476:[,256],120477:[,256],120478:[,256],120479:[,256],120480:[,256],120481:[,256],120482:[,256],120483:[,256],120484:[,256],120485:[,256],120488:[,256],120489:[,256],120490:[,256],120491:[,256],120492:[,256],120493:[,256],120494:[,256],120495:[,256],120496:[,256],120497:[,256],120498:[,256],120499:[,256],120500:[,256],120501:[,256],120502:[,256],120503:[,256],120504:[,256],120505:[,256],120506:[,256],120507:[,256],120508:[,256],120509:[,256],120510:[,256],120511:[,256],120512:[,256],120513:[,256],120514:[,256],120515:[,256],120516:[,256],120517:[,256],120518:[,256],120519:[,256],120520:[,256],120521:[,256],120522:[,256],120523:[,256],120524:[,256],120525:[,256],120526:[,256],120527:[,256],120528:[,256],120529:[,256],120530:[,256],120531:[,256],120532:[,256],120533:[,256],120534:[,256],120535:[,256],120536:[,256],120537:[,256],120538:[,256],120539:[,256],120540:[,256],120541:[,256],120542:[,256],120543:[,256],120544:[,256],120545:[,256],120546:[,256],120547:[,256],120548:[,256],120549:[,256],120550:[,256],120551:[,256],120552:[,256],120553:[,256],120554:[,256],120555:[,256],120556:[,256],120557:[,256],120558:[,256],120559:[,256],120560:[,256],120561:[,256],120562:[,256],120563:[,256],120564:[,256],120565:[,256],120566:[,256],120567:[,256],120568:[,256],120569:[,256],120570:[,256],120571:[,256],120572:[,256],120573:[,256],120574:[,256],120575:[,256]},55040:{120576:[,256],120577:[,256],120578:[,256],120579:[,256],120580:[,256],120581:[,256],120582:[,256],120583:[,256],120584:[,256],120585:[,256],120586:[,256],120587:[,256],120588:[,256],120589:[,256],120590:[,256],120591:[,256],120592:[,256],120593:[,256],120594:[,256],120595:[,256],120596:[,256],120597:[,256],120598:[,256],120599:[,256],120600:[,256],120601:[,256],120602:[,256],120603:[,256],120604:[,256],120605:[,256],120606:[,256],120607:[,256],120608:[,256],120609:[,256],120610:[,256],120611:[,256],120612:[,256],120613:[,256],120614:[,256],120615:[,256],120616:[,256],120617:[,256],120618:[,256],120619:[,256],120620:[,256],120621:[,256],120622:[,256],120623:[,256],120624:[,256],120625:[,256],120626:[,256],120627:[,256],120628:[,256],120629:[,256],120630:[,256],120631:[,256],120632:[,256],120633:[,256],120634:[,256],120635:[,256],120636:[,256],120637:[,256],120638:[,256],120639:[,256],120640:[,256],120641:[,256],120642:[,256],120643:[,256],120644:[,256],120645:[,256],120646:[,256],120647:[,256],120648:[,256],120649:[,256],120650:[,256],120651:[,256],120652:[,256],120653:[,256],120654:[,256],120655:[,256],120656:[,256],120657:[,256],120658:[,256],120659:[,256],120660:[,256],120661:[,256],120662:[,256],120663:[,256],120664:[,256],120665:[,256],120666:[,256],120667:[,256],120668:[,256],120669:[,256],120670:[,256],120671:[,256],120672:[,256],120673:[,256],120674:[,256],120675:[,256],120676:[,256],120677:[,256],120678:[,256],120679:[,256],120680:[,256],120681:[,256],120682:[,256],120683:[,256],120684:[,256],120685:[,256],120686:[,256],120687:[,256],120688:[,256],120689:[,256],120690:[,256],120691:[,256],120692:[,256],120693:[,256],120694:[,256],120695:[,256],120696:[,256],120697:[,256],120698:[,256],120699:[,256],120700:[,256],120701:[,256],120702:[,256],120703:[,256],120704:[,256],120705:[,256],120706:[,256],120707:[,256],120708:[,256],120709:[,256],120710:[,256],120711:[,256],120712:[,256],120713:[,256],120714:[,256],120715:[,256],120716:[,256],120717:[,256],120718:[,256],120719:[,256],120720:[,256],120721:[,256],120722:[,256],120723:[,256],120724:[,256],120725:[,256],120726:[,256],120727:[,256],120728:[,256],120729:[,256],120730:[,256],120731:[,256],120732:[,256],120733:[,256],120734:[,256],120735:[,256],120736:[,256],120737:[,256],120738:[,256],120739:[,256],120740:[,256],120741:[,256],120742:[,256],120743:[,256],120744:[,256],120745:[,256],120746:[,256],120747:[,256],120748:[,256],120749:[,256],120750:[,256],120751:[,256],120752:[,256],120753:[,256],120754:[,256],120755:[,256],120756:[,256],120757:[,256],120758:[,256],120759:[,256],120760:[,256],120761:[,256],120762:[,256],120763:[,256],120764:[,256],120765:[,256],120766:[,256],120767:[,256],120768:[,256],120769:[,256],120770:[,256],120771:[,256],120772:[,256],120773:[,256],120774:[,256],120775:[,256],120776:[,256],120777:[,256],120778:[,256],120779:[,256],120782:[,256],120783:[,256],120784:[,256],120785:[,256],120786:[,256],120787:[,256],120788:[,256],120789:[,256],120790:[,256],120791:[,256],120792:[,256],120793:[,256],120794:[,256],120795:[,256],120796:[,256],120797:[,256],120798:[,256],120799:[,256],120800:[,256],120801:[,256],120802:[,256],120803:[,256],120804:[,256],120805:[,256],120806:[,256],120807:[,256],120808:[,256],120809:[,256],120810:[,256],120811:[,256],120812:[,256],120813:[,256],120814:[,256],120815:[,256],120816:[,256],120817:[,256],120818:[,256],120819:[,256],120820:[,256],120821:[,256],120822:[,256],120823:[,256],120824:[,256],120825:[,256],120826:[,256],120827:[,256],120828:[,256],120829:[,256],120830:[,256],120831:[,256]},59392:{125136:,125137:,125138:,125139:,125140:,125141:,125142:},60928:{126464:[,256],126465:[,256],126466:[,256],126467:[,256],126469:[,256],126470:[,256],126471:[,256],126472:[,256],126473:[,256],126474:[,256],126475:[,256],126476:[,256],126477:[,256],126478:[,256],126479:[,256],126480:[,256],126481:[,256],126482:[,256],126483:[,256],126484:[,256],126485:[,256],126486:[,256],126487:[,256],126488:[,256],126489:[,256],126490:[,256],126491:[,256],126492:[,256],126493:[,256],126494:[,256],126495:[,256],126497:[,256],126498:[,256],126500:[,256],126503:[,256],126505:[,256],126506:[,256],126507:[,256],126508:[,256],126509:[,256],126510:[,256],126511:[,256],126512:[,256],126513:[,256],126514:[,256],126516:[,256],126517:[,256],126518:[,256],126519:[,256],126521:[,256],126523:[,256],126530:[,256],126535:[,256],126537:[,256],126539:[,256],126541:[,256],126542:[,256],126543:[,256],126545:[,256],126546:[,256],126548:[,256],126551:[,256],126553:[,256],126555:[,256],126557:[,256],126559:[,256],126561:[,256],126562:[,256],126564:[,256],126567:[,256],126568:[,256],126569:[,256],126570:[,256],126572:[,256],126573:[,256],126574:[,256],126575:[,256],126576:[,256],126577:[,256],126578:[,256],126580:[,256],126581:[,256],126582:[,256],126583:[,256],126585:[,256],126586:[,256],126587:[,256],126588:[,256],126590:[,256],126592:[,256],126593:[,256],126594:[,256],126595:[,256],126596:[,256],126597:[,256],126598:[,256],126599:[,256],126600:[,256],126601:[,256],126603:[,256],126604:[,256],126605:[,256],126606:[,256],126607:[,256],126608:[,256],126609:[,256],126610:[,256],126611:[,256],126612:[,256],126613:[,256],126614:[,256],126615:[,256],126616:[,256],126617:[,256],126618:[,256],126619:[,256],126625:[,256],126626:[,256],126627:[,256],126629:[,256],126630:[,256],126631:[,256],126632:[,256],126633:[,256],126635:[,256],126636:[,256],126637:[,256],126638:[,256],126639:[,256],126640:[,256],126641:[,256],126642:[,256],126643:[,256],126644:[,256],126645:[,256],126646:[,256],126647:[,256],126648:[,256],126649:[,256],126650:[,256],126651:[,256]},61696:{127232:[,256],127233:[,256],127234:[,256],127235:[,256],127236:[,256],127237:[,256],127238:[,256],127239:[,256],127240:[,256],127241:[,256],127242:[,256],127248:[,256],127249:[,256],127250:[,256],127251:[,256],127252:[,256],127253:[,256],127254:[,256],127255:[,256],127256:[,256],127257:[,256],127258:[,256],127259:[,256],127260:[,256],127261:[,256],127262:[,256],127263:[,256],127264:[,256],127265:[,256],127266:[,256],127267:[,256],127268:[,256],127269:[,256],127270:[,256],127271:[,256],127272:[,256],127273:[,256],127274:[,256],127275:[,256],127276:[,256],127277:[,256],127278:[,256],127280:[,256],127281:[,256],127282:[,256],127283:[,256],127284:[,256],127285:[,256],127286:[,256],127287:[,256],127288:[,256],127289:[,256],127290:[,256],127291:[,256],127292:[,256],127293:[,256],127294:[,256],127295:[,256],127296:[,256],127297:[,256],127298:[,256],127299:[,256],127300:[,256],127301:[,256],127302:[,256],127303:[,256],127304:[,256],127305:[,256],127306:[,256],127307:[,256],127308:[,256],127309:[,256],127310:[,256],127311:[,256],127338:[,256],127339:[,256],127376:[,256]},61952:{127488:[,256],127489:[,256],127490:[,256],127504:[,256],127505:[,256],127506:[,256],127507:[,256],127508:[,256],127509:[,256],127510:[,256],127511:[,256],127512:[,256],127513:[,256],127514:[,256],127515:[,256],127516:[,256],127517:[,256],127518:[,256],127519:[,256],127520:[,256],127521:[,256],127522:[,256],127523:[,256],127524:[,256],127525:[,256],127526:[,256],127527:[,256],127528:[,256],127529:[,256],127530:[,256],127531:[,256],127532:[,256],127533:[,256],127534:[,256],127535:[,256],127536:[,256],127537:[,256],127538:[,256],127539:[,256],127540:[,256],127541:[,256],127542:[,256],127543:[,256],127544:[,256],127545:[,256],127546:[,256],127552:[,256],127553:[,256],127554:[,256],127555:[,256],127556:[,256],127557:[,256],127558:[,256],127559:[,256],127560:[,256],127568:[,256],127569:[,256]},63488:{194560:[],194561:[],194562:[],194563:[],194564:[],194565:[],194566:[],194567:[],194568:[],194569:[],194570:[],194571:[],194572:[],194573:[],194574:[],194575:[],194576:[],194577:[],194578:[],194579:[],194580:[],194581:[],194582:[],194583:[],194584:[],194585:[],194586:[],194587:[],194588:[],194589:[],194590:[],194591:[],194592:[],194593:[],194594:[],194595:[],194596:[],194597:[],194598:[],194599:[],194600:[],194601:[],194602:[],194603:[],194604:[],194605:[],194606:[],194607:[],194608:[],194609:[],194610:[],194611:[],194612:[],194613:[],194614:[],194615:[],194616:[],194617:[],194618:[],194619:[],194620:[],194621:[],194622:[],194623:[],194624:[],194625:[],194626:[],194627:[],194628:[],194629:[],194630:[],194631:[],194632:[],194633:[],194634:[],194635:[],194636:[],194637:[],194638:[],194639:[],194640:[],194641:[],194642:[],194643:[],194644:[],194645:[],194646:[],194647:[],194648:[],194649:[],194650:[],194651:[],194652:[],194653:[],194654:[],194655:[],194656:[],194657:[],194658:[],194659:[],194660:[],194661:[],194662:[],194663:[],194664:[],194665:[],194666:[],194667:[],194668:[],194669:[],194670:[],194671:[],194672:[],194673:[],194674:[],194675:[],194676:[],194677:[],194678:[],194679:[],194680:[],194681:[],194682:[],194683:[],194684:[],194685:[],194686:[],194687:[],194688:[],194689:[],194690:[],194691:[],194692:[],194693:[],194694:[],194695:[],194696:[],194697:[],194698:[],194699:[],194700:[],194701:[],194702:[],194703:[],194704:[],194705:[],194706:[],194707:[],194708:[],194709:[],194710:[],194711:[],194712:[],194713:[],194714:[],194715:[],194716:[],194717:[],194718:[],194719:[],194720:[],194721:[],194722:[],194723:[],194724:[],194725:[],194726:[],194727:[],194728:[],194729:[],194730:[],194731:[],194732:[],194733:[],194734:[],194735:[],194736:[],194737:[],194738:[],194739:[],194740:[],194741:[],194742:[],194743:[],194744:[],194745:[],194746:[],194747:[],194748:[],194749:[],194750:[],194751:[],194752:[],194753:[],194754:[],194755:[],194756:[],194757:[],194758:[],194759:[],194760:[],194761:[],194762:[],194763:[],194764:[],194765:[],194766:[],194767:[],194768:[],194769:[],194770:[],194771:[],194772:[],194773:[],194774:[],194775:[],194776:[],194777:[],194778:[],194779:[],194780:[],194781:[],194782:[],194783:[],194784:[],194785:[],194786:[],194787:[],194788:[],194789:[],194790:[],194791:[],194792:[],194793:[],194794:[],194795:[],194796:[],194797:[],194798:[],194799:[],194800:[],194801:[],194802:[],194803:[],194804:[],194805:[],194806:[],194807:[],194808:[],194809:[],194810:[],194811:[],194812:[],194813:[],194814:[],194815:[]},63744:{63744:[],63745:[],63746:[],63747:[],63748:[],63749:[],63750:[],63751:[],63752:[],63753:[],63754:[],63755:[],63756:[],63757:[],63758:[],63759:[],63760:[],63761:[],63762:[],63763:[],63764:[],63765:[],63766:[],63767:[],63768:[],63769:[],63770:[],63771:[],63772:[],63773:[],63774:[],63775:[],63776:[],63777:[],63778:[],63779:[],63780:[],63781:[],63782:[],63783:[],63784:[],63785:[],63786:[],63787:[],63788:[],63789:[],63790:[],63791:[],63792:[],63793:[],63794:[],63795:[],63796:[],63797:[],63798:[],63799:[],63800:[],63801:[],63802:[],63803:[],63804:[],63805:[],63806:[],63807:[],63808:[],63809:[],63810:[],63811:[],63812:[],63813:[],63814:[],63815:[],63816:[],63817:[],63818:[],63819:[],63820:[],63821:[],63822:[],63823:[],63824:[],63825:[],63826:[],63827:[],63828:[],63829:[],63830:[],63831:[],63832:[],63833:[],63834:[],63835:[],63836:[],63837:[],63838:[],63839:[],63840:[],63841:[],63842:[],63843:[],63844:[],63845:[],63846:[],63847:[],63848:[],63849:[],63850:[],63851:[],63852:[],63853:[],63854:[],63855:[],63856:[],63857:[],63858:[],63859:[],63860:[],63861:[],63862:[],63863:[],63864:[],63865:[],63866:[],63867:[],63868:[],63869:[],63870:[],63871:[],63872:[],63873:[],63874:[],63875:[],63876:[],63877:[],63878:[],63879:[],63880:[],63881:[],63882:[],63883:[],63884:[],63885:[],63886:[],63887:[],63888:[],63889:[],63890:[],63891:[],63892:[],63893:[],63894:[],63895:[],63896:[],63897:[],63898:[],63899:[],63900:[],63901:[],63902:[],63903:[],63904:[],63905:[],63906:[],63907:[],63908:[],63909:[],63910:[],63911:[],63912:[],63913:[],63914:[],63915:[],63916:[],63917:[],63918:[],63919:[],63920:[],63921:[],63922:[],63923:[],63924:[],63925:[],63926:[],63927:[],63928:[],63929:[],63930:[],63931:[],63932:[],63933:[],63934:[],63935:[],63936:[],63937:[],63938:[],63939:[],63940:[],63941:[],63942:[],63943:[],63944:[],63945:[],63946:[],63947:[],63948:[],63949:[],63950:[],63951:[],63952:[],63953:[],63954:[],63955:[],63956:[],63957:[],63958:[],63959:[],63960:[],63961:[],63962:[],63963:[],63964:[],63965:[],63966:[],63967:[],63968:[],63969:[],63970:[],63971:[],63972:[],63973:[],63974:[],63975:[],63976:[],63977:[],63978:[],63979:[],63980:[],63981:[],63982:[],63983:[],63984:[],63985:[],63986:[],63987:[],63988:[],63989:[],63990:[],63991:[],63992:[],63993:[],63994:[],63995:[],63996:[],63997:[],63998:[],63999:[],194816:[],194817:[],194818:[],194819:[],194820:[],194821:[],194822:[],194823:[],194824:[],194825:[],194826:[],194827:[],194828:[],194829:[],194830:[],194831:[],194832:[],194833:[],194834:[],194835:[],194836:[],194837:[],194838:[],194839:[],194840:[],194841:[],194842:[],194843:[],194844:[],194845:[],194846:[],194847:[],194848:[],194849:[],194850:[],194851:[],194852:[],194853:[],194854:[],194855:[],194856:[],194857:[],194858:[],194859:[],194860:[],194861:[],194862:[],194863:[],194864:[],194865:[],194866:[],194867:[],194868:[],194869:[],194870:[],194871:[],194872:[],194873:[],194874:[],194875:[],194876:[],194877:[],194878:[],194879:[],194880:[],194881:[],194882:[],194883:[],194884:[],194885:[],194886:[],194887:[],194888:[],194889:[],194890:[],194891:[],194892:[],194893:[],194894:[],194895:[],194896:[],194897:[],194898:[],194899:[],194900:[],194901:[],194902:[],194903:[],194904:[],194905:[],194906:[],194907:[],194908:[],194909:[],194910:[],194911:[],194912:[],194913:[],194914:[],194915:[],194916:[],194917:[],194918:[],194919:[],194920:[],194921:[],194922:[],194923:[],194924:[],194925:[],194926:[],194927:[],194928:[],194929:[],194930:[],194931:[],194932:[],194933:[],194934:[],194935:[],194936:[],194937:[],194938:[],194939:[],194940:[],194941:[],194942:[],194943:[],194944:[],194945:[],194946:[],194947:[],194948:[],194949:[],194950:[],194951:[],194952:[],194953:[],194954:[],194955:[],194956:[],194957:[],194958:[],194959:[],194960:[],194961:[],194962:[],194963:[],194964:[],194965:[],194966:[],194967:[],194968:[],194969:[],194970:[],194971:[],194972:[],194973:[],194974:[],194975:[],194976:[],194977:[],194978:[],194979:[],194980:[],194981:[],194982:[],194983:[],194984:[],194985:[],194986:[],194987:[],194988:[],194989:[],194990:[],194991:[],194992:[],194993:[],194994:[],194995:[],194996:[],194997:[],194998:[],194999:[],195000:[],195001:[],195002:[],195003:[],195004:[],195005:[],195006:[],195007:[],195008:[],195009:[],195010:[],195011:[],195012:[],195013:[],195014:[],195015:[],195016:[],195017:[],195018:[],195019:[],195020:[],195021:[],195022:[],195023:[],195024:[],195025:[],195026:[],195027:[],195028:[],195029:[],195030:[],195031:[],195032:[],195033:[],195034:[],195035:[],195036:[],195037:[],195038:[],195039:[],195040:[],195041:[],195042:[],195043:[],195044:[],195045:[],195046:[],195047:[],195048:[],195049:[],195050:[],195051:[],195052:[],195053:[],195054:[],195055:[],195056:[],195057:[],195058:[],195059:[],195060:[],195061:[],195062:[],195063:[],195064:[],195065:[],195066:[],195067:[],195068:[],195069:[],195070:[],195071:[]},64000:{64000:[],64001:[],64002:[],64003:[],64004:[],64005:[],64006:[],64007:[],64008:[],64009:[],64010:[],64011:[],64012:[],64013:[],64016:[],64018:[],64021:[],64022:[],64023:[],64024:[],64025:[],64026:[],64027:[],64028:[],64029:[],64030:[],64032:[],64034:[],64037:[],64038:[],64042:[],64043:[],64044:[],64045:[],64046:[],64047:[],64048:[],64049:[],64050:[],64051:[],64052:[],64053:[],64054:[],64055:[],64056:[],64057:[],64058:[],64059:[],64060:[],64061:[],64062:[],64063:[],64064:[],64065:[],64066:[],64067:[],64068:[],64069:[],64070:[],64071:[],64072:[],64073:[],64074:[],64075:[],64076:[],64077:[],64078:[],64079:[],64080:[],64081:[],64082:[],64083:[],64084:[],64085:[],64086:[],64087:[],64088:[],64089:[],64090:[],64091:[],64092:[],64093:[],64094:[],64095:[],64096:[],64097:[],64098:[],64099:[],64100:[],64101:[],64102:[],64103:[],64104:[],64105:[],64106:[],64107:[],64108:[],64109:[],64112:[],64113:[],64114:[],64115:[],64116:[],64117:[],64118:[],64119:[],64120:[],64121:[],64122:[],64123:[],64124:[],64125:[],64126:[],64127:[],64128:[],64129:[],64130:[],64131:[],64132:[],64133:[],64134:[],64135:[],64136:[],64137:[],64138:[],64139:[],64140:[],64141:[],64142:[],64143:[],64144:[],64145:[],64146:[],64147:[],64148:[],64149:[],64150:[],64151:[],64152:[],64153:[],64154:[],64155:[],64156:[],64157:[],64158:[],64159:[],64160:[],64161:[],64162:[],64163:[],64164:[],64165:[],64166:[],64167:[],64168:[],64169:[],64170:[],64171:[],64172:[],64173:[],64174:[],64175:[],64176:[],64177:[],64178:[],64179:[],64180:[],64181:[],64182:[],64183:[],64184:[],64185:[],64186:[],64187:[],64188:[],64189:[],64190:[],64191:[],64192:[],64193:[],64194:[],64195:[],64196:[],64197:[],64198:[],64199:[],64200:[],64201:[],64202:[],64203:[],64204:[],64205:[],64206:[],64207:[],64208:[],64209:[],64210:[],64211:[],64212:[],64213:[],64214:[],64215:[],64216:[],64217:[],195072:[],195073:[],195074:[],195075:[],195076:[],195077:[],195078:[],195079:[],195080:[],195081:[],195082:[],195083:[],195084:[],195085:[],195086:[],195087:[],195088:[],195089:[],195090:[],195091:[],195092:[],195093:[],195094:[],195095:[],195096:[],195097:[],195098:[],195099:[],195100:[],195101:[]},64256:{64256:[,256],64257:[,256],64258:[,256],64259:[,256],64260:[,256],64261:[,256],64262:[,256],64275:[,256],64276:[,256],64277:[,256],64278:[,256],64279:[,256],64285:[,512],64286:,64287:[,512],64288:[,256],64289:[,256],64290:[,256],64291:[,256],64292:[,256],64293:[,256],64294:[,256],64295:[,256],64296:[,256],64297:[,256],64298:[,512],64299:[,512],64300:[,512],64301:[,512],64302:[,512],64303:[,512],64304:[,512],64305:[,512],64306:[,512],64307:[,512],64308:[,512],64309:[,512],64310:[,512],64312:[,512],64313:[,512],64314:[,512],64315:[,512],64316:[,512],64318:[,512],64320:[,512],64321:[,512],64323:[,512],64324:[,512],64326:[,512],64327:[,512],64328:[,512],64329:[,512],64330:[,512],64331:[,512],64332:[,512],64333:[,512],64334:[,512],64335:[,256],64336:[,256],64337:[,256],64338:[,256],64339:[,256],64340:[,256],64341:[,256],64342:[,256],64343:[,256],64344:[,256],64345:[,256],64346:[,256],64347:[,256],64348:[,256],64349:[,256],64350:[,256],64351:[,256],64352:[,256],64353:[,256],64354:[,256],64355:[,256],64356:[,256],64357:[,256],64358:[,256],64359:[,256],64360:[,256],64361:[,256],64362:[,256],64363:[,256],64364:[,256],64365:[,256],64366:[,256],64367:[,256],64368:[,256],64369:[,256],64370:[,256],64371:[,256],64372:[,256],64373:[,256],64374:[,256],64375:[,256],64376:[,256],64377:[,256],64378:[,256],64379:[,256],64380:[,256],64381:[,256],64382:[,256],64383:[,256],64384:[,256],64385:[,256],64386:[,256],64387:[,256],64388:[,256],64389:[,256],64390:[,256],64391:[,256],64392:[,256],64393:[,256],64394:[,256],64395:[,256],64396:[,256],64397:[,256],64398:[,256],64399:[,256],64400:[,256],64401:[,256],64402:[,256],64403:[,256],64404:[,256],64405:[,256],64406:[,256],64407:[,256],64408:[,256],64409:[,256],64410:[,256],64411:[,256],64412:[,256],64413:[,256],64414:[,256],64415:[,256],64416:[,256],64417:[,256],64418:[,256],64419:[,256],64420:[,256],64421:[,256],64422:[,256],64423:[,256],64424:[,256],64425:[,256],64426:[,256],64427:[,256],64428:[,256],64429:[,256],64430:[,256],64431:[,256],64432:[,256],64433:[,256],64467:[,256],64468:[,256],64469:[,256],64470:[,256],64471:[,256],64472:[,256],64473:[,256],64474:[,256],64475:[,256],64476:[,256],64477:[,256],64478:[,256],64479:[,256],64480:[,256],64481:[,256],64482:[,256],64483:[,256],64484:[,256],64485:[,256],64486:[,256],64487:[,256],64488:[,256],64489:[,256],64490:[,256],64491:[,256],64492:[,256],64493:[,256],64494:[,256],64495:[,256],64496:[,256],64497:[,256],64498:[,256],64499:[,256],64500:[,256],64501:[,256],64502:[,256],64503:[,256],64504:[,256],64505:[,256],64506:[,256],64507:[,256],64508:[,256],64509:[,256],64510:[,256],64511:[,256]},64512:{64512:[,256],64513:[,256],64514:[,256],64515:[,256],64516:[,256],64517:[,256],64518:[,256],64519:[,256],64520:[,256],64521:[,256],64522:[,256],64523:[,256],64524:[,256],64525:[,256],64526:[,256],64527:[,256],64528:[,256],64529:[,256],64530:[,256],64531:[,256],64532:[,256],64533:[,256],64534:[,256],64535:[,256],64536:[,256],64537:[,256],64538:[,256],64539:[,256],64540:[,256],64541:[,256],64542:[,256],64543:[,256],64544:[,256],64545:[,256],64546:[,256],64547:[,256],64548:[,256],64549:[,256],64550:[,256],64551:[,256],64552:[,256],64553:[,256],64554:[,256],64555:[,256],64556:[,256],64557:[,256],64558:[,256],64559:[,256],64560:[,256],64561:[,256],64562:[,256],64563:[,256],64564:[,256],64565:[,256],64566:[,256],64567:[,256],64568:[,256],64569:[,256],64570:[,256],64571:[,256],64572:[,256],64573:[,256],64574:[,256],64575:[,256],64576:[,256],64577:[,256],64578:[,256],64579:[,256],64580:[,256],64581:[,256],64582:[,256],64583:[,256],64584:[,256],64585:[,256],64586:[,256],64587:[,256],64588:[,256],64589:[,256],64590:[,256],64591:[,256],64592:[,256],64593:[,256],64594:[,256],64595:[,256],64596:[,256],64597:[,256],64598:[,256],64599:[,256],64600:[,256],64601:[,256],64602:[,256],64603:[,256],64604:[,256],64605:[,256],64606:[,256],64607:[,256],64608:[,256],64609:[,256],64610:[,256],64611:[,256],64612:[,256],64613:[,256],64614:[,256],64615:[,256],64616:[,256],64617:[,256],64618:[,256],64619:[,256],64620:[,256],64621:[,256],64622:[,256],64623:[,256],64624:[,256],64625:[,256],64626:[,256],64627:[,256],64628:[,256],64629:[,256],64630:[,256],64631:[,256],64632:[,256],64633:[,256],64634:[,256],64635:[,256],64636:[,256],64637:[,256],64638:[,256],64639:[,256],64640:[,256],64641:[,256],64642:[,256],64643:[,256],64644:[,256],64645:[,256],64646:[,256],64647:[,256],64648:[,256],64649:[,256],64650:[,256],64651:[,256],64652:[,256],64653:[,256],64654:[,256],64655:[,256],64656:[,256],64657:[,256],64658:[,256],64659:[,256],64660:[,256],64661:[,256],64662:[,256],64663:[,256],64664:[,256],64665:[,256],64666:[,256],64667:[,256],64668:[,256],64669:[,256],64670:[,256],64671:[,256],64672:[,256],64673:[,256],64674:[,256],64675:[,256],64676:[,256],64677:[,256],64678:[,256],64679:[,256],64680:[,256],64681:[,256],64682:[,256],64683:[,256],64684:[,256],64685:[,256],64686:[,256],64687:[,256],64688:[,256],64689:[,256],64690:[,256],64691:[,256],64692:[,256],64693:[,256],64694:[,256],64695:[,256],64696:[,256],64697:[,256],64698:[,256],64699:[,256],64700:[,256],64701:[,256],64702:[,256],64703:[,256],64704:[,256],64705:[,256],64706:[,256],64707:[,256],64708:[,256],64709:[,256],64710:[,256],64711:[,256],64712:[,256],64713:[,256],64714:[,256],64715:[,256],64716:[,256],64717:[,256],64718:[,256],64719:[,256],64720:[,256],64721:[,256],64722:[,256],64723:[,256],64724:[,256],64725:[,256],64726:[,256],64727:[,256],64728:[,256],64729:[,256],64730:[,256],64731:[,256],64732:[,256],64733:[,256],64734:[,256],64735:[,256],64736:[,256],64737:[,256],64738:[,256],64739:[,256],64740:[,256],64741:[,256],64742:[,256],64743:[,256],64744:[,256],64745:[,256],64746:[,256],64747:[,256],64748:[,256],64749:[,256],64750:[,256],64751:[,256],64752:[,256],64753:[,256],64754:[,256],64755:[,256],64756:[,256],64757:[,256],64758:[,256],64759:[,256],64760:[,256],64761:[,256],64762:[,256],64763:[,256],64764:[,256],64765:[,256],64766:[,256],64767:[,256]},64768:{64768:[,256],64769:[,256],64770:[,256],64771:[,256],64772:[,256],64773:[,256],64774:[,256],64775:[,256],64776:[,256],64777:[,256],64778:[,256],64779:[,256],64780:[,256],64781:[,256],64782:[,256],64783:[,256],64784:[,256],64785:[,256],64786:[,256],64787:[,256],64788:[,256],64789:[,256],64790:[,256],64791:[,256],64792:[,256],64793:[,256],64794:[,256],64795:[,256],64796:[,256],64797:[,256],64798:[,256],64799:[,256],64800:[,256],64801:[,256],64802:[,256],64803:[,256],64804:[,256],64805:[,256],64806:[,256],64807:[,256],64808:[,256],64809:[,256],64810:[,256],64811:[,256],64812:[,256],64813:[,256],64814:[,256],64815:[,256],64816:[,256],64817:[,256],64818:[,256],64819:[,256],64820:[,256],64821:[,256],64822:[,256],64823:[,256],64824:[,256],64825:[,256],64826:[,256],64827:[,256],64828:[,256],64829:[,256],64848:[,256],64849:[,256],64850:[,256],64851:[,256],64852:[,256],64853:[,256],64854:[,256],64855:[,256],64856:[,256],64857:[,256],64858:[,256],64859:[,256],64860:[,256],64861:[,256],64862:[,256],64863:[,256],64864:[,256],64865:[,256],64866:[,256],64867:[,256],64868:[,256],64869:[,256],64870:[,256],64871:[,256],64872:[,256],64873:[,256],64874:[,256],64875:[,256],64876:[,256],64877:[,256],64878:[,256],64879:[,256],64880:[,256],64881:[,256],64882:[,256],64883:[,256],64884:[,256],64885:[,256],64886:[,256],64887:[,256],64888:[,256],64889:[,256],64890:[,256],64891:[,256],64892:[,256],64893:[,256],64894:[,256],64895:[,256],64896:[,256],64897:[,256],64898:[,256],64899:[,256],64900:[,256],64901:[,256],64902:[,256],64903:[,256],64904:[,256],64905:[,256],64906:[,256],64907:[,256],64908:[,256],64909:[,256],64910:[,256],64911:[,256],64914:[,256],64915:[,256],64916:[,256],64917:[,256],64918:[,256],64919:[,256],64920:[,256],64921:[,256],64922:[,256],64923:[,256],64924:[,256],64925:[,256],64926:[,256],64927:[,256],64928:[,256],64929:[,256],64930:[,256],64931:[,256],64932:[,256],64933:[,256],64934:[,256],64935:[,256],64936:[,256],64937:[,256],64938:[,256],64939:[,256],64940:[,256],64941:[,256],64942:[,256],64943:[,256],64944:[,256],64945:[,256],64946:[,256],64947:[,256],64948:[,256],64949:[,256],64950:[,256],64951:[,256],64952:[,256],64953:[,256],64954:[,256],64955:[,256],64956:[,256],64957:[,256],64958:[,256],64959:[,256],64960:[,256],64961:[,256],64962:[,256],64963:[,256],64964:[,256],64965:[,256],64966:[,256],64967:[,256],65008:[,256],65009:[,256],65010:[,256],65011:[,256],65012:[,256],65013:[,256],65014:[,256],65015:[,256],65016:[,256],65017:[,256],65018:[,256],65019:[,256],65020:[,256]},65024:{65040:[,256],65041:[,256],65042:[,256],65043:[,256],65044:[,256],65045:[,256],65046:[,256],65047:[,256],65048:[,256],65049:[,256],65056:,65057:,65058:,65059:,65060:,65061:,65062:,65063:,65064:,65065:,65066:,65067:,65068:,65069:,65072:[,256],65073:[,256],65074:[,256],65075:[,256],65076:[,256],65077:[,256],65078:[,256],65079:[,256],65080:[,256],65081:[,256],65082:[,256],65083:[,256],65084:[,256],65085:[,256],65086:[,256],65087:[,256],65088:[,256],65089:[,256],65090:[,256],65091:[,256],65092:[,256],65095:[,256],65096:[,256],65097:[,256],65098:[,256],65099:[,256],65100:[,256],65101:[,256],65102:[,256],65103:[,256],65104:[,256],65105:[,256],65106:[,256],65108:[,256],65109:[,256],65110:[,256],65111:[,256],65112:[,256],65113:[,256],65114:[,256],65115:[,256],65116:[,256],65117:[,256],65118:[,256],65119:[,256],65120:[,256],65121:[,256],65122:[,256],65123:[,256],65124:[,256],65125:[,256],65126:[,256],65128:[,256],65129:[,256],65130:[,256],65131:[,256],65136:[,256],65137:[,256],65138:[,256],65140:[,256],65142:[,256],65143:[,256],65144:[,256],65145:[,256],65146:[,256],65147:[,256],65148:[,256],65149:[,256],65150:[,256],65151:[,256],65152:[,256],65153:[,256],65154:[,256],65155:[,256],65156:[,256],65157:[,256],65158:[,256],65159:[,256],65160:[,256],65161:[,256],65162:[,256],65163:[,256],65164:[,256],65165:[,256],65166:[,256],65167:[,256],65168:[,256],65169:[,256],65170:[,256],65171:[,256],65172:[,256],65173:[,256],65174:[,256],65175:[,256],65176:[,256],65177:[,256],65178:[,256],65179:[,256],65180:[,256],65181:[,256],65182:[,256],65183:[,256],65184:[,256],65185:[,256],65186:[,256],65187:[,256],65188:[,256],65189:[,256],65190:[,256],65191:[,256],65192:[,256],65193:[,256],65194:[,256],65195:[,256],65196:[,256],65197:[,256],65198:[,256],65199:[,256],65200:[,256],65201:[,256],65202:[,256],65203:[,256],65204:[,256],65205:[,256],65206:[,256],65207:[,256],65208:[,256],65209:[,256],65210:[,256],65211:[,256],65212:[,256],65213:[,256],65214:[,256],65215:[,256],65216:[,256],65217:[,256],65218:[,256],65219:[,256],65220:[,256],65221:[,256],65222:[,256],65223:[,256],65224:[,256],65225:[,256],65226:[,256],65227:[,256],65228:[,256],65229:[,256],65230:[,256],65231:[,256],65232:[,256],65233:[,256],65234:[,256],65235:[,256],65236:[,256],65237:[,256],65238:[,256],65239:[,256],65240:[,256],65241:[,256],65242:[,256],65243:[,256],65244:[,256],65245:[,256],65246:[,256],65247:[,256],65248:[,256],65249:[,256],65250:[,256],65251:[,256],65252:[,256],65253:[,256],65254:[,256],65255:[,256],65256:[,256],65257:[,256],65258:[,256],65259:[,256],65260:[,256],65261:[,256],65262:[,256],65263:[,256],65264:[,256],65265:[,256],65266:[,256],65267:[,256],65268:[,256],65269:[,256],65270:[,256],65271:[,256],65272:[,256],65273:[,256],65274:[,256],65275:[,256],65276:[,256]},65280:{65281:[,256],65282:[,256],65283:[,256],65284:[,256],65285:[,256],65286:[,256],65287:[,256],65288:[,256],65289:[,256],65290:[,256],65291:[,256],65292:[,256],65293:[,256],65294:[,256],65295:[,256],65296:[,256],65297:[,256],65298:[,256],65299:[,256],65300:[,256],65301:[,256],65302:[,256],65303:[,256],65304:[,256],65305:[,256],65306:[,256],65307:[,256],65308:[,256],65309:[,256],65310:[,256],65311:[,256],65312:[,256],65313:[,256],65314:[,256],65315:[,256],65316:[,256],65317:[,256],65318:[,256],65319:[,256],65320:[,256],65321:[,256],65322:[,256],65323:[,256],65324:[,256],65325:[,256],65326:[,256],65327:[,256],65328:[,256],65329:[,256],65330:[,256],65331:[,256],65332:[,256],65333:[,256],65334:[,256],65335:[,256],65336:[,256],65337:[,256],65338:[,256],65339:[,256],65340:[,256],65341:[,256],65342:[,256],65343:[,256],65344:[,256],65345:[,256],65346:[,256],65347:[,256],65348:[,256],65349:[,256],65350:[,256],65351:[,256],65352:[,256],65353:[,256],65354:[,256],65355:[,256],65356:[,256],65357:[,256],65358:[,256],65359:[,256],65360:[,256],65361:[,256],65362:[,256],65363:[,256],65364:[,256],65365:[,256],65366:[,256],65367:[,256],65368:[,256],65369:[,256],65370:[,256],65371:[,256],65372:[,256],65373:[,256],65374:[,256],65375:[,256],65376:[,256],65377:[,256],65378:[,256],65379:[,256],65380:[,256],65381:[,256],65382:[,256],65383:[,256],65384:[,256],65385:[,256],65386:[,256],65387:[,256],65388:[,256],65389:[,256],65390:[,256],65391:[,256],65392:[,256],65393:[,256],65394:[,256],65395:[,256],65396:[,256],65397:[,256],65398:[,256],65399:[,256],65400:[,256],65401:[,256],65402:[,256],65403:[,256],65404:[,256],65405:[,256],65406:[,256],65407:[,256],65408:[,256],65409:[,256],65410:[,256],65411:[,256],65412:[,256],65413:[,256],65414:[,256],65415:[,256],65416:[,256],65417:[,256],65418:[,256],65419:[,256],65420:[,256],65421:[,256],65422:[,256],65423:[,256],65424:[,256],65425:[,256],65426:[,256],65427:[,256],65428:[,256],65429:[,256],65430:[,256],65431:[,256],65432:[,256],65433:[,256],65434:[,256],65435:[,256],65436:[,256],65437:[,256],65438:[,256],65439:[,256],65440:[,256],65441:[,256],65442:[,256],65443:[,256],65444:[,256],65445:[,256],65446:[,256],65447:[,256],65448:[,256],65449:[,256],65450:[,256],65451:[,256],65452:[,256],65453:[,256],65454:[,256],65455:[,256],65456:[,256],65457:[,256],65458:[,256],65459:[,256],65460:[,256],65461:[,256],65462:[,256],65463:[,256],65464:[,256],65465:[,256],65466:[,256],65467:[,256],65468:[,256],65469:[,256],65470:[,256],65474:[,256],65475:[,256],65476:[,256],65477:[,256],65478:[,256],65479:[,256],65482:[,256],65483:[,256],65484:[,256],65485:[,256],65486:[,256],65487:[,256],65490:[,256],65491:[,256],65492:[,256],65493:[,256],65494:[,256],65495:[,256],65498:[,256],65499:[,256],65500:[,256],65504:[,256],65505:[,256],65506:[,256],65507:[,256],65508:[,256],65509:[,256],65510:[,256],65512:[,256],65513:[,256],65514:[,256],65515:[,256],65516:[,256],65517:[,256],65518:[,256]}};var P={nfc:function(e){return A(”NFC“,e)},nfd:function(e){return A(”NFD“,e)},nfkc:function(e){return A(”NFKC“,e)},nfkd:function(e){return A(”NFKD“,e)}};”object“===i(e)?e.exports=P:void 0===(n=function(){return P}.call(t,r,t,e))||(e.exports=n),P.shimApplied=!1,String.prototype.normalize||(Object.defineProperty(String.prototype,”normalize“,{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=”“+this;if(”NFC“===(e=void 0===e?”NFC“:e))return P.nfc(t);if(”NFD“===e)return P.nfd(t);if(”NFKC“===e)return P.nfkc(t);if(”NFKD“===e)return P.nfkd(t);throw new RangeError(”Invalid normalization form: “+e)}}),P.shimApplied=!0)}()}).call(this,r(17)(e))},function(e){e.exports=},function(e){e.exports=},function(e){e.exports=},function(e){e.exports=},function(e){e.exports=},function(e){e.exports=},function(e){e.exports=},function(e){e.exports=},function(e,t,r){(function(e){(function(){var n,i,o,a,s;for(i in a=r(213))o=a,t=o;for(i in s=r(505))o=s,t=o;t.prng=r(216),t.Buffer=e,t.WordArray=r(8).WordArray,t.util=r(13),t.ciphers={AES:r(116).AES,TwoFish:r(117).TwoFish,Salsa20:r(57).Salsa20},t.hash={SHA1:r(506).SHA1,SHA224:r(507).SHA224,SHA256:r(118).SHA256,SHA384:r(508).SHA384,SHA512:r(37).SHA512,SHA3:r(119).SHA3,MD5:r(509).MD5,RIPEMD160:r(510).RIPEMD160},t.modes={CTR:r(77)},t.scrypt=r(215).scrypt,t.pbkdf2=r(120).pbkdf2,t.hmac=n=r(42),t.HMAC_SHA256=n.HMAC_SHA256,t.HMAC=n.HMAC}).call(this)}).call(this,r(1).Buffer)},function(e,t,r){(function(){var e,n,i,o,a,s=[].slice;e=r(115),t.iced=n=r(214),a=function(e,t,r,i){var o,a,u,c,f;c=n.findDeferral(arguments),a=new n.Rendezvous,i=a.id(!0).defer({assign_fn:function(){return o=s.call(arguments,0)},lineno:20,context:f}),setTimeout(a.id(!1).defer({lineno:21,context:f}),t),function(e){f=new n.Deferrals(e,{parent:c,filename:”/Users/max/src/iced/iced-runtime/src/library.iced“}),a.wait(f.defer({assign_fn:function(){return u=arguments},lineno:22})),f._fulfill()}(function(){return r&&(r=u),e.apply(null,o)})},t.timeout=function(e,t,r){var n;return a(e,t,r,n=[]),n},i=function(e,t,r){var i,o,a;o=n.findDeferral(arguments),function(e){a=new n.Deferrals(e,{parent:o,filename:”/Users/max/src/iced/iced-runtime/src/library.iced“}),r=a.defer({assign_fn:function(){return i=arguments},lineno:39}),a._fulfill()}(function(){return i||(t=!1),e()})},t.iand=function(e,t){var r;return i(e,t,r=[]),r},o=function(e,t,r){var i,o,a;o=n.findDeferral(arguments),function(e){a=new n.Deferrals(e,{parent:o,filename:”/Users/max/src/iced/iced-runtime/src/library.iced“}),r=a.defer({assign_fn:function(){return i=arguments},lineno:58}),a._fulfill()}(function(){return i&&(t=!0),e()})},t.ior=function(e,t){var r;return o(e,t,r=[]),r},t.Pipeliner=function(){function t(t,r){this.window=t||1,this.delay=r||0,this.queue=[],this.n_out=0,this.cb=null,this=this,this.defer=this._defer}return t.prototype.waitInQueue=function(e){var t,r,i;t=n.findDeferral(arguments),(i=this,function(e){var o;(o=function(e){var a,s;if(a=e,s=function(){return n.trampoline(function(){return o(e)})},!(i.n_out>=i.window))return a();!function(e){r=new n.Deferrals(e,{parent:t,filename:”/Users/max/src/iced/iced-runtime/src/library.iced“,funcname:”Pipeliner.waitInQueue“}),i.cb=r.defer({lineno:100}),r._fulfill()}(s)})(e)})(function(i){return function(){i.n_out++,function(e){if(!i.delay)return e();!function(e){r=new n.Deferrals(e,{parent:t,filename:”/Users/max/src/iced/iced-runtime/src/library.iced“,funcname:”Pipeliner.waitInQueue“}),setTimeout(r.defer({lineno:108}),i.delay),r._fulfill()}(e)}(function(){return e()})}}(this))},t.prototype.__defer=function(e,t){var r,i,o,a,u;o=n.findDeferral(arguments),function®{a=new n.Deferrals(r,{parent:o,filename:”/Users/max/src/iced/iced-runtime/src/library.iced“,funcname:”Pipeliner.__defer“}),i=a.defer({lineno:122}),e=function(){var e,r;return e=1<=arguments.length?s.call(arguments,0):[],null!=(r=t.assign_fn)&&r.apply(null,e),i()},a._fulfill()}((u=this,function(){if(u.n_out–,u.cb)return r=u.cb,u.cb=null,r()}))},t.prototype._defer=function(e){var t;return t=[],this.__defer(t,e),t},t.prototype.flush=function(e){var t,r,i,o,a;r=e,t=n.findDeferral(arguments),o=this,(i=function(e){var r,s;if(r=e,s=function(){return n.trampoline(function(){return i(e)})},!o.n_out)return r();!function(e){a=new n.Deferrals(e,{parent:t,filename:”/Users/max/src/iced/iced-runtime/src/library.iced“,funcname:”Pipeliner.flush“}),o.cb=a.defer({lineno:151}),a._fulfill()}(s)})®},t}()}).call(this)},function(e,t,r){(function(){t.Generator=r(500).Generator}).call(this)},function(e,t,r){(function(){var e,n,i;n=r(12),i=function(){},e=e=function(){function e(e){e=e||{},this.lazy_loop_delay=e.lazy_loop_delay||30,this.loop_delay=e.loop_delay||5,this.work_min=e.work_min||1,this.auto_stop_bits=e.auto_stop_bits||4096,this.max_bits_per_delta=e.max_bits_per_delta||4,this.auto_stop=!e.auto_stop||e.auto_stop,this.entropies=[],this.running=!0,this.is_generating=!1,this.timer_race_loop()}return e.prototype.generate=function(e,t){var r,i,o,a,s,u;a=n.findDeferral(arguments),this.is_generating=!0,this.running||this.resume(),i=0,o=[],(u=this,function(t){var c,f;c=[],(f=function(t){var l,h;if(l=function(){return n.trampoline(function(){return f(t)})},h=function(e){return c.push(e),l()},!(i<e))return t©;!function(e){if(u.entropies.length)return r=u.entropies.splice(0,1),i+=r,e(o.push(r));!function(e){s=new n.Deferrals(e,{parent:a,filename:”/Users/chris/git/more-entropy/src/generator.iced“,funcname:”Generator.generate“}),u.delay(s.defer({lineno:28})),s._fulfill()}(e)}(h)})(t)})(function(e){return function(){return e.auto_stop&&e.stop(),e.is_generating=!1,t(o)}}(this))},e.prototype.stop=function(){return this.running=!1},e.prototype.resume=function(){return this.running=!0,this.timer_race_loop()},e.prototype.reset=function(){return this.entropies=[],this.total_bits=0},e.prototype.count_unused_bits=function(){var e,t,r,n;for(e=0,t=0,r=(n=this.entropies).length;t[1];return e},e.prototype.delay=function(e){var t,r,i;r=n.findDeferral(arguments),t=this.is_generating?this.loop_delay:this.lazy_loop_delay,function(e){i=new n.Deferrals(e,{parent:r,filename:”/Users/chris/git/more-entropy/src/generator.iced“,funcname:”Generator.delay“}),setTimeout(i.defer({lineno:50}),t),i._fulfill()}(function(){return e()})},e.prototype.timer_race_loop=function(){var e,t,r,o,a,s,u,c,f,l;t=i,e=n.findDeferral(arguments),this._last_count=null,r=[],a=this,(o=function(t){var i,h,d;if(i=function(){return t®},h=function(){return n.trampoline(function(){return o(t)})},d=function(e){return r.push(e),h()},!a.running)return i();a.count_unused_bits(),a.entropies.push(f)),a._last_count=s),function(t){l=new n.Deferrals(t,{parent:e,filename:”/Users/chris/git/more-entropy/src/generator.iced“,funcname:”Generator.timer_race_loop“}),a.delay(l.defer({lineno:64})),l._fulfill()}(d)})(t)},e.prototype.log_2=function(e){return Math.log(e)/Math.LN2},e.prototype.millisecond_count=function(){var e,t,r;for(e=Date.now(),t=r=0;Date.now()<e+this.work_min+1;)t++,r=Math.sin(Math.sqrt(Math.log(t+r)));return t},e}(),”undefined“!=typeof window&&null!==window&&(window.Generator=e),null!==t&&(t.Generator=e)}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,a,s,u;u=r(12),s=r(42),r(78).XOR,r(37),r(119),a=r(8).WordArray,o=r(502).Lock,i=function(){function t(e,t,r){this.hmac=r||s.sign,this.security_strength=256,e=this.check_entropy(e),t||(t=new a([])),this._instantiate(e,t)}return t.prototype.check_entropy=function(e,t){if(null==t&&(t=!1),8*e.sigBytes*2<(t?2:3)*this.security_strength)throw new Error(”entropy must be at least “+1.5*this.security_strength+” bits.“);return e},t.prototype._hmac=function(e,t){return this.hmac({key:e,input:t})},t.prototype._update=function(e){var t,r;return t=new a(,1),null!=e&&(t=t.concat(e)),r=this.V.clone().concat(t),this.K=this._hmac(this.K,r),r.scrub(),t.scrub(),this.V=this._hmac(this.K,this.V),null!=e&&(r=this.V.clone().concat(new a(,1)).concat(e),this.K=this._hmac(this.K,r),r.scrub(),this.V=this._hmac(this.K,this.V)),null!=e?e.scrub():void 0},t.prototype._instantiate=function(t,r){var n,i;return i=t.concat®,n=64,this.K=a.from_buffer(new e(function(){var e,t;for(t=[],e=0;e<n;++e)t.push(0);return t}())),this.V=a.from_buffer(new e(function(){var e,t;for(t=[],e=0;e<n;++e)t.push(1);return t}())),this._update(i),t.scrub(),this.reseed_counter=1},t.prototype.reseed=function(e){return this._update(this.check_entropy(e,!0)),this.reseed_counter=1},t.prototype.generate=function(e){var t,r;if(8*e>7500)throw new Error(”generate cannot generate > 7500 bits in 1 call.“);if(this.reseed_counter>=1e4)throw new Error(”Need a reseed!“);for(t=[],0;0===t.length||t.length*t.length*4<e;)this.V=this._hmac(this.K,this.V),t.push(this.V.words);return this._update(),this.reseed_counter+=1,new a((r=[]).concat.apply(r,t)).truncate(e)},t}(),n=function(){function e(e,t){this.gen_seed=e,this.hmac=t,this.drbg=null,this.lock=new o}return e.prototype.generate=function(e,t){var r,n,o,a,s;o=u.findDeferral(arguments),(s=this,function(e){a=new u.Deferrals(e,{parent:o,filename:”/Users/max/src/keybase/triplesec/src/drbg.iced“,funcname:”ADRBG.generate“}),s.lock.acquire(a.defer({lineno:148})),a._fulfill()})(function(s){return function(){!function(e){if(null!=s.drbg)return e();!function(e){a=new u.Deferrals(e,{parent:o,filename:”/Users/max/src/keybase/triplesec/src/drbg.iced“,funcname:”ADRBG.generate“}),s.gen_seed(256,a.defer({assign_fn:function(){return n=arguments},lineno:150})),a._fulfill()}(function(){return e(s.drbg=new i(n,null,s.hmac))})}(function(){!function(e){if(!(s.drbg.reseed_counter>100))return e();!function(e){a=new u.Deferrals(e,{parent:o,filename:”/Users/max/src/keybase/triplesec/src/drbg.iced“,funcname:”ADRBG.generate“}),s.gen_seed(256,a.defer({assign_fn:function(){return n=arguments},lineno:153})),a._fulfill()}(function(){return e(s.drbg.reseed(n))})}(function(){return r=s.drbg.generate(e),s.lock.release(),t®})})}}(this))},e}(),t.DRBG=i,t.ADRBG=n}).call(this)}).call(this,r(1).Buffer)},function(e,t,r){(function(){var e,n,i,o,a={}.hasOwnProperty;o=r(12),t.Lock=e=function(){function e(){this._open=!0,this._waiters=[]}return e.prototype.acquire=function(e){return this._open?(this._open=!1,e()):this._waiters.push(e)},e.prototype.release=function(){return this._waiters.length?this._waiters.shift()():this._open=!0},e.prototype.open=function(){return this._open},e}(),n=function(t){function r(e,t){this.tab=e,this.name=t,r.__super__.constructor.call(this),this.refs=0}return function(e,t){for(var r in t)a.call(t,r)&&(e=t);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,e),r.prototype.incref=function(){return++this.refs},r.prototype.decref=function(){return–this.refs},r.prototype.release=function(){if(r.__super__.release.call(this),0===this.decref())return delete this.tab.locks},r}(),t.Table=function(){function e(){this.locks={}}return e.prototype.create=function(e){var t;return t=new n(this,e),this.locks=t},e.prototype.acquire=function(e,t,r){var n,i,a,s;a=o.findDeferral(arguments),n=this.locks||this.create(e),i=n._open,n.incref(),function(e){if(!r&&!n._open)return e(n=null);!function(e){s=new o.Deferrals(e,{parent:a,filename:”/Users/max/src/iced/iced-lock/index.iced“,funcname:”Table.acquire“}),n.acquire(s.defer({lineno:69})),s._fulfill()}(e)}(function(){return t(n,i)})},e.prototype.lookup=function(e){return this.locks},e}(),i=function(){function e(e){this.table=e.table,this.key=e.key,this.seqid=null,this.waiter=null,this.open=!0,this.refs=0}return e.prototype._incref=function(){return++this.refs},e.prototype._decref=function(){if(0==–this.refs)return this.table._remove({key:this.key})},e.prototype._enter=function(e,t){var r,n;return r=e.seqid,this.open?(this.open=!1,this.seqid=r,t(null,this)):null!=this.waiter?(r>this.waiter.seqid?(n=this.waiter,this.waiter={cb:t,seqid:r},n.cb(new Error(”our seqid=“n.seqid” was preempted by “+r))):t(new Error(”our seqid=“r” is too stale (since “this.waiter.seqid” is ahead of us)“)),this._decref()):r>this.seqid?this.waiter={seqid:r,cb:t}:(t(new Error(”our seqid=“r” is too stale (since “this.seqid” is already in flight)“)),this._decref())},e.prototype.release=function(){var e,t;return null!=this.waiter?(t=this.waiter,this.seqid=t.seqid,e=t.cb,this.waiter=null,e(null,this)):(this.open=!0,this.seqid=null),this._decref()},e}(),t.SingleFlightTable=function(){function e(){this._jobs={}}return e.prototype._create=function(e){var t;return t=e.key,this._jobs=new i({table:this,key:t})},e.prototype._remove=function(e){var t;return t=e.key,delete this._jobs},e.prototype.enter=function(e,t){var r,n,i;return i=e.seqid,r=e.key,(n=this._jobs||this._create({key:r}))._incref(),n._enter({seqid:i},t)},e}()}).call(this)},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)}var i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n]=Object.getOwnPropertyDescriptor(e,t);return r},o=/%/g;t.format=function(e){if(!g(e)){for(var t=[],r=0;r));return t.join(” “)}r=1;for(var n=arguments,i=n.length,a=String(e).replace(o,function(e){if(”%%“===e)return”%“;if(r>=i)return e;switch(e){case”%s“:return String(n);case”%d“:return Number(n);case”%j“:try{return JSON.stringify(n)}catch(e){return”“}default:return e}}),s=n;r)y(s)||!w(s)?a+=” “s:a=” “+u(s);return a},t.deprecate=function(r,n){if(void 0!==e&&!0===e.noDeprecation)return r;if(void 0===e)return function(){return t.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),i=!0}return r.apply(this,arguments)}};var a,s={};function u(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments),arguments.length>=4&&(n.colors=arguments),b®?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,e,n.depth)}function c(e,t){var r=u.styles;return r?”[“u.colors[r][0]”m“e”[“u.colors[r][1]”m“:e}function f(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=l(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize(”undefined“,”undefined“);if(g(t)){var r=”'“+JSON.stringify(t).replace(/^”|“$/g,”“).replace(/'/g,”\'“).replace(/\”/g,'“')+”'“;return e.stylize(r,”string“)}if(m(t))return e.stylize(”“+t,”number“);if(b(t))return e.stylize(”“+t,”boolean“);if(y(t))return e.stylize(”null“,”null“)}(e,r);if(o)return o;var a=Object.keys®,s=function(e){var t={};return e.forEach(function(e,r){t=!0}),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames®),k®&&(a.indexOf(”message“)>=0||a.indexOf(”description“)>=0))return h®;if(0===a.length){if(x®){var u=r.name?”: “+r.name:”“;return e.stylize(”[Function“u”]“,”special“)}if(_®)return e.stylize(RegExp.prototype.toString.call®,”regexp“);if(S®)return e.stylize(Date.prototype.toString.call®,”date“);if(k®)return h®}var c,f=”“,w=!1,E=;(p®&&(w=!0,E=[”“]),x®)&&(f=” [Function“+(r.name?”: “+r.name:”“)+”]“);return _®&&(f=” “+RegExp.prototype.toString.call®),S®&&(f=” “+Date.prototype.toUTCString.call®),k®&&(f=” “+h®),0!==a.length||w&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("”,“special”):(e.seen.push®,c=w?function(e,t,r,n,i){for(var o=[],a=0,s=t.length;a<s;++a)O(t,String(a))?o.push(d(e,t,r,n,String(a),!0)):o.push(“”);return i.forEach(function(i){i.match(/^d+$/)||o.push(d(e,t,r,n,i,!0))}),o}(e,r,n,s,a):a.map(function(t){return d(e,r,n,s,t,w)}),e.seen.pop(),function(e,t,r){if(e.reduce(function(e,t){return 0,t.indexOf(“n”)>=0&&0,e+t.replace(/u001b[dd?m/g,“”).length+1},0)>60)return r+(“”===t?“”:t+“n ”)+“ ”+e.join(“,n ”)+“ ”+r;return rt“ ”+e.join(“, ”)+“ ”+r}(c,f,E)):E+f+E}function h(e){return“”}function d(e,t,r,n,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t}).get?s=u.set?e.stylize(“”,“special”):e.stylize(“”,“special”):u.set&&(s=e.stylize(“”,“special”)),O(n,i)||(a=“[”i“]”),s||(e.seen.indexOf(u.value)<0?(s=y®?l(e,u.value,null):l(e,u.value,r-1)).indexOf(“n”)>-1&&(s=o?s.split(“n”).map(function(e){return“ ”+e}).join(“n”).substr(2):“n”+s.split(“n”).map(function(e){return“ ”+e}).join(“n”)):s=e.stylize(“”,“special”)),v(a)){if(o&&i.match(/^d+$/))return s;(a=JSON.stringify(“”+i)).match(/^“([a-zA-Z_0-9]*)”$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,“name”)):(a=a.replace(/'/g,“\'”).replace(/\“/g,'”').replace(/(^“|”$)/g,“'”),a=e.stylize(a,“string”))}return a+“: ”+s}function p(e){return Array.isArray(e)}function b(e){return“boolean”==typeof e}function y(e){return null===e}function m(e){return“number”==typeof e}function g(e){return“string”==typeof e}function v(e){return void 0===e}function _(e){return w(e)&&“[object RegExp]”===E(e)}function w(e){return“object”===n(e)&&null!==e}function S(e){return w(e)&&“[object Date]”===E(e)}function k(e){return w(e)&&(“[object Error]”===E(e)||e instanceof Error)}function x(e){return“function”==typeof e}function E(e){return Object.prototype.toString.call(e)}function A(e){return e<10?“0”+e.toString(10):e.toString(10)}t.debuglog=function®{if(v(a)&&(a=e.env.NODE_DEBUG||“”),r=r.toUpperCase(),!s)if(new RegExp(“\b”r“\b”,“i”).test(a)){var n=e.pid;s=function(){var e=t.format.apply(t,arguments);console.error(“%s %d: %s”,r,n,e)}}else s=function(){};return s},t.inspect=u,u.colors={bold:,italic:,underline:,inverse:,white:,grey:,black:,blue:,cyan:,green:,magenta:,red:,yellow:},u.styles={special:“cyan”,number:“yellow”,boolean:“yellow”,undefined:“grey”,null:“bold”,string:“green”,date:“magenta”,regexp:“red”},t.isArray=p,t.isBoolean=b,t.isNull=y,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=g,t.isSymbol=function(e){return“symbol”===n(e)},t.isUndefined=v,t.isRegExp=_,t.isObject=w,t.isDate=S,t.isError=k,t.isFunction=x,t.isPrimitive=function(e){return null===e||“boolean”==typeof e||“number”==typeof e||“string”==typeof e||“symbol”===n(e)||void 0===e},t.isBuffer=r(504);var P=;function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){var e,r;console.log(“%s - %s”,(e=new Date,r=.join(“:”),[e.getDate(),P,r].join(“ ”)),t.format.apply(t,arguments))},t.inherits=r(3),t._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n–;)e[r]=t[r];return e};var T=“undefined”!=typeof Symbol?Symbol(“util.promisify.custom”):void 0;function j(e,t){if(!e){var r=new Error(“Promise was rejected with a falsy value”);r.reason=e,e=r}return t(e)}t.promisify=function(e){if(“function”!=typeof e)throw new TypeError('The “original” argument must be of type Function’);if(T&&e){var t;if(“function”!=typeof(t=e))throw new TypeError('The “util.promisify.custom” argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise(function(e,n){t=e,r=n}),i=[],o=0;o);i.push(function(e,n){e?r(e):t(n)});try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),T&&Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=T,t.callbackify=function(t){if(“function”!=typeof t)throw new TypeError('The “original” argument must be of type Function');function r(){for(var r=[],n=0;n);var i=r.pop();if(“function”!=typeof i)throw new TypeError(“The last argument must be of type Function”);var o=this,a=function(){return i.apply(o,arguments)};t.apply(this,r).then(function(t){e.nextTick(a,null,t)},function(t){e.nextTick(j,t,a)})}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Object.defineProperties(r,i(t)),r}}).call(this,r(14))},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)}e.exports=function(e){return e&&“object”===r(e)&&“function”==typeof e.copy&&“function”==typeof e.fill&&“function”==typeof e.readUInt8}},function(e,t,r){(function(){var e,n,i,o,a,s,u,c,f,l,h,d,p={}.hasOwnProperty;l=r(12),c=r(8).WordArray,r(57),e=r(116).AES,s=r(117).TwoFish,r(77),i=r(78).Concat,r(37).SHA512,a=r(57).Salsa20,n=(d=r(213)).Base,u=d.V,h=r(217).make_esc,o=function(t){function r(e){var t,n;n=e.key,t=e.enc,r.__super__.constructor.call(this,{key:n}),null!=t&&(this.key=t.key,this.derived_keys=t.derived_keys)}return function(e,t){for(var r in t)p.call(t,r)&&(e=t);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,n),r.prototype.read_header=function(e){var t;return e(null==(t=this.ct.unshift(2))?new Error(“Ciphertext underrun in header”):null==(this.version=u[t.words])?new Error(“bad header; couldn't find a good version (got ”t.words[1]“)”):t.words!==this.version.header?new Error(“Bad header: unrecognized magic value”):null)},r.prototype.verify_sig=function(e,t){var r,n,o,a,s,u;a=l.findDeferral(arguments),(u=this,function(t){if(null==(o=u.ct.unshift(i.get_output_size()/4)))return t(n=new Error(“Ciphertext underrun in signature”));!function(t){s=new l.Deferrals(t,{parent:a,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.verify_sig”}),u.sign({input:u.ct,key:e,salt:u.salt},s.defer({assign_fn:function(){return n=arguments,r=arguments},lineno:63})),s._fulfill()}(function(){return t(n=null!=n?n:o.equal®?null:new Error(“Signature mismatch or bad decryption key”))})})(function(){return t(n)})},r.prototype.unshift_iv=function(e,t,r){var n;return r(null!=(n=this.ct.unshift(e/4))?null:new Error(“Ciphertext underrun in ”+t),n)},r.prototype.read_salt=function(e){return e(null==(this.salt=this.ct.unshift(this.version.salt_size/4))?new Error(“Ciphertext underrrun in read_salt”):null)},r.prototype.generate_keys=function(e,t){var r,n,i,o,a,s;o=l.findDeferral(arguments),i=e.progress_hook,(s=this,function(e){a=new l.Deferrals(e,{parent:o,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.generate_keys”}),s.kdf({salt:s.salt,progress_hook:i},a.defer({assign_fn:function(){return r=arguments,n=arguments},lineno:114})),a._fulfill()})(function(){return t(r,n)})},r.prototype.run=function(t,r){var n,i,o,u,f,d,p,b;d=l.findDeferral(arguments),n=t.data,u=t.progress_hook,i=h(r,“Decryptor::run”),this.ct=c.from_buffer(n),(b=this,function(e){p=new l.Deferrals(e,{parent:d,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.run”}),b.read_header(i(p.defer({lineno:141}))),p._fulfill()})(function(t){return function(){p=new l.Deferrals(function(){var n;p=new l.Deferrals(function(){p=new l.Deferrals(function(){p=new l.Deferrals(function(){p=new l.Deferrals(function(){p=new l.Deferrals(function(){p=new l.Deferrals(function(){p=new l.Deferrals(function(){p=new l.Deferrals(function(){return r(null,f.to_buffer())},{parent:d,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.run”}),t.run_salsa20({iv:o,input:t.ct,key:t.keys.salsa20,output_iv:!1,progress_hook:u},i(p.defer({assign_fn:function(){return f=arguments},lineno:150}))),p._fulfill()},{parent:d,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.run”}),t.unshift_iv(a.ivSize,“Salsa”,i(p.defer({assign_fn:function(){return o=arguments},lineno:149}))),p._fulfill()},{parent:d,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.run”}),t.run_twofish({iv:o,input:t.ct,key:t.keys.twofish,progress_hook:u},i(p.defer({assign_fn:function(){return arguments},lineno:148}))),p._fulfill()},{parent:d,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.run”}),t.unshift_iv(s.ivSize,“2fish”,i(p.defer({assign_fn:function(){return o=arguments},lineno:147}))),p._fulfill()},{parent:d,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.run”}),t.run_aes({iv:o,input:t.ct,key:t.keys.aes,progress_hook:u},i(p.defer({assign_fn:function(){return arguments},lineno:146}))),p._fulfill()},{parent:d,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.run”}),t.unshift_iv(e.ivSize,“AES”,i(p.defer({assign_fn:function(){return o=arguments},lineno:145}))),p._fulfill()},{parent:d,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.run”}),t.verify_sig(t.keys.hmac,i(p.defer({lineno:144}))),p._fulfill()},{parent:d,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.run”}),t.generate_keys({progress_hook:u},i(p.defer({assign_fn:(n=t,function(){return n.keys=arguments}),lineno:143}))),p._fulfill()},{parent:d,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”,funcname:“Decryptor.run”}),t.read_salt(i(p.defer({lineno:142}))),p._fulfill()}}(this))},r.prototype.clone=function(){var e,t;return(e=new r({key:null!=(t=this.key)?t.to_buffer():void 0,rng:this.rng,version:this.version})).derived_keys=this.clone_derived_keys(),e},r}(),f=function(e,t){var r,n,i,a,s,u,c,f;c=l.findDeferral(arguments),a=e.key,r=e.data,s=e.progress_hook,n=new o({key:a}),function(e){f=new l.Deferrals(e,{parent:c,filename:“/Users/max/src/keybase/triplesec/src/dec.iced”}),n.run({data:r,progress_hook:s},f.defer({assign_fn:function(){return i=arguments,u=arguments},lineno:180})),f._fulfill()}(function(){return n.scrub(),t(i,u)})},t.Decryptor=o,t.decrypt=f}).call(this)},function(e,t,r){(function(){var e,n,i,o,a,s={}.hasOwnProperty;o=r(8).WordArray,e=r(21).Hasher,i=[],n=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)s.call(t,r)&&(e=t);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.output_size=20,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new o()},r.prototype._doProcessBlock=function(e,t){var r,n,o,a,s,u,c,f,l,h;for(n=(r=this._hash.words),o=r,a=r,s=r,u=r,c=h=0;h<80;c=++h)c<16?i=0|e:(f=i^i^i^i,i=f<<1|f>>>31),l=(n<<5|n>>>27)+u+i,l+=c<20?1518500249+(o&a|~o&s):c<40?1859775393+(o^a^s):c<60?(o&a|o&s|a&s)-1894007588:(o^a^s)-899497514,u=s,s=a,a=o<<30|o>>>2,o=n,n=l;return r=r+n|0,r=r+o|0,r=r+a|0,r=r+s|0,r=r+u|0},r.prototype._doFinalize=function(){var e,t,r,n;return >>9<<4)">128<<24-r%32,t=Math.floor(n/4294967296),t=n,e.sigBytes=4*t.length,this._process(),this._hash},r.prototype.copy_to=function(e){return r.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),a=a=function(e){var t;return t=(new n).finalize(e),e.scrub(),t},t.SHA1=n,t.transform=a}).call(this)},function(e,t,r){(function(){var e,n,i,o,a={}.hasOwnProperty;i=r(8).WordArray,n=r(118).SHA256,e=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)a.call(t,r)&&(e=t);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,n),t.output_size=28,t.prototype.output_size=t.output_size,t.prototype._doReset=function(){return this._hash=new i()},t.prototype._doFinalize=function(){var e;return(e=t.__super__._doFinalize.call(this)).sigBytes-=4,e},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(),o=function(t){var r;return r=(new e).finalize(t),t.scrub(),r},t.SHA224=e,t.transform=o}).call(this)},function(e,t,r){(function(){var e,n,i,o,a,s,u,c={}.hasOwnProperty;s=r(8),o=s.X64WordArray,s.WordArray,i=(u=r(37)).SHA512,e=u.Global,n=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)c.call(t,r)&&(e=t);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,i),r.output_size=48,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new o(e.convert())},r.prototype._doFinalize=function(){var e;return(e=r.__super__._doFinalize.call(this)).sigBytes-=16,e},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),a=function(e){var t;return t=(new n).finalize(e),e.scrub(),t},t.SHA384=n,t.transform=a}).call(this)},function(e,t,r){(function(){var e,n,i,o,a,s,u,c,f,l={}.hasOwnProperty;c=r(8).WordArray,a=r(21).Hasher,i=function(){return function(){var e;this.T=function(){var t,r;for(r=[],e=t=0;t<64;e=++t)r.push(4294967296*Math.abs(Math.sin(e+1))|0);return r}()}}(),f=new i,t.MD5=u=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)l.call(t,r)&&(e=t);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,a),r.blockSize=16,r.prototype.blockSize=r.blockSize,r.output_size=16,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new c()},r.prototype._doProcessBlock=function(t,r){var i,a,u,c,l,h,d,p,b,y,m,g,v,_,w,S,k,x,E,A,P,O,T,j,M;for(T=M=0;M<16;T=++M)x=t,t=16711935&(x<<8|x>>>24)|4278255360&(x<<24|x>>>8);return i=this._hash.words,a=t,u=t,y=t,m=t,g=t,v=t,_=t,w=t,S=t,k=t,c=t,l=t,h=t,d=t,p=t,b=t,E=i,A=i,P=i,O=i,E=e(E,A,P,O,a,7,f.T),O=e(O,E,A,P,u,12,f.T),P=e(P,O,E,A,y,17,f.T),A=e(A,P,O,E,m,22,f.T),E=e(E,A,P,O,g,7,f.T),O=e(O,E,A,P,v,12,f.T),P=e(P,O,E,A,_,17,f.T),A=e(A,P,O,E,w,22,f.T),E=e(E,A,P,O,S,7,f.T),O=e(O,E,A,P,k,12,f.T),P=e(P,O,E,A,c,17,f.T),A=e(A,P,O,E,l,22,f.T),E=e(E,A,P,O,h,7,f.T),O=e(O,E,A,P,d,12,f.T),P=e(P,O,E,A,p,17,f.T),A=e(A,P,O,E,b,22,f.T),E=n(E,A,P,O,u,5,f.T),O=n(O,E,A,P,_,9,f.T),P=n(P,O,E,A,l,14,f.T),A=n(A,P,O,E,a,20,f.T),E=n(E,A,P,O,v,5,f.T),O=n(O,E,A,P,c,9,f.T),P=n(P,O,E,A,b,14,f.T),A=n(A,P,O,E,g,20,f.T),E=n(E,A,P,O,k,5,f.T),O=n(O,E,A,P,p,9,f.T),P=n(P,O,E,A,m,14,f.T),A=n(A,P,O,E,S,20,f.T),E=n(E,A,P,O,d,5,f.T),O=n(O,E,A,P,y,9,f.T),P=n(P,O,E,A,w,14,f.T),A=n(A,P,O,E,h,20,f.T),E=o(E,A,P,O,v,4,f.T),O=o(O,E,A,P,S,11,f.T),P=o(P,O,E,A,l,16,f.T),A=o(A,P,O,E,p,23,f.T),E=o(E,A,P,O,u,4,f.T),O=o(O,E,A,P,g,11,f.T),P=o(P,O,E,A,w,16,f.T),A=o(A,P,O,E,c,23,f.T),E=o(E,A,P,O,d,4,f.T),O=o(O,E,A,P,a,11,f.T),P=o(P,O,E,A,m,16,f.T),A=o(A,P,O,E,_,23,f.T),E=o(E,A,P,O,k,4,f.T),O=o(O,E,A,P,h,11,f.T),P=o(P,O,E,A,b,16,f.T),A=o(A,P,O,E,y,23,f.T),E=s(E,A,P,O,a,6,f.T),O=s(O,E,A,P,w,10,f.T),P=s(P,O,E,A,p,15,f.T),A=s(A,P,O,E,v,21,f.T),E=s(E,A,P,O,h,6,f.T),O=s(O,E,A,P,m,10,f.T),P=s(P,O,E,A,c,15,f.T),A=s(A,P,O,E,u,21,f.T),E=s(E,A,P,O,S,6,f.T),O=s(O,E,A,P,b,10,f.T),P=s(P,O,E,A,_,15,f.T),A=s(A,P,O,E,d,21,f.T),E=s(E,A,P,O,g,6,f.T),O=s(O,E,A,P,l,10,f.T),P=s(P,O,E,A,y,15,f.T),A=s(A,P,O,E,k,21,f.T),i=i+E|0,i=i+A|0,i=i+P|0,i=i+O|0},r.prototype._doFinalize=function(){var >>9<<4)">128<<24-a%32,u=Math.floor(s/4294967296),c=s,n=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),n=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),r.sigBytes=4*(n.length+1),this._process(),e=(i=this._hash).words,o=f=0;f<4;o=++f)t=e,e=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8);return i},r.prototype.copy_to=function(e){return r.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),e=function(e,t,r,n,i,o,a){var s;return((s=e+(t&r|~t&n)+i+a)<<o|s>>>32-o)+t},n=function(e,t,r,n,i,o,a){var s;return((s=e+(t&n|r&~n)+i+a)<<o|s>>>32-o)+t},o=function(e,t,r,n,i,o,a){var s;return((s=e+(t^r^n)+i+a)<<o|s>>>32-o)+t},s=function(e,t,r,n,i,o,a){var s;return((s=e+(r^(t|~n))+i+a)<<o|s>>>32-o)+t},t.transform=function(e){var t;return t=(new u).finalize(e),e.scrub(),t}}).call(this)},function(e,t,r){(function(){var e,n,i,o,a,s,u,c,f,l,h,d,p,b={}.hasOwnProperty;p=r(8),a=p.WordArray,p.X64Word,p.X64WordArray,i=r(21).Hasher,n=function(){return function(){this._zl=new a(),this._zr=new a(),this._sl=new a(),this._sr=new a(),this._hl=new a(),this._hr=new a()}}(),e=new n,o=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)b.call(t,r)&&(e=t);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,i),r.blockSize=16,r.prototype.blockSize=r.blockSize,r.output_size=20,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new a()},r.prototype.get_output_size=function(){return this.output_size},r.prototype._doProcessBlock=function(t,r){var n,i,o,a,d,p,b,y,m,g,v,_,w,S,k,x,E,A,P,O,T,j,M;for(k=j=0;j<16;k=++j)i=t,t=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);for(n=this._hash.words,w=e._hl.words,S=e._hr.words,O=e._zl.words,T=e._zr.words,E=e._sl.words,A=e._sr.words,a=o=n,p=d=n,y=b=n,g=m=n,_=v=n,k=M=0;M<80;k=++M)P=o+t[r+O]|0,P+=k<16?s(d,b,m)+w:k<32?u(d,b,m)+w:k<48?c(d,b,m)+w:k<64?f(d,b,m)+w:l(d,b,m)+w,P=(P=h(P|=0,E))+v|0,o=v,v=m,m=h(b,10),b=d,d=P,P=a+t[r+T]|0,P+=k<16?l(p,y,g)+S:k<32?f(p,y,g)+S:k<48?c(p,y,g)+S:k<64?u(p,y,g)+S:s(p,y,g)+S,P=(P=h(P|=0,A))+_|0,a=_,_=g,g=h(y,10),y=p,p=P;return P=n+b+g|0,n=nm_|0,n=n+v+a|0,n=n+o+p|0,n=n+d+y|0,n=P},r.prototype._doFinalize=function(){var >>9<<4)">128<<24-a%32,n=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),r.sigBytes=4*(n.length+1),this._process(),e=(i=this._hash).words,o=u=0;u<5;o=++u)t=e,e=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8);return i},r.prototype.scrub=function(){return this._hash.scrub()},r.prototype.copy_to=function(e){return r.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(),s=function(e,t,r){return e^t^r},u=function(e,t,r){return e&t|~e&r},c=function(e,t,r){return(e|~t)^r},f=function(e,t,r){return e&r|t&~r},l=function(e,t,r){return e^(t|~r)},h=function(e,t){return e<<t|e>>>32-t},d=function(e){var t;return t=(new o).finalize(e),e.scrub(),t},t.RIPEMD160=o,t.transform=d}).call(this)},function(e,t,r){”use strict“;Object.defineProperty(t,”__esModule“,{value:!0});var n=r(105);t.encryptECIES=n.encryptECIES,t.decryptECIES=n.decryptECIES,t.signECDSA=n.signECDSA,t.verifyECDSA=n.verifyECDSA,t.getHexFromBN=n.getHexFromBN;var i=r(212);t.encryptMnemonic=i.encryptMnemonic,t.decryptMnemonic=i.decryptMnemonic}])}); //# sourceMappingURL=aladin.js.map