text: define("bigchaindb-orm",[],function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].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[t]}.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=45)}([function(e,t,r){var n=r(25)("wks"),i=r(16),u=r(1).Symbol,o="function"==typeof u;(e.exports=function(e){return n[e]||(n[e]=o&&u[e]||(o?u:i)("Symbol."+e))}).store=n},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){var r=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(9),i=r(33),u=r(20),o=Object.defineProperty;t.f=r(4)?Object.defineProperty:function(e,t,r){if(n(e),t=u(t,!0),n(r),i)try{return o(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){e.exports=!r(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(3),i=r(12);e.exports=r(4)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(41),i=r(22);e.exports=function(e){return n(i(e))}},function(e,t,r){var n=r(1),i=r(2),u=r(32),o=r(6),a=r(5),f=function(e,t,r){var d,s,c,h=e&f.F,l=e&f.G,p=e&f.S,b=e&f.P,y=e&f.B,m=e&f.W,g=l?i:i[t]||(i[t]={}),v=g.prototype,_=l?n:p?n[t]:(n[t]||{}).prototype;for(d in l&&(r=t),r)(s=!h&&_&&void 0!==_[d])&&a(g,d)||(c=s?_[d]:r[d],g[d]=l&&"function"!=typeof _[d]?r[d]:y&&s?u(c,n):m&&_[d]==c?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):b&&"function"==typeof c?u(Function.call,c):c,b&&((g.virtual||(g.virtual={}))[d]=c,e&f.R&&v&&!v[d]&&o(v,d,c)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},function(e,t,r){var n=r(10);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports={}},function(e,t){e.exports=!0},function(e,t,r){var n=r(40),i=r(26);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(46));t.default=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,n.default)(e,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}()},function(e,t,r){var n=r(10);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(25)("keys"),i=r(16);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t,r){var n=r(2),i=r(1),u=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(14)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(3).f,i=r(5),u=r(0)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,u)&&n(e,u,{configurable:!0,value:t})}},function(e,t,r){var n=r(22);e.exports=function(e){return Object(n(e))}},function(e,t,r){t.f=r(0)},function(e,t,r){var n=r(1),i=r(2),u=r(14),o=r(29),a=r(3).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=u?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:o.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(49);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){e.exports=!r(4)&&!r(11)(function(){return 7!=Object.defineProperty(r(34)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(10),i=r(1).document,u=n(i)&&n(i.createElement);e.exports=function(e){return u?i.createElement(e):{}}},function(module,exports){module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].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[t]}.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=87)}([function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t){var r=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},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(82),i=r(81),u=r(80);function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(o()<t)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=f.prototype:(null===e&&(e=new f(t)),e.length=t),e}function f(e,t,r){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}return d(this,e,t,r)}function d(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),f.TYPED_ARRAY_SUPPORT?(e=t).__proto__=f.prototype:e=h(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!f.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|p(t,r),i=(e=a(e,n)).write(t,r);return i!==n&&(e=e.slice(0,i)),e}(e,t,r):function(e,t){if(f.isBuffer(t)){var r=0|l(t.length);return 0===(e=a(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?a(e,0):h(e,t);if("Buffer"===t.type&&u(t.data))return h(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function s(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t){if(s(t),e=a(e,t<0?0:0|l(t)),!f.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|l(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function l(e){if(e>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|e}function p(e,t){if(f.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 F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return z(e).length;default:if(n)return F(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=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:m(e,t,r,n,i);if("number"==typeof t)return t&=255,f.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 u,o=1,a=e.length,f=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;o=2,a/=2,f/=2,r/=2}function d(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var s=-1;for(u=r;u<a;u++)if(d(e,u)===d(t,-1===s?0:u-s)){if(-1===s&&(s=u),u-s+1===f)return s*o}else-1!==s&&(u-=u-s),s=-1}else for(r+f>a&&(r=a-f),u=r;u>=0;u--){for(var c=!0,h=0;h<f;h++)if(d(e,u+h)!==d(t,h)){c=!1;break}if(c)return u}return-1}function g(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var u=t.length;if(u%2!=0)throw new TypeError("Invalid hex string");n>u/2&&(n=u/2);for(var o=0;o<n;++o){var a=parseInt(t.substr(2*o,2),16);if(isNaN(a))return o;e[r+o]=a}return o}function v(e,t,r,n){return q(F(t,e.length-r),e,r,n)}function _(e,t,r,n){return q(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function w(e,t,r,n){return _(e,t,r,n)}function S(e,t,r,n){return q(z(t),e,r,n)}function E(e,t,r,n){return q(function(e,t){for(var r,n,i,u=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i=r%256,u.push(i),u.push(n);return u}(t,e.length-r),e,r,n)}function A(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function x(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var u,o,a,f,d=e[i],s=null,c=d>239?4:d>223?3:d>191?2:1;if(i+c<=r)switch(c){case 1:d<128&&(s=d);break;case 2:128==(192&(u=e[i+1]))&&(f=(31&d)<<6|63&u)>127&&(s=f);break;case 3:u=e[i+1],o=e[i+2],128==(192&u)&&128==(192&o)&&(f=(15&d)<<12|(63&u)<<6|63&o)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:u=e[i+1],o=e[i+2],a=e[i+3],128==(192&u)&&128==(192&o)&&128==(192&a)&&(f=(15&d)<<18|(63&u)<<12|(63&o)<<6|63&a)>65535&&f<1114112&&(s=f)}null===s?(s=65533,c=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=c}return function(e){var t=e.length;if(t<=k)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=k));return r}(n)}t.Buffer=f,t.SlowBuffer=function(e){return+e!=e&&(e=0),f.alloc(+e)},t.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=o(),f.poolSize=8192,f._augment=function(e){return e.__proto__=f.prototype,e},f.from=function(e,t,r){return d(null,e,t,r)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(e,t,r){return function(e,t,r,n){return s(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},f.allocUnsafe=function(e){return c(null,e)},f.allocUnsafeSlow=function(e){return c(null,e)},f.isBuffer=function(e){return!(null==e||!e._isBuffer)},f.compare=function(e,t){if(!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,u=Math.min(r,n);i<u;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!u(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=f.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},f.byteLength=p,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)b(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},f.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?x(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.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 x(this,t,r);case"ascii":return M(this,t,r);case"latin1":case"binary":return I(this,t,r);case"base64":return A(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.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+=" ... ")),"<Buffer "+e+">"},f.prototype.compare=function(e,t,r,n,i){if(!f.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(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var u=i-n,o=r-t,a=Math.min(u,o),d=this.slice(n,i),s=e.slice(t,r),c=0;c<a;++c)if(d[c]!==s[c]){u=d[c],o=s[c];break}return u<o?-1:o<u?1:0},f.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)},f.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(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 u=!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 E(this,e,t,r);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function M(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function I(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function T(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",u=t;u<r;++u)i+=D(e[u]);return i}function B(e,t,r){for(var n=e.slice(t,r),i="",u=0;u<n.length;u+=2)i+=String.fromCharCode(n[u]+256*n[u+1]);return i}function P(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,r,n,i,u){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<u)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function O(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,u=Math.min(e.length-r,2);i<u;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function R(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,u=Math.min(e.length-r,4);i<u;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function j(e,t,r,n,i,u){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(e,t,r,n,u){return u||j(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function L(e,t,r,n,u){return u||j(e,0,r,8),i.write(e,t,r,n,52,8),r+8}f.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),f.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=f.prototype;else{var i=t-e;r=new f(i,void 0);for(var u=0;u<i;++u)r[u]=this[u+e]}return r},f.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,u=0;++u<t&&(i*=256);)n+=this[e+u]*i;return n},f.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},f.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,u=0;++u<t&&(i*=256);)n+=this[e+u]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},f.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,i=1,u=this[e+--n];n>0&&(i*=256);)u+=this[e+--n]*i;return u>=(i*=128)&&(u-=Math.pow(2,8*t)),u},f.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||C(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,u=0;for(this[t]=255&e;++u<r&&(i*=256);)this[t+u]=e/i&255;return t+r},f.prototype.writeUIntBE=function(e,t,r,n){e=+e,t|=0,r|=0,n||C(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,u=1;for(this[t+i]=255&e;--i>=0&&(u*=256);)this[t+i]=e/u&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);C(this,e,t,r,i-1,-i)}var u=0,o=1,a=0;for(this[t]=255&e;++u<r&&(o*=256);)e<0&&0===a&&0!==this[t+u-1]&&(a=1),this[t+u]=(e/o>>0)-a&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);C(this,e,t,r,i-1,-i)}var u=r-1,o=1,a=0;for(this[t+u]=255&e;--u>=0&&(o*=256);)e<0&&0===a&&0!==this[t+u+1]&&(a=1),this[t+u]=(e/o>>0)-a&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,r){return U(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return U(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return L(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return L(this,e,t,!1,r)},f.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<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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<n-r&&(n=e.length-t+r);var i,u=n-r;if(this===e&&r<t&&t<n)for(i=u-1;i>=0;--i)e[i+t]=this[i+r];else if(u<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<u;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+u),t);return u},f.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var u;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(u=t;u<r;++u)this[u]=e;else{var o=f.isBuffer(e)?e:F(new f(e,n).toString()),a=o.length;for(u=0;u<r-t;++u)this[u+t]=o[u%a]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function D(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var r;t=t||1/0;for(var n=e.length,i=null,u=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&u.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&u.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&u.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&u.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;u.push(r)}else if(r<2048){if((t-=2)<0)break;u.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;u.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;u.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return u}function z(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(0))},function(e,t,r){var n=r(84);e.exports=n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,r){var n=r(57),i=r(55);e.exports=function(e){return n(i(e))}},function(e,t,r){e.exports=!r(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t){var r,n,i=e.exports={};function u(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===u||!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:u}catch(e){r=u}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var f,d=[],s=!1,c=-1;function h(){s&&f&&(s=!1,f.length?d=f.concat(d):c=-1,d.length&&l())}function l(){if(!s){var e=a(h);s=!0;for(var t=d.length;t;){for(f=d,d=[];++c<t;)f&&f[c].run();c=-1,t=d.length}f=null,s=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function b(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];d.push(new p(e,t)),1!==d.length||s||a(l)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=b,i.addListener=b,i.once=b,i.off=b,i.removeListener=b,i.removeAllListeners=b,i.emit=b,i.prependListener=b,i.prependOnceListener=b,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=void 0;"getConditionUri"in t?r=t.getConditionUri():"serializeUri"in t&&(r=t.serializeUri());var i={details:{},uri:r};return 0===t.getTypeId()&&(i.details.type_id=0,i.details.bitmask=3,"preimage"in t&&(i.details.preimage=t.preimage.toString(),i.details.type="fulfillment")),2===t.getTypeId()?{details:{type:"threshold-sha-256",threshold:t.threshold,subconditions:t.subconditions.map(function(t){return e(t.body).details})},uri:r}:(4===t.getTypeId()&&(i.details.type="ed25519-sha-256","publicKey"in t&&(i.details.public_key=n.default.encode(t.publicKey))),"hash"in t&&(i.details.hash=n.default.encode(t.hash),i.details.max_fulfillment_length=t.maxFulfillmentLength,i.details.type="condition"),i)};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(3))},function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function u(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new u(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new u(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},u.prototype.unref=u.prototype.ref=function(){},u.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(23),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(0))},function(module,exports,__webpack_require__){(function(setImmediate,clearImmediate){module.exports=function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=84)}([function(e,t,r){"use strict";(function(e){function n(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(e,t){if(n()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return o(this,e,t,r)}function o(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t),e}(e,t,r,n):"string"==typeof t?function(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|c(t,r),o=(e=i(e,n)).write(t,r);return o!==n&&(e=e.slice(0,o)),e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|s(t.length);return 0===(e=i(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?i(e,0):d(e,t);if("Buffer"===t.type&&F(t.data))return d(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function a(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(a(t),e=i(e,t<0?0:0|s(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function d(e,t){var r=t.length<0?0:0|s(t.length);e=i(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function s(e){if(e>=n())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n().toString(16)+" bytes");return 0|e}function c(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 j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(n)return j(e).length;t=(""+t).toLowerCase(),n=!0}}function h(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function l(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:p(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):p(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function p(e,t,r,n,i){function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}var o,a=1,f=e.length,d=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,f/=2,d/=2,r/=2}if(i){var s=-1;for(o=r;o<f;o++)if(u(e,o)===u(t,-1===s?0:o-s)){if(-1===s&&(s=o),o-s+1===d)return s*a}else-1!==s&&(o-=o-s),s=-1}else for(r+d>f&&(r=f-d),o=r;o>=0;o--){for(var c=!0,h=0;h<d;h++)if(u(e,o+h)!==u(t,h)){c=!1;break}if(c)return o}return-1}function b(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var u=t.length;if(u%2!=0)throw new TypeError("Invalid hex string");n>u/2&&(n=u/2);for(var o=0;o<n;++o){var a=parseInt(t.substr(2*o,2),16);if(isNaN(a))return o;e[r+o]=a}return o}function y(e,t,r,n){return L(j(t,e.length-r),e,r,n)}function m(e,t,r,n){return L(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function g(e,t,r,n){return m(e,t,r,n)}function v(e,t,r,n){return L(U(t),e,r,n)}function _(e,t,r,n){return L(function(e,t){for(var r,n,i,u=[],o=0;o<e.length&&!((t-=2)<0);++o)n=(r=e.charCodeAt(o))>>8,i=r%256,u.push(i),u.push(n);return u}(t,e.length-r),e,r,n)}function w(e,t,r){return 0===t&&r===e.length?N.fromByteArray(e):N.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var u,o,a,f,d=e[i],s=null,c=d>239?4:d>223?3:d>191?2:1;if(i+c<=r)switch(c){case 1:d<128&&(s=d);break;case 2:128==(192&(u=e[i+1]))&&(f=(31&d)<<6|63&u)>127&&(s=f);break;case 3:u=e[i+1],o=e[i+2],128==(192&u)&&128==(192&o)&&(f=(15&d)<<12|(63&u)<<6|63&o)>2047&&(f<55296||f>57343)&&(s=f);break;case 4:u=e[i+1],o=e[i+2],a=e[i+3],128==(192&u)&&128==(192&o)&&128==(192&a)&&(f=(15&d)<<18|(63&u)<<12|(63&o)<<6|63&a)>65535&&f<1114112&&(s=f)}null===s?(s=65533,c=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=c}return function(e){var t=e.length;if(t<=z)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=z));return r}(n)}function E(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function A(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function x(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",u=t;u<r;++u)i+=R(e[u]);return i}function k(e,t,r){for(var n=e.slice(t,r),i="",u=0;u<n.length;u+=2)i+=String.fromCharCode(n[u]+256*n[u+1]);return i}function M(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)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||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function T(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,u=Math.min(e.length-r,2);i<u;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function B(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,u=Math.min(e.length-r,4);i<u;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function P(e,t,r,n,i,u){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function C(e,t,r,n,i){return i||P(e,0,r,4),D.write(e,t,r,n,23,4),r+4}function O(e,t,r,n,i){return i||P(e,0,r,8),D.write(e,t,r,n,52,8),r+8}function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){t=t||1/0;for(var r,n=e.length,i=null,u=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&u.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&u.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&u.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&u.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;u.push(r)}else if(r<2048){if((t-=2)<0)break;u.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;u.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;u.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return u}function U(e){return N.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function L(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}var N=r(86),D=r(87),F=r(48);t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=n(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return o(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return a(t),t<=0?i(e,t):void 0!==r?"string"==typeof n?i(e,t).fill(r,n):i(e,t).fill(r):i(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!F(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!u.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},u.byteLength=c,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?S(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.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 x(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return E(this,t,r);case"latin1":case"binary":return A(this,t,r);case"base64":return w(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(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+=" ... ")),"<Buffer "+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(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,f=Math.min(o,a),d=this.slice(n,i),s=e.slice(t,r),c=0;c<f;++c)if(d[c]!==s[c]){o=d[c],a=s[c];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return l(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return l(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(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 u=!1;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return y(this,e,t,r);case"ascii":return m(this,e,t,r);case"latin1":case"binary":return g(this,e,t,r);case"base64":return v(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,r);default:if(u)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),u=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var z=4096;u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);for(var n=this[e],i=1,u=0;++u<t&&(i*=256);)n+=this[e+u]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||M(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(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,u=0;++u<t&&(i*=256);)n+=this[e+u]*i;return n>=(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,u=this[e+--n];n>0&&(i*=256);)u+=this[e+--n]*i;return u>=(i*=128)&&(u-=Math.pow(2,8*t)),u},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),D.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),D.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),D.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),D.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,u=0;for(this[t]=255&e;++u<r&&(i*=256);)this[t+u]=e/i&255;return t+r},u.prototype.writeUIntBE=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=r-1,u=1;for(this[t+i]=255&e;--i>=0&&(u*=256);)this[t+i]=e/u&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):T(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):T(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):B(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):B(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 u=0,o=1,a=0;for(this[t]=255&e;++u<r&&(o*=256);)e<0&&0===a&&0!==this[t+u-1]&&(a=1),this[t+u]=(e/o>>0)-a&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 u=r-1,o=1,a=0;for(this[t+u]=255&e;--u>=0&&(o*=256);)e<0&&0===a&&0!==this[t+u+1]&&(a=1),this[t+u]=(e/o>>0)-a&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):T(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):T(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):B(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):B(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return C(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return C(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return O(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return O(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<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=u.isBuffer(e)?e:j(new u(e,n).toString()),f=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%f]}return this};var q=/[^+\/0-9A-Za-z-_]/g}).call(t,r(9))},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 n(e,t){for(var r in e)t[r]=e[r]}function i(e,t,r){return o(e,t,r)}var u=r(0),o=u.Buffer;o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=u:(n(u,t),t.Buffer=i),n(o,i),i.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},i.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return u.SlowBuffer(e)}},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function u(e,t,r){if(u.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"))}function o(e,t,r){for(var n=0,i=Math.min(e.length,r),u=t;u<i;u++){var o=e.charCodeAt(u)-48;n<<=4,n|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return n}function a(e,t,r,n){for(var i=0,u=Math.min(e.length,r),o=t;o<u;o++){var a=e.charCodeAt(o)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}function f(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],u=0|t.words[0],o=i*u,a=67108863&o,f=o/67108864|0;r.words[0]=a;for(var d=1;d<n;d++){for(var s=f>>>26,c=67108863&f,h=Math.min(d,t.length-1),l=Math.max(0,d-e.length+1);l<=h;l++){var p=d-l|0;s+=(o=(i=0|e.words[p])*(u=0|t.words[l])+c)/67108864|0,c=67108863&o}r.words[d]=0|c,f=0|s}return 0!==f?r.words[d]=0|f:r.length--,r.strip()}function d(e,t,r){return(new s).mulp(e,t,r)}function s(e,t){this.x=e,this.y=t}function c(e,t){this.name=e,this.p=new u(t,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function h(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function l(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function p(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function y(e){if("string"==typeof e){var t=u._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function m(e){y.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new u(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)}var g;"object"==typeof e?e.exports=u:t.BN=u,u.BN=u,u.wordSize=26;try{g=r(95).Buffer}catch(e){}u.isBN=function(e){return e instanceof u||null!==e&&"object"==typeof e&&e.constructor.wordSize===u.wordSize&&Array.isArray(e.words)},u.max=function(e,t){return e.cmp(t)>0?e:t},u.min=function(e,t){return e.cmp(t)<0?e:t},u.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},u.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):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},u.prototype._initArray=function(e,t,r){if(n("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 i=0;i<this.length;i++)this.words[i]=0;var u,o,a=0;if("be"===r)for(i=e.length-1,u=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[u]|=o<<a&67108863,this.words[u+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,u++);else if("le"===r)for(i=0,u=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[u]|=o<<a&67108863,this.words[u+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,u++);return this.strip()},u.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,u=0;for(r=e.length-6,n=0;r>=t;r-=6)i=o(e,r,r+6),this.words[n]|=i<<u&67108863,this.words[n+1]|=i>>>26-u&4194303,(u+=24)>=26&&(u-=26,n++);r+6!==t&&(i=o(e,t,r+6),this.words[n]|=i<<u&67108863,this.words[n+1]|=i>>>26-u&4194303),this.strip()},u.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 u=e.length-r,o=u%n,f=Math.min(u,u-o)+r,d=0,s=r;s<f;s+=n)d=a(e,s,s+n,t),this.imuln(i),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d);if(0!==o){var c=1;for(d=a(e,s,e.length,t),s=0;s<o;s++)c*=t;this.imuln(c),this.words[0]+d<67108864?this.words[0]+=d:this._iaddn(d)}},u.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},u.prototype.clone=function(){var e=new u(null);return this.copy(e),e},u.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},u.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},u.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},u.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=["","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"],_=[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],w=[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];u.prototype.toString=function(e,t){var r;if(e=e||10,t=0|t||1,16===e||"hex"===e){r="";for(var i=0,u=0,o=0;o<this.length;o++){var a=this.words[o],f=(16777215&(a<<i|u)).toString(16);r=0!=(u=a>>>24-i&16777215)||o!==this.length-1?v[6-f.length]+f+r:f+r,(i+=2)>=26&&(i-=26,o--)}for(0!==u&&(r=u.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 d=_[e],s=w[e];r="";var c=this.clone();for(c.negative=0;!c.isZero();){var h=c.modn(s).toString(e);r=(c=c.idivn(s)).isZero()?h+r:v[d-h.length]+h+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},u.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&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},u.prototype.toJSON=function(){return this.toString(16)},u.prototype.toBuffer=function(e,t){return n(void 0!==g),this.toArrayLike(g,e,t)},u.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},u.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),u=r||Math.max(1,i);n(i<=u,"byte array longer than desired length"),n(u>0,"Requested array length <= 0"),this.strip();var o,a,f="le"===t,d=new e(u),s=this.clone();if(f){for(a=0;!s.isZero();a++)o=s.andln(255),s.iushrn(8),d[a]=o;for(;a<u;a++)d[a]=0}else{for(a=0;a<u-i;a++)d[a]=0;for(a=0;!s.isZero();a++)o=s.andln(255),s.iushrn(8),d[u-a-1]=o}return d},Math.clz32?u.prototype._countBits=function(e){return 32-Math.clz32(e)}:u.prototype._countBits=function(e){var t=e,r=0;return t>=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},u.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},u.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},u.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return 0!==this.negative},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},u.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},u.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},u.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},u.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},u.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},u.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},u.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},u.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},u.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},u.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},u.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},u.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},u.prototype.notn=function(e){return this.clone().inotn(e)},u.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},u.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,u=0;u<n.length;u++)t=(0|r.words[u])+(0|n.words[u])+i,this.words[u]=67108863&t,i=t>>>26;for(;0!==i&&u<r.length;u++)t=(0|r.words[u])+i,this.words[u]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;u<r.length;u++)this.words[u]=r.words[u];return this},u.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},u.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 u=0,o=0;o<n.length;o++)u=(t=(0|r.words[o])-(0|n.words[o])+u)>>26,this.words[o]=67108863&t;for(;0!==u&&o<r.length;o++)u=(t=(0|r.words[o])+u)>>26,this.words[o]=67108863&t;if(0===u&&o<r.length&&r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&&(this.negative=1),this.strip()},u.prototype.sub=function(e){return this.clone().isub(e)};var S=function(e,t,r){var n,i,u,o=e.words,a=t.words,f=r.words,d=0,s=0|o[0],c=8191&s,h=s>>>13,l=0|o[1],p=8191&l,b=l>>>13,y=0|o[2],m=8191&y,g=y>>>13,v=0|o[3],_=8191&v,w=v>>>13,S=0|o[4],E=8191&S,A=S>>>13,x=0|o[5],k=8191&x,M=x>>>13,I=0|o[6],T=8191&I,B=I>>>13,P=0|o[7],C=8191&P,O=P>>>13,R=0|o[8],j=8191&R,U=R>>>13,L=0|o[9],N=8191&L,D=L>>>13,F=0|a[0],z=8191&F,q=F>>>13,K=0|a[1],Y=8191&K,H=K>>>13,J=0|a[2],G=8191&J,V=J>>>13,W=0|a[3],X=8191&W,Z=W>>>13,$=0|a[4],Q=8191&$,ee=$>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],ue=8191&ie,oe=ie>>>13,ae=0|a[7],fe=8191&ae,de=ae>>>13,se=0|a[8],ce=8191&se,he=se>>>13,le=0|a[9],pe=8191&le,be=le>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(d+(n=Math.imul(c,z))|0)+((8191&(i=(i=Math.imul(c,q))+Math.imul(h,z)|0))<<13)|0;d=((u=Math.imul(h,q))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(b,z)|0,u=Math.imul(b,q);var me=(d+(n=n+Math.imul(c,Y)|0)|0)+((8191&(i=(i=i+Math.imul(c,H)|0)+Math.imul(h,Y)|0))<<13)|0;d=((u=u+Math.imul(h,H)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(m,z),i=(i=Math.imul(m,q))+Math.imul(g,z)|0,u=Math.imul(g,q),n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,H)|0)+Math.imul(b,Y)|0,u=u+Math.imul(b,H)|0;var ge=(d+(n=n+Math.imul(c,G)|0)|0)+((8191&(i=(i=i+Math.imul(c,V)|0)+Math.imul(h,G)|0))<<13)|0;d=((u=u+Math.imul(h,V)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(_,z),i=(i=Math.imul(_,q))+Math.imul(w,z)|0,u=Math.imul(w,q),n=n+Math.imul(m,Y)|0,i=(i=i+Math.imul(m,H)|0)+Math.imul(g,Y)|0,u=u+Math.imul(g,H)|0,n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(b,G)|0,u=u+Math.imul(b,V)|0;var ve=(d+(n=n+Math.imul(c,X)|0)|0)+((8191&(i=(i=i+Math.imul(c,Z)|0)+Math.imul(h,X)|0))<<13)|0;d=((u=u+Math.imul(h,Z)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(E,z),i=(i=Math.imul(E,q))+Math.imul(A,z)|0,u=Math.imul(A,q),n=n+Math.imul(_,Y)|0,i=(i=i+Math.imul(_,H)|0)+Math.imul(w,Y)|0,u=u+Math.imul(w,H)|0,n=n+Math.imul(m,G)|0,i=(i=i+Math.imul(m,V)|0)+Math.imul(g,G)|0,u=u+Math.imul(g,V)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(b,X)|0,u=u+Math.imul(b,Z)|0;var _e=(d+(n=n+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,ee)|0)+Math.imul(h,Q)|0))<<13)|0;d=((u=u+Math.imul(h,ee)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(k,z),i=(i=Math.imul(k,q))+Math.imul(M,z)|0,u=Math.imul(M,q),n=n+Math.imul(E,Y)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(A,Y)|0,u=u+Math.imul(A,H)|0,n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(w,G)|0,u=u+Math.imul(w,V)|0,n=n+Math.imul(m,X)|0,i=(i=i+Math.imul(m,Z)|0)+Math.imul(g,X)|0,u=u+Math.imul(g,Z)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(b,Q)|0,u=u+Math.imul(b,ee)|0;var we=(d+(n=n+Math.imul(c,re)|0)|0)+((8191&(i=(i=i+Math.imul(c,ne)|0)+Math.imul(h,re)|0))<<13)|0;d=((u=u+Math.imul(h,ne)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(T,z),i=(i=Math.imul(T,q))+Math.imul(B,z)|0,u=Math.imul(B,q),n=n+Math.imul(k,Y)|0,i=(i=i+Math.imul(k,H)|0)+Math.imul(M,Y)|0,u=u+Math.imul(M,H)|0,n=n+Math.imul(E,G)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(A,G)|0,u=u+Math.imul(A,V)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,Z)|0)+Math.imul(w,X)|0,u=u+Math.imul(w,Z)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(g,Q)|0,u=u+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,u=u+Math.imul(b,ne)|0;var Se=(d+(n=n+Math.imul(c,ue)|0)|0)+((8191&(i=(i=i+Math.imul(c,oe)|0)+Math.imul(h,ue)|0))<<13)|0;d=((u=u+Math.imul(h,oe)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,q))+Math.imul(O,z)|0,u=Math.imul(O,q),n=n+Math.imul(T,Y)|0,i=(i=i+Math.imul(T,H)|0)+Math.imul(B,Y)|0,u=u+Math.imul(B,H)|0,n=n+Math.imul(k,G)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(M,G)|0,u=u+Math.imul(M,V)|0,n=n+Math.imul(E,X)|0,i=(i=i+Math.imul(E,Z)|0)+Math.imul(A,X)|0,u=u+Math.imul(A,Z)|0,n=n+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(w,Q)|0,u=u+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,u=u+Math.imul(g,ne)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,oe)|0)+Math.imul(b,ue)|0,u=u+Math.imul(b,oe)|0;var Ee=(d+(n=n+Math.imul(c,fe)|0)|0)+((8191&(i=(i=i+Math.imul(c,de)|0)+Math.imul(h,fe)|0))<<13)|0;d=((u=u+Math.imul(h,de)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(j,z),i=(i=Math.imul(j,q))+Math.imul(U,z)|0,u=Math.imul(U,q),n=n+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,H)|0)+Math.imul(O,Y)|0,u=u+Math.imul(O,H)|0,n=n+Math.imul(T,G)|0,i=(i=i+Math.imul(T,V)|0)+Math.imul(B,G)|0,u=u+Math.imul(B,V)|0,n=n+Math.imul(k,X)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(M,X)|0,u=u+Math.imul(M,Z)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(A,Q)|0,u=u+Math.imul(A,ee)|0,n=n+Math.imul(_,re)|0,i=(i=i+Math.imul(_,ne)|0)+Math.imul(w,re)|0,u=u+Math.imul(w,ne)|0,n=n+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,oe)|0)+Math.imul(g,ue)|0,u=u+Math.imul(g,oe)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(b,fe)|0,u=u+Math.imul(b,de)|0;var Ae=(d+(n=n+Math.imul(c,ce)|0)|0)+((8191&(i=(i=i+Math.imul(c,he)|0)+Math.imul(h,ce)|0))<<13)|0;d=((u=u+Math.imul(h,he)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(N,z),i=(i=Math.imul(N,q))+Math.imul(D,z)|0,u=Math.imul(D,q),n=n+Math.imul(j,Y)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(U,Y)|0,u=u+Math.imul(U,H)|0,n=n+Math.imul(C,G)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(O,G)|0,u=u+Math.imul(O,V)|0,n=n+Math.imul(T,X)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(B,X)|0,u=u+Math.imul(B,Z)|0,n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(M,Q)|0,u=u+Math.imul(M,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,ne)|0)+Math.imul(A,re)|0,u=u+Math.imul(A,ne)|0,n=n+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,oe)|0)+Math.imul(w,ue)|0,u=u+Math.imul(w,oe)|0,n=n+Math.imul(m,fe)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(g,fe)|0,u=u+Math.imul(g,de)|0,n=n+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(b,ce)|0,u=u+Math.imul(b,he)|0;var xe=(d+(n=n+Math.imul(c,pe)|0)|0)+((8191&(i=(i=i+Math.imul(c,be)|0)+Math.imul(h,pe)|0))<<13)|0;d=((u=u+Math.imul(h,be)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(N,Y),i=(i=Math.imul(N,H))+Math.imul(D,Y)|0,u=Math.imul(D,H),n=n+Math.imul(j,G)|0,i=(i=i+Math.imul(j,V)|0)+Math.imul(U,G)|0,u=u+Math.imul(U,V)|0,n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,Z)|0)+Math.imul(O,X)|0,u=u+Math.imul(O,Z)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(B,Q)|0,u=u+Math.imul(B,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(M,re)|0,u=u+Math.imul(M,ne)|0,n=n+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(A,ue)|0,u=u+Math.imul(A,oe)|0,n=n+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(w,fe)|0,u=u+Math.imul(w,de)|0,n=n+Math.imul(m,ce)|0,i=(i=i+Math.imul(m,he)|0)+Math.imul(g,ce)|0,u=u+Math.imul(g,he)|0;var ke=(d+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,be)|0)+Math.imul(b,pe)|0))<<13)|0;d=((u=u+Math.imul(b,be)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(N,G),i=(i=Math.imul(N,V))+Math.imul(D,G)|0,u=Math.imul(D,V),n=n+Math.imul(j,X)|0,i=(i=i+Math.imul(j,Z)|0)+Math.imul(U,X)|0,u=u+Math.imul(U,Z)|0,n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(O,Q)|0,u=u+Math.imul(O,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(B,re)|0,u=u+Math.imul(B,ne)|0,n=n+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(M,ue)|0,u=u+Math.imul(M,oe)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(A,fe)|0,u=u+Math.imul(A,de)|0,n=n+Math.imul(_,ce)|0,i=(i=i+Math.imul(_,he)|0)+Math.imul(w,ce)|0,u=u+Math.imul(w,he)|0;var Me=(d+(n=n+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,be)|0)+Math.imul(g,pe)|0))<<13)|0;d=((u=u+Math.imul(g,be)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(N,X),i=(i=Math.imul(N,Z))+Math.imul(D,X)|0,u=Math.imul(D,Z),n=n+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(U,Q)|0,u=u+Math.imul(U,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(O,re)|0,u=u+Math.imul(O,ne)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,oe)|0)+Math.imul(B,ue)|0,u=u+Math.imul(B,oe)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(M,fe)|0,u=u+Math.imul(M,de)|0,n=n+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(A,ce)|0,u=u+Math.imul(A,he)|0;var Ie=(d+(n=n+Math.imul(_,pe)|0)|0)+((8191&(i=(i=i+Math.imul(_,be)|0)+Math.imul(w,pe)|0))<<13)|0;d=((u=u+Math.imul(w,be)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(N,Q),i=(i=Math.imul(N,ee))+Math.imul(D,Q)|0,u=Math.imul(D,ee),n=n+Math.imul(j,re)|0,i=(i=i+Math.imul(j,ne)|0)+Math.imul(U,re)|0,u=u+Math.imul(U,ne)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,oe)|0)+Math.imul(O,ue)|0,u=u+Math.imul(O,oe)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(B,fe)|0,u=u+Math.imul(B,de)|0,n=n+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(M,ce)|0,u=u+Math.imul(M,he)|0;var Te=(d+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,be)|0)+Math.imul(A,pe)|0))<<13)|0;d=((u=u+Math.imul(A,be)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(N,re),i=(i=Math.imul(N,ne))+Math.imul(D,re)|0,u=Math.imul(D,ne),n=n+Math.imul(j,ue)|0,i=(i=i+Math.imul(j,oe)|0)+Math.imul(U,ue)|0,u=u+Math.imul(U,oe)|0,n=n+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(O,fe)|0,u=u+Math.imul(O,de)|0,n=n+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(B,ce)|0,u=u+Math.imul(B,he)|0;var Be=(d+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,be)|0)+Math.imul(M,pe)|0))<<13)|0;d=((u=u+Math.imul(M,be)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(N,ue),i=(i=Math.imul(N,oe))+Math.imul(D,ue)|0,u=Math.imul(D,oe),n=n+Math.imul(j,fe)|0,i=(i=i+Math.imul(j,de)|0)+Math.imul(U,fe)|0,u=u+Math.imul(U,de)|0,n=n+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,he)|0)+Math.imul(O,ce)|0,u=u+Math.imul(O,he)|0;var Pe=(d+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,be)|0)+Math.imul(B,pe)|0))<<13)|0;d=((u=u+Math.imul(B,be)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(N,fe),i=(i=Math.imul(N,de))+Math.imul(D,fe)|0,u=Math.imul(D,de),n=n+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,he)|0)+Math.imul(U,ce)|0,u=u+Math.imul(U,he)|0;var Ce=(d+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,be)|0)+Math.imul(O,pe)|0))<<13)|0;d=((u=u+Math.imul(O,be)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(N,ce),i=(i=Math.imul(N,he))+Math.imul(D,ce)|0,u=Math.imul(D,he);var Oe=(d+(n=n+Math.imul(j,pe)|0)|0)+((8191&(i=(i=i+Math.imul(j,be)|0)+Math.imul(U,pe)|0))<<13)|0;d=((u=u+Math.imul(U,be)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863;var Re=(d+(n=Math.imul(N,pe))|0)+((8191&(i=(i=Math.imul(N,be))+Math.imul(D,pe)|0))<<13)|0;return d=((u=Math.imul(D,be))+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,f[0]=ye,f[1]=me,f[2]=ge,f[3]=ve,f[4]=_e,f[5]=we,f[6]=Se,f[7]=Ee,f[8]=Ae,f[9]=xe,f[10]=ke,f[11]=Me,f[12]=Ie,f[13]=Te,f[14]=Be,f[15]=Pe,f[16]=Ce,f[17]=Oe,f[18]=Re,0!==d&&(f[19]=d,r.length++),r};Math.imul||(S=f),u.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?S(this,e,t):r<63?f(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,u=0;u<r.length-1;u++){var o=i;i=0;for(var a=67108863&n,f=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=f;d++){var s=u-d,c=(0|e.words[s])*(0|t.words[d]),h=67108863&c;a=67108863&(h=h+a|0),i+=(o=(o=o+(c/67108864|0)|0)+(h>>>26)|0)>>>26,o&=67108863}r.words[u]=a,n=o,o=i}return 0!==n?r.words[u]=n:r.length--,r.strip()}(this,e,t):d(this,e,t)},s.prototype.makeRBT=function(e){for(var t=new Array(e),r=u.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},s.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},s.prototype.permute=function(e,t,r,n,i,u){for(var o=0;o<u;o++)n[o]=t[e[o]],i[o]=r[e[o]]},s.prototype.transform=function(e,t,r,n,i,u){this.permute(u,e,t,r,n,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,f=Math.cos(2*Math.PI/a),d=Math.sin(2*Math.PI/a),s=0;s<i;s+=a)for(var c=f,h=d,l=0;l<o;l++){var p=r[s+l],b=n[s+l],y=r[s+l+o],m=n[s+l+o],g=c*y-h*m;m=c*m+h*y,y=g,r[s+l]=p+y,n[s+l]=b+m,r[s+l+o]=p-y,n[s+l+o]=b-m,l!==a&&(g=f*c-d*h,h=f*h+d*c,c=g)}},s.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},s.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},s.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},s.prototype.convert13b=function(e,t,r,i){for(var u=0,o=0;o<t;o++)u+=0|e[o],r[2*o]=8191&u,u>>>=13,r[2*o+1]=8191&u,u>>>=13;for(o=2*t;o<i;++o)r[o]=0;n(0===u),n(0==(-8192&u))},s.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},s.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),u=this.stub(n),o=new Array(n),a=new Array(n),f=new Array(n),d=new Array(n),s=new Array(n),c=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,o,n),this.convert13b(t.words,t.length,d,n),this.transform(o,u,a,f,n,i),this.transform(d,u,s,c,n,i);for(var l=0;l<n;l++){var p=a[l]*s[l]-f[l]*c[l];f[l]=a[l]*c[l]+f[l]*s[l],a[l]=p}return this.conjugate(a,f,n),this.transform(a,f,h,u,n,i),this.conjugate(h,u,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},u.prototype.mul=function(e){var t=new u(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},u.prototype.mulf=function(e){var t=new u(null);return t.words=new Array(this.length+e.length),d(this,e,t)},u.prototype.imul=function(e){return this.clone().mulTo(e,this)},u.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,u=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=u>>>26,this.words[r]=67108863&u}return 0!==t&&(this.words[r]=t,this.length++),this},u.prototype.muln=function(e){return this.clone().imuln(e)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new u(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},u.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,u=67108863>>>26-r<<26-r;if(0!==r){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&u,f=(0|this.words[t])-a<<r;this.words[t]=f|o,o=a>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},u.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},u.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var u=e%26,o=Math.min((e-u)/26,this.length),a=67108863^67108863>>>u<<u,f=r;if(i-=o,i=Math.max(0,i),f){for(var d=0;d<o;d++)f.words[d]=this.words[d];f.length=o}if(0===o);else if(this.length>o)for(this.length-=o,d=0;d<this.length;d++)this.words[d]=this.words[d+o];else this.words[0]=0,this.length=1;var s=0;for(d=this.length-1;d>=0&&(0!==s||d>=i);d--){var c=0|this.words[d];this.words[d]=s<<26-u|c>>>u,s=c&a}return f&&0!==s&&(f.words[f.length++]=s),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},u.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},u.prototype.shln=function(e){return this.clone().ishln(e)},u.prototype.ushln=function(e){return this.clone().iushln(e)},u.prototype.shrn=function(e){return this.clone().ishrn(e)},u.prototype.ushrn=function(e){return this.clone().iushrn(e)},u.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},u.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(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 i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},u.prototype.maskn=function(e){return this.clone().imaskn(e)},u.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},u.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[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},u.prototype.isubn=function(e){if(n("number"==typeof e),n(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<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},u.prototype.addn=function(e){return this.clone().iaddn(e)},u.prototype.subn=function(e){return this.clone().isubn(e)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(e,t,r){var i,u=e.length+r;this._expand(u);var o,a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var f=(0|e.words[i])*t;a=((o-=67108863&f)>>26)-(f/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},u.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(r),n.iushln(r),o=0|i.words[i.length-1]);var a,f=n.length-i.length;if("mod"!==t){(a=new u(null)).length=f+1,a.words=new Array(a.length);for(var d=0;d<a.length;d++)a.words[d]=0}var s=n.clone()._ishlnsubmul(i,1,f);0===s.negative&&(n=s,a&&(a.words[f]=1));for(var c=f-1;c>=0;c--){var h=67108864*(0|n.words[i.length+c])+(0|n.words[i.length+c-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,c);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,c),n.isZero()||(n.negative^=1);a&&(a.words[c]=h)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},u.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new u(0),mod:new u(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),r&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new u(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new u(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new u(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,a},u.prototype.div=function(e){return this.divmod(e,"div",!1).div},u.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},u.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},u.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),u=r.cmp(n);return u<0||1===i&&0===u?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},u.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},u.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},u.prototype.divn=function(e){return this.clone().idivn(e)},u.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new u(1),o=new u(0),a=new u(0),f=new u(1),d=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++d;for(var s=r.clone(),c=t.clone();!t.isZero();){for(var h=0,l=1;0==(t.words[0]&l)&&h<26;++h,l<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(s),o.isub(c)),i.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;)(a.isOdd()||f.isOdd())&&(a.iadd(s),f.isub(c)),a.iushrn(1),f.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),o.isub(f)):(r.isub(t),a.isub(i),f.isub(o))}return{a:a,b:f,gcd:r.iushln(d)}},u.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var o=new u(1),a=new u(0),f=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var d=0,s=1;0==(r.words[0]&s)&&d<26;++d,s<<=1);if(d>0)for(r.iushrn(d);d-- >0;)o.isOdd()&&o.iadd(f),o.iushrn(1);for(var c=0,h=1;0==(i.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(i.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(f),a.iushrn(1);r.cmp(i)>=0?(r.isub(i),o.isub(a)):(i.isub(r),a.isub(o))}return(t=0===r.cmpn(1)?o:a).cmpn(0)<0&&t.iadd(e),t},u.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 u=t;t=r,r=u}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},u.prototype.invm=function(e){return this.egcd(e).a.umod(e)},u.prototype.isEven=function(){return 0==(1&this.words[0])},u.prototype.isOdd=function(){return 1==(1&this.words[0])},u.prototype.andln=function(e){return this.words[0]&e},u.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var u=i,o=r;0!==u&&o<this.length;o++){var a=0|this.words[o];u=(a+=u)>>>26,a&=67108863,this.words[o]=a}return 0!==u&&(this.words[o]=u,this.length++),this},u.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},u.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),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},u.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},u.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},u.prototype.gtn=function(e){return 1===this.cmpn(e)},u.prototype.gt=function(e){return 1===this.cmp(e)},u.prototype.gten=function(e){return this.cmpn(e)>=0},u.prototype.gte=function(e){return this.cmp(e)>=0},u.prototype.ltn=function(e){return-1===this.cmpn(e)},u.prototype.lt=function(e){return-1===this.cmp(e)},u.prototype.lten=function(e){return this.cmpn(e)<=0},u.prototype.lte=function(e){return this.cmp(e)<=0},u.prototype.eqn=function(e){return 0===this.cmpn(e)},u.prototype.eq=function(e){return 0===this.cmp(e)},u.red=function(e){return new y(e)},u.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},u.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(e){return this.red=e,this},u.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},u.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},u.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},u.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},u.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},u.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},u.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},u.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},u.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var E={k256:null,p224:null,p192:null,p25519:null};c.prototype._tmp=function(){var e=new u(null);return e.words=new Array(Math.ceil(this.n/13)),e},c.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=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},c.prototype.split=function(e,t){e.iushrn(this.n,0,t)},c.prototype.imulK=function(e){return e.imul(this.k)},i(h,c),h.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var u=0|e.words[n];e.words[n-10]=(4194303&u)<<4|i>>>22,i=u}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},h.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<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(l,c),i(p,c),i(b,c),b.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},u._prime=function(e){if(E[e])return E[e];var t;if("k256"===e)t=new h;else if("p224"===e)t=new l;else if("p192"===e)t=new p;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new b}return E[e]=t,t},y.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},y.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},y.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},y.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},y.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)},y.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},y.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)},y.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},y.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},y.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},y.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},y.prototype.isqr=function(e){return this.imul(e,e.clone())},y.prototype.sqr=function(e){return this.mul(e,e)},y.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new u(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var a=new u(1).toRed(this),f=a.redNeg(),d=this.m.subn(1).iushrn(1),s=this.m.bitLength();for(s=new u(2*s*s).toRed(this);0!==this.pow(s,d).cmp(f);)s.redIAdd(f);for(var c=this.pow(s,i),h=this.pow(e,i.addn(1).iushrn(1)),l=this.pow(e,i),p=o;0!==l.cmp(a);){for(var b=l,y=0;0!==b.cmp(a);y++)b=b.redSqr();n(y<p);var m=this.pow(c,new u(1).iushln(p-y-1));h=h.redMul(m),c=m.redSqr(),l=l.redMul(c),p=y}return h},y.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},y.prototype.pow=function(e,t){if(t.isZero())return new u(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new u(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,a=0,f=t.bitLength()%26;for(0===f&&(f=26),n=t.length-1;n>=0;n--){for(var d=t.words[n],s=f-1;s>=0;s--){var c=d>>s&1;i!==r[0]&&(i=this.sqr(i)),0!==c||0!==o?(o<<=1,o|=c,(4==++a||0===n&&0===s)&&(i=this.mul(i,r[o]),a=0,o=0)):a=0}f=26}return i},y.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},y.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},u.mont=function(e){return new m(e)},i(m,y),m.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},m.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},m.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),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},m.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new u(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)},m.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)}).call(t,r(94)(e))},function(e,t,r){"use strict";var n=t;n.version=r(152).version,n.utils=r(153),n.rand=r(72),n.curve=r(29),n.curves=r(158),n.ec=r(166),n.eddsa=r(170)},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){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(e){if(d===setTimeout)return setTimeout(e,0);if((d===r||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function u(){p&&h&&(p=!1,h.length?l=h.concat(l):b=-1,l.length&&o())}function o(){if(!p){var e=i(u);p=!0;for(var t=l.length;t;){for(h=l,l=[];++b<t;)h&&h[b].run();b=-1,t=l.length}h=null,p=!1,function(e){if(s===clearTimeout)return clearTimeout(e);if((s===n||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(e);try{s(e)}catch(t){try{return s.call(null,e)}catch(t){return s.call(this,e)}}}(e)}}function a(e,t){this.fun=e,this.array=t}function f(){}var d,s,c=e.exports={};!function(){try{d="function"==typeof setTimeout?setTimeout:r}catch(e){d=r}try{s="function"==typeof clearTimeout?clearTimeout:n}catch(e){s=n}}();var h,l=[],p=!1,b=-1;c.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new a(e,t)),1!==l.length||p||i(o)},a.prototype.run=function(){this.fun.apply(null,this.array)},c.title="browser",c.browser=!0,c.env={},c.argv=[],c.version="",c.versions={},c.on=f,c.addListener=f,c.once=f,c.off=f,c.removeListener=f,c.removeAllListeners=f,c.emit=f,c.prependListener=f,c.prependOnceListener=f,c.listeners=function(e){return[]},c.binding=function(e){throw new Error("process.binding is not supported")},c.cwd=function(){return"/"},c.chdir=function(e){throw new Error("process.chdir is not supported")},c.umask=function(){return 0}},function(e,t,r){"use strict";function n(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function i(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}var o=r(5),a=r(1);t.inherits=a,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),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),u=i>>8,o=255&i;u?r.push(u,o):r.push(o)}else for(n=0;n<e.length;n++)r[n]=0|e[n];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t},t.htonl=n,t.toHex32=function(e,t){for(var r="",i=0;i<e.length;i++){var o=e[i];"little"===t&&(o=n(o)),r+=u(o.toString(16))}return r},t.zero2=i,t.zero8=u,t.join32=function(e,t,r,n){var i=r-t;o(i%4==0);for(var u=new Array(i/4),a=0,f=t;a<u.length;a++,f+=4){var d;d="big"===n?e[f]<<24|e[f+1]<<16|e[f+2]<<8|e[f+3]:e[f+3]<<24|e[f+2]<<16|e[f+1]<<8|e[f],u[a]=d>>>0}return u},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var u=e[n];"big"===t?(r[i]=u>>>24,r[i+1]=u>>>16&255,r[i+2]=u>>>8&255,r[i+3]=255&u):(r[i+3]=u>>>24,r[i+2]=u>>>16&255,r[i+1]=u>>>8&255,r[i]=255&u)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|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],u=n+e[t+1]>>>0,o=(u<n?1:0)+r+i;e[t]=o>>>0,e[t+1]=u},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,u,o,a){var f=0,d=t;return f+=(d=d+n>>>0)<t?1:0,f+=(d=d+u>>>0)<u?1:0,e+r+i+o+(f+=(d=d+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,u,o,a){return t+n+u+a>>>0},t.sum64_5_hi=function(e,t,r,n,i,u,o,a,f,d){var s=0,c=t;return s+=(c=c+n>>>0)<t?1:0,s+=(c=c+u>>>0)<u?1:0,s+=(c=c+a>>>0)<a?1:0,e+r+i+o+f+(s+=(c=c+d>>>0)<d?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,u,o,a,f,d){return t+n+u+a+d>>>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=t;n.bignum=r(3),n.define=r(96).define,n.base=r(16),n.constants=r(50),n.decoders=r(102),n.encoders=r(104)},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){function n(e){u.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}var i=r(2).Buffer,u=r(25).Transform,o=r(41).StringDecoder;r(1)(n,u),n.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},n.prototype.setAutoPadding=function(){},n.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},n.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},n.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},n.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},n.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},n.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},n.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=n},function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);d.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||o(u,this)}function u(e){e.end()}var o=r(26),a=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=n;var f=r(19);f.inherits=r(1);var d=r(53),s=r(40);f.inherits(n,d);for(var c=a(s.prototype),h=0;h<c.length;h++){var l=c[h];n.prototype[l]||(n.prototype[l]=s.prototype[l])}Object.defineProperty(n.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),n.prototype._destroy=function(e,t){this.push(null),this.end(),o(t,e)}},function(e,t,r){"use strict";var n=r(15),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n),t}();e.exports=i},function(e,t,r){"use strict";(function(t,n){var i=r(2).Buffer,u=t.crypto||t.msCrypto;u&&u.getRandomValues?e.exports=function(e,r){if(e>65536)throw new Error("requested too many random bytes");var o=new t.Uint8Array(e);e>0&&u.getRandomValues(o);var a=i.from(o.buffer);return"function"==typeof r?n.nextTick(function(){r(null,a)}):a}:e.exports=function(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}).call(t,r(9),r(6))},function(e,t,r){function n(e,t){this._block=i.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}var i=r(2).Buffer;n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=i.from(e,t));for(var r=this._block,n=this._blockSize,u=e.length,o=this._len,a=0;a<u;){for(var f=o%n,d=Math.min(u-a,n-f),s=0;s<d;s++)r[f+s]=e[a+s];a+=d,(o+=d)%n==0&&this._update(r)}return this._len+=u,this},n.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=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,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var u=this._hash();return e?u.toString(e):u},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=n},function(e,t,r){"use strict";var n=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return Object.defineProperty(r,"message",{configurable:!0,enumerable:!1,value:void 0!==e?String(e):""}),Object.defineProperty(r,"name",{configurable:!0,enumerable:!1,value:r.constructor.name}),Error.captureStackTrace&&Error.captureStackTrace(r,r.constructor),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,Error),t}();e.exports=n},function(e,t,r){var n=t;n.Reporter=r(99).Reporter,n.DecoderBuffer=r(49).DecoderBuffer,n.EncoderBuffer=r(49).EncoderBuffer,n.Node=r(100)},function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(23),u=r(24),o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i),n(t,[{key:"generateHash",value:function(){var e=u.createHash("sha256");return e.update(this.getFingerprintContents()),e.digest()}}]),t}();e.exports=o},function(e,t,r){"use strict";(function(t){function n(e){d.call(this,"digest"),this._hash=e,this.buffers=[]}function i(e){d.call(this,"digest"),this._hash=e}var u=r(1),o=r(36),a=r(37),f=r(42),d=r(10);u(n,d),n.prototype._update=function(e){this.buffers.push(e)},n.prototype._final=function(){var e=t.concat(this.buffers),r=this._hash(e);return this.buffers=null,r},u(i,d),i.prototype._update=function(e){this._hash.update(e)},i.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new n(o):new i("rmd160"===e||"ripemd160"===e?new a:f(e))}}).call(t,r(0).Buffer)},function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(t,r(0).Buffer)},function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),u=0;u<n;++u)i[u]=e[u]^r[u];return i}}).call(t,r(0).Buffer)},function(e,t,r){"use strict";function n(){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}var i=r(7),u=r(5);t.BlockHash=n,n.prototype.update=function(e,t){if(e=i.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=i.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},n.prototype.digest=function(e){return this.update(this._pad()),u(null===this.pending),this._digest(e)},n.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var u=8;u<this.padLength;u++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>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,u=8;u<this.padLength;u++)n[i++]=0;return n}},function(e,t,r){"use strict";(function(t){var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(88),u=r(32),o=r(92),a=r(93),f=r(12),d=r(33),s=r(34),c=r(35).Condition,h=/^ni:\/\/\/sha-256;([a-zA-Z0-9_-]{0,86})\?(.+)$/,l=h,p=/^0|[1-9]\d*$/,b=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,[{key:"getTypeId",value:function(){return this.type}},{key:"setTypeId",value:function(e){this.type=e}},{key:"getTypeName",value:function(){return u.findByTypeId(this.type).name}},{key:"getSubtypes",value:function(){return this.subtypes}},{key:"setSubtypes",value:function(e){this.subtypes=e}},{key:"getHash",value:function(){if(!this.hash)throw new f("Hash not set");return this.hash}},{key:"setHash",value:function(e){if(!t.isBuffer(e))throw new TypeError("Hash must be a Buffer");if(32!==e.length)throw new Error("Hash is of invalid length "+e.length+", should be 32");this.hash=e}},{key:"getCost",value:function(){if("number"!=typeof this.cost)throw new f("Cost not set");return this.cost}},{key:"setCost",value:function(e){if(!s(e))throw new TypeError("Cost must be an integer");if(e<0)throw new TypeError("Cost must be positive or zero");this.cost=e}},{key:"serializeUri",value:function(){var e="compound"===u.findByTypeId(this.type).Class.TYPE_CATEGORY;return"ni:///sha-256;"+d.encode(this.getHash())+"?fpt="+this.getTypeName()+"&cost="+this.getCost()+(e?"&subtypes="+Array.from(this.getSubtypes()).sort().join(","):"")}},{key:"serializeBinary",value:function(){var e=this.getAsn1Json();return c.encode(e)}},{key:"getAsn1Json",value:function(){var e=u.findByTypeId(this.type).Class,r={type:e.TYPE_ASN1_CONDITION,value:{fingerprint:this.getHash(),cost:this.getCost()}};if("compound"===e.TYPE_CATEGORY){var n=Array.from(this.getSubtypes()).map(u.findByName).map(function(e){return e.typeId}),i=n.reduce(function(e,t){return Math.max(e,t)},0),o=t.alloc(1+(i>>>3)),a=!0,f=!1,d=void 0;try{for(var s,c=n[Symbol.iterator]();!(a=(s=c.next()).done);a=!0){var h=s.value;o[h>>>3]|=1<<7-h%8}}catch(e){f=!0,d=e}finally{try{!a&&c.return&&c.return()}finally{if(f)throw d}}var l=7-i%8;r.value.subtypes={unused:l,data:o}}return r}},{key:"validate",value:function(){if(u.findByTypeId(this.getTypeId()),this.getSubtypes()>e.MAX_SAFE_SUBTYPES)throw new Error("Bitmask too large to be safely represented");if(this.getSubtypes()&~e.SUPPORTED_SUBTYPES)throw new Error("Condition requested unsupported feature suites");if(this.getCost()>e.MAX_COST)throw new Error("Condition requested too large of a max fulfillment size");return!0}}],[{key:"fromUri",value:function(t){if(t instanceof e)return t;if("string"!=typeof t)throw new Error("Serialized condition must be a string");if("ni"!==t.split(":")[0])throw new o('Serialized condition must start with "ni:"');var r=e.REGEX_STRICT.exec(t);if(!r)throw new a("Invalid condition format");var n=i.parse(r[2]),f=u.findByName(n.fpt);if(!p.exec(n.cost))throw new a("No or invalid cost provided");var s=new e;return s.setTypeId(f.typeId),"compound"===f.Class.TYPE_CATEGORY?s.setSubtypes(new Set(n.subtypes.split(","))):s.setSubtypes(new Set),s.setHash(d.decode(r[1])),s.setCost(Number(n.cost)),s}},{key:"fromBinary",value:function(t){var r=c.decode(t);return e.fromAsn1Json(r)}},{key:"fromAsn1Json",value:function(t){var r=u.findByAsn1ConditionType(t.type),n=new e;if(n.setTypeId(r.typeId),n.setHash(t.value.fingerprint),n.setCost(t.value.cost.toNumber()),"compound"===r.Class.TYPE_CATEGORY){for(var i=t.value.subtypes.data,o=new Set,a=0;a<i.length;){for(var f=0;f<8;f++)if(1<<7-f&i[a]){var d=8*a+f,s=u.findByTypeId(d).name;o.add(s)}a++}n.setSubtypes(o)}else n.setSubtypes(new Set);return n}}]),e}();b.MAX_SAFE_SUBTYPES=4294967295,b.SUPPORTED_SUBTYPES=63,b.MAX_COST=2097152,b.REGEX=h,b.REGEX_STRICT=l,e.exports=b}).call(t,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(32),u=r(22),o=r(33),a=r(106).Fulfillment,f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,[{key:"getTypeId",value:function(){return this.constructor.TYPE_ID}},{key:"getTypeName",value:function(){return this.constructor.TYPE_NAME}},{key:"getSubtypes",value:function(){return new Set}},{key:"getCondition",value:function(){var e=new u;return e.setHash(this.generateHash()),e.setTypeId(this.getTypeId()),e.setCost(this.calculateCost()),e.setSubtypes(this.getSubtypes()),e}},{key:"getConditionUri",value:function(){return this.getCondition().serializeUri()}},{key:"getConditionBinary",value:function(){return this.getCondition().serializeBinary()}},{key:"generateHash",value:function(){throw new Error("This method should be implemented by a subclass")}},{key:"calculateCost",value:function(){throw new Error("Condition types must implement calculateCost")}},{key:"parseAsn1JsonPayload",value:function(e){this.parseJson(e)}},{key:"serializeUri",value:function(){return o.encode(this.serializeBinary())}},{key:"getAsn1Json",value:function(){return{type:this.constructor.TYPE_ASN1_FULFILLMENT,value:this.getAsn1JsonPayload()}}},{key:"serializeBinary",value:function(){var e=this.getAsn1Json();return a.encode(e)}},{key:"serializeBase64Url",value:function(){return o.encode(this.serializeBinary())}},{key:"validate",value:function(){throw new Error("Not implemented")}}],[{key:"fromUri",value:function(r){if(r instanceof e)return r;if("string"!=typeof r)throw new TypeError("Serialized fulfillment must be a string");return e.fromBinary(t.from(r,"base64"))}},{key:"fromBinary",value:function(t){var r=a.decode(t);return e.fromAsn1Json(r)}},{key:"fromAsn1Json",value:function(e){var t=new(0,i.findByAsn1FulfillmentType(e.type).Class);return t.parseAsn1JsonPayload(e.value),t}},{key:"fromJson",value:function(e){var t=new(0,i.findByName(e.type).Class);return t.parseJson(e),t}}]),e}();e.exports=f}).call(t,r(0).Buffer)},function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(13),t.createHash=t.Hash=r(18),t.createHmac=t.Hmac=r(59);var n=r(125),i=Object.keys(n),u=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return u};var o=r(61);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var a=r(127);t.Cipher=a.Cipher,t.createCipher=a.createCipher,t.Cipheriv=a.Cipheriv,t.createCipheriv=a.createCipheriv,t.Decipher=a.Decipher,t.createDecipher=a.createDecipher,t.Decipheriv=a.Decipheriv,t.createDecipheriv=a.createDecipheriv,t.getCiphers=a.getCiphers,t.listCiphers=a.listCiphers;var f=r(146);t.DiffieHellmanGroup=f.DiffieHellmanGroup,t.createDiffieHellmanGroup=f.createDiffieHellmanGroup,t.getDiffieHellman=f.getDiffieHellman,t.createDiffieHellman=f.createDiffieHellman,t.DiffieHellman=f.DiffieHellman;var d=r(150);t.createSign=d.createSign,t.Sign=d.Sign,t.createVerify=d.createVerify,t.Verify=d.Verify,t.createECDH=r(178);var s=r(179);t.publicEncrypt=s.publicEncrypt,t.privateEncrypt=s.privateEncrypt,t.publicDecrypt=s.publicDecrypt,t.privateDecrypt=s.privateDecrypt;var c=r(182);t.randomFill=c.randomFill,t.randomFillSync=c.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,r){function n(){i.call(this)}e.exports=n;var i=r(38).EventEmitter;r(1)(n,i),n.Readable=r(39),n.Writable=r(116),n.Duplex=r(117),n.Transform=r(118),n.PassThrough=r(119),n.Stream=n,n.prototype.pipe=function(e,t){function r(t){e.writable&&!1===e.write(t)&&d.pause&&d.pause()}function n(){d.readable&&d.resume&&d.resume()}function u(){s||(s=!0,e.end())}function o(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function a(e){if(f(),0===i.listenerCount(this,"error"))throw e}function f(){d.removeListener("data",r),e.removeListener("drain",n),d.removeListener("end",u),d.removeListener("close",o),d.removeListener("error",a),e.removeListener("error",a),d.removeListener("end",f),d.removeListener("close",f),e.removeListener("close",f)}var d=this;d.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(d.on("end",u),d.on("close",o));var s=!1;return d.on("error",a),e.on("error",a),d.on("end",f),d.on("close",f),e.on("close",f),e.emit("pipe",d),e}},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=function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var u,o,a=arguments.length;switch(a){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(u=new Array(a-1),o=0;o<u.length;)u[o++]=arguments[o];return t.nextTick(function(){e.apply(null,u)})}}:e.exports=t.nextTick}).call(t,r(6))},function(e,t,r){var n=r(2).Buffer,i=r(128);e.exports=function(e,t,r,u){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 o=r/8,a=n.alloc(o),f=n.alloc(u||0),d=n.alloc(0);o>0||u>0;){var s=new i;s.update(d),s.update(e),t&&s.update(t),d=s.digest();var c=0;if(o>0){var h=a.length-o;c=Math.min(o,d.length),d.copy(a,h,0,c),o-=c}if(c<d.length&&u>0){var l=f.length-u,p=Math.min(u,d.length-c);d.copy(f,l,c,c+p),u-=p}}return d.fill(0),{key:a,iv:f}}},function(e,t,r){function n(e){a.isBuffer(e)||(e=a.from(e));for(var t=e.length/4|0,r=new Array(t),n=0;n<t;n++)r[n]=e.readUInt32BE(4*n);return r}function i(e){for(;0<e.length;e++)e[0]=0}function u(e,t,r,n,i){for(var u,o,a,f,d=r[0],s=r[1],c=r[2],h=r[3],l=e[0]^t[0],p=e[1]^t[1],b=e[2]^t[2],y=e[3]^t[3],m=4,g=1;g<i;g++)u=d[l>>>24]^s[p>>>16&255]^c[b>>>8&255]^h[255&y]^t[m++],o=d[p>>>24]^s[b>>>16&255]^c[y>>>8&255]^h[255&l]^t[m++],a=d[b>>>24]^s[y>>>16&255]^c[l>>>8&255]^h[255&p]^t[m++],f=d[y>>>24]^s[l>>>16&255]^c[p>>>8&255]^h[255&b]^t[m++],l=u,p=o,b=a,y=f;return u=(n[l>>>24]<<24|n[p>>>16&255]<<16|n[b>>>8&255]<<8|n[255&y])^t[m++],o=(n[p>>>24]<<24|n[b>>>16&255]<<16|n[y>>>8&255]<<8|n[255&l])^t[m++],a=(n[b>>>24]<<24|n[y>>>16&255]<<16|n[l>>>8&255]<<8|n[255&p])^t[m++],f=(n[y>>>24]<<24|n[l>>>16&255]<<16|n[p>>>8&255]<<8|n[255&b])^t[m++],[u>>>=0,o>>>=0,a>>>=0,f>>>=0]}function o(e){this._key=n(e),this._reset()}var a=r(2).Buffer,f=[0,1,2,4,8,16,32,64,128,27,54],d=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=[[],[],[],[]],u=[[],[],[],[]],o=0,a=0,f=0;f<256;++f){var d=a^a<<1^a<<2^a<<3^a<<4;d=d>>>8^255&d^99,r[o]=d,n[d]=o;var s=e[o],c=e[s],h=e[c],l=257*e[d]^16843008*d;i[0][o]=l<<24|l>>>8,i[1][o]=l<<16|l>>>16,i[2][o]=l<<8|l>>>24,i[3][o]=l,l=16843009*h^65537*c^257*s^16843008*o,u[0][d]=l<<24|l>>>8,u[1][d]=l<<16|l>>>16,u[2][d]=l<<8|l>>>24,u[3][d]=l,0===o?o=a=1:(o=s^e[e[e[h^s]]],a^=e[e[a]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:u}}();o.blockSize=16,o.keySize=32,o.prototype.blockSize=o.blockSize,o.prototype.keySize=o.keySize,o.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],u=0;u<t;u++)i[u]=e[u];for(u=t;u<n;u++){var o=i[u-1];u%t==0?(o=o<<8|o>>>24,o=d.SBOX[o>>>24]<<24|d.SBOX[o>>>16&255]<<16|d.SBOX[o>>>8&255]<<8|d.SBOX[255&o],o^=f[u/t|0]<<24):t>6&&u%t==4&&(o=d.SBOX[o>>>24]<<24|d.SBOX[o>>>16&255]<<16|d.SBOX[o>>>8&255]<<8|d.SBOX[255&o]),i[u]=i[u-t]^o}for(var a=[],s=0;s<n;s++){var c=n-s,h=i[c-(s%4?0:4)];a[s]=s<4||c<=4?h:d.INV_SUB_MIX[0][d.SBOX[h>>>24]]^d.INV_SUB_MIX[1][d.SBOX[h>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[h>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&h]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=a},o.prototype.encryptBlockRaw=function(e){return u(e=n(e),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},o.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=a.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},o.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var r=u(e,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),i=a.allocUnsafe(16);return i.writeUInt32BE(r[0],0),i.writeUInt32BE(r[3],4),i.writeUInt32BE(r[2],8),i.writeUInt32BE(r[1],12),i},o.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=o},function(e,t,r){"use strict";var n=t;n.base=r(154),n.short=r(155),n.mont=r(156),n.edwards=r(157)},function(e,t,r){(function(t){function n(e){var r;"object"!=typeof e||t.isBuffer(e)||(r=e.passphrase,e=e.key),"string"==typeof e&&(e=new t(e));var n,o,f=a(e,r),d=f.tag,s=f.data;switch(d){case"CERTIFICATE":o=u.certificate.decode(s,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(o||(o=u.PublicKey.decode(s,"der")),n=o.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return u.RSAPublicKey.decode(o.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return o.subjectPrivateKey=o.subjectPublicKey,{type:"ec",data:o};case"1.2.840.10040.4.1":return o.algorithm.params.pub_key=u.DSAparam.decode(o.subjectPublicKey.data,"der"),{type:"dsa",data:o.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+d);case"ENCRYPTED PRIVATE KEY":s=i(s=u.EncryptedPrivateKey.decode(s,"der"),r);case"PRIVATE KEY":switch(n=(o=u.PrivateKey.decode(s,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return u.RSAPrivateKey.decode(o.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:o.algorithm.curve,privateKey:u.ECPrivateKey.decode(o.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return o.algorithm.params.priv_key=u.DSAparam.decode(o.subjectPrivateKey,"der"),{type:"dsa",params:o.algorithm.params};default:throw new Error("unknown key id "+n)}throw new Error("unknown key type "+d);case"RSA PUBLIC KEY":return u.RSAPublicKey.decode(s,"der");case"RSA PRIVATE KEY":return u.RSAPrivateKey.decode(s,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:u.DSAPrivateKey.decode(s,"der")};case"EC PRIVATE KEY":return{curve:(s=u.ECPrivateKey.decode(s,"der")).parameters.value,privateKey:s.privateKey};default:throw new Error("unknown key type "+d)}}function i(e,r){var n=e.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),u=o[e.algorithm.decrypt.cipher.algo.join(".")],a=e.algorithm.decrypt.cipher.iv,s=e.subjectPrivateKey,c=parseInt(u.split("-")[1],10)/8,h=d.pbkdf2Sync(r,n,i,c),l=f.createDecipheriv(u,h,a),p=[];return p.push(l.update(s)),p.push(l.final()),t.concat(p)}var u=r(173),o=r(175),a=r(176),f=r(43),d=r(61);e.exports=n,n.signature=u.signature}).call(t,r(0).Buffer)},function(e,t,r){"use strict";var n=r(8),i=r(35).Condition,u=n.define("PrefixFingerprintContents",function(){this.seq().obj(this.key("prefix").implicit(0).octstr(),this.key("maxMessageLength").implicit(1).int(),this.key("subcondition").explicit(2).use(i))}),o=n.define("ThresholdFingerprintContents",function(){this.seq().obj(this.key("threshold").implicit(0).int(),this.key("subconditions").implicit(1).setof(i))}),a=n.define("RsaFingerprintContents",function(){this.seq().obj(this.key("modulus").implicit(0).octstr())}),f=n.define("Ed25519FingerprintContents",function(){this.seq().obj(this.key("publicKey").implicit(0).octstr())});e.exports={PrefixFingerprintContents:u,ThresholdFingerprintContents:o,RsaFingerprintContents:a,Ed25519FingerprintContents:f}},function(e,t,r){"use strict";var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(91),u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,null,[{key:"findByTypeId",value:function(t){if(t>Number.MAX_SAFE_INTEGER)throw new i("Type "+t+" is not supported");var r=!0,n=!1,u=void 0;try{for(var o,a=e.registeredTypes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var f=o.value;if(t===f.typeId)return f}}catch(e){n=!0,u=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw u}}throw new i("Type "+t+" is not supported")}},{key:"findByName",value:function(t){var r=!0,n=!1,u=void 0;try{for(var o,a=e.registeredTypes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var f=o.value;if(t===f.name)return f}}catch(e){n=!0,u=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw u}}throw new i("Type "+t+" is not supported")}},{key:"findByAsn1ConditionType",value:function(t){var r=!0,n=!1,u=void 0;try{for(var o,a=e.registeredTypes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var f=o.value;if(t===f.asn1Condition)return f}}catch(e){n=!0,u=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw u}}throw new i("Type "+t+" is not supported")}},{key:"findByAsn1FulfillmentType",value:function(t){var r=!0,n=!1,u=void 0;try{for(var o,a=e.registeredTypes[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var f=o.value;if(t===f.asn1Fulfillment)return f}}catch(e){n=!0,u=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw u}}throw new i("Type "+t+" is not supported")}},{key:"registerType",value:function(t){e.registeredTypes.push({typeId:t.TYPE_ID,name:t.TYPE_NAME,asn1Condition:t.TYPE_ASN1_CONDITION,asn1Fulfillment:t.TYPE_ASN1_FULFILLMENT,Class:t})}}]),e}();u.registeredTypes=[],e.exports=u},function(e,t,r){"use strict";(function(t){var r=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return r(e,null,[{key:"decode",value:function(e){var r=e.replace(/-/g,"+").replace(/_/g,"/");return t.from(r,"base64")}},{key:"encode",value:function(e){return e.toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}}]),e}();e.exports=n}).call(t,r(0).Buffer)},function(e,t,r){"use strict";e.exports=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}},function(e,t,r){"use strict";var n=r(8);t.Simple256Condition=n.define("Simple256Condition",function(){this.seq().obj(this.key("fingerprint").implicit(0).octstr(),this.key("cost").implicit(1).int())}),t.Compound256Condition=n.define("Compound256Condition",function(){this.seq().obj(this.key("fingerprint").implicit(0).octstr(),this.key("cost").implicit(1).int(),this.key("subtypes").implicit(2).bitstr())}),t.Condition=n.define("Condition",function(){this.choice({preimageSha256Condition:this.implicit(0).use(t.Simple256Condition),prefixSha256Condition:this.implicit(1).use(t.Compound256Condition),thresholdSha256Condition:this.implicit(2).use(t.Compound256Condition),rsaSha256Condition:this.implicit(3).use(t.Simple256Condition),ed25519Sha256Condition:this.implicit(4).use(t.Simple256Condition)})})},function(e,t,r){"use strict";function n(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,s=271733878,c=0;c<e.length;c+=16){var h=r,l=n,p=i,b=s;n=f(n=f(n=f(n=f(n=a(n=a(n=a(n=a(n=o(n=o(n=o(n=o(n=u(n=u(n=u(n=u(n,i=u(i,s=u(s,r=u(r,n,i,s,e[c+0],7,-680876936),n,i,e[c+1],12,-389564586),r,n,e[c+2],17,606105819),s,r,e[c+3],22,-1044525330),i=u(i,s=u(s,r=u(r,n,i,s,e[c+4],7,-176418897),n,i,e[c+5],12,1200080426),r,n,e[c+6],17,-1473231341),s,r,e[c+7],22,-45705983),i=u(i,s=u(s,r=u(r,n,i,s,e[c+8],7,1770035416),n,i,e[c+9],12,-1958414417),r,n,e[c+10],17,-42063),s,r,e[c+11],22,-1990404162),i=u(i,s=u(s,r=u(r,n,i,s,e[c+12],7,1804603682),n,i,e[c+13],12,-40341101),r,n,e[c+14],17,-1502002290),s,r,e[c+15],22,1236535329),i=o(i,s=o(s,r=o(r,n,i,s,e[c+1],5,-165796510),n,i,e[c+6],9,-1069501632),r,n,e[c+11],14,643717713),s,r,e[c+0],20,-373897302),i=o(i,s=o(s,r=o(r,n,i,s,e[c+5],5,-701558691),n,i,e[c+10],9,38016083),r,n,e[c+15],14,-660478335),s,r,e[c+4],20,-405537848),i=o(i,s=o(s,r=o(r,n,i,s,e[c+9],5,568446438),n,i,e[c+14],9,-1019803690),r,n,e[c+3],14,-187363961),s,r,e[c+8],20,1163531501),i=o(i,s=o(s,r=o(r,n,i,s,e[c+13],5,-1444681467),n,i,e[c+2],9,-51403784),r,n,e[c+7],14,1735328473),s,r,e[c+12],20,-1926607734),i=a(i,s=a(s,r=a(r,n,i,s,e[c+5],4,-378558),n,i,e[c+8],11,-2022574463),r,n,e[c+11],16,1839030562),s,r,e[c+14],23,-35309556),i=a(i,s=a(s,r=a(r,n,i,s,e[c+1],4,-1530992060),n,i,e[c+4],11,1272893353),r,n,e[c+7],16,-155497632),s,r,e[c+10],23,-1094730640),i=a(i,s=a(s,r=a(r,n,i,s,e[c+13],4,681279174),n,i,e[c+0],11,-358537222),r,n,e[c+3],16,-722521979),s,r,e[c+6],23,76029189),i=a(i,s=a(s,r=a(r,n,i,s,e[c+9],4,-640364487),n,i,e[c+12],11,-421815835),r,n,e[c+15],16,530742520),s,r,e[c+2],23,-995338651),i=f(i,s=f(s,r=f(r,n,i,s,e[c+0],6,-198630844),n,i,e[c+7],10,1126891415),r,n,e[c+14],15,-1416354905),s,r,e[c+5],21,-57434055),i=f(i,s=f(s,r=f(r,n,i,s,e[c+12],6,1700485571),n,i,e[c+3],10,-1894986606),r,n,e[c+10],15,-1051523),s,r,e[c+1],21,-2054922799),i=f(i,s=f(s,r=f(r,n,i,s,e[c+8],6,1873313359),n,i,e[c+15],10,-30611744),r,n,e[c+6],15,-1560198380),s,r,e[c+13],21,1309151649),i=f(i,s=f(s,r=f(r,n,i,s,e[c+4],6,-145523070),n,i,e[c+11],10,-1120210379),r,n,e[c+2],15,718787259),s,r,e[c+9],21,-343485551),r=d(r,h),n=d(n,l),i=d(i,p),s=d(s,b)}return[r,n,i,s]}function i(e,t,r,n,i,u){return d(function(e,t){return e<<i|e>>>32-i}(d(d(t,e),d(n,u))),r)}function u(e,t,r,n,u,o,a){return i(t&r|~t&n,e,t,u,o,a)}function o(e,t,r,n,u,o,a){return i(t&n|r&~n,e,t,u,o,a)}function a(e,t,r,n,u,o,a){return i(t^r^n,e,t,u,o,a)}function f(e,t,r,n,u,o,a){return i(r^(t|~n),e,t,u,o,a)}function d(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}var s=r(108);e.exports=function(e){return s(e,n)}},function(e,t,r){"use strict";(function(t){function n(){c.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function i(e,t){return e<<t|e>>>32-t}function u(e,t,r,n,u,o,a,f){return i(e+(t^r^n)+o+a|0,f)+u|0}function o(e,t,r,n,u,o,a,f){return i(e+(t&r|~t&n)+o+a|0,f)+u|0}function a(e,t,r,n,u,o,a,f){return i(e+((t|~r)^n)+o+a|0,f)+u|0}function f(e,t,r,n,u,o,a,f){return i(e+(t&n|r&~n)+o+a|0,f)+u|0}function d(e,t,r,n,u,o,a,f){return i(e+(t^(r|~n))+o+a|0,f)+u|0}var s=r(1),c=r(109);s(n,c),n.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,s=this._c,c=this._d,h=this._e;h=u(h,r=u(r,n,s,c,h,e[0],0,11),n,s=i(s,10),c,e[1],0,14),n=u(n=i(n,10),s=u(s,c=u(c,h,r,n,s,e[2],0,15),h,r=i(r,10),n,e[3],0,12),c,h=i(h,10),r,e[4],0,5),c=u(c=i(c,10),h=u(h,r=u(r,n,s,c,h,e[5],0,8),n,s=i(s,10),c,e[6],0,7),r,n=i(n,10),s,e[7],0,9),r=u(r=i(r,10),n=u(n,s=u(s,c,h,r,n,e[8],0,11),c,h=i(h,10),r,e[9],0,13),s,c=i(c,10),h,e[10],0,14),s=u(s=i(s,10),c=u(c,h=u(h,r,n,s,c,e[11],0,15),r,n=i(n,10),s,e[12],0,6),h,r=i(r,10),n,e[13],0,7),h=o(h=i(h,10),r=u(r,n=u(n,s,c,h,r,e[14],0,9),s,c=i(c,10),h,e[15],0,8),n,s=i(s,10),c,e[7],1518500249,7),n=o(n=i(n,10),s=o(s,c=o(c,h,r,n,s,e[4],1518500249,6),h,r=i(r,10),n,e[13],1518500249,8),c,h=i(h,10),r,e[1],1518500249,13),c=o(c=i(c,10),h=o(h,r=o(r,n,s,c,h,e[10],1518500249,11),n,s=i(s,10),c,e[6],1518500249,9),r,n=i(n,10),s,e[15],1518500249,7),r=o(r=i(r,10),n=o(n,s=o(s,c,h,r,n,e[3],1518500249,15),c,h=i(h,10),r,e[12],1518500249,7),s,c=i(c,10),h,e[0],1518500249,12),s=o(s=i(s,10),c=o(c,h=o(h,r,n,s,c,e[9],1518500249,15),r,n=i(n,10),s,e[5],1518500249,9),h,r=i(r,10),n,e[2],1518500249,11),h=o(h=i(h,10),r=o(r,n=o(n,s,c,h,r,e[14],1518500249,7),s,c=i(c,10),h,e[11],1518500249,13),n,s=i(s,10),c,e[8],1518500249,12),n=a(n=i(n,10),s=a(s,c=a(c,h,r,n,s,e[3],1859775393,11),h,r=i(r,10),n,e[10],1859775393,13),c,h=i(h,10),r,e[14],1859775393,6),c=a(c=i(c,10),h=a(h,r=a(r,n,s,c,h,e[4],1859775393,7),n,s=i(s,10),c,e[9],1859775393,14),r,n=i(n,10),s,e[15],1859775393,9),r=a(r=i(r,10),n=a(n,s=a(s,c,h,r,n,e[8],1859775393,13),c,h=i(h,10),r,e[1],1859775393,15),s,c=i(c,10),h,e[2],1859775393,14),s=a(s=i(s,10),c=a(c,h=a(h,r,n,s,c,e[7],1859775393,8),r,n=i(n,10),s,e[0],1859775393,13),h,r=i(r,10),n,e[6],1859775393,6),h=a(h=i(h,10),r=a(r,n=a(n,s,c,h,r,e[13],1859775393,5),s,c=i(c,10),h,e[11],1859775393,12),n,s=i(s,10),c,e[5],1859775393,7),n=f(n=i(n,10),s=f(s,c=a(c,h,r,n,s,e[12],1859775393,5),h,r=i(r,10),n,e[1],2400959708,11),c,h=i(h,10),r,e[9],2400959708,12),c=f(c=i(c,10),h=f(h,r=f(r,n,s,c,h,e[11],2400959708,14),n,s=i(s,10),c,e[10],2400959708,15),r,n=i(n,10),s,e[0],2400959708,14),r=f(r=i(r,10),n=f(n,s=f(s,c,h,r,n,e[8],2400959708,15),c,h=i(h,10),r,e[12],2400959708,9),s,c=i(c,10),h,e[4],2400959708,8),s=f(s=i(s,10),c=f(c,h=f(h,r,n,s,c,e[13],2400959708,9),r,n=i(n,10),s,e[3],2400959708,14),h,r=i(r,10),n,e[7],2400959708,5),h=f(h=i(h,10),r=f(r,n=f(n,s,c,h,r,e[15],2400959708,6),s,c=i(c,10),h,e[14],2400959708,8),n,s=i(s,10),c,e[5],2400959708,6),n=d(n=i(n,10),s=f(s,c=f(c,h,r,n,s,e[6],2400959708,5),h,r=i(r,10),n,e[2],2400959708,12),c,h=i(h,10),r,e[4],2840853838,9),c=d(c=i(c,10),h=d(h,r=d(r,n,s,c,h,e[0],2840853838,15),n,s=i(s,10),c,e[5],2840853838,5),r,n=i(n,10),s,e[9],2840853838,11),r=d(r=i(r,10),n=d(n,s=d(s,c,h,r,n,e[7],2840853838,6),c,h=i(h,10),r,e[12],2840853838,8),s,c=i(c,10),h,e[2],2840853838,13),s=d(s=i(s,10),c=d(c,h=d(h,r,n,s,c,e[10],2840853838,12),r,n=i(n,10),s,e[14],2840853838,5),h,r=i(r,10),n,e[1],2840853838,12),h=d(h=i(h,10),r=d(r,n=d(n,s,c,h,r,e[3],2840853838,13),s,c=i(c,10),h,e[8],2840853838,14),n,s=i(s,10),c,e[11],2840853838,11),n=d(n=i(n,10),s=d(s,c=d(c,h,r,n,s,e[6],2840853838,8),h,r=i(r,10),n,e[15],2840853838,5),c,h=i(h,10),r,e[13],2840853838,6),c=i(c,10);var l=this._a,p=this._b,b=this._c,y=this._d,m=this._e;m=d(m,l=d(l,p,b,y,m,e[5],1352829926,8),p,b=i(b,10),y,e[14],1352829926,9),p=d(p=i(p,10),b=d(b,y=d(y,m,l,p,b,e[7],1352829926,9),m,l=i(l,10),p,e[0],1352829926,11),y,m=i(m,10),l,e[9],1352829926,13),y=d(y=i(y,10),m=d(m,l=d(l,p,b,y,m,e[2],1352829926,15),p,b=i(b,10),y,e[11],1352829926,15),l,p=i(p,10),b,e[4],1352829926,5),l=d(l=i(l,10),p=d(p,b=d(b,y,m,l,p,e[13],1352829926,7),y,m=i(m,10),l,e[6],1352829926,7),b,y=i(y,10),m,e[15],1352829926,8),b=d(b=i(b,10),y=d(y,m=d(m,l,p,b,y,e[8],1352829926,11),l,p=i(p,10),b,e[1],1352829926,14),m,l=i(l,10),p,e[10],1352829926,14),m=f(m=i(m,10),l=d(l,p=d(p,b,y,m,l,e[3],1352829926,12),b,y=i(y,10),m,e[12],1352829926,6),p,b=i(b,10),y,e[6],1548603684,9),p=f(p=i(p,10),b=f(b,y=f(y,m,l,p,b,e[11],1548603684,13),m,l=i(l,10),p,e[3],1548603684,15),y,m=i(m,10),l,e[7],1548603684,7),y=f(y=i(y,10),m=f(m,l=f(l,p,b,y,m,e[0],1548603684,12),p,b=i(b,10),y,e[13],1548603684,8),l,p=i(p,10),b,e[5],1548603684,9),l=f(l=i(l,10),p=f(p,b=f(b,y,m,l,p,e[10],1548603684,11),y,m=i(m,10),l,e[14],1548603684,7),b,y=i(y,10),m,e[15],1548603684,7),b=f(b=i(b,10),y=f(y,m=f(m,l,p,b,y,e[8],1548603684,12),l,p=i(p,10),b,e[12],1548603684,7),m,l=i(l,10),p,e[4],1548603684,6),m=f(m=i(m,10),l=f(l,p=f(p,b,y,m,l,e[9],1548603684,15),b,y=i(y,10),m,e[1],1548603684,13),p,b=i(b,10),y,e[2],1548603684,11),p=a(p=i(p,10),b=a(b,y=a(y,m,l,p,b,e[15],1836072691,9),m,l=i(l,10),p,e[5],1836072691,7),y,m=i(m,10),l,e[1],1836072691,15),y=a(y=i(y,10),m=a(m,l=a(l,p,b,y,m,e[3],1836072691,11),p,b=i(b,10),y,e[7],1836072691,8),l,p=i(p,10),b,e[14],1836072691,6),l=a(l=i(l,10),p=a(p,b=a(b,y,m,l,p,e[6],1836072691,6),y,m=i(m,10),l,e[9],1836072691,14),b,y=i(y,10),m,e[11],1836072691,12),b=a(b=i(b,10),y=a(y,m=a(m,l,p,b,y,e[8],1836072691,13),l,p=i(p,10),b,e[12],1836072691,5),m,l=i(l,10),p,e[2],1836072691,14),m=a(m=i(m,10),l=a(l,p=a(p,b,y,m,l,e[10],1836072691,13),b,y=i(y,10),m,e[0],1836072691,13),p,b=i(b,10),y,e[4],1836072691,7),p=o(p=i(p,10),b=o(b,y=a(y,m,l,p,b,e[13],1836072691,5),m,l=i(l,10),p,e[8],2053994217,15),y,m=i(m,10),l,e[6],2053994217,5),y=o(y=i(y,10),m=o(m,l=o(l,p,b,y,m,e[4],2053994217,8),p,b=i(b,10),y,e[1],2053994217,11),l,p=i(p,10),b,e[3],2053994217,14),l=o(l=i(l,10),p=o(p,b=o(b,y,m,l,p,e[11],2053994217,14),y,m=i(m,10),l,e[15],2053994217,6),b,y=i(y,10),m,e[0],2053994217,14),b=o(b=i(b,10),y=o(y,m=o(m,l,p,b,y,e[5],2053994217,6),l,p=i(p,10),b,e[12],2053994217,9),m,l=i(l,10),p,e[2],2053994217,12),m=o(m=i(m,10),l=o(l,p=o(p,b,y,m,l,e[13],2053994217,9),b,y=i(y,10),m,e[9],2053994217,12),p,b=i(b,10),y,e[7],2053994217,5),p=u(p=i(p,10),b=o(b,y=o(y,m,l,p,b,e[10],2053994217,15),m,l=i(l,10),p,e[14],2053994217,8),y,m=i(m,10),l,e[12],0,8),y=u(y=i(y,10),m=u(m,l=u(l,p,b,y,m,e[15],0,5),p,b=i(b,10),y,e[10],0,12),l,p=i(p,10),b,e[4],0,9),l=u(l=i(l,10),p=u(p,b=u(b,y,m,l,p,e[1],0,12),y,m=i(m,10),l,e[5],0,5),b,y=i(y,10),m,e[8],0,14),b=u(b=i(b,10),y=u(y,m=u(m,l,p,b,y,e[7],0,6),l,p=i(p,10),b,e[6],0,8),m,l=i(l,10),p,e[2],0,13),m=u(m=i(m,10),l=u(l,p=u(p,b,y,m,l,e[13],0,6),b,y=i(y,10),m,e[14],0,5),p,b=i(b,10),y,e[0],0,15),p=u(p=i(p,10),b=u(b,y=u(y,m,l,p,b,e[3],0,13),m,l=i(l,10),p,e[9],0,11),y,m=i(m,10),l,e[11],0,11),y=i(y,10);var g=this._b+s+y|0;this._b=this._c+c+m|0,this._c=this._d+h+l|0,this._d=this._e+r+p|0,this._e=this._a+n+b|0,this._a=g},n.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=new t(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=n}).call(t,r(0).Buffer)},function(e,t){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function u(e){return void 0===e}e.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,r,o,a,f,d;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(u(r=this._events[e]))return!1;if(n(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),r.apply(this,a)}else if(i(r))for(a=Array.prototype.slice.call(arguments,1),o=(d=r.slice()).length,f=0;f<o;f++)d[f].apply(this,a);return!0},r.prototype.addListener=function(e,t){var o;if(!n(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(o=u(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[e].length>o&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function r(){this.removeListener(e,r),i||(i=!0,t.apply(this,arguments))}if(!n(t))throw TypeError("listener must be a function");var i=!1;return r.listener=t,this.on(e,r),this},r.prototype.removeListener=function(e,t){var r,u,o,a;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(r=this._events[e]).length,u=-1,r===t||n(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(r)){for(a=o;a-- >0;)if(r[a]===t||r[a].listener&&r[a].listener===t){u=a;break}if(u<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(u,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,r){(t=e.exports=r(53)).Stream=t,t.Readable=t,t.Writable=r(40),t.Duplex=r(11),t.Transform=r(56),t.PassThrough=r(115)},function(e,t,r){"use strict";(function(t,n,i){function u(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(void 0),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}function o(){}function a(e,t){y=y||r(11),e=e||{},this.objectMode=!!e.objectMode,t instanceof y&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,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 o=!1===e.decodeStrings;this.decodeStrings=!o,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}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(b(i,n),b(p,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),p(e,t))}(e,r,n,t,i);else{var u=h(r);u||r.corked||r.bufferProcessing||!r.bufferedRequest||c(e,r),n?m(s,e,r,u,i):s(e,r,u,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 u(this)}function f(e){if(y=y||r(11),!(v.call(f,this)||this instanceof y))return new f(e);this._writableState=new a(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)),w.call(this)}function d(e,t,r,n,i,u,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,u,t.onwrite),t.sync=!1}function s(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),p(e,t)}function c(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 a=0,f=!0;r;)i[a]=r,r.isBuf||(f=!1),r=r.next,a+=1;i.allBuffers=f,d(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 u(t)}else{for(;r;){var s=r.chunk,c=r.encoding,h=r.callback;if(d(e,t,!1,t.objectMode?1:s.length,s,c,h),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}function h(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function l(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),p(e,t)})}function p(e,t){var r=h(t);return r&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,b(l,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}var b=r(26);e.exports=f;var y,m=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?n:b;f.WritableState=a;var g=r(19);g.inherits=r(1);var v,_={deprecate:r(114)},w=r(54),S=r(2).Buffer,E=i.Uint8Array||function(){},A=r(55);g.inherits(f,w),a.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(a.prototype,"buffer",{get:_.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]?(v=Function.prototype[Symbol.hasInstance],Object.defineProperty(f,Symbol.hasInstance,{value:function(e){return!!v.call(this,e)||e&&e._writableState instanceof a}})):v=function(e){return e instanceof this},f.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},f.prototype.write=function(e,t,r){var n=this._writableState,i=!1,u=function(e){return S.isBuffer(e)||e instanceof E}(e)&&!n.objectMode;return u&&!S.isBuffer(e)&&(e=function(e){return S.from(e)}(e)),"function"==typeof t&&(r=t,t=null),u?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=o),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),b(t,r)}(this,r):(u||function(e,t,r,n){var i=!0,u=!1;return null===r?u=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(u=new TypeError("Invalid non-string/buffer chunk")),u&&(e.emit("error",u),b(n,u),i=!1),i}(this,n,e,r))&&(n.pendingcb++,i=function(e,t,r,n,i,u){if(!r){var o=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=S.from(t,r)),t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var f=t.length<t.highWaterMark;if(f||(t.needDrain=!0),t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:u,next:null},s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else d(e,t,!1,a,n,i,u);return f}(this,n,u,e,t,r)),i},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||c(this,e))},f.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},f.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},f.prototype._writev=null,f.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&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,p(e,t),r&&(t.finished?b(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),f.prototype.destroy=A.destroy,f.prototype._undestroy=A.undestroy,f.prototype._destroy=function(e,t){this.end(),t(e)}}).call(t,r(6),r(112).setImmediate,r(9))},function(e,t,r){"use strict";function n(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(h.isEncoding===l||!l(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=o,this.end=a,t=4;break;case"utf8":this.fillLast=u,t=4;break;case"base64":this.text=f,this.end=d,t=3;break;default:return this.write=s,void(this.end=c)}this.lastNeed=0,this.lastTotal=0,this.lastChar=h.allocUnsafe(t)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:-1}function u(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�".repeat(r);if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�".repeat(r+1);if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�".repeat(r+2)}}(this,e,t);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 o(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 a(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 d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function s(e){return e.toString(this.encoding)}function c(e){return e&&e.length?this.write(e):""}var h=r(2).Buffer,l=h.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};t.StringDecoder=n,n.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<e.length?t?t+this.text(e,r):this.text(e,r):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�".repeat(this.lastTotal-this.lastNeed):t},n.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var u=i(t[n]);return u>=0?(u>0&&(e.lastNeed=u-1),u):--n<r?0:(u=i(t[n]))>=0?(u>0&&(e.lastNeed=u-2),u):--n<r?0:(u=i(t[n]))>=0?(u>0&&(2===u?u=0:e.lastNeed=u-3),u):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)},n.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){(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(120),t.sha1=r(121),t.sha224=r(122),t.sha256=r(57),t.sha384=r(123),t.sha512=r(58)},function(e,t,r){var n=r(130),i=r(138),u=r(67);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(u)}},function(e,t,r){var n={ECB:r(131),CBC:r(132),CFB:r(133),CFB8:r(134),CFB1:r(135),OFB:r(136),CTR:r(65),GCM:r(65)},i=r(67);for(var u in i)i[u].module=n[i[u].mode];e.exports=i},function(e,t,r){"use strict";t.utils=r(140),t.Cipher=r(141),t.DES=r(142),t.CBC=r(143),t.EDE=r(144)},function(e,t,r){(function(t){function n(e){var t=u(e);return{blinder:t.toRed(o.mont(e.modulus)).redPow(new o(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}function i(e,r){var i=n(r),u=r.modulus.byteLength(),a=(o.mont(r.modulus),new o(e).mul(i.blinder).umod(r.modulus)),f=a.toRed(o.mont(r.prime1)),d=a.toRed(o.mont(r.prime2)),s=r.coefficient,c=r.prime1,h=r.prime2,l=f.redPow(r.exponent1),p=d.redPow(r.exponent2);l=l.fromRed(),p=p.fromRed();var b=l.isub(p).imul(s).umod(c);return b.imul(h),p.iadd(b),new t(p.imul(i.unblinder).umod(r.modulus).toArray(!1,u))}function u(e){for(var t=e.modulus.byteLength(),r=new o(a(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new o(a(t));return r}var o=r(3),a=r(13);e.exports=i,i.getr=u}).call(t,r(0).Buffer)},function(e,t,r){var n=t;n.utils=r(7),n.common=r(21),n.sha=r(159),n.ripemd=r(163),n.hmac=r(164),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){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){function n(e,t){o.call(this,t),a.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function i(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof i||(e=new i(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=a.byteLength(e);else{if(!a.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}var u=r(1),o=r(16).Reporter,a=r(0).Buffer;u(n,o),t.DecoderBuffer=n,n.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},n.prototype.restore=function(e){var t=new n(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,o.prototype.restore.call(this,e.reporter),t},n.prototype.isEmpty=function(){return this.offset===this.length},n.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},n.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new n(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},n.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=i,i.prototype.join=function(e,t){return e||(e=new a(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach(function(r){r.join(e,t),t+=r.length}):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):a.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach(function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r}),t},n.der=r(101)},function(e,t,r){function n(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new i,this.tree._init(e.body)}function i(e){d.Node.call(this,"der",e)}function u(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=c.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){var u=r;for(r=0;128==(128&u);){if(u=e.readUInt8(t),e.isError(u))return u;r<<=7,r|=127&u}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:c.tag[r]}}function o(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 u=0;u<i;u++){n<<=8;var o=e.readUInt8(r);if(e.isError(o))return o;n|=o}return n}var a=r(1),f=r(8),d=f.base,s=f.bignum,c=f.constants.der;e.exports=n,n.prototype.decode=function(e,t){return e instanceof d.DecoderBuffer||(e=new d.DecoderBuffer(e,t)),this.tree._decode(e,t)},a(i,d.Node),i.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},i.prototype._decodeTag=function(e,t,r){var n=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=o(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 a=e.save(),f=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(f)?f:(i=e.offset-a.offset,e.restore(a),e.skip(i,'Failed to match body of: "'+t+'"'))},i.prototype._skipUntilEnd=function(e,t){for(;;){var r=u(e,t);if(e.isError(r))return r;var n,i=o(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}},i.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var u=this._peekTag(e,"end");if(e.isError(u))return u;var o=r.decode(e,"der",n);if(e.isError(o)&&u)break;i.push(o)}return i},i.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?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="",u=0;u<n.length/2;u++)i+=String.fromCharCode(n.readUInt16BE(2*u));return i}if("numstr"===t){var o=e.raw().toString("ascii");return this._isNumstr(o)?o:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var a=e.raw().toString("ascii");return this._isPrintstr(a)?a:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},i.prototype._decodeObjid=function(e,t,r){for(var n,i=[],u=0;!e.isEmpty();){var o=e.readUInt8();u<<=7,u|=127&o,0==(128&o)&&(i.push(u),u=0)}128&o&&i.push(u);var a=i[0]/40|0,f=i[0]%40;if(n=r?i:[a,f].concat(i.slice(1)),t){var d=t[n.join(" ")];void 0===d&&(d=t[n.join(".")]),void 0!==d&&(n=d)}return n},i.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),u=0|r.slice(6,8),o=0|r.slice(8,10),a=0|r.slice(10,12),f=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),u=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),f=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,u,o,a,f,0)},i.prototype._decodeNull=function(e){return null},i.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},i.prototype._decodeInt=function(e,t){var r=e.raw(),n=new s(r);return t&&(n=t[n.toString(10)]||n),n},i.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,r){function n(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new i,this.tree._init(e.body)}function i(e){d.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}var o=r(1),a=r(0).Buffer,f=r(8),d=f.base,s=f.constants.der;e.exports=n,n.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},o(i,d.Node),i.prototype._encodeComposite=function(e,t,r,n){var i,u=function(e,t,r,n){var i;if("seqof"===e?e="seq":"setof"===e&&(e="set"),s.tagByName.hasOwnProperty(e))i=s.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}return i>=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6)}(e,t,r,this.reporter);if(n.length<128)return(i=new a(2))[0]=u,i[1]=n.length,this._createEncoderBuffer([i,n]);for(var o=1,f=n.length;f>=256;f>>=8)o++;(i=new a(2+o))[0]=u,i[1]=128|o;f=1+o;for(var d=n.length;d>0;f--,d>>=8)i[f]=255&d;return this._createEncoderBuffer([i,n])},i.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new a(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},i.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<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var i=0;for(n=0;n<e.length;n++){var u=e[n];for(i++;u>=128;u>>=7)i++}var o=new a(i),f=o.length-1;for(n=e.length-1;n>=0;n--){u=e[n];for(o[f--]=127&u;(u>>=7)>0;)o[f--]=128|127&u}return this._createEncoderBuffer(o)},i.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[u(n.getFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[u(n.getFullYear()%100),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},i.prototype._encodeNull=function(){return this._createEncoderBuffer("")},i.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&&!a.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new a(r)}if(a.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=new a(n);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var u=e;u>=256;u>>=8)n++;for(u=(i=new Array(n)).length-1;u>=0;u--)i[u]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new a(i))},i.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},i.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},i.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var u=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),u.length!==i.defaultBuffer.length)return!1;for(n=0;n<u.length;n++)if(u[n]!==i.defaultBuffer[n])return!1;return!0}},function(e,t,r){"use strict";(function(t,n){function i(e,t){w=w||r(11),e=e||{},this.objectMode=!!e.objectMode,t instanceof w&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new P,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&&(B||(B=r(41).StringDecoder),this.decoder=new B(e.encoding),this.encoding=e.encoding)}function u(e){if(w=w||r(11),!(this instanceof u))return new u(e);this._readableState=new i(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),A.call(this)}function o(e,t,r,n,i){var u,o=e._readableState;return null===t?(o.reading=!1,function(e,t){if(!t.ended){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,d(e)}}(e,o)):(i||(u=function(e,t){var r;return function(e){return x.isBuffer(e)||e instanceof k}(t)||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}(o,t)),u?e.emit("error",u):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===x.prototype||(t=function(e){return x.from(e)}(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):a(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?a(e,o,t,!1):c(e,o)):a(e,o,t,!1))):n||(o.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function a(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&d(e)),c(e,t)}function f(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=R?e=R:(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 d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(T("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?_(s,e):s(e))}function s(e){T("emit readable"),e.emit("readable"),b(e)}function c(e,t){t.readingMore||(t.readingMore=!0,_(h,e,t))}function h(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(T("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function l(e){T("readable nexttick read 0"),e.read(0)}function p(e,t){t.reading||(T("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),b(e),t.flowing&&!t.reading&&e.read(0)}function b(e){var t=e._readableState;for(T("flow",t.flowing);t.flowing&&null!==e.read(););}function y(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=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;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var u=r.data,o=e>u.length?u.length:e;if(o===u.length?i+=u:i+=u.slice(0,e),0==(e-=o)){o===u.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=u.slice(o));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=x.allocUnsafe(e),n=t.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var u=n.data,o=e>u.length?u.length:e;if(u.copy(r,r.length-e,0,o),0==(e-=o)){o===u.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=u.slice(o));break}++i}return t.length-=i,r}(e,t),n}(e,t.buffer,t.decoder),r);var r}function m(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,_(g,t,e))}function g(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function v(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}var _=r(26);e.exports=u;var w,S=r(48);u.ReadableState=i;var E=(r(38).EventEmitter,function(e,t){return e.listeners(t).length}),A=r(54),x=r(2).Buffer,k=t.Uint8Array||function(){},M=r(19);M.inherits=r(1);var I=r(110),T=void 0;T=I&&I.debuglog?I.debuglog("stream"):function(){};var B,P=r(111),C=r(55);M.inherits(u,A);var O=["error","close","destroy","pause","resume"];Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),u.prototype.destroy=C.destroy,u.prototype._undestroy=C.undestroy,u.prototype._destroy=function(e,t){this.push(null),t(e)},u.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=x.from(e,t),t=""),r=!0),o(this,e,t,!1,r)},u.prototype.unshift=function(e){return o(this,e,null,!0,!1)},u.prototype.isPaused=function(){return!1===this._readableState.flowing},u.prototype.setEncoding=function(e){return B||(B=r(41).StringDecoder),this._readableState.decoder=new B(e),this._readableState.encoding=e,this};var R=8388608;u.prototype.read=function(e){T("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return T("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?m(this):d(this),null;if(0===(e=f(e,t))&&t.ended)return 0===t.length&&m(this),null;var n,i=t.needReadable;return T("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&T("length less than watermark",i=!0),t.ended||t.reading?T("reading or ended",i=!1):i&&(T("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=f(r,t))),null===(n=e>0?y(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&m(this)),null!==n&&this.emit("data",n),n},u.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(e,t){function r(e,t){T("onunpipe"),e===c&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,u())}function i(){T("onend"),e.end()}function u(){T("cleanup"),e.removeListener("close",f),e.removeListener("finish",d),e.removeListener("drain",p),e.removeListener("error",a),e.removeListener("unpipe",r),c.removeListener("end",i),c.removeListener("end",s),c.removeListener("data",o),y=!0,!h.awaitDrain||e._writableState&&!e._writableState.needDrain||p()}function o(t){T("ondata"),m=!1,!1!==e.write(t)||m||((1===h.pipesCount&&h.pipes===e||h.pipesCount>1&&-1!==v(h.pipes,e))&&!y&&(T("false write response, pause",c._readableState.awaitDrain),c._readableState.awaitDrain++,m=!0),c.pause())}function a(t){T("onerror",t),s(),e.removeListener("error",a),0===E(e,"error")&&e.emit("error",t)}function f(){e.removeListener("finish",d),s()}function d(){T("onfinish"),e.removeListener("close",f),s()}function s(){T("unpipe"),c.unpipe(e)}var c=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=e;break;case 1:h.pipes=[h.pipes,e];break;default:h.pipes.push(e)}h.pipesCount+=1,T("pipe count=%d opts=%j",h.pipesCount,t);var l=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?i:s;h.endEmitted?_(l):c.once("end",l),e.on("unpipe",r);var p=function(e){return function(){var t=e._readableState;T("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&E(e,"data")&&(t.flowing=!0,b(e))}}(c);e.on("drain",p);var y=!1,m=!1;return c.on("data",o),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?S(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",a),e.once("close",f),e.once("finish",d),e.emit("pipe",c),h.flowing||(T("pipe resume"),c.resume()),e},u.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 u=0;u<i;u++)n[u].emit("unpipe",this,r);return this}var o=v(t.pipes,e);return-1===o?this:(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)},u.prototype.on=function(e,t){var r=A.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&d(this):_(l,this))}return r},u.prototype.addListener=u.prototype.on,u.prototype.resume=function(){var e=this._readableState;return e.flowing||(T("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,_(p,e,t))}(this,e)),this},u.prototype.pause=function(){return T("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(T("pause"),this._readableState.flowing=!1,this.emit("pause")),this},u.prototype.wrap=function(e){var t=this._readableState,r=!1,n=this;for(var i in e.on("end",function(){if(T("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&n.push(e)}n.push(null)}),e.on("data",function(i){T("wrapped data"),t.decoder&&(i=t.decoder.write(i)),(!t.objectMode||null!==i&&void 0!==i)&&(t.objectMode||i&&i.length)&&(n.push(i)||(r=!0,e.pause()))}),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var u=0;u<O.length;u++)e.on(O[u],n.emit.bind(n,O[u]));return n._read=function(t){T("wrapped _read",t),r&&(r=!1,e.resume())},n},u._fromList=y}).call(t,r(9),r(6))},function(e,t,r){e.exports=r(38).EventEmitter},function(e,t,r){"use strict";function n(e,t){e.emit("error",t)}var i=r(26);e.exports={destroy:function(e,t){var r=this,u=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;u||o?t?t(e):!e||this._writableState&&this._writableState.errorEmitted||i(n,this,e):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(i(n,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);u.call(this,e),this._transformState=new function(e){this.afterTransform=function(t,r){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&e.push(r),i(t);var u=e._readableState;u.reading=!1,(u.needReadable||u.length<u.highWaterMark)&&e._read(u.highWaterMark)}(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e,r){i(t,e,r)}):i(t)})}function i(e,t,r){if(t)return e.emit("error",t);null!==r&&void 0!==r&&e.push(r);var n=e._writableState,i=e._transformState;if(n.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}e.exports=n;var u=r(11),o=r(19);o.inherits=r(1),o.inherits(n,u),n.prototype.push=function(e,t){return this._transformState.needTransform=!1,u.prototype.push.call(this,e,t)},n.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},n.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},n.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(e,t){var r=this;u.prototype._destroy.call(this,e,function(e){t(e),r.emit("close")})}},function(e,t,r){function n(){this.init(),this._w=p,c.call(this,64,56)}function i(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function o(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function a(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function d(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}var s=r(1),c=r(14),h=r(2).Buffer,l=[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],p=new Array(64);s(n,c),n.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},n.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,s=0|this._c,c=0|this._d,h=0|this._e,p=0|this._f,b=0|this._g,y=0|this._h,m=0;m<16;++m)t[m]=e.readInt32BE(4*m);for(;m<64;++m)t[m]=d(t[m-2])+t[m-7]+f(t[m-15])+t[m-16]|0;for(var g=0;g<64;++g){var v=y+a(h)+i(h,p,b)+l[g]+t[g]|0,_=o(r)+u(r,n,s)|0;y=b,b=p,p=h,h=c+v|0,c=s,s=n,n=r,r=v+_|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=s+this._c|0,this._d=c+this._d|0,this._e=h+this._e|0,this._f=p+this._f|0,this._g=b+this._g|0,this._h=y+this._h|0},n.prototype._hash=function(){var e=h.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=n},function(e,t,r){function n(){this.init(),this._w=m,p.call(this,128,112)}function i(e,t,r){return r^e&(t^r)}function u(e,t,r){return e&t|r&(e|t)}function o(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function a(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function s(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function c(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function h(e,t){return e>>>0<t>>>0?1:0}var l=r(1),p=r(14),b=r(2).Buffer,y=[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],m=new Array(160);l(n,p),n.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},n.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,l=0|this._ch,p=0|this._dh,b=0|this._eh,m=0|this._fh,g=0|this._gh,v=0|this._hh,_=0|this._al,w=0|this._bl,S=0|this._cl,E=0|this._dl,A=0|this._el,x=0|this._fl,k=0|this._gl,M=0|this._hl,I=0;I<32;I+=2)t[I]=e.readInt32BE(4*I),t[I+1]=e.readInt32BE(4*I+4);for(;I<160;I+=2){var T=t[I-30],B=t[I-30+1],P=f(T,B),C=d(B,T),O=s(T=t[I-4],B=t[I-4+1]),R=c(B,T),j=t[I-14],U=t[I-14+1],L=t[I-32],N=t[I-32+1],D=C+U|0,F=P+j+h(D,C)|0;F=(F=F+O+h(D=D+R|0,R)|0)+L+h(D=D+N|0,N)|0,t[I]=F,t[I+1]=D}for(var z=0;z<160;z+=2){F=t[z],D=t[z+1];var q=u(r,n,l),K=u(_,w,S),Y=o(r,_),H=o(_,r),J=a(b,A),G=a(A,b),V=y[z],W=y[z+1],X=i(b,m,g),Z=i(A,x,k),$=M+G|0,Q=v+J+h($,M)|0;Q=(Q=(Q=Q+X+h($=$+Z|0,Z)|0)+V+h($=$+W|0,W)|0)+F+h($=$+D|0,D)|0;var ee=H+K|0,te=Y+q+h(ee,H)|0;v=g,M=k,g=m,k=x,m=b,x=A,b=p+Q+h(A=E+$|0,E)|0,p=l,E=S,l=n,S=w,n=r,w=_,r=Q+te+h(_=$+ee|0,$)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+S|0,this._dl=this._dl+E|0,this._el=this._el+A|0,this._fl=this._fl+x|0,this._gl=this._gl+k|0,this._hl=this._hl+M|0,this._ah=this._ah+r+h(this._al,_)|0,this._bh=this._bh+n+h(this._bl,w)|0,this._ch=this._ch+l+h(this._cl,S)|0,this._dh=this._dh+p+h(this._dl,E)|0,this._eh=this._eh+b+h(this._el,A)|0,this._fh=this._fh+m+h(this._fl,x)|0,this._gh=this._gh+g+h(this._gl,k)|0,this._hh=this._hh+v+h(this._hl,M)|0},n.prototype._hash=function(){function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}var t=b.allocUnsafe(64);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},e.exports=n},function(e,t,r){"use strict";function n(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 d:s(e)).update(t).digest():t.length<r&&(t=a.concat([t,c],r));for(var n=this._ipad=a.allocUnsafe(r),i=this._opad=a.allocUnsafe(r),u=0;u<r;u++)n[u]=54^t[u],i[u]=92^t[u];this._hash="rmd160"===e?new d:s(e),this._hash.update(n)}var i=r(1),u=r(124),o=r(10),a=r(2).Buffer,f=r(36),d=r(37),s=r(42),c=a.alloc(128);i(n,o),n.prototype._update=function(e){this._hash.update(e)},n.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new d:s(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new n("rmd160",t):"md5"===e?new u(f,t):new n(e,t)}},function(e,t){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){t.pbkdf2=r(126),t.pbkdf2Sync=r(64)},function(e,t){var r=Math.pow(2,30)-1;e.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>r||t!=t)throw new TypeError("Bad key length")}},function(e,t,r){(function(t){var r;r=t.browser?"utf-8":parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary",e.exports=r}).call(t,r(6))},function(e,t,r){function n(e,t,r){var n=i(e),u="sha512"===e||"sha384"===e?128:64;t.length>u?t=n(t):t.length<u&&(t=s.concat([t,c],u));for(var o=s.allocUnsafe(u+h[e]),a=s.allocUnsafe(u+h[e]),f=0;f<u;f++)o[f]=54^t[f],a[f]=92^t[f];var d=s.allocUnsafe(u+r+4);o.copy(d,0,0,u),this.ipad1=d,this.ipad2=o,this.opad=a,this.alg=e,this.blocksize=u,this.hash=n,this.size=h[e]}function i(e){return"rmd160"===e||"ripemd160"===e?o:"md5"===e?u:function(t){return a(e).update(t).digest()}}var u=r(36),o=r(37),a=r(42),f=r(62),d=r(63),s=r(2).Buffer,c=s.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};n.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,i,u){s.isBuffer(e)||(e=s.from(e,d)),s.isBuffer(t)||(t=s.from(t,d)),f(r,i);var o=new n(u=u||"sha1",e,t.length),a=s.allocUnsafe(i),c=s.allocUnsafe(t.length+4);t.copy(c,0,0,t.length);for(var l=0,p=h[u],b=Math.ceil(i/p),y=1;y<=b;y++){c.writeUInt32BE(y,t.length);for(var m=o.run(c,o.ipad1),g=m,v=1;v<r;v++){g=o.run(g,o.ipad2);for(var _=0;_<p;_++)m[_]^=g[_]}m.copy(a,l),l+=p}return a}},function(e,t,r){function n(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}var i=r(20),u=r(2).Buffer,o=r(66);t.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=u.concat([e._cache,u.allocUnsafe(16*r)]);for(var a=0;a<r;a++){var f=n(e),d=o+16*a;e._cache.writeUInt32BE(f[0],d+0),e._cache.writeUInt32BE(f[1],d+4),e._cache.writeUInt32BE(f[2],d+8),e._cache.writeUInt32BE(f[3],d+12)}var s=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),i(t,s)}},function(e,t){e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},function(e,t){e.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},function(e,t,r){function n(e,t,r,n){o.call(this);var a=u.alloc(4,0);this._cipher=new i.AES(t);var d=this._cipher.encryptBlock(a);this._ghash=new f(d),r=function(e,t,r){if(12===t.length)return e._finID=u.concat([t,u.from([0,0,0,1])]),u.concat([t,u.from([0,0,0,2])]);var n=new f(r),i=t.length,o=i%16;n.update(t),o&&(o=16-o,n.update(u.alloc(o,0))),n.update(u.alloc(8,0));var a=8*i,d=u.alloc(8);d.writeUIntBE(a,0,8),n.update(d),e._finID=n.state;var c=u.from(e._finID);return s(c),c}(this,r,d),this._prev=u.from(r),this._cache=u.allocUnsafe(0),this._secCache=u.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}var i=r(28),u=r(2).Buffer,o=r(10),a=r(1),f=r(137),d=r(20),s=r(66);a(n,o),n.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=u.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},n.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=d(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},n.prototype.getAuthTag=function(){if(this._decrypt||!u.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},n.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},n.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=n},function(e,t,r){function n(e,t,r,n){o.call(this),this._cipher=new i.AES(t),this._prev=u.from(r),this._cache=u.allocUnsafe(0),this._secCache=u.allocUnsafe(0),this._decrypt=n,this._mode=e}var i=r(28),u=r(2).Buffer,o=r(10);r(1)(n,o),n.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},n.prototype._final=function(){this._cipher.scrub()},e.exports=n},function(e,t,r){function n(e){for(var t=function(){if(null!==m)return m;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return m=e,e}(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function i(e){var t=a.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function u(e,t){if(e<16)return new a(2===t||5===t?[140,123]:[140,39]);t=new a(t);for(var r,u;;){for(r=new a(o(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(h))for(;r.mod(l).cmp(p);)r.iadd(y)}else for(;r.mod(f).cmp(b);)r.iadd(y);if(n(u=r.shrn(1))&&n(r)&&i(u)&&i(r)&&d.test(u)&&d.test(r))return r}}var o=r(13);e.exports=u,u.simpleSieve=n,u.fermatTest=i;var a=r(3),f=new a(24),d=new(r(71)),s=new a(1),c=new a(2),h=new a(5),l=(new a(16),new a(8),new a(10)),p=new a(3),b=(new a(7),new a(11)),y=new a(4),m=(new a(12),null)},function(e,t,r){function n(e){this.rand=e||new u.Rand}var i=r(3),u=r(72);e.exports=n,n.create=function(e){return new n(e)},n.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var n=new i(this.rand.generate(r))}while(n.cmp(e)>=0);return n},n.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},n.prototype.test=function(e,t,r){var n=e.bitLength(),u=i.mont(e),o=new i(1).toRed(u);t||(t=Math.max(1,n/48|0));for(var a=e.subn(1),f=0;!a.testn(f);f++);for(var d=e.shrn(f),s=a.toRed(u);t>0;t--){var c=this._randrange(new i(2),a);r&&r(c);var h=c.toRed(u).redPow(d);if(0!==h.cmp(o)&&0!==h.cmp(s)){for(var l=1;l<f;l++){if(0===(h=h.redSqr()).cmp(o))return!1;if(0===h.cmp(s))break}if(l===f)return!1}}return!0},n.prototype.getDivisor=function(e,t){var r=e.bitLength(),n=i.mont(e),u=new i(1).toRed(n);t||(t=Math.max(1,r/48|0));for(var o=e.subn(1),a=0;!o.testn(a);a++);for(var f=e.shrn(a),d=o.toRed(n);t>0;t--){var s=this._randrange(new i(2),o),c=e.gcd(s);if(0!==c.cmpn(1))return c;var h=s.toRed(n).redPow(f);if(0!==h.cmp(u)&&0!==h.cmp(d)){for(var l=1;l<a;l++){if(0===(h=h.redSqr()).cmp(u))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(d))break}if(l===a)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,r){function n(e){this.rand=e}var i;if(e.exports=function(e){return i||(i=new n(null)),i.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var u=r(147);if("function"!=typeof u.randomBytes)throw new Error("Not supported");n.prototype._rand=function(e){return u.randomBytes(e)}}catch(e){}},function(e,t,r){"use strict";function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}var u=t;u.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),u=i>>8,o=255&i;u?r.push(u,o):r.push(o)}return r},u.zero2=n,u.toHex=i,u.encode=function(e,t){return"hex"===t?i(e):e}},function(e,t,r){"use strict";function n(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function u(e,t,r){return e^t^r}var o=r(7).rotr32;t.ft_1=function(e,t,r,o){return 0===e?n(t,r,o):1===e||3===e?u(t,r,o):2===e?i(t,r,o):void 0},t.ch32=n,t.maj32=i,t.p32=u,t.s0_256=function(e){return o(e,2)^o(e,13)^o(e,22)},t.s1_256=function(e){return o(e,6)^o(e,11)^o(e,25)},t.g0_256=function(e){return o(e,7)^o(e,18)^e>>>3},t.g1_256=function(e){return o(e,17)^o(e,19)^e>>>10}},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}var i=r(7),u=r(21),o=r(74),a=r(5),f=i.sum32,d=i.sum32_4,s=i.sum32_5,c=o.ch32,h=o.maj32,l=o.s0_256,p=o.s1_256,b=o.g0_256,y=o.g1_256,m=u.BlockHash,g=[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];i.inherits(n,m),e.exports=n,n.blockSize=512,n.outSize=256,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=d(y(r[n-2]),r[n-7],b(r[n-15]),r[n-16]);var i=this.h[0],u=this.h[1],o=this.h[2],m=this.h[3],g=this.h[4],v=this.h[5],_=this.h[6],w=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var S=s(w,p(g),c(g,v,_),this.k[n],r[n]),E=f(l(i),h(i,u,o));w=_,_=v,v=g,g=f(m,S),m=o,o=u,u=i,i=f(S,E)}this.h[0]=f(this.h[0],i),this.h[1]=f(this.h[1],u),this.h[2]=f(this.h[2],o),this.h[3]=f(this.h[3],m),this.h[4]=f(this.h[4],g),this.h[5]=f(this.h[5],v),this.h[6]=f(this.h[6],_),this.h[7]=f(this.h[7],w)},n.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;B.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=P,this.W=new Array(160)}function i(e,t,r,n,i){var u=e&r^~e&i;return u<0&&(u+=4294967296),u}function u(e,t,r,n,i,u){var o=t&n^~t&u;return o<0&&(o+=4294967296),o}function o(e,t,r,n,i){var u=e&r^e&i^r&i;return u<0&&(u+=4294967296),u}function a(e,t,r,n,i,u){var o=t&n^t&u^n&u;return o<0&&(o+=4294967296),o}function f(e,t){var r=v(e,t,28)^v(t,e,2)^v(t,e,7);return r<0&&(r+=4294967296),r}function d(e,t){var r=_(e,t,28)^_(t,e,2)^_(t,e,7);return r<0&&(r+=4294967296),r}function s(e,t){var r=v(e,t,14)^v(e,t,18)^v(t,e,9);return r<0&&(r+=4294967296),r}function c(e,t){var r=_(e,t,14)^_(e,t,18)^_(t,e,9);return r<0&&(r+=4294967296),r}function h(e,t){var r=v(e,t,1)^v(e,t,8)^w(e,t,7);return r<0&&(r+=4294967296),r}function l(e,t){var r=_(e,t,1)^_(e,t,8)^S(e,t,7);return r<0&&(r+=4294967296),r}function p(e,t){var r=v(e,t,19)^v(t,e,29)^w(e,t,6);return r<0&&(r+=4294967296),r}function b(e,t){var r=_(e,t,19)^_(t,e,29)^S(e,t,6);return r<0&&(r+=4294967296),r}var y=r(7),m=r(21),g=r(5),v=y.rotr64_hi,_=y.rotr64_lo,w=y.shr64_hi,S=y.shr64_lo,E=y.sum64,A=y.sum64_hi,x=y.sum64_lo,k=y.sum64_4_hi,M=y.sum64_4_lo,I=y.sum64_5_hi,T=y.sum64_5_lo,B=m.BlockHash,P=[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];y.inherits(n,B),e.exports=n,n.blockSize=1024,n.outSize=512,n.hmacStrength=192,n.padLength=128,n.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=p(r[n-4],r[n-3]),u=b(r[n-4],r[n-3]),o=r[n-14],a=r[n-13],f=h(r[n-30],r[n-29]),d=l(r[n-30],r[n-29]),s=r[n-32],c=r[n-31];r[n]=k(i,u,o,a,f,d,s,c),r[n+1]=M(i,u,o,a,f,d,s,c)}},n.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],h=this.h[1],l=this.h[2],p=this.h[3],b=this.h[4],y=this.h[5],m=this.h[6],v=this.h[7],_=this.h[8],w=this.h[9],S=this.h[10],k=this.h[11],M=this.h[12],B=this.h[13],P=this.h[14],C=this.h[15];g(this.k.length===r.length);for(var O=0;O<r.length;O+=2){var R=P,j=C,U=s(_,w),L=c(_,w),N=i(_,0,S,0,M),D=u(0,w,0,k,0,B),F=this.k[O],z=this.k[O+1],q=r[O],K=r[O+1],Y=I(R,j,U,L,N,D,F,z,q,K),H=T(R,j,U,L,N,D,F,z,q,K);R=f(n,h),j=d(n,h),U=o(n,0,l,0,b),L=a(0,h,0,p,0,y);var J=A(R,j,U,L),G=x(R,j,U,L);P=M,C=B,M=S,B=k,S=_,k=w,_=A(m,v,Y,H),w=x(v,v,Y,H),m=b,v=y,b=l,y=p,l=n,p=h,n=A(Y,H,J,G),h=x(Y,H,J,G)}E(this.h,0,n,h),E(this.h,2,l,p),E(this.h,4,b,y),E(this.h,6,m,v),E(this.h,8,_,w),E(this.h,10,S,k),E(this.h,12,M,B),E(this.h,14,P,C)},n.prototype._digest=function(e){return"hex"===e?y.toHex32(this.h,"big"):y.split32(this.h,"big")}},function(e,t){e.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},function(e,t,r){(function(t){function n(e){var r=new t(4);return r.writeUInt32BE(e,0),r}var i=r(18);e.exports=function(e,r){for(var u,o=new t(""),a=0;o.length<r;)u=n(a++),o=t.concat([o,i("sha1").update(e).update(u).digest()]);return o.slice(0,r)}}).call(t,r(0).Buffer)},function(e,t){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},function(e,t,r){(function(t){var n=r(3);e.exports=function(e,r){return new t(e.toRed(n.mont(r.modulus)).redPow(new n(r.publicExponent)).fromRed().toArray())}}).call(t,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(8),u=i.define("RsaPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}),o=i.define("RsaPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int(),this.optional().key("otherPrimeInfos").seqof(this.obj(this.key("prime").int(),this.key("exponent").int(),this.key("coefficient").int())))}),a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,null,[{key:"modulusToPem",value:function(e){if(0===e[0])throw new Error("Modulus may not start with zero");return 128&e[0]&&(e=t.concat([t.from([0]),e])),"-----BEGIN RSA PUBLIC KEY-----\n"+u.encode({modulus:e,publicExponent:65537}).toString("base64").match(/.{1,64}/g).join("\n")+"\n-----END RSA PUBLIC KEY-----\n"}},{key:"modulusFromPrivateKey",value:function(e){var r=e.replace("-----BEGIN RSA PRIVATE KEY-----","").replace("-----END RSA PRIVATE KEY-----","").replace(/\s+|\n\r|\n|\r$/gm,""),n=t.from(r,"base64");return o.decode(n).modulus.toArrayLike(t)}}]),e}();e.exports=a}).call(t,r(0).Buffer)},function(e,t,r){"use strict";var n=r(15),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n),t}();e.exports=i},function(e,t){function r(e){throw new Error("Cannot find module '"+e+"'.")}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=83},function(e,t,r){e.exports=r(85)},function(e,t,r){"use strict";(function(t){var n=r(22),i=r(23),u=r(32),o=r(107),a=r(183),f=r(184),d=r(185),s=r(190),c=r(33),h=t.alloc(0);u.registerType(o),u.registerType(a),u.registerType(f),u.registerType(d),u.registerType(s),e.exports={Condition:n,Fulfillment:i,TypeRegistry:u,PreimageSha256:o,RsaSha256:d,PrefixSha256:a,ThresholdSha256:f,Ed25519Sha256:s,validateCondition:function(e){return n.fromUri(e).validate()},validateFulfillment:function(e,r,n){if(void 0===n&&(n=h),!t.isBuffer(n))throw new Error("Message must be provided as a Buffer");var u=i.fromUri(e),o=u.getConditionUri();if(o!==r)throw new Error("Fulfillment does not match condition (expected: "+r+", actual: "+o+")");return u.validate(n)},fulfillmentToCondition:function(e){return i.fromUri(e).getConditionUri()},fromJson:function(e){return i.fromJson(e)},base64url:c,fromConditionUri:n.fromUri.bind(n),fromConditionBinary:n.fromBinary.bind(n),fromFulfillmentUri:i.fromUri.bind(i),fromFulfillmentBinary:i.fromBinary.bind(i)}}).call(t,r(0).Buffer)},function(e,t,r){"use strict";function n(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function i(e){return o[e>>18&63]+o[e>>12&63]+o[e>>6&63]+o[63&e]}function u(e,t,r){for(var n,u=[],o=t;o<r;o+=3)n=(e[o]<<16)+(e[o+1]<<8)+e[o+2],u.push(i(n));return u.join("")}t.byteLength=function(e){return 3*e.length/4-n(e)},t.toByteArray=function(e){var t,r,i,u,o,d=e.length;u=n(e),o=new f(3*d/4-u),r=u>0?d-4:d;var s=0;for(t=0;t<r;t+=4)i=a[e.charCodeAt(t)]<<18|a[e.charCodeAt(t+1)]<<12|a[e.charCodeAt(t+2)]<<6|a[e.charCodeAt(t+3)],o[s++]=i>>16&255,o[s++]=i>>8&255,o[s++]=255&i;return 2===u?(i=a[e.charCodeAt(t)]<<2|a[e.charCodeAt(t+1)]>>4,o[s++]=255&i):1===u&&(i=a[e.charCodeAt(t)]<<10|a[e.charCodeAt(t+1)]<<4|a[e.charCodeAt(t+2)]>>2,o[s++]=i>>8&255,o[s++]=255&i),o},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i="",a=[],f=0,d=r-n;f<d;f+=16383)a.push(u(e,f,f+16383>d?d:f+16383));return 1===n?(t=e[r-1],i+=o[t>>2],i+=o[t<<4&63],i+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],i+=o[t>>10],i+=o[t>>4&63],i+=o[t<<2&63],i+="="),a.push(i),a.join("")};for(var o=[],a=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=d.length;s<c;++s)o[s]=d[s],a[d.charCodeAt(s)]=s;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var u,o,a=8*i-n-1,f=(1<<a)-1,d=f>>1,s=-7,c=r?i-1:0,h=r?-1:1,l=e[t+c];for(c+=h,u=l&(1<<-s)-1,l>>=-s,s+=a;s>0;u=256*u+e[t+c],c+=h,s-=8);for(o=u&(1<<-s)-1,u>>=-s,s+=n;s>0;o=256*o+e[t+c],c+=h,s-=8);if(0===u)u=1-d;else{if(u===f)return o?NaN:1/0*(l?-1:1);o+=Math.pow(2,n),u-=d}return(l?-1:1)*o*Math.pow(2,u-n)},t.write=function(e,t,r,n,i,u){var o,a,f,d=8*u-i-1,s=(1<<d)-1,c=s>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:u-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?(a=isNaN(t)?1:0,o=s):(o=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-o))<1&&(o--,f*=2),(t+=o+c>=1?h/f:h*Math.pow(2,1-c))*f>=2&&(o++,f/=2),o+c>=s?(a=0,o=s):o+c>=1?(a=(t*f-1)*Math.pow(2,i),o+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+l]=255&a,l+=p,a/=256,i-=8);for(o=o<<i|a,d+=i;d>0;e[r+l]=255&o,l+=p,o/=256,d-=8);e[r+l-p]|=128*b}},function(e,t,r){"use strict";t.decode=t.parse=r(89),t.encode=t.stringify=r(90)},function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,u){t=t||"&",r=r||"=";var o={};if("string"!=typeof e||0===e.length)return o;var a=/\+/g;e=e.split(t);var f=1e3;u&&"number"==typeof u.maxKeys&&(f=u.maxKeys);var d=e.length;f>0&&d>f&&(d=f);for(var s=0;s<d;++s){var c,h,l,p,b=e[s].replace(a,"%20"),y=b.indexOf(r);y>=0?(c=b.substr(0,y),h=b.substr(y+1)):(c=b,h=""),l=decodeURIComponent(c),p=decodeURIComponent(h),n(o,l)?i(o[l])?o[l].push(p):o[l]=[o[l],p]:o[l]=p}return o};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";function n(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var i=function(e){switch(typeof 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,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?n(o(e),function(o){var a=encodeURIComponent(i(o))+r;return u(e[o])?n(e[o],function(e){return a+encodeURIComponent(i(e))}).join(t):a+encodeURIComponent(i(e[o]))}).join(t):a?encodeURIComponent(i(a))+r+encodeURIComponent(i(e)):""};var u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},function(e,t,r){"use strict";var n=r(15),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n),t}();e.exports=i},function(e,t,r){"use strict";var n=r(15),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n),t}();e.exports=i},function(e,t,r){"use strict";var n=r(15),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n),t}();e.exports=i},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){},function(e,t,r){function n(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}var i=r(8),u=r(1);t.define=function(e,t){return new n(e,t)},n.prototype._createNamed=function(e){var t;try{t=r(97).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return u(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},n.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i.decoders[e])),this.decoders[e]},n.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},n.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(i.encoders[e])),this.encoders[e]},n.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(module,exports,__webpack_require__){function Context(){}var indexOf=__webpack_require__(98),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),function(t){r[t]=e[t]}),forEach(globals,function(t){e[t]&&(r[t]=e[t])});var u=Object_keys(r),o=n.call(r,this.code);return forEach(Object_keys(r),function(t){(t in e||-1===indexOf(u,t))&&(e[t]=r[t])}),forEach(globals,function(t){t in e||defineProp(e,t,r[t])}),document.body.removeChild(t),o},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return forEach(Object_keys(t),function(r){e[r]=t[r]}),r},forEach(Object_keys(Script.prototype),function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),function(r){t[r]=e[r]}),t}},function(e,t){var r=[].indexOf;e.exports=function(e,t){if(r)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t,r){function n(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}var u=r(1);t.Reporter=n,n.prototype.isError=function(e){return e instanceof i},n.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},n.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},n.prototype.enterKey=function(e){return this._reporterState.path.push(e)},n.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},n.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},n.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},n.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof i;if(t=n?e:new i(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},n.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},u(i,Error),i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){function n(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())}var i=r(16).Reporter,u=r(16).EncoderBuffer,o=r(16).DecoderBuffer,a=r(5),f=["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"],d=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(f);e.exports=n;var s=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];n.prototype.clone=function(){var e=this._baseState,t={};s.forEach(function(r){t[r]=e[r]});var r=new this.constructor(t.parent);return r._baseState=t,r},n.prototype._wrap=function(){var e=this._baseState;d.forEach(function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}},this)},n.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),a.equal(t.children.length,1,"Root node can have only one child")},n.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&&(a(null===t.children),t.children=r,r.forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map(function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach(function(r){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){n.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),f.forEach(function(e){n.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(r),this}}),n.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},n.prototype.optional=function(){return this._baseState.optional=!0,this},n.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},n.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},n.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},n.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},n.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},n.prototype.any=function(){return this._baseState.any=!0,this},n.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},n.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},n.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,u=!0,a=null;if(null!==r.key&&(a=e.enterKey(r.key)),r.optional){var f=null;if(null!==r.explicit?f=r.explicit:null!==r.implicit?f=r.implicit:null!==r.tag&&(f=r.tag),null!==f||r.any){if(u=this._peekTag(e,f,r.any),e.isError(u))return u}else{var d=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),u=!0}catch(e){u=!1}e.restore(d)}}if(r.obj&&u&&(n=e.enterObject()),u){if(null!==r.explicit){var s=this._decodeTag(e,r.explicit);if(e.isError(s))return s;e=s}var c=e.offset;if(null===r.use&&null===r.choice){if(r.any)d=e.save();var h=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(h))return h;r.any?i=e.raw(d):e=h}if(t&&t.track&&null!==r.tag&&t.track(e.path(),c,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),i=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){r._decode(e,t)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var l=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(l,t)}}return r.obj&&u&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==u?null!==a&&e.exitKey(a):e.leaveKey(a,r.key,i),i},n.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)},n.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),a(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},n.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some(function(u){var o=e.save(),a=r.choice[u];try{var f=a._decode(e,t);if(e.isError(f))return!1;n={type:u,value:f},i=!0}catch(t){return e.restore(o),!1}return!0},this),i?n:e.error("Choice not matched")},n.prototype._createEncoderBuffer=function(e){return new u(e,this.reporter)},n.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}},n.prototype._encodeValue=function(e,t,r){var n=this._baseState;if(null===n.parent)return n.children[0]._encode(e,t||new i);var u=null;if(this.reporter=t,n.optional&&void 0===e){if(null===n.default)return;e=n.default}var o=null,a=!1;if(n.any)u=this._createEncoderBuffer(e);else if(n.choice)u=this._encodeChoice(e,t);else if(n.contains)o=this._getUse(n.contains,r)._encode(e,t),a=!0;else if(n.children)o=n.children.map(function(r){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 n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===n.tag||"setof"===n.tag){if(!n.args||1!==n.args.length)return t.error("Too many args for : "+n.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var f=this.clone();f._baseState.implicit=null,o=this._createEncoderBuffer(e.map(function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)},f))}else null!==n.use?u=this._getUse(n.use,r)._encode(e,t):(o=this._encodePrimitive(n.tag,e),a=!0);if(!n.any&&null===n.choice){var d=null!==n.implicit?n.implicit:n.tag,s=null===n.implicit?"universal":"context";null===d?null===n.use&&t.error("Tag could be omitted only for .use()"):null===n.use&&(u=this._encodeComposite(d,a,s,o))}return null!==n.explicit&&(u=this._encodeComposite(n.explicit,!1,"context",u)),u},n.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},n.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)},n.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},n.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,r){var n=r(50);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){var n=t;n.der=r(51),n.pem=r(103)},function(e,t,r){function n(e){o.call(this,e),this.enc="pem"}var i=r(1),u=r(0).Buffer,o=r(51);i(n,o),e.exports=n,n.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,f=-1,d=0;d<r.length;d++){var s=r[d].match(i);if(null!==s&&s[2]===n){if(-1!==a){if("END"!==s[1])break;f=d;break}if("BEGIN"!==s[1])break;a=d}}if(-1===a||-1===f)throw new Error("PEM section not found for: "+n);var c=r.slice(a+1,f).join("");c.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new u(c,"base64");return o.prototype.decode.call(this,h,t)}},function(e,t,r){var n=t;n.der=r(52),n.pem=r(105)},function(e,t,r){function n(e){u.call(this,e),this.enc="pem"}var i=r(1),u=r(52);i(n,u),e.exports=n,n.prototype.encode=function(e,t){for(var r=u.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],i=0;i<r.length;i+=64)n.push(r.slice(i,i+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},function(e,t,r){"use strict";var n=r(8),i=r(35).Condition,u=n.define("PreimageFulfillment",function(){this.seq().obj(this.key("preimage").implicit(0).octstr())}),o=n.define("PrefixFulfillment",function(){this.seq().obj(this.key("prefix").implicit(0).octstr(),this.key("maxMessageLength").implicit(1).int(),this.key("subfulfillment").explicit(2).use(s))}),a=n.define("ThresholdFulfillment",function(){this.seq().obj(this.key("subfulfillments").implicit(0).setof(s),this.key("subconditions").implicit(1).setof(i))}),f=n.define("RsaSha256Fulfillment",function(){this.seq().obj(this.key("modulus").implicit(0).octstr(),this.key("signature").implicit(1).octstr())}),d=n.define("Ed25519Sha256Fulfillment",function(){this.seq().obj(this.key("publicKey").implicit(0).octstr(),this.key("signature").implicit(1).octstr())}),s=n.define("Fulfillment",function(){this.choice({preimageSha256Fulfillment:this.implicit(0).use(u),prefixSha256Fulfillment:this.implicit(1).use(o),thresholdSha256Fulfillment:this.implicit(2).use(a),rsaSha256Fulfillment:this.implicit(3).use(f),ed25519Sha256Fulfillment:this.implicit(4).use(d)})});e.exports={PreimageFulfillment:u,PrefixFulfillment:o,ThresholdFulfillment:a,RsaSha256Fulfillment:f,Ed25519Sha256Fulfillment:d,Fulfillment:s}},function(e,t,r){"use strict";(function(t){var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(17),u=r(12),o=function(e){function r(){return function(e,t){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,i),n(r,[{key:"getFingerprintContents",value:function(){if(!this.preimage)throw new u("Could not calculate hash, no preimage provided");return this.preimage}},{key:"setPreimage",value:function(e){if(!t.isBuffer(e))throw new TypeError("Preimage must be a buffer, was: "+e);this.preimage=e}},{key:"parseJson",value:function(e){this.preimage=t.from(e.preimage,"base64")}},{key:"getAsn1JsonPayload",value:function(){return{preimage:this.preimage}}},{key:"calculateCost",value:function(){if(!this.preimage)throw new u("Preimage must be specified");return this.preimage.length}},{key:"validate",value:function(e){return!0}}]),r}();o.TYPE_ID=0,o.TYPE_NAME="preimage-sha-256",o.TYPE_ASN1_CONDITION="preimageSha256Condition",o.TYPE_ASN1_FULFILLMENT="preimageSha256Fulfillment",o.TYPE_CATEGORY="simple",e.exports=o}).call(t,r(0).Buffer)},function(e,t,r){"use strict";(function(t){function r(e){if(e.length%n!=0){var r=e.length+(n-e.length%n);e=t.concat([e,i],r)}for(var u=new Array(e.length>>>2),o=0,a=0;o<e.length;o+=n,a++)u[a]=e.readInt32LE(o);return u}var n=4,i=new t(n);i.fill(0),e.exports=function(e,n){var i=n(r(e),8*e.length);e=new t(16);for(var u=0;u<i.length;u++)e.writeInt32LE(i[u],u<<2,!0);return e}}).call(t,r(0).Buffer)},function(e,t,r){"use strict";(function(t){function n(e){i.call(this),this._block=new t(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var i=r(25).Transform;r(1)(n,i),n.prototype._transform=function(e,r,n){var i=null;try{"buffer"!==r&&(e=new t(e,r)),this.update(e)}catch(e){i=e}n(i)},n.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(e){t=e}e(t)},n.prototype.update=function(e,r){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");t.isBuffer(e)||(e=new t(e,r||"binary"));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var u=this._blockOffset;u<this._blockSize;)n[u++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var o=0,a=8*e.length;a>0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},n.prototype._update=function(e){throw new Error("_update is not implemented")},n.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},n.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=n}).call(t,r(0).Buffer)},function(e,t){},function(e,t,r){"use strict";function n(e,t,r){e.copy(t,r)}var i=r(2).Buffer;e.exports=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?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 i.alloc(0);if(1===this.length)return this.head.data;for(var t=i.allocUnsafe(e>>>0),r=this.head,u=0;r;)n(r.data,t,u),u+=r.data.length,r=r.next;return t},e}()},function(e,t,r){function n(e,t){this._id=e,this._clearFn=t}var i=Function.prototype.apply;t.setTimeout=function(){return new n(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new n(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},n.prototype.unref=n.prototype.ref=function(){},n.prototype.close=function(){this._clearFn.call(window,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(113),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,r){(function(e,t){!function(e,r){"use strict";function n(e){delete a[e]}function i(e){if(f)setTimeout(i,0,e);else{var t=a[e];if(t){f=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}(t)}finally{n(e),f=!1}}}}if(!e.setImmediate){var u,o=1,a={},f=!1,d=e.document,s=Object.getPrototypeOf&&Object.getPrototypeOf(e);s=s&&s.setTimeout?s:e,"[object process]"==={}.toString.call(e.process)?u=function(e){t.nextTick(function(){i(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}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&i(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),u=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){i(e.data)},u=function(t){e.port2.postMessage(t)}}():d&&"onreadystatechange"in d.createElement("script")?function(){var e=d.documentElement;u=function(t){var r=d.createElement("script");r.onreadystatechange=function(){i(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():u=function(e){setTimeout(i,0,e)},s.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var n={callback:e,args:t};return a[o]=n,u(o),o++},s.clearImmediate=n}}("undefined"==typeof self?void 0===e?this:e:self)}).call(t,r(9),r(6))},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(t,r(9))},function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);i.call(this,e)}e.exports=n;var i=r(56),u=r(19);u.inherits=r(1),u.inherits(n,i),n.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(40)},function(e,t,r){e.exports=r(11)},function(e,t,r){e.exports=r(39).Transform},function(e,t,r){e.exports=r(39).PassThrough},function(e,t,r){function n(){this.init(),this._w=c,f.call(this,64,56)}function i(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function o(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}var a=r(1),f=r(14),d=r(2).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],c=new Array(80);a(n,f),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,a=0|this._c,f=0|this._d,d=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var h=0;h<80;++h){var l=~~(h/20),p=i(r)+o(l,n,a,f)+d+t[h]+s[l]|0;d=f,f=a,a=u(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=f+this._d|0,this._e=d+this._e|0},n.prototype._hash=function(){var e=d.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=n},function(e,t,r){function n(){this.init(),this._w=h,d.call(this,64,56)}function i(e){return e<<1|e>>>31}function u(e){return e<<5|e>>>27}function o(e){return e<<30|e>>>2}function a(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}var f=r(1),d=r(14),s=r(2).Buffer,c=[1518500249,1859775393,-1894007588,-899497514],h=new Array(80);f(n,d),n.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},n.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,f=0|this._c,d=0|this._d,s=0|this._e,h=0;h<16;++h)t[h]=e.readInt32BE(4*h);for(;h<80;++h)t[h]=i(t[h-3]^t[h-8]^t[h-14]^t[h-16]);for(var l=0;l<80;++l){var p=~~(l/20),b=u(r)+a(p,n,f,d)+s+t[l]+c[p]|0;s=d,d=f,f=o(n),n=r,r=b}this._a=r+this._a|0,this._b=n+this._b|0,this._c=f+this._c|0,this._d=d+this._d|0,this._e=s+this._e|0},n.prototype._hash=function(){var e=s.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=n},function(e,t,r){function n(){this.init(),this._w=f,o.call(this,64,56)}var i=r(1),u=r(57),o=r(14),a=r(2).Buffer,f=new Array(64);i(n,u),n.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},n.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=n},function(e,t,r){function n(){this.init(),this._w=f,o.call(this,128,112)}var i=r(1),u=r(58),o=r(14),a=r(2).Buffer,f=new Array(160);i(n,u),n.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},n.prototype._hash=function(){function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}var t=a.allocUnsafe(48);return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},e.exports=n},function(e,t,r){"use strict";function n(e,t){o.call(this,"digest"),"string"==typeof t&&(t=u.from(t)),this._alg=e,this._key=t,t.length>f?t=e(t):t.length<f&&(t=u.concat([t,a],f));for(var r=this._ipad=u.allocUnsafe(f),n=this._opad=u.allocUnsafe(f),i=0;i<f;i++)r[i]=54^t[i],n[i]=92^t[i];this._hash=[r]}var i=r(1),u=r(2).Buffer,o=r(10),a=u.alloc(128),f=64;i(n,o),n.prototype._update=function(e){this._hash.push(e)},n.prototype._final=function(){var e=this._alg(u.concat(this._hash));return this._alg(u.concat([this._opad,e]))},e.exports=n},function(e,t,r){e.exports=r(60)},function(e,t,r){(function(t,n){function i(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==l[e])return l[e];var r=u(o=o||s.alloc(8),o,10,128,e).then(function(){return!0}).catch(function(){return!1});return l[e]=r,r}function u(e,t,r,n,i){return c.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return c.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return s.from(e)})}var o,a=r(62),f=r(63),d=r(64),s=r(2).Buffer,c=t.crypto&&t.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];e.exports=function(e,r,o,c,l,p){if(s.isBuffer(e)||(e=s.from(e,f)),s.isBuffer(r)||(r=s.from(r,f)),a(o,c),"function"==typeof l&&(p=l,l=void 0),"function"!=typeof p)throw new Error("No callback provided to pbkdf2");var b=h[(l=l||"sha1").toLowerCase()];if(!b||"function"!=typeof t.Promise)return n.nextTick(function(){var t;try{t=d(e,r,o,c,l)}catch(e){return p(e)}p(null,t)});!function(e,t){e.then(function(e){n.nextTick(function(){t(null,e)})},function(e){n.nextTick(function(){t(e)})})}(i(b).then(function(t){return t?u(e,r,o,c,b):d(e,r,o,c,l)}),p)}}).call(t,r(9),r(6))},function(e,t,r){function n(e,t,r){if(e=e.toLowerCase(),d[e])return o.createCipheriv(e,t,r);if(f[e])return new a({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function i(e,t,r){if(e=e.toLowerCase(),d[e])return o.createDecipheriv(e,t,r);if(f[e])return new a({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}var u=r(27),o=r(43),a=r(139),f=r(145),d=r(44);t.createCipher=t.Cipher=function(e,t){var r,i;if(e=e.toLowerCase(),d[e])r=d[e].key,i=d[e].iv;else{if(!f[e])throw new TypeError("invalid suite type");r=8*f[e].key,i=f[e].iv}var o=u(t,!1,r,i);return n(e,o.key,o.iv)},t.createCipheriv=t.Cipheriv=n,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),d[e])r=d[e].key,n=d[e].iv;else{if(!f[e])throw new TypeError("invalid suite type");r=8*f[e].key,n=f[e].iv}var o=u(t,!1,r,n);return i(e,o.key,o.iv)},t.createDecipheriv=t.Decipheriv=i,t.listCiphers=t.getCiphers=function(){return Object.keys(f).concat(o.getCiphers())}},function(e,t,r){"use strict";(function(t){function n(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function i(e,t){return e<<t|e>>>32-t}function u(e,t,r,n,u,o,a){return i(e+(t&r|~t&n)+u+o|0,a)+t|0}function o(e,t,r,n,u,o,a){return i(e+(t&n|r&~n)+u+o|0,a)+t|0}function a(e,t,r,n,u,o,a){return i(e+(t^r^n)+u+o|0,a)+t|0}function f(e,t,r,n,u,o,a){return i(e+(r^(t|~n))+u+o|0,a)+t|0}var d=r(1),s=r(129),c=new Array(16);d(n,s),n.prototype._update=function(){for(var e=c,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,d=this._d;n=f(n=f(n=f(n=f(n=a(n=a(n=a(n=a(n=o(n=o(n=o(n=o(n=u(n=u(n=u(n=u(n,i=u(i,d=u(d,r=u(r,n,i,d,e[0],3614090360,7),n,i,e[1],3905402710,12),r,n,e[2],606105819,17),d,r,e[3],3250441966,22),i=u(i,d=u(d,r=u(r,n,i,d,e[4],4118548399,7),n,i,e[5],1200080426,12),r,n,e[6],2821735955,17),d,r,e[7],4249261313,22),i=u(i,d=u(d,r=u(r,n,i,d,e[8],1770035416,7),n,i,e[9],2336552879,12),r,n,e[10],4294925233,17),d,r,e[11],2304563134,22),i=u(i,d=u(d,r=u(r,n,i,d,e[12],1804603682,7),n,i,e[13],4254626195,12),r,n,e[14],2792965006,17),d,r,e[15],1236535329,22),i=o(i,d=o(d,r=o(r,n,i,d,e[1],4129170786,5),n,i,e[6],3225465664,9),r,n,e[11],643717713,14),d,r,e[0],3921069994,20),i=o(i,d=o(d,r=o(r,n,i,d,e[5],3593408605,5),n,i,e[10],38016083,9),r,n,e[15],3634488961,14),d,r,e[4],3889429448,20),i=o(i,d=o(d,r=o(r,n,i,d,e[9],568446438,5),n,i,e[14],3275163606,9),r,n,e[3],4107603335,14),d,r,e[8],1163531501,20),i=o(i,d=o(d,r=o(r,n,i,d,e[13],2850285829,5),n,i,e[2],4243563512,9),r,n,e[7],1735328473,14),d,r,e[12],2368359562,20),i=a(i,d=a(d,r=a(r,n,i,d,e[5],4294588738,4),n,i,e[8],2272392833,11),r,n,e[11],1839030562,16),d,r,e[14],4259657740,23),i=a(i,d=a(d,r=a(r,n,i,d,e[1],2763975236,4),n,i,e[4],1272893353,11),r,n,e[7],4139469664,16),d,r,e[10],3200236656,23),i=a(i,d=a(d,r=a(r,n,i,d,e[13],681279174,4),n,i,e[0],3936430074,11),r,n,e[3],3572445317,16),d,r,e[6],76029189,23),i=a(i,d=a(d,r=a(r,n,i,d,e[9],3654602809,4),n,i,e[12],3873151461,11),r,n,e[15],530742520,16),d,r,e[2],3299628645,23),i=f(i,d=f(d,r=f(r,n,i,d,e[0],4096336452,6),n,i,e[7],1126891415,10),r,n,e[14],2878612391,15),d,r,e[5],4237533241,21),i=f(i,d=f(d,r=f(r,n,i,d,e[12],1700485571,6),n,i,e[3],2399980690,10),r,n,e[10],4293915773,15),d,r,e[1],2240044497,21),i=f(i,d=f(d,r=f(r,n,i,d,e[8],1873313359,6),n,i,e[15],4264355552,10),r,n,e[6],2734768916,15),d,r,e[13],1309151649,21),i=f(i,d=f(d,r=f(r,n,i,d,e[4],4149444226,6),n,i,e[11],3174756917,10),r,n,e[2],718787259,15),d,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+d|0},n.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=new t(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=n}).call(t,r(0).Buffer)},function(e,t,r){"use strict";function n(e){u.call(this),this._block=i.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var i=r(2).Buffer,u=r(25).Transform;r(1)(n,u),n.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},n.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},n.prototype.update=function(e,t){if(function(e,t){if(!i.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");i.isBuffer(e)||(e=i.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var u=this._blockOffset;u<this._blockSize;)r[u++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var o=0,a=8*e.length;a>0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},n.prototype._update=function(){throw new Error("_update is not implemented")},n.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},n.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=n},function(e,t,r){function n(e,t,r){s.call(this),this._cache=new i,this._cipher=new c.AES(t),this._prev=f.from(r),this._mode=e,this._autopadding=!0}function i(){this.cache=f.allocUnsafe(0)}function u(e,t,r){var i=o[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=f.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=f.from(r)),"GCM"!==i.mode&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===i.type?new d(i.module,t,r):"auth"===i.type?new a(i.module,t,r):new n(i.module,t,r)}var o=r(44),a=r(68),f=r(2).Buffer,d=r(69),s=r(10),c=r(28),h=r(27);r(1)(n,s),n.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return f.concat(n)};var l=f.alloc(16,16);n.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},n.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},i.prototype.add=function(e){this.cache=f.concat([this.cache,e])},i.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},i.prototype.flush=function(){for(var e=16-this.cache.length,t=f.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return f.concat([this.cache,t])},t.createCipheriv=u,t.createCipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=h(t,!1,r.key,r.iv);return u(e,n.key,n.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,r){var n=r(20);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},function(e,t,r){function n(e,t,r){var n=t.length,o=u(t,e._cache);return e._cache=e._cache.slice(n),e._prev=i.concat([e._prev,r?t:o]),o}var i=r(2).Buffer,u=r(20);t.encrypt=function(e,t,r){for(var u,o=i.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=i.allocUnsafe(0)),!(e._cache.length<=t.length)){o=i.concat([o,n(e,t,r)]);break}u=e._cache.length,o=i.concat([o,n(e,t.slice(0,u),r)]),t=t.slice(u)}return o}},function(e,t,r){function n(e,t,r){var n=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=i.concat([e._prev.slice(1),i.from([r?t:n])]),n}var i=r(2).Buffer;t.encrypt=function(e,t,r){for(var u=t.length,o=i.allocUnsafe(u),a=-1;++a<u;)o[a]=n(e,t[a],r);return o}},function(e,t,r){function n(e,t,r){for(var n,u,o,a=-1,f=0;++a<8;)n=e._cipher.encryptBlock(e._prev),u=t&1<<7-a?128:0,f+=(128&(o=n[0]^u))>>a%8,e._prev=i(e._prev,r?u:o);return f}function i(e,t){var r=e.length,n=-1,i=u.allocUnsafe(e.length);for(e=u.concat([e,u.from([t])]);++n<r;)i[n]=e[n]<<1|e[n+1]>>7;return i}var u=r(2).Buffer;t.encrypt=function(e,t,r){for(var i=t.length,o=u.allocUnsafe(i),a=-1;++a<i;)o[a]=n(e,t[a],r);return o}},function(e,t,r){(function(e){function n(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}var i=r(20);t.encrypt=function(t,r){for(;t._cache.length<r.length;)t._cache=e.concat([t._cache,n(t)]);var u=t._cache.slice(0,r.length);return t._cache=t._cache.slice(r.length),i(r,u)}}).call(t,r(0).Buffer)},function(e,t,r){function n(e){var t=u.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function i(e){this.h=e,this.state=u.alloc(16,0),this.cache=u.allocUnsafe(0)}var u=r(2).Buffer,o=u.alloc(16,0);i.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},i.prototype._multiply=function(){for(var e,t,r=function(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}(this.h),i=[0,0,0,0],u=-1;++u<128;){for(0!=(this.state[~~(u/8)]&1<<7-u%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),t=0!=(1&r[3]),e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=r[0]^225<<24)}this.state=n(i)},i.prototype.update=function(e){this.cache=u.concat([this.cache,e]);for(var t;this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},i.prototype.final=function(e,t){return this.cache.length&&this.ghash(u.concat([this.cache,o],16)),this.ghash(n([0,e,0,t])),this.state},e.exports=i},function(e,t,r){function n(e,t,r){s.call(this),this._cache=new i,this._last=void 0,this._cipher=new c.AES(t),this._prev=a.from(r),this._mode=e,this._autopadding=!0}function i(){this.cache=a.allocUnsafe(0)}function u(e,t,r){var i=f[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=a.from(r)),"GCM"!==i.mode&&r.length!==i.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=a.from(t)),t.length!==i.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===i.type?new d(i.module,t,r,!0):"auth"===i.type?new o(i.module,t,r,!0):new n(i.module,t,r)}var o=r(68),a=r(2).Buffer,f=r(44),d=r(69),s=r(10),c=r(28),h=r(27);r(1)(n,s),n.prototype._update=function(e){this._cache.add(e);for(var t,r,n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return a.concat(n)},n.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){for(var t=e[15],r=-1;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},n.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},i.prototype.add=function(e){this.cache=a.concat([this.cache,e])},i.prototype.get=function(e){var t;if(e){if(this.cache.length>16)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},i.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=f[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=h(t,!1,r.key,r.iv);return u(e,n.key,n.iv)},t.createDecipheriv=u},function(e,t,r){(function(t){function n(e){i.call(this);var r,n=e.mode.toLowerCase(),u=a[n];r=e.decrypt?"decrypt":"encrypt";var o=e.key;"des-ede"!==n&&"des-ede-cbc"!==n||(o=t.concat([o,o.slice(0,8)]));var f=e.iv;this._des=u.create({key:o,iv:f,type:r})}var i=r(10),u=r(45),o=r(1),a={"des-ede3-cbc":u.CBC.instantiate(u.EDE),"des-ede3":u.EDE,"des-ede-cbc":u.CBC.instantiate(u.EDE),"des-ede":u.EDE,"des-cbc":u.CBC.instantiate(u.DES),"des-ecb":u.DES};a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],e.exports=n,o(n,i),n.prototype._update=function(e){return new t(this._des.update(e))},n.prototype._final=function(){return new t(this._des.final())}}).call(t,r(0).Buffer)},function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>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,u=0,o=6;o>=0;o-=2){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>>a+o&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>>a+o&1}for(o=6;o>=0;o-=2){for(a=1;a<=25;a+=8)u<<=1,u|=t>>>a+o&1;for(a=1;a<=25;a+=8)u<<=1,u|=e>>>a+o&1}r[n+0]=i>>>0,r[n+1]=u>>>0},t.rip=function(e,t,r,n){for(var i=0,u=0,o=0;o<4;o++)for(var a=24;a>=0;a-=8)i<<=1,i|=t>>>a+o&1,i<<=1,i|=e>>>a+o&1;for(o=4;o<8;o++)for(a=24;a>=0;a-=8)u<<=1,u|=t>>>a+o&1,u<<=1,u|=e>>>a+o&1;r[n+0]=i>>>0,r[n+1]=u>>>0},t.pc1=function(e,t,r,n){for(var i=0,u=0,o=7;o>=5;o--){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>a+o&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+o&1}for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+o&1;for(o=1;o<=3;o++){for(a=0;a<=24;a+=8)u<<=1,u|=t>>a+o&1;for(a=0;a<=24;a+=8)u<<=1,u|=e>>a+o&1}for(a=0;a<=24;a+=8)u<<=1,u|=e>>a+o&1;r[n+0]=i>>>0,r[n+1]=u>>>0},t.r28shl=function(e,t){return e<<t&268435455|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 u=0,o=0,a=n.length>>>1,f=0;f<a;f++)u<<=1,u|=e>>>n[f]&1;for(f=a;f<n.length;f++)o<<=1,o|=t>>>n[f]&1;r[i+0]=u>>>0,r[i+1]=o>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var u=23;u>=15;u-=4)n<<=6,n|=e>>>u&63;for(u=11;u>=3;u-=4)i|=e>>>u&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 u=[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<u.length;r++)t<<=1,t|=e>>>u[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],u=0;u<t;u+=r)i.push(n.slice(u,u+r));return i.join(" ")}},function(e,t,r){"use strict";function n(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}var i=r(5);e.exports=n,n.prototype._init=function(){},n.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},n.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},n.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},n.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var u=e.length-(e.length-t)%this.blockSize;t<u;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},n.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},n.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):r},n.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},n.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},n.prototype._unpad=function(e){return e},n.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,r){"use strict";function n(e){f.call(this,e);var t=new function(){this.tmp=new Array(2),this.keys=null};this._desState=t,this.deriveKeys(t,e.key)}var i=r(5),u=r(1),o=r(45),a=o.utils,f=o.Cipher;u(n,f),e.exports=n,n.create=function(e){return new n(e)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];n.prototype.deriveKeys=function(e,t){e.keys=new Array(32),i.equal(t.length,this.blockSize,"Invalid key length");var r=a.readUInt32BE(t,0),n=a.readUInt32BE(t,4);a.pc1(r,n,e.tmp,0),r=e.tmp[0],n=e.tmp[1];for(var u=0;u<e.keys.length;u+=2){var o=d[u>>>1];r=a.r28shl(r,o),n=a.r28shl(n,o),a.pc2(r,n,e.keys,u)}},n.prototype._update=function(e,t,r,n){var i=this._desState,u=a.readUInt32BE(e,t),o=a.readUInt32BE(e,t+4);a.ip(u,o,i.tmp,0),u=i.tmp[0],o=i.tmp[1],"encrypt"===this.type?this._encrypt(i,u,o,i.tmp,0):this._decrypt(i,u,o,i.tmp,0),u=i.tmp[0],o=i.tmp[1],a.writeUInt32BE(r,u,n),a.writeUInt32BE(r,o,n+4)},n.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},n.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)i.equal(e[r],t);return e.slice(0,e.length-t)},n.prototype._encrypt=function(e,t,r,n,i){for(var u=t,o=r,f=0;f<e.keys.length;f+=2){var d=e.keys[f],s=e.keys[f+1];a.expand(o,e.tmp,0),d^=e.tmp[0],s^=e.tmp[1];var c=a.substitute(d,s),h=o;o=(u^a.permute(c))>>>0,u=h}a.rip(o,u,n,i)},n.prototype._decrypt=function(e,t,r,n,i){for(var u=r,o=t,f=e.keys.length-2;f>=0;f-=2){var d=e.keys[f],s=e.keys[f+1];a.expand(u,e.tmp,0),d^=e.tmp[0],s^=e.tmp[1];var c=a.substitute(d,s),h=u;u=(o^a.permute(c))>>>0,o=h}a.rip(u,o,n,i)}},function(e,t,r){"use strict";var n=r(5),i=r(1),u={};t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(u),n=0;n<r.length;n++){var o=r[n];t.prototype[o]=u[o]}return t.create=function(e){return new t(e)},t},u._cbcInit=function(){var e=new function(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}(this.options.iv);this._cbcState=e},u._update=function(e,t,r,n){var i=this._cbcState,u=this.constructor.super_.prototype,o=i.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)o[a]^=e[t+a];u._update.call(this,o,0,r,n);for(a=0;a<this.blockSize;a++)o[a]=r[n+a]}else{u._update.call(this,e,t,r,n);for(a=0;a<this.blockSize;a++)r[n+a]^=o[a];for(a=0;a<this.blockSize;a++)o[a]=e[t+a]}}},function(e,t,r){"use strict";function n(e){a.call(this,e);var t=new function(e,t){i.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),n=t.slice(8,16),u=t.slice(16,24);this.ciphers="encrypt"===e?[f.create({type:"encrypt",key:r}),f.create({type:"decrypt",key:n}),f.create({type:"encrypt",key:u})]:[f.create({type:"decrypt",key:u}),f.create({type:"encrypt",key:n}),f.create({type:"decrypt",key:r})]}(this.type,this.options.key);this._edeState=t}var i=r(5),u=r(1),o=r(45),a=o.Cipher,f=o.DES;u(n,a),e.exports=n,n.create=function(e){return new n(e)},n.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},n.prototype._pad=f.prototype._pad,n.prototype._unpad=f.prototype._unpad},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(70),i=r(148),u=r(149),o={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 u(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,a,f){return e.isBuffer(i)||void 0===o[i]?t(r,"binary",i,a):(i=i||"binary",f=f||"binary",a=a||new e([2]),e.isBuffer(a)||(a=new e(a,f)),"number"==typeof r?new u(n(r,a),a,!0):(e.isBuffer(r)||(r=new e(r,i)),new u(r,a,!0)))}}).call(t,r(0).Buffer)},function(e,t){},function(e,t){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){function n(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new a(e),this}function i(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new a(e),this}function u(e,t,r){this.setGenerator(t),this.__prime=new a(e),this._prime=a.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=n,this.setPrivateKey=i):this._primeCode=8}function o(e,r){var n=new t(e.toArray());return r?n.toString(r):n}var a=r(3),f=new(r(71)),d=new a(24),s=new a(11),c=new a(10),h=new a(3),l=new a(7),p=r(70),b=r(13);e.exports=u;var y={};Object.defineProperty(u.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 y)return y[n];var i,u=0;if(e.isEven()||!p.simpleSieve||!p.fermatTest(e)||!f.test(e))return u+=1,u+="02"===r||"05"===r?8:4,y[n]=u,u;switch(f.test(e.shrn(1))||(u+=2),r){case"02":e.mod(d).cmp(s)&&(u+=8);break;case"05":(i=e.mod(c)).cmp(h)&&i.cmp(l)&&(u+=8);break;default:u+=4}return y[n]=u,u}(this.__prime,this.__gen)),this._primeCode}}),u.prototype.generateKeys=function(){return this._priv||(this._priv=new a(b(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},u.prototype.computeSecret=function(e){var r=(e=(e=new a(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new t(r.toArray()),i=this.getPrime();if(n.length<i.length){var u=new t(i.length-n.length);u.fill(0),n=t.concat([u,n])}return n},u.prototype.getPublicKey=function(e){return o(this._pub,e)},u.prototype.getPrivateKey=function(e){return o(this._priv,e)},u.prototype.getPrime=function(e){return o(this.__prime,e)},u.prototype.getGenerator=function(e){return o(this._gen,e)},u.prototype.setGenerator=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.__gen=e,this._gen=new a(e),this}}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(e){f.Writable.call(this);var t=h[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function i(e){f.Writable.call(this);var t=h[e];if(!t)throw new Error("Unknown message digest");this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){return new n(e)}function o(e){return new i(e)}var a=r(18),f=r(25),d=r(1),s=r(151),c=r(177),h=r(60);Object.keys(h).forEach(function(e){h[e].id=new t(h[e].id,"hex"),h[e.toLowerCase()]=h[e]}),d(n,f.Writable),n.prototype._write=function(e,t,r){this._hash.update(e),r()},n.prototype.update=function(e,r){return"string"==typeof e&&(e=new t(e,r)),this._hash.update(e),this},n.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=s(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},d(i,f.Writable),i.prototype._write=function(e,t,r){this._hash.update(e),r()},i.prototype.update=function(e,r){return"string"==typeof e&&(e=new t(e,r)),this._hash.update(e),this},i.prototype.verify=function(e,r,n){"string"==typeof r&&(r=new t(r,n)),this.end();var i=this._hash.digest();return c(r,i,e,this._signType,this._tag)},e.exports={Sign:u,Verify:o,createSign:u,createVerify:o}}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(e,t,r){for(var n,a=t.params.priv_key,s=t.params.p,c=t.params.q,h=t.params.g,p=new l(0),b=o(e,c).mod(c),y=!1,m=u(a,c,e,r);!1===y;)p=d(h,n=f(c,m,r),s,c),0===(y=n.invm(c).imul(b.add(a.mul(p))).mod(c)).cmpn(0)&&(y=!1,p=new l(0));return i(p,y)}function i(e,r){e=e.toArray(),r=r.toArray(),128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r));var n=[48,e.length+r.length+4,2,e.length];return n=n.concat(e,[2,r.length],r),new t(n)}function u(e,r,n,i){if((e=new t(e.toArray())).length<r.byteLength()){var u=new t(r.byteLength()-e.length);u.fill(0),e=t.concat([u,e])}var o=n.length,f=a(n,r),d=new t(o);d.fill(1);var c=new t(o);return c.fill(0),c=s(i,c).update(d).update(new t([0])).update(e).update(f).digest(),d=s(i,c).update(d).digest(),{k:c=s(i,c).update(d).update(new t([1])).update(e).update(f).digest(),v:d=s(i,c).update(d).digest()}}function o(e,t){var r=new l(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function a(e,r){e=(e=o(e,r)).mod(r);var n=new t(e.toArray());if(n.length<r.byteLength()){var i=new t(r.byteLength()-n.length);i.fill(0),n=t.concat([i,n])}return n}function f(e,r,n){var i,u;do{for(i=new t(0);8*i.length<e.bitLength();)r.v=s(n,r.k).update(r.v).digest(),i=t.concat([i,r.v]);u=o(i,e),r.k=s(n,r.k).update(r.v).update(new t([0])).digest(),r.v=s(n,r.k).update(r.v).digest()}while(-1!==u.cmp(e));return u}function d(e,t,r,n){return e.toRed(l.mont(r)).redPow(t).fromRed().mod(n)}var s=r(59),c=r(46),h=r(4).ec,l=r(3),p=r(30),b=r(77);e.exports=function(e,r,i,u,o){var a=p(r);if(a.curve){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong private key type");return function(e,r){var n=b[r.curve.join(".")];if(!n)throw new Error("unknown curve "+r.curve.join("."));var i=new h(n).keyFromPrivate(r.privateKey).sign(e);return new t(i.toDER())}(e,a)}if("dsa"===a.type){if("dsa"!==u)throw new Error("wrong private key type");return n(e,a,i)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong private key type");e=t.concat([o,e]);for(var f=a.modulus.byteLength(),d=[0,1];e.length+d.length+1<f;)d.push(255);d.push(0);for(var s=-1;++s<e.length;)d.push(e[s]);return c(d,a)},e.exports.getKey=u,e.exports.makeKey=f}).call(t,r(0).Buffer)},function(e,t){e.exports={_from:"elliptic@^6.0.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.0.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.0.0",saveSpec:null,fetchSpec:"^6.0.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.0.0",_where:"/Users/jpregelj/js-crypto-conditions/node_modules/browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,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"},deprecated:!1,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.0"}},function(e,t,r){"use strict";var n=t,i=r(3),u=r(5),o=r(73);n.assert=u,n.toArray=o.toArray,n.zero2=o.zero2,n.toHex=o.toHex,n.encode=o.encode,n.getNAF=function(e,t){for(var r=[],n=1<<t+1,i=e.clone();i.cmpn(1)>=0;){var u;if(i.isOdd()){var o=i.andln(n-1);u=o>(n>>1)-1?(n>>1)-o:o,i.isubn(u)}else u=0;r.push(u);for(var a=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,f=1;f<a;f++)r.push(0);i.iushrn(a)}return r},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var u,o,a,f=e.andln(3)+n&3,d=t.andln(3)+i&3;if(3===f&&(f=-1),3===d&&(d=-1),0==(1&f))u=0;else u=3!==(a=e.andln(7)+n&7)&&5!==a||2!==d?f:-f;if(r[0].push(u),0==(1&d))o=0;else o=3!==(a=t.andln(7)+i&7)&&5!==a||2!==f?d:-d;r[1].push(o),2*n===u+1&&(n=1-n),2*i===o+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,r){"use strict";function n(e,t){this.type=e,this.p=new u(t.p,16),this.red=t.prime?u.red(t.prime):u.mont(this.p),this.zero=new u(0).toRed(this.red),this.one=new u(1).toRed(this.red),this.two=new u(2).toRed(this.red),this.n=t.n&&new u(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 i(e,t){this.curve=e,this.type=t,this.precomputed=null}var u=r(3),o=r(4).utils,a=o.getNAF,f=o.getJSF,d=o.assert;e.exports=n,n.prototype.point=function(){throw new Error("Not implemented")},n.prototype.validate=function(){throw new Error("Not implemented")},n.prototype._fixedNafMul=function(e,t){d(e.precomputed);var r=e._getDoubles(),n=a(t,1),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var u=[],o=0;o<n.length;o+=r.step){var f=0;for(t=o+r.step-1;t>=o;t--)f=(f<<1)+n[t];u.push(f)}for(var s=this.jpoint(null,null,null),c=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o<u.length;o++){(f=u[o])===h?c=c.mixedAdd(r.points[o]):f===-h&&(c=c.mixedAdd(r.points[o].neg()))}s=s.add(c)}return s.toP()},n.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,u=a(t,r),o=this.jpoint(null,null,null),f=u.length-1;f>=0;f--){for(t=0;f>=0&&0===u[f];f--)t++;if(f>=0&&t++,o=o.dblp(t),f<0)break;var s=u[f];d(0!==s),o="affine"===e.type?s>0?o.mixedAdd(i[s-1>>1]):o.mixedAdd(i[-s-1>>1].neg()):s>0?o.add(i[s-1>>1]):o.add(i[-s-1>>1].neg())}return"affine"===e.type?o.toP():o},n.prototype._wnafMulAdd=function(e,t,r,n,i){for(var u=this._wnafT1,o=this._wnafT2,d=this._wnafT3,s=0,c=0;c<n;c++){var h=t[c],l=h._getNAFPoints(e);u[c]=l.wnd,o[c]=l.points}for(c=n-1;c>=1;c-=2){var p=c-1,b=c;if(1===u[p]&&1===u[b]){var y=[t[p],null,null,t[b]];0===t[p].y.cmp(t[b].y)?(y[1]=t[p].add(t[b]),y[2]=t[p].toJ().mixedAdd(t[b].neg())):0===t[p].y.cmp(t[b].y.redNeg())?(y[1]=t[p].toJ().mixedAdd(t[b]),y[2]=t[p].add(t[b].neg())):(y[1]=t[p].toJ().mixedAdd(t[b]),y[2]=t[p].toJ().mixedAdd(t[b].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=f(r[p],r[b]);s=Math.max(g[0].length,s),d[p]=new Array(s),d[b]=new Array(s);for(var v=0;v<s;v++){var _=0|g[0][v],w=0|g[1][v];d[p][v]=m[3*(_+1)+(w+1)],d[b][v]=0,o[p]=y}}else d[p]=a(r[p],u[p]),d[b]=a(r[b],u[b]),s=Math.max(d[p].length,s),s=Math.max(d[b].length,s)}var S=this.jpoint(null,null,null),E=this._wnafT4;for(c=s;c>=0;c--){for(var A=0;c>=0;){var x=!0;for(v=0;v<n;v++)E[v]=0|d[v][c],0!==E[v]&&(x=!1);if(!x)break;A++,c--}if(c>=0&&A++,S=S.dblp(A),c<0)break;for(v=0;v<n;v++){var k=E[v];0!==k&&(k>0?h=o[v][k-1>>1]:k<0&&(h=o[v][-k-1>>1].neg()),S="affine"===h.type?S.mixedAdd(h):S.add(h))}}for(c=0;c<n;c++)o[c]=null;return i?S:S.toP()},n.BasePoint=i,i.prototype.eq=function(){throw new Error("Not implemented")},i.prototype.validate=function(){return this.curve.validate(this)},n.prototype.decodePoint=function(e,t){e=o.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?d(e[e.length-1]%2==0):7===e[0]&&d(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},i.prototype.encodeCompressed=function(e){return this.encode(e,!0)},i.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},i.prototype.encode=function(e,t){return o.encode(this._encode(t),e)},i.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},i.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},i.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var u=0;u<e;u++)n=n.dbl();r.push(n)}return{step:e,points:r}},i.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},i.prototype._getBeta=function(){return null},i.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t,r){"use strict";function n(e){s.call(this,"short",e),this.a=new f(e.a,16).toRed(this.red),this.b=new f(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function i(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new f(t,16),this.y=new f(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new f(0)):(this.x=new f(t,16),this.y=new f(r,16),this.z=new f(n,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.zOne=this.z===this.curve.one}var o=r(29),a=r(4),f=r(3),d=r(1),s=o.base,c=a.utils.assert;d(n,s),e.exports=n,n.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new f(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new f(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],c(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new f(e.a,16),b:new f(e.b,16)}}):this._getEndoBasis(r)}}},n.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:f.mont(e),r=new f(2).toRed(t).redInvm(),n=r.redNeg(),i=new f(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},n.prototype._getEndoBasis=function(e){for(var t,r,n,i,u,o,a,d,s,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,l=this.n.clone(),p=new f(1),b=new f(0),y=new f(0),m=new f(1),g=0;0!==h.cmpn(0);){var v=l.div(h);d=l.sub(v.mul(h)),s=y.sub(v.mul(p));var _=m.sub(v.mul(b));if(!n&&d.cmp(c)<0)t=a.neg(),r=p,n=d.neg(),i=s;else if(n&&2==++g)break;a=d,l=h,h=d,y=p,p=s,m=b,b=_}u=d.neg(),o=s;var w=n.sqr().add(i.sqr());return u.sqr().add(o.sqr()).cmp(w)>=0&&(u=t,o=r),n.negative&&(n=n.neg(),i=i.neg()),u.negative&&(u=u.neg(),o=o.neg()),[{a:n,b:i},{a:u,b:o}]},n.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),u=r.b.neg().mul(e).divRound(this.n),o=i.mul(r.a),a=u.mul(n.a),f=i.mul(r.b),d=u.mul(n.b);return{k1:e.sub(o).sub(a),k2:f.add(d).neg()}},n.prototype.pointFromX=function(e,t){(e=new f(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(r).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)},n.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)},n.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,u=0;u<e.length;u++){var o=this._endoSplit(t[u]),a=e[u],f=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),f=f.neg(!0)),n[2*u]=a,n[2*u+1]=f,i[2*u]=o.k1,i[2*u+1]=o.k2}for(var d=this._wnafMulAdd(1,n,i,2*u,r),s=0;s<2*u;s++)n[s]=null,i[s]=null;return d},d(i,s.BasePoint),n.prototype.point=function(e,t,r){return new i(this,e,t,r)},n.prototype.pointFromJSON=function(e,t){return i.fromJSON(this,e,t)},i.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},i.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},i.fromJSON=function(e,t,r){function n(t){return e.point(t[0],t[1],r)}"string"==typeof t&&(t=JSON.parse(t));var i=e.point(t[0],t[1],r);if(!t[2])return i;var u=t[2];return i.precomputed={beta:null,doubles:u.doubles&&{step:u.doubles.step,points:[i].concat(u.doubles.points.map(n))},naf:u.naf&&{wnd:u.naf.wnd,points:[i].concat(u.naf.points.map(n))}},i},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},i.prototype.isInfinity=function(){return this.inf},i.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(r)).redISub(this.y);return this.curve.point(r,n)},i.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(r).redIAdd(r).redIAdd(t).redMul(n),u=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(u)).redISub(this.y);return this.curve.point(u,o)},i.prototype.getX=function(){return this.x.fromRed()},i.prototype.getY=function(){return this.y.fromRed()},i.prototype.mul=function(e){return e=new f(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},i.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)},i.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)},i.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))},i.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},i.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},d(u,s.BasePoint),n.prototype.jpoint=function(e,t,r){return new u(this,e,t,r)},u.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)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.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(r),u=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),f=u.redSub(o);if(0===a.cmpn(0))return 0!==f.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=a.redSqr(),s=d.redMul(a),c=n.redMul(d),h=f.redSqr().redIAdd(s).redISub(c).redISub(c),l=f.redMul(c.redISub(h)).redISub(u.redMul(s)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,l,p)},u.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,u=e.y.redMul(t).redMul(this.z),o=r.redSub(n),a=i.redSub(u);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=o.redSqr(),d=f.redMul(o),s=r.redMul(f),c=a.redSqr().redIAdd(d).redISub(s).redISub(s),h=a.redMul(s.redISub(c)).redISub(i.redMul(d)),l=this.z.redMul(o);return this.curve.jpoint(c,h,l)},u.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<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,u=this.x,o=this.y,a=this.z,f=a.redSqr().redSqr(),d=o.redAdd(o);for(r=0;r<e;r++){var s=u.redSqr(),c=d.redSqr(),h=c.redSqr(),l=s.redAdd(s).redIAdd(s).redIAdd(n.redMul(f)),p=u.redMul(c),b=l.redSqr().redISub(p.redAdd(p)),y=p.redISub(b),m=l.redMul(y);m=m.redIAdd(m).redISub(h);var g=d.redMul(a);r+1<e&&(f=f.redMul(h)),u=b,a=g,d=m}return this.curve.jpoint(u,d.redMul(i),a)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),u=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(u);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n),f=a.redSqr().redISub(o).redISub(o),d=u.redIAdd(u);d=(d=d.redIAdd(d)).redIAdd(d),e=f,t=a.redMul(o.redISub(f)).redISub(d),r=this.y.redAdd(this.y)}else{var s=this.x.redSqr(),c=this.y.redSqr(),h=c.redSqr(),l=this.x.redAdd(c).redSqr().redISub(s).redISub(h);l=l.redIAdd(l);var p=s.redAdd(s).redIAdd(s),b=p.redSqr(),y=h.redIAdd(h);y=(y=y.redIAdd(y)).redIAdd(y),e=b.redISub(l).redISub(l),t=p.redMul(l.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},u.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),u=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(n).redISub(u);o=o.redIAdd(o);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),f=a.redSqr().redISub(o).redISub(o);e=f;var d=u.redIAdd(u);d=(d=d.redIAdd(d)).redIAdd(d),t=a.redMul(o.redISub(f)).redISub(d),r=this.y.redAdd(this.y)}else{var s=this.z.redSqr(),c=this.y.redSqr(),h=this.x.redMul(c),l=this.x.redSub(s).redMul(this.x.redAdd(s));l=l.redAdd(l).redIAdd(l);var p=h.redIAdd(h),b=(p=p.redIAdd(p)).redAdd(p);e=l.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(c).redISub(s);var y=c.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=l.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),u=t.redSqr(),o=r.redSqr(),a=u.redAdd(u).redIAdd(u).redIAdd(e.redMul(i)),f=t.redAdd(t),d=(f=f.redIAdd(f)).redMul(o),s=a.redSqr().redISub(d.redAdd(d)),c=d.redISub(s),h=o.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var l=a.redMul(c).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(s,l,p)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),u=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(u)).redSqr(),f=n.redIAdd(n);f=(f=(f=f.redIAdd(f)).redIAdd(f)).redIAdd(f);var d=i.redIAdd(o).redSqr().redISub(u).redISub(a).redISub(f),s=t.redMul(d);s=(s=s.redIAdd(s)).redIAdd(s);var c=this.x.redMul(a).redISub(s);c=(c=c.redIAdd(c)).redIAdd(c);var h=this.y.redMul(d.redMul(f.redISub(d)).redISub(o.redMul(a)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var l=this.z.redAdd(o).redSqr().redISub(r).redISub(a);return this.curve.jpoint(c,h,l)},u.prototype.mul=function(e,t){return e=new f(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";function n(e){f.call(this,"mont",e),this.a=new o(e.a,16).toRed(this.red),this.b=new o(e.b,16).toRed(this.red),this.i4=new o(4).toRed(this.red).redInvm(),this.two=new o(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function i(e,t,r){f.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new o(t,16),this.z=new o(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var u=r(29),o=r(3),a=r(1),f=u.base,d=r(4).utils;a(n,f),e.exports=n,n.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)},a(i,f.BasePoint),n.prototype.decodePoint=function(e,t){return this.point(d.toArray(e,t),1)},n.prototype.point=function(e,t){return new i(this,e,t)},n.prototype.pointFromJSON=function(e){return i.fromJSON(this,e)},i.prototype.precompute=function(){},i.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},i.fromJSON=function(e,t){return new i(e,t[0],t[1]||e.one)},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},i.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},i.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(r)));return this.curve.point(n,i)},i.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),u=e.x.redSub(e.z).redMul(r),o=i.redMul(n),a=t.z.redMul(u.redAdd(o).redSqr()),f=t.x.redMul(u.redISub(o).redSqr());return this.curve.point(a,f)},i.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 u=i.length-1;u>=0;u--)0===i[u]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},i.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},i.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},i.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";function n(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,d.call(this,"edwards",e),this.a=new a(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new a(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new a(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function i(e,t,r,n,i){d.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 a(t,16),this.y=new a(r,16),this.z=n?new a(n,16):this.curve.one,this.t=i&&new a(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()))))}var u=r(29),o=r(4),a=r(3),f=r(1),d=u.base,s=o.utils.assert;f(n,d),e.exports=n,n.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},n.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},n.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},n.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),u=n.redMul(i.redInvm()),o=u.redSqrt();if(0!==o.redSqr().redSub(u).cmp(this.zero))throw new Error("invalid point");var f=o.fromRed().isOdd();return(t&&!f||!t&&f)&&(o=o.redNeg()),this.point(e,o)},n.prototype.pointFromY=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),u=n.redMul(i.redInvm());if(0===u.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=u.redSqrt();if(0!==o.redSqr().redSub(u).cmp(this.zero))throw new Error("invalid point");return o.isOdd()!==t&&(o=o.redNeg()),this.point(o,e)},n.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(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},f(i,d.BasePoint),n.prototype.pointFromJSON=function(e){return i.fromJSON(this,e)},n.prototype.point=function(e,t,r,n){return new i(this,e,t,r,n)},i.fromJSON=function(e,t){return new i(e,t[0],t[1],t[2])},i.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},i.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},i.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),u=n.redAdd(t),o=u.redSub(r),a=n.redSub(t),f=i.redMul(o),d=u.redMul(a),s=i.redMul(a),c=o.redMul(u);return this.curve.point(f,d,c,s)},i.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),u=this.y.redSqr();if(this.curve.twisted){var o=(d=this.curve._mulA(i)).redAdd(u);if(this.zOne)e=n.redSub(i).redSub(u).redMul(o.redSub(this.curve.two)),t=o.redMul(d.redSub(u)),r=o.redSqr().redSub(o).redSub(o);else{var a=this.z.redSqr(),f=o.redSub(a).redISub(a);e=n.redSub(i).redISub(u).redMul(f),t=o.redMul(d.redSub(u)),r=o.redMul(f)}}else{var d=i.redAdd(u);a=this.curve._mulC(this.c.redMul(this.z)).redSqr(),f=d.redSub(a).redSub(a);e=this.curve._mulC(n.redISub(d)).redMul(f),t=this.curve._mulC(d).redMul(i.redISub(u)),r=d.redMul(f)}return this.curve.point(e,t,r)},i.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},i.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)),u=r.redSub(t),o=i.redSub(n),a=i.redAdd(n),f=r.redAdd(t),d=u.redMul(o),s=a.redMul(f),c=u.redMul(f),h=o.redMul(a);return this.curve.point(d,s,h,c)},i.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),u=this.x.redMul(e.x),o=this.y.redMul(e.y),a=this.curve.d.redMul(u).redMul(o),f=i.redSub(a),d=i.redAdd(a),s=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(u).redISub(o),c=n.redMul(f).redMul(s);return this.curve.twisted?(t=n.redMul(d).redMul(o.redSub(this.curve._mulA(u))),r=f.redMul(d)):(t=n.redMul(d).redMul(o.redSub(u)),r=this.curve._mulC(f).redMul(d)),this.curve.point(c,t,r)},i.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},i.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},i.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},i.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},i.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},i.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},i.prototype.getX=function(){return this.normalize(),this.x.fromRed()},i.prototype.getY=function(){return this.normalize(),this.y.fromRed()},i.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},i.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}return!1},i.prototype.toP=i.prototype.normalize,i.prototype.mixedAdd=i.prototype.add},function(e,t,r){"use strict";function n(e){"short"===e.type?this.curve=new f.curve.short(e):"edwards"===e.type?this.curve=new f.curve.edwards(e):this.curve=new f.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,d(this.g.validate(),"Invalid curve"),d(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function i(e,t){Object.defineProperty(o,e,{configurable:!0,enumerable:!0,get:function(){var r=new n(t);return Object.defineProperty(o,e,{configurable:!0,enumerable:!0,value:r}),r}})}var u,o=t,a=r(47),f=r(4),d=f.utils.assert;o.PresetCurve=n,i("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:a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),i("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:a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),i("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:a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),i("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:a.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"]}),i("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:a.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"]}),i("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.sha256,gRed:!1,g:["9"]}),i("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:a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{u=r(165)}catch(e){u=void 0}i("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:a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",u]})},function(e,t,r){"use strict";t.sha1=r(160),t.sha224=r(161),t.sha256=r(75),t.sha384=r(162),t.sha512=r(76)},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}var i=r(7),u=r(21),o=r(74),a=i.rotl32,f=i.sum32,d=i.sum32_5,s=o.ft_1,c=u.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];i.inherits(n,c),e.exports=n,n.blockSize=512,n.outSize=160,n.hmacStrength=80,n.padLength=64,n.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],u=this.h[1],o=this.h[2],c=this.h[3],l=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),b=d(a(i,5),s(p,u,o,c),l,r[n],h[p]);l=c,c=o,o=a(u,30),u=i,i=b}this.h[0]=f(this.h[0],i),this.h[1]=f(this.h[1],u),this.h[2]=f(this.h[2],o),this.h[3]=f(this.h[3],c),this.h[4]=f(this.h[4],l)},n.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;u.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}var i=r(7),u=r(75);i.inherits(n,u),e.exports=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;u.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}var i=r(7),u=r(76);i.inherits(n,u),e.exports=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(e){return"hex"===e?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";function n(){if(!(this instanceof n))return new n;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function i(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function u(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function o(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var a=r(7),f=r(21),d=a.rotl32,s=a.sum32,c=a.sum32_3,h=a.sum32_4,l=f.BlockHash;a.inherits(n,l),t.ripemd160=n,n.blockSize=512,n.outSize=160,n.hmacStrength=192,n.padLength=64,n.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],a=this.h[2],f=this.h[3],l=this.h[4],g=r,v=n,_=a,w=f,S=l,E=0;E<80;E++){var A=s(d(h(r,i(E,n,a,f),e[p[E]+t],u(E)),y[E]),l);r=l,l=f,f=d(a,10),a=n,n=A,A=s(d(h(g,i(79-E,v,_,w),e[b[E]+t],o(E)),m[E]),S),g=S,S=w,w=d(_,10),_=v,v=A}A=c(this.h[1],a,w),this.h[1]=c(this.h[2],f,S),this.h[2]=c(this.h[3],l,g),this.h[3]=c(this.h[4],r,v),this.h[4]=c(this.h[0],n,_),this.h[0]=A},n.prototype._digest=function(e){return"hex"===e?a.toHex32(this.h,"little"):a.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],b=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],m=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,r){"use strict";function n(e,t,r){if(!(this instanceof n))return new n(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(t,r))}var i=r(7),u=r(5);e.exports=n,n.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),u(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},n.prototype.update=function(e,t){return this.inner.update(e,t),this},n.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(e);"string"==typeof e&&(a(o.curves.hasOwnProperty(e),"Unknown curve "+e),e=o.curves[e]),e instanceof o.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var i=r(3),u=r(167),o=r(4),a=o.utils.assert,f=r(168),d=r(169);e.exports=n,n.prototype.keyPair=function(e){return new f(this,e)},n.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},n.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},n.prototype.genKeyPair=function(e){e||(e={});for(var t=new u({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new i(2));;){var a=new i(t.generate(r));if(!(a.cmp(n)>0))return a.iaddn(1),this.keyFromPrivate(a)}},n.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},n.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new i(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),f=e.toArray("be",o),s=new u({hash:this.hash,entropy:a,nonce:f,pers:n.pers,persEnc:n.persEnc||"utf8"}),c=this.n.sub(new i(1)),h=0;;h++){var l=n.k?n.k(h):new i(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(c)>=0)){var p=this.g.mul(l);if(!p.isInfinity()){var b=p.getX(),y=b.umod(this.n);if(0!==y.cmpn(0)){var m=l.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var g=(p.getY().isOdd()?1:0)|(0!==b.cmp(y)?2:0);return n.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),g^=1),new d({r:y,s:m,recoveryParam:g})}}}}}},n.prototype.verify=function(e,t,r,n){e=this._truncateToN(new i(e,16)),r=this.keyFromPublic(r,n);var u=(t=new d(t,"hex")).r,o=t.s;if(u.cmpn(1)<0||u.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,f=o.invm(this.n),s=f.mul(e).umod(this.n),c=f.mul(u).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(s,r.getPublic(),c)).isInfinity()&&a.eqXToP(u):!(a=this.g.mulAdd(s,r.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(u)},n.prototype.recoverPubKey=function(e,t,r,n){a((3&r)===r,"The recovery param is more than two bits"),t=new d(t,n);var u=this.n,o=new i(e),f=t.r,s=t.s,c=1&r,h=r>>1;if(f.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");f=h?this.curve.pointFromX(f.add(this.curve.n),c):this.curve.pointFromX(f,c);var l=t.r.invm(u),p=u.sub(o).mul(l).umod(u),b=s.mul(l).umod(u);return this.g.mulAdd(p,f,b)},n.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new d(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var u;try{u=this.recoverPubKey(e,t,i)}catch(e){continue}if(u.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";function n(e){if(!(this instanceof n))return new n(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=u.toArray(e.entropy,e.entropyEnc||"hex"),r=u.toArray(e.nonce,e.nonceEnc||"hex"),i=u.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,i)}var i=r(47),u=r(73),o=r(5);e.exports=n,n.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},n.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},n.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},n.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=u.toArray(e,t),r=u.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},n.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=u.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(r),this._reseed++,u.encode(o,t)}},function(e,t,r){"use strict";function n(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var i=r(3),u=r(4).utils.assert;e.exports=n,n.fromPublic=function(e,t,r){return t instanceof n?t:new n(e,{pub:t,pubEnc:r})},n.fromPrivate=function(e,t,r){return t instanceof n?t:new n(e,{priv:t,privEnc:r})},n.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},n.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},n.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},n.prototype._importPrivate=function(e,t){this.priv=new i(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},n.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?u(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||u(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},n.prototype.derive=function(e){return e.mul(this.priv).getX()},n.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},n.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},n.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";function n(e,t){if(e instanceof n)return e;this._importDER(e,t)||(d(e.r&&e.s,"Signature without r or s"),this.r=new a(e.r,16),this.s=new a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function i(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,u=0,o=t.place;u<n;u++,o++)i<<=8,i|=e[o];return t.place=o,i}function u(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function o(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}var a=r(3),f=r(4).utils,d=f.assert;e.exports=n,n.prototype._importDER=function(e,t){e=f.toArray(e,t);var r=new function(){this.place=0};if(48!==e[r.place++])return!1;if(i(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var n=i(e,r),u=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var o=i(e,r);if(e.length!==o+r.place)return!1;var d=e.slice(r.place,o+r.place);return 0===u[0]&&128&u[1]&&(u=u.slice(1)),0===d[0]&&128&d[1]&&(d=d.slice(1)),this.r=new a(u),this.s=new a(d),this.recoveryParam=null,!0},n.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=u(t),r=u(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];o(n,t.length),(n=n.concat(t)).push(2),o(n,r.length);var i=n.concat(r),a=[48];return o(a,i.length),a=a.concat(i),f.encode(a,e)}},function(e,t,r){"use strict";function n(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof n))return new n(e);e=u.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=i.sha512}var i=r(47),u=r(4),o=u.utils,a=o.assert,f=o.parseBytes,d=r(171),s=r(172);e.exports=n,n.prototype.sign=function(e,t){e=f(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),u=this.encodePoint(i),o=this.hashInt(u,r.pubBytes(),e).mul(r.priv()),a=n.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:a,Rencoded:u})},n.prototype.verify=function(e,t,r){e=f(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),u=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(u)},n.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},n.prototype.keyFromPublic=function(e){return d.fromPublic(this,e)},n.prototype.keyFromSecret=function(e){return d.fromSecret(this,e)},n.prototype.makeSignature=function(e){return e instanceof s?e:new s(this,e)},n.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},n.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},n.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},n.prototype.decodeInt=function(e){return o.intFromLE(e)},n.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";function n(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}var i=r(4).utils,u=i.assert,o=i.parseBytes,a=i.cachedProperty;n.fromPublic=function(e,t){return t instanceof n?t:new n(e,{pub:t})},n.fromSecret=function(e,t){return t instanceof n?t:new n(e,{secret:t})},n.prototype.secret=function(){return this._secret},a(n,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(n,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(n,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(n,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(n,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(n,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),n.prototype.sign=function(e){return u(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},n.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},n.prototype.getSecret=function(e){return u(this._secret,"KeyPair is public only"),i.encode(this.secret(),e)},n.prototype.getPublic=function(e){return i.encode(this.pubBytes(),e)},e.exports=n},function(e,t,r){"use strict";function n(e,t){this.eddsa=e,"object"!=typeof t&&(t=f(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof i&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}var i=r(3),u=r(4).utils,o=u.assert,a=u.cachedProperty,f=u.parseBytes;a(n,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(n,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(n,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(n,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),n.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},n.prototype.toHex=function(){return u.encode(this.toBytes(),"hex").toUpperCase()},e.exports=n},function(e,t,r){"use strict";var n=r(8);t.certificate=r(174);var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});t.RSAPrivateKey=i;var u=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});t.RSAPublicKey=u;var o=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});t.PublicKey=o;var a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),f=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});t.PrivateKey=f;var d=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});t.EncryptedPrivateKey=d;var s=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});t.DSAPrivateKey=s,t.DSAparam=n.define("DSAparam",function(){this.int()});var c=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});t.ECPrivateKey=c;var h=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});t.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},function(e,t,r){"use strict";var n=r(8),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),u=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),o=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),a=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())}),f=n.define("RelativeDistinguishedName",function(){this.setof(u)}),d=n.define("RDNSequence",function(){this.seqof(f)}),s=n.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),c=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())}),l=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(s),this.key("validity").use(c),this.key("subject").use(s),this.key("subjectPublicKeyInfo").use(a),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(l),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())});e.exports=p},function(e,t){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){(function(t){var n=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,i=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,u=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,o=r(27),a=r(43);e.exports=function(e,r){var f,d=e.toString(),s=d.match(n);if(s){var c="aes"+s[1],h=new t(s[2],"hex"),l=new t(s[3].replace(/\r?\n/g,""),"base64"),p=o(r,h.slice(0,8),parseInt(s[1],10)).key,b=[],y=a.createDecipheriv(c,p,h);b.push(y.update(l)),b.push(y.final()),f=t.concat(b)}else{var m=d.match(u);f=new t(m[2].replace(/\r?\n/g,""),"base64")}return{tag:d.match(i)[1],data:f}}}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(e,t,r){var n=d[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new a(n),u=r.data.subjectPrivateKey.data;return i.verify(t,e,u)}function i(e,t,r){var n=r.data.p,i=r.data.q,a=r.data.g,d=r.data.pub_key,s=f.signature.decode(e,"der"),c=s.s,h=s.r;u(c,i),u(h,i);var l=o.mont(n),p=c.invm(i);return 0===a.toRed(l).redPow(new o(t).mul(p).mod(i)).fromRed().mul(d.toRed(l).redPow(h.mul(p).mod(i)).fromRed()).mod(n).mod(i).cmp(h)}function u(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}var o=r(3),a=r(4).ec,f=r(30),d=r(77);e.exports=function(e,r,u,a,d){var s=f(u);if("ec"===s.type){if("ecdsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");return n(e,r,s)}if("dsa"===s.type){if("dsa"!==a)throw new Error("wrong public key type");return i(e,r,s)}if("rsa"!==a&&"ecdsa/rsa"!==a)throw new Error("wrong public key type");r=t.concat([d,r]);for(var c=s.modulus.byteLength(),h=[1],l=0;r.length+h.length+2<c;)h.push(255),l++;h.push(0);for(var p=-1;++p<r.length;)h.push(r[p]);h=new t(h);var b=o.mont(s.modulus);e=(e=new o(e).toRed(b)).redPow(new o(s.publicExponent)),e=new t(e.fromRed().toArray());var y=l<8?1:0;for(c=Math.min(e.length,h.length),e.length!==h.length&&(y=1),p=-1;++p<c;)y|=e[p]^h[p];return 0===y}}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(e){this.curveType=a[e],this.curveType||(this.curveType={name:e}),this.curve=new u.ec(this.curveType.name),this.keys=void 0}function i(e,r,n){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(n&&i.length<n){var u=new t(n-i.length);u.fill(0),i=t.concat([u,i])}return r?i.toString(r):i}var u=r(4),o=r(3);e.exports=function(e){return new n(e)};var a={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};a.p224=a.secp224r1,a.p256=a.secp256r1=a.prime256v1,a.p192=a.secp192r1=a.prime192v1,a.p384=a.secp384r1,a.p521=a.secp521r1,n.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},n.prototype.computeSecret=function(e,r,n){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),i(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},n.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),i(r,e)},n.prototype.getPrivateKey=function(e){return i(this.keys.getPrivate(),e)},n.prototype.setPublicKey=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.keys._importPublic(e),this},n.prototype.setPrivateKey=function(e,r){r=r||"utf8",t.isBuffer(e)||(e=new t(e,r));var n=new o(e);return n=n.toString(16),this.keys._importPrivate(n),this}}).call(t,r(0).Buffer)},function(e,t,r){t.publicEncrypt=r(180),t.privateDecrypt=r(181),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},function(e,t,r){(function(t){function n(e,r){var n=e.modulus.byteLength(),i=r.length,u=f("sha1").update(new t("")).digest(),o=u.length,h=2*o;if(i>n-h-2)throw new Error("message too long");var l=new t(n-i-h-2);l.fill(0);var p=n-o-1,b=a(o),y=s(t.concat([u,l,new t([1]),r],p),d(b,p)),m=s(b,d(y,o));return new c(t.concat([new t([0]),m,y],n))}function i(e,r,n){var i,o=r.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");return n?(i=new t(a-o-3)).fill(255):i=u(a-o-3),new c(t.concat([new t([0,n?1:2]),i,new t([0]),r],a))}function u(e,r){for(var n,i=new t(e),u=0,o=a(2*e),f=0;u<e;)f===o.length&&(o=a(2*e),f=0),(n=o[f++])&&(i[u++]=n);return i}var o=r(30),a=r(13),f=r(18),d=r(78),s=r(79),c=r(3),h=r(80),l=r(46);e.exports=function(e,t,r){var u;u=e.padding?e.padding:r?1:4;var a,f=o(e);if(4===u)a=n(f,t);else if(1===u)a=i(f,t,r);else{if(3!==u)throw new Error("unknown padding");if((a=new c(t)).cmp(f.modulus)>=0)throw new Error("data too long for modulus")}return r?l(a,f):h(a,f)}}).call(t,r(0).Buffer)},function(e,t,r){(function(t){function n(e,r){var n=(e.modulus,e.modulus.byteLength()),i=(r.length,d("sha1").update(new t("")).digest()),a=i.length;if(0!==r[0])throw new Error("decryption error");var f=r.slice(1,a+1),s=r.slice(a+1),c=o(f,u(s,a)),h=o(s,u(c,n-a-1));if(function(e,r){e=new t(e),r=new t(r);var n=0,i=e.length;e.length!==r.length&&(n++,i=Math.min(e.length,r.length));for(var u=-1;++u<i;)n+=e[u]^r[u];return n}(i,h.slice(0,a)))throw new Error("decryption error");for(var l=a;0===h[l];)l++;if(1!==h[l++])throw new Error("decryption error");return h.slice(l)}var i=r(30),u=r(78),o=r(79),a=r(3),f=r(46),d=r(18),s=r(80);e.exports=function(e,r,u){var o;o=e.padding?e.padding:u?1:4;var d,c=i(e),h=c.modulus.byteLength();if(r.length>h||new a(r).cmp(c.modulus)>=0)throw new Error("decryption error");d=u?s(new a(r),c):f(r,c);var l=new t(h-d.length);if(l.fill(0),d=t.concat([l,d],h),4===o)return n(c,d);if(1===o)return function(e,t,r){for(var n=t.slice(0,2),i=2,u=0;0!==t[i++];)if(i>=t.length){u++;break}var o=t.slice(2,i-1);if(t.slice(i-1,i),("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&u++,o.length<8&&u++,u)throw new Error("decryption error");return t.slice(i)}(0,d,u);if(3===o)return d;throw new Error("unknown padding")}}).call(t,r(0).Buffer)},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")}function u(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>l||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function o(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>l||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>c)throw new RangeError("buffer too small")}function a(e,t,r,i){if(n.browser){var u=e.buffer,o=new Uint8Array(u,t,r);return h.getRandomValues(o),i?void n.nextTick(function(){i(null,e)}):e}return i?void d(r,function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)}):(d(r).copy(e,t),e)}var f=r(2),d=r(13),s=f.Buffer,c=f.kMaxLength,h=e.crypto||e.msCrypto,l=Math.pow(2,32)-1;h&&h.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 u(r,t.length),o(n,r,t.length),a(t,r,n,i)},t.randomFillSync=function(t,r,n){if(void 0===r&&(r=0),!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return u(r,t.length),void 0===n&&(n=t.length-r),o(n,r,t.length),a(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(t,r(9),r(6))},function(e,t,r){"use strict";(function(t){var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(22),u=r(23),o=r(17),a=r(12),f=r(34),d=r(31).PrefixFingerprintContents,s=function(e){function r(){!function(e,t){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return e.prefix=t.alloc(0),e.subcondition=null,e.maxMessageLength=16384,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,o),n(r,[{key:"setSubcondition",value:function(e){if("string"==typeof e)e=i.fromUri(e);else if(!(e instanceof i))throw new Error("Subconditions must be URIs or objects of type Condition");this.subcondition=e}},{key:"setSubfulfillment",value:function(e){if("string"==typeof e)e=u.fromUri(e);else if(!(e instanceof u))throw new Error("Subfulfillments must be objects of type Fulfillment");this.subcondition=e}},{key:"setPrefix",value:function(e){if(!t.isBuffer(e))throw new TypeError("Prefix must be a Buffer, was: "+e);this.prefix=e}},{key:"setMaxMessageLength",value:function(e){if(!f(e)||e<0)throw new TypeError("Max message length must be an integer greater than or equal to zero, was: "+e);this.maxMessageLength=e}},{key:"getSubtypes",value:function(){var e=new Set([].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(this.subcondition.getSubtypes()),[this.subcondition.getTypeName()]));return e.delete(this.constructor.TYPE_NAME),e}},{key:"getFingerprintContents",value:function(){if(!this.subcondition)throw new a("Requires subcondition");return d.encode({prefix:this.prefix,maxMessageLength:this.maxMessageLength,subcondition:this.subcondition instanceof i?this.subcondition.getAsn1Json():this.subcondition.getCondition().getAsn1Json()})}},{key:"getAsn1JsonPayload",value:function(){return{prefix:this.prefix,maxMessageLength:this.maxMessageLength,subfulfillment:this.subcondition.getAsn1Json()}}},{key:"parseJson",value:function(e){this.setPrefix(t.from(e.prefix,"base64")),this.setMaxMessageLength(e.maxMessageLength),this.setSubfulfillment(u.fromJson(e.subfulfillment))}},{key:"parseAsn1JsonPayload",value:function(e){this.setPrefix(t.from(e.prefix,"base64")),this.setMaxMessageLength(e.maxMessageLength.toNumber()),this.setSubfulfillment(u.fromAsn1Json(e.subfulfillment))}},{key:"calculateCost",value:function(){if(!this.prefix)throw new a("Prefix must be specified");if(!this.subcondition)throw new a("Subcondition must be specified");var e=this.subcondition instanceof i?this.subcondition.getCost():this.subcondition.getCondition().getCost();return Number(this.prefix.length)+this.maxMessageLength+e+1024}},{key:"validate",value:function(e){if(!(this.subcondition instanceof u))throw new Error("Subcondition is not a fulfillment");if(!t.isBuffer(e))throw new Error("Message must be provided as a Buffer, was: "+e);return this.subcondition.validate(t.concat([this.prefix,e]))}}]),r}();s.TYPE_ID=1,s.TYPE_NAME="prefix-sha-256",s.TYPE_ASN1_CONDITION="prefixSha256Condition",s.TYPE_ASN1_FULFILLMENT="prefixSha256Fulfillment",s.TYPE_CATEGORY="compound",s.CONSTANT_BASE_COST=16384,s.CONSTANT_COST_DIVISOR=256,s.prototype.setSubconditionUri=s.prototype.setSubcondition,s.prototype.setSubfulfillmentUri=s.prototype.setSubfulfillment,e.exports=s}).call(t,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(22),u=r(23),o=r(17),a=r(12),f=r(34),d=r(31).ThresholdFingerprintContents,s=function(e){function r(){!function(e,t){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return e.threshold=null,e.subconditions=[],e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,o),n(r,[{key:"addSubcondition",value:function(e){if("string"==typeof e)e=i.fromUri(e);else if(!(e instanceof i))throw new Error("Subconditions must be URIs or objects of type Condition");this.subconditions.push({type:"condition",body:e})}},{key:"addSubfulfillment",value:function(e){if("string"==typeof e)e=u.fromUri(e);else if(!(e instanceof u))throw new Error("Subfulfillments must be URIs or objects of type Fulfillment");this.subconditions.push({type:"fulfillment",body:e})}},{key:"setThreshold",value:function(e){if(!f(e)||e<1)throw new TypeError("Threshold must be a integer greater than zero, was: "+e);this.threshold=e}},{key:"getSubtypes",value:function(){var e=this.subconditions.map(function(e){return Array.from(e.body.getSubtypes()).concat(e.body.getTypeName())}),t=new Set(Array.prototype.concat.apply([],e));return t.delete(this.constructor.TYPE_NAME),t}},{key:"getFingerprintContents",value:function(){return d.encode({threshold:this.threshold,subconditions:this.subconditions.map(function(e){return e.body instanceof i?e.body:e.body.getCondition()}).sort(r.compareConditions).map(function(e){return e.getAsn1Json()})})}},{key:"calculateCost",value:function(){var e=this.subconditions.map(this.constructor.getSubconditionCost),t=this.constructor.calculateWorstCaseLength(this.threshold,e);if(t===-1/0)throw new a("Insufficient number of subconditions to meet the threshold");return t+1024*e.length}},{key:"parseJson",value:function(e){if(this.setThreshold(e.threshold),e.subfulfillments){var t=!0,r=!1,n=void 0;try{for(var o,a=e.subfulfillments[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var f=o.value;this.addSubfulfillment(u.fromJson(f))}}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}}if(e.subconditions){var d=!0,s=!1,c=void 0;try{for(var h,l=e.subconditions[Symbol.iterator]();!(d=(h=l.next()).done);d=!0){var p=h.value;this.addSubcondition(i.fromJson(p))}}catch(e){s=!0,c=e}finally{try{!d&&l.return&&l.return()}finally{if(s)throw c}}}}},{key:"parseAsn1JsonPayload",value:function(e){if(this.setThreshold(e.subfulfillments.length),e.subfulfillments){var t=!0,r=!1,n=void 0;try{for(var o,a=e.subfulfillments[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var f=o.value;this.addSubfulfillment(u.fromAsn1Json(f))}}catch(e){r=!0,n=e}finally{try{!t&&a.return&&a.return()}finally{if(r)throw n}}}if(e.subconditions){var d=!0,s=!1,c=void 0;try{for(var h,l=e.subconditions[Symbol.iterator]();!(d=(h=l.next()).done);d=!0){var p=h.value;this.addSubcondition(i.fromAsn1Json(p))}}catch(e){s=!0,c=e}finally{try{!d&&l.return&&l.return()}finally{if(s)throw c}}}}},{key:"getAsn1JsonPayload",value:function(){var e=this.subconditions.filter(function(e){return"fulfillment"===e.type}).sort(function(e,t){return e.body.getCondition().getCost()-t.body.getCondition().getCost()}),t=this.subconditions.filter(function(e){return"condition"===e.type});if(e.length<this.threshold)throw new Error("Not enough fulfillments");var n=e.slice(0,this.threshold),i=t.map(function(e){return e.body}).concat(e.slice(this.threshold).map(function(e){return e.body.getCondition()}));return{subfulfillments:n.map(function(e){return e.body}).sort(r.compareConditions).map(function(e){return e.getAsn1Json()}),subconditions:i.sort(r.compareConditions).map(function(e){return e.getAsn1Json()})}}},{key:"validate",value:function(e){var t=this.subconditions.filter(function(e){return"fulfillment"===e.type});if(t.length<this.threshold)throw new Error("Threshold not met");if(t.length>this.threshold)throw new Error("Fulfillment is not minimal");return t.every(function(t){return t.body.validate(e)})}}],[{key:"compareConditions",value:function(e,r){return t.compare(e.serializeBinary(),r.serializeBinary())}},{key:"getSubconditionCost",value:function(e){return"fulfillment"===e.type?e.body.getCondition().getCost():e.body.getCost()}},{key:"calculateWorstCaseLength",value:function(e,t){return t.length<e?-1/0:t.sort(function(e,t){return e-t}).slice(-e).reduce(function(e,t){return e+t},0)}},{key:"calculateSmallestValidFulfillmentSet",value:function(e,t){return t.sort(function(e,t){return t.size-e.size}),t.slice(0,e)}}]),r}();s.TYPE_ID=2,s.TYPE_NAME="threshold-sha-256",s.TYPE_ASN1_CONDITION="thresholdSha256Condition",s.TYPE_ASN1_FULFILLMENT="thresholdSha256Fulfillment",s.TYPE_CATEGORY="compound",s.prototype.addSubconditionUri=s.prototype.addSubcondition,s.prototype.addSubfulfillmentUri=s.prototype.addSubfulfillment,e.exports=s}).call(t,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(186),u=r(81),o=r(17),a=r(12),f=r(82),d=r(31).RsaFingerprintContents,s=new i,c=function(e){function r(){!function(e,t){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return e.modulus=null,e.signature=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,o),n(r,[{key:"parseJson",value:function(e){this.modulus=t.from(e.modulus,"base64"),this.signature=t.from(e.signature,"base64")}},{key:"getFingerprintContents",value:function(){if(!this.modulus)throw new a("Requires modulus");return d.encode({modulus:this.modulus})}},{key:"getAsn1JsonPayload",value:function(){return{modulus:this.modulus,signature:this.signature}}},{key:"setPublicModulus",value:function(e){if(!t.isBuffer(e))throw new TypeError("Modulus must be a buffer, was: "+e);if(0===e[0])throw new Error("Modulus may not contain leading zeros");if(e.length>512||e.length<128)throw new Error("Modulus must be between 128 bytes (1017 bits) and 512 bytes (4096 bits), was: "+e.length+" bytes");this.modulus=e}},{key:"setSignature",value:function(e){if(!t.isBuffer(e))throw new TypeError("Signature must be a buffer, was: "+e);this.signature=e}},{key:"sign",value:function(e,t){this.modulus||this.setPublicModulus(u.modulusFromPrivateKey(t)),this.signature=s.sign(t,e)}},{key:"calculateCost",value:function(){if(!this.modulus)throw new a("Requires a public modulus");return Math.pow(s.getModulusBitLength(this.modulus),2)>>>r.COST_RIGHT_SHIFT}},{key:"validate",value:function(e){if(!t.isBuffer(e))throw new Error("Message must be provided as a Buffer, was: "+e);if(!s.verify(this.modulus,e,this.signature))throw new f("Invalid RSA signature");return!0}}]),r}();c.TYPE_ID=3,c.TYPE_NAME="rsa-sha-256",c.TYPE_ASN1_CONDITION="rsaSha256Condition",c.TYPE_ASN1_FULFILLMENT="rsaSha256Fulfillment",c.TYPE_CATEGORY="simple",c.COST_RIGHT_SHIFT=6,e.exports=c}).call(t,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(24),u=i.constants,o=r(187),a=r(81),f=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t=t||{},this.hashAlgorithm=t.hashAlgorithm||"sha256",this.pss=new o({hashAlgorithm:this.hashAlgorithm})}return n(e,[{key:"getModulusBitLength",value:function(e){var t=e[0].toString(2).length;return 8*(e.length-1)+t}},{key:"sign",value:function(r,n){var o=a.modulusFromPrivateKey(r),f=this.getModulusBitLength(o),d=this.pss.encode(n,f-1),s=d.length<o.length?t.concat([e.ZERO_BYTE,d]):d;return i.privateEncrypt({key:r,padding:u.RSA_NO_PADDING},s)}},{key:"verify",value:function(e,t,r){var n=a.modulusToPem(e),o=i.publicDecrypt({key:n,padding:u.RSA_NO_PADDING},r),f=this.getModulusBitLength(e),d=f%8==1?o.slice(1):o;return this.pss.verify(t,d,f-1)}}]),e}();f.ZERO_BYTE=t.from([0]),e.exports=f}).call(t,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(24),u=r(188),o=r(189),a=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t=t||{},this.hashAlgorithm=t.hashAlgorithm||"sha256",this.hashLength=i.createHash(this.hashAlgorithm).digest().length,this.saltLength=this.hashLength}return n(e,[{key:"encode",value:function(e,r){var n=Math.ceil(r/8),a=i.createHash(this.hashAlgorithm).update(e).digest();if(n<this.hashLength+this.saltLength+2)throw new Error("Encoding error: RSA modulus is too small for "+this.hashAlgorithm);var f=i.randomBytes(this.saltLength),d=i.createHash(this.hashAlgorithm).update(t.alloc(8).fill(0)).update(a).update(f).digest(),s=t.concat([t.alloc(n-this.saltLength-this.hashLength-2).fill(0),t.from([1]),f]),c=new u({hashAlgorithm:this.hashAlgorithm}).generate(d,n-this.hashLength-1),h=o(s,c);return h[0]&=255>>>8*n-r,t.concat([h,d,t.from([188])])}},{key:"verify",value:function(e,r,n){var a=Math.ceil(n/8),f=i.createHash(this.hashAlgorithm).update(e).digest();if(a<this.hashLength+this.saltLength+2)return!1;if(188!==r[r.length-1])return!1;var d=a-this.hashLength-1,s=r.slice(0,d),c=r.slice(d,d+this.hashLength),h=255>>>8*a-n;if(s[0]&~h)return!1;var l=new u({hashAlgorithm:this.hashAlgorithm}).generate(c,a-this.hashLength-1),p=o(s,l);p[0]&=h;for(var b=a-this.hashLength-this.saltLength-2,y=0;y<b;y++)if(0!==p[y])return!1;if(1!==p[b])return!1;var m=p.slice(p.length-this.saltLength),g=i.createHash(this.hashAlgorithm).update(t.alloc(8).fill(0)).update(f).update(m).digest();return 0===t.compare(c,g)}}]),e}();a.EMPTY_BUFFER=t.alloc(0),e.exports=a}).call(t,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(24),u=function(){function e(t){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),t=t||{},this.hashAlgorithm=t.hashAlgorithm||"sha256",this.hashLength=i.createHash(this.hashAlgorithm).digest().length,this.saltLength=this.hashLength}return n(e,[{key:"generate",value:function(e,r){for(var n=t.alloc(r),u=Math.ceil(r/this.hashLength),o=0;o<u;o++){var a=t.alloc(4);a.writeInt32BE(o,0),i.createHash(this.hashAlgorithm).update(e).update(a).digest().copy(n,o*this.hashLength)}return n}}]),e}();e.exports=u}).call(t,r(0).Buffer)},function(e,t,r){"use strict";(function(t){e.exports=function(e,r){if(!t.isBuffer(e)||!t.isBuffer(r))throw new Error("Arguments must be buffers");if(e.length!==r.length)throw new Error("Buffers must be the same length");for(var n=t.alloc(e.length),i=0;i<e.length;i++)n[i]=e[i]^r[i];return n}}).call(t,r(0).Buffer)},function(e,t,r){"use strict";(function(t){var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(191),u=r(17),o=r(12),a=r(82),f=r(31).Ed25519FingerprintContents,d=void 0;try{d=r(193)}catch(e){}var s=function(e){function r(){!function(e,t){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).call(this));return e.publicKey=null,e.signature=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,u),n(r,[{key:"setPublicKey",value:function(e){if(!t.isBuffer(e))throw new TypeError("Public key must be a Buffer, was: "+e);if(32!==e.length)throw new Error("Public key must be 32 bytes, was: "+e.length);this.publicKey=e}},{key:"setSignature",value:function(e){if(!t.isBuffer(e))throw new TypeError("Signature must be a Buffer, was: "+e);if(64!==e.length)throw new Error("Signature must be 64 bytes, was: "+e.length);this.signature=e}},{key:"sign",value:function(e,r){if(!t.isBuffer(e))throw new o("Message must be a Buffer");if(!t.isBuffer(r))throw new TypeError("Private key must be a Buffer, was: "+r);if(32!==r.length)throw new Error("Private key must be 32 bytes, was: "+r.length);if(d){var n=d.MakeKeypair(r);this.setPublicKey(n.publicKey),this.signature=d.Sign(e,n)}else{var u=i.sign.keyPair.fromSeed(r);this.setPublicKey(t.from(u.publicKey)),this.signature=t.from(i.sign.detached(e,u.secretKey))}}},{key:"parseJson",value:function(e){this.setPublicKey(t.from(e.publicKey,"base64")),this.setSignature(t.from(e.signature,"base64"))}},{key:"getFingerprintContents",value:function(){if(!this.publicKey)throw new o("Requires public key");return f.encode({publicKey:this.publicKey})}},{key:"getAsn1JsonPayload",value:function(){return{publicKey:this.publicKey,signature:this.signature}}},{key:"calculateCost",value:function(){return r.CONSTANT_COST}},{key:"validate",value:function(e){if(!t.isBuffer(e))throw new TypeError("Message must be a Buffer");if(!0!==(d?d.Verify(e,this.signature,this.publicKey):i.sign.detached.verify(e,this.signature,this.publicKey)))throw new a("Invalid ed25519 signature");return!0}}]),r}();s.TYPE_ID=4,s.TYPE_NAME="ed25519-sha-256",s.TYPE_ASN1_CONDITION="ed25519Sha256Condition",s.TYPE_ASN1_FULFILLMENT="ed25519Sha256Fulfillment",s.TYPE_CATEGORY="simple",s.CONSTANT_COST=131072,e.exports=s}).call(t,r(0).Buffer)},function(e,t,r){!function(e){"use strict";function t(e,t,r,n){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function n(e,t,r,n,i){var u,o=0;for(u=0;u<i;u++)o|=e[t+u]^r[n+u];return(1&o-1>>>8)-1}function i(e,t,r,i){return n(e,t,r,i,16)}function u(e,t,r,i){return n(e,t,r,i,32)}function o(e,t,r,n){!function(e,t,r,n){for(var i,u=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,d=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,g=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,_=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,w=u,S=o,E=a,A=f,x=d,k=s,M=c,I=h,T=l,B=p,P=b,C=y,O=m,R=g,j=v,U=_,L=0;L<20;L+=2)w^=(i=(O^=(i=(T^=(i=(x^=(i=w+O|0)<<7|i>>>25)+w|0)<<9|i>>>23)+x|0)<<13|i>>>19)+T|0)<<18|i>>>14,k^=(i=(S^=(i=(R^=(i=(B^=(i=k+S|0)<<7|i>>>25)+k|0)<<9|i>>>23)+B|0)<<13|i>>>19)+R|0)<<18|i>>>14,P^=(i=(M^=(i=(E^=(i=(j^=(i=P+M|0)<<7|i>>>25)+P|0)<<9|i>>>23)+j|0)<<13|i>>>19)+E|0)<<18|i>>>14,U^=(i=(C^=(i=(I^=(i=(A^=(i=U+C|0)<<7|i>>>25)+U|0)<<9|i>>>23)+A|0)<<13|i>>>19)+I|0)<<18|i>>>14,w^=(i=(A^=(i=(E^=(i=(S^=(i=w+A|0)<<7|i>>>25)+w|0)<<9|i>>>23)+S|0)<<13|i>>>19)+E|0)<<18|i>>>14,k^=(i=(x^=(i=(I^=(i=(M^=(i=k+x|0)<<7|i>>>25)+k|0)<<9|i>>>23)+M|0)<<13|i>>>19)+I|0)<<18|i>>>14,P^=(i=(B^=(i=(T^=(i=(C^=(i=P+B|0)<<7|i>>>25)+P|0)<<9|i>>>23)+C|0)<<13|i>>>19)+T|0)<<18|i>>>14,U^=(i=(j^=(i=(R^=(i=(O^=(i=U+j|0)<<7|i>>>25)+U|0)<<9|i>>>23)+O|0)<<13|i>>>19)+R|0)<<18|i>>>14;w=w+u|0,S=S+o|0,E=E+a|0,A=A+f|0,x=x+d|0,k=k+s|0,M=M+c|0,I=I+h|0,T=T+l|0,B=B+p|0,P=P+b|0,C=C+y|0,O=O+m|0,R=R+g|0,j=j+v|0,U=U+_|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=S>>>0&255,e[5]=S>>>8&255,e[6]=S>>>16&255,e[7]=S>>>24&255,e[8]=E>>>0&255,e[9]=E>>>8&255,e[10]=E>>>16&255,e[11]=E>>>24&255,e[12]=A>>>0&255,e[13]=A>>>8&255,e[14]=A>>>16&255,e[15]=A>>>24&255,e[16]=x>>>0&255,e[17]=x>>>8&255,e[18]=x>>>16&255,e[19]=x>>>24&255,e[20]=k>>>0&255,e[21]=k>>>8&255,e[22]=k>>>16&255,e[23]=k>>>24&255,e[24]=M>>>0&255,e[25]=M>>>8&255,e[26]=M>>>16&255,e[27]=M>>>24&255,e[28]=I>>>0&255,e[29]=I>>>8&255,e[30]=I>>>16&255,e[31]=I>>>24&255,e[32]=T>>>0&255,e[33]=T>>>8&255,e[34]=T>>>16&255,e[35]=T>>>24&255,e[36]=B>>>0&255,e[37]=B>>>8&255,e[38]=B>>>16&255,e[39]=B>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=C>>>0&255,e[45]=C>>>8&255,e[46]=C>>>16&255,e[47]=C>>>24&255,e[48]=O>>>0&255,e[49]=O>>>8&255,e[50]=O>>>16&255,e[51]=O>>>24&255,e[52]=R>>>0&255,e[53]=R>>>8&255,e[54]=R>>>16&255,e[55]=R>>>24&255,e[56]=j>>>0&255,e[57]=j>>>8&255,e[58]=j>>>16&255,e[59]=j>>>24&255,e[60]=U>>>0&255,e[61]=U>>>8&255,e[62]=U>>>16&255,e[63]=U>>>24&255}(e,t,r,n)}function a(e,t,r,n){!function(e,t,r,n){for(var i,u=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,d=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,g=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,_=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,w=0;w<20;w+=2)u^=(i=(m^=(i=(l^=(i=(d^=(i=u+m|0)<<7|i>>>25)+u|0)<<9|i>>>23)+d|0)<<13|i>>>19)+l|0)<<18|i>>>14,s^=(i=(o^=(i=(g^=(i=(p^=(i=s+o|0)<<7|i>>>25)+s|0)<<9|i>>>23)+p|0)<<13|i>>>19)+g|0)<<18|i>>>14,b^=(i=(c^=(i=(a^=(i=(v^=(i=b+c|0)<<7|i>>>25)+b|0)<<9|i>>>23)+v|0)<<13|i>>>19)+a|0)<<18|i>>>14,_^=(i=(y^=(i=(h^=(i=(f^=(i=_+y|0)<<7|i>>>25)+_|0)<<9|i>>>23)+f|0)<<13|i>>>19)+h|0)<<18|i>>>14,u^=(i=(f^=(i=(a^=(i=(o^=(i=u+f|0)<<7|i>>>25)+u|0)<<9|i>>>23)+o|0)<<13|i>>>19)+a|0)<<18|i>>>14,s^=(i=(d^=(i=(h^=(i=(c^=(i=s+d|0)<<7|i>>>25)+s|0)<<9|i>>>23)+c|0)<<13|i>>>19)+h|0)<<18|i>>>14,b^=(i=(p^=(i=(l^=(i=(y^=(i=b+p|0)<<7|i>>>25)+b|0)<<9|i>>>23)+y|0)<<13|i>>>19)+l|0)<<18|i>>>14,_^=(i=(v^=(i=(g^=(i=(m^=(i=_+v|0)<<7|i>>>25)+_|0)<<9|i>>>23)+m|0)<<13|i>>>19)+g|0)<<18|i>>>14;e[0]=u>>>0&255,e[1]=u>>>8&255,e[2]=u>>>16&255,e[3]=u>>>24&255,e[4]=s>>>0&255,e[5]=s>>>8&255,e[6]=s>>>16&255,e[7]=s>>>24&255,e[8]=b>>>0&255,e[9]=b>>>8&255,e[10]=b>>>16&255,e[11]=b>>>24&255,e[12]=_>>>0&255,e[13]=_>>>8&255,e[14]=_>>>16&255,e[15]=_>>>24&255,e[16]=c>>>0&255,e[17]=c>>>8&255,e[18]=c>>>16&255,e[19]=c>>>24&255,e[20]=h>>>0&255,e[21]=h>>>8&255,e[22]=h>>>16&255,e[23]=h>>>24&255,e[24]=l>>>0&255,e[25]=l>>>8&255,e[26]=l>>>16&255,e[27]=l>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}function f(e,t,r,n,i,u,a){var f,d,s=new Uint8Array(16),c=new Uint8Array(64);for(d=0;d<16;d++)s[d]=0;for(d=0;d<8;d++)s[d]=u[d];for(;i>=64;){for(o(c,s,a,ue),d=0;d<64;d++)e[t+d]=r[n+d]^c[d];for(f=1,d=8;d<16;d++)f=f+(255&s[d])|0,s[d]=255&f,f>>>=8;i-=64,t+=64,n+=64}if(i>0)for(o(c,s,a,ue),d=0;d<i;d++)e[t+d]=r[n+d]^c[d];return 0}function d(e,t,r,n,i){var u,a,f=new Uint8Array(16),d=new Uint8Array(64);for(a=0;a<16;a++)f[a]=0;for(a=0;a<8;a++)f[a]=n[a];for(;r>=64;){for(o(d,f,i,ue),a=0;a<64;a++)e[t+a]=d[a];for(u=1,a=8;a<16;a++)u=u+(255&f[a])|0,f[a]=255&u,u>>>=8;r-=64,t+=64}if(r>0)for(o(d,f,i,ue),a=0;a<r;a++)e[t+a]=d[a];return 0}function s(e,t,r,n,i){var u=new Uint8Array(32);a(u,n,i,ue);for(var o=new Uint8Array(8),f=0;f<8;f++)o[f]=n[f+16];return d(e,t,r,o,u)}function c(e,t,r,n,i,u,o){var d=new Uint8Array(32);a(d,u,o,ue);for(var s=new Uint8Array(8),c=0;c<8;c++)s[c]=u[c+16];return f(e,t,r,n,i,s,d)}function h(e,t,r,n,i,u){var o=new oe(u);return o.update(r,n,i),o.finish(e,t),0}function l(e,t,r,n,u,o){var a=new Uint8Array(16);return h(a,0,r,n,u,o),i(e,t,a,0)}function p(e,t,r,n,i){var u;if(r<32)return-1;for(c(e,0,t,0,r,n,i),h(e,16,e,32,r-32,e),u=0;u<16;u++)e[u]=0;return 0}function b(e,t,r,n,i){var u,o=new Uint8Array(32);if(r<32)return-1;if(s(o,0,32,n,i),0!==l(t,16,t,32,r-32,o))return-1;for(c(e,0,t,0,r,n,i),u=0;u<32;u++)e[u]=0;return 0}function y(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function m(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function g(e,t,r){for(var n,i=~(r-1),u=0;u<16;u++)n=i&(e[u]^t[u]),e[u]^=n,t[u]^=n}function v(e,t){var r,n,i,u=G(),o=G();for(r=0;r<16;r++)o[r]=t[r];for(m(o),m(o),m(o),n=0;n<2;n++){for(u[0]=o[0]-65517,r=1;r<15;r++)u[r]=o[r]-65535-(u[r-1]>>16&1),u[r-1]&=65535;u[15]=o[15]-32767-(u[14]>>16&1),i=u[15]>>16&1,u[14]&=65535,g(o,u,1-i)}for(r=0;r<16;r++)e[2*r]=255&o[r],e[2*r+1]=o[r]>>8}function _(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return v(r,e),v(n,t),u(r,0,n,0)}function w(e){var t=new Uint8Array(32);return v(t,e),1&t[0]}function S(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function E(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function A(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function x(e,t,r){var n,i,u=0,o=0,a=0,f=0,d=0,s=0,c=0,h=0,l=0,p=0,b=0,y=0,m=0,g=0,v=0,_=0,w=0,S=0,E=0,A=0,x=0,k=0,M=0,I=0,T=0,B=0,P=0,C=0,O=0,R=0,j=0,U=r[0],L=r[1],N=r[2],D=r[3],F=r[4],z=r[5],q=r[6],K=r[7],Y=r[8],H=r[9],J=r[10],G=r[11],V=r[12],W=r[13],X=r[14],Z=r[15];u+=(n=t[0])*U,o+=n*L,a+=n*N,f+=n*D,d+=n*F,s+=n*z,c+=n*q,h+=n*K,l+=n*Y,p+=n*H,b+=n*J,y+=n*G,m+=n*V,g+=n*W,v+=n*X,_+=n*Z,o+=(n=t[1])*U,a+=n*L,f+=n*N,d+=n*D,s+=n*F,c+=n*z,h+=n*q,l+=n*K,p+=n*Y,b+=n*H,y+=n*J,m+=n*G,g+=n*V,v+=n*W,_+=n*X,w+=n*Z,a+=(n=t[2])*U,f+=n*L,d+=n*N,s+=n*D,c+=n*F,h+=n*z,l+=n*q,p+=n*K,b+=n*Y,y+=n*H,m+=n*J,g+=n*G,v+=n*V,_+=n*W,w+=n*X,S+=n*Z,f+=(n=t[3])*U,d+=n*L,s+=n*N,c+=n*D,h+=n*F,l+=n*z,p+=n*q,b+=n*K,y+=n*Y,m+=n*H,g+=n*J,v+=n*G,_+=n*V,w+=n*W,S+=n*X,E+=n*Z,d+=(n=t[4])*U,s+=n*L,c+=n*N,h+=n*D,l+=n*F,p+=n*z,b+=n*q,y+=n*K,m+=n*Y,g+=n*H,v+=n*J,_+=n*G,w+=n*V,S+=n*W,E+=n*X,A+=n*Z,s+=(n=t[5])*U,c+=n*L,h+=n*N,l+=n*D,p+=n*F,b+=n*z,y+=n*q,m+=n*K,g+=n*Y,v+=n*H,_+=n*J,w+=n*G,S+=n*V,E+=n*W,A+=n*X,x+=n*Z,c+=(n=t[6])*U,h+=n*L,l+=n*N,p+=n*D,b+=n*F,y+=n*z,m+=n*q,g+=n*K,v+=n*Y,_+=n*H,w+=n*J,S+=n*G,E+=n*V,A+=n*W,x+=n*X,k+=n*Z,h+=(n=t[7])*U,l+=n*L,p+=n*N,b+=n*D,y+=n*F,m+=n*z,g+=n*q,v+=n*K,_+=n*Y,w+=n*H,S+=n*J,E+=n*G,A+=n*V,x+=n*W,k+=n*X,M+=n*Z,l+=(n=t[8])*U,p+=n*L,b+=n*N,y+=n*D,m+=n*F,g+=n*z,v+=n*q,_+=n*K,w+=n*Y,S+=n*H,E+=n*J,A+=n*G,x+=n*V,k+=n*W,M+=n*X,I+=n*Z,p+=(n=t[9])*U,b+=n*L,y+=n*N,m+=n*D,g+=n*F,v+=n*z,_+=n*q,w+=n*K,S+=n*Y,E+=n*H,A+=n*J,x+=n*G,k+=n*V,M+=n*W,I+=n*X,T+=n*Z,b+=(n=t[10])*U,y+=n*L,m+=n*N,g+=n*D,v+=n*F,_+=n*z,w+=n*q,S+=n*K,E+=n*Y,A+=n*H,x+=n*J,k+=n*G,M+=n*V,I+=n*W,T+=n*X,B+=n*Z,y+=(n=t[11])*U,m+=n*L,g+=n*N,v+=n*D,_+=n*F,w+=n*z,S+=n*q,E+=n*K,A+=n*Y,x+=n*H,k+=n*J,M+=n*G,I+=n*V,T+=n*W,B+=n*X,P+=n*Z,m+=(n=t[12])*U,g+=n*L,v+=n*N,_+=n*D,w+=n*F,S+=n*z,E+=n*q,A+=n*K,x+=n*Y,k+=n*H,M+=n*J,I+=n*G,T+=n*V,B+=n*W,P+=n*X,C+=n*Z,g+=(n=t[13])*U,v+=n*L,_+=n*N,w+=n*D,S+=n*F,E+=n*z,A+=n*q,x+=n*K,k+=n*Y,M+=n*H,I+=n*J,T+=n*G,B+=n*V,P+=n*W,C+=n*X,O+=n*Z,v+=(n=t[14])*U,_+=n*L,w+=n*N,S+=n*D,E+=n*F,A+=n*z,x+=n*q,k+=n*K,M+=n*Y,I+=n*H,T+=n*J,B+=n*G,P+=n*V,C+=n*W,O+=n*X,R+=n*Z,_+=(n=t[15])*U,o+=38*(S+=n*N),a+=38*(E+=n*D),f+=38*(A+=n*F),d+=38*(x+=n*z),s+=38*(k+=n*q),c+=38*(M+=n*K),h+=38*(I+=n*Y),l+=38*(T+=n*H),p+=38*(B+=n*J),b+=38*(P+=n*G),y+=38*(C+=n*V),m+=38*(O+=n*W),g+=38*(R+=n*X),v+=38*(j+=n*Z),n=(u+=38*(w+=n*L))+(i=1)+65535,u=n-65536*(i=Math.floor(n/65536)),o=(n=o+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),n=(u+=i-1+37*(i-1))+(i=1)+65535,u=n-65536*(i=Math.floor(n/65536)),o=(n=o+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),u+=i-1+37*(i-1),e[0]=u,e[1]=o,e[2]=a,e[3]=f,e[4]=d,e[5]=s,e[6]=c,e[7]=h,e[8]=l,e[9]=p,e[10]=b,e[11]=y,e[12]=m,e[13]=g,e[14]=v,e[15]=_}function k(e,t){x(e,t,t)}function M(e,t){var r,n=G();for(r=0;r<16;r++)n[r]=t[r];for(r=253;r>=0;r--)k(n,n),2!==r&&4!==r&&x(n,n,t);for(r=0;r<16;r++)e[r]=n[r]}function I(e,t,r){var n,i,u=new Uint8Array(32),o=new Float64Array(80),a=G(),f=G(),d=G(),s=G(),c=G(),h=G();for(i=0;i<31;i++)u[i]=t[i];for(u[31]=127&t[31]|64,u[0]&=248,S(o,r),i=0;i<16;i++)f[i]=o[i],s[i]=a[i]=d[i]=0;for(a[0]=s[0]=1,i=254;i>=0;--i)g(a,f,n=u[i>>>3]>>>(7&i)&1),g(d,s,n),E(c,a,d),A(a,a,d),E(d,f,s),A(f,f,s),k(s,c),k(h,a),x(a,d,a),x(d,f,c),E(c,a,d),A(a,a,d),k(f,a),A(d,s,h),x(a,d,Q),E(a,a,s),x(d,d,a),x(a,s,h),x(s,f,o),k(f,c),g(a,f,n),g(d,s,n);for(i=0;i<16;i++)o[i+16]=a[i],o[i+32]=d[i],o[i+48]=f[i],o[i+64]=s[i];var l=o.subarray(32),p=o.subarray(16);return M(l,l),x(p,p,l),v(e,p),0}function T(e,t){return I(e,t,X)}function B(e,t){return V(t,32),T(e,t)}function P(e,t,r){var n=new Uint8Array(32);return I(n,r,t),a(e,W,n,ue)}function C(e,t,r,n){for(var i,u,o,a,f,d,s,c,h,l,p,b,y,m,g,v,_,w,S,E,A,x,k,M,I,T,B=new Int32Array(16),P=new Int32Array(16),C=e[0],O=e[1],R=e[2],j=e[3],U=e[4],L=e[5],N=e[6],D=e[7],F=t[0],z=t[1],q=t[2],K=t[3],Y=t[4],H=t[5],J=t[6],G=t[7],V=0;n>=128;){for(S=0;S<16;S++)E=8*S+V,B[S]=r[E+0]<<24|r[E+1]<<16|r[E+2]<<8|r[E+3],P[S]=r[E+4]<<24|r[E+5]<<16|r[E+6]<<8|r[E+7];for(S=0;S<80;S++)if(i=C,u=O,o=R,a=j,f=U,d=L,s=N,c=D,h=F,l=z,p=q,b=K,y=Y,m=H,g=J,v=G,k=65535&(x=G),M=x>>>16,I=65535&(A=D),T=A>>>16,k+=65535&(x=(Y>>>14|U<<18)^(Y>>>18|U<<14)^(U>>>9|Y<<23)),M+=x>>>16,I+=65535&(A=(U>>>14|Y<<18)^(U>>>18|Y<<14)^(Y>>>9|U<<23)),T+=A>>>16,k+=65535&(x=Y&H^~Y&J),M+=x>>>16,I+=65535&(A=U&L^~U&N),T+=A>>>16,A=de[2*S],k+=65535&(x=de[2*S+1]),M+=x>>>16,I+=65535&A,T+=A>>>16,A=B[S%16],M+=(x=P[S%16])>>>16,I+=65535&A,T+=A>>>16,I+=(M+=(k+=65535&x)>>>16)>>>16,k=65535&(x=w=65535&k|M<<16),M=x>>>16,I=65535&(A=_=65535&I|(T+=I>>>16)<<16),T=A>>>16,k+=65535&(x=(F>>>28|C<<4)^(C>>>2|F<<30)^(C>>>7|F<<25)),M+=x>>>16,I+=65535&(A=(C>>>28|F<<4)^(F>>>2|C<<30)^(F>>>7|C<<25)),T+=A>>>16,M+=(x=F&z^F&q^z&q)>>>16,I+=65535&(A=C&O^C&R^O&R),T+=A>>>16,c=65535&(I+=(M+=(k+=65535&x)>>>16)>>>16)|(T+=I>>>16)<<16,v=65535&k|M<<16,k=65535&(x=b),M=x>>>16,I=65535&(A=a),T=A>>>16,M+=(x=w)>>>16,I+=65535&(A=_),T+=A>>>16,O=i,R=u,j=o,U=a=65535&(I+=(M+=(k+=65535&x)>>>16)>>>16)|(T+=I>>>16)<<16,L=f,N=d,D=s,C=c,z=h,q=l,K=p,Y=b=65535&k|M<<16,H=y,J=m,G=g,F=v,S%16==15)for(E=0;E<16;E++)A=B[E],k=65535&(x=P[E]),M=x>>>16,I=65535&A,T=A>>>16,A=B[(E+9)%16],k+=65535&(x=P[(E+9)%16]),M+=x>>>16,I+=65535&A,T+=A>>>16,_=B[(E+1)%16],k+=65535&(x=((w=P[(E+1)%16])>>>1|_<<31)^(w>>>8|_<<24)^(w>>>7|_<<25)),M+=x>>>16,I+=65535&(A=(_>>>1|w<<31)^(_>>>8|w<<24)^_>>>7),T+=A>>>16,_=B[(E+14)%16],M+=(x=((w=P[(E+14)%16])>>>19|_<<13)^(_>>>29|w<<3)^(w>>>6|_<<26))>>>16,I+=65535&(A=(_>>>19|w<<13)^(w>>>29|_<<3)^_>>>6),T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,B[E]=65535&I|T<<16,P[E]=65535&k|M<<16;k=65535&(x=F),M=x>>>16,I=65535&(A=C),T=A>>>16,A=e[0],M+=(x=t[0])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[0]=C=65535&I|T<<16,t[0]=F=65535&k|M<<16,k=65535&(x=z),M=x>>>16,I=65535&(A=O),T=A>>>16,A=e[1],M+=(x=t[1])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[1]=O=65535&I|T<<16,t[1]=z=65535&k|M<<16,k=65535&(x=q),M=x>>>16,I=65535&(A=R),T=A>>>16,A=e[2],M+=(x=t[2])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[2]=R=65535&I|T<<16,t[2]=q=65535&k|M<<16,k=65535&(x=K),M=x>>>16,I=65535&(A=j),T=A>>>16,A=e[3],M+=(x=t[3])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[3]=j=65535&I|T<<16,t[3]=K=65535&k|M<<16,k=65535&(x=Y),M=x>>>16,I=65535&(A=U),T=A>>>16,A=e[4],M+=(x=t[4])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[4]=U=65535&I|T<<16,t[4]=Y=65535&k|M<<16,k=65535&(x=H),M=x>>>16,I=65535&(A=L),T=A>>>16,A=e[5],M+=(x=t[5])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[5]=L=65535&I|T<<16,t[5]=H=65535&k|M<<16,k=65535&(x=J),M=x>>>16,I=65535&(A=N),T=A>>>16,A=e[6],M+=(x=t[6])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[6]=N=65535&I|T<<16,t[6]=J=65535&k|M<<16,k=65535&(x=G),M=x>>>16,I=65535&(A=D),T=A>>>16,A=e[7],M+=(x=t[7])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[7]=D=65535&I|T<<16,t[7]=G=65535&k|M<<16,V+=128,n-=128}return n}function O(e,r,n){var i,u=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),f=n;for(u[0]=1779033703,u[1]=3144134277,u[2]=1013904242,u[3]=2773480762,u[4]=1359893119,u[5]=2600822924,u[6]=528734635,u[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,C(u,o,r,n),n%=128,i=0;i<n;i++)a[i]=r[f-n+i];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,t(a,n-8,f/536870912|0,f<<3),C(u,o,a,n),i=0;i<8;i++)t(e,8*i,u[i],o[i]);return 0}function R(e,t){var r=G(),n=G(),i=G(),u=G(),o=G(),a=G(),f=G(),d=G(),s=G();A(r,e[1],e[0]),A(s,t[1],t[0]),x(r,r,s),E(n,e[0],e[1]),E(s,t[0],t[1]),x(n,n,s),x(i,e[3],t[3]),x(i,i,te),x(u,e[2],t[2]),E(u,u,u),A(o,n,r),A(a,u,i),E(f,u,i),E(d,n,r),x(e[0],o,a),x(e[1],d,f),x(e[2],f,a),x(e[3],o,d)}function j(e,t,r){var n;for(n=0;n<4;n++)g(e[n],t[n],r)}function U(e,t){var r=G(),n=G(),i=G();M(i,t[2]),x(r,t[0],i),x(n,t[1],i),v(e,n),e[31]^=w(r)<<7}function L(e,t,r){var n,i;for(y(e[0],Z),y(e[1],$),y(e[2],$),y(e[3],Z),i=255;i>=0;--i)j(e,t,n=r[i/8|0]>>(7&i)&1),R(t,e),R(e,e),j(e,t,n)}function N(e,t){var r=[G(),G(),G(),G()];y(r[0],re),y(r[1],ne),y(r[2],$),x(r[3],re,ne),L(e,r,t)}function D(e,t,r){var n,i=new Uint8Array(64),u=[G(),G(),G(),G()];for(r||V(t,32),O(i,t,32),i[0]&=248,i[31]&=127,i[31]|=64,N(u,i),U(e,u),n=0;n<32;n++)t[n+32]=e[n];return 0}function F(e,t){var r,n,i,u;for(n=63;n>=32;--n){for(r=0,i=n-32,u=n-12;i<u;++i)t[i]+=r-16*t[n]*se[i-(n-32)],r=t[i]+128>>8,t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*se[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*se[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function z(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;F(e,r)}function q(e,t,r,n){var i,u,o=new Uint8Array(64),a=new Uint8Array(64),f=new Uint8Array(64),d=new Float64Array(64),s=[G(),G(),G(),G()];O(o,n,32),o[0]&=248,o[31]&=127,o[31]|=64;var c=r+64;for(i=0;i<r;i++)e[64+i]=t[i];for(i=0;i<32;i++)e[32+i]=o[32+i];for(O(f,e.subarray(32),r+32),z(f),N(s,f),U(e,s),i=32;i<64;i++)e[i]=n[i];for(O(a,e,r+64),z(a),i=0;i<64;i++)d[i]=0;for(i=0;i<32;i++)d[i]=f[i];for(i=0;i<32;i++)for(u=0;u<32;u++)d[i+u]+=a[i]*o[u];return F(e.subarray(32),d),c}function K(e,t,r,n){var i,o=new Uint8Array(32),a=new Uint8Array(64),f=[G(),G(),G(),G()],d=[G(),G(),G(),G()];if(r<64)return-1;if(function(e,t){var r=G(),n=G(),i=G(),u=G(),o=G(),a=G(),f=G();return y(e[2],$),S(e[1],t),k(i,e[1]),x(u,i,ee),A(i,i,e[2]),E(u,e[2],u),k(o,u),k(a,o),x(f,a,o),x(r,f,i),x(r,r,u),function(e,t){var r,n=G();for(r=0;r<16;r++)n[r]=t[r];for(r=250;r>=0;r--)k(n,n),1!==r&&x(n,n,t);for(r=0;r<16;r++)e[r]=n[r]}(r,r),x(r,r,i),x(r,r,u),x(r,r,u),x(e[0],r,u),k(n,e[0]),x(n,n,u),_(n,i)&&x(e[0],e[0],ie),k(n,e[0]),x(n,n,u),_(n,i)?-1:(w(e[0])===t[31]>>7&&A(e[0],Z,e[0]),x(e[3],e[0],e[1]),0)}(d,n))return-1;for(i=0;i<r;i++)e[i]=t[i];for(i=0;i<32;i++)e[i+32]=n[i];if(O(a,e,r),z(a),L(f,d,a),N(d,t.subarray(32)),R(f,d),U(o,f),r-=64,u(t,0,o,0)){for(i=0;i<r;i++)e[i]=0;return-1}for(i=0;i<r;i++)e[i]=t[i+64];return r}function Y(e,t){if(e.length!==ce)throw new Error("bad key size");if(t.length!==he)throw new Error("bad nonce size")}function H(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function J(e){for(var t=0;t<e.length;t++)e[t]=0}var G=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},V=function(){throw new Error("no PRNG")},W=new Uint8Array(16),X=new Uint8Array(32);X[0]=9;var Z=G(),$=G([1]),Q=G([56129,1]),ee=G([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),te=G([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),re=G([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),ne=G([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),ie=G([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]),ue=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]),oe=function(e){var t,r,n,i,u,o,a,f;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),u=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|u<<12),this.r[5]=u>>>1&8190,o=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(u>>>14|o<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(o>>>11|a<<5),f=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>8|f<<8),this.r[9]=f>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};oe.prototype.blocks=function(e,t,r){for(var n,i,u,o,a,f,d,s,c,h,l,p,b,y,m,g,v,_,w,S=this.fin?0:2048,E=this.h[0],A=this.h[1],x=this.h[2],k=this.h[3],M=this.h[4],I=this.h[5],T=this.h[6],B=this.h[7],P=this.h[8],C=this.h[9],O=this.r[0],R=this.r[1],j=this.r[2],U=this.r[3],L=this.r[4],N=this.r[5],D=this.r[6],F=this.r[7],z=this.r[8],q=this.r[9];r>=16;)E+=8191&(n=255&e[t+0]|(255&e[t+1])<<8),A+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3),x+=8191&(i>>>10|(u=255&e[t+4]|(255&e[t+5])<<8)<<6),k+=8191&(u>>>7|(o=255&e[t+6]|(255&e[t+7])<<8)<<9),M+=8191&(o>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12),I+=a>>>1&8191,T+=8191&(a>>>14|(f=255&e[t+10]|(255&e[t+11])<<8)<<2),B+=8191&(f>>>11|(d=255&e[t+12]|(255&e[t+13])<<8)<<5),s=255&e[t+14]|(255&e[t+15])<<8,h=c=0,h+=E*O,h+=A*(5*q),h+=x*(5*z),h+=k*(5*F),c=(h+=M*(5*D))>>>13,h&=8191,h+=I*(5*N),h+=T*(5*L),h+=B*(5*U),h+=(P+=8191&(d>>>8|s<<8))*(5*j),l=c+=(h+=(C+=s>>>5|S)*(5*R))>>>13,l+=E*R,l+=A*O,l+=x*(5*q),l+=k*(5*z),c=(l+=M*(5*F))>>>13,l&=8191,l+=I*(5*D),l+=T*(5*N),l+=B*(5*L),l+=P*(5*U),c+=(l+=C*(5*j))>>>13,l&=8191,p=c,p+=E*j,p+=A*R,p+=x*O,p+=k*(5*q),c=(p+=M*(5*z))>>>13,p&=8191,p+=I*(5*F),p+=T*(5*D),p+=B*(5*N),p+=P*(5*L),b=c+=(p+=C*(5*U))>>>13,b+=E*U,b+=A*j,b+=x*R,b+=k*O,c=(b+=M*(5*q))>>>13,b&=8191,b+=I*(5*z),b+=T*(5*F),b+=B*(5*D),b+=P*(5*N),y=c+=(b+=C*(5*L))>>>13,y+=E*L,y+=A*U,y+=x*j,y+=k*R,c=(y+=M*O)>>>13,y&=8191,y+=I*(5*q),y+=T*(5*z),y+=B*(5*F),y+=P*(5*D),m=c+=(y+=C*(5*N))>>>13,m+=E*N,m+=A*L,m+=x*U,m+=k*j,c=(m+=M*R)>>>13,m&=8191,m+=I*O,m+=T*(5*q),m+=B*(5*z),m+=P*(5*F),g=c+=(m+=C*(5*D))>>>13,g+=E*D,g+=A*N,g+=x*L,g+=k*U,c=(g+=M*j)>>>13,g&=8191,g+=I*R,g+=T*O,g+=B*(5*q),g+=P*(5*z),v=c+=(g+=C*(5*F))>>>13,v+=E*F,v+=A*D,v+=x*N,v+=k*L,c=(v+=M*U)>>>13,v&=8191,v+=I*j,v+=T*R,v+=B*O,v+=P*(5*q),_=c+=(v+=C*(5*z))>>>13,_+=E*z,_+=A*F,_+=x*D,_+=k*N,c=(_+=M*L)>>>13,_&=8191,_+=I*U,_+=T*j,_+=B*R,_+=P*O,w=c+=(_+=C*(5*q))>>>13,w+=E*q,w+=A*z,w+=x*F,w+=k*D,c=(w+=M*N)>>>13,w&=8191,w+=I*L,w+=T*U,w+=B*j,w+=P*R,E=h=8191&(c=(c=((c+=(w+=C*O)>>>13)<<2)+c|0)+(h&=8191)|0),A=l+=c>>>=13,x=p&=8191,k=b&=8191,M=y&=8191,I=m&=8191,T=g&=8191,B=v&=8191,P=_&=8191,C=w&=8191,t+=16,r-=16;this.h[0]=E,this.h[1]=A,this.h[2]=x,this.h[3]=k,this.h[4]=M,this.h[5]=I,this.h[6]=T,this.h[7]=B,this.h[8]=P,this.h[9]=C},oe.prototype.finish=function(e,t){var r,n,i,u,o=new Uint16Array(10);if(this.leftover){for(u=this.leftover,this.buffer[u++]=1;u<16;u++)this.buffer[u]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,u=2;u<10;u++)this.h[u]+=r,r=this.h[u]>>>13,this.h[u]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,o[0]=this.h[0]+5,r=o[0]>>>13,o[0]&=8191,u=1;u<10;u++)o[u]=this.h[u]+r,r=o[u]>>>13,o[u]&=8191;for(o[9]-=8192,n=(1^r)-1,u=0;u<10;u++)o[u]&=n;for(n=~n,u=0;u<10;u++)this.h[u]=this.h[u]&n|o[u];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,u=1;u<8;u++)i=(this.h[u]+this.pad[u]|0)+(i>>>16)|0,this.h[u]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},oe.prototype.update=function(e,t,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=e[t+n];if(r-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=e[t+n];this.leftover+=r}};var ae=p,fe=b,de=[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],se=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),ce=32,he=24,le=he;e.lowlevel={crypto_core_hsalsa20:a,crypto_stream_xor:c,crypto_stream:s,crypto_stream_salsa20_xor:f,crypto_stream_salsa20:d,crypto_onetimeauth:h,crypto_onetimeauth_verify:l,crypto_verify_16:i,crypto_verify_32:u,crypto_secretbox:p,crypto_secretbox_open:b,crypto_scalarmult:I,crypto_scalarmult_base:T,crypto_box_beforenm:P,crypto_box_afternm:ae,crypto_box:function(e,t,r,n,i,u){var o=new Uint8Array(32);return P(o,i,u),ae(e,t,r,n,o)},crypto_box_open:function(e,t,r,n,i,u){var o=new Uint8Array(32);return P(o,i,u),fe(e,t,r,n,o)},crypto_box_keypair:B,crypto_hash:O,crypto_sign:q,crypto_sign_keypair:D,crypto_sign_open:K,crypto_secretbox_KEYBYTES:ce,crypto_secretbox_NONCEBYTES:he,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:le,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:64,crypto_sign_PUBLICKEYBYTES:32,crypto_sign_SECRETKEYBYTES:64,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64},e.randomBytes=function(e){var t=new Uint8Array(e);return V(t,e),t},e.secretbox=function(e,t,r){H(e,t,r),Y(r,t);for(var n=new Uint8Array(32+e.length),i=new Uint8Array(n.length),u=0;u<e.length;u++)n[u+32]=e[u];return p(i,n,n.length,t,r),i.subarray(16)},e.secretbox.open=function(e,t,r){H(e,t,r),Y(r,t);for(var n=new Uint8Array(16+e.length),i=new Uint8Array(n.length),u=0;u<e.length;u++)n[u+16]=e[u];return n.length<32?null:0!==b(i,n,n.length,t,r)?null:i.subarray(32)},e.secretbox.keyLength=ce,e.secretbox.nonceLength=he,e.secretbox.overheadLength=16,e.scalarMult=function(e,t){if(H(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var r=new Uint8Array(32);return I(r,e,t),r},e.scalarMult.base=function(e){if(H(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return T(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,r,n,i){var u=e.box.before(n,i);return e.secretbox(t,r,u)},e.box.before=function(e,t){H(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var r=new Uint8Array(32);return P(r,e,t),r},e.box.after=e.secretbox,e.box.open=function(t,r,n,i){var u=e.box.before(n,i);return e.secretbox.open(t,r,u)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return B(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(H(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return T(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=le,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(H(e,t),64!==t.length)throw new Error("bad secret key size");var r=new Uint8Array(64+e.length);return q(r,e,e.length,t),r},e.sign.open=function(e,t){if(H(e,t),32!==t.length)throw new Error("bad public key size");var r=new Uint8Array(e.length),n=K(r,e,e.length,t);if(n<0)return null;for(var i=new Uint8Array(n),u=0;u<i.length;u++)i[u]=r[u];return i},e.sign.detached=function(t,r){for(var n=e.sign(t,r),i=new Uint8Array(64),u=0;u<i.length;u++)i[u]=n[u];return i},e.sign.detached.verify=function(e,t,r){if(H(e,t,r),64!==t.length)throw new Error("bad signature size");if(32!==r.length)throw new Error("bad public key size");var n,i=new Uint8Array(64+e.length),u=new Uint8Array(64+e.length);for(n=0;n<64;n++)i[n]=t[n];for(n=0;n<e.length;n++)i[n+64]=e[n];return K(u,i,i.length,r)>=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return D(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(H(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),r=0;r<t.length;r++)t[r]=e[32+r];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(H(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(32),r=new Uint8Array(64),n=0;n<32;n++)r[n]=e[n];return D(t,r,!0),{publicKey:t,secretKey:r}},e.sign.publicKeyLength=32,e.sign.secretKeyLength=64,e.sign.seedLength=32,e.sign.signatureLength=64,e.hash=function(e){H(e);var t=new Uint8Array(64);return O(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return H(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===n(e,0,t,0,e.length)},e.setPRNG=function(e){V=e},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&t.getRandomValues?e.setPRNG(function(e,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)t.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)e[n]=i[n];J(i)}):(t=r(192))&&t.randomBytes&&e.setPRNG(function(e,r){var n,i=t.randomBytes(r);for(n=0;n<r;n++)e[n]=i[n];J(i)})}()}(void 0!==e&&e.exports?e.exports:self.nacl=self.nacl||{})},function(e,t){},function(e,t,r){e.exports=r(194)("ed25519")},function(e,t,r){(function(n,i){var u=r(195),o=r(196),a=o.join,f=o.dirname,d=u.accessSync&&function(e){try{u.accessSync(e)}catch(e){return!1}return!0}||u.existsSync||o.existsSync,s={arrow:n.env.NODE_BINDINGS_ARROW||" → ",compiled:n.env.NODE_BINDINGS_COMPILED_DIR||"compiled",platform:n.platform,arch:n.arch,version:n.versions.node,bindings:"bindings.node",try:[["module_root","build","bindings"],["module_root","build","Debug","bindings"],["module_root","build","Release","bindings"],["module_root","out","Debug","bindings"],["module_root","Debug","bindings"],["module_root","out","Release","bindings"],["module_root","Release","bindings"],["module_root","build","default","bindings"],["module_root","compiled","version","platform","arch","bindings"]]};e.exports=t=function(e){"string"==typeof e?e={bindings:e}:e||(e={}),Object.keys(s).map(function(t){t in e||(e[t]=s[t])}),e.module_root||(e.module_root=t.getRoot(t.getFileName())),".node"!=o.extname(e.bindings)&&(e.bindings+=".node");for(var r,n,i,u=[],f=0,d=e.try.length;f<d;f++){r=a.apply(null,e.try[f].map(function(t){return e[t]||t})),u.push(r);try{return e.path,n=!function(){var e=new Error('Cannot find module "."');throw e.code="MODULE_NOT_FOUND",e}(),e.path||(n.path=r),n}catch(e){if(!/not find/i.test(e.message))throw e}}throw(i=new Error("Could not locate the bindings file. Tried:\n"+u.map(function(t){return e.arrow+t}).join("\n"))).tries=u,i},t.getFileName=function(e){var t,r=Error.prepareStackTrace,n=Error.stackTraceLimit;return Error.stackTraceLimit=10,Error.prepareStackTrace=function(r,n){for(var u=0,o=n.length;u<o;u++)if((t=n[u].getFileName())!==i){if(!e)return;if(t!==e)return}},Error.captureStackTrace({}),Error.prepareStackTrace=r,Error.stackTraceLimit=n,t},t.getRoot=function(e){for(var t,r=f(e);;){if("."===r&&(r=n.cwd()),d(a(r,"package.json"))||d(a(r,"node_modules")))return r;if(t===r)throw new Error('Could not find module root given file: "'+e+'". Do you have a `package.json` file? ');t=r,r=a(r,"..")}}}).call(t,r(6),"/index.js")},function(e,t){},function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,u=function(e){return i.exec(e).slice(1)};t.resolve=function(){for(var t="",i=!1,u=arguments.length-1;u>=-1&&!i;u--){var o=u>=0?arguments[u]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,i="/"===o.charAt(0))}return t=r(n(t.split("/"),function(e){return!!e}),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),u="/"===o(e,-1);return(e=r(n(e.split("/"),function(e){return!!e}),!i).join("/"))||i||(e="."),e&&u&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),u=n(r.split("/")),o=Math.min(i.length,u.length),a=o,f=0;f<o;f++)if(i[f]!==u[f]){a=f;break}var d=[];for(f=a;f<i.length;f++)d.push("..");return(d=d.concat(u.slice(a))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=u(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},t.basename=function(e,t){var r=u(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){return u(e)[3]};var o="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(t,r(6))}])}()}).call(this,__webpack_require__(10).setImmediate,__webpack_require__(10).clearImmediate)},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){var n=r(4),i=r(54),u=r(53);e.exports=function(e){return function(t,r,o){var a,f=n(t),d=i(f.length),s=u(o,d);if(e&&r!=r){for(;d>s;)if((a=f[s++])!=a)return!0}else for(;d>s;s++)if((e||s in f)&&f[s]===r)return e||s||0;return!e&&-1}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(7),i=r(1),u=r(69),o=r(67),a=r(14),f=function(e,t,r){var d,s,c,h=e&f.F,l=e&f.G,p=e&f.S,b=e&f.P,y=e&f.B,m=e&f.W,g=l?i:i[t]||(i[t]={}),v=g.prototype,_=l?n:p?n[t]:(n[t]||{}).prototype;for(d in l&&(r=t),r)(s=!h&&_&&void 0!==_[d])&&a(g,d)||(c=s?_[d]:r[d],g[d]=l&&"function"!=typeof _[d]?r[d]:y&&s?u(c,n):m&&_[d]==c?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):b&&"function"==typeof c?u(Function.call,c):c,b&&((g.virtual||(g.virtual={}))[d]=c,e&f.R&&v&&!v[d]&&o(v,d,c)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,e.exports=f},function(e,t,r){r(70),e.exports=r(1).Object.entries},function(e,t,r){var n;!function(){"use strict";var i={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};function u(e){return function(e,t){var r,n,o,a,f,d,s,c,h,l=1,p=e.length,b="";for(n=0;n<p;n++)if("string"==typeof e[n])b+=e[n];else if(Array.isArray(e[n])){if((a=e[n])[2])for(r=t[l],o=0;o<a[2].length;o++){if(!r.hasOwnProperty(a[2][o]))throw new Error(u('[sprintf] property "%s" does not exist',a[2][o]));r=r[a[2][o]]}else r=a[1]?t[a[1]]:t[l++];if(i.not_type.test(a[8])&&i.not_primitive.test(a[8])&&r instanceof Function&&(r=r()),i.numeric_arg.test(a[8])&&"number"!=typeof r&&isNaN(r))throw new TypeError(u("[sprintf] expecting number but found %T",r));switch(i.number.test(a[8])&&(c=r>=0),a[8]){case"b":r=parseInt(r,10).toString(2);break;case"c":r=String.fromCharCode(parseInt(r,10));break;case"d":case"i":r=parseInt(r,10);break;case"j":r=JSON.stringify(r,null,a[6]?parseInt(a[6]):0);break;case"e":r=a[7]?parseFloat(r).toExponential(a[7]):parseFloat(r).toExponential();break;case"f":r=a[7]?parseFloat(r).toFixed(a[7]):parseFloat(r);break;case"g":r=a[7]?String(Number(r.toPrecision(a[7]))):parseFloat(r);break;case"o":r=(parseInt(r,10)>>>0).toString(8);break;case"s":r=String(r),r=a[7]?r.substring(0,a[7]):r;break;case"t":r=String(!!r),r=a[7]?r.substring(0,a[7]):r;break;case"T":r=Object.prototype.toString.call(r).slice(8,-1).toLowerCase(),r=a[7]?r.substring(0,a[7]):r;break;case"u":r=parseInt(r,10)>>>0;break;case"v":r=r.valueOf(),r=a[7]?r.substring(0,a[7]):r;break;case"x":r=(parseInt(r,10)>>>0).toString(16);break;case"X":r=(parseInt(r,10)>>>0).toString(16).toUpperCase()}i.json.test(a[8])?b+=r:(!i.number.test(a[8])||c&&!a[3]?h="":(h=c?"+":"-",r=r.toString().replace(i.sign,"")),d=a[4]?"0"===a[4]?"0":a[4].charAt(1):" ",s=a[6]-(h+r).length,f=a[6]&&s>0?d.repeat(s):"",b+=a[5]?h+r+f:"0"===d?h+f+r:f+h+r)}return b}(function(e){if(a[e])return a[e];for(var t,r=e,n=[],u=0;r;){if(null!==(t=i.text.exec(r)))n.push(t[0]);else if(null!==(t=i.modulo.exec(r)))n.push("%");else{if(null===(t=i.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){u|=1;var o=[],f=t[2],d=[];if(null===(d=i.key.exec(f)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(o.push(d[1]);""!==(f=f.substring(d[0].length));)if(null!==(d=i.key_access.exec(f)))o.push(d[1]);else{if(null===(d=i.index_access.exec(f)))throw new SyntaxError("[sprintf] failed to parse named argument key");o.push(d[1])}t[2]=o}else u|=2;if(3===u)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");n.push(t)}r=r.substring(t[0].length)}return a[e]=n}(e),arguments)}function o(e,t){return u.apply(null,[e].concat(t||[]))}var a=Object.create(null);t.sprintf=u,t.vsprintf=o,"undefined"!=typeof window&&(window.sprintf=u,window.vsprintf=o,void 0===(n=function(){return{sprintf:u,vsprintf:o}}.call(t,r,t,e))||(e.exports=n))}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){if("hash"in t){var r=new u.default.Condition;return r.type=t.type_id,r.bitmask=t.bitmask,r.hash=n.Buffer.from(i.default.decode(t.hash)),r.maxFulfillmentLength=parseInt(t.max_fulfillment_length,10),r}var o=void 0;return"threshold-sha-256"===t.type&&((o=new u.default.ThresholdSha256).threshold=t.threshold,t.subconditions.forEach(function(t){var r=e(t);"getConditionUri"in r?o.addSubfulfillment(r):"serializeUri"in r&&o.addSubcondition(r)})),"ed25519-sha-256"===t.type&&((o=new u.default.Ed25519Sha256).publicKey=n.Buffer.from(i.default.decode(t.public_key))),o};var n=r(2),i=o(r(3)),u=o(r(11));function o(e){return e&&e.__esModule?e:{default:e}}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,r){(function(n,i){var u;
  /**
   * [js-sha3]{@link https://github.com/emn178/js-sha3}
   *
   * @version 0.7.0
   * @author Chen, Yi-Cyuan [emn178@gmail.com]
   * @copyright Chen, Yi-Cyuan 2015-2017
   * @license MIT
   */
  /**
   * [js-sha3]{@link https://github.com/emn178/js-sha3}
   *
   * @version 0.7.0
   * @author Chen, Yi-Cyuan [emn178@gmail.com]
   * @copyright Chen, Yi-Cyuan 2015-2017
   * @license MIT
   */!function(){"use strict";var o="input is invalid type",a="object"==typeof window,f=a?window:{};f.JS_SHA3_NO_WINDOW&&(a=!1);var d=!a&&"object"==typeof self;!f.JS_SHA3_NO_NODE_JS&&"object"==typeof n&&n.versions&&n.versions.node?f=i:d&&(f=self);var s=!f.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,c=r(20),h=!f.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,l="0123456789abcdef".split(""),p=[4,1024,262144,67108864],b=[0,8,16,24],y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],m=[224,256,384,512],g=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],_={128:168,256:136};!f.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!h||!f.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,r){return function(n){return new U(e,t,e).update(n)[r]()}},S=function(e,t,r){return function(n,i){return new U(e,t,i).update(n)[r]()}},E=function(e,t,r){return function(t,n,i,u){return I["cshake"+e].update(t,n,i,u)[r]()}},A=function(e,t,r){return function(t,n,i,u){return I["kmac"+e].update(t,n,i,u)[r]()}},x=function(e,t,r,n){for(var i=0;i<v.length;++i){var u=v[i];e[u]=t(r,n,u)}return e},k=function(e,t){var r=w(e,t,"hex");return r.create=function(){return new U(e,t,e)},r.update=function(e){return r.create().update(e)},x(r,w,e,t)},M=[{name:"keccak",padding:[1,256,65536,16777216],bits:m,createMethod:k},{name:"sha3",padding:[6,1536,393216,100663296],bits:m,createMethod:k},{name:"shake",padding:[31,7936,2031616,520093696],bits:g,createMethod:function(e,t){var r=S(e,t,"hex");return r.create=function(r){return new U(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},x(r,S,e,t)}},{name:"cshake",padding:p,bits:g,createMethod:function(e,t){var r=_[e],n=E(e,0,"hex");return n.create=function(n,i,u){return i||u?new U(e,t,n).bytepad([i,u],r):I["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},x(n,E,e,t)}},{name:"kmac",padding:p,bits:g,createMethod:function(e,t){var r=_[e],n=A(e,0,"hex");return n.create=function(n,i,u){return new L(e,t,i).bytepad(["KMAC",u],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},x(n,A,e,t)}}],I={},T=[],B=0;B<M.length;++B)for(var P=M[B],C=P.bits,O=0;O<C.length;++O){var R=P.name+"_"+C[O];if(T.push(R),I[R]=P.createMethod(C[O],P.padding),"sha3"!==P.name){var j=P.name+C[O];T.push(j),I[j]=I[R]}}function U(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function L(e,t,r){U.call(this,e,t,r)}U.prototype.update=function(e){if(!this.finalized){var t,r=typeof e;if("string"!==r){if("object"!==r)throw o;if(null===e)throw o;if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw o;t=!0}for(var n,i,u=this.blocks,a=this.byteCount,f=e.length,d=this.blockCount,s=0,c=this.s;s<f;){if(this.reset)for(this.reset=!1,u[0]=this.block,n=1;n<d+1;++n)u[n]=0;if(t)for(n=this.start;s<f&&n<a;++s)u[n>>2]|=e[s]<<b[3&n++];else for(n=this.start;s<f&&n<a;++s)(i=e.charCodeAt(s))<128?u[n>>2]|=i<<b[3&n++]:i<2048?(u[n>>2]|=(192|i>>6)<<b[3&n++],u[n>>2]|=(128|63&i)<<b[3&n++]):i<55296||i>=57344?(u[n>>2]|=(224|i>>12)<<b[3&n++],u[n>>2]|=(128|i>>6&63)<<b[3&n++],u[n>>2]|=(128|63&i)<<b[3&n++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++s)),u[n>>2]|=(240|i>>18)<<b[3&n++],u[n>>2]|=(128|i>>12&63)<<b[3&n++],u[n>>2]|=(128|i>>6&63)<<b[3&n++],u[n>>2]|=(128|63&i)<<b[3&n++]);if(this.lastByteIndex=n,n>=a){for(this.start=n-a,this.block=u[d],n=0;n<d;++n)c[n]^=u[n];N(c),this.reset=!0}else this.start=n}return this}},U.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(r=255&(e>>=8);r>0;)i.unshift(r),r=255&(e>>=8),++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},U.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"!==r)throw o;if(null===e)throw o;if(h&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||h&&ArrayBuffer.isView(e)))throw o;t=!0}var n=0,i=e.length;if(t)n=i;else for(var u=0;u<e.length;++u){var a=e.charCodeAt(u);a<128?n+=1:a<2048?n+=2:a<55296||a>=57344?n+=3:(a=65536+((1023&a)<<10|1023&e.charCodeAt(++u)),n+=4)}return n+=this.encode(8*n),this.update(e),n},U.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=t-r%t,u=[];return u.length=i,this.update(u),this},U.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];N(n)}},U.prototype.toString=U.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,u=0,o=0,a="";o<n;){for(u=0;u<t&&o<n;++u,++o)e=r[u],a+=l[e>>4&15]+l[15&e]+l[e>>12&15]+l[e>>8&15]+l[e>>20&15]+l[e>>16&15]+l[e>>28&15]+l[e>>24&15];o%t==0&&(N(r),u=0)}return i&&(e=r[u],a+=l[e>>4&15]+l[15&e],i>1&&(a+=l[e>>12&15]+l[e>>8&15]),i>2&&(a+=l[e>>20&15]+l[e>>16&15])),a},U.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,u=0,o=0,a=this.outputBits>>3;e=i?new ArrayBuffer(n+1<<2):new ArrayBuffer(a);for(var f=new Uint32Array(e);o<n;){for(u=0;u<t&&o<n;++u,++o)f[o]=r[u];o%t==0&&N(r)}return i&&(f[u]=r[u],e=e.slice(0,a)),e},U.prototype.buffer=U.prototype.arrayBuffer,U.prototype.digest=U.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,u=this.extraBytes,o=0,a=0,f=[];a<i;){for(o=0;o<r&&a<i;++o,++a)e=a<<2,t=n[o],f[e]=255&t,f[e+1]=t>>8&255,f[e+2]=t>>16&255,f[e+3]=t>>24&255;a%r==0&&N(n)}return u&&(e=a<<2,t=n[o],f[e]=255&t,u>1&&(f[e+1]=t>>8&255),u>2&&(f[e+2]=t>>16&255)),f},L.prototype=new U,L.prototype.finalize=function(){return this.encode(this.outputBits,!0),U.prototype.finalize.call(this)};var N=function(e){var t,r,n,i,u,o,a,f,d,s,c,h,l,p,b,m,g,v,_,w,S,E,A,x,k,M,I,T,B,P,C,O,R,j,U,L,N,D,F,z,q,K,Y,H,J,G,V,W,X,Z,$,Q,ee,te,re,ne,ie,ue,oe,ae,fe,de,se;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],u=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],f=e[4]^e[14]^e[24]^e[34]^e[44],d=e[5]^e[15]^e[25]^e[35]^e[45],s=e[6]^e[16]^e[26]^e[36]^e[46],c=e[7]^e[17]^e[27]^e[37]^e[47],t=(h=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|a>>>31),r=(l=e[9]^e[19]^e[29]^e[39]^e[49])^(a<<1|o>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(f<<1|d>>>31),r=u^(d<<1|f>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=o^(s<<1|c>>>31),r=a^(c<<1|s>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=f^(h<<1|l>>>31),r=d^(l<<1|h>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=s^(i<<1|u>>>31),r=c^(u<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],b=e[1],G=e[11]<<4|e[10]>>>28,V=e[10]<<4|e[11]>>>28,T=e[20]<<3|e[21]>>>29,B=e[21]<<3|e[20]>>>29,ae=e[31]<<9|e[30]>>>23,fe=e[30]<<9|e[31]>>>23,K=e[40]<<18|e[41]>>>14,Y=e[41]<<18|e[40]>>>14,j=e[2]<<1|e[3]>>>31,U=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,W=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,de=e[42]<<2|e[43]>>>30,se=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,N=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,_=e[24]<<11|e[25]>>>21,Z=e[34]<<15|e[35]>>>17,$=e[35]<<15|e[34]>>>17,O=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,x=e[6]<<28|e[7]>>>4,k=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,D=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,S=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,H=e[8]<<27|e[9]>>>5,J=e[9]<<27|e[8]>>>5,M=e[18]<<20|e[19]>>>12,I=e[19]<<20|e[18]>>>12,ue=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,z=e[38]<<8|e[39]>>>24,q=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,A=e[49]<<14|e[48]>>>18,e[0]=p^~m&v,e[1]=b^~g&_,e[10]=x^~M&T,e[11]=k^~I&B,e[20]=j^~L&D,e[21]=U^~N&F,e[30]=H^~G&W,e[31]=J^~V&X,e[40]=te^~ne&ue,e[41]=re^~ie&oe,e[2]=m^~v&w,e[3]=g^~_&S,e[12]=M^~T&P,e[13]=I^~B&C,e[22]=L^~D&z,e[23]=N^~F&q,e[32]=G^~W&Z,e[33]=V^~X&$,e[42]=ne^~ue&ae,e[43]=ie^~oe&fe,e[4]=v^~w&E,e[5]=_^~S&A,e[14]=T^~P&O,e[15]=B^~C&R,e[24]=D^~z&K,e[25]=F^~q&Y,e[34]=W^~Z&Q,e[35]=X^~$&ee,e[44]=ue^~ae&de,e[45]=oe^~fe&se,e[6]=w^~E&p,e[7]=S^~A&b,e[16]=P^~O&x,e[17]=C^~R&k,e[26]=z^~K&j,e[27]=q^~Y&U,e[36]=Z^~Q&H,e[37]=$^~ee&J,e[46]=ae^~de&te,e[47]=fe^~se&re,e[8]=E^~p&m,e[9]=A^~b&g,e[18]=O^~x&M,e[19]=R^~k&I,e[28]=K^~j&L,e[29]=Y^~U&N,e[38]=Q^~H&G,e[39]=ee^~J&V,e[48]=de^~te&ne,e[49]=se^~re&ie,e[0]^=y[n],e[1]^=y[n+1]};if(s)e.exports=I;else{for(B=0;B<T.length;++B)f[T[B]]=I[T[B]];c&&(void 0===(u=function(){return I}.call(t,r,t,e))||(e.exports=u))}}()}).call(this,r(8),r(0))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return n.default.sha3_256.create().update(e).hex()};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(21))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i=1,u={},o=!1,a=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick(function(){s(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}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&s(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){s(e.data)},n=function(t){e.port2.postMessage(t)}}():a&&"onreadystatechange"in a.createElement("script")?function(){var e=a.documentElement;n=function(t){var r=a.createElement("script");r.onreadystatechange=function(){s(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():n=function(e){setTimeout(s,0,e)},f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return u[i]=o,n(i),i++},f.clearImmediate=d}function d(e){delete u[e]}function s(e){if(o)setTimeout(s,0,e);else{var t=u[e];if(t){o=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}(t)}finally{d(e),o=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(0),r(8))},function(e,t,r){(function(t){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var r,n,i;try{r=Map}catch(e){r=function(){}}try{n=Set}catch(e){n=function(){}}try{i=Promise}catch(e){i=function(){}}function u(o,f,d,s,c){"object"==typeof f&&(d=f.depth,s=f.prototype,c=f.includeNonEnumerable,f=f.circular);var h=[],l=[],p=void 0!==t;return void 0===f&&(f=!0),void 0===d&&(d=1/0),function o(d,b){if(null===d)return null;if(0===b)return d;var y,m;if("object"!=typeof d)return d;if(e(d,r))y=new r;else if(e(d,n))y=new n;else if(e(d,i))y=new i(function(e,t){d.then(function(t){e(o(t,b-1))},function(e){t(o(e,b-1))})});else if(u.__isArray(d))y=[];else if(u.__isRegExp(d))y=new RegExp(d.source,a(d)),d.lastIndex&&(y.lastIndex=d.lastIndex);else if(u.__isDate(d))y=new Date(d.getTime());else{if(p&&t.isBuffer(d))return y=new t(d.length),d.copy(y),y;e(d,Error)?y=Object.create(d):void 0===s?(m=Object.getPrototypeOf(d),y=Object.create(m)):(y=Object.create(s),m=s)}if(f){var g=h.indexOf(d);if(-1!=g)return l[g];h.push(d),l.push(y)}for(var v in e(d,r)&&d.forEach(function(e,t){var r=o(t,b-1),n=o(e,b-1);y.set(r,n)}),e(d,n)&&d.forEach(function(e){var t=o(e,b-1);y.add(t)}),d){var _;m&&(_=Object.getOwnPropertyDescriptor(m,v)),_&&null==_.set||(y[v]=o(d[v],b-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(d);for(v=0;v<w.length;v++){var S=w[v];(!(A=Object.getOwnPropertyDescriptor(d,S))||A.enumerable||c)&&(y[S]=o(d[S],b-1),A.enumerable||Object.defineProperty(y,S,{enumerable:!1}))}}if(c){var E=Object.getOwnPropertyNames(d);for(v=0;v<E.length;v++){var A,x=E[v];(A=Object.getOwnPropertyDescriptor(d,x))&&A.enumerable||(y[x]=o(d[x],b-1),Object.defineProperty(y,x,{enumerable:!1}))}}return y}(o,d)}function o(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return u.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},u.__objToStr=o,u.__isDate=function(e){return"object"==typeof e&&"[object Date]"===o(e)},u.__isArray=function(e){return"object"==typeof e&&"[object Array]"===o(e)},u.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===o(e)},u.__getRegExpFlags=a,u}();"object"==typeof e&&e.exports&&(e.exports=r)}).call(this,r(2).Buffer)},function(e,t){var r,n,i,u=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function a(e){return u.lastIndex=0,u.test(e)?'"'+e.replace(u,function(e){var t=o[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}e.exports=function(e,t,u){var o;if(r="",n="","number"==typeof u)for(o=0;o<u;o+=1)n+=" ";else"string"==typeof u&&(n=u);if(i=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return function e(t,u){var o,f,d,s,c,h=r,l=u[t];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(t)),"function"==typeof i&&(l=i.call(u,t,l)),typeof l){case"string":return a(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(r+=n,c=[],"[object Array]"===Object.prototype.toString.apply(l)){for(s=l.length,o=0;o<s;o+=1)c[o]=e(o,l)||"null";return d=0===c.length?"[]":r?"[\n"+r+c.join(",\n"+r)+"\n"+h+"]":"["+c.join(",")+"]",r=h,d}if(i&&"object"==typeof i)for(s=i.length,o=0;o<s;o+=1)"string"==typeof(f=i[o])&&(d=e(f,l))&&c.push(a(f)+(r?": ":":")+d);else for(f in l)Object.prototype.hasOwnProperty.call(l,f)&&(d=e(f,l))&&c.push(a(f)+(r?": ":":")+d);return d=0===c.length?"{}":r?"{\n"+r+c.join(",\n"+r)+"\n"+h+"}":"{"+c.join(",")+"}",r=h,d}}("",{"":e})}},function(e,t){var r,n,i,u,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},a=function(e){throw{name:"SyntaxError",message:e,at:r,text:i}},f=function(e){return e&&e!==n&&a("Expected '"+e+"' instead of '"+n+"'"),n=i.charAt(r),r+=1,n},d=function(){var e,t="";for("-"===n&&(t="-",f("-"));n>="0"&&n<="9";)t+=n,f();if("."===n)for(t+=".";f()&&n>="0"&&n<="9";)t+=n;if("e"===n||"E"===n)for(t+=n,f(),"-"!==n&&"+"!==n||(t+=n,f());n>="0"&&n<="9";)t+=n,f();if(e=+t,isFinite(e))return e;a("Bad number")},s=function(){var e,t,r,i="";if('"'===n)for(;f();){if('"'===n)return f(),i;if("\\"===n)if(f(),"u"===n){for(r=0,t=0;t<4&&(e=parseInt(f(),16),isFinite(e));t+=1)r=16*r+e;i+=String.fromCharCode(r)}else{if("string"!=typeof o[n])break;i+=o[n]}else i+=n}a("Bad string")},c=function(){for(;n&&n<=" ";)f()};u=function(){switch(c(),n){case"{":return function(){var e,t={};if("{"===n){if(f("{"),c(),"}"===n)return f("}"),t;for(;n;){if(e=s(),c(),f(":"),Object.hasOwnProperty.call(t,e)&&a('Duplicate key "'+e+'"'),t[e]=u(),c(),"}"===n)return f("}"),t;f(","),c()}}a("Bad object")}();case"[":return function(){var e=[];if("["===n){if(f("["),c(),"]"===n)return f("]"),e;for(;n;){if(e.push(u()),c(),"]"===n)return f("]"),e;f(","),c()}}a("Bad array")}();case'"':return s();case"-":return d();default:return n>="0"&&n<="9"?d():function(){switch(n){case"t":return f("t"),f("r"),f("u"),f("e"),!0;case"f":return f("f"),f("a"),f("l"),f("s"),f("e"),!1;case"n":return f("n"),f("u"),f("l"),f("l"),null}a("Unexpected '"+n+"'")}()}},e.exports=function(e,t){var o;return i=e,r=0,n=" ",o=u(),c(),n&&a("Syntax error"),"function"==typeof t?function e(r,n){var i,u,o=r[n];if(o&&"object"==typeof o)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(void 0!==(u=e(o,i))?o[i]=u:delete o[i]);return t.call(r,n,o)}({"":o},""):o}},function(e,t,r){t.parse=r(26),t.stringify=r(25)},function(e,t,r){var n="undefined"!=typeof JSON?JSON:r(27);e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r=t.space||"";"number"==typeof r&&(r=Array(r+1).join(" "));var o="boolean"==typeof t.cycles&&t.cycles,a=t.replacer||function(e,t){return t},f=t.cmp&&function(e){return function(t){return function(r,n){var i={key:r,value:t[r]},u={key:n,value:t[n]};return e(i,u)}}}(t.cmp),d=[];return function e(t,s,c,h){var l=r?"\n"+new Array(h+1).join(r):"",p=r?": ":":";if(c&&c.toJSON&&"function"==typeof c.toJSON&&(c=c.toJSON()),void 0!==(c=a.call(t,s,c))){if("object"!=typeof c||null===c)return n.stringify(c);if(i(c)){for(var b=[],y=0;y<c.length;y++){var m=e(c,y,c[y],h+1)||n.stringify(null);b.push(l+r+m)}return"["+b.join(",")+l+"]"}if(-1!==d.indexOf(c)){if(o)return n.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}d.push(c);var g=u(c).sort(f&&f(c));for(b=[],y=0;y<g.length;y++){var v=e(c,s=g[y],c[s],h+1);if(v){var _=n.stringify(s)+p+v;b.push(l+r+_)}}return d.splice(d.indexOf(c),1),"{"+b.join(",")+l+"}"}}({"":e},"",e,0)};var i=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},u=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},r=[];for(var n in e)t.call(e,n)&&r.push(n);return r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),i=r(2),u=c(r(28)),o=c(r(24)),a=c(r(3)),f=c(r(11)),d=c(r(9)),s=c(r(22));function c(e){return e&&e.__esModule?e:{default:e}}var h=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,null,[{key:"serializeTransactionIntoCanonicalString",value:function(e){var t=(0,o.default)(e);return(0,u.default)(t,function(e,t){return e.key>t.key?1:-1})}},{key:"makeInputTemplate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{fulfillment:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,fulfills:t,owners_before:e}}},{key:"makeTransactionTemplate",value:function(){return{id:null,operation:null,outputs:[],inputs:[],metadata:null,asset:null,version:"2.0"}}},{key:"makeTransaction",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=e.makeTransactionTemplate();return o.operation=t,o.asset=r,o.metadata=n,o.inputs=u,o.outputs=i,o}},{key:"makeCreateTransaction",value:function(t,r,n){for(var i={data:t||null},u=arguments.length,o=Array(u>3?u-3:0),a=3;a<u;a++)o[a-3]=arguments[a];var f=o.map(function(t){return e.makeInputTemplate([t])});return e.makeTransaction("CREATE",i,r,n,f)}},{key:"makeEd25519Condition",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=i.Buffer.from(a.default.decode(e)),n=new f.default.Ed25519Sha256;return n.setPublicKey(r),t?(0,d.default)(n):n}},{key:"makeOutput",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1";if("string"!=typeof t)throw new TypeError("`amount` must be of type string");var r=[];return function e(t){"ed25519-sha-256"===t.type?r.includes(t.public_key)||r.push(t.public_key):"threshold-sha-256"===t.type&&t.subconditions.map(e)}(e.details),{condition:e,amount:t,public_keys:r}}},{key:"makeSha256Condition",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=new f.default.PreimageSha256;return r.preimage=i.Buffer.from(e),t?(0,d.default)(r):r}},{key:"makeThresholdCondition",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=new f.default.ThresholdSha256;return n.threshold=e,t.forEach(function(e){n.addSubfulfillment(e)}),r?(0,d.default)(n):n}},{key:"makeTransferTransaction",value:function(t,r,n){var i=t.map(function(t){var r={tx:t.tx,outputIndex:t.output_index},n=r.tx,i=r.outputIndex,u=n.outputs[i],o={output_index:i,transaction_id:n.id};return e.makeInputTemplate(u.public_keys,o)}),u={id:"CREATE"===t[0].tx.operation?t[0].tx.id:t[0].tx.asset.id};return e.makeTransaction("TRANSFER",u,n,r,i)}},{key:"signTransaction",value:function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),u=1;u<r;u++)n[u-1]=arguments[u];var d=(0,o.default)(t),c=e.serializeTransactionIntoCanonicalString(t);d.inputs.forEach(function(e,t){var r=n[t],u=i.Buffer.from(a.default.decode(r)),o=e.fulfills?c.concat(e.fulfills.transaction_id).concat(e.fulfills.output_index):c,d=(0,s.default)(o),h=new f.default.Ed25519Sha256;h.sign(i.Buffer.from(d,"hex"),u);var l=h.serializeUri();e.fulfillment=l});var h=e.serializeTransactionIntoCanonicalString(d);return d.id=(0,s.default)(h),d}}]),e}();t.default=h},function(e,t){e.exports=function(){}},function(e,t,r){"use strict";var n=r(16),i=r(13)(!0);n(n.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),r(30)("includes")},function(e,t,r){r(31),e.exports=r(1).Array.includes},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,u=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,u=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw u}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=function(e){return function(e,t){return function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).isInclusion,n=void 0===r||r;if(t&&Array.isArray(t))return f(e,n?function(e,r){return(0,u.default)(t,r)}:function(e,r){return!(0,u.default)(t,r)});if(t&&"function"==typeof t)return f(e,n?t:function(){return!t.apply(void 0,arguments)});throw new Error("The given filter is not an array or function. Exclude aborted")}(e,function(e){return!!e})}(e)};var u=a(r(32)),o=a(r(17));function a(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(null==t)return i({},e);var r={};return(0,o.default)(e).forEach(function(e){var i=n(e,2),u=i[0],o=i[1];t(o,u)&&(r[u]=o)}),r}},function(e,t,r){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function u(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([],u(r),u(n))}function o(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n),r=1;r<t.length;r++)t=(e=u(t,r).join("")).match(n);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=i.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=o(r[0]);n!==r[0]&&(t[r[0]]=n)}r=i.exec(e)}t["%C2"]="�";for(var u=Object.keys(t),a=0;a<u.length;a++){var f=u[a];e=e.replace(new RegExp(f,"g"),t[f])}return e}(e)}}},function(e,t,r){"use strict";e.exports=(e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`))},function(e,t,r){"use strict";const n=r(35),i=r(34);function u(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}function o(e,t){return t.decode?i(e):e}function a(e){const t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){const r=function(e){let t;switch(e.arrayFormat){case"index":return(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(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(e,t,r)=>{void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=Object.assign({decode:!0,arrayFormat:"none"},t)),n=Object.create(null);if("string"!=typeof e)return n;if(!(e=e.trim().replace(/^[?#&]/,"")))return n;for(const i of e.split("&")){let[e,u]=i.replace(/\+/g," ").split("=");u=void 0===u?null:o(u,t),r(o(e,t),u,n)}return Object.keys(n).sort().reduce((e,t)=>{const r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(r):e[t]=r,e},Object.create(null))}t.extract=a,t.parse=f,t.stringify=((e,t)=>{!1===(t=Object.assign({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=(()=>{}));const r=function(e){switch(e.arrayFormat){case"index":return(t,r,n)=>null===r?[u(t,e),"[",n,"]"].join(""):[u(t,e),"[",u(n,e),"]=",u(r,e)].join("");case"bracket":return(t,r)=>null===r?[u(t,e),"[]"].join(""):[u(t,e),"[]=",u(r,e)].join("");default:return(t,r)=>null===r?u(t,e):[u(t,e),"=",u(r,e)].join("")}}(t);return e?Object.keys(e).sort(t.sort).map(n=>{const i=e[n];if(void 0===i)return"";if(null===i)return u(n,t);if(Array.isArray(i)){const e=[];for(const t of i.slice())void 0!==t&&e.push(r(n,t,e.length));return e.join("&")}return u(n,t)+"="+u(i,t)}).filter(e=>e.length>0).join("&"):""}),t.parseUrl=((e,t)=>({url:e.split("?")[0]||"",query:f(a(e),t)}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
  /*!
   * XRegExp Unicode Scripts 4.0.0
   * <xregexp.com>
   * Steven Levithan (c) 2010-2017 MIT License
   * Unicode data by Mathias Bynens <mathiasbynens.be>
   */
  t.default=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");e.addUnicodeData([{name:"Adlam",astral:"\ud83a[\udd00-\udd4a\udd50-\udd59\udd5e\udd5f]"},{name:"Ahom",astral:"\ud805[\udf00-\udf19\udf1d-\udf2b\udf30-\udf3f]"},{name:"Anatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude46]"},{name:"Arabic",bmp:"؀-؄؆-؋؍-ؚ؞ؠ-ؿف-يٖ-ٯٱ-ۜ۞-ۿݐ-ݿࢠ-ࢴࢶ-ࢽࣔ-ࣣ࣡-ࣿﭐ-﯁ﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-﷽ﹰ-ﹴﹶ-ﻼ",astral:"\ud803[\ude60-\ude7e]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb\udef0\udef1]"},{name:"Armenian",bmp:"Ա-Ֆՙ-՟ա-և֊֍-֏ﬓ-ﬗ"},{name:"Avestan",astral:"\ud802[\udf00-\udf35\udf39-\udf3f]"},{name:"Balinese",bmp:"ᬀ-ᭋ᭐-᭼"},{name:"Bamum",bmp:"ꚠ-꛷",astral:"\ud81a[\udc00-\ude38]"},{name:"Bassa_Vah",astral:"\ud81a[\uded0-\udeed\udef0-\udef5]"},{name:"Batak",bmp:"ᯀ-᯳᯼-᯿"},{name:"Bengali",bmp:"ঀ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-৻"},{name:"Bhaiksuki",astral:"\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc45\udc50-\udc6c]"},{name:"Bopomofo",bmp:"˪˫ㄅ-ㄭㆠ-ㆺ"},{name:"Brahmi",astral:"\ud804[\udc00-\udc4d\udc52-\udc6f\udc7f]"},{name:"Braille",bmp:"⠀-⣿"},{name:"Buginese",bmp:"ᨀ-ᨛ᨞᨟"},{name:"Buhid",bmp:"ᝀ-ᝓ"},{name:"Canadian_Aboriginal",bmp:"᐀-ᙿᢰ-ᣵ"},{name:"Carian",astral:"\ud800[\udea0-\uded0]"},{name:"Caucasian_Albanian",astral:"\ud801[\udd30-\udd63\udd6f]"},{name:"Chakma",astral:"\ud804[\udd00-\udd34\udd36-\udd43]"},{name:"Cham",bmp:"ꨀ-ꨶꩀ-ꩍ꩐-꩙꩜-꩟"},{name:"Cherokee",bmp:"Ꭰ-Ᏽᏸ-ᏽꭰ-ꮿ"},{name:"Common",bmp:"\0-@\\x5B-`\\x7B-©«-¹»-¿×÷ʹ-˟˥-˩ˬ-˿ʹ;΅·։؅،؛؜؟ـ۝࣢।॥฿࿕-࿘჻᛫-᛭᜵᜶᠂᠃᠅᳓᳡ᳩ-ᳬᳮ-ᳳᳵᳶ -​‎-⁤⁦-⁰⁴-⁾₀-₎₠-₾℀-℥℧-℩ℬ-ℱℳ-⅍⅏-⅟↉-↋←-⏾␀-␦⑀-⑊①-⟿⤀-⭳⭶-⮕⮘-⮹⮽-⯈⯊-⯑⯬-⯯⸀-⹄⿰-⿻　-〄〆〈-〠〰-〷〼-〿゛゜゠・ー㆐-㆟㇀-㇣㈠-㉟㉿-㋏㍘-㏿䷀-䷿꜀-꜡ꞈ-꞊꠰-꠹꤮ꧏ꭛﴾﴿︐-︙︰-﹒﹔-﹦﹨-﹫\ufeff！-＠［-｀｛-･ｰﾞﾟ￠-￦￨-￮￹-�",astral:"\ud800[\udd00-\udd02\udd07-\udd33\udd37-\udd3f\udd90-\udd9b\uddd0-\uddfc\udee1-\udefb]|\ud82f[\udca0-\udca3]|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd66\udd6a-\udd7a\udd83\udd84\udd8c-\udda9\uddae-\udde8\udf00-\udf56\udf60-\udf71]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udfcb\udfce-\udfff]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd00-\udd0c\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\uddff\ude01\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]|\udb40[\udc01\udc20-\udc7f]"},{name:"Coptic",bmp:"Ϣ-ϯⲀ-ⳳ⳹-⳿"},{name:"Cuneiform",astral:"\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc70-\udc74\udc80-\udd43]"},{name:"Cypriot",astral:"\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f]"},{name:"Cyrillic",bmp:"Ѐ-҄҇-ԯᲀ-ᲈᴫᵸⷠ-ⷿꙀ-ꚟ︮︯"},{name:"Deseret",astral:"\ud801[\udc00-\udc4f]"},{name:"Devanagari",bmp:"ऀ-ॐ॓-ॣ०-ॿ꣠-ꣽ"},{name:"Duployan",astral:"\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9c-\udc9f]"},{name:"Egyptian_Hieroglyphs",astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]"},{name:"Elbasan",astral:"\ud801[\udd00-\udd27]"},{name:"Ethiopic",bmp:"ሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፼ᎀ-᎙ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮ"},{name:"Georgian",bmp:"Ⴀ-ჅჇჍა-ჺჼ-ჿⴀ-ⴥⴧⴭ"},{name:"Glagolitic",bmp:"Ⰰ-Ⱞⰰ-ⱞ",astral:"\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]"},{name:"Gothic",astral:"\ud800[\udf30-\udf4a]"},{name:"Grantha",astral:"\ud804[\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3c-\udf44\udf47\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]"},{name:"Greek",bmp:"Ͱ-ͳ͵-ͷͺ-ͽͿ΄ΆΈ-ΊΌΎ-ΡΣ-ϡϰ-Ͽᴦ-ᴪᵝ-ᵡᵦ-ᵪᶿἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ῄῆ-ΐῖ-Ί῝-`ῲ-ῴῶ-῾Ωꭥ",astral:"\ud800[\udd40-\udd8e\udda0]|\ud834[\ude00-\ude45]"},{name:"Gujarati",bmp:"ઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૱ૹ"},{name:"Gurmukhi",bmp:"ਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵ"},{name:"Han",bmp:"⺀-⺙⺛-⻳⼀-⿕々〇〡-〩〸-〻㐀-䶵一-鿕豈-舘並-龎",astral:"[\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},{name:"Hangul",bmp:"ᄀ-ᇿ〮〯ㄱ-ㆎ㈀-㈞㉠-㉾ꥠ-ꥼ가-힣ힰ-ퟆퟋ-ퟻﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ"},{name:"Hanunoo",bmp:"ᜠ-᜴"},{name:"Hatran",astral:"\ud802[\udce0-\udcf2\udcf4\udcf5\udcfb-\udcff]"},{name:"Hebrew",bmp:"֑-ׇא-תװ-״יִ-זּטּ-לּמּנּסּףּפּצּ-ﭏ"},{name:"Hiragana",bmp:"ぁ-ゖゝ-ゟ",astral:"𛀁|🈀"},{name:"Imperial_Aramaic",astral:"\ud802[\udc40-\udc55\udc57-\udc5f]"},{name:"Inherited",bmp:"̀-ًͯ҅҆-ٰٕ॒॑᪰-᪾᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸᳹᷀-᷵᷻-᷿‌‍⃐-〪⃰-゙゚〭︀-️︠-︭",astral:"\ud800[\uddfd\udee0]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad]|\udb40[\udd00-\uddef]"},{name:"Inscriptional_Pahlavi",astral:"\ud802[\udf60-\udf72\udf78-\udf7f]"},{name:"Inscriptional_Parthian",astral:"\ud802[\udf40-\udf55\udf58-\udf5f]"},{name:"Javanese",bmp:"ꦀ-꧍꧐-꧙꧞꧟"},{name:"Kaithi",astral:"\ud804[\udc80-\udcc1]"},{name:"Kannada",bmp:"ಀ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲ"},{name:"Katakana",bmp:"ァ-ヺヽ-ヿㇰ-ㇿ㋐-㋾㌀-㍗ｦ-ｯｱ-ﾝ",astral:"𛀀"},{name:"Kayah_Li",bmp:"꤀-꤭꤯"},{name:"Kharoshthi",astral:"\ud802[\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude38-\ude3a\ude3f-\ude47\ude50-\ude58]"},{name:"Khmer",bmp:"ក-៝០-៩៰-៹᧠-᧿"},{name:"Khojki",astral:"\ud804[\ude00-\ude11\ude13-\ude3e]"},{name:"Khudawadi",astral:"\ud804[\udeb0-\udeea\udef0-\udef9]"},{name:"Lao",bmp:"ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟ"},{name:"Latin",bmp:"A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞮꞰ-ꞷꟷ-ꟿꬰ-ꭚꭜ-ꭤﬀ-ﬆＡ-Ｚａ-ｚ"},{name:"Lepcha",bmp:"ᰀ-᰷᰻-᱉ᱍ-ᱏ"},{name:"Limbu",bmp:"ᤀ-ᤞᤠ-ᤫᤰ-᤻᥀᥄-᥏"},{name:"Linear_A",astral:"\ud801[\ude00-\udf36\udf40-\udf55\udf60-\udf67]"},{name:"Linear_B",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa]"},{name:"Lisu",bmp:"ꓐ-꓿"},{name:"Lycian",astral:"\ud800[\ude80-\ude9c]"},{name:"Lydian",astral:"\ud802[\udd20-\udd39\udd3f]"},{name:"Mahajani",astral:"\ud804[\udd50-\udd76]"},{name:"Malayalam",bmp:"ഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-൏ൔ-ൣ൦-ൿ"},{name:"Mandaic",bmp:"ࡀ-࡛࡞"},{name:"Manichaean",astral:"\ud802[\udec0-\udee6\udeeb-\udef6]"},{name:"Marchen",astral:"\ud807[\udc70-\udc8f\udc92-\udca7\udca9-\udcb6]"},{name:"Meetei_Mayek",bmp:"ꫠ-꫶ꯀ-꯭꯰-꯹"},{name:"Mende_Kikakui",astral:"\ud83a[\udc00-\udcc4\udcc7-\udcd6]"},{name:"Meroitic_Cursive",astral:"\ud802[\udda0-\uddb7\uddbc-\uddcf\uddd2-\uddff]"},{name:"Meroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"Miao",astral:"\ud81b[\udf00-\udf44\udf50-\udf7e\udf8f-\udf9f]"},{name:"Modi",astral:"\ud805[\ude00-\ude44\ude50-\ude59]"},{name:"Mongolian",bmp:"᠀᠁᠄᠆-᠎᠐-᠙ᠠ-ᡷᢀ-ᢪ",astral:"\ud805[\ude60-\ude6c]"},{name:"Mro",astral:"\ud81a[\ude40-\ude5e\ude60-\ude69\ude6e\ude6f]"},{name:"Multani",astral:"\ud804[\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea9]"},{name:"Myanmar",bmp:"က-႟ꧠ-ꧾꩠ-ꩿ"},{name:"Nabataean",astral:"\ud802[\udc80-\udc9e\udca7-\udcaf]"},{name:"New_Tai_Lue",bmp:"ᦀ-ᦫᦰ-ᧉ᧐-᧚᧞᧟"},{name:"Newa",astral:"\ud805[\udc00-\udc59\udc5b\udc5d]"},{name:"Nko",bmp:"߀-ߺ"},{name:"Ogham",bmp:" -᚜"},{name:"Ol_Chiki",bmp:"᱐-᱿"},{name:"Old_Hungarian",astral:"\ud803[\udc80-\udcb2\udcc0-\udcf2\udcfa-\udcff]"},{name:"Old_Italic",astral:"\ud800[\udf00-\udf23]"},{name:"Old_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"Old_Permic",astral:"\ud800[\udf50-\udf7a]"},{name:"Old_Persian",astral:"\ud800[\udfa0-\udfc3\udfc8-\udfd5]"},{name:"Old_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},{name:"Old_Turkic",astral:"\ud803[\udc00-\udc48]"},{name:"Oriya",bmp:"ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୷"},{name:"Osage",astral:"\ud801[\udcb0-\udcd3\udcd8-\udcfb]"},{name:"Osmanya",astral:"\ud801[\udc80-\udc9d\udca0-\udca9]"},{name:"Pahawh_Hmong",astral:"\ud81a[\udf00-\udf45\udf50-\udf59\udf5b-\udf61\udf63-\udf77\udf7d-\udf8f]"},{name:"Palmyrene",astral:"\ud802[\udc60-\udc7f]"},{name:"Pau_Cin_Hau",astral:"\ud806[\udec0-\udef8]"},{name:"Phags_Pa",bmp:"ꡀ-꡷"},{name:"Phoenician",astral:"\ud802[\udd00-\udd1b\udd1f]"},{name:"Psalter_Pahlavi",astral:"\ud802[\udf80-\udf91\udf99-\udf9c\udfa9-\udfaf]"},{name:"Rejang",bmp:"ꤰ-꥓꥟"},{name:"Runic",bmp:"ᚠ-ᛪᛮ-ᛸ"},{name:"Samaritan",bmp:"ࠀ-࠭࠰-࠾"},{name:"Saurashtra",bmp:"ꢀ-ꣅ꣎-꣙"},{name:"Sharada",astral:"\ud804[\udd80-\uddcd\uddd0-\udddf]"},{name:"Shavian",astral:"\ud801[\udc50-\udc7f]"},{name:"Siddham",astral:"\ud805[\udd80-\uddb5\uddb8-\udddd]"},{name:"SignWriting",astral:"\ud836[\udc00-\ude8b\ude9b-\ude9f\udea1-\udeaf]"},{name:"Sinhala",bmp:"ංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲ-෴",astral:"\ud804[\udde1-\uddf4]"},{name:"Sora_Sompeng",astral:"\ud804[\udcd0-\udce8\udcf0-\udcf9]"},{name:"Sundanese",bmp:"ᮀ-ᮿ᳀-᳇"},{name:"Syloti_Nagri",bmp:"ꠀ-꠫"},{name:"Syriac",bmp:"܀-܍܏-݊ݍ-ݏ"},{name:"Tagalog",bmp:"ᜀ-ᜌᜎ-᜔"},{name:"Tagbanwa",bmp:"ᝠ-ᝬᝮ-ᝰᝲᝳ"},{name:"Tai_Le",bmp:"ᥐ-ᥭᥰ-ᥴ"},{name:"Tai_Tham",bmp:"ᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪠-᪭"},{name:"Tai_Viet",bmp:"ꪀ-ꫂꫛ-꫟"},{name:"Takri",astral:"\ud805[\ude80-\udeb7\udec0-\udec9]"},{name:"Tamil",bmp:"ஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௺"},{name:"Tangut",astral:"𖿠|[\ud81c-\ud820][\udc00-\udfff]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]"},{name:"Telugu",bmp:"ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘ-ౚౠ-ౣ౦-౯౸-౿"},{name:"Thaana",bmp:"ހ-ޱ"},{name:"Thai",bmp:"ก-ฺเ-๛"},{name:"Tibetan",bmp:"ༀ-ཇཉ-ཬཱ-ྗྙ-ྼ྾-࿌࿎-࿔࿙࿚"},{name:"Tifinagh",bmp:"ⴰ-ⵧⵯ⵰⵿"},{name:"Tirhuta",astral:"\ud805[\udc80-\udcc7\udcd0-\udcd9]"},{name:"Ugaritic",astral:"\ud800[\udf80-\udf9d\udf9f]"},{name:"Vai",bmp:"ꔀ-ꘫ"},{name:"Warang_Citi",astral:"\ud806[\udca0-\udcf2\udcff]"},{name:"Yi",bmp:"ꀀ-ꒌ꒐-꓆"}])},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
  /*!
   * XRegExp Unicode Properties 4.0.0
   * <xregexp.com>
   * Steven Levithan (c) 2012-2017 MIT License
   * Unicode data by Mathias Bynens <mathiasbynens.be>
   */
  t.default=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var t=[{name:"ASCII",bmp:"\0-"},{name:"Alphabetic",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͅͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևְ-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-ٗٙ-ٟٮ-ۓە-ۜۡ-ۭۨ-ۯۺ-ۼۿܐ-ܿݍ-ޱߊ-ߪߴߵߺࠀ-ࠗࠚ-ࠬࡀ-ࡘࢠ-ࢴࢶ-ࢽࣔ-ࣣࣟ-ࣰࣩ-ऻऽ-ौॎ-ॐॕ-ॣॱ-ঃঅ-ঌএঐও-নপ-রলশ-হঽ-ৄেৈোৌৎৗড়ঢ়য়-ৣৰৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਾ-ੂੇੈੋੌੑਖ਼-ੜਫ਼ੰ-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽ-ૅે-ૉોૌૐૠ-ૣૹଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽ-ୄେୈୋୌୖୗଡ଼ଢ଼ୟ-ୣୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-ௌௐௗఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-ౌౕౖౘ-ౚౠ-ౣಀ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೄೆ-ೈೊ-ೌೕೖೞೠ-ೣೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൌൎൔ-ൗൟ-ൣൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆා-ුූෘ-ෟෲෳก-ฺเ-ๆํກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆໍໜ-ໟༀཀ-ཇཉ-ཬཱ-ཱྀྈ-ྗྙ-ྼက-ံးျ-ဿၐ-ၢၥ-ၨၮ-ႆႎႜႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፟ᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜓᜠ-ᜳᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-ឳា-ៈៗៜᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-ᤸᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨛᨠ-ᩞᩡ-ᩴᪧᬀ-ᬳᬵ-ᭃᭅ-ᭋᮀ-ᮩᮬ-ᮯᮺ-ᯥᯧ-ᯱᰀ-ᰵᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳳᳵᳶᴀ-ᶿᷧ-ᷴḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙴ-ꙻꙿ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠧꡀ-ꡳꢀ-ꣃꣅꣲ-ꣷꣻꣽꤊ-ꤪꤰ-ꥒꥠ-ꥼꦀ-ꦲꦴ-ꦿꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨶꩀ-ꩍꩠ-ꩶꩺꩾ-ꪾꫀꫂꫛ-ꫝꫠ-ꫯꫲ-ꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯪ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00-\ude03\ude05\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc00-\udc45\udc82-\udcb8\udcd0-\udce8\udd00-\udd32\udd50-\udd72\udd76\udd80-\uddbf\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude34\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udee8\udf00-\udf03\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d-\udf44\udf47\udf48\udf4b\udf4c\udf50\udf57\udf5d-\udf63]|\ud805[\udc00-\udc41\udc43-\udc45\udc47-\udc4a\udc80-\udcc1\udcc4\udcc5\udcc7\udd80-\uddb5\uddb8-\uddbe\uddd8-\udddd\ude00-\ude3e\ude40\ude44\ude80-\udeb5\udf00-\udf19\udf1d-\udf2a]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc3e\udc40\udc72-\udc8f\udc92-\udca7\udca9-\udcb6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf36\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50-\udf7e\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9e]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd47]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},{name:"Any",isBmpLast:!0,bmp:"\0-",astral:"[\ud800-\udbff][\udc00-\udfff]"},{name:"Default_Ignorable_Code_Point",bmp:"­͏؜ᅟᅠ឴឵᠋-᠎​-‏‪-‮⁠-⁯ㅤ︀-️\ufeffﾠ￰-￸",astral:"\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|[\udb40-\udb43][\udc00-\udfff]"},{name:"Lowercase",bmp:"a-zªµºß-öø-ÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıĳĵķĸĺļľŀłńņňŉŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżž-ƀƃƅƈƌƍƒƕƙ-ƛƞơƣƥƨƪƫƭưƴƶƹƺƽ-ƿǆǉǌǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰǳǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳ-ȹȼȿɀɂɇɉɋɍɏ-ʓʕ-ʸˀˁˠ-ˤͅͱͳͷͺ-ͽΐά-ώϐϑϕ-ϗϙϛϝϟϡϣϥϧϩϫϭϯ-ϳϵϸϻϼа-џѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӏӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯա-ևᏸ-ᏽᲀ-ᲈᴀ-ᶿḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕ-ẝẟạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿ-ἇἐ-ἕἠ-ἧἰ-ἷὀ-ὅὐ-ὗὠ-ὧὰ-ώᾀ-ᾇᾐ-ᾗᾠ-ᾧᾰ-ᾴᾶᾷιῂ-ῄῆῇῐ-ΐῖῗῠ-ῧῲ-ῴῶῷⁱⁿₐ-ₜℊℎℏℓℯℴℹℼℽⅆ-ⅉⅎⅰ-ⅿↄⓐ-ⓩⰰ-ⱞⱡⱥⱦⱨⱪⱬⱱⱳⱴⱶ-ⱽⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⳬⳮⳳⴀ-ⴥⴧⴭꙁꙃꙅꙇꙉꙋꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛ-ꚝꜣꜥꜧꜩꜫꜭꜯ-ꜱꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯ-ꝸꝺꝼꝿꞁꞃꞅꞇꞌꞎꞑꞓ-ꞕꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩꞵꞷꟸ-ꟺꬰ-ꭚꭜ-ꭥꭰ-ꮿﬀ-ﬆﬓ-ﬗａ-ｚ",astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Noncharacter_Code_Point",bmp:"﷐-﷯",astral:"[\ud83f\ud87f\ud8bf\ud8ff\ud93f\ud97f\ud9bf\ud9ff\uda3f\uda7f\udabf\udaff\udb3f\udb7f\udbbf\udbff][\udffe\udfff]"},{name:"Uppercase",bmp:"A-ZÀ-ÖØ-ÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİĲĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉ-ƋƎ-ƑƓƔƖ-ƘƜƝƟƠƢƤƦƧƩƬƮƯƱ-ƳƵƷƸƼǄǇǊǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮǱǴǶ-ǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁɃ-ɆɈɊɌɎͰͲͶͿΆΈ-ΊΌΎΏΑ-ΡΣ-ΫϏϒ-ϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽ-ЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸӺӼӾԀԂԄԆԈԊԌԎԐԒԔԖԘԚԜԞԠԢԤԦԨԪԬԮԱ-ՖႠ-ჅჇჍᎠ-ᏵḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẞẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸỺỼỾἈ-ἏἘ-ἝἨ-ἯἸ-ἿὈ-ὍὙὛὝὟὨ-ὯᾸ-ΆῈ-ΉῘ-ΊῨ-ῬῸ-Ώℂℇℋ-ℍℐ-ℒℕℙ-ℝℤΩℨK-ℭℰ-ℳℾℿⅅⅠ-ⅯↃⒶ-ⓏⰀ-ⰮⱠⱢ-ⱤⱧⱩⱫⱭ-ⱰⱲⱵⱾ-ⲀⲂⲄⲆⲈⲊⲌⲎⲐⲒⲔⲖⲘⲚⲜⲞⲠⲢⲤⲦⲨⲪⲬⲮⲰⲲⲴⲶⲸⲺⲼⲾⳀⳂⳄⳆⳈⳊⳌⳎⳐⳒⳔⳖⳘⳚⳜⳞⳠⳢⳫⳭⳲꙀꙂꙄꙆꙈꙊꙌꙎꙐꙒꙔꙖꙘꙚꙜꙞꙠꙢꙤꙦꙨꙪꙬꚀꚂꚄꚆꚈꚊꚌꚎꚐꚒꚔꚖꚘꚚꜢꜤꜦꜨꜪꜬꜮꜲꜴꜶꜸꜺꜼꜾꝀꝂꝄꝆꝈꝊꝌꝎꝐꝒꝔꝖꝘꝚꝜꝞꝠꝢꝤꝦꝨꝪꝬꝮꝹꝻꝽꝾꞀꞂꞄꞆꞋꞍꞐꞒꞖꞘꞚꞜꞞꞠꞢꞤꞦꞨꞪ-ꞮꞰ-ꞴꞶＡ-Ｚ",astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]|\ud83c[\udd30-\udd49\udd50-\udd69\udd70-\udd89]"},{name:"White_Space",bmp:"\t-\r    - \u2028\u2029  　"}];t.push({name:"Assigned",inverseOf:"Cn"}),e.addUnicodeData(t)},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
  /*!
   * XRegExp Unicode Categories 4.0.0
   * <xregexp.com>
   * Steven Levithan (c) 2010-2017 MIT License
   * Unicode data by Mathias Bynens <mathiasbynens.be>
   */
  t.default=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");e.addUnicodeData([{name:"C",alias:"Other",isBmpLast:!0,bmp:"\0--­͸͹΀-΃΋΍΢԰՗՘ՠֈ֋֌֐׈-׏׫-ׯ׵-؅؜؝۝܎܏݋݌޲-޿߻-߿࠮࠯࠿࡜࡝࡟-࢟ࢵࢾ-࣓࣢঄঍঎঑঒঩঱঳-঵঺঻৅৆৉৊৏-৖৘-৛৞৤৥ৼ-਀਄਋-਎਑਒਩਱਴਷਺਻਽੃-੆੉੊੎-੐੒-੘੝੟-੥੶-઀઄઎઒઩઱઴઺઻૆૊૎૏૑-૟૤૥૲-૸ૺ-଀଄଍଎଑଒଩଱଴଺଻୅୆୉୊୎-୕୘-୛୞୤୥୸-஁஄஋-஍஑஖-஘஛஝஠-஢஥-஧஫-஭஺-஽௃-௅௉௎௏௑-௖௘-௥௻-௿ఄ఍఑఩఺-఼౅౉౎-౔౗౛-౟౤౥౰-౷಄಍಑಩಴಺಻೅೉೎-೔೗-ೝ೟೤೥೰ೳ-ഀഄ഍഑഻഼൅൉൐-൓൤൥඀ඁ඄඗-඙඲඼඾඿෇-෉෋-෎෕෗෠-෥෰෱෵-฀฻-฾๜-຀຃຅ຆຉ຋ຌຎ-ຓຘຠ຤຦ຨຩຬ຺຾຿໅໇໎໏໚໛໠-໿཈཭-཰྘྽࿍࿛-࿿჆჈-჌჎჏቉቎቏቗቙቞቟኉኎኏኱኶኷኿዁዆዇዗጑጖጗፛፜፽-፿᎚-᎟᏶᏷᏾᏿᚝-᚟᛹-᛿ᜍ᜕-ᜟ᜷-᜿᝔-᝟᝭᝱᝴-᝿៞៟៪-៯៺-៿᠎᠏᠚-᠟ᡸ-᡿᢫-᢯᣶-᣿᤟᤬-᤯᤼-᤿᥁-᥃᥮᥯᥵-᥿᦬-᦯᧊-᧏᧛-᧝᨜᨝᩟᩽᩾᪊-᪏᪚-᪟᪮᪯ᪿ-᫿ᭌ-᭏᭽-᭿᯴-᯻᰸-᰺᱊-᱌Ᲊ-Ჿ᳈-᳏᳷ᳺ-᳿᷶-᷺἖἗἞἟὆὇὎὏὘὚὜὞὾὿᾵῅῔῕῜῰῱῵῿​-‏‪-‮⁠-⁯⁲⁳₏₝-₟₿-⃏⃱-⃿↌-↏⏿␧-␿⑋-⑟⭴⭵⮖⮗⮺-⮼⯉⯒-⯫⯰-⯿Ⱟⱟ⳴-⳸⴦⴨-⴬⴮⴯⵨-⵮⵱-⵾⶗-⶟⶧⶯⶷⶿⷇⷏⷗⷟⹅-⹿⺚⻴-⻿⿖-⿯⿼-⿿぀゗゘㄀-㄄ㄮ-㄰㆏ㆻ-ㆿ㇤-㇯㈟㋿䶶-䶿鿖-鿿꒍-꒏꓇-꓏꘬-꘿꛸-꛿ꞯꞸ-ꟶ꠬-꠯꠺-꠿꡸-꡿꣆-꣍꣚-꣟ꣾꣿ꥔-꥞꥽-꥿꧎꧚-꧝꧿꨷-꨿꩎꩏꩚꩛꫃-꫚꫷-꬀꬇꬈꬏꬐꬗-꬟꬧꬯ꭦ-꭯꯮꯯꯺-꯿힤-힯퟇-퟊퟼-﩮﩯﫚-﫿﬇-﬒﬘-﬜﬷﬽﬿﭂﭅﯂-﯒﵀-﵏﶐﶑﷈-﷯﷾﷿︚-︟﹓﹧﹬-﹯﹵﻽-＀﾿-￁￈￉￐￑￘￙￝-￟￧￯-￻",astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcbd\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udbff][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca0-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udd73-\udd7a\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00-\udcff\uddf0-\udfff]"},{name:"Cc",alias:"Control",bmp:"\0--"},{name:"Cf",alias:"Format",bmp:"­؀-؅؜۝܏࣢᠎​-‏‪-‮⁠-⁤⁦-⁯\ufeff￹-￻",astral:"𑂽|\ud82f[\udca0-\udca3]|\ud834[\udd73-\udd7a]|\udb40[\udc01\udc20-\udc7f]"},{name:"Cn",alias:"Unassigned",bmp:"͸͹΀-΃΋΍΢԰՗՘ՠֈ֋֌֐׈-׏׫-ׯ׵-׿؝܎݋݌޲-޿߻-߿࠮࠯࠿࡜࡝࡟-࢟ࢵࢾ-࣓঄঍঎঑঒঩঱঳-঵঺঻৅৆৉৊৏-৖৘-৛৞৤৥ৼ-਀਄਋-਎਑਒਩਱਴਷਺਻਽੃-੆੉੊੎-੐੒-੘੝੟-੥੶-઀઄઎઒઩઱઴઺઻૆૊૎૏૑-૟૤૥૲-૸ૺ-଀଄଍଎଑଒଩଱଴଺଻୅୆୉୊୎-୕୘-୛୞୤୥୸-஁஄஋-஍஑஖-஘஛஝஠-஢஥-஧஫-஭஺-஽௃-௅௉௎௏௑-௖௘-௥௻-௿ఄ఍఑఩఺-఼౅౉౎-౔౗౛-౟౤౥౰-౷಄಍಑಩಴಺಻೅೉೎-೔೗-ೝ೟೤೥೰ೳ-ഀഄ഍഑഻഼൅൉൐-൓൤൥඀ඁ඄඗-඙඲඼඾඿෇-෉෋-෎෕෗෠-෥෰෱෵-฀฻-฾๜-຀຃຅ຆຉ຋ຌຎ-ຓຘຠ຤຦ຨຩຬ຺຾຿໅໇໎໏໚໛໠-໿཈཭-཰྘྽࿍࿛-࿿჆჈-჌჎჏቉቎቏቗቙቞቟኉኎኏኱኶኷኿዁዆዇዗጑጖጗፛፜፽-፿᎚-᎟᏶᏷᏾᏿᚝-᚟᛹-᛿ᜍ᜕-ᜟ᜷-᜿᝔-᝟᝭᝱᝴-᝿៞៟៪-៯៺-៿᠏᠚-᠟ᡸ-᡿᢫-᢯᣶-᣿᤟᤬-᤯᤼-᤿᥁-᥃᥮᥯᥵-᥿᦬-᦯᧊-᧏᧛-᧝᨜᨝᩟᩽᩾᪊-᪏᪚-᪟᪮᪯ᪿ-᫿ᭌ-᭏᭽-᭿᯴-᯻᰸-᰺᱊-᱌Ᲊ-Ჿ᳈-᳏᳷ᳺ-᳿᷶-᷺἖἗἞἟὆὇὎὏὘὚὜὞὾὿᾵῅῔῕῜῰῱῵῿⁥⁲⁳₏₝-₟₿-⃏⃱-⃿↌-↏⏿␧-␿⑋-⑟⭴⭵⮖⮗⮺-⮼⯉⯒-⯫⯰-⯿Ⱟⱟ⳴-⳸⴦⴨-⴬⴮⴯⵨-⵮⵱-⵾⶗-⶟⶧⶯⶷⶿⷇⷏⷗⷟⹅-⹿⺚⻴-⻿⿖-⿯⿼-⿿぀゗゘㄀-㄄ㄮ-㄰㆏ㆻ-ㆿ㇤-㇯㈟㋿䶶-䶿鿖-鿿꒍-꒏꓇-꓏꘬-꘿꛸-꛿ꞯꞸ-ꟶ꠬-꠯꠺-꠿꡸-꡿꣆-꣍꣚-꣟ꣾꣿ꥔-꥞꥽-꥿꧎꧚-꧝꧿꨷-꨿꩎꩏꩚꩛꫃-꫚꫷-꬀꬇꬈꬏꬐꬗-꬟꬧꬯ꭦ-꭯꯮꯯꯺-꯿힤-힯퟇-퟊퟼-퟿﩮﩯﫚-﫿﬇-﬒﬘-﬜﬷﬽﬿﭂﭅﯂-﯒﵀-﵏﶐﶑﷈-﷯﷾﷿︚-︟﹓﹧﹬-﹯﹵﻽﻾＀﾿-￁￈￉￐￑￘￙￝-￟￧￯-￸",astral:"\ud800[\udc0c\udc27\udc3b\udc3e\udc4e\udc4f\udc5e-\udc7f\udcfb-\udcff\udd03-\udd06\udd34-\udd36\udd8f\udd9c-\udd9f\udda1-\uddcf\uddfe-\ude7f\ude9d-\ude9f\uded1-\udedf\udefc-\udeff\udf24-\udf2f\udf4b-\udf4f\udf7b-\udf7f\udf9e\udfc4-\udfc7\udfd6-\udfff]|\ud801[\udc9e\udc9f\udcaa-\udcaf\udcd4-\udcd7\udcfc-\udcff\udd28-\udd2f\udd64-\udd6e\udd70-\uddff\udf37-\udf3f\udf56-\udf5f\udf68-\udfff]|\ud802[\udc06\udc07\udc09\udc36\udc39-\udc3b\udc3d\udc3e\udc56\udc9f-\udca6\udcb0-\udcdf\udcf3\udcf6-\udcfa\udd1c-\udd1e\udd3a-\udd3e\udd40-\udd7f\uddb8-\uddbb\uddd0\uddd1\ude04\ude07-\ude0b\ude14\ude18\ude34-\ude37\ude3b-\ude3e\ude48-\ude4f\ude59-\ude5f\udea0-\udebf\udee7-\udeea\udef7-\udeff\udf36-\udf38\udf56\udf57\udf73-\udf77\udf92-\udf98\udf9d-\udfa8\udfb0-\udfff]|\ud803[\udc49-\udc7f\udcb3-\udcbf\udcf3-\udcf9\udd00-\ude5f\ude7f-\udfff]|\ud804[\udc4e-\udc51\udc70-\udc7e\udcc2-\udccf\udce9-\udcef\udcfa-\udcff\udd35\udd44-\udd4f\udd77-\udd7f\uddce\uddcf\udde0\uddf5-\uddff\ude12\ude3f-\ude7f\ude87\ude89\ude8e\ude9e\udeaa-\udeaf\udeeb-\udeef\udefa-\udeff\udf04\udf0d\udf0e\udf11\udf12\udf29\udf31\udf34\udf3a\udf3b\udf45\udf46\udf49\udf4a\udf4e\udf4f\udf51-\udf56\udf58-\udf5c\udf64\udf65\udf6d-\udf6f\udf75-\udfff]|\ud805[\udc5a\udc5c\udc5e-\udc7f\udcc8-\udccf\udcda-\udd7f\uddb6\uddb7\uddde-\uddff\ude45-\ude4f\ude5a-\ude5f\ude6d-\ude7f\udeb8-\udebf\udeca-\udeff\udf1a-\udf1c\udf2c-\udf2f\udf40-\udfff]|\ud806[\udc00-\udc9f\udcf3-\udcfe\udd00-\udebf\udef9-\udfff]|\ud807[\udc09\udc37\udc46-\udc4f\udc6d-\udc6f\udc90\udc91\udca8\udcb7-\udfff]|\ud808[\udf9a-\udfff]|\ud809[\udc6f\udc75-\udc7f\udd44-\udfff]|[\ud80a\ud80b\ud80e-\ud810\ud812-\ud819\ud823-\ud82b\ud82d\ud82e\ud830-\ud833\ud837\ud839\ud83f\ud874-\ud87d\ud87f-\udb3f\udb41-\udb7f][\udc00-\udfff]|\ud80d[\udc2f-\udfff]|\ud811[\ude47-\udfff]|\ud81a[\ude39-\ude3f\ude5f\ude6a-\ude6d\ude70-\udecf\udeee\udeef\udef6-\udeff\udf46-\udf4f\udf5a\udf62\udf78-\udf7c\udf90-\udfff]|\ud81b[\udc00-\udeff\udf45-\udf4f\udf7f-\udf8e\udfa0-\udfdf\udfe1-\udfff]|\ud821[\udfed-\udfff]|\ud822[\udef3-\udfff]|\ud82c[\udc02-\udfff]|\ud82f[\udc6b-\udc6f\udc7d-\udc7f\udc89-\udc8f\udc9a\udc9b\udca4-\udfff]|\ud834[\udcf6-\udcff\udd27\udd28\udde9-\uddff\ude46-\udeff\udf57-\udf5f\udf72-\udfff]|\ud835[\udc55\udc9d\udca0\udca1\udca3\udca4\udca7\udca8\udcad\udcba\udcbc\udcc4\udd06\udd0b\udd0c\udd15\udd1d\udd3a\udd3f\udd45\udd47-\udd49\udd51\udea6\udea7\udfcc\udfcd]|\ud836[\ude8c-\ude9a\udea0\udeb0-\udfff]|\ud838[\udc07\udc19\udc1a\udc22\udc25\udc2b-\udfff]|\ud83a[\udcc5\udcc6\udcd7-\udcff\udd4b-\udd4f\udd5a-\udd5d\udd60-\udfff]|\ud83b[\udc00-\uddff\ude04\ude20\ude23\ude25\ude26\ude28\ude33\ude38\ude3a\ude3c-\ude41\ude43-\ude46\ude48\ude4a\ude4c\ude50\ude53\ude55\ude56\ude58\ude5a\ude5c\ude5e\ude60\ude63\ude65\ude66\ude6b\ude73\ude78\ude7d\ude7f\ude8a\ude9c-\udea0\udea4\udeaa\udebc-\udeef\udef2-\udfff]|\ud83c[\udc2c-\udc2f\udc94-\udc9f\udcaf\udcb0\udcc0\udcd0\udcf6-\udcff\udd0d-\udd0f\udd2f\udd6c-\udd6f\uddad-\udde5\ude03-\ude0f\ude3c-\ude3f\ude49-\ude4f\ude52-\udeff]|\ud83d[\uded3-\udedf\udeed-\udeef\udef7-\udeff\udf74-\udf7f\udfd5-\udfff]|\ud83e[\udc0c-\udc0f\udc48-\udc4f\udc5a-\udc5f\udc88-\udc8f\udcae-\udd0f\udd1f\udd28-\udd2f\udd31\udd32\udd3f\udd4c-\udd4f\udd5f-\udd7f\udd92-\uddbf\uddc1-\udfff]|\ud869[\uded7-\udeff]|\ud86d[\udf35-\udf3f]|\ud86e[\udc1e\udc1f]|\ud873[\udea2-\udfff]|\ud87e[\ude1e-\udfff]|\udb40[\udc00\udc02-\udc1f\udc80-\udcff\uddf0-\udfff]|[\udbbf\udbff][\udffe\udfff]"},{name:"Co",alias:"Private_Use",bmp:"-",astral:"[\udb80-\udbbe\udbc0-\udbfe][\udc00-\udfff]|[\udbbf\udbff][\udc00-\udffd]"},{name:"Cs",alias:"Surrogate",bmp:"\ud800-\udfff"},{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udca0-\udcdf\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50\udf93-\udf9f\udfe0]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud83a[\udc00-\udcc4\udd00-\udd43]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},{name:"Ll",alias:"Lowercase_Letter",bmp:"a-zµß-öø-ÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıĳĵķĸĺļľŀłńņňŉŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżž-ƀƃƅƈƌƍƒƕƙ-ƛƞơƣƥƨƪƫƭưƴƶƹƺƽ-ƿǆǉǌǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰǳǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳ-ȹȼȿɀɂɇɉɋɍɏ-ʓʕ-ʯͱͳͷͻ-ͽΐά-ώϐϑϕ-ϗϙϛϝϟϡϣϥϧϩϫϭϯ-ϳϵϸϻϼа-џѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӏӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯա-ևᏸ-ᏽᲀ-ᲈᴀ-ᴫᵫ-ᵷᵹ-ᶚḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕ-ẝẟạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿ-ἇἐ-ἕἠ-ἧἰ-ἷὀ-ὅὐ-ὗὠ-ὧὰ-ώᾀ-ᾇᾐ-ᾗᾠ-ᾧᾰ-ᾴᾶᾷιῂ-ῄῆῇῐ-ΐῖῗῠ-ῧῲ-ῴῶῷℊℎℏℓℯℴℹℼℽⅆ-ⅉⅎↄⰰ-ⱞⱡⱥⱦⱨⱪⱬⱱⱳⱴⱶ-ⱻⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⳬⳮⳳⴀ-ⴥⴧⴭꙁꙃꙅꙇꙉꙋꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯ-ꜱꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝱ-ꝸꝺꝼꝿꞁꞃꞅꞇꞌꞎꞑꞓ-ꞕꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩꞵꞷꟺꬰ-ꭚꭠ-ꭥꭰ-ꮿﬀ-ﬆﬓ-ﬗａ-ｚ",astral:"\ud801[\udc28-\udc4f\udcd8-\udcfb]|\ud803[\udcc0-\udcf2]|\ud806[\udcc0-\udcdf]|\ud835[\udc1a-\udc33\udc4e-\udc54\udc56-\udc67\udc82-\udc9b\udcb6-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udccf\udcea-\udd03\udd1e-\udd37\udd52-\udd6b\udd86-\udd9f\uddba-\uddd3\uddee-\ude07\ude22-\ude3b\ude56-\ude6f\ude8a-\udea5\udec2-\udeda\udedc-\udee1\udefc-\udf14\udf16-\udf1b\udf36-\udf4e\udf50-\udf55\udf70-\udf88\udf8a-\udf8f\udfaa-\udfc2\udfc4-\udfc9\udfcb]|\ud83a[\udd22-\udd43]"},{name:"Lm",alias:"Modifier_Letter",bmp:"ʰ-ˁˆ-ˑˠ-ˤˬˮʹͺՙـۥۦߴߵߺࠚࠤࠨॱๆໆჼៗᡃᪧᱸ-ᱽᴬ-ᵪᵸᶛ-ᶿⁱⁿₐ-ₜⱼⱽⵯⸯ々〱-〵〻ゝゞー-ヾꀕꓸ-ꓽꘌꙿꚜꚝꜗ-ꜟꝰꞈꟸꟹꧏꧦꩰꫝꫳꫴꭜ-ꭟｰﾞﾟ",astral:"\ud81a[\udf40-\udf43]|\ud81b[\udf93-\udf9f\udfe0]"},{name:"Lo",alias:"Other_Letter",bmp:"ªºƻǀ-ǃʔא-תװ-ײؠ-ؿف-يٮٯٱ-ۓەۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪࠀ-ࠕࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॲ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๅກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎა-ჺჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៜᠠ-ᡂᡄ-ᡷᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱷᳩ-ᳬᳮ-ᳱᳵᳶℵ-ℸⴰ-ⵧⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ〆〼ぁ-ゖゟァ-ヺヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꀔꀖ-ꒌꓐ-ꓷꔀ-ꘋꘐ-ꘟꘪꘫꙮꚠ-ꛥꞏꟷꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧠ-ꧤꧧ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩯꩱ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛꫜꫠ-ꫪꫲꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎יִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼｦ-ｯｱ-ﾝﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",astral:"\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf30-\udf40\udf42-\udf49\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf]|\ud801[\udc50-\udc9d\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude33\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f\udf10\udf13-\udf28\udf2a-\udf30\udf32\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc80-\udcaf\udcc4\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udf00-\udf19]|\ud806[\udcff\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f]|\ud808[\udc00-\udf99]|\ud809[\udc80-\udd43]|[\ud80c\ud81c-\ud820\ud840-\ud868\ud86a-\ud86c\ud86f-\ud872][\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf63-\udf77\udf7d-\udf8f]|\ud81b[\udf00-\udf44\udf50]|\ud821[\udc00-\udfec]|\ud822[\udc00-\udef2]|\ud82c[\udc00\udc01]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud83a[\udc00-\udcc4]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]"},{name:"Lt",alias:"Titlecase_Letter",bmp:"ǅǈǋǲᾈ-ᾏᾘ-ᾟᾨ-ᾯᾼῌῼ"},{name:"Lu",alias:"Uppercase_Letter",bmp:"A-ZÀ-ÖØ-ÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİĲĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉ-ƋƎ-ƑƓƔƖ-ƘƜƝƟƠƢƤƦƧƩƬƮƯƱ-ƳƵƷƸƼǄǇǊǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮǱǴǶ-ǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁɃ-ɆɈɊɌɎͰͲͶͿΆΈ-ΊΌΎΏΑ-ΡΣ-ΫϏϒ-ϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽ-ЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸӺӼӾԀԂԄԆԈԊԌԎԐԒԔԖԘԚԜԞԠԢԤԦԨԪԬԮԱ-ՖႠ-ჅჇჍᎠ-ᏵḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẞẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸỺỼỾἈ-ἏἘ-ἝἨ-ἯἸ-ἿὈ-ὍὙὛὝὟὨ-ὯᾸ-ΆῈ-ΉῘ-ΊῨ-ῬῸ-Ώℂℇℋ-ℍℐ-ℒℕℙ-ℝℤΩℨK-ℭℰ-ℳℾℿⅅↃⰀ-ⰮⱠⱢ-ⱤⱧⱩⱫⱭ-ⱰⱲⱵⱾ-ⲀⲂⲄⲆⲈⲊⲌⲎⲐⲒⲔⲖⲘⲚⲜⲞⲠⲢⲤⲦⲨⲪⲬⲮⲰⲲⲴⲶⲸⲺⲼⲾⳀⳂⳄⳆⳈⳊⳌⳎⳐⳒⳔⳖⳘⳚⳜⳞⳠⳢⳫⳭⳲꙀꙂꙄꙆꙈꙊꙌꙎꙐꙒꙔꙖꙘꙚꙜꙞꙠꙢꙤꙦꙨꙪꙬꚀꚂꚄꚆꚈꚊꚌꚎꚐꚒꚔꚖꚘꚚꜢꜤꜦꜨꜪꜬꜮꜲꜴꜶꜸꜺꜼꜾꝀꝂꝄꝆꝈꝊꝌꝎꝐꝒꝔꝖꝘꝚꝜꝞꝠꝢꝤꝦꝨꝪꝬꝮꝹꝻꝽꝾꞀꞂꞄꞆꞋꞍꞐꞒꞖꞘꞚꞜꞞꞠꞢꞤꞦꞨꞪ-ꞮꞰ-ꞴꞶＡ-Ｚ",astral:"\ud801[\udc00-\udc27\udcb0-\udcd3]|\ud803[\udc80-\udcb2]|\ud806[\udca0-\udcbf]|\ud835[\udc00-\udc19\udc34-\udc4d\udc68-\udc81\udc9c\udc9e\udc9f\udca2\udca5\udca6\udca9-\udcac\udcae-\udcb5\udcd0-\udce9\udd04\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd38\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd6c-\udd85\udda0-\uddb9\uddd4-\udded\ude08-\ude21\ude3c-\ude55\ude70-\ude89\udea8-\udec0\udee2-\udefa\udf1c-\udf34\udf56-\udf6e\udf90-\udfa8\udfca]|\ud83a[\udd00-\udd21]"},{name:"M",alias:"Mark",bmp:"̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఀ-ఃా-ౄె-ైొ-్ౕౖౢౣಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝᠋-᠍ᢅᢆᢩᤠ-ᤫᤰ-᤻ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼᪰-᪾ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-ᮭ᯦-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷻-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣠-꣱ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꧥꨩ-ꨶꩃꩌꩍꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭ﬞ︀-️︠-︯",astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc00-\udc02\udc38-\udc46\udc7f-\udc82\udcb0-\udcba\udd00-\udd02\udd27-\udd34\udd73\udd80-\udd82\uddb3-\uddc0\uddca-\uddcc\ude2c-\ude37\ude3e\udedf-\udeea\udf00-\udf03\udf3c\udf3e-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc35-\udc46\udcb0-\udcc3\uddaf-\uddb5\uddb8-\uddc0\udddc\udddd\ude30-\ude40\udeab-\udeb7\udf1d-\udf2b]|\ud807[\udc2f-\udc36\udc38-\udc3f\udc92-\udca7\udca9-\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf51-\udf7e\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},{name:"Mc",alias:"Spacing_Mark",bmp:"ःऻा-ीॉ-ौॎॏংঃা-ীেৈোৌৗਃਾ-ੀઃા-ીૉોૌଂଃାୀେୈୋୌୗாிுூெ-ைொ-ௌௗఁ-ఃు-ౄಂಃಾೀ-ೄೇೈೊೋೕೖംഃാ-ീെ-ൈൊ-ൌൗංඃා-ෑෘ-ෟෲෳ༾༿ཿါာေးျြၖၗၢ-ၤၧ-ၭႃႄႇ-ႌႏႚ-ႜាើ-ៅះៈᤣ-ᤦᤩ-ᤫᤰᤱᤳ-ᤸᨙᨚᩕᩗᩡᩣᩤᩭ-ᩲᬄᬵᬻᬽ-ᭁᭃ᭄ᮂᮡᮦᮧ᮪ᯧᯪ-ᯬᯮ᯲᯳ᰤ-ᰫᰴᰵ᳡ᳲᳳ〮〯ꠣꠤꠧꢀꢁꢴ-ꣃꥒ꥓ꦃꦴꦵꦺꦻꦽ-꧀ꨯꨰꨳꨴꩍꩻꩽꫫꫮꫯꫵꯣꯤꯦꯧꯩꯪ꯬",astral:"\ud804[\udc00\udc02\udc82\udcb0-\udcb2\udcb7\udcb8\udd2c\udd82\uddb3-\uddb5\uddbf\uddc0\ude2c-\ude2e\ude32\ude33\ude35\udee0-\udee2\udf02\udf03\udf3e\udf3f\udf41-\udf44\udf47\udf48\udf4b-\udf4d\udf57\udf62\udf63]|\ud805[\udc35-\udc37\udc40\udc41\udc45\udcb0-\udcb2\udcb9\udcbb-\udcbe\udcc1\uddaf-\uddb1\uddb8-\uddbb\uddbe\ude30-\ude32\ude3b\ude3c\ude3e\udeac\udeae\udeaf\udeb6\udf20\udf21\udf26]|\ud807[\udc2f\udc3e\udca9\udcb1\udcb4]|\ud81b[\udf51-\udf7e]|\ud834[\udd65\udd66\udd6d-\udd72]"},{name:"Me",alias:"Enclosing_Mark",bmp:"҈҉᪾⃝-⃠⃢-⃤꙰-꙲"},{name:"Mn",alias:"Nonspacing_Mark",bmp:"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣔ-ࣣ࣡-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ఀా-ీె-ైొ-్ౕౖౢౣಁ಼ಿೆೌ್ೢೣഁു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢅᢆᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᮫-ᮭ᯦ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸᳹᷀-᷵᷻-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄ꣅ꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱꨲꨵꨶꩃꩌꩼꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︯",astral:"\ud800[\uddfd\udee0\udf76-\udf7a]|\ud802[\ude01-\ude03\ude05\ude06\ude0c-\ude0f\ude38-\ude3a\ude3f\udee5\udee6]|\ud804[\udc01\udc38-\udc46\udc7f-\udc81\udcb3-\udcb6\udcb9\udcba\udd00-\udd02\udd27-\udd2b\udd2d-\udd34\udd73\udd80\udd81\uddb6-\uddbe\uddca-\uddcc\ude2f-\ude31\ude34\ude36\ude37\ude3e\udedf\udee3-\udeea\udf00\udf01\udf3c\udf40\udf66-\udf6c\udf70-\udf74]|\ud805[\udc38-\udc3f\udc42-\udc44\udc46\udcb3-\udcb8\udcba\udcbf\udcc0\udcc2\udcc3\uddb2-\uddb5\uddbc\uddbd\uddbf\uddc0\udddc\udddd\ude33-\ude3a\ude3d\ude3f\ude40\udeab\udead\udeb0-\udeb5\udeb7\udf1d-\udf1f\udf22-\udf25\udf27-\udf2b]|\ud807[\udc30-\udc36\udc38-\udc3d\udc3f\udc92-\udca7\udcaa-\udcb0\udcb2\udcb3\udcb5\udcb6]|\ud81a[\udef0-\udef4\udf30-\udf36]|\ud81b[\udf8f-\udf92]|\ud82f[\udc9d\udc9e]|\ud834[\udd67-\udd69\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23\udc24\udc26-\udc2a]|\ud83a[\udcd0-\udcd6\udd44-\udd4a]|\udb40[\udd00-\uddef]"},{name:"N",alias:"Number",bmp:"0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൘-൞൦-൸෦-෯๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹０-９",astral:"\ud800[\udd07-\udd33\udd40-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23\udf41\udf4a\udfd1-\udfd5]|\ud801[\udca0-\udca9]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udde1-\uddf4\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf3b]|\ud806[\udce0-\udcf2]|\ud807[\udc50-\udc6c]|\ud809[\udc00-\udc6e]|\ud81a[\ude60-\ude69\udf50-\udf59\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud835[\udfce-\udfff]|\ud83a[\udcc7-\udccf\udd50-\udd59]|\ud83c[\udd00-\udd0c]"},{name:"Nd",alias:"Decimal_Number",bmp:"0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹０-９",astral:"\ud801[\udca0-\udca9]|\ud804[\udc66-\udc6f\udcf0-\udcf9\udd36-\udd3f\uddd0-\uddd9\udef0-\udef9]|\ud805[\udc50-\udc59\udcd0-\udcd9\ude50-\ude59\udec0-\udec9\udf30-\udf39]|\ud806[\udce0-\udce9]|\ud807[\udc50-\udc59]|\ud81a[\ude60-\ude69\udf50-\udf59]|\ud835[\udfce-\udfff]|\ud83a[\udd50-\udd59]"},{name:"Nl",alias:"Letter_Number",bmp:"ᛮ-ᛰⅠ-ↂↅ-ↈ〇〡-〩〸-〺ꛦ-ꛯ",astral:"\ud800[\udd40-\udd74\udf41\udf4a\udfd1-\udfd5]|\ud809[\udc00-\udc6e]"},{name:"No",alias:"Other_Number",bmp:"²³¹¼-¾৴-৹୲-୷௰-௲౸-౾൘-൞൰-൸༪-༳፩-፼៰-៹᧚⁰⁴-⁹₀-₉⅐-⅟↉①-⒛⓪-⓿❶-➓⳽㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꠰-꠵",astral:"\ud800[\udd07-\udd33\udd75-\udd78\udd8a\udd8b\udee1-\udefb\udf20-\udf23]|\ud802[\udc58-\udc5f\udc79-\udc7f\udca7-\udcaf\udcfb-\udcff\udd16-\udd1b\uddbc\uddbd\uddc0-\uddcf\uddd2-\uddff\ude40-\ude47\ude7d\ude7e\ude9d-\ude9f\udeeb-\udeef\udf58-\udf5f\udf78-\udf7f\udfa9-\udfaf]|\ud803[\udcfa-\udcff\ude60-\ude7e]|\ud804[\udc52-\udc65\udde1-\uddf4]|\ud805[\udf3a\udf3b]|\ud806[\udcea-\udcf2]|\ud807[\udc5a-\udc6c]|\ud81a[\udf5b-\udf61]|\ud834[\udf60-\udf71]|\ud83a[\udcc7-\udccf]|\ud83c[\udd00-\udd0c]"},{name:"P",alias:"Punctuation",bmp:"!-#%-\\x2A,-/:;\\x3F@\\x5B-\\x5D_\\x7B}¡§«¶·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰૰෴๏๚๛༄-༒༔༺-༽྅࿐-࿔࿙࿚၊-၏჻፠-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳀-᳇᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎⌈-⌋〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰-⹄、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꣼꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꫰꫱꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫！-＃％-＊，-／：；？＠［-］＿｛｝｟-･",astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|𐕯|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|𛲟|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},{name:"Pc",alias:"Connector_Punctuation",bmp:"_‿⁀⁔︳︴﹍-﹏＿"},{name:"Pd",alias:"Dash_Punctuation",bmp:"\\x2D֊־᐀᠆‐-―⸗⸚⸺⸻⹀〜〰゠︱︲﹘﹣－"},{name:"Pe",alias:"Close_Punctuation",bmp:"\\x29\\x5D}༻༽᚜⁆⁾₎⌉⌋〉❩❫❭❯❱❳❵⟆⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽⸣⸥⸧⸩〉》」』】〕〗〙〛〞〟﴾︘︶︸︺︼︾﹀﹂﹄﹈﹚﹜﹞）］｝｠｣"},{name:"Pf",alias:"Final_Punctuation",bmp:"»’”›⸃⸅⸊⸍⸝⸡"},{name:"Pi",alias:"Initial_Punctuation",bmp:"«‘‛“‟‹⸂⸄⸉⸌⸜⸠"},{name:"Po",alias:"Other_Punctuation",bmp:"!-#%-'\\x2A,\\x2E/:;\\x3F@\\x5C¡§¶·¿;·՚-՟։׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰૰෴๏๚๛༄-༒༔྅࿐-࿔࿙࿚၊-၏჻፠-፨᙭᙮᛫-᛭᜵᜶។-៖៘-៚᠀-᠅᠇-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳀-᳇᳓‖‗†-‧‰-‸※-‾⁁-⁃⁇-⁑⁓⁕-⁞⳹-⳼⳾⳿⵰⸀⸁⸆-⸈⸋⸎-⸖⸘⸙⸛⸞⸟⸪-⸮⸰-⸹⸼-⸿⹁⹃⹄、-〃〽・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꣼꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꫰꫱꯫︐-︖︙︰﹅﹆﹉-﹌﹐-﹒﹔-﹗﹟-﹡﹨﹪﹫！-＃％-＇＊，．／：；？＠＼｡､･",astral:"\ud800[\udd00-\udd02\udf9f\udfd0]|𐕯|\ud802[\udc57\udd1f\udd3f\ude50-\ude58\ude7f\udef0-\udef6\udf39-\udf3f\udf99-\udf9c]|\ud804[\udc47-\udc4d\udcbb\udcbc\udcbe-\udcc1\udd40-\udd43\udd74\udd75\uddc5-\uddc9\uddcd\udddb\udddd-\udddf\ude38-\ude3d\udea9]|\ud805[\udc4b-\udc4f\udc5b\udc5d\udcc6\uddc1-\uddd7\ude41-\ude43\ude60-\ude6c\udf3c-\udf3e]|\ud807[\udc41-\udc45\udc70\udc71]|\ud809[\udc70-\udc74]|\ud81a[\ude6e\ude6f\udef5\udf37-\udf3b\udf44]|𛲟|\ud836[\ude87-\ude8b]|\ud83a[\udd5e\udd5f]"},{name:"Ps",alias:"Open_Punctuation",bmp:"\\x28\\x5B\\x7B༺༼᚛‚„⁅⁽₍⌈⌊〈❨❪❬❮❰❲❴⟅⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼⸢⸤⸦⸨⹂〈《「『【〔〖〘〚〝﴿︗︵︷︹︻︽︿﹁﹃﹇﹙﹛﹝（［｛｟｢"},{name:"S",alias:"Symbol",bmp:"\\x24\\x2B<->\\x5E`\\x7C~¢-¦¨©¬®-±´¸×÷˂-˅˒-˟˥-˫˭˯-˿͵΄΅϶҂֍-֏؆-؈؋؎؏۞۩۽۾߶৲৳৺৻૱୰௳-௺౿൏൹฿༁-༃༓༕-༗༚-༟༴༶༸྾-࿅࿇-࿌࿎࿏࿕-࿘႞႟᎐-᎙៛᥀᧞-᧿᭡-᭪᭴-᭼᾽᾿-῁῍-῏῝-῟῭-`´῾⁄⁒⁺-⁼₊-₌₠-₾℀℁℃-℆℈℉℔№-℘℞-℣℥℧℩℮℺℻⅀-⅄⅊-⅍⅏↊↋←-⌇⌌-⌨⌫-⏾␀-␦⑀-⑊⒜-ⓩ─-❧➔-⟄⟇-⟥⟰-⦂⦙-⧗⧜-⧻⧾-⭳⭶-⮕⮘-⮹⮽-⯈⯊-⯑⯬-⯯⳥-⳪⺀-⺙⺛-⻳⼀-⿕⿰-⿻〄〒〓〠〶〷〾〿゛゜㆐㆑㆖-㆟㇀-㇣㈀-㈞㈪-㉇㉐㉠-㉿㊊-㊰㋀-㋾㌀-㏿䷀-䷿꒐-꓆꜀-꜖꜠꜡꞉꞊꠨-꠫꠶-꠹꩷-꩹꭛﬩﮲-﯁﷼﷽﹢﹤-﹦﹩＄＋＜-＞＾｀｜～￠-￦￨-￮￼�",astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|𑜿|\ud81a[\udf3c-\udf3f\udf45]|𛲜|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83b[\udef0\udef1]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udfff]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},{name:"Sc",alias:"Currency_Symbol",bmp:"\\x24¢-¥֏؋৲৳৻૱௹฿៛₠-₾꠸﷼﹩＄￠￡￥￦"},{name:"Sk",alias:"Modifier_Symbol",bmp:"\\x5E`¨¯´¸˂-˅˒-˟˥-˫˭˯-˿͵΄΅᾽᾿-῁῍-῏῝-῟῭-`´῾゛゜꜀-꜖꜠꜡꞉꞊꭛﮲-﯁＾｀￣",astral:"\ud83c[\udffb-\udfff]"},{name:"Sm",alias:"Math_Symbol",bmp:"\\x2B<->\\x7C~¬±×÷϶؆-؈⁄⁒⁺-⁼₊-₌℘⅀-⅄⅋←-↔↚↛↠↣↦↮⇎⇏⇒⇔⇴-⋿⌠⌡⍼⎛-⎳⏜-⏡▷◁◸-◿♯⟀-⟄⟇-⟥⟰-⟿⤀-⦂⦙-⧗⧜-⧻⧾-⫿⬰-⭄⭇-⭌﬩﹢﹤-﹦＋＜-＞｜～￢￩-￬",astral:"\ud835[\udec1\udedb\udefb\udf15\udf35\udf4f\udf6f\udf89\udfa9\udfc3]|\ud83b[\udef0\udef1]"},{name:"So",alias:"Other_Symbol",bmp:"¦©®°҂֍֎؎؏۞۩۽۾߶৺୰௳-௸௺౿൏൹༁-༃༓༕-༗༚-༟༴༶༸྾-࿅࿇-࿌࿎࿏࿕-࿘႞႟᎐-᎙᥀᧞-᧿᭡-᭪᭴-᭼℀℁℃-℆℈℉℔№℗℞-℣℥℧℩℮℺℻⅊⅌⅍⅏↊↋↕-↙↜-↟↡↢↤↥↧-↭↯-⇍⇐⇑⇓⇕-⇳⌀-⌇⌌-⌟⌢-⌨⌫-⍻⍽-⎚⎴-⏛⏢-⏾␀-␦⑀-⑊⒜-ⓩ─-▶▸-◀◂-◷☀-♮♰-❧➔-➿⠀-⣿⬀-⬯⭅⭆⭍-⭳⭶-⮕⮘-⮹⮽-⯈⯊-⯑⯬-⯯⳥-⳪⺀-⺙⺛-⻳⼀-⿕⿰-⿻〄〒〓〠〶〷〾〿㆐㆑㆖-㆟㇀-㇣㈀-㈞㈪-㉇㉐㉠-㉿㊊-㊰㋀-㋾㌀-㏿䷀-䷿꒐-꓆꠨-꠫꠶꠷꠹꩷-꩹﷽￤￨￭￮￼�",astral:"\ud800[\udd37-\udd3f\udd79-\udd89\udd8c-\udd8e\udd90-\udd9b\udda0\uddd0-\uddfc]|\ud802[\udc77\udc78\udec8]|𑜿|\ud81a[\udf3c-\udf3f\udf45]|𛲜|\ud834[\udc00-\udcf5\udd00-\udd26\udd29-\udd64\udd6a-\udd6c\udd83\udd84\udd8c-\udda9\uddae-\udde8\ude00-\ude41\ude45\udf00-\udf56]|\ud836[\udc00-\uddff\ude37-\ude3a\ude6d-\ude74\ude76-\ude83\ude85\ude86]|\ud83c[\udc00-\udc2b\udc30-\udc93\udca0-\udcae\udcb1-\udcbf\udcc1-\udccf\udcd1-\udcf5\udd10-\udd2e\udd30-\udd6b\udd70-\uddac\udde6-\ude02\ude10-\ude3b\ude40-\ude48\ude50\ude51\udf00-\udffa]|\ud83d[\udc00-\uded2\udee0-\udeec\udef0-\udef6\udf00-\udf73\udf80-\udfd4]|\ud83e[\udc00-\udc0b\udc10-\udc47\udc50-\udc59\udc60-\udc87\udc90-\udcad\udd10-\udd1e\udd20-\udd27\udd30\udd33-\udd3e\udd40-\udd4b\udd50-\udd5e\udd80-\udd91\uddc0]"},{name:"Z",alias:"Separator",bmp:"    - \u2028\u2029  　"},{name:"Zl",alias:"Line_Separator",bmp:"\u2028"},{name:"Zp",alias:"Paragraph_Separator",bmp:"\u2029"},{name:"Zs",alias:"Space_Separator",bmp:"    -   　"}])},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
  /*!
   * XRegExp Unicode Blocks 4.0.0
   * <xregexp.com>
   * Steven Levithan (c) 2010-2017 MIT License
   * Unicode data by Mathias Bynens <mathiasbynens.be>
   */
  t.default=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");e.addUnicodeData([{name:"InAdlam",astral:"\ud83a[\udd00-\udd5f]"},{name:"InAegean_Numbers",astral:"\ud800[\udd00-\udd3f]"},{name:"InAhom",astral:"\ud805[\udf00-\udf3f]"},{name:"InAlchemical_Symbols",astral:"\ud83d[\udf00-\udf7f]"},{name:"InAlphabetic_Presentation_Forms",bmp:"ﬀ-ﭏ"},{name:"InAnatolian_Hieroglyphs",astral:"\ud811[\udc00-\ude7f]"},{name:"InAncient_Greek_Musical_Notation",astral:"\ud834[\ude00-\ude4f]"},{name:"InAncient_Greek_Numbers",astral:"\ud800[\udd40-\udd8f]"},{name:"InAncient_Symbols",astral:"\ud800[\udd90-\uddcf]"},{name:"InArabic",bmp:"؀-ۿ"},{name:"InArabic_Extended_A",bmp:"ࢠ-ࣿ"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\ud83b[\ude00-\udeff]"},{name:"InArabic_Presentation_Forms_A",bmp:"ﭐ-﷿"},{name:"InArabic_Presentation_Forms_B",bmp:"ﹰ-\ufeff"},{name:"InArabic_Supplement",bmp:"ݐ-ݿ"},{name:"InArmenian",bmp:"԰-֏"},{name:"InArrows",bmp:"←-⇿"},{name:"InAvestan",astral:"\ud802[\udf00-\udf3f]"},{name:"InBalinese",bmp:"ᬀ-᭿"},{name:"InBamum",bmp:"ꚠ-꛿"},{name:"InBamum_Supplement",astral:"\ud81a[\udc00-\ude3f]"},{name:"InBasic_Latin",bmp:"\0-"},{name:"InBassa_Vah",astral:"\ud81a[\uded0-\udeff]"},{name:"InBatak",bmp:"ᯀ-᯿"},{name:"InBengali",bmp:"ঀ-৿"},{name:"InBhaiksuki",astral:"\ud807[\udc00-\udc6f]"},{name:"InBlock_Elements",bmp:"▀-▟"},{name:"InBopomofo",bmp:"㄀-ㄯ"},{name:"InBopomofo_Extended",bmp:"ㆠ-ㆿ"},{name:"InBox_Drawing",bmp:"─-╿"},{name:"InBrahmi",astral:"\ud804[\udc00-\udc7f]"},{name:"InBraille_Patterns",bmp:"⠀-⣿"},{name:"InBuginese",bmp:"ᨀ-᨟"},{name:"InBuhid",bmp:"ᝀ-᝟"},{name:"InByzantine_Musical_Symbols",astral:"\ud834[\udc00-\udcff]"},{name:"InCJK_Compatibility",bmp:"㌀-㏿"},{name:"InCJK_Compatibility_Forms",bmp:"︰-﹏"},{name:"InCJK_Compatibility_Ideographs",bmp:"豈-﫿"},{name:"InCJK_Compatibility_Ideographs_Supplement",astral:"\ud87e[\udc00-\ude1f]"},{name:"InCJK_Radicals_Supplement",bmp:"⺀-⻿"},{name:"InCJK_Strokes",bmp:"㇀-㇯"},{name:"InCJK_Symbols_and_Punctuation",bmp:"　-〿"},{name:"InCJK_Unified_Ideographs",bmp:"一-鿿"},{name:"InCJK_Unified_Ideographs_Extension_A",bmp:"㐀-䶿"},{name:"InCJK_Unified_Ideographs_Extension_B",astral:"[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\udedf]"},{name:"InCJK_Unified_Ideographs_Extension_C",astral:"\ud869[\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf3f]"},{name:"InCJK_Unified_Ideographs_Extension_D",astral:"\ud86d[\udf40-\udfff]|\ud86e[\udc00-\udc1f]"},{name:"InCJK_Unified_Ideographs_Extension_E",astral:"\ud86e[\udc20-\udfff]|[\ud86f-\ud872][\udc00-\udfff]|\ud873[\udc00-\udeaf]"},{name:"InCarian",astral:"\ud800[\udea0-\udedf]"},{name:"InCaucasian_Albanian",astral:"\ud801[\udd30-\udd6f]"},{name:"InChakma",astral:"\ud804[\udd00-\udd4f]"},{name:"InCham",bmp:"ꨀ-꩟"},{name:"InCherokee",bmp:"Ꭰ-᏿"},{name:"InCherokee_Supplement",bmp:"ꭰ-ꮿ"},{name:"InCombining_Diacritical_Marks",bmp:"̀-ͯ"},{name:"InCombining_Diacritical_Marks_Extended",bmp:"᪰-᫿"},{name:"InCombining_Diacritical_Marks_Supplement",bmp:"᷀-᷿"},{name:"InCombining_Diacritical_Marks_for_Symbols",bmp:"⃐-⃿"},{name:"InCombining_Half_Marks",bmp:"︠-︯"},{name:"InCommon_Indic_Number_Forms",bmp:"꠰-꠿"},{name:"InControl_Pictures",bmp:"␀-␿"},{name:"InCoptic",bmp:"Ⲁ-⳿"},{name:"InCoptic_Epact_Numbers",astral:"\ud800[\udee0-\udeff]"},{name:"InCounting_Rod_Numerals",astral:"\ud834[\udf60-\udf7f]"},{name:"InCuneiform",astral:"\ud808[\udc00-\udfff]"},{name:"InCuneiform_Numbers_and_Punctuation",astral:"\ud809[\udc00-\udc7f]"},{name:"InCurrency_Symbols",bmp:"₠-⃏"},{name:"InCypriot_Syllabary",astral:"\ud802[\udc00-\udc3f]"},{name:"InCyrillic",bmp:"Ѐ-ӿ"},{name:"InCyrillic_Extended_A",bmp:"ⷠ-ⷿ"},{name:"InCyrillic_Extended_B",bmp:"Ꙁ-ꚟ"},{name:"InCyrillic_Extended_C",bmp:"ᲀ-᲏"},{name:"InCyrillic_Supplement",bmp:"Ԁ-ԯ"},{name:"InDeseret",astral:"\ud801[\udc00-\udc4f]"},{name:"InDevanagari",bmp:"ऀ-ॿ"},{name:"InDevanagari_Extended",bmp:"꣠-ꣿ"},{name:"InDingbats",bmp:"✀-➿"},{name:"InDomino_Tiles",astral:"\ud83c[\udc30-\udc9f]"},{name:"InDuployan",astral:"\ud82f[\udc00-\udc9f]"},{name:"InEarly_Dynastic_Cuneiform",astral:"\ud809[\udc80-\udd4f]"},{name:"InEgyptian_Hieroglyphs",astral:"\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2f]"},{name:"InElbasan",astral:"\ud801[\udd00-\udd2f]"},{name:"InEmoticons",astral:"\ud83d[\ude00-\ude4f]"},{name:"InEnclosed_Alphanumeric_Supplement",astral:"\ud83c[\udd00-\uddff]"},{name:"InEnclosed_Alphanumerics",bmp:"①-⓿"},{name:"InEnclosed_CJK_Letters_and_Months",bmp:"㈀-㋿"},{name:"InEnclosed_Ideographic_Supplement",astral:"\ud83c[\ude00-\udeff]"},{name:"InEthiopic",bmp:"ሀ-፿"},{name:"InEthiopic_Extended",bmp:"ⶀ-⷟"},{name:"InEthiopic_Extended_A",bmp:"꬀-꬯"},{name:"InEthiopic_Supplement",bmp:"ᎀ-᎟"},{name:"InGeneral_Punctuation",bmp:" -⁯"},{name:"InGeometric_Shapes",bmp:"■-◿"},{name:"InGeometric_Shapes_Extended",astral:"\ud83d[\udf80-\udfff]"},{name:"InGeorgian",bmp:"Ⴀ-ჿ"},{name:"InGeorgian_Supplement",bmp:"ⴀ-⴯"},{name:"InGlagolitic",bmp:"Ⰰ-ⱟ"},{name:"InGlagolitic_Supplement",astral:"\ud838[\udc00-\udc2f]"},{name:"InGothic",astral:"\ud800[\udf30-\udf4f]"},{name:"InGrantha",astral:"\ud804[\udf00-\udf7f]"},{name:"InGreek_Extended",bmp:"ἀ-῿"},{name:"InGreek_and_Coptic",bmp:"Ͱ-Ͽ"},{name:"InGujarati",bmp:"઀-૿"},{name:"InGurmukhi",bmp:"਀-੿"},{name:"InHalfwidth_and_Fullwidth_Forms",bmp:"＀-￯"},{name:"InHangul_Compatibility_Jamo",bmp:"㄰-㆏"},{name:"InHangul_Jamo",bmp:"ᄀ-ᇿ"},{name:"InHangul_Jamo_Extended_A",bmp:"ꥠ-꥿"},{name:"InHangul_Jamo_Extended_B",bmp:"ힰ-퟿"},{name:"InHangul_Syllables",bmp:"가-힯"},{name:"InHanunoo",bmp:"ᜠ-᜿"},{name:"InHatran",astral:"\ud802[\udce0-\udcff]"},{name:"InHebrew",bmp:"֐-׿"},{name:"InHigh_Private_Use_Surrogates",bmp:"\udb80-\udbff"},{name:"InHigh_Surrogates",bmp:"\ud800-\udb7f"},{name:"InHiragana",bmp:"぀-ゟ"},{name:"InIPA_Extensions",bmp:"ɐ-ʯ"},{name:"InIdeographic_Description_Characters",bmp:"⿰-⿿"},{name:"InIdeographic_Symbols_and_Punctuation",astral:"\ud81b[\udfe0-\udfff]"},{name:"InImperial_Aramaic",astral:"\ud802[\udc40-\udc5f]"},{name:"InInscriptional_Pahlavi",astral:"\ud802[\udf60-\udf7f]"},{name:"InInscriptional_Parthian",astral:"\ud802[\udf40-\udf5f]"},{name:"InJavanese",bmp:"ꦀ-꧟"},{name:"InKaithi",astral:"\ud804[\udc80-\udccf]"},{name:"InKana_Supplement",astral:"\ud82c[\udc00-\udcff]"},{name:"InKanbun",bmp:"㆐-㆟"},{name:"InKangxi_Radicals",bmp:"⼀-⿟"},{name:"InKannada",bmp:"ಀ-೿"},{name:"InKatakana",bmp:"゠-ヿ"},{name:"InKatakana_Phonetic_Extensions",bmp:"ㇰ-ㇿ"},{name:"InKayah_Li",bmp:"꤀-꤯"},{name:"InKharoshthi",astral:"\ud802[\ude00-\ude5f]"},{name:"InKhmer",bmp:"ក-៿"},{name:"InKhmer_Symbols",bmp:"᧠-᧿"},{name:"InKhojki",astral:"\ud804[\ude00-\ude4f]"},{name:"InKhudawadi",astral:"\ud804[\udeb0-\udeff]"},{name:"InLao",bmp:"຀-໿"},{name:"InLatin_Extended_Additional",bmp:"Ḁ-ỿ"},{name:"InLatin_Extended_A",bmp:"Ā-ſ"},{name:"InLatin_Extended_B",bmp:"ƀ-ɏ"},{name:"InLatin_Extended_C",bmp:"Ⱡ-Ɀ"},{name:"InLatin_Extended_D",bmp:"꜠-ꟿ"},{name:"InLatin_Extended_E",bmp:"ꬰ-꭯"},{name:"InLatin_1_Supplement",bmp:"-ÿ"},{name:"InLepcha",bmp:"ᰀ-ᱏ"},{name:"InLetterlike_Symbols",bmp:"℀-⅏"},{name:"InLimbu",bmp:"ᤀ-᥏"},{name:"InLinear_A",astral:"\ud801[\ude00-\udf7f]"},{name:"InLinear_B_Ideograms",astral:"\ud800[\udc80-\udcff]"},{name:"InLinear_B_Syllabary",astral:"\ud800[\udc00-\udc7f]"},{name:"InLisu",bmp:"ꓐ-꓿"},{name:"InLow_Surrogates",bmp:"\udc00-\udfff"},{name:"InLycian",astral:"\ud800[\ude80-\ude9f]"},{name:"InLydian",astral:"\ud802[\udd20-\udd3f]"},{name:"InMahajani",astral:"\ud804[\udd50-\udd7f]"},{name:"InMahjong_Tiles",astral:"\ud83c[\udc00-\udc2f]"},{name:"InMalayalam",bmp:"ഀ-ൿ"},{name:"InMandaic",bmp:"ࡀ-࡟"},{name:"InManichaean",astral:"\ud802[\udec0-\udeff]"},{name:"InMarchen",astral:"\ud807[\udc70-\udcbf]"},{name:"InMathematical_Alphanumeric_Symbols",astral:"\ud835[\udc00-\udfff]"},{name:"InMathematical_Operators",bmp:"∀-⋿"},{name:"InMeetei_Mayek",bmp:"ꯀ-꯿"},{name:"InMeetei_Mayek_Extensions",bmp:"ꫠ-꫿"},{name:"InMende_Kikakui",astral:"\ud83a[\udc00-\udcdf]"},{name:"InMeroitic_Cursive",astral:"\ud802[\udda0-\uddff]"},{name:"InMeroitic_Hieroglyphs",astral:"\ud802[\udd80-\udd9f]"},{name:"InMiao",astral:"\ud81b[\udf00-\udf9f]"},{name:"InMiscellaneous_Mathematical_Symbols_A",bmp:"⟀-⟯"},{name:"InMiscellaneous_Mathematical_Symbols_B",bmp:"⦀-⧿"},{name:"InMiscellaneous_Symbols",bmp:"☀-⛿"},{name:"InMiscellaneous_Symbols_and_Arrows",bmp:"⬀-⯿"},{name:"InMiscellaneous_Symbols_and_Pictographs",astral:"\ud83c[\udf00-\udfff]|\ud83d[\udc00-\uddff]"},{name:"InMiscellaneous_Technical",bmp:"⌀-⏿"},{name:"InModi",astral:"\ud805[\ude00-\ude5f]"},{name:"InModifier_Tone_Letters",bmp:"꜀-ꜟ"},{name:"InMongolian",bmp:"᠀-᢯"},{name:"InMongolian_Supplement",astral:"\ud805[\ude60-\ude7f]"},{name:"InMro",astral:"\ud81a[\ude40-\ude6f]"},{name:"InMultani",astral:"\ud804[\ude80-\udeaf]"},{name:"InMusical_Symbols",astral:"\ud834[\udd00-\uddff]"},{name:"InMyanmar",bmp:"က-႟"},{name:"InMyanmar_Extended_A",bmp:"ꩠ-ꩿ"},{name:"InMyanmar_Extended_B",bmp:"ꧠ-꧿"},{name:"InNKo",bmp:"߀-߿"},{name:"InNabataean",astral:"\ud802[\udc80-\udcaf]"},{name:"InNew_Tai_Lue",bmp:"ᦀ-᧟"},{name:"InNewa",astral:"\ud805[\udc00-\udc7f]"},{name:"InNumber_Forms",bmp:"⅐-↏"},{name:"InOgham",bmp:" -᚟"},{name:"InOl_Chiki",bmp:"᱐-᱿"},{name:"InOld_Hungarian",astral:"\ud803[\udc80-\udcff]"},{name:"InOld_Italic",astral:"\ud800[\udf00-\udf2f]"},{name:"InOld_North_Arabian",astral:"\ud802[\ude80-\ude9f]"},{name:"InOld_Permic",astral:"\ud800[\udf50-\udf7f]"},{name:"InOld_Persian",astral:"\ud800[\udfa0-\udfdf]"},{name:"InOld_South_Arabian",astral:"\ud802[\ude60-\ude7f]"},{name:"InOld_Turkic",astral:"\ud803[\udc00-\udc4f]"},{name:"InOptical_Character_Recognition",bmp:"⑀-⑟"},{name:"InOriya",bmp:"଀-୿"},{name:"InOrnamental_Dingbats",astral:"\ud83d[\ude50-\ude7f]"},{name:"InOsage",astral:"\ud801[\udcb0-\udcff]"},{name:"InOsmanya",astral:"\ud801[\udc80-\udcaf]"},{name:"InPahawh_Hmong",astral:"\ud81a[\udf00-\udf8f]"},{name:"InPalmyrene",astral:"\ud802[\udc60-\udc7f]"},{name:"InPau_Cin_Hau",astral:"\ud806[\udec0-\udeff]"},{name:"InPhags_pa",bmp:"ꡀ-꡿"},{name:"InPhaistos_Disc",astral:"\ud800[\uddd0-\uddff]"},{name:"InPhoenician",astral:"\ud802[\udd00-\udd1f]"},{name:"InPhonetic_Extensions",bmp:"ᴀ-ᵿ"},{name:"InPhonetic_Extensions_Supplement",bmp:"ᶀ-ᶿ"},{name:"InPlaying_Cards",astral:"\ud83c[\udca0-\udcff]"},{name:"InPrivate_Use_Area",bmp:"-"},{name:"InPsalter_Pahlavi",astral:"\ud802[\udf80-\udfaf]"},{name:"InRejang",bmp:"ꤰ-꥟"},{name:"InRumi_Numeral_Symbols",astral:"\ud803[\ude60-\ude7f]"},{name:"InRunic",bmp:"ᚠ-᛿"},{name:"InSamaritan",bmp:"ࠀ-࠿"},{name:"InSaurashtra",bmp:"ꢀ-꣟"},{name:"InSharada",astral:"\ud804[\udd80-\udddf]"},{name:"InShavian",astral:"\ud801[\udc50-\udc7f]"},{name:"InShorthand_Format_Controls",astral:"\ud82f[\udca0-\udcaf]"},{name:"InSiddham",astral:"\ud805[\udd80-\uddff]"},{name:"InSinhala",bmp:"඀-෿"},{name:"InSinhala_Archaic_Numbers",astral:"\ud804[\udde0-\uddff]"},{name:"InSmall_Form_Variants",bmp:"﹐-﹯"},{name:"InSora_Sompeng",astral:"\ud804[\udcd0-\udcff]"},{name:"InSpacing_Modifier_Letters",bmp:"ʰ-˿"},{name:"InSpecials",bmp:"￰-"},{name:"InSundanese",bmp:"ᮀ-ᮿ"},{name:"InSundanese_Supplement",bmp:"᳀-᳏"},{name:"InSuperscripts_and_Subscripts",bmp:"⁰-₟"},{name:"InSupplemental_Arrows_A",bmp:"⟰-⟿"},{name:"InSupplemental_Arrows_B",bmp:"⤀-⥿"},{name:"InSupplemental_Arrows_C",astral:"\ud83e[\udc00-\udcff]"},{name:"InSupplemental_Mathematical_Operators",bmp:"⨀-⫿"},{name:"InSupplemental_Punctuation",bmp:"⸀-⹿"},{name:"InSupplemental_Symbols_and_Pictographs",astral:"\ud83e[\udd00-\uddff]"},{name:"InSupplementary_Private_Use_Area_A",astral:"[\udb80-\udbbf][\udc00-\udfff]"},{name:"InSupplementary_Private_Use_Area_B",astral:"[\udbc0-\udbff][\udc00-\udfff]"},{name:"InSutton_SignWriting",astral:"\ud836[\udc00-\udeaf]"},{name:"InSyloti_Nagri",bmp:"ꠀ-꠯"},{name:"InSyriac",bmp:"܀-ݏ"},{name:"InTagalog",bmp:"ᜀ-ᜟ"},{name:"InTagbanwa",bmp:"ᝠ-᝿"},{name:"InTags",astral:"\udb40[\udc00-\udc7f]"},{name:"InTai_Le",bmp:"ᥐ-᥿"},{name:"InTai_Tham",bmp:"ᨠ-᪯"},{name:"InTai_Viet",bmp:"ꪀ-꫟"},{name:"InTai_Xuan_Jing_Symbols",astral:"\ud834[\udf00-\udf5f]"},{name:"InTakri",astral:"\ud805[\ude80-\udecf]"},{name:"InTamil",bmp:"஀-௿"},{name:"InTangut",astral:"[\ud81c-\ud821][\udc00-\udfff]"},{name:"InTangut_Components",astral:"\ud822[\udc00-\udeff]"},{name:"InTelugu",bmp:"ఀ-౿"},{name:"InThaana",bmp:"ހ-޿"},{name:"InThai",bmp:"฀-๿"},{name:"InTibetan",bmp:"ༀ-࿿"},{name:"InTifinagh",bmp:"ⴰ-⵿"},{name:"InTirhuta",astral:"\ud805[\udc80-\udcdf]"},{name:"InTransport_and_Map_Symbols",astral:"\ud83d[\ude80-\udeff]"},{name:"InUgaritic",astral:"\ud800[\udf80-\udf9f]"},{name:"InUnified_Canadian_Aboriginal_Syllabics",bmp:"᐀-ᙿ"},{name:"InUnified_Canadian_Aboriginal_Syllabics_Extended",bmp:"ᢰ-᣿"},{name:"InVai",bmp:"ꔀ-꘿"},{name:"InVariation_Selectors",bmp:"︀-️"},{name:"InVariation_Selectors_Supplement",astral:"\udb40[\udd00-\uddef]"},{name:"InVedic_Extensions",bmp:"᳐-᳿"},{name:"InVertical_Forms",bmp:"︐-︟"},{name:"InWarang_Citi",astral:"\ud806[\udca0-\udcff]"},{name:"InYi_Radicals",bmp:"꒐-꓏"},{name:"InYi_Syllables",bmp:"ꀀ-꒏"},{name:"InYijing_Hexagram_Symbols",bmp:"䷀-䷿"}])},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
  /*!
   * XRegExp Unicode Base 4.0.0
   * <xregexp.com>
   * Steven Levithan (c) 2008-2017 MIT License
   */
  t.default=function(e){var t={},r=e._dec,n=e._hex,i=e._pad4;function u(e){return e.replace(/[- _]+/g,"").toLowerCase()}function o(e){var t=/^\\[xu](.+)/.exec(e);return t?r(t[1]):e.charCodeAt("\\"===e[0]?1:0)}function a(r){return t[r]["b!"]||(t[r]["b!"]=function(t){var r="",u=-1;return e.forEach(t,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(e){var t=o(e[1]);t>u+1&&(r+="\\u"+i(n(u+1)),t>u+2&&(r+="-\\u"+i(n(t-1)))),u=o(e[2]||e[1])}),u<65535&&(r+="\\u"+i(n(u+1)),u<65534&&(r+="-\\uFFFF")),r}(t[r].bmp))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(e,r,n){var i="P"===e[1]||!!e[2],o=-1!==n.indexOf("A"),f=u(e[4]||e[3]),d=t[f];if("P"===e[1]&&e[2])throw new SyntaxError("Invalid double negation "+e[0]);if(!t.hasOwnProperty(f))throw new SyntaxError("Unknown Unicode token "+e[0]);if(d.inverseOf){if(f=u(d.inverseOf),!t.hasOwnProperty(f))throw new ReferenceError("Unicode token missing data "+e[0]+" -> "+d.inverseOf);d=t[f],i=!i}if(!d.bmp&&!o)throw new SyntaxError("Astral mode required for Unicode token "+e[0]);if(o){if("class"===r)throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");return function(e,r){var n=r?"a!":"a=";return t[e][n]||(t[e][n]=function(e,r){var n=t[e],i="";return n.bmp&&!n.isBmpLast&&(i="["+n.bmp+"]"+(n.astral?"|":"")),n.astral&&(i+=n.astral),n.isBmpLast&&n.bmp&&(i+=(n.astral?"|":"")+"["+n.bmp+"]"),r?"(?:(?!"+i+")(?:[\ud800-\udbff][\udc00-\udfff]|[\0-]))":"(?:"+i+")"}(e,r))}(f,i)}return"class"===r?i?a(f):d.bmp:(i?"[^":"[")+d.bmp+"]"},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(r){for(var n=void 0,i=0;i<r.length;++i){if(!(n=r[i]).name)throw new Error("Unicode token requires name");if(!(n.inverseOf||n.bmp||n.astral))throw new Error("Unicode token has no character data "+n.name);t[u(n.name)]=n,n.alias&&(t[u(n.alias)]=n)}e.cache.flush("patterns")},e._getUnicodeProperty=function(e){var r=u(e);return t[r]}},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
  /*!
   * XRegExp.matchRecursive 4.0.0
   * <xregexp.com>
   * Steven Levithan (c) 2009-2017 MIT License
   */
  t.default=function(e){function t(e,t,r,n){return{name:e,value:t,start:r,end:n}}e.matchRecursive=function(r,n,i,u,o){u=u||"",o=o||{};var a=-1!==u.indexOf("g"),f=-1!==u.indexOf("y"),d=u.replace(/y/g,""),s=o.escapeChar,c=o.valueNames,h=[],l=0,p=0,b=0,y=0,m=void 0,g=void 0,v=void 0,_=void 0,w=void 0;if(n=e(n,d),i=e(i,d),s){if(s.length>1)throw new Error("Cannot use more than one escape character");s=e.escape(s),w=new RegExp("(?:"+s+"[\\S\\s]|(?:(?!"+e.union([n,i],"",{conjunction:"or"}).source+")[^"+s+"])+)+",u.replace(/[^imu]+/g,""))}for(;;){if(s&&(b+=(e.exec(r,w,b,"sticky")||[""])[0].length),v=e.exec(r,n,b),_=e.exec(r,i,b),v&&_&&(v.index<=_.index?_=null:v=null),v||_)b=(p=(v||_).index)+(v||_)[0].length;else if(!l)break;if(f&&!l&&p>y)break;if(v)l||(m=p,g=b),++l;else{if(!_||!l)throw new Error("Unbalanced delimiter found in string");if(!--l&&(c?(c[0]&&m>y&&h.push(t(c[0],r.slice(y,m),y,m)),c[1]&&h.push(t(c[1],r.slice(m,g),m,g)),c[2]&&h.push(t(c[2],r.slice(g,p),g,p)),c[3]&&h.push(t(c[3],r.slice(p,b),p,b))):h.push(r.slice(g,p)),y=b,!a))break}p===b&&++b}return a&&!f&&c&&c[0]&&r.length>y&&h.push(t(c[0],r.slice(y),y,r.length)),h}},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),
  /*!
   * XRegExp.build 4.0.0
   * <xregexp.com>
   * Steven Levithan (c) 2012-2017 MIT License
   */
  t.default=function(e){var t="xregexp",r=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,n=e.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,r],"g",{conjunction:"or"});function i(e){var t=/^(?:\(\?:\))*\^/,r=/\$(?:\(\?:\))*$/;return t.test(e)&&r.test(e)&&r.test(e.replace(/\\[\s\S]/g,""))?e.replace(t,"").replace(r,""):e}function u(r,n){var i=n?"x":"";return e.isRegExp(r)?r[t]&&r[t].captureNames?r:e(r.source,i):e(r,i)}function o(t){return t instanceof RegExp?t:e.escape(t)}function a(e,t,r){return e["subpattern"+r]=t,e}function f(e,t,r){return e+(t<r.length-1?"{{subpattern"+t+"}}":"")}e.tag=function(t){return function(r){for(var n=arguments.length,i=Array(n>1?n-1:0),u=1;u<n;u++)i[u-1]=arguments[u];var d=i.map(o).reduce(a,{}),s=r.raw.map(f).join("");return e.build(s,d,t)}},e.build=function(o,a,f){var d=-1!==(f=f||"").indexOf("x"),s=/^\(\?([\w$]+)\)/.exec(o);s&&(f=e._clipDuplicates(f+s[1]));var c={};for(var h in a)if(a.hasOwnProperty(h)){var l=u(a[h],d);c[h]={pattern:i(l.source),names:l[t].captureNames||[]}}var p=u(o,d),b=0,y=void 0,m=0,g=[0],v=p[t].captureNames||[],_=p.source.replace(n,function(e,t,n,i,u){var o=t||n,a=void 0,f=void 0,d=void 0;if(o){if(!c.hasOwnProperty(o))throw new ReferenceError("Undefined property "+e);return t?(a=v[m],g[++m]=++b,f="(?<"+(a||o)+">"):f="(?:",y=b,""+f+c[o].pattern.replace(r,function(e,t,r){if(t){if(a=c[o].names[b-y],++b,a)return"(?<"+a+">"}else if(r)return d=+r-1,c[o].names[d]?"\\k<"+c[o].names[d]+">":"\\"+(+r+y);return e})+")"}if(i){if(a=v[m],g[++m]=++b,a)return"(?<"+a+">"}else if(u)return v[d=+u-1]?"\\k<"+v[d]+">":"\\"+g[+u];return e});return e(_,f)}},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
  /*!
   * XRegExp 4.0.0
   * <xregexp.com>
   * Steven Levithan (c) 2007-2017 MIT License
   */
  var n="xregexp",i={astral:!1},u={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},o={},a={},f={},d=[],s="default",c="class",h={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},l=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,p=void 0===u.exec.call(/()??/,"")[1],b=void 0!==/x/.flags,y={}.toString;function m(e){var t=!0;try{new RegExp("",e)}catch(e){t=!1}return t}var g=m("u"),v=m("y"),_={g:!0,i:!0,m:!0,u:g,y:v};function w(e,t,r,i,u){var o=void 0;if(e[n]={captureNames:t},u)return e;if(e.__proto__)e.__proto__=R.prototype;else for(o in R.prototype)e[o]=R.prototype[o];return e[n].source=r,e[n].flags=i?i.split("").sort().join(""):i,e}function S(e){return u.replace.call(e,/([\s\S])(?=[\s\S]*\1)/g,"")}function E(e,t){if(!R.isRegExp(e))throw new TypeError("Type RegExp expected");var r=e[n]||{},i=function(e){return b?e.flags:u.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(e))[1]}(e),o="",a="",f=null,d=null;return(t=t||{}).removeG&&(a+="g"),t.removeY&&(a+="y"),a&&(i=u.replace.call(i,new RegExp("["+a+"]+","g"),"")),t.addG&&(o+="g"),t.addY&&(o+="y"),o&&(i=S(i+o)),t.isInternalOnly||(void 0!==r.source&&(f=r.source),null!=r.flags&&(d=o?S(r.flags+o):r.flags)),w(new RegExp(t.source||e.source,i),function(e){return!(!e[n]||!e[n].captureNames)}(e)?r.captureNames.slice(0):null,f,d,t.isInternalOnly)}function A(e){return parseInt(e,16)}function x(e,t,r){return"("===e.input[e.index-1]||")"===e.input[e.index+e[0].length]||function(e,t,r){return u.test.call(-1!==r.indexOf("x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,e.slice(t))}(e.input,e.index+e[0].length,r)?"":"(?:)"}function k(e){return parseInt(e,10).toString(16)}function M(e,t){return y.call(e)==="[object "+t+"]"}function I(e){for(;e.length<4;)e="0"+e;return e}function T(e){var t={};return M(e,"String")?(R.forEach(e,/[^\s,]+/,function(e){t[e]=!0}),t):e}function B(e){if(!/^[\w$]$/.test(e))throw new Error("Flag must be a single character A-Za-z0-9_$");_[e]=!0}function P(e,t,r,n,i){for(var u=d.length,o=e[r],a=null,f=void 0,s=void 0;u--;)if(!((s=d[u]).leadChar&&s.leadChar!==o||s.scope!==n&&"all"!==s.scope||s.flag&&-1===t.indexOf(s.flag))&&(f=R.exec(e,s.regex,r,"sticky"))){a={matchLength:f[0].length,output:s.handler.call(i,f,n,t),reparse:s.reparse};break}return a}function C(e){i.astral=e}function O(e){if(null==e)throw new TypeError("Cannot convert null or undefined to object");return e}function R(e,t){if(R.isRegExp(e)){if(void 0!==t)throw new TypeError("Cannot supply flags when copying a RegExp");return E(e)}if(e=void 0===e?"":String(e),t=void 0===t?"":String(t),R.isInstalled("astral")&&-1===t.indexOf("A")&&(t+="A"),f[e]||(f[e]={}),!f[e][t]){for(var r={hasNamedCapture:!1,captureNames:[]},n=s,i="",o=0,a=void 0,d=function(e,t){var r=void 0;if(S(t)!==t)throw new SyntaxError("Invalid duplicate regex flag "+t);for(e=u.replace.call(e,/^\(\?([\w$]+)\)/,function(e,r){if(u.test.call(/[gy]/,r))throw new SyntaxError("Cannot use flag g or y in mode modifier "+e);return t=S(t+r),""}),r=0;r<t.length;++r)if(!_[t[r]])throw new SyntaxError("Unknown regex flag "+t[r]);return{pattern:e,flags:t}}(e,t),l=d.pattern,p=d.flags;o<l.length;){do{(a=P(l,p,o,n,r))&&a.reparse&&(l=l.slice(0,o)+a.output+l.slice(o+a.matchLength))}while(a&&a.reparse);if(a)i+=a.output,o+=a.matchLength||1;else{var b=R.exec(l,h[n],o,"sticky")[0];i+=b,o+=b.length,"["===b&&n===s?n=c:"]"===b&&n===c&&(n=s)}}f[e][t]={pattern:u.replace.call(i,/(?:\(\?:\))+/g,"(?:)"),flags:u.replace.call(p,/[^gimuy]+/g,""),captures:r.hasNamedCapture?r.captureNames:null}}var y=f[e][t];return w(new RegExp(y.pattern,y.flags),y.captures,e,t)}R.prototype=/(?:)/,R.version="4.0.0",R._clipDuplicates=S,R._hasNativeFlag=m,R._dec=A,R._hex=k,R._pad4=I,R.addToken=function(e,t,r){var n=(r=r||{}).optionalFlags,i=void 0;if(r.flag&&B(r.flag),n)for(n=u.split.call(n,""),i=0;i<n.length;++i)B(n[i]);d.push({regex:E(e,{addG:!0,addY:v,isInternalOnly:!0}),handler:t,scope:r.scope||s,flag:r.flag,reparse:r.reparse,leadChar:r.leadChar}),R.cache.flush("patterns")},R.cache=function(e,t){return a[e]||(a[e]={}),a[e][t]||(a[e][t]=R(e,t))},R.cache.flush=function(e){"patterns"===e?f={}:a={}},R.escape=function(e){return u.replace.call(O(e),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},R.exec=function(e,t,r,i){var u,a="g",f=!1,d=void 0;(u=v&&!!(i||t.sticky&&!1!==i))?a+="y":i&&(f=!0,a+="FakeY"),t[n]=t[n]||{};var s=t[n][a]||(t[n][a]=E(t,{addG:!0,addY:u,source:f?t.source+"|()":void 0,removeY:!1===i,isInternalOnly:!0}));return r=r||0,s.lastIndex=r,d=o.exec.call(s,e),f&&d&&""===d.pop()&&(d=null),t.global&&(t.lastIndex=d?s.lastIndex:0),d},R.forEach=function(e,t,r){for(var n=0,i=-1,u=void 0;u=R.exec(e,t,n);)r(u,++i,e,t),n=u.index+(u[0].length||1)},R.globalize=function(e){return E(e,{addG:!0})},R.install=function(e){e=T(e),!i.astral&&e.astral&&C(!0)},R.isInstalled=function(e){return!!i[e]},R.isRegExp=function(e){return"[object RegExp]"===y.call(e)},R.match=function(e,t,r){var i=t.global&&"one"!==r||"all"===r,o=(i?"g":"")+(t.sticky?"y":"")||"noGY";t[n]=t[n]||{};var a=t[n][o]||(t[n][o]=E(t,{addG:!!i,removeG:"one"===r,isInternalOnly:!0})),f=u.match.call(O(e),a);return t.global&&(t.lastIndex="one"===r&&f?f.index+f[0].length:0),i?f||[]:f&&f[0]},R.matchChain=function(e,t){return function e(r,n){var i=t[n].regex?t[n]:{regex:t[n]},u=[];function o(e){if(i.backref){if(!(e.hasOwnProperty(i.backref)||+i.backref<e.length))throw new ReferenceError("Backreference to undefined group: "+i.backref);u.push(e[i.backref]||"")}else u.push(e[0])}for(var a=0;a<r.length;++a)R.forEach(r[a],i.regex,o);return n!==t.length-1&&u.length?e(u,n+1):u}([e],0)},R.replace=function(e,t,r,i){var u=R.isRegExp(t),a=t.global&&"one"!==i||"all"===i,f=(a?"g":"")+(t.sticky?"y":"")||"noGY",d=t;u?(t[n]=t[n]||{},d=t[n][f]||(t[n][f]=E(t,{addG:!!a,removeG:"one"===i,isInternalOnly:!0}))):a&&(d=new RegExp(R.escape(String(t)),"g"));var s=o.replace.call(O(e),d,r);return u&&t.global&&(t.lastIndex=0),s},R.replaceEach=function(e,t){var r=void 0,n=void 0;for(r=0;r<t.length;++r)n=t[r],e=R.replace(e,n[0],n[1],n[2]);return e},R.split=function(e,t,r){return o.split.call(O(e),t,r)},R.test=function(e,t,r,n){return!!R.exec(e,t,r,n)},R.uninstall=function(e){e=T(e),i.astral&&e.astral&&C(!1)},R.union=function(e,t,r){var i=(r=r||{}).conjunction||"or",o=0,a=void 0,f=void 0;function d(e,t,r){var n=f[o-a];if(t){if(++o,n)return"(?<"+n+">"}else if(r)return"\\"+(+r+a);return e}if(!M(e,"Array")||!e.length)throw new TypeError("Must provide a nonempty array of patterns to merge");for(var s=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,c=[],h=void 0,l=0;l<e.length;++l)h=e[l],R.isRegExp(h)?(a=o,f=h[n]&&h[n].captureNames||[],c.push(u.replace.call(R(h.source).source,s,d))):c.push(R.escape(h));var p="none"===i?"":"|";return R(c.join(p),t)},o.exec=function(e){var t=this.lastIndex,r=u.exec.apply(this,arguments);if(r){if(!p&&r.length>1&&-1!==r.indexOf("")){var i=E(this,{removeG:!0,isInternalOnly:!0});u.replace.call(String(e).slice(r.index),i,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=t.length,u=1;u<i-2;++u)void 0===t[u]&&(r[u]=void 0)})}if(this[n]&&this[n].captureNames)for(var o=1;o<r.length;++o){var a=this[n].captureNames[o-1];a&&(r[a]=r[o])}this.global&&!r[0].length&&this.lastIndex>r.index&&(this.lastIndex=r.index)}return this.global||(this.lastIndex=t),r},o.test=function(e){return!!o.exec.call(this,e)},o.match=function(e){if(R.isRegExp(e)){if(e.global){var t=u.match.apply(this,arguments);return e.lastIndex=0,t}}else e=new RegExp(e);return o.exec.call(e,O(this))},o.replace=function(e,t){var r,i=R.isRegExp(e),o=void 0,a=void 0;return i?(e[n]&&(a=e[n].captureNames),o=e.lastIndex):e+="",r=M(t,"Function")?u.replace.call(String(this),e,function(){for(var r=arguments.length,n=Array(r),u=0;u<r;u++)n[u]=arguments[u];if(a){n[0]=new String(n[0]);for(var o=0;o<a.length;++o)a[o]&&(n[0][a[o]]=n[o+1])}return i&&e.global&&(e.lastIndex=n[n.length-2]+n[0].length),t.apply(void 0,n)}):u.replace.call(null==this?this:String(this),e,function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return u.replace.call(String(t),l,function(e,t,n,i){if(t=t||n){var u=+t;if(u<=r.length-3)return r[u]||"";if((u=a?a.indexOf(t):-1)<0)throw new SyntaxError("Backreference to undefined group "+e);return r[u+1]||""}if("$"===i)return"$";if("&"===i||0==+i)return r[0];if("`"===i)return r[r.length-1].slice(0,r[r.length-2]);if("'"===i)return r[r.length-1].slice(r[r.length-2]+r[0].length);if(i=+i,!isNaN(i)){if(i>r.length-3)throw new SyntaxError("Backreference to undefined group "+e);return r[i]||""}throw new SyntaxError("Invalid token "+e)})}),i&&(e.global?e.lastIndex=0:e.lastIndex=o),r},o.split=function(e,t){if(!R.isRegExp(e))return u.split.apply(this,arguments);var r=String(this),n=[],i=e.lastIndex,o=0,a=void 0;return t=(void 0===t?-1:t)>>>0,R.forEach(r,e,function(e){e.index+e[0].length>o&&(n.push(r.slice(o,e.index)),e.length>1&&e.index<r.length&&Array.prototype.push.apply(n,e.slice(1)),a=e[0].length,o=e.index+a)}),o===r.length?u.test.call(e,"")&&!a||n.push(""):n.push(r.slice(o)),e.lastIndex=i,n.length>t?n.slice(0,t):n},R.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(e,t){if("B"===e[1]&&t===s)return e[0];throw new SyntaxError("Invalid escape "+e[0])},{scope:"all",leadChar:"\\"}),R.addToken(/\\u{([\dA-Fa-f]+)}/,function(e,t,r){var n=A(e[1]);if(n>1114111)throw new SyntaxError("Invalid Unicode code point "+e[0]);if(n<=65535)return"\\u"+I(k(n));if(g&&-1!==r.indexOf("u"))return e[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u")},{scope:"all",leadChar:"\\"}),R.addToken(/\[(\^?)\]/,function(e){return e[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["}),R.addToken(/\(\?#[^)]*\)/,x,{leadChar:"("}),R.addToken(/\s+|#[^\n]*\n?/,x,{flag:"x"}),R.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",leadChar:"."}),R.addToken(/\\k<([\w$]+)>/,function(e){var t=isNaN(e[1])?this.captureNames.indexOf(e[1])+1:+e[1],r=e.index+e[0].length;if(!t||t>this.captureNames.length)throw new SyntaxError("Backreference to undefined group "+e[0]);return"\\"+t+(r===e.input.length||isNaN(e.input[r])?"":"(?:)")},{leadChar:"\\"}),R.addToken(/\\(\d+)/,function(e,t){if(!(t===s&&/^[1-9]/.test(e[1])&&+e[1]<=this.captureNames.length)&&"0"!==e[1])throw new SyntaxError("Cannot use octal escape or backreference to undefined group "+e[0]);return e[0]},{scope:"all",leadChar:"\\"}),R.addToken(/\(\?P?<([\w$]+)>/,function(e){if(!isNaN(e[1]))throw new SyntaxError("Cannot use integer as capture name "+e[0]);if("length"===e[1]||"__proto__"===e[1])throw new SyntaxError("Cannot use reserved word as capture name "+e[0]);if(-1!==this.captureNames.indexOf(e[1]))throw new SyntaxError("Cannot use same name for multiple groups "+e[0]);return this.captureNames.push(e[1]),this.hasNamedCapture=!0,"("},{leadChar:"("}),R.addToken(/\((?!\?)/,function(e,t,r){return-1!==r.indexOf("n")?"(?:":(this.captureNames.push(null),"(")},{optionalFlags:"n",leadChar:"("}),t.default=R,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(44)),i=c(r(43)),u=c(r(42)),o=c(r(41)),a=c(r(40)),f=c(r(39)),d=c(r(38)),s=c(r(37));function c(e){return e&&e.__esModule?e:{default:e}}(0,i.default)(n.default),(0,u.default)(n.default),(0,o.default)(n.default),(0,a.default)(n.default),(0,f.default)(n.default),(0,d.default)(n.default),(0,s.default)(n.default),t.default=n.default,e.exports=t.default},function(e,t,r){"use strict";const n=r(45);e.exports=((e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");t=void 0===t?"_":t;const r=n("([\\p{Ll}\\d])(\\p{Lu})","g"),i=n("(\\p{Lu}+)(\\p{Lu}[\\p{Ll}\\d]+)","g");return e.replace(r,`$1${t}$2`).replace(i,`$1${t}$2`).toLowerCase()})},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t){e.exports=!0},function(e,t,r){var n=r(1),i=r(7),u=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return u[e]||(u[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(50)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(51)("keys"),i=r(49);e.exports=function(e){return n[e]||(n[e]=i(e))}},function(e,t,r){var n=r(12),i=Math.max,u=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):u(e,t)}},function(e,t,r){var n=r(12),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(56);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){var n=r(14),i=r(4),u=r(13)(!1),o=r(52)("IE_PROTO");e.exports=function(e,t){var r,a=i(e),f=0,d=[];for(r in a)r!=o&&n(a,r)&&d.push(r);for(;t.length>f;)n(a,r=t[f++])&&(~u(d,r)||d.push(r));return d}},function(e,t,r){var n=r(58),i=r(48);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){var n=r(59),i=r(4),u=r(47).f;e.exports=function(e){return function(t){for(var r,o=i(t),a=n(o),f=a.length,d=0,s=[];f>d;)u.call(o,r=a[d++])&&s.push(e?[r,o[r]]:o[r]);return s}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(6);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(6),i=r(7).document,u=n(i)&&n(i.createElement);e.exports=function(e){return u?i.createElement(e):{}}},function(e,t,r){e.exports=!r(5)&&!r(15)(function(){return 7!=Object.defineProperty(r(63)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(6);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){var n=r(65),i=r(64),u=r(62),o=Object.defineProperty;t.f=r(5)?Object.defineProperty:function(e,t,r){if(n(e),t=u(t,!0),n(r),i)try{return o(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(66),i=r(61);e.exports=r(5)?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var n=r(68);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(16),i=r(60)(!0);n(n.S,"Object",{entries:function(e){return i(e)}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,u=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,u=e}finally{try{!n&&a.return&&a.return()}finally{if(i)throw u}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},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};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default;if(!e||"object"!==(void 0===e?"undefined":i(e))||!Object.keys(e).length)return"";var r=(0,u.default)(e).reduce(function(e,r){var i=n(r,2),u=i[0],o=i[1];return e[t(u)]=o,e},{});return"?"+a.default.stringify(r)};var u=f(r(17)),o=f(r(46)),a=f(r(36));function f(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.default=function(e){for(var t=e,r=arguments.length,o=Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];if(e&&1===o.length&&"object"===n(o[0])){var f=o[0];t=e.replace(u.TEMPLATE_LITERAL,function(e,t){var r=t,n=void 0,i=u.KEY.exec(r);if(null!==i)for(n=f[i[1]];(r=r.substring(i[0].length))&&null!=n;)if(i=u.KEY_ACCESS.exec(r))n=n[i[1]];else{if(!(i=u.INDEX_ACCESS.exec(r)))break;n=n[i[1]]}if(r.length)throw new SyntaxError("[formatText] failed to parse named argument key: "+t);return n})}return i.sprintf.apply(void 0,[t].concat(o))};var i=r(18),u={TEMPLATE_LITERAL:/\${([^)]+?)}/g,KEY:/^([a-z_][a-z_\d]*)/i,KEY_ACCESS:/^\.([a-z_][a-z_\d]*)/i,INDEX_ACCESS:/^\[(\d+)\]/}},function(e,t,r){(function(n){var i;!function(n){"use strict";function u(e){var t=e&&e.Promise||n.Promise,r=e&&e.XMLHttpRequest||n.XMLHttpRequest,i=n;return function(){var e=Object.create(i,{fetch:{value:void 0,writable:!0}});return function(e){if(!e.fetch){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=function(e){return e&&DataView.prototype.isPrototypeOf(e)},o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};h.prototype.append=function(e,t){e=d(e),t=s(t);var r=this.map[e];this.map[e]=r?r+","+t:t},h.prototype.delete=function(e){delete this.map[d(e)]},h.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},h.prototype.set=function(e,t){this.map[d(e)]=s(t)},h.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},h.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),c(e)},h.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},h.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),c(e)},n.iterable&&(h.prototype[Symbol.iterator]=h.prototype.entries);var a=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var f=[301,302,303,307,308];_.redirect=function(e,t){if(-1===f.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},e.Headers=h,e.Request=g,e.Response=_,e.fetch=function(e,i){return new t(function(t,u){var o=new g(e,i),a=new r;a.onload=function(){var e={status:a.status,statusText:a.statusText,headers:function(e){var t=new h;return e.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}(a.getAllResponseHeaders()||"")};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;t(new _(r,e))},a.onerror=function(){u(new TypeError("Network request failed"))},a.ontimeout=function(){u(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&n.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 d(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 s(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?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 t.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new t(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function b(e){var t=new FileReader,r=p(t);return t.readAsArrayBuffer(e),r}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(n.arrayBuffer&&n.blob&&u(e))this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!n.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!o(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=y(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):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return t.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return t.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return t.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||t.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=p(t);return t.readAsText(e),r}(this._bodyBlob);if(this._bodyArrayBuffer)return t.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return t.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(v)}),this.json=function(){return this.text().then(JSON.parse)},this}function g(e,t){var r=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=function(e){var t=e.toUpperCase();return a.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function v(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 _(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}}(void 0!==e?e:this),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response}}()}void 0===(i=function(){return u}.call(t,r,t,e))||(e.exports=i)}("undefined"!=typeof self?self:void 0!==n?n:this)}).call(this,r(0))},function(e,t,r){(function(t,r){
  /*!
   * @overview es6-promise - a tiny implementation of Promises/A+.
   * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
   * @license   Licensed under MIT license
   *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
   * @version   v4.2.4+314e4831
   */
  !function(t,r){e.exports=r()}(0,function(){"use strict";function e(e){return"function"==typeof e}var n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,u=void 0,o=void 0,a=function(e,t){p[i]=e,p[i+1]=t,2===(i+=2)&&(o?o(b):y())},f="undefined"!=typeof window?window:void 0,d=f||{},s=d.MutationObserver||d.WebKitMutationObserver,c="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function l(){var e=setTimeout;return function(){return e(b,1)}}var p=new Array(1e3);function b(){for(var e=0;e<i;e+=2)(0,p[e])(p[e+1]),p[e]=void 0,p[e+1]=void 0;i=0}var y=void 0;function m(e,t){var r=this,n=new this.constructor(_);void 0===n[v]&&j(n);var i=r._state;if(i){var u=arguments[i-1];a(function(){return O(i,n,u,r._result)})}else P(r,n,e,t);return n}function g(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(_);return M(t,e),t}y=c?function(){return t.nextTick(b)}:s?function(){var e=0,t=new s(b),r=document.createTextNode("");return t.observe(r,{characterData:!0}),function(){r.data=e=++e%2}}():h?function(){var e=new MessageChannel;return e.port1.onmessage=b,function(){return e.port2.postMessage(0)}}():void 0===f?function(){try{var e=Function("return this")().require("vertx");return void 0!==(u=e.runOnLoop||e.runOnContext)?function(){u(b)}:l()}catch(e){return l()}}():l();var v=Math.random().toString(36).substring(2);function _(){}var w=void 0,S=1,E=2,A={error:null};function x(e){try{return e.then}catch(e){return A.error=e,A}}function k(t,r,n){r.constructor===t.constructor&&n===m&&r.constructor.resolve===g?function(e,t){t._state===S?T(e,t._result):t._state===E?B(e,t._result):P(t,void 0,function(t){return M(e,t)},function(t){return B(e,t)})}(t,r):n===A?(B(t,A.error),A.error=null):void 0===n?T(t,r):e(n)?function(e,t,r){a(function(e){var n=!1,i=function(e,t,r,n){try{e.call(t,r,n)}catch(e){return e}}(r,t,function(r){n||(n=!0,t!==r?M(e,r):T(e,r))},function(t){n||(n=!0,B(e,t))},e._label);!n&&i&&(n=!0,B(e,i))},e)}(t,r,n):T(t,r)}function M(e,t){e===t?B(e,new TypeError("You cannot resolve a promise with itself")):function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}(t)?k(e,t,x(t)):T(e,t)}function I(e){e._onerror&&e._onerror(e._result),C(e)}function T(e,t){e._state===w&&(e._result=t,e._state=S,0!==e._subscribers.length&&a(C,e))}function B(e,t){e._state===w&&(e._state=E,e._result=t,a(I,e))}function P(e,t,r,n){var i=e._subscribers,u=i.length;e._onerror=null,i[u]=t,i[u+S]=r,i[u+E]=n,0===u&&e._state&&a(C,e)}function C(e){var t=e._subscribers,r=e._state;if(0!==t.length){for(var n=void 0,i=void 0,u=e._result,o=0;o<t.length;o+=3)n=t[o],i=t[o+r],n?O(r,n,i,u):i(u);e._subscribers.length=0}}function O(t,r,n,i){var u=e(n),o=void 0,a=void 0,f=void 0,d=void 0;if(u){if((o=function(e,t){try{return e(t)}catch(e){return A.error=e,A}}(n,i))===A?(d=!0,a=o.error,o.error=null):f=!0,r===o)return void B(r,new TypeError("A promises callback cannot return that same promise."))}else o=i,f=!0;r._state!==w||(u&&f?M(r,o):d?B(r,a):t===S?T(r,o):t===E&&B(r,o))}var R=0;function j(e){e[v]=R++,e._state=void 0,e._result=void 0,e._subscribers=[]}var U=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(_),this.promise[v]||j(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&T(this.promise,this._result))):B(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===w&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var r=this._instanceConstructor,n=r.resolve;if(n===g){var i=x(e);if(i===m&&e._state!==w)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(r===L){var u=new r(_);k(u,e,i),this._willSettleAt(u,t)}else this._willSettleAt(new r(function(t){return t(e)}),t)}else this._willSettleAt(n(e),t)},e.prototype._settledAt=function(e,t,r){var n=this.promise;n._state===w&&(this._remaining--,e===E?B(n,r):this._result[t]=r),0===this._remaining&&T(n,this._result)},e.prototype._willSettleAt=function(e,t){var r=this;P(e,void 0,function(e){return r._settledAt(S,t,e)},function(e){return r._settledAt(E,t,e)})},e}(),L=function(){function e(t){this[v]=R++,this._result=this._state=void 0,this._subscribers=[],_!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(e,t){try{t(function(t){M(e,t)},function(t){B(e,t)})}catch(t){B(e,t)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},e}();return L.prototype.then=m,L.all=function(e){return new U(this,e).promise},L.race=function(e){var t=this;return n(e)?new t(function(r,n){for(var i=e.length,u=0;u<i;u++)t.resolve(e[u]).then(r,n)}):new t(function(e,t){return t(new TypeError("You must pass an array to race."))})},L.resolve=g,L.reject=function(e){var t=new this(_);return B(t,e),t},L._setScheduler=function(e){o=e},L._setAsap=function(e){a=e},L._asap=a,L.polyfill=function(){var e=void 0;if(void 0!==r)e=r;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=L},L.Promise=L,L})}).call(this,r(8),r(0))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.jsonBody,i=t.query,u=t.urlTemplateSpec,d=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["jsonBody","query","urlTemplateSpec"]),c=e;return null!=u&&(Array.isArray(u)&&u.length?c=(0,o.vsprintf)(e,u):u&&"object"===(void 0===u?"undefined":n(u))&&Object.keys(u).length&&(c=(0,a.default)(e,u))),null!=i&&("string"==typeof i?c+=i:i&&"object"===(void 0===i?"undefined":n(i))&&(c+=(0,f.default)(i))),null!=r&&(d.body=JSON.stringify(r)),s.fetch(c,d).then(function(e){if(!e||!e.ok)throw{message:"HTTP Error: Requested page not reachable",status:e.status+" "+e.statusText,requestURI:e.url};return e})};var i=r(74),u=d(r(73)),o=r(18),a=d(r(72)),f=d(r(71));function d(e){return e&&e.__esModule?e:{default:e}}var s=(0,u.default)(i.Promise)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n({},a,t,{query:t.query&&(0,u.default)(t.query)}),o=e;return r.jsonBody&&(r.headers=n({},r.headers,{"Content-Type":"application/json"})),e?(0,i.default)(o,r).then(function(e){return e.json()}).catch(function(e){throw console.error(e),e}):Promise.reject(new Error("Request was not given a url."))};var i=o(r(75)),u=o(r(33));function o(e){return e&&e.__esModule?e:{default:e}}var a={headers:{Accept:"application/json"}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];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}}(),u=function(e){return e&&e.__esModule?e:{default:e}}(r(76)),o=["content-type"],a=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.path=t,this.headers=n({},r),Object.keys(r).forEach(function(e){if(o.includes(e.toLowerCase()))throw new Error("Header "+e+" is reserved and cannot be set.")})}return i(e,[{key:"getApiUrls",value:function(e){return this.path+{blocks:"blocks",blocksDetail:"blocks/%(blockHeight)s",outputs:"outputs",transactions:"transactions",transactionsSync:"transactions?mode=sync",transactionsAsync:"transactions?mode=async",transactionsCommit:"transactions?mode=commit",transactionsDetail:"transactions/%(transactionId)s",assets:"assets",metadata:"metadata",votes:"votes"}[e]}},{key:"_req",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.headers=n({},t.headers,this.headers),(0,u.default)(e,t)}},{key:"getBlock",value:function(e){return this._req(this.getApiUrls("blocksDetail"),{urlTemplateSpec:{blockHeight:e}})}},{key:"getTransaction",value:function(e){return this._req(this.getApiUrls("transactionsDetail"),{urlTemplateSpec:{transactionId:e}})}},{key:"listBlocks",value:function(e){return this._req(this.getApiUrls("blocks"),{query:{transaction_id:e}})}},{key:"listOutputs",value:function(e,t){var r={public_key:e};return void 0!==t&&(r.spent=t.toString()),this._req(this.getApiUrls("outputs"),{query:r})}},{key:"listTransactions",value:function(e,t){return this._req(this.getApiUrls("transactions"),{query:{asset_id:e,operation:t}})}},{key:"listVotes",value:function(e){return this._req(this.getApiUrls("votes"),{query:{block_id:e}})}},{key:"postTransaction",value:function(e){return this.postTransactionCommit(e)}},{key:"postTransactionSync",value:function(e){return this._req(this.getApiUrls("transactionsSync"),{method:"POST",jsonBody:e})}},{key:"postTransactionAsync",value:function(e){return this._req(this.getApiUrls("transactionsAsync"),{method:"POST",jsonBody:e})}},{key:"postTransactionCommit",value:function(e){return this._req(this.getApiUrls("transactionsCommit"),{method:"POST",jsonBody:e})}},{key:"searchAssets",value:function(e){return this._req(this.getApiUrls("assets"),{query:{search:e}})}},{key:"searchMetadata",value:function(e){return this._req(this.getApiUrls("metadata"),{query:{search:e}})}}]),e}();t.default=a},function(e,t){},function(e,t,r){!function(e){"use strict";var t=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),u=new Uint8Array(32);u[0]=9;var o=t(),a=t([1]),f=t([56129,1]),d=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),s=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),c=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),h=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),l=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,r,n){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function b(e,t,r,n,i){var u,o=0;for(u=0;u<i;u++)o|=e[t+u]^r[n+u];return(1&o-1>>>8)-1}function y(e,t,r,n){return b(e,t,r,n,16)}function m(e,t,r,n){return b(e,t,r,n,32)}function g(e,t,r,n){!function(e,t,r,n){for(var i,u=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,d=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,g=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,_=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,w=u,S=o,E=a,A=f,x=d,k=s,M=c,I=h,T=l,B=p,P=b,C=y,O=m,R=g,j=v,U=_,L=0;L<20;L+=2)w^=(i=(O^=(i=(T^=(i=(x^=(i=w+O|0)<<7|i>>>25)+w|0)<<9|i>>>23)+x|0)<<13|i>>>19)+T|0)<<18|i>>>14,k^=(i=(S^=(i=(R^=(i=(B^=(i=k+S|0)<<7|i>>>25)+k|0)<<9|i>>>23)+B|0)<<13|i>>>19)+R|0)<<18|i>>>14,P^=(i=(M^=(i=(E^=(i=(j^=(i=P+M|0)<<7|i>>>25)+P|0)<<9|i>>>23)+j|0)<<13|i>>>19)+E|0)<<18|i>>>14,U^=(i=(C^=(i=(I^=(i=(A^=(i=U+C|0)<<7|i>>>25)+U|0)<<9|i>>>23)+A|0)<<13|i>>>19)+I|0)<<18|i>>>14,w^=(i=(A^=(i=(E^=(i=(S^=(i=w+A|0)<<7|i>>>25)+w|0)<<9|i>>>23)+S|0)<<13|i>>>19)+E|0)<<18|i>>>14,k^=(i=(x^=(i=(I^=(i=(M^=(i=k+x|0)<<7|i>>>25)+k|0)<<9|i>>>23)+M|0)<<13|i>>>19)+I|0)<<18|i>>>14,P^=(i=(B^=(i=(T^=(i=(C^=(i=P+B|0)<<7|i>>>25)+P|0)<<9|i>>>23)+C|0)<<13|i>>>19)+T|0)<<18|i>>>14,U^=(i=(j^=(i=(R^=(i=(O^=(i=U+j|0)<<7|i>>>25)+U|0)<<9|i>>>23)+O|0)<<13|i>>>19)+R|0)<<18|i>>>14;w=w+u|0,S=S+o|0,E=E+a|0,A=A+f|0,x=x+d|0,k=k+s|0,M=M+c|0,I=I+h|0,T=T+l|0,B=B+p|0,P=P+b|0,C=C+y|0,O=O+m|0,R=R+g|0,j=j+v|0,U=U+_|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=S>>>0&255,e[5]=S>>>8&255,e[6]=S>>>16&255,e[7]=S>>>24&255,e[8]=E>>>0&255,e[9]=E>>>8&255,e[10]=E>>>16&255,e[11]=E>>>24&255,e[12]=A>>>0&255,e[13]=A>>>8&255,e[14]=A>>>16&255,e[15]=A>>>24&255,e[16]=x>>>0&255,e[17]=x>>>8&255,e[18]=x>>>16&255,e[19]=x>>>24&255,e[20]=k>>>0&255,e[21]=k>>>8&255,e[22]=k>>>16&255,e[23]=k>>>24&255,e[24]=M>>>0&255,e[25]=M>>>8&255,e[26]=M>>>16&255,e[27]=M>>>24&255,e[28]=I>>>0&255,e[29]=I>>>8&255,e[30]=I>>>16&255,e[31]=I>>>24&255,e[32]=T>>>0&255,e[33]=T>>>8&255,e[34]=T>>>16&255,e[35]=T>>>24&255,e[36]=B>>>0&255,e[37]=B>>>8&255,e[38]=B>>>16&255,e[39]=B>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=C>>>0&255,e[45]=C>>>8&255,e[46]=C>>>16&255,e[47]=C>>>24&255,e[48]=O>>>0&255,e[49]=O>>>8&255,e[50]=O>>>16&255,e[51]=O>>>24&255,e[52]=R>>>0&255,e[53]=R>>>8&255,e[54]=R>>>16&255,e[55]=R>>>24&255,e[56]=j>>>0&255,e[57]=j>>>8&255,e[58]=j>>>16&255,e[59]=j>>>24&255,e[60]=U>>>0&255,e[61]=U>>>8&255,e[62]=U>>>16&255,e[63]=U>>>24&255}(e,t,r,n)}function v(e,t,r,n){!function(e,t,r,n){for(var i,u=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,d=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,l=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,b=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,m=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,g=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,v=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,_=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,w=0;w<20;w+=2)u^=(i=(m^=(i=(l^=(i=(d^=(i=u+m|0)<<7|i>>>25)+u|0)<<9|i>>>23)+d|0)<<13|i>>>19)+l|0)<<18|i>>>14,s^=(i=(o^=(i=(g^=(i=(p^=(i=s+o|0)<<7|i>>>25)+s|0)<<9|i>>>23)+p|0)<<13|i>>>19)+g|0)<<18|i>>>14,b^=(i=(c^=(i=(a^=(i=(v^=(i=b+c|0)<<7|i>>>25)+b|0)<<9|i>>>23)+v|0)<<13|i>>>19)+a|0)<<18|i>>>14,_^=(i=(y^=(i=(h^=(i=(f^=(i=_+y|0)<<7|i>>>25)+_|0)<<9|i>>>23)+f|0)<<13|i>>>19)+h|0)<<18|i>>>14,u^=(i=(f^=(i=(a^=(i=(o^=(i=u+f|0)<<7|i>>>25)+u|0)<<9|i>>>23)+o|0)<<13|i>>>19)+a|0)<<18|i>>>14,s^=(i=(d^=(i=(h^=(i=(c^=(i=s+d|0)<<7|i>>>25)+s|0)<<9|i>>>23)+c|0)<<13|i>>>19)+h|0)<<18|i>>>14,b^=(i=(p^=(i=(l^=(i=(y^=(i=b+p|0)<<7|i>>>25)+b|0)<<9|i>>>23)+y|0)<<13|i>>>19)+l|0)<<18|i>>>14,_^=(i=(v^=(i=(g^=(i=(m^=(i=_+v|0)<<7|i>>>25)+_|0)<<9|i>>>23)+m|0)<<13|i>>>19)+g|0)<<18|i>>>14;e[0]=u>>>0&255,e[1]=u>>>8&255,e[2]=u>>>16&255,e[3]=u>>>24&255,e[4]=s>>>0&255,e[5]=s>>>8&255,e[6]=s>>>16&255,e[7]=s>>>24&255,e[8]=b>>>0&255,e[9]=b>>>8&255,e[10]=b>>>16&255,e[11]=b>>>24&255,e[12]=_>>>0&255,e[13]=_>>>8&255,e[14]=_>>>16&255,e[15]=_>>>24&255,e[16]=c>>>0&255,e[17]=c>>>8&255,e[18]=c>>>16&255,e[19]=c>>>24&255,e[20]=h>>>0&255,e[21]=h>>>8&255,e[22]=h>>>16&255,e[23]=h>>>24&255,e[24]=l>>>0&255,e[25]=l>>>8&255,e[26]=l>>>16&255,e[27]=l>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,r,n)}var _=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,r,n,i,u,o){var a,f,d=new Uint8Array(16),s=new Uint8Array(64);for(f=0;f<16;f++)d[f]=0;for(f=0;f<8;f++)d[f]=u[f];for(;i>=64;){for(g(s,d,o,_),f=0;f<64;f++)e[t+f]=r[n+f]^s[f];for(a=1,f=8;f<16;f++)a=a+(255&d[f])|0,d[f]=255&a,a>>>=8;i-=64,t+=64,n+=64}if(i>0)for(g(s,d,o,_),f=0;f<i;f++)e[t+f]=r[n+f]^s[f];return 0}function S(e,t,r,n,i){var u,o,a=new Uint8Array(16),f=new Uint8Array(64);for(o=0;o<16;o++)a[o]=0;for(o=0;o<8;o++)a[o]=n[o];for(;r>=64;){for(g(f,a,i,_),o=0;o<64;o++)e[t+o]=f[o];for(u=1,o=8;o<16;o++)u=u+(255&a[o])|0,a[o]=255&u,u>>>=8;r-=64,t+=64}if(r>0)for(g(f,a,i,_),o=0;o<r;o++)e[t+o]=f[o];return 0}function E(e,t,r,n,i){var u=new Uint8Array(32);v(u,n,i,_);for(var o=new Uint8Array(8),a=0;a<8;a++)o[a]=n[a+16];return S(e,t,r,o,u)}function A(e,t,r,n,i,u,o){var a=new Uint8Array(32);v(a,u,o,_);for(var f=new Uint8Array(8),d=0;d<8;d++)f[d]=u[d+16];return w(e,t,r,n,i,f,a)}var x=function(e){var t,r,n,i,u,o,a,f;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),u=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|u<<12),this.r[5]=u>>>1&8190,o=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(u>>>14|o<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(o>>>11|a<<5),f=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>8|f<<8),this.r[9]=f>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function k(e,t,r,n,i,u){var o=new x(u);return o.update(r,n,i),o.finish(e,t),0}function M(e,t,r,n,i,u){var o=new Uint8Array(16);return k(o,0,r,n,i,u),y(e,t,o,0)}function I(e,t,r,n,i){var u;if(r<32)return-1;for(A(e,0,t,0,r,n,i),k(e,16,e,32,r-32,e),u=0;u<16;u++)e[u]=0;return 0}function T(e,t,r,n,i){var u,o=new Uint8Array(32);if(r<32)return-1;if(E(o,0,32,n,i),0!==M(t,16,t,32,r-32,o))return-1;for(A(e,0,t,0,r,n,i),u=0;u<32;u++)e[u]=0;return 0}function B(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function P(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function C(e,t,r){for(var n,i=~(r-1),u=0;u<16;u++)n=i&(e[u]^t[u]),e[u]^=n,t[u]^=n}function O(e,r){var n,i,u,o=t(),a=t();for(n=0;n<16;n++)a[n]=r[n];for(P(a),P(a),P(a),i=0;i<2;i++){for(o[0]=a[0]-65517,n=1;n<15;n++)o[n]=a[n]-65535-(o[n-1]>>16&1),o[n-1]&=65535;o[15]=a[15]-32767-(o[14]>>16&1),u=o[15]>>16&1,o[14]&=65535,C(a,o,1-u)}for(n=0;n<16;n++)e[2*n]=255&a[n],e[2*n+1]=a[n]>>8}function R(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return O(r,e),O(n,t),m(r,0,n,0)}function j(e){var t=new Uint8Array(32);return O(t,e),1&t[0]}function U(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function L(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function N(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function D(e,t,r){var n,i,u=0,o=0,a=0,f=0,d=0,s=0,c=0,h=0,l=0,p=0,b=0,y=0,m=0,g=0,v=0,_=0,w=0,S=0,E=0,A=0,x=0,k=0,M=0,I=0,T=0,B=0,P=0,C=0,O=0,R=0,j=0,U=r[0],L=r[1],N=r[2],D=r[3],F=r[4],z=r[5],q=r[6],K=r[7],Y=r[8],H=r[9],J=r[10],G=r[11],V=r[12],W=r[13],X=r[14],Z=r[15];u+=(n=t[0])*U,o+=n*L,a+=n*N,f+=n*D,d+=n*F,s+=n*z,c+=n*q,h+=n*K,l+=n*Y,p+=n*H,b+=n*J,y+=n*G,m+=n*V,g+=n*W,v+=n*X,_+=n*Z,o+=(n=t[1])*U,a+=n*L,f+=n*N,d+=n*D,s+=n*F,c+=n*z,h+=n*q,l+=n*K,p+=n*Y,b+=n*H,y+=n*J,m+=n*G,g+=n*V,v+=n*W,_+=n*X,w+=n*Z,a+=(n=t[2])*U,f+=n*L,d+=n*N,s+=n*D,c+=n*F,h+=n*z,l+=n*q,p+=n*K,b+=n*Y,y+=n*H,m+=n*J,g+=n*G,v+=n*V,_+=n*W,w+=n*X,S+=n*Z,f+=(n=t[3])*U,d+=n*L,s+=n*N,c+=n*D,h+=n*F,l+=n*z,p+=n*q,b+=n*K,y+=n*Y,m+=n*H,g+=n*J,v+=n*G,_+=n*V,w+=n*W,S+=n*X,E+=n*Z,d+=(n=t[4])*U,s+=n*L,c+=n*N,h+=n*D,l+=n*F,p+=n*z,b+=n*q,y+=n*K,m+=n*Y,g+=n*H,v+=n*J,_+=n*G,w+=n*V,S+=n*W,E+=n*X,A+=n*Z,s+=(n=t[5])*U,c+=n*L,h+=n*N,l+=n*D,p+=n*F,b+=n*z,y+=n*q,m+=n*K,g+=n*Y,v+=n*H,_+=n*J,w+=n*G,S+=n*V,E+=n*W,A+=n*X,x+=n*Z,c+=(n=t[6])*U,h+=n*L,l+=n*N,p+=n*D,b+=n*F,y+=n*z,m+=n*q,g+=n*K,v+=n*Y,_+=n*H,w+=n*J,S+=n*G,E+=n*V,A+=n*W,x+=n*X,k+=n*Z,h+=(n=t[7])*U,l+=n*L,p+=n*N,b+=n*D,y+=n*F,m+=n*z,g+=n*q,v+=n*K,_+=n*Y,w+=n*H,S+=n*J,E+=n*G,A+=n*V,x+=n*W,k+=n*X,M+=n*Z,l+=(n=t[8])*U,p+=n*L,b+=n*N,y+=n*D,m+=n*F,g+=n*z,v+=n*q,_+=n*K,w+=n*Y,S+=n*H,E+=n*J,A+=n*G,x+=n*V,k+=n*W,M+=n*X,I+=n*Z,p+=(n=t[9])*U,b+=n*L,y+=n*N,m+=n*D,g+=n*F,v+=n*z,_+=n*q,w+=n*K,S+=n*Y,E+=n*H,A+=n*J,x+=n*G,k+=n*V,M+=n*W,I+=n*X,T+=n*Z,b+=(n=t[10])*U,y+=n*L,m+=n*N,g+=n*D,v+=n*F,_+=n*z,w+=n*q,S+=n*K,E+=n*Y,A+=n*H,x+=n*J,k+=n*G,M+=n*V,I+=n*W,T+=n*X,B+=n*Z,y+=(n=t[11])*U,m+=n*L,g+=n*N,v+=n*D,_+=n*F,w+=n*z,S+=n*q,E+=n*K,A+=n*Y,x+=n*H,k+=n*J,M+=n*G,I+=n*V,T+=n*W,B+=n*X,P+=n*Z,m+=(n=t[12])*U,g+=n*L,v+=n*N,_+=n*D,w+=n*F,S+=n*z,E+=n*q,A+=n*K,x+=n*Y,k+=n*H,M+=n*J,I+=n*G,T+=n*V,B+=n*W,P+=n*X,C+=n*Z,g+=(n=t[13])*U,v+=n*L,_+=n*N,w+=n*D,S+=n*F,E+=n*z,A+=n*q,x+=n*K,k+=n*Y,M+=n*H,I+=n*J,T+=n*G,B+=n*V,P+=n*W,C+=n*X,O+=n*Z,v+=(n=t[14])*U,_+=n*L,w+=n*N,S+=n*D,E+=n*F,A+=n*z,x+=n*q,k+=n*K,M+=n*Y,I+=n*H,T+=n*J,B+=n*G,P+=n*V,C+=n*W,O+=n*X,R+=n*Z,_+=(n=t[15])*U,o+=38*(S+=n*N),a+=38*(E+=n*D),f+=38*(A+=n*F),d+=38*(x+=n*z),s+=38*(k+=n*q),c+=38*(M+=n*K),h+=38*(I+=n*Y),l+=38*(T+=n*H),p+=38*(B+=n*J),b+=38*(P+=n*G),y+=38*(C+=n*V),m+=38*(O+=n*W),g+=38*(R+=n*X),v+=38*(j+=n*Z),u=(n=(u+=38*(w+=n*L))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),o=(n=o+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=(u+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),o=(n=o+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),u+=i-1+37*(i-1),e[0]=u,e[1]=o,e[2]=a,e[3]=f,e[4]=d,e[5]=s,e[6]=c,e[7]=h,e[8]=l,e[9]=p,e[10]=b,e[11]=y,e[12]=m,e[13]=g,e[14]=v,e[15]=_}function F(e,t){D(e,t,t)}function z(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)F(i,i),2!==n&&4!==n&&D(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function q(e,r,n){var i,u,o=new Uint8Array(32),a=new Float64Array(80),d=t(),s=t(),c=t(),h=t(),l=t(),p=t();for(u=0;u<31;u++)o[u]=r[u];for(o[31]=127&r[31]|64,o[0]&=248,U(a,n),u=0;u<16;u++)s[u]=a[u],h[u]=d[u]=c[u]=0;for(d[0]=h[0]=1,u=254;u>=0;--u)C(d,s,i=o[u>>>3]>>>(7&u)&1),C(c,h,i),L(l,d,c),N(d,d,c),L(c,s,h),N(s,s,h),F(h,l),F(p,d),D(d,c,d),D(c,s,l),L(l,d,c),N(d,d,c),F(s,d),N(c,h,p),D(d,c,f),L(d,d,h),D(c,c,d),D(d,h,p),D(h,s,a),F(s,l),C(d,s,i),C(c,h,i);for(u=0;u<16;u++)a[u+16]=d[u],a[u+32]=c[u],a[u+48]=s[u],a[u+64]=h[u];var b=a.subarray(32),y=a.subarray(16);return z(b,b),D(y,y,b),O(e,y),0}function K(e,t){return q(e,t,u)}function Y(e,t){return n(t,32),K(e,t)}function H(e,t,r){var n=new Uint8Array(32);return q(n,r,t),v(e,i,n,_)}x.prototype.blocks=function(e,t,r){for(var n,i,u,o,a,f,d,s,c,h,l,p,b,y,m,g,v,_,w,S=this.fin?0:2048,E=this.h[0],A=this.h[1],x=this.h[2],k=this.h[3],M=this.h[4],I=this.h[5],T=this.h[6],B=this.h[7],P=this.h[8],C=this.h[9],O=this.r[0],R=this.r[1],j=this.r[2],U=this.r[3],L=this.r[4],N=this.r[5],D=this.r[6],F=this.r[7],z=this.r[8],q=this.r[9];r>=16;)E+=8191&(n=255&e[t+0]|(255&e[t+1])<<8),A+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3),x+=8191&(i>>>10|(u=255&e[t+4]|(255&e[t+5])<<8)<<6),k+=8191&(u>>>7|(o=255&e[t+6]|(255&e[t+7])<<8)<<9),M+=8191&(o>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12),I+=a>>>1&8191,T+=8191&(a>>>14|(f=255&e[t+10]|(255&e[t+11])<<8)<<2),B+=8191&(f>>>11|(d=255&e[t+12]|(255&e[t+13])<<8)<<5),s=255&e[t+14]|(255&e[t+15])<<8,h=c=0,h+=E*O,h+=A*(5*q),h+=x*(5*z),h+=k*(5*F),c=(h+=M*(5*D))>>>13,h&=8191,h+=I*(5*N),h+=T*(5*L),h+=B*(5*U),h+=(P+=8191&(d>>>8|s<<8))*(5*j),l=c+=(h+=(C+=s>>>5|S)*(5*R))>>>13,l+=E*R,l+=A*O,l+=x*(5*q),l+=k*(5*z),c=(l+=M*(5*F))>>>13,l&=8191,l+=I*(5*D),l+=T*(5*N),l+=B*(5*L),l+=P*(5*U),c+=(l+=C*(5*j))>>>13,l&=8191,p=c,p+=E*j,p+=A*R,p+=x*O,p+=k*(5*q),c=(p+=M*(5*z))>>>13,p&=8191,p+=I*(5*F),p+=T*(5*D),p+=B*(5*N),p+=P*(5*L),b=c+=(p+=C*(5*U))>>>13,b+=E*U,b+=A*j,b+=x*R,b+=k*O,c=(b+=M*(5*q))>>>13,b&=8191,b+=I*(5*z),b+=T*(5*F),b+=B*(5*D),b+=P*(5*N),y=c+=(b+=C*(5*L))>>>13,y+=E*L,y+=A*U,y+=x*j,y+=k*R,c=(y+=M*O)>>>13,y&=8191,y+=I*(5*q),y+=T*(5*z),y+=B*(5*F),y+=P*(5*D),m=c+=(y+=C*(5*N))>>>13,m+=E*N,m+=A*L,m+=x*U,m+=k*j,c=(m+=M*R)>>>13,m&=8191,m+=I*O,m+=T*(5*q),m+=B*(5*z),m+=P*(5*F),g=c+=(m+=C*(5*D))>>>13,g+=E*D,g+=A*N,g+=x*L,g+=k*U,c=(g+=M*j)>>>13,g&=8191,g+=I*R,g+=T*O,g+=B*(5*q),g+=P*(5*z),v=c+=(g+=C*(5*F))>>>13,v+=E*F,v+=A*D,v+=x*N,v+=k*L,c=(v+=M*U)>>>13,v&=8191,v+=I*j,v+=T*R,v+=B*O,v+=P*(5*q),_=c+=(v+=C*(5*z))>>>13,_+=E*z,_+=A*F,_+=x*D,_+=k*N,c=(_+=M*L)>>>13,_&=8191,_+=I*U,_+=T*j,_+=B*R,_+=P*O,w=c+=(_+=C*(5*q))>>>13,w+=E*q,w+=A*z,w+=x*F,w+=k*D,c=(w+=M*N)>>>13,w&=8191,w+=I*L,w+=T*U,w+=B*j,w+=P*R,E=h=8191&(c=(c=((c+=(w+=C*O)>>>13)<<2)+c|0)+(h&=8191)|0),A=l+=c>>>=13,x=p&=8191,k=b&=8191,M=y&=8191,I=m&=8191,T=g&=8191,B=v&=8191,P=_&=8191,C=w&=8191,t+=16,r-=16;this.h[0]=E,this.h[1]=A,this.h[2]=x,this.h[3]=k,this.h[4]=M,this.h[5]=I,this.h[6]=T,this.h[7]=B,this.h[8]=P,this.h[9]=C},x.prototype.finish=function(e,t){var r,n,i,u,o=new Uint16Array(10);if(this.leftover){for(u=this.leftover,this.buffer[u++]=1;u<16;u++)this.buffer[u]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,u=2;u<10;u++)this.h[u]+=r,r=this.h[u]>>>13,this.h[u]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,o[0]=this.h[0]+5,r=o[0]>>>13,o[0]&=8191,u=1;u<10;u++)o[u]=this.h[u]+r,r=o[u]>>>13,o[u]&=8191;for(o[9]-=8192,n=(1^r)-1,u=0;u<10;u++)o[u]&=n;for(n=~n,u=0;u<10;u++)this.h[u]=this.h[u]&n|o[u];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,u=1;u<8;u++)i=(this.h[u]+this.pad[u]|0)+(i>>>16)|0,this.h[u]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},x.prototype.update=function(e,t,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=e[t+n];if(r-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=e[t+n];this.leftover+=r}};var J=I,G=T,V=[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];function W(e,t,r,n){for(var i,u,o,a,f,d,s,c,h,l,p,b,y,m,g,v,_,w,S,E,A,x,k,M,I,T,B=new Int32Array(16),P=new Int32Array(16),C=e[0],O=e[1],R=e[2],j=e[3],U=e[4],L=e[5],N=e[6],D=e[7],F=t[0],z=t[1],q=t[2],K=t[3],Y=t[4],H=t[5],J=t[6],G=t[7],W=0;n>=128;){for(S=0;S<16;S++)E=8*S+W,B[S]=r[E+0]<<24|r[E+1]<<16|r[E+2]<<8|r[E+3],P[S]=r[E+4]<<24|r[E+5]<<16|r[E+6]<<8|r[E+7];for(S=0;S<80;S++)if(i=C,u=O,o=R,a=j,f=U,d=L,s=N,c=D,h=F,l=z,p=q,b=K,y=Y,m=H,g=J,v=G,k=65535&(x=G),M=x>>>16,I=65535&(A=D),T=A>>>16,k+=65535&(x=(Y>>>14|U<<18)^(Y>>>18|U<<14)^(U>>>9|Y<<23)),M+=x>>>16,I+=65535&(A=(U>>>14|Y<<18)^(U>>>18|Y<<14)^(Y>>>9|U<<23)),T+=A>>>16,k+=65535&(x=Y&H^~Y&J),M+=x>>>16,I+=65535&(A=U&L^~U&N),T+=A>>>16,A=V[2*S],k+=65535&(x=V[2*S+1]),M+=x>>>16,I+=65535&A,T+=A>>>16,A=B[S%16],M+=(x=P[S%16])>>>16,I+=65535&A,T+=A>>>16,I+=(M+=(k+=65535&x)>>>16)>>>16,k=65535&(x=w=65535&k|M<<16),M=x>>>16,I=65535&(A=_=65535&I|(T+=I>>>16)<<16),T=A>>>16,k+=65535&(x=(F>>>28|C<<4)^(C>>>2|F<<30)^(C>>>7|F<<25)),M+=x>>>16,I+=65535&(A=(C>>>28|F<<4)^(F>>>2|C<<30)^(F>>>7|C<<25)),T+=A>>>16,M+=(x=F&z^F&q^z&q)>>>16,I+=65535&(A=C&O^C&R^O&R),T+=A>>>16,c=65535&(I+=(M+=(k+=65535&x)>>>16)>>>16)|(T+=I>>>16)<<16,v=65535&k|M<<16,k=65535&(x=b),M=x>>>16,I=65535&(A=a),T=A>>>16,M+=(x=w)>>>16,I+=65535&(A=_),T+=A>>>16,O=i,R=u,j=o,U=a=65535&(I+=(M+=(k+=65535&x)>>>16)>>>16)|(T+=I>>>16)<<16,L=f,N=d,D=s,C=c,z=h,q=l,K=p,Y=b=65535&k|M<<16,H=y,J=m,G=g,F=v,S%16==15)for(E=0;E<16;E++)A=B[E],k=65535&(x=P[E]),M=x>>>16,I=65535&A,T=A>>>16,A=B[(E+9)%16],k+=65535&(x=P[(E+9)%16]),M+=x>>>16,I+=65535&A,T+=A>>>16,_=B[(E+1)%16],k+=65535&(x=((w=P[(E+1)%16])>>>1|_<<31)^(w>>>8|_<<24)^(w>>>7|_<<25)),M+=x>>>16,I+=65535&(A=(_>>>1|w<<31)^(_>>>8|w<<24)^_>>>7),T+=A>>>16,_=B[(E+14)%16],M+=(x=((w=P[(E+14)%16])>>>19|_<<13)^(_>>>29|w<<3)^(w>>>6|_<<26))>>>16,I+=65535&(A=(_>>>19|w<<13)^(w>>>29|_<<3)^_>>>6),T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,B[E]=65535&I|T<<16,P[E]=65535&k|M<<16;k=65535&(x=F),M=x>>>16,I=65535&(A=C),T=A>>>16,A=e[0],M+=(x=t[0])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[0]=C=65535&I|T<<16,t[0]=F=65535&k|M<<16,k=65535&(x=z),M=x>>>16,I=65535&(A=O),T=A>>>16,A=e[1],M+=(x=t[1])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[1]=O=65535&I|T<<16,t[1]=z=65535&k|M<<16,k=65535&(x=q),M=x>>>16,I=65535&(A=R),T=A>>>16,A=e[2],M+=(x=t[2])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[2]=R=65535&I|T<<16,t[2]=q=65535&k|M<<16,k=65535&(x=K),M=x>>>16,I=65535&(A=j),T=A>>>16,A=e[3],M+=(x=t[3])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[3]=j=65535&I|T<<16,t[3]=K=65535&k|M<<16,k=65535&(x=Y),M=x>>>16,I=65535&(A=U),T=A>>>16,A=e[4],M+=(x=t[4])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[4]=U=65535&I|T<<16,t[4]=Y=65535&k|M<<16,k=65535&(x=H),M=x>>>16,I=65535&(A=L),T=A>>>16,A=e[5],M+=(x=t[5])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[5]=L=65535&I|T<<16,t[5]=H=65535&k|M<<16,k=65535&(x=J),M=x>>>16,I=65535&(A=N),T=A>>>16,A=e[6],M+=(x=t[6])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[6]=N=65535&I|T<<16,t[6]=J=65535&k|M<<16,k=65535&(x=G),M=x>>>16,I=65535&(A=D),T=A>>>16,A=e[7],M+=(x=t[7])>>>16,I+=65535&A,T+=A>>>16,T+=(I+=(M+=(k+=65535&x)>>>16)>>>16)>>>16,e[7]=D=65535&I|T<<16,t[7]=G=65535&k|M<<16,W+=128,n-=128}return n}function X(e,t,r){var n,i=new Int32Array(8),u=new Int32Array(8),o=new Uint8Array(256),a=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,u[0]=4089235720,u[1]=2227873595,u[2]=4271175723,u[3]=1595750129,u[4]=2917565137,u[5]=725511199,u[6]=4215389547,u[7]=327033209,W(i,u,t,r),r%=128,n=0;n<r;n++)o[n]=t[a-r+n];for(o[r]=128,o[(r=256-128*(r<112?1:0))-9]=0,p(o,r-8,a/536870912|0,a<<3),W(i,u,o,r),n=0;n<8;n++)p(e,8*n,i[n],u[n]);return 0}function Z(e,r){var n=t(),i=t(),u=t(),o=t(),a=t(),f=t(),d=t(),c=t(),h=t();N(n,e[1],e[0]),N(h,r[1],r[0]),D(n,n,h),L(i,e[0],e[1]),L(h,r[0],r[1]),D(i,i,h),D(u,e[3],r[3]),D(u,u,s),D(o,e[2],r[2]),L(o,o,o),N(a,i,n),N(f,o,u),L(d,o,u),L(c,i,n),D(e[0],a,f),D(e[1],c,d),D(e[2],d,f),D(e[3],a,c)}function $(e,t,r){var n;for(n=0;n<4;n++)C(e[n],t[n],r)}function Q(e,r){var n=t(),i=t(),u=t();z(u,r[2]),D(n,r[0],u),D(i,r[1],u),O(e,i),e[31]^=j(n)<<7}function ee(e,t,r){var n,i;for(B(e[0],o),B(e[1],a),B(e[2],a),B(e[3],o),i=255;i>=0;--i)$(e,t,n=r[i/8|0]>>(7&i)&1),Z(t,e),Z(e,e),$(e,t,n)}function te(e,r){var n=[t(),t(),t(),t()];B(n[0],c),B(n[1],h),B(n[2],a),D(n[3],c,h),ee(e,n,r)}function re(e,r,i){var u,o=new Uint8Array(64),a=[t(),t(),t(),t()];for(i||n(r,32),X(o,r,32),o[0]&=248,o[31]&=127,o[31]|=64,te(a,o),Q(e,a),u=0;u<32;u++)r[u+32]=e[u];return 0}var ne=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var r,n,i,u;for(n=63;n>=32;--n){for(r=0,i=n-32,u=n-12;i<u;++i)t[i]+=r-16*t[n]*ne[i-(n-32)],r=t[i]+128>>8,t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*ne[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*ne[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function ue(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,r)}function oe(e,r,n,i){var u,o,a=new Uint8Array(64),f=new Uint8Array(64),d=new Uint8Array(64),s=new Float64Array(64),c=[t(),t(),t(),t()];X(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var h=n+64;for(u=0;u<n;u++)e[64+u]=r[u];for(u=0;u<32;u++)e[32+u]=a[32+u];for(X(d,e.subarray(32),n+32),ue(d),te(c,d),Q(e,c),u=32;u<64;u++)e[u]=i[u];for(X(f,e,n+64),ue(f),u=0;u<64;u++)s[u]=0;for(u=0;u<32;u++)s[u]=d[u];for(u=0;u<32;u++)for(o=0;o<32;o++)s[u+o]+=f[u]*a[o];return ie(e.subarray(32),s),h}function ae(e,r){var n=t(),i=t(),u=t(),f=t(),s=t(),c=t(),h=t();return B(e[2],a),U(e[1],r),F(u,e[1]),D(f,u,d),N(u,u,e[2]),L(f,e[2],f),F(s,f),F(c,s),D(h,c,s),D(n,h,u),D(n,n,f),function(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)F(i,i),1!==n&&D(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}(n,n),D(n,n,u),D(n,n,f),D(n,n,f),D(e[0],n,f),F(i,e[0]),D(i,i,f),R(i,u)&&D(e[0],e[0],l),F(i,e[0]),D(i,i,f),R(i,u)?-1:(j(e[0])===r[31]>>7&&N(e[0],o,e[0]),D(e[3],e[0],e[1]),0)}function fe(e,r,n,i){var u,o=new Uint8Array(32),a=new Uint8Array(64),f=[t(),t(),t(),t()],d=[t(),t(),t(),t()];if(n<64)return-1;if(ae(d,i))return-1;for(u=0;u<n;u++)e[u]=r[u];for(u=0;u<32;u++)e[u+32]=i[u];if(X(a,e,n),ue(a),ee(f,d,a),te(d,r.subarray(32)),Z(f,d),Q(o,f),n-=64,m(r,0,o,0)){for(u=0;u<n;u++)e[u]=0;return-1}for(u=0;u<n;u++)e[u]=r[u+64];return n}var de=32,se=24,ce=se;function he(e,t){if(e.length!==de)throw new Error("bad key size");if(t.length!==se)throw new Error("bad nonce size")}function le(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function pe(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:v,crypto_stream_xor:A,crypto_stream:E,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:S,crypto_onetimeauth:k,crypto_onetimeauth_verify:M,crypto_verify_16:y,crypto_verify_32:m,crypto_secretbox:I,crypto_secretbox_open:T,crypto_scalarmult:q,crypto_scalarmult_base:K,crypto_box_beforenm:H,crypto_box_afternm:J,crypto_box:function(e,t,r,n,i,u){var o=new Uint8Array(32);return H(o,i,u),J(e,t,r,n,o)},crypto_box_open:function(e,t,r,n,i,u){var o=new Uint8Array(32);return H(o,i,u),G(e,t,r,n,o)},crypto_box_keypair:Y,crypto_hash:X,crypto_sign:oe,crypto_sign_keypair:re,crypto_sign_open:fe,crypto_secretbox_KEYBYTES:de,crypto_secretbox_NONCEBYTES:se,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:ce,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:64,crypto_sign_PUBLICKEYBYTES:32,crypto_sign_SECRETKEYBYTES:64,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64},e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,r){le(e,t,r),he(r,t);for(var n=new Uint8Array(32+e.length),i=new Uint8Array(n.length),u=0;u<e.length;u++)n[u+32]=e[u];return I(i,n,n.length,t,r),i.subarray(16)},e.secretbox.open=function(e,t,r){le(e,t,r),he(r,t);for(var n=new Uint8Array(16+e.length),i=new Uint8Array(n.length),u=0;u<e.length;u++)n[u+16]=e[u];return n.length<32?null:0!==T(i,n,n.length,t,r)?null:i.subarray(32)},e.secretbox.keyLength=de,e.secretbox.nonceLength=se,e.secretbox.overheadLength=16,e.scalarMult=function(e,t){if(le(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var r=new Uint8Array(32);return q(r,e,t),r},e.scalarMult.base=function(e){if(le(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return K(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,r,n,i){var u=e.box.before(n,i);return e.secretbox(t,r,u)},e.box.before=function(e,t){le(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var r=new Uint8Array(32);return H(r,e,t),r},e.box.after=e.secretbox,e.box.open=function(t,r,n,i){var u=e.box.before(n,i);return e.secretbox.open(t,r,u)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return Y(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(le(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return K(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=ce,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(le(e,t),64!==t.length)throw new Error("bad secret key size");var r=new Uint8Array(64+e.length);return oe(r,e,e.length,t),r},e.sign.open=function(e,t){if(le(e,t),32!==t.length)throw new Error("bad public key size");var r=new Uint8Array(e.length),n=fe(r,e,e.length,t);if(n<0)return null;for(var i=new Uint8Array(n),u=0;u<i.length;u++)i[u]=r[u];return i},e.sign.detached=function(t,r){for(var n=e.sign(t,r),i=new Uint8Array(64),u=0;u<i.length;u++)i[u]=n[u];return i},e.sign.detached.verify=function(e,t,r){if(le(e,t,r),64!==t.length)throw new Error("bad signature size");if(32!==r.length)throw new Error("bad public key size");var n,i=new Uint8Array(64+e.length),u=new Uint8Array(64+e.length);for(n=0;n<64;n++)i[n]=t[n];for(n=0;n<e.length;n++)i[n+64]=e[n];return fe(u,i,i.length,r)>=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(le(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),r=0;r<t.length;r++)t[r]=e[32+r];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(le(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(32),r=new Uint8Array(64),n=0;n<32;n++)r[n]=e[n];return re(t,r,!0),{publicKey:t,secretKey:r}},e.sign.publicKeyLength=32,e.sign.secretKeyLength=64,e.sign.seedLength=32,e.sign.signatureLength=64,e.hash=function(e){le(e);var t=new Uint8Array(64);return X(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return le(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===b(e,0,t,0,e.length)},e.setPRNG=function(e){n=e},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;t&&t.getRandomValues?e.setPRNG(function(e,r){var n,i=new Uint8Array(r);for(n=0;n<r;n+=65536)t.getRandomValues(i.subarray(n,n+Math.min(r-n,65536)));for(n=0;n<r;n++)e[n]=i[n];pe(i)}):(t=r(78))&&t.randomBytes&&e.setPRNG(function(e,r){var n,i=t.randomBytes(r);for(n=0;n<r;n++)e[n]=i[n];pe(i)})}()}(void 0!==e&&e.exports?e.exports:self.nacl=self.nacl||{})},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t){t.read=function(e,t,r,n,i){var u,o,a=8*i-n-1,f=(1<<a)-1,d=f>>1,s=-7,c=r?i-1:0,h=r?-1:1,l=e[t+c];for(c+=h,u=l&(1<<-s)-1,l>>=-s,s+=a;s>0;u=256*u+e[t+c],c+=h,s-=8);for(o=u&(1<<-s)-1,u>>=-s,s+=n;s>0;o=256*o+e[t+c],c+=h,s-=8);if(0===u)u=1-d;else{if(u===f)return o?NaN:1/0*(l?-1:1);o+=Math.pow(2,n),u-=d}return(l?-1:1)*o*Math.pow(2,u-n)},t.write=function(e,t,r,n,i,u){var o,a,f,d=8*u-i-1,s=(1<<d)-1,c=s>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=n?0:u-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?(a=isNaN(t)?1:0,o=s):(o=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-o))<1&&(o--,f*=2),(t+=o+c>=1?h/f:h*Math.pow(2,1-c))*f>=2&&(o++,f/=2),o+c>=s?(a=0,o=s):o+c>=1?(a=(t*f-1)*Math.pow(2,i),o+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,i),o=0));i>=8;e[r+l]=255&a,l+=p,a/=256,i-=8);for(o=o<<i|a,d+=i;d>0;e[r+l]=255&o,l+=p,o/=256,d-=8);e[r+l-p]|=128*b}},function(e,t,r){"use strict";t.byteLength=function(e){var t=d(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){for(var t,r=d(e),n=r[0],o=r[1],a=new u(3*(n+o)/4-o),f=0,s=o>0?n-4:n,c=0;c<s;c+=4)t=i[e.charCodeAt(c)]<<18|i[e.charCodeAt(c+1)]<<12|i[e.charCodeAt(c+2)]<<6|i[e.charCodeAt(c+3)],a[f++]=t>>16&255,a[f++]=t>>8&255,a[f++]=255&t;return 2===o&&(t=i[e.charCodeAt(c)]<<2|i[e.charCodeAt(c+1)]>>4,a[f++]=255&t),1===o&&(t=i[e.charCodeAt(c)]<<10|i[e.charCodeAt(c+1)]<<4|i[e.charCodeAt(c+2)]>>2,a[f++]=t>>8&255,a[f++]=255&t),a},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,u=[],o=0,a=r-i;o<a;o+=16383)u.push(c(e,o,o+16383>a?a:o+16383));return 1===i?(t=e[r-1],u.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],u.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),u.join("")};for(var n=[],i=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,f=o.length;a<f;++a)n[a]=o[a],i[o.charCodeAt(a)]=a;function d(e){var t=e.length;if(t%4>0)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 s(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function c(e,t,r){for(var n,i=[],u=t;u<r;u+=3)n=(e[u]<<16&16711680)+(e[u+1]<<8&65280)+(255&e[u+2]),i.push(s(n));return i.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t,r){var n=r(2),i=n.Buffer;function u(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(u(n,t),t.Buffer=o),u(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.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},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){var n=r(83).Buffer;e.exports=function(e){for(var t={},r=e.length,i=e.charAt(0),u=0;u<e.length;u++){var o=e.charAt(u);if(void 0!==t[o])throw new TypeError(o+" is ambiguous");t[o]=u}function a(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return n.allocUnsafe(0);for(var u=[0],o=0;o<e.length;o++){var a=t[e[o]];if(void 0===a)return;for(var f=0,d=a;f<u.length;++f)d+=u[f]*r,u[f]=255&d,d>>=8;for(;d>0;)u.push(255&d),d>>=8}for(var s=0;e[s]===i&&s<e.length-1;++s)u.push(0);return n.from(u.reverse())}return{encode:function(t){if(0===t.length)return"";for(var n=[0],u=0;u<t.length;++u){for(var o=0,a=t[u];o<n.length;++o)a+=n[o]<<8,n[o]=a%r,a=a/r|0;for(;a>0;)n.push(a%r),a=a/r|0}for(var f="",d=0;0===t[d]&&d<t.length-1;++d)f+=i;for(var s=n.length-1;s>=0;--s)f+=e[n[s]];return f},decodeUnsafe:a,decode:function(e){var t=a(e);if(t)return t;throw new Error("Non-base"+r+" character")}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e?i.default.sign.keyPair.fromSeed(e):i.default.sign.keyPair();this.publicKey=n.default.encode(t.publicKey),this.privateKey=n.default.encode(t.secretKey.slice(0,32))};var n=u(r(3)),i=u(r(79));function u(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ccJsonify=t.ccJsonLoad=t.Transaction=t.Connection=t.Ed25519Keypair=void 0;var n=f(r(85)),i=f(r(77)),u=f(r(29)),o=f(r(19)),a=f(r(9));function f(e){return e&&e.__esModule?e:{default:e}}t.Ed25519Keypair=n.default,t.Connection=i.default,t.Transaction=u.default,t.ccJsonLoad=o.default,t.ccJsonify=a.default},function(e,t,r){e.exports=r(86)}])},function(e,t,r){"use strict";var n=r(54)(!0);r(37)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(14),i=r(8),u=r(38),o=r(6),a=r(13),f=r(55),d=r(27),s=r(60),c=r(0)("iterator"),h=!([].keys&&"next"in[].keys()),l=function(){return this};e.exports=function(e,t,r,p,b,y,m){f(r,t,p);var g,v,_,w=function(e){if(!h&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},S=t+" Iterator",E="values"==b,A=!1,x=e.prototype,k=x[c]||x["@@iterator"]||b&&x[b],M=k||w(b),I=b?E?w("entries"):M:void 0,T="Array"==t&&x.entries||k;if(T&&(_=s(T.call(new e)))!==Object.prototype&&_.next&&(d(_,S,!0),n||"function"==typeof _[c]||o(_,c,l)),E&&k&&"values"!==k.name&&(A=!0,M=function(){return k.call(this)}),n&&!m||!h&&!A&&x[c]||o(x,c,M),a[t]=M,a[S]=l,b)if(g={values:E?M:w("values"),keys:y?M:w("keys"),entries:I},m)for(v in g)v in x||u(x,v,g[v]);else i(i.P+i.F*(h||A),t,g);return g}},function(e,t,r){e.exports=r(6)},function(e,t,r){var n=r(9),i=r(56),u=r(26),o=r(24)("IE_PROTO"),a=function(){},f=function(){var e,t=r(34)("iframe"),n=u.length;for(t.style.display="none",r(59).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),f=e.F;n--;)delete f.prototype[u[n]];return f()};e.exports=Object.create||function(e,t){var r;return null!==e?(a.prototype=n(e),r=new a,a.prototype=null,r[o]=e):r=f(),void 0===t?r:i(r,t)}},function(e,t,r){var n=r(5),i=r(7),u=r(57)(!1),o=r(24)("IE_PROTO");e.exports=function(e,t){var r,a=i(e),f=0,d=[];for(r in a)r!=o&&n(a,r)&&d.push(r);for(;t.length>f;)n(a,r=t[f++])&&(~u(d,r)||d.push(r));return d}},function(e,t,r){var n=r(23);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){var n=r(21),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){var n=r(40),i=r(26).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(76));t.default=n.default||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(18)),i=f(r(19)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(35)),o=f(r(50)),a=f(r(80));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(t,r){(0,n.default)(this,e),this.connection=new o.default(t,r),r&&void 0!==r.app_id&&""!==r.app_id?this.appId=r.app_id:this.appId="global",this.models=[],this.driver=u}return(0,i.default)(e,[{key:"define",value:function(e,t){this.models[e]=new a.default(e,t,this.connection,this.appId)}}]),e}();t.default=d},function(e,t,r){e.exports={default:r(47),__esModule:!0}},function(e,t,r){r(48);var n=r(2).Object;e.exports=function(e,t,r){return n.defineProperty(e,t,r)}},function(e,t,r){var n=r(8);n(n.S+n.F*!r(4),"Object",{defineProperty:r(3).f})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(51)),i=f(r(44)),u=f(r(18)),o=f(r(19)),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(35));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,u.default)(this,e),this.path=t,this.headers=(0,i.default)({},r),this.conn=new a.Connection(t,r)}return(0,o.default)(e,[{key:"getAssetId",value:function(e){return"CREATE"===e.operation?e.id:e.asset.id}},{key:"getTransaction",value:function(e){return this.conn.getTransaction(e)}},{key:"listTransactions",value:function(e,t){return this.conn.listTransactions(e,t)}},{key:"searchAssets",value:function(e){return this.conn.searchAssets(e)}},{key:"createTransaction",value:function(e,t,r,n){try{var i=a.Transaction.makeCreateTransaction(r,n,[a.Transaction.makeOutput(a.Transaction.makeEd25519Condition(e))],e),u=a.Transaction.signTransaction(i,t);return this.conn.postTransactionCommit(u).then(function(){return u})}catch(e){return Promise.reject(e)}}},{key:"transferTransaction",value:function(e,t,r,n,i){try{var u=a.Transaction.makeTransferTransaction([{tx:e,output_index:0}],[a.Transaction.makeOutput(a.Transaction.makeEd25519Condition(n))],i),o=a.Transaction.signTransaction(u,r);return this.conn.postTransactionCommit(o).then(function(){return o})}catch(e){return Promise.reject(e)}}},{key:"getSortedTransactions",value:function(e){return this.conn.listTransactions(e).then(function(e){if(e.length<=1)return e;var t=[];e.forEach(function(e){return e.inputs.forEach(function(e){e.fulfills&&t.push(e.fulfills.transaction_id)})});var r=e.filter(function(e){return-1===t.indexOf(e.id)});if(r.length){var i=function(){for(var t=r[0],n=t.inputs[0].fulfills.transaction_id,i=[];;){i.push(t);try{n=t.inputs[0].fulfills.transaction_id}catch(e){break}if(!n)break;t=e.filter(function(e){return e.id===n})[0]}return{v:i.reverse()}}();if("object"===(void 0===i?"undefined":(0,n.default)(i)))return i.v}else console.error("something went wrong while sorting transactions",e,t);return e})}}]),e}();t.default=d},function(e,t,r){"use strict";t.__esModule=!0;var n=o(r(52)),i=o(r(65)),u="function"==typeof i.default&&"symbol"==typeof n.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof i.default&&"symbol"===u(n.default)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":u(e)}},function(e,t,r){e.exports={default:r(53),__esModule:!0}},function(e,t,r){r(36),r(61),e.exports=r(29).f("iterator")},function(e,t,r){var n=r(21),i=r(22);e.exports=function(e){return function(t,r){var u,o,a=String(i(t)),f=n(r),d=a.length;return f<0||f>=d?e?"":void 0:(u=a.charCodeAt(f))<55296||u>56319||f+1===d||(o=a.charCodeAt(f+1))<56320||o>57343?e?a.charAt(f):u:e?a.slice(f,f+2):o-56320+(u-55296<<10)+65536}}},function(e,t,r){"use strict";var n=r(39),i=r(12),u=r(27),o={};r(6)(o,r(0)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(o,{next:i(1,r)}),u(e,t+" Iterator")}},function(e,t,r){var n=r(3),i=r(9),u=r(15);e.exports=r(4)?Object.defineProperties:function(e,t){i(e);for(var r,o=u(t),a=o.length,f=0;a>f;)n.f(e,r=o[f++],t[r]);return e}},function(e,t,r){var n=r(7),i=r(42),u=r(58);e.exports=function(e){return function(t,r,o){var a,f=n(t),d=i(f.length),s=u(o,d);if(e&&r!=r){for(;d>s;)if((a=f[s++])!=a)return!0}else for(;d>s;s++)if((e||s in f)&&f[s]===r)return e||s||0;return!e&&-1}}},function(e,t,r){var n=r(21),i=Math.max,u=Math.min;e.exports=function(e,t){return(e=n(e))<0?i(e+t,0):u(e,t)}},function(e,t,r){var n=r(1).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(5),i=r(28),u=r(24)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),n(e,u)?e[u]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,r){r(62);for(var n=r(1),i=r(6),u=r(13),o=r(0)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),f=0;f<a.length;f++){var d=a[f],s=n[d],c=s&&s.prototype;c&&!c[o]&&i(c,o,d),u[d]=u.Array}},function(e,t,r){"use strict";var n=r(63),i=r(64),u=r(13),o=r(7);e.exports=r(37)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),u.Arguments=u.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,r){e.exports={default:r(66),__esModule:!0}},function(e,t,r){r(67),r(73),r(74),r(75),e.exports=r(2).Symbol},function(e,t,r){"use strict";var n=r(1),i=r(5),u=r(4),o=r(8),a=r(38),f=r(68).KEY,d=r(11),s=r(25),c=r(27),h=r(16),l=r(0),p=r(29),b=r(30),y=r(69),m=r(70),g=r(9),v=r(10),_=r(7),w=r(20),S=r(12),E=r(39),A=r(71),x=r(72),k=r(3),M=r(15),I=x.f,T=k.f,B=A.f,P=n.Symbol,C=n.JSON,O=C&&C.stringify,R=l("_hidden"),j=l("toPrimitive"),U={}.propertyIsEnumerable,L=s("symbol-registry"),N=s("symbols"),D=s("op-symbols"),F=Object.prototype,z="function"==typeof P,q=n.QObject,K=!q||!q.prototype||!q.prototype.findChild,Y=u&&d(function(){return 7!=E(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=I(F,t);n&&delete F[t],T(e,t,r),n&&e!==F&&T(F,t,n)}:T,H=function(e){var t=N[e]=E(P.prototype);return t._k=e,t},J=z&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},G=function(e,t,r){return e===F&&G(D,t,r),g(e),t=w(t,!0),g(r),i(N,t)?(r.enumerable?(i(e,R)&&e[R][t]&&(e[R][t]=!1),r=E(r,{enumerable:S(0,!1)})):(i(e,R)||T(e,R,S(1,{})),e[R][t]=!0),Y(e,t,r)):T(e,t,r)},V=function(e,t){g(e);for(var r,n=y(t=_(t)),i=0,u=n.length;u>i;)G(e,r=n[i++],t[r]);return e},W=function(e){var t=U.call(this,e=w(e,!0));return!(this===F&&i(N,e)&&!i(D,e))&&(!(t||!i(this,e)||!i(N,e)||i(this,R)&&this[R][e])||t)},X=function(e,t){if(e=_(e),t=w(t,!0),e!==F||!i(N,t)||i(D,t)){var r=I(e,t);return!r||!i(N,t)||i(e,R)&&e[R][t]||(r.enumerable=!0),r}},Z=function(e){for(var t,r=B(_(e)),n=[],u=0;r.length>u;)i(N,t=r[u++])||t==R||t==f||n.push(t);return n},$=function(e){for(var t,r=e===F,n=B(r?D:_(e)),u=[],o=0;n.length>o;)!i(N,t=n[o++])||r&&!i(F,t)||u.push(N[t]);return u};z||(a((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(r){this===F&&t.call(D,r),i(this,R)&&i(this[R],e)&&(this[R][e]=!1),Y(this,e,S(1,r))};return u&&K&&Y(F,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),x.f=X,k.f=G,r(43).f=A.f=Z,r(17).f=W,r(31).f=$,u&&!r(14)&&a(F,"propertyIsEnumerable",W,!0),p.f=function(e){return H(l(e))}),o(o.G+o.W+o.F*!z,{Symbol:P});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)l(Q[ee++]);for(var te=M(l.store),re=0;te.length>re;)b(te[re++]);o(o.S+o.F*!z,"Symbol",{for:function(e){return i(L,e+="")?L[e]:L[e]=P(e)},keyFor:function(e){if(!J(e))throw TypeError(e+" is not a symbol!");for(var t in L)if(L[t]===e)return t},useSetter:function(){K=!0},useSimple:function(){K=!1}}),o(o.S+o.F*!z,"Object",{create:function(e,t){return void 0===t?E(e):V(E(e),t)},defineProperty:G,defineProperties:V,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:$}),C&&o(o.S+o.F*(!z||d(function(){var e=P();return"[null]"!=O([e])||"{}"!=O({a:e})||"{}"!=O(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],i=1;arguments.length>i;)n.push(arguments[i++]);if(r=t=n[1],(v(t)||void 0!==e)&&!J(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!J(t))return t}),n[1]=t,O.apply(C,n)}}),P.prototype[j]||r(6)(P.prototype,j,P.prototype.valueOf),c(P,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(e,t,r){var n=r(16)("meta"),i=r(10),u=r(5),o=r(3).f,a=0,f=Object.isExtensible||function(){return!0},d=!r(11)(function(){return f(Object.preventExtensions({}))}),s=function(e){o(e,n,{value:{i:"O"+ ++a,w:{}}})},c=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!u(e,n)){if(!f(e))return"F";if(!t)return"E";s(e)}return e[n].i},getWeak:function(e,t){if(!u(e,n)){if(!f(e))return!0;if(!t)return!1;s(e)}return e[n].w},onFreeze:function(e){return d&&c.NEED&&f(e)&&!u(e,n)&&s(e),e}}},function(e,t,r){var n=r(15),i=r(31),u=r(17);e.exports=function(e){var t=n(e),r=i.f;if(r)for(var o,a=r(e),f=u.f,d=0;a.length>d;)f.call(e,o=a[d++])&&t.push(o);return t}},function(e,t,r){var n=r(23);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t,r){var n=r(7),i=r(43).f,u={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==u.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(n(e))}},function(e,t,r){var n=r(17),i=r(12),u=r(7),o=r(20),a=r(5),f=r(33),d=Object.getOwnPropertyDescriptor;t.f=r(4)?d:function(e,t){if(e=u(e),t=o(t,!0),f)try{return d(e,t)}catch(e){}if(a(e,t))return i(!n.f.call(e,t),e[t])}},function(e,t){},function(e,t,r){r(30)("asyncIterator")},function(e,t,r){r(30)("observable")},function(e,t,r){e.exports={default:r(77),__esModule:!0}},function(e,t,r){r(78),e.exports=r(2).Object.assign},function(e,t,r){var n=r(8);n(n.S+n.F,"Object",{assign:r(79)})},function(e,t,r){"use strict";var n=r(15),i=r(31),u=r(17),o=r(28),a=r(41),f=Object.assign;e.exports=!f||r(11)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=f({},e)[r]||Object.keys(f({},t)).join("")!=n})?function(e,t){for(var r=o(e),f=arguments.length,d=1,s=i.f,c=u.f;f>d;)for(var h,l=a(arguments[d++]),p=s?n(l).concat(s(l)):n(l),b=p.length,y=0;b>y;)c.call(l,h=p[y++])&&(r[h]=l[h]);return r}:f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=f(r(81)),i=f(r(44)),u=f(r(18)),o=f(r(19)),a=f(r(91));function f(e){return e&&e.__esModule?e:{default:e}}var d=function(){function e(t,r,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"global",f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];(0,u.default)(this,e),this._name=t,this._schema=r,this._connection=o,this._appId=a,f.length&&(this.transactionHistory=f,this.id=f[0].asset.data.id,this.data=i.default.apply(void 0,[{}].concat((0,n.default)(f.map(function(e){return e.metadata})))))}return(0,o.default)(e,[{key:"retrieve",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=void 0;return n=void 0!==r&&""!==r?'"'+r+'"':'"id:'+this._appId+":"+this._name+':"',this._connection.searchAssets(n).then(function(r){return Promise.all(r.map(function(r){return t._connection.getSortedTransactions(r.id).then(function(r){return new e(t._name,t._schema,t._connection,t._appId,r)})}))})}},{key:"create",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,a.default)();void 0===t&&console.error("inputs missing");var i={schema:this._schema,id:"id:"+this._appId+":"+this._name+":"+n};return this._connection.createTransaction(t.keypair.publicKey,t.keypair.privateKey,i,t.data).then(function(t){return Promise.resolve(r._connection.getSortedTransactions(t.id).then(function(t){return new e(r._name,r._schema,r._connection,r._appId,t)}))})}},{key:"append",value:function(t){var r=this;return void 0===t&&console.error("inputs missing"),this._connection.transferTransaction(this.transactionHistory[this.transactionHistory.length-1],t.keypair.publicKey,t.keypair.privateKey,t.toPublicKey,t.data).then(function(){return Promise.resolve(r._connection.getSortedTransactions(r.transactionHistory[0].id).then(function(t){return new e(r._name,r._schema,r._connection,r._appId,t)}))})}},{key:"burn",value:function(t){var r=this;return void 0===t&&console.error("inputs missing"),this._connection.transferTransaction(this.transactionHistory[this.transactionHistory.length-1],t.keypair.publicKey,t.keypair.privateKey,"BurnBurnBurnBurnBurnBurnBurnBurnBurnBurnBurn",{status:"BURNED"}).then(function(){return Promise.resolve(r._connection.getSortedTransactions(r.transactionHistory[0].id).then(function(t){return new e(r._name,r._schema,r._connection,r._appId,t)}))})}}]),e}();t.default=d},function(e,t,r){"use strict";t.__esModule=!0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(82));t.default=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return(0,n.default)(e)}},function(e,t,r){e.exports={default:r(83),__esModule:!0}},function(e,t,r){r(36),r(84),e.exports=r(2).Array.from},function(e,t,r){"use strict";var n=r(32),i=r(8),u=r(28),o=r(85),a=r(86),f=r(42),d=r(87),s=r(88);i(i.S+i.F*!r(90)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,i,c,h=u(e),l="function"==typeof this?this:Array,p=arguments.length,b=p>1?arguments[1]:void 0,y=void 0!==b,m=0,g=s(h);if(y&&(b=n(b,p>2?arguments[2]:void 0,2)),void 0==g||l==Array&&a(g))for(r=new l(t=f(h.length));t>m;m++)d(r,m,y?b(h[m],m):h[m]);else for(c=g.call(h),r=new l;!(i=c.next()).done;m++)d(r,m,y?o(c,b,[i.value,m],!0):i.value);return r.length=m,r}})},function(e,t,r){var n=r(9);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var u=e.return;throw void 0!==u&&n(u.call(e)),t}}},function(e,t,r){var n=r(13),i=r(0)("iterator"),u=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||u[i]===e)}},function(e,t,r){"use strict";var n=r(3),i=r(12);e.exports=function(e,t,r){t in e?n.f(e,t,i(0,r)):e[t]=r}},function(e,t,r){var n=r(89),i=r(0)("iterator"),u=r(13);e.exports=r(2).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||u[n(e)]}},function(e,t,r){var n=r(23),i=r(0)("toStringTag"),u="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?r:u?n(t):"Object"==(o=n(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,r){var n=r(0)("iterator"),i=!1;try{var u=[7][n]();u.return=function(){i=!0},Array.from(u,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var u=[7],o=u[n]();o.next=function(){return{done:r=!0}},u[n]=function(){return o},e(u)}catch(e){}return r}},function(e,t,r){var n=r(92),i=r(93);e.exports=function(e,t,r){var u=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||n)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var a=0;a<16;++a)t[u+a]=o[a];return t||i(o)}},function(e,t){var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var n=new Uint8Array(16);e.exports=function(){return r(n),n}}else{var i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0,i=r;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}}])});
  //# sourceMappingURL=main.bigchaindb-orm.amd.min.js.map