3591f756df7237134c78219a6a11fa1979166fd8
[dotfiles/.git] / .config / google-chrome / Default / Extensions / dmkamcknogkgcdfhhbddcghachkejeap / 0.8.13_0 / popup.bundle.js
1 !function(e){function t(t){for(var n,i,o=t[0],a=t[1],s=0,l=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&l.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(c&&c(t);l.length;)l.shift()()}var n={},r={3:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[],n=r[e];if(0!==n)if(n)t.push(n[2]);else{var o=new Promise((function(t,i){n=r[e]=[t,i]}));t.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(e){return i.p+""+({4:"reactChartJS",5:"vendors~reactChartJS"}[e]||e)+".bundle.js"}(e);var c=new Error;a=function(t){s.onerror=s.onload=null,clearTimeout(l);var n=r[e];if(0!==n){if(n){var i=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+o+")",c.name="ChunkLoadError",c.type=i,c.request=o,n[1](c)}r[e]=void 0}};var l=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i.oe=function(e){throw console.error(e),e};var o=window.webpackJsonp=window.webpackJsonp||[],a=o.push.bind(o);o.push=t,o=o.slice();for(var s=0;s<o.length;s++)t(o[s]);var c=a;i(i.s=1076)}([function(e,t,n){"use strict";e.exports=n(1077)},function(e,t,n){e.exports=n(1104)()},function(e,t,n){"use strict";(function(e){
2 /*!
3  * The buffer module from node.js, for the browser.
4  *
5  * @author   Feross Aboukhadijeh <http://feross.org>
6  * @license  MIT
7  */
8 var r=n(117),i=n(426),o=n(237);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);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 l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(u(t),e=s(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;d<c;d++)if(l(e,o+d)!==l(t,d)){f=!1;break}if(f)return o}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,r){return z(F(t,e.length-n),e,n,r)}function _(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return _(e,t,n,r)}function x(e,t,n,r){return z(q(t),e,n,r)}function S(e,t,n,r){return z(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,c,l=e[i],u=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.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=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.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}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.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},c.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},c.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},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),f=0;f<s;++f)if(l[f]!==u[f]){o=l[f],a=u[f];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=U(e[o]);return i}function I(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,i,o){if(!c.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(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function R(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,o){return o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.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]},c.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])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.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},c.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]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||C(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);C(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=c.isBuffer(e)?e:F(new c(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(12))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"g",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u}));
9 /*! *****************************************************************************
10 Copyright (c) Microsoft Corporation.
11
12 Permission to use, copy, modify, and/or distribute this software for any
13 purpose with or without fee is hereby granted.
14
15 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
16 REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
17 AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
18 INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
19 LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20 OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21 PERFORMANCE OF THIS SOFTWARE.
22 ***************************************************************************** */
23 var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(c(arguments[t]));return e}function u(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"$mobx",(function(){return z})),n.d(t,"FlowCancellationError",(function(){return Jt})),n.d(t,"ObservableMap",(function(){return er})),n.d(t,"ObservableSet",(function(){return rr})),n.d(t,"Reaction",(function(){return vt})),n.d(t,"_allowStateChanges",(function(){return Ne})),n.d(t,"_allowStateChangesInsideComputed",(function(){return jt})),n.d(t,"_allowStateReadsEnd",(function(){return rt})),n.d(t,"_allowStateReadsStart",(function(){return nt})),n.d(t,"_autoAction",(function(){return Ct})),n.d(t,"_endAction",(function(){return Re})),n.d(t,"_getAdministration",(function(){return xr})),n.d(t,"_getGlobalState",(function(){return ut})),n.d(t,"_interceptReads",(function(){return nn})),n.d(t,"_isComputingDerivation",(function(){return Je})),n.d(t,"_resetGlobalState",(function(){return ft})),n.d(t,"_startAction",(function(){return De})),n.d(t,"action",(function(){return Pt})),n.d(t,"autorun",(function(){return Rt})),n.d(t,"comparer",(function(){return K})),n.d(t,"computed",(function(){return Ee})),n.d(t,"configure",(function(){return zt})),n.d(t,"createAtom",(function(){return $})),n.d(t,"entries",(function(){return pn})),n.d(t,"extendObservable",(function(){return Vt})),n.d(t,"flow",(function(){return Zt})),n.d(t,"flowResult",(function(){return en})),n.d(t,"get",(function(){return yn})),n.d(t,"getAtom",(function(){return kr})),n.d(t,"getDebugName",(function(){return Sr})),n.d(t,"getDependencyTree",(function(){return Ht})),n.d(t,"getObserverTree",(function(){return Kt})),n.d(t,"has",(function(){return bn})),n.d(t,"intercept",(function(){return rn})),n.d(t,"isAction",(function(){return Dt})),n.d(t,"isBoxedObservable",(function(){return qe})),n.d(t,"isComputed",(function(){return an})),n.d(t,"isComputedProp",(function(){return sn})),n.d(t,"isFlowCancellationError",(function(){return Qt})),n.d(t,"isObservable",(function(){return ln})),n.d(t,"isObservableArray",(function(){return Jn})),n.d(t,"isObservableMap",(function(){return tr})),n.d(t,"isObservableObject",(function(){return fr})),n.d(t,"isObservableProp",(function(){return un})),n.d(t,"isObservableSet",(function(){return ir})),n.d(t,"keys",(function(){return fn})),n.d(t,"makeAutoObservable",(function(){return Nn})),n.d(t,"makeObservable",(function(){return Rn})),n.d(t,"observable",(function(){return xe})),n.d(t,"observe",(function(){return gn})),n.d(t,"onBecomeObserved",(function(){return Ut})),n.d(t,"onBecomeUnobserved",(function(){return Ft})),n.d(t,"onReactionError",(function(){return wt})),n.d(t,"override",(function(){return J})),n.d(t,"reaction",(function(){return Lt})),n.d(t,"remove",(function(){return mn})),n.d(t,"runInAction",(function(){return jt})),n.d(t,"set",(function(){return hn})),n.d(t,"spy",(function(){return Ot})),n.d(t,"toJS",(function(){return wn})),n.d(t,"trace",(function(){return _n})),n.d(t,"transaction",(function(){return xn})),n.d(t,"untracked",(function(){return Xe})),n.d(t,"values",(function(){return dn})),n.d(t,"when",(function(){return Sn}));function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var i={};function o(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:i}var a=Object.assign,s=Object.getOwnPropertyDescriptor,c=Object.defineProperty,l=Object.prototype,u=[];Object.freeze(u);var f={};Object.freeze(f);var d="undefined"!=typeof Proxy,p=Object.toString();function h(){d||r("Proxy not available")}function m(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var b=function(){};function y(e){return"function"==typeof e}function g(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function v(e){return null!==e&&"object"==typeof e}function w(e){var t;if(!v(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null==(t=n.constructor)?void 0:t.toString())===p}function _(e,t,n){c(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function k(e,t,n){c(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function x(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return v(e)&&!0===e[n]}}function S(e){return e instanceof Map}function O(e){return e instanceof Set}var E=void 0!==Object.getOwnPropertySymbols;function T(e){var t=Object.keys(e);if(!E)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return l.propertyIsEnumerable.call(e,t)}))):t}var A="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:E?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function M(e){return null===e?null:"object"==typeof e?""+e:e}function I(e,t){return l.hasOwnProperty.call(e,t)}var P=Object.getOwnPropertyDescriptors||function(e){var t={};return A(e).forEach((function(n){t[n]=s(e,n)})),t};function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function j(e,t,n){return t&&C(e.prototype,t),n&&C(e,n),e}function D(){return(D=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function R(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var U=Symbol("mobx-stored-annotations");function F(e){return Object.assign((function(t,n){q(t,n,e)}),e)}function q(e,t,n){I(e,U)||_(e,U,D({},e[U])),function(e){return"override"===e.annotationType_}(n)||(e[U][t]=n)}var z=Symbol("mobx administration"),V=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ze.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return yt(this)},t.reportChanged=function(){mt(),gt(this),bt()},t.toString=function(){return this.name_},e}(),H=x("Atom",V);function $(e,t,n){void 0===t&&(t=b),void 0===n&&(n=b);var r=new V(e);return t!==b&&Ut(r,t),n!==b&&Ft(r,n),r}var K={identity:function(e,t){return e===t},structural:function(e,t){return Er(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return Er(e,t,1)}};function W(e,t,n){return ln(e)?e:Array.isArray(e)?xe.array(e,{name:n}):w(e)?xe.object(e,void 0,{name:n}):S(e)?xe.map(e,{name:n}):O(e)?xe.set(e,{name:n}):e}function G(e){return e}var J=F({annotationType_:"override",make_:function(e,t){0;0},extend_:function(e,t,n,i){r("'"+this.annotationType_+"' can only be used with 'makeObservable'")}});function Q(e,t){return{annotationType_:e,options_:t,make_:Y,extend_:Z}}function Y(e,t){for(var n,i,o,a=!1,u=e.target_,f=null!=(n=null==(i=this.options_)?void 0:i.bound)&&n;u&&u!==l;){var d=s(u,t);if(d){if(u===e.target_||f){var p=X(e,this,t,d);if(!e.defineProperty_(t,p))return;if(a=!0,f)break}if(u!==e.target_){if(Dt(d.value)){a=!0;break}var h=X(e,this,t,d,!1);c(u,t,h),a=!0}}u=Object.getPrototypeOf(u)}a?dr(e,this,t):(null==(o=e.target_[U])?void 0:o[t])||r(1,this.annotationType_,e.name_+"."+t.toString())}function Z(e,t,n,r){var i=X(e,this,t,n);return e.defineProperty_(t,i,r)}function X(e,t,n,r,i){var o,a,s,c,l,u;void 0===i&&(i=lt.safeDescriptors),u=r,t.annotationType_,u.value;var f,d=r.value;(null==(o=t.options_)?void 0:o.bound)&&(d=d.bind(null!=(f=e.proxy_)?f:e.target_));return{value:Ce(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),d,null!=(c=null==(l=t.options_)?void 0:l.autoAction)&&c),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ee(e,t){return{annotationType_:e,options_:t,make_:te,extend_:ne}}function te(e,t){for(var n,i=!1,o=e.target_;o&&o!==l;){var a=s(o,t);if(a){if(o!==e.target_){if(tn(a.value)){i=!0;break}var u=re(e,this,t,a,!1);c(o,t,u)}else{var f=re(e,this,t,a);if(!e.defineProperty_(t,f))return}i=!0}o=Object.getPrototypeOf(o)}i?dr(e,this,t):(null==(n=e.target_[U])?void 0:n[t])||r(1,this.annotationType_,e.name_+"."+t.toString())}function ne(e,t,n,r){var i=re(e,this,t,n);return e.defineProperty_(t,i,r)}function re(e,t,n,r,i){var o;return void 0===i&&(i=lt.safeDescriptors),o=r,t.annotationType_,o.value,{value:Zt(r.value),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ie(e,t){return{annotationType_:e,options_:t,make_:oe,extend_:ae}}function oe(e,t){for(var n,i=e.target_;i&&i!==l;){var o=s(i,t);if(o){if(se(e,this,t,o),!e.defineComputedProperty_(t,D({},this.options_,{get:o.get,set:o.set})))return;return void dr(e,this,t)}i=Object.getPrototypeOf(i)}(null==(n=e.target_[U])?void 0:n[t])||r(1,this.annotationType_,e.name_+"."+t.toString())}function ae(e,t,n,r){return se(e,this,t,n),e.defineComputedProperty_(t,D({},this.options_,{get:n.get,set:n.set}),r)}function se(e,t,n,r){t.annotationType_,r.get}function ce(e,t){return{annotationType_:e,options_:t,make_:le,extend_:ue}}function le(e,t){for(var n,i=e.target_;i&&i!==l;){var o=s(i,t);if(o){var a,c;if(fe(e,this,t,o),!e.defineObservableProperty_(t,o.value,null!=(a=null==(c=this.options_)?void 0:c.enhancer)?a:W))return;return void dr(e,this,t)}i=Object.getPrototypeOf(i)}(null==(n=e.target_[U])?void 0:n[t])||r(1,this.annotationType_,e.name_+"."+t.toString())}function ue(e,t,n,r){var i,o;return fe(e,this,t,n),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:W,r)}function fe(e,t,n,r){t.annotationType_}var de={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function pe(e){return e||de}Object.freeze(de);var he=ce("observable"),me=ce("observable.ref",{enhancer:G}),be=ce("observable.shallow",{enhancer:function(e,t,n){return null==e||fr(e)||Jn(e)||tr(e)||ir(e)?e:Array.isArray(e)?xe.array(e,{name:n,deep:!1}):w(e)?xe.object(e,void 0,{name:n,deep:!1}):S(e)?xe.map(e,{name:n,deep:!1}):O(e)?xe.set(e,{name:n,deep:!1}):void 0}}),ye=ce("observable.struct",{enhancer:function(e,t){return Er(e,t)?t:e}}),ge=F(he);function ve(e){return!0===e.deep?W:!1===e.deep?G:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:W;var t,n,r}function we(e,t,n){if(!g(t))return ln(e)?e:w(e)?xe.object(e,t,n):Array.isArray(e)?xe.array(e,t):S(e)?xe.map(e,t):O(e)?xe.set(e,t):"object"==typeof e&&null!==e?e:xe.box(e,t);q(e,t,he)}Object.assign(we,ge);var _e,ke,xe=a(we,{box:function(e,t){var n=pe(t);return new Fe(e,ve(n),n.name,!0,n.equals)},array:function(e,t){var n=pe(t);return(!1===lt.useProxies||!1===n.proxy?_r:Fn)(e,ve(n),n.name)},map:function(e,t){var n=pe(t);return new er(e,ve(n),n.name)},set:function(e,t){var n=pe(t);return new rr(e,ve(n),n.name)},object:function(e,t,n){return Vt(!1===lt.useProxies||!1===(null==n?void 0:n.proxy)?cr({},n):function(e,t){var n,r;return h(),e=cr(e,t),null!=(r=(n=e[z]).proxy_)?r:n.proxy_=new Proxy(e,An)}({},n),e,t)},ref:F(me),shallow:F(be),deep:ge,struct:F(ye)}),Se=ie("computed"),Oe=ie("computed.struct",{equals:K.structural}),Ee=function(e,t){if(g(t))return q(e,t,Se);if(w(e))return F(ie("computed",e));var n=w(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new He(n)};Object.assign(Ee,Se),Ee.struct=F(Oe);var Te,Ae=0,Me=1,Ie=null!=(_e=null==(ke=s((function(){}),"name"))?void 0:ke.configurable)&&_e,Pe={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ce(e,t,n,r){function i(){return je(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,Ie&&(Pe.value=e,Object.defineProperty(i,"name",Pe)),i}function je(e,t,n,r,i){var o=De(e,t,r,i);try{return n.apply(r,i)}catch(e){throw o.error_=e,e}finally{Re(o)}}function De(e,t,n,r){var i=lt.trackingDerivation,o=!t||!i;mt();var a=lt.allowStateChanges;o&&(et(),a=Be(!0));var s={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:nt(!0),notifySpy_:!1,startTime_:0,actionId_:Me++,parentActionId_:Ae};return Ae=s.actionId_,s}function Re(e){Ae!==e.actionId_&&r(30),Ae=e.parentActionId_,void 0!==e.error_&&(lt.suppressReactionErrors=!0),Le(e.prevAllowStateChanges_),rt(e.prevAllowStateReads_),bt(),e.runAsAction_&&tt(e.prevDerivation_),lt.suppressReactionErrors=!1}function Ne(e,t){var n=Be(e);try{return t()}finally{Le(n)}}function Be(e){var t=lt.allowStateChanges;return lt.allowStateChanges=e,t}function Le(e){lt.allowStateChanges=e}Te=Symbol.toPrimitive;var Ue,Fe=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=K.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}R(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_;if((e=this.prepareNewValue_(e))!==lt.UNCHANGED){0,this.setNewValue_(e)}},n.prepareNewValue_=function(e){if(Qe(this),Mn(this)){var t=Pn(this,{object:this,type:Bn,newValue:e});if(!t)return lt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?lt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),Cn(this)&&Dn(this,{type:Bn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return In(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Bn,newValue:this.value_,oldValue:void 0}),jn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return M(this.get())},n[Te]=function(){return this.valueOf()},t}(V),qe=x("ObservableValue",Fe);Ue=Symbol.toPrimitive;var ze,Ve,He=function(){function e(e){this.dependenciesState_=ze.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ze.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ke(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Ve.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Ce("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?K.structural:K.default),this.scope_=e.context,this.requiresReaction_=!!e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==ze.UP_TO_DATE_)return;e.lowestObserverState_=ze.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ze.UP_TO_DATE_&&(e.dependenciesState_=ze.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&r(32,this.name_,this.derivation),0!==lt.inBatch||0!==this.observers_.size||this.keepAlive_){if(yt(this),Ge(this)){var e=lt.trackingContext;this.keepAlive_&&!e&&(lt.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===ze.STALE_)return;e.lowestObserverState_=ze.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===ze.POSSIBLY_STALE_?t.dependenciesState_=ze.STALE_:t.dependenciesState_===ze.UP_TO_DATE_&&(e.lowestObserverState_=ze.UP_TO_DATE_)}))}(this),lt.trackingContext=e}}else Ge(this)&&(this.warnAboutUntrackedRead_(),mt(),this.value_=this.computeValue_(!1),bt());var t=this.value_;if(We(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&r(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===ze.NOT_TRACKING_,n=this.computeValue_(!0);var r=t||We(e)||We(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Be(!1);if(e)t=Ye(this,this.derivation,this.scope_);else if(!0===lt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new Ke(e)}return Le(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Ze(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return Rt((function(){var o=n.get();if(!r||t){var a=et();e({observableKind:"computed",debugObjectName:n.name_,type:Bn,object:n,newValue:o,oldValue:i}),tt(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return M(this.get())},t[Ue]=function(){return this.valueOf()},e}(),$e=x("ComputedValue",He);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(ze||(ze={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Ve||(Ve={}));var Ke=function(e){this.cause=void 0,this.cause=e};function We(e){return e instanceof Ke}function Ge(e){switch(e.dependenciesState_){case ze.UP_TO_DATE_:return!1;case ze.NOT_TRACKING_:case ze.STALE_:return!0;case ze.POSSIBLY_STALE_:for(var t=nt(!0),n=et(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if($e(a)){if(lt.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return tt(n),rt(t),!0}if(e.dependenciesState_===ze.STALE_)return tt(n),rt(t),!0}}return it(e),tt(n),rt(t),!1}}function Je(){return null!==lt.trackingDerivation}function Qe(e){}function Ye(e,t,n){var r=nt(!0);it(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++lt.runId;var i,o=lt.trackingDerivation;if(lt.trackingDerivation=e,lt.inBatch++,!0===lt.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new Ke(e)}return lt.inBatch--,lt.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=ze.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue_&&(s.diffValue_=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}n.length=i,e.newObserving_=null,o=t.length;for(;o--;){var c=t[o];0===c.diffValue_&&pt(c,e),c.diffValue_=0}for(;i--;){var l=n[i];1===l.diffValue_&&(l.diffValue_=0,dt(l,e))}r!==ze.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),rt(r),i}function Ze(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)pt(t[n],e);e.dependenciesState_=ze.NOT_TRACKING_}function Xe(e){var t=et();try{return e()}finally{tt(t)}}function et(){var e=lt.trackingDerivation;return lt.trackingDerivation=null,e}function tt(e){lt.trackingDerivation=e}function nt(e){var t=lt.allowStateReads;return lt.allowStateReads=e,t}function rt(e){lt.allowStateReads=e}function it(e){if(e.dependenciesState_!==ze.UP_TO_DATE_){e.dependenciesState_=ze.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ze.UP_TO_DATE_}}var ot=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],at=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},st=!0,ct=!1,lt=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(st=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new at).version&&(st=!1),st?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new at):(setTimeout((function(){ct||r(35)}),1),new at)}();function ut(){return lt}function ft(){var e=new at;for(var t in e)-1===ot.indexOf(t)&&(lt[t]=e[t]);lt.allowStateChanges=!lt.enforceActions}function dt(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function pt(e,t){e.observers_.delete(t),0===e.observers_.size&&ht(e)}function ht(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,lt.pendingUnobservations.push(e))}function mt(){lt.inBatch++}function bt(){if(0==--lt.inBatch){kt();for(var e=lt.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,0===n.observers_.size&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof He&&n.suspend_())}lt.pendingUnobservations=[]}}function yt(e){var t=lt.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&lt.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(0===e.observers_.size&&lt.inBatch>0&&ht(e),!1)}function gt(e){e.lowestObserverState_!==ze.STALE_&&(e.lowestObserverState_=ze.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ze.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=ze.STALE_})))}var vt=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),void 0===r&&(r=!1),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ze.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Ve.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,lt.pendingReactions.push(this),kt())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){mt(),this.isScheduled_=!1;var e=lt.trackingContext;if(lt.trackingContext=this,Ge(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}lt.trackingContext=e,bt()}},t.track=function(e){if(!this.isDisposed_){mt();0,this.isRunning_=!0;var t=lt.trackingContext;lt.trackingContext=this;var n=Ye(this,e,void 0);lt.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Ze(this),We(n)&&this.reportExceptionInDerivation_(n.cause),bt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(lt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";lt.suppressReactionErrors||console.error(n,e),lt.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(mt(),Ze(this),bt()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[z]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),_n(this,e)},e}();function wt(e){return lt.globalReactionErrorHandlers.push(e),function(){var t=lt.globalReactionErrorHandlers.indexOf(e);t>=0&&lt.globalReactionErrorHandlers.splice(t,1)}}var _t=function(e){return e()};function kt(){lt.inBatch>0||lt.isRunningReactions||_t(xt)}function xt(){lt.isRunningReactions=!0;for(var e=lt.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}lt.isRunningReactions=!1}var St=x("Reaction",vt);function Ot(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Et=Q("action"),Tt=Q("action.bound",{bound:!0}),At=Q("autoAction",{autoAction:!0}),Mt=Q("autoAction.bound",{autoAction:!0,bound:!0});function It(e){return function(t,n){return y(t)?Ce(t.name||"<unnamed action>",t,e):y(n)?Ce(t,n,e):g(n)?q(t,n,e?At:Et):g(t)?F(Q(e?"autoAction":"action",{name:t,autoAction:e})):void 0}}var Pt=It(!1);Object.assign(Pt,Et);var Ct=It(!0);function jt(e){return je(e.name||"<unnamed action>",!1,e,this,void 0)}function Dt(e){return y(e)&&!0===e.isMobxAction}function Rt(e,t){var n,r;void 0===t&&(t=f);var i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)i=new vt(o,(function(){this.track(c)}),t.onError,t.requiresObservable);else{var a=Bt(t),s=!1;i=new vt(o,(function(){s||(s=!0,a((function(){s=!1,i.isDisposed_||i.track(c)})))}),t.onError,t.requiresObservable)}function c(){e(i)}return i.schedule_(),i.getDisposer_()}Object.assign(Ct,At),Pt.bound=F(Tt),Ct.bound=F(Mt);var Nt=function(e){return e()};function Bt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Nt}function Lt(e,t,n){var r;void 0===n&&(n=f);var i,o,a,s=null!=(r=n.name)?r:"Reaction",c=Pt(s,n.onError?(i=n.onError,o=t,function(){try{return o.apply(this,arguments)}catch(e){i.call(this,e)}}):t),l=!n.scheduler&&!n.delay,u=Bt(n),d=!0,p=!1,h=void 0,m=n.compareStructural?K.structural:n.equals||K.default,b=new vt(s,(function(){d||l?y():p||(p=!0,u(y))}),n.onError,n.requiresObservable);function y(){if(p=!1,!b.isDisposed_){var t=!1;b.track((function(){var n=Ne(!1,(function(){return e(b)}));t=d||!m(a,n),h=a,a=n})),(d&&n.fireImmediately||!d&&t)&&c(a,h,b),d=!1}}return b.schedule_(),b.getDisposer_()}function Ut(e,t,n){return qt("onBO",e,t,n)}function Ft(e,t,n){return qt("onBUO",e,t,n)}function qt(e,t,n,r){var i="function"==typeof r?kr(t,n):kr(t),o=y(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function zt(e){!0===e.isolateGlobalState&&function(){if((lt.pendingReactions.length||lt.inBatch||lt.isRunningReactions)&&r(36),ct=!0,st){var e=o();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),lt=new at}}();var t,n,i=e.useProxies,a=e.enforceActions;if(void 0!==i&&(lt.useProxies="always"===i||"never"!==i&&"undefined"!=typeof Proxy),"ifavailable"===i&&(lt.verifyProxies=!0),void 0!==a){var s="always"===a?"always":"observed"===a;lt.enforceActions=s,lt.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(lt[t]=!!e[t])})),lt.allowStateReads=!lt.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=_t,_t=function(e){return t((function(){return n(e)}))})}function Vt(e,t,n,r){var i=P(t),o=cr(e,r)[z];mt();try{A(i).forEach((function(e){o.extend_(e,i[e],!n||(!(e in n)||n[e]))}))}finally{bt()}return e}function Ht(e,t){return $t(kr(e,t))}function $t(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map($t)),n}function Kt(e,t){return Wt(kr(e,t))}function Wt(e){var t={name:e.name_};return function(e){return e.observers_&&e.observers_.size>0}(e)&&(t.observers=Array.from(function(e){return e.observers_}(e)).map(Wt)),t}var Gt=0;function Jt(){this.message="FLOW_CANCELLED"}function Qt(e){return e instanceof Jt}Jt.prototype=Object.create(Error.prototype);var Yt=ee("flow"),Zt=Object.assign((function(e,t){if(g(t))return q(e,t,Yt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=this,i=arguments,o=++Gt,a=Pt(r+" - runid: "+o+" - init",n).apply(t,i),s=void 0,c=new Promise((function(t,n){var i=0;function c(e){var t;s=void 0;try{t=Pt(r+" - runid: "+o+" - yield "+i++,a.next).call(a,e)}catch(e){return n(e)}u(t)}function l(e){var t;s=void 0;try{t=Pt(r+" - runid: "+o+" - yield "+i++,a.throw).call(a,e)}catch(e){return n(e)}u(t)}function u(e){if(!y(null==e?void 0:e.then))return e.done?t(e.value):(s=Promise.resolve(e.value)).then(c,l);e.then(u,n)}e=n,c(void 0)}));return c.cancel=Pt(r+" - runid: "+o+" - cancel",(function(){try{s&&Xt(s);var t=a.return(void 0),n=Promise.resolve(t.value);n.then(b,b),Xt(n),e(new Jt)}catch(t){e(t)}})),c};return i.isMobXFlow=!0,i}),Yt);function Xt(e){y(e.cancel)&&e.cancel()}function en(e){return e}function tn(e){return!0===(null==e?void 0:e.isMobXFlow)}function nn(e,t,n){var r;return tr(e)||Jn(e)||qe(e)?r=xr(e):fr(e)&&(r=xr(e,t)),r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0}}function rn(e,t,n){return y(n)?function(e,t,n){return xr(e,t).intercept_(n)}(e,t,n):function(e,t){return xr(e).intercept_(t)}(e,t)}function on(e,t){if(void 0!==t){if(!1===fr(e))return!1;if(!e[z].values_.has(t))return!1;var n=kr(e,t);return $e(n)}return $e(e)}function an(e){return on(e)}function sn(e,t){return on(e,t)}function cn(e,t){return!!e&&(void 0!==t?!!fr(e)&&e[z].values_.has(t):fr(e)||!!e[z]||H(e)||St(e)||$e(e))}function ln(e){return cn(e)}function un(e,t){return cn(e,t)}function fn(e){return fr(e)?e[z].keys_():tr(e)||ir(e)?Array.from(e.keys()):Jn(e)?e.map((function(e,t){return t})):void r(5)}function dn(e){return fr(e)?fn(e).map((function(t){return e[t]})):tr(e)?fn(e).map((function(t){return e.get(t)})):ir(e)?Array.from(e.values()):Jn(e)?e.slice():void r(6)}function pn(e){return fr(e)?fn(e).map((function(t){return[t,e[t]]})):tr(e)?fn(e).map((function(t){return[t,e.get(t)]})):ir(e)?Array.from(e.entries()):Jn(e)?e.map((function(e,t){return[t,e]})):void r(7)}function hn(e,t,n){if(2!==arguments.length||ir(e))fr(e)?e[z].set_(t,n):tr(e)?e.set(t,n):ir(e)?e.add(t):Jn(e)?("number"!=typeof t&&(t=parseInt(t,10)),t<0&&r("Invalid index: '"+t+"'"),mt(),t>=e.length&&(e.length=t+1),e[t]=n,bt()):r(8);else{mt();var i=t;try{for(var o in i)hn(e,o,i[o])}finally{bt()}}}function mn(e,t){fr(e)?e[z].delete_(t):tr(e)||ir(e)?e.delete(t):Jn(e)?("number"!=typeof t&&(t=parseInt(t,10)),e.splice(t,1)):r(9)}function bn(e,t){return fr(e)?e[z].has_(t):tr(e)||ir(e)?e.has(t):Jn(e)?t>=0&&t<e.length:void r(10)}function yn(e,t){if(bn(e,t))return fr(e)?e[z].get_(t):tr(e)?e.get(t):Jn(e)?e[t]:void r(11)}function gn(e,t,n,r){return y(n)?function(e,t,n,r){return xr(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return xr(e).observe_(t,n)}(e,t,n)}function vn(e,t,n){return e.set(t,n),n}function wn(e,t){return function e(t,n){if(null==t||"object"!=typeof t||t instanceof Date||!ln(t))return t;if(qe(t))return e(t.get(),n);if(n.has(t))return n.get(t);if(Jn(t)){var r=vn(n,t,new Array(t.length));return t.forEach((function(t,i){r[i]=e(t,n)})),r}if(ir(t)){var i=vn(n,t,new Set);return t.forEach((function(t){i.add(e(t,n))})),i}if(tr(t)){var o=vn(n,t,new Map);return t.forEach((function(t,r){o.set(r,e(t,n))})),o}fn(t);var a=vn(n,t,{});return T(t).forEach((function(r){a[r]=e(t[r],n)})),a}(e,new Map)}function _n(){r("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];"boolean"==typeof n[n.length-1]&&(e=n.pop());var o=kn(n);if(!o)return r("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Ve.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled"),o.isTracing_=e?Ve.BREAK:Ve.LOG}function kn(e){switch(e.length){case 0:return lt.trackingDerivation;case 1:return kr(e[0]);case 2:return kr(e[0],e[1])}}function xn(e,t){void 0===t&&(t=void 0),mt();try{return e.apply(t)}finally{bt()}}function Sn(e,t,n){return 1===arguments.length||t&&"object"==typeof t?En(e,t):On(e,t,n||{})}function On(e,t,n){var r;"number"==typeof n.timeout&&(r=setTimeout((function(){if(!o[z].isDisposed_){o();var e=new Error("WHEN_TIMEOUT");if(!n.onError)throw e;n.onError(e)}}),n.timeout)),n.name="When";var i=Ce("When-effect",t),o=Rt((function(t){Ne(!1,e)&&(t.dispose(),r&&clearTimeout(r),i())}),n);return o}function En(e,t){var n;var r=new Promise((function(r,i){var o=On(e,r,D({},t,{onError:i}));n=function(){o(),i("WHEN_CANCELLED")}}));return r.cancel=n,r}function Tn(e){return e[z]}var An={has:function(e,t){return Tn(e).has_(t)},get:function(e,t){return Tn(e).get_(t)},set:function(e,t,n){var r;return!!g(t)&&(null==(r=Tn(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!g(t)&&(null==(n=Tn(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=Tn(e).defineProperty_(t,n))||r},ownKeys:function(e){return Tn(e).ownKeys_()},preventExtensions:function(e){r(13)}};function Mn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function In(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Pn(e,t){var n=et();try{for(var i=[].concat(e.interceptors_||[]),o=0,a=i.length;o<a&&((t=i[o](t))&&!t.type&&r(14),t);o++);return t}finally{tt(n)}}function Cn(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function jn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Dn(e,t){var n=et(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);tt(n)}}function Rn(e,t,n){var r=cr(e,n)[z];mt();try{null!=t||(t=function(e){return I(e,U)||_(e,U,D({},e[U])),e[U]}(e)),A(t).forEach((function(e){return r.make_(e,t[e])}))}finally{bt()}return e}function Nn(e,t,n){if(w(e))return Vt(e,e,t,n);var r=cr(e,n)[z];mt();try{if(e[or])e[or].forEach((function(e,t){return r.make_(t,e)}));else for(var i,o=((i={})[z]=1,i[or]=1,i.constructor=1,i),a=function(e){o[e]||(o[e]=1,r.make_(e,!t||(!(e in t)||t[e])))},s=e;s&&s!==l;)A(s).forEach(a),s=Object.getPrototypeOf(s)}finally{bt()}return e}var Bn="update",Ln={get:function(e,t){var n=e[z];return t===z?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?I(qn,t)?qn[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[z];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},Un=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new V(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return In(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),jn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&wr(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=u),Mn(this)){var o=Pn(this,{object:this.proxy_,type:"splice",index:e,removedCount:t,added:n});if(!o)return u;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length=e+n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=Cn(this),o=i||r?{observableKind:"array",object:this.proxy_,type:Bn,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&Dn(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=Cn(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&Dn(this,o)},t.get_=function(e){if(e<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(e,t){var n=this.values_;if(e<n.length){this.atom_;var i=n[e];if(Mn(this)){var o=Pn(this,{type:Bn,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,i))!==i&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else e===n.length?this.spliceWithArray_(e,0,[t]):r(17,e,n.length)},e}();function Fn(e,t,n,r){void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),h();var i=new Un(n,t,r,!1);k(i.values_,z,i);var o=new Proxy(i.values_,Ln);if(i.proxy_=o,e&&e.length){var a=Be(!0);i.spliceWithArray_(0,0,e),Le(a)}return o}var qn={clear:function(){return this.splice(0)},replace:function(e){var t=this[z];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[z];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[z].spliceWithArray_(e,t,n)},push:function(){for(var e=this[z],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[z].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[z],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return lt.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){lt.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[z],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function zn(e,t){"function"==typeof Array.prototype[e]&&(qn[e]=t(e))}function Vn(e){return function(){var t=this[z];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Hn(e){return function(t,n){var r=this,i=this[z];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function $n(e){return function(){var t=this,n=this[z];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}zn("concat",Vn),zn("flat",Vn),zn("includes",Vn),zn("indexOf",Vn),zn("join",Vn),zn("lastIndexOf",Vn),zn("slice",Vn),zn("toString",Vn),zn("toLocaleString",Vn),zn("every",Hn),zn("filter",Hn),zn("find",Hn),zn("findIndex",Hn),zn("flatMap",Hn),zn("forEach",Hn),zn("map",Hn),zn("some",Hn),zn("reduce",$n),zn("reduceRight",$n);var Kn,Wn,Gn=x("ObservableArrayAdministration",Un);function Jn(e){return v(e)&&Gn(e[z])}var Qn={},Yn="add";Kn=Symbol.iterator,Wn=Symbol.toStringTag;var Zn,Xn,er=function(){function e(e,t,n){void 0===t&&(t=W),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[z]=Qn,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,y(Map)||r(18),this.keysAtom_=$("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,this.merge(e)}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!lt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Fe(this.has_(e),G,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Ft(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Mn(this)){var r=Pn(this,{type:n?Bn:Yn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((this.keysAtom_,Mn(this))&&!Pn(this,{type:"delete",object:this,name:e}))return!1;if(this.has_(e)){var n=Cn(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:"delete",object:this,oldValue:this.data_.get(e).value_,name:e}:null;return xn((function(){t.keysAtom_.reportChanged(),t.updateHasMapEntry_(e,!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&Dn(this,r),!0}return!1},t.updateHasMapEntry_=function(e,t){var n=this.hasMap_.get(e);n&&n.setNewValue_(t)},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==lt.UNCHANGED){var r=Cn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:Bn,object:this,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),r&&Dn(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,xn((function(){var r=new Fe(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,r),t=r.value_,n.updateHasMapEntry_(e,!0),n.keysAtom_.reportChanged()}));var r=Cn(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:Yn,object:this,name:e,newValue:t}:null;r&&Dn(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return Ar({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return Ar({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Kn]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=L(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return tr(e)&&(e=new Map(e)),xn((function(){w(e)?T(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):S(e)?(e.constructor!==Map&&r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&r(20,e)})),this},t.clear=function(){var e=this;xn((function(){Xe((function(){for(var t,n=L(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return xn((function(){for(var n,i=function(e){if(S(e)||tr(e))return e;if(Array.isArray(e))return new Map(e);if(w(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),o=new Map,a=!1,s=L(t.data_.keys());!(n=s()).done;){var c=n.value;if(!i.has(c))if(t.delete(c))a=!0;else{var l=t.data_.get(c);o.set(c,l)}}for(var u,f=L(i.entries());!(u=f()).done;){var d=u.value,p=d[0],h=d[1],m=t.data_.has(p);if(t.set(p,h),t.data_.has(p)){var b=t.data_.get(p);o.set(p,b),m||(a=!0)}}if(!a)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var y=t.data_.keys(),g=o.keys(),v=y.next(),_=g.next();!v.done;){if(v.value!==_.value){t.keysAtom_.reportChanged();break}v=y.next(),_=g.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return jn(this,e)},t.intercept_=function(e){return In(this,e)},j(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Wn,get:function(){return"Map"}}]),e}(),tr=x("ObservableMap",er);var nr={};Zn=Symbol.iterator,Xn=Symbol.toStringTag;var rr=function(){function e(e,t,n){void 0===t&&(t=W),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[z]=nr,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,y(Set)||r(22),this.atom_=$(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;xn((function(){Xe((function(){for(var t,n=L(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=L(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if((this.atom_,Mn(this))&&!Pn(this,{type:Yn,object:this,newValue:e}))return this;if(!this.has(e)){xn((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=Cn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Yn,object:this,newValue:e}:null;0,n&&Dn(this,r)}return this},t.delete=function(e){var t=this;if(Mn(this)&&!Pn(this,{type:"delete",object:this,oldValue:e}))return!1;if(this.has(e)){var n=Cn(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:"delete",object:this,oldValue:e}:null;return xn((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&Dn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Ar({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return Ar({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return ir(e)&&(e=new Set(e)),xn((function(){Array.isArray(e)||O(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return jn(this,e)},t.intercept_=function(e){return In(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Zn]=function(){return this.values()},j(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Xn,get:function(){return"Set"}}]),e}(),ir=x("ObservableSet",rr),or=Symbol("mobx-inferred-annotations"),ar=Object.create(null),sr=function(){function e(e,t,n,r,i){void 0===t&&(t=new Map),void 0===r&&(r=xe),void 0===i&&(i=!1),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.autoBind_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.autoBind_=i,this.keysAtom_=new V("ObservableObject.keys"),this.isPlainObject_=w(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof He)return n.set(t),!0;if(Mn(this)){var r=Pn(this,{type:Bn,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==lt.UNCHANGED){var i=Cn(this),o=i?{type:Bn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),i&&Dn(this,o)}return!0},t.get_=function(e){return lt.trackingDerivation&&!I(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),I(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!lt.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Fe(e in this.target_,G,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){!0===t&&(t=this.inferAnnotation_(e)),!1!==t&&(pr(this,t,e),t.make_(this,e))},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=Ir(t,this.defaultAnnotation_,this.autoBind_)),!1===n)return this.defineProperty_(e,t,r);pr(this,n,e);var i=n.extend_(this,e,t,r);return i&&dr(this,n,e),i},t.inferAnnotation_=function(e){var t,n=null==(t=this.target_[or])?void 0:t.get(e);if(n)return n;for(var i=this.target_;i&&i!==l;){var o=s(i,e);if(o){n=Ir(o,this.defaultAnnotation_,this.autoBind_);break}i=Object.getPrototypeOf(i)}if(void 0===n&&r(1,"true",e),!this.isPlainObject_){var a=Object.getPrototypeOf(this.target_);I(a,or)||_(a,or,new Map),a[or].set(e,n)}return n},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{mt();var r=this.delete_(e);if(!r)return r;if(Mn(this)){var i=Pn(this,{object:this.proxy_||this.target_,name:e,type:Yn,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=D({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else c(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{bt()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{mt();var i=this.delete_(e);if(!i)return i;if(Mn(this)){var o=Pn(this,{object:this.proxy_||this.target_,name:e,type:Yn,newValue:t});if(!o)return null;t=o.newValue}var a=ur(e),s={configurable:!lt.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else c(this.target_,e,s);var l=new Fe(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{bt()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{mt();var r=this.delete_(e);if(!r)return r;if(Mn(this))if(!Pn(this,{object:this.proxy_||this.target_,name:e,type:Yn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=ur(e),o={configurable:!lt.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else c(this.target_,e,o);this.values_.set(e,new He(t)),this.notifyPropertyAddition_(e,void 0)}finally{bt()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!I(this.target_,e))return!0;if(Mn(this)&&!Pn(this,{object:this.proxy_||this.target_,name:e,type:"remove"}))return null;try{var n,r;mt();var i,o=Cn(this),a=this.values_.get(e),c=void 0;if(!a&&o)c=null==(i=s(this.target_,e))?void 0:i.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof Fe&&(c=a.value_),gt(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),o){var l={type:"remove",observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:e};0,o&&Dn(this,l)}}finally{bt()}return!0},t.observe_=function(e,t){return jn(this,e)},t.intercept_=function(e){return In(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,i=Cn(this);if(i){var o=i?{type:Yn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;0,i&&Dn(this,o)}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),A(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function cr(e,t){var n;if(I(e,z))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new sr(e,new Map,String(r),function(e){return e?!0===e.deep?he:!1===e.deep?me:e.defaultDecorator:void 0}(t),null==t?void 0:t.autoBind);return _(e,z,i),e}var lr=x("ObservableObjectAdministration",sr);function ur(e){return ar[e]||(ar[e]={get:function(){return this[z].getObservablePropValue_(e)},set:function(t){return this[z].setObservablePropValue_(e,t)}})}function fr(e){return!!v(e)&&lr(e[z])}function dr(e,t,n){var r;null==(r=e.target_[U])||delete r[n]}function pr(e,t,n){}var hr,mr,br=0,yr=function(){};hr=yr,mr=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(hr.prototype,mr):void 0!==hr.prototype.__proto__?hr.prototype.__proto__=mr:hr.prototype=mr;var gr=function(e){function t(t,n,r,i){var o;void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this;var a=new Un(r,n,i,!0);if(a.proxy_=N(o),k(N(o),z,a),t&&t.length){var s=Be(!0);o.spliceWithArray(0,0,t),Le(s)}return o}R(t,e);var n=t.prototype;return n.concat=function(){this[z].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return Jn(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return Ar({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},j(t,[{key:"length",get:function(){return this[z].getArrayLength_()},set:function(e){this[z].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}]),t}(yr);function vr(e){c(gr.prototype,""+e,function(e){return{enumerable:!1,configurable:!0,get:function(){return this[z].get_(e)},set:function(t){this[z].set_(e,t)}}}(e))}function wr(e){if(e>br){for(var t=br;t<e+100;t++)vr(t);br=e}}function _r(e,t,n){return new gr(e,t,n)}function kr(e,t){if("object"==typeof e&&null!==e){if(Jn(e))return void 0!==t&&r(23),e[z].atom_;if(ir(e))return e[z];if(tr(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,Sr(e)),n}if(fr(e)){if(!t)return r(26);var i=e[z].values_.get(t);return i||r(27,t,Sr(e)),i}if(H(e)||$e(e)||St(e))return e}else if(y(e)&&St(e[z]))return e[z];r(28)}function xr(e,t){return e||r(29),void 0!==t?xr(kr(e,t)):H(e)||$e(e)||St(e)||tr(e)||ir(e)?e:e[z]?e[z]:void r(24,e)}function Sr(e,t){var n;if(void 0!==t)n=kr(e,t);else{if(Dt(e))return e.name;n=fr(e)||tr(e)||ir(e)?xr(e):kr(e)}return n.name_}Object.entries(qn).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&_(gr.prototype,t,n)})),wr(1e3);var Or=l.toString;function Er(e,t,n){return void 0===n&&(n=-1),function e(t,n,r,i,o){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var a=typeof t;if(!y(a)&&"object"!==a&&"object"!=typeof n)return!1;var s=Or.call(t);if(s!==Or.call(n))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(n);case"[object Map]":case"[object Set]":r>=0&&r++}t=Tr(t),n=Tr(n);var c="[object Array]"===s;if(!c){if("object"!=typeof t||"object"!=typeof n)return!1;var l=t.constructor,u=n.constructor;if(l!==u&&!(y(l)&&l instanceof l&&y(u)&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);o=o||[];var f=(i=i||[]).length;for(;f--;)if(i[f]===t)return o[f]===n;if(i.push(t),o.push(n),c){if((f=t.length)!==n.length)return!1;for(;f--;)if(!e(t[f],n[f],r-1,i,o))return!1}else{var d,p=Object.keys(t);if(f=p.length,Object.keys(n).length!==f)return!1;for(;f--;)if(d=p[f],!I(n,d)||!e(t[d],n[d],r-1,i,o))return!1}return i.pop(),o.pop(),!0}(e,t,n)}function Tr(e){return Jn(e)?e.slice():S(e)||tr(e)||O(e)||ir(e)?Array.from(e.entries()):e}function Ar(e){return e[Symbol.iterator]=Mr,e}function Mr(){return this}function Ir(e,t,n){return e.get?Ee:!e.set&&(y(e.value)?(r=e.value,!(i=null==r?void 0:r.constructor)||"GeneratorFunction"!==i.name&&"GeneratorFunction"!==i.displayName?!Dt(e.value)&&(n?Ct.bound:Ct):!tn(e.value)&&Zt):t);var r,i}["Symbol","Map","Set","Symbol"].forEach((function(e){void 0===o()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Ot,extras:{getDebugName:Sr},$mobx:z})}.call(this,n(12))},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(445).Buffer}catch(e){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),o=t;o<i;o++){var a=e.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(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"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("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 o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.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},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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"],u=[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],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,f=67108863&c,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var h=l-p|0;u+=(a=(i=0|e.words[h])*(o=0|t.words[p])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],p=f[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modn(p).toString(e);n=(h=h.idivn(p)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,l=new e(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.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()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,n,r;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?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.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)},o.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,i,o,a=e.words,s=t.words,c=n.words,l=0,u=0|a[0],f=8191&u,d=u>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],y=8191&b,g=b>>>13,v=0|a[3],w=8191&v,_=v>>>13,k=0|a[4],x=8191&k,S=k>>>13,O=0|a[5],E=8191&O,T=O>>>13,A=0|a[6],M=8191&A,I=A>>>13,P=0|a[7],C=8191&P,j=P>>>13,D=0|a[8],R=8191&D,N=D>>>13,B=0|a[9],L=8191&B,U=B>>>13,F=0|s[0],q=8191&F,z=F>>>13,V=0|s[1],H=8191&V,$=V>>>13,K=0|s[2],W=8191&K,G=K>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var be=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(h,q),i=(i=Math.imul(h,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(g,q)|0,o=Math.imul(g,z),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,$)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,$)|0;var ge=(l+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,$)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ve=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(S,q)|0,o=Math.imul(S,z),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,G)|0,r=r+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,z))+Math.imul(T,q)|0,o=Math.imul(T,z),r=r+Math.imul(x,H)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,z))+Math.imul(I,q)|0,o=Math.imul(I,z),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(l+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,z))+Math.imul(j,q)|0,o=Math.imul(j,z),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var xe=(l+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(N,q)|0,o=Math.imul(N,z),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(U,q)|0,o=Math.imul(U,z),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,le)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Oe=(l+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,H),i=(i=Math.imul(L,$))+Math.imul(U,H)|0,o=Math.imul(U,$),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ee=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,G))+Math.imul(U,W)|0,o=Math.imul(U,G),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(l+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(g,he)|0))<<13)|0;l=((o=o+Math.imul(g,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(U,Q)|0,o=Math.imul(U,Y),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,le)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ae=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,he)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Me=(l+(r=r+Math.imul(x,he)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,he)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,le)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(r=r+Math.imul(E,he)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(T,he)|0))<<13)|0;l=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var Pe=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(U,ce)|0,o=Math.imul(U,le),r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,de)|0;var Ce=(l+(r=r+Math.imul(C,he)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(j,he)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var je=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(N,he)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863;var De=(l+(r=Math.imul(L,he))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,he)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=be,c[1]=ye,c[2]=ge,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=xe,c[8]=Se,c[9]=Oe,c[10]=Ee,c[11]=Te,c[12]=Ae,c[13]=Me,c[14]=Ie,c[15]=Pe,c[16]=Ce,c[17]=je,c[18]=De,0!==l&&(c[19]=l,n.length++),n};function h(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=d),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,f=(0|e.words[u])*(0|t.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):h(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},m.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=c,d=l,p=0;p<a;p++){var h=n[u+p],m=r[u+p],b=n[u+p+a],y=r[u+p+a],g=f*b-d*y;y=f*y+d*b,b=g,n[u+p]=h+b,r[u+p]=m+y,n[u+p+a]=h-b,r[u+p+a]=m-y,p!==s&&(g=c*f-l*d,d=c*d+l*f,f=g)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,l,r),this.transform(a,o,s,c,r,i),this.transform(l,o,u,f,r,i);for(var p=0;p<r;p++){var h=s[p]*u[p]-c[p]*f[p];c[p]=s[p]*f[p]+c[p]*u[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),h(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<n;this.words[t]=c|a,a=s>>>26-n}a&&(this.words[t]=a,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()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=n;if(i-=a,i=Math.max(0,i),c){for(var l=0;l<a;l++)c.words[l]=this.words[l];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var f=0|this.words[l];this.words[l]=u<<26-o|f>>>o,u=f&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(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)},o.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},o.prototype.isubn=function(e){if(r("number"==typeof e),r(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()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(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},o.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},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}y.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(g,y),g.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(v,y),i(w,y),i(_,y),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();r(b<h);var y=this.pow(f,new o(1).iushln(h-b-1));d=d.redMul(y),f=y.redSqr(),p=p.redMul(f),h=b}return d},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var f=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,k),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(71)(e))},function(e,t,n){
24 /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
25 var r=n(2),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";n.d(t,"o",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"l",(function(){return l})),n.d(t,"m",(function(){return u})),n.d(t,"n",(function(){return f})),n.d(t,"r",(function(){return p})),n.d(t,"a",(function(){return m})),n.d(t,"q",(function(){return b})),n.d(t,"p",(function(){return y})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return v})),n.d(t,"k",(function(){return w})),n.d(t,"b",(function(){return _})),n.d(t,"e",(function(){return k})),n.d(t,"j",(function(){return S})),n.d(t,"i",(function(){return T})),n.d(t,"g",(function(){return A}));var r,i=n(1),o=n.n(i);function a(e){document.body.style.paddingRight=e>0?e+"px":null}function s(){var e=window.getComputedStyle(document.body,null);return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}function c(){var e=function(){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;document.body.clientWidth<window.innerWidth&&a(n+e)}function l(e,t){return void 0===e&&(e=""),void 0===t&&(t=r),t?e.split(" ").map((function(e){return t[e]||e})).join(" "):e}function u(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}function f(e,t){for(var n,r=Array.isArray(t)?t:[t],i=r.length,o={};i>0;)o[n=r[i-=1]]=e[n];return o}var d={};function p(e){d[e]||("undefined"!=typeof console&&console.error(e),d[e]=!0)}var h="object"==typeof window&&window.Element||function(){};function m(e,t,n){if(!(e[t]instanceof h))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var b=o.a.oneOfType([o.a.string,o.a.func,m,o.a.shape({current:o.a.any})]),y=o.a.oneOfType([o.a.func,o.a.string,o.a.shape({$$typeof:o.a.symbol,render:o.a.func}),o.a.arrayOf(o.a.oneOfType([o.a.func,o.a.string,o.a.shape({$$typeof:o.a.symbol,render:o.a.func})]))]),g={Fade:150,Collapse:350,Modal:300,Carousel:600},v=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],w={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},_=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],k=!("undefined"==typeof window||!window.document||!window.document.createElement);function x(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function S(e){var t=typeof e;return null!=e&&("object"===t||"function"===t)}function O(e){if(function(e){return!(!e||"object"!=typeof e)&&"current"in e}(e))return e.current;if(function(e){if(!S(e))return!1;var t=x(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object Proxy]"===t}(e))return e();if("string"==typeof e&&k){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#"+e)),!t.length)throw new Error("The target '"+e+"' could not be identified in the dom, tip: check spelling");return t}return e}function E(e){return null!==e&&(Array.isArray(e)||k&&"number"==typeof e.length)}function T(e,t){var n=O(e);return t?E(n)?n:null===n?[]:[n]:E(n)?n[0]:n}var A=["a[href]","area[href]","input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","object","embed","[tabindex]:not(.modal)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])']},function(e,t,n){(function(t){var r;e.exports=(r=r||function(e,r){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==t&&t.crypto&&(i=t.crypto),!i)try{i=n(72)}catch(e){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},c=s.lib={},l=c.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=c.WordArray=l.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new u.init(t,e)}}),f=s.enc={},d=f.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},p=f.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},h=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},m=c.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,l=e.min(4*c,o);if(c){for(var f=0;f<c;f+=a)this._doProcessBlock(i,f);n=i.splice(0,c),r.sigBytes-=l}return new u.init(n,l)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),b=(c.Hasher=m.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new b.HMAC.init(e,n).finalize(t)}}}),s.algo={});return s}(Math),r)}).call(this,n(12))},function(e,t,n){var r;
26 /*!
27   Copyright (c) 2017 Jed Watson.
28   Licensed under the MIT License (MIT), see
29   http://jedwatson.github.io/classnames
30 */!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(422),t),i(n(423),t),i(n(424),t),i(n(236),t),i(n(427),t)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++f<t;)c&&c[f].run();f=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.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=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,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,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(5),i=n(0),o=n.n(i);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.makeObservable)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var a=n(995);function s(e){e()}var c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},l=[];function u(e){return Object(r.getDependencyTree)(e)}var f="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function d(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+p}}var p=1e4;var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var m=f?function(e){var t=new Map,n=1,r=new e((function(e){var n=t.get(e);n&&(n.reaction.dispose(),t.delete(e))}));return{addReactionToTrack:function(e,i,o){var a=n++;return r.register(o,a,e),e.current=d(i),e.current.finalizationRegistryCleanupToken=a,t.set(a,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(f):function(){var e,t=new Set;function n(){void 0===e&&(e=setTimeout(r,1e4))}function r(){e=void 0;var r=Date.now();t.forEach((function(e){var n=e.current;n&&r>=n.cleanAt&&(n.reaction.dispose(),e.current=null,t.delete(e))})),t.size>0&&n()}return{addReactionToTrack:function(e,r,i){var o;return e.current=d(r),o=e,t.add(o),n(),e.current},recordReactionAsCommitted:function(e){t.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),r())},resetCleanupScheduleForTests:function(){var n,r;if(t.size>0){try{for(var i=h(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.current;s&&(s.reaction.dispose(),a.current=null)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.clear()}e&&(clearTimeout(e),e=void 0)}}}(),b=m.addReactionToTrack,y=m.recordReactionAsCommitted,g=(m.resetCleanupScheduleForTests,m.forceCleanupTimerToRunNowForTests,!1);function v(){return g}var w=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function _(e){return"observer"+e}var k=function(){};function x(e,t){if(void 0===t&&(t="observed"),v())return e();var n,a=w(o.a.useState(new k),1)[0],s=(n=c(Object(i.useState)(0),2)[1],Object(i.useCallback)((function(){n((function(e){return e+1}))}),l)),f=o.a.useRef(null);if(!f.current)var d=new r.Reaction(_(t),(function(){p.mounted?s():p.changedBeforeMount=!0})),p=b(f,d,a);var h,m,g=f.current.reaction;if(o.a.useDebugValue(g,u),o.a.useEffect((function(){return y(f),f.current?(f.current.mounted=!0,f.current.changedBeforeMount&&(f.current.changedBeforeMount=!1,s())):(f.current={reaction:new r.Reaction(_(t),(function(){s()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},s()),function(){f.current.reaction.dispose(),f.current=null}}),[]),g.track((function(){try{h=e()}catch(e){m=e}})),m)throw m;return h}var S=function(){return(S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function O(e,t){if(v())return e;var n,r,o,a=S({forwardRef:!1},t),s=e.displayName||e.name,c=function(t,n){return x((function(){return e(t,n)}),s)};return c.displayName=s,n=a.forwardRef?Object(i.memo)(Object(i.forwardRef)(c)):Object(i.memo)(c),r=e,o=n,Object.keys(r).forEach((function(e){E[e]||Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})),n.displayName=s,n}var E={$$typeof:!0,render:!0,compare:!0,type:!0};var T;(T=a.unstable_batchedUpdates)||(T=s),Object(r.configure)({reactionScheduler:T})},function(e,t,n){"use strict";n.r(t),n.d(t,"AccountNameRequiredError",(function(){return l})),n.d(t,"AccountNotSupported",(function(){return u})),n.d(t,"AmountRequired",(function(){return f})),n.d(t,"BluetoothRequired",(function(){return d})),n.d(t,"BtcUnmatchedApp",(function(){return p})),n.d(t,"CantOpenDevice",(function(){return h})),n.d(t,"CantScanQRCode",(function(){return Ne})),n.d(t,"CashAddrNotSupported",(function(){return m})),n.d(t,"CurrencyNotSupported",(function(){return b})),n.d(t,"DBNotReset",(function(){return Ge})),n.d(t,"DBWrongPassword",(function(){return We})),n.d(t,"DeviceAppVerifyNotSupported",(function(){return y})),n.d(t,"DeviceGenuineSocketEarlyClose",(function(){return g})),n.d(t,"DeviceHalted",(function(){return x})),n.d(t,"DeviceInOSUExpected",(function(){return k})),n.d(t,"DeviceNameInvalid",(function(){return S})),n.d(t,"DeviceNotGenuineError",(function(){return v})),n.d(t,"DeviceOnDashboardExpected",(function(){return w})),n.d(t,"DeviceOnDashboardUnexpected",(function(){return _})),n.d(t,"DeviceShouldStayInApp",(function(){return Ie})),n.d(t,"DeviceSocketFail",(function(){return O})),n.d(t,"DeviceSocketNoBulkStatus",(function(){return E})),n.d(t,"DisconnectedDevice",(function(){return T})),n.d(t,"DisconnectedDeviceDuringOperation",(function(){return A})),n.d(t,"ETHAddressNonEIP",(function(){return Re})),n.d(t,"EnpointConfigError",(function(){return M})),n.d(t,"EthAppPleaseEnableContractData",(function(){return I})),n.d(t,"FeeEstimationFailed",(function(){return P})),n.d(t,"FeeNotLoaded",(function(){return Be})),n.d(t,"FeeRequired",(function(){return Le})),n.d(t,"FeeTooHigh",(function(){return Ue})),n.d(t,"FirmwareNotRecognized",(function(){return C})),n.d(t,"FirmwareOrAppUpdateRequired",(function(){return $e})),n.d(t,"GasLessThanEstimate",(function(){return ae})),n.d(t,"GenuineCheckFailed",(function(){return ze})),n.d(t,"HardResetFail",(function(){return j})),n.d(t,"InvalidAddress",(function(){return R})),n.d(t,"InvalidAddressBecauseDestinationIsAlsoSource",(function(){return N})),n.d(t,"InvalidXRPTag",(function(){return D})),n.d(t,"LatestMCUInstalledError",(function(){return B})),n.d(t,"LedgerAPI4xx",(function(){return Ve})),n.d(t,"LedgerAPI5xx",(function(){return He})),n.d(t,"LedgerAPIError",(function(){return U})),n.d(t,"LedgerAPIErrorWithMessage",(function(){return F})),n.d(t,"LedgerAPINotAvailable",(function(){return q})),n.d(t,"MCUNotGenuineToDashboard",(function(){return pe})),n.d(t,"ManagerAppAlreadyInstalledError",(function(){return z})),n.d(t,"ManagerAppDepInstallRequired",(function(){return H})),n.d(t,"ManagerAppDepUninstallRequired",(function(){return $})),n.d(t,"ManagerAppRelyOnBTCError",(function(){return V})),n.d(t,"ManagerDeviceLockedError",(function(){return K})),n.d(t,"ManagerFirmwareNotEnoughSpaceError",(function(){return W})),n.d(t,"ManagerNotEnoughSpaceError",(function(){return G})),n.d(t,"ManagerUninstallBTCDep",(function(){return J})),n.d(t,"NetworkDown",(function(){return Q})),n.d(t,"NoAccessToCamera",(function(){return re})),n.d(t,"NoAddressesFound",(function(){return Y})),n.d(t,"NoDBPathGiven",(function(){return Ke})),n.d(t,"NotEnoughBalance",(function(){return Z})),n.d(t,"NotEnoughBalanceBecauseDestinationNotCreated",(function(){return ne})),n.d(t,"NotEnoughBalanceInParentAccount",(function(){return ee})),n.d(t,"NotEnoughBalanceToDelegate",(function(){return X})),n.d(t,"NotEnoughGas",(function(){return ie})),n.d(t,"NotEnoughSpendableBalance",(function(){return te})),n.d(t,"NotSupportedLegacyAddress",(function(){return oe})),n.d(t,"PairingFailed",(function(){return qe})),n.d(t,"PasswordIncorrectError",(function(){return ce})),n.d(t,"PasswordsDontMatchError",(function(){return se})),n.d(t,"RecipientRequired",(function(){return he})),n.d(t,"RecommendSubAccountsToEmpty",(function(){return le})),n.d(t,"RecommendUndelegation",(function(){return ue})),n.d(t,"StatusCodes",(function(){return Qe})),n.d(t,"SyncError",(function(){return Fe})),n.d(t,"TimeoutTagged",(function(){return fe})),n.d(t,"TransportError",(function(){return Je})),n.d(t,"TransportInterfaceNotAvailable",(function(){return Te})),n.d(t,"TransportOpenUserCancelled",(function(){return Ee})),n.d(t,"TransportRaceCondition",(function(){return Ae})),n.d(t,"TransportStatusError",(function(){return Ze})),n.d(t,"TransportWebUSBGestureRequired",(function(){return Me})),n.d(t,"UnavailableTezosOriginatedAccountReceive",(function(){return me})),n.d(t,"UnavailableTezosOriginatedAccountSend",(function(){return be})),n.d(t,"UnexpectedBootloader",(function(){return de})),n.d(t,"UnknownMCU",(function(){return L})),n.d(t,"UpdateFetchFileFail",(function(){return ye})),n.d(t,"UpdateIncorrectHash",(function(){return ge})),n.d(t,"UpdateIncorrectSig",(function(){return ve})),n.d(t,"UpdateYourApp",(function(){return we})),n.d(t,"UserRefusedAddress",(function(){return ke})),n.d(t,"UserRefusedAllowManager",(function(){return Se})),n.d(t,"UserRefusedDeviceNameChange",(function(){return _e})),n.d(t,"UserRefusedFirmwareUpdate",(function(){return xe})),n.d(t,"UserRefusedOnDevice",(function(){return Oe})),n.d(t,"WebsocketConnectionError",(function(){return Pe})),n.d(t,"WebsocketConnectionFailed",(function(){return Ce})),n.d(t,"WrongAppForCurrency",(function(){return De})),n.d(t,"WrongDeviceForAccount",(function(){return je})),n.d(t,"addCustomErrorDeserializer",(function(){return o})),n.d(t,"createCustomErrorClass",(function(){return a})),n.d(t,"deserializeError",(function(){return s})),n.d(t,"getAltStatusMessage",(function(){return Ye})),n.d(t,"serializeError",(function(){return c}));var r={},i={},o=function(e,t){i[e]=t},a=function(e){var t=function(t,n){Object.assign(this,n),this.name=e,this.message=t||e,this.stack=(new Error).stack};return t.prototype=new Error,r[e]=t,t},s=function(e){if("object"==typeof e&&e){try{var t=JSON.parse(e.message);t.message&&t.name&&(e=t)}catch(e){}var n=void 0;if("string"==typeof e.name){var o=e.name,c=i[o];if(c)n=c(e);else{var l="Error"===o?Error:r[o];l||(console.warn("deserializing an unknown class '"+o+"'"),l=a(o)),n=Object.create(l.prototype);try{for(var u in e)e.hasOwnProperty(u)&&(n[u]=e[u])}catch(e){}}}else n=new Error(e.message);return!n.stack&&Error.captureStackTrace&&Error.captureStackTrace(n,s),n}return new Error(String(e))},c=function(e){return e?"object"==typeof e?function e(t,n){var r={};n.push(t);for(var i=0,o=Object.keys(t);i<o.length;i++){var a=o[i],s=t[a];"function"!=typeof s&&(s&&"object"==typeof s?-1!==n.indexOf(t[a])?r[a]="[Circular]":r[a]=e(t[a],n.slice(0)):r[a]=s)}"string"==typeof t.name&&(r.name=t.name);"string"==typeof t.message&&(r.message=t.message);"string"==typeof t.stack&&(r.stack=t.stack);return r}(e,[]):"function"==typeof e?"[Function: "+(e.name||"anonymous")+"]":e:e};var l=a("AccountNameRequired"),u=a("AccountNotSupported"),f=a("AmountRequired"),d=a("BluetoothRequired"),p=a("BtcUnmatchedApp"),h=a("CantOpenDevice"),m=a("CashAddrNotSupported"),b=a("CurrencyNotSupported"),y=a("DeviceAppVerifyNotSupported"),g=a("DeviceGenuineSocketEarlyClose"),v=a("DeviceNotGenuine"),w=a("DeviceOnDashboardExpected"),_=a("DeviceOnDashboardUnexpected"),k=a("DeviceInOSUExpected"),x=a("DeviceHalted"),S=a("DeviceNameInvalid"),O=a("DeviceSocketFail"),E=a("DeviceSocketNoBulkStatus"),T=a("DisconnectedDevice"),A=a("DisconnectedDeviceDuringOperation"),M=a("EnpointConfig"),I=a("EthAppPleaseEnableContractData"),P=a("FeeEstimationFailed"),C=a("FirmwareNotRecognized"),j=a("HardResetFail"),D=a("InvalidXRPTag"),R=a("InvalidAddress"),N=a("InvalidAddressBecauseDestinationIsAlsoSource"),B=a("LatestMCUInstalledError"),L=a("UnknownMCU"),U=a("LedgerAPIError"),F=a("LedgerAPIErrorWithMessage"),q=a("LedgerAPINotAvailable"),z=a("ManagerAppAlreadyInstalled"),V=a("ManagerAppRelyOnBTC"),H=a("ManagerAppDepInstallRequired"),$=a("ManagerAppDepUninstallRequired"),K=a("ManagerDeviceLocked"),W=a("ManagerFirmwareNotEnoughSpace"),G=a("ManagerNotEnoughSpace"),J=a("ManagerUninstallBTCDep"),Q=a("NetworkDown"),Y=a("NoAddressesFound"),Z=a("NotEnoughBalance"),X=a("NotEnoughBalanceToDelegate"),ee=a("NotEnoughBalanceInParentAccount"),te=a("NotEnoughSpendableBalance"),ne=a("NotEnoughBalanceBecauseDestinationNotCreated"),re=a("NoAccessToCamera"),ie=a("NotEnoughGas"),oe=a("NotSupportedLegacyAddress"),ae=a("GasLessThanEstimate"),se=a("PasswordsDontMatch"),ce=a("PasswordIncorrect"),le=a("RecommendSubAccountsToEmpty"),ue=a("RecommendUndelegation"),fe=a("TimeoutTagged"),de=a("UnexpectedBootloader"),pe=a("MCUNotGenuineToDashboard"),he=a("RecipientRequired"),me=a("UnavailableTezosOriginatedAccountReceive"),be=a("UnavailableTezosOriginatedAccountSend"),ye=a("UpdateFetchFileFail"),ge=a("UpdateIncorrectHash"),ve=a("UpdateIncorrectSig"),we=a("UpdateYourApp"),_e=a("UserRefusedDeviceNameChange"),ke=a("UserRefusedAddress"),xe=a("UserRefusedFirmwareUpdate"),Se=a("UserRefusedAllowManager"),Oe=a("UserRefusedOnDevice"),Ee=a("TransportOpenUserCancelled"),Te=a("TransportInterfaceNotAvailable"),Ae=a("TransportRaceCondition"),Me=a("TransportWebUSBGestureRequired"),Ie=a("DeviceShouldStayInApp"),Pe=a("WebsocketConnectionError"),Ce=a("WebsocketConnectionFailed"),je=a("WrongDeviceForAccount"),De=a("WrongAppForCurrency"),Re=a("ETHAddressNonEIP"),Ne=a("CantScanQRCode"),Be=a("FeeNotLoaded"),Le=a("FeeRequired"),Ue=a("FeeTooHigh"),Fe=a("SyncError"),qe=a("PairingFailed"),ze=a("GenuineCheckFailed"),Ve=a("LedgerAPI4xx"),He=a("LedgerAPI5xx"),$e=a("FirmwareOrAppUpdateRequired"),Ke=a("NoDBPathGiven"),We=a("DBWrongPassword"),Ge=a("DBNotReset");function Je(e,t){this.name="TransportError",this.message=e,this.stack=(new Error).stack,this.id=t}Je.prototype=new Error,o("TransportError",(function(e){return new Je(e.message,e.id)}));var Qe={PIN_REMAINING_ATTEMPTS:25536,INCORRECT_LENGTH:26368,MISSING_CRITICAL_PARAMETER:26624,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,SECURITY_STATUS_NOT_SATISFIED:27010,CONDITIONS_OF_USE_NOT_SATISFIED:27013,INCORRECT_DATA:27264,NOT_ENOUGH_MEMORY_SPACE:27268,REFERENCED_DATA_NOT_FOUND:27272,FILE_ALREADY_EXISTS:27273,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,CLA_NOT_SUPPORTED:28160,TECHNICAL_PROBLEM:28416,OK:36864,MEMORY_PROBLEM:37440,NO_EF_SELECTED:37888,INVALID_OFFSET:37890,FILE_NOT_FOUND:37892,INCONSISTENT_FILE:37896,ALGORITHM_NOT_SUPPORTED:38020,INVALID_KCV:38021,CODE_NOT_INITIALIZED:38914,ACCESS_CONDITION_NOT_FULFILLED:38916,CONTRADICTION_SECRET_CODE_STATUS:38920,CONTRADICTION_INVALIDATION:38928,CODE_BLOCKED:38976,MAX_VALUE_REACHED:38992,GP_AUTH_FAILED:25344,LICENSING:28482,HALTED:28586};function Ye(e){switch(e){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received"}if(28416<=e&&e<=28671)return"Internal error, please report"}function Ze(e){this.name="TransportStatusError";var t=Object.keys(Qe).find((function(t){return Qe[t]===e}))||"UNKNOWN_ERROR",n=Ye(e)||t,r=e.toString(16);this.message="Ledger device: "+n+" (0x"+r+")",this.stack=(new Error).stack,this.statusCode=e,this.statusText=t}Ze.prototype=new Error,o("TransportStatusError",(function(e){return new Ze(e.statusCode)}))},function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"l",(function(){return u})),n.d(t,"j",(function(){return f})),n.d(t,"g",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"k",(function(){return y}));const r=new(n(35).a)("bytes/5.0.8");function i(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function a(e){return f(e)&&!(e.length%2)||s(e)}function s(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(null==e.length)return!1;for(let t=0;t<e.length;t++){const n=e[t];if("number"!=typeof n||n<0||n>=256||n%1)return!1}return!0}function c(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),o(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),f(e)){let n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0x0"+n.substring(2):"right"===t.hexPad?n+="0":r.throwArgumentError("hex data is odd-length","value",e));const i=[];for(let e=0;e<n.length;e+=2)i.push(parseInt(n.substring(e,e+2),16));return o(new Uint8Array(i))}return s(e)?o(new Uint8Array(e)):r.throwArgumentError("invalid arrayify value","value",e)}function l(e){const t=e.map(e=>c(e)),n=t.reduce((e,t)=>e+t.length,0),r=new Uint8Array(n);return t.reduce((e,t)=>(r.set(t,e),e+t.length),0),o(r)}function u(e){let t=c(e);if(0===t.length)return t;let n=0;for(;n<t.length&&0===t[n];)n++;return n&&(t=t.slice(n)),t}function f(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function d(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t="0123456789abcdef"[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString();if(f(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":r.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(s(e)){let t="0x";for(let n=0;n<e.length;n++){let r=e[n];t+="0123456789abcdef"[(240&r)>>4]+"0123456789abcdef"[15&r]}return t}return r.throwArgumentError("invalid hexlify value","value",e)}function p(e){if("string"!=typeof e)e=d(e);else if(!f(e)||e.length%2)return null;return(e.length-2)/2}function h(e,t,n){return"string"!=typeof e?e=d(e):(!f(e)||e.length%2)&&r.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function m(e){let t="0x";return e.forEach(e=>{t+=d(e).substring(2)}),t}function b(e,t){for("string"!=typeof e?e=d(e):f(e)||r.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&r.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function y(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(a(e)){const n=c(e);65!==n.length&&r.throwArgumentError("invalid signature string; must be 65 bytes","signature",e),t.r=d(n.slice(0,32)),t.s=d(n.slice(32,64)),t.v=n[64],t.v<27&&(0===t.v||1===t.v?t.v+=27:r.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=d(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const n=function(e,t){(e=c(e)).length>t&&r.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(t);return n.set(e,t-e.length),o(n)}(c(t._vs),32);t._vs=d(n);const i=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;const a=d(n);null==t.s?t.s=a:t.s!==a&&r.throwArgumentError("signature v mismatch _vs","signature",e)}null==t.recoveryParam?null==t.v?r.throwArgumentError("signature missing v and recoveryParam","signature",e):t.recoveryParam=1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==1-t.v%2&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e),null!=t.r&&f(t.r)?t.r=b(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&f(t.s)?t.s=b(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);const n=c(t.s);n[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(n[0]|=128);const i=d(n);t._vs&&(f(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=b(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&r.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t}},function(e,t,n){"use strict";n.d(t,"i",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"l",(function(){return u})),n.d(t,"j",(function(){return f})),n.d(t,"g",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"k",(function(){return y}));const r=new(n(36).a)("bytes/5.0.8");function i(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function a(e){return f(e)&&!(e.length%2)||s(e)}function s(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(null==e.length)return!1;for(let t=0;t<e.length;t++){const n=e[t];if("number"!=typeof n||n<0||n>=256||n%1)return!1}return!0}function c(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),o(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),f(e)){let n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0x0"+n.substring(2):"right"===t.hexPad?n+="0":r.throwArgumentError("hex data is odd-length","value",e));const i=[];for(let e=0;e<n.length;e+=2)i.push(parseInt(n.substring(e,e+2),16));return o(new Uint8Array(i))}return s(e)?o(new Uint8Array(e)):r.throwArgumentError("invalid arrayify value","value",e)}function l(e){const t=e.map(e=>c(e)),n=t.reduce((e,t)=>e+t.length,0),r=new Uint8Array(n);return t.reduce((e,t)=>(r.set(t,e),e+t.length),0),o(r)}function u(e){let t=c(e);if(0===t.length)return t;let n=0;for(;n<t.length&&0===t[n];)n++;return n&&(t=t.slice(n)),t}function f(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function d(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t="0123456789abcdef"[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString();if(f(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":r.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(s(e)){let t="0x";for(let n=0;n<e.length;n++){let r=e[n];t+="0123456789abcdef"[(240&r)>>4]+"0123456789abcdef"[15&r]}return t}return r.throwArgumentError("invalid hexlify value","value",e)}function p(e){if("string"!=typeof e)e=d(e);else if(!f(e)||e.length%2)return null;return(e.length-2)/2}function h(e,t,n){return"string"!=typeof e?e=d(e):(!f(e)||e.length%2)&&r.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function m(e){let t="0x";return e.forEach(e=>{t+=d(e).substring(2)}),t}function b(e,t){for("string"!=typeof e?e=d(e):f(e)||r.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&r.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function y(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(a(e)){const n=c(e);65!==n.length&&r.throwArgumentError("invalid signature string; must be 65 bytes","signature",e),t.r=d(n.slice(0,32)),t.s=d(n.slice(32,64)),t.v=n[64],t.v<27&&(0===t.v||1===t.v?t.v+=27:r.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=d(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const n=function(e,t){(e=c(e)).length>t&&r.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(t);return n.set(e,t-e.length),o(n)}(c(t._vs),32);t._vs=d(n);const i=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;const a=d(n);null==t.s?t.s=a:t.s!==a&&r.throwArgumentError("signature v mismatch _vs","signature",e)}null==t.recoveryParam?null==t.v?r.throwArgumentError("signature missing v and recoveryParam","signature",e):t.recoveryParam=1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==1-t.v%2&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e),null!=t.r&&f(t.r)?t.r=b(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&f(t.s)?t.s=b(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);const n=c(t.s);n[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(n[0]|=128);const i=d(n);t._vs&&(f(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=b(t._vs,32)),null==t._vs?t._vs=i:t._vs!==i&&r.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(324),t),i(n(652),t),i(n(653),t),i(n(654),t),i(n(655),t),i(n(326),t),i(n(327),t),i(n(325),t),i(n(659),t),i(n(662),t)},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"MemoryRouter",(function(){return g})),n.d(t,"Prompt",(function(){return w})),n.d(t,"Redirect",(function(){return S})),n.d(t,"Route",(function(){return A})),n.d(t,"Router",(function(){return y})),n.d(t,"StaticRouter",(function(){return D})),n.d(t,"Switch",(function(){return R})),n.d(t,"__HistoryContext",(function(){return m})),n.d(t,"__RouterContext",(function(){return b})),n.d(t,"generatePath",(function(){return x})),n.d(t,"matchPath",(function(){return T})),n.d(t,"useHistory",(function(){return L})),n.d(t,"useLocation",(function(){return U})),n.d(t,"useParams",(function(){return F})),n.d(t,"useRouteMatch",(function(){return q})),n.d(t,"withRouter",(function(){return N}));var r=n(53),i=n(0),o=n.n(i),a=(n(1),n(230)),s=n(934),c=n(218),l=n(19),u=n(935),f=n.n(u),d=(n(950),n(26)),p=n(863),h=n.n(p),m=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router-History"),b=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router"),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(m.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);var g=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(a.d)(t.props),t}return Object(r.a)(t,e),t.prototype.render=function(){return o.a.createElement(y,{history:this.history,children:this.props.children})},t}(o.a.Component);var v=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.a.Component);function w(e){var t=e.message,n=e.when,r=void 0===n||n;return o.a.createElement(b.Consumer,null,(function(e){if(e||Object(c.a)(!1),!r||e.staticContext)return null;var n=e.history.block;return o.a.createElement(v,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var _={},k=0;function x(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(_[e])return _[e];var t=f.a.compile(e);return k<1e4&&(_[e]=t,k++),t}(e)(t,{pretty:!0})}function S(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.a.createElement(b.Consumer,null,(function(e){e||Object(c.a)(!1);var r=e.history,s=e.staticContext,u=i?r.push:r.replace,f=Object(a.c)(t?"string"==typeof n?x(n,t.params):Object(l.a)({},n,{pathname:x(n.pathname,t.params)}):n);return s?(u(f),null):o.a.createElement(v,{onMount:function(){u(f)},onUpdate:function(e,t){var n=Object(a.c)(t.to);Object(a.f)(n,Object(l.a)({},f,{key:n.key}))||u(f)},to:n})}))}var O={},E=0;function T(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,c=n.sensitive,l=void 0!==c&&c;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=O[n]||(O[n]={});if(r[e])return r[e];var i=[],o={regexp:f()(e,i,t),keys:i};return E<1e4&&(r[e]=o,E++),o}(n,{end:o,strict:s,sensitive:l}),i=r.regexp,a=r.keys,c=i.exec(e);if(!c)return null;var u=c[0],d=c.slice(1),p=e===u;return o&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var A=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b.Consumer,null,(function(t){t||Object(c.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?T(n.pathname,e.props):t.match,i=Object(l.a)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,f=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(b.Provider,{value:i},i.match?s?"function"==typeof s?s(i):s:u?o.a.createElement(u,i):f?f(i):null:"function"==typeof s?s(i):null)}))},t}(o.a.Component);function M(e){return"/"===e.charAt(0)?e:"/"+e}function I(e,t){if(!e)return t;var n=M(e);return 0!==t.pathname.indexOf(n)?t:Object(l.a)({},t,{pathname:t.pathname.substr(n.length)})}function P(e){return"string"==typeof e?e:Object(a.e)(e)}function C(e){return function(){Object(c.a)(!1)}}function j(){}var D=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return j},t.handleBlock=function(){return j},t}Object(r.a)(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,i=void 0===r?"":r,o=n.context,s=void 0===o?{}:o;s.action=t,s.location=function(e,t){return e?Object(l.a)({},t,{pathname:M(e)+t.pathname}):t}(i,Object(a.c)(e)),s.url=P(s.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,i=void 0===r?{}:r,s=e.location,c=void 0===s?"/":s,u=Object(d.a)(e,["basename","context","location"]),f={createHref:function(e){return M(n+P(e))},action:"POP",location:I(n,Object(a.c)(c)),push:this.handlePush,replace:this.handleReplace,go:C(),goBack:C(),goForward:C(),listen:this.handleListen,block:this.handleBlock};return o.a.createElement(y,Object(l.a)({},u,{history:f,staticContext:i}))},t}(o.a.Component);var R=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b.Consumer,null,(function(t){t||Object(c.a)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?T(i.pathname,Object(l.a)({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);function N(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(d.a)(t,["wrappedComponentRef"]);return o.a.createElement(b.Consumer,null,(function(t){return t||Object(c.a)(!1),o.a.createElement(e,Object(l.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,h()(n,e)}var B=o.a.useContext;function L(){return B(m)}function U(){return B(b).location}function F(){var e=B(b).match;return e?e.params:{}}function q(e){var t=U(),n=B(b).match;return e?T(t.pathname,e):n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return y}));var r=n(0),i=n.n(r),o=n(5),a=n(93),s=n(59),c=n(18),l=n(63),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class f extends a.ChainStore{constructor(e,t){super(e.map(e=>Object.assign(Object.assign({},e),{embeded:!0}))),this.requester=t,this._isInitializing=!1,this.deferChainIdSelect="",this.selectedChainId=e[0].chainId,Object(o.makeObservable)(this),this.init()}get isInitializing(){return this._isInitializing}selectChain(e){this._isInitializing&&(this.deferChainIdSelect=e),this.selectedChainId=e}get current(){return this.hasChain(this.selectedChainId)?this.getChain(this.selectedChainId):this.chainInfos[0]}*saveLastViewChainId(){const e=new s.SetPersistentMemoryMsg({lastViewChainId:this.selectedChainId});yield this.requester.sendMessage(c.BACKGROUND_PORT,e)}*init(){this._isInitializing=!0,yield this.getChainInfosFromBackground();const e=new s.GetPersistentMemoryMsg,t=yield*Object(l.toGenerator)(this.requester.sendMessage(c.BACKGROUND_PORT,e));this.deferChainIdSelect||t&&t.lastViewChainId&&this.selectChain(t.lastViewChainId),this._isInitializing=!1,this.deferChainIdSelect&&(this.selectChain(this.deferChainIdSelect),this.deferChainIdSelect="")}*getChainInfosFromBackground(){const e=new s.GetChainInfosMsg,t=yield*Object(l.toGenerator)(this.requester.sendMessage(c.BACKGROUND_PORT,e));this.setChainInfos(t.chainInfos)}*removeChainInfo(e){const t=new s.RemoveSuggestedChainInfoMsg(e),n=yield*Object(l.toGenerator)(this.requester.sendMessage(c.BACKGROUND_PORT,t));this.setChainInfos(n)}*tryUpdateChain(e){const t=new s.TryUpdateChainMsg(e);yield this.requester.sendMessage(c.BACKGROUND_PORT,t),yield this.getChainInfosFromBackground()}}u([o.observable],f.prototype,"selectedChainId",void 0),u([o.observable],f.prototype,"_isInitializing",void 0),u([o.action],f.prototype,"selectChain",null),u([o.computed],f.prototype,"current",null),u([o.flow],f.prototype,"saveLastViewChainId",null),u([o.flow],f.prototype,"init",null),u([o.flow],f.prototype,"getChainInfosFromBackground",null),u([o.flow],f.prototype,"removeChainInfo",null),u([o.flow],f.prototype,"tryUpdateChain",null);var d=n(841),p=n(208);class h{constructor(){const e=new c.ExtensionRouter(c.ContentScriptEnv.produceEnv);e.addGuard(c.ContentScriptGuards.checkMessageIsInternal),this.interactionStore=new a.InteractionStore(e,new c.InExtensionMessageRequester),this.chainStore=new f(d.a,new c.InExtensionMessageRequester),this.keyRingStore=new a.KeyRingStore(this.chainStore,new c.InExtensionMessageRequester,this.interactionStore),this.ibcChannelStore=new a.IBCChannelStore(new l.ExtensionKVStore("store_ibc_channel")),this.permissionStore=new a.PermissionStore(this.interactionStore,new c.InExtensionMessageRequester),this.signInteractionStore=new a.SignInteractionStore(this.interactionStore),this.ledgerInitStore=new a.LedgerInitStore(this.interactionStore,new c.InExtensionMessageRequester),this.chainSuggestStore=new a.ChainSuggestStore(this.interactionStore),this.queriesStore=new a.QueriesStore(new l.ExtensionKVStore("store_queries"),this.chainStore),this.accountStore=new a.AccountStore(this.chainStore,this.queriesStore,{defaultOpts:{prefetching:!window.location.href.includes("#/unlock")},chainOpts:this.chainStore.chainInfos.map(e=>e.chainId.startsWith("shentu-")?{chainId:e.chainId,msgOpts:{send:{native:{type:"bank/MsgSend"}}}}:e.chainId.startsWith("akashnet-")||e.chainId.startsWith("sifchain")?{chainId:e.chainId,msgOpts:{send:{native:{gas:12e4}}}}:{chainId:e.chainId})}),this.priceStore=new a.CoinGeckoPriceStore(new l.ExtensionKVStore("store_prices"),p.d.reduce((e,t)=>(e[t.currency]=t,e),{})),this.tokensStore=new a.TokensStore(this.chainStore,new c.InExtensionMessageRequester,this.interactionStore),this.ibcCurrencyRegistrar=new a.IBCCurrencyRegsitrar(this.chainStore,this.accountStore,this.queriesStore),e.listen(c.APP_PORT)}}const m=i.a.createContext(null),b=({children:e})=>{const[t]=Object(r.useState)(()=>new h);return i.a.createElement(m.Provider,{value:t},e)},y=()=>{const e=i.a.useContext(m);if(!e)throw new Error("You have forgot to use StoreProvider");return e}},function(e,t,n){var r,i,o,a,s,c,l,u,f,d,p,h,m,b,y,g,v,w,_;e.exports=(r=n(9),n(67),void(r.lib.Cipher||(i=r,o=i.lib,a=o.Base,s=o.WordArray,c=o.BufferedBlockAlgorithm,l=i.enc,l.Utf8,u=l.Base64,f=i.algo.EvpKDF,d=o.Cipher=c.extend({cfg:a.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){c.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?_:v}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),o.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),p=i.mode={},h=o.BlockCipherMode=a.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),m=p.CBC=function(){var e=h.extend();function t(e,t,n){var r,i=this._iv;i?(r=i,this._iv=void 0):r=this._prevBlock;for(var o=0;o<n;o++)e[t+o]^=r[o]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize;t.call(this,e,n,i),r.encryptBlock(e,n),this._prevBlock=e.slice(n,n+i)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize,o=e.slice(n,n+i);r.decryptBlock(e,n),t.call(this,e,n,i),this._prevBlock=o}}),e}(),b=(i.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,o=[],a=0;a<r;a+=4)o.push(i);var c=s.create(o,r);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.BlockCipher=d.extend({cfg:d.cfg.extend({mode:m,padding:b}),reset:function(){var e;d.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),y=o.CipherParams=a.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(i.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(t):t).toString(u)},parse:function(e){var t,n=u.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=s.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),y.create({ciphertext:n,salt:t})}},v=o.SerializableCipher=a.extend({cfg:a.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return y.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(i.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=s.random(8));var i=f.create({keySize:t+n}).compute(e,r),o=s.create(i.words.slice(t),4*n);return i.sigBytes=4*t,y.create({key:i,iv:o,salt:r})}},_=o.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:w}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var o=v.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,v.decrypt.call(this,e,t,i.key,r)}}))))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(221),t),i(n(421),t),i(n(235),t),i(n(116),t),i(n(112),t),i(n(234),t),i(n(149),t)},function(e,t,n){const r=n(132),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(131),{re:a,t:s}=n(84),c=n(133),{compareIdentifiers:l}=n(182);class u{constructor(e,t){if(t=c(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return l(n,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return l(n,i)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=u},function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return r})),n.d(t,"p",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"o",(function(){return c})),n.d(t,"q",(function(){return l})),n.d(t,"t",(function(){return u})),n.d(t,"i",(function(){return f})),n.d(t,"r",(function(){return d})),n.d(t,"s",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"m",(function(){return m})),n.d(t,"j",(function(){return b})),n.d(t,"l",(function(){return y})),n.d(t,"g",(function(){return g})),n.d(t,"f",(function(){return v})),n.d(t,"h",(function(){return w})),n.d(t,"n",(function(){return _})),n.d(t,"b",(function(){return k}));var r="1.12.0",i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},o=Array.prototype,a=Object.prototype,s="undefined"!=typeof Symbol?Symbol.prototype:null,c=o.push,l=o.slice,u=a.toString,f=a.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,h=Array.isArray,m=Object.keys,b=Object.create,y=d&&ArrayBuffer.isView,g=isNaN,v=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1}).call(this,n(12))},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(1400).Buffer}catch(e){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),o=t;o<i;o++){var a=e.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(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"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("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 o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.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},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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"],u=[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],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,f=67108863&c,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var h=l-p|0;u+=(a=(i=0|e.words[h])*(o=0|t.words[p])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],p=f[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modn(p).toString(e);n=(h=h.idivn(p)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,l=new e(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.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()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,n,r;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?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.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)},o.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,i,o,a=e.words,s=t.words,c=n.words,l=0,u=0|a[0],f=8191&u,d=u>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],y=8191&b,g=b>>>13,v=0|a[3],w=8191&v,_=v>>>13,k=0|a[4],x=8191&k,S=k>>>13,O=0|a[5],E=8191&O,T=O>>>13,A=0|a[6],M=8191&A,I=A>>>13,P=0|a[7],C=8191&P,j=P>>>13,D=0|a[8],R=8191&D,N=D>>>13,B=0|a[9],L=8191&B,U=B>>>13,F=0|s[0],q=8191&F,z=F>>>13,V=0|s[1],H=8191&V,$=V>>>13,K=0|s[2],W=8191&K,G=K>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var be=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(h,q),i=(i=Math.imul(h,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(g,q)|0,o=Math.imul(g,z),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,$)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,$)|0;var ge=(l+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,$)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ve=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(S,q)|0,o=Math.imul(S,z),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,G)|0,r=r+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,z))+Math.imul(T,q)|0,o=Math.imul(T,z),r=r+Math.imul(x,H)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,z))+Math.imul(I,q)|0,o=Math.imul(I,z),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(l+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,z))+Math.imul(j,q)|0,o=Math.imul(j,z),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var xe=(l+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(N,q)|0,o=Math.imul(N,z),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(U,q)|0,o=Math.imul(U,z),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,le)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Oe=(l+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,H),i=(i=Math.imul(L,$))+Math.imul(U,H)|0,o=Math.imul(U,$),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ee=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,G))+Math.imul(U,W)|0,o=Math.imul(U,G),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(l+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(g,he)|0))<<13)|0;l=((o=o+Math.imul(g,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(U,Q)|0,o=Math.imul(U,Y),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,le)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ae=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,he)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Me=(l+(r=r+Math.imul(x,he)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,he)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,le)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(r=r+Math.imul(E,he)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(T,he)|0))<<13)|0;l=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var Pe=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(U,ce)|0,o=Math.imul(U,le),r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,de)|0;var Ce=(l+(r=r+Math.imul(C,he)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(j,he)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var je=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(N,he)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863;var De=(l+(r=Math.imul(L,he))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,he)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=be,c[1]=ye,c[2]=ge,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=xe,c[8]=Se,c[9]=Oe,c[10]=Ee,c[11]=Te,c[12]=Ae,c[13]=Me,c[14]=Ie,c[15]=Pe,c[16]=Ce,c[17]=je,c[18]=De,0!==l&&(c[19]=l,n.length++),n};function h(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=d),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,f=(0|e.words[u])*(0|t.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):h(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},m.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=c,d=l,p=0;p<a;p++){var h=n[u+p],m=r[u+p],b=n[u+p+a],y=r[u+p+a],g=f*b-d*y;y=f*y+d*b,b=g,n[u+p]=h+b,r[u+p]=m+y,n[u+p+a]=h-b,r[u+p+a]=m-y,p!==s&&(g=c*f-l*d,d=c*d+l*f,f=g)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,l,r),this.transform(a,o,s,c,r,i),this.transform(l,o,u,f,r,i);for(var p=0;p<r;p++){var h=s[p]*u[p]-c[p]*f[p];c[p]=s[p]*f[p]+c[p]*u[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),h(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<n;this.words[t]=c|a,a=s>>>26-n}a&&(this.words[t]=a,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()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=n;if(i-=a,i=Math.max(0,i),c){for(var l=0;l<a;l++)c.words[l]=this.words[l];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var f=0|this.words[l];this.words[l]=u<<26-o|f>>>o,u=f&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(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)},o.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},o.prototype.isubn=function(e){if(r("number"==typeof e),r(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()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(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},o.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},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}y.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(g,y),g.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(v,y),i(w,y),i(_,y),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();r(b<h);var y=this.pow(f,new o(1).iushln(h-b-1));d=d.redMul(y),f=y.redSqr(),p=p.redMul(f),h=b}return d},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var f=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,k),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(71)(e))},function(e,t,n){"use strict";var r=n(302),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function l(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isPlainObject:c,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:l,isStream:function(e){return s(e)&&l(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:u,merge:function e(){var t={};function n(n,r){c(t[r])&&c(n)?t[r]=e(t[r],n):c(n)?t[r]=e({},n):o(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)u(arguments[r],n);return t},extend:function(e,t,n){return u(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return m})),n.d(t,"g",(function(){return b}));var r=n(0),i=n(890),o=n(229),a=n(1068);const s={38:"&amp;",62:"&gt;",60:"&lt;",34:"&quot;",39:"&#x27;"},c=/[&><"']/g;function l(e){return(""+e).replace(c,e=>s[e.charCodeAt(0)])}function u(e,t,n={}){return t.reduce((t,r)=>(r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t),{})}function f(e){Object(a.a)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function d(e,t){return`[React Intl] ${e}${t?"\n"+t.stack:""}`}const p={formats:{},messages:{},timeZone:void 0,textComponent:r.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function h(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function m(e={dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}){const t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames;return{getDateTimeFormat:Object(o.a)(Intl.DateTimeFormat,e.dateTime),getNumberFormat:Object(o.a)(Intl.NumberFormat,e.number),getMessageFormat:Object(o.a)(i.a,e.message),getRelativeTimeFormat:Object(o.a)(t,e.relativeTime),getPluralRules:Object(o.a)(Intl.PluralRules,e.pluralRules),getListFormat:Object(o.a)(n,e.list),getDisplayNames:Object(o.a)(r,e.displayNames)}}function b(e,t,n,r){const i=e&&e[t];let o;if(i&&(o=i[n]),o)return o;r(d(`No ${t} format named: ${n}`))}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,i=n(6),o=n(32),a=n(280);r.assert=o,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<r.length;a++){var s,c=o.andln(i-1);o.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var o,a,s,c=e.andln(3)+r&3,l=t.andln(3)+i&3;if(3===c&&(c=-1),3===l&&(l=-1),0==(1&c))o=0;else o=3!==(s=e.andln(7)+r&7)&&5!==s||2!==l?c:-c;if(n[0].push(o),0==(1&l))a=0;else a=3!==(s=t.andln(7)+i&7)&&5!==s||2!==c?l:-l;n[1].push(a),2*r===o+1&&(r=1-r),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,n){"use strict";n.d(t,"e",(function(){return r.a})),n.d(t,"g",(function(){return p})),n.d(t,"a",(function(){return h.a})),n.d(t,"b",(function(){return m.a})),n.d(t,"d",(function(){return b.a})),n.d(t,"f",(function(){return y.a})),n.d(t,"c",(function(){return g.a}));var r=n(884),i=n(0),o=n.n(i),a=n(10),s=n.n(a),c=n(404),l=n(405),u=n(868),f=n(895),d=n(2);const p=Object(i.forwardRef)((e,t)=>{const{label:n,error:r}=e,a=Object.assign({},e);delete a.className,delete a.color,delete a.label,delete a.error,delete a.children;const[p]=Object(i.useState)(()=>{const e=new Uint8Array(4);return crypto.getRandomValues(e),"input-"+d.Buffer.from(e).toString("hex")});return o.a.createElement(c.a,null,n?o.a.createElement(l.a,{for:p,className:"form-control-label"},n):null,o.a.createElement(u.a,Object.assign({id:p,className:s()("form-control-alternative",e.className),type:"textarea",innerRef:t,invalid:null!=r},a)),r?o.a.createElement(f.a,null,r):null)});var h=n(996),m=n(1008),b=n(1009),y=n(1010),g=(n(886),n(887),n(1011))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));let r=!1,i=!1;const o={debug:1,default:2,info:2,warning:3,error:4,off:5};let a=o.default,s=null;const c=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(n){e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var l,u;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(l||(l={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT"}(u||(u={}));class f{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const n=e.toLowerCase();null==o[n]&&this.throwArgumentError("invalid log level name","logLevel",e),a>o[n]||console.log.apply(console,t)}debug(...e){this._log(f.levels.DEBUG,e)}info(...e){this._log(f.levels.INFO,e)}warn(...e){this._log(f.levels.WARNING,e)}makeError(e,t,n){if(i)return this.makeError("censored error",t,{});t||(t=f.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach(e=>{try{r.push(e+"="+JSON.stringify(n[e]))}catch(t){r.push(e+"="+JSON.stringify(n[e].toString()))}}),r.push("code="+t),r.push("version="+this.version);const o=e;r.length&&(e+=" ("+r.join(", ")+")");const a=new Error(e);return a.reason=o,a.code=t,Object.keys(n).forEach((function(e){a[e]=n[e]})),a}throwError(e,t,n){throw this.makeError(e,t,n)}throwArgumentError(e,t,n){return this.throwError(e,f.errors.INVALID_ARGUMENT,{argument:t,value:n})}assert(e,t,n,r){e||this.throwError(t,n,r)}assertArgument(e,t,n,r){e||this.throwArgumentError(t,n,r)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),c&&this.throwError("platform missing String.prototype.normalize",f.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,n){n=n?": "+n:"",e<t&&this.throwError("missing argument"+n,f.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+n,f.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",f.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",f.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",f.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return s||(s=new f("logger/5.0.8")),s}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),r){if(!e)return;this.globalLogger().throwError("error censorship permanent",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!e,r=!!t}static setLogLevel(e){const t=o[e.toLowerCase()];null!=t?a=t:f.globalLogger().warn("invalid log level - "+e)}static from(e){return new f(e)}}f.errors=u,f.levels=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));let r=!1,i=!1;const o={debug:1,default:2,info:2,warning:3,error:4,off:5};let a=o.default,s=null;const c=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(n){e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();var l,u;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(l||(l={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT"}(u||(u={}));class f{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const n=e.toLowerCase();null==o[n]&&this.throwArgumentError("invalid log level name","logLevel",e),a>o[n]||console.log.apply(console,t)}debug(...e){this._log(f.levels.DEBUG,e)}info(...e){this._log(f.levels.INFO,e)}warn(...e){this._log(f.levels.WARNING,e)}makeError(e,t,n){if(i)return this.makeError("censored error",t,{});t||(t=f.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach(e=>{try{r.push(e+"="+JSON.stringify(n[e]))}catch(t){r.push(e+"="+JSON.stringify(n[e].toString()))}}),r.push("code="+t),r.push("version="+this.version);const o=e;r.length&&(e+=" ("+r.join(", ")+")");const a=new Error(e);return a.reason=o,a.code=t,Object.keys(n).forEach((function(e){a[e]=n[e]})),a}throwError(e,t,n){throw this.makeError(e,t,n)}throwArgumentError(e,t,n){return this.throwError(e,f.errors.INVALID_ARGUMENT,{argument:t,value:n})}assert(e,t,n,r){e||this.throwError(t,n,r)}assertArgument(e,t,n,r){e||this.throwArgumentError(t,n,r)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),c&&this.throwError("platform missing String.prototype.normalize",f.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:c})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,f.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,n){n=n?": "+n:"",e<t&&this.throwError("missing argument"+n,f.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+n,f.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",f.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",f.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",f.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return s||(s=new f("logger/5.0.8")),s}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),r){if(!e)return;this.globalLogger().throwError("error censorship permanent",f.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}i=!!e,r=!!t}static setLogLevel(e){const t=o[e.toLowerCase()];null!=t?a=t:f.globalLogger().warn("invalid log level - "+e)}static from(e){return new f(e)}}f.errors=u,f.levels=l},function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],c=t.base?o[0]+t.base:o[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var f=s(u),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:u,updater:b(d,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,f=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=f(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function p(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,m=0;function b(e,t){var n,r,i;if(t.singleton){var o=m++;n=h||(h=l(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=l(t),r=p.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8=t.fromUtf8=t.toRfc3339=t.fromRfc3339=t.toHex=t.fromHex=t.Bech32=t.toBase64=t.fromBase64=t.toAscii=t.fromAscii=void 0;var r=n(615);Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return r.fromAscii}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return r.toAscii}});var i=n(616);Object.defineProperty(t,"fromBase64",{enumerable:!0,get:function(){return i.fromBase64}}),Object.defineProperty(t,"toBase64",{enumerable:!0,get:function(){return i.toBase64}});var o=n(617);Object.defineProperty(t,"Bech32",{enumerable:!0,get:function(){return o.Bech32}});var a=n(618);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return a.fromHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return a.toHex}});var s=n(619);Object.defineProperty(t,"fromRfc3339",{enumerable:!0,get:function(){return s.fromRfc3339}}),Object.defineProperty(t,"toRfc3339",{enumerable:!0,get:function(){return s.toRfc3339}});var c=n(620);Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return c.fromUtf8}}),Object.defineProperty(t,"toUtf8",{enumerable:!0,get:function(){return c.toUtf8}})},function(e,t,n){const r=n(24);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},function(e,t,n){class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!h(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,n=i.get(t);if(n)return n;const r=this.options.loose,o=r?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(o,T(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],f),s("comparator trim",e,l[u.COMPARATORTRIM]),e=(e=(e=e.replace(l[u.TILDETRIM],d)).replace(l[u.CARETTRIM],p)).split(/\s+/).join(" ");const c=r?l[u.COMPARATORLOOSE]:l[u.COMPARATOR],m=e.split(" ").map(e=>y(e,this.options)).join(" ").split(/\s+/).map(e=>E(e,this.options)).filter(this.options.loose?e=>!!e.match(c):()=>!0).map(e=>new a(e,this.options)),b=(m.length,new Map);for(const e of m){if(h(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const g=[...b.values()];return i.set(t,g),g}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>b(n,t)&&e.set.some(e=>b(e,t)&&n.every(n=>e.every(e=>n.intersects(e,t)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(A(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const i=new(n(699))({max:1e3}),o=n(133),a=n(135),s=n(132),c=n(24),{re:l,t:u,comparatorTrimReplace:f,tildeTrimReplace:d,caretTrimReplace:p}=n(84),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,b=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},y=(e,t)=>(s("comp",e,t),e=_(e,t),s("caret",e),e=v(e,t),s("tildes",e),e=x(e,t),s("xrange",e),e=O(e,t),s("stars",e),e),g=e=>!e||"x"===e.toLowerCase()||"*"===e,v=(e,t)=>e.trim().split(/\s+/).map(e=>w(e,t)).join(" "),w=(e,t)=>{const n=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(n,(t,n,r,i,o)=>{let a;return s("tilde",e,t,n,r,i,o),g(n)?a="":g(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:g(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,s("tilde return",a),a})},_=(e,t)=>e.trim().split(/\s+/).map(e=>k(e,t)).join(" "),k=(e,t)=>{s("caret",e,t);const n=t.loose?l[u.CARETLOOSE]:l[u.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,i,o,a)=>{let c;return s("caret",e,t,n,i,o,a),g(n)?c="":g(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:g(o)?c="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(s("no pr"),c="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),s("caret return",c),c})},x=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>S(e,t)).join(" ")),S=(e,t)=>{e=e.trim();const n=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(n,(n,r,i,o,a,c)=>{s("xRange",e,n,r,i,o,a,c);const l=g(i),u=l||g(o),f=u||g(a),d=f;return"="===r&&d&&(r=""),c=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(c="-0"),n=`${r+i}.${o}.${a}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:f&&(n=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",n),n})},O=(e,t)=>(s("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),E=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),T=e=>(t,n,r,i,o,a,s,c,l,u,f,d,p)=>`${n=g(r)?"":g(i)?`>=${r}.0.0${e?"-0":""}`:g(o)?`>=${r}.${i}.0${e?"-0":""}`:a?">="+n:`>=${n}${e?"-0":""}`} ${c=g(l)?"":g(u)?`<${+l+1}.0.0-0`:g(f)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${f}-${d}`:e?`<${l}.${u}.${+f+1}-0`:"<="+c}`.trim(),A=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(s(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(732);t.Bech32=r.Bech32;var i=n(733);t.Decimal=i.Decimal;var o=n(360);t.Encoding=o.Encoding;var a=n(734);t.Int53=a.Int53,t.Uint32=a.Uint32,t.Uint53=a.Uint53,t.Uint64=a.Uint64;var s=n(735);t.isJsonCompatibleValue=s.isJsonCompatibleValue,t.isJsonCompatibleDictionary=s.isJsonCompatibleDictionary,t.isJsonCompatibleArray=s.isJsonCompatibleArray;var c=n(736);t.TransactionEncoder=c.TransactionEncoder;var l=n(362);t.isNonNullObject=l.isNonNullObject,t.isUint8Array=l.isUint8Array},function(e,t,n){"use strict";var r;n.r(t),n.d(t,"Lifecycle",(function(){return i})),n.d(t,"autoInjectable",(function(){return E})),n.d(t,"inject",(function(){return T})),n.d(t,"injectable",(function(){return A})),n.d(t,"registry",(function(){return M})),n.d(t,"singleton",(function(){return I})),n.d(t,"injectAll",(function(){return P})),n.d(t,"injectAllWithTransform",(function(){return C})),n.d(t,"injectWithTransform",(function(){return j})),n.d(t,"scoped",(function(){return D})),n.d(t,"instanceCachingFactory",(function(){return R})),n.d(t,"predicateAwareClassFactory",(function(){return N})),n.d(t,"isClassProvider",(function(){return c})),n.d(t,"isFactoryProvider",(function(){return l})),n.d(t,"isNormalToken",(function(){return d})),n.d(t,"isTokenProvider",(function(){return m})),n.d(t,"isValueProvider",(function(){return b})),n.d(t,"delay",(function(){return f})),n.d(t,"container",(function(){return O})),function(e){e[e.Transient=0]="Transient",e[e.Singleton=1]="Singleton",e[e.ResolutionScoped=2]="ResolutionScoped",e[e.ContainerScoped=3]="ContainerScoped"}(r||(r={}));var i=r,o=n(3);function a(e){var t=Reflect.getMetadata("design:paramtypes",e)||[],n=Reflect.getOwnMetadata("injectionTokens",e)||{};return Object.keys(n).forEach((function(e){t[+e]=n[e]})),t}function s(e,t){return function(n,r,i){var o=Reflect.getOwnMetadata("injectionTokens",n)||{};o[i]=t?{token:e,transform:t.transformToken,transformArgs:t.args||[]}:e,Reflect.defineMetadata("injectionTokens",o,n)}}function c(e){return!!e.useClass}function l(e){return!!e.useFactory}var u=function(){function e(e){this.wrap=e,this.reflectMethods=["get","getPrototypeOf","setPrototypeOf","getOwnPropertyDescriptor","defineProperty","has","set","deleteProperty","apply","construct"]}return e.prototype.createProxy=function(e){var t,n=this,r=!1;return new Proxy({},this.createHandler((function(){return r||(t=e(n.wrap()),r=!0),t})))},e.prototype.createHandler=function(e){var t={};return this.reflectMethods.forEach((function(n){t[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];t[0]=e();var i=Reflect[n];return i.apply(void 0,Object(o.e)(t))}})),t},e}();function f(e){if(void 0===e)throw new Error("Attempt to `delay` undefined. Constructor must be wrapped in a callback");return new u(e)}function d(e){return"string"==typeof e||"symbol"==typeof e}function p(e){return"object"==typeof e&&"token"in e&&"multiple"in e}function h(e){return"object"==typeof e&&"token"in e&&"transform"in e}function m(e){return!!e.useToken}function b(e){return null!=e.useValue}var y=function(){function e(){this._registryMap=new Map}return e.prototype.entries=function(){return this._registryMap.entries()},e.prototype.getAll=function(e){return this.ensure(e),this._registryMap.get(e)},e.prototype.get=function(e){this.ensure(e);var t=this._registryMap.get(e);return t[t.length-1]||null},e.prototype.set=function(e,t){this.ensure(e),this._registryMap.get(e).push(t)},e.prototype.setAll=function(e,t){this._registryMap.set(e,t)},e.prototype.has=function(e){return this.ensure(e),this._registryMap.get(e).length>0},e.prototype.clear=function(){this._registryMap.clear()},e.prototype.ensure=function(e){this._registryMap.has(e)||this._registryMap.set(e,[])},e}(),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.b)(t,e),t}(y),v=function(){this.scopedResolutions=new Map};function w(e,t,n){var r,i,a,s=Object(o.c)(e.toString().match(/constructor\(([\w, ]+)\)/)||[],2)[1],c=function(e,t){return null===e?"at position #"+t:'"'+e.split(",")[t].trim()+'" at position #'+t}(void 0===s?null:s,t);return r="Cannot inject the dependency "+c+' of "'+e.name+'" constructor. Reason:',i=n,void 0===a&&(a="    "),Object(o.e)([r],i.message.split("\n").map((function(e){return a+e}))).join("\n")}var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.b)(t,e),t}(y),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.b)(t,e),t}(y),x=function(){this.preResolution=new _,this.postResolution=new k},S=new Map,O=new(function(){function e(e){this.parent=e,this._registry=new g,this.interceptors=new x}return e.prototype.register=function(e,t,n){var r;if(void 0===n&&(n={lifecycle:i.Transient}),r=function(e){return c(e)||b(e)||m(e)||l(e)}(t)?t:{useClass:t},m(r))for(var a=[e],s=r;null!=s;){var u=s.useToken;if(a.includes(u))throw new Error("Token registration cycle detected! "+Object(o.e)(a,[u]).join(" -> "));a.push(u);var f=this._registry.get(u);s=f&&m(f.provider)?f.provider:null}if((n.lifecycle===i.Singleton||n.lifecycle==i.ContainerScoped||n.lifecycle==i.ResolutionScoped)&&(b(r)||l(r)))throw new Error('Cannot use lifecycle "'+i[n.lifecycle]+'" with ValueProviders or FactoryProviders');return this._registry.set(e,{provider:r,options:n}),this},e.prototype.registerType=function(e,t){return d(t)?this.register(e,{useToken:t}):this.register(e,{useClass:t})},e.prototype.registerInstance=function(e,t){return this.register(e,{useValue:t})},e.prototype.registerSingleton=function(e,t){if(d(e)){if(d(t))return this.register(e,{useToken:t},{lifecycle:i.Singleton});if(t)return this.register(e,{useClass:t},{lifecycle:i.Singleton});throw new Error('Cannot register a type name as a singleton without a "to" token')}var n=e;return t&&!d(t)&&(n=t),this.register(e,{useClass:n},{lifecycle:i.Singleton})},e.prototype.resolve=function(e,t){void 0===t&&(t=new v);var n=this.getRegistration(e);if(!n&&d(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"Single"),n){var r=this.resolveRegistration(n,t);return this.executePostResolutionInterceptor(e,r,"Single"),r}if(function(e){return"function"==typeof e||e instanceof u}(e)){r=this.construct(e,t);return this.executePostResolutionInterceptor(e,r,"Single"),r}throw new Error("Attempted to construct an undefined constructor. Could mean a circular dependency problem. Try using `delay` function.")},e.prototype.executePreResolutionInterceptor=function(e,t){var n,r;if(this.interceptors.preResolution.has(e)){var i=[];try{for(var a=Object(o.g)(this.interceptors.preResolution.getAll(e)),s=a.next();!s.done;s=a.next()){var c=s.value;"Once"!=c.options.frequency&&i.push(c),c.callback(e,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}this.interceptors.preResolution.setAll(e,i)}},e.prototype.executePostResolutionInterceptor=function(e,t,n){var r,i;if(this.interceptors.postResolution.has(e)){var a=[];try{for(var s=Object(o.g)(this.interceptors.postResolution.getAll(e)),c=s.next();!c.done;c=s.next()){var l=c.value;"Once"!=l.options.frequency&&a.push(l),l.callback(e,t,n)}}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}this.interceptors.postResolution.setAll(e,a)}},e.prototype.resolveRegistration=function(e,t){if(e.options.lifecycle===i.ResolutionScoped&&t.scopedResolutions.has(e))return t.scopedResolutions.get(e);var n,r=e.options.lifecycle===i.Singleton,o=e.options.lifecycle===i.ContainerScoped,a=r||o;return n=b(e.provider)?e.provider.useValue:m(e.provider)?a?e.instance||(e.instance=this.resolve(e.provider.useToken,t)):this.resolve(e.provider.useToken,t):c(e.provider)?a?e.instance||(e.instance=this.construct(e.provider.useClass,t)):this.construct(e.provider.useClass,t):l(e.provider)?e.provider.useFactory(this):this.construct(e.provider,t),e.options.lifecycle===i.ResolutionScoped&&t.scopedResolutions.set(e,n),n},e.prototype.resolveAll=function(e,t){var n=this;void 0===t&&(t=new v);var r=this.getAllRegistrations(e);if(!r&&d(e))throw new Error('Attempted to resolve unregistered dependency token: "'+e.toString()+'"');if(this.executePreResolutionInterceptor(e,"All"),r){var i=r.map((function(e){return n.resolveRegistration(e,t)}));return this.executePostResolutionInterceptor(e,i,"All"),i}var o=[this.construct(e,t)];return this.executePostResolutionInterceptor(e,o,"All"),o},e.prototype.isRegistered=function(e,t){return void 0===t&&(t=!1),this._registry.has(e)||t&&(this.parent||!1)&&this.parent.isRegistered(e,!0)},e.prototype.reset=function(){this._registry.clear(),this.interceptors.preResolution.clear(),this.interceptors.postResolution.clear()},e.prototype.clearInstances=function(){var e,t;try{for(var n=Object(o.g)(this._registry.entries()),r=n.next();!r.done;r=n.next()){var i=Object(o.c)(r.value,2),a=i[0],s=i[1];this._registry.setAll(a,s.filter((function(e){return!b(e.provider)})).map((function(e){return e.instance=void 0,e})))}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},e.prototype.createChildContainer=function(){var t,n,r=new e(this);try{for(var a=Object(o.g)(this._registry.entries()),s=a.next();!s.done;s=a.next()){var c=Object(o.c)(s.value,2),l=c[0],u=c[1];u.some((function(e){return e.options.lifecycle===i.ContainerScoped}))&&r._registry.setAll(l,u.map((function(e){return e.options.lifecycle===i.ContainerScoped?{provider:e.provider,options:e.options}:e})))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},e.prototype.beforeResolution=function(e,t,n){void 0===n&&(n={frequency:"Always"}),this.interceptors.preResolution.set(e,{callback:t,options:n})},e.prototype.afterResolution=function(e,t,n){void 0===n&&(n={frequency:"Always"}),this.interceptors.postResolution.set(e,{callback:t,options:n})},e.prototype.getRegistration=function(e){return this.isRegistered(e)?this._registry.get(e):this.parent?this.parent.getRegistration(e):null},e.prototype.getAllRegistrations=function(e){return this.isRegistered(e)?this._registry.getAll(e):this.parent?this.parent.getAllRegistrations(e):null},e.prototype.construct=function(e,t){var n=this;if(e instanceof u)return e.createProxy((function(e){return n.resolve(e,t)}));var r=S.get(e);if(!r||0===r.length){if(0===e.length)return new e;throw new Error('TypeInfo not known for "'+e.name+'"')}var i=r.map(this.resolveParams(t,e));return new(e.bind.apply(e,Object(o.e)([void 0],i)))},e.prototype.resolveParams=function(e,t){var n=this;return function(r,i){var a,s,c;try{return p(r)?h(r)?r.multiple?(a=n.resolve(r.transform)).transform.apply(a,Object(o.e)([n.resolveAll(r.token)],r.transformArgs)):(s=n.resolve(r.transform)).transform.apply(s,Object(o.e)([n.resolve(r.token,e)],r.transformArgs)):r.multiple?n.resolveAll(r.token):n.resolve(r.token,e):h(r)?(c=n.resolve(r.transform,e)).transform.apply(c,Object(o.e)([n.resolve(r.token,e)],r.transformArgs)):n.resolve(r,e)}catch(e){throw new Error(w(t,i,e))}}},e}());var E=function(){return function(e){var t=a(e);return function(n){function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return n.apply(this,Object(o.e)(r.concat(t.slice(r.length).map((function(t,n){var i,a,s;try{return p(t)?h(t)?t.multiple?(i=O.resolve(t.transform)).transform.apply(i,Object(o.e)([O.resolveAll(t.token)],t.transformArgs)):(a=O.resolve(t.transform)).transform.apply(a,Object(o.e)([O.resolve(t.token)],t.transformArgs)):t.multiple?O.resolveAll(t.token):O.resolve(t.token):h(t)?(s=O.resolve(t.transform)).transform.apply(s,Object(o.e)([O.resolve(t.token)],t.transformArgs)):O.resolve(t)}catch(t){var c=n+r.length;throw new Error(w(e,c,t))}})))))||this}return Object(o.b)(r,n),r}(e)}};var T=function(e){return s(e)};var A=function(){return function(e){S.set(e,a(e))}};var M=function(e){return void 0===e&&(e=[]),function(t){return e.forEach((function(e){var t=e.token,n=e.options,r=Object(o.d)(e,["token","options"]);return O.register(t,r,n)})),t}};var I=function(){return function(e){A()(e),O.registerSingleton(e)}};var P=function(e){return s({token:e,multiple:!0})};var C=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={token:e,multiple:!0,transform:t,transformArgs:n};return s(i)};var j=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return s(e,{transformToken:t,args:n})};function D(e,t){return function(n){A()(n),O.register(t||n,n,{lifecycle:e})}}function R(e){var t;return function(n){return null==t&&(t=e(n)),t}}function N(e,t,n,r){var i,o;return void 0===r&&(r=!0),function(a){var s=e(a);return r&&o===s||(i=(o=s)?a.resolve(t):a.resolve(n)),i}}if("undefined"==typeof Reflect||!Reflect.getMetadata)throw new Error("tsyringe requires a reflect polyfill. Please add 'import \"reflect-metadata\"' to the top of your entry point.")},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(207),i=n.n(r);const o={blue:{id:"blue",productName:"Ledger Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:491520,blockSize:4096,getBlockSize:e=>4096},nanoS:{id:"nanoS",productName:"Ledger Nano S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:327680,blockSize:4096,getBlockSize:e=>i.a.lt(i.a.coerce(e),"2.0.0")?4096:2048},nanoX:{id:"nanoX",productName:"Ledger Nano X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2097152,blockSize:4096,getBlockSize:e=>4096,bluetoothSpec:[{serviceUuid:"d973f2e0-b19e-11e2-9e96-0800200c9a66",notifyUuid:"d973f2e1-b19e-11e2-9e96-0800200c9a66",writeUuid:"d973f2e2-b19e-11e2-9e96-0800200c9a66"},{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572"}]}},a=Object.values(o),s=11415,c=e=>{const t=a.find(t=>t.legacyUsbProductId===e);if(t)return t;const n=e>>8;return a.find(e=>e.productIdMM===n)},l=[],u={};for(let e in o){const t=o[e],{bluetoothSpec:n}=t;if(n)for(let e=0;e<n.length;e++){const r=n[e];l.push(r.serviceUuid),u[r.serviceUuid]=u[r.serviceUuid.replace(/-/g,"")]={deviceModel:t,...r}}}},function(e,t,n){"use strict";var r=t;r.version=n(508).version,r.utils=n(33),r.rand=n(161),r.curve=n(281),r.curves=n(164),r.ec=n(513),r.eddsa=n(517)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1103),t),i(n(835),t),i(n(1266),t),i(n(1267),t),i(n(1322),t),i(n(1324),t)},,function(e,t,n){"use strict";e.exports=n(428)},function(e,t,n){"use strict";var r=n(32),i=n(4);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=c(i.toString(16))}return n},t.zero2=s,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var a=new Array(o/4),s=0,c=t;s<a.length;s++,c+=4){var l;l="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],a[s]=l>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},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,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+o>>>0)<o?1:0,e+n+i+a+(c+=(l=l+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,c,l){var u=0,f=t;return u+=(f=f+r>>>0)<t?1:0,u+=(f=f+o>>>0)<o?1:0,u+=(f=f+s>>>0)<s?1:0,e+n+i+a+c+(u+=(f=f+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,c,l){return t+r+o+s+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.slip10CurveFromString=t.Slip10RawIndex=t.Slip10Curve=t.Slip10=t.stringToPath=t.pathToString=t.sha512=t.Sha512=t.sha256=t.Sha256=t.sha1=t.Sha1=t.Secp256k1Signature=t.ExtendedSecp256k1Signature=t.Secp256k1=t.ripemd160=t.Ripemd160=t.Random=t.Ed25519Keypair=t.Ed25519=t.isArgon2idOptions=t.Argon2id=t.xchacha20NonceLength=t.Xchacha20poly1305Ietf=t.keccak256=t.Keccak256=t.Hmac=t.EnglishMnemonic=t.Bip39=void 0;var r=n(614);Object.defineProperty(t,"Bip39",{enumerable:!0,get:function(){return r.Bip39}});var i=n(312);Object.defineProperty(t,"EnglishMnemonic",{enumerable:!0,get:function(){return i.EnglishMnemonic}});var o=n(313);Object.defineProperty(t,"Hmac",{enumerable:!0,get:function(){return o.Hmac}});var a=n(621);Object.defineProperty(t,"Keccak256",{enumerable:!0,get:function(){return a.Keccak256}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return a.keccak256}});var s=n(622);Object.defineProperty(t,"Xchacha20poly1305Ietf",{enumerable:!0,get:function(){return s.Xchacha20poly1305Ietf}}),Object.defineProperty(t,"xchacha20NonceLength",{enumerable:!0,get:function(){return s.xchacha20NonceLength}}),Object.defineProperty(t,"Argon2id",{enumerable:!0,get:function(){return s.Argon2id}}),Object.defineProperty(t,"isArgon2idOptions",{enumerable:!0,get:function(){return s.isArgon2idOptions}}),Object.defineProperty(t,"Ed25519",{enumerable:!0,get:function(){return s.Ed25519}}),Object.defineProperty(t,"Ed25519Keypair",{enumerable:!0,get:function(){return s.Ed25519Keypair}});var c=n(623);Object.defineProperty(t,"Random",{enumerable:!0,get:function(){return c.Random}});var l=n(624);Object.defineProperty(t,"Ripemd160",{enumerable:!0,get:function(){return l.Ripemd160}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return l.ripemd160}});var u=n(625);Object.defineProperty(t,"Secp256k1",{enumerable:!0,get:function(){return u.Secp256k1}});var f=n(315);Object.defineProperty(t,"ExtendedSecp256k1Signature",{enumerable:!0,get:function(){return f.ExtendedSecp256k1Signature}}),Object.defineProperty(t,"Secp256k1Signature",{enumerable:!0,get:function(){return f.Secp256k1Signature}});var d=n(316);Object.defineProperty(t,"Sha1",{enumerable:!0,get:function(){return d.Sha1}}),Object.defineProperty(t,"sha1",{enumerable:!0,get:function(){return d.sha1}}),Object.defineProperty(t,"Sha256",{enumerable:!0,get:function(){return d.Sha256}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return d.sha256}}),Object.defineProperty(t,"Sha512",{enumerable:!0,get:function(){return d.Sha512}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return d.sha512}});var p=n(626);Object.defineProperty(t,"pathToString",{enumerable:!0,get:function(){return p.pathToString}}),Object.defineProperty(t,"stringToPath",{enumerable:!0,get:function(){return p.stringToPath}}),Object.defineProperty(t,"Slip10",{enumerable:!0,get:function(){return p.Slip10}}),Object.defineProperty(t,"Slip10Curve",{enumerable:!0,get:function(){return p.Slip10Curve}}),Object.defineProperty(t,"Slip10RawIndex",{enumerable:!0,get:function(){return p.Slip10RawIndex}}),Object.defineProperty(t,"slip10CurveFromString",{enumerable:!0,get:function(){return p.slip10CurveFromString}})},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,s;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):b(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var l=c.length,u=b(c,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TYPES=void 0,t.TYPES={ChainsStore:Symbol("ChainsStore"),ChainsEmbedChainInfos:Symbol("ChainsEmbededChainInfos"),InteractionStore:Symbol("InteractionStore"),KeyRingStore:Symbol("KeyRingStore"),LedgerStore:Symbol("LedgerStore"),PermissionStore:Symbol("PermissionStore"),PermissionServicePrivilegedOrigins:Symbol("PermissionServicePrivilegedOrigins"),PersistentMemoryStore:Symbol("PersistentMemoryStore"),SecretWasmStore:Symbol("SecretWasmStore"),TokensStore:Symbol("TokensStore"),TxStore:Symbol("TxStore"),UpdaterStore:Symbol("UpdaterStore"),EventMsgRequester:Symbol("EventMsgRequester"),RNG:Symbol("RandomNumberGenerator")}},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(4),i=n(156),o=n(75),a=n(76),s=n(56);function c(e){s.call(this,"digest"),this._hash=e}r(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new c(a(e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var r=n(0),i=n.n(r),o=n(217),a=n(936),s=n.n(a);const c=i.a.createContext(null),l=c.Provider,u=()=>{const e=Object(r.useContext)(c);if(!e)throw new Error("You have forgot to use MenuProvider");return e},f={open:{x:0,transition:{type:"tween",ease:"easeOut",duration:.3}},closed:{x:"-100%",transition:{type:"tween",ease:"easeOut",duration:.15}}},d={open:{opacity:.3,transition:{type:"tween",ease:"easeOut",duration:.3}},closed:{opacity:0,transition:{type:"tween",ease:"easeOut",duration:.15}}},p=({isOpen:e,children:t})=>{const n=Object(r.useRef)(null),a=u(),c=Object(r.useCallback)(()=>{a.close()},[a]);return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.a,null,e?i.a.createElement(o.b.div,{className:s.a.background,animate:e?"open":"closed",variants:d,exit:"closed",initial:{opacity:0},onClick:c}):null),i.a.createElement(o.b.nav,{className:s.a.menuNav,ref:n,animate:e?"open":"closed",variants:f,initial:{x:"-100%"}},t))},h=e=>i.a.createElement(o.b.path,Object.assign({fill:"transparent",strokeWidth:"2",stroke:"hsl(0, 0%, 18%)",strokeLinecap:"round"},e)),m=i.a.forwardRef((e,t)=>i.a.createElement(o.b.svg,{viewBox:"0 0 20 20",ref:t},i.a.createElement(h,{variants:{closed:{d:"M 3 4 L 17 4"},open:{d:"M 3 4 L 17 16"}},initial:{d:"M 3 4 L 17 4"}}),i.a.createElement(h,{d:"M 3 10 L 17 10",variants:{closed:{opacity:1},open:{opacity:0}},initial:{opacity:1},transition:{duration:.1}}),i.a.createElement(h,{variants:{closed:{d:"M 3 16 L 17 16"},open:{d:"M 3 16 L 17 4"}},initial:{d:"M 3 16 L 17 16"}})));var b=n(10),y=n.n(b);n(1339);class g extends i.a.Component{render(){const{fixed:e,left:t,right:n,children:r}=this.props;return i.a.createElement("div",{className:y()(["header",{fixed:e}])},i.a.createElement("div",{className:"header-menu-left"},t),i.a.createElement("div",{className:"header-section"},r),i.a.createElement("div",{className:"header-menu-right"},n))}}var v=n(14),w=n(21),_=n(419),k=n.n(_),x=n(839),S=n(892),O=n.n(S),E=n(150),T=n(869),A=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const M=Object(v.a)(({chainInfo:e})=>{const{chainStore:t}=Object(w.b)(),n=Object(T.a)(),r=Object(E.b)();return i.a.createElement("div",{className:y()({[O.a.chainName]:!0,selected:e.chainId===t.current.chainId}),onClick:()=>{e.chainId!==t.current.chainId&&(t.selectChain(e.chainId),t.saveLastViewChainId())}},e.chainName,e.embeded||t.current.chainId===e.chainId?null:i.a.createElement("div",{className:O.a.removeBtn},i.a.createElement("i",{className:"fas fa-times-circle",onClick:i=>A(void 0,void 0,void 0,(function*(){i.preventDefault(),i.stopPropagation(),(yield r.confirm({paragraph:n.formatMessage({id:"chain.remove.confirm.paragraph"},{chainName:e.chainName})}))&&(yield t.removeChainInfo(e.chainId))}))})))}),I=Object(v.a)(()=>{const{chainStore:e}=Object(w.b)(),t=e.chainInfos.filter(e=>!e.beta),n=e.chainInfos.filter(e=>e.beta);return i.a.createElement("div",{className:O.a.chainListContainer},t.map(e=>i.a.createElement(M,{key:e.chainId,chainInfo:e})),n.length>0?i.a.createElement("div",{style:{display:"flex",alignItems:"center"}},i.a.createElement("hr",{className:"my-3",style:{flex:1,borderTop:"1px solid rgba(255, 255, 255)"}}),i.a.createElement("div",{style:{fontSize:"14px",color:"rgba(255, 255, 255)",margin:"0 8px"}},"Beta support"),i.a.createElement("hr",{className:"my-3",style:{flex:1,borderTop:"1px solid rgba(255, 255, 255)"}})):null,n.map(e=>i.a.createElement(M,{key:e.chainId,chainInfo:e})))}),P=Object(v.a)(({showChainName:e,canChangeChainInfo:t,alternativeTitle:n,menuRenderer:r,rightRenderer:a,isMenuOpen:s,onBackButton:c})=>{const{chainStore:l}=Object(w.b)(),f=u(),d=t&&l.chainInfos.length>1&&null==n;return i.a.createElement(g,{left:i.a.createElement("div",{className:k.a.menuContainer},r?i.a.createElement(i.a.Fragment,null,i.a.createElement(p,{isOpen:s},r),i.a.createElement(o.b.div,{className:k.a["menu-img"],style:{zIndex:901},animate:s?"open":"closed",onClick:f.toggle},i.a.createElement(m,null))):null,c?i.a.createElement("div",{className:k.a["menu-img"],onClick:()=>{c&&c()}},i.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},i.a.createElement("path",{fill:"transparent",strokeWidth:"2",stroke:"hsl(0, 0%, 18%)",strokeLinecap:"round",d:"M 6.5 10 L 13.5 3.5 M 6.5 10 L 13.5 16.5"}))):null),right:a},e||n?i.a.createElement(x.a,{trigger:d?"click":"static",tooltip:i.a.createElement(I,null)},i.a.createElement("div",{className:k.a.chainListContainer,style:{cursor:d?void 0:"default"}},i.a.createElement("div",{className:k.a.title},e?l.current.chainName:n),d?i.a.createElement("div",{className:k.a.titleIconContainer},i.a.createElement("svg",{className:k.a.titleIcon,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},i.a.createElement("path",{d:"M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"}))):null)):null)});var C=n(937),j=n.n(C);const D=e=>{const{children:t}=e,[n,o]=Object(r.useState)(!1),a={open:()=>{o(!0)},close:()=>{o(!1)},toggle:()=>{o(!n)}};return i.a.createElement(l,{value:a},i.a.createElement("div",{className:j.a.container,style:e.style},i.a.createElement(P,Object.assign({},e,{isMenuOpen:n})),i.a.createElement("div",{className:j.a.innerContainer},t)))}},function(e,t,n){var r=n(7).Buffer,i=n(397).Transform,o=n(66).StringDecoder;function a(e){i.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}n(4)(a,i),a.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=a},function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)i(n,r)&&(e[r]=n[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(r=0,t=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),i=0,t=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},a={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,o)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(r)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(332),t),i(n(128),t),i(n(333),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0,n(665);const s=n(43),c=n(52),l=o(n(666)),u=o(n(669)),f=o(n(678)),d=o(n(715)),p=o(n(730)),h=o(n(805)),m=o(n(808)),b=o(n(811)),y=o(n(814)),g=o(n(817));a(n(820),t),a(n(58),t),a(n(350),t),a(n(103),t),a(n(821),t),a(n(822),t),a(n(334),t),a(n(823),t),a(n(83),t),a(n(102),t),t.init=function(e,t,n,r,i,o){s.container.register(c.TYPES.ChainsEmbedChainInfos,{useValue:r}),s.container.register(c.TYPES.EventMsgRequester,{useValue:n}),s.container.register(c.TYPES.RNG,{useValue:o}),s.container.register(c.TYPES.ChainsStore,{useValue:t("chains")}),s.container.register(c.TYPES.InteractionStore,{useValue:t("interaction")}),s.container.register(c.TYPES.KeyRingStore,{useValue:t("keyring")}),s.container.register(c.TYPES.LedgerStore,{useValue:t("ledger")}),s.container.register(c.TYPES.PermissionStore,{useValue:t("permission")}),s.container.register(c.TYPES.PermissionServicePrivilegedOrigins,{useValue:i}),s.container.register(c.TYPES.PersistentMemoryStore,{useValue:t("persistent-memory")}),s.container.register(c.TYPES.SecretWasmStore,{useValue:t("secretwasm")}),s.container.register(c.TYPES.TokensStore,{useValue:t("tokens")}),s.container.register(c.TYPES.TxStore,{useValue:t("background-tx")}),s.container.register(c.TYPES.UpdaterStore,{useValue:t("updator")});const a=s.container.resolve(y.InteractionService);y.init(e,a);const v=s.container.resolve(l.PersistentMemoryService);l.init(e,v);const w=s.container.resolve(g.PermissionService);g.init(e,w);const _=s.container.resolve(m.ChainUpdaterService);m.init(e,_);const k=s.container.resolve(b.TokensService);b.init(e,k);const x=s.container.resolve(u.ChainsService);u.init(e,x);const S=s.container.resolve(f.LedgerService);f.init(e,S);const O=s.container.resolve(d.KeyRingService);d.init(e,O);const E=s.container.resolve(p.SecretWasmService);p.init(e,E);const T=s.container.resolve(h.BackgroundTxService);h.init(e,T)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return f}));var r=n(35);const i=new r.a("properties/5.0.6");function o(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}function a(e,t){for(let n=0;n<32;n++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function s(e,t){e&&"object"==typeof e||i.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(n=>{t[n]||i.throwArgumentError("invalid object key - "+n,"transaction:"+n,e)})}const c={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function l(e){if(function e(t){if(null==t||c[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;const n=Object.keys(t);for(let r=0;r<n.length;r++)if(!e(t[n[r]]))return!1;return!0}return i.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>u(e)));if("object"==typeof e){const t={};for(const n in e){const r=e[n];void 0!==r&&o(t,n,u(r))}return t}return i.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function u(e){return l(e)}class f{constructor(e){for(const t in e)this[t]=u(e[t])}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return f}));var r=n(36);const i=new r.a("properties/5.0.6");function o(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}function a(e,t){for(let n=0;n<32;n++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function s(e,t){e&&"object"==typeof e||i.throwArgumentError("invalid object","object",e),Object.keys(e).forEach(n=>{t[n]||i.throwArgumentError("invalid object key - "+n,"transaction:"+n,e)})}const c={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function l(e){if(function e(t){if(null==t||c[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;const n=Object.keys(t);for(let r=0;r<n.length;r++)if(!e(t[n[r]]))return!1;return!0}return i.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map(e=>u(e)));if("object"==typeof e){const t={};for(const n in e){const r=e[n];void 0!==r&&o(t,n,u(r))}return t}return i.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function u(e){return l(e)}class f{constructor(e){for(const t in e)this[t]=u(e[t])}}},function(e,t,n){"use strict";(function(t,r){var i=n(7).Buffer,o=t.crypto||t.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)o.getRandomValues(n.slice(a,a+65536));else o.getRandomValues(n);if("function"==typeof t)return r.nextTick((function(){t(null,n)}));return n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(12),n(13))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(910),t),i(n(916),t),i(n(917),t)},function(e,t,n){"use strict";(function(e){var r=t;function i(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;++i)void 0!==e[r[i]]&&n||(e[r[i]]=t[r[i]]);return e}function o(e){function t(e,n){if(!(this instanceof t))return new t(e,n);Object.defineProperty(this,"message",{get:function(){return e}}),Error.captureStackTrace?Error.captureStackTrace(this,t):Object.defineProperty(this,"stack",{value:(new Error).stack||""}),n&&i(this,n)}return(t.prototype=Object.create(Error.prototype)).constructor=t,Object.defineProperty(t.prototype,"name",{get:function(){return e}}),t.prototype.toString=function(){return this.name+": "+this.message},t}r.asPromise=n(429),r.base64=n(430),r.EventEmitter=n(431),r.float=n(432),r.inquire=n(433),r.utf8=n(434),r.pool=n(435),r.LongBits=n(436),r.isNode=Boolean(void 0!==e&&e&&e.process&&e.process.versions&&e.process.versions.node),r.global=r.isNode&&e||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,r.emptyArray=Object.freeze?Object.freeze([]):[],r.emptyObject=Object.freeze?Object.freeze({}):{},r.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},r.isString=function(e){return"string"==typeof e||e instanceof String},r.isObject=function(e){return e&&"object"==typeof e},r.isset=r.isSet=function(e,t){var n=e[t];return!(null==n||!e.hasOwnProperty(t))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=i,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=o,r.ProtocolError=o("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=1;return function(){for(var e=Object.keys(this),n=e.length-1;n>-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n<e.length;++n)e[n]!==t&&delete this[e[n]]}},r.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},r._configure=function(){var e=r.Buffer;e?(r._Buffer_from=e.from!==Uint8Array.from&&e.from||function(t,n){return new e(t,n)},r._Buffer_allocUnsafe=e.allocUnsafe||function(t){return new e(t)}):r._Buffer_from=r._Buffer_allocUnsafe=null}}).call(this,n(12))},function(e,t,n){"use strict";var r=n(119),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=Object.create(n(95));o.inherits=n(4);var a=n(243),s=n(154);o.inherits(f,a);for(var c=i(s.prototype),l=0;l<c.length;l++){var u=c[l];f.prototype[u]||(f.prototype[u]=s.prototype[u])}function f(e){if(!(this instanceof f))return new f(e);a.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",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.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)}}),f.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){"use strict";var r=n(7).Buffer,i=r.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}};function o(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&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=f,t=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n: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 c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=a(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=a(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=a(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){var r,i,o,a,s,c,l,u;e.exports=(u=n(9),n(171),n(172),i=(r=u).lib,o=i.Base,a=i.WordArray,s=r.algo,c=s.MD5,l=s.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,i=r.hasher.create(),o=a.create(),s=o.words,c=r.keySize,l=r.iterations;s.length<c;){n&&i.update(n),n=i.update(e).finalize(t),i.reset();for(var u=1;u<l;u++)n=i.finalize(n),i.reset();o.concat(n)}return o.sigBytes=4*c,o}}),r.EvpKDF=function(e,t,n){return l.create(n).compute(e,t)},u.EvpKDF)},function(e,t,n){e.exports=n(593)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const r=n(54),i=n(97),o=n(62),a=n(297);let s=a._default;const c="A wordlist is required but a default could not be found.\nPlease explicitly pass a 2048 word array explicitly.";function l(e){return(e||"").normalize("NFKD")}function u(e,t,n){for(;e.length<n;)e=t+e;return e}function f(e){return parseInt(e,2)}function d(e){return e.map(e=>u(e.toString(2),"0",8)).join("")}function p(e){const t=8*e.length/32,n=r("sha256").update(e).digest();return d(Array.from(n)).slice(0,t)}function h(e){return"mnemonic"+(e||"")}function m(t,n){if(!(n=n||s))throw new Error(c);const r=l(t).split(" ");if(r.length%3!=0)throw new Error("Invalid mnemonic");const i=r.map(e=>{const t=n.indexOf(e);if(-1===t)throw new Error("Invalid mnemonic");return u(t.toString(2),"0",11)}).join(""),o=32*Math.floor(i.length/33),a=i.slice(0,o),d=i.slice(o),h=a.match(/(.{1,8})/g).map(f);if(h.length<16)throw new Error("Invalid entropy");if(h.length>32)throw new Error("Invalid entropy");if(h.length%4!=0)throw new Error("Invalid entropy");const m=e.from(h);if(p(m)!==d)throw new Error("Invalid mnemonic checksum");return m.toString("hex")}function b(t,n){if(e.isBuffer(t)||(t=e.from(t,"hex")),!(n=n||s))throw new Error(c);if(t.length<16)throw new TypeError("Invalid entropy");if(t.length>32)throw new TypeError("Invalid entropy");if(t.length%4!=0)throw new TypeError("Invalid entropy");const r=(d(Array.from(t))+p(t)).match(/(.{1,11})/g).map(e=>{const t=f(e);return n[t]});return"あいこくしん"===n[0]?r.join(" "):r.join(" ")}t.mnemonicToSeedSync=function(t,n){const r=e.from(l(t),"utf8"),o=e.from(h(l(n)),"utf8");return i.pbkdf2Sync(r,o,2048,64,"sha512")},t.mnemonicToSeed=function(t,n){return Promise.resolve().then(()=>function(e,t,n,r,o){return Promise.resolve().then(()=>new Promise((a,s)=>{i.pbkdf2(e,t,n,r,o,(e,t)=>e?s(e):a(t))}))}(e.from(l(t),"utf8"),e.from(h(l(n)),"utf8"),2048,64,"sha512"))},t.mnemonicToEntropy=m,t.entropyToMnemonic=b,t.generateMnemonic=function(e,t,n){if((e=e||128)%32!=0)throw new TypeError("Invalid entropy");return b((t=t||o)(e/8),n)},t.validateMnemonic=function(e,t){try{m(e,t)}catch(e){return!1}return!0},t.setDefaultWordlist=function(e){const t=a.wordlists[e];if(!t)throw new Error('Could not find wordlist for language "'+e+'"');s=t},t.getDefaultWordlist=function(){if(!s)throw new Error("No Default Wordlist set");return Object.keys(a.wordlists).filter(e=>"JA"!==e&&"EN"!==e&&a.wordlists[e].every((e,t)=>e===s[t]))[0]};var y=n(297);t.wordlists=y.wordlists}).call(this,n(2).Buffer)},function(e,t,n){var r=t;r.utils=n(49),r.common=n(96),r.sha=n(452),r.ripemd=n(456),r.hmac=n(457),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},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,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(62),t.createHash=t.Hash=n(54),t.createHmac=t.Hmac=n(120);var r=n(475),i=Object.keys(r),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return o};var a=n(97);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var s=n(477);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var c=n(492);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var l=n(496);t.createSign=l.createSign,t.Sign=l.Sign,t.createVerify=l.createVerify,t.Verify=l.Verify,t.createECDH=n(531);var u=n(532);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var f=n(535);t.randomFill=f.randomFill,t.randomFillSync=f.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,n){"use strict";var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a,s;if("string"==typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var c=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=l;var i=n(251),o=n(255);n(4)(l,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var c=a[s];l.prototype[c]||(l.prototype[c]=o.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||t.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,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)}})}).call(this,n(13))},function(e,t,n){"use strict";var r=n(2).Buffer,i=n(4),o=n(250),a=new Array(16),s=[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],c=[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],l=[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],u=[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],f=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function p(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function h(e,t){return e<<t|e>>>32-t}function m(e,t,n,r,i,o,a,s){return h(e+(t^n^r)+o+a|0,s)+i|0}function b(e,t,n,r,i,o,a,s){return h(e+(t&n|~t&r)+o+a|0,s)+i|0}function y(e,t,n,r,i,o,a,s){return h(e+((t|~n)^r)+o+a|0,s)+i|0}function g(e,t,n,r,i,o,a,s){return h(e+(t&r|n&~r)+o+a|0,s)+i|0}function v(e,t,n,r,i,o,a,s){return h(e+(t^(n|~r))+o+a|0,s)+i|0}i(p,o),p.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,p=0|this._e,w=0|this._a,_=0|this._b,k=0|this._c,x=0|this._d,S=0|this._e,O=0;O<80;O+=1){var E,T;O<16?(E=m(n,r,i,o,p,e[s[O]],f[0],l[O]),T=v(w,_,k,x,S,e[c[O]],d[0],u[O])):O<32?(E=b(n,r,i,o,p,e[s[O]],f[1],l[O]),T=g(w,_,k,x,S,e[c[O]],d[1],u[O])):O<48?(E=y(n,r,i,o,p,e[s[O]],f[2],l[O]),T=y(w,_,k,x,S,e[c[O]],d[2],u[O])):O<64?(E=g(n,r,i,o,p,e[s[O]],f[3],l[O]),T=b(w,_,k,x,S,e[c[O]],d[3],u[O])):(E=v(n,r,i,o,p,e[s[O]],f[4],l[O]),T=m(w,_,k,x,S,e[c[O]],d[4],u[O])),n=p,p=o,o=h(i,10),i=r,r=E,w=S,S=x,x=h(k,10),k=_,_=T}var A=this._b+i+x|0;this._b=this._c+o+S|0,this._c=this._d+p+w|0,this._d=this._e+n+_|0,this._e=this._a+r+k|0,this._a=A},p.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=r.alloc?r.alloc(20):new r(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=p},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(466),t.sha1=n(467),t.sha224=n(468),t.sha256=n(257),t.sha384=n(469),t.sha512=n(258)},function(e,t,n){var r=n(7).Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s<o;){for(var c=a%i,l=Math.min(o-s,i-c),u=0;u<l;u++)n[c+u]=e[s+u];s+=l,(a+=l)%i==0&&this._update(n)}return this._len+=o,this},i.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 n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,n){"use strict";var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a,s;if("string"==typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var c=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=l;var i=n(274),o=n(278);n(4)(l,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var c=a[s];l.prototype[c]||(l.prototype[c]=o.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);i.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",u)))}function u(){this._writableState.ended||t.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,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)}})}).call(this,n(13))},function(e,t,n){var r,i,o;e.exports=(o=n(9),i=(r=o).lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o<n.length;o++)r[n.charCodeAt(o)]=o}var a=n.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return function(e,t,n){for(var r=[],o=0,a=0;a<t;a++)if(a%4){var s=n[e.charCodeAt(a-1)]<<a%4*2,c=n[e.charCodeAt(a)]>>>6-a%4*2,l=s|c;r[o>>>2]|=l<<24-o%4*8,o++}return i.create(r,o)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},o.enc.Base64)},function(e,t,n){var r;e.exports=(r=n(9),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],b=e[t+5],y=e[t+6],g=e[t+7],v=e[t+8],w=e[t+9],_=e[t+10],k=e[t+11],x=e[t+12],S=e[t+13],O=e[t+14],E=e[t+15],T=o[0],A=o[1],M=o[2],I=o[3];T=l(T,A,M,I,a,7,s[0]),I=l(I,T,A,M,c,12,s[1]),M=l(M,I,T,A,p,17,s[2]),A=l(A,M,I,T,h,22,s[3]),T=l(T,A,M,I,m,7,s[4]),I=l(I,T,A,M,b,12,s[5]),M=l(M,I,T,A,y,17,s[6]),A=l(A,M,I,T,g,22,s[7]),T=l(T,A,M,I,v,7,s[8]),I=l(I,T,A,M,w,12,s[9]),M=l(M,I,T,A,_,17,s[10]),A=l(A,M,I,T,k,22,s[11]),T=l(T,A,M,I,x,7,s[12]),I=l(I,T,A,M,S,12,s[13]),M=l(M,I,T,A,O,17,s[14]),T=u(T,A=l(A,M,I,T,E,22,s[15]),M,I,c,5,s[16]),I=u(I,T,A,M,y,9,s[17]),M=u(M,I,T,A,k,14,s[18]),A=u(A,M,I,T,a,20,s[19]),T=u(T,A,M,I,b,5,s[20]),I=u(I,T,A,M,_,9,s[21]),M=u(M,I,T,A,E,14,s[22]),A=u(A,M,I,T,m,20,s[23]),T=u(T,A,M,I,w,5,s[24]),I=u(I,T,A,M,O,9,s[25]),M=u(M,I,T,A,h,14,s[26]),A=u(A,M,I,T,v,20,s[27]),T=u(T,A,M,I,S,5,s[28]),I=u(I,T,A,M,p,9,s[29]),M=u(M,I,T,A,g,14,s[30]),T=f(T,A=u(A,M,I,T,x,20,s[31]),M,I,b,4,s[32]),I=f(I,T,A,M,v,11,s[33]),M=f(M,I,T,A,k,16,s[34]),A=f(A,M,I,T,O,23,s[35]),T=f(T,A,M,I,c,4,s[36]),I=f(I,T,A,M,m,11,s[37]),M=f(M,I,T,A,g,16,s[38]),A=f(A,M,I,T,_,23,s[39]),T=f(T,A,M,I,S,4,s[40]),I=f(I,T,A,M,a,11,s[41]),M=f(M,I,T,A,h,16,s[42]),A=f(A,M,I,T,y,23,s[43]),T=f(T,A,M,I,w,4,s[44]),I=f(I,T,A,M,x,11,s[45]),M=f(M,I,T,A,E,16,s[46]),T=d(T,A=f(A,M,I,T,p,23,s[47]),M,I,a,6,s[48]),I=d(I,T,A,M,g,10,s[49]),M=d(M,I,T,A,O,15,s[50]),A=d(A,M,I,T,b,21,s[51]),T=d(T,A,M,I,x,6,s[52]),I=d(I,T,A,M,h,10,s[53]),M=d(M,I,T,A,_,15,s[54]),A=d(A,M,I,T,c,21,s[55]),T=d(T,A,M,I,v,6,s[56]),I=d(I,T,A,M,E,10,s[57]),M=d(M,I,T,A,y,15,s[58]),A=d(A,M,I,T,S,21,s[59]),T=d(T,A,M,I,m,6,s[60]),I=d(I,T,A,M,k,10,s[61]),M=d(M,I,T,A,p,15,s[62]),A=d(A,M,I,T,w,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+A|0,o[2]=o[2]+M|0,o[3]=o[3]+I|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function u(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),r.MD5)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Uint32=t.Int53=t.Decimal=void 0;var r=n(627);Object.defineProperty(t,"Decimal",{enumerable:!0,get:function(){return r.Decimal}});var i=n(628);Object.defineProperty(t,"Int53",{enumerable:!0,get:function(){return i.Int53}}),Object.defineProperty(t,"Uint32",{enumerable:!0,get:function(){return i.Uint32}}),Object.defineProperty(t,"Uint53",{enumerable:!0,get:function(){return i.Uint53}}),Object.defineProperty(t,"Uint64",{enumerable:!0,get:function(){return i.Uint64}})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(338),t),i(n(180),t),i(n(675),t),i(n(339),t)},function(e,t,n){const{MAX_SAFE_COMPONENT_LENGTH:r}=n(131),i=n(132),o=(t=e.exports={}).re=[],a=t.src=[],s=t.t={};let c=0;const l=(e,t,n)=>{const r=c++;i(r,t),s[e]=r,a[r]=t,o[r]=new RegExp(t,n?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})\\.(${a[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})\\.(${a[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${a[s.NUMERICIDENTIFIER]}|${a[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${a[s.NUMERICIDENTIFIERLOOSE]}|${a[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${a[s.PRERELEASEIDENTIFIER]}(?:\\.${a[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${a[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${a[s.BUILDIDENTIFIER]}(?:\\.${a[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${a[s.MAINVERSION]}${a[s.PRERELEASE]}?${a[s.BUILD]}?`),l("FULL",`^${a[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${a[s.MAINVERSIONLOOSE]}${a[s.PRERELEASELOOSE]}?${a[s.BUILD]}?`),l("LOOSE",`^${a[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",a[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),l("XRANGEIDENTIFIER",a[s.NUMERICIDENTIFIER]+"|x|X|\\*"),l("XRANGEPLAIN",`[v=\\s]*(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:\\.(${a[s.XRANGEIDENTIFIER]})(?:${a[s.PRERELEASE]})?${a[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[s.XRANGEIDENTIFIERLOOSE]})(?:${a[s.PRERELEASELOOSE]})?${a[s.BUILD]}?)?)?`),l("XRANGE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${a[s.GTLT]}\\s*${a[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),l("COERCERTL",a[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${a[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${a[s.LONETILDE]}${a[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${a[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${a[s.LONECARET]}${a[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${a[s.LONECARET]}${a[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${a[s.GTLT]}\\s*(${a[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${a[s.GTLT]}\\s*(${a[s.LOOSEPLAIN]}|${a[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${a[s.XRANGEPLAIN]})\\s+-\\s+(${a[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${a[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0.0.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")},function(e,t,n){const{MAX_LENGTH:r}=n(131),{re:i,t:o}=n(84),a=n(24),s=n(133);e.exports=(e,t)=>{if(t=s(t),e instanceof a)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?i[o.LOOSE]:i[o.FULL]).test(e))return null;try{return new a(e,t)}catch(e){return null}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));let r=0;const i=[],o=(e,t,n)=>{const o={type:e,id:String(++r),date:new Date};t&&(o.message=t),n&&(o.data=n),function(e){for(let t=0;t<i.length;t++)try{i[t](e)}catch(e){console.error(e)}}(o)},a=e=>(i.push(e),()=>{const t=i.indexOf(e);-1!==t&&(i[t]=i[i.length-1],i.pop())});"undefined"!=typeof window&&(window.__ledgerLogsListen=a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n.n(r),o=n(10),a=n.n(o),s=n(866),c=n.n(s);const l=e=>{const{title:t,paragraph:n,subParagraph:r,icons:o}=e,s=Object.assign({},e);return delete s.paragraph,delete s.subParagraph,delete s.icons,i.a.createElement("div",Object.assign({className:a()(c.a.container,{[c.a.withSubParagraph]:null!=r})},s),i.a.createElement("div",{className:c.a.innerContainer},i.a.createElement("h1",null,t),n?i.a.createElement("p",null,n):null,r?i.a.createElement("p",null,r):null),i.a.createElement("div",{style:{flex:1}}),o?o.map((e,t)=>i.a.createElement("div",{className:c.a.iconContainer,key:t.toString()},i.a.createElement("div",{style:{flex:1}}),e,i.a.createElement("div",{style:{flex:1}}))):null)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c}));var r=n(44);const i=[{vendorId:r.b}];async function o(){return await navigator.usb.requestDevice({filters:i})}async function a(){return(await navigator.usb.getDevices()).filter(e=>e.vendorId===r.b)}async function s(){const e=await a();return e.length>0?e[0]:o()}const c=()=>Promise.resolve(!!navigator&&!!navigator.usb&&"function"==typeof navigator.usb.getDevices)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableChainQueryMap=t.ObservableChainQuery=void 0;const o=n(209),a=i(n(68)),s=n(5),c=n(209);class l extends o.ObservableQuery{constructor(e,t,n,r){const i=n.getChain(t);super(e,a.default.create(Object.assign({baseURL:i.rest},i.restConfig)),r),this._chainId=t,this.chainGetter=n}get instance(){const e=this.chainGetter.getChain(this.chainId);return a.default.create(Object.assign({baseURL:e.rest},e.restConfig))}get chainId(){return this._chainId}}r([s.override],l.prototype,"instance",null),t.ObservableChainQuery=l;class u extends c.HasMapStore{constructor(e,t,n,r){super(r),this.kvStore=e,this.chainId=t,this.chainGetter=n}}t.ObservableChainQueryMap=u},function(e,t,n){"use strict";(function(e){function r(e){return!(!e||"function"!=typeof e.then)}function i(e){return e||(e=0),new Promise((function(t){return setTimeout(t,e)}))}function o(e,t){return Math.floor(Math.random()*(t-e+1)+e)}function a(){return Math.random().toString(36).substring(2)}n.d(t,"b",(function(){return r})),n.d(t,"f",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){return u}));var s=0,c=0;function l(){var e=(new Date).getTime();return e===s?1e3*e+ ++c:(s=e,c=0,1e3*e)}var u="[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}).call(this,n(13))},function(e,t,n){"use strict";e.exports=n(1333)},function(e,t,n){var r=n(37),i=n(1336);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(982),t),i(n(209),t),i(n(1271),t),i(n(1273),t),i(n(1309),t),i(n(1310),t),i(n(1319),t)},function(e,t,n){"use strict";for(var r="qpzry9x8gf2tvdw0s3jn54khce6mua7l",i={},o=0;o<r.length;o++){var a=r.charAt(o);if(void 0!==i[a])throw new TypeError(a+" is ambiguous");i[a]=o}function s(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function c(e){for(var t=1,n=0;n<e.length;++n){var r=e.charCodeAt(n);if(r<33||r>126)return"Invalid prefix ("+e+")";t=s(t)^r>>5}for(t=s(t),n=0;n<e.length;++n){var i=e.charCodeAt(n);t=s(t)^31&i}return t}function l(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),r=e.toUpperCase();if(e!==n&&e!==r)return"Mixed-case string "+e;var o=(e=n).lastIndexOf("1");if(-1===o)return"No separator character for "+e;if(0===o)return"Missing prefix for "+e;var a=e.slice(0,o),l=e.slice(o+1);if(l.length<6)return"Data too short";var u=c(a);if("string"==typeof u)return u;for(var f=[],d=0;d<l.length;++d){var p=l.charAt(d),h=i[p];if(void 0===h)return"Unknown character "+p;u=s(u)^h,d+6>=l.length||f.push(h)}return 1!==u?"Invalid checksum for "+e:{prefix:a,words:f}}function u(e,t,n,r){for(var i=0,o=0,a=(1<<n)-1,s=[],c=0;c<e.length;++c)for(i=i<<t|e[c],o+=t;o>=n;)o-=n,s.push(i>>o&a);if(r)o>0&&s.push(i<<n-o&a);else{if(o>=t)return"Excess padding";if(i<<n-o&a)return"Non-zero padding"}return s}e.exports={decodeUnsafe:function(){var e=l.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=l.apply(null,arguments);if("object"==typeof t)return t;throw new Error(t)},encode:function(e,t,n){if(n=n||90,e.length+7+t.length>n)throw new TypeError("Exceeds length limit");var i=c(e=e.toLowerCase());if("string"==typeof i)throw new Error(i);for(var o=e+"1",a=0;a<t.length;++a){var l=t[a];if(l>>5!=0)throw new Error("Non 5-bit word");i=s(i)^l,o+=r.charAt(l)}for(a=0;a<6;++a)i=s(i);for(i^=1,a=0;a<6;++a){o+=r.charAt(i>>5*(5-a)&31)}return o},toWordsUnsafe:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(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]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(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(this,n(2).Buffer)},function(e,t,n){"use strict";var r=n(49),i=n(32);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(e,t,n){t.pbkdf2=n(476),t.pbkdf2Sync=n(263)},function(e,t,n){(function(t){e.exports=function(e,n){for(var r=Math.min(e.length,n.length),i=new t(r),o=0;o<r;++o)i[o]=e[o]^n[o];return i}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";const r=n(4),i=n(167).Reporter,o=n(165).Buffer;function a(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return s.isEncoderBuffer(e)||(e=new s(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=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(a,i),t.DecoderBuffer=a,a.isDecoderBuffer=function(e){if(e instanceof a)return!0;return"object"==typeof e&&o.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){const t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new a(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=s,s.isEncoderBuffer=function(e){if(e instanceof s)return!0;return"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},s.prototype.join=function(e,t){return e||(e=o.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isUint8Array=t.isNonNullObject=t.sleep=t.assertDefinedAndNotNull=t.assertDefined=t.assert=t.arrayContentEquals=void 0;var r=n(610);Object.defineProperty(t,"arrayContentEquals",{enumerable:!0,get:function(){return r.arrayContentEquals}});var i=n(611);Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return i.assert}}),Object.defineProperty(t,"assertDefined",{enumerable:!0,get:function(){return i.assertDefined}}),Object.defineProperty(t,"assertDefinedAndNotNull",{enumerable:!0,get:function(){return i.assertDefinedAndNotNull}});var o=n(612);Object.defineProperty(t,"sleep",{enumerable:!0,get:function(){return o.sleep}});var a=n(613);Object.defineProperty(t,"isNonNullObject",{enumerable:!0,get:function(){return a.isNonNullObject}}),Object.defineProperty(t,"isUint8Array",{enumerable:!0,get:function(){return a.isUint8Array}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeSignDoc=t.makeSignDoc=t.sortedJsonStringify=void 0;const r=n(39),i=n(82);function o(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return e.map(o);const t=Object.keys(e).sort(),n={};return t.forEach(t=>{n[t]=o(e[t])}),n}function a(e){return JSON.stringify(o(e))}t.sortedJsonStringify=a,t.makeSignDoc=function(e,t,n,r,o,a){return{chain_id:n,account_number:i.Uint53.fromString(o.toString()).toString(),sequence:i.Uint53.fromString(a.toString()).toString(),fee:t,msgs:e,memo:r||""}},t.serializeSignDoc=function(e){return r.toUtf8(a(e))}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(351),t),i(n(352),t),i(n(192),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(349),t),i(n(191),t),i(n(718),t),i(n(190),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42),{fromBase64:i,fromHex:o}=r.Encoding;t.isStdTx=function(e){const{memo:t,msg:n,fee:r,signatures:i}=e;return"string"==typeof t&&Array.isArray(n)&&"object"==typeof r&&Array.isArray(i)},t.isMsgSend=function(e){return"cosmos-sdk/MsgSend"===e.type},t.isMsgStoreCode=function(e){return"wasm/MsgStoreCode"===e.type},t.isMsgInstantiateContract=function(e){return"wasm/MsgInstantiateContract"===e.type},t.isMsgExecuteContract=function(e){return"wasm/MsgExecuteContract"===e.type},t.extractContractMsg=function(e){return"wasm/MsgExecuteContract"===e.type?r.Encoding.fromBase64(e.value.msg):r.Encoding.fromBase64(e.value.init_msg)},t.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519"},t.pubkeyTypes=[t.pubkeyType.secp256k1,t.pubkeyType.ed25519,t.pubkeyType.sr25519],t.parseWasmData=function({key:e,val:t}){return{key:o(e),val:i(t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(738);t.Bip39=r.Bip39;var i=n(364);t.EnglishMnemonic=i.EnglishMnemonic;var o=n(365);t.Hmac=o.Hmac;var a=n(754);t.Keccak256=a.Keccak256;var s=n(755);t.Xchacha20poly1305Ietf=s.Xchacha20poly1305Ietf,t.Argon2id=s.Argon2id,t.Ed25519=s.Ed25519,t.Ed25519Keypair=s.Ed25519Keypair;var c=n(756);t.Random=c.Random;var l=n(757);t.Ripemd160=l.Ripemd160;var u=n(758);t.Secp256k1=u.Secp256k1;var f=n(366);t.ExtendedSecp256k1Signature=f.ExtendedSecp256k1Signature,t.Secp256k1Signature=f.Secp256k1Signature;var d=n(367);t.Sha1=d.Sha1,t.Sha256=d.Sha256,t.Sha512=d.Sha512;var p=n(759);t.Slip10=p.Slip10,t.Slip10Curve=p.Slip10Curve,t.Slip10RawIndex=p.Slip10RawIndex,t.slip10CurveFromString=p.slip10CurveFromString},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(199),i=n(200);class o{constructor(){this.data=new Uint8Array(o.SIZE)}clear(){i.wipe(this.data)}clone(){const e=new o;return e.copy(this),e}copy(e){this.data.set(e.data)}dbl(){let e=0;for(let t=o.SIZE-1;t>=0;t--){const n=this.data[t]>>>7&255;this.data[t]=this.data[t]<<1|e,e=n}this.data[o.SIZE-1]^=r.select(e,o.R,0),e=0}}o.SIZE=16,o.R=135,t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONUint8Array=void 0;const r=n(2);class i{static parse(e){return JSON.parse(e,(e,t)=>t&&"string"==typeof t&&t.startsWith("__uint8array__")?new Uint8Array(r.Buffer.from(t.replace("__uint8array__",""),"hex")):t)}static stringify(e){return JSON.stringify(e,(e,t)=>t&&(t instanceof Uint8Array||"object"==typeof t&&"type"in t&&"data"in t&&"Buffer"===t.type&&Array.isArray(t.data))?"__uint8array__"+r.Buffer.from(t).toString("hex"):t)}static wrap(e){if(void 0!==e)return JSON.parse(i.stringify(e))}static unwrap(e){if(void 0!==e)return i.parse(JSON.stringify(e))}}t.JSONUint8Array=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(547),t),i(n(567),t),i(n(592),t)},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return w})),n.d(t,"a",(function(){return _}));var r=n(0),i=n.n(r),o=(n(1471),n(217)),a=n(1560);const s=({type:e,content:t,duration:n,canDelete:o,onDelete:s})=>(Object(r.useEffect)(()=>{const e=setTimeout(()=>{s()},1e3*n);return()=>clearTimeout(e)},[n,s]),i.a.createElement(a.a,{className:"default"===e?"alert-default":void 0,color:"default"!==e?e:void 0,fade:!1,toggle:o?s:void 0},i.a.createElement("span",{className:"alert-inner--text"},t))),c=({id:e,properties:t,initial:n,variants:r})=>{const a=w();return i.a.createElement(o.b.ul,{id:e,style:{listStyle:"none"}},i.a.createElement(o.a,null,t.map(e=>i.a.createElement(o.b.li,{initial:n,variants:r,animate:"visible",transition:{duration:e.transition.duration},exit:"hidden",key:e.id},i.a.createElement(s,Object.assign({},e,{onDelete:()=>{a.remove(e.id)}}))))))};var l=n(5),u=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};const f=i.a.createContext(null),d=({children:e})=>i.a.createElement(f.Provider,{value:new p},e);class p{constructor(){this.topLeftProperties=[],this.topCenterProperties=[],this.topRightProperties=[],Object(l.makeObservable)(this)}setTopLeftProperties(e){this.topLeftProperties=e}setTopCenterProperties(e){this.topCenterProperties=e}setTopRightProperties(e){this.topRightProperties=e}pushTopLeftProperty(e){this.topLeftProperties.push(e)}pushTopCenterProperty(e){this.topCenterProperties.push(e)}pushTopRightProperty(e){this.topRightProperties.push(e)}removeTopLeftProperty(e){const t=this.topLeftProperties.find(t=>t.id===e);t&&this.topLeftProperties.remove(t)}removeTopCenterProperty(e){const t=this.topCenterProperties.find(t=>t.id===e);t&&this.topCenterProperties.remove(t)}removeTopRightProperty(e){const t=this.topRightProperties.find(t=>t.id===e);t&&this.topRightProperties.remove(t)}}u([l.observable],p.prototype,"topLeftProperties",void 0),u([l.observable],p.prototype,"topCenterProperties",void 0),u([l.observable],p.prototype,"topRightProperties",void 0),u([l.action],p.prototype,"setTopLeftProperties",null),u([l.action],p.prototype,"setTopCenterProperties",null),u([l.action],p.prototype,"setTopRightProperties",null),u([l.action],p.prototype,"pushTopLeftProperty",null),u([l.action],p.prototype,"pushTopCenterProperty",null),u([l.action],p.prototype,"pushTopRightProperty",null),u([l.action],p.prototype,"removeTopLeftProperty",null),u([l.action],p.prototype,"removeTopCenterProperty",null),u([l.action],p.prototype,"removeTopRightProperty",null);var h=n(14),m=n(2);const b={visible:{x:["-100%","0%"],opacity:1},hidden:{x:["0%","-100%"],opacity:0}},y={visible:{y:["-100%","0%"],opacity:1},hidden:{y:["0%","-100%"],opacity:0}},g={visible:{x:["100%","0%"],opacity:1},hidden:{x:["0%","100%"],opacity:0}},v=i.a.createContext(void 0),w=()=>{const e=i.a.useContext(v);if(!e)throw new Error("You have forgot to use StoreProvider");return e},_=Object(h.a)(e=>{const{children:t}=e,n=(()=>{const e=i.a.useContext(f);if(!e)throw new Error("You have forgot to use StoreProvider");return e})();return i.a.createElement(v.Provider,{value:{push:e=>{if(!e.id){const t=new Uint8Array(8);crypto.getRandomValues(t),e.id=m.Buffer.from(t).toString("hex")}if("top-left"===e.placement)n.pushTopLeftProperty(e);else if("top-center"===e.placement)n.pushTopCenterProperty(e);else{if("top-right"!==e.placement)throw new Error("Invalid placement for notification");n.pushTopRightProperty(e)}return e.id},remove:e=>{n.removeTopLeftProperty(e),n.removeTopCenterProperty(e),n.removeTopRightProperty(e)}}},t,i.a.createElement(c,{id:"notification-top-left",properties:n.topLeftProperties.slice().reverse(),initial:{x:"-100%",opacity:0},variants:b}),i.a.createElement(c,{id:"notification-top-center",properties:n.topCenterProperties.slice().reverse(),initial:{y:"-100%",opacity:0},variants:y}),i.a.createElement(c,{id:"notification-top-right",properties:n.topRightProperties.slice().reverse(),initial:{x:"100%",opacity:0},variants:g}))})},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Dec=void 0;const i=r(n(233)),o=n(116);class a{constructor(e,t=0){if("string"==typeof e){if(0===e.length)throw new Error("empty string");if(!/^(-?\d+\.\d+)$|^(-?\d+)$/.test(e))throw new Error("invalid decimal: "+e);e.indexOf(".")>=0&&(t=e.length-e.indexOf(".")-1,e=e.replace(".","")),this.int=i.default(e)}else"number"==typeof e?this.int=i.default(e):e instanceof o.Int?this.int=i.default(e.toString()):this.int=i.default(e);this.int=this.int.multiply(a.calcPrecisionMultiplier(i.default(t)))}static calcPrecisionMultiplier(e){if(e.lt(i.default(0)))throw new Error("Invalid prec");if(e.gt(a.precision))throw new Error("Too much precision");if(a.precisionMultipliers[e.toString()])return a.precisionMultipliers[e.toString()];const t=a.precision.minus(e),n=i.default(10).pow(t);return a.precisionMultipliers[e.toString()]=n,n}isZero(){return this.int.eq(i.default(0))}isNegative(){return this.int.isNegative()}isPositive(){return this.int.isPositive()}equals(e){return this.int.eq(e.int)}gt(e){return this.int.gt(e.int)}gte(e){return this.int.geq(e.int)}lt(e){return this.int.lt(e.int)}lte(e){return this.int.leq(e.int)}neg(){return new a(this.int.negate(),a.precision.toJSNumber())}abs(){return new a(this.int.abs(),a.precision.toJSNumber())}add(e){return new a(this.int.add(e.int),a.precision.toJSNumber())}sub(e){return new a(this.int.subtract(e.int),a.precision.toJSNumber())}mul(e){return new a(this.mulRaw(e).chopPrecisionAndRound(),a.precision.toJSNumber())}mulTruncate(e){return new a(this.mulRaw(e).chopPrecisionAndTruncate(),a.precision.toJSNumber())}mulRaw(e){return new a(this.int.multiply(e.int),a.precision.toJSNumber())}quo(e){return new a(this.quoRaw(e).chopPrecisionAndRound(),a.precision.toJSNumber())}quoTruncate(e){return new a(this.quoRaw(e).chopPrecisionAndTruncate(),a.precision.toJSNumber())}quoRoundUp(e){return new a(this.quoRaw(e).chopPrecisionAndRoundUp(),a.precision.toJSNumber())}quoRaw(e){const t=a.calcPrecisionMultiplier(i.default(0)),n=this.int.multiply(t).multiply(t);return new a(n.divide(e.int),a.precision.toJSNumber())}isInteger(){const e=a.calcPrecisionMultiplier(i.default(0));return this.int.remainder(e).equals(i.default(0))}chopPrecisionAndRound(){if(this.isNegative()){return this.abs().chopPrecisionAndRound().negate()}const e=a.calcPrecisionMultiplier(i.default(0)),t=e.divide(i.default(2)),{quotient:n,remainder:r}=this.int.divmod(e);return r.equals(i.default(0))||r.lt(t)?n:r.gt(t)?n.add(i.default(1)):n.divide(i.default(2)).equals(i.default(0))?n:n.add(i.default(1))}chopPrecisionAndRoundUp(){if(this.isNegative()){return this.abs().chopPrecisionAndTruncate().negate()}const e=a.calcPrecisionMultiplier(i.default(0)),{quotient:t,remainder:n}=this.int.divmod(e);return n.equals(i.default(0))?t:t.add(i.default(1))}chopPrecisionAndTruncate(){const e=a.calcPrecisionMultiplier(i.default(0));return this.int.divide(e)}toString(e=a.precision.toJSNumber(),t=!1){const n=a.calcPrecisionMultiplier(i.default(0)),r=this.int.abs(),{quotient:o,remainder:s}=r.divmod(n);let c=s.toString(10);for(let e=0,t=c.length;e<a.precision.toJSNumber()-t;e++)c="0"+c;c=c.substring(0,e);return`${this.isNegative()&&!(o.eq(i.default(0))&&0===c.length)?"-":""}${t?BigInt(o.toString()).toLocaleString("en-US"):o.toString()}${c.length>0?"."+c:""}`}round(){return new o.Int(this.chopPrecisionAndRound())}roundUp(){return new o.Int(this.chopPrecisionAndRoundUp())}truncate(){return new o.Int(this.chopPrecisionAndTruncate())}}t.Dec=a,a.precision=i.default(18),a.precisionMultipliers={}},function(e,t){e.exports=r;var n=null;try{n=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function r(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function i(e){return!0===(e&&e.__isLong__)}r.prototype.__isLong__,Object.defineProperty(r.prototype,"__isLong__",{value:!0}),r.isLong=i;var o={},a={};function s(e,t){var n,r,i;return t?(i=0<=(e>>>=0)&&e<256)&&(r=a[e])?r:(n=l(e,(0|e)<0?-1:0,!0),i&&(a[e]=n),n):(i=-128<=(e|=0)&&e<128)&&(r=o[e])?r:(n=l(e,e<0?-1:0,!1),i&&(o[e]=n),n)}function c(e,t){if(isNaN(e))return t?g:y;if(t){if(e<0)return g;if(e>=h)return x}else{if(e<=-m)return S;if(e+1>=m)return k}return e<0?c(-e,t).neg():l(e%p|0,e/p|0,t)}function l(e,t,n){return new r(e,t,n)}r.fromInt=s,r.fromNumber=c,r.fromBits=l;var u=Math.pow;function f(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return y;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r;if((r=e.indexOf("-"))>0)throw Error("interior hyphen");if(0===r)return f(e.substring(1),t,n).neg();for(var i=c(u(n,8)),o=y,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),l=parseInt(e.substring(a,a+s),n);if(s<8){var d=c(u(n,s));o=o.mul(d).add(c(l))}else o=(o=o.mul(i)).add(c(l))}return o.unsigned=t,o}function d(e,t){return"number"==typeof e?c(e,t):"string"==typeof e?f(e,t):l(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}r.fromString=f,r.fromValue=d;var p=4294967296,h=p*p,m=h/2,b=s(1<<24),y=s(0);r.ZERO=y;var g=s(0,!0);r.UZERO=g;var v=s(1);r.ONE=v;var w=s(1,!0);r.UONE=w;var _=s(-1);r.NEG_ONE=_;var k=l(-1,2147483647,!1);r.MAX_VALUE=k;var x=l(-1,-1,!0);r.MAX_UNSIGNED_VALUE=x;var S=l(0,-2147483648,!1);r.MIN_VALUE=S;var O=r.prototype;O.toInt=function(){return this.unsigned?this.low>>>0:this.low},O.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},O.toString=function(e){if((e=e||10)<2||36<e)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(S)){var t=c(e),n=this.div(t),r=n.mul(t).sub(this);return n.toString(e)+r.toInt().toString(e)}return"-"+this.neg().toString(e)}for(var i=c(u(e,6),this.unsigned),o=this,a="";;){var s=o.div(i),l=(o.sub(s.mul(i)).toInt()>>>0).toString(e);if((o=s).isZero())return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}},O.getHighBits=function(){return this.high},O.getHighBitsUnsigned=function(){return this.high>>>0},O.getLowBits=function(){return this.low},O.getLowBitsUnsigned=function(){return this.low>>>0},O.getNumBitsAbs=function(){if(this.isNegative())return this.eq(S)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<<t);t--);return 0!=this.high?t+33:t+1},O.isZero=function(){return 0===this.high&&0===this.low},O.eqz=O.isZero,O.isNegative=function(){return!this.unsigned&&this.high<0},O.isPositive=function(){return this.unsigned||this.high>=0},O.isOdd=function(){return 1==(1&this.low)},O.isEven=function(){return 0==(1&this.low)},O.equals=function(e){return i(e)||(e=d(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&(this.high===e.high&&this.low===e.low)},O.eq=O.equals,O.notEquals=function(e){return!this.eq(e)},O.neq=O.notEquals,O.ne=O.notEquals,O.lessThan=function(e){return this.comp(e)<0},O.lt=O.lessThan,O.lessThanOrEqual=function(e){return this.comp(e)<=0},O.lte=O.lessThanOrEqual,O.le=O.lessThanOrEqual,O.greaterThan=function(e){return this.comp(e)>0},O.gt=O.greaterThan,O.greaterThanOrEqual=function(e){return this.comp(e)>=0},O.gte=O.greaterThanOrEqual,O.ge=O.greaterThanOrEqual,O.compare=function(e){if(i(e)||(e=d(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},O.comp=O.compare,O.negate=function(){return!this.unsigned&&this.eq(S)?S:this.not().add(v)},O.neg=O.negate,O.add=function(e){i(e)||(e=d(e));var t=this.high>>>16,n=65535&this.high,r=this.low>>>16,o=65535&this.low,a=e.high>>>16,s=65535&e.high,c=e.low>>>16,u=0,f=0,p=0,h=0;return p+=(h+=o+(65535&e.low))>>>16,f+=(p+=r+c)>>>16,u+=(f+=n+s)>>>16,u+=t+a,l((p&=65535)<<16|(h&=65535),(u&=65535)<<16|(f&=65535),this.unsigned)},O.subtract=function(e){return i(e)||(e=d(e)),this.add(e.neg())},O.sub=O.subtract,O.multiply=function(e){if(this.isZero())return y;if(i(e)||(e=d(e)),n)return l(n.mul(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned);if(e.isZero())return y;if(this.eq(S))return e.isOdd()?S:y;if(e.eq(S))return this.isOdd()?S:y;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(b)&&e.lt(b))return c(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,o=this.low>>>16,a=65535&this.low,s=e.high>>>16,u=65535&e.high,f=e.low>>>16,p=65535&e.low,h=0,m=0,g=0,v=0;return g+=(v+=a*p)>>>16,m+=(g+=o*p)>>>16,g&=65535,m+=(g+=a*f)>>>16,h+=(m+=r*p)>>>16,m&=65535,h+=(m+=o*f)>>>16,m&=65535,h+=(m+=a*u)>>>16,h+=t*p+r*f+o*u+a*s,l((g&=65535)<<16|(v&=65535),(h&=65535)<<16|(m&=65535),this.unsigned)},O.mul=O.multiply,O.divide=function(e){if(i(e)||(e=d(e)),e.isZero())throw Error("division by zero");var t,r,o;if(n)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?l((this.unsigned?n.div_u:n.div_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?g:y;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return g;if(e.gt(this.shru(1)))return w;o=g}else{if(this.eq(S))return e.eq(v)||e.eq(_)?S:e.eq(S)?v:(t=this.shr(1).div(e).shl(1)).eq(y)?e.isNegative()?v:_:(r=this.sub(e.mul(t)),o=t.add(r.div(e)));if(e.eq(S))return this.unsigned?g:y;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();o=y}for(r=this;r.gte(e);){t=Math.max(1,Math.floor(r.toNumber()/e.toNumber()));for(var a=Math.ceil(Math.log(t)/Math.LN2),s=a<=48?1:u(2,a-48),f=c(t),p=f.mul(e);p.isNegative()||p.gt(r);)p=(f=c(t-=s,this.unsigned)).mul(e);f.isZero()&&(f=v),o=o.add(f),r=r.sub(p)}return o},O.div=O.divide,O.modulo=function(e){return i(e)||(e=d(e)),n?l((this.unsigned?n.rem_u:n.rem_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},O.mod=O.modulo,O.rem=O.modulo,O.not=function(){return l(~this.low,~this.high,this.unsigned)},O.and=function(e){return i(e)||(e=d(e)),l(this.low&e.low,this.high&e.high,this.unsigned)},O.or=function(e){return i(e)||(e=d(e)),l(this.low|e.low,this.high|e.high,this.unsigned)},O.xor=function(e){return i(e)||(e=d(e)),l(this.low^e.low,this.high^e.high,this.unsigned)},O.shiftLeft=function(e){return i(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?l(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):l(0,this.low<<e-32,this.unsigned)},O.shl=O.shiftLeft,O.shiftRight=function(e){return i(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?l(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):l(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},O.shr=O.shiftRight,O.shiftRightUnsigned=function(e){if(i(e)&&(e=e.toInt()),0===(e&=63))return this;var t=this.high;return e<32?l(this.low>>>e|t<<32-e,t>>>e,this.unsigned):l(32===e?t:t>>>e-32,0,this.unsigned)},O.shru=O.shiftRightUnsigned,O.shr_u=O.shiftRightUnsigned,O.toSigned=function(){return this.unsigned?l(this.low,this.high,!1):this},O.toUnsigned=function(){return this.unsigned?this:l(this.low,this.high,!0)},O.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},O.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},O.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1Wallet=t.Secp256k1HdWallet=t.extractKdfConfiguration=t.executeKdf=t.pubkeyType=t.makeStdTx=t.isWrappedStdTx=t.isStdTx=t.SigningCosmosClient=t.decodeSignature=t.encodeSecp256k1Signature=t.findSequenceForSignedTx=t.encodeSecp256k1Pubkey=t.encodeBech32Pubkey=t.encodeAminoPubkey=t.decodeBech32Pubkey=t.decodeAminoPubkey=t.makeCosmoshubPath=t.isMsgWithdrawValidatorCommission=t.isMsgWithdrawDelegatorReward=t.isMsgUndelegate=t.isMsgSetWithdrawAddress=t.isMsgSend=t.isMsgMultiSend=t.isMsgFundCommunityPool=t.isMsgEditValidator=t.isMsgDelegate=t.isMsgCreateValidator=t.isMsgBeginRedelegate=t.uint64ToString=t.uint64ToNumber=t.setupSupplyExtension=t.setupStakingExtension=t.setupSlashingExtension=t.setupMintExtension=t.setupGovExtension=t.setupDistributionExtension=t.setupBankExtension=t.setupAuthExtension=t.normalizePubkey=t.normalizeLcdApiArray=t.LcdClient=t.BroadcastMode=t.GasPrice=t.buildFeeTable=t.serializeSignDoc=t.makeSignDoc=t.isSearchByTagsQuery=t.isSearchBySentFromOrToQuery=t.isSearchByHeightQuery=t.isBroadcastTxSuccess=t.isBroadcastTxFailure=t.CosmosClient=t.assertIsBroadcastTxSuccess=t.parseCoins=t.coins=t.coin=t.rawSecp256k1PubkeyToAddress=t.pubkeyToAddress=t.logs=void 0;const a=o(n(310));t.logs=a;var s=n(173);Object.defineProperty(t,"pubkeyToAddress",{enumerable:!0,get:function(){return s.pubkeyToAddress}}),Object.defineProperty(t,"rawSecp256k1PubkeyToAddress",{enumerable:!0,get:function(){return s.rawSecp256k1PubkeyToAddress}});var c=n(317);Object.defineProperty(t,"coin",{enumerable:!0,get:function(){return c.coin}}),Object.defineProperty(t,"coins",{enumerable:!0,get:function(){return c.coins}}),Object.defineProperty(t,"parseCoins",{enumerable:!0,get:function(){return c.parseCoins}});var l=n(318);Object.defineProperty(t,"assertIsBroadcastTxSuccess",{enumerable:!0,get:function(){return l.assertIsBroadcastTxSuccess}}),Object.defineProperty(t,"CosmosClient",{enumerable:!0,get:function(){return l.CosmosClient}}),Object.defineProperty(t,"isBroadcastTxFailure",{enumerable:!0,get:function(){return l.isBroadcastTxFailure}}),Object.defineProperty(t,"isBroadcastTxSuccess",{enumerable:!0,get:function(){return l.isBroadcastTxSuccess}}),Object.defineProperty(t,"isSearchByHeightQuery",{enumerable:!0,get:function(){return l.isSearchByHeightQuery}}),Object.defineProperty(t,"isSearchBySentFromOrToQuery",{enumerable:!0,get:function(){return l.isSearchBySentFromOrToQuery}}),Object.defineProperty(t,"isSearchByTagsQuery",{enumerable:!0,get:function(){return l.isSearchByTagsQuery}});var u=n(101);Object.defineProperty(t,"makeSignDoc",{enumerable:!0,get:function(){return u.makeSignDoc}}),Object.defineProperty(t,"serializeSignDoc",{enumerable:!0,get:function(){return u.serializeSignDoc}});var f=n(320);Object.defineProperty(t,"buildFeeTable",{enumerable:!0,get:function(){return f.buildFeeTable}}),Object.defineProperty(t,"GasPrice",{enumerable:!0,get:function(){return f.GasPrice}});var d=n(174);Object.defineProperty(t,"BroadcastMode",{enumerable:!0,get:function(){return d.BroadcastMode}}),Object.defineProperty(t,"LcdClient",{enumerable:!0,get:function(){return d.LcdClient}}),Object.defineProperty(t,"normalizeLcdApiArray",{enumerable:!0,get:function(){return d.normalizeLcdApiArray}}),Object.defineProperty(t,"normalizePubkey",{enumerable:!0,get:function(){return d.normalizePubkey}}),Object.defineProperty(t,"setupAuthExtension",{enumerable:!0,get:function(){return d.setupAuthExtension}}),Object.defineProperty(t,"setupBankExtension",{enumerable:!0,get:function(){return d.setupBankExtension}}),Object.defineProperty(t,"setupDistributionExtension",{enumerable:!0,get:function(){return d.setupDistributionExtension}}),Object.defineProperty(t,"setupGovExtension",{enumerable:!0,get:function(){return d.setupGovExtension}}),Object.defineProperty(t,"setupMintExtension",{enumerable:!0,get:function(){return d.setupMintExtension}}),Object.defineProperty(t,"setupSlashingExtension",{enumerable:!0,get:function(){return d.setupSlashingExtension}}),Object.defineProperty(t,"setupStakingExtension",{enumerable:!0,get:function(){return d.setupStakingExtension}}),Object.defineProperty(t,"setupSupplyExtension",{enumerable:!0,get:function(){return d.setupSupplyExtension}}),Object.defineProperty(t,"uint64ToNumber",{enumerable:!0,get:function(){return d.uint64ToNumber}}),Object.defineProperty(t,"uint64ToString",{enumerable:!0,get:function(){return d.uint64ToString}});var p=n(639);Object.defineProperty(t,"isMsgBeginRedelegate",{enumerable:!0,get:function(){return p.isMsgBeginRedelegate}}),Object.defineProperty(t,"isMsgCreateValidator",{enumerable:!0,get:function(){return p.isMsgCreateValidator}}),Object.defineProperty(t,"isMsgDelegate",{enumerable:!0,get:function(){return p.isMsgDelegate}}),Object.defineProperty(t,"isMsgEditValidator",{enumerable:!0,get:function(){return p.isMsgEditValidator}}),Object.defineProperty(t,"isMsgFundCommunityPool",{enumerable:!0,get:function(){return p.isMsgFundCommunityPool}}),Object.defineProperty(t,"isMsgMultiSend",{enumerable:!0,get:function(){return p.isMsgMultiSend}}),Object.defineProperty(t,"isMsgSend",{enumerable:!0,get:function(){return p.isMsgSend}}),Object.defineProperty(t,"isMsgSetWithdrawAddress",{enumerable:!0,get:function(){return p.isMsgSetWithdrawAddress}}),Object.defineProperty(t,"isMsgUndelegate",{enumerable:!0,get:function(){return p.isMsgUndelegate}}),Object.defineProperty(t,"isMsgWithdrawDelegatorReward",{enumerable:!0,get:function(){return p.isMsgWithdrawDelegatorReward}}),Object.defineProperty(t,"isMsgWithdrawValidatorCommission",{enumerable:!0,get:function(){return p.isMsgWithdrawValidatorCommission}});var h=n(321);Object.defineProperty(t,"makeCosmoshubPath",{enumerable:!0,get:function(){return h.makeCosmoshubPath}});var m=n(175);Object.defineProperty(t,"decodeAminoPubkey",{enumerable:!0,get:function(){return m.decodeAminoPubkey}}),Object.defineProperty(t,"decodeBech32Pubkey",{enumerable:!0,get:function(){return m.decodeBech32Pubkey}}),Object.defineProperty(t,"encodeAminoPubkey",{enumerable:!0,get:function(){return m.encodeAminoPubkey}}),Object.defineProperty(t,"encodeBech32Pubkey",{enumerable:!0,get:function(){return m.encodeBech32Pubkey}}),Object.defineProperty(t,"encodeSecp256k1Pubkey",{enumerable:!0,get:function(){return m.encodeSecp256k1Pubkey}});var b=n(640);Object.defineProperty(t,"findSequenceForSignedTx",{enumerable:!0,get:function(){return b.findSequenceForSignedTx}});var y=n(127);Object.defineProperty(t,"encodeSecp256k1Signature",{enumerable:!0,get:function(){return y.encodeSecp256k1Signature}}),Object.defineProperty(t,"decodeSignature",{enumerable:!0,get:function(){return y.decodeSignature}});var g=n(641);Object.defineProperty(t,"SigningCosmosClient",{enumerable:!0,get:function(){return g.SigningCosmosClient}});var v=n(322);Object.defineProperty(t,"isStdTx",{enumerable:!0,get:function(){return v.isStdTx}}),Object.defineProperty(t,"isWrappedStdTx",{enumerable:!0,get:function(){return v.isWrappedStdTx}}),Object.defineProperty(t,"makeStdTx",{enumerable:!0,get:function(){return v.makeStdTx}});var w=n(126);Object.defineProperty(t,"pubkeyType",{enumerable:!0,get:function(){return w.pubkeyType}});var _=n(323);Object.defineProperty(t,"executeKdf",{enumerable:!0,get:function(){return _.executeKdf}});var k=n(643);Object.defineProperty(t,"extractKdfConfiguration",{enumerable:!0,get:function(){return k.extractKdfConfiguration}}),Object.defineProperty(t,"Secp256k1HdWallet",{enumerable:!0,get:function(){return k.Secp256k1HdWallet}});var x=n(644);Object.defineProperty(t,"Secp256k1Wallet",{enumerable:!0,get:function(){return x.Secp256k1Wallet}})},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Uint=t.Int=void 0;const i=r(n(233));class o{constructor(e,t,n,r){this.int="string"==typeof e?i.default(e,t,n,r):i.default(e)}toString(){return this.int.toString(10)}equals(e){return this.int.equals(e.int)}gt(e){return this.int.gt(e.int)}gte(e){return this.int.greaterOrEquals(e.int)}lt(e){return this.int.lt(e.int)}lte(e){return this.int.lesserOrEquals(e.int)}add(e){return new o(this.int.add(e.int))}sub(e){return new o(this.int.subtract(e.int))}mul(e){return new o(this.int.multiply(e.int))}div(e){return new o(this.int.divide(e.int))}mod(e){return new o(this.int.mod(e.int))}neg(){return new o(this.int.negate())}}t.Int=o;class a{constructor(e,t,n,r){if(this.uint="string"==typeof e?i.default(e,t,n,r):i.default(e),this.uint.isNegative())throw new TypeError("Uint should not be negative")}toString(){return this.uint.toString(10)}equals(e){return this.uint.equals(e.uint)}gt(e){return this.uint.gt(e.uint)}gte(e){return this.uint.greaterOrEquals(e.uint)}lt(e){return this.uint.lt(e.uint)}lte(e){return this.uint.lesserOrEquals(e.uint)}add(e){return new a(this.uint.add(e.uint))}sub(e){return new a(this.uint.subtract(e.uint))}mul(e){return new a(this.uint.multiply(e.uint))}div(e){return new a(this.uint.divide(e.uint))}mod(e){return new a(this.uint.mod(e.uint))}}t.Uint=a},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=o(n(113)),s=o(n(48));s.default.util.Long=a.default,s.default.configure(),i(n(442),t)},function(e,t,n){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,n(13))},function(e,t,n){"use strict";var r=n(4),i=n(474),o=n(56),a=n(7).Buffer,s=n(259),c=n(75),l=n(76),u=a.alloc(128);function f(e,t){o.call(this,"digest"),"string"==typeof t&&(t=a.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new c:l(e)).update(t).digest():t.length<n&&(t=a.concat([t,u],n));for(var r=this._ipad=a.allocUnsafe(n),i=this._opad=a.allocUnsafe(n),s=0;s<n;s++)r[s]=54^t[s],i[s]=92^t[s];this._hash="rmd160"===e?new c:l(e),this._hash.update(r)}r(f,o),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:l(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new i(s,t):new f(e,t)}},function(e,t,n){var r=n(7).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function o(e){for(;0<e.length;e++)e[0]=0}function a(e,t,n,r,i){for(var o,a,s,c,l=n[0],u=n[1],f=n[2],d=n[3],p=e[0]^t[0],h=e[1]^t[1],m=e[2]^t[2],b=e[3]^t[3],y=4,g=1;g<i;g++)o=l[p>>>24]^u[h>>>16&255]^f[m>>>8&255]^d[255&b]^t[y++],a=l[h>>>24]^u[m>>>16&255]^f[b>>>8&255]^d[255&p]^t[y++],s=l[m>>>24]^u[b>>>16&255]^f[p>>>8&255]^d[255&h]^t[y++],c=l[b>>>24]^u[p>>>16&255]^f[h>>>8&255]^d[255&m]^t[y++],p=o,h=a,m=s,b=c;return o=(r[p>>>24]<<24|r[h>>>16&255]<<16|r[m>>>8&255]<<8|r[255&b])^t[y++],a=(r[h>>>24]<<24|r[m>>>16&255]<<16|r[b>>>8&255]<<8|r[255&p])^t[y++],s=(r[m>>>24]<<24|r[b>>>16&255]<<16|r[p>>>8&255]<<8|r[255&h])^t[y++],c=(r[b>>>24]<<24|r[p>>>16&255]<<16|r[h>>>8&255]<<8|r[255&m])^t[y++],[o>>>=0,a>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[a]=l,r[l]=a;var u=e[a],f=e[u],d=e[f],p=257*e[l]^16843008*l;i[0][a]=p<<24|p>>>8,i[1][a]=p<<16|p>>>16,i[2][a]=p<<8|p>>>24,i[3][a]=p,p=16843009*d^65537*f^257*u^16843008*a,o[0][l]=p<<24|p>>>8,o[1][l]=p<<16|p>>>16,o[2][l]=p<<8|p>>>24,o[3][l]=p,0===a?a=s=1:(a=u^e[e[e[d^u]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function l(e){this._key=i(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<r;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t==4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-t]^a}for(var l=[],u=0;u<r;u++){var f=r-u,d=i[f-(u%4?0:4)];l[u]=u<4||f<=4?d:c.INV_SUB_MIX[0][c.SBOX[d>>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},l.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=l},function(e,t,n){var r=n(7).Buffer,i=n(156);e.exports=function(e,t,n,o){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=r.alloc(a),c=r.alloc(o||0),l=r.alloc(0);a>0||o>0;){var u=new i;u.update(l),u.update(e),t&&u.update(t),l=u.digest();var f=0;if(a>0){var d=s.length-a;f=Math.min(a,l.length),l.copy(s,d,0,f),a-=f}if(f<l.length&&o>0){var p=c.length-o,h=Math.min(o,l.length-f);l.copy(c,p,f,f+h),o-=h}}return l.fill(0),{key:s,iv:c}}},function(e,t,n){"use strict";var r=n(6),i=n(33),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(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),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=o(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var a=[],c=0;c<r.length;c+=n.step){var l=0;for(t=c+n.step-1;t>=c;t--)l=(l<<1)+r[t];a.push(l)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(c=0;c<a.length;c++){(l=a[c])===d?f=f.mixedAdd(n.points[c]):l===-d&&(f=f.mixedAdd(n.points[c].neg()))}u=u.add(f)}return u.toP()},c.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,a=o(t,n,this._bitLength),c=this.jpoint(null,null,null),l=a.length-1;l>=0;l--){for(t=0;l>=0&&0===a[l];l--)t++;if(l>=0&&t++,c=c.dblp(t),l<0)break;var u=a[l];s(0!==u),c="affine"===e.type?u>0?c.mixedAdd(i[u-1>>1]):c.mixedAdd(i[-u-1>>1].neg()):u>0?c.add(i[u-1>>1]):c.add(i[-u-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,i){for(var s=this._wnafT1,c=this._wnafT2,l=this._wnafT3,u=0,f=0;f<r;f++){var d=(O=t[f])._getNAFPoints(e);s[f]=d.wnd,c[f]=d.points}for(f=r-1;f>=1;f-=2){var p=f-1,h=f;if(1===s[p]&&1===s[h]){var m=[t[p],null,null,t[h]];0===t[p].y.cmp(t[h].y)?(m[1]=t[p].add(t[h]),m[2]=t[p].toJ().mixedAdd(t[h].neg())):0===t[p].y.cmp(t[h].y.redNeg())?(m[1]=t[p].toJ().mixedAdd(t[h]),m[2]=t[p].add(t[h].neg())):(m[1]=t[p].toJ().mixedAdd(t[h]),m[2]=t[p].toJ().mixedAdd(t[h].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=a(n[p],n[h]);u=Math.max(y[0].length,u),l[p]=new Array(u),l[h]=new Array(u);for(var g=0;g<u;g++){var v=0|y[0][g],w=0|y[1][g];l[p][g]=b[3*(v+1)+(w+1)],l[h][g]=0,c[p]=m}}else l[p]=o(n[p],s[p],this._bitLength),l[h]=o(n[h],s[h],this._bitLength),u=Math.max(l[p].length,u),u=Math.max(l[h].length,u)}var _=this.jpoint(null,null,null),k=this._wnafT4;for(f=u;f>=0;f--){for(var x=0;f>=0;){var S=!0;for(g=0;g<r;g++)k[g]=0|l[g][f],0!==k[g]&&(S=!1);if(!S)break;x++,f--}if(f>=0&&x++,_=_.dblp(x),f<0)break;for(g=0;g<r;g++){var O,E=k[g];0!==E&&(E>0?O=c[g][E-1>>1]:E<0&&(O=c[g][-E-1>>1].neg()),_="affine"===O.type?_.mixedAdd(O):_.add(O))}}for(f=0;f<r;f++)c[f]=null;return i?_:_.toP()},c.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},l.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},l.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)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},function(e,t,n){var r=n(521),i=n(528),o=n(529),a=n(159),s=n(97),c=n(7).Buffer;function l(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var n,l,u=o(e,t),f=u.tag,d=u.data;switch(f){case"CERTIFICATE":l=r.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=r.PublicKey.decode(d,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=r.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":d=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],l=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,f=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(t,n,r,f,"sha1"),p=a.createDecipheriv(o,d,l),h=[];return h.push(p.update(u)),h.push(p.final()),c.concat(h)}(d=r.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(n=(l=r.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:r.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=r.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=r.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+f)}}e.exports=l,l.signature=r.signature},function(e,t,n){var r,i,o,a,s,c;e.exports=(c=n(9),i=(r=c).lib,o=i.Base,a=i.WordArray,(s=r.x64={}).Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return a.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}}),c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pubkeyType=void 0,t.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSignature=t.encodeSecp256k1Signature=void 0;const r=n(39),i=n(175),o=n(126);t.encodeSecp256k1Signature=function(e,t){if(64!==t.length)throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:i.encodeSecp256k1Pubkey(e),signature:r.toBase64(t)}},t.decodeSignature=function(e){switch(e.pub_key.type){case o.pubkeyType.secp256k1:return{pubkey:r.fromBase64(e.pub_key.value),signature:r.fromBase64(e.signature)};default:throw new Error("Unsupported pubkey type")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveSuggestedChainInfoMsg=t.SuggestChainInfoMsg=t.GetChainInfosMsg=void 0;const r=n(18),i=n(336);class o extends r.Message{static type(){return"get-chain-infos"}validateBasic(){}route(){return i.ROUTE}type(){return o.type()}}t.GetChainInfosMsg=o;class a extends r.Message{constructor(e){super(),this.chainInfo=e}static type(){return"suggest-chain-info"}validateBasic(){if(!this.chainInfo)throw new Error("chain info not set")}approveExternal(){return!0}route(){return i.ROUTE}type(){return a.type()}}t.SuggestChainInfoMsg=a;class s extends r.Message{constructor(e){super(),this.chainId=e}static type(){return"remove-suggested-chain-info"}validateBasic(){if(!this.chainId)throw new Error("Chain id not set")}route(){return i.ROUTE}type(){return s.type()}}t.RemoveSuggestedChainInfoMsg=s},function(e,t,n){e.exports=n(680)},function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,c,"next",e)}function c(e){n(a,i,o,s,c,"throw",e)}s(void 0)}))}}},function(e,t){const n=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:n,MAX_SAFE_COMPONENT_LENGTH:16}},function(e,t,n){(function(t){const n="object"==typeof t&&t.env&&t.env.NODE_DEBUG&&/\bsemver\b/i.test(t.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=n}).call(this,n(13))},function(e,t){const n=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:n.filter(t=>e[t]).reduce((e,t)=>(e[t]=!0,e),{}):{}},function(e,t,n){const r=n(40);e.exports=(e,t,n)=>r(e,t,n)>0},function(e,t,n){const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new f(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new f(this.value,t).test(e.semver);const n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),r=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||r||o&&a||s||l}}e.exports=i;const o=n(133),{re:a,t:s}=n(84),c=n(347),l=n(132),u=n(24),f=n(41)},function(e,t,n){const r=n(41);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DecProto=t.IntProto=t.DecCoin=t.Coin=t.protobufPackage=void 0;const i=r(n(48));t.protobufPackage="cosmos.base.v1beta1";const o={denom:"",amount:""};t.Coin={encode:(e,t=i.default.Writer.create())=>(t.uint32(10).string(e.denom),t.uint32(18).string(e.amount),t),decode(e,t){const n=e instanceof Uint8Array?new i.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const a=Object.assign({},o);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&e)}}return a},fromJSON(e){const t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},fromPartial(e){const t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t},toJSON(e){const t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t}};const a={denom:"",amount:""};t.DecCoin={encode:(e,t=i.default.Writer.create())=>(t.uint32(10).string(e.denom),t.uint32(18).string(e.amount),t),decode(e,t){const n=e instanceof Uint8Array?new i.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const o=Object.assign({},a);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.denom=n.string();break;case 2:o.amount=n.string();break;default:n.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},a);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},fromPartial(e){const t=Object.assign({},a);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t},toJSON(e){const t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t}};const s={int:""};t.IntProto={encode:(e,t=i.default.Writer.create())=>(t.uint32(10).string(e.int),t),decode(e,t){const n=e instanceof Uint8Array?new i.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const o=Object.assign({},s);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.int=n.string();break;default:n.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},s);return void 0!==e.int&&null!==e.int?t.int=String(e.int):t.int="",t},fromPartial(e){const t=Object.assign({},s);return void 0!==e.int&&null!==e.int?t.int=e.int:t.int="",t},toJSON(e){const t={};return void 0!==e.int&&(t.int=e.int),t}};const c={dec:""};t.DecProto={encode:(e,t=i.default.Writer.create())=>(t.uint32(10).string(e.dec),t),decode(e,t){const n=e instanceof Uint8Array?new i.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const o=Object.assign({},c);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.dec=n.string();break;default:n.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},c);return void 0!==e.dec&&null!==e.dec?t.dec=String(e.dec):t.dec="",t},fromPartial(e){const t=Object.assign({},c);return void 0!==e.dec&&null!==e.dec?t.dec=e.dec:t.dec="",t},toJSON(e){const t={};return void 0!==e.dec&&(t.dec=e.dec),t}}},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;const i=r(n(48));t.protobufPackage="google.protobuf";const o={typeUrl:""};t.Any={encode:(e,t=i.default.Writer.create())=>(t.uint32(10).string(e.typeUrl),t.uint32(18).bytes(e.value),t),decode(e,t){const n=e instanceof Uint8Array?new i.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const a=Object.assign({},o);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&e)}}return a},fromJSON(e){const t=Object.assign({},o);return void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=String(e.typeUrl):t.typeUrl="",void 0!==e.value&&null!==e.value&&(t.value=function(e){const t=s(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}(e.value)),t},fromPartial(e){const t=Object.assign({},o);return void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=e.typeUrl:t.typeUrl="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,t},toJSON(e){const t={};return void 0!==e.typeUrl&&(t.typeUrl=e.typeUrl),void 0!==e.value&&(t.value=function(e){const t=[];for(let n=0;n<e.byteLength;++n)t.push(String.fromCharCode(e[n]));return c(t.join(""))}(void 0!==e.value?e.value:new Uint8Array)),t}};var a=(()=>{if(void 0!==a)return a;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object")})();const s=a.atob||(e=>a.Buffer.from(e,"base64").toString("binary"));const c=a.btoa||(e=>a.Buffer.from(e,"binary").toString("base64"))}).call(this,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(739);t.Int53=r.Int53,t.Uint32=r.Uint32,t.Uint53=r.Uint53,t.Uint64=r.Uint64,t.Decimal=r.Decimal;var i=n(195);t.fromHex=i.fromHex,t.toHex=i.toHex,t.fromAscii=i.fromAscii,t.toAscii=i.toAscii,t.fromBase64=i.fromBase64,t.toBase64=i.toBase64,t.fromRfc3339=i.fromRfc3339,t.toRfc3339=i.toRfc3339,t.fromUtf8=i.fromUtf8,t.toUtf8=i.toUtf8,t.Bech32=i.Bech32;var o=n(363);t.isNonNullObject=o.isNonNullObject,t.isUint8Array=o.isUint8Array;var a=n(751);t.isJsonCompatibleValue=a.isJsonCompatibleValue,t.isJsonCompatibleDictionary=a.isJsonCompatibleDictionary,t.isJsonCompatibleArray=a.isJsonCompatibleArray;var s=n(752);t.TransactionEncoder=s.TransactionEncoder;var c=n(753);t.Encoding=c.Encoding},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(198),o=n(762),a=n(763);t.WebCryptoProvider=class{constructor(e=window.crypto){this.crypto=e}importBlockCipherKey(e){return r(this,void 0,void 0,(function*(){return o.default.importKey(this.crypto,e)}))}importCTRKey(e){return r(this,void 0,void 0,(function*(){try{return yield a.default.importKey(this.crypto,e)}catch(e){throw e.message.includes("unsupported")?new i.NotImplementedError("WebCryptoProvider: AES-CTR unsupported. Use PolyfillCryptoProvider."):e}}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return"undefined"!=typeof window?void 0:n(72)};t.getNodeCrypto=r;var i=function(){if("undefined"!=typeof window&&window.crypto)return window.crypto.subtle};t.getWebCrypto=i;var o=function(){if("undefined"!=typeof window){if(window.msCrypto)return window.msCrypto.subtle;if(window.crypto)return window.crypto.subtle}};t.getWebCryptoAll=o;var a=function(){if("undefined"!=typeof window){if(window.msCrypto)return window.msCrypto;if(window.crypto)return window.crypto}};t.getRootWebCryptoAll=a;var s=function(){if("undefined"!=typeof window&&window.msCrypto)return window.msCrypto.subtle};t.getMsCrypto=s;var c=function(){var e=i(),t=r(),n=s();return void 0!==t?{name:"nodeCrypto",crypto:t}:void 0!==e&&void 0===n?{name:"webCrypto",crypto:e}:void 0!==n?{name:"msCrypto",crypto:n}:{name:void 0}};t.getCrypto=c,t.default={getNodeCrypto:r,getWebCrypto:i,getMsCrypto:s,getWebCryptoAll:o,getRootWebCryptoAll:a,getCrypto:c}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetSecret20ViewingKey=t.RemoveTokenMsg=t.AddTokenMsg=t.SuggestTokenMsg=t.GetTokensMsg=void 0;const r=n(18),i=n(382);class o extends r.Message{constructor(e){super(),this.chainId=e}static type(){return"get-tokens"}validateBasic(){if(!this.chainId)throw new Error("Chain id is empty")}route(){return i.ROUTE}type(){return o.type()}}t.GetTokensMsg=o;class a extends r.Message{constructor(e,t,n){super(),this.chainId=e,this.contractAddress=t,this.viewingKey=n}static type(){return"suggest-token"}approveExternal(){return!0}validateBasic(){if(!this.chainId)throw new Error("Chain id is empty");if(!this.contractAddress)throw new Error("Contract address is empty")}route(){return i.ROUTE}type(){return a.type()}}t.SuggestTokenMsg=a;class s extends r.Message{constructor(e,t){super(),this.chainId=e,this.currency=t}static type(){return"add-token"}validateBasic(){if(!this.chainId)throw new Error("Chain id is empty")}route(){return i.ROUTE}type(){return s.type()}}t.AddTokenMsg=s;class c extends r.Message{constructor(e,t){super(),this.chainId=e,this.currency=t}static type(){return"remove-token"}validateBasic(){if(!this.chainId)throw new Error("Chain id is empty")}route(){return i.ROUTE}type(){return c.type()}}t.RemoveTokenMsg=c;class l extends r.Message{constructor(e,t){super(),this.chainId=e,this.contractAddress=t}static type(){return"get-secret20-viewing-key"}validateBasic(){if(!this.chainId)throw new Error("Chain id is empty");if(!this.contractAddress)throw new Error("Contract address is empty")}approveExternal(){return!0}route(){return i.ROUTE}type(){return l.type()}}t.GetSecret20ViewingKey=l},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return a}));var r=n(51),i=n.n(r),o=n(15);class a{constructor(){this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new i.a,this.send=async(t,n,r,i,a=e.alloc(0),s=[o.StatusCodes.OK])=>{if(a.length>=256)throw new o.TransportError("data.length exceed 256 bytes limit. Got: "+a.length,"DataLengthTooBig");const c=await this.exchange(e.concat([e.from([t,n,r,i]),e.from([a.length]),a])),l=c.readUInt16BE(c.length-2);if(!s.some(e=>e===l))throw new o.TransportStatusError(l);return c},this.exchangeBusyPromise=void 0,this.exchangeAtomicImpl=async e=>{if(this.exchangeBusyPromise)throw new o.TransportRaceCondition("An action was already pending on the Ledger device. Please deny or reconnect.");let t;const n=new Promise(e=>{t=e});this.exchangeBusyPromise=n;let r=!1;const i=setTimeout(()=>{r=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{const n=await e();return r&&this.emit("responsive"),n}finally{clearTimeout(i),t&&t(),this.exchangeBusyPromise=null}},this._appAPIlock=null}exchange(e){throw new Error("exchange not implemented")}setScrambleKey(e){}close(){return Promise.resolve()}on(e,t){this._events.on(e,t)}off(e,t){this._events.removeListener(e,t)}emit(e,...t){this._events.emit(e,...t)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(e){this.exchangeTimeout=e}setExchangeUnresponsiveTimeout(e){this.unresponsiveTimeout=e}static create(e=3e3,t){return new Promise((n,r)=>{let i=!1;const a=this.listen({next:t=>{i=!0,a&&a.unsubscribe(),s&&clearTimeout(s),this.open(t.descriptor,e).then(n,r)},error:e=>{s&&clearTimeout(s),r(e)},complete:()=>{s&&clearTimeout(s),i||r(new o.TransportError(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),s=t?setTimeout(()=>{a.unsubscribe(),r(new o.TransportError(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},t):null})}decorateAppAPIMethods(e,t,n){for(let r of t)e[r]=this.decorateAppAPIMethod(r,e[r],e,n)}decorateAppAPIMethod(e,t,n,r){return async(...i)=>{const{_appAPIlock:a}=this;if(a)return Promise.reject(new o.TransportError("Ledger Device is busy (lock "+a+")","TransportLocked"));try{return this._appAPIlock=e,this.setScrambleKey(r),await t.apply(n,i)}finally{this._appAPIlock=null}}}}a.isSupported=void 0,a.list=void 0,a.listen=void 0,a.open=void 0,a.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",a.ErrorMessage_NoDeviceFound="No Ledger device found"}).call(this,n(2).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(15);function i(t){const n=e.alloc(2);return n.writeUInt16BE(t,0),n}const o={data:e.alloc(0),dataLength:0,sequence:0};var a=(t,n)=>({makeBlocks(r){let o=e.concat([i(r.length),r]);const a=n-5,s=Math.ceil(o.length/a);o=e.concat([o,e.alloc(s*a-o.length+1).fill(0)]);const c=[];for(let n=0;n<s;n++){const r=e.alloc(5);r.writeUInt16BE(t,0),r.writeUInt8(5,2),r.writeUInt16BE(n,3);const i=o.slice(n*a,(n+1)*a);c.push(e.concat([r,i]))}return c},reduceResponse(n,i){let{data:a,dataLength:s,sequence:c}=n||o;if(i.readUInt16BE(0)!==t)throw new r.TransportError("Invalid channel","InvalidChannel");if(5!==i.readUInt8(2))throw new r.TransportError("Invalid tag","InvalidTag");if(i.readUInt16BE(3)!==c)throw new r.TransportError("Invalid sequence","InvalidSequence");n||(s=i.readUInt16BE(5)),c++;const l=i.slice(n?5:7);return a=e.concat([a,l]),a.length>s&&(a=a.slice(0,s)),{data:a,dataLength:s,sequence:c}},getReducedResult(e){if(e&&e.dataLength===e.data.length)return e.data}});t.default=a}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=n(1117),i=n(1118);e.exports={errors:r,formatters:i}},function(e,t,n){"use strict";var r=n(0);const i="onBlur",o="onChange",a="onSubmit",s="blur",c="change",l="input",u="max",f="min",d="maxLength",p="minLength",h="pattern",m="required",b="validate";var y=e=>void 0===e,g=e=>null===e||y(e),v=e=>Array.isArray(e);const w=e=>"object"==typeof e;var _=e=>!g(e)&&!v(e)&&w(e);const k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/,S=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O=/\\(\\)?/g,E=/^(?:0|[1-9]\d*)$/;function T(e){return E.test(e)&&e>-1}function A(e,t,n){let r=-1;const i=function(e){return!v(e)&&(x.test(e)||!k.test(e))}(t)?[t]:(e=>{const t=[];return e.replace(S,(e,n,r,i)=>{t.push(r?i.replace(O,"$1"):n||e)}),t})(t),o=i.length,a=o-1;for(;++r<o;){const t=i[r];let o=n;if(r!==a){const n=e[t];o=_(n)||v(n)?n:T(i[r+1])?[]:{}}e[t]=o,e=e[t]}return e}var M=e=>Object.entries(e).reduce((e,[t,n])=>t.match(/\[.+\]/gi)||t.indexOf(".")>0?(A(e,t,n),e):Object.assign(Object.assign({},e),{[t]:n}),{}),I=(e,t)=>{e.removeEventListener&&(e.removeEventListener(l,t),e.removeEventListener(c,t),e.removeEventListener(s,t))},P=e=>"radio"===e,C=e=>"checkbox"===e;function j(e){return!e||e instanceof HTMLElement&&e.nodeType!==Node.DOCUMENT_NODE&&j(e.parentNode)}const D={isValid:!1,value:""};var R=e=>v(e)?e.reduce((e,{ref:{checked:t,value:n}})=>t?{isValid:!0,value:n}:e,D):D,N=e=>"select-multiple"===e,B=e=>""===e;const L={value:!1,isValid:!1},U={value:!0,isValid:!0};var F=e=>{if(v(e)){if(e.length>1){const t=e.filter(({ref:{checked:e}})=>e).map(({ref:{value:e}})=>e);return{value:t,isValid:!!t.length}}const{checked:t,value:n,attributes:r}=e[0].ref;return t?r&&!y(r.value)?y(n)||B(n)?U:{value:n,isValid:!0}:U:L}return L};function q(e,t){const{type:n,name:r,options:i,value:o,files:a}=t,s=e[r];return"file"===n?a:P(n)?s?R(s.options).value:"":N(n)?(e=>[...e].filter(({selected:e})=>e).map(({value:e})=>e))(i):C(n)?!!s&&F(s.options).value:o}var z=e=>Object.values(e).reduce((t,{ref:n,ref:{name:r}})=>Object.assign(Object.assign({},t),{[r]:q(e,n)}),{}),V=e=>_(e)&&!Object.keys(e).length,H=(e,t,n)=>_(e)&&e.type===t&&e.message===n;var $=e=>e instanceof RegExp,K=e=>{const t=_(e)&&!$(e);return{value:t?e.value:e,message:t?e.message:""}},W=e=>"string"==typeof e,G=(e,t,n)=>{e&&W(n)&&t.setCustomValidity(n)},J=e=>"function"==typeof e,Q=e=>"boolean"==typeof e;function Y(e,t,n,r="validate"){const i=W(e);if(i||Q(e)&&!e){const o=i?e:"",a={type:r,message:o,ref:t};return n(o),a}}var Z=(e,t,n,r,i)=>{if(!t)return{};const o=n[e];return Object.assign(Object.assign({},o),{types:Object.assign(Object.assign({},o&&o.types?o.types:{}),{[r]:i||!0})})},X=async(e,t,n,{ref:r,ref:{type:i,value:o,name:a,valueAsNumber:s,valueAsDate:c},options:l,required:y,maxLength:v,minLength:w,min:k,max:x,pattern:S,validate:O})=>{const E=e.current,T={},A=P(i),M=C(i),I=A||M,j=B(o),D=G.bind(null,t,r),N=Z.bind(null,a,n,T);if(y&&(!A&&!M&&(j||g(o))||Q(o)&&!o||M&&!F(l).isValid||A&&!R(l).isValid)){const e=W(y)?y:K(y).message;if(T[a]=Object.assign({type:m,message:e,ref:I?E[a].options[0].ref:r},N(m,e)),D(e),!n)return T}if(!g(k)||!g(x)){let e,t;const{value:l,message:d}=K(x),{value:p,message:h}=K(k);if("number"===i){const n=s||parseFloat(o);g(l)||(e=n>l),g(p)||(t=n<p)}else{const n=c||new Date(o);W(l)&&(e=n>new Date(l)),W(p)&&(t=n<new Date(p))}if(e||t){const t=e?d:h;if(T[a]=Object.assign({type:e?u:f,message:t,ref:r},N(e?u:f,t)),D(t),!n)return T}}if(W(o)&&!j&&(v||w)){const{value:e,message:t}=K(v),{value:i,message:s}=K(w),c=o.toString().length,l=v&&c>e,u=w&&c<i;if(l||u){const e=l?t:s;if(T[a]=Object.assign({type:l?d:p,message:e,ref:r},N(l?d:p,e)),D(e),!n)return T}}if(S&&!j){const{value:e,message:t}=K(S);if($(e)&&!e.test(o)&&(T[a]=Object.assign({type:h,message:t,ref:r},N(h,t)),D(t),!n))return T}if(O){const e=q(E,r),t=I&&l?l[0].ref:r;if(J(O)){const r=Y(await O(e),t,D);if(r&&(T[a]=Object.assign(Object.assign({},r),N(b,r.message)),!n))return T}else if(_(O)){const r=Object.entries(O),i=await new Promise(i=>{r.reduce(async(o,[s,c],l)=>{if(!V(await o)&&!n||!J(c))return i(o);let u;const f=Y(await c(e),t,D,s);return f?(u=Object.assign(Object.assign({},f),N(s,f.message)),n&&(T[a]=u)):u=o,r.length-1===l?i(u):u},{})});if(!V(i)&&(T[a]=Object.assign({ref:t},i),!n))return T}}return t&&r.setCustomValidity(""),T};const ee=(e,t)=>v(e.inner)?e.inner.reduce((e,{path:n,message:r,type:i})=>Object.assign(Object.assign({},e),e[n]&&t?{[n]:Z(n,t,e,i,r)}:{[n]:Object.assign({message:r,type:i},t?{types:{[i]:r||!0}}:{})}),{}):{[e.path]:{message:e.message,type:e.type}};async function te(e,t,n,r){try{return{values:await e.validate(r,t),errors:{}}}catch(e){return{values:{},errors:ee(e,n)}}}var ne=(e,t,n)=>{const r=t.split(/[,[\].]+?/).filter(Boolean).reduce((e,t)=>g(e)?e:e[t],e);return y(r)||r===e?n:r},re=(e,t,n)=>y(e[t])?ne(e,t,n):e[t];var ie=e=>g(e)||!w(e);const oe=(e,t)=>v(t)?t.map((t,n)=>{const r=`${e}[${n}]`;return ie(t)?r:oe(r,t)}):Object.entries(t).map(([t,n])=>{const r=`${e}.${t}`;return ie(n)?r:oe(r,n)});var ae=(e,t)=>function e(t){return t.reduce((t,n)=>t.concat(v(n)?e(n):n),[])}(oe(e,t)),se=(e,t,n,r)=>{let i;return V(e)?i=void 0:y(e[t])?(i=ne(M(e),t),y(i)||ae(t,i).forEach(e=>n.add(e))):(n.add(t),i=e[t]),y(i)?_(r)?re(r,t):r:i};
31 /*! *****************************************************************************
32 Copyright (c) Microsoft Corporation. All rights reserved.
33 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
34 this file except in compliance with the License. You may obtain a copy of the
35 License at http://www.apache.org/licenses/LICENSE-2.0
36
37 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
38 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
39 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
40 MERCHANTABLITY OR NON-INFRINGEMENT.
41
42 See the Apache Version 2.0 License for specific language governing permissions
43 and limitations under the License.
44 ***************************************************************************** */
45 function ce(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}const le=(e,t)=>{const n=t;e[n];return ce(e,["symbol"==typeof n?n:n+""])};var ue=e=>({isOnSubmit:!e||e===a,isOnBlur:e===i,isOnChange:e===o});const{useRef:fe,useState:de,useCallback:pe,useEffect:he}=r;Object(r.createContext)(null);t.a=function({mode:e=a,reValidateMode:t=o,validationSchema:n,defaultValues:r={},nativeValidation:i=!1,submitFocusError:u=!0,validationSchemaOption:f={abortEarly:!1},validateCriteriaMode:d}={}){const p=fe({}),m="all"===d,b=fe({}),w=fe(new Set),k=fe(new Set),x=fe(new Set),S=fe(new Set),O=fe(new Set),E=fe(!0),T=fe({}),A=fe(r),D=fe(!1),R=fe(!1),B=fe(!1),L=fe(!1),U=fe(0),F=fe(!1),G=fe(),[,J]=de(),{isOnBlur:Q,isOnSubmit:Y}=fe(ue(e)).current,Z="undefined"==typeof window,ee="undefined"!=typeof document&&!Z&&!y(window.HTMLElement),ne=!Z&&"Proxy"in window,ie=fe({dirty:!ne,isSubmitted:Y,submitCount:!ne,touched:!ne,isSubmitting:!ne,isValid:!ne}),{isOnBlur:oe,isOnSubmit:ae}=fe(ue(t)).current,ce=fe(f);A.current=A.current?A.current:r;const me=e=>Object.assign(Object.assign({},b.current),e),be=pe(()=>{D.current||J({})},[]),ye=pe(X.bind(null,p,i,m),[]),ge=pe(te.bind(null,n,ce.current,m),[n]),ve=pe((e,t,r,i)=>{let o=r||function({errors:e,name:t,error:n,validFields:r,fieldsWithValidation:i}){const o=V(n),a=V(e),s=n[t],c=e[t];return!(o&&r.has(t)||c&&c.isManual)&&(!!(a!==o||!a&&!c||o&&i.has(t)&&!r.has(t))||s&&!H(c,s.type,s.message))}({errors:b.current,error:t,name:e,validFields:O.current,fieldsWithValidation:S.current});if(V(t)?((S.current.has(e)||n)&&(O.current.add(e),o=o||b.current[e]),b.current=le(b.current,e)):(O.current.delete(e),o=o||!b.current[e]),b.current=me(t),o&&!i)return be(),!0},[be,n]),we=pe((e,t)=>{const n=p.current[e];if(!n)return!1;const r=n.ref,{type:i}=r,o=n.options,a=ee&&r instanceof window.HTMLElement&&g(t)?"":t;return P(i)&&o?o.forEach(({ref:e})=>e.checked=e.value===a):N(i)?[...r.options].forEach(e=>e.selected=a.includes(e.value)):C(i)&&o?o.length>1?o.forEach(({ref:e})=>e.checked=a.includes(e.value)):o[0].ref.checked=!!a:r.value=a,i},[ee]),_e=e=>{if(!p.current[e])return!1;const t=T.current[e]!==q(p.current,p.current[e].ref),n=x.current.has(e)!==t;return t?x.current.add(e):x.current.delete(e),L.current=!!x.current.size,n&&ie.current.dirty},ke=pe((e,t)=>{if(we(e,t),_e(e)||!w.current.has(e)&&ie.current.touched)return!!w.current.add(e)},[we]),xe=pe(async({name:e,value:t},n,r)=>{const o=p.current[e];if(!o)return!1;y(t)||ke(e,t),n&&be();const a=await X(p,i,m,o);return ve(e,a,!1,r),V(a)},[i,be,ve,ke,m]),Se=pe(async(e,t)=>{const{errors:r}=await te(n,ce.current,m,M(z(p.current))),i=v(e),o=v(e)?e.map(({name:e})=>e):[e.name],a=o.filter(e=>!r[e]),s=E.current;if(E.current=V(r),i)b.current=((e,t)=>Object.entries(e).reduce((e,[n,r])=>t.some(e=>e===n)?e:Object.assign(Object.assign({},e),{[n]:r}),{}))(me(Object.entries(r).filter(([e])=>o.includes(e)).reduce((e,[t,n])=>Object.assign(Object.assign({},e),{[t]:n}),{})),a),be();else{const e=o[0];ve(e,r[e]?{[e]:r[e]}:{},t||s!==E.current)}return V(b.current)},[be,ve,m,n]),Oe=pe(async(e,t)=>{const r=e||Object.keys(p.current).map(e=>({name:e}));if(n)return Se(r,t);if(v(r)){const e=await Promise.all(r.map(async e=>await xe(e,!1,!0)));return be(),e.every(Boolean)}return await xe(r,t)},[Se,xe,be,n]),Ee=pe((e,t,n)=>{const r=ke(e,t)||R.current||k.current.has(e);if(n)return Oe({name:e},r);r&&be()},[be,ke,Oe]);G.current=G.current?G.current:async({type:e,target:t})=>{const r=t?t.name:"",o=p.current,a=b.current,c=o[r],l=a[r];let u;if(!c)return;const f=e===s,d=Y&&ae||Y&&!B.current||Q&&!f&&!l||oe&&!f&&l||ae&&l,h=_e(r);let y=R.current||k.current.has(r)||h;if(f&&!w.current.has(r)&&ie.current.touched&&(w.current.add(r),y=!0),d)return y&&be();if(n){const{errors:e}=await te(n,ce.current,m,M(z(o))),t=V(e);u=e[r]?{[r]:e[r]}:{},E.current!==t&&(y=!0),E.current=t}else u=await X(p,i,m,c);!ve(r,u)&&y&&be()};const Te=pe(()=>{const e=V(A.current)?z(p.current):A.current;ge(M(e)).then(({errors:e})=>{const t=E.current;E.current=V(e),t&&t!==E.current&&be()})},[be,ge]),Ae=pe(e=>{b.current=le(b.current,e),p.current=le(p.current,e),T.current=le(T.current,e),[w,x,S,O,k].forEach(t=>t.current.delete(e)),(ie.current.isValid||ie.current.touched)&&be(),n&&Te()},[be]),Me=pe((e,t)=>{e&&(y(G.current)||function(e,t,n,r){if(!n)return;const{ref:i,mutationWatcher:o}=n;if(!i.type||!e[i.name])return;const{name:a,type:s}=i,c=e[a];if((P(s)||C(s))&&c){const{options:n}=c;v(n)&&n.length?(n.forEach(({ref:e},i)=>{const o=n[i];if(o&&j(e)||r){const e=o.mutationWatcher;I(o,t),e&&e.disconnect(),n.splice(i,1)}}),n&&!n.length&&delete e[a]):delete e[a]}else(j(i)||r)&&(I(i,t),o&&o.disconnect(),delete e[a])}(p.current,G.current,e,t),Ae(e.ref.name))},[Ae]),Ie=({name:e,type:t,types:n,message:r,preventRender:i})=>{const o=b.current,a=p.current[e];H(o[e],t,r)||(o[e]={type:t,types:n,message:r,ref:a?a.ref:{},isManual:!0},i||be())};function Pe(e,t={}){if(!e.name)return console.warn("Missing name @",e);const{name:r,type:o,value:a}=e,u=Object.assign({ref:e},t),f=p.current,d=P(o)||C(o);let m=f[r];if(d?m&&v(m.options)&&m.options.find(({ref:e})=>a===e.value):m)return void(f[r]=Object.assign(Object.assign({},m),t));if(o){const n=function(e,t){const n=new MutationObserver(()=>{j(e)&&(n.disconnect(),t())});return n.observe(window.document,{childList:!0,subtree:!0}),n}(e,()=>Me(u));m=d?Object.assign({options:[...m&&m.options||[],{ref:e,mutationWatcher:n}],ref:{type:o,name:r}},t):Object.assign(Object.assign({},u),{mutationWatcher:n})}else m=u;if(f[r]=m,!V(A.current)){const e=re(A.current,r);y(e)||we(r,e)}if(n?Te():V(t)||(S.current.add(r),!Y&&ie.current.isValid&&ye(m).then(e=>{const t=E.current;V(e)?O.current.add(r):E.current=!1,t!==E.current&&be()})),T.current[r]||(T.current[r]=q(f,m.ref)),!o)return;const b=d&&m.options?m.options[m.options.length-1]:m;i&&t?function(e,t){Object.entries(t).forEach(([t,n])=>{const{value:r}=K(n);t===h&&$(r)?e[t]=r.source:e[t]=t===h||r})}(e,t):function({field:e,handleChange:t,isRadioOrCheckbox:n}){const{ref:r}=e;r.addEventListener&&(r.addEventListener(n?c:l,t),r.addEventListener(s,t))}({field:b,isRadioOrCheckbox:d,handleChange:G.current})}const Ce=pe(e=>async t=>{let r,i;t&&(t.preventDefault(),t.persist());const o=p.current;ie.current.isSubmitting&&(F.current=!0,be());try{if(n){i=z(o);const{errors:e,values:t}=await ge(M(i));b.current=e,r=e,i=t}else{const{errors:e,values:t}=await Object.values(o).reduce(async(e,t)=>{if(!t)return e;const n=await e,{ref:r,ref:{name:i}}=t;if(!o[i])return Promise.resolve(n);const a=await ye(t);return a[i]?(n.errors=Object.assign(Object.assign({},n.errors),a),O.current.delete(i),Promise.resolve(n)):(S.current.has(i)&&O.current.add(i),n.values[i]=q(o,r),Promise.resolve(n))},Promise.resolve({errors:{},values:{}}));r=e,i=t}V(r)?(b.current={},await e(M(i),t)):(u&&Object.keys(r).reduce((e,t)=>{const n=o[t];if(n&&e){if(n.ref.focus)return n.ref.focus(),!1;if(n.options)return n.options[0].ref.focus(),!1}return e},!0),b.current=r)}finally{B.current=!0,F.current=!1,U.current=U.current+1,be()}},[be,u,ye,ge,n]),je=pe(e=>{const t=Object.entries(p.current);for(const[,e]of t)if(e&&e.ref&&e.ref.closest)try{e.ref.closest("form").reset();break}catch(e){}b.current={},p.current={},O.current=new Set,S.current=new Set,T.current={},w.current=new Set,k.current=new Set,x.current=new Set,R.current=!1,B.current=!1,L.current=!1,E.current=!0,U.current=0,e&&(A.current=e),be()},[be]),De=pe(e=>{const t=z(p.current),n=V(t)?r:t;return e&&e.nest?M(n):n},[r]);he(()=>()=>{D.current=!0,p.current&&Object.values(p.current).forEach(e=>Me(e,!0))},[Me]),n||(E.current=O.current.size>=S.current.size&&V(b.current));const Re={dirty:L.current,isSubmitted:B.current,submitCount:U.current,touched:[...w.current],isSubmitting:F.current,isValid:Y?B.current&&V(b.current):V(p.current)||E.current};return{register:pe((function(e,t){if(!Z&&e)if(t&&W(t.name))Pe({name:t.name},t);else{if(!_(e)||!("name"in e))return t=>t&&Pe(t,e);Pe(e,t)}}),[T.current,A.current]),unregister:pe((function(e){V(p.current)||(v(e)?e:[e]).forEach(e=>Me(p.current[e],!0))}),[Me]),clearError:pe((function(e){y(e)?b.current={}:(v(e)?e:[e]).forEach(e=>b.current=le(b.current,e)),be()}),[]),setError:pe((function(e,t="",n){W(e)?Ie(Object.assign({name:e},_(t)?{types:t,type:""}:{type:t,message:n})):v(e)&&(e.forEach(e=>Ie(Object.assign(Object.assign({},e),{preventRender:!0}))),be())}),[]),handleSubmit:Ce,watch:function(e,t){const n=y(t)?y(r)?{}:r:t,i=z(p.current),o=k.current;return ne&&(ie.current.dirty=!0),W(e)?se(i,e,o,n):v(e)?e.reduce((e,t)=>{let r;return r=V(p.current)&&_(n)?re(n,t):se(i,t,o,n),Object.assign(Object.assign({},e),{[t]:r})},{}):(R.current=!0,!V(i)&&i||t||r)},reset:je,setValue:Ee,triggerValidation:Oe,getValues:De,errors:b.current,formState:ne?new Proxy(Re,{get:(e,t)=>t in e?(ie.current[t]=!0,e[t]):{}}):Re}}},function(e,t,n){(function(e,n){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=i._,a=Array.prototype,s=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,l=a.push,u=a.slice,f=s.toString,d=s.hasOwnProperty,p=Array.isArray,h=Object.keys,m=Object.create,b=function(){},y=function(e){return e instanceof y?e:this instanceof y?void(this._wrapped=e):new y(e)};t.nodeType?i._=y:(!n.nodeType&&n.exports&&(t=n.exports=y),t._=y),y.VERSION="1.9.1";var g,v=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}},w=function(e,t,n){return y.iteratee!==g?y.iteratee(e,t):null==e?y.identity:y.isFunction(e)?v(e,t,n):y.isObject(e)&&!y.isArray(e)?y.matcher(e):y.property(e)};y.iteratee=g=function(e,t){return w(e,t,1/0)};var _=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}},k=function(e){if(!y.isObject(e))return{};if(m)return m(e);b.prototype=e;var t=new b;return b.prototype=null,t},x=function(e){return function(t){return null==t?void 0:t[e]}},S=function(e,t){return null!=e&&d.call(e,t)},O=function(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0},E=Math.pow(2,53)-1,T=x("length"),A=function(e){var t=T(e);return"number"==typeof t&&t>=0&&t<=E};y.each=y.forEach=function(e,t,n){var r,i;if(t=v(t,n),A(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=y.keys(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e},y.map=y.collect=function(e,t,n){t=w(t,n);for(var r=!A(e)&&y.keys(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o};var M=function(e){var t=function(t,n,r,i){var o=!A(t)&&y.keys(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var c=o?o[s]:s;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,v(n,i,4),r,o)}};y.reduce=y.foldl=y.inject=M(1),y.reduceRight=y.foldr=M(-1),y.find=y.detect=function(e,t,n){var r=(A(e)?y.findIndex:y.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},y.filter=y.select=function(e,t,n){var r=[];return t=w(t,n),y.each(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r},y.reject=function(e,t,n){return y.filter(e,y.negate(w(t)),n)},y.every=y.all=function(e,t,n){t=w(t,n);for(var r=!A(e)&&y.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0},y.some=y.any=function(e,t,n){t=w(t,n);for(var r=!A(e)&&y.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1},y.contains=y.includes=y.include=function(e,t,n,r){return A(e)||(e=y.values(e)),("number"!=typeof n||r)&&(n=0),y.indexOf(e,t,n)>=0},y.invoke=_((function(e,t,n){var r,i;return y.isFunction(t)?i=t:y.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),y.map(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=O(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))})),y.pluck=function(e,t){return y.map(e,y.property(t))},y.where=function(e,t){return y.filter(e,y.matcher(t))},y.findWhere=function(e,t){return y.find(e,y.matcher(t))},y.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=A(e)?e:y.values(e)).length;s<c;s++)null!=(r=e[s])&&r>o&&(o=r);else t=w(t,n),y.each(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o},y.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=A(e)?e:y.values(e)).length;s<c;s++)null!=(r=e[s])&&r<o&&(o=r);else t=w(t,n),y.each(e,(function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o},y.shuffle=function(e){return y.sample(e,1/0)},y.sample=function(e,t,n){if(null==t||n)return A(e)||(e=y.values(e)),e[y.random(e.length-1)];var r=A(e)?y.clone(e):y.values(e),i=T(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=y.random(a,o),c=r[a];r[a]=r[s],r[s]=c}return r.slice(0,t)},y.sortBy=function(e,t,n){var r=0;return t=w(t,n),y.pluck(y.map(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")};var I=function(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=w(r,i),y.each(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}};y.groupBy=I((function(e,t,n){S(e,n)?e[n].push(t):e[n]=[t]})),y.indexBy=I((function(e,t,n){e[n]=t})),y.countBy=I((function(e,t,n){S(e,n)?e[n]++:e[n]=1}));var P=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;y.toArray=function(e){return e?y.isArray(e)?u.call(e):y.isString(e)?e.match(P):A(e)?y.map(e,y.identity):y.values(e):[]},y.size=function(e){return null==e?0:A(e)?e.length:y.keys(e).length},y.partition=I((function(e,t,n){e[n?0:1].push(t)}),!0),y.first=y.head=y.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:y.initial(e,e.length-t)},y.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},y.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:y.rest(e,Math.max(0,e.length-t))},y.rest=y.tail=y.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},y.compact=function(e){return y.filter(e,Boolean)};var C=function(e,t,n,r){for(var i=(r=r||[]).length,o=0,a=T(e);o<a;o++){var s=e[o];if(A(s)&&(y.isArray(s)||y.isArguments(s)))if(t)for(var c=0,l=s.length;c<l;)r[i++]=s[c++];else C(s,t,n,r),i=r.length;else n||(r[i++]=s)}return r};y.flatten=function(e,t){return C(e,t,!1)},y.without=_((function(e,t){return y.difference(e,t)})),y.uniq=y.unique=function(e,t,n,r){y.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=w(n,r));for(var i=[],o=[],a=0,s=T(e);a<s;a++){var c=e[a],l=n?n(c,a,e):c;t&&!n?(a&&o===l||i.push(c),o=l):n?y.contains(o,l)||(o.push(l),i.push(c)):y.contains(i,c)||i.push(c)}return i},y.union=_((function(e){return y.uniq(C(e,!0,!0))})),y.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=T(e);r<i;r++){var o=e[r];if(!y.contains(t,o)){var a;for(a=1;a<n&&y.contains(arguments[a],o);a++);a===n&&t.push(o)}}return t},y.difference=_((function(e,t){return t=C(t,!0,!0),y.filter(e,(function(e){return!y.contains(t,e)}))})),y.unzip=function(e){for(var t=e&&y.max(e,T).length||0,n=Array(t),r=0;r<t;r++)n[r]=y.pluck(e,r);return n},y.zip=_(y.unzip),y.object=function(e,t){for(var n={},r=0,i=T(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};var j=function(e){return function(t,n,r){n=w(n,r);for(var i=T(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}};y.findIndex=j(1),y.findLastIndex=j(-1),y.sortedIndex=function(e,t,n,r){for(var i=(n=w(n,r,1))(t),o=0,a=T(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o};var D=function(e,t,n){return function(r,i,o){var a=0,s=T(r);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(u.call(r,a,s),y.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}};y.indexOf=D(1,y.findIndex,y.sortedIndex),y.lastIndexOf=D(-1,y.findLastIndex),y.range=function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i},y.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.call(e,r,r+=t));return n};var R=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=k(e.prototype),a=e.apply(o,i);return y.isObject(a)?a:o};y.bind=_((function(e,t,n){if(!y.isFunction(e))throw new TypeError("Bind must be called on a function");var r=_((function(i){return R(e,r,t,this,n.concat(i))}));return r})),y.partial=_((function(e,t){var n=y.partial.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return R(e,r,this,this,a)};return r})),y.partial.placeholder=y,y.bindAll=_((function(e,t){var n=(t=C(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=y.bind(e[r],e)}})),y.memoize=function(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return S(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n},y.delay=_((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),y.defer=y.partial(y.delay,y,1),y.throttle=function(e,t,n){var r,i,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:y.now(),r=null,a=e.apply(i,o),r||(i=o=null)},l=function(){var l=y.now();s||!1!==n.leading||(s=l);var u=t-(l-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=l,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,u)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l},y.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=_((function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=y.delay(o,t,this,a);return i}));return a.cancel=function(){clearTimeout(r),r=null},a},y.wrap=function(e,t){return y.partial(t,e)},y.negate=function(e){return function(){return!e.apply(this,arguments)}},y.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},y.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},y.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},y.once=y.partial(y.before,2),y.restArguments=_;var N=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(e,t){var n=B.length,r=e.constructor,i=y.isFunction(r)&&r.prototype||s,o="constructor";for(S(e,o)&&!y.contains(t,o)&&t.push(o);n--;)(o=B[n])in e&&e[o]!==i[o]&&!y.contains(t,o)&&t.push(o)};y.keys=function(e){if(!y.isObject(e))return[];if(h)return h(e);var t=[];for(var n in e)S(e,n)&&t.push(n);return N&&L(e,t),t},y.allKeys=function(e){if(!y.isObject(e))return[];var t=[];for(var n in e)t.push(n);return N&&L(e,t),t},y.values=function(e){for(var t=y.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},y.mapObject=function(e,t,n){t=w(t,n);for(var r=y.keys(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o},y.pairs=function(e){for(var t=y.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},y.invert=function(e){for(var t={},n=y.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},y.functions=y.methods=function(e){var t=[];for(var n in e)y.isFunction(e[n])&&t.push(n);return t.sort()};var U=function(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,c=0;c<s;c++){var l=a[c];t&&void 0!==n[l]||(n[l]=o[l])}return n}};y.extend=U(y.allKeys),y.extendOwn=y.assign=U(y.keys),y.findKey=function(e,t,n){t=w(t,n);for(var r,i=y.keys(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r};var F,q,z=function(e,t,n){return t in n};y.pick=_((function(e,t){var n={},r=t[0];if(null==e)return n;y.isFunction(r)?(t.length>1&&(r=v(r,t[1])),t=y.allKeys(e)):(r=z,t=C(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n})),y.omit=_((function(e,t){var n,r=t[0];return y.isFunction(r)?(r=y.negate(r),t.length>1&&(n=t[1])):(t=y.map(C(t,!1,!1),String),r=function(e,n){return!y.contains(t,n)}),y.pick(e,r,n)})),y.defaults=U(y.allKeys,!0),y.create=function(e,t){var n=k(e);return t&&y.extendOwn(n,t),n},y.clone=function(e){return y.isObject(e)?y.isArray(e)?e.slice():y.extend({},e):e},y.tap=function(e,t){return t(e),e},y.isMatch=function(e,t){var n=y.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},F=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&q(e,t,n,r)},q=function(e,t,n,r){e instanceof y&&(e=e._wrapped),t instanceof y&&(t=t._wrapped);var i=f.call(e);if(i!==f.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return c.valueOf.call(e)===c.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(y.isFunction(a)&&a instanceof a&&y.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var l=(n=n||[]).length;l--;)if(n[l]===e)return r[l]===t;if(n.push(e),r.push(t),o){if((l=e.length)!==t.length)return!1;for(;l--;)if(!F(e[l],t[l],n,r))return!1}else{var u,d=y.keys(e);if(l=d.length,y.keys(t).length!==l)return!1;for(;l--;)if(u=d[l],!S(t,u)||!F(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0},y.isEqual=function(e,t){return F(e,t)},y.isEmpty=function(e){return null==e||(A(e)&&(y.isArray(e)||y.isString(e)||y.isArguments(e))?0===e.length:0===y.keys(e).length)},y.isElement=function(e){return!(!e||1!==e.nodeType)},y.isArray=p||function(e){return"[object Array]"===f.call(e)},y.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},y.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],(function(e){y["is"+e]=function(t){return f.call(t)==="[object "+e+"]"}})),y.isArguments(arguments)||(y.isArguments=function(e){return S(e,"callee")});var V=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof V&&(y.isFunction=function(e){return"function"==typeof e||!1}),y.isFinite=function(e){return!y.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},y.isNaN=function(e){return y.isNumber(e)&&isNaN(e)},y.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===f.call(e)},y.isNull=function(e){return null===e},y.isUndefined=function(e){return void 0===e},y.has=function(e,t){if(!y.isArray(t))return S(e,t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(null==e||!d.call(e,i))return!1;e=e[i]}return!!n},y.noConflict=function(){return i._=o,this},y.identity=function(e){return e},y.constant=function(e){return function(){return e}},y.noop=function(){},y.property=function(e){return y.isArray(e)?function(t){return O(t,e)}:x(e)},y.propertyOf=function(e){return null==e?function(){}:function(t){return y.isArray(t)?O(e,t):e[t]}},y.matcher=y.matches=function(e){return e=y.extendOwn({},e),function(t){return y.isMatch(t,e)}},y.times=function(e,t,n){var r=Array(Math.max(0,e));t=v(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},y.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},y.now=Date.now||function(){return(new Date).getTime()};var H={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},$=y.invert(H),K=function(e){var t=function(t){return e[t]},n="(?:"+y.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};y.escape=K(H),y.unescape=K($),y.result=function(e,t,n){y.isArray(t)||(t=[t]);var r=t.length;if(!r)return y.isFunction(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=y.isFunction(o)?o.call(e):o}return e};var W=0;y.uniqueId=function(e){var t=++W+"";return e?e+t:t},y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var G=/(.)^/,J={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Q=/\\|'|\r|\n|\u2028|\u2029/g,Y=function(e){return"\\"+J[e]};y.template=function(e,t,n){!t&&n&&(t=n),t=y.defaults({},t,y.templateSettings);var r,i=RegExp([(t.escape||G).source,(t.interpolate||G).source,(t.evaluate||G).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(i,(function(t,n,r,i,s){return a+=e.slice(o,s).replace(Q,Y),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t})),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,y)},c=t.variable||"obj";return s.source="function("+c+"){\n"+a+"}",s},y.chain=function(e){var t=y(e);return t._chain=!0,t};var Z=function(e,t){return e._chain?y(t).chain():t};y.mixin=function(e){return y.each(y.functions(e),(function(t){var n=y[t]=e[t];y.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),Z(this,n.apply(y,e))}})),y},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=a[e];y.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],Z(this,n)}})),y.each(["concat","join","slice"],(function(e){var t=a[e];y.prototype[e]=function(){return Z(this,t.apply(this._wrapped,arguments))}})),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return y}.apply(t,[]))||(n.exports=r)}()}).call(this,n(12),n(71)(e))},function(e,t,n){(t=e.exports=n(243)).Stream=t,t.Readable=t,t.Writable=n(154),t.Duplex=n(65),t.Transform=n(246),t.PassThrough=n(450)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DecUtils=void 0;const r=n(112);class i{static trim(e){let t="string"==typeof e?e:e.toString();if(t.indexOf(".")<0)return t;for(let e=t.length-1;e>=0&&"0"===t[e];e--)t=t.slice(0,e);return t.length>0&&"."===t[t.length-1]&&(t=t.slice(0,t.length-1)),t}static getPrecisionDec(e){if(i.precisions[e.toString()])return i.precisions[e.toString()];let t=new r.Dec(1);for(let n=0;n<e;n++)t=t.mul(new r.Dec(10));return i.precisions[e.toString()]=t,t}}t.DecUtils=i,i.precisions={}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h}));var r=n(0),i=n.n(r),o=n(947),a=n(1070),s=n(402),c=n(388),l=n(827),u=n.n(l);const f=({img:e,title:t,paragraph:n,yes:o,no:a,onConfirm:l,onReject:f})=>i.a.createElement("div",{className:u.a.dialog},i.a.createElement("div",{className:u.a.bodyContainer},e||null,t?i.a.createElement("h1",null,t):null,i.a.createElement("p",null,n)),i.a.createElement("div",{className:u.a.buttons},i.a.createElement(s.a,{type:"button",size:"sm",color:"default",outline:!0,onClick:Object(r.useCallback)(e=>{f&&f(),e.preventDefault()},[f])},a||i.a.createElement(c.a,{id:"confirm.no"})),i.a.createElement(s.a,{type:"button",size:"sm",color:"primary",onClick:Object(r.useCallback)(e=>{l&&l(),e.preventDefault()},[l])},o||i.a.createElement(c.a,{id:"confirm.yes"})))),d=Object(r.createContext)(void 0),p=({children:e})=>{const[t,n]=Object(r.useState)(!1),[s,c]=Object(r.useState)(null),l=Object(r.useCallback)(e=>(s&&s.reject(),new Promise(t=>{let r=!1;c(Object.assign({},e,{resolve:()=>{r||(r=!0,n(!1),t(!0))},reject:()=>{r||(r=!0,n(!1),t(!1))}})),n(!0)})),[s]),p=Object(r.useCallback)(()=>{c(null)},[]);return i.a.createElement(d.Provider,{value:Object(r.useMemo)(()=>({confirm:l}),[l])},i.a.createElement(o.a,{isOpen:t,centered:!0,className:u.a.modalDialog,onClosed:p},i.a.createElement(a.a,{className:u.a.modal},i.a.createElement(f,{img:null==s?void 0:s.img,title:null==s?void 0:s.title,paragraph:(null==s?void 0:s.paragraph)?s.paragraph:"Unexpected. Something is wrong.",yes:null==s?void 0:s.yes,no:null==s?void 0:s.no,onConfirm:null==s?void 0:s.resolve,onReject:null==s?void 0:s.reject}))),e)};function h(){const e=Object(r.useContext)(d);if(!e)throw new Error("You probably forgot to use ConfirmProvider");return e}},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(226),a=n(0),s=n.n(a),c=n(1),l=n.n(c),u=n(10),f=n.n(u),d=n(893),p=n(8);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b=m(m({},d.Transition.propTypes),{},{children:l.a.oneOfType([l.a.arrayOf(l.a.node),l.a.node]),tag:p.p,baseClass:l.a.string,baseClassActive:l.a.string,className:l.a.string,cssModule:l.a.object,innerRef:l.a.oneOfType([l.a.object,l.a.string,l.a.func])}),y=m(m({},d.Transition.defaultProps),{},{tag:"div",baseClass:"fade",baseClassActive:"show",timeout:p.d.Fade,appear:!0,enter:!0,exit:!0,in:!0});function g(e){var t=e.tag,n=e.baseClass,o=e.baseClassActive,a=e.className,c=e.cssModule,l=e.children,u=e.innerRef,h=Object(i.a)(e,["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"]),m=Object(p.n)(h,p.c),b=Object(p.m)(h,p.c);return s.a.createElement(d.Transition,m,(function(e){var i="entered"===e,d=Object(p.l)(f()(a,n,i&&o),c);return s.a.createElement(t,Object(r.a)({className:d},b,{ref:u}),l)}))}g.propTypes=b,g.defaultProps=y,t.a=g},function(e,t,n){var r=n(37),i=n(1467);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(2),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r,i){var o=n(119);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;g.WritableState=y;var l=Object.create(n(95));l.inherits=n(4);var u={deprecate:n(155)},f=n(244),d=n(153).Buffer,p=i.Uint8Array||function(){};var h,m=n(245);function b(){}function y(e,t){s=s||n(65),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:u,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 f=!1===e.decodeStrings;this.decodeStrings=!f,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 n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),S(e,t))}(e,n,r,t,i);else{var a=k(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||_(e,n),r?c(w,e,n,a,i):w(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function g(e){if(s=s||n(65),!(h.call(g,this)||this instanceof s))return new g(e);this._writableState=new y(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)),f.call(this)}function v(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),S(e,t)}function _(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,v(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,f=n.callback;if(v(e,t,!1,t.objectMode?1:l.length,l,u,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function x(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),S(e,t)}))}function S(e,t){var n=k(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(x,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(g,f),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:u.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]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===g&&(e&&e._writableState instanceof y)}})):h=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof p);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=b),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=d.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else v(e,t,!1,s,r,i,o);return c}(this,i,s,e,t,n)),a},g.prototype.cork=function(){this._writableState.corked++},g.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||_(this,e))},g.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},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,S(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=m.destroy,g.prototype._undestroy=m.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(13),n(223).setImmediate,n(12))},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(12))},function(e,t,n){"use strict";var r=n(4),i=n(250),o=n(7).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function l(e,t,n,r,i,o,a){return c(e+(t&n|~t&r)+i+o|0,a)+t|0}function u(e,t,n,r,i,o,a){return c(e+(t&r|n&~r)+i+o|0,a)+t|0}function f(e,t,n,r,i,o,a){return c(e+(t^n^r)+i+o|0,a)+t|0}function d(e,t,n,r,i,o,a){return c(e+(n^(t|~r))+i+o|0,a)+t|0}r(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=l(n,r,i,o,e[0],3614090360,7),o=l(o,n,r,i,e[1],3905402710,12),i=l(i,o,n,r,e[2],606105819,17),r=l(r,i,o,n,e[3],3250441966,22),n=l(n,r,i,o,e[4],4118548399,7),o=l(o,n,r,i,e[5],1200080426,12),i=l(i,o,n,r,e[6],2821735955,17),r=l(r,i,o,n,e[7],4249261313,22),n=l(n,r,i,o,e[8],1770035416,7),o=l(o,n,r,i,e[9],2336552879,12),i=l(i,o,n,r,e[10],4294925233,17),r=l(r,i,o,n,e[11],2304563134,22),n=l(n,r,i,o,e[12],1804603682,7),o=l(o,n,r,i,e[13],4254626195,12),i=l(i,o,n,r,e[14],2792965006,17),n=u(n,r=l(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=u(o,n,r,i,e[6],3225465664,9),i=u(i,o,n,r,e[11],643717713,14),r=u(r,i,o,n,e[0],3921069994,20),n=u(n,r,i,o,e[5],3593408605,5),o=u(o,n,r,i,e[10],38016083,9),i=u(i,o,n,r,e[15],3634488961,14),r=u(r,i,o,n,e[4],3889429448,20),n=u(n,r,i,o,e[9],568446438,5),o=u(o,n,r,i,e[14],3275163606,9),i=u(i,o,n,r,e[3],4107603335,14),r=u(r,i,o,n,e[8],1163531501,20),n=u(n,r,i,o,e[13],2850285829,5),o=u(o,n,r,i,e[2],4243563512,9),i=u(i,o,n,r,e[7],1735328473,14),n=f(n,r=u(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=f(o,n,r,i,e[8],2272392833,11),i=f(i,o,n,r,e[11],1839030562,16),r=f(r,i,o,n,e[14],4259657740,23),n=f(n,r,i,o,e[1],2763975236,4),o=f(o,n,r,i,e[4],1272893353,11),i=f(i,o,n,r,e[7],4139469664,16),r=f(r,i,o,n,e[10],3200236656,23),n=f(n,r,i,o,e[13],681279174,4),o=f(o,n,r,i,e[0],3936430074,11),i=f(i,o,n,r,e[3],3572445317,16),r=f(r,i,o,n,e[6],76029189,23),n=f(n,r,i,o,e[9],3654602809,4),o=f(o,n,r,i,e[12],3873151461,11),i=f(i,o,n,r,e[15],530742520,16),n=d(n,r=f(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,n,r,i,e[7],1126891415,10),i=d(i,o,n,r,e[14],2878612391,15),r=d(r,i,o,n,e[5],4237533241,21),n=d(n,r,i,o,e[12],1700485571,6),o=d(o,n,r,i,e[3],2399980690,10),i=d(i,o,n,r,e[10],4293915773,15),r=d(r,i,o,n,e[1],2240044497,21),n=d(n,r,i,o,e[8],1873313359,6),o=d(o,n,r,i,e[15],4264355552,10),i=d(i,o,n,r,e[6],2734768916,15),r=d(r,i,o,n,e[13],1309151649,21),n=d(n,r,i,o,e[4],4149444226,6),o=d(o,n,r,i,e[11],3174756917,10),i=d(i,o,n,r,e[2],718787259,15),r=d(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){"use strict";var r=n(73).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(o||i);var a=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){s=!1,l=!0,a||o.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){a=!1,f=!0,s||o.call(t)},p=function(e){o.call(t,e)},h=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?s&&!t._writableState&&(t.on("end",c),t.on("close",c)):(t.on("complete",u),t.on("abort",h),t.req?m():t.on("request",m)),t.on("end",d),t.on("finish",u),!1!==n.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",u),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",h)}}},function(e,t,n){"use strict";var r=n(32);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.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},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.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,n){var r=n(482),i=n(490),o=n(269);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,n){var r={ECB:n(483),CBC:n(484),CFB:n(485),CFB8:n(486),CFB1:n(487),OFB:n(488),CTR:n(267),GCM:n(267)},i=n(269);for(var o in i)i[o].module=r[i[o].mode];e.exports=i},function(e,t,n){var r;function i(e){this.rand=e}if(e.exports=function(e){return r||(r=new i(null)),r.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=n(493);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},function(e,t,n){"use strict";var r=n(78).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"==typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(o||i);var a=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){s=!1,l=!0,a||o.call(t)},f=t._readableState&&t._readableState.endEmitted,d=function(){a=!1,f=!0,s||o.call(t)},p=function(e){o.call(t,e)},h=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new r),o.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),o.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?s&&!t._writableState&&(t.on("end",c),t.on("close",c)):(t.on("complete",u),t.on("abort",h),t.req?m():t.on("request",m)),t.on("end",d),t.on("finish",u),!1!==n.error&&t.on("error",p),t.on("close",h),function(){t.removeListener("complete",u),t.removeListener("abort",h),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("end",d),t.removeListener("error",p),t.removeListener("close",h)}}},function(e,t,n){(function(t){var r=n(506),i=n(62);function o(e){var t,n=e.modulus.byteLength();do{t=new r(i(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,n){var i=function(e){var t=o(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),a=n.modulus.byteLength(),s=new r(e).mul(i.blinder).umod(n.modulus),c=s.toRed(r.mont(n.prime1)),l=s.toRed(r.mont(n.prime2)),u=n.coefficient,f=n.prime1,d=n.prime2,p=c.redPow(n.exponent1).fromRed(),h=l.redPow(n.exponent2).fromRed(),m=p.isub(h).imul(u).umod(f).imul(d);return h.iadd(m).imul(i.unblinder).umod(n.modulus).toArrayLike(t,"be",a)}a.getr=o,e.exports=a}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r,i=t,o=n(70),a=n(281),s=n(33).assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(512)}catch(e){r=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){"use strict";(function(t){var r,i=n(2),o=i.Buffer,a={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(a[r]=i[r]);var s=a.Buffer={};for(r in o)o.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(s[r]=o[r]);if(a.Buffer.prototype=o.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return o(e,t,n)}),s.alloc||(s.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=o(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!a.kStringMaxLength)try{a.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(e){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),e.exports=a}).call(this,n(13))},function(e,t,n){"use strict";const r=n(167).Reporter,i=n(99).EncoderBuffer,o=n(99).DecoderBuffer,a=n(32),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function l(e,t,n){const r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=l;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const e=this._baseState,t={};u.forEach((function(n){t[n]=e[n]}));const n=new this.constructor(t.parent);return n._baseState=t,n},l.prototype._wrap=function(){const e=this._baseState;c.forEach((function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},l.prototype._init=function(e){const 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")},l.prototype._useArgs=function(e){const t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(a(null===t.children),t.children=n,n.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;const t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);const r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){l.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){l.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(n),this}})),l.prototype.use=function(e){a(e);const t=this._baseState;return a(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){const t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){const t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){const t=this._baseState;return a(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){const t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},l.prototype.contains=function(e){const t=this._baseState;return a(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){const n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let r,i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(a=this._peekTag(e,r,n.any),e.isError(a))return a}else{const r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(e){a=!1}e.restore(r)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){const t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());const r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},l.prototype._decodeGeneric=function(e,t,n){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(e,t){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some((function(o){const a=e.save(),s=n.choice[o];try{const n=s._decode(e,t);if(e.isError(n))return!1;r={type:o,value:n},i=!0}catch(t){return e.restore(a),!1}return!0}),this),i?r:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,n){const r=this._baseState;if(null!==r.default&&r.default===e)return;const i=this._encodeValue(e,t,n);return void 0===i||this._skipDefault(i,t,n)?void 0:i},l.prototype._encodeValue=function(e,t,n){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);let o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)a=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");const r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(n){const r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),n))}else null!==i.use?o=this._getUse(i.use,n)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,n=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(e,s,n,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},l.prototype._encodeChoice=function(e,t){const n=this._baseState,r=n.choice[e.type];return r||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.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,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,n){"use strict";const r=n(4);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof o;if(t=r?e:new o(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,n){"use strict";function r(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r(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=r(t.tag)},function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t){var n={Array:function(e){return null!=e&&e.constructor===Array},Boolean:function(e){return"boolean"==typeof e},Function:function(e){return"function"==typeof e},Nil:function(e){return null==e},Number:function(e){return"number"==typeof e},Object:function(e){return"object"==typeof e},String:function(e){return"string"==typeof e},"":function(){return!0}};for(var r in n.Null=n.Nil,n)n[r].toJSON=function(e){return e}.bind(null,r);e.exports=n},function(e,t,n){var r,i,o,a,s,c,l,u;e.exports=(u=n(9),i=(r=u).lib,o=i.WordArray,a=i.Hasher,s=r.algo,c=[],l=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=0;l<80;l++){if(l<16)c[l]=0|e[t+l];else{var u=c[l-3]^c[l-8]^c[l-14]^c[l-16];c[l]=u<<1|u>>>31}var f=(r<<5|r>>>27)+s+c[l];f+=l<20?1518500249+(i&o|~i&a):l<40?1859775393+(i^o^a):l<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,s=a,a=o,o=i<<30|i>>>2,i=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=a._createHelper(l),r.HmacSHA1=a._createHmacHelper(l),u.SHA1)},function(e,t,n){var r,i,o,a;e.exports=(r=n(9),o=(i=r).lib.Base,a=i.enc.Utf8,void(i.algo.HMAC=o.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),o=this._iKey=t.clone(),s=i.words,c=o.words,l=0;l<n;l++)s[l]^=1549556828,c[l]^=909522486;i.sigBytes=o.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pubkeyToAddress=t.rawSecp256k1PubkeyToAddress=void 0;const r=n(50),i=n(39),o=n(126);function a(e,t){if(33!==e.length)throw new Error("Invalid Secp256k1 pubkey length (compressed): "+e.length);const n=r.sha256(e),o=r.ripemd160(n);return i.Bech32.encode(t,o)}t.rawSecp256k1PubkeyToAddress=a,t.pubkeyToAddress=function(e,t){const n=i.fromBase64(e.value);switch(e.type){case o.pubkeyType.secp256k1:return a(n,t);case o.pubkeyType.ed25519:{if(32!==n.length)throw new Error("Invalid Ed25519 pubkey length: "+n.length);const e=r.sha256(n);return i.Bech32.encode(t,e.slice(0,20))}case o.pubkeyType.sr25519:{if(32!==n.length)throw new Error("Invalid Sr25519 pubkey length: "+n.length);const e=r.sha256(n);return i.Bech32.encode(t,e.slice(0,20))}default:throw new Error("Unrecognized public key algorithm")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uint64ToString=t.uint64ToNumber=t.normalizePubkey=t.normalizeLcdApiArray=t.LcdClient=t.BroadcastMode=t.setupSupplyExtension=t.setupStakingExtension=t.setupSlashingExtension=t.setupMintExtension=t.setupGovExtension=t.setupDistributionExtension=t.setupBankExtension=t.setupAuthExtension=void 0;var r=n(629);Object.defineProperty(t,"setupAuthExtension",{enumerable:!0,get:function(){return r.setupAuthExtension}});var i=n(630);Object.defineProperty(t,"setupBankExtension",{enumerable:!0,get:function(){return i.setupBankExtension}});var o=n(631);Object.defineProperty(t,"setupDistributionExtension",{enumerable:!0,get:function(){return o.setupDistributionExtension}});var a=n(632);Object.defineProperty(t,"setupGovExtension",{enumerable:!0,get:function(){return a.setupGovExtension}});var s=n(633);Object.defineProperty(t,"setupMintExtension",{enumerable:!0,get:function(){return s.setupMintExtension}});var c=n(634);Object.defineProperty(t,"setupSlashingExtension",{enumerable:!0,get:function(){return c.setupSlashingExtension}});var l=n(635);Object.defineProperty(t,"setupStakingExtension",{enumerable:!0,get:function(){return l.setupStakingExtension}});var u=n(636);Object.defineProperty(t,"setupSupplyExtension",{enumerable:!0,get:function(){return u.setupSupplyExtension}});var f=n(319);Object.defineProperty(t,"BroadcastMode",{enumerable:!0,get:function(){return f.BroadcastMode}});var d=n(637);Object.defineProperty(t,"LcdClient",{enumerable:!0,get:function(){return d.LcdClient}}),Object.defineProperty(t,"normalizeLcdApiArray",{enumerable:!0,get:function(){return d.normalizeLcdApiArray}});var p=n(638);Object.defineProperty(t,"normalizePubkey",{enumerable:!0,get:function(){return p.normalizePubkey}}),Object.defineProperty(t,"uint64ToNumber",{enumerable:!0,get:function(){return p.uint64ToNumber}}),Object.defineProperty(t,"uint64ToString",{enumerable:!0,get:function(){return p.uint64ToString}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBech32Pubkey=t.encodeAminoPubkey=t.decodeBech32Pubkey=t.decodeAminoPubkey=t.encodeSecp256k1Pubkey=void 0;const r=n(39),i=n(100),o=n(126);t.encodeSecp256k1Pubkey=function(e){if(33!==e.length||2!==e[0]&&3!==e[0])throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:o.pubkeyType.secp256k1,value:r.toBase64(e)}};const a=r.fromHex("eb5ae98721"),s=r.fromHex("1624de6420"),c=r.fromHex("0dfb1005"),l=a.length;function u(e){const t=e.slice(0,l),n=e.slice(l);if(i.arrayContentEquals(t,a)){if(33!==n.length)throw new Error("Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).");return{type:o.pubkeyType.secp256k1,value:r.toBase64(n)}}if(i.arrayContentEquals(t,s)){if(32!==n.length)throw new Error("Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).");return{type:o.pubkeyType.ed25519,value:r.toBase64(n)}}if(i.arrayContentEquals(t,c)){if(32!==n.length)throw new Error("Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).");return{type:o.pubkeyType.sr25519,value:r.toBase64(n)}}throw new Error("Unsupported Pubkey type. Amino prefix: "+r.toHex(t))}function f(e){let t;switch(e.type){case o.pubkeyType.secp256k1:t=a;break;case o.pubkeyType.ed25519:t=s;break;default:throw new Error("Unsupported pubkey type")}return new Uint8Array([...t,...r.fromBase64(e.value)])}t.decodeAminoPubkey=u,t.decodeBech32Pubkey=function(e){const{data:t}=r.Bech32.decode(e);return u(t)},t.encodeAminoPubkey=f,t.encodeBech32Pubkey=function(e,t){return r.Bech32.encode(t,f(e))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Router=void 0;const i=n(325),o=n(107);t.Router=class{constructor(e){this.envProducer=e,this.msgRegistry=new i.MessageRegistry,this.registeredHandler=new Map,this.guards=[],this.port=""}registerMessage(e){this.msgRegistry.registerMessage(e)}addHandler(e,t){if(this.registeredHandler.has(e))throw new Error("Already registered type "+e);this.registeredHandler.set(e,t)}addGuard(e){this.guards.push(e)}handleMessage(e,t){return r(this,void 0,void 0,(function*(){const n=this.msgRegistry.parseMessage(o.JSONUint8Array.unwrap(e)),r=this.envProducer(t);for(const e of this.guards)yield e(r,n,t);n.validateBasic();const i=n.route();if(!i)throw new Error("Null router");const a=this.registeredHandler.get(i);if(!a)throw new Error("Can't get handler");return o.JSONUint8Array.wrap(yield a(r,n))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetPersistentMemoryMsg=t.SetPersistentMemoryMsg=void 0;const r=n(18),i=n(331);class o extends r.Message{constructor(e){super(),this.data=e}static type(){return"set-persistent-memory"}validateBasic(){}route(){return i.ROUTE}type(){return o.type()}}t.SetPersistentMemoryMsg=o;class a extends r.Message{static type(){return"get-persistent-memory"}constructor(){super()}validateBasic(){}route(){return i.ROUTE}type(){return a.type()}}t.GetPersistentMemoryMsg=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TryUpdateChainMsg=void 0;const r=n(18),i=n(337);class o extends r.Message{constructor(e){super(),this.chainId=e}static type(){return"try-update-chain"}validateBasic(){if(!this.chainId)throw new Error("Empty chain id")}route(){return i.ROUTE}type(){return o.type()}}t.TryUpdateChainMsg=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PushEventDataMsg=t.PushInteractionDataMsg=void 0;const r=n(18),i=n(340);class o extends r.Message{constructor(e){super(),this.data=e}static type(){return"push-interaction-data"}validateBasic(){if(!this.data.type)throw new Error("Type should not be empty")}route(){return i.ROUTE}type(){return o.type()}}t.PushInteractionDataMsg=o;class a extends r.Message{constructor(e){super(),this.data=e}static type(){return"push-event-data"}validateBasic(){if(!this.data.type)throw new Error("Type should not be empty")}route(){return i.ROUTE}type(){return a.type()}}t.PushEventDataMsg=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RejectInteractionMsg=t.ApproveInteractionMsg=void 0;const r=n(18),i=n(341);class o extends r.Message{constructor(e,t){super(),this.id=e,this.result=t}static type(){return"approve-interaction"}validateBasic(){}route(){return i.ROUTE}type(){return o.type()}}t.ApproveInteractionMsg=o;class a extends r.Message{constructor(e){super(),this.id=e}static type(){return"reject-interaction"}validateBasic(){}route(){return i.ROUTE}type(){return a.type()}}t.RejectInteractionMsg=a},function(e,t,n){"use strict";var r=n(115);Object.defineProperty(t,"__esModule",{value:!0}),t.errorCodeToString=l,t.processErrorResponse=u,t.getVersion=function(e){return f.apply(this,arguments)},t.ERROR_CODE=t.P1_VALUES=t.PAYLOAD_TYPE=t.INS=t.APP_KEY=t.CHUNK_SIZE=t.CLA=void 0;var i=r(n(129)),o=r(n(130)),a=r(n(683));t.CLA=85;t.CHUNK_SIZE=250;t.APP_KEY="CSM";var s={GET_VERSION:0,INS_PUBLIC_KEY_SECP256K1:1,SIGN_SECP256K1:2,GET_ADDR_SECP256K1:4};t.INS=s;t.PAYLOAD_TYPE={INIT:0,ADD:1,LAST:2};t.P1_VALUES={ONLY_RETRIEVE:0,SHOW_ADDRESS_IN_DEVICE:1};t.ERROR_CODE={NoError:36864};var c={1:"U2F: Unknown",2:"U2F: Bad request",3:"U2F: Configuration unsupported",4:"U2F: Device Ineligible",5:"U2F: Timeout",14:"Timeout",36864:"No errors",36865:"Device is busy",26626:"Error deriving keys",25600:"Execution Error",26368:"Wrong Length",27010:"Empty Buffer",27011:"Output buffer too small",27012:"Data is invalid",27013:"Conditions not satisfied",27014:"Transaction rejected",27264:"Bad key handle",27392:"Invalid P1/P2",27904:"Instruction not supported",28160:"App does not seem to be open",28416:"Unknown error",28417:"Sign/verify error"};function l(e){return e in c?c[e]:"Unknown Status Code: ".concat(e)}function u(e){if(e){if(t=e,!("object"!==(0,a.default)(t)||null===t||t instanceof Array||t instanceof Date)){if(Object.prototype.hasOwnProperty.call(e,"statusCode"))return{return_code:e.statusCode,error_message:l(e.statusCode)};if(Object.prototype.hasOwnProperty.call(e,"return_code")&&Object.prototype.hasOwnProperty.call(e,"error_message"))return e}return{return_code:65535,error_message:e.toString()}}var t;return{return_code:65535,error_message:e.toString()}}function f(){return(f=(0,o.default)(i.default.mark((function e(t){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.send(85,s.GET_VERSION,0,0).then((function(e){var t=e.slice(-2),n=256*t[0]+t[1],r=0;return e.length>=9&&(r=(e[5]<<24)+(e[6]<<16)+(e[7]<<8)+(e[8]<<0)),{return_code:n,error_message:l(n),test_mode:0!==e[0],major:e[1],minor:e[2],patch:e[3],device_locked:1===e[4],target_id:r.toString(16)}}),u));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},function(e,t){const n=/^[0-9]+$/,r=(e,t)=>{const r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}},function(e,t,n){const r=n(40);e.exports=(e,t,n)=>0===r(e,t,n)},function(e,t,n){const r=n(24);e.exports=(e,t,n)=>{const i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}},function(e,t,n){const r=n(40);e.exports=(e,t,n)=>r(e,t,n)<0},function(e,t,n){const r=n(40);e.exports=(e,t,n)=>r(e,t,n)>=0},function(e,t,n){const r=n(40);e.exports=(e,t,n)=>r(e,t,n)<=0},function(e,t,n){const r=n(24),i=n(135),{ANY:o}=i,a=n(41),s=n(136),c=n(134),l=n(185),u=n(187),f=n(186);e.exports=(e,t,n,d)=>{let p,h,m,b,y;switch(e=new r(e,d),t=new a(t,d),n){case">":p=c,h=u,m=l,b=">",y=">=";break;case"<":p=l,h=f,m=c,b="<",y="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let a=null,s=null;if(r.forEach(e=>{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,p(e.semver,a.semver,d)?a=e:m(e.semver,s.semver,d)&&(s=e)}),a.operator===b||a.operator===y)return!1;if((!s.operator||s.operator===b)&&h(e,s.semver))return!1;if(s.operator===y&&m(e,s.semver))return!1}return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LedgerSetWebHIDFlagMsg=t.LedgerGetWebHIDFlagMsg=void 0;const r=n(18),i=n(348);class o extends r.Message{static type(){return"ledger-get-webhid-flag"}constructor(){super()}validateBasic(){}route(){return i.ROUTE}type(){return o.type()}}t.LedgerGetWebHIDFlagMsg=o;class a extends r.Message{constructor(e){super(),this.flag=e}static type(){return"ledger-set-webhid-flag"}validateBasic(){if(null==this.flag)throw new Error("Flag is null")}route(){return i.ROUTE}type(){return a.type()}}t.LedgerSetWebHIDFlagMsg=a},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyRing=t.KeyRingStatus=void 0;const i=n(716),o=n(108),a=n(2),s=n(11);var c;!function(e){e[e.NOTLOADED=0]="NOTLOADED",e[e.EMPTY=1]="EMPTY",e[e.LOCKED=2]="LOCKED",e[e.UNLOCKED=3]="UNLOCKED"}(c=t.KeyRingStatus||(t.KeyRingStatus={}));class l{constructor(e,t,n,r){this.embedChainInfos=e,this.kvStore=t,this.ledgerKeeper=n,this.rng=r,this.cached=new Map,this.password="",this.loaded=!1,this.keyStore=null,this.multiKeyStore=[]}get type(){if(this.keyStore){const e=this.keyStore.type;if(null==e)return"mnemonic";if("mnemonic"!==e&&"privateKey"!==e&&"ledger"!==e)throw new Error("Invalid type of key store");return e}return"none"}isLocked(){return null==this.privateKey&&null==this.mnemonic&&null==this.ledgerPublicKey}get privateKey(){return this._privateKey}set privateKey(e){this._privateKey=e,this._mnemonic=void 0,this._ledgerPublicKey=void 0,this.cached=new Map}get mnemonic(){return this._mnemonic}set mnemonic(e){this._mnemonic=e,this._privateKey=void 0,this._ledgerPublicKey=void 0,this.cached=new Map}get ledgerPublicKey(){return this._ledgerPublicKey}set ledgerPublicKey(e){this._mnemonic=void 0,this._privateKey=void 0,this._ledgerPublicKey=e,this.cached=new Map}get status(){return this.loaded?this.keyStore?this.isLocked()?c.LOCKED:c.UNLOCKED:c.EMPTY:c.NOTLOADED}getKeyStoreCoinType(e){if(this.keyStore&&this.keyStore.coinTypeForChain)return this.keyStore.coinTypeForChain[s.ChainIdHelper.parse(e).identifier]}getKey(e,t){return this.loadKey(this.computeKeyStoreCoinType(e,t))}getKeyStoreMeta(e){var t;return this.keyStore&&null!=this.keyStore.meta&&null!==(t=this.keyStore.meta[e])&&void 0!==t?t:""}computeKeyStoreCoinType(e,t){var n;if(!this.keyStore)throw new Error("Key Store is empty");return this.keyStore.coinTypeForChain&&null!==(n=this.keyStore.coinTypeForChain[s.ChainIdHelper.parse(e).identifier])&&void 0!==n?n:t}getKeyFromCoinType(e){return this.loadKey(e)}createMnemonicKey(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this.status!==c.EMPTY)throw new Error("Key ring is not loaded or not empty");this.mnemonic=e,this.keyStore=yield l.CreateMnemonicKeyStore(this.rng,e,t,yield this.assignKeyStoreIdMeta(n),i),this.password=t,this.multiKeyStore.push(this.keyStore),yield this.save()}))}createPrivateKey(e,t,n){return r(this,void 0,void 0,(function*(){if(this.status!==c.EMPTY)throw new Error("Key ring is not loaded or not empty");this.privateKey=e,this.keyStore=yield l.CreatePrivateKeyStore(this.rng,e,t,yield this.assignKeyStoreIdMeta(n)),this.password=t,this.multiKeyStore.push(this.keyStore),yield this.save()}))}createLedgerKey(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this.status!==c.EMPTY)throw new Error("Key ring is not loaded or not empty");this.ledgerPublicKey=yield this.ledgerKeeper.getPublicKey(e,i);const r=yield l.CreateLedgerKeyStore(this.rng,this.ledgerPublicKey,t,yield this.assignKeyStoreIdMeta(n),i);this.password=t,this.keyStore=r,this.multiKeyStore.push(this.keyStore),yield this.save()}))}lock(){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");this.mnemonic=void 0,this.privateKey=void 0,this.ledgerPublicKey=void 0,this.password=""}unlock(e){return r(this,void 0,void 0,(function*(){if(!this.keyStore||"none"===this.type)throw new Error("Key ring not initialized");if("mnemonic"===this.type)this.mnemonic=a.Buffer.from(yield i.Crypto.decrypt(this.keyStore,e)).toString();else if("privateKey"===this.type)this.privateKey=a.Buffer.from(a.Buffer.from(yield i.Crypto.decrypt(this.keyStore,e)).toString(),"hex");else{if("ledger"!==this.type)throw new Error("Unexpected type of keyring");this.ledgerPublicKey=a.Buffer.from(a.Buffer.from(yield i.Crypto.decrypt(this.keyStore,e)).toString(),"hex")}this.password=e}))}save(){return r(this,void 0,void 0,(function*(){yield this.kvStore.set("key-store",this.keyStore),yield this.kvStore.set("key-multi-store",this.multiKeyStore)}))}restore(){return r(this,void 0,void 0,(function*(){const e=yield this.kvStore.get("key-store");this.keyStore=e||null;const t=yield this.kvStore.get("key-multi-store");t?this.multiKeyStore=t:(e?(e.meta=yield this.assignKeyStoreIdMeta({}),this.multiKeyStore=[e]):this.multiKeyStore=[],yield this.save());let n=!1;this.keyStore&&("1"!==this.keyStore.version&&"1.1"!==this.keyStore.version||(n=!0,this.updateLegacyKeyStore(this.keyStore)));for(const e of this.multiKeyStore)"1"!==e.version&&"1.1"!==e.version||(n=!0,this.updateLegacyKeyStore(e));n&&(yield this.save()),this.loaded=!0}))}updateLegacyKeyStore(e){e.version="1.2";for(const t of this.embedChainInfos){const n=t.alternativeBIP44s&&t.alternativeBIP44s.length>0?t.alternativeBIP44s[0].coinType:t.bip44.coinType;e.coinTypeForChain=Object.assign(Object.assign({},e.coinTypeForChain),{[s.ChainIdHelper.parse(t.chainId).identifier]:n})}}isKeyStoreCoinTypeSet(e){if(!this.keyStore)throw new Error("Empty key store");return this.keyStore.coinTypeForChain&&void 0!==this.keyStore.coinTypeForChain[s.ChainIdHelper.parse(e).identifier]}setKeyStoreCoinType(e,t){return r(this,void 0,void 0,(function*(){if(!this.keyStore)throw new Error("Empty key store");if(this.keyStore.coinTypeForChain&&void 0!==this.keyStore.coinTypeForChain[s.ChainIdHelper.parse(e).identifier])throw new Error("Coin type already set");this.keyStore.coinTypeForChain=Object.assign(Object.assign({},this.keyStore.coinTypeForChain),{[s.ChainIdHelper.parse(e).identifier]:t});const n=this.multiKeyStore.find(e=>l.getKeyStoreId(e)===l.getKeyStoreId(this.keyStore));n&&(n.coinTypeForChain=Object.assign({},this.keyStore.coinTypeForChain)),yield this.save()}))}deleteKeyRing(e,t){return r(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");if(this.password!==t)throw new Error("Invalid password");const n=this.multiKeyStore[e];if(!n)throw new Error("Empty key store");const r=this.multiKeyStore.slice(0,e).concat(this.multiKeyStore.slice(e+1));return yield i.Crypto.decrypt(n,t),this.keyStore&&l.getKeyStoreId(n)===l.getKeyStoreId(this.keyStore)&&(r.length>0?(yield this.lock(),this.keyStore=r[0],yield this.unlock(t)):(this.keyStore=null,this.mnemonic=void 0,this.privateKey=void 0)),this.multiKeyStore=r,yield this.save(),this.getMultiKeyStoreInfo()}))}updateNameKeyRing(e,t){return r(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");const n=this.multiKeyStore[e];if(!n)throw new Error("Empty key store");return n.meta=Object.assign(Object.assign({},n.meta),{name:t}),this.keyStore&&l.getKeyStoreId(this.keyStore)===l.getKeyStoreId(n)&&(this.keyStore=n),yield this.save(),this.getMultiKeyStoreInfo()}))}loadKey(e){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");if(!this.keyStore)throw new Error("Key Store is empty");if("ledger"===this.keyStore.type){if(!this.ledgerPublicKey)throw new Error("Ledger public key not set");const e=new o.PubKeySecp256k1(this.ledgerPublicKey);return{algo:"secp256k1",pubKey:e.toBytes(),address:e.getAddress(),isNanoLedger:!0}}{const t=this.loadPrivKey(e).getPubKey();return{algo:"secp256k1",pubKey:t.toBytes(),address:t.getAddress(),isNanoLedger:!1}}}loadPrivKey(e){if(this.status!==c.UNLOCKED||"none"===this.type||!this.keyStore)throw new Error("Key ring is not unlocked");const t=l.getKeyStoreBIP44Path(this.keyStore);if("mnemonic"===this.type){const n=`m/44'/${e}'/${t.account}'/${t.change}/${t.addressIndex}`,r=this.cached.get(n);if(r)return new o.PrivKeySecp256k1(r);if(!this.mnemonic)throw new Error("Key store type is mnemonic and it is unlocked. But, mnemonic is not loaded unexpectedly");const i=o.Mnemonic.generateWalletFromMnemonic(this.mnemonic,n);return this.cached.set(n,i),new o.PrivKeySecp256k1(i)}if("privateKey"===this.type){if(!this.privateKey)throw new Error("Key store type is private key and it is unlocked. But, private key is not loaded unexpectedly");return new o.PrivKeySecp256k1(this.privateKey)}throw new Error("Unexpected type of keyring")}sign(e,t,n,i){return r(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");if(!this.keyStore)throw new Error("Key Store is empty");if("ledger"===this.keyStore.type){const t=this.ledgerPublicKey;if(!t)throw new Error("Ledger public key is not initialized");return yield this.ledgerKeeper.sign(e,l.getKeyStoreBIP44Path(this.keyStore),t,i)}{const e=this.computeKeyStoreCoinType(t,n);return this.loadPrivKey(e).sign(i)}}))}showKeyRing(e,t){return r(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED)throw new Error("Key ring is not unlocked");if(this.password!==t)throw new Error("Invalid password");const n=this.multiKeyStore[e];if(!n)throw new Error("Empty key store");return n.type,a.Buffer.from(yield i.Crypto.decrypt(n,t)).toString()}))}get canSetPath(){return"mnemonic"===this.type||"ledger"===this.type}addMnemonicKey(e,t,n){return r(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED||""==this.password)throw new Error("Key ring is locked or not initialized");const r=yield l.CreateMnemonicKeyStore(this.rng,e,this.password,yield this.assignKeyStoreIdMeta(t),n);return this.multiKeyStore.push(r),yield this.save(),this.getMultiKeyStoreInfo()}))}addPrivateKey(e,t){return r(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED||""==this.password)throw new Error("Key ring is locked or not initialized");const n=yield l.CreatePrivateKeyStore(this.rng,e,this.password,yield this.assignKeyStoreIdMeta(t));return this.multiKeyStore.push(n),yield this.save(),this.getMultiKeyStoreInfo()}))}addLedgerKey(e,t,n){return r(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED||""==this.password)throw new Error("Key ring is locked or not initialized");const r=yield this.ledgerKeeper.getPublicKey(e,n),i=yield l.CreateLedgerKeyStore(this.rng,r,this.password,yield this.assignKeyStoreIdMeta(t),n);return this.multiKeyStore.push(i),yield this.save(),this.getMultiKeyStoreInfo()}))}changeKeyStoreFromMultiKeyStore(e){return r(this,void 0,void 0,(function*(){if(this.status!==c.UNLOCKED||""==this.password)throw new Error("Key ring is locked or not initialized");const t=this.multiKeyStore[e];if(!t)throw new Error("Invalid keystore");return this.keyStore=t,yield this.unlock(this.password),yield this.save(),this.getMultiKeyStoreInfo()}))}getMultiKeyStoreInfo(){const e=[];for(const t of this.multiKeyStore)e.push({version:t.version,type:t.type,meta:t.meta,coinTypeForChain:t.coinTypeForChain,bip44HDPath:t.bip44HDPath,selected:!!this.keyStore&&l.getKeyStoreId(t)===l.getKeyStoreId(this.keyStore)});return e}static CreateMnemonicKeyStore(e,t,n,o,a){return r(this,void 0,void 0,(function*(){return yield i.Crypto.encrypt(e,"mnemonic",t,n,o,a)}))}static CreatePrivateKeyStore(e,t,n,o){return r(this,void 0,void 0,(function*(){return yield i.Crypto.encrypt(e,"privateKey",a.Buffer.from(t).toString("hex"),n,o)}))}static CreateLedgerKeyStore(e,t,n,o,s){return r(this,void 0,void 0,(function*(){return yield i.Crypto.encrypt(e,"ledger",a.Buffer.from(t).toString("hex"),n,o,s)}))}assignKeyStoreIdMeta(e){return r(this,void 0,void 0,(function*(){return Object.assign({},e,{__id__:(yield this.getIncrementalNumber()).toString()})}))}static getKeyStoreId(e){var t;const n=null===(t=e.meta)||void 0===t?void 0:t.__id__;if(!n)throw new Error("Key store's id is empty");return n}static getKeyStoreBIP44Path(e){return e.bip44HDPath?(l.validateBIP44Path(e.bip44HDPath),e.bip44HDPath):{account:0,change:0,addressIndex:0}}static validateBIP44Path(e){if(!Number.isInteger(e.account)||e.account<0)throw new Error("Invalid account in hd path");if(!Number.isInteger(e.change)||0!==e.change&&1!==e.change)throw new Error("Invalid change in hd path");if(!Number.isInteger(e.addressIndex)||e.addressIndex<0)throw new Error("Invalid address index in hd path")}getIncrementalNumber(){return r(this,void 0,void 0,(function*(){let e=yield this.kvStore.get("incrementalNumber");return void 0===e&&(e=0),e++,yield this.kvStore.set("incrementalNumber",e),e}))}}t.KeyRing=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetKeyStoreCoinTypeMsg=t.GetIsKeyStoreCoinTypeSetMsg=t.ChangeKeyRingMsg=t.GetMultiKeyStoreInfoMsg=t.GetKeyRingTypeMsg=t.RequestSignDirectMsg=t.RequestSignAminoMsg=t.GetKeyMsg=t.UnlockKeyRingMsg=t.LockKeyRingMsg=t.AddLedgerKeyMsg=t.AddPrivateKeyMsg=t.CreateLedgerKeyMsg=t.CreatePrivateKeyMsg=t.AddMnemonicKeyMsg=t.CreateMnemonicKeyMsg=t.ShowKeyRingMsg=t.UpdateNameKeyRingMsg=t.DeleteKeyRingMsg=t.RestoreKeyRingMsg=void 0;const r=n(18),i=n(353),o=n(190),a=n(11),s=n(69),c=n(11);class l extends r.Message{static type(){return"restore-keyring"}constructor(){super()}validateBasic(){}route(){return i.ROUTE}type(){return l.type()}}t.RestoreKeyRingMsg=l;class u extends r.Message{constructor(e,t){super(),this.index=e,this.password=t}static type(){return"delete-keyring"}validateBasic(){if(!Number.isInteger(this.index))throw new Error("Invalid index");if(!this.password)throw new Error("password not set")}route(){return i.ROUTE}type(){return u.type()}}t.DeleteKeyRingMsg=u;class f extends r.Message{constructor(e,t){super(),this.index=e,this.name=t}static type(){return"update-name-keyring"}validateBasic(){if(!Number.isInteger(this.index))throw new Error("Invalid index");if(!this.name)throw new Error("name not set")}route(){return i.ROUTE}type(){return f.type()}}t.UpdateNameKeyRingMsg=f;class d extends r.Message{constructor(e,t){super(),this.index=e,this.password=t}static type(){return"show-keyring"}validateBasic(){if(!Number.isInteger(this.index))throw new Error("Invalid index");if(!this.password)throw new Error("password not set")}route(){return i.ROUTE}type(){return d.type()}}t.ShowKeyRingMsg=d;class p extends r.Message{constructor(e,t,n,r){super(),this.mnemonic=e,this.password=t,this.meta=n,this.bip44HDPath=r}static type(){return"create-mnemonic-key"}validateBasic(){if(!this.mnemonic)throw new Error("mnemonic not set");if(!this.password)throw new Error("password not set");try{s.mnemonicToEntropy(this.mnemonic)}catch(e){if("Invalid mnemonic checksum"!==e.message)throw e}o.KeyRing.validateBIP44Path(this.bip44HDPath)}route(){return i.ROUTE}type(){return p.type()}}t.CreateMnemonicKeyMsg=p;class h extends r.Message{constructor(e,t,n){super(),this.mnemonic=e,this.meta=t,this.bip44HDPath=n}static type(){return"add-mnemonic-key"}validateBasic(){if(!this.mnemonic)throw new Error("mnemonic not set");try{s.mnemonicToEntropy(this.mnemonic)}catch(e){if("Invalid mnemonic checksum"!==e.message)throw e}o.KeyRing.validateBIP44Path(this.bip44HDPath)}route(){return i.ROUTE}type(){return h.type()}}t.AddMnemonicKeyMsg=h;class m extends r.Message{constructor(e,t,n){super(),this.privateKey=e,this.password=t,this.meta=n}static type(){return"create-private-key"}validateBasic(){if(!this.privateKey||0===this.privateKey.length)throw new Error("private key not set");if(32!==this.privateKey.length)throw new Error("invalid length of private key");if(!this.password)throw new Error("password not set")}route(){return i.ROUTE}type(){return m.type()}}t.CreatePrivateKeyMsg=m;class b extends r.Message{constructor(e,t,n){super(),this.password=e,this.meta=t,this.bip44HDPath=n}static type(){return"create-ledger-key"}validateBasic(){if(!this.password)throw new Error("password not set");o.KeyRing.validateBIP44Path(this.bip44HDPath)}route(){return i.ROUTE}type(){return b.type()}}t.CreateLedgerKeyMsg=b;class y extends r.Message{constructor(e,t){super(),this.privateKey=e,this.meta=t}static type(){return"add-private-key"}validateBasic(){if(!this.privateKey||0===this.privateKey.length)throw new Error("private key not set");if(32!==this.privateKey.length)throw new Error("invalid length of private key")}route(){return i.ROUTE}type(){return y.type()}}t.AddPrivateKeyMsg=y;class g extends r.Message{constructor(e,t){super(),this.meta=e,this.bip44HDPath=t}static type(){return"add-ledger-key"}validateBasic(){o.KeyRing.validateBIP44Path(this.bip44HDPath)}route(){return i.ROUTE}type(){return g.type()}}t.AddLedgerKeyMsg=g;class v extends r.Message{static type(){return"lock-keyring"}constructor(){super()}validateBasic(){}route(){return i.ROUTE}type(){return v.type()}}t.LockKeyRingMsg=v;class w extends r.Message{constructor(e=""){super(),this.password=e}static type(){return"unlock-keyring"}validateBasic(){if(!this.password)throw new Error("password not set")}route(){return i.ROUTE}type(){return w.type()}}t.UnlockKeyRingMsg=w;class _ extends r.Message{constructor(e){super(),this.chainId=e}static type(){return"get-key"}validateBasic(){if(!this.chainId)throw new Error("chain id not set")}approveExternal(){return!0}route(){return i.ROUTE}type(){return _.type()}}t.GetKeyMsg=_;class k extends r.Message{constructor(e,t,n,r={}){super(),this.chainId=e,this.signer=t,this.signDoc=n,this.signOptions=r}static type(){return"request-sign-amino"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.signer)throw new Error("signer not set");if(a.Bech32Address.validate(this.signer),this.signDoc.chain_id!==this.chainId)throw new Error("Chain id in the message is not matched with the requested chain id");if(!this.signOptions)throw new Error("Sign options are null")}approveExternal(){return!0}route(){return i.ROUTE}type(){return k.type()}}t.RequestSignAminoMsg=k;class x extends r.Message{constructor(e,t,n,r={}){super(),this.chainId=e,this.signer=t,this.signDocBytes=n,this.signOptions=r}static type(){return"request-sign-direct"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.signer)throw new Error("signer not set");a.Bech32Address.validate(this.signer);if(c.cosmos.tx.v1beta1.SignDoc.decode(this.signDocBytes).chainId!==this.chainId)throw new Error("Chain id in the message is not matched with the requested chain id");if(!this.signOptions)throw new Error("Sign options are null")}approveExternal(){return!0}route(){return i.ROUTE}type(){return x.type()}}t.RequestSignDirectMsg=x;class S extends r.Message{static type(){return"get-keyring-type"}constructor(){super()}validateBasic(){}route(){return i.ROUTE}type(){return S.type()}}t.GetKeyRingTypeMsg=S;class O extends r.Message{static type(){return"get-multi-key-store-info"}constructor(){super()}validateBasic(){}route(){return i.ROUTE}type(){return O.type()}}t.GetMultiKeyStoreInfoMsg=O;class E extends r.Message{constructor(e){super(),this.index=e}static type(){return"change-keyring"}validateBasic(){if(this.index<0)throw new Error("Index is negative");if(!Number.isInteger(this.index))throw new Error("Invalid index")}route(){return i.ROUTE}type(){return E.type()}}t.ChangeKeyRingMsg=E;class T extends r.Message{constructor(e,t){super(),this.chainId=e,this.paths=t}static type(){return"get-is-keystore-coin-type-set"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(0===this.paths.length)throw new Error("empty bip44 path list")}route(){return i.ROUTE}type(){return T.type()}}t.GetIsKeyStoreCoinTypeSetMsg=T;class A extends r.Message{constructor(e,t){super(),this.chainId=e,this.coinType=t}static type(){return"set-keystore-coin-type"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(this.coinType<0)throw new Error("coin type can not be negative");if(!Number.isInteger(this.coinType))throw new Error("coin type should be integer")}route(){return i.ROUTE}type(){return A.type()}}t.SetKeyStoreCoinTypeMsg=A},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RemovePermissionOrigin=t.GetPermissionOriginsMsg=t.EnableAccessMsg=void 0;const r=n(18),i=n(354);class o extends r.Message{constructor(e){super(),this.chainIds=e}static type(){return"enable-access"}validateBasic(){if(!this.chainIds||0===this.chainIds.length)throw new Error("chain id not set")}route(){return i.ROUTE}approveExternal(){return!0}type(){return o.type()}}t.EnableAccessMsg=o;class a extends r.Message{constructor(e,t){super(),this.chainId=e,this.permissionType=t}static type(){return"get-permission-origins"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.permissionType)throw new Error("empty permission type")}route(){return i.ROUTE}type(){return a.type()}}t.GetPermissionOriginsMsg=a;class s extends r.Message{constructor(e,t,n){super(),this.chainId=e,this.permissionType=t,this.permissionOrigin=n}static type(){return"remove-permission-origin"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.permissionType)throw new Error("empty permission type");if(!this.permissionOrigin)throw new Error("empty permission origin")}route(){return i.ROUTE}type(){return s.type()}}t.RemovePermissionOrigin=s},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.makeSignBytes=t.makeSignDoc=t.makeAuthInfoBytes=void 0;const i=r(n(113)),o=n(356),a=n(355);t.makeAuthInfoBytes=function(e,t,n,r,s=o.SignMode.SIGN_MODE_DIRECT){const c={signerInfos:e.map(e=>({publicKey:e,modeInfo:{single:{mode:s}},sequence:i.default.fromNumber(r)})),fee:{amount:[...t],gasLimit:i.default.fromNumber(n)}};return a.AuthInfo.encode(a.AuthInfo.fromPartial(c)).finish()},t.makeSignDoc=function(e,t,n,r){return{bodyBytes:e,authInfoBytes:t,chainId:n,accountNumber:i.default.fromNumber(r)}},t.makeSignBytes=function({accountNumber:e,authInfoBytes:t,bodyBytes:n,chainId:r}){const i=a.SignDoc.fromPartial({accountNumber:e,authInfoBytes:t,bodyBytes:n,chainId:r});return a.SignDoc.encode(i).finish()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42);function i(e){if(!r.isNonNullObject(e))throw new Error("Attribute must be a non-null object");const{key:t,value:n}=e;if("string"!=typeof t||!t)throw new Error("Attribute's key must be a non-empty string");if("string"!=typeof n&&void 0!==n)throw new Error("Attribute's value must be a string or unset");return{key:t,value:n||""}}function o(e){if(!r.isNonNullObject(e))throw new Error("Event must be a non-null object");const{type:t,attributes:n}=e;if("string"!=typeof t||""===t)throw new Error("Event type must be a non-empty string");if(!Array.isArray(n))throw new Error("Event's attributes must be an array");return{type:t,attributes:n.map(i)}}function a(e){if(!r.isNonNullObject(e))throw new Error("Log must be a non-null object");const{msg_index:t,log:n,events:i}=e;if("number"!=typeof t)throw new Error("Log's msg_index must be a number");if("string"!=typeof n)throw new Error("Log's log must be a string");if(!Array.isArray(i))throw new Error("Log's events must be an array");return{msg_index:t,log:n,events:i.map(o)}}t.parseAttribute=i,t.parseEvent=o,t.parseLog=a,t.parseLogs=function(e){if(!Array.isArray(e))throw new Error("Logs must be an array");return e.map(a)},t.findAttribute=function(e,t,n){var r,i;const o=null===(i=null===(r=e.find(()=>!0))||void 0===r?void 0:r.events.find(e=>e.type===t))||void 0===i?void 0:i.attributes.find(e=>e.key===n);if(!o)throw new Error(`Could not find attribute '${n}' in first event of type '${t}' in first log.`);return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(742);Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return r.fromAscii}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return r.toAscii}});var i=n(743);Object.defineProperty(t,"fromBase64",{enumerable:!0,get:function(){return i.fromBase64}}),Object.defineProperty(t,"toBase64",{enumerable:!0,get:function(){return i.toBase64}});var o=n(744);Object.defineProperty(t,"Bech32",{enumerable:!0,get:function(){return o.Bech32}});var a=n(745);Object.defineProperty(t,"fromHex",{enumerable:!0,get:function(){return a.fromHex}}),Object.defineProperty(t,"toHex",{enumerable:!0,get:function(){return a.toHex}});var s=n(746);Object.defineProperty(t,"fromRfc3339",{enumerable:!0,get:function(){return s.fromRfc3339}}),Object.defineProperty(t,"toRfc3339",{enumerable:!0,get:function(){return s.toRfc3339}});var c=n(747);Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return c.fromUtf8}}),Object.defineProperty(t,"toUtf8",{enumerable:!0,get:function(){return c.toUtf8}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42),{toUtf8:i}=r.Encoding;function o(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return e.map(o);return Object.keys(e).sort().reduce((t,n)=>Object.assign(Object.assign({},t),{[n]:o(e[n])}),{})}t.marshalTx=function(e){const t=JSON.stringify(e);return r.Encoding.toUtf8(t)},t.makeSignBytes=function(e,t,n,r,a,s){const c=o({account_number:a.toString(),chain_id:n,fee:t,memo:r,msgs:e,sequence:s.toString()});return i(JSON.stringify(c))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(42),o=r(n(68)),a=r(n(368));function s(e){return e||[]}var c;function l(e){return void 0!==e.error}function u(e){if(l(e))throw new Error(e.error);return e.result}function f(e){var t;if(null===(t=e.response)||void 0===t?void 0:t.data){let t;const n=e.response.data;throw t=n.error&&"string"==typeof n.error?n.error:"string"==typeof n?n:JSON.stringify(n),new Error(`${t} (HTTP ${e.response.status})`)}throw e}!function(e){e.Block="block",e.Sync="sync",e.Async="async"}(c=t.BroadcastMode||(t.BroadcastMode={}));t.RestClient=class{constructor(e,t=c.Block,n){this.client=o.default.create({baseURL:e,headers:{post:{"Content-Type":"application/json"}}}),this.broadcastMode=t,this.enigmautils=new a.default(e,n),this.codeHashCache=new Map}async get(e){const{data:t}=await this.client.get(e).catch(f);if(null===t)throw new Error("Received null response from server");return t}async post(e,t){if(!i.isNonNullObject(t))throw new Error("Got unexpected type of params. Expected object.");const{data:n}=await this.client.post(e,t).catch(f);if(null===n)throw new Error("Received null response from server");return n}async authAccounts(e){const t="/auth/accounts/"+e,n=await this.get(t);if("cosmos-sdk/Account"!==n.result.type)throw new Error("Unexpected response data format");return n}async blocksLatest(){const e=await this.get("/blocks/latest");if(!e.block)throw new Error("Unexpected response data format");return e}async blocks(e){const t=await this.get("/blocks/"+e);if(!t.block)throw new Error("Unexpected response data format");return t}async nodeInfo(){const e=await this.get("/node_info");if(!e.node_info)throw new Error("Unexpected response data format");return e}async txById(e,t=!0){const n=await this.get("/txs/"+e);if(!n.tx)throw new Error("Unexpected response data format");return t?this.decryptTxsResponse(n):n}async txsQuery(e){const t=await this.get("/txs?"+e);if(!t.txs)throw new Error("Unexpected response data format");const n=t;for(let e=0;e<n.txs.length;e++)n.txs[e]=await this.decryptTxsResponse(n.txs[e]);return n}async encodeTx(e){const t=await this.post("/txs/encode",e);if(!t.tx)throw new Error("Unexpected response data format");return i.Encoding.fromBase64(t.tx)}async postTx(e){const t={tx:e,mode:this.broadcastMode},n=await this.post("/txs",t);if(!n.txhash)throw new Error("Unexpected response data format");return n}async listCodeInfo(){const e=await this.get("/wasm/code");return s(await u(e))}async getCode(e){const t="/wasm/code/"+e,n=await this.get(t);return await u(n)}async listContractsByCodeId(e){const t=`/wasm/code/${e}/contracts`,n=await this.get(t);return s(await u(n))}async getCodeHashByCodeId(e){const t=this.codeHashCache.get(e);if("string"==typeof t)return t;const n=`/wasm/code/${e}/hash`,r=await this.get(n);return this.codeHashCache.set(e,r.result),r.result}async getCodeHashByContractAddr(e){const t=this.codeHashCache.get(e);if("string"==typeof t)return t;const n=`/wasm/contract/${e}/code-hash`,r=await this.get(n);return this.codeHashCache.set(e,r.result),r.result}async getContractInfo(e){const t="/wasm/contract/"+e,n=await this.get(t);return await u(n)}async queryContractSmart(e,t,n){const r=await this.getCodeHashByContractAddr(e),o=await this.enigmautils.encrypt(r,t),a=o.slice(0,32),s=`/wasm/contract/${e}/query/${i.Encoding.toHex(i.Encoding.toUtf8(i.Encoding.toBase64(o)))}?encoding=hex&${new URLSearchParams(n).toString()}`;let c;try{c=await this.get(s)}catch(e){try{const t=/contract failed: encrypted: (.+?) \(HTTP 500\)/g.exec(e.message);if(null==t||2!=t.length)throw e;const n=t[1],r=i.Encoding.fromBase64(n),o=await this.enigmautils.decrypt(r,a);e.message=e.message.replace(n,i.Encoding.fromUtf8(o))}catch(t){throw new Error(`Failed to decrypt the following error message: ${e.message}.`)}throw e}if(l(c))throw new Error(JSON.stringify(await this.enigmautils.decrypt(i.Encoding.fromBase64(c.error),a)));return JSON.parse(i.Encoding.fromUtf8(i.Encoding.fromBase64(i.Encoding.fromUtf8(await this.enigmautils.decrypt(i.Encoding.fromBase64(c.result.smart),a)))))}async getMasterCerts(e,t){return this.get("/register/master-cert")}async decryptDataField(e="",t){const n=i.Encoding.fromHex(e);let r;for(const e of t)try{return i.Encoding.fromBase64(i.Encoding.fromUtf8(await this.enigmautils.decrypt(n,e)))}catch(e){r=e}throw r}async decryptLogs(e,t){for(const n of e)for(const e of n.events)if("wasm"===e.type)for(const n of t){let t=!1;for(const r of e.attributes){try{r.key=i.Encoding.fromUtf8(await this.enigmautils.decrypt(i.Encoding.fromBase64(r.key),n)),t=!0}catch(e){}try{r.value=i.Encoding.fromUtf8(await this.enigmautils.decrypt(i.Encoding.fromBase64(r.value),n)),t=!0}catch(e){}}}return e}async decryptTxsResponse(e){if(1===e.tx.value.msg.length){const t=e.tx.value.msg[0];let n;if("wasm/MsgExecuteContract"===t.type)n=i.Encoding.fromBase64(t.value.msg);else{if("wasm/MsgInstantiateContract"!==t.type)return e;n=i.Encoding.fromBase64(t.value.init_msg)}const r=n.slice(32,64);if(i.Encoding.toBase64(await this.enigmautils.getPubkey())===i.Encoding.toBase64(r)){const r=n.slice(0,32),o=i.Encoding.fromUtf8(await this.enigmautils.decrypt(n.slice(64),r));let a;"wasm/MsgExecuteContract"===t.type?e.tx.value.msg[0].value.msg=o:"wasm/MsgInstantiateContract"===t.type&&(e.tx.value.msg[0].value.init_msg=o),e.data=await this.decryptDataField(e.data,[r]),e.logs&&(a=await this.decryptLogs(e.logs,[r]),e=Object.assign({},e,{logs:a}));const s=/contract failed: encrypted: (.+?): failed to execute message; message index: 0/g.exec(e.raw_log);if(Array.isArray(s)&&2===s.length){const t=s[1],n=i.Encoding.fromBase64(t),o=await this.enigmautils.decrypt(n,r);e.raw_log=e.raw_log.replace(t,i.Encoding.fromUtf8(o))}}}return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super(e),Object.setPrototypeOf(this,r.prototype)}}t.IntegrityError=r;class i extends Error{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}t.NotImplementedError=i},function(e,t,n){"use strict";function r(e,t){if(e.length!==t.length)return 0;let n=0;for(let r=0;r<e.length;r++)n|=e[r]^t[r];return 1&n-1>>>8}Object.defineProperty(t,"__esModule",{value:!0}),t.select=function(e,t,n){return~(e-1)&t|e-1&n},t.compare=r,t.equal=function(e,t){return 0!==e.length&&0!==t.length&&0!==r(e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wipe=function(e){for(let t=0;t<e.length;t++)e[t]=0;return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xor=function(e,t){for(let n=0;n<t.length;n++)e[n]^=t[n]}},function(e,t,n){"use strict";e.exports=function(e,t){return function(n,r){var i=2*r,o=2*t;n[i]=e[o],n[i+1]=e[o+1]}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(42),o=r(n(798)),a=n(104);t.encodeSecp256k1Pubkey=function(e){if(33!==e.length||2!==e[0]&&3!==e[0])throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:a.pubkeyType.secp256k1,value:i.Encoding.toBase64(e)}};const s=i.Encoding.fromHex("eb5ae98721"),c=i.Encoding.fromHex("1624de6420"),l=i.Encoding.fromHex("0dfb1005"),u=s.length;t.decodeBech32Pubkey=function(e){const{data:t}=i.Bech32.decode(e),n=t.slice(0,u),r=t.slice(u);if(o.default(n,s)){if(33!==r.length)throw new Error("Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).");return{type:a.pubkeyType.secp256k1,value:i.Encoding.toBase64(r)}}if(o.default(n,c)){if(32!==r.length)throw new Error("Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).");return{type:a.pubkeyType.ed25519,value:i.Encoding.toBase64(r)}}if(o.default(n,l)){if(32!==r.length)throw new Error("Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).");return{type:a.pubkeyType.sr25519,value:i.Encoding.toBase64(r)}}throw new Error("Unsupported Pubkey type. Amino prefix: "+i.Encoding.toHex(n))},t.encodeBech32Pubkey=function(e,t){let n;switch(e.type){case a.pubkeyType.secp256k1:n=s;break;default:throw new Error("Unsupported pubkey type")}const r=new Uint8Array([...n,...i.Encoding.fromBase64(e.value)]);return i.Bech32.encode(t,r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42),i=n(203),o=n(104);t.encodeSecp256k1Signature=function(e,t){if(64!==t.length)throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:i.encodeSecp256k1Pubkey(e),signature:r.Encoding.toBase64(t)}},t.decodeSignature=function(e){switch(e.pub_key.type){case o.pubkeyType.secp256k1:return{pubkey:r.Encoding.fromBase64(e.pub_key.value),signature:r.Encoding.fromBase64(e.signature)};default:throw new Error("Unsupported pubkey type")}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetTxEncryptionKeyMsg=t.RequestDecryptMsg=t.ReqeustEncryptMsg=t.GetPubkeyMsg=void 0;const r=n(18),i=n(378);class o extends r.Message{constructor(e){super(),this.chainId=e}static type(){return"get-pubkey-msg"}validateBasic(){if(!this.chainId)throw new Error("chain id not set")}approveExternal(){return!0}route(){return i.ROUTE}type(){return o.type()}}t.GetPubkeyMsg=o;class a extends r.Message{constructor(e,t,n){super(),this.chainId=e,this.contractCodeHash=t,this.msg=n}static type(){return"request-encrypt-msg"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.contractCodeHash)throw new Error("contract code hash not set");if(!this.msg)throw new Error("msg not set")}approveExternal(){return!0}route(){return i.ROUTE}type(){return a.type()}}t.ReqeustEncryptMsg=a;class s extends r.Message{constructor(e,t,n){super(),this.chainId=e,this.cipherText=t,this.nonce=n}static type(){return"request-decrypt-msg"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.cipherText||0===this.cipherText.length)throw new Error("ciphertext not set");if(!this.nonce||0===this.nonce.length)throw new Error("nonce not set")}approveExternal(){return!0}route(){return i.ROUTE}type(){return s.type()}}t.RequestDecryptMsg=s;class c extends r.Message{constructor(e,t){super(),this.chainId=e,this.nonce=t}static type(){return"get-tx-encryption-key-msg"}validateBasic(){if(!this.chainId)throw new Error("chain id not set");if(!this.nonce)throw new Error("nonce is null")}approveExternal(){return!0}route(){return i.ROUTE}type(){return c.type()}}t.GetTxEncryptionKeyMsg=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SendTxMsg=void 0;const r=n(18),i=n(380);class o extends r.Message{constructor(e,t,n){super(),this.chainId=e,this.tx=t,this.mode=n}static type(){return"send-tx-to-background"}validateBasic(){if(!this.chainId)throw new Error("chain id is empty");if(!this.tx)throw new Error("tx is empty");if(!this.mode||"sync"!==this.mode&&"async"!==this.mode&&"block"!==this.mode)throw new Error("invalid mode")}approveExternal(){return!0}route(){return i.ROUTE}type(){return o.type()}}t.SendTxMsg=o},function(e,t,n){const r=n(84);e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n(131).SEMVER_SPEC_VERSION,SemVer:n(24),compareIdentifiers:n(182).compareIdentifiers,rcompareIdentifiers:n(182).rcompareIdentifiers,parse:n(85),valid:n(686),clean:n(687),inc:n(688),diff:n(689),major:n(690),minor:n(691),patch:n(692),prerelease:n(693),compare:n(40),rcompare:n(694),compareLoose:n(695),compareBuild:n(184),sort:n(696),rsort:n(697),gt:n(134),lt:n(185),eq:n(183),neq:n(346),gte:n(186),lte:n(187),cmp:n(347),coerce:n(698),Comparator:n(135),Range:n(41),satisfies:n(136),toComparators:n(702),maxSatisfying:n(703),minSatisfying:n(704),minVersion:n(705),validRange:n(706),outside:n(188),gtr:n(707),ltr:n(708),intersects:n(709),simplifyRange:n(710),subset:n(711)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return I})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return C})),n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return D}));var r=n(91),i=n.n(r),o=n(402),a=n(1553),s=n(388),c=n(869);const l=({style:e})=>i.a.createElement("svg",{style:e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"48px",height:"48px"},i.a.createElement("path",{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12c0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24c0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}),i.a.createElement("path",{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}),i.a.createElement("path",{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}),i.a.createElement("path",{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571c0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"}));var u=n(1045),f=n.n(u),d=n(14),p=n(146),h=n(92),m=n.n(h),b=n(34),y=n(889),g=n(1051),v=n.n(g),w=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class _{constructor(e){this.typeOfLoginMap=new Map,this.torusSDK=new v.a(e)}addLoginType(e,t){this.typeOfLoginMap.set(e,t)}signIn(e,t){return w(this,void 0,void 0,(function*(){const n=this.typeOfLoginMap.get(e);if(!n)throw new Error("Invalid login type");const r=yield n.getUserInfo(),i=yield this.torusSDK.getTorusKey(t,r.verifierId,{verifier_id:r.verifierId},r.idToken||r.accessToken);return Object.assign(Object.assign({},i),{userInfo:Object.assign({verifier:t},r)})}))}}var k=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class x{constructor(e){this.clientId=e}getUserInfo(){return k(this,void 0,void 0,(function*(){const e=Math.floor(1e4*Math.random()).toString(),t=encodeURIComponent(window.btoa(JSON.stringify({instanceId:e,redirectToOpener:!1}))),n=browser.identity.getRedirectURL(),r=new URL("https://accounts.google.com/o/oauth2/v2/auth");r.searchParams.append("response_type",x.RESPONSE_TYPE),r.searchParams.append("client_id",this.clientId),r.searchParams.append("state",t),r.searchParams.append("scope",x.SCOPE),r.searchParams.append("redirect_uri",n),r.searchParams.append("nonce",e),r.searchParams.append("prompt",x.PROMPT);const i=yield browser.identity.launchWebAuthFlow({url:r.href,interactive:!0}),o=new URL(i).hash,a=new URLSearchParams(o),s=a.get("id_token"),c=a.get("access_token"),l=yield fetch("https://www.googleapis.com/userinfo/v2/me",{mode:"cors",cache:"no-cache",method:"GET",headers:{Authorization:"Bearer "+c}});if(l.ok){const e=yield l.json(),{picture:t="",email:n="",name:r=""}=e;return{email:n,name:r,profileImage:t,verifierId:n.toLowerCase(),typeOfLogin:"google",accessToken:c,idToken:s}}throw l}))}}x.RESPONSE_TYPE="token id_token",x.SCOPE="profile email openid",x.PROMPT="consent select_account";var S=n(2),O=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const E=Object(d.a)(({registerConfig:e})=>i.a.createElement(i.a.Fragment,null,i.a.createElement(o.a,{color:"primary",outline:!0,block:!0,onClick:t=>{t.preventDefault(),e.setType("torus-sign-in")},style:{display:"flex",justifyContent:"center",alignItems:"center"}},i.a.createElement(l,{style:{width:"16px",height:"16px",marginRight:"8px",transform:"translateY(-1px)"}}),i.a.createElement(s.a,{id:"torus.sign-in.google"})),i.a.createElement("div",{style:{marginTop:"8px",display:"flex",justifyContent:"center",alignItems:"center"}},i.a.createElement("a",{className:f.a.torus,href:"https://tor.us/",target:"_blank",rel:"noopener noreferrer"},"Powered by Torus")),i.a.createElement("hr",null))),T=Object(d.a)(({registerConfig:e})=>{const t=Object(c.a)(),{register:n,handleSubmit:r,getValues:l,errors:u}=Object(p.a)({defaultValues:{name:"",password:"",confirmPassword:""}});return i.a.createElement("div",null,i.a.createElement("div",{className:m.a.title},t.formatMessage({id:"torus.sign-in.google"})),i.a.createElement(a.a,{className:m.a.formContainer,onSubmit:r(t=>O(void 0,void 0,void 0,(function*(){try{const n=new _({baseUrl:browser.extension.getURL(""),network:"mainnet"});n.addLoginType("google",new x("413984222848-8r7u4ip9i6htppalo6jopu5qbktto6mi.apps.googleusercontent.com"));const r=yield n.signIn("google","chainapsis-google");yield e.createPrivateKey(t.name,S.Buffer.from(r.privateKey,"hex"),t.password)}catch(t){alert(t.message?t.message:t.toString()),e.clear()}})))},i.a.createElement(b.e,{label:t.formatMessage({id:"register.name"}),type:"text",name:"name",ref:n({required:t.formatMessage({id:"register.name.error.required"})}),error:u.name&&u.name.message}),"create"===e.mode?i.a.createElement(i.a.Fragment,null,i.a.createElement(b.e,{label:t.formatMessage({id:"register.create.input.password"}),type:"password",name:"password",ref:n({required:t.formatMessage({id:"register.create.input.password.error.required"}),validate:e=>{if(e.length<8)return t.formatMessage({id:"register.create.input.password.error.too-short"})}}),error:u.password&&u.password.message}),i.a.createElement(b.e,{label:t.formatMessage({id:"register.create.input.confirm-password"}),type:"password",name:"confirmPassword",ref:n({required:t.formatMessage({id:"register.create.input.confirm-password.error.required"}),validate:e=>{if(e!==l().password)return t.formatMessage({id:"register.create.input.confirm-password.error.unmatched"})}}),error:u.confirmPassword&&u.confirmPassword.message})):null,i.a.createElement(o.a,{color:"primary",type:"submit",block:!0,"data-loading":e.isLoading},i.a.createElement(s.a,{id:"register.create.button.next"}))),i.a.createElement(y.a,{onClick:()=>{e.clear()}}))});var A=n(1056),M=n(1057);const I="https://mainnet.infura.io/v3/eeb00e81cdb2410098d5a270eff9b341",P=[{currency:"usd",symbol:"$",maxDecimals:2,locale:"en-US"},{currency:"eur",symbol:"€",maxDecimals:2,locale:"de-DE"},{currency:"gbp",symbol:"£",maxDecimals:2,locale:"en-GB"},{currency:"cad",symbol:"CA$",maxDecimals:2,locale:"en-CA"},{currency:"aud",symbol:"AU$",maxDecimals:2,locale:"en-AU"},{currency:"rub",symbol:"₽",maxDecimals:0,locale:"ru"},{currency:"krw",symbol:"₩",maxDecimals:0,locale:"ko-KR"},{currency:"hkd",symbol:"HK$",maxDecimals:1,locale:"en-HK"},{currency:"cny",symbol:"¥",maxDecimals:1,locale:"zh-CN"},{currency:"jpy",symbol:"¥",maxDecimals:0,locale:"ja-JP"},{currency:"inr",symbol:"₹",maxDecimals:1,locale:"en-IN"}],C={default:"usd",ko:"krw"},j=[{type:"torus-sign-in",intro:E,page:T}],D={en:A,ko:M}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(983),t),i(n(1268),t),i(n(1269),t),i(n(1270),t)},function(e,t,n){"use strict";n.d(t,"b",(function(){return U})),n.d(t,"a",(function(){return F}));var r=n(0),i=n.n(r),o=n(838),a=n(30);const s=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function c({locale:e,formats:t,onError:n},r,i={}){const{format:o}=i,c=o&&Object(a.g)(t,"number",o,n)||{};return r(e,Object(a.f)(i,s,c))}function l(e,t,n,r={}){try{return c(e,t,r).format(n)}catch(t){e.onError(Object(a.b)("Error formatting number.",t))}return String(n)}function u(e,t,n,r={}){try{return c(e,t,r).formatToParts(n)}catch(t){e.onError(Object(a.b)("Error formatting number.",t))}return[]}const f=["numeric","style"];function d(e,t,n,r,i={}){r||(r="second");Intl.RelativeTimeFormat||e.onError(Object(a.b)('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return function({locale:e,formats:t,onError:n},r,i={}){const{format:o}=i,s=!!o&&Object(a.g)(t,"relative",o,n)||{};return r(e,Object(a.f)(i,f,s))}(e,t,i).format(n,r)}catch(t){e.onError(Object(a.b)("Error formatting relative time.",t))}return String(n)}const p=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function h({locale:e,formats:t,onError:n,timeZone:r},i,o,s={}){const{format:c}=s,l=Object.assign(Object.assign({},r&&{timeZone:r}),c&&Object(a.g)(t,i,c,n));let u=Object(a.f)(s,p,l);return"time"!==i||u.hour||u.minute||u.second||(u=Object.assign(Object.assign({},u),{hour:"numeric",minute:"numeric"})),o(e,u)}function m(e,t,n,r={}){const i="string"==typeof n?new Date(n||0):n;try{return h(e,"date",t,r).format(i)}catch(t){e.onError(Object(a.b)("Error formatting date.",t))}return String(i)}function b(e,t,n,r={}){const i="string"==typeof n?new Date(n||0):n;try{return h(e,"time",t,r).format(i)}catch(t){e.onError(Object(a.b)("Error formatting time.",t))}return String(i)}function y(e,t,n,r={}){const i="string"==typeof n?new Date(n||0):n;try{return h(e,"date",t,r).formatToParts(i)}catch(t){e.onError(Object(a.b)("Error formatting date.",t))}return[]}function g(e,t,n,r={}){const i="string"==typeof n?new Date(n||0):n;try{return h(e,"time",t,r).formatToParts(i)}catch(t){e.onError(Object(a.b)("Error formatting time.",t))}return[]}const v=["localeMatcher","type"];function w({locale:e,onError:t},n,r,i={}){Intl.PluralRules||t(Object(a.b)('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));const o=Object(a.f)(i,v);try{return n(e,o).select(r)}catch(e){t(Object(a.b)("Error formatting plural.",e))}return"other"}var _=n(862),k=n(842),x=n.n(k);const S=["localeMatcher","type","style"],O=Date.now();function E({locale:e,onError:t},n,r,i={}){Intl.ListFormat||t(Object(a.b)('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));const o=Object(a.f)(i,S);try{const t={},i=r.map((e,n)=>{if("object"==typeof e){const r=function(e){return`${O}_${e}_${O}`}(n);return t[r]=e,r}return String(e)});if(!Object.keys(t).length)return n(e,o).format(i);return n(e,o).formatToParts(i).reduce((e,n)=>{const r=n.value;return t[r]?e.push(t[r]):"string"==typeof e[e.length-1]?e[e.length-1]+=r:e.push(r),e},[])}catch(e){t(Object(a.b)("Error formatting list.",e))}return r}const T=["localeMatcher","style","type","fallback"];function A({locale:e,onError:t},n,r,i={}){Intl.DisplayNames||t(Object(a.b)('Intl.DisplayNames is not available in this environment.\nTry polyfilling it using "@formatjs/intl-displaynames"\n'));const o=Object(a.f)(i,T);try{return n(e,o).of(r)}catch(e){t(Object(a.b)("Error formatting display name.",e))}}const M=x.a||k;function I(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function P(e,t){const n=Object(a.c)(t),r=Object.assign(Object.assign({},a.a),e),{locale:i,defaultLocale:o,onError:s}=r;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(Object(a.b)(`Missing locale data for locale: "${i}" in Intl.NumberFormat. Using default locale: "${o}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(Object(a.b)(`Missing locale data for locale: "${i}" in Intl.DateTimeFormat. Using default locale: "${o}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`)):(s&&s(Object(a.b)(`"locale" was not configured, using "${o}" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details`)),r.locale=r.defaultLocale||"en"),Object.assign(Object.assign({},r),{formatters:n,formatNumber:l.bind(null,r,n.getNumberFormat),formatNumberToParts:u.bind(null,r,n.getNumberFormat),formatRelativeTime:d.bind(null,r,n.getRelativeTimeFormat),formatDate:m.bind(null,r,n.getDateTimeFormat),formatDateToParts:y.bind(null,r,n.getDateTimeFormat),formatTime:b.bind(null,r,n.getDateTimeFormat),formatTimeToParts:g.bind(null,r,n.getDateTimeFormat),formatPlural:w.bind(null,r,n.getPluralRules),formatMessage:_.b.bind(null,r,n),formatHTMLMessage:_.a.bind(null,r,n),formatList:E.bind(null,r,n.getListFormat),formatDisplayName:A.bind(null,r,n.getDisplayNames)})}class C extends r.PureComponent{constructor(){super(...arguments),this.cache=Object(a.d)(),this.state={cache:this.cache,intl:P(I(this.props),this.cache),prevConfig:I(this.props)}}static getDerivedStateFromProps(e,{prevConfig:t,cache:n}){const r=I(e);return M(t,r)?null:{intl:P(r,n),prevConfig:r}}render(){return Object(a.h)(this.state.intl),r.createElement(o.b,{value:this.state.intl},this.props.children)}}C.displayName="IntlProvider",C.defaultProps=a.a;var j=n(933),D=n(1042);const R={en:j,ko:D};function N(e,t){return Object.assign({},j,R[t],e[t])}function B(e){const t=localStorage.getItem("language")||navigator.language.split(/[-_]/)[0];return R[t]||e[t]?t:"en"}const L=i.a.createContext(null),U=()=>{const e=i.a.useContext(L);if(!e)throw new Error("You have forgot to use language provider");return e},F=({additionalMessages:e,languageToFiatCurrency:t,children:n})=>{const[o,a]=Object(r.useState)(()=>B(e)),[s,c]=Object(r.useState)(null==localStorage.getItem("language")),[l,u]=Object(r.useState)(N(e,o));Object(r.useEffect)(()=>{document.body.setAttribute("data-lang",o)},[o]),Object(r.useEffect)(()=>{u(N(e,o))},[e,o]);const[f,d]=Object(r.useState)(localStorage.getItem("fiat-currency"));let p=f;if(null===p){const e=localStorage.getItem("fiat-currency");p=null!==e?e:t[o]||t.default}const h=null===f;return i.a.createElement(L.Provider,{value:{language:o,automatic:s,setLanguage:e=>{localStorage.setItem("language",e),a(e),c(!1)},clearLanguage:()=>{localStorage.removeItem("language"),a(B(e)),c(!0)},fiatCurrency:p,setFiatCurrency:e=>{null===e?localStorage.removeItem("fiat-currency"):localStorage.setItem("fiat-currency",e),d(e)},isFiatCurrencyAutomatic:h}},i.a.createElement(C,{locale:o,messages:l,key:`${o}${s?"-auto":""}`},n))}},function(e,t,n){var r=n(37),i=n(1377);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1503);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(147),i=n(1119),o=n(957),a=n(1125),s=n(62),c=n(6),l=function(e,t){var n=[];return t.forEach((function(t){if("object"==typeof t.components){if("tuple"!==t.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var i="",o=t.type.indexOf("[");o>=0&&(i=t.type.substring(o));var a=l(e,t.components);r.isArray(a)&&e?n.push("tuple("+a.join(",")+")"+i):e?n.push("("+a+")"):n.push("("+a.join(",")+")"+i)}else n.push(t.type)})),n},u=function(e){if(!o.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.");var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n<r;n+=2){var i=parseInt(e.substr(n,2),16);t+=String.fromCharCode(i)}return t},f=function(e){if(!e)return"0x00";for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n).toString(16);t+=r.length<2?"0"+r:r}return"0x"+t},d=function(e){if(e=e?e.toLowerCase():"ether",!i.unitMap[e])throw new Error('This unit "'+e+"\" doesn't exist, please use the one of the following units"+JSON.stringify(i.unitMap,null,2));return e};e.exports={_fireError:function(e,t,n,i,o){return!r.isObject(e)||e instanceof Error||!e.data||((r.isObject(e.data)||r.isArray(e.data))&&(e.data=JSON.stringify(e.data,null,2)),e=e.message+"\n"+e.data),r.isString(e)&&(e=new Error(e)),r.isFunction(i)&&i(e,o),r.isFunction(n)&&((t&&r.isFunction(t.listeners)&&t.listeners("error").length||r.isFunction(i))&&t.catch((function(){})),setTimeout((function(){n(e)}),1)),t&&r.isFunction(t.emit)&&setTimeout((function(){t.emit("error",e,o),t.removeAllListeners()}),1),t},_jsonInterfaceMethodToString:function(e){return r.isObject(e)&&e.name&&-1!==e.name.indexOf("(")?e.name:e.name+"("+l(!1,e.inputs).join(",")+")"},_flattenTypes:l,randomHex:function(e){return"0x"+s(e).toString("hex")},_:r,BN:o.BN,isBN:o.isBN,isBigNumber:o.isBigNumber,isHex:o.isHex,isHexStrict:o.isHexStrict,sha3:o.sha3,sha3Raw:o.sha3Raw,keccak256:o.sha3,soliditySha3:a.soliditySha3,soliditySha3Raw:a.soliditySha3Raw,encodePacked:a.encodePacked,isAddress:o.isAddress,checkAddressChecksum:o.checkAddressChecksum,toChecksumAddress:function(e){if(void 0===e)return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(e))throw new Error('Given address "'+e+'" is not a valid Ethereum address.');e=e.toLowerCase().replace(/^0x/i,"");for(var t=o.sha3(e).replace(/^0x/i,""),n="0x",r=0;r<e.length;r++)parseInt(t[r],16)>7?n+=e[r].toUpperCase():n+=e[r];return n},toHex:o.toHex,toBN:o.toBN,bytesToHex:o.bytesToHex,hexToBytes:o.hexToBytes,hexToNumberString:o.hexToNumberString,hexToNumber:o.hexToNumber,toDecimal:o.hexToNumber,numberToHex:o.numberToHex,fromDecimal:o.numberToHex,hexToUtf8:o.hexToUtf8,hexToString:o.hexToUtf8,toUtf8:o.hexToUtf8,stripHexPrefix:o.stripHexPrefix,utf8ToHex:o.utf8ToHex,stringToHex:o.utf8ToHex,fromUtf8:o.utf8ToHex,hexToAscii:u,toAscii:u,asciiToHex:f,fromAscii:f,unitMap:i.unitMap,toWei:function(e,t){if(t=d(t),!o.isBN(e)&&!r.isString(e))throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(e)?i.toWei(e,t):i.toWei(e,t).toString(10)},fromWei:function(e,t){if(t=d(t),!o.isBN(e)&&!r.isString(e))throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(e)?i.fromWei(e,t):i.fromWei(e,t).toString(10)},padLeft:o.leftPad,leftPad:o.leftPad,padRight:o.rightPad,rightPad:o.rightPad,toTwosComplement:o.toTwosComplement,isBloom:o.isBloom,isUserEthereumAddressInBloom:o.isUserEthereumAddressInBloom,isContractAddressInBloom:o.isContractAddressInBloom,isTopic:o.isTopic,isTopicInBloom:o.isTopicInBloom,isInBloom:o.isInBloom,compareBlockNumbers:function(e,t){if(e==t)return 0;if("genesis"!=e&&"earliest"!=e&&0!=e||"genesis"!=t&&"earliest"!=t&&0!=t){if("genesis"==e||"earliest"==e)return-1;if("genesis"==t||"earliest"==t)return 1;if("latest"==e)return"pending"==t?-1:1;if("latest"===t)return"pending"==e?1:-1;if("pending"==e)return 1;if("pending"==t)return-1;{let n=new c(e),r=new c(t);return n.lt(r)?-1:n.eq(r)?0:1}}return 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1043),i=n.n(r),o=n(16);function a(e){return"0x"+i.a.keccak_256(Object(o.a)(e))}},function(e,t,n){var r=t;r.utils=n(392),r.common=n(859),r.sha=n(1419),r.ripemd=n(1423),r.hmac=n(1424),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1054),i=n.n(r),o=n(17);function a(e){return"0x"+i.a.keccak_256(Object(o.a)(e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return uo})),n.d(t,"b",(function(){return ao}));var r={};n.r(r),n.d(r,"reversed",(function(){return Q})),n.d(r,"mirrored",(function(){return Y})),n.d(r,"createReversedEasing",(function(){return Z})),n.d(r,"createMirroredEasing",(function(){return X})),n.d(r,"createExpoIn",(function(){return ee})),n.d(r,"createBackIn",(function(){return te})),n.d(r,"createAnticipateEasing",(function(){return ne})),n.d(r,"linear",(function(){return re})),n.d(r,"easeIn",(function(){return ie})),n.d(r,"easeOut",(function(){return oe})),n.d(r,"easeInOut",(function(){return ae})),n.d(r,"circIn",(function(){return se})),n.d(r,"circOut",(function(){return ce})),n.d(r,"circInOut",(function(){return le})),n.d(r,"backIn",(function(){return ue})),n.d(r,"backOut",(function(){return fe})),n.d(r,"backInOut",(function(){return de})),n.d(r,"anticipate",(function(){return pe})),n.d(r,"bounceOut",(function(){return he})),n.d(r,"bounceIn",(function(){return me})),n.d(r,"bounceInOut",(function(){return be})),n.d(r,"cubicBezier",(function(){return xe}));var i=n(3),o=n(0);var a=0,s="undefined"!=typeof window&&void 0!==window.requestAnimationFrame?function(e){return window.requestAnimationFrame(e)}:function(e){var t=Date.now(),n=Math.max(0,16.7-(t-a));a=t+n,setTimeout((function(){return e(a)}),n)},c=1/60*1e3,l=!0,u=!1,f=!1,d={delta:0,timestamp:0},p=["read","update","preRender","render","postRender"],h=function(e){return u=e},m=p.reduce((function(e,t){var n,r,i,o,a,s,c,l,u;return e[t]=(n=h,r=[],i=[],o=0,a=!1,s=0,c=new WeakSet,l=new WeakSet,u={cancel:function(e){var t=i.indexOf(e);c.add(e),-1!==t&&i.splice(t,1)},process:function(e){var t,f;if(a=!0,r=(t=[i,r])[0],(i=t[1]).length=0,o=r.length)for(s=0;s<o;s++)(f=r[s])(e),!0!==l.has(f)||c.has(f)||(u.schedule(f),n(!0));a=!1},schedule:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=n&&a,u=s?r:i;c.delete(e),t&&l.add(e),-1===u.indexOf(e)&&(u.push(e),s&&(o=r.length))}}),e}),{}),b=p.reduce((function(e,t){var n=m[t];return e[t]=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),u||w(),n.schedule(e,t,r),e},e}),{}),y=p.reduce((function(e,t){return e[t]=m[t].cancel,e}),{}),g=function(e){return m[e].process(d)},v=function(e){u=!1,d.delta=l?c:Math.max(Math.min(e-d.timestamp,40),1),l||(c=d.delta),d.timestamp=e,f=!0,p.forEach(g),f=!1,u&&(l=!1,s(v))},w=function(){u=!0,l=!0,f||s(v)},_=function(){return d},k=b,x=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},S=function(e){return e%1?Number(e.toFixed(5)):e},O=/(-)?(\d[\d\.]*)/g,E=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,T=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i,A={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},M=Object(i.a)(Object(i.a)({},A),{transform:x(0,1)}),I=Object(i.a)(Object(i.a)({},A),{default:1}),P=function(e){return{test:function(t){return"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},C=P("deg"),j=P("%"),D=P("px"),R=P("vh"),N=P("vw"),B=Object(i.a)(Object(i.a)({},j),{parse:function(e){return j.parse(e)/100},transform:function(e){return j.transform(100*e)}}),L=x(0,255),U=function(e){return void 0!==e.red},F=function(e){return void 0!==e.hue};var q=function(e){return function(t){if("string"!=typeof t)return t;for(var n={},r=function(e){return e.substring(e.indexOf("(")+1,e.lastIndexOf(")"))}(t).replace(/(,|\/)/g," ").split(/ \s*/),i=0;i<4;i++)n[e[i]]=void 0!==r[i]?parseFloat(r[i]):1;return n}},z=Object(i.a)(Object(i.a)({},A),{transform:function(e){return Math.round(L(e))}});function V(e,t){return e.startsWith(t)&&T.test(e)}var H={test:function(e){return"string"==typeof e?V(e,"rgb"):U(e)},parse:q(["red","green","blue","alpha"]),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,o=void 0===i?1:i;return function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha;return"rgba("+t+", "+n+", "+r+", "+(void 0===i?1:i)+")"}({red:z.transform(t),green:z.transform(n),blue:z.transform(r),alpha:S(M.transform(o))})}},$={test:function(e){return"string"==typeof e?V(e,"hsl"):F(e)},parse:q(["hue","saturation","lightness","alpha"]),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,o=void 0===i?1:i;return function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;return"hsla("+t+", "+n+", "+r+", "+(void 0===i?1:i)+")"}({hue:Math.round(t),saturation:j.transform(S(n)),lightness:j.transform(S(r)),alpha:S(M.transform(o))})}},K=Object(i.a)(Object(i.a)({},H),{test:function(e){return"string"==typeof e&&V(e,"#")},parse:function(e){var t="",n="",r="";return e.length>4?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),t+=t,n+=n,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:1}}}),W={test:function(e){return"string"==typeof e&&T.test(e)||U(e)||F(e)},parse:function(e){return H.test(e)?H.parse(e):$.test(e)?$.parse(e):K.test(e)?K.parse(e):e},transform:function(e){return U(e)?H.transform(e):F(e)?$.transform(e):e}},G=function(e){return"number"==typeof e?0:e},J={test:function(e){if("string"!=typeof e||!isNaN(e))return!1;var t=0,n=e.match(O),r=e.match(E);return n&&(t+=n.length),r&&(t+=r.length),t>0},parse:function(e){var t=e,n=[],r=t.match(E);r&&(t=t.replace(E,"${c}"),n.push.apply(n,r.map(W.parse)));var i=t.match(O);return i&&n.push.apply(n,i.map(A.parse)),n},createTransformer:function(e){var t=e,n=0,r=e.match(E),i=r?r.length:0;if(r)for(var o=0;o<i;o++)t=t.replace(r[o],"${c}"),n++;var a=t.match(O),s=a?a.length:0;if(a)for(o=0;o<s;o++)t=t.replace(a[o],"${n}"),n++;return function(e){for(var r=t,o=0;o<n;o++)r=r.replace(o<i?"${c}":"${n}",o<i?W.transform(e[o]):S(e[o]));return r}},getAnimatableNone:function(e){var t=J.parse(e);return J.createTransformer(e)(t.map(G))}},Q=function(e){return function(t){return 1-e(1-t)}},Y=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},Z=Q,X=Y,ee=function(e){return function(t){return Math.pow(t,e)}},te=function(e){return function(t){return t*t*((e+1)*t-e)}},ne=function(e){var t=te(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}},re=function(e){return e},ie=ee(2),oe=Q(ie),ae=Y(ie),se=function(e){return 1-Math.sin(Math.acos(e))},ce=Q(se),le=Y(ce),ue=te(1.525),fe=Q(ue),de=Y(ue),pe=ne(1.525),he=function(e){var t=e*e;return e<4/11?7.5625*t:e<8/11?9.075*t-9.9*e+3.4:e<.9?4356/361*t-35442/1805*e+16061/1805:10.8*e*e-20.52*e+10.72},me=function(e){return 1-he(1-e)},be=function(e){return e<.5?.5*(1-he(1-2*e)):.5*he(2*e-1)+.5},ye="undefined"!=typeof Float32Array,ge=function(e,t){return 1-3*t+3*e},ve=function(e,t){return 3*t-6*e},we=function(e){return 3*e},_e=function(e,t,n){return 3*ge(t,n)*e*e+2*ve(t,n)*e+we(t)},ke=function(e,t,n){return((ge(t,n)*e+ve(t,n))*e+we(t))*e};function xe(e,t,n,r){var i=ye?new Float32Array(11):new Array(11),o=function(t){for(var r,o,a,s=0,c=1;10!==c&&i[c]<=t;++c)s+=.1;return--c,r=(t-i[c])/(i[c+1]-i[c]),(a=_e(o=s+.1*r,e,n))>=.001?function(t,r){for(var i=0,o=0;i<8;++i){if(0===(o=_e(r,e,n)))return r;r-=(ke(r,e,n)-t)/o}return r}(t,o):0===a?o:function(t,r,i){var o,a,s=0;do{(o=ke(a=r+(i-r)/2,e,n)-t)>0?i=a:r=a}while(Math.abs(o)>1e-7&&++s<10);return a}(t,s,s+.1)};!function(){for(var t=0;t<11;++t)i[t]=ke(.1*t,e,n)}();return function(i){return e===t&&n===r?i:0===i?0:1===i?1:ke(o(i),t,r)}}var Se={x:0,y:0,z:0},Oe=function(e){return"number"==typeof e},Ee=function(e){return function(t,n,r){return void 0!==r?e(t,n,r):function(r){return e(t,n,r)}}},Te=Ee((function(e,t,n){return Math.min(Math.max(n,e),t)})),Ae=function(e){return e.hasOwnProperty("x")&&e.hasOwnProperty("y")},Me=function(e){return Ae(e)&&e.hasOwnProperty("z")},Ie=function(e,t){return Math.abs(e-t)},Pe=function(e,t){if(void 0===t&&(t=Se),Oe(e)&&Oe(t))return Ie(e,t);if(Ae(e)&&Ae(t)){var n=Ie(e.x,t.x),r=Ie(e.y,t.y),i=Me(e)&&Me(t)?Ie(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}return 0},Ce=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},je=function(e,t,n){return-n*e+n*t+e},De=function(){return(De=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Re=function(e,t,n){var r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},Ne=[K,H,$],Be=function(e){return Ne.find((function(t){return t.test(e)}))},Le=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Ue=function(e,t){var n=Be(e),r=Be(t);Le(e),Le(t),n.transform,r.transform;var i=n.parse(e),o=r.parse(t),a=De({},i),s=n===$?je:Re;return function(e){for(var t in a)"alpha"!==t&&(a[t]=s(i[t],o[t],e));return a.alpha=je(i.alpha,o.alpha,e),n.transform(a)}},Fe=function(e,t){return function(n){return t(e(n))}},qe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.reduce(Fe)};function ze(e,t){return Oe(e)?function(n){return je(e,t,n)}:W.test(e)?Ue(e,t):$e(e,t)}var Ve=function(e,t){var n=e.slice(),r=n.length,i=e.map((function(e,n){return ze(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}};function He(e){for(var t=J.parse(e),n=t.length,r=0,i=0,o=0,a=0;a<n;a++)r||"number"==typeof t[a]?r++:void 0!==t[a].hue?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}var $e=function(e,t){var n=J.createTransformer(t),r=He(e),i=He(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&(r.numNumbers,i.numNumbers),qe(Ve(r.parsed,i.parsed),n)};var Ke,We=function(e){return e},Ge=function(e){return void 0===e&&(e=We),Ee((function(t,n,r){var i=n-r,o=-(0-t+1)*(0-e(Math.abs(i)));return i<=0?n+o:n-o}))},Je=(Ge(),Ge(Math.sqrt),function(e,t){return t?e*(1e3/t):0}),Qe=(Ee((function(e,t,n){var r=t-e;return((n-e)%r+r)%r+e})),Te(0,1),function(e){var t=e.onRead,n=e.onRender,r=e.uncachedValues,o=void 0===r?new Set:r,a=e.useCache,s=void 0===a||a;return function(e){void 0===e&&(e={});var r=Object(i.d)(e,[]),a={},c=[],l=!1;function u(e,t){e.startsWith("--")&&(r.hasCSSVariable=!0);var n=a[e];a[e]=t,a[e]!==n&&(-1===c.indexOf(e)&&c.push(e),l||(l=!0,k.render(f.render)))}var f={get:function(e,n){return void 0===n&&(n=!1),!n&&s&&!o.has(e)&&void 0!==a[e]?a[e]:t(e,r)},set:function(e,t){if("string"==typeof e)u(e,t);else for(var n in e)u(n,e[n]);return this},render:function(e){return void 0===e&&(e=!1),(l||!0===e)&&(n(a,r,c),l=!1,c.length=0),this}};return f}}),Ye=/([a-z])([A-Z])/g,Ze=function(e){return e.replace(Ye,"$1-$2").toLowerCase()},Xe=new Map,et=new Map,tt=["Webkit","Moz","O","ms",""],nt=tt.length,rt="undefined"!=typeof document,it=function(e,t){return et.set(e,Ze(t))},ot=function(e,t){void 0===t&&(t=!1);var n=t?et:Xe;return n.has(e)||(rt?function(e){Ke=Ke||document.createElement("div");for(var t=0;t<nt;t++){var n=tt[t],r=""===n,i=r?e:n+e.charAt(0).toUpperCase()+e.slice(1);if(i in Ke.style||r){if(r&&"clipPath"===e&&et.has(e))return;Xe.set(e,i),it(e,(r?"":"-")+Ze(i))}}}(e):function(e){it(e,e)}(e)),n.get(e)||e},at=["","X","Y","Z"],st=["translate","scale","rotate","skew","transformPerspective"].reduce((function(e,t){return at.reduce((function(e,n){return e.push(t+n),e}),e)}),["x","y","z"]),ct=st.reduce((function(e,t){return e[t]=!0,e}),{});function lt(e){return!0===ct[e]}function ut(e,t){return st.indexOf(e)-st.indexOf(t)}var ft=new Set(["originX","originY","originZ"]);function dt(e){return ft.has(e)}var pt=Object(i.a)(Object(i.a)({},A),{transform:Math.round}),ht={color:W,backgroundColor:W,outlineColor:W,fill:W,stroke:W,borderColor:W,borderTopColor:W,borderRightColor:W,borderBottomColor:W,borderLeftColor:W,borderWidth:D,borderTopWidth:D,borderRightWidth:D,borderBottomWidth:D,borderLeftWidth:D,borderRadius:D,radius:D,borderTopLeftRadius:D,borderTopRightRadius:D,borderBottomRightRadius:D,borderBottomLeftRadius:D,width:D,maxWidth:D,height:D,maxHeight:D,size:D,top:D,right:D,bottom:D,left:D,padding:D,paddingTop:D,paddingRight:D,paddingBottom:D,paddingLeft:D,margin:D,marginTop:D,marginRight:D,marginBottom:D,marginLeft:D,rotate:C,rotateX:C,rotateY:C,rotateZ:C,scale:I,scaleX:I,scaleY:I,scaleZ:I,skew:C,skewX:C,skewY:C,distance:D,translateX:D,translateY:D,translateZ:D,x:D,y:D,z:D,perspective:D,opacity:M,originX:B,originY:B,originZ:D,zIndex:pt,fillOpacity:M,strokeOpacity:M,numOctaves:pt},mt=function(e){return ht[e]},bt=function(e,t){return t&&"number"==typeof e?t.transform(e):e},yt=new Set(["scrollLeft","scrollTop"]),gt=new Set(["scrollLeft","scrollTop","transform"]),vt={x:"translateX",y:"translateY",z:"translateZ"};function wt(e){return"function"==typeof e}function _t(e,t,n,r,i,o,a,s){void 0===t&&(t=!0),void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=[]),void 0===a&&(a=!1),void 0===s&&(s=!0);var c=!0,l=!1,u=!1;for(var f in e){var d=e[f],p=mt(f),h=bt(d,p);lt(f)?(l=!0,r[f]=h,o.push(f),c&&(p.default&&d!==p.default||!p.default&&0!==d)&&(c=!1)):dt(f)?(i[f]=h,u=!0):gt.has(f)&&wt(h)||(n[ot(f,a)]=h)}return(l||"function"==typeof e.transform)&&(n.transform=function(e,t,n,r,i,o){void 0===o&&(o=!0);var a="",s=!1;n.sort(ut);for(var c=n.length,l=0;l<c;l++){var u=n[l];a+=(vt[u]||u)+"("+t[u]+") ",s="z"===u||s}return!s&&i?a+="translateZ(0)":a=a.trim(),wt(e.transform)?a=e.transform(t,r?"":a):o&&r&&(a="none"),a}(e,r,o,c,t,s)),u&&(n.transformOrigin=(i.originX||"50%")+" "+(i.originY||"50%")+" "+(i.originZ||0)),n}function kt(e){var t=void 0===e?{}:e,n=t.enableHardwareAcceleration,r=void 0===n||n,i=t.isDashCase,o=void 0===i||i,a=t.allowTransformNone,s=void 0===a||a,c={},l={},u={},f=[];return function(e){return f.length=0,_t(e,r,c,l,u,f,o,s),c}}var xt=Qe({onRead:function(e,t){var n=t.element,r=t.preparseOutput,i=mt(e);if(lt(e))return i&&i.default||0;if(yt.has(e))return n[e];var o=window.getComputedStyle(n,null).getPropertyValue(ot(e,!0))||0;return r&&i&&i.test(o)&&i.parse?i.parse(o):o},onRender:function(e,t,n){var r=t.element,i=t.buildStyles,o=t.hasCSSVariable;if(Object.assign(r.style,i(e)),o)for(var a=n.length,s=0;s<a;s++){var c=n[s];c.startsWith("--")&&r.style.setProperty(c,e[c])}-1!==n.indexOf("scrollLeft")&&(r.scrollLeft=e.scrollLeft),-1!==n.indexOf("scrollTop")&&(r.scrollTop=e.scrollTop)},uncachedValues:yt});var St=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues"]),Ot=function(e,t){return D.transform(e*t)},Et={x:0,y:0,width:0,height:0};function Tt(e,t,n){return"string"==typeof e?e:D.transform(t+n*e)}var At={enableHardwareAcceleration:!1,isDashCase:!1};function Mt(e,t,n,r,o,a){void 0===t&&(t=Et),void 0===r&&(r=kt(At)),void 0===o&&(o={style:{}}),void 0===a&&(a=!0);var s=e.attrX,c=e.attrY,l=e.originX,u=e.originY,f=e.pathLength,d=e.pathSpacing,p=void 0===d?1:d,h=e.pathOffset,m=void 0===h?0:h,b=r(Object(i.d)(e,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]));for(var y in b){if("transform"===y)o.style.transform=b[y];else o[a&&!St.has(y)?Ze(y):y]=b[y]}return(void 0!==l||void 0!==u||b.transform)&&(o.style.transformOrigin=function(e,t,n){return Tt(t,e.x,e.width)+" "+Tt(n,e.y,e.height)}(t,void 0!==l?l:.5,void 0!==u?u:.5)),void 0!==s&&(o.x=s),void 0!==c&&(o.y=c),void 0!==n&&void 0!==f&&(o[a?"stroke-dashoffset":"strokeDashoffset"]=Ot(-m,n),o[a?"stroke-dasharray":"strokeDasharray"]=Ot(f,n)+" "+Ot(p,n)),o}function It(e,t,n){void 0===n&&(n=!0);var r={style:{}},i=kt(At);return function(o){return Mt(o,e,t,i,r,n)}}var Pt=Qe({onRead:function(e,t){var n=t.element;if(lt(e=St.has(e)?e:Ze(e))){var r=mt(e);return r&&r.default||0}return n.getAttribute(e)},onRender:function(e,t){var n=t.element,r=(0,t.buildAttrs)(e);for(var i in r)"style"===i?Object.assign(n.style,r.style):n.setAttribute(i,r[i])}}),Ct=Qe({useCache:!1,onRead:function(e){return"scrollTop"===e?window.pageYOffset:window.pageXOffset},onRender:function(e){var t=e.scrollTop,n=void 0===t?0:t,r=e.scrollLeft,i=void 0===r?0:r;return window.scrollTo(i,n)}}),jt=new WeakMap,Dt=function(e,t){var n,r,o,a;return e===window?n=Ct(e):!function(e){return e instanceof HTMLElement||"function"==typeof e.click}(e)?function(e){return e instanceof SVGElement||"ownerSVGElement"in e}(e)&&(o=function(e){try{return function(e){return"function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}(e)}catch(e){return{x:0,y:0,width:0,height:0}}}(r=e),a=function(e){return"path"===e.tagName}(r)&&r.getTotalLength?r.getTotalLength():void 0,n=Pt({element:r,buildAttrs:It(o,a)})):n=function(e,t){void 0===t&&(t={});var n=t.enableHardwareAcceleration,r=t.allowTransformNone,o=Object(i.d)(t,["enableHardwareAcceleration","allowTransformNone"]);return xt(Object(i.a)({element:e,buildStyles:kt({enableHardwareAcceleration:n,allowTransformNone:r}),preparseOutput:!0},o))}(e,t),jt.set(e,n),n};var Rt=function(e,t){return function(e,t){return jt.has(e)?jt.get(e):Dt(e,t)}("string"==typeof e?document.querySelector(e):e,t)},Nt=function(){return function(e,t){var n=this,r=e.middleware,i=e.onComplete;this.isActive=!0,this.update=function(e){n.observer.update&&n.updateObserver(e)},this.complete=function(){n.observer.complete&&n.isActive&&n.observer.complete(),n.onComplete&&n.onComplete(),n.isActive=!1},this.error=function(e){n.observer.error&&n.isActive&&n.observer.error(e),n.isActive=!1},this.observer=t,this.updateObserver=function(e){return t.update(e)},this.onComplete=i,t.update&&r&&r.length&&r.forEach((function(e){return n.updateObserver=e(n.updateObserver,n.complete)}))}}(),Bt=function(e,t,n){var r=t.middleware;return new Nt({middleware:r,onComplete:n},"function"==typeof e?{update:e}:e)},Lt=function(){function e(e){void 0===e&&(e={}),this.props=e}return e.prototype.create=function(t){return new e(t)},e.prototype.start=function(e){void 0===e&&(e={});var t=!1,n={stop:function(){}},r=this.props,o=r.init,a=Object(i.d)(r,["init"]),s=o(Bt(e,a,(function(){t=!0,n.stop()})));return n=s?Object(i.a)({},n,s):n,t&&n.stop(),n},e.prototype.applyMiddleware=function(e){return this.create(Object(i.a)({},this.props,{middleware:this.props.middleware?[e].concat(this.props.middleware):[e]}))},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=1===e.length?e[0]:qe.apply(void 0,e);return this.applyMiddleware((function(e){return function(t){return e(n(t))}}))},e}(),Ut=function(e){return new Lt({init:e})},Ft=[D,j,C,R,N],qt=function(e){return Ft.find((function(t){return t.test(e)}))},zt=function(e,t){return e(t)},Vt=function(e,t){var n=t.from,r=t.to,o=Object(i.d)(t,["from","to"]),a=qt(n)||qt(r),s=a.transform,c=a.parse;return e(Object(i.a)({},o,{from:"string"==typeof n?c(n):n,to:"string"==typeof r?c(r):r})).pipe(s)},Ht=function(e){return function(t,n){var r=n.from,o=n.to,a=Object(i.d)(n,["from","to"]);return t(Object(i.a)({},a,{from:0,to:1})).pipe(e(r,o))}},$t=Ht(Ue),Kt=Ht($e),Wt=function(e,t){var n=function(e){var t=Object.keys(e),n=function(t,n){return void 0!==t&&!e[n](t)};return{getVectorKeys:function(e){return t.reduce((function(t,r){return n(e[r],r)&&t.push(r),t}),[])},testVectorProps:function(e){return e&&t.some((function(t){return n(e[t],t)}))}}}(t),r=n.testVectorProps,i=n.getVectorKeys;return function(t){if(!r(t))return e(t);var n=i(t),o=t[n[0]];return Gt(o)(e,t,n)}},Gt=function(e){return"number"==typeof e?zt:function(e){return Boolean(qt(e))}(e)?Vt:W.test(e)?$t:J.test(e)?Kt:zt},Jt=Wt((function(e){return void 0===e&&(e={}),Ut((function(t){var n=t.complete,r=t.update,i=e.velocity,o=void 0===i?0:i,a=e.from,s=void 0===a?0:a,c=e.power,l=void 0===c?.8:c,u=e.timeConstant,f=void 0===u?350:u,d=e.restDelta,p=void 0===d?.5:d,h=e.modifyTarget,m=0,b=l*o,g=Math.round(s+b),v=void 0===h?g:h(g),w=k.update((function(e){var t=e.delta;m+=t;var i=-b*Math.exp(-m/f),o=i>p||i<-p;r(o?v+i:v),o||(y.update(w),n())}),!0);return{stop:function(){return y.update(w)}}}))}),{from:A.test,modifyTarget:function(e){return"function"==typeof e},velocity:A.test}),Qt=Wt((function(e){return void 0===e&&(e={}),Ut((function(t){var n=t.update,r=t.complete,i=e.velocity,o=void 0===i?0:i,a=e.from,s=void 0===a?0:a,c=e.to,l=void 0===c?0:c,u=e.stiffness,f=void 0===u?100:u,d=e.damping,p=void 0===d?10:d,h=e.mass,m=void 0===h?1:h,b=e.restSpeed,g=void 0===b?.01:b,v=e.restDelta,w=void 0===v?.01:v,_=o?-o/1e3:0,x=0,S=l-s,O=s,E=O,T=k.update((function(e){var t=e.delta;x+=t;var i=p/(2*Math.sqrt(f*m)),a=Math.sqrt(f/m)/1e3;if(E=O,i<1){var s=Math.exp(-i*a*x),c=a*Math.sqrt(1-i*i);O=l-s*((_+i*a*S)/c*Math.sin(c*x)+S*Math.cos(c*x))}else{s=Math.exp(-a*x);O=l-s*(S+(_+a*S)*x)}o=Je(O-E,t);var u=Math.abs(o)<=g,d=Math.abs(l-O)<=w;u&&d?(n(O=l),y.update(T),r()):n(O)}),!0);return{stop:function(){return y.update(T)}}}))}),{from:A.test,to:A.test,stiffness:A.test,damping:A.test,mass:A.test,velocity:A.test}),Yt=Wt((function(e){var t=e.from,n=void 0===t?0:t,r=e.velocity,o=void 0===r?0:r,a=e.min,s=e.max,c=e.power,l=void 0===c?.8:c,u=e.timeConstant,f=void 0===u?700:u,d=e.bounceStiffness,p=void 0===d?500:d,h=e.bounceDamping,m=void 0===h?10:h,b=e.restDelta,y=void 0===b?1:b,g=e.modifyTarget;return Ut((function(e){var t,r=e.update,c=e.complete,u=n,d=n,h=!1,b=function(e){return void 0!==a&&e<=a},v=function(e){return void 0!==s&&e>=s},w=function(e){return b(e)||v(e)},k=function(e){r(e),u=d,o=Je((d=e)-u,_().delta),t&&!h&&function(e,t){return b(e)&&t<0||v(e)&&t>0}(e,o)&&S({from:e,velocity:o})},x=function(e,n){t&&t.stop(),t=e.start({update:k,complete:function(){n?n():c()}})},S=function(e){h=!0,x(Qt(Object(i.a)({},e,{to:b(e.from)?a:s,stiffness:p,damping:m,restDelta:y})))};if(w(n))S({from:n,velocity:o});else if(0!==o){var O=Jt({from:n,velocity:o,timeConstant:f,power:l,restDelta:w(n)?20:y,modifyTarget:g});x(O,(function(){w(d)?S({from:d,velocity:o}):c()}))}else c();return{stop:function(){return t&&t.stop()}}}))}),{from:A.test,velocity:A.test,min:A.test,max:A.test,damping:A.test,stiffness:A.test,modifyTarget:function(e){return"function"==typeof e}}),Zt=Wt((function(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?1:r,o=e.ease,a=void 0===o?re:o,s=e.reverseEase;return void 0!==s&&s&&(a=Z(a)),Ut((function(e){var t=e.update;return{seek:function(e){return t(e)}}})).pipe(a,(function(e){return je(n,i,e)}))}),{ease:function(e){return"function"==typeof e},from:A.test,to:A.test}),Xt=Te(0,1),en=function(e){return void 0===e&&(e={}),Ut((function(t){var n,r=t.update,i=t.complete,o=e.duration,a=void 0===o?300:o,s=e.ease,c=void 0===s?oe:s,l=e.flip,u=void 0===l?0:l,f=e.loop,d=void 0===f?0:f,p=e.yoyo,h=void 0===p?0:p,m=e.repeatDelay,b=void 0===m?0:m,g=e.from,v=void 0===g?0:g,w=e.to,_=void 0===w?1:w,x=e.elapsed,S=void 0===x?0:x,O=e.flipCount,E=void 0===O?0:O,T=e.yoyoCount,A=void 0===T?0:T,M=e.loopCount,I=void 0===M?0:M,P=Zt({from:v,to:_,ease:c}).start(r),C=0,j=!1,D=function(e){var t;void 0===e&&(e=!1),P=Zt({from:v=(t=[_,v])[0],to:_=t[1],ease:c,reverseEase:e}).start(r)},R=function(){C=Xt(Ce(0,a,S)),P.seek(C)},N=function(){j=!0,n=k.update((function(e){var t,r=e.delta;S+=r,R(),!(t=j&&S>a+b)||(!t||d||u||h)&&(S=S-a-b,d&&I<d?(I++,1):u&&E<u?(E++,D(),1):h&&A<h&&(A++,D(A%2!=0),1))||(y.update(n),i&&k.update(i,!1,!0))}),!0)},B=function(){j=!1,n&&y.update(n)};return N(),{isActive:function(){return j},getElapsed:function(){return Te(0,a,S)},getProgress:function(){return C},stop:function(){B()},pause:function(){return B(),this},resume:function(){return j||N(),this},seek:function(e){return S=je(0,a,e),k.update(R,!1,!0),this},reverse:function(){return D(),this}}}))},tn=Te(0,1),nn=function(e){var t=e.easings,n=e.ease,r=void 0===n?re:n,o=e.times,a=e.values,s=Object(i.d)(e,["easings","ease","times","values"]);t=Array.isArray(t)?t:function(e,t){return e.map((function(){return t||oe})).splice(0,e.length-1)}(a,t),o=o||function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(a);var c=t.map((function(e,t){return Zt({from:a[t],to:a[t+1],ease:e})}));return en(Object(i.a)({},s,{ease:r})).applyMiddleware((function(e){return function(e,t,n){var r=e.length,i=r-1,o=i-1,a=t.map((function(e){return e.start(n)}));return function(t){t<=e[0]&&a[0].seek(0),t>=e[i]&&a[o].seek(1);for(var n=1;n<r&&!(e[n]>t||n===i);n++);var s=Ce(e[n-1],e[n],t);a[n-1].seek(tn(s))}}(o,c,e)}))},rn=function(e,t,n){return Ut((function(r){var i=r.update,o=t.split(" ").map((function(t){return e.addEventListener(t,i,n),t}));return{stop:function(){return o.forEach((function(t){return e.removeEventListener(t,i,n)}))}}}))},on=function(){return{clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}},an=function(e,t){return void 0===t&&(t={clientX:0,clientY:0,pageX:0,pageY:0,x:0,y:0}),t.clientX=t.x=e.clientX,t.clientY=t.y=e.clientY,t.pageX=e.pageX,t.pageY=e.pageY,t},sn=[on()];if("undefined"!=typeof document){rn(document,"touchstart touchmove",{passive:!0,capture:!0}).start((function(e){var t=e.touches;!0;var n=t.length;sn.length=0;for(var r=0;r<n;r++){var i=t[r];sn.push(an(i))}}))}var cn=on();if("undefined"!=typeof document){rn(document,"mousedown mousemove",!0).start((function(e){!0,an(e,cn)}))}var ln=function(e){return Ut((function(t){var n=t.complete,r=setTimeout(n,e);return{stop:function(){return clearTimeout(r)}}}))},un=function(){function e(e,t){var n,r=this,i=void 0===t?{}:t,o=i.transformer,a=i.parent;this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),r.prev=r.current,r.current=r.transformer?r.transformer(e):e,r.updateSubscribers&&r.prev!==r.current&&r.updateSubscribers.forEach(r.notifySubscriber),r.children&&r.children.forEach(r.setChild),t&&r.renderSubscribers&&r.renderSubscribers.forEach(r.notifySubscriber);var n=_(),i=n.delta,o=n.timestamp;r.lastUpdated!==o&&(r.timeDelta=i,r.lastUpdated=o,k.postRender(r.scheduleVelocityCheck))},this.notifySubscriber=function(e){e(r.current)},this.scheduleVelocityCheck=function(){return k.postRender(r.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==r.lastUpdated&&(r.prev=r.current)},this.setChild=function(e){return e.set(r.current)},this.parent=a,this.transformer=o,this.set(e,!1),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n)))}return e.prototype.addChild=function(t){void 0===t&&(t={});var n=new e(this.current,Object(i.a)({parent:this},t));return this.children||(this.children=new Set),this.children.add(n),n},e.prototype.removeChild=function(e){this.children&&this.children.delete(e)},e.prototype.subscribeTo=function(e,t){var n=this,r=function(){return t(n.current)};return e.add(r),function(){return e.delete(r)}},e.prototype.onChange=function(e){return this.updateSubscribers||(this.updateSubscribers=new Set),this.subscribeTo(this.updateSubscribers,e)},e.prototype.onRenderRequest=function(e){return this.renderSubscribers||(this.renderSubscribers=new Set),this.notifySubscriber(e),this.subscribeTo(this.renderSubscribers,e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getVelocity=function(){return this.canTrackVelocity?Je(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers&&this.updateSubscribers.clear(),this.renderSubscribers&&this.renderSubscribers.clear(),this.parent&&this.parent.removeChild(this),this.stop()},e}();function fn(e,t){return new un(e,t)}function dn(e){var t=Object(o.useRef)(null);return null===t.current&&(t.current=e()),t.current}var pn,hn=function(e){return e instanceof un},mn=Qe({onRead:function(){return null},onRender:function(e,t){return(0,t.onUpdate)(e)}}),bn=function(){function e(){this.hasMounted=!1,this.values=new Map,this.unsubscribers=new Map}return e.prototype.has=function(e){return this.values.has(e)},e.prototype.set=function(e,t){this.values.set(e,t),this.hasMounted&&this.bindValueToOutput(e,t)},e.prototype.get=function(e,t){var n=this.values.get(e);return void 0===n&&void 0!==t&&(n=new un(t),this.set(e,n)),n},e.prototype.forEach=function(e){return this.values.forEach(e)},e.prototype.bindValueToOutput=function(e,t){var n=this,r=t.onRenderRequest((function(t){return n.output&&n.output(e,t)})),i=t.onChange((function(t){n.onUpdate&&n.onUpdate.set(e,t)}));this.unsubscribers.has(e)&&this.unsubscribers.get(e)(),this.unsubscribers.set(e,(function(){r(),i()}))},e.prototype.setOnUpdate=function(e){this.onUpdate=void 0,e&&(this.onUpdate=mn({onUpdate:e}))},e.prototype.setTransformTemplate=function(e){this.transformTemplate!==e&&(this.transformTemplate=e,this.updateTransformTemplate())},e.prototype.getTransformTemplate=function(){return this.transformTemplate},e.prototype.updateTransformTemplate=function(){this.output&&this.output("transform",this.transformTemplate)},e.prototype.mount=function(e){var t=this;this.hasMounted=!0,e&&(this.output=e),this.values.forEach((function(e,n){return t.bindValueToOutput(n,e)})),this.updateTransformTemplate()},e.prototype.unmount=function(){var e=this;this.values.forEach((function(t,n){var r=e.unsubscribers.get(n);r&&r()}))},e}(),yn=new Set(["dragOriginX","dragOriginY"]),gn=function(e){var t=dn((function(){var t=new bn;for(var n in e)hn(e[n])&&!yn.has(n)&&t.set(n,e[n]);return t}));return t.setOnUpdate(e.onUpdate),t.setTransformTemplate(e.transformTemplate),t},vn=null,wn=function(){return null!==vn},_n=function(){vn=[]},kn=function(){vn&&vn.forEach((function(e){return e.render()})),vn=null},xn=function(e){vn&&vn.push(e)},Sn=Object(o.memo)((function(e){var t=e.innerRef,n=e.values,r=e.isStatic;return Object(o.useEffect)((function(){t.current,Element;var e=Rt(t.current,{preparseOutput:!1,enableHardwareAcceleration:!r});return n.mount((function(t,n){e.set(t,n),wn()&&xn(e)})),function(){return n.unmount()}}),[]),null})),On=(pn=function(e){return e.get()},function(e){var t={};return e.forEach((function(e,n){return t[n]=pn(e)})),t}),En=new Set(["originX","originY","originZ"]),Tn=function(e){return En.has(e)},An=function(e,t,n){var r=On(e),o=e.getTransformTemplate();return o&&(r.transform=t.transform?o({},t.transform):o),_t(Object(i.a)(Object(i.a)({},t),r),!n)},Mn=function(e){return Array.isArray(e)},In=function(e){return Mn(e)?e[e.length-1]||0:e},Pn=[A,D,j,C,N,R,{test:function(e){return"auto"===e},parse:function(e){return e}}],Cn=Object(i.f)(Pn,[W,J]),jn=function(e){return function(t){return t.test(e)}},Dn=function(e){return Pn.find(jn(e))},Rn=function(e){return Cn.find(jn(e))},Nn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},Bn=function(e){return{type:"spring",stiffness:700,damping:0===e?100:35}},Ln=function(){return{ease:"linear",duration:.3}},Un=function(e){return{type:"keyframes",duration:.8,values:e}},Fn={x:Nn,y:Nn,z:Nn,rotate:Nn,rotateX:Nn,rotateY:Nn,rotateZ:Nn,scaleX:Bn,scaleY:Bn,scale:Bn,opacity:Ln,backgroundColor:Ln,color:Ln,default:Bn},qn=function(e){var t=e.to,n=e.duration;return Ut((function(e){var r=e.update,i=e.complete;r(t),n?ln(n).start({complete:i}):i()}))},zn=function(e){return Array.isArray(e)?(e.length,xe(e[0],e[1],e[2],e[3])):"string"==typeof e?r[e]:e},Vn=function(e){return Array.isArray(e)&&"number"!=typeof e[0]},Hn=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!J.test(t)||t.startsWith("url(")))},$n=function(e){return 1e3*e},Kn={tween:en,spring:Qt,keyframes:nn,inertia:Yt,just:qn},Wn={tween:function(e){if(e.ease){var t=Vn(e.ease)?e.ease[0]:e.ease;e.ease=zn(t)}return e},keyframes:function(e){var t=e.from,n=(e.to,e.velocity,Object(i.d)(e,["from","to","velocity"]));if(n.values&&null===n.values[0]){var r=Object(i.f)(n.values);r[0]=t,n.values=r}return n.ease&&(n.easings=Vn(n.ease)?n.ease.map(zn):zn(n.ease)),n.ease=re,n}},Gn=function(e,t,n){var r=n?n.delay:0;if(void 0===n||!function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection;var t=Object(i.d)(e,["when","delay","delayChildren","staggerChildren","staggerDirection"]);return Object.keys(t).length}(n))return Object(i.a)({delay:r},function(e,t){var n;return n=Mn(t)?Un:Fn[e]||Fn.default,Object(i.a)({to:t},n(t))}(e,t));var o=n[e]||n.default||n;return!1===o.type?{delay:o.hasOwnProperty("delay")?o.delay:r,to:Mn(t)?t[t.length-1]:t,type:"just"}:Mn(t)?Object(i.a)(Object(i.a)({values:t,duration:.8,delay:r,ease:"linear"},o),{type:"keyframes"}):Object(i.a)({type:"tween",to:t,delay:r},o)},Jn=function(e,t,n,r){var o,a=t.get(),s=Hn(e,a),c=Hn(e,n),l=Gn(e,n,r),u=l.type,f=void 0===u?"tween":u,d=Object(i.d)(l,["type"]),p=s&&c?Kn[f]:qn,h=function(e,t){return Wn[e]?Wn[e](t):t}(f,Object(i.a)({from:a,velocity:t.getVelocity()},d));return((o=h).hasOwnProperty("duration")||o.hasOwnProperty("repeatDelay"))&&(h.duration&&(h.duration=$n(h.duration)),h.repeatDelay&&(h.repeatDelay=$n(h.repeatDelay))),[p,h]};function Qn(e,t,n,r){var o=r.delay,a=void 0===o?0:o,s=Object(i.d)(r,["delay"]);return t.start((function(r){var o,c=Jn(e,t,n,s),l=c[0],u=c[1],f=u.delay,d=Object(i.d)(u,["delay"]);void 0!==f&&(a=f);var p=function(){var e=l(d);o=e.start({update:function(e){return t.set(e)},complete:r})};return a?o=ln($n(a)).start({complete:p}):p(),function(){o&&o.stop()}}))}var Yn=function(){function e(e){var t=this,n=e.values,r=e.readValueFromSource,i=e.makeTargetAnimatable;this.props={},this.variants={},this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.activeOverrides=new Set,this.isAnimating=new Set,this.hasValue=function(e){return!t.values.has(e)},this.values=n,this.readValueFromSource=r,this.makeTargetAnimatable=i,this.values.forEach((function(e,n){return t.baseTarget[n]=e.get()}))}return e.prototype.setProps=function(e){this.props=e},e.prototype.setVariants=function(e){e&&(this.variants=e)},e.prototype.setDefaultTransition=function(e){e&&(this.defaultTransition=e)},e.prototype.setValues=function(e,t){var n=this,r=void 0===t?{}:t,o=r.isActive,a=void 0===o?new Set:o,s=r.priority,c=this.resolveVariant(e),l=c.target,u=c.transitionEnd;return l=this.transformValues(Object(i.a)(Object(i.a)({},l),u)),Object.keys(l).forEach((function(e){if(!a.has(e)&&(a.add(e),l)){var t=In(l[e]);if(n.values.has(e)){var r=n.values.get(e);r&&r.set(t)}else n.values.set(e,fn(t));s||(n.baseTarget[e]=t)}}))},e.prototype.transformValues=function(e){var t=this.props.transformValues;return t?t(e):e},e.prototype.checkForNewValues=function(e){var t=Object.keys(e).filter(this.hasValue),n=t.length;if(n)for(var r=0;r<n;r++){var i=t[r],o=e[i],a=null;Array.isArray(o)&&(a=o[0]),null===a&&(a=this.readValueFromSource(i)),"string"==typeof a&&/^\d*\.?\d+$/.test(a)?a=parseFloat(a):!Rn(a)&&J.test(o)&&(a=J.getAnimatableNone(o)),this.values.set(i,fn(a)),this.baseTarget[i]=a}},e.prototype.resolveVariant=function(e){if(!e)return{target:void 0,transition:void 0,transitionEnd:void 0};var t,n;"function"==typeof e&&(e=e(this.props.custom,(t=this.values,n={},t.forEach((function(e,t){return n[t]=e.get()})),n),function(e){var t={};return e.forEach((function(e,n){return t[n]=e.getVelocity()})),t}(this.values)));var r=e.transition;return{transition:void 0===r?this.defaultTransition:r,transitionEnd:e.transitionEnd,target:Object(i.d)(e,["transition","transitionEnd"])}},e.prototype.getHighestPriority=function(){return this.activeOverrides.size?Math.max.apply(Math,Array.from(this.activeOverrides)):0},e.prototype.setOverride=function(e,t){this.overrides[t]=e,this.children&&this.children.forEach((function(n){return n.setOverride(e,t)}))},e.prototype.startOverride=function(e){var t=this.overrides[e];if(t)return this.start(t,{priority:e})},e.prototype.clearOverride=function(e){var t=this;if(this.children&&this.children.forEach((function(t){return t.clearOverride(e)})),this.overrides[e]){this.activeOverrides.delete(e);var n=this.getHighestPriority();if(this.resetIsAnimating(),n)this.overrides[n]&&this.startOverride(n);var r=this.resolvedOverrides[e];if(r){var i={};for(var o in this.baseTarget)void 0!==r[o]&&(i[o]=this.baseTarget[o]);this.onStart(),this.animate(i).then((function(){return t.onComplete()}))}}},e.prototype.apply=function(e){return Array.isArray(e)?this.applyVariantLabels(e):"string"==typeof e?this.applyVariantLabels([e]):void this.setValues(e)},e.prototype.applyVariantLabels=function(e){var t=this,n=new Set;Object(i.f)(e).reverse().forEach((function(r){var i=t.resolveVariant(t.variants[r]),o=i.target,a=i.transitionEnd;a&&t.setValues(a,{isActive:n}),o&&t.setValues(o,{isActive:n}),t.children&&t.children.size&&t.children.forEach((function(t){return t.applyVariantLabels(e)}))}))},e.prototype.start=function(e,t){var n,r,i=this;return void 0===t&&(t={}),t.priority&&this.activeOverrides.add(t.priority),this.resetIsAnimating(t.priority),r=e,n=Array.isArray(r)?this.animateVariantLabels(e,t):"string"==typeof e?this.animateVariant(e,t):this.animate(e,t),this.onStart(),n.then((function(){return i.onComplete()}))},e.prototype.animate=function(e,t){var n=this,r=void 0===t?{}:t,o=r.delay,a=void 0===o?0:o,s=r.priority,c=void 0===s?0:s,l=r.transitionOverride,u=this.resolveVariant(e),f=u.target,d=u.transition,p=u.transitionEnd;if(l&&(d=l),!f)return Promise.resolve();if(f=this.transformValues(f),p&&(p=this.transformValues(p)),this.checkForNewValues(f),this.makeTargetAnimatable){var h=this.makeTargetAnimatable(f,p);f=h.target,p=h.transitionEnd}c&&(this.resolvedOverrides[c]=f),this.checkForNewValues(f);var m=[];for(var b in f){var y=this.values.get(b);if(y&&f&&void 0!==f[b]){var g=f[b];c||(this.baseTarget[b]=In(g)),this.isAnimating.has(b)||(this.isAnimating.add(b),m.push(Qn(b,y,g,Object(i.a)({delay:a},d))))}}var v=Promise.all(m);return p?v.then((function(){n.setValues(p,{priority:c})})):v},e.prototype.animateVariantLabels=function(e,t){var n=this,r=Object(i.f)(e).reverse().map((function(e){return n.animateVariant(e,t)}));return Promise.all(r)},e.prototype.animateVariant=function(e,t){var n=this,r=!1,i=0,o=0,a=1,s=t&&t.priority||0,c=this.variants[e],l=c?function(){return n.animate(c,t)}:function(){return Promise.resolve()},u=this.children?function(){return n.animateChildren(e,i,o,a,s)}:function(){return Promise.resolve()};if(c&&this.children){var f=this.resolveVariant(c).transition;f&&(r=f.when||r,i=f.delayChildren||i,o=f.staggerChildren||o,a=f.staggerDirection||a)}if(r){var d="beforeChildren"===r?[l,u]:[u,l],p=d[1];return(0,d[0])().then(p)}return Promise.all([l(),u()])},e.prototype.animateChildren=function(e,t,n,r,i){if(void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===i&&(i=0),!this.children)return Promise.resolve();var o=[],a=(this.children.size-1)*n,s=1===r?function(e){return e*n}:function(e){return a-e*n};return Array.from(this.children).forEach((function(n,r){var a=n.animateVariant(e,{priority:i,delay:t+s(r)});o.push(a)})),Promise.all(o)},e.prototype.onStart=function(){var e=this.props.onAnimationStart;e&&e()},e.prototype.onComplete=function(){var e=this.props.onAnimationComplete;e&&e()},e.prototype.checkOverrideIsAnimating=function(e){for(var t=this.overrides.length,n=e+1;n<t;n++){var r=this.resolvedOverrides[n];if(r)for(var i in r)this.isAnimating.add(i)}},e.prototype.resetIsAnimating=function(e){void 0===e&&(e=0),this.isAnimating.clear(),e<this.getHighestPriority()&&this.checkOverrideIsAnimating(e),this.children&&this.children.forEach((function(t){return t.resetIsAnimating(e)}))},e.prototype.stop=function(){this.values.forEach((function(e){return e.stop()}))},e.prototype.addChild=function(e){this.children||(this.children=new Set),this.children.add(e),this.overrides.forEach((function(t,n){t&&e.setOverride(t,n)}))},e.prototype.removeChild=function(e){this.children&&this.children.delete(e)},e.prototype.resetChildren=function(){this.children&&this.children.clear()},e}();var Zn=function(){function e(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set}return e.prototype.setVariants=function(e){this.variants=e,this.componentControls.forEach((function(t){return t.setVariants(e)}))},e.prototype.setDefaultTransition=function(e){this.defaultTransition=e,this.componentControls.forEach((function(t){return t.setDefaultTransition(e)}))},e.prototype.subscribe=function(e){var t=this;return this.componentControls.add(e),this.variants&&e.setVariants(this.variants),this.defaultTransition&&e.setDefaultTransition(this.defaultTransition),function(){return t.componentControls.delete(e)}},e.prototype.start=function(e,t){var n=this;if(this.hasMounted){var r=[];return this.componentControls.forEach((function(n){var i=n.start(e,{transitionOverride:t});r.push(i)})),Promise.all(r)}return new Promise((function(r){n.pendingAnimations.push({animation:[e,t],resolve:r})}))},e.prototype.set=function(e){return this.hasMounted,this.componentControls.forEach((function(t){return t.apply(e)}))},e.prototype.stop=function(){this.componentControls.forEach((function(e){return e.stop()}))},e.prototype.mount=function(){var e=this;this.hasMounted=!0,this.pendingAnimations.forEach((function(t){var n=t.animation,r=t.resolve;return e.start.apply(e,n).then(r)}))},e.prototype.unmount=function(){this.hasMounted=!1,this.stop()},e}(),Xn=Object(o.createContext)(null),er=Object(o.createContext)({static:!1}),tr=function(e){return"string"==typeof e||Array.isArray(e)},nr=function(e){return e instanceof Zn},rr=function(e,t,n,r,i){void 0===r&&(r=!1);var a,s,c=i.initial,l=i.animate,u=i.variants,f=i.whileTap,d=i.whileHover,p=Object(o.useContext)(Xn);void 0!==(null===(a=p)||void 0===a?void 0:a.initial)&&(c=p.initial),!1!==c||nr(l)?"boolean"!=typeof c&&(s=c):s=l;var h=Object(o.useRef)(!1),m=u||tr(l)||tr(f)||tr(d)||nr(l),b=tr(s)?s:e.initial,y=tr(l)?l:e.animate,g=r?b:null,v=m&&tr(y)?y:null,w=Object(o.useMemo)((function(){return{controls:m?t:e.controls,initial:b,animate:y,values:n,hasMounted:h,isReducedMotion:e.isReducedMotion}}),[g,v,e.isReducedMotion]);return w.static=r,function(e,t){void 0===t&&(t=!1);var n=Object(o.useRef)(!0);(!t||t&&n.current)&&e(),n.current=!1}((function(){var n=s||e.initial;n&&t.apply(n)}),!r),Object(o.useEffect)((function(){h.current=!0}),[]),w};function ir(e,t,n){var r=t.variants,a=t.transition,s=Object(o.useContext)(er).controls,c=Object(o.useContext)(Xn),l=dn((function(){return new Yn(e)}));return c&&!c.isPresent||(l.resetChildren(),l.setProps(t),l.setVariants(r),l.setDefaultTransition(a)),Object(o.useEffect)((function(){n&&s&&s.addChild(l)})),Object(o.useEffect)((function(){return function(){t.onAnimationComplete;var e=Object(i.d)(t,["onAnimationComplete"]);l.setProps(e),s&&s.removeChild(l)}}),[]),l}var or=function(e){var t=e.animate,n=e.variants,r=e.inherit;return(void 0===r||r)&&!!n&&(!t||t instanceof Zn)};var ar=function(e){var t=e.getValueControlsConfig,n=e.loadFunctionalityComponents,r=e.renderComponent;return Object(o.forwardRef)((function(e,i){var a=function(e){var t=e&&"function"!=typeof e?e:Object(o.useRef)(null);return e&&"function"==typeof e&&Object(o.useEffect)((function(){return e(t.current),function(){return e(null)}}),[]),t}(i),s=Object(o.useContext)(er),c=s.static||e.static||!1,l=gn(e),u=function(e,t,n,r){void 0===t&&(t={});var i={},a=Object(o.useRef)({}).current;for(var s in t){var c=t[s];if(hn(c))e.set(s,c);else if(n||!lt(s)&&!Tn(s))i[s]=c;else{if(e.has(s)){if(c!==a[s])e.get(s).set(c)}else e.set(s,fn(c));a[s]=c}}return r?r(i):i}(l,e.style,c,e.transformValues),f=or(e),d=ir(dn((function(){return t(a,l)})),e,f),p=rr(s,d,l,c,e),h=c?null:n(a,l,e,s,d,f),m=r(a,u,l,e,c);return Object(o.createElement)(o.Fragment,null,Object(o.createElement)(er.Provider,{value:p},m),Object(o.createElement)(o.Fragment,null,Object(o.createElement)(Sn,{innerRef:a,values:l,isStatic:c}),h))}))},sr=["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"],cr=Object(o.createContext)({transformPagePoint:function(e){return e}});function lr(e){return Object(o.useEffect)((function(){return function(){return e()}}),[])}function ur(e,t,n,r){if(n)return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function fr(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function dr(e){return!!e.touches}var pr={pageX:0,pageY:0};function hr(e){var t=e.pageX,n=void 0===t?0:t,r=e.pageY;return{x:n,y:void 0===r?0:r}}function mr(e){return{point:dr(e)?(t=e,n=t.touches[0]||t.changedTouches[0]||pr,{x:n.pageX,y:n.pageY}):hr(e)};var t,n}var br,yr=function(e,t){if(void 0===t&&(t=!1),e){var n=function(t){return e(t,mr(t))};return t?function(e){if(e)return function(t){var n=t instanceof MouseEvent;(!n||n&&0===t.button)&&e(t)}}(n):n}},gr="undefined"!=typeof window,vr={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},wr={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function _r(e){return gr&&null===window.onpointerdown?e:gr&&null===window.ontouchstart?wr[e]:gr&&null===window.onmousedown?vr[e]:e}function kr(e,t,n,r){return ur(e,_r(t),yr(n,"pointerdown"===t),r)}function xr(e,t,n,r){return function(e,t,n,r){Object(o.useEffect)((function(){var i=e.current;if(n&&i)return ur(i,t,n,r)}),[e,t,n,r])}(e,_r(t),yr(n,"pointerdown"===t),r)}!function(e){e.subtract=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},e.relativeTo=function(e){var t;return function(n){var r=n.x,i=n.y,o=void 0!==t?t:t="string"==typeof e?document.getElementById(e):e;if(o){var a=o.getBoundingClientRect();return{x:r-a.left-window.scrollX,y:i-a.top-window.scrollY}}}}}(br||(br={}));var Sr=!1;"undefined"!=typeof window&&document.addEventListener("touchmove",(function(e){Sr&&e.preventDefault()}),{passive:!1});var Or=function(){return Sr=!1},Er=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=Ar(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=Pe(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=_().timestamp;r.history.push(Object(i.a)(Object(i.a)({},o),{timestamp:a}));var s=r.handlers,c=s.onStart,l=s.onMove;t||(c&&c(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),l&&l(r.lastMoveEvent,e)}}},!(dr(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Tr(mr(e),this.transformPagePoint),s=a.point,c=_().timestamp;this.history=[Object(i.a)(Object(i.a)({},s),{timestamp:c})];var l=t.onSessionStart;l&&l(e,Ar(a,this.history));var u=kr(window,"pointermove",(function(e,t){return r.handlePointerMove(e,t)})),f=kr(window,"pointerup",(function(e,t){return r.handlePointerUp(e,t)}));this.removeListeners=function(){u&&u(),f&&f()}}}return e.prototype.handlePointerMove=function(e,t){this.lastMoveEvent=e,this.lastMoveEventInfo=Tr(t,this.transformPagePoint),fr(e)&&0===e.buttons?this.handlePointerUp(e,t):k.update(this.updatePoint,!0)},e.prototype.handlePointerUp=function(e,t){this.end();var n=this.handlers.onEnd;if(n){var r=Ar(Tr(t,this.transformPagePoint),this.history);n&&n(e,r)}},e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),y.update(this.updatePoint),Or()},e}();function Tr(e,t){return t?{point:t(e.point)}:e}function Ar(e,t){var n=e.point;return{point:n,delta:br.subtract(n,Ir(t)),offset:br.subtract(n,Mr(t)),velocity:Pr(t,.1)}}function Mr(e){return e[0]}function Ir(e){return e[e.length-1]}function Pr(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=Ir(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$n(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}var Cr=function(e,t){return!!t&&(e===t||Cr(e,t.parentElement))},jr=["whileHover","whileTap","whileDrag"],Dr=function(e){return jr.indexOf(e)+1};function Rr(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Nr=Rr("dragHorizontal"),Br=Rr("dragVertical");function Lr(e){var t=!1;if("y"===e)t=Br();else if("x"===e)t=Nr();else{var n=Nr(),r=Br();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}var Ur=Dr("whileTap");var Fr=Dr("whileHover"),qr=function(e){return function(t,n){fr(t)&&e(t,n)}};function zr(e,t){!function(e,t){var n=e.onPan,r=e.onPanStart,i=e.onPanEnd,a=e.onPanSessionStart,s=n||r||i||a,c=Object(o.useRef)(null),l=Object(o.useContext)(cr).transformPagePoint,u={onSessionStart:a,onStart:r,onMove:n,onEnd:function(e,t){c.current=null,i&&i(e,t)}};Object(o.useEffect)((function(){null!==c.current&&c.current.updateHandlers(u)})),xr(t,"pointerdown",s&&function(e){c.current=new Er(e,u,{transformPagePoint:l})}),lr((function(){return c.current&&c.current.end()}))}(e,t),function(e,t){var n=e.onTap,r=e.onTapStart,i=e.onTapCancel,a=e.whileTap,s=e.controls,c=n||r||i||a,l=Object(o.useRef)(!1),u=Object(o.useRef)(null);function f(){u.current&&u.current(),u.current=null}a&&s&&s.setOverride(a,Ur);var d=Object(o.useRef)(null);d.current=function(e,r){var o=t.current;if(f(),l.current&&o){l.current=!1,s&&a&&s.clearOverride(Ur);var c=Lr(!0);c&&(c(),Cr(o,e.target)?n&&n(e,r):i&&i(e,r))}},xr(t,"pointerdown",c?function(e,n){f(),u.current=kr(window,"pointerup",(function(e,t){return d.current(e,t)})),t.current&&!l.current&&(l.current=!0,r&&r(e,n),s&&a&&s.startOverride(Ur))}:void 0),lr(f)}(e,t),function(e,t){var n=e.whileHover,r=e.onHoverStart,i=e.onHoverEnd,o=e.controls;n&&o&&o.setOverride(n,Fr),xr(t,"pointerenter",qr((function(e,t){r&&r(e,t),n&&o&&o.startOverride(Fr)}))),xr(t,"pointerleave",qr((function(e,t){i&&i(e,t),n&&o&&o.clearOverride(Fr)})))}(e,t)}var Vr=function(e){return function(t){return e(t),null}},Hr=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileTap","whileHover","onHoverStart","onHoverEnd"],$r={key:"gestures",shouldRender:function(e){return Hr.some((function(t){return e.hasOwnProperty(t)}))},Component:Vr((function(e){var t=e.innerRef;zr(Object(i.d)(e,["innerRef"]),t)}))},Kr=function(e){return"object"==typeof e&&e.hasOwnProperty("current")},Wr=function(e){return e},Gr=function(){function e(e){var t=e.ref,n=e.values,r=e.controls;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.props={transformPagePoint:Wr},this.point={},this.origin={x:fn(0),y:fn(0)},this.openGlobalLock=null,this.panSession=null,this.prevConstraintsBox={width:0,height:0,x:0,y:0},this.ref=t,this.values=n,this.controls=r}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor;void 0!==r&&r&&this.snapToCursor(e);var i=this.props.transformPagePoint;this.panSession=new Er(e,{onSessionStart:function(){Sr=!0,Jr((function(e){var t=n.point[e];t&&t.stop()}))},onStart:function(e,t){if(n.constraintsNeedResolution){var r=n.props,i=r.dragConstraints,o=r.transformPagePoint;n.constraints=Xr(i,n.ref,n.point,o),n.applyConstraintsToPoint()}Jr((function(e){var t=n.point[e];t&&n.origin[e].set(t.get())}));var a=n.props,s=a.drag,c=a.dragPropagation;if(!s||c||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Lr(s),n.openGlobalLock)){n.isDragging=!0,n.currentDirection=null;var l=n.props.onDragStart;l&&l(e,Qr(t,n.point))}},onMove:function(e,t){var r=n.props,i=r.dragPropagation,o=r.dragDirectionLock;if(i||n.openGlobalLock){var a=t.offset;if(o&&null===n.currentDirection){if(n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),null!==n.currentDirection){var s=n.props.onDirectionLock;s&&s(n.currentDirection)}}else{n.updatePoint("x",a),n.updatePoint("y",a);var c=n.props.onDrag;c&&c(e,Qr(t,n.point))}}},onEnd:function(e,t){n.stop(e,t)}},{transformPagePoint:i})},e.prototype.cancelDrag=function(){Or(),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null)},e.prototype.stop=function(e,t){var n;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var r=this.isDragging;if(this.cancelDrag(),r){var i=this.props,o=i.dragMomentum,a=i.dragElastic,s=i.onDragEnd;if(o||a){var c=t.velocity;this.animateDragEnd(c)}else this.recordBoxInfo(this.constraints);s&&s(e,Qr(t,this.point))}},e.prototype.recordBoxInfo=function(e){if(e){var t=e.right,n=e.left,r=e.bottom,i=e.top;this.prevConstraintsBox.width=(t||0)-(n||0),this.prevConstraintsBox.height=(r||0)-(i||0)}this.point.x&&(this.prevConstraintsBox.x=this.point.x.get()),this.point.y&&(this.prevConstraintsBox.y=this.point.y.get())},e.prototype.snapToCursor=function(e){var t=this,n=this.props.transformPagePoint,r=mr(e).point,i=ei(this.ref,n),o=i.width/2+i.left+window.scrollX,a=i.height/2+i.top+window.scrollY,s={x:r.x-o,y:r.y-a};Jr((function(e){var n=t.point[e];n&&t.origin[e].set(n.get())})),this.updatePoint("x",s),this.updatePoint("y",s)},e.prototype.setPoint=function(e,t){this.point[e]=t},e.prototype.updatePoint=function(e,t){var n=this.props,r=n.drag,i=n.dragElastic,o=this.point[e];if(Zr(e,r,this.currentDirection)&&o){var a=ni(e,this.origin[e].get()+t[e],this.constraints,i);o.set(a)}},e.prototype.updateProps=function(e){var t=this,n=e.drag,r=void 0!==n&&n,o=e.dragDirectionLock,a=void 0!==o&&o,s=e.dragPropagation,c=void 0!==s&&s,l=e.dragConstraints,u=void 0!==l&&l,f=e.dragElastic,d=void 0===f||f,p=e.dragMomentum,h=void 0===p||p,m=Object(i.d)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=Object(i.a)({drag:r,dragDirectionLock:a,dragPropagation:c,dragConstraints:u,dragElastic:d,dragMomentum:h},m);var b=m._dragValueX,y=m._dragValueY,g=m.dragOriginX,v=m.dragOriginY;g&&(this.origin.x=g),v&&(this.origin.y=v),Jr((function(e){if(Zr(e,r,t.currentDirection)){var n="x"===e?b:y;t.setPoint(e,n||t.values.get(e,0))}})),this.constraintsNeedResolution=Kr(u),this.constraints=this.constraintsNeedResolution?this.constraints||!1:u},e.prototype.applyConstraintsToPoint=function(e){var t=this;return void 0===e&&(e=this.constraints),Jr((function(n){var r=t.point[n];r&&!r.isAnimating()&&ni(n,r,e,0)}))},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,r=n.drag,o=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,c=n._dragValueX,l=n._dragValueY,u=n._dragTransitionControls,f=Jr((function(n){var f;if(Zr(n,r,t.currentDirection)){var d=t.constraints?Yr(n,t.constraints):{},p=a?200:1e6,h=a?40:1e7,m=u||t.controls,b=Object(i.a)(Object(i.a)({type:"inertia",velocity:o?e[n]:0,bounceStiffness:p,bounceDamping:h,timeConstant:750,restDelta:1},s),d),y="x"===n?c:l;return y?Qn(n,y,0,b):m.start(((f={})[n]=0,f.transition=b,f))}}));return Promise.all(f).then((function(){t.recordBoxInfo(t.constraints),t.scalePoint();var e=t.props.onDragTransitionEnd;e&&e()}))},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.transformPagePoint;if(Kr(n)){var i=ei(n,r),o=ei(this.ref,r),a=function(t,n){var r=e.point[t];if(r){if(r.isAnimating())return r.stop(),void e.recordBoxInfo();var a=e.prevConstraintsBox[n]?(i[n]-o[n])/e.prevConstraintsBox[n]:1;r.set(e.prevConstraintsBox[t]*a)}};a("x","width"),a("y","height")}},e.prototype.mount=function(e){var t=this,n=kr(e,"pointerdown",(function(e){var n=t.props,r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&t.start(e)})),r=ur(window,"resize",(function(){return t.scalePoint()}));if(this.constraintsNeedResolution){var i=this.props,o=i.dragConstraints,a=i.transformPagePoint,s=Xr(o,this.ref,this.point,a);this.applyConstraintsToPoint(s),this.recordBoxInfo(s)}else!this.isDragging&&this.constraints&&this.applyConstraintsToPoint();return function(){n&&n(),r&&r(),t.cancelDrag()}},e}();function Jr(e){return[e("x"),e("y")]}function Qr(e,t){return Object(i.a)(Object(i.a)({},e),{point:{x:t.x?t.x.get():0,y:t.y?t.y.get():0}})}function Yr(e,t){var n=t.top,r=t.right,i=t.bottom,o=t.left;return"x"===e?{min:o,max:r}:{min:n,max:i}}function Zr(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}function Xr(e,t,n,r){null!==e.current&&t.current;var i=ei(e,r),o=ei(t,r),a=i.left-o.left+ti(n.x),s=i.top-o.top+ti(n.y);return{top:s,left:a,right:i.width-o.width+a,bottom:i.height-o.height+s}}function ei(e,t){var n=e.current.getBoundingClientRect(),r=t({x:n.left,y:n.top}),i=r.x,o=r.y,a=t({x:n.width,y:n.height});return{left:i,top:o,width:a.x,height:a.y}}function ti(e){return e?e.get():0}function ni(e,t,n,r){var i=t instanceof un?t.get():t;if(!n)return i;var o=Yr(e,n),a=o.min,s=o.max;return void 0!==a&&i<a?i=r?ri(a,i,r):Math.max(a,i):void 0!==s&&i>s&&(i=r?ri(s,i,r):Math.min(s,i)),t instanceof un&&t.set(i),i}function ri(e,t,n){return je(e,t,"number"==typeof n?n:.35)}var ii={key:"drag",shouldRender:function(e){return!!e.drag},Component:Vr((function(e){var t=e.innerRef,n=e.values,r=e.controls;return function(e,t,n,r){var a=e.dragControls,s=Object(o.useContext)(cr).transformPagePoint,c=dn((function(){return new Gr({ref:t,values:n,controls:r})}));c.updateProps(Object(i.a)(Object(i.a)({},e),{transformPagePoint:s})),Object(o.useEffect)((function(){return a&&a.subscribe(c)}),[c]),Object(o.useEffect)((function(){return c.mount(t.current)}),[])}(Object(i.d)(e,["innerRef","values","controls"]),t,n,r)}))};function oi(e){return"string"==typeof e&&e.startsWith("var(--")}var ai=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function si(e,t,n){void 0===n&&(n=1);var r=function(e){var t=ai.exec(e);return t?[t[1],t[2]]:[,]}(e),i=r[0],o=r[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a||(oi(o)?si(o,t,n+1):o)}}var ci,li=new Set(["width","height","top","left","right","bottom","x","y"]),ui=function(e){return li.has(e)},fi=function(e,t){e.set(t,!1),e.set(t)},di=function(e){return e===A||e===D};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(ci||(ci={}));var pi=function(e,t){return parseFloat(e.split(", ")[t])},hi=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return pi(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?pi(a[1],e):0}},mi=new Set(["x","y","z"]),bi=st.filter((function(e){return!mi.has(e)}));var yi={width:function(e){return e.width},height:function(e){return e.height},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.height,r=t.top;return parseFloat(r)+n},right:function(e,t){var n=e.width,r=t.left;return parseFloat(r)+n},x:hi(4,13),y:hi(5,14)},gi=function(e,t,n,r){void 0===r&&(r={}),n=Object(i.a)({},n),r=Object(i.a)({},r);var o=t.current,a=Rt(o),s=Object.keys(n).filter(ui),c=[],l=!1,u=s.reduce((function(t,i){var o=e.get(i);if(!o)return t;var s,u=o.get(),f=n[i],d=Dn(u);if(Mn(f))for(var p=f.length,h=null===f[0]?1:0;h<p;h++)s?Dn(f[h]):(s=Dn(f[h]))===d||di(d)&&di(s);else s=Dn(f);if(d!==s)if(di(d)&&di(s)){var m=o.get();"string"==typeof m&&o.set(parseFloat(m)),"string"==typeof f?n[i]=parseFloat(f):Array.isArray(f)&&s===D&&(n[i]=f.map(parseFloat))}else l||(c=function(e,t){var n=[];return bi.forEach((function(t){var r=e.get(t);void 0!==r&&(n.push([t,r.get()]),r.set(t.startsWith("scale")?1:0))})),n.length&&t.render(),n}(e,a),l=!0),t.push(i),r[i]=void 0!==r[i]?r[i]:n[i],fi(o,f);return t}),[]);if(u.length){var f=function(e,t,n,r,i){var o=n.getBoundingClientRect(),a=getComputedStyle(n),s=a.display,c={top:a.top,left:a.left,bottom:a.bottom,right:a.right,transform:a.transform};"none"===s&&r.set("display",e.display||"block"),r.render();var l=n.getBoundingClientRect();return i.forEach((function(n){var r=t.get(n);fi(r,yi[n](o,c)),e[n]=yi[n](l,a)})),e}(n,e,o,a,u);return c.length&&c.forEach((function(t){var n=t[0],r=t[1];e.get(n).set(r)})),a.render(),{target:f,transitionEnd:r}}return{target:n,transitionEnd:r}};function vi(e,t,n,r){return function(e){return Object.keys(e).some(ui)}(n)?gi(e,t,n,r):{target:n,transitionEnd:r}}var wi=function(e,t){return function(n,r){var o=function(e,t,n,r){var o=Object(i.d)(n,[]),a=t.current;if(!(a instanceof HTMLElement))return{target:o,transitionEnd:r};for(var s in r&&(r=Object(i.a)({},r)),e.forEach((function(e){var t=e.get();if(oi(t)){var n=si(t,a);n&&e.set(n)}})),o){var c=o[s];if(oi(c)){var l=si(c,a);l&&(o[s]=l,r&&void 0===r[s]&&(r[s]=c))}}return{target:o,transitionEnd:r}}(e,t,n,r);return n=o.target,r=o.transitionEnd,vi(e,t,n,r)}};function _i(){var e=Object(o.useState)(0),t=e[0],n=e[1];return Object(o.useCallback)((function(){return n(t+1)}),[t])}var ki,xi,Si=Object(o.createContext)(null);!function(e){e.Prepare="prepare",e.Read="read",e.Render="render"}(xi||(xi={}));var Oi=[xi.Prepare,xi.Read,xi.Render].reduce((function(e,t){return e[t]=[],e}),{}),Ei=!1;function Ti(e){for(var t=e.length,n=0;n<t;n++)e[n]();e.length=0}var Ai=function(e){return function(t){t&&(Ei=!0,Oi[e].push(t))}},Mi=((ki={})[xi.Prepare]=Ai(xi.Prepare),ki[xi.Read]=Ai(xi.Read),ki[xi.Render]=Ai(xi.Render),ki.flush=function(){Ei&&(Ti(Oi.prepare),Ti(Oi.read),Ti(Oi.render),Ei=!1)},ki);var Ii={duration:.8,ease:[.45,.05,.19,1]},Pi={type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10};var Ci={id:"x",size:"width",min:"left",max:"right",origin:"originX"},ji={id:"y",size:"height",min:"top",max:"bottom",origin:"originY"};function Di(e,t){return(e+t)/2}function Ri(e,t,n){var r,i=e[n.size]-t[n.size],o=.5;return i&&(e[n.min]===t[n.min]?o=0:e[n.max]===t[n.max]&&(o=1)),(r={})[n.size]=i,r[n.origin]=o,r[n.id]=.5===o?Di(e[n.min],e[n.max])-Di(t[n.min],t[n.max]):0,r}var Ni={getLayout:function(e){return e.offset},measure:function(e){var t=e.offsetLeft,n=e.offsetTop,r=e.offsetWidth,i=e.offsetHeight;return{left:t,top:n,right:t+r,bottom:n+i,width:r,height:i}}},Bi={getLayout:function(e){return e.boundingBox},measure:function(e){var t=e.getBoundingClientRect();return{left:t.left,top:t.top,width:t.width,height:t.height,right:t.right,bottom:t.bottom}}};function Li(e){return window.getComputedStyle(e).position}function Ui(e){return"width"===e||"height"===e}var Fi,qi={key:"layout",shouldRender:function(e){var t=e.positionTransition,n=e.layoutTransition;return"undefined"!=typeof window&&!(!t&&!n)},Component:function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.b)(t,e),t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.innerRef,n=e.positionTransition,r=e.values,o=e.controls,a=t.current;if(function(e){return e instanceof HTMLElement}(a)){var s,c,l,u=function(e){var t=e.layoutTransition,n=e.positionTransition;return t||n}(this.props),f=!!n,d=Li(a),p={offset:Ni.measure(a),boundingBox:Bi.measure(a)};return Mi.prepare((function(){s=a.style.transform,a.style.transform=""})),Mi.read((function(){c={offset:Ni.measure(a),boundingBox:Bi.measure(a)};var e=Li(a);l=function(e,t,n){return n&&e===t?Ni:Bi}(d,e,f)})),Mi.render((function(){var e=function(e,t){return Object(i.a)(Object(i.a)({},Ri(e,t,Ci)),Ri(e,t,ji))}(l.getLayout(p),l.getLayout(c));if(e.x||e.y||e.width||e.height){Rt(a).set({originX:e.originX,originY:e.originY}),_n();var t={},n={},d=function(e){return"function"==typeof e}(u)?u({delta:e}):u;h("left","x",0,e.x),h("top","y",0,e.y),f||(h("width","scaleX",1,p.boundingBox.width/c.boundingBox.width),h("height","scaleY",1,p.boundingBox.height/c.boundingBox.height)),t.transition=n,d&&o.start(t),kn()}else s&&(a.style.transform=s);function h(o,a,s,c){var u=Ui(o)?o:a;if(e[u]){var p="boolean"==typeof d?Object(i.a)({},function(e){return e?Pi:Ii}(f)):d,h=r.get(a,s),m=h.getVelocity();n[a]=p[a]?Object(i.a)({},p[a]):Object(i.a)({},p),void 0===n[a].velocity&&(n[a].velocity=m||0),t[a]=s;var b=Ui(o)||l!==Ni?0:h.get();h.set(c+b)}}})),null}},t.prototype.componentDidUpdate=function(){Mi.flush()},t.prototype.render=function(){return null},t.contextType=Si,t}(o.Component)},zi=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","static","positionTransition","layoutTransition","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragElastic","dragMomentum","dragPropagation","dragTransition","_dragValueX","_dragValueY","_dragTransitionControls","dragOriginX","dragOriginY","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileHover","whileTap","onHoverEnd","onHoverStart"]);function Vi(e){return zi.has(e)}!function(e){e.Target="Target",e.VariantLabel="VariantLabel",e.AnimationSubscription="AnimationSubscription"}(Fi||(Fi={}));function Hi(e,t){void 0===t&&(t=!1);e.transition;var n=e.transitionEnd,r=Object(i.d)(e,["transition","transitionEnd"]);return t?Object(i.a)(Object(i.a)({},r),n):r}var $i,Ki,Wi=function(e){var t,n=e instanceof un?e.get():e;return Array.from(new Set((t=n)?Array.isArray(t)?t:[t]:[]))};var Gi=(($i={})[Fi.Target]=Vr((function(e){return function(e,t,n,r){var a=Object(o.useRef)(!0),s=Object(o.useRef)(null);s.current||(s.current=Hi(e,!0)),Object(o.useEffect)((function(){var o,c,l={},u=Hi(e),f=Hi(e,!0);for(var d in u){var p=a.current&&(!n.has(d)||n.get(d).get()!==f[d]),h=null!==f[d],m=(o=s.current[d],void 0!==(c=f[d])&&(Array.isArray(o)&&Array.isArray(c)?!function(e,t){if(null===t)return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}(c,o):o!==c));h&&(m||p)&&(l[d]=u[d])}a.current=!1,s.current=Object(i.a)(Object(i.a)({},s.current),f),Object.keys(l).length&&t.start(Object(i.a)(Object(i.a)({},l),{transition:e.transition||r,transitionEnd:e.transitionEnd}))}),[e])}(e.animate,e.controls,e.values,e.transition)})),$i[Fi.VariantLabel]=Vr((function(e){var t=e.animate,n=e.inherit,r=void 0===n||n,i=e.controls;return function(e,t,n,r){var i=Wi(t),a=Object(o.useContext)(er),s=a.hasMounted&&a.hasMounted.current,c=Object(o.useRef)(!1);Object(o.useEffect)((function(){var t,o,l=!1;n?(l=!!s,i=Wi(a.animate)):l=c.current||(t=Wi(e),o=i,t.join(",")!==o.join(",")),l&&r.start(i),c.current=!0}),[i.join(",")])}(e.initial,t,r,i)})),$i[Fi.AnimationSubscription]=Vr((function(e){return function(e,t){var n=Object(o.useMemo)((function(){return e.subscribe(t)}),[e]);Object(o.useEffect)((function(){return function(){n&&n()}}),[n])}(e.animate,e.controls)})),$i),Ji=function(e){return e.animate instanceof Zn},Qi=["initial","animate","whileTap","whileHover"],Yi=((Ki={})[Fi.Target]=function(e){return!(void 0===e.animate||(t=e.animate,Array.isArray(t)||"string"==typeof t)||Ji(e));var t},Ki[Fi.VariantLabel]=function(e){return void 0!==e.variants||Qi.some((function(t){return"string"==typeof e[t]}))},Ki[Fi.AnimationSubscription]=Ji,Ki);var Zi={key:"exit",shouldRender:function(e){return!!e.exit&&!or(e)},Component:Vr((function(e){var t,n=e.animate,r=e.controls,a=e.exit,s=function(){var e=Object(o.useContext)(Xn);if(null===e)return[!0];var t=e.isPresent,n=e.onExitComplete,r=e.register;return Object(o.useEffect)(r,[]),!t&&n?[!1,n]:[!0]}(),c=s[0],l=s[1],u=Object(o.useContext)(Xn),f=Object(o.useRef)(!1),d=void 0!==(null===(t=u)||void 0===t?void 0:t.custom)?u.custom:e.custom;Object(o.useEffect)((function(){c?!f.current||!n||n instanceof Zn||r.start(n):(!f.current&&a&&(r.setProps(Object(i.a)(Object(i.a)({},e),{custom:d})),r.start(a).then(l)),f.current=!0),c&&(f.current=!1)}),[c])}))},Xi=function(e){return!Vi(e)};try{var eo=n(1550).default;Xi=function(e){return e.startsWith("on")?!Vi(e):eo(e)}}catch(e){}var to=[qi,ii,$r,Zi],no=to.length;function ro(e){var t="string"==typeof e,n=t&&-1!==sr.indexOf(e);return{renderComponent:function(r,a,s,c,l){var u=t?function(e){var t={};for(var n in e)Xi(n)&&(t[n]=e[n]);return t}(c):c,f=n?function(e,t){var n=Mt(On(e),void 0,void 0,void 0,void 0,!1);return n.style=Object(i.a)(Object(i.a)({},t),n.style),n}(s,a):function(e,t,n,r){var i={style:An(e,t,n)};return r&&(i.style.userSelect="none",i.draggable=!1),i}(s,a,l,!!c.drag);return Object(o.createElement)(e,Object(i.a)(Object(i.a)(Object(i.a)({},u),{ref:r}),f))},loadFunctionalityComponents:function(e,t,n,r,a,s){var c=[],l=function(e){var t=void 0;for(var n in Fi)Yi[n](e)&&(t=n);return t?Gi[t]:void 0}(n);l&&c.push(Object(o.createElement)(l,{key:"animation",initial:n.initial,animate:n.animate,variants:n.variants,transition:n.transition,controls:a,inherit:s,values:t}));for(var u=0;u<no;u++){var f=to[u],d=f.shouldRender,p=f.key,h=f.Component;d(n,r)&&c.push(Object(o.createElement)(h,Object(i.a)({key:p},n,{parentContext:r,values:t,controls:a,innerRef:e})))}return c},getValueControlsConfig:function(e,t){return{values:t,readValueFromSource:function(t){return Rt(e.current).get(t)},makeTargetAnimatable:wi(t,e)}}}}var io=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","webview"].reduce((function(e,t){var n=ro(t);return e[t]=ar(n),e}),{}),oo=sr.reduce((function(e,t){return e[t]=ar(ro(t)),e}),{}),ao=Object(i.a)(Object(i.a)({custom:function(e){return ar(ro(e))}},io),oo);function so(){return{scrollX:fn(0),scrollY:fn(0),scrollXProgress:fn(0),scrollYProgress:fn(0)}}"undefined"!=typeof window?o.useLayoutEffect:o.useEffect;so();!function(){function e(){this.componentControls=new Set}e.prototype.subscribe=function(e){var t=this;return this.componentControls.add(e),function(){return t.componentControls.delete(e)}},e.prototype.start=function(e,t){this.componentControls.forEach((function(n){n.start(e.nativeEvent||e,t)}))}}();var co=function(e){var t=e.children,n=e.initial,r=e.isPresent,a=e.onExitComplete,s=e.custom,c=Object(o.useRef)(0),l=Object(o.useRef)(0),u={initial:n,isPresent:r,custom:s,onExitComplete:function(){l.current++;var e=l.current>=c.current;a&&e&&a()}},f=Object(o.useMemo)((function(){return l.current=0,function(){return c.current++,function(){return c.current--}}}),[r]);return Object(o.createElement)(Xn.Provider,{value:Object(i.a)(Object(i.a)({},u),{register:f})},t)};function lo(e){return e.key||""}var uo=function(e){var t=e.children,n=e.custom,r=e.initial,a=void 0===r||r,s=e.onExitComplete,c=e.exitBeforeEnter,l=_i(),u=Object(o.useContext)(Si)||l,f=Object(o.useRef)(!0),d=function(e){var t=[];return o.Children.forEach(e,(function(e){Object(o.isValidElement)(e)&&t.push(e)})),t}(t),p=Object(o.useRef)(d),h=Object(o.useRef)(new Map).current,m=Object(o.useRef)(new Set).current;if(function(e,t){e.forEach((function(e){var n=lo(e);t.set(n,e)}))}(d,h),f.current)return f.current=!1,Object(o.createElement)(o.Fragment,null,d.map((function(e){return Object(o.createElement)(co,{key:lo(e),isPresent:!0,initial:!!a&&void 0},e)})));for(var b=Object(i.f)(d),y=p.current.map(lo),g=d.map(lo),v=y.length,w=0;w<v;w++){var _=y[w];-1===g.indexOf(_)?m.add(_):m.delete(_)}return c&&m.size&&(b=[]),m.forEach((function(e){if(-1===g.indexOf(e)){var t=h.get(e);if(t){var r=y.indexOf(e);b.splice(r,0,Object(o.createElement)(co,{key:lo(t),isPresent:!1,onExitComplete:function(){m.delete(e);var t=p.current.findIndex((function(t){return t.key===e}));p.current.splice(t,1),m.size||(p.current=d,u(),s&&s())},custom:n},t))}}})),b=b.map((function(e){var t=e.key;return m.has(t)?e:Object(o.createElement)(co,{key:lo(e),isPresent:!0},e)})),p.current=b,Object(o.createElement)(o.Fragment,null,m.size?b:b.map((function(e){return Object(o.cloneElement)(e)})))},fo=fn(null);if("undefined"!=typeof window)if(window.matchMedia){var po=window.matchMedia("(prefers-reduced-motion)"),ho=function(){return fo.set(po.matches)};po.addListener(ho),ho()}else fo.set(!1)},function(e,t,n){"use strict";t.a=function(e,t){if(!e)throw new Error("Invariant failed")}},function(e,t,n){var r=n(37),i=n(1513);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1502);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IntPretty=void 0;const r=n(112),i=n(149),o=n(234);class a{constructor(e){if(this._options={precision:0,maxDecimals:0,trim:!1,shrink:!1,ready:!0,locale:!0},e instanceof r.Dec){let t=e,n=0;for(let e=0;e<18&&(t=t.mul(new r.Dec(10)),!t.equals(new r.Dec(t.truncate())));e++)n++;const o=e.mulTruncate(i.DecUtils.getPrecisionDec(n));this.int=o.truncate(),this._options.precision=n}else this.int=e}get options(){return this._options}precision(e){const t=this.clone();return t._options.precision=e,t}maxDecimals(e){const t=this.clone();return t._options.maxDecimals=e,t}trim(e){const t=this.clone();return t._options.trim=e,t}shrink(e){const t=this.clone();return t._options.shrink=e,t}locale(e){const t=this.clone();return t._options.locale=e,t}ready(e){const t=this.clone();return t._options.ready=e,t}get isReady(){return this._options.ready}add(e){const t=this.clone();return t.int=t.int.add(e.int),t}toDec(){let e=new r.Dec(this.int);return this._options.precision&&(e=e.quoTruncate(i.DecUtils.getPrecisionDec(this._options.precision))),e}toString(){const e=this.toDec();let t="";return t=this._options.shrink?o.CoinUtils.shrinkDecimals(this.int,this._options.precision,0,this._options.maxDecimals,this._options.locale):e.toString(this._options.maxDecimals,this._options.locale),this._options.trim&&(t=i.DecUtils.trim(t)),t}clone(){const e=new a(this.int);return e._options=Object.assign({},this._options),e}}t.IntPretty=a},function(e,t,n){(function(r,i){var o;
46 /**
47  * [js-sha3]{@link https://github.com/emn178/js-sha3}
48  *
49  * @version 0.8.0
50  * @author Chen, Yi-Cyuan [emn178@gmail.com]
51  * @copyright Chen, Yi-Cyuan 2015-2018
52  * @license MIT
53  */!function(){"use strict";var a="input is invalid type",s="object"==typeof window,c=s?window:{};c.JS_SHA3_NO_WINDOW&&(s=!1);var l=!s&&"object"==typeof self;!c.JS_SHA3_NO_NODE_JS&&"object"==typeof r&&r.versions&&r.versions.node?c=i:l&&(c=self);var u=!c.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,f=n(408),d=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),h=[4,1024,262144,67108864],m=[0,8,16,24],b=[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],y=[224,256,384,512],g=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!c.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 _=function(e,t,n){return function(r){return new N(e,t,e).update(r)[n]()}},k=function(e,t,n){return function(r,i){return new N(e,t,i).update(r)[n]()}},x=function(e,t,n){return function(t,r,i,o){return A["cshake"+e].update(t,r,i,o)[n]()}},S=function(e,t,n){return function(t,r,i,o){return A["kmac"+e].update(t,r,i,o)[n]()}},O=function(e,t,n,r){for(var i=0;i<v.length;++i){var o=v[i];e[o]=t(n,r,o)}return e},E=function(e,t){var n=_(e,t,"hex");return n.create=function(){return new N(e,t,e)},n.update=function(e){return n.create().update(e)},O(n,_,e,t)},T=[{name:"keccak",padding:[1,256,65536,16777216],bits:y,createMethod:E},{name:"sha3",padding:[6,1536,393216,100663296],bits:y,createMethod:E},{name:"shake",padding:[31,7936,2031616,520093696],bits:g,createMethod:function(e,t){var n=k(e,t,"hex");return n.create=function(n){return new N(e,t,n)},n.update=function(e,t){return n.create(t).update(e)},O(n,k,e,t)}},{name:"cshake",padding:h,bits:g,createMethod:function(e,t){var n=w[e],r=x(e,0,"hex");return r.create=function(r,i,o){return i||o?new N(e,t,r).bytepad([i,o],n):A["shake"+e].create(r)},r.update=function(e,t,n,i){return r.create(t,n,i).update(e)},O(r,x,e,t)}},{name:"kmac",padding:h,bits:g,createMethod:function(e,t){var n=w[e],r=S(e,0,"hex");return r.create=function(r,i,o){return new B(e,t,i).bytepad(["KMAC",o],n).bytepad([r],n)},r.update=function(e,t,n,i){return r.create(e,n,i).update(t)},O(r,S,e,t)}}],A={},M=[],I=0;I<T.length;++I)for(var P=T[I],C=P.bits,j=0;j<C.length;++j){var D=P.name+"_"+C[j];if(M.push(D),A[D]=P.createMethod(C[j],P.padding),"sha3"!==P.name){var R=P.name+C[j];M.push(R),A[R]=A[D]}}function N(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,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=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function B(e,t,n){N.call(this,e,t,n)}N.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(a);t=!0}for(var r,i,o=this.blocks,s=this.byteCount,c=e.length,l=this.blockCount,u=0,f=this.s;u<c;){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<l+1;++r)o[r]=0;if(t)for(r=this.start;u<c&&r<s;++u)o[r>>2]|=e[u]<<m[3&r++];else for(r=this.start;u<c&&r<s;++u)(i=e.charCodeAt(u))<128?o[r>>2]|=i<<m[3&r++]:i<2048?(o[r>>2]|=(192|i>>6)<<m[3&r++],o[r>>2]|=(128|63&i)<<m[3&r++]):i<55296||i>=57344?(o[r>>2]|=(224|i>>12)<<m[3&r++],o[r>>2]|=(128|i>>6&63)<<m[3&r++],o[r>>2]|=(128|63&i)<<m[3&r++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++u)),o[r>>2]|=(240|i>>18)<<m[3&r++],o[r>>2]|=(128|i>>12&63)<<m[3&r++],o[r>>2]|=(128|i>>6&63)<<m[3&r++],o[r>>2]|=(128|63&i)<<m[3&r++]);if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=o[l],r=0;r<l;++r)f[r]^=o[r];L(f),this.reset=!0}else this.start=r}return this},N.prototype.encode=function(e,t){var n=255&e,r=1,i=[n];for(n=255&(e>>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},N.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(a);t=!0}var r=0,i=e.length;if(t)r=i;else for(var o=0;o<e.length;++o){var s=e.charCodeAt(o);s<128?r+=1:s<2048?r+=2:s<55296||s>=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(e),r},N.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r<e.length;++r)n+=this.encodeString(e[r]);var i=t-n%t,o=[];return o.length=i,this.update(o),this},N.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];L(r)}},N.prototype.toString=N.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<r;){for(o=0;o<t&&a<r;++o,++a)e=n[o],s+=p[e>>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];a%t==0&&(L(n),o=0)}return i&&(e=n[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},N.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)c[a]=n[o];a%t==0&&L(n)}return i&&(c[o]=n[o],e=e.slice(0,s)),e},N.prototype.buffer=N.prototype.arrayBuffer,N.prototype.digest=N.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,c=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n==0&&L(r)}return o&&(e=s<<2,t=r[a],c[e]=255&t,o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c},B.prototype=new N,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var L=function(e){var t,n,r,i,o,a,s,c,l,u,f,d,p,h,m,y,g,v,w,_,k,x,S,O,E,T,A,M,I,P,C,j,D,R,N,B,L,U,F,q,z,V,H,$,K,W,G,J,Q,Y,Z,X,ee,te,ne,re,ie,oe,ae,se,ce,le,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(c<<1|l>>>31),n=o^(l<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(u<<1|f>>>31),n=s^(f<<1|u>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(d<<1|p>>>31),n=l^(p<<1|d>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=u^(i<<1|o>>>31),n=f^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,h=e[0],m=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,j=e[45]<<29|e[44]>>>3,D=e[44]<<29|e[45]>>>3,O=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,A=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=h^~y&v,e[1]=m^~g&w,e[10]=O^~T&M,e[11]=E^~A&I,e[20]=R^~B&U,e[21]=N^~L&F,e[30]=$^~W&J,e[31]=K^~G&Q,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=y^~v&_,e[3]=g^~w&k,e[12]=T^~M&P,e[13]=A^~I&C,e[22]=B^~U&q,e[23]=L^~F&z,e[32]=W^~J&Y,e[33]=G^~Q&Z,e[42]=re^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&x,e[5]=w^~k&S,e[14]=M^~P&j,e[15]=I^~C&D,e[24]=U^~q&V,e[25]=F^~z&H,e[34]=J^~Y&X,e[35]=Q^~Z&ee,e[44]=oe^~se&le,e[45]=ae^~ce&ue,e[6]=_^~x&h,e[7]=k^~S&m,e[16]=P^~j&O,e[17]=C^~D&E,e[26]=q^~V&R,e[27]=z^~H&N,e[36]=Y^~X&$,e[37]=Z^~ee&K,e[46]=se^~le&te,e[47]=ce^~ue&ne,e[8]=x^~h&y,e[9]=S^~m&g,e[18]=j^~O&T,e[19]=D^~E&A,e[28]=V^~R&B,e[29]=H^~N&L,e[38]=X^~$&W,e[39]=ee^~K&G,e[48]=le^~te&re,e[49]=ue^~ne&ie,e[0]^=b[r],e[1]^=b[r+1]};if(u)e.exports=A;else{for(I=0;I<M.length;++I)c[M[I]]=A[M[I]];f&&(void 0===(o=function(){return A}.call(t,n,t,e))||(e.exports=o))}}()}).call(this,n(13),n(12))},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,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))},n(449),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,n(12))},function(e,t,n){"use strict";var r=t,i=n(27),o=n(824),a=n(1021);r.assert=o,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<r.length;a++){var s,c=o.andln(i-1);o.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var o,a,s,c=e.andln(3)+r&3,l=t.andln(3)+i&3;if(3===c&&(c=-1),3===l&&(l=-1),0==(1&c))o=0;else o=3!==(s=e.andln(7)+r&7)&&5!==s||2!==l?c:-c;if(n[0].push(o),0==(1&l))a=0;else a=3!==(s=t.andln(7)+i&7)&&5!==s||2!==c?l:-l;n[1].push(a),2*r===o+1&&(r=1-r),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,n){"use strict";var r=n(1442),i=n(1443);e.exports={errors:r,formatters:i}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(37),i=n(1355);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n.n(r),o=n(1050),a=n.n(o),s=n(10),c=n.n(s);const l=e=>{const{children:t}=e;return i.a.createElement("div",{className:c()(a.a.container,e.className),style:e.style},t)}},function(e,t,n){"use strict";var r=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function i(e){return JSON.stringify(e.map((function(e){return e&&"object"==typeof e?(t=e,Object.keys(t).sort().map((function(e){var n;return(n={})[e]=t[e],n}))):e;var t})))}t.a=function(e,t){return void 0===t&&(t={}),function(){for(var n,o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];var s=i(o),c=s&&t[s];return c||(c=new((n=e).bind.apply(n,r([void 0],o))),s&&(t[s]=c)),c}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return E})),n.d(t,"d",(function(){return A})),n.d(t,"c",(function(){return m})),n.d(t,"f",(function(){return b})),n.d(t,"e",(function(){return h}));var r=n(19);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),c=t&&i(t),l=s||c;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var u=a[a.length-1];n="."===u||".."===u||""===u}else n=!1;for(var f=0,d=a.length;d>=0;d--){var p=a[d];"."===p?o(a,d):".."===p?(o(a,d),f++):f&&(o(a,d),f--)}if(!l)for(;f--;f)a.unshift("..");!l||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var c=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},l=n(218);function u(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function m(e,t,n,i){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function b(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&c(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var g=!("undefined"==typeof window||!window.document||!window.document.createElement);function v(e,t){t(window.confirm(e))}function w(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),g||Object(l.a)(!1);var t,n=window.history,i=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,s=a.forceRefresh,c=void 0!==s&&s,f=a.getUserConfirmation,b=void 0===f?v:f,_=a.keyLength,k=void 0===_?6:_,x=e.basename?p(u(e.basename)):"";function S(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return x&&(o=d(o,x)),m(o,r,n)}function O(){return Math.random().toString(36).substr(2,k)}var E=y();function T(e){Object(r.a)(U,e),U.length=n.length,E.notifyListeners(U.location,U.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(S(e.state))}function M(){P(S(w()))}var I=!1;function P(e){if(I)I=!1,T();else{E.confirmTransitionTo(e,"POP",b,(function(t){t?T({action:"POP",location:e}):function(e){var t=U.location,n=j.indexOf(t.key);-1===n&&(n=0);var r=j.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(I=!0,R(i))}(e)}))}}var C=S(w()),j=[C.key];function D(e){return x+h(e)}function R(e){n.go(e)}var N=0;function B(e){1===(N+=e)&&1===e?(window.addEventListener("popstate",A),o&&window.addEventListener("hashchange",M)):0===N&&(window.removeEventListener("popstate",A),o&&window.removeEventListener("hashchange",M))}var L=!1;var U={length:n.length,action:"POP",location:C,createHref:D,push:function(e,t){var r=m(e,t,O(),U.location);E.confirmTransitionTo(r,"PUSH",b,(function(e){if(e){var t=D(r),o=r.key,a=r.state;if(i)if(n.pushState({key:o,state:a},null,t),c)window.location.href=t;else{var s=j.indexOf(U.location.key),l=j.slice(0,s+1);l.push(r.key),j=l,T({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=m(e,t,O(),U.location);E.confirmTransitionTo(r,"REPLACE",b,(function(e){if(e){var t=D(r),o=r.key,a=r.state;if(i)if(n.replaceState({key:o,state:a},null,t),c)window.location.replace(t);else{var s=j.indexOf(U.location.key);-1!==s&&(j[s]=r.key),T({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=E.setPrompt(e);return L||(B(1),L=!0),function(){return L&&(L=!1,B(-1)),t()}},listen:function(e){var t=E.appendListener(e);return B(1),function(){B(-1),t()}}};return U}var k={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:u},slash:{encodePath:u,decodePath:u}};function x(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function S(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function O(e){window.location.replace(x(window.location.href)+"#"+e)}function E(e){void 0===e&&(e={}),g||Object(l.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?v:i,a=n.hashType,s=void 0===a?"slash":a,c=e.basename?p(u(e.basename)):"",f=k[s],b=f.encodePath,w=f.decodePath;function _(){var e=w(S());return c&&(e=d(e,c)),m(e)}var E=y();function T(e){Object(r.a)(U,e),U.length=t.length,E.notifyListeners(U.location,U.action)}var A=!1,M=null;function I(){var e,t,n=S(),r=b(n);if(n!==r)O(r);else{var i=_(),a=U.location;if(!A&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(M===h(i))return;M=null,function(e){if(A)A=!1,T();else{E.confirmTransitionTo(e,"POP",o,(function(t){t?T({action:"POP",location:e}):function(e){var t=U.location,n=D.lastIndexOf(h(t));-1===n&&(n=0);var r=D.lastIndexOf(h(e));-1===r&&(r=0);var i=n-r;i&&(A=!0,R(i))}(e)}))}}(i)}}var P=S(),C=b(P);P!==C&&O(C);var j=_(),D=[h(j)];function R(e){t.go(e)}var N=0;function B(e){1===(N+=e)&&1===e?window.addEventListener("hashchange",I):0===N&&window.removeEventListener("hashchange",I)}var L=!1;var U={length:t.length,action:"POP",location:j,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=x(window.location.href)),n+"#"+b(c+h(e))},push:function(e,t){var n=m(e,void 0,void 0,U.location);E.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=h(n),r=b(c+t);if(S()!==r){M=t,function(e){window.location.hash=e}(r);var i=D.lastIndexOf(h(U.location)),o=D.slice(0,i+1);o.push(t),D=o,T({action:"PUSH",location:n})}else T()}}))},replace:function(e,t){var n=m(e,void 0,void 0,U.location);E.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=h(n),r=b(c+t);S()!==r&&(M=t,O(r));var i=D.indexOf(h(U.location));-1!==i&&(D[i]=t),T({action:"REPLACE",location:n})}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=E.setPrompt(e);return L||(B(1),L=!0),function(){return L&&(L=!1,B(-1)),t()}},listen:function(e){var t=E.appendListener(e);return B(1),function(){B(-1),t()}}};return U}function T(e,t,n){return Math.min(Math.max(e,t),n)}function A(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,c=t.keyLength,l=void 0===c?6:c,u=y();function f(e){Object(r.a)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function d(){return Math.random().toString(36).substr(2,l)}var p=T(s,0,o.length-1),b=o.map((function(e){return m(e,void 0,"string"==typeof e?d():e.key||d())})),g=h;function v(e){var t=T(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var w={length:b.length,action:"POP",location:b[p],index:p,entries:b,createHref:g,push:function(e,t){var r=m(e,t,d(),w.location);u.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=m(e,t,d(),w.location);u.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return w}},function(e,t,n){var r=n(37),i=n(1504);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1508);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(function(e){var r,i=function(e){"use strict";var t=1e7,n=9007199254740992,r=f(n),o="function"==typeof BigInt;function a(e,t,n,r){return void 0===e?a[0]:void 0!==t&&(10!=+t||n)?F(e,t,n,r):$(e)}function s(e,t){this.value=e,this.sign=t,this.isSmall=!1}function c(e){this.value=e,this.sign=e<0,this.isSmall=!0}function l(e){this.value=e}function u(e){return-n<e&&e<n}function f(e){return e<1e7?[e]:e<1e14?[e%1e7,Math.floor(e/1e7)]:[e%1e7,Math.floor(e/1e7)%1e7,Math.floor(e/1e14)]}function d(e){p(e);var n=e.length;if(n<4&&A(e,r)<0)switch(n){case 0:return 0;case 1:return e[0];case 2:return e[0]+e[1]*t;default:return e[0]+(e[1]+e[2]*t)*t}return e}function p(e){for(var t=e.length;0===e[--t];);e.length=t+1}function h(e){for(var t=new Array(e),n=-1;++n<e;)t[n]=0;return t}function m(e){return e>0?Math.floor(e):Math.ceil(e)}function b(e,n){var r,i,o=e.length,a=n.length,s=new Array(o),c=0,l=t;for(i=0;i<a;i++)c=(r=e[i]+n[i]+c)>=l?1:0,s[i]=r-c*l;for(;i<o;)c=(r=e[i]+c)===l?1:0,s[i++]=r-c*l;return c>0&&s.push(c),s}function y(e,t){return e.length>=t.length?b(e,t):b(t,e)}function g(e,n){var r,i,o=e.length,a=new Array(o),s=t;for(i=0;i<o;i++)r=e[i]-s+n,n=Math.floor(r/s),a[i]=r-n*s,n+=1;for(;n>0;)a[i++]=n%s,n=Math.floor(n/s);return a}function v(e,t){var n,r,i=e.length,o=t.length,a=new Array(i),s=0;for(n=0;n<o;n++)(r=e[n]-s-t[n])<0?(r+=1e7,s=1):s=0,a[n]=r;for(n=o;n<i;n++){if(!((r=e[n]-s)<0)){a[n++]=r;break}r+=1e7,a[n]=r}for(;n<i;n++)a[n]=e[n];return p(a),a}function w(e,t,n){var r,i,o=e.length,a=new Array(o),l=-t;for(r=0;r<o;r++)i=e[r]+l,l=Math.floor(i/1e7),i%=1e7,a[r]=i<0?i+1e7:i;return"number"==typeof(a=d(a))?(n&&(a=-a),new c(a)):new s(a,n)}function _(e,t){var n,r,i,o,a=e.length,s=t.length,c=h(a+s);for(i=0;i<a;++i){o=e[i];for(var l=0;l<s;++l)n=o*t[l]+c[i+l],r=Math.floor(n/1e7),c[i+l]=n-1e7*r,c[i+l+1]+=r}return p(c),c}function k(e,n){var r,i,o=e.length,a=new Array(o),s=t,c=0;for(i=0;i<o;i++)r=e[i]*n+c,c=Math.floor(r/s),a[i]=r-c*s;for(;c>0;)a[i++]=c%s,c=Math.floor(c/s);return a}function x(e,t){for(var n=[];t-- >0;)n.push(0);return n.concat(e)}function S(e,n,r){return new s(e<t?k(n,e):_(n,f(e)),r)}function O(e){var t,n,r,i,o=e.length,a=h(o+o);for(r=0;r<o;r++){n=0-(i=e[r])*i;for(var s=r;s<o;s++)t=i*e[s]*2+a[r+s]+n,n=Math.floor(t/1e7),a[r+s]=t-1e7*n;a[r+o]=n}return p(a),a}function E(e,t){var n,r,i,o,a=e.length,s=h(a);for(i=0,n=a-1;n>=0;--n)i=(o=1e7*i+e[n])-(r=m(o/t))*t,s[n]=0|r;return[s,0|i]}function T(e,n){var r,i=$(n);if(o)return[new l(e.value/i.value),new l(e.value%i.value)];var u,b=e.value,y=i.value;if(0===y)throw new Error("Cannot divide by zero");if(e.isSmall)return i.isSmall?[new c(m(b/y)),new c(b%y)]:[a[0],e];if(i.isSmall){if(1===y)return[e,a[0]];if(-1==y)return[e.negate(),a[0]];var g=Math.abs(y);if(g<t){u=d((r=E(b,g))[0]);var w=r[1];return e.sign&&(w=-w),"number"==typeof u?(e.sign!==i.sign&&(u=-u),[new c(u),new c(w)]):[new s(u,e.sign!==i.sign),new c(w)]}y=f(g)}var _=A(b,y);if(-1===_)return[a[0],e];if(0===_)return[a[e.sign===i.sign?1:-1],a[0]];u=(r=b.length+y.length<=200?function(e,n){var r,i,o,a,s,c,l,u=e.length,f=n.length,p=t,m=h(n.length),b=n[f-1],y=Math.ceil(p/(2*b)),g=k(e,y),v=k(n,y);for(g.length<=u&&g.push(0),v.push(0),b=v[f-1],i=u-f;i>=0;i--){for(r=p-1,g[i+f]!==b&&(r=Math.floor((g[i+f]*p+g[i+f-1])/b)),o=0,a=0,c=v.length,s=0;s<c;s++)o+=r*v[s],l=Math.floor(o/p),a+=g[i+s]-(o-l*p),o=l,a<0?(g[i+s]=a+p,a=-1):(g[i+s]=a,a=0);for(;0!==a;){for(r-=1,o=0,s=0;s<c;s++)(o+=g[i+s]-p+v[s])<0?(g[i+s]=o+p,o=0):(g[i+s]=o,o=1);a+=o}m[i]=r}return g=E(g,y)[0],[d(m),d(g)]}(b,y):function(e,t){for(var n,r,i,o,a,s=e.length,c=t.length,l=[],u=[];s;)if(u.unshift(e[--s]),p(u),A(u,t)<0)l.push(0);else{i=1e7*u[(r=u.length)-1]+u[r-2],o=1e7*t[c-1]+t[c-2],r>c&&(i=1e7*(i+1)),n=Math.ceil(i/o);do{if(A(a=k(t,n),u)<=0)break;n--}while(n);l.push(n),u=v(u,a)}return l.reverse(),[d(l),d(u)]}(b,y))[0];var x=e.sign!==i.sign,S=r[1],O=e.sign;return"number"==typeof u?(x&&(u=-u),u=new c(u)):u=new s(u,x),"number"==typeof S?(O&&(S=-S),S=new c(S)):S=new s(S,O),[u,S]}function A(e,t){if(e.length!==t.length)return e.length>t.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}function M(e){var t=e.abs();return!t.isUnit()&&(!!(t.equals(2)||t.equals(3)||t.equals(5))||!(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))&&(!!t.lesser(49)||void 0))}function I(e,t){for(var n,r,o,a=e.prev(),s=a,c=0;s.isEven();)s=s.divide(2),c++;e:for(r=0;r<t.length;r++)if(!e.lesser(t[r])&&!(o=i(t[r]).modPow(s,e)).isUnit()&&!o.equals(a)){for(n=c-1;0!=n;n--){if((o=o.square().mod(e)).isUnit())return!1;if(o.equals(a))continue e}return!1}return!0}s.prototype=Object.create(a.prototype),c.prototype=Object.create(a.prototype),l.prototype=Object.create(a.prototype),s.prototype.add=function(e){var t=$(e);if(this.sign!==t.sign)return this.subtract(t.negate());var n=this.value,r=t.value;return t.isSmall?new s(g(n,Math.abs(r)),this.sign):new s(y(n,r),this.sign)},s.prototype.plus=s.prototype.add,c.prototype.add=function(e){var t=$(e),n=this.value;if(n<0!==t.sign)return this.subtract(t.negate());var r=t.value;if(t.isSmall){if(u(n+r))return new c(n+r);r=f(Math.abs(r))}return new s(g(r,Math.abs(n)),n<0)},c.prototype.plus=c.prototype.add,l.prototype.add=function(e){return new l(this.value+$(e).value)},l.prototype.plus=l.prototype.add,s.prototype.subtract=function(e){var t=$(e);if(this.sign!==t.sign)return this.add(t.negate());var n=this.value,r=t.value;return t.isSmall?w(n,Math.abs(r),this.sign):function(e,t,n){var r;return A(e,t)>=0?r=v(e,t):(r=v(t,e),n=!n),"number"==typeof(r=d(r))?(n&&(r=-r),new c(r)):new s(r,n)}(n,r,this.sign)},s.prototype.minus=s.prototype.subtract,c.prototype.subtract=function(e){var t=$(e),n=this.value;if(n<0!==t.sign)return this.add(t.negate());var r=t.value;return t.isSmall?new c(n-r):w(r,Math.abs(n),n>=0)},c.prototype.minus=c.prototype.subtract,l.prototype.subtract=function(e){return new l(this.value-$(e).value)},l.prototype.minus=l.prototype.subtract,s.prototype.negate=function(){return new s(this.value,!this.sign)},c.prototype.negate=function(){var e=this.sign,t=new c(-this.value);return t.sign=!e,t},l.prototype.negate=function(){return new l(-this.value)},s.prototype.abs=function(){return new s(this.value,!1)},c.prototype.abs=function(){return new c(Math.abs(this.value))},l.prototype.abs=function(){return new l(this.value>=0?this.value:-this.value)},s.prototype.multiply=function(e){var n,r,i,o=$(e),c=this.value,l=o.value,u=this.sign!==o.sign;if(o.isSmall){if(0===l)return a[0];if(1===l)return this;if(-1===l)return this.negate();if((n=Math.abs(l))<t)return new s(k(c,n),u);l=f(n)}return r=c.length,i=l.length,new s(-.012*r-.012*i+15e-6*r*i>0?function e(t,n){var r=Math.max(t.length,n.length);if(r<=30)return _(t,n);r=Math.ceil(r/2);var i=t.slice(r),o=t.slice(0,r),a=n.slice(r),s=n.slice(0,r),c=e(o,s),l=e(i,a),u=e(y(o,i),y(s,a)),f=y(y(c,x(v(v(u,c),l),r)),x(l,2*r));return p(f),f}(c,l):_(c,l),u)},s.prototype.times=s.prototype.multiply,c.prototype._multiplyBySmall=function(e){return u(e.value*this.value)?new c(e.value*this.value):S(Math.abs(e.value),f(Math.abs(this.value)),this.sign!==e.sign)},s.prototype._multiplyBySmall=function(e){return 0===e.value?a[0]:1===e.value?this:-1===e.value?this.negate():S(Math.abs(e.value),this.value,this.sign!==e.sign)},c.prototype.multiply=function(e){return $(e)._multiplyBySmall(this)},c.prototype.times=c.prototype.multiply,l.prototype.multiply=function(e){return new l(this.value*$(e).value)},l.prototype.times=l.prototype.multiply,s.prototype.square=function(){return new s(O(this.value),!1)},c.prototype.square=function(){var e=this.value*this.value;return u(e)?new c(e):new s(O(f(Math.abs(this.value))),!1)},l.prototype.square=function(e){return new l(this.value*this.value)},s.prototype.divmod=function(e){var t=T(this,e);return{quotient:t[0],remainder:t[1]}},l.prototype.divmod=c.prototype.divmod=s.prototype.divmod,s.prototype.divide=function(e){return T(this,e)[0]},l.prototype.over=l.prototype.divide=function(e){return new l(this.value/$(e).value)},c.prototype.over=c.prototype.divide=s.prototype.over=s.prototype.divide,s.prototype.mod=function(e){return T(this,e)[1]},l.prototype.mod=l.prototype.remainder=function(e){return new l(this.value%$(e).value)},c.prototype.remainder=c.prototype.mod=s.prototype.remainder=s.prototype.mod,s.prototype.pow=function(e){var t,n,r,i=$(e),o=this.value,s=i.value;if(0===s)return a[1];if(0===o)return a[0];if(1===o)return a[1];if(-1===o)return i.isEven()?a[1]:a[-1];if(i.sign)return a[0];if(!i.isSmall)throw new Error("The exponent "+i.toString()+" is too large.");if(this.isSmall&&u(t=Math.pow(o,s)))return new c(m(t));for(n=this,r=a[1];!0&s&&(r=r.times(n),--s),0!==s;)s/=2,n=n.square();return r},c.prototype.pow=s.prototype.pow,l.prototype.pow=function(e){var t=$(e),n=this.value,r=t.value,i=BigInt(0),o=BigInt(1),s=BigInt(2);if(r===i)return a[1];if(n===i)return a[0];if(n===o)return a[1];if(n===BigInt(-1))return t.isEven()?a[1]:a[-1];if(t.isNegative())return new l(i);for(var c=this,u=a[1];(r&o)===o&&(u=u.times(c),--r),r!==i;)r/=s,c=c.square();return u},s.prototype.modPow=function(e,t){if(e=$(e),(t=$(t)).isZero())throw new Error("Cannot take modPow with modulus 0");var n=a[1],r=this.mod(t);for(e.isNegative()&&(e=e.multiply(a[-1]),r=r.modInv(t));e.isPositive();){if(r.isZero())return a[0];e.isOdd()&&(n=n.multiply(r).mod(t)),e=e.divide(2),r=r.square().mod(t)}return n},l.prototype.modPow=c.prototype.modPow=s.prototype.modPow,s.prototype.compareAbs=function(e){var t=$(e),n=this.value,r=t.value;return t.isSmall?1:A(n,r)},c.prototype.compareAbs=function(e){var t=$(e),n=Math.abs(this.value),r=t.value;return t.isSmall?n===(r=Math.abs(r))?0:n>r?1:-1:-1},l.prototype.compareAbs=function(e){var t=this.value,n=$(e).value;return(t=t>=0?t:-t)===(n=n>=0?n:-n)?0:t>n?1:-1},s.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=$(e),n=this.value,r=t.value;return this.sign!==t.sign?t.sign?1:-1:t.isSmall?this.sign?-1:1:A(n,r)*(this.sign?-1:1)},s.prototype.compareTo=s.prototype.compare,c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=$(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0!==t.sign?n<0?-1:1:n<0?1:-1},c.prototype.compareTo=c.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=$(e).value;return t===n?0:t>n?1:-1},l.prototype.compareTo=l.prototype.compare,s.prototype.equals=function(e){return 0===this.compare(e)},l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals=s.prototype.eq=s.prototype.equals,s.prototype.notEquals=function(e){return 0!==this.compare(e)},l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals=s.prototype.neq=s.prototype.notEquals,s.prototype.greater=function(e){return this.compare(e)>0},l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater=s.prototype.gt=s.prototype.greater,s.prototype.lesser=function(e){return this.compare(e)<0},l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser=s.prototype.lt=s.prototype.lesser,s.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals,s.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals,s.prototype.isEven=function(){return 0==(1&this.value[0])},c.prototype.isEven=function(){return 0==(1&this.value)},l.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},s.prototype.isOdd=function(){return 1==(1&this.value[0])},c.prototype.isOdd=function(){return 1==(1&this.value)},l.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},s.prototype.isPositive=function(){return!this.sign},c.prototype.isPositive=function(){return this.value>0},l.prototype.isPositive=c.prototype.isPositive,s.prototype.isNegative=function(){return this.sign},c.prototype.isNegative=function(){return this.value<0},l.prototype.isNegative=c.prototype.isNegative,s.prototype.isUnit=function(){return!1},c.prototype.isUnit=function(){return 1===Math.abs(this.value)},l.prototype.isUnit=function(){return this.abs().value===BigInt(1)},s.prototype.isZero=function(){return!1},c.prototype.isZero=function(){return 0===this.value},l.prototype.isZero=function(){return this.value===BigInt(0)},s.prototype.isDivisibleBy=function(e){var t=$(e);return!t.isZero()&&(!!t.isUnit()||(0===t.compareAbs(2)?this.isEven():this.mod(t).isZero()))},l.prototype.isDivisibleBy=c.prototype.isDivisibleBy=s.prototype.isDivisibleBy,s.prototype.isPrime=function(e){var t=M(this);if(void 0!==t)return t;var n=this.abs(),r=n.bitLength();if(r<=64)return I(n,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var o=Math.log(2)*r.toJSNumber(),a=Math.ceil(!0===e?2*Math.pow(o,2):o),s=[],c=0;c<a;c++)s.push(i(c+2));return I(n,s)},l.prototype.isPrime=c.prototype.isPrime=s.prototype.isPrime,s.prototype.isProbablePrime=function(e,t){var n=M(this);if(void 0!==n)return n;for(var r=this.abs(),o=void 0===e?5:e,a=[],s=0;s<o;s++)a.push(i.randBetween(2,r.minus(2),t));return I(r,a)},l.prototype.isProbablePrime=c.prototype.isProbablePrime=s.prototype.isProbablePrime,s.prototype.modInv=function(e){for(var t,n,r,o=i.zero,a=i.one,s=$(e),c=this.abs();!c.isZero();)t=s.divide(c),n=o,r=s,o=a,s=c,a=n.subtract(t.multiply(a)),c=r.subtract(t.multiply(c));if(!s.isUnit())throw new Error(this.toString()+" and "+e.toString()+" are not co-prime");return-1===o.compare(0)&&(o=o.add(e)),this.isNegative()?o.negate():o},l.prototype.modInv=c.prototype.modInv=s.prototype.modInv,s.prototype.next=function(){var e=this.value;return this.sign?w(e,1,this.sign):new s(g(e,1),this.sign)},c.prototype.next=function(){var e=this.value;return e+1<n?new c(e+1):new s(r,!1)},l.prototype.next=function(){return new l(this.value+BigInt(1))},s.prototype.prev=function(){var e=this.value;return this.sign?new s(g(e,1),!0):w(e,1,this.sign)},c.prototype.prev=function(){var e=this.value;return e-1>-n?new c(e-1):new s(r,!0)},l.prototype.prev=function(){return new l(this.value-BigInt(1))};for(var P=[1];2*P[P.length-1]<=t;)P.push(2*P[P.length-1]);var C=P.length,j=P[C-1];function D(e){return Math.abs(e)<=t}function R(e,t,n){t=$(t);for(var r=e.isNegative(),o=t.isNegative(),a=r?e.not():e,s=o?t.not():t,c=0,l=0,u=null,f=null,d=[];!a.isZero()||!s.isZero();)c=(u=T(a,j))[1].toJSNumber(),r&&(c=j-1-c),l=(f=T(s,j))[1].toJSNumber(),o&&(l=j-1-l),a=u[0],s=f[0],d.push(n(c,l));for(var p=0!==n(r?1:0,o?1:0)?i(-1):i(0),h=d.length-1;h>=0;h-=1)p=p.multiply(j).add(i(d[h]));return p}s.prototype.shiftLeft=function(e){var t=$(e).toJSNumber();if(!D(t))throw new Error(String(t)+" is too large for shifting.");if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=C;)n=n.multiply(j),t-=C-1;return n.multiply(P[t])},l.prototype.shiftLeft=c.prototype.shiftLeft=s.prototype.shiftLeft,s.prototype.shiftRight=function(e){var t,n=$(e).toJSNumber();if(!D(n))throw new Error(String(n)+" is too large for shifting.");if(n<0)return this.shiftLeft(-n);for(var r=this;n>=C;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;r=(t=T(r,j))[1].isNegative()?t[0].prev():t[0],n-=C-1}return(t=T(r,P[n]))[1].isNegative()?t[0].prev():t[0]},l.prototype.shiftRight=c.prototype.shiftRight=s.prototype.shiftRight,s.prototype.not=function(){return this.negate().prev()},l.prototype.not=c.prototype.not=s.prototype.not,s.prototype.and=function(e){return R(this,e,(function(e,t){return e&t}))},l.prototype.and=c.prototype.and=s.prototype.and,s.prototype.or=function(e){return R(this,e,(function(e,t){return e|t}))},l.prototype.or=c.prototype.or=s.prototype.or,s.prototype.xor=function(e){return R(this,e,(function(e,t){return e^t}))},l.prototype.xor=c.prototype.xor=s.prototype.xor;function N(e){var n=e.value,r="number"==typeof n?n|1<<30:"bigint"==typeof n?n|BigInt(1<<30):n[0]+n[1]*t|1073758208;return r&-r}function B(e,t){return e=$(e),t=$(t),e.greater(t)?e:t}function L(e,t){return e=$(e),t=$(t),e.lesser(t)?e:t}function U(e,t){if(e=$(e).abs(),t=$(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n,r,i=a[1];e.isEven()&&t.isEven();)n=L(N(e),N(t)),e=e.divide(n),t=t.divide(n),i=i.multiply(n);for(;e.isEven();)e=e.divide(N(e));do{for(;t.isEven();)t=t.divide(N(t));e.greater(t)&&(r=t,t=e,e=r),t=t.subtract(e)}while(!t.isZero());return i.isUnit()?e:e.multiply(i)}s.prototype.bitLength=function(){var e=this;return e.compareTo(i(0))<0&&(e=e.negate().subtract(i(1))),0===e.compareTo(i(0))?i(0):i(function e(t,n){if(n.compareTo(t)<=0){var r=e(t,n.square(n)),o=r.p,a=r.e,s=o.multiply(n);return s.compareTo(t)<=0?{p:s,e:2*a+1}:{p:o,e:2*a}}return{p:i(1),e:0}}(e,i(2)).e).add(i(1))},l.prototype.bitLength=c.prototype.bitLength=s.prototype.bitLength;var F=function(e,t,n,r){n=n||"0123456789abcdefghijklmnopqrstuvwxyz",e=String(e),r||(e=e.toLowerCase(),n=n.toLowerCase());var i,o=e.length,a=Math.abs(t),s={};for(i=0;i<n.length;i++)s[n[i]]=i;for(i=0;i<o;i++){if("-"!==(u=e[i])&&(u in s&&s[u]>=a)){if("1"===u&&1===a)continue;throw new Error(u+" is not a valid digit in base "+t+".")}}t=$(t);var c=[],l="-"===e[0];for(i=l?1:0;i<e.length;i++){var u;if((u=e[i])in s)c.push($(s[u]));else{if("<"!==u)throw new Error(u+" is not a valid character");var f=i;do{i++}while(">"!==e[i]&&i<e.length);c.push($(e.slice(f+1,i)))}}return q(c,t,l)};function q(e,t,n){var r,i=a[0],o=a[1];for(r=e.length-1;r>=0;r--)i=i.add(e[r].times(o)),o=o.times(t);return n?i.negate():i}function z(e,t){if((t=i(t)).isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(t.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var r=!1;if(e.isNegative()&&t.isPositive()&&(r=!0,e=e.abs()),t.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:r};for(var o,a=[],s=e;s.isNegative()||s.compareAbs(t)>=0;){o=s.divmod(t),s=o.quotient;var c=o.remainder;c.isNegative()&&(c=t.minus(c).abs(),s=s.next()),a.push(c.toJSNumber())}return a.push(s.toJSNumber()),{value:a.reverse(),isNegative:r}}function V(e,t,n){var r=z(e,t);return(r.isNegative?"-":"")+r.value.map((function(e){return function(e,t){return e<(t=t||"0123456789abcdefghijklmnopqrstuvwxyz").length?t[e]:"<"+e+">"}(e,n)})).join("")}function H(e){if(u(+e)){var t=+e;if(t===m(t))return o?new l(BigInt(t)):new c(t);throw new Error("Invalid integer: "+e)}var n="-"===e[0];n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw new Error("Invalid integer: "+r.join("e"));if(2===r.length){var i=r[1];if("+"===i[0]&&(i=i.slice(1)),(i=+i)!==m(i)||!u(i))throw new Error("Invalid integer: "+i+" is not a valid exponent.");var a=r[0],f=a.indexOf(".");if(f>=0&&(i-=a.length-f-1,a=a.slice(0,f)+a.slice(f+1)),i<0)throw new Error("Cannot include negative exponent part for integers");e=a+=new Array(i+1).join("0")}if(!/^([0-9][0-9]*)$/.test(e))throw new Error("Invalid integer: "+e);if(o)return new l(BigInt(n?"-"+e:e));for(var d=[],h=e.length,b=h-7;h>0;)d.push(+e.slice(b,h)),(b-=7)<0&&(b=0),h-=7;return p(d),new s(d,n)}function $(e){return"number"==typeof e?function(e){if(o)return new l(BigInt(e));if(u(e)){if(e!==m(e))throw new Error(e+" is not an integer.");return new c(e)}return H(e.toString())}(e):"string"==typeof e?H(e):"bigint"==typeof e?new l(e):e}s.prototype.toArray=function(e){return z(this,e)},c.prototype.toArray=function(e){return z(this,e)},l.prototype.toArray=function(e){return z(this,e)},s.prototype.toString=function(e,t){if(void 0===e&&(e=10),10!==e)return V(this,e,t);for(var n,r=this.value,i=r.length,o=String(r[--i]);--i>=0;)n=String(r[i]),o+="0000000".slice(n.length)+n;return(this.sign?"-":"")+o},c.prototype.toString=function(e,t){return void 0===e&&(e=10),10!=e?V(this,e,t):String(this.value)},l.prototype.toString=c.prototype.toString,l.prototype.toJSON=s.prototype.toJSON=c.prototype.toJSON=function(){return this.toString()},s.prototype.valueOf=function(){return parseInt(this.toString(),10)},s.prototype.toJSNumber=s.prototype.valueOf,c.prototype.valueOf=function(){return this.value},c.prototype.toJSNumber=c.prototype.valueOf,l.prototype.valueOf=l.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var K=0;K<1e3;K++)a[K]=$(K),K>0&&(a[-K]=$(-K));return a.one=a[1],a.zero=a[0],a.minusOne=a[-1],a.max=B,a.min=L,a.gcd=U,a.lcm=function(e,t){return e=$(e).abs(),t=$(t).abs(),e.divide(U(e,t)).multiply(t)},a.isInstance=function(e){return e instanceof s||e instanceof c||e instanceof l},a.randBetween=function(e,n,r){e=$(e),n=$(n);var i=r||Math.random,o=L(e,n),s=B(e,n).subtract(o).add(1);if(s.isSmall)return o.add(Math.floor(i()*s));for(var c=z(s,t).value,l=[],u=!0,f=0;f<c.length;f++){var d=u?c[f]:t,p=m(i()*d);l.push(p),p<d&&(u=!1)}return o.add(a.fromArray(l,t,!1))},a.fromArray=function(e,t,n){return q(e.map($),$(t||10),n)},a}();e.hasOwnProperty("exports")&&(e.exports=i),void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}).call(this,n(71)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinUtils=void 0;const r=n(235),i=n(116),o=n(112),a=n(149);t.CoinUtils=class{static createCoinsFromPrimitives(e){return e.map(e=>new r.Coin(e.denom,e.amount))}static amountOf(e,t){const n=e.find(e=>e.denom===t);return n?n.amount:new i.Int(0)}static exclude(e,t){return e.filter(e=>0===t.indexOf(e.denom))}static concat(...e){if(0===e.length)return[];return e.slice().reduce((e,t)=>{const n=e.find(e=>e.denom===t.denom);if(n){const i=new r.Coin(n.denom,n.amount.add(t.amount));e.push(i)}else{const n=new r.Coin(t.denom,t.amount);e.push(n)}return e},[])}static getCoinFromDecimals(e,t,n){const i=e.find(e=>e.coinDenom===n);if(!i)throw new Error("Invalid currency");let a=new o.Dec(1);for(let e=0;e<i.coinDecimals;e++)a=a.mul(new o.Dec(10));let s=new o.Dec(t);if(s=s.mul(a),!new o.Dec(s.truncate()).equals(s))throw new Error("Can't divide anymore");return new r.Coin(i.coinMinimalDenom,s.truncate())}static parseDecAndDenomFromCoin(e,t){let n=e.find(e=>e.coinMinimalDenom===t.denom);n||(n={coinDecimals:0,coinDenom:t.denom,coinMinimalDenom:t.denom});let r=new o.Dec(1);for(let e=0;e<n.coinDecimals;e++)r=r.mul(new o.Dec(10));return{amount:new o.Dec(t.amount).quoTruncate(r).toString(n.coinDecimals),denom:n.coinDenom}}static shrinkDecimals(e,t,n,r,a=!1){if(e.equals(new i.Int(0)))return"0";const s=new o.Dec(e,t),c=s.truncate(),l=s.sub(new o.Dec(c)),u=Math.max(r-c.toString().length+1,n),f=l.toString(u).replace("0.","");return(a?BigInt(c.toString()).toLocaleString("en-US"):c.toString())+(f.length>0?".":"")+f}static coinToTrimmedString(e,t,n=" "){const r=new o.Dec(e.amount).quoTruncate(a.DecUtils.getPrecisionDec(t.coinDecimals));return`${a.DecUtils.trim(r)}${n}${t.coinDenom}`}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Coin=void 0;const r=n(116);class i{constructor(e,t){this.denom=e,this.amount=t instanceof r.Int?t:new r.Int(t)}static parse(e){const t=new RegExp("([0-9]+)[ ]*([a-zA-Z]+)").exec(e);if(!t||3!==t.length)throw new Error("Invalid coin str");const n=t[2],r=t[1];return new i(n,r)}toString(){return`${this.amount.toString()}${this.denom}`}}t.Coin=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TendermintTxTracer=void 0;const r=n(425),i=n(2);t.TendermintTxTracer=class{constructor(e,t,n={}){this.url=e,this.wsEndpoint=t,this.options=n,this.newBlockSubscribes=[],this.txSubscribes=new Map,this.pendingQueries=new Map,this.listeners={},this.onOpen=e=>{var t;this.newBlockSubscribes.length>0&&this.sendSubscribeBlockRpc();for(const[e,t]of this.txSubscribes)this.sendSubscribeTxRpc(e,t.hash);for(const[e,t]of this.pendingQueries)this.sendQueryRpc(e,t.method,t.params);for(const n of null!==(t=this.listeners.open)&&void 0!==t?t:[])n(e)},this.onMessage=e=>{var t,n,r,i,o;for(const n of null!==(t=this.listeners.message)&&void 0!==t?t:[])n(e);if(e.data)try{const t=JSON.parse(e.data);if((null==t?void 0:t.id)&&this.pendingQueries.has(t.id)&&(t.error?this.pendingQueries.get(t.id).rejector(new Error(t.error.data||t.error.message)):this.pendingQueries.get(t.id).resolver(t.result),this.pendingQueries.delete(t.id)),"tendermint/event/NewBlock"===(null===(r=null===(n=null==t?void 0:t.result)||void 0===n?void 0:n.data)||void 0===r?void 0:r.type))for(const e of this.newBlockSubscribes)e.handler(t.result.data.value);"tendermint/event/Tx"===(null===(o=null===(i=null==t?void 0:t.result)||void 0===i?void 0:i.data)||void 0===o?void 0:o.type)&&(null==t?void 0:t.id)&&this.txSubscribes.has(t.id)&&(t.error?this.txSubscribes.get(t.id).rejector(new Error(t.error.data||t.error.message)):this.txSubscribes.get(t.id).resolver(t.result.data.value.TxResult.result),this.txSubscribes.delete(t.id))}catch(e){console.log("Tendermint websocket jsonrpc response is not JSON: "+(e.message||e.toString()))}},this.onClose=e=>{var t;for(const n of null!==(t=this.listeners.close)&&void 0!==t?t:[])n(e)},this.ws=this.options.wsObject?new this.options.wsObject(this.getWsEndpoint()):new WebSocket(this.getWsEndpoint()),this.ws.onopen=this.onOpen,this.ws.onmessage=this.onMessage,this.ws.onclose=this.onClose}getWsEndpoint(){let e=this.url;if(e.startsWith("http")&&(e=e.replace("http","ws")),!e.endsWith(this.wsEndpoint)){const t=this.wsEndpoint.startsWith("/")?this.wsEndpoint:"/"+this.wsEndpoint;e=e.endsWith("/")?e+t.slice(1):e+t}return e}close(){this.ws.close()}get readyState(){switch(this.ws.readyState){case 0:return r.WsReadyState.CONNECTING;case 1:return r.WsReadyState.OPEN;case 2:return r.WsReadyState.CLOSING;case 3:return r.WsReadyState.CLOSED;default:return r.WsReadyState.NONE}}addEventListener(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)}subscribeBlock(e){this.newBlockSubscribes.push({handler:e}),1===this.newBlockSubscribes.length&&this.sendSubscribeBlockRpc()}sendSubscribeBlockRpc(){this.readyState===r.WsReadyState.OPEN&&this.ws.send(JSON.stringify({jsonrpc:"2.0",method:"subscribe",params:["tm.event='NewBlock'"],id:1}))}traceTx(e){return new Promise(t=>{this.queryTx(e).then(t).catch(()=>{}),this.subscribeTx(e).then(t)})}subscribeTx(e){const t=this.createRandomId();return new Promise((n,r)=>{this.txSubscribes.set(t,{hash:e,resolver:n,rejector:r}),this.sendSubscribeTxRpc(t,e)})}sendSubscribeTxRpc(e,t){this.readyState===r.WsReadyState.OPEN&&this.ws.send(JSON.stringify({jsonrpc:"2.0",method:"subscribe",params:[`tm.event='Tx' AND tx.hash='${i.Buffer.from(t).toString("hex").toUpperCase()}'`],id:e}))}queryTx(e){return this.query("tx",[i.Buffer.from(e).toString("base64"),!1])}query(e,t){const n=this.createRandomId();return new Promise((r,i)=>{this.pendingQueries.set(n,{method:e,params:t,resolver:r,rejector:i}),this.sendQueryRpc(n,e,t)})}sendQueryRpc(e,t,n){this.readyState===r.WsReadyState.OPEN&&this.ws.send(JSON.stringify({jsonrpc:"2.0",method:t,params:n,id:e}))}createRandomId(){return parseInt(Array.from({length:6}).map(()=>Math.floor(100*Math.random())).join(""))}}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProtoCodec=t.ProtoCodec=void 0;const o=n(118),a=n(118),s=n(241);i(n(241),t);class c{constructor(){this.typeUrlMap=new Map}unpackAny(e){const t=new o.google.protobuf.Any(e);return this.typeUrlMap.has(t.type_url)?this.typeUrlMap.get(t.type_url).decode(t.value):new s.UnknownMessage(t.type_url,t.value)}registerAny(e,t){this.typeUrlMap.set(e,t)}}t.ProtoCodec=c,t.defaultProtoCodec=new c,t.defaultProtoCodec.registerAny("/cosmos.bank.v1beta1.MsgSend",a.cosmos.bank.v1beta1.MsgSend),t.defaultProtoCodec.registerAny("/cosmos.staking.v1beta1.MsgDelegate",a.cosmos.staking.v1beta1.MsgDelegate),t.defaultProtoCodec.registerAny("/cosmos.staking.v1beta1.MsgUndelegate",a.cosmos.staking.v1beta1.MsgUndelegate),t.defaultProtoCodec.registerAny("/cosmos.staking.v1beta1.MsgBeginRedelegate",a.cosmos.staking.v1beta1.MsgBeginRedelegate)},function(e,t,n){"use strict";e.exports=f;var r,i=n(64),o=i.LongBits,a=i.base64,s=i.utf8;function c(e,t,n){this.fn=e,this.len=t,this.next=void 0,this.val=n}function l(){}function u(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function f(){this.len=0,this.head=new c(l,0,0),this.tail=this.head,this.states=null}var d=function(){return i.Buffer?function(){return(f.create=function(){return new r})()}:function(){return new f}};function p(e,t,n){t[n]=255&e}function h(e,t){this.len=e,this.next=void 0,this.val=t}function m(e,t,n){for(;e.hi;)t[n++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function b(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}f.create=d(),f.alloc=function(e){return new i.Array(e)},i.Array!==Array&&(f.alloc=i.pool(f.alloc,i.Array.prototype.subarray)),f.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},h.prototype=Object.create(c.prototype),h.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(m,10,o.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=o.from(e);return this._push(m,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(m,t.length(),t)},f.prototype.bool=function(e){return this._push(p,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(b,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=o.from(e);return this._push(b,4,t.lo)._push(b,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(i.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(i.float.writeDoubleLE,8,e)};var y=i.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r<e.length;++r)t[n+r]=e[r]};f.prototype.bytes=function(e){var t=e.length>>>0;if(!t)return this._push(p,1,0);if(i.isString(e)){var n=f.alloc(t=a.length(e));a.decode(e,n,0),e=n}return this.uint32(t)._push(y,t,e)},f.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(p,1,0)},f.prototype.fork=function(){return this.states=new u(this),this.head=this.tail=new c(l,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(l,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},f._configure=function(e){r=e,f.create=d(),r._configure()}},function(e,t,n){"use strict";e.exports=c;var r,i=n(64),o=i.LongBits,a=i.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var l,u="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},f=function(){return i.Buffer?function(e){return(c.create=function(e){return i.Buffer.isBuffer(e)?new r(e):u(e)})(e)}:u};function d(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw s(this,8);return new o(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}c.create=f(),c.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,c.prototype.uint32=(l=4294967295,function(){if(l=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return l;if(l=(l|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return l;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return l}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return p(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|p(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return a.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=f(),r._configure();var t=i.Long?"toLong":"toNumber";i.merge(c.prototype,{int64:function(){return d.call(this)[t](!1)},uint64:function(){return d.call(this)[t](!0)},sint64:function(){return d.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownMessage=void 0;const r=n(2);t.UnknownMessage=class{constructor(e,t){this._typeUrl=e,this._value=t}get typeUrl(){return this._typeUrl}get value(){return this._value}toJSON(){return{type_url:this._typeUrl,value:r.Buffer.from(this._value).toString("base64")}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtoSignDocDecoder=void 0;const r=n(118),i=n(238);class o{constructor(e,t=i.defaultProtoCodec){this.signDoc=e,this.protoCodec=t}static decode(e){return new o(r.cosmos.tx.v1beta1.SignDoc.decode(e))}get txBody(){return this._txBody||(this._txBody=r.cosmos.tx.v1beta1.TxBody.decode(this.signDoc.bodyBytes)),this._txBody}get txMsgs(){const e=[];for(const t of this.txBody.messages)e.push(this.protoCodec.unpackAny(t));return e}get authInfo(){return this._authInfo||(this._authInfo=r.cosmos.tx.v1beta1.AuthInfo.decode(this.signDoc.authInfoBytes)),this._authInfo}get chainId(){return this.signDoc.chainId}get accountNumber(){return this.signDoc.accountNumber.toString()}toBytes(){return r.cosmos.tx.v1beta1.SignDoc.encode(this.signDoc).finish()}toJSON(){return{txBody:Object.assign(Object.assign({},this.txBody.toJSON()),{messages:this.txMsgs.map(e=>e&&e.toJSON?e.toJSON():e)}),authInfo:this.authInfo.toJSON(),chainId:this.chainId,accountNumber:this.accountNumber}}}t.ProtoSignDocDecoder=o},function(e,t,n){"use strict";(function(t,r){var i=n(119);e.exports=v;var o,a=n(237);v.ReadableState=g;n(51).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n(244),l=n(153).Buffer,u=t.Uint8Array||function(){};var f=Object.create(n(95));f.inherits=n(4);var d=n(446),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var h,m=n(447),b=n(245);f.inherits(v,c);var y=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var r=t instanceof(o=o||n(65));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,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&&(h||(h=n(66).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function v(e){if(o=o||n(65),!(this instanceof v))return new v(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function w(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,x(e)}(e,a)):(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):_(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?_(e,a,t,!1):O(e,a)):_(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function _(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&x(e)),O(e,t)}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),v.prototype.destroy=b.destroy,v.prototype._undestroy=b.undestroy,v.prototype._destroy=function(e,t){this.push(null),t(e)},v.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),w(this,e,t,!1,n)},v.prototype.unshift=function(e){return w(this,e,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(e){return h||(h=n(66).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};function k(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>=8388608?e=8388608:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function x(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(S,e):S(e))}function S(e){p("emit readable"),e.emit("readable"),M(e)}function O(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){p("readable nexttick read 0"),e.read(0)}function A(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),M(e),t.flowing&&!t.reading&&e.read(0)}function M(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,i=n.data;e-=i.length;for(;n=n.next;){var o=n.data,a=e>o.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(C,t,e))}function C(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function j(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}v.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):x(this),null;if(0===(e=k(e,t))&&t.ended)return 0===t.length&&P(this),null;var r,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),null===(r=e>0?I(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&P(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var c=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:v;function l(t,r){p("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,p("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",b),e.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",v),n.removeListener("data",m),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function u(){p("onend"),e.end()}o.endEmitted?i.nextTick(c):n.once("end",c),e.on("unpipe",l);var f=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,M(e))}}(n);e.on("drain",f);var d=!1;var h=!1;function m(t){p("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==j(o.pipes,e))&&!d&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function b(t){p("onerror",t),v(),e.removeListener("error",b),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",g),v()}function g(){p("onfinish"),e.removeListener("close",y),v()}function v(){p("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",b),e.once("close",y),e.once("finish",g),e.emit("pipe",n),o.flowing||(p("pipe resume"),n.resume()),e},v.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=j(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},v.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&x(this):i.nextTick(T,this))}return n},v.prototype.addListener=v.prototype.on,v.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(A,e,t))}(this,e)),this},v.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(p("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.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 o=0;o<y.length;o++)e.on(y[o],this.emit.bind(this,y[o]));return this._read=function(t){p("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=I}).call(this,n(12),n(13))},function(e,t,n){e.exports=n(51).EventEmitter},function(e,t,n){"use strict";var r=n(119);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(r.nextTick(i,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)})),this)},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,n){"use strict";e.exports=a;var r=n(65),i=Object.create(n(95));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},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.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,n){c(e,t,n)})):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=n(4),i.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.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},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,(function(e){t(e),n.emit("close")}))}},function(e,t,n){"use strict";var r=n(49).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(49),i=n(96),o=n(247),a=n(32),s=r.sum32,c=r.sum32_4,l=r.sum32_5,u=o.ch32,f=o.maj32,d=o.s0_256,p=o.s1_256,h=o.g0_256,m=o.g1_256,b=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(g,b),e.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(m(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],b=this.h[2],y=this.h[3],g=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var k=l(_,p(g),u(g,v,w),this.k[r],n[r]),x=s(d(i),f(i,o,b));_=w,w=v,v=g,g=s(y,k),y=b,b=o,o=i,i=s(k,x)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],b),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],g),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},g.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(49),i=n(96),o=n(32),a=r.rotr64_hi,s=r.rotr64_lo,c=r.shr64_hi,l=r.shr64_lo,u=r.sum64,f=r.sum64_hi,d=r.sum64_lo,p=r.sum64_4_hi,h=r.sum64_4_lo,m=r.sum64_5_hi,b=r.sum64_5_lo,y=i.BlockHash,g=[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 v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}function w(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}function _(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}function k(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}function x(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}function S(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function O(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function E(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function A(e,t){var n=a(e,t,1)^a(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function M(e,t){var n=s(e,t,1)^s(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function I(e,t){var n=a(e,t,19)^a(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}function P(e,t){var n=s(e,t,19)^s(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=I(n[r-4],n[r-3]),o=P(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],c=A(n[r-30],n[r-29]),l=M(n[r-30],n[r-29]),u=n[r-32],f=n[r-31];n[r]=p(i,o,a,s,c,l,u,f),n[r+1]=h(i,o,a,s,c,l,u,f)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],c=this.h[4],l=this.h[5],p=this.h[6],h=this.h[7],y=this.h[8],g=this.h[9],v=this.h[10],A=this.h[11],M=this.h[12],I=this.h[13],P=this.h[14],C=this.h[15];o(this.k.length===n.length);for(var j=0;j<n.length;j+=2){var D=P,R=C,N=E(y,g),B=T(y,g),L=w(y,g,v,A,M),U=_(y,g,v,A,M,I),F=this.k[j],q=this.k[j+1],z=n[j],V=n[j+1],H=m(D,R,N,B,L,U,F,q,z,V),$=b(D,R,N,B,L,U,F,q,z,V);D=S(r,i),R=O(r,i),N=k(r,i,a,s,c),B=x(r,i,a,s,c,l);var K=f(D,R,N,B),W=d(D,R,N,B);P=M,C=I,M=v,I=A,v=y,A=g,y=f(p,h,H,$),g=d(h,h,H,$),p=c,h=l,c=a,l=s,a=r,s=i,r=f(H,$,K,W),i=d(H,$,K,W)}u(this.h,0,r,i),u(this.h,2,a,s),u(this.h,4,c,l),u(this.h,6,p,h),u(this.h,8,y,g),u(this.h,10,v,A),u(this.h,12,M,I),u(this.h,14,P,C)},v.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(7).Buffer,i=n(458).Transform;function o(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(4)(o,i),o.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var a=0,s=8*e.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,n){"use strict";(function(t,r){var i;e.exports=O,O.ReadableState=S;n(51).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n(252),s=n(2).Buffer,c=t.Uint8Array||function(){};var l,u=n(459);l=u&&u.debuglog?u.debuglog("stream"):function(){};var f,d,p,h=n(460),m=n(253),b=n(254).getHighWaterMark,y=n(73).codes,g=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(4)(O,a);var k=m.errorOrDestroy,x=["error","close","destroy","pause","resume"];function S(e,t,r){i=i||n(74),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new h,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(66).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function O(e){if(i=i||n(74),!(this instanceof O))return new O(e);var t=this instanceof i;this._readableState=new S(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function E(e,t,n,r,i){l("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(l("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}(e,a);else if(i||(o=function(e,t){var n;r=t,s.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(a,t)),o)k(e,o);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)a.endEmitted?k(e,new _):T(e,a,t,!0);else if(a.ended)k(e,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?T(e,a,t,!1):P(e,a)):T(e,a,t,!1)}else r||(a.reading=!1,P(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function T(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&M(e)),P(e,t)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=m.destroy,O.prototype._undestroy=m.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=""),n=!0),E(this,e,t,!1,n)},O.prototype.unshift=function(e){return E(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){f||(f=n(66).StringDecoder);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};function A(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>=1073741824?e=1073741824:(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 M(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(I,e))}function I(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function P(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(l("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function j(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){l("readable nexttick read 0"),e.read(0)}function R(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function L(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function F(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}O.prototype.read=function(e){l("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):M(this),null;if(0===(e=A(e,t))&&t.ended)return 0===t.length&&L(this),null;var r,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),t.ended||t.reading?l("reading or ended",i=!1):i&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=A(n,t))),null===(r=e>0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&L(this)),null!==r&&this.emit("data",r),r},O.prototype._read=function(e){k(this,new w("_read()"))},O.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,l("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:b;function s(t,r){l("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,l("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",d),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function c(){l("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",u);var f=!1;function d(t){l("ondata");var r=e.write(t);l("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!f&&(l("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){l("onerror",t),b(),e.removeListener("error",p),0===o(e,"error")&&k(e,t)}function h(){e.removeListener("finish",m),b()}function m(){l("onfinish"),e.removeListener("close",h),b()}function b(){l("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",h),e.once("finish",m),e.emit("pipe",n),i.flowing||(l("pipe resume"),n.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},O.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,l("on readable",i.length,i.reading),i.length?M(this):i.reading||r.nextTick(D,this))),n},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(j,this),n},O.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(j,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(R,e,t))}(this,e)),e.paused=!1,this},O.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(l("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(l("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.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 o=0;o<x.length;o++)e.on(x[o],this.emit.bind(this,x[o]));return this._read=function(t){l("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(462)),d(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=B,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===p&&(p=n(463)),p(O,e,t)})}).call(this,n(12),n(13))},function(e,t,n){e.exports=n(51).EventEmitter},function(e,t,n){"use strict";(function(t){function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!o&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(r,a):(a._writableState.errorEmitted=!0,t.nextTick(n,a,e)):t.nextTick(n,a,e):o?(t.nextTick(r,a),o(e)):t.nextTick(r,a)})),this)},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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,n(13))},function(e,t,n){"use strict";var r=n(73).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,n){"use strict";(function(t,r){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=O,O.WritableState=S;var a={deprecate:n(155)},s=n(252),c=n(2).Buffer,l=t.Uint8Array||function(){};var u,f=n(253),d=n(254).getHighWaterMark,p=n(73).codes,h=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,b=p.ERR_MULTIPLE_CALLBACK,y=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function x(){}function S(e,t,a){o=o||n(74),e=e||{},"boolean"!=typeof a&&(a=t instanceof o),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,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 n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new b;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(P,e,t),e._writableState.errorEmitted=!0,k(e,i)):(o(i),e._writableState.errorEmitted=!0,k(e,i),P(e,t))}(e,n,i,t,o);else{var a=M(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||A(e,n),i?r.nextTick(T,e,n,a,o):T(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(e){var t=this instanceof(o=o||n(74));if(!t&&!u.call(O,this))return new O(e);this._writableState=new S(e,this,t),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)),s.call(this)}function E(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),P(e,t)}function A(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)o[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;o.allBuffers=c,E(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,f=n.callback;if(E(e,t,!1,t.objectMode?1:l.length,l,u,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function M(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final((function(n){t.pendingcb--,n&&k(e,n),t.prefinished=!0,e.emit("prefinish"),P(e,t)}))}function P(e,t){var n=M(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(I,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}n(4)(O,s),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.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]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===O&&(e&&e._writableState instanceof S)}})):u=function(e){return e instanceof this},O.prototype.pipe=function(){k(this,new y)},O.prototype.write=function(e,t,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=x),o.ending?function(e,t){var n=new w;k(e,n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var o;return null===n?o=new v:"string"==typeof n||t.objectMode||(o=new h("chunk",["string","Buffer"],n)),!o||(k(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,s,r,i,o);return l}(this,o,s,e,t,n)),a},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||A(this,e))},O.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 _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,n){n(new m("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(e,t){t(e)}}).call(this,n(12),n(13))},function(e,t,n){"use strict";e.exports=u;var r=n(73).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(74);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},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.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}n(4)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,n){var r=n(4),i=n(77),o=n(7).Buffer,a=[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],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function f(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.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},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,h=0|this._f,m=0|this._g,b=0|this._h,y=0;y<16;++y)n[y]=e.readInt32BE(4*y);for(;y<64;++y)n[y]=0|(((t=n[y-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[y-7]+p(n[y-15])+n[y-16];for(var g=0;g<64;++g){var v=b+d(c)+l(c,h,m)+a[g]+n[g]|0,w=f(r)+u(r,i,o)|0;b=m,m=h,h=c,c=s+v|0,s=o,o=i,i=r,r=v+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=h+this._f|0,this._g=m+this._g|0,this._h=b+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},function(e,t,n){var r=n(4),i=n(77),o=n(7).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function f(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function b(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0<t>>>0?1:0}r(c,i),c.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},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,g=0|this._gh,v=0|this._hh,w=0|this._al,_=0|this._bl,k=0|this._cl,x=0|this._dl,S=0|this._el,O=0|this._fl,E=0|this._gl,T=0|this._hl,A=0;A<32;A+=2)t[A]=e.readInt32BE(4*A),t[A+1]=e.readInt32BE(4*A+4);for(;A<160;A+=2){var M=t[A-30],I=t[A-30+1],P=p(M,I),C=h(I,M),j=m(M=t[A-4],I=t[A-4+1]),D=b(I,M),R=t[A-14],N=t[A-14+1],B=t[A-32],L=t[A-32+1],U=C+N|0,F=P+R+y(U,C)|0;F=(F=F+j+y(U=U+D|0,D)|0)+B+y(U=U+L|0,L)|0,t[A]=F,t[A+1]=U}for(var q=0;q<160;q+=2){F=t[q],U=t[q+1];var z=u(n,r,i),V=u(w,_,k),H=f(n,w),$=f(w,n),K=d(s,S),W=d(S,s),G=a[q],J=a[q+1],Q=l(s,c,g),Y=l(S,O,E),Z=T+W|0,X=v+K+y(Z,T)|0;X=(X=(X=X+Q+y(Z=Z+Y|0,Y)|0)+G+y(Z=Z+J|0,J)|0)+F+y(Z=Z+U|0,U)|0;var ee=$+V|0,te=H+z+y(ee,$)|0;v=g,T=E,g=c,E=O,c=s,O=S,s=o+X+y(S=x+Z|0,x)|0,o=i,x=k,i=r,k=_,r=n,_=w,n=X+te+y(w=Z+ee|0,Z)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+k|0,this._dl=this._dl+x|0,this._el=this._el+S|0,this._fl=this._fl+O|0,this._gl=this._gl+E|0,this._hl=this._hl+T|0,this._ah=this._ah+n+y(this._al,w)|0,this._bh=this._bh+r+y(this._bl,_)|0,this._ch=this._ch+i+y(this._cl,k)|0,this._dh=this._dh+o+y(this._dl,x)|0,this._eh=this._eh+s+y(this._el,S)|0,this._fh=this._fh+c+y(this._fl,O)|0,this._gh=this._gh+g+y(this._gl,E)|0,this._hh=this._hh+v+y(this._hl,T)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},function(e,t,n){var r=n(156);e.exports=function(e){return(new r).update(e).digest()}},function(e){e.exports=JSON.parse('{"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){var n=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>n||t!=t)throw new TypeError("Bad key length")}},function(e,t,n){(function(t){var n;if(t.browser)n="utf-8";else if(t.version){n=parseInt(t.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";e.exports=n}).call(this,n(13))},function(e,t,n){var r=n(259),i=n(75),o=n(76),a=n(7).Buffer,s=n(261),c=n(262),l=n(264),u=a.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,n){var s=function(e){function t(t){return o(e).update(t).digest()}return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?r:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length<c&&(t=a.concat([t,u],c));for(var l=a.allocUnsafe(c+f[e]),d=a.allocUnsafe(c+f[e]),p=0;p<c;p++)l[p]=54^t[p],d[p]=92^t[p];var h=a.allocUnsafe(c+n+4);l.copy(h,0,0,c),this.ipad1=h,this.ipad2=l,this.opad=d,this.alg=e,this.blocksize=c,this.hash=s,this.size=f[e]}d.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,n,r,i){s(n,r);var o=new d(i=i||"sha1",e=l(e,c,"Password"),(t=l(t,c,"Salt")).length),u=a.allocUnsafe(r),p=a.allocUnsafe(t.length+4);t.copy(p,0,0,t.length);for(var h=0,m=f[i],b=Math.ceil(r/m),y=1;y<=b;y++){p.writeUInt32BE(y,t.length);for(var g=o.run(p,o.ipad1),v=g,w=1;w<n;w++){v=o.run(v,o.ipad2);for(var _=0;_<m;_++)g[_]^=v[_]}g.copy(u,h),h+=m}return u}},function(e,t,n){var r=n(7).Buffer;e.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},function(e,t,n){"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,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},t.rip=function(e,t,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},t.pc1=function(e,t,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var r=[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,n,i){for(var o=0,a=0,s=r.length>>>1,c=0;c<s;c++)o<<=1,o|=e>>>r[c]&1;for(c=s;c<r.length;c++)a<<=1,a|=t>>>r[c]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+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 n=0,r=0;r<4;r++){n<<=4,n|=i[64*r+(e>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=i[256+64*r+(t>>>18-6*r&63)]}return n>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n<o.length;n++)t<<=1,t|=e>>>o[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],o=0;o<t;o+=n)i.push(r.slice(o,o+n));return i.join(" ")}},function(e,t,n){"use strict";var r=n(32),i=n(4),o=n(265),a=n(158);function s(){this.tmp=new Array(2),this.keys=null}function c(e){a.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}i(c,a),e.exports=c,c.create=function(e){return new c(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var a=0;a<e.keys.length;a+=2){var s=l[a>>>1];n=o.r28shl(n,s),i=o.r28shl(i,s),o.pc2(n,i,e.keys,a)}},c.prototype._update=function(e,t,n,r){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,s,r+4)},c.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},c.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},c.prototype._encrypt=function(e,t,n,r,i){for(var a=t,s=n,c=0;c<e.keys.length;c+=2){var l=e.keys[c],u=e.keys[c+1];o.expand(s,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var f=o.substitute(l,u),d=s;s=(a^o.permute(f))>>>0,a=d}o.rip(s,a,r,i)},c.prototype._decrypt=function(e,t,n,r,i){for(var a=n,s=t,c=e.keys.length-2;c>=0;c-=2){var l=e.keys[c],u=e.keys[c+1];o.expand(a,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var f=o.substitute(l,u),d=a;a=(s^o.permute(f))>>>0,s=d}o.rip(a,s,r,i)}},function(e,t,n){var r=n(98),i=n(7).Buffer,o=n(268);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var c=a(e),l=o+16*s;e._cache.writeUInt32BE(c[0],l+0),e._cache.writeUInt32BE(c[1],l+4),e._cache.writeUInt32BE(c[2],l+8),e._cache.writeUInt32BE(c[3],l+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,u)}},function(e,t){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},function(e){e.exports=JSON.parse('{"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,n){var r=n(121),i=n(7).Buffer,o=n(56),a=n(4),s=n(489),c=n(98),l=n(268);function u(e,t,n,a){o.call(this);var c=i.alloc(4,0);this._cipher=new r.AES(t);var u=this._cipher.encryptBlock(c);this._ghash=new s(u),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new s(n),o=t.length,a=o%16;r.update(t),a&&(a=16-a,r.update(i.alloc(a,0))),r.update(i.alloc(8,0));var c=8*o,u=i.alloc(8);u.writeUIntBE(c,0,8),r.update(u),e._finID=r.state;var f=i.from(e._finID);return l(f),f}(this,n,u),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(u,o),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.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=u},function(e,t,n){var r=n(121),i=n(7).Buffer,o=n(56);function a(e,t,n,a){o.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}n(4)(a,o),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},function(e,t,n){var r=n(62);e.exports=g,g.simpleSieve=b,g.fermatTest=y;var i=n(6),o=new i(24),a=new(n(273)),s=new i(1),c=new i(2),l=new i(5),u=(new i(16),new i(8),new i(10)),f=new i(3),d=(new i(7),new i(11)),p=new i(4),h=(new i(12),null);function m(){if(null!==h)return h;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return h=e,e}function b(e){for(var t=m(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function y(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function g(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,h;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(l))for(;n.mod(u).cmp(f);)n.iadd(p)}else for(;n.mod(o).cmp(d);)n.iadd(p);if(b(h=n.shrn(1))&&b(n)&&y(h)&&y(n)&&a.test(h)&&a.test(n))return n}}},function(e,t,n){var r=n(6),i=n(161);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},o.prototype.test=function(e,t,n){var i=e.bitLength(),o=r.mont(e),a=new r(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var l=e.shrn(c),u=s.toRed(o);t>0;t--){var f=this._randrange(new r(2),s);n&&n(f);var d=f.toRed(o).redPow(l);if(0!==d.cmp(a)&&0!==d.cmp(u)){for(var p=1;p<c;p++){if(0===(d=d.redSqr()).cmp(a))return!1;if(0===d.cmp(u))break}if(p===c)return!1}}return!0},o.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),o=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var c=e.shrn(s),l=a.toRed(i);t>0;t--){var u=this._randrange(new r(2),a),f=e.gcd(u);if(0!==f.cmpn(1))return f;var d=u.toRed(i).redPow(c);if(0!==d.cmp(o)&&0!==d.cmp(l)){for(var p=1;p<s;p++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(l))break}if(p===s)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,n){"use strict";(function(t,r){var i;e.exports=O,O.ReadableState=S;n(51).EventEmitter;var o=function(e,t){return e.listeners(t).length},a=n(275),s=n(2).Buffer,c=t.Uint8Array||function(){};var l,u=n(498);l=u&&u.debuglog?u.debuglog("stream"):function(){};var f,d,p,h=n(499),m=n(276),b=n(277).getHighWaterMark,y=n(78).codes,g=y.ERR_INVALID_ARG_TYPE,v=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,_=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(4)(O,a);var k=m.errorOrDestroy,x=["error","close","destroy","pause","resume"];function S(e,t,r){i=i||n(79),e=e||{},"boolean"!=typeof r&&(r=t instanceof i),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=b(this,e,"readableHighWaterMark",r),this.buffer=new h,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.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=n(66).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function O(e){if(i=i||n(79),!(this instanceof O))return new O(e);var t=this instanceof i;this._readableState=new S(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function E(e,t,n,r,i){l("readableAddChunk",t);var o,a=e._readableState;if(null===t)a.reading=!1,function(e,t){if(l("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}(e,a);else if(i||(o=function(e,t){var n;r=t,s.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(a,t)),o)k(e,o);else if(a.objectMode||t&&t.length>0)if("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)a.endEmitted?k(e,new _):T(e,a,t,!0);else if(a.ended)k(e,new v);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?T(e,a,t,!1):P(e,a)):T(e,a,t,!1)}else r||(a.reading=!1,P(e,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function T(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&M(e)),P(e,t)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),O.prototype.destroy=m.destroy,O.prototype._undestroy=m.undestroy,O.prototype._destroy=function(e,t){t(e)},O.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=""),n=!0),E(this,e,t,!1,n)},O.prototype.unshift=function(e){return E(this,e,null,!0,!1)},O.prototype.isPaused=function(){return!1===this._readableState.flowing},O.prototype.setEncoding=function(e){f||(f=n(66).StringDecoder);var t=new f(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};function A(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>=1073741824?e=1073741824:(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 M(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,r.nextTick(I,e))}function I(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,N(e)}function P(e,t){t.readingMore||(t.readingMore=!0,r.nextTick(C,e,t))}function C(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(l("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function j(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function D(e){l("readable nexttick read 0"),e.read(0)}function R(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),N(e),t.flowing&&!t.reading&&e.read(0)}function N(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function L(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,r.nextTick(U,t,e))}function U(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function F(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}O.prototype.read=function(e){l("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):M(this),null;if(0===(e=A(e,t))&&t.ended)return 0===t.length&&L(this),null;var r,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),t.ended||t.reading?l("reading or ended",i=!1):i&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=A(n,t))),null===(r=e>0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&L(this)),null!==r&&this.emit("data",r),r},O.prototype._read=function(e){k(this,new w("_read()"))},O.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,l("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:b;function s(t,r){l("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,l("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",p),e.removeListener("unpipe",s),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",d),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function c(){l("onend"),e.end()}i.endEmitted?r.nextTick(a):n.once("end",a),e.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,N(e))}}(n);e.on("drain",u);var f=!1;function d(t){l("ondata");var r=e.write(t);l("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!f&&(l("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){l("onerror",t),b(),e.removeListener("error",p),0===o(e,"error")&&k(e,t)}function h(){e.removeListener("finish",m),b()}function m(){l("onfinish"),e.removeListener("close",h),b()}function b(){l("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",p),e.once("close",h),e.once("finish",m),e.emit("pipe",n),i.flowing||(l("pipe resume"),n.resume()),e},O.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},O.prototype.on=function(e,t){var n=a.prototype.on.call(this,e,t),i=this._readableState;return"data"===e?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===e&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,l("on readable",i.length,i.reading),i.length?M(this):i.reading||r.nextTick(D,this))),n},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(e,t){var n=a.prototype.removeListener.call(this,e,t);return"readable"===e&&r.nextTick(j,this),n},O.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||r.nextTick(j,this),t},O.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(R,e,t))}(this,e)),e.paused=!1,this},O.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(l("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(l("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.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 o=0;o<x.length;o++)e.on(x[o],this.emit.bind(this,x[o]));return this._read=function(t){l("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(O.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(501)),d(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),O._fromList=B,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(O.from=function(e,t){return void 0===p&&(p=n(502)),p(O,e,t)})}).call(this,n(12),n(13))},function(e,t,n){e.exports=n(51).EventEmitter},function(e,t,n){"use strict";(function(t){function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var a=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!o&&e?a._writableState?a._writableState.errorEmitted?t.nextTick(r,a):(a._writableState.errorEmitted=!0,t.nextTick(n,a,e)):t.nextTick(n,a,e):o?(t.nextTick(r,a),o(e)):t.nextTick(r,a)})),this)},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.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this,n(13))},function(e,t,n){"use strict";var r=n(78).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},function(e,t,n){"use strict";(function(t,r){function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=O,O.WritableState=S;var a={deprecate:n(155)},s=n(275),c=n(2).Buffer,l=t.Uint8Array||function(){};var u,f=n(276),d=n(277).getHighWaterMark,p=n(78).codes,h=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,b=p.ERR_MULTIPLE_CALLBACK,y=p.ERR_STREAM_CANNOT_PIPE,g=p.ERR_STREAM_DESTROYED,v=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function x(){}function S(e,t,a){o=o||n(79),e=e||{},"boolean"!=typeof a&&(a=t instanceof o),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,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 n=e._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new b;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,o){--t.pendingcb,n?(r.nextTick(o,i),r.nextTick(P,e,t),e._writableState.errorEmitted=!0,k(e,i)):(o(i),e._writableState.errorEmitted=!0,k(e,i),P(e,t))}(e,n,i,t,o);else{var a=M(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||A(e,n),i?r.nextTick(T,e,n,a,o):T(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function O(e){var t=this instanceof(o=o||n(79));if(!t&&!u.call(O,this))return new O(e);this._writableState=new S(e,this,t),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)),s.call(this)}function E(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function T(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),P(e,t)}function A(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),a=t.corkedRequestsFree;a.entry=n;for(var s=0,c=!0;n;)o[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;o.allBuffers=c,E(e,t,!0,t.length,o,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,f=n.callback;if(E(e,t,!1,t.objectMode?1:l.length,l,u,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function M(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function I(e,t){e._final((function(n){t.pendingcb--,n&&k(e,n),t.prefinished=!0,e.emit("prefinish"),P(e,t)}))}function P(e,t){var n=M(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,r.nextTick(I,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}n(4)(O,s),S.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(S.prototype,"buffer",{get:a.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]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===O&&(e&&e._writableState instanceof S)}})):u=function(e){return e instanceof this},O.prototype.pipe=function(){k(this,new y)},O.prototype.write=function(e,t,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return s&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=x),o.ending?function(e,t){var n=new w;k(e,n),r.nextTick(t,n)}(this,n):(s||function(e,t,n,i){var o;return null===n?o=new v:"string"==typeof n||t.objectMode||(o=new h("chunk",["string","Buffer"],n)),!o||(k(e,o),r.nextTick(i,o),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,s,r,i,o);return l}(this,o,s,e,t,n)),a},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||A(this,e))},O.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 _(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(e,t,n){n(new m("_write()"))},O.prototype._writev=null,O.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?r.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(e,t){t(e)}}).call(this,n(12),n(13))},function(e,t,n){"use strict";e.exports=u;var r=n(78).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(79);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},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.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}n(4)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},function(e,t,n){"use strict";var r=t;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},r.zero2=i,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,n){"use strict";var r=t;r.base=n(123),r.short=n(509),r.mont=n(510),r.edwards=n(511)},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(520).Buffer}catch(e){}function s(e,t,n){for(var i=0,o=Math.min(e.length,n),a=0,s=t;s<o;s++){var c,l=e.charCodeAt(s)-48;i<<=4,i|=c=l>=49&&l<=54?l-49+10:l>=17&&l<=22?l-17+10:l,a|=c}return r(!(240&a),"Invalid character in "+e),i}function c(e,t,n,i){for(var o=0,a=0,s=Math.min(e.length,n),c=t;c<s;c++){var l=e.charCodeAt(c)-48;o*=i,a=l>=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&a<i,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(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"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("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 o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.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},o.prototype._move=function(e){l(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[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],p=[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];o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?f[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],u=p[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(e);n=(h=h.idivn(u)).isZero()?m+n:f[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,f=67108863&c,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var h=l-p|0;u+=(a=(i=0|e.words[h])*(o=0|t.words[p])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===o?(n<e.length&&(e[n++]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.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()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,n,r;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?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.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)},o.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var r,i,o,a=e.words,s=t.words,c=n.words,l=0,u=0|a[0],f=8191&u,d=u>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],y=8191&b,g=b>>>13,v=0|a[3],w=8191&v,_=v>>>13,k=0|a[4],x=8191&k,S=k>>>13,O=0|a[5],E=8191&O,T=O>>>13,A=0|a[6],M=8191&A,I=A>>>13,P=0|a[7],C=8191&P,j=P>>>13,D=0|a[8],R=8191&D,N=D>>>13,B=0|a[9],L=8191&B,U=B>>>13,F=0|s[0],q=8191&F,z=F>>>13,V=0|s[1],H=8191&V,$=V>>>13,K=0|s[2],W=8191&K,G=K>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var be=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(h,q),i=(i=Math.imul(h,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(g,q)|0,o=Math.imul(g,z),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,$)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,$)|0;var ge=(l+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,$)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ve=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(S,q)|0,o=Math.imul(S,z),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,G)|0,r=r+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,z))+Math.imul(T,q)|0,o=Math.imul(T,z),r=r+Math.imul(x,H)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,z))+Math.imul(I,q)|0,o=Math.imul(I,z),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(l+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,z))+Math.imul(j,q)|0,o=Math.imul(j,z),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var xe=(l+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(N,q)|0,o=Math.imul(N,z),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(U,q)|0,o=Math.imul(U,z),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,le)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Oe=(l+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,H),i=(i=Math.imul(L,$))+Math.imul(U,H)|0,o=Math.imul(U,$),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ee=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,G))+Math.imul(U,W)|0,o=Math.imul(U,G),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(l+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(g,he)|0))<<13)|0;l=((o=o+Math.imul(g,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(U,Q)|0,o=Math.imul(U,Y),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,le)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ae=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,he)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Me=(l+(r=r+Math.imul(x,he)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,he)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,le)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(r=r+Math.imul(E,he)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(T,he)|0))<<13)|0;l=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var Pe=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(U,ce)|0,o=Math.imul(U,le),r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,de)|0;var Ce=(l+(r=r+Math.imul(C,he)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(j,he)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var je=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(N,he)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863;var De=(l+(r=Math.imul(L,he))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,he)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=be,c[1]=ye,c[2]=ge,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=xe,c[8]=Se,c[9]=Oe,c[10]=Ee,c[11]=Te,c[12]=Ae,c[13]=Me,c[14]=Ie,c[15]=Pe,c[16]=Ce,c[17]=je,c[18]=De,0!==l&&(c[19]=l,n.length++),n};function b(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,f=(0|e.words[u])*(0|t.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(e,t,n){return b(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(m=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?h(this,e,t):n<1024?b(this,e,t):y(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},g.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},g.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},g.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=c,d=l,p=0;p<a;p++){var h=n[u+p],m=r[u+p],b=n[u+p+a],y=r[u+p+a],g=f*b-d*y;y=f*y+d*b,b=g,n[u+p]=h+b,r[u+p]=m+y,n[u+p+a]=h-b,r[u+p+a]=m-y,p!==s&&(g=c*f-l*d,d=c*d+l*f,f=g)}},g.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},g.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,l,r),this.transform(a,o,s,c,r,i),this.transform(l,o,u,f,r,i);for(var p=0;p<r;p++){var h=s[p]*u[p]-c[p]*f[p];c[p]=s[p]*f[p]+c[p]*u[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),y(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<n;this.words[t]=c|a,a=s>>>26-n}a&&(this.words[t]=a,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()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=n;if(i-=a,i=Math.max(0,i),c){for(var l=0;l<a;l++)c.words[l]=this.words[l];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var f=0|this.words[l];this.words[l]=u<<26-o|f>>>o,u=f&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(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)},o.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},o.prototype.isubn=function(e){if(r("number"==typeof e),r(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()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(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},o.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},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new O(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){O.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(_,w),_.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(k,w),i(x,w),i(S,w),S.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new k;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return v[e]=t,t},O.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},O.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},O.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},O.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},O.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},O.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},O.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},O.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},O.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},O.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},O.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},O.prototype.isqr=function(e){return this.imul(e,e.clone())},O.prototype.sqr=function(e){return this.mul(e,e)},O.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();r(b<h);var y=this.pow(f,new o(1).iushln(h-b-1));d=d.redMul(y),f=y.redSqr(),p=p.redMul(f),h=b}return d},O.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},O.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var f=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},O.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},O.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,O),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(71)(e))},function(e,t,n){"use strict";const r=t;r.bignum=n(6),r.define=n(522).define,r.base=n(525),r.constants=n(526),r.decoders=n(286),r.encoders=n(284)},function(e,t,n){"use strict";const r=t;r.der=n(285),r.pem=n(523)},function(e,t,n){"use strict";const r=n(4),i=n(165).Buffer,o=n(166),a=n(168);function s(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.call(this,"der",e)}function l(e){return e<10?"0"+e:e}e.exports=s,s.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,o),c.prototype._encodeComposite=function(e,t,n,r){const o=function(e,t,n,r){let i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(a.tagByName.hasOwnProperty(e))i=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}if(i>=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[n||"universal"]<<6,i}(e,t,n,this.reporter);if(r.length<128){const e=i.alloc(2);return e[0]=o,e[1]=r.length,this._createEncoderBuffer([e,r])}let s=1;for(let e=r.length;e>=256;e>>=8)s++;const c=i.alloc(2+s);c[0]=o,c[1]=128|s;for(let e=1+s,t=r.length;t>0;e--,t>>=8)c[e]=255&t;return this._createEncoderBuffer([c,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=i.alloc(2*e.length);for(let n=0;n<e.length;n++)t.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(t)}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)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,n){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(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let t=0;t<e.length;t++){let n=e[t];for(r++;n>=128;n>>=7)r++}const o=i.alloc(r);let a=o.length-1;for(let t=e.length-1;t>=0;t--){let n=e[t];for(o[a--]=127&n;(n>>=7)>0;)o[a--]=128|127&n}return this._createEncoderBuffer(o)},c.prototype._encodeTime=function(e,t){let n;const r=new Date(e);return"gentime"===t?n=[l(r.getUTCFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[l(r.getUTCFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=i.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let t=e;t>=256;t>>=8)n++;const r=new Array(n);for(let t=r.length-1;t>=0;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(i.from(r))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){const r=this._baseState;let i;if(null===r.default)return!1;const o=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),o.length!==r.defaultBuffer.length)return!1;for(i=0;i<o.length;i++)if(o[i]!==r.defaultBuffer[i])return!1;return!0}},function(e,t,n){"use strict";const r=t;r.der=n(287),r.pem=n(524)},function(e,t,n){"use strict";const r=n(4),i=n(6),o=n(99).DecoderBuffer,a=n(166),s=n(168);function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){a.call(this,"der",e)}function u(e,t){let n=e.readUInt8(t);if(e.isError(n))return n;const r=s.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){let r=n;for(n=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function f(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(let t=0;t<i;t++){r<<=8;const t=e.readUInt8(n);if(e.isError(t))return t;r|=t}return r}e.exports=c,c.prototype.decode=function(e,t){return o.isDecoderBuffer(e)||(e=new o(e,t)),this.tree._decode(e,t)},r(l,a),l.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;const r=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},l.prototype._decodeTag=function(e,t,n){const r=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;let i=f(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');const o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},l.prototype._skipUntilEnd=function(e,t){for(;;){const n=u(e,t);if(e.isError(n))return n;const r=f(e,n.primitive,t);if(e.isError(r))return r;let i;if(i=n.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===n.tagStr)break}},l.prototype._decodeList=function(e,t,n,r){const i=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const o=n.decode(e,"der",r);if(e.isError(o)&&t)break;i.push(o)}return i},l.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let n="";for(let e=0;e<t.length/2;e++)n+=String.fromCharCode(t.readUInt16BE(2*e));return n}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},l.prototype._decodeObjid=function(e,t,n){let r;const i=[];let o=0,a=0;for(;!e.isEmpty();)a=e.readUInt8(),o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0);128&a&&i.push(o);const s=i[0]/40|0,c=i[0]%40;if(r=n?i:[s,c].concat(i.slice(1)),t){let e=t[r.join(" ")];void 0===e&&(e=t[r.join(".")]),void 0!==e&&(r=e)}return r},l.prototype._decodeTime=function(e,t){const n=e.raw().toString();let r,i,o,a,s,c;if("gentime"===t)r=0|n.slice(0,4),i=0|n.slice(4,6),o=0|n.slice(6,8),a=0|n.slice(8,10),s=0|n.slice(10,12),c=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),o=0|n.slice(4,6),a=0|n.slice(6,8),s=0|n.slice(8,10),c=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,o,a,s,c,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){const n=e.raw();let r=new i(n);return t&&(r=t[r.toString(10)]||r),r},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e){e.exports=JSON.parse('{"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,n){var r=n(54),i=n(7).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,a=i.alloc(0),s=0;a.length<t;)n=o(s++),a=i.concat([a,r("sha1").update(e).update(n).digest()]);return a.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},function(e,t,n){var r=n(6),i=n(7).Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return-1^e}},function(e,t,n){"use strict";var r=n(57),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function c(e,t){if(t<65534&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,t.string2buf=function(e){var t,n,i,o,a,s=e.length,c=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),a=0,o=0;a<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return c(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},t.buf2string=function(e,t){var n,r,i,o,s=t||e.length,l=new Array(2*s);for(r=0,n=0;n<s;)if((i=e[n++])<128)l[r++]=i;else if((o=a[i])>4)l[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n<s;)i=i<<6|63&e[n++],o--;o>1?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},function(e,t,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r={};let i;t.wordlists=r,t._default=i;try{t._default=i=n(548),r.czech=i}catch(e){}try{t._default=i=n(549),r.chinese_simplified=i}catch(e){}try{t._default=i=n(550),r.chinese_traditional=i}catch(e){}try{t._default=i=n(551),r.korean=i}catch(e){}try{t._default=i=n(552),r.french=i}catch(e){}try{t._default=i=n(553),r.italian=i}catch(e){}try{t._default=i=n(554),r.spanish=i}catch(e){}try{t._default=i=n(555),r.japanese=i,r.JA=i}catch(e){}try{t._default=i=n(556),r.english=i,r.EN=i}catch(e){}},function(e,t,n){"use strict";var r=n(54),i=n(560);e.exports=i((function(e){var t=r("sha256").update(e).digest();return r("sha256").update(t).digest()}))},function(e,t,n){var r=n(170);function i(e){return e.name||e.toString().match(/function (.*?)\s*\(/)[1]}function o(e){return r.Nil(e)?"":i(e.constructor)}function a(e,t){Error.captureStackTrace&&Error.captureStackTrace(e,t)}function s(e){return r.Function(e)?e.toJSON?e.toJSON():i(e):r.Array(e)?"Array":e&&r.Object(e)?"Object":void 0!==e?e:""}function c(e,t,n){var i=function(e){return r.Function(e)?"":r.String(e)?JSON.stringify(e):e&&r.Object(e)?"":e}(t);return"Expected "+s(e)+", got"+(""!==n?" "+n:"")+(""!==i?" "+i:"")}function l(e,t,n){n=n||o(t),this.message=c(e,t,n),a(this,l),this.__type=e,this.__value=t,this.__valueTypeName=n}function u(e,t,n,r,i){e?(i=i||o(r),this.message=function(e,t,n,r,i){var o='" of type ';return"key"===t&&(o='" with key type '),c('property "'+s(n)+o+s(e),r,i)}(e,n,t,r,i)):this.message='Unexpected property "'+t+'"',a(this,l),this.__label=n,this.__property=t,this.__type=e,this.__value=r,this.__valueTypeName=i}l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,u.prototype=Object.create(Error.prototype),u.prototype.constructor=l,e.exports={TfTypeError:l,TfPropertyTypeError:u,tfCustomError:function(e,t){return new l(e,{},t)},tfSubError:function(e,t,n){return e instanceof u?(t=t+"."+e.__property,e=new u(e.__type,t,e.__label,e.__value,e.__valueTypeName)):e instanceof l&&(e=new u(e.__type,t,n,e.__value,e.__valueTypeName)),a(e),e},tfJSON:s,getValueTypeName:o}},function(e,t,n){var r;e.exports=(r=n(9),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),c[i]=n(e.pow(r,1/3)),i++),r++}();var l=[],u=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],f=n[6],d=n[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var h=l[p-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,b=l[p-2],y=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;l[p]=m+l[p-7]+y+l[p-16]}var g=r&i^r&o^i&o,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+c[p]+l[p];d=f,f=u,u=s,s=a+w|0,a=o,o=i,i=r,r=w+(v+g)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),r.SHA256)},function(e,t,n){var r;e.exports=(r=n(9),n(125),function(){var e=r,t=e.lib.Hasher,n=e.x64,i=n.Word,o=n.WordArray,a=e.algo;function s(){return i.create.apply(i,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];!function(){for(var e=0;e<80;e++)l[e]=s()}();var u=a.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],f=n[6],d=n[7],p=r.high,h=r.low,m=i.high,b=i.low,y=o.high,g=o.low,v=a.high,w=a.low,_=s.high,k=s.low,x=u.high,S=u.low,O=f.high,E=f.low,T=d.high,A=d.low,M=p,I=h,P=m,C=b,j=y,D=g,R=v,N=w,B=_,L=k,U=x,F=S,q=O,z=E,V=T,H=A,$=0;$<80;$++){var K,W,G=l[$];if($<16)W=G.high=0|e[t+2*$],K=G.low=0|e[t+2*$+1];else{var J=l[$-15],Q=J.high,Y=J.low,Z=(Q>>>1|Y<<31)^(Q>>>8|Y<<24)^Q>>>7,X=(Y>>>1|Q<<31)^(Y>>>8|Q<<24)^(Y>>>7|Q<<25),ee=l[$-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=l[$-7],ae=oe.high,se=oe.low,ce=l[$-16],le=ce.high,ue=ce.low;W=(W=(W=Z+ae+((K=X+se)>>>0<X>>>0?1:0))+re+((K+=ie)>>>0<ie>>>0?1:0))+le+((K+=ue)>>>0<ue>>>0?1:0),G.high=W,G.low=K}var fe,de=B&U^~B&q,pe=L&F^~L&z,he=M&P^M&j^P&j,me=I&C^I&D^C&D,be=(M>>>28|I<<4)^(M<<30|I>>>2)^(M<<25|I>>>7),ye=(I>>>28|M<<4)^(I<<30|M>>>2)^(I<<25|M>>>7),ge=(B>>>14|L<<18)^(B>>>18|L<<14)^(B<<23|L>>>9),ve=(L>>>14|B<<18)^(L>>>18|B<<14)^(L<<23|B>>>9),we=c[$],_e=we.high,ke=we.low,xe=V+ge+((fe=H+ve)>>>0<H>>>0?1:0),Se=ye+me;V=q,H=z,q=U,z=F,U=B,F=L,B=R+(xe=(xe=(xe=xe+de+((fe+=pe)>>>0<pe>>>0?1:0))+_e+((fe+=ke)>>>0<ke>>>0?1:0))+W+((fe+=K)>>>0<K>>>0?1:0))+((L=N+fe|0)>>>0<N>>>0?1:0)|0,R=j,N=D,j=P,D=C,P=M,C=I,M=xe+(be+he+(Se>>>0<ye>>>0?1:0))+((I=fe+Se|0)>>>0<fe>>>0?1:0)|0}h=r.low=h+I,r.high=p+M+(h>>>0<I>>>0?1:0),b=i.low=b+C,i.high=m+P+(b>>>0<C>>>0?1:0),g=o.low=g+D,o.high=y+j+(g>>>0<D>>>0?1:0),w=a.low=w+N,a.high=v+R+(w>>>0<N>>>0?1:0),k=s.low=k+L,s.high=_+B+(k>>>0<L>>>0?1:0),S=u.low=S+F,u.high=x+U+(S>>>0<F>>>0?1:0),E=f.low=E+z,f.high=O+q+(E>>>0<z>>>0?1:0),A=d.low=A+H,d.high=T+V+(A>>>0<H>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(u),e.HmacSHA512=t._createHmacHelper(u)}(),r.SHA512)},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(28);function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(28),i=n(598),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(306)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c}).call(this,n(13))},function(e,t,n){"use strict";var r=n(28),i=n(599),o=n(601),a=n(303),s=n(602),c=n(605),l=n(606),u=n(307);e.exports=function(e){return new Promise((function(t,n){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(h+":"+m)}var b=s(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),a(b,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in p?c(p.getAllResponseHeaders()):null,o={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};i(t,n,o),p=null}},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var y=(e.withCredentials||l(b))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;y&&(d[e.xsrfHeaderName]=y)}if("setRequestHeader"in p&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},function(e,t,n){"use strict";var r=n(600);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(28);e.exports=function(e,t){t=t||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function l(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=c(void 0,e[i])):n[i]=c(e[i],t[i])}r.forEach(i,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(o,l),r.forEach(a,(function(i){r.isUndefined(t[i])?r.isUndefined(e[i])||(n[i]=c(void 0,e[i])):n[i]=c(void 0,t[i])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var u=i.concat(o).concat(a).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(f,l),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAttribute=t.parseLogs=t.parseLog=t.parseEvent=t.parseAttribute=void 0;const r=n(100);function i(e){if(!r.isNonNullObject(e))throw new Error("Attribute must be a non-null object");const{key:t,value:n}=e;if("string"!=typeof t||!t)throw new Error("Attribute's key must be a non-empty string");if("string"!=typeof n&&void 0!==n)throw new Error("Attribute's value must be a string or unset");return{key:t,value:n||""}}function o(e){if(!r.isNonNullObject(e))throw new Error("Event must be a non-null object");const{type:t,attributes:n}=e;if("string"!=typeof t||""===t)throw new Error("Event type must be a non-empty string");if(!Array.isArray(n))throw new Error("Event's attributes must be an array");return{type:t,attributes:n.map(i)}}function a(e){if(!r.isNonNullObject(e))throw new Error("Log must be a non-null object");const{msg_index:t,log:n,events:i}=e;if("number"!=typeof t)throw new Error("Log's msg_index must be a number");if("string"!=typeof n)throw new Error("Log's log must be a string");if(!Array.isArray(i))throw new Error("Log's events must be an array");return{msg_index:t,log:n,events:i.map(o)}}t.parseAttribute=i,t.parseEvent=o,t.parseLog=a,t.parseLogs=function(e){if(!Array.isArray(e))throw new Error("Logs must be an array");return e.map(a)},t.findAttribute=function(e,t,n){var r;const i=e.find(()=>!0),o=null===(r=null==i?void 0:i.events.find(e=>e.type===t))||void 0===r?void 0:r.attributes.find(e=>e.key===n);if(!o)throw new Error(`Could not find attribute '${n}' in first event of type '${t}' in first log.`);return o}},function(e,t,n){!function(t){"use strict";for(var n=[null,0,{}],r=function(e,t){this.codepoint=e,this.feature=t},i={},o=[],a=0;a<=255;++a)o[a]=0;var s=[function(e,t,i){return t<60||13311<t&&t<42607?new r(t,n):e(t,i)},function(e,t,n){var r=i[t];return r||(r=e(t,n)).feature&&++o[t>>8&255]>10&&(i[t]=r),r},function(e,t,n){return n?e(t,n):new r(t,null)},function(e,t,n){var i;if(t<4352||4371<=t&&t<44032||55204<t)return e(t,n);if(4352<=t&&t<4371){var o={},a=21*(t-4352);for(i=0;i<21;++i)o[4449+i]=44032+28*(i+a);return new r(t,[,,o])}var s=t-44032,c=s%28,l=[];if(0!==c)l[0]=[44032+s-c,4519+c];else for(l[0]=[4352+Math.floor(s/588),4449+Math.floor(s%588/28)],l[2]={},i=1;i<28;++i)l[2][4519+i]=t+i;return new r(t,l)},function(e,t,i){var o=(r.udata[65280&t]||{})[t];return new r(t,o||n)}];r.fromCharCode=s.reduceRight((function(e,t){return function(n,r){return t(e,n,r)}}),null),r.isHighSurrogate=function(e){return e>=55296&&e<=56319},r.isLowSurrogate=function(e){return e>=56320&&e<=57343},r.prototype.prepFeature=function(){this.feature||(this.feature=r.fromCharCode(this.codepoint,!0).feature)},r.prototype.toString=function(){if(this.codepoint<65536)return String.fromCharCode(this.codepoint);var e=this.codepoint-65536;return String.fromCharCode(Math.floor(e/1024)+55296,e%1024+56320)},r.prototype.getDecomp=function(){return this.prepFeature(),this.feature[0]||null},r.prototype.isCompatibility=function(){return this.prepFeature(),!!this.feature[1]&&256&this.feature[1]},r.prototype.isExclude=function(){return this.prepFeature(),!!this.feature[1]&&512&this.feature[1]},r.prototype.getCanonicalClass=function(){return this.prepFeature(),this.feature[1]?255&this.feature[1]:0},r.prototype.getComposite=function(e){if(this.prepFeature(),!this.feature[2])return null;var t=this.feature[2][e.codepoint];return t?r.fromCharCode(t):null};var c=function(e){this.str=e,this.cursor=0};c.prototype.next=function(){if(this.str&&this.cursor<this.str.length){var e,t=this.str.charCodeAt(this.cursor++);return r.isHighSurrogate(t)&&this.cursor<this.str.length&&r.isLowSurrogate(e=this.str.charCodeAt(this.cursor))&&(t=1024*(t-55296)+(e-56320)+65536,++this.cursor),r.fromCharCode(t)}return this.str=null,null};var l=function(e,t){this.it=e,this.canonical=t,this.resBuf=[]};l.prototype.next=function(){if(0===this.resBuf.length){var e=this.it.next();if(!e)return null;this.resBuf=function e(t,n){var i=n.getDecomp();if(!i||t&&n.isCompatibility())return[n];for(var o=[],a=0;a<i.length;++a){var s=e(t,r.fromCharCode(i[a]));o=o.concat(s)}return o}(this.canonical,e)}return this.resBuf.shift()};var u=function(e){this.it=e,this.resBuf=[]};u.prototype.next=function(){var e;if(0===this.resBuf.length)do{var t=this.it.next();if(!t)break;e=t.getCanonicalClass();var n=this.resBuf.length;if(0!==e)for(;n>0;--n){if(this.resBuf[n-1].getCanonicalClass()<=e)break}this.resBuf.splice(n,0,t)}while(0!==e);return this.resBuf.shift()};var f=function(e){this.it=e,this.procBuf=[],this.resBuf=[],this.lastClass=null};f.prototype.next=function(){for(;0===this.resBuf.length;){var e=this.it.next();if(!e){this.resBuf=this.procBuf,this.procBuf=[];break}if(0===this.procBuf.length)this.lastClass=e.getCanonicalClass(),this.procBuf.push(e);else{var t=this.procBuf[0].getComposite(e),n=e.getCanonicalClass();t&&(this.lastClass<n||0===this.lastClass)?this.procBuf[0]=t:(0===n&&(this.resBuf=this.procBuf,this.procBuf=[]),this.lastClass=n,this.procBuf.push(e))}}return this.resBuf.shift()};var d=function(e,t){for(var n,r=function(e,t){switch(e){case"NFD":return new u(new l(new c(t),!0));case"NFKD":return new u(new l(new c(t),!1));case"NFC":return new f(new u(new l(new c(t),!0)));case"NFKC":return new f(new u(new l(new c(t),!1)))}throw e+" is invalid"}(e,t),i="";n=r.next();)i+=n.toString();return i};r.udata={0:{60:[,,{824:8814}],61:[,,{824:8800}],62:[,,{824:8815}],65:[,,{768:192,769:193,770:194,771:195,772:256,774:258,775:550,776:196,777:7842,778:197,780:461,783:512,785:514,803:7840,805:7680,808:260}],66:[,,{775:7682,803:7684,817:7686}],67:[,,{769:262,770:264,775:266,780:268,807:199}],68:[,,{775:7690,780:270,803:7692,807:7696,813:7698,817:7694}],69:[,,{768:200,769:201,770:202,771:7868,772:274,774:276,775:278,776:203,777:7866,780:282,783:516,785:518,803:7864,807:552,808:280,813:7704,816:7706}],70:[,,{775:7710}],71:[,,{769:500,770:284,772:7712,774:286,775:288,780:486,807:290}],72:[,,{770:292,775:7714,776:7718,780:542,803:7716,807:7720,814:7722}],73:[,,{768:204,769:205,770:206,771:296,772:298,774:300,775:304,776:207,777:7880,780:463,783:520,785:522,803:7882,808:302,816:7724}],74:[,,{770:308}],75:[,,{769:7728,780:488,803:7730,807:310,817:7732}],76:[,,{769:313,780:317,803:7734,807:315,813:7740,817:7738}],77:[,,{769:7742,775:7744,803:7746}],78:[,,{768:504,769:323,771:209,775:7748,780:327,803:7750,807:325,813:7754,817:7752}],79:[,,{768:210,769:211,770:212,771:213,772:332,774:334,775:558,776:214,777:7886,779:336,780:465,783:524,785:526,795:416,803:7884,808:490}],80:[,,{769:7764,775:7766}],82:[,,{769:340,775:7768,780:344,783:528,785:530,803:7770,807:342,817:7774}],83:[,,{769:346,770:348,775:7776,780:352,803:7778,806:536,807:350}],84:[,,{775:7786,780:356,803:7788,806:538,807:354,813:7792,817:7790}],85:[,,{768:217,769:218,770:219,771:360,772:362,774:364,776:220,777:7910,778:366,779:368,780:467,783:532,785:534,795:431,803:7908,804:7794,808:370,813:7798,816:7796}],86:[,,{771:7804,803:7806}],87:[,,{768:7808,769:7810,770:372,775:7814,776:7812,803:7816}],88:[,,{775:7818,776:7820}],89:[,,{768:7922,769:221,770:374,771:7928,772:562,775:7822,776:376,777:7926,803:7924}],90:[,,{769:377,770:7824,775:379,780:381,803:7826,817:7828}],97:[,,{768:224,769:225,770:226,771:227,772:257,774:259,775:551,776:228,777:7843,778:229,780:462,783:513,785:515,803:7841,805:7681,808:261}],98:[,,{775:7683,803:7685,817:7687}],99:[,,{769:263,770:265,775:267,780:269,807:231}],100:[,,{775:7691,780:271,803:7693,807:7697,813:7699,817:7695}],101:[,,{768:232,769:233,770:234,771:7869,772:275,774:277,775:279,776:235,777:7867,780:283,783:517,785:519,803:7865,807:553,808:281,813:7705,816:7707}],102:[,,{775:7711}],103:[,,{769:501,770:285,772:7713,774:287,775:289,780:487,807:291}],104:[,,{770:293,775:7715,776:7719,780:543,803:7717,807:7721,814:7723,817:7830}],105:[,,{768:236,769:237,770:238,771:297,772:299,774:301,776:239,777:7881,780:464,783:521,785:523,803:7883,808:303,816:7725}],106:[,,{770:309,780:496}],107:[,,{769:7729,780:489,803:7731,807:311,817:7733}],108:[,,{769:314,780:318,803:7735,807:316,813:7741,817:7739}],109:[,,{769:7743,775:7745,803:7747}],110:[,,{768:505,769:324,771:241,775:7749,780:328,803:7751,807:326,813:7755,817:7753}],111:[,,{768:242,769:243,770:244,771:245,772:333,774:335,775:559,776:246,777:7887,779:337,780:466,783:525,785:527,795:417,803:7885,808:491}],112:[,,{769:7765,775:7767}],114:[,,{769:341,775:7769,780:345,783:529,785:531,803:7771,807:343,817:7775}],115:[,,{769:347,770:349,775:7777,780:353,803:7779,806:537,807:351}],116:[,,{775:7787,776:7831,780:357,803:7789,806:539,807:355,813:7793,817:7791}],117:[,,{768:249,769:250,770:251,771:361,772:363,774:365,776:252,777:7911,778:367,779:369,780:468,783:533,785:535,795:432,803:7909,804:7795,808:371,813:7799,816:7797}],118:[,,{771:7805,803:7807}],119:[,,{768:7809,769:7811,770:373,775:7815,776:7813,778:7832,803:7817}],120:[,,{775:7819,776:7821}],121:[,,{768:7923,769:253,770:375,771:7929,772:563,775:7823,776:255,777:7927,778:7833,803:7925}],122:[,,{769:378,770:7825,775:380,780:382,803:7827,817:7829}],160:[[32],256],168:[[32,776],256,{768:8173,769:901,834:8129}],170:[[97],256],175:[[32,772],256],178:[[50],256],179:[[51],256],180:[[32,769],256],181:[[956],256],184:[[32,807],256],185:[[49],256],186:[[111],256],188:[[49,8260,52],256],189:[[49,8260,50],256],190:[[51,8260,52],256],192:[[65,768]],193:[[65,769]],194:[[65,770],,{768:7846,769:7844,771:7850,777:7848}],195:[[65,771]],196:[[65,776],,{772:478}],197:[[65,778],,{769:506}],198:[,,{769:508,772:482}],199:[[67,807],,{769:7688}],200:[[69,768]],201:[[69,769]],202:[[69,770],,{768:7872,769:7870,771:7876,777:7874}],203:[[69,776]],204:[[73,768]],205:[[73,769]],206:[[73,770]],207:[[73,776],,{769:7726}],209:[[78,771]],210:[[79,768]],211:[[79,769]],212:[[79,770],,{768:7890,769:7888,771:7894,777:7892}],213:[[79,771],,{769:7756,772:556,776:7758}],214:[[79,776],,{772:554}],216:[,,{769:510}],217:[[85,768]],218:[[85,769]],219:[[85,770]],220:[[85,776],,{768:475,769:471,772:469,780:473}],221:[[89,769]],224:[[97,768]],225:[[97,769]],226:[[97,770],,{768:7847,769:7845,771:7851,777:7849}],227:[[97,771]],228:[[97,776],,{772:479}],229:[[97,778],,{769:507}],230:[,,{769:509,772:483}],231:[[99,807],,{769:7689}],232:[[101,768]],233:[[101,769]],234:[[101,770],,{768:7873,769:7871,771:7877,777:7875}],235:[[101,776]],236:[[105,768]],237:[[105,769]],238:[[105,770]],239:[[105,776],,{769:7727}],241:[[110,771]],242:[[111,768]],243:[[111,769]],244:[[111,770],,{768:7891,769:7889,771:7895,777:7893}],245:[[111,771],,{769:7757,772:557,776:7759}],246:[[111,776],,{772:555}],248:[,,{769:511}],249:[[117,768]],250:[[117,769]],251:[[117,770]],252:[[117,776],,{768:476,769:472,772:470,780:474}],253:[[121,769]],255:[[121,776]]},256:{256:[[65,772]],257:[[97,772]],258:[[65,774],,{768:7856,769:7854,771:7860,777:7858}],259:[[97,774],,{768:7857,769:7855,771:7861,777:7859}],260:[[65,808]],261:[[97,808]],262:[[67,769]],263:[[99,769]],264:[[67,770]],265:[[99,770]],266:[[67,775]],267:[[99,775]],268:[[67,780]],269:[[99,780]],270:[[68,780]],271:[[100,780]],274:[[69,772],,{768:7700,769:7702}],275:[[101,772],,{768:7701,769:7703}],276:[[69,774]],277:[[101,774]],278:[[69,775]],279:[[101,775]],280:[[69,808]],281:[[101,808]],282:[[69,780]],283:[[101,780]],284:[[71,770]],285:[[103,770]],286:[[71,774]],287:[[103,774]],288:[[71,775]],289:[[103,775]],290:[[71,807]],291:[[103,807]],292:[[72,770]],293:[[104,770]],296:[[73,771]],297:[[105,771]],298:[[73,772]],299:[[105,772]],300:[[73,774]],301:[[105,774]],302:[[73,808]],303:[[105,808]],304:[[73,775]],306:[[73,74],256],307:[[105,106],256],308:[[74,770]],309:[[106,770]],310:[[75,807]],311:[[107,807]],313:[[76,769]],314:[[108,769]],315:[[76,807]],316:[[108,807]],317:[[76,780]],318:[[108,780]],319:[[76,183],256],320:[[108,183],256],323:[[78,769]],324:[[110,769]],325:[[78,807]],326:[[110,807]],327:[[78,780]],328:[[110,780]],329:[[700,110],256],332:[[79,772],,{768:7760,769:7762}],333:[[111,772],,{768:7761,769:7763}],334:[[79,774]],335:[[111,774]],336:[[79,779]],337:[[111,779]],340:[[82,769]],341:[[114,769]],342:[[82,807]],343:[[114,807]],344:[[82,780]],345:[[114,780]],346:[[83,769],,{775:7780}],347:[[115,769],,{775:7781}],348:[[83,770]],349:[[115,770]],350:[[83,807]],351:[[115,807]],352:[[83,780],,{775:7782}],353:[[115,780],,{775:7783}],354:[[84,807]],355:[[116,807]],356:[[84,780]],357:[[116,780]],360:[[85,771],,{769:7800}],361:[[117,771],,{769:7801}],362:[[85,772],,{776:7802}],363:[[117,772],,{776:7803}],364:[[85,774]],365:[[117,774]],366:[[85,778]],367:[[117,778]],368:[[85,779]],369:[[117,779]],370:[[85,808]],371:[[117,808]],372:[[87,770]],373:[[119,770]],374:[[89,770]],375:[[121,770]],376:[[89,776]],377:[[90,769]],378:[[122,769]],379:[[90,775]],380:[[122,775]],381:[[90,780]],382:[[122,780]],383:[[115],256,{775:7835}],416:[[79,795],,{768:7900,769:7898,771:7904,777:7902,803:7906}],417:[[111,795],,{768:7901,769:7899,771:7905,777:7903,803:7907}],431:[[85,795],,{768:7914,769:7912,771:7918,777:7916,803:7920}],432:[[117,795],,{768:7915,769:7913,771:7919,777:7917,803:7921}],439:[,,{780:494}],452:[[68,381],256],453:[[68,382],256],454:[[100,382],256],455:[[76,74],256],456:[[76,106],256],457:[[108,106],256],458:[[78,74],256],459:[[78,106],256],460:[[110,106],256],461:[[65,780]],462:[[97,780]],463:[[73,780]],464:[[105,780]],465:[[79,780]],466:[[111,780]],467:[[85,780]],468:[[117,780]],469:[[220,772]],470:[[252,772]],471:[[220,769]],472:[[252,769]],473:[[220,780]],474:[[252,780]],475:[[220,768]],476:[[252,768]],478:[[196,772]],479:[[228,772]],480:[[550,772]],481:[[551,772]],482:[[198,772]],483:[[230,772]],486:[[71,780]],487:[[103,780]],488:[[75,780]],489:[[107,780]],490:[[79,808],,{772:492}],491:[[111,808],,{772:493}],492:[[490,772]],493:[[491,772]],494:[[439,780]],495:[[658,780]],496:[[106,780]],497:[[68,90],256],498:[[68,122],256],499:[[100,122],256],500:[[71,769]],501:[[103,769]],504:[[78,768]],505:[[110,768]],506:[[197,769]],507:[[229,769]],508:[[198,769]],509:[[230,769]],510:[[216,769]],511:[[248,769]],66045:[,220]},512:{512:[[65,783]],513:[[97,783]],514:[[65,785]],515:[[97,785]],516:[[69,783]],517:[[101,783]],518:[[69,785]],519:[[101,785]],520:[[73,783]],521:[[105,783]],522:[[73,785]],523:[[105,785]],524:[[79,783]],525:[[111,783]],526:[[79,785]],527:[[111,785]],528:[[82,783]],529:[[114,783]],530:[[82,785]],531:[[114,785]],532:[[85,783]],533:[[117,783]],534:[[85,785]],535:[[117,785]],536:[[83,806]],537:[[115,806]],538:[[84,806]],539:[[116,806]],542:[[72,780]],543:[[104,780]],550:[[65,775],,{772:480}],551:[[97,775],,{772:481}],552:[[69,807],,{774:7708}],553:[[101,807],,{774:7709}],554:[[214,772]],555:[[246,772]],556:[[213,772]],557:[[245,772]],558:[[79,775],,{772:560}],559:[[111,775],,{772:561}],560:[[558,772]],561:[[559,772]],562:[[89,772]],563:[[121,772]],658:[,,{780:495}],688:[[104],256],689:[[614],256],690:[[106],256],691:[[114],256],692:[[633],256],693:[[635],256],694:[[641],256],695:[[119],256],696:[[121],256],728:[[32,774],256],729:[[32,775],256],730:[[32,778],256],731:[[32,808],256],732:[[32,771],256],733:[[32,779],256],736:[[611],256],737:[[108],256],738:[[115],256],739:[[120],256],740:[[661],256],66272:[,220]},768:{768:[,230],769:[,230],770:[,230],771:[,230],772:[,230],773:[,230],774:[,230],775:[,230],776:[,230,{769:836}],777:[,230],778:[,230],779:[,230],780:[,230],781:[,230],782:[,230],783:[,230],784:[,230],785:[,230],786:[,230],787:[,230],788:[,230],789:[,232],790:[,220],791:[,220],792:[,220],793:[,220],794:[,232],795:[,216],796:[,220],797:[,220],798:[,220],799:[,220],800:[,220],801:[,202],802:[,202],803:[,220],804:[,220],805:[,220],806:[,220],807:[,202],808:[,202],809:[,220],810:[,220],811:[,220],812:[,220],813:[,220],814:[,220],815:[,220],816:[,220],817:[,220],818:[,220],819:[,220],820:[,1],821:[,1],822:[,1],823:[,1],824:[,1],825:[,220],826:[,220],827:[,220],828:[,220],829:[,230],830:[,230],831:[,230],832:[[768],230],833:[[769],230],834:[,230],835:[[787],230],836:[[776,769],230],837:[,240],838:[,230],839:[,220],840:[,220],841:[,220],842:[,230],843:[,230],844:[,230],845:[,220],846:[,220],848:[,230],849:[,230],850:[,230],851:[,220],852:[,220],853:[,220],854:[,220],855:[,230],856:[,232],857:[,220],858:[,220],859:[,230],860:[,233],861:[,234],862:[,234],863:[,233],864:[,234],865:[,234],866:[,233],867:[,230],868:[,230],869:[,230],870:[,230],871:[,230],872:[,230],873:[,230],874:[,230],875:[,230],876:[,230],877:[,230],878:[,230],879:[,230],884:[[697]],890:[[32,837],256],894:[[59]],900:[[32,769],256],901:[[168,769]],902:[[913,769]],903:[[183]],904:[[917,769]],905:[[919,769]],906:[[921,769]],908:[[927,769]],910:[[933,769]],911:[[937,769]],912:[[970,769]],913:[,,{768:8122,769:902,772:8121,774:8120,787:7944,788:7945,837:8124}],917:[,,{768:8136,769:904,787:7960,788:7961}],919:[,,{768:8138,769:905,787:7976,788:7977,837:8140}],921:[,,{768:8154,769:906,772:8153,774:8152,776:938,787:7992,788:7993}],927:[,,{768:8184,769:908,787:8008,788:8009}],929:[,,{788:8172}],933:[,,{768:8170,769:910,772:8169,774:8168,776:939,788:8025}],937:[,,{768:8186,769:911,787:8040,788:8041,837:8188}],938:[[921,776]],939:[[933,776]],940:[[945,769],,{837:8116}],941:[[949,769]],942:[[951,769],,{837:8132}],943:[[953,769]],944:[[971,769]],945:[,,{768:8048,769:940,772:8113,774:8112,787:7936,788:7937,834:8118,837:8115}],949:[,,{768:8050,769:941,787:7952,788:7953}],951:[,,{768:8052,769:942,787:7968,788:7969,834:8134,837:8131}],953:[,,{768:8054,769:943,772:8145,774:8144,776:970,787:7984,788:7985,834:8150}],959:[,,{768:8056,769:972,787:8e3,788:8001}],961:[,,{787:8164,788:8165}],965:[,,{768:8058,769:973,772:8161,774:8160,776:971,787:8016,788:8017,834:8166}],969:[,,{768:8060,769:974,787:8032,788:8033,834:8182,837:8179}],970:[[953,776],,{768:8146,769:912,834:8151}],971:[[965,776],,{768:8162,769:944,834:8167}],972:[[959,769]],973:[[965,769]],974:[[969,769],,{837:8180}],976:[[946],256],977:[[952],256],978:[[933],256,{769:979,776:980}],979:[[978,769]],980:[[978,776]],981:[[966],256],982:[[960],256],1008:[[954],256],1009:[[961],256],1010:[[962],256],1012:[[920],256],1013:[[949],256],1017:[[931],256],66422:[,230],66423:[,230],66424:[,230],66425:[,230],66426:[,230]},1024:{1024:[[1045,768]],1025:[[1045,776]],1027:[[1043,769]],1030:[,,{776:1031}],1031:[[1030,776]],1036:[[1050,769]],1037:[[1048,768]],1038:[[1059,774]],1040:[,,{774:1232,776:1234}],1043:[,,{769:1027}],1045:[,,{768:1024,774:1238,776:1025}],1046:[,,{774:1217,776:1244}],1047:[,,{776:1246}],1048:[,,{768:1037,772:1250,774:1049,776:1252}],1049:[[1048,774]],1050:[,,{769:1036}],1054:[,,{776:1254}],1059:[,,{772:1262,774:1038,776:1264,779:1266}],1063:[,,{776:1268}],1067:[,,{776:1272}],1069:[,,{776:1260}],1072:[,,{774:1233,776:1235}],1075:[,,{769:1107}],1077:[,,{768:1104,774:1239,776:1105}],1078:[,,{774:1218,776:1245}],1079:[,,{776:1247}],1080:[,,{768:1117,772:1251,774:1081,776:1253}],1081:[[1080,774]],1082:[,,{769:1116}],1086:[,,{776:1255}],1091:[,,{772:1263,774:1118,776:1265,779:1267}],1095:[,,{776:1269}],1099:[,,{776:1273}],1101:[,,{776:1261}],1104:[[1077,768]],1105:[[1077,776]],1107:[[1075,769]],1110:[,,{776:1111}],1111:[[1110,776]],1116:[[1082,769]],1117:[[1080,768]],1118:[[1091,774]],1140:[,,{783:1142}],1141:[,,{783:1143}],1142:[[1140,783]],1143:[[1141,783]],1155:[,230],1156:[,230],1157:[,230],1158:[,230],1159:[,230],1217:[[1046,774]],1218:[[1078,774]],1232:[[1040,774]],1233:[[1072,774]],1234:[[1040,776]],1235:[[1072,776]],1238:[[1045,774]],1239:[[1077,774]],1240:[,,{776:1242}],1241:[,,{776:1243}],1242:[[1240,776]],1243:[[1241,776]],1244:[[1046,776]],1245:[[1078,776]],1246:[[1047,776]],1247:[[1079,776]],1250:[[1048,772]],1251:[[1080,772]],1252:[[1048,776]],1253:[[1080,776]],1254:[[1054,776]],1255:[[1086,776]],1256:[,,{776:1258}],1257:[,,{776:1259}],1258:[[1256,776]],1259:[[1257,776]],1260:[[1069,776]],1261:[[1101,776]],1262:[[1059,772]],1263:[[1091,772]],1264:[[1059,776]],1265:[[1091,776]],1266:[[1059,779]],1267:[[1091,779]],1268:[[1063,776]],1269:[[1095,776]],1272:[[1067,776]],1273:[[1099,776]]},1280:{1415:[[1381,1410],256],1425:[,220],1426:[,230],1427:[,230],1428:[,230],1429:[,230],1430:[,220],1431:[,230],1432:[,230],1433:[,230],1434:[,222],1435:[,220],1436:[,230],1437:[,230],1438:[,230],1439:[,230],1440:[,230],1441:[,230],1442:[,220],1443:[,220],1444:[,220],1445:[,220],1446:[,220],1447:[,220],1448:[,230],1449:[,230],1450:[,220],1451:[,230],1452:[,230],1453:[,222],1454:[,228],1455:[,230],1456:[,10],1457:[,11],1458:[,12],1459:[,13],1460:[,14],1461:[,15],1462:[,16],1463:[,17],1464:[,18],1465:[,19],1466:[,19],1467:[,20],1468:[,21],1469:[,22],1471:[,23],1473:[,24],1474:[,25],1476:[,230],1477:[,220],1479:[,18]},1536:{1552:[,230],1553:[,230],1554:[,230],1555:[,230],1556:[,230],1557:[,230],1558:[,230],1559:[,230],1560:[,30],1561:[,31],1562:[,32],1570:[[1575,1619]],1571:[[1575,1620]],1572:[[1608,1620]],1573:[[1575,1621]],1574:[[1610,1620]],1575:[,,{1619:1570,1620:1571,1621:1573}],1608:[,,{1620:1572}],1610:[,,{1620:1574}],1611:[,27],1612:[,28],1613:[,29],1614:[,30],1615:[,31],1616:[,32],1617:[,33],1618:[,34],1619:[,230],1620:[,230],1621:[,220],1622:[,220],1623:[,230],1624:[,230],1625:[,230],1626:[,230],1627:[,230],1628:[,220],1629:[,230],1630:[,230],1631:[,220],1648:[,35],1653:[[1575,1652],256],1654:[[1608,1652],256],1655:[[1735,1652],256],1656:[[1610,1652],256],1728:[[1749,1620]],1729:[,,{1620:1730}],1730:[[1729,1620]],1746:[,,{1620:1747}],1747:[[1746,1620]],1749:[,,{1620:1728}],1750:[,230],1751:[,230],1752:[,230],1753:[,230],1754:[,230],1755:[,230],1756:[,230],1759:[,230],1760:[,230],1761:[,230],1762:[,230],1763:[,220],1764:[,230],1767:[,230],1768:[,230],1770:[,220],1771:[,230],1772:[,230],1773:[,220]},1792:{1809:[,36],1840:[,230],1841:[,220],1842:[,230],1843:[,230],1844:[,220],1845:[,230],1846:[,230],1847:[,220],1848:[,220],1849:[,220],1850:[,230],1851:[,220],1852:[,220],1853:[,230],1854:[,220],1855:[,230],1856:[,230],1857:[,230],1858:[,220],1859:[,230],1860:[,220],1861:[,230],1862:[,220],1863:[,230],1864:[,220],1865:[,230],1866:[,230],2027:[,230],2028:[,230],2029:[,230],2030:[,230],2031:[,230],2032:[,230],2033:[,230],2034:[,220],2035:[,230]},2048:{2070:[,230],2071:[,230],2072:[,230],2073:[,230],2075:[,230],2076:[,230],2077:[,230],2078:[,230],2079:[,230],2080:[,230],2081:[,230],2082:[,230],2083:[,230],2085:[,230],2086:[,230],2087:[,230],2089:[,230],2090:[,230],2091:[,230],2092:[,230],2093:[,230],2137:[,220],2138:[,220],2139:[,220],2276:[,230],2277:[,230],2278:[,220],2279:[,230],2280:[,230],2281:[,220],2282:[,230],2283:[,230],2284:[,230],2285:[,220],2286:[,220],2287:[,220],2288:[,27],2289:[,28],2290:[,29],2291:[,230],2292:[,230],2293:[,230],2294:[,220],2295:[,230],2296:[,230],2297:[,220],2298:[,220],2299:[,230],2300:[,230],2301:[,230],2302:[,230],2303:[,230]},2304:{2344:[,,{2364:2345}],2345:[[2344,2364]],2352:[,,{2364:2353}],2353:[[2352,2364]],2355:[,,{2364:2356}],2356:[[2355,2364]],2364:[,7],2381:[,9],2385:[,230],2386:[,220],2387:[,230],2388:[,230],2392:[[2325,2364],512],2393:[[2326,2364],512],2394:[[2327,2364],512],2395:[[2332,2364],512],2396:[[2337,2364],512],2397:[[2338,2364],512],2398:[[2347,2364],512],2399:[[2351,2364],512],2492:[,7],2503:[,,{2494:2507,2519:2508}],2507:[[2503,2494]],2508:[[2503,2519]],2509:[,9],2524:[[2465,2492],512],2525:[[2466,2492],512],2527:[[2479,2492],512]},2560:{2611:[[2610,2620],512],2614:[[2616,2620],512],2620:[,7],2637:[,9],2649:[[2582,2620],512],2650:[[2583,2620],512],2651:[[2588,2620],512],2654:[[2603,2620],512],2748:[,7],2765:[,9],68109:[,220],68111:[,230],68152:[,230],68153:[,1],68154:[,220],68159:[,9],68325:[,230],68326:[,220]},2816:{2876:[,7],2887:[,,{2878:2891,2902:2888,2903:2892}],2888:[[2887,2902]],2891:[[2887,2878]],2892:[[2887,2903]],2893:[,9],2908:[[2849,2876],512],2909:[[2850,2876],512],2962:[,,{3031:2964}],2964:[[2962,3031]],3014:[,,{3006:3018,3031:3020}],3015:[,,{3006:3019}],3018:[[3014,3006]],3019:[[3015,3006]],3020:[[3014,3031]],3021:[,9]},3072:{3142:[,,{3158:3144}],3144:[[3142,3158]],3149:[,9],3157:[,84],3158:[,91],3260:[,7],3263:[,,{3285:3264}],3264:[[3263,3285]],3270:[,,{3266:3274,3285:3271,3286:3272}],3271:[[3270,3285]],3272:[[3270,3286]],3274:[[3270,3266],,{3285:3275}],3275:[[3274,3285]],3277:[,9]},3328:{3398:[,,{3390:3402,3415:3404}],3399:[,,{3390:3403}],3402:[[3398,3390]],3403:[[3399,3390]],3404:[[3398,3415]],3405:[,9],3530:[,9],3545:[,,{3530:3546,3535:3548,3551:3550}],3546:[[3545,3530]],3548:[[3545,3535],,{3530:3549}],3549:[[3548,3530]],3550:[[3545,3551]]},3584:{3635:[[3661,3634],256],3640:[,103],3641:[,103],3642:[,9],3656:[,107],3657:[,107],3658:[,107],3659:[,107],3763:[[3789,3762],256],3768:[,118],3769:[,118],3784:[,122],3785:[,122],3786:[,122],3787:[,122],3804:[[3755,3737],256],3805:[[3755,3745],256]},3840:{3852:[[3851],256],3864:[,220],3865:[,220],3893:[,220],3895:[,220],3897:[,216],3907:[[3906,4023],512],3917:[[3916,4023],512],3922:[[3921,4023],512],3927:[[3926,4023],512],3932:[[3931,4023],512],3945:[[3904,4021],512],3953:[,129],3954:[,130],3955:[[3953,3954],512],3956:[,132],3957:[[3953,3956],512],3958:[[4018,3968],512],3959:[[4018,3969],256],3960:[[4019,3968],512],3961:[[4019,3969],256],3962:[,130],3963:[,130],3964:[,130],3965:[,130],3968:[,130],3969:[[3953,3968],512],3970:[,230],3971:[,230],3972:[,9],3974:[,230],3975:[,230],3987:[[3986,4023],512],3997:[[3996,4023],512],4002:[[4001,4023],512],4007:[[4006,4023],512],4012:[[4011,4023],512],4025:[[3984,4021],512],4038:[,220]},4096:{4133:[,,{4142:4134}],4134:[[4133,4142]],4151:[,7],4153:[,9],4154:[,9],4237:[,220],4348:[[4316],256],69702:[,9],69759:[,9],69785:[,,{69818:69786}],69786:[[69785,69818]],69787:[,,{69818:69788}],69788:[[69787,69818]],69797:[,,{69818:69803}],69803:[[69797,69818]],69817:[,9],69818:[,7]},4352:{69888:[,230],69889:[,230],69890:[,230],69934:[[69937,69927]],69935:[[69938,69927]],69937:[,,{69927:69934}],69938:[,,{69927:69935}],69939:[,9],69940:[,9],70003:[,7],70080:[,9]},4608:{70197:[,9],70198:[,7],70377:[,7],70378:[,9]},4864:{4957:[,230],4958:[,230],4959:[,230],70460:[,7],70471:[,,{70462:70475,70487:70476}],70475:[[70471,70462]],70476:[[70471,70487]],70477:[,9],70502:[,230],70503:[,230],70504:[,230],70505:[,230],70506:[,230],70507:[,230],70508:[,230],70512:[,230],70513:[,230],70514:[,230],70515:[,230],70516:[,230]},5120:{70841:[,,{70832:70844,70842:70843,70845:70846}],70843:[[70841,70842]],70844:[[70841,70832]],70846:[[70841,70845]],70850:[,9],70851:[,7]},5376:{71096:[,,{71087:71098}],71097:[,,{71087:71099}],71098:[[71096,71087]],71099:[[71097,71087]],71103:[,9],71104:[,7]},5632:{71231:[,9],71350:[,9],71351:[,7]},5888:{5908:[,9],5940:[,9],6098:[,9],6109:[,230]},6144:{6313:[,228]},6400:{6457:[,222],6458:[,230],6459:[,220]},6656:{6679:[,230],6680:[,220],6752:[,9],6773:[,230],6774:[,230],6775:[,230],6776:[,230],6777:[,230],6778:[,230],6779:[,230],6780:[,230],6783:[,220],6832:[,230],6833:[,230],6834:[,230],6835:[,230],6836:[,230],6837:[,220],6838:[,220],6839:[,220],6840:[,220],6841:[,220],6842:[,220],6843:[,230],6844:[,230],6845:[,220]},6912:{6917:[,,{6965:6918}],6918:[[6917,6965]],6919:[,,{6965:6920}],6920:[[6919,6965]],6921:[,,{6965:6922}],6922:[[6921,6965]],6923:[,,{6965:6924}],6924:[[6923,6965]],6925:[,,{6965:6926}],6926:[[6925,6965]],6929:[,,{6965:6930}],6930:[[6929,6965]],6964:[,7],6970:[,,{6965:6971}],6971:[[6970,6965]],6972:[,,{6965:6973}],6973:[[6972,6965]],6974:[,,{6965:6976}],6975:[,,{6965:6977}],6976:[[6974,6965]],6977:[[6975,6965]],6978:[,,{6965:6979}],6979:[[6978,6965]],6980:[,9],7019:[,230],7020:[,220],7021:[,230],7022:[,230],7023:[,230],7024:[,230],7025:[,230],7026:[,230],7027:[,230],7082:[,9],7083:[,9],7142:[,7],7154:[,9],7155:[,9]},7168:{7223:[,7],7376:[,230],7377:[,230],7378:[,230],7380:[,1],7381:[,220],7382:[,220],7383:[,220],7384:[,220],7385:[,220],7386:[,230],7387:[,230],7388:[,220],7389:[,220],7390:[,220],7391:[,220],7392:[,230],7394:[,1],7395:[,1],7396:[,1],7397:[,1],7398:[,1],7399:[,1],7400:[,1],7405:[,220],7412:[,230],7416:[,230],7417:[,230]},7424:{7468:[[65],256],7469:[[198],256],7470:[[66],256],7472:[[68],256],7473:[[69],256],7474:[[398],256],7475:[[71],256],7476:[[72],256],7477:[[73],256],7478:[[74],256],7479:[[75],256],7480:[[76],256],7481:[[77],256],7482:[[78],256],7484:[[79],256],7485:[[546],256],7486:[[80],256],7487:[[82],256],7488:[[84],256],7489:[[85],256],7490:[[87],256],7491:[[97],256],7492:[[592],256],7493:[[593],256],7494:[[7426],256],7495:[[98],256],7496:[[100],256],7497:[[101],256],7498:[[601],256],7499:[[603],256],7500:[[604],256],7501:[[103],256],7503:[[107],256],7504:[[109],256],7505:[[331],256],7506:[[111],256],7507:[[596],256],7508:[[7446],256],7509:[[7447],256],7510:[[112],256],7511:[[116],256],7512:[[117],256],7513:[[7453],256],7514:[[623],256],7515:[[118],256],7516:[[7461],256],7517:[[946],256],7518:[[947],256],7519:[[948],256],7520:[[966],256],7521:[[967],256],7522:[[105],256],7523:[[114],256],7524:[[117],256],7525:[[118],256],7526:[[946],256],7527:[[947],256],7528:[[961],256],7529:[[966],256],7530:[[967],256],7544:[[1085],256],7579:[[594],256],7580:[[99],256],7581:[[597],256],7582:[[240],256],7583:[[604],256],7584:[[102],256],7585:[[607],256],7586:[[609],256],7587:[[613],256],7588:[[616],256],7589:[[617],256],7590:[[618],256],7591:[[7547],256],7592:[[669],256],7593:[[621],256],7594:[[7557],256],7595:[[671],256],7596:[[625],256],7597:[[624],256],7598:[[626],256],7599:[[627],256],7600:[[628],256],7601:[[629],256],7602:[[632],256],7603:[[642],256],7604:[[643],256],7605:[[427],256],7606:[[649],256],7607:[[650],256],7608:[[7452],256],7609:[[651],256],7610:[[652],256],7611:[[122],256],7612:[[656],256],7613:[[657],256],7614:[[658],256],7615:[[952],256],7616:[,230],7617:[,230],7618:[,220],7619:[,230],7620:[,230],7621:[,230],7622:[,230],7623:[,230],7624:[,230],7625:[,230],7626:[,220],7627:[,230],7628:[,230],7629:[,234],7630:[,214],7631:[,220],7632:[,202],7633:[,230],7634:[,230],7635:[,230],7636:[,230],7637:[,230],7638:[,230],7639:[,230],7640:[,230],7641:[,230],7642:[,230],7643:[,230],7644:[,230],7645:[,230],7646:[,230],7647:[,230],7648:[,230],7649:[,230],7650:[,230],7651:[,230],7652:[,230],7653:[,230],7654:[,230],7655:[,230],7656:[,230],7657:[,230],7658:[,230],7659:[,230],7660:[,230],7661:[,230],7662:[,230],7663:[,230],7664:[,230],7665:[,230],7666:[,230],7667:[,230],7668:[,230],7669:[,230],7676:[,233],7677:[,220],7678:[,230],7679:[,220]},7680:{7680:[[65,805]],7681:[[97,805]],7682:[[66,775]],7683:[[98,775]],7684:[[66,803]],7685:[[98,803]],7686:[[66,817]],7687:[[98,817]],7688:[[199,769]],7689:[[231,769]],7690:[[68,775]],7691:[[100,775]],7692:[[68,803]],7693:[[100,803]],7694:[[68,817]],7695:[[100,817]],7696:[[68,807]],7697:[[100,807]],7698:[[68,813]],7699:[[100,813]],7700:[[274,768]],7701:[[275,768]],7702:[[274,769]],7703:[[275,769]],7704:[[69,813]],7705:[[101,813]],7706:[[69,816]],7707:[[101,816]],7708:[[552,774]],7709:[[553,774]],7710:[[70,775]],7711:[[102,775]],7712:[[71,772]],7713:[[103,772]],7714:[[72,775]],7715:[[104,775]],7716:[[72,803]],7717:[[104,803]],7718:[[72,776]],7719:[[104,776]],7720:[[72,807]],7721:[[104,807]],7722:[[72,814]],7723:[[104,814]],7724:[[73,816]],7725:[[105,816]],7726:[[207,769]],7727:[[239,769]],7728:[[75,769]],7729:[[107,769]],7730:[[75,803]],7731:[[107,803]],7732:[[75,817]],7733:[[107,817]],7734:[[76,803],,{772:7736}],7735:[[108,803],,{772:7737}],7736:[[7734,772]],7737:[[7735,772]],7738:[[76,817]],7739:[[108,817]],7740:[[76,813]],7741:[[108,813]],7742:[[77,769]],7743:[[109,769]],7744:[[77,775]],7745:[[109,775]],7746:[[77,803]],7747:[[109,803]],7748:[[78,775]],7749:[[110,775]],7750:[[78,803]],7751:[[110,803]],7752:[[78,817]],7753:[[110,817]],7754:[[78,813]],7755:[[110,813]],7756:[[213,769]],7757:[[245,769]],7758:[[213,776]],7759:[[245,776]],7760:[[332,768]],7761:[[333,768]],7762:[[332,769]],7763:[[333,769]],7764:[[80,769]],7765:[[112,769]],7766:[[80,775]],7767:[[112,775]],7768:[[82,775]],7769:[[114,775]],7770:[[82,803],,{772:7772}],7771:[[114,803],,{772:7773}],7772:[[7770,772]],7773:[[7771,772]],7774:[[82,817]],7775:[[114,817]],7776:[[83,775]],7777:[[115,775]],7778:[[83,803],,{775:7784}],7779:[[115,803],,{775:7785}],7780:[[346,775]],7781:[[347,775]],7782:[[352,775]],7783:[[353,775]],7784:[[7778,775]],7785:[[7779,775]],7786:[[84,775]],7787:[[116,775]],7788:[[84,803]],7789:[[116,803]],7790:[[84,817]],7791:[[116,817]],7792:[[84,813]],7793:[[116,813]],7794:[[85,804]],7795:[[117,804]],7796:[[85,816]],7797:[[117,816]],7798:[[85,813]],7799:[[117,813]],7800:[[360,769]],7801:[[361,769]],7802:[[362,776]],7803:[[363,776]],7804:[[86,771]],7805:[[118,771]],7806:[[86,803]],7807:[[118,803]],7808:[[87,768]],7809:[[119,768]],7810:[[87,769]],7811:[[119,769]],7812:[[87,776]],7813:[[119,776]],7814:[[87,775]],7815:[[119,775]],7816:[[87,803]],7817:[[119,803]],7818:[[88,775]],7819:[[120,775]],7820:[[88,776]],7821:[[120,776]],7822:[[89,775]],7823:[[121,775]],7824:[[90,770]],7825:[[122,770]],7826:[[90,803]],7827:[[122,803]],7828:[[90,817]],7829:[[122,817]],7830:[[104,817]],7831:[[116,776]],7832:[[119,778]],7833:[[121,778]],7834:[[97,702],256],7835:[[383,775]],7840:[[65,803],,{770:7852,774:7862}],7841:[[97,803],,{770:7853,774:7863}],7842:[[65,777]],7843:[[97,777]],7844:[[194,769]],7845:[[226,769]],7846:[[194,768]],7847:[[226,768]],7848:[[194,777]],7849:[[226,777]],7850:[[194,771]],7851:[[226,771]],7852:[[7840,770]],7853:[[7841,770]],7854:[[258,769]],7855:[[259,769]],7856:[[258,768]],7857:[[259,768]],7858:[[258,777]],7859:[[259,777]],7860:[[258,771]],7861:[[259,771]],7862:[[7840,774]],7863:[[7841,774]],7864:[[69,803],,{770:7878}],7865:[[101,803],,{770:7879}],7866:[[69,777]],7867:[[101,777]],7868:[[69,771]],7869:[[101,771]],7870:[[202,769]],7871:[[234,769]],7872:[[202,768]],7873:[[234,768]],7874:[[202,777]],7875:[[234,777]],7876:[[202,771]],7877:[[234,771]],7878:[[7864,770]],7879:[[7865,770]],7880:[[73,777]],7881:[[105,777]],7882:[[73,803]],7883:[[105,803]],7884:[[79,803],,{770:7896}],7885:[[111,803],,{770:7897}],7886:[[79,777]],7887:[[111,777]],7888:[[212,769]],7889:[[244,769]],7890:[[212,768]],7891:[[244,768]],7892:[[212,777]],7893:[[244,777]],7894:[[212,771]],7895:[[244,771]],7896:[[7884,770]],7897:[[7885,770]],7898:[[416,769]],7899:[[417,769]],7900:[[416,768]],7901:[[417,768]],7902:[[416,777]],7903:[[417,777]],7904:[[416,771]],7905:[[417,771]],7906:[[416,803]],7907:[[417,803]],7908:[[85,803]],7909:[[117,803]],7910:[[85,777]],7911:[[117,777]],7912:[[431,769]],7913:[[432,769]],7914:[[431,768]],7915:[[432,768]],7916:[[431,777]],7917:[[432,777]],7918:[[431,771]],7919:[[432,771]],7920:[[431,803]],7921:[[432,803]],7922:[[89,768]],7923:[[121,768]],7924:[[89,803]],7925:[[121,803]],7926:[[89,777]],7927:[[121,777]],7928:[[89,771]],7929:[[121,771]]},7936:{7936:[[945,787],,{768:7938,769:7940,834:7942,837:8064}],7937:[[945,788],,{768:7939,769:7941,834:7943,837:8065}],7938:[[7936,768],,{837:8066}],7939:[[7937,768],,{837:8067}],7940:[[7936,769],,{837:8068}],7941:[[7937,769],,{837:8069}],7942:[[7936,834],,{837:8070}],7943:[[7937,834],,{837:8071}],7944:[[913,787],,{768:7946,769:7948,834:7950,837:8072}],7945:[[913,788],,{768:7947,769:7949,834:7951,837:8073}],7946:[[7944,768],,{837:8074}],7947:[[7945,768],,{837:8075}],7948:[[7944,769],,{837:8076}],7949:[[7945,769],,{837:8077}],7950:[[7944,834],,{837:8078}],7951:[[7945,834],,{837:8079}],7952:[[949,787],,{768:7954,769:7956}],7953:[[949,788],,{768:7955,769:7957}],7954:[[7952,768]],7955:[[7953,768]],7956:[[7952,769]],7957:[[7953,769]],7960:[[917,787],,{768:7962,769:7964}],7961:[[917,788],,{768:7963,769:7965}],7962:[[7960,768]],7963:[[7961,768]],7964:[[7960,769]],7965:[[7961,769]],7968:[[951,787],,{768:7970,769:7972,834:7974,837:8080}],7969:[[951,788],,{768:7971,769:7973,834:7975,837:8081}],7970:[[7968,768],,{837:8082}],7971:[[7969,768],,{837:8083}],7972:[[7968,769],,{837:8084}],7973:[[7969,769],,{837:8085}],7974:[[7968,834],,{837:8086}],7975:[[7969,834],,{837:8087}],7976:[[919,787],,{768:7978,769:7980,834:7982,837:8088}],7977:[[919,788],,{768:7979,769:7981,834:7983,837:8089}],7978:[[7976,768],,{837:8090}],7979:[[7977,768],,{837:8091}],7980:[[7976,769],,{837:8092}],7981:[[7977,769],,{837:8093}],7982:[[7976,834],,{837:8094}],7983:[[7977,834],,{837:8095}],7984:[[953,787],,{768:7986,769:7988,834:7990}],7985:[[953,788],,{768:7987,769:7989,834:7991}],7986:[[7984,768]],7987:[[7985,768]],7988:[[7984,769]],7989:[[7985,769]],7990:[[7984,834]],7991:[[7985,834]],7992:[[921,787],,{768:7994,769:7996,834:7998}],7993:[[921,788],,{768:7995,769:7997,834:7999}],7994:[[7992,768]],7995:[[7993,768]],7996:[[7992,769]],7997:[[7993,769]],7998:[[7992,834]],7999:[[7993,834]],8e3:[[959,787],,{768:8002,769:8004}],8001:[[959,788],,{768:8003,769:8005}],8002:[[8e3,768]],8003:[[8001,768]],8004:[[8e3,769]],8005:[[8001,769]],8008:[[927,787],,{768:8010,769:8012}],8009:[[927,788],,{768:8011,769:8013}],8010:[[8008,768]],8011:[[8009,768]],8012:[[8008,769]],8013:[[8009,769]],8016:[[965,787],,{768:8018,769:8020,834:8022}],8017:[[965,788],,{768:8019,769:8021,834:8023}],8018:[[8016,768]],8019:[[8017,768]],8020:[[8016,769]],8021:[[8017,769]],8022:[[8016,834]],8023:[[8017,834]],8025:[[933,788],,{768:8027,769:8029,834:8031}],8027:[[8025,768]],8029:[[8025,769]],8031:[[8025,834]],8032:[[969,787],,{768:8034,769:8036,834:8038,837:8096}],8033:[[969,788],,{768:8035,769:8037,834:8039,837:8097}],8034:[[8032,768],,{837:8098}],8035:[[8033,768],,{837:8099}],8036:[[8032,769],,{837:8100}],8037:[[8033,769],,{837:8101}],8038:[[8032,834],,{837:8102}],8039:[[8033,834],,{837:8103}],8040:[[937,787],,{768:8042,769:8044,834:8046,837:8104}],8041:[[937,788],,{768:8043,769:8045,834:8047,837:8105}],8042:[[8040,768],,{837:8106}],8043:[[8041,768],,{837:8107}],8044:[[8040,769],,{837:8108}],8045:[[8041,769],,{837:8109}],8046:[[8040,834],,{837:8110}],8047:[[8041,834],,{837:8111}],8048:[[945,768],,{837:8114}],8049:[[940]],8050:[[949,768]],8051:[[941]],8052:[[951,768],,{837:8130}],8053:[[942]],8054:[[953,768]],8055:[[943]],8056:[[959,768]],8057:[[972]],8058:[[965,768]],8059:[[973]],8060:[[969,768],,{837:8178}],8061:[[974]],8064:[[7936,837]],8065:[[7937,837]],8066:[[7938,837]],8067:[[7939,837]],8068:[[7940,837]],8069:[[7941,837]],8070:[[7942,837]],8071:[[7943,837]],8072:[[7944,837]],8073:[[7945,837]],8074:[[7946,837]],8075:[[7947,837]],8076:[[7948,837]],8077:[[7949,837]],8078:[[7950,837]],8079:[[7951,837]],8080:[[7968,837]],8081:[[7969,837]],8082:[[7970,837]],8083:[[7971,837]],8084:[[7972,837]],8085:[[7973,837]],8086:[[7974,837]],8087:[[7975,837]],8088:[[7976,837]],8089:[[7977,837]],8090:[[7978,837]],8091:[[7979,837]],8092:[[7980,837]],8093:[[7981,837]],8094:[[7982,837]],8095:[[7983,837]],8096:[[8032,837]],8097:[[8033,837]],8098:[[8034,837]],8099:[[8035,837]],8100:[[8036,837]],8101:[[8037,837]],8102:[[8038,837]],8103:[[8039,837]],8104:[[8040,837]],8105:[[8041,837]],8106:[[8042,837]],8107:[[8043,837]],8108:[[8044,837]],8109:[[8045,837]],8110:[[8046,837]],8111:[[8047,837]],8112:[[945,774]],8113:[[945,772]],8114:[[8048,837]],8115:[[945,837]],8116:[[940,837]],8118:[[945,834],,{837:8119}],8119:[[8118,837]],8120:[[913,774]],8121:[[913,772]],8122:[[913,768]],8123:[[902]],8124:[[913,837]],8125:[[32,787],256],8126:[[953]],8127:[[32,787],256,{768:8141,769:8142,834:8143}],8128:[[32,834],256],8129:[[168,834]],8130:[[8052,837]],8131:[[951,837]],8132:[[942,837]],8134:[[951,834],,{837:8135}],8135:[[8134,837]],8136:[[917,768]],8137:[[904]],8138:[[919,768]],8139:[[905]],8140:[[919,837]],8141:[[8127,768]],8142:[[8127,769]],8143:[[8127,834]],8144:[[953,774]],8145:[[953,772]],8146:[[970,768]],8147:[[912]],8150:[[953,834]],8151:[[970,834]],8152:[[921,774]],8153:[[921,772]],8154:[[921,768]],8155:[[906]],8157:[[8190,768]],8158:[[8190,769]],8159:[[8190,834]],8160:[[965,774]],8161:[[965,772]],8162:[[971,768]],8163:[[944]],8164:[[961,787]],8165:[[961,788]],8166:[[965,834]],8167:[[971,834]],8168:[[933,774]],8169:[[933,772]],8170:[[933,768]],8171:[[910]],8172:[[929,788]],8173:[[168,768]],8174:[[901]],8175:[[96]],8178:[[8060,837]],8179:[[969,837]],8180:[[974,837]],8182:[[969,834],,{837:8183}],8183:[[8182,837]],8184:[[927,768]],8185:[[908]],8186:[[937,768]],8187:[[911]],8188:[[937,837]],8189:[[180]],8190:[[32,788],256,{768:8157,769:8158,834:8159}]},8192:{8192:[[8194]],8193:[[8195]],8194:[[32],256],8195:[[32],256],8196:[[32],256],8197:[[32],256],8198:[[32],256],8199:[[32],256],8200:[[32],256],8201:[[32],256],8202:[[32],256],8209:[[8208],256],8215:[[32,819],256],8228:[[46],256],8229:[[46,46],256],8230:[[46,46,46],256],8239:[[32],256],8243:[[8242,8242],256],8244:[[8242,8242,8242],256],8246:[[8245,8245],256],8247:[[8245,8245,8245],256],8252:[[33,33],256],8254:[[32,773],256],8263:[[63,63],256],8264:[[63,33],256],8265:[[33,63],256],8279:[[8242,8242,8242,8242],256],8287:[[32],256],8304:[[48],256],8305:[[105],256],8308:[[52],256],8309:[[53],256],8310:[[54],256],8311:[[55],256],8312:[[56],256],8313:[[57],256],8314:[[43],256],8315:[[8722],256],8316:[[61],256],8317:[[40],256],8318:[[41],256],8319:[[110],256],8320:[[48],256],8321:[[49],256],8322:[[50],256],8323:[[51],256],8324:[[52],256],8325:[[53],256],8326:[[54],256],8327:[[55],256],8328:[[56],256],8329:[[57],256],8330:[[43],256],8331:[[8722],256],8332:[[61],256],8333:[[40],256],8334:[[41],256],8336:[[97],256],8337:[[101],256],8338:[[111],256],8339:[[120],256],8340:[[601],256],8341:[[104],256],8342:[[107],256],8343:[[108],256],8344:[[109],256],8345:[[110],256],8346:[[112],256],8347:[[115],256],8348:[[116],256],8360:[[82,115],256],8400:[,230],8401:[,230],8402:[,1],8403:[,1],8404:[,230],8405:[,230],8406:[,230],8407:[,230],8408:[,1],8409:[,1],8410:[,1],8411:[,230],8412:[,230],8417:[,230],8421:[,1],8422:[,1],8423:[,230],8424:[,220],8425:[,230],8426:[,1],8427:[,1],8428:[,220],8429:[,220],8430:[,220],8431:[,220],8432:[,230]},8448:{8448:[[97,47,99],256],8449:[[97,47,115],256],8450:[[67],256],8451:[[176,67],256],8453:[[99,47,111],256],8454:[[99,47,117],256],8455:[[400],256],8457:[[176,70],256],8458:[[103],256],8459:[[72],256],8460:[[72],256],8461:[[72],256],8462:[[104],256],8463:[[295],256],8464:[[73],256],8465:[[73],256],8466:[[76],256],8467:[[108],256],8469:[[78],256],8470:[[78,111],256],8473:[[80],256],8474:[[81],256],8475:[[82],256],8476:[[82],256],8477:[[82],256],8480:[[83,77],256],8481:[[84,69,76],256],8482:[[84,77],256],8484:[[90],256],8486:[[937]],8488:[[90],256],8490:[[75]],8491:[[197]],8492:[[66],256],8493:[[67],256],8495:[[101],256],8496:[[69],256],8497:[[70],256],8499:[[77],256],8500:[[111],256],8501:[[1488],256],8502:[[1489],256],8503:[[1490],256],8504:[[1491],256],8505:[[105],256],8507:[[70,65,88],256],8508:[[960],256],8509:[[947],256],8510:[[915],256],8511:[[928],256],8512:[[8721],256],8517:[[68],256],8518:[[100],256],8519:[[101],256],8520:[[105],256],8521:[[106],256],8528:[[49,8260,55],256],8529:[[49,8260,57],256],8530:[[49,8260,49,48],256],8531:[[49,8260,51],256],8532:[[50,8260,51],256],8533:[[49,8260,53],256],8534:[[50,8260,53],256],8535:[[51,8260,53],256],8536:[[52,8260,53],256],8537:[[49,8260,54],256],8538:[[53,8260,54],256],8539:[[49,8260,56],256],8540:[[51,8260,56],256],8541:[[53,8260,56],256],8542:[[55,8260,56],256],8543:[[49,8260],256],8544:[[73],256],8545:[[73,73],256],8546:[[73,73,73],256],8547:[[73,86],256],8548:[[86],256],8549:[[86,73],256],8550:[[86,73,73],256],8551:[[86,73,73,73],256],8552:[[73,88],256],8553:[[88],256],8554:[[88,73],256],8555:[[88,73,73],256],8556:[[76],256],8557:[[67],256],8558:[[68],256],8559:[[77],256],8560:[[105],256],8561:[[105,105],256],8562:[[105,105,105],256],8563:[[105,118],256],8564:[[118],256],8565:[[118,105],256],8566:[[118,105,105],256],8567:[[118,105,105,105],256],8568:[[105,120],256],8569:[[120],256],8570:[[120,105],256],8571:[[120,105,105],256],8572:[[108],256],8573:[[99],256],8574:[[100],256],8575:[[109],256],8585:[[48,8260,51],256],8592:[,,{824:8602}],8594:[,,{824:8603}],8596:[,,{824:8622}],8602:[[8592,824]],8603:[[8594,824]],8622:[[8596,824]],8653:[[8656,824]],8654:[[8660,824]],8655:[[8658,824]],8656:[,,{824:8653}],8658:[,,{824:8655}],8660:[,,{824:8654}]},8704:{8707:[,,{824:8708}],8708:[[8707,824]],8712:[,,{824:8713}],8713:[[8712,824]],8715:[,,{824:8716}],8716:[[8715,824]],8739:[,,{824:8740}],8740:[[8739,824]],8741:[,,{824:8742}],8742:[[8741,824]],8748:[[8747,8747],256],8749:[[8747,8747,8747],256],8751:[[8750,8750],256],8752:[[8750,8750,8750],256],8764:[,,{824:8769}],8769:[[8764,824]],8771:[,,{824:8772}],8772:[[8771,824]],8773:[,,{824:8775}],8775:[[8773,824]],8776:[,,{824:8777}],8777:[[8776,824]],8781:[,,{824:8813}],8800:[[61,824]],8801:[,,{824:8802}],8802:[[8801,824]],8804:[,,{824:8816}],8805:[,,{824:8817}],8813:[[8781,824]],8814:[[60,824]],8815:[[62,824]],8816:[[8804,824]],8817:[[8805,824]],8818:[,,{824:8820}],8819:[,,{824:8821}],8820:[[8818,824]],8821:[[8819,824]],8822:[,,{824:8824}],8823:[,,{824:8825}],8824:[[8822,824]],8825:[[8823,824]],8826:[,,{824:8832}],8827:[,,{824:8833}],8828:[,,{824:8928}],8829:[,,{824:8929}],8832:[[8826,824]],8833:[[8827,824]],8834:[,,{824:8836}],8835:[,,{824:8837}],8836:[[8834,824]],8837:[[8835,824]],8838:[,,{824:8840}],8839:[,,{824:8841}],8840:[[8838,824]],8841:[[8839,824]],8849:[,,{824:8930}],8850:[,,{824:8931}],8866:[,,{824:8876}],8872:[,,{824:8877}],8873:[,,{824:8878}],8875:[,,{824:8879}],8876:[[8866,824]],8877:[[8872,824]],8878:[[8873,824]],8879:[[8875,824]],8882:[,,{824:8938}],8883:[,,{824:8939}],8884:[,,{824:8940}],8885:[,,{824:8941}],8928:[[8828,824]],8929:[[8829,824]],8930:[[8849,824]],8931:[[8850,824]],8938:[[8882,824]],8939:[[8883,824]],8940:[[8884,824]],8941:[[8885,824]]},8960:{9001:[[12296]],9002:[[12297]]},9216:{9312:[[49],256],9313:[[50],256],9314:[[51],256],9315:[[52],256],9316:[[53],256],9317:[[54],256],9318:[[55],256],9319:[[56],256],9320:[[57],256],9321:[[49,48],256],9322:[[49,49],256],9323:[[49,50],256],9324:[[49,51],256],9325:[[49,52],256],9326:[[49,53],256],9327:[[49,54],256],9328:[[49,55],256],9329:[[49,56],256],9330:[[49,57],256],9331:[[50,48],256],9332:[[40,49,41],256],9333:[[40,50,41],256],9334:[[40,51,41],256],9335:[[40,52,41],256],9336:[[40,53,41],256],9337:[[40,54,41],256],9338:[[40,55,41],256],9339:[[40,56,41],256],9340:[[40,57,41],256],9341:[[40,49,48,41],256],9342:[[40,49,49,41],256],9343:[[40,49,50,41],256],9344:[[40,49,51,41],256],9345:[[40,49,52,41],256],9346:[[40,49,53,41],256],9347:[[40,49,54,41],256],9348:[[40,49,55,41],256],9349:[[40,49,56,41],256],9350:[[40,49,57,41],256],9351:[[40,50,48,41],256],9352:[[49,46],256],9353:[[50,46],256],9354:[[51,46],256],9355:[[52,46],256],9356:[[53,46],256],9357:[[54,46],256],9358:[[55,46],256],9359:[[56,46],256],9360:[[57,46],256],9361:[[49,48,46],256],9362:[[49,49,46],256],9363:[[49,50,46],256],9364:[[49,51,46],256],9365:[[49,52,46],256],9366:[[49,53,46],256],9367:[[49,54,46],256],9368:[[49,55,46],256],9369:[[49,56,46],256],9370:[[49,57,46],256],9371:[[50,48,46],256],9372:[[40,97,41],256],9373:[[40,98,41],256],9374:[[40,99,41],256],9375:[[40,100,41],256],9376:[[40,101,41],256],9377:[[40,102,41],256],9378:[[40,103,41],256],9379:[[40,104,41],256],9380:[[40,105,41],256],9381:[[40,106,41],256],9382:[[40,107,41],256],9383:[[40,108,41],256],9384:[[40,109,41],256],9385:[[40,110,41],256],9386:[[40,111,41],256],9387:[[40,112,41],256],9388:[[40,113,41],256],9389:[[40,114,41],256],9390:[[40,115,41],256],9391:[[40,116,41],256],9392:[[40,117,41],256],9393:[[40,118,41],256],9394:[[40,119,41],256],9395:[[40,120,41],256],9396:[[40,121,41],256],9397:[[40,122,41],256],9398:[[65],256],9399:[[66],256],9400:[[67],256],9401:[[68],256],9402:[[69],256],9403:[[70],256],9404:[[71],256],9405:[[72],256],9406:[[73],256],9407:[[74],256],9408:[[75],256],9409:[[76],256],9410:[[77],256],9411:[[78],256],9412:[[79],256],9413:[[80],256],9414:[[81],256],9415:[[82],256],9416:[[83],256],9417:[[84],256],9418:[[85],256],9419:[[86],256],9420:[[87],256],9421:[[88],256],9422:[[89],256],9423:[[90],256],9424:[[97],256],9425:[[98],256],9426:[[99],256],9427:[[100],256],9428:[[101],256],9429:[[102],256],9430:[[103],256],9431:[[104],256],9432:[[105],256],9433:[[106],256],9434:[[107],256],9435:[[108],256],9436:[[109],256],9437:[[110],256],9438:[[111],256],9439:[[112],256],9440:[[113],256],9441:[[114],256],9442:[[115],256],9443:[[116],256],9444:[[117],256],9445:[[118],256],9446:[[119],256],9447:[[120],256],9448:[[121],256],9449:[[122],256],9450:[[48],256]},10752:{10764:[[8747,8747,8747,8747],256],10868:[[58,58,61],256],10869:[[61,61],256],10870:[[61,61,61],256],10972:[[10973,824],512]},11264:{11388:[[106],256],11389:[[86],256],11503:[,230],11504:[,230],11505:[,230]},11520:{11631:[[11617],256],11647:[,9],11744:[,230],11745:[,230],11746:[,230],11747:[,230],11748:[,230],11749:[,230],11750:[,230],11751:[,230],11752:[,230],11753:[,230],11754:[,230],11755:[,230],11756:[,230],11757:[,230],11758:[,230],11759:[,230],11760:[,230],11761:[,230],11762:[,230],11763:[,230],11764:[,230],11765:[,230],11766:[,230],11767:[,230],11768:[,230],11769:[,230],11770:[,230],11771:[,230],11772:[,230],11773:[,230],11774:[,230],11775:[,230]},11776:{11935:[[27597],256],12019:[[40863],256]},12032:{12032:[[19968],256],12033:[[20008],256],12034:[[20022],256],12035:[[20031],256],12036:[[20057],256],12037:[[20101],256],12038:[[20108],256],12039:[[20128],256],12040:[[20154],256],12041:[[20799],256],12042:[[20837],256],12043:[[20843],256],12044:[[20866],256],12045:[[20886],256],12046:[[20907],256],12047:[[20960],256],12048:[[20981],256],12049:[[20992],256],12050:[[21147],256],12051:[[21241],256],12052:[[21269],256],12053:[[21274],256],12054:[[21304],256],12055:[[21313],256],12056:[[21340],256],12057:[[21353],256],12058:[[21378],256],12059:[[21430],256],12060:[[21448],256],12061:[[21475],256],12062:[[22231],256],12063:[[22303],256],12064:[[22763],256],12065:[[22786],256],12066:[[22794],256],12067:[[22805],256],12068:[[22823],256],12069:[[22899],256],12070:[[23376],256],12071:[[23424],256],12072:[[23544],256],12073:[[23567],256],12074:[[23586],256],12075:[[23608],256],12076:[[23662],256],12077:[[23665],256],12078:[[24027],256],12079:[[24037],256],12080:[[24049],256],12081:[[24062],256],12082:[[24178],256],12083:[[24186],256],12084:[[24191],256],12085:[[24308],256],12086:[[24318],256],12087:[[24331],256],12088:[[24339],256],12089:[[24400],256],12090:[[24417],256],12091:[[24435],256],12092:[[24515],256],12093:[[25096],256],12094:[[25142],256],12095:[[25163],256],12096:[[25903],256],12097:[[25908],256],12098:[[25991],256],12099:[[26007],256],12100:[[26020],256],12101:[[26041],256],12102:[[26080],256],12103:[[26085],256],12104:[[26352],256],12105:[[26376],256],12106:[[26408],256],12107:[[27424],256],12108:[[27490],256],12109:[[27513],256],12110:[[27571],256],12111:[[27595],256],12112:[[27604],256],12113:[[27611],256],12114:[[27663],256],12115:[[27668],256],12116:[[27700],256],12117:[[28779],256],12118:[[29226],256],12119:[[29238],256],12120:[[29243],256],12121:[[29247],256],12122:[[29255],256],12123:[[29273],256],12124:[[29275],256],12125:[[29356],256],12126:[[29572],256],12127:[[29577],256],12128:[[29916],256],12129:[[29926],256],12130:[[29976],256],12131:[[29983],256],12132:[[29992],256],12133:[[3e4],256],12134:[[30091],256],12135:[[30098],256],12136:[[30326],256],12137:[[30333],256],12138:[[30382],256],12139:[[30399],256],12140:[[30446],256],12141:[[30683],256],12142:[[30690],256],12143:[[30707],256],12144:[[31034],256],12145:[[31160],256],12146:[[31166],256],12147:[[31348],256],12148:[[31435],256],12149:[[31481],256],12150:[[31859],256],12151:[[31992],256],12152:[[32566],256],12153:[[32593],256],12154:[[32650],256],12155:[[32701],256],12156:[[32769],256],12157:[[32780],256],12158:[[32786],256],12159:[[32819],256],12160:[[32895],256],12161:[[32905],256],12162:[[33251],256],12163:[[33258],256],12164:[[33267],256],12165:[[33276],256],12166:[[33292],256],12167:[[33307],256],12168:[[33311],256],12169:[[33390],256],12170:[[33394],256],12171:[[33400],256],12172:[[34381],256],12173:[[34411],256],12174:[[34880],256],12175:[[34892],256],12176:[[34915],256],12177:[[35198],256],12178:[[35211],256],12179:[[35282],256],12180:[[35328],256],12181:[[35895],256],12182:[[35910],256],12183:[[35925],256],12184:[[35960],256],12185:[[35997],256],12186:[[36196],256],12187:[[36208],256],12188:[[36275],256],12189:[[36523],256],12190:[[36554],256],12191:[[36763],256],12192:[[36784],256],12193:[[36789],256],12194:[[37009],256],12195:[[37193],256],12196:[[37318],256],12197:[[37324],256],12198:[[37329],256],12199:[[38263],256],12200:[[38272],256],12201:[[38428],256],12202:[[38582],256],12203:[[38585],256],12204:[[38632],256],12205:[[38737],256],12206:[[38750],256],12207:[[38754],256],12208:[[38761],256],12209:[[38859],256],12210:[[38893],256],12211:[[38899],256],12212:[[38913],256],12213:[[39080],256],12214:[[39131],256],12215:[[39135],256],12216:[[39318],256],12217:[[39321],256],12218:[[39340],256],12219:[[39592],256],12220:[[39640],256],12221:[[39647],256],12222:[[39717],256],12223:[[39727],256],12224:[[39730],256],12225:[[39740],256],12226:[[39770],256],12227:[[40165],256],12228:[[40565],256],12229:[[40575],256],12230:[[40613],256],12231:[[40635],256],12232:[[40643],256],12233:[[40653],256],12234:[[40657],256],12235:[[40697],256],12236:[[40701],256],12237:[[40718],256],12238:[[40723],256],12239:[[40736],256],12240:[[40763],256],12241:[[40778],256],12242:[[40786],256],12243:[[40845],256],12244:[[40860],256],12245:[[40864],256]},12288:{12288:[[32],256],12330:[,218],12331:[,228],12332:[,232],12333:[,222],12334:[,224],12335:[,224],12342:[[12306],256],12344:[[21313],256],12345:[[21316],256],12346:[[21317],256],12358:[,,{12441:12436}],12363:[,,{12441:12364}],12364:[[12363,12441]],12365:[,,{12441:12366}],12366:[[12365,12441]],12367:[,,{12441:12368}],12368:[[12367,12441]],12369:[,,{12441:12370}],12370:[[12369,12441]],12371:[,,{12441:12372}],12372:[[12371,12441]],12373:[,,{12441:12374}],12374:[[12373,12441]],12375:[,,{12441:12376}],12376:[[12375,12441]],12377:[,,{12441:12378}],12378:[[12377,12441]],12379:[,,{12441:12380}],12380:[[12379,12441]],12381:[,,{12441:12382}],12382:[[12381,12441]],12383:[,,{12441:12384}],12384:[[12383,12441]],12385:[,,{12441:12386}],12386:[[12385,12441]],12388:[,,{12441:12389}],12389:[[12388,12441]],12390:[,,{12441:12391}],12391:[[12390,12441]],12392:[,,{12441:12393}],12393:[[12392,12441]],12399:[,,{12441:12400,12442:12401}],12400:[[12399,12441]],12401:[[12399,12442]],12402:[,,{12441:12403,12442:12404}],12403:[[12402,12441]],12404:[[12402,12442]],12405:[,,{12441:12406,12442:12407}],12406:[[12405,12441]],12407:[[12405,12442]],12408:[,,{12441:12409,12442:12410}],12409:[[12408,12441]],12410:[[12408,12442]],12411:[,,{12441:12412,12442:12413}],12412:[[12411,12441]],12413:[[12411,12442]],12436:[[12358,12441]],12441:[,8],12442:[,8],12443:[[32,12441],256],12444:[[32,12442],256],12445:[,,{12441:12446}],12446:[[12445,12441]],12447:[[12424,12426],256],12454:[,,{12441:12532}],12459:[,,{12441:12460}],12460:[[12459,12441]],12461:[,,{12441:12462}],12462:[[12461,12441]],12463:[,,{12441:12464}],12464:[[12463,12441]],12465:[,,{12441:12466}],12466:[[12465,12441]],12467:[,,{12441:12468}],12468:[[12467,12441]],12469:[,,{12441:12470}],12470:[[12469,12441]],12471:[,,{12441:12472}],12472:[[12471,12441]],12473:[,,{12441:12474}],12474:[[12473,12441]],12475:[,,{12441:12476}],12476:[[12475,12441]],12477:[,,{12441:12478}],12478:[[12477,12441]],12479:[,,{12441:12480}],12480:[[12479,12441]],12481:[,,{12441:12482}],12482:[[12481,12441]],12484:[,,{12441:12485}],12485:[[12484,12441]],12486:[,,{12441:12487}],12487:[[12486,12441]],12488:[,,{12441:12489}],12489:[[12488,12441]],12495:[,,{12441:12496,12442:12497}],12496:[[12495,12441]],12497:[[12495,12442]],12498:[,,{12441:12499,12442:12500}],12499:[[12498,12441]],12500:[[12498,12442]],12501:[,,{12441:12502,12442:12503}],12502:[[12501,12441]],12503:[[12501,12442]],12504:[,,{12441:12505,12442:12506}],12505:[[12504,12441]],12506:[[12504,12442]],12507:[,,{12441:12508,12442:12509}],12508:[[12507,12441]],12509:[[12507,12442]],12527:[,,{12441:12535}],12528:[,,{12441:12536}],12529:[,,{12441:12537}],12530:[,,{12441:12538}],12532:[[12454,12441]],12535:[[12527,12441]],12536:[[12528,12441]],12537:[[12529,12441]],12538:[[12530,12441]],12541:[,,{12441:12542}],12542:[[12541,12441]],12543:[[12467,12488],256]},12544:{12593:[[4352],256],12594:[[4353],256],12595:[[4522],256],12596:[[4354],256],12597:[[4524],256],12598:[[4525],256],12599:[[4355],256],12600:[[4356],256],12601:[[4357],256],12602:[[4528],256],12603:[[4529],256],12604:[[4530],256],12605:[[4531],256],12606:[[4532],256],12607:[[4533],256],12608:[[4378],256],12609:[[4358],256],12610:[[4359],256],12611:[[4360],256],12612:[[4385],256],12613:[[4361],256],12614:[[4362],256],12615:[[4363],256],12616:[[4364],256],12617:[[4365],256],12618:[[4366],256],12619:[[4367],256],12620:[[4368],256],12621:[[4369],256],12622:[[4370],256],12623:[[4449],256],12624:[[4450],256],12625:[[4451],256],12626:[[4452],256],12627:[[4453],256],12628:[[4454],256],12629:[[4455],256],12630:[[4456],256],12631:[[4457],256],12632:[[4458],256],12633:[[4459],256],12634:[[4460],256],12635:[[4461],256],12636:[[4462],256],12637:[[4463],256],12638:[[4464],256],12639:[[4465],256],12640:[[4466],256],12641:[[4467],256],12642:[[4468],256],12643:[[4469],256],12644:[[4448],256],12645:[[4372],256],12646:[[4373],256],12647:[[4551],256],12648:[[4552],256],12649:[[4556],256],12650:[[4558],256],12651:[[4563],256],12652:[[4567],256],12653:[[4569],256],12654:[[4380],256],12655:[[4573],256],12656:[[4575],256],12657:[[4381],256],12658:[[4382],256],12659:[[4384],256],12660:[[4386],256],12661:[[4387],256],12662:[[4391],256],12663:[[4393],256],12664:[[4395],256],12665:[[4396],256],12666:[[4397],256],12667:[[4398],256],12668:[[4399],256],12669:[[4402],256],12670:[[4406],256],12671:[[4416],256],12672:[[4423],256],12673:[[4428],256],12674:[[4593],256],12675:[[4594],256],12676:[[4439],256],12677:[[4440],256],12678:[[4441],256],12679:[[4484],256],12680:[[4485],256],12681:[[4488],256],12682:[[4497],256],12683:[[4498],256],12684:[[4500],256],12685:[[4510],256],12686:[[4513],256],12690:[[19968],256],12691:[[20108],256],12692:[[19977],256],12693:[[22235],256],12694:[[19978],256],12695:[[20013],256],12696:[[19979],256],12697:[[30002],256],12698:[[20057],256],12699:[[19993],256],12700:[[19969],256],12701:[[22825],256],12702:[[22320],256],12703:[[20154],256]},12800:{12800:[[40,4352,41],256],12801:[[40,4354,41],256],12802:[[40,4355,41],256],12803:[[40,4357,41],256],12804:[[40,4358,41],256],12805:[[40,4359,41],256],12806:[[40,4361,41],256],12807:[[40,4363,41],256],12808:[[40,4364,41],256],12809:[[40,4366,41],256],12810:[[40,4367,41],256],12811:[[40,4368,41],256],12812:[[40,4369,41],256],12813:[[40,4370,41],256],12814:[[40,4352,4449,41],256],12815:[[40,4354,4449,41],256],12816:[[40,4355,4449,41],256],12817:[[40,4357,4449,41],256],12818:[[40,4358,4449,41],256],12819:[[40,4359,4449,41],256],12820:[[40,4361,4449,41],256],12821:[[40,4363,4449,41],256],12822:[[40,4364,4449,41],256],12823:[[40,4366,4449,41],256],12824:[[40,4367,4449,41],256],12825:[[40,4368,4449,41],256],12826:[[40,4369,4449,41],256],12827:[[40,4370,4449,41],256],12828:[[40,4364,4462,41],256],12829:[[40,4363,4457,4364,4453,4523,41],256],12830:[[40,4363,4457,4370,4462,41],256],12832:[[40,19968,41],256],12833:[[40,20108,41],256],12834:[[40,19977,41],256],12835:[[40,22235,41],256],12836:[[40,20116,41],256],12837:[[40,20845,41],256],12838:[[40,19971,41],256],12839:[[40,20843,41],256],12840:[[40,20061,41],256],12841:[[40,21313,41],256],12842:[[40,26376,41],256],12843:[[40,28779,41],256],12844:[[40,27700,41],256],12845:[[40,26408,41],256],12846:[[40,37329,41],256],12847:[[40,22303,41],256],12848:[[40,26085,41],256],12849:[[40,26666,41],256],12850:[[40,26377,41],256],12851:[[40,31038,41],256],12852:[[40,21517,41],256],12853:[[40,29305,41],256],12854:[[40,36001,41],256],12855:[[40,31069,41],256],12856:[[40,21172,41],256],12857:[[40,20195,41],256],12858:[[40,21628,41],256],12859:[[40,23398,41],256],12860:[[40,30435,41],256],12861:[[40,20225,41],256],12862:[[40,36039,41],256],12863:[[40,21332,41],256],12864:[[40,31085,41],256],12865:[[40,20241,41],256],12866:[[40,33258,41],256],12867:[[40,33267,41],256],12868:[[21839],256],12869:[[24188],256],12870:[[25991],256],12871:[[31631],256],12880:[[80,84,69],256],12881:[[50,49],256],12882:[[50,50],256],12883:[[50,51],256],12884:[[50,52],256],12885:[[50,53],256],12886:[[50,54],256],12887:[[50,55],256],12888:[[50,56],256],12889:[[50,57],256],12890:[[51,48],256],12891:[[51,49],256],12892:[[51,50],256],12893:[[51,51],256],12894:[[51,52],256],12895:[[51,53],256],12896:[[4352],256],12897:[[4354],256],12898:[[4355],256],12899:[[4357],256],12900:[[4358],256],12901:[[4359],256],12902:[[4361],256],12903:[[4363],256],12904:[[4364],256],12905:[[4366],256],12906:[[4367],256],12907:[[4368],256],12908:[[4369],256],12909:[[4370],256],12910:[[4352,4449],256],12911:[[4354,4449],256],12912:[[4355,4449],256],12913:[[4357,4449],256],12914:[[4358,4449],256],12915:[[4359,4449],256],12916:[[4361,4449],256],12917:[[4363,4449],256],12918:[[4364,4449],256],12919:[[4366,4449],256],12920:[[4367,4449],256],12921:[[4368,4449],256],12922:[[4369,4449],256],12923:[[4370,4449],256],12924:[[4366,4449,4535,4352,4457],256],12925:[[4364,4462,4363,4468],256],12926:[[4363,4462],256],12928:[[19968],256],12929:[[20108],256],12930:[[19977],256],12931:[[22235],256],12932:[[20116],256],12933:[[20845],256],12934:[[19971],256],12935:[[20843],256],12936:[[20061],256],12937:[[21313],256],12938:[[26376],256],12939:[[28779],256],12940:[[27700],256],12941:[[26408],256],12942:[[37329],256],12943:[[22303],256],12944:[[26085],256],12945:[[26666],256],12946:[[26377],256],12947:[[31038],256],12948:[[21517],256],12949:[[29305],256],12950:[[36001],256],12951:[[31069],256],12952:[[21172],256],12953:[[31192],256],12954:[[30007],256],12955:[[22899],256],12956:[[36969],256],12957:[[20778],256],12958:[[21360],256],12959:[[27880],256],12960:[[38917],256],12961:[[20241],256],12962:[[20889],256],12963:[[27491],256],12964:[[19978],256],12965:[[20013],256],12966:[[19979],256],12967:[[24038],256],12968:[[21491],256],12969:[[21307],256],12970:[[23447],256],12971:[[23398],256],12972:[[30435],256],12973:[[20225],256],12974:[[36039],256],12975:[[21332],256],12976:[[22812],256],12977:[[51,54],256],12978:[[51,55],256],12979:[[51,56],256],12980:[[51,57],256],12981:[[52,48],256],12982:[[52,49],256],12983:[[52,50],256],12984:[[52,51],256],12985:[[52,52],256],12986:[[52,53],256],12987:[[52,54],256],12988:[[52,55],256],12989:[[52,56],256],12990:[[52,57],256],12991:[[53,48],256],12992:[[49,26376],256],12993:[[50,26376],256],12994:[[51,26376],256],12995:[[52,26376],256],12996:[[53,26376],256],12997:[[54,26376],256],12998:[[55,26376],256],12999:[[56,26376],256],13e3:[[57,26376],256],13001:[[49,48,26376],256],13002:[[49,49,26376],256],13003:[[49,50,26376],256],13004:[[72,103],256],13005:[[101,114,103],256],13006:[[101,86],256],13007:[[76,84,68],256],13008:[[12450],256],13009:[[12452],256],13010:[[12454],256],13011:[[12456],256],13012:[[12458],256],13013:[[12459],256],13014:[[12461],256],13015:[[12463],256],13016:[[12465],256],13017:[[12467],256],13018:[[12469],256],13019:[[12471],256],13020:[[12473],256],13021:[[12475],256],13022:[[12477],256],13023:[[12479],256],13024:[[12481],256],13025:[[12484],256],13026:[[12486],256],13027:[[12488],256],13028:[[12490],256],13029:[[12491],256],13030:[[12492],256],13031:[[12493],256],13032:[[12494],256],13033:[[12495],256],13034:[[12498],256],13035:[[12501],256],13036:[[12504],256],13037:[[12507],256],13038:[[12510],256],13039:[[12511],256],13040:[[12512],256],13041:[[12513],256],13042:[[12514],256],13043:[[12516],256],13044:[[12518],256],13045:[[12520],256],13046:[[12521],256],13047:[[12522],256],13048:[[12523],256],13049:[[12524],256],13050:[[12525],256],13051:[[12527],256],13052:[[12528],256],13053:[[12529],256],13054:[[12530],256]},13056:{13056:[[12450,12497,12540,12488],256],13057:[[12450,12523,12501,12449],256],13058:[[12450,12531,12506,12450],256],13059:[[12450,12540,12523],256],13060:[[12452,12491,12531,12464],256],13061:[[12452,12531,12481],256],13062:[[12454,12457,12531],256],13063:[[12456,12473,12463,12540,12489],256],13064:[[12456,12540,12459,12540],256],13065:[[12458,12531,12473],256],13066:[[12458,12540,12512],256],13067:[[12459,12452,12522],256],13068:[[12459,12521,12483,12488],256],13069:[[12459,12525,12522,12540],256],13070:[[12460,12525,12531],256],13071:[[12460,12531,12510],256],13072:[[12462,12460],256],13073:[[12462,12491,12540],256],13074:[[12461,12517,12522,12540],256],13075:[[12462,12523,12480,12540],256],13076:[[12461,12525],256],13077:[[12461,12525,12464,12521,12512],256],13078:[[12461,12525,12513,12540,12488,12523],256],13079:[[12461,12525,12527,12483,12488],256],13080:[[12464,12521,12512],256],13081:[[12464,12521,12512,12488,12531],256],13082:[[12463,12523,12476,12452,12525],256],13083:[[12463,12525,12540,12493],256],13084:[[12465,12540,12473],256],13085:[[12467,12523,12490],256],13086:[[12467,12540,12509],256],13087:[[12469,12452,12463,12523],256],13088:[[12469,12531,12481,12540,12512],256],13089:[[12471,12522,12531,12464],256],13090:[[12475,12531,12481],256],13091:[[12475,12531,12488],256],13092:[[12480,12540,12473],256],13093:[[12487,12471],256],13094:[[12489,12523],256],13095:[[12488,12531],256],13096:[[12490,12494],256],13097:[[12494,12483,12488],256],13098:[[12495,12452,12484],256],13099:[[12497,12540,12475,12531,12488],256],13100:[[12497,12540,12484],256],13101:[[12496,12540,12524,12523],256],13102:[[12500,12450,12473,12488,12523],256],13103:[[12500,12463,12523],256],13104:[[12500,12467],256],13105:[[12499,12523],256],13106:[[12501,12449,12521,12483,12489],256],13107:[[12501,12451,12540,12488],256],13108:[[12502,12483,12471,12455,12523],256],13109:[[12501,12521,12531],256],13110:[[12504,12463,12479,12540,12523],256],13111:[[12506,12477],256],13112:[[12506,12491,12498],256],13113:[[12504,12523,12484],256],13114:[[12506,12531,12473],256],13115:[[12506,12540,12472],256],13116:[[12505,12540,12479],256],13117:[[12509,12452,12531,12488],256],13118:[[12508,12523,12488],256],13119:[[12507,12531],256],13120:[[12509,12531,12489],256],13121:[[12507,12540,12523],256],13122:[[12507,12540,12531],256],13123:[[12510,12452,12463,12525],256],13124:[[12510,12452,12523],256],13125:[[12510,12483,12495],256],13126:[[12510,12523,12463],256],13127:[[12510,12531,12471,12519,12531],256],13128:[[12511,12463,12525,12531],256],13129:[[12511,12522],256],13130:[[12511,12522,12496,12540,12523],256],13131:[[12513,12460],256],13132:[[12513,12460,12488,12531],256],13133:[[12513,12540,12488,12523],256],13134:[[12516,12540,12489],256],13135:[[12516,12540,12523],256],13136:[[12518,12450,12531],256],13137:[[12522,12483,12488,12523],256],13138:[[12522,12521],256],13139:[[12523,12500,12540],256],13140:[[12523,12540,12502,12523],256],13141:[[12524,12512],256],13142:[[12524,12531,12488,12466,12531],256],13143:[[12527,12483,12488],256],13144:[[48,28857],256],13145:[[49,28857],256],13146:[[50,28857],256],13147:[[51,28857],256],13148:[[52,28857],256],13149:[[53,28857],256],13150:[[54,28857],256],13151:[[55,28857],256],13152:[[56,28857],256],13153:[[57,28857],256],13154:[[49,48,28857],256],13155:[[49,49,28857],256],13156:[[49,50,28857],256],13157:[[49,51,28857],256],13158:[[49,52,28857],256],13159:[[49,53,28857],256],13160:[[49,54,28857],256],13161:[[49,55,28857],256],13162:[[49,56,28857],256],13163:[[49,57,28857],256],13164:[[50,48,28857],256],13165:[[50,49,28857],256],13166:[[50,50,28857],256],13167:[[50,51,28857],256],13168:[[50,52,28857],256],13169:[[104,80,97],256],13170:[[100,97],256],13171:[[65,85],256],13172:[[98,97,114],256],13173:[[111,86],256],13174:[[112,99],256],13175:[[100,109],256],13176:[[100,109,178],256],13177:[[100,109,179],256],13178:[[73,85],256],13179:[[24179,25104],256],13180:[[26157,21644],256],13181:[[22823,27491],256],13182:[[26126,27835],256],13183:[[26666,24335,20250,31038],256],13184:[[112,65],256],13185:[[110,65],256],13186:[[956,65],256],13187:[[109,65],256],13188:[[107,65],256],13189:[[75,66],256],13190:[[77,66],256],13191:[[71,66],256],13192:[[99,97,108],256],13193:[[107,99,97,108],256],13194:[[112,70],256],13195:[[110,70],256],13196:[[956,70],256],13197:[[956,103],256],13198:[[109,103],256],13199:[[107,103],256],13200:[[72,122],256],13201:[[107,72,122],256],13202:[[77,72,122],256],13203:[[71,72,122],256],13204:[[84,72,122],256],13205:[[956,8467],256],13206:[[109,8467],256],13207:[[100,8467],256],13208:[[107,8467],256],13209:[[102,109],256],13210:[[110,109],256],13211:[[956,109],256],13212:[[109,109],256],13213:[[99,109],256],13214:[[107,109],256],13215:[[109,109,178],256],13216:[[99,109,178],256],13217:[[109,178],256],13218:[[107,109,178],256],13219:[[109,109,179],256],13220:[[99,109,179],256],13221:[[109,179],256],13222:[[107,109,179],256],13223:[[109,8725,115],256],13224:[[109,8725,115,178],256],13225:[[80,97],256],13226:[[107,80,97],256],13227:[[77,80,97],256],13228:[[71,80,97],256],13229:[[114,97,100],256],13230:[[114,97,100,8725,115],256],13231:[[114,97,100,8725,115,178],256],13232:[[112,115],256],13233:[[110,115],256],13234:[[956,115],256],13235:[[109,115],256],13236:[[112,86],256],13237:[[110,86],256],13238:[[956,86],256],13239:[[109,86],256],13240:[[107,86],256],13241:[[77,86],256],13242:[[112,87],256],13243:[[110,87],256],13244:[[956,87],256],13245:[[109,87],256],13246:[[107,87],256],13247:[[77,87],256],13248:[[107,937],256],13249:[[77,937],256],13250:[[97,46,109,46],256],13251:[[66,113],256],13252:[[99,99],256],13253:[[99,100],256],13254:[[67,8725,107,103],256],13255:[[67,111,46],256],13256:[[100,66],256],13257:[[71,121],256],13258:[[104,97],256],13259:[[72,80],256],13260:[[105,110],256],13261:[[75,75],256],13262:[[75,77],256],13263:[[107,116],256],13264:[[108,109],256],13265:[[108,110],256],13266:[[108,111,103],256],13267:[[108,120],256],13268:[[109,98],256],13269:[[109,105,108],256],13270:[[109,111,108],256],13271:[[80,72],256],13272:[[112,46,109,46],256],13273:[[80,80,77],256],13274:[[80,82],256],13275:[[115,114],256],13276:[[83,118],256],13277:[[87,98],256],13278:[[86,8725,109],256],13279:[[65,8725,109],256],13280:[[49,26085],256],13281:[[50,26085],256],13282:[[51,26085],256],13283:[[52,26085],256],13284:[[53,26085],256],13285:[[54,26085],256],13286:[[55,26085],256],13287:[[56,26085],256],13288:[[57,26085],256],13289:[[49,48,26085],256],13290:[[49,49,26085],256],13291:[[49,50,26085],256],13292:[[49,51,26085],256],13293:[[49,52,26085],256],13294:[[49,53,26085],256],13295:[[49,54,26085],256],13296:[[49,55,26085],256],13297:[[49,56,26085],256],13298:[[49,57,26085],256],13299:[[50,48,26085],256],13300:[[50,49,26085],256],13301:[[50,50,26085],256],13302:[[50,51,26085],256],13303:[[50,52,26085],256],13304:[[50,53,26085],256],13305:[[50,54,26085],256],13306:[[50,55,26085],256],13307:[[50,56,26085],256],13308:[[50,57,26085],256],13309:[[51,48,26085],256],13310:[[51,49,26085],256],13311:[[103,97,108],256]},27136:{92912:[,1],92913:[,1],92914:[,1],92915:[,1],92916:[,1]},27392:{92976:[,230],92977:[,230],92978:[,230],92979:[,230],92980:[,230],92981:[,230],92982:[,230]},42496:{42607:[,230],42612:[,230],42613:[,230],42614:[,230],42615:[,230],42616:[,230],42617:[,230],42618:[,230],42619:[,230],42620:[,230],42621:[,230],42652:[[1098],256],42653:[[1100],256],42655:[,230],42736:[,230],42737:[,230]},42752:{42864:[[42863],256],43e3:[[294],256],43001:[[339],256]},43008:{43014:[,9],43204:[,9],43232:[,230],43233:[,230],43234:[,230],43235:[,230],43236:[,230],43237:[,230],43238:[,230],43239:[,230],43240:[,230],43241:[,230],43242:[,230],43243:[,230],43244:[,230],43245:[,230],43246:[,230],43247:[,230],43248:[,230],43249:[,230]},43264:{43307:[,220],43308:[,220],43309:[,220],43347:[,9],43443:[,7],43456:[,9]},43520:{43696:[,230],43698:[,230],43699:[,230],43700:[,220],43703:[,230],43704:[,230],43710:[,230],43711:[,230],43713:[,230],43766:[,9]},43776:{43868:[[42791],256],43869:[[43831],256],43870:[[619],256],43871:[[43858],256],44013:[,9]},48128:{113822:[,1]},53504:{119134:[[119127,119141],512],119135:[[119128,119141],512],119136:[[119135,119150],512],119137:[[119135,119151],512],119138:[[119135,119152],512],119139:[[119135,119153],512],119140:[[119135,119154],512],119141:[,216],119142:[,216],119143:[,1],119144:[,1],119145:[,1],119149:[,226],119150:[,216],119151:[,216],119152:[,216],119153:[,216],119154:[,216],119163:[,220],119164:[,220],119165:[,220],119166:[,220],119167:[,220],119168:[,220],119169:[,220],119170:[,220],119173:[,230],119174:[,230],119175:[,230],119176:[,230],119177:[,230],119178:[,220],119179:[,220],119210:[,230],119211:[,230],119212:[,230],119213:[,230],119227:[[119225,119141],512],119228:[[119226,119141],512],119229:[[119227,119150],512],119230:[[119228,119150],512],119231:[[119227,119151],512],119232:[[119228,119151],512]},53760:{119362:[,230],119363:[,230],119364:[,230]},54272:{119808:[[65],256],119809:[[66],256],119810:[[67],256],119811:[[68],256],119812:[[69],256],119813:[[70],256],119814:[[71],256],119815:[[72],256],119816:[[73],256],119817:[[74],256],119818:[[75],256],119819:[[76],256],119820:[[77],256],119821:[[78],256],119822:[[79],256],119823:[[80],256],119824:[[81],256],119825:[[82],256],119826:[[83],256],119827:[[84],256],119828:[[85],256],119829:[[86],256],119830:[[87],256],119831:[[88],256],119832:[[89],256],119833:[[90],256],119834:[[97],256],119835:[[98],256],119836:[[99],256],119837:[[100],256],119838:[[101],256],119839:[[102],256],119840:[[103],256],119841:[[104],256],119842:[[105],256],119843:[[106],256],119844:[[107],256],119845:[[108],256],119846:[[109],256],119847:[[110],256],119848:[[111],256],119849:[[112],256],119850:[[113],256],119851:[[114],256],119852:[[115],256],119853:[[116],256],119854:[[117],256],119855:[[118],256],119856:[[119],256],119857:[[120],256],119858:[[121],256],119859:[[122],256],119860:[[65],256],119861:[[66],256],119862:[[67],256],119863:[[68],256],119864:[[69],256],119865:[[70],256],119866:[[71],256],119867:[[72],256],119868:[[73],256],119869:[[74],256],119870:[[75],256],119871:[[76],256],119872:[[77],256],119873:[[78],256],119874:[[79],256],119875:[[80],256],119876:[[81],256],119877:[[82],256],119878:[[83],256],119879:[[84],256],119880:[[85],256],119881:[[86],256],119882:[[87],256],119883:[[88],256],119884:[[89],256],119885:[[90],256],119886:[[97],256],119887:[[98],256],119888:[[99],256],119889:[[100],256],119890:[[101],256],119891:[[102],256],119892:[[103],256],119894:[[105],256],119895:[[106],256],119896:[[107],256],119897:[[108],256],119898:[[109],256],119899:[[110],256],119900:[[111],256],119901:[[112],256],119902:[[113],256],119903:[[114],256],119904:[[115],256],119905:[[116],256],119906:[[117],256],119907:[[118],256],119908:[[119],256],119909:[[120],256],119910:[[121],256],119911:[[122],256],119912:[[65],256],119913:[[66],256],119914:[[67],256],119915:[[68],256],119916:[[69],256],119917:[[70],256],119918:[[71],256],119919:[[72],256],119920:[[73],256],119921:[[74],256],119922:[[75],256],119923:[[76],256],119924:[[77],256],119925:[[78],256],119926:[[79],256],119927:[[80],256],119928:[[81],256],119929:[[82],256],119930:[[83],256],119931:[[84],256],119932:[[85],256],119933:[[86],256],119934:[[87],256],119935:[[88],256],119936:[[89],256],119937:[[90],256],119938:[[97],256],119939:[[98],256],119940:[[99],256],119941:[[100],256],119942:[[101],256],119943:[[102],256],119944:[[103],256],119945:[[104],256],119946:[[105],256],119947:[[106],256],119948:[[107],256],119949:[[108],256],119950:[[109],256],119951:[[110],256],119952:[[111],256],119953:[[112],256],119954:[[113],256],119955:[[114],256],119956:[[115],256],119957:[[116],256],119958:[[117],256],119959:[[118],256],119960:[[119],256],119961:[[120],256],119962:[[121],256],119963:[[122],256],119964:[[65],256],119966:[[67],256],119967:[[68],256],119970:[[71],256],119973:[[74],256],119974:[[75],256],119977:[[78],256],119978:[[79],256],119979:[[80],256],119980:[[81],256],119982:[[83],256],119983:[[84],256],119984:[[85],256],119985:[[86],256],119986:[[87],256],119987:[[88],256],119988:[[89],256],119989:[[90],256],119990:[[97],256],119991:[[98],256],119992:[[99],256],119993:[[100],256],119995:[[102],256],119997:[[104],256],119998:[[105],256],119999:[[106],256],12e4:[[107],256],120001:[[108],256],120002:[[109],256],120003:[[110],256],120005:[[112],256],120006:[[113],256],120007:[[114],256],120008:[[115],256],120009:[[116],256],120010:[[117],256],120011:[[118],256],120012:[[119],256],120013:[[120],256],120014:[[121],256],120015:[[122],256],120016:[[65],256],120017:[[66],256],120018:[[67],256],120019:[[68],256],120020:[[69],256],120021:[[70],256],120022:[[71],256],120023:[[72],256],120024:[[73],256],120025:[[74],256],120026:[[75],256],120027:[[76],256],120028:[[77],256],120029:[[78],256],120030:[[79],256],120031:[[80],256],120032:[[81],256],120033:[[82],256],120034:[[83],256],120035:[[84],256],120036:[[85],256],120037:[[86],256],120038:[[87],256],120039:[[88],256],120040:[[89],256],120041:[[90],256],120042:[[97],256],120043:[[98],256],120044:[[99],256],120045:[[100],256],120046:[[101],256],120047:[[102],256],120048:[[103],256],120049:[[104],256],120050:[[105],256],120051:[[106],256],120052:[[107],256],120053:[[108],256],120054:[[109],256],120055:[[110],256],120056:[[111],256],120057:[[112],256],120058:[[113],256],120059:[[114],256],120060:[[115],256],120061:[[116],256],120062:[[117],256],120063:[[118],256]},54528:{120064:[[119],256],120065:[[120],256],120066:[[121],256],120067:[[122],256],120068:[[65],256],120069:[[66],256],120071:[[68],256],120072:[[69],256],120073:[[70],256],120074:[[71],256],120077:[[74],256],120078:[[75],256],120079:[[76],256],120080:[[77],256],120081:[[78],256],120082:[[79],256],120083:[[80],256],120084:[[81],256],120086:[[83],256],120087:[[84],256],120088:[[85],256],120089:[[86],256],120090:[[87],256],120091:[[88],256],120092:[[89],256],120094:[[97],256],120095:[[98],256],120096:[[99],256],120097:[[100],256],120098:[[101],256],120099:[[102],256],120100:[[103],256],120101:[[104],256],120102:[[105],256],120103:[[106],256],120104:[[107],256],120105:[[108],256],120106:[[109],256],120107:[[110],256],120108:[[111],256],120109:[[112],256],120110:[[113],256],120111:[[114],256],120112:[[115],256],120113:[[116],256],120114:[[117],256],120115:[[118],256],120116:[[119],256],120117:[[120],256],120118:[[121],256],120119:[[122],256],120120:[[65],256],120121:[[66],256],120123:[[68],256],120124:[[69],256],120125:[[70],256],120126:[[71],256],120128:[[73],256],120129:[[74],256],120130:[[75],256],120131:[[76],256],120132:[[77],256],120134:[[79],256],120138:[[83],256],120139:[[84],256],120140:[[85],256],120141:[[86],256],120142:[[87],256],120143:[[88],256],120144:[[89],256],120146:[[97],256],120147:[[98],256],120148:[[99],256],120149:[[100],256],120150:[[101],256],120151:[[102],256],120152:[[103],256],120153:[[104],256],120154:[[105],256],120155:[[106],256],120156:[[107],256],120157:[[108],256],120158:[[109],256],120159:[[110],256],120160:[[111],256],120161:[[112],256],120162:[[113],256],120163:[[114],256],120164:[[115],256],120165:[[116],256],120166:[[117],256],120167:[[118],256],120168:[[119],256],120169:[[120],256],120170:[[121],256],120171:[[122],256],120172:[[65],256],120173:[[66],256],120174:[[67],256],120175:[[68],256],120176:[[69],256],120177:[[70],256],120178:[[71],256],120179:[[72],256],120180:[[73],256],120181:[[74],256],120182:[[75],256],120183:[[76],256],120184:[[77],256],120185:[[78],256],120186:[[79],256],120187:[[80],256],120188:[[81],256],120189:[[82],256],120190:[[83],256],120191:[[84],256],120192:[[85],256],120193:[[86],256],120194:[[87],256],120195:[[88],256],120196:[[89],256],120197:[[90],256],120198:[[97],256],120199:[[98],256],120200:[[99],256],120201:[[100],256],120202:[[101],256],120203:[[102],256],120204:[[103],256],120205:[[104],256],120206:[[105],256],120207:[[106],256],120208:[[107],256],120209:[[108],256],120210:[[109],256],120211:[[110],256],120212:[[111],256],120213:[[112],256],120214:[[113],256],120215:[[114],256],120216:[[115],256],120217:[[116],256],120218:[[117],256],120219:[[118],256],120220:[[119],256],120221:[[120],256],120222:[[121],256],120223:[[122],256],120224:[[65],256],120225:[[66],256],120226:[[67],256],120227:[[68],256],120228:[[69],256],120229:[[70],256],120230:[[71],256],120231:[[72],256],120232:[[73],256],120233:[[74],256],120234:[[75],256],120235:[[76],256],120236:[[77],256],120237:[[78],256],120238:[[79],256],120239:[[80],256],120240:[[81],256],120241:[[82],256],120242:[[83],256],120243:[[84],256],120244:[[85],256],120245:[[86],256],120246:[[87],256],120247:[[88],256],120248:[[89],256],120249:[[90],256],120250:[[97],256],120251:[[98],256],120252:[[99],256],120253:[[100],256],120254:[[101],256],120255:[[102],256],120256:[[103],256],120257:[[104],256],120258:[[105],256],120259:[[106],256],120260:[[107],256],120261:[[108],256],120262:[[109],256],120263:[[110],256],120264:[[111],256],120265:[[112],256],120266:[[113],256],120267:[[114],256],120268:[[115],256],120269:[[116],256],120270:[[117],256],120271:[[118],256],120272:[[119],256],120273:[[120],256],120274:[[121],256],120275:[[122],256],120276:[[65],256],120277:[[66],256],120278:[[67],256],120279:[[68],256],120280:[[69],256],120281:[[70],256],120282:[[71],256],120283:[[72],256],120284:[[73],256],120285:[[74],256],120286:[[75],256],120287:[[76],256],120288:[[77],256],120289:[[78],256],120290:[[79],256],120291:[[80],256],120292:[[81],256],120293:[[82],256],120294:[[83],256],120295:[[84],256],120296:[[85],256],120297:[[86],256],120298:[[87],256],120299:[[88],256],120300:[[89],256],120301:[[90],256],120302:[[97],256],120303:[[98],256],120304:[[99],256],120305:[[100],256],120306:[[101],256],120307:[[102],256],120308:[[103],256],120309:[[104],256],120310:[[105],256],120311:[[106],256],120312:[[107],256],120313:[[108],256],120314:[[109],256],120315:[[110],256],120316:[[111],256],120317:[[112],256],120318:[[113],256],120319:[[114],256]},54784:{120320:[[115],256],120321:[[116],256],120322:[[117],256],120323:[[118],256],120324:[[119],256],120325:[[120],256],120326:[[121],256],120327:[[122],256],120328:[[65],256],120329:[[66],256],120330:[[67],256],120331:[[68],256],120332:[[69],256],120333:[[70],256],120334:[[71],256],120335:[[72],256],120336:[[73],256],120337:[[74],256],120338:[[75],256],120339:[[76],256],120340:[[77],256],120341:[[78],256],120342:[[79],256],120343:[[80],256],120344:[[81],256],120345:[[82],256],120346:[[83],256],120347:[[84],256],120348:[[85],256],120349:[[86],256],120350:[[87],256],120351:[[88],256],120352:[[89],256],120353:[[90],256],120354:[[97],256],120355:[[98],256],120356:[[99],256],120357:[[100],256],120358:[[101],256],120359:[[102],256],120360:[[103],256],120361:[[104],256],120362:[[105],256],120363:[[106],256],120364:[[107],256],120365:[[108],256],120366:[[109],256],120367:[[110],256],120368:[[111],256],120369:[[112],256],120370:[[113],256],120371:[[114],256],120372:[[115],256],120373:[[116],256],120374:[[117],256],120375:[[118],256],120376:[[119],256],120377:[[120],256],120378:[[121],256],120379:[[122],256],120380:[[65],256],120381:[[66],256],120382:[[67],256],120383:[[68],256],120384:[[69],256],120385:[[70],256],120386:[[71],256],120387:[[72],256],120388:[[73],256],120389:[[74],256],120390:[[75],256],120391:[[76],256],120392:[[77],256],120393:[[78],256],120394:[[79],256],120395:[[80],256],120396:[[81],256],120397:[[82],256],120398:[[83],256],120399:[[84],256],120400:[[85],256],120401:[[86],256],120402:[[87],256],120403:[[88],256],120404:[[89],256],120405:[[90],256],120406:[[97],256],120407:[[98],256],120408:[[99],256],120409:[[100],256],120410:[[101],256],120411:[[102],256],120412:[[103],256],120413:[[104],256],120414:[[105],256],120415:[[106],256],120416:[[107],256],120417:[[108],256],120418:[[109],256],120419:[[110],256],120420:[[111],256],120421:[[112],256],120422:[[113],256],120423:[[114],256],120424:[[115],256],120425:[[116],256],120426:[[117],256],120427:[[118],256],120428:[[119],256],120429:[[120],256],120430:[[121],256],120431:[[122],256],120432:[[65],256],120433:[[66],256],120434:[[67],256],120435:[[68],256],120436:[[69],256],120437:[[70],256],120438:[[71],256],120439:[[72],256],120440:[[73],256],120441:[[74],256],120442:[[75],256],120443:[[76],256],120444:[[77],256],120445:[[78],256],120446:[[79],256],120447:[[80],256],120448:[[81],256],120449:[[82],256],120450:[[83],256],120451:[[84],256],120452:[[85],256],120453:[[86],256],120454:[[87],256],120455:[[88],256],120456:[[89],256],120457:[[90],256],120458:[[97],256],120459:[[98],256],120460:[[99],256],120461:[[100],256],120462:[[101],256],120463:[[102],256],120464:[[103],256],120465:[[104],256],120466:[[105],256],120467:[[106],256],120468:[[107],256],120469:[[108],256],120470:[[109],256],120471:[[110],256],120472:[[111],256],120473:[[112],256],120474:[[113],256],120475:[[114],256],120476:[[115],256],120477:[[116],256],120478:[[117],256],120479:[[118],256],120480:[[119],256],120481:[[120],256],120482:[[121],256],120483:[[122],256],120484:[[305],256],120485:[[567],256],120488:[[913],256],120489:[[914],256],120490:[[915],256],120491:[[916],256],120492:[[917],256],120493:[[918],256],120494:[[919],256],120495:[[920],256],120496:[[921],256],120497:[[922],256],120498:[[923],256],120499:[[924],256],120500:[[925],256],120501:[[926],256],120502:[[927],256],120503:[[928],256],120504:[[929],256],120505:[[1012],256],120506:[[931],256],120507:[[932],256],120508:[[933],256],120509:[[934],256],120510:[[935],256],120511:[[936],256],120512:[[937],256],120513:[[8711],256],120514:[[945],256],120515:[[946],256],120516:[[947],256],120517:[[948],256],120518:[[949],256],120519:[[950],256],120520:[[951],256],120521:[[952],256],120522:[[953],256],120523:[[954],256],120524:[[955],256],120525:[[956],256],120526:[[957],256],120527:[[958],256],120528:[[959],256],120529:[[960],256],120530:[[961],256],120531:[[962],256],120532:[[963],256],120533:[[964],256],120534:[[965],256],120535:[[966],256],120536:[[967],256],120537:[[968],256],120538:[[969],256],120539:[[8706],256],120540:[[1013],256],120541:[[977],256],120542:[[1008],256],120543:[[981],256],120544:[[1009],256],120545:[[982],256],120546:[[913],256],120547:[[914],256],120548:[[915],256],120549:[[916],256],120550:[[917],256],120551:[[918],256],120552:[[919],256],120553:[[920],256],120554:[[921],256],120555:[[922],256],120556:[[923],256],120557:[[924],256],120558:[[925],256],120559:[[926],256],120560:[[927],256],120561:[[928],256],120562:[[929],256],120563:[[1012],256],120564:[[931],256],120565:[[932],256],120566:[[933],256],120567:[[934],256],120568:[[935],256],120569:[[936],256],120570:[[937],256],120571:[[8711],256],120572:[[945],256],120573:[[946],256],120574:[[947],256],120575:[[948],256]},55040:{120576:[[949],256],120577:[[950],256],120578:[[951],256],120579:[[952],256],120580:[[953],256],120581:[[954],256],120582:[[955],256],120583:[[956],256],120584:[[957],256],120585:[[958],256],120586:[[959],256],120587:[[960],256],120588:[[961],256],120589:[[962],256],120590:[[963],256],120591:[[964],256],120592:[[965],256],120593:[[966],256],120594:[[967],256],120595:[[968],256],120596:[[969],256],120597:[[8706],256],120598:[[1013],256],120599:[[977],256],120600:[[1008],256],120601:[[981],256],120602:[[1009],256],120603:[[982],256],120604:[[913],256],120605:[[914],256],120606:[[915],256],120607:[[916],256],120608:[[917],256],120609:[[918],256],120610:[[919],256],120611:[[920],256],120612:[[921],256],120613:[[922],256],120614:[[923],256],120615:[[924],256],120616:[[925],256],120617:[[926],256],120618:[[927],256],120619:[[928],256],120620:[[929],256],120621:[[1012],256],120622:[[931],256],120623:[[932],256],120624:[[933],256],120625:[[934],256],120626:[[935],256],120627:[[936],256],120628:[[937],256],120629:[[8711],256],120630:[[945],256],120631:[[946],256],120632:[[947],256],120633:[[948],256],120634:[[949],256],120635:[[950],256],120636:[[951],256],120637:[[952],256],120638:[[953],256],120639:[[954],256],120640:[[955],256],120641:[[956],256],120642:[[957],256],120643:[[958],256],120644:[[959],256],120645:[[960],256],120646:[[961],256],120647:[[962],256],120648:[[963],256],120649:[[964],256],120650:[[965],256],120651:[[966],256],120652:[[967],256],120653:[[968],256],120654:[[969],256],120655:[[8706],256],120656:[[1013],256],120657:[[977],256],120658:[[1008],256],120659:[[981],256],120660:[[1009],256],120661:[[982],256],120662:[[913],256],120663:[[914],256],120664:[[915],256],120665:[[916],256],120666:[[917],256],120667:[[918],256],120668:[[919],256],120669:[[920],256],120670:[[921],256],120671:[[922],256],120672:[[923],256],120673:[[924],256],120674:[[925],256],120675:[[926],256],120676:[[927],256],120677:[[928],256],120678:[[929],256],120679:[[1012],256],120680:[[931],256],120681:[[932],256],120682:[[933],256],120683:[[934],256],120684:[[935],256],120685:[[936],256],120686:[[937],256],120687:[[8711],256],120688:[[945],256],120689:[[946],256],120690:[[947],256],120691:[[948],256],120692:[[949],256],120693:[[950],256],120694:[[951],256],120695:[[952],256],120696:[[953],256],120697:[[954],256],120698:[[955],256],120699:[[956],256],120700:[[957],256],120701:[[958],256],120702:[[959],256],120703:[[960],256],120704:[[961],256],120705:[[962],256],120706:[[963],256],120707:[[964],256],120708:[[965],256],120709:[[966],256],120710:[[967],256],120711:[[968],256],120712:[[969],256],120713:[[8706],256],120714:[[1013],256],120715:[[977],256],120716:[[1008],256],120717:[[981],256],120718:[[1009],256],120719:[[982],256],120720:[[913],256],120721:[[914],256],120722:[[915],256],120723:[[916],256],120724:[[917],256],120725:[[918],256],120726:[[919],256],120727:[[920],256],120728:[[921],256],120729:[[922],256],120730:[[923],256],120731:[[924],256],120732:[[925],256],120733:[[926],256],120734:[[927],256],120735:[[928],256],120736:[[929],256],120737:[[1012],256],120738:[[931],256],120739:[[932],256],120740:[[933],256],120741:[[934],256],120742:[[935],256],120743:[[936],256],120744:[[937],256],120745:[[8711],256],120746:[[945],256],120747:[[946],256],120748:[[947],256],120749:[[948],256],120750:[[949],256],120751:[[950],256],120752:[[951],256],120753:[[952],256],120754:[[953],256],120755:[[954],256],120756:[[955],256],120757:[[956],256],120758:[[957],256],120759:[[958],256],120760:[[959],256],120761:[[960],256],120762:[[961],256],120763:[[962],256],120764:[[963],256],120765:[[964],256],120766:[[965],256],120767:[[966],256],120768:[[967],256],120769:[[968],256],120770:[[969],256],120771:[[8706],256],120772:[[1013],256],120773:[[977],256],120774:[[1008],256],120775:[[981],256],120776:[[1009],256],120777:[[982],256],120778:[[988],256],120779:[[989],256],120782:[[48],256],120783:[[49],256],120784:[[50],256],120785:[[51],256],120786:[[52],256],120787:[[53],256],120788:[[54],256],120789:[[55],256],120790:[[56],256],120791:[[57],256],120792:[[48],256],120793:[[49],256],120794:[[50],256],120795:[[51],256],120796:[[52],256],120797:[[53],256],120798:[[54],256],120799:[[55],256],120800:[[56],256],120801:[[57],256],120802:[[48],256],120803:[[49],256],120804:[[50],256],120805:[[51],256],120806:[[52],256],120807:[[53],256],120808:[[54],256],120809:[[55],256],120810:[[56],256],120811:[[57],256],120812:[[48],256],120813:[[49],256],120814:[[50],256],120815:[[51],256],120816:[[52],256],120817:[[53],256],120818:[[54],256],120819:[[55],256],120820:[[56],256],120821:[[57],256],120822:[[48],256],120823:[[49],256],120824:[[50],256],120825:[[51],256],120826:[[52],256],120827:[[53],256],120828:[[54],256],120829:[[55],256],120830:[[56],256],120831:[[57],256]},59392:{125136:[,220],125137:[,220],125138:[,220],125139:[,220],125140:[,220],125141:[,220],125142:[,220]},60928:{126464:[[1575],256],126465:[[1576],256],126466:[[1580],256],126467:[[1583],256],126469:[[1608],256],126470:[[1586],256],126471:[[1581],256],126472:[[1591],256],126473:[[1610],256],126474:[[1603],256],126475:[[1604],256],126476:[[1605],256],126477:[[1606],256],126478:[[1587],256],126479:[[1593],256],126480:[[1601],256],126481:[[1589],256],126482:[[1602],256],126483:[[1585],256],126484:[[1588],256],126485:[[1578],256],126486:[[1579],256],126487:[[1582],256],126488:[[1584],256],126489:[[1590],256],126490:[[1592],256],126491:[[1594],256],126492:[[1646],256],126493:[[1722],256],126494:[[1697],256],126495:[[1647],256],126497:[[1576],256],126498:[[1580],256],126500:[[1607],256],126503:[[1581],256],126505:[[1610],256],126506:[[1603],256],126507:[[1604],256],126508:[[1605],256],126509:[[1606],256],126510:[[1587],256],126511:[[1593],256],126512:[[1601],256],126513:[[1589],256],126514:[[1602],256],126516:[[1588],256],126517:[[1578],256],126518:[[1579],256],126519:[[1582],256],126521:[[1590],256],126523:[[1594],256],126530:[[1580],256],126535:[[1581],256],126537:[[1610],256],126539:[[1604],256],126541:[[1606],256],126542:[[1587],256],126543:[[1593],256],126545:[[1589],256],126546:[[1602],256],126548:[[1588],256],126551:[[1582],256],126553:[[1590],256],126555:[[1594],256],126557:[[1722],256],126559:[[1647],256],126561:[[1576],256],126562:[[1580],256],126564:[[1607],256],126567:[[1581],256],126568:[[1591],256],126569:[[1610],256],126570:[[1603],256],126572:[[1605],256],126573:[[1606],256],126574:[[1587],256],126575:[[1593],256],126576:[[1601],256],126577:[[1589],256],126578:[[1602],256],126580:[[1588],256],126581:[[1578],256],126582:[[1579],256],126583:[[1582],256],126585:[[1590],256],126586:[[1592],256],126587:[[1594],256],126588:[[1646],256],126590:[[1697],256],126592:[[1575],256],126593:[[1576],256],126594:[[1580],256],126595:[[1583],256],126596:[[1607],256],126597:[[1608],256],126598:[[1586],256],126599:[[1581],256],126600:[[1591],256],126601:[[1610],256],126603:[[1604],256],126604:[[1605],256],126605:[[1606],256],126606:[[1587],256],126607:[[1593],256],126608:[[1601],256],126609:[[1589],256],126610:[[1602],256],126611:[[1585],256],126612:[[1588],256],126613:[[1578],256],126614:[[1579],256],126615:[[1582],256],126616:[[1584],256],126617:[[1590],256],126618:[[1592],256],126619:[[1594],256],126625:[[1576],256],126626:[[1580],256],126627:[[1583],256],126629:[[1608],256],126630:[[1586],256],126631:[[1581],256],126632:[[1591],256],126633:[[1610],256],126635:[[1604],256],126636:[[1605],256],126637:[[1606],256],126638:[[1587],256],126639:[[1593],256],126640:[[1601],256],126641:[[1589],256],126642:[[1602],256],126643:[[1585],256],126644:[[1588],256],126645:[[1578],256],126646:[[1579],256],126647:[[1582],256],126648:[[1584],256],126649:[[1590],256],126650:[[1592],256],126651:[[1594],256]},61696:{127232:[[48,46],256],127233:[[48,44],256],127234:[[49,44],256],127235:[[50,44],256],127236:[[51,44],256],127237:[[52,44],256],127238:[[53,44],256],127239:[[54,44],256],127240:[[55,44],256],127241:[[56,44],256],127242:[[57,44],256],127248:[[40,65,41],256],127249:[[40,66,41],256],127250:[[40,67,41],256],127251:[[40,68,41],256],127252:[[40,69,41],256],127253:[[40,70,41],256],127254:[[40,71,41],256],127255:[[40,72,41],256],127256:[[40,73,41],256],127257:[[40,74,41],256],127258:[[40,75,41],256],127259:[[40,76,41],256],127260:[[40,77,41],256],127261:[[40,78,41],256],127262:[[40,79,41],256],127263:[[40,80,41],256],127264:[[40,81,41],256],127265:[[40,82,41],256],127266:[[40,83,41],256],127267:[[40,84,41],256],127268:[[40,85,41],256],127269:[[40,86,41],256],127270:[[40,87,41],256],127271:[[40,88,41],256],127272:[[40,89,41],256],127273:[[40,90,41],256],127274:[[12308,83,12309],256],127275:[[67],256],127276:[[82],256],127277:[[67,68],256],127278:[[87,90],256],127280:[[65],256],127281:[[66],256],127282:[[67],256],127283:[[68],256],127284:[[69],256],127285:[[70],256],127286:[[71],256],127287:[[72],256],127288:[[73],256],127289:[[74],256],127290:[[75],256],127291:[[76],256],127292:[[77],256],127293:[[78],256],127294:[[79],256],127295:[[80],256],127296:[[81],256],127297:[[82],256],127298:[[83],256],127299:[[84],256],127300:[[85],256],127301:[[86],256],127302:[[87],256],127303:[[88],256],127304:[[89],256],127305:[[90],256],127306:[[72,86],256],127307:[[77,86],256],127308:[[83,68],256],127309:[[83,83],256],127310:[[80,80,86],256],127311:[[87,67],256],127338:[[77,67],256],127339:[[77,68],256],127376:[[68,74],256]},61952:{127488:[[12411,12363],256],127489:[[12467,12467],256],127490:[[12469],256],127504:[[25163],256],127505:[[23383],256],127506:[[21452],256],127507:[[12487],256],127508:[[20108],256],127509:[[22810],256],127510:[[35299],256],127511:[[22825],256],127512:[[20132],256],127513:[[26144],256],127514:[[28961],256],127515:[[26009],256],127516:[[21069],256],127517:[[24460],256],127518:[[20877],256],127519:[[26032],256],127520:[[21021],256],127521:[[32066],256],127522:[[29983],256],127523:[[36009],256],127524:[[22768],256],127525:[[21561],256],127526:[[28436],256],127527:[[25237],256],127528:[[25429],256],127529:[[19968],256],127530:[[19977],256],127531:[[36938],256],127532:[[24038],256],127533:[[20013],256],127534:[[21491],256],127535:[[25351],256],127536:[[36208],256],127537:[[25171],256],127538:[[31105],256],127539:[[31354],256],127540:[[21512],256],127541:[[28288],256],127542:[[26377],256],127543:[[26376],256],127544:[[30003],256],127545:[[21106],256],127546:[[21942],256],127552:[[12308,26412,12309],256],127553:[[12308,19977,12309],256],127554:[[12308,20108,12309],256],127555:[[12308,23433,12309],256],127556:[[12308,28857,12309],256],127557:[[12308,25171,12309],256],127558:[[12308,30423,12309],256],127559:[[12308,21213,12309],256],127560:[[12308,25943,12309],256],127568:[[24471],256],127569:[[21487],256]},63488:{194560:[[20029]],194561:[[20024]],194562:[[20033]],194563:[[131362]],194564:[[20320]],194565:[[20398]],194566:[[20411]],194567:[[20482]],194568:[[20602]],194569:[[20633]],194570:[[20711]],194571:[[20687]],194572:[[13470]],194573:[[132666]],194574:[[20813]],194575:[[20820]],194576:[[20836]],194577:[[20855]],194578:[[132380]],194579:[[13497]],194580:[[20839]],194581:[[20877]],194582:[[132427]],194583:[[20887]],194584:[[20900]],194585:[[20172]],194586:[[20908]],194587:[[20917]],194588:[[168415]],194589:[[20981]],194590:[[20995]],194591:[[13535]],194592:[[21051]],194593:[[21062]],194594:[[21106]],194595:[[21111]],194596:[[13589]],194597:[[21191]],194598:[[21193]],194599:[[21220]],194600:[[21242]],194601:[[21253]],194602:[[21254]],194603:[[21271]],194604:[[21321]],194605:[[21329]],194606:[[21338]],194607:[[21363]],194608:[[21373]],194609:[[21375]],194610:[[21375]],194611:[[21375]],194612:[[133676]],194613:[[28784]],194614:[[21450]],194615:[[21471]],194616:[[133987]],194617:[[21483]],194618:[[21489]],194619:[[21510]],194620:[[21662]],194621:[[21560]],194622:[[21576]],194623:[[21608]],194624:[[21666]],194625:[[21750]],194626:[[21776]],194627:[[21843]],194628:[[21859]],194629:[[21892]],194630:[[21892]],194631:[[21913]],194632:[[21931]],194633:[[21939]],194634:[[21954]],194635:[[22294]],194636:[[22022]],194637:[[22295]],194638:[[22097]],194639:[[22132]],194640:[[20999]],194641:[[22766]],194642:[[22478]],194643:[[22516]],194644:[[22541]],194645:[[22411]],194646:[[22578]],194647:[[22577]],194648:[[22700]],194649:[[136420]],194650:[[22770]],194651:[[22775]],194652:[[22790]],194653:[[22810]],194654:[[22818]],194655:[[22882]],194656:[[136872]],194657:[[136938]],194658:[[23020]],194659:[[23067]],194660:[[23079]],194661:[[23e3]],194662:[[23142]],194663:[[14062]],194664:[[14076]],194665:[[23304]],194666:[[23358]],194667:[[23358]],194668:[[137672]],194669:[[23491]],194670:[[23512]],194671:[[23527]],194672:[[23539]],194673:[[138008]],194674:[[23551]],194675:[[23558]],194676:[[24403]],194677:[[23586]],194678:[[14209]],194679:[[23648]],194680:[[23662]],194681:[[23744]],194682:[[23693]],194683:[[138724]],194684:[[23875]],194685:[[138726]],194686:[[23918]],194687:[[23915]],194688:[[23932]],194689:[[24033]],194690:[[24034]],194691:[[14383]],194692:[[24061]],194693:[[24104]],194694:[[24125]],194695:[[24169]],194696:[[14434]],194697:[[139651]],194698:[[14460]],194699:[[24240]],194700:[[24243]],194701:[[24246]],194702:[[24266]],194703:[[172946]],194704:[[24318]],194705:[[140081]],194706:[[140081]],194707:[[33281]],194708:[[24354]],194709:[[24354]],194710:[[14535]],194711:[[144056]],194712:[[156122]],194713:[[24418]],194714:[[24427]],194715:[[14563]],194716:[[24474]],194717:[[24525]],194718:[[24535]],194719:[[24569]],194720:[[24705]],194721:[[14650]],194722:[[14620]],194723:[[24724]],194724:[[141012]],194725:[[24775]],194726:[[24904]],194727:[[24908]],194728:[[24910]],194729:[[24908]],194730:[[24954]],194731:[[24974]],194732:[[25010]],194733:[[24996]],194734:[[25007]],194735:[[25054]],194736:[[25074]],194737:[[25078]],194738:[[25104]],194739:[[25115]],194740:[[25181]],194741:[[25265]],194742:[[25300]],194743:[[25424]],194744:[[142092]],194745:[[25405]],194746:[[25340]],194747:[[25448]],194748:[[25475]],194749:[[25572]],194750:[[142321]],194751:[[25634]],194752:[[25541]],194753:[[25513]],194754:[[14894]],194755:[[25705]],194756:[[25726]],194757:[[25757]],194758:[[25719]],194759:[[14956]],194760:[[25935]],194761:[[25964]],194762:[[143370]],194763:[[26083]],194764:[[26360]],194765:[[26185]],194766:[[15129]],194767:[[26257]],194768:[[15112]],194769:[[15076]],194770:[[20882]],194771:[[20885]],194772:[[26368]],194773:[[26268]],194774:[[32941]],194775:[[17369]],194776:[[26391]],194777:[[26395]],194778:[[26401]],194779:[[26462]],194780:[[26451]],194781:[[144323]],194782:[[15177]],194783:[[26618]],194784:[[26501]],194785:[[26706]],194786:[[26757]],194787:[[144493]],194788:[[26766]],194789:[[26655]],194790:[[26900]],194791:[[15261]],194792:[[26946]],194793:[[27043]],194794:[[27114]],194795:[[27304]],194796:[[145059]],194797:[[27355]],194798:[[15384]],194799:[[27425]],194800:[[145575]],194801:[[27476]],194802:[[15438]],194803:[[27506]],194804:[[27551]],194805:[[27578]],194806:[[27579]],194807:[[146061]],194808:[[138507]],194809:[[146170]],194810:[[27726]],194811:[[146620]],194812:[[27839]],194813:[[27853]],194814:[[27751]],194815:[[27926]]},63744:{63744:[[35912]],63745:[[26356]],63746:[[36554]],63747:[[36040]],63748:[[28369]],63749:[[20018]],63750:[[21477]],63751:[[40860]],63752:[[40860]],63753:[[22865]],63754:[[37329]],63755:[[21895]],63756:[[22856]],63757:[[25078]],63758:[[30313]],63759:[[32645]],63760:[[34367]],63761:[[34746]],63762:[[35064]],63763:[[37007]],63764:[[27138]],63765:[[27931]],63766:[[28889]],63767:[[29662]],63768:[[33853]],63769:[[37226]],63770:[[39409]],63771:[[20098]],63772:[[21365]],63773:[[27396]],63774:[[29211]],63775:[[34349]],63776:[[40478]],63777:[[23888]],63778:[[28651]],63779:[[34253]],63780:[[35172]],63781:[[25289]],63782:[[33240]],63783:[[34847]],63784:[[24266]],63785:[[26391]],63786:[[28010]],63787:[[29436]],63788:[[37070]],63789:[[20358]],63790:[[20919]],63791:[[21214]],63792:[[25796]],63793:[[27347]],63794:[[29200]],63795:[[30439]],63796:[[32769]],63797:[[34310]],63798:[[34396]],63799:[[36335]],63800:[[38706]],63801:[[39791]],63802:[[40442]],63803:[[30860]],63804:[[31103]],63805:[[32160]],63806:[[33737]],63807:[[37636]],63808:[[40575]],63809:[[35542]],63810:[[22751]],63811:[[24324]],63812:[[31840]],63813:[[32894]],63814:[[29282]],63815:[[30922]],63816:[[36034]],63817:[[38647]],63818:[[22744]],63819:[[23650]],63820:[[27155]],63821:[[28122]],63822:[[28431]],63823:[[32047]],63824:[[32311]],63825:[[38475]],63826:[[21202]],63827:[[32907]],63828:[[20956]],63829:[[20940]],63830:[[31260]],63831:[[32190]],63832:[[33777]],63833:[[38517]],63834:[[35712]],63835:[[25295]],63836:[[27138]],63837:[[35582]],63838:[[20025]],63839:[[23527]],63840:[[24594]],63841:[[29575]],63842:[[30064]],63843:[[21271]],63844:[[30971]],63845:[[20415]],63846:[[24489]],63847:[[19981]],63848:[[27852]],63849:[[25976]],63850:[[32034]],63851:[[21443]],63852:[[22622]],63853:[[30465]],63854:[[33865]],63855:[[35498]],63856:[[27578]],63857:[[36784]],63858:[[27784]],63859:[[25342]],63860:[[33509]],63861:[[25504]],63862:[[30053]],63863:[[20142]],63864:[[20841]],63865:[[20937]],63866:[[26753]],63867:[[31975]],63868:[[33391]],63869:[[35538]],63870:[[37327]],63871:[[21237]],63872:[[21570]],63873:[[22899]],63874:[[24300]],63875:[[26053]],63876:[[28670]],63877:[[31018]],63878:[[38317]],63879:[[39530]],63880:[[40599]],63881:[[40654]],63882:[[21147]],63883:[[26310]],63884:[[27511]],63885:[[36706]],63886:[[24180]],63887:[[24976]],63888:[[25088]],63889:[[25754]],63890:[[28451]],63891:[[29001]],63892:[[29833]],63893:[[31178]],63894:[[32244]],63895:[[32879]],63896:[[36646]],63897:[[34030]],63898:[[36899]],63899:[[37706]],63900:[[21015]],63901:[[21155]],63902:[[21693]],63903:[[28872]],63904:[[35010]],63905:[[35498]],63906:[[24265]],63907:[[24565]],63908:[[25467]],63909:[[27566]],63910:[[31806]],63911:[[29557]],63912:[[20196]],63913:[[22265]],63914:[[23527]],63915:[[23994]],63916:[[24604]],63917:[[29618]],63918:[[29801]],63919:[[32666]],63920:[[32838]],63921:[[37428]],63922:[[38646]],63923:[[38728]],63924:[[38936]],63925:[[20363]],63926:[[31150]],63927:[[37300]],63928:[[38584]],63929:[[24801]],63930:[[20102]],63931:[[20698]],63932:[[23534]],63933:[[23615]],63934:[[26009]],63935:[[27138]],63936:[[29134]],63937:[[30274]],63938:[[34044]],63939:[[36988]],63940:[[40845]],63941:[[26248]],63942:[[38446]],63943:[[21129]],63944:[[26491]],63945:[[26611]],63946:[[27969]],63947:[[28316]],63948:[[29705]],63949:[[30041]],63950:[[30827]],63951:[[32016]],63952:[[39006]],63953:[[20845]],63954:[[25134]],63955:[[38520]],63956:[[20523]],63957:[[23833]],63958:[[28138]],63959:[[36650]],63960:[[24459]],63961:[[24900]],63962:[[26647]],63963:[[29575]],63964:[[38534]],63965:[[21033]],63966:[[21519]],63967:[[23653]],63968:[[26131]],63969:[[26446]],63970:[[26792]],63971:[[27877]],63972:[[29702]],63973:[[30178]],63974:[[32633]],63975:[[35023]],63976:[[35041]],63977:[[37324]],63978:[[38626]],63979:[[21311]],63980:[[28346]],63981:[[21533]],63982:[[29136]],63983:[[29848]],63984:[[34298]],63985:[[38563]],63986:[[40023]],63987:[[40607]],63988:[[26519]],63989:[[28107]],63990:[[33256]],63991:[[31435]],63992:[[31520]],63993:[[31890]],63994:[[29376]],63995:[[28825]],63996:[[35672]],63997:[[20160]],63998:[[33590]],63999:[[21050]],194816:[[27966]],194817:[[28023]],194818:[[27969]],194819:[[28009]],194820:[[28024]],194821:[[28037]],194822:[[146718]],194823:[[27956]],194824:[[28207]],194825:[[28270]],194826:[[15667]],194827:[[28363]],194828:[[28359]],194829:[[147153]],194830:[[28153]],194831:[[28526]],194832:[[147294]],194833:[[147342]],194834:[[28614]],194835:[[28729]],194836:[[28702]],194837:[[28699]],194838:[[15766]],194839:[[28746]],194840:[[28797]],194841:[[28791]],194842:[[28845]],194843:[[132389]],194844:[[28997]],194845:[[148067]],194846:[[29084]],194847:[[148395]],194848:[[29224]],194849:[[29237]],194850:[[29264]],194851:[[149e3]],194852:[[29312]],194853:[[29333]],194854:[[149301]],194855:[[149524]],194856:[[29562]],194857:[[29579]],194858:[[16044]],194859:[[29605]],194860:[[16056]],194861:[[16056]],194862:[[29767]],194863:[[29788]],194864:[[29809]],194865:[[29829]],194866:[[29898]],194867:[[16155]],194868:[[29988]],194869:[[150582]],194870:[[30014]],194871:[[150674]],194872:[[30064]],194873:[[139679]],194874:[[30224]],194875:[[151457]],194876:[[151480]],194877:[[151620]],194878:[[16380]],194879:[[16392]],194880:[[30452]],194881:[[151795]],194882:[[151794]],194883:[[151833]],194884:[[151859]],194885:[[30494]],194886:[[30495]],194887:[[30495]],194888:[[30538]],194889:[[16441]],194890:[[30603]],194891:[[16454]],194892:[[16534]],194893:[[152605]],194894:[[30798]],194895:[[30860]],194896:[[30924]],194897:[[16611]],194898:[[153126]],194899:[[31062]],194900:[[153242]],194901:[[153285]],194902:[[31119]],194903:[[31211]],194904:[[16687]],194905:[[31296]],194906:[[31306]],194907:[[31311]],194908:[[153980]],194909:[[154279]],194910:[[154279]],194911:[[31470]],194912:[[16898]],194913:[[154539]],194914:[[31686]],194915:[[31689]],194916:[[16935]],194917:[[154752]],194918:[[31954]],194919:[[17056]],194920:[[31976]],194921:[[31971]],194922:[[32e3]],194923:[[155526]],194924:[[32099]],194925:[[17153]],194926:[[32199]],194927:[[32258]],194928:[[32325]],194929:[[17204]],194930:[[156200]],194931:[[156231]],194932:[[17241]],194933:[[156377]],194934:[[32634]],194935:[[156478]],194936:[[32661]],194937:[[32762]],194938:[[32773]],194939:[[156890]],194940:[[156963]],194941:[[32864]],194942:[[157096]],194943:[[32880]],194944:[[144223]],194945:[[17365]],194946:[[32946]],194947:[[33027]],194948:[[17419]],194949:[[33086]],194950:[[23221]],194951:[[157607]],194952:[[157621]],194953:[[144275]],194954:[[144284]],194955:[[33281]],194956:[[33284]],194957:[[36766]],194958:[[17515]],194959:[[33425]],194960:[[33419]],194961:[[33437]],194962:[[21171]],194963:[[33457]],194964:[[33459]],194965:[[33469]],194966:[[33510]],194967:[[158524]],194968:[[33509]],194969:[[33565]],194970:[[33635]],194971:[[33709]],194972:[[33571]],194973:[[33725]],194974:[[33767]],194975:[[33879]],194976:[[33619]],194977:[[33738]],194978:[[33740]],194979:[[33756]],194980:[[158774]],194981:[[159083]],194982:[[158933]],194983:[[17707]],194984:[[34033]],194985:[[34035]],194986:[[34070]],194987:[[160714]],194988:[[34148]],194989:[[159532]],194990:[[17757]],194991:[[17761]],194992:[[159665]],194993:[[159954]],194994:[[17771]],194995:[[34384]],194996:[[34396]],194997:[[34407]],194998:[[34409]],194999:[[34473]],195e3:[[34440]],195001:[[34574]],195002:[[34530]],195003:[[34681]],195004:[[34600]],195005:[[34667]],195006:[[34694]],195007:[[17879]],195008:[[34785]],195009:[[34817]],195010:[[17913]],195011:[[34912]],195012:[[34915]],195013:[[161383]],195014:[[35031]],195015:[[35038]],195016:[[17973]],195017:[[35066]],195018:[[13499]],195019:[[161966]],195020:[[162150]],195021:[[18110]],195022:[[18119]],195023:[[35488]],195024:[[35565]],195025:[[35722]],195026:[[35925]],195027:[[162984]],195028:[[36011]],195029:[[36033]],195030:[[36123]],195031:[[36215]],195032:[[163631]],195033:[[133124]],195034:[[36299]],195035:[[36284]],195036:[[36336]],195037:[[133342]],195038:[[36564]],195039:[[36664]],195040:[[165330]],195041:[[165357]],195042:[[37012]],195043:[[37105]],195044:[[37137]],195045:[[165678]],195046:[[37147]],195047:[[37432]],195048:[[37591]],195049:[[37592]],195050:[[37500]],195051:[[37881]],195052:[[37909]],195053:[[166906]],195054:[[38283]],195055:[[18837]],195056:[[38327]],195057:[[167287]],195058:[[18918]],195059:[[38595]],195060:[[23986]],195061:[[38691]],195062:[[168261]],195063:[[168474]],195064:[[19054]],195065:[[19062]],195066:[[38880]],195067:[[168970]],195068:[[19122]],195069:[[169110]],195070:[[38923]],195071:[[38923]]},64e3:{64e3:[[20999]],64001:[[24230]],64002:[[25299]],64003:[[31958]],64004:[[23429]],64005:[[27934]],64006:[[26292]],64007:[[36667]],64008:[[34892]],64009:[[38477]],64010:[[35211]],64011:[[24275]],64012:[[20800]],64013:[[21952]],64016:[[22618]],64018:[[26228]],64021:[[20958]],64022:[[29482]],64023:[[30410]],64024:[[31036]],64025:[[31070]],64026:[[31077]],64027:[[31119]],64028:[[38742]],64029:[[31934]],64030:[[32701]],64032:[[34322]],64034:[[35576]],64037:[[36920]],64038:[[37117]],64042:[[39151]],64043:[[39164]],64044:[[39208]],64045:[[40372]],64046:[[37086]],64047:[[38583]],64048:[[20398]],64049:[[20711]],64050:[[20813]],64051:[[21193]],64052:[[21220]],64053:[[21329]],64054:[[21917]],64055:[[22022]],64056:[[22120]],64057:[[22592]],64058:[[22696]],64059:[[23652]],64060:[[23662]],64061:[[24724]],64062:[[24936]],64063:[[24974]],64064:[[25074]],64065:[[25935]],64066:[[26082]],64067:[[26257]],64068:[[26757]],64069:[[28023]],64070:[[28186]],64071:[[28450]],64072:[[29038]],64073:[[29227]],64074:[[29730]],64075:[[30865]],64076:[[31038]],64077:[[31049]],64078:[[31048]],64079:[[31056]],64080:[[31062]],64081:[[31069]],64082:[[31117]],64083:[[31118]],64084:[[31296]],64085:[[31361]],64086:[[31680]],64087:[[32244]],64088:[[32265]],64089:[[32321]],64090:[[32626]],64091:[[32773]],64092:[[33261]],64093:[[33401]],64094:[[33401]],64095:[[33879]],64096:[[35088]],64097:[[35222]],64098:[[35585]],64099:[[35641]],64100:[[36051]],64101:[[36104]],64102:[[36790]],64103:[[36920]],64104:[[38627]],64105:[[38911]],64106:[[38971]],64107:[[24693]],64108:[[148206]],64109:[[33304]],64112:[[20006]],64113:[[20917]],64114:[[20840]],64115:[[20352]],64116:[[20805]],64117:[[20864]],64118:[[21191]],64119:[[21242]],64120:[[21917]],64121:[[21845]],64122:[[21913]],64123:[[21986]],64124:[[22618]],64125:[[22707]],64126:[[22852]],64127:[[22868]],64128:[[23138]],64129:[[23336]],64130:[[24274]],64131:[[24281]],64132:[[24425]],64133:[[24493]],64134:[[24792]],64135:[[24910]],64136:[[24840]],64137:[[24974]],64138:[[24928]],64139:[[25074]],64140:[[25140]],64141:[[25540]],64142:[[25628]],64143:[[25682]],64144:[[25942]],64145:[[26228]],64146:[[26391]],64147:[[26395]],64148:[[26454]],64149:[[27513]],64150:[[27578]],64151:[[27969]],64152:[[28379]],64153:[[28363]],64154:[[28450]],64155:[[28702]],64156:[[29038]],64157:[[30631]],64158:[[29237]],64159:[[29359]],64160:[[29482]],64161:[[29809]],64162:[[29958]],64163:[[30011]],64164:[[30237]],64165:[[30239]],64166:[[30410]],64167:[[30427]],64168:[[30452]],64169:[[30538]],64170:[[30528]],64171:[[30924]],64172:[[31409]],64173:[[31680]],64174:[[31867]],64175:[[32091]],64176:[[32244]],64177:[[32574]],64178:[[32773]],64179:[[33618]],64180:[[33775]],64181:[[34681]],64182:[[35137]],64183:[[35206]],64184:[[35222]],64185:[[35519]],64186:[[35576]],64187:[[35531]],64188:[[35585]],64189:[[35582]],64190:[[35565]],64191:[[35641]],64192:[[35722]],64193:[[36104]],64194:[[36664]],64195:[[36978]],64196:[[37273]],64197:[[37494]],64198:[[38524]],64199:[[38627]],64200:[[38742]],64201:[[38875]],64202:[[38911]],64203:[[38923]],64204:[[38971]],64205:[[39698]],64206:[[40860]],64207:[[141386]],64208:[[141380]],64209:[[144341]],64210:[[15261]],64211:[[16408]],64212:[[16441]],64213:[[152137]],64214:[[154832]],64215:[[163539]],64216:[[40771]],64217:[[40846]],195072:[[38953]],195073:[[169398]],195074:[[39138]],195075:[[19251]],195076:[[39209]],195077:[[39335]],195078:[[39362]],195079:[[39422]],195080:[[19406]],195081:[[170800]],195082:[[39698]],195083:[[4e4]],195084:[[40189]],195085:[[19662]],195086:[[19693]],195087:[[40295]],195088:[[172238]],195089:[[19704]],195090:[[172293]],195091:[[172558]],195092:[[172689]],195093:[[40635]],195094:[[19798]],195095:[[40697]],195096:[[40702]],195097:[[40709]],195098:[[40719]],195099:[[40726]],195100:[[40763]],195101:[[173568]]},64256:{64256:[[102,102],256],64257:[[102,105],256],64258:[[102,108],256],64259:[[102,102,105],256],64260:[[102,102,108],256],64261:[[383,116],256],64262:[[115,116],256],64275:[[1396,1398],256],64276:[[1396,1381],256],64277:[[1396,1387],256],64278:[[1406,1398],256],64279:[[1396,1389],256],64285:[[1497,1460],512],64286:[,26],64287:[[1522,1463],512],64288:[[1506],256],64289:[[1488],256],64290:[[1491],256],64291:[[1492],256],64292:[[1499],256],64293:[[1500],256],64294:[[1501],256],64295:[[1512],256],64296:[[1514],256],64297:[[43],256],64298:[[1513,1473],512],64299:[[1513,1474],512],64300:[[64329,1473],512],64301:[[64329,1474],512],64302:[[1488,1463],512],64303:[[1488,1464],512],64304:[[1488,1468],512],64305:[[1489,1468],512],64306:[[1490,1468],512],64307:[[1491,1468],512],64308:[[1492,1468],512],64309:[[1493,1468],512],64310:[[1494,1468],512],64312:[[1496,1468],512],64313:[[1497,1468],512],64314:[[1498,1468],512],64315:[[1499,1468],512],64316:[[1500,1468],512],64318:[[1502,1468],512],64320:[[1504,1468],512],64321:[[1505,1468],512],64323:[[1507,1468],512],64324:[[1508,1468],512],64326:[[1510,1468],512],64327:[[1511,1468],512],64328:[[1512,1468],512],64329:[[1513,1468],512],64330:[[1514,1468],512],64331:[[1493,1465],512],64332:[[1489,1471],512],64333:[[1499,1471],512],64334:[[1508,1471],512],64335:[[1488,1500],256],64336:[[1649],256],64337:[[1649],256],64338:[[1659],256],64339:[[1659],256],64340:[[1659],256],64341:[[1659],256],64342:[[1662],256],64343:[[1662],256],64344:[[1662],256],64345:[[1662],256],64346:[[1664],256],64347:[[1664],256],64348:[[1664],256],64349:[[1664],256],64350:[[1658],256],64351:[[1658],256],64352:[[1658],256],64353:[[1658],256],64354:[[1663],256],64355:[[1663],256],64356:[[1663],256],64357:[[1663],256],64358:[[1657],256],64359:[[1657],256],64360:[[1657],256],64361:[[1657],256],64362:[[1700],256],64363:[[1700],256],64364:[[1700],256],64365:[[1700],256],64366:[[1702],256],64367:[[1702],256],64368:[[1702],256],64369:[[1702],256],64370:[[1668],256],64371:[[1668],256],64372:[[1668],256],64373:[[1668],256],64374:[[1667],256],64375:[[1667],256],64376:[[1667],256],64377:[[1667],256],64378:[[1670],256],64379:[[1670],256],64380:[[1670],256],64381:[[1670],256],64382:[[1671],256],64383:[[1671],256],64384:[[1671],256],64385:[[1671],256],64386:[[1677],256],64387:[[1677],256],64388:[[1676],256],64389:[[1676],256],64390:[[1678],256],64391:[[1678],256],64392:[[1672],256],64393:[[1672],256],64394:[[1688],256],64395:[[1688],256],64396:[[1681],256],64397:[[1681],256],64398:[[1705],256],64399:[[1705],256],64400:[[1705],256],64401:[[1705],256],64402:[[1711],256],64403:[[1711],256],64404:[[1711],256],64405:[[1711],256],64406:[[1715],256],64407:[[1715],256],64408:[[1715],256],64409:[[1715],256],64410:[[1713],256],64411:[[1713],256],64412:[[1713],256],64413:[[1713],256],64414:[[1722],256],64415:[[1722],256],64416:[[1723],256],64417:[[1723],256],64418:[[1723],256],64419:[[1723],256],64420:[[1728],256],64421:[[1728],256],64422:[[1729],256],64423:[[1729],256],64424:[[1729],256],64425:[[1729],256],64426:[[1726],256],64427:[[1726],256],64428:[[1726],256],64429:[[1726],256],64430:[[1746],256],64431:[[1746],256],64432:[[1747],256],64433:[[1747],256],64467:[[1709],256],64468:[[1709],256],64469:[[1709],256],64470:[[1709],256],64471:[[1735],256],64472:[[1735],256],64473:[[1734],256],64474:[[1734],256],64475:[[1736],256],64476:[[1736],256],64477:[[1655],256],64478:[[1739],256],64479:[[1739],256],64480:[[1733],256],64481:[[1733],256],64482:[[1737],256],64483:[[1737],256],64484:[[1744],256],64485:[[1744],256],64486:[[1744],256],64487:[[1744],256],64488:[[1609],256],64489:[[1609],256],64490:[[1574,1575],256],64491:[[1574,1575],256],64492:[[1574,1749],256],64493:[[1574,1749],256],64494:[[1574,1608],256],64495:[[1574,1608],256],64496:[[1574,1735],256],64497:[[1574,1735],256],64498:[[1574,1734],256],64499:[[1574,1734],256],64500:[[1574,1736],256],64501:[[1574,1736],256],64502:[[1574,1744],256],64503:[[1574,1744],256],64504:[[1574,1744],256],64505:[[1574,1609],256],64506:[[1574,1609],256],64507:[[1574,1609],256],64508:[[1740],256],64509:[[1740],256],64510:[[1740],256],64511:[[1740],256]},64512:{64512:[[1574,1580],256],64513:[[1574,1581],256],64514:[[1574,1605],256],64515:[[1574,1609],256],64516:[[1574,1610],256],64517:[[1576,1580],256],64518:[[1576,1581],256],64519:[[1576,1582],256],64520:[[1576,1605],256],64521:[[1576,1609],256],64522:[[1576,1610],256],64523:[[1578,1580],256],64524:[[1578,1581],256],64525:[[1578,1582],256],64526:[[1578,1605],256],64527:[[1578,1609],256],64528:[[1578,1610],256],64529:[[1579,1580],256],64530:[[1579,1605],256],64531:[[1579,1609],256],64532:[[1579,1610],256],64533:[[1580,1581],256],64534:[[1580,1605],256],64535:[[1581,1580],256],64536:[[1581,1605],256],64537:[[1582,1580],256],64538:[[1582,1581],256],64539:[[1582,1605],256],64540:[[1587,1580],256],64541:[[1587,1581],256],64542:[[1587,1582],256],64543:[[1587,1605],256],64544:[[1589,1581],256],64545:[[1589,1605],256],64546:[[1590,1580],256],64547:[[1590,1581],256],64548:[[1590,1582],256],64549:[[1590,1605],256],64550:[[1591,1581],256],64551:[[1591,1605],256],64552:[[1592,1605],256],64553:[[1593,1580],256],64554:[[1593,1605],256],64555:[[1594,1580],256],64556:[[1594,1605],256],64557:[[1601,1580],256],64558:[[1601,1581],256],64559:[[1601,1582],256],64560:[[1601,1605],256],64561:[[1601,1609],256],64562:[[1601,1610],256],64563:[[1602,1581],256],64564:[[1602,1605],256],64565:[[1602,1609],256],64566:[[1602,1610],256],64567:[[1603,1575],256],64568:[[1603,1580],256],64569:[[1603,1581],256],64570:[[1603,1582],256],64571:[[1603,1604],256],64572:[[1603,1605],256],64573:[[1603,1609],256],64574:[[1603,1610],256],64575:[[1604,1580],256],64576:[[1604,1581],256],64577:[[1604,1582],256],64578:[[1604,1605],256],64579:[[1604,1609],256],64580:[[1604,1610],256],64581:[[1605,1580],256],64582:[[1605,1581],256],64583:[[1605,1582],256],64584:[[1605,1605],256],64585:[[1605,1609],256],64586:[[1605,1610],256],64587:[[1606,1580],256],64588:[[1606,1581],256],64589:[[1606,1582],256],64590:[[1606,1605],256],64591:[[1606,1609],256],64592:[[1606,1610],256],64593:[[1607,1580],256],64594:[[1607,1605],256],64595:[[1607,1609],256],64596:[[1607,1610],256],64597:[[1610,1580],256],64598:[[1610,1581],256],64599:[[1610,1582],256],64600:[[1610,1605],256],64601:[[1610,1609],256],64602:[[1610,1610],256],64603:[[1584,1648],256],64604:[[1585,1648],256],64605:[[1609,1648],256],64606:[[32,1612,1617],256],64607:[[32,1613,1617],256],64608:[[32,1614,1617],256],64609:[[32,1615,1617],256],64610:[[32,1616,1617],256],64611:[[32,1617,1648],256],64612:[[1574,1585],256],64613:[[1574,1586],256],64614:[[1574,1605],256],64615:[[1574,1606],256],64616:[[1574,1609],256],64617:[[1574,1610],256],64618:[[1576,1585],256],64619:[[1576,1586],256],64620:[[1576,1605],256],64621:[[1576,1606],256],64622:[[1576,1609],256],64623:[[1576,1610],256],64624:[[1578,1585],256],64625:[[1578,1586],256],64626:[[1578,1605],256],64627:[[1578,1606],256],64628:[[1578,1609],256],64629:[[1578,1610],256],64630:[[1579,1585],256],64631:[[1579,1586],256],64632:[[1579,1605],256],64633:[[1579,1606],256],64634:[[1579,1609],256],64635:[[1579,1610],256],64636:[[1601,1609],256],64637:[[1601,1610],256],64638:[[1602,1609],256],64639:[[1602,1610],256],64640:[[1603,1575],256],64641:[[1603,1604],256],64642:[[1603,1605],256],64643:[[1603,1609],256],64644:[[1603,1610],256],64645:[[1604,1605],256],64646:[[1604,1609],256],64647:[[1604,1610],256],64648:[[1605,1575],256],64649:[[1605,1605],256],64650:[[1606,1585],256],64651:[[1606,1586],256],64652:[[1606,1605],256],64653:[[1606,1606],256],64654:[[1606,1609],256],64655:[[1606,1610],256],64656:[[1609,1648],256],64657:[[1610,1585],256],64658:[[1610,1586],256],64659:[[1610,1605],256],64660:[[1610,1606],256],64661:[[1610,1609],256],64662:[[1610,1610],256],64663:[[1574,1580],256],64664:[[1574,1581],256],64665:[[1574,1582],256],64666:[[1574,1605],256],64667:[[1574,1607],256],64668:[[1576,1580],256],64669:[[1576,1581],256],64670:[[1576,1582],256],64671:[[1576,1605],256],64672:[[1576,1607],256],64673:[[1578,1580],256],64674:[[1578,1581],256],64675:[[1578,1582],256],64676:[[1578,1605],256],64677:[[1578,1607],256],64678:[[1579,1605],256],64679:[[1580,1581],256],64680:[[1580,1605],256],64681:[[1581,1580],256],64682:[[1581,1605],256],64683:[[1582,1580],256],64684:[[1582,1605],256],64685:[[1587,1580],256],64686:[[1587,1581],256],64687:[[1587,1582],256],64688:[[1587,1605],256],64689:[[1589,1581],256],64690:[[1589,1582],256],64691:[[1589,1605],256],64692:[[1590,1580],256],64693:[[1590,1581],256],64694:[[1590,1582],256],64695:[[1590,1605],256],64696:[[1591,1581],256],64697:[[1592,1605],256],64698:[[1593,1580],256],64699:[[1593,1605],256],64700:[[1594,1580],256],64701:[[1594,1605],256],64702:[[1601,1580],256],64703:[[1601,1581],256],64704:[[1601,1582],256],64705:[[1601,1605],256],64706:[[1602,1581],256],64707:[[1602,1605],256],64708:[[1603,1580],256],64709:[[1603,1581],256],64710:[[1603,1582],256],64711:[[1603,1604],256],64712:[[1603,1605],256],64713:[[1604,1580],256],64714:[[1604,1581],256],64715:[[1604,1582],256],64716:[[1604,1605],256],64717:[[1604,1607],256],64718:[[1605,1580],256],64719:[[1605,1581],256],64720:[[1605,1582],256],64721:[[1605,1605],256],64722:[[1606,1580],256],64723:[[1606,1581],256],64724:[[1606,1582],256],64725:[[1606,1605],256],64726:[[1606,1607],256],64727:[[1607,1580],256],64728:[[1607,1605],256],64729:[[1607,1648],256],64730:[[1610,1580],256],64731:[[1610,1581],256],64732:[[1610,1582],256],64733:[[1610,1605],256],64734:[[1610,1607],256],64735:[[1574,1605],256],64736:[[1574,1607],256],64737:[[1576,1605],256],64738:[[1576,1607],256],64739:[[1578,1605],256],64740:[[1578,1607],256],64741:[[1579,1605],256],64742:[[1579,1607],256],64743:[[1587,1605],256],64744:[[1587,1607],256],64745:[[1588,1605],256],64746:[[1588,1607],256],64747:[[1603,1604],256],64748:[[1603,1605],256],64749:[[1604,1605],256],64750:[[1606,1605],256],64751:[[1606,1607],256],64752:[[1610,1605],256],64753:[[1610,1607],256],64754:[[1600,1614,1617],256],64755:[[1600,1615,1617],256],64756:[[1600,1616,1617],256],64757:[[1591,1609],256],64758:[[1591,1610],256],64759:[[1593,1609],256],64760:[[1593,1610],256],64761:[[1594,1609],256],64762:[[1594,1610],256],64763:[[1587,1609],256],64764:[[1587,1610],256],64765:[[1588,1609],256],64766:[[1588,1610],256],64767:[[1581,1609],256]},64768:{64768:[[1581,1610],256],64769:[[1580,1609],256],64770:[[1580,1610],256],64771:[[1582,1609],256],64772:[[1582,1610],256],64773:[[1589,1609],256],64774:[[1589,1610],256],64775:[[1590,1609],256],64776:[[1590,1610],256],64777:[[1588,1580],256],64778:[[1588,1581],256],64779:[[1588,1582],256],64780:[[1588,1605],256],64781:[[1588,1585],256],64782:[[1587,1585],256],64783:[[1589,1585],256],64784:[[1590,1585],256],64785:[[1591,1609],256],64786:[[1591,1610],256],64787:[[1593,1609],256],64788:[[1593,1610],256],64789:[[1594,1609],256],64790:[[1594,1610],256],64791:[[1587,1609],256],64792:[[1587,1610],256],64793:[[1588,1609],256],64794:[[1588,1610],256],64795:[[1581,1609],256],64796:[[1581,1610],256],64797:[[1580,1609],256],64798:[[1580,1610],256],64799:[[1582,1609],256],64800:[[1582,1610],256],64801:[[1589,1609],256],64802:[[1589,1610],256],64803:[[1590,1609],256],64804:[[1590,1610],256],64805:[[1588,1580],256],64806:[[1588,1581],256],64807:[[1588,1582],256],64808:[[1588,1605],256],64809:[[1588,1585],256],64810:[[1587,1585],256],64811:[[1589,1585],256],64812:[[1590,1585],256],64813:[[1588,1580],256],64814:[[1588,1581],256],64815:[[1588,1582],256],64816:[[1588,1605],256],64817:[[1587,1607],256],64818:[[1588,1607],256],64819:[[1591,1605],256],64820:[[1587,1580],256],64821:[[1587,1581],256],64822:[[1587,1582],256],64823:[[1588,1580],256],64824:[[1588,1581],256],64825:[[1588,1582],256],64826:[[1591,1605],256],64827:[[1592,1605],256],64828:[[1575,1611],256],64829:[[1575,1611],256],64848:[[1578,1580,1605],256],64849:[[1578,1581,1580],256],64850:[[1578,1581,1580],256],64851:[[1578,1581,1605],256],64852:[[1578,1582,1605],256],64853:[[1578,1605,1580],256],64854:[[1578,1605,1581],256],64855:[[1578,1605,1582],256],64856:[[1580,1605,1581],256],64857:[[1580,1605,1581],256],64858:[[1581,1605,1610],256],64859:[[1581,1605,1609],256],64860:[[1587,1581,1580],256],64861:[[1587,1580,1581],256],64862:[[1587,1580,1609],256],64863:[[1587,1605,1581],256],64864:[[1587,1605,1581],256],64865:[[1587,1605,1580],256],64866:[[1587,1605,1605],256],64867:[[1587,1605,1605],256],64868:[[1589,1581,1581],256],64869:[[1589,1581,1581],256],64870:[[1589,1605,1605],256],64871:[[1588,1581,1605],256],64872:[[1588,1581,1605],256],64873:[[1588,1580,1610],256],64874:[[1588,1605,1582],256],64875:[[1588,1605,1582],256],64876:[[1588,1605,1605],256],64877:[[1588,1605,1605],256],64878:[[1590,1581,1609],256],64879:[[1590,1582,1605],256],64880:[[1590,1582,1605],256],64881:[[1591,1605,1581],256],64882:[[1591,1605,1581],256],64883:[[1591,1605,1605],256],64884:[[1591,1605,1610],256],64885:[[1593,1580,1605],256],64886:[[1593,1605,1605],256],64887:[[1593,1605,1605],256],64888:[[1593,1605,1609],256],64889:[[1594,1605,1605],256],64890:[[1594,1605,1610],256],64891:[[1594,1605,1609],256],64892:[[1601,1582,1605],256],64893:[[1601,1582,1605],256],64894:[[1602,1605,1581],256],64895:[[1602,1605,1605],256],64896:[[1604,1581,1605],256],64897:[[1604,1581,1610],256],64898:[[1604,1581,1609],256],64899:[[1604,1580,1580],256],64900:[[1604,1580,1580],256],64901:[[1604,1582,1605],256],64902:[[1604,1582,1605],256],64903:[[1604,1605,1581],256],64904:[[1604,1605,1581],256],64905:[[1605,1581,1580],256],64906:[[1605,1581,1605],256],64907:[[1605,1581,1610],256],64908:[[1605,1580,1581],256],64909:[[1605,1580,1605],256],64910:[[1605,1582,1580],256],64911:[[1605,1582,1605],256],64914:[[1605,1580,1582],256],64915:[[1607,1605,1580],256],64916:[[1607,1605,1605],256],64917:[[1606,1581,1605],256],64918:[[1606,1581,1609],256],64919:[[1606,1580,1605],256],64920:[[1606,1580,1605],256],64921:[[1606,1580,1609],256],64922:[[1606,1605,1610],256],64923:[[1606,1605,1609],256],64924:[[1610,1605,1605],256],64925:[[1610,1605,1605],256],64926:[[1576,1582,1610],256],64927:[[1578,1580,1610],256],64928:[[1578,1580,1609],256],64929:[[1578,1582,1610],256],64930:[[1578,1582,1609],256],64931:[[1578,1605,1610],256],64932:[[1578,1605,1609],256],64933:[[1580,1605,1610],256],64934:[[1580,1581,1609],256],64935:[[1580,1605,1609],256],64936:[[1587,1582,1609],256],64937:[[1589,1581,1610],256],64938:[[1588,1581,1610],256],64939:[[1590,1581,1610],256],64940:[[1604,1580,1610],256],64941:[[1604,1605,1610],256],64942:[[1610,1581,1610],256],64943:[[1610,1580,1610],256],64944:[[1610,1605,1610],256],64945:[[1605,1605,1610],256],64946:[[1602,1605,1610],256],64947:[[1606,1581,1610],256],64948:[[1602,1605,1581],256],64949:[[1604,1581,1605],256],64950:[[1593,1605,1610],256],64951:[[1603,1605,1610],256],64952:[[1606,1580,1581],256],64953:[[1605,1582,1610],256],64954:[[1604,1580,1605],256],64955:[[1603,1605,1605],256],64956:[[1604,1580,1605],256],64957:[[1606,1580,1581],256],64958:[[1580,1581,1610],256],64959:[[1581,1580,1610],256],64960:[[1605,1580,1610],256],64961:[[1601,1605,1610],256],64962:[[1576,1581,1610],256],64963:[[1603,1605,1605],256],64964:[[1593,1580,1605],256],64965:[[1589,1605,1605],256],64966:[[1587,1582,1610],256],64967:[[1606,1580,1610],256],65008:[[1589,1604,1746],256],65009:[[1602,1604,1746],256],65010:[[1575,1604,1604,1607],256],65011:[[1575,1603,1576,1585],256],65012:[[1605,1581,1605,1583],256],65013:[[1589,1604,1593,1605],256],65014:[[1585,1587,1608,1604],256],65015:[[1593,1604,1610,1607],256],65016:[[1608,1587,1604,1605],256],65017:[[1589,1604,1609],256],65018:[[1589,1604,1609,32,1575,1604,1604,1607,32,1593,1604,1610,1607,32,1608,1587,1604,1605],256],65019:[[1580,1604,32,1580,1604,1575,1604,1607],256],65020:[[1585,1740,1575,1604],256]},65024:{65040:[[44],256],65041:[[12289],256],65042:[[12290],256],65043:[[58],256],65044:[[59],256],65045:[[33],256],65046:[[63],256],65047:[[12310],256],65048:[[12311],256],65049:[[8230],256],65056:[,230],65057:[,230],65058:[,230],65059:[,230],65060:[,230],65061:[,230],65062:[,230],65063:[,220],65064:[,220],65065:[,220],65066:[,220],65067:[,220],65068:[,220],65069:[,220],65072:[[8229],256],65073:[[8212],256],65074:[[8211],256],65075:[[95],256],65076:[[95],256],65077:[[40],256],65078:[[41],256],65079:[[123],256],65080:[[125],256],65081:[[12308],256],65082:[[12309],256],65083:[[12304],256],65084:[[12305],256],65085:[[12298],256],65086:[[12299],256],65087:[[12296],256],65088:[[12297],256],65089:[[12300],256],65090:[[12301],256],65091:[[12302],256],65092:[[12303],256],65095:[[91],256],65096:[[93],256],65097:[[8254],256],65098:[[8254],256],65099:[[8254],256],65100:[[8254],256],65101:[[95],256],65102:[[95],256],65103:[[95],256],65104:[[44],256],65105:[[12289],256],65106:[[46],256],65108:[[59],256],65109:[[58],256],65110:[[63],256],65111:[[33],256],65112:[[8212],256],65113:[[40],256],65114:[[41],256],65115:[[123],256],65116:[[125],256],65117:[[12308],256],65118:[[12309],256],65119:[[35],256],65120:[[38],256],65121:[[42],256],65122:[[43],256],65123:[[45],256],65124:[[60],256],65125:[[62],256],65126:[[61],256],65128:[[92],256],65129:[[36],256],65130:[[37],256],65131:[[64],256],65136:[[32,1611],256],65137:[[1600,1611],256],65138:[[32,1612],256],65140:[[32,1613],256],65142:[[32,1614],256],65143:[[1600,1614],256],65144:[[32,1615],256],65145:[[1600,1615],256],65146:[[32,1616],256],65147:[[1600,1616],256],65148:[[32,1617],256],65149:[[1600,1617],256],65150:[[32,1618],256],65151:[[1600,1618],256],65152:[[1569],256],65153:[[1570],256],65154:[[1570],256],65155:[[1571],256],65156:[[1571],256],65157:[[1572],256],65158:[[1572],256],65159:[[1573],256],65160:[[1573],256],65161:[[1574],256],65162:[[1574],256],65163:[[1574],256],65164:[[1574],256],65165:[[1575],256],65166:[[1575],256],65167:[[1576],256],65168:[[1576],256],65169:[[1576],256],65170:[[1576],256],65171:[[1577],256],65172:[[1577],256],65173:[[1578],256],65174:[[1578],256],65175:[[1578],256],65176:[[1578],256],65177:[[1579],256],65178:[[1579],256],65179:[[1579],256],65180:[[1579],256],65181:[[1580],256],65182:[[1580],256],65183:[[1580],256],65184:[[1580],256],65185:[[1581],256],65186:[[1581],256],65187:[[1581],256],65188:[[1581],256],65189:[[1582],256],65190:[[1582],256],65191:[[1582],256],65192:[[1582],256],65193:[[1583],256],65194:[[1583],256],65195:[[1584],256],65196:[[1584],256],65197:[[1585],256],65198:[[1585],256],65199:[[1586],256],65200:[[1586],256],65201:[[1587],256],65202:[[1587],256],65203:[[1587],256],65204:[[1587],256],65205:[[1588],256],65206:[[1588],256],65207:[[1588],256],65208:[[1588],256],65209:[[1589],256],65210:[[1589],256],65211:[[1589],256],65212:[[1589],256],65213:[[1590],256],65214:[[1590],256],65215:[[1590],256],65216:[[1590],256],65217:[[1591],256],65218:[[1591],256],65219:[[1591],256],65220:[[1591],256],65221:[[1592],256],65222:[[1592],256],65223:[[1592],256],65224:[[1592],256],65225:[[1593],256],65226:[[1593],256],65227:[[1593],256],65228:[[1593],256],65229:[[1594],256],65230:[[1594],256],65231:[[1594],256],65232:[[1594],256],65233:[[1601],256],65234:[[1601],256],65235:[[1601],256],65236:[[1601],256],65237:[[1602],256],65238:[[1602],256],65239:[[1602],256],65240:[[1602],256],65241:[[1603],256],65242:[[1603],256],65243:[[1603],256],65244:[[1603],256],65245:[[1604],256],65246:[[1604],256],65247:[[1604],256],65248:[[1604],256],65249:[[1605],256],65250:[[1605],256],65251:[[1605],256],65252:[[1605],256],65253:[[1606],256],65254:[[1606],256],65255:[[1606],256],65256:[[1606],256],65257:[[1607],256],65258:[[1607],256],65259:[[1607],256],65260:[[1607],256],65261:[[1608],256],65262:[[1608],256],65263:[[1609],256],65264:[[1609],256],65265:[[1610],256],65266:[[1610],256],65267:[[1610],256],65268:[[1610],256],65269:[[1604,1570],256],65270:[[1604,1570],256],65271:[[1604,1571],256],65272:[[1604,1571],256],65273:[[1604,1573],256],65274:[[1604,1573],256],65275:[[1604,1575],256],65276:[[1604,1575],256]},65280:{65281:[[33],256],65282:[[34],256],65283:[[35],256],65284:[[36],256],65285:[[37],256],65286:[[38],256],65287:[[39],256],65288:[[40],256],65289:[[41],256],65290:[[42],256],65291:[[43],256],65292:[[44],256],65293:[[45],256],65294:[[46],256],65295:[[47],256],65296:[[48],256],65297:[[49],256],65298:[[50],256],65299:[[51],256],65300:[[52],256],65301:[[53],256],65302:[[54],256],65303:[[55],256],65304:[[56],256],65305:[[57],256],65306:[[58],256],65307:[[59],256],65308:[[60],256],65309:[[61],256],65310:[[62],256],65311:[[63],256],65312:[[64],256],65313:[[65],256],65314:[[66],256],65315:[[67],256],65316:[[68],256],65317:[[69],256],65318:[[70],256],65319:[[71],256],65320:[[72],256],65321:[[73],256],65322:[[74],256],65323:[[75],256],65324:[[76],256],65325:[[77],256],65326:[[78],256],65327:[[79],256],65328:[[80],256],65329:[[81],256],65330:[[82],256],65331:[[83],256],65332:[[84],256],65333:[[85],256],65334:[[86],256],65335:[[87],256],65336:[[88],256],65337:[[89],256],65338:[[90],256],65339:[[91],256],65340:[[92],256],65341:[[93],256],65342:[[94],256],65343:[[95],256],65344:[[96],256],65345:[[97],256],65346:[[98],256],65347:[[99],256],65348:[[100],256],65349:[[101],256],65350:[[102],256],65351:[[103],256],65352:[[104],256],65353:[[105],256],65354:[[106],256],65355:[[107],256],65356:[[108],256],65357:[[109],256],65358:[[110],256],65359:[[111],256],65360:[[112],256],65361:[[113],256],65362:[[114],256],65363:[[115],256],65364:[[116],256],65365:[[117],256],65366:[[118],256],65367:[[119],256],65368:[[120],256],65369:[[121],256],65370:[[122],256],65371:[[123],256],65372:[[124],256],65373:[[125],256],65374:[[126],256],65375:[[10629],256],65376:[[10630],256],65377:[[12290],256],65378:[[12300],256],65379:[[12301],256],65380:[[12289],256],65381:[[12539],256],65382:[[12530],256],65383:[[12449],256],65384:[[12451],256],65385:[[12453],256],65386:[[12455],256],65387:[[12457],256],65388:[[12515],256],65389:[[12517],256],65390:[[12519],256],65391:[[12483],256],65392:[[12540],256],65393:[[12450],256],65394:[[12452],256],65395:[[12454],256],65396:[[12456],256],65397:[[12458],256],65398:[[12459],256],65399:[[12461],256],65400:[[12463],256],65401:[[12465],256],65402:[[12467],256],65403:[[12469],256],65404:[[12471],256],65405:[[12473],256],65406:[[12475],256],65407:[[12477],256],65408:[[12479],256],65409:[[12481],256],65410:[[12484],256],65411:[[12486],256],65412:[[12488],256],65413:[[12490],256],65414:[[12491],256],65415:[[12492],256],65416:[[12493],256],65417:[[12494],256],65418:[[12495],256],65419:[[12498],256],65420:[[12501],256],65421:[[12504],256],65422:[[12507],256],65423:[[12510],256],65424:[[12511],256],65425:[[12512],256],65426:[[12513],256],65427:[[12514],256],65428:[[12516],256],65429:[[12518],256],65430:[[12520],256],65431:[[12521],256],65432:[[12522],256],65433:[[12523],256],65434:[[12524],256],65435:[[12525],256],65436:[[12527],256],65437:[[12531],256],65438:[[12441],256],65439:[[12442],256],65440:[[12644],256],65441:[[12593],256],65442:[[12594],256],65443:[[12595],256],65444:[[12596],256],65445:[[12597],256],65446:[[12598],256],65447:[[12599],256],65448:[[12600],256],65449:[[12601],256],65450:[[12602],256],65451:[[12603],256],65452:[[12604],256],65453:[[12605],256],65454:[[12606],256],65455:[[12607],256],65456:[[12608],256],65457:[[12609],256],65458:[[12610],256],65459:[[12611],256],65460:[[12612],256],65461:[[12613],256],65462:[[12614],256],65463:[[12615],256],65464:[[12616],256],65465:[[12617],256],65466:[[12618],256],65467:[[12619],256],65468:[[12620],256],65469:[[12621],256],65470:[[12622],256],65474:[[12623],256],65475:[[12624],256],65476:[[12625],256],65477:[[12626],256],65478:[[12627],256],65479:[[12628],256],65482:[[12629],256],65483:[[12630],256],65484:[[12631],256],65485:[[12632],256],65486:[[12633],256],65487:[[12634],256],65490:[[12635],256],65491:[[12636],256],65492:[[12637],256],65493:[[12638],256],65494:[[12639],256],65495:[[12640],256],65498:[[12641],256],65499:[[12642],256],65500:[[12643],256],65504:[[162],256],65505:[[163],256],65506:[[172],256],65507:[[175],256],65508:[[166],256],65509:[[165],256],65510:[[8361],256],65512:[[9474],256],65513:[[8592],256],65514:[[8593],256],65515:[[8594],256],65516:[[8595],256],65517:[[9632],256],65518:[[9675],256]}};var p={nfc:function(e){return d("NFC",e)},nfd:function(e){return d("NFD",e)},nfkc:function(e){return d("NFKC",e)},nfkd:function(e){return d("NFKD",e)}};e.exports=p,p.shimApplied=!1,String.prototype.normalize||(Object.defineProperty(String.prototype,"normalize",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=""+this,t=void 0===arguments[0]?"NFC":arguments[0];if(null==this)throw new TypeError("Cannot call method on "+Object.prototype.toString.call(this));if("NFC"===t)return p.nfc(e);if("NFD"===t)return p.nfd(e);if("NFKC"===t)return p.nfkc(e);if("NFKD"===t)return p.nfkd(e);throw new RangeError("Invalid normalization form: "+t)}}),p.shimApplied=!0)}()},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.EnglishMnemonic=void 0;const a=o(n(69));class s{constructor(e){if(!s.mnemonicMatcher.test(e))throw new Error("Invalid mnemonic format");const t=e.split(" "),n=[12,15,18,21,24];if(-1===n.indexOf(t.length))throw new Error(`Invalid word count in mnemonic (allowed: ${n} got: ${t.length})`);for(const e of t)if(-1===s.wordlist.indexOf(e))throw new Error("Mnemonic contains invalid word");a.mnemonicToEntropy(e),this.data=e}toString(){return this.data}}t.EnglishMnemonic=s,s.wordlist=a.wordlists.english,s.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hmac=void 0;t.Hmac=class{constructor(e,t){const n=(new e).blockSize;this.hash=t=>(new e).update(t).digest();let r=t;if(r.length>n&&(r=this.hash(r)),r.length<n){const e=new Uint8Array(n-r.length);r=new Uint8Array([...r,...e])}this.oKeyPad=r.map(e=>92^e),this.iKeyPad=r.map(e=>54^e),this.messageHasher=new e,this.blockSize=n,this.update(this.iKeyPad)}update(e){return this.messageHasher.update(e),this}digest(){const e=this.messageHasher.digest();return this.hash(new Uint8Array([...this.oKeyPad,...e]))}}},function(e,t,n){"use strict";n.r(t),t.default={}},function(e,t,n){"use strict";function r(e){let t=0;for(const n of e){if(0!==n)break;t++}return e.slice(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedSecp256k1Signature=t.Secp256k1Signature=void 0;class i{constructor(e,t){if(e.length>32||0===e.length||0===e[0])throw new Error("Unsigned integer r must be encoded as unpadded big endian.");if(t.length>32||0===t.length||0===t[0])throw new Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:e,s:t}}static fromFixedLength(e){if(64!==e.length)throw new Error(`Got invalid data length: ${e.length}. Expected 2x 32 bytes for the pair (r, s)`);return new i(r(e.slice(0,32)),r(e.slice(32,64)))}static fromDer(e){let t=0;if(48!==e[t++])throw new Error("Prefix 0x30 expected");const n=e[t++];if(e.length-t!==n)throw new Error("Data length mismatch detected");if(2!==e[t++])throw new Error("INTEGER tag expected");const o=e[t++];if(o>=128)throw new Error("Decoding length values above 127 not supported");const a=e.slice(t,t+o);t+=o;if(2!==e[t++])throw new Error("INTEGER tag expected");const s=e[t++];if(s>=128)throw new Error("Decoding length values above 127 not supported");const c=e.slice(t,t+s);return t+=s,new i(r(a),r(c))}r(e){if(void 0===e)return this.data.r;{const t=e-this.data.r.length;if(t<0)throw new Error("Length too small to hold parameter r");const n=new Uint8Array(t);return new Uint8Array([...n,...this.data.r])}}s(e){if(void 0===e)return this.data.s;{const t=e-this.data.s.length;if(t<0)throw new Error("Length too small to hold parameter s");const n=new Uint8Array(t);return new Uint8Array([...n,...this.data.s])}}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32)])}toDer(){const e=this.data.r[0]>=128?new Uint8Array([0,...this.data.r]):this.data.r,t=this.data.s[0]>=128?new Uint8Array([0,...this.data.s]):this.data.s,n=e.length,r=t.length,i=new Uint8Array([2,n,...e,2,r,...t]);return new Uint8Array([48,i.length,...i])}}t.Secp256k1Signature=i;class o extends i{constructor(e,t,n){if(super(e,t),!Number.isInteger(n))throw new Error("The recovery parameter must be an integer.");if(n<0||n>4)throw new Error("The recovery parameter must be one of 0, 1, 2, 3.");this.recovery=n}static fromFixedLength(e){if(65!==e.length)throw new Error(`Got invalid data length ${e.length}. Expected 32 + 32 + 1`);return new o(r(e.slice(0,32)),r(e.slice(32,64)),e[64])}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32),this.recovery])}}t.ExtendedSecp256k1Signature=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.Sha512=t.sha256=t.Sha256=t.sha1=t.Sha1=void 0;const i=r(n(76));class o{constructor(e){this.blockSize=64,this.impl=i.default("sha1"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}t.Sha1=o,t.sha1=function(e){return new o(e).digest()};class a{constructor(e){this.blockSize=64,this.impl=i.default("sha256"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}t.Sha256=a,t.sha256=function(e){return new a(e).digest()};class s{constructor(e){this.blockSize=128,this.impl=i.default("sha512"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}t.Sha512=s,t.sha512=function(e){return new s(e).digest()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoins=t.coins=t.coin=void 0;const r=n(82);function i(e,t){return{amount:new r.Uint53(e).toString(),denom:t}}t.coin=i,t.coins=function(e,t){return[i(e,t)]},t.parseCoins=function(e){return e.replace(/\s/g,"").split(",").filter(Boolean).map(e=>{const t=e.match(/^([0-9]+)([a-zA-Z]+)/);if(!t)throw new Error("Got an invalid coin string");return{amount:r.Uint64.fromString(t[1]).toString(),denom:t[2]}})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CosmosClient=t.isSearchByTagsQuery=t.isSearchBySentFromOrToQuery=t.isSearchByHeightQuery=t.assertIsBroadcastTxSuccess=t.isBroadcastTxSuccess=t.isBroadcastTxFailure=void 0;const r=n(50),i=n(39),o=n(82),a=n(174),s=n(310);function c(e){return!!e.code}function l(e){return void 0!==e.height}function u(e){return void 0!==e.sentFromOrTo}function f(e){return void 0!==e.tags}t.isBroadcastTxFailure=c,t.isBroadcastTxSuccess=function(e){return!c(e)},t.assertIsBroadcastTxSuccess=function(e){if(c(e))throw new Error(`Error when broadcasting tx ${e.transactionHash} at height ${e.height}. Code: ${e.code}; Raw log: ${e.rawLog}`)},t.isSearchByHeightQuery=l,t.isSearchBySentFromOrToQuery=u,t.isSearchByTagsQuery=f;t.CosmosClient=class{constructor(e,t=a.BroadcastMode.Block){this.lcdClient=a.LcdClient.withExtensions({apiUrl:e,broadcastMode:t},a.setupAuthExtension)}async getChainId(){if(!this.chainId){const e=(await this.lcdClient.nodeInfo()).node_info.network;if(!e)throw new Error("Chain ID must not be empty");this.chainId=e}return this.chainId}async getHeight(){if(this.anyValidAddress){const{height:e}=await this.lcdClient.auth.account(this.anyValidAddress);return parseInt(e,10)}{const e=await this.lcdClient.blocksLatest();return parseInt(e.block.header.height,10)}}async getIdentifier(e){const t=await this.lcdClient.encodeTx(e),n=r.sha256(i.fromBase64(t.tx));return i.toHex(n).toUpperCase()}async getSequence(e){const t=await this.getAccount(e);if(!t)throw new Error("Account does not exist on chain. Send some tokens there before trying to query sequence.");return{accountNumber:t.accountNumber,sequence:t.sequence}}async getAccount(e){const t=(await this.lcdClient.auth.account(e)).result.value;return""===t.address?void 0:(this.anyValidAddress=t.address,{address:t.address,balance:t.coins,pubkey:a.normalizePubkey(t.public_key)||void 0,accountNumber:a.uint64ToNumber(t.account_number),sequence:a.uint64ToNumber(t.sequence)})}async getBlock(e){const t=void 0!==e?await this.lcdClient.blocks(e):await this.lcdClient.blocksLatest();return{id:t.block_id.hash,header:{version:t.block.header.version,time:t.block.header.time,height:parseInt(t.block.header.height,10),chainId:t.block.header.chain_id},txs:(t.block.data.txs||[]).map(i.fromBase64)}}async getTx(e){var t;return null!==(t=(await this.txsQuery("tx.hash="+e))[0])&&void 0!==t?t:null}async searchTx(e,t={}){const n=t.minHeight||0,r=t.maxHeight||Number.MAX_SAFE_INTEGER;if(r<n)return[];function i(e){return`${e}&tx.minheight=${n}&tx.maxheight=${r}`}let o;if(l(e))o=e.height<n||e.height>r?[]:await this.txsQuery("tx.height="+e.height);else if(u(e)){const t=i("message.module=bank&message.sender="+e.sentFromOrTo),n=i("message.module=bank&transfer.recipient="+e.sentFromOrTo),r=await this.txsQuery(t),a=await this.txsQuery(n),s=r.map(e=>e.hash);o=[...r,...a.filter(e=>!s.includes(e.hash))]}else{if(!f(e))throw new Error("Unknown query type");{const t=i(e.tags.map(e=>`${e.key}=${e.value}`).join("&"));o=await this.txsQuery(t)}}return o.filter(e=>e.height>=n&&e.height<=r)}async broadcastTx(e){const t=await this.lcdClient.broadcastTx(e);if(!t.txhash.match(/^([0-9A-F][0-9A-F])+$/))throw new Error("Received ill-formatted txhash. Must be non-empty upper-case hex");return void 0!==t.code?{height:o.Uint53.fromString(t.height).toNumber(),transactionHash:t.txhash,code:t.code,rawLog:t.raw_log||""}:{logs:t.logs?s.parseLogs(t.logs):[],rawLog:t.raw_log||"",transactionHash:t.txhash,data:t.data?i.fromHex(t.data):void 0}}async txsQuery(e){const t=await this.lcdClient.txsQuery(e+"&limit=100");if(parseInt(t.page_total,10)>1)throw new Error(`Found more results on the backend than we can process currently. Results: ${t.total_count}, supported: 100`);return t.txs.map(e=>({height:parseInt(e.height,10),hash:e.txhash,code:e.code||0,rawLog:e.raw_log,logs:s.parseLogs(e.logs||[]),tx:e.tx,timestamp:e.timestamp}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BroadcastMode=void 0,function(e){e.Block="block",e.Sync="sync",e.Async="async"}(t.BroadcastMode||(t.BroadcastMode={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildFeeTable=t.GasPrice=void 0;const r=n(82),i=n(317);class o{constructor(e,t){this.amount=e,this.denom=t}static fromString(e){const t=e.match(/^(?<amount>.+?)(?<denom>[a-z]+)$/);if(!t)throw new Error("Invalid gas price string");const{amount:n,denom:i}=t.groups;if(i.length<3||i.length>127)throw new Error("Gas price denomination must be between 3 and 127 characters");const a=r.Decimal.fromUserInput(n,18);return new o(a,i)}}function a(e,{denom:t,amount:n}){const o=Math.ceil(n.multiply(new r.Uint53(e)).toFloatApproximation());return{amount:i.coins(o,t),gas:e.toString()}}t.GasPrice=o,t.buildFeeTable=function(e,t,n){return Object.entries(t).reduce((t,[r,i])=>Object.assign(Object.assign({},t),{[r]:a(n[r]||i,e)}),{})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCosmoshubPath=void 0;const r=n(50);t.makeCosmoshubPath=function(e){return[r.Slip10RawIndex.hardened(44),r.Slip10RawIndex.hardened(118),r.Slip10RawIndex.hardened(0),r.Slip10RawIndex.normal(0),r.Slip10RawIndex.normal(e)]}},function(e,t,n){"use strict";function r(e){const{memo:t,msg:n,fee:r,signatures:i}=e;return"string"==typeof t&&Array.isArray(n)&&"object"==typeof r&&Array.isArray(i)}Object.defineProperty(t,"__esModule",{value:!0}),t.isWrappedStdTx=t.makeStdTx=t.isStdTx=void 0,t.isStdTx=r,t.makeStdTx=function(e,t){return{msg:e.msgs,fee:e.fee,memo:e.memo,signatures:Array.isArray(t)?t:[t]}},t.isWrappedStdTx=function(e){return"cosmos-sdk/StdTx"===e.type&&r(e.value)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=t.supportedAlgorithms=t.executeKdf=t.cosmjsSalt=void 0;const r=n(50),i=n(39);t.cosmjsSalt=i.toAscii("The CosmJS salt."),t.executeKdf=async function(e,n){switch(n.algorithm){case"argon2id":{const i=n.params;if(!r.isArgon2idOptions(i))throw new Error("Invalid format of argon2id params");return r.Argon2id.execute(e,t.cosmjsSalt,i)}default:throw new Error("Unsupported KDF algorithm")}},t.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"},t.encrypt=async function(e,n,i){switch(i.algorithm){case t.supportedAlgorithms.xchacha20poly1305Ietf:{const t=r.Random.getBytes(r.xchacha20NonceLength);return new Uint8Array([...t,...await r.Xchacha20poly1305Ietf.encrypt(e,n,t)])}default:throw new Error(`Unsupported encryption algorithm: '${i.algorithm}'`)}},t.decrypt=async function(e,n,i){switch(i.algorithm){case t.supportedAlgorithms.xchacha20poly1305Ietf:{const t=e.slice(0,r.xchacha20NonceLength);return r.Xchacha20poly1305Ietf.decrypt(e.slice(r.xchacha20NonceLength),n,t)}default:throw new Error(`Unsupported encryption algorithm: '${i.algorithm}'`)}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(176),t),i(n(650),t),i(n(651),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageRegistry=void 0;t.MessageRegistry=class{constructor(){this.registeredMsgType=new Map}registerMessage(e){if(this.registeredMsgType.has(e.type()))throw new Error("Already registered type "+e.type());this.registeredMsgType.set(e.type(),e)}parseMessage(e){if(!e.type)throw new Error("Null type");const t=this.registeredMsgType.get(e.type);if(!t)throw new Error("Unregistered msg type "+e.type);return Object.setPrototypeOf(e.msg,t.prototype)}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(656),t),i(n(657),t),i(n(658),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WEBPAGE_PORT=t.APP_PORT=t.BACKGROUND_PORT=void 0,t.BACKGROUND_PORT="background",t.APP_PORT="popup",t.WEBPAGE_PORT="webpage"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionGuards=void 0;class r{}t.ExtensionGuards=r,r.checkOriginIsValid=(e,t,n)=>{if(!n.url)throw new Error("url is empty");if(!t.origin)throw new Error("origin is empty");if(new URL(n.url).origin!==t.origin)throw new Error("Invalid origin");return Promise.resolve()},r.checkMessageIsInternal=(e,t,n)=>{if(!e.isInternalMsg&&!t.approveExternal(e,n))throw new Error("Permission rejected");return Promise.resolve()}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionEnv=void 0;const o=n(407),a=n(327),s=n(326),c=new(i(n(412)).default)({concurrency:1});class l{}t.ExtensionEnv=l,l.produceEnv=e=>{const t=l.checkIsInternalMessage(e,browser.runtime.id,browser.runtime.getURL("/")),n="interaction=true&interactionInternal="+t,i=(e,t,i)=>r(void 0,void 0,void 0,(function*(){e.startsWith("/")&&(e=e.slice(1)),(e=browser.runtime.getURL("/popup.html#/"+e)).includes("?")?e+="&"+n:e+="?"+n;const l=yield function(e,t="default"){return r(this,void 0,void 0,(function*(){return yield c.add(()=>o.openPopupWindow(e,t))}))}(e,null==i?void 0:i.channel),u=(yield browser.windows.get(l,{populate:!0})).tabs[0].id;return yield r(void 0,void 0,void 0,(function*(){if("complete"!==(yield browser.tabs.get(u)).status)return new Promise(e=>{browser.tabs.onUpdated.addListener((t,n)=>{u===t&&"complete"===n.status&&e()})})})),yield s.InExtensionMessageRequester.sendMessageToTab(u,a.APP_PORT,t)}));if(t){return{isInternalMsg:t,requestInteraction:(t,o,c)=>r(void 0,void 0,void 0,(function*(){if(null==c?void 0:c.forceOpenWindow)return yield i(t,o,c);t.startsWith("/")&&(t=t.slice(1)),(t=browser.runtime.getURL("/popup.html#/"+t)).includes("?")?t+="&"+n:t+="?"+n;const r=yield browser.runtime.getBackgroundPage(),l=browser.extension.getViews().filter(e=>e.location.href!==r.location.href),u=l.find(t=>t.location.href===e.url);return(null!=u?u:l[0]).location.href=t,yield(new s.InExtensionMessageRequester).sendMessage(a.APP_PORT,o)}))}}return{isInternalMsg:t,requestInteraction:i}},l.checkIsInternalMessage=(e,t,n)=>{if(!e.url)throw new Error("Empty sender url");const r=new URL(e.url);if(!r.origin||"null"===r.origin)throw new Error("Invalid sender url");const i=new URL(n);if(!i.origin||"null"===i.origin)throw new Error("Invalid browser url");return r.origin===i.origin&&e.id===t}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.PersistentMemoryService=void 0;const i=n(43);let o=class{constructor(){this.data={}}set(e){this.data=Object.assign(Object.assign({},this.data),e)}get(){return this.data}};o=r([i.singleton()],o),t.PersistentMemoryService=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="persistent-memory"},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChainsService=void 0;const c=n(43),l=n(52),u=n(333),f=n(334),d=n(83),p=n(128),h=n(11),m=s(n(342));let b=class{constructor(e,t,n,r){this.kvStore=e,this.embedChainInfos=t,this.chainUpdaterKeeper=n,this.interactionKeeper=r,this.onChainRemovedHandlers=[],this.getChainInfos=m.default.promise(()=>a(this,void 0,void 0,(function*(){var e;if(this.cachedChainInfos)return this.cachedChainInfos;const t=this.embedChainInfos.map(e=>Object.assign(Object.assign({},e),{embeded:!0})),n=new Map;for(const e of t)n.set(h.ChainIdHelper.parse(e.chainId).identifier,!0);const r=(null!==(e=yield this.kvStore.get("chain-infos"))&&void 0!==e?e:[]).filter(e=>!n.get(h.ChainIdHelper.parse(e.chainId).identifier)).map(e=>Object.assign(Object.assign({},e),{embeded:!1}));let i=t.concat(r);return i=yield Promise.all(i.map(e=>a(this,void 0,void 0,(function*(){const t=yield this.chainUpdaterKeeper.putUpdatedPropertyToChainInfo(e);return Object.assign(Object.assign({},t),{embeded:e.embeded})})))),this.cachedChainInfos=i,i})))}clearCachedChainInfos(){this.cachedChainInfos=void 0}getChainInfo(e){return a(this,void 0,void 0,(function*(){const t=(yield this.getChainInfos()).find(t=>h.ChainIdHelper.parse(t.chainId).identifier===h.ChainIdHelper.parse(e).identifier);if(!t)throw new Error("There is no chain info for "+e);return t}))}getChainCoinType(e){return a(this,void 0,void 0,(function*(){const t=yield this.getChainInfo(e);if(!t)throw new Error("There is no chain info for "+e);return t.bip44.coinType}))}hasChainInfo(e){return a(this,void 0,void 0,(function*(){return null!=(yield this.getChainInfos()).find(t=>h.ChainIdHelper.parse(t.chainId).identifier===h.ChainIdHelper.parse(e).identifier)}))}suggestChainInfo(e,t,n){return a(this,void 0,void 0,(function*(){t=yield u.ChainInfoSchema.validateAsync(t,{stripUnknown:!0}),yield this.interactionKeeper.waitApprove(e,"/suggest-chain",p.SuggestChainInfoMsg.type(),Object.assign(Object.assign({},t),{origin:n})),yield this.addChainInfo(t)}))}addChainInfo(e){var t;return a(this,void 0,void 0,(function*(){if(yield this.hasChainInfo(e.chainId))throw new Error("Same chain is already registered");const n=null!==(t=yield this.kvStore.get("chain-infos"))&&void 0!==t?t:[];n.push(e),yield this.kvStore.set("chain-infos",n),this.clearCachedChainInfos()}))}removeChainInfo(e){var t;return a(this,void 0,void 0,(function*(){if(!(yield this.hasChainInfo(e)))throw new Error("Chain is not registered");if((yield this.getChainInfo(e)).embeded)throw new Error("Can't remove the embedded chain");const n=(null!==(t=yield this.kvStore.get("chain-infos"))&&void 0!==t?t:[]).filter(t=>h.ChainIdHelper.parse(t.chainId).identifier!==h.ChainIdHelper.parse(e).identifier);yield this.kvStore.set("chain-infos",n),yield this.chainUpdaterKeeper.clearUpdatedProperty(e);for(const t of this.onChainRemovedHandlers)t(e,h.ChainIdHelper.parse(e).identifier);this.clearCachedChainInfos()}))}addChainRemovedHandler(e){this.onChainRemovedHandlers.push(e)}};b=r([c.singleton(),o(0,c.inject(l.TYPES.ChainsStore)),o(1,c.inject(l.TYPES.ChainsEmbedChainInfos)),o(2,c.inject(c.delay(()=>f.ChainUpdaterService))),o(3,c.inject(c.delay(()=>d.InteractionService))),i("design:paramtypes",[Object,Array,f.ChainUpdaterService,d.InteractionService])],b),t.ChainsService=b},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChainInfoSchema=t.SuggestingBIP44Schema=t.Bech32ConfigSchema=t.Secret20CurrencyShema=t.CW20CurrencyShema=t.CurrencySchema=void 0;const i=r(n(670));t.CurrencySchema=i.default.object({coinDenom:i.default.string().required(),coinMinimalDenom:i.default.string().required(),coinDecimals:i.default.number().integer().min(0).max(18).required(),coinGeckoId:i.default.string()}),t.CW20CurrencyShema=t.CurrencySchema.keys({type:i.default.string().equal("cw20").required(),contractAddress:i.default.string().required()}).custom(e=>e.coinMinimalDenom.startsWith(`${e.type}:${e.contractAddress}:`)?e:Object.assign(Object.assign({},e),{coinMinimalDenom:`${e.type}:${e.contractAddress}:`+e.coinMinimalDenom})),t.Secret20CurrencyShema=t.CurrencySchema.keys({type:i.default.string().equal("secret20").required(),contractAddress:i.default.string().required(),viewingKey:i.default.string().required()}).custom(e=>e.coinMinimalDenom.startsWith(`${e.type}:${e.contractAddress}:`)?e:Object.assign(Object.assign({},e),{coinMinimalDenom:`${e.type}:${e.contractAddress}:`+e.coinMinimalDenom})),t.Bech32ConfigSchema=i.default.object({bech32PrefixAccAddr:i.default.string().required(),bech32PrefixAccPub:i.default.string().required(),bech32PrefixValAddr:i.default.string().required(),bech32PrefixValPub:i.default.string().required(),bech32PrefixConsAddr:i.default.string().required(),bech32PrefixConsPub:i.default.string().required()}),t.SuggestingBIP44Schema=i.default.object({coinType:i.default.number().integer().min(0).required()}).unknown(!0),t.ChainInfoSchema=i.default.object({rpc:i.default.string().required().uri(),rest:i.default.string().required().uri(),chainId:i.default.string().required().min(1).max(30),chainName:i.default.string().required().min(1).max(30),stakeCurrency:t.CurrencySchema.required(),walletUrl:i.default.string().uri(),walletUrlForStaking:i.default.string().uri(),bip44:t.SuggestingBIP44Schema.required(),bech32Config:t.Bech32ConfigSchema.required(),currencies:i.default.array().min(1).items(t.CurrencySchema,t.CW20CurrencyShema,t.Secret20CurrencyShema).required(),feeCurrencies:i.default.array().min(1).items(t.CurrencySchema).required(),coinType:i.default.number().integer(),beta:i.default.boolean(),gasPriceStep:i.default.object({low:i.default.number().required(),average:i.default.number().required(),high:i.default.number().required()}),features:i.default.array().items(i.default.string().valid("stargate","cosmwasm","secretwasm","ibc-transfer")).unique().custom(e=>{if(e.indexOf("cosmwasm")>=0&&e.indexOf("secretwasm")>=0)throw new Error("cosmwasm and secretwasm are not compatible");return e})})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(335),t),i(n(178),t)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChainUpdaterService=void 0;const c=n(43),l=n(52),u=s(n(68)),f=n(11),d=n(58);let p=class{constructor(e,t){this.kvStore=e,this.chainsService=t}putUpdatedPropertyToChainInfo(e){var t,n;return a(this,void 0,void 0,(function*(){const r=yield this.getUpdatedChainProperty(e.chainId),i=f.ChainIdHelper.parse(e.chainId);if(f.ChainIdHelper.parse(r.chainId||e.chainId).version<i.version)return e;const o=null!==(t=e.features)&&void 0!==t?t:[];for(const e of null!==(n=r.features)&&void 0!==n?n:[])o.includes(e)||o.push(e);return Object.assign(Object.assign({},e),{chainId:r.chainId||e.chainId,features:o})}))}clearUpdatedProperty(e){return a(this,void 0,void 0,(function*(){yield this.kvStore.set(f.ChainIdHelper.parse(e).identifier,null),this.chainsService.clearCachedChainInfos()}))}tryUpdateChain(e){var t,n;return a(this,void 0,void 0,(function*(){const r=yield this.chainsService.getChainInfo(e);if(!f.ChainIdHelper.hasChainVersion(r.chainId))return r.chainId;const i=u.default.create({baseURL:r.rpc}),o=yield i.get("/block"),a=f.ChainIdHelper.parse(r.chainId),s=o.data.result.block.header.chain_id,c=f.ChainIdHelper.parse(s);a.identifier===c.identifier&&a.version<c.version&&(yield this.saveChainProperty(a.identifier,{chainId:s}));let l=!1;try{if(!r.features||!r.features.includes("stargate")){const e=u.default.create({baseURL:r.rest});yield e.get("/cosmos/base/tendermint/v1beta1/node_info");const n=yield this.getUpdatedChainProperty(r.chainId);yield this.saveChainProperty(a.identifier,{features:(null!==(t=n.features)&&void 0!==t?t:[]).concat(["stargate"])}),l=!0}}catch(e){}try{if((!r.features||!r.features.includes("ibc-transfer"))&&(l||r.features&&r.features.includes("stargate"))){const e=u.default.create({baseURL:r.rest}),t=yield e.get("/ibc/applications/transfer/v1beta1/params");if(t.data.params.receive_enabled&&t.data.params.send_enabled){const e=yield this.getUpdatedChainProperty(r.chainId);yield this.saveChainProperty(a.identifier,{features:(null!==(n=e.features)&&void 0!==n?n:[]).concat(["ibc-transfer"])})}}}catch(e){}}))}getUpdatedChainProperty(e){return a(this,void 0,void 0,(function*(){const t=f.ChainIdHelper.parse(e);return yield this.loadChainProperty(t.identifier)}))}saveChainProperty(e,t){return a(this,void 0,void 0,(function*(){const n=yield this.loadChainProperty(e);yield this.kvStore.set(e,Object.assign(Object.assign({},n),t)),this.chainsService.clearCachedChainInfos()}))}loadChainProperty(e){return a(this,void 0,void 0,(function*(){const t=yield this.kvStore.get(e);return t||{}}))}static checkChainUpdate(e){return a(this,void 0,void 0,(function*(){const t=e.chainId;if(!f.ChainIdHelper.hasChainVersion(t))return{explicit:!1,slient:!1};const n=u.default.create({baseURL:e.rpc}),r=(yield n.get("/block")).data.result.block.header.chain_id,i=f.ChainIdHelper.parse(t),o=f.ChainIdHelper.parse(r);if(i.identifier!==o.identifier)return{explicit:!1,slient:!1};let a=!1;try{if(!e.features||!e.features.includes("stargate")){const t=u.default.create({baseURL:e.rest});yield t.get("/cosmos/base/tendermint/v1beta1/node_info"),a=!0}}catch(e){}let s=!1;try{if((!e.features||!e.features.includes("ibc-transfer"))&&(a||e.features&&e.features.includes("stargate"))){const t=u.default.create({baseURL:e.rest}),n=yield t.get("/ibc/applications/transfer/v1beta1/params");n.data.params.receive_enabled&&n.data.params.send_enabled&&(s=!0)}}catch(e){}return{explicit:i.version<o.version,slient:a||s}}))}};p=r([c.singleton(),o(0,c.inject(l.TYPES.UpdaterStore)),o(1,c.inject(c.delay(()=>d.ChainsService))),i("design:paramtypes",[Object,d.ChainsService])],p),t.ChainUpdaterService=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="chains"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="chain-updator"},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.InteractionService=void 0;const s=n(43),c=n(52),l=n(339);let u=class{constructor(e,t){this.eventMsgRequester=e,this.rng=t,this.waitingMap=new Map,this.resolverMap=new Map}dispatchEvent(e,t,n){return a(this,void 0,void 0,(function*(){if(!t)throw new Error("Type should not be empty");const r=new l.PushEventDataMsg({type:t,data:n});try{yield this.eventMsgRequester.sendMessage(e,r)}catch(t){console.log(`Failed to send the event to ${e}: ${t.message}`)}}))}waitApprove(e,t,n,r,i){return a(this,void 0,void 0,(function*(){if(!n)throw new Error("Type should not be empty");const o=yield this.addDataToMap(n,r),a=new l.PushInteractionDataMsg(o);return yield this.wait(a.data.id,()=>{e.requestInteraction(t,a,i)})}))}wait(e,t){return a(this,void 0,void 0,(function*(){if(this.resolverMap.has(e))throw new Error("Id is aleady in use");return new Promise((n,r)=>{this.resolverMap.set(e,{onApprove:n,onReject:r}),t()})}))}approve(e,t){this.resolverMap.has(e)&&(this.resolverMap.get(e).onApprove(t),this.resolverMap.delete(e))}reject(e){this.resolverMap.has(e)&&(this.resolverMap.get(e).onReject(new Error("Request rejected")),this.resolverMap.delete(e))}addDataToMap(e,t){return a(this,void 0,void 0,(function*(){const n=new Uint8Array(8),r=Array.from(yield this.rng(n)).map(e=>e.toString(16)).join(""),i={id:r,type:e,data:t};if(this.waitingMap.has(r))throw new Error("Id is aleady in use");return this.waitingMap.set(r,i),i}))}removeDataFromMap(e){this.waitingMap.delete(e)}};u=r([s.singleton(),o(0,s.inject(c.TYPES.EventMsgRequester)),o(1,s.inject(c.TYPES.RNG)),i("design:paramtypes",[Object,Function])],u),t.InteractionService=u},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(671),t),i(n(179),t),i(n(672),t),i(n(673),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="interaction-foreground"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="interaction"},function(e,t,n){"use strict";n.r(t);const r=(e,t,n={})=>{if(!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let r,i,o=[];return function(...a){return new Promise(s=>{const c=n.leading&&!i;clearTimeout(i),i=setTimeout(()=>{i=null;const t=n.leading?r:e.apply(this,a);for(s of o)s(t);o=[]},t),c?(r=e.apply(this,a),s(r)):o.push(s)})}};r.promise=e=>{let t;return async function(...n){if(t)return t;try{return t=e.apply(this,n),await t}finally{t=void 0}}},t.default=r},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LedgerService=void 0;const c=n(43),l=n(52),u=n(344),f=s(n(386)),d=n(18),p=n(83),h=n(2);let m=class{constructor(e,t){this.kvStore=e,this.interactionService=t}getPublicKey(e,t){return a(this,void 0,void 0,(function*(){return yield this.useLedger(e,(e,n)=>a(this,void 0,void 0,(function*(){try{return yield e.getPublicKey([44,118,t.account,t.change,t.addressIndex])}finally{n>0&&(yield this.interactionService.dispatchEvent(d.APP_PORT,"ledger-init",{event:"get-pubkey",success:!0}))}})))}))}sign(e,t,n,r){return a(this,void 0,void 0,(function*(){return yield this.useLedger(e,(e,i)=>a(this,void 0,void 0,(function*(){try{const o=yield e.getPublicKey([44,118,t.account,t.change,t.addressIndex]);if(h.Buffer.from(n).toString("hex")!==h.Buffer.from(o).toString("hex"))throw new Error("Unmatched public key");const a=yield e.sign([44,118,t.account,t.change,t.addressIndex],r);return i>0&&(yield this.interactionService.dispatchEvent(d.APP_PORT,"ledger-init",{event:"sign",success:!0})),a}catch(e){throw i>0&&(yield this.interactionService.dispatchEvent(d.APP_PORT,"ledger-init",{event:"sign",success:!1})),e}})))}))}useLedger(e,t){return a(this,void 0,void 0,(function*(){let n;try{return n=yield this.initLedger(e),yield t(n.ledger,n.retryCount)}finally{n&&(yield n.ledger.close())}}))}initLedger(e){return a(this,void 0,void 0,(function*(){this.previousInitAborter&&this.previousInitAborter(new Error("New ledger request occurred before the ledger was initialized"));const t=(()=>{let e;return{wait:()=>new Promise((t,n)=>{e=n}),abort:t=>{e&&e(t)}}})();this.previousInitAborter=t.abort;let n=0;for(;;){try{const e=yield u.Ledger.init(yield this.getWebHIDFlag());return this.previousInitAborter=void 0,{ledger:e,retryCount:n}}catch(n){console.log(n);const r=new AbortController;try{yield Promise.race([this.interactionService.waitApprove(e,"/ledger-grant","ledger-init",{event:"init-failed"},{forceOpenWindow:!0,channel:"ledger"}),(()=>a(this,void 0,void 0,(function*(){let e=!1;try{yield f.default(3e5,{signal:r.signal})}catch(t){if("AbortError"!==t.name)throw t;e=!0}if(!e)throw yield this.interactionService.dispatchEvent(d.APP_PORT,"ledger-init",{event:"init-aborted"}),new Error("Ledger init timeout")})))(),t.wait(),this.testLedgerGrantUIOpened()])}finally{r.abort()}}n++}}))}testLedgerGrantUIOpened(){return a(this,void 0,void 0,(function*(){for(yield f.default(1e3);;){const e=browser.extension.getViews();let t=!1;for(const n of e)if(n.location.href.includes(browser.runtime.getURL("popup.html#/ledger-grant"))){t=!0;break}if(!t)throw new Error("Ledger init aborted");yield f.default(1e3)}}))}getWebHIDFlag(){return a(this,void 0,void 0,(function*(){return!!(yield this.kvStore.get("webhid"))}))}setWebHIDFlag(e){return a(this,void 0,void 0,(function*(){yield this.kvStore.set("webhid",e)}))}};m=r([c.singleton(),o(0,c.inject(l.TYPES.LedgerStore)),o(1,c.inject(c.delay(()=>p.InteractionService))),i("design:paramtypes",[Object,p.InteractionService])],m),t.LedgerService=m},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Ledger=t.LedgerInitError=t.LedgerInitErrorOn=void 0;const o=n(679).default,a=i(n(685)),s=i(n(712)),c=n(398);var l;!function(e){e[e.Transport=0]="Transport",e[e.App=1]="App",e[e.Unknown=2]="Unknown"}(l=t.LedgerInitErrorOn||(t.LedgerInitErrorOn={}));class u extends Error{constructor(e,t){super(t),this.errorOn=e,Object.setPrototypeOf(this,u.prototype)}}t.LedgerInitError=u;class f{constructor(e){this.cosmosApp=e}static init(e=!1){return r(this,void 0,void 0,(function*(){let t;try{t=e?yield s.default.create():yield a.default.create()}catch(e){throw new u(l.Transport,e.message)}try{const e=new o(t),n=new f(e);if((yield n.getVersion()).deviceLocked)throw new Error("Device is on screen saver");return n}catch(e){if(t&&(yield t.close()),"Device is on screen saver"===e.message)throw new u(l.Transport,e.message);throw new u(l.App,e.message)}}))}getVersion(){return r(this,void 0,void 0,(function*(){if(!this.cosmosApp)throw new Error("Comsos App not initialized");const e=yield this.cosmosApp.getVersion();if("No errors"!==e.error_message)throw new Error(e.error_message);return{deviceLocked:e.device_locked,major:e.major,minor:e.minor,patch:e.patch,targetId:e.target_id,testMode:e.test_mode}}))}getPublicKey(e){return r(this,void 0,void 0,(function*(){if(!this.cosmosApp)throw new Error("Comsos App not initialized");const t=yield this.cosmosApp.publicKey(e);if("No errors"!==t.error_message)throw new Error(t.error_message);return t.compressed_pk}))}sign(e,t){return r(this,void 0,void 0,(function*(){if(!this.cosmosApp)throw new Error("Comsos App not initialized");const n=yield this.cosmosApp.sign(e,t);if("No errors"!==n.error_message)throw new Error(n.error_message);return c.signatureImport(n.signature)}))}close(){return r(this,void 0,void 0,(function*(){return yield this.cosmosApp.transport.close()}))}static isWebHIDSupported(){return r(this,void 0,void 0,(function*(){return yield s.default.isSupported()}))}}t.Ledger=f},function(e,t,n){"use strict";(function(e){var r=n(115);Object.defineProperty(t,"__esModule",{value:!0}),t.serializePathv1=function(t){if(null==t||t.length<3)throw new Error("Invalid path.");if(t.length>10)throw new Error("Invalid path. Length should be <= 10");var n=e.alloc(1+4*t.length);n.writeUInt8(t.length,0);for(var r=0;r<t.length;r+=1){var i=t[r];r<3&&(i|=2147483648),n.writeInt32LE(i,1+4*r)}return n},t.signSendChunkv1=function(e,t,n,r){return s.apply(this,arguments)},t.publicKeyv1=function(e,t){return l.apply(this,arguments)};var i=r(n(129)),o=r(n(130)),a=n(181);function s(){return(s=(0,o.default)(i.default.mark((function e(t,n,r,o){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.transport.send(a.CLA,a.INS.SIGN_SECP256K1,n,r,o,[a.ERROR_CODE.NoError,27012,27264]).then((function(e){var t=e.slice(-2),n=256*t[0]+t[1],r=(0,a.errorCodeToString)(n);27264!==n&&27012!==n||(r="".concat(r," : ").concat(e.slice(0,e.length-2).toString("ascii")));var i=null;return e.length>2&&(i=e.slice(0,e.length-2)),{signature:i,return_code:n,error_message:r}}),a.processErrorResponse));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(t){if(65!==t.length)throw new Error("decompressed public key length should be 65 bytes");var n=t.slice(33,65),r=e.from([2+(1&n[n.length-1])]);return e.concat([r,t.slice(1,33)])}function l(){return(l=(0,o.default)(i.default.mark((function t(n,r){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",n.transport.send(a.CLA,a.INS.INS_PUBLIC_KEY_SECP256K1,0,0,r,[a.ERROR_CODE.NoError]).then((function(t){var n=t.slice(-2),r=256*n[0]+n[1],i=e.from(t.slice(0,65));return{pk:i,compressed_pk:c(i),return_code:r,error_message:(0,a.errorCodeToString)(r)}}),a.processErrorResponse));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}).call(this,n(2).Buffer)},function(e,t,n){const r=n(40);e.exports=(e,t,n)=>0!==r(e,t,n)},function(e,t,n){const r=n(183),i=n(346),o=n(134),a=n(186),s=n(185),c=n(187);e.exports=(e,t,n,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,l);case"!=":return i(e,n,l);case">":return o(e,n,l);case">=":return a(e,n,l);case"<":return s(e,n,l);case"<=":return c(e,n,l);default:throw new TypeError("Invalid operator: "+t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="ledger"},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyRingService=void 0;const s=n(43),c=n(52),l=n(190),u=n(11),f=n(58),d=n(350),p=n(18),h=n(83),m=n(102),b=n(114),y=n(719),g=n(11);let v=class{constructor(e,t,n,r,i,o,a){this.interactionService=n,this.chainsService=r,this.permissionService=i,this.rng=a,this.keyRing=new l.KeyRing(t,e,o,a)}restore(){return a(this,void 0,void 0,(function*(){return yield this.keyRing.restore(),{status:this.keyRing.status,type:this.keyRing.type,multiKeyStoreInfo:this.keyRing.getMultiKeyStoreInfo()}}))}enable(e){return a(this,void 0,void 0,(function*(){if(this.keyRing.status===l.KeyRingStatus.EMPTY)throw new Error("key doesn't exist");return this.keyRing.status===l.KeyRingStatus.NOTLOADED&&(yield this.keyRing.restore()),this.keyRing.status===l.KeyRingStatus.LOCKED?(yield this.interactionService.waitApprove(e,"/unlock","unlock",{}),this.keyRing.status):this.keyRing.status}))}get keyRingStatus(){return this.keyRing.status}deleteKeyRing(e,t){return a(this,void 0,void 0,(function*(){return{multiKeyStoreInfo:yield this.keyRing.deleteKeyRing(e,t),status:this.keyRing.status}}))}updateNameKeyRing(e,t){return a(this,void 0,void 0,(function*(){return{multiKeyStoreInfo:yield this.keyRing.updateNameKeyRing(e,t),status:this.keyRing.status}}))}showKeyRing(e,t){return a(this,void 0,void 0,(function*(){return yield this.keyRing.showKeyRing(e,t)}))}createMnemonicKey(e,t,n,r){return a(this,void 0,void 0,(function*(){return yield this.keyRing.createMnemonicKey(e,t,n,r),this.keyRing.status}))}createPrivateKey(e,t,n){return a(this,void 0,void 0,(function*(){return yield this.keyRing.createPrivateKey(e,t,n),this.keyRing.status}))}createLedgerKey(e,t,n,r){return a(this,void 0,void 0,(function*(){return yield this.keyRing.createLedgerKey(e,t,n,r),this.keyRing.status}))}lock(){return this.keyRing.lock(),this.keyRing.status}unlock(e){return a(this,void 0,void 0,(function*(){return yield this.keyRing.unlock(e),this.keyRing.status}))}getKey(e){return a(this,void 0,void 0,(function*(){return this.keyRing.getKey(e,yield this.chainsService.getChainCoinType(e))}))}getKeyStoreMeta(e){return this.keyRing.getKeyStoreMeta(e)}getKeyRingType(){return this.keyRing.type}requestSignAmino(e,t,n,r,i){return a(this,void 0,void 0,(function*(){const o=yield this.chainsService.getChainCoinType(t),a=yield this.keyRing.getKey(t,o),s=new u.Bech32Address(a.address).toBech32((yield this.chainsService.getChainInfo(t)).bech32Config.bech32PrefixAccAddr);if(n!==s)throw new Error("Signer mismatched");const c=yield this.interactionService.waitApprove(e,"/sign","request-sign",{chainId:t,mode:"amino",signDoc:r,signer:n,signOptions:i});try{const n=yield this.keyRing.sign(e,t,o,b.serializeSignDoc(c));return{signed:c,signature:b.encodeSecp256k1Signature(a.pubKey,n)}}finally{yield this.interactionService.dispatchEvent(p.APP_PORT,"request-sign-end",{})}}))}requestSignDirect(e,t,n,r,i){return a(this,void 0,void 0,(function*(){const o=yield this.chainsService.getChainCoinType(t),a=yield this.keyRing.getKey(t,o),s=new u.Bech32Address(a.address).toBech32((yield this.chainsService.getChainInfo(t)).bech32Config.bech32PrefixAccAddr);if(n!==s)throw new Error("Signer mismatched");const c=yield this.interactionService.waitApprove(e,"/sign","request-sign",{chainId:t,mode:"direct",signDocBytes:g.cosmos.tx.v1beta1.SignDoc.encode(r).finish(),signer:n,signOptions:i}),l=g.cosmos.tx.v1beta1.SignDoc.decode(c);try{const n=yield this.keyRing.sign(e,t,o,y.makeSignBytes(l));return{signed:l,signature:b.encodeSecp256k1Signature(a.pubKey,n)}}finally{yield this.interactionService.dispatchEvent(p.APP_PORT,"request-sign-end",{})}}))}sign(e,t,n){return a(this,void 0,void 0,(function*(){return this.keyRing.sign(e,t,yield this.chainsService.getChainCoinType(t),n)}))}addMnemonicKey(e,t,n){return a(this,void 0,void 0,(function*(){return this.keyRing.addMnemonicKey(e,t,n)}))}addPrivateKey(e,t){return a(this,void 0,void 0,(function*(){return this.keyRing.addPrivateKey(e,t)}))}addLedgerKey(e,t,n){return a(this,void 0,void 0,(function*(){return this.keyRing.addLedgerKey(e,t,n)}))}changeKeyStoreFromMultiKeyStore(e){return a(this,void 0,void 0,(function*(){try{return yield this.keyRing.changeKeyStoreFromMultiKeyStore(e)}finally{yield this.interactionService.dispatchEvent(p.WEBPAGE_PORT,"keystore-changed",{})}}))}getMultiKeyStoreInfo(){return this.keyRing.getMultiKeyStoreInfo()}isKeyStoreCoinTypeSet(e){return this.keyRing.isKeyStoreCoinTypeSet(e)}setKeyStoreCoinType(e,t){return a(this,void 0,void 0,(function*(){yield this.keyRing.setKeyStoreCoinType(e,t)}))}getKeyStoreBIP44Selectables(e,t){return a(this,void 0,void 0,(function*(){if(this.isKeyStoreCoinTypeSet(e))return[];const n=[],r=yield this.chainsService.getChainInfo(e);for(const e of t){const t=yield this.keyRing.getKeyFromCoinType(e.coinType),i=new u.Bech32Address(t.address).toBech32(r.bech32Config.bech32PrefixAccAddr);n.push({path:e,bech32Address:i})}return n}))}};v=r([s.singleton(),o(0,s.inject(c.TYPES.KeyRingStore)),o(1,s.inject(c.TYPES.ChainsEmbedChainInfos)),o(2,s.inject(s.delay(()=>h.InteractionService))),o(3,s.inject(s.delay(()=>f.ChainsService))),o(4,s.inject(s.delay(()=>m.PermissionService))),o(5,s.inject(d.LedgerService)),o(6,s.inject(c.TYPES.RNG)),i("design:paramtypes",[Object,Array,h.InteractionService,f.ChainsService,m.PermissionService,d.LedgerService,Function])],v),t.KeyRingService=v},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(343),t),i(n(189),t),i(n(344),t)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionService=void 0;const s=n(43),c=n(52),l=n(83),u=n(352),f=n(58),d=n(103),p=n(11);let h=class{constructor(e,t,n,r,i){this.kvStore=e,this.interactionService=t,this.chainsService=n,this.keyRingService=r,this.permissionMap={},this.privilegedOrigins=new Map,this.onChainRemoved=e=>{this.removeAllPermissions(e)};for(const e of i)this.privilegedOrigins.set(e,!0);this.restore(),this.chainsService.addChainRemovedHandler(this.onChainRemoved)}checkOrGrantBasicAccessPermission(e,t,n){return a(this,void 0,void 0,(function*(){yield this.keyRingService.enable(e),"string"==typeof t&&(t=[t]);const r=[];for(const e of t)this.hasPermisson(e,u.getBasicAccessPermissionType(),n)||r.push(e);r.length>0&&(yield this.grantBasicAccessPermission(e,r,[n])),yield this.checkBasicAccessPermission(e,t,n)}))}grantPermission(e,t,n,r,i){return a(this,void 0,void 0,(function*(){if(e.isInternalMsg)return;const o={chainIds:n,type:r,origins:i};yield this.interactionService.waitApprove(e,t,u.INTERACTION_TYPE_PERMISSION,o),yield this.addPermission(n,r,i)}))}grantBasicAccessPermission(e,t,n){return a(this,void 0,void 0,(function*(){for(const e of t)yield this.chainsService.getChainInfo(e);yield this.grantPermission(e,"/access",t,u.getBasicAccessPermissionType(),n)}))}checkPermission(e,t,n,r){if(!e.isInternalMsg&&!this.hasPermisson(t,n,r))throw new Error(r+" is not permitted")}checkBasicAccessPermission(e,t,n){return a(this,void 0,void 0,(function*(){for(const r of t)yield this.chainsService.getChainInfo(r),this.checkPermission(e,r,u.getBasicAccessPermissionType(),n)}))}hasPermisson(e,t,n){if(this.privilegedOrigins.get(n))return!0;const r=this.permissionMap[p.ChainIdHelper.parse(e).identifier];if(!r)return!1;const i=r[t];return!(!i||!i[n])}getPermissionOrigins(e,t){const n=[],r=this.permissionMap[p.ChainIdHelper.parse(e).identifier];if(!r)return[];const i=r[t];if(!i)return[];for(const e of Object.keys(i))i[e]&&n.push(e);return n}addPermission(e,t,n){return a(this,void 0,void 0,(function*(){for(const r of e){let e=this.permissionMap[p.ChainIdHelper.parse(r).identifier];e||(e={},this.permissionMap[p.ChainIdHelper.parse(r).identifier]=e);let i=e[t];i||(i={},e[t]=i);for(const e of n)i[e]=!0}yield this.save()}))}removePermission(e,t,n){return a(this,void 0,void 0,(function*(){const r=this.permissionMap[p.ChainIdHelper.parse(e).identifier];if(!r)return;const i=r[t];if(i){for(const e of n)delete i[e];yield this.save()}}))}removeAllPermissions(e){return a(this,void 0,void 0,(function*(){this.permissionMap[p.ChainIdHelper.parse(e).identifier]=void 0,yield this.save()}))}restore(){return a(this,void 0,void 0,(function*(){const e=yield this.kvStore.get("permissionMap");e&&(this.permissionMap=e)}))}save(){return a(this,void 0,void 0,(function*(){yield this.kvStore.set("permissionMap",this.permissionMap)}))}};h=r([s.singleton(),o(0,s.inject(c.TYPES.PermissionStore)),o(1,s.inject(s.delay(()=>l.InteractionService))),o(2,s.inject(f.ChainsService)),o(3,s.inject(s.delay(()=>d.KeyRingService))),o(4,s.inject(c.TYPES.PermissionServicePrivilegedOrigins)),i("design:paramtypes",[Object,l.InteractionService,f.ChainsService,d.KeyRingService,Array])],h),t.PermissionService=h},function(e,t,n){"use strict";function r(){return"basic-access"}Object.defineProperty(t,"__esModule",{value:!0}),t.isBasicAccessPermissionType=t.getBasicAccessPermissionType=t.INTERACTION_TYPE_PERMISSION=void 0,t.INTERACTION_TYPE_PERMISSION="permission",t.getBasicAccessPermissionType=r,t.isBasicAccessPermissionType=function(e){return"basic-access"===e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="keyring"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="permission"},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Fee=t.ModeInfo_Multi=t.ModeInfo_Single=t.ModeInfo=t.SignerInfo=t.AuthInfo=t.TxBody=t.SignDoc=t.TxRaw=t.Tx=t.protobufPackage=void 0;const i=r(n(113)),o=n(138),a=n(356),s=n(357),c=n(137),l=r(n(48));t.protobufPackage="cosmos.tx.v1beta1";const u={};t.Tx={encode(e,n=l.default.Writer.create()){void 0!==e.body&&void 0!==e.body&&t.TxBody.encode(e.body,n.uint32(10).fork()).ldelim(),void 0!==e.authInfo&&void 0!==e.authInfo&&t.AuthInfo.encode(e.authInfo,n.uint32(18).fork()).ldelim();for(const t of e.signatures)n.uint32(26).bytes(t);return n},decode(e,n){const r=e instanceof Uint8Array?new l.default.Reader(e):e;let i=void 0===n?r.len:r.pos+n;const o=Object.assign({},u);for(o.signatures=[];r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:o.body=t.TxBody.decode(r,r.uint32());break;case 2:o.authInfo=t.AuthInfo.decode(r,r.uint32());break;case 3:o.signatures.push(r.bytes());break;default:r.skipType(7&e)}}return o},fromJSON(e){const n=Object.assign({},u);if(n.signatures=[],void 0!==e.body&&null!==e.body?n.body=t.TxBody.fromJSON(e.body):n.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?n.authInfo=t.AuthInfo.fromJSON(e.authInfo):n.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures)for(const t of e.signatures)n.signatures.push(k(t));return n},fromPartial(e){const n=Object.assign({},u);if(n.signatures=[],void 0!==e.body&&null!==e.body?n.body=t.TxBody.fromPartial(e.body):n.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?n.authInfo=t.AuthInfo.fromPartial(e.authInfo):n.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures)for(const t of e.signatures)n.signatures.push(t);return n},toJSON(e){const n={};return void 0!==e.body&&(n.body=e.body?t.TxBody.toJSON(e.body):void 0),void 0!==e.authInfo&&(n.authInfo=e.authInfo?t.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?n.signatures=e.signatures.map(e=>S(void 0!==e?e:new Uint8Array)):n.signatures=[],n}};const f={};t.TxRaw={encode(e,t=l.default.Writer.create()){t.uint32(10).bytes(e.bodyBytes),t.uint32(18).bytes(e.authInfoBytes);for(const n of e.signatures)t.uint32(26).bytes(n);return t},decode(e,t){const n=e instanceof Uint8Array?new l.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const i=Object.assign({},f);for(i.signatures=[];n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:i.bodyBytes=n.bytes();break;case 2:i.authInfoBytes=n.bytes();break;case 3:i.signatures.push(n.bytes());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},f);if(t.signatures=[],void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=k(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=k(e.authInfoBytes)),void 0!==e.signatures&&null!==e.signatures)for(const n of e.signatures)t.signatures.push(k(n));return t},fromPartial(e){const t=Object.assign({},f);if(t.signatures=[],void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.signatures&&null!==e.signatures)for(const n of e.signatures)t.signatures.push(n);return t},toJSON(e){const t={};return void 0!==e.bodyBytes&&(t.bodyBytes=S(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=S(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),e.signatures?t.signatures=e.signatures.map(e=>S(void 0!==e?e:new Uint8Array)):t.signatures=[],t}};const d={chainId:"",accountNumber:i.default.UZERO};t.SignDoc={encode:(e,t=l.default.Writer.create())=>(t.uint32(10).bytes(e.bodyBytes),t.uint32(18).bytes(e.authInfoBytes),t.uint32(26).string(e.chainId),t.uint32(32).uint64(e.accountNumber),t),decode(e,t){const n=e instanceof Uint8Array?new l.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const i=Object.assign({},d);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:i.bodyBytes=n.bytes();break;case 2:i.authInfoBytes=n.bytes();break;case 3:i.chainId=n.string();break;case 4:i.accountNumber=n.uint64();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},d);return void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=k(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=k(e.authInfoBytes)),void 0!==e.chainId&&null!==e.chainId?t.chainId=String(e.chainId):t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=i.default.fromString(e.accountNumber):t.accountNumber=i.default.UZERO,t},fromPartial(e){const t=Object.assign({},d);return void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=i.default.UZERO,t},toJSON(e){const t={};return void 0!==e.bodyBytes&&(t.bodyBytes=S(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=S(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||i.default.UZERO).toString()),t}};const p={memo:"",timeoutHeight:i.default.UZERO};t.TxBody={encode(e,t=l.default.Writer.create()){for(const n of e.messages)o.Any.encode(n,t.uint32(10).fork()).ldelim();t.uint32(18).string(e.memo),t.uint32(24).uint64(e.timeoutHeight);for(const n of e.extensionOptions)o.Any.encode(n,t.uint32(8186).fork()).ldelim();for(const n of e.nonCriticalExtensionOptions)o.Any.encode(n,t.uint32(16378).fork()).ldelim();return t},decode(e,t){const n=e instanceof Uint8Array?new l.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const i=Object.assign({},p);for(i.messages=[],i.extensionOptions=[],i.nonCriticalExtensionOptions=[];n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:i.messages.push(o.Any.decode(n,n.uint32()));break;case 2:i.memo=n.string();break;case 3:i.timeoutHeight=n.uint64();break;case 1023:i.extensionOptions.push(o.Any.decode(n,n.uint32()));break;case 2047:i.nonCriticalExtensionOptions.push(o.Any.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},p);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages)for(const n of e.messages)t.messages.push(o.Any.fromJSON(n));if(void 0!==e.memo&&null!==e.memo?t.memo=String(e.memo):t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=i.default.fromString(e.timeoutHeight):t.timeoutHeight=i.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions)for(const n of e.extensionOptions)t.extensionOptions.push(o.Any.fromJSON(n));if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions)for(const n of e.nonCriticalExtensionOptions)t.nonCriticalExtensionOptions.push(o.Any.fromJSON(n));return t},fromPartial(e){const t=Object.assign({},p);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages)for(const n of e.messages)t.messages.push(o.Any.fromPartial(n));if(void 0!==e.memo&&null!==e.memo?t.memo=e.memo:t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=e.timeoutHeight:t.timeoutHeight=i.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions)for(const n of e.extensionOptions)t.extensionOptions.push(o.Any.fromPartial(n));if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions)for(const n of e.nonCriticalExtensionOptions)t.nonCriticalExtensionOptions.push(o.Any.fromPartial(n));return t},toJSON(e){const t={};return e.messages?t.messages=e.messages.map(e=>e?o.Any.toJSON(e):void 0):t.messages=[],void 0!==e.memo&&(t.memo=e.memo),void 0!==e.timeoutHeight&&(t.timeoutHeight=(e.timeoutHeight||i.default.UZERO).toString()),e.extensionOptions?t.extensionOptions=e.extensionOptions.map(e=>e?o.Any.toJSON(e):void 0):t.extensionOptions=[],e.nonCriticalExtensionOptions?t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map(e=>e?o.Any.toJSON(e):void 0):t.nonCriticalExtensionOptions=[],t}};const h={};t.AuthInfo={encode(e,n=l.default.Writer.create()){for(const r of e.signerInfos)t.SignerInfo.encode(r,n.uint32(10).fork()).ldelim();return void 0!==e.fee&&void 0!==e.fee&&t.Fee.encode(e.fee,n.uint32(18).fork()).ldelim(),n},decode(e,n){const r=e instanceof Uint8Array?new l.default.Reader(e):e;let i=void 0===n?r.len:r.pos+n;const o=Object.assign({},h);for(o.signerInfos=[];r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:o.signerInfos.push(t.SignerInfo.decode(r,r.uint32()));break;case 2:o.fee=t.Fee.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){const n=Object.assign({},h);if(n.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos)for(const r of e.signerInfos)n.signerInfos.push(t.SignerInfo.fromJSON(r));return void 0!==e.fee&&null!==e.fee?n.fee=t.Fee.fromJSON(e.fee):n.fee=void 0,n},fromPartial(e){const n=Object.assign({},h);if(n.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos)for(const r of e.signerInfos)n.signerInfos.push(t.SignerInfo.fromPartial(r));return void 0!==e.fee&&null!==e.fee?n.fee=t.Fee.fromPartial(e.fee):n.fee=void 0,n},toJSON(e){const n={};return e.signerInfos?n.signerInfos=e.signerInfos.map(e=>e?t.SignerInfo.toJSON(e):void 0):n.signerInfos=[],void 0!==e.fee&&(n.fee=e.fee?t.Fee.toJSON(e.fee):void 0),n}};const m={sequence:i.default.UZERO};t.SignerInfo={encode:(e,n=l.default.Writer.create())=>(void 0!==e.publicKey&&void 0!==e.publicKey&&o.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.modeInfo&&void 0!==e.modeInfo&&t.ModeInfo.encode(e.modeInfo,n.uint32(18).fork()).ldelim(),n.uint32(24).uint64(e.sequence),n),decode(e,n){const r=e instanceof Uint8Array?new l.default.Reader(e):e;let i=void 0===n?r.len:r.pos+n;const a=Object.assign({},m);for(;r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:a.publicKey=o.Any.decode(r,r.uint32());break;case 2:a.modeInfo=t.ModeInfo.decode(r,r.uint32());break;case 3:a.sequence=r.uint64();break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=Object.assign({},m);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=o.Any.fromJSON(e.publicKey):n.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?n.modeInfo=t.ModeInfo.fromJSON(e.modeInfo):n.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=i.default.fromString(e.sequence):n.sequence=i.default.UZERO,n},fromPartial(e){const n=Object.assign({},m);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=o.Any.fromPartial(e.publicKey):n.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?n.modeInfo=t.ModeInfo.fromPartial(e.modeInfo):n.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=e.sequence:n.sequence=i.default.UZERO,n},toJSON(e){const n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?o.Any.toJSON(e.publicKey):void 0),void 0!==e.modeInfo&&(n.modeInfo=e.modeInfo?t.ModeInfo.toJSON(e.modeInfo):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||i.default.UZERO).toString()),n}};const b={};t.ModeInfo={encode:(e,n=l.default.Writer.create())=>(void 0!==e.single&&t.ModeInfo_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.ModeInfo_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof Uint8Array?new l.default.Reader(e):e;let i=void 0===n?r.len:r.pos+n;const o=Object.assign({},b);for(;r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:o.single=t.ModeInfo_Single.decode(r,r.uint32());break;case 2:o.multi=t.ModeInfo_Multi.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){const n=Object.assign({},b);return void 0!==e.single&&null!==e.single?n.single=t.ModeInfo_Single.fromJSON(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.ModeInfo_Multi.fromJSON(e.multi):n.multi=void 0,n},fromPartial(e){const n=Object.assign({},b);return void 0!==e.single&&null!==e.single?n.single=t.ModeInfo_Single.fromPartial(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.ModeInfo_Multi.fromPartial(e.multi):n.multi=void 0,n},toJSON(e){const n={};return void 0!==e.single&&(n.single=e.single?t.ModeInfo_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.ModeInfo_Multi.toJSON(e.multi):void 0),n}};const y={mode:0};t.ModeInfo_Single={encode:(e,t=l.default.Writer.create())=>(t.uint32(8).int32(e.mode),t),decode(e,t){const n=e instanceof Uint8Array?new l.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const i=Object.assign({},y);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:i.mode=n.int32();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},y);return void 0!==e.mode&&null!==e.mode?t.mode=a.signModeFromJSON(e.mode):t.mode=0,t},fromPartial(e){const t=Object.assign({},y);return void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,t},toJSON(e){const t={};return void 0!==e.mode&&(t.mode=a.signModeToJSON(e.mode)),t}};const g={};t.ModeInfo_Multi={encode(e,n=l.default.Writer.create()){void 0!==e.bitarray&&void 0!==e.bitarray&&s.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();for(const r of e.modeInfos)t.ModeInfo.encode(r,n.uint32(18).fork()).ldelim();return n},decode(e,n){const r=e instanceof Uint8Array?new l.default.Reader(e):e;let i=void 0===n?r.len:r.pos+n;const o=Object.assign({},g);for(o.modeInfos=[];r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:o.bitarray=s.CompactBitArray.decode(r,r.uint32());break;case 2:o.modeInfos.push(t.ModeInfo.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return o},fromJSON(e){const n=Object.assign({},g);if(n.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=s.CompactBitArray.fromJSON(e.bitarray):n.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos)for(const r of e.modeInfos)n.modeInfos.push(t.ModeInfo.fromJSON(r));return n},fromPartial(e){const n=Object.assign({},g);if(n.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=s.CompactBitArray.fromPartial(e.bitarray):n.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos)for(const r of e.modeInfos)n.modeInfos.push(t.ModeInfo.fromPartial(r));return n},toJSON(e){const n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?s.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?n.modeInfos=e.modeInfos.map(e=>e?t.ModeInfo.toJSON(e):void 0):n.modeInfos=[],n}};const v={gasLimit:i.default.UZERO,payer:"",granter:""};t.Fee={encode(e,t=l.default.Writer.create()){for(const n of e.amount)c.Coin.encode(n,t.uint32(10).fork()).ldelim();return t.uint32(16).uint64(e.gasLimit),t.uint32(26).string(e.payer),t.uint32(34).string(e.granter),t},decode(e,t){const n=e instanceof Uint8Array?new l.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const i=Object.assign({},v);for(i.amount=[];n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:i.amount.push(c.Coin.decode(n,n.uint32()));break;case 2:i.gasLimit=n.uint64();break;case 3:i.payer=n.string();break;case 4:i.granter=n.string();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},v);if(t.amount=[],void 0!==e.amount&&null!==e.amount)for(const n of e.amount)t.amount.push(c.Coin.fromJSON(n));return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=i.default.fromString(e.gasLimit):t.gasLimit=i.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=String(e.payer):t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",t},fromPartial(e){const t=Object.assign({},v);if(t.amount=[],void 0!==e.amount&&null!==e.amount)for(const n of e.amount)t.amount.push(c.Coin.fromPartial(n));return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=e.gasLimit:t.gasLimit=i.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=e.payer:t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",t},toJSON(e){const t={};return e.amount?t.amount=e.amount.map(e=>e?c.Coin.toJSON(e):void 0):t.amount=[],void 0!==e.gasLimit&&(t.gasLimit=(e.gasLimit||i.default.UZERO).toString()),void 0!==e.payer&&(t.payer=e.payer),void 0!==e.granter&&(t.granter=e.granter),t}};var w=(()=>{if(void 0!==w)return w;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object")})();const _=w.atob||(e=>w.Buffer.from(e,"base64").toString("binary"));function k(e){const t=_(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}const x=w.btoa||(e=>w.Buffer.from(e,"binary").toString("base64"));function S(e){const t=[];for(let n=0;n<e.byteLength;++n)t.push(String.fromCharCode(e[n]));return x(t.join(""))}}).call(this,n(12))},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureDescriptor_Data_Multi=t.SignatureDescriptor_Data_Single=t.SignatureDescriptor_Data=t.SignatureDescriptor=t.SignatureDescriptors=t.signModeToJSON=t.signModeFromJSON=t.SignMode=t.protobufPackage=void 0;const i=n(138),o=r(n(113)),a=n(357),s=r(n(48));var c;function l(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return c.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return c.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return c.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return c.SIGN_MODE_LEGACY_AMINO_JSON;case-1:case"UNRECOGNIZED":default:return c.UNRECOGNIZED}}function u(e){switch(e){case c.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case c.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case c.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case c.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";default:return"UNKNOWN"}}t.protobufPackage="cosmos.tx.signing.v1beta1",function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.SignMode||(t.SignMode={})),t.signModeFromJSON=l,t.signModeToJSON=u;const f={};t.SignatureDescriptors={encode(e,n=s.default.Writer.create()){for(const r of e.signatures)t.SignatureDescriptor.encode(r,n.uint32(10).fork()).ldelim();return n},decode(e,n){const r=e instanceof Uint8Array?new s.default.Reader(e):e;let i=void 0===n?r.len:r.pos+n;const o=Object.assign({},f);for(o.signatures=[];r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:o.signatures.push(t.SignatureDescriptor.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return o},fromJSON(e){const n=Object.assign({},f);if(n.signatures=[],void 0!==e.signatures&&null!==e.signatures)for(const r of e.signatures)n.signatures.push(t.SignatureDescriptor.fromJSON(r));return n},fromPartial(e){const n=Object.assign({},f);if(n.signatures=[],void 0!==e.signatures&&null!==e.signatures)for(const r of e.signatures)n.signatures.push(t.SignatureDescriptor.fromPartial(r));return n},toJSON(e){const n={};return e.signatures?n.signatures=e.signatures.map(e=>e?t.SignatureDescriptor.toJSON(e):void 0):n.signatures=[],n}};const d={sequence:o.default.UZERO};t.SignatureDescriptor={encode:(e,n=s.default.Writer.create())=>(void 0!==e.publicKey&&void 0!==e.publicKey&&i.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.data&&void 0!==e.data&&t.SignatureDescriptor_Data.encode(e.data,n.uint32(18).fork()).ldelim(),n.uint32(24).uint64(e.sequence),n),decode(e,n){const r=e instanceof Uint8Array?new s.default.Reader(e):e;let o=void 0===n?r.len:r.pos+n;const a=Object.assign({},d);for(;r.pos<o;){const e=r.uint32();switch(e>>>3){case 1:a.publicKey=i.Any.decode(r,r.uint32());break;case 2:a.data=t.SignatureDescriptor_Data.decode(r,r.uint32());break;case 3:a.sequence=r.uint64();break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=Object.assign({},d);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=i.Any.fromPartial(e.publicKey):n.publicKey=void 0,void 0!==e.data&&null!==e.data?n.data=t.SignatureDescriptor_Data.fromJSON(e.data):n.data=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=o.default.fromString(e.sequence):n.sequence=o.default.UZERO,n},fromPartial(e){const n=Object.assign({},d);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=i.Any.fromPartial(e.publicKey):n.publicKey=void 0,void 0!==e.data&&null!==e.data?n.data=t.SignatureDescriptor_Data.fromPartial(e.data):n.data=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=e.sequence:n.sequence=o.default.UZERO,n},toJSON(e){const n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?i.Any.toJSON(e.publicKey):void 0),void 0!==e.data&&(n.data=e.data?t.SignatureDescriptor_Data.toJSON(e.data):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||o.default.UZERO).toString()),n}};const p={};t.SignatureDescriptor_Data={encode:(e,n=s.default.Writer.create())=>(void 0!==e.single&&t.SignatureDescriptor_Data_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.SignatureDescriptor_Data_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n),decode(e,n){const r=e instanceof Uint8Array?new s.default.Reader(e):e;let i=void 0===n?r.len:r.pos+n;const o=Object.assign({},p);for(;r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:o.single=t.SignatureDescriptor_Data_Single.decode(r,r.uint32());break;case 2:o.multi=t.SignatureDescriptor_Data_Multi.decode(r,r.uint32());break;default:r.skipType(7&e)}}return o},fromJSON(e){const n=Object.assign({},p);return void 0!==e.single&&null!==e.single?n.single=t.SignatureDescriptor_Data_Single.fromJSON(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.SignatureDescriptor_Data_Multi.fromJSON(e.multi):n.multi=void 0,n},fromPartial(e){const n=Object.assign({},p);return void 0!==e.single&&null!==e.single?n.single=t.SignatureDescriptor_Data_Single.fromPartial(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.SignatureDescriptor_Data_Multi.fromPartial(e.multi):n.multi=void 0,n},toJSON(e){const n={};return void 0!==e.single&&(n.single=e.single?t.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),n}};const h={mode:0};t.SignatureDescriptor_Data_Single={encode:(e,t=s.default.Writer.create())=>(t.uint32(8).int32(e.mode),t.uint32(18).bytes(e.signature),t),decode(e,t){const n=e instanceof Uint8Array?new s.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const i=Object.assign({},h);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:i.mode=n.int32();break;case 2:i.signature=n.bytes();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},h);return void 0!==e.mode&&null!==e.mode?t.mode=l(e.mode):t.mode=0,void 0!==e.signature&&null!==e.signature&&(t.signature=function(e){const t=y(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}(e.signature)),t},fromPartial(e){const t=Object.assign({},h);return void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,void 0!==e.signature&&null!==e.signature?t.signature=e.signature:t.signature=new Uint8Array,t},toJSON(e){const t={};return void 0!==e.mode&&(t.mode=u(e.mode)),void 0!==e.signature&&(t.signature=function(e){const t=[];for(let n=0;n<e.byteLength;++n)t.push(String.fromCharCode(e[n]));return g(t.join(""))}(void 0!==e.signature?e.signature:new Uint8Array)),t}};const m={};t.SignatureDescriptor_Data_Multi={encode(e,n=s.default.Writer.create()){void 0!==e.bitarray&&void 0!==e.bitarray&&a.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();for(const r of e.signatures)t.SignatureDescriptor_Data.encode(r,n.uint32(18).fork()).ldelim();return n},decode(e,n){const r=e instanceof Uint8Array?new s.default.Reader(e):e;let i=void 0===n?r.len:r.pos+n;const o=Object.assign({},m);for(o.signatures=[];r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:o.bitarray=a.CompactBitArray.decode(r,r.uint32());break;case 2:o.signatures.push(t.SignatureDescriptor_Data.decode(r,r.uint32()));break;default:r.skipType(7&e)}}return o},fromJSON(e){const n=Object.assign({},m);if(n.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=a.CompactBitArray.fromJSON(e.bitarray):n.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures)for(const r of e.signatures)n.signatures.push(t.SignatureDescriptor_Data.fromJSON(r));return n},fromPartial(e){const n=Object.assign({},m);if(n.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=a.CompactBitArray.fromPartial(e.bitarray):n.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures)for(const r of e.signatures)n.signatures.push(t.SignatureDescriptor_Data.fromPartial(r));return n},toJSON(e){const n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?a.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?n.signatures=e.signatures.map(e=>e?t.SignatureDescriptor_Data.toJSON(e):void 0):n.signatures=[],n}};var b=(()=>{if(void 0!==b)return b;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object")})();const y=b.atob||(e=>b.Buffer.from(e,"base64").toString("binary"));const g=b.btoa||(e=>b.Buffer.from(e,"binary").toString("base64"))}).call(this,n(12))},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompactBitArray=t.MultiSignature=t.protobufPackage=void 0;const i=r(n(48));t.protobufPackage="cosmos.crypto.multisig.v1beta1";const o={};t.MultiSignature={encode(e,t=i.default.Writer.create()){for(const n of e.signatures)t.uint32(10).bytes(n);return t},decode(e,t){const n=e instanceof Uint8Array?new i.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const a=Object.assign({},o);for(a.signatures=[];n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.signatures.push(n.bytes());break;default:n.skipType(7&e)}}return a},fromJSON(e){const t=Object.assign({},o);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures)for(const n of e.signatures)t.signatures.push(l(n));return t},fromPartial(e){const t=Object.assign({},o);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures)for(const n of e.signatures)t.signatures.push(n);return t},toJSON(e){const t={};return e.signatures?t.signatures=e.signatures.map(e=>f(void 0!==e?e:new Uint8Array)):t.signatures=[],t}};const a={extraBitsStored:0};t.CompactBitArray={encode:(e,t=i.default.Writer.create())=>(t.uint32(8).uint32(e.extraBitsStored),t.uint32(18).bytes(e.elems),t),decode(e,t){const n=e instanceof Uint8Array?new i.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const o=Object.assign({},a);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.extraBitsStored=n.uint32();break;case 2:o.elems=n.bytes();break;default:n.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},a);return void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=Number(e.extraBitsStored):t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems&&(t.elems=l(e.elems)),t},fromPartial(e){const t=Object.assign({},a);return void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=e.extraBitsStored:t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems?t.elems=e.elems:t.elems=new Uint8Array,t},toJSON(e){const t={};return void 0!==e.extraBitsStored&&(t.extraBitsStored=e.extraBitsStored),void 0!==e.elems&&(t.elems=f(void 0!==e.elems?e.elems:new Uint8Array)),t}};var s=(()=>{if(void 0!==s)return s;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object")})();const c=s.atob||(e=>s.Buffer.from(e,"base64").toString("binary"));function l(e){const t=c(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}const u=s.btoa||(e=>s.Buffer.from(e,"binary").toString("base64"));function f(e){const t=[];for(let n=0;n<e.byteLength;++n)t.push(String.fromCharCode(e[n]));return u(t.join(""))}}).call(this,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCosmoshubPath=void 0;const r=n(50);t.makeCosmoshubPath=function(e){return[r.Slip10RawIndex.hardened(44),r.Slip10RawIndex.hardened(118),r.Slip10RawIndex.hardened(0),r.Slip10RawIndex.normal(0),r.Slip10RawIndex.normal(e)]}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SecretWasmService=void 0;const c=n(43),l=n(52),u=n(731),f=n(103),d=n(58),p=n(102),h=n(108),m=n(11),b=s(n(342)),y=n(2);let g=class{constructor(e,t,n,r){this.kvStore=e,this.chainsService=t,this.keyRingService=n,this.permissionService=r,this.debouncerMap=new Map,this.cacheEnigmaUtils=new Map,this.onChainRemoved=()=>{this.cacheEnigmaUtils=new Map},this.chainsService.addChainRemovedHandler(this.onChainRemoved)}getPubkey(e,t){return a(this,void 0,void 0,(function*(){const n=yield this.chainsService.getChainInfo(t);if("none"===(yield this.keyRingService.getKeyRingType()))throw new Error("Key ring is not initialized");const r=yield this.getSeed(e,n);return this.getEnigmaUtils(n,r).pubkey}))}getTxEncryptionKey(e,t,n){return a(this,void 0,void 0,(function*(){const r=yield this.chainsService.getChainInfo(t);if("none"===(yield this.keyRingService.getKeyRingType()))throw new Error("Key ring is not initialized");const i=yield this.getSeed(e,r);return this.getEnigmaUtils(r,i).getTxEncryptionKey(n)}))}encrypt(e,t,n,r){return a(this,void 0,void 0,(function*(){const i=yield this.chainsService.getChainInfo(t);if("none"===(yield this.keyRingService.getKeyRingType()))throw new Error("Key ring is not initialized");const o=yield this.getSeed(e,i),a=this.getEnigmaUtils(i,o);return yield a.encrypt(n,r)}))}decrypt(e,t,n,r){return a(this,void 0,void 0,(function*(){const i=yield this.chainsService.getChainInfo(t);if("none"===(yield this.keyRingService.getKeyRingType()))throw new Error("Key ring is not initialized");const o=yield this.getSeed(e,i),a=this.getEnigmaUtils(i,o);return yield a.decrypt(n,r)}))}getEnigmaUtils(e,t){const n=`${e.chainId}-${y.Buffer.from(t).toString("hex")}`;if(this.cacheEnigmaUtils.has(n))return this.cacheEnigmaUtils.get(n);const r=new u.EnigmaUtils(e.rest,t);return this.cacheEnigmaUtils.set(n,r),r}getSeed(e,t){return a(this,void 0,void 0,(function*(){const n=yield this.keyRingService.getKey(t.chainId),r=new m.Bech32Address(n.address).toBech32(t.bech32Config.bech32PrefixAccAddr),i=`${e.isInternalMsg}/${t.chainId}/${r}`;this.debouncerMap.has(i)||this.debouncerMap.set(i,b.default.promise(this.getSeedInner.bind(this)));const o=this.debouncerMap.get(i);return yield o(e,t,r)}))}getSeedInner(e,t,n){return a(this,void 0,void 0,(function*(){const r=`seed-${t.chainId}-${n}`,i=yield this.kvStore.get(r);if(i)return y.Buffer.from(i,"hex");const o=h.Hash.sha256(y.Buffer.from(yield this.keyRingService.sign(e,t.chainId,y.Buffer.from(JSON.stringify({account_number:0,chain_id:t.chainId,fee:[],memo:"Create Keplr Secret encryption key. Only approve requests by Keplr.",msgs:[],sequence:0})))));return yield this.kvStore.set(r,y.Buffer.from(o).toString("hex")),o}))}};g=r([c.singleton(),o(0,c.inject(l.TYPES.SecretWasmStore)),o(1,c.inject(d.ChainsService)),o(2,c.inject(c.delay(()=>f.KeyRingService))),o(3,c.inject(c.delay(()=>p.PermissionService))),i("design:paramtypes",[Object,d.ChainsService,f.KeyRingService,p.PermissionService])],g),t.SecretWasmService=g},function(e,t,n){"use strict";(function(e){var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(117)),o=n(361);class a{static toHex(e){let t="";for(const n of e)t+=("0"+n.toString(16)).slice(-2);return t}static fromHex(e){if(e.length%2!=0)throw new Error("hex string length must be a multiple of 2");const t=[];for(let n=0;n<e.length;n+=2){const r=e.substr(n,2);if(!r.match(/[0-9a-f]{2}/i))throw new Error("hex string contains invalid characters");t.push(parseInt(r,16))}return new Uint8Array(t)}static toBase64(e){return i.fromByteArray(e)}static fromBase64(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return i.toByteArray(e)}static toAscii(e){return Uint8Array.from(e.split("").map(e=>{const t=e.charCodeAt(0);if(t<32||t>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+t);return t}))}static fromAscii(e){return(t=Array.from(e),t.map(e=>{if(e<32||e>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+e);return String.fromCharCode(e)})).join("");var t}static toUtf8(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):new Uint8Array(e.from(t,"utf8"))}static fromUtf8(t){if("undefined"!=typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(t);if(!a.isValidUtf8(t))throw new Error("Invalid UTF8 data");return e.from(t).toString("utf8")}static fromRfc3339(e){const t=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/.exec(e);if(!t)throw new Error("Date string is not in RFC3339 format");const n=+t[1],r=+t[2],i=+t[3],a=+t[4],s=+t[5],c=+t[6],l=t[7]?Math.floor(1e3*+t[7]):0;let u,f,d;"Z"===t[8]?(u=1,f=0,d=0):(u="-"===t[8].substring(0,1)?-1:1,f=+t[8].substring(1,3),d=+t[8].substring(4,6));const p=u*(60*f+d)*60;return new o.ReadonlyDate(o.ReadonlyDate.UTC(n,r-1,i,a,s,c,l)-1e3*p)}static toRfc3339(e){function t(e,t=2){const n="00000"+e.toString();return n.substring(n.length-t)}return`${e.getUTCFullYear()}-${t(e.getUTCMonth()+1)}-${t(e.getUTCDate())}T${t(e.getUTCHours())}:${t(e.getUTCMinutes())}:${t(e.getUTCSeconds())}.${t(e.getUTCMilliseconds(),3)}Z`}static isValidUtf8(t){const n=e.from(e.from(t).toString("utf8"),"utf8");return 0===e.compare(e.from(t),n)}}t.Encoding=a}).call(this,n(2).Buffer)},function(e,t){e.exports={ReadonlyDate:Date}},function(e,t,n){"use strict";(function(e){function n(e){return"object"==typeof e&&null!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNonNullObject=n,t.isUint8Array=function(t){return!!n(t)&&("[object Uint8Array]"===Object.prototype.toString.call(t)&&(void 0===e||void 0===e.isBuffer||!e.isBuffer(t)))}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(748);Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return r.assert}});var i=n(749);Object.defineProperty(t,"sleep",{enumerable:!0,get:function(){return i.sleep}});var o=n(750);Object.defineProperty(t,"isNonNullObject",{enumerable:!0,get:function(){return o.isNonNullObject}}),Object.defineProperty(t,"isUint8Array",{enumerable:!0,get:function(){return o.isUint8Array}})},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(69));class o{constructor(e){if(!o.mnemonicMatcher.test(e))throw new Error("Invalid mnemonic format");const t=e.split(" "),n=[12,15,18,21,24];if(-1===n.indexOf(t.length))throw new Error(`Invalid word count in mnemonic (allowed: ${n} got: ${t.length})`);for(const e of t)if(-1===o.wordlist.indexOf(e))throw new Error("Mnemonic contains invalid word");i.mnemonicToEntropy(e),this.data=e}toString(){return this.data}}t.EnglishMnemonic=o,o.wordlist=i.wordlists.english,o.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Hmac=class{constructor(e,t){const n=(new e).blockSize;this.hash=t=>(new e).update(t).digest();let r=t;if(r.length>n&&(r=this.hash(r)),r.length<n){const e=new Uint8Array(n-r.length);r=new Uint8Array([...r,...e])}this.oKeyPad=r.map(e=>92^e),this.iKeyPad=r.map(e=>54^e),this.messageHasher=new e,this.blockSize=n,this.update(this.iKeyPad)}update(e){return this.messageHasher.update(e),this}digest(){const e=this.messageHasher.digest();return this.hash(new Uint8Array([...this.oKeyPad,...e]))}}},function(e,t,n){"use strict";function r(e){let t=0;for(const n of e){if(0!==n)break;t++}return e.slice(t)}Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e,t){if(e.length>32||0===e.length||0===e[0])throw new Error("Unsigned integer r must be encoded as unpadded big endian.");if(t.length>32||0===t.length||0===t[0])throw new Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:e,s:t}}static fromFixedLength(e){if(64!==e.length)throw new Error(`Got invalid data length: ${e.length}. Expected 2x 32 bytes for the pair (r, s)`);return new i(r(e.slice(0,32)),r(e.slice(32,64)))}static fromDer(e){let t=0;if(48!==e[t++])throw new Error("Prefix 0x30 expected");const n=e[t++];if(e.length-t!==n)throw new Error("Data length mismatch detected");if(2!==e[t++])throw new Error("INTEGER tag expected");const o=e[t++];if(o>=128)throw new Error("Decoding length values above 127 not supported");const a=e.slice(t,t+o);t+=o;if(2!==e[t++])throw new Error("INTEGER tag expected");const s=e[t++];if(s>=128)throw new Error("Decoding length values above 127 not supported");const c=e.slice(t,t+s);return t+=s,new i(r(a),r(c))}r(e){if(void 0===e)return this.data.r;{const t=e-this.data.r.length;if(t<0)throw new Error("Length too small to hold parameter r");const n=new Uint8Array(t);return new Uint8Array([...n,...this.data.r])}}s(e){if(void 0===e)return this.data.s;{const t=e-this.data.s.length;if(t<0)throw new Error("Length too small to hold parameter s");const n=new Uint8Array(t);return new Uint8Array([...n,...this.data.s])}}toDer(){const e=this.data.r[0]>=128?new Uint8Array([0,...this.data.r]):this.data.r,t=this.data.s[0]>=128?new Uint8Array([0,...this.data.s]):this.data.s,n=e.length,r=t.length,i=new Uint8Array([2,n,...e,2,r,...t]);return new Uint8Array([48,i.length,...i])}}t.Secp256k1Signature=i;class o extends i{constructor(e,t,n){if(super(e,t),!Number.isInteger(n))throw new Error("The recovery parameter must be an integer.");if(n<0||n>4)throw new Error("The recovery parameter must be one of 0, 1, 2, 3.");this.recovery=n}static fromFixedLength(e){if(65!==e.length)throw new Error(`Got invalid data length ${e.length}. Expected 32 + 32 + 1`);return new o(r(e.slice(0,32)),r(e.slice(32,64)),e[64])}toFixedLength(){return new Uint8Array([...this.r(32),...this.s(32),this.recovery])}}t.ExtendedSecp256k1Signature=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(76));t.Sha1=class{constructor(e){this.blockSize=64,this.impl=i.default("sha1"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}};t.Sha256=class{constructor(e){this.blockSize=64,this.impl=i.default("sha256"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}};t.Sha512=class{constructor(e){this.blockSize=128,this.impl=i.default("sha512"),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(761),o=n(769),a=n(42),s=n(770),c=r(n(68)),l=n(772),u=new i.PolyfillCryptoProvider,f=Uint8Array.from([0,0,0,0,0,0,0,0,0,2,75,234,216,223,105,153,8,82,194,2,219,14,0,151,193,161,46,166,55,215,233,109]);class d{constructor(e,t){this.consensusIoPubKey=new Uint8Array,this.apiUrl=e,this.seed=t||d.GenerateNewSeed();const{privkey:n,pubkey:r}=d.GenerateNewKeyPairFromSeed(this.seed);this.privkey=n,this.pubkey=r}static GenerateNewKeyPair(){return d.GenerateNewKeyPairFromSeed(d.GenerateNewSeed())}static GenerateNewSeed(){return s(32,{type:"Uint8Array"})}static GenerateNewKeyPairFromSeed(e){const{private:t,public:n}=o.generateKeyPair(e);return{privkey:t,pubkey:n}}async getConsensusIoPubKey(){if(32===this.consensusIoPubKey.length)return this.consensusIoPubKey;const{data:{result:{ioExchPubkey:e}}}=await c.default.get(this.apiUrl+"/reg/consensus-io-exch-pubkey",{headers:{"Content-Type":"application/json"}});return this.consensusIoPubKey=a.Encoding.fromBase64(e),this.consensusIoPubKey}async getTxEncryptionKey(e){const t=await this.getConsensusIoPubKey(),n=o.sharedKey(this.privkey,t),{key:r}=await l.compute(Uint8Array.from([...n,...e]),"SHA-256",32,"",f);return r}async encrypt(e,t){const n=s(32,{type:"Uint8Array"}),r=await this.getTxEncryptionKey(n),o=await i.SIV.importKey(r,"AES-SIV",u),c=a.Encoding.toUtf8(e+JSON.stringify(t)),l=await o.seal(c,[new Uint8Array]);return Uint8Array.from([...n,...this.pubkey,...l])}async decrypt(e,t){if(0===e.length)return new Uint8Array;const n=await this.getTxEncryptionKey(t),r=await i.SIV.importKey(n,"AES-SIV",u);return await r.open(e,[new Uint8Array])}getPubkey(){return Promise.resolve(this.pubkey)}}t.default=d,e.exports=d},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(140),o=n(370);class a{static importKey(e,t,n=new i.WebCryptoProvider){return r(this,void 0,void 0,(function*(){return new a(yield o.SIV.importKey(e,t,n))}))}constructor(e){this._siv=e}seal(e,t,n=new Uint8Array(0)){return r(this,void 0,void 0,(function*(){return this._siv.seal(e,[n,t])}))}open(e,t,n=new Uint8Array(0)){return r(this,void 0,void 0,(function*(){return this._siv.open(e,[n,t])}))}clear(){return this._siv.clear(),this}}t.AEAD=a},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(199),o=n(200),a=n(201),s=n(198),c=n(106),l=n(371),u=n(372),f=n(140);t.MAX_ASSOCIATED_DATA=126;class d{static importKey(e,t,n=new f.WebCryptoProvider){return r(this,void 0,void 0,(function*(){if(32!==e.length&&64!==e.length)throw new Error("AES-SIV: key must be 32 or 64-bytes (got "+e.length);const r=e.subarray(0,e.length/2|0),i=e.subarray(e.length/2|0);let o;switch(t){case"AES-SIV":case"AES-CMAC-SIV":o=yield l.CMAC.importKey(n,r);break;case"AES-PMAC-SIV":o=yield u.PMAC.importKey(n,r);break;default:throw new s.NotImplementedError("Miscreant: algorithm not supported: "+t)}const a=yield n.importCTRKey(i);return new d(o,a)}))}constructor(e,t){this._mac=e,this._ctr=t,this._tmp1=new c.default,this._tmp2=new c.default}seal(e,n){return r(this,void 0,void 0,(function*(){if(n.length>t.MAX_ASSOCIATED_DATA)throw new Error("AES-SIV: too many associated data items");const r=c.default.SIZE+e.length,i=new Uint8Array(r),o=yield this._s2v(n,e);return i.set(o),p(o),i.set(yield this._ctr.encryptCtr(o,e),o.length),i}))}open(e,n){return r(this,void 0,void 0,(function*(){if(n.length>t.MAX_ASSOCIATED_DATA)throw new Error("AES-SIV: too many associated data items");if(e.length<c.default.SIZE)throw new s.IntegrityError("AES-SIV: ciphertext is truncated");const r=e.subarray(0,c.default.SIZE),a=this._tmp1.data;a.set(r),p(a);const l=yield this._ctr.encryptCtr(a,e.subarray(c.default.SIZE)),u=yield this._s2v(n,l);if(!i.equal(u,r))throw o.wipe(l),new s.IntegrityError("AES-SIV: ciphertext verification failure!");return l}))}clear(){return this._tmp1.clear(),this._tmp2.clear(),this._ctr.clear(),this._mac.clear(),this}_s2v(e,t){return r(this,void 0,void 0,(function*(){this._mac.reset(),this._tmp1.clear(),yield this._mac.update(this._tmp1.data),this._tmp2.clear(),this._tmp2.data.set(yield this._mac.finish()),this._mac.reset();for(const t of e)yield this._mac.update(t),this._tmp1.clear(),this._tmp1.data.set(yield this._mac.finish()),this._mac.reset(),this._tmp2.dbl(),a.xor(this._tmp2.data,this._tmp1.data);if(this._tmp1.clear(),t.length>=c.default.SIZE){const e=t.length-c.default.SIZE;this._tmp1.data.set(t.subarray(e)),yield this._mac.update(t.subarray(0,e))}else this._tmp1.data.set(t),this._tmp1.data[t.length]=128,this._tmp2.dbl();return a.xor(this._tmp1.data,this._tmp2.data),yield this._mac.update(this._tmp1.data),this._mac.finish()}))}}function p(e){e[e.length-8]&=127,e[e.length-4]&=127}t.SIV=d},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(106),o=n(201);class a{constructor(e,t,n){this._cipher=e,this._subkey1=t,this._subkey2=n,this._bufferPos=0,this._finished=!1,this._buffer=new i.default}static importKey(e,t){return r(this,void 0,void 0,(function*(){const n=yield e.importBlockCipherKey(t),r=new i.default;yield n.encryptBlock(r),r.dbl();const o=r.clone();return o.dbl(),new a(n,r,o)}))}reset(){return this._buffer.clear(),this._bufferPos=0,this._finished=!1,this}clear(){this.reset(),this._subkey1.clear(),this._subkey2.clear()}update(e){return r(this,void 0,void 0,(function*(){const t=i.default.SIZE-this._bufferPos;let n=0,r=e.length;if(r>t){for(let n=0;n<t;n++)this._buffer.data[this._bufferPos+n]^=e[n];r-=t,n+=t,yield this._cipher.encryptBlock(this._buffer),this._bufferPos=0}for(;r>i.default.SIZE;){for(let t=0;t<i.default.SIZE;t++)this._buffer.data[t]^=e[n+t];r-=i.default.SIZE,n+=i.default.SIZE,yield this._cipher.encryptBlock(this._buffer)}for(let t=0;t<r;t++)this._buffer.data[this._bufferPos++]^=e[n+t];return this}))}finish(){return r(this,void 0,void 0,(function*(){if(!this._finished){const e=this._bufferPos<i.default.SIZE?this._subkey2:this._subkey1;o.xor(this._buffer.data,e.data),this._bufferPos<i.default.SIZE&&(this._buffer.data[this._bufferPos]^=128),yield this._cipher.encryptBlock(this._buffer),this._finished=!0}return this._buffer.clone().data}))}}t.CMAC=a},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(106),o=n(199),a=n(764),s=n(201);class c{constructor(e,t,n){this._finished=!1,this._cipher=e,this._L=t,this._LInv=n,this._buffer=new i.default,this._bufferPos=0,this._counter=0,this._offset=new i.default,this._tag=new i.default}static importKey(e,t){return r(this,void 0,void 0,(function*(){const n=yield e.importBlockCipherKey(t),r=new i.default;yield n.encryptBlock(r);const a=new Array(31);for(let e=0;e<31;e++)a[e]=r.clone(),r.dbl();const s=a[0].clone(),l=1&s.data[i.default.SIZE-1];for(let e=i.default.SIZE-1;e>0;e--){const t=o.select(1&s.data[e-1],128,0);s.data[e]=s.data[e]>>>1|t}return s.data[0]>>>=1,s.data[0]^=o.select(l,128,0),s.data[i.default.SIZE-1]^=o.select(l,i.default.R>>>1,0),new c(n,a,s)}))}reset(){return this._buffer.clear(),this._bufferPos=0,this._counter=0,this._offset.clear(),this._tag.clear(),this._finished=!1,this}clear(){this.reset(),this._cipher.clear()}update(e){return r(this,void 0,void 0,(function*(){if(this._finished)throw new Error("pmac: already finished");const t=i.default.SIZE-this._bufferPos;let n=0,r=e.length;for(r>t&&(this._buffer.data.set(e.slice(0,t),this._bufferPos),n+=t,r-=t,yield this._processBuffer());r>i.default.SIZE;)this._buffer.data.set(e.slice(n,n+i.default.SIZE)),n+=i.default.SIZE,r-=i.default.SIZE,yield this._processBuffer();return r>0&&(this._buffer.data.set(e.slice(n,n+r),this._bufferPos),this._bufferPos+=r),this}))}finish(){return r(this,void 0,void 0,(function*(){if(this._finished)throw new Error("pmac: already finished");return this._bufferPos===i.default.SIZE?(s.xor(this._tag.data,this._buffer.data),s.xor(this._tag.data,this._LInv.data)):(s.xor(this._tag.data,this._buffer.data.slice(0,this._bufferPos)),this._tag.data[this._bufferPos]^=128),yield this._cipher.encryptBlock(this._tag),this._finished=!0,this._tag.clone().data}))}_processBuffer(){return r(this,void 0,void 0,(function*(){s.xor(this._offset.data,this._L[a.ctz(this._counter+1)].data),s.xor(this._buffer.data,this._offset.data),this._counter++,yield this._cipher.encryptBlock(this._buffer),s.xor(this._tag.data,this._buffer.data),this._bufferPos=0}))}}t.PMAC=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={hashes:{"SHA3-512":{nodeName:"sha3-512",hashSize:64},"SHA3-384":{nodeName:"sha3-384",hashSize:48},"SHA3-256":{nodeName:"sha3-256",hashSize:32},"SHA3-224":{nodeName:"sha3-224",hashSize:28},"SHA-256":{nodeName:"sha256",hashSize:32},"SHA-384":{nodeName:"sha384",hashSize:48},"SHA-512":{nodeName:"sha512",hashSize:64},"SHA-1":{nodeName:"sha1",hashSize:20},MD5:{nodeName:"md5",hashSize:16}}}},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(779));t.compute=i.compute,t.default={compute:t.compute}},function(e,t){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=n},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(795));t.encodeBase64=function(e){var n="";return n="string"==typeof e?e:t.arrayBufferToString(e),i.getEnvBtoa()(n)},t.decodeBase64=function(e){var n=i.getEnvAtob()(e),r=t.stringToArrayBuffer(n);return a(r)};var o=function(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)&&void 0!==e.buffer?new Uint8Array(e.buffer):new Uint8Array(e)},a=function(e){for(var t=!0,n=0;n<e.length;n++)if(e[n]>126||e[n]<32&&13!==e[n]&&10!==e[n]){t=!1;break}var r=null;if(t){r="";for(n=0;n<e.length;n++)r+=String.fromCharCode(e[n])}else r=e;return r};t.encodeBase64Url=function(e){return t.encodeBase64(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},t.decodeBase64Url=function(e){return e=e.replace(/-/g,"+").replace(/_/g,"/"),t.decodeBase64(e)},t.arrayBufferToHexString=function(e){for(var t=o(e),n="",r=0;r<t.length;r++){var i=(255&t[r]).toString(16);n+=i=1===i.length?"0"+i:i}return n},t.hexStringToArrayBuffer=function(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t.push(parseInt(e.substr(r,2),16));return new Uint8Array(t)},t.arrayBufferToString=function(e){var t=o(e),n=new Array(t.length);return t.forEach((function(e,t){n[t]=e})),String.fromCharCode.apply(null,n)},t.stringToArrayBuffer=function(e){return new Uint8Array(e.length).map((function(t,n){return e.charCodeAt(n)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(105),i=n(42),o=n(194),a=n(203),s=n(197);t.CosmWasmClient=class{constructor(e,t,n=s.BroadcastMode.Block){this.codesCache=new Map,this.restClient=new s.RestClient(e,n,t)}async getChainId(){if(!this.chainId){const e=(await this.restClient.nodeInfo()).node_info.network;if(!e)throw new Error("Chain ID must not be empty");this.chainId=e}return this.chainId}async getHeight(){if(this.anyValidAddress){const{height:e}=await this.restClient.authAccounts(this.anyValidAddress);return parseInt(e,10)}{const e=await this.restClient.blocksLatest();return parseInt(e.block.header.height,10)}}async getIdentifier(e){const t=await this.restClient.encodeTx(e),n=new r.Sha256(t).digest();return i.Encoding.toHex(n).toUpperCase()}async getNonce(e){const t=await this.getAccount(e);if(!t)throw new Error("Account does not exist on chain. Send some tokens there before trying to query nonces.");return{accountNumber:t.accountNumber,sequence:t.sequence}}async getAccount(e){const t=(await this.restClient.authAccounts(e)).result.value;return""===t.address?void 0:(this.anyValidAddress=t.address,{address:t.address,balance:t.coins,pubkey:t.public_key?a.decodeBech32Pubkey(t.public_key):void 0,accountNumber:t.account_number,sequence:t.sequence})}async getBlock(e){const t=void 0!==e?await this.restClient.blocks(e):await this.restClient.blocksLatest();return{id:t.block_id.hash,header:{version:t.block.header.version,time:t.block.header.time,height:parseInt(t.block.header.height,10),chainId:t.block.header.chain_id},txs:(t.block.data.txs||[]).map(e=>i.Encoding.fromBase64(e))}}async searchTx(e,t={}){const n=t.minHeight||0,r=t.maxHeight||Number.MAX_SAFE_INTEGER;if(r<n)return[];function i(e){return`${e}&tx.minheight=${n}&tx.maxheight=${r}`}let o;if(function(e){return void 0!==e.id}(e))o=await this.txsQuery("tx.hash="+e.id);else if(function(e){return void 0!==e.height}(e))o=e.height<n||e.height>r?[]:await this.txsQuery("tx.height="+e.height);else if(function(e){return void 0!==e.sentFromOrTo}(e)){const t=i("message.module=bank&message.sender="+e.sentFromOrTo),n=i("message.module=bank&transfer.recipient="+e.sentFromOrTo),r=await this.txsQuery(t),a=await this.txsQuery(n),s=r.map(e=>e.hash);o=[...r,...a.filter(e=>!s.includes(e.hash))]}else{if(!function(e){return void 0!==e.tags}(e))throw new Error("Unknown query type");{const t=i(e.tags.map(e=>`${e.key}=${e.value}`).join("&"));o=await this.txsQuery(t)}}return o.filter(e=>e.height>=n&&e.height<=r)}async postTx(e){const t=await this.restClient.postTx(e);if(!t.txhash.match(/^([0-9A-F][0-9A-F])+$/))throw new Error("Received ill-formatted txhash. Must be non-empty upper-case hex");if(t.code)throw new Error(`Error when posting tx ${t.txhash}. Code: ${t.code}; Raw log: ${t.raw_log}`);return{logs:t.logs?o.parseLogs(t.logs):[],rawLog:t.raw_log||"",transactionHash:t.txhash,data:t.data||""}}async getCodes(){return(await this.restClient.listCodeInfo()).map(e=>(this.anyValidAddress=e.creator,{id:e.id,creator:e.creator,checksum:i.Encoding.toHex(i.Encoding.fromHex(e.data_hash)),source:e.source||void 0,builder:e.builder||void 0}))}async getCodeDetails(e){const t=this.codesCache.get(e);if(t)return t;const n=await this.restClient.getCode(e),r={id:n.id,creator:n.creator,checksum:i.Encoding.toHex(i.Encoding.fromHex(n.data_hash)),source:n.source||void 0,builder:n.builder||void 0,data:i.Encoding.fromBase64(n.data)};return this.codesCache.set(e,r),r}async getContracts(e){return(await this.restClient.listContractsByCodeId(e)).map(e=>({address:e.address,codeId:e.code_id,creator:e.creator,label:e.label}))}async getContract(e){const t=await this.restClient.getContractInfo(e);if(!t)throw new Error(`No contract found at address "${e}"`);return{address:t.address,codeId:t.code_id,creator:t.creator,label:t.label,initMsg:t.init_msg}}async queryContractSmart(e,t,n){try{return await this.restClient.queryContractSmart(e,t,n)}catch(t){throw t instanceof Error&&t.message.startsWith("not found: contract")?new Error(`No contract found at address "${e}"`):t}}async txsQuery(e){const t=await this.restClient.txsQuery(e+"&limit=100");if(parseInt(t.page_total,10)>1)throw new Error(`Found more results on the backend than we can process currently. Results: ${t.total_count}, supported: 100`);return t.txs.map(e=>({height:parseInt(e.height,10),hash:e.txhash,code:e.code||0,rawLog:e.raw_log,logs:o.parseLogs(e.logs||[]),tx:e.tx,timestamp:e.timestamp}))}getCodeHashByCodeId(e){return this.restClient.getCodeHashByCodeId(e)}getCodeHashByContractAddr(e){return this.restClient.getCodeHashByContractAddr(e)}async getNonceByTxId(e){const t=(await this.restClient.txById(e,!1)).tx.value.msg,n=[];for(const e of t){let t;t="wasm/MsgExecuteContract"===e.type?i.Encoding.fromBase64(e.value.msg).slice(0,32):"wasm/MsgInstantiateContract"===e.type?i.Encoding.fromBase64(e.value.init_msg).slice(0,32):null,n.push(t)}return n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="secret-wasm"},function(e,t,n){"use strict";var r,i=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundTxService=void 0;const l=n(43),u=c(n(68)),f=n(58),d=n(102),p=n(236),h=n(2);let m=r=class{constructor(e,t){this.chainsService=e,this.permissionService=t}sendTx(e,t,n){return s(this,void 0,void 0,(function*(){const i=yield this.chainsService.getChainInfo(e),o=u.default.create(Object.assign({baseURL:i.rest},i.restConfig));browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/temp-icon.svg"),title:"Tx is pending...",message:"Wait a second"});const a={tx:t,mode:n};try{const e=yield o.post("/txs",a);if(null!=e.data.code&&0!==e.data.code)throw new Error(e.data.raw_log);const t=h.Buffer.from(e.data.txhash,"hex"),n=new p.TendermintTxTracer(i.rpc,"/websocket");return n.traceTx(t).then(e=>{n.close(),r.processTxResultNotification(e)}),t}catch(e){throw console.log(e),r.processTxErrorNotification(e),e}}))}static processTxResultNotification(e){var t;try{if("commit"===e.mode){if(void 0!==e.checkTx.code&&0!==e.checkTx.code)throw new Error(e.checkTx.log);if(void 0!==e.deliverTx.code&&0!==e.deliverTx.code)throw new Error(e.deliverTx.log)}else if(null!=e.code&&0!==e.code){const n=null!==(t=e.log)&&void 0!==t?t:e.raw_log;throw new Error(n)}browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/temp-icon.svg"),title:"Tx succeeds",message:"Congratulations!"})}catch(e){r.processTxErrorNotification(e)}}static processTxErrorNotification(e){console.log(e);let t=e.message;const n=/code:\s*(-?\d+),\s*message:\s*(.+),\sdata:\s(.+)/g.exec(e.message);n&&4===n.length&&(t=n[3]);try{const n=JSON.parse(e.message);(null==n?void 0:n.message)&&(t=n.message)}catch(e){}try{const n=JSON.parse(e.message);if(n&&n.length>0)for(const e of n)if(!e.success){const n=JSON.parse(e.log);if(null==n?void 0:n.message){t=n.message;break}}}catch(e){}browser.notifications.create({type:"basic",iconUrl:browser.runtime.getURL("assets/temp-icon.svg"),title:"Tx failed",message:t})}};m=r=i([l.singleton(),a(0,l.inject(l.delay(()=>f.ChainsService))),a(1,l.inject(l.delay(()=>d.PermissionService))),o("design:paramtypes",[f.ChainsService,d.PermissionService])],m),t.BackgroundTxService=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="background-tx"},function(e,t,n){"use strict";var r,i=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.TokensService=void 0;const c=n(43),l=n(52),u=n(58),f=n(11),d=n(58),p=n(103),h=n(103),m=n(83),b=n(102),y=n(2),g=n(142),v=n(383);let w=r=class{constructor(e,t,n,r,i){this.kvStore=e,this.interactionService=t,this.permissionService=n,this.chainsService=r,this.keyRingService=i,this.onChainRemoved=e=>{this.clearTokens(e)},this.chainsService.addChainRemovedHandler(this.onChainRemoved)}suggestToken(e,t,n,r){return s(this,void 0,void 0,(function*(){const i=yield this.chainsService.getChainInfo(t);if((yield this.getTokens(t)).find(e=>"contractAddress"in e&&e.contractAddress===n))return;f.Bech32Address.validate(n,i.bech32Config.bech32PrefixAccAddr);const o={chainId:t,contractAddress:n,viewingKey:r},a=yield this.interactionService.waitApprove(e,"/setting/token/add",g.SuggestTokenMsg.type(),o);yield this.addToken(t,a)}))}addToken(e,t){return s(this,void 0,void 0,(function*(){const n=yield this.chainsService.getChainInfo(e);t=yield r.validateCurrency(n,t);const i=yield this.getTokens(e),o="type"in t&&"secret20"===t.type;let a=!1;for(const e of i)if(t.coinMinimalDenom===e.coinMinimalDenom){if(!o)return;a=!0}if(o){const n=yield this.getTokensFromChainAndAccount(e);if(a){const r=n.findIndex(e=>e.coinMinimalDenom===t.coinMinimalDenom);r>=0&&(n[r]=t,yield this.saveTokensToChainAndAccount(e,n))}else n.push(t),yield this.saveTokensToChainAndAccount(e,n)}else{const n=yield this.getTokensFromChain(e);n.push(t),yield this.saveTokensToChain(e,n)}}))}removeToken(e,t){return s(this,void 0,void 0,(function*(){const n=yield this.chainsService.getChainInfo(e);t=yield r.validateCurrency(n,t);const i=yield this.getTokens(e),o="type"in t&&"secret20"===t.type;let a=!1;for(const e of i)if(t.coinMinimalDenom===e.coinMinimalDenom){a=!0;break}if(a)if(o){const n=(yield this.getTokensFromChainAndAccount(e)).filter(e=>e.coinMinimalDenom!==t.coinMinimalDenom);yield this.saveTokensToChainAndAccount(e,n)}else{const n=(yield this.getTokensFromChain(e)).filter(e=>e.coinMinimalDenom!==t.coinMinimalDenom);yield this.saveTokensToChain(e,n)}}))}getTokens(e){var t,n;return s(this,void 0,void 0,(function*(){const r=f.ChainIdHelper.parse(e),i=null!==(t=yield this.kvStore.get(r.identifier))&&void 0!==t?t:[];let o=[];if(this.keyRingService.keyRingStatus===h.KeyRingStatus.UNLOCKED){const t=yield this.keyRingService.getKey(e);o=null!==(n=yield this.kvStore.get(`${r.identifier}-${y.Buffer.from(t.address).toString("hex")}`))&&void 0!==n?n:[]}return i.concat(o)}))}clearTokens(e){return s(this,void 0,void 0,(function*(){const t=f.ChainIdHelper.parse(e);yield this.kvStore.set(t.identifier,null);const n=yield this.getTokensToAccountReverse(e);for(const e of n)yield this.kvStore.set(`${t.identifier}-${e}`,null);yield this.setTokensToAccountReverse(e,[])}))}getTokensFromChain(e){var t;return s(this,void 0,void 0,(function*(){const n=f.ChainIdHelper.parse(e);return null!==(t=yield this.kvStore.get(n.identifier))&&void 0!==t?t:[]}))}saveTokensToChain(e,t){return s(this,void 0,void 0,(function*(){const n=f.ChainIdHelper.parse(e);yield this.kvStore.set(n.identifier,t)}))}getTokensFromChainAndAccount(e){var t;return s(this,void 0,void 0,(function*(){const n=f.ChainIdHelper.parse(e),r=yield this.keyRingService.getKey(e);return null!==(t=yield this.kvStore.get(`${n.identifier}-${y.Buffer.from(r.address).toString("hex")}`))&&void 0!==t?t:[]}))}saveTokensToChainAndAccount(e,t){return s(this,void 0,void 0,(function*(){const n=f.ChainIdHelper.parse(e),r=yield this.keyRingService.getKey(e),i=y.Buffer.from(r.address).toString("hex");yield this.kvStore.set(`${n.identifier}-${i}`,t),yield this.insertTokensToAccountReverse(e,i)}))}getTokensToAccountReverse(e){var t;return s(this,void 0,void 0,(function*(){const n=f.ChainIdHelper.parse(e);return null!==(t=yield this.kvStore.get(n.identifier+"-addresses"))&&void 0!==t?t:[]}))}setTokensToAccountReverse(e,t){return s(this,void 0,void 0,(function*(){const n=f.ChainIdHelper.parse(e);yield this.kvStore.set(n.identifier+"-addresses",t)}))}insertTokensToAccountReverse(e,t){return s(this,void 0,void 0,(function*(){const n=yield this.getTokensToAccountReverse(e);n.indexOf(t)<0&&(n.push(t),yield this.setTokensToAccountReverse(e,n))}))}getSecret20ViewingKey(e,t){return s(this,void 0,void 0,(function*(){const n=yield this.getTokens(e);for(const e of n)if("type"in e&&"secret20"===e.type&&e.contractAddress===t)return e.viewingKey;throw new Error("There is no matched secret20")}))}checkOrGrantSecret20ViewingKeyPermission(e,t,n,r){return s(this,void 0,void 0,(function*(){yield this.getSecret20ViewingKey(t,n);const i=v.getSecret20ViewingKeyPermissionType(n);this.permissionService.hasPermisson(t,i,r)||(yield this.permissionService.grantPermission(e,"/access/viewing-key",[t],i,[r])),this.permissionService.checkPermission(e,t,i,r)}))}static validateCurrency(e,t){return s(this,void 0,void 0,(function*(){if("type"in t)switch(t.type){case"cw20":t=yield r.validateCW20Currency(e,t);break;case"secret20":t=yield r.validateSecret20Currency(e,t);break;default:throw new Error("Unknown type of currency")}else t=yield u.CurrencySchema.validateAsync(t);return t}))}static validateCW20Currency(e,t){return s(this,void 0,void 0,(function*(){return t=yield u.CW20CurrencyShema.validateAsync(t),f.Bech32Address.validate(t.contractAddress,e.bech32Config.bech32PrefixAccAddr),t}))}static validateSecret20Currency(e,t){return s(this,void 0,void 0,(function*(){return t=yield u.Secret20CurrencyShema.validateAsync(t),f.Bech32Address.validate(t.contractAddress,e.bech32Config.bech32PrefixAccAddr),t}))}};w=r=i([c.singleton(),a(0,c.inject(l.TYPES.TokensStore)),a(1,c.inject(c.delay(()=>m.InteractionService))),a(2,c.inject(c.delay(()=>b.PermissionService))),a(3,c.inject(d.ChainsService)),a(4,c.inject(c.delay(()=>p.KeyRingService))),o("design:paramtypes",[Object,m.InteractionService,b.PermissionService,d.ChainsService,p.KeyRingService])],w),t.TokensService=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ROUTE=void 0,t.ROUTE="tokens"},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitSecret20ViewingKeyPermissionType=t.isSecret20ViewingKeyPermissionType=t.getSecret20ViewingKeyPermissionType=void 0,t.getSecret20ViewingKeyPermissionType=function(e){return"viewing-key/"+e},t.isSecret20ViewingKeyPermissionType=function(e){return e.startsWith("viewing-key/")},t.splitSecret20ViewingKeyPermissionType=function(e){return e.replace("viewing-key/","")}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.KeplrEnigmaUtils=void 0;t.KeplrEnigmaUtils=class{constructor(e,t){this.chainId=e,this.keplr=t}getPubkey(){return r(this,void 0,void 0,(function*(){return yield this.keplr.getEnigmaPubKey(this.chainId)}))}getTxEncryptionKey(e){return r(this,void 0,void 0,(function*(){return yield this.keplr.getEnigmaTxEncryptionKey(this.chainId,e)}))}encrypt(e,t){return r(this,void 0,void 0,(function*(){return yield this.keplr.enigmaEncrypt(this.chainId,e,t)}))}decrypt(e,t){return r(this,void 0,void 0,(function*(){return yield this.keplr.enigmaDecrypt(this.chainId,e,t)}))}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.CosmJSOfflineSigner=t.CosmJSOfflineSignerOnlyAmino=void 0;class i{constructor(e,t){this.chainId=e,this.keplr=t}getAccounts(){return r(this,void 0,void 0,(function*(){const e=yield this.keplr.getKey(this.chainId);return[{address:e.bech32Address,algo:"secp256k1",pubkey:e.pubKey}]}))}signAmino(e,t){return r(this,void 0,void 0,(function*(){if(this.chainId!==t.chain_id)throw new Error("Unmatched chain id with the offline signer");if((yield this.keplr.getKey(t.chain_id)).bech32Address!==e)throw new Error("Unknown signer address");return yield this.keplr.signAmino(this.chainId,e,t)}))}sign(e,t){return r(this,void 0,void 0,(function*(){return yield this.signAmino(e,t)}))}}t.CosmJSOfflineSignerOnlyAmino=i;t.CosmJSOfflineSigner=class extends i{constructor(e,t){super(e,t),this.chainId=e,this.keplr=t}signDirect(e,t){return r(this,void 0,void 0,(function*(){if(this.chainId!==t.chainId)throw new Error("Unmatched chain id with the offline signer");if((yield this.keplr.getKey(t.chainId)).bech32Address!==e)throw new Error("Unknown signer address");return yield this.keplr.signDirect(this.chainId,e,t)}))}}},function(e,t,n){"use strict";const r=()=>{const e=new Error("Delay aborted");return e.name="AbortError",e},i=({clearTimeout:e,setTimeout:t,willResolve:n})=>(i,{value:o,signal:a}={})=>{if(a&&a.aborted)return Promise.reject(r());let s,c,l;const u=e||clearTimeout,f=()=>{u(s),l(r())},d=new Promise((e,r)=>{c=()=>{a&&a.removeEventListener("abort",f),n?e(o):r(o)},l=r,s=(t||setTimeout)(c,i)});return a&&a.addEventListener("abort",f,{once:!0}),d.clear=()=>{u(s),s=null,c()},d},o=i({willResolve:!0});o.reject=i({willResolve:!1}),o.range=(e,t,n)=>o(((e,t)=>Math.floor(Math.random()*(t-e+1)+e))(e,t),n),o.createWithTimers=({clearTimeout:e,setTimeout:t})=>{const n=i({clearTimeout:e,setTimeout:t,willResolve:!0});return n.reject=i({clearTimeout:e,setTimeout:t,willResolve:!1}),n},e.exports=o,e.exports.default=o},function(e,t,n){var r=n(37),i=n(1515);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";var r=n(0),i=n(838),o=n(862),a=n(30),s=n(842),c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};const l=n.n(s).a||s,u=(e,t)=>Object(o.b)(Object.assign(Object.assign({},a.a),{locale:"en"}),Object(a.c)(),e,t);class f extends r.Component{shouldComponentUpdate(e){const t=this.props,{values:n}=t,r=c(t,["values"]),{values:i}=e,o=c(e,["values"]);return!l(i,n)||!l(r,o)}render(){return r.createElement(i.a.Consumer,null,e=>{this.props.defaultMessage||Object(a.h)(e);const{formatMessage:t=u,textComponent:n=r.Fragment}=e||{},{id:i,description:o,defaultMessage:s,values:c,children:l,tagName:f=n}=this.props;let d=t({id:i,description:o,defaultMessage:s},c);return Array.isArray(d)||(d=[d]),"function"==typeof l?l(...d):f?r.createElement(f,null,...d):d})}}f.displayName="FormattedMessage",f.defaultProps={values:{}},t.a=f},function(e,t,n){"use strict";n.r(t),n.d(t,"FULFILLED",(function(){return d})),n.d(t,"IDENTITY",(function(){return o})),n.d(t,"NOOP",(function(){return i})),n.d(t,"ObservableGroupMap",(function(){return $})),n.d(t,"PENDING",(function(){return f})),n.d(t,"REJECTED",(function(){return p})),n.d(t,"ViewModel",(function(){return M})),n.d(t,"addHiddenProp",(function(){return c})),n.d(t,"chunkProcessor",(function(){return j})),n.d(t,"computedFn",(function(){return J})),n.d(t,"createTransformer",(function(){return U})),n.d(t,"createViewModel",(function(){return I})),n.d(t,"deepObserve",(function(){return z})),n.d(t,"expr",(function(){return N})),n.d(t,"fail",(function(){return a})),n.d(t,"fromPromise",(function(){return m})),n.d(t,"fromResource",(function(){return _})),n.d(t,"fromStream",(function(){return O})),n.d(t,"getAllMethodsAndProperties",(function(){return u})),n.d(t,"invariant",(function(){return s})),n.d(t,"isPromiseBasedObservable",(function(){return b})),n.d(t,"keepAlive",(function(){return P})),n.d(t,"lazyObservable",(function(){return w})),n.d(t,"moveItem",(function(){return g})),n.d(t,"now",(function(){return R})),n.d(t,"queueProcessor",(function(){return C})),n.d(t,"toStream",(function(){return x}));var r=n(5),i=function(){},o=function(e){return e};function a(e){throw new Error("[mobx-utils] "+e)}function s(e,t){void 0===t&&(t="Illegal state"),e||a(t)}function c(e,t,n){Object.defineProperty(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}var l=function(e){return e&&e!==Object.prototype&&Object.getOwnPropertyNames(e).concat(l(Object.getPrototypeOf(e))||[])},u=function(e){return function(e){var t=l(e);return t.filter((function(e,n){return t.indexOf(e)===n}))}(e).filter((function(e){return"constructor"!==e&&!~e.indexOf("__")}))},f="pending",d="fulfilled",p="rejected";function h(e){switch(this.state){case f:return e.pending&&e.pending(this.value);case p:return e.rejected&&e.rejected(this.value);case d:return e.fulfilled?e.fulfilled(this.value):this.value}}function m(e,t){if(s(arguments.length<=2,"fromPromise expects up to two arguments"),s("function"==typeof e||"object"==typeof e&&e&&"function"==typeof e.then,"Please pass a promise or function to fromPromise"),!0===e.isPromiseBasedObservable)return e;"function"==typeof e&&(e=new Promise(e));var n=e;e.then(Object(r.action)("observableFromPromise-resolve",(function(e){n.value=e,n.state=d})),Object(r.action)("observableFromPromise-reject",(function(e){n.value=e,n.state=p}))),n.isPromiseBasedObservable=!0,n.case=h;var i=t&&t.state===d?t.value:void 0;return Object(r.extendObservable)(n,{value:i,state:f},{},{deep:!1}),n}function b(e){return e&&!0===e.isPromiseBasedObservable}!function(e){e.reject=Object(r.action)("fromPromise.reject",(function(t){var n=e(Promise.reject(t));return n.state=p,n.value=t,n})),e.resolve=Object(r.action)("fromPromise.resolve",(function(t){void 0===t&&(t=void 0);var n=e(Promise.resolve(t));return n.state=d,n.value=t,n}))}(m||(m={}));var y=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};function g(e,t,n){if(v(e,t),v(e,n),t!==n){var r,i=e.slice();return r=t<n?y(i.slice(0,t),i.slice(t+1,n+1),[i[t]],i.slice(n+1)):y(i.slice(0,n),[i[t]],i.slice(n,t),i.slice(t+1)),e.replace(r),e}}function v(e,t){if(t<0)throw new Error("[mobx.array] Index out of bounds: "+t+" is negative");var n=e.length;if(t>=n)throw new Error("[mobx.array] Index out of bounds: "+t+" is not smaller than "+n)}function w(e,t){void 0===t&&(t=void 0);var n=!1,i=r.observable.box(t,{deep:!1}),o=r.observable.box(!1),a=function(){return n||(n=!0,Object(r._allowStateChanges)(!0,(function(){o.set(!0)})),e((function(e){Object(r._allowStateChanges)(!0,(function(){i.set(e),o.set(!1)}))}))),i.get()},s=Object(r.action)("lazyObservable-reset",(function(){return n=!1,i.set(t),i.get()}));return{current:a,refresh:function(){return n?(n=!1,a()):i.get()},reset:function(){return s()},get pending(){return o.get()}}}function _(e,t,n){void 0===t&&(t=i),void 0===n&&(n=void 0);var o=!1,a=!1,c=n,l=function(){o&&(o=!1,t())},u=Object(r.createAtom)("ResourceBasedObservable",(function(){s(!o&&!a),o=!0,e((function(e){Object(r._allowStateChanges)(!0,(function(){c=e,u.reportChanged()}))}))}),l);return{current:function(){return s(!a,"subscribingObservable has already been disposed"),u.reportObserved()||o||console.warn("Called `get` of a subscribingObservable outside a reaction. Current value will be returned but no new subscription has started"),c},dispose:function(){a=!0,l()},isAlive:function(){return o}}}var k=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};function x(e,t){var n;void 0===t&&(t=!1);var i=Object(r.computed)(e);return(n={subscribe:function(e){return"function"==typeof e?{unsubscribe:Object(r.observe)(i,(function(t){var n=t.newValue;return e(n)}),t)}:e&&"object"==typeof e&&e.next?{unsubscribe:Object(r.observe)(i,(function(t){var n=t.newValue;return e.next(n)}),t)}:{unsubscribe:function(){}}}})["function"==typeof Symbol&&Symbol.observable||"@@observable"]=function(){return this},n}var S=function(){function e(e,t){var n=this;Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"subscription",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object(r.makeObservable)(this),Object(r.runInAction)((function(){n.current=t,n.subscription=e.subscribe(n)}))}return Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.subscription&&this.subscription.unsubscribe()}}),Object.defineProperty(e.prototype,"next",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.current=e}}),Object.defineProperty(e.prototype,"complete",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.dispose()}}),Object.defineProperty(e.prototype,"error",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.current=e,this.dispose()}}),k([r.observable.ref],e.prototype,"current",void 0),k([r.action.bound],e.prototype,"next",null),k([r.action.bound],e.prototype,"complete",null),k([r.action.bound],e.prototype,"error",null),e}();function O(e,t){return void 0===t&&(t=void 0),new S(e,t)}var E=function(){return(E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},T=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},A=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"],M=function(){function e(e){var t=this;Object.defineProperty(this,"model",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"localValues",{enumerable:!0,configurable:!0,writable:!0,value:r.observable.map({})}),Object.defineProperty(this,"localComputedValues",{enumerable:!0,configurable:!0,writable:!0,value:r.observable.map({})}),Object.defineProperty(this,"isPropertyDirty",{enumerable:!0,configurable:!0,writable:!0,value:function(e){return t.localValues.has(e)}}),Object(r.makeObservable)(this),s(Object(r.isObservableObject)(e),"createViewModel expects an observable object"),u(e).forEach((function(n){var i;if(n!==r.$mobx&&"__mobxDidRunLazyInitializers"!==n){if(s(-1===A.indexOf(n),"The propertyname "+n+" is reserved and cannot be used with viewModels"),Object(r.isComputedProp)(e,n)){var o=Object(r._getAdministration)(e,n),a=o.derivation.bind(t),c=null===(i=o.setter_)||void 0===i?void 0:i.bind(t);t.localComputedValues.set(n,Object(r.computed)(a,{set:c}))}var l=Object.getOwnPropertyDescriptor(e,n),u=l?{enumerable:l.enumerable}:{};Object.defineProperty(t,n,E(E({},u),{configurable:!0,get:function(){return Object(r.isComputedProp)(e,n)?t.localComputedValues.get(n).get():t.isPropertyDirty(n)?t.localValues.get(n):t.model[n]},set:Object(r.action)((function(i){Object(r.isComputedProp)(e,n)?t.localComputedValues.get(n).set(i):i!==t.model[n]?t.localValues.set(n,i):t.localValues.delete(n)}))}))}}))}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changedValues",{get:function(){return new Map(this.localValues)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"submit",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;Object(r.keys)(this.localValues).forEach((function(t){var n=e.localValues.get(t),i=e.model[t];Object(r.isObservableArray)(i)?i.replace(n):Object(r.isObservableMap)(i)?(i.clear(),i.merge(n)):Object(r.isComputed)(n)||(e.model[t]=n)})),this.localValues.clear()}}),Object.defineProperty(e.prototype,"reset",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.localValues.clear()}}),Object.defineProperty(e.prototype,"resetProperty",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.localValues.delete(e)}}),T([r.computed],e.prototype,"isDirty",null),T([r.computed],e.prototype,"changedValues",null),T([r.action.bound],e.prototype,"submit",null),T([r.action.bound],e.prototype,"reset",null),T([r.action.bound],e.prototype,"resetProperty",null),e}();function I(e){return new M(e)}function P(e,t){var n=Object(r.getAtom)(e,t);if(!n)throw new Error("No computed provided, please provide an object created with `computed(() => expr)` or an object + property name");return Object(r.observe)(n,(function(){}))}function C(e,t,n){if(void 0===n&&(n=0),!Object(r.isObservableArray)(e))throw new Error("Expected observable array as first argument");Object(r.isAction)(t)||(t=Object(r.action)("queueProcessor",t));var i=function(){var n=e.slice(0);Object(r.runInAction)((function(){return e.splice(0)})),n.forEach(t)};return n>0?Object(r.autorun)(i,{delay:n}):Object(r.autorun)(i)}function j(e,t,n,i){if(void 0===n&&(n=0),void 0===i&&(i=0),!Object(r.isObservableArray)(e))throw new Error("Expected observable array as first argument");Object(r.isAction)(t)||(t=Object(r.action)("chunkProcessor",t));var o=function(){for(var n=function(){var n=0===i?e.length:Math.min(e.length,i),o=e.slice(0,n);Object(r.runInAction)((function(){return e.splice(0,n)})),t(o)};e.length>0;)n()};return n>0?Object(r.autorun)(o,{delay:n}):Object(r.autorun)(o)}var D={};function R(e){return void 0===e&&(e=1e3),Object(r._isComputingDerivation)()?(D[e]||(D[e]="number"==typeof e?function(e){var t;return _((function(n){n(Date.now()),t=setInterval((function(){return n(Date.now())}),e)}),(function(){clearInterval(t)}),Date.now())}(e):t=_((function(e){e(Date.now()),function n(){window.requestAnimationFrame((function(){e(Date.now()),t.isAlive()&&n()}))}()}),(function(){}),Date.now())),D[e].current()):Date.now();var t}function N(e){return Object(r._isComputingDerivation)()||console.warn("'expr' should only be used inside other reactive functions."),Object(r.computed)(e).get()}var B=function(){return(B=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},L=0;function U(e,t){s("function"==typeof e&&e.length<2,"createTransformer expects a function that accepts one argument");var n={},i=void 0,o=!1,a=void 0;"object"==typeof t?(i=t.onCleanup,o=void 0!==t.keepAlive&&t.keepAlive,a=t.debugNameGenerator):"function"==typeof t&&(i=t);var l=!1;return function(s){var u=function(e){var t=typeof e;if("string"===t)return"string:"+e;if("number"===t)return"number:"+e;if(null===e||"object"!==t&&"function"!==t)throw new Error("[mobx-utils] transform expected an object, function, string or number, got: "+String(e));var n=e.$transformId;void 0===n&&(n="memoizationId:"+ ++L,c(e,"$transformId",n));return n}(s),f=n[u];if(f)return f.get();if(!o&&!Object(r._isComputingDerivation)()){l||(console.warn("invoking a transformer from outside a reactive context won't memorized and is cleaned up immediately, unless keepAlive is set"),l=!0);var d=e(s);return i&&i(d,s),d}return(f=n[u]=function(s,c){var l,u={};"object"==typeof t?(i=t.onCleanup,a=t.debugNameGenerator,u=t):"function"==typeof t?i=t:(i=void 0,a=void 0);var f=a?a(c):"Transformer-"+e.name+"-"+s,d=Object(r.computed)((function(){return l=e(c)}),B(B({},u),{name:f}));if(!o)var p=Object(r.onBecomeUnobserved)(d,(function(){delete n[s],p(),i&&i(l,c)}));return d}(u,s)).get()}}function F(e){if(!e)return"ROOT";for(var t=[];e.parent;)t.push(e.path),e=e.parent;return t.reverse().join("/")}function q(e){return Object(r.isObservableObject)(e)||Object(r.isObservableArray)(e)||Object(r.isObservableMap)(e)}function z(e,t){var n=new WeakMap;function i(r){var i=n.get(r.object);!function(e,t){switch(e.type){case"add":o(e.newValue,t,e.name);break;case"update":a(e.oldValue),o(e.newValue,t,e.name||""+e.index);break;case"remove":case"delete":a(e.oldValue);break;case"splice":e.removed.map(a),e.added.forEach((function(n,r){return o(n,t,""+(e.index+r))}));for(var r=e.index+e.addedCount;r<e.object.length;r++)if(q(e.object[r])){var i=n.get(e.object[r]);i&&(i.path=""+r)}}}(r,i),t(r,F(i),e)}function o(e,t,a){if(q(e)){var s=n.get(e);if(s){if(s.parent!==t||s.path!==a)throw new Error("The same observable object cannot appear twice in the same tree, trying to assign it to '"+F(t)+"/"+a+"', but it already exists at '"+F(s.parent)+"/"+s.path+"'")}else{var c={parent:t,path:a,dispose:Object(r.observe)(e,i)};n.set(e,c),Object(r.entries)(e).forEach((function(e){var t=e[0];return o(e[1],c,t)}))}}}function a(e){if(q(e)){var t=n.get(e);if(!t)return;n.delete(e),t.dispose(),Object(r.values)(e).forEach(a)}}return o(e,void 0,""),function(){a(e)}}var V,H=(V=function(e,t){return(V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}V(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),$=function(e){function t(t,n,i){var o=void 0===i?{}:i,a=o.name,s=void 0===a?"ogm"+(1e3*Math.random()|0):a,c=o.keyToName,l=void 0===c?function(e){return""+e}:c,u=e.call(this)||this;Object.defineProperty(u,"_base",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(u,"_ogmInfoKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(u,"_groupBy",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(u,"_keyToName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(u,"_disposeBaseObserver",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),u._keyToName=l,u._groupBy=n,u._ogmInfoKey=Symbol("ogmInfo"+s),u._base=t;for(var f=0;f<t.length;f++)u._addItem(t[f]);return u._disposeBaseObserver=Object(r.observe)(u._base,(function(e){if("splice"===e.type)Object(r.transaction)((function(){for(var t=0,n=e.removed;t<n.length;t++){var r=n[t];u._removeItem(r)}for(var i=0,o=e.added;i<o.length;i++){var a=o[i];u._addItem(a)}}));else{if("update"!==e.type)throw new Error("illegal state");Object(r.transaction)((function(){u._removeItem(e.oldValue),u._addItem(e.newValue)}))}})),u}return H(t,e),Object.defineProperty(t.prototype,"clear",{enumerable:!1,configurable:!0,writable:!0,value:function(){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"delete",{enumerable:!1,configurable:!0,writable:!0,value:function(e){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){throw new Error("not supported")}}),Object.defineProperty(t.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._disposeBaseObserver();for(var e=0;e<this._base.length;e++){var t=this._base[e];t[this._ogmInfoKey].reaction(),delete t[this._ogmInfoKey]}}}),Object.defineProperty(t.prototype,"_getGroupArr",{enumerable:!1,configurable:!0,writable:!0,value:function(t){var n=e.prototype.get.call(this,t);return void 0===n&&(n=Object(r.observable)([],{name:"GroupArray["+this._keyToName(t)+"]",deep:!1}),e.prototype.set.call(this,t,n)),n}}),Object.defineProperty(t.prototype,"_removeFromGroupArr",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var r=e.prototype.get.call(this,t);1===r.length?e.prototype.delete.call(this,t):(n===r.length-1||(r[n]=r[r.length-1],r[n][this._ogmInfoKey].groupArrIndex=n),r.length--)}}),Object.defineProperty(t.prototype,"_addItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,n=this._groupBy(e),i=this._getGroupArr(n),o={groupByValue:n,groupArrIndex:i.length,reaction:Object(r.reaction)((function(){return t._groupBy(e)}),(function(n,r){console.log("new group by value ",n);var i=e[t._ogmInfoKey];t._removeFromGroupArr(i.groupByValue,i.groupArrIndex);var o=t._getGroupArr(n),a=o.length;o.push(e),i.groupByValue=n,i.groupArrIndex=a}))};Object.defineProperty(e,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:o}),i.push(e)}}),Object.defineProperty(t.prototype,"_removeItem",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e[this._ogmInfoKey];this._removeFromGroupArr(t.groupByValue,t.groupArrIndex),t.reaction(),delete e[this._ogmInfoKey]}}),t}(r.ObservableMap),K=function(){function e(e,t){Object.defineProperty(this,"base",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"closest",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"closestIdx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"isDisposed",{enumerable:!0,configurable:!0,writable:!0,value:!1});for(var n=this.closest=this.root=e,r=0;r<this.args.length-1&&(n=n.get(t[r]));r++)this.closest=n;this.closestIdx=r}return Object.defineProperty(e.prototype,"exists",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.assertNotDisposed();var e=this.args.length;return this.closestIdx>=e-1&&this.closest.has(this.args[e-1])}}),Object.defineProperty(e.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");return this.closest.get(this.args[this.args.length-1])}}),Object.defineProperty(e.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.assertNotDisposed();for(var t=this.args.length,n=this.closest,r=this.closestIdx;r<t-1;r++){var i=new Map;n.set(this.args[r],i),n=i}this.closestIdx=t-1,this.closest=n,n.set(this.args[t-1],e)}}),Object.defineProperty(e.prototype,"delete",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");var e=this.args.length;this.closest.delete(this.args[e-1]);for(var t=this.root,n=[t],r=0;r<e-1;r++)t=t.get(this.args[r]),n.push(t);for(r=n.length-1;r>0;r--)0===n[r].size&&n[r-1].delete(this.args[r-1]);this.isDisposed=!0}}),Object.defineProperty(e.prototype,"assertNotDisposed",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.isDisposed)throw new Error("Concurrent modification exception")}}),e}(),W=function(){function e(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"argsLength",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"last",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return Object.defineProperty(e.prototype,"entry",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(-1===this.argsLength)this.argsLength=e.length;else if(this.argsLength!==e.length)throw new Error("DeepMap should be used with functions with a consistent length, expected: "+this.argsLength+", got: "+e.length);return this.last&&(this.last.isDisposed=!0),this.last=new K(this.store,e)}}),e}(),G=function(){return(G=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function J(e,t){if(void 0===t&&(t=!1),Object(r.isAction)(e))throw new Error("computedFn shouldn't be used on actions");var n=!1,i=0,o="boolean"==typeof t?{keepAlive:t}:t,a=new W;return function(){for(var t=this,s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];var l=a.entry(s);if(l.exists())return l.get().get();if(!o.keepAlive&&!Object(r._isComputingDerivation)())return n||(console.warn("invoking a computedFn from outside an reactive context won't be memoized, unless keepAlive is set"),n=!0),e.apply(this,s);var u=Object(r.computed)((function(){return e.apply(t,s)}),G(G({},o),{name:"computedFn("+(o.name||e.name)+"#"+ ++i+")"}));return l.set(u),o.keepAlive||Object(r.onBecomeUnobserved)(u,(function(){a.entry(s).delete()})),u.get()}}},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=o(e[t],n)})),s(t).forEach((function(i){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(c(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):l(e,t,n):o(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var f=u;e.exports=f},function(e,t,n){(function(e,n){var r;!function(){var i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||this||{},o=i._,a=Array.prototype,s=Object.prototype,c="undefined"!=typeof Symbol?Symbol.prototype:null,l=a.push,u=a.slice,f=s.toString,d=s.hasOwnProperty,p=Array.isArray,h=Object.keys,m=Object.create,b=function(){},y=function(e){return e instanceof y?e:this instanceof y?void(this._wrapped=e):new y(e)};t.nodeType?i._=y:(!n.nodeType&&n.exports&&(t=n.exports=y),t._=y),y.VERSION="1.9.1";var g,v=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}},w=function(e,t,n){return y.iteratee!==g?y.iteratee(e,t):null==e?y.identity:y.isFunction(e)?v(e,t,n):y.isObject(e)&&!y.isArray(e)?y.matcher(e):y.property(e)};y.iteratee=g=function(e,t){return w(e,t,1/0)};var _=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}},k=function(e){if(!y.isObject(e))return{};if(m)return m(e);b.prototype=e;var t=new b;return b.prototype=null,t},x=function(e){return function(t){return null==t?void 0:t[e]}},S=function(e,t){return null!=e&&d.call(e,t)},O=function(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0},E=Math.pow(2,53)-1,T=x("length"),A=function(e){var t=T(e);return"number"==typeof t&&t>=0&&t<=E};y.each=y.forEach=function(e,t,n){var r,i;if(t=v(t,n),A(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=y.keys(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e},y.map=y.collect=function(e,t,n){t=w(t,n);for(var r=!A(e)&&y.keys(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o};var M=function(e){var t=function(t,n,r,i){var o=!A(t)&&y.keys(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var c=o?o[s]:s;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,v(n,i,4),r,o)}};y.reduce=y.foldl=y.inject=M(1),y.reduceRight=y.foldr=M(-1),y.find=y.detect=function(e,t,n){var r=(A(e)?y.findIndex:y.findKey)(e,t,n);if(void 0!==r&&-1!==r)return e[r]},y.filter=y.select=function(e,t,n){var r=[];return t=w(t,n),y.each(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r},y.reject=function(e,t,n){return y.filter(e,y.negate(w(t)),n)},y.every=y.all=function(e,t,n){t=w(t,n);for(var r=!A(e)&&y.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0},y.some=y.any=function(e,t,n){t=w(t,n);for(var r=!A(e)&&y.keys(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1},y.contains=y.includes=y.include=function(e,t,n,r){return A(e)||(e=y.values(e)),("number"!=typeof n||r)&&(n=0),y.indexOf(e,t,n)>=0},y.invoke=_((function(e,t,n){var r,i;return y.isFunction(t)?i=t:y.isArray(t)&&(r=t.slice(0,-1),t=t[t.length-1]),y.map(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=O(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))})),y.pluck=function(e,t){return y.map(e,y.property(t))},y.where=function(e,t){return y.filter(e,y.matcher(t))},y.findWhere=function(e,t){return y.find(e,y.matcher(t))},y.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=A(e)?e:y.values(e)).length;s<c;s++)null!=(r=e[s])&&r>o&&(o=r);else t=w(t,n),y.each(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o},y.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=A(e)?e:y.values(e)).length;s<c;s++)null!=(r=e[s])&&r<o&&(o=r);else t=w(t,n),y.each(e,(function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o},y.shuffle=function(e){return y.sample(e,1/0)},y.sample=function(e,t,n){if(null==t||n)return A(e)||(e=y.values(e)),e[y.random(e.length-1)];var r=A(e)?y.clone(e):y.values(e),i=T(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=y.random(a,o),c=r[a];r[a]=r[s],r[s]=c}return r.slice(0,t)},y.sortBy=function(e,t,n){var r=0;return t=w(t,n),y.pluck(y.map(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")};var I=function(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=w(r,i),y.each(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}};y.groupBy=I((function(e,t,n){S(e,n)?e[n].push(t):e[n]=[t]})),y.indexBy=I((function(e,t,n){e[n]=t})),y.countBy=I((function(e,t,n){S(e,n)?e[n]++:e[n]=1}));var P=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;y.toArray=function(e){return e?y.isArray(e)?u.call(e):y.isString(e)?e.match(P):A(e)?y.map(e,y.identity):y.values(e):[]},y.size=function(e){return null==e?0:A(e)?e.length:y.keys(e).length},y.partition=I((function(e,t,n){e[n?0:1].push(t)}),!0),y.first=y.head=y.take=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[0]:y.initial(e,e.length-t)},y.initial=function(e,t,n){return u.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))},y.last=function(e,t,n){return null==e||e.length<1?null==t?void 0:[]:null==t||n?e[e.length-1]:y.rest(e,Math.max(0,e.length-t))},y.rest=y.tail=y.drop=function(e,t,n){return u.call(e,null==t||n?1:t)},y.compact=function(e){return y.filter(e,Boolean)};var C=function(e,t,n,r){for(var i=(r=r||[]).length,o=0,a=T(e);o<a;o++){var s=e[o];if(A(s)&&(y.isArray(s)||y.isArguments(s)))if(t)for(var c=0,l=s.length;c<l;)r[i++]=s[c++];else C(s,t,n,r),i=r.length;else n||(r[i++]=s)}return r};y.flatten=function(e,t){return C(e,t,!1)},y.without=_((function(e,t){return y.difference(e,t)})),y.uniq=y.unique=function(e,t,n,r){y.isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=w(n,r));for(var i=[],o=[],a=0,s=T(e);a<s;a++){var c=e[a],l=n?n(c,a,e):c;t&&!n?(a&&o===l||i.push(c),o=l):n?y.contains(o,l)||(o.push(l),i.push(c)):y.contains(i,c)||i.push(c)}return i},y.union=_((function(e){return y.uniq(C(e,!0,!0))})),y.intersection=function(e){for(var t=[],n=arguments.length,r=0,i=T(e);r<i;r++){var o=e[r];if(!y.contains(t,o)){var a;for(a=1;a<n&&y.contains(arguments[a],o);a++);a===n&&t.push(o)}}return t},y.difference=_((function(e,t){return t=C(t,!0,!0),y.filter(e,(function(e){return!y.contains(t,e)}))})),y.unzip=function(e){for(var t=e&&y.max(e,T).length||0,n=Array(t),r=0;r<t;r++)n[r]=y.pluck(e,r);return n},y.zip=_(y.unzip),y.object=function(e,t){for(var n={},r=0,i=T(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n};var j=function(e){return function(t,n,r){n=w(n,r);for(var i=T(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}};y.findIndex=j(1),y.findLastIndex=j(-1),y.sortedIndex=function(e,t,n,r){for(var i=(n=w(n,r,1))(t),o=0,a=T(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o};var D=function(e,t,n){return function(r,i,o){var a=0,s=T(r);if("number"==typeof o)e>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(u.call(r,a,s),y.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&o<s;o+=e)if(r[o]===i)return o;return-1}};y.indexOf=D(1,y.findIndex,y.sortedIndex),y.lastIndexOf=D(-1,y.findLastIndex),y.range=function(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i},y.chunk=function(e,t){if(null==t||t<1)return[];for(var n=[],r=0,i=e.length;r<i;)n.push(u.call(e,r,r+=t));return n};var R=function(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=k(e.prototype),a=e.apply(o,i);return y.isObject(a)?a:o};y.bind=_((function(e,t,n){if(!y.isFunction(e))throw new TypeError("Bind must be called on a function");var r=_((function(i){return R(e,r,t,this,n.concat(i))}));return r})),y.partial=_((function(e,t){var n=y.partial.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return R(e,r,this,this,a)};return r})),y.partial.placeholder=y,y.bindAll=_((function(e,t){var n=(t=C(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=y.bind(e[r],e)}})),y.memoize=function(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return S(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n},y.delay=_((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),y.defer=y.partial(y.delay,y,1),y.throttle=function(e,t,n){var r,i,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:y.now(),r=null,a=e.apply(i,o),r||(i=o=null)},l=function(){var l=y.now();s||!1!==n.leading||(s=l);var u=t-(l-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=l,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,u)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l},y.debounce=function(e,t,n){var r,i,o=function(t,n){r=null,n&&(i=e.apply(t,n))},a=_((function(a){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(o,t),s&&(i=e.apply(this,a))}else r=y.delay(o,t,this,a);return i}));return a.cancel=function(){clearTimeout(r),r=null},a},y.wrap=function(e,t){return y.partial(t,e)},y.negate=function(e){return function(){return!e.apply(this,arguments)}},y.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},y.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},y.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},y.once=y.partial(y.before,2),y.restArguments=_;var N=!{toString:null}.propertyIsEnumerable("toString"),B=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(e,t){var n=B.length,r=e.constructor,i=y.isFunction(r)&&r.prototype||s,o="constructor";for(S(e,o)&&!y.contains(t,o)&&t.push(o);n--;)(o=B[n])in e&&e[o]!==i[o]&&!y.contains(t,o)&&t.push(o)};y.keys=function(e){if(!y.isObject(e))return[];if(h)return h(e);var t=[];for(var n in e)S(e,n)&&t.push(n);return N&&L(e,t),t},y.allKeys=function(e){if(!y.isObject(e))return[];var t=[];for(var n in e)t.push(n);return N&&L(e,t),t},y.values=function(e){for(var t=y.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r},y.mapObject=function(e,t,n){t=w(t,n);for(var r=y.keys(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o},y.pairs=function(e){for(var t=y.keys(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},y.invert=function(e){for(var t={},n=y.keys(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},y.functions=y.methods=function(e){var t=[];for(var n in e)y.isFunction(e[n])&&t.push(n);return t.sort()};var U=function(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,c=0;c<s;c++){var l=a[c];t&&void 0!==n[l]||(n[l]=o[l])}return n}};y.extend=U(y.allKeys),y.extendOwn=y.assign=U(y.keys),y.findKey=function(e,t,n){t=w(t,n);for(var r,i=y.keys(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r};var F,q,z=function(e,t,n){return t in n};y.pick=_((function(e,t){var n={},r=t[0];if(null==e)return n;y.isFunction(r)?(t.length>1&&(r=v(r,t[1])),t=y.allKeys(e)):(r=z,t=C(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n})),y.omit=_((function(e,t){var n,r=t[0];return y.isFunction(r)?(r=y.negate(r),t.length>1&&(n=t[1])):(t=y.map(C(t,!1,!1),String),r=function(e,n){return!y.contains(t,n)}),y.pick(e,r,n)})),y.defaults=U(y.allKeys,!0),y.create=function(e,t){var n=k(e);return t&&y.extendOwn(n,t),n},y.clone=function(e){return y.isObject(e)?y.isArray(e)?e.slice():y.extend({},e):e},y.tap=function(e,t){return t(e),e},y.isMatch=function(e,t){var n=y.keys(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0},F=function(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&q(e,t,n,r)},q=function(e,t,n,r){e instanceof y&&(e=e._wrapped),t instanceof y&&(t=t._wrapped);var i=f.call(e);if(i!==f.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return c.valueOf.call(e)===c.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!(y.isFunction(a)&&a instanceof a&&y.isFunction(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var l=(n=n||[]).length;l--;)if(n[l]===e)return r[l]===t;if(n.push(e),r.push(t),o){if((l=e.length)!==t.length)return!1;for(;l--;)if(!F(e[l],t[l],n,r))return!1}else{var u,d=y.keys(e);if(l=d.length,y.keys(t).length!==l)return!1;for(;l--;)if(u=d[l],!S(t,u)||!F(e[u],t[u],n,r))return!1}return n.pop(),r.pop(),!0},y.isEqual=function(e,t){return F(e,t)},y.isEmpty=function(e){return null==e||(A(e)&&(y.isArray(e)||y.isString(e)||y.isArguments(e))?0===e.length:0===y.keys(e).length)},y.isElement=function(e){return!(!e||1!==e.nodeType)},y.isArray=p||function(e){return"[object Array]"===f.call(e)},y.isObject=function(e){var t=typeof e;return"function"===t||"object"===t&&!!e},y.each(["Arguments","Function","String","Number","Date","RegExp","Error","Symbol","Map","WeakMap","Set","WeakSet"],(function(e){y["is"+e]=function(t){return f.call(t)==="[object "+e+"]"}})),y.isArguments(arguments)||(y.isArguments=function(e){return S(e,"callee")});var V=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof V&&(y.isFunction=function(e){return"function"==typeof e||!1}),y.isFinite=function(e){return!y.isSymbol(e)&&isFinite(e)&&!isNaN(parseFloat(e))},y.isNaN=function(e){return y.isNumber(e)&&isNaN(e)},y.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"===f.call(e)},y.isNull=function(e){return null===e},y.isUndefined=function(e){return void 0===e},y.has=function(e,t){if(!y.isArray(t))return S(e,t);for(var n=t.length,r=0;r<n;r++){var i=t[r];if(null==e||!d.call(e,i))return!1;e=e[i]}return!!n},y.noConflict=function(){return i._=o,this},y.identity=function(e){return e},y.constant=function(e){return function(){return e}},y.noop=function(){},y.property=function(e){return y.isArray(e)?function(t){return O(t,e)}:x(e)},y.propertyOf=function(e){return null==e?function(){}:function(t){return y.isArray(t)?O(e,t):e[t]}},y.matcher=y.matches=function(e){return e=y.extendOwn({},e),function(t){return y.isMatch(t,e)}},y.times=function(e,t,n){var r=Array(Math.max(0,e));t=v(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},y.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},y.now=Date.now||function(){return(new Date).getTime()};var H={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},$=y.invert(H),K=function(e){var t=function(t){return e[t]},n="(?:"+y.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};y.escape=K(H),y.unescape=K($),y.result=function(e,t,n){y.isArray(t)||(t=[t]);var r=t.length;if(!r)return y.isFunction(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=y.isFunction(o)?o.call(e):o}return e};var W=0;y.uniqueId=function(e){var t=++W+"";return e?e+t:t},y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var G=/(.)^/,J={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Q=/\\|'|\r|\n|\u2028|\u2029/g,Y=function(e){return"\\"+J[e]};y.template=function(e,t,n){!t&&n&&(t=n),t=y.defaults({},t,y.templateSettings);var r,i=RegExp([(t.escape||G).source,(t.interpolate||G).source,(t.evaluate||G).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(i,(function(t,n,r,i,s){return a+=e.slice(o,s).replace(Q,Y),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t})),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,y)},c=t.variable||"obj";return s.source="function("+c+"){\n"+a+"}",s},y.chain=function(e){var t=y(e);return t._chain=!0,t};var Z=function(e,t){return e._chain?y(t).chain():t};y.mixin=function(e){return y.each(y.functions(e),(function(t){var n=y[t]=e[t];y.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),Z(this,n.apply(y,e))}})),y},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=a[e];y.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],Z(this,n)}})),y.each(["concat","join","slice"],(function(e){var t=a[e];y.prototype[e]=function(){return Z(this,t.apply(this._wrapped,arguments))}})),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return y}.apply(t,[]))||(n.exports=r)}()}).call(this,n(12),n(71)(e))},function(e,t,n){"use strict";var r=n(824),i=n(882);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=c(i.toString(16))}return n},t.zero2=s,t.zero8=c,t.join32=function(e,t,n,i){var o=n-t;r(o%4==0);for(var a=new Array(o/4),s=0,c=t;s<a.length;s++,c+=4){var l;l="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],a[s]=l>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},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,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+o>>>0)<o?1:0,e+n+i+a+(c+=(l=l+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,c,l){var u=0,f=t;return u+=(f=f+r>>>0)<t?1:0,u+=(f=f+o>>>0)<o?1:0,u+=(f=f+s>>>0)<s?1:0,e+n+i+a+c+(u+=(f=f+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,c,l){return t+r+o+s+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r=n(0),i=n.n(r),o=n(947),a=n(941),s=n.n(a);const c=Object(r.createContext)(void 0),l=({children:e})=>{const[t,n]=Object(r.useState)([]),a=null!=t.find(e=>e.isLoading);return i.a.createElement(c.Provider,{value:{setIsLoading:(e,r)=>{const i=t.find(t=>t.type===e);if(i){if(i.isLoading===r)return;i.isLoading=r,n(t.concat())}else n(t.concat({type:e,isLoading:r}))}}},a?i.a.createElement(o.a,{modalClassName:s.a.modal,contentClassName:s.a.modalContentEmpty,isOpen:!0,centered:!0},i.a.createElement("i",{className:"fa fa-spinner fa-spin fa-2x fa-fw"})):null,e)};function u(){const e=Object(r.useContext)(c);if(!e)throw new Error("You probably forgot to use LoadingIndicatorProvider");return e}},function(e,t,n){var r=n(37),i=n(1506);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1528);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";var r=n(7).Buffer;e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n<t.length;n++)t[n]=255;for(var i=0;i<e.length;i++){var o=e.charAt(i),a=o.charCodeAt(0);if(255!==t[a])throw new TypeError(o+" is ambiguous");t[a]=i}var s=e.length,c=e.charAt(0),l=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function f(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return r.alloc(0);var n=0;if(" "!==e[n]){for(var i=0,o=0;e[n]===c;)i++,n++;for(var a=(e.length-n)*l+1>>>0,u=new Uint8Array(a);e[n];){var f=t[e.charCodeAt(n)];if(255===f)return;for(var d=0,p=a-1;(0!==f||d<o)&&-1!==p;p--,d++)f+=s*u[p]>>>0,u[p]=f%256>>>0,f=f/256>>>0;if(0!==f)throw new Error("Non-zero carry");o=d,n++}if(" "!==e[n]){for(var h=a-o;h!==a&&0===u[h];)h++;var m=r.allocUnsafe(i+(a-h));m.fill(0,0,i);for(var b=i;h!==a;)m[b++]=u[h++];return m}}}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,i=0,o=0,a=t.length;o!==a&&0===t[o];)o++,n++;for(var l=(a-o)*u+1>>>0,f=new Uint8Array(l);o!==a;){for(var d=t[o],p=0,h=l-1;(0!==d||p<i)&&-1!==h;h--,p++)d+=256*f[h]>>>0,f[h]=d%s>>>0,d=d/s>>>0;if(0!==d)throw new Error("Non-zero carry");i=p,o++}for(var m=l-i;m!==l&&0===f[m];)m++;for(var b=c.repeat(n);m<l;++m)b+=e.charAt(f[m]);return b},decodeUnsafe:f,decode:function(e){var t=f(e);if(t)return t;throw new Error("Non-base"+s+" character")}}}},function(e,t,n){e.exports=i;var r=n(51).EventEmitter;function i(){r.call(this)}n(4)(i,r),i.Readable=n(148),i.Writable=n(470),i.Duplex=n(471),i.Transform=n(472),i.PassThrough=n(473),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(n.on("end",s),n.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},function(e,t,n){e.exports=n(536)(n(537))},function(e,t,n){var r=n(391),i=n(1395),o=n(1019),a=n(1406),s=n(1407),c=n(27),l=function(e,t){var n=[];return t.forEach((function(t){if("object"==typeof t.components){if("tuple"!==t.type.substring(0,5))throw new Error("components found but type is not tuple; report on GitHub");var i="",o=t.type.indexOf("[");o>=0&&(i=t.type.substring(o));var a=l(e,t.components);r.isArray(a)&&e?n.push("tuple("+a.join(",")+")"+i):e?n.push("("+a+")"):n.push("("+a.join(",")+")"+i)}else n.push(t.type)})),n},u=function(e){if(!o.isHexStrict(e))throw new Error("The parameter must be a valid HEX string.");var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n<r;n+=2){var i=parseInt(e.substr(n,2),16);t+=String.fromCharCode(i)}return t},f=function(e){if(!e)return"0x00";for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n).toString(16);t+=r.length<2?"0"+r:r}return"0x"+t},d=function(e){if(e=e?e.toLowerCase():"ether",!i.unitMap[e])throw new Error('This unit "'+e+"\" doesn't exist, please use the one of the following units"+JSON.stringify(i.unitMap,null,2));return e};e.exports={_fireError:function(e,t,n,i,o){return!r.isObject(e)||e instanceof Error||!e.data||((r.isObject(e.data)||r.isArray(e.data))&&(e.data=JSON.stringify(e.data,null,2)),e=e.message+"\n"+e.data),r.isString(e)&&(e=new Error(e)),r.isFunction(i)&&i(e,o),r.isFunction(n)&&((t&&r.isFunction(t.listeners)&&t.listeners("error").length||r.isFunction(i))&&t.catch((function(){})),setTimeout((function(){n(e)}),1)),t&&r.isFunction(t.emit)&&setTimeout((function(){t.emit("error",e,o),t.removeAllListeners()}),1),t},_jsonInterfaceMethodToString:function(e){return r.isObject(e)&&e.name&&-1!==e.name.indexOf("(")?e.name:e.name+"("+l(!1,e.inputs).join(",")+")"},_flattenTypes:l,randomHex:function(e){return"0x"+s(e).toString("hex")},_:r,BN:o.BN,isBN:o.isBN,isBigNumber:o.isBigNumber,isHex:o.isHex,isHexStrict:o.isHexStrict,sha3:o.sha3,sha3Raw:o.sha3Raw,keccak256:o.sha3,soliditySha3:a.soliditySha3,soliditySha3Raw:a.soliditySha3Raw,encodePacked:a.encodePacked,isAddress:o.isAddress,checkAddressChecksum:o.checkAddressChecksum,toChecksumAddress:function(e){if(void 0===e)return"";if(!/^(0x)?[0-9a-f]{40}$/i.test(e))throw new Error('Given address "'+e+'" is not a valid Ethereum address.');e=e.toLowerCase().replace(/^0x/i,"");for(var t=o.sha3(e).replace(/^0x/i,""),n="0x",r=0;r<e.length;r++)parseInt(t[r],16)>7?n+=e[r].toUpperCase():n+=e[r];return n},toHex:o.toHex,toBN:o.toBN,bytesToHex:o.bytesToHex,hexToBytes:o.hexToBytes,hexToNumberString:o.hexToNumberString,hexToNumber:o.hexToNumber,toDecimal:o.hexToNumber,numberToHex:o.numberToHex,fromDecimal:o.numberToHex,hexToUtf8:o.hexToUtf8,hexToString:o.hexToUtf8,toUtf8:o.hexToUtf8,stripHexPrefix:o.stripHexPrefix,utf8ToHex:o.utf8ToHex,stringToHex:o.utf8ToHex,fromUtf8:o.utf8ToHex,hexToAscii:u,toAscii:u,asciiToHex:f,fromAscii:f,unitMap:i.unitMap,toWei:function(e,t){if(t=d(t),!o.isBN(e)&&!r.isString(e))throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(e)?i.toWei(e,t):i.toWei(e,t).toString(10)},fromWei:function(e,t){if(t=d(t),!o.isBN(e)&&!r.isString(e))throw new Error("Please pass numbers as strings or BN objects to avoid precision errors.");return o.isBN(e)?i.fromWei(e,t):i.fromWei(e,t).toString(10)},padLeft:o.leftPad,leftPad:o.leftPad,padRight:o.rightPad,rightPad:o.rightPad,toTwosComplement:o.toTwosComplement,isBloom:o.isBloom,isUserEthereumAddressInBloom:o.isUserEthereumAddressInBloom,isContractAddressInBloom:o.isContractAddressInBloom,isTopic:o.isTopic,isTopicInBloom:o.isTopicInBloom,isInBloom:o.isInBloom,compareBlockNumbers:function(e,t){if(e==t)return 0;if("genesis"!=e&&"earliest"!=e&&0!=e||"genesis"!=t&&"earliest"!=t&&0!=t){if("genesis"==e||"earliest"==e)return-1;if("genesis"==t||"earliest"==t)return 1;if("latest"==e)return"pending"==t?-1:1;if("latest"===t)return"pending"==e?1:-1;if("pending"==e)return 1;if("pending"==t)return-1;{let n=new c(e),r=new c(t);return n.lt(r)?-1:n.eq(r)?0:1}}return 0}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(860),t),i(n(385),t),i(n(384),t),i(n(861),t)},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=function(e){return Array.isArray(e)?e[0]:e},i=function(e){if("function"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(void 0,n)}},o=function(e,t){if("function"==typeof e)return i(e,t);null!=e&&(e.current=t)}},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(29),a=n(53),s=n(0),c=n.n(s),l=n(1),u=n.n(l),f=n(10),d=n.n(f),p=n(8),h={active:u.a.bool,"aria-label":u.a.string,block:u.a.bool,color:u.a.string,disabled:u.a.bool,outline:u.a.bool,tag:p.p,innerRef:u.a.oneOfType([u.a.object,u.a.func,u.a.string]),onClick:u.a.func,size:u.a.string,children:u.a.node,className:u.a.string,cssModule:u.a.object,close:u.a.bool},m=function(e){function t(t){var n;return(n=e.call(this,t)||this).onClick=n.onClick.bind(Object(o.a)(n)),n}Object(a.a)(t,e);var n=t.prototype;return n.onClick=function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()},n.render=function(){var e=this.props,t=e.active,n=e["aria-label"],o=e.block,a=e.className,s=e.close,l=e.cssModule,u=e.color,f=e.outline,h=e.size,m=e.tag,b=e.innerRef,y=Object(i.a)(e,["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"]);s&&void 0===y.children&&(y.children=c.a.createElement("span",{"aria-hidden":!0},"×"));var g="btn"+(f?"-outline":"")+"-"+u,v=Object(p.l)(d()(a,{close:s},s||"btn",s||g,!!h&&"btn-"+h,!!o&&"btn-block",{active:t,disabled:this.props.disabled}),l);y.href&&"button"===m&&(m="a");var w=s?"Close":null;return c.a.createElement(m,Object(r.a)({type:"button"===m&&y.onClick?"button":void 0},y,{className:v,ref:b,onClick:this.onClick,"aria-label":n||w}))},t}(c.a.Component);m.propTypes=h,m.defaultProps={color:"secondary",tag:"button"},t.a=m},function(e,t,n){var r=n(37),i=n(1469);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(0),a=n.n(o),s=n(1),c=n.n(s),l=n(10),u=n.n(l),f=n(8),d={children:c.a.node,row:c.a.bool,check:c.a.bool,inline:c.a.bool,disabled:c.a.bool,tag:f.p,className:c.a.string,cssModule:c.a.object},p=function(e){var t=e.className,n=e.cssModule,o=e.row,s=e.disabled,c=e.check,l=e.inline,d=e.tag,p=Object(i.a)(e,["className","cssModule","row","disabled","check","inline","tag"]),h=Object(f.l)(u()(t,!!o&&"row",c?"form-check":"form-group",!(!c||!l)&&"form-check-inline",!(!c||!s)&&"disabled"),n);return"fieldset"===d&&(p.disabled=s),a.a.createElement(d,Object(r.a)({},p,{className:h}))};p.propTypes=d,p.defaultProps={tag:"div"},t.a=p},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(0),a=n.n(o),s=n(1),c=n.n(s),l=n(10),u=n.n(l),f=n(8),d=c.a.oneOfType([c.a.number,c.a.string]),p=c.a.oneOfType([c.a.bool,c.a.string,c.a.number,c.a.shape({size:d,order:d,offset:d})]),h={children:c.a.node,hidden:c.a.bool,check:c.a.bool,size:c.a.string,for:c.a.string,tag:f.p,className:c.a.string,cssModule:c.a.object,xs:p,sm:p,md:p,lg:p,xl:p,widths:c.a.array},m={tag:"label",widths:["xs","sm","md","lg","xl"]},b=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},y=function(e){var t=e.className,n=e.cssModule,o=e.hidden,s=e.widths,c=e.tag,l=e.check,d=e.size,p=e.for,h=Object(i.a)(e,["className","cssModule","hidden","widths","tag","check","size","for"]),m=[];s.forEach((function(t,r){var i=e[t];if(delete h[t],i||""===i){var o,a=!r;if(Object(f.j)(i)){var s,c=a?"-":"-"+t+"-";o=b(a,t,i.size),m.push(Object(f.l)(u()(((s={})[o]=i.size||""===i.size,s["order"+c+i.order]=i.order||0===i.order,s["offset"+c+i.offset]=i.offset||0===i.offset,s))),n)}else o=b(a,t,i),m.push(o)}}));var y=Object(f.l)(u()(t,!!o&&"sr-only",!!l&&"form-check-label",!!d&&"col-form-label-"+d,m,!!m.length&&"col-form-label"),n);return a.a.createElement(c,Object(r.a)({htmlFor:p},h,{className:y}))};y.propTypes=h,y.defaultProps=m,t.a=y},function(e,t,n){"use strict";
54 /*
55 object-assign
56 (c) Sindre Sorhus
57 @license MIT
58 */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=a(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))i.call(n,u)&&(c[u]=n[u]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(c[s[f]]=n[s[f]])}}return c}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.enableScroll=t.disableScroll=t.fitPopupWindow=t.closePopupWindow=t.openPopupWindow=void 0;const i=360,o=580,a={};t.openPopupWindow=function(e,t="default"){var n;return r(this,void 0,void 0,(function*(){const r={width:i,height:o,url:e,type:"popup"};if(void 0!==a[t])try{const r=yield browser.windows.get(a[t],{populate:!0});if(!(null===(n=null==r?void 0:r.tabs)||void 0===n?void 0:n.length))throw new Error("Null window or tabs");{const t=r.tabs[0];if(!(null==t?void 0:t.id))throw new Error("Null window or tabs");yield browser.tabs.update(t.id,{active:!0,url:e})}}catch(e){a[t]=(yield browser.windows.create(r)).id}else a[t]=(yield browser.windows.create(r)).id;if(a[t])try{yield browser.windows.update(a[t],{focused:!0})}catch(e){console.log("Failed to update window focus: "+e.message)}return a[t]}))},t.closePopupWindow=function(e){(()=>{r(this,void 0,void 0,(function*(){const t=a[e];t&&(yield browser.windows.remove(t))}))})()},t.fitPopupWindow=function(){const e=window.outerWidth-window.innerWidth,t=window.outerHeight-window.innerHeight;browser.windows?browser.windows.getCurrent().then(n=>{null!=(null==n?void 0:n.id)&&browser.windows.update(n.id,{width:i+e,height:o+t})}):window.resizeTo(i+e,o+t)},t.disableScroll=function(){document.getElementsByTagName("html")[0].style.overflow="hidden"},t.enableScroll=function(){document.getElementsByTagName("html")[0].style.overflow=""}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";var r=n(960),i=n(1130);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=v,t.resolve=function(e,t){return v(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?v(e,!1,!0).resolveObject(t):t},t.format=function(e){i.isString(e)&&(e=v(e));return e instanceof o?e.format():o.prototype.format.call(e)},t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),f=["%","/","?",";","#"].concat(u),d=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(883);function v(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var v=e=l.join(s);if(v=v.trim(),!n&&1===e.split("#").length){var w=c.exec(v);if(w)return this.path=v,this.href=v,this.pathname=w[1],w[2]?(this.search=w[2],this.query=t?g.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var _=a.exec(v);if(_){var k=(_=_[0]).toLowerCase();this.protocol=k,v=v.substr(_.length)}if(n||_||v.match(/^\/\/[^@\/]+@[^@\/]+/)){var x="//"===v.substr(0,2);!x||_&&b[_]||(v=v.substr(2),this.slashes=!0)}if(!b[_]&&(x||_&&!y[_])){for(var S,O,E=-1,T=0;T<d.length;T++){-1!==(A=v.indexOf(d[T]))&&(-1===E||A<E)&&(E=A)}-1!==(O=-1===E?v.lastIndexOf("@"):v.lastIndexOf("@",E))&&(S=v.slice(0,O),v=v.slice(O+1),this.auth=decodeURIComponent(S)),E=-1;for(T=0;T<f.length;T++){var A;-1!==(A=v.indexOf(f[T]))&&(-1===E||A<E)&&(E=A)}-1===E&&(E=v.length),this.host=v.slice(0,E),v=v.slice(E),this.parseHost(),this.hostname=this.hostname||"";var M="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!M)for(var I=this.hostname.split(/\./),P=(T=0,I.length);T<P;T++){var C=I[T];if(C&&!C.match(p)){for(var j="",D=0,R=C.length;D<R;D++)C.charCodeAt(D)>127?j+="x":j+=C[D];if(!j.match(p)){var N=I.slice(0,T),B=I.slice(T+1),L=C.match(h);L&&(N.push(L[1]),B.unshift(L[2])),B.length&&(v="/"+B.join(".")+v),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+U,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!m[k])for(T=0,P=u.length;T<P;T++){var q=u[T];if(-1!==v.indexOf(q)){var z=encodeURIComponent(q);z===q&&(z=escape(q)),v=v.split(q).join(z)}}var V=v.indexOf("#");-1!==V&&(this.hash=v.substr(V),v=v.slice(0,V));var H=v.indexOf("?");if(-1!==H?(this.search=v.substr(H),this.query=v.substr(H+1),t&&(this.query=g.parse(this.query)),v=v.slice(0,H)):t&&(this.search="",this.query={}),v&&(this.pathname=v),y[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){U=this.pathname||"";var $=this.search||"";this.path=U+$}return this.href=this.format(),this},o.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=g.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||y[t])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+o+(n=n.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(e){return this.resolveObject(v(e,!1,!0)).format()},o.prototype.resolveObject=function(e){if(i.isString(e)){var t=new o;t.parse(e,!1,!0),e=t}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(n[u]=e[u])}return y[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!y[e.protocol]){for(var f=Object.keys(e),d=0;d<f.length;d++){var p=f[d];n[p]=e[p]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||b[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var m=n.pathname||"",g=n.search||"";n.path=m+g}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var v=n.pathname&&"/"===n.pathname.charAt(0),w=e.host||e.pathname&&"/"===e.pathname.charAt(0),_=w||v||n.host&&e.pathname,k=_,x=n.pathname&&n.pathname.split("/")||[],S=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!y[n.protocol]);if(S&&(n.hostname="",n.port=null,n.host&&(""===x[0]?x[0]=n.host:x.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),_=_&&(""===h[0]||""===x[0])),w)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,x=h;else if(h.length)x||(x=[]),x.pop(),x=x.concat(h),n.search=e.search,n.query=e.query;else if(!i.isNullOrUndefined(e.search)){if(S)n.hostname=n.host=x.shift(),(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var O=x.slice(-1)[0],E=(n.host||e.host||x.length>1)&&("."===O||".."===O)||""===O,T=0,A=x.length;A>=0;A--)"."===(O=x[A])?x.splice(A,1):".."===O?(x.splice(A,1),T++):T&&(x.splice(A,1),T--);if(!_&&!k)for(;T--;T)x.unshift("..");!_||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),E&&"/"!==x.join("/").substr(-1)&&x.push("");var M,I=""===x[0]||x[0]&&"/"===x[0].charAt(0);S&&(n.hostname=n.host=I?"":x.length?x.shift():"",(M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=M.shift(),n.host=n.hostname=M.shift()));return(_=_||n.host&&x.length)&&!I&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";(function(t){!function(n){function r(e){const t=new Uint32Array([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]);let n=1779033703,r=3144134277,i=1013904242,o=2773480762,a=1359893119,s=2600822924,c=528734635,l=1541459225;const u=new Uint32Array(64);function f(e){let f=0,d=e.length;for(;d>=64;){let p,h,m,b,y,g=n,v=r,w=i,_=o,k=a,x=s,S=c,O=l;for(h=0;h<16;h++)m=f+4*h,u[h]=(255&e[m])<<24|(255&e[m+1])<<16|(255&e[m+2])<<8|255&e[m+3];for(h=16;h<64;h++)p=u[h-2],b=(p>>>17|p<<15)^(p>>>19|p<<13)^p>>>10,p=u[h-15],y=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3,u[h]=(b+u[h-7]|0)+(y+u[h-16]|0)|0;for(h=0;h<64;h++)b=(((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&x^~k&S)|0)+(O+(t[h]+u[h]|0)|0)|0,y=((g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10))+(g&v^g&w^v&w)|0,O=S,S=x,x=k,k=_+b|0,_=w,w=v,v=g,g=b+y|0;n=n+g|0,r=r+v|0,i=i+w|0,o=o+_|0,a=a+k|0,s=s+x|0,c=c+S|0,l=l+O|0,f+=64,d-=64}}f(e);let d,p=e.length%64,h=e.length/536870912|0,m=e.length<<3,b=p<56?56:120,y=e.slice(e.length-p,e.length);for(y.push(128),d=p+1;d<b;d++)y.push(0);return y.push(h>>>24&255),y.push(h>>>16&255),y.push(h>>>8&255),y.push(h>>>0&255),y.push(m>>>24&255),y.push(m>>>16&255),y.push(m>>>8&255),y.push(m>>>0&255),f(y),[n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,l>>>24&255,l>>>16&255,l>>>8&255,l>>>0&255]}function i(e,t,n){e=e.length<=64?e:r(e);const i=64+t.length+4,o=new Array(i),a=new Array(64);let s,c=[];for(s=0;s<64;s++)o[s]=54;for(s=0;s<e.length;s++)o[s]^=e[s];for(s=0;s<t.length;s++)o[64+s]=t[s];for(s=i-4;s<i;s++)o[s]=0;for(s=0;s<64;s++)a[s]=92;for(s=0;s<e.length;s++)a[s]^=e[s];function l(){for(let e=i-1;e>=i-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;n>=32;)l(),c=c.concat(r(a.concat(r(o)))),n-=32;return n>0&&(l(),c=c.concat(r(a.concat(r(o))).slice(0,n))),c}function o(e,t,n,r,i){let o;for(l(e,16*(2*n-1),i,0,16),o=0;o<2*n;o++)c(e,16*o,i,16),s(i,r),l(i,0,e,t+16*o,16);for(o=0;o<n;o++)l(e,t+2*o*16,e,16*o,16);for(o=0;o<n;o++)l(e,t+16*(2*o+1),e,16*(o+n),16)}function a(e,t){return e<<t|e>>>32-t}function s(e,t){l(e,0,t,0,16);for(let e=8;e>0;e-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18);for(let n=0;n<16;++n)e[n]+=t[n]}function c(e,t,n,r){for(let i=0;i<r;i++)n[i]^=e[t+i]}function l(e,t,n,r,i){for(;i--;)n[r++]=e[t++]}function u(e){if(!e||"number"!=typeof e.length)return!1;for(let t=0;t<e.length;t++){const n=e[t];if("number"!=typeof n||n%1||n<0||n>=256)return!1}return!0}function f(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function d(e,n,r,a,s,d,p){if(r=f(r,"N"),a=f(a,"r"),s=f(s,"p"),d=f(d,"dkLen"),0===r||0!=(r&r-1))throw new Error("N must be power of 2");if(r>2147483647/128/a)throw new Error("N too large");if(a>2147483647/128/s)throw new Error("r too large");if(!u(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!u(n))throw new Error("salt must be an array or buffer");n=Array.prototype.slice.call(n);let h=i(e,n,128*s*a);const m=new Uint32Array(32*s*a);for(let e=0;e<m.length;e++){const t=4*e;m[e]=(255&h[t+3])<<24|(255&h[t+2])<<16|(255&h[t+1])<<8|(255&h[t+0])<<0}const b=new Uint32Array(64*a),y=new Uint32Array(32*a*r),g=32*a,v=new Uint32Array(16),w=new Uint32Array(16),_=s*r*2;let k,x,S=0,O=null,E=!1,T=0,A=0;const M=p?parseInt(1e3/a):4294967295,I=void 0!==t?t:setTimeout,P=function(){if(E)return p(new Error("cancelled"),S/_);let t;switch(T){case 0:x=32*A*a,l(m,x,b,0,g),T=1,k=0;case 1:t=r-k,t>M&&(t=M);for(let e=0;e<t;e++)l(b,0,y,(k+e)*g,g),o(b,g,a,v,w);if(k+=t,S+=t,p){const e=parseInt(1e3*S/_);if(e!==O){if(E=p(null,S/_),E)break;O=e}}if(k<r)break;k=0,T=2;case 2:t=r-k,t>M&&(t=M);for(let e=0;e<t;e++){const e=b[16*(2*a-1)]&r-1;c(y,e*g,b,g),o(b,g,a,v,w)}if(k+=t,S+=t,p){const e=parseInt(1e3*S/_);if(e!==O){if(E=p(null,S/_),E)break;O=e}}if(k<r)break;if(l(b,0,m,x,g),A++,A<s){T=0;break}h=[];for(let e=0;e<m.length;e++)h.push(m[e]>>0&255),h.push(m[e]>>8&255),h.push(m[e]>>16&255),h.push(m[e]>>24&255);const n=i(e,h,d);return p&&p(null,1,n),n}p&&I(P)};if(!p)for(;;){const e=P();if(null!=e)return e}P()}const p={scrypt:function(e,t,n,r,i,o,a){return new Promise((function(s,c){let l=0;a&&a(0),d(e,t,n,r,i,o,(function(e,t,n){if(e)c(e);else if(n)a&&1!==l&&a(1),s(new Uint8Array(n));else if(a&&t!==l)return l=t,a(t)}))}))},syncScrypt:function(e,t,n,r,i,o){return new Uint8Array(d(e,t,n,r,i,o))}};e.exports=p}()}).call(this,n(223).setImmediate)},function(e,t,n){"use strict";var r={};(0,n(57).assign)(r,n(538),n(541),n(296)),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(645),i=n(646),o=n(648),a=()=>{},s=new i.TimeoutError;t.default=class extends r{constructor(e){var t,n,r,i;if(super(),this._intervalCount=0,this._intervalEnd=0,this._pendingCount=0,this._resolveEmpty=a,this._resolveIdle=a,!("number"==typeof(e=Object.assign({carryoverConcurrencyCount:!1,intervalCap:1/0,interval:0,concurrency:1/0,autoStart:!0,queueClass:o.default},e)).intervalCap&&e.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${null!==(n=null===(t=e.intervalCap)||void 0===t?void 0:t.toString())&&void 0!==n?n:""}\` (${typeof e.intervalCap})`);if(void 0===e.interval||!(Number.isFinite(e.interval)&&e.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${null!==(i=null===(r=e.interval)||void 0===r?void 0:r.toString())&&void 0!==i?i:""}\` (${typeof e.interval})`);this._carryoverConcurrencyCount=e.carryoverConcurrencyCount,this._isIntervalIgnored=e.intervalCap===1/0||0===e.interval,this._intervalCap=e.intervalCap,this._interval=e.interval,this._queue=new e.queueClass,this._queueClass=e.queueClass,this.concurrency=e.concurrency,this._timeout=e.timeout,this._throwOnTimeout=!0===e.throwOnTimeout,this._isPaused=!1===e.autoStart}get _doesIntervalAllowAnother(){return this._isIntervalIgnored||this._intervalCount<this._intervalCap}get _doesConcurrentAllowAnother(){return this._pendingCount<this._concurrency}_next(){this._pendingCount--,this._tryToStartAnother(),this.emit("next")}_resolvePromises(){this._resolveEmpty(),this._resolveEmpty=a,0===this._pendingCount&&(this._resolveIdle(),this._resolveIdle=a,this.emit("idle"))}_onResumeInterval(){this._onInterval(),this._initializeIntervalIfNeeded(),this._timeoutId=void 0}_isIntervalPaused(){const e=Date.now();if(void 0===this._intervalId){const t=this._intervalEnd-e;if(!(t<0))return void 0===this._timeoutId&&(this._timeoutId=setTimeout(()=>{this._onResumeInterval()},t)),!0;this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0}return!1}_tryToStartAnother(){if(0===this._queue.size)return this._intervalId&&clearInterval(this._intervalId),this._intervalId=void 0,this._resolvePromises(),!1;if(!this._isPaused){const e=!this._isIntervalPaused();if(this._doesIntervalAllowAnother&&this._doesConcurrentAllowAnother){const t=this._queue.dequeue();return!!t&&(this.emit("active"),t(),e&&this._initializeIntervalIfNeeded(),!0)}}return!1}_initializeIntervalIfNeeded(){this._isIntervalIgnored||void 0!==this._intervalId||(this._intervalId=setInterval(()=>{this._onInterval()},this._interval),this._intervalEnd=Date.now()+this._interval)}_onInterval(){0===this._intervalCount&&0===this._pendingCount&&this._intervalId&&(clearInterval(this._intervalId),this._intervalId=void 0),this._intervalCount=this._carryoverConcurrencyCount?this._pendingCount:0,this._processQueue()}_processQueue(){for(;this._tryToStartAnother(););}get concurrency(){return this._concurrency}set concurrency(e){if(!("number"==typeof e&&e>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${e}\` (${typeof e})`);this._concurrency=e,this._processQueue()}async add(e,t={}){return new Promise((n,r)=>{this._queue.enqueue(async()=>{this._pendingCount++,this._intervalCount++;try{const o=void 0===this._timeout&&void 0===t.timeout?e():i.default(Promise.resolve(e()),void 0===t.timeout?this._timeout:t.timeout,()=>{(void 0===t.throwOnTimeout?this._throwOnTimeout:t.throwOnTimeout)&&r(s)});n(await o)}catch(e){r(e)}this._next()},t),this._tryToStartAnother(),this.emit("add")})}async addAll(e,t){return Promise.all(e.map(async e=>this.add(e,t)))}start(){return this._isPaused?(this._isPaused=!1,this._processQueue(),this):this}pause(){this._isPaused=!0}clear(){this._queue=new this._queueClass}async onEmpty(){if(0!==this._queue.size)return new Promise(e=>{const t=this._resolveEmpty;this._resolveEmpty=()=>{t(),e()}})}async onIdle(){if(0!==this._pendingCount||0!==this._queue.size)return new Promise(e=>{const t=this._resolveIdle;this._resolveIdle=()=>{t(),e()}})}get size(){return this._queue.size}sizeBy(e){return this._queue.filter(e).length}get pending(){return this._pendingCount}get isPaused(){return this._isPaused}get timeout(){return this._timeout}set timeout(e){this._timeout=e}}},function(e,t){e.exports="assets/temp-icon.svg"},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(1349)},function(e){e.exports=JSON.parse('{"manifest_version":2,"name":"Keplr","description":"Keplr is a browser extension wallet for the Inter blockchain ecosystem.","version":"0.8.13","applications":{"gecko":{"id":"keplr-extension@keplr.app","strict_min_version":"56.0"}},"icons":{"16":"assets/icon-16.png","48":"assets/icon-48.png","128":"assets/icon-128.png"},"browser_action":{"default_popup":"popup.html","default_title":"Keplr"},"background":{"scripts":["browser-polyfill.js","background.bundle.js"],"persistent":true},"permissions":["storage","notifications","identity"],"content_scripts":[{"matches":["<all_urls>"],"js":["browser-polyfill.js","contentScripts.bundle.js"],"run_at":"document_start","all_frames":true}],"web_accessible_resources":["injectedScript.bundle.js","assets/temp-icon.svg"]}')},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0),i=n.n(r).a.createContext({})},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(16),i=n(850),o=n(214);n(830);const a=new(n(35).a)("address/5.0.8");function s(e){Object(r.j)(e,20)||a.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let e=0;e<40;e++)n[e]=t[e].charCodeAt(0);const i=Object(r.a)(Object(o.a)(n));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const c={};for(let e=0;e<10;e++)c[String(e)]=String(e);for(let e=0;e<26;e++)c[String.fromCharCode(65+e)]=String(10+e);const l=Math.floor((u=9007199254740991,Math.log10?Math.log10(u):Math.log(u)/Math.LN10));var u;function f(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>c[e]).join("");for(;t.length>=l;){let e=t.substring(0,l);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}function d(e){let t=null;if("string"!=typeof e&&a.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=s(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&a.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==f(e)&&a.throwArgumentError("bad icap checksum","address",e),t=Object(i.c)(e.substring(4));t.length<40;)t="0"+t;t=s("0x"+t)}else a.throwArgumentError("invalid address","address",e);return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(17),i=n(851),o=n(216);n(831);const a=new(n(36).a)("address/5.0.8");function s(e){Object(r.j)(e,20)||a.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let e=0;e<40;e++)n[e]=t[e].charCodeAt(0);const i=Object(r.a)(Object(o.a)(n));for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&i[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}const c={};for(let e=0;e<10;e++)c[String(e)]=String(e);for(let e=0;e<26;e++)c[String.fromCharCode(65+e)]=String(10+e);const l=Math.floor((u=9007199254740991,Math.log10?Math.log10(u):Math.log(u)/Math.LN10));var u;function f(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>c[e]).join("");for(;t.length>=l;){let e=t.substring(0,l);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}function d(e){let t=null;if("string"!=typeof e&&a.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=s(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&a.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==f(e)&&a.throwArgumentError("bad icap checksum","address",e),t=Object(i.c)(e.substring(4));t.length<40;)t="0"+t;t=s("0x"+t)}else a.throwArgumentError("invalid address","address",e);return t}},function(e,t,n){var r=n(37),i=n(1341);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1514);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinPretty=void 0;const r=n(221);class i{constructor(e,t){this._currency=e,this.amount=t,this._options={separator:" ",upperCase:!1,lowerCase:!1,hideDenom:!1},t instanceof r.IntPretty?this.intPretty=t:this.intPretty=new r.IntPretty(t),this.intPretty=this.intPretty.maxDecimals(e.coinDecimals).precision(e.coinDecimals)}get options(){return Object.assign(Object.assign({},this._options),this.intPretty.options)}get denom(){return this.currency.coinDenom}get currency(){return this._currency}setCurrency(e){const t=new i(e,this.amount);return t._options=Object.assign({},this._options),t.intPretty=this.intPretty.clone(),t}separator(e){const t=this.clone();return t._options.separator=e,t}upperCase(e){const t=this.clone();return t._options.upperCase=e,t._options.lowerCase=!e,t}lowerCase(e){const t=this.clone();return t._options.lowerCase=e,t._options.upperCase=!e,t}hideDenom(e){const t=this.clone();return t._options.hideDenom=e,t}precision(e){const t=this.clone();return t.intPretty=t.intPretty.precision(e),t}maxDecimals(e){const t=this.clone();return t.intPretty=t.intPretty.maxDecimals(e),t}trim(e){const t=this.clone();return t.intPretty=t.intPretty.trim(e),t}shrink(e){const t=this.clone();return t.intPretty=t.intPretty.shrink(e),t}locale(e){const t=this.clone();return t.intPretty=t.intPretty.locale(e),t}ready(e){const t=this.clone();return t.intPretty=t.intPretty.ready(e),t}get isReady(){return this.intPretty.isReady}add(e){const t=this.clone();return t.intPretty=t.intPretty.add(e.intPretty),t}toDec(){return this.intPretty.toDec()}toString(){let e=this.denom;this._options.upperCase&&(e=e.toUpperCase()),this._options.lowerCase&&(e=e.toLowerCase());let t=this._options.separator;return this._options.hideDenom&&(e="",t=""),`${this.intPretty.toString()}${t}${e}`}clone(){const e=new i(this._currency,this.amount);return e._options=Object.assign({},this._options),e.intPretty=this.intPretty.clone(),e}}t.CoinPretty=i},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseAccount=void 0;const i=n(23);class o{constructor(e,t,n,r){this.type=e,this.address=t,this.accountNumber=n,this.sequence=r}static fetchFromRest(e,t,n=!1){return r(this,void 0,void 0,(function*(){const r=yield e.get("auth/accounts/"+t);return o.fromAminoJSON(r.data,n?t:"")}))}static fromAminoJSON(e,t=""){"height"in e&&(e=e.result);const n=e.type;if(!n)throw new Error("Account's type is unknown: "+JSON.stringify(e));let r=e.value;const a=r.BaseVestingAccount||r.baseVestingAccount||r.base_vesting_account;a&&(r=a.BaseAccount||a.baseAccount||a.base_account);let s=r.address;if(!s){if(!t)throw new Error("Account's address is unknown: "+JSON.stringify(e));s=t}const c=r.account_number;if(null==c)throw new Error("Account's account number is unknown: "+JSON.stringify(e));const l=r.sequence;return new o(n,s,new i.Int(c),new i.Int(null!=l?l:"0"))}getType(){return this.type}getAddress(){return this.address}getAccountNumber(){return this.accountNumber}getSequence(){return this.sequence}}t.BaseAccount=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Bech32Address=void 0;const i=r(n(94));t.Bech32Address=class{constructor(e){this.address=e}static shortenAddress(e,t){if(t>=e.length)return e;const n=e.indexOf("1"),r=e.slice(0,n),i=e.slice(n+1);if(t-=r.length,t-=3,(t-=1)<=0)return"";const o=Math.floor(i.length/2);let a=i.slice(0,o),s=i.slice(o);for(;t<a.length+s.length;)(a.length+s.length)%2==1&&a.length>0?a=a.slice(0,a.length-1):s=s.slice(1);return r+"1"+a+"..."+s}static validate(e,t){const{prefix:n}=i.default.decode(e);if(t&&t!==n)throw new Error(`Unexpected prefix (expected: ${t}, actual: ${n})`)}static defaultBech32Config(e,t="val",n="cons",r="pub",i="oper"){return{bech32PrefixAccAddr:e,bech32PrefixAccPub:e+r,bech32PrefixValAddr:e+t+i,bech32PrefixValPub:e+t+i+r,bech32PrefixConsAddr:e+t+n,bech32PrefixConsPub:e+t+n+r}}toBech32(e){const t=i.default.toWords(this.address);return i.default.encode(e,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChainIdHelper=void 0;class r{static parse(e){const t=e.split(r.VersionFormatRegExp).filter(Boolean);return 2!==t.length?{identifier:e,version:0}:{identifier:t[0],version:parseInt(t[1])}}static hasChainVersion(e){return r.parse(e).identifier!==e}}t.ChainIdHelper=r,r.VersionFormatRegExp=/(.+)-([\d]+)/},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WsReadyState=void 0,function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSING=2]="CLOSING",e[e.CLOSED=3]="CLOSED",e[e.NONE=4]="NONE"}(t.WsReadyState||(t.WsReadyState={}))},function(e,t){
59 /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
60 t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-u)-1,p>>=-u,u+=s;u>0;o=256*o+e[t+f],f+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=l}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,l=8*o-i-1,u=(1<<l)-1,f=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+p]=255&a,p+=h,a/=256,l-=8);e[n+p-h]|=128*m}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(238),t),i(n(118),t),i(n(242),t),i(n(443),t)},function(e,t,n){"use strict";var r=t;function i(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(239),r.BufferWriter=n(437),r.Reader=n(240),r.BufferReader=n(438),r.util=n(64),r.rpc=n(439),r.roots=n(441),r.configure=i,i()},function(e,t,n){"use strict";e.exports=function(e,t){var n=new Array(arguments.length-1),r=0,i=2,o=!0;for(;i<arguments.length;)n[r++]=arguments[i++];return new Promise((function(i,a){n[r]=function(e){if(o)if(o=!1,e)a(e);else{for(var t=new Array(arguments.length-1),n=0;n<t.length;)t[n++]=arguments[n];i.apply(null,t)}};try{e.apply(t||null,n)}catch(e){o&&(o=!1,a(e))}}))}},function(e,t,n){"use strict";var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var i=new Array(64),o=new Array(123),a=0;a<64;)o[i[a]=a<26?a+65:a<52?a+71:a<62?a-4:a-59|43]=a++;r.encode=function(e,t,n){for(var r,o=null,a=[],s=0,c=0;t<n;){var l=e[t++];switch(c){case 0:a[s++]=i[l>>2],r=(3&l)<<4,c=1;break;case 1:a[s++]=i[r|l>>4],r=(15&l)<<2,c=2;break;case 2:a[s++]=i[r|l>>6],a[s++]=i[63&l],c=0}s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,a)),s=0)}return c&&(a[s++]=i[r],a[s++]=61,1===c&&(a[s++]=61)),o?(s&&o.push(String.fromCharCode.apply(String,a.slice(0,s))),o.join("")):String.fromCharCode.apply(String,a.slice(0,s))};r.decode=function(e,t,n){for(var r,i=n,a=0,s=0;s<e.length;){var c=e.charCodeAt(s++);if(61===c&&a>1)break;if(void 0===(c=o[c]))throw Error("invalid encoding");switch(a){case 0:r=c,a=1;break;case 1:t[n++]=r<<2|(48&c)>>4,r=c,a=2;break;case 2:t[n++]=(15&r)<<4|(60&c)>>2,r=c,a=3;break;case 3:t[n++]=(3&r)<<6|c,a=0}}if(1===a)throw Error("invalid encoding");return n-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},function(e,t,n){"use strict";function r(){this._listeners={}}e.exports=r,r.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},r.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r<n.length;)n[r].fn===t?n.splice(r,1):++r;return this},r.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var n=[],r=1;r<arguments.length;)n.push(arguments[r++]);for(r=0;r<t.length;)t[r].fn.apply(t[r++].ctx,n)}return this}},function(e,t,n){"use strict";function r(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),n=new Uint8Array(t.buffer),r=128===n[3];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3]}function o(e,r,i){t[0]=e,r[i]=n[3],r[i+1]=n[2],r[i+2]=n[1],r[i+3]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],t[0]}function s(e,r){return n[3]=e[r],n[2]=e[r+1],n[1]=e[r+2],n[0]=e[r+3],t[0]}e.writeFloatLE=r?i:o,e.writeFloatBE=r?o:i,e.readFloatLE=r?a:s,e.readFloatBE=r?s:a}():function(){function t(e,t,n,r){var i=t<0?1:0;if(i&&(t=-t),0===t)e(1/t>0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((i<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((i<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var o=Math.floor(Math.log(t)/Math.LN2);e((i<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,n,r)}}function n(e,t,n){var r=e(t,n),i=2*(r>>31)+1,o=r>>>23&255,a=8388607&r;return 255===o?a?NaN:i*(1/0):0===o?1401298464324817e-60*i*a:i*Math.pow(2,o-150)*(a+8388608)}e.writeFloatLE=t.bind(null,i),e.writeFloatBE=t.bind(null,o),e.readFloatLE=n.bind(null,a),e.readFloatBE=n.bind(null,s)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function i(e,r,i){t[0]=e,r[i]=n[0],r[i+1]=n[1],r[i+2]=n[2],r[i+3]=n[3],r[i+4]=n[4],r[i+5]=n[5],r[i+6]=n[6],r[i+7]=n[7]}function o(e,r,i){t[0]=e,r[i]=n[7],r[i+1]=n[6],r[i+2]=n[5],r[i+3]=n[4],r[i+4]=n[3],r[i+5]=n[2],r[i+6]=n[1],r[i+7]=n[0]}function a(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?i:o,e.writeDoubleBE=r?o:i,e.readDoubleLE=r?a:s,e.readDoubleBE=r?s:a}():function(){function t(e,t,n,r,i,o){var a=r<0?1:0;if(a&&(r=-r),0===r)e(0,i,o+t),e(1/r>0?0:2147483648,i,o+n);else if(isNaN(r))e(0,i,o+t),e(2146959360,i,o+n);else if(r>17976931348623157e292)e(0,i,o+t),e((a<<31|2146435072)>>>0,i,o+n);else{var s;if(r<22250738585072014e-324)e((s=r/5e-324)>>>0,i,o+t),e((a<<31|s/4294967296)>>>0,i,o+n);else{var c=Math.floor(Math.log(r)/Math.LN2);1024===c&&(c=1023),e(4503599627370496*(s=r*Math.pow(2,-c))>>>0,i,o+t),e((a<<31|c+1023<<20|1048576*s&1048575)>>>0,i,o+n)}}}function n(e,t,n,r,i){var o=e(r,i+t),a=e(r,i+n),s=2*(a>>31)+1,c=a>>>20&2047,l=4294967296*(1048575&a)+o;return 2047===c?l?NaN:s*(1/0):0===c?5e-324*s*l:s*Math.pow(2,c-1075)*(l+4503599627370496)}e.writeDoubleLE=t.bind(null,i,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=n.bind(null,a,0,4),e.readDoubleBE=n.bind(null,s,4,0)}(),e}function i(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function o(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function s(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=r(r)},function(module,exports,__webpack_require__){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},function(e,t,n){"use strict";var r=t;r.length=function(e){for(var t=0,n=0,r=0;r<e.length;++r)(n=e.charCodeAt(r))<128?t+=1:n<2048?t+=2:55296==(64512&n)&&56320==(64512&e.charCodeAt(r+1))?(++r,t+=4):t+=3;return t},r.read=function(e,t,n){if(n-t<1)return"";for(var r,i=null,o=[],a=0;t<n;)(r=e[t++])<128?o[a++]=r:r>191&&r<224?o[a++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[a++]=55296+(r>>10),o[a++]=56320+(1023&r)):o[a++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],a>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),a=0);return i?(a&&i.push(String.fromCharCode.apply(String,o.slice(0,a))),i.join("")):String.fromCharCode.apply(String,o.slice(0,a))},r.write=function(e,t,n){for(var r,i,o=n,a=0;a<e.length;++a)(r=e.charCodeAt(a))<128?t[n++]=r:r<2048?(t[n++]=r>>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(i=e.charCodeAt(a+1)))?(r=65536+((1023&r)<<10)+(1023&i),++a,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-o}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r=n||8192,i=r>>>1,o=null,a=r;return function(n){if(n<1||n>i)return e(n);a+n>r&&(o=e(r),a=0);var s=t.call(o,a,a+=n);return 7&a&&(a=1+(7|a)),s}}},function(e,t,n){"use strict";e.exports=i;var r=n(64);function i(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var a=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new i(n,r)},i.from=function(e){if("number"==typeof e)return i.fromNumber(e);if(r.isString(e)){if(!r.Long)return i.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new i(e.low>>>0,e.high>>>0):o},i.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},i.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;i.fromHash=function(e){return e===a?o:new i((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},i.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},i.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},function(e,t,n){"use strict";e.exports=o;var r=n(239);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(64);function o(){r.call(this)}function a(e,t,n){e.length<40?i.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r<e.length;)t[n++]=e[r++]}},o.prototype.bytes=function(e){i.isString(e)&&(e=i._Buffer_from(e,"base64"));var t=e.length>>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=i.Buffer.byteLength(e);return this.uint32(t),t&&this._push(a,t,e),this},o._configure()},function(e,t,n){"use strict";e.exports=o;var r=n(240);(o.prototype=Object.create(r.prototype)).constructor=o;var i=n(64);function o(e){r.call(this,e)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},function(e,t,n){"use strict";t.Service=n(440)},function(e,t,n){"use strict";e.exports=i;var r=n(64);function i(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(i.prototype=Object.create(r.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function e(t,n,i,o,a){if(!o)throw TypeError("request must be specified");var s=this;if(!a)return r.asPromise(e,s,t,n,i,o);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](o).finish(),(function(e,n){if(e)return s.emit("error",e,t),a(e);if(null!==n){if(!(n instanceof i))try{n=i[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),a(e)}return s.emit("data",n,t),a(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){a(e)}),0)}else setTimeout((function(){a(Error("already ended"))}),0)},i.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tendermint=t.ibc=t.google=t.cosmos=void 0;var r=n(48);const i=r.Reader,o=r.Writer,a=r.util,s={};t.cosmos=s.cosmos=(()=>{const e={};return e.auth=function(){const e={};return e.v1beta1=function(){const e={};return e.BaseAccount=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.address="",e.prototype.pubKey=null,e.prototype.accountNumber=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.sequence=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),null!=e.pubKey&&Object.hasOwnProperty.call(e,"pubKey")&&s.google.protobuf.Any.encode(e.pubKey,t.uint32(18).fork()).ldelim(),null!=e.accountNumber&&Object.hasOwnProperty.call(e,"accountNumber")&&t.uint32(24).uint64(e.accountNumber),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(32).uint64(e.sequence),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.auth.v1beta1.BaseAccount;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.address=e.string();break;case 2:r.pubKey=s.google.protobuf.Any.decode(e,e.uint32());break;case 3:r.accountNumber=e.uint64();break;case 4:r.sequence=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.auth.v1beta1.BaseAccount)return e;var t=new s.cosmos.auth.v1beta1.BaseAccount;if(null!=e.address&&(t.address=String(e.address)),null!=e.pubKey){if("object"!=typeof e.pubKey)throw TypeError(".cosmos.auth.v1beta1.BaseAccount.pubKey: object expected");t.pubKey=s.google.protobuf.Any.fromObject(e.pubKey)}return null!=e.accountNumber&&(a.Long?(t.accountNumber=a.Long.fromValue(e.accountNumber)).unsigned=!0:"string"==typeof e.accountNumber?t.accountNumber=parseInt(e.accountNumber,10):"number"==typeof e.accountNumber?t.accountNumber=e.accountNumber:"object"==typeof e.accountNumber&&(t.accountNumber=new a.LongBits(e.accountNumber.low>>>0,e.accountNumber.high>>>0).toNumber(!0))),null!=e.sequence&&(a.Long?(t.sequence=a.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(n.address="",n.pubKey=null,a.Long){var r=new a.Long(0,0,!0);n.accountNumber=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.accountNumber=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!0);n.sequence=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.sequence=t.longs===String?"0":0}return null!=e.address&&e.hasOwnProperty("address")&&(n.address=e.address),null!=e.pubKey&&e.hasOwnProperty("pubKey")&&(n.pubKey=s.google.protobuf.Any.toObject(e.pubKey,t)),null!=e.accountNumber&&e.hasOwnProperty("accountNumber")&&("number"==typeof e.accountNumber?n.accountNumber=t.longs===String?String(e.accountNumber):e.accountNumber:n.accountNumber=t.longs===String?a.Long.prototype.toString.call(e.accountNumber):t.longs===Number?new a.LongBits(e.accountNumber.low>>>0,e.accountNumber.high>>>0).toNumber(!0):e.accountNumber),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?n.sequence=t.longs===String?String(e.sequence):e.sequence:n.sequence=t.longs===String?a.Long.prototype.toString.call(e.sequence):t.longs===Number?new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ModuleAccount=function(){function e(e){if(this.permissions=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.baseAccount=null,e.prototype.name="",e.prototype.permissions=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.baseAccount&&Object.hasOwnProperty.call(e,"baseAccount")&&s.cosmos.auth.v1beta1.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim(),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.permissions&&e.permissions.length)for(var n=0;n<e.permissions.length;++n)t.uint32(26).string(e.permissions[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.auth.v1beta1.ModuleAccount;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.baseAccount=s.cosmos.auth.v1beta1.BaseAccount.decode(e,e.uint32());break;case 2:r.name=e.string();break;case 3:r.permissions&&r.permissions.length||(r.permissions=[]),r.permissions.push(e.string());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.auth.v1beta1.ModuleAccount)return e;var t=new s.cosmos.auth.v1beta1.ModuleAccount;if(null!=e.baseAccount){if("object"!=typeof e.baseAccount)throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.baseAccount: object expected");t.baseAccount=s.cosmos.auth.v1beta1.BaseAccount.fromObject(e.baseAccount)}if(null!=e.name&&(t.name=String(e.name)),e.permissions){if(!Array.isArray(e.permissions))throw TypeError(".cosmos.auth.v1beta1.ModuleAccount.permissions: array expected");t.permissions=[];for(var n=0;n<e.permissions.length;++n)t.permissions[n]=String(e.permissions[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.permissions=[]),t.defaults&&(n.baseAccount=null,n.name=""),null!=e.baseAccount&&e.hasOwnProperty("baseAccount")&&(n.baseAccount=s.cosmos.auth.v1beta1.BaseAccount.toObject(e.baseAccount,t)),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),e.permissions&&e.permissions.length){n.permissions=[];for(var r=0;r<e.permissions.length;++r)n.permissions[r]=e.permissions[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Params=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.maxMemoCharacters=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.txSigLimit=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.txSizeCostPerByte=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.sigVerifyCostEd25519=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.sigVerifyCostSecp256k1=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.maxMemoCharacters&&Object.hasOwnProperty.call(e,"maxMemoCharacters")&&t.uint32(8).uint64(e.maxMemoCharacters),null!=e.txSigLimit&&Object.hasOwnProperty.call(e,"txSigLimit")&&t.uint32(16).uint64(e.txSigLimit),null!=e.txSizeCostPerByte&&Object.hasOwnProperty.call(e,"txSizeCostPerByte")&&t.uint32(24).uint64(e.txSizeCostPerByte),null!=e.sigVerifyCostEd25519&&Object.hasOwnProperty.call(e,"sigVerifyCostEd25519")&&t.uint32(32).uint64(e.sigVerifyCostEd25519),null!=e.sigVerifyCostSecp256k1&&Object.hasOwnProperty.call(e,"sigVerifyCostSecp256k1")&&t.uint32(40).uint64(e.sigVerifyCostSecp256k1),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.auth.v1beta1.Params;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.maxMemoCharacters=e.uint64();break;case 2:r.txSigLimit=e.uint64();break;case 3:r.txSizeCostPerByte=e.uint64();break;case 4:r.sigVerifyCostEd25519=e.uint64();break;case 5:r.sigVerifyCostSecp256k1=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.auth.v1beta1.Params)return e;var t=new s.cosmos.auth.v1beta1.Params;return null!=e.maxMemoCharacters&&(a.Long?(t.maxMemoCharacters=a.Long.fromValue(e.maxMemoCharacters)).unsigned=!0:"string"==typeof e.maxMemoCharacters?t.maxMemoCharacters=parseInt(e.maxMemoCharacters,10):"number"==typeof e.maxMemoCharacters?t.maxMemoCharacters=e.maxMemoCharacters:"object"==typeof e.maxMemoCharacters&&(t.maxMemoCharacters=new a.LongBits(e.maxMemoCharacters.low>>>0,e.maxMemoCharacters.high>>>0).toNumber(!0))),null!=e.txSigLimit&&(a.Long?(t.txSigLimit=a.Long.fromValue(e.txSigLimit)).unsigned=!0:"string"==typeof e.txSigLimit?t.txSigLimit=parseInt(e.txSigLimit,10):"number"==typeof e.txSigLimit?t.txSigLimit=e.txSigLimit:"object"==typeof e.txSigLimit&&(t.txSigLimit=new a.LongBits(e.txSigLimit.low>>>0,e.txSigLimit.high>>>0).toNumber(!0))),null!=e.txSizeCostPerByte&&(a.Long?(t.txSizeCostPerByte=a.Long.fromValue(e.txSizeCostPerByte)).unsigned=!0:"string"==typeof e.txSizeCostPerByte?t.txSizeCostPerByte=parseInt(e.txSizeCostPerByte,10):"number"==typeof e.txSizeCostPerByte?t.txSizeCostPerByte=e.txSizeCostPerByte:"object"==typeof e.txSizeCostPerByte&&(t.txSizeCostPerByte=new a.LongBits(e.txSizeCostPerByte.low>>>0,e.txSizeCostPerByte.high>>>0).toNumber(!0))),null!=e.sigVerifyCostEd25519&&(a.Long?(t.sigVerifyCostEd25519=a.Long.fromValue(e.sigVerifyCostEd25519)).unsigned=!0:"string"==typeof e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=parseInt(e.sigVerifyCostEd25519,10):"number"==typeof e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=e.sigVerifyCostEd25519:"object"==typeof e.sigVerifyCostEd25519&&(t.sigVerifyCostEd25519=new a.LongBits(e.sigVerifyCostEd25519.low>>>0,e.sigVerifyCostEd25519.high>>>0).toNumber(!0))),null!=e.sigVerifyCostSecp256k1&&(a.Long?(t.sigVerifyCostSecp256k1=a.Long.fromValue(e.sigVerifyCostSecp256k1)).unsigned=!0:"string"==typeof e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=parseInt(e.sigVerifyCostSecp256k1,10):"number"==typeof e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=e.sigVerifyCostSecp256k1:"object"==typeof e.sigVerifyCostSecp256k1&&(t.sigVerifyCostSecp256k1=new a.LongBits(e.sigVerifyCostSecp256k1.low>>>0,e.sigVerifyCostSecp256k1.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!0);n.maxMemoCharacters=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.maxMemoCharacters=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!0);n.txSigLimit=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.txSigLimit=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!0);n.txSizeCostPerByte=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.txSizeCostPerByte=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!0);n.sigVerifyCostEd25519=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.sigVerifyCostEd25519=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!0);n.sigVerifyCostSecp256k1=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.sigVerifyCostSecp256k1=t.longs===String?"0":0}return null!=e.maxMemoCharacters&&e.hasOwnProperty("maxMemoCharacters")&&("number"==typeof e.maxMemoCharacters?n.maxMemoCharacters=t.longs===String?String(e.maxMemoCharacters):e.maxMemoCharacters:n.maxMemoCharacters=t.longs===String?a.Long.prototype.toString.call(e.maxMemoCharacters):t.longs===Number?new a.LongBits(e.maxMemoCharacters.low>>>0,e.maxMemoCharacters.high>>>0).toNumber(!0):e.maxMemoCharacters),null!=e.txSigLimit&&e.hasOwnProperty("txSigLimit")&&("number"==typeof e.txSigLimit?n.txSigLimit=t.longs===String?String(e.txSigLimit):e.txSigLimit:n.txSigLimit=t.longs===String?a.Long.prototype.toString.call(e.txSigLimit):t.longs===Number?new a.LongBits(e.txSigLimit.low>>>0,e.txSigLimit.high>>>0).toNumber(!0):e.txSigLimit),null!=e.txSizeCostPerByte&&e.hasOwnProperty("txSizeCostPerByte")&&("number"==typeof e.txSizeCostPerByte?n.txSizeCostPerByte=t.longs===String?String(e.txSizeCostPerByte):e.txSizeCostPerByte:n.txSizeCostPerByte=t.longs===String?a.Long.prototype.toString.call(e.txSizeCostPerByte):t.longs===Number?new a.LongBits(e.txSizeCostPerByte.low>>>0,e.txSizeCostPerByte.high>>>0).toNumber(!0):e.txSizeCostPerByte),null!=e.sigVerifyCostEd25519&&e.hasOwnProperty("sigVerifyCostEd25519")&&("number"==typeof e.sigVerifyCostEd25519?n.sigVerifyCostEd25519=t.longs===String?String(e.sigVerifyCostEd25519):e.sigVerifyCostEd25519:n.sigVerifyCostEd25519=t.longs===String?a.Long.prototype.toString.call(e.sigVerifyCostEd25519):t.longs===Number?new a.LongBits(e.sigVerifyCostEd25519.low>>>0,e.sigVerifyCostEd25519.high>>>0).toNumber(!0):e.sigVerifyCostEd25519),null!=e.sigVerifyCostSecp256k1&&e.hasOwnProperty("sigVerifyCostSecp256k1")&&("number"==typeof e.sigVerifyCostSecp256k1?n.sigVerifyCostSecp256k1=t.longs===String?String(e.sigVerifyCostSecp256k1):e.sigVerifyCostSecp256k1:n.sigVerifyCostSecp256k1=t.longs===String?a.Long.prototype.toString.call(e.sigVerifyCostSecp256k1):t.longs===Number?new a.LongBits(e.sigVerifyCostSecp256k1.low>>>0,e.sigVerifyCostSecp256k1.high>>>0).toNumber(!0):e.sigVerifyCostSecp256k1),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Query=function(){function e(e,t,n){r.rpc.Service.call(this,e,t,n)}return(e.prototype=Object.create(r.rpc.Service.prototype)).constructor=e,e.create=function(e,t,n){return new this(e,t,n)},Object.defineProperty(e.prototype.account=function e(t,n){return this.rpcCall(e,s.cosmos.auth.v1beta1.QueryAccountRequest,s.cosmos.auth.v1beta1.QueryAccountResponse,t,n)},"name",{value:"Account"}),Object.defineProperty(e.prototype.params=function e(t,n){return this.rpcCall(e,s.cosmos.auth.v1beta1.QueryParamsRequest,s.cosmos.auth.v1beta1.QueryParamsResponse,t,n)},"name",{value:"Params"}),e}(),e.QueryAccountRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.address="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.auth.v1beta1.QueryAccountRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.address=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.auth.v1beta1.QueryAccountRequest)return e;var t=new s.cosmos.auth.v1beta1.QueryAccountRequest;return null!=e.address&&(t.address=String(e.address)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.address=""),null!=e.address&&e.hasOwnProperty("address")&&(n.address=e.address),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryAccountResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.account=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.account&&Object.hasOwnProperty.call(e,"account")&&s.google.protobuf.Any.encode(e.account,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.auth.v1beta1.QueryAccountResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.account=s.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.auth.v1beta1.QueryAccountResponse)return e;var t=new s.cosmos.auth.v1beta1.QueryAccountResponse;if(null!=e.account){if("object"!=typeof e.account)throw TypeError(".cosmos.auth.v1beta1.QueryAccountResponse.account: object expected");t.account=s.google.protobuf.Any.fromObject(e.account)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.account=null),null!=e.account&&e.hasOwnProperty("account")&&(n.account=s.google.protobuf.Any.toObject(e.account,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryParamsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.auth.v1beta1.QueryParamsRequest;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.cosmos.auth.v1beta1.QueryParamsRequest?e:new s.cosmos.auth.v1beta1.QueryParamsRequest},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryParamsResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.params=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.params&&Object.hasOwnProperty.call(e,"params")&&s.cosmos.auth.v1beta1.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.auth.v1beta1.QueryParamsResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.params=s.cosmos.auth.v1beta1.Params.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.auth.v1beta1.QueryParamsResponse)return e;var t=new s.cosmos.auth.v1beta1.QueryParamsResponse;if(null!=e.params){if("object"!=typeof e.params)throw TypeError(".cosmos.auth.v1beta1.QueryParamsResponse.params: object expected");t.params=s.cosmos.auth.v1beta1.Params.fromObject(e.params)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.params=null),null!=e.params&&e.hasOwnProperty("params")&&(n.params=s.cosmos.auth.v1beta1.Params.toObject(e.params,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e.bank=function(){const e={};return e.v1beta1=function(){const e={};return e.Params=function(){function e(e){if(this.sendEnabled=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.sendEnabled=a.emptyArray,e.prototype.defaultSendEnabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.sendEnabled&&e.sendEnabled.length)for(var n=0;n<e.sendEnabled.length;++n)s.cosmos.bank.v1beta1.SendEnabled.encode(e.sendEnabled[n],t.uint32(10).fork()).ldelim();return null!=e.defaultSendEnabled&&Object.hasOwnProperty.call(e,"defaultSendEnabled")&&t.uint32(16).bool(e.defaultSendEnabled),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.Params;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.sendEnabled&&r.sendEnabled.length||(r.sendEnabled=[]),r.sendEnabled.push(s.cosmos.bank.v1beta1.SendEnabled.decode(e,e.uint32()));break;case 2:r.defaultSendEnabled=e.bool();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.Params)return e;var t=new s.cosmos.bank.v1beta1.Params;if(e.sendEnabled){if(!Array.isArray(e.sendEnabled))throw TypeError(".cosmos.bank.v1beta1.Params.sendEnabled: array expected");t.sendEnabled=[];for(var n=0;n<e.sendEnabled.length;++n){if("object"!=typeof e.sendEnabled[n])throw TypeError(".cosmos.bank.v1beta1.Params.sendEnabled: object expected");t.sendEnabled[n]=s.cosmos.bank.v1beta1.SendEnabled.fromObject(e.sendEnabled[n])}}return null!=e.defaultSendEnabled&&(t.defaultSendEnabled=Boolean(e.defaultSendEnabled)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.sendEnabled=[]),t.defaults&&(n.defaultSendEnabled=!1),e.sendEnabled&&e.sendEnabled.length){n.sendEnabled=[];for(var r=0;r<e.sendEnabled.length;++r)n.sendEnabled[r]=s.cosmos.bank.v1beta1.SendEnabled.toObject(e.sendEnabled[r],t)}return null!=e.defaultSendEnabled&&e.hasOwnProperty("defaultSendEnabled")&&(n.defaultSendEnabled=e.defaultSendEnabled),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.SendEnabled=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.denom="",e.prototype.enabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(10).string(e.denom),null!=e.enabled&&Object.hasOwnProperty.call(e,"enabled")&&t.uint32(16).bool(e.enabled),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.SendEnabled;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.denom=e.string();break;case 2:r.enabled=e.bool();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.SendEnabled)return e;var t=new s.cosmos.bank.v1beta1.SendEnabled;return null!=e.denom&&(t.denom=String(e.denom)),null!=e.enabled&&(t.enabled=Boolean(e.enabled)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.denom="",n.enabled=!1),null!=e.denom&&e.hasOwnProperty("denom")&&(n.denom=e.denom),null!=e.enabled&&e.hasOwnProperty("enabled")&&(n.enabled=e.enabled),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Input=function(){function e(e){if(this.coins=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.address="",e.prototype.coins=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),null!=e.coins&&e.coins.length)for(var n=0;n<e.coins.length;++n)s.cosmos.base.v1beta1.Coin.encode(e.coins[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.Input;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.address=e.string();break;case 2:r.coins&&r.coins.length||(r.coins=[]),r.coins.push(s.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.Input)return e;var t=new s.cosmos.bank.v1beta1.Input;if(null!=e.address&&(t.address=String(e.address)),e.coins){if(!Array.isArray(e.coins))throw TypeError(".cosmos.bank.v1beta1.Input.coins: array expected");t.coins=[];for(var n=0;n<e.coins.length;++n){if("object"!=typeof e.coins[n])throw TypeError(".cosmos.bank.v1beta1.Input.coins: object expected");t.coins[n]=s.cosmos.base.v1beta1.Coin.fromObject(e.coins[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.coins=[]),t.defaults&&(n.address=""),null!=e.address&&e.hasOwnProperty("address")&&(n.address=e.address),e.coins&&e.coins.length){n.coins=[];for(var r=0;r<e.coins.length;++r)n.coins[r]=s.cosmos.base.v1beta1.Coin.toObject(e.coins[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Output=function(){function e(e){if(this.coins=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.address="",e.prototype.coins=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),null!=e.coins&&e.coins.length)for(var n=0;n<e.coins.length;++n)s.cosmos.base.v1beta1.Coin.encode(e.coins[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.Output;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.address=e.string();break;case 2:r.coins&&r.coins.length||(r.coins=[]),r.coins.push(s.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.Output)return e;var t=new s.cosmos.bank.v1beta1.Output;if(null!=e.address&&(t.address=String(e.address)),e.coins){if(!Array.isArray(e.coins))throw TypeError(".cosmos.bank.v1beta1.Output.coins: array expected");t.coins=[];for(var n=0;n<e.coins.length;++n){if("object"!=typeof e.coins[n])throw TypeError(".cosmos.bank.v1beta1.Output.coins: object expected");t.coins[n]=s.cosmos.base.v1beta1.Coin.fromObject(e.coins[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.coins=[]),t.defaults&&(n.address=""),null!=e.address&&e.hasOwnProperty("address")&&(n.address=e.address),e.coins&&e.coins.length){n.coins=[];for(var r=0;r<e.coins.length;++r)n.coins[r]=s.cosmos.base.v1beta1.Coin.toObject(e.coins[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Supply=function(){function e(e){if(this.total=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.total=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.total&&e.total.length)for(var n=0;n<e.total.length;++n)s.cosmos.base.v1beta1.Coin.encode(e.total[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.Supply;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.total&&r.total.length||(r.total=[]),r.total.push(s.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.Supply)return e;var t=new s.cosmos.bank.v1beta1.Supply;if(e.total){if(!Array.isArray(e.total))throw TypeError(".cosmos.bank.v1beta1.Supply.total: array expected");t.total=[];for(var n=0;n<e.total.length;++n){if("object"!=typeof e.total[n])throw TypeError(".cosmos.bank.v1beta1.Supply.total: object expected");t.total[n]=s.cosmos.base.v1beta1.Coin.fromObject(e.total[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.total=[]),e.total&&e.total.length){n.total=[];for(var r=0;r<e.total.length;++r)n.total[r]=s.cosmos.base.v1beta1.Coin.toObject(e.total[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.DenomUnit=function(){function e(e){if(this.aliases=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.denom="",e.prototype.exponent=0,e.prototype.aliases=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(10).string(e.denom),null!=e.exponent&&Object.hasOwnProperty.call(e,"exponent")&&t.uint32(16).uint32(e.exponent),null!=e.aliases&&e.aliases.length)for(var n=0;n<e.aliases.length;++n)t.uint32(26).string(e.aliases[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.DenomUnit;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.denom=e.string();break;case 2:r.exponent=e.uint32();break;case 3:r.aliases&&r.aliases.length||(r.aliases=[]),r.aliases.push(e.string());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.DenomUnit)return e;var t=new s.cosmos.bank.v1beta1.DenomUnit;if(null!=e.denom&&(t.denom=String(e.denom)),null!=e.exponent&&(t.exponent=e.exponent>>>0),e.aliases){if(!Array.isArray(e.aliases))throw TypeError(".cosmos.bank.v1beta1.DenomUnit.aliases: array expected");t.aliases=[];for(var n=0;n<e.aliases.length;++n)t.aliases[n]=String(e.aliases[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.aliases=[]),t.defaults&&(n.denom="",n.exponent=0),null!=e.denom&&e.hasOwnProperty("denom")&&(n.denom=e.denom),null!=e.exponent&&e.hasOwnProperty("exponent")&&(n.exponent=e.exponent),e.aliases&&e.aliases.length){n.aliases=[];for(var r=0;r<e.aliases.length;++r)n.aliases[r]=e.aliases[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Metadata=function(){function e(e){if(this.denomUnits=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.description="",e.prototype.denomUnits=a.emptyArray,e.prototype.base="",e.prototype.display="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(10).string(e.description),null!=e.denomUnits&&e.denomUnits.length)for(var n=0;n<e.denomUnits.length;++n)s.cosmos.bank.v1beta1.DenomUnit.encode(e.denomUnits[n],t.uint32(18).fork()).ldelim();return null!=e.base&&Object.hasOwnProperty.call(e,"base")&&t.uint32(26).string(e.base),null!=e.display&&Object.hasOwnProperty.call(e,"display")&&t.uint32(34).string(e.display),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.Metadata;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.description=e.string();break;case 2:r.denomUnits&&r.denomUnits.length||(r.denomUnits=[]),r.denomUnits.push(s.cosmos.bank.v1beta1.DenomUnit.decode(e,e.uint32()));break;case 3:r.base=e.string();break;case 4:r.display=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.Metadata)return e;var t=new s.cosmos.bank.v1beta1.Metadata;if(null!=e.description&&(t.description=String(e.description)),e.denomUnits){if(!Array.isArray(e.denomUnits))throw TypeError(".cosmos.bank.v1beta1.Metadata.denomUnits: array expected");t.denomUnits=[];for(var n=0;n<e.denomUnits.length;++n){if("object"!=typeof e.denomUnits[n])throw TypeError(".cosmos.bank.v1beta1.Metadata.denomUnits: object expected");t.denomUnits[n]=s.cosmos.bank.v1beta1.DenomUnit.fromObject(e.denomUnits[n])}}return null!=e.base&&(t.base=String(e.base)),null!=e.display&&(t.display=String(e.display)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.denomUnits=[]),t.defaults&&(n.description="",n.base="",n.display=""),null!=e.description&&e.hasOwnProperty("description")&&(n.description=e.description),e.denomUnits&&e.denomUnits.length){n.denomUnits=[];for(var r=0;r<e.denomUnits.length;++r)n.denomUnits[r]=s.cosmos.bank.v1beta1.DenomUnit.toObject(e.denomUnits[r],t)}return null!=e.base&&e.hasOwnProperty("base")&&(n.base=e.base),null!=e.display&&e.hasOwnProperty("display")&&(n.display=e.display),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Query=function(){function e(e,t,n){r.rpc.Service.call(this,e,t,n)}return(e.prototype=Object.create(r.rpc.Service.prototype)).constructor=e,e.create=function(e,t,n){return new this(e,t,n)},Object.defineProperty(e.prototype.balance=function e(t,n){return this.rpcCall(e,s.cosmos.bank.v1beta1.QueryBalanceRequest,s.cosmos.bank.v1beta1.QueryBalanceResponse,t,n)},"name",{value:"Balance"}),Object.defineProperty(e.prototype.allBalances=function e(t,n){return this.rpcCall(e,s.cosmos.bank.v1beta1.QueryAllBalancesRequest,s.cosmos.bank.v1beta1.QueryAllBalancesResponse,t,n)},"name",{value:"AllBalances"}),Object.defineProperty(e.prototype.totalSupply=function e(t,n){return this.rpcCall(e,s.cosmos.bank.v1beta1.QueryTotalSupplyRequest,s.cosmos.bank.v1beta1.QueryTotalSupplyResponse,t,n)},"name",{value:"TotalSupply"}),Object.defineProperty(e.prototype.supplyOf=function e(t,n){return this.rpcCall(e,s.cosmos.bank.v1beta1.QuerySupplyOfRequest,s.cosmos.bank.v1beta1.QuerySupplyOfResponse,t,n)},"name",{value:"SupplyOf"}),Object.defineProperty(e.prototype.params=function e(t,n){return this.rpcCall(e,s.cosmos.bank.v1beta1.QueryParamsRequest,s.cosmos.bank.v1beta1.QueryParamsResponse,t,n)},"name",{value:"Params"}),e}(),e.QueryBalanceRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.address="",e.prototype.denom="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(18).string(e.denom),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.QueryBalanceRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.address=e.string();break;case 2:r.denom=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.QueryBalanceRequest)return e;var t=new s.cosmos.bank.v1beta1.QueryBalanceRequest;return null!=e.address&&(t.address=String(e.address)),null!=e.denom&&(t.denom=String(e.denom)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.address="",n.denom=""),null!=e.address&&e.hasOwnProperty("address")&&(n.address=e.address),null!=e.denom&&e.hasOwnProperty("denom")&&(n.denom=e.denom),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryBalanceResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.balance=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&s.cosmos.base.v1beta1.Coin.encode(e.balance,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.QueryBalanceResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.balance=s.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.QueryBalanceResponse)return e;var t=new s.cosmos.bank.v1beta1.QueryBalanceResponse;if(null!=e.balance){if("object"!=typeof e.balance)throw TypeError(".cosmos.bank.v1beta1.QueryBalanceResponse.balance: object expected");t.balance=s.cosmos.base.v1beta1.Coin.fromObject(e.balance)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.balance=null),null!=e.balance&&e.hasOwnProperty("balance")&&(n.balance=s.cosmos.base.v1beta1.Coin.toObject(e.balance,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryAllBalancesRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.address="",e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).string(e.address),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.QueryAllBalancesRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.address=e.string();break;case 2:r.pagination=s.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.QueryAllBalancesRequest)return e;var t=new s.cosmos.bank.v1beta1.QueryAllBalancesRequest;if(null!=e.address&&(t.address=String(e.address)),null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".cosmos.bank.v1beta1.QueryAllBalancesRequest.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.address="",n.pagination=null),null!=e.address&&e.hasOwnProperty("address")&&(n.address=e.address),null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryAllBalancesResponse=function(){function e(e){if(this.balances=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.balances=a.emptyArray,e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.balances&&e.balances.length)for(var n=0;n<e.balances.length;++n)s.cosmos.base.v1beta1.Coin.encode(e.balances[n],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.QueryAllBalancesResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.balances&&r.balances.length||(r.balances=[]),r.balances.push(s.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;case 2:r.pagination=s.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.QueryAllBalancesResponse)return e;var t=new s.cosmos.bank.v1beta1.QueryAllBalancesResponse;if(e.balances){if(!Array.isArray(e.balances))throw TypeError(".cosmos.bank.v1beta1.QueryAllBalancesResponse.balances: array expected");t.balances=[];for(var n=0;n<e.balances.length;++n){if("object"!=typeof e.balances[n])throw TypeError(".cosmos.bank.v1beta1.QueryAllBalancesResponse.balances: object expected");t.balances[n]=s.cosmos.base.v1beta1.Coin.fromObject(e.balances[n])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".cosmos.bank.v1beta1.QueryAllBalancesResponse.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.balances=[]),t.defaults&&(n.pagination=null),e.balances&&e.balances.length){n.balances=[];for(var r=0;r<e.balances.length;++r)n.balances[r]=s.cosmos.base.v1beta1.Coin.toObject(e.balances[r],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryTotalSupplyRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.QueryTotalSupplyRequest;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.cosmos.bank.v1beta1.QueryTotalSupplyRequest?e:new s.cosmos.bank.v1beta1.QueryTotalSupplyRequest},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryTotalSupplyResponse=function(){function e(e){if(this.supply=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.supply=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.supply&&e.supply.length)for(var n=0;n<e.supply.length;++n)s.cosmos.base.v1beta1.Coin.encode(e.supply[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.QueryTotalSupplyResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.supply&&r.supply.length||(r.supply=[]),r.supply.push(s.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.QueryTotalSupplyResponse)return e;var t=new s.cosmos.bank.v1beta1.QueryTotalSupplyResponse;if(e.supply){if(!Array.isArray(e.supply))throw TypeError(".cosmos.bank.v1beta1.QueryTotalSupplyResponse.supply: array expected");t.supply=[];for(var n=0;n<e.supply.length;++n){if("object"!=typeof e.supply[n])throw TypeError(".cosmos.bank.v1beta1.QueryTotalSupplyResponse.supply: object expected");t.supply[n]=s.cosmos.base.v1beta1.Coin.fromObject(e.supply[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.supply=[]),e.supply&&e.supply.length){n.supply=[];for(var r=0;r<e.supply.length;++r)n.supply[r]=s.cosmos.base.v1beta1.Coin.toObject(e.supply[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QuerySupplyOfRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.denom="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(10).string(e.denom),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.QuerySupplyOfRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.denom=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.QuerySupplyOfRequest)return e;var t=new s.cosmos.bank.v1beta1.QuerySupplyOfRequest;return null!=e.denom&&(t.denom=String(e.denom)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.denom=""),null!=e.denom&&e.hasOwnProperty("denom")&&(n.denom=e.denom),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QuerySupplyOfResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.amount=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&s.cosmos.base.v1beta1.Coin.encode(e.amount,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.QuerySupplyOfResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.amount=s.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.QuerySupplyOfResponse)return e;var t=new s.cosmos.bank.v1beta1.QuerySupplyOfResponse;if(null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".cosmos.bank.v1beta1.QuerySupplyOfResponse.amount: object expected");t.amount=s.cosmos.base.v1beta1.Coin.fromObject(e.amount)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.amount=null),null!=e.amount&&e.hasOwnProperty("amount")&&(n.amount=s.cosmos.base.v1beta1.Coin.toObject(e.amount,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryParamsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.QueryParamsRequest;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.cosmos.bank.v1beta1.QueryParamsRequest?e:new s.cosmos.bank.v1beta1.QueryParamsRequest},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryParamsResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.params=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.params&&Object.hasOwnProperty.call(e,"params")&&s.cosmos.bank.v1beta1.Params.encode(e.params,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.QueryParamsResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.params=s.cosmos.bank.v1beta1.Params.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.QueryParamsResponse)return e;var t=new s.cosmos.bank.v1beta1.QueryParamsResponse;if(null!=e.params){if("object"!=typeof e.params)throw TypeError(".cosmos.bank.v1beta1.QueryParamsResponse.params: object expected");t.params=s.cosmos.bank.v1beta1.Params.fromObject(e.params)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.params=null),null!=e.params&&e.hasOwnProperty("params")&&(n.params=s.cosmos.bank.v1beta1.Params.toObject(e.params,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Msg=function(){function e(e,t,n){r.rpc.Service.call(this,e,t,n)}return(e.prototype=Object.create(r.rpc.Service.prototype)).constructor=e,e.create=function(e,t,n){return new this(e,t,n)},Object.defineProperty(e.prototype.send=function e(t,n){return this.rpcCall(e,s.cosmos.bank.v1beta1.MsgSend,s.cosmos.bank.v1beta1.MsgSendResponse,t,n)},"name",{value:"Send"}),Object.defineProperty(e.prototype.multiSend=function e(t,n){return this.rpcCall(e,s.cosmos.bank.v1beta1.MsgMultiSend,s.cosmos.bank.v1beta1.MsgMultiSendResponse,t,n)},"name",{value:"MultiSend"}),e}(),e.MsgSend=function(){function e(e){if(this.amount=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.fromAddress="",e.prototype.toAddress="",e.prototype.amount=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.fromAddress&&Object.hasOwnProperty.call(e,"fromAddress")&&t.uint32(10).string(e.fromAddress),null!=e.toAddress&&Object.hasOwnProperty.call(e,"toAddress")&&t.uint32(18).string(e.toAddress),null!=e.amount&&e.amount.length)for(var n=0;n<e.amount.length;++n)s.cosmos.base.v1beta1.Coin.encode(e.amount[n],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.MsgSend;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.fromAddress=e.string();break;case 2:r.toAddress=e.string();break;case 3:r.amount&&r.amount.length||(r.amount=[]),r.amount.push(s.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.MsgSend)return e;var t=new s.cosmos.bank.v1beta1.MsgSend;if(null!=e.fromAddress&&(t.fromAddress=String(e.fromAddress)),null!=e.toAddress&&(t.toAddress=String(e.toAddress)),e.amount){if(!Array.isArray(e.amount))throw TypeError(".cosmos.bank.v1beta1.MsgSend.amount: array expected");t.amount=[];for(var n=0;n<e.amount.length;++n){if("object"!=typeof e.amount[n])throw TypeError(".cosmos.bank.v1beta1.MsgSend.amount: object expected");t.amount[n]=s.cosmos.base.v1beta1.Coin.fromObject(e.amount[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.amount=[]),t.defaults&&(n.fromAddress="",n.toAddress=""),null!=e.fromAddress&&e.hasOwnProperty("fromAddress")&&(n.fromAddress=e.fromAddress),null!=e.toAddress&&e.hasOwnProperty("toAddress")&&(n.toAddress=e.toAddress),e.amount&&e.amount.length){n.amount=[];for(var r=0;r<e.amount.length;++r)n.amount[r]=s.cosmos.base.v1beta1.Coin.toObject(e.amount[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgSendResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.MsgSendResponse;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.cosmos.bank.v1beta1.MsgSendResponse?e:new s.cosmos.bank.v1beta1.MsgSendResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgMultiSend=function(){function e(e){if(this.inputs=[],this.outputs=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.inputs=a.emptyArray,e.prototype.outputs=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.inputs&&e.inputs.length)for(var n=0;n<e.inputs.length;++n)s.cosmos.bank.v1beta1.Input.encode(e.inputs[n],t.uint32(10).fork()).ldelim();if(null!=e.outputs&&e.outputs.length)for(n=0;n<e.outputs.length;++n)s.cosmos.bank.v1beta1.Output.encode(e.outputs[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.MsgMultiSend;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.inputs&&r.inputs.length||(r.inputs=[]),r.inputs.push(s.cosmos.bank.v1beta1.Input.decode(e,e.uint32()));break;case 2:r.outputs&&r.outputs.length||(r.outputs=[]),r.outputs.push(s.cosmos.bank.v1beta1.Output.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.bank.v1beta1.MsgMultiSend)return e;var t=new s.cosmos.bank.v1beta1.MsgMultiSend;if(e.inputs){if(!Array.isArray(e.inputs))throw TypeError(".cosmos.bank.v1beta1.MsgMultiSend.inputs: array expected");t.inputs=[];for(var n=0;n<e.inputs.length;++n){if("object"!=typeof e.inputs[n])throw TypeError(".cosmos.bank.v1beta1.MsgMultiSend.inputs: object expected");t.inputs[n]=s.cosmos.bank.v1beta1.Input.fromObject(e.inputs[n])}}if(e.outputs){if(!Array.isArray(e.outputs))throw TypeError(".cosmos.bank.v1beta1.MsgMultiSend.outputs: array expected");t.outputs=[];for(n=0;n<e.outputs.length;++n){if("object"!=typeof e.outputs[n])throw TypeError(".cosmos.bank.v1beta1.MsgMultiSend.outputs: object expected");t.outputs[n]=s.cosmos.bank.v1beta1.Output.fromObject(e.outputs[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.inputs=[],n.outputs=[]),e.inputs&&e.inputs.length){n.inputs=[];for(var r=0;r<e.inputs.length;++r)n.inputs[r]=s.cosmos.bank.v1beta1.Input.toObject(e.inputs[r],t)}if(e.outputs&&e.outputs.length){n.outputs=[];for(r=0;r<e.outputs.length;++r)n.outputs[r]=s.cosmos.bank.v1beta1.Output.toObject(e.outputs[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgMultiSendResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.bank.v1beta1.MsgMultiSendResponse;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.cosmos.bank.v1beta1.MsgMultiSendResponse?e:new s.cosmos.bank.v1beta1.MsgMultiSendResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e.base=function(){const e={};return e.query=function(){const e={};return e.v1beta1=function(){const e={};return e.PageRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.key=a.newBuffer([]),e.prototype.offset=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.limit=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.countTotal=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).bytes(e.key),null!=e.offset&&Object.hasOwnProperty.call(e,"offset")&&t.uint32(16).uint64(e.offset),null!=e.limit&&Object.hasOwnProperty.call(e,"limit")&&t.uint32(24).uint64(e.limit),null!=e.countTotal&&Object.hasOwnProperty.call(e,"countTotal")&&t.uint32(32).bool(e.countTotal),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.base.query.v1beta1.PageRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.key=e.bytes();break;case 2:r.offset=e.uint64();break;case 3:r.limit=e.uint64();break;case 4:r.countTotal=e.bool();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.base.query.v1beta1.PageRequest)return e;var t=new s.cosmos.base.query.v1beta1.PageRequest;return null!=e.key&&("string"==typeof e.key?a.base64.decode(e.key,t.key=a.newBuffer(a.base64.length(e.key)),0):e.key.length&&(t.key=e.key)),null!=e.offset&&(a.Long?(t.offset=a.Long.fromValue(e.offset)).unsigned=!0:"string"==typeof e.offset?t.offset=parseInt(e.offset,10):"number"==typeof e.offset?t.offset=e.offset:"object"==typeof e.offset&&(t.offset=new a.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber(!0))),null!=e.limit&&(a.Long?(t.limit=a.Long.fromValue(e.limit)).unsigned=!0:"string"==typeof e.limit?t.limit=parseInt(e.limit,10):"number"==typeof e.limit?t.limit=e.limit:"object"==typeof e.limit&&(t.limit=new a.LongBits(e.limit.low>>>0,e.limit.high>>>0).toNumber(!0))),null!=e.countTotal&&(t.countTotal=Boolean(e.countTotal)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(t.bytes===String?n.key="":(n.key=[],t.bytes!==Array&&(n.key=a.newBuffer(n.key))),a.Long){var r=new a.Long(0,0,!0);n.offset=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.offset=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!0);n.limit=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.limit=t.longs===String?"0":0;n.countTotal=!1}return null!=e.key&&e.hasOwnProperty("key")&&(n.key=t.bytes===String?a.base64.encode(e.key,0,e.key.length):t.bytes===Array?Array.prototype.slice.call(e.key):e.key),null!=e.offset&&e.hasOwnProperty("offset")&&("number"==typeof e.offset?n.offset=t.longs===String?String(e.offset):e.offset:n.offset=t.longs===String?a.Long.prototype.toString.call(e.offset):t.longs===Number?new a.LongBits(e.offset.low>>>0,e.offset.high>>>0).toNumber(!0):e.offset),null!=e.limit&&e.hasOwnProperty("limit")&&("number"==typeof e.limit?n.limit=t.longs===String?String(e.limit):e.limit:n.limit=t.longs===String?a.Long.prototype.toString.call(e.limit):t.longs===Number?new a.LongBits(e.limit.low>>>0,e.limit.high>>>0).toNumber(!0):e.limit),null!=e.countTotal&&e.hasOwnProperty("countTotal")&&(n.countTotal=e.countTotal),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.PageResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.nextKey=a.newBuffer([]),e.prototype.total=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.nextKey&&Object.hasOwnProperty.call(e,"nextKey")&&t.uint32(10).bytes(e.nextKey),null!=e.total&&Object.hasOwnProperty.call(e,"total")&&t.uint32(16).uint64(e.total),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.base.query.v1beta1.PageResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.nextKey=e.bytes();break;case 2:r.total=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.base.query.v1beta1.PageResponse)return e;var t=new s.cosmos.base.query.v1beta1.PageResponse;return null!=e.nextKey&&("string"==typeof e.nextKey?a.base64.decode(e.nextKey,t.nextKey=a.newBuffer(a.base64.length(e.nextKey)),0):e.nextKey.length&&(t.nextKey=e.nextKey)),null!=e.total&&(a.Long?(t.total=a.Long.fromValue(e.total)).unsigned=!0:"string"==typeof e.total?t.total=parseInt(e.total,10):"number"==typeof e.total?t.total=e.total:"object"==typeof e.total&&(t.total=new a.LongBits(e.total.low>>>0,e.total.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(t.bytes===String?n.nextKey="":(n.nextKey=[],t.bytes!==Array&&(n.nextKey=a.newBuffer(n.nextKey))),a.Long){var r=new a.Long(0,0,!0);n.total=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.total=t.longs===String?"0":0;return null!=e.nextKey&&e.hasOwnProperty("nextKey")&&(n.nextKey=t.bytes===String?a.base64.encode(e.nextKey,0,e.nextKey.length):t.bytes===Array?Array.prototype.slice.call(e.nextKey):e.nextKey),null!=e.total&&e.hasOwnProperty("total")&&("number"==typeof e.total?n.total=t.longs===String?String(e.total):e.total:n.total=t.longs===String?a.Long.prototype.toString.call(e.total):t.longs===Number?new a.LongBits(e.total.low>>>0,e.total.high>>>0).toNumber(!0):e.total),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e.v1beta1=function(){const e={};return e.Coin=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.denom="",e.prototype.amount="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(10).string(e.denom),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(18).string(e.amount),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.base.v1beta1.Coin;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.denom=e.string();break;case 2:r.amount=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.base.v1beta1.Coin)return e;var t=new s.cosmos.base.v1beta1.Coin;return null!=e.denom&&(t.denom=String(e.denom)),null!=e.amount&&(t.amount=String(e.amount)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.denom="",n.amount=""),null!=e.denom&&e.hasOwnProperty("denom")&&(n.denom=e.denom),null!=e.amount&&e.hasOwnProperty("amount")&&(n.amount=e.amount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.DecCoin=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.denom="",e.prototype.amount="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.denom&&Object.hasOwnProperty.call(e,"denom")&&t.uint32(10).string(e.denom),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(18).string(e.amount),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.base.v1beta1.DecCoin;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.denom=e.string();break;case 2:r.amount=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.base.v1beta1.DecCoin)return e;var t=new s.cosmos.base.v1beta1.DecCoin;return null!=e.denom&&(t.denom=String(e.denom)),null!=e.amount&&(t.amount=String(e.amount)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.denom="",n.amount=""),null!=e.denom&&e.hasOwnProperty("denom")&&(n.denom=e.denom),null!=e.amount&&e.hasOwnProperty("amount")&&(n.amount=e.amount),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.IntProto=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.int="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.int&&Object.hasOwnProperty.call(e,"int")&&t.uint32(10).string(e.int),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.base.v1beta1.IntProto;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.int=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.base.v1beta1.IntProto)return e;var t=new s.cosmos.base.v1beta1.IntProto;return null!=e.int&&(t.int=String(e.int)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.int=""),null!=e.int&&e.hasOwnProperty("int")&&(n.int=e.int),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.DecProto=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.dec="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.dec&&Object.hasOwnProperty.call(e,"dec")&&t.uint32(10).string(e.dec),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.base.v1beta1.DecProto;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.dec=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.base.v1beta1.DecProto)return e;var t=new s.cosmos.base.v1beta1.DecProto;return null!=e.dec&&(t.dec=String(e.dec)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.dec=""),null!=e.dec&&e.hasOwnProperty("dec")&&(n.dec=e.dec),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e.crypto=function(){const e={};return e.multisig=function(){const e={};return e.v1beta1=function(){const e={};return e.MultiSignature=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.signatures=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.signatures&&e.signatures.length)for(var n=0;n<e.signatures.length;++n)t.uint32(10).bytes(e.signatures[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.crypto.multisig.v1beta1.MultiSignature;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.signatures&&r.signatures.length||(r.signatures=[]),r.signatures.push(e.bytes());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.crypto.multisig.v1beta1.MultiSignature)return e;var t=new s.cosmos.crypto.multisig.v1beta1.MultiSignature;if(e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".cosmos.crypto.multisig.v1beta1.MultiSignature.signatures: array expected");t.signatures=[];for(var n=0;n<e.signatures.length;++n)"string"==typeof e.signatures[n]?a.base64.decode(e.signatures[n],t.signatures[n]=a.newBuffer(a.base64.length(e.signatures[n])),0):e.signatures[n].length&&(t.signatures[n]=e.signatures[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.signatures=[]),e.signatures&&e.signatures.length){n.signatures=[];for(var r=0;r<e.signatures.length;++r)n.signatures[r]=t.bytes===String?a.base64.encode(e.signatures[r],0,e.signatures[r].length):t.bytes===Array?Array.prototype.slice.call(e.signatures[r]):e.signatures[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.CompactBitArray=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.extraBitsStored=0,e.prototype.elems=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.extraBitsStored&&Object.hasOwnProperty.call(e,"extraBitsStored")&&t.uint32(8).uint32(e.extraBitsStored),null!=e.elems&&Object.hasOwnProperty.call(e,"elems")&&t.uint32(18).bytes(e.elems),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.crypto.multisig.v1beta1.CompactBitArray;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.extraBitsStored=e.uint32();break;case 2:r.elems=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.crypto.multisig.v1beta1.CompactBitArray)return e;var t=new s.cosmos.crypto.multisig.v1beta1.CompactBitArray;return null!=e.extraBitsStored&&(t.extraBitsStored=e.extraBitsStored>>>0),null!=e.elems&&("string"==typeof e.elems?a.base64.decode(e.elems,t.elems=a.newBuffer(a.base64.length(e.elems)),0):e.elems.length&&(t.elems=e.elems)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.extraBitsStored=0,t.bytes===String?n.elems="":(n.elems=[],t.bytes!==Array&&(n.elems=a.newBuffer(n.elems)))),null!=e.extraBitsStored&&e.hasOwnProperty("extraBitsStored")&&(n.extraBitsStored=e.extraBitsStored),null!=e.elems&&e.hasOwnProperty("elems")&&(n.elems=t.bytes===String?a.base64.encode(e.elems,0,e.elems.length):t.bytes===Array?Array.prototype.slice.call(e.elems):e.elems),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e.secp256k1=function(){const e={};return e.PubKey=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.key=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).bytes(e.key),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.crypto.secp256k1.PubKey;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.key=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.crypto.secp256k1.PubKey)return e;var t=new s.cosmos.crypto.secp256k1.PubKey;return null!=e.key&&("string"==typeof e.key?a.base64.decode(e.key,t.key=a.newBuffer(a.base64.length(e.key)),0):e.key.length&&(t.key=e.key)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.key="":(n.key=[],t.bytes!==Array&&(n.key=a.newBuffer(n.key)))),null!=e.key&&e.hasOwnProperty("key")&&(n.key=t.bytes===String?a.base64.encode(e.key,0,e.key.length):t.bytes===Array?Array.prototype.slice.call(e.key):e.key),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.PrivKey=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.key=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).bytes(e.key),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.crypto.secp256k1.PrivKey;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.key=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.crypto.secp256k1.PrivKey)return e;var t=new s.cosmos.crypto.secp256k1.PrivKey;return null!=e.key&&("string"==typeof e.key?a.base64.decode(e.key,t.key=a.newBuffer(a.base64.length(e.key)),0):e.key.length&&(t.key=e.key)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.key="":(n.key=[],t.bytes!==Array&&(n.key=a.newBuffer(n.key)))),null!=e.key&&e.hasOwnProperty("key")&&(n.key=t.bytes===String?a.base64.encode(e.key,0,e.key.length):t.bytes===Array?Array.prototype.slice.call(e.key):e.key),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e.staking=function(){const e={};return e.v1beta1=function(){const e={};return e.HistoricalInfo=function(){function e(e){if(this.valset=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.header=null,e.prototype.valset=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&s.tendermint.types.Header.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.valset&&e.valset.length)for(var n=0;n<e.valset.length;++n)s.cosmos.staking.v1beta1.Validator.encode(e.valset[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.HistoricalInfo;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.header=s.tendermint.types.Header.decode(e,e.uint32());break;case 2:r.valset&&r.valset.length||(r.valset=[]),r.valset.push(s.cosmos.staking.v1beta1.Validator.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.HistoricalInfo)return e;var t=new s.cosmos.staking.v1beta1.HistoricalInfo;if(null!=e.header){if("object"!=typeof e.header)throw TypeError(".cosmos.staking.v1beta1.HistoricalInfo.header: object expected");t.header=s.tendermint.types.Header.fromObject(e.header)}if(e.valset){if(!Array.isArray(e.valset))throw TypeError(".cosmos.staking.v1beta1.HistoricalInfo.valset: array expected");t.valset=[];for(var n=0;n<e.valset.length;++n){if("object"!=typeof e.valset[n])throw TypeError(".cosmos.staking.v1beta1.HistoricalInfo.valset: object expected");t.valset[n]=s.cosmos.staking.v1beta1.Validator.fromObject(e.valset[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.valset=[]),t.defaults&&(n.header=null),null!=e.header&&e.hasOwnProperty("header")&&(n.header=s.tendermint.types.Header.toObject(e.header,t)),e.valset&&e.valset.length){n.valset=[];for(var r=0;r<e.valset.length;++r)n.valset[r]=s.cosmos.staking.v1beta1.Validator.toObject(e.valset[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.CommissionRates=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.rate="",e.prototype.maxRate="",e.prototype.maxChangeRate="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.rate&&Object.hasOwnProperty.call(e,"rate")&&t.uint32(10).string(e.rate),null!=e.maxRate&&Object.hasOwnProperty.call(e,"maxRate")&&t.uint32(18).string(e.maxRate),null!=e.maxChangeRate&&Object.hasOwnProperty.call(e,"maxChangeRate")&&t.uint32(26).string(e.maxChangeRate),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.CommissionRates;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.rate=e.string();break;case 2:r.maxRate=e.string();break;case 3:r.maxChangeRate=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.CommissionRates)return e;var t=new s.cosmos.staking.v1beta1.CommissionRates;return null!=e.rate&&(t.rate=String(e.rate)),null!=e.maxRate&&(t.maxRate=String(e.maxRate)),null!=e.maxChangeRate&&(t.maxChangeRate=String(e.maxChangeRate)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.rate="",n.maxRate="",n.maxChangeRate=""),null!=e.rate&&e.hasOwnProperty("rate")&&(n.rate=e.rate),null!=e.maxRate&&e.hasOwnProperty("maxRate")&&(n.maxRate=e.maxRate),null!=e.maxChangeRate&&e.hasOwnProperty("maxChangeRate")&&(n.maxChangeRate=e.maxChangeRate),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Commission=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.commissionRates=null,e.prototype.updateTime=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.commissionRates&&Object.hasOwnProperty.call(e,"commissionRates")&&s.cosmos.staking.v1beta1.CommissionRates.encode(e.commissionRates,t.uint32(10).fork()).ldelim(),null!=e.updateTime&&Object.hasOwnProperty.call(e,"updateTime")&&s.google.protobuf.Timestamp.encode(e.updateTime,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.Commission;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.commissionRates=s.cosmos.staking.v1beta1.CommissionRates.decode(e,e.uint32());break;case 2:r.updateTime=s.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.Commission)return e;var t=new s.cosmos.staking.v1beta1.Commission;if(null!=e.commissionRates){if("object"!=typeof e.commissionRates)throw TypeError(".cosmos.staking.v1beta1.Commission.commissionRates: object expected");t.commissionRates=s.cosmos.staking.v1beta1.CommissionRates.fromObject(e.commissionRates)}if(null!=e.updateTime){if("object"!=typeof e.updateTime)throw TypeError(".cosmos.staking.v1beta1.Commission.updateTime: object expected");t.updateTime=s.google.protobuf.Timestamp.fromObject(e.updateTime)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.commissionRates=null,n.updateTime=null),null!=e.commissionRates&&e.hasOwnProperty("commissionRates")&&(n.commissionRates=s.cosmos.staking.v1beta1.CommissionRates.toObject(e.commissionRates,t)),null!=e.updateTime&&e.hasOwnProperty("updateTime")&&(n.updateTime=s.google.protobuf.Timestamp.toObject(e.updateTime,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Description=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.moniker="",e.prototype.identity="",e.prototype.website="",e.prototype.securityContact="",e.prototype.details="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.moniker&&Object.hasOwnProperty.call(e,"moniker")&&t.uint32(10).string(e.moniker),null!=e.identity&&Object.hasOwnProperty.call(e,"identity")&&t.uint32(18).string(e.identity),null!=e.website&&Object.hasOwnProperty.call(e,"website")&&t.uint32(26).string(e.website),null!=e.securityContact&&Object.hasOwnProperty.call(e,"securityContact")&&t.uint32(34).string(e.securityContact),null!=e.details&&Object.hasOwnProperty.call(e,"details")&&t.uint32(42).string(e.details),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.Description;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.moniker=e.string();break;case 2:r.identity=e.string();break;case 3:r.website=e.string();break;case 4:r.securityContact=e.string();break;case 5:r.details=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.Description)return e;var t=new s.cosmos.staking.v1beta1.Description;return null!=e.moniker&&(t.moniker=String(e.moniker)),null!=e.identity&&(t.identity=String(e.identity)),null!=e.website&&(t.website=String(e.website)),null!=e.securityContact&&(t.securityContact=String(e.securityContact)),null!=e.details&&(t.details=String(e.details)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.moniker="",n.identity="",n.website="",n.securityContact="",n.details=""),null!=e.moniker&&e.hasOwnProperty("moniker")&&(n.moniker=e.moniker),null!=e.identity&&e.hasOwnProperty("identity")&&(n.identity=e.identity),null!=e.website&&e.hasOwnProperty("website")&&(n.website=e.website),null!=e.securityContact&&e.hasOwnProperty("securityContact")&&(n.securityContact=e.securityContact),null!=e.details&&e.hasOwnProperty("details")&&(n.details=e.details),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Validator=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.operatorAddress="",e.prototype.consensusPubkey=null,e.prototype.jailed=!1,e.prototype.status=0,e.prototype.tokens="",e.prototype.delegatorShares="",e.prototype.description=null,e.prototype.unbondingHeight=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.unbondingTime=null,e.prototype.commission=null,e.prototype.minSelfDelegation="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.operatorAddress&&Object.hasOwnProperty.call(e,"operatorAddress")&&t.uint32(10).string(e.operatorAddress),null!=e.consensusPubkey&&Object.hasOwnProperty.call(e,"consensusPubkey")&&s.google.protobuf.Any.encode(e.consensusPubkey,t.uint32(18).fork()).ldelim(),null!=e.jailed&&Object.hasOwnProperty.call(e,"jailed")&&t.uint32(24).bool(e.jailed),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(32).int32(e.status),null!=e.tokens&&Object.hasOwnProperty.call(e,"tokens")&&t.uint32(42).string(e.tokens),null!=e.delegatorShares&&Object.hasOwnProperty.call(e,"delegatorShares")&&t.uint32(50).string(e.delegatorShares),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&s.cosmos.staking.v1beta1.Description.encode(e.description,t.uint32(58).fork()).ldelim(),null!=e.unbondingHeight&&Object.hasOwnProperty.call(e,"unbondingHeight")&&t.uint32(64).int64(e.unbondingHeight),null!=e.unbondingTime&&Object.hasOwnProperty.call(e,"unbondingTime")&&s.google.protobuf.Timestamp.encode(e.unbondingTime,t.uint32(74).fork()).ldelim(),null!=e.commission&&Object.hasOwnProperty.call(e,"commission")&&s.cosmos.staking.v1beta1.Commission.encode(e.commission,t.uint32(82).fork()).ldelim(),null!=e.minSelfDelegation&&Object.hasOwnProperty.call(e,"minSelfDelegation")&&t.uint32(90).string(e.minSelfDelegation),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.Validator;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.operatorAddress=e.string();break;case 2:r.consensusPubkey=s.google.protobuf.Any.decode(e,e.uint32());break;case 3:r.jailed=e.bool();break;case 4:r.status=e.int32();break;case 5:r.tokens=e.string();break;case 6:r.delegatorShares=e.string();break;case 7:r.description=s.cosmos.staking.v1beta1.Description.decode(e,e.uint32());break;case 8:r.unbondingHeight=e.int64();break;case 9:r.unbondingTime=s.google.protobuf.Timestamp.decode(e,e.uint32());break;case 10:r.commission=s.cosmos.staking.v1beta1.Commission.decode(e,e.uint32());break;case 11:r.minSelfDelegation=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.Validator)return e;var t=new s.cosmos.staking.v1beta1.Validator;if(null!=e.operatorAddress&&(t.operatorAddress=String(e.operatorAddress)),null!=e.consensusPubkey){if("object"!=typeof e.consensusPubkey)throw TypeError(".cosmos.staking.v1beta1.Validator.consensusPubkey: object expected");t.consensusPubkey=s.google.protobuf.Any.fromObject(e.consensusPubkey)}switch(null!=e.jailed&&(t.jailed=Boolean(e.jailed)),e.status){case"BOND_STATUS_UNSPECIFIED":case 0:t.status=0;break;case"BOND_STATUS_UNBONDED":case 1:t.status=1;break;case"BOND_STATUS_UNBONDING":case 2:t.status=2;break;case"BOND_STATUS_BONDED":case 3:t.status=3}if(null!=e.tokens&&(t.tokens=String(e.tokens)),null!=e.delegatorShares&&(t.delegatorShares=String(e.delegatorShares)),null!=e.description){if("object"!=typeof e.description)throw TypeError(".cosmos.staking.v1beta1.Validator.description: object expected");t.description=s.cosmos.staking.v1beta1.Description.fromObject(e.description)}if(null!=e.unbondingHeight&&(a.Long?(t.unbondingHeight=a.Long.fromValue(e.unbondingHeight)).unsigned=!1:"string"==typeof e.unbondingHeight?t.unbondingHeight=parseInt(e.unbondingHeight,10):"number"==typeof e.unbondingHeight?t.unbondingHeight=e.unbondingHeight:"object"==typeof e.unbondingHeight&&(t.unbondingHeight=new a.LongBits(e.unbondingHeight.low>>>0,e.unbondingHeight.high>>>0).toNumber())),null!=e.unbondingTime){if("object"!=typeof e.unbondingTime)throw TypeError(".cosmos.staking.v1beta1.Validator.unbondingTime: object expected");t.unbondingTime=s.google.protobuf.Timestamp.fromObject(e.unbondingTime)}if(null!=e.commission){if("object"!=typeof e.commission)throw TypeError(".cosmos.staking.v1beta1.Validator.commission: object expected");t.commission=s.cosmos.staking.v1beta1.Commission.fromObject(e.commission)}return null!=e.minSelfDelegation&&(t.minSelfDelegation=String(e.minSelfDelegation)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(n.operatorAddress="",n.consensusPubkey=null,n.jailed=!1,n.status=t.enums===String?"BOND_STATUS_UNSPECIFIED":0,n.tokens="",n.delegatorShares="",n.description=null,a.Long){var r=new a.Long(0,0,!1);n.unbondingHeight=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.unbondingHeight=t.longs===String?"0":0;n.unbondingTime=null,n.commission=null,n.minSelfDelegation=""}return null!=e.operatorAddress&&e.hasOwnProperty("operatorAddress")&&(n.operatorAddress=e.operatorAddress),null!=e.consensusPubkey&&e.hasOwnProperty("consensusPubkey")&&(n.consensusPubkey=s.google.protobuf.Any.toObject(e.consensusPubkey,t)),null!=e.jailed&&e.hasOwnProperty("jailed")&&(n.jailed=e.jailed),null!=e.status&&e.hasOwnProperty("status")&&(n.status=t.enums===String?s.cosmos.staking.v1beta1.BondStatus[e.status]:e.status),null!=e.tokens&&e.hasOwnProperty("tokens")&&(n.tokens=e.tokens),null!=e.delegatorShares&&e.hasOwnProperty("delegatorShares")&&(n.delegatorShares=e.delegatorShares),null!=e.description&&e.hasOwnProperty("description")&&(n.description=s.cosmos.staking.v1beta1.Description.toObject(e.description,t)),null!=e.unbondingHeight&&e.hasOwnProperty("unbondingHeight")&&("number"==typeof e.unbondingHeight?n.unbondingHeight=t.longs===String?String(e.unbondingHeight):e.unbondingHeight:n.unbondingHeight=t.longs===String?a.Long.prototype.toString.call(e.unbondingHeight):t.longs===Number?new a.LongBits(e.unbondingHeight.low>>>0,e.unbondingHeight.high>>>0).toNumber():e.unbondingHeight),null!=e.unbondingTime&&e.hasOwnProperty("unbondingTime")&&(n.unbondingTime=s.google.protobuf.Timestamp.toObject(e.unbondingTime,t)),null!=e.commission&&e.hasOwnProperty("commission")&&(n.commission=s.cosmos.staking.v1beta1.Commission.toObject(e.commission,t)),null!=e.minSelfDelegation&&e.hasOwnProperty("minSelfDelegation")&&(n.minSelfDelegation=e.minSelfDelegation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.BondStatus=function(){const e={},t=Object.create(e);return t[e[0]="BOND_STATUS_UNSPECIFIED"]=0,t[e[1]="BOND_STATUS_UNBONDED"]=1,t[e[2]="BOND_STATUS_UNBONDING"]=2,t[e[3]="BOND_STATUS_BONDED"]=3,t}(),e.ValAddresses=function(){function e(e){if(this.addresses=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.addresses=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.addresses&&e.addresses.length)for(var n=0;n<e.addresses.length;++n)t.uint32(10).string(e.addresses[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.ValAddresses;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.addresses&&r.addresses.length||(r.addresses=[]),r.addresses.push(e.string());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.ValAddresses)return e;var t=new s.cosmos.staking.v1beta1.ValAddresses;if(e.addresses){if(!Array.isArray(e.addresses))throw TypeError(".cosmos.staking.v1beta1.ValAddresses.addresses: array expected");t.addresses=[];for(var n=0;n<e.addresses.length;++n)t.addresses[n]=String(e.addresses[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.addresses=[]),e.addresses&&e.addresses.length){n.addresses=[];for(var r=0;r<e.addresses.length;++r)n.addresses[r]=e.addresses[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.DVPair=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.DVPair;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.delegatorAddress=e.string();break;case 2:r.validatorAddress=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.DVPair)return e;var t=new s.cosmos.staking.v1beta1.DVPair;return null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.delegatorAddress="",n.validatorAddress=""),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(n.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(n.validatorAddress=e.validatorAddress),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.DVPairs=function(){function e(e){if(this.pairs=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.pairs=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.pairs&&e.pairs.length)for(var n=0;n<e.pairs.length;++n)s.cosmos.staking.v1beta1.DVPair.encode(e.pairs[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.DVPairs;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.pairs&&r.pairs.length||(r.pairs=[]),r.pairs.push(s.cosmos.staking.v1beta1.DVPair.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.DVPairs)return e;var t=new s.cosmos.staking.v1beta1.DVPairs;if(e.pairs){if(!Array.isArray(e.pairs))throw TypeError(".cosmos.staking.v1beta1.DVPairs.pairs: array expected");t.pairs=[];for(var n=0;n<e.pairs.length;++n){if("object"!=typeof e.pairs[n])throw TypeError(".cosmos.staking.v1beta1.DVPairs.pairs: object expected");t.pairs[n]=s.cosmos.staking.v1beta1.DVPair.fromObject(e.pairs[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.pairs=[]),e.pairs&&e.pairs.length){n.pairs=[];for(var r=0;r<e.pairs.length;++r)n.pairs[r]=s.cosmos.staking.v1beta1.DVPair.toObject(e.pairs[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.DVVTriplet=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.delegatorAddress="",e.prototype.validatorSrcAddress="",e.prototype.validatorDstAddress="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorSrcAddress&&Object.hasOwnProperty.call(e,"validatorSrcAddress")&&t.uint32(18).string(e.validatorSrcAddress),null!=e.validatorDstAddress&&Object.hasOwnProperty.call(e,"validatorDstAddress")&&t.uint32(26).string(e.validatorDstAddress),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.DVVTriplet;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.delegatorAddress=e.string();break;case 2:r.validatorSrcAddress=e.string();break;case 3:r.validatorDstAddress=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.DVVTriplet)return e;var t=new s.cosmos.staking.v1beta1.DVVTriplet;return null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorSrcAddress&&(t.validatorSrcAddress=String(e.validatorSrcAddress)),null!=e.validatorDstAddress&&(t.validatorDstAddress=String(e.validatorDstAddress)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.delegatorAddress="",n.validatorSrcAddress="",n.validatorDstAddress=""),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(n.delegatorAddress=e.delegatorAddress),null!=e.validatorSrcAddress&&e.hasOwnProperty("validatorSrcAddress")&&(n.validatorSrcAddress=e.validatorSrcAddress),null!=e.validatorDstAddress&&e.hasOwnProperty("validatorDstAddress")&&(n.validatorDstAddress=e.validatorDstAddress),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.DVVTriplets=function(){function e(e){if(this.triplets=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.triplets=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.triplets&&e.triplets.length)for(var n=0;n<e.triplets.length;++n)s.cosmos.staking.v1beta1.DVVTriplet.encode(e.triplets[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.DVVTriplets;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.triplets&&r.triplets.length||(r.triplets=[]),r.triplets.push(s.cosmos.staking.v1beta1.DVVTriplet.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.DVVTriplets)return e;var t=new s.cosmos.staking.v1beta1.DVVTriplets;if(e.triplets){if(!Array.isArray(e.triplets))throw TypeError(".cosmos.staking.v1beta1.DVVTriplets.triplets: array expected");t.triplets=[];for(var n=0;n<e.triplets.length;++n){if("object"!=typeof e.triplets[n])throw TypeError(".cosmos.staking.v1beta1.DVVTriplets.triplets: object expected");t.triplets[n]=s.cosmos.staking.v1beta1.DVVTriplet.fromObject(e.triplets[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.triplets=[]),e.triplets&&e.triplets.length){n.triplets=[];for(var r=0;r<e.triplets.length;++r)n.triplets[r]=s.cosmos.staking.v1beta1.DVVTriplet.toObject(e.triplets[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Delegation=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.prototype.shares="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),null!=e.shares&&Object.hasOwnProperty.call(e,"shares")&&t.uint32(26).string(e.shares),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.Delegation;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.delegatorAddress=e.string();break;case 2:r.validatorAddress=e.string();break;case 3:r.shares=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.Delegation)return e;var t=new s.cosmos.staking.v1beta1.Delegation;return null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),null!=e.shares&&(t.shares=String(e.shares)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.delegatorAddress="",n.validatorAddress="",n.shares=""),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(n.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(n.validatorAddress=e.validatorAddress),null!=e.shares&&e.hasOwnProperty("shares")&&(n.shares=e.shares),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.UnbondingDelegation=function(){function e(e){if(this.entries=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.prototype.entries=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),null!=e.entries&&e.entries.length)for(var n=0;n<e.entries.length;++n)s.cosmos.staking.v1beta1.UnbondingDelegationEntry.encode(e.entries[n],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.UnbondingDelegation;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.delegatorAddress=e.string();break;case 2:r.validatorAddress=e.string();break;case 3:r.entries&&r.entries.length||(r.entries=[]),r.entries.push(s.cosmos.staking.v1beta1.UnbondingDelegationEntry.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.UnbondingDelegation)return e;var t=new s.cosmos.staking.v1beta1.UnbondingDelegation;if(null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),e.entries){if(!Array.isArray(e.entries))throw TypeError(".cosmos.staking.v1beta1.UnbondingDelegation.entries: array expected");t.entries=[];for(var n=0;n<e.entries.length;++n){if("object"!=typeof e.entries[n])throw TypeError(".cosmos.staking.v1beta1.UnbondingDelegation.entries: object expected");t.entries[n]=s.cosmos.staking.v1beta1.UnbondingDelegationEntry.fromObject(e.entries[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.entries=[]),t.defaults&&(n.delegatorAddress="",n.validatorAddress=""),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(n.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(n.validatorAddress=e.validatorAddress),e.entries&&e.entries.length){n.entries=[];for(var r=0;r<e.entries.length;++r)n.entries[r]=s.cosmos.staking.v1beta1.UnbondingDelegationEntry.toObject(e.entries[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.UnbondingDelegationEntry=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.creationHeight=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.completionTime=null,e.prototype.initialBalance="",e.prototype.balance="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.creationHeight&&Object.hasOwnProperty.call(e,"creationHeight")&&t.uint32(8).int64(e.creationHeight),null!=e.completionTime&&Object.hasOwnProperty.call(e,"completionTime")&&s.google.protobuf.Timestamp.encode(e.completionTime,t.uint32(18).fork()).ldelim(),null!=e.initialBalance&&Object.hasOwnProperty.call(e,"initialBalance")&&t.uint32(26).string(e.initialBalance),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(34).string(e.balance),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.UnbondingDelegationEntry;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.creationHeight=e.int64();break;case 2:r.completionTime=s.google.protobuf.Timestamp.decode(e,e.uint32());break;case 3:r.initialBalance=e.string();break;case 4:r.balance=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.UnbondingDelegationEntry)return e;var t=new s.cosmos.staking.v1beta1.UnbondingDelegationEntry;if(null!=e.creationHeight&&(a.Long?(t.creationHeight=a.Long.fromValue(e.creationHeight)).unsigned=!1:"string"==typeof e.creationHeight?t.creationHeight=parseInt(e.creationHeight,10):"number"==typeof e.creationHeight?t.creationHeight=e.creationHeight:"object"==typeof e.creationHeight&&(t.creationHeight=new a.LongBits(e.creationHeight.low>>>0,e.creationHeight.high>>>0).toNumber())),null!=e.completionTime){if("object"!=typeof e.completionTime)throw TypeError(".cosmos.staking.v1beta1.UnbondingDelegationEntry.completionTime: object expected");t.completionTime=s.google.protobuf.Timestamp.fromObject(e.completionTime)}return null!=e.initialBalance&&(t.initialBalance=String(e.initialBalance)),null!=e.balance&&(t.balance=String(e.balance)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.creationHeight=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.creationHeight=t.longs===String?"0":0;n.completionTime=null,n.initialBalance="",n.balance=""}return null!=e.creationHeight&&e.hasOwnProperty("creationHeight")&&("number"==typeof e.creationHeight?n.creationHeight=t.longs===String?String(e.creationHeight):e.creationHeight:n.creationHeight=t.longs===String?a.Long.prototype.toString.call(e.creationHeight):t.longs===Number?new a.LongBits(e.creationHeight.low>>>0,e.creationHeight.high>>>0).toNumber():e.creationHeight),null!=e.completionTime&&e.hasOwnProperty("completionTime")&&(n.completionTime=s.google.protobuf.Timestamp.toObject(e.completionTime,t)),null!=e.initialBalance&&e.hasOwnProperty("initialBalance")&&(n.initialBalance=e.initialBalance),null!=e.balance&&e.hasOwnProperty("balance")&&(n.balance=e.balance),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.RedelegationEntry=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.creationHeight=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.completionTime=null,e.prototype.initialBalance="",e.prototype.sharesDst="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.creationHeight&&Object.hasOwnProperty.call(e,"creationHeight")&&t.uint32(8).int64(e.creationHeight),null!=e.completionTime&&Object.hasOwnProperty.call(e,"completionTime")&&s.google.protobuf.Timestamp.encode(e.completionTime,t.uint32(18).fork()).ldelim(),null!=e.initialBalance&&Object.hasOwnProperty.call(e,"initialBalance")&&t.uint32(26).string(e.initialBalance),null!=e.sharesDst&&Object.hasOwnProperty.call(e,"sharesDst")&&t.uint32(34).string(e.sharesDst),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.RedelegationEntry;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.creationHeight=e.int64();break;case 2:r.completionTime=s.google.protobuf.Timestamp.decode(e,e.uint32());break;case 3:r.initialBalance=e.string();break;case 4:r.sharesDst=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.RedelegationEntry)return e;var t=new s.cosmos.staking.v1beta1.RedelegationEntry;if(null!=e.creationHeight&&(a.Long?(t.creationHeight=a.Long.fromValue(e.creationHeight)).unsigned=!1:"string"==typeof e.creationHeight?t.creationHeight=parseInt(e.creationHeight,10):"number"==typeof e.creationHeight?t.creationHeight=e.creationHeight:"object"==typeof e.creationHeight&&(t.creationHeight=new a.LongBits(e.creationHeight.low>>>0,e.creationHeight.high>>>0).toNumber())),null!=e.completionTime){if("object"!=typeof e.completionTime)throw TypeError(".cosmos.staking.v1beta1.RedelegationEntry.completionTime: object expected");t.completionTime=s.google.protobuf.Timestamp.fromObject(e.completionTime)}return null!=e.initialBalance&&(t.initialBalance=String(e.initialBalance)),null!=e.sharesDst&&(t.sharesDst=String(e.sharesDst)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.creationHeight=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.creationHeight=t.longs===String?"0":0;n.completionTime=null,n.initialBalance="",n.sharesDst=""}return null!=e.creationHeight&&e.hasOwnProperty("creationHeight")&&("number"==typeof e.creationHeight?n.creationHeight=t.longs===String?String(e.creationHeight):e.creationHeight:n.creationHeight=t.longs===String?a.Long.prototype.toString.call(e.creationHeight):t.longs===Number?new a.LongBits(e.creationHeight.low>>>0,e.creationHeight.high>>>0).toNumber():e.creationHeight),null!=e.completionTime&&e.hasOwnProperty("completionTime")&&(n.completionTime=s.google.protobuf.Timestamp.toObject(e.completionTime,t)),null!=e.initialBalance&&e.hasOwnProperty("initialBalance")&&(n.initialBalance=e.initialBalance),null!=e.sharesDst&&e.hasOwnProperty("sharesDst")&&(n.sharesDst=e.sharesDst),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Redelegation=function(){function e(e){if(this.entries=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.delegatorAddress="",e.prototype.validatorSrcAddress="",e.prototype.validatorDstAddress="",e.prototype.entries=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorSrcAddress&&Object.hasOwnProperty.call(e,"validatorSrcAddress")&&t.uint32(18).string(e.validatorSrcAddress),null!=e.validatorDstAddress&&Object.hasOwnProperty.call(e,"validatorDstAddress")&&t.uint32(26).string(e.validatorDstAddress),null!=e.entries&&e.entries.length)for(var n=0;n<e.entries.length;++n)s.cosmos.staking.v1beta1.RedelegationEntry.encode(e.entries[n],t.uint32(34).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.Redelegation;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.delegatorAddress=e.string();break;case 2:r.validatorSrcAddress=e.string();break;case 3:r.validatorDstAddress=e.string();break;case 4:r.entries&&r.entries.length||(r.entries=[]),r.entries.push(s.cosmos.staking.v1beta1.RedelegationEntry.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.Redelegation)return e;var t=new s.cosmos.staking.v1beta1.Redelegation;if(null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorSrcAddress&&(t.validatorSrcAddress=String(e.validatorSrcAddress)),null!=e.validatorDstAddress&&(t.validatorDstAddress=String(e.validatorDstAddress)),e.entries){if(!Array.isArray(e.entries))throw TypeError(".cosmos.staking.v1beta1.Redelegation.entries: array expected");t.entries=[];for(var n=0;n<e.entries.length;++n){if("object"!=typeof e.entries[n])throw TypeError(".cosmos.staking.v1beta1.Redelegation.entries: object expected");t.entries[n]=s.cosmos.staking.v1beta1.RedelegationEntry.fromObject(e.entries[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.entries=[]),t.defaults&&(n.delegatorAddress="",n.validatorSrcAddress="",n.validatorDstAddress=""),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(n.delegatorAddress=e.delegatorAddress),null!=e.validatorSrcAddress&&e.hasOwnProperty("validatorSrcAddress")&&(n.validatorSrcAddress=e.validatorSrcAddress),null!=e.validatorDstAddress&&e.hasOwnProperty("validatorDstAddress")&&(n.validatorDstAddress=e.validatorDstAddress),e.entries&&e.entries.length){n.entries=[];for(var r=0;r<e.entries.length;++r)n.entries[r]=s.cosmos.staking.v1beta1.RedelegationEntry.toObject(e.entries[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Params=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.unbondingTime=null,e.prototype.maxValidators=0,e.prototype.maxEntries=0,e.prototype.historicalEntries=0,e.prototype.bondDenom="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.unbondingTime&&Object.hasOwnProperty.call(e,"unbondingTime")&&s.google.protobuf.Duration.encode(e.unbondingTime,t.uint32(10).fork()).ldelim(),null!=e.maxValidators&&Object.hasOwnProperty.call(e,"maxValidators")&&t.uint32(16).uint32(e.maxValidators),null!=e.maxEntries&&Object.hasOwnProperty.call(e,"maxEntries")&&t.uint32(24).uint32(e.maxEntries),null!=e.historicalEntries&&Object.hasOwnProperty.call(e,"historicalEntries")&&t.uint32(32).uint32(e.historicalEntries),null!=e.bondDenom&&Object.hasOwnProperty.call(e,"bondDenom")&&t.uint32(42).string(e.bondDenom),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.Params;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.unbondingTime=s.google.protobuf.Duration.decode(e,e.uint32());break;case 2:r.maxValidators=e.uint32();break;case 3:r.maxEntries=e.uint32();break;case 4:r.historicalEntries=e.uint32();break;case 5:r.bondDenom=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.Params)return e;var t=new s.cosmos.staking.v1beta1.Params;if(null!=e.unbondingTime){if("object"!=typeof e.unbondingTime)throw TypeError(".cosmos.staking.v1beta1.Params.unbondingTime: object expected");t.unbondingTime=s.google.protobuf.Duration.fromObject(e.unbondingTime)}return null!=e.maxValidators&&(t.maxValidators=e.maxValidators>>>0),null!=e.maxEntries&&(t.maxEntries=e.maxEntries>>>0),null!=e.historicalEntries&&(t.historicalEntries=e.historicalEntries>>>0),null!=e.bondDenom&&(t.bondDenom=String(e.bondDenom)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.unbondingTime=null,n.maxValidators=0,n.maxEntries=0,n.historicalEntries=0,n.bondDenom=""),null!=e.unbondingTime&&e.hasOwnProperty("unbondingTime")&&(n.unbondingTime=s.google.protobuf.Duration.toObject(e.unbondingTime,t)),null!=e.maxValidators&&e.hasOwnProperty("maxValidators")&&(n.maxValidators=e.maxValidators),null!=e.maxEntries&&e.hasOwnProperty("maxEntries")&&(n.maxEntries=e.maxEntries),null!=e.historicalEntries&&e.hasOwnProperty("historicalEntries")&&(n.historicalEntries=e.historicalEntries),null!=e.bondDenom&&e.hasOwnProperty("bondDenom")&&(n.bondDenom=e.bondDenom),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.DelegationResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.delegation=null,e.prototype.balance=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.delegation&&Object.hasOwnProperty.call(e,"delegation")&&s.cosmos.staking.v1beta1.Delegation.encode(e.delegation,t.uint32(10).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&s.cosmos.base.v1beta1.Coin.encode(e.balance,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.DelegationResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.delegation=s.cosmos.staking.v1beta1.Delegation.decode(e,e.uint32());break;case 2:r.balance=s.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.DelegationResponse)return e;var t=new s.cosmos.staking.v1beta1.DelegationResponse;if(null!=e.delegation){if("object"!=typeof e.delegation)throw TypeError(".cosmos.staking.v1beta1.DelegationResponse.delegation: object expected");t.delegation=s.cosmos.staking.v1beta1.Delegation.fromObject(e.delegation)}if(null!=e.balance){if("object"!=typeof e.balance)throw TypeError(".cosmos.staking.v1beta1.DelegationResponse.balance: object expected");t.balance=s.cosmos.base.v1beta1.Coin.fromObject(e.balance)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.delegation=null,n.balance=null),null!=e.delegation&&e.hasOwnProperty("delegation")&&(n.delegation=s.cosmos.staking.v1beta1.Delegation.toObject(e.delegation,t)),null!=e.balance&&e.hasOwnProperty("balance")&&(n.balance=s.cosmos.base.v1beta1.Coin.toObject(e.balance,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.RedelegationEntryResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.redelegationEntry=null,e.prototype.balance="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.redelegationEntry&&Object.hasOwnProperty.call(e,"redelegationEntry")&&s.cosmos.staking.v1beta1.RedelegationEntry.encode(e.redelegationEntry,t.uint32(10).fork()).ldelim(),null!=e.balance&&Object.hasOwnProperty.call(e,"balance")&&t.uint32(34).string(e.balance),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.RedelegationEntryResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.redelegationEntry=s.cosmos.staking.v1beta1.RedelegationEntry.decode(e,e.uint32());break;case 4:r.balance=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.RedelegationEntryResponse)return e;var t=new s.cosmos.staking.v1beta1.RedelegationEntryResponse;if(null!=e.redelegationEntry){if("object"!=typeof e.redelegationEntry)throw TypeError(".cosmos.staking.v1beta1.RedelegationEntryResponse.redelegationEntry: object expected");t.redelegationEntry=s.cosmos.staking.v1beta1.RedelegationEntry.fromObject(e.redelegationEntry)}return null!=e.balance&&(t.balance=String(e.balance)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.redelegationEntry=null,n.balance=""),null!=e.redelegationEntry&&e.hasOwnProperty("redelegationEntry")&&(n.redelegationEntry=s.cosmos.staking.v1beta1.RedelegationEntry.toObject(e.redelegationEntry,t)),null!=e.balance&&e.hasOwnProperty("balance")&&(n.balance=e.balance),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.RedelegationResponse=function(){function e(e){if(this.entries=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.redelegation=null,e.prototype.entries=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.redelegation&&Object.hasOwnProperty.call(e,"redelegation")&&s.cosmos.staking.v1beta1.Redelegation.encode(e.redelegation,t.uint32(10).fork()).ldelim(),null!=e.entries&&e.entries.length)for(var n=0;n<e.entries.length;++n)s.cosmos.staking.v1beta1.RedelegationEntryResponse.encode(e.entries[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.RedelegationResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.redelegation=s.cosmos.staking.v1beta1.Redelegation.decode(e,e.uint32());break;case 2:r.entries&&r.entries.length||(r.entries=[]),r.entries.push(s.cosmos.staking.v1beta1.RedelegationEntryResponse.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.RedelegationResponse)return e;var t=new s.cosmos.staking.v1beta1.RedelegationResponse;if(null!=e.redelegation){if("object"!=typeof e.redelegation)throw TypeError(".cosmos.staking.v1beta1.RedelegationResponse.redelegation: object expected");t.redelegation=s.cosmos.staking.v1beta1.Redelegation.fromObject(e.redelegation)}if(e.entries){if(!Array.isArray(e.entries))throw TypeError(".cosmos.staking.v1beta1.RedelegationResponse.entries: array expected");t.entries=[];for(var n=0;n<e.entries.length;++n){if("object"!=typeof e.entries[n])throw TypeError(".cosmos.staking.v1beta1.RedelegationResponse.entries: object expected");t.entries[n]=s.cosmos.staking.v1beta1.RedelegationEntryResponse.fromObject(e.entries[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.entries=[]),t.defaults&&(n.redelegation=null),null!=e.redelegation&&e.hasOwnProperty("redelegation")&&(n.redelegation=s.cosmos.staking.v1beta1.Redelegation.toObject(e.redelegation,t)),e.entries&&e.entries.length){n.entries=[];for(var r=0;r<e.entries.length;++r)n.entries[r]=s.cosmos.staking.v1beta1.RedelegationEntryResponse.toObject(e.entries[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Pool=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.notBondedTokens="",e.prototype.bondedTokens="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.notBondedTokens&&Object.hasOwnProperty.call(e,"notBondedTokens")&&t.uint32(10).string(e.notBondedTokens),null!=e.bondedTokens&&Object.hasOwnProperty.call(e,"bondedTokens")&&t.uint32(18).string(e.bondedTokens),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.Pool;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.notBondedTokens=e.string();break;case 2:r.bondedTokens=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.Pool)return e;var t=new s.cosmos.staking.v1beta1.Pool;return null!=e.notBondedTokens&&(t.notBondedTokens=String(e.notBondedTokens)),null!=e.bondedTokens&&(t.bondedTokens=String(e.bondedTokens)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.notBondedTokens="",n.bondedTokens=""),null!=e.notBondedTokens&&e.hasOwnProperty("notBondedTokens")&&(n.notBondedTokens=e.notBondedTokens),null!=e.bondedTokens&&e.hasOwnProperty("bondedTokens")&&(n.bondedTokens=e.bondedTokens),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Msg=function(){function e(e,t,n){r.rpc.Service.call(this,e,t,n)}return(e.prototype=Object.create(r.rpc.Service.prototype)).constructor=e,e.create=function(e,t,n){return new this(e,t,n)},Object.defineProperty(e.prototype.createValidator=function e(t,n){return this.rpcCall(e,s.cosmos.staking.v1beta1.MsgCreateValidator,s.cosmos.staking.v1beta1.MsgCreateValidatorResponse,t,n)},"name",{value:"CreateValidator"}),Object.defineProperty(e.prototype.editValidator=function e(t,n){return this.rpcCall(e,s.cosmos.staking.v1beta1.MsgEditValidator,s.cosmos.staking.v1beta1.MsgEditValidatorResponse,t,n)},"name",{value:"EditValidator"}),Object.defineProperty(e.prototype.delegate=function e(t,n){return this.rpcCall(e,s.cosmos.staking.v1beta1.MsgDelegate,s.cosmos.staking.v1beta1.MsgDelegateResponse,t,n)},"name",{value:"Delegate"}),Object.defineProperty(e.prototype.beginRedelegate=function e(t,n){return this.rpcCall(e,s.cosmos.staking.v1beta1.MsgBeginRedelegate,s.cosmos.staking.v1beta1.MsgBeginRedelegateResponse,t,n)},"name",{value:"BeginRedelegate"}),Object.defineProperty(e.prototype.undelegate=function e(t,n){return this.rpcCall(e,s.cosmos.staking.v1beta1.MsgUndelegate,s.cosmos.staking.v1beta1.MsgUndelegateResponse,t,n)},"name",{value:"Undelegate"}),e}(),e.MsgCreateValidator=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.description=null,e.prototype.commission=null,e.prototype.minSelfDelegation="",e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.prototype.pubkey=null,e.prototype.value=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&s.cosmos.staking.v1beta1.Description.encode(e.description,t.uint32(10).fork()).ldelim(),null!=e.commission&&Object.hasOwnProperty.call(e,"commission")&&s.cosmos.staking.v1beta1.CommissionRates.encode(e.commission,t.uint32(18).fork()).ldelim(),null!=e.minSelfDelegation&&Object.hasOwnProperty.call(e,"minSelfDelegation")&&t.uint32(26).string(e.minSelfDelegation),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(34).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(42).string(e.validatorAddress),null!=e.pubkey&&Object.hasOwnProperty.call(e,"pubkey")&&s.google.protobuf.Any.encode(e.pubkey,t.uint32(50).fork()).ldelim(),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&s.cosmos.base.v1beta1.Coin.encode(e.value,t.uint32(58).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.MsgCreateValidator;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.description=s.cosmos.staking.v1beta1.Description.decode(e,e.uint32());break;case 2:r.commission=s.cosmos.staking.v1beta1.CommissionRates.decode(e,e.uint32());break;case 3:r.minSelfDelegation=e.string();break;case 4:r.delegatorAddress=e.string();break;case 5:r.validatorAddress=e.string();break;case 6:r.pubkey=s.google.protobuf.Any.decode(e,e.uint32());break;case 7:r.value=s.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.MsgCreateValidator)return e;var t=new s.cosmos.staking.v1beta1.MsgCreateValidator;if(null!=e.description){if("object"!=typeof e.description)throw TypeError(".cosmos.staking.v1beta1.MsgCreateValidator.description: object expected");t.description=s.cosmos.staking.v1beta1.Description.fromObject(e.description)}if(null!=e.commission){if("object"!=typeof e.commission)throw TypeError(".cosmos.staking.v1beta1.MsgCreateValidator.commission: object expected");t.commission=s.cosmos.staking.v1beta1.CommissionRates.fromObject(e.commission)}if(null!=e.minSelfDelegation&&(t.minSelfDelegation=String(e.minSelfDelegation)),null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),null!=e.pubkey){if("object"!=typeof e.pubkey)throw TypeError(".cosmos.staking.v1beta1.MsgCreateValidator.pubkey: object expected");t.pubkey=s.google.protobuf.Any.fromObject(e.pubkey)}if(null!=e.value){if("object"!=typeof e.value)throw TypeError(".cosmos.staking.v1beta1.MsgCreateValidator.value: object expected");t.value=s.cosmos.base.v1beta1.Coin.fromObject(e.value)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.description=null,n.commission=null,n.minSelfDelegation="",n.delegatorAddress="",n.validatorAddress="",n.pubkey=null,n.value=null),null!=e.description&&e.hasOwnProperty("description")&&(n.description=s.cosmos.staking.v1beta1.Description.toObject(e.description,t)),null!=e.commission&&e.hasOwnProperty("commission")&&(n.commission=s.cosmos.staking.v1beta1.CommissionRates.toObject(e.commission,t)),null!=e.minSelfDelegation&&e.hasOwnProperty("minSelfDelegation")&&(n.minSelfDelegation=e.minSelfDelegation),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(n.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(n.validatorAddress=e.validatorAddress),null!=e.pubkey&&e.hasOwnProperty("pubkey")&&(n.pubkey=s.google.protobuf.Any.toObject(e.pubkey,t)),null!=e.value&&e.hasOwnProperty("value")&&(n.value=s.cosmos.base.v1beta1.Coin.toObject(e.value,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgCreateValidatorResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.MsgCreateValidatorResponse;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.cosmos.staking.v1beta1.MsgCreateValidatorResponse?e:new s.cosmos.staking.v1beta1.MsgCreateValidatorResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgEditValidator=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.description=null,e.prototype.validatorAddress="",e.prototype.commissionRate="",e.prototype.minSelfDelegation="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&s.cosmos.staking.v1beta1.Description.encode(e.description,t.uint32(10).fork()).ldelim(),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),null!=e.commissionRate&&Object.hasOwnProperty.call(e,"commissionRate")&&t.uint32(26).string(e.commissionRate),null!=e.minSelfDelegation&&Object.hasOwnProperty.call(e,"minSelfDelegation")&&t.uint32(34).string(e.minSelfDelegation),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.MsgEditValidator;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.description=s.cosmos.staking.v1beta1.Description.decode(e,e.uint32());break;case 2:r.validatorAddress=e.string();break;case 3:r.commissionRate=e.string();break;case 4:r.minSelfDelegation=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.MsgEditValidator)return e;var t=new s.cosmos.staking.v1beta1.MsgEditValidator;if(null!=e.description){if("object"!=typeof e.description)throw TypeError(".cosmos.staking.v1beta1.MsgEditValidator.description: object expected");t.description=s.cosmos.staking.v1beta1.Description.fromObject(e.description)}return null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),null!=e.commissionRate&&(t.commissionRate=String(e.commissionRate)),null!=e.minSelfDelegation&&(t.minSelfDelegation=String(e.minSelfDelegation)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.description=null,n.validatorAddress="",n.commissionRate="",n.minSelfDelegation=""),null!=e.description&&e.hasOwnProperty("description")&&(n.description=s.cosmos.staking.v1beta1.Description.toObject(e.description,t)),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(n.validatorAddress=e.validatorAddress),null!=e.commissionRate&&e.hasOwnProperty("commissionRate")&&(n.commissionRate=e.commissionRate),null!=e.minSelfDelegation&&e.hasOwnProperty("minSelfDelegation")&&(n.minSelfDelegation=e.minSelfDelegation),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgEditValidatorResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.MsgEditValidatorResponse;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.cosmos.staking.v1beta1.MsgEditValidatorResponse?e:new s.cosmos.staking.v1beta1.MsgEditValidatorResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgDelegate=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.prototype.amount=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&s.cosmos.base.v1beta1.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.MsgDelegate;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.delegatorAddress=e.string();break;case 2:r.validatorAddress=e.string();break;case 3:r.amount=s.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.MsgDelegate)return e;var t=new s.cosmos.staking.v1beta1.MsgDelegate;if(null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".cosmos.staking.v1beta1.MsgDelegate.amount: object expected");t.amount=s.cosmos.base.v1beta1.Coin.fromObject(e.amount)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.delegatorAddress="",n.validatorAddress="",n.amount=null),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(n.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(n.validatorAddress=e.validatorAddress),null!=e.amount&&e.hasOwnProperty("amount")&&(n.amount=s.cosmos.base.v1beta1.Coin.toObject(e.amount,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgDelegateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.MsgDelegateResponse;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.cosmos.staking.v1beta1.MsgDelegateResponse?e:new s.cosmos.staking.v1beta1.MsgDelegateResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgBeginRedelegate=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.delegatorAddress="",e.prototype.validatorSrcAddress="",e.prototype.validatorDstAddress="",e.prototype.amount=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorSrcAddress&&Object.hasOwnProperty.call(e,"validatorSrcAddress")&&t.uint32(18).string(e.validatorSrcAddress),null!=e.validatorDstAddress&&Object.hasOwnProperty.call(e,"validatorDstAddress")&&t.uint32(26).string(e.validatorDstAddress),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&s.cosmos.base.v1beta1.Coin.encode(e.amount,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.MsgBeginRedelegate;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.delegatorAddress=e.string();break;case 2:r.validatorSrcAddress=e.string();break;case 3:r.validatorDstAddress=e.string();break;case 4:r.amount=s.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.MsgBeginRedelegate)return e;var t=new s.cosmos.staking.v1beta1.MsgBeginRedelegate;if(null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorSrcAddress&&(t.validatorSrcAddress=String(e.validatorSrcAddress)),null!=e.validatorDstAddress&&(t.validatorDstAddress=String(e.validatorDstAddress)),null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".cosmos.staking.v1beta1.MsgBeginRedelegate.amount: object expected");t.amount=s.cosmos.base.v1beta1.Coin.fromObject(e.amount)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.delegatorAddress="",n.validatorSrcAddress="",n.validatorDstAddress="",n.amount=null),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(n.delegatorAddress=e.delegatorAddress),null!=e.validatorSrcAddress&&e.hasOwnProperty("validatorSrcAddress")&&(n.validatorSrcAddress=e.validatorSrcAddress),null!=e.validatorDstAddress&&e.hasOwnProperty("validatorDstAddress")&&(n.validatorDstAddress=e.validatorDstAddress),null!=e.amount&&e.hasOwnProperty("amount")&&(n.amount=s.cosmos.base.v1beta1.Coin.toObject(e.amount,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgBeginRedelegateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.completionTime=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.completionTime&&Object.hasOwnProperty.call(e,"completionTime")&&s.google.protobuf.Timestamp.encode(e.completionTime,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.MsgBeginRedelegateResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.completionTime=s.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.MsgBeginRedelegateResponse)return e;var t=new s.cosmos.staking.v1beta1.MsgBeginRedelegateResponse;if(null!=e.completionTime){if("object"!=typeof e.completionTime)throw TypeError(".cosmos.staking.v1beta1.MsgBeginRedelegateResponse.completionTime: object expected");t.completionTime=s.google.protobuf.Timestamp.fromObject(e.completionTime)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.completionTime=null),null!=e.completionTime&&e.hasOwnProperty("completionTime")&&(n.completionTime=s.google.protobuf.Timestamp.toObject(e.completionTime,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgUndelegate=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.delegatorAddress="",e.prototype.validatorAddress="",e.prototype.amount=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.delegatorAddress&&Object.hasOwnProperty.call(e,"delegatorAddress")&&t.uint32(10).string(e.delegatorAddress),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).string(e.validatorAddress),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&s.cosmos.base.v1beta1.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.MsgUndelegate;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.delegatorAddress=e.string();break;case 2:r.validatorAddress=e.string();break;case 3:r.amount=s.cosmos.base.v1beta1.Coin.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.MsgUndelegate)return e;var t=new s.cosmos.staking.v1beta1.MsgUndelegate;if(null!=e.delegatorAddress&&(t.delegatorAddress=String(e.delegatorAddress)),null!=e.validatorAddress&&(t.validatorAddress=String(e.validatorAddress)),null!=e.amount){if("object"!=typeof e.amount)throw TypeError(".cosmos.staking.v1beta1.MsgUndelegate.amount: object expected");t.amount=s.cosmos.base.v1beta1.Coin.fromObject(e.amount)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.delegatorAddress="",n.validatorAddress="",n.amount=null),null!=e.delegatorAddress&&e.hasOwnProperty("delegatorAddress")&&(n.delegatorAddress=e.delegatorAddress),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(n.validatorAddress=e.validatorAddress),null!=e.amount&&e.hasOwnProperty("amount")&&(n.amount=s.cosmos.base.v1beta1.Coin.toObject(e.amount,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgUndelegateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.completionTime=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.completionTime&&Object.hasOwnProperty.call(e,"completionTime")&&s.google.protobuf.Timestamp.encode(e.completionTime,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.staking.v1beta1.MsgUndelegateResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.completionTime=s.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.staking.v1beta1.MsgUndelegateResponse)return e;var t=new s.cosmos.staking.v1beta1.MsgUndelegateResponse;if(null!=e.completionTime){if("object"!=typeof e.completionTime)throw TypeError(".cosmos.staking.v1beta1.MsgUndelegateResponse.completionTime: object expected");t.completionTime=s.google.protobuf.Timestamp.fromObject(e.completionTime)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.completionTime=null),null!=e.completionTime&&e.hasOwnProperty("completionTime")&&(n.completionTime=s.google.protobuf.Timestamp.toObject(e.completionTime,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e.tx=function(){const e={};return e.signing=function(){const e={};return e.v1beta1=function(){const e={};return e.SignMode=function(){const e={},t=Object.create(e);return t[e[0]="SIGN_MODE_UNSPECIFIED"]=0,t[e[1]="SIGN_MODE_DIRECT"]=1,t[e[2]="SIGN_MODE_TEXTUAL"]=2,t[e[127]="SIGN_MODE_LEGACY_AMINO_JSON"]=127,t}(),e.SignatureDescriptors=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.signatures=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.signatures&&e.signatures.length)for(var n=0;n<e.signatures.length;++n)s.cosmos.tx.signing.v1beta1.SignatureDescriptor.encode(e.signatures[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.signing.v1beta1.SignatureDescriptors;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.signatures&&r.signatures.length||(r.signatures=[]),r.signatures.push(s.cosmos.tx.signing.v1beta1.SignatureDescriptor.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.signing.v1beta1.SignatureDescriptors)return e;var t=new s.cosmos.tx.signing.v1beta1.SignatureDescriptors;if(e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptors.signatures: array expected");t.signatures=[];for(var n=0;n<e.signatures.length;++n){if("object"!=typeof e.signatures[n])throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptors.signatures: object expected");t.signatures[n]=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.fromObject(e.signatures[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.signatures=[]),e.signatures&&e.signatures.length){n.signatures=[];for(var r=0;r<e.signatures.length;++r)n.signatures[r]=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.toObject(e.signatures[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.SignatureDescriptor=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.publicKey=null,e.prototype.data=null,e.prototype.sequence=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.publicKey&&Object.hasOwnProperty.call(e,"publicKey")&&s.google.protobuf.Any.encode(e.publicKey,t.uint32(10).fork()).ldelim(),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.signing.v1beta1.SignatureDescriptor;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.publicKey=s.google.protobuf.Any.decode(e,e.uint32());break;case 2:r.data=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.decode(e,e.uint32());break;case 3:r.sequence=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.signing.v1beta1.SignatureDescriptor)return e;var t=new s.cosmos.tx.signing.v1beta1.SignatureDescriptor;if(null!=e.publicKey){if("object"!=typeof e.publicKey)throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.publicKey: object expected");t.publicKey=s.google.protobuf.Any.fromObject(e.publicKey)}if(null!=e.data){if("object"!=typeof e.data)throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.data: object expected");t.data=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.fromObject(e.data)}return null!=e.sequence&&(a.Long?(t.sequence=a.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(n.publicKey=null,n.data=null,a.Long){var r=new a.Long(0,0,!0);n.sequence=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.sequence=t.longs===String?"0":0;return null!=e.publicKey&&e.hasOwnProperty("publicKey")&&(n.publicKey=s.google.protobuf.Any.toObject(e.publicKey,t)),null!=e.data&&e.hasOwnProperty("data")&&(n.data=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.toObject(e.data,t)),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?n.sequence=t.longs===String?String(e.sequence):e.sequence:n.sequence=t.longs===String?a.Long.prototype.toString.call(e.sequence):t.longs===Number?new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Data=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.single=null,e.prototype.multi=null,Object.defineProperty(e.prototype,"sum",{get:a.oneOfGetter(t=["single","multi"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.single&&Object.hasOwnProperty.call(e,"single")&&s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.encode(e.single,t.uint32(10).fork()).ldelim(),null!=e.multi&&Object.hasOwnProperty.call(e,"multi")&&s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.encode(e.multi,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.single=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.decode(e,e.uint32());break;case 2:r.multi=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data)return e;var t=new s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data;if(null!=e.single){if("object"!=typeof e.single)throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.single: object expected");t.single=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.fromObject(e.single)}if(null!=e.multi){if("object"!=typeof e.multi)throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.multi: object expected");t.multi=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.fromObject(e.multi)}return t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.single&&e.hasOwnProperty("single")&&(n.single=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single.toObject(e.single,t),t.oneofs&&(n.sum="single")),null!=e.multi&&e.hasOwnProperty("multi")&&(n.multi=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.toObject(e.multi,t),t.oneofs&&(n.sum="multi")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Single=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.mode=0,e.prototype.signature=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.mode&&Object.hasOwnProperty.call(e,"mode")&&t.uint32(8).int32(e.mode),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(18).bytes(e.signature),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.mode=e.int32();break;case 2:r.signature=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single)return e;var t=new s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Single;switch(e.mode){case"SIGN_MODE_UNSPECIFIED":case 0:t.mode=0;break;case"SIGN_MODE_DIRECT":case 1:t.mode=1;break;case"SIGN_MODE_TEXTUAL":case 2:t.mode=2;break;case"SIGN_MODE_LEGACY_AMINO_JSON":case 127:t.mode=127}return null!=e.signature&&("string"==typeof e.signature?a.base64.decode(e.signature,t.signature=a.newBuffer(a.base64.length(e.signature)),0):e.signature.length&&(t.signature=e.signature)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.mode=t.enums===String?"SIGN_MODE_UNSPECIFIED":0,t.bytes===String?n.signature="":(n.signature=[],t.bytes!==Array&&(n.signature=a.newBuffer(n.signature)))),null!=e.mode&&e.hasOwnProperty("mode")&&(n.mode=t.enums===String?s.cosmos.tx.signing.v1beta1.SignMode[e.mode]:e.mode),null!=e.signature&&e.hasOwnProperty("signature")&&(n.signature=t.bytes===String?a.base64.encode(e.signature,0,e.signature.length):t.bytes===Array?Array.prototype.slice.call(e.signature):e.signature),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Multi=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.bitarray=null,e.prototype.signatures=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.bitarray&&Object.hasOwnProperty.call(e,"bitarray")&&s.cosmos.crypto.multisig.v1beta1.CompactBitArray.encode(e.bitarray,t.uint32(10).fork()).ldelim(),null!=e.signatures&&e.signatures.length)for(var n=0;n<e.signatures.length;++n)s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.encode(e.signatures[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.bitarray=s.cosmos.crypto.multisig.v1beta1.CompactBitArray.decode(e,e.uint32());break;case 2:r.signatures&&r.signatures.length||(r.signatures=[]),r.signatures.push(s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi)return e;var t=new s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi;if(null!=e.bitarray){if("object"!=typeof e.bitarray)throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.bitarray: object expected");t.bitarray=s.cosmos.crypto.multisig.v1beta1.CompactBitArray.fromObject(e.bitarray)}if(e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.signatures: array expected");t.signatures=[];for(var n=0;n<e.signatures.length;++n){if("object"!=typeof e.signatures[n])throw TypeError(".cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.Multi.signatures: object expected");t.signatures[n]=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.fromObject(e.signatures[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.signatures=[]),t.defaults&&(n.bitarray=null),null!=e.bitarray&&e.hasOwnProperty("bitarray")&&(n.bitarray=s.cosmos.crypto.multisig.v1beta1.CompactBitArray.toObject(e.bitarray,t)),e.signatures&&e.signatures.length){n.signatures=[];for(var r=0;r<e.signatures.length;++r)n.signatures[r]=s.cosmos.tx.signing.v1beta1.SignatureDescriptor.Data.toObject(e.signatures[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e}(),e}(),e.v1beta1=function(){const e={};return e.Tx=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body=null,e.prototype.authInfo=null,e.prototype.signatures=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&s.cosmos.tx.v1beta1.TxBody.encode(e.body,t.uint32(10).fork()).ldelim(),null!=e.authInfo&&Object.hasOwnProperty.call(e,"authInfo")&&s.cosmos.tx.v1beta1.AuthInfo.encode(e.authInfo,t.uint32(18).fork()).ldelim(),null!=e.signatures&&e.signatures.length)for(var n=0;n<e.signatures.length;++n)t.uint32(26).bytes(e.signatures[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.v1beta1.Tx;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.body=s.cosmos.tx.v1beta1.TxBody.decode(e,e.uint32());break;case 2:r.authInfo=s.cosmos.tx.v1beta1.AuthInfo.decode(e,e.uint32());break;case 3:r.signatures&&r.signatures.length||(r.signatures=[]),r.signatures.push(e.bytes());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.v1beta1.Tx)return e;var t=new s.cosmos.tx.v1beta1.Tx;if(null!=e.body){if("object"!=typeof e.body)throw TypeError(".cosmos.tx.v1beta1.Tx.body: object expected");t.body=s.cosmos.tx.v1beta1.TxBody.fromObject(e.body)}if(null!=e.authInfo){if("object"!=typeof e.authInfo)throw TypeError(".cosmos.tx.v1beta1.Tx.authInfo: object expected");t.authInfo=s.cosmos.tx.v1beta1.AuthInfo.fromObject(e.authInfo)}if(e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".cosmos.tx.v1beta1.Tx.signatures: array expected");t.signatures=[];for(var n=0;n<e.signatures.length;++n)"string"==typeof e.signatures[n]?a.base64.decode(e.signatures[n],t.signatures[n]=a.newBuffer(a.base64.length(e.signatures[n])),0):e.signatures[n].length&&(t.signatures[n]=e.signatures[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.signatures=[]),t.defaults&&(n.body=null,n.authInfo=null),null!=e.body&&e.hasOwnProperty("body")&&(n.body=s.cosmos.tx.v1beta1.TxBody.toObject(e.body,t)),null!=e.authInfo&&e.hasOwnProperty("authInfo")&&(n.authInfo=s.cosmos.tx.v1beta1.AuthInfo.toObject(e.authInfo,t)),e.signatures&&e.signatures.length){n.signatures=[];for(var r=0;r<e.signatures.length;++r)n.signatures[r]=t.bytes===String?a.base64.encode(e.signatures[r],0,e.signatures[r].length):t.bytes===Array?Array.prototype.slice.call(e.signatures[r]):e.signatures[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.TxRaw=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.bodyBytes=a.newBuffer([]),e.prototype.authInfoBytes=a.newBuffer([]),e.prototype.signatures=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.bodyBytes&&Object.hasOwnProperty.call(e,"bodyBytes")&&t.uint32(10).bytes(e.bodyBytes),null!=e.authInfoBytes&&Object.hasOwnProperty.call(e,"authInfoBytes")&&t.uint32(18).bytes(e.authInfoBytes),null!=e.signatures&&e.signatures.length)for(var n=0;n<e.signatures.length;++n)t.uint32(26).bytes(e.signatures[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.v1beta1.TxRaw;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.bodyBytes=e.bytes();break;case 2:r.authInfoBytes=e.bytes();break;case 3:r.signatures&&r.signatures.length||(r.signatures=[]),r.signatures.push(e.bytes());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.v1beta1.TxRaw)return e;var t=new s.cosmos.tx.v1beta1.TxRaw;if(null!=e.bodyBytes&&("string"==typeof e.bodyBytes?a.base64.decode(e.bodyBytes,t.bodyBytes=a.newBuffer(a.base64.length(e.bodyBytes)),0):e.bodyBytes.length&&(t.bodyBytes=e.bodyBytes)),null!=e.authInfoBytes&&("string"==typeof e.authInfoBytes?a.base64.decode(e.authInfoBytes,t.authInfoBytes=a.newBuffer(a.base64.length(e.authInfoBytes)),0):e.authInfoBytes.length&&(t.authInfoBytes=e.authInfoBytes)),e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".cosmos.tx.v1beta1.TxRaw.signatures: array expected");t.signatures=[];for(var n=0;n<e.signatures.length;++n)"string"==typeof e.signatures[n]?a.base64.decode(e.signatures[n],t.signatures[n]=a.newBuffer(a.base64.length(e.signatures[n])),0):e.signatures[n].length&&(t.signatures[n]=e.signatures[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.signatures=[]),t.defaults&&(t.bytes===String?n.bodyBytes="":(n.bodyBytes=[],t.bytes!==Array&&(n.bodyBytes=a.newBuffer(n.bodyBytes))),t.bytes===String?n.authInfoBytes="":(n.authInfoBytes=[],t.bytes!==Array&&(n.authInfoBytes=a.newBuffer(n.authInfoBytes)))),null!=e.bodyBytes&&e.hasOwnProperty("bodyBytes")&&(n.bodyBytes=t.bytes===String?a.base64.encode(e.bodyBytes,0,e.bodyBytes.length):t.bytes===Array?Array.prototype.slice.call(e.bodyBytes):e.bodyBytes),null!=e.authInfoBytes&&e.hasOwnProperty("authInfoBytes")&&(n.authInfoBytes=t.bytes===String?a.base64.encode(e.authInfoBytes,0,e.authInfoBytes.length):t.bytes===Array?Array.prototype.slice.call(e.authInfoBytes):e.authInfoBytes),e.signatures&&e.signatures.length){n.signatures=[];for(var r=0;r<e.signatures.length;++r)n.signatures[r]=t.bytes===String?a.base64.encode(e.signatures[r],0,e.signatures[r].length):t.bytes===Array?Array.prototype.slice.call(e.signatures[r]):e.signatures[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.SignDoc=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.bodyBytes=a.newBuffer([]),e.prototype.authInfoBytes=a.newBuffer([]),e.prototype.chainId="",e.prototype.accountNumber=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.bodyBytes&&Object.hasOwnProperty.call(e,"bodyBytes")&&t.uint32(10).bytes(e.bodyBytes),null!=e.authInfoBytes&&Object.hasOwnProperty.call(e,"authInfoBytes")&&t.uint32(18).bytes(e.authInfoBytes),null!=e.chainId&&Object.hasOwnProperty.call(e,"chainId")&&t.uint32(26).string(e.chainId),null!=e.accountNumber&&Object.hasOwnProperty.call(e,"accountNumber")&&t.uint32(32).uint64(e.accountNumber),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.v1beta1.SignDoc;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.bodyBytes=e.bytes();break;case 2:r.authInfoBytes=e.bytes();break;case 3:r.chainId=e.string();break;case 4:r.accountNumber=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.v1beta1.SignDoc)return e;var t=new s.cosmos.tx.v1beta1.SignDoc;return null!=e.bodyBytes&&("string"==typeof e.bodyBytes?a.base64.decode(e.bodyBytes,t.bodyBytes=a.newBuffer(a.base64.length(e.bodyBytes)),0):e.bodyBytes.length&&(t.bodyBytes=e.bodyBytes)),null!=e.authInfoBytes&&("string"==typeof e.authInfoBytes?a.base64.decode(e.authInfoBytes,t.authInfoBytes=a.newBuffer(a.base64.length(e.authInfoBytes)),0):e.authInfoBytes.length&&(t.authInfoBytes=e.authInfoBytes)),null!=e.chainId&&(t.chainId=String(e.chainId)),null!=e.accountNumber&&(a.Long?(t.accountNumber=a.Long.fromValue(e.accountNumber)).unsigned=!0:"string"==typeof e.accountNumber?t.accountNumber=parseInt(e.accountNumber,10):"number"==typeof e.accountNumber?t.accountNumber=e.accountNumber:"object"==typeof e.accountNumber&&(t.accountNumber=new a.LongBits(e.accountNumber.low>>>0,e.accountNumber.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(t.bytes===String?n.bodyBytes="":(n.bodyBytes=[],t.bytes!==Array&&(n.bodyBytes=a.newBuffer(n.bodyBytes))),t.bytes===String?n.authInfoBytes="":(n.authInfoBytes=[],t.bytes!==Array&&(n.authInfoBytes=a.newBuffer(n.authInfoBytes))),n.chainId="",a.Long){var r=new a.Long(0,0,!0);n.accountNumber=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.accountNumber=t.longs===String?"0":0;return null!=e.bodyBytes&&e.hasOwnProperty("bodyBytes")&&(n.bodyBytes=t.bytes===String?a.base64.encode(e.bodyBytes,0,e.bodyBytes.length):t.bytes===Array?Array.prototype.slice.call(e.bodyBytes):e.bodyBytes),null!=e.authInfoBytes&&e.hasOwnProperty("authInfoBytes")&&(n.authInfoBytes=t.bytes===String?a.base64.encode(e.authInfoBytes,0,e.authInfoBytes.length):t.bytes===Array?Array.prototype.slice.call(e.authInfoBytes):e.authInfoBytes),null!=e.chainId&&e.hasOwnProperty("chainId")&&(n.chainId=e.chainId),null!=e.accountNumber&&e.hasOwnProperty("accountNumber")&&("number"==typeof e.accountNumber?n.accountNumber=t.longs===String?String(e.accountNumber):e.accountNumber:n.accountNumber=t.longs===String?a.Long.prototype.toString.call(e.accountNumber):t.longs===Number?new a.LongBits(e.accountNumber.low>>>0,e.accountNumber.high>>>0).toNumber(!0):e.accountNumber),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.TxBody=function(){function e(e){if(this.messages=[],this.extensionOptions=[],this.nonCriticalExtensionOptions=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.messages=a.emptyArray,e.prototype.memo="",e.prototype.timeoutHeight=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.extensionOptions=a.emptyArray,e.prototype.nonCriticalExtensionOptions=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.messages&&e.messages.length)for(var n=0;n<e.messages.length;++n)s.google.protobuf.Any.encode(e.messages[n],t.uint32(10).fork()).ldelim();if(null!=e.memo&&Object.hasOwnProperty.call(e,"memo")&&t.uint32(18).string(e.memo),null!=e.timeoutHeight&&Object.hasOwnProperty.call(e,"timeoutHeight")&&t.uint32(24).uint64(e.timeoutHeight),null!=e.extensionOptions&&e.extensionOptions.length)for(n=0;n<e.extensionOptions.length;++n)s.google.protobuf.Any.encode(e.extensionOptions[n],t.uint32(8186).fork()).ldelim();if(null!=e.nonCriticalExtensionOptions&&e.nonCriticalExtensionOptions.length)for(n=0;n<e.nonCriticalExtensionOptions.length;++n)s.google.protobuf.Any.encode(e.nonCriticalExtensionOptions[n],t.uint32(16378).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.v1beta1.TxBody;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.messages&&r.messages.length||(r.messages=[]),r.messages.push(s.google.protobuf.Any.decode(e,e.uint32()));break;case 2:r.memo=e.string();break;case 3:r.timeoutHeight=e.uint64();break;case 1023:r.extensionOptions&&r.extensionOptions.length||(r.extensionOptions=[]),r.extensionOptions.push(s.google.protobuf.Any.decode(e,e.uint32()));break;case 2047:r.nonCriticalExtensionOptions&&r.nonCriticalExtensionOptions.length||(r.nonCriticalExtensionOptions=[]),r.nonCriticalExtensionOptions.push(s.google.protobuf.Any.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.v1beta1.TxBody)return e;var t=new s.cosmos.tx.v1beta1.TxBody;if(e.messages){if(!Array.isArray(e.messages))throw TypeError(".cosmos.tx.v1beta1.TxBody.messages: array expected");t.messages=[];for(var n=0;n<e.messages.length;++n){if("object"!=typeof e.messages[n])throw TypeError(".cosmos.tx.v1beta1.TxBody.messages: object expected");t.messages[n]=s.google.protobuf.Any.fromObject(e.messages[n])}}if(null!=e.memo&&(t.memo=String(e.memo)),null!=e.timeoutHeight&&(a.Long?(t.timeoutHeight=a.Long.fromValue(e.timeoutHeight)).unsigned=!0:"string"==typeof e.timeoutHeight?t.timeoutHeight=parseInt(e.timeoutHeight,10):"number"==typeof e.timeoutHeight?t.timeoutHeight=e.timeoutHeight:"object"==typeof e.timeoutHeight&&(t.timeoutHeight=new a.LongBits(e.timeoutHeight.low>>>0,e.timeoutHeight.high>>>0).toNumber(!0))),e.extensionOptions){if(!Array.isArray(e.extensionOptions))throw TypeError(".cosmos.tx.v1beta1.TxBody.extensionOptions: array expected");t.extensionOptions=[];for(n=0;n<e.extensionOptions.length;++n){if("object"!=typeof e.extensionOptions[n])throw TypeError(".cosmos.tx.v1beta1.TxBody.extensionOptions: object expected");t.extensionOptions[n]=s.google.protobuf.Any.fromObject(e.extensionOptions[n])}}if(e.nonCriticalExtensionOptions){if(!Array.isArray(e.nonCriticalExtensionOptions))throw TypeError(".cosmos.tx.v1beta1.TxBody.nonCriticalExtensionOptions: array expected");t.nonCriticalExtensionOptions=[];for(n=0;n<e.nonCriticalExtensionOptions.length;++n){if("object"!=typeof e.nonCriticalExtensionOptions[n])throw TypeError(".cosmos.tx.v1beta1.TxBody.nonCriticalExtensionOptions: object expected");t.nonCriticalExtensionOptions[n]=s.google.protobuf.Any.fromObject(e.nonCriticalExtensionOptions[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.messages=[],n.extensionOptions=[],n.nonCriticalExtensionOptions=[]),t.defaults)if(n.memo="",a.Long){var r=new a.Long(0,0,!0);n.timeoutHeight=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.timeoutHeight=t.longs===String?"0":0;if(e.messages&&e.messages.length){n.messages=[];for(var i=0;i<e.messages.length;++i)n.messages[i]=s.google.protobuf.Any.toObject(e.messages[i],t)}if(null!=e.memo&&e.hasOwnProperty("memo")&&(n.memo=e.memo),null!=e.timeoutHeight&&e.hasOwnProperty("timeoutHeight")&&("number"==typeof e.timeoutHeight?n.timeoutHeight=t.longs===String?String(e.timeoutHeight):e.timeoutHeight:n.timeoutHeight=t.longs===String?a.Long.prototype.toString.call(e.timeoutHeight):t.longs===Number?new a.LongBits(e.timeoutHeight.low>>>0,e.timeoutHeight.high>>>0).toNumber(!0):e.timeoutHeight),e.extensionOptions&&e.extensionOptions.length){n.extensionOptions=[];for(i=0;i<e.extensionOptions.length;++i)n.extensionOptions[i]=s.google.protobuf.Any.toObject(e.extensionOptions[i],t)}if(e.nonCriticalExtensionOptions&&e.nonCriticalExtensionOptions.length){n.nonCriticalExtensionOptions=[];for(i=0;i<e.nonCriticalExtensionOptions.length;++i)n.nonCriticalExtensionOptions[i]=s.google.protobuf.Any.toObject(e.nonCriticalExtensionOptions[i],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.AuthInfo=function(){function e(e){if(this.signerInfos=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.signerInfos=a.emptyArray,e.prototype.fee=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.signerInfos&&e.signerInfos.length)for(var n=0;n<e.signerInfos.length;++n)s.cosmos.tx.v1beta1.SignerInfo.encode(e.signerInfos[n],t.uint32(10).fork()).ldelim();return null!=e.fee&&Object.hasOwnProperty.call(e,"fee")&&s.cosmos.tx.v1beta1.Fee.encode(e.fee,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.v1beta1.AuthInfo;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.signerInfos&&r.signerInfos.length||(r.signerInfos=[]),r.signerInfos.push(s.cosmos.tx.v1beta1.SignerInfo.decode(e,e.uint32()));break;case 2:r.fee=s.cosmos.tx.v1beta1.Fee.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.v1beta1.AuthInfo)return e;var t=new s.cosmos.tx.v1beta1.AuthInfo;if(e.signerInfos){if(!Array.isArray(e.signerInfos))throw TypeError(".cosmos.tx.v1beta1.AuthInfo.signerInfos: array expected");t.signerInfos=[];for(var n=0;n<e.signerInfos.length;++n){if("object"!=typeof e.signerInfos[n])throw TypeError(".cosmos.tx.v1beta1.AuthInfo.signerInfos: object expected");t.signerInfos[n]=s.cosmos.tx.v1beta1.SignerInfo.fromObject(e.signerInfos[n])}}if(null!=e.fee){if("object"!=typeof e.fee)throw TypeError(".cosmos.tx.v1beta1.AuthInfo.fee: object expected");t.fee=s.cosmos.tx.v1beta1.Fee.fromObject(e.fee)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.signerInfos=[]),t.defaults&&(n.fee=null),e.signerInfos&&e.signerInfos.length){n.signerInfos=[];for(var r=0;r<e.signerInfos.length;++r)n.signerInfos[r]=s.cosmos.tx.v1beta1.SignerInfo.toObject(e.signerInfos[r],t)}return null!=e.fee&&e.hasOwnProperty("fee")&&(n.fee=s.cosmos.tx.v1beta1.Fee.toObject(e.fee,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.SignerInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.publicKey=null,e.prototype.modeInfo=null,e.prototype.sequence=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.publicKey&&Object.hasOwnProperty.call(e,"publicKey")&&s.google.protobuf.Any.encode(e.publicKey,t.uint32(10).fork()).ldelim(),null!=e.modeInfo&&Object.hasOwnProperty.call(e,"modeInfo")&&s.cosmos.tx.v1beta1.ModeInfo.encode(e.modeInfo,t.uint32(18).fork()).ldelim(),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.v1beta1.SignerInfo;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.publicKey=s.google.protobuf.Any.decode(e,e.uint32());break;case 2:r.modeInfo=s.cosmos.tx.v1beta1.ModeInfo.decode(e,e.uint32());break;case 3:r.sequence=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.v1beta1.SignerInfo)return e;var t=new s.cosmos.tx.v1beta1.SignerInfo;if(null!=e.publicKey){if("object"!=typeof e.publicKey)throw TypeError(".cosmos.tx.v1beta1.SignerInfo.publicKey: object expected");t.publicKey=s.google.protobuf.Any.fromObject(e.publicKey)}if(null!=e.modeInfo){if("object"!=typeof e.modeInfo)throw TypeError(".cosmos.tx.v1beta1.SignerInfo.modeInfo: object expected");t.modeInfo=s.cosmos.tx.v1beta1.ModeInfo.fromObject(e.modeInfo)}return null!=e.sequence&&(a.Long?(t.sequence=a.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(n.publicKey=null,n.modeInfo=null,a.Long){var r=new a.Long(0,0,!0);n.sequence=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.sequence=t.longs===String?"0":0;return null!=e.publicKey&&e.hasOwnProperty("publicKey")&&(n.publicKey=s.google.protobuf.Any.toObject(e.publicKey,t)),null!=e.modeInfo&&e.hasOwnProperty("modeInfo")&&(n.modeInfo=s.cosmos.tx.v1beta1.ModeInfo.toObject(e.modeInfo,t)),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?n.sequence=t.longs===String?String(e.sequence):e.sequence:n.sequence=t.longs===String?a.Long.prototype.toString.call(e.sequence):t.longs===Number?new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ModeInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.single=null,e.prototype.multi=null,Object.defineProperty(e.prototype,"sum",{get:a.oneOfGetter(t=["single","multi"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.single&&Object.hasOwnProperty.call(e,"single")&&s.cosmos.tx.v1beta1.ModeInfo.Single.encode(e.single,t.uint32(10).fork()).ldelim(),null!=e.multi&&Object.hasOwnProperty.call(e,"multi")&&s.cosmos.tx.v1beta1.ModeInfo.Multi.encode(e.multi,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.v1beta1.ModeInfo;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.single=s.cosmos.tx.v1beta1.ModeInfo.Single.decode(e,e.uint32());break;case 2:r.multi=s.cosmos.tx.v1beta1.ModeInfo.Multi.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.v1beta1.ModeInfo)return e;var t=new s.cosmos.tx.v1beta1.ModeInfo;if(null!=e.single){if("object"!=typeof e.single)throw TypeError(".cosmos.tx.v1beta1.ModeInfo.single: object expected");t.single=s.cosmos.tx.v1beta1.ModeInfo.Single.fromObject(e.single)}if(null!=e.multi){if("object"!=typeof e.multi)throw TypeError(".cosmos.tx.v1beta1.ModeInfo.multi: object expected");t.multi=s.cosmos.tx.v1beta1.ModeInfo.Multi.fromObject(e.multi)}return t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.single&&e.hasOwnProperty("single")&&(n.single=s.cosmos.tx.v1beta1.ModeInfo.Single.toObject(e.single,t),t.oneofs&&(n.sum="single")),null!=e.multi&&e.hasOwnProperty("multi")&&(n.multi=s.cosmos.tx.v1beta1.ModeInfo.Multi.toObject(e.multi,t),t.oneofs&&(n.sum="multi")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Single=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.mode=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.mode&&Object.hasOwnProperty.call(e,"mode")&&t.uint32(8).int32(e.mode),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.v1beta1.ModeInfo.Single;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.mode=e.int32();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.v1beta1.ModeInfo.Single)return e;var t=new s.cosmos.tx.v1beta1.ModeInfo.Single;switch(e.mode){case"SIGN_MODE_UNSPECIFIED":case 0:t.mode=0;break;case"SIGN_MODE_DIRECT":case 1:t.mode=1;break;case"SIGN_MODE_TEXTUAL":case 2:t.mode=2;break;case"SIGN_MODE_LEGACY_AMINO_JSON":case 127:t.mode=127}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.mode=t.enums===String?"SIGN_MODE_UNSPECIFIED":0),null!=e.mode&&e.hasOwnProperty("mode")&&(n.mode=t.enums===String?s.cosmos.tx.signing.v1beta1.SignMode[e.mode]:e.mode),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Multi=function(){function e(e){if(this.modeInfos=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.bitarray=null,e.prototype.modeInfos=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.bitarray&&Object.hasOwnProperty.call(e,"bitarray")&&s.cosmos.crypto.multisig.v1beta1.CompactBitArray.encode(e.bitarray,t.uint32(10).fork()).ldelim(),null!=e.modeInfos&&e.modeInfos.length)for(var n=0;n<e.modeInfos.length;++n)s.cosmos.tx.v1beta1.ModeInfo.encode(e.modeInfos[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.v1beta1.ModeInfo.Multi;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.bitarray=s.cosmos.crypto.multisig.v1beta1.CompactBitArray.decode(e,e.uint32());break;case 2:r.modeInfos&&r.modeInfos.length||(r.modeInfos=[]),r.modeInfos.push(s.cosmos.tx.v1beta1.ModeInfo.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.v1beta1.ModeInfo.Multi)return e;var t=new s.cosmos.tx.v1beta1.ModeInfo.Multi;if(null!=e.bitarray){if("object"!=typeof e.bitarray)throw TypeError(".cosmos.tx.v1beta1.ModeInfo.Multi.bitarray: object expected");t.bitarray=s.cosmos.crypto.multisig.v1beta1.CompactBitArray.fromObject(e.bitarray)}if(e.modeInfos){if(!Array.isArray(e.modeInfos))throw TypeError(".cosmos.tx.v1beta1.ModeInfo.Multi.modeInfos: array expected");t.modeInfos=[];for(var n=0;n<e.modeInfos.length;++n){if("object"!=typeof e.modeInfos[n])throw TypeError(".cosmos.tx.v1beta1.ModeInfo.Multi.modeInfos: object expected");t.modeInfos[n]=s.cosmos.tx.v1beta1.ModeInfo.fromObject(e.modeInfos[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.modeInfos=[]),t.defaults&&(n.bitarray=null),null!=e.bitarray&&e.hasOwnProperty("bitarray")&&(n.bitarray=s.cosmos.crypto.multisig.v1beta1.CompactBitArray.toObject(e.bitarray,t)),e.modeInfos&&e.modeInfos.length){n.modeInfos=[];for(var r=0;r<e.modeInfos.length;++r)n.modeInfos[r]=s.cosmos.tx.v1beta1.ModeInfo.toObject(e.modeInfos[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.Fee=function(){function e(e){if(this.amount=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.amount=a.emptyArray,e.prototype.gasLimit=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.payer="",e.prototype.granter="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.amount&&e.amount.length)for(var n=0;n<e.amount.length;++n)s.cosmos.base.v1beta1.Coin.encode(e.amount[n],t.uint32(10).fork()).ldelim();return null!=e.gasLimit&&Object.hasOwnProperty.call(e,"gasLimit")&&t.uint32(16).uint64(e.gasLimit),null!=e.payer&&Object.hasOwnProperty.call(e,"payer")&&t.uint32(26).string(e.payer),null!=e.granter&&Object.hasOwnProperty.call(e,"granter")&&t.uint32(34).string(e.granter),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.cosmos.tx.v1beta1.Fee;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.amount&&r.amount.length||(r.amount=[]),r.amount.push(s.cosmos.base.v1beta1.Coin.decode(e,e.uint32()));break;case 2:r.gasLimit=e.uint64();break;case 3:r.payer=e.string();break;case 4:r.granter=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.cosmos.tx.v1beta1.Fee)return e;var t=new s.cosmos.tx.v1beta1.Fee;if(e.amount){if(!Array.isArray(e.amount))throw TypeError(".cosmos.tx.v1beta1.Fee.amount: array expected");t.amount=[];for(var n=0;n<e.amount.length;++n){if("object"!=typeof e.amount[n])throw TypeError(".cosmos.tx.v1beta1.Fee.amount: object expected");t.amount[n]=s.cosmos.base.v1beta1.Coin.fromObject(e.amount[n])}}return null!=e.gasLimit&&(a.Long?(t.gasLimit=a.Long.fromValue(e.gasLimit)).unsigned=!0:"string"==typeof e.gasLimit?t.gasLimit=parseInt(e.gasLimit,10):"number"==typeof e.gasLimit?t.gasLimit=e.gasLimit:"object"==typeof e.gasLimit&&(t.gasLimit=new a.LongBits(e.gasLimit.low>>>0,e.gasLimit.high>>>0).toNumber(!0))),null!=e.payer&&(t.payer=String(e.payer)),null!=e.granter&&(t.granter=String(e.granter)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.amount=[]),t.defaults){if(a.Long){var r=new a.Long(0,0,!0);n.gasLimit=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.gasLimit=t.longs===String?"0":0;n.payer="",n.granter=""}if(e.amount&&e.amount.length){n.amount=[];for(var i=0;i<e.amount.length;++i)n.amount[i]=s.cosmos.base.v1beta1.Coin.toObject(e.amount[i],t)}return null!=e.gasLimit&&e.hasOwnProperty("gasLimit")&&("number"==typeof e.gasLimit?n.gasLimit=t.longs===String?String(e.gasLimit):e.gasLimit:n.gasLimit=t.longs===String?a.Long.prototype.toString.call(e.gasLimit):t.longs===Number?new a.LongBits(e.gasLimit.low>>>0,e.gasLimit.high>>>0).toNumber(!0):e.gasLimit),null!=e.payer&&e.hasOwnProperty("payer")&&(n.payer=e.payer),null!=e.granter&&e.hasOwnProperty("granter")&&(n.granter=e.granter),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e})(),t.google=s.google=(()=>{const e={};return e.protobuf=function(){const e={};return e.Any=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.type_url="",e.prototype.value=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.type_url&&Object.hasOwnProperty.call(e,"type_url")&&t.uint32(10).string(e.type_url),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).bytes(e.value),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.Any;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.type_url=e.string();break;case 2:r.value=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.Any)return e;var t=new s.google.protobuf.Any;return null!=e.type_url&&(t.type_url=String(e.type_url)),null!=e.value&&("string"==typeof e.value?a.base64.decode(e.value,t.value=a.newBuffer(a.base64.length(e.value)),0):e.value.length&&(t.value=e.value)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.type_url="",t.bytes===String?n.value="":(n.value=[],t.bytes!==Array&&(n.value=a.newBuffer(n.value)))),null!=e.type_url&&e.hasOwnProperty("type_url")&&(n.type_url=e.type_url),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.bytes===String?a.base64.encode(e.value,0,e.value.length):t.bytes===Array?Array.prototype.slice.call(e.value):e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.FileDescriptorSet=function(){function e(e){if(this.file=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.file=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.file&&e.file.length)for(var n=0;n<e.file.length;++n)s.google.protobuf.FileDescriptorProto.encode(e.file[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.FileDescriptorSet;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.file&&r.file.length||(r.file=[]),r.file.push(s.google.protobuf.FileDescriptorProto.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.FileDescriptorSet)return e;var t=new s.google.protobuf.FileDescriptorSet;if(e.file){if(!Array.isArray(e.file))throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected");t.file=[];for(var n=0;n<e.file.length;++n){if("object"!=typeof e.file[n])throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected");t.file[n]=s.google.protobuf.FileDescriptorProto.fromObject(e.file[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.file=[]),e.file&&e.file.length){n.file=[];for(var r=0;r<e.file.length;++r)n.file[r]=s.google.protobuf.FileDescriptorProto.toObject(e.file[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.FileDescriptorProto=function(){function e(e){if(this.dependency=[],this.publicDependency=[],this.weakDependency=[],this.messageType=[],this.enumType=[],this.service=[],this.extension=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.package="",e.prototype.dependency=a.emptyArray,e.prototype.publicDependency=a.emptyArray,e.prototype.weakDependency=a.emptyArray,e.prototype.messageType=a.emptyArray,e.prototype.enumType=a.emptyArray,e.prototype.service=a.emptyArray,e.prototype.extension=a.emptyArray,e.prototype.options=null,e.prototype.sourceCodeInfo=null,e.prototype.syntax="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.package&&Object.hasOwnProperty.call(e,"package")&&t.uint32(18).string(e.package),null!=e.dependency&&e.dependency.length)for(var n=0;n<e.dependency.length;++n)t.uint32(26).string(e.dependency[n]);if(null!=e.messageType&&e.messageType.length)for(n=0;n<e.messageType.length;++n)s.google.protobuf.DescriptorProto.encode(e.messageType[n],t.uint32(34).fork()).ldelim();if(null!=e.enumType&&e.enumType.length)for(n=0;n<e.enumType.length;++n)s.google.protobuf.EnumDescriptorProto.encode(e.enumType[n],t.uint32(42).fork()).ldelim();if(null!=e.service&&e.service.length)for(n=0;n<e.service.length;++n)s.google.protobuf.ServiceDescriptorProto.encode(e.service[n],t.uint32(50).fork()).ldelim();if(null!=e.extension&&e.extension.length)for(n=0;n<e.extension.length;++n)s.google.protobuf.FieldDescriptorProto.encode(e.extension[n],t.uint32(58).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&s.google.protobuf.FileOptions.encode(e.options,t.uint32(66).fork()).ldelim(),null!=e.sourceCodeInfo&&Object.hasOwnProperty.call(e,"sourceCodeInfo")&&s.google.protobuf.SourceCodeInfo.encode(e.sourceCodeInfo,t.uint32(74).fork()).ldelim(),null!=e.publicDependency&&e.publicDependency.length)for(n=0;n<e.publicDependency.length;++n)t.uint32(80).int32(e.publicDependency[n]);if(null!=e.weakDependency&&e.weakDependency.length)for(n=0;n<e.weakDependency.length;++n)t.uint32(88).int32(e.weakDependency[n]);return null!=e.syntax&&Object.hasOwnProperty.call(e,"syntax")&&t.uint32(98).string(e.syntax),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.FileDescriptorProto;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 2:r.package=e.string();break;case 3:r.dependency&&r.dependency.length||(r.dependency=[]),r.dependency.push(e.string());break;case 10:if(r.publicDependency&&r.publicDependency.length||(r.publicDependency=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)r.publicDependency.push(e.int32());else r.publicDependency.push(e.int32());break;case 11:if(r.weakDependency&&r.weakDependency.length||(r.weakDependency=[]),2==(7&o))for(a=e.uint32()+e.pos;e.pos<a;)r.weakDependency.push(e.int32());else r.weakDependency.push(e.int32());break;case 4:r.messageType&&r.messageType.length||(r.messageType=[]),r.messageType.push(s.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 5:r.enumType&&r.enumType.length||(r.enumType=[]),r.enumType.push(s.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 6:r.service&&r.service.length||(r.service=[]),r.service.push(s.google.protobuf.ServiceDescriptorProto.decode(e,e.uint32()));break;case 7:r.extension&&r.extension.length||(r.extension=[]),r.extension.push(s.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 8:r.options=s.google.protobuf.FileOptions.decode(e,e.uint32());break;case 9:r.sourceCodeInfo=s.google.protobuf.SourceCodeInfo.decode(e,e.uint32());break;case 12:r.syntax=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.FileDescriptorProto)return e;var t=new s.google.protobuf.FileDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.package&&(t.package=String(e.package)),e.dependency){if(!Array.isArray(e.dependency))throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected");t.dependency=[];for(var n=0;n<e.dependency.length;++n)t.dependency[n]=String(e.dependency[n])}if(e.publicDependency){if(!Array.isArray(e.publicDependency))throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected");t.publicDependency=[];for(n=0;n<e.publicDependency.length;++n)t.publicDependency[n]=0|e.publicDependency[n]}if(e.weakDependency){if(!Array.isArray(e.weakDependency))throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected");t.weakDependency=[];for(n=0;n<e.weakDependency.length;++n)t.weakDependency[n]=0|e.weakDependency[n]}if(e.messageType){if(!Array.isArray(e.messageType))throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected");t.messageType=[];for(n=0;n<e.messageType.length;++n){if("object"!=typeof e.messageType[n])throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected");t.messageType[n]=s.google.protobuf.DescriptorProto.fromObject(e.messageType[n])}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected");t.enumType=[];for(n=0;n<e.enumType.length;++n){if("object"!=typeof e.enumType[n])throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected");t.enumType[n]=s.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[n])}}if(e.service){if(!Array.isArray(e.service))throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected");t.service=[];for(n=0;n<e.service.length;++n){if("object"!=typeof e.service[n])throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected");t.service[n]=s.google.protobuf.ServiceDescriptorProto.fromObject(e.service[n])}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected");t.extension=[];for(n=0;n<e.extension.length;++n){if("object"!=typeof e.extension[n])throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected");t.extension[n]=s.google.protobuf.FieldDescriptorProto.fromObject(e.extension[n])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected");t.options=s.google.protobuf.FileOptions.fromObject(e.options)}if(null!=e.sourceCodeInfo){if("object"!=typeof e.sourceCodeInfo)throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected");t.sourceCodeInfo=s.google.protobuf.SourceCodeInfo.fromObject(e.sourceCodeInfo)}return null!=e.syntax&&(t.syntax=String(e.syntax)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.dependency=[],n.messageType=[],n.enumType=[],n.service=[],n.extension=[],n.publicDependency=[],n.weakDependency=[]),t.defaults&&(n.name="",n.package="",n.options=null,n.sourceCodeInfo=null,n.syntax=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.package&&e.hasOwnProperty("package")&&(n.package=e.package),e.dependency&&e.dependency.length){n.dependency=[];for(var r=0;r<e.dependency.length;++r)n.dependency[r]=e.dependency[r]}if(e.messageType&&e.messageType.length){n.messageType=[];for(r=0;r<e.messageType.length;++r)n.messageType[r]=s.google.protobuf.DescriptorProto.toObject(e.messageType[r],t)}if(e.enumType&&e.enumType.length){n.enumType=[];for(r=0;r<e.enumType.length;++r)n.enumType[r]=s.google.protobuf.EnumDescriptorProto.toObject(e.enumType[r],t)}if(e.service&&e.service.length){n.service=[];for(r=0;r<e.service.length;++r)n.service[r]=s.google.protobuf.ServiceDescriptorProto.toObject(e.service[r],t)}if(e.extension&&e.extension.length){n.extension=[];for(r=0;r<e.extension.length;++r)n.extension[r]=s.google.protobuf.FieldDescriptorProto.toObject(e.extension[r],t)}if(null!=e.options&&e.hasOwnProperty("options")&&(n.options=s.google.protobuf.FileOptions.toObject(e.options,t)),null!=e.sourceCodeInfo&&e.hasOwnProperty("sourceCodeInfo")&&(n.sourceCodeInfo=s.google.protobuf.SourceCodeInfo.toObject(e.sourceCodeInfo,t)),e.publicDependency&&e.publicDependency.length){n.publicDependency=[];for(r=0;r<e.publicDependency.length;++r)n.publicDependency[r]=e.publicDependency[r]}if(e.weakDependency&&e.weakDependency.length){n.weakDependency=[];for(r=0;r<e.weakDependency.length;++r)n.weakDependency[r]=e.weakDependency[r]}return null!=e.syntax&&e.hasOwnProperty("syntax")&&(n.syntax=e.syntax),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.DescriptorProto=function(){function e(e){if(this.field=[],this.extension=[],this.nestedType=[],this.enumType=[],this.extensionRange=[],this.oneofDecl=[],this.reservedRange=[],this.reservedName=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.field=a.emptyArray,e.prototype.extension=a.emptyArray,e.prototype.nestedType=a.emptyArray,e.prototype.enumType=a.emptyArray,e.prototype.extensionRange=a.emptyArray,e.prototype.oneofDecl=a.emptyArray,e.prototype.options=null,e.prototype.reservedRange=a.emptyArray,e.prototype.reservedName=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.field&&e.field.length)for(var n=0;n<e.field.length;++n)s.google.protobuf.FieldDescriptorProto.encode(e.field[n],t.uint32(18).fork()).ldelim();if(null!=e.nestedType&&e.nestedType.length)for(n=0;n<e.nestedType.length;++n)s.google.protobuf.DescriptorProto.encode(e.nestedType[n],t.uint32(26).fork()).ldelim();if(null!=e.enumType&&e.enumType.length)for(n=0;n<e.enumType.length;++n)s.google.protobuf.EnumDescriptorProto.encode(e.enumType[n],t.uint32(34).fork()).ldelim();if(null!=e.extensionRange&&e.extensionRange.length)for(n=0;n<e.extensionRange.length;++n)s.google.protobuf.DescriptorProto.ExtensionRange.encode(e.extensionRange[n],t.uint32(42).fork()).ldelim();if(null!=e.extension&&e.extension.length)for(n=0;n<e.extension.length;++n)s.google.protobuf.FieldDescriptorProto.encode(e.extension[n],t.uint32(50).fork()).ldelim();if(null!=e.options&&Object.hasOwnProperty.call(e,"options")&&s.google.protobuf.MessageOptions.encode(e.options,t.uint32(58).fork()).ldelim(),null!=e.oneofDecl&&e.oneofDecl.length)for(n=0;n<e.oneofDecl.length;++n)s.google.protobuf.OneofDescriptorProto.encode(e.oneofDecl[n],t.uint32(66).fork()).ldelim();if(null!=e.reservedRange&&e.reservedRange.length)for(n=0;n<e.reservedRange.length;++n)s.google.protobuf.DescriptorProto.ReservedRange.encode(e.reservedRange[n],t.uint32(74).fork()).ldelim();if(null!=e.reservedName&&e.reservedName.length)for(n=0;n<e.reservedName.length;++n)t.uint32(82).string(e.reservedName[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.DescriptorProto;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 2:r.field&&r.field.length||(r.field=[]),r.field.push(s.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 6:r.extension&&r.extension.length||(r.extension=[]),r.extension.push(s.google.protobuf.FieldDescriptorProto.decode(e,e.uint32()));break;case 3:r.nestedType&&r.nestedType.length||(r.nestedType=[]),r.nestedType.push(s.google.protobuf.DescriptorProto.decode(e,e.uint32()));break;case 4:r.enumType&&r.enumType.length||(r.enumType=[]),r.enumType.push(s.google.protobuf.EnumDescriptorProto.decode(e,e.uint32()));break;case 5:r.extensionRange&&r.extensionRange.length||(r.extensionRange=[]),r.extensionRange.push(s.google.protobuf.DescriptorProto.ExtensionRange.decode(e,e.uint32()));break;case 8:r.oneofDecl&&r.oneofDecl.length||(r.oneofDecl=[]),r.oneofDecl.push(s.google.protobuf.OneofDescriptorProto.decode(e,e.uint32()));break;case 7:r.options=s.google.protobuf.MessageOptions.decode(e,e.uint32());break;case 9:r.reservedRange&&r.reservedRange.length||(r.reservedRange=[]),r.reservedRange.push(s.google.protobuf.DescriptorProto.ReservedRange.decode(e,e.uint32()));break;case 10:r.reservedName&&r.reservedName.length||(r.reservedName=[]),r.reservedName.push(e.string());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.DescriptorProto)return e;var t=new s.google.protobuf.DescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.field){if(!Array.isArray(e.field))throw TypeError(".google.protobuf.DescriptorProto.field: array expected");t.field=[];for(var n=0;n<e.field.length;++n){if("object"!=typeof e.field[n])throw TypeError(".google.protobuf.DescriptorProto.field: object expected");t.field[n]=s.google.protobuf.FieldDescriptorProto.fromObject(e.field[n])}}if(e.extension){if(!Array.isArray(e.extension))throw TypeError(".google.protobuf.DescriptorProto.extension: array expected");t.extension=[];for(n=0;n<e.extension.length;++n){if("object"!=typeof e.extension[n])throw TypeError(".google.protobuf.DescriptorProto.extension: object expected");t.extension[n]=s.google.protobuf.FieldDescriptorProto.fromObject(e.extension[n])}}if(e.nestedType){if(!Array.isArray(e.nestedType))throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected");t.nestedType=[];for(n=0;n<e.nestedType.length;++n){if("object"!=typeof e.nestedType[n])throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected");t.nestedType[n]=s.google.protobuf.DescriptorProto.fromObject(e.nestedType[n])}}if(e.enumType){if(!Array.isArray(e.enumType))throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected");t.enumType=[];for(n=0;n<e.enumType.length;++n){if("object"!=typeof e.enumType[n])throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected");t.enumType[n]=s.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[n])}}if(e.extensionRange){if(!Array.isArray(e.extensionRange))throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected");t.extensionRange=[];for(n=0;n<e.extensionRange.length;++n){if("object"!=typeof e.extensionRange[n])throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected");t.extensionRange[n]=s.google.protobuf.DescriptorProto.ExtensionRange.fromObject(e.extensionRange[n])}}if(e.oneofDecl){if(!Array.isArray(e.oneofDecl))throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected");t.oneofDecl=[];for(n=0;n<e.oneofDecl.length;++n){if("object"!=typeof e.oneofDecl[n])throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected");t.oneofDecl[n]=s.google.protobuf.OneofDescriptorProto.fromObject(e.oneofDecl[n])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.DescriptorProto.options: object expected");t.options=s.google.protobuf.MessageOptions.fromObject(e.options)}if(e.reservedRange){if(!Array.isArray(e.reservedRange))throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected");t.reservedRange=[];for(n=0;n<e.reservedRange.length;++n){if("object"!=typeof e.reservedRange[n])throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected");t.reservedRange[n]=s.google.protobuf.DescriptorProto.ReservedRange.fromObject(e.reservedRange[n])}}if(e.reservedName){if(!Array.isArray(e.reservedName))throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected");t.reservedName=[];for(n=0;n<e.reservedName.length;++n)t.reservedName[n]=String(e.reservedName[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.field=[],n.nestedType=[],n.enumType=[],n.extensionRange=[],n.extension=[],n.oneofDecl=[],n.reservedRange=[],n.reservedName=[]),t.defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),e.field&&e.field.length){n.field=[];for(var r=0;r<e.field.length;++r)n.field[r]=s.google.protobuf.FieldDescriptorProto.toObject(e.field[r],t)}if(e.nestedType&&e.nestedType.length){n.nestedType=[];for(r=0;r<e.nestedType.length;++r)n.nestedType[r]=s.google.protobuf.DescriptorProto.toObject(e.nestedType[r],t)}if(e.enumType&&e.enumType.length){n.enumType=[];for(r=0;r<e.enumType.length;++r)n.enumType[r]=s.google.protobuf.EnumDescriptorProto.toObject(e.enumType[r],t)}if(e.extensionRange&&e.extensionRange.length){n.extensionRange=[];for(r=0;r<e.extensionRange.length;++r)n.extensionRange[r]=s.google.protobuf.DescriptorProto.ExtensionRange.toObject(e.extensionRange[r],t)}if(e.extension&&e.extension.length){n.extension=[];for(r=0;r<e.extension.length;++r)n.extension[r]=s.google.protobuf.FieldDescriptorProto.toObject(e.extension[r],t)}if(null!=e.options&&e.hasOwnProperty("options")&&(n.options=s.google.protobuf.MessageOptions.toObject(e.options,t)),e.oneofDecl&&e.oneofDecl.length){n.oneofDecl=[];for(r=0;r<e.oneofDecl.length;++r)n.oneofDecl[r]=s.google.protobuf.OneofDescriptorProto.toObject(e.oneofDecl[r],t)}if(e.reservedRange&&e.reservedRange.length){n.reservedRange=[];for(r=0;r<e.reservedRange.length;++r)n.reservedRange[r]=s.google.protobuf.DescriptorProto.ReservedRange.toObject(e.reservedRange[r],t)}if(e.reservedName&&e.reservedName.length){n.reservedName=[];for(r=0;r<e.reservedName.length;++r)n.reservedName[r]=e.reservedName[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.ExtensionRange=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.start=0,e.prototype.end=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.DescriptorProto.ExtensionRange;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.start=e.int32();break;case 2:r.end=e.int32();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.DescriptorProto.ExtensionRange)return e;var t=new s.google.protobuf.DescriptorProto.ExtensionRange;return null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ReservedRange=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.start=0,e.prototype.end=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int32(e.start),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(16).int32(e.end),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.DescriptorProto.ReservedRange;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.start=e.int32();break;case 2:r.end=e.int32();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.DescriptorProto.ReservedRange)return e;var t=new s.google.protobuf.DescriptorProto.ReservedRange;return null!=e.start&&(t.start=0|e.start),null!=e.end&&(t.end=0|e.end),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.start=0,n.end=0),null!=e.start&&e.hasOwnProperty("start")&&(n.start=e.start),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.FieldDescriptorProto=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.number=0,e.prototype.label=1,e.prototype.type=1,e.prototype.typeName="",e.prototype.extendee="",e.prototype.defaultValue="",e.prototype.oneofIndex=0,e.prototype.jsonName="",e.prototype.options=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.extendee&&Object.hasOwnProperty.call(e,"extendee")&&t.uint32(18).string(e.extendee),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(24).int32(e.number),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(32).int32(e.label),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(40).int32(e.type),null!=e.typeName&&Object.hasOwnProperty.call(e,"typeName")&&t.uint32(50).string(e.typeName),null!=e.defaultValue&&Object.hasOwnProperty.call(e,"defaultValue")&&t.uint32(58).string(e.defaultValue),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&s.google.protobuf.FieldOptions.encode(e.options,t.uint32(66).fork()).ldelim(),null!=e.oneofIndex&&Object.hasOwnProperty.call(e,"oneofIndex")&&t.uint32(72).int32(e.oneofIndex),null!=e.jsonName&&Object.hasOwnProperty.call(e,"jsonName")&&t.uint32(82).string(e.jsonName),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.FieldDescriptorProto;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 3:r.number=e.int32();break;case 4:r.label=e.int32();break;case 5:r.type=e.int32();break;case 6:r.typeName=e.string();break;case 2:r.extendee=e.string();break;case 7:r.defaultValue=e.string();break;case 9:r.oneofIndex=e.int32();break;case 10:r.jsonName=e.string();break;case 8:r.options=s.google.protobuf.FieldOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.FieldDescriptorProto)return e;var t=new s.google.protobuf.FieldDescriptorProto;switch(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),e.label){case"LABEL_OPTIONAL":case 1:t.label=1;break;case"LABEL_REQUIRED":case 2:t.label=2;break;case"LABEL_REPEATED":case 3:t.label=3}switch(e.type){case"TYPE_DOUBLE":case 1:t.type=1;break;case"TYPE_FLOAT":case 2:t.type=2;break;case"TYPE_INT64":case 3:t.type=3;break;case"TYPE_UINT64":case 4:t.type=4;break;case"TYPE_INT32":case 5:t.type=5;break;case"TYPE_FIXED64":case 6:t.type=6;break;case"TYPE_FIXED32":case 7:t.type=7;break;case"TYPE_BOOL":case 8:t.type=8;break;case"TYPE_STRING":case 9:t.type=9;break;case"TYPE_GROUP":case 10:t.type=10;break;case"TYPE_MESSAGE":case 11:t.type=11;break;case"TYPE_BYTES":case 12:t.type=12;break;case"TYPE_UINT32":case 13:t.type=13;break;case"TYPE_ENUM":case 14:t.type=14;break;case"TYPE_SFIXED32":case 15:t.type=15;break;case"TYPE_SFIXED64":case 16:t.type=16;break;case"TYPE_SINT32":case 17:t.type=17;break;case"TYPE_SINT64":case 18:t.type=18}if(null!=e.typeName&&(t.typeName=String(e.typeName)),null!=e.extendee&&(t.extendee=String(e.extendee)),null!=e.defaultValue&&(t.defaultValue=String(e.defaultValue)),null!=e.oneofIndex&&(t.oneofIndex=0|e.oneofIndex),null!=e.jsonName&&(t.jsonName=String(e.jsonName)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected");t.options=s.google.protobuf.FieldOptions.fromObject(e.options)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name="",n.extendee="",n.number=0,n.label=t.enums===String?"LABEL_OPTIONAL":1,n.type=t.enums===String?"TYPE_DOUBLE":1,n.typeName="",n.defaultValue="",n.options=null,n.oneofIndex=0,n.jsonName=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.extendee&&e.hasOwnProperty("extendee")&&(n.extendee=e.extendee),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.label&&e.hasOwnProperty("label")&&(n.label=t.enums===String?s.google.protobuf.FieldDescriptorProto.Label[e.label]:e.label),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?s.google.protobuf.FieldDescriptorProto.Type[e.type]:e.type),null!=e.typeName&&e.hasOwnProperty("typeName")&&(n.typeName=e.typeName),null!=e.defaultValue&&e.hasOwnProperty("defaultValue")&&(n.defaultValue=e.defaultValue),null!=e.options&&e.hasOwnProperty("options")&&(n.options=s.google.protobuf.FieldOptions.toObject(e.options,t)),null!=e.oneofIndex&&e.hasOwnProperty("oneofIndex")&&(n.oneofIndex=e.oneofIndex),null!=e.jsonName&&e.hasOwnProperty("jsonName")&&(n.jsonName=e.jsonName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Type=function(){const e={},t=Object.create(e);return t[e[1]="TYPE_DOUBLE"]=1,t[e[2]="TYPE_FLOAT"]=2,t[e[3]="TYPE_INT64"]=3,t[e[4]="TYPE_UINT64"]=4,t[e[5]="TYPE_INT32"]=5,t[e[6]="TYPE_FIXED64"]=6,t[e[7]="TYPE_FIXED32"]=7,t[e[8]="TYPE_BOOL"]=8,t[e[9]="TYPE_STRING"]=9,t[e[10]="TYPE_GROUP"]=10,t[e[11]="TYPE_MESSAGE"]=11,t[e[12]="TYPE_BYTES"]=12,t[e[13]="TYPE_UINT32"]=13,t[e[14]="TYPE_ENUM"]=14,t[e[15]="TYPE_SFIXED32"]=15,t[e[16]="TYPE_SFIXED64"]=16,t[e[17]="TYPE_SINT32"]=17,t[e[18]="TYPE_SINT64"]=18,t}(),e.Label=function(){const e={},t=Object.create(e);return t[e[1]="LABEL_OPTIONAL"]=1,t[e[2]="LABEL_REQUIRED"]=2,t[e[3]="LABEL_REPEATED"]=3,t}(),e}(),e.OneofDescriptorProto=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.options=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&s.google.protobuf.OneofOptions.encode(e.options,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.OneofDescriptorProto;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 2:r.options=s.google.protobuf.OneofOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.OneofDescriptorProto)return e;var t=new s.google.protobuf.OneofDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected");t.options=s.google.protobuf.OneofOptions.fromObject(e.options)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.options&&e.hasOwnProperty("options")&&(n.options=s.google.protobuf.OneofOptions.toObject(e.options,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.EnumDescriptorProto=function(){function e(e){if(this.value=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.value=a.emptyArray,e.prototype.options=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&e.value.length)for(var n=0;n<e.value.length;++n)s.google.protobuf.EnumValueDescriptorProto.encode(e.value[n],t.uint32(18).fork()).ldelim();return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&s.google.protobuf.EnumOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.EnumDescriptorProto;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 2:r.value&&r.value.length||(r.value=[]),r.value.push(s.google.protobuf.EnumValueDescriptorProto.decode(e,e.uint32()));break;case 3:r.options=s.google.protobuf.EnumOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.EnumDescriptorProto)return e;var t=new s.google.protobuf.EnumDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.value){if(!Array.isArray(e.value))throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected");t.value=[];for(var n=0;n<e.value.length;++n){if("object"!=typeof e.value[n])throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected");t.value[n]=s.google.protobuf.EnumValueDescriptorProto.fromObject(e.value[n])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected");t.options=s.google.protobuf.EnumOptions.fromObject(e.options)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.value=[]),t.defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),e.value&&e.value.length){n.value=[];for(var r=0;r<e.value.length;++r)n.value[r]=s.google.protobuf.EnumValueDescriptorProto.toObject(e.value[r],t)}return null!=e.options&&e.hasOwnProperty("options")&&(n.options=s.google.protobuf.EnumOptions.toObject(e.options,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.EnumValueDescriptorProto=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.number=0,e.prototype.options=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(16).int32(e.number),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&s.google.protobuf.EnumValueOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.EnumValueDescriptorProto;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 2:r.number=e.int32();break;case 3:r.options=s.google.protobuf.EnumValueOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.EnumValueDescriptorProto)return e;var t=new s.google.protobuf.EnumValueDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.number&&(t.number=0|e.number),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected");t.options=s.google.protobuf.EnumValueOptions.fromObject(e.options)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name="",n.number=0,n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.number&&e.hasOwnProperty("number")&&(n.number=e.number),null!=e.options&&e.hasOwnProperty("options")&&(n.options=s.google.protobuf.EnumValueOptions.toObject(e.options,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ServiceDescriptorProto=function(){function e(e){if(this.method=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.method=a.emptyArray,e.prototype.options=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.method&&e.method.length)for(var n=0;n<e.method.length;++n)s.google.protobuf.MethodDescriptorProto.encode(e.method[n],t.uint32(18).fork()).ldelim();return null!=e.options&&Object.hasOwnProperty.call(e,"options")&&s.google.protobuf.ServiceOptions.encode(e.options,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.ServiceDescriptorProto;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 2:r.method&&r.method.length||(r.method=[]),r.method.push(s.google.protobuf.MethodDescriptorProto.decode(e,e.uint32()));break;case 3:r.options=s.google.protobuf.ServiceOptions.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.ServiceDescriptorProto)return e;var t=new s.google.protobuf.ServiceDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),e.method){if(!Array.isArray(e.method))throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected");t.method=[];for(var n=0;n<e.method.length;++n){if("object"!=typeof e.method[n])throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected");t.method[n]=s.google.protobuf.MethodDescriptorProto.fromObject(e.method[n])}}if(null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected");t.options=s.google.protobuf.ServiceOptions.fromObject(e.options)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.method=[]),t.defaults&&(n.name="",n.options=null),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),e.method&&e.method.length){n.method=[];for(var r=0;r<e.method.length;++r)n.method[r]=s.google.protobuf.MethodDescriptorProto.toObject(e.method[r],t)}return null!=e.options&&e.hasOwnProperty("options")&&(n.options=s.google.protobuf.ServiceOptions.toObject(e.options,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MethodDescriptorProto=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.inputType="",e.prototype.outputType="",e.prototype.options=null,e.prototype.clientStreaming=!1,e.prototype.serverStreaming=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.inputType&&Object.hasOwnProperty.call(e,"inputType")&&t.uint32(18).string(e.inputType),null!=e.outputType&&Object.hasOwnProperty.call(e,"outputType")&&t.uint32(26).string(e.outputType),null!=e.options&&Object.hasOwnProperty.call(e,"options")&&s.google.protobuf.MethodOptions.encode(e.options,t.uint32(34).fork()).ldelim(),null!=e.clientStreaming&&Object.hasOwnProperty.call(e,"clientStreaming")&&t.uint32(40).bool(e.clientStreaming),null!=e.serverStreaming&&Object.hasOwnProperty.call(e,"serverStreaming")&&t.uint32(48).bool(e.serverStreaming),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.MethodDescriptorProto;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.string();break;case 2:r.inputType=e.string();break;case 3:r.outputType=e.string();break;case 4:r.options=s.google.protobuf.MethodOptions.decode(e,e.uint32());break;case 5:r.clientStreaming=e.bool();break;case 6:r.serverStreaming=e.bool();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.MethodDescriptorProto)return e;var t=new s.google.protobuf.MethodDescriptorProto;if(null!=e.name&&(t.name=String(e.name)),null!=e.inputType&&(t.inputType=String(e.inputType)),null!=e.outputType&&(t.outputType=String(e.outputType)),null!=e.options){if("object"!=typeof e.options)throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected");t.options=s.google.protobuf.MethodOptions.fromObject(e.options)}return null!=e.clientStreaming&&(t.clientStreaming=Boolean(e.clientStreaming)),null!=e.serverStreaming&&(t.serverStreaming=Boolean(e.serverStreaming)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.name="",n.inputType="",n.outputType="",n.options=null,n.clientStreaming=!1,n.serverStreaming=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.inputType&&e.hasOwnProperty("inputType")&&(n.inputType=e.inputType),null!=e.outputType&&e.hasOwnProperty("outputType")&&(n.outputType=e.outputType),null!=e.options&&e.hasOwnProperty("options")&&(n.options=s.google.protobuf.MethodOptions.toObject(e.options,t)),null!=e.clientStreaming&&e.hasOwnProperty("clientStreaming")&&(n.clientStreaming=e.clientStreaming),null!=e.serverStreaming&&e.hasOwnProperty("serverStreaming")&&(n.serverStreaming=e.serverStreaming),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.FileOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.javaPackage="",e.prototype.javaOuterClassname="",e.prototype.javaMultipleFiles=!1,e.prototype.javaGenerateEqualsAndHash=!1,e.prototype.javaStringCheckUtf8=!1,e.prototype.optimizeFor=1,e.prototype.goPackage="",e.prototype.ccGenericServices=!1,e.prototype.javaGenericServices=!1,e.prototype.pyGenericServices=!1,e.prototype.deprecated=!1,e.prototype.ccEnableArenas=!1,e.prototype.objcClassPrefix="",e.prototype.csharpNamespace="",e.prototype.uninterpretedOption=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.javaPackage&&Object.hasOwnProperty.call(e,"javaPackage")&&t.uint32(10).string(e.javaPackage),null!=e.javaOuterClassname&&Object.hasOwnProperty.call(e,"javaOuterClassname")&&t.uint32(66).string(e.javaOuterClassname),null!=e.optimizeFor&&Object.hasOwnProperty.call(e,"optimizeFor")&&t.uint32(72).int32(e.optimizeFor),null!=e.javaMultipleFiles&&Object.hasOwnProperty.call(e,"javaMultipleFiles")&&t.uint32(80).bool(e.javaMultipleFiles),null!=e.goPackage&&Object.hasOwnProperty.call(e,"goPackage")&&t.uint32(90).string(e.goPackage),null!=e.ccGenericServices&&Object.hasOwnProperty.call(e,"ccGenericServices")&&t.uint32(128).bool(e.ccGenericServices),null!=e.javaGenericServices&&Object.hasOwnProperty.call(e,"javaGenericServices")&&t.uint32(136).bool(e.javaGenericServices),null!=e.pyGenericServices&&Object.hasOwnProperty.call(e,"pyGenericServices")&&t.uint32(144).bool(e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&Object.hasOwnProperty.call(e,"javaGenerateEqualsAndHash")&&t.uint32(160).bool(e.javaGenerateEqualsAndHash),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(184).bool(e.deprecated),null!=e.javaStringCheckUtf8&&Object.hasOwnProperty.call(e,"javaStringCheckUtf8")&&t.uint32(216).bool(e.javaStringCheckUtf8),null!=e.ccEnableArenas&&Object.hasOwnProperty.call(e,"ccEnableArenas")&&t.uint32(248).bool(e.ccEnableArenas),null!=e.objcClassPrefix&&Object.hasOwnProperty.call(e,"objcClassPrefix")&&t.uint32(290).string(e.objcClassPrefix),null!=e.csharpNamespace&&Object.hasOwnProperty.call(e,"csharpNamespace")&&t.uint32(298).string(e.csharpNamespace),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n<e.uninterpretedOption.length;++n)s.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.FileOptions;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.javaPackage=e.string();break;case 8:r.javaOuterClassname=e.string();break;case 10:r.javaMultipleFiles=e.bool();break;case 20:r.javaGenerateEqualsAndHash=e.bool();break;case 27:r.javaStringCheckUtf8=e.bool();break;case 9:r.optimizeFor=e.int32();break;case 11:r.goPackage=e.string();break;case 16:r.ccGenericServices=e.bool();break;case 17:r.javaGenericServices=e.bool();break;case 18:r.pyGenericServices=e.bool();break;case 23:r.deprecated=e.bool();break;case 31:r.ccEnableArenas=e.bool();break;case 36:r.objcClassPrefix=e.string();break;case 37:r.csharpNamespace=e.string();break;case 999:r.uninterpretedOption&&r.uninterpretedOption.length||(r.uninterpretedOption=[]),r.uninterpretedOption.push(s.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.FileOptions)return e;var t=new s.google.protobuf.FileOptions;switch(null!=e.javaPackage&&(t.javaPackage=String(e.javaPackage)),null!=e.javaOuterClassname&&(t.javaOuterClassname=String(e.javaOuterClassname)),null!=e.javaMultipleFiles&&(t.javaMultipleFiles=Boolean(e.javaMultipleFiles)),null!=e.javaGenerateEqualsAndHash&&(t.javaGenerateEqualsAndHash=Boolean(e.javaGenerateEqualsAndHash)),null!=e.javaStringCheckUtf8&&(t.javaStringCheckUtf8=Boolean(e.javaStringCheckUtf8)),e.optimizeFor){case"SPEED":case 1:t.optimizeFor=1;break;case"CODE_SIZE":case 2:t.optimizeFor=2;break;case"LITE_RUNTIME":case 3:t.optimizeFor=3}if(null!=e.goPackage&&(t.goPackage=String(e.goPackage)),null!=e.ccGenericServices&&(t.ccGenericServices=Boolean(e.ccGenericServices)),null!=e.javaGenericServices&&(t.javaGenericServices=Boolean(e.javaGenericServices)),null!=e.pyGenericServices&&(t.pyGenericServices=Boolean(e.pyGenericServices)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.ccEnableArenas&&(t.ccEnableArenas=Boolean(e.ccEnableArenas)),null!=e.objcClassPrefix&&(t.objcClassPrefix=String(e.objcClassPrefix)),null!=e.csharpNamespace&&(t.csharpNamespace=String(e.csharpNamespace)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n){if("object"!=typeof e.uninterpretedOption[n])throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected");t.uninterpretedOption[n]=s.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.javaPackage="",n.javaOuterClassname="",n.optimizeFor=t.enums===String?"SPEED":1,n.javaMultipleFiles=!1,n.goPackage="",n.ccGenericServices=!1,n.javaGenericServices=!1,n.pyGenericServices=!1,n.javaGenerateEqualsAndHash=!1,n.deprecated=!1,n.javaStringCheckUtf8=!1,n.ccEnableArenas=!1,n.objcClassPrefix="",n.csharpNamespace=""),null!=e.javaPackage&&e.hasOwnProperty("javaPackage")&&(n.javaPackage=e.javaPackage),null!=e.javaOuterClassname&&e.hasOwnProperty("javaOuterClassname")&&(n.javaOuterClassname=e.javaOuterClassname),null!=e.optimizeFor&&e.hasOwnProperty("optimizeFor")&&(n.optimizeFor=t.enums===String?s.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor]:e.optimizeFor),null!=e.javaMultipleFiles&&e.hasOwnProperty("javaMultipleFiles")&&(n.javaMultipleFiles=e.javaMultipleFiles),null!=e.goPackage&&e.hasOwnProperty("goPackage")&&(n.goPackage=e.goPackage),null!=e.ccGenericServices&&e.hasOwnProperty("ccGenericServices")&&(n.ccGenericServices=e.ccGenericServices),null!=e.javaGenericServices&&e.hasOwnProperty("javaGenericServices")&&(n.javaGenericServices=e.javaGenericServices),null!=e.pyGenericServices&&e.hasOwnProperty("pyGenericServices")&&(n.pyGenericServices=e.pyGenericServices),null!=e.javaGenerateEqualsAndHash&&e.hasOwnProperty("javaGenerateEqualsAndHash")&&(n.javaGenerateEqualsAndHash=e.javaGenerateEqualsAndHash),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(n.deprecated=e.deprecated),null!=e.javaStringCheckUtf8&&e.hasOwnProperty("javaStringCheckUtf8")&&(n.javaStringCheckUtf8=e.javaStringCheckUtf8),null!=e.ccEnableArenas&&e.hasOwnProperty("ccEnableArenas")&&(n.ccEnableArenas=e.ccEnableArenas),null!=e.objcClassPrefix&&e.hasOwnProperty("objcClassPrefix")&&(n.objcClassPrefix=e.objcClassPrefix),null!=e.csharpNamespace&&e.hasOwnProperty("csharpNamespace")&&(n.csharpNamespace=e.csharpNamespace),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=s.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.OptimizeMode=function(){const e={},t=Object.create(e);return t[e[1]="SPEED"]=1,t[e[2]="CODE_SIZE"]=2,t[e[3]="LITE_RUNTIME"]=3,t}(),e}(),e.MessageOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.messageSetWireFormat=!1,e.prototype.noStandardDescriptorAccessor=!1,e.prototype.deprecated=!1,e.prototype.mapEntry=!1,e.prototype.uninterpretedOption=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.messageSetWireFormat&&Object.hasOwnProperty.call(e,"messageSetWireFormat")&&t.uint32(8).bool(e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&Object.hasOwnProperty.call(e,"noStandardDescriptorAccessor")&&t.uint32(16).bool(e.noStandardDescriptorAccessor),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.mapEntry&&Object.hasOwnProperty.call(e,"mapEntry")&&t.uint32(56).bool(e.mapEntry),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n<e.uninterpretedOption.length;++n)s.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.MessageOptions;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.messageSetWireFormat=e.bool();break;case 2:r.noStandardDescriptorAccessor=e.bool();break;case 3:r.deprecated=e.bool();break;case 7:r.mapEntry=e.bool();break;case 999:r.uninterpretedOption&&r.uninterpretedOption.length||(r.uninterpretedOption=[]),r.uninterpretedOption.push(s.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.MessageOptions)return e;var t=new s.google.protobuf.MessageOptions;if(null!=e.messageSetWireFormat&&(t.messageSetWireFormat=Boolean(e.messageSetWireFormat)),null!=e.noStandardDescriptorAccessor&&(t.noStandardDescriptorAccessor=Boolean(e.noStandardDescriptorAccessor)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.mapEntry&&(t.mapEntry=Boolean(e.mapEntry)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n){if("object"!=typeof e.uninterpretedOption[n])throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected");t.uninterpretedOption[n]=s.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.messageSetWireFormat=!1,n.noStandardDescriptorAccessor=!1,n.deprecated=!1,n.mapEntry=!1),null!=e.messageSetWireFormat&&e.hasOwnProperty("messageSetWireFormat")&&(n.messageSetWireFormat=e.messageSetWireFormat),null!=e.noStandardDescriptorAccessor&&e.hasOwnProperty("noStandardDescriptorAccessor")&&(n.noStandardDescriptorAccessor=e.noStandardDescriptorAccessor),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(n.deprecated=e.deprecated),null!=e.mapEntry&&e.hasOwnProperty("mapEntry")&&(n.mapEntry=e.mapEntry),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=s.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.FieldOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.ctype=0,e.prototype.packed=!1,e.prototype.jstype=0,e.prototype.lazy=!1,e.prototype.deprecated=!1,e.prototype.weak=!1,e.prototype.uninterpretedOption=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.ctype&&Object.hasOwnProperty.call(e,"ctype")&&t.uint32(8).int32(e.ctype),null!=e.packed&&Object.hasOwnProperty.call(e,"packed")&&t.uint32(16).bool(e.packed),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.lazy&&Object.hasOwnProperty.call(e,"lazy")&&t.uint32(40).bool(e.lazy),null!=e.jstype&&Object.hasOwnProperty.call(e,"jstype")&&t.uint32(48).int32(e.jstype),null!=e.weak&&Object.hasOwnProperty.call(e,"weak")&&t.uint32(80).bool(e.weak),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n<e.uninterpretedOption.length;++n)s.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.FieldOptions;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.ctype=e.int32();break;case 2:r.packed=e.bool();break;case 6:r.jstype=e.int32();break;case 5:r.lazy=e.bool();break;case 3:r.deprecated=e.bool();break;case 10:r.weak=e.bool();break;case 999:r.uninterpretedOption&&r.uninterpretedOption.length||(r.uninterpretedOption=[]),r.uninterpretedOption.push(s.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.FieldOptions)return e;var t=new s.google.protobuf.FieldOptions;switch(e.ctype){case"STRING":case 0:t.ctype=0;break;case"CORD":case 1:t.ctype=1;break;case"STRING_PIECE":case 2:t.ctype=2}switch(null!=e.packed&&(t.packed=Boolean(e.packed)),e.jstype){case"JS_NORMAL":case 0:t.jstype=0;break;case"JS_STRING":case 1:t.jstype=1;break;case"JS_NUMBER":case 2:t.jstype=2}if(null!=e.lazy&&(t.lazy=Boolean(e.lazy)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),null!=e.weak&&(t.weak=Boolean(e.weak)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n){if("object"!=typeof e.uninterpretedOption[n])throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected");t.uninterpretedOption[n]=s.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.ctype=t.enums===String?"STRING":0,n.packed=!1,n.deprecated=!1,n.lazy=!1,n.jstype=t.enums===String?"JS_NORMAL":0,n.weak=!1),null!=e.ctype&&e.hasOwnProperty("ctype")&&(n.ctype=t.enums===String?s.google.protobuf.FieldOptions.CType[e.ctype]:e.ctype),null!=e.packed&&e.hasOwnProperty("packed")&&(n.packed=e.packed),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(n.deprecated=e.deprecated),null!=e.lazy&&e.hasOwnProperty("lazy")&&(n.lazy=e.lazy),null!=e.jstype&&e.hasOwnProperty("jstype")&&(n.jstype=t.enums===String?s.google.protobuf.FieldOptions.JSType[e.jstype]:e.jstype),null!=e.weak&&e.hasOwnProperty("weak")&&(n.weak=e.weak),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=s.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.CType=function(){const e={},t=Object.create(e);return t[e[0]="STRING"]=0,t[e[1]="CORD"]=1,t[e[2]="STRING_PIECE"]=2,t}(),e.JSType=function(){const e={},t=Object.create(e);return t[e[0]="JS_NORMAL"]=0,t[e[1]="JS_STRING"]=1,t[e[2]="JS_NUMBER"]=2,t}(),e}(),e.OneofOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.uninterpretedOption=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n<e.uninterpretedOption.length;++n)s.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.OneofOptions;e.pos<n;){var o=e.uint32();switch(o>>>3){case 999:r.uninterpretedOption&&r.uninterpretedOption.length||(r.uninterpretedOption=[]),r.uninterpretedOption.push(s.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.OneofOptions)return e;var t=new s.google.protobuf.OneofOptions;if(e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n){if("object"!=typeof e.uninterpretedOption[n])throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected");t.uninterpretedOption[n]=s.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=s.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.EnumOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.allowAlias=!1,e.prototype.deprecated=!1,e.prototype.uninterpretedOption=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.allowAlias&&Object.hasOwnProperty.call(e,"allowAlias")&&t.uint32(16).bool(e.allowAlias),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(24).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n<e.uninterpretedOption.length;++n)s.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.EnumOptions;e.pos<n;){var o=e.uint32();switch(o>>>3){case 2:r.allowAlias=e.bool();break;case 3:r.deprecated=e.bool();break;case 999:r.uninterpretedOption&&r.uninterpretedOption.length||(r.uninterpretedOption=[]),r.uninterpretedOption.push(s.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.EnumOptions)return e;var t=new s.google.protobuf.EnumOptions;if(null!=e.allowAlias&&(t.allowAlias=Boolean(e.allowAlias)),null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n){if("object"!=typeof e.uninterpretedOption[n])throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected");t.uninterpretedOption[n]=s.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.allowAlias=!1,n.deprecated=!1),null!=e.allowAlias&&e.hasOwnProperty("allowAlias")&&(n.allowAlias=e.allowAlias),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(n.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=s.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.EnumValueOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.deprecated=!1,e.prototype.uninterpretedOption=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(8).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n<e.uninterpretedOption.length;++n)s.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.EnumValueOptions;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.deprecated=e.bool();break;case 999:r.uninterpretedOption&&r.uninterpretedOption.length||(r.uninterpretedOption=[]),r.uninterpretedOption.push(s.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.EnumValueOptions)return e;var t=new s.google.protobuf.EnumValueOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n){if("object"!=typeof e.uninterpretedOption[n])throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected");t.uninterpretedOption[n]=s.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.deprecated=!1),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(n.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=s.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ServiceOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.deprecated=!1,e.prototype.uninterpretedOption=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n<e.uninterpretedOption.length;++n)s.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.ServiceOptions;e.pos<n;){var o=e.uint32();switch(o>>>3){case 33:r.deprecated=e.bool();break;case 999:r.uninterpretedOption&&r.uninterpretedOption.length||(r.uninterpretedOption=[]),r.uninterpretedOption.push(s.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.ServiceOptions)return e;var t=new s.google.protobuf.ServiceOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n){if("object"!=typeof e.uninterpretedOption[n])throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected");t.uninterpretedOption[n]=s.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.deprecated=!1),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(n.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=s.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MethodOptions=function(){function e(e){if(this.uninterpretedOption=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.deprecated=!1,e.prototype.uninterpretedOption=a.emptyArray,e.prototype[".google.api.http"]=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.deprecated&&Object.hasOwnProperty.call(e,"deprecated")&&t.uint32(264).bool(e.deprecated),null!=e.uninterpretedOption&&e.uninterpretedOption.length)for(var n=0;n<e.uninterpretedOption.length;++n)s.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n],t.uint32(7994).fork()).ldelim();return null!=e[".google.api.http"]&&Object.hasOwnProperty.call(e,".google.api.http")&&s.google.api.HttpRule.encode(e[".google.api.http"],t.uint32(578365826).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.MethodOptions;e.pos<n;){var o=e.uint32();switch(o>>>3){case 33:r.deprecated=e.bool();break;case 999:r.uninterpretedOption&&r.uninterpretedOption.length||(r.uninterpretedOption=[]),r.uninterpretedOption.push(s.google.protobuf.UninterpretedOption.decode(e,e.uint32()));break;case 72295728:r[".google.api.http"]=s.google.api.HttpRule.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.MethodOptions)return e;var t=new s.google.protobuf.MethodOptions;if(null!=e.deprecated&&(t.deprecated=Boolean(e.deprecated)),e.uninterpretedOption){if(!Array.isArray(e.uninterpretedOption))throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected");t.uninterpretedOption=[];for(var n=0;n<e.uninterpretedOption.length;++n){if("object"!=typeof e.uninterpretedOption[n])throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected");t.uninterpretedOption[n]=s.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n])}}if(null!=e[".google.api.http"]){if("object"!=typeof e[".google.api.http"])throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected");t[".google.api.http"]=s.google.api.HttpRule.fromObject(e[".google.api.http"])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.uninterpretedOption=[]),t.defaults&&(n.deprecated=!1,n[".google.api.http"]=null),null!=e.deprecated&&e.hasOwnProperty("deprecated")&&(n.deprecated=e.deprecated),e.uninterpretedOption&&e.uninterpretedOption.length){n.uninterpretedOption=[];for(var r=0;r<e.uninterpretedOption.length;++r)n.uninterpretedOption[r]=s.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r],t)}return null!=e[".google.api.http"]&&e.hasOwnProperty(".google.api.http")&&(n[".google.api.http"]=s.google.api.HttpRule.toObject(e[".google.api.http"],t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.UninterpretedOption=function(){function e(e){if(this.name=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name=a.emptyArray,e.prototype.identifierValue="",e.prototype.positiveIntValue=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.negativeIntValue=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.doubleValue=0,e.prototype.stringValue=a.newBuffer([]),e.prototype.aggregateValue="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.name&&e.name.length)for(var n=0;n<e.name.length;++n)s.google.protobuf.UninterpretedOption.NamePart.encode(e.name[n],t.uint32(18).fork()).ldelim();return null!=e.identifierValue&&Object.hasOwnProperty.call(e,"identifierValue")&&t.uint32(26).string(e.identifierValue),null!=e.positiveIntValue&&Object.hasOwnProperty.call(e,"positiveIntValue")&&t.uint32(32).uint64(e.positiveIntValue),null!=e.negativeIntValue&&Object.hasOwnProperty.call(e,"negativeIntValue")&&t.uint32(40).int64(e.negativeIntValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(49).double(e.doubleValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(58).bytes(e.stringValue),null!=e.aggregateValue&&Object.hasOwnProperty.call(e,"aggregateValue")&&t.uint32(66).string(e.aggregateValue),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.UninterpretedOption;e.pos<n;){var o=e.uint32();switch(o>>>3){case 2:r.name&&r.name.length||(r.name=[]),r.name.push(s.google.protobuf.UninterpretedOption.NamePart.decode(e,e.uint32()));break;case 3:r.identifierValue=e.string();break;case 4:r.positiveIntValue=e.uint64();break;case 5:r.negativeIntValue=e.int64();break;case 6:r.doubleValue=e.double();break;case 7:r.stringValue=e.bytes();break;case 8:r.aggregateValue=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.UninterpretedOption)return e;var t=new s.google.protobuf.UninterpretedOption;if(e.name){if(!Array.isArray(e.name))throw TypeError(".google.protobuf.UninterpretedOption.name: array expected");t.name=[];for(var n=0;n<e.name.length;++n){if("object"!=typeof e.name[n])throw TypeError(".google.protobuf.UninterpretedOption.name: object expected");t.name[n]=s.google.protobuf.UninterpretedOption.NamePart.fromObject(e.name[n])}}return null!=e.identifierValue&&(t.identifierValue=String(e.identifierValue)),null!=e.positiveIntValue&&(a.Long?(t.positiveIntValue=a.Long.fromValue(e.positiveIntValue)).unsigned=!0:"string"==typeof e.positiveIntValue?t.positiveIntValue=parseInt(e.positiveIntValue,10):"number"==typeof e.positiveIntValue?t.positiveIntValue=e.positiveIntValue:"object"==typeof e.positiveIntValue&&(t.positiveIntValue=new a.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0))),null!=e.negativeIntValue&&(a.Long?(t.negativeIntValue=a.Long.fromValue(e.negativeIntValue)).unsigned=!1:"string"==typeof e.negativeIntValue?t.negativeIntValue=parseInt(e.negativeIntValue,10):"number"==typeof e.negativeIntValue?t.negativeIntValue=e.negativeIntValue:"object"==typeof e.negativeIntValue&&(t.negativeIntValue=new a.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber())),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.stringValue&&("string"==typeof e.stringValue?a.base64.decode(e.stringValue,t.stringValue=a.newBuffer(a.base64.length(e.stringValue)),0):e.stringValue.length&&(t.stringValue=e.stringValue)),null!=e.aggregateValue&&(t.aggregateValue=String(e.aggregateValue)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.name=[]),t.defaults){if(n.identifierValue="",a.Long){var r=new a.Long(0,0,!0);n.positiveIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.positiveIntValue=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!1);n.negativeIntValue=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.negativeIntValue=t.longs===String?"0":0;n.doubleValue=0,t.bytes===String?n.stringValue="":(n.stringValue=[],t.bytes!==Array&&(n.stringValue=a.newBuffer(n.stringValue))),n.aggregateValue=""}if(e.name&&e.name.length){n.name=[];for(var i=0;i<e.name.length;++i)n.name[i]=s.google.protobuf.UninterpretedOption.NamePart.toObject(e.name[i],t)}return null!=e.identifierValue&&e.hasOwnProperty("identifierValue")&&(n.identifierValue=e.identifierValue),null!=e.positiveIntValue&&e.hasOwnProperty("positiveIntValue")&&("number"==typeof e.positiveIntValue?n.positiveIntValue=t.longs===String?String(e.positiveIntValue):e.positiveIntValue:n.positiveIntValue=t.longs===String?a.Long.prototype.toString.call(e.positiveIntValue):t.longs===Number?new a.LongBits(e.positiveIntValue.low>>>0,e.positiveIntValue.high>>>0).toNumber(!0):e.positiveIntValue),null!=e.negativeIntValue&&e.hasOwnProperty("negativeIntValue")&&("number"==typeof e.negativeIntValue?n.negativeIntValue=t.longs===String?String(e.negativeIntValue):e.negativeIntValue:n.negativeIntValue=t.longs===String?a.Long.prototype.toString.call(e.negativeIntValue):t.longs===Number?new a.LongBits(e.negativeIntValue.low>>>0,e.negativeIntValue.high>>>0).toNumber():e.negativeIntValue),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(n.stringValue=t.bytes===String?a.base64.encode(e.stringValue,0,e.stringValue.length):t.bytes===Array?Array.prototype.slice.call(e.stringValue):e.stringValue),null!=e.aggregateValue&&e.hasOwnProperty("aggregateValue")&&(n.aggregateValue=e.aggregateValue),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.NamePart=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.namePart="",e.prototype.isExtension=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t.uint32(10).string(e.namePart),t.uint32(16).bool(e.isExtension),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.UninterpretedOption.NamePart;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.namePart=e.string();break;case 2:r.isExtension=e.bool();break;default:e.skipType(7&o)}}if(!r.hasOwnProperty("namePart"))throw a.ProtocolError("missing required 'namePart'",{instance:r});if(!r.hasOwnProperty("isExtension"))throw a.ProtocolError("missing required 'isExtension'",{instance:r});return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.UninterpretedOption.NamePart)return e;var t=new s.google.protobuf.UninterpretedOption.NamePart;return null!=e.namePart&&(t.namePart=String(e.namePart)),null!=e.isExtension&&(t.isExtension=Boolean(e.isExtension)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.namePart="",n.isExtension=!1),null!=e.namePart&&e.hasOwnProperty("namePart")&&(n.namePart=e.namePart),null!=e.isExtension&&e.hasOwnProperty("isExtension")&&(n.isExtension=e.isExtension),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.SourceCodeInfo=function(){function e(e){if(this.location=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.location=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.location&&e.location.length)for(var n=0;n<e.location.length;++n)s.google.protobuf.SourceCodeInfo.Location.encode(e.location[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.SourceCodeInfo;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.location&&r.location.length||(r.location=[]),r.location.push(s.google.protobuf.SourceCodeInfo.Location.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.SourceCodeInfo)return e;var t=new s.google.protobuf.SourceCodeInfo;if(e.location){if(!Array.isArray(e.location))throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected");t.location=[];for(var n=0;n<e.location.length;++n){if("object"!=typeof e.location[n])throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected");t.location[n]=s.google.protobuf.SourceCodeInfo.Location.fromObject(e.location[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.location=[]),e.location&&e.location.length){n.location=[];for(var r=0;r<e.location.length;++r)n.location[r]=s.google.protobuf.SourceCodeInfo.Location.toObject(e.location[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Location=function(){function e(e){if(this.path=[],this.span=[],this.leadingDetachedComments=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.path=a.emptyArray,e.prototype.span=a.emptyArray,e.prototype.leadingComments="",e.prototype.trailingComments="",e.prototype.leadingDetachedComments=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.path&&e.path.length){t.uint32(10).fork();for(var n=0;n<e.path.length;++n)t.int32(e.path[n]);t.ldelim()}if(null!=e.span&&e.span.length){t.uint32(18).fork();for(n=0;n<e.span.length;++n)t.int32(e.span[n]);t.ldelim()}if(null!=e.leadingComments&&Object.hasOwnProperty.call(e,"leadingComments")&&t.uint32(26).string(e.leadingComments),null!=e.trailingComments&&Object.hasOwnProperty.call(e,"trailingComments")&&t.uint32(34).string(e.trailingComments),null!=e.leadingDetachedComments&&e.leadingDetachedComments.length)for(n=0;n<e.leadingDetachedComments.length;++n)t.uint32(50).string(e.leadingDetachedComments[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.SourceCodeInfo.Location;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:if(r.path&&r.path.length||(r.path=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)r.path.push(e.int32());else r.path.push(e.int32());break;case 2:if(r.span&&r.span.length||(r.span=[]),2==(7&o))for(a=e.uint32()+e.pos;e.pos<a;)r.span.push(e.int32());else r.span.push(e.int32());break;case 3:r.leadingComments=e.string();break;case 4:r.trailingComments=e.string();break;case 6:r.leadingDetachedComments&&r.leadingDetachedComments.length||(r.leadingDetachedComments=[]),r.leadingDetachedComments.push(e.string());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.SourceCodeInfo.Location)return e;var t=new s.google.protobuf.SourceCodeInfo.Location;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected");t.path=[];for(var n=0;n<e.path.length;++n)t.path[n]=0|e.path[n]}if(e.span){if(!Array.isArray(e.span))throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected");t.span=[];for(n=0;n<e.span.length;++n)t.span[n]=0|e.span[n]}if(null!=e.leadingComments&&(t.leadingComments=String(e.leadingComments)),null!=e.trailingComments&&(t.trailingComments=String(e.trailingComments)),e.leadingDetachedComments){if(!Array.isArray(e.leadingDetachedComments))throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected");t.leadingDetachedComments=[];for(n=0;n<e.leadingDetachedComments.length;++n)t.leadingDetachedComments[n]=String(e.leadingDetachedComments[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.path=[],n.span=[],n.leadingDetachedComments=[]),t.defaults&&(n.leadingComments="",n.trailingComments=""),e.path&&e.path.length){n.path=[];for(var r=0;r<e.path.length;++r)n.path[r]=e.path[r]}if(e.span&&e.span.length){n.span=[];for(r=0;r<e.span.length;++r)n.span[r]=e.span[r]}if(null!=e.leadingComments&&e.hasOwnProperty("leadingComments")&&(n.leadingComments=e.leadingComments),null!=e.trailingComments&&e.hasOwnProperty("trailingComments")&&(n.trailingComments=e.trailingComments),e.leadingDetachedComments&&e.leadingDetachedComments.length){n.leadingDetachedComments=[];for(r=0;r<e.leadingDetachedComments.length;++r)n.leadingDetachedComments[r]=e.leadingDetachedComments[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.GeneratedCodeInfo=function(){function e(e){if(this.annotation=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.annotation=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.annotation&&e.annotation.length)for(var n=0;n<e.annotation.length;++n)s.google.protobuf.GeneratedCodeInfo.Annotation.encode(e.annotation[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.GeneratedCodeInfo;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.annotation&&r.annotation.length||(r.annotation=[]),r.annotation.push(s.google.protobuf.GeneratedCodeInfo.Annotation.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.GeneratedCodeInfo)return e;var t=new s.google.protobuf.GeneratedCodeInfo;if(e.annotation){if(!Array.isArray(e.annotation))throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected");t.annotation=[];for(var n=0;n<e.annotation.length;++n){if("object"!=typeof e.annotation[n])throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected");t.annotation[n]=s.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(e.annotation[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.annotation=[]),e.annotation&&e.annotation.length){n.annotation=[];for(var r=0;r<e.annotation.length;++r)n.annotation[r]=s.google.protobuf.GeneratedCodeInfo.Annotation.toObject(e.annotation[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Annotation=function(){function e(e){if(this.path=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.path=a.emptyArray,e.prototype.sourceFile="",e.prototype.begin=0,e.prototype.end=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.path&&e.path.length){t.uint32(10).fork();for(var n=0;n<e.path.length;++n)t.int32(e.path[n]);t.ldelim()}return null!=e.sourceFile&&Object.hasOwnProperty.call(e,"sourceFile")&&t.uint32(18).string(e.sourceFile),null!=e.begin&&Object.hasOwnProperty.call(e,"begin")&&t.uint32(24).int32(e.begin),null!=e.end&&Object.hasOwnProperty.call(e,"end")&&t.uint32(32).int32(e.end),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.GeneratedCodeInfo.Annotation;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:if(r.path&&r.path.length||(r.path=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)r.path.push(e.int32());else r.path.push(e.int32());break;case 2:r.sourceFile=e.string();break;case 3:r.begin=e.int32();break;case 4:r.end=e.int32();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.GeneratedCodeInfo.Annotation)return e;var t=new s.google.protobuf.GeneratedCodeInfo.Annotation;if(e.path){if(!Array.isArray(e.path))throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected");t.path=[];for(var n=0;n<e.path.length;++n)t.path[n]=0|e.path[n]}return null!=e.sourceFile&&(t.sourceFile=String(e.sourceFile)),null!=e.begin&&(t.begin=0|e.begin),null!=e.end&&(t.end=0|e.end),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.path=[]),t.defaults&&(n.sourceFile="",n.begin=0,n.end=0),e.path&&e.path.length){n.path=[];for(var r=0;r<e.path.length;++r)n.path[r]=e.path[r]}return null!=e.sourceFile&&e.hasOwnProperty("sourceFile")&&(n.sourceFile=e.sourceFile),null!=e.begin&&e.hasOwnProperty("begin")&&(n.begin=e.begin),null!=e.end&&e.hasOwnProperty("end")&&(n.end=e.end),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.Duration=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seconds=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.Duration;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.seconds=e.int64();break;case 2:r.nanos=e.int32();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.Duration)return e;var t=new s.google.protobuf.Duration;return null!=e.seconds&&(a.Long?(t.seconds=a.Long.fromValue(e.seconds)).unsigned=!1:"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new a.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.seconds=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.seconds=t.longs===String?"0":0;n.nanos=0}return null!=e.seconds&&e.hasOwnProperty("seconds")&&("number"==typeof e.seconds?n.seconds=t.longs===String?String(e.seconds):e.seconds:n.seconds=t.longs===String?a.Long.prototype.toString.call(e.seconds):t.longs===Number?new a.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&e.hasOwnProperty("nanos")&&(n.nanos=e.nanos),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Timestamp=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seconds=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.protobuf.Timestamp;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.seconds=e.int64();break;case 2:r.nanos=e.int32();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.protobuf.Timestamp)return e;var t=new s.google.protobuf.Timestamp;return null!=e.seconds&&(a.Long?(t.seconds=a.Long.fromValue(e.seconds)).unsigned=!1:"string"==typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"==typeof e.seconds?t.seconds=e.seconds:"object"==typeof e.seconds&&(t.seconds=new a.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.seconds=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.seconds=t.longs===String?"0":0;n.nanos=0}return null!=e.seconds&&e.hasOwnProperty("seconds")&&("number"==typeof e.seconds?n.seconds=t.longs===String?String(e.seconds):e.seconds:n.seconds=t.longs===String?a.Long.prototype.toString.call(e.seconds):t.longs===Number?new a.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&e.hasOwnProperty("nanos")&&(n.nanos=e.nanos),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.api=function(){const e={};return e.Http=function(){function e(e){if(this.rules=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.rules=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.rules&&e.rules.length)for(var n=0;n<e.rules.length;++n)s.google.api.HttpRule.encode(e.rules[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.api.Http;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.rules&&r.rules.length||(r.rules=[]),r.rules.push(s.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.api.Http)return e;var t=new s.google.api.Http;if(e.rules){if(!Array.isArray(e.rules))throw TypeError(".google.api.Http.rules: array expected");t.rules=[];for(var n=0;n<e.rules.length;++n){if("object"!=typeof e.rules[n])throw TypeError(".google.api.Http.rules: object expected");t.rules[n]=s.google.api.HttpRule.fromObject(e.rules[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.rules=[]),e.rules&&e.rules.length){n.rules=[];for(var r=0;r<e.rules.length;++r)n.rules[r]=s.google.api.HttpRule.toObject(e.rules[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.HttpRule=function(){function e(e){if(this.additionalBindings=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.get="",e.prototype.put="",e.prototype.post="",e.prototype.delete="",e.prototype.patch="",e.prototype.custom=null,e.prototype.selector="",e.prototype.body="",e.prototype.additionalBindings=a.emptyArray,Object.defineProperty(e.prototype,"pattern",{get:a.oneOfGetter(t=["get","put","post","delete","patch","custom"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&t.uint32(10).string(e.selector),null!=e.get&&Object.hasOwnProperty.call(e,"get")&&t.uint32(18).string(e.get),null!=e.put&&Object.hasOwnProperty.call(e,"put")&&t.uint32(26).string(e.put),null!=e.post&&Object.hasOwnProperty.call(e,"post")&&t.uint32(34).string(e.post),null!=e.delete&&Object.hasOwnProperty.call(e,"delete")&&t.uint32(42).string(e.delete),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&t.uint32(50).string(e.patch),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(58).string(e.body),null!=e.custom&&Object.hasOwnProperty.call(e,"custom")&&s.google.api.CustomHttpPattern.encode(e.custom,t.uint32(66).fork()).ldelim(),null!=e.additionalBindings&&e.additionalBindings.length)for(var n=0;n<e.additionalBindings.length;++n)s.google.api.HttpRule.encode(e.additionalBindings[n],t.uint32(90).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.api.HttpRule;e.pos<n;){var o=e.uint32();switch(o>>>3){case 2:r.get=e.string();break;case 3:r.put=e.string();break;case 4:r.post=e.string();break;case 5:r.delete=e.string();break;case 6:r.patch=e.string();break;case 8:r.custom=s.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 1:r.selector=e.string();break;case 7:r.body=e.string();break;case 11:r.additionalBindings&&r.additionalBindings.length||(r.additionalBindings=[]),r.additionalBindings.push(s.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.api.HttpRule)return e;var t=new s.google.api.HttpRule;if(null!=e.get&&(t.get=String(e.get)),null!=e.put&&(t.put=String(e.put)),null!=e.post&&(t.post=String(e.post)),null!=e.delete&&(t.delete=String(e.delete)),null!=e.patch&&(t.patch=String(e.patch)),null!=e.custom){if("object"!=typeof e.custom)throw TypeError(".google.api.HttpRule.custom: object expected");t.custom=s.google.api.CustomHttpPattern.fromObject(e.custom)}if(null!=e.selector&&(t.selector=String(e.selector)),null!=e.body&&(t.body=String(e.body)),e.additionalBindings){if(!Array.isArray(e.additionalBindings))throw TypeError(".google.api.HttpRule.additionalBindings: array expected");t.additionalBindings=[];for(var n=0;n<e.additionalBindings.length;++n){if("object"!=typeof e.additionalBindings[n])throw TypeError(".google.api.HttpRule.additionalBindings: object expected");t.additionalBindings[n]=s.google.api.HttpRule.fromObject(e.additionalBindings[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.additionalBindings=[]),t.defaults&&(n.selector="",n.body=""),null!=e.selector&&e.hasOwnProperty("selector")&&(n.selector=e.selector),null!=e.get&&e.hasOwnProperty("get")&&(n.get=e.get,t.oneofs&&(n.pattern="get")),null!=e.put&&e.hasOwnProperty("put")&&(n.put=e.put,t.oneofs&&(n.pattern="put")),null!=e.post&&e.hasOwnProperty("post")&&(n.post=e.post,t.oneofs&&(n.pattern="post")),null!=e.delete&&e.hasOwnProperty("delete")&&(n.delete=e.delete,t.oneofs&&(n.pattern="delete")),null!=e.patch&&e.hasOwnProperty("patch")&&(n.patch=e.patch,t.oneofs&&(n.pattern="patch")),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.custom&&e.hasOwnProperty("custom")&&(n.custom=s.google.api.CustomHttpPattern.toObject(e.custom,t),t.oneofs&&(n.pattern="custom")),e.additionalBindings&&e.additionalBindings.length){n.additionalBindings=[];for(var r=0;r<e.additionalBindings.length;++r)n.additionalBindings[r]=s.google.api.HttpRule.toObject(e.additionalBindings[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.CustomHttpPattern=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.kind="",e.prototype.path="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&t.uint32(10).string(e.kind),null!=e.path&&Object.hasOwnProperty.call(e,"path")&&t.uint32(18).string(e.path),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.api.CustomHttpPattern;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.kind=e.string();break;case 2:r.path=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.google.api.CustomHttpPattern)return e;var t=new s.google.api.CustomHttpPattern;return null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e})(),t.ibc=s.ibc=(()=>{const e={};return e.core=function(){const e={};return e.channel=function(){const e={};return e.v1=function(){const e={};return e.Channel=function(){function e(e){if(this.connectionHops=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.state=0,e.prototype.ordering=0,e.prototype.counterparty=null,e.prototype.connectionHops=a.emptyArray,e.prototype.version="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(8).int32(e.state),null!=e.ordering&&Object.hasOwnProperty.call(e,"ordering")&&t.uint32(16).int32(e.ordering),null!=e.counterparty&&Object.hasOwnProperty.call(e,"counterparty")&&s.ibc.core.channel.v1.Counterparty.encode(e.counterparty,t.uint32(26).fork()).ldelim(),null!=e.connectionHops&&e.connectionHops.length)for(var n=0;n<e.connectionHops.length;++n)t.uint32(34).string(e.connectionHops[n]);return null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(42).string(e.version),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.Channel;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.state=e.int32();break;case 2:r.ordering=e.int32();break;case 3:r.counterparty=s.ibc.core.channel.v1.Counterparty.decode(e,e.uint32());break;case 4:r.connectionHops&&r.connectionHops.length||(r.connectionHops=[]),r.connectionHops.push(e.string());break;case 5:r.version=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.Channel)return e;var t=new s.ibc.core.channel.v1.Channel;switch(e.state){case"STATE_UNINITIALIZED_UNSPECIFIED":case 0:t.state=0;break;case"STATE_INIT":case 1:t.state=1;break;case"STATE_TRYOPEN":case 2:t.state=2;break;case"STATE_OPEN":case 3:t.state=3;break;case"STATE_CLOSED":case 4:t.state=4}switch(e.ordering){case"ORDER_NONE_UNSPECIFIED":case 0:t.ordering=0;break;case"ORDER_UNORDERED":case 1:t.ordering=1;break;case"ORDER_ORDERED":case 2:t.ordering=2}if(null!=e.counterparty){if("object"!=typeof e.counterparty)throw TypeError(".ibc.core.channel.v1.Channel.counterparty: object expected");t.counterparty=s.ibc.core.channel.v1.Counterparty.fromObject(e.counterparty)}if(e.connectionHops){if(!Array.isArray(e.connectionHops))throw TypeError(".ibc.core.channel.v1.Channel.connectionHops: array expected");t.connectionHops=[];for(var n=0;n<e.connectionHops.length;++n)t.connectionHops[n]=String(e.connectionHops[n])}return null!=e.version&&(t.version=String(e.version)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.connectionHops=[]),t.defaults&&(n.state=t.enums===String?"STATE_UNINITIALIZED_UNSPECIFIED":0,n.ordering=t.enums===String?"ORDER_NONE_UNSPECIFIED":0,n.counterparty=null,n.version=""),null!=e.state&&e.hasOwnProperty("state")&&(n.state=t.enums===String?s.ibc.core.channel.v1.State[e.state]:e.state),null!=e.ordering&&e.hasOwnProperty("ordering")&&(n.ordering=t.enums===String?s.ibc.core.channel.v1.Order[e.ordering]:e.ordering),null!=e.counterparty&&e.hasOwnProperty("counterparty")&&(n.counterparty=s.ibc.core.channel.v1.Counterparty.toObject(e.counterparty,t)),e.connectionHops&&e.connectionHops.length){n.connectionHops=[];for(var r=0;r<e.connectionHops.length;++r)n.connectionHops[r]=e.connectionHops[r]}return null!=e.version&&e.hasOwnProperty("version")&&(n.version=e.version),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.IdentifiedChannel=function(){function e(e){if(this.connectionHops=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.state=0,e.prototype.ordering=0,e.prototype.counterparty=null,e.prototype.connectionHops=a.emptyArray,e.prototype.version="",e.prototype.portId="",e.prototype.channelId="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(8).int32(e.state),null!=e.ordering&&Object.hasOwnProperty.call(e,"ordering")&&t.uint32(16).int32(e.ordering),null!=e.counterparty&&Object.hasOwnProperty.call(e,"counterparty")&&s.ibc.core.channel.v1.Counterparty.encode(e.counterparty,t.uint32(26).fork()).ldelim(),null!=e.connectionHops&&e.connectionHops.length)for(var n=0;n<e.connectionHops.length;++n)t.uint32(34).string(e.connectionHops[n]);return null!=e.version&&Object.hasOwnProperty.call(e,"version")&&t.uint32(42).string(e.version),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(50).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(58).string(e.channelId),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.IdentifiedChannel;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.state=e.int32();break;case 2:r.ordering=e.int32();break;case 3:r.counterparty=s.ibc.core.channel.v1.Counterparty.decode(e,e.uint32());break;case 4:r.connectionHops&&r.connectionHops.length||(r.connectionHops=[]),r.connectionHops.push(e.string());break;case 5:r.version=e.string();break;case 6:r.portId=e.string();break;case 7:r.channelId=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.IdentifiedChannel)return e;var t=new s.ibc.core.channel.v1.IdentifiedChannel;switch(e.state){case"STATE_UNINITIALIZED_UNSPECIFIED":case 0:t.state=0;break;case"STATE_INIT":case 1:t.state=1;break;case"STATE_TRYOPEN":case 2:t.state=2;break;case"STATE_OPEN":case 3:t.state=3;break;case"STATE_CLOSED":case 4:t.state=4}switch(e.ordering){case"ORDER_NONE_UNSPECIFIED":case 0:t.ordering=0;break;case"ORDER_UNORDERED":case 1:t.ordering=1;break;case"ORDER_ORDERED":case 2:t.ordering=2}if(null!=e.counterparty){if("object"!=typeof e.counterparty)throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.counterparty: object expected");t.counterparty=s.ibc.core.channel.v1.Counterparty.fromObject(e.counterparty)}if(e.connectionHops){if(!Array.isArray(e.connectionHops))throw TypeError(".ibc.core.channel.v1.IdentifiedChannel.connectionHops: array expected");t.connectionHops=[];for(var n=0;n<e.connectionHops.length;++n)t.connectionHops[n]=String(e.connectionHops[n])}return null!=e.version&&(t.version=String(e.version)),null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.connectionHops=[]),t.defaults&&(n.state=t.enums===String?"STATE_UNINITIALIZED_UNSPECIFIED":0,n.ordering=t.enums===String?"ORDER_NONE_UNSPECIFIED":0,n.counterparty=null,n.version="",n.portId="",n.channelId=""),null!=e.state&&e.hasOwnProperty("state")&&(n.state=t.enums===String?s.ibc.core.channel.v1.State[e.state]:e.state),null!=e.ordering&&e.hasOwnProperty("ordering")&&(n.ordering=t.enums===String?s.ibc.core.channel.v1.Order[e.ordering]:e.ordering),null!=e.counterparty&&e.hasOwnProperty("counterparty")&&(n.counterparty=s.ibc.core.channel.v1.Counterparty.toObject(e.counterparty,t)),e.connectionHops&&e.connectionHops.length){n.connectionHops=[];for(var r=0;r<e.connectionHops.length;++r)n.connectionHops[r]=e.connectionHops[r]}return null!=e.version&&e.hasOwnProperty("version")&&(n.version=e.version),null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.State=function(){const e={},t=Object.create(e);return t[e[0]="STATE_UNINITIALIZED_UNSPECIFIED"]=0,t[e[1]="STATE_INIT"]=1,t[e[2]="STATE_TRYOPEN"]=2,t[e[3]="STATE_OPEN"]=3,t[e[4]="STATE_CLOSED"]=4,t}(),e.Order=function(){const e={},t=Object.create(e);return t[e[0]="ORDER_NONE_UNSPECIFIED"]=0,t[e[1]="ORDER_UNORDERED"]=1,t[e[2]="ORDER_ORDERED"]=2,t}(),e.Counterparty=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.Counterparty;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.Counterparty)return e;var t=new s.ibc.core.channel.v1.Counterparty;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.portId="",n.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Packet=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.sequence=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.sourcePort="",e.prototype.sourceChannel="",e.prototype.destinationPort="",e.prototype.destinationChannel="",e.prototype.data=a.newBuffer([]),e.prototype.timeoutHeight=null,e.prototype.timeoutTimestamp=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(8).uint64(e.sequence),null!=e.sourcePort&&Object.hasOwnProperty.call(e,"sourcePort")&&t.uint32(18).string(e.sourcePort),null!=e.sourceChannel&&Object.hasOwnProperty.call(e,"sourceChannel")&&t.uint32(26).string(e.sourceChannel),null!=e.destinationPort&&Object.hasOwnProperty.call(e,"destinationPort")&&t.uint32(34).string(e.destinationPort),null!=e.destinationChannel&&Object.hasOwnProperty.call(e,"destinationChannel")&&t.uint32(42).string(e.destinationChannel),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(50).bytes(e.data),null!=e.timeoutHeight&&Object.hasOwnProperty.call(e,"timeoutHeight")&&s.ibc.core.client.v1.Height.encode(e.timeoutHeight,t.uint32(58).fork()).ldelim(),null!=e.timeoutTimestamp&&Object.hasOwnProperty.call(e,"timeoutTimestamp")&&t.uint32(64).uint64(e.timeoutTimestamp),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.Packet;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.sequence=e.uint64();break;case 2:r.sourcePort=e.string();break;case 3:r.sourceChannel=e.string();break;case 4:r.destinationPort=e.string();break;case 5:r.destinationChannel=e.string();break;case 6:r.data=e.bytes();break;case 7:r.timeoutHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;case 8:r.timeoutTimestamp=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.Packet)return e;var t=new s.ibc.core.channel.v1.Packet;if(null!=e.sequence&&(a.Long?(t.sequence=a.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),null!=e.sourcePort&&(t.sourcePort=String(e.sourcePort)),null!=e.sourceChannel&&(t.sourceChannel=String(e.sourceChannel)),null!=e.destinationPort&&(t.destinationPort=String(e.destinationPort)),null!=e.destinationChannel&&(t.destinationChannel=String(e.destinationChannel)),null!=e.data&&("string"==typeof e.data?a.base64.decode(e.data,t.data=a.newBuffer(a.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.timeoutHeight){if("object"!=typeof e.timeoutHeight)throw TypeError(".ibc.core.channel.v1.Packet.timeoutHeight: object expected");t.timeoutHeight=s.ibc.core.client.v1.Height.fromObject(e.timeoutHeight)}return null!=e.timeoutTimestamp&&(a.Long?(t.timeoutTimestamp=a.Long.fromValue(e.timeoutTimestamp)).unsigned=!0:"string"==typeof e.timeoutTimestamp?t.timeoutTimestamp=parseInt(e.timeoutTimestamp,10):"number"==typeof e.timeoutTimestamp?t.timeoutTimestamp=e.timeoutTimestamp:"object"==typeof e.timeoutTimestamp&&(t.timeoutTimestamp=new a.LongBits(e.timeoutTimestamp.low>>>0,e.timeoutTimestamp.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!0);n.sequence=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.sequence=t.longs===String?"0":0;if(n.sourcePort="",n.sourceChannel="",n.destinationPort="",n.destinationChannel="",t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=a.newBuffer(n.data))),n.timeoutHeight=null,a.Long){r=new a.Long(0,0,!0);n.timeoutTimestamp=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.timeoutTimestamp=t.longs===String?"0":0}return null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?n.sequence=t.longs===String?String(e.sequence):e.sequence:n.sequence=t.longs===String?a.Long.prototype.toString.call(e.sequence):t.longs===Number?new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),null!=e.sourcePort&&e.hasOwnProperty("sourcePort")&&(n.sourcePort=e.sourcePort),null!=e.sourceChannel&&e.hasOwnProperty("sourceChannel")&&(n.sourceChannel=e.sourceChannel),null!=e.destinationPort&&e.hasOwnProperty("destinationPort")&&(n.destinationPort=e.destinationPort),null!=e.destinationChannel&&e.hasOwnProperty("destinationChannel")&&(n.destinationChannel=e.destinationChannel),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?a.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.timeoutHeight&&e.hasOwnProperty("timeoutHeight")&&(n.timeoutHeight=s.ibc.core.client.v1.Height.toObject(e.timeoutHeight,t)),null!=e.timeoutTimestamp&&e.hasOwnProperty("timeoutTimestamp")&&("number"==typeof e.timeoutTimestamp?n.timeoutTimestamp=t.longs===String?String(e.timeoutTimestamp):e.timeoutTimestamp:n.timeoutTimestamp=t.longs===String?a.Long.prototype.toString.call(e.timeoutTimestamp):t.longs===Number?new a.LongBits(e.timeoutTimestamp.low>>>0,e.timeoutTimestamp.high>>>0).toNumber(!0):e.timeoutTimestamp),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.PacketState=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.sequence=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.data=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(34).bytes(e.data),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.PacketState;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;case 3:r.sequence=e.uint64();break;case 4:r.data=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.PacketState)return e;var t=new s.ibc.core.channel.v1.PacketState;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.sequence&&(a.Long?(t.sequence=a.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),null!=e.data&&("string"==typeof e.data?a.base64.decode(e.data,t.data=a.newBuffer(a.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(n.portId="",n.channelId="",a.Long){var r=new a.Long(0,0,!0);n.sequence=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.sequence=t.longs===String?"0":0;t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=a.newBuffer(n.data)))}return null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?n.sequence=t.longs===String?String(e.sequence):e.sequence:n.sequence=t.longs===String?a.Long.prototype.toString.call(e.sequence):t.longs===Number?new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?a.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Acknowledgement=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.result=a.newBuffer([]),e.prototype.error="",Object.defineProperty(e.prototype,"response",{get:a.oneOfGetter(t=["result","error"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.result&&Object.hasOwnProperty.call(e,"result")&&t.uint32(170).bytes(e.result),null!=e.error&&Object.hasOwnProperty.call(e,"error")&&t.uint32(178).string(e.error),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.Acknowledgement;e.pos<n;){var o=e.uint32();switch(o>>>3){case 21:r.result=e.bytes();break;case 22:r.error=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.Acknowledgement)return e;var t=new s.ibc.core.channel.v1.Acknowledgement;return null!=e.result&&("string"==typeof e.result?a.base64.decode(e.result,t.result=a.newBuffer(a.base64.length(e.result)),0):e.result.length&&(t.result=e.result)),null!=e.error&&(t.error=String(e.error)),t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.result&&e.hasOwnProperty("result")&&(n.result=t.bytes===String?a.base64.encode(e.result,0,e.result.length):t.bytes===Array?Array.prototype.slice.call(e.result):e.result,t.oneofs&&(n.response="result")),null!=e.error&&e.hasOwnProperty("error")&&(n.error=e.error,t.oneofs&&(n.response="error")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Query=function(){function e(e,t,n){r.rpc.Service.call(this,e,t,n)}return(e.prototype=Object.create(r.rpc.Service.prototype)).constructor=e,e.create=function(e,t,n){return new this(e,t,n)},Object.defineProperty(e.prototype.channel=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryChannelRequest,s.ibc.core.channel.v1.QueryChannelResponse,t,n)},"name",{value:"Channel"}),Object.defineProperty(e.prototype.channels=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryChannelsRequest,s.ibc.core.channel.v1.QueryChannelsResponse,t,n)},"name",{value:"Channels"}),Object.defineProperty(e.prototype.connectionChannels=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryConnectionChannelsRequest,s.ibc.core.channel.v1.QueryConnectionChannelsResponse,t,n)},"name",{value:"ConnectionChannels"}),Object.defineProperty(e.prototype.channelClientState=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryChannelClientStateRequest,s.ibc.core.channel.v1.QueryChannelClientStateResponse,t,n)},"name",{value:"ChannelClientState"}),Object.defineProperty(e.prototype.channelConsensusState=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryChannelConsensusStateRequest,s.ibc.core.channel.v1.QueryChannelConsensusStateResponse,t,n)},"name",{value:"ChannelConsensusState"}),Object.defineProperty(e.prototype.packetCommitment=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryPacketCommitmentRequest,s.ibc.core.channel.v1.QueryPacketCommitmentResponse,t,n)},"name",{value:"PacketCommitment"}),Object.defineProperty(e.prototype.packetCommitments=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryPacketCommitmentsRequest,s.ibc.core.channel.v1.QueryPacketCommitmentsResponse,t,n)},"name",{value:"PacketCommitments"}),Object.defineProperty(e.prototype.packetReceipt=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryPacketReceiptRequest,s.ibc.core.channel.v1.QueryPacketReceiptResponse,t,n)},"name",{value:"PacketReceipt"}),Object.defineProperty(e.prototype.packetAcknowledgement=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryPacketAcknowledgementRequest,s.ibc.core.channel.v1.QueryPacketAcknowledgementResponse,t,n)},"name",{value:"PacketAcknowledgement"}),Object.defineProperty(e.prototype.packetAcknowledgements=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest,s.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse,t,n)},"name",{value:"PacketAcknowledgements"}),Object.defineProperty(e.prototype.unreceivedPackets=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryUnreceivedPacketsRequest,s.ibc.core.channel.v1.QueryUnreceivedPacketsResponse,t,n)},"name",{value:"UnreceivedPackets"}),Object.defineProperty(e.prototype.unreceivedAcks=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryUnreceivedAcksRequest,s.ibc.core.channel.v1.QueryUnreceivedAcksResponse,t,n)},"name",{value:"UnreceivedAcks"}),Object.defineProperty(e.prototype.nextSequenceReceive=function e(t,n){return this.rpcCall(e,s.ibc.core.channel.v1.QueryNextSequenceReceiveRequest,s.ibc.core.channel.v1.QueryNextSequenceReceiveResponse,t,n)},"name",{value:"NextSequenceReceive"}),e}(),e.QueryChannelRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryChannelRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryChannelRequest)return e;var t=new s.ibc.core.channel.v1.QueryChannelRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.portId="",n.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryChannelResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.channel=null,e.prototype.proof=a.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.channel&&Object.hasOwnProperty.call(e,"channel")&&s.ibc.core.channel.v1.Channel.encode(e.channel,t.uint32(10).fork()).ldelim(),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&s.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryChannelResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.channel=s.ibc.core.channel.v1.Channel.decode(e,e.uint32());break;case 2:r.proof=e.bytes();break;case 3:r.proofHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryChannelResponse)return e;var t=new s.ibc.core.channel.v1.QueryChannelResponse;if(null!=e.channel){if("object"!=typeof e.channel)throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.channel: object expected");t.channel=s.ibc.core.channel.v1.Channel.fromObject(e.channel)}if(null!=e.proof&&("string"==typeof e.proof?a.base64.decode(e.proof,t.proof=a.newBuffer(a.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryChannelResponse.proofHeight: object expected");t.proofHeight=s.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.channel=null,t.bytes===String?n.proof="":(n.proof=[],t.bytes!==Array&&(n.proof=a.newBuffer(n.proof))),n.proofHeight=null),null!=e.channel&&e.hasOwnProperty("channel")&&(n.channel=s.ibc.core.channel.v1.Channel.toObject(e.channel,t)),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=t.bytes===String?a.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(n.proofHeight=s.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryChannelsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryChannelsRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.pagination=s.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryChannelsRequest)return e;var t=new s.ibc.core.channel.v1.QueryChannelsRequest;if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryChannelsRequest.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.pagination=null),null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryChannelsResponse=function(){function e(e){if(this.channels=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.channels=a.emptyArray,e.prototype.pagination=null,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.channels&&e.channels.length)for(var n=0;n<e.channels.length;++n)s.ibc.core.channel.v1.IdentifiedChannel.encode(e.channels[n],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&s.ibc.core.client.v1.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryChannelsResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.channels&&r.channels.length||(r.channels=[]),r.channels.push(s.ibc.core.channel.v1.IdentifiedChannel.decode(e,e.uint32()));break;case 2:r.pagination=s.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;case 3:r.height=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryChannelsResponse)return e;var t=new s.ibc.core.channel.v1.QueryChannelsResponse;if(e.channels){if(!Array.isArray(e.channels))throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: array expected");t.channels=[];for(var n=0;n<e.channels.length;++n){if("object"!=typeof e.channels[n])throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.channels: object expected");t.channels[n]=s.ibc.core.channel.v1.IdentifiedChannel.fromObject(e.channels[n])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryChannelsResponse.height: object expected");t.height=s.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.channels=[]),t.defaults&&(n.pagination=null,n.height=null),e.channels&&e.channels.length){n.channels=[];for(var r=0;r<e.channels.length;++r)n.channels[r]=s.ibc.core.channel.v1.IdentifiedChannel.toObject(e.channels[r],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),null!=e.height&&e.hasOwnProperty("height")&&(n.height=s.ibc.core.client.v1.Height.toObject(e.height,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryConnectionChannelsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.connection="",e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.connection&&Object.hasOwnProperty.call(e,"connection")&&t.uint32(10).string(e.connection),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryConnectionChannelsRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.connection=e.string();break;case 2:r.pagination=s.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryConnectionChannelsRequest)return e;var t=new s.ibc.core.channel.v1.QueryConnectionChannelsRequest;if(null!=e.connection&&(t.connection=String(e.connection)),null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsRequest.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.connection="",n.pagination=null),null!=e.connection&&e.hasOwnProperty("connection")&&(n.connection=e.connection),null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryConnectionChannelsResponse=function(){function e(e){if(this.channels=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.channels=a.emptyArray,e.prototype.pagination=null,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.channels&&e.channels.length)for(var n=0;n<e.channels.length;++n)s.ibc.core.channel.v1.IdentifiedChannel.encode(e.channels[n],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&s.ibc.core.client.v1.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryConnectionChannelsResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.channels&&r.channels.length||(r.channels=[]),r.channels.push(s.ibc.core.channel.v1.IdentifiedChannel.decode(e,e.uint32()));break;case 2:r.pagination=s.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;case 3:r.height=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryConnectionChannelsResponse)return e;var t=new s.ibc.core.channel.v1.QueryConnectionChannelsResponse;if(e.channels){if(!Array.isArray(e.channels))throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: array expected");t.channels=[];for(var n=0;n<e.channels.length;++n){if("object"!=typeof e.channels[n])throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.channels: object expected");t.channels[n]=s.ibc.core.channel.v1.IdentifiedChannel.fromObject(e.channels[n])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryConnectionChannelsResponse.height: object expected");t.height=s.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.channels=[]),t.defaults&&(n.pagination=null,n.height=null),e.channels&&e.channels.length){n.channels=[];for(var r=0;r<e.channels.length;++r)n.channels[r]=s.ibc.core.channel.v1.IdentifiedChannel.toObject(e.channels[r],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),null!=e.height&&e.hasOwnProperty("height")&&(n.height=s.ibc.core.client.v1.Height.toObject(e.height,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryChannelClientStateRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryChannelClientStateRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryChannelClientStateRequest)return e;var t=new s.ibc.core.channel.v1.QueryChannelClientStateRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.portId="",n.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryChannelClientStateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.identifiedClientState=null,e.prototype.proof=a.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.identifiedClientState&&Object.hasOwnProperty.call(e,"identifiedClientState")&&s.ibc.core.client.v1.IdentifiedClientState.encode(e.identifiedClientState,t.uint32(10).fork()).ldelim(),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&s.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryChannelClientStateResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.identifiedClientState=s.ibc.core.client.v1.IdentifiedClientState.decode(e,e.uint32());break;case 2:r.proof=e.bytes();break;case 3:r.proofHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryChannelClientStateResponse)return e;var t=new s.ibc.core.channel.v1.QueryChannelClientStateResponse;if(null!=e.identifiedClientState){if("object"!=typeof e.identifiedClientState)throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.identifiedClientState: object expected");t.identifiedClientState=s.ibc.core.client.v1.IdentifiedClientState.fromObject(e.identifiedClientState)}if(null!=e.proof&&("string"==typeof e.proof?a.base64.decode(e.proof,t.proof=a.newBuffer(a.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryChannelClientStateResponse.proofHeight: object expected");t.proofHeight=s.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.identifiedClientState=null,t.bytes===String?n.proof="":(n.proof=[],t.bytes!==Array&&(n.proof=a.newBuffer(n.proof))),n.proofHeight=null),null!=e.identifiedClientState&&e.hasOwnProperty("identifiedClientState")&&(n.identifiedClientState=s.ibc.core.client.v1.IdentifiedClientState.toObject(e.identifiedClientState,t)),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=t.bytes===String?a.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(n.proofHeight=s.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryChannelConsensusStateRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.versionNumber=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.versionHeight=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.versionNumber&&Object.hasOwnProperty.call(e,"versionNumber")&&t.uint32(24).uint64(e.versionNumber),null!=e.versionHeight&&Object.hasOwnProperty.call(e,"versionHeight")&&t.uint32(32).uint64(e.versionHeight),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryChannelConsensusStateRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;case 3:r.versionNumber=e.uint64();break;case 4:r.versionHeight=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryChannelConsensusStateRequest)return e;var t=new s.ibc.core.channel.v1.QueryChannelConsensusStateRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.versionNumber&&(a.Long?(t.versionNumber=a.Long.fromValue(e.versionNumber)).unsigned=!0:"string"==typeof e.versionNumber?t.versionNumber=parseInt(e.versionNumber,10):"number"==typeof e.versionNumber?t.versionNumber=e.versionNumber:"object"==typeof e.versionNumber&&(t.versionNumber=new a.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0))),null!=e.versionHeight&&(a.Long?(t.versionHeight=a.Long.fromValue(e.versionHeight)).unsigned=!0:"string"==typeof e.versionHeight?t.versionHeight=parseInt(e.versionHeight,10):"number"==typeof e.versionHeight?t.versionHeight=e.versionHeight:"object"==typeof e.versionHeight&&(t.versionHeight=new a.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(n.portId="",n.channelId="",a.Long){var r=new a.Long(0,0,!0);n.versionNumber=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.versionNumber=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!0);n.versionHeight=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.versionHeight=t.longs===String?"0":0}return null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),null!=e.versionNumber&&e.hasOwnProperty("versionNumber")&&("number"==typeof e.versionNumber?n.versionNumber=t.longs===String?String(e.versionNumber):e.versionNumber:n.versionNumber=t.longs===String?a.Long.prototype.toString.call(e.versionNumber):t.longs===Number?new a.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0):e.versionNumber),null!=e.versionHeight&&e.hasOwnProperty("versionHeight")&&("number"==typeof e.versionHeight?n.versionHeight=t.longs===String?String(e.versionHeight):e.versionHeight:n.versionHeight=t.longs===String?a.Long.prototype.toString.call(e.versionHeight):t.longs===Number?new a.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0):e.versionHeight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryChannelConsensusStateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.consensusState=null,e.prototype.clientId="",e.prototype.proof=a.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.consensusState&&Object.hasOwnProperty.call(e,"consensusState")&&s.google.protobuf.Any.encode(e.consensusState,t.uint32(10).fork()).ldelim(),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(18).string(e.clientId),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(26).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&s.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryChannelConsensusStateResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.consensusState=s.google.protobuf.Any.decode(e,e.uint32());break;case 2:r.clientId=e.string();break;case 3:r.proof=e.bytes();break;case 4:r.proofHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryChannelConsensusStateResponse)return e;var t=new s.ibc.core.channel.v1.QueryChannelConsensusStateResponse;if(null!=e.consensusState){if("object"!=typeof e.consensusState)throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.consensusState: object expected");t.consensusState=s.google.protobuf.Any.fromObject(e.consensusState)}if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.proof&&("string"==typeof e.proof?a.base64.decode(e.proof,t.proof=a.newBuffer(a.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryChannelConsensusStateResponse.proofHeight: object expected");t.proofHeight=s.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.consensusState=null,n.clientId="",t.bytes===String?n.proof="":(n.proof=[],t.bytes!==Array&&(n.proof=a.newBuffer(n.proof))),n.proofHeight=null),null!=e.consensusState&&e.hasOwnProperty("consensusState")&&(n.consensusState=s.google.protobuf.Any.toObject(e.consensusState,t)),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=t.bytes===String?a.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(n.proofHeight=s.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryPacketCommitmentRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.sequence=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryPacketCommitmentRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;case 3:r.sequence=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryPacketCommitmentRequest)return e;var t=new s.ibc.core.channel.v1.QueryPacketCommitmentRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.sequence&&(a.Long?(t.sequence=a.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(n.portId="",n.channelId="",a.Long){var r=new a.Long(0,0,!0);n.sequence=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.sequence=t.longs===String?"0":0;return null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?n.sequence=t.longs===String?String(e.sequence):e.sequence:n.sequence=t.longs===String?a.Long.prototype.toString.call(e.sequence):t.longs===Number?new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryPacketCommitmentResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.commitment=a.newBuffer([]),e.prototype.proof=a.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.commitment&&Object.hasOwnProperty.call(e,"commitment")&&t.uint32(10).bytes(e.commitment),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&s.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryPacketCommitmentResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.commitment=e.bytes();break;case 2:r.proof=e.bytes();break;case 3:r.proofHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryPacketCommitmentResponse)return e;var t=new s.ibc.core.channel.v1.QueryPacketCommitmentResponse;if(null!=e.commitment&&("string"==typeof e.commitment?a.base64.decode(e.commitment,t.commitment=a.newBuffer(a.base64.length(e.commitment)),0):e.commitment.length&&(t.commitment=e.commitment)),null!=e.proof&&("string"==typeof e.proof?a.base64.decode(e.proof,t.proof=a.newBuffer(a.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentResponse.proofHeight: object expected");t.proofHeight=s.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.commitment="":(n.commitment=[],t.bytes!==Array&&(n.commitment=a.newBuffer(n.commitment))),t.bytes===String?n.proof="":(n.proof=[],t.bytes!==Array&&(n.proof=a.newBuffer(n.proof))),n.proofHeight=null),null!=e.commitment&&e.hasOwnProperty("commitment")&&(n.commitment=t.bytes===String?a.base64.encode(e.commitment,0,e.commitment.length):t.bytes===Array?Array.prototype.slice.call(e.commitment):e.commitment),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=t.bytes===String?a.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(n.proofHeight=s.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryPacketCommitmentsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryPacketCommitmentsRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;case 3:r.pagination=s.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryPacketCommitmentsRequest)return e;var t=new s.ibc.core.channel.v1.QueryPacketCommitmentsRequest;if(null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsRequest.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.portId="",n.channelId="",n.pagination=null),null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryPacketCommitmentsResponse=function(){function e(e){if(this.commitments=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.commitments=a.emptyArray,e.prototype.pagination=null,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.commitments&&e.commitments.length)for(var n=0;n<e.commitments.length;++n)s.ibc.core.channel.v1.PacketState.encode(e.commitments[n],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&s.ibc.core.client.v1.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryPacketCommitmentsResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.commitments&&r.commitments.length||(r.commitments=[]),r.commitments.push(s.ibc.core.channel.v1.PacketState.decode(e,e.uint32()));break;case 2:r.pagination=s.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;case 3:r.height=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryPacketCommitmentsResponse)return e;var t=new s.ibc.core.channel.v1.QueryPacketCommitmentsResponse;if(e.commitments){if(!Array.isArray(e.commitments))throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: array expected");t.commitments=[];for(var n=0;n<e.commitments.length;++n){if("object"!=typeof e.commitments[n])throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.commitments: object expected");t.commitments[n]=s.ibc.core.channel.v1.PacketState.fromObject(e.commitments[n])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryPacketCommitmentsResponse.height: object expected");t.height=s.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.commitments=[]),t.defaults&&(n.pagination=null,n.height=null),e.commitments&&e.commitments.length){n.commitments=[];for(var r=0;r<e.commitments.length;++r)n.commitments[r]=s.ibc.core.channel.v1.PacketState.toObject(e.commitments[r],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),null!=e.height&&e.hasOwnProperty("height")&&(n.height=s.ibc.core.client.v1.Height.toObject(e.height,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryPacketReceiptRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.sequence=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryPacketReceiptRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;case 3:r.sequence=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryPacketReceiptRequest)return e;var t=new s.ibc.core.channel.v1.QueryPacketReceiptRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.sequence&&(a.Long?(t.sequence=a.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(n.portId="",n.channelId="",a.Long){var r=new a.Long(0,0,!0);n.sequence=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.sequence=t.longs===String?"0":0;return null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?n.sequence=t.longs===String?String(e.sequence):e.sequence:n.sequence=t.longs===String?a.Long.prototype.toString.call(e.sequence):t.longs===Number?new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryPacketReceiptResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.received=!1,e.prototype.proof=a.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.received&&Object.hasOwnProperty.call(e,"received")&&t.uint32(16).bool(e.received),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(26).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&s.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryPacketReceiptResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 2:r.received=e.bool();break;case 3:r.proof=e.bytes();break;case 4:r.proofHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryPacketReceiptResponse)return e;var t=new s.ibc.core.channel.v1.QueryPacketReceiptResponse;if(null!=e.received&&(t.received=Boolean(e.received)),null!=e.proof&&("string"==typeof e.proof?a.base64.decode(e.proof,t.proof=a.newBuffer(a.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryPacketReceiptResponse.proofHeight: object expected");t.proofHeight=s.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.received=!1,t.bytes===String?n.proof="":(n.proof=[],t.bytes!==Array&&(n.proof=a.newBuffer(n.proof))),n.proofHeight=null),null!=e.received&&e.hasOwnProperty("received")&&(n.received=e.received),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=t.bytes===String?a.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(n.proofHeight=s.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryPacketAcknowledgementRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.sequence=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.sequence&&Object.hasOwnProperty.call(e,"sequence")&&t.uint32(24).uint64(e.sequence),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryPacketAcknowledgementRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;case 3:r.sequence=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryPacketAcknowledgementRequest)return e;var t=new s.ibc.core.channel.v1.QueryPacketAcknowledgementRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.sequence&&(a.Long?(t.sequence=a.Long.fromValue(e.sequence)).unsigned=!0:"string"==typeof e.sequence?t.sequence=parseInt(e.sequence,10):"number"==typeof e.sequence?t.sequence=e.sequence:"object"==typeof e.sequence&&(t.sequence=new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(n.portId="",n.channelId="",a.Long){var r=new a.Long(0,0,!0);n.sequence=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.sequence=t.longs===String?"0":0;return null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),null!=e.sequence&&e.hasOwnProperty("sequence")&&("number"==typeof e.sequence?n.sequence=t.longs===String?String(e.sequence):e.sequence:n.sequence=t.longs===String?a.Long.prototype.toString.call(e.sequence):t.longs===Number?new a.LongBits(e.sequence.low>>>0,e.sequence.high>>>0).toNumber(!0):e.sequence),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryPacketAcknowledgementResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.acknowledgement=a.newBuffer([]),e.prototype.proof=a.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.acknowledgement&&Object.hasOwnProperty.call(e,"acknowledgement")&&t.uint32(10).bytes(e.acknowledgement),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&s.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryPacketAcknowledgementResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.acknowledgement=e.bytes();break;case 2:r.proof=e.bytes();break;case 3:r.proofHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryPacketAcknowledgementResponse)return e;var t=new s.ibc.core.channel.v1.QueryPacketAcknowledgementResponse;if(null!=e.acknowledgement&&("string"==typeof e.acknowledgement?a.base64.decode(e.acknowledgement,t.acknowledgement=a.newBuffer(a.base64.length(e.acknowledgement)),0):e.acknowledgement.length&&(t.acknowledgement=e.acknowledgement)),null!=e.proof&&("string"==typeof e.proof?a.base64.decode(e.proof,t.proof=a.newBuffer(a.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementResponse.proofHeight: object expected");t.proofHeight=s.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.acknowledgement="":(n.acknowledgement=[],t.bytes!==Array&&(n.acknowledgement=a.newBuffer(n.acknowledgement))),t.bytes===String?n.proof="":(n.proof=[],t.bytes!==Array&&(n.proof=a.newBuffer(n.proof))),n.proofHeight=null),null!=e.acknowledgement&&e.hasOwnProperty("acknowledgement")&&(n.acknowledgement=t.bytes===String?a.base64.encode(e.acknowledgement,0,e.acknowledgement.length):t.bytes===Array?Array.prototype.slice.call(e.acknowledgement):e.acknowledgement),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=t.bytes===String?a.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(n.proofHeight=s.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryPacketAcknowledgementsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;case 3:r.pagination=s.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest)return e;var t=new s.ibc.core.channel.v1.QueryPacketAcknowledgementsRequest;if(null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsRequest.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.portId="",n.channelId="",n.pagination=null),null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryPacketAcknowledgementsResponse=function(){function e(e){if(this.acknowledgements=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.acknowledgements=a.emptyArray,e.prototype.pagination=null,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.acknowledgements&&e.acknowledgements.length)for(var n=0;n<e.acknowledgements.length;++n)s.ibc.core.channel.v1.PacketState.encode(e.acknowledgements[n],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&s.ibc.core.client.v1.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.acknowledgements&&r.acknowledgements.length||(r.acknowledgements=[]),r.acknowledgements.push(s.ibc.core.channel.v1.PacketState.decode(e,e.uint32()));break;case 2:r.pagination=s.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;case 3:r.height=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse)return e;var t=new s.ibc.core.channel.v1.QueryPacketAcknowledgementsResponse;if(e.acknowledgements){if(!Array.isArray(e.acknowledgements))throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: array expected");t.acknowledgements=[];for(var n=0;n<e.acknowledgements.length;++n){if("object"!=typeof e.acknowledgements[n])throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.acknowledgements: object expected");t.acknowledgements[n]=s.ibc.core.channel.v1.PacketState.fromObject(e.acknowledgements[n])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryPacketAcknowledgementsResponse.height: object expected");t.height=s.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.acknowledgements=[]),t.defaults&&(n.pagination=null,n.height=null),e.acknowledgements&&e.acknowledgements.length){n.acknowledgements=[];for(var r=0;r<e.acknowledgements.length;++r)n.acknowledgements[r]=s.ibc.core.channel.v1.PacketState.toObject(e.acknowledgements[r],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),null!=e.height&&e.hasOwnProperty("height")&&(n.height=s.ibc.core.client.v1.Height.toObject(e.height,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryUnreceivedPacketsRequest=function(){function e(e){if(this.packetCommitmentSequences=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.packetCommitmentSequences=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.packetCommitmentSequences&&e.packetCommitmentSequences.length){t.uint32(26).fork();for(var n=0;n<e.packetCommitmentSequences.length;++n)t.uint64(e.packetCommitmentSequences[n]);t.ldelim()}return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryUnreceivedPacketsRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;case 3:if(r.packetCommitmentSequences&&r.packetCommitmentSequences.length||(r.packetCommitmentSequences=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)r.packetCommitmentSequences.push(e.uint64());else r.packetCommitmentSequences.push(e.uint64());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryUnreceivedPacketsRequest)return e;var t=new s.ibc.core.channel.v1.QueryUnreceivedPacketsRequest;if(null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),e.packetCommitmentSequences){if(!Array.isArray(e.packetCommitmentSequences))throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsRequest.packetCommitmentSequences: array expected");t.packetCommitmentSequences=[];for(var n=0;n<e.packetCommitmentSequences.length;++n)a.Long?(t.packetCommitmentSequences[n]=a.Long.fromValue(e.packetCommitmentSequences[n])).unsigned=!0:"string"==typeof e.packetCommitmentSequences[n]?t.packetCommitmentSequences[n]=parseInt(e.packetCommitmentSequences[n],10):"number"==typeof e.packetCommitmentSequences[n]?t.packetCommitmentSequences[n]=e.packetCommitmentSequences[n]:"object"==typeof e.packetCommitmentSequences[n]&&(t.packetCommitmentSequences[n]=new a.LongBits(e.packetCommitmentSequences[n].low>>>0,e.packetCommitmentSequences[n].high>>>0).toNumber(!0))}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.packetCommitmentSequences=[]),t.defaults&&(n.portId="",n.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),e.packetCommitmentSequences&&e.packetCommitmentSequences.length){n.packetCommitmentSequences=[];for(var r=0;r<e.packetCommitmentSequences.length;++r)"number"==typeof e.packetCommitmentSequences[r]?n.packetCommitmentSequences[r]=t.longs===String?String(e.packetCommitmentSequences[r]):e.packetCommitmentSequences[r]:n.packetCommitmentSequences[r]=t.longs===String?a.Long.prototype.toString.call(e.packetCommitmentSequences[r]):t.longs===Number?new a.LongBits(e.packetCommitmentSequences[r].low>>>0,e.packetCommitmentSequences[r].high>>>0).toNumber(!0):e.packetCommitmentSequences[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryUnreceivedPacketsResponse=function(){function e(e){if(this.sequences=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.sequences=a.emptyArray,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.sequences&&e.sequences.length){t.uint32(10).fork();for(var n=0;n<e.sequences.length;++n)t.uint64(e.sequences[n]);t.ldelim()}return null!=e.height&&Object.hasOwnProperty.call(e,"height")&&s.ibc.core.client.v1.Height.encode(e.height,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryUnreceivedPacketsResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:if(r.sequences&&r.sequences.length||(r.sequences=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)r.sequences.push(e.uint64());else r.sequences.push(e.uint64());break;case 2:r.height=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryUnreceivedPacketsResponse)return e;var t=new s.ibc.core.channel.v1.QueryUnreceivedPacketsResponse;if(e.sequences){if(!Array.isArray(e.sequences))throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.sequences: array expected");t.sequences=[];for(var n=0;n<e.sequences.length;++n)a.Long?(t.sequences[n]=a.Long.fromValue(e.sequences[n])).unsigned=!0:"string"==typeof e.sequences[n]?t.sequences[n]=parseInt(e.sequences[n],10):"number"==typeof e.sequences[n]?t.sequences[n]=e.sequences[n]:"object"==typeof e.sequences[n]&&(t.sequences[n]=new a.LongBits(e.sequences[n].low>>>0,e.sequences[n].high>>>0).toNumber(!0))}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryUnreceivedPacketsResponse.height: object expected");t.height=s.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.sequences=[]),t.defaults&&(n.height=null),e.sequences&&e.sequences.length){n.sequences=[];for(var r=0;r<e.sequences.length;++r)"number"==typeof e.sequences[r]?n.sequences[r]=t.longs===String?String(e.sequences[r]):e.sequences[r]:n.sequences[r]=t.longs===String?a.Long.prototype.toString.call(e.sequences[r]):t.longs===Number?new a.LongBits(e.sequences[r].low>>>0,e.sequences[r].high>>>0).toNumber(!0):e.sequences[r]}return null!=e.height&&e.hasOwnProperty("height")&&(n.height=s.ibc.core.client.v1.Height.toObject(e.height,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryUnreceivedAcksRequest=function(){function e(e){if(this.packetAckSequences=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.prototype.packetAckSequences=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),null!=e.packetAckSequences&&e.packetAckSequences.length){t.uint32(26).fork();for(var n=0;n<e.packetAckSequences.length;++n)t.uint64(e.packetAckSequences[n]);t.ldelim()}return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryUnreceivedAcksRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;case 3:if(r.packetAckSequences&&r.packetAckSequences.length||(r.packetAckSequences=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)r.packetAckSequences.push(e.uint64());else r.packetAckSequences.push(e.uint64());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryUnreceivedAcksRequest)return e;var t=new s.ibc.core.channel.v1.QueryUnreceivedAcksRequest;if(null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),e.packetAckSequences){if(!Array.isArray(e.packetAckSequences))throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksRequest.packetAckSequences: array expected");t.packetAckSequences=[];for(var n=0;n<e.packetAckSequences.length;++n)a.Long?(t.packetAckSequences[n]=a.Long.fromValue(e.packetAckSequences[n])).unsigned=!0:"string"==typeof e.packetAckSequences[n]?t.packetAckSequences[n]=parseInt(e.packetAckSequences[n],10):"number"==typeof e.packetAckSequences[n]?t.packetAckSequences[n]=e.packetAckSequences[n]:"object"==typeof e.packetAckSequences[n]&&(t.packetAckSequences[n]=new a.LongBits(e.packetAckSequences[n].low>>>0,e.packetAckSequences[n].high>>>0).toNumber(!0))}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.packetAckSequences=[]),t.defaults&&(n.portId="",n.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),e.packetAckSequences&&e.packetAckSequences.length){n.packetAckSequences=[];for(var r=0;r<e.packetAckSequences.length;++r)"number"==typeof e.packetAckSequences[r]?n.packetAckSequences[r]=t.longs===String?String(e.packetAckSequences[r]):e.packetAckSequences[r]:n.packetAckSequences[r]=t.longs===String?a.Long.prototype.toString.call(e.packetAckSequences[r]):t.longs===Number?new a.LongBits(e.packetAckSequences[r].low>>>0,e.packetAckSequences[r].high>>>0).toNumber(!0):e.packetAckSequences[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryUnreceivedAcksResponse=function(){function e(e){if(this.sequences=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.sequences=a.emptyArray,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.sequences&&e.sequences.length){t.uint32(10).fork();for(var n=0;n<e.sequences.length;++n)t.uint64(e.sequences[n]);t.ldelim()}return null!=e.height&&Object.hasOwnProperty.call(e,"height")&&s.ibc.core.client.v1.Height.encode(e.height,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryUnreceivedAcksResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:if(r.sequences&&r.sequences.length||(r.sequences=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)r.sequences.push(e.uint64());else r.sequences.push(e.uint64());break;case 2:r.height=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryUnreceivedAcksResponse)return e;var t=new s.ibc.core.channel.v1.QueryUnreceivedAcksResponse;if(e.sequences){if(!Array.isArray(e.sequences))throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.sequences: array expected");t.sequences=[];for(var n=0;n<e.sequences.length;++n)a.Long?(t.sequences[n]=a.Long.fromValue(e.sequences[n])).unsigned=!0:"string"==typeof e.sequences[n]?t.sequences[n]=parseInt(e.sequences[n],10):"number"==typeof e.sequences[n]?t.sequences[n]=e.sequences[n]:"object"==typeof e.sequences[n]&&(t.sequences[n]=new a.LongBits(e.sequences[n].low>>>0,e.sequences[n].high>>>0).toNumber(!0))}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.channel.v1.QueryUnreceivedAcksResponse.height: object expected");t.height=s.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.sequences=[]),t.defaults&&(n.height=null),e.sequences&&e.sequences.length){n.sequences=[];for(var r=0;r<e.sequences.length;++r)"number"==typeof e.sequences[r]?n.sequences[r]=t.longs===String?String(e.sequences[r]):e.sequences[r]:n.sequences[r]=t.longs===String?a.Long.prototype.toString.call(e.sequences[r]):t.longs===Number?new a.LongBits(e.sequences[r].low>>>0,e.sequences[r].high>>>0).toNumber(!0):e.sequences[r]}return null!=e.height&&e.hasOwnProperty("height")&&(n.height=s.ibc.core.client.v1.Height.toObject(e.height,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryNextSequenceReceiveRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.portId="",e.prototype.channelId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.portId&&Object.hasOwnProperty.call(e,"portId")&&t.uint32(10).string(e.portId),null!=e.channelId&&Object.hasOwnProperty.call(e,"channelId")&&t.uint32(18).string(e.channelId),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryNextSequenceReceiveRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.portId=e.string();break;case 2:r.channelId=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryNextSequenceReceiveRequest)return e;var t=new s.ibc.core.channel.v1.QueryNextSequenceReceiveRequest;return null!=e.portId&&(t.portId=String(e.portId)),null!=e.channelId&&(t.channelId=String(e.channelId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.portId="",n.channelId=""),null!=e.portId&&e.hasOwnProperty("portId")&&(n.portId=e.portId),null!=e.channelId&&e.hasOwnProperty("channelId")&&(n.channelId=e.channelId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryNextSequenceReceiveResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.nextSequenceReceive=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.proof=a.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.nextSequenceReceive&&Object.hasOwnProperty.call(e,"nextSequenceReceive")&&t.uint32(8).uint64(e.nextSequenceReceive),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&s.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.channel.v1.QueryNextSequenceReceiveResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.nextSequenceReceive=e.uint64();break;case 2:r.proof=e.bytes();break;case 3:r.proofHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.channel.v1.QueryNextSequenceReceiveResponse)return e;var t=new s.ibc.core.channel.v1.QueryNextSequenceReceiveResponse;if(null!=e.nextSequenceReceive&&(a.Long?(t.nextSequenceReceive=a.Long.fromValue(e.nextSequenceReceive)).unsigned=!0:"string"==typeof e.nextSequenceReceive?t.nextSequenceReceive=parseInt(e.nextSequenceReceive,10):"number"==typeof e.nextSequenceReceive?t.nextSequenceReceive=e.nextSequenceReceive:"object"==typeof e.nextSequenceReceive&&(t.nextSequenceReceive=new a.LongBits(e.nextSequenceReceive.low>>>0,e.nextSequenceReceive.high>>>0).toNumber(!0))),null!=e.proof&&("string"==typeof e.proof?a.base64.decode(e.proof,t.proof=a.newBuffer(a.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.channel.v1.QueryNextSequenceReceiveResponse.proofHeight: object expected");t.proofHeight=s.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!0);n.nextSequenceReceive=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.nextSequenceReceive=t.longs===String?"0":0;t.bytes===String?n.proof="":(n.proof=[],t.bytes!==Array&&(n.proof=a.newBuffer(n.proof))),n.proofHeight=null}return null!=e.nextSequenceReceive&&e.hasOwnProperty("nextSequenceReceive")&&("number"==typeof e.nextSequenceReceive?n.nextSequenceReceive=t.longs===String?String(e.nextSequenceReceive):e.nextSequenceReceive:n.nextSequenceReceive=t.longs===String?a.Long.prototype.toString.call(e.nextSequenceReceive):t.longs===Number?new a.LongBits(e.nextSequenceReceive.low>>>0,e.nextSequenceReceive.high>>>0).toNumber(!0):e.nextSequenceReceive),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=t.bytes===String?a.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(n.proofHeight=s.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e.client=function(){const e={};return e.v1=function(){const e={};return e.Msg=function(){function e(e,t,n){r.rpc.Service.call(this,e,t,n)}return(e.prototype=Object.create(r.rpc.Service.prototype)).constructor=e,e.create=function(e,t,n){return new this(e,t,n)},Object.defineProperty(e.prototype.createClient=function e(t,n){return this.rpcCall(e,s.ibc.core.client.v1.MsgCreateClient,s.ibc.core.client.v1.MsgCreateClientResponse,t,n)},"name",{value:"CreateClient"}),Object.defineProperty(e.prototype.updateClient=function e(t,n){return this.rpcCall(e,s.ibc.core.client.v1.MsgUpdateClient,s.ibc.core.client.v1.MsgUpdateClientResponse,t,n)},"name",{value:"UpdateClient"}),Object.defineProperty(e.prototype.upgradeClient=function e(t,n){return this.rpcCall(e,s.ibc.core.client.v1.MsgUpgradeClient,s.ibc.core.client.v1.MsgUpgradeClientResponse,t,n)},"name",{value:"UpgradeClient"}),Object.defineProperty(e.prototype.submitMisbehaviour=function e(t,n){return this.rpcCall(e,s.ibc.core.client.v1.MsgSubmitMisbehaviour,s.ibc.core.client.v1.MsgSubmitMisbehaviourResponse,t,n)},"name",{value:"SubmitMisbehaviour"}),e}(),e.MsgCreateClient=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientId="",e.prototype.clientState=null,e.prototype.consensusState=null,e.prototype.signer="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.clientState&&Object.hasOwnProperty.call(e,"clientState")&&s.google.protobuf.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),null!=e.consensusState&&Object.hasOwnProperty.call(e,"consensusState")&&s.google.protobuf.Any.encode(e.consensusState,t.uint32(26).fork()).ldelim(),null!=e.signer&&Object.hasOwnProperty.call(e,"signer")&&t.uint32(34).string(e.signer),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.MsgCreateClient;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.clientId=e.string();break;case 2:r.clientState=s.google.protobuf.Any.decode(e,e.uint32());break;case 3:r.consensusState=s.google.protobuf.Any.decode(e,e.uint32());break;case 4:r.signer=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.client.v1.MsgCreateClient)return e;var t=new s.ibc.core.client.v1.MsgCreateClient;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.clientState){if("object"!=typeof e.clientState)throw TypeError(".ibc.core.client.v1.MsgCreateClient.clientState: object expected");t.clientState=s.google.protobuf.Any.fromObject(e.clientState)}if(null!=e.consensusState){if("object"!=typeof e.consensusState)throw TypeError(".ibc.core.client.v1.MsgCreateClient.consensusState: object expected");t.consensusState=s.google.protobuf.Any.fromObject(e.consensusState)}return null!=e.signer&&(t.signer=String(e.signer)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.clientId="",n.clientState=null,n.consensusState=null,n.signer=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),null!=e.clientState&&e.hasOwnProperty("clientState")&&(n.clientState=s.google.protobuf.Any.toObject(e.clientState,t)),null!=e.consensusState&&e.hasOwnProperty("consensusState")&&(n.consensusState=s.google.protobuf.Any.toObject(e.consensusState,t)),null!=e.signer&&e.hasOwnProperty("signer")&&(n.signer=e.signer),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgCreateClientResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.MsgCreateClientResponse;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.ibc.core.client.v1.MsgCreateClientResponse?e:new s.ibc.core.client.v1.MsgCreateClientResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgUpdateClient=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientId="",e.prototype.header=null,e.prototype.signer="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&s.google.protobuf.Any.encode(e.header,t.uint32(18).fork()).ldelim(),null!=e.signer&&Object.hasOwnProperty.call(e,"signer")&&t.uint32(26).string(e.signer),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.MsgUpdateClient;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.clientId=e.string();break;case 2:r.header=s.google.protobuf.Any.decode(e,e.uint32());break;case 3:r.signer=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.client.v1.MsgUpdateClient)return e;var t=new s.ibc.core.client.v1.MsgUpdateClient;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.header){if("object"!=typeof e.header)throw TypeError(".ibc.core.client.v1.MsgUpdateClient.header: object expected");t.header=s.google.protobuf.Any.fromObject(e.header)}return null!=e.signer&&(t.signer=String(e.signer)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.clientId="",n.header=null,n.signer=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),null!=e.header&&e.hasOwnProperty("header")&&(n.header=s.google.protobuf.Any.toObject(e.header,t)),null!=e.signer&&e.hasOwnProperty("signer")&&(n.signer=e.signer),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgUpdateClientResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.MsgUpdateClientResponse;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.ibc.core.client.v1.MsgUpdateClientResponse?e:new s.ibc.core.client.v1.MsgUpdateClientResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgUpgradeClient=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientId="",e.prototype.clientState=null,e.prototype.upgradeHeight=null,e.prototype.proofUpgrade=a.newBuffer([]),e.prototype.signer="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.clientState&&Object.hasOwnProperty.call(e,"clientState")&&s.google.protobuf.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),null!=e.upgradeHeight&&Object.hasOwnProperty.call(e,"upgradeHeight")&&s.ibc.core.client.v1.Height.encode(e.upgradeHeight,t.uint32(26).fork()).ldelim(),null!=e.proofUpgrade&&Object.hasOwnProperty.call(e,"proofUpgrade")&&t.uint32(34).bytes(e.proofUpgrade),null!=e.signer&&Object.hasOwnProperty.call(e,"signer")&&t.uint32(42).string(e.signer),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.MsgUpgradeClient;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.clientId=e.string();break;case 2:r.clientState=s.google.protobuf.Any.decode(e,e.uint32());break;case 3:r.upgradeHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;case 4:r.proofUpgrade=e.bytes();break;case 5:r.signer=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.client.v1.MsgUpgradeClient)return e;var t=new s.ibc.core.client.v1.MsgUpgradeClient;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.clientState){if("object"!=typeof e.clientState)throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.clientState: object expected");t.clientState=s.google.protobuf.Any.fromObject(e.clientState)}if(null!=e.upgradeHeight){if("object"!=typeof e.upgradeHeight)throw TypeError(".ibc.core.client.v1.MsgUpgradeClient.upgradeHeight: object expected");t.upgradeHeight=s.ibc.core.client.v1.Height.fromObject(e.upgradeHeight)}return null!=e.proofUpgrade&&("string"==typeof e.proofUpgrade?a.base64.decode(e.proofUpgrade,t.proofUpgrade=a.newBuffer(a.base64.length(e.proofUpgrade)),0):e.proofUpgrade.length&&(t.proofUpgrade=e.proofUpgrade)),null!=e.signer&&(t.signer=String(e.signer)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.clientId="",n.clientState=null,n.upgradeHeight=null,t.bytes===String?n.proofUpgrade="":(n.proofUpgrade=[],t.bytes!==Array&&(n.proofUpgrade=a.newBuffer(n.proofUpgrade))),n.signer=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),null!=e.clientState&&e.hasOwnProperty("clientState")&&(n.clientState=s.google.protobuf.Any.toObject(e.clientState,t)),null!=e.upgradeHeight&&e.hasOwnProperty("upgradeHeight")&&(n.upgradeHeight=s.ibc.core.client.v1.Height.toObject(e.upgradeHeight,t)),null!=e.proofUpgrade&&e.hasOwnProperty("proofUpgrade")&&(n.proofUpgrade=t.bytes===String?a.base64.encode(e.proofUpgrade,0,e.proofUpgrade.length):t.bytes===Array?Array.prototype.slice.call(e.proofUpgrade):e.proofUpgrade),null!=e.signer&&e.hasOwnProperty("signer")&&(n.signer=e.signer),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgUpgradeClientResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.MsgUpgradeClientResponse;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.ibc.core.client.v1.MsgUpgradeClientResponse?e:new s.ibc.core.client.v1.MsgUpgradeClientResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgSubmitMisbehaviour=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientId="",e.prototype.misbehaviour=null,e.prototype.signer="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.misbehaviour&&Object.hasOwnProperty.call(e,"misbehaviour")&&s.google.protobuf.Any.encode(e.misbehaviour,t.uint32(18).fork()).ldelim(),null!=e.signer&&Object.hasOwnProperty.call(e,"signer")&&t.uint32(26).string(e.signer),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.MsgSubmitMisbehaviour;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.clientId=e.string();break;case 2:r.misbehaviour=s.google.protobuf.Any.decode(e,e.uint32());break;case 3:r.signer=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.client.v1.MsgSubmitMisbehaviour)return e;var t=new s.ibc.core.client.v1.MsgSubmitMisbehaviour;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.misbehaviour){if("object"!=typeof e.misbehaviour)throw TypeError(".ibc.core.client.v1.MsgSubmitMisbehaviour.misbehaviour: object expected");t.misbehaviour=s.google.protobuf.Any.fromObject(e.misbehaviour)}return null!=e.signer&&(t.signer=String(e.signer)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.clientId="",n.misbehaviour=null,n.signer=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),null!=e.misbehaviour&&e.hasOwnProperty("misbehaviour")&&(n.misbehaviour=s.google.protobuf.Any.toObject(e.misbehaviour,t)),null!=e.signer&&e.hasOwnProperty("signer")&&(n.signer=e.signer),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MsgSubmitMisbehaviourResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.MsgSubmitMisbehaviourResponse;e.pos<n;){var o=e.uint32();e.skipType(7&o)}return r},e.fromObject=function(e){return e instanceof s.ibc.core.client.v1.MsgSubmitMisbehaviourResponse?e:new s.ibc.core.client.v1.MsgSubmitMisbehaviourResponse},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.IdentifiedClientState=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientId="",e.prototype.clientState=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.clientState&&Object.hasOwnProperty.call(e,"clientState")&&s.google.protobuf.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.IdentifiedClientState;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.clientId=e.string();break;case 2:r.clientState=s.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.client.v1.IdentifiedClientState)return e;var t=new s.ibc.core.client.v1.IdentifiedClientState;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.clientState){if("object"!=typeof e.clientState)throw TypeError(".ibc.core.client.v1.IdentifiedClientState.clientState: object expected");t.clientState=s.google.protobuf.Any.fromObject(e.clientState)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.clientId="",n.clientState=null),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),null!=e.clientState&&e.hasOwnProperty("clientState")&&(n.clientState=s.google.protobuf.Any.toObject(e.clientState,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ConsensusStateWithHeight=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.height=null,e.prototype.consensusState=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&s.ibc.core.client.v1.Height.encode(e.height,t.uint32(10).fork()).ldelim(),null!=e.consensusState&&Object.hasOwnProperty.call(e,"consensusState")&&s.google.protobuf.Any.encode(e.consensusState,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.ConsensusStateWithHeight;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.height=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;case 2:r.consensusState=s.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.client.v1.ConsensusStateWithHeight)return e;var t=new s.ibc.core.client.v1.ConsensusStateWithHeight;if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.height: object expected");t.height=s.ibc.core.client.v1.Height.fromObject(e.height)}if(null!=e.consensusState){if("object"!=typeof e.consensusState)throw TypeError(".ibc.core.client.v1.ConsensusStateWithHeight.consensusState: object expected");t.consensusState=s.google.protobuf.Any.fromObject(e.consensusState)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.height=null,n.consensusState=null),null!=e.height&&e.hasOwnProperty("height")&&(n.height=s.ibc.core.client.v1.Height.toObject(e.height,t)),null!=e.consensusState&&e.hasOwnProperty("consensusState")&&(n.consensusState=s.google.protobuf.Any.toObject(e.consensusState,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ClientConsensusStates=function(){function e(e){if(this.consensusStates=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientId="",e.prototype.consensusStates=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.consensusStates&&e.consensusStates.length)for(var n=0;n<e.consensusStates.length;++n)s.ibc.core.client.v1.ConsensusStateWithHeight.encode(e.consensusStates[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.ClientConsensusStates;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.clientId=e.string();break;case 2:r.consensusStates&&r.consensusStates.length||(r.consensusStates=[]),r.consensusStates.push(s.ibc.core.client.v1.ConsensusStateWithHeight.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.client.v1.ClientConsensusStates)return e;var t=new s.ibc.core.client.v1.ClientConsensusStates;if(null!=e.clientId&&(t.clientId=String(e.clientId)),e.consensusStates){if(!Array.isArray(e.consensusStates))throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensusStates: array expected");t.consensusStates=[];for(var n=0;n<e.consensusStates.length;++n){if("object"!=typeof e.consensusStates[n])throw TypeError(".ibc.core.client.v1.ClientConsensusStates.consensusStates: object expected");t.consensusStates[n]=s.ibc.core.client.v1.ConsensusStateWithHeight.fromObject(e.consensusStates[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.consensusStates=[]),t.defaults&&(n.clientId=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),e.consensusStates&&e.consensusStates.length){n.consensusStates=[];for(var r=0;r<e.consensusStates.length;++r)n.consensusStates[r]=s.ibc.core.client.v1.ConsensusStateWithHeight.toObject(e.consensusStates[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ClientUpdateProposal=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.title="",e.prototype.description="",e.prototype.clientId="",e.prototype.header=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(18).string(e.description),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(26).string(e.clientId),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&s.google.protobuf.Any.encode(e.header,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.ClientUpdateProposal;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.title=e.string();break;case 2:r.description=e.string();break;case 3:r.clientId=e.string();break;case 4:r.header=s.google.protobuf.Any.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.client.v1.ClientUpdateProposal)return e;var t=new s.ibc.core.client.v1.ClientUpdateProposal;if(null!=e.title&&(t.title=String(e.title)),null!=e.description&&(t.description=String(e.description)),null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.header){if("object"!=typeof e.header)throw TypeError(".ibc.core.client.v1.ClientUpdateProposal.header: object expected");t.header=s.google.protobuf.Any.fromObject(e.header)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.title="",n.description="",n.clientId="",n.header=null),null!=e.title&&e.hasOwnProperty("title")&&(n.title=e.title),null!=e.description&&e.hasOwnProperty("description")&&(n.description=e.description),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),null!=e.header&&e.hasOwnProperty("header")&&(n.header=s.google.protobuf.Any.toObject(e.header,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Height=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.versionNumber=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.versionHeight=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.versionNumber&&Object.hasOwnProperty.call(e,"versionNumber")&&t.uint32(8).uint64(e.versionNumber),null!=e.versionHeight&&Object.hasOwnProperty.call(e,"versionHeight")&&t.uint32(16).uint64(e.versionHeight),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.client.v1.Height;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.versionNumber=e.uint64();break;case 2:r.versionHeight=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.client.v1.Height)return e;var t=new s.ibc.core.client.v1.Height;return null!=e.versionNumber&&(a.Long?(t.versionNumber=a.Long.fromValue(e.versionNumber)).unsigned=!0:"string"==typeof e.versionNumber?t.versionNumber=parseInt(e.versionNumber,10):"number"==typeof e.versionNumber?t.versionNumber=e.versionNumber:"object"==typeof e.versionNumber&&(t.versionNumber=new a.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0))),null!=e.versionHeight&&(a.Long?(t.versionHeight=a.Long.fromValue(e.versionHeight)).unsigned=!0:"string"==typeof e.versionHeight?t.versionHeight=parseInt(e.versionHeight,10):"number"==typeof e.versionHeight?t.versionHeight=e.versionHeight:"object"==typeof e.versionHeight&&(t.versionHeight=new a.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!0);n.versionNumber=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.versionNumber=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!0);n.versionHeight=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.versionHeight=t.longs===String?"0":0}return null!=e.versionNumber&&e.hasOwnProperty("versionNumber")&&("number"==typeof e.versionNumber?n.versionNumber=t.longs===String?String(e.versionNumber):e.versionNumber:n.versionNumber=t.longs===String?a.Long.prototype.toString.call(e.versionNumber):t.longs===Number?new a.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0):e.versionNumber),null!=e.versionHeight&&e.hasOwnProperty("versionHeight")&&("number"==typeof e.versionHeight?n.versionHeight=t.longs===String?String(e.versionHeight):e.versionHeight:n.versionHeight=t.longs===String?a.Long.prototype.toString.call(e.versionHeight):t.longs===Number?new a.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0):e.versionHeight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e.commitment=function(){const e={};return e.v1=function(){const e={};return e.MerkleRoot=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.hash=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(10).bytes(e.hash),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.commitment.v1.MerkleRoot;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.hash=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.commitment.v1.MerkleRoot)return e;var t=new s.ibc.core.commitment.v1.MerkleRoot;return null!=e.hash&&("string"==typeof e.hash?a.base64.decode(e.hash,t.hash=a.newBuffer(a.base64.length(e.hash)),0):e.hash.length&&(t.hash=e.hash)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.hash="":(n.hash=[],t.bytes!==Array&&(n.hash=a.newBuffer(n.hash)))),null!=e.hash&&e.hasOwnProperty("hash")&&(n.hash=t.bytes===String?a.base64.encode(e.hash,0,e.hash.length):t.bytes===Array?Array.prototype.slice.call(e.hash):e.hash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MerklePrefix=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.keyPrefix=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.keyPrefix&&Object.hasOwnProperty.call(e,"keyPrefix")&&t.uint32(10).bytes(e.keyPrefix),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.commitment.v1.MerklePrefix;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.keyPrefix=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.commitment.v1.MerklePrefix)return e;var t=new s.ibc.core.commitment.v1.MerklePrefix;return null!=e.keyPrefix&&("string"==typeof e.keyPrefix?a.base64.decode(e.keyPrefix,t.keyPrefix=a.newBuffer(a.base64.length(e.keyPrefix)),0):e.keyPrefix.length&&(t.keyPrefix=e.keyPrefix)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.keyPrefix="":(n.keyPrefix=[],t.bytes!==Array&&(n.keyPrefix=a.newBuffer(n.keyPrefix)))),null!=e.keyPrefix&&e.hasOwnProperty("keyPrefix")&&(n.keyPrefix=t.bytes===String?a.base64.encode(e.keyPrefix,0,e.keyPrefix.length):t.bytes===Array?Array.prototype.slice.call(e.keyPrefix):e.keyPrefix),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MerklePath=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.keyPath=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.keyPath&&Object.hasOwnProperty.call(e,"keyPath")&&s.ibc.core.commitment.v1.KeyPath.encode(e.keyPath,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.commitment.v1.MerklePath;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.keyPath=s.ibc.core.commitment.v1.KeyPath.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.commitment.v1.MerklePath)return e;var t=new s.ibc.core.commitment.v1.MerklePath;if(null!=e.keyPath){if("object"!=typeof e.keyPath)throw TypeError(".ibc.core.commitment.v1.MerklePath.keyPath: object expected");t.keyPath=s.ibc.core.commitment.v1.KeyPath.fromObject(e.keyPath)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.keyPath=null),null!=e.keyPath&&e.hasOwnProperty("keyPath")&&(n.keyPath=s.ibc.core.commitment.v1.KeyPath.toObject(e.keyPath,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MerkleProof=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.proof=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&s.tendermint.crypto.ProofOps.encode(e.proof,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.commitment.v1.MerkleProof;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.proof=s.tendermint.crypto.ProofOps.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.commitment.v1.MerkleProof)return e;var t=new s.ibc.core.commitment.v1.MerkleProof;if(null!=e.proof){if("object"!=typeof e.proof)throw TypeError(".ibc.core.commitment.v1.MerkleProof.proof: object expected");t.proof=s.tendermint.crypto.ProofOps.fromObject(e.proof)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.proof=null),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=s.tendermint.crypto.ProofOps.toObject(e.proof,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.KeyPath=function(){function e(e){if(this.keys=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.keys=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.keys&&e.keys.length)for(var n=0;n<e.keys.length;++n)s.ibc.core.commitment.v1.Key.encode(e.keys[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.commitment.v1.KeyPath;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.keys&&r.keys.length||(r.keys=[]),r.keys.push(s.ibc.core.commitment.v1.Key.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.commitment.v1.KeyPath)return e;var t=new s.ibc.core.commitment.v1.KeyPath;if(e.keys){if(!Array.isArray(e.keys))throw TypeError(".ibc.core.commitment.v1.KeyPath.keys: array expected");t.keys=[];for(var n=0;n<e.keys.length;++n){if("object"!=typeof e.keys[n])throw TypeError(".ibc.core.commitment.v1.KeyPath.keys: object expected");t.keys[n]=s.ibc.core.commitment.v1.Key.fromObject(e.keys[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.keys=[]),e.keys&&e.keys.length){n.keys=[];for(var r=0;r<e.keys.length;++r)n.keys[r]=s.ibc.core.commitment.v1.Key.toObject(e.keys[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Key=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name=a.newBuffer([]),e.prototype.enc=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).bytes(e.name),null!=e.enc&&Object.hasOwnProperty.call(e,"enc")&&t.uint32(16).int32(e.enc),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.commitment.v1.Key;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.name=e.bytes();break;case 2:r.enc=e.int32();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.commitment.v1.Key)return e;var t=new s.ibc.core.commitment.v1.Key;switch(null!=e.name&&("string"==typeof e.name?a.base64.decode(e.name,t.name=a.newBuffer(a.base64.length(e.name)),0):e.name.length&&(t.name=e.name)),e.enc){case"KEY_ENCODING_URL_UNSPECIFIED":case 0:t.enc=0;break;case"KEY_ENCODING_HEX":case 1:t.enc=1}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.name="":(n.name=[],t.bytes!==Array&&(n.name=a.newBuffer(n.name))),n.enc=t.enums===String?"KEY_ENCODING_URL_UNSPECIFIED":0),null!=e.name&&e.hasOwnProperty("name")&&(n.name=t.bytes===String?a.base64.encode(e.name,0,e.name.length):t.bytes===Array?Array.prototype.slice.call(e.name):e.name),null!=e.enc&&e.hasOwnProperty("enc")&&(n.enc=t.enums===String?s.ibc.core.commitment.v1.KeyEncoding[e.enc]:e.enc),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.KeyEncoding=function(){const e={},t=Object.create(e);return t[e[0]="KEY_ENCODING_URL_UNSPECIFIED"]=0,t[e[1]="KEY_ENCODING_HEX"]=1,t}(),e}(),e}(),e.connection=function(){const e={};return e.v1=function(){const e={};return e.ConnectionEnd=function(){function e(e){if(this.versions=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientId="",e.prototype.versions=a.emptyArray,e.prototype.state=0,e.prototype.counterparty=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.versions&&e.versions.length)for(var n=0;n<e.versions.length;++n)s.ibc.core.connection.v1.Version.encode(e.versions[n],t.uint32(18).fork()).ldelim();return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(24).int32(e.state),null!=e.counterparty&&Object.hasOwnProperty.call(e,"counterparty")&&s.ibc.core.connection.v1.Counterparty.encode(e.counterparty,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.ConnectionEnd;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.clientId=e.string();break;case 2:r.versions&&r.versions.length||(r.versions=[]),r.versions.push(s.ibc.core.connection.v1.Version.decode(e,e.uint32()));break;case 3:r.state=e.int32();break;case 4:r.counterparty=s.ibc.core.connection.v1.Counterparty.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.ConnectionEnd)return e;var t=new s.ibc.core.connection.v1.ConnectionEnd;if(null!=e.clientId&&(t.clientId=String(e.clientId)),e.versions){if(!Array.isArray(e.versions))throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: array expected");t.versions=[];for(var n=0;n<e.versions.length;++n){if("object"!=typeof e.versions[n])throw TypeError(".ibc.core.connection.v1.ConnectionEnd.versions: object expected");t.versions[n]=s.ibc.core.connection.v1.Version.fromObject(e.versions[n])}}switch(e.state){case"STATE_UNINITIALIZED_UNSPECIFIED":case 0:t.state=0;break;case"STATE_INIT":case 1:t.state=1;break;case"STATE_TRYOPEN":case 2:t.state=2;break;case"STATE_OPEN":case 3:t.state=3}if(null!=e.counterparty){if("object"!=typeof e.counterparty)throw TypeError(".ibc.core.connection.v1.ConnectionEnd.counterparty: object expected");t.counterparty=s.ibc.core.connection.v1.Counterparty.fromObject(e.counterparty)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.versions=[]),t.defaults&&(n.clientId="",n.state=t.enums===String?"STATE_UNINITIALIZED_UNSPECIFIED":0,n.counterparty=null),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),e.versions&&e.versions.length){n.versions=[];for(var r=0;r<e.versions.length;++r)n.versions[r]=s.ibc.core.connection.v1.Version.toObject(e.versions[r],t)}return null!=e.state&&e.hasOwnProperty("state")&&(n.state=t.enums===String?s.ibc.core.connection.v1.State[e.state]:e.state),null!=e.counterparty&&e.hasOwnProperty("counterparty")&&(n.counterparty=s.ibc.core.connection.v1.Counterparty.toObject(e.counterparty,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.IdentifiedConnection=function(){function e(e){if(this.versions=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.clientId="",e.prototype.versions=a.emptyArray,e.prototype.state=0,e.prototype.counterparty=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(18).string(e.clientId),null!=e.versions&&e.versions.length)for(var n=0;n<e.versions.length;++n)s.ibc.core.connection.v1.Version.encode(e.versions[n],t.uint32(26).fork()).ldelim();return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(32).int32(e.state),null!=e.counterparty&&Object.hasOwnProperty.call(e,"counterparty")&&s.ibc.core.connection.v1.Counterparty.encode(e.counterparty,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.IdentifiedConnection;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.id=e.string();break;case 2:r.clientId=e.string();break;case 3:r.versions&&r.versions.length||(r.versions=[]),r.versions.push(s.ibc.core.connection.v1.Version.decode(e,e.uint32()));break;case 4:r.state=e.int32();break;case 5:r.counterparty=s.ibc.core.connection.v1.Counterparty.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.IdentifiedConnection)return e;var t=new s.ibc.core.connection.v1.IdentifiedConnection;if(null!=e.id&&(t.id=String(e.id)),null!=e.clientId&&(t.clientId=String(e.clientId)),e.versions){if(!Array.isArray(e.versions))throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: array expected");t.versions=[];for(var n=0;n<e.versions.length;++n){if("object"!=typeof e.versions[n])throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.versions: object expected");t.versions[n]=s.ibc.core.connection.v1.Version.fromObject(e.versions[n])}}switch(e.state){case"STATE_UNINITIALIZED_UNSPECIFIED":case 0:t.state=0;break;case"STATE_INIT":case 1:t.state=1;break;case"STATE_TRYOPEN":case 2:t.state=2;break;case"STATE_OPEN":case 3:t.state=3}if(null!=e.counterparty){if("object"!=typeof e.counterparty)throw TypeError(".ibc.core.connection.v1.IdentifiedConnection.counterparty: object expected");t.counterparty=s.ibc.core.connection.v1.Counterparty.fromObject(e.counterparty)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.versions=[]),t.defaults&&(n.id="",n.clientId="",n.state=t.enums===String?"STATE_UNINITIALIZED_UNSPECIFIED":0,n.counterparty=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),e.versions&&e.versions.length){n.versions=[];for(var r=0;r<e.versions.length;++r)n.versions[r]=s.ibc.core.connection.v1.Version.toObject(e.versions[r],t)}return null!=e.state&&e.hasOwnProperty("state")&&(n.state=t.enums===String?s.ibc.core.connection.v1.State[e.state]:e.state),null!=e.counterparty&&e.hasOwnProperty("counterparty")&&(n.counterparty=s.ibc.core.connection.v1.Counterparty.toObject(e.counterparty,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.State=function(){const e={},t=Object.create(e);return t[e[0]="STATE_UNINITIALIZED_UNSPECIFIED"]=0,t[e[1]="STATE_INIT"]=1,t[e[2]="STATE_TRYOPEN"]=2,t[e[3]="STATE_OPEN"]=3,t}(),e.Counterparty=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientId="",e.prototype.connectionId="",e.prototype.prefix=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.connectionId&&Object.hasOwnProperty.call(e,"connectionId")&&t.uint32(18).string(e.connectionId),null!=e.prefix&&Object.hasOwnProperty.call(e,"prefix")&&s.ibc.core.commitment.v1.MerklePrefix.encode(e.prefix,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.Counterparty;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.clientId=e.string();break;case 2:r.connectionId=e.string();break;case 3:r.prefix=s.ibc.core.commitment.v1.MerklePrefix.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.Counterparty)return e;var t=new s.ibc.core.connection.v1.Counterparty;if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.connectionId&&(t.connectionId=String(e.connectionId)),null!=e.prefix){if("object"!=typeof e.prefix)throw TypeError(".ibc.core.connection.v1.Counterparty.prefix: object expected");t.prefix=s.ibc.core.commitment.v1.MerklePrefix.fromObject(e.prefix)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.clientId="",n.connectionId="",n.prefix=null),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),null!=e.connectionId&&e.hasOwnProperty("connectionId")&&(n.connectionId=e.connectionId),null!=e.prefix&&e.hasOwnProperty("prefix")&&(n.prefix=s.ibc.core.commitment.v1.MerklePrefix.toObject(e.prefix,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ClientPaths=function(){function e(e){if(this.paths=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.paths=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.paths&&e.paths.length)for(var n=0;n<e.paths.length;++n)t.uint32(10).string(e.paths[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.ClientPaths;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.paths&&r.paths.length||(r.paths=[]),r.paths.push(e.string());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.ClientPaths)return e;var t=new s.ibc.core.connection.v1.ClientPaths;if(e.paths){if(!Array.isArray(e.paths))throw TypeError(".ibc.core.connection.v1.ClientPaths.paths: array expected");t.paths=[];for(var n=0;n<e.paths.length;++n)t.paths[n]=String(e.paths[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.paths=[]),e.paths&&e.paths.length){n.paths=[];for(var r=0;r<e.paths.length;++r)n.paths[r]=e.paths[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ConnectionPaths=function(){function e(e){if(this.paths=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientId="",e.prototype.paths=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),null!=e.paths&&e.paths.length)for(var n=0;n<e.paths.length;++n)t.uint32(18).string(e.paths[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.ConnectionPaths;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.clientId=e.string();break;case 2:r.paths&&r.paths.length||(r.paths=[]),r.paths.push(e.string());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.ConnectionPaths)return e;var t=new s.ibc.core.connection.v1.ConnectionPaths;if(null!=e.clientId&&(t.clientId=String(e.clientId)),e.paths){if(!Array.isArray(e.paths))throw TypeError(".ibc.core.connection.v1.ConnectionPaths.paths: array expected");t.paths=[];for(var n=0;n<e.paths.length;++n)t.paths[n]=String(e.paths[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.paths=[]),t.defaults&&(n.clientId=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),e.paths&&e.paths.length){n.paths=[];for(var r=0;r<e.paths.length;++r)n.paths[r]=e.paths[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Version=function(){function e(e){if(this.features=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.identifier="",e.prototype.features=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.identifier&&Object.hasOwnProperty.call(e,"identifier")&&t.uint32(10).string(e.identifier),null!=e.features&&e.features.length)for(var n=0;n<e.features.length;++n)t.uint32(18).string(e.features[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.Version;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.identifier=e.string();break;case 2:r.features&&r.features.length||(r.features=[]),r.features.push(e.string());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.Version)return e;var t=new s.ibc.core.connection.v1.Version;if(null!=e.identifier&&(t.identifier=String(e.identifier)),e.features){if(!Array.isArray(e.features))throw TypeError(".ibc.core.connection.v1.Version.features: array expected");t.features=[];for(var n=0;n<e.features.length;++n)t.features[n]=String(e.features[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.features=[]),t.defaults&&(n.identifier=""),null!=e.identifier&&e.hasOwnProperty("identifier")&&(n.identifier=e.identifier),e.features&&e.features.length){n.features=[];for(var r=0;r<e.features.length;++r)n.features[r]=e.features[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Query=function(){function e(e,t,n){r.rpc.Service.call(this,e,t,n)}return(e.prototype=Object.create(r.rpc.Service.prototype)).constructor=e,e.create=function(e,t,n){return new this(e,t,n)},Object.defineProperty(e.prototype.connection=function e(t,n){return this.rpcCall(e,s.ibc.core.connection.v1.QueryConnectionRequest,s.ibc.core.connection.v1.QueryConnectionResponse,t,n)},"name",{value:"Connection"}),Object.defineProperty(e.prototype.connections=function e(t,n){return this.rpcCall(e,s.ibc.core.connection.v1.QueryConnectionsRequest,s.ibc.core.connection.v1.QueryConnectionsResponse,t,n)},"name",{value:"Connections"}),Object.defineProperty(e.prototype.clientConnections=function e(t,n){return this.rpcCall(e,s.ibc.core.connection.v1.QueryClientConnectionsRequest,s.ibc.core.connection.v1.QueryClientConnectionsResponse,t,n)},"name",{value:"ClientConnections"}),Object.defineProperty(e.prototype.connectionClientState=function e(t,n){return this.rpcCall(e,s.ibc.core.connection.v1.QueryConnectionClientStateRequest,s.ibc.core.connection.v1.QueryConnectionClientStateResponse,t,n)},"name",{value:"ConnectionClientState"}),Object.defineProperty(e.prototype.connectionConsensusState=function e(t,n){return this.rpcCall(e,s.ibc.core.connection.v1.QueryConnectionConsensusStateRequest,s.ibc.core.connection.v1.QueryConnectionConsensusStateResponse,t,n)},"name",{value:"ConnectionConsensusState"}),e}(),e.QueryConnectionRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.connectionId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.connectionId&&Object.hasOwnProperty.call(e,"connectionId")&&t.uint32(10).string(e.connectionId),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.QueryConnectionRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.connectionId=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.QueryConnectionRequest)return e;var t=new s.ibc.core.connection.v1.QueryConnectionRequest;return null!=e.connectionId&&(t.connectionId=String(e.connectionId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.connectionId=""),null!=e.connectionId&&e.hasOwnProperty("connectionId")&&(n.connectionId=e.connectionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryConnectionResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.connection=null,e.prototype.proof=a.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.connection&&Object.hasOwnProperty.call(e,"connection")&&s.ibc.core.connection.v1.ConnectionEnd.encode(e.connection,t.uint32(10).fork()).ldelim(),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&s.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.QueryConnectionResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.connection=s.ibc.core.connection.v1.ConnectionEnd.decode(e,e.uint32());break;case 2:r.proof=e.bytes();break;case 3:r.proofHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.QueryConnectionResponse)return e;var t=new s.ibc.core.connection.v1.QueryConnectionResponse;if(null!=e.connection){if("object"!=typeof e.connection)throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.connection: object expected");t.connection=s.ibc.core.connection.v1.ConnectionEnd.fromObject(e.connection)}if(null!=e.proof&&("string"==typeof e.proof?a.base64.decode(e.proof,t.proof=a.newBuffer(a.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.connection.v1.QueryConnectionResponse.proofHeight: object expected");t.proofHeight=s.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.connection=null,t.bytes===String?n.proof="":(n.proof=[],t.bytes!==Array&&(n.proof=a.newBuffer(n.proof))),n.proofHeight=null),null!=e.connection&&e.hasOwnProperty("connection")&&(n.connection=s.ibc.core.connection.v1.ConnectionEnd.toObject(e.connection,t)),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=t.bytes===String?a.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(n.proofHeight=s.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryConnectionsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.pagination=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageRequest.encode(e.pagination,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.QueryConnectionsRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.pagination=s.cosmos.base.query.v1beta1.PageRequest.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.QueryConnectionsRequest)return e;var t=new s.ibc.core.connection.v1.QueryConnectionsRequest;if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.connection.v1.QueryConnectionsRequest.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageRequest.fromObject(e.pagination)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.pagination=null),null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageRequest.toObject(e.pagination,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryConnectionsResponse=function(){function e(e){if(this.connections=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.connections=a.emptyArray,e.prototype.pagination=null,e.prototype.height=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.connections&&e.connections.length)for(var n=0;n<e.connections.length;++n)s.ibc.core.connection.v1.IdentifiedConnection.encode(e.connections[n],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&s.cosmos.base.query.v1beta1.PageResponse.encode(e.pagination,t.uint32(18).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&s.ibc.core.client.v1.Height.encode(e.height,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.QueryConnectionsResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.connections&&r.connections.length||(r.connections=[]),r.connections.push(s.ibc.core.connection.v1.IdentifiedConnection.decode(e,e.uint32()));break;case 2:r.pagination=s.cosmos.base.query.v1beta1.PageResponse.decode(e,e.uint32());break;case 3:r.height=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.QueryConnectionsResponse)return e;var t=new s.ibc.core.connection.v1.QueryConnectionsResponse;if(e.connections){if(!Array.isArray(e.connections))throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: array expected");t.connections=[];for(var n=0;n<e.connections.length;++n){if("object"!=typeof e.connections[n])throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.connections: object expected");t.connections[n]=s.ibc.core.connection.v1.IdentifiedConnection.fromObject(e.connections[n])}}if(null!=e.pagination){if("object"!=typeof e.pagination)throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.pagination: object expected");t.pagination=s.cosmos.base.query.v1beta1.PageResponse.fromObject(e.pagination)}if(null!=e.height){if("object"!=typeof e.height)throw TypeError(".ibc.core.connection.v1.QueryConnectionsResponse.height: object expected");t.height=s.ibc.core.client.v1.Height.fromObject(e.height)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.connections=[]),t.defaults&&(n.pagination=null,n.height=null),e.connections&&e.connections.length){n.connections=[];for(var r=0;r<e.connections.length;++r)n.connections[r]=s.ibc.core.connection.v1.IdentifiedConnection.toObject(e.connections[r],t)}return null!=e.pagination&&e.hasOwnProperty("pagination")&&(n.pagination=s.cosmos.base.query.v1beta1.PageResponse.toObject(e.pagination,t)),null!=e.height&&e.hasOwnProperty("height")&&(n.height=s.ibc.core.client.v1.Height.toObject(e.height,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryClientConnectionsRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(10).string(e.clientId),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.QueryClientConnectionsRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.clientId=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.QueryClientConnectionsRequest)return e;var t=new s.ibc.core.connection.v1.QueryClientConnectionsRequest;return null!=e.clientId&&(t.clientId=String(e.clientId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.clientId=""),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryClientConnectionsResponse=function(){function e(e){if(this.connectionPaths=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.connectionPaths=a.emptyArray,e.prototype.proof=a.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.connectionPaths&&e.connectionPaths.length)for(var n=0;n<e.connectionPaths.length;++n)t.uint32(10).string(e.connectionPaths[n]);return null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&s.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.QueryClientConnectionsResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.connectionPaths&&r.connectionPaths.length||(r.connectionPaths=[]),r.connectionPaths.push(e.string());break;case 2:r.proof=e.bytes();break;case 3:r.proofHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.QueryClientConnectionsResponse)return e;var t=new s.ibc.core.connection.v1.QueryClientConnectionsResponse;if(e.connectionPaths){if(!Array.isArray(e.connectionPaths))throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.connectionPaths: array expected");t.connectionPaths=[];for(var n=0;n<e.connectionPaths.length;++n)t.connectionPaths[n]=String(e.connectionPaths[n])}if(null!=e.proof&&("string"==typeof e.proof?a.base64.decode(e.proof,t.proof=a.newBuffer(a.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.connection.v1.QueryClientConnectionsResponse.proofHeight: object expected");t.proofHeight=s.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.connectionPaths=[]),t.defaults&&(t.bytes===String?n.proof="":(n.proof=[],t.bytes!==Array&&(n.proof=a.newBuffer(n.proof))),n.proofHeight=null),e.connectionPaths&&e.connectionPaths.length){n.connectionPaths=[];for(var r=0;r<e.connectionPaths.length;++r)n.connectionPaths[r]=e.connectionPaths[r]}return null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=t.bytes===String?a.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(n.proofHeight=s.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryConnectionClientStateRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.connectionId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.connectionId&&Object.hasOwnProperty.call(e,"connectionId")&&t.uint32(10).string(e.connectionId),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.QueryConnectionClientStateRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.connectionId=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.QueryConnectionClientStateRequest)return e;var t=new s.ibc.core.connection.v1.QueryConnectionClientStateRequest;return null!=e.connectionId&&(t.connectionId=String(e.connectionId)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.connectionId=""),null!=e.connectionId&&e.hasOwnProperty("connectionId")&&(n.connectionId=e.connectionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryConnectionClientStateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.identifiedClientState=null,e.prototype.proof=a.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.identifiedClientState&&Object.hasOwnProperty.call(e,"identifiedClientState")&&s.ibc.core.client.v1.IdentifiedClientState.encode(e.identifiedClientState,t.uint32(10).fork()).ldelim(),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(18).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&s.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.QueryConnectionClientStateResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.identifiedClientState=s.ibc.core.client.v1.IdentifiedClientState.decode(e,e.uint32());break;case 2:r.proof=e.bytes();break;case 3:r.proofHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.QueryConnectionClientStateResponse)return e;var t=new s.ibc.core.connection.v1.QueryConnectionClientStateResponse;if(null!=e.identifiedClientState){if("object"!=typeof e.identifiedClientState)throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.identifiedClientState: object expected");t.identifiedClientState=s.ibc.core.client.v1.IdentifiedClientState.fromObject(e.identifiedClientState)}if(null!=e.proof&&("string"==typeof e.proof?a.base64.decode(e.proof,t.proof=a.newBuffer(a.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.connection.v1.QueryConnectionClientStateResponse.proofHeight: object expected");t.proofHeight=s.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.identifiedClientState=null,t.bytes===String?n.proof="":(n.proof=[],t.bytes!==Array&&(n.proof=a.newBuffer(n.proof))),n.proofHeight=null),null!=e.identifiedClientState&&e.hasOwnProperty("identifiedClientState")&&(n.identifiedClientState=s.ibc.core.client.v1.IdentifiedClientState.toObject(e.identifiedClientState,t)),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=t.bytes===String?a.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(n.proofHeight=s.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryConnectionConsensusStateRequest=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.connectionId="",e.prototype.versionNumber=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.versionHeight=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.connectionId&&Object.hasOwnProperty.call(e,"connectionId")&&t.uint32(10).string(e.connectionId),null!=e.versionNumber&&Object.hasOwnProperty.call(e,"versionNumber")&&t.uint32(16).uint64(e.versionNumber),null!=e.versionHeight&&Object.hasOwnProperty.call(e,"versionHeight")&&t.uint32(24).uint64(e.versionHeight),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.QueryConnectionConsensusStateRequest;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.connectionId=e.string();break;case 2:r.versionNumber=e.uint64();break;case 3:r.versionHeight=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.QueryConnectionConsensusStateRequest)return e;var t=new s.ibc.core.connection.v1.QueryConnectionConsensusStateRequest;return null!=e.connectionId&&(t.connectionId=String(e.connectionId)),null!=e.versionNumber&&(a.Long?(t.versionNumber=a.Long.fromValue(e.versionNumber)).unsigned=!0:"string"==typeof e.versionNumber?t.versionNumber=parseInt(e.versionNumber,10):"number"==typeof e.versionNumber?t.versionNumber=e.versionNumber:"object"==typeof e.versionNumber&&(t.versionNumber=new a.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0))),null!=e.versionHeight&&(a.Long?(t.versionHeight=a.Long.fromValue(e.versionHeight)).unsigned=!0:"string"==typeof e.versionHeight?t.versionHeight=parseInt(e.versionHeight,10):"number"==typeof e.versionHeight?t.versionHeight=e.versionHeight:"object"==typeof e.versionHeight&&(t.versionHeight=new a.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(n.connectionId="",a.Long){var r=new a.Long(0,0,!0);n.versionNumber=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.versionNumber=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!0);n.versionHeight=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.versionHeight=t.longs===String?"0":0}return null!=e.connectionId&&e.hasOwnProperty("connectionId")&&(n.connectionId=e.connectionId),null!=e.versionNumber&&e.hasOwnProperty("versionNumber")&&("number"==typeof e.versionNumber?n.versionNumber=t.longs===String?String(e.versionNumber):e.versionNumber:n.versionNumber=t.longs===String?a.Long.prototype.toString.call(e.versionNumber):t.longs===Number?new a.LongBits(e.versionNumber.low>>>0,e.versionNumber.high>>>0).toNumber(!0):e.versionNumber),null!=e.versionHeight&&e.hasOwnProperty("versionHeight")&&("number"==typeof e.versionHeight?n.versionHeight=t.longs===String?String(e.versionHeight):e.versionHeight:n.versionHeight=t.longs===String?a.Long.prototype.toString.call(e.versionHeight):t.longs===Number?new a.LongBits(e.versionHeight.low>>>0,e.versionHeight.high>>>0).toNumber(!0):e.versionHeight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.QueryConnectionConsensusStateResponse=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.consensusState=null,e.prototype.clientId="",e.prototype.proof=a.newBuffer([]),e.prototype.proofHeight=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.consensusState&&Object.hasOwnProperty.call(e,"consensusState")&&s.google.protobuf.Any.encode(e.consensusState,t.uint32(10).fork()).ldelim(),null!=e.clientId&&Object.hasOwnProperty.call(e,"clientId")&&t.uint32(18).string(e.clientId),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&t.uint32(26).bytes(e.proof),null!=e.proofHeight&&Object.hasOwnProperty.call(e,"proofHeight")&&s.ibc.core.client.v1.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.ibc.core.connection.v1.QueryConnectionConsensusStateResponse;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.consensusState=s.google.protobuf.Any.decode(e,e.uint32());break;case 2:r.clientId=e.string();break;case 3:r.proof=e.bytes();break;case 4:r.proofHeight=s.ibc.core.client.v1.Height.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.ibc.core.connection.v1.QueryConnectionConsensusStateResponse)return e;var t=new s.ibc.core.connection.v1.QueryConnectionConsensusStateResponse;if(null!=e.consensusState){if("object"!=typeof e.consensusState)throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.consensusState: object expected");t.consensusState=s.google.protobuf.Any.fromObject(e.consensusState)}if(null!=e.clientId&&(t.clientId=String(e.clientId)),null!=e.proof&&("string"==typeof e.proof?a.base64.decode(e.proof,t.proof=a.newBuffer(a.base64.length(e.proof)),0):e.proof.length&&(t.proof=e.proof)),null!=e.proofHeight){if("object"!=typeof e.proofHeight)throw TypeError(".ibc.core.connection.v1.QueryConnectionConsensusStateResponse.proofHeight: object expected");t.proofHeight=s.ibc.core.client.v1.Height.fromObject(e.proofHeight)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.consensusState=null,n.clientId="",t.bytes===String?n.proof="":(n.proof=[],t.bytes!==Array&&(n.proof=a.newBuffer(n.proof))),n.proofHeight=null),null!=e.consensusState&&e.hasOwnProperty("consensusState")&&(n.consensusState=s.google.protobuf.Any.toObject(e.consensusState,t)),null!=e.clientId&&e.hasOwnProperty("clientId")&&(n.clientId=e.clientId),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=t.bytes===String?a.base64.encode(e.proof,0,e.proof.length):t.bytes===Array?Array.prototype.slice.call(e.proof):e.proof),null!=e.proofHeight&&e.hasOwnProperty("proofHeight")&&(n.proofHeight=s.ibc.core.client.v1.Height.toObject(e.proofHeight,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e}(),e})(),t.tendermint=s.tendermint=(()=>{const e={};return e.crypto=function(){const e={};return e.PublicKey=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.ed25519=a.newBuffer([]),e.prototype.secp256k1=a.newBuffer([]),Object.defineProperty(e.prototype,"sum",{get:a.oneOfGetter(t=["ed25519","secp256k1"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.ed25519&&Object.hasOwnProperty.call(e,"ed25519")&&t.uint32(10).bytes(e.ed25519),null!=e.secp256k1&&Object.hasOwnProperty.call(e,"secp256k1")&&t.uint32(18).bytes(e.secp256k1),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.crypto.PublicKey;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.ed25519=e.bytes();break;case 2:r.secp256k1=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.crypto.PublicKey)return e;var t=new s.tendermint.crypto.PublicKey;return null!=e.ed25519&&("string"==typeof e.ed25519?a.base64.decode(e.ed25519,t.ed25519=a.newBuffer(a.base64.length(e.ed25519)),0):e.ed25519.length&&(t.ed25519=e.ed25519)),null!=e.secp256k1&&("string"==typeof e.secp256k1?a.base64.decode(e.secp256k1,t.secp256k1=a.newBuffer(a.base64.length(e.secp256k1)),0):e.secp256k1.length&&(t.secp256k1=e.secp256k1)),t},e.toObject=function(e,t){t||(t={});var n={};return null!=e.ed25519&&e.hasOwnProperty("ed25519")&&(n.ed25519=t.bytes===String?a.base64.encode(e.ed25519,0,e.ed25519.length):t.bytes===Array?Array.prototype.slice.call(e.ed25519):e.ed25519,t.oneofs&&(n.sum="ed25519")),null!=e.secp256k1&&e.hasOwnProperty("secp256k1")&&(n.secp256k1=t.bytes===String?a.base64.encode(e.secp256k1,0,e.secp256k1.length):t.bytes===Array?Array.prototype.slice.call(e.secp256k1):e.secp256k1,t.oneofs&&(n.sum="secp256k1")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Proof=function(){function e(e){if(this.aunts=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.total=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.index=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.leafHash=a.newBuffer([]),e.prototype.aunts=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.total&&Object.hasOwnProperty.call(e,"total")&&t.uint32(8).int64(e.total),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&t.uint32(16).int64(e.index),null!=e.leafHash&&Object.hasOwnProperty.call(e,"leafHash")&&t.uint32(26).bytes(e.leafHash),null!=e.aunts&&e.aunts.length)for(var n=0;n<e.aunts.length;++n)t.uint32(34).bytes(e.aunts[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.crypto.Proof;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.total=e.int64();break;case 2:r.index=e.int64();break;case 3:r.leafHash=e.bytes();break;case 4:r.aunts&&r.aunts.length||(r.aunts=[]),r.aunts.push(e.bytes());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.crypto.Proof)return e;var t=new s.tendermint.crypto.Proof;if(null!=e.total&&(a.Long?(t.total=a.Long.fromValue(e.total)).unsigned=!1:"string"==typeof e.total?t.total=parseInt(e.total,10):"number"==typeof e.total?t.total=e.total:"object"==typeof e.total&&(t.total=new a.LongBits(e.total.low>>>0,e.total.high>>>0).toNumber())),null!=e.index&&(a.Long?(t.index=a.Long.fromValue(e.index)).unsigned=!1:"string"==typeof e.index?t.index=parseInt(e.index,10):"number"==typeof e.index?t.index=e.index:"object"==typeof e.index&&(t.index=new a.LongBits(e.index.low>>>0,e.index.high>>>0).toNumber())),null!=e.leafHash&&("string"==typeof e.leafHash?a.base64.decode(e.leafHash,t.leafHash=a.newBuffer(a.base64.length(e.leafHash)),0):e.leafHash.length&&(t.leafHash=e.leafHash)),e.aunts){if(!Array.isArray(e.aunts))throw TypeError(".tendermint.crypto.Proof.aunts: array expected");t.aunts=[];for(var n=0;n<e.aunts.length;++n)"string"==typeof e.aunts[n]?a.base64.decode(e.aunts[n],t.aunts[n]=a.newBuffer(a.base64.length(e.aunts[n])),0):e.aunts[n].length&&(t.aunts[n]=e.aunts[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.aunts=[]),t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.total=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.total=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!1);n.index=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.index=t.longs===String?"0":0;t.bytes===String?n.leafHash="":(n.leafHash=[],t.bytes!==Array&&(n.leafHash=a.newBuffer(n.leafHash)))}if(null!=e.total&&e.hasOwnProperty("total")&&("number"==typeof e.total?n.total=t.longs===String?String(e.total):e.total:n.total=t.longs===String?a.Long.prototype.toString.call(e.total):t.longs===Number?new a.LongBits(e.total.low>>>0,e.total.high>>>0).toNumber():e.total),null!=e.index&&e.hasOwnProperty("index")&&("number"==typeof e.index?n.index=t.longs===String?String(e.index):e.index:n.index=t.longs===String?a.Long.prototype.toString.call(e.index):t.longs===Number?new a.LongBits(e.index.low>>>0,e.index.high>>>0).toNumber():e.index),null!=e.leafHash&&e.hasOwnProperty("leafHash")&&(n.leafHash=t.bytes===String?a.base64.encode(e.leafHash,0,e.leafHash.length):t.bytes===Array?Array.prototype.slice.call(e.leafHash):e.leafHash),e.aunts&&e.aunts.length){n.aunts=[];for(var i=0;i<e.aunts.length;++i)n.aunts[i]=t.bytes===String?a.base64.encode(e.aunts[i],0,e.aunts[i].length):t.bytes===Array?Array.prototype.slice.call(e.aunts[i]):e.aunts[i]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ValueOp=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.key=a.newBuffer([]),e.prototype.proof=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).bytes(e.key),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&s.tendermint.crypto.Proof.encode(e.proof,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.crypto.ValueOp;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.key=e.bytes();break;case 2:r.proof=s.tendermint.crypto.Proof.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.crypto.ValueOp)return e;var t=new s.tendermint.crypto.ValueOp;if(null!=e.key&&("string"==typeof e.key?a.base64.decode(e.key,t.key=a.newBuffer(a.base64.length(e.key)),0):e.key.length&&(t.key=e.key)),null!=e.proof){if("object"!=typeof e.proof)throw TypeError(".tendermint.crypto.ValueOp.proof: object expected");t.proof=s.tendermint.crypto.Proof.fromObject(e.proof)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.key="":(n.key=[],t.bytes!==Array&&(n.key=a.newBuffer(n.key))),n.proof=null),null!=e.key&&e.hasOwnProperty("key")&&(n.key=t.bytes===String?a.base64.encode(e.key,0,e.key.length):t.bytes===Array?Array.prototype.slice.call(e.key):e.key),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=s.tendermint.crypto.Proof.toObject(e.proof,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.DominoOp=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.key="",e.prototype.input="",e.prototype.output="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).string(e.key),null!=e.input&&Object.hasOwnProperty.call(e,"input")&&t.uint32(18).string(e.input),null!=e.output&&Object.hasOwnProperty.call(e,"output")&&t.uint32(26).string(e.output),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.crypto.DominoOp;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.key=e.string();break;case 2:r.input=e.string();break;case 3:r.output=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.crypto.DominoOp)return e;var t=new s.tendermint.crypto.DominoOp;return null!=e.key&&(t.key=String(e.key)),null!=e.input&&(t.input=String(e.input)),null!=e.output&&(t.output=String(e.output)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.key="",n.input="",n.output=""),null!=e.key&&e.hasOwnProperty("key")&&(n.key=e.key),null!=e.input&&e.hasOwnProperty("input")&&(n.input=e.input),null!=e.output&&e.hasOwnProperty("output")&&(n.output=e.output),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ProofOp=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.type="",e.prototype.key=a.newBuffer([]),e.prototype.data=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(18).bytes(e.key),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(26).bytes(e.data),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.crypto.ProofOp;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.type=e.string();break;case 2:r.key=e.bytes();break;case 3:r.data=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.crypto.ProofOp)return e;var t=new s.tendermint.crypto.ProofOp;return null!=e.type&&(t.type=String(e.type)),null!=e.key&&("string"==typeof e.key?a.base64.decode(e.key,t.key=a.newBuffer(a.base64.length(e.key)),0):e.key.length&&(t.key=e.key)),null!=e.data&&("string"==typeof e.data?a.base64.decode(e.data,t.data=a.newBuffer(a.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.type="",t.bytes===String?n.key="":(n.key=[],t.bytes!==Array&&(n.key=a.newBuffer(n.key))),t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=a.newBuffer(n.data)))),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.key&&e.hasOwnProperty("key")&&(n.key=t.bytes===String?a.base64.encode(e.key,0,e.key.length):t.bytes===Array?Array.prototype.slice.call(e.key):e.key),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?a.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ProofOps=function(){function e(e){if(this.ops=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.ops=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.ops&&e.ops.length)for(var n=0;n<e.ops.length;++n)s.tendermint.crypto.ProofOp.encode(e.ops[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.crypto.ProofOps;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.ops&&r.ops.length||(r.ops=[]),r.ops.push(s.tendermint.crypto.ProofOp.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.crypto.ProofOps)return e;var t=new s.tendermint.crypto.ProofOps;if(e.ops){if(!Array.isArray(e.ops))throw TypeError(".tendermint.crypto.ProofOps.ops: array expected");t.ops=[];for(var n=0;n<e.ops.length;++n){if("object"!=typeof e.ops[n])throw TypeError(".tendermint.crypto.ProofOps.ops: object expected");t.ops[n]=s.tendermint.crypto.ProofOp.fromObject(e.ops[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.ops=[]),e.ops&&e.ops.length){n.ops=[];for(var r=0;r<e.ops.length;++r)n.ops[r]=s.tendermint.crypto.ProofOp.toObject(e.ops[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.libs=function(){const e={};return e.bits=function(){const e={};return e.BitArray=function(){function e(e){if(this.elems=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.bits=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.elems=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.bits&&Object.hasOwnProperty.call(e,"bits")&&t.uint32(8).int64(e.bits),null!=e.elems&&e.elems.length){t.uint32(18).fork();for(var n=0;n<e.elems.length;++n)t.uint64(e.elems[n]);t.ldelim()}return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.libs.bits.BitArray;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.bits=e.int64();break;case 2:if(r.elems&&r.elems.length||(r.elems=[]),2==(7&o))for(var a=e.uint32()+e.pos;e.pos<a;)r.elems.push(e.uint64());else r.elems.push(e.uint64());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.libs.bits.BitArray)return e;var t=new s.tendermint.libs.bits.BitArray;if(null!=e.bits&&(a.Long?(t.bits=a.Long.fromValue(e.bits)).unsigned=!1:"string"==typeof e.bits?t.bits=parseInt(e.bits,10):"number"==typeof e.bits?t.bits=e.bits:"object"==typeof e.bits&&(t.bits=new a.LongBits(e.bits.low>>>0,e.bits.high>>>0).toNumber())),e.elems){if(!Array.isArray(e.elems))throw TypeError(".tendermint.libs.bits.BitArray.elems: array expected");t.elems=[];for(var n=0;n<e.elems.length;++n)a.Long?(t.elems[n]=a.Long.fromValue(e.elems[n])).unsigned=!0:"string"==typeof e.elems[n]?t.elems[n]=parseInt(e.elems[n],10):"number"==typeof e.elems[n]?t.elems[n]=e.elems[n]:"object"==typeof e.elems[n]&&(t.elems[n]=new a.LongBits(e.elems[n].low>>>0,e.elems[n].high>>>0).toNumber(!0))}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.elems=[]),t.defaults)if(a.Long){var r=new a.Long(0,0,!1);n.bits=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.bits=t.longs===String?"0":0;if(null!=e.bits&&e.hasOwnProperty("bits")&&("number"==typeof e.bits?n.bits=t.longs===String?String(e.bits):e.bits:n.bits=t.longs===String?a.Long.prototype.toString.call(e.bits):t.longs===Number?new a.LongBits(e.bits.low>>>0,e.bits.high>>>0).toNumber():e.bits),e.elems&&e.elems.length){n.elems=[];for(var i=0;i<e.elems.length;++i)"number"==typeof e.elems[i]?n.elems[i]=t.longs===String?String(e.elems[i]):e.elems[i]:n.elems[i]=t.longs===String?a.Long.prototype.toString.call(e.elems[i]):t.longs===Number?new a.LongBits(e.elems[i].low>>>0,e.elems[i].high>>>0).toNumber(!0):e.elems[i]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e}(),e.types=function(){const e={};return e.BlockIDFlag=function(){const e={},t=Object.create(e);return t[e[0]="BLOCK_ID_FLAG_UNKNOWN"]=0,t[e[1]="BLOCK_ID_FLAG_ABSENT"]=1,t[e[2]="BLOCK_ID_FLAG_COMMIT"]=2,t[e[3]="BLOCK_ID_FLAG_NIL"]=3,t}(),e.SignedMsgType=function(){const e={},t=Object.create(e);return t[e[0]="SIGNED_MSG_TYPE_UNKNOWN"]=0,t[e[1]="SIGNED_MSG_TYPE_PREVOTE"]=1,t[e[2]="SIGNED_MSG_TYPE_PRECOMMIT"]=2,t[e[32]="SIGNED_MSG_TYPE_PROPOSAL"]=32,t}(),e.PartSetHeader=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.total=0,e.prototype.hash=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.total&&Object.hasOwnProperty.call(e,"total")&&t.uint32(8).uint32(e.total),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(18).bytes(e.hash),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.PartSetHeader;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.total=e.uint32();break;case 2:r.hash=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.PartSetHeader)return e;var t=new s.tendermint.types.PartSetHeader;return null!=e.total&&(t.total=e.total>>>0),null!=e.hash&&("string"==typeof e.hash?a.base64.decode(e.hash,t.hash=a.newBuffer(a.base64.length(e.hash)),0):e.hash.length&&(t.hash=e.hash)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.total=0,t.bytes===String?n.hash="":(n.hash=[],t.bytes!==Array&&(n.hash=a.newBuffer(n.hash)))),null!=e.total&&e.hasOwnProperty("total")&&(n.total=e.total),null!=e.hash&&e.hasOwnProperty("hash")&&(n.hash=t.bytes===String?a.base64.encode(e.hash,0,e.hash.length):t.bytes===Array?Array.prototype.slice.call(e.hash):e.hash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Part=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.index=0,e.prototype.bytes=a.newBuffer([]),e.prototype.proof=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&t.uint32(8).uint32(e.index),null!=e.bytes&&Object.hasOwnProperty.call(e,"bytes")&&t.uint32(18).bytes(e.bytes),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&s.tendermint.crypto.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.Part;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.index=e.uint32();break;case 2:r.bytes=e.bytes();break;case 3:r.proof=s.tendermint.crypto.Proof.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.Part)return e;var t=new s.tendermint.types.Part;if(null!=e.index&&(t.index=e.index>>>0),null!=e.bytes&&("string"==typeof e.bytes?a.base64.decode(e.bytes,t.bytes=a.newBuffer(a.base64.length(e.bytes)),0):e.bytes.length&&(t.bytes=e.bytes)),null!=e.proof){if("object"!=typeof e.proof)throw TypeError(".tendermint.types.Part.proof: object expected");t.proof=s.tendermint.crypto.Proof.fromObject(e.proof)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.index=0,t.bytes===String?n.bytes="":(n.bytes=[],t.bytes!==Array&&(n.bytes=a.newBuffer(n.bytes))),n.proof=null),null!=e.index&&e.hasOwnProperty("index")&&(n.index=e.index),null!=e.bytes&&e.hasOwnProperty("bytes")&&(n.bytes=t.bytes===String?a.base64.encode(e.bytes,0,e.bytes.length):t.bytes===Array?Array.prototype.slice.call(e.bytes):e.bytes),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=s.tendermint.crypto.Proof.toObject(e.proof,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.BlockID=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.hash=a.newBuffer([]),e.prototype.partSetHeader=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(10).bytes(e.hash),null!=e.partSetHeader&&Object.hasOwnProperty.call(e,"partSetHeader")&&s.tendermint.types.PartSetHeader.encode(e.partSetHeader,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.BlockID;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.hash=e.bytes();break;case 2:r.partSetHeader=s.tendermint.types.PartSetHeader.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.BlockID)return e;var t=new s.tendermint.types.BlockID;if(null!=e.hash&&("string"==typeof e.hash?a.base64.decode(e.hash,t.hash=a.newBuffer(a.base64.length(e.hash)),0):e.hash.length&&(t.hash=e.hash)),null!=e.partSetHeader){if("object"!=typeof e.partSetHeader)throw TypeError(".tendermint.types.BlockID.partSetHeader: object expected");t.partSetHeader=s.tendermint.types.PartSetHeader.fromObject(e.partSetHeader)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.hash="":(n.hash=[],t.bytes!==Array&&(n.hash=a.newBuffer(n.hash))),n.partSetHeader=null),null!=e.hash&&e.hasOwnProperty("hash")&&(n.hash=t.bytes===String?a.base64.encode(e.hash,0,e.hash.length):t.bytes===Array?Array.prototype.slice.call(e.hash):e.hash),null!=e.partSetHeader&&e.hasOwnProperty("partSetHeader")&&(n.partSetHeader=s.tendermint.types.PartSetHeader.toObject(e.partSetHeader,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Header=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.version=null,e.prototype.chainId="",e.prototype.height=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.time=null,e.prototype.lastBlockId=null,e.prototype.lastCommitHash=a.newBuffer([]),e.prototype.dataHash=a.newBuffer([]),e.prototype.validatorsHash=a.newBuffer([]),e.prototype.nextValidatorsHash=a.newBuffer([]),e.prototype.consensusHash=a.newBuffer([]),e.prototype.appHash=a.newBuffer([]),e.prototype.lastResultsHash=a.newBuffer([]),e.prototype.evidenceHash=a.newBuffer([]),e.prototype.proposerAddress=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.version&&Object.hasOwnProperty.call(e,"version")&&s.tendermint.version.Consensus.encode(e.version,t.uint32(10).fork()).ldelim(),null!=e.chainId&&Object.hasOwnProperty.call(e,"chainId")&&t.uint32(18).string(e.chainId),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(24).int64(e.height),null!=e.time&&Object.hasOwnProperty.call(e,"time")&&s.google.protobuf.Timestamp.encode(e.time,t.uint32(34).fork()).ldelim(),null!=e.lastBlockId&&Object.hasOwnProperty.call(e,"lastBlockId")&&s.tendermint.types.BlockID.encode(e.lastBlockId,t.uint32(42).fork()).ldelim(),null!=e.lastCommitHash&&Object.hasOwnProperty.call(e,"lastCommitHash")&&t.uint32(50).bytes(e.lastCommitHash),null!=e.dataHash&&Object.hasOwnProperty.call(e,"dataHash")&&t.uint32(58).bytes(e.dataHash),null!=e.validatorsHash&&Object.hasOwnProperty.call(e,"validatorsHash")&&t.uint32(66).bytes(e.validatorsHash),null!=e.nextValidatorsHash&&Object.hasOwnProperty.call(e,"nextValidatorsHash")&&t.uint32(74).bytes(e.nextValidatorsHash),null!=e.consensusHash&&Object.hasOwnProperty.call(e,"consensusHash")&&t.uint32(82).bytes(e.consensusHash),null!=e.appHash&&Object.hasOwnProperty.call(e,"appHash")&&t.uint32(90).bytes(e.appHash),null!=e.lastResultsHash&&Object.hasOwnProperty.call(e,"lastResultsHash")&&t.uint32(98).bytes(e.lastResultsHash),null!=e.evidenceHash&&Object.hasOwnProperty.call(e,"evidenceHash")&&t.uint32(106).bytes(e.evidenceHash),null!=e.proposerAddress&&Object.hasOwnProperty.call(e,"proposerAddress")&&t.uint32(114).bytes(e.proposerAddress),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.Header;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.version=s.tendermint.version.Consensus.decode(e,e.uint32());break;case 2:r.chainId=e.string();break;case 3:r.height=e.int64();break;case 4:r.time=s.google.protobuf.Timestamp.decode(e,e.uint32());break;case 5:r.lastBlockId=s.tendermint.types.BlockID.decode(e,e.uint32());break;case 6:r.lastCommitHash=e.bytes();break;case 7:r.dataHash=e.bytes();break;case 8:r.validatorsHash=e.bytes();break;case 9:r.nextValidatorsHash=e.bytes();break;case 10:r.consensusHash=e.bytes();break;case 11:r.appHash=e.bytes();break;case 12:r.lastResultsHash=e.bytes();break;case 13:r.evidenceHash=e.bytes();break;case 14:r.proposerAddress=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.Header)return e;var t=new s.tendermint.types.Header;if(null!=e.version){if("object"!=typeof e.version)throw TypeError(".tendermint.types.Header.version: object expected");t.version=s.tendermint.version.Consensus.fromObject(e.version)}if(null!=e.chainId&&(t.chainId=String(e.chainId)),null!=e.height&&(a.Long?(t.height=a.Long.fromValue(e.height)).unsigned=!1:"string"==typeof e.height?t.height=parseInt(e.height,10):"number"==typeof e.height?t.height=e.height:"object"==typeof e.height&&(t.height=new a.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber())),null!=e.time){if("object"!=typeof e.time)throw TypeError(".tendermint.types.Header.time: object expected");t.time=s.google.protobuf.Timestamp.fromObject(e.time)}if(null!=e.lastBlockId){if("object"!=typeof e.lastBlockId)throw TypeError(".tendermint.types.Header.lastBlockId: object expected");t.lastBlockId=s.tendermint.types.BlockID.fromObject(e.lastBlockId)}return null!=e.lastCommitHash&&("string"==typeof e.lastCommitHash?a.base64.decode(e.lastCommitHash,t.lastCommitHash=a.newBuffer(a.base64.length(e.lastCommitHash)),0):e.lastCommitHash.length&&(t.lastCommitHash=e.lastCommitHash)),null!=e.dataHash&&("string"==typeof e.dataHash?a.base64.decode(e.dataHash,t.dataHash=a.newBuffer(a.base64.length(e.dataHash)),0):e.dataHash.length&&(t.dataHash=e.dataHash)),null!=e.validatorsHash&&("string"==typeof e.validatorsHash?a.base64.decode(e.validatorsHash,t.validatorsHash=a.newBuffer(a.base64.length(e.validatorsHash)),0):e.validatorsHash.length&&(t.validatorsHash=e.validatorsHash)),null!=e.nextValidatorsHash&&("string"==typeof e.nextValidatorsHash?a.base64.decode(e.nextValidatorsHash,t.nextValidatorsHash=a.newBuffer(a.base64.length(e.nextValidatorsHash)),0):e.nextValidatorsHash.length&&(t.nextValidatorsHash=e.nextValidatorsHash)),null!=e.consensusHash&&("string"==typeof e.consensusHash?a.base64.decode(e.consensusHash,t.consensusHash=a.newBuffer(a.base64.length(e.consensusHash)),0):e.consensusHash.length&&(t.consensusHash=e.consensusHash)),null!=e.appHash&&("string"==typeof e.appHash?a.base64.decode(e.appHash,t.appHash=a.newBuffer(a.base64.length(e.appHash)),0):e.appHash.length&&(t.appHash=e.appHash)),null!=e.lastResultsHash&&("string"==typeof e.lastResultsHash?a.base64.decode(e.lastResultsHash,t.lastResultsHash=a.newBuffer(a.base64.length(e.lastResultsHash)),0):e.lastResultsHash.length&&(t.lastResultsHash=e.lastResultsHash)),null!=e.evidenceHash&&("string"==typeof e.evidenceHash?a.base64.decode(e.evidenceHash,t.evidenceHash=a.newBuffer(a.base64.length(e.evidenceHash)),0):e.evidenceHash.length&&(t.evidenceHash=e.evidenceHash)),null!=e.proposerAddress&&("string"==typeof e.proposerAddress?a.base64.decode(e.proposerAddress,t.proposerAddress=a.newBuffer(a.base64.length(e.proposerAddress)),0):e.proposerAddress.length&&(t.proposerAddress=e.proposerAddress)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(n.version=null,n.chainId="",a.Long){var r=new a.Long(0,0,!1);n.height=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.height=t.longs===String?"0":0;n.time=null,n.lastBlockId=null,t.bytes===String?n.lastCommitHash="":(n.lastCommitHash=[],t.bytes!==Array&&(n.lastCommitHash=a.newBuffer(n.lastCommitHash))),t.bytes===String?n.dataHash="":(n.dataHash=[],t.bytes!==Array&&(n.dataHash=a.newBuffer(n.dataHash))),t.bytes===String?n.validatorsHash="":(n.validatorsHash=[],t.bytes!==Array&&(n.validatorsHash=a.newBuffer(n.validatorsHash))),t.bytes===String?n.nextValidatorsHash="":(n.nextValidatorsHash=[],t.bytes!==Array&&(n.nextValidatorsHash=a.newBuffer(n.nextValidatorsHash))),t.bytes===String?n.consensusHash="":(n.consensusHash=[],t.bytes!==Array&&(n.consensusHash=a.newBuffer(n.consensusHash))),t.bytes===String?n.appHash="":(n.appHash=[],t.bytes!==Array&&(n.appHash=a.newBuffer(n.appHash))),t.bytes===String?n.lastResultsHash="":(n.lastResultsHash=[],t.bytes!==Array&&(n.lastResultsHash=a.newBuffer(n.lastResultsHash))),t.bytes===String?n.evidenceHash="":(n.evidenceHash=[],t.bytes!==Array&&(n.evidenceHash=a.newBuffer(n.evidenceHash))),t.bytes===String?n.proposerAddress="":(n.proposerAddress=[],t.bytes!==Array&&(n.proposerAddress=a.newBuffer(n.proposerAddress)))}return null!=e.version&&e.hasOwnProperty("version")&&(n.version=s.tendermint.version.Consensus.toObject(e.version,t)),null!=e.chainId&&e.hasOwnProperty("chainId")&&(n.chainId=e.chainId),null!=e.height&&e.hasOwnProperty("height")&&("number"==typeof e.height?n.height=t.longs===String?String(e.height):e.height:n.height=t.longs===String?a.Long.prototype.toString.call(e.height):t.longs===Number?new a.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber():e.height),null!=e.time&&e.hasOwnProperty("time")&&(n.time=s.google.protobuf.Timestamp.toObject(e.time,t)),null!=e.lastBlockId&&e.hasOwnProperty("lastBlockId")&&(n.lastBlockId=s.tendermint.types.BlockID.toObject(e.lastBlockId,t)),null!=e.lastCommitHash&&e.hasOwnProperty("lastCommitHash")&&(n.lastCommitHash=t.bytes===String?a.base64.encode(e.lastCommitHash,0,e.lastCommitHash.length):t.bytes===Array?Array.prototype.slice.call(e.lastCommitHash):e.lastCommitHash),null!=e.dataHash&&e.hasOwnProperty("dataHash")&&(n.dataHash=t.bytes===String?a.base64.encode(e.dataHash,0,e.dataHash.length):t.bytes===Array?Array.prototype.slice.call(e.dataHash):e.dataHash),null!=e.validatorsHash&&e.hasOwnProperty("validatorsHash")&&(n.validatorsHash=t.bytes===String?a.base64.encode(e.validatorsHash,0,e.validatorsHash.length):t.bytes===Array?Array.prototype.slice.call(e.validatorsHash):e.validatorsHash),null!=e.nextValidatorsHash&&e.hasOwnProperty("nextValidatorsHash")&&(n.nextValidatorsHash=t.bytes===String?a.base64.encode(e.nextValidatorsHash,0,e.nextValidatorsHash.length):t.bytes===Array?Array.prototype.slice.call(e.nextValidatorsHash):e.nextValidatorsHash),null!=e.consensusHash&&e.hasOwnProperty("consensusHash")&&(n.consensusHash=t.bytes===String?a.base64.encode(e.consensusHash,0,e.consensusHash.length):t.bytes===Array?Array.prototype.slice.call(e.consensusHash):e.consensusHash),null!=e.appHash&&e.hasOwnProperty("appHash")&&(n.appHash=t.bytes===String?a.base64.encode(e.appHash,0,e.appHash.length):t.bytes===Array?Array.prototype.slice.call(e.appHash):e.appHash),null!=e.lastResultsHash&&e.hasOwnProperty("lastResultsHash")&&(n.lastResultsHash=t.bytes===String?a.base64.encode(e.lastResultsHash,0,e.lastResultsHash.length):t.bytes===Array?Array.prototype.slice.call(e.lastResultsHash):e.lastResultsHash),null!=e.evidenceHash&&e.hasOwnProperty("evidenceHash")&&(n.evidenceHash=t.bytes===String?a.base64.encode(e.evidenceHash,0,e.evidenceHash.length):t.bytes===Array?Array.prototype.slice.call(e.evidenceHash):e.evidenceHash),null!=e.proposerAddress&&e.hasOwnProperty("proposerAddress")&&(n.proposerAddress=t.bytes===String?a.base64.encode(e.proposerAddress,0,e.proposerAddress.length):t.bytes===Array?Array.prototype.slice.call(e.proposerAddress):e.proposerAddress),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Data=function(){function e(e){if(this.txs=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.txs=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.txs&&e.txs.length)for(var n=0;n<e.txs.length;++n)t.uint32(10).bytes(e.txs[n]);return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.Data;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.txs&&r.txs.length||(r.txs=[]),r.txs.push(e.bytes());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.Data)return e;var t=new s.tendermint.types.Data;if(e.txs){if(!Array.isArray(e.txs))throw TypeError(".tendermint.types.Data.txs: array expected");t.txs=[];for(var n=0;n<e.txs.length;++n)"string"==typeof e.txs[n]?a.base64.decode(e.txs[n],t.txs[n]=a.newBuffer(a.base64.length(e.txs[n])),0):e.txs[n].length&&(t.txs[n]=e.txs[n])}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.txs=[]),e.txs&&e.txs.length){n.txs=[];for(var r=0;r<e.txs.length;++r)n.txs[r]=t.bytes===String?a.base64.encode(e.txs[r],0,e.txs[r].length):t.bytes===Array?Array.prototype.slice.call(e.txs[r]):e.txs[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Vote=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.type=0,e.prototype.height=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.round=0,e.prototype.blockId=null,e.prototype.timestamp=null,e.prototype.validatorAddress=a.newBuffer([]),e.prototype.validatorIndex=0,e.prototype.signature=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).int64(e.height),null!=e.round&&Object.hasOwnProperty.call(e,"round")&&t.uint32(24).int32(e.round),null!=e.blockId&&Object.hasOwnProperty.call(e,"blockId")&&s.tendermint.types.BlockID.encode(e.blockId,t.uint32(34).fork()).ldelim(),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&s.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(42).fork()).ldelim(),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(50).bytes(e.validatorAddress),null!=e.validatorIndex&&Object.hasOwnProperty.call(e,"validatorIndex")&&t.uint32(56).int32(e.validatorIndex),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(66).bytes(e.signature),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.Vote;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.type=e.int32();break;case 2:r.height=e.int64();break;case 3:r.round=e.int32();break;case 4:r.blockId=s.tendermint.types.BlockID.decode(e,e.uint32());break;case 5:r.timestamp=s.google.protobuf.Timestamp.decode(e,e.uint32());break;case 6:r.validatorAddress=e.bytes();break;case 7:r.validatorIndex=e.int32();break;case 8:r.signature=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.Vote)return e;var t=new s.tendermint.types.Vote;switch(e.type){case"SIGNED_MSG_TYPE_UNKNOWN":case 0:t.type=0;break;case"SIGNED_MSG_TYPE_PREVOTE":case 1:t.type=1;break;case"SIGNED_MSG_TYPE_PRECOMMIT":case 2:t.type=2;break;case"SIGNED_MSG_TYPE_PROPOSAL":case 32:t.type=32}if(null!=e.height&&(a.Long?(t.height=a.Long.fromValue(e.height)).unsigned=!1:"string"==typeof e.height?t.height=parseInt(e.height,10):"number"==typeof e.height?t.height=e.height:"object"==typeof e.height&&(t.height=new a.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber())),null!=e.round&&(t.round=0|e.round),null!=e.blockId){if("object"!=typeof e.blockId)throw TypeError(".tendermint.types.Vote.blockId: object expected");t.blockId=s.tendermint.types.BlockID.fromObject(e.blockId)}if(null!=e.timestamp){if("object"!=typeof e.timestamp)throw TypeError(".tendermint.types.Vote.timestamp: object expected");t.timestamp=s.google.protobuf.Timestamp.fromObject(e.timestamp)}return null!=e.validatorAddress&&("string"==typeof e.validatorAddress?a.base64.decode(e.validatorAddress,t.validatorAddress=a.newBuffer(a.base64.length(e.validatorAddress)),0):e.validatorAddress.length&&(t.validatorAddress=e.validatorAddress)),null!=e.validatorIndex&&(t.validatorIndex=0|e.validatorIndex),null!=e.signature&&("string"==typeof e.signature?a.base64.decode(e.signature,t.signature=a.newBuffer(a.base64.length(e.signature)),0):e.signature.length&&(t.signature=e.signature)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(n.type=t.enums===String?"SIGNED_MSG_TYPE_UNKNOWN":0,a.Long){var r=new a.Long(0,0,!1);n.height=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.height=t.longs===String?"0":0;n.round=0,n.blockId=null,n.timestamp=null,t.bytes===String?n.validatorAddress="":(n.validatorAddress=[],t.bytes!==Array&&(n.validatorAddress=a.newBuffer(n.validatorAddress))),n.validatorIndex=0,t.bytes===String?n.signature="":(n.signature=[],t.bytes!==Array&&(n.signature=a.newBuffer(n.signature)))}return null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?s.tendermint.types.SignedMsgType[e.type]:e.type),null!=e.height&&e.hasOwnProperty("height")&&("number"==typeof e.height?n.height=t.longs===String?String(e.height):e.height:n.height=t.longs===String?a.Long.prototype.toString.call(e.height):t.longs===Number?new a.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber():e.height),null!=e.round&&e.hasOwnProperty("round")&&(n.round=e.round),null!=e.blockId&&e.hasOwnProperty("blockId")&&(n.blockId=s.tendermint.types.BlockID.toObject(e.blockId,t)),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(n.timestamp=s.google.protobuf.Timestamp.toObject(e.timestamp,t)),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(n.validatorAddress=t.bytes===String?a.base64.encode(e.validatorAddress,0,e.validatorAddress.length):t.bytes===Array?Array.prototype.slice.call(e.validatorAddress):e.validatorAddress),null!=e.validatorIndex&&e.hasOwnProperty("validatorIndex")&&(n.validatorIndex=e.validatorIndex),null!=e.signature&&e.hasOwnProperty("signature")&&(n.signature=t.bytes===String?a.base64.encode(e.signature,0,e.signature.length):t.bytes===Array?Array.prototype.slice.call(e.signature):e.signature),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Commit=function(){function e(e){if(this.signatures=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.height=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.round=0,e.prototype.blockId=null,e.prototype.signatures=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(8).int64(e.height),null!=e.round&&Object.hasOwnProperty.call(e,"round")&&t.uint32(16).int32(e.round),null!=e.blockId&&Object.hasOwnProperty.call(e,"blockId")&&s.tendermint.types.BlockID.encode(e.blockId,t.uint32(26).fork()).ldelim(),null!=e.signatures&&e.signatures.length)for(var n=0;n<e.signatures.length;++n)s.tendermint.types.CommitSig.encode(e.signatures[n],t.uint32(34).fork()).ldelim();return t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.Commit;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.height=e.int64();break;case 2:r.round=e.int32();break;case 3:r.blockId=s.tendermint.types.BlockID.decode(e,e.uint32());break;case 4:r.signatures&&r.signatures.length||(r.signatures=[]),r.signatures.push(s.tendermint.types.CommitSig.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.Commit)return e;var t=new s.tendermint.types.Commit;if(null!=e.height&&(a.Long?(t.height=a.Long.fromValue(e.height)).unsigned=!1:"string"==typeof e.height?t.height=parseInt(e.height,10):"number"==typeof e.height?t.height=e.height:"object"==typeof e.height&&(t.height=new a.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber())),null!=e.round&&(t.round=0|e.round),null!=e.blockId){if("object"!=typeof e.blockId)throw TypeError(".tendermint.types.Commit.blockId: object expected");t.blockId=s.tendermint.types.BlockID.fromObject(e.blockId)}if(e.signatures){if(!Array.isArray(e.signatures))throw TypeError(".tendermint.types.Commit.signatures: array expected");t.signatures=[];for(var n=0;n<e.signatures.length;++n){if("object"!=typeof e.signatures[n])throw TypeError(".tendermint.types.Commit.signatures: object expected");t.signatures[n]=s.tendermint.types.CommitSig.fromObject(e.signatures[n])}}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.signatures=[]),t.defaults){if(a.Long){var r=new a.Long(0,0,!1);n.height=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.height=t.longs===String?"0":0;n.round=0,n.blockId=null}if(null!=e.height&&e.hasOwnProperty("height")&&("number"==typeof e.height?n.height=t.longs===String?String(e.height):e.height:n.height=t.longs===String?a.Long.prototype.toString.call(e.height):t.longs===Number?new a.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber():e.height),null!=e.round&&e.hasOwnProperty("round")&&(n.round=e.round),null!=e.blockId&&e.hasOwnProperty("blockId")&&(n.blockId=s.tendermint.types.BlockID.toObject(e.blockId,t)),e.signatures&&e.signatures.length){n.signatures=[];for(var i=0;i<e.signatures.length;++i)n.signatures[i]=s.tendermint.types.CommitSig.toObject(e.signatures[i],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.CommitSig=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.blockIdFlag=0,e.prototype.validatorAddress=a.newBuffer([]),e.prototype.timestamp=null,e.prototype.signature=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.blockIdFlag&&Object.hasOwnProperty.call(e,"blockIdFlag")&&t.uint32(8).int32(e.blockIdFlag),null!=e.validatorAddress&&Object.hasOwnProperty.call(e,"validatorAddress")&&t.uint32(18).bytes(e.validatorAddress),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&s.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(26).fork()).ldelim(),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(34).bytes(e.signature),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.CommitSig;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.blockIdFlag=e.int32();break;case 2:r.validatorAddress=e.bytes();break;case 3:r.timestamp=s.google.protobuf.Timestamp.decode(e,e.uint32());break;case 4:r.signature=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.CommitSig)return e;var t=new s.tendermint.types.CommitSig;switch(e.blockIdFlag){case"BLOCK_ID_FLAG_UNKNOWN":case 0:t.blockIdFlag=0;break;case"BLOCK_ID_FLAG_ABSENT":case 1:t.blockIdFlag=1;break;case"BLOCK_ID_FLAG_COMMIT":case 2:t.blockIdFlag=2;break;case"BLOCK_ID_FLAG_NIL":case 3:t.blockIdFlag=3}if(null!=e.validatorAddress&&("string"==typeof e.validatorAddress?a.base64.decode(e.validatorAddress,t.validatorAddress=a.newBuffer(a.base64.length(e.validatorAddress)),0):e.validatorAddress.length&&(t.validatorAddress=e.validatorAddress)),null!=e.timestamp){if("object"!=typeof e.timestamp)throw TypeError(".tendermint.types.CommitSig.timestamp: object expected");t.timestamp=s.google.protobuf.Timestamp.fromObject(e.timestamp)}return null!=e.signature&&("string"==typeof e.signature?a.base64.decode(e.signature,t.signature=a.newBuffer(a.base64.length(e.signature)),0):e.signature.length&&(t.signature=e.signature)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.blockIdFlag=t.enums===String?"BLOCK_ID_FLAG_UNKNOWN":0,t.bytes===String?n.validatorAddress="":(n.validatorAddress=[],t.bytes!==Array&&(n.validatorAddress=a.newBuffer(n.validatorAddress))),n.timestamp=null,t.bytes===String?n.signature="":(n.signature=[],t.bytes!==Array&&(n.signature=a.newBuffer(n.signature)))),null!=e.blockIdFlag&&e.hasOwnProperty("blockIdFlag")&&(n.blockIdFlag=t.enums===String?s.tendermint.types.BlockIDFlag[e.blockIdFlag]:e.blockIdFlag),null!=e.validatorAddress&&e.hasOwnProperty("validatorAddress")&&(n.validatorAddress=t.bytes===String?a.base64.encode(e.validatorAddress,0,e.validatorAddress.length):t.bytes===Array?Array.prototype.slice.call(e.validatorAddress):e.validatorAddress),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(n.timestamp=s.google.protobuf.Timestamp.toObject(e.timestamp,t)),null!=e.signature&&e.hasOwnProperty("signature")&&(n.signature=t.bytes===String?a.base64.encode(e.signature,0,e.signature.length):t.bytes===Array?Array.prototype.slice.call(e.signature):e.signature),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Proposal=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.type=0,e.prototype.height=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.round=0,e.prototype.polRound=0,e.prototype.blockId=null,e.prototype.timestamp=null,e.prototype.signature=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).int64(e.height),null!=e.round&&Object.hasOwnProperty.call(e,"round")&&t.uint32(24).int32(e.round),null!=e.polRound&&Object.hasOwnProperty.call(e,"polRound")&&t.uint32(32).int32(e.polRound),null!=e.blockId&&Object.hasOwnProperty.call(e,"blockId")&&s.tendermint.types.BlockID.encode(e.blockId,t.uint32(42).fork()).ldelim(),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&s.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(50).fork()).ldelim(),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(58).bytes(e.signature),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.Proposal;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.type=e.int32();break;case 2:r.height=e.int64();break;case 3:r.round=e.int32();break;case 4:r.polRound=e.int32();break;case 5:r.blockId=s.tendermint.types.BlockID.decode(e,e.uint32());break;case 6:r.timestamp=s.google.protobuf.Timestamp.decode(e,e.uint32());break;case 7:r.signature=e.bytes();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.Proposal)return e;var t=new s.tendermint.types.Proposal;switch(e.type){case"SIGNED_MSG_TYPE_UNKNOWN":case 0:t.type=0;break;case"SIGNED_MSG_TYPE_PREVOTE":case 1:t.type=1;break;case"SIGNED_MSG_TYPE_PRECOMMIT":case 2:t.type=2;break;case"SIGNED_MSG_TYPE_PROPOSAL":case 32:t.type=32}if(null!=e.height&&(a.Long?(t.height=a.Long.fromValue(e.height)).unsigned=!1:"string"==typeof e.height?t.height=parseInt(e.height,10):"number"==typeof e.height?t.height=e.height:"object"==typeof e.height&&(t.height=new a.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber())),null!=e.round&&(t.round=0|e.round),null!=e.polRound&&(t.polRound=0|e.polRound),null!=e.blockId){if("object"!=typeof e.blockId)throw TypeError(".tendermint.types.Proposal.blockId: object expected");t.blockId=s.tendermint.types.BlockID.fromObject(e.blockId)}if(null!=e.timestamp){if("object"!=typeof e.timestamp)throw TypeError(".tendermint.types.Proposal.timestamp: object expected");t.timestamp=s.google.protobuf.Timestamp.fromObject(e.timestamp)}return null!=e.signature&&("string"==typeof e.signature?a.base64.decode(e.signature,t.signature=a.newBuffer(a.base64.length(e.signature)),0):e.signature.length&&(t.signature=e.signature)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(n.type=t.enums===String?"SIGNED_MSG_TYPE_UNKNOWN":0,a.Long){var r=new a.Long(0,0,!1);n.height=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.height=t.longs===String?"0":0;n.round=0,n.polRound=0,n.blockId=null,n.timestamp=null,t.bytes===String?n.signature="":(n.signature=[],t.bytes!==Array&&(n.signature=a.newBuffer(n.signature)))}return null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?s.tendermint.types.SignedMsgType[e.type]:e.type),null!=e.height&&e.hasOwnProperty("height")&&("number"==typeof e.height?n.height=t.longs===String?String(e.height):e.height:n.height=t.longs===String?a.Long.prototype.toString.call(e.height):t.longs===Number?new a.LongBits(e.height.low>>>0,e.height.high>>>0).toNumber():e.height),null!=e.round&&e.hasOwnProperty("round")&&(n.round=e.round),null!=e.polRound&&e.hasOwnProperty("polRound")&&(n.polRound=e.polRound),null!=e.blockId&&e.hasOwnProperty("blockId")&&(n.blockId=s.tendermint.types.BlockID.toObject(e.blockId,t)),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(n.timestamp=s.google.protobuf.Timestamp.toObject(e.timestamp,t)),null!=e.signature&&e.hasOwnProperty("signature")&&(n.signature=t.bytes===String?a.base64.encode(e.signature,0,e.signature.length):t.bytes===Array?Array.prototype.slice.call(e.signature):e.signature),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.SignedHeader=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.header=null,e.prototype.commit=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&s.tendermint.types.Header.encode(e.header,t.uint32(10).fork()).ldelim(),null!=e.commit&&Object.hasOwnProperty.call(e,"commit")&&s.tendermint.types.Commit.encode(e.commit,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.SignedHeader;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.header=s.tendermint.types.Header.decode(e,e.uint32());break;case 2:r.commit=s.tendermint.types.Commit.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.SignedHeader)return e;var t=new s.tendermint.types.SignedHeader;if(null!=e.header){if("object"!=typeof e.header)throw TypeError(".tendermint.types.SignedHeader.header: object expected");t.header=s.tendermint.types.Header.fromObject(e.header)}if(null!=e.commit){if("object"!=typeof e.commit)throw TypeError(".tendermint.types.SignedHeader.commit: object expected");t.commit=s.tendermint.types.Commit.fromObject(e.commit)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.header=null,n.commit=null),null!=e.header&&e.hasOwnProperty("header")&&(n.header=s.tendermint.types.Header.toObject(e.header,t)),null!=e.commit&&e.hasOwnProperty("commit")&&(n.commit=s.tendermint.types.Commit.toObject(e.commit,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.LightBlock=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.signedHeader=null,e.prototype.validatorSet=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.signedHeader&&Object.hasOwnProperty.call(e,"signedHeader")&&s.tendermint.types.SignedHeader.encode(e.signedHeader,t.uint32(10).fork()).ldelim(),null!=e.validatorSet&&Object.hasOwnProperty.call(e,"validatorSet")&&s.tendermint.types.ValidatorSet.encode(e.validatorSet,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.LightBlock;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.signedHeader=s.tendermint.types.SignedHeader.decode(e,e.uint32());break;case 2:r.validatorSet=s.tendermint.types.ValidatorSet.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.LightBlock)return e;var t=new s.tendermint.types.LightBlock;if(null!=e.signedHeader){if("object"!=typeof e.signedHeader)throw TypeError(".tendermint.types.LightBlock.signedHeader: object expected");t.signedHeader=s.tendermint.types.SignedHeader.fromObject(e.signedHeader)}if(null!=e.validatorSet){if("object"!=typeof e.validatorSet)throw TypeError(".tendermint.types.LightBlock.validatorSet: object expected");t.validatorSet=s.tendermint.types.ValidatorSet.fromObject(e.validatorSet)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.signedHeader=null,n.validatorSet=null),null!=e.signedHeader&&e.hasOwnProperty("signedHeader")&&(n.signedHeader=s.tendermint.types.SignedHeader.toObject(e.signedHeader,t)),null!=e.validatorSet&&e.hasOwnProperty("validatorSet")&&(n.validatorSet=s.tendermint.types.ValidatorSet.toObject(e.validatorSet,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.BlockMeta=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.blockId=null,e.prototype.blockSize=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.header=null,e.prototype.numTxs=a.Long?a.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.blockId&&Object.hasOwnProperty.call(e,"blockId")&&s.tendermint.types.BlockID.encode(e.blockId,t.uint32(10).fork()).ldelim(),null!=e.blockSize&&Object.hasOwnProperty.call(e,"blockSize")&&t.uint32(16).int64(e.blockSize),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&s.tendermint.types.Header.encode(e.header,t.uint32(26).fork()).ldelim(),null!=e.numTxs&&Object.hasOwnProperty.call(e,"numTxs")&&t.uint32(32).int64(e.numTxs),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.BlockMeta;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.blockId=s.tendermint.types.BlockID.decode(e,e.uint32());break;case 2:r.blockSize=e.int64();break;case 3:r.header=s.tendermint.types.Header.decode(e,e.uint32());break;case 4:r.numTxs=e.int64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.BlockMeta)return e;var t=new s.tendermint.types.BlockMeta;if(null!=e.blockId){if("object"!=typeof e.blockId)throw TypeError(".tendermint.types.BlockMeta.blockId: object expected");t.blockId=s.tendermint.types.BlockID.fromObject(e.blockId)}if(null!=e.blockSize&&(a.Long?(t.blockSize=a.Long.fromValue(e.blockSize)).unsigned=!1:"string"==typeof e.blockSize?t.blockSize=parseInt(e.blockSize,10):"number"==typeof e.blockSize?t.blockSize=e.blockSize:"object"==typeof e.blockSize&&(t.blockSize=new a.LongBits(e.blockSize.low>>>0,e.blockSize.high>>>0).toNumber())),null!=e.header){if("object"!=typeof e.header)throw TypeError(".tendermint.types.BlockMeta.header: object expected");t.header=s.tendermint.types.Header.fromObject(e.header)}return null!=e.numTxs&&(a.Long?(t.numTxs=a.Long.fromValue(e.numTxs)).unsigned=!1:"string"==typeof e.numTxs?t.numTxs=parseInt(e.numTxs,10):"number"==typeof e.numTxs?t.numTxs=e.numTxs:"object"==typeof e.numTxs&&(t.numTxs=new a.LongBits(e.numTxs.low>>>0,e.numTxs.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(n.blockId=null,a.Long){var r=new a.Long(0,0,!1);n.blockSize=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.blockSize=t.longs===String?"0":0;if(n.header=null,a.Long){r=new a.Long(0,0,!1);n.numTxs=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.numTxs=t.longs===String?"0":0}return null!=e.blockId&&e.hasOwnProperty("blockId")&&(n.blockId=s.tendermint.types.BlockID.toObject(e.blockId,t)),null!=e.blockSize&&e.hasOwnProperty("blockSize")&&("number"==typeof e.blockSize?n.blockSize=t.longs===String?String(e.blockSize):e.blockSize:n.blockSize=t.longs===String?a.Long.prototype.toString.call(e.blockSize):t.longs===Number?new a.LongBits(e.blockSize.low>>>0,e.blockSize.high>>>0).toNumber():e.blockSize),null!=e.header&&e.hasOwnProperty("header")&&(n.header=s.tendermint.types.Header.toObject(e.header,t)),null!=e.numTxs&&e.hasOwnProperty("numTxs")&&("number"==typeof e.numTxs?n.numTxs=t.longs===String?String(e.numTxs):e.numTxs:n.numTxs=t.longs===String?a.Long.prototype.toString.call(e.numTxs):t.longs===Number?new a.LongBits(e.numTxs.low>>>0,e.numTxs.high>>>0).toNumber():e.numTxs),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.TxProof=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.rootHash=a.newBuffer([]),e.prototype.data=a.newBuffer([]),e.prototype.proof=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.rootHash&&Object.hasOwnProperty.call(e,"rootHash")&&t.uint32(10).bytes(e.rootHash),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(18).bytes(e.data),null!=e.proof&&Object.hasOwnProperty.call(e,"proof")&&s.tendermint.crypto.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.TxProof;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.rootHash=e.bytes();break;case 2:r.data=e.bytes();break;case 3:r.proof=s.tendermint.crypto.Proof.decode(e,e.uint32());break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.TxProof)return e;var t=new s.tendermint.types.TxProof;if(null!=e.rootHash&&("string"==typeof e.rootHash?a.base64.decode(e.rootHash,t.rootHash=a.newBuffer(a.base64.length(e.rootHash)),0):e.rootHash.length&&(t.rootHash=e.rootHash)),null!=e.data&&("string"==typeof e.data?a.base64.decode(e.data,t.data=a.newBuffer(a.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.proof){if("object"!=typeof e.proof)throw TypeError(".tendermint.types.TxProof.proof: object expected");t.proof=s.tendermint.crypto.Proof.fromObject(e.proof)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.rootHash="":(n.rootHash=[],t.bytes!==Array&&(n.rootHash=a.newBuffer(n.rootHash))),t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=a.newBuffer(n.data))),n.proof=null),null!=e.rootHash&&e.hasOwnProperty("rootHash")&&(n.rootHash=t.bytes===String?a.base64.encode(e.rootHash,0,e.rootHash.length):t.bytes===Array?Array.prototype.slice.call(e.rootHash):e.rootHash),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?a.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.proof&&e.hasOwnProperty("proof")&&(n.proof=s.tendermint.crypto.Proof.toObject(e.proof,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.ValidatorSet=function(){function e(e){if(this.validators=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.validators=a.emptyArray,e.prototype.proposer=null,e.prototype.totalVotingPower=a.Long?a.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=o.create()),null!=e.validators&&e.validators.length)for(var n=0;n<e.validators.length;++n)s.tendermint.types.Validator.encode(e.validators[n],t.uint32(10).fork()).ldelim();return null!=e.proposer&&Object.hasOwnProperty.call(e,"proposer")&&s.tendermint.types.Validator.encode(e.proposer,t.uint32(18).fork()).ldelim(),null!=e.totalVotingPower&&Object.hasOwnProperty.call(e,"totalVotingPower")&&t.uint32(24).int64(e.totalVotingPower),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.ValidatorSet;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.validators&&r.validators.length||(r.validators=[]),r.validators.push(s.tendermint.types.Validator.decode(e,e.uint32()));break;case 2:r.proposer=s.tendermint.types.Validator.decode(e,e.uint32());break;case 3:r.totalVotingPower=e.int64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.ValidatorSet)return e;var t=new s.tendermint.types.ValidatorSet;if(e.validators){if(!Array.isArray(e.validators))throw TypeError(".tendermint.types.ValidatorSet.validators: array expected");t.validators=[];for(var n=0;n<e.validators.length;++n){if("object"!=typeof e.validators[n])throw TypeError(".tendermint.types.ValidatorSet.validators: object expected");t.validators[n]=s.tendermint.types.Validator.fromObject(e.validators[n])}}if(null!=e.proposer){if("object"!=typeof e.proposer)throw TypeError(".tendermint.types.ValidatorSet.proposer: object expected");t.proposer=s.tendermint.types.Validator.fromObject(e.proposer)}return null!=e.totalVotingPower&&(a.Long?(t.totalVotingPower=a.Long.fromValue(e.totalVotingPower)).unsigned=!1:"string"==typeof e.totalVotingPower?t.totalVotingPower=parseInt(e.totalVotingPower,10):"number"==typeof e.totalVotingPower?t.totalVotingPower=e.totalVotingPower:"object"==typeof e.totalVotingPower&&(t.totalVotingPower=new a.LongBits(e.totalVotingPower.low>>>0,e.totalVotingPower.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.validators=[]),t.defaults)if(n.proposer=null,a.Long){var r=new a.Long(0,0,!1);n.totalVotingPower=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.totalVotingPower=t.longs===String?"0":0;if(e.validators&&e.validators.length){n.validators=[];for(var i=0;i<e.validators.length;++i)n.validators[i]=s.tendermint.types.Validator.toObject(e.validators[i],t)}return null!=e.proposer&&e.hasOwnProperty("proposer")&&(n.proposer=s.tendermint.types.Validator.toObject(e.proposer,t)),null!=e.totalVotingPower&&e.hasOwnProperty("totalVotingPower")&&("number"==typeof e.totalVotingPower?n.totalVotingPower=t.longs===String?String(e.totalVotingPower):e.totalVotingPower:n.totalVotingPower=t.longs===String?a.Long.prototype.toString.call(e.totalVotingPower):t.longs===Number?new a.LongBits(e.totalVotingPower.low>>>0,e.totalVotingPower.high>>>0).toNumber():e.totalVotingPower),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Validator=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.address=a.newBuffer([]),e.prototype.pubKey=null,e.prototype.votingPower=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.proposerPriority=a.Long?a.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.address&&Object.hasOwnProperty.call(e,"address")&&t.uint32(10).bytes(e.address),null!=e.pubKey&&Object.hasOwnProperty.call(e,"pubKey")&&s.tendermint.crypto.PublicKey.encode(e.pubKey,t.uint32(18).fork()).ldelim(),null!=e.votingPower&&Object.hasOwnProperty.call(e,"votingPower")&&t.uint32(24).int64(e.votingPower),null!=e.proposerPriority&&Object.hasOwnProperty.call(e,"proposerPriority")&&t.uint32(32).int64(e.proposerPriority),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.Validator;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.address=e.bytes();break;case 2:r.pubKey=s.tendermint.crypto.PublicKey.decode(e,e.uint32());break;case 3:r.votingPower=e.int64();break;case 4:r.proposerPriority=e.int64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.Validator)return e;var t=new s.tendermint.types.Validator;if(null!=e.address&&("string"==typeof e.address?a.base64.decode(e.address,t.address=a.newBuffer(a.base64.length(e.address)),0):e.address.length&&(t.address=e.address)),null!=e.pubKey){if("object"!=typeof e.pubKey)throw TypeError(".tendermint.types.Validator.pubKey: object expected");t.pubKey=s.tendermint.crypto.PublicKey.fromObject(e.pubKey)}return null!=e.votingPower&&(a.Long?(t.votingPower=a.Long.fromValue(e.votingPower)).unsigned=!1:"string"==typeof e.votingPower?t.votingPower=parseInt(e.votingPower,10):"number"==typeof e.votingPower?t.votingPower=e.votingPower:"object"==typeof e.votingPower&&(t.votingPower=new a.LongBits(e.votingPower.low>>>0,e.votingPower.high>>>0).toNumber())),null!=e.proposerPriority&&(a.Long?(t.proposerPriority=a.Long.fromValue(e.proposerPriority)).unsigned=!1:"string"==typeof e.proposerPriority?t.proposerPriority=parseInt(e.proposerPriority,10):"number"==typeof e.proposerPriority?t.proposerPriority=e.proposerPriority:"object"==typeof e.proposerPriority&&(t.proposerPriority=new a.LongBits(e.proposerPriority.low>>>0,e.proposerPriority.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(t.bytes===String?n.address="":(n.address=[],t.bytes!==Array&&(n.address=a.newBuffer(n.address))),n.pubKey=null,a.Long){var r=new a.Long(0,0,!1);n.votingPower=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.votingPower=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!1);n.proposerPriority=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.proposerPriority=t.longs===String?"0":0}return null!=e.address&&e.hasOwnProperty("address")&&(n.address=t.bytes===String?a.base64.encode(e.address,0,e.address.length):t.bytes===Array?Array.prototype.slice.call(e.address):e.address),null!=e.pubKey&&e.hasOwnProperty("pubKey")&&(n.pubKey=s.tendermint.crypto.PublicKey.toObject(e.pubKey,t)),null!=e.votingPower&&e.hasOwnProperty("votingPower")&&("number"==typeof e.votingPower?n.votingPower=t.longs===String?String(e.votingPower):e.votingPower:n.votingPower=t.longs===String?a.Long.prototype.toString.call(e.votingPower):t.longs===Number?new a.LongBits(e.votingPower.low>>>0,e.votingPower.high>>>0).toNumber():e.votingPower),null!=e.proposerPriority&&e.hasOwnProperty("proposerPriority")&&("number"==typeof e.proposerPriority?n.proposerPriority=t.longs===String?String(e.proposerPriority):e.proposerPriority:n.proposerPriority=t.longs===String?a.Long.prototype.toString.call(e.proposerPriority):t.longs===Number?new a.LongBits(e.proposerPriority.low>>>0,e.proposerPriority.high>>>0).toNumber():e.proposerPriority),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.SimpleValidator=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.pubKey=null,e.prototype.votingPower=a.Long?a.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.pubKey&&Object.hasOwnProperty.call(e,"pubKey")&&s.tendermint.crypto.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),null!=e.votingPower&&Object.hasOwnProperty.call(e,"votingPower")&&t.uint32(16).int64(e.votingPower),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.types.SimpleValidator;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.pubKey=s.tendermint.crypto.PublicKey.decode(e,e.uint32());break;case 2:r.votingPower=e.int64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.types.SimpleValidator)return e;var t=new s.tendermint.types.SimpleValidator;if(null!=e.pubKey){if("object"!=typeof e.pubKey)throw TypeError(".tendermint.types.SimpleValidator.pubKey: object expected");t.pubKey=s.tendermint.crypto.PublicKey.fromObject(e.pubKey)}return null!=e.votingPower&&(a.Long?(t.votingPower=a.Long.fromValue(e.votingPower)).unsigned=!1:"string"==typeof e.votingPower?t.votingPower=parseInt(e.votingPower,10):"number"==typeof e.votingPower?t.votingPower=e.votingPower:"object"==typeof e.votingPower&&(t.votingPower=new a.LongBits(e.votingPower.low>>>0,e.votingPower.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults)if(n.pubKey=null,a.Long){var r=new a.Long(0,0,!1);n.votingPower=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.votingPower=t.longs===String?"0":0;return null!=e.pubKey&&e.hasOwnProperty("pubKey")&&(n.pubKey=s.tendermint.crypto.PublicKey.toObject(e.pubKey,t)),null!=e.votingPower&&e.hasOwnProperty("votingPower")&&("number"==typeof e.votingPower?n.votingPower=t.longs===String?String(e.votingPower):e.votingPower:n.votingPower=t.longs===String?a.Long.prototype.toString.call(e.votingPower):t.longs===Number?new a.LongBits(e.votingPower.low>>>0,e.votingPower.high>>>0).toNumber():e.votingPower),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.version=function(){const e={};return e.App=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.protocol=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.software="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.protocol&&Object.hasOwnProperty.call(e,"protocol")&&t.uint32(8).uint64(e.protocol),null!=e.software&&Object.hasOwnProperty.call(e,"software")&&t.uint32(18).string(e.software),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.version.App;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.protocol=e.uint64();break;case 2:r.software=e.string();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.version.App)return e;var t=new s.tendermint.version.App;return null!=e.protocol&&(a.Long?(t.protocol=a.Long.fromValue(e.protocol)).unsigned=!0:"string"==typeof e.protocol?t.protocol=parseInt(e.protocol,10):"number"==typeof e.protocol?t.protocol=e.protocol:"object"==typeof e.protocol&&(t.protocol=new a.LongBits(e.protocol.low>>>0,e.protocol.high>>>0).toNumber(!0))),null!=e.software&&(t.software=String(e.software)),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!0);n.protocol=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.protocol=t.longs===String?"0":0;n.software=""}return null!=e.protocol&&e.hasOwnProperty("protocol")&&("number"==typeof e.protocol?n.protocol=t.longs===String?String(e.protocol):e.protocol:n.protocol=t.longs===String?a.Long.prototype.toString.call(e.protocol):t.longs===Number?new a.LongBits(e.protocol.low>>>0,e.protocol.high>>>0).toNumber(!0):e.protocol),null!=e.software&&e.hasOwnProperty("software")&&(n.software=e.software),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Consensus=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.block=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.app=a.Long?a.Long.fromBits(0,0,!0):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=o.create()),null!=e.block&&Object.hasOwnProperty.call(e,"block")&&t.uint32(8).uint64(e.block),null!=e.app&&Object.hasOwnProperty.call(e,"app")&&t.uint32(16).uint64(e.app),t},e.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.tendermint.version.Consensus;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.block=e.uint64();break;case 2:r.app=e.uint64();break;default:e.skipType(7&o)}}return r},e.fromObject=function(e){if(e instanceof s.tendermint.version.Consensus)return e;var t=new s.tendermint.version.Consensus;return null!=e.block&&(a.Long?(t.block=a.Long.fromValue(e.block)).unsigned=!0:"string"==typeof e.block?t.block=parseInt(e.block,10):"number"==typeof e.block?t.block=e.block:"object"==typeof e.block&&(t.block=new a.LongBits(e.block.low>>>0,e.block.high>>>0).toNumber(!0))),null!=e.app&&(a.Long?(t.app=a.Long.fromValue(e.app)).unsigned=!0:"string"==typeof e.app?t.app=parseInt(e.app,10):"number"==typeof e.app?t.app=e.app:"object"==typeof e.app&&(t.app=new a.LongBits(e.app.low>>>0,e.app.high>>>0).toNumber(!0))),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(a.Long){var r=new a.Long(0,0,!0);n.block=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.block=t.longs===String?"0":0;if(a.Long){r=new a.Long(0,0,!0);n.app=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.app=t.longs===String?"0":0}return null!=e.block&&e.hasOwnProperty("block")&&("number"==typeof e.block?n.block=t.longs===String?String(e.block):e.block:n.block=t.longs===String?a.Long.prototype.toString.call(e.block):t.longs===Number?new a.LongBits(e.block.low>>>0,e.block.high>>>0).toNumber(!0):e.block),null!=e.app&&e.hasOwnProperty("app")&&("number"==typeof e.app?n.app=t.longs===String?String(e.app):e.app:n.app=t.longs===String?a.Long.prototype.toString.call(e.app):t.longs===Number?new a.LongBits(e.app.low>>>0,e.app.high>>>0).toNumber(!0):e.app),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e})(),e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SignDocWrapper=void 0;const r=n(242),i=n(2);class o{constructor(e,t){this.mode=e,this.message=t}static fromAminoSignDoc(e){const t=new o("amino",new Uint8Array(0));return t._aminoSignDoc=e,t}static fromDirectSignDoc(e){const t=new o("direct",new Uint8Array(0));return t._protoSignDoc=new r.ProtoSignDocDecoder(e),t}clone(){return new o(this.mode,this.message)}get protoSignDoc(){return this._protoSignDoc||(this._protoSignDoc=r.ProtoSignDocDecoder.decode(this.message)),this._protoSignDoc}get aminoSignDoc(){return this._aminoSignDoc||(this._aminoSignDoc=JSON.parse(i.Buffer.from(this.message).toString())),this._aminoSignDoc}get chainId(){return"direct"===this.mode?this.protoSignDoc.chainId:this.aminoSignDoc.chain_id}get memo(){return"direct"===this.mode?this.protoSignDoc.txBody.memo:this.aminoSignDoc.memo}get fees(){var e,t;if("direct"===this.mode){const n=[];for(const r of null!==(t=null===(e=this.protoSignDoc.authInfo.fee)||void 0===e?void 0:e.amount)&&void 0!==t?t:[]){if(null==r.denom||null==r.amount)throw new Error("Invalid fee");n.push({denom:r.denom,amount:r.amount})}return n}return this.aminoSignDoc.fee.amount}get gas(){var e,t,n;return"direct"===this.mode?null!==(n=null===(t=null===(e=this.protoSignDoc.authInfo.fee)||void 0===e?void 0:e.gasLimit)||void 0===t?void 0:t.toNumber())&&void 0!==n?n:0:parseInt(this.aminoSignDoc.fee.gas)}}t.SignDocWrapper=o},function(e,t,n){const r=n(1114),i=n(1147);e.exports={packageInit:(e,t)=>{if(t=Array.prototype.slice.call(t),!e)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(e,"currentProvider",{get:()=>e._provider,set:t=>e.setProvider(t),enumerable:!0,configurable:!0}),t[0]&&t[0]._requestManager?e._requestManager=t[0]._requestManager:e._requestManager=new r.Manager(t[0],t[1]),e.givenProvider=r.Manager.givenProvider,e.providers=r.Manager.providers,e._provider=e._requestManager.provider,e.setProvider||(e.setProvider=(t,n)=>(e._requestManager.setProvider(t,n),e._provider=e._requestManager.provider,!0)),e.setRequestManager=t=>{e._requestManager=t,e._provider=t.provider},e.BatchRequest=r.BatchManager.bind(null,e._requestManager),e.extend=i(e)},addProviders:e=>{e.givenProvider=r.Manager.givenProvider,e.providers=r.Manager.providers}}},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(153).Buffer,i=n(448);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,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,i,o=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=o,i=s,t.copy(n,i),s+=a.data.length,a=a.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,l={},u=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return l[c]=i,r(c),c++},d.clearImmediate=p}function p(e){delete l[e]}function h(e){if(u)setTimeout(h,0,e);else{var t=l[e];if(t){u=!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(void 0,n)}}(t)}finally{p(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(12),n(13))},function(e,t,n){"use strict";e.exports=o;var r=n(246),i=Object.create(n(95));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n(4),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";var r=n(147),i=n(145).errors,o=n(145).formatters,a=n(213),s=n(872),c=n(873).subscriptions,l=n(1546),u=function(e){if(!e.call||!e.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.transformPayload=e.transformPayload,this.extraFormatters=e.extraFormatters,this.abiCoder=e.abiCoder,this.requestManager=e.requestManager,this.accounts=e.accounts,this.defaultBlock=e.defaultBlock||"latest",this.defaultAccount=e.defaultAccount||null,this.transactionBlockTimeout=e.transactionBlockTimeout||50,this.transactionConfirmationBlocks=e.transactionConfirmationBlocks||24,this.transactionPollingTimeout=e.transactionPollingTimeout||750,this.defaultCommon=e.defaultCommon,this.defaultChain=e.defaultChain,this.defaultHardfork=e.defaultHardfork,this.handleRevert=e.handleRevert};u.prototype.setRequestManager=function(e,t){this.requestManager=e,t&&(this.accounts=t)},u.prototype.createFunction=function(e,t){var n=this.buildCall();return n.call=this.call,this.setRequestManager(e||this.requestManager,t||this.accounts),n},u.prototype.attachToObject=function(e){var t=this.buildCall();t.call=this.call;var n=this.name.split(".");n.length>1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},u.prototype.getCall=function(e){return r.isFunction(this.call)?this.call(e):this.call},u.prototype.extractCallback=function(e){if(r.isFunction(e[e.length-1]))return e.pop()},u.prototype.validateArgs=function(e){if(e.length!==this.params)throw i.InvalidNumberOfParams(e.length,this.params,this.name)},u.prototype.formatInput=function(e){var t=this;return this.inputFormatter?this.inputFormatter.map((function(n,r){return n?n.call(t,e[r]):e[r]})):e},u.prototype.formatOutput=function(e){var t=this;return r.isArray(e)?e.map((function(e){return t.outputFormatter&&e?t.outputFormatter(e):e})):this.outputFormatter&&e?this.outputFormatter(e):e},u.prototype.toPayload=function(e){var t=this.getCall(e),n=this.extractCallback(e),r=this.formatInput(e);this.validateArgs(r);var i={method:t,params:r,callback:n};return this.transformPayload&&(i=this.transformPayload(i)),i},u.prototype._confirmTransaction=function(e,t,n){var f=this,d=!1,p=!0,h=0,m=0,b=null,y=null,g=r.isObject(n.params[0])&&n.params[0].gas?n.params[0].gas:null,v=r.isObject(n.params[0])&&n.params[0].data&&n.params[0].from&&!n.params[0].to,w=v&&n.params[0].data.length>2,_=[new u({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[o.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:o.outputBlockFormatter}),new u({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:o.outputTransactionReceiptFormatter}),new u({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[o.inputAddressFormatter,o.inputDefaultBlockNumberFormatter]}),new u({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:o.outputTransactionFormatter}),new c({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:o.outputBlockFormatter}}})],k={};r.each(_,(function(e){e.attachToObject(k),e.requestManager=f.requestManager}));var x=function(r,c,u,_,x){if(!u)return x||(x={unsubscribe:function(){clearInterval(b)}}),(r?s.resolve(r):k.getTransactionReceipt(t)).catch((function(t){x.unsubscribe(),d=!0,a._fireError({message:"Failed to check for transaction receipt:",data:t},e.eventEmitter,e.reject)})).then((async function(t){if(!t||!t.blockHash)throw new Error("Receipt missing or blockHash null");if(f.extraFormatters&&f.extraFormatters.receiptFormatter&&(t=f.extraFormatters.receiptFormatter(t)),e.eventEmitter.listeners("confirmation").length>0){var n;if(void 0===r||0!==m){var i=await k.getBlockByNumber("latest"),o=i?i.hash:null;c?y?(n=await k.getBlockByNumber(y.number+1))&&(y=n,e.eventEmitter.emit("confirmation",m,t,o)):(n=await k.getBlockByNumber(t.blockNumber),y=n,e.eventEmitter.emit("confirmation",m,t,o)):e.eventEmitter.emit("confirmation",m,t,o)}(c&&n||!c)&&m++,p=!1,m===f.transactionConfirmationBlocks+1&&(x.unsubscribe(),e.eventEmitter.removeAllListeners())}return t})).then((async function(t){if(v&&!d){if(!t.contractAddress)return p&&(x.unsubscribe(),d=!0),void a._fireError(i.NoContractAddressFoundError(t),e.eventEmitter,e.reject,null,t);var n;try{n=await k.getCode(t.contractAddress)}catch(e){}if(!n)return;!0===t.status&&w||n.length>2?(e.eventEmitter.emit("receipt",t),f.extraFormatters&&f.extraFormatters.contractDeployFormatter?e.resolve(f.extraFormatters.contractDeployFormatter(t)):e.resolve(t),p&&e.eventEmitter.removeAllListeners()):a._fireError(i.ContractCodeNotStoredError(t),e.eventEmitter,e.reject,null,t),p&&x.unsubscribe(),d=!0}return t})).then((async function(t){if(!v&&!d){if(t.outOfGas||g&&g===t.gasUsed||!0!==t.status&&"0x1"!==t.status&&void 0!==t.status)if(JSON.stringify(t,null,2),!1===t.status||"0x0"===t.status)try{var r=null;if(!f.handleRevert||"eth_sendTransaction"!==f.call&&"eth_sendRawTransaction"!==f.call)throw!1;var s=n.params[0];if("eth_sendRawTransaction"===f.call){var c=n.params[0],u=l.parse(c);s=o.inputTransactionFormatter({data:u.data,to:u.to,from:u.from,gas:u.gasLimit.toHexString(),gasPrice:u.gasPrice.toHexString(),value:u.value.toHexString()})}if(!(r=await f.getRevertReason(s,t.blockNumber)))throw!1;a._fireError(i.TransactionRevertInstructionError(r.reason,r.signature,t),e.eventEmitter,e.reject,null,t)}catch(n){a._fireError(i.TransactionRevertedWithoutReasonError(t),e.eventEmitter,e.reject,null,t)}else a._fireError(i.TransactionOutOfGasError(t),e.eventEmitter,e.reject,null,t);else e.eventEmitter.emit("receipt",t),e.resolve(t),p&&e.eventEmitter.removeAllListeners();p&&x.unsubscribe(),d=!0}})).catch((function(){h++,c?h-1>=f.transactionPollingTimeout&&(x.unsubscribe(),d=!0,a._fireError(i.TransactionError("Transaction was not mined within "+f.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject)):h-1>=f.transactionBlockTimeout&&(x.unsubscribe(),d=!0,a._fireError(i.TransactionError("Transaction was not mined within "+f.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject))}));x.unsubscribe(),d=!0,a._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:u},e.eventEmitter,e.reject)},S=function(e){const t=()=>{b=setInterval(x.bind(null,e,!0),1e3)};this.requestManager.provider.on?k.subscribe("newBlockHeaders",(function(n,r,i){n||!r?t():x(e,!1,n,0,i)})):t()}.bind(this);k.getTransactionReceipt(t).then((function(t){t&&t.blockHash?(e.eventEmitter.listeners("confirmation").length>0&&S(t),x(t,!1)):d||S()})).catch((function(){d||S()}))};var f=function(e,t){return r.isNumber(e)?t.wallet[e]:r.isObject(e)&&e.address&&e.privateKey?e:t.wallet[e.toLowerCase()]};u.prototype.buildCall=function(){var e=this,t="eth_sendTransaction"===e.call||"eth_sendRawTransaction"===e.call,n="eth_call"===e.call,o=function(){var o=s(!t),c=e.toPayload(Array.prototype.slice.call(arguments)),l=function(r,s){var l;if(e.handleRevert&&n&&e.abiCoder&&(!r&&e.isRevertReasonString(s)?l=s.substring(10):r&&r.data&&(l=r.data.substring(10)),l)){var u=e.abiCoder.decodeParameter("string","0x"+l);return void a._fireError(i.RevertInstructionError(u,"Error(String)"),o.eventEmitter,o.reject,c.callback,{reason:u,signature:"Error(String)"})}try{s=e.formatOutput(s)}catch(e){r=e}if(s instanceof Error&&(r=s),r)return r.error&&(r=r.error),a._fireError(r,o.eventEmitter,o.reject,c.callback);c.callback&&c.callback(null,s),t?(o.eventEmitter.emit("transactionHash",s),e._confirmTransaction(o,s,c)):r||o.resolve(s)},d=function(t){var n=r.extend({},c,{method:"eth_sendRawTransaction",params:[t.rawTransaction]});e.requestManager.send(n,l)},p=function(e,t){var n;if(t&&t.accounts&&t.accounts.wallet&&t.accounts.wallet.length)if("eth_sendTransaction"===e.method){var i=e.params[0];if((n=f(r.isObject(i)?i.from:null,t.accounts))&&n.privateKey){var a=r.omit(i,"from");return t.defaultChain&&!a.chain&&(a.chain=t.defaultChain),t.defaultHardfork&&!a.hardfork&&(a.hardfork=t.defaultHardfork),t.defaultCommon&&!a.common&&(a.common=t.defaultCommon),void t.accounts.signTransaction(a,n.privateKey).then(d).catch((function(e){if(r.isFunction(o.eventEmitter.listeners)&&o.eventEmitter.listeners("error").length){try{o.eventEmitter.emit("error",e)}catch(e){}o.eventEmitter.removeAllListeners(),o.eventEmitter.catch((function(){}))}o.reject(e)}))}}else if("eth_sign"===e.method){var s=e.params[1];if((n=f(e.params[0],t.accounts))&&n.privateKey){var c=t.accounts.sign(s,n.privateKey);return e.callback&&e.callback(null,c.signature),void o.resolve(c.signature)}}return t.requestManager.send(e,l)};if(t&&r.isObject(c.params[0])&&void 0===c.params[0].gasPrice){var h=new u({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(e.requestManager);h((function(n,r){r&&(c.params[0].gasPrice=r),t&&setTimeout(()=>{o.eventEmitter.emit("sending",c)},0),p(c,e)}))}else t&&setTimeout(()=>{o.eventEmitter.emit("sending",c)},0),p(c,e);return t&&setTimeout(()=>{o.eventEmitter.emit("sent",c)},0),o.eventEmitter};return o.method=e,o.request=this.request.bind(this),o},u.prototype.getRevertReason=function(e,t){var n=this;return new Promise((function(r,i){new u({name:"call",call:"eth_call",params:2,abiCoder:n.abiCoder,handleRevert:!0}).createFunction(n.requestManager)(e,a.numberToHex(t)).then((function(){r(!1)})).catch((function(e){e.reason?r({reason:e.reason,signature:e.signature}):i(e)}))}))},u.prototype.isRevertReasonString=function(e){return r.isString(e)&&(e.length-2)/2%32==4&&"0x08c379a0"===e.substring(0,10)},u.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=u},function(e,t,n){"use strict";t.sha1=n(453),t.sha224=n(454),t.sha256=n(248),t.sha384=n(455),t.sha512=n(249)},function(e,t,n){"use strict";var r=n(49),i=n(96),o=n(247),a=r.rotl32,s=r.sum32,c=r.sum32_5,l=o.ft_1,u=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],d=this.h[3],p=this.h[4];for(r=0;r<n.length;r++){var h=~~(r/20),m=c(a(i,5),l(h,o,u,d),p,n[r],f[h]);p=d,d=u,u=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],p)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(49),i=n(248);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(49),i=n(249);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(49),i=n(96),o=r.rotl32,a=r.sum32,s=r.sum32_3,c=r.sum32_4,l=i.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function p(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,l),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],u=this.h[4],g=n,v=r,w=i,_=l,k=u,x=0;x<80;x++){var S=a(o(c(n,f(x,r,i,l),e[h[x]+t],d(x)),b[x]),u);n=u,u=l,l=o(i,10),i=r,r=S,S=a(o(c(g,f(79-x,v,w,_),e[m[x]+t],p(x)),y[x]),k),g=k,k=_,_=o(w,10),w=v,v=S}S=s(this.h[1],i,_),this.h[1]=s(this.h[2],l,k),this.h[2]=s(this.h[3],u,g),this.h[3]=s(this.h[4],n,v),this.h[4]=s(this.h[0],r,w),this.h[0]=S},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var h=[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],m=[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],b=[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],y=[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,n){"use strict";var r=n(49),i=n(32);function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(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)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,n){(t=e.exports=n(251)).Stream=t,t.Readable=t,t.Writable=n(255),t.Duplex=n(74),t.Transform=n(256),t.PassThrough=n(464),t.finished=n(157),t.pipeline=n(465)},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=n(2).Buffer,s=n(461).inspect,c=s&&s.custom||"inspect";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}var t,n,l;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,n,r,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,a.prototype.copy.call(t,n,r),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&o(t.prototype,n),l&&o(t,l),e}()},function(e,t){},function(e,t,n){"use strict";(function(t){var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(157),a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),u=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function h(e){var t=e[a];if(null!==t){var n=e[d].read();null!==n&&(e[u]=null,e[a]=null,e[s]=null,t(p(n,!1)))}}function m(e){t.nextTick(h,e)}var b=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(r={get stream(){return this[d]},next:function(){var e=this,n=this[c];if(null!==n)return Promise.reject(n);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(n,r){t.nextTick((function(){e[c]?r(e[c]):n(p(void 0,!0))}))}));var r,i=this[u];if(i)r=new Promise(function(e,t){return function(n,r){e.then((function(){t[l]?n(p(void 0,!0)):t[f](n,r)}),r)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[f])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[d].destroy(null,(function(e){e?n(e):t(p(void 0,!0))}))}))})),r),b);e.exports=function(e){var t,n=Object.create(y,(i(t={},d,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var r=n[d].read();r?(n[u]=null,n[a]=null,n[s]=null,e(p(r,!1))):(n[a]=e,n[s]=t)},writable:!0}),t));return n[u]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[u]=null,n[a]=null,n[s]=null,t(e)),void(n[c]=e)}var r=n[a];null!==r&&(n[u]=null,n[a]=null,n[s]=null,r(p(void 0,!0))),n[l]=!0})),e.on("readable",m.bind(null,n)),n}}).call(this,n(13))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,n){"use strict";e.exports=i;var r=n(256);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(4)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";var r;var i=n(73).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(157)),r(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}function l(e){e()}function u(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,n){var o=n<t.length-1;return c(e,o,n>0,(function(e){r||(r=e),e&&a.forEach(l),o||(a.forEach(l),i(r))}))}));return t.reduce(u)}},function(e,t,n){var r=n(4),i=n(77),o=n(7).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=n[f-3]^n[f-8]^n[f-14]^n[f-16];for(var d=0;d<80;++d){var p=~~(d/20),h=0|((t=r)<<5|t>>>27)+u(p,i,o,s)+c+n[d]+a[p];c=s,s=o,o=l(i),i=r,r=h}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,n){var r=n(4),i=n(77),o=n(7).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function f(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=(t=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|t>>>31;for(var p=0;p<80;++p){var h=~~(p/20),m=l(r)+f(h,i,o,s)+c+n[p]+a[h]|0;c=s,s=o,o=u(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,n){var r=n(4),i=n(257),o=n(77),a=n(7).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}r(c,i),c.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},c.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=c},function(e,t,n){var r=n(4),i=n(258),o=n(77),a=n(7).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}r(c,i),c.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},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},function(e,t,n){e.exports=n(154)},function(e,t,n){e.exports=n(65)},function(e,t,n){e.exports=n(148).Transform},function(e,t,n){e.exports=n(148).PassThrough},function(e,t,n){"use strict";var r=n(4),i=n(7).Buffer,o=n(56),a=i.alloc(128);function s(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>64?t=e(t):t.length<64&&(t=i.concat([t,a],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),s=0;s<64;s++)n[s]=54^t[s],r[s]=92^t[s];this._hash=[n]}r(s,o),s.prototype._update=function(e){this._hash.push(e)},s.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=s},function(e,t,n){e.exports=n(260)},function(e,t,n){(function(t,r){var i,o=n(7).Buffer,a=n(261),s=n(262),c=n(263),l=n(264),u=t.crypto&&t.crypto.subtle,f={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"},d=[];function p(e,t,n,r,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return o.from(e)}))}e.exports=function(e,n,h,m,b,y){"function"==typeof b&&(y=b,b=void 0);var g=f[(b=b||"sha1").toLowerCase()];if(!g||"function"!=typeof t.Promise)return r.nextTick((function(){var t;try{t=c(e,n,h,m,b)}catch(e){return y(e)}y(null,t)}));if(a(h,m),e=l(e,s,"Password"),n=l(n,s,"Salt"),"function"!=typeof y)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){r.nextTick((function(){t(null,e)}))}),(function(e){r.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var n=p(i=i||o.alloc(8),i,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=n,n}(g).then((function(t){return t?p(e,n,h,m,g):c(e,n,h,m,b)})),y)}}).call(this,n(12),n(13))},function(e,t,n){var r=n(478),i=n(159),o=n(160),a=n(491),s=n(122);function c(e,t,n){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function l(e,t,n){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,n);if(a[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),o[e])n=o[e].key,r=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var i=s(t,!1,n,r);return c(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),o[e])n=o[e].key,r=o[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");n=8*a[e].key,r=a[e].iv}var i=s(t,!1,n,r);return l(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=l,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(e,t,n){var r=n(56),i=n(479),o=n(4),a=n(7).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function c(e){r.call(this);var t,n=e.mode.toLowerCase(),i=s[n];t=e.decrypt?"decrypt":"encrypt";var o=e.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==n&&"des-ede-cbc"!==n||(o=a.concat([o,o.slice(0,8)]));var c=e.iv;a.isBuffer(c)||(c=a.from(c)),this._des=i.create({key:o,iv:c,type:t})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],e.exports=c,o(c,r),c.prototype._update=function(e){return a.from(this._des.update(e))},c.prototype._final=function(){return a.from(this._des.final())}},function(e,t,n){"use strict";t.utils=n(265),t.Cipher=n(158),t.DES=n(266),t.CBC=n(480),t.EDE=n(481)},function(e,t,n){"use strict";var r=n(32),i=n(4),o={};function a(e){r.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]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(o),r=0;r<n.length;r++){var a=n[r];t.prototype[a]=o[a]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new a(this.options.iv);this._cbcState=e},o._update=function(e,t,n,r){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,n,r);for(s=0;s<this.blockSize;s++)a[s]=n[r+s]}else{o._update.call(this,e,t,n,r);for(s=0;s<this.blockSize;s++)n[r+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},function(e,t,n){"use strict";var r=n(32),i=n(4),o=n(158),a=n(266);function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:n})]}function c(e){o.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}i(c,o),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},c.prototype._pad=a.prototype._pad,c.prototype._unpad=a.prototype._unpad},function(e,t,n){var r=n(160),i=n(270),o=n(7).Buffer,a=n(271),s=n(56),c=n(121),l=n(122);function u(e,t,n){s.call(this),this._cache=new d,this._cipher=new c.AES(t),this._prev=o.from(n),this._mode=e,this._autopadding=!0}n(4)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return o.concat(r)};var f=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function p(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=o.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new a(s.module,t,n):"auth"===s.type?new i(s.module,t,n):new u(s.module,t,n)}u.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(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=o.concat([this.cache,e])},d.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},d.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return o.concat([this.cache,t])},t.createCipheriv=p,t.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=l(t,!1,n.key,n.iv);return p(e,i.key,i.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,n){var r=n(98);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},function(e,t,n){var r=n(7).Buffer,i=n(98);function o(e,t,n){var o=t.length,a=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=r.concat([e._prev,n?t:a]),a}t.encrypt=function(e,t,n){for(var i,a=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){a=r.concat([a,o(e,t,n)]);break}i=e._cache.length,a=r.concat([a,o(e,t.slice(0,i),n)]),t=t.slice(i)}return a}},function(e,t,n){var r=n(7).Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}t.encrypt=function(e,t,n){for(var o=t.length,a=r.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],n);return a}},function(e,t,n){var r=n(7).Buffer;function i(e,t,n){for(var r,i,a=-1,s=0;++a<8;)r=t&1<<7-a?128:0,s+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>a%8,e._prev=o(e._prev,n?r:i);return s}function o(e,t){var n=e.length,i=-1,o=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,n){for(var o=t.length,a=r.allocUnsafe(o),s=-1;++s<o;)a[s]=i(e,t[s],n);return a}},function(e,t,n){(function(e){var r=n(98);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,n){for(;t._cache.length<n.length;)t._cache=e.concat([t._cache,i(t)]);var o=t._cache.slice(0,n.length);return t._cache=t._cache.slice(n.length),r(n,o)}}).call(this,n(2).Buffer)},function(e,t,n){var r=n(7).Buffer,i=r.alloc(16,0);function o(e){var t=r.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 a(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=o(i)},a.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=a},function(e,t,n){var r=n(270),i=n(7).Buffer,o=n(160),a=n(271),s=n(56),c=n(121),l=n(122);function u(e,t,n){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function d(e,t,n){var s=o[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===s.type?new a(s.module,t,n,!0):"auth"===s.type?new r(s.module,t,n,!0):new u(s.module,t,n)}n(4)(u,s),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=i.concat([this.cache,e])},f.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},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=o[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(t,!1,n.key,n.iv);return d(e,r.key,r.iv)},t.createDecipheriv=d},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,n){(function(e){var r=n(272),i=n(494),o=n(495);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var n=new e(i[t].prime,"hex"),r=new e(i[t].gen,"hex");return new o(n,r)},t.createDiffieHellman=t.DiffieHellman=function t(n,i,s,c){return e.isBuffer(i)||void 0===a[i]?t(n,"binary",i,s):(i=i||"binary",c=c||"binary",s=s||new e([2]),e.isBuffer(s)||(s=new e(s,c)),"number"==typeof n?new o(r(n,s),s,!0):(e.isBuffer(n)||(n=new e(n,i)),new o(n,s,!0)))}}).call(this,n(2).Buffer)},function(e,t){},function(e){e.exports=JSON.parse('{"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,n){(function(t){var r=n(6),i=new(n(273)),o=new r(24),a=new r(11),s=new r(10),c=new r(3),l=new r(7),u=n(272),f=n(62);function d(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._pub=new r(e),this}function p(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this._priv=new r(e),this}e.exports=m;var h={};function m(e,t,n){this.setGenerator(t),this.__prime=new r(e),this._prime=r.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=d,this.setPrivateKey=p):this._primeCode=8}function b(e,n){var r=new t(e.toArray());return n?r.toString(n):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in h)return h[r];var f,d=0;if(e.isEven()||!u.simpleSieve||!u.fermatTest(e)||!i.test(e))return d+=1,d+="02"===n||"05"===n?8:4,h[r]=d,d;switch(i.test(e.shrn(1))||(d+=2),n){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(f=e.mod(s)).cmp(c)&&f.cmp(l)&&(d+=8);break;default:d+=4}return h[r]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(e){var n=(e=(e=new r(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(n.toArray()),o=this.getPrime();if(i.length<o.length){var a=new t(o.length-i.length);a.fill(0),i=t.concat([a,i])}return i},m.prototype.getPublicKey=function(e){return b(this._pub,e)},m.prototype.getPrivateKey=function(e){return b(this._priv,e)},m.prototype.getPrime=function(e){return b(this.__prime,e)},m.prototype.getGenerator=function(e){return b(this._gen,e)},m.prototype.setGenerator=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.__gen=e,this._gen=new r(e),this}}).call(this,n(2).Buffer)},function(e,t,n){var r=n(7).Buffer,i=n(54),o=n(497),a=n(4),s=n(505),c=n(530),l=n(260);function u(e){o.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){o.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new u(e)}function p(e){return new f(e)}Object.keys(l).forEach((function(e){l[e].id=r.from(l[e].id,"hex"),l[e.toLowerCase()]=l[e]})),a(u,o.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(f,o.Writable),f.prototype._write=function(e,t,n){this._hash.update(e),n()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},f.prototype.verify=function(e,t,n){"string"==typeof t&&(t=r.from(t,n)),this.end();var i=this._hash.digest();return c(t,i,e,this._signType,this._tag)},e.exports={Sign:d,Verify:p,createSign:d,createVerify:p}},function(e,t,n){(t=e.exports=n(274)).Stream=t,t.Readable=t,t.Writable=n(278),t.Duplex=n(79),t.Transform=n(279),t.PassThrough=n(503),t.finished=n(162),t.pipeline=n(504)},function(e,t){},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=n(2).Buffer,s=n(500).inspect,c=s&&s.custom||"inspect";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}var t,n,l;return t=e,(n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value: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}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t,n,r,i=a.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,n=i,r=s,a.prototype.copy.call(t,n,r),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,o=e>i.length?i.length:e;if(o===i.length?r+=i:r+=i.slice(0,e),0==(e-=o)){o===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),0==(e-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return s(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{depth:0,customInspect:!1}))}}])&&o(t.prototype,n),l&&o(t,l),e}()},function(e,t){},function(e,t,n){"use strict";(function(t){var r;function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(162),a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),u=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function p(e,t){return{value:e,done:t}}function h(e){var t=e[a];if(null!==t){var n=e[d].read();null!==n&&(e[u]=null,e[a]=null,e[s]=null,t(p(n,!1)))}}function m(e){t.nextTick(h,e)}var b=Object.getPrototypeOf((function(){})),y=Object.setPrototypeOf((i(r={get stream(){return this[d]},next:function(){var e=this,n=this[c];if(null!==n)return Promise.reject(n);if(this[l])return Promise.resolve(p(void 0,!0));if(this[d].destroyed)return new Promise((function(n,r){t.nextTick((function(){e[c]?r(e[c]):n(p(void 0,!0))}))}));var r,i=this[u];if(i)r=new Promise(function(e,t){return function(n,r){e.then((function(){t[l]?n(p(void 0,!0)):t[f](n,r)}),r)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(p(o,!1));r=new Promise(this[f])}return this[u]=r,r}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[d].destroy(null,(function(e){e?n(e):t(p(void 0,!0))}))}))})),r),b);e.exports=function(e){var t,n=Object.create(y,(i(t={},d,{value:e,writable:!0}),i(t,a,{value:null,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,l,{value:e._readableState.endEmitted,writable:!0}),i(t,f,{value:function(e,t){var r=n[d].read();r?(n[u]=null,n[a]=null,n[s]=null,e(p(r,!1))):(n[a]=e,n[s]=t)},writable:!0}),t));return n[u]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[s];return null!==t&&(n[u]=null,n[a]=null,n[s]=null,t(e)),void(n[c]=e)}var r=n[a];null!==r&&(n[u]=null,n[a]=null,n[s]=null,r(p(void 0,!0))),n[l]=!0})),e.on("readable",m.bind(null,n)),n}}).call(this,n(13))},function(e,t){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(e,t,n){"use strict";e.exports=i;var r=n(279);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(4)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){"use strict";var r;var i=n(78).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e,t,i,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var s=!1;e.on("close",(function(){s=!0})),void 0===r&&(r=n(162)),r(e,{readable:t,writable:i},(function(e){if(e)return o(e);s=!0,o()}));var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void o(t||new a("pipe"))}}function l(e){e()}function u(e,t){return e.pipe(t)}function f(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=f(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new o("streams");var a=t.map((function(e,n){var o=n<t.length-1;return c(e,o,n>0,(function(e){r||(r=e),e&&a.forEach(l),o||(a.forEach(l),i(r))}))}));return t.reduce(u)}},function(e,t,n){var r=n(7).Buffer,i=n(120),o=n(163),a=n(45).ec,s=n(282),c=n(124),l=n(288);function u(e,t,n,o){if((e=r.from(e.toArray())).length<t.byteLength()){var a=r.alloc(t.byteLength()-e.length);e=r.concat([a,e])}var s=n.length,c=function(e,t){e=(e=f(e,t)).mod(t);var n=r.from(e.toArray());if(n.length<t.byteLength()){var i=r.alloc(t.byteLength()-n.length);n=r.concat([i,n])}return n}(n,t),l=r.alloc(s);l.fill(1);var u=r.alloc(s);return u=i(o,u).update(l).update(r.from([0])).update(e).update(c).digest(),l=i(o,u).update(l).digest(),{k:u=i(o,u).update(l).update(r.from([1])).update(e).update(c).digest(),v:l=i(o,u).update(l).digest()}}function f(e,t){var n=new s(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function d(e,t,n){var o,a;do{for(o=r.alloc(0);8*o.length<e.bitLength();)t.v=i(n,t.k).update(t.v).digest(),o=r.concat([o,t.v]);a=f(o,e),t.k=i(n,t.k).update(t.v).update(r.from([0])).digest(),t.v=i(n,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function p(e,t,n,r){return e.toRed(s.mont(n)).redPow(t).fromRed().mod(r)}e.exports=function(e,t,n,i,h){var m=c(t);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var n=l[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var i=new a(n).keyFromPrivate(t.privateKey).sign(e);return r.from(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,n){var i,o=t.params.priv_key,a=t.params.p,c=t.params.q,l=t.params.g,h=new s(0),m=f(e,c).mod(c),b=!1,y=u(o,c,e,n);for(;!1===b;)i=d(c,y,n),h=p(l,i,a,c),0===(b=i.invm(c).imul(m.add(o.mul(h))).mod(c)).cmpn(0)&&(b=!1,h=new s(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}(h,b)}(e,m,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=r.concat([h,e]);for(var b=m.modulus.byteLength(),y=[0,1];e.length+y.length+1<b;)y.push(255);y.push(0);for(var g=-1;++g<e.length;)y.push(e[g]);return o(y,m)},e.exports.getKey=u,e.exports.makeKey=d},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(507).Buffer}catch(e){}function s(e,t,n){for(var i=0,o=Math.min(e.length,n),a=0,s=t;s<o;s++){var c,l=e.charCodeAt(s)-48;i<<=4,i|=c=l>=49&&l<=54?l-49+10:l>=17&&l<=22?l-17+10:l,a|=c}return r(!(240&a),"Invalid character in "+e),i}function c(e,t,n,i){for(var o=0,a=0,s=Math.min(e.length,n),c=t;c<s;c++){var l=e.charCodeAt(c)-48;o*=i,a=l>=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&a<i,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(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"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("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 o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.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},o.prototype._move=function(e){l(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[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],p=[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];o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?f[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],u=p[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(e);n=(h=h.idivn(u)).isZero()?m+n:f[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,f=67108863&c,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var h=l-p|0;u+=(a=(i=0|e.words[h])*(o=0|t.words[p])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===o?(n<e.length&&(e[n++]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.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()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,n,r;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?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.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)},o.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var r,i,o,a=e.words,s=t.words,c=n.words,l=0,u=0|a[0],f=8191&u,d=u>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],y=8191&b,g=b>>>13,v=0|a[3],w=8191&v,_=v>>>13,k=0|a[4],x=8191&k,S=k>>>13,O=0|a[5],E=8191&O,T=O>>>13,A=0|a[6],M=8191&A,I=A>>>13,P=0|a[7],C=8191&P,j=P>>>13,D=0|a[8],R=8191&D,N=D>>>13,B=0|a[9],L=8191&B,U=B>>>13,F=0|s[0],q=8191&F,z=F>>>13,V=0|s[1],H=8191&V,$=V>>>13,K=0|s[2],W=8191&K,G=K>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var be=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(h,q),i=(i=Math.imul(h,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(g,q)|0,o=Math.imul(g,z),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,$)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,$)|0;var ge=(l+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,$)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ve=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(S,q)|0,o=Math.imul(S,z),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,G)|0,r=r+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,z))+Math.imul(T,q)|0,o=Math.imul(T,z),r=r+Math.imul(x,H)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,z))+Math.imul(I,q)|0,o=Math.imul(I,z),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(l+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,z))+Math.imul(j,q)|0,o=Math.imul(j,z),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var xe=(l+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(N,q)|0,o=Math.imul(N,z),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(U,q)|0,o=Math.imul(U,z),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,le)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Oe=(l+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,H),i=(i=Math.imul(L,$))+Math.imul(U,H)|0,o=Math.imul(U,$),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ee=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,G))+Math.imul(U,W)|0,o=Math.imul(U,G),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(l+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(g,he)|0))<<13)|0;l=((o=o+Math.imul(g,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(U,Q)|0,o=Math.imul(U,Y),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,le)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ae=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,he)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Me=(l+(r=r+Math.imul(x,he)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,he)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,le)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(r=r+Math.imul(E,he)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(T,he)|0))<<13)|0;l=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var Pe=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(U,ce)|0,o=Math.imul(U,le),r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,de)|0;var Ce=(l+(r=r+Math.imul(C,he)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(j,he)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var je=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(N,he)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863;var De=(l+(r=Math.imul(L,he))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,he)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=be,c[1]=ye,c[2]=ge,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=xe,c[8]=Se,c[9]=Oe,c[10]=Ee,c[11]=Te,c[12]=Ae,c[13]=Me,c[14]=Ie,c[15]=Pe,c[16]=Ce,c[17]=je,c[18]=De,0!==l&&(c[19]=l,n.length++),n};function b(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,f=(0|e.words[u])*(0|t.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(e,t,n){return b(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(m=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?h(this,e,t):n<1024?b(this,e,t):y(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},g.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},g.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},g.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=c,d=l,p=0;p<a;p++){var h=n[u+p],m=r[u+p],b=n[u+p+a],y=r[u+p+a],g=f*b-d*y;y=f*y+d*b,b=g,n[u+p]=h+b,r[u+p]=m+y,n[u+p+a]=h-b,r[u+p+a]=m-y,p!==s&&(g=c*f-l*d,d=c*d+l*f,f=g)}},g.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},g.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,l,r),this.transform(a,o,s,c,r,i),this.transform(l,o,u,f,r,i);for(var p=0;p<r;p++){var h=s[p]*u[p]-c[p]*f[p];c[p]=s[p]*f[p]+c[p]*u[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),y(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<n;this.words[t]=c|a,a=s>>>26-n}a&&(this.words[t]=a,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()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=n;if(i-=a,i=Math.max(0,i),c){for(var l=0;l<a;l++)c.words[l]=this.words[l];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var f=0|this.words[l];this.words[l]=u<<26-o|f>>>o,u=f&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(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)},o.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},o.prototype.isubn=function(e){if(r("number"==typeof e),r(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()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(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},o.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},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new O(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){O.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(_,w),_.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(k,w),i(x,w),i(S,w),S.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new k;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return v[e]=t,t},O.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},O.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},O.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},O.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},O.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},O.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},O.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},O.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},O.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},O.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},O.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},O.prototype.isqr=function(e){return this.imul(e,e.clone())},O.prototype.sqr=function(e){return this.mul(e,e)},O.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();r(b<h);var y=this.pow(f,new o(1).iushln(h-b-1));d=d.redMul(y),f=y.redSqr(),p=p.redMul(f),h=b}return d},O.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},O.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var f=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},O.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},O.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,O),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(71)(e))},function(e,t){},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.3","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"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","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","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":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"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"}}')},function(e,t,n){"use strict";var r=n(33),i=n(6),o=n(4),a=n(123),s=r.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(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 l(e,t,n,r){a.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(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,n,r){a.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,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}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,o,a,s,c,l,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,p=this.n.clone(),h=new i(1),m=new i(0),b=new i(0),y=new i(1),g=0;0!==d.cmpn(0);){var v=p.div(d);l=p.sub(v.mul(d)),u=b.sub(v.mul(h));var w=y.sub(v.mul(m));if(!r&&l.cmp(f)<0)t=c.neg(),n=h,r=l.neg(),o=u;else if(r&&2==++g)break;c=l,p=d,d=l,b=h,h=u,y=m,m=w}a=l.neg(),s=u;var _=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),c=i.mul(n.b),l=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),r[2*o]=s,r[2*o+1]=c,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var l=this._wnafMulAdd(1,r,i,2*o,n),u=0;u<2*o;u++)r[u]=null,i[u]=null;return l},o(l,a.BasePoint),c.prototype.point=function(e,t,n){return new l(this,e,t,n)},c.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.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 n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},l.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]},l.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},l.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)+">"},l.prototype.isInfinity=function(){return this.inf},l.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 n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},l.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,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},l.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},l.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))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),c.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},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(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),f=r.redMul(l),d=c.redSqr().redIAdd(u).redISub(f).redISub(f),p=c.redMul(f.redISub(d)).redISub(o.redMul(u)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,p,h)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),l=c.redMul(a),u=n.redMul(c),f=s.redSqr().redIAdd(l).redISub(u).redISub(u),d=s.redMul(u.redISub(f)).redISub(i.redMul(l)),p=this.z.redMul(a);return this.curve.jpoint(f,d,p)},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,n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),l=a.redAdd(a);for(n=0;n<e;n++){var u=o.redSqr(),f=l.redSqr(),d=f.redSqr(),p=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),h=o.redMul(f),m=p.redSqr().redISub(h.redAdd(h)),b=h.redISub(m),y=p.redMul(b);y=y.redIAdd(y).redISub(d);var g=l.redMul(s);n+1<e&&(c=c.redMul(d)),o=m,s=g,l=y}return this.curve.jpoint(o,l.redMul(i),s)},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,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(a).redISub(a),l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=s.redMul(a.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),p=this.x.redAdd(f).redSqr().redISub(u).redISub(d);p=p.redIAdd(p);var h=u.redAdd(u).redIAdd(u),m=h.redSqr(),b=d.redIAdd(d);b=(b=b.redIAdd(b)).redIAdd(b),e=m.redISub(p).redISub(p),t=h.redMul(p.redISub(e)).redISub(b),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);e=c;var l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(a.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),p=this.x.redSub(u).redMul(this.x.redAdd(u));p=p.redAdd(p).redIAdd(p);var h=d.redIAdd(d),m=(h=h.redIAdd(h)).redAdd(h);e=p.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(u);var b=f.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),t=p.redMul(h.redISub(e)).redISub(b)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(a),u=s.redSqr().redISub(l.redAdd(l)),f=l.redISub(u),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=s.redMul(f).redISub(d),h=n.redAdd(n).redMul(r);return this.curve.jpoint(u,p,h)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var f=this.x.redMul(s).redISub(u);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(l.redMul(c.redISub(l)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,d,p)},u.prototype.mul=function(e,t){return e=new i(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(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},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,n){"use strict";var r=n(6),i=n(4),o=n(123),a=n(33);function s(e){o.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){o.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=i.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(33),i=n(6),o=n(4),a=n(123),s=r.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(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 l(e,t,n,r,o){a.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(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 i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=o&&new i(o,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()))))}o(c,a),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},o(l,a.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,n,r){return new l(this,e,t,n,r)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.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)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),a=o.redSub(n),s=r.redSub(t),c=i.redMul(a),l=o.redMul(s),u=i.redMul(s),f=a.redMul(o);return this.curve.point(c,l,f,u)},l.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(l=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=r.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(l.redSub(o)),n=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),c=a.redSub(s).redISub(s);e=r.redSub(i).redISub(o).redMul(c),t=a.redMul(l.redSub(o)),n=a.redMul(c)}}else{var l=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),c=l.redSub(s).redSub(s);e=this.curve._mulC(r.redISub(l)).redMul(c),t=this.curve._mulC(l).redMul(i.redISub(o)),n=l.redMul(c)}return this.curve.point(e,t,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=i.redSub(r),s=i.redAdd(r),c=n.redAdd(t),l=o.redMul(a),u=s.redMul(c),f=o.redMul(c),d=a.redMul(s);return this.curve.point(l,u,d,f)},l.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),l=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=r.redMul(c).redMul(u);return this.curve.twisted?(t=r.redMul(l).redMul(a.redSub(this.curve._mulA(o))),n=c.redMul(l)):(t=r.redMul(l).redMul(a.redSub(o)),n=this.curve._mulC(c).redMul(l)),this.curve.point(f,t,n)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},l.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},l.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},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},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,n){"use strict";var r=n(6),i=n(514),o=n(33),a=n(164),s=n(161),c=o.assert,l=n(515),u=n(516);function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(c(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.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}e.exports=f,f.prototype.keyPair=function(e){return new l(this,e)},f.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var a=new r(t.generate(n));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,n,o){"object"==typeof n&&(o=n,n=null),o||(o={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),l=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new r(1)),d=0;;d++){var p=o.k?o.k(d):new r(l.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(f)>=0)){var h=this.g.mul(p);if(!h.isInfinity()){var m=h.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var y=p.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var g=(h.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),g^=1),new u({r:b,s:y,recoveryParam:g})}}}}}},f.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),l=c.mul(e).umod(this.n),f=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(l,n.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new r(e),s=t.r,l=t.s,f=1&n,d=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var p=t.r.invm(o),h=o.sub(a).mul(p).umod(o),m=l.mul(p).umod(o);return this.g.mulAdd(h,s,m)},f.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(70),i=n(280),o=n(32);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=a,a.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);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(r),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},a.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())},a.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(n),this._reseed++,i.encode(a,t)}},function(e,t,n){"use strict";var r=n(6),i=n(33).assert;function o(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)}e.exports=o,o.fromPublic=function(e,t,n){return t instanceof o?t:new o(e,{pub:t,pubEnc:n})},o.fromPrivate=function(e,t,n){return t instanceof o?t:new o(e,{priv:t,privEnc:n})},o.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"}},o.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},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(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)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";var r=n(6),i=n(33),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o<r;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function l(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;if(o+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=c(e,n);if(!1===a)return!1;var l=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var u=c(e,n);if(!1===u)return!1;if(e.length!==u+n.place)return!1;var f=e.slice(n.place,u+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(l),this.s=new r(f),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=l(t),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var o=r.concat(n),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,n){"use strict";var r=n(70),i=n(164),o=n(33),a=o.assert,s=o.parseBytes,c=n(518),l=n(519);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[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=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),c=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},u.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)},u.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=o.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var r=n(33),i=r.assert,o=r.parseBytes,a=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=s},function(e,t,n){"use strict";var r=n(6),i=n(33),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(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 r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},function(e,t){},function(e,t,n){"use strict";var r=n(283);t.certificate=n(527);var i=r.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 o=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var a=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=a;var s=r.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())})),c=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var l=r.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=l;var u=r.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=u,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=f;var d=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,n){"use strict";const r=n(284),i=n(286),o=n(4);function a(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new a(e,t)},a.prototype._createNamed=function(e){const t=this.name;function n(e){this._initNamed(e,t)}return o(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},a.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},a.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},a.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},a.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},function(e,t,n){"use strict";const r=n(4),i=n(285);function o(e){i.call(this,e),this.enc="pem"}r(o,i),e.exports=o,o.prototype.encode=function(e,t){const n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"];for(let e=0;e<n.length;e+=64)r.push(n.slice(e,e+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},function(e,t,n){"use strict";const r=n(4),i=n(165).Buffer,o=n(287);function a(e){o.call(this,e),this.enc="pem"}r(a,o),e.exports=a,a.prototype.decode=function(e,t){const n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,c=-1;for(let e=0;e<n.length;e++){const t=n[e].match(a);if(null!==t&&t[2]===r){if(-1!==s){if("END"!==t[1])break;c=e;break}if("BEGIN"!==t[1])break;s=e}}if(-1===s||-1===c)throw new Error("PEM section not found for: "+r);const l=n.slice(s+1,c).join("");l.replace(/[^a-z0-9+/=]+/gi,"");const u=i.from(l,"base64");return o.prototype.decode.call(this,u,t)}},function(e,t,n){"use strict";const r=t;r.Reporter=n(167).Reporter,r.DecoderBuffer=n(99).DecoderBuffer,r.EncoderBuffer=n(99).EncoderBuffer,r.Node=n(166)},function(e,t,n){"use strict";const r=t;r._reverse=function(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n})),t},r.der=n(168)},function(e,t,n){"use strict";var r=n(283),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),c=r.define("RelativeDistinguishedName",(function(){this.setof(o)})),l=r.define("RDNSequence",(function(){this.seqof(c)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(l)})})),f=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),p=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(u),this.key("validity").use(f),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),h=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));e.exports=h},function(e){e.exports=JSON.parse('{"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,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=n(122),s=n(159),c=n(7).Buffer;e.exports=function(e,t){var n,l=e.toString(),u=l.match(r);if(u){var f="aes"+u[1],d=c.from(u[2],"hex"),p=c.from(u[3].replace(/[\r\n]/g,""),"base64"),h=a(t,d.slice(0,8),parseInt(u[1],10)).key,m=[],b=s.createDecipheriv(f,h,d);m.push(b.update(p)),m.push(b.final()),n=c.concat(m)}else{var y=l.match(o);n=c.from(y[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(i)[1],data:n}}},function(e,t,n){var r=n(7).Buffer,i=n(282),o=n(45).ec,a=n(124),s=n(288);function c(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,t,n,l,u){var f=a(n);if("ec"===f.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new o(r),a=n.data.subjectPrivateKey.data;return i.verify(t,e,a)}(e,t,f)}if("dsa"===f.type){if("dsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,o=n.data.q,s=n.data.g,l=n.data.pub_key,u=a.signature.decode(e,"der"),f=u.s,d=u.r;c(f,o),c(d,o);var p=i.mont(r),h=f.invm(o);return 0===s.toRed(p).redPow(new i(t).mul(h).mod(o)).fromRed().mul(l.toRed(p).redPow(d.mul(h).mod(o)).fromRed()).mod(r).mod(o).cmp(d)}(e,t,f)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");t=r.concat([u,t]);for(var d=f.modulus.byteLength(),p=[1],h=0;t.length+p.length+2<d;)p.push(255),h++;p.push(0);for(var m=-1;++m<t.length;)p.push(t[m]);p=r.from(p);var b=i.mont(f.modulus);e=(e=new i(e).toRed(b)).redPow(new i(f.publicExponent)),e=r.from(e.fromRed().toArray());var y=h<8?1:0;for(d=Math.min(e.length,p.length),e.length!==p.length&&(y=1),m=-1;++m<d;)y|=e[m]^p[m];return 0===y}},function(e,t,n){(function(t){var r=n(45),i=n(6);e.exports=function(e){return new a(e)};var o={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}};function a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(e,n,r){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(r&&i.length<r){var o=new t(r-i.length);o.fill(0),i=t.concat([o,i])}return n?i.toString(n):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,n,r){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),s(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,e)},a.prototype.getPrivateKey=function(e){return s(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,n){return n=n||"utf8",t.isBuffer(e)||(e=new t(e,n)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,n){n=n||"utf8",t.isBuffer(e)||(e=new t(e,n));var r=new i(e);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n(2).Buffer)},function(e,t,n){t.publicEncrypt=n(533),t.privateDecrypt=n(534),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},function(e,t,n){var r=n(124),i=n(62),o=n(54),a=n(289),s=n(290),c=n(6),l=n(291),u=n(163),f=n(7).Buffer;e.exports=function(e,t,n){var d;d=e.padding?e.padding:n?1:4;var p,h=r(e);if(4===d)p=function(e,t){var n=e.modulus.byteLength(),r=t.length,l=o("sha1").update(f.alloc(0)).digest(),u=l.length,d=2*u;if(r>n-d-2)throw new Error("message too long");var p=f.alloc(n-r-d-2),h=n-u-1,m=i(u),b=s(f.concat([l,p,f.alloc(1,1),t],h),a(m,h)),y=s(m,a(b,u));return new c(f.concat([f.alloc(1),y,b],n))}(h,t);else if(1===d)p=function(e,t,n){var r,o=t.length,a=e.modulus.byteLength();if(o>a-11)throw new Error("message too long");r=n?f.alloc(a-o-3,255):function(e){var t,n=f.allocUnsafe(e),r=0,o=i(2*e),a=0;for(;r<e;)a===o.length&&(o=i(2*e),a=0),(t=o[a++])&&(n[r++]=t);return n}(a-o-3);return new c(f.concat([f.from([0,n?1:2]),r,f.alloc(1),t],a))}(h,t,n);else{if(3!==d)throw new Error("unknown padding");if((p=new c(t)).cmp(h.modulus)>=0)throw new Error("data too long for modulus")}return n?u(p,h):l(p,h)}},function(e,t,n){var r=n(124),i=n(289),o=n(290),a=n(6),s=n(163),c=n(54),l=n(291),u=n(7).Buffer;e.exports=function(e,t,n){var f;f=e.padding?e.padding:n?1:4;var d,p=r(e),h=p.modulus.byteLength();if(t.length>h||new a(t).cmp(p.modulus)>=0)throw new Error("decryption error");d=n?l(new a(t),p):s(t,p);var m=u.alloc(h-d.length);if(d=u.concat([m,d],h),4===f)return function(e,t){var n=e.modulus.byteLength(),r=c("sha1").update(u.alloc(0)).digest(),a=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,a+1),l=t.slice(a+1),f=o(s,i(l,a)),d=o(l,i(f,n-a-1));if(function(e,t){e=u.from(e),t=u.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var i=-1;for(;++i<r;)n+=e[i]^t[i];return n}(r,d.slice(0,a)))throw new Error("decryption error");var p=a;for(;0===d[p];)p++;if(1!==d[p++])throw new Error("decryption error");return d.slice(p)}(p,d);if(1===f)return function(e,t,n){var r=t.slice(0,2),i=2,o=0;for(;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,d,n);if(3===f)return d;throw new Error("unknown padding")}},function(e,t,n){"use strict";(function(e,r){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=n(7),a=n(62),s=o.Buffer,c=o.kMaxLength,l=e.crypto||e.msCrypto,u=Math.pow(2,32)-1;function f(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function d(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>c)throw new RangeError("buffer too small")}function p(e,t,n,i){if(r.browser){var o=e.buffer,s=new Uint8Array(o,t,n);return l.getRandomValues(s),i?void r.nextTick((function(){i(null,e)})):e}if(!i)return a(n).copy(e,t),e;a(n,(function(n,r){if(n)return i(n);r.copy(e,t),i(null,e)}))}l&&l.getRandomValues||!r.browser?(t.randomFill=function(t,n,r,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)i=n,n=0,r=t.length;else if("function"==typeof r)i=r,r=t.length-n;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return f(n,t.length),d(r,n,t.length),p(t,n,r,i)},t.randomFillSync=function(t,n,r){void 0===n&&(n=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(n,t.length),void 0===r&&(r=t.length-n);return d(r,n,t.length),p(t,n,r)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,n(12),n(13))},function(e,t){const n="Impossible case. Please create issue.",r="The tweak was out of range or the resulted private key is invalid",i="The tweak was out of range or equal to zero",o="Unknow error on context randomization",a="Private Key is invalid",s="Public Key could not be parsed",c="Public Key serialization error",l="The sum of the public keys is not valid",u="Signature could not be parsed",f="The nonce generation function failed, or the private key was invalid",d="Public key could not be recover",p="Scalar was invalid (zero or overflow)";function h(e,t){if(!e)throw new Error(t)}function m(e,t,n){if(h(t instanceof Uint8Array,`Expected ${e} to be an Uint8Array`),void 0!==n)if(Array.isArray(n)){const r=`Expected ${e} to be an Uint8Array with length [${n.join(", ")}]`;h(n.includes(t.length),r)}else{const r=`Expected ${e} to be an Uint8Array with length ${n}`;h(t.length===n,r)}}function b(e){h("Boolean"===g(e),"Expected compressed to be a Boolean")}function y(e=(e=>new Uint8Array(e)),t){return"function"==typeof e&&(e=e(t)),m("output",e,t),e}function g(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=e=>({contextRandomize(t){switch(h(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&m("seed",t,32),e.contextRandomize(t)){case 1:throw new Error(o)}},privateKeyVerify:t=>(m("private key",t,32),0===e.privateKeyVerify(t)),privateKeyNegate(t){switch(m("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(n)}},privateKeyTweakAdd(t,n){switch(m("private key",t,32),m("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(r)}},privateKeyTweakMul(t,n){switch(m("private key",t,32),m("tweak",n,32),e.privateKeyTweakMul(t,n)){case 0:return t;case 1:throw new Error(i)}},publicKeyVerify:t=>(m("public key",t,[33,65]),0===e.publicKeyVerify(t)),publicKeyCreate(t,n=!0,r){switch(m("private key",t,32),b(n),r=y(r,n?33:65),e.publicKeyCreate(r,t)){case 0:return r;case 1:throw new Error(a);case 2:throw new Error(c)}},publicKeyConvert(t,n=!0,r){switch(m("public key",t,[33,65]),b(n),r=y(r,n?33:65),e.publicKeyConvert(r,t)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(c)}},publicKeyNegate(t,r=!0,i){switch(m("public key",t,[33,65]),b(r),i=y(i,r?33:65),e.publicKeyNegate(i,t)){case 0:return i;case 1:throw new Error(s);case 2:throw new Error(n);case 3:throw new Error(c)}},publicKeyCombine(t,n=!0,r){h(Array.isArray(t),"Expected public keys to be an Array"),h(t.length>0,"Expected public keys array will have more than zero items");for(const e of t)m("public key",e,[33,65]);switch(b(n),r=y(r,n?33:65),e.publicKeyCombine(r,t)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(l);case 3:throw new Error(c)}},publicKeyTweakAdd(t,n,i=!0,o){switch(m("public key",t,[33,65]),m("tweak",n,32),b(i),o=y(o,i?33:65),e.publicKeyTweakAdd(o,t,n)){case 0:return o;case 1:throw new Error(s);case 2:throw new Error(r)}},publicKeyTweakMul(t,n,r=!0,o){switch(m("public key",t,[33,65]),m("tweak",n,32),b(r),o=y(o,r?33:65),e.publicKeyTweakMul(o,t,n)){case 0:return o;case 1:throw new Error(s);case 2:throw new Error(i)}},signatureNormalize(t){switch(m("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(u)}},signatureExport(t,r){m("signature",t,64);const i={output:r=y(r,72),outputlen:72};switch(e.signatureExport(i,t)){case 0:return r.slice(0,i.outputlen);case 1:throw new Error(u);case 2:throw new Error(n)}},signatureImport(t,r){switch(m("signature",t),r=y(r,64),e.signatureImport(r,t)){case 0:return r;case 1:throw new Error(u);case 2:throw new Error(n)}},ecdsaSign(t,r,i={},o){m("message",t,32),m("private key",r,32),h("Object"===g(i),"Expected options to be an Object"),void 0!==i.data&&m("options.data",i.data),void 0!==i.noncefn&&h("Function"===g(i.noncefn),"Expected options.noncefn to be a Function");const a={signature:o=y(o,64),recid:null};switch(e.ecdsaSign(a,t,r,i.data,i.noncefn)){case 0:return a;case 1:throw new Error(f);case 2:throw new Error(n)}},ecdsaVerify(t,n,r){switch(m("signature",t,64),m("message",n,32),m("public key",r,[33,65]),e.ecdsaVerify(t,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(u);case 2:throw new Error(s)}},ecdsaRecover(t,r,i,o=!0,a){switch(m("signature",t,64),h("Number"===g(r)&&r>=0&&r<=3,"Expected recovery id to be a Number within interval [0, 3]"),m("message",i,32),b(o),a=y(a,o?33:65),e.ecdsaRecover(a,t,r,i)){case 0:return a;case 1:throw new Error(u);case 2:throw new Error(d);case 3:throw new Error(n)}},ecdh(t,n,r={},i){switch(m("public key",t,[33,65]),m("private key",n,32),h("Object"===g(r),"Expected options to be an Object"),void 0!==r.data&&m("options.data",r.data),void 0!==r.hashfn?(h("Function"===g(r.hashfn),"Expected options.hashfn to be a Function"),void 0!==r.xbuf&&m("options.xbuf",r.xbuf,32),void 0!==r.ybuf&&m("options.ybuf",r.ybuf,32),m("output",i)):i=y(i,32),e.ecdh(i,t,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return i;case 1:throw new Error(s);case 2:throw new Error(p)}}})},function(e,t,n){const r=new(0,n(45).ec)("secp256k1"),i=r.curve,o=i.n.constructor;function a(e){const t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){let n=new o(t);if(n.cmp(i.p)>=0)return null;n=n.toRed(i.red);let a=n.redSqr().redIMul(n).redIAdd(i.b).redSqrt();return 3===e!==a.isOdd()&&(a=a.redNeg()),r.keyPair({pub:{x:n,y:a}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,n){let a=new o(t),s=new o(n);if(a.cmp(i.p)>=0||s.cmp(i.p)>=0)return null;if(a=a.toRed(i.red),s=s.toRed(i.red),(6===e||7===e)&&s.isOdd()!==(7===e))return null;const c=a.redSqr().redIMul(a);return s.redSqr().redISub(c.redIAdd(i.b)).isZero()?r.keyPair({pub:{x:a,y:s}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function s(e,t){const n=t.encode(null,33===e.length);for(let t=0;t<e.length;++t)e[t]=n[t]}e.exports={contextRandomize:()=>0,privateKeyVerify(e){const t=new o(e);return t.cmp(i.n)<0&&!t.isZero()?0:1},privateKeyNegate(e){const t=new o(e),n=i.n.sub(t).umod(i.n).toArrayLike(Uint8Array,"be",32);return e.set(n),0},privateKeyTweakAdd(e,t){const n=new o(t);if(n.cmp(i.n)>=0)return 1;if(n.iadd(new o(e)),n.cmp(i.n)>=0&&n.isub(i.n),n.isZero())return 1;const r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakMul(e,t){let n=new o(t);if(n.cmp(i.n)>=0||n.isZero())return 1;n.imul(new o(e)),n.cmp(i.n)>=0&&(n=n.umod(i.n));const r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},publicKeyVerify:e=>null===a(e)?1:0,publicKeyCreate(e,t){const n=new o(t);if(n.cmp(i.n)>=0||n.isZero())return 1;return s(e,r.keyFromPrivate(t).getPublic()),0},publicKeyConvert(e,t){const n=a(t);if(null===n)return 1;return s(e,n.getPublic()),0},publicKeyNegate(e,t){const n=a(t);if(null===n)return 1;const r=n.getPublic();return r.y=r.y.redNeg(),s(e,r),0},publicKeyCombine(e,t){const n=new Array(t.length);for(let e=0;e<t.length;++e)if(n[e]=a(t[e]),null===n[e])return 1;let r=n[0].getPublic();for(let e=1;e<n.length;++e)r=r.add(n[e].pub);return r.isInfinity()?2:(s(e,r),0)},publicKeyTweakAdd(e,t,n){const r=a(t);if(null===r)return 1;if((n=new o(n)).cmp(i.n)>=0)return 2;const c=r.getPublic().add(i.g.mul(n));return c.isInfinity()?2:(s(e,c),0)},publicKeyTweakMul(e,t,n){const r=a(t);if(null===r)return 1;if((n=new o(n)).cmp(i.n)>=0||n.isZero())return 2;return s(e,r.getPublic().mul(n)),0},signatureNormalize(e){const t=new o(e.subarray(0,32)),n=new o(e.subarray(32,64));return t.cmp(i.n)>=0||n.cmp(i.n)>=0?1:(1===n.cmp(r.nh)&&e.set(i.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(e,t){const n=t.subarray(0,32),r=t.subarray(32,64);if(new o(n).cmp(i.n)>=0)return 1;if(new o(r).cmp(i.n)>=0)return 1;const{output:a}=e;let s=a.subarray(4,37);s[0]=0,s.set(n,1);let c=33,l=0;for(;c>1&&0===s[l]&&!(128&s[l+1]);--c,++l);if(s=s.subarray(l),128&s[0])return 1;if(c>1&&0===s[0]&&!(128&s[1]))return 1;let u=a.subarray(39,72);u[0]=0,u.set(r,1);let f=33,d=0;for(;f>1&&0===u[d]&&!(128&u[d+1]);--f,++d);return u=u.subarray(d),128&u[0]||f>1&&0===u[0]&&!(128&u[1])?1:(e.outputlen=6+c+f,a[0]=48,a[1]=e.outputlen-2,a[2]=2,a[3]=s.length,a.set(s,4),a[4+c]=2,a[5+c]=u.length,a.set(u,6+c),0)},signatureImport(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;const n=t[3];if(0===n)return 1;if(5+n>=t.length)return 1;if(2!==t[4+n])return 1;const r=t[5+n];if(0===r)return 1;if(6+n+r!==t.length)return 1;if(128&t[4])return 1;if(n>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[n+6])return 1;if(r>1&&0===t[n+6]&&!(128&t[n+7]))return 1;let a=t.subarray(4,4+n);if(33===a.length&&0===a[0]&&(a=a.subarray(1)),a.length>32)return 1;let s=t.subarray(6+n);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");let c=new o(a);c.cmp(i.n)>=0&&(c=new o(0));let l=new o(t.subarray(6+n));return l.cmp(i.n)>=0&&(l=new o(0)),e.set(c.toArrayLike(Uint8Array,"be",32),0),e.set(l.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(e,t,n,a,s){if(s){const e=s;s=r=>{const i=e(t,n,null,a,r);if(!(i instanceof Uint8Array&&32===i.length))throw new Error("This is the way");return new o(i)}}const c=new o(n);if(c.cmp(i.n)>=0||c.isZero())return 1;let l;try{l=r.sign(t,n,{canonical:!0,k:s,pers:a})}catch(e){return 1}return e.signature.set(l.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(l.s.toArrayLike(Uint8Array,"be",32),32),e.recid=l.recoveryParam,0},ecdsaVerify(e,t,n){const s={r:e.subarray(0,32),s:e.subarray(32,64)},c=new o(s.r),l=new o(s.s);if(c.cmp(i.n)>=0||l.cmp(i.n)>=0)return 1;if(1===l.cmp(r.nh)||c.isZero()||l.isZero())return 3;const u=a(n);if(null===u)return 2;const f=u.getPublic();return r.verify(t,s,f)?0:3},ecdsaRecover(e,t,n,a){const c={r:t.slice(0,32),s:t.slice(32,64)},l=new o(c.r),u=new o(c.s);if(l.cmp(i.n)>=0||u.cmp(i.n)>=0)return 1;if(l.isZero()||u.isZero())return 2;let f;try{f=r.recoverPubKey(a,c,n)}catch(e){return 2}return s(e,f),0},ecdh(e,t,n,s,c,l,u){const f=a(t);if(null===f)return 1;const d=new o(n);if(d.cmp(i.n)>=0||d.isZero())return 2;const p=f.getPublic().mul(d);if(void 0===c){const t=p.encode(null,!0),n=r.hash().update(t).digest();for(let t=0;t<32;++t)e[t]=n[t]}else{l||(l=new Uint8Array(32));const t=p.getX().toArray("be",32);for(let e=0;e<32;++e)l[e]=t[e];u||(u=new Uint8Array(32));const n=p.getY().toArray("be",32);for(let e=0;e<32;++e)u[e]=n[e];const r=c(l,u,s);if(!(r instanceof Uint8Array&&r.length===e.length))return 2;e.set(r)}return 0}}},function(e,t,n){"use strict";var r=n(539),i=n(57),o=n(294),a=n(169),s=n(295),c=Object.prototype.toString;function l(e){if(!(this instanceof l))return new l(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var u;if(u="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,u)))throw new Error(a[n]);this._dict_set=!0}}function u(e,t){var n=new l(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}l.prototype.push=function(e,t){var n,a,s=this.strm,l=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===c.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(l),s.next_out=0,s.avail_out=l),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},l.prototype.onData=function(e){this.chunks.push(e)},l.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=l,t.deflate=u,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,u(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,u(e,t)}},function(e,t,n){"use strict";var r,i=n(57),o=n(540),a=n(292),s=n(293),c=n(169);function l(e,t){return e.msg=c[t],t}function u(e){return(e<<1)-(e>4?9:0)}function f(e){for(var t=e.length;--t>=0;)e[t]=0}function d(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function p(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,d(e.strm)}function h(e,t){e.pending_buf[e.pending++]=t}function m(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function b(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,l=e.window,u=e.w_mask,f=e.prev,d=e.strstart+258,p=l[o+a-1],h=l[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(l[(n=t)+a]===h&&l[n+a-1]===p&&l[n]===l[o]&&l[++n]===l[o+1]){o+=2,n++;do{}while(l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&l[++o]===l[++n]&&o<d);if(r=258-(d-o),o=d-258,r>a){if(e.match_start=t,a=r,r>=s)break;p=l[o+a-1],h=l[o+a]}}}while((t=f[t&u])>c&&0!=--i);return a<=e.lookahead?a:e.lookahead}function y(e){var t,n,r,o,c,l,u,f,d,p,h=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=h+(h-262)){i.arraySet(e.window,e.window,h,h,0),e.match_start-=h,e.strstart-=h,e.block_start-=h,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=h?r-h:0}while(--n);t=n=h;do{r=e.prev[--t],e.prev[t]=r>=h?r-h:0}while(--n);o+=h}if(0===e.strm.avail_in)break;if(l=e.strm,u=e.window,f=e.strstart+e.lookahead,d=o,p=void 0,(p=l.avail_in)>d&&(p=d),n=0===p?0:(l.avail_in-=p,i.arraySet(u,l.input,l.next_in,p,f),1===l.state.wrap?l.adler=a(l.adler,u,p,f):2===l.state.wrap&&(l.adler=s(l.adler,u,p,f)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=3)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+3-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function g(e,t){for(var n,r;;){if(e.lookahead<262){if(y(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-262&&(e.match_length=b(e,n)),e.match_length>=3)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}function v(e,t){for(var n,r,i;;){if(e.lookahead<262){if(y(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-262&&(e.match_length=b(e,n),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(p(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&p(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}function w(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function _(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),f(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),f(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function k(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,o._tr_init(t),0):l(e,-2)}function x(e){var t,n=k(e);return 0===n&&((t=e.state).window_size=2*t.w_size,f(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n}function S(e,t,n,r,o,a){if(!e)return-2;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return l(e,-2);8===r&&(r=9);var c=new _;return e.state=c,c.strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=o+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+3-1)/3),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<o+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=a,c.method=n,x(e)}r=[new w(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(y(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,p(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-262&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(p(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(p(e,!1),e.strm.avail_out),1)})),new w(4,4,8,4,g),new w(4,5,16,8,g),new w(4,6,32,32,g),new w(4,4,16,16,v),new w(8,16,32,32,v),new w(8,16,128,128,v),new w(8,32,128,256,v),new w(32,128,258,1024,v),new w(32,258,258,4096,v)],t.deflateInit=function(e,t){return S(e,t,8,15,8,0)},t.deflateInit2=S,t.deflateReset=x,t.deflateResetKeep=k,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},t.deflate=function(e,t){var n,i,a,c;if(!e||!e.state||t>5||t<0)return e?l(e,-2):-2;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return l(e,0===e.avail_out?-5:-2);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,h(i,31),h(i,139),h(i,8),i.gzhead?(h(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),h(i,255&i.gzhead.time),h(i,i.gzhead.time>>8&255),h(i,i.gzhead.time>>16&255),h(i,i.gzhead.time>>24&255),h(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),h(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(h(i,255&i.gzhead.extra.length),h(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(h(i,0),h(i,0),h(i,0),h(i,0),h(i,0),h(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),h(i,3),i.status=113);else{var b=8+(i.w_bits-8<<4)<<8;b|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(b|=32),b+=31-b%31,i.status=113,m(i,b),0!==i.strstart&&(m(i,e.adler>>>16),m(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),d(e),a=i.pending,i.pending!==i.pending_buf_size));)h(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),d(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,h(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),d(e),a=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,h(i,c)}while(0!==c);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===c&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&d(e),i.pending+2<=i.pending_buf_size&&(h(i,255&e.adler),h(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(d(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&u(t)<=u(n)&&4!==t)return l(e,-5);if(666===i.status&&0!==e.avail_in)return l(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var g=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(y(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=258){if(y(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+258;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=258-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(p(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(p(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(p(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==g&&4!==g||(i.status=666),1===g||3===g)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===g&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(f(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),d(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(h(i,255&e.adler),h(i,e.adler>>8&255),h(i,e.adler>>16&255),h(i,e.adler>>24&255),h(i,255&e.total_in),h(i,e.total_in>>8&255),h(i,e.total_in>>16&255),h(i,e.total_in>>24&255)):(m(i,e.adler>>>16),m(i,65535&e.adler)),d(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?l(e,-2):(e.state=null,113===t?l(e,-3):0):-2},t.deflateSetDictionary=function(e,t){var n,r,o,s,c,l,u,d,p=t.length;if(!e||!e.state)return-2;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return-2;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(f(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,p-n.w_size,n.w_size,0),t=d,p=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=p,e.next_in=0,e.input=t,y(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+3-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--o);n.strstart=r,n.lookahead=2,y(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=s,0},t.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,n){"use strict";var r=n(57);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],c=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l=new Array(576);i(l);var u=new Array(60);i(u);var f=new Array(512);i(f);var d=new Array(256);i(d);var p=new Array(29);i(p);var h,m,b,y=new Array(30);function g(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function v(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?f[e]:f[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,_(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function x(e,t,n){k(e,n[2*t],n[2*t+1])}function S(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1}function O(e,t,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=S(o[s]++,s))}}function E(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function T(e){e.bi_valid>8?_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function A(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function M(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&A(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!A(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function I(e,t,n){var r,i,s,c,l=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===r?x(e,i,t):(x(e,(s=d[i])+256+1,t),0!==(c=o[s])&&k(e,i-=p[s],c),x(e,s=w(--r),n),0!==(c=a[s])&&k(e,r-=y[s],c))}while(l<e.last_lit);x(e,256,t)}function P(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=l=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;n>=1;n--)M(e,o,n);i=c;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],M(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,M(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,h=t.stat_desc.max_length,m=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)>h&&(o=h,m++),c[2*r+1]=o,r>l||(e.bl_count[o]++,a=0,r>=p&&(a=d[r-p]),s=c[2*r],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(u[2*r+1]+a)));if(0!==m){do{for(o=h-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[h]--,m-=2}while(m>0);for(o=h;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>l||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(e,t),O(o,l,e.bl_count)}function C(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<c&&i===a||(s<l?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,o=i,0===a?(c=138,l=3):i===a?(c=6,l=3):(c=7,l=4))}function j(e,t,n){var r,i,o=-1,a=t[1],s=0,c=7,l=4;for(0===a&&(c=138,l=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<c&&i===a)){if(s<l)do{x(e,i,e.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(x(e,i,e.bl_tree),s--),x(e,16,e.bl_tree),k(e,s-3,2)):s<=10?(x(e,17,e.bl_tree),k(e,s-3,3)):(x(e,18,e.bl_tree),k(e,s-11,7));s=0,o=i,0===a?(c=138,l=3):i===a?(c=6,l=3):(c=7,l=4)}}i(y);var D=!1;function R(e,t,n,i){k(e,0+(i?1:0),3),function(e,t,n,i){T(e),i&&(_(e,n),_(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}t._tr_init=function(e){D||(!function(){var e,t,n,r,i,c=new Array(16);for(n=0,r=0;r<28;r++)for(p[r]=n,e=0;e<1<<o[r];e++)d[n++]=r;for(d[n-1]=r,i=0,r=0;r<16;r++)for(y[r]=i,e=0;e<1<<a[r];e++)f[i++]=r;for(i>>=7;r<30;r++)for(y[r]=i<<7,e=0;e<1<<a[r]-7;e++)f[256+i++]=r;for(t=0;t<=15;t++)c[t]=0;for(e=0;e<=143;)l[2*e+1]=8,e++,c[8]++;for(;e<=255;)l[2*e+1]=9,e++,c[9]++;for(;e<=279;)l[2*e+1]=7,e++,c[7]++;for(;e<=287;)l[2*e+1]=8,e++,c[8]++;for(O(l,287,c),e=0;e<30;e++)u[2*e+1]=5,u[2*e]=S(e,5);h=new g(l,o,257,286,15),m=new g(u,a,0,30,15),b=new g(new Array(0),s,0,19,7)}(),D=!0),e.l_desc=new v(e.dyn_ltree,h),e.d_desc=new v(e.dyn_dtree,m),e.bl_desc=new v(e.bl_tree,b),e.bi_buf=0,e.bi_valid=0,E(e)},t._tr_stored_block=R,t._tr_flush_block=function(e,t,n,r){var i,o,a=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),P(e,e.l_desc),P(e,e.d_desc),a=function(e){var t;for(C(e,e.dyn_ltree,e.l_desc.max_code),C(e,e.dyn_dtree,e.d_desc.max_code),P(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*c[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?R(e,t,n,r):4===e.strategy||o===i?(k(e,2+(r?1:0),3),I(e,l,u)):(k(e,4+(r?1:0),3),function(e,t,n,r){var i;for(k(e,t-257,5),k(e,n-1,5),k(e,r-4,4),i=0;i<r;i++)k(e,e.bl_tree[2*c[i]+1],3);j(e,e.dyn_ltree,t-1),j(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),I(e,e.dyn_ltree,e.dyn_dtree)),E(e),r&&T(e)},t._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(d[n]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){k(e,2,3),x(e,256,l),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,n){"use strict";var r=n(542),i=n(57),o=n(294),a=n(296),s=n(169),c=n(295),l=n(545),u=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new l,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=o.string2buf(t.dictionary):"[object ArrayBuffer]"===u.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(s[n])}function d(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}f.prototype.push=function(e,t){var n,s,c,l,f,d=this.strm,p=this.options.chunkSize,h=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?d.input=o.binstring2buf(e):"[object ArrayBuffer]"===u.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(p),d.next_out=0,d.avail_out=p),(n=r.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&h&&(n=r.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===m&&(n=a.Z_OK,m=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&n!==a.Z_STREAM_END&&(0!==d.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(c=o.utf8border(d.output,d.next_out),l=d.next_out-c,f=o.buf2string(d.output,c),d.next_out=l,d.avail_out=p-l,l&&i.arraySet(d.output,d.output,c,l,0),this.onData(f)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(m=!0)}while((d.avail_in>0||0===d.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=f,t.inflate=d,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},t.ungzip=d},function(e,t,n){"use strict";var r=n(57),i=n(292),o=n(293),a=n(543),s=n(544);function c(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function l(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function u(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):-2}function f(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,u(e)):-2}function d(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?-2:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,f(e))):-2}function p(e,t){var n,r;return e?(r=new l,e.state=r,r.window=null,0!==(n=d(e,t))&&(e.state=null),n):-2}var h,m,b=!0;function y(e){if(b){var t;for(h=new r.Buf32(512),m=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,h,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,m,0,e.work,{bits:5}),b=!1}e.lencode=h,e.lenbits=9,e.distcode=m,e.distbits=5}function g(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new r.Buf8(a.wsize)),i>=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=o))),0}t.inflateReset=f,t.inflateReset2=d,t.inflateResetKeep=u,t.inflateInit=function(e){return p(e,15)},t.inflateInit2=p,t.inflate=function(e,t){var n,l,u,f,d,p,h,m,b,v,w,_,k,x,S,O,E,T,A,M,I,P,C,j,D=0,R=new r.Buf8(4),N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return-2;12===(n=e.state).mode&&(n.mode=13),d=e.next_out,u=e.output,h=e.avail_out,f=e.next_in,l=e.input,p=e.avail_in,m=n.hold,b=n.bits,v=p,w=h,P=0;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;b<16;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}if(2&n.wrap&&35615===m){n.check=0,R[0]=255&m,R[1]=m>>>8&255,n.check=o(n.check,R,2,0),m=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&m)<<8)+(m>>8))%31){e.msg="incorrect header check",n.mode=30;break}if(8!=(15&m)){e.msg="unknown compression method",n.mode=30;break}if(b-=4,I=8+(15&(m>>>=4)),0===n.wbits)n.wbits=I;else if(I>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<<I,e.adler=n.check=1,n.mode=512&m?10:12,m=0,b=0;break;case 2:for(;b<16;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}if(n.flags=m,8!=(255&n.flags)){e.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=m>>8&1),512&n.flags&&(R[0]=255&m,R[1]=m>>>8&255,n.check=o(n.check,R,2,0)),m=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}n.head&&(n.head.time=m),512&n.flags&&(R[0]=255&m,R[1]=m>>>8&255,R[2]=m>>>16&255,R[3]=m>>>24&255,n.check=o(n.check,R,4,0)),m=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}n.head&&(n.head.xflags=255&m,n.head.os=m>>8),512&n.flags&&(R[0]=255&m,R[1]=m>>>8&255,n.check=o(n.check,R,2,0)),m=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}n.length=m,n.head&&(n.head.extra_len=m),512&n.flags&&(R[0]=255&m,R[1]=m>>>8&255,n.check=o(n.check,R,2,0)),m=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((_=n.length)>p&&(_=p),_&&(n.head&&(I=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,l,f,_,I)),512&n.flags&&(n.check=o(n.check,l,_,f)),p-=_,f+=_,n.length-=_),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break e;_=0;do{I=l[f+_++],n.head&&I&&n.length<65536&&(n.head.name+=String.fromCharCode(I))}while(I&&_<p);if(512&n.flags&&(n.check=o(n.check,l,_,f)),p-=_,f+=_,I)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break e;_=0;do{I=l[f+_++],n.head&&I&&n.length<65536&&(n.head.comment+=String.fromCharCode(I))}while(I&&_<p);if(512&n.flags&&(n.check=o(n.check,l,_,f)),p-=_,f+=_,I)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;b<16;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}if(m!==(65535&n.check)){e.msg="header crc mismatch",n.mode=30;break}m=0,b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;b<32;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}e.adler=n.check=c(m),m=0,b=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=d,e.avail_out=h,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=b,2;e.adler=n.check=1,n.mode=12;case 12:if(5===t||6===t)break e;case 13:if(n.last){m>>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}switch(n.last=1&m,b-=1,3&(m>>>=1)){case 0:n.mode=14;break;case 1:if(y(n),n.mode=20,6===t){m>>>=2,b-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}m>>>=2,b-=2;break;case 14:for(m>>>=7&b,b-=7&b;b<32;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}if((65535&m)!=(m>>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&m,m=0,b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(_=n.length){if(_>p&&(_=p),_>h&&(_=h),0===_)break e;r.arraySet(u,l,f,_,d),p-=_,f+=_,h-=_,d+=_,n.length-=_;break}n.mode=12;break;case 17:for(;b<14;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}if(n.nlen=257+(31&m),m>>>=5,b-=5,n.ndist=1+(31&m),m>>>=5,b-=5,n.ncode=4+(15&m),m>>>=4,b-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;b<3;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}n.lens[N[n.have++]]=7&m,m>>>=3,b-=3}for(;n.have<19;)n.lens[N[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,C={bits:n.lenbits},P=s(0,n.lens,0,19,n.lencode,0,n.work,C),n.lenbits=C.bits,P){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;O=(D=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,E=65535&D,!((S=D>>>24)<=b);){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}if(E<16)m>>>=S,b-=S,n.lens[n.have++]=E;else{if(16===E){for(j=S+2;b<j;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}if(m>>>=S,b-=S,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}I=n.lens[n.have-1],_=3+(3&m),m>>>=2,b-=2}else if(17===E){for(j=S+3;b<j;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}b-=S,I=0,_=3+(7&(m>>>=S)),m>>>=3,b-=3}else{for(j=S+7;b<j;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}b-=S,I=0,_=11+(127&(m>>>=S)),m>>>=7,b-=7}if(n.have+_>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;_--;)n.lens[n.have++]=I}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,C={bits:n.lenbits},P=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,C),n.lenbits=C.bits,P){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,C={bits:n.distbits},P=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,C),n.distbits=C.bits,P){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(p>=6&&h>=258){e.next_out=d,e.avail_out=h,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=b,a(e,w),d=e.next_out,u=e.output,h=e.avail_out,f=e.next_in,l=e.input,p=e.avail_in,m=n.hold,b=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;O=(D=n.lencode[m&(1<<n.lenbits)-1])>>>16&255,E=65535&D,!((S=D>>>24)<=b);){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}if(O&&0==(240&O)){for(T=S,A=O,M=E;O=(D=n.lencode[M+((m&(1<<T+A)-1)>>T)])>>>16&255,E=65535&D,!(T+(S=D>>>24)<=b);){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}m>>>=T,b-=T,n.back+=T}if(m>>>=S,b-=S,n.back+=S,n.length=E,0===O){n.mode=26;break}if(32&O){n.back=-1,n.mode=12;break}if(64&O){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&O,n.mode=22;case 22:if(n.extra){for(j=n.extra;b<j;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}n.length+=m&(1<<n.extra)-1,m>>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;O=(D=n.distcode[m&(1<<n.distbits)-1])>>>16&255,E=65535&D,!((S=D>>>24)<=b);){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}if(0==(240&O)){for(T=S,A=O,M=E;O=(D=n.distcode[M+((m&(1<<T+A)-1)>>T)])>>>16&255,E=65535&D,!(T+(S=D>>>24)<=b);){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}m>>>=T,b-=T,n.back+=T}if(m>>>=S,b-=S,n.back+=S,64&O){e.msg="invalid distance code",n.mode=30;break}n.offset=E,n.extra=15&O,n.mode=24;case 24:if(n.extra){for(j=n.extra;b<j;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}n.offset+=m&(1<<n.extra)-1,m>>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===h)break e;if(_=w-h,n.offset>_){if((_=n.offset-_)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}_>n.wnext?(_-=n.wnext,k=n.wsize-_):k=n.wnext-_,_>n.length&&(_=n.length),x=n.window}else x=u,k=d-n.offset,_=n.length;_>h&&(_=h),h-=_,n.length-=_;do{u[d++]=x[k++]}while(--_);0===n.length&&(n.mode=21);break;case 26:if(0===h)break e;u[d++]=n.length,h--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===p)break e;p--,m|=l[f++]<<b,b+=8}if(w-=h,e.total_out+=w,n.total+=w,w&&(e.adler=n.check=n.flags?o(n.check,u,w,d-w):i(n.check,u,w,d-w)),w=h,(n.flags?m:c(m))!==n.check){e.msg="incorrect data check",n.mode=30;break}m=0,b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;b<32;){if(0===p)break e;p--,m+=l[f++]<<b,b+=8}if(m!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=30;break}m=0,b=0}n.mode=29;case 29:P=1;break e;case 30:P=-3;break e;case 31:return-4;case 32:default:return-2}return e.next_out=d,e.avail_out=h,e.next_in=f,e.avail_in=p,n.hold=m,n.bits=b,(n.wsize||w!==e.avail_out&&n.mode<30&&(n.mode<27||4!==t))&&g(e,e.output,e.next_out,w-e.avail_out)?(n.mode=31,-4):(v-=e.avail_in,w-=e.avail_out,e.total_in+=v,e.total_out+=w,n.total+=w,n.wrap&&w&&(e.adler=n.check=n.flags?o(n.check,u,w,e.next_out-w):i(n.check,u,w,e.next_out-w)),e.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0===v&&0===w||4===t)&&0===P&&(P=-5),P)},t.inflateEnd=function(e){if(!e||!e.state)return-2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var n;return e&&e.state?0==(2&(n=e.state).wrap)?-2:(n.head=t,t.done=!1,0):-2},t.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?-2:11===n.mode&&i(1,t,r,0)!==n.check?-3:g(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,0):-2},t.inflateInfo="pako inflate (from Nodeca project)"},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o,a,s,c,l,u,f,d,p,h,m,b,y,g,v,w,_,k,x,S,O,E;n=e.state,r=e.next_in,O=e.input,i=r+(e.avail_in-5),o=e.next_out,E=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,f=n.wnext,d=n.window,p=n.hold,h=n.bits,m=n.lencode,b=n.distcode,y=(1<<n.lenbits)-1,g=(1<<n.distbits)-1;e:do{h<15&&(p+=O[r++]<<h,h+=8,p+=O[r++]<<h,h+=8),v=m[p&y];t:for(;;){if(p>>>=w=v>>>24,h-=w,0===(w=v>>>16&255))E[o++]=65535&v;else{if(!(16&w)){if(0==(64&w)){v=m[(65535&v)+(p&(1<<w)-1)];continue t}if(32&w){n.mode=12;break e}e.msg="invalid literal/length code",n.mode=30;break e}_=65535&v,(w&=15)&&(h<w&&(p+=O[r++]<<h,h+=8),_+=p&(1<<w)-1,p>>>=w,h-=w),h<15&&(p+=O[r++]<<h,h+=8,p+=O[r++]<<h,h+=8),v=b[p&g];n:for(;;){if(p>>>=w=v>>>24,h-=w,!(16&(w=v>>>16&255))){if(0==(64&w)){v=b[(65535&v)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",n.mode=30;break e}if(k=65535&v,h<(w&=15)&&(p+=O[r++]<<h,(h+=8)<w&&(p+=O[r++]<<h,h+=8)),(k+=p&(1<<w)-1)>c){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=w,h-=w,k>(w=o-a)){if((w=k-w)>u&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(x=0,S=d,0===f){if(x+=l-w,w<_){_-=w;do{E[o++]=d[x++]}while(--w);x=o-k,S=E}}else if(f<w){if(x+=l+f-w,(w-=f)<_){_-=w;do{E[o++]=d[x++]}while(--w);if(x=0,f<_){_-=w=f;do{E[o++]=d[x++]}while(--w);x=o-k,S=E}}}else if(x+=f-w,w<_){_-=w;do{E[o++]=d[x++]}while(--w);x=o-k,S=E}for(;_>2;)E[o++]=S[x++],E[o++]=S[x++],E[o++]=S[x++],_-=3;_&&(E[o++]=S[x++],_>1&&(E[o++]=S[x++]))}else{x=o-k;do{E[o++]=E[x++],E[o++]=E[x++],E[o++]=E[x++],_-=3}while(_>2);_&&(E[o++]=E[x++],_>1&&(E[o++]=E[x++]))}break}}break}}while(r<i&&o<s);r-=_=h>>3,p&=(1<<(h-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=o<s?s-o+257:257-(o-s),n.hold=p,n.bits=h}},function(e,t,n){"use strict";var r=n(57),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,c,l,u,f,d){var p,h,m,b,y,g,v,w,_,k=d.bits,x=0,S=0,O=0,E=0,T=0,A=0,M=0,I=0,P=0,C=0,j=null,D=0,R=new r.Buf16(16),N=new r.Buf16(16),B=null,L=0;for(x=0;x<=15;x++)R[x]=0;for(S=0;S<c;S++)R[t[n+S]]++;for(T=k,E=15;E>=1&&0===R[E];E--);if(T>E&&(T=E),0===E)return l[u++]=20971520,l[u++]=20971520,d.bits=1,0;for(O=1;O<E&&0===R[O];O++);for(T<O&&(T=O),I=1,x=1;x<=15;x++)if(I<<=1,(I-=R[x])<0)return-1;if(I>0&&(0===e||1!==E))return-1;for(N[1]=0,x=1;x<15;x++)N[x+1]=N[x]+R[x];for(S=0;S<c;S++)0!==t[n+S]&&(f[N[t[n+S]]++]=S);if(0===e?(j=B=f,g=19):1===e?(j=i,D-=257,B=o,L-=257,g=256):(j=a,B=s,g=-1),C=0,S=0,x=O,y=u,A=T,M=0,m=-1,b=(P=1<<T)-1,1===e&&P>852||2===e&&P>592)return 1;for(;;){v=x-M,f[S]<g?(w=0,_=f[S]):f[S]>g?(w=B[L+f[S]],_=j[D+f[S]]):(w=96,_=0),p=1<<x-M,O=h=1<<A;do{l[y+(C>>M)+(h-=p)]=v<<24|w<<16|_|0}while(0!==h);for(p=1<<x-1;C&p;)p>>=1;if(0!==p?(C&=p-1,C+=p):C=0,S++,0==--R[x]){if(x===E)break;x=t[n+f[S]]}if(x>T&&(C&b)!==m){for(0===M&&(M=T),y+=O,I=1<<(A=x-M);A+M<E&&!((I-=R[A+M])<=0);)A++,I<<=1;if(P+=1<<A,1===e&&P>852||2===e&&P>592)return 1;l[m=C&b]=T<<24|A<<16|y-u|0}}return 0!==C&&(l[y+C]=x-M<<24|64<<16|0),d.bits=T,0}},function(e,t,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseKVStore=void 0;t.BaseKVStore=class{constructor(e,t){this.provider=e,this._prefix=t}get(e){return r(this,void 0,void 0,(function*(){const t=this.prefix()+"/"+e;return(yield this.provider.get())[t]}))}set(e,t){const n=this.prefix()+"/"+e;return this.provider.set({[n]:t})}prefix(){return this._prefix}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Mnemonic=void 0;const i=n(69),o=n(557),a=n(2);class s{static generateWallet(e,t="m/44'/118'/0'/0/0",n="",i=256){return r(this,void 0,void 0,(function*(){const r=yield s.generateSeed(e,i);return{privKey:s.generateWalletFromMnemonic(r,t,n),mnemonic:r}}))}static validateMnemonic(e){i.validateMnemonic(e)}static generateSeed(e,t=128){return r(this,void 0,void 0,(function*(){if(t%32!=0)throw new TypeError("invalid entropy");let n=new Uint8Array(t/8);return n=yield e(n),i.entropyToMnemonic(a.Buffer.from(n).toString("hex"))}))}static generateWalletFromMnemonic(e,t="m/44'/118'/0'/0/0",n=""){const r=i.mnemonicToSeedSync(e,n),a=o.fromSeed(r).derivePath(t).privateKey;if(!a)throw new Error("null hd key");return a}}t.Mnemonic=s},function(e){e.exports=JSON.parse('["abdikace","abeceda","adresa","agrese","akce","aktovka","alej","alkohol","amputace","ananas","andulka","anekdota","anketa","antika","anulovat","archa","arogance","asfalt","asistent","aspirace","astma","astronom","atlas","atletika","atol","autobus","azyl","babka","bachor","bacil","baculka","badatel","bageta","bagr","bahno","bakterie","balada","baletka","balkon","balonek","balvan","balza","bambus","bankomat","barbar","baret","barman","baroko","barva","baterka","batoh","bavlna","bazalka","bazilika","bazuka","bedna","beran","beseda","bestie","beton","bezinka","bezmoc","beztak","bicykl","bidlo","biftek","bikiny","bilance","biograf","biolog","bitva","bizon","blahobyt","blatouch","blecha","bledule","blesk","blikat","blizna","blokovat","bloudit","blud","bobek","bobr","bodlina","bodnout","bohatost","bojkot","bojovat","bokorys","bolest","borec","borovice","bota","boubel","bouchat","bouda","boule","bourat","boxer","bradavka","brambora","branka","bratr","brepta","briketa","brko","brloh","bronz","broskev","brunetka","brusinka","brzda","brzy","bublina","bubnovat","buchta","buditel","budka","budova","bufet","bujarost","bukvice","buldok","bulva","bunda","bunkr","burza","butik","buvol","buzola","bydlet","bylina","bytovka","bzukot","capart","carevna","cedr","cedule","cejch","cejn","cela","celer","celkem","celnice","cenina","cennost","cenovka","centrum","cenzor","cestopis","cetka","chalupa","chapadlo","charita","chata","chechtat","chemie","chichot","chirurg","chlad","chleba","chlubit","chmel","chmura","chobot","chochol","chodba","cholera","chomout","chopit","choroba","chov","chrapot","chrlit","chrt","chrup","chtivost","chudina","chutnat","chvat","chvilka","chvost","chyba","chystat","chytit","cibule","cigareta","cihelna","cihla","cinkot","cirkus","cisterna","citace","citrus","cizinec","cizost","clona","cokoliv","couvat","ctitel","ctnost","cudnost","cuketa","cukr","cupot","cvaknout","cval","cvik","cvrkot","cyklista","daleko","dareba","datel","datum","dcera","debata","dechovka","decibel","deficit","deflace","dekl","dekret","demokrat","deprese","derby","deska","detektiv","dikobraz","diktovat","dioda","diplom","disk","displej","divadlo","divoch","dlaha","dlouho","dluhopis","dnes","dobro","dobytek","docent","dochutit","dodnes","dohled","dohoda","dohra","dojem","dojnice","doklad","dokola","doktor","dokument","dolar","doleva","dolina","doma","dominant","domluvit","domov","donutit","dopad","dopis","doplnit","doposud","doprovod","dopustit","dorazit","dorost","dort","dosah","doslov","dostatek","dosud","dosyta","dotaz","dotek","dotknout","doufat","doutnat","dovozce","dozadu","doznat","dozorce","drahota","drak","dramatik","dravec","draze","drdol","drobnost","drogerie","drozd","drsnost","drtit","drzost","duben","duchovno","dudek","duha","duhovka","dusit","dusno","dutost","dvojice","dvorec","dynamit","ekolog","ekonomie","elektron","elipsa","email","emise","emoce","empatie","epizoda","epocha","epopej","epos","esej","esence","eskorta","eskymo","etiketa","euforie","evoluce","exekuce","exkurze","expedice","exploze","export","extrakt","facka","fajfka","fakulta","fanatik","fantazie","farmacie","favorit","fazole","federace","fejeton","fenka","fialka","figurant","filozof","filtr","finance","finta","fixace","fjord","flanel","flirt","flotila","fond","fosfor","fotbal","fotka","foton","frakce","freska","fronta","fukar","funkce","fyzika","galeje","garant","genetika","geolog","gilotina","glazura","glejt","golem","golfista","gotika","graf","gramofon","granule","grep","gril","grog","groteska","guma","hadice","hadr","hala","halenka","hanba","hanopis","harfa","harpuna","havran","hebkost","hejkal","hejno","hejtman","hektar","helma","hematom","herec","herna","heslo","hezky","historik","hladovka","hlasivky","hlava","hledat","hlen","hlodavec","hloh","hloupost","hltat","hlubina","hluchota","hmat","hmota","hmyz","hnis","hnojivo","hnout","hoblina","hoboj","hoch","hodiny","hodlat","hodnota","hodovat","hojnost","hokej","holinka","holka","holub","homole","honitba","honorace","horal","horda","horizont","horko","horlivec","hormon","hornina","horoskop","horstvo","hospoda","hostina","hotovost","houba","houf","houpat","houska","hovor","hradba","hranice","hravost","hrazda","hrbolek","hrdina","hrdlo","hrdost","hrnek","hrobka","hromada","hrot","hrouda","hrozen","hrstka","hrubost","hryzat","hubenost","hubnout","hudba","hukot","humr","husita","hustota","hvozd","hybnost","hydrant","hygiena","hymna","hysterik","idylka","ihned","ikona","iluze","imunita","infekce","inflace","inkaso","inovace","inspekce","internet","invalida","investor","inzerce","ironie","jablko","jachta","jahoda","jakmile","jakost","jalovec","jantar","jarmark","jaro","jasan","jasno","jatka","javor","jazyk","jedinec","jedle","jednatel","jehlan","jekot","jelen","jelito","jemnost","jenom","jepice","jeseter","jevit","jezdec","jezero","jinak","jindy","jinoch","jiskra","jistota","jitrnice","jizva","jmenovat","jogurt","jurta","kabaret","kabel","kabinet","kachna","kadet","kadidlo","kahan","kajak","kajuta","kakao","kaktus","kalamita","kalhoty","kalibr","kalnost","kamera","kamkoliv","kamna","kanibal","kanoe","kantor","kapalina","kapela","kapitola","kapka","kaple","kapota","kapr","kapusta","kapybara","karamel","karotka","karton","kasa","katalog","katedra","kauce","kauza","kavalec","kazajka","kazeta","kazivost","kdekoliv","kdesi","kedluben","kemp","keramika","kino","klacek","kladivo","klam","klapot","klasika","klaun","klec","klenba","klepat","klesnout","klid","klima","klisna","klobouk","klokan","klopa","kloub","klubovna","klusat","kluzkost","kmen","kmitat","kmotr","kniha","knot","koalice","koberec","kobka","kobliha","kobyla","kocour","kohout","kojenec","kokos","koktejl","kolaps","koleda","kolize","kolo","komando","kometa","komik","komnata","komora","kompas","komunita","konat","koncept","kondice","konec","konfese","kongres","konina","konkurs","kontakt","konzerva","kopanec","kopie","kopnout","koprovka","korbel","korektor","kormidlo","koroptev","korpus","koruna","koryto","korzet","kosatec","kostka","kotel","kotleta","kotoul","koukat","koupelna","kousek","kouzlo","kovboj","koza","kozoroh","krabice","krach","krajina","kralovat","krasopis","kravata","kredit","krejcar","kresba","kreveta","kriket","kritik","krize","krkavec","krmelec","krmivo","krocan","krok","kronika","kropit","kroupa","krovka","krtek","kruhadlo","krupice","krutost","krvinka","krychle","krypta","krystal","kryt","kudlanka","kufr","kujnost","kukla","kulajda","kulich","kulka","kulomet","kultura","kuna","kupodivu","kurt","kurzor","kutil","kvalita","kvasinka","kvestor","kynolog","kyselina","kytara","kytice","kytka","kytovec","kyvadlo","labrador","lachtan","ladnost","laik","lakomec","lamela","lampa","lanovka","lasice","laso","lastura","latinka","lavina","lebka","leckdy","leden","lednice","ledovka","ledvina","legenda","legie","legrace","lehce","lehkost","lehnout","lektvar","lenochod","lentilka","lepenka","lepidlo","letadlo","letec","letmo","letokruh","levhart","levitace","levobok","libra","lichotka","lidojed","lidskost","lihovina","lijavec","lilek","limetka","linie","linka","linoleum","listopad","litina","litovat","lobista","lodivod","logika","logoped","lokalita","loket","lomcovat","lopata","lopuch","lord","losos","lotr","loudal","louh","louka","louskat","lovec","lstivost","lucerna","lucifer","lump","lusk","lustrace","lvice","lyra","lyrika","lysina","madam","madlo","magistr","mahagon","majetek","majitel","majorita","makak","makovice","makrela","malba","malina","malovat","malvice","maminka","mandle","manko","marnost","masakr","maskot","masopust","matice","matrika","maturita","mazanec","mazivo","mazlit","mazurka","mdloba","mechanik","meditace","medovina","melasa","meloun","mentolka","metla","metoda","metr","mezera","migrace","mihnout","mihule","mikina","mikrofon","milenec","milimetr","milost","mimika","mincovna","minibar","minomet","minulost","miska","mistr","mixovat","mladost","mlha","mlhovina","mlok","mlsat","mluvit","mnich","mnohem","mobil","mocnost","modelka","modlitba","mohyla","mokro","molekula","momentka","monarcha","monokl","monstrum","montovat","monzun","mosaz","moskyt","most","motivace","motorka","motyka","moucha","moudrost","mozaika","mozek","mozol","mramor","mravenec","mrkev","mrtvola","mrzet","mrzutost","mstitel","mudrc","muflon","mulat","mumie","munice","muset","mutace","muzeum","muzikant","myslivec","mzda","nabourat","nachytat","nadace","nadbytek","nadhoz","nadobro","nadpis","nahlas","nahnat","nahodile","nahradit","naivita","najednou","najisto","najmout","naklonit","nakonec","nakrmit","nalevo","namazat","namluvit","nanometr","naoko","naopak","naostro","napadat","napevno","naplnit","napnout","naposled","naprosto","narodit","naruby","narychlo","nasadit","nasekat","naslepo","nastat","natolik","navenek","navrch","navzdory","nazvat","nebe","nechat","necky","nedaleko","nedbat","neduh","negace","nehet","nehoda","nejen","nejprve","neklid","nelibost","nemilost","nemoc","neochota","neonka","nepokoj","nerost","nerv","nesmysl","nesoulad","netvor","neuron","nevina","nezvykle","nicota","nijak","nikam","nikdy","nikl","nikterak","nitro","nocleh","nohavice","nominace","nora","norek","nositel","nosnost","nouze","noviny","novota","nozdra","nuda","nudle","nuget","nutit","nutnost","nutrie","nymfa","obal","obarvit","obava","obdiv","obec","obehnat","obejmout","obezita","obhajoba","obilnice","objasnit","objekt","obklopit","oblast","oblek","obliba","obloha","obluda","obnos","obohatit","obojek","obout","obrazec","obrna","obruba","obrys","obsah","obsluha","obstarat","obuv","obvaz","obvinit","obvod","obvykle","obyvatel","obzor","ocas","ocel","ocenit","ochladit","ochota","ochrana","ocitnout","odboj","odbyt","odchod","odcizit","odebrat","odeslat","odevzdat","odezva","odhadce","odhodit","odjet","odjinud","odkaz","odkoupit","odliv","odluka","odmlka","odolnost","odpad","odpis","odplout","odpor","odpustit","odpykat","odrazka","odsoudit","odstup","odsun","odtok","odtud","odvaha","odveta","odvolat","odvracet","odznak","ofina","ofsajd","ohlas","ohnisko","ohrada","ohrozit","ohryzek","okap","okenice","oklika","okno","okouzlit","okovy","okrasa","okres","okrsek","okruh","okupant","okurka","okusit","olejnina","olizovat","omak","omeleta","omezit","omladina","omlouvat","omluva","omyl","onehdy","opakovat","opasek","operace","opice","opilost","opisovat","opora","opozice","opravdu","oproti","orbital","orchestr","orgie","orlice","orloj","ortel","osada","oschnout","osika","osivo","oslava","oslepit","oslnit","oslovit","osnova","osoba","osolit","ospalec","osten","ostraha","ostuda","ostych","osvojit","oteplit","otisk","otop","otrhat","otrlost","otrok","otruby","otvor","ovanout","ovar","oves","ovlivnit","ovoce","oxid","ozdoba","pachatel","pacient","padouch","pahorek","pakt","palanda","palec","palivo","paluba","pamflet","pamlsek","panenka","panika","panna","panovat","panstvo","pantofle","paprika","parketa","parodie","parta","paruka","paryba","paseka","pasivita","pastelka","patent","patrona","pavouk","pazneht","pazourek","pecka","pedagog","pejsek","peklo","peloton","penalta","pendrek","penze","periskop","pero","pestrost","petarda","petice","petrolej","pevnina","pexeso","pianista","piha","pijavice","pikle","piknik","pilina","pilnost","pilulka","pinzeta","pipeta","pisatel","pistole","pitevna","pivnice","pivovar","placenta","plakat","plamen","planeta","plastika","platit","plavidlo","plaz","plech","plemeno","plenta","ples","pletivo","plevel","plivat","plnit","plno","plocha","plodina","plomba","plout","pluk","plyn","pobavit","pobyt","pochod","pocit","poctivec","podat","podcenit","podepsat","podhled","podivit","podklad","podmanit","podnik","podoba","podpora","podraz","podstata","podvod","podzim","poezie","pohanka","pohnutka","pohovor","pohroma","pohyb","pointa","pojistka","pojmout","pokazit","pokles","pokoj","pokrok","pokuta","pokyn","poledne","polibek","polknout","poloha","polynom","pomalu","pominout","pomlka","pomoc","pomsta","pomyslet","ponechat","ponorka","ponurost","popadat","popel","popisek","poplach","poprosit","popsat","popud","poradce","porce","porod","porucha","poryv","posadit","posed","posila","poskok","poslanec","posoudit","pospolu","postava","posudek","posyp","potah","potkan","potlesk","potomek","potrava","potupa","potvora","poukaz","pouto","pouzdro","povaha","povidla","povlak","povoz","povrch","povstat","povyk","povzdech","pozdrav","pozemek","poznatek","pozor","pozvat","pracovat","prahory","praktika","prales","praotec","praporek","prase","pravda","princip","prkno","probudit","procento","prodej","profese","prohra","projekt","prolomit","promile","pronikat","propad","prorok","prosba","proton","proutek","provaz","prskavka","prsten","prudkost","prut","prvek","prvohory","psanec","psovod","pstruh","ptactvo","puberta","puch","pudl","pukavec","puklina","pukrle","pult","pumpa","punc","pupen","pusa","pusinka","pustina","putovat","putyka","pyramida","pysk","pytel","racek","rachot","radiace","radnice","radon","raft","ragby","raketa","rakovina","rameno","rampouch","rande","rarach","rarita","rasovna","rastr","ratolest","razance","razidlo","reagovat","reakce","recept","redaktor","referent","reflex","rejnok","reklama","rekord","rekrut","rektor","reputace","revize","revma","revolver","rezerva","riskovat","riziko","robotika","rodokmen","rohovka","rokle","rokoko","romaneto","ropovod","ropucha","rorejs","rosol","rostlina","rotmistr","rotoped","rotunda","roubenka","roucho","roup","roura","rovina","rovnice","rozbor","rozchod","rozdat","rozeznat","rozhodce","rozinka","rozjezd","rozkaz","rozloha","rozmar","rozpad","rozruch","rozsah","roztok","rozum","rozvod","rubrika","ruchadlo","rukavice","rukopis","ryba","rybolov","rychlost","rydlo","rypadlo","rytina","ryzost","sadista","sahat","sako","samec","samizdat","samota","sanitka","sardinka","sasanka","satelit","sazba","sazenice","sbor","schovat","sebranka","secese","sedadlo","sediment","sedlo","sehnat","sejmout","sekera","sekta","sekunda","sekvoje","semeno","seno","servis","sesadit","seshora","seskok","seslat","sestra","sesuv","sesypat","setba","setina","setkat","setnout","setrvat","sever","seznam","shoda","shrnout","sifon","silnice","sirka","sirotek","sirup","situace","skafandr","skalisko","skanzen","skaut","skeptik","skica","skladba","sklenice","sklo","skluz","skoba","skokan","skoro","skripta","skrz","skupina","skvost","skvrna","slabika","sladidlo","slanina","slast","slavnost","sledovat","slepec","sleva","slezina","slib","slina","sliznice","slon","sloupek","slovo","sluch","sluha","slunce","slupka","slza","smaragd","smetana","smilstvo","smlouva","smog","smrad","smrk","smrtka","smutek","smysl","snad","snaha","snob","sobota","socha","sodovka","sokol","sopka","sotva","souboj","soucit","soudce","souhlas","soulad","soumrak","souprava","soused","soutok","souviset","spalovna","spasitel","spis","splav","spodek","spojenec","spolu","sponzor","spornost","spousta","sprcha","spustit","sranda","sraz","srdce","srna","srnec","srovnat","srpen","srst","srub","stanice","starosta","statika","stavba","stehno","stezka","stodola","stolek","stopa","storno","stoupat","strach","stres","strhnout","strom","struna","studna","stupnice","stvol","styk","subjekt","subtropy","suchar","sudost","sukno","sundat","sunout","surikata","surovina","svah","svalstvo","svetr","svatba","svazek","svisle","svitek","svoboda","svodidlo","svorka","svrab","sykavka","sykot","synek","synovec","sypat","sypkost","syrovost","sysel","sytost","tabletka","tabule","tahoun","tajemno","tajfun","tajga","tajit","tajnost","taktika","tamhle","tampon","tancovat","tanec","tanker","tapeta","tavenina","tazatel","technika","tehdy","tekutina","telefon","temnota","tendence","tenista","tenor","teplota","tepna","teprve","terapie","termoska","textil","ticho","tiskopis","titulek","tkadlec","tkanina","tlapka","tleskat","tlukot","tlupa","tmel","toaleta","topinka","topol","torzo","touha","toulec","tradice","traktor","tramp","trasa","traverza","trefit","trest","trezor","trhavina","trhlina","trochu","trojice","troska","trouba","trpce","trpitel","trpkost","trubec","truchlit","truhlice","trus","trvat","tudy","tuhnout","tuhost","tundra","turista","turnaj","tuzemsko","tvaroh","tvorba","tvrdost","tvrz","tygr","tykev","ubohost","uboze","ubrat","ubrousek","ubrus","ubytovna","ucho","uctivost","udivit","uhradit","ujednat","ujistit","ujmout","ukazatel","uklidnit","uklonit","ukotvit","ukrojit","ulice","ulita","ulovit","umyvadlo","unavit","uniforma","uniknout","upadnout","uplatnit","uplynout","upoutat","upravit","uran","urazit","usednout","usilovat","usmrtit","usnadnit","usnout","usoudit","ustlat","ustrnout","utahovat","utkat","utlumit","utonout","utopenec","utrousit","uvalit","uvolnit","uvozovka","uzdravit","uzel","uzenina","uzlina","uznat","vagon","valcha","valoun","vana","vandal","vanilka","varan","varhany","varovat","vcelku","vchod","vdova","vedro","vegetace","vejce","velbloud","veletrh","velitel","velmoc","velryba","venkov","veranda","verze","veselka","veskrze","vesnice","vespodu","vesta","veterina","veverka","vibrace","vichr","videohra","vidina","vidle","vila","vinice","viset","vitalita","vize","vizitka","vjezd","vklad","vkus","vlajka","vlak","vlasec","vlevo","vlhkost","vliv","vlnovka","vloupat","vnucovat","vnuk","voda","vodivost","vodoznak","vodstvo","vojensky","vojna","vojsko","volant","volba","volit","volno","voskovka","vozidlo","vozovna","vpravo","vrabec","vracet","vrah","vrata","vrba","vrcholek","vrhat","vrstva","vrtule","vsadit","vstoupit","vstup","vtip","vybavit","vybrat","vychovat","vydat","vydra","vyfotit","vyhledat","vyhnout","vyhodit","vyhradit","vyhubit","vyjasnit","vyjet","vyjmout","vyklopit","vykonat","vylekat","vymazat","vymezit","vymizet","vymyslet","vynechat","vynikat","vynutit","vypadat","vyplatit","vypravit","vypustit","vyrazit","vyrovnat","vyrvat","vyslovit","vysoko","vystavit","vysunout","vysypat","vytasit","vytesat","vytratit","vyvinout","vyvolat","vyvrhel","vyzdobit","vyznat","vzadu","vzbudit","vzchopit","vzdor","vzduch","vzdychat","vzestup","vzhledem","vzkaz","vzlykat","vznik","vzorek","vzpoura","vztah","vztek","xylofon","zabrat","zabydlet","zachovat","zadarmo","zadusit","zafoukat","zahltit","zahodit","zahrada","zahynout","zajatec","zajet","zajistit","zaklepat","zakoupit","zalepit","zamezit","zamotat","zamyslet","zanechat","zanikat","zaplatit","zapojit","zapsat","zarazit","zastavit","zasunout","zatajit","zatemnit","zatknout","zaujmout","zavalit","zavelet","zavinit","zavolat","zavrtat","zazvonit","zbavit","zbrusu","zbudovat","zbytek","zdaleka","zdarma","zdatnost","zdivo","zdobit","zdroj","zdvih","zdymadlo","zelenina","zeman","zemina","zeptat","zezadu","zezdola","zhatit","zhltnout","zhluboka","zhotovit","zhruba","zima","zimnice","zjemnit","zklamat","zkoumat","zkratka","zkumavka","zlato","zlehka","zloba","zlom","zlost","zlozvyk","zmapovat","zmar","zmatek","zmije","zmizet","zmocnit","zmodrat","zmrzlina","zmutovat","znak","znalost","znamenat","znovu","zobrazit","zotavit","zoubek","zoufale","zplodit","zpomalit","zprava","zprostit","zprudka","zprvu","zrada","zranit","zrcadlo","zrnitost","zrno","zrovna","zrychlit","zrzavost","zticha","ztratit","zubovina","zubr","zvednout","zvenku","zvesela","zvon","zvrat","zvukovod","zvyk"]')},function(e){e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","这","中","大","为","上","个","国","我","以","要","他","时","来","用","们","生","到","作","地","于","出","就","分","对","成","会","可","主","发","年","动","同","工","也","能","下","过","子","说","产","种","面","而","方","后","多","定","行","学","法","所","民","得","经","十","三","之","进","着","等","部","度","家","电","力","里","如","水","化","高","自","二","理","起","小","物","现","实","加","量","都","两","体","制","机","当","使","点","从","业","本","去","把","性","好","应","开","它","合","还","因","由","其","些","然","前","外","天","政","四","日","那","社","义","事","平","形","相","全","表","间","样","与","关","各","重","新","线","内","数","正","心","反","你","明","看","原","又","么","利","比","或","但","质","气","第","向","道","命","此","变","条","只","没","结","解","问","意","建","月","公","无","系","军","很","情","者","最","立","代","想","已","通","并","提","直","题","党","程","展","五","果","料","象","员","革","位","入","常","文","总","次","品","式","活","设","及","管","特","件","长","求","老","头","基","资","边","流","路","级","少","图","山","统","接","知","较","将","组","见","计","别","她","手","角","期","根","论","运","农","指","几","九","区","强","放","决","西","被","干","做","必","战","先","回","则","任","取","据","处","队","南","给","色","光","门","即","保","治","北","造","百","规","热","领","七","海","口","东","导","器","压","志","世","金","增","争","济","阶","油","思","术","极","交","受","联","什","认","六","共","权","收","证","改","清","美","再","采","转","更","单","风","切","打","白","教","速","花","带","安","场","身","车","例","真","务","具","万","每","目","至","达","走","积","示","议","声","报","斗","完","类","八","离","华","名","确","才","科","张","信","马","节","话","米","整","空","元","况","今","集","温","传","土","许","步","群","广","石","记","需","段","研","界","拉","林","律","叫","且","究","观","越","织","装","影","算","低","持","音","众","书","布","复","容","儿","须","际","商","非","验","连","断","深","难","近","矿","千","周","委","素","技","备","半","办","青","省","列","习","响","约","支","般","史","感","劳","便","团","往","酸","历","市","克","何","除","消","构","府","称","太","准","精","值","号","率","族","维","划","选","标","写","存","候","毛","亲","快","效","斯","院","查","江","型","眼","王","按","格","养","易","置","派","层","片","始","却","专","状","育","厂","京","识","适","属","圆","包","火","住","调","满","县","局","照","参","红","细","引","听","该","铁","价","严","首","底","液","官","德","随","病","苏","失","尔","死","讲","配","女","黄","推","显","谈","罪","神","艺","呢","席","含","企","望","密","批","营","项","防","举","球","英","氧","势","告","李","台","落","木","帮","轮","破","亚","师","围","注","远","字","材","排","供","河","态","封","另","施","减","树","溶","怎","止","案","言","士","均","武","固","叶","鱼","波","视","仅","费","紧","爱","左","章","早","朝","害","续","轻","服","试","食","充","兵","源","判","护","司","足","某","练","差","致","板","田","降","黑","犯","负","击","范","继","兴","似","余","坚","曲","输","修","故","城","夫","够","送","笔","船","占","右","财","吃","富","春","职","觉","汉","画","功","巴","跟","虽","杂","飞","检","吸","助","升","阳","互","初","创","抗","考","投","坏","策","古","径","换","未","跑","留","钢","曾","端","责","站","简","述","钱","副","尽","帝","射","草","冲","承","独","令","限","阿","宣","环","双","请","超","微","让","控","州","良","轴","找","否","纪","益","依","优","顶","础","载","倒","房","突","坐","粉","敌","略","客","袁","冷","胜","绝","析","块","剂","测","丝","协","诉","念","陈","仍","罗","盐","友","洋","错","苦","夜","刑","移","频","逐","靠","混","母","短","皮","终","聚","汽","村","云","哪","既","距","卫","停","烈","央","察","烧","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","游","久","菜","味","旧","模","湖","货","损","预","阻","毫","普","稳","乙","妈","植","息","扩","银","语","挥","酒","守","拿","序","纸","医","缺","雨","吗","针","刘","啊","急","唱","误","训","愿","审","附","获","茶","鲜","粮","斤","孩","脱","硫","肥","善","龙","演","父","渐","血","欢","械","掌","歌","沙","刚","攻","谓","盾","讨","晚","粒","乱","燃","矛","乎","杀","药","宁","鲁","贵","钟","煤","读","班","伯","香","介","迫","句","丰","培","握","兰","担","弦","蛋","沉","假","穿","执","答","乐","谁","顺","烟","缩","征","脸","喜","松","脚","困","异","免","背","星","福","买","染","井","概","慢","怕","磁","倍","祖","皇","促","静","补","评","翻","肉","践","尼","衣","宽","扬","棉","希","伤","操","垂","秋","宜","氢","套","督","振","架","亮","末","宪","庆","编","牛","触","映","雷","销","诗","座","居","抓","裂","胞","呼","娘","景","威","绿","晶","厚","盟","衡","鸡","孙","延","危","胶","屋","乡","临","陆","顾","掉","呀","灯","岁","措","束","耐","剧","玉","赵","跳","哥","季","课","凯","胡","额","款","绍","卷","齐","伟","蒸","殖","永","宗","苗","川","炉","岩","弱","零","杨","奏","沿","露","杆","探","滑","镇","饭","浓","航","怀","赶","库","夺","伊","灵","税","途","灭","赛","归","召","鼓","播","盘","裁","险","康","唯","录","菌","纯","借","糖","盖","横","符","私","努","堂","域","枪","润","幅","哈","竟","熟","虫","泽","脑","壤","碳","欧","遍","侧","寨","敢","彻","虑","斜","薄","庭","纳","弹","饲","伸","折","麦","湿","暗","荷","瓦","塞","床","筑","恶","户","访","塔","奇","透","梁","刀","旋","迹","卡","氯","遇","份","毒","泥","退","洗","摆","灰","彩","卖","耗","夏","择","忙","铜","献","硬","予","繁","圈","雪","函","亦","抽","篇","阵","阴","丁","尺","追","堆","雄","迎","泛","爸","楼","避","谋","吨","野","猪","旗","累","偏","典","馆","索","秦","脂","潮","爷","豆","忽","托","惊","塑","遗","愈","朱","替","纤","粗","倾","尚","痛","楚","谢","奋","购","磨","君","池","旁","碎","骨","监","捕","弟","暴","割","贯","殊","释","词","亡","壁","顿","宝","午","尘","闻","揭","炮","残","冬","桥","妇","警","综","招","吴","付","浮","遭","徐","您","摇","谷","赞","箱","隔","订","男","吹","园","纷","唐","败","宋","玻","巨","耕","坦","荣","闭","湾","键","凡","驻","锅","救","恩","剥","凝","碱","齿","截","炼","麻","纺","禁","废","盛","版","缓","净","睛","昌","婚","涉","筒","嘴","插","岸","朗","庄","街","藏","姑","贸","腐","奴","啦","惯","乘","伙","恢","匀","纱","扎","辩","耳","彪","臣","亿","璃","抵","脉","秀","萨","俄","网","舞","店","喷","纵","寸","汗","挂","洪","贺","闪","柬","爆","烯","津","稻","墙","软","勇","像","滚","厘","蒙","芳","肯","坡","柱","荡","腿","仪","旅","尾","轧","冰","贡","登","黎","削","钻","勒","逃","障","氨","郭","峰","币","港","伏","轨","亩","毕","擦","莫","刺","浪","秘","援","株","健","售","股","岛","甘","泡","睡","童","铸","汤","阀","休","汇","舍","牧","绕","炸","哲","磷","绩","朋","淡","尖","启","陷","柴","呈","徒","颜","泪","稍","忘","泵","蓝","拖","洞","授","镜","辛","壮","锋","贫","虚","弯","摩","泰","幼","廷","尊","窗","纲","弄","隶","疑","氏","宫","姐","震","瑞","怪","尤","琴","循","描","膜","违","夹","腰","缘","珠","穷","森","枝","竹","沟","催","绳","忆","邦","剩","幸","浆","栏","拥","牙","贮","礼","滤","钠","纹","罢","拍","咱","喊","袖","埃","勤","罚","焦","潜","伍","墨","欲","缝","姓","刊","饱","仿","奖","铝","鬼","丽","跨","默","挖","链","扫","喝","袋","炭","污","幕","诸","弧","励","梅","奶","洁","灾","舟","鉴","苯","讼","抱","毁","懂","寒","智","埔","寄","届","跃","渡","挑","丹","艰","贝","碰","拔","爹","戴","码","梦","芽","熔","赤","渔","哭","敬","颗","奔","铅","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","仓","魏","锐","晓","氮","兼","隐","碍","赫","拨","忠","肃","缸","牵","抢","博","巧","壳","兄","杜","讯","诚","碧","祥","柯","页","巡","矩","悲","灌","龄","伦","票","寻","桂","铺","圣","恐","恰","郑","趣","抬","荒","腾","贴","柔","滴","猛","阔","辆","妻","填","撤","储","签","闹","扰","紫","砂","递","戏","吊","陶","伐","喂","疗","瓶","婆","抚","臂","摸","忍","虾","蜡","邻","胸","巩","挤","偶","弃","槽","劲","乳","邓","吉","仁","烂","砖","租","乌","舰","伴","瓜","浅","丙","暂","燥","橡","柳","迷","暖","牌","秧","胆","详","簧","踏","瓷","谱","呆","宾","糊","洛","辉","愤","竞","隙","怒","粘","乃","绪","肩","籍","敏","涂","熙","皆","侦","悬","掘","享","纠","醒","狂","锁","淀","恨","牲","霸","爬","赏","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鸭","趋","凤","晨","畜","辈","秩","卵","署","梯","炎","滩","棋","驱","筛","峡","冒","啥","寿","译","浸","泉","帽","迟","硅","疆","贷","漏","稿","冠","嫩","胁","芯","牢","叛","蚀","奥","鸣","岭","羊","凭","串","塘","绘","酵","融","盆","锡","庙","筹","冻","辅","摄","袭","筋","拒","僚","旱","钾","鸟","漆","沈","眉","疏","添","棒","穗","硝","韩","逼","扭","侨","凉","挺","碗","栽","炒","杯","患","馏","劝","豪","辽","勃","鸿","旦","吏","拜","狗","埋","辊","掩","饮","搬","骂","辞","勾","扣","估","蒋","绒","雾","丈","朵","姆","拟","宇","辑","陕","雕","偿","蓄","崇","剪","倡","厅","咬","驶","薯","刷","斥","番","赋","奉","佛","浇","漫","曼","扇","钙","桃","扶","仔","返","俗","亏","腔","鞋","棱","覆","框","悄","叔","撞","骗","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","胀","谐","抛","霉","桑","岗","嘛","衰","盗","渗","脏","赖","涌","甜","曹","阅","肌","哩","厉","烃","纬","毅","昨","伪","症","煮","叹","钉","搭","茎","笼","酷","偷","弓","锥","恒","杰","坑","鼻","翼","纶","叙","狱","逮","罐","络","棚","抑","膨","蔬","寺","骤","穆","冶","枯","册","尸","凸","绅","坯","牺","焰","轰","欣","晋","瘦","御","锭","锦","丧","旬","锻","垄","搜","扑","邀","亭","酯","迈","舒","脆","酶","闲","忧","酚","顽","羽","涨","卸","仗","陪","辟","惩","杭","姚","肚","捉","飘","漂","昆","欺","吾","郎","烷","汁","呵","饰","萧","雅","邮","迁","燕","撒","姻","赴","宴","烦","债","帐","斑","铃","旨","醇","董","饼","雏","姿","拌","傅","腹","妥","揉","贤","拆","歪","葡","胺","丢","浩","徽","昂","垫","挡","览","贪","慰","缴","汪","慌","冯","诺","姜","谊","凶","劣","诬","耀","昏","躺","盈","骑","乔","溪","丛","卢","抹","闷","咨","刮","驾","缆","悟","摘","铒","掷","颇","幻","柄","惠","惨","佳","仇","腊","窝","涤","剑","瞧","堡","泼","葱","罩","霍","捞","胎","苍","滨","俩","捅","湘","砍","霞","邵","萄","疯","淮","遂","熊","粪","烘","宿","档","戈","驳","嫂","裕","徙","箭","捐","肠","撑","晒","辨","殿","莲","摊","搅","酱","屏","疫","哀","蔡","堵","沫","皱","畅","叠","阁","莱","敲","辖","钩","痕","坝","巷","饿","祸","丘","玄","溜","曰","逻","彭","尝","卿","妨","艇","吞","韦","怨","矮","歇"]')},function(e){e.exports=JSON.parse('["的","一","是","在","不","了","有","和","人","這","中","大","為","上","個","國","我","以","要","他","時","來","用","們","生","到","作","地","於","出","就","分","對","成","會","可","主","發","年","動","同","工","也","能","下","過","子","說","產","種","面","而","方","後","多","定","行","學","法","所","民","得","經","十","三","之","進","著","等","部","度","家","電","力","裡","如","水","化","高","自","二","理","起","小","物","現","實","加","量","都","兩","體","制","機","當","使","點","從","業","本","去","把","性","好","應","開","它","合","還","因","由","其","些","然","前","外","天","政","四","日","那","社","義","事","平","形","相","全","表","間","樣","與","關","各","重","新","線","內","數","正","心","反","你","明","看","原","又","麼","利","比","或","但","質","氣","第","向","道","命","此","變","條","只","沒","結","解","問","意","建","月","公","無","系","軍","很","情","者","最","立","代","想","已","通","並","提","直","題","黨","程","展","五","果","料","象","員","革","位","入","常","文","總","次","品","式","活","設","及","管","特","件","長","求","老","頭","基","資","邊","流","路","級","少","圖","山","統","接","知","較","將","組","見","計","別","她","手","角","期","根","論","運","農","指","幾","九","區","強","放","決","西","被","幹","做","必","戰","先","回","則","任","取","據","處","隊","南","給","色","光","門","即","保","治","北","造","百","規","熱","領","七","海","口","東","導","器","壓","志","世","金","增","爭","濟","階","油","思","術","極","交","受","聯","什","認","六","共","權","收","證","改","清","美","再","採","轉","更","單","風","切","打","白","教","速","花","帶","安","場","身","車","例","真","務","具","萬","每","目","至","達","走","積","示","議","聲","報","鬥","完","類","八","離","華","名","確","才","科","張","信","馬","節","話","米","整","空","元","況","今","集","溫","傳","土","許","步","群","廣","石","記","需","段","研","界","拉","林","律","叫","且","究","觀","越","織","裝","影","算","低","持","音","眾","書","布","复","容","兒","須","際","商","非","驗","連","斷","深","難","近","礦","千","週","委","素","技","備","半","辦","青","省","列","習","響","約","支","般","史","感","勞","便","團","往","酸","歷","市","克","何","除","消","構","府","稱","太","準","精","值","號","率","族","維","劃","選","標","寫","存","候","毛","親","快","效","斯","院","查","江","型","眼","王","按","格","養","易","置","派","層","片","始","卻","專","狀","育","廠","京","識","適","屬","圓","包","火","住","調","滿","縣","局","照","參","紅","細","引","聽","該","鐵","價","嚴","首","底","液","官","德","隨","病","蘇","失","爾","死","講","配","女","黃","推","顯","談","罪","神","藝","呢","席","含","企","望","密","批","營","項","防","舉","球","英","氧","勢","告","李","台","落","木","幫","輪","破","亞","師","圍","注","遠","字","材","排","供","河","態","封","另","施","減","樹","溶","怎","止","案","言","士","均","武","固","葉","魚","波","視","僅","費","緊","愛","左","章","早","朝","害","續","輕","服","試","食","充","兵","源","判","護","司","足","某","練","差","致","板","田","降","黑","犯","負","擊","范","繼","興","似","餘","堅","曲","輸","修","故","城","夫","夠","送","筆","船","佔","右","財","吃","富","春","職","覺","漢","畫","功","巴","跟","雖","雜","飛","檢","吸","助","昇","陽","互","初","創","抗","考","投","壞","策","古","徑","換","未","跑","留","鋼","曾","端","責","站","簡","述","錢","副","盡","帝","射","草","衝","承","獨","令","限","阿","宣","環","雙","請","超","微","讓","控","州","良","軸","找","否","紀","益","依","優","頂","礎","載","倒","房","突","坐","粉","敵","略","客","袁","冷","勝","絕","析","塊","劑","測","絲","協","訴","念","陳","仍","羅","鹽","友","洋","錯","苦","夜","刑","移","頻","逐","靠","混","母","短","皮","終","聚","汽","村","雲","哪","既","距","衛","停","烈","央","察","燒","迅","境","若","印","洲","刻","括","激","孔","搞","甚","室","待","核","校","散","侵","吧","甲","遊","久","菜","味","舊","模","湖","貨","損","預","阻","毫","普","穩","乙","媽","植","息","擴","銀","語","揮","酒","守","拿","序","紙","醫","缺","雨","嗎","針","劉","啊","急","唱","誤","訓","願","審","附","獲","茶","鮮","糧","斤","孩","脫","硫","肥","善","龍","演","父","漸","血","歡","械","掌","歌","沙","剛","攻","謂","盾","討","晚","粒","亂","燃","矛","乎","殺","藥","寧","魯","貴","鐘","煤","讀","班","伯","香","介","迫","句","豐","培","握","蘭","擔","弦","蛋","沉","假","穿","執","答","樂","誰","順","煙","縮","徵","臉","喜","松","腳","困","異","免","背","星","福","買","染","井","概","慢","怕","磁","倍","祖","皇","促","靜","補","評","翻","肉","踐","尼","衣","寬","揚","棉","希","傷","操","垂","秋","宜","氫","套","督","振","架","亮","末","憲","慶","編","牛","觸","映","雷","銷","詩","座","居","抓","裂","胞","呼","娘","景","威","綠","晶","厚","盟","衡","雞","孫","延","危","膠","屋","鄉","臨","陸","顧","掉","呀","燈","歲","措","束","耐","劇","玉","趙","跳","哥","季","課","凱","胡","額","款","紹","卷","齊","偉","蒸","殖","永","宗","苗","川","爐","岩","弱","零","楊","奏","沿","露","桿","探","滑","鎮","飯","濃","航","懷","趕","庫","奪","伊","靈","稅","途","滅","賽","歸","召","鼓","播","盤","裁","險","康","唯","錄","菌","純","借","糖","蓋","橫","符","私","努","堂","域","槍","潤","幅","哈","竟","熟","蟲","澤","腦","壤","碳","歐","遍","側","寨","敢","徹","慮","斜","薄","庭","納","彈","飼","伸","折","麥","濕","暗","荷","瓦","塞","床","築","惡","戶","訪","塔","奇","透","梁","刀","旋","跡","卡","氯","遇","份","毒","泥","退","洗","擺","灰","彩","賣","耗","夏","擇","忙","銅","獻","硬","予","繁","圈","雪","函","亦","抽","篇","陣","陰","丁","尺","追","堆","雄","迎","泛","爸","樓","避","謀","噸","野","豬","旗","累","偏","典","館","索","秦","脂","潮","爺","豆","忽","托","驚","塑","遺","愈","朱","替","纖","粗","傾","尚","痛","楚","謝","奮","購","磨","君","池","旁","碎","骨","監","捕","弟","暴","割","貫","殊","釋","詞","亡","壁","頓","寶","午","塵","聞","揭","炮","殘","冬","橋","婦","警","綜","招","吳","付","浮","遭","徐","您","搖","谷","贊","箱","隔","訂","男","吹","園","紛","唐","敗","宋","玻","巨","耕","坦","榮","閉","灣","鍵","凡","駐","鍋","救","恩","剝","凝","鹼","齒","截","煉","麻","紡","禁","廢","盛","版","緩","淨","睛","昌","婚","涉","筒","嘴","插","岸","朗","莊","街","藏","姑","貿","腐","奴","啦","慣","乘","夥","恢","勻","紗","扎","辯","耳","彪","臣","億","璃","抵","脈","秀","薩","俄","網","舞","店","噴","縱","寸","汗","掛","洪","賀","閃","柬","爆","烯","津","稻","牆","軟","勇","像","滾","厘","蒙","芳","肯","坡","柱","盪","腿","儀","旅","尾","軋","冰","貢","登","黎","削","鑽","勒","逃","障","氨","郭","峰","幣","港","伏","軌","畝","畢","擦","莫","刺","浪","秘","援","株","健","售","股","島","甘","泡","睡","童","鑄","湯","閥","休","匯","舍","牧","繞","炸","哲","磷","績","朋","淡","尖","啟","陷","柴","呈","徒","顏","淚","稍","忘","泵","藍","拖","洞","授","鏡","辛","壯","鋒","貧","虛","彎","摩","泰","幼","廷","尊","窗","綱","弄","隸","疑","氏","宮","姐","震","瑞","怪","尤","琴","循","描","膜","違","夾","腰","緣","珠","窮","森","枝","竹","溝","催","繩","憶","邦","剩","幸","漿","欄","擁","牙","貯","禮","濾","鈉","紋","罷","拍","咱","喊","袖","埃","勤","罰","焦","潛","伍","墨","欲","縫","姓","刊","飽","仿","獎","鋁","鬼","麗","跨","默","挖","鏈","掃","喝","袋","炭","污","幕","諸","弧","勵","梅","奶","潔","災","舟","鑑","苯","訟","抱","毀","懂","寒","智","埔","寄","屆","躍","渡","挑","丹","艱","貝","碰","拔","爹","戴","碼","夢","芽","熔","赤","漁","哭","敬","顆","奔","鉛","仲","虎","稀","妹","乏","珍","申","桌","遵","允","隆","螺","倉","魏","銳","曉","氮","兼","隱","礙","赫","撥","忠","肅","缸","牽","搶","博","巧","殼","兄","杜","訊","誠","碧","祥","柯","頁","巡","矩","悲","灌","齡","倫","票","尋","桂","鋪","聖","恐","恰","鄭","趣","抬","荒","騰","貼","柔","滴","猛","闊","輛","妻","填","撤","儲","簽","鬧","擾","紫","砂","遞","戲","吊","陶","伐","餵","療","瓶","婆","撫","臂","摸","忍","蝦","蠟","鄰","胸","鞏","擠","偶","棄","槽","勁","乳","鄧","吉","仁","爛","磚","租","烏","艦","伴","瓜","淺","丙","暫","燥","橡","柳","迷","暖","牌","秧","膽","詳","簧","踏","瓷","譜","呆","賓","糊","洛","輝","憤","競","隙","怒","粘","乃","緒","肩","籍","敏","塗","熙","皆","偵","懸","掘","享","糾","醒","狂","鎖","淀","恨","牲","霸","爬","賞","逆","玩","陵","祝","秒","浙","貌","役","彼","悉","鴨","趨","鳳","晨","畜","輩","秩","卵","署","梯","炎","灘","棋","驅","篩","峽","冒","啥","壽","譯","浸","泉","帽","遲","矽","疆","貸","漏","稿","冠","嫩","脅","芯","牢","叛","蝕","奧","鳴","嶺","羊","憑","串","塘","繪","酵","融","盆","錫","廟","籌","凍","輔","攝","襲","筋","拒","僚","旱","鉀","鳥","漆","沈","眉","疏","添","棒","穗","硝","韓","逼","扭","僑","涼","挺","碗","栽","炒","杯","患","餾","勸","豪","遼","勃","鴻","旦","吏","拜","狗","埋","輥","掩","飲","搬","罵","辭","勾","扣","估","蔣","絨","霧","丈","朵","姆","擬","宇","輯","陝","雕","償","蓄","崇","剪","倡","廳","咬","駛","薯","刷","斥","番","賦","奉","佛","澆","漫","曼","扇","鈣","桃","扶","仔","返","俗","虧","腔","鞋","棱","覆","框","悄","叔","撞","騙","勘","旺","沸","孤","吐","孟","渠","屈","疾","妙","惜","仰","狠","脹","諧","拋","黴","桑","崗","嘛","衰","盜","滲","臟","賴","湧","甜","曹","閱","肌","哩","厲","烴","緯","毅","昨","偽","症","煮","嘆","釘","搭","莖","籠","酷","偷","弓","錐","恆","傑","坑","鼻","翼","綸","敘","獄","逮","罐","絡","棚","抑","膨","蔬","寺","驟","穆","冶","枯","冊","屍","凸","紳","坯","犧","焰","轟","欣","晉","瘦","禦","錠","錦","喪","旬","鍛","壟","搜","撲","邀","亭","酯","邁","舒","脆","酶","閒","憂","酚","頑","羽","漲","卸","仗","陪","闢","懲","杭","姚","肚","捉","飄","漂","昆","欺","吾","郎","烷","汁","呵","飾","蕭","雅","郵","遷","燕","撒","姻","赴","宴","煩","債","帳","斑","鈴","旨","醇","董","餅","雛","姿","拌","傅","腹","妥","揉","賢","拆","歪","葡","胺","丟","浩","徽","昂","墊","擋","覽","貪","慰","繳","汪","慌","馮","諾","姜","誼","兇","劣","誣","耀","昏","躺","盈","騎","喬","溪","叢","盧","抹","悶","諮","刮","駕","纜","悟","摘","鉺","擲","頗","幻","柄","惠","慘","佳","仇","臘","窩","滌","劍","瞧","堡","潑","蔥","罩","霍","撈","胎","蒼","濱","倆","捅","湘","砍","霞","邵","萄","瘋","淮","遂","熊","糞","烘","宿","檔","戈","駁","嫂","裕","徙","箭","捐","腸","撐","曬","辨","殿","蓮","攤","攪","醬","屏","疫","哀","蔡","堵","沫","皺","暢","疊","閣","萊","敲","轄","鉤","痕","壩","巷","餓","禍","丘","玄","溜","曰","邏","彭","嘗","卿","妨","艇","吞","韋","怨","矮","歇"]')},function(e){e.exports=JSON.parse('["가격","가끔","가난","가능","가득","가르침","가뭄","가방","가상","가슴","가운데","가을","가이드","가입","가장","가정","가족","가죽","각오","각자","간격","간부","간섭","간장","간접","간판","갈등","갈비","갈색","갈증","감각","감기","감소","감수성","감자","감정","갑자기","강남","강당","강도","강력히","강변","강북","강사","강수량","강아지","강원도","강의","강제","강조","같이","개구리","개나리","개방","개별","개선","개성","개인","객관적","거실","거액","거울","거짓","거품","걱정","건강","건물","건설","건조","건축","걸음","검사","검토","게시판","게임","겨울","견해","결과","결국","결론","결석","결승","결심","결정","결혼","경계","경고","경기","경력","경복궁","경비","경상도","경영","경우","경쟁","경제","경주","경찰","경치","경향","경험","계곡","계단","계란","계산","계속","계약","계절","계층","계획","고객","고구려","고궁","고급","고등학생","고무신","고민","고양이","고장","고전","고집","고춧가루","고통","고향","곡식","골목","골짜기","골프","공간","공개","공격","공군","공급","공기","공동","공무원","공부","공사","공식","공업","공연","공원","공장","공짜","공책","공통","공포","공항","공휴일","과목","과일","과장","과정","과학","관객","관계","관광","관념","관람","관련","관리","관습","관심","관점","관찰","광경","광고","광장","광주","괴로움","굉장히","교과서","교문","교복","교실","교양","교육","교장","교직","교통","교환","교훈","구경","구름","구멍","구별","구분","구석","구성","구속","구역","구입","구청","구체적","국가","국기","국내","국립","국물","국민","국수","국어","국왕","국적","국제","국회","군대","군사","군인","궁극적","권리","권위","권투","귀국","귀신","규정","규칙","균형","그날","그냥","그늘","그러나","그룹","그릇","그림","그제서야","그토록","극복","극히","근거","근교","근래","근로","근무","근본","근원","근육","근처","글씨","글자","금강산","금고","금년","금메달","금액","금연","금요일","금지","긍정적","기간","기관","기념","기능","기독교","기둥","기록","기름","기법","기본","기분","기쁨","기숙사","기술","기억","기업","기온","기운","기원","기적","기준","기침","기혼","기획","긴급","긴장","길이","김밥","김치","김포공항","깍두기","깜빡","깨달음","깨소금","껍질","꼭대기","꽃잎","나들이","나란히","나머지","나물","나침반","나흘","낙엽","난방","날개","날씨","날짜","남녀","남대문","남매","남산","남자","남편","남학생","낭비","낱말","내년","내용","내일","냄비","냄새","냇물","냉동","냉면","냉방","냉장고","넥타이","넷째","노동","노란색","노력","노인","녹음","녹차","녹화","논리","논문","논쟁","놀이","농구","농담","농민","농부","농업","농장","농촌","높이","눈동자","눈물","눈썹","뉴욕","느낌","늑대","능동적","능력","다방","다양성","다음","다이어트","다행","단계","단골","단독","단맛","단순","단어","단위","단점","단체","단추","단편","단풍","달걀","달러","달력","달리","닭고기","담당","담배","담요","담임","답변","답장","당근","당분간","당연히","당장","대규모","대낮","대단히","대답","대도시","대략","대량","대륙","대문","대부분","대신","대응","대장","대전","대접","대중","대책","대출","대충","대통령","대학","대한민국","대합실","대형","덩어리","데이트","도대체","도덕","도둑","도망","도서관","도심","도움","도입","도자기","도저히","도전","도중","도착","독감","독립","독서","독일","독창적","동화책","뒷모습","뒷산","딸아이","마누라","마늘","마당","마라톤","마련","마무리","마사지","마약","마요네즈","마을","마음","마이크","마중","마지막","마찬가지","마찰","마흔","막걸리","막내","막상","만남","만두","만세","만약","만일","만점","만족","만화","많이","말기","말씀","말투","맘대로","망원경","매년","매달","매력","매번","매스컴","매일","매장","맥주","먹이","먼저","먼지","멀리","메일","며느리","며칠","면담","멸치","명단","명령","명예","명의","명절","명칭","명함","모금","모니터","모델","모든","모범","모습","모양","모임","모조리","모집","모퉁이","목걸이","목록","목사","목소리","목숨","목적","목표","몰래","몸매","몸무게","몸살","몸속","몸짓","몸통","몹시","무관심","무궁화","무더위","무덤","무릎","무슨","무엇","무역","무용","무조건","무지개","무척","문구","문득","문법","문서","문제","문학","문화","물가","물건","물결","물고기","물론","물리학","물음","물질","물체","미국","미디어","미사일","미술","미역","미용실","미움","미인","미팅","미혼","민간","민족","민주","믿음","밀가루","밀리미터","밑바닥","바가지","바구니","바나나","바늘","바닥","바닷가","바람","바이러스","바탕","박물관","박사","박수","반대","반드시","반말","반발","반성","반응","반장","반죽","반지","반찬","받침","발가락","발걸음","발견","발달","발레","발목","발바닥","발생","발음","발자국","발전","발톱","발표","밤하늘","밥그릇","밥맛","밥상","밥솥","방금","방면","방문","방바닥","방법","방송","방식","방안","방울","방지","방학","방해","방향","배경","배꼽","배달","배드민턴","백두산","백색","백성","백인","백제","백화점","버릇","버섯","버튼","번개","번역","번지","번호","벌금","벌레","벌써","범위","범인","범죄","법률","법원","법적","법칙","베이징","벨트","변경","변동","변명","변신","변호사","변화","별도","별명","별일","병실","병아리","병원","보관","보너스","보라색","보람","보름","보상","보안","보자기","보장","보전","보존","보통","보편적","보험","복도","복사","복숭아","복습","볶음","본격적","본래","본부","본사","본성","본인","본질","볼펜","봉사","봉지","봉투","부근","부끄러움","부담","부동산","부문","부분","부산","부상","부엌","부인","부작용","부장","부정","부족","부지런히","부친","부탁","부품","부회장","북부","북한","분노","분량","분리","분명","분석","분야","분위기","분필","분홍색","불고기","불과","불교","불꽃","불만","불법","불빛","불안","불이익","불행","브랜드","비극","비난","비닐","비둘기","비디오","비로소","비만","비명","비밀","비바람","비빔밥","비상","비용","비율","비중","비타민","비판","빌딩","빗물","빗방울","빗줄기","빛깔","빨간색","빨래","빨리","사건","사계절","사나이","사냥","사람","사랑","사립","사모님","사물","사방","사상","사생활","사설","사슴","사실","사업","사용","사월","사장","사전","사진","사촌","사춘기","사탕","사투리","사흘","산길","산부인과","산업","산책","살림","살인","살짝","삼계탕","삼국","삼십","삼월","삼촌","상관","상금","상대","상류","상반기","상상","상식","상업","상인","상자","상점","상처","상추","상태","상표","상품","상황","새벽","색깔","색연필","생각","생명","생물","생방송","생산","생선","생신","생일","생활","서랍","서른","서명","서민","서비스","서양","서울","서적","서점","서쪽","서클","석사","석유","선거","선물","선배","선생","선수","선원","선장","선전","선택","선풍기","설거지","설날","설렁탕","설명","설문","설사","설악산","설치","설탕","섭씨","성공","성당","성명","성별","성인","성장","성적","성질","성함","세금","세미나","세상","세월","세종대왕","세탁","센터","센티미터","셋째","소규모","소극적","소금","소나기","소년","소득","소망","소문","소설","소속","소아과","소용","소원","소음","소중히","소지품","소질","소풍","소형","속담","속도","속옷","손가락","손길","손녀","손님","손등","손목","손뼉","손실","손질","손톱","손해","솔직히","솜씨","송아지","송이","송편","쇠고기","쇼핑","수건","수년","수단","수돗물","수동적","수면","수명","수박","수상","수석","수술","수시로","수업","수염","수영","수입","수준","수집","수출","수컷","수필","수학","수험생","수화기","숙녀","숙소","숙제","순간","순서","순수","순식간","순위","숟가락","술병","술집","숫자","스님","스물","스스로","스승","스웨터","스위치","스케이트","스튜디오","스트레스","스포츠","슬쩍","슬픔","습관","습기","승객","승리","승부","승용차","승진","시각","시간","시골","시금치","시나리오","시댁","시리즈","시멘트","시민","시부모","시선","시설","시스템","시아버지","시어머니","시월","시인","시일","시작","시장","시절","시점","시중","시즌","시집","시청","시합","시험","식구","식기","식당","식량","식료품","식물","식빵","식사","식생활","식초","식탁","식품","신고","신규","신념","신문","신발","신비","신사","신세","신용","신제품","신청","신체","신화","실감","실내","실력","실례","실망","실수","실습","실시","실장","실정","실질적","실천","실체","실컷","실태","실패","실험","실현","심리","심부름","심사","심장","심정","심판","쌍둥이","씨름","씨앗","아가씨","아나운서","아드님","아들","아쉬움","아스팔트","아시아","아울러","아저씨","아줌마","아직","아침","아파트","아프리카","아픔","아홉","아흔","악기","악몽","악수","안개","안경","안과","안내","안녕","안동","안방","안부","안주","알루미늄","알코올","암시","암컷","압력","앞날","앞문","애인","애정","액수","앨범","야간","야단","야옹","약간","약국","약속","약수","약점","약품","약혼녀","양념","양력","양말","양배추","양주","양파","어둠","어려움","어른","어젯밤","어쨌든","어쩌다가","어쩐지","언니","언덕","언론","언어","얼굴","얼른","얼음","얼핏","엄마","업무","업종","업체","엉덩이","엉망","엉터리","엊그제","에너지","에어컨","엔진","여건","여고생","여관","여군","여권","여대생","여덟","여동생","여든","여론","여름","여섯","여성","여왕","여인","여전히","여직원","여학생","여행","역사","역시","역할","연결","연구","연극","연기","연락","연설","연세","연속","연습","연애","연예인","연인","연장","연주","연출","연필","연합","연휴","열기","열매","열쇠","열심히","열정","열차","열흘","염려","엽서","영국","영남","영상","영양","영역","영웅","영원히","영하","영향","영혼","영화","옆구리","옆방","옆집","예감","예금","예방","예산","예상","예선","예술","예습","예식장","예약","예전","예절","예정","예컨대","옛날","오늘","오락","오랫동안","오렌지","오로지","오른발","오븐","오십","오염","오월","오전","오직","오징어","오페라","오피스텔","오히려","옥상","옥수수","온갖","온라인","온몸","온종일","온통","올가을","올림픽","올해","옷차림","와이셔츠","와인","완성","완전","왕비","왕자","왜냐하면","왠지","외갓집","외국","외로움","외삼촌","외출","외침","외할머니","왼발","왼손","왼쪽","요금","요일","요즘","요청","용기","용서","용어","우산","우선","우승","우연히","우정","우체국","우편","운동","운명","운반","운전","운행","울산","울음","움직임","웃어른","웃음","워낙","원고","원래","원서","원숭이","원인","원장","원피스","월급","월드컵","월세","월요일","웨이터","위반","위법","위성","위원","위험","위협","윗사람","유난히","유럽","유명","유물","유산","유적","유치원","유학","유행","유형","육군","육상","육십","육체","은행","음력","음료","음반","음성","음식","음악","음주","의견","의논","의문","의복","의식","의심","의외로","의욕","의원","의학","이것","이곳","이념","이놈","이달","이대로","이동","이렇게","이력서","이론적","이름","이민","이발소","이별","이불","이빨","이상","이성","이슬","이야기","이용","이웃","이월","이윽고","이익","이전","이중","이튿날","이틀","이혼","인간","인격","인공","인구","인근","인기","인도","인류","인물","인생","인쇄","인연","인원","인재","인종","인천","인체","인터넷","인하","인형","일곱","일기","일단","일대","일등","일반","일본","일부","일상","일생","일손","일요일","일월","일정","일종","일주일","일찍","일체","일치","일행","일회용","임금","임무","입대","입력","입맛","입사","입술","입시","입원","입장","입학","자가용","자격","자극","자동","자랑","자부심","자식","자신","자연","자원","자율","자전거","자정","자존심","자판","작가","작년","작성","작업","작용","작은딸","작품","잔디","잔뜩","잔치","잘못","잠깐","잠수함","잠시","잠옷","잠자리","잡지","장관","장군","장기간","장래","장례","장르","장마","장면","장모","장미","장비","장사","장소","장식","장애인","장인","장점","장차","장학금","재능","재빨리","재산","재생","재작년","재정","재채기","재판","재학","재활용","저것","저고리","저곳","저녁","저런","저렇게","저번","저울","저절로","저축","적극","적당히","적성","적용","적응","전개","전공","전기","전달","전라도","전망","전문","전반","전부","전세","전시","전용","전자","전쟁","전주","전철","전체","전통","전혀","전후","절대","절망","절반","절약","절차","점검","점수","점심","점원","점점","점차","접근","접시","접촉","젓가락","정거장","정도","정류장","정리","정말","정면","정문","정반대","정보","정부","정비","정상","정성","정오","정원","정장","정지","정치","정확히","제공","제과점","제대로","제목","제발","제법","제삿날","제안","제일","제작","제주도","제출","제품","제한","조각","조건","조금","조깅","조명","조미료","조상","조선","조용히","조절","조정","조직","존댓말","존재","졸업","졸음","종교","종로","종류","종소리","종업원","종종","종합","좌석","죄인","주관적","주름","주말","주머니","주먹","주문","주민","주방","주변","주식","주인","주일","주장","주전자","주택","준비","줄거리","줄기","줄무늬","중간","중계방송","중국","중년","중단","중독","중반","중부","중세","중소기업","중순","중앙","중요","중학교","즉석","즉시","즐거움","증가","증거","증권","증상","증세","지각","지갑","지경","지극히","지금","지급","지능","지름길","지리산","지방","지붕","지식","지역","지우개","지원","지적","지점","지진","지출","직선","직업","직원","직장","진급","진동","진로","진료","진리","진짜","진찰","진출","진통","진행","질문","질병","질서","짐작","집단","집안","집중","짜증","찌꺼기","차남","차라리","차량","차림","차별","차선","차츰","착각","찬물","찬성","참가","참기름","참새","참석","참여","참외","참조","찻잔","창가","창고","창구","창문","창밖","창작","창조","채널","채점","책가방","책방","책상","책임","챔피언","처벌","처음","천국","천둥","천장","천재","천천히","철도","철저히","철학","첫날","첫째","청년","청바지","청소","청춘","체계","체력","체온","체육","체중","체험","초등학생","초반","초밥","초상화","초순","초여름","초원","초저녁","초점","초청","초콜릿","촛불","총각","총리","총장","촬영","최근","최상","최선","최신","최악","최종","추석","추억","추진","추천","추측","축구","축소","축제","축하","출근","출발","출산","출신","출연","출입","출장","출판","충격","충고","충돌","충분히","충청도","취업","취직","취향","치약","친구","친척","칠십","칠월","칠판","침대","침묵","침실","칫솔","칭찬","카메라","카운터","칼국수","캐릭터","캠퍼스","캠페인","커튼","컨디션","컬러","컴퓨터","코끼리","코미디","콘서트","콜라","콤플렉스","콩나물","쾌감","쿠데타","크림","큰길","큰딸","큰소리","큰아들","큰어머니","큰일","큰절","클래식","클럽","킬로","타입","타자기","탁구","탁자","탄생","태권도","태양","태풍","택시","탤런트","터널","터미널","테니스","테스트","테이블","텔레비전","토론","토마토","토요일","통계","통과","통로","통신","통역","통일","통장","통제","통증","통합","통화","퇴근","퇴원","퇴직금","튀김","트럭","특급","특별","특성","특수","특징","특히","튼튼히","티셔츠","파란색","파일","파출소","판결","판단","판매","판사","팔십","팔월","팝송","패션","팩스","팩시밀리","팬티","퍼센트","페인트","편견","편의","편지","편히","평가","평균","평생","평소","평양","평일","평화","포스터","포인트","포장","포함","표면","표정","표준","표현","품목","품질","풍경","풍속","풍습","프랑스","프린터","플라스틱","피곤","피망","피아노","필름","필수","필요","필자","필통","핑계","하느님","하늘","하드웨어","하룻밤","하반기","하숙집","하순","하여튼","하지만","하천","하품","하필","학과","학교","학급","학기","학년","학력","학번","학부모","학비","학생","학술","학습","학용품","학원","학위","학자","학점","한계","한글","한꺼번에","한낮","한눈","한동안","한때","한라산","한마디","한문","한번","한복","한식","한여름","한쪽","할머니","할아버지","할인","함께","함부로","합격","합리적","항공","항구","항상","항의","해결","해군","해답","해당","해물","해석","해설","해수욕장","해안","핵심","핸드백","햄버거","햇볕","햇살","행동","행복","행사","행운","행위","향기","향상","향수","허락","허용","헬기","현관","현금","현대","현상","현실","현장","현재","현지","혈액","협력","형부","형사","형수","형식","형제","형태","형편","혜택","호기심","호남","호랑이","호박","호텔","호흡","혹시","홀로","홈페이지","홍보","홍수","홍차","화면","화분","화살","화요일","화장","화학","확보","확인","확장","확정","환갑","환경","환영","환율","환자","활기","활동","활발히","활용","활짝","회견","회관","회복","회색","회원","회장","회전","횟수","횡단보도","효율적","후반","후춧가루","훈련","훨씬","휴식","휴일","흉내","흐름","흑백","흑인","흔적","흔히","흥미","흥분","희곡","희망","희생","흰색","힘껏"]')},function(e){e.exports=JSON.parse('["abaisser","abandon","abdiquer","abeille","abolir","aborder","aboutir","aboyer","abrasif","abreuver","abriter","abroger","abrupt","absence","absolu","absurde","abusif","abyssal","académie","acajou","acarien","accabler","accepter","acclamer","accolade","accroche","accuser","acerbe","achat","acheter","aciduler","acier","acompte","acquérir","acronyme","acteur","actif","actuel","adepte","adéquat","adhésif","adjectif","adjuger","admettre","admirer","adopter","adorer","adoucir","adresse","adroit","adulte","adverbe","aérer","aéronef","affaire","affecter","affiche","affreux","affubler","agacer","agencer","agile","agiter","agrafer","agréable","agrume","aider","aiguille","ailier","aimable","aisance","ajouter","ajuster","alarmer","alchimie","alerte","algèbre","algue","aliéner","aliment","alléger","alliage","allouer","allumer","alourdir","alpaga","altesse","alvéole","amateur","ambigu","ambre","aménager","amertume","amidon","amiral","amorcer","amour","amovible","amphibie","ampleur","amusant","analyse","anaphore","anarchie","anatomie","ancien","anéantir","angle","angoisse","anguleux","animal","annexer","annonce","annuel","anodin","anomalie","anonyme","anormal","antenne","antidote","anxieux","apaiser","apéritif","aplanir","apologie","appareil","appeler","apporter","appuyer","aquarium","aqueduc","arbitre","arbuste","ardeur","ardoise","argent","arlequin","armature","armement","armoire","armure","arpenter","arracher","arriver","arroser","arsenic","artériel","article","aspect","asphalte","aspirer","assaut","asservir","assiette","associer","assurer","asticot","astre","astuce","atelier","atome","atrium","atroce","attaque","attentif","attirer","attraper","aubaine","auberge","audace","audible","augurer","aurore","automne","autruche","avaler","avancer","avarice","avenir","averse","aveugle","aviateur","avide","avion","aviser","avoine","avouer","avril","axial","axiome","badge","bafouer","bagage","baguette","baignade","balancer","balcon","baleine","balisage","bambin","bancaire","bandage","banlieue","bannière","banquier","barbier","baril","baron","barque","barrage","bassin","bastion","bataille","bateau","batterie","baudrier","bavarder","belette","bélier","belote","bénéfice","berceau","berger","berline","bermuda","besace","besogne","bétail","beurre","biberon","bicycle","bidule","bijou","bilan","bilingue","billard","binaire","biologie","biopsie","biotype","biscuit","bison","bistouri","bitume","bizarre","blafard","blague","blanchir","blessant","blinder","blond","bloquer","blouson","bobard","bobine","boire","boiser","bolide","bonbon","bondir","bonheur","bonifier","bonus","bordure","borne","botte","boucle","boueux","bougie","boulon","bouquin","bourse","boussole","boutique","boxeur","branche","brasier","brave","brebis","brèche","breuvage","bricoler","brigade","brillant","brioche","brique","brochure","broder","bronzer","brousse","broyeur","brume","brusque","brutal","bruyant","buffle","buisson","bulletin","bureau","burin","bustier","butiner","butoir","buvable","buvette","cabanon","cabine","cachette","cadeau","cadre","caféine","caillou","caisson","calculer","calepin","calibre","calmer","calomnie","calvaire","camarade","caméra","camion","campagne","canal","caneton","canon","cantine","canular","capable","caporal","caprice","capsule","capter","capuche","carabine","carbone","caresser","caribou","carnage","carotte","carreau","carton","cascade","casier","casque","cassure","causer","caution","cavalier","caverne","caviar","cédille","ceinture","céleste","cellule","cendrier","censurer","central","cercle","cérébral","cerise","cerner","cerveau","cesser","chagrin","chaise","chaleur","chambre","chance","chapitre","charbon","chasseur","chaton","chausson","chavirer","chemise","chenille","chéquier","chercher","cheval","chien","chiffre","chignon","chimère","chiot","chlorure","chocolat","choisir","chose","chouette","chrome","chute","cigare","cigogne","cimenter","cinéma","cintrer","circuler","cirer","cirque","citerne","citoyen","citron","civil","clairon","clameur","claquer","classe","clavier","client","cligner","climat","clivage","cloche","clonage","cloporte","cobalt","cobra","cocasse","cocotier","coder","codifier","coffre","cogner","cohésion","coiffer","coincer","colère","colibri","colline","colmater","colonel","combat","comédie","commande","compact","concert","conduire","confier","congeler","connoter","consonne","contact","convexe","copain","copie","corail","corbeau","cordage","corniche","corpus","correct","cortège","cosmique","costume","coton","coude","coupure","courage","couteau","couvrir","coyote","crabe","crainte","cravate","crayon","créature","créditer","crémeux","creuser","crevette","cribler","crier","cristal","critère","croire","croquer","crotale","crucial","cruel","crypter","cubique","cueillir","cuillère","cuisine","cuivre","culminer","cultiver","cumuler","cupide","curatif","curseur","cyanure","cycle","cylindre","cynique","daigner","damier","danger","danseur","dauphin","débattre","débiter","déborder","débrider","débutant","décaler","décembre","déchirer","décider","déclarer","décorer","décrire","décupler","dédale","déductif","déesse","défensif","défiler","défrayer","dégager","dégivrer","déglutir","dégrafer","déjeuner","délice","déloger","demander","demeurer","démolir","dénicher","dénouer","dentelle","dénuder","départ","dépenser","déphaser","déplacer","déposer","déranger","dérober","désastre","descente","désert","désigner","désobéir","dessiner","destrier","détacher","détester","détourer","détresse","devancer","devenir","deviner","devoir","diable","dialogue","diamant","dicter","différer","digérer","digital","digne","diluer","dimanche","diminuer","dioxyde","directif","diriger","discuter","disposer","dissiper","distance","divertir","diviser","docile","docteur","dogme","doigt","domaine","domicile","dompter","donateur","donjon","donner","dopamine","dortoir","dorure","dosage","doseur","dossier","dotation","douanier","double","douceur","douter","doyen","dragon","draper","dresser","dribbler","droiture","duperie","duplexe","durable","durcir","dynastie","éblouir","écarter","écharpe","échelle","éclairer","éclipse","éclore","écluse","école","économie","écorce","écouter","écraser","écrémer","écrivain","écrou","écume","écureuil","édifier","éduquer","effacer","effectif","effigie","effort","effrayer","effusion","égaliser","égarer","éjecter","élaborer","élargir","électron","élégant","éléphant","élève","éligible","élitisme","éloge","élucider","éluder","emballer","embellir","embryon","émeraude","émission","emmener","émotion","émouvoir","empereur","employer","emporter","emprise","émulsion","encadrer","enchère","enclave","encoche","endiguer","endosser","endroit","enduire","énergie","enfance","enfermer","enfouir","engager","engin","englober","énigme","enjamber","enjeu","enlever","ennemi","ennuyeux","enrichir","enrobage","enseigne","entasser","entendre","entier","entourer","entraver","énumérer","envahir","enviable","envoyer","enzyme","éolien","épaissir","épargne","épatant","épaule","épicerie","épidémie","épier","épilogue","épine","épisode","épitaphe","époque","épreuve","éprouver","épuisant","équerre","équipe","ériger","érosion","erreur","éruption","escalier","espadon","espèce","espiègle","espoir","esprit","esquiver","essayer","essence","essieu","essorer","estime","estomac","estrade","étagère","étaler","étanche","étatique","éteindre","étendoir","éternel","éthanol","éthique","ethnie","étirer","étoffer","étoile","étonnant","étourdir","étrange","étroit","étude","euphorie","évaluer","évasion","éventail","évidence","éviter","évolutif","évoquer","exact","exagérer","exaucer","exceller","excitant","exclusif","excuse","exécuter","exemple","exercer","exhaler","exhorter","exigence","exiler","exister","exotique","expédier","explorer","exposer","exprimer","exquis","extensif","extraire","exulter","fable","fabuleux","facette","facile","facture","faiblir","falaise","fameux","famille","farceur","farfelu","farine","farouche","fasciner","fatal","fatigue","faucon","fautif","faveur","favori","fébrile","féconder","fédérer","félin","femme","fémur","fendoir","féodal","fermer","féroce","ferveur","festival","feuille","feutre","février","fiasco","ficeler","fictif","fidèle","figure","filature","filetage","filière","filleul","filmer","filou","filtrer","financer","finir","fiole","firme","fissure","fixer","flairer","flamme","flasque","flatteur","fléau","flèche","fleur","flexion","flocon","flore","fluctuer","fluide","fluvial","folie","fonderie","fongible","fontaine","forcer","forgeron","formuler","fortune","fossile","foudre","fougère","fouiller","foulure","fourmi","fragile","fraise","franchir","frapper","frayeur","frégate","freiner","frelon","frémir","frénésie","frère","friable","friction","frisson","frivole","froid","fromage","frontal","frotter","fruit","fugitif","fuite","fureur","furieux","furtif","fusion","futur","gagner","galaxie","galerie","gambader","garantir","gardien","garnir","garrigue","gazelle","gazon","géant","gélatine","gélule","gendarme","général","génie","genou","gentil","géologie","géomètre","géranium","germe","gestuel","geyser","gibier","gicler","girafe","givre","glace","glaive","glisser","globe","gloire","glorieux","golfeur","gomme","gonfler","gorge","gorille","goudron","gouffre","goulot","goupille","gourmand","goutte","graduel","graffiti","graine","grand","grappin","gratuit","gravir","grenat","griffure","griller","grimper","grogner","gronder","grotte","groupe","gruger","grutier","gruyère","guépard","guerrier","guide","guimauve","guitare","gustatif","gymnaste","gyrostat","habitude","hachoir","halte","hameau","hangar","hanneton","haricot","harmonie","harpon","hasard","hélium","hématome","herbe","hérisson","hermine","héron","hésiter","heureux","hiberner","hibou","hilarant","histoire","hiver","homard","hommage","homogène","honneur","honorer","honteux","horde","horizon","horloge","hormone","horrible","houleux","housse","hublot","huileux","humain","humble","humide","humour","hurler","hydromel","hygiène","hymne","hypnose","idylle","ignorer","iguane","illicite","illusion","image","imbiber","imiter","immense","immobile","immuable","impact","impérial","implorer","imposer","imprimer","imputer","incarner","incendie","incident","incliner","incolore","indexer","indice","inductif","inédit","ineptie","inexact","infini","infliger","informer","infusion","ingérer","inhaler","inhiber","injecter","injure","innocent","inoculer","inonder","inscrire","insecte","insigne","insolite","inspirer","instinct","insulter","intact","intense","intime","intrigue","intuitif","inutile","invasion","inventer","inviter","invoquer","ironique","irradier","irréel","irriter","isoler","ivoire","ivresse","jaguar","jaillir","jambe","janvier","jardin","jauger","jaune","javelot","jetable","jeton","jeudi","jeunesse","joindre","joncher","jongler","joueur","jouissif","journal","jovial","joyau","joyeux","jubiler","jugement","junior","jupon","juriste","justice","juteux","juvénile","kayak","kimono","kiosque","label","labial","labourer","lacérer","lactose","lagune","laine","laisser","laitier","lambeau","lamelle","lampe","lanceur","langage","lanterne","lapin","largeur","larme","laurier","lavabo","lavoir","lecture","légal","léger","légume","lessive","lettre","levier","lexique","lézard","liasse","libérer","libre","licence","licorne","liège","lièvre","ligature","ligoter","ligue","limer","limite","limonade","limpide","linéaire","lingot","lionceau","liquide","lisière","lister","lithium","litige","littoral","livreur","logique","lointain","loisir","lombric","loterie","louer","lourd","loutre","louve","loyal","lubie","lucide","lucratif","lueur","lugubre","luisant","lumière","lunaire","lundi","luron","lutter","luxueux","machine","magasin","magenta","magique","maigre","maillon","maintien","mairie","maison","majorer","malaxer","maléfice","malheur","malice","mallette","mammouth","mandater","maniable","manquant","manteau","manuel","marathon","marbre","marchand","mardi","maritime","marqueur","marron","marteler","mascotte","massif","matériel","matière","matraque","maudire","maussade","mauve","maximal","méchant","méconnu","médaille","médecin","méditer","méduse","meilleur","mélange","mélodie","membre","mémoire","menacer","mener","menhir","mensonge","mentor","mercredi","mérite","merle","messager","mesure","métal","météore","méthode","métier","meuble","miauler","microbe","miette","mignon","migrer","milieu","million","mimique","mince","minéral","minimal","minorer","minute","miracle","miroiter","missile","mixte","mobile","moderne","moelleux","mondial","moniteur","monnaie","monotone","monstre","montagne","monument","moqueur","morceau","morsure","mortier","moteur","motif","mouche","moufle","moulin","mousson","mouton","mouvant","multiple","munition","muraille","murène","murmure","muscle","muséum","musicien","mutation","muter","mutuel","myriade","myrtille","mystère","mythique","nageur","nappe","narquois","narrer","natation","nation","nature","naufrage","nautique","navire","nébuleux","nectar","néfaste","négation","négliger","négocier","neige","nerveux","nettoyer","neurone","neutron","neveu","niche","nickel","nitrate","niveau","noble","nocif","nocturne","noirceur","noisette","nomade","nombreux","nommer","normatif","notable","notifier","notoire","nourrir","nouveau","novateur","novembre","novice","nuage","nuancer","nuire","nuisible","numéro","nuptial","nuque","nutritif","obéir","objectif","obliger","obscur","observer","obstacle","obtenir","obturer","occasion","occuper","océan","octobre","octroyer","octupler","oculaire","odeur","odorant","offenser","officier","offrir","ogive","oiseau","oisillon","olfactif","olivier","ombrage","omettre","onctueux","onduler","onéreux","onirique","opale","opaque","opérer","opinion","opportun","opprimer","opter","optique","orageux","orange","orbite","ordonner","oreille","organe","orgueil","orifice","ornement","orque","ortie","osciller","osmose","ossature","otarie","ouragan","ourson","outil","outrager","ouvrage","ovation","oxyde","oxygène","ozone","paisible","palace","palmarès","palourde","palper","panache","panda","pangolin","paniquer","panneau","panorama","pantalon","papaye","papier","papoter","papyrus","paradoxe","parcelle","paresse","parfumer","parler","parole","parrain","parsemer","partager","parure","parvenir","passion","pastèque","paternel","patience","patron","pavillon","pavoiser","payer","paysage","peigne","peintre","pelage","pélican","pelle","pelouse","peluche","pendule","pénétrer","pénible","pensif","pénurie","pépite","péplum","perdrix","perforer","période","permuter","perplexe","persil","perte","peser","pétale","petit","pétrir","peuple","pharaon","phobie","phoque","photon","phrase","physique","piano","pictural","pièce","pierre","pieuvre","pilote","pinceau","pipette","piquer","pirogue","piscine","piston","pivoter","pixel","pizza","placard","plafond","plaisir","planer","plaque","plastron","plateau","pleurer","plexus","pliage","plomb","plonger","pluie","plumage","pochette","poésie","poète","pointe","poirier","poisson","poivre","polaire","policier","pollen","polygone","pommade","pompier","ponctuel","pondérer","poney","portique","position","posséder","posture","potager","poteau","potion","pouce","poulain","poumon","pourpre","poussin","pouvoir","prairie","pratique","précieux","prédire","préfixe","prélude","prénom","présence","prétexte","prévoir","primitif","prince","prison","priver","problème","procéder","prodige","profond","progrès","proie","projeter","prologue","promener","propre","prospère","protéger","prouesse","proverbe","prudence","pruneau","psychose","public","puceron","puiser","pulpe","pulsar","punaise","punitif","pupitre","purifier","puzzle","pyramide","quasar","querelle","question","quiétude","quitter","quotient","racine","raconter","radieux","ragondin","raideur","raisin","ralentir","rallonge","ramasser","rapide","rasage","ratisser","ravager","ravin","rayonner","réactif","réagir","réaliser","réanimer","recevoir","réciter","réclamer","récolter","recruter","reculer","recycler","rédiger","redouter","refaire","réflexe","réformer","refrain","refuge","régalien","région","réglage","régulier","réitérer","rejeter","rejouer","relatif","relever","relief","remarque","remède","remise","remonter","remplir","remuer","renard","renfort","renifler","renoncer","rentrer","renvoi","replier","reporter","reprise","reptile","requin","réserve","résineux","résoudre","respect","rester","résultat","rétablir","retenir","réticule","retomber","retracer","réunion","réussir","revanche","revivre","révolte","révulsif","richesse","rideau","rieur","rigide","rigoler","rincer","riposter","risible","risque","rituel","rival","rivière","rocheux","romance","rompre","ronce","rondin","roseau","rosier","rotatif","rotor","rotule","rouge","rouille","rouleau","routine","royaume","ruban","rubis","ruche","ruelle","rugueux","ruiner","ruisseau","ruser","rustique","rythme","sabler","saboter","sabre","sacoche","safari","sagesse","saisir","salade","salive","salon","saluer","samedi","sanction","sanglier","sarcasme","sardine","saturer","saugrenu","saumon","sauter","sauvage","savant","savonner","scalpel","scandale","scélérat","scénario","sceptre","schéma","science","scinder","score","scrutin","sculpter","séance","sécable","sécher","secouer","sécréter","sédatif","séduire","seigneur","séjour","sélectif","semaine","sembler","semence","séminal","sénateur","sensible","sentence","séparer","séquence","serein","sergent","sérieux","serrure","sérum","service","sésame","sévir","sevrage","sextuple","sidéral","siècle","siéger","siffler","sigle","signal","silence","silicium","simple","sincère","sinistre","siphon","sirop","sismique","situer","skier","social","socle","sodium","soigneux","soldat","soleil","solitude","soluble","sombre","sommeil","somnoler","sonde","songeur","sonnette","sonore","sorcier","sortir","sosie","sottise","soucieux","soudure","souffle","soulever","soupape","source","soutirer","souvenir","spacieux","spatial","spécial","sphère","spiral","stable","station","sternum","stimulus","stipuler","strict","studieux","stupeur","styliste","sublime","substrat","subtil","subvenir","succès","sucre","suffixe","suggérer","suiveur","sulfate","superbe","supplier","surface","suricate","surmener","surprise","sursaut","survie","suspect","syllabe","symbole","symétrie","synapse","syntaxe","système","tabac","tablier","tactile","tailler","talent","talisman","talonner","tambour","tamiser","tangible","tapis","taquiner","tarder","tarif","tartine","tasse","tatami","tatouage","taupe","taureau","taxer","témoin","temporel","tenaille","tendre","teneur","tenir","tension","terminer","terne","terrible","tétine","texte","thème","théorie","thérapie","thorax","tibia","tiède","timide","tirelire","tiroir","tissu","titane","titre","tituber","toboggan","tolérant","tomate","tonique","tonneau","toponyme","torche","tordre","tornade","torpille","torrent","torse","tortue","totem","toucher","tournage","tousser","toxine","traction","trafic","tragique","trahir","train","trancher","travail","trèfle","tremper","trésor","treuil","triage","tribunal","tricoter","trilogie","triomphe","tripler","triturer","trivial","trombone","tronc","tropical","troupeau","tuile","tulipe","tumulte","tunnel","turbine","tuteur","tutoyer","tuyau","tympan","typhon","typique","tyran","ubuesque","ultime","ultrason","unanime","unifier","union","unique","unitaire","univers","uranium","urbain","urticant","usage","usine","usuel","usure","utile","utopie","vacarme","vaccin","vagabond","vague","vaillant","vaincre","vaisseau","valable","valise","vallon","valve","vampire","vanille","vapeur","varier","vaseux","vassal","vaste","vecteur","vedette","végétal","véhicule","veinard","véloce","vendredi","vénérer","venger","venimeux","ventouse","verdure","vérin","vernir","verrou","verser","vertu","veston","vétéran","vétuste","vexant","vexer","viaduc","viande","victoire","vidange","vidéo","vignette","vigueur","vilain","village","vinaigre","violon","vipère","virement","virtuose","virus","visage","viseur","vision","visqueux","visuel","vital","vitesse","viticole","vitrine","vivace","vivipare","vocation","voguer","voile","voisin","voiture","volaille","volcan","voltiger","volume","vorace","vortex","voter","vouloir","voyage","voyelle","wagon","xénon","yacht","zèbre","zénith","zeste","zoologie"]')},function(e){e.exports=JSON.parse('["abaco","abbaglio","abbinato","abete","abisso","abolire","abrasivo","abrogato","accadere","accenno","accusato","acetone","achille","acido","acqua","acre","acrilico","acrobata","acuto","adagio","addebito","addome","adeguato","aderire","adipe","adottare","adulare","affabile","affetto","affisso","affranto","aforisma","afoso","africano","agave","agente","agevole","aggancio","agire","agitare","agonismo","agricolo","agrumeto","aguzzo","alabarda","alato","albatro","alberato","albo","albume","alce","alcolico","alettone","alfa","algebra","aliante","alibi","alimento","allagato","allegro","allievo","allodola","allusivo","almeno","alogeno","alpaca","alpestre","altalena","alterno","alticcio","altrove","alunno","alveolo","alzare","amalgama","amanita","amarena","ambito","ambrato","ameba","america","ametista","amico","ammasso","ammenda","ammirare","ammonito","amore","ampio","ampliare","amuleto","anacardo","anagrafe","analista","anarchia","anatra","anca","ancella","ancora","andare","andrea","anello","angelo","angolare","angusto","anima","annegare","annidato","anno","annuncio","anonimo","anticipo","anzi","apatico","apertura","apode","apparire","appetito","appoggio","approdo","appunto","aprile","arabica","arachide","aragosta","araldica","arancio","aratura","arazzo","arbitro","archivio","ardito","arenile","argento","argine","arguto","aria","armonia","arnese","arredato","arringa","arrosto","arsenico","arso","artefice","arzillo","asciutto","ascolto","asepsi","asettico","asfalto","asino","asola","aspirato","aspro","assaggio","asse","assoluto","assurdo","asta","astenuto","astice","astratto","atavico","ateismo","atomico","atono","attesa","attivare","attorno","attrito","attuale","ausilio","austria","autista","autonomo","autunno","avanzato","avere","avvenire","avviso","avvolgere","azione","azoto","azzimo","azzurro","babele","baccano","bacino","baco","badessa","badilata","bagnato","baita","balcone","baldo","balena","ballata","balzano","bambino","bandire","baraonda","barbaro","barca","baritono","barlume","barocco","basilico","basso","batosta","battuto","baule","bava","bavosa","becco","beffa","belgio","belva","benda","benevole","benigno","benzina","bere","berlina","beta","bibita","bici","bidone","bifido","biga","bilancia","bimbo","binocolo","biologo","bipede","bipolare","birbante","birra","biscotto","bisesto","bisnonno","bisonte","bisturi","bizzarro","blando","blatta","bollito","bonifico","bordo","bosco","botanico","bottino","bozzolo","braccio","bradipo","brama","branca","bravura","bretella","brevetto","brezza","briglia","brillante","brindare","broccolo","brodo","bronzina","brullo","bruno","bubbone","buca","budino","buffone","buio","bulbo","buono","burlone","burrasca","bussola","busta","cadetto","caduco","calamaro","calcolo","calesse","calibro","calmo","caloria","cambusa","camerata","camicia","cammino","camola","campale","canapa","candela","cane","canino","canotto","cantina","capace","capello","capitolo","capogiro","cappero","capra","capsula","carapace","carcassa","cardo","carisma","carovana","carretto","cartolina","casaccio","cascata","caserma","caso","cassone","castello","casuale","catasta","catena","catrame","cauto","cavillo","cedibile","cedrata","cefalo","celebre","cellulare","cena","cenone","centesimo","ceramica","cercare","certo","cerume","cervello","cesoia","cespo","ceto","chela","chiaro","chicca","chiedere","chimera","china","chirurgo","chitarra","ciao","ciclismo","cifrare","cigno","cilindro","ciottolo","circa","cirrosi","citrico","cittadino","ciuffo","civetta","civile","classico","clinica","cloro","cocco","codardo","codice","coerente","cognome","collare","colmato","colore","colposo","coltivato","colza","coma","cometa","commando","comodo","computer","comune","conciso","condurre","conferma","congelare","coniuge","connesso","conoscere","consumo","continuo","convegno","coperto","copione","coppia","copricapo","corazza","cordata","coricato","cornice","corolla","corpo","corredo","corsia","cortese","cosmico","costante","cottura","covato","cratere","cravatta","creato","credere","cremoso","crescita","creta","criceto","crinale","crisi","critico","croce","cronaca","crostata","cruciale","crusca","cucire","cuculo","cugino","cullato","cupola","curatore","cursore","curvo","cuscino","custode","dado","daino","dalmata","damerino","daniela","dannoso","danzare","datato","davanti","davvero","debutto","decennio","deciso","declino","decollo","decreto","dedicato","definito","deforme","degno","delegare","delfino","delirio","delta","demenza","denotato","dentro","deposito","derapata","derivare","deroga","descritto","deserto","desiderio","desumere","detersivo","devoto","diametro","dicembre","diedro","difeso","diffuso","digerire","digitale","diluvio","dinamico","dinnanzi","dipinto","diploma","dipolo","diradare","dire","dirotto","dirupo","disagio","discreto","disfare","disgelo","disposto","distanza","disumano","dito","divano","divelto","dividere","divorato","doblone","docente","doganale","dogma","dolce","domato","domenica","dominare","dondolo","dono","dormire","dote","dottore","dovuto","dozzina","drago","druido","dubbio","dubitare","ducale","duna","duomo","duplice","duraturo","ebano","eccesso","ecco","eclissi","economia","edera","edicola","edile","editoria","educare","egemonia","egli","egoismo","egregio","elaborato","elargire","elegante","elencato","eletto","elevare","elfico","elica","elmo","elsa","eluso","emanato","emblema","emesso","emiro","emotivo","emozione","empirico","emulo","endemico","enduro","energia","enfasi","enoteca","entrare","enzima","epatite","epilogo","episodio","epocale","eppure","equatore","erario","erba","erboso","erede","eremita","erigere","ermetico","eroe","erosivo","errante","esagono","esame","esanime","esaudire","esca","esempio","esercito","esibito","esigente","esistere","esito","esofago","esortato","esoso","espanso","espresso","essenza","esso","esteso","estimare","estonia","estroso","esultare","etilico","etnico","etrusco","etto","euclideo","europa","evaso","evidenza","evitato","evoluto","evviva","fabbrica","faccenda","fachiro","falco","famiglia","fanale","fanfara","fango","fantasma","fare","farfalla","farinoso","farmaco","fascia","fastoso","fasullo","faticare","fato","favoloso","febbre","fecola","fede","fegato","felpa","feltro","femmina","fendere","fenomeno","fermento","ferro","fertile","fessura","festivo","fetta","feudo","fiaba","fiducia","fifa","figurato","filo","finanza","finestra","finire","fiore","fiscale","fisico","fiume","flacone","flamenco","flebo","flemma","florido","fluente","fluoro","fobico","focaccia","focoso","foderato","foglio","folata","folclore","folgore","fondente","fonetico","fonia","fontana","forbito","forchetta","foresta","formica","fornaio","foro","fortezza","forzare","fosfato","fosso","fracasso","frana","frassino","fratello","freccetta","frenata","fresco","frigo","frollino","fronde","frugale","frutta","fucilata","fucsia","fuggente","fulmine","fulvo","fumante","fumetto","fumoso","fune","funzione","fuoco","furbo","furgone","furore","fuso","futile","gabbiano","gaffe","galateo","gallina","galoppo","gambero","gamma","garanzia","garbo","garofano","garzone","gasdotto","gasolio","gastrico","gatto","gaudio","gazebo","gazzella","geco","gelatina","gelso","gemello","gemmato","gene","genitore","gennaio","genotipo","gergo","ghepardo","ghiaccio","ghisa","giallo","gilda","ginepro","giocare","gioiello","giorno","giove","girato","girone","gittata","giudizio","giurato","giusto","globulo","glutine","gnomo","gobba","golf","gomito","gommone","gonfio","gonna","governo","gracile","grado","grafico","grammo","grande","grattare","gravoso","grazia","greca","gregge","grifone","grigio","grinza","grotta","gruppo","guadagno","guaio","guanto","guardare","gufo","guidare","ibernato","icona","identico","idillio","idolo","idra","idrico","idrogeno","igiene","ignaro","ignorato","ilare","illeso","illogico","illudere","imballo","imbevuto","imbocco","imbuto","immane","immerso","immolato","impacco","impeto","impiego","importo","impronta","inalare","inarcare","inattivo","incanto","incendio","inchino","incisivo","incluso","incontro","incrocio","incubo","indagine","india","indole","inedito","infatti","infilare","inflitto","ingaggio","ingegno","inglese","ingordo","ingrosso","innesco","inodore","inoltrare","inondato","insano","insetto","insieme","insonnia","insulina","intasato","intero","intonaco","intuito","inumidire","invalido","invece","invito","iperbole","ipnotico","ipotesi","ippica","iride","irlanda","ironico","irrigato","irrorare","isolato","isotopo","isterico","istituto","istrice","italia","iterare","labbro","labirinto","lacca","lacerato","lacrima","lacuna","laddove","lago","lampo","lancetta","lanterna","lardoso","larga","laringe","lastra","latenza","latino","lattuga","lavagna","lavoro","legale","leggero","lembo","lentezza","lenza","leone","lepre","lesivo","lessato","lesto","letterale","leva","levigato","libero","lido","lievito","lilla","limatura","limitare","limpido","lineare","lingua","liquido","lira","lirica","lisca","lite","litigio","livrea","locanda","lode","logica","lombare","londra","longevo","loquace","lorenzo","loto","lotteria","luce","lucidato","lumaca","luminoso","lungo","lupo","luppolo","lusinga","lusso","lutto","macabro","macchina","macero","macinato","madama","magico","maglia","magnete","magro","maiolica","malafede","malgrado","malinteso","malsano","malto","malumore","mana","mancia","mandorla","mangiare","manifesto","mannaro","manovra","mansarda","mantide","manubrio","mappa","maratona","marcire","maretta","marmo","marsupio","maschera","massaia","mastino","materasso","matricola","mattone","maturo","mazurca","meandro","meccanico","mecenate","medesimo","meditare","mega","melassa","melis","melodia","meninge","meno","mensola","mercurio","merenda","merlo","meschino","mese","messere","mestolo","metallo","metodo","mettere","miagolare","mica","micelio","michele","microbo","midollo","miele","migliore","milano","milite","mimosa","minerale","mini","minore","mirino","mirtillo","miscela","missiva","misto","misurare","mitezza","mitigare","mitra","mittente","mnemonico","modello","modifica","modulo","mogano","mogio","mole","molosso","monastero","monco","mondina","monetario","monile","monotono","monsone","montato","monviso","mora","mordere","morsicato","mostro","motivato","motosega","motto","movenza","movimento","mozzo","mucca","mucosa","muffa","mughetto","mugnaio","mulatto","mulinello","multiplo","mummia","munto","muovere","murale","musa","muscolo","musica","mutevole","muto","nababbo","nafta","nanometro","narciso","narice","narrato","nascere","nastrare","naturale","nautica","naviglio","nebulosa","necrosi","negativo","negozio","nemmeno","neofita","neretto","nervo","nessuno","nettuno","neutrale","neve","nevrotico","nicchia","ninfa","nitido","nobile","nocivo","nodo","nome","nomina","nordico","normale","norvegese","nostrano","notare","notizia","notturno","novella","nucleo","nulla","numero","nuovo","nutrire","nuvola","nuziale","oasi","obbedire","obbligo","obelisco","oblio","obolo","obsoleto","occasione","occhio","occidente","occorrere","occultare","ocra","oculato","odierno","odorare","offerta","offrire","offuscato","oggetto","oggi","ognuno","olandese","olfatto","oliato","oliva","ologramma","oltre","omaggio","ombelico","ombra","omega","omissione","ondoso","onere","onice","onnivoro","onorevole","onta","operato","opinione","opposto","oracolo","orafo","ordine","orecchino","orefice","orfano","organico","origine","orizzonte","orma","ormeggio","ornativo","orologio","orrendo","orribile","ortensia","ortica","orzata","orzo","osare","oscurare","osmosi","ospedale","ospite","ossa","ossidare","ostacolo","oste","otite","otre","ottagono","ottimo","ottobre","ovale","ovest","ovino","oviparo","ovocito","ovunque","ovviare","ozio","pacchetto","pace","pacifico","padella","padrone","paese","paga","pagina","palazzina","palesare","pallido","palo","palude","pandoro","pannello","paolo","paonazzo","paprica","parabola","parcella","parere","pargolo","pari","parlato","parola","partire","parvenza","parziale","passivo","pasticca","patacca","patologia","pattume","pavone","peccato","pedalare","pedonale","peggio","peloso","penare","pendice","penisola","pennuto","penombra","pensare","pentola","pepe","pepita","perbene","percorso","perdonato","perforare","pergamena","periodo","permesso","perno","perplesso","persuaso","pertugio","pervaso","pesatore","pesista","peso","pestifero","petalo","pettine","petulante","pezzo","piacere","pianta","piattino","piccino","picozza","piega","pietra","piffero","pigiama","pigolio","pigro","pila","pilifero","pillola","pilota","pimpante","pineta","pinna","pinolo","pioggia","piombo","piramide","piretico","pirite","pirolisi","pitone","pizzico","placebo","planare","plasma","platano","plenario","pochezza","poderoso","podismo","poesia","poggiare","polenta","poligono","pollice","polmonite","polpetta","polso","poltrona","polvere","pomice","pomodoro","ponte","popoloso","porfido","poroso","porpora","porre","portata","posa","positivo","possesso","postulato","potassio","potere","pranzo","prassi","pratica","precluso","predica","prefisso","pregiato","prelievo","premere","prenotare","preparato","presenza","pretesto","prevalso","prima","principe","privato","problema","procura","produrre","profumo","progetto","prolunga","promessa","pronome","proposta","proroga","proteso","prova","prudente","prugna","prurito","psiche","pubblico","pudica","pugilato","pugno","pulce","pulito","pulsante","puntare","pupazzo","pupilla","puro","quadro","qualcosa","quasi","querela","quota","raccolto","raddoppio","radicale","radunato","raffica","ragazzo","ragione","ragno","ramarro","ramingo","ramo","randagio","rantolare","rapato","rapina","rappreso","rasatura","raschiato","rasente","rassegna","rastrello","rata","ravveduto","reale","recepire","recinto","recluta","recondito","recupero","reddito","redimere","regalato","registro","regola","regresso","relazione","remare","remoto","renna","replica","reprimere","reputare","resa","residente","responso","restauro","rete","retina","retorica","rettifica","revocato","riassunto","ribadire","ribelle","ribrezzo","ricarica","ricco","ricevere","riciclato","ricordo","ricreduto","ridicolo","ridurre","rifasare","riflesso","riforma","rifugio","rigare","rigettato","righello","rilassato","rilevato","rimanere","rimbalzo","rimedio","rimorchio","rinascita","rincaro","rinforzo","rinnovo","rinomato","rinsavito","rintocco","rinuncia","rinvenire","riparato","ripetuto","ripieno","riportare","ripresa","ripulire","risata","rischio","riserva","risibile","riso","rispetto","ristoro","risultato","risvolto","ritardo","ritegno","ritmico","ritrovo","riunione","riva","riverso","rivincita","rivolto","rizoma","roba","robotico","robusto","roccia","roco","rodaggio","rodere","roditore","rogito","rollio","romantico","rompere","ronzio","rosolare","rospo","rotante","rotondo","rotula","rovescio","rubizzo","rubrica","ruga","rullino","rumine","rumoroso","ruolo","rupe","russare","rustico","sabato","sabbiare","sabotato","sagoma","salasso","saldatura","salgemma","salivare","salmone","salone","saltare","saluto","salvo","sapere","sapido","saporito","saraceno","sarcasmo","sarto","sassoso","satellite","satira","satollo","saturno","savana","savio","saziato","sbadiglio","sbalzo","sbancato","sbarra","sbattere","sbavare","sbendare","sbirciare","sbloccato","sbocciato","sbrinare","sbruffone","sbuffare","scabroso","scadenza","scala","scambiare","scandalo","scapola","scarso","scatenare","scavato","scelto","scenico","scettro","scheda","schiena","sciarpa","scienza","scindere","scippo","sciroppo","scivolo","sclerare","scodella","scolpito","scomparto","sconforto","scoprire","scorta","scossone","scozzese","scriba","scrollare","scrutinio","scuderia","scultore","scuola","scuro","scusare","sdebitare","sdoganare","seccatura","secondo","sedano","seggiola","segnalato","segregato","seguito","selciato","selettivo","sella","selvaggio","semaforo","sembrare","seme","seminato","sempre","senso","sentire","sepolto","sequenza","serata","serbato","sereno","serio","serpente","serraglio","servire","sestina","setola","settimana","sfacelo","sfaldare","sfamato","sfarzoso","sfaticato","sfera","sfida","sfilato","sfinge","sfocato","sfoderare","sfogo","sfoltire","sforzato","sfratto","sfruttato","sfuggito","sfumare","sfuso","sgabello","sgarbato","sgonfiare","sgorbio","sgrassato","sguardo","sibilo","siccome","sierra","sigla","signore","silenzio","sillaba","simbolo","simpatico","simulato","sinfonia","singolo","sinistro","sino","sintesi","sinusoide","sipario","sisma","sistole","situato","slitta","slogatura","sloveno","smarrito","smemorato","smentito","smeraldo","smilzo","smontare","smottato","smussato","snellire","snervato","snodo","sobbalzo","sobrio","soccorso","sociale","sodale","soffitto","sogno","soldato","solenne","solido","sollazzo","solo","solubile","solvente","somatico","somma","sonda","sonetto","sonnifero","sopire","soppeso","sopra","sorgere","sorpasso","sorriso","sorso","sorteggio","sorvolato","sospiro","sosta","sottile","spada","spalla","spargere","spatola","spavento","spazzola","specie","spedire","spegnere","spelatura","speranza","spessore","spettrale","spezzato","spia","spigoloso","spillato","spinoso","spirale","splendido","sportivo","sposo","spranga","sprecare","spronato","spruzzo","spuntino","squillo","sradicare","srotolato","stabile","stacco","staffa","stagnare","stampato","stantio","starnuto","stasera","statuto","stelo","steppa","sterzo","stiletto","stima","stirpe","stivale","stizzoso","stonato","storico","strappo","stregato","stridulo","strozzare","strutto","stuccare","stufo","stupendo","subentro","succoso","sudore","suggerito","sugo","sultano","suonare","superbo","supporto","surgelato","surrogato","sussurro","sutura","svagare","svedese","sveglio","svelare","svenuto","svezia","sviluppo","svista","svizzera","svolta","svuotare","tabacco","tabulato","tacciare","taciturno","tale","talismano","tampone","tannino","tara","tardivo","targato","tariffa","tarpare","tartaruga","tasto","tattico","taverna","tavolata","tazza","teca","tecnico","telefono","temerario","tempo","temuto","tendone","tenero","tensione","tentacolo","teorema","terme","terrazzo","terzetto","tesi","tesserato","testato","tetro","tettoia","tifare","tigella","timbro","tinto","tipico","tipografo","tiraggio","tiro","titanio","titolo","titubante","tizio","tizzone","toccare","tollerare","tolto","tombola","tomo","tonfo","tonsilla","topazio","topologia","toppa","torba","tornare","torrone","tortora","toscano","tossire","tostatura","totano","trabocco","trachea","trafila","tragedia","tralcio","tramonto","transito","trapano","trarre","trasloco","trattato","trave","treccia","tremolio","trespolo","tributo","tricheco","trifoglio","trillo","trincea","trio","tristezza","triturato","trivella","tromba","trono","troppo","trottola","trovare","truccato","tubatura","tuffato","tulipano","tumulto","tunisia","turbare","turchino","tuta","tutela","ubicato","uccello","uccisore","udire","uditivo","uffa","ufficio","uguale","ulisse","ultimato","umano","umile","umorismo","uncinetto","ungere","ungherese","unicorno","unificato","unisono","unitario","unte","uovo","upupa","uragano","urgenza","urlo","usanza","usato","uscito","usignolo","usuraio","utensile","utilizzo","utopia","vacante","vaccinato","vagabondo","vagliato","valanga","valgo","valico","valletta","valoroso","valutare","valvola","vampata","vangare","vanitoso","vano","vantaggio","vanvera","vapore","varano","varcato","variante","vasca","vedetta","vedova","veduto","vegetale","veicolo","velcro","velina","velluto","veloce","venato","vendemmia","vento","verace","verbale","vergogna","verifica","vero","verruca","verticale","vescica","vessillo","vestale","veterano","vetrina","vetusto","viandante","vibrante","vicenda","vichingo","vicinanza","vidimare","vigilia","vigneto","vigore","vile","villano","vimini","vincitore","viola","vipera","virgola","virologo","virulento","viscoso","visione","vispo","vissuto","visura","vita","vitello","vittima","vivanda","vivido","viziare","voce","voga","volatile","volere","volpe","voragine","vulcano","zampogna","zanna","zappato","zattera","zavorra","zefiro","zelante","zelo","zenzero","zerbino","zibetto","zinco","zircone","zitto","zolla","zotico","zucchero","zufolo","zulu","zuppa"]')},function(e){e.exports=JSON.parse('["ábaco","abdomen","abeja","abierto","abogado","abono","aborto","abrazo","abrir","abuelo","abuso","acabar","academia","acceso","acción","aceite","acelga","acento","aceptar","ácido","aclarar","acné","acoger","acoso","activo","acto","actriz","actuar","acudir","acuerdo","acusar","adicto","admitir","adoptar","adorno","aduana","adulto","aéreo","afectar","afición","afinar","afirmar","ágil","agitar","agonía","agosto","agotar","agregar","agrio","agua","agudo","águila","aguja","ahogo","ahorro","aire","aislar","ajedrez","ajeno","ajuste","alacrán","alambre","alarma","alba","álbum","alcalde","aldea","alegre","alejar","alerta","aleta","alfiler","alga","algodón","aliado","aliento","alivio","alma","almeja","almíbar","altar","alteza","altivo","alto","altura","alumno","alzar","amable","amante","amapola","amargo","amasar","ámbar","ámbito","ameno","amigo","amistad","amor","amparo","amplio","ancho","anciano","ancla","andar","andén","anemia","ángulo","anillo","ánimo","anís","anotar","antena","antiguo","antojo","anual","anular","anuncio","añadir","añejo","año","apagar","aparato","apetito","apio","aplicar","apodo","aporte","apoyo","aprender","aprobar","apuesta","apuro","arado","araña","arar","árbitro","árbol","arbusto","archivo","arco","arder","ardilla","arduo","área","árido","aries","armonía","arnés","aroma","arpa","arpón","arreglo","arroz","arruga","arte","artista","asa","asado","asalto","ascenso","asegurar","aseo","asesor","asiento","asilo","asistir","asno","asombro","áspero","astilla","astro","astuto","asumir","asunto","atajo","ataque","atar","atento","ateo","ático","atleta","átomo","atraer","atroz","atún","audaz","audio","auge","aula","aumento","ausente","autor","aval","avance","avaro","ave","avellana","avena","avestruz","avión","aviso","ayer","ayuda","ayuno","azafrán","azar","azote","azúcar","azufre","azul","baba","babor","bache","bahía","baile","bajar","balanza","balcón","balde","bambú","banco","banda","baño","barba","barco","barniz","barro","báscula","bastón","basura","batalla","batería","batir","batuta","baúl","bazar","bebé","bebida","bello","besar","beso","bestia","bicho","bien","bingo","blanco","bloque","blusa","boa","bobina","bobo","boca","bocina","boda","bodega","boina","bola","bolero","bolsa","bomba","bondad","bonito","bono","bonsái","borde","borrar","bosque","bote","botín","bóveda","bozal","bravo","brazo","brecha","breve","brillo","brinco","brisa","broca","broma","bronce","brote","bruja","brusco","bruto","buceo","bucle","bueno","buey","bufanda","bufón","búho","buitre","bulto","burbuja","burla","burro","buscar","butaca","buzón","caballo","cabeza","cabina","cabra","cacao","cadáver","cadena","caer","café","caída","caimán","caja","cajón","cal","calamar","calcio","caldo","calidad","calle","calma","calor","calvo","cama","cambio","camello","camino","campo","cáncer","candil","canela","canguro","canica","canto","caña","cañón","caoba","caos","capaz","capitán","capote","captar","capucha","cara","carbón","cárcel","careta","carga","cariño","carne","carpeta","carro","carta","casa","casco","casero","caspa","castor","catorce","catre","caudal","causa","cazo","cebolla","ceder","cedro","celda","célebre","celoso","célula","cemento","ceniza","centro","cerca","cerdo","cereza","cero","cerrar","certeza","césped","cetro","chacal","chaleco","champú","chancla","chapa","charla","chico","chiste","chivo","choque","choza","chuleta","chupar","ciclón","ciego","cielo","cien","cierto","cifra","cigarro","cima","cinco","cine","cinta","ciprés","circo","ciruela","cisne","cita","ciudad","clamor","clan","claro","clase","clave","cliente","clima","clínica","cobre","cocción","cochino","cocina","coco","código","codo","cofre","coger","cohete","cojín","cojo","cola","colcha","colegio","colgar","colina","collar","colmo","columna","combate","comer","comida","cómodo","compra","conde","conejo","conga","conocer","consejo","contar","copa","copia","corazón","corbata","corcho","cordón","corona","correr","coser","cosmos","costa","cráneo","cráter","crear","crecer","creído","crema","cría","crimen","cripta","crisis","cromo","crónica","croqueta","crudo","cruz","cuadro","cuarto","cuatro","cubo","cubrir","cuchara","cuello","cuento","cuerda","cuesta","cueva","cuidar","culebra","culpa","culto","cumbre","cumplir","cuna","cuneta","cuota","cupón","cúpula","curar","curioso","curso","curva","cutis","dama","danza","dar","dardo","dátil","deber","débil","década","decir","dedo","defensa","definir","dejar","delfín","delgado","delito","demora","denso","dental","deporte","derecho","derrota","desayuno","deseo","desfile","desnudo","destino","desvío","detalle","detener","deuda","día","diablo","diadema","diamante","diana","diario","dibujo","dictar","diente","dieta","diez","difícil","digno","dilema","diluir","dinero","directo","dirigir","disco","diseño","disfraz","diva","divino","doble","doce","dolor","domingo","don","donar","dorado","dormir","dorso","dos","dosis","dragón","droga","ducha","duda","duelo","dueño","dulce","dúo","duque","durar","dureza","duro","ébano","ebrio","echar","eco","ecuador","edad","edición","edificio","editor","educar","efecto","eficaz","eje","ejemplo","elefante","elegir","elemento","elevar","elipse","élite","elixir","elogio","eludir","embudo","emitir","emoción","empate","empeño","empleo","empresa","enano","encargo","enchufe","encía","enemigo","enero","enfado","enfermo","engaño","enigma","enlace","enorme","enredo","ensayo","enseñar","entero","entrar","envase","envío","época","equipo","erizo","escala","escena","escolar","escribir","escudo","esencia","esfera","esfuerzo","espada","espejo","espía","esposa","espuma","esquí","estar","este","estilo","estufa","etapa","eterno","ética","etnia","evadir","evaluar","evento","evitar","exacto","examen","exceso","excusa","exento","exigir","exilio","existir","éxito","experto","explicar","exponer","extremo","fábrica","fábula","fachada","fácil","factor","faena","faja","falda","fallo","falso","faltar","fama","familia","famoso","faraón","farmacia","farol","farsa","fase","fatiga","fauna","favor","fax","febrero","fecha","feliz","feo","feria","feroz","fértil","fervor","festín","fiable","fianza","fiar","fibra","ficción","ficha","fideo","fiebre","fiel","fiera","fiesta","figura","fijar","fijo","fila","filete","filial","filtro","fin","finca","fingir","finito","firma","flaco","flauta","flecha","flor","flota","fluir","flujo","flúor","fobia","foca","fogata","fogón","folio","folleto","fondo","forma","forro","fortuna","forzar","fosa","foto","fracaso","frágil","franja","frase","fraude","freír","freno","fresa","frío","frito","fruta","fuego","fuente","fuerza","fuga","fumar","función","funda","furgón","furia","fusil","fútbol","futuro","gacela","gafas","gaita","gajo","gala","galería","gallo","gamba","ganar","gancho","ganga","ganso","garaje","garza","gasolina","gastar","gato","gavilán","gemelo","gemir","gen","género","genio","gente","geranio","gerente","germen","gesto","gigante","gimnasio","girar","giro","glaciar","globo","gloria","gol","golfo","goloso","golpe","goma","gordo","gorila","gorra","gota","goteo","gozar","grada","gráfico","grano","grasa","gratis","grave","grieta","grillo","gripe","gris","grito","grosor","grúa","grueso","grumo","grupo","guante","guapo","guardia","guerra","guía","guiño","guion","guiso","guitarra","gusano","gustar","haber","hábil","hablar","hacer","hacha","hada","hallar","hamaca","harina","haz","hazaña","hebilla","hebra","hecho","helado","helio","hembra","herir","hermano","héroe","hervir","hielo","hierro","hígado","higiene","hijo","himno","historia","hocico","hogar","hoguera","hoja","hombre","hongo","honor","honra","hora","hormiga","horno","hostil","hoyo","hueco","huelga","huerta","hueso","huevo","huida","huir","humano","húmedo","humilde","humo","hundir","huracán","hurto","icono","ideal","idioma","ídolo","iglesia","iglú","igual","ilegal","ilusión","imagen","imán","imitar","impar","imperio","imponer","impulso","incapaz","índice","inerte","infiel","informe","ingenio","inicio","inmenso","inmune","innato","insecto","instante","interés","íntimo","intuir","inútil","invierno","ira","iris","ironía","isla","islote","jabalí","jabón","jamón","jarabe","jardín","jarra","jaula","jazmín","jefe","jeringa","jinete","jornada","joroba","joven","joya","juerga","jueves","juez","jugador","jugo","juguete","juicio","junco","jungla","junio","juntar","júpiter","jurar","justo","juvenil","juzgar","kilo","koala","labio","lacio","lacra","lado","ladrón","lagarto","lágrima","laguna","laico","lamer","lámina","lámpara","lana","lancha","langosta","lanza","lápiz","largo","larva","lástima","lata","látex","latir","laurel","lavar","lazo","leal","lección","leche","lector","leer","legión","legumbre","lejano","lengua","lento","leña","león","leopardo","lesión","letal","letra","leve","leyenda","libertad","libro","licor","líder","lidiar","lienzo","liga","ligero","lima","límite","limón","limpio","lince","lindo","línea","lingote","lino","linterna","líquido","liso","lista","litera","litio","litro","llaga","llama","llanto","llave","llegar","llenar","llevar","llorar","llover","lluvia","lobo","loción","loco","locura","lógica","logro","lombriz","lomo","lonja","lote","lucha","lucir","lugar","lujo","luna","lunes","lupa","lustro","luto","luz","maceta","macho","madera","madre","maduro","maestro","mafia","magia","mago","maíz","maldad","maleta","malla","malo","mamá","mambo","mamut","manco","mando","manejar","manga","maniquí","manjar","mano","manso","manta","mañana","mapa","máquina","mar","marco","marea","marfil","margen","marido","mármol","marrón","martes","marzo","masa","máscara","masivo","matar","materia","matiz","matriz","máximo","mayor","mazorca","mecha","medalla","medio","médula","mejilla","mejor","melena","melón","memoria","menor","mensaje","mente","menú","mercado","merengue","mérito","mes","mesón","meta","meter","método","metro","mezcla","miedo","miel","miembro","miga","mil","milagro","militar","millón","mimo","mina","minero","mínimo","minuto","miope","mirar","misa","miseria","misil","mismo","mitad","mito","mochila","moción","moda","modelo","moho","mojar","molde","moler","molino","momento","momia","monarca","moneda","monja","monto","moño","morada","morder","moreno","morir","morro","morsa","mortal","mosca","mostrar","motivo","mover","móvil","mozo","mucho","mudar","mueble","muela","muerte","muestra","mugre","mujer","mula","muleta","multa","mundo","muñeca","mural","muro","músculo","museo","musgo","música","muslo","nácar","nación","nadar","naipe","naranja","nariz","narrar","nasal","natal","nativo","natural","náusea","naval","nave","navidad","necio","néctar","negar","negocio","negro","neón","nervio","neto","neutro","nevar","nevera","nicho","nido","niebla","nieto","niñez","niño","nítido","nivel","nobleza","noche","nómina","noria","norma","norte","nota","noticia","novato","novela","novio","nube","nuca","núcleo","nudillo","nudo","nuera","nueve","nuez","nulo","número","nutria","oasis","obeso","obispo","objeto","obra","obrero","observar","obtener","obvio","oca","ocaso","océano","ochenta","ocho","ocio","ocre","octavo","octubre","oculto","ocupar","ocurrir","odiar","odio","odisea","oeste","ofensa","oferta","oficio","ofrecer","ogro","oído","oír","ojo","ola","oleada","olfato","olivo","olla","olmo","olor","olvido","ombligo","onda","onza","opaco","opción","ópera","opinar","oponer","optar","óptica","opuesto","oración","orador","oral","órbita","orca","orden","oreja","órgano","orgía","orgullo","oriente","origen","orilla","oro","orquesta","oruga","osadía","oscuro","osezno","oso","ostra","otoño","otro","oveja","óvulo","óxido","oxígeno","oyente","ozono","pacto","padre","paella","página","pago","país","pájaro","palabra","palco","paleta","pálido","palma","paloma","palpar","pan","panal","pánico","pantera","pañuelo","papá","papel","papilla","paquete","parar","parcela","pared","parir","paro","párpado","parque","párrafo","parte","pasar","paseo","pasión","paso","pasta","pata","patio","patria","pausa","pauta","pavo","payaso","peatón","pecado","pecera","pecho","pedal","pedir","pegar","peine","pelar","peldaño","pelea","peligro","pellejo","pelo","peluca","pena","pensar","peñón","peón","peor","pepino","pequeño","pera","percha","perder","pereza","perfil","perico","perla","permiso","perro","persona","pesa","pesca","pésimo","pestaña","pétalo","petróleo","pez","pezuña","picar","pichón","pie","piedra","pierna","pieza","pijama","pilar","piloto","pimienta","pino","pintor","pinza","piña","piojo","pipa","pirata","pisar","piscina","piso","pista","pitón","pizca","placa","plan","plata","playa","plaza","pleito","pleno","plomo","pluma","plural","pobre","poco","poder","podio","poema","poesía","poeta","polen","policía","pollo","polvo","pomada","pomelo","pomo","pompa","poner","porción","portal","posada","poseer","posible","poste","potencia","potro","pozo","prado","precoz","pregunta","premio","prensa","preso","previo","primo","príncipe","prisión","privar","proa","probar","proceso","producto","proeza","profesor","programa","prole","promesa","pronto","propio","próximo","prueba","público","puchero","pudor","pueblo","puerta","puesto","pulga","pulir","pulmón","pulpo","pulso","puma","punto","puñal","puño","pupa","pupila","puré","quedar","queja","quemar","querer","queso","quieto","química","quince","quitar","rábano","rabia","rabo","ración","radical","raíz","rama","rampa","rancho","rango","rapaz","rápido","rapto","rasgo","raspa","rato","rayo","raza","razón","reacción","realidad","rebaño","rebote","recaer","receta","rechazo","recoger","recreo","recto","recurso","red","redondo","reducir","reflejo","reforma","refrán","refugio","regalo","regir","regla","regreso","rehén","reino","reír","reja","relato","relevo","relieve","relleno","reloj","remar","remedio","remo","rencor","rendir","renta","reparto","repetir","reposo","reptil","res","rescate","resina","respeto","resto","resumen","retiro","retorno","retrato","reunir","revés","revista","rey","rezar","rico","riego","rienda","riesgo","rifa","rígido","rigor","rincón","riñón","río","riqueza","risa","ritmo","rito","rizo","roble","roce","rociar","rodar","rodeo","rodilla","roer","rojizo","rojo","romero","romper","ron","ronco","ronda","ropa","ropero","rosa","rosca","rostro","rotar","rubí","rubor","rudo","rueda","rugir","ruido","ruina","ruleta","rulo","rumbo","rumor","ruptura","ruta","rutina","sábado","saber","sabio","sable","sacar","sagaz","sagrado","sala","saldo","salero","salir","salmón","salón","salsa","salto","salud","salvar","samba","sanción","sandía","sanear","sangre","sanidad","sano","santo","sapo","saque","sardina","sartén","sastre","satán","sauna","saxofón","sección","seco","secreto","secta","sed","seguir","seis","sello","selva","semana","semilla","senda","sensor","señal","señor","separar","sepia","sequía","ser","serie","sermón","servir","sesenta","sesión","seta","setenta","severo","sexo","sexto","sidra","siesta","siete","siglo","signo","sílaba","silbar","silencio","silla","símbolo","simio","sirena","sistema","sitio","situar","sobre","socio","sodio","sol","solapa","soldado","soledad","sólido","soltar","solución","sombra","sondeo","sonido","sonoro","sonrisa","sopa","soplar","soporte","sordo","sorpresa","sorteo","sostén","sótano","suave","subir","suceso","sudor","suegra","suelo","sueño","suerte","sufrir","sujeto","sultán","sumar","superar","suplir","suponer","supremo","sur","surco","sureño","surgir","susto","sutil","tabaco","tabique","tabla","tabú","taco","tacto","tajo","talar","talco","talento","talla","talón","tamaño","tambor","tango","tanque","tapa","tapete","tapia","tapón","taquilla","tarde","tarea","tarifa","tarjeta","tarot","tarro","tarta","tatuaje","tauro","taza","tazón","teatro","techo","tecla","técnica","tejado","tejer","tejido","tela","teléfono","tema","temor","templo","tenaz","tender","tener","tenis","tenso","teoría","terapia","terco","término","ternura","terror","tesis","tesoro","testigo","tetera","texto","tez","tibio","tiburón","tiempo","tienda","tierra","tieso","tigre","tijera","tilde","timbre","tímido","timo","tinta","tío","típico","tipo","tira","tirón","titán","títere","título","tiza","toalla","tobillo","tocar","tocino","todo","toga","toldo","tomar","tono","tonto","topar","tope","toque","tórax","torero","tormenta","torneo","toro","torpedo","torre","torso","tortuga","tos","tosco","toser","tóxico","trabajo","tractor","traer","tráfico","trago","traje","tramo","trance","trato","trauma","trazar","trébol","tregua","treinta","tren","trepar","tres","tribu","trigo","tripa","triste","triunfo","trofeo","trompa","tronco","tropa","trote","trozo","truco","trueno","trufa","tubería","tubo","tuerto","tumba","tumor","túnel","túnica","turbina","turismo","turno","tutor","ubicar","úlcera","umbral","unidad","unir","universo","uno","untar","uña","urbano","urbe","urgente","urna","usar","usuario","útil","utopía","uva","vaca","vacío","vacuna","vagar","vago","vaina","vajilla","vale","válido","valle","valor","válvula","vampiro","vara","variar","varón","vaso","vecino","vector","vehículo","veinte","vejez","vela","velero","veloz","vena","vencer","venda","veneno","vengar","venir","venta","venus","ver","verano","verbo","verde","vereda","verja","verso","verter","vía","viaje","vibrar","vicio","víctima","vida","vídeo","vidrio","viejo","viernes","vigor","vil","villa","vinagre","vino","viñedo","violín","viral","virgo","virtud","visor","víspera","vista","vitamina","viudo","vivaz","vivero","vivir","vivo","volcán","volumen","volver","voraz","votar","voto","voz","vuelo","vulgar","yacer","yate","yegua","yema","yerno","yeso","yodo","yoga","yogur","zafiro","zanja","zapato","zarza","zona","zorro","zumo","zurdo"]')},function(e){e.exports=JSON.parse('["あいこくしん","あいさつ","あいだ","あおぞら","あかちゃん","あきる","あけがた","あける","あこがれる","あさい","あさひ","あしあと","あじわう","あずかる","あずき","あそぶ","あたえる","あたためる","あたりまえ","あたる","あつい","あつかう","あっしゅく","あつまり","あつめる","あてな","あてはまる","あひる","あぶら","あぶる","あふれる","あまい","あまど","あまやかす","あまり","あみもの","あめりか","あやまる","あゆむ","あらいぐま","あらし","あらすじ","あらためる","あらゆる","あらわす","ありがとう","あわせる","あわてる","あんい","あんがい","あんこ","あんぜん","あんてい","あんない","あんまり","いいだす","いおん","いがい","いがく","いきおい","いきなり","いきもの","いきる","いくじ","いくぶん","いけばな","いけん","いこう","いこく","いこつ","いさましい","いさん","いしき","いじゅう","いじょう","いじわる","いずみ","いずれ","いせい","いせえび","いせかい","いせき","いぜん","いそうろう","いそがしい","いだい","いだく","いたずら","いたみ","いたりあ","いちおう","いちじ","いちど","いちば","いちぶ","いちりゅう","いつか","いっしゅん","いっせい","いっそう","いったん","いっち","いってい","いっぽう","いてざ","いてん","いどう","いとこ","いない","いなか","いねむり","いのち","いのる","いはつ","いばる","いはん","いびき","いひん","いふく","いへん","いほう","いみん","いもうと","いもたれ","いもり","いやがる","いやす","いよかん","いよく","いらい","いらすと","いりぐち","いりょう","いれい","いれもの","いれる","いろえんぴつ","いわい","いわう","いわかん","いわば","いわゆる","いんげんまめ","いんさつ","いんしょう","いんよう","うえき","うえる","うおざ","うがい","うかぶ","うかべる","うきわ","うくらいな","うくれれ","うけたまわる","うけつけ","うけとる","うけもつ","うける","うごかす","うごく","うこん","うさぎ","うしなう","うしろがみ","うすい","うすぎ","うすぐらい","うすめる","うせつ","うちあわせ","うちがわ","うちき","うちゅう","うっかり","うつくしい","うったえる","うつる","うどん","うなぎ","うなじ","うなずく","うなる","うねる","うのう","うぶげ","うぶごえ","うまれる","うめる","うもう","うやまう","うよく","うらがえす","うらぐち","うらない","うりあげ","うりきれ","うるさい","うれしい","うれゆき","うれる","うろこ","うわき","うわさ","うんこう","うんちん","うんてん","うんどう","えいえん","えいが","えいきょう","えいご","えいせい","えいぶん","えいよう","えいわ","えおり","えがお","えがく","えきたい","えくせる","えしゃく","えすて","えつらん","えのぐ","えほうまき","えほん","えまき","えもじ","えもの","えらい","えらぶ","えりあ","えんえん","えんかい","えんぎ","えんげき","えんしゅう","えんぜつ","えんそく","えんちょう","えんとつ","おいかける","おいこす","おいしい","おいつく","おうえん","おうさま","おうじ","おうせつ","おうたい","おうふく","おうべい","おうよう","おえる","おおい","おおう","おおどおり","おおや","おおよそ","おかえり","おかず","おがむ","おかわり","おぎなう","おきる","おくさま","おくじょう","おくりがな","おくる","おくれる","おこす","おこなう","おこる","おさえる","おさない","おさめる","おしいれ","おしえる","おじぎ","おじさん","おしゃれ","おそらく","おそわる","おたがい","おたく","おだやか","おちつく","おっと","おつり","おでかけ","おとしもの","おとなしい","おどり","おどろかす","おばさん","おまいり","おめでとう","おもいで","おもう","おもたい","おもちゃ","おやつ","おやゆび","およぼす","おらんだ","おろす","おんがく","おんけい","おんしゃ","おんせん","おんだん","おんちゅう","おんどけい","かあつ","かいが","がいき","がいけん","がいこう","かいさつ","かいしゃ","かいすいよく","かいぜん","かいぞうど","かいつう","かいてん","かいとう","かいふく","がいへき","かいほう","かいよう","がいらい","かいわ","かえる","かおり","かかえる","かがく","かがし","かがみ","かくご","かくとく","かざる","がぞう","かたい","かたち","がちょう","がっきゅう","がっこう","がっさん","がっしょう","かなざわし","かのう","がはく","かぶか","かほう","かほご","かまう","かまぼこ","かめれおん","かゆい","かようび","からい","かるい","かろう","かわく","かわら","がんか","かんけい","かんこう","かんしゃ","かんそう","かんたん","かんち","がんばる","きあい","きあつ","きいろ","ぎいん","きうい","きうん","きえる","きおう","きおく","きおち","きおん","きかい","きかく","きかんしゃ","ききて","きくばり","きくらげ","きけんせい","きこう","きこえる","きこく","きさい","きさく","きさま","きさらぎ","ぎじかがく","ぎしき","ぎじたいけん","ぎじにってい","ぎじゅつしゃ","きすう","きせい","きせき","きせつ","きそう","きぞく","きぞん","きたえる","きちょう","きつえん","ぎっちり","きつつき","きつね","きてい","きどう","きどく","きない","きなが","きなこ","きぬごし","きねん","きのう","きのした","きはく","きびしい","きひん","きふく","きぶん","きぼう","きほん","きまる","きみつ","きむずかしい","きめる","きもだめし","きもち","きもの","きゃく","きやく","ぎゅうにく","きよう","きょうりゅう","きらい","きらく","きりん","きれい","きれつ","きろく","ぎろん","きわめる","ぎんいろ","きんかくじ","きんじょ","きんようび","ぐあい","くいず","くうかん","くうき","くうぐん","くうこう","ぐうせい","くうそう","ぐうたら","くうふく","くうぼ","くかん","くきょう","くげん","ぐこう","くさい","くさき","くさばな","くさる","くしゃみ","くしょう","くすのき","くすりゆび","くせげ","くせん","ぐたいてき","くださる","くたびれる","くちこみ","くちさき","くつした","ぐっすり","くつろぐ","くとうてん","くどく","くなん","くねくね","くのう","くふう","くみあわせ","くみたてる","くめる","くやくしょ","くらす","くらべる","くるま","くれる","くろう","くわしい","ぐんかん","ぐんしょく","ぐんたい","ぐんて","けあな","けいかく","けいけん","けいこ","けいさつ","げいじゅつ","けいたい","げいのうじん","けいれき","けいろ","けおとす","けおりもの","げきか","げきげん","げきだん","げきちん","げきとつ","げきは","げきやく","げこう","げこくじょう","げざい","けさき","げざん","けしき","けしごむ","けしょう","げすと","けたば","けちゃっぷ","けちらす","けつあつ","けつい","けつえき","けっこん","けつじょ","けっせき","けってい","けつまつ","げつようび","げつれい","けつろん","げどく","けとばす","けとる","けなげ","けなす","けなみ","けぬき","げねつ","けねん","けはい","げひん","けぶかい","げぼく","けまり","けみかる","けむし","けむり","けもの","けらい","けろけろ","けわしい","けんい","けんえつ","けんお","けんか","げんき","けんげん","けんこう","けんさく","けんしゅう","けんすう","げんそう","けんちく","けんてい","けんとう","けんない","けんにん","げんぶつ","けんま","けんみん","けんめい","けんらん","けんり","こあくま","こいぬ","こいびと","ごうい","こうえん","こうおん","こうかん","ごうきゅう","ごうけい","こうこう","こうさい","こうじ","こうすい","ごうせい","こうそく","こうたい","こうちゃ","こうつう","こうてい","こうどう","こうない","こうはい","ごうほう","ごうまん","こうもく","こうりつ","こえる","こおり","ごかい","ごがつ","ごかん","こくご","こくさい","こくとう","こくない","こくはく","こぐま","こけい","こける","ここのか","こころ","こさめ","こしつ","こすう","こせい","こせき","こぜん","こそだて","こたい","こたえる","こたつ","こちょう","こっか","こつこつ","こつばん","こつぶ","こてい","こてん","ことがら","ことし","ことば","ことり","こなごな","こねこね","このまま","このみ","このよ","ごはん","こひつじ","こふう","こふん","こぼれる","ごまあぶら","こまかい","ごますり","こまつな","こまる","こむぎこ","こもじ","こもち","こもの","こもん","こやく","こやま","こゆう","こゆび","こよい","こよう","こりる","これくしょん","ころっけ","こわもて","こわれる","こんいん","こんかい","こんき","こんしゅう","こんすい","こんだて","こんとん","こんなん","こんびに","こんぽん","こんまけ","こんや","こんれい","こんわく","ざいえき","さいかい","さいきん","ざいげん","ざいこ","さいしょ","さいせい","ざいたく","ざいちゅう","さいてき","ざいりょう","さうな","さかいし","さがす","さかな","さかみち","さがる","さぎょう","さくし","さくひん","さくら","さこく","さこつ","さずかる","ざせき","さたん","さつえい","ざつおん","ざっか","ざつがく","さっきょく","ざっし","さつじん","ざっそう","さつたば","さつまいも","さてい","さといも","さとう","さとおや","さとし","さとる","さのう","さばく","さびしい","さべつ","さほう","さほど","さます","さみしい","さみだれ","さむけ","さめる","さやえんどう","さゆう","さよう","さよく","さらだ","ざるそば","さわやか","さわる","さんいん","さんか","さんきゃく","さんこう","さんさい","ざんしょ","さんすう","さんせい","さんそ","さんち","さんま","さんみ","さんらん","しあい","しあげ","しあさって","しあわせ","しいく","しいん","しうち","しえい","しおけ","しかい","しかく","じかん","しごと","しすう","じだい","したうけ","したぎ","したて","したみ","しちょう","しちりん","しっかり","しつじ","しつもん","してい","してき","してつ","じてん","じどう","しなぎれ","しなもの","しなん","しねま","しねん","しのぐ","しのぶ","しはい","しばかり","しはつ","しはらい","しはん","しひょう","しふく","じぶん","しへい","しほう","しほん","しまう","しまる","しみん","しむける","じむしょ","しめい","しめる","しもん","しゃいん","しゃうん","しゃおん","じゃがいも","しやくしょ","しゃくほう","しゃけん","しゃこ","しゃざい","しゃしん","しゃせん","しゃそう","しゃたい","しゃちょう","しゃっきん","じゃま","しゃりん","しゃれい","じゆう","じゅうしょ","しゅくはく","じゅしん","しゅっせき","しゅみ","しゅらば","じゅんばん","しょうかい","しょくたく","しょっけん","しょどう","しょもつ","しらせる","しらべる","しんか","しんこう","じんじゃ","しんせいじ","しんちく","しんりん","すあげ","すあし","すあな","ずあん","すいえい","すいか","すいとう","ずいぶん","すいようび","すうがく","すうじつ","すうせん","すおどり","すきま","すくう","すくない","すける","すごい","すこし","ずさん","すずしい","すすむ","すすめる","すっかり","ずっしり","ずっと","すてき","すてる","すねる","すのこ","すはだ","すばらしい","ずひょう","ずぶぬれ","すぶり","すふれ","すべて","すべる","ずほう","すぼん","すまい","すめし","すもう","すやき","すらすら","するめ","すれちがう","すろっと","すわる","すんぜん","すんぽう","せあぶら","せいかつ","せいげん","せいじ","せいよう","せおう","せかいかん","せきにん","せきむ","せきゆ","せきらんうん","せけん","せこう","せすじ","せたい","せたけ","せっかく","せっきゃく","ぜっく","せっけん","せっこつ","せっさたくま","せつぞく","せつだん","せつでん","せっぱん","せつび","せつぶん","せつめい","せつりつ","せなか","せのび","せはば","せびろ","せぼね","せまい","せまる","せめる","せもたれ","せりふ","ぜんあく","せんい","せんえい","せんか","せんきょ","せんく","せんげん","ぜんご","せんさい","せんしゅ","せんすい","せんせい","せんぞ","せんたく","せんちょう","せんてい","せんとう","せんぬき","せんねん","せんぱい","ぜんぶ","ぜんぽう","せんむ","せんめんじょ","せんもん","せんやく","せんゆう","せんよう","ぜんら","ぜんりゃく","せんれい","せんろ","そあく","そいとげる","そいね","そうがんきょう","そうき","そうご","そうしん","そうだん","そうなん","そうび","そうめん","そうり","そえもの","そえん","そがい","そげき","そこう","そこそこ","そざい","そしな","そせい","そせん","そそぐ","そだてる","そつう","そつえん","そっかん","そつぎょう","そっけつ","そっこう","そっせん","そっと","そとがわ","そとづら","そなえる","そなた","そふぼ","そぼく","そぼろ","そまつ","そまる","そむく","そむりえ","そめる","そもそも","そよかぜ","そらまめ","そろう","そんかい","そんけい","そんざい","そんしつ","そんぞく","そんちょう","ぞんび","ぞんぶん","そんみん","たあい","たいいん","たいうん","たいえき","たいおう","だいがく","たいき","たいぐう","たいけん","たいこ","たいざい","だいじょうぶ","だいすき","たいせつ","たいそう","だいたい","たいちょう","たいてい","だいどころ","たいない","たいねつ","たいのう","たいはん","だいひょう","たいふう","たいへん","たいほ","たいまつばな","たいみんぐ","たいむ","たいめん","たいやき","たいよう","たいら","たいりょく","たいる","たいわん","たうえ","たえる","たおす","たおる","たおれる","たかい","たかね","たきび","たくさん","たこく","たこやき","たさい","たしざん","だじゃれ","たすける","たずさわる","たそがれ","たたかう","たたく","ただしい","たたみ","たちばな","だっかい","だっきゃく","だっこ","だっしゅつ","だったい","たてる","たとえる","たなばた","たにん","たぬき","たのしみ","たはつ","たぶん","たべる","たぼう","たまご","たまる","だむる","ためいき","ためす","ためる","たもつ","たやすい","たよる","たらす","たりきほんがん","たりょう","たりる","たると","たれる","たれんと","たろっと","たわむれる","だんあつ","たんい","たんおん","たんか","たんき","たんけん","たんご","たんさん","たんじょうび","だんせい","たんそく","たんたい","だんち","たんてい","たんとう","だんな","たんにん","だんねつ","たんのう","たんぴん","だんぼう","たんまつ","たんめい","だんれつ","だんろ","だんわ","ちあい","ちあん","ちいき","ちいさい","ちえん","ちかい","ちから","ちきゅう","ちきん","ちけいず","ちけん","ちこく","ちさい","ちしき","ちしりょう","ちせい","ちそう","ちたい","ちたん","ちちおや","ちつじょ","ちてき","ちてん","ちぬき","ちぬり","ちのう","ちひょう","ちへいせん","ちほう","ちまた","ちみつ","ちみどろ","ちめいど","ちゃんこなべ","ちゅうい","ちゆりょく","ちょうし","ちょさくけん","ちらし","ちらみ","ちりがみ","ちりょう","ちるど","ちわわ","ちんたい","ちんもく","ついか","ついたち","つうか","つうじょう","つうはん","つうわ","つかう","つかれる","つくね","つくる","つけね","つける","つごう","つたえる","つづく","つつじ","つつむ","つとめる","つながる","つなみ","つねづね","つのる","つぶす","つまらない","つまる","つみき","つめたい","つもり","つもる","つよい","つるぼ","つるみく","つわもの","つわり","てあし","てあて","てあみ","ていおん","ていか","ていき","ていけい","ていこく","ていさつ","ていし","ていせい","ていたい","ていど","ていねい","ていひょう","ていへん","ていぼう","てうち","ておくれ","てきとう","てくび","でこぼこ","てさぎょう","てさげ","てすり","てそう","てちがい","てちょう","てつがく","てつづき","でっぱ","てつぼう","てつや","でぬかえ","てぬき","てぬぐい","てのひら","てはい","てぶくろ","てふだ","てほどき","てほん","てまえ","てまきずし","てみじか","てみやげ","てらす","てれび","てわけ","てわたし","でんあつ","てんいん","てんかい","てんき","てんぐ","てんけん","てんごく","てんさい","てんし","てんすう","でんち","てんてき","てんとう","てんない","てんぷら","てんぼうだい","てんめつ","てんらんかい","でんりょく","でんわ","どあい","といれ","どうかん","とうきゅう","どうぐ","とうし","とうむぎ","とおい","とおか","とおく","とおす","とおる","とかい","とかす","ときおり","ときどき","とくい","とくしゅう","とくてん","とくに","とくべつ","とけい","とける","とこや","とさか","としょかん","とそう","とたん","とちゅう","とっきゅう","とっくん","とつぜん","とつにゅう","とどける","ととのえる","とない","となえる","となり","とのさま","とばす","どぶがわ","とほう","とまる","とめる","ともだち","ともる","どようび","とらえる","とんかつ","どんぶり","ないかく","ないこう","ないしょ","ないす","ないせん","ないそう","なおす","ながい","なくす","なげる","なこうど","なさけ","なたでここ","なっとう","なつやすみ","ななおし","なにごと","なにもの","なにわ","なのか","なふだ","なまいき","なまえ","なまみ","なみだ","なめらか","なめる","なやむ","ならう","ならび","ならぶ","なれる","なわとび","なわばり","にあう","にいがた","にうけ","におい","にかい","にがて","にきび","にくしみ","にくまん","にげる","にさんかたんそ","にしき","にせもの","にちじょう","にちようび","にっか","にっき","にっけい","にっこう","にっさん","にっしょく","にっすう","にっせき","にってい","になう","にほん","にまめ","にもつ","にやり","にゅういん","にりんしゃ","にわとり","にんい","にんか","にんき","にんげん","にんしき","にんずう","にんそう","にんたい","にんち","にんてい","にんにく","にんぷ","にんまり","にんむ","にんめい","にんよう","ぬいくぎ","ぬかす","ぬぐいとる","ぬぐう","ぬくもり","ぬすむ","ぬまえび","ぬめり","ぬらす","ぬんちゃく","ねあげ","ねいき","ねいる","ねいろ","ねぐせ","ねくたい","ねくら","ねこぜ","ねこむ","ねさげ","ねすごす","ねそべる","ねだん","ねつい","ねっしん","ねつぞう","ねったいぎょ","ねぶそく","ねふだ","ねぼう","ねほりはほり","ねまき","ねまわし","ねみみ","ねむい","ねむたい","ねもと","ねらう","ねわざ","ねんいり","ねんおし","ねんかん","ねんきん","ねんぐ","ねんざ","ねんし","ねんちゃく","ねんど","ねんぴ","ねんぶつ","ねんまつ","ねんりょう","ねんれい","のいず","のおづま","のがす","のきなみ","のこぎり","のこす","のこる","のせる","のぞく","のぞむ","のたまう","のちほど","のっく","のばす","のはら","のべる","のぼる","のみもの","のやま","のらいぬ","のらねこ","のりもの","のりゆき","のれん","のんき","ばあい","はあく","ばあさん","ばいか","ばいく","はいけん","はいご","はいしん","はいすい","はいせん","はいそう","はいち","ばいばい","はいれつ","はえる","はおる","はかい","ばかり","はかる","はくしゅ","はけん","はこぶ","はさみ","はさん","はしご","ばしょ","はしる","はせる","ぱそこん","はそん","はたん","はちみつ","はつおん","はっかく","はづき","はっきり","はっくつ","はっけん","はっこう","はっさん","はっしん","はったつ","はっちゅう","はってん","はっぴょう","はっぽう","はなす","はなび","はにかむ","はぶらし","はみがき","はむかう","はめつ","はやい","はやし","はらう","はろうぃん","はわい","はんい","はんえい","はんおん","はんかく","はんきょう","ばんぐみ","はんこ","はんしゃ","はんすう","はんだん","ぱんち","ぱんつ","はんてい","はんとし","はんのう","はんぱ","はんぶん","はんぺん","はんぼうき","はんめい","はんらん","はんろん","ひいき","ひうん","ひえる","ひかく","ひかり","ひかる","ひかん","ひくい","ひけつ","ひこうき","ひこく","ひさい","ひさしぶり","ひさん","びじゅつかん","ひしょ","ひそか","ひそむ","ひたむき","ひだり","ひたる","ひつぎ","ひっこし","ひっし","ひつじゅひん","ひっす","ひつぜん","ぴったり","ぴっちり","ひつよう","ひてい","ひとごみ","ひなまつり","ひなん","ひねる","ひはん","ひびく","ひひょう","ひほう","ひまわり","ひまん","ひみつ","ひめい","ひめじし","ひやけ","ひやす","ひよう","びょうき","ひらがな","ひらく","ひりつ","ひりょう","ひるま","ひるやすみ","ひれい","ひろい","ひろう","ひろき","ひろゆき","ひんかく","ひんけつ","ひんこん","ひんしゅ","ひんそう","ぴんち","ひんぱん","びんぼう","ふあん","ふいうち","ふうけい","ふうせん","ぷうたろう","ふうとう","ふうふ","ふえる","ふおん","ふかい","ふきん","ふくざつ","ふくぶくろ","ふこう","ふさい","ふしぎ","ふじみ","ふすま","ふせい","ふせぐ","ふそく","ぶたにく","ふたん","ふちょう","ふつう","ふつか","ふっかつ","ふっき","ふっこく","ぶどう","ふとる","ふとん","ふのう","ふはい","ふひょう","ふへん","ふまん","ふみん","ふめつ","ふめん","ふよう","ふりこ","ふりる","ふるい","ふんいき","ぶんがく","ぶんぐ","ふんしつ","ぶんせき","ふんそう","ぶんぽう","へいあん","へいおん","へいがい","へいき","へいげん","へいこう","へいさ","へいしゃ","へいせつ","へいそ","へいたく","へいてん","へいねつ","へいわ","へきが","へこむ","べにいろ","べにしょうが","へらす","へんかん","べんきょう","べんごし","へんさい","へんたい","べんり","ほあん","ほいく","ぼうぎょ","ほうこく","ほうそう","ほうほう","ほうもん","ほうりつ","ほえる","ほおん","ほかん","ほきょう","ぼきん","ほくろ","ほけつ","ほけん","ほこう","ほこる","ほしい","ほしつ","ほしゅ","ほしょう","ほせい","ほそい","ほそく","ほたて","ほたる","ぽちぶくろ","ほっきょく","ほっさ","ほったん","ほとんど","ほめる","ほんい","ほんき","ほんけ","ほんしつ","ほんやく","まいにち","まかい","まかせる","まがる","まける","まこと","まさつ","まじめ","ますく","まぜる","まつり","まとめ","まなぶ","まぬけ","まねく","まほう","まもる","まゆげ","まよう","まろやか","まわす","まわり","まわる","まんが","まんきつ","まんぞく","まんなか","みいら","みうち","みえる","みがく","みかた","みかん","みけん","みこん","みじかい","みすい","みすえる","みせる","みっか","みつかる","みつける","みてい","みとめる","みなと","みなみかさい","みねらる","みのう","みのがす","みほん","みもと","みやげ","みらい","みりょく","みわく","みんか","みんぞく","むいか","むえき","むえん","むかい","むかう","むかえ","むかし","むぎちゃ","むける","むげん","むさぼる","むしあつい","むしば","むじゅん","むしろ","むすう","むすこ","むすぶ","むすめ","むせる","むせん","むちゅう","むなしい","むのう","むやみ","むよう","むらさき","むりょう","むろん","めいあん","めいうん","めいえん","めいかく","めいきょく","めいさい","めいし","めいそう","めいぶつ","めいれい","めいわく","めぐまれる","めざす","めした","めずらしい","めだつ","めまい","めやす","めんきょ","めんせき","めんどう","もうしあげる","もうどうけん","もえる","もくし","もくてき","もくようび","もちろん","もどる","もらう","もんく","もんだい","やおや","やける","やさい","やさしい","やすい","やすたろう","やすみ","やせる","やそう","やたい","やちん","やっと","やっぱり","やぶる","やめる","ややこしい","やよい","やわらかい","ゆうき","ゆうびんきょく","ゆうべ","ゆうめい","ゆけつ","ゆしゅつ","ゆせん","ゆそう","ゆたか","ゆちゃく","ゆでる","ゆにゅう","ゆびわ","ゆらい","ゆれる","ようい","ようか","ようきゅう","ようじ","ようす","ようちえん","よかぜ","よかん","よきん","よくせい","よくぼう","よけい","よごれる","よさん","よしゅう","よそう","よそく","よっか","よてい","よどがわく","よねつ","よやく","よゆう","よろこぶ","よろしい","らいう","らくがき","らくご","らくさつ","らくだ","らしんばん","らせん","らぞく","らたい","らっか","られつ","りえき","りかい","りきさく","りきせつ","りくぐん","りくつ","りけん","りこう","りせい","りそう","りそく","りてん","りねん","りゆう","りゅうがく","りよう","りょうり","りょかん","りょくちゃ","りょこう","りりく","りれき","りろん","りんご","るいけい","るいさい","るいじ","るいせき","るすばん","るりがわら","れいかん","れいぎ","れいせい","れいぞうこ","れいとう","れいぼう","れきし","れきだい","れんあい","れんけい","れんこん","れんさい","れんしゅう","れんぞく","れんらく","ろうか","ろうご","ろうじん","ろうそく","ろくが","ろこつ","ろじうら","ろしゅつ","ろせん","ろてん","ろめん","ろれつ","ろんぎ","ろんぱ","ろんぶん","ろんり","わかす","わかめ","わかやま","わかれる","わしつ","わじまし","わすれもの","わらう","われる"]')},function(e){e.exports=JSON.parse('["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"]')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(558);t.fromSeed=r.fromSeed,t.fromBase58=r.fromBase58,t.fromPublicKey=r.fromPublicKey,t.fromPrivateKey=r.fromPrivateKey},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});const r=n(559),i=n(298),o=n(562),a=n(564),s=n(566),c=a.BufferN(32),l=a.compile({wif:a.UInt8,bip32:{public:a.UInt32,private:a.UInt32}}),u={messagePrefix:"\18Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},f=Math.pow(2,31)-1;function d(e){return a.String(e)&&null!==e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function p(e){return a.UInt32(e)&&e<=f}class h{constructor(e,t,n,r,i=0,o=0,s=0){this.__D=e,this.__Q=t,this.chainCode=n,this.network=r,this.__DEPTH=i,this.__INDEX=o,this.__PARENT_FINGERPRINT=s,a(l,r),this.lowR=!1}get depth(){return this.__DEPTH}get index(){return this.__INDEX}get parentFingerprint(){return this.__PARENT_FINGERPRINT}get publicKey(){return void 0===this.__Q&&(this.__Q=o.pointFromScalar(this.__D,!0)),this.__Q}get privateKey(){return this.__D}get identifier(){return r.hash160(this.publicKey)}get fingerprint(){return this.identifier.slice(0,4)}get compressed(){return!0}isNeutered(){return void 0===this.__D}neutered(){return y(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}toBase58(){const t=this.network,n=this.isNeutered()?t.bip32.public:t.bip32.private,r=e.allocUnsafe(78);return r.writeUInt32BE(n,0),r.writeUInt8(this.depth,4),r.writeUInt32BE(this.parentFingerprint,5),r.writeUInt32BE(this.index,9),this.chainCode.copy(r,13),this.isNeutered()?this.publicKey.copy(r,45):(r.writeUInt8(0,45),this.privateKey.copy(r,46)),i.encode(r)}toWIF(){if(!this.privateKey)throw new TypeError("Missing private key");return s.encode(this.network.wif,this.privateKey,!0)}derive(t){a(a.UInt32,t);const n=t>=2147483648,i=e.allocUnsafe(37);if(n){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");i[0]=0,this.privateKey.copy(i,1),i.writeUInt32BE(t,33)}else this.publicKey.copy(i,0),i.writeUInt32BE(t,33);const s=r.hmacSHA512(this.chainCode,i),c=s.slice(0,32),l=s.slice(32);if(!o.isPrivate(c))return this.derive(t+1);let u;if(this.isNeutered()){const e=o.pointAddScalar(this.publicKey,c,!0);if(null===e)return this.derive(t+1);u=y(e,l,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}else{const e=o.privateAdd(this.privateKey,c);if(null==e)return this.derive(t+1);u=b(e,l,this.network,this.depth+1,t,this.fingerprint.readUInt32BE(0))}return u}deriveHardened(e){return a(p,e),this.derive(e+2147483648)}derivePath(e){a(d,e);let t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce((e,t)=>{let n;return"'"===t.slice(-1)?(n=parseInt(t.slice(0,-1),10),e.deriveHardened(n)):(n=parseInt(t,10),e.derive(n))},this)}sign(t,n){if(!this.privateKey)throw new Error("Missing private key");if(void 0===n&&(n=this.lowR),!1===n)return o.sign(t,this.privateKey);{let n=o.sign(t,this.privateKey);const r=e.alloc(32,0);let i=0;for(;n[0]>127;)i++,r.writeUIntLE(i,0,6),n=o.signWithEntropy(t,this.privateKey,r);return n}}verify(e,t){return o.verify(e,this.publicKey,t)}}function m(e,t,n){return b(e,t,n)}function b(e,t,n,r,i,s){if(a({privateKey:c,chainCode:c},{privateKey:e,chainCode:t}),n=n||u,!o.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return new h(e,void 0,t,n,r,i,s)}function y(e,t,n,r,i,s){if(a({publicKey:a.BufferN(33),chainCode:c},{publicKey:e,chainCode:t}),n=n||u,!o.isPoint(e))throw new TypeError("Point is not on the curve");return new h(void 0,e,t,n,r,i,s)}t.fromBase58=function(e,t){const n=i.decode(e);if(78!==n.length)throw new TypeError("Invalid buffer length");t=t||u;const r=n.readUInt32BE(0);if(r!==t.bip32.private&&r!==t.bip32.public)throw new TypeError("Invalid network version");const o=n[4],a=n.readUInt32BE(5);if(0===o&&0!==a)throw new TypeError("Invalid parent fingerprint");const s=n.readUInt32BE(9);if(0===o&&0!==s)throw new TypeError("Invalid index");const c=n.slice(13,45);let l;if(r===t.bip32.private){if(0!==n.readUInt8(45))throw new TypeError("Invalid private key");l=b(n.slice(46,78),c,t,o,s,a)}else{l=y(n.slice(45,78),c,t,o,s,a)}return l},t.fromPrivateKey=m,t.fromPublicKey=function(e,t,n){return y(e,t,n)},t.fromSeed=function(t,n){if(a(a.Buffer,t),t.length<16)throw new TypeError("Seed should be at least 128 bits");if(t.length>64)throw new TypeError("Seed should be at most 512 bits");n=n||u;const i=r.hmacSHA512(e.from("Bitcoin seed","utf8"),t);return m(i.slice(0,32),i.slice(32),n)}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(54),i=n(120);t.hash160=function(e){const t=r("sha256").update(e).digest();try{return r("rmd160").update(t).digest()}catch(e){return r("ripemd160").update(t).digest()}},t.hmacSHA512=function(e,t){return i("sha512",e).update(t).digest()}},function(e,t,n){"use strict";var r=n(561),i=n(7).Buffer;e.exports=function(e){function t(t){var n=t.slice(0,-4),r=t.slice(-4),i=e(n);if(!(r[0]^i[0]|r[1]^i[1]|r[2]^i[2]|r[3]^i[3]))return n}return{encode:function(t){var n=e(t);return r.encode(i.concat([t,n],t.length+4))},decode:function(e){var n=t(r.decode(e));if(!n)throw new Error("Invalid checksum");return n},decodeUnsafe:function(e){var n=r.decodeUnsafe(e);if(n)return t(n)}}}},function(e,t,n){var r=n(396);e.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},function(e,t,n){(function(t){const r=n(6),i=new(0,n(45).ec)("secp256k1"),o=n(563),a=t.alloc(32,0),s=t.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),c=t.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex"),l=i.curve.n,u=l.shrn(1),f=i.curve.g;function d(e){return t.isBuffer(e)&&32===e.length}function p(e){return!!d(e)&&e.compare(s)<0}function h(e){if(!t.isBuffer(e))return!1;if(e.length<33)return!1;const n=e[0],r=e.slice(1,33);if(0===r.compare(a))return!1;if(r.compare(c)>=0)return!1;if((2===n||3===n)&&33===e.length){try{w(e)}catch(e){return!1}return!0}const i=e.slice(33);return 0!==i.compare(a)&&(!(i.compare(c)>=0)&&(4===n&&65===e.length))}function m(e){return 4!==e[0]}function b(e){return!!d(e)&&(e.compare(a)>0&&e.compare(s)<0)}function y(e,t){return void 0===e&&void 0!==t?m(t):void 0===e||e}function g(e){return new r(e)}function v(e){return e.toArrayLike(t,"be",32)}function w(e){return i.curve.decodePoint(e)}function _(e,n){return t.from(e._encode(n))}function k(e,n,r){if(!d(e))throw new TypeError("Expected Hash");if(!b(n))throw new TypeError("Expected Private");if(void 0!==r&&!d(r))throw new TypeError("Expected Extra Data (32 bytes)");const i=g(n),a=g(e);let s,c;o(e,n,(function(e){const t=g(e),n=f.mul(t);return!n.isInfinity()&&(s=n.x.umod(l),0!==s.isZero()&&(c=t.invm(l).mul(a.add(i.mul(s))).umod(l),0!==c.isZero()))}),b,r),c.cmp(u)>0&&(c=l.sub(c));const p=t.allocUnsafe(64);return v(s).copy(p,0),v(c).copy(p,32),p}e.exports={isPoint:h,isPointCompressed:function(e){return!!h(e)&&m(e)},isPrivate:b,pointAdd:function(e,t,n){if(!h(e))throw new TypeError("Expected Point");if(!h(t))throw new TypeError("Expected Point");const r=w(e),i=w(t),o=r.add(i);return o.isInfinity()?null:_(o,y(n,e))},pointAddScalar:function(e,t,n){if(!h(e))throw new TypeError("Expected Point");if(!p(t))throw new TypeError("Expected Tweak");const r=y(n,e),i=w(e);if(0===t.compare(a))return _(i,r);const o=g(t),s=f.mul(o),c=i.add(s);return c.isInfinity()?null:_(c,r)},pointCompress:function(e,t){if(!h(e))throw new TypeError("Expected Point");const n=w(e);if(n.isInfinity())throw new TypeError("Expected Point");return _(n,y(t,e))},pointFromScalar:function(e,t){if(!b(e))throw new TypeError("Expected Private");const n=g(e),r=f.mul(n);return r.isInfinity()?null:_(r,y(t))},pointMultiply:function(e,t,n){if(!h(e))throw new TypeError("Expected Point");if(!p(t))throw new TypeError("Expected Tweak");const r=y(n,e),i=w(e),o=g(t),a=i.mul(o);return a.isInfinity()?null:_(a,r)},privateAdd:function(e,t){if(!b(e))throw new TypeError("Expected Private");if(!p(t))throw new TypeError("Expected Tweak");const n=g(e),r=g(t),i=v(n.add(r).umod(l));return b(i)?i:null},privateSub:function(e,t){if(!b(e))throw new TypeError("Expected Private");if(!p(t))throw new TypeError("Expected Tweak");const n=g(e),r=g(t),i=v(n.sub(r).umod(l));return b(i)?i:null},sign:function(e,t){return k(e,t)},signWithEntropy:function(e,t,n){return k(e,t,n)},verify:function(e,n,r,i){if(!d(e))throw new TypeError("Expected Hash");if(!h(n))throw new TypeError("Expected Point");if(!function(e){const n=e.slice(0,32),r=e.slice(32,64);return t.isBuffer(e)&&64===e.length&&n.compare(s)<0&&r.compare(s)<0}(r))throw new TypeError("Expected Signature");const o=w(n),a=g(r.slice(0,32)),c=g(r.slice(32,64));if(i&&c.cmp(u)>0)return!1;if(a.gtn(0)<=0)return!1;if(c.gtn(0)<=0)return!1;const p=g(e),m=c.invm(l),b=p.mul(m).umod(l),y=a.mul(m).umod(l),v=f.mulAdd(b,o,y);return!v.isInfinity()&&v.x.umod(l).eq(a)}}}).call(this,n(2).Buffer)},function(e,t,n){(function(t){const r=n(120),i=t.alloc(1,1),o=t.alloc(1,0);e.exports=function(e,n,a,s,c){let l=t.alloc(32,0),u=t.alloc(32,1);l=r("sha256",l).update(u).update(o).update(n).update(e).update(c||"").digest(),u=r("sha256",l).update(u).digest(),l=r("sha256",l).update(u).update(i).update(n).update(e).update(c||"").digest(),u=r("sha256",l).update(u).digest(),u=r("sha256",l).update(u).digest();let f=u;for(;!s(f)||!a(f);)l=r("sha256",l).update(u).update(o).digest(),u=r("sha256",l).update(u).digest(),u=r("sha256",l).update(u).digest(),f=u;return f}}).call(this,n(2).Buffer)},function(e,t,n){var r=n(299),i=n(170),o=r.tfJSON,a=r.TfTypeError,s=r.TfPropertyTypeError,c=r.tfSubError,l=r.getValueTypeName,u={arrayOf:function(e,t){function n(n,r){return!!i.Array(n)&&(!i.Nil(n)&&(!(void 0!==t.minLength&&n.length<t.minLength)&&(!(void 0!==t.maxLength&&n.length>t.maxLength)&&((void 0===t.length||n.length===t.length)&&n.every((function(t,n){try{return d(e,t,r)}catch(e){throw c(e,n)}}))))))}return e=f(e),t=t||{},n.toJSON=function(){var n="["+o(e)+"]";return void 0!==t.length?n+="{"+t.length+"}":void 0===t.minLength&&void 0===t.maxLength||(n+="{"+(void 0===t.minLength?0:t.minLength)+","+(void 0===t.maxLength?1/0:t.maxLength)+"}"),n},n},maybe:function e(t){function n(n,r){return i.Nil(n)||t(n,r,e)}return t=f(t),n.toJSON=function(){return"?"+o(t)},n},map:function(e,t){function n(n,r){if(!i.Object(n))return!1;if(i.Nil(n))return!1;for(var o in n){try{t&&d(t,o,r)}catch(e){throw c(e,o,"key")}try{var a=n[o];d(e,a,r)}catch(e){throw c(e,o)}}return!0}return e=f(e),t&&(t=f(t)),n.toJSON=t?function(){return"{"+o(t)+": "+o(e)+"}"}:function(){return"{"+o(e)+"}"},n},object:function(e){var t={};for(var n in e)t[n]=f(e[n]);function r(e,n){if(!i.Object(e))return!1;if(i.Nil(e))return!1;var r;try{for(r in t){d(t[r],e[r],n)}}catch(e){throw c(e,r)}if(n)for(r in e)if(!t[r])throw new s(void 0,r);return!0}return r.toJSON=function(){return o(t)},r},anyOf:function(){var e=[].slice.call(arguments).map(f);function t(t,n){return e.some((function(e){try{return d(e,t,n)}catch(e){return!1}}))}return t.toJSON=function(){return e.map(o).join("|")},t},allOf:function(){var e=[].slice.call(arguments).map(f);function t(t,n){return e.every((function(e){try{return d(e,t,n)}catch(e){return!1}}))}return t.toJSON=function(){return e.map(o).join(" & ")},t},quacksLike:function(e){function t(t){return e===l(t)}return t.toJSON=function(){return e},t},tuple:function(){var e=[].slice.call(arguments).map(f);function t(t,n){return!i.Nil(t)&&(!i.Nil(t.length)&&((!n||t.length===e.length)&&e.every((function(e,r){try{return d(e,t[r],n)}catch(e){throw c(e,r)}}))))}return t.toJSON=function(){return"("+e.map(o).join(", ")+")"},t},value:function(e){function t(t){return t===e}return t.toJSON=function(){return e},t}};function f(e){if(i.String(e))return"?"===e[0]?u.maybe(e.slice(1)):i[e]||u.quacksLike(e);if(e&&i.Object(e)){if(i.Array(e)){if(1!==e.length)throw new TypeError("Expected compile() parameter of type Array of length 1");return u.arrayOf(e[0])}return u.object(e)}return i.Function(e)?e:u.value(e)}function d(e,t,n,r){if(i.Function(e)){if(e(t,n))return!0;throw new a(r||e,t)}return d(f(e),t,n)}for(var p in u.oneOf=u.anyOf,i)d[p]=i[p];for(p in u)d[p]=u[p];var h=n(565);for(p in h)d[p]=h[p];d.compile=f,d.TfTypeError=a,d.TfPropertyTypeError=s,e.exports=d},function(e,t,n){(function(t){var r=n(170),i=n(299);function o(e){return t.isBuffer(e)}function a(e){return"string"==typeof e&&/^([0-9a-f]{2})+$/i.test(e)}function s(e,t){var n=e.toJSON();function r(r){if(!e(r))return!1;if(r.length===t)return!0;throw i.tfCustomError(n+"(Length: "+t+")",n+"(Length: "+r.length+")")}return r.toJSON=function(){return n},r}var c=s.bind(null,r.Array),l=s.bind(null,o),u=s.bind(null,a),f=s.bind(null,r.String);var d=Math.pow(2,53)-1;var p={ArrayN:c,Buffer:o,BufferN:l,Finite:function(e){return"number"==typeof e&&isFinite(e)},Hex:a,HexN:u,Int8:function(e){return e<<24>>24===e},Int16:function(e){return e<<16>>16===e},Int32:function(e){return(0|e)===e},Int53:function(e){return"number"==typeof e&&e>=-d&&e<=d&&Math.floor(e)===e},Range:function(e,t,n){function i(r,i){return n(r,i)&&r>e&&r<t}return n=n||r.Number,i.toJSON=function(){return`${n.toJSON()} between [${e}, ${t}]`},i},StringN:f,UInt8:function(e){return(255&e)===e},UInt16:function(e){return(65535&e)===e},UInt32:function(e){return e>>>0===e},UInt53:function(e){return"number"==typeof e&&e>=0&&e<=d&&Math.floor(e)===e}};for(var h in p)p[h].toJSON=function(e){return e}.bind(null,h);e.exports=p}).call(this,n(2).Buffer)},function(e,t,n){(function(t){var r=n(298);function i(e,t){if(void 0!==t&&e[0]!==t)throw new Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw new Error("Invalid WIF length");if(1!==e[33])throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function o(e,n,r){var i=new t(r?34:33);return i.writeUInt8(e,0),n.copy(i,1),r&&(i[33]=1),i}e.exports={decode:function(e,t){return i(r.decode(e),t)},decodeRaw:i,encode:function(e,t,n){return"number"==typeof e?r.encode(o(e,t,n)):r.encode(o(e.version,e.privateKey,e.compressed))},encodeRaw:o}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PubKeySecp256k1=t.PrivKeySecp256k1=void 0;const i=r(n(45)),o=r(n(568)),a=n(2);t.PrivKeySecp256k1=class{constructor(e){this.privKey=e}toBytes(){return new Uint8Array(this.privKey)}getPubKey(){const e=new i.default.ec("secp256k1").keyFromPrivate(this.privKey);return new s(new Uint8Array(e.getPublic().encodeCompressed("array")))}sign(e){const t=new i.default.ec("secp256k1").keyFromPrivate(this.privKey),n=o.default.SHA256(o.default.lib.WordArray.create(e)).toString(),r=t.sign(a.Buffer.from(n,"hex"),{canonical:!0});return new Uint8Array(r.r.toArray("be",32).concat(r.s.toArray("be",32)))}};class s{constructor(e){this.pubKey=e}toBytes(){return new Uint8Array(this.pubKey)}getAddress(){let e=o.default.SHA256(o.default.lib.WordArray.create(this.pubKey)).toString();return e=o.default.RIPEMD160(o.default.enc.Hex.parse(e)).toString(),new Uint8Array(a.Buffer.from(e,"hex"))}}t.PubKeySecp256k1=s},function(e,t,n){var r;e.exports=(r=n(9),n(125),n(569),n(570),n(80),n(81),n(171),n(300),n(571),n(301),n(572),n(573),n(574),n(172),n(575),n(67),n(22),n(576),n(577),n(578),n(579),n(580),n(581),n(582),n(583),n(584),n(585),n(586),n(587),n(588),n(589),n(590),n(591),r)},function(e,t,n){var r;e.exports=(r=n(9),function(){if("function"==typeof ArrayBuffer){var e=r.lib.WordArray,t=e.init;(e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)}).prototype=e}}(),r.lib.WordArray)},function(e,t,n){var r;e.exports=(r=n(9),function(){var e=r,t=e.lib.WordArray,n=e.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i<n;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var a=i(t[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var n=e.length,r=[],o=0;o<n;o++)r[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return t.create(r,2*n)}}}(),r.enc.Utf16)},function(e,t,n){var r,i,o,a,s,c;e.exports=(c=n(9),n(300),i=(r=c).lib.WordArray,o=r.algo,a=o.SHA256,s=o.SHA224=a.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=4,e}}),r.SHA224=a._createHelper(s),r.HmacSHA224=a._createHmacHelper(s),c.SHA224)},function(e,t,n){var r,i,o,a,s,c,l,u;e.exports=(u=n(9),n(125),n(301),i=(r=u).x64,o=i.Word,a=i.WordArray,s=r.algo,c=s.SHA512,l=s.SHA384=c.extend({_doReset:function(){this._hash=new a.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),r.SHA384=c._createHelper(l),r.HmacSHA384=c._createHmacHelper(l),u.SHA384)},function(e,t,n){var r;e.exports=(r=n(9),n(125),function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.x64.Word,s=t.algo,c=[],l=[],u=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)l[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,d=0;d<7;d++){if(1&i){var p=(1<<d)-1;p<32?f^=1<<p:s^=1<<p-32}128&i?i=i<<1^113:i<<=1}u[o]=a.create(s,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=a.create()}();var d=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(A=n[i]).high^=a,A.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var p=0,h=0,m=0;m<5;m++)p^=(A=n[d+5*m]).high,h^=A.low;var b=f[d];b.high=p,b.low=h}for(d=0;d<5;d++){var y=f[(d+4)%5],g=f[(d+1)%5],v=g.high,w=g.low;for(p=y.high^(v<<1|w>>>31),h=y.low^(w<<1|v>>>31),m=0;m<5;m++)(A=n[d+5*m]).high^=p,A.low^=h}for(var _=1;_<25;_++){var k=(A=n[_]).high,x=A.low,S=c[_];S<32?(p=k<<S|x>>>32-S,h=x<<S|k>>>32-S):(p=x<<S-32|k>>>64-S,h=k<<S-32|x>>>64-S);var O=f[l[_]];O.high=p,O.low=h}var E=f[0],T=n[0];for(E.high=T.high,E.low=T.low,d=0;d<5;d++)for(m=0;m<5;m++){var A=n[_=d+5*m],M=f[_],I=f[(d+1)%5+5*m],P=f[(d+2)%5+5*m];A.high=M.high^~I.high&P.high,A.low=M.low^~I.low&P.low}A=n[0];var C=u[s];A.high^=C.high,A.low^=C.low}},_doFinalize:function(){var t=this._data,n=t.words,r=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(e.ceil((r+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,c=s/8,l=[],u=0;u<c;u++){var f=a[u],d=f.high,p=f.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),l.push(p),l.push(d)}return new i.init(l,s)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=o._createHelper(d),t.HmacSHA3=o._createHmacHelper(d)}(Math),r.SHA3)},function(e,t,n){var r;e.exports=(r=n(9),
61 /** @preserve
62         (c) 2012 by Cédric Mesnil. All rights reserved.
63
64         Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
65
66             - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
67             - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
68
69         THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
70         */
71 function(e){var t=r,n=t.lib,i=n.WordArray,o=n.Hasher,a=t.algo,s=i.create([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]),c=i.create([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]),l=i.create([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]),u=i.create([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]),f=i.create([0,1518500249,1859775393,2400959708,2840853838]),d=i.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,p,w,_,k,x,S,O,E,T,A=this._hash.words,M=f.words,I=d.words,P=s.words,C=c.words,j=l.words,D=u.words;for(k=o=A[0],x=a=A[1],S=p=A[2],O=w=A[3],E=_=A[4],n=0;n<80;n+=1)T=o+e[t+P[n]]|0,T+=n<16?h(a,p,w)+M[0]:n<32?m(a,p,w)+M[1]:n<48?b(a,p,w)+M[2]:n<64?y(a,p,w)+M[3]:g(a,p,w)+M[4],T=(T=v(T|=0,j[n]))+_|0,o=_,_=w,w=v(p,10),p=a,a=T,T=k+e[t+C[n]]|0,T+=n<16?g(x,S,O)+I[0]:n<32?y(x,S,O)+I[1]:n<48?b(x,S,O)+I[2]:n<64?m(x,S,O)+I[3]:h(x,S,O)+I[4],T=(T=v(T|=0,D[n]))+E|0,k=E,E=O,O=v(S,10),S=x,x=T;T=A[1]+p+O|0,A[1]=A[2]+w+E|0,A[2]=A[3]+_+k|0,A[3]=A[4]+o+x|0,A[4]=A[0]+a+S|0,A[0]=T},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function b(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function g(e,t,n){return e^(t|~n)}function v(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(p),t.HmacRIPEMD160=o._createHmacHelper(p)}(Math),r.RIPEMD160)},function(e,t,n){var r,i,o,a,s,c,l,u,f;e.exports=(f=n(9),n(171),n(172),i=(r=f).lib,o=i.Base,a=i.WordArray,s=r.algo,c=s.SHA1,l=s.HMAC,u=s.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=l.create(n.hasher,e),i=a.create(),o=a.create([1]),s=i.words,c=o.words,u=n.keySize,f=n.iterations;s.length<u;){var d=r.update(t).finalize(o);r.reset();for(var p=d.words,h=p.length,m=d,b=1;b<f;b++){m=r.finalize(m),r.reset();for(var y=m.words,g=0;g<h;g++)p[g]^=y[g]}i.concat(d),c[0]++}return i.sigBytes=4*u,i}}),r.PBKDF2=function(e,t,n){return u.create(n).compute(e,t)},f.PBKDF2)},function(e,t,n){var r;e.exports=(r=n(9),n(22),r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();function t(e,t,n,r){var i,o=this._iv;o?(i=o.slice(0),this._iv=void 0):i=this._prevBlock,r.encryptBlock(i,0);for(var a=0;a<n;a++)e[t+a]^=i[a]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize;t.call(this,e,n,i,r),this._prevBlock=e.slice(n,n+i)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize,o=e.slice(n,n+i);t.call(this,e,n,i,r),this._prevBlock=o}}),e}(),r.mode.CFB)},function(e,t,n){var r,i,o;e.exports=(o=n(9),n(22),o.mode.CTR=(r=o.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[r-1]=o[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}}),r.Decryptor=i,r),o.mode.CTR)},function(e,t,n){var r;e.exports=(r=n(9),n(22),
72 /** @preserve
73          * Counter block mode compatible with  Dr Brian Gladman fileenc.c
74          * derived from CryptoJS.mode.CTR
75          * Jan Hruby jhruby.web@gmail.com
76          */
77 r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}var n=e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(e){0===(e[0]=t(e[0]))&&(e[1]=t(e[1]))}(a);var s=a.slice(0);r.encryptBlock(s,0);for(var c=0;c<i;c++)e[n+c]^=s[c]}});return e.Decryptor=n,e}(),r.mode.CTRGladman)},function(e,t,n){var r,i,o;e.exports=(o=n(9),n(22),o.mode.OFB=(r=o.lib.BlockCipherMode.extend(),i=r.Encryptor=r.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}}),r.Decryptor=i,r),o.mode.OFB)},function(e,t,n){var r,i;e.exports=(i=n(9),n(22),i.mode.ECB=((r=i.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),r.Decryptor=r.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),r),i.mode.ECB)},function(e,t,n){var r;e.exports=(r=n(9),n(22),r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,i=r-n%r,o=n+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Ansix923)},function(e,t,n){var r;e.exports=(r=n(9),n(22),r.pad.Iso10126={pad:function(e,t){var n=4*t,i=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},r.pad.Iso10126)},function(e,t,n){var r;e.exports=(r=n(9),n(22),r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971)},function(e,t,n){var r;e.exports=(r=n(9),n(22),r.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},r.pad.ZeroPadding)},function(e,t,n){var r;e.exports=(r=n(9),n(22),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},function(e,t,n){var r,i,o,a;e.exports=(a=n(9),n(22),i=(r=a).lib.CipherParams,o=r.enc.Hex,r.format.Hex={stringify:function(e){return e.ciphertext.toString(o)},parse:function(e){var t=o.parse(e);return i.create({ciphertext:t})}},a.format.Hex)},function(e,t,n){var r;e.exports=(r=n(9),n(80),n(81),n(67),n(22),function(){var e=r,t=e.lib.BlockCipher,n=e.algo,i=[],o=[],a=[],s=[],c=[],l=[],u=[],f=[],d=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,i[n]=h,o[h]=n;var m=e[n],b=e[m],y=e[b],g=257*e[h]^16843008*h;a[n]=g<<24|g>>>8,s[n]=g<<16|g>>>16,c[n]=g<<8|g>>>24,l[n]=g,g=16843009*y^65537*b^257*m^16843008*n,u[h]=g<<24|g>>>8,f[h]=g<<16|g>>>16,d[h]=g<<8|g>>>24,p[h]=g,n?(n=m^e[e[e[y^m]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<r;a++)a<n?o[a]=t[a]:(l=o[a-1],a%n?n>6&&a%n==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=h[a/n|0]<<24),o[a]=o[a-n]^l);for(var s=this._invKeySchedule=[],c=0;c<r;c++){if(a=r-c,c%4)var l=o[a];else l=o[a-4];s[c]=c<4||a<=4?l:u[i[l>>>24]]^f[i[l>>>16&255]]^d[i[l>>>8&255]]^p[i[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,c,l,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,u,f,d,p,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var c=this._nRounds,l=e[t]^n[0],u=e[t+1]^n[1],f=e[t+2]^n[2],d=e[t+3]^n[3],p=4,h=1;h<c;h++){var m=r[l>>>24]^i[u>>>16&255]^o[f>>>8&255]^a[255&d]^n[p++],b=r[u>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&l]^n[p++],y=r[f>>>24]^i[d>>>16&255]^o[l>>>8&255]^a[255&u]^n[p++],g=r[d>>>24]^i[l>>>16&255]^o[u>>>8&255]^a[255&f]^n[p++];l=m,u=b,f=y,d=g}m=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^n[p++],b=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^n[p++],y=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^n[p++],g=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^n[p++],e[t]=m,e[t+1]=b,e[t+2]=y,e[t+3]=g},keySize:8});e.AES=t._createHelper(m)}(),r.AES)},function(e,t,n){var r;e.exports=(r=n(9),n(80),n(81),n(67),n(22),function(){var e=r,t=e.lib,n=t.WordArray,i=t.BlockCipher,o=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var l=i[o]=[],u=c[o];for(n=0;n<24;n++)l[n/6|0]|=t[(s[n]-1+u)%28]<<31-n%6,l[4+(n/6|0)]|=t[28+(s[n+24]-1+u)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var f=this._invSubKeys=[];for(n=0;n<16;n++)f[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,a=this._rBlock,s=0,c=0;c<8;c++)s|=l[c][((a^i[c])&u[c])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=i._createHelper(f);var h=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),r=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(n.create(t)),this._des2=f.createEncryptor(n.create(r)),this._des3=f.createEncryptor(n.create(i))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=i._createHelper(h)}(),r.TripleDES)},function(e,t,n){var r;e.exports=(r=n(9),n(80),n(81),n(67),n(22),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var c=r[i];r[i]=r[o],r[o]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}e.RC4=t._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});e.RC4Drop=t._createHelper(a)}(),r.RC4)},function(e,t,n){var r;e.exports=(r=n(9),n(80),n(81),n(67),n(22),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,d=u<<16|65535&l;for(i[0]^=l,i[1]^=f,i[2]^=u,i[3]^=d,i[4]^=l,i[5]^=f,i[6]^=u,i[7]^=d,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),r.Rabbit)},function(e,t,n){var r;e.exports=(r=n(9),n(80),n(81),n(67),n(22),function(){var e=r,t=e.lib.StreamCipher,n=e.algo,i=[],o=[],a=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)c.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=l>>>16|4294901760&u,d=u<<16|65535&l;for(r[0]^=l,r[1]^=f,r[2]^=u,r[3]^=d,r[4]^=l,r[5]^=f,r[6]^=u,r[7]^=d,i=0;i<4;i++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,s=r>>>16,c=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=c^l}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),r.RabbitLegacy)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hash=void 0;const r=n(76);t.Hash=class{static sha256(e){return new Uint8Array((new r.sha256).update(e).digest())}static truncHashPortion(e,t=e.length,n=0){return e.substring(0,t)+"…"+e.substring(e.length-n,e.length)}}},function(e,t,n){"use strict";var r=n(28),i=n(302),o=n(594),a=n(308);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(n(305));c.Axios=o,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(309),c.CancelToken=n(607),c.isCancel=n(304),c.all=function(e){return Promise.all(e)},c.spread=n(608),c.isAxiosError=n(609),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(28),i=n(303),o=n(595),a=n(596),s=n(308);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(28);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(28),i=n(597),o=n(304),a=n(305);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(28);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(28);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(307);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(28);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(603),i=n(604);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(28),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(28);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(309);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayContentEquals=void 0,t.arrayContentEquals=function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertDefinedAndNotNull=t.assertDefined=t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error(t||"condition is not truthy")},t.assertDefined=function(e,t){if(void 0===e)throw new Error(null!=t?t:"value is undefined")},t.assertDefinedAndNotNull=function(e,t){if(null==e)throw new Error(null!=t?t:"value is undefined or null")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0,t.sleep=async function(e){return new Promise(t=>setTimeout(t,e))}},function(e,t,n){"use strict";(function(e){function n(e){return"object"==typeof e&&null!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isUint8Array=t.isNonNullObject=void 0,t.isNonNullObject=n,t.isUint8Array=function(t){return!!n(t)&&("[object Uint8Array]"===Object.prototype.toString.call(t)&&(void 0===e||void 0===e.isBuffer||!e.isBuffer(t)))}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Bip39=void 0;const a=n(39),s=o(n(69)),c=n(97),l=o(n(311)),u=n(312);t.Bip39=class{static encode(e){if(-1===[16,20,24,28,32].indexOf(e.length))throw new Error("invalid input length");return new u.EnglishMnemonic(s.entropyToMnemonic(a.toHex(e)))}static decode(e){return a.fromHex(s.mnemonicToEntropy(e.toString()))}static async mnemonicToSeed(e,t){const n=a.toUtf8(l.nfkd(e.toString())),r="mnemonic"+(t?l.nfkd(t):""),i=a.toUtf8(r);return this.pbkdf2(n,i,2048,64,"sha512")}static async pbkdf2(e,t,n,r,i){return new Promise((o,a)=>{c.pbkdf2(e,t,n,r,i,(e,t)=>{e?a(e):o(new Uint8Array(t))})})}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromAscii=t.toAscii=void 0,t.toAscii=function(e){return Uint8Array.from(e.split("").map(e=>{const t=e.charCodeAt(0);if(t<32||t>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+t);return t}))},t.fromAscii=function(e){return(t=Array.from(e),t.map(e=>{if(e<32||e>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+e);return String.fromCharCode(e)})).join("");var t}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.fromBase64=t.toBase64=void 0;const a=o(n(117));t.toBase64=function(e){return a.fromByteArray(e)},t.fromBase64=function(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return a.toByteArray(e)}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Bech32=void 0;const a=o(n(94));t.Bech32=class{static encode(e,t,n){return a.encode(e,a.toWords(t),n)}static decode(e,t=1/0){const n=a.decode(e,t);return{prefix:n.prefix,data:new Uint8Array(a.fromWords(n.words))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromHex=t.toHex=void 0,t.toHex=function(e){let t="";for(const n of e)t+=("0"+n.toString(16)).slice(-2);return t},t.fromHex=function(e){if(e.length%2!=0)throw new Error("hex string length must be a multiple of 2");const t=[];for(let n=0;n<e.length;n+=2){const r=e.substr(n,2);if(!r.match(/[0-9a-f]{2}/i))throw new Error("hex string contains invalid characters");t.push(parseInt(r,16))}return new Uint8Array(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRfc3339=t.fromRfc3339=void 0;const r=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function i(e,t=2){const n="00000"+e.toString();return n.substring(n.length-t)}t.fromRfc3339=function(e){const t=r.exec(e);if(!t)throw new Error("Date string is not in RFC3339 format");const n=+t[1],i=+t[2],o=+t[3],a=+t[4],s=+t[5],c=+t[6],l=t[7]?Math.floor(1e3*+t[7]):0;let u,f,d;"Z"===t[8]?(u=1,f=0,d=0):(u="-"===t[8].substring(0,1)?-1:1,f=+t[8].substring(1,3),d=+t[8].substring(4,6));const p=u*(60*f+d)*60,h=Date.UTC(n,i-1,o,a,s,c,l)-1e3*p;return new Date(h)},t.toRfc3339=function(e){return`${e.getUTCFullYear()}-${i(e.getUTCMonth()+1)}-${i(e.getUTCDate())}T${i(e.getUTCHours())}:${i(e.getUTCMinutes())}:${i(e.getUTCSeconds())}.${i(e.getUTCMilliseconds(),3)}Z`}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromUtf8=t.toUtf8=void 0,t.toUtf8=function(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):new Uint8Array(e.from(t,"utf8"))},t.fromUtf8=function(t){if("undefined"!=typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(t);if(!function(t){const n=e.from(e.from(t).toString("utf8"),"utf8");return 0===e.compare(e.from(t),n)}(t))throw new Error("Invalid UTF8 data");return e.from(t).toString("utf8")}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=t.Keccak256=void 0;const i=r(n(222));class o{constructor(e){this.blockSize=64,this.impl=i.default.keccak256.create(),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}t.Keccak256=o,t.keccak256=function(e){return new o(e).digest()}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Xchacha20poly1305Ietf=t.xchacha20NonceLength=t.Ed25519=t.Ed25519Keypair=t.Argon2id=t.isArgon2idOptions=void 0;const i=n(100),o=r(n(314));t.isArgon2idOptions=function(e){return!!i.isNonNullObject(e)&&("number"==typeof e.outputLength&&("number"==typeof e.opsLimit&&"number"==typeof e.memLimitKib))};t.Argon2id=class{static async execute(e,t,n){return await o.default.ready,o.default.crypto_pwhash(n.outputLength,e,t,n.opsLimit,1024*n.memLimitKib,o.default.crypto_pwhash_ALG_ARGON2ID13)}};class a{constructor(e,t){this.privkey=e,this.pubkey=t}static fromLibsodiumPrivkey(e){if(64!==e.length)throw new Error(`Unexpected key length ${e.length}. Must be 64.`);return new a(e.slice(0,32),e.slice(32,64))}toLibsodiumPrivkey(){return new Uint8Array([...this.privkey,...this.pubkey])}}t.Ed25519Keypair=a;t.Ed25519=class{static async makeKeypair(e){await o.default.ready;const t=o.default.crypto_sign_seed_keypair(e);return a.fromLibsodiumPrivkey(t.privateKey)}static async createSignature(e,t){return await o.default.ready,o.default.crypto_sign_detached(e,t.toLibsodiumPrivkey())}static async verifySignature(e,t,n){return await o.default.ready,o.default.crypto_sign_verify_detached(e,t,n)}},t.xchacha20NonceLength=24;t.Xchacha20poly1305Ietf=class{static async encrypt(e,t,n){await o.default.ready;return o.default.crypto_aead_xchacha20poly1305_ietf_encrypt(e,null,null,n,t)}static async decrypt(e,t,n){await o.default.ready;return o.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null,e,null,n,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Random=void 0;t.Random=class{static getBytes(e){try{const t="object"==typeof window?window:self,n=void 0!==t.crypto?t.crypto:t.msCrypto,r=new Uint8Array(e);return n.getRandomValues(r),r}catch(t){try{const t=n(72);return new Uint8Array([...t.randomBytes(e)])}catch(e){throw new Error("No secure random number generator found")}}}}},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.Ripemd160=void 0;const i=r(n(75));class o{constructor(e){this.blockSize=64,this.impl=new i.default,e&&this.update(e)}update(t){return this.impl.update(e.from(t)),this}digest(){return Uint8Array.from(this.impl.digest())}}t.Ripemd160=o,t.ripemd160=function(e){return new o(e).digest()}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1=void 0;const i=n(39),o=r(n(6)),a=r(n(45)),s=n(315),c=new a.default.ec("secp256k1"),l=new o.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex");t.Secp256k1=class{static async makeKeypair(e){if(32!==e.length)throw new Error("input data is not a valid secp256k1 private key");const t=c.keyFromPrivate(e);if(!0!==t.validate().result)throw new Error("input data is not a valid secp256k1 private key");if(new o.default(e).gte(l))throw new Error("input data is not a valid secp256k1 private key");return{privkey:i.fromHex(t.getPrivate("hex")),pubkey:Uint8Array.from(t.getPublic("array"))}}static async createSignature(e,t){if(0===e.length)throw new Error("Message hash must not be empty");if(e.length>32)throw new Error("Message hash length must not exceed 32 bytes");const n=c.keyFromPrivate(t),{r:r,s:i,recoveryParam:o}=n.sign(e,{canonical:!0});if("number"!=typeof o)throw new Error("Recovery param missing");return new s.ExtendedSecp256k1Signature(Uint8Array.from(r.toArray()),Uint8Array.from(i.toArray()),o)}static async verifySignature(e,t,n){if(0===t.length)throw new Error("Message hash must not be empty");if(t.length>32)throw new Error("Message hash length must not exceed 32 bytes");const r=c.keyFromPublic(n);try{return r.verify(t,e.toDer())}catch(e){return!1}}static recoverPubkey(e,t){const n={r:i.toHex(e.r()),s:i.toHex(e.s())},r=c.recoverPubKey(t,n,e.recovery),o=c.keyFromPublic(r);return i.fromHex(o.getPublic(!1,"hex"))}static compressPubkey(e){switch(e.length){case 33:return e;case 65:return Uint8Array.from(c.keyFromPublic(e).getPublic(!0,"array"));default:throw new Error("Invalid pubkey length")}}static trimRecoveryByte(e){switch(e.length){case 64:return e;case 65:return e.slice(0,64);default:throw new Error("Invalid signature length")}}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.stringToPath=t.pathToString=t.Slip10=t.Slip10RawIndex=t.slip10CurveFromString=t.Slip10Curve=void 0;const i=n(39),o=n(82),a=r(n(6)),s=r(n(45)),c=n(313),l=n(316);var u;!function(e){e.Secp256k1="Bitcoin seed",e.Ed25519="ed25519 seed"}(u=t.Slip10Curve||(t.Slip10Curve={})),t.slip10CurveFromString=function(e){switch(e){case u.Ed25519:return u.Ed25519;case u.Secp256k1:return u.Secp256k1;default:throw new Error(`Unknown curve string: '${e}'`)}};class f extends o.Uint32{static hardened(e){return new f(e+2**31)}static normal(e){return new f(e)}isHardened(){return this.data>=2**31}}t.Slip10RawIndex=f;const d=new s.default.ec("secp256k1");class p{static derivePath(e,t,n){let r=this.master(e,t);for(const t of n)r=this.child(e,r.privkey,r.chainCode,t);return r}static master(e,t){const n=new c.Hmac(l.Sha512,i.toAscii(e)).update(t).digest(),r=n.slice(0,32),o=n.slice(32,64);return e!==u.Ed25519&&(this.isZero(r)||this.isGteN(e,r))?this.master(e,n):{chainCode:o,privkey:r}}static child(e,t,n,r){let i;if(r.isHardened()){const e=new Uint8Array([0,...t,...r.toBytesBigEndian()]);i=new c.Hmac(l.Sha512,n).update(e).digest()}else{if(e===u.Ed25519)throw new Error("Normal keys are not allowed with ed25519");{const o=new Uint8Array([...p.serializedPoint(e,new a.default(t)),...r.toBytesBigEndian()]);i=new c.Hmac(l.Sha512,n).update(o).digest()}}return this.childImpl(e,t,n,r,i)}static serializedPoint(e,t){switch(e){case u.Secp256k1:return i.fromHex(d.g.mul(t).encodeCompressed("hex"));default:throw new Error("curve not supported")}}static childImpl(e,t,n,r,i){const o=i.slice(0,32),s=i.slice(32,64),f=s;if(e===u.Ed25519)return{chainCode:f,privkey:o};const d=this.n(e),p=new a.default(o).add(new a.default(t)).mod(d),h=Uint8Array.from(p.toArray("be",32));if(this.isGteN(e,o)||this.isZero(h)){const i=new c.Hmac(l.Sha512,n).update(new Uint8Array([1,...s,...r.toBytesBigEndian()])).digest();return this.childImpl(e,t,n,r,i)}return{chainCode:f,privkey:h}}static isZero(e){return e.every(e=>0===e)}static isGteN(e,t){return new a.default(t).gte(this.n(e))}static n(e){switch(e){case u.Secp256k1:return new a.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);default:throw new Error("curve not supported")}}}t.Slip10=p,t.pathToString=function(e){return e.reduce((e,t)=>e+"/"+(t.isHardened()?t.toNumber()-2**31+"'":t.toString()),"m")},t.stringToPath=function(e){if(!e.startsWith("m"))throw new Error("Path string must start with 'm'");let t=e.slice(1);const n=new Array;for(;t;){const e=t.match(/^\/([0-9]+)('?)/);if(!e)throw new Error("Syntax error while reading path component");const[r,i,a]=e,s=o.Uint53.fromString(i).toNumber();if(s>=2**31)throw new Error("Component value too high. Must not exceed 2**31-1.");a?n.push(f.hardened(s)):n.push(f.normal(s)),t=t.slice(r.length)}return n}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Decimal=void 0;const i=r(n(6));class o{constructor(e,t){this.data={atomics:new i.default(e),fractionalDigits:t}}static fromUserInput(e,t){o.verifyFractionalDigits(t);const n=e.match(/[^0-9.]/);if(n)throw new Error("Invalid character at position "+(n.index+1));let r,i;if(-1===e.search(/\./))r=e,i="";else{const t=e.split(".");switch(t.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!t[1])throw new Error("Fractional part missing");r=t[0],i=t[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(i.length>t)throw new Error("Got more fractional digits than supported");const a=`${r}${i.padEnd(t,"0")}`;return new o(a,t)}static fromAtomics(e,t){return o.verifyFractionalDigits(t),new o(e,t)}static verifyFractionalDigits(e){if(!Number.isInteger(e))throw new Error("Fractional digits is not an integer");if(e<0)throw new Error("Fractional digits must not be negative");if(e>100)throw new Error("Fractional digits must not exceed 100")}static compare(e,t){if(e.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");return e.data.atomics.cmp(new i.default(t.atomics))}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}toString(){const e=new i.default(10).pow(new i.default(this.data.fractionalDigits)),t=this.data.atomics.div(e),n=this.data.atomics.mod(e);if(n.isZero())return t.toString();{const e=n.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${t.toString()}.${e}`}}toFloatApproximation(){const e=Number(this.toString());if(Number.isNaN(e))throw new Error("Conversion to number failed");return e}plus(e){if(this.fractionalDigits!==e.fractionalDigits)throw new Error("Fractional digits do not match");const t=this.data.atomics.add(new i.default(e.atomics));return new o(t.toString(),this.fractionalDigits)}minus(e){if(this.fractionalDigits!==e.fractionalDigits)throw new Error("Fractional digits do not match");const t=this.data.atomics.sub(new i.default(e.atomics));if(t.ltn(0))throw new Error("Difference must not be negative");return new o(t.toString(),this.fractionalDigits)}multiply(e){const t=this.data.atomics.mul(new i.default(e.toString()));return new o(t.toString(),this.fractionalDigits)}equals(e){return 0===o.compare(this,e)}isLessThan(e){return o.compare(this,e)<0}isLessThanOrEqual(e){return o.compare(this,e)<=0}isGreaterThan(e){return o.compare(this,e)>0}isGreaterThanOrEqual(e){return o.compare(this,e)>=0}}t.Decimal=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Int53=t.Uint32=void 0;const i=r(n(6)),o=new i.default("18446744073709551615",10,"be");class a{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<0||e>4294967295)throw new Error("Input not in uint32 range: "+e.toString());this.data=e}static fromBigEndianBytes(e){return a.fromBytes(e)}static fromBytes(e,t="be"){if(4!==e.length)throw new Error("Invalid input length. Expected 4 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);const n="be"===t?e:Array.from(e).reverse();return new a(n[0]*2**24+65536*n[1]+256*n[2]+n[3])}static fromString(e){if(!e.match(/^[0-9]+$/))throw new Error("Invalid string format");return new a(Number.parseInt(e,10))}toBytesBigEndian(){return new Uint8Array([255&Math.floor(this.data/2**24),255&Math.floor(this.data/65536),255&Math.floor(this.data/256),255&Math.floor(this.data/1)])}toBytesLittleEndian(){return new Uint8Array([255&Math.floor(this.data/1),255&Math.floor(this.data/256),255&Math.floor(this.data/65536),255&Math.floor(this.data/2**24)])}toNumber(){return this.data}toString(){return this.data.toString()}}t.Uint32=a;class s{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<Number.MIN_SAFE_INTEGER||e>Number.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+e.toString());this.data=e}static fromString(e){if(!e.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new s(Number.parseInt(e,10))}toNumber(){return this.data}toString(){return this.data.toString()}}t.Int53=s;class c{constructor(e){const t=new s(e);if(t.toNumber()<0)throw new Error("Input is negative");this.data=t}static fromString(e){const t=s.fromString(e);return new c(t.toNumber())}toNumber(){return this.data.toNumber()}toString(){return this.data.toString()}}t.Uint53=c;class l{constructor(e){if(e.isNeg())throw new Error("Input is negative");if(e.gt(o))throw new Error("Input exceeds uint64 range");this.data=e}static fromBytesBigEndian(e){return l.fromBytes(e)}static fromBytes(e,t="be"){if(8!==e.length)throw new Error("Invalid input length. Expected 8 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);const n="be"===t?Array.from(e):Array.from(e).reverse();return new l(new i.default(n))}static fromString(e){if(!e.match(/^[0-9]+$/))throw new Error("Invalid string format");return new l(new i.default(e,10,"be"))}static fromNumber(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");let t;try{t=new i.default(e)}catch(e){throw new Error("Input is not a safe integer")}return new l(t)}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toNumber(){return this.data.toNumber()}}t.Uint64=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupAuthExtension=void 0,t.setupAuthExtension=function(e){return{auth:{account:async t=>{const n="/auth/accounts/"+t,r=await e.get(n);if("cosmos-sdk/Account"!==r.result.type)throw new Error("Unexpected response data format");return r}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupBankExtension=void 0,t.setupBankExtension=function(e){return{bank:{balances:async t=>{const n="/bank/balances/"+t;return e.get(n)}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupDistributionExtension=void 0,t.setupDistributionExtension=function(e){return{distribution:{delegatorRewards:async t=>e.get(`/distribution/delegators/${t}/rewards`),delegatorReward:async(t,n)=>e.get(`/distribution/delegators/${t}/rewards/${n}`),withdrawAddress:async t=>e.get(`/distribution/delegators/${t}/withdraw_address`),validator:async t=>e.get("/distribution/validators/"+t),validatorRewards:async t=>e.get(`/distribution/validators/${t}/rewards`),validatorOutstandingRewards:async t=>e.get(`/distribution/validators/${t}/outstanding_rewards`),parameters:async()=>e.get("/distribution/parameters"),communityPool:async()=>e.get("/distribution/community_pool")}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupGovExtension=t.GovParametersType=void 0,function(e){e.Deposit="deposit",e.Tallying="tallying",e.Voting="voting"}(t.GovParametersType||(t.GovParametersType={})),t.setupGovExtension=function(e){return{gov:{parameters:async t=>e.get("/gov/parameters/"+t),proposals:async()=>e.get("/gov/proposals"),proposal:async t=>e.get("/gov/proposals/"+t),proposer:async t=>e.get(`/gov/proposals/${t}/proposer`),deposits:async t=>e.get(`/gov/proposals/${t}/deposits`),deposit:async(t,n)=>e.get(`/gov/proposals/${t}/deposits/${n}`),tally:async t=>e.get(`/gov/proposals/${t}/tally`),votes:async t=>e.get(`/gov/proposals/${t}/votes`),vote:async(t,n)=>e.get(`/gov/proposals/${t}/votes/${n}`)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupMintExtension=void 0,t.setupMintExtension=function(e){return{mint:{parameters:async()=>e.get("/minting/parameters"),inflation:async()=>e.get("/minting/inflation"),annualProvisions:async()=>e.get("/minting/annual-provisions")}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupSlashingExtension=void 0,t.setupSlashingExtension=function(e){return{slashing:{signingInfos:async()=>e.get("/slashing/signing_infos"),parameters:async()=>e.get("/slashing/parameters")}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupStakingExtension=t.BondStatus=void 0,function(e){e[e.Unbonded=0]="Unbonded",e[e.Unbonding=1]="Unbonding",e[e.Bonded=2]="Bonded"}(t.BondStatus||(t.BondStatus={})),t.setupStakingExtension=function(e){return{staking:{delegatorDelegations:async t=>e.get(`/staking/delegators/${t}/delegations`),delegatorUnbondingDelegations:async t=>e.get(`/staking/delegators/${t}/unbonding_delegations`),delegatorTransactions:async t=>e.get(`/staking/delegators/${t}/txs`),delegatorValidators:async t=>e.get(`/staking/delegators/${t}/validators`),delegatorValidator:async(t,n)=>e.get(`/staking/delegators/${t}/validators/${n}`),delegation:async(t,n)=>e.get(`/staking/delegators/${t}/delegations/${n}`),unbondingDelegation:async(t,n)=>e.get(`/staking/delegators/${t}/unbonding_delegations/${n}`),redelegations:async()=>e.get("/staking/redelegations"),validators:async t=>e.get("/staking/validators",t),validator:async t=>e.get("/staking/validators/"+t),validatorDelegations:async t=>e.get(`/staking/validators/${t}/delegations`),validatorUnbondingDelegations:async t=>e.get(`/staking/validators/${t}/unbonding_delegations`),historicalInfo:async t=>e.get("/staking/historical_info/"+t),pool:async()=>e.get("/staking/pool"),parameters:async()=>e.get("/staking/parameters")}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setupSupplyExtension=void 0,t.setupSupplyExtension=function(e){return{supply:{totalAll:async()=>e.get("/supply/total"),total:async t=>e.get("/supply/total/"+t)}}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LcdClient=t.normalizeLcdApiArray=void 0;const i=n(100),o=r(n(68)),a=n(319);function s(e){var t;if(null===(t=e.response)||void 0===t?void 0:t.data){let t;const n=e.response.data;throw t=n.error&&"string"==typeof n.error?n.error:"string"==typeof n?n:JSON.stringify(n),new Error(`${t} (HTTP ${e.response.status})`)}throw e}t.normalizeLcdApiArray=function(e){return e||[]};class c{constructor(e,t=a.BroadcastMode.Block){this.client=o.default.create({baseURL:e,headers:{post:{"Content-Type":"application/json"}}}),this.broadcastMode=t}static withExtensions(e,...t){const n=new c(e.apiUrl,e.broadcastMode),r=t.map(e=>e(n));for(const e of r){i.assert(i.isNonNullObject(e),"Extension must be a non-null object");for(const[t,r]of Object.entries(e)){i.assert(i.isNonNullObject(r),`Module must be a non-null object. Found type ${typeof r} for module "${t}".`);const e=n[t]||{};n[t]=Object.assign(Object.assign({},e),r)}}return n}async get(e,t){const{data:n}=await this.client.get(e,{params:t}).catch(s);if(null===n)throw new Error("Received null response from server");return n}async post(e,t){if(!i.isNonNullObject(t))throw new Error("Got unexpected type of params. Expected object.");const{data:n}=await this.client.post(e,t).catch(s);if(null===n)throw new Error("Received null response from server");return n}async blocksLatest(){const e=await this.get("/blocks/latest");if(!e.block)throw new Error("Unexpected response data format");return e}async blocks(e){const t=await this.get("/blocks/"+e);if(!t.block)throw new Error("Unexpected response data format");return t}async nodeInfo(){const e=await this.get("/node_info");if(!e.node_info)throw new Error("Unexpected response data format");return e}async txById(e){const t=await this.get("/txs/"+e);if(!t.tx)throw new Error("Unexpected response data format");return t}async txsQuery(e){const t=await this.get("/txs?"+e);if(!t.txs)throw new Error("Unexpected response data format");return t}async encodeTx(e){const t=await this.post("/txs/encode",e);if(!t.tx)throw new Error("Unexpected response data format");return t}async broadcastTx(e){const t={tx:e,mode:this.broadcastMode},n=await this.post("/txs",t);if(!n.txhash)throw new Error("Unexpected response data format");return n}}t.LcdClient=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePubkey=t.uint64ToString=t.uint64ToNumber=void 0;const r=n(82),i=n(175);t.uint64ToNumber=function(e){return("number"==typeof e?r.Uint64.fromNumber(e):r.Uint64.fromString(e)).toNumber()},t.uint64ToString=function(e){return("number"==typeof e?r.Uint64.fromNumber(e):r.Uint64.fromString(e)).toString()},t.normalizePubkey=function(e){return e?"string"==typeof e?i.decodeBech32Pubkey(e):e:null}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.isMsgUndelegate=t.isMsgBeginRedelegate=t.isMsgDelegate=t.isMsgEditValidator=t.isMsgCreateValidator=t.isMsgUnjail=t.isMsgDeposit=t.isMsgVote=t.isMsgSubmitProposal=t.isMsgSubmitEvidence=t.isMsgFundCommunityPool=t.isMsgWithdrawValidatorCommission=t.isMsgWithdrawDelegatorReward=t.isMsgSetWithdrawAddress=t.isMsgVerifyInvariant=t.isMsgMultiSend=t.isMsgSend=void 0,t.isMsgSend=function(e){return"cosmos-sdk/MsgSend"===e.type},t.isMsgMultiSend=function(e){return"cosmos-sdk/MsgMultiSend"===e.type},t.isMsgVerifyInvariant=function(e){return"cosmos-sdk/MsgVerifyInvariant"===e.type},t.isMsgSetWithdrawAddress=function(e){return"cosmos-sdk/MsgModifyWithdrawAddress"===e.type},t.isMsgWithdrawDelegatorReward=function(e){return"cosmos-sdk/MsgWithdrawDelegationReward"===e.type},t.isMsgWithdrawValidatorCommission=function(e){return"cosmos-sdk/MsgWithdrawValidatorCommission"===e.type},t.isMsgFundCommunityPool=function(e){return"cosmos-sdk/MsgFundCommunityPool"===e.type},t.isMsgSubmitEvidence=function(e){return"cosmos-sdk/MsgSubmitEvidence"===e.type},t.isMsgSubmitProposal=function(e){return"cosmos-sdk/MsgSubmitProposal"===e.type},function(e){e[e.VoteOptionUnspecified=0]="VoteOptionUnspecified",e[e.VoteOptionYes=1]="VoteOptionYes",e[e.VoteOptionAbstain=2]="VoteOptionAbstain",e[e.VoteOptionNo=3]="VoteOptionNo",e[e.VoteOptionNoWithVeto=4]="VoteOptionNoWithVeto"}(r||(r={})),t.isMsgVote=function(e){return"cosmos-sdk/MsgVote"===e.type},t.isMsgDeposit=function(e){return"cosmos-sdk/MsgDeposit"===e.type},t.isMsgUnjail=function(e){return"cosmos-sdk/MsgUnjail"===e.type},t.isMsgCreateValidator=function(e){return"cosmos-sdk/MsgCreateValidator"===e.type},t.isMsgEditValidator=function(e){return"cosmos-sdk/MsgEditValidator"===e.type},t.isMsgDelegate=function(e){return"cosmos-sdk/MsgDelegate"===e.type},t.isMsgBeginRedelegate=function(e){return"cosmos-sdk/MsgBeginRedelegate"===e.type},t.isMsgUndelegate=function(e){return"cosmos-sdk/MsgUndelegate"===e.type}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findSequenceForSignedTx=void 0;const r=n(50),i=n(101),o=n(127);t.findSequenceForSignedTx=async function(e,t,n,a,s=0){const c=e.value.signatures.find(()=>!0);if(!c)throw new Error("Signature missing in tx");const{pubkey:l,signature:u}=o.decodeSignature(c),f=r.Secp256k1Signature.fromFixedLength(u);for(let o=s;o<a;o++){const a=i.serializeSignDoc(i.makeSignDoc(e.value.msg,e.value.fee,t,e.value.memo||"",n,o)),s=r.sha256(a);if(await r.Secp256k1.verifySignature(f,s,l))return o}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SigningCosmosClient=void 0;const i=r(n(642)),o=n(318),a=n(101),s=n(320),c=n(174),l=n(322),u=s.GasPrice.fromString("0.025ucosm"),f={send:8e4};class d extends o.CosmosClient{constructor(e,t,n,r=u,i={},o=c.BroadcastMode.Block){super(e,o),this.anyValidAddress=t,this.signerAddress=t,this.signer=n,this.fees=s.buildFeeTable(r,f,i)}async getSequence(e){return super.getSequence(e||this.signerAddress)}async getAccount(e){return super.getAccount(e||this.signerAddress)}async sendTokens(e,t,n=""){const r={type:"cosmos-sdk/MsgSend",value:{from_address:this.signerAddress,to_address:e,amount:t}};return this.signAndBroadcast([r],this.fees.send,n)}async signAndBroadcast(e,t,n=""){const r=await this.sign(e,t,n);return this.broadcastTx(r)}async sign(e,t,n=""){const{accountNumber:r,sequence:i}=await this.getSequence(),o=await this.getChainId(),s=a.makeSignDoc(e,t,o,n,r,i),{signed:c,signature:u}=await this.signer.signAmino(this.signerAddress,s);return l.makeStdTx(c,u)}async appendSignature(e){const{msg:t,fee:n,memo:r}=e,{accountNumber:o,sequence:s}=await this.getSequence(),c=await this.getChainId(),u=a.makeSignDoc(t,n,c,r,o,s),{signed:f,signature:d}=await this.signer.signAmino(this.signerAddress,u);if(!i.default(u,f))throw new Error("The signed document differs from the one of the original transaction. This is not allowed since the resulting transaction will be invalid.");return l.makeStdTx(f,[...e.signatures,d])}}t.SigningCosmosClient=d},function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1HdWallet=t.extractKdfConfiguration=void 0;const r=n(50),i=n(39),o=n(100),a=n(173),s=n(101),c=n(321),l=n(127),u=n(323),f={algorithm:"argon2id",params:{outputLength:32,opsLimit:20,memLimitKib:12288}};t.extractKdfConfiguration=function(e){const t=JSON.parse(e);if(!o.isNonNullObject(t))throw new Error("Root document is not an object.");switch(t.type){case"secp256k1wallet-v1":return t.kdf;default:throw new Error("Unsupported serialization type")}};class d{constructor(e,t,n,r,i){this.secret=e,this.accounts=[{hdPath:t,prefix:i}],this.privkey=n,this.pubkey=r}static async fromMnemonic(e,t=c.makeCosmoshubPath(0),n="cosmos"){const i=new r.EnglishMnemonic(e),o=await r.Bip39.mnemonicToSeed(i),{privkey:a}=r.Slip10.derivePath(r.Slip10Curve.Secp256k1,o,t),s=(await r.Secp256k1.makeKeypair(a)).pubkey;return new d(i,t,a,r.Secp256k1.compressPubkey(s),n)}static async generate(e=12,t=c.makeCosmoshubPath(0),n="cosmos"){const i=4*Math.floor(11*e/33),o=r.Random.getBytes(i),a=r.Bip39.encode(o);return d.fromMnemonic(a.toString(),t,n)}static async deserialize(e,t){const n=JSON.parse(e);if(!o.isNonNullObject(n))throw new Error("Root document is not an object.");switch(n.type){case"secp256k1wallet-v1":return d.deserializeTypeV1(e,t);default:throw new Error("Unsupported serialization type")}}static async deserializeWithEncryptionKey(e,t){const n=JSON.parse(e);if(!o.isNonNullObject(n))throw new Error("Root document is not an object.");const a=n;switch(a.type){case"secp256k1wallet-v1":{const e=await u.decrypt(i.fromBase64(a.data),t,a.encryption),n=JSON.parse(i.fromUtf8(e)),{mnemonic:c,accounts:l}=n;if(o.assert("string"==typeof c),!Array.isArray(l))throw new Error("Property 'accounts' is not an array");if(1!==l.length)throw new Error("Property 'accounts' only supports one entry");const f=l[0];if(s=f,!o.isNonNullObject(s)||"string"!=typeof s.hdPath||"string"!=typeof s.prefix)throw new Error("Account is not in the correct format.");return d.fromMnemonic(c,r.stringToPath(f.hdPath),f.prefix)}default:throw new Error("Unsupported serialization type")}var s}static async deserializeTypeV1(e,t){const n=JSON.parse(e);if(!o.isNonNullObject(n))throw new Error("Root document is not an object.");const r=await u.executeKdf(t,n.kdf);return d.deserializeWithEncryptionKey(e,r)}get mnemonic(){return this.secret.toString()}get address(){return a.rawSecp256k1PubkeyToAddress(this.pubkey,this.accounts[0].prefix)}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signAmino(e,t){if(e!==this.address)throw new Error(`Address ${e} not found in wallet`);const n=r.sha256(s.serializeSignDoc(t)),i=await r.Secp256k1.createSignature(n,this.privkey),o=new Uint8Array([...i.r(32),...i.s(32)]);return{signed:t,signature:l.encodeSecp256k1Signature(this.pubkey,o)}}async serialize(e){const t=f,n=await u.executeKdf(e,t);return this.serializeWithEncryptionKey(n,t)}async serializeWithEncryptionKey(e,t){const n={mnemonic:this.mnemonic,accounts:this.accounts.map(e=>({hdPath:r.pathToString(e.hdPath),prefix:e.prefix}))},o=i.toUtf8(JSON.stringify(n)),a={algorithm:u.supportedAlgorithms.xchacha20poly1305Ietf},s=await u.encrypt(o,e,a),c={type:"secp256k1wallet-v1",kdf:t,encryption:a,data:i.toBase64(s)};return JSON.stringify(c)}}t.Secp256k1HdWallet=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1Wallet=void 0;const r=n(50),i=n(173),o=n(101),a=n(127);class s{constructor(e,t,n){this.privkey=e,this.pubkey=t,this.prefix=n}static async fromKey(e,t="cosmos"){const n=(await r.Secp256k1.makeKeypair(e)).pubkey;return new s(e,r.Secp256k1.compressPubkey(n),t)}get address(){return i.rawSecp256k1PubkeyToAddress(this.pubkey,this.prefix)}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signAmino(e,t){if(e!==this.address)throw new Error(`Address ${e} not found in wallet`);const n=new r.Sha256(o.serializeSignDoc(t)).digest(),i=await r.Secp256k1.createSignature(n,this.privkey),s=new Uint8Array([...i.r(32),...i.s(32)]);return{signed:t,signature:a.encodeSecp256k1Signature(this.pubkey,s)}}}t.Secp256k1Wallet=s},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},l.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,r);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||c(this,o);else{for(var s=0,l=[],u=a.length;s<u;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=1===l.length?l[0]:l:c(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&c(this,t)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,e.exports=l},function(e,t,n){"use strict";const r=n(647);class i extends Error{constructor(e){super(e),this.name="TimeoutError"}}const o=(e,t,n)=>new Promise((o,a)=>{if("number"!=typeof t||t<0)throw new TypeError("Expected `milliseconds` to be a positive number");if(t===1/0)return void o(e);const s=setTimeout(()=>{if("function"==typeof n){try{o(n())}catch(e){a(e)}return}const r=n instanceof Error?n:new i("string"==typeof n?n:`Promise timed out after ${t} milliseconds`);"function"==typeof e.cancel&&e.cancel(),a(r)},t);r(e.then(o,a),()=>{clearTimeout(s)})});e.exports=o,e.exports.default=o,e.exports.TimeoutError=i},function(e,t,n){"use strict";e.exports=(e,t)=>(t=t||(()=>{}),e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e})))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(649);t.default=class{constructor(){this._queue=[]}enqueue(e,t){const n={priority:(t=Object.assign({priority:0},t)).priority,run:e};if(this.size&&this._queue[this.size-1].priority>=t.priority)return void this._queue.push(n);const i=r.default(this._queue,n,(e,t)=>t.priority-e.priority);this._queue.splice(i,0,n)}dequeue(){const e=this._queue.shift();return null==e?void 0:e.run}filter(e){return this._queue.filter(t=>t.priority===e.priority).map(e=>e.run)}get size(){return this._queue.length}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let r=0,i=e.length;for(;i>0;){const o=i/2|0;let a=r+o;n(e[a],t)<=0?(r=++a,i-=o+1):i=o}return r}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionRouter=void 0;const i=n(176);class o extends i.Router{constructor(){super(...arguments),this.onMessage=(e,t)=>{if(e.port===this.port)return this.onMessageHandler(e,t)}}listen(e){if(!e)throw new Error("Empty port");this.port=e,browser.runtime.onMessage.addListener(this.onMessage)}unlisten(){this.port="",browser.runtime.onMessage.removeListener(this.onMessage)}onMessageHandler(e,t){return r(this,void 0,void 0,(function*(){try{return{return:yield this.handleMessage(e,t)}}catch(t){return console.log(`Failed to process msg ${e.type}: ${(null==t?void 0:t.message)||(null==t?void 0:t.toString())}`),t?Promise.resolve({error:t.message||t.toString()}):Promise.resolve({error:"Unknown error, and error is null"})}}))}}t.ExtensionRouter=o},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MockRouter=void 0;const i=n(176),o=n(51);class a extends i.Router{constructor(){super(...arguments),this.onMessage=e=>r(this,void 0,void 0,(function*(){const{message:t,sender:n}=e;if(t.port===this.port)try{const e=yield this.handleMessage(t,n);return void n.resolver({return:e})}catch(e){console.log(`Failed to process msg ${t.type}: ${(null==e?void 0:e.message)||(null==e?void 0:e.toString())}`),e?n.resolver({error:e.message||e.toString()}):n.resolver({error:"Unknown error, and error is null"})}}))}listen(e){if(!e)throw new Error("Empty port");this.port=e,a.eventEmitter.addListener("message",this.onMessage)}unlisten(){this.port="",a.eventEmitter.removeListener("message",this.onMessage)}}t.MockRouter=a,a.eventEmitter=new o.EventEmitter},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=void 0;t.Message=class{approveExternal(e,t){return!1}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.InExtensionMessageRequester=void 0;const i=n(107);t.InExtensionMessageRequester=class{sendMessage(e,t){return r(this,void 0,void 0,(function*(){t.validateBasic(),t.origin=window.location.origin;const n=i.JSONUint8Array.unwrap(yield browser.runtime.sendMessage({port:e,type:t.type(),msg:i.JSONUint8Array.wrap(t)}));if(!n)throw new Error("Null result");if(n.error)throw new Error(n.error);return n.return}))}static sendMessageToTab(e,t,n){return r(this,void 0,void 0,(function*(){n.validateBasic(),n.origin=window.location.origin;const r=i.JSONUint8Array.unwrap(yield browser.tabs.sendMessage(e,{port:t,type:n.type(),msg:i.JSONUint8Array.wrap(n)}));if(!r)throw new Error("Null result");if(r.error)throw new Error(r.error);return r.return}))}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ContentScriptMessageRequester=void 0;const i=n(107);t.ContentScriptMessageRequester=class{sendMessage(e,t){return r(this,void 0,void 0,(function*(){t.validateBasic(),t.origin=window.location.origin;const n=i.JSONUint8Array.wrap(t),r=yield browser.tabs.query({discarded:!1,status:"complete"});for(let i=0;i<r.length;i++){const o=r[i].id;if(o)try{yield browser.tabs.sendMessage(o,{port:e,type:t.type(),msg:n})}catch(e){}}}))}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.MockMessageRequester=void 0;const i=n(107),o=n(324);t.MockMessageRequester=class{constructor(e,t){this.id=e,this.url=t}sendMessage(e,t){return r(this,void 0,void 0,(function*(){t.validateBasic(),t.origin=new URL(this.url).origin;const n=i.JSONUint8Array.unwrap(yield new Promise(n=>{o.MockRouter.eventEmitter.emit("message",{message:{port:e,type:t.type(),msg:i.JSONUint8Array.wrap(t)},sender:{id:this.id,url:this.url,resolver:n}})}));if(!n)throw new Error("Null result");if(n.error)throw new Error(n.error);return n.return}))}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(328),t),i(n(660),t),i(n(661),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentScriptGuards=void 0;class r{}t.ContentScriptGuards=r,r.checkMessageIsInternal=(e,t,n)=>{if(!e.isInternalMsg||t.approveExternal(e,n))throw new Error("Content script can't handle the message that is able to be sent from external");return Promise.resolve()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MockGuards=void 0;const r=n(328);class i{}t.MockGuards=i,i.checkOriginIsValid=r.ExtensionGuards.checkOriginIsValid,i.checkMessageIsInternal=r.ExtensionGuards.checkMessageIsInternal},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(329),t),i(n(663),t),i(n(664),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContentScriptEnv=void 0;class r{}t.ContentScriptEnv=r,r.produceEnv=e=>({isInternalMsg:e.id===browser.runtime.id,requestInteraction:()=>{throw new Error("ContentScriptEnv doesn't support `requestInteraction`")}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MockEnv=void 0;const r=n(329);t.MockEnv=class{constructor(e,t){this.id=e,this.url=t}envProducer(){return e=>({isInternalMsg:r.ExtensionEnv.checkIsInternalMessage(e,this.id,this.url),requestInteraction:()=>{throw new Error("TODO: Implement me")}})}}},function(e,t,n){(function(e,t){
78 /*! *****************************************************************************
79 Copyright (C) Microsoft. All rights reserved.
80 Licensed under the Apache License, Version 2.0 (the "License"); you may not use
81 this file except in compliance with the License. You may obtain a copy of the
82 License at http://www.apache.org/licenses/LICENSE-2.0
83
84 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
85 KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
86 WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
87 MERCHANTABLITY OR NON-INFRINGEMENT.
88
89 See the Apache Version 2.0 License for specific language governing permissions
90 and limitations under the License.
91 ***************************************************************************** */
92 var n;!function(n){!function(r){var i="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=a(n);function a(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===i.Reflect?i.Reflect=n:o=a(i.Reflect,o),function(t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,c=!a&&!s,l={create:a?function(){return j(Object.create(null))}:s?function(){return j({__proto__:null})}:function(){return j({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},u=Object.getPrototypeOf(Function),f="object"==typeof e&&e.env&&"true"===e.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=f||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[o]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,i)},t.prototype.entries=function(){return new n(this._keys,this._values,a)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[o]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function i(e,t){return t}function a(e,t){return[e,t]}}():Map,p=f||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[o]=function(){return this.keys()},e}():Set,h=new(f||"function"!=typeof WeakMap?function(){var e=l.create(),t=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&l.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?l.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+a()}while(l.has(e,t));return e[t]=!0,t}function i(e,r){if(!n.call(e,t)){if(!r)return;Object.defineProperty(e,t,{value:l.create()})}return e[t]}function o(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function a(){var e,t=(e=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):o(new Uint8Array(e),e):o(new Array(e),e));t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var n="",r=0;r<16;++r){var i=t[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}():WeakMap);function m(e,t,n){var r=h.get(e);if(_(r)){if(!n)return;r=new d,h.set(e,r)}var i=r.get(t);if(_(i)){if(!n)return;i=new d,r.set(t,i)}return i}function b(e,t,n){var r=m(t,n,!1);return!_(r)&&!!r.has(e)}function y(e,t,n){var r=m(t,n,!1);if(!_(r))return r.get(e)}function g(e,t,n,r){m(n,r,!0).set(e,t)}function v(e,t){var n=[],r=m(e,t,!1);if(_(r))return n;for(var i=function(e){var t=M(e,o);if(!T(t))throw new TypeError;var n=t.call(e);if(!x(n))throw new TypeError;return n}(r.keys()),a=0;;){var s=I(i);if(!s)return n.length=a,n;var c=s.value;try{n[a]=c}catch(e){try{P(i)}finally{throw e}}a++}}function w(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function _(e){return void 0===e}function k(e){return null===e}function x(e){return"object"==typeof e?null!==e:"function"==typeof e}function S(e,t){switch(w(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=3===t?"string":5===t?"number":"default",r=M(e,i);if(void 0!==r){var o=r.call(e,n);if(x(o))throw new TypeError;return o}return function(e,t){if("string"===t){var n=e.toString;if(T(n))if(!x(i=n.call(e)))return i;if(T(r=e.valueOf))if(!x(i=r.call(e)))return i}else{var r;if(T(r=e.valueOf))if(!x(i=r.call(e)))return i;var i,o=e.toString;if(T(o))if(!x(i=o.call(e)))return i}throw new TypeError}(e,"default"===n?"number":n)}function O(e){var t=S(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function E(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function T(e){return"function"==typeof e}function A(e){return"function"==typeof e}function M(e,t){var n=e[t];if(null!=n){if(!T(n))throw new TypeError;return n}}function I(e){var t=e.next();return!t.done&&t}function P(e){var t=e.return;t&&t.call(e)}function C(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===u)return t;if(t!==u)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i||i===e?t:i}function j(e){return e.__=void 0,delete e.__,e}t("decorate",(function(e,t,n,r){if(_(n)){if(!E(e))throw new TypeError;if(!A(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!_(r)&&!k(r)){if(!A(r))throw new TypeError;t=r}}return t}(e,t)}if(!E(e))throw new TypeError;if(!x(t))throw new TypeError;if(!x(r)&&!_(r)&&!k(r))throw new TypeError;return k(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!_(o)&&!k(o)){if(!x(o))throw new TypeError;r=o}}return r}(e,t,n=O(n),r)})),t("metadata",(function(e,t){return function(n,r){if(!x(n))throw new TypeError;if(!_(r)&&!function(e){switch(w(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;g(e,t,n,r)}})),t("defineMetadata",(function(e,t,n,r){if(!x(n))throw new TypeError;return _(r)||(r=O(r)),g(e,t,n,r)})),t("hasMetadata",(function(e,t,n){if(!x(t))throw new TypeError;return _(n)||(n=O(n)),function e(t,n,r){if(b(t,n,r))return!0;var i=C(n);return!k(i)&&e(t,i,r)}(e,t,n)})),t("hasOwnMetadata",(function(e,t,n){if(!x(t))throw new TypeError;return _(n)||(n=O(n)),b(e,t,n)})),t("getMetadata",(function(e,t,n){if(!x(t))throw new TypeError;return _(n)||(n=O(n)),function e(t,n,r){if(b(t,n,r))return y(t,n,r);var i=C(n);return k(i)?void 0:e(t,i,r)}(e,t,n)})),t("getOwnMetadata",(function(e,t,n){if(!x(t))throw new TypeError;return _(n)||(n=O(n)),y(e,t,n)})),t("getMetadataKeys",(function(e,t){if(!x(e))throw new TypeError;return _(t)||(t=O(t)),function e(t,n){var r=v(t,n),i=C(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var a=new p,s=[],c=0,l=r;c<l.length;c++){var u=l[c];a.has(u)||(a.add(u),s.push(u))}for(var f=0,d=o;f<d.length;f++){u=d[f];a.has(u)||(a.add(u),s.push(u))}return s}(e,t)})),t("getOwnMetadataKeys",(function(e,t){if(!x(e))throw new TypeError;return _(t)||(t=O(t)),v(e,t)})),t("deleteMetadata",(function(e,t,n){if(!x(t))throw new TypeError;_(n)||(n=O(n));var r=m(t,n,!1);if(_(r))return!1;if(!r.delete(e))return!1;if(r.size>0)return!0;var i=h.get(t);return i.delete(n),i.size>0||h.delete(t),!0}))}(o)}()}(n||(n={}))}).call(this,n(13),n(12))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(330),t),i(n(667),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const r=n(177),i=n(331),o=n(668);t.init=function(e,t){e.registerMessage(r.SetPersistentMemoryMsg),e.registerMessage(r.GetPersistentMemoryMsg),e.addHandler(i.ROUTE,o.getHandler(t))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const r=n(177);t.getHandler=e=>(t,n)=>{switch(n.constructor){case r.SetPersistentMemoryMsg:return i(e)(t,n);case r.GetPersistentMemoryMsg:return e.get();default:throw new Error("Unknown msg type")}};const i=e=>(t,n)=>(e.set(n.data),{success:!0})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(332),t),i(n(676),t)},function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=11)}([function(e,t,n){"use strict";const r=n(12);e.exports=function(e,...t){if(!e){if(1===t.length&&t[0]instanceof Error)throw t[0];throw new r(t)}}},function(e,t,n){"use strict";const r=n(0),i=n(12),o=n(29);let a,s;const c={isoDate:/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24\:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/};t.version=o.version,t.defaults={abortEarly:!0,allowUnknown:!1,artifacts:!1,cache:!0,context:null,convert:!0,dateFormat:"iso",errors:{escapeHtml:!1,label:"path",language:null,render:!0,stack:!1,wrap:{label:'"',array:"[]"}},externals:!0,messages:{},nonEnumerables:!1,noDefaults:!1,presence:"optional",skipFunctions:!1,stripUnknown:!1,warnings:!1},t.symbols={any:Symbol.for("@hapi/joi/schema"),arraySingle:Symbol("arraySingle"),deepDefault:Symbol("deepDefault"),errors:Symbol("errors"),literal:Symbol("literal"),override:Symbol("override"),parent:Symbol("parent"),prefs:Symbol("prefs"),ref:Symbol("ref"),template:Symbol("template"),values:Symbol("values")},t.assertOptions=function(e,t,n="Options"){r(e&&"object"==typeof e&&!Array.isArray(e),"Options must be of type object");const i=Object.keys(e).filter(e=>!t.includes(e));r(0===i.length,"".concat(n," contain unknown keys: ").concat(i))},t.checkPreferences=function(e){s=s||n(16);const t=s.preferences.validate(e);if(t.error)throw new i([t.error.details[0].message])},t.compare=function(e,t,n){switch(n){case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}},t.default=function(e,t){return void 0===e?t:e},t.isIsoDate=function(e){return c.isoDate.test(e)},t.isNumber=function(e){return"number"==typeof e&&!isNaN(e)},t.isResolvable=function(e){return!!e&&(e[t.symbols.ref]||e[t.symbols.template])},t.isSchema=function(e,n={}){const i=e&&e[t.symbols.any];return!!i&&(r(n.legacy||i.version===t.version,"Cannot mix different versions of joi schemas"),!0)},t.isValues=function(e){return e[t.symbols.values]},t.limit=function(e){return Number.isSafeInteger(e)&&e>=0},t.preferences=function(e,r){a=a||n(9),e=e||{},r=r||{};const i=Object.assign({},e,r);return r.errors&&e.errors&&(i.errors=Object.assign({},e.errors,r.errors),i.errors.wrap=Object.assign({},e.errors.wrap,r.errors.wrap)),r.messages&&(i.messages=a.compile(r.messages,e.messages)),delete i[t.symbols.prefs],i},t.tryWithPath=function(e,t,n={}){try{return e()}catch(e){throw void 0!==e.path?e.path=t+"."+e.path:e.path=t,n.append&&(e.message="".concat(e.message," (").concat(e.path,")")),e}},t.validateArg=function(e,n,{assert:r,message:i}){if(t.isSchema(r)){const t=r.validate(e);if(!t.error)return;return t.error.message}if(!r(e))return n?"".concat(n," ").concat(i):i},t.verifyFlat=function(e,t){for(const n of e)r(!Array.isArray(n),"Method no longer accepts array arguments:",t)}},function(e,t,n){"use strict";const r=n(6),i=n(13),o=n(14),a={needsProtoHack:new Set([i.set,i.map,i.weakSet,i.weakMap])};e.exports=a.clone=function(e,t={},n=null){if("object"!=typeof e||null===e)return e;let r=a.clone,s=n;if(t.shallow){if(!0!==t.shallow)return a.cloneWithShallow(e,t);r=e=>e}else if(s){const t=s.get(e);if(t)return t}else s=new Map;const c=i.getInternalProto(e);if(c===i.buffer)return!1;if(c===i.date)return new Date(e.getTime());if(c===i.regex)return new RegExp(e);const l=a.base(e,c,t);if(l===e)return e;if(s&&s.set(e,l),c===i.set)for(const n of e)l.add(r(n,t,s));else if(c===i.map)for(const[n,i]of e)l.set(n,r(i,t,s));const u=o.keys(e,t);for(const n of u){if("__proto__"===n)continue;if(c===i.array&&"length"===n){l.length=e.length;continue}const o=Object.getOwnPropertyDescriptor(e,n);o?o.get||o.set?Object.defineProperty(l,n,o):o.enumerable?l[n]=r(e[n],t,s):Object.defineProperty(l,n,{enumerable:!1,writable:!0,configurable:!0,value:r(e[n],t,s)}):Object.defineProperty(l,n,{enumerable:!0,writable:!0,configurable:!0,value:r(e[n],t,s)})}return l},a.cloneWithShallow=function(e,t){const n=t.shallow;(t=Object.assign({},t)).shallow=!1;const i=new Map;for(const t of n){const n=r(e,t);"object"!=typeof n&&"function"!=typeof n||i.set(n,n)}return a.clone(e,t,i)},a.base=function(e,t,n){if(!1===n.prototype)return a.needsProtoHack.has(t)?new t.constructor:t===i.array?[]:{};const r=Object.getPrototypeOf(e);if(r&&r.isImmutable)return e;if(t===i.array){const e=[];return r!==t&&Object.setPrototypeOf(e,r),e}if(a.needsProtoHack.has(t)){const e=new r.constructor;return r!==t&&Object.setPrototypeOf(e,r),e}return Object.create(r)}},function(e,t,n){"use strict";const r=n(0),i=n(34),o=n(1),a=n(9);e.exports=i.extend({type:"any",flags:{only:{default:!1}},terms:{alterations:{init:null},examples:{init:null},externals:{init:null},metas:{init:[]},notes:{init:[]},shared:{init:null},tags:{init:[]},whens:{init:null}},rules:{custom:{method(e,t){return r("function"==typeof e,"Method must be a function"),r(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this.$_addRule({name:"custom",args:{method:e,description:t}})},validate(e,t,{method:n}){try{return n(e,t)}catch(e){return t.error("any.custom",{error:e})}},args:["method","description"],multi:!0},messages:{method(e){return this.prefs({messages:e})}},shared:{method(e){r(o.isSchema(e)&&e._flags.id,"Schema must be a schema with an id");const t=this.clone();return t.$_terms.shared=t.$_terms.shared||[],t.$_terms.shared.push(e),t.$_mutateRegister(e),t}},warning:{method(e,t){return r(e&&"string"==typeof e,"Invalid warning code"),this.$_addRule({name:"warning",args:{code:e,local:t},warn:!0})},validate:(e,t,{code:n,local:r})=>t.error(n,r),args:["code","local"],multi:!0}},modifiers:{keep(e,t=!0){e.keep=t},message(e,t){e.message=a.compile(t)},warn(e,t=!0){e.warn=t}},manifest:{build(e,t){for(const n in t){const r=t[n];if(["examples","externals","metas","notes","tags"].includes(n))for(const t of r)e=e[n.slice(0,-1)](t);else if("alterations"!==n)if("whens"!==n){if("shared"===n)for(const t of r)e=e.shared(t)}else for(const t of r){const{ref:n,is:r,not:i,then:o,otherwise:a,concat:s}=t;e=s?e.concat(s):n?e.when(n,{is:r,not:i,then:o,otherwise:a,switch:t.switch,break:t.break}):e.when(r,{then:o,otherwise:a,break:t.break})}else{const t={};for(const{target:e,adjuster:n}of r)t[e]=n;e=e.alter(t)}}return e}},messages:{"any.custom":"{{#label}} failed custom validation because {{#error.message}}","any.default":"{{#label}} threw an error when running default method","any.failover":"{{#label}} threw an error when running failover method","any.invalid":"{{#label}} contains an invalid value","any.only":'{{#label}} must be {if(#valids.length == 1, "", "one of ")}{{#valids}}',"any.ref":"{{#label}} {{#arg}} references {{:#ref}} which {{#reason}}","any.required":"{{#label}} is required","any.unknown":"{{#label}} is not allowed"}})},function(e,t,n){"use strict";const r=n(32),i=n(1),o=n(7);t.Report=class{constructor(e,n,r,i,o,a,s){if(this.code=e,this.flags=i,this.messages=o,this.path=a.path,this.prefs=s,this.state=a,this.value=n,this.message=null,this.template=null,this.local=r||{},this.local.label=t.label(this.flags,this.state,this.prefs,this.messages),void 0===this.value||this.local.hasOwnProperty("value")||(this.local.value=this.value),this.path.length){const e=this.path[this.path.length-1];"object"!=typeof e&&(this.local.key=e)}}_setTemplate(e){if(this.template=e,!this.flags.label&&0===this.path.length){const e=this._template(this.template,"root");e&&(this.local.label=e)}}toString(){if(this.message)return this.message;const e=this.code;if(!this.prefs.errors.render)return this.code;const t=this._template(this.template)||this._template(this.prefs.messages)||this._template(this.messages);return void 0===t?'Error code "'.concat(e,'" is not defined, your custom type is missing the correct messages definition'):(this.message=t.render(this.value,this.state,this.prefs,this.local,{errors:this.prefs.errors,messages:[this.prefs.messages,this.messages]}),this.prefs.errors.label||(this.message=this.message.replace(/^"" /,"").trim()),this.message)}_template(e,n){return t.template(this.value,e,n||this.code,this.state,this.prefs)}},t.path=function(e){let t="";for(const n of e)"object"!=typeof n&&("string"==typeof n?(t&&(t+="."),t+=n):t+="[".concat(n,"]"));return t},t.template=function(e,t,n,r,a){if(!t)return;if(o.isTemplate(t))return"root"!==n?t:null;let s=a.errors.language;return i.isResolvable(s)&&(s=s.resolve(e,r,a)),s&&t[s]&&void 0!==t[s][n]?t[s][n]:t[n]},t.label=function(e,n,r,i){if(e.label)return e.label;if(!r.errors.label)return"";let o=n.path;return"key"===r.errors.label&&n.path.length>1&&(o=n.path.slice(-1)),t.path(o)||t.template(null,r.messages,"root",n,r)||i&&t.template(null,i,"root",n,r)||"value"},t.process=function(e,n,r){if(!e)return null;const{override:i,message:o,details:a}=t.details(e);if(i)return i;if(r.errors.stack)return new t.ValidationError(o,a,n);const s=Error.stackTraceLimit;Error.stackTraceLimit=0;const c=new t.ValidationError(o,a,n);return Error.stackTraceLimit=s,c},t.details=function(e,t={}){let n=[];const r=[];for(const i of e){if(i instanceof Error){if(!1!==t.override)return{override:i};const e=i.toString();n.push(e),r.push({message:e,type:"override",context:{error:i}});continue}const e=i.toString();n.push(e),r.push({message:e,path:i.path.filter(e=>"object"!=typeof e),type:i.code,context:i.local})}return n.length>1&&(n=[...new Set(n)]),{message:n.join(". "),details:r}},t.ValidationError=class extends Error{constructor(e,t,n){super(e),this._original=n,this.details=t}static isError(e){return e instanceof t.ValidationError}},t.ValidationError.prototype.isJoi=!0,t.ValidationError.prototype.name="ValidationError",t.ValidationError.prototype.annotate=r.error},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a=n(0),s=n(2),c=n(6),l=n(1);let u;const f={symbol:Symbol("ref"),defaults:{adjust:null,in:!1,iterables:null,map:null,separator:".",type:"value"}};t.create=function(e,t={}){a("string"==typeof e,"Invalid reference key:",e),l.assertOptions(t,["adjust","ancestor","in","iterables","map","prefix","render","separator"]),a(!t.prefix||"object"==typeof t.prefix,"options.prefix must be of type object");const n=Object.assign({},f.defaults,t);delete n.prefix;const r=n.separator,i=f.context(e,r,t.prefix);if(n.type=i.type,e=i.key,"value"===n.type)if(i.root&&(a(!r||e[0]!==r,"Cannot specify relative path with root prefix"),n.ancestor="root",e||(e=null)),r&&r===e)e=null,n.ancestor=0;else if(void 0!==n.ancestor)a(!r||!e||e[0]!==r,"Cannot combine prefix with ancestor option");else{const[t,i]=f.ancestor(e,r);i&&""===(e=e.slice(i))&&(e=null),n.ancestor=t}return n.path=r?null===e?[]:e.split(r):[e],new f.Ref(n)},t.in=function(e,n={}){return t.create(e,i(i({},n),{},{in:!0}))},t.isRef=function(e){return!!e&&!!e[l.symbols.ref]},f.Ref=class{constructor(e){a("object"==typeof e,"Invalid reference construction"),l.assertOptions(e,["adjust","ancestor","in","iterables","map","path","render","separator","type","depth","key","root","display"]),a([!1,void 0].includes(e.separator)||"string"==typeof e.separator&&1===e.separator.length,"Invalid separator"),a(!e.adjust||"function"==typeof e.adjust,"options.adjust must be a function"),a(!e.map||Array.isArray(e.map),"options.map must be an array"),a(!e.map||!e.adjust,"Cannot set both map and adjust options"),Object.assign(this,f.defaults,e),a("value"===this.type||void 0===this.ancestor,"Non-value references cannot reference ancestors"),Array.isArray(this.map)&&(this.map=new Map(this.map)),this.depth=this.path.length,this.key=this.path.length?this.path.join(this.separator):null,this.root=this.path[0],this.updateDisplay()}resolve(e,t,n,r,i={}){return a(!this.in||i.in,"Invalid in() reference usage"),"global"===this.type?this._resolve(n.context,t,i):"local"===this.type?this._resolve(r,t,i):this.ancestor?"root"===this.ancestor?this._resolve(t.ancestors[t.ancestors.length-1],t,i):(a(this.ancestor<=t.ancestors.length,"Invalid reference exceeds the schema root:",this.display),this._resolve(t.ancestors[this.ancestor-1],t,i)):this._resolve(e,t,i)}_resolve(e,t,n){let r;if("value"===this.type&&t.mainstay.shadow&&!1!==n.shadow&&(r=t.mainstay.shadow.get(this.absolute(t))),void 0===r&&(r=c(e,this.path,{iterables:this.iterables,functions:!0})),this.adjust&&(r=this.adjust(r)),this.map){const e=this.map.get(r);void 0!==e&&(r=e)}return t.mainstay&&t.mainstay.tracer.resolve(t,this,r),r}toString(){return this.display}absolute(e){return[...e.path.slice(0,-this.ancestor),...this.path]}clone(){return new f.Ref(this)}describe(){const e={path:this.path};"value"!==this.type&&(e.type=this.type),"."!==this.separator&&(e.separator=this.separator),"value"===this.type&&1!==this.ancestor&&(e.ancestor=this.ancestor),this.map&&(e.map=[...this.map]);for(const t of["adjust","iterables","render"])null!==this[t]&&void 0!==this[t]&&(e[t]=this[t]);return!1!==this.in&&(e.in=!0),{ref:e}}updateDisplay(){const e=null!==this.key?this.key:"";if("value"!==this.type)return void(this.display="ref:".concat(this.type,":").concat(e));if(!this.separator)return void(this.display="ref:".concat(e));if(!this.ancestor)return void(this.display="ref:".concat(this.separator).concat(e));if("root"===this.ancestor)return void(this.display="ref:root:".concat(e));if(1===this.ancestor)return void(this.display="ref:".concat(e||".."));const t=new Array(this.ancestor+1).fill(this.separator).join("");this.display="ref:".concat(t).concat(e||"")}},f.Ref.prototype[l.symbols.ref]=!0,t.build=function(e){return"value"===(e=Object.assign({},f.defaults,e)).type&&void 0===e.ancestor&&(e.ancestor=1),new f.Ref(e)},f.context=function(e,t,n={}){if(e=e.trim(),n){const r=void 0===n.global?"$":n.global;if(r!==t&&e.startsWith(r))return{key:e.slice(r.length),type:"global"};const i=void 0===n.local?"#":n.local;if(i!==t&&e.startsWith(i))return{key:e.slice(i.length),type:"local"};const o=void 0===n.root?"/":n.root;if(o!==t&&e.startsWith(o))return{key:e.slice(o.length),type:"value",root:!0}}return{key:e,type:"value"}},f.ancestor=function(e,t){if(!t)return[1,0];if(e[0]!==t)return[1,0];if(e[1]!==t)return[0,1];let n=2;for(;e[n]===t;)++n;return[n-1,n]},t.toSibling=0,t.toParent=1,t.Manager=class{constructor(){this.refs=[]}register(e,r){if(e)if(r=void 0===r?t.toParent:r,Array.isArray(e))for(const t of e)this.register(t,r);else if(l.isSchema(e))for(const t of e._refs.refs)t.ancestor-r>=0&&this.refs.push({ancestor:t.ancestor-r,root:t.root});else t.isRef(e)&&"value"===e.type&&e.ancestor-r>=0&&this.refs.push({ancestor:e.ancestor-r,root:e.root}),u=u||n(7),u.isTemplate(e)&&this.register(e.refs(),r)}get length(){return this.refs.length}clone(){const e=new t.Manager;return e.refs=s(this.refs),e}reset(){this.refs=[]}roots(){return this.refs.filter(e=>!e.ancestor).map(e=>e.root)}}},function(e,t,n){"use strict";const r=n(0),i={};e.exports=function(e,t,n){if(!1===t||null==t)return e;"string"==typeof(n=n||{})&&(n={separator:n});const o=Array.isArray(t);r(!o||!n.separator,"Separator option no valid for array-based chain");const a=o?t:t.split(n.separator||".");let s=e;for(let e=0;e<a.length;++e){let o=a[e];const c=n.iterables&&i.iterables(s);if(Array.isArray(s)||"set"===c){const e=Number(o);Number.isInteger(e)&&(o=e<0?s.length+e:e)}if(!s||"function"==typeof s&&!1===n.functions||!c&&void 0===s[o]){r(!n.strict||e+1===a.length,"Missing segment",o,"in reach path ",t),r("object"==typeof s||!0===n.functions||"function"!=typeof s,"Invalid segment",o,"in reach path ",t),s=n.default;break}s=c?"set"===c?[...s][o]:s.get(o):s[o]}return s},i.iterables=function(e){return e instanceof Set?"set":e instanceof Map?"map":void 0}},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const o=n(0),a=n(2),s=n(30),c=n(31),l=n(1),u=n(4),f=n(5),d={symbol:Symbol("template"),opens:new Array(1e3).join("\0"),closes:new Array(1e3).join("\ 1"),dateFormat:{date:Date.prototype.toDateString,iso:Date.prototype.toISOString,string:Date.prototype.toString,time:Date.prototype.toTimeString,utc:Date.prototype.toUTCString}};e.exports=d.Template=class{constructor(e,t){o("string"==typeof e,"Template source must be a string"),o(!e.includes("\0")&&!e.includes("\ 1"),"Template source cannot contain reserved control characters"),this.source=e,this.rendered=e,this._template=null,this._settings=a(t),this._parse()}_parse(){if(!this.source.includes("{"))return;const e=d.encode(this.source),t=d.split(e);let n=!1;const r=[],i=t.shift();i&&r.push(i);for(const e of t){const t="{"!==e[0],i=t?"}":"}}",o=e.indexOf(i);if(-1===o||"{"===e[1]){r.push("{".concat(d.decode(e)));continue}let a=e.slice(t?0:1,o);const s=":"===a[0];s&&(a=a.slice(1));const c=this._ref(d.decode(a),{raw:t,wrapped:s});r.push(c),"string"!=typeof c&&(n=!0);const l=e.slice(o+i.length);l&&r.push(d.decode(l))}n?this._template=r:this.rendered=r.join("")}static date(e,t){return d.dateFormat[t.dateFormat].call(e)}describe(e={}){if(!this._settings&&e.compact)return this.source;const t={template:this.source};return this._settings&&(t.options=this._settings),t}static build(e){return new d.Template(e.template,e.options)}isDynamic(){return!!this._template}static isTemplate(e){return!!e&&!!e[l.symbols.template]}refs(){if(!this._template)return;const e=[];for(const t of this._template)"string"!=typeof t&&e.push(...t.refs);return e}resolve(e,t,n,r){return this._template&&1===this._template.length?this._part(this._template[0],e,t,n,r,{}):this.render(e,t,n,r)}_part(e,...t){return e.ref?e.ref.resolve(...t):e.formula.evaluate(t)}render(e,t,n,r,i={}){if(!this.isDynamic())return this.rendered;const o=[];for(const a of this._template)if("string"==typeof a)o.push(a);else{const c=this._part(a,e,t,n,r,i),l=d.stringify(c,e,t,n,r,i);if(void 0!==l){const e=a.raw||!1===(i.errors&&i.errors.escapeHtml)?l:s(l);o.push(d.wrap(e,a.wrapped&&n.errors.wrap.label))}}return o.join("")}_ref(e,{raw:t,wrapped:n}){const r=[],i=e=>{const t=f.create(e,this._settings);return r.push(t),e=>t.resolve(...e)};try{var o=new c.Parser(e,{reference:i,functions:d.functions,constants:d.constants})}catch(t){throw t.message='Invalid template variable "'.concat(e,'" fails due to: ').concat(t.message),t}if(o.single){if("reference"===o.single.type){const e=r[0];return{ref:e,raw:t,refs:r,wrapped:n||"local"===e.type&&"label"===e.key}}return d.stringify(o.single.value)}return{formula:o,raw:t,refs:r}}toString(){return this.source}},d.Template.prototype[l.symbols.template]=!0,d.Template.prototype.isImmutable=!0,d.encode=function(e){return e.replace(/\\(\{+)/g,(e,t)=>d.opens.slice(0,t.length)).replace(/\\(\}+)/g,(e,t)=>d.closes.slice(0,t.length))},d.decode=function(e){return e.replace(/\u0000/g,"{").replace(/\u0001/g,"}")},d.split=function(e){const t=[];let n="";for(let r=0;r<e.length;++r){const i=e[r];if("{"===i){let i="";for(;r+1<e.length&&"{"===e[r+1];)i+="{",++r;t.push(n),n=i}else n+=i}return t.push(n),t},d.wrap=function(e,t){return t?1===t.length?"".concat(t).concat(e).concat(t):"".concat(t[0]).concat(e).concat(t[1]):e},d.stringify=function(e,t,n,o,a,s){const c=typeof e;let l=!1;if(f.isRef(e)&&e.render&&(l=e.in,e=e.resolve(t,n,o,a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({in:e.in},s))),null===e)return"null";if("string"===c)return e;if("number"===c||"function"===c||"symbol"===c)return e.toString();if("object"!==c)return JSON.stringify(e);if(e instanceof Date)return d.Template.date(e,o);if(e instanceof Map){const t=[];for(const[n,r]of e.entries())t.push("".concat(n.toString()," -> ").concat(r.toString()));e=t}if(!Array.isArray(e))return e.toString();let u="";for(const r of e)u=u+(u.length?", ":"")+d.stringify(r,t,n,o,a,s);return l?u:d.wrap(u,o.errors.wrap.array)},d.constants={true:!0,false:!1,null:null,second:1e3,minute:6e4,hour:36e5,day:864e5},d.functions={if:(e,t,n)=>e?t:n,msg(e){const[t,n,r,i,o]=this,a=o.messages;if(!a)return"";const s=u.template(t,a[0],e,n,r)||u.template(t,a[1],e,n,r);return s?s.render(t,n,r,i,o):""},number:e=>"number"==typeof e?e:"string"==typeof e?parseFloat(e):"boolean"==typeof e?e?1:0:e instanceof Date?e.getTime():null}},function(e,t,n){"use strict";const r=n(0),i=n(1),o=n(5),a={};t.schema=function(e,t,n={}){i.assertOptions(n,["appendPath","override"]);try{return a.schema(e,t,n)}catch(e){throw n.appendPath&&void 0!==e.path&&(e.message="".concat(e.message," (").concat(e.path,")")),e}},a.schema=function(e,t,n){r(void 0!==t,"Invalid undefined schema"),Array.isArray(t)&&(r(t.length,"Invalid empty array schema"),1===t.length&&(t=t[0]));const o=(t,...r)=>!1!==n.override?t.valid(e.override,...r):t.valid(...r);if(a.simple(t))return o(e,t);if("function"==typeof t)return e.custom(t);if(r("object"==typeof t,"Invalid schema content:",typeof t),i.isResolvable(t))return o(e,t);if(i.isSchema(t))return t;if(Array.isArray(t)){for(const n of t)if(!a.simple(n))return e.alternatives().try(...t);return o(e,...t)}return t instanceof RegExp?e.string().regex(t):t instanceof Date?o(e.date(),t):(r(Object.getPrototypeOf(t)===Object.getPrototypeOf({}),"Schema can only contain plain objects"),e.object().keys(t))},t.ref=function(e,t){return o.isRef(e)?e:o.create(e,t)},t.compile=function(e,n,o={}){i.assertOptions(o,["legacy"]);const s=n&&n[i.symbols.any];if(s)return r(o.legacy||s.version===i.version,"Cannot mix different versions of joi schemas:",s.version,i.version),n;if("object"!=typeof n||!o.legacy)return t.schema(e,n,{appendPath:!0});const c=a.walk(n);return c?c.compile(c.root,n):t.schema(e,n,{appendPath:!0})},a.walk=function(e){if("object"!=typeof e)return null;if(Array.isArray(e)){for(const t of e){const e=a.walk(t);if(e)return e}return null}const t=e[i.symbols.any];if(t)return{root:e[t.root],compile:t.compile};r(Object.getPrototypeOf(e)===Object.getPrototypeOf({}),"Schema can only contain plain objects");for(const t in e){const n=a.walk(e[t]);if(n)return n}return null},a.simple=function(e){return null===e||["boolean","string","number"].includes(typeof e)},t.when=function(e,n,s){if(void 0===s&&(r(n&&"object"==typeof n,"Missing options"),s=n,n=o.create(".")),Array.isArray(s)&&(s={switch:s}),i.assertOptions(s,["is","not","then","otherwise","switch","break"]),i.isSchema(n))return r(void 0===s.is,'"is" can not be used with a schema condition'),r(void 0===s.not,'"not" can not be used with a schema condition'),r(void 0===s.switch,'"switch" can not be used with a schema condition'),a.condition(e,{is:n,then:s.then,otherwise:s.otherwise,break:s.break});if(r(o.isRef(n)||"string"==typeof n,"Invalid condition:",n),r(void 0===s.not||void 0===s.is,'Cannot combine "is" with "not"'),void 0===s.switch){let c=s;void 0!==s.not&&(c={is:s.not,then:s.otherwise,otherwise:s.then,break:s.break});let l=void 0!==c.is?e.$_compile(c.is):e.$_root.invalid(null,!1,0,"").required();return r(void 0!==c.then||void 0!==c.otherwise,'options must have at least one of "then", "otherwise", or "switch"'),r(void 0===c.break||void 0===c.then||void 0===c.otherwise,"Cannot specify then, otherwise, and break all together"),void 0===s.is||o.isRef(s.is)||i.isSchema(s.is)||(l=l.required()),a.condition(e,{ref:t.ref(n),is:l,then:c.then,otherwise:c.otherwise,break:c.break})}r(Array.isArray(s.switch),'"switch" must be an array'),r(void 0===s.is,'Cannot combine "switch" with "is"'),r(void 0===s.not,'Cannot combine "switch" with "not"'),r(void 0===s.then,'Cannot combine "switch" with "then"');const c={ref:t.ref(n),switch:[],break:s.break};for(let t=0;t<s.switch.length;++t){const n=s.switch[t],a=t===s.switch.length-1;i.assertOptions(n,a?["is","then","otherwise"]:["is","then"]),r(void 0!==n.is,'Switch statement missing "is"'),r(void 0!==n.then,'Switch statement missing "then"');const l={is:e.$_compile(n.is),then:e.$_compile(n.then)};if(o.isRef(n.is)||i.isSchema(n.is)||(l.is=l.is.required()),a){r(void 0===s.otherwise||void 0===n.otherwise,'Cannot specify "otherwise" inside and outside a "switch"');const t=void 0!==s.otherwise?s.otherwise:n.otherwise;void 0!==t&&(r(void 0===c.break,"Cannot specify both otherwise and break"),l.otherwise=e.$_compile(t))}c.switch.push(l)}return c},a.condition=function(e,t){for(const n of["then","otherwise"])void 0===t[n]?delete t[n]:t[n]=e.$_compile(t[n]);return t}},function(e,t,n){"use strict";const r=n(0),i=n(2),o=n(7);t.compile=function(e,t){if("string"==typeof e)return r(!t,"Cannot set single message string"),new o(e);if(o.isTemplate(e))return r(!t,"Cannot set single message template"),e;r("object"==typeof e&&!Array.isArray(e),"Invalid message options"),t=t?i(t):{};for(let n in e){const i=e[n];if("root"===n||o.isTemplate(i)){t[n]=i;continue}if("string"==typeof i){t[n]=new o(i);continue}r("object"==typeof i&&!Array.isArray(i),"Invalid message for",n);const a=n;for(n in t[a]=t[a]||{},i){const e=i[n];"root"===n||o.isTemplate(e)?t[a][n]=e:(r("string"==typeof e,"Invalid message for",n,"in",a),t[a][n]=new o(e))}}return t},t.decompile=function(e){const t={};for(let n in e){const r=e[n];if("root"===n){t[n]=r;continue}if(o.isTemplate(r)){t[n]=r.describe({compact:!0});continue}const i=n;for(n in t[i]={},r){const e=r[n];t[i][n]="root"!==n?e.describe({compact:!0}):e}}return t},t.merge=function(e,n){if(!e)return t.compile(n);if(!n)return e;if("string"==typeof n)return new o(n);if(o.isTemplate(n))return n;const a=i(e);for(let e in n){const t=n[e];if("root"===e||o.isTemplate(t)){a[e]=t;continue}if("string"==typeof t){a[e]=new o(t);continue}r("object"==typeof t&&!Array.isArray(t),"Invalid message for",e);const i=e;for(e in a[i]=a[i]||{},t){const n=t[e];"root"===e||o.isTemplate(n)?a[i][e]=n:(r("string"==typeof n,"Invalid message for",e,"in",i),a[i][e]=new o(n))}}return a}},function(e,t,n){"use strict";const r=n(13),i={mismatched:null};e.exports=function(e,t,n){return n=Object.assign({prototype:!0},n),!!i.isDeepEqual(e,t,n,[])},i.isDeepEqual=function(e,t,n,o){if(e===t)return 0!==e||1/e==1/t;const a=typeof e;if(a!==typeof t)return!1;if(null===e||null===t)return!1;if("function"===a){if(!n.deepFunction||e.toString()!==t.toString())return!1}else if("object"!==a)return e!=e&&t!=t;const s=i.getSharedType(e,t,!!n.prototype);switch(s){case r.buffer:return!1;case r.promise:return e===t;case r.regex:return e.toString()===t.toString();case i.mismatched:return!1}for(let n=o.length-1;n>=0;--n)if(o[n].isSame(e,t))return!0;o.push(new i.SeenEntry(e,t));try{return!!i.isDeepEqualObj(s,e,t,n,o)}finally{o.pop()}},i.getSharedType=function(e,t,n){if(n)return Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?i.mismatched:r.getInternalProto(e);const o=r.getInternalProto(e);return o!==r.getInternalProto(t)?i.mismatched:o},i.valueOf=function(e){const t=e.valueOf;if(void 0===t)return e;try{return t.call(e)}catch(e){return e}},i.hasOwnEnumerableProperty=function(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)},i.isSetSimpleEqual=function(e,t){for(const n of Set.prototype.values.call(e))if(!Set.prototype.has.call(t,n))return!1;return!0},i.isDeepEqualObj=function(e,t,n,o,a){const{isDeepEqual:s,valueOf:c,hasOwnEnumerableProperty:l}=i,{keys:u,getOwnPropertySymbols:f}=Object;if(e===r.array){if(!o.part){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!s(t[e],n[e],o,a))return!1;return!0}for(const e of t)for(const t of n)if(s(e,t,o,a))return!0}else if(e===r.set){if(t.size!==n.size)return!1;if(!i.isSetSimpleEqual(t,n)){const e=new Set(Set.prototype.values.call(n));for(const n of Set.prototype.values.call(t)){if(e.delete(n))continue;let t=!1;for(const r of e)if(s(n,r,o,a)){e.delete(r),t=!0;break}if(!t)return!1}}}else if(e===r.map){if(t.size!==n.size)return!1;for(const[e,r]of Map.prototype.entries.call(t)){if(void 0===r&&!Map.prototype.has.call(n,e))return!1;if(!s(r,Map.prototype.get.call(n,e),o,a))return!1}}else if(e===r.error&&(t.name!==n.name||t.message!==n.message))return!1;const d=c(t),p=c(n);if((t!==d||n!==p)&&!s(d,p,o,a))return!1;const h=u(t);if(!o.part&&h.length!==u(n).length&&!o.skip)return!1;let m=0;for(const e of h)if(o.skip&&o.skip.includes(e))void 0===n[e]&&++m;else{if(!l(n,e))return!1;if(!s(t[e],n[e],o,a))return!1}if(!o.part&&h.length-m!==u(n).length)return!1;if(!1!==o.symbols){const e=f(t),r=new Set(f(n));for(const i of e){if(!o.skip||!o.skip.includes(i))if(l(t,i)){if(!l(n,i))return!1;if(!s(t[i],n[i],o,a))return!1}else if(l(n,i))return!1;r.delete(i)}for(const e of r)if(l(n,e))return!1}return!0},i.SeenEntry=class{constructor(e,t){this.obj=e,this.ref=t}isSame(e,t){return this.obj===e&&this.ref===t}}},function(e,t,n){"use strict";const r=n(0),i=n(2),o=n(15),a=n(1),s=n(8),c=n(4),l=n(17),u=n(18),f=n(5),d=n(7),p=n(19);let h;const m={types:{alternatives:n(33),any:n(3),array:n(39),boolean:n(40),date:n(41),function:n(42),link:n(45),number:n(46),object:n(47),string:n(48),symbol:n(52)},aliases:{alt:"alternatives",bool:"boolean",func:"function"},root:function(){const e={_types:new Set(Object.keys(m.types))};for(const t of e._types)e[t]=function(...e){return r(!e.length||["alternatives","link","object"].includes(t),"The",t,"type does not allow arguments"),m.generate(this,m.types[t],e)};for(const t of["allow","custom","disallow","equal","exist","forbidden","invalid","not","only","optional","options","prefs","preferences","required","strip","valid","when"])e[t]=function(...e){return this.any()[t](...e)};Object.assign(e,m.methods);for(const t in m.aliases){const n=m.aliases[t];e[t]=e[n]}return e.x=e.expression,p.setup&&p.setup(e),e}};m.methods={ValidationError:c.ValidationError,version:a.version,cache:o.provider,assert(e,t,...n){m.assert(e,t,!0,n)},attempt:(e,t,...n)=>m.assert(e,t,!1,n),build(e){return r("function"==typeof u.build,"Manifest functionality disabled"),u.build(this,e)},checkPreferences(e){a.checkPreferences(e)},compile(e,t){return s.compile(this,e,t)},defaults(e){r("function"==typeof e,"modifier must be a function");const t=Object.assign({},this);for(const n of t._types){const i=e(t[n]());r(a.isSchema(i),"modifier must return a valid schema object"),t[n]=function(...e){return m.generate(this,i,e)}}return t},expression:(...e)=>new d(...e),extend(...e){a.verifyFlat(e,"extend"),h=h||n(16),r(e.length,"You need to provide at least one extension"),this.assert(e,h.extensions);const t=Object.assign({},this);t._types=new Set(t._types);for(let n of e){"function"==typeof n&&(n=n(t)),this.assert(n,h.extension);const e=m.expandExtension(n,t);for(const n of e){r(void 0===t[n.type]||t._types.has(n.type),"Cannot override name",n.type);const e=n.base||this.any(),i=l.type(e,n);t._types.add(n.type),t[n.type]=function(...e){return m.generate(this,i,e)}}}return t},isError:c.ValidationError.isError,isExpression:d.isTemplate,isRef:f.isRef,isSchema:a.isSchema,in:(...e)=>f.in(...e),override:a.symbols.override,ref:(...e)=>f.create(...e),types(){const e={};for(const t of this._types)e[t]=this[t]();for(const t in m.aliases)e[t]=this[t]();return e}},m.assert=function(e,t,n,r){const o=r[0]instanceof Error||"string"==typeof r[0]?r[0]:null,s=o?r[1]:r[0],l=t.validate(e,a.preferences({errors:{stack:!0}},s||{}));let u=l.error;if(!u)return l.value;if(o instanceof Error)throw o;const f=n&&"function"==typeof u.annotate?u.annotate():u.message;throw u instanceof c.ValidationError==0&&(u=i(u)),u.message=o?"".concat(o," ").concat(f):f,u},m.generate=function(e,t,n){return r(e,"Must be invoked on a Joi instance."),t.$_root=e,t._definition.args&&n.length?t._definition.args(t,...n):t},m.expandExtension=function(e,t){if("string"==typeof e.type)return[e];const n=[];for(const r of t._types)if(e.type.test(r)){const i=Object.assign({},e);i.type=r,i.base=t[r](),n.push(i)}return n},e.exports=m.root()},function(e,t,n){"use strict";const r=n(28);e.exports=class extends Error{constructor(e){super(e.filter(e=>""!==e).map(e=>"string"==typeof e?e:e instanceof Error?e.message:r(e)).join(" ")||"Unknown error"),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,t.assert)}}},function(e,t,n){"use strict";const r={};t=e.exports={array:Array.prototype,buffer:!1,date:Date.prototype,error:Error.prototype,generic:Object.prototype,map:Map.prototype,promise:Promise.prototype,regex:RegExp.prototype,set:Set.prototype,weakMap:WeakMap.prototype,weakSet:WeakSet.prototype},r.typeMap=new Map([["[object Error]",t.error],["[object Map]",t.map],["[object Promise]",t.promise],["[object Set]",t.set],["[object WeakMap]",t.weakMap],["[object WeakSet]",t.weakSet]]),t.getInternalProto=function(e){if(Array.isArray(e))return t.array;if(e instanceof Date)return t.date;if(e instanceof RegExp)return t.regex;if(e instanceof Error)return t.error;const n=Object.prototype.toString.call(e);return r.typeMap.get(n)||t.generic}},function(e,t,n){"use strict";t.keys=function(e,t={}){return!1!==t.symbols?Reflect.ownKeys(e):Object.getOwnPropertyNames(e)}},function(e,t,n){"use strict";const r=n(0),i=n(2),o=n(1),a={max:1e3,supported:new Set(["undefined","boolean","number","string"])};t.provider={provision:e=>new a.Cache(e)},a.Cache=class{constructor(e={}){o.assertOptions(e,["max"]),r(void 0===e.max||e.max&&e.max>0&&isFinite(e.max),"Invalid max cache size"),this._max=e.max||a.max,this._map=new Map,this._list=new a.List}get length(){return this._map.size}set(e,t){if(null!==e&&!a.supported.has(typeof e))return;let n=this._map.get(e);if(n)return n.value=t,void this._list.first(n);n=this._list.unshift({key:e,value:t}),this._map.set(e,n),this._compact()}get(e){const t=this._map.get(e);if(t)return this._list.first(t),i(t.value)}_compact(){if(this._map.size>this._max){const e=this._list.pop();this._map.delete(e.key)}}},a.List=class{constructor(){this.tail=null,this.head=null}unshift(e){return e.next=null,e.prev=this.head,this.head&&(this.head.next=e),this.head=e,this.tail||(this.tail=e),e}first(e){e!==this.head&&(this._remove(e),this.unshift(e))}pop(){return this._remove(this.tail)}_remove(e){const{next:t,prev:n}=e;return t.prev=n,n&&(n.next=t),e===this.tail&&(this.tail=t),e.prev=null,e.next=null,e}}},function(e,t,n){"use strict";const r=n(11),i={};i.wrap=r.string().min(1).max(2).allow(!1),t.preferences=r.object({allowUnknown:r.boolean(),abortEarly:r.boolean(),artifacts:r.boolean(),cache:r.boolean(),context:r.object(),convert:r.boolean(),dateFormat:r.valid("date","iso","string","time","utc"),debug:r.boolean(),errors:{escapeHtml:r.boolean(),label:r.valid("path","key",!1),language:[r.string(),r.object().ref()],render:r.boolean(),stack:r.boolean(),wrap:{label:i.wrap,array:i.wrap}},externals:r.boolean(),messages:r.object(),noDefaults:r.boolean(),nonEnumerables:r.boolean(),presence:r.valid("required","optional","forbidden"),skipFunctions:r.boolean(),stripUnknown:r.object({arrays:r.boolean(),objects:r.boolean()}).or("arrays","objects").allow(!0,!1),warnings:r.boolean()}).strict(),i.nameRx=/^[a-zA-Z0-9]\w*$/,i.rule=r.object({alias:r.array().items(r.string().pattern(i.nameRx)).single(),args:r.array().items(r.string(),r.object({name:r.string().pattern(i.nameRx).required(),ref:r.boolean(),assert:r.alternatives([r.function(),r.object().schema()]).conditional("ref",{is:!0,then:r.required()}),normalize:r.function(),message:r.string().when("assert",{is:r.function(),then:r.required()})})),convert:r.boolean(),manifest:r.boolean(),method:r.function().allow(!1),multi:r.boolean(),validate:r.function()}),t.extension=r.object({type:r.alternatives([r.string(),r.object().regex()]).required(),args:r.function(),cast:r.object().pattern(i.nameRx,r.object({from:r.function().maxArity(1).required(),to:r.function().minArity(1).maxArity(2).required()})),base:r.object().schema().when("type",{is:r.object().regex(),then:r.forbidden()}),coerce:[r.function().maxArity(3),r.object({method:r.function().maxArity(3).required(),from:r.array().items(r.string()).single()})],flags:r.object().pattern(i.nameRx,r.object({setter:r.string(),default:r.any()})),manifest:{build:r.function().arity(2)},messages:[r.object(),r.string()],modifiers:r.object().pattern(i.nameRx,r.function().minArity(1).maxArity(2)),overrides:r.object().pattern(i.nameRx,r.function()),prepare:r.function().maxArity(3),rebuild:r.function().arity(1),rules:r.object().pattern(i.nameRx,i.rule),terms:r.object().pattern(i.nameRx,r.object({init:r.array().allow(null).required(),manifest:r.object().pattern(/.+/,[r.valid("schema","single"),r.object({mapped:r.object({from:r.string().required(),to:r.string().required()}).required()})])})),validate:r.function().maxArity(3)}).strict(),t.extensions=r.array().items(r.object(),r.function().arity(1)).strict(),i.desc={buffer:r.object({buffer:r.string()}),func:r.object({function:r.function().required(),options:{literal:!0}}),override:r.object({override:!0}),ref:r.object({ref:r.object({type:r.valid("value","global","local"),path:r.array().required(),separator:r.string().length(1).allow(!1),ancestor:r.number().min(0).integer().allow("root"),map:r.array().items(r.array().length(2)).min(1),adjust:r.function(),iterables:r.boolean(),in:r.boolean(),render:r.boolean()}).required()}),regex:r.object({regex:r.string().min(3)}),special:r.object({special:r.valid("deep").required()}),template:r.object({template:r.string().required(),options:r.object()}),value:r.object({value:r.alternatives([r.object(),r.array()]).required()})},i.desc.entity=r.alternatives([r.array().items(r.link("...")),r.boolean(),r.function(),r.number(),r.string(),i.desc.buffer,i.desc.func,i.desc.ref,i.desc.regex,i.desc.special,i.desc.template,i.desc.value,r.link("/")]),i.desc.values=r.array().items(null,r.boolean(),r.function(),r.number().allow(1/0,-1/0),r.string().allow(""),r.symbol(),i.desc.buffer,i.desc.func,i.desc.override,i.desc.ref,i.desc.regex,i.desc.template,i.desc.value),i.desc.messages=r.object().pattern(/.+/,[r.string(),i.desc.template,r.object().pattern(/.+/,[r.string(),i.desc.template])]),t.description=r.object({type:r.string().required(),flags:r.object({cast:r.string(),default:r.any(),description:r.string(),empty:r.link("/"),failover:i.desc.entity,id:r.string(),label:r.string(),only:!0,presence:["optional","required","forbidden"],result:["raw","strip"],strip:r.boolean(),unit:r.string()}).unknown(),preferences:{allowUnknown:r.boolean(),abortEarly:r.boolean(),artifacts:r.boolean(),cache:r.boolean(),convert:r.boolean(),dateFormat:["date","iso","string","time","utc"],errors:{escapeHtml:r.boolean(),label:["path","key"],language:[r.string(),i.desc.ref],wrap:{label:i.wrap,array:i.wrap}},externals:r.boolean(),messages:i.desc.messages,noDefaults:r.boolean(),nonEnumerables:r.boolean(),presence:["required","optional","forbidden"],skipFunctions:r.boolean(),stripUnknown:r.object({arrays:r.boolean(),objects:r.boolean()}).or("arrays","objects").allow(!0,!1),warnings:r.boolean()},allow:i.desc.values,invalid:i.desc.values,rules:r.array().min(1).items({name:r.string().required(),args:r.object().min(1),keep:r.boolean(),message:[r.string(),i.desc.messages],warn:r.boolean()}),keys:r.object().pattern(/.*/,r.link("/")),link:i.desc.ref}).pattern(/^[a-z]\w*$/,r.any())},function(e,t,n){"use strict";const r=n(0),i=n(2),o=n(1),a=n(9),s={};t.type=function(e,t){const n=Object.getPrototypeOf(e),c=i(n),l=e._assign(Object.create(c)),u=Object.assign({},t);delete u.base,c._definition=u;const f=n._definition||{};u.messages=a.merge(f.messages,u.messages),u.properties=Object.assign({},f.properties,u.properties),l.type=u.type,u.flags=Object.assign({},f.flags,u.flags);const d=Object.assign({},f.terms);if(u.terms)for(const e in u.terms){const t=u.terms[e];r(void 0===l.$_terms[e],"Invalid term override for",u.type,e),l.$_terms[e]=t.init,d[e]=t}u.terms=d,u.args||(u.args=f.args),u.prepare=s.prepare(u.prepare,f.prepare),u.coerce&&("function"==typeof u.coerce&&(u.coerce={method:u.coerce}),u.coerce.from&&!Array.isArray(u.coerce.from)&&(u.coerce={method:u.coerce.method,from:[].concat(u.coerce.from)})),u.coerce=s.coerce(u.coerce,f.coerce),u.validate=s.validate(u.validate,f.validate);const p=Object.assign({},f.rules);if(u.rules)for(const e in u.rules){const t=u.rules[e];r("object"==typeof t,"Invalid rule definition for",u.type,e);let n=t.method;if(void 0===n&&(n=function(){return this.$_addRule(e)}),n&&(r(!c[e],"Rule conflict in",u.type,e),c[e]=n),r(!p[e],"Rule conflict in",u.type,e),p[e]=t,t.alias){const e=[].concat(t.alias);for(const n of e)c[n]=t.method}t.args&&(t.argsByName=new Map,t.args=t.args.map(e=>("string"==typeof e&&(e={name:e}),r(!t.argsByName.has(e.name),"Duplicated argument name",e.name),o.isSchema(e.assert)&&(e.assert=e.assert.strict().label(e.name)),t.argsByName.set(e.name,e),e)))}u.rules=p;const h=Object.assign({},f.modifiers);if(u.modifiers)for(const e in u.modifiers){r(!c[e],"Rule conflict in",u.type,e);const t=u.modifiers[e];r("function"==typeof t,"Invalid modifier definition for",u.type,e);const n=function(t){return this.rule({[e]:t})};c[e]=n,h[e]=t}if(u.modifiers=h,u.overrides){c._super=n,l.$_super={};for(const e in u.overrides)r(n[e],"Cannot override missing",e),u.overrides[e][o.symbols.parent]=n[e],l.$_super[e]=n[e].bind(l);Object.assign(c,u.overrides)}u.cast=Object.assign({},f.cast,u.cast);const m=Object.assign({},f.manifest,u.manifest);return m.build=s.build(u.manifest&&u.manifest.build,f.manifest&&f.manifest.build),u.manifest=m,u.rebuild=s.rebuild(u.rebuild,f.rebuild),l},s.build=function(e,t){return e&&t?function(n,r){return t(e(n,r),r)}:e||t},s.coerce=function(e,t){return e&&t?{from:e.from&&t.from?[...new Set([...e.from,...t.from])]:null,method(n,r){let i;if((!t.from||t.from.includes(typeof n))&&(i=t.method(n,r),i)){if(i.errors||void 0===i.value)return i;n=i.value}if(!e.from||e.from.includes(typeof n)){const t=e.method(n,r);if(t)return t}return i}}:e||t},s.prepare=function(e,t){return e&&t?function(n,r){const i=e(n,r);if(i){if(i.errors||void 0===i.value)return i;n=i.value}return t(n,r)||i}:e||t},s.rebuild=function(e,t){return e&&t?function(n){t(n),e(n)}:e||t},s.validate=function(e,t){return e&&t?function(n,r){const i=t(n,r);if(i){if(i.errors&&(!Array.isArray(i.errors)||i.errors.length))return i;n=i.value}return e(n,r)||i}:e||t}},function(e,t){},function(e,t){},function(e,t,n){"use strict";const r=n(0),i=n(2),o=n(14),a={};e.exports=a.merge=function(e,t,n){if(r(e&&"object"==typeof e,"Invalid target value: must be an object"),r(null==t||"object"==typeof t,"Invalid source value: must be null, undefined, or an object"),!t)return e;if(n=Object.assign({nullOverride:!0,mergeArrays:!0},n),Array.isArray(t)){r(Array.isArray(e),"Cannot merge array onto an object"),n.mergeArrays||(e.length=0);for(let r=0;r<t.length;++r)e.push(i(t[r],{symbols:n.symbols}));return e}const s=o.keys(t,n);for(let r=0;r<s.length;++r){const o=s[r];if("__proto__"===o||!Object.prototype.propertyIsEnumerable.call(t,o))continue;const c=t[o];if(c&&"object"==typeof c){if(e[o]===c)continue;!e[o]||"object"!=typeof e[o]||Array.isArray(e[o])!==Array.isArray(c)||c instanceof Date||c instanceof RegExp?e[o]=i(c,{symbols:n.symbols}):a.merge(e[o],c,n)}else(null!=c||n.nullOverride)&&(e[o]=c)}return e}},function(e,t,n){"use strict";const r=n(0),i=n(10),o=n(1),a={};e.exports=a.Values=class{constructor(e,t){this._values=new Set(e),this._refs=new Set(t),this._lowercase=a.lowercases(e),this._override=!1}get length(){return this._values.size+this._refs.size}add(e,t){o.isResolvable(e)?this._refs.has(e)||(this._refs.add(e),t&&t.register(e)):this.has(e,null,null,!1)||(this._values.add(e),"string"==typeof e&&this._lowercase.set(e.toLowerCase(),e))}static merge(e,t,n){if(e=e||new a.Values,t){if(t._override)return t.clone();for(const n of[...t._values,...t._refs])e.add(n)}if(n)for(const t of[...n._values,...n._refs])e.remove(t);return e.length?e:null}remove(e){o.isResolvable(e)?this._refs.delete(e):(this._values.delete(e),"string"==typeof e&&this._lowercase.delete(e.toLowerCase()))}has(e,t,n,r){return!!this.get(e,t,n,r)}get(e,t,n,r){if(!this.length)return!1;if(this._values.has(e))return{value:e};if("string"==typeof e&&e&&r){const t=this._lowercase.get(e.toLowerCase());if(t)return{value:t}}if(!this._refs.size&&"object"!=typeof e)return!1;if("object"==typeof e)for(const t of this._values)if(i(t,e))return{value:t};if(t)for(const o of this._refs){const a=o.resolve(e,t,n,null,{in:!0});if(void 0===a)continue;const s=o.in&&"object"==typeof a?Array.isArray(a)?a:Object.keys(a):[a];for(const t of s)if(typeof t==typeof e)if(r&&e&&"string"==typeof e){if(t.toLowerCase()===e.toLowerCase())return{value:t,ref:o}}else if(i(t,e))return{value:t,ref:o}}return!1}override(){this._override=!0}values(e){if(e&&e.display){const e=[];for(const t of[...this._values,...this._refs])void 0!==t&&e.push(t);return e}return Array.from([...this._values,...this._refs])}clone(){const e=new a.Values(this._values,this._refs);return e._override=this._override,e}concat(e){r(!e._override,"Cannot concat override set of values");const t=new a.Values([...this._values,...e._values],[...this._refs,...e._refs]);return t._override=this._override,t}describe(){const e=[];this._override&&e.push({override:!0});for(const t of this._values.values())e.push(t&&"object"==typeof t?{value:t}:t);for(const t of this._refs.values())e.push(t.describe());return e}},a.Values.prototype[o.symbols.values]=!0,a.Values.prototype.slice=a.Values.prototype.clone,a.lowercases=function(e){const t=new Map;if(e)for(const n of e)"string"==typeof n&&t.set(n.toLowerCase(),n);return t}},function(e,t,n){"use strict";const r=n(43),i=n(0),o=n(2),a=n(44),s=n(3),c=n(1),l=n(8),u=n(4),f=n(5),d=n(7),p={renameDefaults:{alias:!1,multiple:!1,override:!1}};e.exports=s.extend({type:"_keys",properties:{typeof:"object"},flags:{unknown:{default:!1}},terms:{dependencies:{init:null},keys:{init:null,manifest:{mapped:{from:"schema",to:"key"}}},patterns:{init:null},renames:{init:null}},args:(e,t)=>e.keys(t),validate(e,{schema:t,error:n,state:r,prefs:i}){if(!e||typeof e!==t.$_property("typeof")||Array.isArray(e))return{value:e,errors:n("object.base",{type:t.$_property("typeof")})};if(!(t.$_terms.renames||t.$_terms.dependencies||t.$_terms.keys||t.$_terms.patterns||t.$_terms.externals))return;e=p.clone(e,i);const o=[];if(t.$_terms.renames&&!p.rename(t,e,r,i,o))return{value:e,errors:o};if(!t.$_terms.keys&&!t.$_terms.patterns&&!t.$_terms.dependencies)return{value:e,errors:o};const a=new Set(Object.keys(e));if(t.$_terms.keys){const n=[e,...r.ancestors];for(const s of t.$_terms.keys){const t=s.key,c=e[t];a.delete(t);const l=r.localize([...r.path,t],n,s),u=s.schema.$_validate(c,l,i);if(u.errors){if(i.abortEarly)return{value:e,errors:u.errors};o.push(...u.errors)}else"strip"===s.schema._flags.result||void 0===u.value&&void 0!==c?delete e[t]:void 0!==u.value&&(e[t]=u.value)}}if(a.size||t._flags._hasPatternMatch){const n=p.unknown(t,e,a,o,r,i);if(n)return n}if(t.$_terms.dependencies)for(const n of t.$_terms.dependencies){if(n.key&&void 0===n.key.resolve(e,r,i,null,{shadow:!1}))continue;const a=p.dependencies[n.rel](t,n,e,r,i);if(a){const n=t.$_createError(a.code,e,a.context,r,i);if(i.abortEarly)return{value:e,errors:n};o.push(n)}}return{value:e,errors:o}},rules:{and:{method(...e){return c.verifyFlat(e,"and"),p.dependency(this,"and",null,e)}},append:{method(e){return null==e||0===Object.keys(e).length?this:this.keys(e)}},assert:{method(e,t,n){d.isTemplate(e)||(e=l.ref(e)),i(void 0===n||"string"==typeof n,"Message must be a string"),t=this.$_compile(t,{appendPath:!0});const r=this.$_addRule({name:"assert",args:{subject:e,schema:t,message:n}});return r.$_mutateRegister(e),r.$_mutateRegister(t),r},validate(e,{error:t,prefs:n,state:r},{subject:i,schema:o,message:a}){const s=i.resolve(e,r,n),c=f.isRef(i)?i.absolute(r):[];return o.$_match(s,r.localize(c,[e,...r.ancestors],o),n)?e:t("object.assert",{subject:i,message:a})},args:["subject","schema","message"],multi:!0},instance:{method(e,t){return i("function"==typeof e,"constructor must be a function"),t=t||e.name,this.$_addRule({name:"instance",args:{constructor:e,name:t}})},validate:(e,t,{constructor:n,name:r})=>e instanceof n?e:t.error("object.instance",{type:r,value:e}),args:["constructor","name"]},keys:{method(e){i(void 0===e||"object"==typeof e,"Object schema must be a valid object"),i(!c.isSchema(e),"Object schema cannot be a joi schema");const t=this.clone();if(e)if(Object.keys(e).length){t.$_terms.keys=t.$_terms.keys?t.$_terms.keys.filter(t=>!e.hasOwnProperty(t.key)):new p.Keys;for(const n in e)c.tryWithPath(()=>t.$_terms.keys.push({key:n,schema:this.$_compile(e[n])}),n)}else t.$_terms.keys=new p.Keys;else t.$_terms.keys=null;return t.$_mutateRebuild()}},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate:(e,t,{limit:n},{name:r,operator:i,args:o})=>c.compare(Object.keys(e).length,n,i)?e:t.error("object."+r,{limit:o.limit,value:e}),args:[{name:"limit",ref:!0,assert:c.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},nand:{method(...e){return c.verifyFlat(e,"nand"),p.dependency(this,"nand",null,e)}},or:{method(...e){return c.verifyFlat(e,"or"),p.dependency(this,"or",null,e)}},oxor:{method(...e){return p.dependency(this,"oxor",null,e)}},pattern:{method(e,t,n={}){const r=e instanceof RegExp;r||(e=this.$_compile(e,{appendPath:!0})),i(void 0!==t,"Invalid rule"),c.assertOptions(n,["fallthrough","matches"]),r&&i(!e.flags.includes("g")&&!e.flags.includes("y"),"pattern should not use global or sticky mode"),t=this.$_compile(t,{appendPath:!0});const o=this.clone();o.$_terms.patterns=o.$_terms.patterns||[];const a={[r?"regex":"schema"]:e,rule:t};return n.matches&&(a.matches=this.$_compile(n.matches),"array"!==a.matches.type&&(a.matches=a.matches.$_root.array().items(a.matches)),o.$_mutateRegister(a.matches),o.$_setFlag("_hasPatternMatch",!0,{clone:!1})),n.fallthrough&&(a.fallthrough=!0),o.$_terms.patterns.push(a),o.$_mutateRegister(t),o}},ref:{method(){return this.$_addRule("ref")},validate:(e,t)=>f.isRef(e)?e:t.error("object.refType",{value:e})},regex:{method(){return this.$_addRule("regex")},validate:(e,t)=>e instanceof RegExp?e:t.error("object.regex",{value:e})},rename:{method(e,t,n={}){i("string"==typeof e||e instanceof RegExp,"Rename missing the from argument"),i("string"==typeof t||t instanceof d,"Invalid rename to argument"),i(t!==e,"Cannot rename key to same name:",e),c.assertOptions(n,["alias","ignoreUndefined","override","multiple"]);const o=this.clone();o.$_terms.renames=o.$_terms.renames||[];for(const t of o.$_terms.renames)i(t.from!==e,"Cannot rename the same key multiple times");return t instanceof d&&o.$_mutateRegister(t),o.$_terms.renames.push({from:e,to:t,options:r(p.renameDefaults,n)}),o}},schema:{method(e="any"){return this.$_addRule({name:"schema",args:{type:e}})},validate:(e,t,{type:n})=>!c.isSchema(e)||"any"!==n&&e.type!==n?t.error("object.schema",{type:n}):e},unknown:{method(e){return this.$_setFlag("unknown",!1!==e)}},with:{method(e,t,n={}){return p.dependency(this,"with",e,t,n)}},without:{method(e,t,n={}){return p.dependency(this,"without",e,t,n)}},xor:{method(...e){return c.verifyFlat(e,"xor"),p.dependency(this,"xor",null,e)}}},overrides:{default(e,t){return void 0===e&&(e=c.symbols.deepDefault),this.$_parent("default",e,t)}},rebuild(e){if(e.$_terms.keys){const t=new a.Sorter;for(const n of e.$_terms.keys)c.tryWithPath(()=>t.add(n,{after:n.schema.$_rootReferences(),group:n.key}),n.key);e.$_terms.keys=new p.Keys(...t.nodes)}},manifest:{build(e,t){if(t.keys&&(e=e.keys(t.keys)),t.dependencies)for(const{rel:n,key:r=null,peers:i,options:o}of t.dependencies)e=p.dependency(e,n,r,i,o);if(t.patterns)for(const{regex:n,schema:r,rule:i,fallthrough:o,matches:a}of t.patterns)e=e.pattern(n||r,i,{fallthrough:o,matches:a});if(t.renames)for(const{from:n,to:r,options:i}of t.renames)e=e.rename(n,r,i);return e}},messages:{"object.and":"{{#label}} contains {{#presentWithLabels}} without its required peers {{#missingWithLabels}}","object.assert":'{{#label}} is invalid because {if(#subject.key, `"` + #subject.key + `" failed to ` + (#message || "pass the assertion test"), #message || "the assertion failed")}',"object.base":"{{#label}} must be of type {{#type}}","object.instance":"{{#label}} must be an instance of {{:#type}}","object.length":'{{#label}} must have {{#limit}} key{if(#limit == 1, "", "s")}',"object.max":'{{#label}} must have less than or equal to {{#limit}} key{if(#limit == 1, "", "s")}',"object.min":'{{#label}} must have at least {{#limit}} key{if(#limit == 1, "", "s")}',"object.missing":"{{#label}} must contain at least one of {{#peersWithLabels}}","object.nand":"{{:#mainWithLabel}} must not exist simultaneously with {{#peersWithLabels}}","object.oxor":"{{#label}} contains a conflict between optional exclusive peers {{#peersWithLabels}}","object.pattern.match":"{{#label}} keys failed to match pattern requirements","object.refType":"{{#label}} must be a Joi reference","object.regex":"{{#label}} must be a RegExp object","object.rename.multiple":"{{#label}} cannot rename {{:#from}} because multiple renames are disabled and another key was already renamed to {{:#to}}","object.rename.override":"{{#label}} cannot rename {{:#from}} because override is disabled and target {{:#to}} exists","object.schema":"{{#label}} must be a Joi schema of {{#type}} type","object.unknown":"{{#label}} is not allowed","object.with":"{{:#mainWithLabel}} missing required peer {{:#peerWithLabel}}","object.without":"{{:#mainWithLabel}} conflict with forbidden peer {{:#peerWithLabel}}","object.xor":"{{#label}} contains a conflict between exclusive peers {{#peersWithLabels}}"}}),p.clone=function(e,t){if("object"==typeof e){if(t.nonEnumerables)return o(e,{shallow:!0});const n=Object.create(Object.getPrototypeOf(e));return Object.assign(n,e),n}const n=function(...t){return e.apply(this,t)};return n.prototype=o(e.prototype),Object.defineProperty(n,"name",{value:e.name,writable:!1}),Object.defineProperty(n,"length",{value:e.length,writable:!1}),Object.assign(n,e),n},p.dependency=function(e,t,n,r,o){i(null===n||"string"==typeof n,t,"key must be a strings"),o||(o=r.length>1&&"object"==typeof r[r.length-1]?r.pop():{}),c.assertOptions(o,["separator"]),r=[].concat(r);const a=c.default(o.separator,"."),s=[];for(const e of r)i("string"==typeof e,t,"peers must be a string or a reference"),s.push(l.ref(e,{separator:a,ancestor:0,prefix:!1}));null!==n&&(n=l.ref(n,{separator:a,ancestor:0,prefix:!1}));const u=e.clone();return u.$_terms.dependencies=u.$_terms.dependencies||[],u.$_terms.dependencies.push(new p.Dependency(t,n,s,r)),u},p.dependencies={and(e,t,n,r,i){const o=[],a=[],s=t.peers.length;for(const e of t.peers)void 0===e.resolve(n,r,i,null,{shadow:!1})?o.push(e.key):a.push(e.key);if(o.length!==s&&a.length!==s)return{code:"object.and",context:{present:a,presentWithLabels:p.keysToLabels(e,a),missing:o,missingWithLabels:p.keysToLabels(e,o)}}},nand(e,t,n,r,i){const o=[];for(const e of t.peers)void 0!==e.resolve(n,r,i,null,{shadow:!1})&&o.push(e.key);if(o.length!==t.peers.length)return;const a=t.paths[0],s=t.paths.slice(1);return{code:"object.nand",context:{main:a,mainWithLabel:p.keysToLabels(e,a),peers:s,peersWithLabels:p.keysToLabels(e,s)}}},or(e,t,n,r,i){for(const e of t.peers)if(void 0!==e.resolve(n,r,i,null,{shadow:!1}))return;return{code:"object.missing",context:{peers:t.paths,peersWithLabels:p.keysToLabels(e,t.paths)}}},oxor(e,t,n,r,i){const o=[];for(const e of t.peers)void 0!==e.resolve(n,r,i,null,{shadow:!1})&&o.push(e.key);if(!o.length||1===o.length)return;const a={peers:t.paths,peersWithLabels:p.keysToLabels(e,t.paths)};return a.present=o,a.presentWithLabels=p.keysToLabels(e,o),{code:"object.oxor",context:a}},with(e,t,n,r,i){for(const o of t.peers)if(void 0===o.resolve(n,r,i,null,{shadow:!1}))return{code:"object.with",context:{main:t.key.key,mainWithLabel:p.keysToLabels(e,t.key.key),peer:o.key,peerWithLabel:p.keysToLabels(e,o.key)}}},without(e,t,n,r,i){for(const o of t.peers)if(void 0!==o.resolve(n,r,i,null,{shadow:!1}))return{code:"object.without",context:{main:t.key.key,mainWithLabel:p.keysToLabels(e,t.key.key),peer:o.key,peerWithLabel:p.keysToLabels(e,o.key)}}},xor(e,t,n,r,i){const o=[];for(const e of t.peers)void 0!==e.resolve(n,r,i,null,{shadow:!1})&&o.push(e.key);if(1===o.length)return;const a={peers:t.paths,peersWithLabels:p.keysToLabels(e,t.paths)};return 0===o.length?{code:"object.missing",context:a}:(a.present=o,a.presentWithLabels=p.keysToLabels(e,o),{code:"object.xor",context:a})}},p.keysToLabels=function(e,t){return Array.isArray(t)?t.map(t=>e.$_mapLabels(t)):e.$_mapLabels(t)},p.rename=function(e,t,n,r,i){const o={};for(const a of e.$_terms.renames){const s=[],c="string"!=typeof a.from;if(c)for(const e in t){if(void 0===t[e]&&a.options.ignoreUndefined)continue;if(e===a.to)continue;const n=a.from.exec(e);n&&s.push({from:e,to:a.to,match:n})}else!Object.prototype.hasOwnProperty.call(t,a.from)||void 0===t[a.from]&&a.options.ignoreUndefined||s.push(a);for(const l of s){const s=l.from;let u=l.to;if(u instanceof d&&(u=u.render(t,n,r,l.match)),s!==u){if(!a.options.multiple&&o[u]&&(i.push(e.$_createError("object.rename.multiple",t,{from:s,to:u,pattern:c},n,r)),r.abortEarly))return!1;if(Object.prototype.hasOwnProperty.call(t,u)&&!a.options.override&&!o[u]&&(i.push(e.$_createError("object.rename.override",t,{from:s,to:u,pattern:c},n,r)),r.abortEarly))return!1;void 0===t[s]?delete t[u]:t[u]=t[s],o[u]=!0,a.options.alias||delete t[s]}}}return!0},p.unknown=function(e,t,n,r,i,o){if(e.$_terms.patterns){let a=!1;const s=e.$_terms.patterns.map(e=>{if(e.matches)return a=!0,[]}),c=[t,...i.ancestors];for(const a of n){const l=t[a],u=[...i.path,a];for(let f=0;f<e.$_terms.patterns.length;++f){const d=e.$_terms.patterns[f];if(d.regex){const e=d.regex.test(a);if(i.mainstay.tracer.debug(i,"rule","pattern.".concat(f),e?"pass":"error"),!e)continue}else if(!d.schema.$_match(a,i.nest(d.schema,"pattern.".concat(f)),o))continue;n.delete(a);const p=i.localize(u,c,{schema:d.rule,key:a}),h=d.rule.$_validate(l,p,o);if(h.errors){if(o.abortEarly)return{value:t,errors:h.errors};r.push(...h.errors)}if(d.matches&&s[f].push(a),t[a]=h.value,!d.fallthrough)break}}if(a)for(let n=0;n<s.length;++n){const a=s[n];if(!a)continue;const l=e.$_terms.patterns[n].matches,f=i.localize(i.path,c,l),d=l.$_validate(a,f,o);if(d.errors){const n=u.details(d.errors,{override:!1});n.matches=a;const s=e.$_createError("object.pattern.match",t,n,i,o);if(o.abortEarly)return{value:t,errors:s};r.push(s)}}}if(n.size&&(e.$_terms.keys||e.$_terms.patterns)){if(o.stripUnknown&&!e._flags.unknown||o.skipFunctions){const e=!(!o.stripUnknown||!0!==o.stripUnknown&&!o.stripUnknown.objects);for(const r of n)e?(delete t[r],n.delete(r)):"function"==typeof t[r]&&n.delete(r)}if(!c.default(e._flags.unknown,o.allowUnknown))for(const a of n){const n=i.localize([...i.path,a],[]),s=e.$_createError("object.unknown",t[a],{child:a},n,o,{flags:!1});if(o.abortEarly)return{value:t,errors:s};r.push(s)}}},p.Dependency=class{constructor(e,t,n,r){this.rel=e,this.key=t,this.peers=n,this.paths=r}describe(){const e={rel:this.rel,peers:this.paths};return null!==this.key&&(e.key=this.key.key),"."!==this.peers[0].separator&&(e.options={separator:this.peers[0].separator}),e}},p.Keys=class extends Array{concat(e){const t=this.slice(),n=new Map;for(let e=0;e<t.length;++e)n.set(t[e].key,e);for(const r of e){const e=r.key,i=n.get(e);void 0!==i?t[i]={key:e,schema:t[i].schema.concat(r.schema)}:t.push(r)}return t}}},function(e,t,n){"use strict";const r=n(24),i=n(25),o={minDomainSegments:2,nonAsciiRx:/[^\x00-\x7f]/,domainControlRx:/[\x00-\x20@\:\/]/,tldSegmentRx:/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,domainSegmentRx:/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,URL:r.URL||URL};t.analyze=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(!e)return i.code("DOMAIN_NON_EMPTY_STRING");if(e.length>256)return i.code("DOMAIN_TOO_LONG");if(o.nonAsciiRx.test(e)){if(!1===t.allowUnicode)return i.code("DOMAIN_INVALID_UNICODE_CHARS");e=e.normalize("NFC")}if(o.domainControlRx.test(e))return i.code("DOMAIN_INVALID_CHARS");e=o.punycode(e);const n=t.minDomainSegments||o.minDomainSegments,r=e.split(".");if(r.length<n)return i.code("DOMAIN_SEGMENTS_COUNT");if(t.maxDomainSegments&&r.length>t.maxDomainSegments)return i.code("DOMAIN_SEGMENTS_COUNT_MAX");const a=t.tlds;if(a){const e=r[r.length-1].toLowerCase();if(a.deny&&a.deny.has(e)||a.allow&&!a.allow.has(e))return i.code("DOMAIN_FORBIDDEN_TLDS")}for(let e=0;e<r.length;++e){const t=r[e];if(!t.length)return i.code("DOMAIN_EMPTY_SEGMENT");if(t.length>63)return i.code("DOMAIN_LONG_SEGMENT");if(e<r.length-1){if(!o.domainSegmentRx.test(t))return i.code("DOMAIN_INVALID_CHARS")}else if(!o.tldSegmentRx.test(t))return i.code("DOMAIN_INVALID_TLDS_CHARS")}return null},t.isValid=function(e,n){return!t.analyze(e,n)},o.punycode=function(e){try{return new o.URL("http://".concat(e)).host}catch(t){return e}}},function(e,t){},function(e,t,n){"use strict";t.codes={EMPTY_STRING:"Address must be a non-empty string",FORBIDDEN_UNICODE:"Address contains forbidden Unicode characters",MULTIPLE_AT_CHAR:"Address cannot contain more than one @ character",MISSING_AT_CHAR:"Address must contain one @ character",EMPTY_LOCAL:"Address local part cannot be empty",ADDRESS_TOO_LONG:"Address too long",LOCAL_TOO_LONG:"Address local part too long",EMPTY_LOCAL_SEGMENT:"Address local part contains empty dot-separated segment",INVALID_LOCAL_CHARS:"Address local part contains invalid character",DOMAIN_NON_EMPTY_STRING:"Domain must be a non-empty string",DOMAIN_TOO_LONG:"Domain too long",DOMAIN_INVALID_UNICODE_CHARS:"Domain contains forbidden Unicode characters",DOMAIN_INVALID_CHARS:"Domain contains invalid character",DOMAIN_INVALID_TLDS_CHARS:"Domain contains invalid tld character",DOMAIN_SEGMENTS_COUNT:"Domain lacks the minimum required number of segments",DOMAIN_SEGMENTS_COUNT_MAX:"Domain contains too many segments",DOMAIN_FORBIDDEN_TLDS:"Domain uses forbidden TLD",DOMAIN_EMPTY_SEGMENT:"Domain contains empty dot-separated segment",DOMAIN_LONG_SEGMENT:"Domain contains dot-separated segment that is too long"},t.code=function(e){return{code:e,error:t.codes[e]}}},function(e,t,n){"use strict";const r=n(0),i=n(27),o={generate:function(){const e={},t="!\\$&'\\(\\)\\*\\+,;=",n="\\w-\\.~%\\dA-Fa-f"+t+":@",r="["+n+"]",i="(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])";e.ipv4address="(?:"+i+"\\.){3}"+i;const o="[\\dA-Fa-f]{1,4}",a="(?:"+o+":"+o+"|"+e.ipv4address+")",s="(?:"+o+":){6}"+a,c="::(?:"+o+":){5}"+a,l="(?:"+o+")?::(?:"+o+":){4}"+a,u="(?:(?:"+o+":){0,1}"+o+")?::(?:"+o+":){3}"+a,f="(?:(?:"+o+":){0,2}"+o+")?::(?:"+o+":){2}"+a,d="(?:(?:"+o+":){0,3}"+o+")?::"+o+":"+a,p="(?:(?:"+o+":){0,4}"+o+")?::"+a;e.ipv4Cidr="(?:\\d|[1-2]\\d|3[0-2])",e.ipv6Cidr="(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])",e.ipv6address="(?:"+s+"|"+c+"|"+l+"|"+u+"|"+f+"|"+d+"|"+p+"|(?:(?:[\\dA-Fa-f]{1,4}:){0,5}[\\dA-Fa-f]{1,4})?::[\\dA-Fa-f]{1,4}|(?:(?:[\\dA-Fa-f]{1,4}:){0,6}[\\dA-Fa-f]{1,4})?::)",e.ipvFuture="v[\\dA-Fa-f]+\\.[\\w-\\.~"+t+":]+",e.scheme="[a-zA-Z][a-zA-Z\\d+-\\.]*",e.schemeRegex=new RegExp(e.scheme);const h="[\\w-\\.~%\\dA-Fa-f"+t+":]*",m="(?:\\[(?:"+e.ipv6address+"|"+e.ipvFuture+")\\]|"+e.ipv4address+"|[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=]{1,255})",b="(?:"+h+"@)?"+m+"(?::\\d*)?",y="(?:"+h+"@)?("+m+")(?::\\d*)?",g=r+"+",v="(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*",w="\\/(?:"+g+v+")?",_=g+v,k="[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=@]+"+v;return e.hierPart="(?:(?:\\/\\/"+b+v+")|"+w+"|"+_+"|(?:\\/\\/\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*(?:\\/[\\w-\\.~%\\dA-Fa-f!\\$&'\\(\\)\\*\\+,;=:@]*)*))",e.hierPartCapture="(?:(?:\\/\\/"+y+v+")|"+w+"|"+_+")",e.relativeRef="(?:(?:\\/\\/"+b+v+")|"+w+"|"+k+"|)",e.relativeRefCapture="(?:(?:\\/\\/"+y+v+")|"+w+"|"+k+"|)",e.query="["+n+"\\/\\?]*(?=#|$)",e.queryWithSquareBrackets="["+n+"\\[\\]\\/\\?]*(?=#|$)",e.fragment="["+n+"\\/\\?]*",e}};o.rfc3986=o.generate(),t.ip={v4Cidr:o.rfc3986.ipv4Cidr,v6Cidr:o.rfc3986.ipv6Cidr,ipv4:o.rfc3986.ipv4address,ipv6:o.rfc3986.ipv6address,ipvfuture:o.rfc3986.ipvFuture},o.createRegex=function(e){const t=o.rfc3986,n="(?:\\?"+(e.allowQuerySquareBrackets?t.queryWithSquareBrackets:t.query)+")?(?:#"+t.fragment+")?",a=e.domain?t.relativeRefCapture:t.relativeRef;if(e.relativeOnly)return o.wrap(a+n);let s="";if(e.scheme){r(e.scheme instanceof RegExp||"string"==typeof e.scheme||Array.isArray(e.scheme),"scheme must be a RegExp, String, or Array");const n=[].concat(e.scheme);r(n.length>=1,"scheme must have at least 1 scheme specified");const o=[];for(let e=0;e<n.length;++e){const a=n[e];r(a instanceof RegExp||"string"==typeof a,"scheme at position "+e+" must be a RegExp or String"),a instanceof RegExp?o.push(a.source.toString()):(r(t.schemeRegex.test(a),"scheme at position "+e+" must be a valid scheme"),o.push(i(a)))}s=o.join("|")}const c="(?:"+(s?"(?:"+s+")":t.scheme)+":"+(e.domain?t.hierPartCapture:t.hierPart)+")",l=e.allowRelative?"(?:"+c+"|"+a+")":c;return o.wrap(l+n,s)},o.wrap=function(e,t){return{raw:e="(?=.)(?!https?:/$)".concat(e),regex:new RegExp("^".concat(e,"$")),scheme:t}},o.uriRegex=o.createRegex({}),t.regex=function(e={}){return e.scheme||e.allowRelative||e.relativeOnly||e.allowQuerySquareBrackets||e.domain?o.createRegex(e):o.uriRegex}},function(e,t,n){"use strict";e.exports=function(e){return e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}},function(e,t,n){"use strict";e.exports=function(...e){try{return JSON.stringify.apply(null,e)}catch(e){return"[Cannot display object: "+e.message+"]"}}},function(e){e.exports=JSON.parse('{"version":"17.3.0"}')},function(e,t,n){"use strict";const r={};e.exports=function(e){if(!e)return"";let t="";for(let n=0;n<e.length;++n){const i=e.charCodeAt(n);r.isSafe(i)?t+=e[n]:t+=r.escapeHtmlChar(i)}return t},r.escapeHtmlChar=function(e){const t=r.namedHtml[e];if(void 0!==t)return t;if(e>=256)return"&#"+e+";";const n=e.toString(16).padStart(2,"0");return"&#x".concat(n,";")},r.isSafe=function(e){return void 0!==r.safeCharCodes[e]},r.namedHtml={38:"&amp;",60:"&lt;",62:"&gt;",34:"&quot;",160:"&nbsp;",162:"&cent;",163:"&pound;",164:"&curren;",169:"&copy;",174:"&reg;"},r.safeCharCodes=function(){const e={};for(let t=32;t<123;++t)(t>=97||t>=65&&t<=90||t>=48&&t<=57||32===t||46===t||44===t||45===t||58===t||95===t)&&(e[t]=null);return e}()},function(e,t,n){"use strict";const r={operators:["!","^","*","/","%","+","-","<","<=",">",">=","==","!=","&&","||","??"],operatorCharacters:["!","^","*","/","%","+","-","<","=",">","&","|","?"],operatorsOrder:[["^"],["*","/","%"],["+","-"],["<","<=",">",">="],["==","!="],["&&"],["||","??"]],operatorsPrefix:["!","n"],literals:{'"':'"',"`":"`","'":"'","[":"]"},numberRx:/^(?:[0-9]*\.?[0-9]*){1}$/,tokenRx:/^[\w\$\#\.\@\:\{\}]+$/,symbol:Symbol("formula"),settings:Symbol("settings")};t.Parser=class{constructor(e,t={}){if(!t[r.settings]&&t.constants)for(const e in t.constants){const n=t.constants[e];if(null!==n&&!["boolean","number","string"].includes(typeof n))throw new Error("Formula constant ".concat(e," contains invalid ").concat(typeof n," value type"))}this.settings=t[r.settings]?t:Object.assign({[r.settings]:!0,constants:{},functions:{}},t),this.single=null,this._parts=null,this._parse(e)}_parse(e){let n=[],i="",o=0,a=!1;const s=e=>{if(o)throw new Error("Formula missing closing parenthesis");const s=n.length?n[n.length-1]:null;if(a||i||e){if(s&&"reference"===s.type&&")"===e)return s.type="function",s.value=this._subFormula(i,s.value),void(i="");if(")"===e){const e=new t.Parser(i,this.settings);n.push({type:"segment",value:e})}else if(a){if("]"===a)return n.push({type:"reference",value:i}),void(i="");n.push({type:"literal",value:i})}else if(r.operatorCharacters.includes(i))s&&"operator"===s.type&&r.operators.includes(s.value+i)?s.value+=i:n.push({type:"operator",value:i});else if(i.match(r.numberRx))n.push({type:"constant",value:parseFloat(i)});else if(void 0!==this.settings.constants[i])n.push({type:"constant",value:this.settings.constants[i]});else{if(!i.match(r.tokenRx))throw new Error("Formula contains invalid token: ".concat(i));n.push({type:"reference",value:i})}i=""}};for(const t of e)a?t===a?(s(),a=!1):i+=t:o?"("===t?(i+=t,++o):")"===t?(--o,o?i+=t:s(t)):i+=t:t in r.literals?a=r.literals[t]:"("===t?(s(),++o):r.operatorCharacters.includes(t)?(s(),i=t,s()):" "!==t?i+=t:s();s(),n=n.map((e,t)=>"operator"!==e.type||"-"!==e.value||t&&"operator"!==n[t-1].type?e:{type:"operator",value:"n"});let c=!1;for(const e of n){if("operator"===e.type){if(r.operatorsPrefix.includes(e.value))continue;if(!c)throw new Error("Formula contains an operator in invalid position");if(!r.operators.includes(e.value))throw new Error("Formula contains an unknown operator ".concat(e.value))}else if(c)throw new Error("Formula missing expected operator");c=!c}if(!c)throw new Error("Formula contains invalid trailing operator");1===n.length&&["reference","literal","constant"].includes(n[0].type)&&(this.single={type:"reference"===n[0].type?"reference":"value",value:n[0].value}),this._parts=n.map(e=>{if("operator"===e.type)return r.operatorsPrefix.includes(e.value)?e:e.value;if("reference"!==e.type)return e.value;if(this.settings.tokenRx&&!this.settings.tokenRx.test(e.value))throw new Error("Formula contains invalid reference ".concat(e.value));return this.settings.reference?this.settings.reference(e.value):r.reference(e.value)})}_subFormula(e,n){const i=this.settings.functions[n];if("function"!=typeof i)throw new Error("Formula contains unknown function ".concat(n));let o=[];if(e){let t="",i=0,a=!1;const s=()=>{if(!t)throw new Error("Formula contains function ".concat(n," with invalid arguments ").concat(e));o.push(t),t=""};for(let n=0;n<e.length;++n){const o=e[n];a?(t+=o,o===a&&(a=!1)):o in r.literals&&!i?(t+=o,a=r.literals[o]):","!==o||i?(t+=o,"("===o?++i:")"===o&&--i):s()}s()}return o=o.map(e=>new t.Parser(e,this.settings)),function(e){const t=[];for(const n of o)t.push(n.evaluate(e));return i.call(e,...t)}}evaluate(e){const t=this._parts.slice();for(let n=t.length-2;n>=0;--n){const i=t[n];if(i&&"operator"===i.type){const o=t[n+1];t.splice(n+1,1);const a=r.evaluate(o,e);t[n]=r.single(i.value,a)}}return r.operatorsOrder.forEach(n=>{for(let i=1;i<t.length-1;)if(n.includes(t[i])){const n=t[i],o=r.evaluate(t[i-1],e),a=r.evaluate(t[i+1],e);t.splice(i,2);const s=r.calculate(n,o,a);t[i-1]=0===s?0:s}else i+=2}),r.evaluate(t[0],e)}},t.Parser.prototype[r.symbol]=!0,r.reference=function(e){return function(t){return t&&void 0!==t[e]?t[e]:null}},r.evaluate=function(e,t){return null===e?null:"function"==typeof e?e(t):e[r.symbol]?e.evaluate(t):e},r.single=function(e,t){if("!"===e)return!t;const n=-t;return 0===n?0:n},r.calculate=function(e,t,n){if("??"===e)return r.exists(t)?t:n;if("string"==typeof t||"string"==typeof n){if("+"===e)return(t=r.exists(t)?t:"")+(r.exists(n)?n:"")}else switch(e){case"^":return Math.pow(t,n);case"*":return t*n;case"/":return t/n;case"%":return t%n;case"+":return t+n;case"-":return t-n}switch(e){case"<":return t<n;case"<=":return t<=n;case">":return t>n;case">=":return t>=n;case"==":return t===n;case"!=":return t!==n;case"&&":return t&&n;case"||":return t||n}return null},r.exists=function(e){return null!=e}},function(e,t){},function(e,t,n){"use strict";const r=n(0),i=n(3),o=n(1),a=n(8),s=n(4),c=n(5),l={};e.exports=i.extend({type:"alternatives",flags:{match:{default:"any"}},terms:{matches:{init:[],register:c.toSibling}},args:(e,...t)=>1===t.length&&Array.isArray(t[0])?e.try(...t[0]):e.try(...t),validate(e,t){const{schema:n,error:r,state:i,prefs:o}=t;if(n._flags.match){let t,a=0;for(let r=0;r<n.$_terms.matches.length;++r){const s=n.$_terms.matches[r],c=i.nest(s.schema,"match.".concat(r));c.snapshot();const l=s.schema.$_validate(e,c,o);l.errors?c.restore():(++a,t=l.value)}return a?"one"===n._flags.match?1===a?{value:t}:{errors:r("alternatives.one")}:a===n.$_terms.matches.length?{value:e}:{errors:r("alternatives.all")}:{errors:r("alternatives.any")}}const a=[];for(let t=0;t<n.$_terms.matches.length;++t){const r=n.$_terms.matches[t];if(r.schema){const n=i.nest(r.schema,"match.".concat(t));n.snapshot();const s=r.schema.$_validate(e,n,o);if(!s.errors)return s;n.restore(),a.push({schema:r.schema,reports:s.errors});continue}const s=r.ref?r.ref.resolve(e,i,o):e,c=r.is?[r]:r.switch;for(let n=0;n<c.length;++n){const a=c[n],{is:l,then:u,otherwise:f}=a,d="match.".concat(t).concat(r.switch?"."+n:"");if(l.$_match(s,i.nest(l,"".concat(d,".is")),o)){if(u)return u.$_validate(e,i.nest(u,"".concat(d,".then")),o)}else if(f)return f.$_validate(e,i.nest(f,"".concat(d,".otherwise")),o)}}return l.errors(a,t)},rules:{conditional:{method(e,t){r(!this._flags._endedSwitch,"Unreachable condition"),r(!this._flags.match,"Cannot combine match mode",this._flags.match,"with conditional rule"),r(void 0===t.break,"Cannot use break option with alternatives conditional");const n=this.clone(),i=a.when(n,e,t),o=i.is?[i]:i.switch;for(const e of o)if(e.then&&e.otherwise){n.$_setFlag("_endedSwitch",!0,{clone:!1});break}return n.$_terms.matches.push(i),n.$_mutateRebuild()}},match:{method(e){if(r(["any","one","all"].includes(e),"Invalid alternatives match mode",e),"any"!==e)for(const t of this.$_terms.matches)r(t.schema,"Cannot combine match mode",e,"with conditional rules");return this.$_setFlag("match",e)}},try:{method(...e){r(e.length,"Missing alternative schemas"),o.verifyFlat(e,"try"),r(!this._flags._endedSwitch,"Unreachable condition");const t=this.clone();for(const n of e)t.$_terms.matches.push({schema:t.$_compile(n)});return t.$_mutateRebuild()}}},overrides:{label(e){return this.$_parent("label",e).$_modify({each:(t,n)=>"is"!==n.path[0]?t.label(e):void 0,ref:!1})}},rebuild(e){e.$_modify({each:t=>{o.isSchema(t)&&"array"===t.type&&e.$_setFlag("_arrayItems",!0,{clone:!1})}})},manifest:{build(e,t){if(t.matches)for(const n of t.matches){const{schema:t,ref:r,is:i,not:o,then:a,otherwise:s}=n;e=t?e.try(t):r?e.conditional(r,{is:i,then:a,not:o,otherwise:s,switch:n.switch}):e.conditional(i,{then:a,otherwise:s})}return e}},messages:{"alternatives.all":"{{#label}} does not match all of the required types","alternatives.any":"{{#label}} does not match any of the allowed types","alternatives.match":"{{#label}} does not match any of the allowed types","alternatives.one":"{{#label}} matches more than one allowed type","alternatives.types":"{{#label}} must be one of {{#types}}"}}),l.errors=function(e,{error:t,state:n}){if(!e.length)return{errors:t("alternatives.any")};if(1===e.length)return{errors:e[0].reports};const r=new Set,i=[];for(const{reports:o,schema:a}of e){if(o.length>1)return l.unmatched(e,t);const c=o[0];if(c instanceof s.Report==0)return l.unmatched(e,t);if(c.state.path.length!==n.path.length){i.push({type:a.type,report:c});continue}if("any.only"===c.code){for(const e of c.local.valids)r.add(e);continue}const[u,f]=c.code.split(".");"base"===f?r.add(u):i.push({type:a.type,report:c})}return i.length?1===i.length?{errors:i[0].report}:l.unmatched(e,t):{errors:t("alternatives.types",{types:[...r]})}},l.unmatched=function(e,t){const n=[];for(const t of e)n.push(...t.reports);return{errors:t("alternatives.match",s.details(n,{override:!1}))}}},function(e,t,n){"use strict";const r=n(0),i=n(2),o=n(10),a=n(20),s=n(15),c=n(1),l=n(8),u=n(4),f=n(17),d=n(18),p=n(9),h=n(35),m=n(5),b=n(19),y=n(36),g=n(21),v={Base:class{constructor(e){this.type=e,this.$_root=null,this._definition={},this._reset()}_reset(){this._ids=new h.Ids,this._preferences=null,this._refs=new m.Manager,this._cache=null,this._valids=null,this._invalids=null,this._flags={},this._rules=[],this._singleRules=new Map,this.$_terms={},this.$_temp={ruleset:null,whens:{}}}describe(){return r("function"==typeof d.describe,"Manifest functionality disabled"),d.describe(this)}allow(...e){return c.verifyFlat(e,"allow"),this._values(e,"_valids")}alter(e){r(e&&"object"==typeof e&&!Array.isArray(e),"Invalid targets argument"),r(!this._inRuleset(),"Cannot set alterations inside a ruleset");const t=this.clone();t.$_terms.alterations=t.$_terms.alterations||[];for(const n in e){const i=e[n];r("function"==typeof i,"Alteration adjuster for",n,"must be a function"),t.$_terms.alterations.push({target:n,adjuster:i})}return t.$_temp.ruleset=!1,t}artifact(e){return r(void 0!==e,"Artifact cannot be undefined"),r(!this._cache,"Cannot set an artifact with a rule cache"),this.$_setFlag("artifact",e)}cast(e){return r(!1===e||"string"==typeof e,"Invalid to value"),r(!1===e||this._definition.cast[e],"Type",this.type,"does not support casting to",e),this.$_setFlag("cast",!1===e?void 0:e)}default(e,t){return this._default("default",e,t)}description(e){return r(e&&"string"==typeof e,"Description must be a non-empty string"),this.$_setFlag("description",e)}empty(e){const t=this.clone();return void 0!==e&&(e=t.$_compile(e,{override:!1})),t.$_setFlag("empty",e,{clone:!1})}error(e){return r(e,"Missing error"),r(e instanceof Error||"function"==typeof e,"Must provide a valid Error object or a function"),this.$_setFlag("error",e)}example(e,t={}){return r(void 0!==e,"Missing example"),c.assertOptions(t,["override"]),this._inner("examples",e,{single:!0,override:t.override})}external(e,t){return"object"==typeof e&&(r(!t,"Cannot combine options with description"),t=e.description,e=e.method),r("function"==typeof e,"Method must be a function"),r(void 0===t||t&&"string"==typeof t,"Description must be a non-empty string"),this._inner("externals",{method:e,description:t},{single:!0})}failover(e,t){return this._default("failover",e,t)}forbidden(){return this.presence("forbidden")}id(e){return e?(r("string"==typeof e,"id must be a non-empty string"),r(/^[^\.]+$/.test(e),"id cannot contain period character"),this.$_setFlag("id",e)):this.$_setFlag("id",void 0)}invalid(...e){return this._values(e,"_invalids")}label(e){return r(e&&"string"==typeof e,"Label name must be a non-empty string"),this.$_setFlag("label",e)}meta(e){return r(void 0!==e,"Meta cannot be undefined"),this._inner("metas",e,{single:!0})}note(...e){r(e.length,"Missing notes");for(const t of e)r(t&&"string"==typeof t,"Notes must be non-empty strings");return this._inner("notes",e)}only(e=!0){return r("boolean"==typeof e,"Invalid mode:",e),this.$_setFlag("only",e)}optional(){return this.presence("optional")}prefs(e){r(e,"Missing preferences"),r(void 0===e.context,"Cannot override context"),r(void 0===e.externals,"Cannot override externals"),r(void 0===e.warnings,"Cannot override warnings"),r(void 0===e.debug,"Cannot override debug"),c.checkPreferences(e);const t=this.clone();return t._preferences=c.preferences(t._preferences,e),t}presence(e){return r(["optional","required","forbidden"].includes(e),"Unknown presence mode",e),this.$_setFlag("presence",e)}raw(e=!0){return this.$_setFlag("result",e?"raw":void 0)}result(e){return r(["raw","strip"].includes(e),"Unknown result mode",e),this.$_setFlag("result",e)}required(){return this.presence("required")}strict(e){const t=this.clone(),n=void 0!==e&&!e;return t._preferences=c.preferences(t._preferences,{convert:n}),t}strip(e=!0){return this.$_setFlag("result",e?"strip":void 0)}tag(...e){r(e.length,"Missing tags");for(const t of e)r(t&&"string"==typeof t,"Tags must be non-empty strings");return this._inner("tags",e)}unit(e){return r(e&&"string"==typeof e,"Unit name must be a non-empty string"),this.$_setFlag("unit",e)}valid(...e){c.verifyFlat(e,"valid");const t=this.allow(...e);return t.$_setFlag("only",!!t._valids,{clone:!1}),t}when(e,t){const n=this.clone();n.$_terms.whens||(n.$_terms.whens=[]);const i=l.when(n,e,t);if(!["any","link"].includes(n.type)){const e=i.is?[i]:i.switch;for(const t of e)r(!t.then||"any"===t.then.type||t.then.type===n.type,"Cannot combine",n.type,"with",t.then&&t.then.type),r(!t.otherwise||"any"===t.otherwise.type||t.otherwise.type===n.type,"Cannot combine",n.type,"with",t.otherwise&&t.otherwise.type)}return n.$_terms.whens.push(i),n.$_mutateRebuild()}cache(e){r(!this._inRuleset(),"Cannot set caching inside a ruleset"),r(!this._cache,"Cannot override schema cache"),r(void 0===this._flags.artifact,"Cannot cache a rule with an artifact");const t=this.clone();return t._cache=e||s.provider.provision(),t.$_temp.ruleset=!1,t}clone(){const e=Object.create(Object.getPrototypeOf(this));return this._assign(e)}concat(e){r(c.isSchema(e),"Invalid schema object"),r("any"===this.type||"any"===e.type||e.type===this.type,"Cannot merge type",this.type,"with another type:",e.type),r(!this._inRuleset(),"Cannot concatenate onto a schema with open ruleset"),r(!e._inRuleset(),"Cannot concatenate a schema with open ruleset");let t=this.clone();if("any"===this.type&&"any"!==e.type){const n=e.clone();for(const e of Object.keys(t))"type"!==e&&(n[e]=t[e]);t=n}t._ids.concat(e._ids),t._refs.register(e,m.toSibling),t._preferences=t._preferences?c.preferences(t._preferences,e._preferences):e._preferences,t._valids=g.merge(t._valids,e._valids,e._invalids),t._invalids=g.merge(t._invalids,e._invalids,e._valids);for(const n of e._singleRules.keys())t._singleRules.has(n)&&(t._rules=t._rules.filter(e=>e.keep||e.name!==n),t._singleRules.delete(n));for(const n of e._rules)e._definition.rules[n.method].multi||t._singleRules.set(n.name,n),t._rules.push(n);if(t._flags.empty&&e._flags.empty){t._flags.empty=t._flags.empty.concat(e._flags.empty);const n=Object.assign({},e._flags);delete n.empty,a(t._flags,n)}else if(e._flags.empty){t._flags.empty=e._flags.empty;const n=Object.assign({},e._flags);delete n.empty,a(t._flags,n)}else a(t._flags,e._flags);for(const n in e.$_terms){const r=e.$_terms[n];r?t.$_terms[n]?t.$_terms[n]=t.$_terms[n].concat(r):t.$_terms[n]=r.slice():t.$_terms[n]||(t.$_terms[n]=r)}return this.$_root._tracer&&this.$_root._tracer._combine(t,[this,e]),t.$_mutateRebuild()}extend(e){return r(!e.base,"Cannot extend type with another base"),f.type(this,e)}extract(e){return e=Array.isArray(e)?e:e.split("."),this._ids.reach(e)}fork(e,t){r(!this._inRuleset(),"Cannot fork inside a ruleset");let n=this;for(let r of[].concat(e))r=Array.isArray(r)?r:r.split("."),n=n._ids.fork(r,t,n);return n.$_temp.ruleset=!1,n}rule(e){const t=this._definition;c.assertOptions(e,Object.keys(t.modifiers)),r(!1!==this.$_temp.ruleset,"Cannot apply rules to empty ruleset or the last rule added does not support rule properties");const n=null===this.$_temp.ruleset?this._rules.length-1:this.$_temp.ruleset;r(n>=0&&n<this._rules.length,"Cannot apply rules to empty ruleset");const o=this.clone();for(let a=n;a<o._rules.length;++a){const n=o._rules[a],s=i(n);for(const i in e)t.modifiers[i](s,e[i]),r(s.name===n.name,"Cannot change rule name");o._rules[a]=s,o._singleRules.get(s.name)===n&&o._singleRules.set(s.name,s)}return o.$_temp.ruleset=!1,o.$_mutateRebuild()}get ruleset(){r(!this._inRuleset(),"Cannot start a new ruleset without closing the previous one");const e=this.clone();return e.$_temp.ruleset=e._rules.length,e}get $(){return this.ruleset}tailor(e){e=[].concat(e),r(!this._inRuleset(),"Cannot tailor inside a ruleset");let t=this;if(this.$_terms.alterations)for(const{target:n,adjuster:i}of this.$_terms.alterations)e.includes(n)&&(t=i(t),r(c.isSchema(t),"Alteration adjuster for",n,"failed to return a schema object"));return t=t.$_modify({each:t=>t.tailor(e),ref:!1}),t.$_temp.ruleset=!1,t.$_mutateRebuild()}tracer(){return b.location?b.location(this):this}validate(e,t){return y.entry(e,this,t)}validateAsync(e,t){return y.entryAsync(e,this,t)}$_addRule(e){"string"==typeof e&&(e={name:e}),r(e&&"object"==typeof e,"Invalid options"),r(e.name&&"string"==typeof e.name,"Invalid rule name");for(const t in e)r("_"!==t[0],"Cannot set private rule properties");const t=Object.assign({},e);t._resolve=[],t.method=t.method||t.name;const n=this._definition.rules[t.method],i=t.args;r(n,"Unknown rule",t.method);const o=this.clone();if(i){r(1===Object.keys(i).length||Object.keys(i).length===this._definition.rules[t.name].args.length,"Invalid rule definition for",this.type,t.name);for(const e in i){let a=i[e];if(void 0!==a){if(n.argsByName){const s=n.argsByName.get(e);if(s.ref&&c.isResolvable(a))t._resolve.push(e),o.$_mutateRegister(a);else if(s.normalize&&(a=s.normalize(a),i[e]=a),s.assert){const t=c.validateArg(a,e,s);r(!t,t,"or reference")}}i[e]=a}else delete i[e]}}return n.multi||(o._ruleRemove(t.name,{clone:!1}),o._singleRules.set(t.name,t)),!1===o.$_temp.ruleset&&(o.$_temp.ruleset=null),n.priority?o._rules.unshift(t):o._rules.push(t),o}$_compile(e,t){return l.schema(this.$_root,e,t)}$_createError(e,t,n,r,i,o={}){const a=!1!==o.flags?this._flags:{},s=o.messages?p.merge(this._definition.messages,o.messages):this._definition.messages;return new u.Report(e,t,n,a,s,r,i)}$_getFlag(e){return this._flags[e]}$_getRule(e){return this._singleRules.get(e)}$_mapLabels(e){return e=Array.isArray(e)?e:e.split("."),this._ids.labels(e)}$_match(e,t,n,r){(n=Object.assign({},n)).abortEarly=!0,n._externals=!1,t.snapshot();const i=!y.validate(e,this,t,n,r).errors;return t.restore(),i}$_modify(e){return c.assertOptions(e,["each","once","ref","schema"]),h.schema(this,e)||this}$_mutateRebuild(){return r(!this._inRuleset(),"Cannot add this rule inside a ruleset"),this._refs.reset(),this._ids.reset(),this.$_modify({each:(e,{source:t,name:n,path:r,key:i})=>{const o=this._definition[t][n]&&this._definition[t][n].register;!1!==o&&this.$_mutateRegister(e,{family:o,key:i})}}),this._definition.rebuild&&this._definition.rebuild(this),this.$_temp.ruleset=!1,this}$_mutateRegister(e,{family:t,key:n}={}){this._refs.register(e,t),this._ids.register(e,{key:n})}$_property(e){return this._definition.properties[e]}$_reach(e){return this._ids.reach(e)}$_rootReferences(){return this._refs.roots()}$_setFlag(e,t,n={}){r("_"===e[0]||!this._inRuleset(),"Cannot set flag inside a ruleset");const i=this._definition.flags[e]||{};if(o(t,i.default)&&(t=void 0),o(t,this._flags[e]))return this;const a=!1!==n.clone?this.clone():this;return void 0!==t?(a._flags[e]=t,a.$_mutateRegister(t)):delete a._flags[e],"_"!==e[0]&&(a.$_temp.ruleset=!1),a}$_parent(e,...t){return this[e][c.symbols.parent].call(this,...t)}$_validate(e,t,n){return y.validate(e,this,t,n)}_assign(e){e.type=this.type,e.$_root=this.$_root,e.$_temp=Object.assign({},this.$_temp),e.$_temp.whens={},e._ids=this._ids.clone(),e._preferences=this._preferences,e._valids=this._valids&&this._valids.clone(),e._invalids=this._invalids&&this._invalids.clone(),e._rules=this._rules.slice(),e._singleRules=i(this._singleRules,{shallow:!0}),e._refs=this._refs.clone(),e._flags=Object.assign({},this._flags),e._cache=null,e.$_terms={};for(const t in this.$_terms)e.$_terms[t]=this.$_terms[t]?this.$_terms[t].slice():null;e.$_super={};for(const t in this.$_super)e.$_super[t]=this._super[t].bind(e);return e}_bare(){const e=this.clone();e._reset();const t=e._definition.terms;for(const n in t){const r=t[n];e.$_terms[n]=r.init}return e.$_mutateRebuild()}_default(e,t,n={}){return c.assertOptions(n,"literal"),r(void 0!==t,"Missing",e,"value"),r("function"==typeof t||!n.literal,"Only function value supports literal option"),"function"==typeof t&&n.literal&&(t={[c.symbols.literal]:!0,literal:t}),this.$_setFlag(e,t)}_generate(e,t,n){if(!this.$_terms.whens)return{schema:this};const r=[],i=[];for(let o=0;o<this.$_terms.whens.length;++o){const a=this.$_terms.whens[o];if(a.concat){r.push(a.concat),i.push("".concat(o,".concat"));continue}const s=a.ref?a.ref.resolve(e,t,n):e,c=a.is?[a]:a.switch,l=i.length;for(let l=0;l<c.length;++l){const{is:u,then:f,otherwise:d}=c[l],p="".concat(o).concat(a.switch?"."+l:"");if(u.$_match(s,t.nest(u,"".concat(p,".is")),n)){if(f){const o=t.localize([...t.path,"".concat(p,".then")],t.ancestors,t.schemas),{schema:a,id:s}=f._generate(e,o,n);r.push(a),i.push("".concat(p,".then").concat(s?"(".concat(s,")"):""));break}}else if(d){const o=t.localize([...t.path,"".concat(p,".otherwise")],t.ancestors,t.schemas),{schema:a,id:s}=d._generate(e,o,n);r.push(a),i.push("".concat(p,".otherwise").concat(s?"(".concat(s,")"):""));break}}if(a.break&&i.length>l)break}const o=i.join(", ");if(t.mainstay.tracer.debug(t,"rule","when",o),!o)return{schema:this};if(!t.mainstay.tracer.active&&this.$_temp.whens[o])return{schema:this.$_temp.whens[o],id:o};let a=this;this._definition.generate&&(a=this._definition.generate(this,e,t,n));for(const e of r)a=a.concat(e);return this.$_root._tracer&&this.$_root._tracer._combine(a,[this,...r]),this.$_temp.whens[o]=a,{schema:a,id:o}}_inner(e,t,n={}){r(!this._inRuleset(),"Cannot set ".concat(e," inside a ruleset"));const i=this.clone();return i.$_terms[e]&&!n.override||(i.$_terms[e]=[]),n.single?i.$_terms[e].push(t):i.$_terms[e].push(...t),i.$_temp.ruleset=!1,i}_inRuleset(){return null!==this.$_temp.ruleset&&!1!==this.$_temp.ruleset}_ruleRemove(e,t={}){if(!this._singleRules.has(e))return this;const n=!1!==t.clone?this.clone():this;n._singleRules.delete(e);const r=[];for(let t=0;t<n._rules.length;++t){const i=n._rules[t];i.name!==e||i.keep?r.push(i):n._inRuleset()&&t<n.$_temp.ruleset&&--n.$_temp.ruleset}return n._rules=r,n}_values(e,t){c.verifyFlat(e,t.slice(1,-1));const n=this.clone(),i=e[0]===c.symbols.override;if(i&&(e=e.slice(1)),!n[t]&&e.length?n[t]=new g:i&&(n[t]=e.length?new g:null,n.$_mutateRebuild()),!n[t])return n;i&&n[t].override();for(const i of e){r(void 0!==i,"Cannot call allow/valid/invalid with undefined"),r(i!==c.symbols.override,"Override must be the first value");const e="_invalids"===t?"_valids":"_invalids";n[e]&&(n[e].remove(i),n[e].length||(r("_valids"===t||!n._flags.only,"Setting invalid value",i,"leaves schema rejecting all values due to previous valid rule"),n[e]=null)),n[t].add(i,n._refs)}return n}}};v.Base.prototype[c.symbols.any]={version:c.version,compile:l.compile,root:"$_root"},v.Base.prototype.isImmutable=!0,v.Base.prototype.deny=v.Base.prototype.invalid,v.Base.prototype.disallow=v.Base.prototype.invalid,v.Base.prototype.equal=v.Base.prototype.valid,v.Base.prototype.exist=v.Base.prototype.required,v.Base.prototype.not=v.Base.prototype.invalid,v.Base.prototype.options=v.Base.prototype.prefs,v.Base.prototype.preferences=v.Base.prototype.prefs,e.exports=new v.Base},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a=n(0),s=n(1),c=n(5),l={};t.Ids=l.Ids=class{constructor(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}clone(){const e=new l.Ids;return e._byId=new Map(this._byId),e._byKey=new Map(this._byKey),e._schemaChain=this._schemaChain,e}concat(e){e._schemaChain&&(this._schemaChain=!0);for(const[t,n]of e._byId.entries())a(!this._byKey.has(t),"Schema id conflicts with existing key:",t),this._byId.set(t,n);for(const[t,n]of e._byKey.entries())a(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,n)}fork(e,t,n){const r=this._collect(e);r.push({schema:n});const i=r.shift();let o={id:i.id,schema:t(i.schema)};a(s.isSchema(o.schema),"adjuster function failed to return a joi schema type");for(const e of r)o={id:e.id,schema:l.fork(e.schema,o.id,o.schema)};return o.schema}labels(e,t=[]){const n=e[0],r=this._get(n);if(!r)return[...t,...e].join(".");const i=e.slice(1);return t=[...t,r.schema._flags.label||n],i.length?r.schema._ids.labels(i,t):t.join(".")}reach(e,t=[]){const n=e[0],r=this._get(n);a(r,"Schema does not contain path",[...t,...e].join("."));const i=e.slice(1);return i.length?r.schema._ids.reach(i,[...t,n]):r.schema}register(e,{key:t}={}){if(!e||!s.isSchema(e))return;(e.$_property("schemaChain")||e._ids._schemaChain)&&(this._schemaChain=!0);const n=e._flags.id;if(n){const t=this._byId.get(n);a(!t||t.schema===e,"Cannot add different schemas with the same id:",n),a(!this._byKey.has(n),"Schema id conflicts with existing key:",n),this._byId.set(n,{schema:e,id:n})}t&&(a(!this._byKey.has(t),"Schema already contains key:",t),a(!this._byId.has(t),"Schema key conflicts with existing id:",t),this._byKey.set(t,{schema:e,id:t}))}reset(){this._byId=new Map,this._byKey=new Map,this._schemaChain=!1}_collect(e,t=[],n=[]){const r=e[0],i=this._get(r);a(i,"Schema does not contain path",[...t,...e].join(".")),n=[i,...n];const o=e.slice(1);return o.length?i.schema._ids._collect(o,[...t,r],n):n}_get(e){return this._byId.get(e)||this._byKey.get(e)}},l.fork=function(e,n,r){const i=t.schema(e,{each:(e,{key:t})=>{if(n===(e._flags.id||t))return r},ref:!1});return i?i.$_mutateRebuild():e},t.schema=function(e,t){let n;for(const r in e._flags){if("_"===r[0])continue;const i=l.scan(e._flags[r],{source:"flags",name:r},t);void 0!==i&&(n=n||e.clone(),n._flags[r]=i)}for(let r=0;r<e._rules.length;++r){const i=e._rules[r],o=l.scan(i.args,{source:"rules",name:i.name},t);if(void 0!==o){n=n||e.clone();const t=Object.assign({},i);t.args=o,n._rules[r]=t,n._singleRules.get(i.name)===i&&n._singleRules.set(i.name,t)}}for(const r in e.$_terms){if("_"===r[0])continue;const i=l.scan(e.$_terms[r],{source:"terms",name:r},t);void 0!==i&&(n=n||e.clone(),n.$_terms[r]=i)}return n},l.scan=function(e,t,n,r,o){const a=r||[];if(null===e||"object"!=typeof e)return;let u;if(Array.isArray(e)){for(let r=0;r<e.length;++r){const i="terms"===t.source&&"keys"===t.name&&e[r].key,o=l.scan(e[r],t,n,[r,...a],i);void 0!==o&&(u=u||e.slice(),u[r]=o)}return u}if(!1!==n.schema&&s.isSchema(e)||!1!==n.ref&&c.isRef(e)){const r=n.each(e,i(i({},t),{},{path:a,key:o}));if(r===e)return;return r}for(const r in e){if("_"===r[0])continue;const i=l.scan(e[r],t,n,[r,...a],o);void 0!==i&&(u=u||Object.assign({},e),u[r]=i)}return u}},function(e,t,n){"use strict";const r=n(0),i=n(2),o=n(37),a=n(6),s=n(1),c=n(4),l=n(38),u={result:Symbol("result")};t.entry=function(e,t,n){let i=s.defaults;n&&(r(void 0===n.warnings,"Cannot override warnings preference in synchronous validation"),r(void 0===n.artifacts,"Cannot override artifacts preference in synchronous validation"),i=s.preferences(s.defaults,n));const o=u.entry(e,t,i);r(!o.mainstay.externals.length,"Schema with external rules must use validateAsync()");const a={value:o.value};return o.error&&(a.error=o.error),o.mainstay.warnings.length&&(a.warning=c.details(o.mainstay.warnings)),o.mainstay.debug&&(a.debug=o.mainstay.debug),o.mainstay.artifacts&&(a.artifacts=o.mainstay.artifacts),a},t.entryAsync=async function(e,t,n){let r=s.defaults;n&&(r=s.preferences(s.defaults,n));const i=u.entry(e,t,r),o=i.mainstay;if(i.error)throw o.debug&&(i.error.debug=o.debug),i.error;if(o.externals.length){let t=i.value;for(const{method:r,path:i,label:s}of o.externals){let o,c,l=t;i.length&&(o=i[i.length-1],c=a(t,i.slice(0,-1)),l=c[o]);try{const e=await r(l,{prefs:n});if(void 0===e||e===l)continue;c?c[o]=e:t=e}catch(e){throw e.message+=" (".concat(s,")"),e}}i.value=t}if(!r.warnings&&!r.debug&&!r.artifacts)return i.value;const l={value:i.value};return o.warnings.length&&(l.warning=c.details(o.warnings)),o.debug&&(l.debug=o.debug),o.artifacts&&(l.artifacts=o.artifacts),l},u.entry=function(e,n,r){const{tracer:i,cleanup:o}=u.tracer(n,r),a={externals:[],warnings:[],tracer:i,debug:r.debug?[]:null,links:n._ids._schemaChain?new Map:null},s=n._ids._schemaChain?[{schema:n}]:null,f=new l([],[],{mainstay:a,schemas:s}),d=t.validate(e,n,f,r);o&&n.$_root.untrace();const p=c.process(d.errors,e,r);return{value:d.value,error:p,mainstay:a}},u.tracer=function(e,t){return e.$_root._tracer?{tracer:e.$_root._tracer._register(e)}:t.debug?(r(e.$_root.trace,"Debug mode not supported"),{tracer:e.$_root.trace()._register(e),cleanup:!0}):{tracer:u.ignore}},t.validate=function(e,t,n,r,i={}){if(t.$_terms.whens&&(t=t._generate(e,n,r).schema),t._preferences&&(r=u.prefs(t,r)),t._cache&&r.cache){const r=t._cache.get(e);if(n.mainstay.tracer.debug(n,"validate","cached",!!r),r)return r}const o=(i,o,a)=>t.$_createError(i,e,o,a||n,r),a={original:e,prefs:r,schema:t,state:n,error:o,errorsArray:u.errorsArray,warn:(e,t,r)=>n.mainstay.warnings.push(o(e,t,r)),message:(i,o)=>t.$_createError("custom",e,o,n,r,{messages:i})};n.mainstay.tracer.entry(t,n);const c=t._definition;if(c.prepare&&void 0!==e&&r.convert){const t=c.prepare(e,a);if(t){if(n.mainstay.tracer.value(n,"prepare",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),a);e=t.value}}if(c.coerce&&void 0!==e&&r.convert&&(!c.coerce.from||c.coerce.from.includes(typeof e))){const t=c.coerce.method(e,a);if(t){if(n.mainstay.tracer.value(n,"coerced",e,t.value),t.errors)return u.finalize(t.value,[].concat(t.errors),a);e=t.value}}const l=t._flags.empty;l&&l.$_match(u.trim(e,t),n.nest(l),s.defaults)&&(n.mainstay.tracer.value(n,"empty",e,void 0),e=void 0);const f=i.presence||t._flags.presence||(t._flags._endedSwitch?null:r.presence);if(void 0===e){if("forbidden"===f)return u.finalize(e,null,a);if("required"===f)return u.finalize(e,[t.$_createError("any.required",e,null,n,r)],a);if("optional"===f){if(t._flags.default!==s.symbols.deepDefault)return u.finalize(e,null,a);n.mainstay.tracer.value(n,"default",e,{}),e={}}}else if("forbidden"===f)return u.finalize(e,[t.$_createError("any.unknown",e,null,n,r)],a);const d=[];if(t._valids){const i=t._valids.get(e,n,r,t._flags.insensitive);if(i)return r.convert&&(n.mainstay.tracer.value(n,"valids",e,i.value),e=i.value),n.mainstay.tracer.filter(t,n,"valid",i),u.finalize(e,null,a);if(t._flags.only){const i=t.$_createError("any.only",e,{valids:t._valids.values({display:!0})},n,r);if(r.abortEarly)return u.finalize(e,[i],a);d.push(i)}}if(t._invalids){const i=t._invalids.get(e,n,r,t._flags.insensitive);if(i){n.mainstay.tracer.filter(t,n,"invalid",i);const o=t.$_createError("any.invalid",e,{invalids:t._invalids.values({display:!0})},n,r);if(r.abortEarly)return u.finalize(e,[o],a);d.push(o)}}if(c.validate){const t=c.validate(e,a);if(t&&(n.mainstay.tracer.value(n,"base",e,t.value),e=t.value,t.errors)){if(!Array.isArray(t.errors))return d.push(t.errors),u.finalize(e,d,a);if(t.errors.length)return d.push(...t.errors),u.finalize(e,d,a)}}return t._rules.length?u.rules(e,d,a):u.finalize(e,d,a)},u.rules=function(e,t,n){const{schema:r,state:i,prefs:o}=n;for(const a of r._rules){const c=r._definition.rules[a.method];if(c.convert&&o.convert){i.mainstay.tracer.log(r,i,"rule",a.name,"full");continue}let l,f=a.args;if(a._resolve.length){f=Object.assign({},f);for(const t of a._resolve){const n=c.argsByName.get(t),a=f[t].resolve(e,i,o),u=n.normalize?n.normalize(a):a,d=s.validateArg(u,null,n);if(d){l=r.$_createError("any.ref",a,{arg:t,ref:f[t],reason:d},i,o);break}f[t]=u}}l=l||c.validate(e,n,f,a);const d=u.rule(l,a);if(d.errors){if(i.mainstay.tracer.log(r,i,"rule",a.name,"error"),a.warn){i.mainstay.warnings.push(...d.errors);continue}if(o.abortEarly)return u.finalize(e,d.errors,n);t.push(...d.errors)}else i.mainstay.tracer.log(r,i,"rule",a.name,"pass"),i.mainstay.tracer.value(i,"rule",e,d.value,a.name),e=d.value}return u.finalize(e,t,n)},u.rule=function(e,t){return e instanceof c.Report?(u.error(e,t),{errors:[e],value:null}):Array.isArray(e)&&e[s.symbols.errors]?(e.forEach(e=>u.error(e,t)),{errors:e,value:null}):{errors:null,value:e}},u.error=function(e,t){return t.message&&e._setTemplate(t.message),e},u.finalize=function(e,t,n){t=t||[];const{schema:i,state:o,prefs:a}=n;if(t.length){const r=u.default("failover",void 0,t,n);void 0!==r&&(o.mainstay.tracer.value(o,"failover",e,r),e=r,t=[])}if(t.length&&i._flags.error)if("function"==typeof i._flags.error){t=i._flags.error(t),Array.isArray(t)||(t=[t]);for(const e of t)r(e instanceof Error||e instanceof c.Report,"error() must return an Error object")}else t=[i._flags.error];if(void 0===e){const r=u.default("default",e,t,n);o.mainstay.tracer.value(o,"default",e,r),e=r}if(i._flags.cast&&void 0!==e){const t=i._definition.cast[i._flags.cast];if(t.from(e)){const r=t.to(e,n);o.mainstay.tracer.value(o,"cast",e,r,i._flags.cast),e=r}}if(i.$_terms.externals&&a.externals&&!1!==a._externals)for(const{method:e}of i.$_terms.externals)o.mainstay.externals.push({method:e,path:o.path,label:c.label(i._flags,o,a)});const s={value:e,errors:t.length?t:null};return i._flags.result&&(s.value="strip"===i._flags.result?void 0:n.original,o.mainstay.tracer.value(o,i._flags.result,e,s.value),o.shadow(e,i._flags.result)),i._cache&&!1!==a.cache&&!i._refs.length&&i._cache.set(n.original,s),void 0===e||s.errors||void 0===i._flags.artifact||(o.mainstay.artifacts=o.mainstay.artifacts||new Map,o.mainstay.artifacts.has(i._flags.artifact)||o.mainstay.artifacts.set(i._flags.artifact,[]),o.mainstay.artifacts.get(i._flags.artifact).push(o.path)),s},u.prefs=function(e,t){const n=t===s.defaults;return n&&e._preferences[s.symbols.prefs]?e._preferences[s.symbols.prefs]:(t=s.preferences(t,e._preferences),n&&(e._preferences[s.symbols.prefs]=t),t)},u.default=function(e,t,n,r){const{schema:o,state:a,prefs:c}=r,l=o._flags[e];if(c.noDefaults||void 0===l)return t;if(a.mainstay.tracer.log(o,a,"rule",e,"full"),!l)return l;if("function"==typeof l){const s=l.length?[i(a.ancestors[0]),r]:[];try{return l(...s)}catch(t){return void n.push(o.$_createError("any.".concat(e),null,{error:t},a,c))}}return"object"!=typeof l?l:l[s.symbols.literal]?l.literal:s.isResolvable(l)?l.resolve(t,a,c):i(l)},u.trim=function(e,t){if("string"!=typeof e)return e;const n=t.$_getRule("trim");return n&&n.args.enabled?e.trim():e},u.ignore={active:!1,debug:o,entry:o,filter:o,log:o,resolve:o,value:o},u.errorsArray=function(){const e=[];return e[s.symbols.errors]=!0,e}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";const r=n(2),i=n(6),o=n(1),a={value:Symbol("value")};e.exports=a.State=class{constructor(e,t,n){this.path=e,this.ancestors=t,this.mainstay=n.mainstay,this.schemas=n.schemas,this.debug=null}localize(e,t=null,n=null){const r=new a.State(e,t,this);return n&&r.schemas&&(r.schemas=[a.schemas(n),...r.schemas]),r}nest(e,t){const n=new a.State(this.path,this.ancestors,this);return n.schemas=n.schemas&&[a.schemas(e),...n.schemas],n.debug=t,n}shadow(e,t){this.mainstay.shadow=this.mainstay.shadow||new a.Shadow,this.mainstay.shadow.set(this.path,e,t)}snapshot(){this.mainstay.shadow&&(this._snapshot=r(this.mainstay.shadow.node(this.path)))}restore(){this.mainstay.shadow&&(this.mainstay.shadow.override(this.path,this._snapshot),this._snapshot=void 0)}},a.schemas=function(e){return o.isSchema(e)?{schema:e}:e},a.Shadow=class{constructor(){this._values=null}set(e,t,n){if(!e.length)return;if("strip"===n&&"number"==typeof e[e.length-1])return;this._values=this._values||new Map;let r=this._values;for(let t=0;t<e.length;++t){const n=e[t];let i=r.get(n);i||(i=new Map,r.set(n,i)),r=i}r[a.value]=t}get(e){const t=this.node(e);if(t)return t[a.value]}node(e){if(this._values)return i(this._values,e,{iterables:!0})}override(e,t){if(!this._values)return;const n=e.slice(0,-1),r=e[e.length-1],o=i(this._values,n,{iterables:!0});t?o.set(r,t):o&&o.delete(r)}}},function(e,t,n){"use strict";const r=n(0),i=n(10),o=n(6),a=n(3),s=n(1),c=n(8),l={};e.exports=a.extend({type:"array",flags:{single:{default:!1},sparse:{default:!1}},terms:{items:{init:[],manifest:"schema"},ordered:{init:[],manifest:"schema"},_exclusions:{init:[]},_inclusions:{init:[]},_requireds:{init:[]}},coerce:{from:"object",method(e,{schema:t,state:n,prefs:r}){if(!Array.isArray(e))return;const i=t.$_getRule("sort");return i?l.sort(t,e,i.args.options,n,r):void 0}},validate(e,{schema:t,error:n}){if(!Array.isArray(e)){if(t._flags.single){const t=[e];return t[s.symbols.arraySingle]=!0,{value:t}}return{errors:n("array.base")}}if(t.$_getRule("items")||t.$_terms.externals)return{value:e.slice()}},rules:{has:{method(e){e=this.$_compile(e,{appendPath:!0});const t=this.$_addRule({name:"has",args:{schema:e}});return t.$_mutateRegister(e),t},validate(e,{state:t,prefs:n,error:r},{schema:i}){const o=[e,...t.ancestors];for(let r=0;r<e.length;++r){const a=t.localize([...t.path,r],o,i);if(i.$_match(e[r],a,n))return e}const a=i._flags.label;return a?r("array.hasKnown",{patternLabel:a}):r("array.hasUnknown",null)},multi:!0},items:{method(...e){s.verifyFlat(e,"items");const t=this.$_addRule("items");for(let n=0;n<e.length;++n){const r=s.tryWithPath(()=>this.$_compile(e[n]),n,{append:!0});t.$_terms.items.push(r)}return t.$_mutateRebuild()},validate(e,{schema:t,error:n,state:r,prefs:i,errorsArray:o}){const a=t.$_terms._requireds.slice(),c=t.$_terms.ordered.slice(),u=[...t.$_terms._inclusions,...a],f=!e[s.symbols.arraySingle];delete e[s.symbols.arraySingle];const d=o();let p=e.length;for(let o=0;o<p;++o){const s=e[o];let h=!1,m=!1;const b=f?o:new Number(o),y=[...r.path,b];if(!t._flags.sparse&&void 0===s){if(d.push(n("array.sparse",{key:b,path:y,pos:o,value:void 0},r.localize(y))),i.abortEarly)return d;c.shift();continue}const g=[e,...r.ancestors];for(const e of t.$_terms._exclusions)if(e.$_match(s,r.localize(y,g,e),i,{presence:"ignore"})){if(d.push(n("array.excludes",{pos:o,value:s},r.localize(y))),i.abortEarly)return d;h=!0,c.shift();break}if(h)continue;if(t.$_terms.ordered.length){if(c.length){const a=c.shift(),u=a.$_validate(s,r.localize(y,g,a),i);if(u.errors){if(d.push(...u.errors),i.abortEarly)return d}else if("strip"===a._flags.result)l.fastSplice(e,o),--o,--p;else{if(!t._flags.sparse&&void 0===u.value){if(d.push(n("array.sparse",{key:b,path:y,pos:o,value:void 0},r.localize(y))),i.abortEarly)return d;continue}e[o]=u.value}continue}if(!t.$_terms.items.length){if(d.push(n("array.orderedLength",{pos:o,limit:t.$_terms.ordered.length})),i.abortEarly)return d;break}}const v=[];let w=a.length;for(let c=0;c<w;++c){const u=r.localize(y,g,a[c]);u.snapshot();const f=a[c].$_validate(s,u,i);if(v[c]=f,!f.errors){if(e[o]=f.value,m=!0,l.fastSplice(a,c),--c,--w,!t._flags.sparse&&void 0===f.value&&(d.push(n("array.sparse",{key:b,path:y,pos:o,value:void 0},r.localize(y))),i.abortEarly))return d;break}u.restore()}if(m)continue;const _=i.stripUnknown&&!!i.stripUnknown.arrays||!1;w=u.length;for(const c of u){let u;const f=a.indexOf(c);if(-1!==f)u=v[f];else{const a=r.localize(y,g,c);if(a.snapshot(),u=c.$_validate(s,a,i),!u.errors){"strip"===c._flags.result?(l.fastSplice(e,o),--o,--p):t._flags.sparse||void 0!==u.value?e[o]=u.value:(d.push(n("array.sparse",{key:b,path:y,pos:o,value:void 0},r.localize(y))),h=!0),m=!0;break}a.restore()}if(1===w){if(_){l.fastSplice(e,o),--o,--p,m=!0;break}if(d.push(...u.errors),i.abortEarly)return d;h=!0;break}}if(!h&&t.$_terms._inclusions.length&&!m){if(_){l.fastSplice(e,o),--o,--p;continue}if(d.push(n("array.includes",{pos:o,value:s},r.localize(y))),i.abortEarly)return d}}return a.length&&l.fillMissedErrors(t,d,a,e,r,i),c.length&&l.fillOrderedErrors(t,d,c,e,r,i),d.length?d:e},priority:!0,manifest:!1},length:{method(e){return this.$_addRule({name:"length",args:{limit:e},operator:"="})},validate:(e,t,{limit:n},{name:r,operator:i,args:o})=>s.compare(e.length,n,i)?e:t.error("array."+r,{limit:o.limit,value:e}),args:[{name:"limit",ref:!0,assert:s.limit,message:"must be a positive integer"}]},max:{method(e){return this.$_addRule({name:"max",method:"length",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"length",args:{limit:e},operator:">="})}},ordered:{method(...e){s.verifyFlat(e,"ordered");const t=this.$_addRule("items");for(let n=0;n<e.length;++n){const r=s.tryWithPath(()=>this.$_compile(e[n]),n,{append:!0});l.validateSingle(r,t),t.$_mutateRegister(r),t.$_terms.ordered.push(r)}return t.$_mutateRebuild()}},single:{method(e){const t=void 0===e||!!e;return r(!t||!this._flags._arrayItems,"Cannot specify single rule when array has array items"),this.$_setFlag("single",t)}},sort:{method(e={}){s.assertOptions(e,["by","order"]);const t={order:e.order||"ascending"};return e.by&&(t.by=c.ref(e.by,{ancestor:0}),r(!t.by.ancestor,"Cannot sort by ancestor")),this.$_addRule({name:"sort",args:{options:t}})},validate(e,{error:t,state:n,prefs:r,schema:i},{options:o}){const{value:a,errors:s}=l.sort(i,e,o,n,r);if(s)return s;for(let n=0;n<e.length;++n)if(e[n]!==a[n])return t("array.sort",{order:o.order,by:o.by?o.by.key:"value"});return e},convert:!0},sparse:{method(e){const t=void 0===e||!!e;return this._flags.sparse===t?this:(t?this.clone():this.$_addRule("items")).$_setFlag("sparse",t,{clone:!1})}},unique:{method(e,t={}){r(!e||"function"==typeof e||"string"==typeof e,"comparator must be a function or a string"),s.assertOptions(t,["ignoreUndefined","separator"]);const n={name:"unique",args:{options:t,comparator:e}};if(e)if("string"==typeof e){const r=s.default(t.separator,".");n.path=r?e.split(r):[e]}else n.comparator=e;return this.$_addRule(n)},validate(e,{state:t,error:n,schema:a},{comparator:s,options:c},{comparator:l,path:u}){const f={string:Object.create(null),number:Object.create(null),undefined:Object.create(null),boolean:Object.create(null),object:new Map,function:new Map,custom:new Map},d=l||i,p=c.ignoreUndefined;for(let i=0;i<e.length;++i){const a=u?o(e[i],u):e[i],c=l?f.custom:f[typeof a];if(r(c,"Failed to find unique map container for type",typeof a),c instanceof Map){const r=c.entries();let o;for(;!(o=r.next()).done;)if(d(o.value[0],a)){const r=t.localize([...t.path,i],[e,...t.ancestors]),a={pos:i,value:e[i],dupePos:o.value[1],dupeValue:e[o.value[1]]};return u&&(a.path=s),n("array.unique",a,r)}c.set(a,i)}else{if((!p||void 0!==a)&&void 0!==c[a]){const r={pos:i,value:e[i],dupePos:c[a],dupeValue:e[c[a]]};return u&&(r.path=s),n("array.unique",r,t.localize([...t.path,i],[e,...t.ancestors]))}c[a]=i}}return e},args:["comparator","options"],multi:!0}},cast:{set:{from:Array.isArray,to:(e,t)=>new Set(e)}},rebuild(e){e.$_terms._inclusions=[],e.$_terms._exclusions=[],e.$_terms._requireds=[];for(const t of e.$_terms.items)l.validateSingle(t,e),"required"===t._flags.presence?e.$_terms._requireds.push(t):"forbidden"===t._flags.presence?e.$_terms._exclusions.push(t):e.$_terms._inclusions.push(t);for(const t of e.$_terms.ordered)l.validateSingle(t,e)},manifest:{build:(e,t)=>(t.items&&(e=e.items(...t.items)),t.ordered&&(e=e.ordered(...t.ordered)),e)},messages:{"array.base":"{{#label}} must be an array","array.excludes":"{{#label}} contains an excluded value","array.hasKnown":"{{#label}} does not contain at least one required match for type {:#patternLabel}","array.hasUnknown":"{{#label}} does not contain at least one required match","array.includes":"{{#label}} does not match any of the allowed types","array.includesRequiredBoth":"{{#label}} does not contain {{#knownMisses}} and {{#unknownMisses}} other required value(s)","array.includesRequiredKnowns":"{{#label}} does not contain {{#knownMisses}}","array.includesRequiredUnknowns":"{{#label}} does not contain {{#unknownMisses}} required value(s)","array.length":"{{#label}} must contain {{#limit}} items","array.max":"{{#label}} must contain less than or equal to {{#limit}} items","array.min":"{{#label}} must contain at least {{#limit}} items","array.orderedLength":"{{#label}} must contain at most {{#limit}} items","array.sort":"{{#label}} must be sorted in {#order} order by {{#by}}","array.sort.mismatching":"{{#label}} cannot be sorted due to mismatching types","array.sort.unsupported":"{{#label}} cannot be sorted due to unsupported type {#type}","array.sparse":"{{#label}} must not be a sparse array item","array.unique":"{{#label}} contains a duplicate value"}}),l.fillMissedErrors=function(e,t,n,r,i,o){const a=[];let s=0;for(const e of n){const t=e._flags.label;t?a.push(t):++s}a.length?s?t.push(e.$_createError("array.includesRequiredBoth",r,{knownMisses:a,unknownMisses:s},i,o)):t.push(e.$_createError("array.includesRequiredKnowns",r,{knownMisses:a},i,o)):t.push(e.$_createError("array.includesRequiredUnknowns",r,{unknownMisses:s},i,o))},l.fillOrderedErrors=function(e,t,n,r,i,o){const a=[];for(const e of n)"required"===e._flags.presence&&a.push(e);a.length&&l.fillMissedErrors(e,t,a,r,i,o)},l.fastSplice=function(e,t){let n=t;for(;n<e.length;)e[n++]=e[n];--e.length},l.validateSingle=function(e,t){("array"===e.type||e._flags._arrayItems)&&(r(!t._flags.single,"Cannot specify array item with single rule enabled"),t.$_setFlag("_arrayItems",!0,{clone:!1}))},l.sort=function(e,t,n,r,i){const o="ascending"===n.order?1:-1,a=-1*o,s=o,c=(c,u)=>{let f=l.compare(c,u,a,s);if(null!==f)return f;if(n.by&&(c=n.by.resolve(c,r,i),u=n.by.resolve(u,r,i)),f=l.compare(c,u,a,s),null!==f)return f;const d=typeof c;if(d!==typeof u)throw e.$_createError("array.sort.mismatching",t,null,r,i);if("number"!==d&&"string"!==d)throw e.$_createError("array.sort.unsupported",t,{type:d},r,i);return"number"===d?(c-u)*o:c<u?a:s};try{return{value:t.slice().sort(c)}}catch(e){return{errors:e}}},l.compare=function(e,t,n,r){return e===t?0:void 0===e?1:void 0===t?-1:null===e?r:null===t?n:null}},function(e,t,n){"use strict";const r=n(0),i=n(3),o=n(1),a=n(21),s={isBool:function(e){return"boolean"==typeof e}};e.exports=i.extend({type:"boolean",flags:{sensitive:{default:!1}},terms:{falsy:{init:null,manifest:"values"},truthy:{init:null,manifest:"values"}},coerce(e,{schema:t}){if("boolean"!=typeof e){if("string"==typeof e){const n=t._flags.sensitive?e:e.toLowerCase();e="true"===n||"false"!==n&&e}return"boolean"!=typeof e&&(e=t.$_terms.truthy&&t.$_terms.truthy.has(e,null,null,!t._flags.sensitive)||(!t.$_terms.falsy||!t.$_terms.falsy.has(e,null,null,!t._flags.sensitive))&&e),{value:e}}},validate(e,{error:t}){if("boolean"!=typeof e)return{value:e,errors:t("boolean.base")}},rules:{truthy:{method(...e){o.verifyFlat(e,"truthy");const t=this.clone();t.$_terms.truthy=t.$_terms.truthy||new a;for(let n=0;n<e.length;++n){const i=e[n];r(void 0!==i,"Cannot call truthy with undefined"),t.$_terms.truthy.add(i)}return t}},falsy:{method(...e){o.verifyFlat(e,"falsy");const t=this.clone();t.$_terms.falsy=t.$_terms.falsy||new a;for(let n=0;n<e.length;++n){const i=e[n];r(void 0!==i,"Cannot call falsy with undefined"),t.$_terms.falsy.add(i)}return t}},sensitive:{method(e=!0){return this.$_setFlag("sensitive",e)}}},cast:{number:{from:s.isBool,to:(e,t)=>e?1:0},string:{from:s.isBool,to:(e,t)=>e?"true":"false"}},manifest:{build:(e,t)=>(t.truthy&&(e=e.truthy(...t.truthy)),t.falsy&&(e=e.falsy(...t.falsy)),e)},messages:{"boolean.base":"{{#label}} must be a boolean"}})},function(e,t,n){"use strict";const r=n(0),i=n(3),o=n(1),a=n(7),s={isDate:function(e){return e instanceof Date}};e.exports=i.extend({type:"date",coerce:{from:["number","string"],method:(e,{schema:t})=>({value:s.parse(e,t._flags.format)||e})},validate(e,{schema:t,error:n,prefs:r}){if(e instanceof Date&&!isNaN(e.getTime()))return;const i=t._flags.format;return r.convert&&i&&"string"==typeof e?{value:e,errors:n("date.format",{format:i})}:{value:e,errors:n("date.base")}},rules:{compare:{method:!1,validate(e,t,{date:n},{name:r,operator:i,args:a}){const s="now"===n?Date.now():n.getTime();return o.compare(e.getTime(),s,i)?e:t.error("date."+r,{limit:a.date,value:e})},args:[{name:"date",ref:!0,normalize:e=>"now"===e?e:s.parse(e),assert:e=>null!==e,message:"must have a valid date format"}]},format:{method(e){return r(["iso","javascript","unix"].includes(e),"Unknown date format",e),this.$_setFlag("format",e)}},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{date:e},operator:">"})}},iso:{method(){return this.format("iso")}},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{date:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{date:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{date:e},operator:">="})}},timestamp:{method(e="javascript"){return r(["javascript","unix"].includes(e),'"type" must be one of "javascript, unix"'),this.format(e)}}},cast:{number:{from:s.isDate,to:(e,t)=>e.getTime()},string:{from:s.isDate,to:(e,{prefs:t})=>a.date(e,t)}},messages:{"date.base":"{{#label}} must be a valid date","date.format":'{{#label}} must be in {msg("date.format." + #format) || #format} format',"date.greater":"{{#label}} must be greater than {{:#limit}}","date.less":"{{#label}} must be less than {{:#limit}}","date.max":"{{#label}} must be less than or equal to {{:#limit}}","date.min":"{{#label}} must be greater than or equal to {{:#limit}}","date.format.iso":"ISO 8601 date","date.format.javascript":"timestamp or number of milliseconds","date.format.unix":"timestamp or number of seconds"}}),s.parse=function(e,t){if(e instanceof Date)return e;if("string"!=typeof e&&(isNaN(e)||!isFinite(e)))return null;if(/^\s*$/.test(e))return null;if("iso"===t)return o.isIsoDate(e)?s.date(e.toString()):null;const n=e;if("string"==typeof e&&/^[+-]?\d+(\.\d+)?$/.test(e)&&(e=parseFloat(e)),t){if("javascript"===t)return s.date(1*e);if("unix"===t)return s.date(1e3*e);if("string"==typeof n)return null}return s.date(e)},s.date=function(e){const t=new Date(e);return isNaN(t.getTime())?null:t}},function(e,t,n){"use strict";const r=n(0),i=n(22);e.exports=i.extend({type:"function",properties:{typeof:"function"},rules:{arity:{method(e){return r(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"arity",args:{n:e}})},validate:(e,t,{n:n})=>e.length===n?e:t.error("function.arity",{n:n})},class:{method(){return this.$_addRule("class")},validate:(e,t)=>/^\s*class\s/.test(e.toString())?e:t.error("function.class",{value:e})},minArity:{method(e){return r(Number.isSafeInteger(e)&&e>0,"n must be a strict positive integer"),this.$_addRule({name:"minArity",args:{n:e}})},validate:(e,t,{n:n})=>e.length>=n?e:t.error("function.minArity",{n:n})},maxArity:{method(e){return r(Number.isSafeInteger(e)&&e>=0,"n must be a positive integer"),this.$_addRule({name:"maxArity",args:{n:e}})},validate:(e,t,{n:n})=>e.length<=n?e:t.error("function.maxArity",{n:n})}},messages:{"function.arity":"{{#label}} must have an arity of {{#n}}","function.class":"{{#label}} must be a class","function.maxArity":"{{#label}} must have an arity lesser or equal to {{#n}}","function.minArity":"{{#label}} must have an arity greater or equal to {{#n}}"}})},function(e,t,n){"use strict";const r=n(0),i=n(2),o=n(20),a=n(6),s={};e.exports=function(e,t,n={}){if(r(e&&"object"==typeof e,"Invalid defaults value: must be an object"),r(!t||!0===t||"object"==typeof t,"Invalid source value: must be true, falsy or an object"),r("object"==typeof n,"Invalid options: must be an object"),!t)return null;if(n.shallow)return s.applyToDefaultsWithShallow(e,t,n);const a=i(e);if(!0===t)return a;const c=void 0!==n.nullOverride&&n.nullOverride;return o(a,t,{nullOverride:c,mergeArrays:!1})},s.applyToDefaultsWithShallow=function(e,t,n){const c=n.shallow;r(Array.isArray(c),"Invalid keys");const l=new Map,u=!0===t?null:new Set;for(let n of c){n=Array.isArray(n)?n:n.split(".");const r=a(e,n);r&&"object"==typeof r?l.set(r,u&&a(t,n)||r):u&&u.add(n)}const f=i(e,{},l);if(!u)return f;for(const e of u)s.reachCopy(f,t,e);return o(f,t,{mergeArrays:!1,nullOverride:!1})},s.reachCopy=function(e,t,n){for(const e of n){if(!(e in t))return;t=t[e]}const r=t;let i=e;for(let e=0;e<n.length-1;++e){const t=n[e];"object"!=typeof i[t]&&(i[t]={}),i=i[t]}i[n[n.length-1]]=r}},function(e,t,n){"use strict";const r=n(0),i={};t.Sorter=class{constructor(){this._items=[],this.nodes=[]}add(e,t){const n=[].concat((t=t||{}).before||[]),i=[].concat(t.after||[]),o=t.group||"?",a=t.sort||0;r(!n.includes(o),"Item cannot come before itself: ".concat(o)),r(!n.includes("?"),"Item cannot come before unassociated items"),r(!i.includes(o),"Item cannot come after itself: ".concat(o)),r(!i.includes("?"),"Item cannot come after unassociated items"),Array.isArray(e)||(e=[e]);for(const t of e){const e={seq:this._items.length,sort:a,before:n,after:i,group:o,node:t};this._items.push(e)}const s=this._sort();return r(s,"item","?"!==o?"added into group ".concat(o):"","created a dependencies error"),this.nodes}merge(e){Array.isArray(e)||(e=[e]);for(const t of e)if(t)for(const e of t._items)this._items.push(Object.assign({},e));this._items.sort(i.mergeSort);for(let e=0;e<this._items.length;++e)this._items[e].seq=e;const t=this._sort();return r(t,"merge created a dependencies error"),this.nodes}_sort(){const e={},t=Object.create(null),n=Object.create(null);for(const r of this._items){const i=r.seq,o=r.group;n[o]=n[o]||[],n[o].push(i),e[i]=r.before;for(const e of r.after)t[e]=t[e]||[],t[e].push(i)}for(const t in e){const r=[];for(const i in e[t]){const o=e[t][i];n[o]=n[o]||[],r.push(...n[o])}e[t]=r}for(const r in t)if(n[r])for(const i of n[r])e[i].push(...t[r]);const r={};for(const t in e){const n=e[t];for(const e of n)r[e]=r[e]||[],r[e].push(t)}const i={},o=[];for(let e=0;e<this._items.length;++e){let t=e;if(r[e]){t=null;for(let e=0;e<this._items.length;++e){if(!0===i[e])continue;r[e]||(r[e]=[]);const n=r[e].length;let o=0;for(let t=0;t<n;++t)i[r[e][t]]&&++o;if(o===n){t=e;break}}}null!==t&&(i[t]=!0,o.push(t))}if(o.length!==this._items.length)return!1;const a={};for(const e of this._items)a[e.seq]=e;this._items=[],this.nodes=[];for(const e of o){const t=a[e];this.nodes.push(t.node),this._items.push(t)}return!0}},i.mergeSort=(e,t)=>e.sort===t.sort?0:e.sort<t.sort?-1:1},function(e,t,n){"use strict";const r=n(0),i=n(3),o=n(1),a=n(8),s=n(4),c={};e.exports=i.extend({type:"link",properties:{schemaChain:!0},terms:{link:{init:null,manifest:"single",register:!1}},args:(e,t)=>e.ref(t),validate(e,{schema:t,state:n,prefs:i}){r(t.$_terms.link,"Uninitialized link schema");const o=c.generate(t,e,n,i),a=t.$_terms.link[0].ref;return o.$_validate(e,n.nest(o,"link:".concat(a.display,":").concat(o.type)),i)},generate:(e,t,n,r)=>c.generate(e,t,n,r),rules:{ref:{method(e){r(!this.$_terms.link,"Cannot reinitialize schema"),e=a.ref(e),r("value"===e.type||"local"===e.type,"Invalid reference type:",e.type),r("local"===e.type||"root"===e.ancestor||e.ancestor>0,"Link cannot reference itself");const t=this.clone();return t.$_terms.link=[{ref:e}],t}},relative:{method(e=!0){return this.$_setFlag("relative",e)}}},overrides:{concat(e){r(this.$_terms.link,"Uninitialized link schema"),r(o.isSchema(e),"Invalid schema object"),r("link"!==e.type,"Cannot merge type link with another link");const t=this.clone();return t.$_terms.whens||(t.$_terms.whens=[]),t.$_terms.whens.push({concat:e}),t.$_mutateRebuild()}},manifest:{build:(e,t)=>(r(t.link,"Invalid link description missing link"),e.ref(t.link))}}),c.generate=function(e,t,n,r){let i=n.mainstay.links.get(e);if(i)return i._generate(t,n,r).schema;const o=e.$_terms.link[0].ref,{perspective:a,path:s}=c.perspective(o,n);c.assert(a,"which is outside of schema boundaries",o,e,n,r);try{i=s.length?a.$_reach(s):a}catch(t){c.assert(!1,"to non-existing schema",o,e,n,r)}return c.assert("link"!==i.type,"which is another link",o,e,n,r),e._flags.relative||n.mainstay.links.set(e,i),i._generate(t,n,r).schema},c.perspective=function(e,t){if("local"===e.type){for(const{schema:n,key:r}of t.schemas){if((n._flags.id||r)===e.path[0])return{perspective:n,path:e.path.slice(1)};if(n.$_terms.shared)for(const t of n.$_terms.shared)if(t._flags.id===e.path[0])return{perspective:t,path:e.path.slice(1)}}return{perspective:null,path:null}}return"root"===e.ancestor?{perspective:t.schemas[t.schemas.length-1].schema,path:e.path}:{perspective:t.schemas[e.ancestor]&&t.schemas[e.ancestor].schema,path:e.path}},c.assert=function(e,t,n,i,o,a){e||r(!1,'"'.concat(s.label(i._flags,o,a),'" contains link reference "').concat(n.display,'" ').concat(t))}},function(e,t,n){"use strict";const r=n(0),i=n(3),o=n(1),a={numberRx:/^\s*[+-]?(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:e([+-]?\d+))?\s*$/i,precisionRx:/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/};e.exports=i.extend({type:"number",flags:{unsafe:{default:!1}},coerce:{from:"string",method(e,{schema:t,error:n}){const r=e.match(a.numberRx);if(!r)return;e=e.trim();const i={value:parseFloat(e)};if(0===i.value&&(i.value=0),!t._flags.unsafe)if(e.match(/e/i)){if(a.normalizeExponent("".concat(i.value/Math.pow(10,r[1]),"e").concat(r[1]))!==a.normalizeExponent(e))return i.errors=n("number.unsafe"),i}else{const t=i.value.toString();if(t.match(/e/i))return i;if(t!==a.normalizeDecimal(e))return i.errors=n("number.unsafe"),i}return i}},validate(e,{schema:t,error:n,prefs:r}){if(e===1/0||e===-1/0)return{value:e,errors:n("number.infinity")};if(!o.isNumber(e))return{value:e,errors:n("number.base")};const i={value:e};if(r.convert){const e=t.$_getRule("precision");if(e){const t=Math.pow(10,e.args.limit);i.value=Math.round(i.value*t)/t}}return 0===i.value&&(i.value=0),!t._flags.unsafe&&(e>Number.MAX_SAFE_INTEGER||e<Number.MIN_SAFE_INTEGER)&&(i.errors=n("number.unsafe")),i},rules:{compare:{method:!1,validate:(e,t,{limit:n},{name:r,operator:i,args:a})=>o.compare(e,n,i)?e:t.error("number."+r,{limit:a.limit,value:e}),args:[{name:"limit",ref:!0,assert:o.isNumber,message:"must be a number"}]},greater:{method(e){return this.$_addRule({name:"greater",method:"compare",args:{limit:e},operator:">"})}},integer:{method(){return this.$_addRule("integer")},validate:(e,t)=>Math.trunc(e)-e==0?e:t.error("number.integer")},less:{method(e){return this.$_addRule({name:"less",method:"compare",args:{limit:e},operator:"<"})}},max:{method(e){return this.$_addRule({name:"max",method:"compare",args:{limit:e},operator:"<="})}},min:{method(e){return this.$_addRule({name:"min",method:"compare",args:{limit:e},operator:">="})}},multiple:{method(e){return this.$_addRule({name:"multiple",args:{base:e}})},validate:(e,t,{base:n},r)=>e%n==0?e:t.error("number.multiple",{multiple:r.args.base,value:e}),args:[{name:"base",ref:!0,assert:e=>"number"==typeof e&&isFinite(e)&&e>0,message:"must be a positive number"}],multi:!0},negative:{method(){return this.sign("negative")}},port:{method(){return this.$_addRule("port")},validate:(e,t)=>Number.isSafeInteger(e)&&e>=0&&e<=65535?e:t.error("number.port")},positive:{method(){return this.sign("positive")}},precision:{method(e){return r(Number.isSafeInteger(e),"limit must be an integer"),this.$_addRule({name:"precision",args:{limit:e}})},validate(e,t,{limit:n}){const r=e.toString().match(a.precisionRx);return Math.max((r[1]?r[1].length:0)-(r[2]?parseInt(r[2],10):0),0)<=n?e:t.error("number.precision",{limit:n,value:e})},convert:!0},sign:{method(e){return r(["negative","positive"].includes(e),"Invalid sign",e),this.$_addRule({name:"sign",args:{sign:e}})},validate:(e,t,{sign:n})=>"negative"===n&&e<0||"positive"===n&&e>0?e:t.error("number.".concat(n))},unsafe:{method(e=!0){return r("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("unsafe",e)}}},cast:{string:{from:e=>"number"==typeof e,to:(e,t)=>e.toString()}},messages:{"number.base":"{{#label}} must be a number","number.greater":"{{#label}} must be greater than {{#limit}}","number.infinity":"{{#label}} cannot be infinity","number.integer":"{{#label}} must be an integer","number.less":"{{#label}} must be less than {{#limit}}","number.max":"{{#label}} must be less than or equal to {{#limit}}","number.min":"{{#label}} must be greater than or equal to {{#limit}}","number.multiple":"{{#label}} must be a multiple of {{#multiple}}","number.negative":"{{#label}} must be a negative number","number.port":"{{#label}} must be a valid port","number.positive":"{{#label}} must be a positive number","number.precision":"{{#label}} must have no more than {{#limit}} decimal places","number.unsafe":"{{#label}} must be a safe number"}}),a.normalizeExponent=function(e){return e.replace(/E/,"e").replace(/\.(\d*[1-9])?0+e/,".$1e").replace(/\.e/,"e").replace(/e\+/,"e").replace(/^\+/,"").replace(/^(-?)0+([1-9])/,"$1$2")},a.normalizeDecimal=function(e){return(e=e.replace(/^\+/,"").replace(/\.0*$/,"").replace(/^(-?)\.([^\.]*)$/,"$10.$2").replace(/^(-?)0+([0-9])/,"$1$2")).includes(".")&&e.endsWith("0")&&(e=e.replace(/0+$/,"")),"-0"===e?"0":e}},function(e,t,n){"use strict";const r=n(22);e.exports=r.extend({type:"object",cast:{map:{from:e=>e&&"object"==typeof e,to:(e,t)=>new Map(Object.entries(e))}}})},function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const a=n(0),s=n(23),c=n(49),l=n(50),u=n(27),f=n(51),d=n(26),p=n(3),h=n(1),m={tlds:f instanceof Set&&{tlds:{allow:f,deny:null}},base64Regex:{true:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}==|[\w\-]{3}=)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/},false:{true:/^(?:[\w\-]{2}[\w\-]{2})*(?:[\w\-]{2}(==)?|[\w\-]{3}=?)?$/,false:/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}(==)?|[A-Za-z0-9+\/]{3}=?)?$/}},dataUriRegex:/^data:[\w+.-]+\/[\w+.-]+;((charset=[\w-]+|base64),)?(.*)$/,hexRegex:/^[a-f0-9]+$/i,ipRegex:l.regex().regex,isoDurationRegex:/^P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?$/,guidBrackets:{"{":"}","[":"]","(":")","":""},guidVersions:{uuidv1:"1",uuidv2:"2",uuidv3:"3",uuidv4:"4",uuidv5:"5"},guidSeparators:new Set([void 0,!0,!1,"-",":"]),normalizationForms:["NFC","NFD","NFKC","NFKD"]};e.exports=p.extend({type:"string",flags:{insensitive:{default:!1},truncate:{default:!1}},terms:{replacements:{init:null}},coerce:{from:"string",method(e,{schema:t,state:n,prefs:r}){const i=t.$_getRule("normalize");i&&(e=e.normalize(i.args.form));const o=t.$_getRule("case");o&&(e="upper"===o.args.direction?e.toLocaleUpperCase():e.toLocaleLowerCase());const a=t.$_getRule("trim");if(a&&a.args.enabled&&(e=e.trim()),t.$_terms.replacements)for(const n of t.$_terms.replacements)e=e.replace(n.pattern,n.replacement);const s=t.$_getRule("hex");if(s&&s.args.options.byteAligned&&e.length%2!=0&&(e="0".concat(e)),t.$_getRule("isoDate")){const t=m.isoDate(e);t&&(e=t)}if(t._flags.truncate){const i=t.$_getRule("max");if(i){let o=i.args.limit;if(h.isResolvable(o)&&(o=o.resolve(e,n,r),!h.limit(o)))return{value:e,errors:t.$_createError("any.ref",o,{ref:i.args.limit,arg:"limit",reason:"must be a positive integer"},n,r)};e=e.slice(0,o)}}return{value:e}}},validate:(e,{error:t})=>"string"!=typeof e?{value:e,errors:t("string.base")}:""===e?{value:e,errors:t("string.empty")}:void 0,rules:{alphanum:{method(){return this.$_addRule("alphanum")},validate:(e,t)=>/^[a-zA-Z0-9]+$/.test(e)?e:t.error("string.alphanum")},base64:{method(e={}){return h.assertOptions(e,["paddingRequired","urlSafe"]),e=i({urlSafe:!1,paddingRequired:!0},e),a("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),a("boolean"==typeof e.urlSafe,"urlSafe must be boolean"),this.$_addRule({name:"base64",args:{options:e}})},validate:(e,t,{options:n})=>m.base64Regex[n.paddingRequired][n.urlSafe].test(e)?e:t.error("string.base64")},case:{method(e){return a(["lower","upper"].includes(e),"Invalid case:",e),this.$_addRule({name:"case",args:{direction:e}})},validate:(e,t,{direction:n})=>"lower"===n&&e===e.toLocaleLowerCase()||"upper"===n&&e===e.toLocaleUpperCase()?e:t.error("string.".concat(n,"case")),convert:!0},creditCard:{method(){return this.$_addRule("creditCard")},validate(e,t){let n=e.length,r=0,i=1;for(;n--;){const t=e.charAt(n)*i;r+=t-9*(t>9),i^=3}return r>0&&r%10==0?e:t.error("string.creditCard")}},dataUri:{method(e={}){return h.assertOptions(e,["paddingRequired"]),e=i({paddingRequired:!0},e),a("boolean"==typeof e.paddingRequired,"paddingRequired must be boolean"),this.$_addRule({name:"dataUri",args:{options:e}})},validate(e,t,{options:n}){const r=e.match(m.dataUriRegex);if(r){if(!r[2])return e;if("base64"!==r[2])return e;if(m.base64Regex[n.paddingRequired].false.test(r[3]))return e}return t.error("string.dataUri")}},domain:{method(e){e&&h.assertOptions(e,["allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const t=m.addressOptions(e);return this.$_addRule({name:"domain",args:{options:e},address:t})},validate:(e,t,n,{address:r})=>s.isValid(e,r)?e:t.error("string.domain")},email:{method(e={}){h.assertOptions(e,["allowUnicode","ignoreLength","maxDomainSegments","minDomainSegments","multiple","separator","tlds"]),a(void 0===e.multiple||"boolean"==typeof e.multiple,"multiple option must be an boolean");const t=m.addressOptions(e),n=new RegExp("\\s*[".concat(e.separator?u(e.separator):",","]\\s*"));return this.$_addRule({name:"email",args:{options:e},regex:n,address:t})},validate(e,t,{options:n},{regex:r,address:i}){const o=n.multiple?e.split(r):[e],a=[];for(const e of o)c.isValid(e,i)||a.push(e);return a.length?t.error("string.email",{value:e,invalids:a}):e}},guid:{alias:"uuid",method(e={}){h.assertOptions(e,["version","separator"]);let t="";if(e.version){const n=[].concat(e.version);a(n.length>=1,"version must have at least 1 valid version specified");const r=new Set;for(let e=0;e<n.length;++e){const i=n[e];a("string"==typeof i,"version at position "+e+" must be a string");const o=m.guidVersions[i.toLowerCase()];a(o,"version at position "+e+" must be one of "+Object.keys(m.guidVersions).join(", ")),a(!r.has(o),"version at position "+e+" must not be a duplicate"),t+=o,r.add(o)}}a(m.guidSeparators.has(e.separator),'separator must be one of true, false, "-", or ":"');const n=void 0===e.separator?"[:-]?":!0===e.separator?"[:-]":!1===e.separator?"[]?":"\\".concat(e.separator),r=new RegExp("^([\\[{\\(]?)[0-9A-F]{8}(".concat(n,")[0-9A-F]{4}\\2?[").concat(t||"0-9A-F","][0-9A-F]{3}\\2?[").concat(t?"89AB":"0-9A-F","][0-9A-F]{3}\\2?[0-9A-F]{12}([\\]}\\)]?)$"),"i");return this.$_addRule({name:"guid",args:{options:e},regex:r})},validate(e,t,n,{regex:r}){const i=r.exec(e);return i?m.guidBrackets[i[1]]!==i[i.length-1]?t.error("string.guid"):e:t.error("string.guid")}},hex:{method(e={}){return h.assertOptions(e,["byteAligned"]),e=i({byteAligned:!1},e),a("boolean"==typeof e.byteAligned,"byteAligned must be boolean"),this.$_addRule({name:"hex",args:{options:e}})},validate:(e,t,{options:n})=>m.hexRegex.test(e)?n.byteAligned&&e.length%2!=0?t.error("string.hexAlign"):e:t.error("string.hex")},hostname:{method(){return this.$_addRule("hostname")},validate:(e,t)=>s.isValid(e,{minDomainSegments:1})||m.ipRegex.test(e)?e:t.error("string.hostname")},insensitive:{method(){return this.$_setFlag("insensitive",!0)}},ip:{method(e={}){h.assertOptions(e,["cidr","version"]);const{cidr:t,versions:n,regex:r}=l.regex(e),i=e.version?n:void 0;return this.$_addRule({name:"ip",args:{options:{cidr:t,version:i}},regex:r})},validate:(e,t,{options:n},{regex:r})=>r.test(e)?e:n.version?t.error("string.ipVersion",{value:e,cidr:n.cidr,version:n.version}):t.error("string.ip",{value:e,cidr:n.cidr})},isoDate:{method(){return this.$_addRule("isoDate")},validate:(e,{error:t})=>m.isoDate(e)?e:t("string.isoDate")},isoDuration:{method(){return this.$_addRule("isoDuration")},validate:(e,t)=>m.isoDurationRegex.test(e)?e:t.error("string.isoDuration")},length:{method(e,t){return m.length(this,"length",e,"=",t)},validate(e,t,{limit:n,encoding:r},{name:i,operator:o,args:a}){const s=!r&&e.length;return h.compare(s,n,o)?e:t.error("string."+i,{limit:a.limit,value:e,encoding:r})},args:[{name:"limit",ref:!0,assert:h.limit,message:"must be a positive integer"},"encoding"]},lowercase:{method(){return this.case("lower")}},max:{method(e,t){return m.length(this,"max",e,"<=",t)},args:["limit","encoding"]},min:{method(e,t){return m.length(this,"min",e,">=",t)},args:["limit","encoding"]},normalize:{method(e="NFC"){return a(m.normalizationForms.includes(e),"normalization form must be one of "+m.normalizationForms.join(", ")),this.$_addRule({name:"normalize",args:{form:e}})},validate:(e,{error:t},{form:n})=>e===e.normalize(n)?e:t("string.normalize",{value:e,form:n}),convert:!0},pattern:{alias:"regex",method(e,t={}){a(e instanceof RegExp,"regex must be a RegExp"),a(!e.flags.includes("g")&&!e.flags.includes("y"),"regex should not use global or sticky mode"),"string"==typeof t&&(t={name:t}),h.assertOptions(t,["invert","name"]);const n=["string.pattern",t.invert?".invert":"",t.name?".name":".base"].join("");return this.$_addRule({name:"pattern",args:{regex:e,options:t},errorCode:n})},validate:(e,t,{regex:n,options:r},{errorCode:i})=>n.test(e)^r.invert?e:t.error(i,{name:r.name,regex:n,value:e}),args:["regex","options"],multi:!0},replace:{method(e,t){"string"==typeof e&&(e=new RegExp(u(e),"g")),a(e instanceof RegExp,"pattern must be a RegExp"),a("string"==typeof t,"replacement must be a String");const n=this.clone();return n.$_terms.replacements||(n.$_terms.replacements=[]),n.$_terms.replacements.push({pattern:e,replacement:t}),n}},token:{method(){return this.$_addRule("token")},validate:(e,t)=>/^\w+$/.test(e)?e:t.error("string.token")},trim:{method(e=!0){return a("boolean"==typeof e,"enabled must be a boolean"),this.$_addRule({name:"trim",args:{enabled:e}})},validate:(e,t,{enabled:n})=>n&&e!==e.trim()?t.error("string.trim"):e,convert:!0},truncate:{method(e=!0){return a("boolean"==typeof e,"enabled must be a boolean"),this.$_setFlag("truncate",e)}},uppercase:{method(){return this.case("upper")}},uri:{method(e={}){h.assertOptions(e,["allowRelative","allowQuerySquareBrackets","domain","relativeOnly","scheme"]),e.domain&&h.assertOptions(e.domain,["allowUnicode","maxDomainSegments","minDomainSegments","tlds"]);const{regex:t,scheme:n}=d.regex(e),r=e.domain?m.addressOptions(e.domain):null;return this.$_addRule({name:"uri",args:{options:e},regex:t,domain:r,scheme:n})},validate(e,t,{options:n},{regex:r,domain:i,scheme:o}){if(["http:/","https:/"].includes(e))return t.error("string.uri");const a=r.exec(e);if(a){if(i){const e=a[1]||a[2];if(!s.isValid(e,i))return t.error("string.domain",{value:e})}return e}return n.relativeOnly?t.error("string.uriRelativeOnly"):n.scheme?t.error("string.uriCustomScheme",{scheme:o,value:e}):t.error("string.uri")}}},manifest:{build(e,t){if(t.replacements)for(const{pattern:n,replacement:r}of t.replacements)e=e.replace(n,r);return e}},messages:{"string.alphanum":"{{#label}} must only contain alpha-numeric characters","string.base":"{{#label}} must be a string","string.base64":"{{#label}} must be a valid base64 string","string.creditCard":"{{#label}} must be a credit card","string.dataUri":"{{#label}} must be a valid dataUri string","string.domain":"{{#label}} must contain a valid domain name","string.email":"{{#label}} must be a valid email","string.empty":"{{#label}} is not allowed to be empty","string.guid":"{{#label}} must be a valid GUID","string.hex":"{{#label}} must only contain hexadecimal characters","string.hexAlign":"{{#label}} hex decoded representation must be byte aligned","string.hostname":"{{#label}} must be a valid hostname","string.ip":"{{#label}} must be a valid ip address with a {{#cidr}} CIDR","string.ipVersion":"{{#label}} must be a valid ip address of one of the following versions {{#version}} with a {{#cidr}} CIDR","string.isoDate":"{{#label}} must be in iso format","string.isoDuration":"{{#label}} must be a valid ISO 8601 duration","string.length":"{{#label}} length must be {{#limit}} characters long","string.lowercase":"{{#label}} must only contain lowercase characters","string.max":"{{#label}} length must be less than or equal to {{#limit}} characters long","string.min":"{{#label}} length must be at least {{#limit}} characters long","string.normalize":"{{#label}} must be unicode normalized in the {{#form}} form","string.token":"{{#label}} must only contain alpha-numeric and underscore characters","string.pattern.base":"{{#label}} with value {:[.]} fails to match the required pattern: {{#regex}}","string.pattern.name":"{{#label}} with value {:[.]} fails to match the {{#name}} pattern","string.pattern.invert.base":"{{#label}} with value {:[.]} matches the inverted pattern: {{#regex}}","string.pattern.invert.name":"{{#label}} with value {:[.]} matches the inverted {{#name}} pattern","string.trim":"{{#label}} must not have leading or trailing whitespace","string.uri":"{{#label}} must be a valid uri","string.uriCustomScheme":"{{#label}} must be a valid uri with a scheme matching the {{#scheme}} pattern","string.uriRelativeOnly":"{{#label}} must be a valid relative uri","string.uppercase":"{{#label}} must only contain uppercase characters"}}),m.addressOptions=function(e){if(!e)return e;if(a(void 0===e.minDomainSegments||Number.isSafeInteger(e.minDomainSegments)&&e.minDomainSegments>0,"minDomainSegments must be a positive integer"),a(void 0===e.maxDomainSegments||Number.isSafeInteger(e.maxDomainSegments)&&e.maxDomainSegments>0,"maxDomainSegments must be a positive integer"),!1===e.tlds)return e;if(!0===e.tlds||void 0===e.tlds)return a(m.tlds,"Built-in TLD list disabled"),Object.assign({},e,m.tlds);a("object"==typeof e.tlds,"tlds must be true, false, or an object");const t=e.tlds.deny;if(t)return Array.isArray(t)&&(e=Object.assign({},e,{tlds:{deny:new Set(t)}})),a(e.tlds.deny instanceof Set,"tlds.deny must be an array, Set, or boolean"),a(!e.tlds.allow,"Cannot specify both tlds.allow and tlds.deny lists"),m.validateTlds(e.tlds.deny,"tlds.deny"),e;const n=e.tlds.allow;return n?!0===n?(a(m.tlds,"Built-in TLD list disabled"),Object.assign({},e,m.tlds)):(Array.isArray(n)&&(e=Object.assign({},e,{tlds:{allow:new Set(n)}})),a(e.tlds.allow instanceof Set,"tlds.allow must be an array, Set, or boolean"),m.validateTlds(e.tlds.allow,"tlds.allow"),e):e},m.validateTlds=function(e,t){for(const n of e)a(s.isValid(n,{minDomainSegments:1,maxDomainSegments:1}),"".concat(t," must contain valid top level domain names"))},m.isoDate=function(e){if(!h.isIsoDate(e))return null;/.*T.*[+-]\d\d$/.test(e)&&(e+="00");const t=new Date(e);return isNaN(t.getTime())?null:t.toISOString()},m.length=function(e,t,n,r,i){return a(!i||!1,"Invalid encoding:",i),e.$_addRule({name:t,method:"length",args:{limit:n,encoding:i},operator:r})}},function(e,t,n){"use strict";const r=n(24),i=n(23),o=n(25),a={nonAsciiRx:/[^\x00-\x7f]/,encoder:new(r.TextEncoder||TextEncoder)};t.analyze=function(e,t){return a.email(e,t)},t.isValid=function(e,t){return!a.email(e,t)},a.email=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid input: email must be a string");if(!e)return o.code("EMPTY_STRING");const n=!a.nonAsciiRx.test(e);if(!n){if(!1===t.allowUnicode)return o.code("FORBIDDEN_UNICODE");e=e.normalize("NFC")}const r=e.split("@");if(2!==r.length)return r.length>2?o.code("MULTIPLE_AT_CHAR"):o.code("MISSING_AT_CHAR");const[s,c]=r;if(!s)return o.code("EMPTY_LOCAL");if(!t.ignoreLength){if(e.length>254)return o.code("ADDRESS_TOO_LONG");if(a.encoder.encode(s).length>64)return o.code("LOCAL_TOO_LONG")}return a.local(s,n)||i.analyze(c,t)},a.local=function(e,t){const n=e.split(".");for(const e of n){if(!e.length)return o.code("EMPTY_LOCAL_SEGMENT");if(t){if(!a.atextRx.test(e))return o.code("INVALID_LOCAL_CHARS")}else for(const t of e){if(a.atextRx.test(t))continue;const e=a.binary(t);if(!a.atomRx.test(e))return o.code("INVALID_LOCAL_CHARS")}}},a.binary=function(e){return Array.from(a.encoder.encode(e)).map(e=>String.fromCharCode(e)).join("")},a.atextRx=/^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/,a.atomRx=new RegExp(["(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},function(e,t,n){"use strict";const r=n(0),i=n(26);t.regex=function(e={}){r(void 0===e.cidr||"string"==typeof e.cidr,"options.cidr must be a string");const t=e.cidr?e.cidr.toLowerCase():"optional";r(["required","optional","forbidden"].includes(t),"options.cidr must be one of required, optional, forbidden"),r(void 0===e.version||"string"==typeof e.version||Array.isArray(e.version),"options.version must be a string or an array of string");let n=e.version||["ipv4","ipv6","ipvfuture"];Array.isArray(n)||(n=[n]),r(n.length>=1,"options.version must have at least 1 version specified");for(let e=0;e<n.length;++e)r("string"==typeof n[e],"options.version must only contain strings"),n[e]=n[e].toLowerCase(),r(["ipv4","ipv6","ipvfuture"].includes(n[e]),"options.version contains unknown version "+n[e]+" - must be one of ipv4, ipv6, ipvfuture");n=Array.from(new Set(n));const o=n.map(e=>{if("forbidden"===t)return i.ip[e];const n="\\/".concat("ipv4"===e?i.ip.v4Cidr:i.ip.v6Cidr);return"required"===t?"".concat(i.ip[e]).concat(n):"".concat(i.ip[e],"(?:").concat(n,")?")}),a="(?:".concat(o.join("|"),")"),s=new RegExp("^".concat(a,"$"));return{cidr:t,versions:n,regex:s,raw:a}}},function(e,t){},function(e,t,n){"use strict";const r=n(0),i=n(3),o={};o.Map=class extends Map{slice(){return new o.Map(this)}},e.exports=i.extend({type:"symbol",terms:{map:{init:new o.Map}},coerce:{method(e,{schema:t,error:n}){const r=t.$_terms.map.get(e);return r&&(e=r),t._flags.only&&"symbol"!=typeof e?{value:e,errors:n("symbol.map",{map:t.$_terms.map})}:{value:e}}},validate(e,{error:t}){if("symbol"!=typeof e)return{value:e,errors:t("symbol.base")}},rules:{map:{method(e){e&&!e[Symbol.iterator]&&"object"==typeof e&&(e=Object.entries(e)),r(e&&e[Symbol.iterator],"Iterable must be an iterable or object");const t=this.clone(),n=[];for(const i of e){r(i&&i[Symbol.iterator],"Entry must be an iterable");const[e,o]=i;r("object"!=typeof e&&"function"!=typeof e&&"symbol"!=typeof e,"Key must not be of type object, function, or Symbol"),r("symbol"==typeof o,"Value must be a Symbol"),t.$_terms.map.set(e,o),n.push(o)}return t.valid(...n)}}},manifest:{build:(e,t)=>(t.map&&(e=e.map(t.map)),e)},messages:{"symbol.base":"{{#label}} must be a symbol","symbol.map":"{{#label}} must be one of {{#map}}"}})}])},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InteractionForegroundService=void 0;t.InteractionForegroundService=class{constructor(e){this.handler=e}pushData(e){this.handler.onInteractionDataReceived(e)}pushEvent(e){this.handler.onEventDataReceived(e)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interactionForegroundInit=void 0;const r=n(179),i=n(340),o=n(674);t.interactionForegroundInit=function(e,t){e.registerMessage(r.PushInteractionDataMsg),e.registerMessage(r.PushEventDataMsg),e.addHandler(i.ROUTE,o.getHandler(t))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const r=n(179);t.getHandler=e=>(t,n)=>{switch(n.constructor){case r.PushInteractionDataMsg:return i(e)(t,n);case r.PushEventDataMsg:return o(e)(t,n);default:throw new Error("Unknown msg type")}};const i=e=>(t,n)=>e.pushData(n.data),o=e=>(t,n)=>e.pushEvent(n.data)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const r=n(128),i=n(336),o=n(677);t.init=function(e,t){e.registerMessage(r.GetChainInfosMsg),e.registerMessage(r.SuggestChainInfoMsg),e.registerMessage(r.RemoveSuggestedChainInfoMsg),e.addHandler(i.ROUTE,o.getHandler(t))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const i=n(128);t.getHandler=e=>(t,n)=>{switch(n.constructor){case i.GetChainInfosMsg:return o(e)(t,n);case i.SuggestChainInfoMsg:return a(e)(t,n);case i.RemoveSuggestedChainInfoMsg:return s(e)(t,n);default:throw new Error("Unknown msg type")}};const o=e=>()=>r(void 0,void 0,void 0,(function*(){return{chainInfos:yield e.getChainInfos()}})),a=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){if(yield e.hasChainInfo(n.chainInfo.chainId))return;const r=n.chainInfo;r.beta=!0,yield e.suggestChainInfo(t,r,n.origin)})),s=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.removeChainInfo(n.chainId),yield e.getChainInfos()}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(343),t),i(n(713),t)},function(e,t,n){"use strict";(function(e){var r=n(115);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(129)),o=r(n(130)),a=r(n(681)),s=r(n(682)),c=r(n(72)),l=r(n(75)),u=r(n(94)),f=n(345),d=n(684),p=n(181),h=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.APP_KEY;if((0,a.default)(this,t),!e)throw new Error("Transport has not been defined");this.transport=e,e.decorateAppAPIMethods(this,["getVersion","sign","getAddressAndPubKey","appInfo","deviceInfo","getBech32FromPK"],n)}var n,r,h,m,b,y,g,v,w,_;return(0,s.default)(t,[{key:"serializePath",value:(_=(0,o.default)(i.default.mark((function e(t){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.getVersion)(this.transport);case 2:if(this.versionResponse=e.sent,this.versionResponse.return_code===p.ERROR_CODE.NoError){e.next=5;break}throw this.versionResponse;case 5:e.t0=this.versionResponse.major,e.next=1===e.t0?8:2===e.t0?9:10;break;case 8:return e.abrupt("return",(0,f.serializePathv1)(t));case 9:return e.abrupt("return",(0,d.serializePathv2)(t));case 10:return e.abrupt("return",{return_code:25600,error_message:"App Version is not supported"});case 11:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"signGetChunks",value:(w=(0,o.default)(i.default.mark((function t(n,r){var o,a,s,c,l;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.serializePath(n);case 2:for(o=t.sent,(a=[]).push(o),s=e.from(r),c=0;c<s.length;c+=p.CHUNK_SIZE)l=c+p.CHUNK_SIZE,c>s.length&&(l=s.length),a.push(s.slice(c,l));return t.abrupt("return",a);case 8:case"end":return t.stop()}}),t,this)}))),function(e,t){return w.apply(this,arguments)})},{key:"getVersion",value:(v=(0,o.default)(i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,p.getVersion)(this.transport);case 3:return this.versionResponse=e.sent,e.abrupt("return",this.versionResponse);case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",(0,p.processErrorResponse)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return v.apply(this,arguments)})},{key:"appInfo",value:(g=(0,o.default)(i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.transport.send(176,1,0,0).then((function(e){var t=e.slice(-2),n=256*t[0]+t[1],r={},i="err",o="err",a=0,s=0;if(1!==e[0])r.error_message="response format ID not recognized",r.return_code=36865;else{var c=e[1];i=e.slice(2,2+c).toString("ascii");var l=2+c,u=e[l];l+=1,o=e.slice(l,l+u).toString("ascii"),a=e[l+=u],s=e[l+=1]}return{return_code:n,error_message:(0,p.errorCodeToString)(n),appName:i,appVersion:o,flagLen:a,flagsValue:s,flag_recovery:0!=(1&s),flag_signed_mcu_code:0!=(2&s),flag_onboarded:0!=(4&s),flag_pin_validated:0!=(128&s)}}),p.processErrorResponse));case 1:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"deviceInfo",value:(y=(0,o.default)(i.default.mark((function t(){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.transport.send(224,1,0,0,e.from([]),[p.ERROR_CODE.NoError,28160]).then((function(e){var t=e.slice(-2),n=256*t[0]+t[1];if(28160===n)return{return_code:n,error_message:"This command is only available in the Dashboard"};var r=e.slice(0,4).toString("hex"),i=4,o=e[i];i+=1;var a=e.slice(i,i+o).toString(),s=e[i+=o];i+=1;var c=e.slice(i,i+s).toString("hex"),l=e[i+=s];i+=1;var u=e.slice(i,i+l);0===u[l-1]&&(u=e.slice(i,i+l-1));var f=u.toString();return{return_code:n,error_message:(0,p.errorCodeToString)(n),targetId:r,seVersion:a,flag:c,mcuVersion:f}}),p.processErrorResponse));case 1:case"end":return t.stop()}}),t,this)}))),function(){return y.apply(this,arguments)})},{key:"publicKey",value:(b=(0,o.default)(i.default.mark((function n(r){var o,a;return i.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,this.serializePath(r);case 3:o=n.sent,n.t0=this.versionResponse.major,n.next=1===n.t0?7:2===n.t0?8:10;break;case 7:return n.abrupt("return",(0,f.publicKeyv1)(this,o));case 8:return a=e.concat([t.serializeHRP("cosmos"),o]),n.abrupt("return",(0,d.publicKeyv2)(this,a));case 10:return n.abrupt("return",{return_code:25600,error_message:"App Version is not supported"});case 11:n.next=16;break;case 13:return n.prev=13,n.t1=n.catch(0),n.abrupt("return",(0,p.processErrorResponse)(n.t1));case 16:case"end":return n.stop()}}),n,this,[[0,13]])}))),function(e){return b.apply(this,arguments)})},{key:"getAddressAndPubKey",value:(m=(0,o.default)(i.default.mark((function n(r,o){var a=this;return i.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.abrupt("return",this.serializePath(r).then((function(n){var r=e.concat([t.serializeHRP(o),n]);return a.transport.send(p.CLA,p.INS.GET_ADDR_SECP256K1,p.P1_VALUES.ONLY_RETRIEVE,0,r,[p.ERROR_CODE.NoError]).then((function(t){var n=t.slice(-2),r=256*n[0]+n[1],i=e.from(t.slice(0,33));return{bech32_address:e.from(t.slice(33,-2)).toString(),compressed_pk:i,return_code:r,error_message:(0,p.errorCodeToString)(r)}}),p.processErrorResponse)})).catch((function(e){return(0,p.processErrorResponse)(e)})));case 4:return n.prev=4,n.t0=n.catch(0),n.abrupt("return",(0,p.processErrorResponse)(n.t0));case 7:case"end":return n.stop()}}),n,this,[[0,4]])}))),function(e,t){return m.apply(this,arguments)})},{key:"showAddressAndPubKey",value:(h=(0,o.default)(i.default.mark((function n(r,o){var a=this;return i.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.abrupt("return",this.serializePath(r).then((function(n){var r=e.concat([t.serializeHRP(o),n]);return a.transport.send(p.CLA,p.INS.GET_ADDR_SECP256K1,p.P1_VALUES.SHOW_ADDRESS_IN_DEVICE,0,r,[p.ERROR_CODE.NoError]).then((function(t){var n=t.slice(-2),r=256*n[0]+n[1],i=e.from(t.slice(0,33));return{bech32_address:e.from(t.slice(33,-2)).toString(),compressed_pk:i,return_code:r,error_message:(0,p.errorCodeToString)(r)}}),p.processErrorResponse)})).catch((function(e){return(0,p.processErrorResponse)(e)})));case 4:return n.prev=4,n.t0=n.catch(0),n.abrupt("return",(0,p.processErrorResponse)(n.t0));case 7:case"end":return n.stop()}}),n,this,[[0,4]])}))),function(e,t){return h.apply(this,arguments)})},{key:"signSendChunk",value:(r=(0,o.default)(i.default.mark((function e(t,n,r){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.versionResponse.major,e.next=1===e.t0?3:2===e.t0?4:5;break;case 3:return e.abrupt("return",(0,f.signSendChunkv1)(this,t,n,r));case 4:return e.abrupt("return",(0,d.signSendChunkv2)(this,t,n,r));case 5:return e.abrupt("return",{return_code:25600,error_message:"App Version is not supported"});case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"sign",value:(n=(0,o.default)(i.default.mark((function e(t,n){var r=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.signGetChunks(t,n).then((function(e){return r.signSendChunk(1,e.length,e[0],[p.ERROR_CODE.NoError]).then(function(){var t=(0,o.default)(i.default.mark((function t(n){var o,a;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o={return_code:n.return_code,error_message:n.error_message,signature:null},a=1;case 2:if(!(a<e.length)){t.next=11;break}return t.next=5,r.signSendChunk(1+a,e.length,e[a]);case 5:if((o=t.sent).return_code===p.ERROR_CODE.NoError){t.next=8;break}return t.abrupt("break",11);case 8:a+=1,t.next=2;break;case 11:return t.abrupt("return",{return_code:o.return_code,error_message:o.error_message,signature:o.signature});case 12:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),p.processErrorResponse)}),p.processErrorResponse));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})}],[{key:"serializeHRP",value:function(t){if(null==t||t.length<3||t.length>83)throw new Error("Invalid HRP");var n=e.alloc(1+t.length);return n.writeUInt8(t.length,0),n.write(t,1),n}},{key:"getBech32FromPK",value:function(e,t){if(33!==t.length)throw new Error("expected compressed public key [31 bytes]");var n=c.default.createHash("sha256").update(t).digest(),r=(new l.default).update(n).digest();return u.default.encode(e,u.default.toWords(r))}}]),t}();t.default=h}).call(this,n(2).Buffer)},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function f(){}function d(){}function p(){}var h={};h[i]=function(){return this};var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(h=b);var y=p.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function v(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=y.constructor=p,p.constructor=d,d.displayName=s(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(v.prototype),v.prototype[o]=function(){return this},e.AsyncIterator=v,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new v(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),s(y,a,"Generator"),y[i]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";(function(e){var r=n(115);Object.defineProperty(t,"__esModule",{value:!0}),t.serializePathv2=function(t){if(!t||5!==t.length)throw new Error("Invalid path.");var n=e.alloc(20);return n.writeUInt32LE(2147483648+t[0],0),n.writeUInt32LE(2147483648+t[1],4),n.writeUInt32LE(2147483648+t[2],8),n.writeUInt32LE(t[3],12),n.writeUInt32LE(t[4],16),n},t.signSendChunkv2=function(e,t,n,r){return c.apply(this,arguments)},t.publicKeyv2=function(e,t){return l.apply(this,arguments)};var i=r(n(129)),o=r(n(130)),a=n(345),s=n(181);function c(){return(c=(0,o.default)(i.default.mark((function e(t,n,r,o){var c;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=s.PAYLOAD_TYPE.ADD,1===n&&(c=s.PAYLOAD_TYPE.INIT),n===r&&(c=s.PAYLOAD_TYPE.LAST),e.abrupt("return",(0,a.signSendChunkv1)(t,c,0,o));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(){return(l=(0,o.default)(i.default.mark((function t(n,r){return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",n.transport.send(s.CLA,s.INS.GET_ADDR_SECP256K1,0,0,r,[s.ERROR_CODE.NoError]).then((function(t){var n=t.slice(-2),r=256*n[0]+n[1];return{pk:"OBSOLETE PROPERTY",compressed_pk:e.from(t.slice(0,33)),return_code:r,error_message:(0,s.errorCodeToString)(r)}}),s.processErrorResponse));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"default",(function(){return u}));var r=n(143),i=n(144),o=n.n(i),a=n(44),s=n(86),c=n(15),l=n(88);class u extends r.a{constructor(t,n){super(),this.device=void 0,this.deviceModel=void 0,this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this.interfaceNumber=void 0,this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.exchange=t=>this.exchangeAtomicImpl(async()=>{const{channel:n,packetSize:r}=this;Object(s.a)("apdu","=> "+t.toString("hex"));const i=o()(n,r),a=i.makeBlocks(t);for(let e=0;e<a.length;e++)await this.device.transferOut(3,a[e]);let c,l;for(;!(c=i.getReducedResult(l));){const t=await this.device.transferIn(3,r),n=e.from(t.data.buffer);l=i.reduceResponse(l,n)}return Object(s.a)("apdu","<= "+c.toString("hex")),c}).catch(e=>{if(e&&e.message&&e.message.includes("disconnected"))throw this._emitDisconnect(e),new c.DisconnectedDeviceDuringOperation(e.message);throw e}),this.device=t,this.interfaceNumber=n,this.deviceModel=Object(a.a)(t.productId)}static async request(){const e=await Object(l.d)();return u.open(e)}static async openConnected(){const e=await Object(l.b)();return 0===e.length?null:u.open(e[0])}static async open(e){await e.open(),null===e.configuration&&await e.selectConfiguration(1),await f(e);const t=e.configurations[0].interfaces.find(({alternates:e})=>e.some(e=>255===e.interfaceClass));if(!t)throw new c.TransportInterfaceNotAvailable("No WebUSB interface found for your Ledger device. Please upgrade firmware or contact techsupport.");const n=t.interfaceNumber;try{await e.claimInterface(n)}catch(t){throw await e.close(),new c.TransportInterfaceNotAvailable(t.message)}const r=new u(e,n),i=t=>{e===t.device&&(navigator.usb.removeEventListener("disconnect",i),r._emitDisconnect(new c.DisconnectedDevice))};return navigator.usb.addEventListener("disconnect",i),r}async close(){await this.exchangeBusyPromise,await this.device.releaseInterface(this.interfaceNumber),await f(this.device),await this.device.close()}setScrambleKey(){}}async function f(e){try{await e.reset()}catch(e){console.warn(e)}}u.isSupported=l.c,u.list=l.b,u.listen=e=>{let t=!1;return Object(l.a)().then(n=>{if(!t){const t=Object(a.a)(n.productId);e.next({type:"add",descriptor:n,deviceModel:t}),e.complete()}},t=>{window.DOMException&&t instanceof window.DOMException&&18===t.code?e.error(new c.TransportWebUSBGestureRequired(t.message)):e.error(new c.TransportOpenUserCancelled(t.message))}),{unsubscribe:function(){t=!0}}}}.call(this,n(2).Buffer)},function(e,t,n){const r=n(85);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},function(e,t,n){const r=n(85);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},function(e,t,n){const r=n(24);e.exports=(e,t,n,i)=>{"string"==typeof n&&(i=n,n=void 0);try{return new r(e,n).inc(t,i).version}catch(e){return null}}},function(e,t,n){const r=n(85),i=n(183);e.exports=(e,t)=>{if(i(e,t))return null;{const n=r(e),i=r(t),o=n.prerelease.length||i.prerelease.length,a=o?"pre":"",s=o?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==i[e])return a+e;return s}}},function(e,t,n){const r=n(24);e.exports=(e,t)=>new r(e,t).major},function(e,t,n){const r=n(24);e.exports=(e,t)=>new r(e,t).minor},function(e,t,n){const r=n(24);e.exports=(e,t)=>new r(e,t).patch},function(e,t,n){const r=n(85);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},function(e,t,n){const r=n(40);e.exports=(e,t,n)=>r(t,e,n)},function(e,t,n){const r=n(40);e.exports=(e,t)=>r(e,t,!0)},function(e,t,n){const r=n(184);e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t))},function(e,t,n){const r=n(184);e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t))},function(e,t,n){const r=n(24),i=n(85),{re:o,t:a}=n(84);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},function(e,t,n){"use strict";const r=n(700),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),f=Symbol("lruList"),d=Symbol("cache"),p=Symbol("updateAgeOnGet"),h=()=>1;const m=(e,t,n)=>{const r=e[d].get(t);if(r){const t=r.value;if(b(e,t)){if(g(e,r),!e[s])return}else n&&(e[p]&&(r.value.now=Date.now()),e[f].unshiftNode(r));return t.value}},b=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]},y=e=>{if(e[o]>e[i])for(let t=e[f].tail;e[o]>e[i]&&null!==t;){const n=t.prev;g(e,t),t=n}},g=(e,t)=>{if(t){const n=t.value;e[l]&&e[l](n.key,n.value),e[o]-=n.length,e[d].delete(n.key),e[f].removeNode(t)}};class v{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const w=(e,t,n,r)=>{let i=n.value;b(e,i)&&(g(e,n),e[s]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||h;if(this[a]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,y(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,y(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[a]&&(this[a]=e,this[o]=0,this[f].forEach(e=>{e.length=this[a](e.value,e.key),this[o]+=e.length})),y(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let n=this[f].tail;null!==n;){const r=n.prev;w(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[f].head;null!==n;){const r=n.next;w(this,e,n,t),n=r}}keys(){return this[f].toArray().map(e=>e.key)}values(){return this[f].toArray().map(e=>e.value)}reset(){this[l]&&this[f]&&this[f].length&&this[f].forEach(e=>this[l](e.key,e.value)),this[d]=new Map,this[f]=new r,this[o]=0}dump(){return this[f].map(e=>!b(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[f]}set(e,t,n){if((n=n||this[c])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[a](t,e);if(this[d].has(e)){if(s>this[i])return g(this,this[d].get(e)),!1;const a=this[d].get(e).value;return this[l]&&(this[u]||this[l](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),y(this),!0}const p=new v(e,t,s,r,n);return p.length>this[i]?(this[l]&&this[l](e,t),!1):(this[o]+=p.length,this[f].unshift(p),this[d].set(e,this[f].head),y(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!b(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[f].tail;return e?(g(this,e),e.value):null}del(e){g(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[d].forEach((e,t)=>m(this,t,!1))}}},function(e,t,n){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)n.push(o.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;var a=[];for(r=0;o&&r<t;r++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(r=0;r<n.length;r++)o=i(this,o,n[r]);return a},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(701)(r)}catch(e){}},function(e,t,n){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},function(e,t,n){const r=n(41);e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},function(e,t,n){const r=n(24),i=n(41);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new r(o,n)))}),o}},function(e,t,n){const r=n(24),i=n(41);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new r(o,n)))}),o}},function(e,t,n){const r=n(24),i=n(41),o=n(134);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let a=null;i.forEach(e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}),!a||n&&!o(n,a)||(n=a)}return n&&e.test(n)?n:null}},function(e,t,n){const r=n(41);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},function(e,t,n){const r=n(188);e.exports=(e,t,n)=>r(e,t,">",n)},function(e,t,n){const r=n(188);e.exports=(e,t,n)=>r(e,t,"<",n)},function(e,t,n){const r=n(41);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))},function(e,t,n){const r=n(136),i=n(40);e.exports=(e,t,n)=>{const o=[];let a=null,s=null;const c=e.sort((e,t)=>i(e,t,n));for(const e of c){r(e,t,n)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null)}a&&o.push([a,null]);const l=[];for(const[e,t]of o)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push("<="+t):l.push(`${e} - ${t}`):l.push(">="+e):l.push("*");const u=l.join(" || "),f="string"==typeof t.raw?t.raw:String(t);return u.length<f.length?u:t}},function(e,t,n){const r=n(41),i=n(135),{ANY:o}=i,a=n(136),s=n(40),c=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=[new i(">=0.0.0")]}const r=new Set;let c,f,d,p,h,m,b;for(const t of e)">"===t.operator||">="===t.operator?c=l(c,t,n):"<"===t.operator||"<="===t.operator?f=u(f,t,n):r.add(t.semver);if(r.size>1)return null;if(c&&f){if(d=s(c.semver,f.semver,n),d>0)return null;if(0===d&&(">="!==c.operator||"<="!==f.operator))return null}for(const e of r){if(c&&!a(e,String(c),n))return null;if(f&&!a(e,String(f),n))return null;for(const r of t)if(!a(e,String(r),n))return!1;return!0}let y=!(!f||n.includePrerelease||!f.semver.prerelease.length)&&f.semver,g=!(!c||n.includePrerelease||!c.semver.prerelease.length)&&c.semver;y&&1===y.prerelease.length&&"<"===f.operator&&0===y.prerelease[0]&&(y=!1);for(const e of t){if(b=b||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,c)if(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!1),">"===e.operator||">="===e.operator){if(p=l(c,e,n),p===e&&p!==c)return!1}else if(">="===c.operator&&!a(c.semver,String(e),n))return!1;if(f)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if(h=u(f,e,n),h===e&&h!==f)return!1}else if("<="===f.operator&&!a(f.semver,String(e),n))return!1;if(!e.operator&&(f||c)&&0!==d)return!1}return!(c&&m&&!f&&0!==d)&&(!(f&&b&&!c&&0!==d)&&(!g&&!y))},l=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},u=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=c(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},function(e,t,n){"use strict";n.r(t),function(e,r){n.d(t,"default",(function(){return h}));var i=n(143),o=n(144),a=n.n(o),s=n(44),c=n(86),l=n(15);const u=[{vendorId:s.b}],f=()=>{const{hid:e}=navigator;if(!e)throw new l.TransportError("navigator.hid is not supported","HIDNotSupported");return e};async function d(){const e=await f().requestDevice({filters:u});return Array.isArray(e)?e:[e]}async function p(){return(await f().getDevices()).filter(e=>e.vendorId===s.b)}class h extends i.a{constructor(e){super(),this.device=void 0,this.deviceModel=void 0,this.channel=Math.floor(65535*Math.random()),this.packetSize=64,this.inputs=[],this.inputCallback=void 0,this.read=()=>this.inputs.length?Promise.resolve(this.inputs.shift()):new Promise(e=>{this.inputCallback=e}),this.onInputReport=e=>{const t=r.from(e.data.buffer);this.inputCallback?(this.inputCallback(t),this.inputCallback=null):this.inputs.push(t)},this._disconnectEmitted=!1,this._emitDisconnect=e=>{this._disconnectEmitted||(this._disconnectEmitted=!0,this.emit("disconnect",e))},this.exchange=e=>this.exchangeAtomicImpl(async()=>{const{channel:t,packetSize:n}=this;Object(c.a)("apdu","=> "+e.toString("hex"));const r=a()(t,n),i=r.makeBlocks(e);for(let e=0;e<i.length;e++)await this.device.sendReport(0,i[e]);let o,s;for(;!(o=r.getReducedResult(s));){const e=await this.read();s=r.reduceResponse(s,e)}return Object(c.a)("apdu","<= "+o.toString("hex")),o}).catch(e=>{if(e&&e.message&&e.message.includes("write"))throw this._emitDisconnect(e),new l.DisconnectedDeviceDuringOperation(e.message);throw e}),this.device=e,this.deviceModel=Object(s.a)(e.productId),e.addEventListener("inputreport",this.onInputReport)}static async request(){const[e]=await d();return h.open(e)}static async openConnected(){const e=await p();return 0===e.length?null:h.open(e[0])}static async open(e){await e.open();const t=new h(e),n=r=>{e===r.device&&(f().removeEventListener("disconnect",n),t._emitDisconnect(new l.DisconnectedDevice))};return f().addEventListener("disconnect",n),t}async close(){await this.exchangeBusyPromise,this.device.removeEventListener("inputreport",this.onInputReport),await this.device.close()}setScrambleKey(){}}h.isSupported=()=>Promise.resolve(!(!e.navigator||!e.navigator.hid)),h.list=p,h.listen=e=>{let t=!1;return async function(){const e=await p();return e.length>0?e[0]:(await d())[0]}().then(n=>{if(n){if(!t){const t=Object(s.a)(n.productId);e.next({type:"add",descriptor:n,deviceModel:t}),e.complete()}}else e.error(new l.TransportOpenUserCancelled("Access denied to use Ledger device"))},t=>{e.error(new l.TransportOpenUserCancelled(t.message))}),{unsubscribe:function(){t=!0}}}}.call(this,n(12),n(2).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const r=n(189),i=n(348),o=n(714);t.init=function(e,t){e.registerMessage(r.LedgerGetWebHIDFlagMsg),e.registerMessage(r.LedgerSetWebHIDFlagMsg),e.addHandler(i.ROUTE,o.getHandler(t))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const i=n(189);t.getHandler=e=>(t,n)=>{switch(n.constructor){case i.LedgerGetWebHIDFlagMsg:return o(e)(t,n);case i.LedgerSetWebHIDFlagMsg:return a(e)(t,n);default:throw new Error("Unknown msg type")}};const o=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.getWebHIDFlag()})),a=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.setWebHIDFlag(n.flag)}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(349),t),i(n(728),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Crypto=void 0;const c=s(n(410)),l=o(n(717)),u=n(108),f=n(2);class d{static encrypt(e,t,n,r,i,o){return a(this,void 0,void 0,(function*(){let a=new Uint8Array(32);const s={salt:f.Buffer.from(yield e(a)).toString("hex"),dklen:32,n:131072,r:8,p:1},c=yield d.scrpyt(r,s),p=f.Buffer.from(n);a=new Uint8Array(16);const h=f.Buffer.from(yield e(a)),m=new l.Counter(0);m.setBytes(h);const b=new l.default.ModeOfOperation.ctr(c,m),y=f.Buffer.from(b.encrypt(p)),g=u.Hash.sha256(f.Buffer.concat([f.Buffer.from(c.slice(c.length/2)),y]));return{version:"1.2",type:t,coinTypeForChain:{},bip44HDPath:o,meta:i,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:h.toString("hex")},ciphertext:y.toString("hex"),kdf:"scrypt",kdfparams:s,mac:f.Buffer.from(g).toString("hex")}}}))}static decrypt(e,t){return a(this,void 0,void 0,(function*(){const n=yield d.scrpyt(t,e.crypto.kdfparams),r=new l.Counter(0);r.setBytes(f.Buffer.from(e.crypto.cipherparams.iv,"hex"));const i=new l.default.ModeOfOperation.ctr(n,r),o=u.Hash.sha256(f.Buffer.concat([f.Buffer.from(n.slice(n.length/2)),f.Buffer.from(e.crypto.ciphertext,"hex")]));if(!f.Buffer.from(o).equals(f.Buffer.from(e.crypto.mac,"hex")))throw new Error("Unmatched mac");return f.Buffer.from(i.decrypt(f.Buffer.from(e.crypto.ciphertext,"hex")))}))}static scrpyt(e,t){return a(this,void 0,void 0,(function*(){const n=f.Buffer.from(e);return yield c.default.scrypt(n,f.Buffer.from(t.salt,"hex"),t.n,t.r,t.p,t.dklen)}))}}t.Crypto=d},function(e,t,n){
93 /*! MIT License. Copyright 2015-2018 Richard Moore <me@ricmoo.com>. See LICENSE.txt. */
94 !function(t){"use strict";function n(e){return parseInt(e)===e}function r(e){if(!n(e.length))return!1;for(var t=0;t<e.length;t++)if(!n(e[t])||e[t]<0||e[t]>255)return!1;return!0}function i(e,t){if(e.buffer&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function a(e,t,n,r,i){null==r&&null==i||(e=e.slice?e.slice(r,i):Array.prototype.slice.call(e,r,i)),t.set(e,n)}var s,c={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n<e.length;){var r=e.charCodeAt(n++);37===r?(t.push(parseInt(e.substr(n,2),16)),n+=2):t.push(r)}return i(t)},fromBytes:function(e){for(var t=[],n=0;n<e.length;){var r=e[n];r<128?(t.push(String.fromCharCode(r)),n++):r>191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},l=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},fromBytes:function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(s[(240&r)>>4]+s[15&r])}return t.join("")}}),u={16:10,24:12,32:14},f=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],d=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],h=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],b=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],y=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],v=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],w=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],_=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],k=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],x=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],S=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],O=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function E(e){for(var t=[],n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var T=function(e){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(e,!0)}),this._prepare()};T.prototype._prepare=function(){var e=u[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var n,r=4*(e+1),i=this.key.length/4,o=E(this.key);for(t=0;t<i;t++)n=t>>2,this._Ke[n][t%4]=o[t],this._Kd[e-n][t%4]=o[t];for(var a,s=0,c=i;c<r;){if(a=o[i-1],o[0]^=d[a>>16&255]<<24^d[a>>8&255]<<16^d[255&a]<<8^d[a>>24&255]^f[s]<<24,s+=1,8!=i)for(t=1;t<i;t++)o[t]^=o[t-1];else{for(t=1;t<i/2;t++)o[t]^=o[t-1];a=o[i/2-1],o[i/2]^=d[255&a]^d[a>>8&255]<<8^d[a>>16&255]<<16^d[a>>24&255]<<24;for(t=i/2+1;t<i;t++)o[t]^=o[t-1]}for(t=0;t<i&&c<r;)l=c>>2,p=c%4,this._Ke[l][p]=o[t],this._Kd[e-l][p]=o[t++],c++}for(var l=1;l<e;l++)for(var p=0;p<4;p++)a=this._Kd[l][p],this._Kd[l][p]=k[a>>24&255]^x[a>>16&255]^S[a>>8&255]^O[255&a]},T.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=E(e),i=0;i<4;i++)r[i]^=this._Ke[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)n[i]=h[r[i]>>24&255]^m[r[(i+1)%4]>>16&255]^b[r[(i+2)%4]>>8&255]^y[255&r[(i+3)%4]]^this._Ke[a][i];r=n.slice()}var s,c=o(16);for(i=0;i<4;i++)s=this._Ke[t][i],c[4*i]=255&(d[r[i]>>24&255]^s>>24),c[4*i+1]=255&(d[r[(i+1)%4]>>16&255]^s>>16),c[4*i+2]=255&(d[r[(i+2)%4]>>8&255]^s>>8),c[4*i+3]=255&(d[255&r[(i+3)%4]]^s);return c},T.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=E(e),i=0;i<4;i++)r[i]^=this._Kd[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)n[i]=g[r[i]>>24&255]^v[r[(i+3)%4]>>16&255]^w[r[(i+2)%4]>>8&255]^_[255&r[(i+1)%4]]^this._Kd[a][i];r=n.slice()}var s,c=o(16);for(i=0;i<4;i++)s=this._Kd[t][i],c[4*i]=255&(p[r[i]>>24&255]^s>>24),c[4*i+1]=255&(p[r[(i+3)%4]>>16&255]^s>>16),c[4*i+2]=255&(p[r[(i+2)%4]>>8&255]^s>>8),c[4*i+3]=255&(p[255&r[(i+1)%4]]^s);return c};var A=function(e){if(!(this instanceof A))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new T(e)};A.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16)a(e,n,0,r,r+16),a(n=this._aes.encrypt(n),t,r);return t},A.prototype.decrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16)a(e,n,0,r,r+16),a(n=this._aes.decrypt(n),t,r);return t};var M=function(e,t){if(!(this instanceof M))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=o(16);this._lastCipherblock=i(t,!0),this._aes=new T(e)};M.prototype.encrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16);for(var s=0;s<16;s++)n[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(n),a(this._lastCipherblock,t,r)}return t},M.prototype.decrypt=function(e){if((e=i(e)).length%16!=0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16),n=this._aes.decrypt(n);for(var s=0;s<16;s++)t[r+s]=n[s]^this._lastCipherblock[s];a(e,this._lastCipherblock,0,r,r+16)}return t};var I=function(e,t,n){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 size)")}else t=o(16);n||(n=1),this.segmentSize=n,this._shiftRegister=i(t,!0),this._aes=new T(e)};I.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,n=i(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)n[r+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(n,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n},I.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,n=i(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)n[r+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(e,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n};var P=function(e,t){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",t){if(16!=t.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else t=o(16);this._lastPrecipher=i(t,!0),this._lastPrecipherIndex=16,this._aes=new T(e)};P.prototype.encrypt=function(e){for(var t=i(e,!0),n=0;n<t.length;n++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[n]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},P.prototype.decrypt=P.prototype.encrypt;var C=function(e){if(!(this instanceof C))throw Error("Counter must be instanitated with `new`");0===e||e||(e=1),"number"==typeof e?(this._counter=o(16),this.setValue(e)):this.setBytes(e)};C.prototype.setValue=function(e){if("number"!=typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");if(e>Number.MAX_SAFE_INTEGER)throw new Error("integer value out of safe range");for(var t=15;t>=0;--t)this._counter[t]=e%256,e=parseInt(e/256)},C.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},C.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var j=function(e,t){if(!(this instanceof j))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",t instanceof C||(t=new C(t)),this._counter=t,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new T(e)};j.prototype.encrypt=function(e){for(var t=i(e,!0),n=0;n<t.length;n++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[n]^=this._remainingCounter[this._remainingCounterIndex++];return t},j.prototype.decrypt=j.prototype.encrypt;var D={AES:T,Counter:C,ModeOfOperation:{ecb:A,cbc:M,cfb:I,ofb:P,ctr:j},utils:{hex:l,utf8:c},padding:{pkcs7:{pad:function(e){var t=16-(e=i(e,!0)).length%16,n=o(e.length+t);a(e,n);for(var r=e.length;r<n.length;r++)n[r]=t;return n},strip:function(e){if((e=i(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r<t;r++)if(e[n+r]!==t)throw new Error("PKCS#7 invalid padding byte");var s=o(n);return a(e,s,0,0,n),s}}},_arrayTest:{coerceArray:i,createArray:o,copyArray:a}};e.exports=D}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeSignDoc=t.makeSignBytes=t.makeAuthInfoBytes=t.isOfflineDirectSigner=t.encodePubkey=t.decodePubkey=t.makeCosmoshubPath=t.DirectSecp256k1Wallet=t.DirectSecp256k1HdWallet=t.Registry=void 0;var r=n(720);Object.defineProperty(t,"Registry",{enumerable:!0,get:function(){return r.Registry}});var i=n(723);Object.defineProperty(t,"DirectSecp256k1HdWallet",{enumerable:!0,get:function(){return i.DirectSecp256k1HdWallet}});var o=n(724);Object.defineProperty(t,"DirectSecp256k1Wallet",{enumerable:!0,get:function(){return o.DirectSecp256k1Wallet}});var a=n(358);Object.defineProperty(t,"makeCosmoshubPath",{enumerable:!0,get:function(){return a.makeCosmoshubPath}});var s=n(725);Object.defineProperty(t,"decodePubkey",{enumerable:!0,get:function(){return s.decodePubkey}}),Object.defineProperty(t,"encodePubkey",{enumerable:!0,get:function(){return s.encodePubkey}});var c=n(727);Object.defineProperty(t,"isOfflineDirectSigner",{enumerable:!0,get:function(){return c.isOfflineDirectSigner}});var l=n(193);Object.defineProperty(t,"makeAuthInfoBytes",{enumerable:!0,get:function(){return l.makeAuthInfoBytes}}),Object.defineProperty(t,"makeSignBytes",{enumerable:!0,get:function(){return l.makeSignBytes}}),Object.defineProperty(t,"makeSignDoc",{enumerable:!0,get:function(){return l.makeSignDoc}})},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.Registry=void 0;const r=n(721),i=n(137),o=n(355),a=n(138),s={cosmosCoin:"/cosmos.base.v1beta1.Coin",cosmosMsgSend:"/cosmos.bank.v1beta1.MsgSend",cosmosTxBody:"/cosmos.tx.v1beta1.TxBody",googleAny:"/google.protobuf.Any"};t.Registry=class{constructor(e=[]){const{cosmosCoin:t,cosmosMsgSend:n}=s;this.types=new Map([[t,i.Coin],[n,r.MsgSend],...e])}register(e,t){this.types.set(e,t)}lookupType(e){return this.types.get(e)}lookupTypeWithError(e){const t=this.lookupType(e);if(!t)throw new Error("Unregistered type url: "+e);return t}encode({typeUrl:e,value:t}){if(e===s.cosmosTxBody)return this.encodeTxBody(t);const n=this.lookupTypeWithError(e),r=n.fromPartial(t);return Uint8Array.from(n.encode(r).finish())}encodeTxBody(e){const t=e.messages.map(e=>{const t=this.encode(e);return a.Any.fromPartial({typeUrl:e.typeUrl,value:t})}),n=o.TxBody.fromPartial(Object.assign(Object.assign({},e),{messages:t}));return Uint8Array.from(o.TxBody.encode(n).finish())}decode({typeUrl:t,value:n}){if(t===s.cosmosTxBody)return this.decodeTxBody(n);const r=this.lookupTypeWithError(t).decode(n);return Object.entries(r).forEach(([t,n])=>{void 0!==e&&void 0!==e.isBuffer&&e.isBuffer(n)&&(r[t]=Uint8Array.from(n))}),r}decodeTxBody(e){const t=o.TxBody.decode(e);return Object.assign(Object.assign({},t),{messages:t.messages.map(({typeUrl:e,value:t})=>{if(!e)throw new Error("Missing type_url in Any");if(!t)throw new Error("Missing value in Any");return this.decode({typeUrl:e,value:t})})})}}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgMultiSendResponse=t.MsgMultiSend=t.MsgSendResponse=t.MsgSend=t.protobufPackage=void 0;const i=n(137),o=n(722),a=r(n(48));t.protobufPackage="cosmos.bank.v1beta1";const s={fromAddress:"",toAddress:""};t.MsgSend={encode(e,t=a.default.Writer.create()){t.uint32(10).string(e.fromAddress),t.uint32(18).string(e.toAddress);for(const n of e.amount)i.Coin.encode(n,t.uint32(26).fork()).ldelim();return t},decode(e,t){const n=e instanceof Uint8Array?new a.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const o=Object.assign({},s);for(o.amount=[];n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.fromAddress=n.string();break;case 2:o.toAddress=n.string();break;case 3:o.amount.push(i.Coin.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},s);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.amount&&null!==e.amount)for(const n of e.amount)t.amount.push(i.Coin.fromJSON(n));return t},fromPartial(e){const t=Object.assign({},s);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.amount&&null!==e.amount)for(const n of e.amount)t.amount.push(i.Coin.fromPartial(n));return t},toJSON(e){const t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map(e=>e?i.Coin.toJSON(e):void 0):t.amount=[],t}};const c={};t.MsgSendResponse={encode:(e,t=a.default.Writer.create())=>t,decode(e,t){const n=e instanceof Uint8Array?new a.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const i=Object.assign({},c);for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>Object.assign({},c),fromPartial:e=>Object.assign({},c),toJSON:e=>({})};const l={};t.MsgMultiSend={encode(e,t=a.default.Writer.create()){for(const n of e.inputs)o.Input.encode(n,t.uint32(10).fork()).ldelim();for(const n of e.outputs)o.Output.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof Uint8Array?new a.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const i=Object.assign({},l);for(i.inputs=[],i.outputs=[];n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:i.inputs.push(o.Input.decode(n,n.uint32()));break;case 2:i.outputs.push(o.Output.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},l);if(t.inputs=[],t.outputs=[],void 0!==e.inputs&&null!==e.inputs)for(const n of e.inputs)t.inputs.push(o.Input.fromJSON(n));if(void 0!==e.outputs&&null!==e.outputs)for(const n of e.outputs)t.outputs.push(o.Output.fromJSON(n));return t},fromPartial(e){const t=Object.assign({},l);if(t.inputs=[],t.outputs=[],void 0!==e.inputs&&null!==e.inputs)for(const n of e.inputs)t.inputs.push(o.Input.fromPartial(n));if(void 0!==e.outputs&&null!==e.outputs)for(const n of e.outputs)t.outputs.push(o.Output.fromPartial(n));return t},toJSON(e){const t={};return e.inputs?t.inputs=e.inputs.map(e=>e?o.Input.toJSON(e):void 0):t.inputs=[],e.outputs?t.outputs=e.outputs.map(e=>e?o.Output.toJSON(e):void 0):t.outputs=[],t}};const u={};t.MsgMultiSendResponse={encode:(e,t=a.default.Writer.create())=>t,decode(e,t){const n=e instanceof Uint8Array?new a.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const i=Object.assign({},u);for(;n.pos<r;){const e=n.uint32();n.skipType(7&e)}return i},fromJSON:e=>Object.assign({},u),fromPartial:e=>Object.assign({},u),toJSON:e=>({})};t.MsgClientImpl=class{constructor(e){this.rpc=e}Send(e){const n=t.MsgSend.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","methodDesc.name",n).then(e=>t.MsgSendResponse.decode(new a.default.Reader(e)))}MultiSend(e){const n=t.MsgMultiSend.encode(e).finish();return this.rpc.request("cosmos.bank.v1beta1.Msg","methodDesc.name",n).then(e=>t.MsgMultiSendResponse.decode(new a.default.Reader(e)))}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=t.DenomUnit=t.Supply=t.Output=t.Input=t.SendEnabled=t.Params=t.protobufPackage=void 0;const i=n(137),o=r(n(48));t.protobufPackage="cosmos.bank.v1beta1";const a={defaultSendEnabled:!1};t.Params={encode(e,n=o.default.Writer.create()){for(const r of e.sendEnabled)t.SendEnabled.encode(r,n.uint32(10).fork()).ldelim();return n.uint32(16).bool(e.defaultSendEnabled),n},decode(e,n){const r=e instanceof Uint8Array?new o.default.Reader(e):e;let i=void 0===n?r.len:r.pos+n;const s=Object.assign({},a);for(s.sendEnabled=[];r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:s.sendEnabled.push(t.SendEnabled.decode(r,r.uint32()));break;case 2:s.defaultSendEnabled=r.bool();break;default:r.skipType(7&e)}}return s},fromJSON(e){const n=Object.assign({},a);if(n.sendEnabled=[],void 0!==e.sendEnabled&&null!==e.sendEnabled)for(const r of e.sendEnabled)n.sendEnabled.push(t.SendEnabled.fromJSON(r));return void 0!==e.defaultSendEnabled&&null!==e.defaultSendEnabled?n.defaultSendEnabled=Boolean(e.defaultSendEnabled):n.defaultSendEnabled=!1,n},fromPartial(e){const n=Object.assign({},a);if(n.sendEnabled=[],void 0!==e.sendEnabled&&null!==e.sendEnabled)for(const r of e.sendEnabled)n.sendEnabled.push(t.SendEnabled.fromPartial(r));return void 0!==e.defaultSendEnabled&&null!==e.defaultSendEnabled?n.defaultSendEnabled=e.defaultSendEnabled:n.defaultSendEnabled=!1,n},toJSON(e){const n={};return e.sendEnabled?n.sendEnabled=e.sendEnabled.map(e=>e?t.SendEnabled.toJSON(e):void 0):n.sendEnabled=[],void 0!==e.defaultSendEnabled&&(n.defaultSendEnabled=e.defaultSendEnabled),n}};const s={denom:"",enabled:!1};t.SendEnabled={encode:(e,t=o.default.Writer.create())=>(t.uint32(10).string(e.denom),t.uint32(16).bool(e.enabled),t),decode(e,t){const n=e instanceof Uint8Array?new o.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const i=Object.assign({},s);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:i.denom=n.string();break;case 2:i.enabled=n.bool();break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.enabled&&null!==e.enabled?t.enabled=Boolean(e.enabled):t.enabled=!1,t},fromPartial(e){const t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.enabled&&null!==e.enabled?t.enabled=e.enabled:t.enabled=!1,t},toJSON(e){const t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.enabled&&(t.enabled=e.enabled),t}};const c={address:""};t.Input={encode(e,t=o.default.Writer.create()){t.uint32(10).string(e.address);for(const n of e.coins)i.Coin.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof Uint8Array?new o.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const a=Object.assign({},c);for(a.coins=[];n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.address=n.string();break;case 2:a.coins.push(i.Coin.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON(e){const t=Object.assign({},c);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.coins&&null!==e.coins)for(const n of e.coins)t.coins.push(i.Coin.fromJSON(n));return t},fromPartial(e){const t=Object.assign({},c);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.coins&&null!==e.coins)for(const n of e.coins)t.coins.push(i.Coin.fromPartial(n));return t},toJSON(e){const t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map(e=>e?i.Coin.toJSON(e):void 0):t.coins=[],t}};const l={address:""};t.Output={encode(e,t=o.default.Writer.create()){t.uint32(10).string(e.address);for(const n of e.coins)i.Coin.encode(n,t.uint32(18).fork()).ldelim();return t},decode(e,t){const n=e instanceof Uint8Array?new o.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const a=Object.assign({},l);for(a.coins=[];n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.address=n.string();break;case 2:a.coins.push(i.Coin.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON(e){const t=Object.assign({},l);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.coins&&null!==e.coins)for(const n of e.coins)t.coins.push(i.Coin.fromJSON(n));return t},fromPartial(e){const t=Object.assign({},l);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.coins&&null!==e.coins)for(const n of e.coins)t.coins.push(i.Coin.fromPartial(n));return t},toJSON(e){const t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map(e=>e?i.Coin.toJSON(e):void 0):t.coins=[],t}};const u={};t.Supply={encode(e,t=o.default.Writer.create()){for(const n of e.total)i.Coin.encode(n,t.uint32(10).fork()).ldelim();return t},decode(e,t){const n=e instanceof Uint8Array?new o.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const a=Object.assign({},u);for(a.total=[];n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.total.push(i.Coin.decode(n,n.uint32()));break;default:n.skipType(7&e)}}return a},fromJSON(e){const t=Object.assign({},u);if(t.total=[],void 0!==e.total&&null!==e.total)for(const n of e.total)t.total.push(i.Coin.fromJSON(n));return t},fromPartial(e){const t=Object.assign({},u);if(t.total=[],void 0!==e.total&&null!==e.total)for(const n of e.total)t.total.push(i.Coin.fromPartial(n));return t},toJSON(e){const t={};return e.total?t.total=e.total.map(e=>e?i.Coin.toJSON(e):void 0):t.total=[],t}};const f={denom:"",exponent:0,aliases:""};t.DenomUnit={encode(e,t=o.default.Writer.create()){t.uint32(10).string(e.denom),t.uint32(16).uint32(e.exponent);for(const n of e.aliases)t.uint32(26).string(n);return t},decode(e,t){const n=e instanceof Uint8Array?new o.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const i=Object.assign({},f);for(i.aliases=[];n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:i.denom=n.string();break;case 2:i.exponent=n.uint32();break;case 3:i.aliases.push(n.string());break;default:n.skipType(7&e)}}return i},fromJSON(e){const t=Object.assign({},f);if(t.aliases=[],void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.exponent&&null!==e.exponent?t.exponent=Number(e.exponent):t.exponent=0,void 0!==e.aliases&&null!==e.aliases)for(const n of e.aliases)t.aliases.push(String(n));return t},fromPartial(e){const t=Object.assign({},f);if(t.aliases=[],void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.exponent&&null!==e.exponent?t.exponent=e.exponent:t.exponent=0,void 0!==e.aliases&&null!==e.aliases)for(const n of e.aliases)t.aliases.push(n);return t},toJSON(e){const t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exponent&&(t.exponent=e.exponent),e.aliases?t.aliases=e.aliases.map(e=>e):t.aliases=[],t}};const d={description:"",base:"",display:""};t.Metadata={encode(e,n=o.default.Writer.create()){n.uint32(10).string(e.description);for(const r of e.denomUnits)t.DenomUnit.encode(r,n.uint32(18).fork()).ldelim();return n.uint32(26).string(e.base),n.uint32(34).string(e.display),n},decode(e,n){const r=e instanceof Uint8Array?new o.default.Reader(e):e;let i=void 0===n?r.len:r.pos+n;const a=Object.assign({},d);for(a.denomUnits=[];r.pos<i;){const e=r.uint32();switch(e>>>3){case 1:a.description=r.string();break;case 2:a.denomUnits.push(t.DenomUnit.decode(r,r.uint32()));break;case 3:a.base=r.string();break;case 4:a.display=r.string();break;default:r.skipType(7&e)}}return a},fromJSON(e){const n=Object.assign({},d);if(n.denomUnits=[],void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.denomUnits&&null!==e.denomUnits)for(const r of e.denomUnits)n.denomUnits.push(t.DenomUnit.fromJSON(r));return void 0!==e.base&&null!==e.base?n.base=String(e.base):n.base="",void 0!==e.display&&null!==e.display?n.display=String(e.display):n.display="",n},fromPartial(e){const n=Object.assign({},d);if(n.denomUnits=[],void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.denomUnits&&null!==e.denomUnits)for(const r of e.denomUnits)n.denomUnits.push(t.DenomUnit.fromPartial(r));return void 0!==e.base&&null!==e.base?n.base=e.base:n.base="",void 0!==e.display&&null!==e.display?n.display=e.display:n.display="",n},toJSON(e){const n={};return void 0!==e.description&&(n.description=e.description),e.denomUnits?n.denomUnits=e.denomUnits.map(e=>e?t.DenomUnit.toJSON(e):void 0):n.denomUnits=[],void 0!==e.base&&(n.base=e.base),void 0!==e.display&&(n.display=e.display),n}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectSecp256k1HdWallet=void 0;const r=n(50),i=n(114),o=n(358),a=n(193);class s{constructor(e,t,n,r,i){this.secret=e,this.accounts=[{hdPath:t,prefix:i}],this.privkey=n,this.pubkey=r}static async fromMnemonic(e,t=o.makeCosmoshubPath(0),n="cosmos"){const i=new r.EnglishMnemonic(e),a=await r.Bip39.mnemonicToSeed(i),{privkey:c}=r.Slip10.derivePath(r.Slip10Curve.Secp256k1,a,t),l=(await r.Secp256k1.makeKeypair(c)).pubkey;return new s(i,t,c,r.Secp256k1.compressPubkey(l),n)}static async generate(e=12,t=o.makeCosmoshubPath(0),n="cosmos"){const i=4*Math.floor(11*e/33),a=r.Random.getBytes(i),c=r.Bip39.encode(a);return s.fromMnemonic(c.toString(),t,n)}get mnemonic(){return this.secret.toString()}get address(){return i.rawSecp256k1PubkeyToAddress(this.pubkey,this.accounts[0].prefix)}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signDirect(e,t){const n=a.makeSignBytes(t);if(e!==this.address)throw new Error(`Address ${e} not found in wallet`);const o=r.sha256(n),s=await r.Secp256k1.createSignature(o,this.privkey),c=new Uint8Array([...s.r(32),...s.s(32)]);return{signed:t,signature:i.encodeSecp256k1Signature(this.pubkey,c)}}}t.DirectSecp256k1HdWallet=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectSecp256k1Wallet=void 0;const r=n(50),i=n(114),o=n(193);class a{constructor(e,t,n){this.privkey=e,this.pubkey=t,this.prefix=n}static async fromKey(e,t="cosmos"){const n=(await r.Secp256k1.makeKeypair(e)).pubkey;return new a(e,r.Secp256k1.compressPubkey(n),t)}get address(){return i.rawSecp256k1PubkeyToAddress(this.pubkey,this.prefix)}async getAccounts(){return[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]}async signDirect(e,t){const n=o.makeSignBytes(t);if(e!==this.address)throw new Error(`Address ${e} not found in wallet`);const a=r.sha256(n),s=await r.Secp256k1.createSignature(a,this.privkey),c=new Uint8Array([...s.r(32),...s.s(32)]);return{signed:t,signature:i.encodeSecp256k1Signature(this.pubkey,c)}}}t.DirectSecp256k1Wallet=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePubkey=t.encodePubkey=void 0;const r=n(39),i=n(114),o=n(726),a=n(138);t.encodePubkey=function(e){switch(e.type){case"tendermint/PubKeySecp256k1":{const t=o.PubKey.fromPartial({key:r.fromBase64(e.value)});return a.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(o.PubKey.encode(t).finish())})}default:throw new Error(`Pubkey type ${e.type} not recognized`)}},t.decodePubkey=function(e){if(!e||!e.value)return null;switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":{const{key:t}=o.PubKey.decode(e.value);return i.encodeSecp256k1Pubkey(t)}default:throw new Error(`Pubkey type_url ${e.typeUrl} not recognized`)}}},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrivKey=t.PubKey=t.protobufPackage=void 0;const i=r(n(48));t.protobufPackage="cosmos.crypto.secp256k1";const o={};t.PubKey={encode:(e,t=i.default.Writer.create())=>(t.uint32(10).bytes(e.key),t),decode(e,t){const n=e instanceof Uint8Array?new i.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const a=Object.assign({},o);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:a.key=n.bytes();break;default:n.skipType(7&e)}}return a},fromJSON(e){const t=Object.assign({},o);return void 0!==e.key&&null!==e.key&&(t.key=l(e.key)),t},fromPartial(e){const t=Object.assign({},o);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t},toJSON(e){const t={};return void 0!==e.key&&(t.key=f(void 0!==e.key?e.key:new Uint8Array)),t}};const a={};t.PrivKey={encode:(e,t=i.default.Writer.create())=>(t.uint32(10).bytes(e.key),t),decode(e,t){const n=e instanceof Uint8Array?new i.default.Reader(e):e;let r=void 0===t?n.len:n.pos+t;const o=Object.assign({},a);for(;n.pos<r;){const e=n.uint32();switch(e>>>3){case 1:o.key=n.bytes();break;default:n.skipType(7&e)}}return o},fromJSON(e){const t=Object.assign({},a);return void 0!==e.key&&null!==e.key&&(t.key=l(e.key)),t},fromPartial(e){const t=Object.assign({},a);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t},toJSON(e){const t={};return void 0!==e.key&&(t.key=f(void 0!==e.key?e.key:new Uint8Array)),t}};var s=(()=>{if(void 0!==s)return s;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("Unable to locate global object")})();const c=s.atob||(e=>s.Buffer.from(e,"base64").toString("binary"));function l(e){const t=c(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;++e)n[e]=t.charCodeAt(e);return n}const u=s.btoa||(e=>s.Buffer.from(e,"binary").toString("base64"));function f(e){const t=[];for(let n=0;n<e.byteLength;++n)t.push(String.fromCharCode(e[n]));return u(t.join(""))}}).call(this,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOfflineDirectSigner=void 0,t.isOfflineDirectSigner=function(e){return void 0!==e.signDirect}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const r=n(191),i=n(353),o=n(729);t.init=function(e,t){e.registerMessage(r.RestoreKeyRingMsg),e.registerMessage(r.DeleteKeyRingMsg),e.registerMessage(r.UpdateNameKeyRingMsg),e.registerMessage(r.ShowKeyRingMsg),e.registerMessage(r.CreateMnemonicKeyMsg),e.registerMessage(r.AddMnemonicKeyMsg),e.registerMessage(r.CreatePrivateKeyMsg),e.registerMessage(r.AddPrivateKeyMsg),e.registerMessage(r.CreateLedgerKeyMsg),e.registerMessage(r.AddLedgerKeyMsg),e.registerMessage(r.LockKeyRingMsg),e.registerMessage(r.UnlockKeyRingMsg),e.registerMessage(r.GetKeyMsg),e.registerMessage(r.RequestSignAminoMsg),e.registerMessage(r.RequestSignDirectMsg),e.registerMessage(r.GetKeyRingTypeMsg),e.registerMessage(r.GetMultiKeyStoreInfoMsg),e.registerMessage(r.ChangeKeyRingMsg),e.registerMessage(r.GetIsKeyStoreCoinTypeSetMsg),e.registerMessage(r.SetKeyStoreCoinTypeMsg),e.addHandler(i.ROUTE,o.getHandler(t))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const i=n(191),o=n(11),a=n(11);t.getHandler=e=>(t,n)=>{switch(n.constructor){case i.RestoreKeyRingMsg:return s(e)(t,n);case i.DeleteKeyRingMsg:return c(e)(t,n);case i.UpdateNameKeyRingMsg:return l(e)(t,n);case i.ShowKeyRingMsg:return u(e)(t,n);case i.CreateMnemonicKeyMsg:return f(e)(t,n);case i.AddMnemonicKeyMsg:return d(e)(t,n);case i.CreatePrivateKeyMsg:return p(e)(t,n);case i.AddPrivateKeyMsg:return h(e)(t,n);case i.CreateLedgerKeyMsg:return m(e)(t,n);case i.AddLedgerKeyMsg:return b(e)(t,n);case i.LockKeyRingMsg:return y(e)(t,n);case i.UnlockKeyRingMsg:return g(e)(t,n);case i.GetKeyMsg:return v(e)(t,n);case i.RequestSignAminoMsg:return w(e)(t,n);case i.RequestSignDirectMsg:return _(e)(t,n);case i.GetKeyRingTypeMsg:return k(e)(t,n);case i.GetMultiKeyStoreInfoMsg:return x(e)(t,n);case i.ChangeKeyRingMsg:return S(e)(t,n);case i.GetIsKeyStoreCoinTypeSetMsg:return O(e)(t,n);case i.SetKeyStoreCoinTypeMsg:return E(e)(t,n);default:throw new Error("Unknown msg type")}};const s=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.restore()})),c=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.deleteKeyRing(n.index,n.password)})),l=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.updateNameKeyRing(n.index,n.name)})),u=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.showKeyRing(n.index,n.password)})),f=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return{status:yield e.createMnemonicKey(n.mnemonic,n.password,n.meta,n.bip44HDPath)}})),d=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.addMnemonicKey(n.mnemonic,n.meta,n.bip44HDPath)})),p=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return{status:yield e.createPrivateKey(n.privateKey,n.password,n.meta)}})),h=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.addPrivateKey(n.privateKey,n.meta)})),m=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return{status:yield e.createLedgerKey(t,n.password,n.meta,n.bip44HDPath)}})),b=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.addLedgerKey(t,n.meta,n.bip44HDPath)})),y=e=>()=>({status:e.lock()}),g=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return{status:yield e.unlock(n.password)}})),v=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){yield e.permissionService.checkOrGrantBasicAccessPermission(t,n.chainId,n.origin);const r=yield e.getKey(n.chainId);return{name:e.getKeyStoreMeta("name"),algo:"secp256k1",pubKey:r.pubKey,address:r.address,bech32Address:new o.Bech32Address(r.address).toBech32((yield e.chainsService.getChainInfo(n.chainId)).bech32Config.bech32PrefixAccAddr),isNanoLedger:r.isNanoLedger}})),w=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,n.chainId,n.origin),yield e.requestSignAmino(t,n.chainId,n.signer,n.signDoc,n.signOptions)})),_=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){yield e.permissionService.checkOrGrantBasicAccessPermission(t,n.chainId,n.origin);const r=a.cosmos.tx.v1beta1.SignDoc.decode(n.signDocBytes),i=yield e.requestSignDirect(t,n.chainId,n.signer,r,n.signOptions);return{signedBytes:a.cosmos.tx.v1beta1.SignDoc.encode(i.signed).finish(),signature:i.signature}})),k=e=>()=>e.getKeyRingType(),x=e=>()=>e.getMultiKeyStoreInfo(),S=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.changeKeyStoreFromMultiKeyStore(n.index)})),O=e=>(t,n)=>e.getKeyStoreBIP44Selectables(n.chainId,n.paths),E=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.setKeyStoreCoinType(n.chainId,n.coinType),e.keyRingStatus}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(359),t),i(n(803),t)},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=r(n(194));t.logs=o;const a=r(n(104));t.types=a;var s=n(737);t.pubkeyToAddress=s.pubkeyToAddress;var c=n(760);t.unmarshalTx=c.unmarshalTx;var l=n(196);t.makeSignBytes=l.makeSignBytes,t.marshalTx=l.marshalTx;var u=n(197);t.BroadcastMode=u.BroadcastMode,t.RestClient=u.RestClient;var f=n(377);t.CosmWasmClient=f.CosmWasmClient;var d=n(799);t.makeCosmoshubPath=d.makeSecretNetworkPath,t.Secp256k1Pen=d.Secp256k1Pen;var p=n(203);t.decodeBech32Pubkey=p.decodeBech32Pubkey,t.encodeBech32Pubkey=p.encodeBech32Pubkey,t.encodeSecp256k1Pubkey=p.encodeSecp256k1Pubkey;var h=n(800);t.findSequenceForSignedTx=h.findSequenceForSignedTx;var m=n(204);t.encodeSecp256k1Signature=m.encodeSecp256k1Signature,t.decodeSignature=m.decodeSignature;var b=n(801);t.SigningCosmWasmClient=b.SigningCosmWasmClient;const y=i(n(368));t.EnigmaUtils=y.default},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(94));t.Bech32=class{static encode(e,t){return i.encode(e,i.toWords(t))}static decode(e){const t=i.decode(e);return{prefix:t.prefix,data:new Uint8Array(i.fromWords(t.words))}}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(6));class o{constructor(e,t){this.data={atomics:new i.default(e),fractionalDigits:t}}static fromUserInput(e,t){o.verifyFractionalDigits(t);const n=e.match(/[^0-9.]/);if(n)throw new Error("Invalid character at position "+(n.index+1));let r,i;if(-1===e.search(/\./))r=e,i="";else{const t=e.split(".");switch(t.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!t[1])throw new Error("Fractional part missing");r=t[0],i=t[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(i.length>t)throw new Error("Got more fractional digits than supported");const a=`${r}${i.padEnd(t,"0")}`;return new o(a,t)}static fromAtomics(e,t){return o.verifyFractionalDigits(t),new o(e,t)}static verifyFractionalDigits(e){if(!Number.isInteger(e))throw new Error("Fractional digits is not an integer");if(e<0)throw new Error("Fractional digits must not be negative");if(e>100)throw new Error("Fractional digits must not exceed 100")}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}toString(){const e=new i.default(10).pow(new i.default(this.data.fractionalDigits)),t=this.data.atomics.div(e),n=this.data.atomics.mod(e);if(n.isZero())return t.toString();{const e=n.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${t.toString()}.${e}`}}toFloatApproximation(){const e=Number(this.toString());if(Number.isNaN(e))throw new Error("Conversion to number failed");return e}plus(e){if(this.fractionalDigits!==e.fractionalDigits)throw new Error("Fractional digits do not match");const t=this.data.atomics.add(new i.default(e.atomics));return new o(t.toString(),this.fractionalDigits)}}t.Decimal=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(6)),o=new i.default("18446744073709551615",10,"be");class a{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<0||e>4294967295)throw new Error("Input not in uint32 range: "+e.toString());this.data=e}static fromBigEndianBytes(e){if(4!==e.length)throw new Error("Invalid input length. Expected 4 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);return new a(e[0]*2**24+65536*e[1]+256*e[2]+e[3])}toBytesBigEndian(){return new Uint8Array([255&Math.floor(this.data/2**24),255&Math.floor(this.data/65536),255&Math.floor(this.data/256),255&Math.floor(this.data/1)])}toBytesLittleEndian(){return new Uint8Array([255&Math.floor(this.data/1),255&Math.floor(this.data/256),255&Math.floor(this.data/65536),255&Math.floor(this.data/2**24)])}toNumber(){return this.data}toString(){return this.data.toString()}}t.Uint32=a;class s{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<Number.MIN_SAFE_INTEGER||e>Number.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+e.toString());this.data=e}static fromString(e){if(!e.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new s(Number.parseInt(e,10))}toNumber(){return this.data}toString(){return this.data.toString()}}t.Int53=s;class c{constructor(e){const t=new s(e);if(t.toNumber()<0)throw new Error("Input is negative");this.data=t}static fromString(e){const t=s.fromString(e);return new c(t.toNumber())}toNumber(){return this.data.toNumber()}toString(){return this.data.toString()}}t.Uint53=c;class l{constructor(e){if(e.isNeg())throw new Error("Input is negative");if(e.gt(o))throw new Error("Input exceeds uint64 range");this.data=e}static fromBytesBigEndian(e){if(8!==e.length)throw new Error("Invalid input length. Expected 8 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);const t=[];for(let n=0;n<e.length;++n)t.push(e[n]);return new l(new i.default([...t]))}static fromString(e){if(!e.match(/^[0-9]+$/))throw new Error("Invalid string format");return new l(new i.default(e,10,"be"))}static fromNumber(e){if(Number.isNaN(e))throw new Error("Input is not a number");let t;try{t=new i.default(e)}catch(e){throw new Error("Input is not a safe integer")}return new l(t)}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toNumber(){return this.data.toNumber()}}t.Uint64=l},function(e,t,n){"use strict";function r(e){return!("string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e&&null!==e&&!i(e)&&!o(e))}function i(e){if(!Array.isArray(e))return!1;for(const t of e)if(!r(t))return!1;return!0}function o(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;return Object.getOwnPropertyNames(e).map(t=>e[t]).every(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonCompatibleValue=r,t.isJsonCompatibleArray=i,t.isJsonCompatibleDictionary=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(360),i=n(362),o="string:",a="bytes:";class s{static toJson(e){if("number"==typeof e||"boolean"==typeof e)return e;if(null===e)return null;if("string"==typeof e)return`${o}${e}`;if(i.isUint8Array(e))return`${a}${r.Encoding.toHex(e)}`;if(Array.isArray(e))return e.map(s.toJson);if("object"==typeof e&&null!==e&&"[object Object]"===Object.prototype.toString.call(e)){const t={};for(const n of Object.keys(e)){const r=e[n];void 0!==r&&(t[n]=s.toJson(r))}return t}throw new Error("Cannot encode type to JSON")}static fromJson(e){if("number"==typeof e||"boolean"==typeof e)return e;if(null===e)return null;if("string"==typeof e){if(e.startsWith(o))return e.slice(o.length);if(e.startsWith(a))return r.Encoding.fromHex(e.slice(a.length));throw new Error("Found string with unknown prefix")}if(Array.isArray(e))return e.map(s.fromJson);if("object"==typeof e&&null!==e&&"[object Object]"===Object.prototype.toString.call(e)){const t={};for(const n of Object.keys(e))t[n]=s.fromJson(e[n]);return t}throw new Error("Cannot decode type from JSON")}}t.TransactionEncoder=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(105),i=n(42),o=n(104),{fromBase64:a}=i.Encoding;function s(e,t){if(33!==e.length)throw new Error("Invalid Secp256k1 pubkey length (compressed): "+e.length);const n=new r.Sha256(e).digest(),o=new r.Ripemd160(n).digest();return i.Bech32.encode(t,o)}t.rawSecp256k1PubkeyToAddress=s,t.pubkeyToAddress=function(e,t){const n=a(e.value);switch(e.type){case o.pubkeyType.secp256k1:return s(n,t);case o.pubkeyType.ed25519:{if(32!==n.length)throw new Error("Invalid Ed25519 pubkey length: "+n.length);const e=new r.Sha256(n).digest();return i.Bech32.encode(t,e.slice(0,20))}case o.pubkeyType.sr25519:{if(32!==n.length)throw new Error("Invalid Sr25519 pubkey length: "+n.length);const e=new r.Sha256(n).digest();return i.Bech32.encode(t,e.slice(0,20))}default:throw new Error("Unrecognized public key algorithm")}}},function(e,t,n){"use strict";(function(e){var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=n(139),o=r(n(69)),a=n(97),s=r(n(311)),c=n(364);t.Bip39=class{static encode(e){if(-1===[16,20,24,28,32].indexOf(e.length))throw new Error("invalid input length");return new c.EnglishMnemonic(o.entropyToMnemonic(i.Encoding.toHex(e)))}static decode(e){return i.Encoding.fromHex(o.mnemonicToEntropy(e.toString()))}static async mnemonicToSeed(t,n){const r=e.from(s.nfkd(t.toString()),"utf8"),i="mnemonic"+(n?s.nfkd(n):""),o=e.from(i,"utf8");return this.pbkdf2(r,o,2048,64,"sha512")}static async pbkdf2(e,t,n,r,i){return new Promise((o,s)=>{a.pbkdf2(e,t,n,r,i,(e,t)=>{e?s(e):o(new Uint8Array(t))})})}}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(740);Object.defineProperty(t,"Decimal",{enumerable:!0,get:function(){return r.Decimal}});var i=n(741);Object.defineProperty(t,"Int53",{enumerable:!0,get:function(){return i.Int53}}),Object.defineProperty(t,"Uint32",{enumerable:!0,get:function(){return i.Uint32}}),Object.defineProperty(t,"Uint53",{enumerable:!0,get:function(){return i.Uint53}}),Object.defineProperty(t,"Uint64",{enumerable:!0,get:function(){return i.Uint64}})},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Decimal=void 0;const i=r(n(6));class o{constructor(e,t){this.data={atomics:new i.default(e),fractionalDigits:t}}static fromUserInput(e,t){o.verifyFractionalDigits(t);const n=e.match(/[^0-9.]/);if(n)throw new Error("Invalid character at position "+(n.index+1));let r,i;if(-1===e.search(/\./))r=e,i="";else{const t=e.split(".");switch(t.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!t[1])throw new Error("Fractional part missing");r=t[0],i=t[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(i.length>t)throw new Error("Got more fractional digits than supported");const a=`${r}${i.padEnd(t,"0")}`;return new o(a,t)}static fromAtomics(e,t){return o.verifyFractionalDigits(t),new o(e,t)}static verifyFractionalDigits(e){if(!Number.isInteger(e))throw new Error("Fractional digits is not an integer");if(e<0)throw new Error("Fractional digits must not be negative");if(e>100)throw new Error("Fractional digits must not exceed 100")}static compare(e,t){if(e.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");return e.data.atomics.cmp(new i.default(t.atomics))}get atomics(){return this.data.atomics.toString()}get fractionalDigits(){return this.data.fractionalDigits}toString(){const e=new i.default(10).pow(new i.default(this.data.fractionalDigits)),t=this.data.atomics.div(e),n=this.data.atomics.mod(e);if(n.isZero())return t.toString();{const e=n.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return`${t.toString()}.${e}`}}toFloatApproximation(){const e=Number(this.toString());if(Number.isNaN(e))throw new Error("Conversion to number failed");return e}plus(e){if(this.fractionalDigits!==e.fractionalDigits)throw new Error("Fractional digits do not match");const t=this.data.atomics.add(new i.default(e.atomics));return new o(t.toString(),this.fractionalDigits)}equals(e){return 0===o.compare(this,e)}isLessThan(e){return o.compare(this,e)<0}isLessThanOrEqual(e){return o.compare(this,e)<=0}isGreaterThan(e){return o.compare(this,e)>0}isGreaterThanOrEqual(e){return o.compare(this,e)>=0}}t.Decimal=o},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Int53=t.Uint32=void 0;const i=r(n(6)),o=new i.default("18446744073709551615",10,"be");class a{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<0||e>4294967295)throw new Error("Input not in uint32 range: "+e.toString());this.data=e}static fromBigEndianBytes(e){if(4!==e.length)throw new Error("Invalid input length. Expected 4 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);return new a(e[0]*2**24+65536*e[1]+256*e[2]+e[3])}toBytesBigEndian(){return new Uint8Array([255&Math.floor(this.data/2**24),255&Math.floor(this.data/65536),255&Math.floor(this.data/256),255&Math.floor(this.data/1)])}toBytesLittleEndian(){return new Uint8Array([255&Math.floor(this.data/1),255&Math.floor(this.data/256),255&Math.floor(this.data/65536),255&Math.floor(this.data/2**24)])}toNumber(){return this.data}toString(){return this.data.toString()}}t.Uint32=a;class s{constructor(e){if(Number.isNaN(e))throw new Error("Input is not a number");if(!Number.isInteger(e))throw new Error("Input is not an integer");if(e<Number.MIN_SAFE_INTEGER||e>Number.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+e.toString());this.data=e}static fromString(e){if(!e.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new s(Number.parseInt(e,10))}toNumber(){return this.data}toString(){return this.data.toString()}}t.Int53=s;class c{constructor(e){const t=new s(e);if(t.toNumber()<0)throw new Error("Input is negative");this.data=t}static fromString(e){const t=s.fromString(e);return new c(t.toNumber())}toNumber(){return this.data.toNumber()}toString(){return this.data.toString()}}t.Uint53=c;class l{constructor(e){if(e.isNeg())throw new Error("Input is negative");if(e.gt(o))throw new Error("Input exceeds uint64 range");this.data=e}static fromBytesBigEndian(e){if(8!==e.length)throw new Error("Invalid input length. Expected 8 bytes.");for(let t=0;t<e.length;++t)if(!Number.isInteger(e[t])||e[t]>255||e[t]<0)throw new Error("Invalid value in byte. Found: "+e[t]);const t=[];for(let n=0;n<e.length;++n)t.push(e[n]);return new l(new i.default([...t]))}static fromString(e){if(!e.match(/^[0-9]+$/))throw new Error("Invalid string format");return new l(new i.default(e,10,"be"))}static fromNumber(e){if(Number.isNaN(e))throw new Error("Input is not a number");let t;try{t=new i.default(e)}catch(e){throw new Error("Input is not a safe integer")}return new l(t)}toBytesBigEndian(){return Uint8Array.from(this.data.toArray("be",8))}toBytesLittleEndian(){return Uint8Array.from(this.data.toArray("le",8))}toString(){return this.data.toString(10)}toNumber(){return this.data.toNumber()}}t.Uint64=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromAscii=t.toAscii=void 0,t.toAscii=function(e){return Uint8Array.from(e.split("").map(e=>{const t=e.charCodeAt(0);if(t<32||t>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+t);return t}))},t.fromAscii=function(e){return(t=Array.from(e),t.map(e=>{if(e<32||e>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+e);return String.fromCharCode(e)})).join("");var t}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.fromBase64=t.toBase64=void 0;const a=o(n(117));t.toBase64=function(e){return a.fromByteArray(e)},t.fromBase64=function(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return a.toByteArray(e)}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Bech32=void 0;const a=o(n(94));t.Bech32=class{static encode(e,t){return a.encode(e,a.toWords(t))}static decode(e){const t=a.decode(e);return{prefix:t.prefix,data:new Uint8Array(a.fromWords(t.words))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromHex=t.toHex=void 0,t.toHex=function(e){let t="";for(const n of e)t+=("0"+n.toString(16)).slice(-2);return t},t.fromHex=function(e){if(e.length%2!=0)throw new Error("hex string length must be a multiple of 2");const t=[];for(let n=0;n<e.length;n+=2){const r=e.substr(n,2);if(!r.match(/[0-9a-f]{2}/i))throw new Error("hex string contains invalid characters");t.push(parseInt(r,16))}return new Uint8Array(t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRfc3339=t.fromRfc3339=void 0;const r=n(361),i=/^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(\.\d{1,9})?((?:[+-]\d{2}:\d{2})|Z)$/;function o(e,t=2){const n="00000"+e.toString();return n.substring(n.length-t)}t.fromRfc3339=function(e){const t=i.exec(e);if(!t)throw new Error("Date string is not in RFC3339 format");const n=+t[1],o=+t[2],a=+t[3],s=+t[4],c=+t[5],l=+t[6],u=t[7]?Math.floor(1e3*+t[7]):0;let f,d,p;"Z"===t[8]?(f=1,d=0,p=0):(f="-"===t[8].substring(0,1)?-1:1,d=+t[8].substring(1,3),p=+t[8].substring(4,6));const h=f*(60*d+p)*60;return new r.ReadonlyDate(r.ReadonlyDate.UTC(n,o-1,a,s,c,l,u)-1e3*h)},t.toRfc3339=function(e){return`${e.getUTCFullYear()}-${o(e.getUTCMonth()+1)}-${o(e.getUTCDate())}T${o(e.getUTCHours())}:${o(e.getUTCMinutes())}:${o(e.getUTCSeconds())}.${o(e.getUTCMilliseconds(),3)}Z`}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromUtf8=t.toUtf8=void 0,t.toUtf8=function(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):new Uint8Array(e.from(t,"utf8"))},t.fromUtf8=function(t){if("undefined"!=typeof TextDecoder)return new TextDecoder("utf-8",{fatal:!0}).decode(t);if(!function(t){const n=e.from(e.from(t).toString("utf8"),"utf8");return 0===e.compare(e.from(t),n)}(t))throw new Error("Invalid UTF8 data");return e.from(t).toString("utf8")}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assert=void 0,t.assert=function(e,t){if(!e)throw new Error(t||"condition is not truthy")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=void 0,t.sleep=async function(e){return new Promise(t=>setTimeout(t,e))}},function(e,t,n){"use strict";(function(e){function n(e){return"object"==typeof e&&null!==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isUint8Array=t.isNonNullObject=void 0,t.isNonNullObject=n,t.isUint8Array=function(t){return!!n(t)&&("[object Uint8Array]"===Object.prototype.toString.call(t)&&(void 0===e||void 0===e.isBuffer||!e.isBuffer(t)))}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";function r(e){return!("string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e&&null!==e&&!i(e)&&!o(e))}function i(e){if(!Array.isArray(e))return!1;for(const t of e)if(!r(t))return!1;return!0}function o(e){if("object"!=typeof e||null===e)return!1;if("[object Object]"!==Object.prototype.toString.call(e))return!1;return Object.getOwnPropertyNames(e).map(t=>e[t]).every(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.isJsonCompatibleValue=r,t.isJsonCompatibleArray=i,t.isJsonCompatibleDictionary=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(195),i=n(363),o="string:",a="bytes:";class s{static toJson(e){if("number"==typeof e||"boolean"==typeof e)return e;if(null===e)return null;if("string"==typeof e)return`${o}${e}`;if(i.isUint8Array(e))return`${a}${r.toHex(e)}`;if(Array.isArray(e))return e.map(s.toJson);if("object"==typeof e&&null!==e&&"[object Object]"===Object.prototype.toString.call(e)){const t={};for(const n of Object.keys(e)){const r=e[n];void 0!==r&&(t[n]=s.toJson(r))}return t}throw new Error("Cannot encode type to JSON")}static fromJson(e){if("number"==typeof e||"boolean"==typeof e)return e;if(null===e)return null;if("string"==typeof e){if(e.startsWith(o))return e.slice(o.length);if(e.startsWith(a))return r.fromHex(e.slice(a.length));throw new Error("Found string with unknown prefix")}if(Array.isArray(e))return e.map(s.fromJson);if("object"==typeof e&&null!==e&&"[object Object]"===Object.prototype.toString.call(e)){const t={};for(const n of Object.keys(e))t[n]=s.fromJson(e[n]);return t}throw new Error("Cannot decode type from JSON")}}t.TransactionEncoder=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(195);t.Encoding=class{static toHex(e){return r.toHex(e)}static fromHex(e){return r.fromHex(e)}static toBase64(e){return r.toBase64(e)}static fromBase64(e){return r.fromBase64(e)}static toAscii(e){return r.toAscii(e)}static fromAscii(e){return r.fromAscii(e)}static toUtf8(e){return r.toUtf8(e)}static fromUtf8(e){return r.fromUtf8(e)}static fromRfc3339(e){return r.fromRfc3339(e)}static toRfc3339(e){return r.toRfc3339(e)}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(222));t.Keccak256=class{constructor(e){this.blockSize=64,this.impl=i.default.keccak256.create(),e&&this.update(e)}update(e){return this.impl.update(e),this}digest(){return new Uint8Array(this.impl.digest())}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(314));t.Argon2id=class{static async execute(e,t,n){return await i.default.ready,i.default.crypto_pwhash(n.outputLength,e,t,n.opsLimit,1024*n.memLimitKib,i.default.crypto_pwhash_ALG_ARGON2ID13)}};class o{constructor(e,t){this.privkey=e,this.pubkey=t}static fromLibsodiumPrivkey(e){if(64!==e.length)throw new Error(`Unexpected key length ${e.length}. Must be 64.`);return new o(e.slice(0,32),e.slice(32,64))}toLibsodiumPrivkey(){return new Uint8Array([...this.privkey,...this.pubkey])}}t.Ed25519Keypair=o;t.Ed25519=class{static async makeKeypair(e){await i.default.ready;const t=i.default.crypto_sign_seed_keypair(e);return o.fromLibsodiumPrivkey(t.privateKey)}static async createSignature(e,t){return await i.default.ready,i.default.crypto_sign_detached(e,t.toLibsodiumPrivkey())}static async verifySignature(e,t,n){return await i.default.ready,i.default.crypto_sign_verify_detached(e,t,n)}};t.Xchacha20poly1305Ietf=class{static async encrypt(e,t,n){await i.default.ready;return i.default.crypto_aead_xchacha20poly1305_ietf_encrypt(e,null,null,n,t)}static async decrypt(e,t,n){await i.default.ready;return i.default.crypto_aead_xchacha20poly1305_ietf_decrypt(null,e,null,n,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.Random=class{static getBytes(e){try{const t="object"==typeof window?window:self,n=void 0!==t.crypto?t.crypto:t.msCrypto,r=new Uint8Array(e);return n.getRandomValues(r),r}catch(t){try{const t=n(72);return new Uint8Array([...t.randomBytes(e)])}catch(e){throw new Error("No secure random number generator found")}}}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(139),o=r(n(75)),{toHex:a}=i.Encoding;t.Ripemd160=class{constructor(e){this.blockSize=64,this.impl=new o.default,e&&this.update(e)}update(e){return this.impl.update(a(e),"hex"),this}digest(){return Uint8Array.from(this.impl.digest())}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(139),o=r(n(6)),a=r(n(45)),s=n(366),c=new a.default.ec("secp256k1"),l=new o.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141","hex");t.Secp256k1=class{static async makeKeypair(e){if(32!==e.length)throw new Error("input data is not a valid secp256k1 private key");const t=c.keyFromPrivate(e);if(!0!==t.validate().result)throw new Error("input data is not a valid secp256k1 private key");if(new o.default(e).gte(l))throw new Error("input data is not a valid secp256k1 private key");return{privkey:i.Encoding.fromHex(t.getPrivate("hex")),pubkey:i.Encoding.fromHex(t.getPublic().encode("hex"))}}static async createSignature(e,t){if(0===e.length)throw new Error("Message hash must not be empty");if(e.length>32)throw new Error("Message hash length must not exceed 32 bytes");const n=c.keyFromPrivate(t).sign(e,{canonical:!0});return new s.ExtendedSecp256k1Signature(Uint8Array.from(n.r.toArray()),Uint8Array.from(n.s.toArray()),n.recoveryParam)}static async verifySignature(e,t,n){if(0===t.length)throw new Error("Message hash must not be empty");if(t.length>32)throw new Error("Message hash length must not exceed 32 bytes");const r=c.keyFromPublic(n);try{return r.verify(t,e.toDer())}catch(e){return!1}}static recoverPubkey(e,t){const n={r:i.Encoding.toHex(e.r()),s:i.Encoding.toHex(e.s())},r=c.recoverPubKey(t,n,e.recovery),o=c.keyFromPublic(r);return i.Encoding.fromHex(o.getPublic(!1,"hex"))}static compressPubkey(e){switch(e.length){case 33:return e;case 65:return Uint8Array.from(c.keyFromPublic(e).pub.encodeCompressed());default:throw new Error("Invalid pubkey length")}}static trimRecoveryByte(e){switch(e.length){case 64:return e;case 65:return e.slice(0,64);default:throw new Error("Invalid signature length")}}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(139),o=r(n(6)),a=r(n(45)),s=n(365),c=n(367);var l;!function(e){e.Secp256k1="Bitcoin seed",e.Ed25519="ed25519 seed"}(l=t.Slip10Curve||(t.Slip10Curve={})),t.slip10CurveFromString=function(e){switch(e){case l.Ed25519:return l.Ed25519;case l.Secp256k1:return l.Secp256k1;default:throw new Error(`Unknown curve string: '${e}'`)}};class u extends i.Uint32{static hardened(e){return new u(e+2**31)}static normal(e){return new u(e)}isHardened(){return this.data>=2**31}}t.Slip10RawIndex=u;const f=new a.default.ec("secp256k1");class d{static derivePath(e,t,n){let r=this.master(e,t);for(const t of n)r=this.child(e,r.privkey,r.chainCode,t);return r}static master(e,t){const n=new s.Hmac(c.Sha512,i.Encoding.toAscii(e)).update(t).digest(),r=n.slice(0,32),o=n.slice(32,64);return e!==l.Ed25519&&(this.isZero(r)||this.isGteN(e,r))?this.master(e,n):{chainCode:o,privkey:r}}static child(e,t,n,r){let i;if(r.isHardened()){const e=new Uint8Array([0,...t,...r.toBytesBigEndian()]);i=new s.Hmac(c.Sha512,n).update(e).digest()}else{if(e===l.Ed25519)throw new Error("Normal keys are not allowed with ed25519");{const a=new Uint8Array([...d.serializedPoint(e,new o.default(t)),...r.toBytesBigEndian()]);i=new s.Hmac(c.Sha512,n).update(a).digest()}}return this.childImpl(e,t,n,r,i)}static serializedPoint(e,t){switch(e){case l.Secp256k1:return i.Encoding.fromHex(f.g.mul(t).encodeCompressed("hex"));default:throw new Error("curve not supported")}}static childImpl(e,t,n,r,i){const a=i.slice(0,32),u=i.slice(32,64),f=u;if(e===l.Ed25519)return{chainCode:f,privkey:a};const d=this.n(e),p=new o.default(a).add(new o.default(t)).mod(d),h=Uint8Array.from(p.toArray("be",32));if(this.isGteN(e,a)||this.isZero(h)){const i=new s.Hmac(c.Sha512,n).update(new Uint8Array([1,...u,...r.toBytesBigEndian()])).digest();return this.childImpl(e,t,n,r,i)}return{chainCode:f,privkey:h}}static isZero(e){return e.every(e=>0===e)}static isGteN(e,t){return new o.default(t).gte(this.n(e))}static n(e){switch(e){case l.Secp256k1:return new o.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);default:throw new Error("curve not supported")}}}t.Slip10=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(42),i=n(104);t.unmarshalTx=function(e){const t=JSON.parse(r.Encoding.fromUtf8(e));if(!i.isStdTx(t))throw new Error("Must be json encoded StdTx");return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(198));var r=n(369);t.AEAD=r.AEAD;var i=n(370);t.SIV=i.SIV;var o=n(765);t.StreamEncryptor=o.StreamEncryptor,t.StreamDecryptor=o.StreamDecryptor;var a=n(371);t.CMAC=a.CMAC;var s=n(372);t.PMAC=s.PMAC;var c=n(766);t.PolyfillCryptoProvider=c.PolyfillCryptoProvider;var l=n(140);t.WebCryptoProvider=l.WebCryptoProvider},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(106);class o{constructor(e,t){this._crypto=e,this._key=t,this._iv=new i.default,this._emptyPromise=Promise.resolve(this)}static importKey(e,t){return r(this,void 0,void 0,(function*(){if(16!==t.length&&32!==t.length)throw new Error(`Miscreant: invalid key length: ${t.length} (expected 16 or 32 bytes)`);const n=yield e.subtle.importKey("raw",t,"AES-CBC",!1,["encrypt"]);return new o(e,n)}))}clear(){return this}encryptBlock(e){return r(this,void 0,void 0,(function*(){const t={name:"AES-CBC",iv:this._iv.data},n=yield this._crypto.subtle.encrypt(t,this._key,e.data);return e.data.set(new Uint8Array(n,0,i.default.SIZE)),this._emptyPromise}))}}t.default=o},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e,t){this.key=e,this.crypto=t}static importKey(e,t){return r(this,void 0,void 0,(function*(){if(16!==t.length&&32!==t.length)throw new Error(`Miscreant: invalid key length: ${t.length} (expected 16 or 32 bytes)`);const n=yield e.subtle.importKey("raw",t,"AES-CTR",!1,["encrypt"]);return new i(n,e)}))}encryptCtr(e,t){return r(this,void 0,void 0,(function*(){const n=yield this.crypto.subtle.encrypt({name:"AES-CTR",counter:e,length:16},this.key,t);return new Uint8Array(n)}))}clear(){return this}}t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=new Uint8Array([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0]);t.ctz=function(e){return r[e]}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(369),o=n(140);t.NONCE_SIZE=8,t.LAST_BLOCK_FLAG=1,t.COUNTER_MAX=4294967295;class a{static importKey(e,t,n,s=new o.WebCryptoProvider){return r(this,void 0,void 0,(function*(){return new a(yield i.AEAD.importKey(e,n,s),t)}))}constructor(e,t){this._aead=e,this._nonce_encoder=new c(t)}seal(e,t=!1,n=new Uint8Array(0)){return r(this,void 0,void 0,(function*(){return this._aead.seal(e,this._nonce_encoder.next(t),n)}))}clear(){return this._aead.clear(),this}}t.StreamEncryptor=a;class s{static importKey(e,t,n,a=new o.WebCryptoProvider){return r(this,void 0,void 0,(function*(){return new s(yield i.AEAD.importKey(e,n,a),t)}))}constructor(e,t){this._aead=e,this._nonce_encoder=new c(t)}open(e,t=!1,n=new Uint8Array(0)){return r(this,void 0,void 0,(function*(){return this._aead.open(e,this._nonce_encoder.next(t),n)}))}clear(){return this._aead.clear(),this}}t.StreamDecryptor=s;class c{constructor(e){if(e.length!==t.NONCE_SIZE)throw new Error("STREAM: nonce must be 8-bits (got "+e.length);this.buffer=new ArrayBuffer(t.NONCE_SIZE+4+1),this.view=new DataView(this.buffer),this.array=new Uint8Array(this.buffer),this.array.set(e),this.counter=0,this.finished=!1}next(e){if(this.finished)throw new Error("STREAM: already finished");if(this.view.setInt32(8,this.counter,!1),e)this.view.setInt8(12,t.LAST_BLOCK_FLAG),this.finished=!0;else if(this.counter+=1,this.counter>t.COUNTER_MAX)throw new Error("STREAM counter overflowed");return this.array}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(767),o=n(768);t.PolyfillCryptoProvider=class{constructor(){}importBlockCipherKey(e){return r(this,void 0,void 0,(function*(){return new i.default(e)}))}importCTRKey(e){return r(this,void 0,void 0,(function*(){return new o.default(new i.default(e))}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(200),i=new Uint8Array([1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47]),o=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),a=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]);let s,c,l,u,f,d,p,h,m=!1;function b(e,t=0){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function y(e,t=new Uint8Array(4),n=0){return t[n+0]=e>>>24,t[n+1]=e>>>16,t[n+2]=e>>>8,t[n+3]=e>>>0,t}function g(e){return o[e>>>24&255]<<24|o[e>>>16&255]<<16|o[e>>>8&255]<<8|o[255&e]}t.default=class{constructor(e){if(m||function(){function e(e,t){let n=e,r=t,i=0;for(let e=1;e<256&&0!==r;e<<=1)0!=(r&e)&&(i^=n,r^=e),n<<=1,0!=(256&n)&&(n^=283);return i}const t=e=>e<<24|e>>>8;s=new Uint32Array(256),c=new Uint32Array(256),l=new Uint32Array(256),u=new Uint32Array(256);for(let n=0;n<256;n++){const r=o[n];let i=e(r,2)<<24|r<<16|r<<8|e(r,3);s[n]=i,i=t(i),c[n]=i,i=t(i),l[n]=i,i=t(i),u[n]=i,i=t(i)}f=new Uint32Array(256),d=new Uint32Array(256),p=new Uint32Array(256),h=new Uint32Array(256);for(let n=0;n<256;n++){const r=a[n];let i=e(r,14)<<24|e(r,9)<<16|e(r,13)<<8|e(r,11);f[n]=i,i=t(i),d[n]=i,i=t(i),p[n]=i,i=t(i),h[n]=i,i=t(i)}m=!0}(),16!==e.length&&32!==e.length)throw new Error(`Miscreant: invalid key length: ${e.length} (expected 16 or 32 bytes)`);this._encKey=function(e){const t=new Uint32Array(e.length+28),n=e.length/4|0,r=t.length;for(let r=0;r<n;r++)t[r]=b(e,4*r);for(let e=n;e<r;e++){let r=t[e-1];e%n==0?r=g((o=r)<<8|o>>>24)^i[e/n-1]<<24:n>6&&e%n==4&&(r=g(r)),t[e]=t[e-n]^r}var o;return t}(e),this._emptyPromise=Promise.resolve(this)}clear(){return this._encKey&&r.wipe(this._encKey),this}encryptBlock(e){const t=e.data,n=e.data;let r=b(t,0),i=b(t,4),a=b(t,8),f=b(t,12);r^=this._encKey[0],i^=this._encKey[1],a^=this._encKey[2],f^=this._encKey[3];let d=0,p=0,h=0,m=0;const g=this._encKey.length/4-2;let v=4;for(let e=0;e<g;e++)d=this._encKey[v+0]^s[r>>>24&255]^c[i>>>16&255]^l[a>>>8&255]^u[255&f],p=this._encKey[v+1]^s[i>>>24&255]^c[a>>>16&255]^l[f>>>8&255]^u[255&r],h=this._encKey[v+2]^s[a>>>24&255]^c[f>>>16&255]^l[r>>>8&255]^u[255&i],m=this._encKey[v+3]^s[f>>>24&255]^c[r>>>16&255]^l[i>>>8&255]^u[255&a],v+=4,r=d,i=p,a=h,f=m;return r=o[d>>>24]<<24|o[p>>>16&255]<<16|o[h>>>8&255]<<8|o[255&m],i=o[p>>>24]<<24|o[h>>>16&255]<<16|o[m>>>8&255]<<8|o[255&d],a=o[h>>>24]<<24|o[m>>>16&255]<<16|o[d>>>8&255]<<8|o[255&p],f=o[m>>>24]<<24|o[d>>>16&255]<<16|o[p>>>8&255]<<8|o[255&h],r^=this._encKey[v+0],i^=this._encKey[v+1],a^=this._encKey[v+2],f^=this._encKey[v+3],y(r,n,0),y(i,n,4),y(a,n,8),y(f,n,12),this._emptyPromise}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(106);function o(e){let t=1;for(let n=i.default.SIZE-1;n>=0;n--)t+=255&e.data[n]|0,e.data[n]=255&t,t>>>=8}t.default=class{constructor(e){this._cipher=e,this._counter=new i.default,this._buffer=new i.default}clear(){return this._buffer.clear(),this._counter.clear(),this._cipher.clear(),this}encryptCtr(e,t){return r(this,void 0,void 0,(function*(){if(e.length!==i.default.SIZE)throw new Error("CTR: iv length must be equal to cipher block size");this._counter.data.set(e);let n=i.default.SIZE;const r=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n===i.default.SIZE&&(this._buffer.copy(this._counter),this._cipher.encryptBlock(this._buffer),n=0,o(this._counter)),r[e]=t[e]^this._buffer.data[n++];return r}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});new Uint8Array(16);let r=new Uint8Array(32);function i(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n}r[0]=9;const o=i(),a=i([1]),s=i([56129,1]),c=i([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=i([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),u=i([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=i([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),d=i([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function h(e,t,n,r){return function(e,t,n,r,i){var o,a=0;for(o=0;o<i;o++)a|=e[t+o]^n[r+o];return(1&a-1>>>8)-1}(e,t,n,r,32)}function m(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function b(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function y(e,t,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(e[o]^t[o]),e[o]^=r,t[o]^=r}function g(e,t){var n,r,o,a=i(),s=i();for(n=0;n<16;n++)s[n]=t[n];for(b(s),b(s),b(s),r=0;r<2;r++){for(a[0]=s[0]-65517,n=1;n<15;n++)a[n]=s[n]-65535-(a[n-1]>>16&1),a[n-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,y(s,a,1-o)}for(n=0;n<16;n++)e[2*n]=255&s[n],e[2*n+1]=s[n]>>8}function v(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return g(n,e),g(r,t),h(n,0,r,0)}function w(e){var t=new Uint8Array(32);return g(t,e),1&t[0]}function _(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function k(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function x(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function S(e,t,n){var r,i,o=0,a=0,s=0,c=0,l=0,u=0,f=0,d=0,p=0,h=0,m=0,b=0,y=0,g=0,v=0,w=0,_=0,k=0,x=0,S=0,O=0,E=0,T=0,A=0,M=0,I=0,P=0,C=0,j=0,D=0,R=0,N=n[0],B=n[1],L=n[2],U=n[3],F=n[4],q=n[5],z=n[6],V=n[7],H=n[8],$=n[9],K=n[10],W=n[11],G=n[12],J=n[13],Q=n[14],Y=n[15];o+=(r=t[0])*N,a+=r*B,s+=r*L,c+=r*U,l+=r*F,u+=r*q,f+=r*z,d+=r*V,p+=r*H,h+=r*$,m+=r*K,b+=r*W,y+=r*G,g+=r*J,v+=r*Q,w+=r*Y,a+=(r=t[1])*N,s+=r*B,c+=r*L,l+=r*U,u+=r*F,f+=r*q,d+=r*z,p+=r*V,h+=r*H,m+=r*$,b+=r*K,y+=r*W,g+=r*G,v+=r*J,w+=r*Q,_+=r*Y,s+=(r=t[2])*N,c+=r*B,l+=r*L,u+=r*U,f+=r*F,d+=r*q,p+=r*z,h+=r*V,m+=r*H,b+=r*$,y+=r*K,g+=r*W,v+=r*G,w+=r*J,_+=r*Q,k+=r*Y,c+=(r=t[3])*N,l+=r*B,u+=r*L,f+=r*U,d+=r*F,p+=r*q,h+=r*z,m+=r*V,b+=r*H,y+=r*$,g+=r*K,v+=r*W,w+=r*G,_+=r*J,k+=r*Q,x+=r*Y,l+=(r=t[4])*N,u+=r*B,f+=r*L,d+=r*U,p+=r*F,h+=r*q,m+=r*z,b+=r*V,y+=r*H,g+=r*$,v+=r*K,w+=r*W,_+=r*G,k+=r*J,x+=r*Q,S+=r*Y,u+=(r=t[5])*N,f+=r*B,d+=r*L,p+=r*U,h+=r*F,m+=r*q,b+=r*z,y+=r*V,g+=r*H,v+=r*$,w+=r*K,_+=r*W,k+=r*G,x+=r*J,S+=r*Q,O+=r*Y,f+=(r=t[6])*N,d+=r*B,p+=r*L,h+=r*U,m+=r*F,b+=r*q,y+=r*z,g+=r*V,v+=r*H,w+=r*$,_+=r*K,k+=r*W,x+=r*G,S+=r*J,O+=r*Q,E+=r*Y,d+=(r=t[7])*N,p+=r*B,h+=r*L,m+=r*U,b+=r*F,y+=r*q,g+=r*z,v+=r*V,w+=r*H,_+=r*$,k+=r*K,x+=r*W,S+=r*G,O+=r*J,E+=r*Q,T+=r*Y,p+=(r=t[8])*N,h+=r*B,m+=r*L,b+=r*U,y+=r*F,g+=r*q,v+=r*z,w+=r*V,_+=r*H,k+=r*$,x+=r*K,S+=r*W,O+=r*G,E+=r*J,T+=r*Q,A+=r*Y,h+=(r=t[9])*N,m+=r*B,b+=r*L,y+=r*U,g+=r*F,v+=r*q,w+=r*z,_+=r*V,k+=r*H,x+=r*$,S+=r*K,O+=r*W,E+=r*G,T+=r*J,A+=r*Q,M+=r*Y,m+=(r=t[10])*N,b+=r*B,y+=r*L,g+=r*U,v+=r*F,w+=r*q,_+=r*z,k+=r*V,x+=r*H,S+=r*$,O+=r*K,E+=r*W,T+=r*G,A+=r*J,M+=r*Q,I+=r*Y,b+=(r=t[11])*N,y+=r*B,g+=r*L,v+=r*U,w+=r*F,_+=r*q,k+=r*z,x+=r*V,S+=r*H,O+=r*$,E+=r*K,T+=r*W,A+=r*G,M+=r*J,I+=r*Q,P+=r*Y,y+=(r=t[12])*N,g+=r*B,v+=r*L,w+=r*U,_+=r*F,k+=r*q,x+=r*z,S+=r*V,O+=r*H,E+=r*$,T+=r*K,A+=r*W,M+=r*G,I+=r*J,P+=r*Q,C+=r*Y,g+=(r=t[13])*N,v+=r*B,w+=r*L,_+=r*U,k+=r*F,x+=r*q,S+=r*z,O+=r*V,E+=r*H,T+=r*$,A+=r*K,M+=r*W,I+=r*G,P+=r*J,C+=r*Q,j+=r*Y,v+=(r=t[14])*N,w+=r*B,_+=r*L,k+=r*U,x+=r*F,S+=r*q,O+=r*z,E+=r*V,T+=r*H,A+=r*$,M+=r*K,I+=r*W,P+=r*G,C+=r*J,j+=r*Q,D+=r*Y,w+=(r=t[15])*N,a+=38*(k+=r*L),s+=38*(x+=r*U),c+=38*(S+=r*F),l+=38*(O+=r*q),u+=38*(E+=r*z),f+=38*(T+=r*V),d+=38*(A+=r*H),p+=38*(M+=r*$),h+=38*(I+=r*K),m+=38*(P+=r*W),b+=38*(C+=r*G),y+=38*(j+=r*J),g+=38*(D+=r*Q),v+=38*(R+=r*Y),o=(r=(o+=38*(_+=r*B))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=f,e[7]=d,e[8]=p,e[9]=h,e[10]=m,e[11]=b,e[12]=y,e[13]=g,e[14]=v,e[15]=w}function O(e,t){S(e,t,t)}function E(e,t){var n,r=i();for(n=0;n<16;n++)r[n]=t[n];for(n=253;n>=0;n--)O(r,r),2!==n&&4!==n&&S(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}function T(e,t,n){var r,o,a=new Uint8Array(32),c=new Float64Array(80),l=i(),u=i(),f=i(),d=i(),p=i(),h=i();for(o=0;o<31;o++)a[o]=t[o];for(a[31]=127&t[31]|64,a[0]&=248,_(c,n),o=0;o<16;o++)u[o]=c[o],d[o]=l[o]=f[o]=0;for(l[0]=d[0]=1,o=254;o>=0;--o)y(l,u,r=a[o>>>3]>>>(7&o)&1),y(f,d,r),k(p,l,f),x(l,l,f),k(f,u,d),x(u,u,d),O(d,p),O(h,l),S(l,f,l),S(f,u,p),k(p,l,f),x(l,l,f),O(u,l),x(f,d,h),S(l,f,s),k(l,l,d),S(f,f,l),S(l,d,h),S(d,u,c),O(u,p),y(l,u,r),y(f,d,r);for(o=0;o<16;o++)c[o+16]=l[o],c[o+32]=f[o],c[o+48]=u[o],c[o+64]=d[o];var m=c.subarray(32),b=c.subarray(16);return E(m,m),S(b,b,m),g(e,b),0}var A=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function M(e,t,n,r){for(var i,o,a,s,c,l,u,f,d,p,h,m,b,y,g,v,w,_,k,x,S,O,E,T,M,I,P=new Int32Array(16),C=new Int32Array(16),j=e[0],D=e[1],R=e[2],N=e[3],B=e[4],L=e[5],U=e[6],F=e[7],q=t[0],z=t[1],V=t[2],H=t[3],$=t[4],K=t[5],W=t[6],G=t[7],J=0;r>=128;){for(k=0;k<16;k++)x=8*k+J,P[k]=n[x+0]<<24|n[x+1]<<16|n[x+2]<<8|n[x+3],C[k]=n[x+4]<<24|n[x+5]<<16|n[x+6]<<8|n[x+7];for(k=0;k<80;k++)if(i=j,o=D,a=R,s=N,c=B,l=L,u=U,F,d=q,p=z,h=V,m=H,b=$,y=K,g=W,G,E=65535&(O=G),T=O>>>16,M=65535&(S=F),I=S>>>16,E+=65535&(O=($>>>14|B<<18)^($>>>18|B<<14)^(B>>>9|$<<23)),T+=O>>>16,M+=65535&(S=(B>>>14|$<<18)^(B>>>18|$<<14)^($>>>9|B<<23)),I+=S>>>16,E+=65535&(O=$&K^~$&W),T+=O>>>16,M+=65535&(S=B&L^~B&U),I+=S>>>16,E+=65535&(O=A[2*k+1]),T+=O>>>16,M+=65535&(S=A[2*k]),I+=S>>>16,S=P[k%16],T+=(O=C[k%16])>>>16,M+=65535&S,I+=S>>>16,M+=(T+=(E+=65535&O)>>>16)>>>16,E=65535&(O=_=65535&E|T<<16),T=O>>>16,M=65535&(S=w=65535&M|(I+=M>>>16)<<16),I=S>>>16,E+=65535&(O=(q>>>28|j<<4)^(j>>>2|q<<30)^(j>>>7|q<<25)),T+=O>>>16,M+=65535&(S=(j>>>28|q<<4)^(q>>>2|j<<30)^(q>>>7|j<<25)),I+=S>>>16,T+=(O=q&z^q&V^z&V)>>>16,M+=65535&(S=j&D^j&R^D&R),I+=S>>>16,f=65535&(M+=(T+=(E+=65535&O)>>>16)>>>16)|(I+=M>>>16)<<16,v=65535&E|T<<16,E=65535&(O=m),T=O>>>16,M=65535&(S=s),I=S>>>16,T+=(O=_)>>>16,M+=65535&(S=w),I+=S>>>16,D=i,R=o,N=a,B=s=65535&(M+=(T+=(E+=65535&O)>>>16)>>>16)|(I+=M>>>16)<<16,L=c,U=l,F=u,j=f,z=d,V=p,H=h,$=m=65535&E|T<<16,K=b,W=y,G=g,q=v,k%16==15)for(x=0;x<16;x++)S=P[x],E=65535&(O=C[x]),T=O>>>16,M=65535&S,I=S>>>16,S=P[(x+9)%16],E+=65535&(O=C[(x+9)%16]),T+=O>>>16,M+=65535&S,I+=S>>>16,w=P[(x+1)%16],E+=65535&(O=((_=C[(x+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),T+=O>>>16,M+=65535&(S=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),I+=S>>>16,w=P[(x+14)%16],T+=(O=((_=C[(x+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,M+=65535&(S=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),I+=S>>>16,I+=(M+=(T+=(E+=65535&O)>>>16)>>>16)>>>16,P[x]=65535&M|I<<16,C[x]=65535&E|T<<16;E=65535&(O=q),T=O>>>16,M=65535&(S=j),I=S>>>16,S=e[0],T+=(O=t[0])>>>16,M+=65535&S,I+=S>>>16,I+=(M+=(T+=(E+=65535&O)>>>16)>>>16)>>>16,e[0]=j=65535&M|I<<16,t[0]=q=65535&E|T<<16,E=65535&(O=z),T=O>>>16,M=65535&(S=D),I=S>>>16,S=e[1],T+=(O=t[1])>>>16,M+=65535&S,I+=S>>>16,I+=(M+=(T+=(E+=65535&O)>>>16)>>>16)>>>16,e[1]=D=65535&M|I<<16,t[1]=z=65535&E|T<<16,E=65535&(O=V),T=O>>>16,M=65535&(S=R),I=S>>>16,S=e[2],T+=(O=t[2])>>>16,M+=65535&S,I+=S>>>16,I+=(M+=(T+=(E+=65535&O)>>>16)>>>16)>>>16,e[2]=R=65535&M|I<<16,t[2]=V=65535&E|T<<16,E=65535&(O=H),T=O>>>16,M=65535&(S=N),I=S>>>16,S=e[3],T+=(O=t[3])>>>16,M+=65535&S,I+=S>>>16,I+=(M+=(T+=(E+=65535&O)>>>16)>>>16)>>>16,e[3]=N=65535&M|I<<16,t[3]=H=65535&E|T<<16,E=65535&(O=$),T=O>>>16,M=65535&(S=B),I=S>>>16,S=e[4],T+=(O=t[4])>>>16,M+=65535&S,I+=S>>>16,I+=(M+=(T+=(E+=65535&O)>>>16)>>>16)>>>16,e[4]=B=65535&M|I<<16,t[4]=$=65535&E|T<<16,E=65535&(O=K),T=O>>>16,M=65535&(S=L),I=S>>>16,S=e[5],T+=(O=t[5])>>>16,M+=65535&S,I+=S>>>16,I+=(M+=(T+=(E+=65535&O)>>>16)>>>16)>>>16,e[5]=L=65535&M|I<<16,t[5]=K=65535&E|T<<16,E=65535&(O=W),T=O>>>16,M=65535&(S=U),I=S>>>16,S=e[6],T+=(O=t[6])>>>16,M+=65535&S,I+=S>>>16,I+=(M+=(T+=(E+=65535&O)>>>16)>>>16)>>>16,e[6]=U=65535&M|I<<16,t[6]=W=65535&E|T<<16,E=65535&(O=G),T=O>>>16,M=65535&(S=F),I=S>>>16,S=e[7],T+=(O=t[7])>>>16,M+=65535&S,I+=S>>>16,I+=(M+=(T+=(E+=65535&O)>>>16)>>>16)>>>16,e[7]=F=65535&M|I<<16,t[7]=G=65535&E|T<<16,J+=128,r-=128}return r}function I(e,t,n){var r,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=n;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,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,M(i,o,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),M(i,o,a,n),r=0;r<8;r++)p(e,8*r,i[r],o[r]);return 0}function P(e,t){var n=i(),r=i(),o=i(),a=i(),s=i(),c=i(),u=i(),f=i(),d=i();x(n,e[1],e[0]),x(d,t[1],t[0]),S(n,n,d),k(r,e[0],e[1]),k(d,t[0],t[1]),S(r,r,d),S(o,e[3],t[3]),S(o,o,l),S(a,e[2],t[2]),k(a,a,a),x(s,r,n),x(c,a,o),k(u,a,o),k(f,r,n),S(e[0],s,c),S(e[1],f,u),S(e[2],u,c),S(e[3],s,f)}function C(e,t,n){var r;for(r=0;r<4;r++)y(e[r],t[r],n)}function j(e,t){var n=i(),r=i(),o=i();E(o,t[2]),S(n,t[0],o),S(r,t[1],o),g(e,r),e[31]^=w(n)<<7}function D(e,t,n){var r,i;for(m(e[0],o),m(e[1],a),m(e[2],a),m(e[3],o),i=255;i>=0;--i)C(e,t,r=n[i/8|0]>>(7&i)&1),P(t,e),P(e,e),C(e,t,r)}function R(e,t){var n=[i(),i(),i(),i()];m(n[0],u),m(n[1],f),m(n[2],a),S(n[3],u,f),D(e,n,t)}var N=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 B(e,t){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i<o;++i)t[i]+=n-16*t[r]*N[i-(r-32)],n=t[i]+128>>8,t[i]-=256*n;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*N[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*N[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function L(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;B(e,n)}function U(e,t,n,r,o){for(var a=new Uint8Array(64),s=[i(),i(),i(),i()],c=0;c<32;c++)a[c]=r[c];a[0]&=248,a[31]&=127,a[31]|=64,R(s,a),j(a.subarray(32),s);var l,u=128&a[63];return l=o?function(e,t,n,r,o){var a,s,c=new Uint8Array(64),l=new Uint8Array(64),u=new Float64Array(64),f=[i(),i(),i(),i()];for(e[0]=254,a=1;a<32;a++)e[a]=255;for(a=0;a<32;a++)e[32+a]=r[a];for(a=0;a<n;a++)e[64+a]=t[a];for(a=0;a<64;a++)e[n+64+a]=o[a];for(I(l,e,n+128),L(l),R(f,l),j(e,f),a=0;a<32;a++)e[a+32]=r[32+a];for(I(c,e,n+64),L(c),a=0;a<64;a++)e[n+64+a]=0;for(a=0;a<64;a++)u[a]=0;for(a=0;a<32;a++)u[a]=l[a];for(a=0;a<32;a++)for(s=0;s<32;s++)u[a+s]+=c[a]*r[s];return B(e.subarray(32,n+64),u),n+64}(e,t,n,a,o):function(e,t,n,r){var o,a,s=new Uint8Array(64),c=new Uint8Array(64),l=new Float64Array(64),u=[i(),i(),i(),i()];for(o=0;o<n;o++)e[64+o]=t[o];for(o=0;o<32;o++)e[32+o]=r[o];for(I(c,e.subarray(32),n+32),L(c),R(u,c),j(e,u),o=0;o<32;o++)e[o+32]=r[32+o];for(I(s,e,n+64),L(s),o=0;o<64;o++)l[o]=0;for(o=0;o<32;o++)l[o]=c[o];for(o=0;o<32;o++)for(a=0;a<32;a++)l[o+a]+=s[o]*r[a];return B(e.subarray(32),l),n+64}(e,t,n,a),e[63]|=u,l}function F(e,t){var n=i(),r=i(),s=i(),l=i(),u=i(),f=i(),p=i();return m(e[2],a),_(e[1],t),O(s,e[1]),S(l,s,c),x(s,s,e[2]),k(l,e[2],l),O(u,l),O(f,u),S(p,f,u),S(n,p,s),S(n,n,l),function(e,t){var n,r=i();for(n=0;n<16;n++)r[n]=t[n];for(n=250;n>=0;n--)O(r,r),1!==n&&S(r,r,t);for(n=0;n<16;n++)e[n]=r[n]}(n,n),S(n,n,s),S(n,n,l),S(n,n,l),S(e[0],n,l),O(r,e[0]),S(r,r,l),v(r,s)&&S(e[0],e[0],d),O(r,e[0]),S(r,r,l),v(r,s)?-1:(w(e[0])===t[31]>>7&&x(e[0],o,e[0]),S(e[3],e[0],e[1]),0)}function q(e,t,n,r){var o=function(e){var t=new Uint8Array(32),n=i(),r=i(),o=i();return _(n,e),k(r,n,a),x(o,n,a),E(r,r),S(r,r,o),g(t,r),t}(r);return o[31]|=128&t[63],t[63]&=127,function(e,t,n,r){var o,a=new Uint8Array(32),s=new Uint8Array(64),c=[i(),i(),i(),i()],l=[i(),i(),i(),i()];if(-1,n<64)return-1;if(F(l,r))return-1;for(o=0;o<n;o++)e[o]=t[o];for(o=0;o<32;o++)e[o+32]=r[o];if(I(s,e,n),L(s),D(c,l,s),R(l,t.subarray(32)),P(c,l),j(a,c),n-=64,h(t,0,a,0)){for(o=0;o<n;o++)e[o]=0;return-1}for(o=0;o<n;o++)e[o]=t[o+64];return n}(e,t,n,o)}function z(...e){var t,n;for(n=0;n<arguments.length;n++)if("[object Uint8Array]"!==(t=Object.prototype.toString.call(arguments[n])))throw new TypeError("unexpected type "+t+", use Uint8Array")}t.sharedKey=function(e,t){if(z(t,e),32!==t.length)throw new Error("wrong public key length");if(32!==e.length)throw new Error("wrong secret key length");var n=new Uint8Array(32);return T(n,e,t),n},t.signMessage=function(e,t,n){if(z(t,e),32!==e.length)throw new Error("wrong secret key length");if(n){if(z(n),64!==n.length)throw new Error("wrong random data length");var r=new Uint8Array(128+t.length);return U(r,t,t.length,e,n),new Uint8Array(r.subarray(0,64+t.length))}var i=new Uint8Array(64+t.length);return U(i,t,t.length,e),i},t.openMessage=function(e,t){if(z(t,e),32!==e.length)throw new Error("wrong public key length");var n=new Uint8Array(t.length),r=q(n,t,t.length,e);if(r<0)return null;for(var i=new Uint8Array(r),o=0;o<i.length;o++)i[o]=n[o];return i},t.sign=function(e,t,n){if(z(e,t),32!==e.length)throw new Error("wrong secret key length");if(n&&(z(n),64!==n.length))throw new Error("wrong random data length");var r=new Uint8Array((n?128:64)+t.length);U(r,t,t.length,e,n);for(var i=new Uint8Array(64),o=0;o<i.length;o++)i[o]=r[o];return i},t.verify=function(e,t,n){if(z(t,n,e),64!==n.length)throw new Error("wrong signature length");if(32!==e.length)throw new Error("wrong public key length");var r,i=new Uint8Array(64+t.length),o=new Uint8Array(64+t.length);for(r=0;r<64;r++)i[r]=n[r];for(r=0;r<t.length;r++)i[r+64]=t[r];return q(o,i,i.length,e)>=0},t.generateKeyPair=function(e){if(z(e),32!==e.length)throw new Error("wrong seed length");for(var t=new Uint8Array(32),n=new Uint8Array(32),i=0;i<32;i++)t[i]=e[i];return T(n,t,r),t[0]&=248,t[31]&=127,t[31]|=64,n[31]&=127,{public:n,private:t}},t.default={}},function(e,t,n){(function(r,i){var o;!function(a){"use strict";function s(e,t){if(t=t||{type:"Array"},void 0!==r&&"number"==typeof r.pid&&r.versions&&r.versions.node)return function(e,t){var r=n(771).randomBytes(e);switch(t.type){case"Array":return[].slice.call(r);case"Buffer":return r;case"Uint8Array":for(var i=new Uint8Array(e),o=0;o<e;++o)i[o]=r.readUInt8(o);return i;default:throw new Error(t.type+" is unsupported.")}}(e,t);if(!(window.crypto||window.msCrypto))throw new Error("Your browser does not support window.crypto.");return function(e,t){var n=new Uint8Array(e);switch((window.crypto||window.msCrypto).getRandomValues(n),t.type){case"Array":return[].slice.call(n);case"Buffer":try{new i(1)}catch(e){throw new Error("Buffer not supported in this environment. Use Node.js or Browserify for browser support.")}return new i(n);case"Uint8Array":return n;default:throw new Error(t.type+" is unsupported.")}}(e,t)}void 0===(o=function(){return s}.apply(t,[]))||(e.exports=o),s.randomArray=function(e){return s(e,{type:"Array"})},s.randomUint8Array=function(e){return s(e,{type:"Uint8Array"})},s.randomBuffer=function(e){return s(e,{type:"Buffer"})}}()}).call(this,n(13),n(2).Buffer)},function(e,t){},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(773)),o=r(n(797));t.compute=i.compute,t.nistConcatKdf=o.nistConcatKdf,t.default={compute:t.compute,nistConcatKdf:t.nistConcatKdf}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(373)),c=a(n(141)),l=o(n(774)),u=o(n(776)),f=o(n(794));t.compute=function(e,t,n,o,a){return void 0===t&&(t="SHA-256"),void 0===n&&(n=32),void 0===o&&(o=""),void 0===a&&(a=null),r(void 0,void 0,void 0,(function(){var r,s,u,p;return i(this,(function(i){switch(i.label){case 0:if(r=c.getCrypto(),a||(a=l.default.getRandomBytes(n)),"webCrypto"!==r.name||"function"!=typeof r.crypto.importKey||"function"!=typeof r.crypto.deriveBits)return[3,7];i.label=1;case 1:return i.trys.push([1,4,,6]),[4,r.crypto.importKey("raw",e,{name:"HKDF"},!1,["deriveKey","deriveBits"])];case 2:return u=i.sent(),p={name:"HKDF",salt:a,info:f.default.encoder.stringToArrayBuffer(o),hash:t},[4,r.crypto.deriveBits(p,u,8*n)];case 3:return s=i.sent(),s=new Uint8Array(s),[3,6];case 4:return i.sent(),[4,d(e,t,n,o,a)];case 5:return s=i.sent(),[3,6];case 6:return[3,9];case 7:return[4,d(e,t,n,o,a)];case 8:s=i.sent(),i.label=9;case 9:return[2,{key:s,salt:a}]}}))}))};var d=function(e,t,n,o,a){return r(void 0,void 0,void 0,(function(){var r,c,l,d,p,h,m;return i(this,(function(i){switch(i.label){case 0:return r=s.default.hashes[t].hashSize,[4,u.default.compute(a,e,t)];case 1:c=i.sent(),l=new Uint8Array([]),d=new Uint8Array(Math.ceil(n/r)*r),p=f.default.encoder.stringToArrayBuffer(o),h=0,i.label=2;case 2:return h<Math.ceil(n/r)?((m=new Uint8Array(l.length+p.length+1)).set(l),m.set(p,l.length),m.set(new Uint8Array([h+1]),l.length+p.length),[4,u.default.compute(c,m,t)]):[3,5];case 3:l=i.sent(),d.set(l,r*h),i.label=4;case 4:return h++,[3,2];case 5:return[2,d.slice(0,n)]}}))}))}},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(775));t.getRandomBytes=i.getRandomBytes,t.getRandomAsciiString=i.getRandomAsciiString,t.getRandomString=i.getRandomString,t.getRandomSampledString=i.getRandomSampledString,t.default={getRandomBytes:t.getRandomBytes,getRandomAsciiString:t.getRandomAsciiString,getRandomString:t.getRandomString,getRandomSampledString:t.getRandomSampledString}},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(141));t.getRandomString=function(e){for(var n=t.getRandomBytes(e),r=t.getRandomBytes(e),i="",o=0;o<e;o++)r[o]=r[o]%3,n[o]=0===r[o]?n[o]%10+48:n[o]%26+(1===r[o]?65:97),i+=String.fromCharCode(n[o]);return i},t.getRandomAsciiString=function(e){for(var n=t.getRandomBytes(e),r="",i=0;i<e;i++)n[i]=n[i]%94+32,r+=String.fromCharCode(n[i]);return r},t.getRandomSampledString=function(e,n){var r=n.length;if(0===r)return"";for(var i=t.getRandomBytes(e),o="",a=0;a<e;a++)o+=n[i[a]%r];return o},t.getRandomBytes=function(e){var t=i.getRootWebCryptoAll(),n=i.getNodeCrypto();if(void 0!==t&&"function"==typeof t.getRandomValues){var r=new Uint8Array(e);return t.getRandomValues(r),r}if(void 0!==n)return new Uint8Array(n.randomBytes(e));throw new Error("UnsupportedEnvironment")}},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(777));t.compute=i.compute,t.verify=i.verify,t.default={compute:t.compute,verify:t.verify}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(778)),c=a(n(141)),l=o(n(374));t.compute=function(e,t,n){return void 0===n&&(n="SHA-256"),r(void 0,void 0,void 0,(function(){var r,o,a,l,p,h,m,b;return i(this,(function(i){switch(i.label){case 0:r=c.getCrypto(),l=!0,i.label=1;case 1:return i.trys.push([1,9,,10]),"webCrypto"!==r.name||"function"!=typeof r.crypto.importKey||"function"!=typeof r.crypto.sign?[3,4]:[4,r.crypto.importKey("raw",e,{name:"HMAC",hash:{name:n}},!1,["sign","verify"])];case 2:return p=i.sent(),[4,r.crypto.sign({name:"HMAC",hash:{name:n}},p,t)];case 3:return o=i.sent(),[3,8];case 4:return"msCrypto"!==r.name?[3,7]:[4,f("raw",e,{name:"HMAC",hash:{name:n}},!1,["sign","verify"],r.crypto)];case 5:return p=i.sent(),[4,d(n,p,t,r.crypto)];case 6:return o=i.sent(),[3,8];case 7:"nodeCrypto"===r.name?(h=r.crypto.createHmac(s.default.hashes[n].nodeName,e),o=h.update(t).digest()):l=!1,i.label=8;case 8:return[3,10];case 9:return m=i.sent(),a=m.message,l=!1,[3,10];case 10:if(l)return[3,14];i.label=11;case 11:return i.trys.push([11,13,,14]),[4,u(e,t,n)];case 12:return o=i.sent(),[3,14];case 13:throw b=i.sent(),a=a+" => "+b.message,new Error("UnsupportedEnvironments: "+a);case 14:return[2,new Uint8Array(o)]}}))}))};var u=function(e,t,n){return r(void 0,void 0,void 0,(function(){var r,o,a,c,u,f,d,p;return i(this,(function(i){switch(i.label){case 0:return r=s.default.hashes[n].blockSize,o=s.default.hashes[n].hashSize,e.length>r?[4,l.default.compute(e,n)]:[3,2];case 1:e=i.sent(),i.label=2;case 2:return(a=new Uint8Array(r)).set(e),c=a.map((function(e){return 255&(54^e)})),u=a.map((function(e){return 255&(92^e)})),(f=new Uint8Array(r+t.length)).set(c),f.set(t,r),[4,l.default.compute(f,n)];case 3:return d=i.sent(),(p=new Uint8Array(r+o)).set(u),p.set(d,r),[2,l.default.compute(p,n)]}}))}))};t.verify=function(e,n,o,a){return void 0===a&&(a="SHA-256"),r(void 0,void 0,void 0,(function(){var r;return i(this,(function(i){switch(i.label){case 0:return[4,t.compute(e,n,a)];case 1:return r=i.sent(),[2,o.toString()===r.toString()]}}))}))};var f=function(e,t,n,r,i,o){return new Promise((function(a,s){var c=o.importKey(e,t,n,r,i);c.oncomplete=function(e){a(e.target.result)},c.onerror=function(){s("KeyImportingFailed")}}))},d=function(e,t,n,r){return new Promise((function(i,o){var a=r.sign({name:"HMAC",hash:{name:e}},t,n);a.oncomplete=function(e){i(new Uint8Array(e.target.result))},a.onerror=function(){o("ComputingHMACFailed")}}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={hashes:{"SHA3-512":{nodeName:"sha3-512",hashSize:64,blockSize:72},"SHA3-384":{nodeName:"sha3-384",hashSize:48,blockSize:104},"SHA3-256":{nodeName:"sha3-256",hashSize:32,blockSize:136},"SHA3-224":{nodeName:"sha3-224",hashSize:28,blockSize:144},"SHA-256":{nodeName:"sha256",hashSize:32,blockSize:64},"SHA-384":{nodeName:"sha384",hashSize:48,blockSize:128},"SHA-512":{nodeName:"sha512",hashSize:64,blockSize:128},"SHA-1":{nodeName:"sha1",hashSize:20,blockSize:64},MD5:{nodeName:"md5",hashSize:16,blockSize:64}}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=o(n(141)),c=a(n(780)),l=a(n(781)),u=n(784),f=a(n(70));t.compute=function(e,t){return void 0===t&&(t="SHA-256"),r(void 0,void 0,void 0,(function(){var n,r,o,a,c;return i(this,(function(i){switch(i.label){case 0:n=s.getCrypto(),a=!0,i.label=1;case 1:return i.trys.push([1,8,,9]),"webCrypto"!==n.name||"function"!=typeof n.crypto.digest?[3,3]:[4,n.crypto.digest(t,e)];case 2:return r=i.sent(),[3,7];case 3:return"nodeCrypto"!==n.name?[3,4]:(r=p(t,e,n.crypto),[3,7]);case 4:return"msCrypto"!==n.name||"function"!=typeof n.crypto.digest?[3,6]:[4,d(t,e,n.crypto)];case 5:return r=i.sent(),[3,7];case 6:a=!1,i.label=7;case 7:return[3,9];case 8:return c=i.sent(),o=c.message,a=!1,[3,9];case 9:if(!a)try{r=h(t,e)}catch(e){throw o=(void 0===o?"":o)+" => "+e.message,new Error("UnsupportedEnvironment: "+o)}return[2,new Uint8Array(r)]}}))}))};var d=function(e,t,n){return new Promise((function(r,i){var o=n.digest(e,t);o.oncomplete=function(e){r(e.target.result)},o.onerror=function(e){i(e)}}))},p=function(e,t,n){var r=c.default.hashes[e].nodeName,i=n.createHash(r);return i.update(t),i.digest()},h=function(e,t){var r;if("MD5"===e)r=l.default(Array.from(t),{asBytes:!0});else if(["SHA3-512","SHA3-384","SHA3-256","SHA3-224"].indexOf(e)>=0){var i=8*c.default.hashes[e].hashSize,o=new u.SHA3(i),a=n(2).Buffer;o.update(a.from(t)),r=o.digest("binary")}else r=f.default[c.default.hashes[e].nodeName]().update(t).digest();return new Uint8Array(r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={hashes:{"SHA3-512":{nodeName:"sha3-512",hashSize:64},"SHA3-384":{nodeName:"sha3-384",hashSize:48},"SHA3-256":{nodeName:"sha3-256",hashSize:32},"SHA3-224":{nodeName:"sha3-224",hashSize:28},"SHA-256":{nodeName:"sha256",hashSize:32},"SHA-384":{nodeName:"sha384",hashSize:48},"SHA-512":{nodeName:"sha512",hashSize:64},"SHA-1":{nodeName:"sha1",hashSize:20},MD5:{nodeName:"md5",hashSize:16}}}},function(e,t,n){var r,i,o,a,s;r=n(782),i=n(375).utf8,o=n(783),a=n(375).bin,(s=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):i.stringToBytes(e):o(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var n=r.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,f=-1732584194,d=271733878,p=0;p<n.length;p++)n[p]=16711935&(n[p]<<8|n[p]>>>24)|4278255360&(n[p]<<24|n[p]>>>8);n[c>>>5]|=128<<c%32,n[14+(c+64>>>9<<4)]=c;var h=s._ff,m=s._gg,b=s._hh,y=s._ii;for(p=0;p<n.length;p+=16){var g=l,v=u,w=f,_=d;l=h(l,u,f,d,n[p+0],7,-680876936),d=h(d,l,u,f,n[p+1],12,-389564586),f=h(f,d,l,u,n[p+2],17,606105819),u=h(u,f,d,l,n[p+3],22,-1044525330),l=h(l,u,f,d,n[p+4],7,-176418897),d=h(d,l,u,f,n[p+5],12,1200080426),f=h(f,d,l,u,n[p+6],17,-1473231341),u=h(u,f,d,l,n[p+7],22,-45705983),l=h(l,u,f,d,n[p+8],7,1770035416),d=h(d,l,u,f,n[p+9],12,-1958414417),f=h(f,d,l,u,n[p+10],17,-42063),u=h(u,f,d,l,n[p+11],22,-1990404162),l=h(l,u,f,d,n[p+12],7,1804603682),d=h(d,l,u,f,n[p+13],12,-40341101),f=h(f,d,l,u,n[p+14],17,-1502002290),l=m(l,u=h(u,f,d,l,n[p+15],22,1236535329),f,d,n[p+1],5,-165796510),d=m(d,l,u,f,n[p+6],9,-1069501632),f=m(f,d,l,u,n[p+11],14,643717713),u=m(u,f,d,l,n[p+0],20,-373897302),l=m(l,u,f,d,n[p+5],5,-701558691),d=m(d,l,u,f,n[p+10],9,38016083),f=m(f,d,l,u,n[p+15],14,-660478335),u=m(u,f,d,l,n[p+4],20,-405537848),l=m(l,u,f,d,n[p+9],5,568446438),d=m(d,l,u,f,n[p+14],9,-1019803690),f=m(f,d,l,u,n[p+3],14,-187363961),u=m(u,f,d,l,n[p+8],20,1163531501),l=m(l,u,f,d,n[p+13],5,-1444681467),d=m(d,l,u,f,n[p+2],9,-51403784),f=m(f,d,l,u,n[p+7],14,1735328473),l=b(l,u=m(u,f,d,l,n[p+12],20,-1926607734),f,d,n[p+5],4,-378558),d=b(d,l,u,f,n[p+8],11,-2022574463),f=b(f,d,l,u,n[p+11],16,1839030562),u=b(u,f,d,l,n[p+14],23,-35309556),l=b(l,u,f,d,n[p+1],4,-1530992060),d=b(d,l,u,f,n[p+4],11,1272893353),f=b(f,d,l,u,n[p+7],16,-155497632),u=b(u,f,d,l,n[p+10],23,-1094730640),l=b(l,u,f,d,n[p+13],4,681279174),d=b(d,l,u,f,n[p+0],11,-358537222),f=b(f,d,l,u,n[p+3],16,-722521979),u=b(u,f,d,l,n[p+6],23,76029189),l=b(l,u,f,d,n[p+9],4,-640364487),d=b(d,l,u,f,n[p+12],11,-421815835),f=b(f,d,l,u,n[p+15],16,530742520),l=y(l,u=b(u,f,d,l,n[p+2],23,-995338651),f,d,n[p+0],6,-198630844),d=y(d,l,u,f,n[p+7],10,1126891415),f=y(f,d,l,u,n[p+14],15,-1416354905),u=y(u,f,d,l,n[p+5],21,-57434055),l=y(l,u,f,d,n[p+12],6,1700485571),d=y(d,l,u,f,n[p+3],10,-1894986606),f=y(f,d,l,u,n[p+10],15,-1051523),u=y(u,f,d,l,n[p+1],21,-2054922799),l=y(l,u,f,d,n[p+8],6,1873313359),d=y(d,l,u,f,n[p+15],10,-30611744),f=y(f,d,l,u,n[p+6],15,-1560198380),u=y(u,f,d,l,n[p+13],21,1309151649),l=y(l,u,f,d,n[p+4],6,-145523070),d=y(d,l,u,f,n[p+11],10,-1120210379),f=y(f,d,l,u,n[p+2],15,718787259),u=y(u,f,d,l,n[p+9],21,-343485551),l=l+g>>>0,u=u+v>>>0,f=f+w>>>0,d=d+_>>>0}return r.endian([l,u,f,d])})._ff=function(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._gg=function(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._hh=function(e,t,n,r,i,o,a){var s=e+(t^n^r)+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._ii=function(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+(i>>>0)+a;return(s<<o|s>>>32-o)+t},s._blocksize=16,s._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(s(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},function(e,t){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var t=[],r=0;r<e.length;r+=3)for(var i=e[r]<<16|e[r+1]<<8|e[r+2],o=0;o<4;o++)8*r+6*o<=8*e.length?t.push(n.charAt(i>>>6*(3-o)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,i=0;r<e.length;i=++r%4)0!=i&&t.push((n.indexOf(e.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|n.indexOf(e.charAt(r))>>>6-2*i);return t}},e.exports=r},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
95 /*!
96  * Determine if an object is a Buffer
97  *
98  * @author   Feross Aboukhadijeh <https://feross.org>
99  * @license  MIT
100  */
101 e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SHAKE=t.SHA3Hash=t.SHA3=t.Keccak=void 0;var r,i=n(2),o=(r=n(785))&&r.__esModule?r:{default:r};var a=function(e){var t=e.allowedSizes,n=e.padding;return function e(){var r=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:512;if(!this||this.constructor!==e)return new e(a);if(t&&!t.includes(a))throw new Error("Unsupported hash length");var s=new o.default({capacity:a});return this.update=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if(i.Buffer.isBuffer(e))return s.absorb(e),r;if("string"==typeof e)return r.update(i.Buffer.from(e,t));throw new TypeError("Not a string or buffer")},this.digest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"binary",t="string"==typeof e?{format:e}:e,r=s.squeeze({buffer:t.buffer,padding:t.padding||n});return t.format&&"binary"!==t.format?r.toString(t.format):r},this.reset=function(){return s.reset(),r},this}},s=a({allowedSizes:[224,256,384,512],padding:1});t.Keccak=s;var c=a({allowedSizes:[224,256,384,512],padding:6});t.SHA3=c;var l=a({allowedSizes:[128,256],padding:31});t.SHAKE=l;var u=s;t.SHA3Hash=u,c.SHA3Hash=u;var f=c;t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(2),o=(r=n(786))&&r.__esModule?r:{default:r};var a=function(e,t){for(var n=0;n<e.length;n+=8){var r=n/4;t[r]^=e[n+7]<<24|e[n+6]<<16|e[n+5]<<8|e[n+4],t[r+1]^=e[n+3]<<24|e[n+2]<<16|e[n+1]<<8|e[n]}return t},s=function(e,t){for(var n=0;n<t.length;n+=8){var r=n/4;t[n]=e[r+1],t[n+1]=e[r+1]>>>8,t[n+2]=e[r+1]>>>16,t[n+3]=e[r+1]>>>24,t[n+4]=e[r],t[n+5]=e[r]>>>8,t[n+6]=e[r]>>>16,t[n+7]=e[r]>>>24}return t},c=function(e){var t=this,n=e.capacity,r=e.padding,c=(0,o.default)(),l=n/8,u=200-n/4,f=0,d=new Uint32Array(50),p=i.Buffer.allocUnsafe(u);return this.absorb=function(e){for(var n=0;n<e.length;n++)p[f]=e[n],(f+=1)>=u&&(a(p,d),c(d),f=0);return t},this.squeeze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={buffer:e.buffer||i.Buffer.allocUnsafe(l),padding:e.padding||r,queue:i.Buffer.allocUnsafe(p.length),state:new Uint32Array(d.length)};p.copy(t.queue);for(var n=0;n<d.length;n++)t.state[n]=d[n];t.queue.fill(0,f),t.queue[f]|=t.padding,t.queue[u-1]|=128,a(t.queue,t.state);for(var o=0;o<t.buffer.length;o+=u)c(t.state),s(t.state,t.buffer.slice(o,o+u));return t.buffer},this.reset=function(){return p.fill(0),d.fill(0),f=0,t},this};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(787)),i=s(n(788)),o=s(n(790)),a=s(n(793));function s(e){return e&&e.__esModule?e:{default:e}}var c=function(){var e=new Uint32Array(10),t=new Uint32Array(10),n=new Uint32Array(2);return function(s){for(var c=0;c<24;c++)(0,a.default)({A:s,C:e,D:t,W:n}),(0,o.default)({A:s,C:e,W:n}),(0,r.default)({A:s,C:e}),(0,i.default)({A:s,roundIndex:c});e.fill(0),t.fill(0),n.fill(0)}};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(202))&&r.__esModule?r:{default:r};var o=function(e){for(var t=e.A,n=e.C,r=0;r<25;r+=5){for(var o=0;o<5;o++)(0,i.default)(t,r+o)(n,o);for(var a=0;a<5;a++){var s=2*(r+a),c=(a+1)%5*2,l=(a+2)%5*2;t[s]^=~n[c]&n[l],t[s+1]^=~n[c+1]&n[l+1]}}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(789))&&r.__esModule?r:{default:r};var o=function(e){var t=e.A,n=2*e.roundIndex;t[0]^=i.default[n],t[1]^=i.default[n+1]};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=new Uint32Array([0,1,0,32898,2147483648,32906,2147483648,2147516416,0,32907,0,2147483649,2147483648,2147516545,2147483648,32777,0,138,0,136,0,2147516425,0,2147483658,0,2147516555,2147483648,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,0,32778,2147483648,2147483658,2147483648,2147516545,2147483648,32896,0,2147483649,2147483648,2147516424]);t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(791)),i=a(n(792)),o=a(n(202));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t=e.A,n=e.C,a=e.W;(0,o.default)(t,1)(a,0);for(var s=0,c=0,l=0,u=32,f=0;f<24;f++){var d=r.default[f],p=i.default[f];(0,o.default)(t,d)(n,0),s=a[0],c=a[1],u=32-p,a[l=p<32?0:1]=s<<p|c>>>u,a[(l+1)%2]=c<<p|s>>>u,(0,o.default)(a,0)(t,d),(0,o.default)(n,0)(a,0)}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=[10,7,11,17,18,3,5,16,8,21,24,4,15,23,19,13,12,2,20,14,22,9,6,1];t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=[1,3,6,10,15,21,28,36,45,55,2,14,27,41,56,8,25,43,62,18,39,61,20,44];t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(202))&&r.__esModule?r:{default:r};var o=function(e){for(var t=e.A,n=e.C,r=e.D,o=e.W,a=0,s=0,c=0;c<5;c++){var l=2*c,u=2*(c+5),f=2*(c+10),d=2*(c+15),p=2*(c+20);n[l]=t[l]^t[u]^t[f]^t[d]^t[p],n[l+1]=t[l+1]^t[u+1]^t[f+1]^t[d+1]^t[p+1]}for(var h=0;h<5;h++){(0,i.default)(n,(h+1)%5)(o,0),a=o[0],s=o[1],o[0]=a<<1|s>>>31,o[1]=s<<1|a>>>31,r[2*h]=n[(h+4)%5*2]^o[0],r[2*h+1]=n[(h+4)%5*2+1]^o[1];for(var m=0;m<25;m+=5)t[2*(m+h)]^=r[2*h],t[2*(m+h)+1]^=r[2*h+1]}};t.default=o},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=r(n(376)),s=r(n(796));!function(e){e.encodeBase64=a.encodeBase64,e.decodeBase64=a.decodeBase64,e.encodeBase64Url=a.encodeBase64Url,e.decodeBase64Url=a.decodeBase64Url,e.arrayBufferToHexString=a.arrayBufferToHexString,e.hexStringToArrayBuffer=a.hexStringToArrayBuffer,e.stringToArrayBuffer=a.stringToArrayBuffer,e.arrayBufferToString=a.arrayBufferToString}(i=t.encoder||(t.encoder={})),function(e){e.binToPem=s.binToPem,e.pemToBin=s.pemToBin}(o=t.formatter||(t.formatter={})),t.default={encoder:i,formatter:o}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getEnvBtoa=function(){return"undefined"!=typeof window?window.btoa:n},t.getEnvAtob=function(){return"undefined"!=typeof window?window.atob:r};var n=function(t){if(void 0===e)throw new Error("UnsupportedEnvironment");return e.from(t.toString(),"binary").toString("base64")},r=function(t){if(void 0===e)throw new Error("UnsupportedEnvironment");return e.from(t,"base64").toString("binary")}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(376)),o={public:"PUBLIC KEY",private:"PRIVATE KEY",encryptedPrivate:"ENCRYPTED PRIVATE KEY",certificate:"CERTIFICATE",certRequest:"CERTIFICATE REQUEST"};t.pemToBin=function(e){var t=s(e);return i.decodeBase64(t)},t.binToPem=function(e,t){var n=i.encodeBase64(e);return a(n,t)};var a=function(e,t){for(var n=o[t],r="-----BEGIN "+n+"-----\n";e.length>0;)r+=e.substring(0,64)+"\n",e=e.substring(64);return r=r+"-----END "+n+"-----"},s=function(e){var t=RegExp("^-----[s]*BEGIN[^-]*-----$","gm"),n=RegExp("^-----[s]*END[^-]*-----$","gm");try{var r=e.split(t)[1].split(n)[0];return r=r.replace(/\r?\n/g,"")}catch(e){throw new Error("Invalid format as PEM")}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n(373)),s=o(n(374));t.nistConcatKdf=function(e,t,n,o){return void 0===n&&(n=32),void 0===o&&(o="SHA-256"),r(void 0,void 0,void 0,(function(){var r,l,u,f,d,p;return i(this,(function(i){switch(i.label){case 0:if((r=Math.ceil(n/a.default.hashes[o].hashSize))>Math.pow(2,32)-1)throw new Error("TooLongKeyDataIndicated");l=new Uint8Array(a.default.hashes[o].hashSize*r),u=new Uint8Array(4),f=0,i.label=1;case 1:return f<r?(u=c(u),(d=new Uint8Array(4+e.length+t.length)).set(u),d.set(e,u.length),d.set(t,u.length+e.length),[4,s.default.compute(d,o)]):[3,4];case 2:p=i.sent(),l.set(p,f*a.default.hashes[o].hashSize),i.label=3;case 3:return f++,[3,1];case 4:return[2,l.slice(0,n)]}}))}))};var c=function(e){e[3]+=1;for(var t=!0,n=3;t&&n>0;)e[n-1]+=t&&0===e[n]?1:0,t=t&&0===e[n],n--;return e}},function(e,t,n){"use strict";e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!=i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!=i--;){var a=o[i];if(!e(t[a],n[a]))return!1}return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(105),i=n(204);function o(e){return[r.Slip10RawIndex.hardened(44),r.Slip10RawIndex.hardened(529),r.Slip10RawIndex.hardened(0),r.Slip10RawIndex.normal(0),r.Slip10RawIndex.normal(e)]}t.makeSecretNetworkPath=o;class a{constructor(e,t){this.privkey=e,this.pubkey=t}static async fromMnemonic(e,t=o(0)){const n=await r.Bip39.mnemonicToSeed(new r.EnglishMnemonic(e)),{privkey:i}=r.Slip10.derivePath(r.Slip10Curve.Secp256k1,n,t),s=(await r.Secp256k1.makeKeypair(i)).pubkey;return new a(i,r.Secp256k1.compressPubkey(s))}async sign(e,t="sha256"){const n=function(e,t){switch(t){case null:return new Uint8Array([...e]);case"sha256":return new r.Sha256(e).digest();case"sha512":return new r.Sha512(e).digest();default:throw new Error("Unknown prehash type")}}(e,t),o=await r.Secp256k1.createSignature(n,this.privkey),a=new Uint8Array([...o.r(32),...o.s(32)]);return i.encodeSecp256k1Signature(this.pubkey,a)}}t.Secp256k1Pen=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(105),i=n(196),o=n(204);t.findSequenceForSignedTx=async function(e,t,n,a,s=0){const c=e.value.signatures.find(()=>!0);if(!c)throw new Error("Signature missing in tx");const{pubkey:l,signature:u}=o.decodeSignature(c),f=r.Secp256k1Signature.fromFixedLength(u);for(let o=s;o<a;o++){const a=i.makeSignBytes(e.value.msg,e.value.fee,t,e.value.memo||"",n,o),s=new r.Sha256(a).digest();if(await r.Secp256k1.verifySignature(f,s,l))return o}}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(105),o=n(42),a=r(n(411)),s=n(802),c=n(377),l=n(196),u=n(194),f=n(197);function d(e,t){return[{amount:e.toString(),denom:t}]}const p={upload:{amount:d(25e4,"uscrt"),gas:String(1e6)},init:{amount:d(125e3,"uscrt"),gas:String(5e5)},exec:{amount:d(5e4,"uscrt"),gas:String(2e5)},send:{amount:d(2e4,"uscrt"),gas:String(8e4)}};class h extends c.CosmWasmClient{constructor(e,t,n,r,i,o=f.BroadcastMode.Block){r instanceof Uint8Array?super(e,r,o):super(e,void 0,o),this.anyValidAddress=t,this.senderAddress=t,this.signer=n,!r||r instanceof Uint8Array||(this.restClient.enigmautils=r),this.fees=Object.assign(Object.assign({},p),i||{})}async getNonce(e){return super.getNonce(e||this.senderAddress)}async getAccount(e){return super.getAccount(e||this.senderAddress)}async signAdapter(e,t,n,r,i,o){if("sign"in this.signer){const a=await this.signer.sign(this.senderAddress,{chain_id:n,account_number:String(i),sequence:String(o),fee:t,msgs:e,memo:r});return{msg:e,fee:a.signed.fee,memo:a.signed.memo,signatures:[a.signature]}}{const a=l.makeSignBytes(e,t,n,r,i,o);return{msg:e,fee:t,memo:r,signatures:[await this.signer(a)]}}}async upload(e,t={},n="",r=this.fees.upload){const c=t.source||"",l=function(e){if(void 0===e)return"";if(!s.isValidBuilder(e))throw new Error("The builder (Docker Hub image with tag) is not valid");return e}(t.builder),f=a.default.gzip(e,{level:9}),d={type:"wasm/MsgStoreCode",value:{sender:this.senderAddress,wasm_byte_code:o.Encoding.toBase64(f),source:c,builder:l}},{accountNumber:p,sequence:h}=await this.getNonce(),m=await this.getChainId(),b=await this.signAdapter([d],r,m,n,p,h),y=await this.postTx(b),g=u.findAttribute(y.logs,"message","code_id");return{originalSize:e.length,originalChecksum:o.Encoding.toHex(new i.Sha256(e).digest()),compressedSize:f.length,compressedChecksum:o.Encoding.toHex(new i.Sha256(f).digest()),codeId:Number.parseInt(g.value,10),logs:y.logs,transactionHash:y.transactionHash}}async instantiate(e,t,n,r="",i,a=this.fees.init,s){s?this.restClient.codeHashCache.set(e,s):s=await this.restClient.getCodeHashByCodeId(e);const c={type:"wasm/MsgInstantiateContract",value:{sender:this.senderAddress,code_id:e.toString(),label:n,callback_code_hash:"",init_msg:o.Encoding.toBase64(await this.restClient.enigmautils.encrypt(s,t)),init_funds:null!=i?i:[],callback_sig:null}},{accountNumber:l,sequence:f}=await this.getNonce(),d=await this.getChainId(),p=await this.signAdapter([c],a,d,r,l,f),h=o.Encoding.fromBase64(c.value.init_msg).slice(0,32);let m;try{m=await this.postTx(p)}catch(e){try{const t=/contract failed: encrypted: (.+?): failed to execute message; message index: 0/g.exec(e.message);if(null==t||2!=t.length)throw e;const n=t[1],r=o.Encoding.fromBase64(n),i=await this.restClient.enigmautils.decrypt(r,h);e.message=e.message.replace(n,o.Encoding.fromUtf8(i))}catch(t){throw new Error(`Failed to decrypt the following error message: ${e.message}. Decryption error of the error message: ${t.message}`)}throw e}const b=u.findAttribute(m.logs,"message","contract_address"),y=await this.restClient.decryptLogs(m.logs,[h]);return{contractAddress:b.value,logs:y,transactionHash:m.transactionHash,data:m.data}}async multiExecute(e,t="",n){var r;const i=[];for(const t of e){let{contractCodeHash:e}=t;e?this.restClient.codeHashCache.set(t.contractAddress,e):e=await this.restClient.getCodeHashByContractAddr(t.contractAddress);const n={type:"wasm/MsgExecuteContract",value:{sender:this.senderAddress,contract:t.contractAddress,callback_code_hash:"",msg:o.Encoding.toBase64(await this.restClient.enigmautils.encrypt(e,t.handleMsg)),sent_funds:(r=t.transferAmount,null!=r?r:[]),callback_sig:null}};i.push(n)}const{accountNumber:a,sequence:s}=await this.getNonce(),c=null!=n?n:{gas:String(Number(this.fees.exec.gas)*e.length),amount:this.fees.exec.amount},l=await this.getChainId(),u=await this.signAdapter(i,c,l,t,a,s);let f;try{f=await this.postTx(u)}catch(e){try{const t=/contract failed: encrypted: (.+?): failed to execute message; message index: (\d+)/g.exec(e.message);if(null==t||3!=t.length)throw e;const n=t[1],r=o.Encoding.fromBase64(n),a=Number(t[2]),s=o.Encoding.fromBase64(i[a].value.msg).slice(0,32),c=await this.restClient.enigmautils.decrypt(r,s);e.message=e.message.replace(n,o.Encoding.fromUtf8(c))}catch(t){throw new Error(`Failed to decrypt the following error message: ${e.message}. Decryption error of the error message: ${t.message}`)}throw e}const d=i.map(e=>o.Encoding.fromBase64(e.value.msg).slice(0,32)),p=await this.restClient.decryptDataField(f.data,d);return{logs:await this.restClient.decryptLogs(f.logs,d),transactionHash:f.transactionHash,data:p}}async execute(e,t,n="",r,i=this.fees.exec,a){a?this.restClient.codeHashCache.set(e,a):a=await this.restClient.getCodeHashByContractAddr(e);const s={type:"wasm/MsgExecuteContract",value:{sender:this.senderAddress,contract:e,callback_code_hash:"",msg:o.Encoding.toBase64(await this.restClient.enigmautils.encrypt(a,t)),sent_funds:null!=r?r:[],callback_sig:null}},{accountNumber:c,sequence:l}=await this.getNonce(),u=await this.getChainId(),f=await this.signAdapter([s],i,u,n,c,l),d=o.Encoding.fromBase64(s.value.msg).slice(0,32);let p;try{p=await this.postTx(f)}catch(e){try{const t=/contract failed: encrypted: (.+?): failed to execute message; message index: 0/g.exec(e.message);if(null==t||2!=t.length)throw e;const n=t[1],r=o.Encoding.fromBase64(n),i=await this.restClient.enigmautils.decrypt(r,d);e.message=e.message.replace(n,o.Encoding.fromUtf8(i))}catch(t){throw new Error(`Failed to decrypt the following error message: ${e.message}. Decryption error of the error message: ${t.message}`)}throw e}const h=await this.restClient.decryptDataField(p.data,[d]);return{logs:await this.restClient.decryptLogs(p.logs,[d]),transactionHash:p.transactionHash,data:h}}async sendTokens(e,t,n="",r=this.fees.send){const i={type:"cosmos-sdk/MsgSend",value:{from_address:this.senderAddress,to_address:e,amount:t}},{accountNumber:o,sequence:a}=await this.getNonce(),s=await this.getChainId(),c=await this.signAdapter([i],r,s,n,o,a);return this.postTx(c)}}t.SigningCosmWasmClient=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=new RegExp("^[a-z0-9][a-z0-9._-]*[a-z0-9](/[a-z0-9][a-z0-9._-]*[a-z0-9])+:[a-zA-Z0-9_][a-zA-Z0-9_.-]{0,127}$");t.isValidBuilder=function(e){return!(e.length>128)&&!!e.match(r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const r=n(205),i=n(378),o=n(804);t.init=function(e,t){e.registerMessage(r.GetPubkeyMsg),e.registerMessage(r.ReqeustEncryptMsg),e.registerMessage(r.RequestDecryptMsg),e.registerMessage(r.GetTxEncryptionKeyMsg),e.addHandler(i.ROUTE,o.getHandler(t))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const i=n(205);t.getHandler=e=>(t,n)=>{switch(n.constructor){case i.GetPubkeyMsg:return o(e)(t,n);case i.ReqeustEncryptMsg:return a(e)(t,n);case i.RequestDecryptMsg:return s(e)(t,n);case i.GetTxEncryptionKeyMsg:return c(e)(t,n);default:throw new Error("Unknown msg type")}};const o=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,n.chainId,n.origin),yield e.getPubkey(t,n.chainId)})),a=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,n.chainId,n.origin),yield e.encrypt(t,n.chainId,n.contractCodeHash,n.msg)})),s=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,n.chainId,n.origin),yield e.decrypt(t,n.chainId,n.cipherText,n.nonce)})),c=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,n.chainId,n.origin),yield e.getTxEncryptionKey(t,n.chainId,n.nonce)}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(379),t),i(n(806),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const r=n(206),i=n(380),o=n(807);t.init=function(e,t){e.registerMessage(r.SendTxMsg),e.addHandler(i.ROUTE,o.getHandler(t))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const i=n(206);t.getHandler=e=>(t,n)=>{switch(n.constructor){case i.SendTxMsg:return o(e)(t,n);default:throw new Error("Unknown msg type")}};const o=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,n.chainId,n.origin),yield e.sendTx(n.chainId,n.tx,n.mode)}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(335),t),i(n(809),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const r=n(178),i=n(337),o=n(810);t.init=function(e,t){e.registerMessage(r.TryUpdateChainMsg),e.addHandler(i.ROUTE,o.getHandler(t))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const i=n(178);t.getHandler=e=>(t,n)=>{switch(n.constructor){case i.TryUpdateChainMsg:return o(e)(t,n);default:throw new Error("Unknown msg type")}};const o=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){yield e.tryUpdateChain(n.chainId)}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(381),t),i(n(812),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const r=n(142),i=n(382),o=n(813);t.init=function(e,t){e.registerMessage(r.GetTokensMsg),e.registerMessage(r.SuggestTokenMsg),e.registerMessage(r.AddTokenMsg),e.registerMessage(r.RemoveTokenMsg),e.registerMessage(r.GetSecret20ViewingKey),e.addHandler(i.ROUTE,o.getHandler(t))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const i=n(142);t.getHandler=e=>(t,n)=>{switch(n.constructor){case i.GetTokensMsg:return o(e)(t,n);case i.SuggestTokenMsg:return a(e)(t,n);case i.AddTokenMsg:return s(e)(t,n);case i.RemoveTokenMsg:return c(e)(t,n);case i.GetSecret20ViewingKey:return l(e)(t,n);default:throw new Error("Unknown msg type")}};const o=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.getTokens(n.chainId)})),a=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){yield e.permissionService.checkOrGrantBasicAccessPermission(t,n.chainId,n.origin),yield e.suggestToken(t,n.chainId,n.contractAddress,n.viewingKey)})),s=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){yield e.addToken(n.chainId,n.currency)})),c=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){yield e.removeToken(n.chainId,n.currency)})),l=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.permissionService.checkOrGrantBasicAccessPermission(t,n.chainId,n.origin),yield e.getSecret20ViewingKey(n.chainId,n.contractAddress)}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(338),t),i(n(815),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const r=n(180),i=n(341),o=n(816);t.init=function(e,t){e.registerMessage(r.ApproveInteractionMsg),e.registerMessage(r.RejectInteractionMsg),e.addHandler(i.ROUTE,o.getHandler(t))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const r=n(180);t.getHandler=e=>(t,n)=>{switch(n.constructor){case r.ApproveInteractionMsg:return i(e)(t,n);case r.RejectInteractionMsg:return o(e)(t,n);default:throw new Error("Unknown msg type")}};const i=e=>(t,n)=>e.approve(n.id,n.result),o=e=>(t,n)=>e.reject(n.id)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(351),t),i(n(818),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.init=void 0;const r=n(192),i=n(354),o=n(819);t.init=function(e,t){e.registerMessage(r.EnableAccessMsg),e.registerMessage(r.GetPermissionOriginsMsg),e.registerMessage(r.RemovePermissionOrigin),e.addHandler(i.ROUTE,o.getHandler(t))}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getHandler=void 0;const i=n(192);t.getHandler=e=>(t,n)=>{switch(n.constructor){case i.EnableAccessMsg:return o(e)(t,n);case i.GetPermissionOriginsMsg:return a(e)(t,n);case i.RemovePermissionOrigin:return s(e)(t,n);default:throw new Error("Unknown msg type")}};const o=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){return yield e.checkOrGrantBasicAccessPermission(t,n.chainIds,n.origin)})),a=e=>(t,n)=>e.getPermissionOrigins(n.chainId,n.permissionType),s=e=>(t,n)=>r(void 0,void 0,void 0,(function*(){yield e.removePermission(n.chainId,n.permissionType,[n.permissionOrigin])}))},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(330),t),i(n(177),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(359),t),i(n(205),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(379),t),i(n(206),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(381),t),i(n(142),t),i(n(383),t)},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t){var n,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},function(e,t,n){var r=n(1036),i=n(1037);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},function(e,t,n){var r=n(37),i=n(1344);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n.apply(this,arguments)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(1474),o=(r=i)&&r.__esModule?r:{default:r};t.default=o.default,e.exports=t.default},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return f}));var r=n(16),i=n(35);const o=new i.a("rlp/5.0.6");function a(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function s(e,t,n){let r=0;for(let i=0;i<n;i++)r=256*r+e[t+i];return r}function c(e){return Object(r.g)(function e(t){if(Array.isArray(t)){let n=[];if(t.forEach((function(t){n=n.concat(e(t))})),n.length<=55)return n.unshift(192+n.length),n;const r=a(n.length);return r.unshift(247+r.length),r.concat(n)}Object(r.i)(t)||o.throwArgumentError("RLP object must be BytesLike","object",t);const n=Array.prototype.slice.call(Object(r.a)(t));if(1===n.length&&n[0]<=127)return n;if(n.length<=55)return n.unshift(128+n.length),n;const i=a(n.length);return i.unshift(183+i.length),i.concat(n)}(e))}function l(e,t,n,r){const a=[];for(;n<t+1+r;){const s=u(e,n);a.push(s.result),(n+=s.consumed)>t+1+r&&o.throwError("child data too short",i.a.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:a}}function u(e,t){if(0===e.length&&o.throwError("data too short",i.a.errors.BUFFER_OVERRUN,{}),e[t]>=248){const n=e[t]-247;t+1+n>e.length&&o.throwError("data short segment too short",i.a.errors.BUFFER_OVERRUN,{});const r=s(e,t+1,n);return t+1+n+r>e.length&&o.throwError("data long segment too short",i.a.errors.BUFFER_OVERRUN,{}),l(e,t,t+1+n,n+r)}if(e[t]>=192){const n=e[t]-192;return t+1+n>e.length&&o.throwError("data array too short",i.a.errors.BUFFER_OVERRUN,{}),l(e,t,t+1,n)}if(e[t]>=184){const n=e[t]-183;t+1+n>e.length&&o.throwError("data array too short",i.a.errors.BUFFER_OVERRUN,{});const a=s(e,t+1,n);t+1+n+a>e.length&&o.throwError("data array too short",i.a.errors.BUFFER_OVERRUN,{});return{consumed:1+n+a,result:Object(r.g)(e.slice(t+1+n,t+1+n+a))}}if(e[t]>=128){const n=e[t]-128;t+1+n>e.length&&o.throwError("data too short",i.a.errors.BUFFER_OVERRUN,{});return{consumed:1+n,result:Object(r.g)(e.slice(t+1,t+1+n))}}return{consumed:1,result:Object(r.g)(e[t])}}function f(e){const t=Object(r.a)(e),n=u(t,0);return n.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),n.result}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return f}));var r=n(17),i=n(36);const o=new i.a("rlp/5.0.6");function a(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function s(e,t,n){let r=0;for(let i=0;i<n;i++)r=256*r+e[t+i];return r}function c(e){return Object(r.g)(function e(t){if(Array.isArray(t)){let n=[];if(t.forEach((function(t){n=n.concat(e(t))})),n.length<=55)return n.unshift(192+n.length),n;const r=a(n.length);return r.unshift(247+r.length),r.concat(n)}Object(r.i)(t)||o.throwArgumentError("RLP object must be BytesLike","object",t);const n=Array.prototype.slice.call(Object(r.a)(t));if(1===n.length&&n[0]<=127)return n;if(n.length<=55)return n.unshift(128+n.length),n;const i=a(n.length);return i.unshift(183+i.length),i.concat(n)}(e))}function l(e,t,n,r){const a=[];for(;n<t+1+r;){const s=u(e,n);a.push(s.result),(n+=s.consumed)>t+1+r&&o.throwError("child data too short",i.a.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:a}}function u(e,t){if(0===e.length&&o.throwError("data too short",i.a.errors.BUFFER_OVERRUN,{}),e[t]>=248){const n=e[t]-247;t+1+n>e.length&&o.throwError("data short segment too short",i.a.errors.BUFFER_OVERRUN,{});const r=s(e,t+1,n);return t+1+n+r>e.length&&o.throwError("data long segment too short",i.a.errors.BUFFER_OVERRUN,{}),l(e,t,t+1+n,n+r)}if(e[t]>=192){const n=e[t]-192;return t+1+n>e.length&&o.throwError("data array too short",i.a.errors.BUFFER_OVERRUN,{}),l(e,t,t+1,n)}if(e[t]>=184){const n=e[t]-183;t+1+n>e.length&&o.throwError("data array too short",i.a.errors.BUFFER_OVERRUN,{});const a=s(e,t+1,n);t+1+n+a>e.length&&o.throwError("data array too short",i.a.errors.BUFFER_OVERRUN,{});return{consumed:1+n+a,result:Object(r.g)(e.slice(t+1+n,t+1+n+a))}}if(e[t]>=128){const n=e[t]-128;t+1+n>e.length&&o.throwError("data too short",i.a.errors.BUFFER_OVERRUN,{});return{consumed:1+n,result:Object(r.g)(e.slice(t+1,t+1+n))}}return{consumed:1,result:Object(r.g)(e[t])}}function f(e){const t=Object(r.a)(e),n=u(t,0);return n.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),n.result}},function(e,t,n){var r=n(37),i=n(1375);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},,,function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(870),t),i(n(952),t),i(n(1109),t),i(n(1110),t),i(n(900),t),i(n(1111),t),i(n(981),t),i(n(1264),t),i(n(1265),t)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.TxChainSetter=void 0;const i=n(5);class o{constructor(e,t){this.chainGetter=e,this._chainId=t,i.makeObservable(this)}get chainInfo(){return this.chainGetter.getChain(this.chainId)}get chainId(){return this._chainId}setChain(e){this._chainId=e}}r([i.observable],o.prototype,"_chainId",void 0),r([i.computed],o.prototype,"chainInfo",null),r([i.action],o.prototype,"setChain",null),t.TxChainSetter=o},function(e,t,n){"use strict";var r=n(929);o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(e){return!1}}();var i=o.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function o(e,t,n){return o.TYPED_ARRAY_SUPPORT||this instanceof o?"number"==typeof e?c(this,e):function(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer)return function(e,t,n,r){if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");var i;i=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);o.TYPED_ARRAY_SUPPORT?i.__proto__=o.prototype:i=l(e,i);return i}(e,t,n,r);if("string"==typeof t)return function(e,t){var n=0|f(t),r=s(e,n),i=r.write(t);i!==n&&(r=r.slice(0,i));return r}(e,t);return function(e,t){if(o.isBuffer(t)){var n=0|a(t.length),r=s(e,n);return 0===r.length||t.copy(r,0,0,n),r}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?s(e,0):l(e,t);if("Buffer"===t.type&&Array.isArray(t.data))return l(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}(this,e,t,n):new o(e,t,n)}function a(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function s(e,t){var n;return o.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t)).__proto__=o.prototype:(null===(n=e)&&(n=new o(t)),n.length=t),n}function c(e,t){var n=s(e,t<0?0:0|a(t));if(!o.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)n[r]=0;return n}function l(e,t){for(var n=t.length<0?0:0|a(t.length),r=s(e,n),i=0;i<n;i+=1)r[i]=255&t[i];return r}function u(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function f(e){return o.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:u(e).length)}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(e,t,n){void 0===t||void 0===n&&"string"==typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,n,r){return function(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}(u(t,e.length-n),e,n,r)}(this,e,t,n)},o.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),o.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=o.prototype;else{var i=t-e;n=new o(i,void 0);for(var a=0;a<i;++a)n[a]=this[a+e]}return n},o.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,a=r-n;if(this===e&&n<t&&t<r)for(i=a-1;i>=0;--i)e[i+t]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},o.prototype.fill=function(e,t,n){if("string"==typeof e){if("string"==typeof t?(t=0,n=this.length):"string"==typeof n&&(n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=o.isBuffer(e)?e:new o(e),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this},o.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s(null,0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c(null,t),a=0;for(n=0;n<e.length;++n){var l=e[n];if(!o.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(i,a),a+=l.length}return i},o.byteLength=f,o.prototype._isBuffer=!0,o.isBuffer=function(e){return!(null==e||!e._isBuffer)},e.exports.alloc=function(e){var t=new o(e);return t.fill(0),t},e.exports.from=function(e){return new o(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(0),i=n(863),o=n.n(i);n(30);o.a;const a=r.createContext(null),{Consumer:s,Provider:c}=a,l=c,u=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(864),a=n(10),s=n.n(a),c=n(1047),l=n.n(c);class u extends i.a.Component{constructor(){super(...arguments),this.state={show:!1},this.ref=i.a.createRef(),this.popper=null,this.tooltipRef=i.a.createRef(),this.componentRef=i.a.createRef(),this.hover=!1,this.bodyClicked=!1,this.handleClickOutside=e=>{"click"===this.props.trigger&&this.state.show&&this.ref&&this.ref.current&&!this.ref.current.contains(e.target)&&this.setState({show:!1})},this.toggle=()=>{this.setState({show:!this.state.show})},this.onClick=()=>{"click"===this.props.trigger&&(this.setState({show:!this.state.show}),this.bodyClicked&&(this.bodyClicked=!1))},this.onMouseEnter=()=>{"hover"===this.props.trigger&&(this.hover=!0,this.setState({show:!0}))},this.onMouseLeave=()=>{"hover"===this.props.trigger&&(this.hover=!1,setTimeout(()=>{this.hover||this.setState({show:!1})},150))}}componentDidMount(){const e=this.tooltipRef.current,t=this.componentRef.current;if(e&&t){let{options:n}=this.props;n||(n={}),n.modifiers||(n.modifiers={},n.modifiers.arrow={enabled:!0}),this.popper=new o.a(t,e,n)}document.addEventListener("click",this.handleClickOutside)}componentDidUpdate(){this.popper&&this.popper.update()}componentWillUnmount(){this.popper&&this.popper.destroy(),document.removeEventListener("click",this.handleClickOutside)}render(){const{theme:e,tooltip:t,trigger:n,children:r}=this.props,o="static"===this.props.trigger?this.props.show:this.state.show;return i.a.createElement("div",{ref:this.ref,className:s()({[l.a.bright]:"bright"===e,show:o}),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onClick:this.onClick},"click"===n&&o&&i.a.createElement("div",{style:{position:"fixed",width:"100%",height:"100%",top:0,left:0}}),i.a.createElement("div",{ref:this.tooltipRef,className:"popper",style:{visibility:o?"visible":"hidden",opacity:o?1:0}},i.a.createElement("div",{"x-arrow":""}),t),i.a.createElement("div",{ref:this.componentRef},r))}}u.defaultProps={theme:"dark"}},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(11);const i=[{rpc:"https://rpc-cosmoshub.keplr.app",rpcConfig:void 0,rest:"https://lcd-cosmoshub.keplr.app",restConfig:void 0,chainId:"cosmoshub-4",chainName:"Cosmos",stakeCurrency:{coinDenom:"ATOM",coinMinimalDenom:"uatom",coinDecimals:6,coinGeckoId:"cosmos"},walletUrl:"https://wallet.keplr.app/#/cosmoshub/stake",walletUrlForStaking:"https://wallet.keplr.app/#/cosmoshub/stake",bip44:{coinType:118},bech32Config:r.Bech32Address.defaultBech32Config("cosmos"),currencies:[{coinDenom:"ATOM",coinMinimalDenom:"uatom",coinDecimals:6,coinGeckoId:"cosmos"}],feeCurrencies:[{coinDenom:"ATOM",coinMinimalDenom:"uatom",coinDecimals:6,coinGeckoId:"cosmos"}],coinType:118,features:["stargate","ibc-transfer"]},{rpc:"https://rpc-osmosis.keplr.app",rpcConfig:void 0,rest:"https://lcd-osmosis.keplr.app",restConfig:void 0,chainId:"osmosis-1",chainName:"Osmosis",stakeCurrency:{coinDenom:"OSMO",coinMinimalDenom:"uosmo",coinDecimals:6,coinGeckoId:"osmosis"},walletUrl:"https://app.osmosis.zone",walletUrlForStaking:"https://wallet.keplr.app/#/osmosis/stake",bip44:{coinType:118},bech32Config:r.Bech32Address.defaultBech32Config("osmo"),currencies:[{coinDenom:"OSMO",coinMinimalDenom:"uosmo",coinDecimals:6,coinGeckoId:"osmosis"},{coinDenom:"ION",coinMinimalDenom:"uion",coinDecimals:6,coinGeckoId:"ion"}],feeCurrencies:[{coinDenom:"OSMO",coinMinimalDenom:"uosmo",coinDecimals:6,coinGeckoId:"osmosis"}],gasPriceStep:{low:0,average:.025,high:.035},features:["stargate","ibc-transfer"]},{rpc:"https://rpc-secret.keplr.app",rpcConfig:void 0,rest:"https://lcd-secret.keplr.app",restConfig:void 0,chainId:"secret-2",chainName:"Secret Network",stakeCurrency:{coinDenom:"SCRT",coinMinimalDenom:"uscrt",coinDecimals:6,coinGeckoId:"secret"},walletUrl:"https://wallet.keplr.app/#/secret/stake",walletUrlForStaking:"https://wallet.keplr.app/#/secret/stake",bip44:{coinType:529},alternativeBIP44s:[{coinType:118}],bech32Config:r.Bech32Address.defaultBech32Config("secret"),currencies:[{coinDenom:"SCRT",coinMinimalDenom:"uscrt",coinDecimals:6,coinGeckoId:"secret"}],feeCurrencies:[{coinDenom:"SCRT",coinMinimalDenom:"uscrt",coinDecimals:6,coinGeckoId:"secret"}],coinType:529,gasPriceStep:{low:.1,average:.25,high:.3},features:["secretwasm"]},{rpc:"https://rpc-akash.keplr.app",rpcConfig:void 0,rest:"https://lcd-akash.keplr.app",restConfig:void 0,chainId:"akashnet-2",chainName:"Akash",stakeCurrency:{coinDenom:"AKT",coinMinimalDenom:"uakt",coinDecimals:6,coinGeckoId:"akash-network"},walletUrl:"https://wallet.keplr.app/#/akashnet/stake",walletUrlForStaking:"https://wallet.keplr.app/#/akashnet/stake",bip44:{coinType:118},bech32Config:r.Bech32Address.defaultBech32Config("akash"),currencies:[{coinDenom:"AKT",coinMinimalDenom:"uakt",coinDecimals:6,coinGeckoId:"akash-network"}],feeCurrencies:[{coinDenom:"AKT",coinMinimalDenom:"uakt",coinDecimals:6,coinGeckoId:"akash-network"}],features:["stargate","ibc-transfer"]},{rpc:"https://rpc-crypto-org.keplr.app",rpcConfig:void 0,rest:"https://lcd-crypto-org.keplr.app",restConfig:void 0,chainId:"crypto-org-chain-mainnet-1",chainName:"Crypto.org",stakeCurrency:{coinDenom:"CRO",coinMinimalDenom:"basecro",coinDecimals:8,coinGeckoId:"crypto-com-chain"},walletUrl:"https://wallet.keplr.app/#/crypto-org/stake",walletUrlForStaking:"https://wallet.keplr.app/#/crypto-org/stake",bip44:{coinType:394},bech32Config:r.Bech32Address.defaultBech32Config("cro"),currencies:[{coinDenom:"CRO",coinMinimalDenom:"basecro",coinDecimals:8,coinGeckoId:"crypto-com-chain"}],feeCurrencies:[{coinDenom:"CRO",coinMinimalDenom:"basecro",coinDecimals:8,coinGeckoId:"crypto-com-chain"}],gasPriceStep:{low:.025,average:.03,high:.04},features:["stargate","ibc-transfer"]},{rpc:"https://rpc-iov.keplr.app",rpcConfig:void 0,rest:"https://lcd-iov.keplr.app",restConfig:void 0,chainId:"iov-mainnet-ibc",chainName:"Starname",stakeCurrency:{coinDenom:"IOV",coinMinimalDenom:"uiov",coinDecimals:6,coinGeckoId:"starname"},walletUrl:"https://wallet.keplr.app/#/iov-mainnet/stake",walletUrlForStaking:"https://wallet.keplr.app/#/iov-mainnet/stake",bip44:{coinType:234},bech32Config:r.Bech32Address.defaultBech32Config("star"),currencies:[{coinDenom:"IOV",coinMinimalDenom:"uiov",coinDecimals:6,coinGeckoId:"starname"}],feeCurrencies:[{coinDenom:"IOV",coinMinimalDenom:"uiov",coinDecimals:6,coinGeckoId:"starname"}],gasPriceStep:{low:1,average:2,high:3},features:["stargate","ibc-transfer"]},{rpc:"https://rpc-sifchain.keplr.app",rpcConfig:void 0,rest:"https://lcd-sifchain.keplr.app",restConfig:void 0,chainId:"sifchain-1",chainName:"Sifchain",stakeCurrency:{coinDenom:"ROWAN",coinMinimalDenom:"rowan",coinDecimals:18,coinGeckoId:"sifchain"},walletUrl:"https://wallet.keplr.app/#/sifchain/stake",walletUrlForStaking:"https://wallet.keplr.app/#/sifchain/stake",bip44:{coinType:118},bech32Config:r.Bech32Address.defaultBech32Config("sif"),currencies:[{coinDenom:"ROWAN",coinMinimalDenom:"rowan",coinDecimals:18,coinGeckoId:"sifchain"},{coinDenom:"Tether USDT",coinMinimalDenom:"cusdt",coinDecimals:6},{coinDenom:"Ethereum",coinMinimalDenom:"ceth",coinDecimals:18},{coinDenom:"Basic Attention Token",coinMinimalDenom:"cbat",coinDecimals:18},{coinDenom:"Aragon",coinMinimalDenom:"cant",coinDecimals:18},{coinDenom:"Bancor Network Token",coinMinimalDenom:"cbnt",coinDecimals:18},{coinDenom:"0x",coinMinimalDenom:"czrx",coinDecimals:18},{coinDenom:"Chainlink",coinMinimalDenom:"clink",coinDecimals:18},{coinDenom:"Decentraland",coinMinimalDenom:"cmana",coinDecimals:18},{coinDenom:"Loopring",coinMinimalDenom:"clrc",coinDecimals:18},{coinDenom:"Enjin Coin",coinMinimalDenom:"cenj",coinDecimals:18},{coinDenom:"Synthetix Network Token",coinMinimalDenom:"csnx",coinDecimals:18},{coinDenom:"TrueUSD",coinMinimalDenom:"ctusd",coinDecimals:18},{coinDenom:"Ocean Protocol",coinMinimalDenom:"cocean",coinDecimals:18},{coinDenom:"Fantom",coinMinimalDenom:"cftm",coinDecimals:18},{coinDenom:"sUSD",coinMinimalDenom:"csusd",coinDecimals:18},{coinDenom:"USD Coin",coinMinimalDenom:"cusdc",coinDecimals:6},{coinDenom:"Crypto com Coin",coinMinimalDenom:"ccro",coinDecimals:8},{coinDenom:"Wrapped Bitcoin",coinMinimalDenom:"cwbtc",coinDecimals:8},{coinDenom:"Swipe",coinMinimalDenom:"csxp",coinDecimals:18},{coinDenom:"Band Protocol",coinMinimalDenom:"cband",coinDecimals:18},{coinDenom:"Dai Stablecoin",coinMinimalDenom:"cdai",coinDecimals:18},{coinDenom:"Compound",coinMinimalDenom:"ccomp",coinDecimals:18},{coinDenom:"UMA",coinMinimalDenom:"cuma",coinDecimals:18},{coinDenom:"Balancer",coinMinimalDenom:"cbal",coinDecimals:18},{coinDenom:"Yearn finance",coinMinimalDenom:"cyfi",coinDecimals:18},{coinDenom:"Serum",coinMinimalDenom:"csrm",coinDecimals:6},{coinDenom:"Cream",coinMinimalDenom:"ccream",coinDecimals:18},{coinDenom:"SAND",coinMinimalDenom:"csand",coinDecimals:18},{coinDenom:"Sushi",coinMinimalDenom:"csushi",coinDecimals:18},{coinDenom:"Empty Set Dollar",coinMinimalDenom:"cesd",coinDecimals:18},{coinDenom:"Uniswap",coinMinimalDenom:"cuni",coinDecimals:18},{coinDenom:"Aave",coinMinimalDenom:"caave",coinDecimals:18},{coinDenom:"BarnBridge",coinMinimalDenom:"cbond",coinDecimals:18},{coinDenom:"Wrapped Filecoin",coinMinimalDenom:"cwfil",coinDecimals:18},{coinDenom:"The Graph",coinMinimalDenom:"cgrt",coinDecimals:18},{coinDenom:"Tokenlon",coinMinimalDenom:"clon",coinDecimals:18},{coinDenom:"1inch",coinMinimalDenom:"c1inch",coinDecimals:18},{coinDenom:"THORChain ERC20",coinMinimalDenom:"crune",coinDecimals:18},{coinDenom:"Secret ERC20",coinMinimalDenom:"cwscrt",coinDecimals:6},{coinDenom:"IoTeX",coinMinimalDenom:"ciotx",coinDecimals:18},{coinDenom:"Reef Finance",coinMinimalDenom:"creef",coinDecimals:18},{coinDenom:"COCOS BCX",coinMinimalDenom:"ccocos",coinDecimals:18},{coinDenom:"Keep Network",coinMinimalDenom:"ckeep",coinDecimals:18},{coinDenom:"Origin Protocol",coinMinimalDenom:"cogn",coinDecimals:18},{coinDenom:"ODAOfi",coinMinimalDenom:"cdaofi",coinDecimals:18},{coinDenom:"Linear",coinMinimalDenom:"clina",coinDecimals:18},{coinDenom:"12Ships",coinMinimalDenom:"ctshp",coinDecimals:18},{coinDenom:"B.20",coinMinimalDenom:"cb20",coinDecimals:18},{coinDenom:"Akropolis",coinMinimalDenom:"cakro",coinDecimals:18},{coinDenom:"Rio Fuel Token",coinMinimalDenom:"crfuel",coinDecimals:18},{coinDenom:"Rally",coinMinimalDenom:"crly",coinDecimals:18},{coinDenom:"Convergence",coinMinimalDenom:"cconv",coinDecimals:18},{coinDenom:"Render Token",coinMinimalDenom:"crndr",coinDecimals:18},{coinDenom:"PAID Network",coinMinimalDenom:"cpaid",coinDecimals:18},{coinDenom:"Tidal",coinMinimalDenom:"ctidal",coinDecimals:18}],feeCurrencies:[{coinDenom:"ROWAN",coinMinimalDenom:"rowan",coinDecimals:18,coinGeckoId:"sifchain"}],gasPriceStep:{low:5e11,average:1e12,high:2e12},features:["stargate"]},{rpc:"https://rpc-certik.keplr.app",rpcConfig:void 0,rest:"https://lcd-certik.keplr.app",restConfig:void 0,chainId:"shentu-1",chainName:"Certik",stakeCurrency:{coinDenom:"CTK",coinMinimalDenom:"uctk",coinDecimals:6,coinGeckoId:"certik"},walletUrl:"https://wallet.keplr.app/#/shentu/stake",walletUrlForStaking:"https://wallet.keplr.app/#/shentu/stake",bip44:{coinType:118},bech32Config:r.Bech32Address.defaultBech32Config("certik"),currencies:[{coinDenom:"CTK",coinMinimalDenom:"uctk",coinDecimals:6,coinGeckoId:"certik"}],feeCurrencies:[{coinDenom:"CTK",coinMinimalDenom:"uctk",coinDecimals:6,coinGeckoId:"certik"}]},{rpc:"https://rpc-iris.keplr.app",rpcConfig:void 0,rest:"https://lcd-iris.keplr.app",restConfig:void 0,chainId:"irishub-1",chainName:"IRISnet",stakeCurrency:{coinDenom:"IRIS",coinMinimalDenom:"uiris",coinDecimals:6,coinGeckoId:"iris-network"},walletUrl:"https://wallet.keplr.app/#/irishub/stake",walletUrlForStaking:"https://wallet.keplr.app/#/irishub/stake",bip44:{coinType:118},alternativeBIP44s:[{coinType:566}],bech32Config:r.Bech32Address.defaultBech32Config("iaa"),currencies:[{coinDenom:"IRIS",coinMinimalDenom:"uiris",coinDecimals:6,coinGeckoId:"iris-network"}],feeCurrencies:[{coinDenom:"IRIS",coinMinimalDenom:"uiris",coinDecimals:6,coinGeckoId:"iris-network"}],gasPriceStep:{low:.2,average:.3,high:.4},features:["stargate","ibc-transfer"]},{rpc:"https://rpc-regen.keplr.app",rpcConfig:void 0,rest:"https://lcd-regen.keplr.app",restConfig:void 0,chainId:"regen-1",chainName:"Regen",stakeCurrency:{coinDenom:"REGEN",coinMinimalDenom:"uregen",coinDecimals:6},walletUrl:"https://wallet.keplr.app/#/regen/stake",walletUrlForStaking:"https://wallet.keplr.app/#/regen/stake",bip44:{coinType:118},bech32Config:r.Bech32Address.defaultBech32Config("regen"),currencies:[{coinDenom:"REGEN",coinMinimalDenom:"uregen",coinDecimals:6}],feeCurrencies:[{coinDenom:"REGEN",coinMinimalDenom:"uregen",coinDecimals:6}],gasPriceStep:{low:0,average:.025,high:.04},features:["stargate"]},{rpc:"https://rpc-persistence.keplr.app",rpcConfig:void 0,rest:"https://lcd-persistence.keplr.app",restConfig:void 0,chainId:"core-1",chainName:"Persistence",stakeCurrency:{coinDenom:"XPRT",coinMinimalDenom:"uxprt",coinDecimals:6,coinGeckoId:"persistence"},walletUrl:"https://wallet.keplr.app/#/core/stake",walletUrlForStaking:"https://wallet.keplr.app/#/core/stake",bip44:{coinType:750},bech32Config:r.Bech32Address.defaultBech32Config("persistence"),currencies:[{coinDenom:"XPRT",coinMinimalDenom:"uxprt",coinDecimals:6,coinGeckoId:"persistence"}],feeCurrencies:[{coinDenom:"XPRT",coinMinimalDenom:"uxprt",coinDecimals:6,coinGeckoId:"persistence"}],features:["stargate","ibc-transfer"]},{rpc:"https://rpc-sentinel.keplr.app",rpcConfig:void 0,rest:"https://lcd-sentinel.keplr.app",restConfig:void 0,chainId:"sentinelhub-2",chainName:"Sentinel",stakeCurrency:{coinDenom:"DVPN",coinMinimalDenom:"udvpn",coinDecimals:6,coinGeckoId:"sentinel"},walletUrl:"https://wallet.keplr.app/#/sentinel/stake",walletUrlForStaking:"https://wallet.keplr.app/#/sentinel/stake",bip44:{coinType:118},bech32Config:r.Bech32Address.defaultBech32Config("sent"),currencies:[{coinDenom:"DVPN",coinMinimalDenom:"udvpn",coinDecimals:6,coinGeckoId:"sentinel"}],feeCurrencies:[{coinDenom:"DVPN",coinMinimalDenom:"udvpn",coinDecimals:6,coinGeckoId:"sentinel"}],gasPriceStep:{low:.1,average:.25,high:.4},features:["stargate","ibc-transfer"]},{rpc:"https://rpc-kava.keplr.app",rpcConfig:void 0,rest:"https://lcd-kava.keplr.app",restConfig:void 0,chainId:"kava-7",chainName:"Kava",stakeCurrency:{coinDenom:"KAVA",coinMinimalDenom:"ukava",coinDecimals:6,coinGeckoId:"kava"},walletUrl:"https://wallet.keplr.app/#/kava/stake",walletUrlForStaking:"https://wallet.keplr.app/#/kava/stake",bip44:{coinType:459},alternativeBIP44s:[{coinType:118}],bech32Config:r.Bech32Address.defaultBech32Config("kava"),currencies:[{coinDenom:"KAVA",coinMinimalDenom:"ukava",coinDecimals:6,coinGeckoId:"kava"}],feeCurrencies:[{coinDenom:"KAVA",coinMinimalDenom:"ukava",coinDecimals:6,coinGeckoId:"kava"}],coinType:459},{rpc:"https://rpc-cyber.keplr.app",rpcConfig:void 0,rest:"https://lcd-cyber.keplr.app",restConfig:void 0,chainId:"euler-6",chainName:"Cyber",stakeCurrency:{coinDenom:"EUL",coinMinimalDenom:"eul",coinDecimals:0},walletUrl:"https://wallet.keplr.app/#/euler/stake",walletUrlForStaking:"https://wallet.keplr.app/#/euler/stake",bip44:{coinType:118},bech32Config:r.Bech32Address.defaultBech32Config("cyber"),currencies:[{coinDenom:"EUL",coinMinimalDenom:"eul",coinDecimals:0}],feeCurrencies:[],beta:!0},{rpc:"https://rpc-straightedge.keplr.app",rpcConfig:void 0,rest:"https://lcd-straightedge.keplr.app",restConfig:void 0,chainId:"straightedge-2",chainName:"Straightedge",stakeCurrency:{coinDenom:"STR",coinMinimalDenom:"astr",coinDecimals:18},walletUrl:"https://wallet.keplr.app/#/straightedge/stake",walletUrlForStaking:"https://wallet.keplr.app/#/straightedge/stake",bip44:{coinType:118},bech32Config:r.Bech32Address.defaultBech32Config("str"),currencies:[{coinDenom:"STR",coinMinimalDenom:"astr",coinDecimals:18}],feeCurrencies:[{coinDenom:"STR",coinMinimalDenom:"astr",coinDecimals:18}],coinType:551,gasPriceStep:{low:.01*Math.pow(10,12),average:.025*Math.pow(10,12),high:.04*Math.pow(10,12)},beta:!0}],o=["https://wallet.keplr.app"]},function(e,t,n){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),i=n.length;if(r.length!==i)return!1;for(var o=0;o<i;o++){var a=n[o];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},function(e,t,n){"use strict";n.d(t,"b",(function(){return O}));var r=n(19),i=n(29),o=n(53),a=n(0),s=n.n(a),c=n(1),l=n.n(c),u=n(26),f=n(226),d=n(414),p=n.n(d),h=n(10),m=n.n(h),b=n(1551),y=n(8),g=n(151);function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){Object(f.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _={children:l.a.oneOfType([l.a.node,l.a.func]).isRequired,popperClassName:l.a.string,placement:l.a.string,placementPrefix:l.a.string,arrowClassName:l.a.string,hideArrow:l.a.bool,tag:y.p,isOpen:l.a.bool.isRequired,cssModule:l.a.object,offset:l.a.oneOfType([l.a.string,l.a.number]),fallbackPlacement:l.a.oneOfType([l.a.string,l.a.array]),flip:l.a.bool,container:y.q,target:y.q.isRequired,modifiers:l.a.object,positionFixed:l.a.bool,boundariesElement:l.a.oneOfType([l.a.string,y.a]),onClosed:l.a.func,fade:l.a.bool,transition:l.a.shape(g.a.propTypes)},k={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:0,fallbackPlacement:"flip",flip:!0,container:"body",modifiers:{},onClosed:function(){},fade:!0,transition:w({},g.a.defaultProps)},x=function(e){function t(t){var n;return(n=e.call(this,t)||this).setTargetNode=n.setTargetNode.bind(Object(i.a)(n)),n.getTargetNode=n.getTargetNode.bind(Object(i.a)(n)),n.getRef=n.getRef.bind(Object(i.a)(n)),n.onClosed=n.onClosed.bind(Object(i.a)(n)),n.state={isOpen:t.isOpen},n}Object(o.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.isOpen&&!t.isOpen?{isOpen:e.isOpen}:null};var n=t.prototype;return n.componentDidUpdate=function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()},n.setTargetNode=function(e){this.targetNode="string"==typeof e?Object(y.i)(e):e},n.getTargetNode=function(){return this.targetNode},n.getContainerNode=function(){return Object(y.i)(this.props.container)},n.getRef=function(e){this._element=e},n.onClosed=function(){this.props.onClosed(),this.setState({isOpen:!1})},n.renderChildren=function(){var e=this.props,t=e.cssModule,n=e.children,i=e.isOpen,o=e.flip,a=(e.target,e.offset),c=e.fallbackPlacement,l=e.placementPrefix,f=e.arrowClassName,d=e.hideArrow,p=e.popperClassName,h=e.tag,v=(e.container,e.modifiers),_=e.positionFixed,k=e.boundariesElement,x=(e.onClosed,e.fade),S=e.transition,O=e.placement,E=Object(u.a)(e,["cssModule","children","isOpen","flip","target","offset","fallbackPlacement","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","positionFixed","boundariesElement","onClosed","fade","transition","placement"]),T=Object(y.l)(m()("arrow",f),t),A=Object(y.l)(m()(p,l?l+"-auto":""),this.props.cssModule),M=w({offset:{offset:a},flip:{enabled:o,behavior:c},preventOverflow:{boundariesElement:k}},v),I=w(w(w({},g.a.defaultProps),S),{},{baseClass:x?S.baseClass:"",timeout:x?S.timeout:0});return s.a.createElement(g.a,Object(r.a)({},I,E,{in:i,onExited:this.onClosed,tag:h}),s.a.createElement(b.a,{referenceElement:this.targetNode,modifiers:M,placement:O,positionFixed:_},(function(e){var t=e.ref,r=e.style,i=e.placement,o=e.outOfBoundaries,a=e.arrowProps,c=e.scheduleUpdate;return s.a.createElement("div",{ref:t,style:r,className:A,"x-placement":i,"x-out-of-boundaries":o?"true":void 0},"function"==typeof n?n({scheduleUpdate:c}):n,!d&&s.a.createElement("span",{ref:a.ref,className:T,style:a.style}))})))},n.render=function(){return this.setTargetNode(this.props.target),this.state.isOpen?"inline"===this.props.container?this.renderChildren():p.a.createPortal(s.a.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null},t}(s.a.Component);x.propTypes=_,x.defaultProps=k;var S=x,O={children:l.a.oneOfType([l.a.node,l.a.func]),placement:l.a.oneOf(y.b),target:y.q.isRequired,container:y.q,isOpen:l.a.bool,disabled:l.a.bool,hideArrow:l.a.bool,boundariesElement:l.a.oneOfType([l.a.string,y.a]),className:l.a.string,innerClassName:l.a.string,arrowClassName:l.a.string,popperClassName:l.a.string,cssModule:l.a.object,toggle:l.a.func,autohide:l.a.bool,placementPrefix:l.a.string,delay:l.a.oneOfType([l.a.shape({show:l.a.number,hide:l.a.number}),l.a.number]),modifiers:l.a.object,positionFixed:l.a.bool,offset:l.a.oneOfType([l.a.string,l.a.number]),innerRef:l.a.oneOfType([l.a.func,l.a.string,l.a.object]),trigger:l.a.string,fade:l.a.bool,flip:l.a.bool},E={show:0,hide:50},T={isOpen:!1,hideArrow:!1,autohide:!1,delay:E,toggle:function(){},trigger:"click",fade:!0};function A(e,t){return t&&(e===t||t.contains(e))}function M(e,t){return void 0===t&&(t=[]),t&&t.length&&t.filter((function(t){return A(e,t)}))[0]}var I=function(e){function t(t){var n;return(n=e.call(this,t)||this)._targets=[],n.currentTargetElement=null,n.addTargetEvents=n.addTargetEvents.bind(Object(i.a)(n)),n.handleDocumentClick=n.handleDocumentClick.bind(Object(i.a)(n)),n.removeTargetEvents=n.removeTargetEvents.bind(Object(i.a)(n)),n.toggle=n.toggle.bind(Object(i.a)(n)),n.showWithDelay=n.showWithDelay.bind(Object(i.a)(n)),n.hideWithDelay=n.hideWithDelay.bind(Object(i.a)(n)),n.onMouseOverTooltipContent=n.onMouseOverTooltipContent.bind(Object(i.a)(n)),n.onMouseLeaveTooltipContent=n.onMouseLeaveTooltipContent.bind(Object(i.a)(n)),n.show=n.show.bind(Object(i.a)(n)),n.hide=n.hide.bind(Object(i.a)(n)),n.onEscKeyDown=n.onEscKeyDown.bind(Object(i.a)(n)),n.getRef=n.getRef.bind(Object(i.a)(n)),n.state={isOpen:t.isOpen},n._isMounted=!1,n}Object(o.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.updateTarget()},n.componentWillUnmount=function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()},t.getDerivedStateFromProps=function(e,t){return e.isOpen&&!t.isOpen?{isOpen:e.isOpen}:null},n.onMouseOverTooltipContent=function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())},n.onMouseLeaveTooltipContent=function(e){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),e.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide")))},n.onEscKeyDown=function(e){"Escape"===e.key&&this.hide(e)},n.getRef=function(e){var t=this.props.innerRef;t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),this._popover=e},n.getDelay=function(e){var t=this.props.delay;return"object"==typeof t?isNaN(t[e])?E[e]:t[e]:t},n.getCurrentTarget=function(e){if(!e)return null;var t=this._targets.indexOf(e);return t>=0?this._targets[t]:this.getCurrentTarget(e.parentElement)},n.show=function(e){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=e?e.currentTarget||this.getCurrentTarget(e.target):null,e&&e.composedPath&&"function"==typeof e.composedPath){var t=e.composedPath();this.currentTargetElement=t&&t[0]||this.currentTargetElement}this.toggle(e)}},n.showWithDelay=function(e){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,e),this.getDelay("show"))},n.hide=function(e){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(e))},n.hideWithDelay=function(e){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,e),this.getDelay("hide"))},n.clearShowTimeout=function(){clearTimeout(this._showTimeout),this._showTimeout=void 0},n.clearHideTimeout=function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0},n.handleDocumentClick=function(e){var t=this.props.trigger.split(" ");t.indexOf("legacy")>-1&&(this.props.isOpen||M(e.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!A(e.target,this._popover)?this.hideWithDelay(e):this.props.isOpen||this.showWithDelay(e)):t.indexOf("click")>-1&&M(e.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(e):this.showWithDelay(e))},n.addEventOnTargets=function(e,t,n){this._targets.forEach((function(r){r.addEventListener(e,t,n)}))},n.removeEventOnTargets=function(e,t,n){this._targets.forEach((function(r){r.removeEventListener(e,t,n)}))},n.addTargetEvents=function(){if(this.props.trigger){var e=this.props.trigger.split(" ");-1===e.indexOf("manual")&&((e.indexOf("click")>-1||e.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(e.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),e.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}},n.removeTargetEvents=function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)},n.updateTarget=function(){var e=Object(y.i)(this.props.target,!0);e!==this._targets&&(this.removeTargetEvents(),this._targets=e?Array.from(e):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())},n.toggle=function(e){return this.props.disabled||!this._isMounted?e&&e.preventDefault():this.props.toggle(e)},n.render=function(){var e=this;this.props.isOpen&&this.updateTarget();var t=this.props,n=t.className,i=t.cssModule,o=t.innerClassName,a=t.isOpen,c=t.hideArrow,l=t.boundariesElement,u=t.placement,f=t.placementPrefix,d=t.arrowClassName,p=t.popperClassName,h=t.container,m=t.modifiers,b=t.positionFixed,g=t.offset,v=t.fade,w=t.flip,_=t.children,k=Object(y.m)(this.props,Object.keys(O)),x=Object(y.l)(p,i),E=Object(y.l)(o,i);return s.a.createElement(S,{className:n,target:this.currentTargetElement||this._targets[0],isOpen:a,hideArrow:c,boundariesElement:l,placement:u,placementPrefix:f,arrowClassName:d,popperClassName:x,container:h,modifiers:m,positionFixed:b,offset:g,cssModule:i,fade:v,flip:w},(function(t){var n=t.scheduleUpdate;return s.a.createElement("div",Object(r.a)({},k,{ref:e.getRef,className:E,role:"tooltip",onMouseOver:e.onMouseOverTooltipContent,onMouseLeave:e.onMouseLeaveTooltipContent,onKeyDown:e.onEscKeyDown}),"function"==typeof _?_({scheduleUpdate:n}):_)}))},t}(s.a.Component);I.propTypes=O,I.defaultProps=T;t.a=I},function(e,t,n){var r=n(37),i=n(1356);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1376);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1468);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1473);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1507);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1511);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return y}));var r=n(6),i=n.n(r),o=n(16),a=n(35);var s=i.a.BN;const c=new a.a("bignumber/5.0.12"),l={};let u=!1;class f{constructor(e,t){c.checkNew(new.target,f),e!==l&&c.throwError("cannot call constructor directly; use BigNumber.from",a.a.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return p(h(this).fromTwos(e))}toTwos(e){return p(h(this).toTwos(e))}abs(){return"-"===this._hex[0]?f.from(this._hex.substring(1)):this}add(e){return p(h(this).add(h(e)))}sub(e){return p(h(this).sub(h(e)))}div(e){return f.from(e).isZero()&&m("division by zero","div"),p(h(this).div(h(e)))}mul(e){return p(h(this).mul(h(e)))}mod(e){const t=h(e);return t.isNeg()&&m("cannot modulo negative values","mod"),p(h(this).umod(t))}pow(e){const t=h(e);return t.isNeg()&&m("cannot raise to negative values","pow"),p(h(this).pow(t))}and(e){const t=h(e);return(this.isNegative()||t.isNeg())&&m("cannot 'and' negative values","and"),p(h(this).and(t))}or(e){const t=h(e);return(this.isNegative()||t.isNeg())&&m("cannot 'or' negative values","or"),p(h(this).or(t))}xor(e){const t=h(e);return(this.isNegative()||t.isNeg())&&m("cannot 'xor' negative values","xor"),p(h(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&m("cannot mask negative values","mask"),p(h(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&m("cannot shift negative values","shl"),p(h(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&m("cannot shift negative values","shr"),p(h(this).shrn(e))}eq(e){return h(this).eq(h(e))}lt(e){return h(this).lt(h(e))}lte(e){return h(this).lte(h(e))}gt(e){return h(this).gt(h(e))}gte(e){return h(this).gte(h(e))}isNegative(){return"-"===this._hex[0]}isZero(){return h(this).isZero()}toNumber(){try{return h(this).toNumber()}catch(e){m("overflow","toNumber",this.toString())}return null}toString(){return arguments.length>0&&(10===arguments[0]?u||(u=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?c.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",a.a.errors.UNEXPECTED_ARGUMENT,{}):c.throwError("BigNumber.toString does not accept parameters",a.a.errors.UNEXPECTED_ARGUMENT,{})),h(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof f)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new f(l,d(e)):e.match(/^-?[0-9]+$/)?new f(l,d(new s(e))):c.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&m("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&m("overflow","BigNumber.from",e),f.from(String(e));const t=e;if("bigint"==typeof t)return f.from(t.toString());if(Object(o.h)(t))return f.from(Object(o.g)(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return f.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(Object(o.j)(e)||"-"===e[0]&&Object(o.j)(e.substring(1))))return f.from(e)}return c.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function d(e){if("string"!=typeof e)return d(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&c.throwArgumentError("invalid hex","value",e),"0x00"===(e=d(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function p(e){return f.from(d(e))}function h(e){const t=f.from(e).toHexString();return"-"===t[0]?new s("-"+t.substring(3),16):new s(t.substring(2),16)}function m(e,t,n){const r={fault:e,operation:t};return null!=n&&(r.value=n),c.throwError(e,a.a.errors.NUMERIC_FAULT,r)}function b(e){return new s(e,36).toString(16)}function y(e){return new s(e,16).toString(36)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return b})),n.d(t,"b",(function(){return y}));var r=n(27),i=n.n(r),o=n(17),a=n(36);var s=i.a.BN;const c=new a.a("bignumber/5.0.12"),l={};let u=!1;class f{constructor(e,t){c.checkNew(new.target,f),e!==l&&c.throwError("cannot call constructor directly; use BigNumber.from",a.a.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return p(h(this).fromTwos(e))}toTwos(e){return p(h(this).toTwos(e))}abs(){return"-"===this._hex[0]?f.from(this._hex.substring(1)):this}add(e){return p(h(this).add(h(e)))}sub(e){return p(h(this).sub(h(e)))}div(e){return f.from(e).isZero()&&m("division by zero","div"),p(h(this).div(h(e)))}mul(e){return p(h(this).mul(h(e)))}mod(e){const t=h(e);return t.isNeg()&&m("cannot modulo negative values","mod"),p(h(this).umod(t))}pow(e){const t=h(e);return t.isNeg()&&m("cannot raise to negative values","pow"),p(h(this).pow(t))}and(e){const t=h(e);return(this.isNegative()||t.isNeg())&&m("cannot 'and' negative values","and"),p(h(this).and(t))}or(e){const t=h(e);return(this.isNegative()||t.isNeg())&&m("cannot 'or' negative values","or"),p(h(this).or(t))}xor(e){const t=h(e);return(this.isNegative()||t.isNeg())&&m("cannot 'xor' negative values","xor"),p(h(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&m("cannot mask negative values","mask"),p(h(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&m("cannot shift negative values","shl"),p(h(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&m("cannot shift negative values","shr"),p(h(this).shrn(e))}eq(e){return h(this).eq(h(e))}lt(e){return h(this).lt(h(e))}lte(e){return h(this).lte(h(e))}gt(e){return h(this).gt(h(e))}gte(e){return h(this).gte(h(e))}isNegative(){return"-"===this._hex[0]}isZero(){return h(this).isZero()}toNumber(){try{return h(this).toNumber()}catch(e){m("overflow","toNumber",this.toString())}return null}toString(){return arguments.length>0&&(10===arguments[0]?u||(u=!0,c.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?c.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",a.a.errors.UNEXPECTED_ARGUMENT,{}):c.throwError("BigNumber.toString does not accept parameters",a.a.errors.UNEXPECTED_ARGUMENT,{})),h(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof f)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new f(l,d(e)):e.match(/^-?[0-9]+$/)?new f(l,d(new s(e))):c.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&m("underflow","BigNumber.from",e),(e>=9007199254740991||e<=-9007199254740991)&&m("overflow","BigNumber.from",e),f.from(String(e));const t=e;if("bigint"==typeof t)return f.from(t.toString());if(Object(o.h)(t))return f.from(Object(o.g)(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return f.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(Object(o.j)(e)||"-"===e[0]&&Object(o.j)(e.substring(1))))return f.from(e)}return c.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function d(e){if("string"!=typeof e)return d(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&c.throwArgumentError("invalid hex","value",e),"0x00"===(e=d(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function p(e){return f.from(d(e))}function h(e){const t=f.from(e).toHexString();return"-"===t[0]?new s("-"+t.substring(3),16):new s(t.substring(2),16)}function m(e,t,n){const r={fault:e,operation:t};return null!=n&&(r.value=n),c.throwError(e,a.a.errors.NUMERIC_FAULT,r)}function b(e){return new s(e,36).toString(16)}function y(e){return new s(e,16).toString(36)}},function(e,t,n){(function(e){var r=n(1138),i=n(962),o=n(963),a=n(1140),s=n(409),c=t;c.request=function(t,n){t="string"==typeof t?s.parse(t):o(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||i,c=t.hostname||t.host,l=t.port,u=t.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),t.url=(c?a+"//"+c:"")+(l?":"+l:"")+u,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new r(t);return n&&f.on("response",n),f},c.get=function(e,t){var n=c.request(e,t);return n.end(),n},c.ClientRequest=r,c.IncomingMessage=i.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(12))},function(e,t,n){e.exports={encode:n(1162),decode:n(1163),encodingLength:n(1164)}},function(e){e.exports=JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"blake3":30,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"libp2p-peer-record":769,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,"x11":4352,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}')},function(e,t,n){"use strict";(function(t){var r=n(956),i=n(955);function o(e){var t=e;if("string"!=typeof t)throw new Error("[ethjs-util] while padding to even, value must be string, is currently "+typeof t+", while padToEven.");return t.length%2&&(t="0"+t),t}function a(e){return"0x"+e.toString(16)}e.exports={arrayContainsArray:function(e,t,n){if(!0!==Array.isArray(e))throw new Error("[ethjs-util] method arrayContainsArray requires input 'superset' to be an array got type '"+typeof e+"'");if(!0!==Array.isArray(t))throw new Error("[ethjs-util] method arrayContainsArray requires input 'subset' to be an array got type '"+typeof t+"'");return t[Boolean(n)?"some":"every"]((function(t){return e.indexOf(t)>=0}))},intToBuffer:function(e){var n=a(e);return new t(o(n.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return t.byteLength(e,"utf8")},isHexPrefixed:r,stripHexPrefix:i,padToEven:o,intToHex:a,fromAscii:function(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n).toString(16);t+=r.length<2?"0"+r:r}return"0x"+t},fromUtf8:function(e){return"0x"+o(new t(e,"utf8").toString("hex")).replace(/^0+|0+$/g,"")},toAscii:function(e){var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n<r;n+=2){var i=parseInt(e.substr(n,2),16);t+=String.fromCharCode(i)}return t},toUtf8:function(e){return new t(o(i(e).replace(/^0+|0+$/g,"")),"hex").toString("utf8")},getKeys:function(e,t,n){if(!Array.isArray(e))throw new Error("[ethjs-util] method getKeys expecting type Array as 'params' input, got '"+typeof e+"'");if("string"!=typeof t)throw new Error("[ethjs-util] method getKeys expecting type String for input 'key' got '"+typeof t+"'.");for(var r=[],i=0;i<e.length;i++){var o=e[i][t];if(n&&!o)o="";else if("string"!=typeof o)throw new Error("invalid abi");r.push(o)}return r},isHexString:function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.stripZeros=t.unpad=t.setLengthRight=t.setLength=t.setLengthLeft=t.zeros=void 0;var r=n(855),i=n(6);t.zeros=function(t){return e.allocUnsafe(t).fill(0)},t.setLengthLeft=function(e,n,r){void 0===r&&(r=!1);var i=t.zeros(n);return e=t.toBuffer(e),r?e.length<n?(e.copy(i),i):e.slice(0,n):e.length<n?(e.copy(i,n-e.length),i):e.slice(-n)},t.setLength=t.setLengthLeft,t.setLengthRight=function(e,n){return t.setLength(e,n,!0)},t.unpad=function(e){for(var t=(e=r.stripHexPrefix(e))[0];e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},t.stripZeros=t.unpad,t.toBuffer=function(t){if(!e.isBuffer(t))if(Array.isArray(t))t=e.from(t);else if("string"==typeof t){if(!r.isHexString(t))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+t);t=e.from(r.padToEven(r.stripHexPrefix(t)),"hex")}else if("number"==typeof t)t=r.intToBuffer(t);else if(null==t)t=e.allocUnsafe(0);else if(i.isBN(t))t=t.toArrayLike(e);else{if(!t.toArray)throw new Error("invalid type");t=e.from(t.toArray())}return t},t.bufferToInt=function(e){return new i(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new i(e).fromTwos(256)},t.toUnsigned=function(t){return e.from(t.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||r.isHexPrefixed(e)?e:"0x"+e},t.baToJSON=function(n){if(e.isBuffer(n))return"0x"+n.toString("hex");if(n instanceof Array){for(var r=[],i=0;i<n.length;i++)r.push(t.baToJSON(n[i]));return r}}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=n(1365);e.exports=Function.prototype.bind||r},function(e,t,n){"use strict";var r=n(1e3),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,c=s&&function(){var e={};try{for(var t in s(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,r){var i;(!(t in e)||"function"==typeof(i=r)&&"[object Function]"===o.call(i)&&r())&&(c?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)l(e,o[s],t[o[s]],n[o[s]])};u.supportsDescriptors=!!c,e.exports=u},function(e,t,n){"use strict";var r=n(392),i=n(824);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Keplr=void 0;const o=n(18),a=n(59),s=n(11),c=n(384),l=n(385),u=i(n(390));t.Keplr=class{constructor(e,t){this.version=e,this.requester=t,this.enigmaUtils=new Map,this.defaultOptions={}}enable(e){return r(this,void 0,void 0,(function*(){"string"==typeof e&&(e=[e]),yield this.requester.sendMessage(o.BACKGROUND_PORT,new a.EnableAccessMsg(e))}))}experimentalSuggestChain(e){return r(this,void 0,void 0,(function*(){const t=new a.SuggestChainInfoMsg(e);yield this.requester.sendMessage(o.BACKGROUND_PORT,t)}))}getKey(e){return r(this,void 0,void 0,(function*(){const t=new a.GetKeyMsg(e);return yield this.requester.sendMessage(o.BACKGROUND_PORT,t)}))}sendTx(e,t,n){return r(this,void 0,void 0,(function*(){const r=new a.SendTxMsg(e,t,n);return yield this.requester.sendMessage(o.BACKGROUND_PORT,r)}))}signAmino(e,t,n,i={}){var s;return r(this,void 0,void 0,(function*(){const r=new a.RequestSignAminoMsg(e,t,n,u.default(null!==(s=this.defaultOptions.sign)&&void 0!==s?s:{},i));return yield this.requester.sendMessage(o.BACKGROUND_PORT,r)}))}signDirect(e,t,n,i={}){var c;return r(this,void 0,void 0,(function*(){const r=new a.RequestSignDirectMsg(e,t,s.cosmos.tx.v1beta1.SignDoc.encode(n).finish(),u.default(null!==(c=this.defaultOptions.sign)&&void 0!==c?c:{},i)),l=yield this.requester.sendMessage(o.BACKGROUND_PORT,r);return{signed:s.cosmos.tx.v1beta1.SignDoc.decode(l.signedBytes),signature:l.signature}}))}getOfflineSigner(e){return new l.CosmJSOfflineSigner(e,this)}getOfflineSignerOnlyAmino(e){return new l.CosmJSOfflineSignerOnlyAmino(e,this)}getOfflineSignerAuto(e){return r(this,void 0,void 0,(function*(){return(yield this.getKey(e)).isNanoLedger?new l.CosmJSOfflineSignerOnlyAmino(e,this):new l.CosmJSOfflineSigner(e,this)}))}suggestToken(e,t,n){return r(this,void 0,void 0,(function*(){const r=new a.SuggestTokenMsg(e,t,n);yield this.requester.sendMessage(o.BACKGROUND_PORT,r)}))}getSecret20ViewingKey(e,t){return r(this,void 0,void 0,(function*(){const n=new a.GetSecret20ViewingKey(e,t);return yield this.requester.sendMessage(o.BACKGROUND_PORT,n)}))}getEnigmaPubKey(e){return r(this,void 0,void 0,(function*(){return yield this.requester.sendMessage(o.BACKGROUND_PORT,new a.GetPubkeyMsg(e))}))}getEnigmaTxEncryptionKey(e,t){return r(this,void 0,void 0,(function*(){return yield this.requester.sendMessage(o.BACKGROUND_PORT,new a.GetTxEncryptionKeyMsg(e,t))}))}enigmaEncrypt(e,t,n){return r(this,void 0,void 0,(function*(){return yield this.requester.sendMessage(o.BACKGROUND_PORT,new a.ReqeustEncryptMsg(e,t,n))}))}enigmaDecrypt(e,t,n){return r(this,void 0,void 0,(function*(){return t&&0!==t.length?yield this.requester.sendMessage(o.BACKGROUND_PORT,new a.RequestDecryptMsg(e,t,n)):new Uint8Array}))}getEnigmaUtils(e){if(this.enigmaUtils.has(e))return this.enigmaUtils.get(e);const t=new c.KeplrEnigmaUtils(e,this);return this.enigmaUtils.set(e,t),t}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InjectedKeplr=void 0;const o=n(11),a=n(384),s=n(107),c=n(385),l=i(n(390));t.InjectedKeplr=class{constructor(e){this.version=e,this.enigmaUtils=new Map,this.defaultOptions={}}static startProxy(e){window.addEventListener("message",t=>r(this,void 0,void 0,(function*(){const n=t.data;if(n&&"proxy-request"===n.type)try{if(!n.id)throw new Error("Empty id");if("version"===n.method)throw new Error("Version is not function");if("defaultOptions"===n.method)throw new Error("DefaultOptions is not function");if(!e[n.method]||"function"!=typeof e[n.method])throw new Error("Invalid method: "+n.method);if("getOfflineSigner"===n.method)throw new Error("GetOfflineSigner method can't be proxy request");if("getOfflineSignerOnlyAmino"===n.method)throw new Error("GetOfflineSignerOnlyAmino method can't be proxy request");if("getOfflineSignerAuto"===n.method)throw new Error("GetOfflineSignerAuto method can't be proxy request");if("getEnigmaUtils"===n.method)throw new Error("GetEnigmaUtils method can't be proxy request");const t=yield e[n.method](...s.JSONUint8Array.unwrap(n.args)),r={type:"proxy-request-response",id:n.id,result:{return:s.JSONUint8Array.wrap(t)}};window.postMessage(r,window.location.origin)}catch(e){const t={type:"proxy-request-response",id:n.id,result:{error:e.message||e.toString()}};window.postMessage(t,window.location.origin)}})))}requestMethod(e,t){const n=new Uint8Array(8),r=Array.from(crypto.getRandomValues(n)).map(e=>e.toString(16)).join(""),i={type:"proxy-request",id:r,method:e,args:s.JSONUint8Array.wrap(t)};return new Promise((e,t)=>{const n=i=>{const o=i.data;if(!o||"proxy-request-response"!==o.type)return;if(o.id!==r)return;window.removeEventListener("message",n);const a=s.JSONUint8Array.unwrap(o.result);a?a.error?t(new Error(a.error)):e(a.return):t(new Error("Result is null"))};window.addEventListener("message",n),window.postMessage(i,window.location.origin)})}enable(e){return r(this,void 0,void 0,(function*(){yield this.requestMethod("enable",[e])}))}experimentalSuggestChain(e){return r(this,void 0,void 0,(function*(){yield this.requestMethod("experimentalSuggestChain",[e])}))}getKey(e){return r(this,void 0,void 0,(function*(){return yield this.requestMethod("getKey",[e])}))}sendTx(e,t,n){return r(this,void 0,void 0,(function*(){return yield this.requestMethod("sendTx",[e,t,n])}))}signAmino(e,t,n,i={}){var o;return r(this,void 0,void 0,(function*(){return yield this.requestMethod("signAmino",[e,t,n,l.default(null!==(o=this.defaultOptions.sign)&&void 0!==o?o:{},i)])}))}signDirect(e,t,n,i={}){var a;return r(this,void 0,void 0,(function*(){const r=yield this.requestMethod("signDirect",[e,t,n,l.default(null!==(a=this.defaultOptions.sign)&&void 0!==a?a:{},i)]),s=r.signed;return{signed:o.cosmos.tx.v1beta1.SignDoc.fromObject(s),signature:r.signature}}))}getOfflineSigner(e){return new c.CosmJSOfflineSigner(e,this)}getOfflineSignerOnlyAmino(e){return new c.CosmJSOfflineSignerOnlyAmino(e,this)}getOfflineSignerAuto(e){return r(this,void 0,void 0,(function*(){return(yield this.getKey(e)).isNanoLedger?new c.CosmJSOfflineSignerOnlyAmino(e,this):new c.CosmJSOfflineSigner(e,this)}))}suggestToken(e,t,n){return r(this,void 0,void 0,(function*(){return yield this.requestMethod("suggestToken",[e,t,n])}))}getSecret20ViewingKey(e,t){return r(this,void 0,void 0,(function*(){return yield this.requestMethod("getSecret20ViewingKey",[e,t])}))}getEnigmaPubKey(e){return r(this,void 0,void 0,(function*(){return yield this.requestMethod("getEnigmaPubKey",[e])}))}getEnigmaTxEncryptionKey(e,t){return r(this,void 0,void 0,(function*(){return yield this.requestMethod("getEnigmaTxEncryptionKey",[e,t])}))}enigmaEncrypt(e,t,n){return r(this,void 0,void 0,(function*(){return yield this.requestMethod("enigmaEncrypt",[e,t,n])}))}enigmaDecrypt(e,t,n){return r(this,void 0,void 0,(function*(){return yield this.requestMethod("enigmaDecrypt",[e,t,n])}))}getEnigmaUtils(e){if(this.enigmaUtils.has(e))return this.enigmaUtils.get(e);const t=new a.KeplrEnigmaUtils(e,this);return this.enigmaUtils.set(e,t),t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return f}));var r=n(0),i=n(1068),o=n(30),a=n(890);function s(e,t){return Object.keys(e).reduce((n,r)=>(n[r]=Object.assign({timeZone:t},e[r]),n),{})}function c(e,t){return Object.keys(Object.assign(Object.assign({},e),t)).reduce((n,r)=>(n[r]=Object.assign(Object.assign({},e[r]||{}),t[r]||{}),n),{})}function l(e,t){if(!t)return e;const n=a.a.formats;return Object.assign(Object.assign(Object.assign({},n),e),{date:c(s(n.date,t),s(e.date||{},t)),time:c(s(n.time,t),s(e.time||{},t))})}function u({locale:e,formats:t,messages:n,defaultLocale:a,defaultFormats:s,onError:c,timeZone:u},f,d={id:""},p={}){const{id:h,defaultMessage:m}=d;Object(i.a)(!!h,"[React Intl] An `id` must be provided to format a message.");const b=n&&n[String(h)];t=l(t,u),s=l(s,u);let y=[];if(b)try{y=f.getMessageFormat(b,e,t,{formatters:f}).formatHTMLMessage(p)}catch(t){c(Object(o.b)(`Error formatting message: "${h}" for locale: "${e}"`+(m?", using default message as fallback.":""),t))}else(!m||e&&e.toLowerCase()!==a.toLowerCase())&&c(Object(o.b)(`Missing message: "${h}" for locale: "${e}"`+(m?", using default message as fallback.":"")));if(!y.length&&m)try{y=f.getMessageFormat(m,a,s).formatHTMLMessage(p)}catch(e){c(Object(o.b)(`Error formatting the default message for: "${h}"`,e))}return y.length?1===y.length&&"string"==typeof y[0]?y[0]||m||String(h):(g=y,r.createElement(r.Fragment,null,...g)):(c(Object(o.b)(`Cannot format message: "${h}", using message ${b||m?"source":"id"} as fallback.`)),"string"==typeof b?b||m||String(h):m||String(h));var g}function f(e,t,n={id:""},r={}){return u(e,t,n,Object.keys(r).reduce((e,t)=>{const n=r[t];return e[t]="string"==typeof n?Object(o.e)(n):n,e},{}))}},function(e,t,n){"use strict";var r=n(950),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=u(n);f&&(a=a.concat(f(n)));for(var s=c(t),m=c(n),b=0;b<a.length;++b){var y=a[b];if(!(o[y]||r&&r[y]||m&&m[y]||s&&s[y])){var g=d(n,y);try{l(t,y,g)}catch(e){}}}}return t}},function(e,t,n){"use strict";(function(e){
102 /**!
103  * @fileOverview Kickass library to create and place poppers near their reference elements.
104  * @version 1.16.1
105  * @license
106  * Copyright (c) 2016 Federico Zivolo and contributors
107  *
108  * Permission is hereby granted, free of charge, to any person obtaining a copy
109  * of this software and associated documentation files (the "Software"), to deal
110  * in the Software without restriction, including without limitation the rights
111  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
112  * copies of the Software, and to permit persons to whom the Software is
113  * furnished to do so, subject to the following conditions:
114  *
115  * The above copyright notice and this permission notice shall be included in all
116  * copies or substantial portions of the Software.
117  *
118  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
119  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
120  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
121  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
122  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
123  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
124  * SOFTWARE.
125  */
126 var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:c(s(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?u:10===e?f:u||f}function p(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function h(e){return null!==e.parentNode?h(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,c=o.commonAncestorContainer;if(e!==c&&t!==c||r.contains(i))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&p(a.firstElementChild)!==a?p(c):c;var l=h(e);return l.host?m(l.host,t):m(e,h(t).host)}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=b(t,"top"),i=b(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function g(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function v(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function w(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:v("Height",t,n,r),width:v("Width",t,n,r)}}var _=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function O(e){return S({},e,{right:e.left+e.width,bottom:e.top+e.height})}function E(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=b(e,"top"),r=b(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?w(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,c=o.height||e.clientHeight||i.height,l=e.offsetWidth-s,u=e.offsetHeight-c;if(l||u){var f=a(e);l-=g(f,"x"),u-=g(f,"y"),i.width-=l,i.height-=u}return O(i)}function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),i="HTML"===t.nodeName,o=E(e),s=E(t),l=c(e),u=a(t),f=parseFloat(u.borderTopWidth),p=parseFloat(u.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=O({top:o.top-s.top-f,left:o.left-s.left-p,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var m=parseFloat(u.marginTop),b=parseFloat(u.marginLeft);h.top-=f-m,h.bottom-=f-m,h.left-=p-b,h.right-=p-b,h.marginTop=m,h.marginLeft=b}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=y(h,t)),h}function A(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=T(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:b(n),s=t?0:b(n,"left"),c={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return O(c)}function M(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&M(n)}function I(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function P(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?I(e):m(e,l(t));if("viewport"===r)o=A(a,i);else{var u=void 0;"scrollParent"===r?"BODY"===(u=c(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var f=T(u,a,i);if("HTML"!==u.nodeName||M(a))o=f;else{var d=w(e.ownerDocument),p=d.height,h=d.width;o.top+=f.top-f.marginTop,o.bottom=p+f.top,o.left+=f.left-f.marginLeft,o.right=h+f.left}}var b="number"==typeof(n=n||0);return o.left+=b?n:n.left||0,o.top+=b?n:n.top||0,o.right-=b?n:n.right||0,o.bottom-=b?n:n.bottom||0,o}function C(e){return e.width*e.height}function j(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=P(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return S({key:e},s[e],{area:C(s[e])})})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=l.length>0?l[0].key:c[0].key,f=e.split("-")[1];return u+(f?"-"+f:"")}function D(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?I(t):m(t,l(n));return T(n,i,r)}function R(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function N(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function B(e,t,n){n=n.split("-")[0];var r=R(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",c=o?"height":"width",l=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,i[s]=n===s?t[s]-r[l]:t[N(s)],i}function L(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function U(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=L(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=O(t.offsets.popper),t.offsets.reference=O(t.offsets.reference),t=n(t,e))})),t}function F(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=D(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=j(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=B(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=U(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function q(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function z(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function V(){return this.state.isDestroyed=!0,q(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[z("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(e){var t=e.ownerDocument;return t?t.defaultView:window}function $(e,t,n,r){n.updateBound=r,H(e).addEventListener("resize",n.updateBound,{passive:!0});var i=c(e);return function e(t,n,r,i){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),o||e(c(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function K(){this.state.eventsEnabled||(this.state=$(this.reference,this.options,this.state,this.scheduleUpdate))}function W(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,H(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function G(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function J(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&G(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Q=n&&/Firefox/i.test(navigator.userAgent);function Y(e,t,n){var r=L(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],X=Z.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=X.indexOf(e),r=X.slice(n+1).concat(X.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function ie(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(L(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return O(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){G(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var oe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",u={start:x({},c,o[c]),end:x({},c,o[c]+o[l]-a[l])};e.offsets.popper=S({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],c=void 0;return c=G(+n)?[+n,0]:ie(n,o,a,s),"left"===s?(o.top+=c[0],o.left-=c[1]):"right"===s?(o.top+=c[0],o.left+=c[1]):"top"===s?(o.left+=c[0],o.top-=c[1]):"bottom"===s&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=z("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var c=P(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=c;var l=t.priority,u=e.offsets.popper,f={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),x({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),x({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=S({},u,f[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[l]),n[c]>o(r[s])&&(e.offsets.popper[c]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,c=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",m=R(r)[u];c[h]-m<s[d]&&(e.offsets.popper[d]-=s[d]-(c[h]-m)),c[d]+m>s[h]&&(e.offsets.popper[d]+=c[d]+m-s[h]),e.offsets.popper=O(e.offsets.popper);var b=c[d]+c[u]/2-m/2,y=a(e.instance.popper),g=parseFloat(y["margin"+f]),v=parseFloat(y["border"+f+"Width"]),w=b-e.offsets.popper[d]-g-v;return w=Math.max(Math.min(s[u]-m,w),0),e.arrowElement=r,e.offsets.arrow=(x(n={},d,Math.round(w)),x(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(q(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=P(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=N(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[r,i];break;case ne:a=ee(r);break;case re:a=ee(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],i=N(r);var l=e.offsets.popper,u=e.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(u.left)||"right"===r&&f(l.left)<f(u.right)||"top"===r&&f(l.bottom)>f(u.top)||"bottom"===r&&f(l.top)<f(u.bottom),p=f(l.left)<f(n.left),h=f(l.right)>f(n.right),m=f(l.top)<f(n.top),b=f(l.bottom)>f(n.bottom),y="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&b,g=-1!==["top","bottom"].indexOf(r),v=!!t.flipVariations&&(g&&"start"===o&&p||g&&"end"===o&&h||!g&&"start"===o&&m||!g&&"end"===o&&b),w=!!t.flipVariationsByContent&&(g&&"start"===o&&h||g&&"end"===o&&p||!g&&"start"===o&&b||!g&&"end"===o&&m),_=v||w;(d||y||_)&&(e.flipped=!0,(d||y)&&(r=a[c+1]),_&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=S({},e.offsets.popper,B(e.instance.popper,e.offsets.reference,e.placement)),e=U(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=N(t),e.offsets.popper=O(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=L(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=L(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=p(e.instance.popper),c=E(s),l={position:i.position},u=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},c=o(i.width),l=o(r.width),u=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?u||f||c%2==l%2?o:a:s,p=t?o:s;return{left:d(c%2==1&&l%2==1&&!f&&t?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!Q),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",h=z("transform"),m=void 0,b=void 0;if(b="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-c.height+u.bottom:u.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+u.right:-c.width+u.right:u.left,a&&h)l[h]="translate3d("+m+"px, "+b+"px, 0)",l[f]=0,l[d]=0,l.willChange="transform";else{var y="bottom"===f?-1:1,g="right"===d?-1:1;l[f]=b*y,l[d]=m*g,l.willChange=f+", "+d}var v={"x-placement":e.placement};return e.attributes=S({},v,e.attributes),e.styles=S({},l,e.styles),e.arrowStyles=S({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return J(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&J(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=D(i,t,e,n.positionFixed),a=j(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),J(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=S({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=S({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return S({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return k(e,[{key:"update",value:function(){return F.call(this)}},{key:"destroy",value:function(){return V.call(this)}},{key:"enableEventListeners",value:function(){return K.call(this)}},{key:"disableEventListeners",value:function(){return W.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=Z,ae.Defaults=oe,t.a=ae}).call(this,n(12))},function(e,t,n){var r=n(37),i=n(1378);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1357);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1470);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(29),a=n(53),s=n(0),c=n.n(s),l=n(1),u=n.n(l),f=n(10),d=n.n(f),p=n(8),h={children:u.a.node,type:u.a.string,size:u.a.oneOfType([u.a.number,u.a.string]),bsSize:u.a.string,valid:u.a.bool,invalid:u.a.bool,tag:p.p,innerRef:u.a.oneOfType([u.a.object,u.a.func,u.a.string]),plaintext:u.a.bool,addon:u.a.bool,className:u.a.string,cssModule:u.a.object},m=function(e){function t(t){var n;return(n=e.call(this,t)||this).getRef=n.getRef.bind(Object(o.a)(n)),n.focus=n.focus.bind(Object(o.a)(n)),n}Object(a.a)(t,e);var n=t.prototype;return n.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},n.focus=function(){this.ref&&this.ref.focus()},n.render=function(){var e=this.props,t=e.className,n=e.cssModule,o=e.type,a=e.bsSize,s=e.valid,l=e.invalid,u=e.tag,f=e.addon,h=e.plaintext,m=e.innerRef,b=Object(i.a)(e,["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"]),y=["radio","checkbox"].indexOf(o)>-1,g=new RegExp("\\D","g"),v=u||("select"===o||"textarea"===o?o:"input"),w="form-control";h?(w+="-plaintext",v=u||"input"):"file"===o?w+="-file":"range"===o?w+="-range":y&&(w=f?null:"form-check-input"),b.size&&g.test(b.size)&&(Object(p.r)('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.'),a=b.size,delete b.size);var _=Object(p.l)(d()(t,l&&"is-invalid",s&&"is-valid",!!a&&"form-control-"+a,w),n);return("input"===v||u&&"function"==typeof u)&&(b.type=o),b.children&&!h&&"select"!==o&&"string"==typeof v&&"select"!==v&&(Object(p.r)('Input with a type of "'+o+'" cannot have children. Please use "value"/"defaultValue" instead.'),delete b.children),c.a.createElement(v,Object(r.a)({},b,{ref:m,className:_,"aria-invalid":l}))},t}(c.a.Component);m.propTypes=h,m.defaultProps={type:"text"},t.a=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n(838),o=n(30);function a(){const e=Object(r.useContext)(i.a);return Object(o.h)(e),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InsufficientFeeError=t.NotLoadedFeeError=t.InsufficientAmountError=t.NagativeAmountError=t.ZeroAmountError=t.InvalidNumberAmountError=t.EmptyAmountError=t.ENSFailedToFetchError=t.ENSIsFetchingError=t.ENSNotSupportedError=t.InvalidBech32Error=t.EmptyAddressError=void 0;class r extends Error{constructor(e){super(e),Object.setPrototypeOf(this,r.prototype)}}t.EmptyAddressError=r;class i extends Error{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype)}}t.InvalidBech32Error=i;class o extends Error{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype)}}t.ENSNotSupportedError=o;class a extends Error{constructor(e){super(e),Object.setPrototypeOf(this,a.prototype)}}t.ENSIsFetchingError=a;class s extends Error{constructor(e){super(e),Object.setPrototypeOf(this,s.prototype)}}t.ENSFailedToFetchError=s;class c extends Error{constructor(e){super(e),Object.setPrototypeOf(this,c.prototype)}}t.EmptyAmountError=c;class l extends Error{constructor(e){super(e),Object.setPrototypeOf(this,l.prototype)}}t.InvalidNumberAmountError=l;class u extends Error{constructor(e){super(e),Object.setPrototypeOf(this,u.prototype)}}t.ZeroAmountError=u;class f extends Error{constructor(e){super(e),Object.setPrototypeOf(this,f.prototype)}}t.NagativeAmountError=f;class d extends Error{constructor(e){super(e),Object.setPrototypeOf(this,d.prototype)}}t.InsufficientAmountError=d;class p extends Error{constructor(e){super(e),Object.setPrototypeOf(this,p.prototype)}}t.NotLoadedFeeError=p;class h extends Error{constructor(e){super(e),Object.setPrototypeOf(this,h.prototype)}}t.InsufficientFeeError=h},function(e,t,n){var r=n(852),i=n(409),o=e.exports;for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);function s(e){if("string"==typeof e&&(e=i.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,t){return e=s(e),r.request.call(this,e,t)},o.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},function(e,t,n){"use strict";var r=n(903),i=function(e){var t,n,i=new Promise((function(){t=arguments[0],n=arguments[1]}));if(e)return{resolve:t,reject:n,eventEmitter:i};var o=new r;return i._events=o._events,i.emit=o.emit,i.on=o.on,i.once=o.once,i.off=o.off,i.listeners=o.listeners,i.addListener=o.addListener,i.removeListener=o.removeListener,i.removeAllListeners=o.removeAllListeners,{resolve:t,reject:n,eventEmitter:i}};i.resolve=function(e){var t=i(!0);return t.resolve(e),t.eventEmitter},e.exports=i},function(e,t,n){"use strict";var r=n(1148),i=function(e){this.name=e.name,this.type=e.type,this.subscriptions=e.subscriptions||{},this.requestManager=null};i.prototype.setRequestManager=function(e){this.requestManager=e},i.prototype.attachToObject=function(e){var t=this.buildCall(),n=this.name.split(".");n.length>1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},i.prototype.buildCall=function(){var e=this;return function(){e.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var t=new r({subscription:e.subscriptions[arguments[0]]||{},requestManager:e.requestManager,type:e.type});return t.subscribe.apply(t,arguments)}},e.exports={subscriptions:i,subscription:r}},function(e,t,n){"use strict";var r=n(444),i=n(451),o=n(213),a=function(){var e=this;r.packageInit(this,arguments),[new i({name:"getId",call:"net_version",params:0,outputFormatter:parseInt}),new i({name:"isListening",call:"net_listening",params:0}),new i({name:"getPeerCount",call:"net_peerCount",params:0,outputFormatter:o.hexToNumber})].forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}))};r.addProviders(a),e.exports=a},function(e,t,n){(function(e){var r=n(1153).keccak_256,i=n(1154);function o(e){return e?i.toUnicode(e,{useStd3ASCII:!0,transitional:!1}):e}t.hash=function(t){for(var n="",i=0;i<32;i++)n+="00";if(name=o(t),name){var a=name.split(".");for(i=a.length-1;i>=0;i--){var s=r(a[i]);n=r(new e(n+s,"hex"))}}return"0x"+n},t.normalize=o}).call(this,n(2).Buffer)},function(e){e.exports=JSON.parse('{"identity":0,"ip4":4,"tcp":6,"sha1":17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"dccp":33,"murmur3-128":34,"murmur3-32":35,"ip6":41,"ip6zone":42,"path":47,"multicodec":48,"multihash":49,"multiaddr":50,"multibase":51,"dns":53,"dns4":54,"dns6":55,"dnsaddr":56,"protobuf":80,"cbor":81,"raw":85,"dbl-sha2-256":86,"rlp":96,"bencode":99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,"sctp":132,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"bitcoin-block":176,"bitcoin-tx":177,"zcash-block":192,"zcash-tx":193,"stellar-block":208,"stellar-tx":209,"md4":212,"md5":213,"bmt":214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,"zeronet":230,"ed25519-pub":237,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,"udp":273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,"udt":301,"utp":302,"unix":400,"p2p":421,"ipfs":421,"https":443,"onion":444,"onion3":445,"garlic64":446,"garlic32":447,"tls":448,"quic":460,"ws":477,"wss":478,"p2p-websocket-star":479,"http":480,"json":512,"messagepack":513,"x11":4352,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46000,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332}')},function(e,t){e.exports="assets/logo-temp.png"},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports=n(1381)},function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,c,"next",e)}function c(e){n(a,i,o,s,c,"throw",e)}s(void 0)}))}}},function(e,t,n){"use strict";var r=n(27),i=n(224),o=i.getNAF,a=i.getJSF,s=i.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(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),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=o(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var a=[],c=0;c<r.length;c+=n.step){var l=0;for(t=c+n.step-1;t>=c;t--)l=(l<<1)+r[t];a.push(l)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(c=0;c<a.length;c++){(l=a[c])===d?f=f.mixedAdd(n.points[c]):l===-d&&(f=f.mixedAdd(n.points[c].neg()))}u=u.add(f)}return u.toP()},c.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,a=o(t,n,this._bitLength),c=this.jpoint(null,null,null),l=a.length-1;l>=0;l--){for(t=0;l>=0&&0===a[l];l--)t++;if(l>=0&&t++,c=c.dblp(t),l<0)break;var u=a[l];s(0!==u),c="affine"===e.type?u>0?c.mixedAdd(i[u-1>>1]):c.mixedAdd(i[-u-1>>1].neg()):u>0?c.add(i[u-1>>1]):c.add(i[-u-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,i){for(var s=this._wnafT1,c=this._wnafT2,l=this._wnafT3,u=0,f=0;f<r;f++){var d=(O=t[f])._getNAFPoints(e);s[f]=d.wnd,c[f]=d.points}for(f=r-1;f>=1;f-=2){var p=f-1,h=f;if(1===s[p]&&1===s[h]){var m=[t[p],null,null,t[h]];0===t[p].y.cmp(t[h].y)?(m[1]=t[p].add(t[h]),m[2]=t[p].toJ().mixedAdd(t[h].neg())):0===t[p].y.cmp(t[h].y.redNeg())?(m[1]=t[p].toJ().mixedAdd(t[h]),m[2]=t[p].add(t[h].neg())):(m[1]=t[p].toJ().mixedAdd(t[h]),m[2]=t[p].toJ().mixedAdd(t[h].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=a(n[p],n[h]);u=Math.max(y[0].length,u),l[p]=new Array(u),l[h]=new Array(u);for(var g=0;g<u;g++){var v=0|y[0][g],w=0|y[1][g];l[p][g]=b[3*(v+1)+(w+1)],l[h][g]=0,c[p]=m}}else l[p]=o(n[p],s[p],this._bitLength),l[h]=o(n[h],s[h],this._bitLength),u=Math.max(l[p].length,u),u=Math.max(l[h].length,u)}var _=this.jpoint(null,null,null),k=this._wnafT4;for(f=u;f>=0;f--){for(var x=0;f>=0;){var S=!0;for(g=0;g<r;g++)k[g]=0|l[g][f],0!==k[g]&&(S=!1);if(!S)break;x++,f--}if(f>=0&&x++,_=_.dblp(x),f<0)break;for(g=0;g<r;g++){var O,E=k[g];0!==E&&(E>0?O=c[g][E-1>>1]:E<0&&(O=c[g][-E-1>>1].neg()),_="affine"===O.type?_.mixedAdd(O):_.add(O))}}for(f=0;f<r;f++)c[f]=null;return i?_:_.toP()},c.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?s(e[e.length-1]%2==0):7===e[0]&&s(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},l.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},l.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)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){"use strict";t.decode=t.parse=n(1107),t.encode=t.stringify=n(1108)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(0),i=n.n(r),o=n(10),a=n.n(o),s=n(404),c=n(405),l=n(1069),u=n(868),f=n(895),d=n(896),p=n(1046),h=n.n(p),m=n(2);const b=Object(r.forwardRef)((e,t)=>{const{type:n,label:o,text:p,error:b,append:y}=e,g=Object.assign({},e);delete g.className,delete g.type,delete g.color,delete g.label,delete g.text,delete g.error,delete g.children,delete g.append;const[v]=Object(r.useState)(()=>{const e=new Uint8Array(4);return crypto.getRandomValues(e),"input-"+m.Buffer.from(e).toString("hex")});return i.a.createElement(s.a,null,o?i.a.createElement(c.a,{for:v,className:"form-control-label"},o):null,i.a.createElement(l.a,null,i.a.createElement(u.a,Object.assign({id:v,className:a()("form-control-alternative",e.className,h.a.input),type:n,innerRef:t},g)),y),b?i.a.createElement(f.a,{style:{display:"block"}},b):p?i.a.createElement(d.a,null,p):null)})},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(0),i=n.n(r),o=n(404),a=n(405),s=n(868),c=n(14);const l=Object(c.a)(({gasConfig:t,label:n,className:c})=>{const[l]=Object(r.useState)(()=>{const t=new Uint8Array(4);return crypto.getRandomValues(t),"input-"+e.from(t).toString("hex")});return i.a.createElement(o.a,{className:c},n?i.a.createElement(a.a,{for:l,className:"form-control-label"},n):null,i.a.createElement(s.a,{id:l,className:"form-control-alternative",type:"number",step:1,min:0,value:t.gas,onChange:e=>{const n=parseInt(e.target.value);!isNaN(n)&&n>0&&t.setGas(n),e.preventDefault()},autoComplete:"off"}))})}).call(this,n(2).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(0),i=n.n(r),o=n(14),a=n(21),s=n(947),c=n(1070),l=n(1553),u=n(404),f=n(405),d=n(948),p=n(949),h=n(946),m=n(897),b=n(402),y=n(865),g=n.n(y),v=n(884),w=n(869),_=n(388),k=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const x=Object(o.a)(({isOpen:e,closeModal:t,toggle:n})=>{const o=Object(w.a)(),{chainStore:y,queriesStore:x,ibcChannelStore:S}=Object(a.b)(),[O,E]=Object(r.useState)(!1),[T,A]=Object(r.useState)(""),[M,I]=Object(r.useState)(""),[P,C]=Object(r.useState)(!1),[j,D]=Object(r.useState)("");return i.a.createElement(s.a,{isOpen:e,toggle:n,centered:!0},i.a.createElement(c.a,null,i.a.createElement(l.a,null,i.a.createElement("h1",null,"Add IBC channel"),i.a.createElement(u.a,null,i.a.createElement(f.a,{for:"chain-dropdown",className:"form-control-label"},i.a.createElement(_.a,{id:"component.ibc.channel-registrar.chain-selector.label"})),i.a.createElement(d.a,{id:"chain-dropdown",className:g.a.chainSelector,isOpen:O,toggle:()=>E(e=>!e)},i.a.createElement(p.a,{caret:!0},T?y.getChain(T).chainName:i.a.createElement(_.a,{id:"component.ibc.channel-registrar.chain-selector.placeholder"})),i.a.createElement(h.a,null,y.chainInfos.map(e=>{var t;if(y.current.chainId!==e.chainId&&(null!==(t=e.features)&&void 0!==t?t:[]).includes("ibc-transfer"))return i.a.createElement(m.a,{key:e.chainId,onClick:t=>{t.preventDefault(),A(e.chainId),D("")}},e.chainName)})))),i.a.createElement(v.a,{type:"text",label:o.formatMessage({id:"component.ibc.channel-registrar.chain-selector.add.channel.label"}),placeholder:o.formatMessage({id:"component.ibc.channel-registrar.chain-selector.add.channel.placeholder"}),onChange:e=>{e.preventDefault(),I(e.target.value),D("")},error:j}),i.a.createElement(b.a,{type:"submit",block:!0,color:"primary",disabled:""===T||""===M||""!==j,"data-loading":P,onClick:e=>k(void 0,void 0,void 0,(function*(){e.preventDefault(),C(!0);const n=x.get(y.current.chainId),r=yield n.getQueryIBCCChannel().getTransferChannel(M).waitFreshResponse(),i=yield n.getQueryIBCClientState().getClientStateOnTransferPort(M).waitFreshResponse();let o="";r&&i||(o="Failed to fetch the channel"),r&&"STATE_OPEN"!==r.data.channel.state&&(o="Channel is not on OPEN STATE"),i&&i.data.identified_client_state.client_state.chain_id!==T&&(o="Client is not for "+T),C(!1),D(o),r&&i&&""===o&&(yield S.get(y.current.chainId).addChannel({portId:"transfer",channelId:M,counterpartyChainId:T}),yield S.get(T).addChannel({portId:r.data.channel.counterparty.port_id,channelId:r.data.channel.counterparty.channel_id,counterpartyChainId:y.current.chainId}),t())}))},i.a.createElement(_.a,{id:"component.ibc.channel-registrar.chain-selector.add.channel.button"})))))})},function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return h}));var r=n(109),i=n.n(r),o=n(840),a=n.n(o),s=n(110),c=n.n(s),l=n(0),u=n(938),f=n.n(u),d=f()(),p=f()(),h=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,c()(i()(t),"referenceNode",void 0),c()(i()(t),"setReferenceNode",(function(e){e&&t.referenceNode!==e&&(t.referenceNode=e,t.forceUpdate())})),t}a()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.referenceNode=null},n.render=function(){return l.createElement(d.Provider,{value:this.referenceNode},l.createElement(p.Provider,{value:this.setReferenceNode},this.props.children))},t}(l.Component)},function(e,t,n){"use strict";n.d(t,"a",(function(){return ee})),n.d(t,"b",(function(){return te}));var r,i=n(0),o=n.n(i),a=n(228),s=n(14),c=n(92),l=n.n(c),u=n(402),f=n(388),d=n(46),p=n(21),h=n(5),m=n(63),b=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};!function(e){e[e.WORDS12=0]="WORDS12",e[e.WORDS24=1]="WORDS24"}(r||(r={}));class y{constructor(e){this.registerConfig=e,this._mode="generate",this._numWords=r.WORDS12,this._mnemonic="",this._name="",this._password="",Object(h.makeObservable)(this),this.setNumWords(this.numWords)}get mode(){return this._mode}setMode(e){this._mode=e}get numWords(){return this._numWords}*setNumWords(e){this._numWords=e,e===r.WORDS12?this._mnemonic=yield*Object(m.toGenerator)(this.registerConfig.generateMnemonic(128)):e===r.WORDS24&&(this._mnemonic=yield*Object(m.toGenerator)(this.registerConfig.generateMnemonic(256)))}get mnemonic(){return this._mnemonic}setMnemonic(e){this._mnemonic=e}get name(){return this._name}setName(e){this._name=e}get password(){return this._password}setPassword(e){this._password=e}}b([h.observable],y.prototype,"_mode",void 0),b([h.observable],y.prototype,"_numWords",void 0),b([h.observable],y.prototype,"_mnemonic",void 0),b([h.observable],y.prototype,"_name",void 0),b([h.observable],y.prototype,"_password",void 0),b([h.action],y.prototype,"setMode",null),b([h.flow],y.prototype,"setNumWords",null),b([h.action],y.prototype,"setMnemonic",null),b([h.action],y.prototype,"setName",null),b([h.action],y.prototype,"setPassword",null);var g=n(869),v=n(146),w=n(404),_=n(405),k=n(868),x=n(150),S=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},O=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class E{constructor(e){this._account=0,this._change=0,this._index=0,this._coinType=e,Object(h.makeObservable)(this)}get coinType(){return this._coinType}get account(){return this._account}get change(){return this._change}get index(){return this._index}get bip44HDPath(){return{account:this.account,change:this.change,addressIndex:this.index}}setCoinType(e){this._coinType=e}setAccount(e){this._account=e}setChange(e){this._change=e}setIndex(e){this._index=e}}S([h.observable],E.prototype,"_coinType",void 0),S([h.observable],E.prototype,"_account",void 0),S([h.observable],E.prototype,"_change",void 0),S([h.observable],E.prototype,"_index",void 0),S([h.computed],E.prototype,"bip44HDPath",null),S([h.action],E.prototype,"setCoinType",null),S([h.action],E.prototype,"setAccount",null),S([h.action],E.prototype,"setChange",null),S([h.action],E.prototype,"setIndex",null);const T=e=>{const[t]=Object(i.useState)(()=>new E(e));return t},A=Object(s.a)(({bip44Option:e})=>{const t=Object(g.a)(),n=Object(x.b)(),[r,a]=Object(i.useState)(0!==e.account||0!==e.change||0!==e.index);return o.a.createElement(o.a.Fragment,null,o.a.createElement(u.a,{type:"button",color:"link",onClick:i=>{i.preventDefault(),O(void 0,void 0,void 0,(function*(){r?(yield n.confirm({paragraph:t.formatMessage({id:"register.bip44.confirm.clear"})}))&&(a(!1),e.setAccount(0),e.setChange(0),e.setIndex(0)):a(!0)}))}},o.a.createElement(f.a,{id:"register.bip44.button.advanced"})),r?o.a.createElement(w.a,null,o.a.createElement(_.a,{target:"bip44-path",className:"form-control-label"},o.a.createElement(f.a,{id:"register.bip44.input.hd-path"})),o.a.createElement("div",{id:"bip44-path",style:{display:"flex",alignItems:"baseline"}},o.a.createElement("div",null,`m/44'/${null!=e.coinType?e.coinType:"···"}'/`),o.a.createElement(k.a,{type:"number",className:"form-control-alternative",style:{width:"100px",textAlign:"right"},value:e.account.toString(),onChange:t=>{t.preventDefault();let n=t.target.value;if(n){if("0"!==n)for(let e=0;e<n.length&&"0"===n[e];e++)n=n.replace("0","");const t=parseFloat(n);Number.isInteger(t)&&t>=0&&e.setAccount(t)}else e.setAccount(0)}}),o.a.createElement("div",null,"'/"),o.a.createElement(k.a,{type:"number",className:"form-control-alternative",style:{width:"100px",textAlign:"right"},value:e.change.toString(),onChange:t=>{t.preventDefault();let n=t.target.value;if(n){if("0"!==n)for(let e=0;e<n.length&&"0"===n[e];e++)n=n.replace("0","");const t=parseFloat(n);!Number.isInteger(t)||0!==t&&1!==t||e.setChange(t)}else e.setChange(0)}}),o.a.createElement("div",null,"/"),o.a.createElement(k.a,{type:"number",className:"form-control-alternative",style:{width:"100px",textAlign:"right"},value:e.index.toString(),onChange:t=>{t.preventDefault();let n=t.target.value;if(n){if("0"!==n)for(let e=0;e<n.length&&"0"===n[e];e++)n=n.replace("0","");const t=parseFloat(n);Number.isInteger(t)&&t>=0&&e.setIndex(t)}else e.setIndex(0)}}))):null)});var M=n(1560),I=n(1552),P=n(1553),C=n(34),j=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const D=n(69),R=Object(s.a)(({registerConfig:e})=>o.a.createElement(u.a,{color:"primary",outline:!0,block:!0,onClick:t=>{t.preventDefault(),e.setType("new-mnemonic")}},o.a.createElement(f.a,{id:"register.intro.button.new-account.title"}))),N=Object(s.a)(({registerConfig:e})=>{const t=(e=>{const[t]=Object(i.useState)(()=>new y(e));return t})(e),n=T();return o.a.createElement(o.a.Fragment,null,"generate"===t.mode?o.a.createElement(B,{registerConfig:e,newMnemonicConfig:t,bip44Option:n}):null,"verify"===t.mode?o.a.createElement(L,{registerConfig:e,newMnemonicConfig:t,bip44Option:n}):null)}),B=Object(s.a)(({registerConfig:e,newMnemonicConfig:t,bip44Option:n})=>{const i=Object(g.a)(),{register:a,handleSubmit:s,getValues:c,errors:d}=Object(v.a)({defaultValues:{name:t.name,words:t.mnemonic,password:"",confirmPassword:""}});return o.a.createElement("div",null,o.a.createElement(M.a,{color:"warning"},o.a.createElement("h3",{style:{color:"white"}},o.a.createElement(f.a,{id:"register.create.warning.keep-your-mnemonic.header"})),o.a.createElement("ul",null,o.a.createElement("li",null,o.a.createElement(f.a,{id:"register.create.warning.keep-your-mnemonic.paragraph1"})),o.a.createElement("li",null,o.a.createElement(f.a,{id:"register.create.warning.keep-your-mnemonic.paragraph2"})))),o.a.createElement("div",{className:l.a.title},i.formatMessage({id:"register.create.title"}),o.a.createElement("div",{style:{float:"right"}},o.a.createElement(I.a,{size:"sm",style:{marginBottom:"4px"}},o.a.createElement(u.a,{type:"button",color:"primary",outline:t.numWords!==r.WORDS12,onClick:()=>{t.setNumWords(r.WORDS12)}},o.a.createElement(f.a,{id:"register.create.toggle.word12"})),o.a.createElement(u.a,{type:"button",color:"primary",outline:t.numWords!==r.WORDS24,onClick:()=>{t.setNumWords(r.WORDS24)}},o.a.createElement(f.a,{id:"register.create.toggle.word24"}))))),o.a.createElement(P.a,{className:l.a.formContainer,onSubmit:s(e=>j(void 0,void 0,void 0,(function*(){t.setName(e.name),t.setPassword(e.password),t.setMode("verify")})))},o.a.createElement(C.g,{className:l.a.mnemonic,placeholder:i.formatMessage({id:"register.create.textarea.mnemonic.place-holder"}),name:"words",rows:t.numWords===r.WORDS24?5:3,readOnly:!0,value:t.mnemonic,ref:a({required:"Mnemonic is required",validate:e=>e.split(" ").length<8?i.formatMessage({id:"register.create.textarea.mnemonic.error.too-short"}):D.validateMnemonic(e)?void 0:i.formatMessage({id:"register.create.textarea.mnemonic.error.invalid"})}),error:d.words&&d.words.message}),o.a.createElement(C.e,{label:i.formatMessage({id:"register.name"}),type:"text",name:"name",ref:a({required:i.formatMessage({id:"register.name.error.required"})}),error:d.name&&d.name.message}),"create"===e.mode?o.a.createElement(o.a.Fragment,null,o.a.createElement(C.e,{label:i.formatMessage({id:"register.create.input.password"}),type:"password",name:"password",ref:a({required:i.formatMessage({id:"register.create.input.password.error.required"}),validate:e=>{if(e.length<8)return i.formatMessage({id:"register.create.input.password.error.too-short"})}}),error:d.password&&d.password.message}),o.a.createElement(C.e,{label:i.formatMessage({id:"register.create.input.confirm-password"}),type:"password",name:"confirmPassword",ref:a({required:i.formatMessage({id:"register.create.input.confirm-password.error.required"}),validate:e=>{if(e!==c().password)return i.formatMessage({id:"register.create.input.confirm-password.error.unmatched"})}}),error:d.confirmPassword&&d.confirmPassword.message})):null,o.a.createElement(A,{bip44Option:n}),o.a.createElement(u.a,{color:"primary",type:"submit",block:!0},o.a.createElement(f.a,{id:"register.create.button.next"}))),o.a.createElement(ee,{onClick:()=>{e.clear()}}))}),L=Object(s.a)(({registerConfig:e,newMnemonicConfig:t,bip44Option:n})=>{const r=Object(i.useMemo)(()=>{const e=t.mnemonic.split(" ");for(let t=0;t<e.length;t++)e[t]=e[t].trim();return e},[t.mnemonic]),[a,s]=Object(i.useState)([]),[c,d]=Object(i.useState)([]);return Object(i.useEffect)(()=>{const e=t.mnemonic.split(" ");for(let t=0;t<e.length;t++)e[t]=e[t].trim();e.sort((e,t)=>e>t?1:-1),s(e),d([])},[t.mnemonic]),o.a.createElement("div",null,o.a.createElement("div",{style:{minHeight:"153px"}},o.a.createElement("div",{className:l.a.buttons},c.map((e,t)=>o.a.createElement(u.a,{key:e+t.toString(),onClick:()=>{const e=c[t];d(c.slice(0,t).concat(c.slice(t+1))),a.push(e),s(a.slice())}},e)))),o.a.createElement("hr",null),o.a.createElement("div",{style:{minHeight:"153px"}},o.a.createElement("div",{className:l.a.buttons},a.map((e,t)=>o.a.createElement(u.a,{key:e+t.toString(),onClick:()=>{const e=a[t];s(a.slice(0,t).concat(a.slice(t+1))),c.push(e),d(c.slice())}},e)))),o.a.createElement(u.a,{color:"primary",type:"submit",disabled:c.join(" ")!==r.join(" "),block:!0,style:{marginTop:"30px"},onClick:r=>j(void 0,void 0,void 0,(function*(){r.preventDefault();try{yield e.createMnemonic(t.name,t.mnemonic,t.password,n.bip44HDPath)}catch(t){alert(t.message?t.message:t.toString()),e.clear()}})),"data-loading":e.isLoading},o.a.createElement(f.a,{id:"register.verify.button.register"})),o.a.createElement(ee,{onClick:()=>{t.setMode("generate")}}))});var U=n(2),F=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const q=n(69);function z(e){return!!e.startsWith("0x")||64===e.length}function V(e){return(e=e.trim()).split(/\s+/).map(e=>e.trim()).filter(e=>e.trim().length>0).join(" ")}const H=Object(s.a)(({registerConfig:e})=>o.a.createElement(u.a,{color:"primary",outline:!0,block:!0,onClick:t=>{t.preventDefault(),e.setType("recover-mnemonic")}},o.a.createElement(f.a,{id:"register.intro.button.import-account.title"}))),$=Object(s.a)(({registerConfig:e})=>{const t=Object(g.a)(),n=T(),{register:r,handleSubmit:i,getValues:a,errors:s}=Object(v.a)({defaultValues:{name:"",words:"",password:"",confirmPassword:""}});return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",null,o.a.createElement("div",{className:l.a.title},t.formatMessage({id:"register.recover.title"})),o.a.createElement(P.a,{className:l.a.formContainer,onSubmit:i(t=>F(void 0,void 0,void 0,(function*(){try{if(z(t.words)){const n=U.Buffer.from(t.words.trim().replace("0x",""),"hex");yield e.createPrivateKey(t.name,n,t.password)}else yield e.createMnemonic(t.name,V(t.words),t.password,n.bip44HDPath)}catch(t){alert(t.message?t.message:t.toString()),e.clear()}})))},o.a.createElement(C.g,{className:l.a.mnemonic,placeholder:t.formatMessage({id:"register.create.textarea.mnemonic.place-holder"}),name:"words",rows:3,ref:r({required:"Mnemonic is required",validate:e=>{if(z(e)){if(64!==(e=e.replace("0x","")).length)return t.formatMessage({id:"register.import.textarea.private-key.error.invalid-length"});try{if(U.Buffer.from(e,"hex").toString("hex").toLowerCase()!==e.toLowerCase())return t.formatMessage({id:"register.import.textarea.private-key.error.invalid"})}catch(e){return t.formatMessage({id:"register.import.textarea.private-key.error.invalid"})}}else{if((e=V(e)).split(" ").length<8)return t.formatMessage({id:"register.create.textarea.mnemonic.error.too-short"});if(!q.validateMnemonic(e))return t.formatMessage({id:"register.create.textarea.mnemonic.error.invalid"})}}}),error:s.words&&s.words.message}),o.a.createElement(C.e,{label:t.formatMessage({id:"register.name"}),type:"text",name:"name",ref:r({required:t.formatMessage({id:"register.name.error.required"})}),error:s.name&&s.name.message}),"create"===e.mode?o.a.createElement(o.a.Fragment,null,o.a.createElement(C.e,{label:t.formatMessage({id:"register.create.input.password"}),type:"password",name:"password",ref:r({required:t.formatMessage({id:"register.create.input.password.error.required"}),validate:e=>{if(e.length<8)return t.formatMessage({id:"register.create.input.password.error.too-short"})}}),error:s.password&&s.password.message}),o.a.createElement(C.e,{label:t.formatMessage({id:"register.create.input.confirm-password"}),type:"password",name:"confirmPassword",ref:r({required:t.formatMessage({id:"register.create.input.confirm-password.error.required"}),validate:e=>{if(e!==a().password)return t.formatMessage({id:"register.create.input.confirm-password.error.unmatched"})}}),error:s.confirmPassword&&s.confirmPassword.message})):null,o.a.createElement(A,{bip44Option:n}),o.a.createElement(u.a,{color:"primary",type:"submit",block:!0,"data-loading":e.isLoading},o.a.createElement(f.a,{id:"register.create.button.next"}))),o.a.createElement(ee,{onClick:()=>{e.clear()}})))});var K=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const W=Object(s.a)(({registerConfig:e})=>o.a.createElement(u.a,{color:"primary",outline:!0,block:!0,onClick:t=>{t.preventDefault(),e.setType("import-ledger")}},o.a.createElement(f.a,{id:"register.ledger.title"}))),G=Object(s.a)(({registerConfig:e})=>{const t=Object(g.a)(),n=T(118),{register:r,handleSubmit:i,getValues:a,errors:s}=Object(v.a)({defaultValues:{name:"",password:"",confirmPassword:""}});return o.a.createElement("div",null,o.a.createElement("div",{className:l.a.title},t.formatMessage({id:"register.name"})),o.a.createElement(P.a,{className:l.a.formContainer,onSubmit:i(t=>K(void 0,void 0,void 0,(function*(){try{yield e.createLedger(t.name,t.password,n.bip44HDPath)}catch(t){alert(t.message?t.message:t.toString()),e.clear()}})))},o.a.createElement(C.e,{label:t.formatMessage({id:"register.name"}),type:"text",name:"name",ref:r({required:t.formatMessage({id:"register.name.error.required"})}),error:s.name&&s.name.message}),"create"===e.mode?o.a.createElement(o.a.Fragment,null,o.a.createElement(C.e,{label:t.formatMessage({id:"register.create.input.password"}),type:"password",name:"password",ref:r({required:t.formatMessage({id:"register.create.input.password.error.required"}),validate:e=>{if(e.length<8)return t.formatMessage({id:"register.create.input.password.error.too-short"})}}),error:s.password&&s.password.message}),o.a.createElement(C.e,{label:t.formatMessage({id:"register.create.input.confirm-password"}),type:"password",name:"confirmPassword",ref:r({required:t.formatMessage({id:"register.create.input.confirm-password.error.required"}),validate:e=>{if(e!==a().password)return t.formatMessage({id:"register.create.input.confirm-password.error.unmatched"})}}),error:s.confirmPassword&&s.confirmPassword.message})):null,o.a.createElement(A,{bip44Option:n}),o.a.createElement(u.a,{color:"primary",type:"submit",block:!0,"data-loading":e.isLoading},o.a.createElement(f.a,{id:"register.create.button.next"}))),o.a.createElement(ee,{onClick:()=>{e.clear()}}))});var J=n(939),Q=n.n(J);const Y=()=>{const e=Object(g.a)();return o.a.createElement("div",{style:{paddingTop:"20px"}},o.a.createElement("div",{className:Q.a.title},e.formatMessage({id:"register.welcome.title"})),o.a.createElement("div",{className:Q.a.content},e.formatMessage({id:"register.welcome.content"})),o.a.createElement(u.a,{color:"primary",type:"submit",onClick:()=>{"undefined"!=typeof browser?browser.tabs.getCurrent().then(e=>{e.id?browser.tabs.remove(e.id):window.close()}):window.close()},block:!0,style:{marginTop:"60px"}},e.formatMessage({id:"register.welcome.button.done"})))};var Z,X=n(208);!function(e){e[e.WORDS12=0]="WORDS12",e[e.WORDS24=1]="WORDS24"}(Z||(Z={}));const ee=({onClick:e})=>o.a.createElement("div",{className:l.a.backButton},o.a.createElement(u.a,{color:"link",onClick:e},o.a.createElement("i",{className:"fas fa-angle-left",style:{marginRight:"8px"}}),o.a.createElement(f.a,{id:"register.button.back"}))),te=Object(s.a)(()=>{Object(i.useEffect)(()=>(document.body.setAttribute("data-centered","true"),()=>{document.body.removeAttribute("data-centered")}),[]);const{keyRingStore:e}=Object(p.b)(),t=Object(d.useRegisterConfig)(e,[...null!==X.a&&void 0!==X.a?X.a:[],{type:"new-mnemonic",intro:R,page:N},{type:"recover-mnemonic",intro:H,page:$},{type:"import-ledger",intro:W,page:G}]);return o.a.createElement(a.a,{className:l.a.container,style:{height:"100%",backgroundColor:"white",padding:0}},o.a.createElement("div",{className:l.a.logoContainer},o.a.createElement("img",{className:l.a.icon,src:n(413),alt:"logo"}),o.a.createElement("div",{className:l.a.logoInnerContainer},o.a.createElement("img",{className:l.a.logo,src:n(877),alt:"logo"}),o.a.createElement("div",{className:l.a.paragraph},"Wallet for the Interchain"))),t.render(),t.isFinalized?o.a.createElement(Y,null):null,t.isIntro?o.a.createElement("div",{className:l.a.subContent},o.a.createElement(f.a,{id:"register.intro.sub-content",values:{br:o.a.createElement("br",null)}})):null)})},function(e,t,n){"use strict";var r;function i(e){return e.type===r.literal}function o(e){return e.type===r.argument}function a(e){return e.type===r.number}function s(e){return e.type===r.date}function c(e){return e.type===r.time}function l(e){return e.type===r.select}function u(e){return e.type===r.plural}function f(e){return e.type===r.pound}function d(e){return!(!e||"object"!=typeof e||0!==e.type)}function p(e){return!(!e||"object"!=typeof e||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"}(r||(r={}));var h,m=(h=function(e,t){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),b=function(){return(b=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},y=function(e){function t(n,r,i,o){var a=e.call(this)||this;return a.message=n,a.expected=r,a.found=i,a.location=o,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return m(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(o);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+(((a=t)?'"'+r(a)+'"':"end of input")+" found.");var a},t}(Error);var g=function(e,t){t=void 0!==t?t:{};var n,i={},o={start:ke},a=ke,s=me("#",!1),c=ye("argumentElement"),l=me("{",!1),u=me("}",!1),f=ye("numberSkeletonId"),d=/^['\/{}]/,p=be(["'","/","{","}"],!1,!1),h={type:"any"},m=ye("numberSkeletonTokenOption"),g=me("/",!1),v=ye("numberSkeletonToken"),w=me("::",!1),_=function(e){return Ve.pop(),e.replace(/\s*$/,"")},k=me(",",!1),x=me("number",!1),S=function(e,t,n){return b({type:"number"===t?r.number:"date"===t?r.date:r.time,style:n&&n[2],value:e},$e())},O=me("'",!1),E=/^[^']/,T=be(["'"],!0,!1),A=/^[^a-zA-Z'{}]/,M=be([["a","z"],["A","Z"],"'","{","}"],!0,!1),I=/^[a-zA-Z]/,P=be([["a","z"],["A","Z"]],!1,!1),C=me("date",!1),j=me("time",!1),D=me("plural",!1),R=me("selectordinal",!1),N=me("offset:",!1),B=me("select",!1),L=me("=",!1),U=ye("whitespace"),F=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,q=be([["\t","\r"]," ","\85"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),z=ye("syntax pattern"),V=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,H=be([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←","⑟"],["─","❵"],["➔","⯿"],["⸀","⹿"],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),$=ye("optional whitespace"),K=ye("number"),W=me("-",!1),G=(ye("apostrophe"),ye("double apostrophes")),J=me("''",!1),Q=function(e){return!("{"===e||He()&&"#"===e||Ve.length>1&&"}"===e)},Y=me("\n",!1),Z=ye("argNameOrNumber"),X=ye("argNumber"),ee=me("0",!1),te=/^[1-9]/,ne=be([["1","9"]],!1,!1),re=/^[0-9]/,ie=be([["0","9"]],!1,!1),oe=ye("argName"),ae=0,se=0,ce=[{line:1,column:1}],le=0,ue=[],fe=0;if(void 0!==t.startRule){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=o[t.startRule]}function de(){return e.substring(se,ae)}function pe(){return ve(se,ae)}function he(e,t){throw function(e,t){return new y(e,[],"",t)}(e,t=void 0!==t?t:ve(se,ae))}function me(e,t){return{type:"literal",text:e,ignoreCase:t}}function be(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function ye(e){return{type:"other",description:e}}function ge(t){var n,r=ce[t];if(r)return r;for(n=t-1;!ce[n];)n--;for(r={line:(r=ce[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return ce[t]=r,r}function ve(e,t){var n=ge(e),r=ge(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function we(e){ae<le||(ae>le&&(le=ae,ue=[]),ue.push(e))}function _e(e,t,n){return new y(y.buildMessage(e,t),e,t,n)}function ke(){return xe()}function xe(){var e,t;for(e=[],t=Se();t!==i;)e.push(t),t=Se();return e}function Se(){var t;return(t=function(){var e,t;e=ae,(t=Oe())!==i&&(se=e,n=t,t=b({type:r.literal,value:n},$e()));var n;return e=t}())===i&&(t=function(){var t,n,o,a;fe++,t=ae,123===e.charCodeAt(ae)?(n="{",ae++):(n=i,0===fe&&we(l));n!==i&&Re()!==i&&(o=Fe())!==i&&Re()!==i?(125===e.charCodeAt(ae)?(a="}",ae++):(a=i,0===fe&&we(u)),a!==i?(se=t,s=o,n=b({type:r.argument,value:s},$e()),t=n):(ae=t,t=i)):(ae=t,t=i);var s;fe--,t===i&&(n=i,0===fe&&we(c));return t}())===i&&(t=function(){var t;(t=function(){var t,n,r,o,a,s,c,f,d;t=ae,123===e.charCodeAt(ae)?(n="{",ae++):(n=i,0===fe&&we(l));n!==i&&Re()!==i&&(r=Fe())!==i&&Re()!==i?(44===e.charCodeAt(ae)?(o=",",ae++):(o=i,0===fe&&we(k)),o!==i&&Re()!==i?("number"===e.substr(ae,6)?(a="number",ae+=6):(a=i,0===fe&&we(x)),a!==i&&Re()!==i?(s=ae,44===e.charCodeAt(ae)?(c=",",ae++):(c=i,0===fe&&we(k)),c!==i&&(f=Re())!==i&&(d=function(){var t,n,r;t=ae,"::"===e.substr(ae,2)?(n="::",ae+=2):(n=i,0===fe&&we(w));n!==i&&(r=function(){var e,t,n;if(e=ae,t=[],(n=Ae())!==i)for(;n!==i;)t.push(n),n=Ae();else t=i;t!==i&&(se=e,t=b({type:0,tokens:t},$e()));return e=t}())!==i?(se=t,t=n=r):(ae=t,t=i);t===i&&(t=ae,se=ae,Ve.push("numberArgStyle"),(n=(n=!0)?void 0:i)!==i&&(r=Oe())!==i?(se=t,n=_(r),t=n):(ae=t,t=i));return t}())!==i?s=c=[c,f,d]:(ae=s,s=i),s===i&&(s=null),s!==i&&(c=Re())!==i?(125===e.charCodeAt(ae)?(f="}",ae++):(f=i,0===fe&&we(u)),f!==i?(se=t,n=S(r,a,s),t=n):(ae=t,t=i)):(ae=t,t=i)):(ae=t,t=i)):(ae=t,t=i)):(ae=t,t=i);return t}())===i&&(t=function(){var t,n,r,o,a,s,c,f,d;t=ae,123===e.charCodeAt(ae)?(n="{",ae++):(n=i,0===fe&&we(l));n!==i&&Re()!==i&&(r=Fe())!==i&&Re()!==i?(44===e.charCodeAt(ae)?(o=",",ae++):(o=i,0===fe&&we(k)),o!==i&&Re()!==i?("date"===e.substr(ae,4)?(a="date",ae+=4):(a=i,0===fe&&we(C)),a===i&&("time"===e.substr(ae,4)?(a="time",ae+=4):(a=i,0===fe&&we(j))),a!==i&&Re()!==i?(s=ae,44===e.charCodeAt(ae)?(c=",",ae++):(c=i,0===fe&&we(k)),c!==i&&(f=Re())!==i&&(d=function(){var t,n,r;t=ae,"::"===e.substr(ae,2)?(n="::",ae+=2):(n=i,0===fe&&we(w));n!==i&&(r=function(){var t,n,r,o;t=ae,n=ae,r=[],(o=Me())===i&&(o=Ie());if(o!==i)for(;o!==i;)r.push(o),(o=Me())===i&&(o=Ie());else r=i;n=r!==i?e.substring(n,ae):r;n!==i&&(se=t,n=b({type:1,pattern:n},$e()));return t=n}())!==i?(se=t,t=n=r):(ae=t,t=i);t===i&&(t=ae,se=ae,Ve.push("dateOrTimeArgStyle"),(n=(n=!0)?void 0:i)!==i&&(r=Oe())!==i?(se=t,n=_(r),t=n):(ae=t,t=i));return t}())!==i?s=c=[c,f,d]:(ae=s,s=i),s===i&&(s=null),s!==i&&(c=Re())!==i?(125===e.charCodeAt(ae)?(f="}",ae++):(f=i,0===fe&&we(u)),f!==i?(se=t,n=S(r,a,s),t=n):(ae=t,t=i)):(ae=t,t=i)):(ae=t,t=i)):(ae=t,t=i)):(ae=t,t=i);return t}());return t}())===i&&(t=function(){var t,n,o,a,s,c,f,d,p,h,m;t=ae,123===e.charCodeAt(ae)?(n="{",ae++):(n=i,0===fe&&we(l));if(n!==i)if(Re()!==i)if((o=Fe())!==i)if(Re()!==i)if(44===e.charCodeAt(ae)?(a=",",ae++):(a=i,0===fe&&we(k)),a!==i)if(Re()!==i)if("plural"===e.substr(ae,6)?(s="plural",ae+=6):(s=i,0===fe&&we(D)),s===i&&("selectordinal"===e.substr(ae,13)?(s="selectordinal",ae+=13):(s=i,0===fe&&we(R))),s!==i)if(Re()!==i)if(44===e.charCodeAt(ae)?(c=",",ae++):(c=i,0===fe&&we(k)),c!==i)if(Re()!==i)if(f=ae,"offset:"===e.substr(ae,7)?(d="offset:",ae+=7):(d=i,0===fe&&we(N)),d!==i&&(p=Re())!==i&&(h=Ne())!==i?f=d=[d,p,h]:(ae=f,f=i),f===i&&(f=null),f!==i)if((d=Re())!==i){if(p=[],(h=Ce())!==i)for(;h!==i;)p.push(h),h=Ce();else p=i;p!==i&&(h=Re())!==i?(125===e.charCodeAt(ae)?(m="}",ae++):(m=i,0===fe&&we(u)),m!==i?(se=t,n=function(e,t,n,i){return b({type:r.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:i.reduce((function(e,t){var n=t.id,r=t.value,i=t.location;return n in e&&he('Duplicate option "'+n+'" in plural element: "'+de()+'"',pe()),e[n]={value:r,location:i},e}),{})},$e())}(o,s,f,p),t=n):(ae=t,t=i)):(ae=t,t=i)}else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;return t}())===i&&(t=function(){var t,n,o,a,s,c,f,d,p;t=ae,123===e.charCodeAt(ae)?(n="{",ae++):(n=i,0===fe&&we(l));if(n!==i)if(Re()!==i)if((o=Fe())!==i)if(Re()!==i)if(44===e.charCodeAt(ae)?(a=",",ae++):(a=i,0===fe&&we(k)),a!==i)if(Re()!==i)if("select"===e.substr(ae,6)?(s="select",ae+=6):(s=i,0===fe&&we(B)),s!==i)if(Re()!==i)if(44===e.charCodeAt(ae)?(c=",",ae++):(c=i,0===fe&&we(k)),c!==i)if(Re()!==i){if(f=[],(d=Pe())!==i)for(;d!==i;)f.push(d),d=Pe();else f=i;f!==i&&(d=Re())!==i?(125===e.charCodeAt(ae)?(p="}",ae++):(p=i,0===fe&&we(u)),p!==i?(se=t,n=function(e,t){return b({type:r.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,i=t.location;return n in e&&he('Duplicate option "'+n+'" in select element: "'+de()+'"',pe()),e[n]={value:r,location:i},e}),{})},$e())}(o,f),t=n):(ae=t,t=i)):(ae=t,t=i)}else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;else ae=t,t=i;return t}())===i&&(t=function(){var t,n;t=ae,35===e.charCodeAt(ae)?(n="#",ae++):(n=i,0===fe&&we(s));n!==i&&(se=t,n=b({type:r.pound},$e()));return t=n}()),t}function Oe(){var e,t,n;if(e=ae,t=[],(n=Be())===i&&(n=Le())===i&&(n=Ue()),n!==i)for(;n!==i;)t.push(n),(n=Be())===i&&(n=Le())===i&&(n=Ue());else t=i;return t!==i&&(se=e,t=t.join("")),e=t}function Ee(){var t,n,r,o,a;if(fe++,t=ae,n=[],r=ae,o=ae,fe++,(a=je())===i&&(d.test(e.charAt(ae))?(a=e.charAt(ae),ae++):(a=i,0===fe&&we(p))),fe--,a===i?o=void 0:(ae=o,o=i),o!==i?(e.length>ae?(a=e.charAt(ae),ae++):(a=i,0===fe&&we(h)),a!==i?r=o=[o,a]:(ae=r,r=i)):(ae=r,r=i),r!==i)for(;r!==i;)n.push(r),r=ae,o=ae,fe++,(a=je())===i&&(d.test(e.charAt(ae))?(a=e.charAt(ae),ae++):(a=i,0===fe&&we(p))),fe--,a===i?o=void 0:(ae=o,o=i),o!==i?(e.length>ae?(a=e.charAt(ae),ae++):(a=i,0===fe&&we(h)),a!==i?r=o=[o,a]:(ae=r,r=i)):(ae=r,r=i);else n=i;return t=n!==i?e.substring(t,ae):n,fe--,t===i&&(n=i,0===fe&&we(f)),t}function Te(){var t,n,r;return fe++,t=ae,47===e.charCodeAt(ae)?(n="/",ae++):(n=i,0===fe&&we(g)),n!==i&&(r=Ee())!==i?(se=t,t=n=r):(ae=t,t=i),fe--,t===i&&(n=i,0===fe&&we(m)),t}function Ae(){var e,t,n,r;if(fe++,e=ae,Re()!==i)if((t=Ee())!==i){for(n=[],r=Te();r!==i;)n.push(r),r=Te();n!==i?(se=e,e=function(e,t){return{stem:e,options:t}}(t,n)):(ae=e,e=i)}else ae=e,e=i;else ae=e,e=i;return fe--,e===i&&(i,0===fe&&we(v)),e}function Me(){var t,n,r,o;if(t=ae,39===e.charCodeAt(ae)?(n="'",ae++):(n=i,0===fe&&we(O)),n!==i){if(r=[],(o=Be())===i&&(E.test(e.charAt(ae))?(o=e.charAt(ae),ae++):(o=i,0===fe&&we(T))),o!==i)for(;o!==i;)r.push(o),(o=Be())===i&&(E.test(e.charAt(ae))?(o=e.charAt(ae),ae++):(o=i,0===fe&&we(T)));else r=i;r!==i?(39===e.charCodeAt(ae)?(o="'",ae++):(o=i,0===fe&&we(O)),o!==i?t=n=[n,r,o]:(ae=t,t=i)):(ae=t,t=i)}else ae=t,t=i;if(t===i)if(t=[],(n=Be())===i&&(A.test(e.charAt(ae))?(n=e.charAt(ae),ae++):(n=i,0===fe&&we(M))),n!==i)for(;n!==i;)t.push(n),(n=Be())===i&&(A.test(e.charAt(ae))?(n=e.charAt(ae),ae++):(n=i,0===fe&&we(M)));else t=i;return t}function Ie(){var t,n;if(t=[],I.test(e.charAt(ae))?(n=e.charAt(ae),ae++):(n=i,0===fe&&we(P)),n!==i)for(;n!==i;)t.push(n),I.test(e.charAt(ae))?(n=e.charAt(ae),ae++):(n=i,0===fe&&we(P));else t=i;return t}function Pe(){var t,n,r,o,a,s,c;return t=ae,Re()!==i&&(n=ze())!==i&&Re()!==i?(123===e.charCodeAt(ae)?(r="{",ae++):(r=i,0===fe&&we(l)),r!==i?(se=ae,Ve.push("select"),(!0?void 0:i)!==i&&(o=xe())!==i?(125===e.charCodeAt(ae)?(a="}",ae++):(a=i,0===fe&&we(u)),a!==i?(se=t,s=n,c=o,Ve.pop(),t=b({id:s,value:c},$e())):(ae=t,t=i)):(ae=t,t=i)):(ae=t,t=i)):(ae=t,t=i),t}function Ce(){var t,n,r,o,a,s,c;return t=ae,Re()!==i&&(n=function(){var t,n,r,o;return t=ae,n=ae,61===e.charCodeAt(ae)?(r="=",ae++):(r=i,0===fe&&we(L)),r!==i&&(o=Ne())!==i?n=r=[r,o]:(ae=n,n=i),(t=n!==i?e.substring(t,ae):n)===i&&(t=ze()),t}())!==i&&Re()!==i?(123===e.charCodeAt(ae)?(r="{",ae++):(r=i,0===fe&&we(l)),r!==i?(se=ae,Ve.push("plural"),(!0?void 0:i)!==i&&(o=xe())!==i?(125===e.charCodeAt(ae)?(a="}",ae++):(a=i,0===fe&&we(u)),a!==i?(se=t,s=n,c=o,Ve.pop(),t=b({id:s,value:c},$e())):(ae=t,t=i)):(ae=t,t=i)):(ae=t,t=i)):(ae=t,t=i),t}function je(){var t;return fe++,F.test(e.charAt(ae))?(t=e.charAt(ae),ae++):(t=i,0===fe&&we(q)),fe--,t===i&&(i,0===fe&&we(U)),t}function De(){var t;return fe++,V.test(e.charAt(ae))?(t=e.charAt(ae),ae++):(t=i,0===fe&&we(H)),fe--,t===i&&(i,0===fe&&we(z)),t}function Re(){var t,n,r;for(fe++,t=ae,n=[],r=je();r!==i;)n.push(r),r=je();return t=n!==i?e.substring(t,ae):n,fe--,t===i&&(n=i,0===fe&&we($)),t}function Ne(){var t,n,r,o,a;return fe++,t=ae,45===e.charCodeAt(ae)?(n="-",ae++):(n=i,0===fe&&we(W)),n===i&&(n=null),n!==i&&(r=qe())!==i?(se=t,o=n,t=n=(a=r)?o?-a:a:0):(ae=t,t=i),fe--,t===i&&(n=i,0===fe&&we(K)),t}function Be(){var t,n;return fe++,t=ae,"''"===e.substr(ae,2)?(n="''",ae+=2):(n=i,0===fe&&we(J)),n!==i&&(se=t,n="'"),fe--,(t=n)===i&&(n=i,0===fe&&we(G)),t}function Le(){var t,n,r,o,a,s;if(t=ae,39===e.charCodeAt(ae)?(n="'",ae++):(n=i,0===fe&&we(O)),n!==i)if((r=function(){var t,n,r,o;t=ae,n=ae,e.length>ae?(r=e.charAt(ae),ae++):(r=i,0===fe&&we(h));r!==i?(se=ae,(o=(o="{"===(a=r)||"}"===a||He()&&"#"===a)?void 0:i)!==i?n=r=[r,o]:(ae=n,n=i)):(ae=n,n=i);var a;t=n!==i?e.substring(t,ae):n;return t}())!==i){for(o=ae,a=[],"''"===e.substr(ae,2)?(s="''",ae+=2):(s=i,0===fe&&we(J)),s===i&&(E.test(e.charAt(ae))?(s=e.charAt(ae),ae++):(s=i,0===fe&&we(T)));s!==i;)a.push(s),"''"===e.substr(ae,2)?(s="''",ae+=2):(s=i,0===fe&&we(J)),s===i&&(E.test(e.charAt(ae))?(s=e.charAt(ae),ae++):(s=i,0===fe&&we(T)));(o=a!==i?e.substring(o,ae):a)!==i?(39===e.charCodeAt(ae)?(a="'",ae++):(a=i,0===fe&&we(O)),a===i&&(a=null),a!==i?(se=t,t=n=r+o.replace("''","'")):(ae=t,t=i)):(ae=t,t=i)}else ae=t,t=i;else ae=t,t=i;return t}function Ue(){var t,n,r,o;return t=ae,n=ae,e.length>ae?(r=e.charAt(ae),ae++):(r=i,0===fe&&we(h)),r!==i?(se=ae,(o=(o=Q(r))?void 0:i)!==i?n=r=[r,o]:(ae=n,n=i)):(ae=n,n=i),n===i&&(10===e.charCodeAt(ae)?(n="\n",ae++):(n=i,0===fe&&we(Y))),t=n!==i?e.substring(t,ae):n}function Fe(){var t,n;return fe++,t=ae,(n=qe())===i&&(n=ze()),t=n!==i?e.substring(t,ae):n,fe--,t===i&&(n=i,0===fe&&we(Z)),t}function qe(){var t,n,r,o,a;if(fe++,t=ae,48===e.charCodeAt(ae)?(n="0",ae++):(n=i,0===fe&&we(ee)),n!==i&&(se=t,n=0),(t=n)===i){if(t=ae,n=ae,te.test(e.charAt(ae))?(r=e.charAt(ae),ae++):(r=i,0===fe&&we(ne)),r!==i){for(o=[],re.test(e.charAt(ae))?(a=e.charAt(ae),ae++):(a=i,0===fe&&we(ie));a!==i;)o.push(a),re.test(e.charAt(ae))?(a=e.charAt(ae),ae++):(a=i,0===fe&&we(ie));o!==i?n=r=[r,o]:(ae=n,n=i)}else ae=n,n=i;n!==i&&(se=t,n=parseInt(n.join(""),10)),t=n}return fe--,t===i&&(n=i,0===fe&&we(X)),t}function ze(){var t,n,r,o,a;if(fe++,t=ae,n=[],r=ae,o=ae,fe++,(a=je())===i&&(a=De()),fe--,a===i?o=void 0:(ae=o,o=i),o!==i?(e.length>ae?(a=e.charAt(ae),ae++):(a=i,0===fe&&we(h)),a!==i?r=o=[o,a]:(ae=r,r=i)):(ae=r,r=i),r!==i)for(;r!==i;)n.push(r),r=ae,o=ae,fe++,(a=je())===i&&(a=De()),fe--,a===i?o=void 0:(ae=o,o=i),o!==i?(e.length>ae?(a=e.charAt(ae),ae++):(a=i,0===fe&&we(h)),a!==i?r=o=[o,a]:(ae=r,r=i)):(ae=r,r=i);else n=i;return t=n!==i?e.substring(t,ae):n,fe--,t===i&&(n=i,0===fe&&we(oe)),t}var Ve=["root"];function He(){return"plural"===Ve[Ve.length-1]}function $e(){return t&&t.captureLocation?{location:pe()}:{}}if((n=a())!==i&&ae===e.length)return n;throw n!==i&&ae<e.length&&we({type:"end"}),_e(ue,le<e.length?e.charAt(le):null,le<e.length?ve(le,le+1):ve(le,le))},v=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},w=/(^|[^\\])#/g;function _(e,t){var n=g(e,t);return t&&!1===t.normalizeHashtagInPlural||function e(t){t.forEach((function(t){(u(t)||l(t))&&Object.keys(t.options).forEach((function(n){for(var r,o=t.options[n],a=-1,s=void 0,c=0;c<o.value.length;c++){var l=o.value[c];if(i(l)&&w.test(l.value)){a=c,s=l;break}}if(s){var u=s.value.replace(w,"$1{"+t.value+", number}"),f=g(u);(r=o.value).splice.apply(r,v([a,1],f))}e(o.value)}))}))}(n),n}var k=n(229),x=function(){return(x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},S=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function O(e){var t={};return e.replace(S,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""})),t}var E=/^\.(?:(0+)(\+|#+)?)?$/g,T=/^(@+)?(\+|#+)?$/g;function A(e){var t={};return e.replace(T,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function M(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function I(e){var t=M(e);return t||{}}function P(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=x(x(x({},t),{notation:"scientific"}),i.options.reduce((function(e,t){return x(x({},e),I(t))}),{}));continue;case"engineering":t=x(x(x({},t),{notation:"engineering"}),i.options.reduce((function(e,t){return x(x({},e),I(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue}if(E.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(E,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),i.options.length&&(t=x(x({},t),A(i.options[0])))}else if(T.test(i.stem))t=x(x({},t),A(i.stem));else{var o=M(i.stem);o&&(t=x(x({},t),o))}}return t}var C,j=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},R=function(e){function t(t,n){var r=e.call(this,t)||this;return r.variableId=n,r}return j(t,e),t}(Error);function N(e,t,n,r,h,m,b){if(1===e.length&&i(e[0]))return[{type:0,value:e[0].value}];for(var y,g=[],v=0,w=e;v<w.length;v++){var _=w[v];if(i(_))g.push({type:0,value:_.value});else if(f(_))"number"==typeof m&&g.push({type:0,value:n.getNumberFormat(t).format(m)});else{var k=_.value;if(!h||!(k in h))throw new R('The intl string context variable "'+k+'" was not provided to the string "'+b+'"');var x=h[k];if(o(_))x&&"string"!=typeof x&&"number"!=typeof x||(x="string"==typeof x||"number"==typeof x?String(x):""),g.push({type:1,value:x});else if(s(_)){var S="string"==typeof _.style?r.date[_.style]:void 0;g.push({type:0,value:n.getDateTimeFormat(t,S).format(x)})}else if(c(_)){S="string"==typeof _.style?r.time[_.style]:p(_.style)?O(_.style.pattern):void 0;g.push({type:0,value:n.getDateTimeFormat(t,S).format(x)})}else if(a(_)){S="string"==typeof _.style?r.number[_.style]:d(_.style)?P(_.style.tokens):void 0;g.push({type:0,value:n.getNumberFormat(t,S).format(x)})}else if(l(_)){if(!(E=_.options[x]||_.options.other))throw new RangeError('Invalid values for "'+_.value+'": "'+x+'". Options are "'+Object.keys(_.options).join('", "')+'"');g.push.apply(g,N(E.value,t,n,r,h))}else if(u(_)){var E;if(!(E=_.options["="+x])){if(!Intl.PluralRules)throw new R('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');var T=n.getPluralRules(t,{type:_.pluralType}).select(x-(_.offset||0));E=_.options[T]||_.options.other}if(!E)throw new RangeError('Invalid values for "'+_.value+'": "'+x+'". Options are "'+Object.keys(_.options).join('", "')+'"');g.push.apply(g,N(E.value,t,n,r,h,x-(_.offset||0)))}else;}}return(y=g).length<2?y:y.reduce((function(e,t){var n=e[e.length-1];return n&&0===n.type&&0===t.type?n.value+=t.value:e.push(t),e}),[])}var B=/@@(\d+_\d+)@@/g,L=0;function U(e,t){return e.split(B).filter(Boolean).map((function(e){return null!=t[e]?t[e]:e})).reduce((function(e,t){return e.length&&"string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e}),[])}var F=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,q=Date.now()+"@@",z=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function V(e,t,n,r,i,o){var a=N(e,t,n,r,i,void 0,o),s={},c=a.reduce((function(e,t){if(0===t.type)return e+t.value;var n=Date.now()+"_"+ ++L;return s[n]=t.value,e+"@@"+n+"@@"}),"");if(!F.test(c))return U(c,s);if(!i)throw new R("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new R("Cannot format XML message without DOMParser");C||(C=new DOMParser);var l=C.parseFromString('<formatted-message id="'+q+'">'+c+"</formatted-message>","text/html").getElementById(q);if(!l)throw new R("Malformed HTML message "+c);var u=Object.keys(i).filter((function(e){return!!l.getElementsByTagName(e).length}));if(!u.length)return U(c,s);var f=u.filter((function(e){return e!==e.toLowerCase()}));if(f.length)throw new R("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(l.childNodes).reduce((function(e,t){return e.concat(function e(t,n,r){var i=t.tagName,o=t.outerHTML,a=t.textContent,s=t.childNodes;if(!i)return U(a||"",n);i=i.toLowerCase();var c=~z.indexOf(i),l=r[i];if(l&&c)throw new R(i+" is a self-closing tag and can not be used, please use another tag name.");if(!s.length)return[o];var u=Array.prototype.slice.call(s).reduce((function(t,i){return t.concat(e(i,n,r))}),[]);return l?"function"==typeof l?[l.apply(void 0,u)]:[l]:D(["<"+i+">"],u,["</"+i+">"])}(t,s,i))}),[])}var H=function(){return(H=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function $(e,t){return t?Object.keys(e).reduce((function(n,r){var i,o;return n[r]=(i=e[r],(o=t[r])?H(H(H({},i||{}),o||{}),Object.keys(i).reduce((function(e,t){return e[t]=H(H({},i[t]),o[t]||{}),e}),{})):i),n}),H({},e)):e}var K=function(){function e(t,n,r,i){var o,a=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return function(e,t,n,r,i,o){var a=N(e,t,n,r,i,void 0,o);return 1===a.length?a[0].value:a.reduce((function(e,t){return e+t.value}),"")}(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.formatToParts=function(e){return N(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.formatHTMLMessage=function(e){return V(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=$(e.formats,r),this.locales=n,this.formatters=i&&i.formatters||(void 0===(o=this.formatterCache)&&(o={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Object(k.a)(Intl.NumberFormat,o.number),getDateTimeFormat:Object(k.a)(Intl.DateTimeFormat,o.dateTime),getPluralRules:Object(k.a)(Intl.PluralRules,o.pluralRules)})}return e.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,e.__parse=_,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();t.a=K},function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var r=n(0),i=n.n(r),o=n(14),a=n(55),s=n(869),c=n(388),l=n(20),u=n(227),f=n.n(u),d=n(947),p=n(1070),h=n(948),m=n(949),b=n(946),y=n(897),g=n(402),v=n(844),w=n.n(v),_=n(21),k=n(87),x=n(34),S=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const O=Object(o.a)(({closeModal:e,recipientConfig:t,memoConfig:n,addressBookConfig:o,index:l})=>{const u=Object(s.a)(),[f,d]=Object(r.useState)("");return Object(r.useEffect)(()=>{if(l>=0){const e=o.addressBookDatas[l];d(e.name),t.setRawRecipient(e.address),n.setMemo(e.memo)}},[o.addressBookDatas,l,n,t]),i.a.createElement(a.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:l>=0?u.formatMessage({id:"setting.address-book.edit-address.title"}):u.formatMessage({id:"setting.address-book.add-address.title"}),onBackButton:()=>{t.setRawRecipient(""),n.setMemo(""),e()}},i.a.createElement("form",{style:{display:"flex",flexDirection:"column",height:"100%"}},i.a.createElement(x.e,{type:"text",label:u.formatMessage({id:"setting.address-book.name"}),autoComplete:"off",value:f,onChange:e=>{d(e.target.value)}}),i.a.createElement(x.a,{recipientConfig:t,label:u.formatMessage({id:"setting.address-book.address"}),disableAddressBook:!0}),i.a.createElement(x.f,{memoConfig:n,label:u.formatMessage({id:"setting.address-book.memo"})}),i.a.createElement("div",{style:{flex:1}}),i.a.createElement(g.a,{type:"submit",color:"primary",disabled:!f||null!=t.getError()||null!=n.getError(),onClick:r=>S(void 0,void 0,void 0,(function*(){if(r.preventDefault(),r.stopPropagation(),!t.recipient)throw new Error("Invalid address");l<0?yield o.addAddressBook({name:f,address:t.recipient,memo:n.memo}):yield o.editAddressBookAt(l,{name:f,address:t.recipient,memo:n.memo}),t.setRawRecipient(""),n.setMemo(""),e()}))},i.a.createElement(c.a,{id:"setting.address-book.button.save"}))))});var E=n(63),T=n(11),A=n(150),M=n(46),I=n(208),P=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const C=Object(o.a)(({onBackButton:e,hideChainDropdown:t,selectHandler:o,ibcChannelConfig:u})=>{const v=Object(s.a)(),x=Object(l.useHistory)(),{chainStore:S}=Object(_.b)(),C=S.current,[j,D]=Object(r.useState)((null==u?void 0:u.channel)?u.channel.counterpartyChainId:C.chainId),R=Object(M.useRecipientConfig)(S,j,I.c),N=Object(M.useMemoConfig)(S,j),B=Object(M.useAddressBookConfig)(new E.ExtensionKVStore("address-book"),S,j,o||{setRecipient:()=>{},setMemo:()=>{}}),[L,U]=Object(r.useState)(!1),[F,q]=Object(r.useState)(!1),[z,V]=Object(r.useState)(-1),H=Object(A.b)();return i.a.createElement(a.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:v.formatMessage({id:"main.menu.address-book"}),onBackButton:e||(()=>{x.goBack()})},i.a.createElement(d.a,{isOpen:F,backdrop:!1,className:w.a.fullModal,wrapClassName:w.a.fullModal,contentClassName:w.a.fullModal},i.a.createElement(p.a,{className:w.a.fullModal},i.a.createElement(O,{closeModal:()=>{q(!1),V(-1)},recipientConfig:R,memoConfig:N,addressBookConfig:B,index:z}))),i.a.createElement("div",{className:f.a.container},i.a.createElement("div",{className:w.a.innerTopContainer},t?null:i.a.createElement(h.a,{isOpen:L,toggle:()=>U(!L)},i.a.createElement(m.a,{caret:!0,style:{boxShadow:"none"}},S.getChain(j).chainName),i.a.createElement(b.a,null,S.chainInfos.map(e=>i.a.createElement(y.a,{key:e.chainId,onClick:()=>{D(e.chainId)}},e.chainName)))),i.a.createElement("div",{style:{flex:1}}),i.a.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center"}},i.a.createElement(g.a,{color:"primary",size:"sm",onClick:e=>{e.preventDefault(),e.stopPropagation(),q(!0)}},i.a.createElement("i",{className:"fas fa-plus",style:{marginRight:"4px",fontSize:"8px"}}),i.a.createElement(c.a,{id:"setting.address-book.button.add"})))),i.a.createElement("div",{style:{flex:"1 1 0",overflowY:"auto"}},B.addressBookDatas.map((t,r)=>{return i.a.createElement(k.a,{key:r.toString(),title:t.name,paragraph:0===t.address.indexOf(S.getChain(j).bech32Config.bech32PrefixAccAddr)?T.Bech32Address.shortenAddress(t.address,34):t.address,subParagraph:t.memo,icons:(a=r,[i.a.createElement("i",{key:"edit",className:"fas fa-pen",style:{cursor:"pointer"},onClick:e=>{e.preventDefault(),e.stopPropagation(),q(!0),V(a)}}),i.a.createElement("i",{key:"remove",className:"fas fa-trash",style:{cursor:"pointer"},onClick:e=>P(void 0,void 0,void 0,(function*(){e.preventDefault(),e.stopPropagation(),(yield H.confirm({img:i.a.createElement("img",{src:n(1358),style:{height:"80px"}}),title:v.formatMessage({id:"setting.address-book.confirm.delete-address.title"}),paragraph:v.formatMessage({id:"setting.address-book.confirm.delete-address.paragraph"})}))&&(q(!1),V(-1),yield B.removeAddressBook(a))}))})]),"data-index":r,onClick:t=>{t.preventDefault(),t.stopPropagation(),B.selectAddressAt(r),e&&e()},style:{cursor:o?void 0:"auto"}});var a}))))})},function(e,t,n){var r=n(37),i=n(1343);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";var r=s(n(1345)),i=s(n(1352)),o=s(n(999)),a=s(n(997));function s(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:o.default,ReplaceTransition:i.default,CSSTransition:r.default}},function(e,t,n){var r=n(37),i=n(1527);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(0),a=n.n(o),s=n(1),c=n.n(s),l=n(10),u=n.n(l),f=n(8),d={children:c.a.node,tag:f.p,className:c.a.string,cssModule:c.a.object,valid:c.a.bool,tooltip:c.a.bool},p={tag:"div",valid:void 0},h=function(e){var t=e.className,n=e.cssModule,o=e.valid,s=e.tooltip,c=e.tag,l=Object(i.a)(e,["className","cssModule","valid","tooltip","tag"]),d=s?"tooltip":"feedback",p=Object(f.l)(u()(t,o?"valid-"+d:"invalid-"+d),n);return a.a.createElement(c,Object(r.a)({},l,{className:p}))};h.propTypes=d,h.defaultProps=p,t.a=h},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(0),a=n.n(o),s=n(1),c=n.n(s),l=n(10),u=n.n(l),f=n(8),d={children:c.a.node,inline:c.a.bool,tag:f.p,color:c.a.string,className:c.a.string,cssModule:c.a.object},p=function(e){var t=e.className,n=e.cssModule,o=e.inline,s=e.color,c=e.tag,l=Object(i.a)(e,["className","cssModule","inline","color","tag"]),d=Object(f.l)(u()(t,!o&&"form-text",!!s&&"text-"+s),n);return a.a.createElement(c,Object(r.a)({},l,{className:d}))};p.propTypes=d,p.defaultProps={tag:"small",color:"muted"},t.a=p},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(29),a=n(53),s=n(0),c=n.n(s),l=n(1),u=n.n(l),f=n(10),d=n.n(f),p=n(416),h=n(8),m={children:u.a.node,active:u.a.bool,disabled:u.a.bool,divider:u.a.bool,tag:h.p,header:u.a.bool,onClick:u.a.func,className:u.a.string,cssModule:u.a.object,toggle:u.a.bool,text:u.a.bool},b=function(e){function t(t){var n;return(n=e.call(this,t)||this).onClick=n.onClick.bind(Object(o.a)(n)),n.getTabIndex=n.getTabIndex.bind(Object(o.a)(n)),n}Object(a.a)(t,e);var n=t.prototype;return n.onClick=function(e){var t=this.props,n=t.disabled,r=t.header,i=t.divider,o=t.text;n||r||i||o?e.preventDefault():(this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e))},n.getTabIndex=function(){var e=this.props,t=e.disabled,n=e.header,r=e.divider,i=e.text;return t||n||r||i?"-1":"0"},n.render=function(){var e=this.getTabIndex(),t=e>-1?"menuitem":void 0,n=Object(h.m)(this.props,["toggle"]),o=n.className,a=n.cssModule,s=n.divider,l=n.tag,u=n.header,f=n.active,p=n.text,m=Object(i.a)(n,["className","cssModule","divider","tag","header","active","text"]),b=Object(h.l)(d()(o,{disabled:m.disabled,"dropdown-item":!s&&!u&&!p,active:f,"dropdown-header":u,"dropdown-divider":s,"dropdown-item-text":p}),a);return"button"===l&&(u?l="h6":s?l="div":m.href?l="a":p&&(l="span")),c.a.createElement(l,Object(r.a)({type:"button"===l&&(m.onClick||this.props.toggle)?"button":void 0},m,{tabIndex:e,role:t,className:b,onClick:this.onClick}))},t}(c.a.Component);b.propTypes=m,b.defaultProps={tag:"button",toggle:!0},b.contextType=p.a,t.a=b},,,function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.useGasConfig=t.GasConfig=void 0;const i=n(836),o=n(5),a=n(0);class s extends i.TxChainSetter{constructor(e,t,n=0){super(e,t),this._gas=n,o.makeObservable(this)}get gas(){return this._gas}setGas(e){this._gas=Math.floor(e)}getError(){if(this.gas<=0)return new Error("Gas should be greater than 0")}}r([o.observable],s.prototype,"_gas",void 0),r([o.action],s.prototype,"setGas",null),t.GasConfig=s;t.useGasConfig=(e,t,n=0)=>{const[r]=a.useState(()=>new s(e,t,n));return r.setChain(t),r}},function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},i=/%[sdj%]/g;t.format=function(e){if(!y(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(s(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,a=String(e).replace(i,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),c=r[n];n<o;c=r[++n])m(c)||!w(c)?a+=" "+c:a+=" "+s(c);return a},t.deprecate=function(n,r){if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return t.deprecate(n,r).apply(this,arguments)};var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(r);e.traceDeprecation?console.trace(r):console.error(r),i=!0}return n.apply(this,arguments)}};var o,a={};function s(e,n){var r={seen:[],stylize:l};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),h(n)?r.showHidden=n:n&&t._extend(r,n),g(r.showHidden)&&(r.showHidden=!1),g(r.depth)&&(r.depth=2),g(r.colors)&&(r.colors=!1),g(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),u(r,e,r.depth)}function c(e,t){var n=s.styles[t];return n?"\e["+s.colors[n][0]+"m"+e+"\e["+s.colors[n][1]+"m":e}function l(e,t){return e}function u(e,n,r){if(e.customInspect&&n&&x(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return y(i)||(i=u(e,i,r)),i}var o=function(e,t){if(g(t))return e.stylize("undefined","undefined");if(y(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(b(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),k(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(x(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(v(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return e.stylize(Date.prototype.toString.call(n),"date");if(k(n))return f(n)}var l,w="",S=!1,O=["{","}"];(p(n)&&(S=!0,O=["[","]"]),x(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return v(n)&&(w=" "+RegExp.prototype.toString.call(n)),_(n)&&(w=" "+Date.prototype.toUTCString.call(n)),k(n)&&(w=" "+f(n)),0!==a.length||S&&0!=n.length?r<0?v(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=S?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)A(t,String(a))?o.push(d(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(d(e,t,n,r,i,!0))})),o}(e,n,r,s,a):a.map((function(t){return d(e,n,r,s,t,S)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,w,O)):O[0]+w+O[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function d(e,t,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),A(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(c.value)<0?(s=m(n)?u(e,c.value,null):u(e,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+s.split("\n").map((function(e){return"   "+e})).join("\n")):s=e.stylize("[Circular]","special")),g(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function p(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function b(e){return"number"==typeof e}function y(e){return"string"==typeof e}function g(e){return void 0===e}function v(e){return w(e)&&"[object RegExp]"===S(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===S(e)}function k(e){return w(e)&&("[object Error]"===S(e)||e instanceof Error)}function x(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(g(o)&&(o=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=h,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=b,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=g,t.isRegExp=v,t.isObject=w,t.isDate=_,t.isError=k,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(1115);var E=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function T(){var e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),E[e.getMonth()],t].join(" ")}function A(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",T(),t.format.apply(t,arguments))},t.inherits=n(1116),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),M&&Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,r(e))},t.promisify.custom=M,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r<arguments.length;r++)n.push(arguments[r]);var i=n.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};t.apply(this,n).then((function(t){e.nextTick(a,null,t)}),(function(t){e.nextTick(I,t,a)}))}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,r(t)),n}}).call(this,n(13))},function(e,t){const n="0123456789abcdef".split(""),r=[1,256,65536,16777216],i=[0,8,16,24],o=[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],a=e=>{var t,n,r,i,a,s,c,l,u,f,d,p,h,m,b,y,g,v,w,_,k,x,S,O,E,T,A,M,I,P,C,j,D,R,N,B,L,U,F,q,z,V,H,$,K,W,G,J,Q,Y,Z,X,ee,te,ne,re,ie,oe,ae,se,ce,le,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|c>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|s>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|u>>>31),n=a^(u<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=s^(f<<1|d>>>31),n=c^(d<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(p<<1|h>>>31),n=u^(h<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|a>>>31),n=d^(a<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,j=e[45]<<29|e[44]>>>3,D=e[44]<<29|e[45]>>>3,O=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,A=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~y&v,e[1]=b^~g&w,e[10]=O^~T&M,e[11]=E^~A&I,e[20]=R^~B&U,e[21]=N^~L&F,e[30]=$^~W&J,e[31]=K^~G&Q,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=y^~v&_,e[3]=g^~w&k,e[12]=T^~M&P,e[13]=A^~I&C,e[22]=B^~U&q,e[23]=L^~F&z,e[32]=W^~J&Y,e[33]=G^~Q&Z,e[42]=re^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&x,e[5]=w^~k&S,e[14]=M^~P&j,e[15]=I^~C&D,e[24]=U^~q&V,e[25]=F^~z&H,e[34]=J^~Y&X,e[35]=Q^~Z&ee,e[44]=oe^~se&le,e[45]=ae^~ce&ue,e[6]=_^~x&m,e[7]=k^~S&b,e[16]=P^~j&O,e[17]=C^~D&E,e[26]=q^~V&R,e[27]=z^~H&N,e[36]=Y^~X&$,e[37]=Z^~ee&K,e[46]=se^~le&te,e[47]=ce^~ue&ne,e[8]=x^~m&y,e[9]=S^~b&g,e[18]=j^~O&T,e[19]=D^~E&A,e[28]=V^~R&B,e[29]=H^~N&L,e[38]=X^~$&W,e[39]=ee^~K&G,e[48]=le^~te&re,e[49]=ue^~ne&ie,e[0]^=o[r],e[1]^=o[r+1]},s=e=>t=>{var o;if("0x"===t.slice(0,2)){o=[];for(var s=2,c=t.length;s<c;s+=2)o.push(parseInt(t.slice(s,s+2),16))}else o=t;return((e,t)=>{for(var o,s=t.length,c=e.blocks,l=e.blockCount<<2,u=e.blockCount,f=e.outputBlocks,d=e.s,p=0;p<s;){if(e.reset)for(e.reset=!1,c[0]=e.block,b=1;b<u+1;++b)c[b]=0;if("string"!=typeof t)for(b=e.start;p<s&&b<l;++p)c[b>>2]|=t[p]<<i[3&b++];else for(b=e.start;p<s&&b<l;++p)(o=t.charCodeAt(p))<128?c[b>>2]|=o<<i[3&b++]:o<2048?(c[b>>2]|=(192|o>>6)<<i[3&b++],c[b>>2]|=(128|63&o)<<i[3&b++]):o<55296||o>=57344?(c[b>>2]|=(224|o>>12)<<i[3&b++],c[b>>2]|=(128|o>>6&63)<<i[3&b++],c[b>>2]|=(128|63&o)<<i[3&b++]):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++p)),c[b>>2]|=(240|o>>18)<<i[3&b++],c[b>>2]|=(128|o>>12&63)<<i[3&b++],c[b>>2]|=(128|o>>6&63)<<i[3&b++],c[b>>2]|=(128|63&o)<<i[3&b++]);if(e.lastByteIndex=b,b>=l){for(e.start=b-l,e.block=c[u],b=0;b<u;++b)d[b]^=c[b];a(d),e.reset=!0}else e.start=b}if(c[(b=e.lastByteIndex)>>2]|=r[3&b],e.lastByteIndex===l)for(c[0]=c[u],b=1;b<u+1;++b)c[b]=0;for(c[u-1]|=2147483648,b=0;b<u;++b)d[b]^=c[b];a(d);for(var h,m="",b=0,y=0;y<f;){for(b=0;b<u&&y<f;++b,++y)h=d[b],m+=n[h>>4&15]+n[15&h]+n[h>>12&15]+n[h>>8&15]+n[h>>20&15]+n[h>>16&15]+n[h>>28&15]+n[h>>24&15];y%u==0&&(a(d),b=0)}return"0x"+m})((e=>{return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:(t=[0,0,0,0,0,0,0,0,0,0],[].concat(t,t,t,t,t))};var t})(e),o)};e.exports={keccak256:s(256),keccak512:s(512),keccak256s:s(256),keccak512s:s(512)}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},l.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,r);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||c(this,o);else{for(var s=0,l=[],u=a.length;s<u;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=1===l.length?l[0]:l:c(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&c(this,t)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.listeners={}}return e.prototype.addEventListener=function(e,t){e=e.toLowerCase(),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t.handleEvent||t)},e.prototype.removeEventListener=function(e,t){if(e=e.toLowerCase(),this.listeners[e]){var n=this.listeners[e].indexOf(t.handleEvent||t);n<0||this.listeners[e].splice(n,1)}},e.prototype.dispatchEvent=function(e){var t=e.type.toLowerCase();if(e.target=this,this.listeners[t])for(var n=0,r=this.listeners[t];n<r.length;n++){r[n].call(this,e)}var i=this["on"+t];return i&&i.call(this,e),!0},e}();t.XMLHttpRequestEventTarget=r},function(e,t,n){"use strict";const{Buffer:r}=n(2),i=n(1170),o=n(853),a=n(1176);function s(e){t.decode(e)}t.names=a.names,t.codes=a.codes,t.defaultLengths=a.defaultLengths,t.toHexString=function(e){if(!r.isBuffer(e))throw new Error("must be passed a buffer");return e.toString("hex")},t.fromHexString=function(e){return r.from(e,"hex")},t.toB58String=function(e){if(!r.isBuffer(e))throw new Error("must be passed a buffer");return i.encode("base58btc",e).toString().slice(1)},t.fromB58String=function(e){let t=e;return r.isBuffer(e)&&(t=e.toString()),i.decode("z"+t)},t.decode=function(e){if(!r.isBuffer(e))throw new Error("multihash must be a Buffer");if(e.length<2)throw new Error("multihash too short. must be > 2 bytes.");const n=o.decode(e);if(!t.isValidCode(n))throw new Error("multihash unknown function code: 0x"+n.toString(16));e=e.slice(o.decode.bytes);const i=o.decode(e);if(i<0)throw new Error("multihash invalid length: "+i);if((e=e.slice(o.decode.bytes)).length!==i)throw new Error("multihash length inconsistent: 0x"+e.toString("hex"));return{code:n,name:a.codes[n],length:i,digest:e}},t.encode=function(e,n,i){if(!e||void 0===n)throw new Error("multihash encode requires at least two args: digest, code");const a=t.coerceCode(n);if(!r.isBuffer(e))throw new Error("digest should be a Buffer");if(null==i&&(i=e.length),i&&e.length!==i)throw new Error("digest length should be equal to specified length.");return r.concat([r.from(o.encode(a)),r.from(o.encode(i)),e])},t.coerceCode=function(e){let n=e;if("string"==typeof e){if(void 0===a.names[e])throw new Error("Unrecognized hash function named: "+e);n=a.names[e]}if("number"!=typeof n)throw new Error("Hash function code should be a number. Got: "+n);if(void 0===a.codes[n]&&!t.isAppCode(n))throw new Error("Unrecognized function code: "+n);return n},t.isAppCode=function(e){return e>0&&e<16},t.isValidCode=function(e){return!!t.isAppCode(e)||!!a.codes[e]},t.validate=s,t.prefix=function(e){return s(e),e.slice(0,2)}},function(e,t,n){n(1193);const r=(e,t)=>parseInt(e.slice(2*t+2,2*t+4),16),i=e=>(e.length-2)/2,o=(e,t)=>t.length===2*e+2?t:o(e,"0x0"+t.slice(2)),a=(e,t)=>t.length===2*e+2?t:a(e,t+"0"),s=e=>{let t=[];for(let n=2,r=e.length;n<r;n+=2)t.push(parseInt(e.slice(n,n+2),16));return t},c=e=>{let t="0x";for(let n=0,r=e.length;n<r;++n){let r=e[n];t+=(r<16?"0":"")+r.toString(16)}return t};e.exports={random:e=>{let t;t="undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues?window.crypto.getRandomValues(new Uint8Array(e)):n(72).randomBytes(e);let r="0x";for(let n=0;n<e;++n)r+=("00"+t[n].toString(16)).slice(-2);return r},length:i,concat:(e,t)=>e.concat(t.slice(2)),flatten:e=>"0x"+e.reduce((e,t)=>e+t.slice(2),""),slice:(e,t,n)=>"0x"+n.slice(2*e+2,2*t+2),reverse:e=>{let t="0x";for(let n=0,r=i(e);n<r;++n)t+=e.slice(2*(r-n),2*(r-n+1));return t},pad:o,padRight:a,fromAscii:e=>{let t="0x";for(let n=0;n<e.length;++n)t+=("00"+e.charCodeAt(n).toString(16)).slice(-2);return t},toAscii:e=>{let t="";for(let n=2;n<e.length;n+=2)t+=String.fromCharCode(parseInt(e.slice(n,n+2),16));return t},fromString:e=>{const t=e=>{const t=e.toString(16);return t.length<2?"0"+t:t};let n="0x";for(let r=0;r!=e.length;r++){let i=e.charCodeAt(r);if(i<128)n+=t(i);else{if(i<2048)n+=t(i>>6|192);else{if(i>55295&&i<56320){if(++r==e.length)return null;let o=e.charCodeAt(r);if(o<56320||o>57343)return null;i=65536+((1023&i)<<10)+(1023&o),n+=t(i>>18|240),n+=t(i>>12&63|128)}else n+=t(i>>12|224);n+=t(i>>6&63|128)}n+=t(63&i|128)}}return n},toString:e=>{let t="",n=0,o=i(e);for(;n<o;){let i=r(e,n++);if(i>127){if(i>191&&i<224){if(n>=o)return null;i=(31&i)<<6|63&r(e,n)}else if(i>223&&i<240){if(n+1>=o)return null;i=(15&i)<<12|(63&r(e,n))<<6|63&r(e,++n)}else{if(!(i>239&&i<248))return null;if(n+2>=o)return null;i=(7&i)<<18|(63&r(e,n))<<12|(63&r(e,++n))<<6|63&r(e,++n)}++n}if(i<=65535)t+=String.fromCharCode(i);else{if(!(i<=1114111))return null;i-=65536,t+=String.fromCharCode(i>>10|55296),t+=String.fromCharCode(1023&i|56320)}}return t},fromNumber:e=>{let t=e.toString(16);return t.length%2==0?"0x"+t:"0x0"+t},toNumber:e=>parseInt(e.slice(2),16),fromNat:e=>"0x0"===e?"0x":e.length%2==0?e:"0x0"+e.slice(2),toNat:e=>"0"===e[2]?"0x"+e.slice(3):e,fromArray:c,toArray:s,fromUint8Array:e=>c([].slice.call(e,0)),toUint8Array:e=>new Uint8Array(s(e))}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var r=n(1199),i=n(1201),o=n(1202);t.privateKeyVerify=function(e){return 32===e.length&&r.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var n=i.privateKeyExport(e,t);return o.privateKeyExport(e,n,t)},t.privateKeyImport=function(e){if(null!==(e=o.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(t){return e.from(r.privateKeyNegate(Uint8Array.from(t)))},t.privateKeyModInverse=function(t){if(32!==t.length)throw new Error("private key length is invalid");return e.from(i.privateKeyModInverse(Uint8Array.from(t)))},t.privateKeyTweakAdd=function(t,n){return e.from(r.privateKeyTweakAdd(Uint8Array.from(t),n))},t.privateKeyTweakMul=function(t,n){return e.from(r.privateKeyTweakMul(Uint8Array.from(t),Uint8Array.from(n)))},t.publicKeyCreate=function(t,n){return e.from(r.publicKeyCreate(Uint8Array.from(t),n))},t.publicKeyConvert=function(t,n){return e.from(r.publicKeyConvert(Uint8Array.from(t),n))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&r.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(t,n,i){return e.from(r.publicKeyTweakAdd(Uint8Array.from(t),Uint8Array.from(n),i))},t.publicKeyTweakMul=function(t,n,i){return e.from(r.publicKeyTweakMul(Uint8Array.from(t),Uint8Array.from(n),i))},t.publicKeyCombine=function(t,n){var i=[];return t.forEach((function(e){i.push(Uint8Array.from(e))})),e.from(r.publicKeyCombine(i,n))},t.signatureNormalize=function(t){return e.from(r.signatureNormalize(Uint8Array.from(t)))},t.signatureExport=function(t){return e.from(r.signatureExport(Uint8Array.from(t)))},t.signatureImport=function(t){return e.from(r.signatureImport(Uint8Array.from(t)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=o.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return i.signatureImport(t)},t.sign=function(t,n,i){if(null===i)throw new TypeError("options should be an Object");var o=void 0;if(i){if(o={},null===i.data)throw new TypeError("options.data should be a Buffer");if(i.data){if(32!=i.data.length)throw new RangeError("options.data length is invalid");o.data=new Uint8Array(i.data)}if(null===i.noncefn)throw new TypeError("options.noncefn should be a Function");i.noncefn&&(o.noncefn=function(t,n,r,o,a){var s=null!=r?e.from(r):null,c=null!=o?e.from(o):null,l=e.from("");return i.noncefn&&(l=i.noncefn(e.from(t),e.from(n),s,c,a)),new Uint8Array(l)})}var a=r.ecdsaSign(Uint8Array.from(t),Uint8Array.from(n),o);return{signature:e.from(a.signature),recovery:a.recid}},t.verify=function(e,t,n){return r.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),n)},t.recover=function(t,n,i,o){return e.from(r.ecdsaRecover(Uint8Array.from(n),i,Uint8Array.from(t),o))},t.ecdh=function(t,n){return e.from(r.ecdh(Uint8Array.from(t),Uint8Array.from(n),{}))},t.ecdhUnsafe=function(t,n,r){if(33!==t.length&&65!==t.length)throw new RangeError("public key length is invalid");if(32!==n.length)throw new RangeError("private key length is invalid");return e.from(i.ecdhUnsafe(Uint8Array.from(t),Uint8Array.from(n),r))}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0;var r=n(6);function i(e,t){if("00"===e.slice(0,2))throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function o(t,n){if(t<56)return e.from([t+n]);var r=s(t),i=s(n+55+r.length/2);return e.from(i+r,"hex")}function a(e){return"0x"===e.slice(0,2)}function s(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function c(t){if(!e.isBuffer(t)){if("string"==typeof t)return a(t)?e.from((i="string"!=typeof(o=t)?o:a(o)?o.slice(2):o).length%2?"0"+i:i,"hex"):e.from(t);if("number"==typeof t||"bigint"==typeof t)return t?(n=s(t),e.from(n,"hex")):e.from([]);if(null==t)return e.from([]);if(t instanceof Uint8Array)return e.from(t);if(r.isBN(t))return e.from(t.toArray());throw new Error("invalid type")}var n,i,o;return t}t.encode=function t(n){if(Array.isArray(n)){for(var r=[],i=0;i<n.length;i++)r.push(t(n[i]));var a=e.concat(r);return e.concat([o(a.length,192),a])}var s=c(n);return 1===s.length&&s[0]<128?s:e.concat([o(s.length,128),s])},t.decode=function(t,n){if(void 0===n&&(n=!1),!t||0===t.length)return e.from([]);var r=function t(n){var r,o,a,s,c,l=[],u=n[0];if(u<=127)return{data:n.slice(0,1),remainder:n.slice(1)};if(u<=183){if(r=u-127,a=128===u?e.from([]):n.slice(1,r),2===r&&a[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:a,remainder:n.slice(r)}}if(u<=191){if(o=u-182,n.length-1<o)throw new Error("invalid RLP: not enough bytes for string length");if((r=i(n.slice(1,o).toString("hex"),16))<=55)throw new Error("invalid RLP: expected string length to be greater than 55");if((a=n.slice(o,r+o)).length<r)throw new Error("invalid RLP: not enough bytes for string");return{data:a,remainder:n.slice(r+o)}}if(u<=247){for(r=u-191,s=n.slice(1,r);s.length;)c=t(s),l.push(c.data),s=c.remainder;return{data:l,remainder:n.slice(r)}}o=u-246,r=i(n.slice(1,o).toString("hex"),16);var f=o+r;if(f>n.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(s=n.slice(o,f)).length)throw new Error("invalid rlp, List has a invalid length");for(;s.length;)c=t(s),l.push(c.data),s=c.remainder;return{data:l,remainder:n.slice(f)}}(c(t));if(n)return r;if(0!==r.remainder.length)throw new Error("invalid remainder");return r.data},t.getLength=function(t){if(!t||0===t.length)return e.from([]);var n=c(t),r=n[0];if(r<=127)return n.length;if(r<=183)return r-127;if(r<=191)return r-182;if(r<=247)return r-191;var o=r-246;return o+i(n.slice(1,o).toString("hex"),16)}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160=t.sha256=t.keccak256=t.keccak=void 0;var r=n(1205),i=r.keccak224,o=r.keccak384,a=r.keccak256,s=r.keccak512,c=n(54),l=n(855),u=n(908),f=n(856);t.keccak=function(t,n){switch(void 0===n&&(n=256),t="string"!=typeof t||l.isHexString(t)?f.toBuffer(t):e.from(t,"utf8"),n||(n=256),n){case 224:return i(t);case 256:return a(t);case 384:return o(t);case 512:return s(t);default:throw new Error("Invald algorithm: keccak"+n)}},t.keccak256=function(e){return t.keccak(e)},t.sha256=function(e){return e=f.toBuffer(e),c("sha256").update(e).digest()},t.ripemd160=function(e,t){e=f.toBuffer(e);var n=c("rmd160").update(e).digest();return!0===t?f.setLength(n,32):n},t.rlphash=function(e){return t.keccak(u.encode(e))}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(911),t),i(n(912),t),i(n(546),t),i(n(913),t),i(n(914),t),i(n(915),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtensionKVStore=void 0;const r=n(546),i={get:"undefined"!=typeof browser?browser.storage.local.get:void 0,set:"undefined"!=typeof browser?browser.storage.local.set:void 0};class o extends r.BaseKVStore{constructor(e){super(i,e)}}t.ExtensionKVStore=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MemoryKVStore=void 0;const r=n(546);class i{constructor(){this.store={}}get(){return Promise.resolve(this.store)}set(e){return this.store=Object.assign(Object.assign({},this.store),e),Promise.resolve()}}class o extends r.BaseKVStore{constructor(e){super(new i,e)}}t.MemoryKVStore=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalKVStore=void 0;t.LocalKVStore=class{constructor(e){this._prefix=e}get(e){const t=this.prefix()+"/"+e,n=localStorage.getItem(t);return null===n?Promise.resolve(void 0):Promise.resolve(JSON.parse(n))}set(e,t){const n=this.prefix()+"/"+e;return null===t?Promise.resolve(localStorage.removeItem(n)):Promise.resolve(localStorage.setItem(n,JSON.stringify(t)))}prefix(){return this._prefix}}},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.IndexedDBKVStore=void 0;t.IndexedDBKVStore=class{constructor(e){this._prefix=e}get(e){return r(this,void 0,void 0,(function*(){const t=(yield this.getDB()).transaction([this.prefix()],"readonly").objectStore(this.prefix());return new Promise((n,r)=>{const i=t.get(e);i.onerror=e=>{e.stopPropagation(),r(e.target)},i.onsuccess=()=>{i.result?n(i.result.data):n(void 0)}})}))}set(e,t){return r(this,void 0,void 0,(function*(){if(null===t){const t=(yield this.getDB()).transaction([this.prefix()],"readwrite").objectStore(this.prefix());return new Promise((n,r)=>{const i=t.delete(e);i.onerror=e=>{e.stopPropagation(),r(e.target)},i.onsuccess=()=>{n()}})}{const n=(yield this.getDB()).transaction([this.prefix()],"readwrite").objectStore(this.prefix());return new Promise((r,i)=>{const o=n.put({key:e,data:t});o.onerror=e=>{e.stopPropagation(),i(e.target)},o.onsuccess=()=>{r()}})}}))}prefix(){return this._prefix}getDB(){return r(this,void 0,void 0,(function*(){return this.cachedDB?this.cachedDB:new Promise((e,t)=>{const n=window.indexedDB.open(this.prefix());n.onerror=e=>{e.stopPropagation(),t(e.target)},n.onupgradeneeded=e=>{e.target.result.createObjectStore(this.prefix(),{keyPath:"key"})},n.onsuccess=()=>{this.cachedDB=n.result,e(n.result)}})}))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DenomHelper=void 0;t.DenomHelper=class{constructor(e){this._denom=e;const t=this.denom.split(/(\w+):(\w+):(.+)/).filter(Boolean);if(1!==t.length&&3!==t.length)throw new Error("Invalid denom: "+this.denom);this._type=3===t.length?t[0]:"",this._contractAddress=3===t.length?t[1]:""}get denom(){return this._denom}get type(){return this._type||"native"}get contractAddress(){return this._contractAddress}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toGenerator=void 0,t.toGenerator=function*(e){return yield e}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.useAmountConfig=t.AmountConfig=void 0;const i=n(836),o=n(5),a=n(870),s=n(23),c=n(0);class l extends i.TxChainSetter{constructor(e,t,n,r){super(e,t),this._sendCurrency=void 0,this._sender=n,this.queryBalances=r,this._amount="",o.makeObservable(this)}setQueryBalances(e){this.queryBalances=e}setSender(e){this._sender=e}setSendCurrency(e){this._sendCurrency=e}setAmount(e){e.startsWith(".")&&(e="0"+e),this._amount=e}get sender(){return this._sender}get amount(){return this._amount}getAmountPrimitive(){const e=this.amount,t=this.sendCurrency;return e?{denom:t.coinMinimalDenom,amount:new s.Dec(e).mul(s.DecUtils.getPrecisionDec(t.coinDecimals)).truncate().toString()}:{denom:t.coinMinimalDenom,amount:"0"}}get sendCurrency(){const e=this.chainInfo;if(this._sendCurrency){if(e.currencies.find(e=>e.coinMinimalDenom===this._sendCurrency.coinMinimalDenom))return this._sendCurrency}if(0===e.currencies.length)throw new Error("Chain doesn't have the sendable currency informations");return e.currencies[0]}get sendableCurrencies(){return this.chainInfo.currencies}getError(){const e=this.sendCurrency;if(!e)return new Error("Currency to send not set");if(""===this.amount)return new a.EmptyAmountError("Amount is empty");if(Number.isNaN(parseFloat(this.amount)))return new a.InvalidNumberAmountError("Invalid form of number");const t=new s.Dec(this.amount);if(t.equals(new s.Dec(0)))return new a.ZeroAmountError("Amount is zero");if(new s.Dec(this.amount).lt(new s.Dec(0)))return new a.NagativeAmountError("Amount is nagative");const n=this.queryBalances.getQueryBech32Address(this.sender).balances.find(t=>t.currency.coinMinimalDenom===e.coinMinimalDenom);if(!n)return new a.InsufficientAmountError("Insufficient amount");{const e=n.balance.toDec();if(t.gt(e))return new a.InsufficientAmountError("Insufficient amount")}}}r([o.observable.ref],l.prototype,"queryBalances",void 0),r([o.observable],l.prototype,"_sender",void 0),r([o.observable.ref],l.prototype,"_sendCurrency",void 0),r([o.observable],l.prototype,"_amount",void 0),r([o.action],l.prototype,"setQueryBalances",null),r([o.action],l.prototype,"setSender",null),r([o.action],l.prototype,"setSendCurrency",null),r([o.action],l.prototype,"setAmount",null),r([o.computed],l.prototype,"sendCurrency",null),t.AmountConfig=l;t.useAmountConfig=(e,t,n,r)=>{const[i]=c.useState(()=>new l(e,t,n,r));return i.setChain(t),i.setQueryBalances(r),i.setSender(n),i}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BondStatus=void 0,function(e){e.Unbonded="Unbonded",e.Unbonding="Unbonding",e.Bonded="Bonded"}(t.BondStatus||(t.BondStatus={}))},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryBalances=t.ObservableQueryBalancesInner=t.ObservableQueryBalanceInner=void 0;const i=n(89),o=n(5),a=n(209);class s extends i.ObservableChainQuery{constructor(e,t,n,r,i){super(e,t,n,r),this.denomHelper=i,o.makeObservable(this)}get currency(){const e=this.denomHelper.denom,t=this.chainGetter.getChain(this.chainId).currencies.find(t=>t.coinMinimalDenom===e);if(!t)throw new Error("Unknown currency: "+e);return t}}r([o.computed],s.prototype,"currency",null),t.ObservableQueryBalanceInner=s;class c{constructor(e,t,n,r,i){this.kvStore=e,this.chainId=t,this.chainGetter=n,this.balanceRegistries=r,this.balanceMap=new Map,o.makeObservable(this),this.bech32Address=i}fetch(){this.balanceMap.forEach(e=>e.fetch())}getBalanceInner(e){let t=e.coinMinimalDenom;return"type"in e&&"secret20"===e.type&&(t=e.coinMinimalDenom+"/"+e.viewingKey),this.balanceMap.has(t)||o.runInAction(()=>{let n;for(const t of this.balanceRegistries)if(n=t.getBalanceInner(this.chainId,this.chainGetter,this.bech32Address,e.coinMinimalDenom),n)break;if(!n)throw new Error("Failed to get and parse the balance for "+t);this.balanceMap.set(t,n)}),this.balanceMap.get(t)}get stakable(){const e=this.chainGetter.getChain(this.chainId);return this.getBalanceInner(e.stakeCurrency)}get balances(){const e=this.chainGetter.getChain(this.chainId),t=[];for(let n=0;n<e.currencies.length;n++){const r=e.currencies[n];t.push(this.getBalanceInner(r))}return t}get unstakables(){const e=this.chainGetter.getChain(this.chainId),t=e.currencies.filter(t=>t.coinMinimalDenom!==e.stakeCurrency.coinMinimalDenom),n=[];for(let e=0;e<t.length;e++){const r=t[e];n.push(this.getBalanceInner(r))}return n}}r([o.observable.shallow],c.prototype,"balanceMap",void 0),r([o.computed],c.prototype,"stakable",null),r([o.computed],c.prototype,"balances",null),r([o.computed],c.prototype,"unstakables",null),t.ObservableQueryBalancesInner=c;class l extends a.HasMapStore{constructor(e,t,n){super(e=>new c(this.kvStore,this.chainId,this.chainGetter,this.balanceRegistries,e)),this.kvStore=e,this.chainId=t,this.chainGetter=n,this.balanceRegistries=[]}addBalanceRegistry(e){this.balanceRegistries.push(e)}getQueryBech32Address(e){return this.get(e)}}t.ObservableQueryBalances=l},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var c=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+c+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";(function(t){var r=t.Symbol,i=n(1364);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}}).call(this,n(12))},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";var r,i=t,o=n(215),a=n(1023),s=n(224).assert;function c(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(1425)}catch(e){r=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},l.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,a),!0}for(l=1,c=new Array(f-1);l<f;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var d,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,r);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[l].fn.apply(u[l].context,c)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||c(this,o);else{for(var s=0,l=[],u=a.length;s<u;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=1===l.length?l[0]:l:c(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&c(this,t)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,e.exports=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.listeners={}}return e.prototype.addEventListener=function(e,t){e=e.toLowerCase(),this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(t.handleEvent||t)},e.prototype.removeEventListener=function(e,t){if(e=e.toLowerCase(),this.listeners[e]){var n=this.listeners[e].indexOf(t.handleEvent||t);n<0||this.listeners[e].splice(n,1)}},e.prototype.dispatchEvent=function(e){var t=e.type.toLowerCase();if(e.target=this,this.listeners[t])for(var n=0,r=this.listeners[t];n<r.length;n++){r[n].call(this,e)}var i=this["on"+t];return i&&i.call(this,e),!0},e}();t.XMLHttpRequestEventTarget=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=void 0;var r,i=n(1478);var o=((r=i)&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.canUseDOM=o.canUseDOM;t.default=a},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(1078)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1112),t)},function(e){e.exports=JSON.parse('{"main.account.chart.total-balance":"Total Balance","main.account.chart.available-balance":"Available","main.account.chart.staked-balance":"Staked","main.account.button.deposit":"Deposit","main.account.button.send":"Send","main.account.tooltip.no-asset":"No token in your account. Deposit some tokens to send.","main.modal.select-account.title":"Select your account","main.modal.select-account.button.select":"Select Account","main.modal.select-account.label.address":"Address","main.modal.select-account.label.balance":"Balance","main.modal.select-account.label.sequence":"Previous Txs","main.stake.message.pending-staking-reward":"Pending Staking Reward","main.stake.message.stake":"Stake","main.stake.message.earning":"Earn up to {apr}% per year","main.stake.button.claim-rewards":"Claim","main.stake.button.stake":"Stake","main.stake.tooltip.no-asset":"No token in your account. Deposit some tokens to stake.","main.ibc.transfer.title":"IBC Transfer","main.ibc.transfer.paragraph":"Send tokens over IBC","main.ibc.transfer.button":"Transfer","main.address.copied":"Address copied!","main.menu.settings":"Settings","main.menu.address-book":"Address Book","main.menu.token-list":"Token List","main.menu.sign-out":"Sign out","main.menu.footer.github":"Check it out on GitHub","main.update-chain.confirm.paragraph":"Chain information has changed. Verify that a chain upgrade has taken place.","main.update-chain.confirm.yes":"Proceed","main.update-chain.confirm.no":"Ignore","setting.language":"Language","setting.language.automatic":"Automatic (Browser default)","setting.language.automatic-with-language":"Automatic ({language})","setting.language.en":"English","setting.language.ko":"한국어","setting.fiat":"Currency","setting.fiat.automatic":"Automatic","setting.fiat.automatic-with-fiat":"Automatic ({fiat})","setting.connections":"Manage Connections","setting.connections.paragraph":"Manage websites connected to your wallet","setting.connections.confirm.delete-connection.title":"Disable Connection","setting.connections.confirm.delete-connection.paragraph":"Are you sure you want to disable this connection?","setting.address-book.button.add":"Add New","setting.address-book.add-address.title":"Add Address","setting.address-book.edit-address.title":"Edit Address","setting.address-book.name":"Name","setting.address-book.address":"Address","setting.address-book.address.error.invalid":"Invalid address","setting.address-book.memo":"Default Memo (Optional)","setting.address-book.confirm.delete-address.title":"Delete Address","setting.address-book.confirm.delete-address.paragraph":"Are you sure you want to delete this address?","setting.address-book.button.save":"Save","setting.credit":"Special thanks","setting.keyring":"Select Account","setting.keyring.button.add":"Add Account","setting.keyring.unnamed-account":"Keplr Account","setting.keyring.selected-account":"(Selected)","setting.keyring.change.password":"Reset Password","setting.keyring.change.name":"Change Account Name","setting.keyring.change.previous-name":"Previous account name","setting.keyring.change.input.name":"New account name","setting.keyring.change.input.name.error.required":"Account name is required","setting.keyring.change.input.name.error.invalid":"Account name is invalid","setting.keyring.change.name.button.save":"Save","setting.export":"View Mnemonic Seed","setting.export.private-key":"View Private Key","setting.export.warning":"Please input your password to proceed","setting.export.input.password":"Password","setting.export.input.password.error.required":"Password is required","setting.export.input.password.error.invalid":"Invalid password","setting.export.button.confirm":"Confirm","setting.clear":"Delete Account","setting.clear.alert":"Make sure you’ve backed up your mnemonic seed before proceeding.","setting.clear.button.back-up":"Back-up account","setting.clear.warning":"By deleting your account, you will no longer have access to your account on Keplr.","setting.clear.input.password":"Password","setting.clear.input.password.error.required":"Password is required","setting.clear.input.password.error.invalid":"Invalid password","setting.clear.button.confirm":"Confirm","setting.token.add":"Add Token","setting.token.add.contract-address":"Contract Address","setting.token.add.name":"Name","setting.token.add.symbol":"Symbol","setting.token.add.decimals":"Decimals","setting.token.add.button.submit":"Submit","setting.token.add.secret20.checkbox.import-viewing-key":"(Advanced) Import my own viewing key","setting.token.add.secret20.checkbox.use-suggested-viewing-key":"Use webpage suggested viewing key","setting.token.add.secret20.viewing-key":"Viewing Key","setting.token.manage.confirm.remove-token":"Are you sure you’d like to disable this token? You wil not be able to see your balance or transfer until you register a viewing key.","setting.token.manage.notification.viewing-key.copy":"Viewing key copied!","register.name":"Account name","register.name.error.required":"Account name is required","register.button.back":"Back","register.bip44.button.advanced":"Advanced","register.bip44.input.hd-path":"HD Derivation Path","register.bip44.confirm.clear":"Closing this toggle will reset the HD Path. Are you sure you want to proceed?","register.intro.button.new-account.title":"Create new account","register.intro.button.new-account.content":"Create a new wallet using a new seed","register.intro.button.import-account.title":"Import existing account","register.intro.button.import-account.content":"Use a 12/24 word seed to import an existing wallet","register.intro.sub-content":"All sensitive information is stored only on your device.{br}This process does not require an internet connection.","register.recover.title":"Input your seed","register.create.title":"Mnemonic Seed","register.create.toggle.word12":"12 words","register.create.toggle.word24":"24 words","register.create.input.password":"New Password (minimum 8 characters)","register.create.input.password.error.required":"Password is required","register.create.input.password.error.too-short":"Too short password","register.create.input.confirm-password":"Confirm password","register.create.input.confirm-password.error.required":"Confirm password is required","register.create.input.confirm-password.error.unmatched":"Password should match","register.create.textarea.mnemonic.place-holder":"Type your mnemonic / private key","register.create.textarea.mnemonic.error.invalid":"Invalid mnemonic","register.create.textarea.mnemonic.error.too-short":"Too short mnemonic","register.create.warning.keep-your-mnemonic.header":"Backup your mnemonic seed securely.","register.create.warning.keep-your-mnemonic.paragraph1":"Anyone with your mnemonic seed can take your assets.","register.create.warning.keep-your-mnemonic.paragraph2":"Lost mnemonic seed can\'t be recovered.","register.import.textarea.private-key.error.invalid":"Invalid private key","register.import.textarea.private-key.error.invalid-length":"Invalid length of private key","register.create.button.next":"Next","register.ledger.title":"Import ledger","register.verify.button.register":"Register","register.welcome.title":"You’re all set!","register.welcome.content":"Open the extension and sign in to begin your interchain journey.","register.welcome.button.done":"Done","chain.suggested.title":"Chain Add Request","chain.suggested.paragraph":"<b>{host}</b> would like to add blockchain <b>{chainId}</b> to Keplr.","chain.suggested.waring.experiment.title":"Experimental Feature","chain.suggested.waring.experiment.paragraph":"For the brave-hearted cosmonauts","chain.suggested.button.approve":"Approve","chain.suggested.button.reject":"Reject","chain.remove.confirm.paragraph":"Are you sure to remove the {chainName}?","access.title":"Requesting Connection","access.paragraph":"<b>{host}</b> is requesting to connect to your Keplr account on <b>{chainId}</b>.","access.permission.title":"By approving this request, the website will:","access.permission.account":"Know your wallet address","access.permission.tx-request":"Be able to request signatures for txs","access.permission.secret":"Be able to encrypt/decrypt your messages","access.button.approve":"Approve","access.button.reject":"Reject","access.viewing-key.title":"Requesting Viewing Key","access.viewing-key.paragraph":"<b>{host}</b> is requesting to get your token\'s viewing key on <b>{contractAddress}</b>.","access.viewing-key.permission.title":"By approving this request, the website will:","access.viewing-key.permission.secret":"Be able to know your balance of the token","access.viewing-key.button.approve":"Approve","access.viewing-key.button.reject":"Reject","lock.input.password":"Password","lock.input.password.error.required":"Empty password","lock.input.password.error.invalid":"Invalid password","lock.button.unlock":"Unlock","send.input.recipient":"Recipient","send.input.recipient.error.invalid":"Invalid address","send.input.recipient.error.ens-invalid-name":"Invalid ENS name format","send.input.recipient.error.ens-not-found":"ENS name not found","sned.input.recipient.error.ens-unknown-error":"Failed to get address from ENS","send.input.recipient.error.ens-not-supported":"ENS not supported for this chain","send.input.amount":"Amount","send.input.amount.error.insufficient":"Insufficient asset","send.input.memo":"Memo (Optional)","send.input.fee":"Fee","send.input.fee.error.required":"Fee is required","send.input.gas":"Gas","send.input-button.balance":"Balance","send.button.send":"Send","ibc.transfer.next":"Next","ibc.transfer.submit":"Submit","fee.input.gas":"Gas","fee.input.memo":"Memo (Optional)","fee.input.fee":"Fee","fee.button.set":"Set Fee","sign.tab.details":"Details","sign.tab.data":"Data","sign.list.messages.label":"Messages","sign.info.fee":"Fee","sign.info.memo":"Memo","sign.info.warning.empty-memo":"(Empty memo)","sign.info.fee.override":"Override fee","sign.info.gas":"Gas","sign.button.approve":"Approve","sign.button.reject":"Reject","sign.button.confirm-ledger":"Waiting for Ledger to confirm","sign.list.message.cosmos-sdk/MsgSend.title":"Send","sign.list.message.cosmos-sdk/MsgSend.content":"<b>{recipient}</b> will receive <b>{amount}</b>","sign.list.message.cosmos-sdk/MsgTransfer.title":"IBC Transfer","sign.list.message.cosmos-sdk/MsgTransfer.content":"Send <b>{amount}</b> to <b>{receiver}</b> on <b>{channel}</b>","sign.list.message.cosmos-sdk/MsgDelegate.title":"Delegate","sign.list.message.cosmos-sdk/MsgDelegate.content":"Delegate <b>{amount}</b> to <b>{validator}</b>","sign.list.message.cosmos-sdk/MsgUndelegate.title":"Undelegate","sign.list.message.cosmos-sdk/MsgUndelegate.content":"Undelegate <b>{amount}</b> from <b>{validator}</b>{br}Asset will be liquid after unbonding period","sign.list.message.cosmos-sdk/MsgBeginRedelegate.title":"Redelegate","sign.list.message.cosmos-sdk/MsgBeginRedelegate.content":"Redelegate <b>{amount}</b> from <b>{fromValidator}</b> to <b>{toValidator}</b>","sign.list.message.cosmos-sdk/MsgWithdrawDelegatorReward.title":"Claim Staking Reward","sign.list.message.cosmos-sdk/MsgWithdrawDelegatorReward.content":"Claim pending staking reward from <b>{validator}</b>","sign.list.message.cosmos-sdk/MsgVote.title":"Vote","sign.list.message.cosmos-sdk/MsgVote.content":"Vote <b>{option}</b> on <b>Proposal {id}</b>","sign.list.message.wasm.button.details":"Details","sign.list.message.wasm.button.close":"Close","sign.list.message.wasm/MsgInstantiateContract.title":"Instantiate Wasm Contract","sign.list.message.wasm/MsgInstantiateContract.content":"Instantiate code ID <b>{codeId}</b> contract with<only-admin-exist> <b>{admin}</b> admin account and</only-admin-exist> <b>{label}</b> label<only-funds-exist> by funding <b>{funds}</b></only-funds-exist>","sign.list.message.wasm/MsgExecuteContract.title":"Execute Wasm Contract","sign.list.message.wasm/MsgExecuteContract.content":"Execute contract <b>{address}</b><only-sent-exist> by sending <b>{sent}</b></only-sent-exist>","sign.list.message.wasm/MsgExecuteContract.content.badge.secret-wasm":"Encrypted","sign.list.message.wasm/MsgExecuteContract.content.warning.secret-wasm.failed-decryption":"Failed to decrypt Secret message. This may be due to Keplr viewing key not matching the transaction viewing key.","sign.list.message.cyber/Link.title":"Cyberlink","sign.list.message.cyber/Link.content":"<b>{address}</b> create link {br}<b>{link}</b>","ledger.step1":"Step 1","ledger.step1.paragraph":"Connect and unlock your Ledger.","ledger.step2":"Step 2","ledger.step2.paragraph":"Open the Cosmos app on your Ledger device.","ledger.option.webhid.checkbox":"Use alternative USB connection method(HID)","ledger.option.webhid.warning":"Please copy and paste the following link {link} on your browser and enable ‘experimental web platform features’","ledger.option.webhid.link.copied":"Link copied!","ledger.button.next":"Next","ledger.confirm.waiting.paragraph":"Waiting for confirmation on Ledger device","ledger.confirm.success":"Success","ledger.confirm.success.paragraph":"This page will automatically close in 3 seconds","ledger.confirm.rejected":"Rejected by Ledger","ledger.confirm.rejected.paragraph":"This page will automatically close in 3 seconds","fee-buttons.select.low":"Low","fee-buttons.select.average":"Average","fee-buttons.select.high":"High","input.recipient.error.invalid-bech32":"Invalid address","input.recipient.error.ens-not-supported":"ENS not supported for this chain","input.recipient.error.ens-failed-to-fetch":"Failed to get address from ENS","input.amount.error.invalid-number":"Invalid number","input.amount.error.is-zero":"Amount should not be zero","input.amount.error.is-negative":"Amount should be positive","input.amount.error.insufficient":"Insufficient asset","input.fee.error.insufficient":"Insufficient available balance for transaction fee","input.fee.toggle.set-gas":"Set Gas","input.fee.toggle.set-gas.close":"Close","confirm.yes":"Yes","confirm.no":"No","component.form.coin-input.token.label":"Token","component.ibc.channel-registrar.chain-selector.label":"Destination Chain","component.ibc.channel-registrar.chain-selector.placeholder":"Select Chain","component.ibc.channel-registrar.chain-selector.button.add":"New IBC Transfer Channel","component.ibc.channel-registrar.chain-selector.add.channel.label":"Channel ID","component.ibc.channel-registrar.chain-selector.add.channel.placeholder":"Destination Chain Channel ID","component.ibc.channel-registrar.chain-selector.add.channel.button":"Save"}')},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(53),a=n(1),s=n.n(a),c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var u=i.a.createContext||function(e,t){var n,i,a,u="__create-react-context-"+((c[a="__global_unique_id__"]=(c[a]||0)+1)+"__"),f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[u]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[u]=s.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},r.componentDidMount=function(){this.context[u]&&this.context[u].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},r.componentWillUnmount=function(){this.context[u]&&this.context[u].off(this.onUpdate)},r.getValue=function(){return this.context[u]?this.context[u].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((i={})[u]=s.a.object,i),{Provider:f,Consumer:d}};t.a=u}).call(this,n(12))},function(e,t,n){var r=n(1106);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],d=n[1],p=n.index;if(s+=e.slice(a,p),a=p+f.length,d)s+=d[1];else{var h=e[a],m=n[2],b=n[3],y=n[4],g=n[5],v=n[6],w=n[7];s&&(r.push(s),s="");var _=null!=m&&null!=h&&h!==m,k="+"===v||"*"===v,x="?"===v||"*"===v,S=n[2]||u,O=y||g;r.push({name:b||o++,prefix:m||"",delimiter:S,optional:x,repeat:k,partial:_,asterisk:!!w,pattern:O?l(O):w?".*":"[^"+c(S)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",s=t||{},c=(i||{}).pretty?a:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var f,d=s[u.name];if(null==d){if(u.optional){u.partial&&(o+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=c(d[p]),!n[l].test(f))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===p?u.prefix:u.delimiter)+f}}else{if(f=u.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(d),!n[l].test(f))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+f+'"');o+=u.prefix+f}}else o+=u}return o}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var l=e[s];if("string"==typeof l)a+=c(l);else{var d=c(l.prefix),p="(?:"+l.pattern+")";t.push(l),l.repeat&&(p+="(?:"+d+p+")*"),a+=p=l.optional?l.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var h=c(n.delimiter||"/"),m=a.slice(-h.length)===h;return i||(a=(m?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&m?"":"(?="+h+"|$)",u(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(p(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(o(e,n),t,n)}(e,t,n)}},function(e,t,n){var r=n(37),i=n(1338);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1354);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";t.__esModule=!0;var r=o(n(0)),i=o(n(1359));function o(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||i.default,e.exports=t.default},function(e,t,n){var r=n(37),i=n(1380);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";var r=n(19),i=n(0),o=n.n(i),a=n(10),s=n.n(a),c=n(843),l=function(e){var t=s()("tooltip","show",e.popperClassName),n=s()("tooltip-inner",e.innerClassName);return o.a.createElement(c.a,Object(r.a)({},e,{popperClassName:t,innerClassName:n}))};l.propTypes=c.b,l.defaultProps={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"},t.a=l},function(e,t,n){var r=n(37),i=n(1505);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1510);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1512);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1521);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1523);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";var r=n(19),i=n(226),o=n(26),a=n(53),s=n(0),c=n.n(s),l=n(1),u=n.n(l),f=n(414),d=n.n(f),p=n(10),h=n.n(p),m=n(1551),b=n(416),y=n(8);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){Object(i.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var w={tag:y.p,children:u.a.node.isRequired,right:u.a.bool,flip:u.a.bool,modifiers:u.a.object,className:u.a.string,cssModule:u.a.object,persist:u.a.bool,positionFixed:u.a.bool,container:y.q},_={flip:{enabled:!1}},k={up:"top",left:"left",right:"right",down:"bottom"},x=function(e){function t(){return e.apply(this,arguments)||this}return Object(a.a)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.className,i=t.cssModule,a=t.right,s=t.tag,l=t.flip,u=t.modifiers,f=t.persist,p=t.positionFixed,b=t.container,g=Object(o.a)(t,["className","cssModule","right","tag","flip","modifiers","persist","positionFixed","container"]),w=Object(y.l)(h()(n,"dropdown-menu",{"dropdown-menu-right":a,show:this.context.isOpen}),i),x=s;if(f||this.context.isOpen&&!this.context.inNavbar){var S=(k[this.context.direction]||"bottom")+"-"+(a?"end":"start"),O=l?u:v(v({},u),_),E=!!p,T=c.a.createElement(m.a,{placement:S,modifiers:O,positionFixed:E},(function(t){var n=t.ref,i=t.style,o=t.placement,a=v(v({},e.props.style),i);return c.a.createElement(x,Object(r.a)({tabIndex:"-1",role:"menu",ref:function(t){n(t);var r=e.context.onMenuRef;r&&r(t)}},g,{style:a,"aria-hidden":!e.context.isOpen,className:w,"x-placement":o}))}));return b?d.a.createPortal(T,Object(y.i)(b)):T}return c.a.createElement(x,Object(r.a)({tabIndex:"-1",role:"menu"},g,{"aria-hidden":!this.context.isOpen,className:w,"x-placement":g.placement}))},t}(c.a.Component);x.propTypes=w,x.defaultProps={tag:"div",flip:!0},x.contextType=b.a,t.a=x},function(e,t,n){"use strict";var r=n(226),i=n(19),o=n(29),a=n(53),s=n(0),c=n.n(s),l=n(1),u=n.n(l),f=n(10),d=n.n(f),p=n(414),h=n.n(p),m=n(8),b={children:u.a.node.isRequired,node:u.a.any},y=function(e){function t(){return e.apply(this,arguments)||this}Object(a.a)(t,e);var n=t.prototype;return n.componentWillUnmount=function(){this.defaultNode&&document.body.removeChild(this.defaultNode),this.defaultNode=null},n.render=function(){return m.e?(this.props.node||this.defaultNode||(this.defaultNode=document.createElement("div"),document.body.appendChild(this.defaultNode)),h.a.createPortal(this.props.children,this.props.node||this.defaultNode)):null},t}(c.a.Component);y.propTypes=b;var g=y,v=n(151);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(){}var x=u.a.shape(v.a.propTypes),S={isOpen:u.a.bool,autoFocus:u.a.bool,centered:u.a.bool,scrollable:u.a.bool,size:u.a.string,toggle:u.a.func,keyboard:u.a.bool,role:u.a.string,labelledBy:u.a.string,backdrop:u.a.oneOfType([u.a.bool,u.a.oneOf(["static"])]),onEnter:u.a.func,onExit:u.a.func,onOpened:u.a.func,onClosed:u.a.func,children:u.a.node,className:u.a.string,wrapClassName:u.a.string,modalClassName:u.a.string,backdropClassName:u.a.string,contentClassName:u.a.string,external:u.a.node,fade:u.a.bool,cssModule:u.a.object,zIndex:u.a.oneOfType([u.a.number,u.a.string]),backdropTransition:x,modalTransition:x,innerRef:u.a.oneOfType([u.a.object,u.a.string,u.a.func]),unmountOnClose:u.a.bool,returnFocusAfterClose:u.a.bool,container:m.q},O=Object.keys(S),E={isOpen:!1,autoFocus:!0,centered:!1,scrollable:!1,role:"dialog",backdrop:!0,keyboard:!0,zIndex:1050,fade:!0,onOpened:k,onClosed:k,modalTransition:{timeout:m.d.Modal},backdropTransition:{mountOnEnter:!0,timeout:m.d.Fade},unmountOnClose:!0,returnFocusAfterClose:!0,container:"body"},T=function(e){function t(t){var n;return(n=e.call(this,t)||this)._element=null,n._originalBodyPadding=null,n.getFocusableChildren=n.getFocusableChildren.bind(Object(o.a)(n)),n.handleBackdropClick=n.handleBackdropClick.bind(Object(o.a)(n)),n.handleBackdropMouseDown=n.handleBackdropMouseDown.bind(Object(o.a)(n)),n.handleEscape=n.handleEscape.bind(Object(o.a)(n)),n.handleStaticBackdropAnimation=n.handleStaticBackdropAnimation.bind(Object(o.a)(n)),n.handleTab=n.handleTab.bind(Object(o.a)(n)),n.onOpened=n.onOpened.bind(Object(o.a)(n)),n.onClosed=n.onClosed.bind(Object(o.a)(n)),n.manageFocusAfterClose=n.manageFocusAfterClose.bind(Object(o.a)(n)),n.clearBackdropAnimationTimeout=n.clearBackdropAnimationTimeout.bind(Object(o.a)(n)),n.trapFocus=n.trapFocus.bind(Object(o.a)(n)),n.state={isOpen:!1,showStaticBackdropAnimation:!1},n}Object(a.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this.props,t=e.isOpen,n=e.autoFocus,r=e.onEnter;t&&(this.init(),this.setState({isOpen:!0}),n&&this.setFocus()),r&&r(),document.addEventListener("focus",this.trapFocus,!0),this._isMounted=!0},n.componentDidUpdate=function(e,t){if(this.props.isOpen&&!e.isOpen)return this.init(),void this.setState({isOpen:!0});this.props.autoFocus&&this.state.isOpen&&!t.isOpen&&this.setFocus(),this._element&&e.zIndex!==this.props.zIndex&&(this._element.style.zIndex=this.props.zIndex)},n.componentWillUnmount=function(){this.clearBackdropAnimationTimeout(),this.props.onExit&&this.props.onExit(),this._element&&(this.destroy(),(this.props.isOpen||this.state.isOpen)&&this.close()),document.removeEventListener("focus",this.trapFocus,!0),this._isMounted=!1},n.trapFocus=function(e){if(this._element&&!(this._dialog&&this._dialog.parentNode===e.target||this.modalIndex<t.openCount-1)){for(var n=this.getFocusableChildren(),r=0;r<n.length;r++)if(n[r]===e.target)return;n.length>0&&(e.preventDefault(),e.stopPropagation(),n[0].focus())}},n.onOpened=function(e,t){this.props.onOpened(),(this.props.modalTransition.onEntered||k)(e,t)},n.onClosed=function(e){var t=this.props.unmountOnClose;this.props.onClosed(),(this.props.modalTransition.onExited||k)(e),t&&this.destroy(),this.close(),this._isMounted&&this.setState({isOpen:!1})},n.setFocus=function(){this._dialog&&this._dialog.parentNode&&"function"==typeof this._dialog.parentNode.focus&&this._dialog.parentNode.focus()},n.getFocusableChildren=function(){return this._element.querySelectorAll(m.g.join(", "))},n.getFocusedChild=function(){var e,t=this.getFocusableChildren();try{e=document.activeElement}catch(n){e=t[0]}return e},n.handleBackdropClick=function(e){if(e.target===this._mouseDownElement){e.stopPropagation();var t=this._dialog?this._dialog.parentNode:null;if(t&&e.target===t&&"static"===this.props.backdrop&&this.handleStaticBackdropAnimation(),!this.props.isOpen||!0!==this.props.backdrop)return;t&&e.target===t&&this.props.toggle&&this.props.toggle(e)}},n.handleTab=function(e){if(9===e.which&&!(this.modalIndex<t.openCount-1)){var n=this.getFocusableChildren(),r=n.length;if(0!==r){for(var i=this.getFocusedChild(),o=0,a=0;a<r;a+=1)if(n[a]===i){o=a;break}e.shiftKey&&0===o?(e.preventDefault(),n[r-1].focus()):e.shiftKey||o!==r-1||(e.preventDefault(),n[0].focus())}}},n.handleBackdropMouseDown=function(e){this._mouseDownElement=e.target},n.handleEscape=function(e){this.props.isOpen&&e.keyCode===m.k.esc&&this.props.toggle&&(this.props.keyboard?(e.preventDefault(),e.stopPropagation(),this.props.toggle(e)):"static"===this.props.backdrop&&(e.preventDefault(),e.stopPropagation(),this.handleStaticBackdropAnimation()))},n.handleStaticBackdropAnimation=function(){var e=this;this.clearBackdropAnimationTimeout(),this.setState({showStaticBackdropAnimation:!0}),this._backdropAnimationTimeout=setTimeout((function(){e.setState({showStaticBackdropAnimation:!1})}),100)},n.init=function(){try{this._triggeringElement=document.activeElement}catch(e){this._triggeringElement=null}this._element||(this._element=document.createElement("div"),this._element.setAttribute("tabindex","-1"),this._element.style.position="relative",this._element.style.zIndex=this.props.zIndex,this._mountContainer=Object(m.i)(this.props.container),this._mountContainer.appendChild(this._element)),this._originalBodyPadding=Object(m.h)(),Object(m.f)(),0===t.openCount&&(document.body.className=d()(document.body.className,Object(m.l)("modal-open",this.props.cssModule))),this.modalIndex=t.openCount,t.openCount+=1},n.destroy=function(){this._element&&(this._mountContainer.removeChild(this._element),this._element=null),this.manageFocusAfterClose()},n.manageFocusAfterClose=function(){if(this._triggeringElement){var e=this.props.returnFocusAfterClose;this._triggeringElement.focus&&e&&this._triggeringElement.focus(),this._triggeringElement=null}},n.close=function(){if(t.openCount<=1){var e=Object(m.l)("modal-open",this.props.cssModule),n=new RegExp("(^| )"+e+"( |$)");document.body.className=document.body.className.replace(n," ").trim()}this.manageFocusAfterClose(),t.openCount=Math.max(0,t.openCount-1),Object(m.o)(this._originalBodyPadding)},n.renderModalDialog=function(){var e,t=this,n=Object(m.m)(this.props,O);return c.a.createElement("div",Object(i.a)({},n,{className:Object(m.l)(d()("modal-dialog",this.props.className,(e={},e["modal-"+this.props.size]=this.props.size,e["modal-dialog-centered"]=this.props.centered,e["modal-dialog-scrollable"]=this.props.scrollable,e)),this.props.cssModule),role:"document",ref:function(e){t._dialog=e}}),c.a.createElement("div",{className:Object(m.l)(d()("modal-content",this.props.contentClassName),this.props.cssModule)},this.props.children))},n.render=function(){var e=this.props.unmountOnClose;if(this._element&&(this.state.isOpen||!e)){var t=!!this._element&&!this.state.isOpen&&!e;this._element.style.display=t?"none":"block";var n=this.props,r=n.wrapClassName,o=n.modalClassName,a=n.backdropClassName,s=n.cssModule,l=n.isOpen,u=n.backdrop,f=n.role,p=n.labelledBy,h=n.external,b=n.innerRef,y={onClick:this.handleBackdropClick,onMouseDown:this.handleBackdropMouseDown,onKeyUp:this.handleEscape,onKeyDown:this.handleTab,style:{display:"block"},"aria-labelledby":p,role:f,tabIndex:"-1"},w=this.props.fade,k=_(_(_({},v.a.defaultProps),this.props.modalTransition),{},{baseClass:w?this.props.modalTransition.baseClass:"",timeout:w?this.props.modalTransition.timeout:0}),x=_(_(_({},v.a.defaultProps),this.props.backdropTransition),{},{baseClass:w?this.props.backdropTransition.baseClass:"",timeout:w?this.props.backdropTransition.timeout:0}),S=u&&(w?c.a.createElement(v.a,Object(i.a)({},x,{in:l&&!!u,cssModule:s,className:Object(m.l)(d()("modal-backdrop",a),s)})):c.a.createElement("div",{className:Object(m.l)(d()("modal-backdrop","show",a),s)}));return c.a.createElement(g,{node:this._element},c.a.createElement("div",{className:Object(m.l)(r)},c.a.createElement(v.a,Object(i.a)({},y,k,{in:l,onEntered:this.onOpened,onExited:this.onClosed,cssModule:s,className:Object(m.l)(d()("modal",o,this.state.showStaticBackdropAnimation&&"modal-static"),s),innerRef:b}),h,this.renderModalDialog()),S))}return null},n.clearBackdropAnimationTimeout=function(){this._backdropAnimationTimeout&&(clearTimeout(this._backdropAnimationTimeout),this._backdropAnimationTimeout=void 0)},t}(c.a.Component);T.propTypes=S,T.defaultProps=E,T.openCount=0;t.a=T},function(e,t,n){"use strict";var r=n(19),i=n(0),o=n.n(i),a=n(1),s=n.n(a),c=n(26),l=n(29),u=n(53),f=n(888),d=n(10),p=n.n(d),h=n(416),m=n(8),b={a11y:s.a.bool,disabled:s.a.bool,direction:s.a.oneOf(["up","down","left","right"]),group:s.a.bool,isOpen:s.a.bool,nav:s.a.bool,active:s.a.bool,addonType:s.a.oneOfType([s.a.bool,s.a.oneOf(["prepend","append"])]),size:s.a.string,tag:m.p,toggle:s.a.func,children:s.a.node,className:s.a.string,cssModule:s.a.object,inNavbar:s.a.bool,setActiveFromChild:s.a.bool},y=[m.k.space,m.k.enter,m.k.up,m.k.down,m.k.end,m.k.home],g=function(e){function t(t){var n;return(n=e.call(this,t)||this).addEvents=n.addEvents.bind(Object(l.a)(n)),n.handleDocumentClick=n.handleDocumentClick.bind(Object(l.a)(n)),n.handleKeyDown=n.handleKeyDown.bind(Object(l.a)(n)),n.removeEvents=n.removeEvents.bind(Object(l.a)(n)),n.toggle=n.toggle.bind(Object(l.a)(n)),n.handleMenuRef=n.handleMenuRef.bind(Object(l.a)(n)),n.containerRef=o.a.createRef(),n.menuRef=o.a.createRef(),n}Object(u.a)(t,e);var n=t.prototype;return n.handleMenuRef=function(e){this.menuRef.current=e},n.getContextValue=function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:"down"===this.props.direction&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef}},n.componentDidMount=function(){this.handleProps()},n.componentDidUpdate=function(e){this.props.isOpen!==e.isOpen&&this.handleProps()},n.componentWillUnmount=function(){this.removeEvents()},n.getContainer=function(){return this.containerRef.current},n.getMenu=function(){return this.menuRef.current},n.getMenuCtrl=function(){return this._$menuCtrl||(this._$menuCtrl=this.getContainer().querySelector("[aria-expanded]")),this._$menuCtrl},n.getMenuItems=function(){var e=this.getMenu()||this.getContainer();return[].slice.call(e.querySelectorAll('[role="menuitem"]'))},n.addEvents=function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.addEventListener(t,e.handleDocumentClick,!0)}))},n.removeEvents=function(){var e=this;["click","touchstart","keyup"].forEach((function(t){return document.removeEventListener(t,e.handleDocumentClick,!0)}))},n.handleDocumentClick=function(e){if(!e||3!==e.which&&("keyup"!==e.type||e.which===m.k.tab)){var t=this.getContainer(),n=this.getMenu(),r=t.contains(e.target)&&t!==e.target,i=n&&n.contains(e.target)&&n!==e.target;(!r&&!i||"keyup"===e.type&&e.which!==m.k.tab)&&this.toggle(e)}},n.handleKeyDown=function(e){var t=this,n="menuitem"===e.target.getAttribute("role"),r=this.getMenuCtrl()===e.target,i=m.k.tab===e.which;if(!(/input|textarea/i.test(e.target.tagName)||i&&!this.props.a11y||i&&!n&&!r)&&((-1!==y.indexOf(e.which)||e.which>=48&&e.which<=90)&&e.preventDefault(),!this.props.disabled&&(r&&([m.k.space,m.k.enter,m.k.up,m.k.down].indexOf(e.which)>-1?(this.props.isOpen||this.toggle(e),setTimeout((function(){return t.getMenuItems()[0].focus()}))):this.props.isOpen&&i?(e.preventDefault(),this.getMenuItems()[0].focus()):this.props.isOpen&&e.which===m.k.esc&&this.toggle(e)),this.props.isOpen&&"menuitem"===e.target.getAttribute("role"))))if([m.k.tab,m.k.esc].indexOf(e.which)>-1)this.toggle(e),this.getMenuCtrl().focus();else if([m.k.space,m.k.enter].indexOf(e.which)>-1)e.target.click(),this.getMenuCtrl().focus();else if([m.k.down,m.k.up].indexOf(e.which)>-1||[m.k.n,m.k.p].indexOf(e.which)>-1&&e.ctrlKey){var o=this.getMenuItems(),a=o.indexOf(e.target);m.k.up===e.which||m.k.p===e.which&&e.ctrlKey?a=0!==a?a-1:o.length-1:(m.k.down===e.which||m.k.n===e.which&&e.ctrlKey)&&(a=a===o.length-1?0:a+1),o[a].focus()}else if(m.k.end===e.which){var s=this.getMenuItems();s[s.length-1].focus()}else if(m.k.home===e.which){this.getMenuItems()[0].focus()}else if(e.which>=48&&e.which<=90)for(var c=this.getMenuItems(),l=String.fromCharCode(e.which).toLowerCase(),u=0;u<c.length;u+=1){if((c[u].textContent&&c[u].textContent[0].toLowerCase())===l){c[u].focus();break}}},n.handleProps=function(){this.props.isOpen?this.addEvents():this.removeEvents()},n.toggle=function(e){return this.props.disabled?e&&e.preventDefault():this.props.toggle(e)},n.render=function(){var e,t,n=Object(m.m)(this.props,["toggle","disabled","inNavbar","a11y"]),i=n.className,a=n.cssModule,s=n.direction,l=n.isOpen,u=n.group,d=n.size,b=n.nav,y=n.setActiveFromChild,g=n.active,v=n.addonType,w=n.tag,_=Object(c.a)(n,["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","addonType","tag"]),k=w||(b?"li":"div"),x=!1;y&&o.a.Children.map(this.props.children[1].props.children,(function(e){e&&e.props.active&&(x=!0)}));var S=Object(m.l)(p()(i,"down"!==s&&"drop"+s,!(!b||!g)&&"active",!(!y||!x)&&"active",((e={})["input-group-"+v]=v,e["btn-group"]=u,e["btn-group-"+d]=!!d,e.dropdown=!u&&!v,e.show=l,e["nav-item"]=b,e)),a);return o.a.createElement(h.a.Provider,{value:this.getContextValue()},o.a.createElement(f.c,null,o.a.createElement(k,Object(r.a)({},_,((t={})["string"==typeof k?"ref":"innerRef"]=this.containerRef,t),{onKeyDown:this.handleKeyDown,className:S}))))},t}(o.a.Component);g.propTypes=b,g.defaultProps={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,addonType:!1,inNavbar:!1,setActiveFromChild:!1};var v=g,w={children:s.a.node},_=function(e){return o.a.createElement(v,Object(r.a)({group:!0},e))};_.propTypes=w;t.a=_},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(29),a=n(53),s=n(0),c=n.n(s),l=n(1),u=n.n(l),f=n(10),d=n.n(f),p=n(828),h=n.n(p),m=n(109),b=n.n(m),y=n(840),g=n.n(y),v=n(110),w=n.n(v),_=n(885),k=n.n(_),x=n(888),S=n(401),O=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,w()(b()(t),"refHandler",(function(e){Object(S.b)(t.props.innerRef,e),Object(S.a)(t.props.setReferenceNode,e)})),t}g()(t,e);var n=t.prototype;return n.componentWillUnmount=function(){Object(S.b)(this.props.innerRef,null)},n.render=function(){return k()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),Object(S.c)(this.props.children)({ref:this.refHandler})},t}(s.Component);function E(e){return s.createElement(x.b.Consumer,null,(function(t){return s.createElement(O,h()({setReferenceNode:t},e))}))}var T=n(416),A=n(8),M=n(402),I={caret:u.a.bool,color:u.a.string,children:u.a.node,className:u.a.string,cssModule:u.a.object,disabled:u.a.bool,onClick:u.a.func,"aria-haspopup":u.a.bool,split:u.a.bool,tag:A.p,nav:u.a.bool},P=function(e){function t(t){var n;return(n=e.call(this,t)||this).onClick=n.onClick.bind(Object(o.a)(n)),n}Object(a.a)(t,e);var n=t.prototype;return n.onClick=function(e){this.props.disabled||this.context.disabled?e.preventDefault():(this.props.nav&&!this.props.tag&&e.preventDefault(),this.props.onClick&&this.props.onClick(e),this.context.toggle(e))},n.render=function(){var e,t=this,n=this.props,o=n.className,a=n.color,s=n.cssModule,l=n.caret,u=n.split,f=n.nav,p=n.tag,h=n.innerRef,m=Object(i.a)(n,["className","color","cssModule","caret","split","nav","tag","innerRef"]),b=m["aria-label"]||"Toggle Dropdown",y=Object(A.l)(d()(o,{"dropdown-toggle":l||u,"dropdown-toggle-split":u,"nav-link":f}),s),g=void 0!==m.children?m.children:c.a.createElement("span",{className:"sr-only"},b);return f&&!p?(e="a",m.href="#"):p?e=p:(e=M.a,m.color=a,m.cssModule=s),this.context.inNavbar?c.a.createElement(e,Object(r.a)({},m,{className:y,onClick:this.onClick,"aria-expanded":this.context.isOpen,children:g})):c.a.createElement(E,{innerRef:h},(function(n){var i,o=n.ref;return c.a.createElement(e,Object(r.a)({},m,((i={})["string"==typeof e?"ref":"innerRef"]=o,i),{className:y,onClick:t.onClick,"aria-expanded":t.context.isOpen,children:g}))}))},t}(c.a.Component);P.propTypes=I,P.defaultProps={"aria-haspopup":!0,color:"secondary"},P.contextType=T.a;t.a=P},function(e,t,n){"use strict";e.exports=n(1081)},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultGasPriceStep=void 0,t.DefaultGasPriceStep={low:.01,average:.025,high:.04}},function(e,t,n){"use strict";var r=n(1113).version,i=n(444),o=n(1149),a=n(874),s=n(971),c=n(1234),l=n(1235),u=n(213),f=function(){var e=this;i.packageInit(this,arguments),this.version=r,this.utils=u,this.eth=new o(this),this.shh=new c(this),this.bzz=new l(this);var t=this.setProvider;this.setProvider=function(n,r){return t.apply(e,arguments),e.eth.setRequestManager(e._requestManager),e.shh.setRequestManager(e._requestManager),e.bzz.setProvider(n),!0}};f.version=r,f.utils=u,f.modules={Eth:o,Net:a,Personal:s,Shh:c,Bzz:l},i.addProviders(f),e.exports=f},function(e,t,n){var r=n(1121),i=n(955);e.exports=function(e){if("string"==typeof e||"number"==typeof e){var t=new r(1),n=String(e).toLowerCase().trim(),o="0x"===n.substr(0,2)||"-0x"===n.substr(0,3),a=i(n);if("-"===a.substr(0,1)&&(a=i(a.slice(1)),t=new r(-1,10)),!(a=""===a?"0":a).match(/^-?[0-9]+$/)&&a.match(/^[0-9A-Fa-f]+$/)||a.match(/^[a-fA-F]+$/)||!0===o&&a.match(/^[0-9A-Fa-f]+$/))return new r(a,16).mul(t);if((a.match(/^-?[0-9]+$/)||""===a)&&!1===o)return new r(a,10).mul(t)}else if("object"==typeof e&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new r(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},function(e,t,n){var r=n(956);e.exports=function(e){return"string"!=typeof e?e:r(e)?e.slice(2):e}},function(e,t){e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},function(e,t,n){(function(t){var r=n(147),i=n(6),o=n(954),a=n(1122),s=n(902),c=n(1123),l=function(e){return i.isBN(e)},u=function(e){return e&&e.constructor&&"BigNumber"===e.constructor.name},f=function(e){try{return o.apply(null,arguments)}catch(t){throw new Error(t+' Given value: "'+e+'"')}},d=function(e){return!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(e)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(e))||p(e))},p=function(e){e=e.replace(/^0x/i,"");for(var t=w(e.toLowerCase()).replace(/^0x/i,""),n=0;n<40;n++)if(parseInt(t[n],16)>7&&e[n].toUpperCase()!==e[n]||parseInt(t[n],16)<=7&&e[n].toLowerCase()!==e[n])return!1;return!0},h=function(e){var t="";e=(e=(e=(e=(e=a.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var n=0;n<e.length;n++){var r=e.charCodeAt(n).toString(16);t+=r.length<2?"0"+r:r}return"0x"+t},m=function(e){if(r.isNull(e)||r.isUndefined(e))return e;if(!isFinite(e)&&!y(e))throw new Error('Given input "'+e+'" is not a number.');var t=f(e),n=t.toString(16);return t.lt(new i(0))?"-0x"+n.substr(1):"0x"+n},b=function(e){if(e=e.toString(16),!y(e))throw new Error('Given value "'+e+'" is not a valid hex string.');e=e.replace(/^0x/i,"");for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},y=function(e){return(r.isString(e)||r.isNumber(e))&&/^(-)?0x[0-9a-f]*$/i.test(e)},g=function(e){return(r.isString(e)||r.isNumber(e))&&/^(-0x|0x)?[0-9a-f]*$/i.test(e)},v="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",w=function(e){l(e)&&(e=e.toString()),y(e)&&/^0x/i.test(e.toString())&&(e=b(e));var t=s.keccak256(e);return t===v?null:t};w._Hash=s;e.exports={BN:i,isBN:l,isBigNumber:u,toBN:f,isAddress:d,isBloom:function(e){return c.isBloom(e)},isUserEthereumAddressInBloom:function(e,t){return c.isUserEthereumAddressInBloom(e,t)},isContractAddressInBloom:function(e,t){return c.isContractAddressInBloom(e,t)},isTopic:function(e){return c.isTopic(e)},isTopicInBloom:function(e,t){return c.isTopicInBloom(e,t)},isInBloom:function(e,t){return c.isInBloom(e,t)},checkAddressChecksum:p,utf8ToHex:h,hexToUtf8:function(e){if(!y(e))throw new Error('The parameter "'+e+'" must be a valid HEX string.');for(var t="",n=0,r=(e=(e=(e=(e=(e=e.replace(/^0x/i,"")).replace(/^(?:00)*/,"")).split("").reverse().join("")).replace(/^(?:00)*/,"")).split("").reverse().join("")).length,i=0;i<r;i+=2)n=parseInt(e.substr(i,2),16),t+=String.fromCharCode(n);return a.decode(t)},hexToNumber:function(e){if(!e)return e;if(r.isString(e)&&!y(e))throw new Error('Given value "'+e+'" is not a valid hex string.');return f(e).toNumber()},hexToNumberString:function(e){if(!e)return e;if(r.isString(e)&&!y(e))throw new Error('Given value "'+e+'" is not a valid hex string.');return f(e).toString(10)},numberToHex:m,toHex:function(e,n){if(d(e))return n?"address":"0x"+e.toLowerCase().replace(/^0x/i,"");if(r.isBoolean(e))return n?"bool":e?"0x01":"0x00";if(t.isBuffer(e))return"0x"+e.toString("hex");if(r.isObject(e)&&!u(e)&&!l(e))return n?"string":h(JSON.stringify(e));if(r.isString(e)){if(0===e.indexOf("-0x")||0===e.indexOf("-0X"))return n?"int256":m(e);if(0===e.indexOf("0x")||0===e.indexOf("0X"))return n?"bytes":e;if(!isFinite(e))return n?"string":h(e)}return n?e<0?"int256":"uint256":m(e)},hexToBytes:b,bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return"0x"+t.join("")},isHex:g,isHexStrict:y,stripHexPrefix:function(e){return 0!==e&&g(e)?e.replace(/^(-)?0x/i,"$1"):e},leftPad:function(e,t,n){var r=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(r?"0x":"")+new Array(i).join(n||"0")+e},rightPad:function(e,t,n){var r=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(r?"0x":"")+e+new Array(i).join(n||"0")},toTwosComplement:function(e){return"0x"+f(e).toTwos(256).toString(16,64)},sha3:w,sha3Raw:function(e){return null===(e=w(e))?v:e}}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=n(213),i=n(6),o=function(e){var t="A".charCodeAt(0),n="Z".charCodeAt(0);return(e=(e=e.toUpperCase()).substr(4)+e.substr(0,4)).split("").map((function(e){var r=e.charCodeAt(0);return r>=t&&r<=n?r-t+10:e})).join("")},a=function(e){for(var t,n=e;n.length>2;)t=n.slice(0,9),n=parseInt(t,10)%97+n.slice(t.length);return parseInt(n,10)%97},s=function(e){this._iban=e};s.toAddress=function(e){if(!(e=new s(e)).isDirect())throw new Error("IBAN is indirect and can't be converted");return e.toAddress()},s.toIban=function(e){return s.fromAddress(e).toString()},s.fromAddress=function(e){if(!r.isAddress(e))throw new Error("Provided address is not a valid address: "+e);e=e.replace("0x","").replace("0X","");var t=function(e,t){for(var n=e;n.length<2*t;)n="0"+n;return n}(new i(e,16).toString(36),15);return s.fromBban(t.toUpperCase())},s.fromBban=function(e){var t=("0"+(98-a(o("XE00"+e)))).slice(-2);return new s("XE"+t+e)},s.createIndirect=function(e){return s.fromBban("ETH"+e.institution+e.identifier)},s.isValid=function(e){return new s(e).isValid()},s.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(o(this._iban))},s.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},s.prototype.isIndirect=function(){return 20===this._iban.length},s.prototype.checksum=function(){return this._iban.substr(2,2)},s.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},s.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},s.prototype.toAddress=function(){if(this.isDirect()){var e=this._iban.substr(4),t=new i(e,36);return r.toChecksumAddress(t.toString(16,20))}return""},s.prototype.toString=function(){return this._iban},e.exports=s},function(e,t,n){"use strict";var r={messageId:0,toPayload:function(e,t){if(!e)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(t)+'"!');return r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:e,params:t||[]}},isValidResponse:function(e){return Array.isArray(e)?e.every(t):t(e);function t(e){return!(!e||e.error||"2.0"!==e.jsonrpc||"number"!=typeof e.id&&"string"!=typeof e.id||void 0===e.result)}},toBatchPayload:function(e){return e.map((function(e){return r.toPayload(e.method,e.params)}))}};e.exports=r},function(e,t,n){(function(e,r){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,c=2147483647,l=/^xn--/,u=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(d[e])}function b(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function y(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+b((e=e.replace(f,".")).split("."),t).join(".")}function g(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function v(e){return b(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=h(e)})).join("")}function w(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function _(e,t,n){var r=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;r+=36)e=p(e/35);return p(r+36*e/(e+38))}function k(e){var t,n,r,i,o,a,s,l,u,f,d,h=[],b=e.length,y=0,g=128,w=72;for((n=e.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&m("not-basic"),h.push(e.charCodeAt(r));for(i=n>0?n+1:0;i<b;){for(o=y,a=1,s=36;i>=b&&m("invalid-input"),((l=(d=e.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||l>p((c-y)/a))&&m("overflow"),y+=l*a,!(l<(u=s<=w?1:s>=w+26?26:s-w));s+=36)a>p(c/(f=36-u))&&m("overflow"),a*=f;w=_(y-o,t=h.length+1,0==o),p(y/t)>c-g&&m("overflow"),g+=p(y/t),y%=t,h.splice(y++,0,g)}return v(h)}function x(e){var t,n,r,i,o,a,s,l,u,f,d,b,y,v,k,x=[];for(b=(e=g(e)).length,t=128,n=0,o=72,a=0;a<b;++a)(d=e[a])<128&&x.push(h(d));for(r=i=x.length,i&&x.push("-");r<b;){for(s=c,a=0;a<b;++a)(d=e[a])>=t&&d<s&&(s=d);for(s-t>p((c-n)/(y=r+1))&&m("overflow"),n+=(s-t)*y,t=s,a=0;a<b;++a)if((d=e[a])<t&&++n>c&&m("overflow"),d==t){for(l=n,u=36;!(l<(f=u<=o?1:u>=o+26?26:u-o));u+=36)k=l-f,v=36-f,x.push(h(w(f+k%v,0))),l=p(k/v);x.push(h(w(l,0))),o=_(n,y,r==i),n=0,++r}++n,++t}return x.join("")}s={version:"1.4.1",ucs2:{decode:g,encode:v},decode:k,encode:x,toASCII:function(e){return y(e,(function(e){return u.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return y(e,(function(e){return l.test(e)?k(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return s}.call(t,n,t,e))||(e.exports=i)}()}).call(this,n(71)(e),n(12))},function(e,t,n){(function(e){t.fetch=s(e.fetch)&&s(e.ReadableStream),t.writableStream=s(e.WritableStream),t.abortController=s(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function i(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var o=void 0!==e.ArrayBuffer,a=o&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"==typeof e}t.arraybuffer=t.fetch||o&&i("arraybuffer"),t.msstream=!t.fetch&&a&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&s(r().overrideMimeType),t.vbArray=s(e.VBArray),n=null}).call(this,n(12))},function(e,t,n){(function(e,r,i){var o=n(961),a=n(4),s=n(148),c=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=t.IncomingMessage=function(t,n,a,c){var l=this;if(s.Readable.call(l),l._mode=a,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){e.nextTick((function(){l.emit("close")}))})),"fetch"===a){if(l._fetchResponse=n,l.url=n.url,l.statusCode=n.status,l.statusMessage=n.statusText,n.headers.forEach((function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)})),o.writableStream){var u=new WritableStream({write:function(e){return new Promise((function(t,n){l._destroyed?n():l.push(new r(e))?t():l._resumeFetch=t}))},close:function(){i.clearTimeout(c),l._destroyed||l.push(null)},abort:function(e){l._destroyed||l.emit("error",e)}});try{return void n.body.pipeTo(u).catch((function(e){i.clearTimeout(c),l._destroyed||l.emit("error",e)}))}catch(e){}}var f=n.body.getReader();!function e(){f.read().then((function(t){if(!l._destroyed){if(t.done)return i.clearTimeout(c),void l.push(null);l.push(new r(t.value)),e()}})).catch((function(e){i.clearTimeout(c),l._destroyed||l.emit("error",e)}))}()}else{if(l._xhr=t,l._pos=0,l.url=t.responseURL,l.statusCode=t.status,l.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach((function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===l.headers[n]&&(l.headers[n]=[]),l.headers[n].push(t[2])):void 0!==l.headers[n]?l.headers[n]+=", "+t[2]:l.headers[n]=t[2],l.rawHeaders.push(t[1],t[2])}})),l._charset="x-user-defined",!o.overrideMimeType){var d=l.rawHeaders["mime-type"];if(d){var p=d.match(/;\s*charset=([^;])(;|$)/);p&&(l._charset=p[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};a(l,s.Readable),l.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==c.DONE)break;try{n=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new r(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var o=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(o.length),s=0;s<o.length;s++)a[s]=255&o.charCodeAt(s);e.push(a)}else e.push(o,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==c.DONE||!t.response)break;n=t.response,e.push(new r(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==c.LOADING||!n)break;e.push(new r(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==c.LOADING)break;var l=new i.MSStreamReader;l.onprogress=function(){l.result.byteLength>e._pos&&(e.push(new r(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(n)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(13),n(2).Buffer,n(12))},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},function(e,t,n){"use strict";e.exports={addresses:{main:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",ropsten:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",rinkeby:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",goerli:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},interfaceIds:{addr:"0x3b3b57de",setAddr:"0x3b3b57de",pubkey:"0xc8690233",setPubkey:"0xc8690233",contenthash:"0xbc1c58d1",setContenthash:"0xbc1c58d1",content:"0xd8389dc5",setContent:"0xd8389dc5"}}},function(e,t,n){"use strict";var r=n(147),i=n(444),o=n(451),a=n(213),s=n(873).subscription,c=n(145).formatters,l=n(145).errors,u=n(872),f=n(967),d=function e(t,n,o){var s=this,u=Array.prototype.slice.call(arguments);if(!(this instanceof e))throw new Error('Please use the "new" keyword to instantiate a web3.eth.Contract() object!');if(this.setProvider=function(){i.packageInit(s,arguments),s.clearSubscriptions=s._requestManager.clearSubscriptions},i.packageInit(this,[this.constructor]),this.clearSubscriptions=this._requestManager.clearSubscriptions,!t||!Array.isArray(t))throw l.ContractMissingABIError();this.options={};var d=u[u.length-1];r.isObject(d)&&!r.isArray(d)&&(o=d,this.options=r.extend(this.options,this._getOrSetDefaultOptions(o)),r.isObject(n)&&(n=null)),Object.defineProperty(this.options,"address",{set:function(e){e&&(s._address=a.toChecksumAddress(c.inputAddressFormatter(e)))},get:function(){return s._address},enumerable:!0}),Object.defineProperty(this.options,"jsonInterface",{set:function(e){return s.methods={},s.events={},s._jsonInterface=e.map((function(e){var t,n;if(e.constant="view"===e.stateMutability||"pure"===e.stateMutability||e.constant,e.payable="payable"===e.stateMutability||e.payable,e.name&&(n=a._jsonInterfaceMethodToString(e)),"function"===e.type){if(e.signature=f.encodeFunctionSignature(n),t=s._createTxObject.bind({method:e,parent:s}),s.methods[e.name]){var r=s._createTxObject.bind({method:e,parent:s,nextMethod:s.methods[e.name]});s.methods[e.name]=r}else s.methods[e.name]=t;s.methods[e.signature]=t,s.methods[n]=t}else if("event"===e.type){e.signature=f.encodeEventSignature(n);var i=s._on.bind(s,e.signature);s.events[e.name]&&"bound "!==s.events[e.name].name||(s.events[e.name]=i),s.events[e.signature]=i,s.events[n]=i}return e})),s.events.allEvents=s._on.bind(s,"allevents"),s._jsonInterface},get:function(){return s._jsonInterface},enumerable:!0});var p=this.constructor.defaultAccount,h=this.constructor.defaultBlock||"latest";Object.defineProperty(this,"handleRevert",{get:function(){return!1===s.options.handleRevert||!0===s.options.handleRevert?s.options.handleRevert:this.constructor.handleRevert},set:function(e){s.options.handleRevert=e},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return s.options.common||this.constructor.defaultCommon},set:function(e){s.options.common=e},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return s.options.hardfork||this.constructor.defaultHardfork},set:function(e){s.options.hardfork=e},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return s.options.chain||this.constructor.defaultChain},set:function(e){s.options.chain=e},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return 0===s.options.transactionPollingTimeout?s.options.transactionPollingTimeout:s.options.transactionPollingTimeout||this.constructor.transactionPollingTimeout},set:function(e){s.options.transactionPollingTimeout=e},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return 0===s.options.transactionConfirmationBlocks?s.options.transactionConfirmationBlocks:s.options.transactionConfirmationBlocks||this.constructor.transactionConfirmationBlocks},set:function(e){s.options.transactionConfirmationBlocks=e},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return 0===s.options.transactionBlockTimeout?s.options.transactionBlockTimeout:s.options.transactionBlockTimeout||this.constructor.transactionBlockTimeout},set:function(e){s.options.transactionBlockTimeout=e},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return p},set:function(e){return e&&(p=a.toChecksumAddress(c.inputAddressFormatter(e))),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return h},set:function(e){return h=e,e},enumerable:!0}),this.methods={},this.events={},this._address=null,this._jsonInterface=[],this.options.address=n,this.options.jsonInterface=t};d.setProvider=function(e,t){i.packageInit(this,[e]),this._ethAccounts=t},d.prototype._getCallback=function(e){if(e&&r.isFunction(e[e.length-1]))return e.pop()},d.prototype._checkListener=function(e,t){if(t===e)throw l.ContractReservedEventError(e)},d.prototype._getOrSetDefaultOptions=function(e){var t=e.gasPrice?String(e.gasPrice):null,n=e.from?a.toChecksumAddress(c.inputAddressFormatter(e.from)):null;return e.data=e.data||this.options.data,e.from=n||this.options.from,e.gasPrice=t||this.options.gasPrice,e.gas=e.gas||e.gasLimit||this.options.gas,delete e.gasLimit,e},d.prototype._encodeEventABI=function(e,t){var n=(t=t||{}).filter||{},i={};if(["fromBlock","toBlock"].filter((function(e){return void 0!==t[e]})).forEach((function(e){i[e]=c.inputBlockNumberFormatter(t[e])})),r.isArray(t.topics))i.topics=t.topics;else{if(i.topics=[],e&&!e.anonymous&&"ALLEVENTS"!==e.name&&i.topics.push(e.signature),"ALLEVENTS"!==e.name){var o=e.inputs.filter((function(e){return!0===e.indexed})).map((function(e){var t=n[e.name];return t?r.isArray(t)?t.map((function(t){return f.encodeParameter(e.type,t)})):f.encodeParameter(e.type,t):null}));i.topics=i.topics.concat(o)}i.topics.length||delete i.topics}return this.options.address&&(i.address=this.options.address.toLowerCase()),i},d.prototype._decodeEventABI=function(e){var t=this;e.data=e.data||"",e.topics=e.topics||[];var n=c.outputLogFormatter(e);if("ALLEVENTS"===t.name&&(t=t.jsonInterface.find((function(t){return t.signature===e.topics[0]}))||{anonymous:!0}),t.inputs=t.inputs||[],!t.anonymous){let n=0;t.inputs.forEach(e=>e.indexed?n++:null),n>0&&e.topics.length!==n+1&&(t={anonymous:!0,inputs:[]})}var r=t.anonymous?e.topics:e.topics.slice(1);return n.returnValues=f.decodeLog(t.inputs,e.data,r),delete n.returnValues.__length__,n.event=t.name,n.signature=t.anonymous||!e.topics[0]?null:e.topics[0],n.raw={data:n.data,topics:n.topics},delete n.data,delete n.topics,n},d.prototype._encodeMethodABI=function(){var e=this._method.signature,t=this.arguments||[],n=!1,i=this._parent.options.jsonInterface.filter((function(t){return"constructor"===e&&t.type===e||(t.signature===e||t.signature===e.replace("0x","")||t.name===e)&&"function"===t.type})).map((function(e){var i=r.isArray(e.inputs)?e.inputs.length:0;if(i!==t.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+i+" arguments.");return"function"===e.type&&(n=e.signature),r.isArray(e.inputs)?e.inputs:[]})).map((function(e){return f.encodeParameters(e,t).replace("0x","")}))[0]||"";if("constructor"===e){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData.startsWith("0x")||(this._deployData="0x"+this._deployData),this._deployData+i}var o=n?n+i:i;if(!o)throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".');return o},d.prototype._decodeMethodReturn=function(e,t){if(!t)return null;t=t.length>=2?t.slice(2):t;var n=f.decodeParameters(e,t);return 1===n.__length__?n[0]:(delete n.__length__,n)},d.prototype.deploy=function(e,t){if((e=e||{}).arguments=e.arguments||[],!(e=this._getOrSetDefaultOptions(e)).data){if("function"==typeof t)return t(l.ContractMissingDeployDataError());throw l.ContractMissingDeployDataError()}var n=r.find(this.options.jsonInterface,(function(e){return"constructor"===e.type}))||{};return n.signature="constructor",this._createTxObject.apply({method:n,parent:this,deployData:e.data,_ethAccounts:this.constructor._ethAccounts},e.arguments)},d.prototype._generateEventOptions=function(){var e=Array.prototype.slice.call(arguments),t=this._getCallback(e),n=r.isObject(e[e.length-1])?e.pop():{},i=r.isString(e[0])?e[0]:"allevents",o="allevents"===i.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find((function(e){return"event"===e.type&&(e.name===i||e.signature==="0x"+i.replace("0x",""))}));if(!o)throw l.ContractEventDoesNotExistError(i);if(!a.isAddress(this.options.address))throw l.ContractNoAddressDefinedError();return{params:this._encodeEventABI(o,n),event:o,callback:t}},d.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},d.prototype.once=function(e,t,n){var i=Array.prototype.slice.call(arguments);if(!(n=this._getCallback(i)))throw l.ContractOnceRequiresCallbackError();t&&delete t.fromBlock,this._on(e,t,(function(e,t,i){i.unsubscribe(),r.isFunction(n)&&n(e,t,i)}))},d.prototype._on=function(){var e=this._generateEventOptions.apply(this,arguments);e.params&&e.params.toBlock&&(delete e.params.toBlock,console.warn("Invalid option: toBlock. Use getPastEvents for specific range.")),this._checkListener("newListener",e.event.name),this._checkListener("removeListener",e.event.name);var t=new s({subscription:{params:1,inputFormatter:[c.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event),subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),r.isFunction(this.callback)&&this.callback(null,e,this)}},type:"eth",requestManager:this._requestManager});return t.subscribe("logs",e.params,e.callback||function(){}),t},d.prototype.getPastEvents=function(){var e=this._generateEventOptions.apply(this,arguments),t=new o({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[c.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event)});t.setRequestManager(this._requestManager);var n=t.buildCall();return t=null,n(e.params,e.callback)},d.prototype._createTxObject=function(){var e=Array.prototype.slice.call(arguments),t={};if("function"===this.method.type&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),e&&this.method.inputs&&e.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,e);throw l.InvalidNumberOfParams(e.length,this.method.inputs.length,this.method.name)}return t.arguments=e||[],t._method=this.method,t._parent=this.parent,t._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(t._deployData=this.deployData),t},d.prototype._processExecuteArguments=function(e,t){var n={};if(n.type=e.shift(),n.callback=this._parent._getCallback(e),"call"===n.type&&!0!==e[e.length-1]&&(r.isString(e[e.length-1])||isFinite(e[e.length-1]))&&(n.defaultBlock=e.pop()),n.options=r.isObject(e[e.length-1])?e.pop():{},n.generateRequest=!0===e[e.length-1]&&e.pop(),n.options=this._parent._getOrSetDefaultOptions(n.options),n.options.data=this.encodeABI(),!this._deployData&&!a.isAddress(this._parent.options.address))throw l.ContractNoAddressDefinedError();return this._deployData||(n.options.to=this._parent.options.address),n.options.data?n:a._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),t.eventEmitter,t.reject,n.callback)},d.prototype._executeMethod=function(){var e=this,t=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),n),n=u("send"!==t.type),i=e.constructor._ethAccounts||e._ethAccounts;if(t.generateRequest){var s={params:[c.inputCallFormatter.call(this._parent,t.options)],callback:t.callback};return"call"===t.type?(s.params.push(c.inputDefaultBlockNumberFormatter.call(this._parent,t.defaultBlock)),s.method="eth_call",s.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):s.method="eth_sendTransaction",s}switch(t.type){case"estimate":var d=new o({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[c.inputCallFormatter],outputFormatter:a.hexToNumber,requestManager:e._parent._requestManager,accounts:i,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction();return d(t.options,t.callback);case"call":var p=new o({name:"call",call:"eth_call",params:2,inputFormatter:[c.inputCallFormatter,c.inputDefaultBlockNumberFormatter],outputFormatter:function(t){return e._parent._decodeMethodReturn(e._method.outputs,t)},requestManager:e._parent._requestManager,accounts:i,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,handleRevert:e._parent.handleRevert,abiCoder:f}).createFunction();return p(t.options,t.defaultBlock,t.callback);case"send":if(!a.isAddress(t.options.from))return a._fireError(l.ContractNoFromAddressDefinedError(),n.eventEmitter,n.reject,t.callback);if(r.isBoolean(this._method.payable)&&!this._method.payable&&t.options.value&&t.options.value>0)return a._fireError(new Error("Can not send value to non-payable contract method or constructor"),n.eventEmitter,n.reject,t.callback);var h={receiptFormatter:function(t){if(r.isArray(t.logs)){var n=r.map(t.logs,(function(t){return e._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:e._parent.options.jsonInterface},t)}));t.events={};var i=0;n.forEach((function(e){e.event?t.events[e.event]?Array.isArray(t.events[e.event])?t.events[e.event].push(e):t.events[e.event]=[t.events[e.event],e]:t.events[e.event]=e:(t.events[i]=e,i++)})),delete t.logs}return t},contractDeployFormatter:function(t){var n=e._parent.clone();return n.options.address=t.contractAddress,n}},m=new o({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[c.inputTransactionFormatter],requestManager:e._parent._requestManager,accounts:e.constructor._ethAccounts||e._ethAccounts,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,transactionBlockTimeout:e._parent.transactionBlockTimeout,transactionConfirmationBlocks:e._parent.transactionConfirmationBlocks,transactionPollingTimeout:e._parent.transactionPollingTimeout,defaultCommon:e._parent.defaultCommon,defaultChain:e._parent.defaultChain,defaultHardfork:e._parent.defaultHardfork,handleRevert:e._parent.handleRevert,extraFormatters:h,abiCoder:f}).createFunction();return m(t.options,t.callback);default:throw new Error('Method "'+t.type+'" not implemented.')}},e.exports=d},function(e,t,n){var r=n(2).Buffer,i=n(147),o=n(213),a=n(1040).AbiCoder,s=n(1040).ParamType,c=new a((function(e,t){return!e.match(/^u?int/)||i.isArray(t)||i.isObject(t)&&"BN"===t.constructor.name?t:t.toString()}));function l(){}var u=function(){};u.prototype.encodeFunctionSignature=function(e){return i.isObject(e)&&(e=o._jsonInterfaceMethodToString(e)),o.sha3(e).slice(0,10)},u.prototype.encodeEventSignature=function(e){return i.isObject(e)&&(e=o._jsonInterfaceMethodToString(e)),o.sha3(e)},u.prototype.encodeParameter=function(e,t){return this.encodeParameters([e],[t])},u.prototype.encodeParameters=function(e,t){var n=this;return e=n.mapTypes(e),t=t.map((function(t,r){let i=e[r];if("object"==typeof i&&i.type&&(i=i.type),t=n.formatParam(i,t),"string"==typeof i&&i.includes("tuple")){const e=c._getCoder(s.from(i)),r=(e,t)=>{if("array"===e.name)return t.map(t=>r(c._getCoder(s.from(e.type.replace("[]",""))),t));e.coders.forEach((e,i)=>{"tuple"===e.name?r(e,t[i]):t[i]=n.formatParam(e.name,t[i])})};r(e,t)}return t})),c.encode(e,t)},u.prototype.mapTypes=function(e){var t=this,n=[];return e.forEach((function(e){if("object"==typeof e&&"function"===e.type&&(e.type="bytes24"),t.isSimplifiedStructFormat(e)){var r=Object.keys(e)[0];n.push(Object.assign(t.mapStructNameAndType(r),{components:t.mapStructToCoderFormat(e[r])}))}else n.push(e)})),n},u.prototype.isSimplifiedStructFormat=function(e){return"object"==typeof e&&void 0===e.components&&void 0===e.name},u.prototype.mapStructNameAndType=function(e){var t="tuple";return e.indexOf("[]")>-1&&(t="tuple[]",e=e.slice(0,-2)),{type:t,name:e}},u.prototype.mapStructToCoderFormat=function(e){var t=this,n=[];return Object.keys(e).forEach((function(r){"object"!=typeof e[r]?n.push({name:r,type:e[r]}):n.push(Object.assign(t.mapStructNameAndType(r),{components:t.mapStructToCoderFormat(e[r])}))})),n},u.prototype.formatParam=function(e,t){const n=new RegExp(/^bytes([0-9]*)$/),i=new RegExp(/^bytes([0-9]*)\[\]$/),a=new RegExp(/^(u?int)([0-9]*)$/),s=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(o.isBN(t)||o.isBigNumber(t))return t.toString(10);if(e.match(i)||e.match(s))return t.map(t=>this.formatParam(e.replace("[]",""),t));let c=e.match(a);if(c){let e=parseInt(c[2]||"256");e/8<t.length&&(t=o.leftPad(t,e))}if(c=e.match(n),c){r.isBuffer(t)&&(t=o.toHex(t));let e=parseInt(c[1]);if(e){let n=2*e;"0x"===t.substring(0,2)&&(n+=2),t.length<n&&(t=o.rightPad(t,2*e))}t.length%2==1&&(t="0x0"+t.substring(2))}return t},u.prototype.encodeFunctionCall=function(e,t){return this.encodeFunctionSignature(e)+this.encodeParameters(e.inputs,t).replace("0x","")},u.prototype.decodeParameter=function(e,t){return this.decodeParameters([e],t)[0]},u.prototype.decodeParameters=function(e,t){return this.decodeParametersWith(e,t,!1)},u.prototype.decodeParametersWith=function(e,t,n){if(e.length>0&&(!t||"0x"===t||"0X"===t))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var r=c.decode(this.mapTypes(e),"0x"+t.replace(/0x/i,""),n),o=new l;return o.__length__=0,e.forEach((function(e,t){var n=r[o.__length__];n="0x"===n?null:n,o[t]=n,i.isObject(e)&&e.name&&(o[e.name]=n),o.__length__++})),o},u.prototype.decodeLog=function(e,t,n){var r=this;n=i.isArray(n)?n:[n],t=t||"";var o=[],a=[],s=0;e.forEach((function(e,t){e.indexed?(a[t]=["bool","int","uint","address","fixed","ufixed"].find((function(t){return-1!==e.type.indexOf(t)}))?r.decodeParameter(e.type,n[s]):n[s],s++):o[t]=e}));var c=t,u=c?this.decodeParametersWith(o,c,!0):[],f=new l;return f.__length__=0,e.forEach((function(e,t){f[t]="string"===e.type?"":null,void 0!==u[t]&&(f[t]=u[t]),void 0!==a[t]&&(f[t]=a[t]),e.name&&(f[e.name]=f[t]),f.__length__++})),f};var f=new u;e.exports=f},function(e,t,n){"use strict";(function(t){const r=n(853);function i(e){return parseInt(e.toString("hex"),16)}function o(e){let n=e.toString(16);return n.length%2==1&&(n="0"+n),t.from(n,"hex")}e.exports={numberToBuffer:o,bufferToNumber:i,varintBufferEncode:function(e){return t.from(r.encode(i(e)))},varintBufferDecode:function(e){return o(r.decode(e))},varintEncode:function(e){return t.from(r.encode(e))}}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";const{Buffer:r}=n(2),i=n(905),o=n(1177),a=n(1183),s=n(854),c=n(1188),l=n(1189);class u{constructor(e,t,n,s){if(f.isCID(e)){const t=e;return this.version=t.version,this.codec=t.codec,this.multihash=r.from(t.multihash),void(this.multibaseName=t.multibaseName||(0===t.version?"base58btc":"base32"))}if("string"==typeof e){const t=o.isEncoded(e);if(t){const n=o.decode(e);this.version=parseInt(n.slice(0,1).toString("hex"),16),this.codec=a.getCodec(n.slice(1)),this.multihash=a.rmPrefix(n.slice(1)),this.multibaseName=t}else this.version=0,this.codec="dag-pb",this.multihash=i.fromB58String(e),this.multibaseName="base58btc";return u.validateCID(this),void Object.defineProperty(this,"string",{value:e})}if(r.isBuffer(e)){const t=e.slice(0,1),n=parseInt(t.toString("hex"),16);if(1===n){const t=e;this.version=n,this.codec=a.getCodec(t.slice(1)),this.multihash=a.rmPrefix(t.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";u.validateCID(this)}else this.version=e,this.codec=t,this.multihash=n,this.multibaseName=s||(0===e?"base58btc":"base32"),u.validateCID(this)}get buffer(){let e=this._buffer;if(!e){if(0===this.version)e=this.multihash;else{if(1!==this.version)throw new Error("unsupported version");e=r.concat([r.from("01","hex"),a.getCodeVarint(this.codec),this.multihash])}Object.defineProperty(this,"_buffer",{value:e})}return e}get prefix(){return r.concat([r.from("0"+this.version,"hex"),a.getCodeVarint(this.codec),i.prefix(this.multihash)])}toV0(){if("dag-pb"!==this.codec)throw new Error("Cannot convert a non dag-pb CID to CIDv0");const{name:e,length:t}=i.decode(this.multihash);if("sha2-256"!==e)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(32!==t)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new f(0,this.codec,this.multihash)}toV1(){return new f(1,this.codec,this.multihash)}toBaseEncodedString(e=this.multibaseName){if(this.string&&e===this.multibaseName)return this.string;let t=null;if(0===this.version){if("base58btc"!==e)throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=i.toB58String(this.multihash)}else{if(1!==this.version)throw new Error("unsupported version");t=o.encode(e,this.buffer).toString()}return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&this.multihash.equals(e.multihash)}static validateCID(e){const t=c.checkCIDComponents(e);if(t)throw new Error(t)}}const f=l(u,{className:"CID",symbolName:"@ipld/js-cid/CID"});f.codecs=s,e.exports=f},function(e,t,n){"use strict";const r=n(853),{Buffer:i}=n(2);function o(e){return parseInt(e.toString("hex"),16)}function a(e){let t=e.toString(16);return t.length%2==1&&(t="0"+t),i.from(t,"hex")}e.exports={numberToBuffer:a,bufferToNumber:o,varintBufferEncode:function(e){return i.from(r.encode(o(e)))},varintBufferDecode:function(e){return a(r.decode(e))},varintEncode:function(e){return i.from(r.encode(e))}}},function(e,t,n){"use strict";var r=n(444),i=n(451),o=n(213),a=n(874),s=n(145).formatters,c=function(){var e=this;r.packageInit(this,arguments),this.net=new a(this);var t=null,n="latest";Object.defineProperty(this,"defaultAccount",{get:function(){return t},set:function(e){return e&&(t=o.toChecksumAddress(s.inputAddressFormatter(e))),c.forEach((function(e){e.defaultAccount=t})),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return n},set:function(e){return n=e,c.forEach((function(e){e.defaultBlock=n})),e},enumerable:!0});var c=[new i({name:"getAccounts",call:"personal_listAccounts",params:0,outputFormatter:o.toChecksumAddress}),new i({name:"newAccount",call:"personal_newAccount",params:1,inputFormatter:[null],outputFormatter:o.toChecksumAddress}),new i({name:"unlockAccount",call:"personal_unlockAccount",params:3,inputFormatter:[s.inputAddressFormatter,null,null]}),new i({name:"lockAccount",call:"personal_lockAccount",params:1,inputFormatter:[s.inputAddressFormatter]}),new i({name:"importRawKey",call:"personal_importRawKey",params:2}),new i({name:"sendTransaction",call:"personal_sendTransaction",params:2,inputFormatter:[s.inputTransactionFormatter,null]}),new i({name:"signTransaction",call:"personal_signTransaction",params:2,inputFormatter:[s.inputTransactionFormatter,null]}),new i({name:"sign",call:"personal_sign",params:3,inputFormatter:[s.inputSignFormatter,s.inputAddressFormatter,null]}),new i({name:"ecRecover",call:"personal_ecRecover",params:2,inputFormatter:[s.inputSignFormatter,null]})];c.forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount}))};r.addProviders(c),e.exports=c},function(e,t){e.exports={encode:e=>{const t=e=>{return(t=e.toString(16)).length%2==0?t:"0"+t;var t},n=(e,n)=>e<56?t(n+e):t(n+t(e).length/2+55)+t(e),r=e=>{if("string"==typeof e){const t=e.slice(2);return(2!=t.length||t>="80"?n(t.length/2,128):"")+t}{const t=e.map(r).join("");return n(t.length/2,192)+t}};return"0x"+r(e)},decode:e=>{let t=2;const n=()=>{if(t>=e.length)throw"";const n=e.slice(t,t+2);return n<"80"?(t+=2,"0x"+n):n<"c0"?i():o()},r=()=>{const n=parseInt(e.slice(t,t+=2),16)%64;return n<56?n:parseInt(e.slice(t,t+=2*(n-55)),16)},i=()=>{const n=r();return"0x"+e.slice(t,t+=2*n)},o=()=>{const e=2*r()+t;let i=[];for(;t<e;)i.push(n());return i};try{return n()}catch(e){return[]}}}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}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 n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,i=n;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].join("")}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(976),o=n(978),a=n(2),s=new i.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),c=function(){function e(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),t.common){if(t.chain||t.hardfork)throw new Error("Instantiation with both opts.common, and opts.chain and opts.hardfork parameter not allowed!");this._common=t.common}else{var n=t.chain?t.chain:"mainnet",r=t.hardfork?t.hardfork:"petersburg";this._common=new o.default(n,r)}var s=[{name:"nonce",length:32,allowLess:!0,default:new a.Buffer([])},{name:"gasPrice",length:32,allowLess:!0,default:new a.Buffer([])},{name:"gasLimit",alias:"gas",length:32,allowLess:!0,default:new a.Buffer([])},{name:"to",allowZero:!0,length:20,default:new a.Buffer([])},{name:"value",length:32,allowLess:!0,default:new a.Buffer([])},{name:"data",alias:"input",allowZero:!0,default:new a.Buffer([])},{name:"v",allowZero:!0,default:new a.Buffer([])},{name:"r",length:32,allowZero:!0,allowLess:!0,default:new a.Buffer([])},{name:"s",length:32,allowZero:!0,allowLess:!0,default:new a.Buffer([])}];i.defineProperties(this,s,e),Object.defineProperty(this,"from",{enumerable:!0,configurable:!0,get:this.getSenderAddress.bind(this)}),this._validateV(this.v),this._overrideVSetterWithValidation()}return e.prototype.toCreationAddress=function(){return""===this.to.toString("hex")},e.prototype.hash=function(e){var t;return void 0===e&&(e=!0),t=e?this.raw:this._implementsEIP155()?this.raw.slice(0,6).concat([i.toBuffer(this.getChainId()),i.stripZeros(i.toBuffer(0)),i.stripZeros(i.toBuffer(0))]):this.raw.slice(0,6),i.rlphash(t)},e.prototype.getChainId=function(){return this._common.chainId()},e.prototype.getSenderAddress=function(){if(this._from)return this._from;var e=this.getSenderPublicKey();return this._from=i.publicToAddress(e),this._from},e.prototype.getSenderPublicKey=function(){if(!this.verifySignature())throw new Error("Invalid Signature");return this._senderPubKey},e.prototype.verifySignature=function(){var e=this.hash(!1);if(this._common.gteHardfork("homestead")&&1===new i.BN(this.s).cmp(s))return!1;try{var t=i.bufferToInt(this.v),n=t>=2*this.getChainId()+35&&this._common.gteHardfork("spuriousDragon");this._senderPubKey=i.ecrecover(e,t,this.r,this.s,n?this.getChainId():void 0)}catch(e){return!1}return!!this._senderPubKey},e.prototype.sign=function(e){this.v=new a.Buffer([]),this.s=new a.Buffer([]),this.r=new a.Buffer([]);var t=this.hash(!1),n=i.ecsign(t,e);this._implementsEIP155()&&(n.v+=2*this.getChainId()+8),Object.assign(this,n)},e.prototype.getDataFee=function(){for(var e=this.raw[5],t=new i.BN(0),n=0;n<e.length;n++)0===e[n]?t.iaddn(this._common.param("gasPrices","txDataZero")):t.iaddn(this._common.param("gasPrices","txDataNonZero"));return t},e.prototype.getBaseFee=function(){var e=this.getDataFee().iaddn(this._common.param("gasPrices","tx"));return this._common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this._common.param("gasPrices","txCreation")),e},e.prototype.getUpfrontCost=function(){return new i.BN(this.gasLimit).imul(new i.BN(this.gasPrice)).iadd(new i.BN(this.value))},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.verifySignature()||t.push("Invalid Signature"),this.getBaseFee().cmp(new i.BN(this.gasLimit))>0&&t.push(["gas limit is too low. Need at least "+this.getBaseFee()]),!1===e?0===t.length:t.join(" ")},e.prototype.serialize=function(){return i.rlp.encode(this.raw)},e.prototype.toJSON=function(e){return void 0===e&&(e=!1),{}},e.prototype._validateV=function(e){if(void 0!==e&&0!==e.length&&this._common.gteHardfork("spuriousDragon")){var t=i.bufferToInt(e);if(27!==t&&28!==t)if(!(t===2*this.getChainId()+35||t===2*this.getChainId()+36))throw new Error("Incompatible EIP155-based V "+t+" and chain id "+this.getChainId()+". See the second parameter of the Transaction constructor to set the chain id.")}},e.prototype._isSigned=function(){return this.v.length>0&&this.r.length>0&&this.s.length>0},e.prototype._overrideVSetterWithValidation=function(){var e=this,t=Object.getOwnPropertyDescriptor(this,"v");Object.defineProperty(this,"v",r({},t,{set:function(n){void 0!==n&&e._validateV(i.toBuffer(n)),t.set(n)}}))},e.prototype._implementsEIP155=function(){var e=this._common.gteHardfork("spuriousDragon");if(!this._isSigned())return e;var t=i.bufferToInt(this.v);return(t===2*this.getChainId()+35||t===2*this.getChainId()+36)&&e},e}();t.default=c},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.secp256k1=t.rlp=t.BN=void 0;var o=n(907);t.secp256k1=o;var a=n(855),s=n(6);t.BN=s;var c=n(908);t.rlp=c,Object.assign(t,a),i(n(1203),t),i(n(1204),t),i(n(909),t),i(n(1213),t),i(n(856),t),i(n(1214),t)},function(e,t,n){"use strict";(function(t){var r=n(406);
127 /*!
128  * The buffer module from node.js, for the browser.
129  *
130  * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
131  * @license  MIT
132  */function i(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function o(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var a=n(901),s=Object.prototype.hasOwnProperty,c=Array.prototype.slice,l="foo"===function(){}.name;function u(e){return Object.prototype.toString.call(e)}function f(e){return!o(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var d=e.exports=g,p=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(a.isFunction(e)){if(l)return e.name;var t=e.toString().match(p);return t&&t[1]}}function m(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function b(e){if(l||!a.isFunction(e))return a.inspect(e);var t=h(e);return"[Function"+(t?": "+t:"")+"]"}function y(e,t,n,r,i){throw new d.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:i})}function g(e,t){e||y(e,!0,t,"==",d.ok)}function v(e,t,n,r){if(e===t)return!0;if(o(e)&&o(t))return 0===i(e,t);if(a.isDate(e)&&a.isDate(t))return e.getTime()===t.getTime();if(a.isRegExp(e)&&a.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(f(e)&&f(t)&&u(e)===u(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===i(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;var s=(r=r||{actual:[],expected:[]}).actual.indexOf(e);return-1!==s&&s===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),function(e,t,n,r){if(null==e||null==t)return!1;if(a.isPrimitive(e)||a.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=w(e),o=w(t);if(i&&!o||!i&&o)return!1;if(i)return e=c.call(e),t=c.call(t),v(e,t,n);var s,l,u=x(e),f=x(t);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),l=u.length-1;l>=0;l--)if(u[l]!==f[l])return!1;for(l=u.length-1;l>=0;l--)if(s=u[l],!v(e[s],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function w(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function _(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function k(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&y(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i&&!n;if((!e&&a.isError(i)&&o&&_(i,n)||s)&&y(i,n,"Got unwanted exception"+r),e&&i&&n&&!_(i,n)||!e&&i)throw i}d.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return m(b(e.actual),128)+" "+e.operator+" "+m(b(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=h(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},a.inherits(d.AssertionError,Error),d.fail=y,d.ok=g,d.equal=function(e,t,n){e!=t&&y(e,t,n,"==",d.equal)},d.notEqual=function(e,t,n){e==t&&y(e,t,n,"!=",d.notEqual)},d.deepEqual=function(e,t,n){v(e,t,!1)||y(e,t,n,"deepEqual",d.deepEqual)},d.deepStrictEqual=function(e,t,n){v(e,t,!0)||y(e,t,n,"deepStrictEqual",d.deepStrictEqual)},d.notDeepEqual=function(e,t,n){v(e,t,!1)&&y(e,t,n,"notDeepEqual",d.notDeepEqual)},d.notDeepStrictEqual=function e(t,n,r){v(t,n,!0)&&y(t,n,r,"notDeepStrictEqual",e)},d.strictEqual=function(e,t,n){e!==t&&y(e,t,n,"===",d.strictEqual)},d.notStrictEqual=function(e,t,n){e===t&&y(e,t,n,"!==",d.notStrictEqual)},d.throws=function(e,t,n){k(!0,e,t,n)},d.doesNotThrow=function(e,t,n){k(!1,e,t,n)},d.ifError=function(e){if(e)throw e},d.strict=r((function e(t,n){t||y(t,!0,n,"==",e)}),d,{equal:d.strictEqual,deepEqual:d.deepStrictEqual,notEqual:d.notStrictEqual,notDeepEqual:d.notDeepStrictEqual}),d.strict.strict=d.strict;var x=Object.keys||function(e){var t=[];for(var n in e)s.call(e,n)&&t.push(n);return t}}).call(this,n(12))},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(1215),o=n(1221),a=function(){function e(e,t,n){this._chainParams=this.setChain(e),this._hardfork=null,this._supportedHardforks=void 0===n?[]:n,t&&this.setHardfork(t)}return e.forCustomChain=function(t,n,i,o){var a=e._getChainParams(t);return new e(r(r({},a),n),i,o)},e._getChainParams=function(e){if("number"==typeof e){if(i.chains.names[e])return i.chains[i.chains.names[e]];throw new Error("Chain with ID "+e+" not supported")}if(i.chains[e])return i.chains[e];throw new Error("Chain with name "+e+" not supported")},e.prototype.setChain=function(t){if("number"==typeof t||"string"==typeof t)this._chainParams=e._getChainParams(t);else{if("object"!=typeof t)throw new Error("Wrong input format");for(var n=0,r=["networkId","genesis","hardforks","bootstrapNodes"];n<r.length;n++){var i=r[n];if(void 0===t[i])throw new Error("Missing required chain parameter: "+i)}this._chainParams=t}return this._chainParams},e.prototype.setHardfork=function(e){if(!this._isSupportedHardfork(e))throw new Error("Hardfork "+e+" not set as supported in supportedHardforks");for(var t=!1,n=0,r=o.hardforks;n<r.length;n++){r[n][0]===e&&(this._hardfork=e,t=!0)}if(!t)throw new Error("Hardfork with name "+e+" not supported")},e.prototype._chooseHardfork=function(e,t){if(t=void 0===t||t,e){if(t&&!this._isSupportedHardfork(e))throw new Error("Hardfork "+e+" not set as supported in supportedHardforks")}else{if(!this._hardfork)throw new Error("Method called with neither a hardfork set nor provided by param");e=this._hardfork}return e},e.prototype._getHardfork=function(e){for(var t=0,n=this.hardforks();t<n.length;t++){var r=n[t];if(r.name===e)return r}throw new Error("Hardfork "+e+" not defined for chain "+this.chainName())},e.prototype._isSupportedHardfork=function(e){if(!(this._supportedHardforks.length>0))return!0;for(var t=0,n=this._supportedHardforks;t<n.length;t++){if(e===n[t])return!0}return!1},e.prototype.param=function(e,t,n){var r;n=this._chooseHardfork(n);for(var i=0,a=o.hardforks;i<a.length;i++){var s=a[i];if(!s[1][e])throw new Error("Topic "+e+" not defined");if(void 0!==s[1][e][t]&&(r=s[1][e][t].v),s[0]===n)break}if(void 0===r)throw new Error(e+" value for "+t+" not found");return r},e.prototype.paramByBlock=function(e,t,n){var r=this.activeHardforks(n),i=r[r.length-1].name;return this.param(e,t,i)},e.prototype.hardforkIsActiveOnBlock=function(e,t,n){var r=void 0!==(n=void 0!==n?n:{}).onlySupported&&n.onlySupported;e=this._chooseHardfork(e,r);var i=this.hardforkBlock(e);return null!==i&&t>=i},e.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},e.prototype.hardforkGteHardfork=function(e,t,n){var r=void 0!==(n=void 0!==n?n:{}).onlyActive&&n.onlyActive;e=this._chooseHardfork(e,n.onlySupported);for(var i=-1,o=-1,a=0,s=0,c=r?this.activeHardforks(null,n):this.hardforks();s<c.length;s++){var l=c[s];l.name===e&&(i=a),l.name===t&&(o=a),a+=1}return i>=o},e.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},e.prototype.hardforkIsActiveOnChain=function(e,t){var n=void 0!==(t=void 0!==t?t:{}).onlySupported&&t.onlySupported;e=this._chooseHardfork(e,n);for(var r=0,i=this.hardforks();r<i.length;r++){var o=i[r];if(o.name===e&&null!==o.block)return!0}return!1},e.prototype.activeHardforks=function(e,t){t=void 0!==t?t:{};for(var n=[],r=0,i=this.hardforks();r<i.length;r++){var o=i[r];if(null!==o.block){if(null!=e&&e<o.block)break;t.onlySupported&&!this._isSupportedHardfork(o.name)||n.push(o)}}return n},e.prototype.activeHardfork=function(e,t){t=void 0!==t?t:{};var n=this.activeHardforks(e,t);if(n.length>0)return n[n.length-1].name;throw new Error("No (supported) active hardfork found")},e.prototype.hardforkBlock=function(e){return e=this._chooseHardfork(e,!1),this._getHardfork(e).block},e.prototype.isHardforkBlock=function(e,t){return t=this._chooseHardfork(t,!1),this.hardforkBlock(t)===e},e.prototype.consensus=function(e){return e=this._chooseHardfork(e),this._getHardfork(e).consensus},e.prototype.finality=function(e){return e=this._chooseHardfork(e),this._getHardfork(e).finality},e.prototype.genesis=function(){return this._chainParams.genesis},e.prototype.hardforks=function(){return this._chainParams.hardforks},e.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},e.prototype.hardfork=function(){return this._hardfork},e.prototype.chainId=function(){return this._chainParams.chainId},e.prototype.chainName=function(){return i.chains.names[this.chainId()]||this._chainParams.name},e.prototype.networkId=function(){return this._chainParams.networkId},e}();t.default=a},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r);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":"��"},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=a(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),s=0;s<o.length;s++){var c=o[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},function(e,t,n){n(1248);var r=function(e,t){return parseInt(e.slice(2*t+2,2*t+4),16)},i=function(e){return(e.length-2)/2},o=function(e){for(var t=[],n=2,r=e.length;n<r;n+=2)t.push(parseInt(e.slice(n,n+2),16));return t},a=function(e){for(var t="0x",n=0,r=e.length;n<r;++n){var i=e[n];t+=(i<16?"0":"")+i.toString(16)}return t};e.exports={random:function(e){var t=void 0;t="undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues?window.crypto.getRandomValues(new Uint8Array(e)):n(72).randomBytes(e);for(var r="0x",i=0;i<e;++i)r+=("00"+t[i].toString(16)).slice(-2);return r},length:i,concat:function(e,t){return e.concat(t.slice(2))},flatten:function(e){return"0x"+e.reduce((function(e,t){return e+t.slice(2)}),"")},slice:function(e,t,n){return"0x"+n.slice(2*e+2,2*t+2)},reverse:function(e){for(var t="0x",n=0,r=i(e);n<r;++n)t+=e.slice(2*(r-n),2*(r-n+1));return t},pad:function e(t,n){return n.length===2*t+2?n:e(t,"0x0"+n.slice(2))},padRight:function e(t,n){return n.length===2*t+2?n:e(t,n+"0")},fromAscii:function(e){for(var t="0x",n=0;n<e.length;++n)t+=("00"+e.charCodeAt(n).toString(16)).slice(-2);return t},toAscii:function(e){for(var t="",n=2;n<e.length;n+=2)t+=String.fromCharCode(parseInt(e.slice(n,n+2),16));return t},fromString:function(e){for(var t=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},n="0x",r=0;r!=e.length;r++){var i=e.charCodeAt(r);if(i<128)n+=t(i);else{if(i<2048)n+=t(i>>6|192);else{if(i>55295&&i<56320){if(++r==e.length)return null;var o=e.charCodeAt(r);if(o<56320||o>57343)return null;n+=t((i=65536+((1023&i)<<10)+(1023&o))>>18|240),n+=t(i>>12&63|128)}else n+=t(i>>12|224);n+=t(i>>6&63|128)}n+=t(63&i|128)}}return n},toString:function(e){for(var t="",n=0,o=i(e);n<o;){var a=r(e,n++);if(a>127){if(a>191&&a<224){if(n>=o)return null;a=(31&a)<<6|63&r(e,n)}else if(a>223&&a<240){if(n+1>=o)return null;a=(15&a)<<12|(63&r(e,n))<<6|63&r(e,++n)}else{if(!(a>239&&a<248))return null;if(n+2>=o)return null;a=(7&a)<<18|(63&r(e,n))<<12|(63&r(e,++n))<<6|63&r(e,++n)}++n}if(a<=65535)t+=String.fromCharCode(a);else{if(!(a<=1114111))return null;a-=65536,t+=String.fromCharCode(a>>10|55296),t+=String.fromCharCode(1023&a|56320)}}return t},fromNumber:function(e){var t=e.toString(16);return t.length%2==0?"0x"+t:"0x0"+t},toNumber:function(e){return parseInt(e.slice(2),16)},fromNat:function(e){return"0x0"===e?"0x":e.length%2==0?e:"0x0"+e.slice(2)},toNat:function(e){return"0"===e[2]?"0x"+e.slice(3):e},fromArray:a,toArray:o,fromUint8Array:function(e){return a([].slice.call(e,0))},toUint8Array:function(e){return new Uint8Array(o(e))}}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.useSendGasConfig=t.SendGasConfig=void 0;const i=n(900),o=n(63),a=n(0),s=n(5);class c extends i.GasConfig{constructor(e,t,n,r){super(e,t),this.amountConfig=n,this.sendMsgOpts=r,s.makeObservable(this)}setSendMsgOpts(e){this.sendMsgOpts=e}get gas(){if(this._gas<=0&&this.amountConfig.sendCurrency){switch(new o.DenomHelper(this.amountConfig.sendCurrency.coinMinimalDenom).type){case"cw20":return this.sendMsgOpts.cw20.gas;case"secret20":return this.sendMsgOpts.secret20.gas;default:return this.sendMsgOpts.native.gas}}return this._gas}}r([s.observable.ref],c.prototype,"sendMsgOpts",void 0),r([s.action],c.prototype,"setSendMsgOpts",null),t.SendGasConfig=c;t.useSendGasConfig=(e,t,n,r)=>{const[i]=a.useState(()=>new c(e,t,n,r));return i.setChain(t),i.setSendMsgOpts(r),i}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AccountStore=t.AccountStoreInner=t.WalletStatus=void 0;const a=n(209),s=n(63),c=n(5),l=n(11),u=o(n(68)),f=n(114),d=n(23),p=n(919),h=n(2),m=o(n(390));var b;!function(e){e.Loading="Loading",e.Loaded="Loaded",e.NotExist="NotExist"}(b=t.WalletStatus||(t.WalletStatus={}));class y{constructor(e,t,n,r){this.chainGetter=e,this.chainId=t,this.queriesStore=n,this.opts=r,this._walletVersion=void 0,this._walletStatus=b.Loading,this._name="",this._bech32Address="",this._isSendingMsg=!1,this.broadcastMode="sync",c.makeObservable(this),this.pubKey=new Uint8Array,this.init()}get msgOpts(){return this.opts.msgOpts}enable(e,t){return i(this,void 0,void 0,(function*(){const n=this.chainGetter.getChain(t);this.opts.suggestChain&&(yield e.experimentalSuggestChain(n)),yield e.enable(t)}))}*init(){if(this.walletStatus===b.NotExist)return;window.addEventListener("keplr_keystorechange",()=>this.init(),{once:!0}),this._walletStatus=b.Loading;const e=yield*s.toGenerator(g.getKeplr());if(!e)return void(this._walletStatus=b.NotExist);this._walletVersion=e.version,yield this.enable(e,this.chainId);const t=yield*s.toGenerator(e.getKey(this.chainId));this._bech32Address=t.bech32Address,this._name=t.name,this.pubKey=t.pubKey,this._walletStatus=b.Loaded}get walletVersion(){return this._walletVersion}get isReadyToSendMsgs(){return this.walletStatus===b.Loaded&&""!==this.bech32Address}sendMsgs(e,t,n,r="",o={},a){return i(this,void 0,void 0,(function*(){let i,s;c.runInAction(()=>{this._isSendingMsg=e});try{const e=yield this.broadcastMsgs(t,n,r,this.broadcastMode,o);i=e.txHash,s=e.signDoc}catch(e){throw c.runInAction(()=>{this._isSendingMsg=!1}),e}const u=new l.TendermintTxTracer(this.chainGetter.getChain(this.chainId).rpc,"/websocket");u.traceTx(i).then(e=>{u.close(),c.runInAction(()=>{this._isSendingMsg=!1});for(const e of s.fee.amount){const t=this.queries.getQueryBalances().getQueryBech32Address(this.bech32Address).balances.find(t=>t.currency.coinMinimalDenom===e.denom);t&&t.fetch()}a&&a(e)})}))}sendToken(e,t,n,r="",o,a={},c){return i(this,void 0,void 0,(function*(){const i=new s.DenomHelper(t.coinMinimalDenom),l=(()=>{let n=new d.Dec(e);return n=n.mul(d.DecUtils.getPrecisionDec(t.coinDecimals)),n.truncate().toString()})();switch(i.type){case"native":return void(yield this.sendMsgs("send",[{type:this.opts.msgOpts.send.native.type,value:{from_address:this.bech32Address,to_address:n,amount:[{denom:t.coinMinimalDenom,amount:l}]}}],o,r,a,e=>{if(null==e.code||0===e.code){const e=this.queries.getQueryBalances().getQueryBech32Address(this.bech32Address).balances.find(e=>e.currency.coinMinimalDenom===t.coinMinimalDenom);e&&e.fetch()}c&&c(e)}));case"secret20":if(!("type"in t)||"secret20"!==t.type)throw new Error("Currency is not secret20");return void(yield this.sendExecuteSecretContractMsg("send",t.contractAddress,{transfer:{recipient:n,amount:l}},[],o,r,a,e=>{if(null==e.code||0===e.code){const e=this.queries.getQueryBalances().getQueryBech32Address(this.bech32Address).balances.find(e=>e.currency.coinMinimalDenom===t.coinMinimalDenom);e&&e.fetch()}c&&c(e)}));default:throw new Error(`Unsupported type of currency (${i.type})`)}}))}sendIBCTransferMsg(e,t,n,r,o="",a,u={},f){return i(this,void 0,void 0,(function*(){if("native"!==new s.DenomHelper(n.coinMinimalDenom).type)throw new Error("Only native token can be sent via IBC");const i=(()=>{let e=new d.Dec(t);return e=e.mul(d.DecUtils.getPrecisionDec(n.coinDecimals)),e.truncate().toString()})(),p=this.queriesStore.get(e.counterpartyChainId).getQueryBlock().getBlock("latest");if(c.runInAction(()=>{this._isSendingMsg="ibcTransfer"}),yield p.waitFreshResponse(),p.height.equals(new d.Int("0")))throw new Error("Failed to fetch the latest block of "+e.counterpartyChainId);const h={type:this.opts.msgOpts.ibcTransfer.type,value:{source_port:e.portId,source_channel:e.channelId,token:{denom:n.coinMinimalDenom,amount:i},sender:this.bech32Address,receiver:r,timeout_height:{revision_number:l.ChainIdHelper.parse(e.counterpartyChainId).version.toString(),revision_height:p.height.add(new d.Int("150")).toString()}}};"0"===h.value.timeout_height.revision_number&&delete h.value.timeout_height.revision_number,yield this.sendMsgs("ibcTransfer",[h],a,o,u,e=>{if(null==e.code||0===e.code){const e=this.queries.getQueryBalances().getQueryBech32Address(this.bech32Address).balances.find(e=>e.currency.coinMinimalDenom===n.coinMinimalDenom);e&&e.fetch()}f&&f(e)})}))}sendDelegateMsg(e,t,n="",r,o={},a){return i(this,void 0,void 0,(function*(){const i=this.chainGetter.getChain(this.chainId).stakeCurrency;let s=new d.Dec(e);s=s.mulTruncate(d.DecUtils.getPrecisionDec(i.coinDecimals));const c={type:this.opts.msgOpts.delegate.type,value:{delegator_address:this.bech32Address,validator_address:t,amount:{denom:i.coinMinimalDenom,amount:s.truncate().toString()}}};yield this.sendMsgs("delegate",[c],null!=r?r:{amount:[],gas:this.opts.msgOpts.delegate.gas.toString()},n,o,e=>{null!=e.code&&0!==e.code||(this.queries.getQueryValidators().getQueryStatus(p.BondStatus.Bonded).fetch(),this.queries.getQueryDelegations().getQueryBech32Address(this.bech32Address).fetch(),this.queries.getQueryRewards().getQueryBech32Address(this.bech32Address).fetch()),a&&a(e)})}))}sendUndelegateMsg(e,t,n="",r,o={},a){return i(this,void 0,void 0,(function*(){const i=this.chainGetter.getChain(this.chainId).stakeCurrency;let s=new d.Dec(e);s=s.mulTruncate(d.DecUtils.getPrecisionDec(i.coinDecimals));const c={type:this.opts.msgOpts.undelegate.type,value:{delegator_address:this.bech32Address,validator_address:t,amount:{denom:i.coinMinimalDenom,amount:s.truncate().toString()}}};yield this.sendMsgs("undelegate",[c],null!=r?r:{amount:[],gas:this.opts.msgOpts.delegate.gas.toString()},n,o,e=>{null!=e.code&&0!==e.code||(this.queries.getQueryValidators().getQueryStatus(p.BondStatus.Bonded).fetch(),this.queries.getQueryDelegations().getQueryBech32Address(this.bech32Address).fetch(),this.queries.getQueryUnbondingDelegations().getQueryBech32Address(this.bech32Address).fetch(),this.queries.getQueryRewards().getQueryBech32Address(this.bech32Address).fetch()),a&&a(e)})}))}sendBeginRedelegateMsg(e,t,n,r="",o,a={},s){return i(this,void 0,void 0,(function*(){const i=this.chainGetter.getChain(this.chainId).stakeCurrency;let c=new d.Dec(e);c=c.mulTruncate(d.DecUtils.getPrecisionDec(i.coinDecimals));const l={type:this.opts.msgOpts.redelegate.type,value:{delegator_address:this.bech32Address,validator_src_address:t,validator_dst_address:n,amount:{denom:i.coinMinimalDenom,amount:c.truncate().toString()}}};yield this.sendMsgs("redelegate",[l],null!=o?o:{amount:[],gas:this.opts.msgOpts.delegate.gas.toString()},r,a,e=>{null!=e.code&&0!==e.code||(this.queries.getQueryValidators().getQueryStatus(p.BondStatus.Bonded).fetch(),this.queries.getQueryDelegations().getQueryBech32Address(this.bech32Address).fetch(),this.queries.getQueryRewards().getQueryBech32Address(this.bech32Address).fetch()),s&&s(e)})}))}sendWithdrawDelegationRewardMsgs(e,t="",n={},r){return i(this,void 0,void 0,(function*(){const i=e.map(e=>({type:this.opts.msgOpts.withdrawRewards.type,value:{delegator_address:this.bech32Address,validator_address:e}}));yield this.sendMsgs("withdrawRewards",i,{amount:[],gas:(this.opts.msgOpts.withdrawRewards.gas*e.length).toString()},t,n,e=>{null!=e.code&&0!==e.code||this.queries.getQueryRewards().getQueryBech32Address(this.bech32Address).fetch(),r&&r(e)})}))}sendGovVoteMsg(e,t,n="",r={},o){return i(this,void 0,void 0,(function*(){const i=(()=>{var e;if(!(null===(e=this.chainGetter.getChain(this.chainId).features)||void 0===e?void 0:e.includes("stargate")))return t;switch(t){case"Yes":return 1;case"Abstain":return 2;case"No":return 3;case"NoWithVeto":return 4}})(),a={type:this.opts.msgOpts.govVote.type,value:{option:i,proposal_id:e,voter:this.bech32Address}};yield this.sendMsgs("govVote",[a],{amount:[],gas:this.opts.msgOpts.govVote.gas.toString()},n,r,t=>{if(null==t.code||0===t.code){const t=this.queries.getQueryGovernance().proposals.find(t=>t.id===e);t&&t.fetch()}o&&o(t)})}))}createSecret20ViewingKey(e,t="",n={},r){return i(this,void 0,void 0,(function*(){const o=new Uint8Array(15);crypto.getRandomValues(o);const a=h.Buffer.from(o).toString("hex"),s=yield this.sendExecuteSecretContractMsg("createSecret20ViewingKey",e,{create_viewing_key:{entropy:a}},[],{amount:[],gas:this.opts.msgOpts.createSecret20ViewingKey.gas.toString()},t,n,e=>i(this,void 0,void 0,(function*(){let t="";if(e&&"data"in e&&e.data){const n=h.Buffer.from(e.data,"base64"),r=yield g.getKeplr();if(!r)throw new Error("Can't get the Keplr API");const i=r.getEnigmaUtils(this.chainId),o=s.slice(0,32),a=h.Buffer.from(h.Buffer.from(yield i.decrypt(n,o)).toString(),"base64").toString();t=JSON.parse(a).create_viewing_key.key}r&&r(e,t)})))}))}sendExecuteSecretContractMsg(e="executeSecretWasm",t,n,r,o,a="",s={},l){return i(this,void 0,void 0,(function*(){const u=yield(()=>i(this,void 0,void 0,(function*(){c.runInAction(()=>{this._isSendingMsg=e});try{return yield this.encryptSecretContractMsg(t,n)}finally{c.runInAction(()=>{this._isSendingMsg=!1})}})))(),f={type:this.opts.msgOpts.executeSecretWasm.type,value:{sender:this.bech32Address,contract:t,callback_code_hash:"",msg:h.Buffer.from(u).toString("base64"),sent_funds:r,callback_sig:null}};return yield this.sendMsgs(e,[f],o,a,s,l),u}))}encryptSecretContractMsg(e,t){return i(this,void 0,void 0,(function*(){const n=yield this.queries.getQuerySecretContractCodeHash().getQueryContract(e).waitResponse();if(!n)throw new Error(`Can't get the code hash of the contract (${e})`);const r=n.data.result,i=yield g.getKeplr();if(!i)throw new Error("Can't get the Keplr API");const o=i.getEnigmaUtils(this.chainId);return yield o.encrypt(r,t)}))}broadcastMsgs(e,t,n="",r="async",o={}){return i(this,void 0,void 0,(function*(){if(this.walletStatus!==b.Loaded)throw new Error("Wallet is not loaded: "+this.walletStatus);if(0===e.length)throw new Error("There is no msg to send");const i=yield l.BaseAccount.fetchFromRest(this.instance,this.bech32Address,!0),a=yield g.getKeplr(),s=f.makeSignDoc(e,t,this.chainId,n,i.getAccountNumber().toString(),i.getSequence().toString()),c=yield a.signAmino(this.chainId,this.bech32Address,s,o),u=f.makeStdTx(c.signed,c.signature);return{txHash:yield a.sendTx(this.chainId,u,r),signDoc:c.signed}}))}get instance(){const e=this.chainGetter.getChain(this.chainId);return u.default.create(Object.assign({baseURL:e.rest},e.restConfig))}get walletStatus(){return this._walletStatus}get name(){return this._name}get bech32Address(){return this._bech32Address}get isSendingMsg(){return this._isSendingMsg}get queries(){return this.queriesStore.get(this.chainId)}}y.defaultOpts={prefetching:!1,suggestChain:!1,msgOpts:{send:{native:{type:"cosmos-sdk/MsgSend",gas:8e4},cw20:{gas:25e4},secret20:{gas:25e4}},ibcTransfer:{type:"cosmos-sdk/MsgTransfer",gas:12e4},delegate:{type:"cosmos-sdk/MsgDelegate",gas:25e4},undelegate:{type:"cosmos-sdk/MsgUndelegate",gas:25e4},redelegate:{type:"cosmos-sdk/MsgBeginRedelegate",gas:25e4},withdrawRewards:{type:"cosmos-sdk/MsgWithdrawDelegationReward",gas:14e4},govVote:{type:"cosmos-sdk/MsgVote",gas:25e4},createSecret20ViewingKey:{gas:15e4},executeSecretWasm:{type:"wasm/MsgExecuteContract"}}},r([c.observable],y.prototype,"_walletVersion",void 0),r([c.observable],y.prototype,"_walletStatus",void 0),r([c.observable],y.prototype,"_name",void 0),r([c.observable],y.prototype,"_bech32Address",void 0),r([c.observable],y.prototype,"_isSendingMsg",void 0),r([c.flow],y.prototype,"init",null),r([c.computed],y.prototype,"isReadyToSendMsgs",null),t.AccountStoreInner=y;class g extends a.HasMapStore{constructor(e,t,n={}){var r,i;super(e=>{var t,n;return new y(this.chainGetter,e,this.queriesStore,m.default(y.defaultOpts,null!==(n=null===(t=this.opts.chainOpts)||void 0===t?void 0:t.find(t=>t.chainId===e))&&void 0!==n?n:{}))}),this.chainGetter=e,this.queriesStore=t,this.opts=n;const o=m.default(y.defaultOpts,null!==(r=this.opts.defaultOpts)&&void 0!==r?r:{});for(const e of null!==(i=this.opts.chainOpts)&&void 0!==i?i:[])(e.prefetching||o.prefetching)&&this.getAccount(e.chainId)}getAccount(e){return this.get(e)}hasAccount(e){return this.has(e)}static getKeplr(){return i(this,void 0,void 0,(function*(){return window.keplr||"complete"===document.readyState?window.keplr:new Promise(e=>{const t=n=>{n.target&&"complete"===n.target.readyState&&(e(window.keplr),document.removeEventListener("readystatechange",t))};document.addEventListener("readystatechange",t)})}))}}t.AccountStore=g},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.HasMapStore=void 0;const i=n(5);class o{constructor(e){this.creater=e,this.map=new Map,i.makeObservable(this)}get(e){if(!this.map.has(e)){const t=this.creater(e);i.runInAction(()=>{this.map.set(e,t)})}return this.map.get(e)}has(e){return this.map.has(e)}}r([i.observable.shallow],o.prototype,"map",void 0),t.HasMapStore=o},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SecretWasm=void 0,o(n(1275),t),o(n(1276),t),o(n(986),t),t.SecretWasm=a(n(1277))},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableSecretContractChainQuery=void 0;const a=n(89),s=n(63),c=n(5),l=n(982),u=o(n(68)),f=n(2);class d extends a.ObservableChainQuery{constructor(e,t,n,r,i,o){super(e,t,n,""),this.contractAddress=r,this.obj=i,this.querySecretContractCodeHash=o,this.keplr=void 0,this._isIniting=!1,c.makeObservable(this),this.initKeplr();const a=c.autorun(()=>{this.keplr&&this.contractCodeHash&&(this.init(),a())})}setObj(e){this.obj=e,this.init()}get isFetching(){return this.querySecretContractCodeHash.getQueryContract(this.contractAddress).isFetching||null==this.keplr||this._isIniting||super.isFetching}canFetch(){return!!this.querySecretContractCodeHash.getQueryContract(this.contractAddress).response&&(0!==this.contractAddress.length&&null!=this.nonce)}*initKeplr(){this.keplr=yield*s.toGenerator(l.AccountStore.getKeplr())}*init(){if(this._isIniting=!0,this.keplr&&this.contractCodeHash){const e=this.keplr.getEnigmaUtils(this.chainId),t=yield*s.toGenerator(e.encrypt(this.contractCodeHash,this.obj));this.nonce=t.slice(0,32);const n=f.Buffer.from(f.Buffer.from(t).toString("base64")).toString("hex");this.setUrl(`/wasm/contract/${this.contractAddress}/query/${n}?encoding=hex`)}this._isIniting=!1}fetchResponse(e){const t=Object.create(null,{fetchResponse:{get:()=>super.fetchResponse}});var n,r;return i(this,void 0,void 0,(function*(){let i;try{i=yield t.fetchResponse.call(this,e)}catch(e){if(!u.default.isCancel(e)&&(null===(r=null===(n=e.response)||void 0===n?void 0:n.data)||void 0===r?void 0:r.error)){const t=e.response.data.error,n=/query contract failed: encrypted: (.+)/g.exec(t);if(null!=n&&2===n.length){const e=n[1],t=f.Buffer.from(e,"base64");if(this.keplr&&this.nonce){const e=yield this.keplr.getEnigmaUtils(this.chainId).decrypt(t,this.nonce),n=f.Buffer.from(e).toString();throw new Error(n)}}}throw e}const o=i.data;if(!this.keplr)throw new Error("Keplr API not initialized");if(!this.nonce)throw new Error("Nonce is unknown");if(!o)throw new Error("Failed to get the response from the contract");const a=yield this.keplr.getEnigmaUtils(this.chainId).decrypt(f.Buffer.from(o.result.smart,"base64"),this.nonce),s=f.Buffer.from(f.Buffer.from(a).toString(),"base64").toString();return{data:JSON.parse(s),status:i.status,staled:!1,timestamp:Date.now()}}))}getCacheKey(){return`${this.instance.name}-${this.instance.defaults.baseURL}${this.instance.getUri({url:`/wasm/contract/${this.contractAddress}/query/${JSON.stringify(this.obj)}?encoding=json`})}`}get contractCodeHash(){const e=this.querySecretContractCodeHash.getQueryContract(this.contractAddress);if(e.response)return e.response.data.result}}r([c.observable.ref],d.prototype,"keplr",void 0),r([c.observable],d.prototype,"_isIniting",void 0),r([c.flow],d.prototype,"initKeplr",null),r([c.flow],d.prototype,"init",null),r([c.computed],d.prototype,"contractCodeHash",null),t.ObservableSecretContractChainQuery=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WrongViewingKeyError=void 0;class r extends Error{constructor(e){super(e),Object.setPrototypeOf(this,r.prototype)}}t.WrongViewingKeyError=r},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.IBC=t.Account=t.Supply=t.Staking=t.Governance=void 0,o(n(1278),t),o(n(1281),t),o(n(1288),t),o(n(1292),t),o(n(1293),t),o(n(1297),t),t.Governance=a(n(990)),t.Staking=a(n(919)),t.Supply=a(n(1298)),t.Account=a(n(1299)),t.IBC=a(n(1300))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryGovParamDeposit=t.ObservableQueryGovParamVoting=t.ObservableQueryGovParamTally=void 0;const r=n(89);class i extends r.ObservableChainQuery{constructor(e,t,n){super(e,t,n,"/gov/parameters/tallying")}}t.ObservableQueryGovParamTally=i;class o extends r.ObservableChainQuery{constructor(e,t,n){super(e,t,n,"/gov/parameters/voting")}}t.ObservableQueryGovParamVoting=o;class a extends r.ObservableChainQuery{constructor(e,t,n){super(e,t,n,"/gov/parameters/deposit")}}t.ObservableQueryGovParamDeposit=a},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryProposal=void 0;const i=n(89),o=n(990),a=n(5),s=n(23);class c extends i.ObservableChainQuery{constructor(e,t,n,r,i){super(e,t,n,`/gov/proposals/${r.id}/tally`),this._raw=r,this.governance=i,a.makeObservable(this)}canFetch(){return this.proposalStatus===o.ProposalStatus.VOTING_PERIOD}get raw(){return this._raw}get proposalStatus(){if("proposal_status"in this.raw)switch(this.raw.proposal_status){case"DepositPeriod":return o.ProposalStatus.DEPOSIT_PERIOD;case"VotingPeriod":return o.ProposalStatus.VOTING_PERIOD;case"Passed":return o.ProposalStatus.PASSED;case"Rejected":return o.ProposalStatus.REJECTED;case"Failed":return o.ProposalStatus.FAILED;default:return o.ProposalStatus.UNSPECIFIED}switch(this.raw.status){case 1:return o.ProposalStatus.DEPOSIT_PERIOD;case 2:return o.ProposalStatus.VOTING_PERIOD;case 3:return o.ProposalStatus.PASSED;case 4:return o.ProposalStatus.REJECTED;case 5:return o.ProposalStatus.FAILED;default:return o.ProposalStatus.UNSPECIFIED}}get id(){return this.raw.id}get title(){return this.raw.content.value.title}get description(){return this.raw.content.value.description}get turnout(){const e=this.governance.getQueryPool();if(!e.response)return new s.IntPretty(new s.Dec(0)).ready(!1);const t=this.chainGetter.getChain(this.chainId).stakeCurrency,n=new s.Dec(e.response.data.result.bonded_tokens).quoTruncate(s.DecUtils.getPrecisionDec(t.coinDecimals)),r=this.tally,i=r.yes.add(r.no).add(r.abstain).add(r.noWithVeto);return new s.IntPretty(i.toDec().quoTruncate(n).mulTruncate(s.DecUtils.getPrecisionDec(2))).ready(r.yes.isReady)}get tally(){const e=this.chainGetter.getChain(this.chainId).stakeCurrency;return this.proposalStatus!==o.ProposalStatus.VOTING_PERIOD?{yes:new s.IntPretty(new s.Int(this.raw.final_tally_result.yes)).precision(e.coinDecimals).maxDecimals(e.coinDecimals),no:new s.IntPretty(new s.Int(this.raw.final_tally_result.no)).precision(e.coinDecimals).maxDecimals(e.coinDecimals),abstain:new s.IntPretty(new s.Int(this.raw.final_tally_result.abstain)).precision(e.coinDecimals).maxDecimals(e.coinDecimals),noWithVeto:new s.IntPretty(new s.Int(this.raw.final_tally_result.no_with_veto)).precision(e.coinDecimals).maxDecimals(e.coinDecimals)}:this.response?{yes:new s.IntPretty(new s.Int(this.response.data.result.yes)).precision(e.coinDecimals).maxDecimals(e.coinDecimals),no:new s.IntPretty(new s.Int(this.response.data.result.no)).precision(e.coinDecimals).maxDecimals(e.coinDecimals),abstain:new s.IntPretty(new s.Int(this.response.data.result.abstain)).precision(e.coinDecimals).maxDecimals(e.coinDecimals),noWithVeto:new s.IntPretty(new s.Int(this.response.data.result.no_with_veto)).precision(e.coinDecimals).maxDecimals(e.coinDecimals)}:{yes:new s.IntPretty(new s.Int(0)).ready(!1).precision(e.coinDecimals).maxDecimals(e.coinDecimals),no:new s.IntPretty(new s.Int(0)).ready(!1).precision(e.coinDecimals).maxDecimals(e.coinDecimals),abstain:new s.IntPretty(new s.Int(0)).ready(!1).precision(e.coinDecimals).maxDecimals(e.coinDecimals),noWithVeto:new s.IntPretty(new s.Int(0)).ready(!1).precision(e.coinDecimals).maxDecimals(e.coinDecimals)}}get total(){const e=this.tally,t=e.yes.add(e.no).add(e.abstain).add(e.noWithVeto),n=this.chainGetter.getChain(this.chainId).stakeCurrency;return new s.CoinPretty(n,t)}get tallyRatio(){const e=this.tally,t=e.yes.add(e.no).add(e.abstain).add(e.noWithVeto);return t.toDec().equals(new s.Dec(0))?{yes:new s.IntPretty(new s.Int(0)).ready(!1),no:new s.IntPretty(new s.Int(0)).ready(!1),abstain:new s.IntPretty(new s.Int(0)).ready(!1),noWithVeto:new s.IntPretty(new s.Int(0)).ready(!1)}:{yes:new s.IntPretty(e.yes.toDec().quoTruncate(t.toDec()).mulTruncate(s.DecUtils.getPrecisionDec(2))).ready(e.yes.isReady),no:new s.IntPretty(e.no.toDec().quoTruncate(t.toDec()).mulTruncate(s.DecUtils.getPrecisionDec(2))).ready(e.no.isReady),abstain:new s.IntPretty(e.abstain.toDec().quoTruncate(t.toDec()).mulTruncate(s.DecUtils.getPrecisionDec(2))).ready(e.abstain.isReady),noWithVeto:new s.IntPretty(e.noWithVeto.toDec().quoTruncate(t.toDec()).mulTruncate(s.DecUtils.getPrecisionDec(2))).ready(e.noWithVeto.isReady)}}}r([a.computed],c.prototype,"turnout",null),r([a.computed],c.prototype,"tally",null),r([a.computed],c.prototype,"total",null),r([a.computed],c.prototype,"tallyRatio",null),t.ObservableQueryProposal=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProposalStatus=void 0,function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.DEPOSIT_PERIOD=1]="DEPOSIT_PERIOD",e[e.VOTING_PERIOD=2]="VOTING_PERIOD",e[e.PASSED=3]="PASSED",e[e.REJECTED=4]="REJECTED",e[e.FAILED=5]="FAILED"}(t.ProposalStatus||(t.ProposalStatus={}))},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.useIBCAmountConfig=t.IBCAmountConfig=void 0;const i=n(918),o=n(5),a=n(63),s=n(0);class c extends i.AmountConfig{constructor(e,t,n,r){super(e,t,n,r),o.makeObservable(this)}get sendableCurrencies(){return super.sendableCurrencies.filter(e=>"native"===new a.DenomHelper(e.coinMinimalDenom).type)}}r([o.computed],c.prototype,"sendableCurrencies",null),t.IBCAmountConfig=c;t.useIBCAmountConfig=(e,t,n,r)=>{const[i]=s.useState(()=>new c(e,t,n,r));return i.setChain(t),i.setQueryBalances(r),i.setSender(n),i}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.useIBCChannelConfig=t.IBCChannelConfig=void 0;const i=n(5),o=n(993),a=n(0);class s{constructor(){this._channel=void 0,i.makeObservable(this)}get channel(){return this._channel}getError(){if(!this._channel)return new o.ChannelNotSetError("Channel not set")}setChannel(e){this._channel=e}}r([i.observable.ref],s.prototype,"_channel",void 0),r([i.action],s.prototype,"setChannel",null),t.IBCChannelConfig=s;t.useIBCChannelConfig=()=>{const[e]=a.useState(()=>new s);return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelNotSetError=void 0;class r extends Error{constructor(e){super(e),Object.setPrototypeOf(this,r.prototype)}}t.ChannelNotSetError=r},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.useIBCTransferGasConfig=t.IBCTransferGasConfig=void 0;const i=n(835),o=n(5),a=n(0);class s extends i.GasConfig{constructor(e,t,n){super(e,t,n.gas),this.msgOpts=n,o.makeObservable(this)}setMsgOpts(e){this.msgOpts=e}get gas(){return this._gas<=0?this.msgOpts.gas:this._gas}}r([o.observable.ref],s.prototype,"msgOpts",void 0),r([o.action],s.prototype,"setMsgOpts",null),t.IBCTransferGasConfig=s;t.useIBCTransferGasConfig=(e,t,n)=>{const[r]=a.useState(()=>new s(e,t,n));return r.setChain(t),r.setMsgOpts(n),r}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(1328)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return x}));var r=n(0),i=n.n(r),o=n(947),a=n(1070),s=n(404),c=n(405),l=n(1069),u=n(868),f=n(402),d=n(896),p=n(895),h=n(891),m=n(832),b=n.n(m),y=n(10),g=n.n(y),v=n(46),w=n(14),_=n(869),k=n(932);const x=Object(w.a)(({recipientConfig:t,memoConfig:n,ibcChannelConfig:m,className:y,label:w,disableAddressBook:x,disabled:S=!1})=>{const O=Object(_.a)(),[E,T]=Object(r.useState)(!1),[A]=Object(r.useState)(()=>{const t=new Uint8Array(4);return crypto.getRandomValues(t),"input-"+e.from(t).toString("hex")}),M=k.ObservableEnsFetcher.isValidENS(t.rawRecipient),I=t.getError(),P=Object(r.useMemo)(()=>{if(I)switch(I.constructor){case v.EmptyAddressError:return;case v.InvalidBech32Error:return O.formatMessage({id:"input.recipient.error.invalid-bech32"});case v.ENSNotSupportedError:return O.formatMessage({id:"input.recipient.error.ens-not-supported"});case v.ENSFailedToFetchError:return O.formatMessage({id:"input.recipient.error.ens-failed-to-fetch"});case v.ENSIsFetchingError:return;default:return O.formatMessage({id:"input.recipient.error.unknown"})}},[O,I]),C=I instanceof v.ENSIsFetchingError,j={setRecipient:e=>{t.setRawRecipient(e)},setMemo:e=>{n&&n.setMemo(e)}};return i.a.createElement(i.a.Fragment,null,i.a.createElement(o.a,{isOpen:E,backdrop:!1,className:b.a.fullModal,wrapClassName:b.a.fullModal,contentClassName:b.a.fullModal},i.a.createElement(a.a,{className:b.a.fullModal},i.a.createElement(h.a,{onBackButton:()=>T(!1),hideChainDropdown:!0,selectHandler:j,ibcChannelConfig:m}))),i.a.createElement(s.a,{className:y},w?i.a.createElement(c.a,{for:A,className:"form-control-label"},w):null,i.a.createElement(l.a,null,i.a.createElement(u.a,{id:A,className:g()("form-control-alternative",b.a.input),value:t.rawRecipient,onChange:e=>{t.setRawRecipient(e.target.value),e.preventDefault()},autoComplete:"off",disabled:S}),!x&&n?i.a.createElement(f.a,{className:b.a.addressBookButton,color:"primary",type:"button",outline:!0,onClick:()=>T(!0),disabled:S},i.a.createElement("i",{className:"fas fa-address-book"})):null),C?i.a.createElement(d.a,null,i.a.createElement("i",{className:"fa fa-spinner fa-spin fa-fw"})):null,C||!M||I?null:i.a.createElement(d.a,null,t.recipient),null!=P?i.a.createElement(p.a,{style:{display:"block"}},P):null))})}).call(this,n(2).Buffer)},function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(1)),i=s(n(0)),o=s(n(414)),a=n(921);n(998);function s(e){return e&&e.__esModule?e:{default:e}}t.UNMOUNTED="unmounted";t.EXITED="exited";t.ENTERING="entering";t.ENTERED="entered";t.EXITING="exiting";var c=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i="exited",r.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=o.default.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},a.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;t||r?(this.props.onEnter(e,i),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,i)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)}))},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function l(){}c.contextTypes={transitionGroup:r.object},c.childContextTypes={transitionGroup:function(){}},c.propTypes={},c.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:l,onEntering:l,onEntered:l,onExit:l,onExiting:l,onExited:l},c.UNMOUNTED=0,c.EXITED=1,c.ENTERING=2,c.ENTERED=3,c.EXITING=4;var u=(0,a.polyfill)(c);t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(1))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=s(n(1)),i=s(n(0)),o=n(921),a=n(1353);function s(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){var t,n;function r(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(l(l(r)));return r.state={handleExited:i,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},o.componentDidMount=function(){this.appeared=!0,this.mounted=!0},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,r):(0,a.getNextChildMapping)(e,n,r),firstRender:!1}},o.handleExited=function(e,t){var n=(0,a.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=c({},t.children);return delete n[e.key],{children:n}})))},o.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),o=u(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:i.default.createElement(t,r,o)},r}(i.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var d=(0,o.polyfill)(f);t.default=d,e.exports=t.default},function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(1001),o=Object.keys,a=o?function(e){return o(e)}:n(1361),s=Object.keys;a.shim=function(){Object.keys?function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2)||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)}):Object.keys=a;return Object.keys||a},e.exports=a},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=SyntaxError,i=Function,o=TypeError,a=function(e){try{return Function('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var c=function(){throw new o},l=s?function(){try{return c}catch(e){try{return s(arguments,"callee").get}catch(e){return c}}}():c,u=n(922)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d=a("async function* () {}"),p=d?d.prototype:void 0,h=p?p.prototype:void 0,m="undefined"==typeof Uint8Array?void 0:f(Uint8Array),b={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":u?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":a("async function () {}"),"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":h?f(h):void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":a("function* () {}"),"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":u?f(""[Symbol.iterator]()):void 0,"%Symbol%":u?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":l,"%TypedArray%":m,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=n(857),v=n(1366),w=g.call(Function.call,Array.prototype.concat),_=g.call(Function.apply,Array.prototype.splice),k=g.call(Function.call,String.prototype.replace),x=g.call(Function.call,String.prototype.slice),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,E=function(e){var t=x(e,0,1),n=x(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return k(e,S,(function(e,t,n,r){i[i.length]=n?k(r,O,"$1"):t||e})),i},T=function(e,t){var n,i=e;if(v(y,i)&&(i="%"+(n=y[i])[0]+"%"),v(b,i)){var a=b[i];if(void 0===a&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:a}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');var n=E(e),i=n.length>0?n[0]:"",a=T("%"+i+"%",t),c=a.name,l=a.value,u=!1,f=a.alias;f&&(i=f[0],_(n,w([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],m=x(h,0,1),y=x(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===y||"'"===y||"`"===y)&&m!==y)throw new r("property names with quotes must have matching quotes");if("constructor"!==h&&p||(u=!0),v(b,c="%"+(i+="."+h)+"%"))l=b[c];else if(null!=l){if(!(h in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var g=s(l,h);l=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:l[h]}else p=v(l,h),l=l[h];p&&!u&&(b[c]=l)}}return l}},function(e,t,n){"use strict";var r=n(857),i=n(1002),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),c=i("%Object.defineProperty%",!0);if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(){return s(r,a,arguments)};var l=function(){return s(r,o,arguments)};c?c(e.exports,"apply",{value:l}):e.exports.apply=l},function(e,t,n){"use strict";var r=function(e){return e!=e};e.exports=function(e,t){return 0===e&&0===t?1/e==1/t:e===t||!(!r(e)||!r(t))}},function(e,t,n){"use strict";var r=n(1004);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},function(e,t,n){"use strict";var r=Object,i=TypeError;e.exports=function(){if(null!=this&&this!==r(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}},function(e,t,n){"use strict";var r=n(1006),i=n(858).supportsDescriptors,o=Object.getOwnPropertyDescriptor,a=TypeError;e.exports=function(){if(!i)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var e=o(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof/a/.dotAll)return e.get}return r}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return x}));var r=n(0),i=n.n(r),o=n(10),a=n.n(o),s=n(845),c=n.n(s),l=n(404),u=n(405),f=n(948),d=n(949),p=n(946),h=n(897),m=n(868),b=n(895),y=n(14),g=n(46),v=n(23),w=n(869),_=n(388),k=n(21);const x=Object(y.a)(({amountConfig:t,feeConfig:n,className:o,label:s,disableAllBalance:y})=>{var x,S,O,E;const T=Object(w.a)(),{queriesStore:A}=Object(k.b)(),M=A.get(t.chainId).getQueryBalances().getQueryBech32Address(t.sender).balances.find(e=>t.sendCurrency.coinMinimalDenom===e.currency.coinMinimalDenom),I=M?M.balance:new v.CoinPretty(t.sendCurrency,new v.Int(0)),[P,C]=Object(r.useState)(!1),j=n.fee;Object(r.useEffect)(()=>{if(P){const e=I.currency.coinMinimalDenom===(null==j?void 0:j.currency.coinMinimalDenom)?new v.CoinPretty(I.currency,I.toDec().sub(j.toDec()).mul(v.DecUtils.getPrecisionDec(I.currency.coinDecimals)).truncate()):I;t.setAmount(e.trim(!0).locale(!1).hideDenom(!0).toString())}},[I,j,P,t]);const[D]=Object(r.useState)(()=>{const t=new Uint8Array(4);return crypto.getRandomValues(t),e.from(t).toString("hex")}),R=t.getError(),N=Object(r.useMemo)(()=>{if(R)switch(R.constructor){case g.EmptyAmountError:return;case g.InvalidNumberAmountError:return T.formatMessage({id:"input.amount.error.invalid-number"});case g.ZeroAmountError:return T.formatMessage({id:"input.amount.error.is-zero"});case g.NagativeAmountError:return T.formatMessage({id:"input.amount.error.is-negative"});case g.InsufficientAmountError:return T.formatMessage({id:"input.amount.error.insufficient"});default:return T.formatMessage({id:"input.amount.error.unknown"})}},[T,R]),[B,L]=Object(r.useState)(!1);return i.a.createElement(i.a.Fragment,null,i.a.createElement(l.a,{className:o},i.a.createElement(u.a,{for:"selector-"+D,className:"form-control-label",style:{width:"100%"}},i.a.createElement(_.a,{id:"component.form.coin-input.token.label"})),i.a.createElement(f.a,{id:"selector-"+D,className:a()(c.a.tokenSelector,{disabled:P}),isOpen:B,toggle:()=>L(e=>!e),disabled:P},i.a.createElement(d.a,{caret:!0},t.sendCurrency.coinDenom),i.a.createElement(p.a,null,t.sendableCurrencies.map(e=>i.a.createElement(h.a,{key:e.coinMinimalDenom,active:e.coinMinimalDenom===t.sendCurrency.coinMinimalDenom,onClick:n=>{n.preventDefault(),t.setSendCurrency(e)}},e.coinDenom))))),i.a.createElement(l.a,{className:o},s?i.a.createElement(u.a,{for:"input-"+D,className:"form-control-label",style:{width:"100%"}},s,y?null:i.a.createElement("div",{className:a()(c.a.balance,c.a.clickable,{[c.a.clicked]:P}),onClick:()=>C(e=>!e)},"Balance: "+I.trim(!0).maxDecimals(6).toString())):null,i.a.createElement(m.a,{className:a()("form-control-alternative",c.a.input),id:"input-"+D,type:"number",value:t.amount,onChange:e=>{e.preventDefault(),t.setAmount(e.target.value)},step:new v.Dec(1).quo(v.DecUtils.getPrecisionDec(null!==(S=null===(x=t.sendCurrency)||void 0===x?void 0:x.coinDecimals)&&void 0!==S?S:0)).toString(null!==(E=null===(O=t.sendCurrency)||void 0===O?void 0:O.coinDecimals)&&void 0!==E?E:0),min:0,disabled:P,autoComplete:"off"}),null!=N?i.a.createElement(b.a,{style:{display:"block"}},N):null))})}).call(this,n(2).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return x}));var r=n(0),i=n.n(r),o=n(211),a=n.n(o),s=n(404),c=n(405),l=n(1552),u=n(402),f=n(896),d=n(895),p=n(10),h=n.n(p),m=n(14),b=n(46),y=n(210),g=n(869),v=n(886),w=n(5),_=function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};class k{constructor(){this._isGasInputOpen=!1,Object(w.makeObservable)(this)}get isGasInputOpen(){return this._isGasInputOpen}setIsGasInputOpen(e){this._isGasInputOpen=e}}_([w.observable],k.prototype,"_isGasInputOpen",void 0),_([w.action],k.prototype,"setIsGasInputOpen",null);const x=Object(m.a)(({feeConfig:e,gasConfig:t,priceStore:n,label:o,feeSelectLabels:a={low:"Low",average:"Average",high:"High"},gasLabel:s})=>{const[c]=Object(r.useState)(()=>new k);return i.a.createElement(i.a.Fragment,null,e.feeCurrency?i.a.createElement(S,{feeConfig:e,priceStore:n,label:o,feeSelectLabels:a,feeButtonState:c}):null,c.isGasInputOpen||!e.feeCurrency?i.a.createElement(v.a,{label:s,gasConfig:t}):null)}),S=Object(m.a)(({feeConfig:t,priceStore:n,label:o,feeSelectLabels:p={low:"Low",average:"Average",high:"High"},feeButtonState:m})=>{Object(r.useEffect)(()=>{t.feeCurrency&&!t.fee&&t.setFeeType("average")},[t,t.feeCurrency,t.fee]);const v=Object(g.a)(),[w]=Object(r.useState)(()=>{const t=new Uint8Array(4);return crypto.getRandomValues(t),"input-"+e.from(t).toString("hex")}),_=Object(y.b)();if(!t.feeCurrency)return i.a.createElement(i.a.Fragment,null);const k=_.fiatCurrency,x=t.getFeeTypePretty("low"),S=n.calculatePrice(k,x),O=t.getFeeTypePretty("average"),E=n.calculatePrice(k,O),T=t.getFeeTypePretty("high"),A=n.calculatePrice(k,T);let M=!1;const I=t.getError(),P=(()=>{if(I)switch(I.constructor){case b.InsufficientFeeError:return v.formatMessage({id:"input.fee.error.insufficient"});case b.NotLoadedFeeError:return void(M=!0);default:return v.formatMessage({id:"input.fee.error.unknown"})}})();return i.a.createElement(s.a,{style:{position:"relative"}},o?i.a.createElement(c.a,{for:w,className:"form-control-label"},o):null,i.a.createElement(l.a,{id:w,className:a.a.buttons},i.a.createElement(u.a,{type:"button",className:a.a.button,color:"low"===t.feeType?"primary":void 0,onClick:e=>{t.setFeeType("low"),e.preventDefault()}},i.a.createElement("div",{className:a.a.title},p.low),S?i.a.createElement("div",{className:h()(a.a.fiat,{"text-muted":"low"!==t.feeType})},S.toString()):null,i.a.createElement("div",{className:h()(a.a.coin,{"text-muted":"low"!==t.feeType})},x.trim(!0).toString())),i.a.createElement(u.a,{type:"button",className:a.a.button,color:"average"===t.feeType?"primary":void 0,onClick:e=>{t.setFeeType("average"),e.preventDefault()}},i.a.createElement("div",{className:a.a.title},p.average),E?i.a.createElement("div",{className:h()(a.a.fiat,{"text-muted":"average"!==t.feeType})},E.toString()):null,i.a.createElement("div",{className:h()(a.a.coin,{"text-muted":"average"!==t.feeType})},t.getFeeTypePretty("average").trim(!0).toString())),i.a.createElement(u.a,{type:"button",className:a.a.button,color:"high"===t.feeType?"primary":void 0,onClick:e=>{t.setFeeType("high"),e.preventDefault()}},i.a.createElement("div",{className:a.a.title},p.high),A?i.a.createElement("div",{className:h()(a.a.fiat,{"text-muted":"high"!==t.feeType})},A.toString()):null,i.a.createElement("div",{className:h()(a.a.coin,{"text-muted":"high"!==t.feeType})},t.getFeeTypePretty("high").trim(!0).toString()))),M?i.a.createElement(f.a,null,i.a.createElement("i",{className:"fa fa-spinner fa-spin fa-fw"})):null,null!=P?i.a.createElement(d.a,{style:{display:"block"}},P):null,i.a.createElement("div",{style:{position:"absolute",right:0}},i.a.createElement(u.a,{size:"sm",color:"link",onClick:e=>{e.preventDefault(),m.setIsGasInputOpen(!m.isGasInputOpen)}},m.isGasInputOpen?v.formatMessage({id:"input.fee.toggle.set-gas.close"}):v.formatMessage({id:"input.fee.toggle.set-gas"}))))})}).call(this,n(2).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var r=n(0),i=n.n(r),o=n(404),a=n(405),s=n(868),c=n(14);const l=Object(c.a)(({memoConfig:t,label:n,className:c,rows:l,disabled:u=!1})=>{const[f]=Object(r.useState)(()=>{const t=new Uint8Array(4);return crypto.getRandomValues(t),"input-"+e.from(t).toString("hex")});return i.a.createElement(o.a,{className:c},n?i.a.createElement(a.a,{for:f,className:"form-control-label"},n):null,i.a.createElement(s.a,{id:f,className:"form-control-alternative",type:"textarea",rows:l||2,style:{resize:"none"},value:t.memo,onChange:e=>{t.setMemo(e.target.value),e.preventDefault()},autoComplete:"off",disabled:u}))})}).call(this,n(2).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return y}));var r=n(0),i=n.n(r),o=n(404),a=n(405),s=n(948),c=n(949),l=n(946),u=n(897),f=n(865),d=n.n(f),p=n(887),h=n(14),m=n(21),b=n(388);const y=Object(h.a)(({ibcChannelConfig:t})=>{const{chainStore:n,ibcChannelStore:f}=Object(m.b)(),h=f.get(n.current.chainId),[y,g]=Object(r.useState)(!1),[v,w]=Object(r.useState)(!1),[_]=Object(r.useState)(()=>{const t=new Uint8Array(4);return crypto.getRandomValues(t),"destination-"+e.from(t).toString("hex")});return i.a.createElement(i.a.Fragment,null,i.a.createElement(p.a,{isOpen:v,closeModal:()=>w(!1),toggle:()=>w(e=>!e)}),i.a.createElement(o.a,null,i.a.createElement(a.a,{for:_,className:"form-control-label"},i.a.createElement(b.a,{id:"component.ibc.channel-registrar.chain-selector.label"})),i.a.createElement(s.a,{id:_,className:d.a.chainSelector,isOpen:y,toggle:()=>g(e=>!e)},i.a.createElement(c.a,{caret:!0},t.channel?n.getChain(t.channel.counterpartyChainId).chainName:i.a.createElement(b.a,{id:"component.ibc.channel-registrar.chain-selector.placeholder"})),i.a.createElement(l.a,null,h.getTransferChannels().map(e=>{if(!n.hasChain(e.counterpartyChainId))return;const r=n.getChain(e.counterpartyChainId);return r?i.a.createElement(u.a,{key:r.chainId,onClick:n=>{n.preventDefault(),t.setChannel(e)}},r.chainName,i.a.createElement("div",{className:d.a.channel},e.channelId)):void 0}),i.a.createElement(u.a,{onClick:e=>{e.preventDefault(),w(!0)}},i.a.createElement("i",{className:"fas fa-plus-circle my-1 mr-1"})," ",i.a.createElement(b.a,{id:"component.ibc.channel-registrar.chain-selector.button.add"}))))))})}).call(this,n(2).Buffer)},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=o(e[t],n)})),s(t).forEach((function(i){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(c(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):l(e,t,n):o(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var f=u;e.exports=f},function(e,t,n){var r=n(1016);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t){e.exports=n(878)},function(e,t){e.exports=n(879)},function(e,t){e.exports=n(1014)},function(e,t){e.exports=n(880)},function(e,t,n){"use strict";n.r(t),n.d(t,"gatewayAuthHeader",(function(){return m})),n.d(t,"gatewayEmbedHostHeader",(function(){return b})),n.d(t,"setEmbedHost",(function(){return y})),n.d(t,"clearEmbedHost",(function(){return g})),n.d(t,"getEmbedHost",(function(){return v})),n.d(t,"setAPIKey",(function(){return w})),n.d(t,"clearAPIKey",(function(){return _})),n.d(t,"getAPIKey",(function(){return k})),n.d(t,"promiseTimeout",(function(){return x})),n.d(t,"get",(function(){return S})),n.d(t,"post",(function(){return O})),n.d(t,"patch",(function(){return E})),n.d(t,"remove",(function(){return T})),n.d(t,"generateJsonRPCObject",(function(){return A})),n.d(t,"promiseRace",(function(){return M}));var r=n(1),i=n.n(r),o=n(0),a=n.n(o),s=n(3),c=n.n(s),l=n(2),u=n.n(l);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p="torus-default",h="",m="x-api-key",b="x-embed-host";function y(e){h=e}function g(){h=""}function v(){return h}function w(e){p=e}function _(){p="torus-default"}function k(){return p}var x=function(e,t){var n=new Promise((function(t,n){var r=setTimeout((function(){clearTimeout(r),n(new Error("Timed out in ".concat(e,"ms")))}),e)}));return Promise.race([t,n])},S=function(){var e=c()(i.a.mark((function e(t){var n,r,o,s,c,l,f=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=f.length>2&&void 0!==f[2]?f[2]:{},o={mode:"cors",cache:"no-cache",headers:{}},r.useAPIKey&&(o.headers=d(d({},o.headers),{},(s={},a()(s,m,k()),a()(s,b,v()),s))),c=u.a.all([o,n,{method:"GET"}]),e.next=7,fetch(t,c);case 7:if(!(l=e.sent).ok){e.next=10;break}return e.abrupt("return",l.json());case 10:throw l;case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),O=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o={mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json; charset=utf-8"},body:i.isUrlEncodedData?n:JSON.stringify(n)};i.useAPIKey&&(o.headers=d(d({},o.headers),{},(t={},a()(t,m,k()),a()(t,b,v()),t)));var s=u.a.all([o,r,{method:"POST"}]);return x(i.timeout||3e4,fetch(e,s).then((function(e){if(e.ok)return e.json();throw e})))},E=function(){var e=c()(i.a.mark((function e(t){var n,r,o,s,c,l,f,p=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p.length>1&&void 0!==p[1]?p[1]:{},r=p.length>2&&void 0!==p[2]?p[2]:{},o=p.length>3&&void 0!==p[3]?p[3]:{},s={mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json; charset=utf-8"},body:JSON.stringify(n)},o.useAPIKey&&(s.headers=d(d({},s.headers),{},(c={},a()(c,m,k()),a()(c,b,v()),c))),l=u.a.all([s,r,{method:"PATCH"}]),e.next=8,fetch(t,l);case 8:if(!(f=e.sent).ok){e.next=11;break}return e.abrupt("return",f.json());case 11:throw f;case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),T=function(){var e=c()(i.a.mark((function e(t){var n,r,o,s,c,l,f=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f.length>1&&void 0!==f[1]&&f[1],n=f.length>2&&void 0!==f[2]?f[2]:{},r=f.length>3&&void 0!==f[3]?f[3]:{},o={mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json; charset=utf-8"}},r.useAPIKey&&(o.headers=d(d({},o.headers),{},(s={},a()(s,m,k()),a()(s,b,v()),s))),c=u.a.all([o,n,{method:"DELETE"}]),e.next=8,fetch(t,c);case 8:if(!(l=e.sent).ok){e.next=11;break}return e.abrupt("return",l.json());case 11:throw l;case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),A=function(e,t){return{jsonrpc:"2.0",method:e,id:10,params:t}},M=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3e4;return Promise.race([S(e,t),new Promise((function(e,t){setTimeout((function(){t(new Error("timed out"))}),n)}))])}}])},function(e,t,n){var r=n(1397),i=n(1398);e.exports=function(e){if("string"==typeof e||"number"==typeof e){var t=new r(1),n=String(e).toLowerCase().trim(),o="0x"===n.substr(0,2)||"-0x"===n.substr(0,3),a=i(n);if("-"===a.substr(0,1)&&(a=i(a.slice(1)),t=new r(-1,10)),!(a=""===a?"0":a).match(/^-?[0-9]+$/)&&a.match(/^[0-9A-Fa-f]+$/)||a.match(/^[a-fA-F]+$/)||!0===o&&a.match(/^[0-9A-Fa-f]+$/))return new r(a,16).mul(t);if((a.match(/^-?[0-9]+$/)||""===a)&&!1===o)return new r(a,10).mul(t)}else if("object"==typeof e&&e.toString&&!e.pop&&!e.push&&e.toString(10).match(/^-?[0-9]+$/)&&(e.mul||e.dividedToIntegerBy))return new r(e.toString(10),10);throw new Error("[number-to-bn] while converting number "+JSON.stringify(e)+" to BN.js instance, error: invalid number value. Value must be an integer, hex string, BN or BigNumber instance. Note, decimals are not supported.")}},function(e,t,n){(function(t){var r=n(391),i=n(27),o=n(1018),a=n(1401),s=n(1402),c=n(1403),l=function(e){return i.isBN(e)},u=function(e){return e&&e.constructor&&"BigNumber"===e.constructor.name},f=function(e){try{return o.apply(null,arguments)}catch(t){throw new Error(t+' Given value: "'+e+'"')}},d=function(e){return!!/^(0x)?[0-9a-f]{40}$/i.test(e)&&(!(!/^(0x|0X)?[0-9a-f]{40}$/.test(e)&&!/^(0x|0X)?[0-9A-F]{40}$/.test(e))||p(e))},p=function(e){e=e.replace(/^0x/i,"");for(var t=w(e.toLowerCase()).replace(/^0x/i,""),n=0;n<40;n++)if(parseInt(t[n],16)>7&&e[n].toUpperCase()!==e[n]||parseInt(t[n],16)<=7&&e[n].toLowerCase()!==e[n])return!1;return!0},h=function(e){var t="";e=(e=(e=(e=(e=a.encode(e)).replace(/^(?:\u0000)*/,"")).split("").reverse().join("")).replace(/^(?:\u0000)*/,"")).split("").reverse().join("");for(var n=0;n<e.length;n++){var r=e.charCodeAt(n).toString(16);t+=r.length<2?"0"+r:r}return"0x"+t},m=function(e){if(r.isNull(e)||r.isUndefined(e))return e;if(!isFinite(e)&&!y(e))throw new Error('Given input "'+e+'" is not a number.');var t=f(e),n=t.toString(16);return t.lt(new i(0))?"-0x"+n.substr(1):"0x"+n},b=function(e){if(e=e.toString(16),!y(e))throw new Error('Given value "'+e+'" is not a valid hex string.');e=e.replace(/^0x/i,"");for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},y=function(e){return(r.isString(e)||r.isNumber(e))&&/^(-)?0x[0-9a-f]*$/i.test(e)},g=function(e){return(r.isString(e)||r.isNumber(e))&&/^(-0x|0x)?[0-9a-f]*$/i.test(e)},v="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",w=function(e){l(e)&&(e=e.toString()),y(e)&&/^0x/i.test(e.toString())&&(e=b(e));var t=s.keccak256(e);return t===v?null:t};w._Hash=s;e.exports={BN:i,isBN:l,isBigNumber:u,toBN:f,isAddress:d,isBloom:function(e){return c.isBloom(e)},isUserEthereumAddressInBloom:function(e,t){return c.isUserEthereumAddressInBloom(e,t)},isContractAddressInBloom:function(e,t){return c.isContractAddressInBloom(e,t)},isTopic:function(e){return c.isTopic(e)},isTopicInBloom:function(e,t){return c.isTopicInBloom(e,t)},isInBloom:function(e,t){return c.isInBloom(e,t)},checkAddressChecksum:p,utf8ToHex:h,hexToUtf8:function(e){if(!y(e))throw new Error('The parameter "'+e+'" must be a valid HEX string.');for(var t="",n=0,r=(e=(e=(e=(e=(e=e.replace(/^0x/i,"")).replace(/^(?:00)*/,"")).split("").reverse().join("")).replace(/^(?:00)*/,"")).split("").reverse().join("")).length,i=0;i<r;i+=2)n=parseInt(e.substr(i,2),16),t+=String.fromCharCode(n);return a.decode(t)},hexToNumber:function(e){if(!e)return e;if(r.isString(e)&&!y(e))throw new Error('Given value "'+e+'" is not a valid hex string.');return f(e).toNumber()},hexToNumberString:function(e){if(!e)return e;if(r.isString(e)&&!y(e))throw new Error('Given value "'+e+'" is not a valid hex string.');return f(e).toString(10)},numberToHex:m,toHex:function(e,n){if(d(e))return n?"address":"0x"+e.toLowerCase().replace(/^0x/i,"");if(r.isBoolean(e))return n?"bool":e?"0x01":"0x00";if(t.isBuffer(e))return"0x"+e.toString("hex");if(r.isObject(e)&&!u(e)&&!l(e))return n?"string":h(JSON.stringify(e));if(r.isString(e)){if(0===e.indexOf("-0x")||0===e.indexOf("-0X"))return n?"int256":m(e);if(0===e.indexOf("0x")||0===e.indexOf("0X"))return n?"bytes":e;if(!isFinite(e))return n?"string":h(e)}return n?e<0?"int256":"uint256":m(e)},hexToBytes:b,bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return"0x"+t.join("")},isHex:g,isHexStrict:y,stripHexPrefix:function(e){return 0!==e&&g(e)?e.replace(/^(-)?0x/i,"$1"):e},leftPad:function(e,t,n){var r=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(r?"0x":"")+new Array(i).join(n||"0")+e},rightPad:function(e,t,n){var r=/^0x/i.test(e)||"number"==typeof e,i=t-(e=e.toString(16).replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(r?"0x":"")+e+new Array(i).join(n||"0")},toTwosComplement:function(e){return"0x"+f(e).toTwos(256).toString(16,64)},sha3:w,sha3Raw:function(e){return null===(e=w(e))?v:e}}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(1414).version,r.utils=n(224),r.rand=n(1022),r.curve=n(1023),r.curves=n(925),r.ec=n(1426),r.eddsa=n(1430)},function(e,t,n){"use strict";var r=t;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",n=0;n<e.length;n++)t+=i(e[n].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},r.zero2=i,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,n){var r;function i(e){this.rand=e}if(e.exports=function(e){return r||(r=new i(null)),r.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=n(1415);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},function(e,t,n){"use strict";var r=t;r.base=n(881),r.short=n(1416),r.mont=n(1417),r.edwards=n(1418)},function(e,t,n){"use strict";var r=n(392).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},function(e,t,n){"use strict";var r=n(392),i=n(859),o=n(1024),a=n(824),s=r.sum32,c=r.sum32_4,l=r.sum32_5,u=o.ch32,f=o.maj32,d=o.s0_256,p=o.s1_256,h=o.g0_256,m=o.g1_256,b=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;b.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}r.inherits(g,b),e.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(m(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],b=this.h[2],y=this.h[3],g=this.h[4],v=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var k=l(_,p(g),u(g,v,w),this.k[r],n[r]),x=s(d(i),f(i,o,b));_=w,w=v,v=g,g=s(y,k),y=b,b=o,o=i,i=s(k,x)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],b),this.h[3]=s(this.h[3],y),this.h[4]=s(this.h[4],g),this.h[5]=s(this.h[5],v),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},g.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(392),i=n(859),o=n(824),a=r.rotr64_hi,s=r.rotr64_lo,c=r.shr64_hi,l=r.shr64_lo,u=r.sum64,f=r.sum64_hi,d=r.sum64_lo,p=r.sum64_4_hi,h=r.sum64_4_lo,m=r.sum64_5_hi,b=r.sum64_5_lo,y=i.BlockHash,g=[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 v(){if(!(this instanceof v))return new v;y.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}function w(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}function _(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}function k(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}function x(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}function S(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function O(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function E(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function A(e,t){var n=a(e,t,1)^a(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function M(e,t){var n=s(e,t,1)^s(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function I(e,t){var n=a(e,t,19)^a(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}function P(e,t){var n=s(e,t,19)^s(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(v,y),e.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=I(n[r-4],n[r-3]),o=P(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],c=A(n[r-30],n[r-29]),l=M(n[r-30],n[r-29]),u=n[r-32],f=n[r-31];n[r]=p(i,o,a,s,c,l,u,f),n[r+1]=h(i,o,a,s,c,l,u,f)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],c=this.h[4],l=this.h[5],p=this.h[6],h=this.h[7],y=this.h[8],g=this.h[9],v=this.h[10],A=this.h[11],M=this.h[12],I=this.h[13],P=this.h[14],C=this.h[15];o(this.k.length===n.length);for(var j=0;j<n.length;j+=2){var D=P,R=C,N=E(y,g),B=T(y,g),L=w(y,g,v,A,M),U=_(y,g,v,A,M,I),F=this.k[j],q=this.k[j+1],z=n[j],V=n[j+1],H=m(D,R,N,B,L,U,F,q,z,V),$=b(D,R,N,B,L,U,F,q,z,V);D=S(r,i),R=O(r,i),N=k(r,i,a,s,c),B=x(r,i,a,s,c,l);var K=f(D,R,N,B),W=d(D,R,N,B);P=M,C=I,M=v,I=A,v=y,A=g,y=f(p,h,H,$),g=d(h,h,H,$),p=c,h=l,c=a,l=s,a=r,s=i,r=f(H,$,K,W),i=d(H,$,K,W)}u(this.h,0,r,i),u(this.h,2,a,s),u(this.h,4,c,l),u(this.h,6,p,h),u(this.h,8,y,g),u(this.h,10,v,A),u(this.h,12,M,I),u(this.h,14,P,C)},v.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){var r,i;!function(o,a){"use strict";void 0===(i="function"==typeof(r=function(){var e=function(){},t="undefined"!=typeof window&&void 0!==window.navigator&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function r(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function o(n){return"debug"===n&&(n="log"),"undefined"!=typeof console&&("trace"===n&&t?i:void 0!==console[n]?r(console,n):void 0!==console.log?r(console,"log"):e)}function a(t,r){for(var i=0;i<n.length;i++){var o=n[i];this[o]=i<t?e:this.methodFactory(o,t,r)}this.log=this.debug}function s(e,t,n){return function(){"undefined"!=typeof console&&(a.call(this,t,n),this[e].apply(this,arguments))}}function c(e,t,n){return o(e)||s.apply(this,arguments)}function l(e,t,r){var i,o=this,s="loglevel";function l(){var e;if("undefined"!=typeof window&&s){try{e=window.localStorage[s]}catch(e){}if(void 0===e)try{var t=window.document.cookie,n=t.indexOf(encodeURIComponent(s)+"=");-1!==n&&(e=/^([^;]+)/.exec(t.slice(n))[1])}catch(e){}return void 0===o.levels[e]&&(e=void 0),e}}"string"==typeof e?s+=":"+e:"symbol"==typeof e&&(s=void 0),o.name=e,o.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},o.methodFactory=r||c,o.getLevel=function(){return i},o.setLevel=function(t,r){if("string"==typeof t&&void 0!==o.levels[t.toUpperCase()]&&(t=o.levels[t.toUpperCase()]),!("number"==typeof t&&t>=0&&t<=o.levels.SILENT))throw"log.setLevel() called with invalid level: "+t;if(i=t,!1!==r&&function(e){var t=(n[e]||"silent").toUpperCase();if("undefined"!=typeof window&&s){try{return void(window.localStorage[s]=t)}catch(e){}try{window.document.cookie=encodeURIComponent(s)+"="+t+";"}catch(e){}}}(t),a.call(o,t,e),"undefined"==typeof console&&t<o.levels.SILENT)return"No console available for logging"},o.setDefaultLevel=function(e){l()||o.setLevel(e,!1)},o.enableAll=function(e){o.setLevel(o.levels.TRACE,e)},o.disableAll=function(e){o.setLevel(o.levels.SILENT,e)};var u=l();null==u&&(u=null==t?"WARN":t),o.setLevel(u,!1)}var u=new l,f={};u.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=f[e];return t||(t=f[e]=new l(e,u.getLevel(),u.methodFactory)),t};var d="undefined"!=typeof window?window.log:void 0;return u.noConflict=function(){return"undefined"!=typeof window&&window.log===u&&(window.log=d),u},u.getLoggers=function(){return f},u.default=u,u})?r.call(t,n,t,e):r)||(e.exports=i)}()},function(e,t,n){"use strict";var r={messageId:0,toPayload:function(e,t){if(!e)throw new Error('JSONRPC method should be specified for params: "'+JSON.stringify(t)+'"!');return r.messageId++,{jsonrpc:"2.0",id:r.messageId,method:e,params:t||[]}},isValidResponse:function(e){return Array.isArray(e)?e.every(t):t(e);function t(e){return!(!e||e.error||"2.0"!==e.jsonrpc||"number"!=typeof e.id&&"string"!=typeof e.id||void 0===e.result)}},toBatchPayload:function(e){return e.map((function(e){return r.toPayload(e.method,e.params)}))}};e.exports=r},function(e,t,n){"use strict";var r=n(391),i=n(225).errors,o=n(225).formatters,a=n(399),s=n(1030),c=n(1031).subscriptions,l=n(1547),u=function(e){if(!e.call||!e.name)throw new Error('When creating a method you need to provide at least the "name" and "call" property.');this.name=e.name,this.call=e.call,this.params=e.params||0,this.inputFormatter=e.inputFormatter,this.outputFormatter=e.outputFormatter,this.transformPayload=e.transformPayload,this.extraFormatters=e.extraFormatters,this.abiCoder=e.abiCoder,this.requestManager=e.requestManager,this.accounts=e.accounts,this.defaultBlock=e.defaultBlock||"latest",this.defaultAccount=e.defaultAccount||null,this.transactionBlockTimeout=e.transactionBlockTimeout||50,this.transactionConfirmationBlocks=e.transactionConfirmationBlocks||24,this.transactionPollingTimeout=e.transactionPollingTimeout||750,this.defaultCommon=e.defaultCommon,this.defaultChain=e.defaultChain,this.defaultHardfork=e.defaultHardfork,this.handleRevert=e.handleRevert};u.prototype.setRequestManager=function(e,t){this.requestManager=e,t&&(this.accounts=t)},u.prototype.createFunction=function(e,t){var n=this.buildCall();return n.call=this.call,this.setRequestManager(e||this.requestManager,t||this.accounts),n},u.prototype.attachToObject=function(e){var t=this.buildCall();t.call=this.call;var n=this.name.split(".");n.length>1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},u.prototype.getCall=function(e){return r.isFunction(this.call)?this.call(e):this.call},u.prototype.extractCallback=function(e){if(r.isFunction(e[e.length-1]))return e.pop()},u.prototype.validateArgs=function(e){if(e.length!==this.params)throw i.InvalidNumberOfParams(e.length,this.params,this.name)},u.prototype.formatInput=function(e){var t=this;return this.inputFormatter?this.inputFormatter.map((function(n,r){return n?n.call(t,e[r]):e[r]})):e},u.prototype.formatOutput=function(e){var t=this;return r.isArray(e)?e.map((function(e){return t.outputFormatter&&e?t.outputFormatter(e):e})):this.outputFormatter&&e?this.outputFormatter(e):e},u.prototype.toPayload=function(e){var t=this.getCall(e),n=this.extractCallback(e),r=this.formatInput(e);this.validateArgs(r);var i={method:t,params:r,callback:n};return this.transformPayload&&(i=this.transformPayload(i)),i},u.prototype._confirmTransaction=function(e,t,n){var f=this,d=!1,p=!0,h=0,m=0,b=null,y=null,g=r.isObject(n.params[0])&&n.params[0].gas?n.params[0].gas:null,v=r.isObject(n.params[0])&&n.params[0].data&&n.params[0].from&&!n.params[0].to,w=v&&n.params[0].data.length>2,_=[new u({name:"getBlockByNumber",call:"eth_getBlockByNumber",params:2,inputFormatter:[o.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:o.outputBlockFormatter}),new u({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:o.outputTransactionReceiptFormatter}),new u({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[o.inputAddressFormatter,o.inputDefaultBlockNumberFormatter]}),new u({name:"getTransactionByHash",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:o.outputTransactionFormatter}),new c({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:o.outputBlockFormatter}}})],k={};r.each(_,(function(e){e.attachToObject(k),e.requestManager=f.requestManager}));var x=function(r,c,u,_,x){if(!u)return x||(x={unsubscribe:function(){clearInterval(b)}}),(r?s.resolve(r):k.getTransactionReceipt(t)).catch((function(t){x.unsubscribe(),d=!0,a._fireError({message:"Failed to check for transaction receipt:",data:t},e.eventEmitter,e.reject)})).then((async function(t){if(!t||!t.blockHash)throw new Error("Receipt missing or blockHash null");if(f.extraFormatters&&f.extraFormatters.receiptFormatter&&(t=f.extraFormatters.receiptFormatter(t)),e.eventEmitter.listeners("confirmation").length>0){var n;if(void 0===r||0!==m){var i=await k.getBlockByNumber("latest"),o=i?i.hash:null;c?y?(n=await k.getBlockByNumber(y.number+1))&&(y=n,e.eventEmitter.emit("confirmation",m,t,o)):(n=await k.getBlockByNumber(t.blockNumber),y=n,e.eventEmitter.emit("confirmation",m,t,o)):e.eventEmitter.emit("confirmation",m,t,o)}(c&&n||!c)&&m++,p=!1,m===f.transactionConfirmationBlocks+1&&(x.unsubscribe(),e.eventEmitter.removeAllListeners())}return t})).then((async function(t){if(v&&!d){if(!t.contractAddress)return p&&(x.unsubscribe(),d=!0),void a._fireError(i.NoContractAddressFoundError(t),e.eventEmitter,e.reject,null,t);var n;try{n=await k.getCode(t.contractAddress)}catch(e){}if(!n)return;!0===t.status&&w||n.length>2?(e.eventEmitter.emit("receipt",t),f.extraFormatters&&f.extraFormatters.contractDeployFormatter?e.resolve(f.extraFormatters.contractDeployFormatter(t)):e.resolve(t),p&&e.eventEmitter.removeAllListeners()):a._fireError(i.ContractCodeNotStoredError(t),e.eventEmitter,e.reject,null,t),p&&x.unsubscribe(),d=!0}return t})).then((async function(t){if(!v&&!d){if(t.outOfGas||g&&g===t.gasUsed||!0!==t.status&&"0x1"!==t.status&&void 0!==t.status)if(JSON.stringify(t,null,2),!1===t.status||"0x0"===t.status)try{var r=null;if(!f.handleRevert||"eth_sendTransaction"!==f.call&&"eth_sendRawTransaction"!==f.call)throw!1;var s=n.params[0];if("eth_sendRawTransaction"===f.call){var c=n.params[0],u=l.parse(c);s=o.inputTransactionFormatter({data:u.data,to:u.to,from:u.from,gas:u.gasLimit.toHexString(),gasPrice:u.gasPrice.toHexString(),value:u.value.toHexString()})}if(!(r=await f.getRevertReason(s,t.blockNumber)))throw!1;a._fireError(i.TransactionRevertInstructionError(r.reason,r.signature,t),e.eventEmitter,e.reject,null,t)}catch(n){a._fireError(i.TransactionRevertedWithoutReasonError(t),e.eventEmitter,e.reject,null,t)}else a._fireError(i.TransactionOutOfGasError(t),e.eventEmitter,e.reject,null,t);else e.eventEmitter.emit("receipt",t),e.resolve(t),p&&e.eventEmitter.removeAllListeners();p&&x.unsubscribe(),d=!0}})).catch((function(){h++,c?h-1>=f.transactionPollingTimeout&&(x.unsubscribe(),d=!0,a._fireError(i.TransactionError("Transaction was not mined within "+f.transactionPollingTimeout+" seconds, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject)):h-1>=f.transactionBlockTimeout&&(x.unsubscribe(),d=!0,a._fireError(i.TransactionError("Transaction was not mined within "+f.transactionBlockTimeout+" blocks, please make sure your transaction was properly sent. Be aware that it might still be mined!"),e.eventEmitter,e.reject))}));x.unsubscribe(),d=!0,a._fireError({message:"Failed to subscribe to new newBlockHeaders to confirm the transaction receipts.",data:u},e.eventEmitter,e.reject)},S=function(e){const t=()=>{b=setInterval(x.bind(null,e,!0),1e3)};this.requestManager.provider.on?k.subscribe("newBlockHeaders",(function(n,r,i){n||!r?t():x(e,!1,n,0,i)})):t()}.bind(this);k.getTransactionReceipt(t).then((function(t){t&&t.blockHash?(e.eventEmitter.listeners("confirmation").length>0&&S(t),x(t,!1)):d||S()})).catch((function(){d||S()}))};var f=function(e,t){return r.isNumber(e)?t.wallet[e]:r.isObject(e)&&e.address&&e.privateKey?e:t.wallet[e.toLowerCase()]};u.prototype.buildCall=function(){var e=this,t="eth_sendTransaction"===e.call||"eth_sendRawTransaction"===e.call,n="eth_call"===e.call,o=function(){var o=s(!t),c=e.toPayload(Array.prototype.slice.call(arguments)),l=function(r,s){var l;if(e.handleRevert&&n&&e.abiCoder&&(!r&&e.isRevertReasonString(s)?l=s.substring(10):r&&r.data&&(l=r.data.substring(10)),l)){var u=e.abiCoder.decodeParameter("string","0x"+l);return void a._fireError(i.RevertInstructionError(u,"Error(String)"),o.eventEmitter,o.reject,c.callback,{reason:u,signature:"Error(String)"})}try{s=e.formatOutput(s)}catch(e){r=e}if(s instanceof Error&&(r=s),r)return r.error&&(r=r.error),a._fireError(r,o.eventEmitter,o.reject,c.callback);c.callback&&c.callback(null,s),t?(o.eventEmitter.emit("transactionHash",s),e._confirmTransaction(o,s,c)):r||o.resolve(s)},d=function(t){var n=r.extend({},c,{method:"eth_sendRawTransaction",params:[t.rawTransaction]});e.requestManager.send(n,l)},p=function(e,t){var n;if(t&&t.accounts&&t.accounts.wallet&&t.accounts.wallet.length)if("eth_sendTransaction"===e.method){var i=e.params[0];if((n=f(r.isObject(i)?i.from:null,t.accounts))&&n.privateKey){var a=r.omit(i,"from");return t.defaultChain&&!a.chain&&(a.chain=t.defaultChain),t.defaultHardfork&&!a.hardfork&&(a.hardfork=t.defaultHardfork),t.defaultCommon&&!a.common&&(a.common=t.defaultCommon),void t.accounts.signTransaction(a,n.privateKey).then(d).catch((function(e){if(r.isFunction(o.eventEmitter.listeners)&&o.eventEmitter.listeners("error").length){try{o.eventEmitter.emit("error",e)}catch(e){}o.eventEmitter.removeAllListeners(),o.eventEmitter.catch((function(){}))}o.reject(e)}))}}else if("eth_sign"===e.method){var s=e.params[1];if((n=f(e.params[0],t.accounts))&&n.privateKey){var c=t.accounts.sign(s,n.privateKey);return e.callback&&e.callback(null,c.signature),void o.resolve(c.signature)}}return t.requestManager.send(e,l)};if(t&&r.isObject(c.params[0])&&void 0===c.params[0].gasPrice){var h=new u({name:"getGasPrice",call:"eth_gasPrice",params:0}).createFunction(e.requestManager);h((function(n,r){r&&(c.params[0].gasPrice=r),t&&setTimeout(()=>{o.eventEmitter.emit("sending",c)},0),p(c,e)}))}else t&&setTimeout(()=>{o.eventEmitter.emit("sending",c)},0),p(c,e);return t&&setTimeout(()=>{o.eventEmitter.emit("sent",c)},0),o.eventEmitter};return o.method=e,o.request=this.request.bind(this),o},u.prototype.getRevertReason=function(e,t){var n=this;return new Promise((function(r,i){new u({name:"call",call:"eth_call",params:2,abiCoder:n.abiCoder,handleRevert:!0}).createFunction(n.requestManager)(e,a.numberToHex(t)).then((function(){r(!1)})).catch((function(e){e.reason?r({reason:e.reason,signature:e.signature}):i(e)}))}))},u.prototype.isRevertReasonString=function(e){return r.isString(e)&&(e.length-2)/2%32==4&&"0x08c379a0"===e.substring(0,10)},u.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=u},function(e,t,n){"use strict";var r=n(926),i=function(e){var t,n,i=new Promise((function(){t=arguments[0],n=arguments[1]}));if(e)return{resolve:t,reject:n,eventEmitter:i};var o=new r;return i._events=o._events,i.emit=o.emit,i.on=o.on,i.once=o.once,i.off=o.off,i.listeners=o.listeners,i.addListener=o.addListener,i.removeListener=o.removeListener,i.removeAllListeners=o.removeAllListeners,{resolve:t,reject:n,eventEmitter:i}};i.resolve=function(e){var t=i(!0);return t.resolve(e),t.eventEmitter},e.exports=i},function(e,t,n){"use strict";var r=n(1463),i=function(e){this.name=e.name,this.type=e.type,this.subscriptions=e.subscriptions||{},this.requestManager=null};i.prototype.setRequestManager=function(e){this.requestManager=e},i.prototype.attachToObject=function(e){var t=this.buildCall(),n=this.name.split(".");n.length>1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},i.prototype.buildCall=function(){var e=this;return function(){e.subscriptions[arguments[0]]||console.warn("Subscription "+JSON.stringify(arguments[0])+" doesn't exist. Subscribing anyway.");var t=new r({subscription:e.subscriptions[arguments[0]]||{},requestManager:e.requestManager,type:e.type});return t.subscribe.apply(t,arguments)}},e.exports={subscriptions:i,subscription:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(a)};
133 /*!
134  * Adapted from jQuery UI core
135  *
136  * http://jqueryui.com
137  *
138  * Copyright 2014 jQuery Foundation and other contributors
139  * Released under the MIT license.
140  * http://jquery.org/license
141  *
142  * http://api.jqueryui.com/category/ui-core/
143  */
144 var r=/input|select|textarea|button|object/;function i(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}function o(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(i(t))return!1;t=t.parentNode}return!0}(e)}function a(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&o(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertNodeList=c,t.setElement=function(e){var t=e;if("string"==typeof t&&a.canUseDOM){var n=document.querySelectorAll(t);c(n,t),t="length"in n?n[0]:n}return s=t||s},t.validateElement=l,t.hide=function(e){l(e)&&(e||s).setAttribute("aria-hidden","true")},t.show=function(e){l(e)&&(e||s).removeAttribute("aria-hidden")},t.documentNotReadyOrSSRTesting=function(){s=null},t.resetForTesting=function(){s=null};var r,i=n(885),o=(r=i)&&r.__esModule?r:{default:r},a=n(928);var s=null;function c(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function l(e){return!(!e&&!s)||((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]};t.default=r,e.exports=t.default},function(e,t,n){var r=n(930),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}}},function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},function(e,t){var n="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",r="(?:(?![A-Z0-9 $%*+\\-./:]|"+(n=n.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(n,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(r,"g"),t.NUMERIC=new RegExp("[0-9]+","g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+n+"$"),o=new RegExp("^[0-9]+$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return a.test(e)}},function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,i=e.scale||4;return{width:r,scale:r?4:i,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var i=n.modules.size,o=n.modules.data,a=t.getScale(i,r),s=Math.floor((i+2*r.margin)*a),c=r.margin*a,l=[r.color.light,r.color.dark],u=0;u<s;u++)for(var f=0;f<s;f++){var d=4*(u*s+f),p=r.color.light;if(u>=c&&f>=c&&u<s-c&&f<s-c)p=l[o[Math.floor((u-c)/a)*i+Math.floor((f-c)/a)]?1:0];e[d++]=p.r,e[d++]=p.g,e[d++]=p.b,e[d]=p.a}}},function(e,t){e.exports="assets/broken-link.svg"},function(e,t,n){"use strict";n.r(t),n.d(t,"ConstructorFragment",(function(){return _})),n.d(t,"EventFragment",(function(){return y})),n.d(t,"Fragment",(function(){return b})),n.d(t,"FunctionFragment",(function(){return k})),n.d(t,"ParamType",(function(){return h})),n.d(t,"FormatTypes",(function(){return d})),n.d(t,"AbiCoder",(function(){return ae})),n.d(t,"defaultAbiCoder",(function(){return se})),n.d(t,"Interface",(function(){return me})),n.d(t,"Indexed",(function(){return pe})),n.d(t,"checkResultErrors",(function(){return M})),n.d(t,"LogDescription",(function(){return fe})),n.d(t,"TransactionDescription",(function(){return de}));var r=n(850),i=n(60),o=n(35);const a=new o.a("abi/5.0.7"),s={};let c={calldata:!0,memory:!0,storage:!0},l={calldata:!0,memory:!0};function u(e,t){if("bytes"===e||"string"===e){if(c[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&l[t])return!0;return(c[t]||"payable"===t)&&a.throwArgumentError("invalid modifier","name",t),!1}function f(e,t){for(let n in t)Object(i.c)(e,n,t[n])}const d=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),p=new RegExp(/^(.*)\[([0-9]*)\]$/);class h{constructor(e,t){e!==s&&a.throwError("use fromString",o.a.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),f(this,t);let n=this.type.match(p);f(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:h.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=d.sighash),d[e]||a.throwArgumentError("invalid format type","format",e),e===d.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==d.sighash&&(t+=this.type),t+="("+this.components.map(t=>t.format(e)).join(e===d.full?", ":",")+")"):t+=this.type,e!==d.sighash&&(!0===this.indexed&&(t+=" indexed"),e===d.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?h.fromString(e,t):h.fromObject(e)}static fromObject(e){return h.isParamType(e)?e:new h(s,{name:e.name||null,type:x(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(h.fromObject):null})}static fromString(e,t){return function(e){return h.fromObject({name:e.name,type:e.type,indexed:e.indexed,components:e.components})}(function(e,t){let n=e;function r(t){a.throwArgumentError("unexpected character at position "+t,"param",e)}function i(e){let n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let n=0;n<e.length;n++){let o=e[n];switch(o){case"(":s.state.allowType&&""===s.type?s.type="tuple":s.state.allowParams||r(n),s.state.allowType=!1,s.type=x(s.type),s.components=[i(s)],s=s.components[0];break;case")":delete s.state,"indexed"===s.name&&(t||r(n),s.indexed=!0,s.name=""),u(s.type,s.name)&&(s.name=""),s.type=x(s.type);let e=s;s=s.parent,s||r(n),delete e.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,"indexed"===s.name&&(t||r(n),s.indexed=!0,s.name=""),u(s.type,s.name)&&(s.name=""),s.type=x(s.type);let a=i(s.parent);s.parent.components.push(a),delete s.parent,s=a;break;case" ":s.state.allowType&&""!==s.type&&(s.type=x(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&""!==s.name&&("indexed"===s.name?(t||r(n),s.indexed&&r(n),s.indexed=!0,s.name=""):u(s.type,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||r(n),s.type+=o,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||r(n),s.type+=o,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=o,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=o,delete s.state.allowArray):s.state.readArray?s.type+=o:r(n)}}return s.parent&&a.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===s.name?(t||r(n.length-7),s.indexed&&r(n.length-7),s.indexed=!0,s.name=""):u(s.type,s.name)&&(s.name=""),o.type=x(o.type),o}(e,!!t))}static isParamType(e){return!(null==e||!e._isParamType)}}function m(e,t){return function(e){e=e.trim();let t=[],n="",r=0;for(let i=0;i<e.length;i++){let o=e[i];","===o&&0===r?(t.push(n),n=""):(n+=o,"("===o?r++:")"===o&&(r--,-1===r&&a.throwArgumentError("unbalanced parenthesis","value",e)))}n&&t.push(n);return t}(e).map(e=>h.fromString(e,t))}class b{constructor(e,t){e!==s&&a.throwError("use a static from method",o.a.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),f(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return b.isFragment(e)?e:"string"==typeof e?b.fromString(e):b.fromObject(e)}static fromObject(e){if(b.isFragment(e))return e;switch(e.type){case"function":return k.fromObject(e);case"event":return y.fromObject(e);case"constructor":return _.fromObject(e);case"fallback":case"receive":return null}return a.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?y.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?k.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?_.fromString(e.trim()):a.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class y extends b{format(e){if(e||(e=d.sighash),d[e]||a.throwArgumentError("invalid format type","format",e),e===d.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==d.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===d.full?", ":",")+") ",e!==d.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?y.fromString(e):y.fromObject(e)}static fromObject(e){if(y.isEventFragment(e))return e;"event"!==e.type&&a.throwArgumentError("invalid event object","value",e);const t={name:O(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(h.fromObject):[],type:"event"};return new y(s,t)}static fromString(e){let t=e.match(E);t||a.throwArgumentError("invalid event string","value",e);let n=!1;return t[3].split(" ").forEach(e=>{switch(e.trim()){case"anonymous":n=!0;break;case"":break;default:a.warn("unknown modifier: "+e)}}),y.fromObject({name:t[1].trim(),anonymous:n,inputs:m(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function g(e,t){t.gas=null;let n=e.split("@");return 1!==n.length?(n.length>2&&a.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||a.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=r.a.from(n[1]),n[0]):e}function v(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}})}function w(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&a.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&a.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||a.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&a.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&a.throwArgumentError("unable to determine stateMutability","value",e),t}class _ extends b{format(e){if(e||(e=d.sighash),d[e]||a.throwArgumentError("invalid format type","format",e),e===d.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});e===d.sighash&&a.throwError("cannot format a constructor for sighash",o.a.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map(t=>t.format(e)).join(e===d.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?_.fromString(e):_.fromObject(e)}static fromObject(e){if(_.isConstructorFragment(e))return e;"constructor"!==e.type&&a.throwArgumentError("invalid constructor object","value",e);let t=w(e);t.constant&&a.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(h.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?r.a.from(e.gas):null};return new _(s,n)}static fromString(e){let t={type:"constructor"},n=(e=g(e,t)).match(E);return n&&"constructor"===n[1].trim()||a.throwArgumentError("invalid constructor string","value",e),t.inputs=m(n[2].trim(),!1),v(n[3].trim(),t),_.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class k extends _{format(e){if(e||(e=d.sighash),d[e]||a.throwArgumentError("invalid format type","format",e),e===d.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),ouputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==d.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===d.full?", ":",")+") ",e!==d.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map(t=>t.format(e)).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?k.fromString(e):k.fromObject(e)}static fromObject(e){if(k.isFunctionFragment(e))return e;"function"!==e.type&&a.throwArgumentError("invalid function object","value",e);let t=w(e);const n={type:e.type,name:O(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(h.fromObject):[],outputs:e.outputs?e.outputs.map(h.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?r.a.from(e.gas):null};return new k(s,n)}static fromString(e){let t={type:"function"},n=(e=g(e,t)).split(" returns ");n.length>2&&a.throwArgumentError("invalid function string","value",e);let r=n[0].match(E);if(r||a.throwArgumentError("invalid function signature","value",e),t.name=r[1].trim(),t.name&&O(t.name),t.inputs=m(r[2],!1),v(r[3].trim(),t),n.length>1){let r=n[1].match(E);""==r[1].trim()&&""==r[3].trim()||a.throwArgumentError("unexpected tokens","value",e),t.outputs=m(r[2],!1)}else t.outputs=[];return k.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function x(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const S=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function O(e){return e&&e.match(S)||a.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const E=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");var T=n(16);const A=new o.a("abi/5.0.7");function M(e){const t=[],n=function(e,r){if(Array.isArray(r))for(let i in r){const o=e.slice();o.push(i);try{n(o,r[i])}catch(e){t.push({path:o,error:e})}}};return n([],e),t}class I{constructor(e,t,n,r){this.name=e,this.type=t,this.localName=n,this.dynamic=r}_throwError(e,t){A.throwArgumentError(e,this.localName,t)}}class P{constructor(e){Object(i.c)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return Object(T.c)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(Object(T.b)(e._data))}writeBytes(e){let t=Object(T.a)(e);const n=t.length%this.wordSize;return n&&(t=Object(T.b)([t,this._padding.slice(n)])),this._writeData(t)}_getValue(e){let t=Object(T.a)(r.a.from(e));return t.length>this.wordSize&&A.throwError("value out-of-bounds",o.a.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(T.b)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class C{constructor(e,t,n,r){Object(i.c)(this,"_data",Object(T.a)(e)),Object(i.c)(this,"wordSize",t||32),Object(i.c)(this,"_coerceFunc",n),Object(i.c)(this,"allowLoose",r),this._offset=0}get data(){return Object(T.g)(this._data)}get consumed(){return this._offset}static coerce(e,t){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):C.coerce(e,t)}_peekBytes(e,t,n){let r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:A.throwError("data out-of-bounds",o.a.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}subReader(e){return new C(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}readValue(){return r.a.from(this.readBytes(this.wordSize))}}var j=n(417);class D extends I{constructor(e){super("address","address",e,!1)}encode(e,t){try{Object(j.a)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return Object(j.a)(Object(T.f)(e.readValue().toHexString(),20))}}class R extends I{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const N=new o.a("abi/5.0.7");function B(e,t,n){let r=null;if(Array.isArray(n))r=n;else if(n&&"object"==typeof n){let e={};r=t.map(t=>{const r=t.localName;return r||N.throwError("cannot encode object for signature with missing names",o.a.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]&&N.throwError("cannot encode object for signature with duplicate names",o.a.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]=!0,n[r]})}else N.throwArgumentError("invalid tuple value","tuple",n);t.length!==r.length&&N.throwArgumentError("types/value length mismatch","tuple",n);let i=new P(e.wordSize),a=new P(e.wordSize),s=[];t.forEach((e,t)=>{let n=r[t];if(e.dynamic){let t=a.length;e.encode(a,n);let r=i.writeUpdatableValue();s.push(e=>{r(e+t)})}else e.encode(i,n)}),s.forEach(e=>{e(i.length)});let c=e.appendWriter(i);return c+=e.appendWriter(a),c}function L(e,t){let n=[],r=e.subReader(0);t.forEach(t=>{let i=null;if(t.dynamic){let n=e.readValue(),a=r.subReader(n.toNumber());try{i=t.decode(a)}catch(e){if(e.code===o.a.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===o.a.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&n.push(i)});const i=t.reduce((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e},{});t.forEach((e,t)=>{let r=e.localName;if(!r||1!==i[r])return;if("length"===r&&(r="_length"),null!=n[r])return;const o=n[t];o instanceof Error?Object.defineProperty(n,r,{get:()=>{throw o}}):n[r]=o});for(let e=0;e<n.length;e++){const t=n[e];t instanceof Error&&Object.defineProperty(n,e,{get:()=>{throw t}})}return Object.freeze(n)}class U extends I{constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),this.coder=e,this.length=t}encode(e,t){Array.isArray(t)||this._throwError("expected array value",t);let n=this.length;-1===n&&(n=t.length,e.writeValue(t.length)),N.checkArgumentCount(t.length,n,"coder array"+(this.localName?" "+this.localName:""));let r=[];for(let e=0;e<t.length;e++)r.push(this.coder);return B(e,r,t)}decode(e){let t=this.length;-1===t&&(t=e.readValue().toNumber());let n=[];for(let e=0;e<t;e++)n.push(new R(this.coder));return e.coerce(this.name,L(e,n))}}class F extends I{constructor(e){super("bool","bool",e,!1)}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class q extends I{constructor(e,t){super(e,e,t,!0)}encode(e,t){t=Object(T.a)(t);let n=e.writeValue(t.length);return n+=e.writeBytes(t),n}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class z extends q{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,Object(T.g)(super.decode(e)))}}class V extends I{constructor(e,t){let n="bytes"+String(e);super(n,n,t,!1),this.size=e}encode(e,t){let n=Object(T.a)(t);return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}decode(e){return e.coerce(this.name,Object(T.g)(e.readBytes(this.size)))}}class H extends I{constructor(e){super("null","",e,!1)}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var $=n(1559);class K extends I{constructor(e,t,n){const r=(t?"int":"uint")+8*e;super(r,r,n,!1),this.size=e,this.signed=t}encode(e,t){let n=r.a.from(t),i=$.a.mask(8*e.wordSize);if(this.signed){let e=i.mask(8*this.size-1);(n.gt(e)||n.lt(e.add($.c).mul($.b)))&&this._throwError("value out-of-bounds",t)}else(n.lt($.d)||n.gt(i.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return n=n.toTwos(8*this.size).mask(8*this.size),this.signed&&(n=n.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(n)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}const W=new o.a("strings/5.0.7");var G,J;function Q(e,t,n,r,i){if(e===J.BAD_PREFIX||e===J.UNEXPECTED_CONTINUE){let e=0;for(let r=t+1;r<n.length&&n[r]>>6==2;r++)e++;return e}return e===J.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(G||(G={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(J||(J={}));const Y=Object.freeze({error:function(e,t,n,r,i){return W.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:Q,replace:function(e,t,n,r,i){return e===J.OVERLONG?(r.push(i),0):(r.push(65533),Q(e,t,n))}});function Z(e,t){null==t&&(t=Y.error),e=Object(T.a)(e);const n=[];let r=0;for(;r<e.length;){const i=e[r++];if(i>>7==0){n.push(i);continue}let o=null,a=null;if(192==(224&i))o=1,a=127;else if(224==(240&i))o=2,a=2047;else{if(240!=(248&i)){r+=t(128==(192&i)?J.UNEXPECTED_CONTINUE:J.BAD_PREFIX,r-1,e,n);continue}o=3,a=65535}if(r-1+o>=e.length){r+=t(J.OVERRUN,r-1,e,n);continue}let s=i&(1<<8-o-1)-1;for(let i=0;i<o;i++){let i=e[r];if(128!=(192&i)){r+=t(J.MISSING_CONTINUE,r,e,n),s=null;break}s=s<<6|63&i,r++}null!==s&&(s>1114111?r+=t(J.OUT_OF_RANGE,r-1-o,e,n,s):s>=55296&&s<=57343?r+=t(J.UTF16_SURROGATE,r-1-o,e,n,s):s<=a?r+=t(J.OVERLONG,r-1-o,e,n,s):n.push(s))}return n}function X(e,t=G.current){t!=G.current&&(W.checkNormalize(),e=e.normalize(t));let n=[];for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r<128)n.push(r);else if(r<2048)n.push(r>>6|192),n.push(63&r|128);else if(55296==(64512&r)){t++;const i=e.charCodeAt(t);if(t>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&r)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(r>>12|224),n.push(r>>6&63|128),n.push(63&r|128)}return Object(T.a)(n)}function ee(e,t){return Z(e,t).map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))).join("")}class te extends q{constructor(e){super("string",e)}encode(e,t){return super.encode(e,X(t))}decode(e){return ee(super.decode(e))}}class ne extends I{constructor(e,t){let n=!1;const r=[];e.forEach(e=>{e.dynamic&&(n=!0),r.push(e.type)});super("tuple","tuple("+r.join(",")+")",t,n),this.coders=e}encode(e,t){return B(e,this.coders,t)}decode(e){return e.coerce(this.name,L(e,this.coders))}}const re=new o.a("abi/5.0.7"),ie=new RegExp(/^bytes([0-9]*)$/),oe=new RegExp(/^(u?int)([0-9]*)$/);class ae{constructor(e){re.checkNew(new.target,ae),Object(i.c)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new D(e.name);case"bool":return new F(e.name);case"string":return new te(e.name);case"bytes":return new z(e.name);case"array":return new U(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new ne((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new H(e.name)}let t=e.type.match(oe);if(t){let n=parseInt(t[2]||"256");return(0===n||n>256||n%8!=0)&&re.throwArgumentError("invalid "+t[1]+" bit length","param",e),new K(n/8,"int"===t[1],e.name)}if(t=e.type.match(ie),t){let n=parseInt(t[1]);return(0===n||n>32)&&re.throwArgumentError("invalid bytes length","param",e),new V(n,e.name)}return re.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new C(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new P(this._getWordSize())}encode(e,t){e.length!==t.length&&re.throwError("types/values length mismatch",o.a.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const n=e.map(e=>this._getCoder(h.from(e))),r=new ne(n,"_"),i=this._getWriter();return r.encode(i,t),i.data}decode(e,t,n){const r=e.map(e=>this._getCoder(h.from(e)));return new ne(r,"_").decode(this._getReader(Object(T.a)(t),n))}}const se=new ae;var ce=n(214);function le(e){return Object(ce.a)(X(e))}const ue=new o.a("abi/5.0.7");class fe extends i.a{}class de extends i.a{}class pe extends i.a{static isIndexed(e){return!(!e||!e._isIndexed)}}function he(e,t){const n=new Error("deferred error during ABI decoding triggered accessing "+e);return n.error=t,n}class me{constructor(e){ue.checkNew(new.target,me);let t=[];t="string"==typeof e?JSON.parse(e):e,Object(i.c)(this,"fragments",t.map(e=>b.from(e)).filter(e=>null!=e)),Object(i.c)(this,"_abiCoder",Object(i.d)(new.target,"getAbiCoder")()),Object(i.c)(this,"functions",{}),Object(i.c)(this,"errors",{}),Object(i.c)(this,"events",{}),Object(i.c)(this,"structs",{}),this.fragments.forEach(e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void ue.warn("duplicate definition - constructor"):void Object(i.c)(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;default:return}let n=e.format();t[n]?ue.warn("duplicate definition - "+n):t[n]=e}),this.deploy||Object(i.c)(this,"deploy",_.from({payable:!1,type:"constructor"})),Object(i.c)(this,"_isInterface",!0)}format(e){e||(e=d.full),e===d.sighash&&ue.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map(t=>t.format(e));return e===d.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return se}static getAddress(e){return Object(j.a)(e)}static getSighash(e){return Object(T.e)(le(e.format()),0,4)}static getEventTopic(e){return le(e.format())}getFunction(e){if(Object(T.j)(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];ue.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.functions).filter(e=>e.split("(")[0]===t);return 0===n.length?ue.throwArgumentError("no matching function","name",t):n.length>1&&ue.throwArgumentError("multiple matching functions","name",t),this.functions[n[0]]}const t=this.functions[k.fromString(e).format()];return t||ue.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(Object(T.j)(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];ue.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.events).filter(e=>e.split("(")[0]===t);return 0===n.length?ue.throwArgumentError("no matching event","name",t):n.length>1&&ue.throwArgumentError("multiple matching events","name",t),this.events[n[0]]}const t=this.events[y.fromString(e).format()];return t||ue.throwArgumentError("no matching event","signature",e),t}getSighash(e){return"string"==typeof e&&(e=this.getFunction(e)),Object(i.d)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),Object(i.d)(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));const n=Object(T.a)(t);return Object(T.g)(n.slice(0,4))!==this.getSighash(e)&&ue.throwArgumentError(`data signature does not match function ${e.name}.`,"data",Object(T.g)(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(T.g)(Object(T.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let n=Object(T.a)(t),r=null,i=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(e){}break;case 4:"0x08c379a0"===Object(T.g)(n.slice(0,4))&&(i="Error(string)",r=this._abiCoder.decode(["string"],n.slice(4))[0])}return ue.throwError("call revert exception",o.a.errors.CALL_EXCEPTION,{method:e.format(),errorSignature:i,errorArgs:[r],reason:r})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(T.g)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&ue.throwError("too many arguments for "+e.format(),o.a.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let n=[];e.anonymous||n.push(this.getEventTopic(e));const r=(e,t)=>"string"===e.type?le(t):"bytes"===e.type?Object(ce.a)(Object(T.g)(t)):("address"===e.type&&this._abiCoder.encode(["address"],[t]),Object(T.f)(Object(T.g)(t),32));for(t.forEach((t,i)=>{let o=e.inputs[i];o.indexed?null==t?n.push(null):"array"===o.baseType||"tuple"===o.baseType?ue.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?n.push(t.map(e=>r(o,e))):n.push(r(o,t)):null!=t&&ue.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)});n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const n=[],r=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&ue.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((e,o)=>{const a=t[o];if(e.indexed)if("string"===e.type)n.push(le(a));else if("bytes"===e.type)n.push(Object(ce.a)(a));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(this._abiCoder.encode([e.type],[a]))}else r.push(e),i.push(a)}),{data:this._abiCoder.encode(r,i),topics:n}}decodeEventLog(e,t,n){if("string"==typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){let t=this.getEventTopic(e);Object(T.j)(n[0],32)&&n[0].toLowerCase()===t||ue.throwError("fragment/topic mismatch",o.a.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:n[0]}),n=n.slice(1)}let r=[],i=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(h.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(r.push(e),a.push(!1)):(i.push(e),a.push(!1))});let s=null!=n?this._abiCoder.decode(r,Object(T.b)(n)):null,c=this._abiCoder.decode(i,t,!0),l=[],u=0,f=0;e.inputs.forEach((e,t)=>{if(e.indexed)if(null==s)l[t]=new pe({_isIndexed:!0,hash:null});else if(a[t])l[t]=new pe({_isIndexed:!0,hash:s[f++]});else try{l[t]=s[f++]}catch(e){l[t]=e}else try{l[t]=c[u++]}catch(e){l[t]=e}if(e.name&&null==l[e.name]){const n=l[t];n instanceof Error?Object.defineProperty(l,e.name,{get:()=>{throw he("property "+JSON.stringify(e.name),n)}}):l[e.name]=n}});for(let e=0;e<l.length;e++){const t=l[e];t instanceof Error&&Object.defineProperty(l,e,{get:()=>{throw he("index "+e,t)}})}return Object.freeze(l)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new de({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:r.a.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new fe({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}static isInterface(e){return!(!e||!e._isInterface)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"ConstructorFragment",(function(){return _})),n.d(t,"EventFragment",(function(){return y})),n.d(t,"Fragment",(function(){return b})),n.d(t,"FunctionFragment",(function(){return k})),n.d(t,"ParamType",(function(){return h})),n.d(t,"FormatTypes",(function(){return d})),n.d(t,"AbiCoder",(function(){return ae})),n.d(t,"defaultAbiCoder",(function(){return se})),n.d(t,"Interface",(function(){return me})),n.d(t,"Indexed",(function(){return pe})),n.d(t,"checkResultErrors",(function(){return M})),n.d(t,"LogDescription",(function(){return fe})),n.d(t,"TransactionDescription",(function(){return de}));var r=n(851),i=n(61),o=n(36);const a=new o.a("abi/5.0.7"),s={};let c={calldata:!0,memory:!0,storage:!0},l={calldata:!0,memory:!0};function u(e,t){if("bytes"===e||"string"===e){if(c[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&l[t])return!0;return(c[t]||"payable"===t)&&a.throwArgumentError("invalid modifier","name",t),!1}function f(e,t){for(let n in t)Object(i.c)(e,n,t[n])}const d=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),p=new RegExp(/^(.*)\[([0-9]*)\]$/);class h{constructor(e,t){e!==s&&a.throwError("use fromString",o.a.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),f(this,t);let n=this.type.match(p);f(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:h.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=d.sighash),d[e]||a.throwArgumentError("invalid format type","format",e),e===d.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map(t=>JSON.parse(t.format(e)))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==d.sighash&&(t+=this.type),t+="("+this.components.map(t=>t.format(e)).join(e===d.full?", ":",")+")"):t+=this.type,e!==d.sighash&&(!0===this.indexed&&(t+=" indexed"),e===d.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?h.fromString(e,t):h.fromObject(e)}static fromObject(e){return h.isParamType(e)?e:new h(s,{name:e.name||null,type:x(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(h.fromObject):null})}static fromString(e,t){return function(e){return h.fromObject({name:e.name,type:e.type,indexed:e.indexed,components:e.components})}(function(e,t){let n=e;function r(t){a.throwArgumentError("unexpected character at position "+t,"param",e)}function i(e){let n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let n=0;n<e.length;n++){let o=e[n];switch(o){case"(":s.state.allowType&&""===s.type?s.type="tuple":s.state.allowParams||r(n),s.state.allowType=!1,s.type=x(s.type),s.components=[i(s)],s=s.components[0];break;case")":delete s.state,"indexed"===s.name&&(t||r(n),s.indexed=!0,s.name=""),u(s.type,s.name)&&(s.name=""),s.type=x(s.type);let e=s;s=s.parent,s||r(n),delete e.parent,s.state.allowParams=!1,s.state.allowName=!0,s.state.allowArray=!0;break;case",":delete s.state,"indexed"===s.name&&(t||r(n),s.indexed=!0,s.name=""),u(s.type,s.name)&&(s.name=""),s.type=x(s.type);let a=i(s.parent);s.parent.components.push(a),delete s.parent,s=a;break;case" ":s.state.allowType&&""!==s.type&&(s.type=x(s.type),delete s.state.allowType,s.state.allowName=!0,s.state.allowParams=!0),s.state.allowName&&""!==s.name&&("indexed"===s.name?(t||r(n),s.indexed&&r(n),s.indexed=!0,s.name=""):u(s.type,s.name)?s.name="":s.state.allowName=!1);break;case"[":s.state.allowArray||r(n),s.type+=o,s.state.allowArray=!1,s.state.allowName=!1,s.state.readArray=!0;break;case"]":s.state.readArray||r(n),s.type+=o,s.state.readArray=!1,s.state.allowArray=!0,s.state.allowName=!0;break;default:s.state.allowType?(s.type+=o,s.state.allowParams=!0,s.state.allowArray=!0):s.state.allowName?(s.name+=o,delete s.state.allowArray):s.state.readArray?s.type+=o:r(n)}}return s.parent&&a.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===s.name?(t||r(n.length-7),s.indexed&&r(n.length-7),s.indexed=!0,s.name=""):u(s.type,s.name)&&(s.name=""),o.type=x(o.type),o}(e,!!t))}static isParamType(e){return!(null==e||!e._isParamType)}}function m(e,t){return function(e){e=e.trim();let t=[],n="",r=0;for(let i=0;i<e.length;i++){let o=e[i];","===o&&0===r?(t.push(n),n=""):(n+=o,"("===o?r++:")"===o&&(r--,-1===r&&a.throwArgumentError("unbalanced parenthesis","value",e)))}n&&t.push(n);return t}(e).map(e=>h.fromString(e,t))}class b{constructor(e,t){e!==s&&a.throwError("use a static from method",o.a.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),f(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return b.isFragment(e)?e:"string"==typeof e?b.fromString(e):b.fromObject(e)}static fromObject(e){if(b.isFragment(e))return e;switch(e.type){case"function":return k.fromObject(e);case"event":return y.fromObject(e);case"constructor":return _.fromObject(e);case"fallback":case"receive":return null}return a.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?y.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?k.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?_.fromString(e.trim()):a.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class y extends b{format(e){if(e||(e=d.sighash),d[e]||a.throwArgumentError("invalid format type","format",e),e===d.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==d.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===d.full?", ":",")+") ",e!==d.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?y.fromString(e):y.fromObject(e)}static fromObject(e){if(y.isEventFragment(e))return e;"event"!==e.type&&a.throwArgumentError("invalid event object","value",e);const t={name:O(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(h.fromObject):[],type:"event"};return new y(s,t)}static fromString(e){let t=e.match(E);t||a.throwArgumentError("invalid event string","value",e);let n=!1;return t[3].split(" ").forEach(e=>{switch(e.trim()){case"anonymous":n=!0;break;case"":break;default:a.warn("unknown modifier: "+e)}}),y.fromObject({name:t[1].trim(),anonymous:n,inputs:m(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function g(e,t){t.gas=null;let n=e.split("@");return 1!==n.length?(n.length>2&&a.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||a.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=r.a.from(n[1]),n[0]):e}function v(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach(e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}})}function w(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&a.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&a.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||a.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&a.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&a.throwArgumentError("unable to determine stateMutability","value",e),t}class _ extends b{format(e){if(e||(e=d.sighash),d[e]||a.throwArgumentError("invalid format type","format",e),e===d.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e)))});e===d.sighash&&a.throwError("cannot format a constructor for sighash",o.a.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map(t=>t.format(e)).join(e===d.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?_.fromString(e):_.fromObject(e)}static fromObject(e){if(_.isConstructorFragment(e))return e;"constructor"!==e.type&&a.throwArgumentError("invalid constructor object","value",e);let t=w(e);t.constant&&a.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(h.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?r.a.from(e.gas):null};return new _(s,n)}static fromString(e){let t={type:"constructor"},n=(e=g(e,t)).match(E);return n&&"constructor"===n[1].trim()||a.throwArgumentError("invalid constructor string","value",e),t.inputs=m(n[2].trim(),!1),v(n[3].trim(),t),_.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class k extends _{format(e){if(e||(e=d.sighash),d[e]||a.throwArgumentError("invalid format type","format",e),e===d.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payble:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(t=>JSON.parse(t.format(e))),ouputs:this.outputs.map(t=>JSON.parse(t.format(e)))});let t="";return e!==d.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map(t=>t.format(e)).join(e===d.full?", ":",")+") ",e!==d.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map(t=>t.format(e)).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?k.fromString(e):k.fromObject(e)}static fromObject(e){if(k.isFunctionFragment(e))return e;"function"!==e.type&&a.throwArgumentError("invalid function object","value",e);let t=w(e);const n={type:e.type,name:O(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(h.fromObject):[],outputs:e.outputs?e.outputs.map(h.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?r.a.from(e.gas):null};return new k(s,n)}static fromString(e){let t={type:"function"},n=(e=g(e,t)).split(" returns ");n.length>2&&a.throwArgumentError("invalid function string","value",e);let r=n[0].match(E);if(r||a.throwArgumentError("invalid function signature","value",e),t.name=r[1].trim(),t.name&&O(t.name),t.inputs=m(r[2],!1),v(r[3].trim(),t),n.length>1){let r=n[1].match(E);""==r[1].trim()&&""==r[3].trim()||a.throwArgumentError("unexpected tokens","value",e),t.outputs=m(r[2],!1)}else t.outputs=[];return k.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function x(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const S=new RegExp("^[A-Za-z_][A-Za-z0-9_]*$");function O(e){return e&&e.match(S)||a.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const E=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");var T=n(17);const A=new o.a("abi/5.0.7");function M(e){const t=[],n=function(e,r){if(Array.isArray(r))for(let i in r){const o=e.slice();o.push(i);try{n(o,r[i])}catch(e){t.push({path:o,error:e})}}};return n([],e),t}class I{constructor(e,t,n,r){this.name=e,this.type=t,this.localName=n,this.dynamic=r}_throwError(e,t){A.throwArgumentError(e,this.localName,t)}}class P{constructor(e){Object(i.c)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return Object(T.c)(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(Object(T.b)(e._data))}writeBytes(e){let t=Object(T.a)(e);const n=t.length%this.wordSize;return n&&(t=Object(T.b)([t,this._padding.slice(n)])),this._writeData(t)}_getValue(e){let t=Object(T.a)(r.a.from(e));return t.length>this.wordSize&&A.throwError("value out-of-bounds",o.a.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(T.b)([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class C{constructor(e,t,n,r){Object(i.c)(this,"_data",Object(T.a)(e)),Object(i.c)(this,"wordSize",t||32),Object(i.c)(this,"_coerceFunc",n),Object(i.c)(this,"allowLoose",r),this._offset=0}get data(){return Object(T.g)(this._data)}get consumed(){return this._offset}static coerce(e,t){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):C.coerce(e,t)}_peekBytes(e,t,n){let r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:A.throwError("data out-of-bounds",o.a.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}subReader(e){return new C(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}readValue(){return r.a.from(this.readBytes(this.wordSize))}}var j=n(418);class D extends I{constructor(e){super("address","address",e,!1)}encode(e,t){try{Object(j.a)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}decode(e){return Object(j.a)(Object(T.f)(e.readValue().toHexString(),20))}}class R extends I{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const N=new o.a("abi/5.0.7");function B(e,t,n){let r=null;if(Array.isArray(n))r=n;else if(n&&"object"==typeof n){let e={};r=t.map(t=>{const r=t.localName;return r||N.throwError("cannot encode object for signature with missing names",o.a.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]&&N.throwError("cannot encode object for signature with duplicate names",o.a.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:n}),e[r]=!0,n[r]})}else N.throwArgumentError("invalid tuple value","tuple",n);t.length!==r.length&&N.throwArgumentError("types/value length mismatch","tuple",n);let i=new P(e.wordSize),a=new P(e.wordSize),s=[];t.forEach((e,t)=>{let n=r[t];if(e.dynamic){let t=a.length;e.encode(a,n);let r=i.writeUpdatableValue();s.push(e=>{r(e+t)})}else e.encode(i,n)}),s.forEach(e=>{e(i.length)});let c=e.appendWriter(i);return c+=e.appendWriter(a),c}function L(e,t){let n=[],r=e.subReader(0);t.forEach(t=>{let i=null;if(t.dynamic){let n=e.readValue(),a=r.subReader(n.toNumber());try{i=t.decode(a)}catch(e){if(e.code===o.a.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(e){if(e.code===o.a.errors.BUFFER_OVERRUN)throw e;i=e,i.baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&n.push(i)});const i=t.reduce((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e},{});t.forEach((e,t)=>{let r=e.localName;if(!r||1!==i[r])return;if("length"===r&&(r="_length"),null!=n[r])return;const o=n[t];o instanceof Error?Object.defineProperty(n,r,{get:()=>{throw o}}):n[r]=o});for(let e=0;e<n.length;e++){const t=n[e];t instanceof Error&&Object.defineProperty(n,e,{get:()=>{throw t}})}return Object.freeze(n)}class U extends I{constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),this.coder=e,this.length=t}encode(e,t){Array.isArray(t)||this._throwError("expected array value",t);let n=this.length;-1===n&&(n=t.length,e.writeValue(t.length)),N.checkArgumentCount(t.length,n,"coder array"+(this.localName?" "+this.localName:""));let r=[];for(let e=0;e<t.length;e++)r.push(this.coder);return B(e,r,t)}decode(e){let t=this.length;-1===t&&(t=e.readValue().toNumber());let n=[];for(let e=0;e<t;e++)n.push(new R(this.coder));return e.coerce(this.name,L(e,n))}}class F extends I{constructor(e){super("bool","bool",e,!1)}encode(e,t){return e.writeValue(t?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class q extends I{constructor(e,t){super(e,e,t,!0)}encode(e,t){t=Object(T.a)(t);let n=e.writeValue(t.length);return n+=e.writeBytes(t),n}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class z extends q{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,Object(T.g)(super.decode(e)))}}class V extends I{constructor(e,t){let n="bytes"+String(e);super(n,n,t,!1),this.size=e}encode(e,t){let n=Object(T.a)(t);return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}decode(e){return e.coerce(this.name,Object(T.g)(e.readBytes(this.size)))}}class H extends I{constructor(e){super("null","",e,!1)}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}var $=n(1561);class K extends I{constructor(e,t,n){const r=(t?"int":"uint")+8*e;super(r,r,n,!1),this.size=e,this.signed=t}encode(e,t){let n=r.a.from(t),i=$.a.mask(8*e.wordSize);if(this.signed){let e=i.mask(8*this.size-1);(n.gt(e)||n.lt(e.add($.c).mul($.b)))&&this._throwError("value out-of-bounds",t)}else(n.lt($.d)||n.gt(i.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return n=n.toTwos(8*this.size).mask(8*this.size),this.signed&&(n=n.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(n)}decode(e){let t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}const W=new o.a("strings/5.0.7");var G,J;function Q(e,t,n,r,i){if(e===J.BAD_PREFIX||e===J.UNEXPECTED_CONTINUE){let e=0;for(let r=t+1;r<n.length&&n[r]>>6==2;r++)e++;return e}return e===J.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(G||(G={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(J||(J={}));const Y=Object.freeze({error:function(e,t,n,r,i){return W.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:Q,replace:function(e,t,n,r,i){return e===J.OVERLONG?(r.push(i),0):(r.push(65533),Q(e,t,n))}});function Z(e,t){null==t&&(t=Y.error),e=Object(T.a)(e);const n=[];let r=0;for(;r<e.length;){const i=e[r++];if(i>>7==0){n.push(i);continue}let o=null,a=null;if(192==(224&i))o=1,a=127;else if(224==(240&i))o=2,a=2047;else{if(240!=(248&i)){r+=t(128==(192&i)?J.UNEXPECTED_CONTINUE:J.BAD_PREFIX,r-1,e,n);continue}o=3,a=65535}if(r-1+o>=e.length){r+=t(J.OVERRUN,r-1,e,n);continue}let s=i&(1<<8-o-1)-1;for(let i=0;i<o;i++){let i=e[r];if(128!=(192&i)){r+=t(J.MISSING_CONTINUE,r,e,n),s=null;break}s=s<<6|63&i,r++}null!==s&&(s>1114111?r+=t(J.OUT_OF_RANGE,r-1-o,e,n,s):s>=55296&&s<=57343?r+=t(J.UTF16_SURROGATE,r-1-o,e,n,s):s<=a?r+=t(J.OVERLONG,r-1-o,e,n,s):n.push(s))}return n}function X(e,t=G.current){t!=G.current&&(W.checkNormalize(),e=e.normalize(t));let n=[];for(let t=0;t<e.length;t++){const r=e.charCodeAt(t);if(r<128)n.push(r);else if(r<2048)n.push(r>>6|192),n.push(63&r|128);else if(55296==(64512&r)){t++;const i=e.charCodeAt(t);if(t>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&r)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(r>>12|224),n.push(r>>6&63|128),n.push(63&r|128)}return Object(T.a)(n)}function ee(e,t){return Z(e,t).map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))).join("")}class te extends q{constructor(e){super("string",e)}encode(e,t){return super.encode(e,X(t))}decode(e){return ee(super.decode(e))}}class ne extends I{constructor(e,t){let n=!1;const r=[];e.forEach(e=>{e.dynamic&&(n=!0),r.push(e.type)});super("tuple","tuple("+r.join(",")+")",t,n),this.coders=e}encode(e,t){return B(e,this.coders,t)}decode(e){return e.coerce(this.name,L(e,this.coders))}}const re=new o.a("abi/5.0.7"),ie=new RegExp(/^bytes([0-9]*)$/),oe=new RegExp(/^(u?int)([0-9]*)$/);class ae{constructor(e){re.checkNew(new.target,ae),Object(i.c)(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new D(e.name);case"bool":return new F(e.name);case"string":return new te(e.name);case"bytes":return new z(e.name);case"array":return new U(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new ne((e.components||[]).map(e=>this._getCoder(e)),e.name);case"":return new H(e.name)}let t=e.type.match(oe);if(t){let n=parseInt(t[2]||"256");return(0===n||n>256||n%8!=0)&&re.throwArgumentError("invalid "+t[1]+" bit length","param",e),new K(n/8,"int"===t[1],e.name)}if(t=e.type.match(ie),t){let n=parseInt(t[1]);return(0===n||n>32)&&re.throwArgumentError("invalid bytes length","param",e),new V(n,e.name)}return re.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new C(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new P(this._getWordSize())}encode(e,t){e.length!==t.length&&re.throwError("types/values length mismatch",o.a.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const n=e.map(e=>this._getCoder(h.from(e))),r=new ne(n,"_"),i=this._getWriter();return r.encode(i,t),i.data}decode(e,t,n){const r=e.map(e=>this._getCoder(h.from(e)));return new ne(r,"_").decode(this._getReader(Object(T.a)(t),n))}}const se=new ae;var ce=n(216);function le(e){return Object(ce.a)(X(e))}const ue=new o.a("abi/5.0.7");class fe extends i.a{}class de extends i.a{}class pe extends i.a{static isIndexed(e){return!(!e||!e._isIndexed)}}function he(e,t){const n=new Error("deferred error during ABI decoding triggered accessing "+e);return n.error=t,n}class me{constructor(e){ue.checkNew(new.target,me);let t=[];t="string"==typeof e?JSON.parse(e):e,Object(i.c)(this,"fragments",t.map(e=>b.from(e)).filter(e=>null!=e)),Object(i.c)(this,"_abiCoder",Object(i.d)(new.target,"getAbiCoder")()),Object(i.c)(this,"functions",{}),Object(i.c)(this,"errors",{}),Object(i.c)(this,"events",{}),Object(i.c)(this,"structs",{}),this.fragments.forEach(e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void ue.warn("duplicate definition - constructor"):void Object(i.c)(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;default:return}let n=e.format();t[n]?ue.warn("duplicate definition - "+n):t[n]=e}),this.deploy||Object(i.c)(this,"deploy",_.from({payable:!1,type:"constructor"})),Object(i.c)(this,"_isInterface",!0)}format(e){e||(e=d.full),e===d.sighash&&ue.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map(t=>t.format(e));return e===d.json?JSON.stringify(t.map(e=>JSON.parse(e))):t}static getAbiCoder(){return se}static getAddress(e){return Object(j.a)(e)}static getSighash(e){return Object(T.e)(le(e.format()),0,4)}static getEventTopic(e){return le(e.format())}getFunction(e){if(Object(T.j)(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];ue.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.functions).filter(e=>e.split("(")[0]===t);return 0===n.length?ue.throwArgumentError("no matching function","name",t):n.length>1&&ue.throwArgumentError("multiple matching functions","name",t),this.functions[n[0]]}const t=this.functions[k.fromString(e).format()];return t||ue.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(Object(T.j)(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];ue.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),n=Object.keys(this.events).filter(e=>e.split("(")[0]===t);return 0===n.length?ue.throwArgumentError("no matching event","name",t):n.length>1&&ue.throwArgumentError("multiple matching events","name",t),this.events[n[0]]}const t=this.events[y.fromString(e).format()];return t||ue.throwArgumentError("no matching event","signature",e),t}getSighash(e){return"string"==typeof e&&(e=this.getFunction(e)),Object(i.d)(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),Object(i.d)(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));const n=Object(T.a)(t);return Object(T.g)(n.slice(0,4))!==this.getSighash(e)&&ue.throwArgumentError(`data signature does not match function ${e.name}.`,"data",Object(T.g)(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(T.g)(Object(T.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let n=Object(T.a)(t),r=null,i=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(e){}break;case 4:"0x08c379a0"===Object(T.g)(n.slice(0,4))&&(i="Error(string)",r=this._abiCoder.decode(["string"],n.slice(4))[0])}return ue.throwError("call revert exception",o.a.errors.CALL_EXCEPTION,{method:e.format(),errorSignature:i,errorArgs:[r],reason:r})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Object(T.g)(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&ue.throwError("too many arguments for "+e.format(),o.a.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let n=[];e.anonymous||n.push(this.getEventTopic(e));const r=(e,t)=>"string"===e.type?le(t):"bytes"===e.type?Object(ce.a)(Object(T.g)(t)):("address"===e.type&&this._abiCoder.encode(["address"],[t]),Object(T.f)(Object(T.g)(t),32));for(t.forEach((t,i)=>{let o=e.inputs[i];o.indexed?null==t?n.push(null):"array"===o.baseType||"tuple"===o.baseType?ue.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?n.push(t.map(e=>r(o,e))):n.push(r(o,t)):null!=t&&ue.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)});n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const n=[],r=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&ue.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((e,o)=>{const a=t[o];if(e.indexed)if("string"===e.type)n.push(le(a));else if("bytes"===e.type)n.push(Object(ce.a)(a));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(this._abiCoder.encode([e.type],[a]))}else r.push(e),i.push(a)}),{data:this._abiCoder.encode(r,i),topics:n}}decodeEventLog(e,t,n){if("string"==typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){let t=this.getEventTopic(e);Object(T.j)(n[0],32)&&n[0].toLowerCase()===t||ue.throwError("fragment/topic mismatch",o.a.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:n[0]}),n=n.slice(1)}let r=[],i=[],a=[];e.inputs.forEach((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(h.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(r.push(e),a.push(!1)):(i.push(e),a.push(!1))});let s=null!=n?this._abiCoder.decode(r,Object(T.b)(n)):null,c=this._abiCoder.decode(i,t,!0),l=[],u=0,f=0;e.inputs.forEach((e,t)=>{if(e.indexed)if(null==s)l[t]=new pe({_isIndexed:!0,hash:null});else if(a[t])l[t]=new pe({_isIndexed:!0,hash:s[f++]});else try{l[t]=s[f++]}catch(e){l[t]=e}else try{l[t]=c[u++]}catch(e){l[t]=e}if(e.name&&null==l[e.name]){const n=l[t];n instanceof Error?Object.defineProperty(l,e.name,{get:()=>{throw he("property "+JSON.stringify(e.name),n)}}):l[e.name]=n}});for(let e=0;e<l.length;e++){const t=l[e];t instanceof Error&&Object.defineProperty(l,e,{get:()=>{throw he("index "+e,t)}})}return Object.freeze(l)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new de({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:r.a.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new fe({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}static isInterface(e){return!(!e||!e._isInterface)}}},function(e){e.exports=JSON.parse('{"main.account.chart.total-balance":"총 자산","main.account.chart.available-balance":"전송 가능한 자산","main.account.chart.staked-balance":"스테이킹된 자산","main.account.button.deposit":"입금","main.account.button.send":"보내기","main.account.tooltip.no-asset":"계정에 자산이 없습니다. 자산을 입금해주세요.","main.modal.select-account.title":"계정을 선택하세요","main.modal.select-account.button.select":"계정 선택","main.modal.select-account.label.address":"주소","main.modal.select-account.label.balance":"잔고","main.modal.select-account.label.sequence":"보낸 트랜잭션","main.stake.message.pending-staking-reward":"스테이킹 보상","main.stake.message.stake":"스테이킹","main.stake.message.earning":"연간 {apr}%의 이자를 받으세요","main.stake.button.claim-rewards":"보상 받기","main.stake.button.stake":"스테이킹","main.stake.tooltip.no-asset":"계정에 자산이 없습니다. 자산을 입금해주세요.","main.ibc.transfer.title":"IBC 전송","main.ibc.transfer.paragraph":"토큰을 IBC를 통해 전송하세요","main.ibc.transfer.button":"전송","main.address.copied":"주소가 복사되었습니다","main.menu.settings":"설정","main.menu.address-book":"주소록","main.menu.token-list":"토큰 목록","main.menu.sign-out":"로그아웃","main.menu.footer.github":"깃허브를 확인하세요","main.update-chain.confirm.paragraph":"체인의 정보가 변했습니다. 체인이 업데이트되었는지 확인하세요.","main.update-chain.confirm.yes":"진행","main.update-chain.confirm.no":"무시","setting.language":"언어","setting.language.automatic":"자동 (브라우저 언어)","setting.language.automatic-with-language":"자동 ({language})","setting.fiat":"통화","setting.fiat.automatic":"자동","setting.fiat.automatic-with-fiat":"자동 ({fiat})","setting.connections":"연결 관리","setting.connections.paragraph":"지갑에 연결을 허용한 웹사이트를 관리합니다","setting.connections.confirm.delete-connection.title":"연결 삭제","setting.connections.confirm.delete-connection.paragraph":"이 연결을 삭제하시겠습니까?","setting.address-book.button.add":"주소 추가","setting.address-book.add-address.title":"주소 추가","setting.address-book.edit-address.title":"주소 편집","setting.address-book.name":"이름","setting.address-book.address":"주소","setting.address-book.address.error.invalid":"잘못된 주소입니다","setting.address-book.memo":"기본 메모 (선택사항)","setting.address-book.confirm.delete-address.title":"주소 삭제","setting.address-book.confirm.delete-address.paragraph":"이 주소를 삭제하시겠습니까?","setting.address-book.button.save":"저장","setting.credit":"도움을 주신 분들","setting.keyring":"계정 선택","setting.keyring.button.add":"계정 추가","setting.keyring.unnamed-account":"케플러 계정","setting.keyring.selected-account":"(선택됨)","setting.keyring.change.password":"비밀번호 재설정","setting.keyring.change.name":"계정 이름 변경","setting.keyring.change.previous-name":"이전 계정 이름","setting.keyring.change.input.name":"새로운 계정 이름","setting.keyring.change.input.name.error.required":"계정 이름을 입력하세요","setting.keyring.change.input.name.error.invalid":"계정 이름이 유효하지 않습니다","setting.keyring.change.name.button.save":"저장","setting.export":"니모닉 시드 보기","setting.export.private-key":"개인키 보기","setting.export.warning":"진행하려면 패스워드를 입력하세요","setting.export.input.password":"비밀번호","setting.export.input.password.error.required":"비밀번호를 입력하세요","setting.export.input.password.error.invalid":"잘못된 비밀번호입니다","setting.export.button.confirm":"확인","setting.clear":"계정 삭제","setting.clear.alert":"계정을 삭제하기 전에 니모닉 시드를 가지고 있는지 확인하세요","setting.clear.button.back-up":"니모닉 시드 보기","setting.clear.warning":"계정을 삭제하면 케플러에서 계정에 접근할 수 없습니다","setting.clear.input.password":"비밀번호","setting.clear.input.password.error.required":"비밀번호를 입력하세요","setting.clear.input.password.error.invalid":"잘못된 비밀번호입니다","setting.clear.button.confirm":"확인","setting.token.add":"토큰 추가","setting.token.add.contract-address":"컨트랙트 주소","setting.token.add.name":"이름","setting.token.add.symbol":"심볼","setting.token.add.decimals":"소수점 자릿수","setting.token.add.button.submit":"등록","setting.token.add.secret20.checkbox.import-viewing-key":"(고급) 뷰잉키를 이미 가지고 계십니까?","setting.token.add.secret20.checkbox.use-suggested-viewing-key":"웹페이지가 제안한 뷰잉키를 사용하시겠습니까?","setting.token.add.secret20.viewing-key":"뷰잉 키","setting.token.manage.confirm.remove-token":"토큰을 비활성화 하시겠습니까? 다시 등록할 때까지 잔고를 보거나 토큰을 전송할 수 없습니다.","setting.token.manage.notification.viewing-key.copy":"뷰잉키가 복사되었습니다","register.name":"계정 이름","register.name.error.required":"계정 이름을 입력하세요","register.button.back":"뒤로","register.bip44.button.advanced":"고급","register.bip44.input.hd-path":"BIP44 HD 경로","register.bip44.confirm.clear":"고급 옵션을 닫으면 HD 경로가 초기화됩니다. 계속 진행하시겠습니까?","register.intro.button.new-account.title":"계정 생성","register.intro.button.new-account.content":"새로운 니모닉 시드로 계정을 생성하세요","register.intro.button.import-account.title":"기존 계정 불러오기","register.intro.button.import-account.content":"12/24 니모닉 단어를 사용하여 계정 불러오기","register.intro.sub-content":"모든 정보는 기기에 저장됩니다.{br}이 과정은 인터넷 접속을 필요로하지 않습니다.","register.recover.title":"시드를 입력하세요","register.create.title":"니모닉 단어","register.create.toggle.word12":"12 단어","register.create.toggle.word24":"24 단어","register.create.input.password":"새로운 비밀번호 (최소 8자리 이상)","register.create.input.password.error.required":"비밀번호를 입력하세요","register.create.input.password.error.too-short":"비밀번호가 너무 짧습니다","register.create.input.confirm-password":"비밀번호 확인","register.create.input.confirm-password.error.required":"비밀번호를 입력하세요","register.create.input.confirm-password.error.unmatched":"비밀번호가 일치하지 않습니다","register.create.textarea.mnemonic.place-holder":"니모닉 단어 또는 개인키를 입력하세요","register.create.textarea.mnemonic.error.invalid":"잘못된 니모닉 단어입니다","register.create.textarea.mnemonic.error.too-short":"니모닉 단어가 너무 적습니다","register.create.warning.keep-your-mnemonic.header":"니모닉 단어를 안전하게 보관하세요","register.create.warning.keep-your-mnemonic.paragraph1":"다른 사람이 니모닉 단어를 알게되면 자산을 뺏길 수 있습니다","register.create.warning.keep-your-mnemonic.paragraph2":"니모닉 단어를 잃어버리면 계정을 복구할 수 없습니다","register.import.textarea.private-key.error.invalid":"잘못된 개인키 입니다","register.import.textarea.private-key.error.invalid-length":"잘못된 길이의 개인키 입니다","register.create.button.next":"다음","register.ledger.title":"렛저 계정 불러오기","register.verify.button.register":"등록","register.welcome.title":"준비 완료!","register.welcome.content":"확장 프로그램을 열고 로그인하여 인터체인 여행을 시작하세요.","register.welcome.button.done":"완료","chain.suggested.title":"체인 추가 요청","chain.suggested.paragraph":"<b>{host}</b>가 <b>{chainId}</b> 블록체인을 케플러에 추가하길 원합니다.","chain.suggested.waring.experiment.title":"실험적 기능","chain.suggested.waring.experiment.paragraph":"용감한 우주 여행자를 위한 기능입니다","chain.suggested.button.approve":"허락","chain.suggested.button.reject":"거부","chain.remove.confirm.paragraph":"{chainName}를 삭제하시겠습니까?","access.title":"접근 요청","access.paragraph":"<b>{host}</b>가 <b>{chainId}</b>에 접근을 요청합니다.","access.permission.title":"이 웹사이트는 다음과 같은 권한을 가질 수 있습니다","access.permission.account":"계정의 주소를 알 수 있습니다","access.permission.tx-request":"트랜잭션 서명을 요청할 수 있습니다","access.permission.secret":"메세지를 암호화/복호화할 수 있습니다","access.button.approve":"허락","access.button.reject":"거부","lock.input.password":"비밀번호","lock.input.password.error.required":"비밀번호를 입력하세요","lock.input.password.error.invalid":"잘못된 비밀번호입니다","lock.button.unlock":"잠금 해제","send.input.recipient":"받는 주소","send.input.recipient.error.invalid":"잘못된 주소입니다","send.input.recipient.error.ens-invalid-name":"잘못된 ENS 이름 형식입니다","send.input.recipient.error.ens-not-found":"ENS 이름을 찾을 수 없습니다","sned.input.recipient.error.ens-unknown-error":"ENS로부터 주소를 받는데 실패했습니다","send.input.recipient.error.ens-not-supported":"이 체인에는 ENS가 지원되지 않습니다","send.input.amount":"수량","send.input.amount.error.insufficient":"자산이 부족합니다","send.input.memo":"메모 (선택사항)","send.input.fee":"수수료","send.input.fee.error.required":"수수료를 입력하세요","send.input.gas":"가스","send.input-button.balance":"잔고","send.button.send":"보내기","ibc.transfer.next":"다음","ibc.transfer.submit":"보내기","fee.input.gas":"가스","fee.input.memo":"메모 (선택사항)","fee.input.fee":"수수료","fee.button.set":"수수료 설정","sign.tab.details":"자세히","sign.tab.data":"데이터","sign.list.messages.label":"메세지","sign.info.fee":"수수료","sign.info.memo":"메모","sign.info.warning.empty-memo":"(빈 메모)","sign.info.fee.override":"수수료 변경","sign.info.gas":"가스","sign.button.approve":"허락","sign.button.reject":"거부","sign.button.confirm-ledger":"렛저를 확인하세요","sign.list.message.cosmos-sdk/MsgSend.title":"보내기","sign.list.message.cosmos-sdk/MsgSend.content":"<b>{recipient}</b>가 <b>{amount}</b>를 받을 것입니다","sign.list.message.cosmos-sdk/MsgTransfer.title":"IBC 전송","sign.list.message.cosmos-sdk/MsgTransfer.content":"채널 <b>{channel}</b>의 <b>{receiver}</b>가 <b>{amount}</b>를 받을 것입니다","sign.list.message.cosmos-sdk/MsgDelegate.title":"위임","sign.list.message.cosmos-sdk/MsgDelegate.content":"<b>{validator}</b>에게 <b>{amount}</b>를 위임합니다","sign.list.message.cosmos-sdk/MsgUndelegate.title":"위임 해제","sign.list.message.cosmos-sdk/MsgUndelegate.content":"<b>{validator}</b>로부터 <b>{amount}</b>를 위임해제합니다{br}자산은 언본딩 기간 이후 지급됩니다","sign.list.message.cosmos-sdk/MsgBeginRedelegate.title":"재위임","sign.list.message.cosmos-sdk/MsgBeginRedelegate.content":"<b>{fromValidator}</b>로부터 <b>{toValidator}</b>에게 <b>{amount}</b>를 재위임합니다","sign.list.message.cosmos-sdk/MsgWithdrawDelegatorReward.title":"스테이킹 보상 요청","sign.list.message.cosmos-sdk/MsgWithdrawDelegatorReward.content":"<b>{validator}</b>에게 위임된 스테이킹 보상을 요청합니다","sign.list.message.cosmos-sdk/MsgVote.title":"투표","sign.list.message.cosmos-sdk/MsgVote.content":"<b>제안 {id}</b>에 <b>{option}</b>를 투표합니다","sign.list.message.wasm.button.details":"자세히","sign.list.message.wasm.button.close":"닫기","sign.list.message.wasm/MsgInstantiateContract.title":"Wasm 컨트랙트 활성화","sign.list.message.wasm/MsgInstantiateContract.content":"<only-funds-exist><b>{funds}</b>를 전송하여 </only-funds-exist><only-admin-exist><b>{admin}</b>을 관리자 계정으로 가지는 </only-admin-exist><b>{label}</b> 라벨의 Code ID <b>{codeId}</b> 컨트랙트를 활성화합니다","sign.list.message.wasm/MsgExecuteContract.title":"Wasm 컨트랙트 실행 요청","sign.list.message.wasm/MsgExecuteContract.content":"<only-sent-exist><b>{sent}</b>를 전송하며 </only-sent-exist><b>{address}</b> 컨트랙트를 실행합니다","sign.list.message.wasm/MsgExecuteContract.content.badge.secret-wasm":"암호화됨","sign.list.message.wasm/MsgExecuteContract.content.warning.secret-wasm.failed-decryption":"메세지를 복호화하지 못 했습니다. 케플러를 통하지 않고 암호화되었을 수 있습니다.","sign.list.message.cyber/Link.title":"Cyberlink","sign.list.message.cyber/Link.content":"<b>{address}</b>가 링크<b>{link}</b>를 생성합니다","ledger.step1":"1 단계","ledger.step1.paragraph":"렛저를 연결하고 잠금을 해제하세요","ledger.step2":"2 단계","ledger.step2.paragraph":"렛저에서 Cosmos 앱을 실행하세요","ledger.option.webhid.checkbox":"WebUSB 대신 WebHID를 사용합니다","ledger.option.webhid.warning":"이 링크 {link}를 복사하고 브라우저 주소 줄에 붙여넣으세요. 그리고 ‘experimental web platform features’ 플래그를 활성화하세요.","ledger.option.webhid.link.copied":"링크가 복사되었습니다","ledger.button.next":"다음","ledger.confirm.waiting.paragraph":"렛저 디바이스에서의 확인을 기다리는 중...","ledger.confirm.success":"성공","ledger.confirm.success.paragraph":"이 페이지는 3초 후 자동으로 닫힙니다","ledger.confirm.rejected":"거부됨","ledger.confirm.rejected.paragraph":"이 페이지는 3초 후 자동으로 닫힙니다","fee-buttons.select.low":"느림","fee-buttons.select.average":"평균","fee-buttons.select.high":"빠름","input.recipient.error.invalid-bech32":"잘못된 주소입니다","input.recipient.error.ens-not-supported":"이 체인에는 ENS가 지원되지 않습니다","input.recipient.error.ens-failed-to-fetch":"ENS로부터 주소를 받는데 실패했습니다","input.amount.error.invalid-number":"잘못된 숫자입니","input.amount.error.is-zero":"0이 아니여야 합니다","input.amount.error.is-negative":"양수여야 합니다","input.amount.error.insufficient":"자산이 부족합니다","input.fee.error.insufficient":"수수료를 낼 충분한 잔고가 없습니다","input.fee.toggle.set-gas":"가스 설정","input.fee.toggle.set-gas.close":"닫기","confirm.yes":"예","confirm.no":"아니요","component.form.coin-input.token.label":"토큰","component.ibc.channel-registrar.chain-selector.label":"도착 체인","component.ibc.channel-registrar.chain-selector.placeholder":"체인을 선택하세요","component.ibc.channel-registrar.chain-selector.button.add":"IBC 전송 채널 추가","component.ibc.channel-registrar.chain-selector.add.channel.label":"채널 ID","component.ibc.channel-registrar.chain-selector.add.channel.placeholder":"채널 ID를 입력하세요","component.ibc.channel-registrar.chain-selector.add.channel.button":"저장"}')},function(e,t,n){(function(t,n){
145 /**
146  * [js-sha3]{@link https://github.com/emn178/js-sha3}
147  *
148  * @version 0.5.7
149  * @author Chen, Yi-Cyuan [emn178@gmail.com]
150  * @copyright Chen, Yi-Cyuan 2015-2016
151  * @license MIT
152  */
153 !function(){"use strict";var r="object"==typeof window?window:{};!r.JS_SHA3_NO_NODE_JS&&"object"==typeof t&&t.versions&&t.versions.node&&(r=n);for(var i=!r.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,o="0123456789abcdef".split(""),a=[0,8,16,24],s=[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],c=[224,256,384,512],l=["hex","buffer","arrayBuffer","array"],u=function(e,t,n){return function(r){return new _(e,t,e).update(r)[n]()}},f=function(e,t,n){return function(r,i){return new _(e,t,i).update(r)[n]()}},d=function(e,t){var n=u(e,t,"hex");n.create=function(){return new _(e,t,e)},n.update=function(e){return n.create().update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=u(e,t,i)}return n},p=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:d},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:d},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var n=f(e,t,"hex");n.create=function(n){return new _(e,t,n)},n.update=function(e,t){return n.create(t).update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=f(e,t,i)}return n}}],h={},m=[],b=0;b<p.length;++b)for(var y=p[b],g=y.bits,v=0;v<g.length;++v){var w=y.name+"_"+g[v];m.push(w),h[w]=y.createMethod(g[v],y.padding)}function _(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}_.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var n,r,i=e.length,o=this.blocks,s=this.byteCount,c=this.blockCount,l=0,u=this.s;l<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<c+1;++n)o[n]=0;if(t)for(n=this.start;l<i&&n<s;++l)o[n>>2]|=e[l]<<a[3&n++];else for(n=this.start;l<i&&n<s;++l)(r=e.charCodeAt(l))<128?o[n>>2]|=r<<a[3&n++]:r<2048?(o[n>>2]|=(192|r>>6)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):r<55296||r>=57344?(o[n>>2]|=(224|r>>12)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++l)),o[n>>2]|=(240|r>>18)<<a[3&n++],o[n>>2]|=(128|r>>12&63)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=o[c],n=0;n<c;++n)u[n]^=o[n];k(u),this.reset=!0}else this.start=n}return this},_.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];k(r)},_.prototype.toString=_.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,a=0,s=0,c="";s<r;){for(a=0;a<t&&s<r;++a,++s)e=n[a],c+=o[e>>4&15]+o[15&e]+o[e>>12&15]+o[e>>8&15]+o[e>>20&15]+o[e>>16&15]+o[e>>28&15]+o[e>>24&15];s%t==0&&(k(n),a=0)}return i&&(e=n[a],i>0&&(c+=o[e>>4&15]+o[15&e]),i>1&&(c+=o[e>>12&15]+o[e>>8&15]),i>2&&(c+=o[e>>20&15]+o[e>>16&15])),c},_.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)c[a]=n[o];a%t==0&&k(n)}return i&&(c[o]=n[o],e=e.slice(0,s)),e},_.prototype.buffer=_.prototype.arrayBuffer,_.prototype.digest=_.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,c=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n==0&&k(r)}return o&&(e=s<<2,t=r[a],o>0&&(c[e]=255&t),o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c};var k=function(e){var t,n,r,i,o,a,c,l,u,f,d,p,h,m,b,y,g,v,w,_,k,x,S,O,E,T,A,M,I,P,C,j,D,R,N,B,L,U,F,q,z,V,H,$,K,W,G,J,Q,Y,Z,X,ee,te,ne,re,ie,oe,ae,se,ce,le,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|c>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|u>>>31),n=o^(u<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(f<<1|d>>>31),n=c^(d<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(p<<1|h>>>31),n=u^(h<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|o>>>31),n=d^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,j=e[45]<<29|e[44]>>>3,D=e[44]<<29|e[45]>>>3,O=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,A=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~y&v,e[1]=b^~g&w,e[10]=O^~T&M,e[11]=E^~A&I,e[20]=R^~B&U,e[21]=N^~L&F,e[30]=$^~W&J,e[31]=K^~G&Q,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=y^~v&_,e[3]=g^~w&k,e[12]=T^~M&P,e[13]=A^~I&C,e[22]=B^~U&q,e[23]=L^~F&z,e[32]=W^~J&Y,e[33]=G^~Q&Z,e[42]=re^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&x,e[5]=w^~k&S,e[14]=M^~P&j,e[15]=I^~C&D,e[24]=U^~q&V,e[25]=F^~z&H,e[34]=J^~Y&X,e[35]=Q^~Z&ee,e[44]=oe^~se&le,e[45]=ae^~ce&ue,e[6]=_^~x&m,e[7]=k^~S&b,e[16]=P^~j&O,e[17]=C^~D&E,e[26]=q^~V&R,e[27]=z^~H&N,e[36]=Y^~X&$,e[37]=Z^~ee&K,e[46]=se^~le&te,e[47]=ce^~ue&ne,e[8]=x^~m&y,e[9]=S^~b&g,e[18]=j^~O&T,e[19]=D^~E&A,e[28]=V^~R&B,e[29]=H^~N&L,e[38]=X^~$&W,e[39]=ee^~K&G,e[48]=le^~te&re,e[49]=ue^~ne&ie,e[0]^=s[r],e[1]^=s[r+1]};if(i)e.exports=h;else for(b=0;b<m.length;++b)r[m[b]]=h[m[b]]}()}).call(this,n(13),n(12))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return z}));var r=n(6),i=n.n(r),o=n(70),a=n.n(o);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;function s(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var c=l;function l(e,t){if(!e)throw new Error(t||"Assertion failed")}l.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var u=s((function(e,t){var n=t;function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}})),f=s((function(e,t){var n=t;n.assert=c,n.toArray=u.toArray,n.zero2=u.zero2,n.toHex=u.toHex,n.encode=u.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<r.length;a++){var s,c=o.andln(i-1);o.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var o,a,s,c=e.andln(3)+r&3,l=t.andln(3)+i&3;if(3===c&&(c=-1),3===l&&(l=-1),0==(1&c))o=0;else o=3!==(s=e.andln(7)+r&7)&&5!==s||2!==l?c:-c;if(n[0].push(o),0==(1&l))a=0;else a=3!==(s=t.andln(7)+i&7)&&5!==s||2!==c?l:-l;n[1].push(a),2*r===o+1&&(r=1-r),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i.a(e,"hex","le")}})),d=f.getNAF,p=f.getJSF,h=f.assert;function m(e,t){this.type=e,this.p=new i.a(t.p,16),this.red=t.prime?i.a.red(t.prime):i.a.mont(this.p),this.zero=new i.a(0).toRed(this.red),this.one=new i.a(1).toRed(this.red),this.two=new i.a(2).toRed(this.red),this.n=t.n&&new i.a(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),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var b=m;function y(e,t){this.curve=e,this.type=t,this.precomputed=null}m.prototype.point=function(){throw new Error("Not implemented")},m.prototype.validate=function(){throw new Error("Not implemented")},m.prototype._fixedNafMul=function(e,t){h(e.precomputed);var n=e._getDoubles(),r=d(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var o=[],a=0;a<r.length;a+=n.step){var s=0;for(t=a+n.step-1;t>=a;t--)s=(s<<1)+r[t];o.push(s)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),u=i;u>0;u--){for(a=0;a<o.length;a++){(s=o[a])===u?l=l.mixedAdd(n.points[a]):s===-u&&(l=l.mixedAdd(n.points[a].neg()))}c=c.add(l)}return c.toP()},m.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=d(t,n,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(t=0;s>=0&&0===o[s];s--)t++;if(s>=0&&t++,a=a.dblp(t),s<0)break;var c=o[s];h(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},m.prototype._wnafMulAdd=function(e,t,n,r,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,c=0,l=0;l<r;l++){var u=(O=t[l])._getNAFPoints(e);o[l]=u.wnd,a[l]=u.points}for(l=r-1;l>=1;l-=2){var f=l-1,h=l;if(1===o[f]&&1===o[h]){var m=[t[f],null,null,t[h]];0===t[f].y.cmp(t[h].y)?(m[1]=t[f].add(t[h]),m[2]=t[f].toJ().mixedAdd(t[h].neg())):0===t[f].y.cmp(t[h].y.redNeg())?(m[1]=t[f].toJ().mixedAdd(t[h]),m[2]=t[f].add(t[h].neg())):(m[1]=t[f].toJ().mixedAdd(t[h]),m[2]=t[f].toJ().mixedAdd(t[h].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=p(n[f],n[h]);c=Math.max(y[0].length,c),s[f]=new Array(c),s[h]=new Array(c);for(var g=0;g<c;g++){var v=0|y[0][g],w=0|y[1][g];s[f][g]=b[3*(v+1)+(w+1)],s[h][g]=0,a[f]=m}}else s[f]=d(n[f],o[f],this._bitLength),s[h]=d(n[h],o[h],this._bitLength),c=Math.max(s[f].length,c),c=Math.max(s[h].length,c)}var _=this.jpoint(null,null,null),k=this._wnafT4;for(l=c;l>=0;l--){for(var x=0;l>=0;){var S=!0;for(g=0;g<r;g++)k[g]=0|s[g][l],0!==k[g]&&(S=!1);if(!S)break;x++,l--}if(l>=0&&x++,_=_.dblp(x),l<0)break;for(g=0;g<r;g++){var O,E=k[g];0!==E&&(E>0?O=a[g][E-1>>1]:E<0&&(O=a[g][-E-1>>1].neg()),_="affine"===O.type?_.mixedAdd(O):_.add(O))}}for(l=0;l<r;l++)a[l]=null;return i?_:_.toP()},m.BasePoint=y,y.prototype.eq=function(){throw new Error("Not implemented")},y.prototype.validate=function(){return this.curve.validate(this)},m.prototype.decodePoint=function(e,t){e=f.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?h(e[e.length-1]%2==0):7===e[0]&&h(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},y.prototype.encodeCompressed=function(e){return this.encode(e,!0)},y.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},y.prototype.encode=function(e,t){return f.encode(this._encode(t),e)},y.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},y.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)},y.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},y.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},y.prototype._getBeta=function(){return null},y.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t};var g=s((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),v=f.assert;function w(e){b.call(this,"short",e),this.a=new i.a(e.a,16).toRed(this.red),this.b=new i.a(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)}g(w,b);var _=w;function k(e,t,n,r){b.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i.a(t,16),this.y=new i.a(n,16),r&&(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 x(e,t,n,r){b.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i.a(0)):(this.x=new i.a(t,16),this.y=new i.a(n,16),this.z=new i.a(r,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}w.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i.a(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i.a(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],v(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i.a(e.a,16),b:new i.a(e.b,16)}})):this._getEndoBasis(n)}}},w.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.a.mont(e),n=new i.a(2).toRed(t).redInvm(),r=n.redNeg(),o=new i.a(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},w.prototype._getEndoBasis=function(e){for(var t,n,r,o,a,s,c,l,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,p=this.n.clone(),h=new i.a(1),m=new i.a(0),b=new i.a(0),y=new i.a(1),g=0;0!==d.cmpn(0);){var v=p.div(d);l=p.sub(v.mul(d)),u=b.sub(v.mul(h));var w=y.sub(v.mul(m));if(!r&&l.cmp(f)<0)t=c.neg(),n=h,r=l.neg(),o=u;else if(r&&2==++g)break;c=l,p=d,d=l,b=h,h=u,y=m,m=w}a=l.neg(),s=u;var _=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},w.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),c=i.mul(n.b),l=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:c.add(l).neg()}},w.prototype.pointFromX=function(e,t){(e=new i.a(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},w.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),r[2*o]=s,r[2*o+1]=c,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var l=this._wnafMulAdd(1,r,i,2*o,n),u=0;u<2*o;u++)r[u]=null,i[u]=null;return l},g(k,b.BasePoint),w.prototype.point=function(e,t,n){return new k(this,e,t,n)},w.prototype.pointFromJSON=function(e,t){return k.fromJSON(this,e,t)},k.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 n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},k.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]},k.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},k.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)+">"},k.prototype.isInfinity=function(){return this.inf},k.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 n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},k.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,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(e){return e=new i.a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},k.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},k.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},k.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))},k.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},k.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},g(x,b.BasePoint),w.prototype.jpoint=function(e,t,n){return new x(this,e,t,n)},x.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},x.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},x.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),f=r.redMul(l),d=c.redSqr().redIAdd(u).redISub(f).redISub(f),p=c.redMul(f.redISub(d)).redISub(o.redMul(u)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,p,h)},x.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),l=c.redMul(a),u=n.redMul(c),f=s.redSqr().redIAdd(l).redISub(u).redISub(u),d=s.redMul(u.redISub(f)).redISub(i.redMul(l)),p=this.z.redMul(a);return this.curve.jpoint(f,d,p)},x.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,n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),l=a.redAdd(a);for(n=0;n<e;n++){var u=o.redSqr(),f=l.redSqr(),d=f.redSqr(),p=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),h=o.redMul(f),m=p.redSqr().redISub(h.redAdd(h)),b=h.redISub(m),y=p.redMul(b);y=y.redIAdd(y).redISub(d);var g=l.redMul(s);n+1<e&&(c=c.redMul(d)),o=m,s=g,l=y}return this.curve.jpoint(o,l.redMul(i),s)},x.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},x.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(a).redISub(a),l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=s.redMul(a.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),p=this.x.redAdd(f).redSqr().redISub(u).redISub(d);p=p.redIAdd(p);var h=u.redAdd(u).redIAdd(u),m=h.redSqr(),b=d.redIAdd(d);b=(b=b.redIAdd(b)).redIAdd(b),e=m.redISub(p).redISub(p),t=h.redMul(p.redISub(e)).redISub(b),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},x.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);e=c;var l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(a.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),p=this.x.redSub(u).redMul(this.x.redAdd(u));p=p.redAdd(p).redIAdd(p);var h=d.redIAdd(d),m=(h=h.redIAdd(h)).redAdd(h);e=p.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(u);var b=f.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),t=p.redMul(h.redISub(e)).redISub(b)}return this.curve.jpoint(e,t,n)},x.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(a),u=s.redSqr().redISub(l.redAdd(l)),f=l.redISub(u),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=s.redMul(f).redISub(d),h=n.redAdd(n).redMul(r);return this.curve.jpoint(u,p,h)},x.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var f=this.x.redMul(s).redISub(u);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(l.redMul(c.redISub(l)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,d,p)},x.prototype.mul=function(e,t){return e=new i.a(e,t),this.curve._wnafMul(this,e)},x.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},x.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},x.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)+">"},x.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var S=s((function(e,t){var n=t;n.base=b,n.short=_,n.mont=null,n.edwards=null})),O=s((function(e,t){var n,r=t,i=f.assert;function o(e){"short"===e.type?this.curve=new S.short(e):"edwards"===e.type?this.curve=new S.edwards(e):this.curve=new S.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,s("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.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("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.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("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.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("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.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"]}),s("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.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"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["9"]}),s("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.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(e){n=void 0}s("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.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function E(e){if(!(this instanceof E))return new E(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"),n=u.toArray(e.nonce,e.nonceEnc||"hex"),r=u.toArray(e.pers,e.persEnc||"hex");c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var T=E;E.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);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(r),this._reseed=1,this.reseedInterval=281474976710656},E.prototype._hmac=function(){return new a.a.hmac(this.hash,this.K)},E.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())},E.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=u.toArray(e,t),n=u.toArray(n,r),c(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},E.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=u.toArray(n,r||"hex"),this._update(n));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(n),this._reseed++,u.encode(o,t)};var A=f.assert;function M(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=M;M.fromPublic=function(e,t,n){return t instanceof M?t:new M(e,{pub:t,pubEnc:n})},M.fromPrivate=function(e,t,n){return t instanceof M?t:new M(e,{priv:t,privEnc:n})},M.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"}},M.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},M.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(e,t){this.priv=new i.a(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?A(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||A(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)},M.prototype.derive=function(e){return e.mul(this.priv).getX()},M.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},M.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},M.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var P=f.assert;function C(e,t){if(e instanceof C)return e;this._importDER(e,t)||(P(e.r&&e.s,"Signature without r or s"),this.r=new i.a(e.r,16),this.s=new i.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var j=C;function D(){this.place=0}function R(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o<r;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function N(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function B(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}C.prototype._importDER=function(e,t){e=f.toArray(e,t);var n=new D;if(48!==e[n.place++])return!1;var r=R(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=R(e,n);if(!1===o)return!1;var a=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var s=R(e,n);if(!1===s)return!1;if(e.length!==s+n.place)return!1;var c=e.slice(n.place,s+n.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new i.a(a),this.s=new i.a(c),this.recoveryParam=null,!0},C.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=N(t),n=N(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];B(r,t.length),(r=r.concat(t)).push(2),B(r,n.length);var i=r.concat(n),o=[48];return B(o,i.length),o=o.concat(i),f.encode(o,e)};var L=function(){throw new Error("unsupported")},U=f.assert;function F(e){if(!(this instanceof F))return new F(e);"string"==typeof e&&(U(O.hasOwnProperty(e),"Unknown curve "+e),e=O[e]),e instanceof O.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 q=F;F.prototype.keyPair=function(e){return new I(this,e)},F.prototype.keyFromPrivate=function(e,t){return I.fromPrivate(this,e,t)},F.prototype.keyFromPublic=function(e,t){return I.fromPublic(this,e,t)},F.prototype.genKeyPair=function(e){e||(e={});for(var t=new T({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||L(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new i.a(2));;){var o=new i.a(t.generate(n));if(!(o.cmp(r)>0))return o.iaddn(1),this.keyFromPrivate(o)}},F.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},F.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new i.a(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),s=e.toArray("be",o),c=new T({hash:this.hash,entropy:a,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),l=this.n.sub(new i.a(1)),u=0;;u++){var f=r.k?r.k(u):new i.a(c.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(l)>=0)){var d=this.g.mul(f);if(!d.isInfinity()){var p=d.getX(),h=p.umod(this.n);if(0!==h.cmpn(0)){var m=f.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var b=(d.getY().isOdd()?1:0)|(0!==p.cmp(h)?2:0);return r.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),b^=1),new j({r:h,s:m,recoveryParam:b})}}}}}},F.prototype.verify=function(e,t,n,r){e=this._truncateToN(new i.a(e,16)),n=this.keyFromPublic(n,r);var o=(t=new j(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),l=c.mul(e).umod(this.n),u=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),u)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(l,n.getPublic(),u)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},F.prototype.recoverPubKey=function(e,t,n,r){U((3&n)===n,"The recovery param is more than two bits"),t=new j(t,r);var o=this.n,a=new i.a(e),s=t.r,c=t.s,l=1&n,u=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");s=u?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var f=t.r.invm(o),d=o.sub(a).mul(f).umod(o),p=c.mul(f).umod(o);return this.g.mulAdd(d,s,p)},F.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new j(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var z=s((function(e,t){var n=t;n.version="6.5.3",n.utils=f,n.rand=function(){throw new Error("unsupported")},n.curve=S,n.curves=O,n.ec=q,n.eddsa=null})).ec}).call(this,n(12))},function(e,t,n){var r=n(37),i=n(1335);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1337);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1342);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}},function(e,t,n){var r=n(1e3),i=n(1362),o=n(1367),a=n(1369),s=n(1370),c=n(1374),l=Date.prototype.getTime;function u(e,t,n){var p=n||{};return!!(p.strict?o(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?p.strict?o(e,t):e==t:function(e,t,n){var o,p;if(typeof e!=typeof t)return!1;if(f(e)||f(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e)!==i(t))return!1;var h=a(e),m=a(t);if(h!==m)return!1;if(h||m)return e.source===t.source&&s(e)===s(t);if(c(e)&&c(t))return l.call(e)===l.call(t);var b=d(e),y=d(t);if(b!==y)return!1;if(b||y){if(e.length!==t.length)return!1;for(o=0;o<e.length;o++)if(e[o]!==t[o])return!1;return!0}if(typeof e!=typeof t)return!1;try{var g=r(e),v=r(t)}catch(e){return!1}if(g.length!==v.length)return!1;for(g.sort(),v.sort(),o=g.length-1;o>=0;o--)if(g[o]!=v[o])return!1;for(o=g.length-1;o>=0;o--)if(p=g[o],!u(e[p],t[p],n))return!1;return!0}(e,t,p))}function f(e){return null==e}function d(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}e.exports=u},function(e,t,n){var r=n(37),i=n(1379);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=24)}([function(e,t){e.exports=n(878)},function(e,t){e.exports=n(879)},function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return u}));var r,i=n(0),o=n.n(i),a={TESTNET:"testnet",MAINNET:"mainnet"},s={ROPSTEN:"ropsten",MAINNET:"mainnet"},c={GOOGLE:"google",FACEBOOK:"facebook",REDDIT:"reddit",DISCORD:"discord",TWITCH:"twitch",APPLE:"apple",GITHUB:"github",LINKEDIN:"linkedin",TWITTER:"twitter",WEIBO:"weibo",LINE:"line",EMAIL_PASSWORD:"email_password",PASSWORDLESS:"passwordless",JWT:"jwt"},l={SINGLE_VERIFIER_ID:"single_id_verifier"},u=(r={},o()(r,a.MAINNET,"0x638646503746d5456209e33a2ff5e3226d698bea"),o()(r,a.TESTNET,"0x4023d2a0D330bF11426B12C6144Cfb96B7fa6183"),r)},function(e,t){e.exports=n(1012)},function(e,t){e.exports=n(880)},function(e,t){e.exports=n(1382)},function(e,t){e.exports=n(923)},function(e,t){e.exports=n(924)},function(e,t){e.exports=n(1383)},function(e,t){e.exports=n(1385)},function(e,t){e.exports=n(1014)},function(e,t){e.exports=n(1386)},function(e,t){e.exports=n(1017)},function(e,t){e.exports=n(1545)},function(e,t){e.exports=n(1391)},function(e,t){e.exports=n(1392)},function(e,t){e.exports=n(399)},function(e,t){},function(e,t){e.exports=n(1438)},function(e,t){e.exports=n(1465)},function(e,t){e.exports=n(1027)},function(e,t,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(e,t){return new Promise((function(n,r){function i(){void 0!==o&&e.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==t&&(o=function(n){e.removeListener(t,i),r(n)},e.once("error",o)),e.once(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,a,s;if(l(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=u(e))>0&&a.length>i&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):b(i,i.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function b(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var l=c.length,u=b(c,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return f(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return f(this,e,t,!0)},s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,o,a;if(l(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t){e.exports=n(1466)},function(e,t,n){"use strict";var r,i=n(11),o=n.n(i),a=n(1),s=n.n(a),c=n(4),l=n.n(c),u=n(6),f=n.n(u),d=n(7),p=n.n(d),h=n(0),m=n.n(h),b=n(18),y=n.n(b),g=n(15),v=n.n(g),w=n(16),_=n(2),k=n(3),x=n.n(k),S=n(8),O=n.n(S),E=n(9),T=n.n(E),A=n(5),M=n.n(A),I=n(10),P=n.n(I),C=n(12),j=n(19),D=n.n(j),R=n(13),N=n(20),B=n.n(N).a.getLogger("torus-direct-web-sdk");var L=(r={},m()(r,_.d.APPLE,"apple"),m()(r,_.d.GITHUB,"github"),m()(r,_.d.LINKEDIN,"linkedin"),m()(r,_.d.TWITTER,"twitter"),m()(r,_.d.WEIBO,"weibo"),m()(r,_.d.LINE,"line"),m()(r,_.d.EMAIL_PASSWORD,"Username-Password-Authentication"),m()(r,_.d.PASSWORDLESS,"email"),r),U=function(e){return e.href.endsWith("/")?e.href:"".concat(e.href,"/")},F={webWorkerSupport:!1};function q(e,t){return t?e:e.toLowerCase()}var z=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=e.name,o=e.sub;if(n)return q(e[n],r);switch(t){case _.d.PASSWORDLESS:case _.d.EMAIL_PASSWORD:return q(i,r);case _.d.WEIBO:case _.d.GITHUB:case _.d.TWITTER:case _.d.APPLE:case _.d.LINKEDIN:case _.d.LINE:case _.d.JWT:return q(o,r);default:throw new Error("Invalid login type")}},V=function(e,t){var n=e.split("&").reduce((function(e,t){var n=t.split("="),r=o()(n,2),i=r[0],a=r[1];return e[i]=a,e}),{});B.info(n,t);var r={},i="";return t.preopenInstanceId||(Object.keys(n).length>0&&n.state?(r=JSON.parse(atob(decodeURIComponent(decodeURIComponent(n.state))))||{},i=n.error_description||n.error||i):Object.keys(t).length>0&&t.state&&(r=JSON.parse(atob(decodeURIComponent(decodeURIComponent(t.state))))||{},t.error&&(i=t.error))),{error:i,instanceParameters:r,hashParameters:n}};function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M()(e);if(t){var i=M()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T()(this,n)}}var $=function(e){O()(n,e);var t=H(n);function n(e){var r,i=e.url,o=e.target,a=e.features;return f()(this,n),r=t.call(this),m()(x()(r),"url",void 0),m()(x()(r),"target",void 0),m()(x()(r),"features",void 0),m()(x()(r),"window",void 0),m()(x()(r),"windowTimer",void 0),m()(x()(r),"iClosedWindow",void 0),r.url=i,r.target=o||"_blank",r.features=a||"directories=0,titlebar=0,toolbar=0,status=0,location=0,menubar=0,height=700,width=1200",r.window=void 0,r.windowTimer=void 0,r.iClosedWindow=!1,r._setupTimer(),r}return p()(n,[{key:"_setupTimer",value:function(){var e=this;this.windowTimer=Number(setInterval((function(){e.window&&e.window.closed&&(clearInterval(e.windowTimer),e.iClosedWindow||e.emit("close"),e.iClosedWindow=!1,e.window=void 0),void 0===e.window&&clearInterval(e.windowTimer)}),500))}},{key:"open",value:function(){return this.window=window.open(this.url.href,this.target,this.features),Promise.resolve()}},{key:"close",value:function(){this.iClosedWindow=!0,this.window&&this.window.close()}}]),n}(n(21).EventEmitter),K=function(){function e(t,n,r,i,o,a){f()(this,e),this.clientId=t,this.verifier=n,this.redirect_uri=r,this.typeOfLogin=i,this.redirectToOpener=o,this.jwtParams=a,m()(this,"nonce",D()()),m()(this,"finalURL",void 0)}return p()(e,[{key:"handleLoginWindow",value:function(){var e=this;return new Promise((function(t,n){var r,i=function(){var i=l()(s.a.mark((function i(o){var a,c,l,u,f,d,p;return s.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(i.prev=0,a=o.error,c=o.data,u=(l=c||{}).instanceParams.verifier,f=l.hashParams,d=f.access_token,p=f.id_token,!a){i.next=7;break}return B.error(o),n(new Error("Error: ".concat(a,". Info: ").concat(JSON.stringify(o.data||{})))),i.abrupt("return");case 7:if(!o.data||u!==e.verifier){i.next=13;break}if(B.info(o.data),e.redirectToOpener||!r){i.next=12;break}return i.next=12,r.postMessage({success:!0});case 12:t({accessToken:d,idToken:p||""});case 13:i.next=19;break;case 15:i.prev=15,i.t0=i.catch(0),B.error(i.t0),n(i.t0);case 19:case"end":return i.stop()}}),i,null,[[0,15]])})));return function(e){return i.apply(this,arguments)}}(),o=new $({url:e.finalURL});if(e.redirectToOpener){var a=function(){var t=l()(s.a.mark((function t(n){var r;return s.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n.data){t.next=2;break}return t.abrupt("return");case 2:if((r=n.data).channel==="redirect_channel_".concat(e.nonce)){t.next=5;break}return t.abrupt("return");case 5:window.removeEventListener("message",a),i(r),o.close();case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();window.addEventListener("message",a)}else(r=new R.BroadcastChannel("redirect_channel_".concat(e.nonce),F)).addEventListener("message",function(){var e=l()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i(t);case 2:r.close(),o.close();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());o.open(),o.once("close",(function(){r&&r.close(),n(new Error("user closed popup"))}))}))}},{key:"state",get:function(){return encodeURIComponent(window.btoa(JSON.stringify({instanceId:this.nonce,verifier:this.verifier,redirectToOpener:this.redirectToOpener||!1})))}}]),e}();function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M()(e);if(t){var i=M()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T()(this,n)}}var G=function(e){O()(r,e);var t,n=W(r);function r(e,t,i,o,a,s){var c;return f()(this,r),(c=n.call(this,e,t,i,o,a,s)).clientId=e,c.verifier=t,c.redirect_uri=i,c.typeOfLogin=o,c.redirectToOpener=a,c.jwtParams=s,m()(x()(c),"RESPONSE_TYPE","token"),m()(x()(c),"SCOPE","identify email"),c.setFinalUrl(),c}return p()(r,[{key:"setFinalUrl",value:function(){var e=new URL("https://discordapp.com/api/oauth2/authorize"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),n=P()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(n).forEach((function(t){n[t]&&e.searchParams.append(t,n[t])})),this.finalURL=e}},{key:"getUserInfo",value:(t=l()(s.a.mark((function e(t){var n,r,i,o,a,c,l,u,f,d,p;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.accessToken,e.next=3,Object(C.get)("https://discordapp.com/api/users/@me",{headers:{Authorization:"Bearer ".concat(n)}});case 3:return r=e.sent,i=r.id,o=r.avatar,a=r.email,c=void 0===a?"":a,l=r.username,u=void 0===l?"":l,f=r.discriminator,d=void 0===f?"":f,p=null===o?"https://cdn.discordapp.com/embed/avatars/".concat(Number(d)%5,".png"):"https://cdn.discordapp.com/avatars/".concat(i,"/").concat(o,".png?size=2048"),e.abrupt("return",{profileImage:p,name:"".concat(u,"#").concat(d),email:c,verifierId:i,verifier:this.verifier,typeOfLogin:this.typeOfLogin});case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),r}(K);function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M()(e);if(t){var i=M()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T()(this,n)}}var Q=function(e){O()(r,e);var t,n=J(r);function r(e,t,i,o,a,s){var c;return f()(this,r),(c=n.call(this,e,t,i,o,a,s)).clientId=e,c.verifier=t,c.redirect_uri=i,c.typeOfLogin=o,c.redirectToOpener=a,c.jwtParams=s,m()(x()(c),"RESPONSE_TYPE","token"),m()(x()(c),"SCOPE","public_profile email"),c.setFinalUrl(),c}return p()(r,[{key:"setFinalUrl",value:function(){var e=new URL("https://www.facebook.com/v6.0/dialog/oauth"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),n=P()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(n).forEach((function(t){n[t]&&e.searchParams.append(t,n[t])})),this.finalURL=e}},{key:"getUserInfo",value:(t=l()(s.a.mark((function e(t){var n,r,i,o,a,c,l,u;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.accessToken,e.next=3,Object(C.get)("https://graph.facebook.com/me?fields=name,email,picture.type(large)",{headers:{Authorization:"Bearer ".concat(n)}});case 3:return r=e.sent,i=r.name,o=void 0===i?"":i,a=r.id,c=r.picture,l=r.email,u=void 0===l?"":l,e.abrupt("return",{email:u,name:o,profileImage:c.data.url||"",verifier:this.verifier,verifierId:a,typeOfLogin:this.typeOfLogin});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),r}(K);function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M()(e);if(t){var i=M()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T()(this,n)}}var Z=function(e){O()(r,e);var t,n=Y(r);function r(e,t,i,o,a,s){var c;return f()(this,r),(c=n.call(this,e,t,i,o,a,s)).clientId=e,c.verifier=t,c.redirect_uri=i,c.typeOfLogin=o,c.redirectToOpener=a,c.jwtParams=s,m()(x()(c),"RESPONSE_TYPE","token id_token"),m()(x()(c),"SCOPE","profile email openid"),m()(x()(c),"PROMPT","consent select_account"),c.setFinalUrl(),c}return p()(r,[{key:"setFinalUrl",value:function(){var e=new URL("https://accounts.google.com/o/oauth2/v2/auth"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),n=P()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,prompt:this.PROMPT,redirect_uri:this.redirect_uri,scope:this.SCOPE,nonce:this.nonce},t);Object.keys(n).forEach((function(t){n[t]&&e.searchParams.append(t,n[t])})),this.finalURL=e}},{key:"getUserInfo",value:(t=l()(s.a.mark((function e(t){var n,r,i,o,a,c,l,u;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.accessToken,e.next=3,Object(C.get)("https://www.googleapis.com/userinfo/v2/me",{headers:{Authorization:"Bearer ".concat(n)}});case 3:return r=e.sent,i=r.picture,o=void 0===i?"":i,a=r.email,c=void 0===a?"":a,l=r.name,u=void 0===l?"":l,e.abrupt("return",{email:c,name:u,profileImage:o,verifier:this.verifier,verifierId:c.toLowerCase(),typeOfLogin:this.typeOfLogin});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),r}(K),X=n(14),ee=n.n(X);function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M()(e);if(t){var i=M()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T()(this,n)}}var ne=function(e){O()(r,e);var t,n=te(r);function r(e,t,i,o,a,s){var c;return f()(this,r),(c=n.call(this,e,t,i,o,a,s)).clientId=e,c.verifier=t,c.redirect_uri=i,c.typeOfLogin=o,c.redirectToOpener=a,c.jwtParams=s,m()(x()(c),"SCOPE","openid profile email"),m()(x()(c),"RESPONSE_TYPE","token id_token"),m()(x()(c),"PROMPT","login"),c.setFinalUrl(),c}return p()(r,[{key:"setFinalUrl",value:function(){var e=this.jwtParams.domain,t=new URL(e);t.pathname="/authorize";var n=JSON.parse(JSON.stringify(this.jwtParams));delete n.domain;var r=P()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,prompt:this.PROMPT,redirect_uri:this.redirect_uri,scope:this.SCOPE,connection:L[this.typeOfLogin],nonce:this.nonce},n);Object.keys(r).forEach((function(e){r[e]&&t.searchParams.append(e,r[e])})),this.finalURL=t}},{key:"getUserInfo",value:(t=l()(s.a.mark((function e(t){var n,r,i,o,a,c,l,u,f,d,p,h,m,b,y;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.idToken,r=t.accessToken,i=this.jwtParams,o=i.domain,a=i.verifierIdField,c=i.isVerifierIdCaseSensitive,e.prev=2,l=new URL(o),e.next=6,Object(C.get)("".concat(U(l),"userinfo"),{headers:{Authorization:"Bearer ".concat(r)}});case 6:return u=e.sent,f=u.picture,d=u.name,p=u.email,e.abrupt("return",{email:p,name:d,profileImage:f,verifierId:z(u,this.typeOfLogin,a,c),verifier:this.verifier,typeOfLogin:this.typeOfLogin});case 11:return e.prev=11,e.t0=e.catch(2),B.error(e.t0),h=ee()(n),m=h.name,b=h.email,y=h.picture,e.abrupt("return",{profileImage:y,name:m,email:b,verifierId:z(h,this.typeOfLogin,a,c),verifier:this.verifier,typeOfLogin:this.typeOfLogin});case 17:case"end":return e.stop()}}),e,this,[[2,11]])}))),function(e){return t.apply(this,arguments)})}]),r}(K);function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M()(e);if(t){var i=M()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T()(this,n)}}var ie=function(e){O()(r,e);var t,n=re(r);function r(e,t,i,o,a,s){var c;return f()(this,r),(c=n.call(this,e,t,i,o,a,s)).clientId=e,c.verifier=t,c.redirect_uri=i,c.typeOfLogin=o,c.redirectToOpener=a,c.jwtParams=s,m()(x()(c),"SCOPE","openid profile email"),m()(x()(c),"RESPONSE_TYPE","token id_token"),m()(x()(c),"PROMPT","login"),c.setFinalUrl(),c}return p()(r,[{key:"setFinalUrl",value:function(){var e=this.jwtParams.domain,t=new URL(e);t.pathname="/passwordless/start",this.finalURL=t}},{key:"getUserInfo",value:(t=l()(s.a.mark((function e(t){var n,r,i,o,a,c,l,u,f,d,p,h,m,b,y;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.idToken,r=t.accessToken,i=this.jwtParams,o=i.domain,a=i.verifierIdField,c=i.isVerifierIdCaseSensitive,e.prev=2,l=new URL(o),e.next=6,Object(C.get)("".concat(U(l),"userinfo"),{headers:{Authorization:"Bearer ".concat(r)}});case 6:return u=e.sent,f=u.picture,d=u.name,p=u.email,e.abrupt("return",{email:p,name:d,profileImage:f,verifierId:z(u,this.typeOfLogin,a,c),verifier:this.verifier,typeOfLogin:this.typeOfLogin});case 11:return e.prev=11,e.t0=e.catch(2),B.error(e.t0),h=ee()(n),m=h.name,b=h.email,y=h.picture,e.abrupt("return",{profileImage:y,name:m,email:b,verifierId:z(h,this.typeOfLogin,a,c),verifier:this.verifier,typeOfLogin:this.typeOfLogin});case 17:case"end":return e.stop()}}),e,this,[[2,11]])}))),function(e){return t.apply(this,arguments)})},{key:"handleLoginWindow",value:function(){var e=this;return new Promise((function(t,n){if(e.redirectToOpener)n(new Error("Cannot use redirect to opener for passwordless"));else{var r=function(r){try{var i=r.error,o=r.data||{},a=o.instanceParams.verifier,s=o.hashParams,c=s.access_token,l=s.id_token;if(i)return B.error(r.error),void n(new Error(i));r.data&&a===e.verifier&&(B.info(r.data),t({accessToken:c,idToken:l||""}))}catch(i){B.error(i),n(i)}},i=new R.BroadcastChannel("redirect_channel_".concat(e.nonce),F);i.addEventListener("message",function(){var e=l()(s.a.mark((function e(t){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r(t),i.close();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());try{var o=e.jwtParams,a=o.connection,c=void 0===a?"email":a,u=o.login_hint,f=P()({client_id:e.clientId,connection:c,email:"email"===c?u:void 0,phone_number:"sms"===c?u:void 0,send:"link",authParams:{scope:e.SCOPE,state:e.state,response_type:e.RESPONSE_TYPE,redirect_uri:e.redirect_uri,nonce:e.nonce,prompt:e.PROMPT}},{authParams:e.jwtParams});Object(C.post)(e.finalURL.href,JSON.parse(JSON.stringify(f))).then((function(e){B.info("posted",e)})).catch((function(e){B.error(e),n(e)}))}catch(e){B.error(e),n(e)}}}))}}]),r}(K);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M()(e);if(t){var i=M()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T()(this,n)}}var ae=function(e){O()(r,e);var t,n=oe(r);function r(e,t,i,o,a,s){var c;return f()(this,r),(c=n.call(this,e,t,i,o,a,s)).clientId=e,c.verifier=t,c.redirect_uri=i,c.typeOfLogin=o,c.redirectToOpener=a,c.jwtParams=s,m()(x()(c),"RESPONSE_TYPE","token"),m()(x()(c),"SCOPE","identity"),c.setFinalUrl(),c}return p()(r,[{key:"setFinalUrl",value:function(){var e=new URL("https://www.reddit.com/api/v1/authorize".concat(window.innerWidth<600?".compact":"")),t=JSON.parse(JSON.stringify(this.jwtParams||{})),n=P()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE},t);Object.keys(n).forEach((function(t){n[t]&&e.searchParams.append(t,n[t])})),this.finalURL=e}},{key:"getUserInfo",value:(t=l()(s.a.mark((function e(t){var n,r,i,o,a,c;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.accessToken,e.next=3,Object(C.get)("https://oauth.reddit.com/api/v1/me",{headers:{Authorization:"Bearer ".concat(n)}});case 3:return r=e.sent,i=r.icon_img,o=void 0===i?"":i,a=r.name,c=void 0===a?"":a,e.abrupt("return",{email:"",name:c,profileImage:o.split("?").length>0?o.split("?")[0]:o,verifier:this.verifier,verifierId:c.toLowerCase(),typeOfLogin:this.typeOfLogin});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),r}(K);function se(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M()(e);if(t){var i=M()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return T()(this,n)}}var ce=function(e){O()(r,e);var t,n=se(r);function r(e,t,i,o,a,s){var c;return f()(this,r),(c=n.call(this,e,t,i,o,a,s)).clientId=e,c.verifier=t,c.redirect_uri=i,c.typeOfLogin=o,c.redirectToOpener=a,c.jwtParams=s,m()(x()(c),"RESPONSE_TYPE","token"),m()(x()(c),"SCOPE","user:read:email"),c.setFinalUrl(),c}return p()(r,[{key:"setFinalUrl",value:function(){var e=new URL("https://id.twitch.tv/oauth2/authorize"),t=JSON.parse(JSON.stringify(this.jwtParams||{})),n=P()({state:this.state,response_type:this.RESPONSE_TYPE,client_id:this.clientId,redirect_uri:this.redirect_uri,scope:this.SCOPE,force_verify:!0},t);Object.keys(n).forEach((function(t){n[t]&&e.searchParams.append(t,n[t])})),this.finalURL=e}},{key:"getUserInfo",value:(t=l()(s.a.mark((function e(t){var n,r,i,a,c,l,u,f,d,p,h,m;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.accessToken,e.next=3,Object(C.get)("https://api.twitch.tv/helix/users",{headers:{Authorization:"Bearer ".concat(n),"Client-ID":this.clientId}});case 3:return r=e.sent,i=r.data||[],a=o()(i,1),c=a[0],l=c.profile_image_url,u=void 0===l?"":l,f=c.display_name,d=void 0===f?"":f,p=c.email,h=void 0===p?"":p,m=c.id,e.abrupt("return",{profileImage:u,name:d,email:h,verifierId:m,verifier:this.verifier,typeOfLogin:this.typeOfLogin});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),r}(K),le=function(e){var t=e.clientId,n=e.redirect_uri,r=e.typeOfLogin,i=e.verifier,o=e.jwtParams,a=e.redirectToOpener;if(!i||!r||!t)throw new Error("Invalid params");var s=o||{},c=s.domain,l=s.login_hint;switch(r){case _.d.GOOGLE:return new Z(t,i,n,r,a,o);case _.d.FACEBOOK:return new Q(t,i,n,r,a,o);case _.d.TWITCH:return new ce(t,i,n,r,a,o);case _.d.REDDIT:return new ae(t,i,n,r,a,o);case _.d.DISCORD:return new G(t,i,n,r,a,o);case _.d.PASSWORDLESS:if(!c||!l)throw new Error("Invalid params");return new ie(t,i,n,r,a,o);case _.d.APPLE:case _.d.GITHUB:case _.d.LINKEDIN:case _.d.TWITTER:case _.d.WEIBO:case _.d.LINE:case _.d.EMAIL_PASSWORD:case _.d.JWT:if(!c)throw new Error("Invalid params");return new ne(t,i,n,r,a,o);default:throw new Error("Invalid login type")}},ue=n(22),fe=function(e){return new Promise((function(t,n){var r="".concat(e,"sw.js");"serviceWorker"in navigator?Object(ue.register)(r,{ready:function(){B.info("App is being served from cache by a service worker.\n For more details, visit https://goo.gl/AFskqB"),t(void 0)},registered:function(){B.info("Service worker has been registered."),t(void 0)},cached:function(){B.info("Content has been cached for offline use."),t(void 0)},updatefound:function(){B.info("New content is downloading.")},updated:function(){B.info("New content is available; please refresh.")},offline:function(){B.info("No internet connection found. App is running in offline mode."),n(new Error("App is offline"))},error:function(e){B.error("Error during service worker registration:",e),n(e)}}):n(new Error("Service workers are not supported"))}))};function de(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pe(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){m()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var be=function(){function e(t){var n=t.baseUrl,r=t.network,i=void 0===r?_.e.MAINNET:r,o=t.proxyContractAddress,a=t.enableLogging,s=void 0!==a&&a,c=t.redirectToOpener,l=void 0!==c&&c,u=t.redirectPathName,d=void 0===u?"redirect":u,p=t.apiKey,h=void 0===p?"torus-default":p;f()(this,e),m()(this,"isInitialized",void 0),m()(this,"config",void 0),m()(this,"torus",void 0),m()(this,"nodeDetailManager",void 0),this.isInitialized=!1;var b=new URL(n);this.config={baseUrl:U(b),get redirect_uri(){return"".concat(this.baseUrl).concat(d)},redirectToOpener:l};var g=new v.a({enableLogging:s,metadataHost:"https://metadata.tor.us",allowHost:"https://signer.tor.us/api/allow"});v.a.setAPIKey(h),this.torus=g;var w=i===_.e.TESTNET?_.c.ROPSTEN:i;this.nodeDetailManager=new y.a({network:w,proxyAddress:o||_.b[i]}),this.nodeDetailManager.getNodeDetails(),s?B.enableAll():B.disableAll()}var t,n,r,i,a,c;return p()(e,[{key:"init",value:(c=l()(s.a.mark((function e(){var t,n,r=arguments;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=r.length>0&&void 0!==r[0]?r[0]:{},void 0!==(n=t.skipSw)&&n){e.next=23;break}return e.next=4,fetch("".concat(this.config.baseUrl,"sw.js"),{cache:"reload"});case 4:if(!e.sent.ok){e.next=20;break}return e.prev=6,e.next=9,fe(this.config.baseUrl);case 9:return this.isInitialized=!0,e.abrupt("return");case 13:return e.prev=13,e.t0=e.catch(6),B.error(e.t0),e.next=18,this.handleRedirectCheck();case 18:e.next=21;break;case 20:throw new Error("Service worker is not being served. Please serve it");case 21:e.next=25;break;case 23:return e.next=25,this.handleRedirectCheck();case 25:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(){return c.apply(this,arguments)})},{key:"handleRedirectCheck",value:(a=l()(s.a.mark((function e(){return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(this.config.redirect_uri,{cache:"reload"});case 2:if(!e.sent.ok){e.next=6;break}return this.isInitialized=!0,e.abrupt("return");case 6:throw new Error("Please serve redirect.html present in serviceworker folder of this package on ".concat(this.config.redirect_uri));case 7:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"triggerLogin",value:(i=l()(s.a.mark((function e(t){var n,r,i,o,a,c,l,u,f,d,p,h,m,b,y;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.verifier,r=t.typeOfLogin,i=t.clientId,o=t.jwtParams,a=t.hash,c=t.queryParameters,B.info("Verifier: ",n),this.isInitialized){e.next=4;break}throw new Error("Not initialized yet");case 4:if(l=le({typeOfLogin:r,clientId:i,verifier:n,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:o}),!a||!c){e.next=13;break}if(f=V(a,c),d=f.error,p=f.hashParameters,!d){e.next=9;break}throw new Error(d);case 9:h=p.access_token,m=p.id_token,u={accessToken:h,idToken:m},e.next=16;break;case 13:return e.next=15,l.handleLoginWindow();case 15:u=e.sent;case 16:return e.next=18,l.getUserInfo(u);case 18:return b=e.sent,e.next=21,this.getTorusKey(n,b.verifierId,{verifier_id:b.verifierId},u.idToken||u.accessToken);case 21:return y=e.sent,e.abrupt("return",me(me({},y),{},{userInfo:me(me({},b),u)}));case 23:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"triggerAggregateLogin",value:(r=l()(s.a.mark((function e(t){var n,r,i,o,a,c,l,u,f,d,p,h,m,b,y,g,v,k,x,S,O,E,T,A,M,I,P,C,j,D,R,N;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.aggregateVerifierType,r=t.verifierIdentifier,i=t.subVerifierDetailsArray,this.isInitialized){e.next=3;break}throw new Error("Not initialized yet");case 3:if(n&&r&&Array.isArray(i)){e.next=5;break}throw new Error("Invalid params");case 5:if(n!==_.a.SINGLE_VERIFIER_ID||1===i.length){e.next=7;break}throw new Error("Single id verifier can only have one sub verifier");case 7:o=[],a=[],c=de(i),e.prev=10,c.s();case 12:if((l=c.n()).done){e.next=32;break}if(u=l.value,f=u.clientId,d=u.typeOfLogin,p=u.verifier,h=u.jwtParams,m=u.hash,b=u.queryParameters,y=le({typeOfLogin:d,clientId:f,verifier:p,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:h}),g=void 0,!m||!b){e.next=25;break}if(v=V(m,b),k=v.error,x=v.hashParameters,!k){e.next=21;break}throw new Error(k);case 21:S=x.access_token,O=x.id_token,g={accessToken:S,idToken:O},e.next=28;break;case 25:return e.next=27,y.handleLoginWindow();case 27:g=e.sent;case 28:o.push(y.getUserInfo(g)),a.push(g);case 30:e.next=12;break;case 32:e.next=37;break;case 34:e.prev=34,e.t0=e.catch(10),c.e(e.t0);case 37:return e.prev=37,c.f(),e.finish(37);case 40:return e.next=42,Promise.all(o);case 42:for(E=e.sent,T={verify_params:[],sub_verifier_ids:[],verifier_id:""},A=[],M="",I=0;I<i.length;I+=1)P=a[I],C=P.idToken,j=P.accessToken,D=E[I],T.verify_params.push({verifier_id:D.verifierId,idtoken:C||j}),T.sub_verifier_ids.push(D.verifier),A.push(C||j),M=D.verifierId;return A.sort(),R=Object(w.keccak256)(A.join(String.fromCharCode(29))).slice(2),T.verifier_id=M,e.next=52,this.getTorusKey(r,M,T,R);case 52:return N=e.sent,e.abrupt("return",me(me({},N),{},{userInfo:E.map((function(e,t){return me(me({},e),a[t])}))}));case 54:case"end":return e.stop()}}),e,this,[[10,34,37,40]])}))),function(e){return r.apply(this,arguments)})},{key:"triggerHybridAggregateLogin",value:(n=l()(s.a.mark((function e(t){var n,r,i,a,c,l,u,f,d,p,h,m,b,y,g,v,k,x,S,O,E,T,A,M,I,P,C,j,D,R,N,B,L;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.singleLogin,r=t.aggregateLoginParams,this.isInitialized){e.next=3;break}throw new Error("Not initialized yet");case 3:if(r.aggregateVerifierType&&r.verifierIdentifier&&Array.isArray(r.subVerifierDetailsArray)){e.next=5;break}throw new Error("Invalid params");case 5:if(r.aggregateVerifierType!==_.a.SINGLE_VERIFIER_ID||1===r.subVerifierDetailsArray.length){e.next=7;break}throw new Error("Single id verifier can only have one sub verifier");case 7:if(i=n.typeOfLogin,a=n.clientId,c=n.verifier,l=n.jwtParams,u=n.hash,f=n.queryParameters,d=le({typeOfLogin:i,clientId:a,verifier:c,redirect_uri:this.config.redirect_uri,redirectToOpener:this.config.redirectToOpener,jwtParams:l}),!u||!f){e.next=17;break}if(h=V(u,f),m=h.error,b=h.hashParameters,!m){e.next=13;break}throw new Error(m);case 13:y=b.access_token,g=b.id_token,p={accessToken:y,idToken:g},e.next=20;break;case 17:return e.next=19,d.handleLoginWindow();case 19:p=e.sent;case 20:return e.next=22,d.getUserInfo(p);case 22:for(v=e.sent,k=this.getTorusKey(c,v.verifierId,{verifier_id:v.verifierId},p.idToken||p.accessToken),x=r.verifierIdentifier,S=r.subVerifierDetailsArray,O={verify_params:[],sub_verifier_ids:[],verifier_id:""},E=[],T="",A=0;A<S.length;A+=1)M=S[A],P=(I=p).idToken,C=I.accessToken,O.verify_params.push({verifier_id:v.verifierId,idtoken:P||C}),O.sub_verifier_ids.push(M.verifier),E.push(P||C),T=v.verifierId;return E.sort(),j=Object(w.keccak256)(E.join(String.fromCharCode(29))).slice(2),O.verifier_id=T,D=this.getTorusKey(x,T,O,j),e.next=35,Promise.all([k,D]);case 35:return R=e.sent,N=o()(R,2),B=N[0],L=N[1],e.abrupt("return",{singleLogin:me({userInfo:me(me({},v),p)},B),aggregateLogins:[L]});case 40:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getTorusKey",value:(t=l()(s.a.mark((function e(t,n,r,i,o){var a,c,l,u,f,d;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.nodeDetailManager.getNodeDetails();case 2:return a=e.sent,c=a.torusNodeEndpoints,l=a.torusNodePub,u=a.torusIndexes,e.next=8,this.torus.getPublicAddress(c,l,{verifier:t,verifierId:n},!1);case 8:return f=e.sent,B.info("New private key assigned to user at address ",f),e.next=12,this.torus.retrieveShares(c,u,t,r,i,o);case 12:if((d=e.sent).ethAddress.toLowerCase()===f.toString().toLowerCase()){e.next=15;break}throw new Error("Invalid");case 15:return B.info(d),e.abrupt("return",{publicAddress:d.ethAddress.toString(),privateKey:d.privKey.toString()});case 17:case"end":return e.stop()}}),e,this)}))),function(e,n,r,i,o){return t.apply(this,arguments)})}]),e}();t.a=be},function(e,t,n){"use strict";n.r(t);var r=n(23),i=n(17);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);var a=n(2);n.d(t,"TORUS_NETWORK",(function(){return a.e})),n.d(t,"ETHEREUM_NETWORK",(function(){return a.c})),n.d(t,"LOGIN",(function(){return a.d})),n.d(t,"AGGREGATE_VERIFIER",(function(){return a.a})),n.d(t,"CONTRACT_MAP",(function(){return a.b})),t.default=r.a}]).default},function(e,t){e.exports=!1},function(e,t){},function(e,t,n){(function(t,n){
154 /**
155  * [js-sha3]{@link https://github.com/emn178/js-sha3}
156  *
157  * @version 0.5.7
158  * @author Chen, Yi-Cyuan [emn178@gmail.com]
159  * @copyright Chen, Yi-Cyuan 2015-2016
160  * @license MIT
161  */
162 !function(){"use strict";var r="object"==typeof window?window:{};!r.JS_SHA3_NO_NODE_JS&&"object"==typeof t&&t.versions&&t.versions.node&&(r=n);for(var i=!r.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,o="0123456789abcdef".split(""),a=[0,8,16,24],s=[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],c=[224,256,384,512],l=["hex","buffer","arrayBuffer","array"],u=function(e,t,n){return function(r){return new _(e,t,e).update(r)[n]()}},f=function(e,t,n){return function(r,i){return new _(e,t,i).update(r)[n]()}},d=function(e,t){var n=u(e,t,"hex");n.create=function(){return new _(e,t,e)},n.update=function(e){return n.create().update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=u(e,t,i)}return n},p=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:d},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:d},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var n=f(e,t,"hex");n.create=function(n){return new _(e,t,n)},n.update=function(e,t){return n.create(t).update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=f(e,t,i)}return n}}],h={},m=[],b=0;b<p.length;++b)for(var y=p[b],g=y.bits,v=0;v<g.length;++v){var w=y.name+"_"+g[v];m.push(w),h[w]=y.createMethod(g[v],y.padding)}function _(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}_.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var n,r,i=e.length,o=this.blocks,s=this.byteCount,c=this.blockCount,l=0,u=this.s;l<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<c+1;++n)o[n]=0;if(t)for(n=this.start;l<i&&n<s;++l)o[n>>2]|=e[l]<<a[3&n++];else for(n=this.start;l<i&&n<s;++l)(r=e.charCodeAt(l))<128?o[n>>2]|=r<<a[3&n++]:r<2048?(o[n>>2]|=(192|r>>6)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):r<55296||r>=57344?(o[n>>2]|=(224|r>>12)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++l)),o[n>>2]|=(240|r>>18)<<a[3&n++],o[n>>2]|=(128|r>>12&63)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=o[c],n=0;n<c;++n)u[n]^=o[n];k(u),this.reset=!0}else this.start=n}return this},_.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];k(r)},_.prototype.toString=_.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,a=0,s=0,c="";s<r;){for(a=0;a<t&&s<r;++a,++s)e=n[a],c+=o[e>>4&15]+o[15&e]+o[e>>12&15]+o[e>>8&15]+o[e>>20&15]+o[e>>16&15]+o[e>>28&15]+o[e>>24&15];s%t==0&&(k(n),a=0)}return i&&(e=n[a],i>0&&(c+=o[e>>4&15]+o[15&e]),i>1&&(c+=o[e>>12&15]+o[e>>8&15]),i>2&&(c+=o[e>>20&15]+o[e>>16&15])),c},_.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)c[a]=n[o];a%t==0&&k(n)}return i&&(c[o]=n[o],e=e.slice(0,s)),e},_.prototype.buffer=_.prototype.arrayBuffer,_.prototype.digest=_.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,c=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n==0&&k(r)}return o&&(e=s<<2,t=r[a],o>0&&(c[e]=255&t),o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c};var k=function(e){var t,n,r,i,o,a,c,l,u,f,d,p,h,m,b,y,g,v,w,_,k,x,S,O,E,T,A,M,I,P,C,j,D,R,N,B,L,U,F,q,z,V,H,$,K,W,G,J,Q,Y,Z,X,ee,te,ne,re,ie,oe,ae,se,ce,le,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|c>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|u>>>31),n=o^(u<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(f<<1|d>>>31),n=c^(d<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(p<<1|h>>>31),n=u^(h<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|o>>>31),n=d^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,j=e[45]<<29|e[44]>>>3,D=e[44]<<29|e[45]>>>3,O=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,A=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~y&v,e[1]=b^~g&w,e[10]=O^~T&M,e[11]=E^~A&I,e[20]=R^~B&U,e[21]=N^~L&F,e[30]=$^~W&J,e[31]=K^~G&Q,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=y^~v&_,e[3]=g^~w&k,e[12]=T^~M&P,e[13]=A^~I&C,e[22]=B^~U&q,e[23]=L^~F&z,e[32]=W^~J&Y,e[33]=G^~Q&Z,e[42]=re^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&x,e[5]=w^~k&S,e[14]=M^~P&j,e[15]=I^~C&D,e[24]=U^~q&V,e[25]=F^~z&H,e[34]=J^~Y&X,e[35]=Q^~Z&ee,e[44]=oe^~se&le,e[45]=ae^~ce&ue,e[6]=_^~x&m,e[7]=k^~S&b,e[16]=P^~j&O,e[17]=C^~D&E,e[26]=q^~V&R,e[27]=z^~H&N,e[36]=Y^~X&$,e[37]=Z^~ee&K,e[46]=se^~le&te,e[47]=ce^~ue&ne,e[8]=x^~m&y,e[9]=S^~b&g,e[18]=j^~O&T,e[19]=D^~E&A,e[28]=V^~R&B,e[29]=H^~N&L,e[38]=X^~$&W,e[39]=ee^~K&G,e[48]=le^~te&re,e[49]=ue^~ne&ie,e[0]^=s[r],e[1]^=s[r+1]};if(i)e.exports=h;else for(b=0;b<m.length;++b)r[m[b]]=h[m[b]]}()}).call(this,n(13),n(12))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return z}));var r=n(27),i=n.n(r),o=n(215),a=n.n(o);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;function s(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var c=l;function l(e,t){if(!e)throw new Error(t||"Assertion failed")}l.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var u=s((function(e,t){var n=t;function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}})),f=s((function(e,t){var n=t;n.assert=c,n.toArray=u.toArray,n.zero2=u.zero2,n.toHex=u.toHex,n.encode=u.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<r.length;a++){var s,c=o.andln(i-1);o.isOdd()?(s=c>(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r=0,i=0;e.cmpn(-r)>0||t.cmpn(-i)>0;){var o,a,s,c=e.andln(3)+r&3,l=t.andln(3)+i&3;if(3===c&&(c=-1),3===l&&(l=-1),0==(1&c))o=0;else o=3!==(s=e.andln(7)+r&7)&&5!==s||2!==l?c:-c;if(n[0].push(o),0==(1&l))a=0;else a=3!==(s=t.andln(7)+i&7)&&5!==s||2!==c?l:-l;n[1].push(a),2*r===o+1&&(r=1-r),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i.a(e,"hex","le")}})),d=f.getNAF,p=f.getJSF,h=f.assert;function m(e,t){this.type=e,this.p=new i.a(t.p,16),this.red=t.prime?i.a.red(t.prime):i.a.mont(this.p),this.zero=new i.a(0).toRed(this.red),this.one=new i.a(1).toRed(this.red),this.two=new i.a(2).toRed(this.red),this.n=t.n&&new i.a(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),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var b=m;function y(e,t){this.curve=e,this.type=t,this.precomputed=null}m.prototype.point=function(){throw new Error("Not implemented")},m.prototype.validate=function(){throw new Error("Not implemented")},m.prototype._fixedNafMul=function(e,t){h(e.precomputed);var n=e._getDoubles(),r=d(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var o=[],a=0;a<r.length;a+=n.step){var s=0;for(t=a+n.step-1;t>=a;t--)s=(s<<1)+r[t];o.push(s)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),u=i;u>0;u--){for(a=0;a<o.length;a++){(s=o[a])===u?l=l.mixedAdd(n.points[a]):s===-u&&(l=l.mixedAdd(n.points[a].neg()))}c=c.add(l)}return c.toP()},m.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=d(t,n,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(t=0;s>=0&&0===o[s];s--)t++;if(s>=0&&t++,a=a.dblp(t),s<0)break;var c=o[s];h(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},m.prototype._wnafMulAdd=function(e,t,n,r,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,c=0,l=0;l<r;l++){var u=(O=t[l])._getNAFPoints(e);o[l]=u.wnd,a[l]=u.points}for(l=r-1;l>=1;l-=2){var f=l-1,h=l;if(1===o[f]&&1===o[h]){var m=[t[f],null,null,t[h]];0===t[f].y.cmp(t[h].y)?(m[1]=t[f].add(t[h]),m[2]=t[f].toJ().mixedAdd(t[h].neg())):0===t[f].y.cmp(t[h].y.redNeg())?(m[1]=t[f].toJ().mixedAdd(t[h]),m[2]=t[f].add(t[h].neg())):(m[1]=t[f].toJ().mixedAdd(t[h]),m[2]=t[f].toJ().mixedAdd(t[h].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=p(n[f],n[h]);c=Math.max(y[0].length,c),s[f]=new Array(c),s[h]=new Array(c);for(var g=0;g<c;g++){var v=0|y[0][g],w=0|y[1][g];s[f][g]=b[3*(v+1)+(w+1)],s[h][g]=0,a[f]=m}}else s[f]=d(n[f],o[f],this._bitLength),s[h]=d(n[h],o[h],this._bitLength),c=Math.max(s[f].length,c),c=Math.max(s[h].length,c)}var _=this.jpoint(null,null,null),k=this._wnafT4;for(l=c;l>=0;l--){for(var x=0;l>=0;){var S=!0;for(g=0;g<r;g++)k[g]=0|s[g][l],0!==k[g]&&(S=!1);if(!S)break;x++,l--}if(l>=0&&x++,_=_.dblp(x),l<0)break;for(g=0;g<r;g++){var O,E=k[g];0!==E&&(E>0?O=a[g][E-1>>1]:E<0&&(O=a[g][-E-1>>1].neg()),_="affine"===O.type?_.mixedAdd(O):_.add(O))}}for(l=0;l<r;l++)a[l]=null;return i?_:_.toP()},m.BasePoint=y,y.prototype.eq=function(){throw new Error("Not implemented")},y.prototype.validate=function(){return this.curve.validate(this)},m.prototype.decodePoint=function(e,t){e=f.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?h(e[e.length-1]%2==0):7===e[0]&&h(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},y.prototype.encodeCompressed=function(e){return this.encode(e,!0)},y.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},y.prototype.encode=function(e,t){return f.encode(this._encode(t),e)},y.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},y.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)},y.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},y.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},y.prototype._getBeta=function(){return null},y.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t};var g=s((function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),v=f.assert;function w(e){b.call(this,"short",e),this.a=new i.a(e.a,16).toRed(this.red),this.b=new i.a(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)}g(w,b);var _=w;function k(e,t,n,r){b.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i.a(t,16),this.y=new i.a(n,16),r&&(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 x(e,t,n,r){b.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i.a(0)):(this.x=new i.a(t,16),this.y=new i.a(n,16),this.z=new i.a(r,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}w.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i.a(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i.a(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],v(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i.a(e.a,16),b:new i.a(e.b,16)}})):this._getEndoBasis(n)}}},w.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.a.mont(e),n=new i.a(2).toRed(t).redInvm(),r=n.redNeg(),o=new i.a(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},w.prototype._getEndoBasis=function(e){for(var t,n,r,o,a,s,c,l,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,p=this.n.clone(),h=new i.a(1),m=new i.a(0),b=new i.a(0),y=new i.a(1),g=0;0!==d.cmpn(0);){var v=p.div(d);l=p.sub(v.mul(d)),u=b.sub(v.mul(h));var w=y.sub(v.mul(m));if(!r&&l.cmp(f)<0)t=c.neg(),n=h,r=l.neg(),o=u;else if(r&&2==++g)break;c=l,p=d,d=l,b=h,h=u,y=m,m=w}a=l.neg(),s=u;var _=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},w.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),c=i.mul(n.b),l=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:c.add(l).neg()}},w.prototype.pointFromX=function(e,t){(e=new i.a(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},w.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},w.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),r[2*o]=s,r[2*o+1]=c,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var l=this._wnafMulAdd(1,r,i,2*o,n),u=0;u<2*o;u++)r[u]=null,i[u]=null;return l},g(k,b.BasePoint),w.prototype.point=function(e,t,n){return new k(this,e,t,n)},w.prototype.pointFromJSON=function(e,t){return k.fromJSON(this,e,t)},k.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 n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},k.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]},k.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},k.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)+">"},k.prototype.isInfinity=function(){return this.inf},k.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 n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},k.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,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(e){return e=new i.a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},k.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},k.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},k.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))},k.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},k.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},g(x,b.BasePoint),w.prototype.jpoint=function(e,t,n){return new x(this,e,t,n)},x.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},x.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},x.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),f=r.redMul(l),d=c.redSqr().redIAdd(u).redISub(f).redISub(f),p=c.redMul(f.redISub(d)).redISub(o.redMul(u)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,p,h)},x.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),l=c.redMul(a),u=n.redMul(c),f=s.redSqr().redIAdd(l).redISub(u).redISub(u),d=s.redMul(u.redISub(f)).redISub(i.redMul(l)),p=this.z.redMul(a);return this.curve.jpoint(f,d,p)},x.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,n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),l=a.redAdd(a);for(n=0;n<e;n++){var u=o.redSqr(),f=l.redSqr(),d=f.redSqr(),p=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),h=o.redMul(f),m=p.redSqr().redISub(h.redAdd(h)),b=h.redISub(m),y=p.redMul(b);y=y.redIAdd(y).redISub(d);var g=l.redMul(s);n+1<e&&(c=c.redMul(d)),o=m,s=g,l=y}return this.curve.jpoint(o,l.redMul(i),s)},x.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},x.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(a).redISub(a),l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=s.redMul(a.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),p=this.x.redAdd(f).redSqr().redISub(u).redISub(d);p=p.redIAdd(p);var h=u.redAdd(u).redIAdd(u),m=h.redSqr(),b=d.redIAdd(d);b=(b=b.redIAdd(b)).redIAdd(b),e=m.redISub(p).redISub(p),t=h.redMul(p.redISub(e)).redISub(b),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},x.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);e=c;var l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(a.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),p=this.x.redSub(u).redMul(this.x.redAdd(u));p=p.redAdd(p).redIAdd(p);var h=d.redIAdd(d),m=(h=h.redIAdd(h)).redAdd(h);e=p.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(u);var b=f.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),t=p.redMul(h.redISub(e)).redISub(b)}return this.curve.jpoint(e,t,n)},x.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(a),u=s.redSqr().redISub(l.redAdd(l)),f=l.redISub(u),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=s.redMul(f).redISub(d),h=n.redAdd(n).redMul(r);return this.curve.jpoint(u,p,h)},x.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var f=this.x.redMul(s).redISub(u);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(l.redMul(c.redISub(l)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,d,p)},x.prototype.mul=function(e,t){return e=new i.a(e,t),this.curve._wnafMul(this,e)},x.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},x.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},x.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)+">"},x.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var S=s((function(e,t){var n=t;n.base=b,n.short=_,n.mont=null,n.edwards=null})),O=s((function(e,t){var n,r=t,i=f.assert;function o(e){"short"===e.type?this.curve=new S.short(e):"edwards"===e.type?this.curve=new S.edwards(e):this.curve=new S.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,s("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.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("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.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("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.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("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.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"]}),s("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.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"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["9"]}),s("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.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(e){n=void 0}s("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.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function E(e){if(!(this instanceof E))return new E(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"),n=u.toArray(e.nonce,e.nonceEnc||"hex"),r=u.toArray(e.pers,e.persEnc||"hex");c(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var T=E;E.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);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(r),this._reseed=1,this.reseedInterval=281474976710656},E.prototype._hmac=function(){return new a.a.hmac(this.hash,this.K)},E.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())},E.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=u.toArray(e,t),n=u.toArray(n,r),c(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},E.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=u.toArray(n,r||"hex"),this._update(n));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(n),this._reseed++,u.encode(o,t)};var A=f.assert;function M(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=M;M.fromPublic=function(e,t,n){return t instanceof M?t:new M(e,{pub:t,pubEnc:n})},M.fromPrivate=function(e,t,n){return t instanceof M?t:new M(e,{priv:t,privEnc:n})},M.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"}},M.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},M.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(e,t){this.priv=new i.a(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?A(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||A(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)},M.prototype.derive=function(e){return e.mul(this.priv).getX()},M.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},M.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},M.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var P=f.assert;function C(e,t){if(e instanceof C)return e;this._importDER(e,t)||(P(e.r&&e.s,"Signature without r or s"),this.r=new i.a(e.r,16),this.s=new i.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var j=C;function D(){this.place=0}function R(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o<r;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function N(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function B(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}C.prototype._importDER=function(e,t){e=f.toArray(e,t);var n=new D;if(48!==e[n.place++])return!1;var r=R(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=R(e,n);if(!1===o)return!1;var a=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var s=R(e,n);if(!1===s)return!1;if(e.length!==s+n.place)return!1;var c=e.slice(n.place,s+n.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new i.a(a),this.s=new i.a(c),this.recoveryParam=null,!0},C.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=N(t),n=N(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];B(r,t.length),(r=r.concat(t)).push(2),B(r,n.length);var i=r.concat(n),o=[48];return B(o,i.length),o=o.concat(i),f.encode(o,e)};var L=function(){throw new Error("unsupported")},U=f.assert;function F(e){if(!(this instanceof F))return new F(e);"string"==typeof e&&(U(O.hasOwnProperty(e),"Unknown curve "+e),e=O[e]),e instanceof O.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 q=F;F.prototype.keyPair=function(e){return new I(this,e)},F.prototype.keyFromPrivate=function(e,t){return I.fromPrivate(this,e,t)},F.prototype.keyFromPublic=function(e,t){return I.fromPublic(this,e,t)},F.prototype.genKeyPair=function(e){e||(e={});for(var t=new T({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||L(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new i.a(2));;){var o=new i.a(t.generate(n));if(!(o.cmp(r)>0))return o.iaddn(1),this.keyFromPrivate(o)}},F.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},F.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new i.a(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),s=e.toArray("be",o),c=new T({hash:this.hash,entropy:a,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),l=this.n.sub(new i.a(1)),u=0;;u++){var f=r.k?r.k(u):new i.a(c.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(l)>=0)){var d=this.g.mul(f);if(!d.isInfinity()){var p=d.getX(),h=p.umod(this.n);if(0!==h.cmpn(0)){var m=f.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var b=(d.getY().isOdd()?1:0)|(0!==p.cmp(h)?2:0);return r.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),b^=1),new j({r:h,s:m,recoveryParam:b})}}}}}},F.prototype.verify=function(e,t,n,r){e=this._truncateToN(new i.a(e,16)),n=this.keyFromPublic(n,r);var o=(t=new j(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),l=c.mul(e).umod(this.n),u=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),u)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(l,n.getPublic(),u)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},F.prototype.recoverPubKey=function(e,t,n,r){U((3&n)===n,"The recovery param is more than two bits"),t=new j(t,r);var o=this.n,a=new i.a(e),s=t.r,c=t.s,l=1&n,u=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");s=u?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var f=t.r.invm(o),d=o.sub(a).mul(f).umod(o),p=c.mul(f).umod(o);return this.g.mulAdd(d,s,p)},F.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new j(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var z=s((function(e,t){var n=t;n.version="6.5.3",n.utils=f,n.rand=function(){throw new Error("unsupported")},n.curve=S,n.curves=O,n.ec=q,n.eddsa=null})).ec}).call(this,n(12))},function(e){e.exports=JSON.parse('{"torus.sign-in.google":"Sign in with Google","torus.sign-in.modal.title":"Set Password","torus.sign-in.modal.paragraph":"This will be the password you will be using to sign in to Keplr wallet.","torus.sign-in.modal.input.password":"New Password (minimum 8 characters)","torus.sign-in.modal.input.password.error.required":"Password is required","torus.sign-in.modal.input.password.error.too-short":"Too short password","torus.sign-in.modal.input.confirm-password":"Confirm password","torus.sign-in.modal.input.confirm-password.error.required":"Confirm password is required","torus.sign-in.modal.input.confirm-password.error.unmatched":"Password should match","torus.sign-in.modal.button.confirm":"Confirm"}')},function(e){e.exports=JSON.parse('{"torus.sign-in.google":"Google 계정으로 로그인","torus.sign-in.modal.title":"비밀번호 설정","torus.sign-in.modal.paragraph":"케플러 잠금을 해제할 때 사용할 비밀번호를 설정하세요","torus.sign-in.modal.input.password":"새로운 비밀번호 (최소 8자리 이상)","torus.sign-in.modal.input.password.error.required":"비밀번호를 입력하세요","torus.sign-in.modal.input.password.error.too-short":"비밀번호가 너무 짧습니다","torus.sign-in.modal.input.confirm-password":"비밀번호 확인","torus.sign-in.modal.input.confirm-password.error.required":"비밀번호를 입력하세요","torus.sign-in.modal.input.confirm-password.error.unmatched":"비밀번호가 일치하지 않습니다","torus.sign-in.modal.button.confirm":"확인"}')},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return _}));var r=n(0),i=n.n(r),o=n(231),a=n.n(o),s=n(14),c=n(21),l=n(20),u=n(108),f=n(10),d=n.n(f),p=n(1554),h=n(93),m=n(111),b=n(393),y=n(63),g=n(23),v=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const w=Object(s.a)(({onClick:t,balance:n})=>{const{chainStore:o,accountStore:s,tokensStore:f}=Object(c.b)(),[y]=Object(r.useState)(["#5e72e4","#11cdef","#2dce89","#fb6340"]),g=n.currency.coinDenom.toUpperCase(),w=n.currency.coinMinimalDenom;let _=n.balance.trim(!0).shrink(!0);const k=Object(r.useMemo)(()=>{const t=u.Hash.sha256(e.from(w));return t.length>0?y[t[0]%y.length]:y[0]},[y,w]),x=n.error,S=e.from(u.Hash.sha256(e.from(w))).toString("hex").replace(/\d+/g,"").slice(0,20),O=Object(l.useHistory)(),E=Object(m.c)(),T=Object(b.b)(),A=s.getAccount(o.current.chainId);return"originCurrency"in _.currency&&_.currency.originCurrency&&(_=_.setCurrency(_.currency.originCurrency)),i.a.createElement("div",{className:a.a.tokenContainer,onClick:e=>{e.preventDefault(),t()}},i.a.createElement("div",{className:a.a.icon},i.a.createElement("div",{style:{width:"100%",height:"100%",borderRadius:"100000px",backgroundColor:k,display:"flex",justifyContent:"center",alignItems:"center",color:"#FFFFFF",fontSize:"16px"}},g.length>0?g[0]:"?")),i.a.createElement("div",{className:a.a.innerContainer},i.a.createElement("div",{className:a.a.content},i.a.createElement("div",{className:a.a.name},g),i.a.createElement("div",{className:a.a.amount},_.maxDecimals(6).toString(),n.isFetching?i.a.createElement("i",{className:"fas fa-spinner fa-spin ml-1"}):null)),i.a.createElement("div",{style:{flex:1}}),x?i.a.createElement("div",{className:d()(a.a.rightIcon,"mr-2")},i.a.createElement("i",{className:"fas fa-exclamation-circle text-danger",id:S}),i.a.createElement(p.a,{target:S},x.message)):null,(null==x?void 0:x.data)&&x.data instanceof h.WrongViewingKeyError?i.a.createElement("div",{className:d()(a.a.rightIcon,"mr-2"),onClick:e=>v(void 0,void 0,void 0,(function*(){if(e.preventDefault(),e.stopPropagation(),"type"in n.currency&&"secret20"===n.currency.type){const e=yield v(void 0,void 0,void 0,(function*(){if("type"in n.currency&&"secret20"===n.currency.type){const e=n.currency.contractAddress;return new Promise(t=>{A.createSecret20ViewingKey(e,"",{},(e,n)=>{T.setIsLoading("create-veiwing-key",!1),t(n)}).then(()=>{T.setIsLoading("create-veiwing-key",!0)})})}}));if(!e)return void E.push({placement:"top-center",type:"danger",duration:2,content:"Failed to create the viewing key",canDelete:!0,transition:{duration:.25}});const t=f.getTokensOf(o.current.chainId);yield t.addToken(Object.assign(Object.assign({},n.currency),{viewingKey:e})),O.push({pathname:"/"})}}))},"createSecret20ViewingKey"===A.isSendingMsg?i.a.createElement("i",{className:"fa fa-spinner fa-spin fa-fw"}):i.a.createElement("i",{className:"fas fa-wrench"})):null,i.a.createElement("div",{className:a.a.rightIcon},i.a.createElement("i",{className:"fas fa-angle-right"}))))}),_=Object(s.a)(()=>{const{chainStore:e,accountStore:t,queriesStore:n}=Object(c.b)(),r=t.getAccount(e.current.chainId),o=n.get(e.current.chainId).getQueryBalances().getQueryBech32Address(r.bech32Address).unstakables.filter(e=>"native"!==new y.DenomHelper(e.currency.coinMinimalDenom).type||e.balance.toDec().gt(new g.Dec("0"))),s=Object(l.useHistory)();return i.a.createElement("div",{className:a.a.tokensContainer},i.a.createElement("h1",{className:a.a.title},"Tokens"),o.map((e,t)=>i.a.createElement(w,{key:t.toString(),balance:e,onClick:()=>{s.push({pathname:"/send",search:"?defaultDenom="+e.currency.coinMinimalDenom})}})))})}).call(this,n(2).Buffer)},function(e,t,n){var r=n(37),i=n(1509);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return v}));var r=n(0),i=n.n(r),o=n(55),a=n(14),s=n(21),c=n(20),l=n(402),u=n(1555),f=n(1556),d=n(943),p=n.n(d),h=n(393),m=n(87),b=n(869),y=n(388),g=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const v=Object(a.a)(()=>{const e=Object(b.a)(),{keyRingStore:t}=Object(s.b)(),n=Object(c.useHistory)(),r=Object(h.b)();return i.a.createElement(o.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:e.formatMessage({id:"setting.keyring"}),onBackButton:()=>{n.goBack()}},i.a.createElement("div",{className:p.a.container},i.a.createElement("div",{className:p.a.innerTopContainer},i.a.createElement("div",{style:{flex:1}}),i.a.createElement("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center"}},i.a.createElement(l.a,{color:"primary",size:"sm",onClick:e=>{e.preventDefault(),browser.tabs.create({url:"/popup.html#/register"})}},i.a.createElement("i",{className:"fas fa-plus",style:{marginRight:"4px",fontSize:"8px"}}),i.a.createElement(y.a,{id:"setting.keyring.button.add"})))),t.multiKeyStoreInfo.map((o,a)=>{var s,c;const l=o.bip44HDPath?o.bip44HDPath:{account:0,change:0,addressIndex:0};return i.a.createElement(m.a,{key:a.toString(),title:`${(null===(s=o.meta)||void 0===s?void 0:s.name)?o.meta.name:e.formatMessage({id:"setting.keyring.unnamed-account"})} ${o.selected?e.formatMessage({id:"setting.keyring.selected-account"}):""}`,paragraph:"ledger"===o.type?`Ledger - m/44'/118'/${l.account}'${0!==l.change||0!==l.addressIndex?`/${l.change}/${l.addressIndex}`:""}`:(null===(c=o.meta)||void 0===c?void 0:c.email)?o.meta.email:void 0,onClick:o.selected?void 0:e=>g(void 0,void 0,void 0,(function*(){e.preventDefault(),r.setIsLoading("keyring",!0);try{yield t.changeKeyRing(a),r.setIsLoading("keyring",!1),n.push("/")}catch(e){console.log("Failed to change keyring: "+e.message),r.setIsLoading("keyring",!1)}})),style:o.selected?{cursor:"default"}:void 0,icons:[i.a.createElement(w,{key:"tools",index:a,keyStore:o})]})})))}),w=({index:t,keyStore:n})=>{const[o,a]=Object(r.useState)(!1),s=Object(c.useHistory)(),[l]=Object(r.useState)(()=>{const t=new Uint8Array(4);return crypto.getRandomValues(t),"tools-"+e.from(t).toString("hex")});return i.a.createElement(i.a.Fragment,null,i.a.createElement(u.a,{target:l,isOpen:o,toggle:()=>a(e=>!e),placement:"bottom"},i.a.createElement(f.a,{onClick:e=>{e.preventDefault(),e.stopPropagation(),s.push("")}},"mnemonic"===n.type||"privateKey"===n.type?i.a.createElement("div",{style:{cursor:"pointer"},onClick:e=>{e.preventDefault(),e.stopPropagation(),s.push(`/setting/export/${t}?type=${n.type}`)}},i.a.createElement(y.a,{id:"mnemonic"===n.type?"setting.export":"setting.export.private-key"})):null,i.a.createElement("div",{style:{cursor:"pointer"},onClick:e=>{e.preventDefault(),e.stopPropagation(),s.push("/setting/keyring/change/name/"+t)}},i.a.createElement(y.a,{id:"setting.keyring.change.name"})),i.a.createElement("div",{style:{cursor:"pointer"},onClick:e=>{e.preventDefault(),e.stopPropagation(),s.push("/setting/clear/"+t)}},i.a.createElement(y.a,{id:"setting.clear"})))),i.a.createElement("div",{style:{display:"flex",alignItems:"center",height:"100%",padding:"0 8px",cursor:"pointer"},onClick:e=>{e.preventDefault(),e.stopPropagation(),a(!0)}},i.a.createElement("i",{id:l,className:"fas fa-ellipsis-h"})))}}).call(this,n(2).Buffer)},function(e,t,n){var r=n(37),i=n(1517);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1518);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1519);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1520);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";const r=n(1525),i=n(979),o=n(1526);function a(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function c(e,t){return t.decode?i(e):e}function l(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=l(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function d(e,t){a((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&c(n,e).includes(e.arrayFormatSeparator);n=o?c(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map(t=>c(t,e)):null===n?n:c(n,e);r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:c(a,t),n(c(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=f(n[e],t);else r[e]=f(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?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}(n):e[t]=n,e},Object.create(null))}t.extract=u,t.parse=d,t.stringify=(e,t)=>{if(!e)return"";a((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[",i,"]"].join("")]:[...n,[s(t,e),"[",s(i,e),"]=",s(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[]"].join("")]:[...n,[s(t,e),"[]=",s(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[s(t,e),"=",s(r,e)].join("")]:[[n,s(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,s(t,e)]:[...n,[s(t,e),"=",s(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(n=>{const i=e[n];return void 0===i?"":null===i?s(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):s(n,t)+"="+s(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:d(u(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:c(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=l(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let c=t.stringify(a,n);c&&(c="?"+c);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#"+s(e.fragmentIdentifier,n)),`${r}${c}${u}`}},function(e,t,n){var r=n(37),i=n(1534);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(37),i=n(1535);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){"use strict";function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(0),a=n.n(o),s=n(1),c=n.n(s),l=n(10),u=n.n(l),f=n(8),d={tag:f.p,size:c.a.string,className:c.a.string,cssModule:c.a.object},p=function(e){var t=e.className,n=e.cssModule,o=e.tag,s=e.size,c=Object(i.a)(e,["className","cssModule","tag","size"]),l=Object(f.l)(u()(t,"input-group",s?"input-group-"+s:null),n);return a.a.createElement(o,Object(r.a)({},c,{className:l}))};p.propTypes=d,p.defaultProps={tag:"div"},t.a=p},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(0),a=n.n(o),s=n(1),c=n.n(s),l=n(10),u=n.n(l),f=n(8),d={tag:f.p,className:c.a.string,cssModule:c.a.object},p=function(e){var t=e.className,n=e.cssModule,o=e.tag,s=Object(i.a)(e,["className","cssModule","tag"]),c=Object(f.l)(u()(t,"modal-body"),n);return a.a.createElement(o,Object(r.a)({},s,{className:c}))};p.propTypes=d,p.defaultProps={tag:"div"},t.a=p},,,,,,function(e,t,n){e.exports=n(1544)},function(e,t,n){"use strict";
163 /** @license React v16.14.0
164  * react.production.min.js
165  *
166  * Copyright (c) Facebook, Inc. and its affiliates.
167  *
168  * This source code is licensed under the MIT license found in the
169  * LICENSE file in the root directory of this source tree.
170  */var r=n(406),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,b="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function _(){}function k(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var x=k.prototype=new _;x.constructor=k,r(x,w.prototype),x.isPureReactComponent=!0;var S={current:null},O=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)O.call(t,r)&&!E.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:S.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var M=/\/+/g,I=[];function P(e,t,n,r){if(I.length){var i=I.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function C(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case o:case a:c=!0}}if(c)return r(i,t,""===n?"."+D(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var u=n+D(s=t[l],l);c+=e(s,u,r,i)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=b&&t[b]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),l=0;!(s=t.next()).done;)c+=e(s=s.value,u=n+D(s,l++),r,i);else if("object"===s)throw r=""+t,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return c}(e,"",t,n)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function N(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?B(e,r,n,(function(e){return e})):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(M,"$&/")+"/")+n)),r.push(e))}function B(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(M,"$&/")+"/"),j(e,N,t=P(t,o,r,i)),C(t)}var L={current:null};function U(){var e=L.current;if(null===e)throw Error(y(321));return e}var F={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return B(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;j(e,R,t=P(null,null,t,n)),C(t)},count:function(e){return j(e,(function(){return null}),null)},toArray:function(e){var t=[];return B(e,t,null,(function(e){return e})),t},only:function(e){if(!A(e))throw Error(y(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=l,t.PureComponent=k,t.StrictMode=c,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(y(267,e));var i=r({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)O.call(t,u)&&!E.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){l=Array(u);for(var f=0;f<u;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return U().useCallback(e,t)},t.useContext=function(e,t){return U().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return U().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return U().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return U().useLayoutEffect(e,t)},t.useMemo=function(e,t){return U().useMemo(e,t)},t.useReducer=function(e,t,n){return U().useReducer(e,t,n)},t.useRef=function(e){return U().useRef(e)},t.useState=function(e){return U().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";
171 /** @license React v16.14.0
172  * react-dom.production.min.js
173  *
174  * Copyright (c) Facebook, Inc. and its affiliates.
175  *
176  * This source code is licensed under the MIT license found in the
177  * LICENSE file in the root directory of this source tree.
178  */var r=n(0),i=n(406),o=n(1079);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var c=!1,l=null,u=!1,f=null,d={onError:function(e){c=!0,l=e}};function p(e,t,n,r,i,o,a,u,f){c=!1,l=null,s.apply(d,arguments)}var h=null,m=null,b=null;function y(e,t,n){var r=e.type||"unknown-event";e.currentTarget=b(n),function(e,t,n,r,i,o,s,d,h){if(p.apply(this,arguments),c){if(!c)throw Error(a(198));var m=l;c=!1,l=null,u||(u=!0,f=m)}}(r,t,void 0,e),e.currentTarget=null}var g=null,v={};function w(){if(g)for(var e in v){var t=v[e],n=g.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!k[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in k[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,c=r;if(x.hasOwnProperty(c))throw Error(a(99,c));x[c]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&_(l[i],s,c);i=!0}else o.registrationName?(_(o.registrationName,s,c),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function _(e,t,n){if(S[e])throw Error(a(100,e));S[e]=t,O[e]=t.eventTypes[n].dependencies}var k=[],x={},S={},O={};function E(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!v.hasOwnProperty(t)||v[t]!==r){if(v[t])throw Error(a(102,t));v[t]=r,n=!0}}n&&w()}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),A=null,M=null,I=null;function P(e){if(e=m(e)){if("function"!=typeof A)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),A(e.stateNode,e.type,t))}}function C(e){M?I?I.push(e):I=[e]:M=e}function j(){if(M){var e=M,t=I;if(I=M=null,P(e),t)for(e=0;e<t.length;e++)P(t[e])}}function D(e,t){return e(t)}function R(e,t,n,r,i){return e(t,n,r,i)}function N(){}var B=D,L=!1,U=!1;function F(){null===M&&null===I||(N(),j())}function q(e,t,n){if(U)return e(t,n);U=!0;try{return B(e,t,n)}finally{U=!1,F()}}var z=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,V=Object.prototype.hasOwnProperty,H={},$={};function K(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){W[e]=new K(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];W[t]=new K(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){W[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){W[e]=new K(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){W[e]=new K(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){W[e]=new K(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){W[e]=new K(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){W[e]=new K(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){W[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var G=/[\-:]([a-z])/g;function J(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(G,J);W[t]=new K(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(G,J);W[t]=new K(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(G,J);W[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){W[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),W.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){W[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));var Q=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(e,t,n,r){var i=W.hasOwnProperty(t)?W[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!V.call($,e)||!V.call(H,e)&&(z.test(e)?$[e]=!0:(H[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,X="function"==typeof Symbol&&Symbol.for,ee=X?Symbol.for("react.element"):60103,te=X?Symbol.for("react.portal"):60106,ne=X?Symbol.for("react.fragment"):60107,re=X?Symbol.for("react.strict_mode"):60108,ie=X?Symbol.for("react.profiler"):60114,oe=X?Symbol.for("react.provider"):60109,ae=X?Symbol.for("react.context"):60110,se=X?Symbol.for("react.concurrent_mode"):60111,ce=X?Symbol.for("react.forward_ref"):60112,le=X?Symbol.for("react.suspense"):60113,ue=X?Symbol.for("react.suspense_list"):60120,fe=X?Symbol.for("react.memo"):60115,de=X?Symbol.for("react.lazy"):60116,pe=X?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function be(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case le:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case ce:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return be(e.type);case pe:return be(e.render);case de:if(e=1===e._status?e._result:null)return be(e)}return null}function ye(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=be(e.type);n=null,r&&(n=be(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ve(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ve(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ke(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function xe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&Y(e,"checked",t,!1)}function Oe(e,t){Se(e,t);var n=ge(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,n):t.hasOwnProperty("defaultValue")&&Te(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Te(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Me(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ge(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function Ce(e,t){var n=ge(t.value),r=ge(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function je(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var De="http://www.w3.org/1999/xhtml",Re="http://www.w3.org/2000/svg";function Ne(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Be(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ne(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Le,Ue=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Re||"innerHTML"in e)e.innerHTML=t;else{for((Le=Le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function qe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ze={animationend:qe("Animation","AnimationEnd"),animationiteration:qe("Animation","AnimationIteration"),animationstart:qe("Animation","AnimationStart"),transitionend:qe("Transition","TransitionEnd")},Ve={},He={};function $e(e){if(Ve[e])return Ve[e];if(!ze[e])return e;var t,n=ze[e];for(t in n)if(n.hasOwnProperty(t)&&t in He)return Ve[e]=n[t];return e}T&&(He=document.createElement("div").style,"AnimationEvent"in window||(delete ze.animationend.animation,delete ze.animationiteration.animation,delete ze.animationstart.animation),"TransitionEvent"in window||delete ze.transitionend.transition);var Ke=$e("animationend"),We=$e("animationiteration"),Ge=$e("animationstart"),Je=$e("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ye=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Ye.get(e);return void 0===t&&(t=new Map,Ye.set(e,t)),t}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Xe(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)y(e,t[r],n[r]);else t&&y(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(u)throw e=f,u=!1,f=null,e}}function ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!T)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function dt(e,t,n,r){if(ut.length){var i=ut.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Tn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ct(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,c=0;c<k.length;c++){var l=k[c];l&&(l=l.extractEvents(r,t,o,i,a))&&(s=rt(s,l))}st(s)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":Gt(t,"scroll",!0);break;case"focus":case"blur":Gt(t,"focus",!0),Gt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&Gt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&Wt(e,t)}n.set(e,null)}}var mt,bt,yt,gt=!1,vt=[],wt=null,_t=null,kt=null,xt=new Map,St=new Map,Ot=[],Et="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Tt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function At(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Mt(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function It(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=At(t,n,r,i,o),null!==t&&(null!==(t=An(t))&&bt(t)),e):(e.eventSystemFlags|=r,e)}function Pt(e){var t=Tn(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ct(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=An(t);return null!==n&&bt(n),e.blockedOn=t,!1}return!0}function jt(e,t,n){Ct(e)&&n.delete(t)}function Dt(){for(gt=!1;0<vt.length;){var e=vt[0];if(null!==e.blockedOn){null!==(e=An(e.blockedOn))&&mt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:vt.shift()}null!==wt&&Ct(wt)&&(wt=null),null!==_t&&Ct(_t)&&(_t=null),null!==kt&&Ct(kt)&&(kt=null),xt.forEach(jt),St.forEach(jt)}function Rt(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Dt)))}function Nt(e){function t(t){return Rt(t,e)}if(0<vt.length){Rt(vt[0],e);for(var n=1;n<vt.length;n++){var r=vt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==wt&&Rt(wt,e),null!==_t&&Rt(_t,e),null!==kt&&Rt(kt,e),xt.forEach(t),St.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Pt(n),null===n.blockedOn&&Ot.shift()}var Bt={},Lt=new Map,Ut=new Map,Ft=["abort","abort",Ke,"animationEnd",We,"animationIteration",Ge,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Je,"transitionEnd","waiting","waiting"];function qt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Ut.set(r,t),Lt.set(r,o),Bt[i]=o}}qt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),qt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),qt(Ft,2);for(var zt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Vt=0;Vt<zt.length;Vt++)Ut.set(zt[Vt],0);var Ht=o.unstable_UserBlockingPriority,$t=o.unstable_runWithPriority,Kt=!0;function Wt(e,t){Gt(t,e,!1)}function Gt(e,t,n){var r=Ut.get(t);switch(void 0===r?2:r){case 0:r=Jt.bind(null,t,1,e);break;case 1:r=Qt.bind(null,t,1,e);break;default:r=Yt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Jt(e,t,n,r){L||N();var i=Yt,o=L;L=!0;try{R(i,e,t,n,r)}finally{(L=o)||F()}}function Qt(e,t,n,r){$t(Ht,Yt.bind(null,e,t,n,r))}function Yt(e,t,n,r){if(Kt)if(0<vt.length&&-1<Et.indexOf(e))e=At(null,e,t,n,r),vt.push(e);else{var i=Zt(e,t,n,r);if(null===i)Mt(e,r);else if(-1<Et.indexOf(e))e=At(i,e,t,n,r),vt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return wt=It(wt,e,t,n,r,i),!0;case"dragenter":return _t=It(_t,e,t,n,r,i),!0;case"mouseover":return kt=It(kt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return xt.set(o,It(xt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,St.set(o,It(St.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){Mt(e,r),e=dt(e,r,null,t);try{q(pt,e)}finally{ft(e)}}}}function Zt(e,t,n,r){if(null!==(n=Tn(n=ct(r)))){var i=Xe(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=dt(e,r,n,t);try{q(pt,e)}finally{ft(e)}return null}var Xt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Xt.hasOwnProperty(e)&&Xt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Xt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xt[t]=Xt[e]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=De;function cn(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=O[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function ln(){}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=fn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fn(r)}}function pn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,bn=null;function yn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function gn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var vn="function"==typeof setTimeout?setTimeout:void 0,wn="function"==typeof clearTimeout?clearTimeout:void 0;function _n(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function kn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var xn=Math.random().toString(36).slice(2),Sn="__reactInternalInstance$"+xn,On="__reactEventHandlers$"+xn,En="__reactContainere$"+xn;function Tn(e){var t=e[Sn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[En]||n[Sn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=kn(e);null!==e;){if(n=e[Sn])return n;e=kn(e)}return t}n=(e=n).parentNode}return null}function An(e){return!(e=e[Sn]||e[En])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Mn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function In(e){return e[On]||null}function Pn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Cn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function jn(e,t,n){(t=Cn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Dn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Pn(t);for(t=n.length;0<t--;)jn(n[t],"captured",e);for(t=0;t<n.length;t++)jn(n[t],"bubbled",e)}}function Rn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Cn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Nn(e){e&&e.dispatchConfig.registrationName&&Rn(e._targetInst,null,e)}function Bn(e){it(e,Dn)}var Ln=null,Un=null,Fn=null;function qn(){if(Fn)return Fn;var e,t,n=Un,r=n.length,i="value"in Ln?Ln.value:Ln.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Fn=i.slice(e,1<t?1-t:void 0)}function zn(){return!0}function Vn(){return!1}function Hn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?zn:Vn,this.isPropagationStopped=Vn,this}function $n(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Kn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Wn(e){e.eventPool=[],e.getPooled=$n,e.release=Kn}i(Hn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=zn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=zn)},persist:function(){this.isPersistent=zn},isPersistent:Vn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Vn,this._dispatchInstances=this._dispatchListeners=null}}),Hn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Hn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Wn(n),n},Wn(Hn);var Gn=Hn.extend({data:null}),Jn=Hn.extend({data:null}),Qn=[9,13,27,32],Yn=T&&"CompositionEvent"in window,Zn=null;T&&"documentMode"in document&&(Zn=document.documentMode);var Xn=T&&"TextEvent"in window&&!Zn,er=T&&(!Yn||Zn&&8<Zn&&11>=Zn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==Qn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(Yn)e:{switch(e){case"compositionstart":var o=nr.compositionStart;break e;case"compositionend":o=nr.compositionEnd;break e;case"compositionupdate":o=nr.compositionUpdate;break e}o=void 0}else ar?ir(e,n)&&(o=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=nr.compositionStart);return o?(er&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=qn()):(Un="value"in(Ln=r)?Ln.value:Ln.textContent,ar=!0)),o=Gn.getPooled(o,t,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Bn(o),i=o):i=null,(e=Xn?function(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!Yn&&ir(e,t)?(e=qn(),Fn=Un=Ln=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Jn.getPooled(nr.beforeInput,t,n,r)).data=e,Bn(t)):t=null,null===i?t:null===t?i:[i,t]}},cr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!cr[e.type]:"textarea"===t}var ur={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(e,t,n){return(e=Hn.getPooled(ur.change,e,t,n)).type="change",C(n),Bn(e),e}var dr=null,pr=null;function hr(e){st(e)}function mr(e){if(_e(Mn(e)))return e}function br(e,t){if("change"===e)return t}var yr=!1;function gr(){dr&&(dr.detachEvent("onpropertychange",vr),pr=dr=null)}function vr(e){if("value"===e.propertyName&&mr(pr))if(e=fr(pr,e,ct(e)),L)st(e);else{L=!0;try{D(hr,e)}finally{L=!1,F()}}}function wr(e,t,n){"focus"===e?(gr(),pr=n,(dr=t).attachEvent("onpropertychange",vr)):"blur"===e&&gr()}function _r(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(pr)}function kr(e,t){if("click"===e)return mr(t)}function xr(e,t){if("input"===e||"change"===e)return mr(t)}T&&(yr=lt("input")&&(!document.documentMode||9<document.documentMode));var Sr={eventTypes:ur,_isInputEventSupported:yr,extractEvents:function(e,t,n,r){var i=t?Mn(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=br;else if(lr(i))if(yr)a=xr;else{a=_r;var s=wr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=kr);if(a&&(a=a(e,t)))return fr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Te(i,"number",i.value)}},Or=Hn.extend({view:null,detail:null}),Er={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Er[e])&&!!t[e]}function Ar(){return Tr}var Mr=0,Ir=0,Pr=!1,Cr=!1,jr=Or.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ar,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Mr;return Mr=e.screenX,Pr?"mousemove"===e.type?e.screenX-t:0:(Pr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ir;return Ir=e.screenY,Cr?"mousemove"===e.type?e.screenY-t:0:(Cr=!0,0)}}),Dr=jr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Rr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Nr={eventTypes:Rr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Tn(t):null)&&(t!==Xe(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=jr,c=Rr.mouseLeave,l=Rr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Dr,c=Rr.pointerLeave,l=Rr.pointerEnter,u="pointer");if(e=null==a?o:Mn(a),o=null==t?o:Mn(t),(c=s.getPooled(c,a,n,r)).type=u+"leave",c.target=e,c.relatedTarget=o,(n=s.getPooled(l,t,n,r)).type=u+"enter",n.target=o,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(l=u,a=0,e=s=r;e;e=Pn(e))a++;for(e=0,t=l;t;t=Pn(t))e++;for(;0<a-e;)s=Pn(s),a--;for(;0<e-a;)l=Pn(l),e--;for(;a--;){if(s===l||s===l.alternate)break e;s=Pn(s),l=Pn(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)s.push(r),r=Pn(r);for(r=[];u&&u!==l&&(null===(a=u.alternate)||a!==l);)r.push(u),u=Pn(u);for(u=0;u<s.length;u++)Rn(s[u],"bubbled",c);for(u=r.length;0<u--;)Rn(r[u],"captured",n);return 0==(64&i)?[c]:[c,n]}};var Br="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Lr=Object.prototype.hasOwnProperty;function Ur(e,t){if(Br(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Lr.call(t,n[r])||!Br(e[n[r]],t[n[r]]))return!1;return!0}var Fr=T&&"documentMode"in document&&11>=document.documentMode,qr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},zr=null,Vr=null,Hr=null,$r=!1;function Kr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return $r||null==zr||zr!==un(n)?null:("selectionStart"in(n=zr)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Hr&&Ur(Hr,n)?null:(Hr=n,(e=Hn.getPooled(qr.select,Vr,e,t)).type="select",e.target=zr,Bn(e),e))}var Wr={eventTypes:qr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Ze(i),o=O.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?Mn(t):window,e){case"focus":(lr(i)||"true"===i.contentEditable)&&(zr=i,Vr=t,Hr=null);break;case"blur":Hr=Vr=zr=null;break;case"mousedown":$r=!0;break;case"contextmenu":case"mouseup":case"dragend":return $r=!1,Kr(n,r);case"selectionchange":if(Fr)break;case"keydown":case"keyup":return Kr(n,r)}return null}},Gr=Hn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=Hn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qr=Or.extend({relatedTarget:null});function Yr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Zr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ei=Or.extend({key:function(e){if(e.key){var t=Zr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Xr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ar,charCode:function(e){return"keypress"===e.type?Yr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ti=jr.extend({dataTransfer:null}),ni=Or.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ar}),ri=Hn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=jr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:Bt,extractEvents:function(e,t,n,r){var i=Lt.get(e);if(!i)return null;switch(e){case"keypress":if(0===Yr(n))return null;case"keydown":case"keyup":e=ei;break;case"blur":case"focus":e=Qr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=jr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ni;break;case Ke:case We:case Ge:e=Gr;break;case Je:e=ri;break;case"scroll":e=Or;break;case"wheel":e=ii;break;case"copy":case"cut":case"paste":e=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Dr;break;default:e=Hn}return Bn(t=e.getPooled(i,t,n,r)),t}};if(g)throw Error(a(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=In,m=An,b=Mn,E({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Nr,ChangeEventPlugin:Sr,SelectEventPlugin:Wr,BeforeInputEventPlugin:sr});var ai=[],si=-1;function ci(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function li(e,t){si++,ai[si]=e.current,e.current=t}var ui={},fi={current:ui},di={current:!1},pi=ui;function hi(e,t){var n=e.type.contextTypes;if(!n)return ui;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mi(e){return null!=(e=e.childContextTypes)}function bi(){ci(di),ci(fi)}function yi(e,t,n){if(fi.current!==ui)throw Error(a(168));li(fi,t),li(di,n)}function gi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,be(t)||"Unknown",o));return i({},n,{},r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ui,pi=fi.current,li(fi,e),li(di,di.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=gi(e,t,pi),r.__reactInternalMemoizedMergedChildContext=e,ci(di),ci(fi),li(fi,e)):ci(di),li(di,n)}var _i=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,xi=o.unstable_cancelCallback,Si=o.unstable_requestPaint,Oi=o.unstable_now,Ei=o.unstable_getCurrentPriorityLevel,Ti=o.unstable_ImmediatePriority,Ai=o.unstable_UserBlockingPriority,Mi=o.unstable_NormalPriority,Ii=o.unstable_LowPriority,Pi=o.unstable_IdlePriority,Ci={},ji=o.unstable_shouldYield,Di=void 0!==Si?Si:function(){},Ri=null,Ni=null,Bi=!1,Li=Oi(),Ui=1e4>Li?Oi:function(){return Oi()-Li};function Fi(){switch(Ei()){case Ti:return 99;case Ai:return 98;case Mi:return 97;case Ii:return 96;case Pi:return 95;default:throw Error(a(332))}}function qi(e){switch(e){case 99:return Ti;case 98:return Ai;case 97:return Mi;case 96:return Ii;case 95:return Pi;default:throw Error(a(332))}}function zi(e,t){return e=qi(e),_i(e,t)}function Vi(e,t,n){return e=qi(e),ki(e,t,n)}function Hi(e){return null===Ri?(Ri=[e],Ni=ki(Ti,Ki)):Ri.push(e),Ci}function $i(){if(null!==Ni){var e=Ni;Ni=null,xi(e)}Ki()}function Ki(){if(!Bi&&null!==Ri){Bi=!0;var e=0;try{var t=Ri;zi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ri=null}catch(t){throw null!==Ri&&(Ri=Ri.slice(e+1)),ki(Ti,$i),t}finally{Bi=!1}}}function Wi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Gi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Ji={current:null},Qi=null,Yi=null,Zi=null;function Xi(){Zi=Yi=Qi=null}function eo(e){var t=Ji.current;ci(Ji),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function no(e,t){Qi=e,Zi=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ia=!0),e.firstContext=null)}function ro(e,t){if(Zi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Qi)throw Error(a(308));Yi=t,Qi.dependencies={expirationTime:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function so(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function co(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function uo(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var c=a.next;a.next=s.next,s.next=c}a=s,o.shared.pending=null,null!==(c=e.alternate)&&(null!==(c=c.updateQueue)&&(c.baseQueue=s))}if(null!==a){c=a.next;var l=o.baseState,u=0,f=null,d=null,p=null;if(null!==c)for(var h=c;;){if((s=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=m,f=l):p=p.next=m,s>u&&(u=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),oc(s,h.suspenseConfig);e:{var b=e,y=h;switch(s=t,m=n,y.tag){case 1:if("function"==typeof(b=y.payload)){l=b.call(m,l,s);break e}l=b;break e;case 3:b.effectTag=-4097&b.effectTag|64;case 0:if(null==(s="function"==typeof(b=y.payload)?b.call(m,l,s):b))break e;l=i({},l,s);break e;case 2:io=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[h]:s.push(h))}if(null===(h=h.next)||h===c){if(null===(s=o.shared.pending))break;h=a.next=s.next,s.next=c,o.baseQueue=a=s,o.shared.pending=null}}null===p?f=l:p.next=d,o.baseState=f,o.baseQueue=p,ac(u),e.expirationTime=u,e.memoizedState=l}}function fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var po=Q.ReactCurrentBatchConfig,ho=(new r.Component).refs;function mo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var bo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ks(),i=po.suspense;(i=so(r=Ws(r,e,i),i)).payload=t,null!=n&&(i.callback=n),co(e,i),Gs(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ks(),i=po.suspense;(i=so(r=Ws(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),co(e,i),Gs(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ks(),r=po.suspense;(r=so(n=Ws(n,e,r),r)).tag=2,null!=t&&(r.callback=t),co(e,r),Gs(e,n)}};function yo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Ur(n,r)||!Ur(i,o))}function go(e,t,n){var r=!1,i=ui,o=t.contextType;return"object"==typeof o&&null!==o?o=ro(o):(i=mi(t)?pi:fi.current,o=(r=null!=(r=t.contextTypes))?hi(e,i):ui),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bo.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ho,oo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=ro(o):(o=mi(t)?pi:fi.current,i.context=hi(e,o)),uo(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(mo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&bo.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var _o=Array.isArray;function ko(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ho&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function xo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function So(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ec(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Mc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ko(e,t,n),r.return=e,r):((r=Tc(n.type,n.key,n.props,null,e.mode,r)).ref=ko(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ic(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Ac(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Mc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Tc(t.type,t.key,t.props,null,e.mode,n)).ref=ko(e,null,t),n.return=e,n;case te:return(t=Ic(t,e.mode,n)).return=e,t}if(_o(t)||me(t))return(t=Ac(t,e.mode,n,null)).return=e,t;xo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case te:return n.key===i?u(e,t,n,r):null}if(_o(n)||me(n))return null!==i?null:f(e,t,n,r,null);xo(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(_o(r)||me(r))return f(t,e=e.get(n)||null,r,i,null);xo(t,r)}return null}function m(i,a,s,c){for(var l=null,u=null,f=a,m=a=0,b=null;null!==f&&m<s.length;m++){f.index>m?(b=f,f=null):b=f.sibling;var y=p(i,f,s[m],c);if(null===y){null===f&&(f=b);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,m),null===u?l=y:u.sibling=y,u=y,f=b}if(m===s.length)return n(i,f),l;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],c))&&(a=o(f,a,m),null===u?l=f:u.sibling=f,u=f);return l}for(f=r(i,f);m<s.length;m++)null!==(b=h(f,i,m,s[m],c))&&(e&&null!==b.alternate&&f.delete(null===b.key?m:b.key),a=o(b,a,m),null===u?l=b:u.sibling=b,u=b);return e&&f.forEach((function(e){return t(i,e)})),l}function b(i,s,c,l){var u=me(c);if("function"!=typeof u)throw Error(a(150));if(null==(c=u.call(c)))throw Error(a(151));for(var f=u=null,m=s,b=s=0,y=null,g=c.next();null!==m&&!g.done;b++,g=c.next()){m.index>b?(y=m,m=null):y=m.sibling;var v=p(i,m,g.value,l);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(i,m),s=o(v,s,b),null===f?u=v:f.sibling=v,f=v,m=y}if(g.done)return n(i,m),u;if(null===m){for(;!g.done;b++,g=c.next())null!==(g=d(i,g.value,l))&&(s=o(g,s,b),null===f?u=g:f.sibling=g,f=g);return u}for(m=r(i,m);!g.done;b++,g=c.next())null!==(g=h(m,i,b,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?b:g.key),s=o(g,s,b),null===f?u=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,r,o,c){var l="object"==typeof o&&null!==o&&o.type===ne&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case ee:e:{for(u=o.key,l=r;null!==l;){if(l.key===u){switch(l.tag){case 7:if(o.type===ne){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}break;default:if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=ko(e,l,o),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}o.type===ne?((r=Ac(o.props.children,e.mode,c,o.key)).return=e,e=r):((c=Tc(o.type,o.key,o.props,null,e.mode,c)).ref=ko(e,r,o),c.return=e,e=c)}return s(e);case te:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ic(o,e.mode,c)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Mc(o,e.mode,c)).return=e,e=r),s(e);if(_o(o))return m(e,r,o,c);if(me(o))return b(e,r,o,c);if(u&&xo(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Oo=So(!0),Eo=So(!1),To={},Ao={current:To},Mo={current:To},Io={current:To};function Po(e){if(e===To)throw Error(a(174));return e}function Co(e,t){switch(li(Io,t),li(Mo,e),li(Ao,To),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Be(null,"");break;default:t=Be(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ci(Ao),li(Ao,t)}function jo(){ci(Ao),ci(Mo),ci(Io)}function Do(e){Po(Io.current);var t=Po(Ao.current),n=Be(t,e.type);t!==n&&(li(Mo,e),li(Ao,n))}function Ro(e){Mo.current===e&&(ci(Ao),ci(Mo))}var No={current:0};function Bo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Lo(e,t){return{responder:e,props:t}}var Uo=Q.ReactCurrentDispatcher,Fo=Q.ReactCurrentBatchConfig,qo=0,zo=null,Vo=null,Ho=null,$o=!1;function Ko(){throw Error(a(321))}function Wo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Br(e[n],t[n]))return!1;return!0}function Go(e,t,n,r,i,o){if(qo=o,zo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Uo.current=null===e||null===e.memoizedState?ya:ga,e=n(r,i),t.expirationTime===qo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Ho=Vo=null,t.updateQueue=null,Uo.current=va,e=n(r,i)}while(t.expirationTime===qo)}if(Uo.current=ba,t=null!==Vo&&null!==Vo.next,qo=0,Ho=Vo=zo=null,$o=!1,t)throw Error(a(300));return e}function Jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ho?zo.memoizedState=Ho=e:Ho=Ho.next=e,Ho}function Qo(){if(null===Vo){var e=zo.alternate;e=null!==e?e.memoizedState:null}else e=Vo.next;var t=null===Ho?zo.memoizedState:Ho.next;if(null!==t)Ho=t,Vo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Vo=e).memoizedState,baseState:Vo.baseState,baseQueue:Vo.baseQueue,queue:Vo.queue,next:null},null===Ho?zo.memoizedState=Ho=e:Ho=Ho.next=e}return Ho}function Yo(e,t){return"function"==typeof t?t(e):t}function Zo(e){var t=Qo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Vo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var c=s=o=null,l=i;do{var u=l.expirationTime;if(u<qo){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=f,o=r):c=c.next=f,u>zo.expirationTime&&(zo.expirationTime=u,ac(u))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),oc(u,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===c?o=r:c.next=s,Br(r,t.memoizedState)||(Ia=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Xo(e){var t=Qo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Br(o,t.memoizedState)||(Ia=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ea(e){var t=Jo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:e}).dispatch=ma.bind(null,zo,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=zo.updateQueue)?(t={lastEffect:null},zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Qo().memoizedState}function ra(e,t,n,r){var i=Jo();zo.effectTag|=e,i.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function ia(e,t,n,r){var i=Qo();r=void 0===r?null:r;var o=void 0;if(null!==Vo){var a=Vo.memoizedState;if(o=a.destroy,null!==r&&Wo(r,a.deps))return void ta(t,n,o,r)}zo.effectTag|=e,i.memoizedState=ta(1|t,n,o,r)}function oa(e,t){return ra(516,4,e,t)}function aa(e,t){return ia(516,4,e,t)}function sa(e,t){return ia(4,2,e,t)}function ca(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function la(e,t,n){return n=null!=n?n.concat([e]):null,ia(4,2,ca.bind(null,t,e),n)}function ua(){}function fa(e,t){return Jo().memoizedState=[e,void 0===t?null:t],e}function da(e,t){var n=Qo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pa(e,t){var n=Qo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ha(e,t,n){var r=Fi();zi(98>r?98:r,(function(){e(!0)})),zi(97<r?97:r,(function(){var r=Fo.suspense;Fo.suspense=void 0===t?null:t;try{e(!1),n()}finally{Fo.suspense=r}}))}function ma(e,t,n){var r=Ks(),i=po.suspense;i={expirationTime:r=Ws(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===zo||null!==o&&o===zo)$o=!0,i.expirationTime=qo,zo.expirationTime=qo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Br(s,a))return}catch(e){}Gs(e,r)}}var ba={readContext:ro,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useResponder:Ko,useDeferredValue:Ko,useTransition:Ko},ya={readContext:ro,useCallback:fa,useContext:ro,useEffect:oa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ra(4,2,ca.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Jo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ma.bind(null,zo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Jo().memoizedState=e},useState:ea,useDebugValue:ua,useResponder:Lo,useDeferredValue:function(e,t){var n=ea(e),r=n[0],i=n[1];return oa((function(){var n=Fo.suspense;Fo.suspense=void 0===t?null:t;try{i(e)}finally{Fo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[fa(ha.bind(null,t,e),[t,e]),n]}},ga={readContext:ro,useCallback:da,useContext:ro,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:pa,useReducer:Zo,useRef:na,useState:function(){return Zo(Yo)},useDebugValue:ua,useResponder:Lo,useDeferredValue:function(e,t){var n=Zo(Yo),r=n[0],i=n[1];return aa((function(){var n=Fo.suspense;Fo.suspense=void 0===t?null:t;try{i(e)}finally{Fo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zo(Yo),n=t[0];return t=t[1],[da(ha.bind(null,t,e),[t,e]),n]}},va={readContext:ro,useCallback:da,useContext:ro,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:pa,useReducer:Xo,useRef:na,useState:function(){return Xo(Yo)},useDebugValue:ua,useResponder:Lo,useDeferredValue:function(e,t){var n=Xo(Yo),r=n[0],i=n[1];return aa((function(){var n=Fo.suspense;Fo.suspense=void 0===t?null:t;try{i(e)}finally{Fo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Xo(Yo),n=t[0];return t=t[1],[da(ha.bind(null,t,e),[t,e]),n]}},wa=null,_a=null,ka=!1;function xa(e,t){var n=Sc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Oa(e){if(ka){var t=_a;if(t){var n=t;if(!Sa(e,t)){if(!(t=_n(n.nextSibling))||!Sa(e,t))return e.effectTag=-1025&e.effectTag|2,ka=!1,void(wa=e);xa(wa,n)}wa=e,_a=_n(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,ka=!1,wa=e}}function Ea(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wa=e}function Ta(e){if(e!==wa)return!1;if(!ka)return Ea(e),ka=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!gn(t,e.memoizedProps))for(t=_a;t;)xa(e,t),t=_n(t.nextSibling);if(Ea(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){_a=_n(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}_a=null}}else _a=wa?_n(e.stateNode.nextSibling):null;return!0}function Aa(){_a=wa=null,ka=!1}var Ma=Q.ReactCurrentOwner,Ia=!1;function Pa(e,t,n,r){t.child=null===e?Eo(t,null,n,r):Oo(t,e.child,n,r)}function Ca(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=Go(e,t,n,r,o,i),null===e||Ia?(t.effectTag|=1,Pa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ga(e,t,i))}function ja(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Oc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Tc(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Da(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Ur)(i,r)&&e.ref===t.ref)?Ga(e,t,o):(t.effectTag|=1,(e=Ec(a,r)).ref=t.ref,e.return=t,t.child=e)}function Da(e,t,n,r,i,o){return null!==e&&Ur(e.memoizedProps,r)&&e.ref===t.ref&&(Ia=!1,i<o)?(t.expirationTime=e.expirationTime,Ga(e,t,o)):Na(e,t,n,r,o)}function Ra(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Na(e,t,n,r,i){var o=mi(n)?pi:fi.current;return o=hi(t,o),no(t,i),n=Go(e,t,n,r,o,i),null===e||Ia?(t.effectTag|=1,Pa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ga(e,t,i))}function Ba(e,t,n,r,i){if(mi(n)){var o=!0;vi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),go(t,n,r),wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=ro(l):l=hi(t,l=mi(n)?pi:fi.current);var u=n.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==l)&&vo(t,a,r,l),io=!1;var d=t.memoizedState;a.state=d,uo(t,r,a,i),c=t.memoizedState,s!==r||d!==c||di.current||io?("function"==typeof u&&(mo(t,n,u,r),c=t.memoizedState),(s=io||yo(t,n,s,r,d,c,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,ao(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Gi(t.type,s),c=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=ro(l):l=hi(t,l=mi(n)?pi:fi.current),(f="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==l)&&vo(t,a,r,l),io=!1,c=t.memoizedState,a.state=c,uo(t,r,a,i),d=t.memoizedState,s!==r||c!==d||di.current||io?("function"==typeof u&&(mo(t,n,u,r),d=t.memoizedState),(u=io||yo(t,n,s,r,c,d,l))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return La(e,t,n,r,o,i)}function La(e,t,n,r,i,o){Ra(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&wi(t,n,!1),Ga(e,t,o);r=t.stateNode,Ma.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Oo(t,e.child,null,o),t.child=Oo(t,null,s,o)):Pa(e,t,s,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function Ua(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Co(e,t.containerInfo)}var Fa,qa,za,Va={dehydrated:null,retryTime:0};function Ha(e,t,n){var r,i=t.mode,o=t.pendingProps,a=No.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),li(No,1&a),null===e){if(void 0!==o.fallback&&Oa(t),s){if(s=o.fallback,(o=Ac(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Ac(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=Va,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Eo(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Ec(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Ec(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Va,t.child=n,i}return n=Oo(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Ac(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Ac(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Va,t.child=o,n}return t.memoizedState=null,t.child=Oo(t,e,o.children,n)}function $a(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),to(e.return,t)}function Ka(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Wa(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Pa(e,t,r.children,n),0!=(2&(r=No.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$a(e,n);else if(19===e.tag)$a(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(li(No,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Bo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ka(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Bo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ka(t,!0,n,null,o,t.lastEffect);break;case"together":Ka(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&ac(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ec(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ec(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ja(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qa(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return mi(t.type)&&bi(),null;case 3:return jo(),ci(di),ci(fi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ta(t)||(t.effectTag|=4),null;case 5:Ro(t),n=Po(Io.current);var o=t.type;if(null!==e&&null!=t.stateNode)qa(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Po(Ao.current),Ta(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[Sn]=t,r[On]=s,o){case"iframe":case"object":case"embed":Wt("load",r);break;case"video":case"audio":for(e=0;e<Qe.length;e++)Wt(Qe[e],r);break;case"source":Wt("error",r);break;case"img":case"image":case"link":Wt("error",r),Wt("load",r);break;case"form":Wt("reset",r),Wt("submit",r);break;case"details":Wt("toggle",r);break;case"input":xe(r,s),Wt("invalid",r),cn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Wt("invalid",r),cn(n,"onChange");break;case"textarea":Pe(r,s),Wt("invalid",r),cn(n,"onChange")}for(var c in on(o,s),e=null,s)if(s.hasOwnProperty(c)){var l=s[c];"children"===c?"string"==typeof l?r.textContent!==l&&(e=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(e=["children",""+l]):S.hasOwnProperty(c)&&null!=l&&cn(n,c)}switch(o){case"input":we(r),Ee(r,s,!0);break;case"textarea":we(r),je(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=ln)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=Ne(o)),e===sn?"script"===o?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(o,{is:r.is}):(e=c.createElement(o),"select"===o&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,o),e[Sn]=t,e[On]=r,Fa(e,t),t.stateNode=e,c=an(o,r),o){case"iframe":case"object":case"embed":Wt("load",e),l=r;break;case"video":case"audio":for(l=0;l<Qe.length;l++)Wt(Qe[l],e);l=r;break;case"source":Wt("error",e),l=r;break;case"img":case"image":case"link":Wt("error",e),Wt("load",e),l=r;break;case"form":Wt("reset",e),Wt("submit",e),l=r;break;case"details":Wt("toggle",e),l=r;break;case"input":xe(e,r),l=ke(e,r),Wt("invalid",e),cn(n,"onChange");break;case"option":l=Ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),Wt("invalid",e),cn(n,"onChange");break;case"textarea":Pe(e,r),l=Ie(e,r),Wt("invalid",e),cn(n,"onChange");break;default:l=r}on(o,l);var u=l;for(s in u)if(u.hasOwnProperty(s)){var f=u[s];"style"===s?nn(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Ue(e,f):"children"===s?"string"==typeof f?("textarea"!==o||""!==f)&&Fe(e,f):"number"==typeof f&&Fe(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=f&&cn(n,s):null!=f&&Y(e,s,f,c))}switch(o){case"input":we(e),Ee(e,r,!1);break;case"textarea":we(e),je(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ge(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Me(e,!!r.multiple,n,!1):null!=r.defaultValue&&Me(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=ln)}yn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)za(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Po(Io.current),Po(Ao.current),Ta(t)?(n=t.stateNode,r=t.memoizedProps,n[Sn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Sn]=t,t.stateNode=n)}return null;case 13:return ci(No),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ta(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&No.current)?Ts===ws&&(Ts=_s):(Ts!==ws&&Ts!==_s||(Ts=ks),0!==Cs&&null!==Ss&&(jc(Ss,Es),Dc(Ss,Cs)))),(n||r)&&(t.effectTag|=4),null);case 4:return jo(),null;case 10:return eo(t),null;case 17:return mi(t.type)&&bi(),null;case 19:if(ci(No),null===(r=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=r.rendering)){if(o)Ja(r,!1);else if(Ts!==ws||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Bo(s))){for(t.effectTag|=64,Ja(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return li(No,1&No.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Bo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ja(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ui()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Ja(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Ui()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ui(),n.sibling=null,t=No.current,li(No,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Ya(e){switch(e.tag){case 1:mi(e.type)&&bi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(jo(),ci(di),ci(fi),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Ro(e),null;case 13:return ci(No),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ci(No),null;case 4:return jo(),null;case 10:return eo(e),null;default:return null}}function Za(e,t){return{value:e,source:t,stack:ye(t)}}Fa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qa=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,c,l=t.stateNode;switch(Po(Ao.current),e=null,n){case"input":a=ke(l,a),r=ke(l,r),e=[];break;case"option":a=Ae(l,a),r=Ae(l,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Ie(l,a),r=Ie(l,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(l.onclick=ln)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(c in l=a[s])l.hasOwnProperty(c)&&(n||(n={}),n[c]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var u=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l))if("style"===s)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(n||(n={}),n[c]=u[c])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(s,u)):"children"===s?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=u&&cn(o,s),e||l===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},za=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Xa="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ye(n)),null!==n&&be(n.type),t=t.value,null!==e&&1===e.tag&&be(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){gc(e,t)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Gi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void is(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Gi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&fo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&yn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Nt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"==typeof kc&&kc(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;zi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){gc(i,e)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){gc(e,t)}}(t,n);break;case 5:ts(t);break;case 4:us(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function cs(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:{for(var t=e.return;null!==t;){if(cs(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Fe(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||cs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=ln));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function us(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var c=e,l=o,u=n,f=l;;)if(as(c,f,u),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break e;for(;null===f.sibling;){if(null===f.return||f.return===l)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(c=r,l=o.stateNode,8===c.nodeType?c.parentNode.removeChild(l):c.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(as(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function fs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[On]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Se(n,r),an(e,i),t=an(e,r),i=0;i<o.length;i+=2){var s=o[i],c=o[i+1];"style"===s?nn(n,c):"dangerouslySetInnerHTML"===s?Ue(n,c):"children"===s?Fe(n,c):Y(n,s,c,t)}switch(e){case"input":Oe(n,r);break;case"textarea":Ce(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Me(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Me(n,!!r.multiple,r.defaultValue,!0):Me(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Nt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ds=Ui()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=tn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ds(t);case 19:return void ds(t);case 17:return}throw Error(a(163))}function ds(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xa),t.forEach((function(t){var r=wc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=so(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ns||(Ns=!0,Bs=r),es(e,t)},n}function ms(e,t,n){(n=so(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return es(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ls?Ls=new Set([this]):Ls.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var bs,ys=Math.ceil,gs=Q.ReactCurrentDispatcher,vs=Q.ReactCurrentOwner,ws=0,_s=3,ks=4,xs=0,Ss=null,Os=null,Es=0,Ts=ws,As=null,Ms=1073741823,Is=1073741823,Ps=null,Cs=0,js=!1,Ds=0,Rs=null,Ns=!1,Bs=null,Ls=null,Us=!1,Fs=null,qs=90,zs=null,Vs=0,Hs=null,$s=0;function Ks(){return 0!=(48&xs)?1073741821-(Ui()/10|0):0!==$s?$s:$s=1073741821-(Ui()/10|0)}function Ws(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Fi();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&xs))return Es;if(null!==n)e=Wi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Wi(e,150,100);break;case 97:case 96:e=Wi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Ss&&e===Es&&--e,e}function Gs(e,t){if(50<Vs)throw Vs=0,Hs=null,Error(a(185));if(null!==(e=Js(e,t))){var n=Fi();1073741823===t?0!=(8&xs)&&0==(48&xs)?Xs(e):(Ys(e),0===xs&&$i()):Ys(e),0==(4&xs)||98!==n&&99!==n||(null===zs?zs=new Map([[e,t]]):(void 0===(n=zs.get(e))||n>t)&&zs.set(e,t))}}function Js(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Ss===i&&(ac(t),Ts===ks&&jc(i,Es)),Dc(i,t)),i}function Qs(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Cc(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Ys(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Hi(Xs.bind(null,e));else{var t=Qs(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ks();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ci&&xi(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Hi(Xs.bind(null,e)):Vi(r,Zs.bind(null,e),{timeout:10*(1073741821-t)-Ui()}),e.callbackNode=t}}}function Zs(e,t){if($s=0,t)return Rc(e,t=Ks()),Ys(e),null;var n=Qs(e);if(0!==n){if(t=e.callbackNode,0!=(48&xs))throw Error(a(327));if(mc(),e===Ss&&n===Es||nc(e,n),null!==Os){var r=xs;xs|=16;for(var i=ic();;)try{cc();break}catch(t){rc(e,t)}if(Xi(),xs=r,gs.current=i,1===Ts)throw t=As,nc(e,n),jc(e,n),Ys(e),t;if(null===Os)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Ts,Ss=null,r){case ws:case 1:throw Error(a(345));case 2:Rc(e,2<n?2:n);break;case _s:if(jc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fc(i)),1073741823===Ms&&10<(i=Ds+500-Ui())){if(js){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,nc(e,n);break}}if(0!==(o=Qs(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=vn(dc.bind(null,e),i);break}dc(e);break;case ks:if(jc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fc(i)),js&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,nc(e,n);break}if(0!==(i=Qs(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Is?r=10*(1073741821-Is)-Ui():1073741823===Ms?r=0:(r=10*(1073741821-Ms)-5e3,0>(r=(i=Ui())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ys(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=vn(dc.bind(null,e),r);break}dc(e);break;case 5:if(1073741823!==Ms&&null!==Ps){o=Ms;var s=Ps;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Ui()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){jc(e,n),e.timeoutHandle=vn(dc.bind(null,e),r);break}}dc(e);break;default:throw Error(a(329))}if(Ys(e),e.callbackNode===t)return Zs.bind(null,e)}}return null}function Xs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&xs))throw Error(a(327));if(mc(),e===Ss&&t===Es||nc(e,t),null!==Os){var n=xs;xs|=16;for(var r=ic();;)try{sc();break}catch(t){rc(e,t)}if(Xi(),xs=n,gs.current=r,1===Ts)throw n=As,nc(e,t),jc(e,t),Ys(e),n;if(null!==Os)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ss=null,dc(e),Ys(e)}return null}function ec(e,t){var n=xs;xs|=1;try{return e(t)}finally{0===(xs=n)&&$i()}}function tc(e,t){var n=xs;xs&=-2,xs|=8;try{return e(t)}finally{0===(xs=n)&&$i()}}function nc(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&bi();break;case 3:jo(),ci(di),ci(fi);break;case 5:Ro(r);break;case 4:jo();break;case 13:case 19:ci(No);break;case 10:eo(r)}n=n.return}Ss=e,Os=Ec(e.current,null),Es=t,Ts=ws,As=null,Is=Ms=1073741823,Ps=null,Cs=0,js=!1}function rc(e,t){for(;;){try{if(Xi(),Uo.current=ba,$o)for(var n=zo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(qo=0,Ho=Vo=zo=null,$o=!1,null===Os||null===Os.return)return Ts=1,As=t,Os=null;e:{var i=e,o=Os.return,a=Os,s=t;if(t=Es,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s;if(0==(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&No.current),f=o;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(d){var m=f.updateQueue;if(null===m){var b=new Set;b.add(c),f.updateQueue=b}else m.add(c);if(0==(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=so(1073741823,null);y.tag=2,co(a,y)}a.expirationTime=1073741823;break e}s=void 0,a=t;var g=i.pingCache;if(null===g?(g=i.pingCache=new ps,s=new Set,g.set(c,s)):void 0===(s=g.get(c))&&(s=new Set,g.set(c,s)),!s.has(a)){s.add(a);var v=vc.bind(null,i,c,a);c.then(v,v)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);s=Error((be(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(a))}5!==Ts&&(Ts=2),s=Za(s,a),f=o;do{switch(f.tag){case 3:c=s,f.effectTag|=4096,f.expirationTime=t,lo(f,hs(f,c,t));break e;case 1:c=s;var w=f.type,_=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===Ls||!Ls.has(_)))){f.effectTag|=4096,f.expirationTime=t,lo(f,ms(f,c,t));break e}}f=f.return}while(null!==f)}Os=uc(Os)}catch(e){t=e;continue}break}}function ic(){var e=gs.current;return gs.current=ba,null===e?ba:e}function oc(e,t){e<Ms&&2<e&&(Ms=e),null!==t&&e<Is&&2<e&&(Is=e,Ps=t)}function ac(e){e>Cs&&(Cs=e)}function sc(){for(;null!==Os;)Os=lc(Os)}function cc(){for(;null!==Os&&!ji();)Os=lc(Os)}function lc(e){var t=bs(e.alternate,e,Es);return e.memoizedProps=e.pendingProps,null===t&&(t=uc(e)),vs.current=null,t}function uc(e){Os=e;do{var t=Os.alternate;if(e=Os.return,0==(2048&Os.effectTag)){if(t=Qa(t,Os,Es),1===Es||1!==Os.childExpirationTime){for(var n=0,r=Os.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Os.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Os.firstEffect),null!==Os.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Os.firstEffect),e.lastEffect=Os.lastEffect),1<Os.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Os:e.firstEffect=Os,e.lastEffect=Os))}else{if(null!==(t=Ya(Os)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Os.sibling))return t;Os=e}while(null!==Os);return Ts===ws&&(Ts=5),null}function fc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function dc(e){var t=Fi();return zi(99,pc.bind(null,e,t)),null}function pc(e,t){do{mc()}while(null!==Fs);if(0!=(48&xs))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=fc(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ss&&(Os=Ss=null,Es=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=xs;xs|=32,vs.current=null,mn=Kt;var s=pn();if(hn(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(c=(c=s.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(l&&0!==l.rangeCount){c=l.anchorNode;var u=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{c.nodeType,f.nodeType}catch(e){c=null;break e}var d=0,p=-1,h=-1,m=0,b=0,y=s,g=null;t:for(;;){for(var v;y!==c||0!==u&&3!==y.nodeType||(p=d+u),y!==f||0!==l&&3!==y.nodeType||(h=d+l),3===y.nodeType&&(d+=y.nodeValue.length),null!==(v=y.firstChild);)g=y,y=v;for(;;){if(y===s)break t;if(g===c&&++m===u&&(p=d),g===f&&++b===l&&(h=d),null!==(v=y.nextSibling))break;g=(y=g).parentNode}y=v}c=-1===p||-1===h?null:{start:p,end:h}}else c=null}c=c||{start:0,end:0}}else c=null;bn={activeElementDetached:null,focusedElem:s,selectionRange:c},Kt=!1,Rs=i;do{try{hc()}catch(e){if(null===Rs)throw Error(a(330));gc(Rs,e),Rs=Rs.nextEffect}}while(null!==Rs);Rs=i;do{try{for(s=e,c=t;null!==Rs;){var w=Rs.effectTag;if(16&w&&Fe(Rs.stateNode,""),128&w){var _=Rs.alternate;if(null!==_){var k=_.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&w){case 2:ls(Rs),Rs.effectTag&=-3;break;case 6:ls(Rs),Rs.effectTag&=-3,fs(Rs.alternate,Rs);break;case 1024:Rs.effectTag&=-1025;break;case 1028:Rs.effectTag&=-1025,fs(Rs.alternate,Rs);break;case 4:fs(Rs.alternate,Rs);break;case 8:us(s,u=Rs,c),ss(u)}Rs=Rs.nextEffect}}catch(e){if(null===Rs)throw Error(a(330));gc(Rs,e),Rs=Rs.nextEffect}}while(null!==Rs);if(k=bn,_=pn(),w=k.focusedElem,c=k.selectionRange,_!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==c&&hn(w)&&(_=c.start,void 0===(k=c.end)&&(k=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(k,w.value.length)):(k=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(k=k.getSelection(),u=w.textContent.length,s=Math.min(c.start,u),c=void 0===c.end?s:Math.min(c.end,u),!k.extend&&s>c&&(u=c,c=s,s=u),u=dn(w,s),f=dn(w,c),u&&f&&(1!==k.rangeCount||k.anchorNode!==u.node||k.anchorOffset!==u.offset||k.focusNode!==f.node||k.focusOffset!==f.offset)&&((_=_.createRange()).setStart(u.node,u.offset),k.removeAllRanges(),s>c?(k.addRange(_),k.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),k.addRange(_))))),_=[];for(k=w;k=k.parentNode;)1===k.nodeType&&_.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(k=_[w]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Kt=!!mn,bn=mn=null,e.current=n,Rs=i;do{try{for(w=e;null!==Rs;){var x=Rs.effectTag;if(36&x&&os(w,Rs.alternate,Rs),128&x){_=void 0;var S=Rs.ref;if(null!==S){var O=Rs.stateNode;switch(Rs.tag){case 5:_=O;break;default:_=O}"function"==typeof S?S(_):S.current=_}}Rs=Rs.nextEffect}}catch(e){if(null===Rs)throw Error(a(330));gc(Rs,e),Rs=Rs.nextEffect}}while(null!==Rs);Rs=null,Di(),xs=o}else e.current=n;if(Us)Us=!1,Fs=e,qs=t;else for(Rs=i;null!==Rs;)t=Rs.nextEffect,Rs.nextEffect=null,Rs=t;if(0===(t=e.firstPendingTime)&&(Ls=null),1073741823===t?e===Hs?Vs++:(Vs=0,Hs=e):Vs=0,"function"==typeof _c&&_c(n.stateNode,r),Ys(e),Ns)throw Ns=!1,e=Bs,Bs=null,e;return 0!=(8&xs)||$i(),null}function hc(){for(;null!==Rs;){var e=Rs.effectTag;0!=(256&e)&&ns(Rs.alternate,Rs),0==(512&e)||Us||(Us=!0,Vi(97,(function(){return mc(),null}))),Rs=Rs.nextEffect}}function mc(){if(90!==qs){var e=97<qs?97:qs;return qs=90,zi(e,bc)}}function bc(){if(null===Fs)return!1;var e=Fs;if(Fs=null,0!=(48&xs))throw Error(a(331));var t=xs;for(xs|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),is(5,n)}}catch(t){if(null===e)throw Error(a(330));gc(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return xs=t,$i(),!0}function yc(e,t,n){co(e,t=hs(e,t=Za(n,t),1073741823)),null!==(e=Js(e,1073741823))&&Ys(e)}function gc(e,t){if(3===e.tag)yc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){yc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ls||!Ls.has(r))){co(n,e=ms(n,e=Za(t,e),1073741823)),null!==(n=Js(n,1073741823))&&Ys(n);break}}n=n.return}}function vc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ss===e&&Es===n?Ts===ks||Ts===_s&&1073741823===Ms&&Ui()-Ds<500?nc(e,Es):js=!0:Cc(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Ys(e)))}function wc(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Ws(t=Ks(),e,null)),null!==(e=Js(e,t))&&Ys(e)}bs=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||di.current)Ia=!0;else{if(r<n){switch(Ia=!1,t.tag){case 3:Ua(t),Aa();break;case 5:if(Do(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:mi(t.type)&&vi(t);break;case 4:Co(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,li(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ha(e,t,n):(li(No,1&No.current),null!==(t=Ga(e,t,n))?t.sibling:null);li(No,1&No.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Wa(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),li(No,No.current),!r)return null}return Ga(e,t,n)}Ia=!1}}else Ia=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=hi(t,fi.current),no(t,n),i=Go(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&mo(t,r,s,e),i.updater=bo,t.stateNode=i,i._reactInternalFiber=t,wo(t,r,e,n),t=La(null,t,r,!0,o,n)}else t.tag=0,Pa(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Oc(e)?1:0;if(null!=e){if((e=e.$$typeof)===ce)return 11;if(e===fe)return 14}return 2}(i),e=Gi(i,e),o){case 0:t=Na(null,t,i,e,n);break e;case 1:t=Ba(null,t,i,e,n);break e;case 11:t=Ca(null,t,i,e,n);break e;case 14:t=ja(null,t,i,Gi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Na(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 3:if(Ua(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),uo(t,r,null,n),(r=t.memoizedState.element)===i)Aa(),t=Ga(e,t,n);else{if((i=t.stateNode.hydrate)&&(_a=_n(t.stateNode.containerInfo.firstChild),wa=t,i=ka=!0),i)for(n=Eo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Pa(e,t,r,n),Aa();t=t.child}return t;case 5:return Do(t),null===e&&Oa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,gn(r,i)?s=null:null!==o&&gn(r,o)&&(t.effectTag|=16),Ra(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Pa(e,t,s,n),t=t.child),t;case 6:return null===e&&Oa(t),null;case 13:return Ha(e,t,n);case 4:return Co(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oo(t,null,r,n):Pa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ca(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 7:return Pa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var c=t.type._context;if(li(Ji,c._currentValue),c._currentValue=o,null!==s)if(c=s.value,0===(o=Br(c,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(s.children===i.children&&!di.current){t=Ga(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===c.tag&&((u=so(n,null)).tag=2,co(c,u)),c.expirationTime<n&&(c.expirationTime=n),null!==(u=c.alternate)&&u.expirationTime<n&&(u.expirationTime=n),to(c.return,n),l.expirationTime<n&&(l.expirationTime=n);break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Pa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,no(t,n),r=r(i=ro(i,o.unstable_observedBits)),t.effectTag|=1,Pa(e,t,r,n),t.child;case 14:return o=Gi(i=t.type,t.pendingProps),ja(e,t,i,o=Gi(i.type,o),r,n);case 15:return Da(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,mi(r)?(e=!0,vi(t)):e=!1,no(t,n),go(t,r,i),wo(t,r,i,n),La(null,t,r,!0,e,n);case 19:return Wa(e,t,n)}throw Error(a(156,t.tag))};var _c=null,kc=null;function xc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Sc(e,t,n,r){return new xc(e,t,n,r)}function Oc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ec(e,t){var n=e.alternate;return null===n?((n=Sc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tc(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Oc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Ac(n.children,i,o,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=Sc(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case le:return(e=Sc(13,n,t,i)).type=le,e.elementType=le,e.expirationTime=o,e;case ue:return(e=Sc(19,n,t,i)).elementType=ue,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case ce:s=11;break e;case fe:s=14;break e;case de:s=16,r=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Sc(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Ac(e,t,n,r){return(e=Sc(7,e,r,t)).expirationTime=n,e}function Mc(e,t,n){return(e=Sc(6,e,null,t)).expirationTime=n,e}function Ic(e,t,n){return(t=Sc(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pc(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Cc(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function jc(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Dc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Rc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Nc(e,t,n,r){var i=t.current,o=Ks(),s=po.suspense;o=Ws(o,i,s);e:if(n){t:{if(Xe(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(mi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var l=n.type;if(mi(l)){n=gi(n,l,c);break e}}n=c}else n=ui;return null===t.context?t.context=n:t.pendingContext=n,(t=so(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),co(i,t),Gs(i,o),o}function Bc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Lc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Uc(e,t){Lc(e,t),(e=e.alternate)&&Lc(e,t)}function Fc(e,t,n){var r=new Pc(e,t,n=null!=n&&!0===n.hydrate),i=Sc(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,oo(i),e[En]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);Et.forEach((function(e){ht(e,t,n)})),Tt.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function zc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Bc(a);s.call(e)}}Nc(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Fc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var c=i;i=function(){var e=Bc(a);c.call(e)}}tc((function(){Nc(t,a,e,i)}))}return Bc(a)}function Vc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qc(t))throw Error(a(200));return Vc(e,t,null,n)}Fc.prototype.render=function(e){Nc(e,this._internalRoot,null,null)},Fc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Nc(null,e,null,(function(){t[En]=null}))},mt=function(e){if(13===e.tag){var t=Wi(Ks(),150,100);Gs(e,t),Uc(e,t)}},bt=function(e){13===e.tag&&(Gs(e,3),Uc(e,3))},yt=function(e){if(13===e.tag){var t=Ks();Gs(e,t=Ws(t,e,null)),Uc(e,t)}},A=function(e,t,n){switch(t){case"input":if(Oe(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=In(r);if(!i)throw Error(a(90));_e(r),Oe(r,i)}}}break;case"textarea":Ce(e,n);break;case"select":null!=(t=n.value)&&Me(e,!!n.multiple,t,!1)}},D=ec,R=function(e,t,n,r,i){var o=xs;xs|=4;try{return zi(98,e.bind(null,t,n,r,i))}finally{0===(xs=o)&&$i()}},N=function(){0==(49&xs)&&(function(){if(null!==zs){var e=zs;zs=null,e.forEach((function(e,t){Rc(t,e),Ys(t)})),$i()}}(),mc())},B=function(e,t){var n=xs;xs|=2;try{return e(t)}finally{0===(xs=n)&&$i()}};var $c,Kc,Wc={Events:[An,Mn,In,E,x,Bn,function(e){it(e,Nn)},C,j,Yt,st,mc,{current:!1}]};Kc=($c={findFiberByHostInstance:Tn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);_c=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},kc=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(i({},$c,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Kc?Kc(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wc,t.createPortal=Hc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&xs))throw Error(a(187));var n=xs;xs|=1;try{return zi(99,e.bind(null,t))}finally{xs=n,$i()}},t.hydrate=function(e,t,n){if(!qc(t))throw Error(a(200));return zc(null,e,t,!0,n)},t.render=function(e,t,n){if(!qc(t))throw Error(a(200));return zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!qc(e))throw Error(a(40));return!!e._reactRootContainer&&(tc((function(){zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[En]=null}))})),!0)},t.unstable_batchedUpdates=ec,t.unstable_createPortal=function(e,t){return Hc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qc(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return zc(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(1080)},function(e,t,n){"use strict";
179 /** @license React v0.19.1
180  * scheduler.production.min.js
181  *
182  * Copyright (c) Facebook, Inc. and its affiliates.
183  *
184  * This source code is licensed under the MIT license found in the
185  * LICENSE file in the root directory of this source tree.
186  */var r,i,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,u=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(u,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(u,0))},i=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var b=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var y=p.now();t.unstable_now=function(){return p.now()-y}}var g=!1,v=null,w=-1,_=5,k=0;a=function(){return t.unstable_now()>=k},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,S=x.port2;x.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();k=e+_;try{v(!0,e)?S.postMessage(null):(g=!1,v=null)}catch(e){throw S.postMessage(null),e}}else g=!1},r=function(e){v=e,g||(g=!0,S.postMessage(null))},i=function(e,n){w=h((function(){e(t.unstable_now())}),n)},o=function(){m(w),w=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<A(i,t)))break e;e[r]=t,e[n]=i,n=r}}function E(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,c=e[s];if(void 0!==a&&0>A(a,n))void 0!==c&&0>A(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==c&&0>A(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var M=[],I=[],P=1,C=null,j=3,D=!1,R=!1,N=!1;function B(e){for(var t=E(I);null!==t;){if(null===t.callback)T(I);else{if(!(t.startTime<=e))break;T(I),t.sortIndex=t.expirationTime,O(M,t)}t=E(I)}}function L(e){if(N=!1,B(e),!R)if(null!==E(M))R=!0,r(U);else{var t=E(I);null!==t&&i(L,t.startTime-e)}}function U(e,n){R=!1,N&&(N=!1,o()),D=!0;var r=j;try{for(B(n),C=E(M);null!==C&&(!(C.expirationTime>n)||e&&!a());){var s=C.callback;if(null!==s){C.callback=null,j=C.priorityLevel;var c=s(C.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?C.callback=c:C===E(M)&&T(M),B(n)}else T(M);C=E(M)}if(null!==C)var l=!0;else{var u=E(I);null!==u&&i(L,u.startTime-n),l=!1}return l}finally{C=null,j=r,D=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var q=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||D||(R=!0,r(U))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return E(M)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=q,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:F(e)}else a=F(e),c=s;return e={id:P++,callback:n,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,O(I,e),null===E(M)&&e===E(I)&&(N?o():N=!0,i(L,c-s))):(e.sortIndex=a,O(M,e),R||D||(R=!0,r(U))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();B(e);var n=E(M);return n!==C&&null!==C&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<C.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},function(e,t,n){"use strict";
187 /** @license React v16.13.1
188  * react-is.production.min.js
189  *
190  * Copyright (c) Facebook, Inc. and its affiliates.
191  *
192  * This source code is licensed under the MIT license found in the
193  * LICENSE file in the root directory of this source tree.
194  */var r="function"==typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,b=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,v=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case d:case a:case c:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case y:case b:case l:return e;default:return t}}case o:return t}}}function x(e){return k(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=y,t.Memo=b,t.Portal=o,t.Profiler=c,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||k(e)===f},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===y},t.isMemo=function(e){return k(e)===b},t.isPortal=function(e){return k(e)===o},t.isProfiler=function(e){return k(e)===c},t.isStrictMode=function(e){return k(e)===s},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===c||e===s||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===b||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===v||e.$$typeof===w||e.$$typeof===_||e.$$typeof===g)},t.typeOf=k},function(e,t,n){var r=n(37),i=n(1083);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){var r=n(31),i=n(1084),o=n(951),a=n(1090),s=n(1091),c=n(1092),l=n(1093),u=n(1094),f=n(1095),d=n(1096),p=n(1097),h=n(1098),m=n(1099),b=n(1100),y=n(1101),g=n(1102);(t=r(!1)).i(i),t.push([e.i,"@import url(https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,700,800&display=swap);"]),t.push([e.i,"@import url(https://fonts.googleapis.com/css?family=Courier+Prime&display=swap);"]);var v=o(a),w=o(a,{hash:"?#iefix"}),_=o(s),k=o(c),x=o(l),S=o(u,{hash:"#fontawesome"}),O=o(f),E=o(f,{hash:"?#iefix"}),T=o(d),A=o(p),M=o(h),I=o(m,{hash:"#fontawesome"}),P=o(b),C=o(y),j=o(g);t.push([e.i,'/*!\n * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */.fa,.fas,.far,.fal,.fad,.fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:solid 0.08em #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fas.fa-pull-left,.far.fa-pull-left,.fal.fa-pull-left,.fab.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fas.fa-pull-right,.far.fa-pull-right,.fal.fa-pull-right,.fab.fa-pull-right{margin-left:.3em}.fa-spin{animation:fa-spin 2s infinite linear}.fa-pulse{animation:fa-spin 1s infinite steps(8)}@keyframes fa-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";transform:scale(1, -1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";transform:scale(-1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-flip-both{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\\f26e"}.fa-accessible-icon:before{content:"\\f368"}.fa-accusoft:before{content:"\\f369"}.fa-acquisitions-incorporated:before{content:"\\f6af"}.fa-ad:before{content:"\\f641"}.fa-address-book:before{content:"\\f2b9"}.fa-address-card:before{content:"\\f2bb"}.fa-adjust:before{content:"\\f042"}.fa-adn:before{content:"\\f170"}.fa-adversal:before{content:"\\f36a"}.fa-affiliatetheme:before{content:"\\f36b"}.fa-air-freshener:before{content:"\\f5d0"}.fa-airbnb:before{content:"\\f834"}.fa-algolia:before{content:"\\f36c"}.fa-align-center:before{content:"\\f037"}.fa-align-justify:before{content:"\\f039"}.fa-align-left:before{content:"\\f036"}.fa-align-right:before{content:"\\f038"}.fa-alipay:before{content:"\\f642"}.fa-allergies:before{content:"\\f461"}.fa-amazon:before{content:"\\f270"}.fa-amazon-pay:before{content:"\\f42c"}.fa-ambulance:before{content:"\\f0f9"}.fa-american-sign-language-interpreting:before{content:"\\f2a3"}.fa-amilia:before{content:"\\f36d"}.fa-anchor:before{content:"\\f13d"}.fa-android:before{content:"\\f17b"}.fa-angellist:before{content:"\\f209"}.fa-angle-double-down:before{content:"\\f103"}.fa-angle-double-left:before{content:"\\f100"}.fa-angle-double-right:before{content:"\\f101"}.fa-angle-double-up:before{content:"\\f102"}.fa-angle-down:before{content:"\\f107"}.fa-angle-left:before{content:"\\f104"}.fa-angle-right:before{content:"\\f105"}.fa-angle-up:before{content:"\\f106"}.fa-angry:before{content:"\\f556"}.fa-angrycreative:before{content:"\\f36e"}.fa-angular:before{content:"\\f420"}.fa-ankh:before{content:"\\f644"}.fa-app-store:before{content:"\\f36f"}.fa-app-store-ios:before{content:"\\f370"}.fa-apper:before{content:"\\f371"}.fa-apple:before{content:"\\f179"}.fa-apple-alt:before{content:"\\f5d1"}.fa-apple-pay:before{content:"\\f415"}.fa-archive:before{content:"\\f187"}.fa-archway:before{content:"\\f557"}.fa-arrow-alt-circle-down:before{content:"\\f358"}.fa-arrow-alt-circle-left:before{content:"\\f359"}.fa-arrow-alt-circle-right:before{content:"\\f35a"}.fa-arrow-alt-circle-up:before{content:"\\f35b"}.fa-arrow-circle-down:before{content:"\\f0ab"}.fa-arrow-circle-left:before{content:"\\f0a8"}.fa-arrow-circle-right:before{content:"\\f0a9"}.fa-arrow-circle-up:before{content:"\\f0aa"}.fa-arrow-down:before{content:"\\f063"}.fa-arrow-left:before{content:"\\f060"}.fa-arrow-right:before{content:"\\f061"}.fa-arrow-up:before{content:"\\f062"}.fa-arrows-alt:before{content:"\\f0b2"}.fa-arrows-alt-h:before{content:"\\f337"}.fa-arrows-alt-v:before{content:"\\f338"}.fa-artstation:before{content:"\\f77a"}.fa-assistive-listening-systems:before{content:"\\f2a2"}.fa-asterisk:before{content:"\\f069"}.fa-asymmetrik:before{content:"\\f372"}.fa-at:before{content:"\\f1fa"}.fa-atlas:before{content:"\\f558"}.fa-atlassian:before{content:"\\f77b"}.fa-atom:before{content:"\\f5d2"}.fa-audible:before{content:"\\f373"}.fa-audio-description:before{content:"\\f29e"}.fa-autoprefixer:before{content:"\\f41c"}.fa-avianex:before{content:"\\f374"}.fa-aviato:before{content:"\\f421"}.fa-award:before{content:"\\f559"}.fa-aws:before{content:"\\f375"}.fa-baby:before{content:"\\f77c"}.fa-baby-carriage:before{content:"\\f77d"}.fa-backspace:before{content:"\\f55a"}.fa-backward:before{content:"\\f04a"}.fa-bacon:before{content:"\\f7e5"}.fa-bacteria:before{content:"\\e059"}.fa-bacterium:before{content:"\\e05a"}.fa-bahai:before{content:"\\f666"}.fa-balance-scale:before{content:"\\f24e"}.fa-balance-scale-left:before{content:"\\f515"}.fa-balance-scale-right:before{content:"\\f516"}.fa-ban:before{content:"\\f05e"}.fa-band-aid:before{content:"\\f462"}.fa-bandcamp:before{content:"\\f2d5"}.fa-barcode:before{content:"\\f02a"}.fa-bars:before{content:"\\f0c9"}.fa-baseball-ball:before{content:"\\f433"}.fa-basketball-ball:before{content:"\\f434"}.fa-bath:before{content:"\\f2cd"}.fa-battery-empty:before{content:"\\f244"}.fa-battery-full:before{content:"\\f240"}.fa-battery-half:before{content:"\\f242"}.fa-battery-quarter:before{content:"\\f243"}.fa-battery-three-quarters:before{content:"\\f241"}.fa-battle-net:before{content:"\\f835"}.fa-bed:before{content:"\\f236"}.fa-beer:before{content:"\\f0fc"}.fa-behance:before{content:"\\f1b4"}.fa-behance-square:before{content:"\\f1b5"}.fa-bell:before{content:"\\f0f3"}.fa-bell-slash:before{content:"\\f1f6"}.fa-bezier-curve:before{content:"\\f55b"}.fa-bible:before{content:"\\f647"}.fa-bicycle:before{content:"\\f206"}.fa-biking:before{content:"\\f84a"}.fa-bimobject:before{content:"\\f378"}.fa-binoculars:before{content:"\\f1e5"}.fa-biohazard:before{content:"\\f780"}.fa-birthday-cake:before{content:"\\f1fd"}.fa-bitbucket:before{content:"\\f171"}.fa-bitcoin:before{content:"\\f379"}.fa-bity:before{content:"\\f37a"}.fa-black-tie:before{content:"\\f27e"}.fa-blackberry:before{content:"\\f37b"}.fa-blender:before{content:"\\f517"}.fa-blender-phone:before{content:"\\f6b6"}.fa-blind:before{content:"\\f29d"}.fa-blog:before{content:"\\f781"}.fa-blogger:before{content:"\\f37c"}.fa-blogger-b:before{content:"\\f37d"}.fa-bluetooth:before{content:"\\f293"}.fa-bluetooth-b:before{content:"\\f294"}.fa-bold:before{content:"\\f032"}.fa-bolt:before{content:"\\f0e7"}.fa-bomb:before{content:"\\f1e2"}.fa-bone:before{content:"\\f5d7"}.fa-bong:before{content:"\\f55c"}.fa-book:before{content:"\\f02d"}.fa-book-dead:before{content:"\\f6b7"}.fa-book-medical:before{content:"\\f7e6"}.fa-book-open:before{content:"\\f518"}.fa-book-reader:before{content:"\\f5da"}.fa-bookmark:before{content:"\\f02e"}.fa-bootstrap:before{content:"\\f836"}.fa-border-all:before{content:"\\f84c"}.fa-border-none:before{content:"\\f850"}.fa-border-style:before{content:"\\f853"}.fa-bowling-ball:before{content:"\\f436"}.fa-box:before{content:"\\f466"}.fa-box-open:before{content:"\\f49e"}.fa-box-tissue:before{content:"\\e05b"}.fa-boxes:before{content:"\\f468"}.fa-braille:before{content:"\\f2a1"}.fa-brain:before{content:"\\f5dc"}.fa-bread-slice:before{content:"\\f7ec"}.fa-briefcase:before{content:"\\f0b1"}.fa-briefcase-medical:before{content:"\\f469"}.fa-broadcast-tower:before{content:"\\f519"}.fa-broom:before{content:"\\f51a"}.fa-brush:before{content:"\\f55d"}.fa-btc:before{content:"\\f15a"}.fa-buffer:before{content:"\\f837"}.fa-bug:before{content:"\\f188"}.fa-building:before{content:"\\f1ad"}.fa-bullhorn:before{content:"\\f0a1"}.fa-bullseye:before{content:"\\f140"}.fa-burn:before{content:"\\f46a"}.fa-buromobelexperte:before{content:"\\f37f"}.fa-bus:before{content:"\\f207"}.fa-bus-alt:before{content:"\\f55e"}.fa-business-time:before{content:"\\f64a"}.fa-buy-n-large:before{content:"\\f8a6"}.fa-buysellads:before{content:"\\f20d"}.fa-calculator:before{content:"\\f1ec"}.fa-calendar:before{content:"\\f133"}.fa-calendar-alt:before{content:"\\f073"}.fa-calendar-check:before{content:"\\f274"}.fa-calendar-day:before{content:"\\f783"}.fa-calendar-minus:before{content:"\\f272"}.fa-calendar-plus:before{content:"\\f271"}.fa-calendar-times:before{content:"\\f273"}.fa-calendar-week:before{content:"\\f784"}.fa-camera:before{content:"\\f030"}.fa-camera-retro:before{content:"\\f083"}.fa-campground:before{content:"\\f6bb"}.fa-canadian-maple-leaf:before{content:"\\f785"}.fa-candy-cane:before{content:"\\f786"}.fa-cannabis:before{content:"\\f55f"}.fa-capsules:before{content:"\\f46b"}.fa-car:before{content:"\\f1b9"}.fa-car-alt:before{content:"\\f5de"}.fa-car-battery:before{content:"\\f5df"}.fa-car-crash:before{content:"\\f5e1"}.fa-car-side:before{content:"\\f5e4"}.fa-caravan:before{content:"\\f8ff"}.fa-caret-down:before{content:"\\f0d7"}.fa-caret-left:before{content:"\\f0d9"}.fa-caret-right:before{content:"\\f0da"}.fa-caret-square-down:before{content:"\\f150"}.fa-caret-square-left:before{content:"\\f191"}.fa-caret-square-right:before{content:"\\f152"}.fa-caret-square-up:before{content:"\\f151"}.fa-caret-up:before{content:"\\f0d8"}.fa-carrot:before{content:"\\f787"}.fa-cart-arrow-down:before{content:"\\f218"}.fa-cart-plus:before{content:"\\f217"}.fa-cash-register:before{content:"\\f788"}.fa-cat:before{content:"\\f6be"}.fa-cc-amazon-pay:before{content:"\\f42d"}.fa-cc-amex:before{content:"\\f1f3"}.fa-cc-apple-pay:before{content:"\\f416"}.fa-cc-diners-club:before{content:"\\f24c"}.fa-cc-discover:before{content:"\\f1f2"}.fa-cc-jcb:before{content:"\\f24b"}.fa-cc-mastercard:before{content:"\\f1f1"}.fa-cc-paypal:before{content:"\\f1f4"}.fa-cc-stripe:before{content:"\\f1f5"}.fa-cc-visa:before{content:"\\f1f0"}.fa-centercode:before{content:"\\f380"}.fa-centos:before{content:"\\f789"}.fa-certificate:before{content:"\\f0a3"}.fa-chair:before{content:"\\f6c0"}.fa-chalkboard:before{content:"\\f51b"}.fa-chalkboard-teacher:before{content:"\\f51c"}.fa-charging-station:before{content:"\\f5e7"}.fa-chart-area:before{content:"\\f1fe"}.fa-chart-bar:before{content:"\\f080"}.fa-chart-line:before{content:"\\f201"}.fa-chart-pie:before{content:"\\f200"}.fa-check:before{content:"\\f00c"}.fa-check-circle:before{content:"\\f058"}.fa-check-double:before{content:"\\f560"}.fa-check-square:before{content:"\\f14a"}.fa-cheese:before{content:"\\f7ef"}.fa-chess:before{content:"\\f439"}.fa-chess-bishop:before{content:"\\f43a"}.fa-chess-board:before{content:"\\f43c"}.fa-chess-king:before{content:"\\f43f"}.fa-chess-knight:before{content:"\\f441"}.fa-chess-pawn:before{content:"\\f443"}.fa-chess-queen:before{content:"\\f445"}.fa-chess-rook:before{content:"\\f447"}.fa-chevron-circle-down:before{content:"\\f13a"}.fa-chevron-circle-left:before{content:"\\f137"}.fa-chevron-circle-right:before{content:"\\f138"}.fa-chevron-circle-up:before{content:"\\f139"}.fa-chevron-down:before{content:"\\f078"}.fa-chevron-left:before{content:"\\f053"}.fa-chevron-right:before{content:"\\f054"}.fa-chevron-up:before{content:"\\f077"}.fa-child:before{content:"\\f1ae"}.fa-chrome:before{content:"\\f268"}.fa-chromecast:before{content:"\\f838"}.fa-church:before{content:"\\f51d"}.fa-circle:before{content:"\\f111"}.fa-circle-notch:before{content:"\\f1ce"}.fa-city:before{content:"\\f64f"}.fa-clinic-medical:before{content:"\\f7f2"}.fa-clipboard:before{content:"\\f328"}.fa-clipboard-check:before{content:"\\f46c"}.fa-clipboard-list:before{content:"\\f46d"}.fa-clock:before{content:"\\f017"}.fa-clone:before{content:"\\f24d"}.fa-closed-captioning:before{content:"\\f20a"}.fa-cloud:before{content:"\\f0c2"}.fa-cloud-download-alt:before{content:"\\f381"}.fa-cloud-meatball:before{content:"\\f73b"}.fa-cloud-moon:before{content:"\\f6c3"}.fa-cloud-moon-rain:before{content:"\\f73c"}.fa-cloud-rain:before{content:"\\f73d"}.fa-cloud-showers-heavy:before{content:"\\f740"}.fa-cloud-sun:before{content:"\\f6c4"}.fa-cloud-sun-rain:before{content:"\\f743"}.fa-cloud-upload-alt:before{content:"\\f382"}.fa-cloudflare:before{content:"\\e07d"}.fa-cloudscale:before{content:"\\f383"}.fa-cloudsmith:before{content:"\\f384"}.fa-cloudversify:before{content:"\\f385"}.fa-cocktail:before{content:"\\f561"}.fa-code:before{content:"\\f121"}.fa-code-branch:before{content:"\\f126"}.fa-codepen:before{content:"\\f1cb"}.fa-codiepie:before{content:"\\f284"}.fa-coffee:before{content:"\\f0f4"}.fa-cog:before{content:"\\f013"}.fa-cogs:before{content:"\\f085"}.fa-coins:before{content:"\\f51e"}.fa-columns:before{content:"\\f0db"}.fa-comment:before{content:"\\f075"}.fa-comment-alt:before{content:"\\f27a"}.fa-comment-dollar:before{content:"\\f651"}.fa-comment-dots:before{content:"\\f4ad"}.fa-comment-medical:before{content:"\\f7f5"}.fa-comment-slash:before{content:"\\f4b3"}.fa-comments:before{content:"\\f086"}.fa-comments-dollar:before{content:"\\f653"}.fa-compact-disc:before{content:"\\f51f"}.fa-compass:before{content:"\\f14e"}.fa-compress:before{content:"\\f066"}.fa-compress-alt:before{content:"\\f422"}.fa-compress-arrows-alt:before{content:"\\f78c"}.fa-concierge-bell:before{content:"\\f562"}.fa-confluence:before{content:"\\f78d"}.fa-connectdevelop:before{content:"\\f20e"}.fa-contao:before{content:"\\f26d"}.fa-cookie:before{content:"\\f563"}.fa-cookie-bite:before{content:"\\f564"}.fa-copy:before{content:"\\f0c5"}.fa-copyright:before{content:"\\f1f9"}.fa-cotton-bureau:before{content:"\\f89e"}.fa-couch:before{content:"\\f4b8"}.fa-cpanel:before{content:"\\f388"}.fa-creative-commons:before{content:"\\f25e"}.fa-creative-commons-by:before{content:"\\f4e7"}.fa-creative-commons-nc:before{content:"\\f4e8"}.fa-creative-commons-nc-eu:before{content:"\\f4e9"}.fa-creative-commons-nc-jp:before{content:"\\f4ea"}.fa-creative-commons-nd:before{content:"\\f4eb"}.fa-creative-commons-pd:before{content:"\\f4ec"}.fa-creative-commons-pd-alt:before{content:"\\f4ed"}.fa-creative-commons-remix:before{content:"\\f4ee"}.fa-creative-commons-sa:before{content:"\\f4ef"}.fa-creative-commons-sampling:before{content:"\\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\\f4f1"}.fa-creative-commons-share:before{content:"\\f4f2"}.fa-creative-commons-zero:before{content:"\\f4f3"}.fa-credit-card:before{content:"\\f09d"}.fa-critical-role:before{content:"\\f6c9"}.fa-crop:before{content:"\\f125"}.fa-crop-alt:before{content:"\\f565"}.fa-cross:before{content:"\\f654"}.fa-crosshairs:before{content:"\\f05b"}.fa-crow:before{content:"\\f520"}.fa-crown:before{content:"\\f521"}.fa-crutch:before{content:"\\f7f7"}.fa-css3:before{content:"\\f13c"}.fa-css3-alt:before{content:"\\f38b"}.fa-cube:before{content:"\\f1b2"}.fa-cubes:before{content:"\\f1b3"}.fa-cut:before{content:"\\f0c4"}.fa-cuttlefish:before{content:"\\f38c"}.fa-d-and-d:before{content:"\\f38d"}.fa-d-and-d-beyond:before{content:"\\f6ca"}.fa-dailymotion:before{content:"\\e052"}.fa-dashcube:before{content:"\\f210"}.fa-database:before{content:"\\f1c0"}.fa-deaf:before{content:"\\f2a4"}.fa-deezer:before{content:"\\e077"}.fa-delicious:before{content:"\\f1a5"}.fa-democrat:before{content:"\\f747"}.fa-deploydog:before{content:"\\f38e"}.fa-deskpro:before{content:"\\f38f"}.fa-desktop:before{content:"\\f108"}.fa-dev:before{content:"\\f6cc"}.fa-deviantart:before{content:"\\f1bd"}.fa-dharmachakra:before{content:"\\f655"}.fa-dhl:before{content:"\\f790"}.fa-diagnoses:before{content:"\\f470"}.fa-diaspora:before{content:"\\f791"}.fa-dice:before{content:"\\f522"}.fa-dice-d20:before{content:"\\f6cf"}.fa-dice-d6:before{content:"\\f6d1"}.fa-dice-five:before{content:"\\f523"}.fa-dice-four:before{content:"\\f524"}.fa-dice-one:before{content:"\\f525"}.fa-dice-six:before{content:"\\f526"}.fa-dice-three:before{content:"\\f527"}.fa-dice-two:before{content:"\\f528"}.fa-digg:before{content:"\\f1a6"}.fa-digital-ocean:before{content:"\\f391"}.fa-digital-tachograph:before{content:"\\f566"}.fa-directions:before{content:"\\f5eb"}.fa-discord:before{content:"\\f392"}.fa-discourse:before{content:"\\f393"}.fa-disease:before{content:"\\f7fa"}.fa-divide:before{content:"\\f529"}.fa-dizzy:before{content:"\\f567"}.fa-dna:before{content:"\\f471"}.fa-dochub:before{content:"\\f394"}.fa-docker:before{content:"\\f395"}.fa-dog:before{content:"\\f6d3"}.fa-dollar-sign:before{content:"\\f155"}.fa-dolly:before{content:"\\f472"}.fa-dolly-flatbed:before{content:"\\f474"}.fa-donate:before{content:"\\f4b9"}.fa-door-closed:before{content:"\\f52a"}.fa-door-open:before{content:"\\f52b"}.fa-dot-circle:before{content:"\\f192"}.fa-dove:before{content:"\\f4ba"}.fa-download:before{content:"\\f019"}.fa-draft2digital:before{content:"\\f396"}.fa-drafting-compass:before{content:"\\f568"}.fa-dragon:before{content:"\\f6d5"}.fa-draw-polygon:before{content:"\\f5ee"}.fa-dribbble:before{content:"\\f17d"}.fa-dribbble-square:before{content:"\\f397"}.fa-dropbox:before{content:"\\f16b"}.fa-drum:before{content:"\\f569"}.fa-drum-steelpan:before{content:"\\f56a"}.fa-drumstick-bite:before{content:"\\f6d7"}.fa-drupal:before{content:"\\f1a9"}.fa-dumbbell:before{content:"\\f44b"}.fa-dumpster:before{content:"\\f793"}.fa-dumpster-fire:before{content:"\\f794"}.fa-dungeon:before{content:"\\f6d9"}.fa-dyalog:before{content:"\\f399"}.fa-earlybirds:before{content:"\\f39a"}.fa-ebay:before{content:"\\f4f4"}.fa-edge:before{content:"\\f282"}.fa-edge-legacy:before{content:"\\e078"}.fa-edit:before{content:"\\f044"}.fa-egg:before{content:"\\f7fb"}.fa-eject:before{content:"\\f052"}.fa-elementor:before{content:"\\f430"}.fa-ellipsis-h:before{content:"\\f141"}.fa-ellipsis-v:before{content:"\\f142"}.fa-ello:before{content:"\\f5f1"}.fa-ember:before{content:"\\f423"}.fa-empire:before{content:"\\f1d1"}.fa-envelope:before{content:"\\f0e0"}.fa-envelope-open:before{content:"\\f2b6"}.fa-envelope-open-text:before{content:"\\f658"}.fa-envelope-square:before{content:"\\f199"}.fa-envira:before{content:"\\f299"}.fa-equals:before{content:"\\f52c"}.fa-eraser:before{content:"\\f12d"}.fa-erlang:before{content:"\\f39d"}.fa-ethereum:before{content:"\\f42e"}.fa-ethernet:before{content:"\\f796"}.fa-etsy:before{content:"\\f2d7"}.fa-euro-sign:before{content:"\\f153"}.fa-evernote:before{content:"\\f839"}.fa-exchange-alt:before{content:"\\f362"}.fa-exclamation:before{content:"\\f12a"}.fa-exclamation-circle:before{content:"\\f06a"}.fa-exclamation-triangle:before{content:"\\f071"}.fa-expand:before{content:"\\f065"}.fa-expand-alt:before{content:"\\f424"}.fa-expand-arrows-alt:before{content:"\\f31e"}.fa-expeditedssl:before{content:"\\f23e"}.fa-external-link-alt:before{content:"\\f35d"}.fa-external-link-square-alt:before{content:"\\f360"}.fa-eye:before{content:"\\f06e"}.fa-eye-dropper:before{content:"\\f1fb"}.fa-eye-slash:before{content:"\\f070"}.fa-facebook:before{content:"\\f09a"}.fa-facebook-f:before{content:"\\f39e"}.fa-facebook-messenger:before{content:"\\f39f"}.fa-facebook-square:before{content:"\\f082"}.fa-fan:before{content:"\\f863"}.fa-fantasy-flight-games:before{content:"\\f6dc"}.fa-fast-backward:before{content:"\\f049"}.fa-fast-forward:before{content:"\\f050"}.fa-faucet:before{content:"\\e005"}.fa-fax:before{content:"\\f1ac"}.fa-feather:before{content:"\\f52d"}.fa-feather-alt:before{content:"\\f56b"}.fa-fedex:before{content:"\\f797"}.fa-fedora:before{content:"\\f798"}.fa-female:before{content:"\\f182"}.fa-fighter-jet:before{content:"\\f0fb"}.fa-figma:before{content:"\\f799"}.fa-file:before{content:"\\f15b"}.fa-file-alt:before{content:"\\f15c"}.fa-file-archive:before{content:"\\f1c6"}.fa-file-audio:before{content:"\\f1c7"}.fa-file-code:before{content:"\\f1c9"}.fa-file-contract:before{content:"\\f56c"}.fa-file-csv:before{content:"\\f6dd"}.fa-file-download:before{content:"\\f56d"}.fa-file-excel:before{content:"\\f1c3"}.fa-file-export:before{content:"\\f56e"}.fa-file-image:before{content:"\\f1c5"}.fa-file-import:before{content:"\\f56f"}.fa-file-invoice:before{content:"\\f570"}.fa-file-invoice-dollar:before{content:"\\f571"}.fa-file-medical:before{content:"\\f477"}.fa-file-medical-alt:before{content:"\\f478"}.fa-file-pdf:before{content:"\\f1c1"}.fa-file-powerpoint:before{content:"\\f1c4"}.fa-file-prescription:before{content:"\\f572"}.fa-file-signature:before{content:"\\f573"}.fa-file-upload:before{content:"\\f574"}.fa-file-video:before{content:"\\f1c8"}.fa-file-word:before{content:"\\f1c2"}.fa-fill:before{content:"\\f575"}.fa-fill-drip:before{content:"\\f576"}.fa-film:before{content:"\\f008"}.fa-filter:before{content:"\\f0b0"}.fa-fingerprint:before{content:"\\f577"}.fa-fire:before{content:"\\f06d"}.fa-fire-alt:before{content:"\\f7e4"}.fa-fire-extinguisher:before{content:"\\f134"}.fa-firefox:before{content:"\\f269"}.fa-firefox-browser:before{content:"\\e007"}.fa-first-aid:before{content:"\\f479"}.fa-first-order:before{content:"\\f2b0"}.fa-first-order-alt:before{content:"\\f50a"}.fa-firstdraft:before{content:"\\f3a1"}.fa-fish:before{content:"\\f578"}.fa-fist-raised:before{content:"\\f6de"}.fa-flag:before{content:"\\f024"}.fa-flag-checkered:before{content:"\\f11e"}.fa-flag-usa:before{content:"\\f74d"}.fa-flask:before{content:"\\f0c3"}.fa-flickr:before{content:"\\f16e"}.fa-flipboard:before{content:"\\f44d"}.fa-flushed:before{content:"\\f579"}.fa-fly:before{content:"\\f417"}.fa-folder:before{content:"\\f07b"}.fa-folder-minus:before{content:"\\f65d"}.fa-folder-open:before{content:"\\f07c"}.fa-folder-plus:before{content:"\\f65e"}.fa-font:before{content:"\\f031"}.fa-font-awesome:before{content:"\\f2b4"}.fa-font-awesome-alt:before{content:"\\f35c"}.fa-font-awesome-flag:before{content:"\\f425"}.fa-font-awesome-logo-full:before{content:"\\f4e6"}.fa-fonticons:before{content:"\\f280"}.fa-fonticons-fi:before{content:"\\f3a2"}.fa-football-ball:before{content:"\\f44e"}.fa-fort-awesome:before{content:"\\f286"}.fa-fort-awesome-alt:before{content:"\\f3a3"}.fa-forumbee:before{content:"\\f211"}.fa-forward:before{content:"\\f04e"}.fa-foursquare:before{content:"\\f180"}.fa-free-code-camp:before{content:"\\f2c5"}.fa-freebsd:before{content:"\\f3a4"}.fa-frog:before{content:"\\f52e"}.fa-frown:before{content:"\\f119"}.fa-frown-open:before{content:"\\f57a"}.fa-fulcrum:before{content:"\\f50b"}.fa-funnel-dollar:before{content:"\\f662"}.fa-futbol:before{content:"\\f1e3"}.fa-galactic-republic:before{content:"\\f50c"}.fa-galactic-senate:before{content:"\\f50d"}.fa-gamepad:before{content:"\\f11b"}.fa-gas-pump:before{content:"\\f52f"}.fa-gavel:before{content:"\\f0e3"}.fa-gem:before{content:"\\f3a5"}.fa-genderless:before{content:"\\f22d"}.fa-get-pocket:before{content:"\\f265"}.fa-gg:before{content:"\\f260"}.fa-gg-circle:before{content:"\\f261"}.fa-ghost:before{content:"\\f6e2"}.fa-gift:before{content:"\\f06b"}.fa-gifts:before{content:"\\f79c"}.fa-git:before{content:"\\f1d3"}.fa-git-alt:before{content:"\\f841"}.fa-git-square:before{content:"\\f1d2"}.fa-github:before{content:"\\f09b"}.fa-github-alt:before{content:"\\f113"}.fa-github-square:before{content:"\\f092"}.fa-gitkraken:before{content:"\\f3a6"}.fa-gitlab:before{content:"\\f296"}.fa-gitter:before{content:"\\f426"}.fa-glass-cheers:before{content:"\\f79f"}.fa-glass-martini:before{content:"\\f000"}.fa-glass-martini-alt:before{content:"\\f57b"}.fa-glass-whiskey:before{content:"\\f7a0"}.fa-glasses:before{content:"\\f530"}.fa-glide:before{content:"\\f2a5"}.fa-glide-g:before{content:"\\f2a6"}.fa-globe:before{content:"\\f0ac"}.fa-globe-africa:before{content:"\\f57c"}.fa-globe-americas:before{content:"\\f57d"}.fa-globe-asia:before{content:"\\f57e"}.fa-globe-europe:before{content:"\\f7a2"}.fa-gofore:before{content:"\\f3a7"}.fa-golf-ball:before{content:"\\f450"}.fa-goodreads:before{content:"\\f3a8"}.fa-goodreads-g:before{content:"\\f3a9"}.fa-google:before{content:"\\f1a0"}.fa-google-drive:before{content:"\\f3aa"}.fa-google-pay:before{content:"\\e079"}.fa-google-play:before{content:"\\f3ab"}.fa-google-plus:before{content:"\\f2b3"}.fa-google-plus-g:before{content:"\\f0d5"}.fa-google-plus-square:before{content:"\\f0d4"}.fa-google-wallet:before{content:"\\f1ee"}.fa-gopuram:before{content:"\\f664"}.fa-graduation-cap:before{content:"\\f19d"}.fa-gratipay:before{content:"\\f184"}.fa-grav:before{content:"\\f2d6"}.fa-greater-than:before{content:"\\f531"}.fa-greater-than-equal:before{content:"\\f532"}.fa-grimace:before{content:"\\f57f"}.fa-grin:before{content:"\\f580"}.fa-grin-alt:before{content:"\\f581"}.fa-grin-beam:before{content:"\\f582"}.fa-grin-beam-sweat:before{content:"\\f583"}.fa-grin-hearts:before{content:"\\f584"}.fa-grin-squint:before{content:"\\f585"}.fa-grin-squint-tears:before{content:"\\f586"}.fa-grin-stars:before{content:"\\f587"}.fa-grin-tears:before{content:"\\f588"}.fa-grin-tongue:before{content:"\\f589"}.fa-grin-tongue-squint:before{content:"\\f58a"}.fa-grin-tongue-wink:before{content:"\\f58b"}.fa-grin-wink:before{content:"\\f58c"}.fa-grip-horizontal:before{content:"\\f58d"}.fa-grip-lines:before{content:"\\f7a4"}.fa-grip-lines-vertical:before{content:"\\f7a5"}.fa-grip-vertical:before{content:"\\f58e"}.fa-gripfire:before{content:"\\f3ac"}.fa-grunt:before{content:"\\f3ad"}.fa-guilded:before{content:"\\e07e"}.fa-guitar:before{content:"\\f7a6"}.fa-gulp:before{content:"\\f3ae"}.fa-h-square:before{content:"\\f0fd"}.fa-hacker-news:before{content:"\\f1d4"}.fa-hacker-news-square:before{content:"\\f3af"}.fa-hackerrank:before{content:"\\f5f7"}.fa-hamburger:before{content:"\\f805"}.fa-hammer:before{content:"\\f6e3"}.fa-hamsa:before{content:"\\f665"}.fa-hand-holding:before{content:"\\f4bd"}.fa-hand-holding-heart:before{content:"\\f4be"}.fa-hand-holding-medical:before{content:"\\e05c"}.fa-hand-holding-usd:before{content:"\\f4c0"}.fa-hand-holding-water:before{content:"\\f4c1"}.fa-hand-lizard:before{content:"\\f258"}.fa-hand-middle-finger:before{content:"\\f806"}.fa-hand-paper:before{content:"\\f256"}.fa-hand-peace:before{content:"\\f25b"}.fa-hand-point-down:before{content:"\\f0a7"}.fa-hand-point-left:before{content:"\\f0a5"}.fa-hand-point-right:before{content:"\\f0a4"}.fa-hand-point-up:before{content:"\\f0a6"}.fa-hand-pointer:before{content:"\\f25a"}.fa-hand-rock:before{content:"\\f255"}.fa-hand-scissors:before{content:"\\f257"}.fa-hand-sparkles:before{content:"\\e05d"}.fa-hand-spock:before{content:"\\f259"}.fa-hands:before{content:"\\f4c2"}.fa-hands-helping:before{content:"\\f4c4"}.fa-hands-wash:before{content:"\\e05e"}.fa-handshake:before{content:"\\f2b5"}.fa-handshake-alt-slash:before{content:"\\e05f"}.fa-handshake-slash:before{content:"\\e060"}.fa-hanukiah:before{content:"\\f6e6"}.fa-hard-hat:before{content:"\\f807"}.fa-hashtag:before{content:"\\f292"}.fa-hat-cowboy:before{content:"\\f8c0"}.fa-hat-cowboy-side:before{content:"\\f8c1"}.fa-hat-wizard:before{content:"\\f6e8"}.fa-hdd:before{content:"\\f0a0"}.fa-head-side-cough:before{content:"\\e061"}.fa-head-side-cough-slash:before{content:"\\e062"}.fa-head-side-mask:before{content:"\\e063"}.fa-head-side-virus:before{content:"\\e064"}.fa-heading:before{content:"\\f1dc"}.fa-headphones:before{content:"\\f025"}.fa-headphones-alt:before{content:"\\f58f"}.fa-headset:before{content:"\\f590"}.fa-heart:before{content:"\\f004"}.fa-heart-broken:before{content:"\\f7a9"}.fa-heartbeat:before{content:"\\f21e"}.fa-helicopter:before{content:"\\f533"}.fa-highlighter:before{content:"\\f591"}.fa-hiking:before{content:"\\f6ec"}.fa-hippo:before{content:"\\f6ed"}.fa-hips:before{content:"\\f452"}.fa-hire-a-helper:before{content:"\\f3b0"}.fa-history:before{content:"\\f1da"}.fa-hive:before{content:"\\e07f"}.fa-hockey-puck:before{content:"\\f453"}.fa-holly-berry:before{content:"\\f7aa"}.fa-home:before{content:"\\f015"}.fa-hooli:before{content:"\\f427"}.fa-hornbill:before{content:"\\f592"}.fa-horse:before{content:"\\f6f0"}.fa-horse-head:before{content:"\\f7ab"}.fa-hospital:before{content:"\\f0f8"}.fa-hospital-alt:before{content:"\\f47d"}.fa-hospital-symbol:before{content:"\\f47e"}.fa-hospital-user:before{content:"\\f80d"}.fa-hot-tub:before{content:"\\f593"}.fa-hotdog:before{content:"\\f80f"}.fa-hotel:before{content:"\\f594"}.fa-hotjar:before{content:"\\f3b1"}.fa-hourglass:before{content:"\\f254"}.fa-hourglass-end:before{content:"\\f253"}.fa-hourglass-half:before{content:"\\f252"}.fa-hourglass-start:before{content:"\\f251"}.fa-house-damage:before{content:"\\f6f1"}.fa-house-user:before{content:"\\e065"}.fa-houzz:before{content:"\\f27c"}.fa-hryvnia:before{content:"\\f6f2"}.fa-html5:before{content:"\\f13b"}.fa-hubspot:before{content:"\\f3b2"}.fa-i-cursor:before{content:"\\f246"}.fa-ice-cream:before{content:"\\f810"}.fa-icicles:before{content:"\\f7ad"}.fa-icons:before{content:"\\f86d"}.fa-id-badge:before{content:"\\f2c1"}.fa-id-card:before{content:"\\f2c2"}.fa-id-card-alt:before{content:"\\f47f"}.fa-ideal:before{content:"\\e013"}.fa-igloo:before{content:"\\f7ae"}.fa-image:before{content:"\\f03e"}.fa-images:before{content:"\\f302"}.fa-imdb:before{content:"\\f2d8"}.fa-inbox:before{content:"\\f01c"}.fa-indent:before{content:"\\f03c"}.fa-industry:before{content:"\\f275"}.fa-infinity:before{content:"\\f534"}.fa-info:before{content:"\\f129"}.fa-info-circle:before{content:"\\f05a"}.fa-innosoft:before{content:"\\e080"}.fa-instagram:before{content:"\\f16d"}.fa-instagram-square:before{content:"\\e055"}.fa-instalod:before{content:"\\e081"}.fa-intercom:before{content:"\\f7af"}.fa-internet-explorer:before{content:"\\f26b"}.fa-invision:before{content:"\\f7b0"}.fa-ioxhost:before{content:"\\f208"}.fa-italic:before{content:"\\f033"}.fa-itch-io:before{content:"\\f83a"}.fa-itunes:before{content:"\\f3b4"}.fa-itunes-note:before{content:"\\f3b5"}.fa-java:before{content:"\\f4e4"}.fa-jedi:before{content:"\\f669"}.fa-jedi-order:before{content:"\\f50e"}.fa-jenkins:before{content:"\\f3b6"}.fa-jira:before{content:"\\f7b1"}.fa-joget:before{content:"\\f3b7"}.fa-joint:before{content:"\\f595"}.fa-joomla:before{content:"\\f1aa"}.fa-journal-whills:before{content:"\\f66a"}.fa-js:before{content:"\\f3b8"}.fa-js-square:before{content:"\\f3b9"}.fa-jsfiddle:before{content:"\\f1cc"}.fa-kaaba:before{content:"\\f66b"}.fa-kaggle:before{content:"\\f5fa"}.fa-key:before{content:"\\f084"}.fa-keybase:before{content:"\\f4f5"}.fa-keyboard:before{content:"\\f11c"}.fa-keycdn:before{content:"\\f3ba"}.fa-khanda:before{content:"\\f66d"}.fa-kickstarter:before{content:"\\f3bb"}.fa-kickstarter-k:before{content:"\\f3bc"}.fa-kiss:before{content:"\\f596"}.fa-kiss-beam:before{content:"\\f597"}.fa-kiss-wink-heart:before{content:"\\f598"}.fa-kiwi-bird:before{content:"\\f535"}.fa-korvue:before{content:"\\f42f"}.fa-landmark:before{content:"\\f66f"}.fa-language:before{content:"\\f1ab"}.fa-laptop:before{content:"\\f109"}.fa-laptop-code:before{content:"\\f5fc"}.fa-laptop-house:before{content:"\\e066"}.fa-laptop-medical:before{content:"\\f812"}.fa-laravel:before{content:"\\f3bd"}.fa-lastfm:before{content:"\\f202"}.fa-lastfm-square:before{content:"\\f203"}.fa-laugh:before{content:"\\f599"}.fa-laugh-beam:before{content:"\\f59a"}.fa-laugh-squint:before{content:"\\f59b"}.fa-laugh-wink:before{content:"\\f59c"}.fa-layer-group:before{content:"\\f5fd"}.fa-leaf:before{content:"\\f06c"}.fa-leanpub:before{content:"\\f212"}.fa-lemon:before{content:"\\f094"}.fa-less:before{content:"\\f41d"}.fa-less-than:before{content:"\\f536"}.fa-less-than-equal:before{content:"\\f537"}.fa-level-down-alt:before{content:"\\f3be"}.fa-level-up-alt:before{content:"\\f3bf"}.fa-life-ring:before{content:"\\f1cd"}.fa-lightbulb:before{content:"\\f0eb"}.fa-line:before{content:"\\f3c0"}.fa-link:before{content:"\\f0c1"}.fa-linkedin:before{content:"\\f08c"}.fa-linkedin-in:before{content:"\\f0e1"}.fa-linode:before{content:"\\f2b8"}.fa-linux:before{content:"\\f17c"}.fa-lira-sign:before{content:"\\f195"}.fa-list:before{content:"\\f03a"}.fa-list-alt:before{content:"\\f022"}.fa-list-ol:before{content:"\\f0cb"}.fa-list-ul:before{content:"\\f0ca"}.fa-location-arrow:before{content:"\\f124"}.fa-lock:before{content:"\\f023"}.fa-lock-open:before{content:"\\f3c1"}.fa-long-arrow-alt-down:before{content:"\\f309"}.fa-long-arrow-alt-left:before{content:"\\f30a"}.fa-long-arrow-alt-right:before{content:"\\f30b"}.fa-long-arrow-alt-up:before{content:"\\f30c"}.fa-low-vision:before{content:"\\f2a8"}.fa-luggage-cart:before{content:"\\f59d"}.fa-lungs:before{content:"\\f604"}.fa-lungs-virus:before{content:"\\e067"}.fa-lyft:before{content:"\\f3c3"}.fa-magento:before{content:"\\f3c4"}.fa-magic:before{content:"\\f0d0"}.fa-magnet:before{content:"\\f076"}.fa-mail-bulk:before{content:"\\f674"}.fa-mailchimp:before{content:"\\f59e"}.fa-male:before{content:"\\f183"}.fa-mandalorian:before{content:"\\f50f"}.fa-map:before{content:"\\f279"}.fa-map-marked:before{content:"\\f59f"}.fa-map-marked-alt:before{content:"\\f5a0"}.fa-map-marker:before{content:"\\f041"}.fa-map-marker-alt:before{content:"\\f3c5"}.fa-map-pin:before{content:"\\f276"}.fa-map-signs:before{content:"\\f277"}.fa-markdown:before{content:"\\f60f"}.fa-marker:before{content:"\\f5a1"}.fa-mars:before{content:"\\f222"}.fa-mars-double:before{content:"\\f227"}.fa-mars-stroke:before{content:"\\f229"}.fa-mars-stroke-h:before{content:"\\f22b"}.fa-mars-stroke-v:before{content:"\\f22a"}.fa-mask:before{content:"\\f6fa"}.fa-mastodon:before{content:"\\f4f6"}.fa-maxcdn:before{content:"\\f136"}.fa-mdb:before{content:"\\f8ca"}.fa-medal:before{content:"\\f5a2"}.fa-medapps:before{content:"\\f3c6"}.fa-medium:before{content:"\\f23a"}.fa-medium-m:before{content:"\\f3c7"}.fa-medkit:before{content:"\\f0fa"}.fa-medrt:before{content:"\\f3c8"}.fa-meetup:before{content:"\\f2e0"}.fa-megaport:before{content:"\\f5a3"}.fa-meh:before{content:"\\f11a"}.fa-meh-blank:before{content:"\\f5a4"}.fa-meh-rolling-eyes:before{content:"\\f5a5"}.fa-memory:before{content:"\\f538"}.fa-mendeley:before{content:"\\f7b3"}.fa-menorah:before{content:"\\f676"}.fa-mercury:before{content:"\\f223"}.fa-meteor:before{content:"\\f753"}.fa-microblog:before{content:"\\e01a"}.fa-microchip:before{content:"\\f2db"}.fa-microphone:before{content:"\\f130"}.fa-microphone-alt:before{content:"\\f3c9"}.fa-microphone-alt-slash:before{content:"\\f539"}.fa-microphone-slash:before{content:"\\f131"}.fa-microscope:before{content:"\\f610"}.fa-microsoft:before{content:"\\f3ca"}.fa-minus:before{content:"\\f068"}.fa-minus-circle:before{content:"\\f056"}.fa-minus-square:before{content:"\\f146"}.fa-mitten:before{content:"\\f7b5"}.fa-mix:before{content:"\\f3cb"}.fa-mixcloud:before{content:"\\f289"}.fa-mixer:before{content:"\\e056"}.fa-mizuni:before{content:"\\f3cc"}.fa-mobile:before{content:"\\f10b"}.fa-mobile-alt:before{content:"\\f3cd"}.fa-modx:before{content:"\\f285"}.fa-monero:before{content:"\\f3d0"}.fa-money-bill:before{content:"\\f0d6"}.fa-money-bill-alt:before{content:"\\f3d1"}.fa-money-bill-wave:before{content:"\\f53a"}.fa-money-bill-wave-alt:before{content:"\\f53b"}.fa-money-check:before{content:"\\f53c"}.fa-money-check-alt:before{content:"\\f53d"}.fa-monument:before{content:"\\f5a6"}.fa-moon:before{content:"\\f186"}.fa-mortar-pestle:before{content:"\\f5a7"}.fa-mosque:before{content:"\\f678"}.fa-motorcycle:before{content:"\\f21c"}.fa-mountain:before{content:"\\f6fc"}.fa-mouse:before{content:"\\f8cc"}.fa-mouse-pointer:before{content:"\\f245"}.fa-mug-hot:before{content:"\\f7b6"}.fa-music:before{content:"\\f001"}.fa-napster:before{content:"\\f3d2"}.fa-neos:before{content:"\\f612"}.fa-network-wired:before{content:"\\f6ff"}.fa-neuter:before{content:"\\f22c"}.fa-newspaper:before{content:"\\f1ea"}.fa-nimblr:before{content:"\\f5a8"}.fa-node:before{content:"\\f419"}.fa-node-js:before{content:"\\f3d3"}.fa-not-equal:before{content:"\\f53e"}.fa-notes-medical:before{content:"\\f481"}.fa-npm:before{content:"\\f3d4"}.fa-ns8:before{content:"\\f3d5"}.fa-nutritionix:before{content:"\\f3d6"}.fa-object-group:before{content:"\\f247"}.fa-object-ungroup:before{content:"\\f248"}.fa-octopus-deploy:before{content:"\\e082"}.fa-odnoklassniki:before{content:"\\f263"}.fa-odnoklassniki-square:before{content:"\\f264"}.fa-oil-can:before{content:"\\f613"}.fa-old-republic:before{content:"\\f510"}.fa-om:before{content:"\\f679"}.fa-opencart:before{content:"\\f23d"}.fa-openid:before{content:"\\f19b"}.fa-opera:before{content:"\\f26a"}.fa-optin-monster:before{content:"\\f23c"}.fa-orcid:before{content:"\\f8d2"}.fa-osi:before{content:"\\f41a"}.fa-otter:before{content:"\\f700"}.fa-outdent:before{content:"\\f03b"}.fa-page4:before{content:"\\f3d7"}.fa-pagelines:before{content:"\\f18c"}.fa-pager:before{content:"\\f815"}.fa-paint-brush:before{content:"\\f1fc"}.fa-paint-roller:before{content:"\\f5aa"}.fa-palette:before{content:"\\f53f"}.fa-palfed:before{content:"\\f3d8"}.fa-pallet:before{content:"\\f482"}.fa-paper-plane:before{content:"\\f1d8"}.fa-paperclip:before{content:"\\f0c6"}.fa-parachute-box:before{content:"\\f4cd"}.fa-paragraph:before{content:"\\f1dd"}.fa-parking:before{content:"\\f540"}.fa-passport:before{content:"\\f5ab"}.fa-pastafarianism:before{content:"\\f67b"}.fa-paste:before{content:"\\f0ea"}.fa-patreon:before{content:"\\f3d9"}.fa-pause:before{content:"\\f04c"}.fa-pause-circle:before{content:"\\f28b"}.fa-paw:before{content:"\\f1b0"}.fa-paypal:before{content:"\\f1ed"}.fa-peace:before{content:"\\f67c"}.fa-pen:before{content:"\\f304"}.fa-pen-alt:before{content:"\\f305"}.fa-pen-fancy:before{content:"\\f5ac"}.fa-pen-nib:before{content:"\\f5ad"}.fa-pen-square:before{content:"\\f14b"}.fa-pencil-alt:before{content:"\\f303"}.fa-pencil-ruler:before{content:"\\f5ae"}.fa-penny-arcade:before{content:"\\f704"}.fa-people-arrows:before{content:"\\e068"}.fa-people-carry:before{content:"\\f4ce"}.fa-pepper-hot:before{content:"\\f816"}.fa-perbyte:before{content:"\\e083"}.fa-percent:before{content:"\\f295"}.fa-percentage:before{content:"\\f541"}.fa-periscope:before{content:"\\f3da"}.fa-person-booth:before{content:"\\f756"}.fa-phabricator:before{content:"\\f3db"}.fa-phoenix-framework:before{content:"\\f3dc"}.fa-phoenix-squadron:before{content:"\\f511"}.fa-phone:before{content:"\\f095"}.fa-phone-alt:before{content:"\\f879"}.fa-phone-slash:before{content:"\\f3dd"}.fa-phone-square:before{content:"\\f098"}.fa-phone-square-alt:before{content:"\\f87b"}.fa-phone-volume:before{content:"\\f2a0"}.fa-photo-video:before{content:"\\f87c"}.fa-php:before{content:"\\f457"}.fa-pied-piper:before{content:"\\f2ae"}.fa-pied-piper-alt:before{content:"\\f1a8"}.fa-pied-piper-hat:before{content:"\\f4e5"}.fa-pied-piper-pp:before{content:"\\f1a7"}.fa-pied-piper-square:before{content:"\\e01e"}.fa-piggy-bank:before{content:"\\f4d3"}.fa-pills:before{content:"\\f484"}.fa-pinterest:before{content:"\\f0d2"}.fa-pinterest-p:before{content:"\\f231"}.fa-pinterest-square:before{content:"\\f0d3"}.fa-pizza-slice:before{content:"\\f818"}.fa-place-of-worship:before{content:"\\f67f"}.fa-plane:before{content:"\\f072"}.fa-plane-arrival:before{content:"\\f5af"}.fa-plane-departure:before{content:"\\f5b0"}.fa-plane-slash:before{content:"\\e069"}.fa-play:before{content:"\\f04b"}.fa-play-circle:before{content:"\\f144"}.fa-playstation:before{content:"\\f3df"}.fa-plug:before{content:"\\f1e6"}.fa-plus:before{content:"\\f067"}.fa-plus-circle:before{content:"\\f055"}.fa-plus-square:before{content:"\\f0fe"}.fa-podcast:before{content:"\\f2ce"}.fa-poll:before{content:"\\f681"}.fa-poll-h:before{content:"\\f682"}.fa-poo:before{content:"\\f2fe"}.fa-poo-storm:before{content:"\\f75a"}.fa-poop:before{content:"\\f619"}.fa-portrait:before{content:"\\f3e0"}.fa-pound-sign:before{content:"\\f154"}.fa-power-off:before{content:"\\f011"}.fa-pray:before{content:"\\f683"}.fa-praying-hands:before{content:"\\f684"}.fa-prescription:before{content:"\\f5b1"}.fa-prescription-bottle:before{content:"\\f485"}.fa-prescription-bottle-alt:before{content:"\\f486"}.fa-print:before{content:"\\f02f"}.fa-procedures:before{content:"\\f487"}.fa-product-hunt:before{content:"\\f288"}.fa-project-diagram:before{content:"\\f542"}.fa-pump-medical:before{content:"\\e06a"}.fa-pump-soap:before{content:"\\e06b"}.fa-pushed:before{content:"\\f3e1"}.fa-puzzle-piece:before{content:"\\f12e"}.fa-python:before{content:"\\f3e2"}.fa-qq:before{content:"\\f1d6"}.fa-qrcode:before{content:"\\f029"}.fa-question:before{content:"\\f128"}.fa-question-circle:before{content:"\\f059"}.fa-quidditch:before{content:"\\f458"}.fa-quinscape:before{content:"\\f459"}.fa-quora:before{content:"\\f2c4"}.fa-quote-left:before{content:"\\f10d"}.fa-quote-right:before{content:"\\f10e"}.fa-quran:before{content:"\\f687"}.fa-r-project:before{content:"\\f4f7"}.fa-radiation:before{content:"\\f7b9"}.fa-radiation-alt:before{content:"\\f7ba"}.fa-rainbow:before{content:"\\f75b"}.fa-random:before{content:"\\f074"}.fa-raspberry-pi:before{content:"\\f7bb"}.fa-ravelry:before{content:"\\f2d9"}.fa-react:before{content:"\\f41b"}.fa-reacteurope:before{content:"\\f75d"}.fa-readme:before{content:"\\f4d5"}.fa-rebel:before{content:"\\f1d0"}.fa-receipt:before{content:"\\f543"}.fa-record-vinyl:before{content:"\\f8d9"}.fa-recycle:before{content:"\\f1b8"}.fa-red-river:before{content:"\\f3e3"}.fa-reddit:before{content:"\\f1a1"}.fa-reddit-alien:before{content:"\\f281"}.fa-reddit-square:before{content:"\\f1a2"}.fa-redhat:before{content:"\\f7bc"}.fa-redo:before{content:"\\f01e"}.fa-redo-alt:before{content:"\\f2f9"}.fa-registered:before{content:"\\f25d"}.fa-remove-format:before{content:"\\f87d"}.fa-renren:before{content:"\\f18b"}.fa-reply:before{content:"\\f3e5"}.fa-reply-all:before{content:"\\f122"}.fa-replyd:before{content:"\\f3e6"}.fa-republican:before{content:"\\f75e"}.fa-researchgate:before{content:"\\f4f8"}.fa-resolving:before{content:"\\f3e7"}.fa-restroom:before{content:"\\f7bd"}.fa-retweet:before{content:"\\f079"}.fa-rev:before{content:"\\f5b2"}.fa-ribbon:before{content:"\\f4d6"}.fa-ring:before{content:"\\f70b"}.fa-road:before{content:"\\f018"}.fa-robot:before{content:"\\f544"}.fa-rocket:before{content:"\\f135"}.fa-rocketchat:before{content:"\\f3e8"}.fa-rockrms:before{content:"\\f3e9"}.fa-route:before{content:"\\f4d7"}.fa-rss:before{content:"\\f09e"}.fa-rss-square:before{content:"\\f143"}.fa-ruble-sign:before{content:"\\f158"}.fa-ruler:before{content:"\\f545"}.fa-ruler-combined:before{content:"\\f546"}.fa-ruler-horizontal:before{content:"\\f547"}.fa-ruler-vertical:before{content:"\\f548"}.fa-running:before{content:"\\f70c"}.fa-rupee-sign:before{content:"\\f156"}.fa-rust:before{content:"\\e07a"}.fa-sad-cry:before{content:"\\f5b3"}.fa-sad-tear:before{content:"\\f5b4"}.fa-safari:before{content:"\\f267"}.fa-salesforce:before{content:"\\f83b"}.fa-sass:before{content:"\\f41e"}.fa-satellite:before{content:"\\f7bf"}.fa-satellite-dish:before{content:"\\f7c0"}.fa-save:before{content:"\\f0c7"}.fa-schlix:before{content:"\\f3ea"}.fa-school:before{content:"\\f549"}.fa-screwdriver:before{content:"\\f54a"}.fa-scribd:before{content:"\\f28a"}.fa-scroll:before{content:"\\f70e"}.fa-sd-card:before{content:"\\f7c2"}.fa-search:before{content:"\\f002"}.fa-search-dollar:before{content:"\\f688"}.fa-search-location:before{content:"\\f689"}.fa-search-minus:before{content:"\\f010"}.fa-search-plus:before{content:"\\f00e"}.fa-searchengin:before{content:"\\f3eb"}.fa-seedling:before{content:"\\f4d8"}.fa-sellcast:before{content:"\\f2da"}.fa-sellsy:before{content:"\\f213"}.fa-server:before{content:"\\f233"}.fa-servicestack:before{content:"\\f3ec"}.fa-shapes:before{content:"\\f61f"}.fa-share:before{content:"\\f064"}.fa-share-alt:before{content:"\\f1e0"}.fa-share-alt-square:before{content:"\\f1e1"}.fa-share-square:before{content:"\\f14d"}.fa-shekel-sign:before{content:"\\f20b"}.fa-shield-alt:before{content:"\\f3ed"}.fa-shield-virus:before{content:"\\e06c"}.fa-ship:before{content:"\\f21a"}.fa-shipping-fast:before{content:"\\f48b"}.fa-shirtsinbulk:before{content:"\\f214"}.fa-shoe-prints:before{content:"\\f54b"}.fa-shopify:before{content:"\\e057"}.fa-shopping-bag:before{content:"\\f290"}.fa-shopping-basket:before{content:"\\f291"}.fa-shopping-cart:before{content:"\\f07a"}.fa-shopware:before{content:"\\f5b5"}.fa-shower:before{content:"\\f2cc"}.fa-shuttle-van:before{content:"\\f5b6"}.fa-sign:before{content:"\\f4d9"}.fa-sign-in-alt:before{content:"\\f2f6"}.fa-sign-language:before{content:"\\f2a7"}.fa-sign-out-alt:before{content:"\\f2f5"}.fa-signal:before{content:"\\f012"}.fa-signature:before{content:"\\f5b7"}.fa-sim-card:before{content:"\\f7c4"}.fa-simplybuilt:before{content:"\\f215"}.fa-sink:before{content:"\\e06d"}.fa-sistrix:before{content:"\\f3ee"}.fa-sitemap:before{content:"\\f0e8"}.fa-sith:before{content:"\\f512"}.fa-skating:before{content:"\\f7c5"}.fa-sketch:before{content:"\\f7c6"}.fa-skiing:before{content:"\\f7c9"}.fa-skiing-nordic:before{content:"\\f7ca"}.fa-skull:before{content:"\\f54c"}.fa-skull-crossbones:before{content:"\\f714"}.fa-skyatlas:before{content:"\\f216"}.fa-skype:before{content:"\\f17e"}.fa-slack:before{content:"\\f198"}.fa-slack-hash:before{content:"\\f3ef"}.fa-slash:before{content:"\\f715"}.fa-sleigh:before{content:"\\f7cc"}.fa-sliders-h:before{content:"\\f1de"}.fa-slideshare:before{content:"\\f1e7"}.fa-smile:before{content:"\\f118"}.fa-smile-beam:before{content:"\\f5b8"}.fa-smile-wink:before{content:"\\f4da"}.fa-smog:before{content:"\\f75f"}.fa-smoking:before{content:"\\f48d"}.fa-smoking-ban:before{content:"\\f54d"}.fa-sms:before{content:"\\f7cd"}.fa-snapchat:before{content:"\\f2ab"}.fa-snapchat-ghost:before{content:"\\f2ac"}.fa-snapchat-square:before{content:"\\f2ad"}.fa-snowboarding:before{content:"\\f7ce"}.fa-snowflake:before{content:"\\f2dc"}.fa-snowman:before{content:"\\f7d0"}.fa-snowplow:before{content:"\\f7d2"}.fa-soap:before{content:"\\e06e"}.fa-socks:before{content:"\\f696"}.fa-solar-panel:before{content:"\\f5ba"}.fa-sort:before{content:"\\f0dc"}.fa-sort-alpha-down:before{content:"\\f15d"}.fa-sort-alpha-down-alt:before{content:"\\f881"}.fa-sort-alpha-up:before{content:"\\f15e"}.fa-sort-alpha-up-alt:before{content:"\\f882"}.fa-sort-amount-down:before{content:"\\f160"}.fa-sort-amount-down-alt:before{content:"\\f884"}.fa-sort-amount-up:before{content:"\\f161"}.fa-sort-amount-up-alt:before{content:"\\f885"}.fa-sort-down:before{content:"\\f0dd"}.fa-sort-numeric-down:before{content:"\\f162"}.fa-sort-numeric-down-alt:before{content:"\\f886"}.fa-sort-numeric-up:before{content:"\\f163"}.fa-sort-numeric-up-alt:before{content:"\\f887"}.fa-sort-up:before{content:"\\f0de"}.fa-soundcloud:before{content:"\\f1be"}.fa-sourcetree:before{content:"\\f7d3"}.fa-spa:before{content:"\\f5bb"}.fa-space-shuttle:before{content:"\\f197"}.fa-speakap:before{content:"\\f3f3"}.fa-speaker-deck:before{content:"\\f83c"}.fa-spell-check:before{content:"\\f891"}.fa-spider:before{content:"\\f717"}.fa-spinner:before{content:"\\f110"}.fa-splotch:before{content:"\\f5bc"}.fa-spotify:before{content:"\\f1bc"}.fa-spray-can:before{content:"\\f5bd"}.fa-square:before{content:"\\f0c8"}.fa-square-full:before{content:"\\f45c"}.fa-square-root-alt:before{content:"\\f698"}.fa-squarespace:before{content:"\\f5be"}.fa-stack-exchange:before{content:"\\f18d"}.fa-stack-overflow:before{content:"\\f16c"}.fa-stackpath:before{content:"\\f842"}.fa-stamp:before{content:"\\f5bf"}.fa-star:before{content:"\\f005"}.fa-star-and-crescent:before{content:"\\f699"}.fa-star-half:before{content:"\\f089"}.fa-star-half-alt:before{content:"\\f5c0"}.fa-star-of-david:before{content:"\\f69a"}.fa-star-of-life:before{content:"\\f621"}.fa-staylinked:before{content:"\\f3f5"}.fa-steam:before{content:"\\f1b6"}.fa-steam-square:before{content:"\\f1b7"}.fa-steam-symbol:before{content:"\\f3f6"}.fa-step-backward:before{content:"\\f048"}.fa-step-forward:before{content:"\\f051"}.fa-stethoscope:before{content:"\\f0f1"}.fa-sticker-mule:before{content:"\\f3f7"}.fa-sticky-note:before{content:"\\f249"}.fa-stop:before{content:"\\f04d"}.fa-stop-circle:before{content:"\\f28d"}.fa-stopwatch:before{content:"\\f2f2"}.fa-stopwatch-20:before{content:"\\e06f"}.fa-store:before{content:"\\f54e"}.fa-store-alt:before{content:"\\f54f"}.fa-store-alt-slash:before{content:"\\e070"}.fa-store-slash:before{content:"\\e071"}.fa-strava:before{content:"\\f428"}.fa-stream:before{content:"\\f550"}.fa-street-view:before{content:"\\f21d"}.fa-strikethrough:before{content:"\\f0cc"}.fa-stripe:before{content:"\\f429"}.fa-stripe-s:before{content:"\\f42a"}.fa-stroopwafel:before{content:"\\f551"}.fa-studiovinari:before{content:"\\f3f8"}.fa-stumbleupon:before{content:"\\f1a4"}.fa-stumbleupon-circle:before{content:"\\f1a3"}.fa-subscript:before{content:"\\f12c"}.fa-subway:before{content:"\\f239"}.fa-suitcase:before{content:"\\f0f2"}.fa-suitcase-rolling:before{content:"\\f5c1"}.fa-sun:before{content:"\\f185"}.fa-superpowers:before{content:"\\f2dd"}.fa-superscript:before{content:"\\f12b"}.fa-supple:before{content:"\\f3f9"}.fa-surprise:before{content:"\\f5c2"}.fa-suse:before{content:"\\f7d6"}.fa-swatchbook:before{content:"\\f5c3"}.fa-swift:before{content:"\\f8e1"}.fa-swimmer:before{content:"\\f5c4"}.fa-swimming-pool:before{content:"\\f5c5"}.fa-symfony:before{content:"\\f83d"}.fa-synagogue:before{content:"\\f69b"}.fa-sync:before{content:"\\f021"}.fa-sync-alt:before{content:"\\f2f1"}.fa-syringe:before{content:"\\f48e"}.fa-table:before{content:"\\f0ce"}.fa-table-tennis:before{content:"\\f45d"}.fa-tablet:before{content:"\\f10a"}.fa-tablet-alt:before{content:"\\f3fa"}.fa-tablets:before{content:"\\f490"}.fa-tachometer-alt:before{content:"\\f3fd"}.fa-tag:before{content:"\\f02b"}.fa-tags:before{content:"\\f02c"}.fa-tape:before{content:"\\f4db"}.fa-tasks:before{content:"\\f0ae"}.fa-taxi:before{content:"\\f1ba"}.fa-teamspeak:before{content:"\\f4f9"}.fa-teeth:before{content:"\\f62e"}.fa-teeth-open:before{content:"\\f62f"}.fa-telegram:before{content:"\\f2c6"}.fa-telegram-plane:before{content:"\\f3fe"}.fa-temperature-high:before{content:"\\f769"}.fa-temperature-low:before{content:"\\f76b"}.fa-tencent-weibo:before{content:"\\f1d5"}.fa-tenge:before{content:"\\f7d7"}.fa-terminal:before{content:"\\f120"}.fa-text-height:before{content:"\\f034"}.fa-text-width:before{content:"\\f035"}.fa-th:before{content:"\\f00a"}.fa-th-large:before{content:"\\f009"}.fa-th-list:before{content:"\\f00b"}.fa-the-red-yeti:before{content:"\\f69d"}.fa-theater-masks:before{content:"\\f630"}.fa-themeco:before{content:"\\f5c6"}.fa-themeisle:before{content:"\\f2b2"}.fa-thermometer:before{content:"\\f491"}.fa-thermometer-empty:before{content:"\\f2cb"}.fa-thermometer-full:before{content:"\\f2c7"}.fa-thermometer-half:before{content:"\\f2c9"}.fa-thermometer-quarter:before{content:"\\f2ca"}.fa-thermometer-three-quarters:before{content:"\\f2c8"}.fa-think-peaks:before{content:"\\f731"}.fa-thumbs-down:before{content:"\\f165"}.fa-thumbs-up:before{content:"\\f164"}.fa-thumbtack:before{content:"\\f08d"}.fa-ticket-alt:before{content:"\\f3ff"}.fa-tiktok:before{content:"\\e07b"}.fa-times:before{content:"\\f00d"}.fa-times-circle:before{content:"\\f057"}.fa-tint:before{content:"\\f043"}.fa-tint-slash:before{content:"\\f5c7"}.fa-tired:before{content:"\\f5c8"}.fa-toggle-off:before{content:"\\f204"}.fa-toggle-on:before{content:"\\f205"}.fa-toilet:before{content:"\\f7d8"}.fa-toilet-paper:before{content:"\\f71e"}.fa-toilet-paper-slash:before{content:"\\e072"}.fa-toolbox:before{content:"\\f552"}.fa-tools:before{content:"\\f7d9"}.fa-tooth:before{content:"\\f5c9"}.fa-torah:before{content:"\\f6a0"}.fa-torii-gate:before{content:"\\f6a1"}.fa-tractor:before{content:"\\f722"}.fa-trade-federation:before{content:"\\f513"}.fa-trademark:before{content:"\\f25c"}.fa-traffic-light:before{content:"\\f637"}.fa-trailer:before{content:"\\e041"}.fa-train:before{content:"\\f238"}.fa-tram:before{content:"\\f7da"}.fa-transgender:before{content:"\\f224"}.fa-transgender-alt:before{content:"\\f225"}.fa-trash:before{content:"\\f1f8"}.fa-trash-alt:before{content:"\\f2ed"}.fa-trash-restore:before{content:"\\f829"}.fa-trash-restore-alt:before{content:"\\f82a"}.fa-tree:before{content:"\\f1bb"}.fa-trello:before{content:"\\f181"}.fa-tripadvisor:before{content:"\\f262"}.fa-trophy:before{content:"\\f091"}.fa-truck:before{content:"\\f0d1"}.fa-truck-loading:before{content:"\\f4de"}.fa-truck-monster:before{content:"\\f63b"}.fa-truck-moving:before{content:"\\f4df"}.fa-truck-pickup:before{content:"\\f63c"}.fa-tshirt:before{content:"\\f553"}.fa-tty:before{content:"\\f1e4"}.fa-tumblr:before{content:"\\f173"}.fa-tumblr-square:before{content:"\\f174"}.fa-tv:before{content:"\\f26c"}.fa-twitch:before{content:"\\f1e8"}.fa-twitter:before{content:"\\f099"}.fa-twitter-square:before{content:"\\f081"}.fa-typo3:before{content:"\\f42b"}.fa-uber:before{content:"\\f402"}.fa-ubuntu:before{content:"\\f7df"}.fa-uikit:before{content:"\\f403"}.fa-umbraco:before{content:"\\f8e8"}.fa-umbrella:before{content:"\\f0e9"}.fa-umbrella-beach:before{content:"\\f5ca"}.fa-uncharted:before{content:"\\e084"}.fa-underline:before{content:"\\f0cd"}.fa-undo:before{content:"\\f0e2"}.fa-undo-alt:before{content:"\\f2ea"}.fa-uniregistry:before{content:"\\f404"}.fa-unity:before{content:"\\e049"}.fa-universal-access:before{content:"\\f29a"}.fa-university:before{content:"\\f19c"}.fa-unlink:before{content:"\\f127"}.fa-unlock:before{content:"\\f09c"}.fa-unlock-alt:before{content:"\\f13e"}.fa-unsplash:before{content:"\\e07c"}.fa-untappd:before{content:"\\f405"}.fa-upload:before{content:"\\f093"}.fa-ups:before{content:"\\f7e0"}.fa-usb:before{content:"\\f287"}.fa-user:before{content:"\\f007"}.fa-user-alt:before{content:"\\f406"}.fa-user-alt-slash:before{content:"\\f4fa"}.fa-user-astronaut:before{content:"\\f4fb"}.fa-user-check:before{content:"\\f4fc"}.fa-user-circle:before{content:"\\f2bd"}.fa-user-clock:before{content:"\\f4fd"}.fa-user-cog:before{content:"\\f4fe"}.fa-user-edit:before{content:"\\f4ff"}.fa-user-friends:before{content:"\\f500"}.fa-user-graduate:before{content:"\\f501"}.fa-user-injured:before{content:"\\f728"}.fa-user-lock:before{content:"\\f502"}.fa-user-md:before{content:"\\f0f0"}.fa-user-minus:before{content:"\\f503"}.fa-user-ninja:before{content:"\\f504"}.fa-user-nurse:before{content:"\\f82f"}.fa-user-plus:before{content:"\\f234"}.fa-user-secret:before{content:"\\f21b"}.fa-user-shield:before{content:"\\f505"}.fa-user-slash:before{content:"\\f506"}.fa-user-tag:before{content:"\\f507"}.fa-user-tie:before{content:"\\f508"}.fa-user-times:before{content:"\\f235"}.fa-users:before{content:"\\f0c0"}.fa-users-cog:before{content:"\\f509"}.fa-users-slash:before{content:"\\e073"}.fa-usps:before{content:"\\f7e1"}.fa-ussunnah:before{content:"\\f407"}.fa-utensil-spoon:before{content:"\\f2e5"}.fa-utensils:before{content:"\\f2e7"}.fa-vaadin:before{content:"\\f408"}.fa-vector-square:before{content:"\\f5cb"}.fa-venus:before{content:"\\f221"}.fa-venus-double:before{content:"\\f226"}.fa-venus-mars:before{content:"\\f228"}.fa-vest:before{content:"\\e085"}.fa-vest-patches:before{content:"\\e086"}.fa-viacoin:before{content:"\\f237"}.fa-viadeo:before{content:"\\f2a9"}.fa-viadeo-square:before{content:"\\f2aa"}.fa-vial:before{content:"\\f492"}.fa-vials:before{content:"\\f493"}.fa-viber:before{content:"\\f409"}.fa-video:before{content:"\\f03d"}.fa-video-slash:before{content:"\\f4e2"}.fa-vihara:before{content:"\\f6a7"}.fa-vimeo:before{content:"\\f40a"}.fa-vimeo-square:before{content:"\\f194"}.fa-vimeo-v:before{content:"\\f27d"}.fa-vine:before{content:"\\f1ca"}.fa-virus:before{content:"\\e074"}.fa-virus-slash:before{content:"\\e075"}.fa-viruses:before{content:"\\e076"}.fa-vk:before{content:"\\f189"}.fa-vnv:before{content:"\\f40b"}.fa-voicemail:before{content:"\\f897"}.fa-volleyball-ball:before{content:"\\f45f"}.fa-volume-down:before{content:"\\f027"}.fa-volume-mute:before{content:"\\f6a9"}.fa-volume-off:before{content:"\\f026"}.fa-volume-up:before{content:"\\f028"}.fa-vote-yea:before{content:"\\f772"}.fa-vr-cardboard:before{content:"\\f729"}.fa-vuejs:before{content:"\\f41f"}.fa-walking:before{content:"\\f554"}.fa-wallet:before{content:"\\f555"}.fa-warehouse:before{content:"\\f494"}.fa-watchman-monitoring:before{content:"\\e087"}.fa-water:before{content:"\\f773"}.fa-wave-square:before{content:"\\f83e"}.fa-waze:before{content:"\\f83f"}.fa-weebly:before{content:"\\f5cc"}.fa-weibo:before{content:"\\f18a"}.fa-weight:before{content:"\\f496"}.fa-weight-hanging:before{content:"\\f5cd"}.fa-weixin:before{content:"\\f1d7"}.fa-whatsapp:before{content:"\\f232"}.fa-whatsapp-square:before{content:"\\f40c"}.fa-wheelchair:before{content:"\\f193"}.fa-whmcs:before{content:"\\f40d"}.fa-wifi:before{content:"\\f1eb"}.fa-wikipedia-w:before{content:"\\f266"}.fa-wind:before{content:"\\f72e"}.fa-window-close:before{content:"\\f410"}.fa-window-maximize:before{content:"\\f2d0"}.fa-window-minimize:before{content:"\\f2d1"}.fa-window-restore:before{content:"\\f2d2"}.fa-windows:before{content:"\\f17a"}.fa-wine-bottle:before{content:"\\f72f"}.fa-wine-glass:before{content:"\\f4e3"}.fa-wine-glass-alt:before{content:"\\f5ce"}.fa-wix:before{content:"\\f5cf"}.fa-wizards-of-the-coast:before{content:"\\f730"}.fa-wodu:before{content:"\\e088"}.fa-wolf-pack-battalion:before{content:"\\f514"}.fa-won-sign:before{content:"\\f159"}.fa-wordpress:before{content:"\\f19a"}.fa-wordpress-simple:before{content:"\\f411"}.fa-wpbeginner:before{content:"\\f297"}.fa-wpexplorer:before{content:"\\f2de"}.fa-wpforms:before{content:"\\f298"}.fa-wpressr:before{content:"\\f3e4"}.fa-wrench:before{content:"\\f0ad"}.fa-x-ray:before{content:"\\f497"}.fa-xbox:before{content:"\\f412"}.fa-xing:before{content:"\\f168"}.fa-xing-square:before{content:"\\f169"}.fa-y-combinator:before{content:"\\f23b"}.fa-yahoo:before{content:"\\f19e"}.fa-yammer:before{content:"\\f840"}.fa-yandex:before{content:"\\f413"}.fa-yandex-international:before{content:"\\f414"}.fa-yarn:before{content:"\\f7e3"}.fa-yelp:before{content:"\\f1e9"}.fa-yen-sign:before{content:"\\f157"}.fa-yin-yang:before{content:"\\f6ad"}.fa-yoast:before{content:"\\f2b1"}.fa-youtube:before{content:"\\f167"}.fa-youtube-square:before{content:"\\f431"}.fa-zhihu:before{content:"\\f63f"}.sr-only{border:0;clip:rect(0, 0, 0, 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}/*!\n * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */@font-face{font-family:\'Font Awesome 5 Free\';font-style:normal;font-weight:900;font-display:block;src:url('+v+");src:url("+w+') format("embedded-opentype"),url('+_+') format("woff2"),url('+k+') format("woff"),url('+x+') format("truetype"),url('+S+") format(\"svg\")}.fa,.fas{font-family:'Font Awesome 5 Free';font-weight:900}/*!\n * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */@font-face{font-family:'Font Awesome 5 Brands';font-style:normal;font-weight:400;font-display:block;src:url("+O+");src:url("+E+') format("embedded-opentype"),url('+T+') format("woff2"),url('+A+') format("woff"),url('+M+') format("truetype"),url('+I+") format(\"svg\")}.fab{font-family:'Font Awesome 5 Brands';font-weight:400}@font-face{font-family:Nanum Barun Gothic;src:url("+P+");font-weight:normal}@font-face{font-family:Nanum Barun Gothic;src:url("+C+");font-weight:300}@font-face{font-family:Nanum Barun Gothic;src:url("+j+');font-weight:bold}/*!\n\n=========================================================\n* Argon Dashboard React - v1.1.0\n=========================================================\n\n* Product Page: https://www.creative-tim.com/product/argon-dashboard-react\n* Copyright 2019 Creative Tim (https://www.creative-tim.com)\n* Licensed under MIT (https://github.com/creativetimofficial/argon-dashboard-react/blob/master/LICENSE.md)\n\n* Coded by Creative Tim\n\n=========================================================\n\n* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\n*/:root{--blue: #5e72e4;--indigo: #5603ad;--purple: #8965e0;--pink: #f3a4b5;--red: #f5365c;--orange: #fb6340;--yellow: #ffd600;--green: #2dce89;--teal: #11cdef;--cyan: #2bffc6;--white: #fff;--gray: #8898aa;--gray-dark: #32325d;--light: #ced4da;--lighter: #e9ecef;--primary: #5e72e4;--secondary: #f7fafc;--success: #2dce89;--info: #11cdef;--warning: #fb6340;--danger: #f5365c;--light: #adb5bd;--dark: #212529;--default: #172b4d;--white: #fff;--neutral: #fff;--darker: #000;--breakpoint-xs: 0;--breakpoint-sm: 576px;--breakpoint-md: 768px;--breakpoint-lg: 992px;--breakpoint-xl: 1200px;--font-family-sans-serif: Open Sans, sans-serif;--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}*,*::before,*::after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:"Nunito Sans",sans-serif;font-size:1rem;font-weight:400;line-height:1.5;color:#000;text-align:left;background-color:#f8f9fe}[tabindex="-1"]:focus{outline:0 !important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[title],abbr[data-original-title]{text-decoration:underline;text-decoration:underline dotted;cursor:help;border-bottom:0}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:600}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#5e72e4;text-decoration:none;background-color:transparent;-webkit-text-decoration-skip:objects}a:hover{color:#233dd2;text-decoration:none}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):hover,a:not([href]):not([tabindex]):focus{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:1rem;padding-bottom:1rem;color:#8898aa;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{padding:0;border-style:none}input[type="radio"],input[type="checkbox"]{box-sizing:border-box;padding:0}input[type="date"],input[type="time"],input[type="datetime-local"],input[type="month"]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{outline-offset:-2px;-webkit-appearance:none}[type="search"]::-webkit-search-cancel-button,[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none !important}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{margin-bottom:.5rem;font-family:inherit;font-weight:600;line-height:1.5;color:#32325d}h1,.h1{font-size:1.625rem}h2,.h2{font-size:1.25rem}h3,.h3{font-size:1.0625rem}h4,.h4{font-size:.9375rem}h5,.h5{font-size:.8125rem}h6,.h6{font-size:.625rem}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:3.3rem;font-weight:600;line-height:1.5}.display-2{font-size:2.75rem;font-weight:600;line-height:1.5}.display-3{font-size:2.1875rem;font-weight:600;line-height:1.5}.display-4{font-size:1.6275rem;font-weight:600;line-height:1.5}hr{margin-top:2rem;margin-bottom:2rem;border:0;border-top:1px solid rgba(0,0,0,0.1)}small,.small{font-size:80%;font-weight:400}mark,.mark{padding:.2em;background-color:#fcf8e3}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote-footer{display:block;font-size:80%;color:#8898aa}.blockquote-footer::before{content:"\\2014 \\00A0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#f8f9fe;border:1px solid #dee2e6;border-radius:.375rem;box-shadow:0 1px 2px rgba(0,0,0,0.075);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#8898aa}code{font-size:87.5%;color:#f3a4b5;word-break:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.25rem;box-shadow:inset 0 -0.1rem 0 rgba(0,0,0,0.25)}kbd kbd{padding:0;font-size:100%;font-weight:600;box-shadow:none}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width: 576px){.container{max-width:540px}}@media (min-width: 768px){.container{max-width:720px}}@media (min-width: 992px){.container{max-width:960px}}@media (min-width: 1200px){.container{max-width:1140px}}.container-fluid{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*="col-"]{padding-right:0;padding-left:0}.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col,.col-auto,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm,.col-sm-auto,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-md,.col-md-auto,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg,.col-lg-auto,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl,.col-xl-auto{position:relative;width:100%;min-height:1px;padding-right:15px;padding-left:15px}.col{flex-basis:0;flex-grow:1;max-width:100%}.col-auto{flex:0 0 auto;width:auto;max-width:none}.col-1{flex:0 0 8.33333%;max-width:8.33333%}.col-2{flex:0 0 16.66667%;max-width:16.66667%}.col-3{flex:0 0 25%;max-width:25%}.col-4{flex:0 0 33.33333%;max-width:33.33333%}.col-5{flex:0 0 41.66667%;max-width:41.66667%}.col-6{flex:0 0 50%;max-width:50%}.col-7{flex:0 0 58.33333%;max-width:58.33333%}.col-8{flex:0 0 66.66667%;max-width:66.66667%}.col-9{flex:0 0 75%;max-width:75%}.col-10{flex:0 0 83.33333%;max-width:83.33333%}.col-11{flex:0 0 91.66667%;max-width:91.66667%}.col-12{flex:0 0 100%;max-width:100%}.order-first{order:-1}.order-last{order:13}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.offset-1{margin-left:8.33333%}.offset-2{margin-left:16.66667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333%}.offset-5{margin-left:41.66667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333%}.offset-8{margin-left:66.66667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333%}.offset-11{margin-left:91.66667%}@media (min-width: 576px){.col-sm{flex-basis:0;flex-grow:1;max-width:100%}.col-sm-auto{flex:0 0 auto;width:auto;max-width:none}.col-sm-1{flex:0 0 8.33333%;max-width:8.33333%}.col-sm-2{flex:0 0 16.66667%;max-width:16.66667%}.col-sm-3{flex:0 0 25%;max-width:25%}.col-sm-4{flex:0 0 33.33333%;max-width:33.33333%}.col-sm-5{flex:0 0 41.66667%;max-width:41.66667%}.col-sm-6{flex:0 0 50%;max-width:50%}.col-sm-7{flex:0 0 58.33333%;max-width:58.33333%}.col-sm-8{flex:0 0 66.66667%;max-width:66.66667%}.col-sm-9{flex:0 0 75%;max-width:75%}.col-sm-10{flex:0 0 83.33333%;max-width:83.33333%}.col-sm-11{flex:0 0 91.66667%;max-width:91.66667%}.col-sm-12{flex:0 0 100%;max-width:100%}.order-sm-first{order:-1}.order-sm-last{order:13}.order-sm-0{order:0}.order-sm-1{order:1}.order-sm-2{order:2}.order-sm-3{order:3}.order-sm-4{order:4}.order-sm-5{order:5}.order-sm-6{order:6}.order-sm-7{order:7}.order-sm-8{order:8}.order-sm-9{order:9}.order-sm-10{order:10}.order-sm-11{order:11}.order-sm-12{order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333%}.offset-sm-2{margin-left:16.66667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333%}.offset-sm-5{margin-left:41.66667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333%}.offset-sm-8{margin-left:66.66667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333%}.offset-sm-11{margin-left:91.66667%}}@media (min-width: 768px){.col-md{flex-basis:0;flex-grow:1;max-width:100%}.col-md-auto{flex:0 0 auto;width:auto;max-width:none}.col-md-1{flex:0 0 8.33333%;max-width:8.33333%}.col-md-2{flex:0 0 16.66667%;max-width:16.66667%}.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.33333%;max-width:33.33333%}.col-md-5{flex:0 0 41.66667%;max-width:41.66667%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-7{flex:0 0 58.33333%;max-width:58.33333%}.col-md-8{flex:0 0 66.66667%;max-width:66.66667%}.col-md-9{flex:0 0 75%;max-width:75%}.col-md-10{flex:0 0 83.33333%;max-width:83.33333%}.col-md-11{flex:0 0 91.66667%;max-width:91.66667%}.col-md-12{flex:0 0 100%;max-width:100%}.order-md-first{order:-1}.order-md-last{order:13}.order-md-0{order:0}.order-md-1{order:1}.order-md-2{order:2}.order-md-3{order:3}.order-md-4{order:4}.order-md-5{order:5}.order-md-6{order:6}.order-md-7{order:7}.order-md-8{order:8}.order-md-9{order:9}.order-md-10{order:10}.order-md-11{order:11}.order-md-12{order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333%}.offset-md-2{margin-left:16.66667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333%}.offset-md-5{margin-left:41.66667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333%}.offset-md-8{margin-left:66.66667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333%}.offset-md-11{margin-left:91.66667%}}@media (min-width: 992px){.col-lg{flex-basis:0;flex-grow:1;max-width:100%}.col-lg-auto{flex:0 0 auto;width:auto;max-width:none}.col-lg-1{flex:0 0 8.33333%;max-width:8.33333%}.col-lg-2{flex:0 0 16.66667%;max-width:16.66667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.33333%;max-width:33.33333%}.col-lg-5{flex:0 0 41.66667%;max-width:41.66667%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-7{flex:0 0 58.33333%;max-width:58.33333%}.col-lg-8{flex:0 0 66.66667%;max-width:66.66667%}.col-lg-9{flex:0 0 75%;max-width:75%}.col-lg-10{flex:0 0 83.33333%;max-width:83.33333%}.col-lg-11{flex:0 0 91.66667%;max-width:91.66667%}.col-lg-12{flex:0 0 100%;max-width:100%}.order-lg-first{order:-1}.order-lg-last{order:13}.order-lg-0{order:0}.order-lg-1{order:1}.order-lg-2{order:2}.order-lg-3{order:3}.order-lg-4{order:4}.order-lg-5{order:5}.order-lg-6{order:6}.order-lg-7{order:7}.order-lg-8{order:8}.order-lg-9{order:9}.order-lg-10{order:10}.order-lg-11{order:11}.order-lg-12{order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333%}.offset-lg-2{margin-left:16.66667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333%}.offset-lg-5{margin-left:41.66667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333%}.offset-lg-8{margin-left:66.66667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333%}.offset-lg-11{margin-left:91.66667%}}@media (min-width: 1200px){.col-xl{flex-basis:0;flex-grow:1;max-width:100%}.col-xl-auto{flex:0 0 auto;width:auto;max-width:none}.col-xl-1{flex:0 0 8.33333%;max-width:8.33333%}.col-xl-2{flex:0 0 16.66667%;max-width:16.66667%}.col-xl-3{flex:0 0 25%;max-width:25%}.col-xl-4{flex:0 0 33.33333%;max-width:33.33333%}.col-xl-5{flex:0 0 41.66667%;max-width:41.66667%}.col-xl-6{flex:0 0 50%;max-width:50%}.col-xl-7{flex:0 0 58.33333%;max-width:58.33333%}.col-xl-8{flex:0 0 66.66667%;max-width:66.66667%}.col-xl-9{flex:0 0 75%;max-width:75%}.col-xl-10{flex:0 0 83.33333%;max-width:83.33333%}.col-xl-11{flex:0 0 91.66667%;max-width:91.66667%}.col-xl-12{flex:0 0 100%;max-width:100%}.order-xl-first{order:-1}.order-xl-last{order:13}.order-xl-0{order:0}.order-xl-1{order:1}.order-xl-2{order:2}.order-xl-3{order:3}.order-xl-4{order:4}.order-xl-5{order:5}.order-xl-6{order:6}.order-xl-7{order:7}.order-xl-8{order:8}.order-xl-9{order:9}.order-xl-10{order:10}.order-xl-11{order:11}.order-xl-12{order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333%}.offset-xl-2{margin-left:16.66667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333%}.offset-xl-5{margin-left:41.66667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333%}.offset-xl-8{margin-left:66.66667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333%}.offset-xl-11{margin-left:91.66667%}}.table{width:100%;margin-bottom:1rem;background-color:rgba(0,0,0,0)}.table th,.table td{padding:1rem;vertical-align:top;border-top:1px solid #e9ecef}.table thead th{vertical-align:bottom;border-bottom:2px solid #e9ecef}.table tbody+tbody{border-top:2px solid #e9ecef}.table .table{background-color:#f8f9fe}.table-sm th,.table-sm td{padding:.5rem}.table-bordered{border:1px solid #e9ecef}.table-bordered th,.table-bordered td{border:1px solid #e9ecef}.table-bordered thead th,.table-bordered thead td{border-bottom-width:2px}.table-borderless th,.table-borderless td,.table-borderless thead th,.table-borderless tbody+tbody{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,0.05)}.table-hover tbody tr:hover{background-color:#f6f9fc}.table-primary,.table-primary>th,.table-primary>td{background-color:#d2d8f7}.table-hover .table-primary:hover{background-color:#bcc5f3}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#bcc5f3}.table-secondary,.table-secondary>th,.table-secondary>td{background-color:#fdfefe}.table-hover .table-secondary:hover{background-color:#ecf6f6}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#ecf6f6}.table-success,.table-success>th,.table-success>td{background-color:#c4f1de}.table-hover .table-success:hover{background-color:#afecd2}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#afecd2}.table-info,.table-info>th,.table-info>td{background-color:#bcf1fb}.table-hover .table-info:hover{background-color:#a4ecfa}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#a4ecfa}.table-warning,.table-warning>th,.table-warning>td{background-color:#fed3ca}.table-hover .table-warning:hover{background-color:#febeb1}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#febeb1}.table-danger,.table-danger>th,.table-danger>td{background-color:#fcc7d1}.table-hover .table-danger:hover{background-color:#fbafbd}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#fbafbd}.table-light,.table-light>th,.table-light>td{background-color:#e8eaed}.table-hover .table-light:hover{background-color:#dadde2}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#dadde2}.table-dark,.table-dark>th,.table-dark>td{background-color:#c1c2c3}.table-hover .table-dark:hover{background-color:#b4b5b6}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b4b5b6}.table-default,.table-default>th,.table-default>td{background-color:#bec4cd}.table-hover .table-default:hover{background-color:#b0b7c2}.table-hover .table-default:hover>td,.table-hover .table-default:hover>th{background-color:#b0b7c2}.table-white,.table-white>th,.table-white>td{background-color:#fff}.table-hover .table-white:hover{background-color:#f2f2f2}.table-hover .table-white:hover>td,.table-hover .table-white:hover>th{background-color:#f2f2f2}.table-neutral,.table-neutral>th,.table-neutral>td{background-color:#fff}.table-hover .table-neutral:hover{background-color:#f2f2f2}.table-hover .table-neutral:hover>td,.table-hover .table-neutral:hover>th{background-color:#f2f2f2}.table-darker,.table-darker>th,.table-darker>td{background-color:#b8b8b8}.table-hover .table-darker:hover{background-color:#ababab}.table-hover .table-darker:hover>td,.table-hover .table-darker:hover>th{background-color:#ababab}.table-active,.table-active>th,.table-active>td{background-color:#f6f9fc}.table-hover .table-active:hover{background-color:#e3ecf6}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:#e3ecf6}.table .thead-dark th{color:#f8f9fe;background-color:#172b4d;border-color:#1f3a68}.table .thead-light th{color:#8898aa;background-color:#f6f9fc;border-color:#e9ecef}.table-dark{color:#f8f9fe;background-color:#172b4d}.table-dark th,.table-dark td,.table-dark thead th{border-color:#1f3a68}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,0.05)}.table-dark.table-hover tbody tr:hover{background-color:rgba(255,255,255,0.075)}@media (max-width: 575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-sm>.table-bordered{border:0}}@media (max-width: 767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-md>.table-bordered{border:0}}@media (max-width: 991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-lg>.table-bordered{border:0}}@media (max-width: 1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(2.75rem + 2px);padding:.625rem .75rem;font-size:1rem;line-height:1.5;color:#8898aa;background-color:#fff;background-clip:padding-box;border:1px solid #cad1d7;border-radius:.375rem;box-shadow:none;transition:all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55)}@media screen and (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:focus{color:#8898aa;background-color:#fff;border-color:rgba(50,151,211,0.25);outline:0;box-shadow:none,none}.form-control::placeholder{color:#adb5bd;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}select.form-control:focus::-ms-value{color:#8898aa;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.625rem + 1px);padding-bottom:calc(.625rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.875rem + 1px);padding-bottom:calc(.875rem + 1px);font-size:1.25rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding-top:.625rem;padding-bottom:.625rem;margin-bottom:0;line-height:1.5;color:#000;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.8125rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem}.form-control-lg{height:calc(3.625rem + 2px);padding:.875rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.4375rem}select.form-control[size],select.form-control[multiple]{height:auto}textarea.form-control{height:auto}.form-group{margin-bottom:1.5rem}.form-text{display:block;margin-top:.25rem}.form-row{display:flex;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*="col-"]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled ~ .form-check-label{color:#8898aa}.form-check-label{margin-bottom:0}.form-check-inline{display:inline-flex;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#2dce89}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.5rem;margin-top:.1rem;font-size:.875rem;line-height:1;color:#fff;background-color:rgba(45,206,137,0.8);border-radius:.2rem}.was-validated .form-control:valid,.form-control.is-valid,.was-validated .custom-select:valid,.custom-select.is-valid{border-color:#2dce89}.was-validated .form-control:valid:focus,.form-control.is-valid:focus,.was-validated .custom-select:valid:focus,.custom-select.is-valid:focus{border-color:#2dce89}.was-validated .form-control:valid ~ .valid-feedback,.was-validated .form-control:valid ~ .valid-tooltip,.form-control.is-valid ~ .valid-feedback,.form-control.is-valid ~ .valid-tooltip,.was-validated .custom-select:valid ~ .valid-feedback,.was-validated .custom-select:valid ~ .valid-tooltip,.custom-select.is-valid ~ .valid-feedback,.custom-select.is-valid ~ .valid-tooltip{display:block}.was-validated .form-check-input:valid ~ .form-check-label,.form-check-input.is-valid ~ .form-check-label{color:#2dce89}.was-validated .form-check-input:valid ~ .valid-feedback,.was-validated .form-check-input:valid ~ .valid-tooltip,.form-check-input.is-valid ~ .valid-feedback,.form-check-input.is-valid ~ .valid-tooltip{display:block}.was-validated .custom-control-input:valid ~ .custom-control-label,.custom-control-input.is-valid ~ .custom-control-label{color:#2dce89}.was-validated .custom-control-input:valid ~ .custom-control-label::before,.custom-control-input.is-valid ~ .custom-control-label::before{background-color:#93e7c3;border-color:#93e7c3}.was-validated .custom-control-input:valid ~ .valid-feedback,.was-validated .custom-control-input:valid ~ .valid-tooltip,.custom-control-input.is-valid ~ .valid-feedback,.custom-control-input.is-valid ~ .valid-tooltip{display:block}.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before,.custom-control-input.is-valid:checked ~ .custom-control-label::before{background-color:#54daa1;border-color:#93e7c3}.was-validated .custom-control-input:valid:focus ~ .custom-control-label::before,.custom-control-input.is-valid:focus ~ .custom-control-label::before{box-shadow:0 0 0 1px #f8f9fe,0 0 0 0 rgba(45,206,137,0.25)}.was-validated .custom-file-input:valid ~ .custom-file-label,.custom-file-input.is-valid ~ .custom-file-label{border-color:#2dce89}.was-validated .custom-file-input:valid ~ .custom-file-label::before,.custom-file-input.is-valid ~ .custom-file-label::before{border-color:inherit}.was-validated .custom-file-input:valid ~ .valid-feedback,.was-validated .custom-file-input:valid ~ .valid-tooltip,.custom-file-input.is-valid ~ .valid-feedback,.custom-file-input.is-valid ~ .valid-tooltip{display:block}.was-validated .custom-file-input:valid:focus ~ .custom-file-label,.custom-file-input.is-valid:focus ~ .custom-file-label{box-shadow:0 0 0 0 rgba(45,206,137,0.25)}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#fb6340}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.5rem;margin-top:.1rem;font-size:.875rem;line-height:1;color:#fff;background-color:rgba(251,99,64,0.8);border-radius:.2rem}.was-validated .form-control:invalid,.form-control.is-invalid,.was-validated .custom-select:invalid,.custom-select.is-invalid{border-color:#fb6340}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus,.was-validated .custom-select:invalid:focus,.custom-select.is-invalid:focus{border-color:#fb6340}.was-validated .form-control:invalid ~ .invalid-feedback,.was-validated .form-control:invalid ~ .invalid-tooltip,.form-control.is-invalid ~ .invalid-feedback,.form-control.is-invalid ~ .invalid-tooltip,.was-validated .custom-select:invalid ~ .invalid-feedback,.was-validated .custom-select:invalid ~ .invalid-tooltip,.custom-select.is-invalid ~ .invalid-feedback,.custom-select.is-invalid ~ .invalid-tooltip{display:block}.was-validated .form-check-input:invalid ~ .form-check-label,.form-check-input.is-invalid ~ .form-check-label{color:#fb6340}.was-validated .form-check-input:invalid ~ .invalid-feedback,.was-validated .form-check-input:invalid ~ .invalid-tooltip,.form-check-input.is-invalid ~ .invalid-feedback,.form-check-input.is-invalid ~ .invalid-tooltip{display:block}.was-validated .custom-control-input:invalid ~ .custom-control-label,.custom-control-input.is-invalid ~ .custom-control-label{color:#fb6340}.was-validated .custom-control-input:invalid ~ .custom-control-label::before,.custom-control-input.is-invalid ~ .custom-control-label::before{background-color:#fec9bd;border-color:#fec9bd}.was-validated .custom-control-input:invalid ~ .invalid-feedback,.was-validated .custom-control-input:invalid ~ .invalid-tooltip,.custom-control-input.is-invalid ~ .invalid-feedback,.custom-control-input.is-invalid ~ .invalid-tooltip{display:block}.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before,.custom-control-input.is-invalid:checked ~ .custom-control-label::before{background-color:#fc8c72;border-color:#fec9bd}.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before,.custom-control-input.is-invalid:focus ~ .custom-control-label::before{box-shadow:0 0 0 1px #f8f9fe,0 0 0 0 rgba(251,99,64,0.25)}.was-validated .custom-file-input:invalid ~ .custom-file-label,.custom-file-input.is-invalid ~ .custom-file-label{border-color:#fb6340}.was-validated .custom-file-input:invalid ~ .custom-file-label::before,.custom-file-input.is-invalid ~ .custom-file-label::before{border-color:inherit}.was-validated .custom-file-input:invalid ~ .invalid-feedback,.was-validated .custom-file-input:invalid ~ .invalid-tooltip,.custom-file-input.is-invalid ~ .invalid-feedback,.custom-file-input.is-invalid ~ .invalid-tooltip{display:block}.was-validated .custom-file-input:invalid:focus ~ .custom-file-label,.custom-file-input.is-invalid:focus ~ .custom-file-label{box-shadow:0 0 0 0 rgba(251,99,64,0.25)}.form-inline{display:flex;flex-flow:row wrap;align-items:center}.form-inline .form-check{width:100%}@media (min-width: 576px){.form-inline label{display:flex;align-items:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:flex;flex:0 0 auto;flex-flow:row wrap;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .input-group,.form-inline .custom-select{width:auto}.form-inline .form-check{display:flex;align-items:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{align-items:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:600;text-align:center;white-space:nowrap;vertical-align:middle;user-select:none;border:1px solid transparent;padding:.625rem 1.25rem;font-size:1rem;line-height:1.5;border-radius:.375rem;transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out}@media screen and (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover,.btn:focus{text-decoration:none}.btn:focus,.btn.focus{outline:0;box-shadow:0 7px 14px rgba(50,50,93,0.1),0 3px 6px rgba(0,0,0,0.08)}.btn.disabled,.btn:disabled{opacity:.65;box-shadow:none}.btn:not(:disabled):not(.disabled){cursor:pointer}.btn:not(:disabled):not(.disabled):active,.btn:not(:disabled):not(.disabled).active{box-shadow:none}.btn:not(:disabled):not(.disabled):active:focus,.btn:not(:disabled):not(.disabled).active:focus{box-shadow:0 7px 14px rgba(50,50,93,0.1),0 3px 6px rgba(0,0,0,0.08),none}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#5e72e4;border-color:#5e72e4;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-primary:hover{color:#fff;background-color:#5e72e4;border-color:#5e72e4}.btn-primary:focus,.btn-primary.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(94,114,228,0.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#5e72e4;border-color:#5e72e4}.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled).active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#324cdd;border-color:#5e72e4}.btn-primary:not(:disabled):not(.disabled):active:focus,.btn-primary:not(:disabled):not(.disabled).active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(94,114,228,0.5)}.btn-secondary{color:#212529;background-color:#f7fafc;border-color:#f7fafc;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-secondary:hover{color:#212529;background-color:#f7fafc;border-color:#f7fafc}.btn-secondary:focus,.btn-secondary.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(247,250,252,0.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#212529;background-color:#f7fafc;border-color:#f7fafc}.btn-secondary:not(:disabled):not(.disabled):active,.btn-secondary:not(:disabled):not(.disabled).active,.show>.btn-secondary.dropdown-toggle{color:#212529;background-color:#d2e3ee;border-color:#f7fafc}.btn-secondary:not(:disabled):not(.disabled):active:focus,.btn-secondary:not(:disabled):not(.disabled).active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(247,250,252,0.5)}.btn-success{color:#fff;background-color:#2dce89;border-color:#2dce89;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-success:hover{color:#fff;background-color:#2dce89;border-color:#2dce89}.btn-success:focus,.btn-success.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(45,206,137,0.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#2dce89;border-color:#2dce89}.btn-success:not(:disabled):not(.disabled):active,.btn-success:not(:disabled):not(.disabled).active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#24a46d;border-color:#2dce89}.btn-success:not(:disabled):not(.disabled):active:focus,.btn-success:not(:disabled):not(.disabled).active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(45,206,137,0.5)}.btn-info{color:#fff;background-color:#11cdef;border-color:#11cdef;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-info:hover{color:#fff;background-color:#11cdef;border-color:#11cdef}.btn-info:focus,.btn-info.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(17,205,239,0.5)}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#11cdef;border-color:#11cdef}.btn-info:not(:disabled):not(.disabled):active,.btn-info:not(:disabled):not(.disabled).active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#0da5c0;border-color:#11cdef}.btn-info:not(:disabled):not(.disabled):active:focus,.btn-info:not(:disabled):not(.disabled).active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(17,205,239,0.5)}.btn-warning{color:#fff;background-color:#fb6340;border-color:#fb6340;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-warning:hover{color:#fff;background-color:#fb6340;border-color:#fb6340}.btn-warning:focus,.btn-warning.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(251,99,64,0.5)}.btn-warning.disabled,.btn-warning:disabled{color:#fff;background-color:#fb6340;border-color:#fb6340}.btn-warning:not(:disabled):not(.disabled):active,.btn-warning:not(:disabled):not(.disabled).active,.show>.btn-warning.dropdown-toggle{color:#fff;background-color:#fa3a0e;border-color:#fb6340}.btn-warning:not(:disabled):not(.disabled):active:focus,.btn-warning:not(:disabled):not(.disabled).active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(251,99,64,0.5)}.btn-danger{color:#fff;background-color:#f5365c;border-color:#f5365c;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-danger:hover{color:#fff;background-color:#f5365c;border-color:#f5365c}.btn-danger:focus,.btn-danger.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(245,54,92,0.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#f5365c;border-color:#f5365c}.btn-danger:not(:disabled):not(.disabled):active,.btn-danger:not(:disabled):not(.disabled).active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#ec0c38;border-color:#f5365c}.btn-danger:not(:disabled):not(.disabled):active:focus,.btn-danger:not(:disabled):not(.disabled).active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(245,54,92,0.5)}.btn-light{color:#fff;background-color:#adb5bd;border-color:#adb5bd;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-light:hover{color:#fff;background-color:#adb5bd;border-color:#adb5bd}.btn-light:focus,.btn-light.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(173,181,189,0.5)}.btn-light.disabled,.btn-light:disabled{color:#fff;background-color:#adb5bd;border-color:#adb5bd}.btn-light:not(:disabled):not(.disabled):active,.btn-light:not(:disabled):not(.disabled).active,.show>.btn-light.dropdown-toggle{color:#fff;background-color:#919ca6;border-color:#adb5bd}.btn-light:not(:disabled):not(.disabled):active:focus,.btn-light:not(:disabled):not(.disabled).active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(173,181,189,0.5)}.btn-dark{color:#fff;background-color:#212529;border-color:#212529;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-dark:hover{color:#fff;background-color:#212529;border-color:#212529}.btn-dark:focus,.btn-dark.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(33,37,41,0.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#212529;border-color:#212529}.btn-dark:not(:disabled):not(.disabled):active,.btn-dark:not(:disabled):not(.disabled).active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#0a0c0d;border-color:#212529}.btn-dark:not(:disabled):not(.disabled):active:focus,.btn-dark:not(:disabled):not(.disabled).active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(33,37,41,0.5)}.btn-default{color:#fff;background-color:#172b4d;border-color:#172b4d;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-default:hover{color:#fff;background-color:#172b4d;border-color:#172b4d}.btn-default:focus,.btn-default.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(23,43,77,0.5)}.btn-default.disabled,.btn-default:disabled{color:#fff;background-color:#172b4d;border-color:#172b4d}.btn-default:not(:disabled):not(.disabled):active,.btn-default:not(:disabled):not(.disabled).active,.show>.btn-default.dropdown-toggle{color:#fff;background-color:#0b1526;border-color:#172b4d}.btn-default:not(:disabled):not(.disabled):active:focus,.btn-default:not(:disabled):not(.disabled).active:focus,.show>.btn-default.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(23,43,77,0.5)}.btn-white{color:#212529;background-color:#fff;border-color:#fff;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-white:hover{color:#212529;background-color:#fff;border-color:#fff}.btn-white:focus,.btn-white.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(255,255,255,0.5)}.btn-white.disabled,.btn-white:disabled{color:#212529;background-color:#fff;border-color:#fff}.btn-white:not(:disabled):not(.disabled):active,.btn-white:not(:disabled):not(.disabled).active,.show>.btn-white.dropdown-toggle{color:#212529;background-color:#e6e6e6;border-color:#fff}.btn-white:not(:disabled):not(.disabled):active:focus,.btn-white:not(:disabled):not(.disabled).active:focus,.show>.btn-white.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(255,255,255,0.5)}.btn-neutral{color:#212529;background-color:#fff;border-color:#fff;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-neutral:hover{color:#212529;background-color:#fff;border-color:#fff}.btn-neutral:focus,.btn-neutral.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(255,255,255,0.5)}.btn-neutral.disabled,.btn-neutral:disabled{color:#212529;background-color:#fff;border-color:#fff}.btn-neutral:not(:disabled):not(.disabled):active,.btn-neutral:not(:disabled):not(.disabled).active,.show>.btn-neutral.dropdown-toggle{color:#212529;background-color:#e6e6e6;border-color:#fff}.btn-neutral:not(:disabled):not(.disabled):active:focus,.btn-neutral:not(:disabled):not(.disabled).active:focus,.show>.btn-neutral.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(255,255,255,0.5)}.btn-darker{color:#fff;background-color:#000;border-color:#000;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-darker:hover{color:#fff;background-color:#000;border-color:#000}.btn-darker:focus,.btn-darker.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(0,0,0,0.5)}.btn-darker.disabled,.btn-darker:disabled{color:#fff;background-color:#000;border-color:#000}.btn-darker:not(:disabled):not(.disabled):active,.btn-darker:not(:disabled):not(.disabled).active,.show>.btn-darker.dropdown-toggle{color:#fff;background-color:#000;border-color:#000}.btn-darker:not(:disabled):not(.disabled):active:focus,.btn-darker:not(:disabled):not(.disabled).active:focus,.show>.btn-darker.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(0,0,0,0.5)}.btn-outline-primary{color:#5e72e4;background-color:transparent;background-image:none;border-color:#5e72e4}.btn-outline-primary:hover{color:#fff;background-color:#5e72e4;border-color:#5e72e4}.btn-outline-primary:focus,.btn-outline-primary.focus{box-shadow:0 0 0 0 rgba(94,114,228,0.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#5e72e4;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#5e72e4;border-color:#5e72e4}.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(94,114,228,0.5)}.btn-outline-secondary{color:#f7fafc;background-color:transparent;background-image:none;border-color:#f7fafc}.btn-outline-secondary:hover{color:#212529;background-color:#f7fafc;border-color:#f7fafc}.btn-outline-secondary:focus,.btn-outline-secondary.focus{box-shadow:0 0 0 0 rgba(247,250,252,0.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#f7fafc;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled):active,.btn-outline-secondary:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.dropdown-toggle{color:#212529;background-color:#f7fafc;border-color:#f7fafc}.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(247,250,252,0.5)}.btn-outline-success{color:#2dce89;background-color:transparent;background-image:none;border-color:#2dce89}.btn-outline-success:hover{color:#fff;background-color:#2dce89;border-color:#2dce89}.btn-outline-success:focus,.btn-outline-success.focus{box-shadow:0 0 0 0 rgba(45,206,137,0.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#2dce89;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled):active,.btn-outline-success:not(:disabled):not(.disabled).active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#2dce89;border-color:#2dce89}.btn-outline-success:not(:disabled):not(.disabled):active:focus,.btn-outline-success:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(45,206,137,0.5)}.btn-outline-info{color:#11cdef;background-color:transparent;background-image:none;border-color:#11cdef}.btn-outline-info:hover{color:#fff;background-color:#11cdef;border-color:#11cdef}.btn-outline-info:focus,.btn-outline-info.focus{box-shadow:0 0 0 0 rgba(17,205,239,0.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#11cdef;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled):active,.btn-outline-info:not(:disabled):not(.disabled).active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#11cdef;border-color:#11cdef}.btn-outline-info:not(:disabled):not(.disabled):active:focus,.btn-outline-info:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(17,205,239,0.5)}.btn-outline-warning{color:#fb6340;background-color:transparent;background-image:none;border-color:#fb6340}.btn-outline-warning:hover{color:#fff;background-color:#fb6340;border-color:#fb6340}.btn-outline-warning:focus,.btn-outline-warning.focus{box-shadow:0 0 0 0 rgba(251,99,64,0.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#fb6340;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled):active,.btn-outline-warning:not(:disabled):not(.disabled).active,.show>.btn-outline-warning.dropdown-toggle{color:#fff;background-color:#fb6340;border-color:#fb6340}.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(251,99,64,0.5)}.btn-outline-danger{color:#f5365c;background-color:transparent;background-image:none;border-color:#f5365c}.btn-outline-danger:hover{color:#fff;background-color:#f5365c;border-color:#f5365c}.btn-outline-danger:focus,.btn-outline-danger.focus{box-shadow:0 0 0 0 rgba(245,54,92,0.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#f5365c;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled):active,.btn-outline-danger:not(:disabled):not(.disabled).active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#f5365c;border-color:#f5365c}.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(245,54,92,0.5)}.btn-outline-light{color:#adb5bd;background-color:transparent;background-image:none;border-color:#adb5bd}.btn-outline-light:hover{color:#fff;background-color:#adb5bd;border-color:#adb5bd}.btn-outline-light:focus,.btn-outline-light.focus{box-shadow:0 0 0 0 rgba(173,181,189,0.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#adb5bd;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled):active,.btn-outline-light:not(:disabled):not(.disabled).active,.show>.btn-outline-light.dropdown-toggle{color:#fff;background-color:#adb5bd;border-color:#adb5bd}.btn-outline-light:not(:disabled):not(.disabled):active:focus,.btn-outline-light:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(173,181,189,0.5)}.btn-outline-dark{color:#212529;background-color:transparent;background-image:none;border-color:#212529}.btn-outline-dark:hover{color:#fff;background-color:#212529;border-color:#212529}.btn-outline-dark:focus,.btn-outline-dark.focus{box-shadow:0 0 0 0 rgba(33,37,41,0.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#212529;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled):active,.btn-outline-dark:not(:disabled):not(.disabled).active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#212529;border-color:#212529}.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(33,37,41,0.5)}.btn-outline-default{color:#172b4d;background-color:transparent;background-image:none;border-color:#172b4d}.btn-outline-default:hover{color:#fff;background-color:#172b4d;border-color:#172b4d}.btn-outline-default:focus,.btn-outline-default.focus{box-shadow:0 0 0 0 rgba(23,43,77,0.5)}.btn-outline-default.disabled,.btn-outline-default:disabled{color:#172b4d;background-color:transparent}.btn-outline-default:not(:disabled):not(.disabled):active,.btn-outline-default:not(:disabled):not(.disabled).active,.show>.btn-outline-default.dropdown-toggle{color:#fff;background-color:#172b4d;border-color:#172b4d}.btn-outline-default:not(:disabled):not(.disabled):active:focus,.btn-outline-default:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-default.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(23,43,77,0.5)}.btn-outline-white{color:#fff;background-color:transparent;background-image:none;border-color:#fff}.btn-outline-white:hover{color:#212529;background-color:#fff;border-color:#fff}.btn-outline-white:focus,.btn-outline-white.focus{box-shadow:0 0 0 0 rgba(255,255,255,0.5)}.btn-outline-white.disabled,.btn-outline-white:disabled{color:#fff;background-color:transparent}.btn-outline-white:not(:disabled):not(.disabled):active,.btn-outline-white:not(:disabled):not(.disabled).active,.show>.btn-outline-white.dropdown-toggle{color:#212529;background-color:#fff;border-color:#fff}.btn-outline-white:not(:disabled):not(.disabled):active:focus,.btn-outline-white:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-white.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(255,255,255,0.5)}.btn-outline-neutral{color:#fff;background-color:transparent;background-image:none;border-color:#fff}.btn-outline-neutral:hover{color:#212529;background-color:#fff;border-color:#fff}.btn-outline-neutral:focus,.btn-outline-neutral.focus{box-shadow:0 0 0 0 rgba(255,255,255,0.5)}.btn-outline-neutral.disabled,.btn-outline-neutral:disabled{color:#fff;background-color:transparent}.btn-outline-neutral:not(:disabled):not(.disabled):active,.btn-outline-neutral:not(:disabled):not(.disabled).active,.show>.btn-outline-neutral.dropdown-toggle{color:#212529;background-color:#fff;border-color:#fff}.btn-outline-neutral:not(:disabled):not(.disabled):active:focus,.btn-outline-neutral:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-neutral.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(255,255,255,0.5)}.btn-outline-darker{color:#000;background-color:transparent;background-image:none;border-color:#000}.btn-outline-darker:hover{color:#fff;background-color:#000;border-color:#000}.btn-outline-darker:focus,.btn-outline-darker.focus{box-shadow:0 0 0 0 rgba(0,0,0,0.5)}.btn-outline-darker.disabled,.btn-outline-darker:disabled{color:#000;background-color:transparent}.btn-outline-darker:not(:disabled):not(.disabled):active,.btn-outline-darker:not(:disabled):not(.disabled).active,.show>.btn-outline-darker.dropdown-toggle{color:#fff;background-color:#000;border-color:#000}.btn-outline-darker:not(:disabled):not(.disabled):active:focus,.btn-outline-darker:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-darker.dropdown-toggle:focus{box-shadow:0 0 0 0 rgba(0,0,0,0.5)}.btn-link{font-weight:400;color:#5e72e4;background-color:transparent}.btn-link:hover{color:#233dd2;text-decoration:none;background-color:transparent;border-color:transparent}.btn-link:focus,.btn-link.focus{text-decoration:none;border-color:transparent;box-shadow:none}.btn-link:disabled,.btn-link.disabled{color:#8898aa;pointer-events:none}.btn-lg,.btn-group-lg>.btn{padding:.875rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.4375rem}.btn-sm,.btn-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.375rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.fade{transition:opacity 0.15s linear}@media screen and (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height 0.35s ease}@media screen and (prefers-reduced-motion: reduce){.collapsing{transition:none}}.dropup,.dropright,.dropdown,.dropleft{position:relative}.dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:1rem;color:#000;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:0 solid rgba(0,0,0,0.15);border-radius:.4375rem;box-shadow:0 50px 100px rgba(50,50,93,0.1),0 15px 35px rgba(50,50,93,0.15),0 5px 15px rgba(0,0,0,0.1)}.dropdown-menu-right{right:0;left:auto}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-toggle::after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle::after{display:inline-block;width:0;height:0;margin-left:.255em;vertical-align:.255em;content:""}.dropleft .dropdown-toggle::after{display:none}.dropleft .dropdown-toggle::before{display:inline-block;width:0;height:0;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty::after{margin-left:0}.dropleft .dropdown-toggle::before{vertical-align:0}.dropdown-menu[x-placement^="top"],.dropdown-menu[x-placement^="right"],.dropdown-menu[x-placement^="bottom"],.dropdown-menu[x-placement^="left"]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:hover,.dropdown-item:focus{color:#16181b;text-decoration:none;background-color:#f6f9fc}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#5e72e4}.dropdown-item.disabled,.dropdown-item:disabled{color:#8898aa;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.875rem;color:#8898aa;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;flex:0 1 auto}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover{z-index:1}.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group,.btn-group-vertical .btn+.btn,.btn-group-vertical .btn+.btn-group,.btn-group-vertical .btn-group+.btn,.btn-group-vertical .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:not(:first-child),.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.9375rem;padding-left:.9375rem}.dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after,.dropright .dropdown-toggle-split::after{margin-left:0}.dropleft .dropdown-toggle-split::before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group.show .dropdown-toggle{box-shadow:none}.btn-group.show .dropdown-toggle.btn-link{box-shadow:none}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical .btn,.btn-group-vertical .btn-group{width:100%}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle),.btn-group-vertical>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type="radio"],.btn-group-toggle>.btn input[type="checkbox"],.btn-group-toggle>.btn-group>.btn input[type="radio"],.btn-group-toggle>.btn-group>.btn input[type="checkbox"]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.custom-select,.input-group>.custom-file{position:relative;flex:1 1 auto;width:1%;margin-bottom:0}.input-group>.form-control+.form-control,.input-group>.form-control+.custom-select,.input-group>.form-control+.custom-file,.input-group>.custom-select+.form-control,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.custom-file,.input-group>.custom-file+.form-control,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.custom-file{margin-left:-1px}.input-group>.form-control:focus,.input-group>.custom-select:focus,.input-group>.custom-file .custom-file-input:focus ~ .custom-file-label{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.form-control:not(:last-child),.input-group>.custom-select:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.form-control:not(:first-child),.input-group>.custom-select:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:flex;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label::after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-prepend,.input-group-append{display:flex}.input-group-prepend .btn,.input-group-append .btn{position:relative;z-index:2}.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.input-group-text,.input-group-append .input-group-text+.btn{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:flex;align-items:center;padding:.625rem .75rem;margin-bottom:0;font-size:1rem;font-weight:400;line-height:1.5;color:#adb5bd;text-align:center;white-space:nowrap;background-color:#fff;border:1px solid #cad1d7;border-radius:.375rem}.input-group-text input[type="radio"],.input-group-text input[type="checkbox"]{margin-top:0}.input-group-lg>.form-control,.input-group-lg>.input-group-prepend>.input-group-text,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-append>.btn{height:calc(3.625rem + 2px);padding:.875rem 1rem;font-size:1.25rem;line-height:1.5;border-radius:.4375rem}.input-group-sm>.form-control,.input-group-sm>.input-group-prepend>.input-group-text,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-append>.btn{height:calc(1.8125rem + 2px);padding:.25rem .5rem;font-size:.875rem;line-height:1.5;border-radius:.25rem}.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text,.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.5rem;padding-left:1.75rem}.custom-control-inline{display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;z-index:-1;opacity:0}.custom-control-input:checked ~ .custom-control-label::before{color:#fff;background-color:#5e72e4;box-shadow:none}.custom-control-input:focus ~ .custom-control-label::before{box-shadow:none}.custom-control-input:active ~ .custom-control-label::before{color:#fff;background-color:#5e72e4;box-shadow:none}.custom-control-input:disabled ~ .custom-control-label{color:#8898aa}.custom-control-input:disabled ~ .custom-control-label::before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0}.custom-control-label::before{position:absolute;top:.125rem;left:-1.75rem;display:block;width:1.25rem;height:1.25rem;pointer-events:none;content:"";user-select:none;background-color:#fff;box-shadow:none}.custom-control-label::after{position:absolute;top:.125rem;left:-1.75rem;display:block;width:1.25rem;height:1.25rem;content:"";background-repeat:no-repeat;background-position:center center;background-size:50% 50%}.custom-checkbox .custom-control-label::before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before{background-color:#5e72e4}.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 8 8\'%3E%3Cpath fill=\'%23fff\' d=\'M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z\'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before{background-color:#5e72e4;box-shadow:none}.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 4 4\'%3E%3Cpath stroke=\'%23fff\' d=\'M0 2h4\'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before{background-color:rgba(94,114,228,0.5)}.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before{background-color:rgba(94,114,228,0.5)}.custom-radio .custom-control-label::before{border-radius:50%}.custom-radio .custom-control-input:checked ~ .custom-control-label::before{background-color:#5e72e4}.custom-radio .custom-control-input:checked ~ .custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'-4 -4 8 8\'%3E%3Ccircle r=\'3\' fill=\'%23fff\'/%3E%3C/svg%3E")}.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before{background-color:rgba(94,114,228,0.5)}.custom-select{display:inline-block;width:100%;height:calc(2.75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;line-height:1.5;color:#8898aa;vertical-align:middle;background:#fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 4 5\'%3E%3Cpath fill=\'%2332325d\' d=\'M2 0L0 2h4zm0 5L0 3h4z\'/%3E%3C/svg%3E") no-repeat right .75rem center;background-size:8px 10px;border:1px solid #cad1d7;border-radius:.375rem;box-shadow:inset 0 1px 2px rgba(0,0,0,0.075);appearance:none}.custom-select:focus{border-color:rgba(50,151,211,0.25);outline:0;box-shadow:inset 0 1px 2px rgba(0,0,0,0.075),0 0 0 0 rgba(50,151,211,0.5)}.custom-select:focus::-ms-value{color:#8898aa;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#8898aa;background-color:#e9ecef}.custom-select::-ms-expand{opacity:0}.custom-select-sm{height:calc(1.8125rem + 2px);padding-top:.375rem;padding-bottom:.375rem;font-size:75%}.custom-select-lg{height:calc(3.625rem + 2px);padding-top:.375rem;padding-bottom:.375rem;font-size:125%}.custom-file{position:relative;display:inline-block;width:100%;height:calc(2.75rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(2.75rem + 2px);margin:0;opacity:0}.custom-file-input:focus ~ .custom-file-label{border-color:rgba(50,151,211,0.25);box-shadow:none}.custom-file-input:focus ~ .custom-file-label::after{border-color:rgba(50,151,211,0.25)}.custom-file-input:disabled ~ .custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en) ~ .custom-file-label::after{content:"Browse"}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(2.75rem + 2px);padding:.625rem .75rem;line-height:1.5;color:#8898aa;background-color:#fff;border:1px solid #cad1d7;border-radius:.375rem;box-shadow:none}.custom-file-label::after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:2.75rem;padding:.625rem .75rem;line-height:1.5;color:#8898aa;content:"Browse";background-color:#fff;border-left:1px solid #cad1d7;border-radius:0 .375rem .375rem 0}.custom-range{width:100%;padding-left:0;background-color:transparent;appearance:none}.custom-range:focus{outline:none}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #f8f9fe,none}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #f8f9fe,none}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #f8f9fe,none}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#5e72e4;border:0;border-radius:1rem;box-shadow:0 0.1rem 0.25rem rgba(0,0,0,0.1);transition:background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out;appearance:none}@media screen and (prefers-reduced-motion: reduce){.custom-range::-webkit-slider-thumb{transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#f7f8fe}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem;box-shadow:inset 0 0.25rem 0.25rem rgba(0,0,0,0.1)}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#5e72e4;border:0;border-radius:1rem;box-shadow:0 0.1rem 0.25rem rgba(0,0,0,0.1);transition:background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out;appearance:none}@media screen and (prefers-reduced-motion: reduce){.custom-range::-moz-range-thumb{transition:none}}.custom-range::-moz-range-thumb:active{background-color:#f7f8fe}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem;box-shadow:inset 0 0.25rem 0.25rem rgba(0,0,0,0.1)}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:0;margin-left:0;background-color:#5e72e4;border:0;border-radius:1rem;box-shadow:0 0.1rem 0.25rem rgba(0,0,0,0.1);transition:background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out;appearance:none}@media screen and (prefers-reduced-motion: reduce){.custom-range::-ms-thumb{transition:none}}.custom-range::-ms-thumb:active{background-color:#f7f8fe}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem;box-shadow:inset 0 0.25rem 0.25rem rgba(0,0,0,0.1)}.custom-range::-ms-fill-lower{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6;border-radius:1rem}.custom-control-label::before,.custom-file-label,.custom-select{transition:background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out}@media screen and (prefers-reduced-motion: reduce){.custom-control-label::before,.custom-file-label,.custom-select{transition:none}}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.25rem .75rem}.nav-link:hover,.nav-link:focus{text-decoration:none}.nav-link.disabled{color:#8898aa}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.375rem;border-top-right-radius:.375rem}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#8898aa;background-color:transparent;border-color:transparent}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:#525f7f;background-color:#f8f9fe;border-color:#dee2e6 #dee2e6 #f8f9fe}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.375rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#5e72e4}.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:1rem 1rem}.navbar>.container,.navbar>.container-fluid{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.0625rem;padding-bottom:.0625rem;margin-right:1rem;font-size:1.25rem;line-height:inherit;white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}.navbar-nav{display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.25rem;padding-bottom:.25rem}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.25rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.375rem}.navbar-toggler:hover,.navbar-toggler:focus{text-decoration:none}.navbar-toggler:not(:disabled):not(.disabled){cursor:pointer}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width: 575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{padding-right:0;padding-left:0}}@media (min-width: 576px){.navbar-expand-sm{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:1rem;padding-left:1rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid{flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:flex !important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width: 767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{padding-right:0;padding-left:0}}@media (min-width: 768px){.navbar-expand-md{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:1rem;padding-left:1rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid{flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:flex !important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width: 991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{padding-right:0;padding-left:0}}@media (min-width: 992px){.navbar-expand-lg{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:1rem;padding-left:1rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid{flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:flex !important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width: 1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{padding-right:0;padding-left:0}}@media (min-width: 1200px){.navbar-expand-xl{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:1rem;padding-left:1rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid{flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:flex !important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:1rem;padding-left:1rem}.navbar-expand>.container,.navbar-expand>.container-fluid{flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:flex !important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:rgba(0,0,0,0.9)}.navbar-light .navbar-brand:hover,.navbar-light .navbar-brand:focus{color:rgba(0,0,0,0.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,0.5)}.navbar-light .navbar-nav .nav-link:hover,.navbar-light .navbar-nav .nav-link:focus{color:rgba(0,0,0,0.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,0.3)}.navbar-light .navbar-nav .show>.nav-link,.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .nav-link.active{color:rgba(0,0,0,0.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,0.5);border-color:rgba(0,0,0,0)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox=\'0 0 30 30\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cpath stroke=\'rgba(0,0,0,0.5)\' stroke-width=\'2\' stroke-linecap=\'round\' stroke-miterlimit=\'10\' d=\'M4 7h22M4 15h22M4 23h22\'/%3E%3C/svg%3E")}.navbar-light .navbar-text{color:rgba(0,0,0,0.5)}.navbar-light .navbar-text a{color:rgba(0,0,0,0.9)}.navbar-light .navbar-text a:hover,.navbar-light .navbar-text a:focus{color:rgba(0,0,0,0.9)}.navbar-dark .navbar-brand{color:rgba(255,255,255,0.65)}.navbar-dark .navbar-brand:hover,.navbar-dark .navbar-brand:focus{color:rgba(255,255,255,0.65)}.navbar-dark .navbar-nav .nav-link{color:rgba(255,255,255,0.95)}.navbar-dark .navbar-nav .nav-link:hover,.navbar-dark .navbar-nav .nav-link:focus{color:rgba(255,255,255,0.65)}.navbar-dark .navbar-nav .nav-link.disabled{color:rgba(255,255,255,0.25)}.navbar-dark .navbar-nav .show>.nav-link,.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .nav-link.active{color:rgba(255,255,255,0.65)}.navbar-dark .navbar-toggler{color:rgba(255,255,255,0.95);border-color:rgba(0,0,0,0)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox=\'0 0 30 30\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cpath stroke=\'rgba(255,255,255,0.95)\' stroke-width=\'2\' stroke-linecap=\'round\' stroke-miterlimit=\'10\' d=\'M4 7h22M4 15h22M4 23h22\'/%3E%3C/svg%3E")}.navbar-dark .navbar-text{color:rgba(255,255,255,0.95)}.navbar-dark .navbar-text a{color:rgba(255,255,255,0.65)}.navbar-dark .navbar-text a:hover,.navbar-dark .navbar-text a:focus{color:rgba(255,255,255,0.65)}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,0.05);border-radius:.375rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.card-body{flex:1 1 auto;padding:1.5rem}.card-title{margin-bottom:1.25rem}.card-subtitle{margin-top:-.625rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.5rem}.card-header{padding:1.25rem 1.5rem;margin-bottom:0;background-color:#fff;border-bottom:1px solid rgba(0,0,0,0.05)}.card-header:first-child{border-radius:calc(.375rem - 1px) calc(.375rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:1.25rem 1.5rem;background-color:#fff;border-top:1px solid rgba(0,0,0,0.05)}.card-footer:last-child{border-radius:0 0 calc(.375rem - 1px) calc(.375rem - 1px)}.card-header-tabs{margin-right:-.75rem;margin-bottom:-1.25rem;margin-left:-.75rem;border-bottom:0}.card-header-pills{margin-right:-.75rem;margin-left:-.75rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}.card-img{width:100%;border-radius:calc(.375rem - 1px)}.card-img-top{width:100%;border-top-left-radius:calc(.375rem - 1px);border-top-right-radius:calc(.375rem - 1px)}.card-img-bottom{width:100%;border-bottom-right-radius:calc(.375rem - 1px);border-bottom-left-radius:calc(.375rem - 1px)}.card-deck{display:flex;flex-direction:column}.card-deck .card{margin-bottom:15px}@media (min-width: 576px){.card-deck{flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{display:flex;flex:1 0 0%;flex-direction:column;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group{display:flex;flex-direction:column}.card-group>.card{margin-bottom:15px}@media (min-width: 576px){.card-group{flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:first-child .card-img-top,.card-group>.card:first-child .card-header{border-top-right-radius:0}.card-group>.card:first-child .card-img-bottom,.card-group>.card:first-child .card-footer{border-bottom-right-radius:0}.card-group>.card:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:last-child .card-img-top,.card-group>.card:last-child .card-header{border-top-left-radius:0}.card-group>.card:last-child .card-img-bottom,.card-group>.card:last-child .card-footer{border-bottom-left-radius:0}.card-group>.card:only-child{border-radius:.375rem}.card-group>.card:only-child .card-img-top,.card-group>.card:only-child .card-header{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.card-group>.card:only-child .card-img-bottom,.card-group>.card:only-child .card-footer{border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.card-group>.card:not(:first-child):not(:last-child):not(:only-child){border-radius:0}.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-img-top,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-header,.card-group>.card:not(:first-child):not(:last-child):not(:only-child) .card-footer{border-radius:0}}.card-columns .card{margin-bottom:1.25rem}@media (min-width: 576px){.card-columns{column-count:3;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion .card:not(:first-of-type):not(:last-of-type){border-bottom:0;border-radius:0}.accordion .card:not(:first-of-type) .card-header:first-child{border-radius:0}.accordion .card:first-of-type{border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion .card:last-of-type{border-top-left-radius:0;border-top-right-radius:0}.breadcrumb{display:flex;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.375rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item::before{display:inline-block;padding-right:.5rem;color:#8898aa;content:"/"}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:none}.breadcrumb-item.active{color:#8898aa}.pagination{display:flex;padding-left:0;list-style:none;border-radius:.375rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#8898aa;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#8898aa;text-decoration:none;background-color:#dee2e6;border-color:#dee2e6}.page-link:focus{z-index:2;outline:0;box-shadow:none}.page-link:not(:disabled):not(.disabled){cursor:pointer}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.page-item:last-child .page-link{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.page-item.active .page-link{z-index:1;color:#fff;background-color:#5e72e4;border-color:#5e72e4}.page-item.disabled .page-link{color:#8898aa;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.25rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.4375rem;border-bottom-left-radius:.4375rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.4375rem;border-bottom-right-radius:.4375rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.badge{display:inline-block;padding:.35rem .375rem;font-size:66%;font-weight:600;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.375rem}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.875em;padding-left:.875em;border-radius:10rem}.badge-primary{color:#2643e9;background-color:rgba(203,210,246,0.5)}.badge-primary[href]:hover,.badge-primary[href]:focus{color:#fff;text-decoration:none;background-color:#324cdd}.badge-secondary{color:#cfe3f1;background-color:rgba(255,255,255,0.5)}.badge-secondary[href]:hover,.badge-secondary[href]:focus{color:#212529;text-decoration:none;background-color:#d2e3ee}.badge-success{color:#1aae6f;background-color:rgba(147,231,195,0.5)}.badge-success[href]:hover,.badge-success[href]:focus{color:#fff;text-decoration:none;background-color:#24a46d}.badge-info{color:#03acca;background-color:rgba(136,230,247,0.5)}.badge-info[href]:hover,.badge-info[href]:focus{color:#fff;text-decoration:none;background-color:#0da5c0}.badge-warning{color:#ff3709;background-color:rgba(254,201,189,0.5)}.badge-warning[href]:hover,.badge-warning[href]:focus{color:#fff;text-decoration:none;background-color:#fa3a0e}.badge-danger{color:#f80031;background-color:rgba(251,175,190,0.5)}.badge-danger[href]:hover,.badge-danger[href]:focus{color:#fff;text-decoration:none;background-color:#ec0c38}.badge-light{color:#879cb0;background-color:rgba(244,245,246,0.5)}.badge-light[href]:hover,.badge-light[href]:focus{color:#fff;text-decoration:none;background-color:#919ca6}.badge-dark{color:#090c0e;background-color:rgba(90,101,112,0.5)}.badge-dark[href]:hover,.badge-dark[href]:focus{color:#fff;text-decoration:none;background-color:#0a0c0d}.badge-default{color:#091428;background-color:rgba(52,98,175,0.5)}.badge-default[href]:hover,.badge-default[href]:focus{color:#fff;text-decoration:none;background-color:#0b1526}.badge-white{color:#e8e3e3;background-color:rgba(255,255,255,0.5)}.badge-white[href]:hover,.badge-white[href]:focus{color:#212529;text-decoration:none;background-color:#e6e6e6}.badge-neutral{color:#e8e3e3;background-color:rgba(255,255,255,0.5)}.badge-neutral[href]:hover,.badge-neutral[href]:focus{color:#212529;text-decoration:none;background-color:#e6e6e6}.badge-darker{color:#000;background-color:rgba(64,64,64,0.5)}.badge-darker[href]:hover,.badge-darker[href]:focus{color:#fff;text-decoration:none;background-color:#000}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.4375rem}@media (min-width: 576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:1rem 1.5rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.375rem}.alert-heading{color:inherit}.alert-link{font-weight:600}.alert-dismissible{padding-right:4.5rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:1rem 1.5rem;color:inherit}.alert-primary{color:#fff;background-color:#7889e8;border-color:#7889e8}.alert-primary hr{border-top-color:#6276e4}.alert-primary .alert-link{color:#324cdd}.alert-secondary{color:#212529;background-color:#f8fbfc;border-color:#f8fbfc}.alert-secondary hr{border-top-color:#e6f1f4}.alert-secondary .alert-link{color:#d2e3ee}.alert-success{color:#fff;background-color:#4fd69c;border-color:#4fd69c}.alert-success hr{border-top-color:#3ad190}.alert-success .alert-link{color:#24a46d}.alert-info{color:#fff;background-color:#37d5f2;border-color:#37d5f2}.alert-info hr{border-top-color:#1fd0f0}.alert-info .alert-link{color:#0da5c0}.alert-warning{color:#fff;background-color:#fc7c5f;border-color:#fc7c5f}.alert-warning hr{border-top-color:#fc6846}.alert-warning .alert-link{color:#fa3a0e}.alert-danger{color:#fff;background-color:#f75676;border-color:#f75676}.alert-danger hr{border-top-color:#f63e62}.alert-danger .alert-link{color:#ec0c38}.alert-light{color:#fff;background-color:#bac1c8;border-color:#bac1c8}.alert-light hr{border-top-color:#acb4bd}.alert-light .alert-link{color:#919ca6}.alert-dark{color:#fff;background-color:#45484b;border-color:#45484b}.alert-dark hr{border-top-color:#393b3e}.alert-dark .alert-link{color:#0a0c0d}.alert-default{color:#fff;background-color:#3c4d69;border-color:#3c4d69}.alert-default hr{border-top-color:#334159}.alert-default .alert-link{color:#0b1526}.alert-white{color:#212529;background-color:#fff;border-color:#fff}.alert-white hr{border-top-color:#f2f2f2}.alert-white .alert-link{color:#e6e6e6}.alert-neutral{color:#212529;background-color:#fff;border-color:#fff}.alert-neutral hr{border-top-color:#f2f2f2}.alert-neutral .alert-link{color:#e6e6e6}.alert-darker{color:#fff;background-color:#292929;border-color:#292929}.alert-darker hr{border-top-color:#1c1c1c}.alert-darker .alert-link{color:#000}@keyframes progress-bar-stripes{from{background-position:1rem 0}to{background-position:0 0}}.progress{display:flex;height:1rem;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.375rem;box-shadow:inset 0 0.1rem 0.1rem rgba(0,0,0,0.1)}.progress-bar{display:flex;flex-direction:column;justify-content:center;color:#fff;text-align:center;white-space:nowrap;background-color:#5e72e4;transition:width 0.6s ease}@media screen and (prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-size:1rem 1rem}.progress-bar-animated{animation:progress-bar-stripes 1s linear infinite}.media{display:flex;align-items:flex-start}.media-body{flex:1}.list-group{display:flex;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#525f7f;text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{color:#525f7f;text-decoration:none;background-color:#f6f9fc}.list-group-item-action:active{color:#525f7f;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:1rem 1rem;margin-bottom:-1px;background-color:#fff;border:1px solid #e9ecef}.list-group-item:first-child{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.list-group-item:hover,.list-group-item:focus{z-index:1;text-decoration:none}.list-group-item.disabled,.list-group-item:disabled{color:#8898aa;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#5e72e4;border-color:#5e72e4}.list-group-flush .list-group-item{border-right:0;border-left:0;border-radius:0}.list-group-flush:first-child .list-group-item:first-child{border-top:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom:0}.list-group-item-primary{color:#313b77;background-color:#d2d8f7}.list-group-item-primary.list-group-item-action:hover,.list-group-item-primary.list-group-item-action:focus{color:#313b77;background-color:#bcc5f3}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#313b77;border-color:#313b77}.list-group-item-secondary{color:#808283;background-color:#fdfefe}.list-group-item-secondary.list-group-item-action:hover,.list-group-item-secondary.list-group-item-action:focus{color:#808283;background-color:#ecf6f6}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#808283;border-color:#808283}.list-group-item-success{color:#176b47;background-color:#c4f1de}.list-group-item-success.list-group-item-action:hover,.list-group-item-success.list-group-item-action:focus{color:#176b47;background-color:#afecd2}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#176b47;border-color:#176b47}.list-group-item-info{color:#096b7c;background-color:#bcf1fb}.list-group-item-info.list-group-item-action:hover,.list-group-item-info.list-group-item-action:focus{color:#096b7c;background-color:#a4ecfa}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#096b7c;border-color:#096b7c}.list-group-item-warning{color:#833321;background-color:#fed3ca}.list-group-item-warning.list-group-item-action:hover,.list-group-item-warning.list-group-item-action:focus{color:#833321;background-color:#febeb1}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#833321;border-color:#833321}.list-group-item-danger{color:#7f1c30;background-color:#fcc7d1}.list-group-item-danger.list-group-item-action:hover,.list-group-item-danger.list-group-item-action:focus{color:#7f1c30;background-color:#fbafbd}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#7f1c30;border-color:#7f1c30}.list-group-item-light{color:#5a5e62;background-color:#e8eaed}.list-group-item-light.list-group-item-action:hover,.list-group-item-light.list-group-item-action:focus{color:#5a5e62;background-color:#dadde2}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#5a5e62;border-color:#5a5e62}.list-group-item-dark{color:#111315;background-color:#c1c2c3}.list-group-item-dark.list-group-item-action:hover,.list-group-item-dark.list-group-item-action:focus{color:#111315;background-color:#b4b5b6}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#111315;border-color:#111315}.list-group-item-default{color:#0c1628;background-color:#bec4cd}.list-group-item-default.list-group-item-action:hover,.list-group-item-default.list-group-item-action:focus{color:#0c1628;background-color:#b0b7c2}.list-group-item-default.list-group-item-action.active{color:#fff;background-color:#0c1628;border-color:#0c1628}.list-group-item-white{color:#858585;background-color:#fff}.list-group-item-white.list-group-item-action:hover,.list-group-item-white.list-group-item-action:focus{color:#858585;background-color:#f2f2f2}.list-group-item-white.list-group-item-action.active{color:#fff;background-color:#858585;border-color:#858585}.list-group-item-neutral{color:#858585;background-color:#fff}.list-group-item-neutral.list-group-item-action:hover,.list-group-item-neutral.list-group-item-action:focus{color:#858585;background-color:#f2f2f2}.list-group-item-neutral.list-group-item-action.active{color:#fff;background-color:#858585;border-color:#858585}.list-group-item-darker{color:#000;background-color:#b8b8b8}.list-group-item-darker.list-group-item-action:hover,.list-group-item-darker.list-group-item-action:focus{color:#000;background-color:#ababab}.list-group-item-darker.list-group-item-action.active{color:#fff;background-color:#000;border-color:#000}.close{float:right;font-size:1.5rem;font-weight:600;line-height:1;color:rgba(0,0,0,0.6);text-shadow:none;opacity:.5}.close:not(:disabled):not(.disabled){cursor:pointer}.close:not(:disabled):not(.disabled):hover,.close:not(:disabled):not(.disabled):focus{color:rgba(0,0,0,0.6);text-decoration:none;opacity:.75}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:transform 0.3s ease-out;transform:translate(0, -25%)}@media screen and (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:translate(0, 0)}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - (.5rem * 2))}.modal-dialog-centered::before{display:block;height:calc(100vh - (.5rem * 2));content:""}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:0 solid rgba(0,0,0,0.2);border-radius:.4375rem;box-shadow:0 15px 35px rgba(50,50,93,0.2),0 5px 15px rgba(0,0,0,0.17);outline:0}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.16}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:1.25rem;border-bottom:0 solid #e9ecef;border-top-left-radius:.4375rem;border-top-right-radius:.4375rem}.modal-header .close{padding:1.25rem;margin:-1.25rem -1.25rem -1.25rem auto}.modal-title{margin-bottom:0;line-height:1.1}.modal-body{position:relative;flex:1 1 auto;padding:1.5rem}.modal-footer{display:flex;align-items:center;justify-content:flex-end;padding:1.5rem;border-top:0 solid #e9ecef}.modal-footer>:not(:first-child){margin-left:.25rem}.modal-footer>:not(:last-child){margin-right:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width: 576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-centered{min-height:calc(100% - (1.75rem * 2))}.modal-dialog-centered::before{height:calc(100vh - (1.75rem * 2))}.modal-content{box-shadow:0 15px 35px rgba(50,50,93,0.2),0 5px 15px rgba(0,0,0,0.17)}.modal-sm{max-width:380px}}@media (min-width: 992px){.modal-lg{max-width:800px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:"Nunito Sans",sans-serif;font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top,.bs-tooltip-auto[x-placement^="top"]{padding:.4rem 0}.bs-tooltip-top .arrow,.bs-tooltip-auto[x-placement^="top"] .arrow{bottom:0}.bs-tooltip-top .arrow::before,.bs-tooltip-auto[x-placement^="top"] .arrow::before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-right,.bs-tooltip-auto[x-placement^="right"]{padding:0 .4rem}.bs-tooltip-right .arrow,.bs-tooltip-auto[x-placement^="right"] .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-right .arrow::before,.bs-tooltip-auto[x-placement^="right"] .arrow::before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-bottom,.bs-tooltip-auto[x-placement^="bottom"]{padding:.4rem 0}.bs-tooltip-bottom .arrow,.bs-tooltip-auto[x-placement^="bottom"] .arrow{top:0}.bs-tooltip-bottom .arrow::before,.bs-tooltip-auto[x-placement^="bottom"] .arrow::before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-left,.bs-tooltip-auto[x-placement^="left"]{padding:0 .4rem}.bs-tooltip-left .arrow,.bs-tooltip-auto[x-placement^="left"] .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-left .arrow::before,.bs-tooltip-auto[x-placement^="left"] .arrow::before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.375rem}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:"Nunito Sans",sans-serif;font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,0.05);border-radius:.4375rem;box-shadow:0px 0.5rem 2rem 0px rgba(0,0,0,0.2)}.popover .arrow{position:absolute;display:block;width:1.5rem;height:.75rem;margin:0 .4375rem}.popover .arrow::before,.popover .arrow::after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-top,.bs-popover-auto[x-placement^="top"]{margin-bottom:.75rem}.bs-popover-top .arrow,.bs-popover-auto[x-placement^="top"] .arrow{bottom:calc((.75rem + 1px) * -1)}.bs-popover-top .arrow::before,.bs-popover-auto[x-placement^="top"] .arrow::before,.bs-popover-top .arrow::after,.bs-popover-auto[x-placement^="top"] .arrow::after{border-width:.75rem .75rem 0}.bs-popover-top .arrow::before,.bs-popover-auto[x-placement^="top"] .arrow::before{bottom:0;border-top-color:rgba(0,0,0,0)}.bs-popover-top .arrow::after,.bs-popover-auto[x-placement^="top"] .arrow::after{bottom:1px;border-top-color:#fff}.bs-popover-right,.bs-popover-auto[x-placement^="right"]{margin-left:.75rem}.bs-popover-right .arrow,.bs-popover-auto[x-placement^="right"] .arrow{left:calc((.75rem + 1px) * -1);width:.75rem;height:1.5rem;margin:.4375rem 0}.bs-popover-right .arrow::before,.bs-popover-auto[x-placement^="right"] .arrow::before,.bs-popover-right .arrow::after,.bs-popover-auto[x-placement^="right"] .arrow::after{border-width:.75rem .75rem .75rem 0}.bs-popover-right .arrow::before,.bs-popover-auto[x-placement^="right"] .arrow::before{left:0;border-right-color:rgba(0,0,0,0)}.bs-popover-right .arrow::after,.bs-popover-auto[x-placement^="right"] .arrow::after{left:1px;border-right-color:#fff}.bs-popover-bottom,.bs-popover-auto[x-placement^="bottom"]{margin-top:.75rem}.bs-popover-bottom .arrow,.bs-popover-auto[x-placement^="bottom"] .arrow{top:calc((.75rem + 1px) * -1)}.bs-popover-bottom .arrow::before,.bs-popover-auto[x-placement^="bottom"] .arrow::before,.bs-popover-bottom .arrow::after,.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-width:0 .75rem .75rem .75rem}.bs-popover-bottom .arrow::before,.bs-popover-auto[x-placement^="bottom"] .arrow::before{top:0;border-bottom-color:rgba(0,0,0,0)}.bs-popover-bottom .arrow::after,.bs-popover-auto[x-placement^="bottom"] .arrow::after{top:1px;border-bottom-color:#fff}.bs-popover-bottom .popover-header::before,.bs-popover-auto[x-placement^="bottom"] .popover-header::before{position:absolute;top:0;left:50%;display:block;width:1.5rem;margin-left:-.75rem;content:"";border-bottom:1px solid #fff}.bs-popover-left,.bs-popover-auto[x-placement^="left"]{margin-right:.75rem}.bs-popover-left .arrow,.bs-popover-auto[x-placement^="left"] .arrow{right:calc((.75rem + 1px) * -1);width:.75rem;height:1.5rem;margin:.4375rem 0}.bs-popover-left .arrow::before,.bs-popover-auto[x-placement^="left"] .arrow::before,.bs-popover-left .arrow::after,.bs-popover-auto[x-placement^="left"] .arrow::after{border-width:.75rem 0 .75rem .75rem}.bs-popover-left .arrow::before,.bs-popover-auto[x-placement^="left"] .arrow::before{right:0;border-left-color:rgba(0,0,0,0)}.bs-popover-left .arrow::after,.bs-popover-auto[x-placement^="left"] .arrow::after{right:1px;border-left-color:#fff}.popover-header{padding:.5rem .95rem;margin-bottom:0;font-size:1rem;color:#32325d;background-color:#fff;border-bottom:1px solid #f2f2f2;border-top-left-radius:calc(.4375rem - 1px);border-top-right-radius:calc(.4375rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .95rem;color:#000}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-item{position:relative;display:none;align-items:center;width:100%;backface-visibility:hidden;perspective:1000px}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block;transition:transform 0.6s ease}@media screen and (prefers-reduced-motion: reduce){.carousel-item.active,.carousel-item-next,.carousel-item-prev{transition:none}}.carousel-item-next,.carousel-item-prev{position:absolute;top:0}.carousel-item-next.carousel-item-left,.carousel-item-prev.carousel-item-right{transform:translateX(0)}@supports (transform-style: preserve-3d){.carousel-item-next.carousel-item-left,.carousel-item-prev.carousel-item-right{transform:translate3d(0, 0, 0)}}.carousel-item-next,.active.carousel-item-right{transform:translateX(100%)}@supports (transform-style: preserve-3d){.carousel-item-next,.active.carousel-item-right{transform:translate3d(100%, 0, 0)}}.carousel-item-prev,.active.carousel-item-left{transform:translateX(-100%)}@supports (transform-style: preserve-3d){.carousel-item-prev,.active.carousel-item-left{transform:translate3d(-100%, 0, 0)}}.carousel-fade .carousel-item{opacity:0;transition-duration:.6s;transition-property:opacity}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right{opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{opacity:0}.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item.active,.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-prev{transform:translateX(0)}@supports (transform-style: preserve-3d){.carousel-fade .carousel-item-next,.carousel-fade .carousel-item-prev,.carousel-fade .carousel-item.active,.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-prev{transform:translate3d(0, 0, 0)}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;display:flex;align-items:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:20px;height:20px;background:transparent no-repeat center center;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'%23fff\' viewBox=\'0 0 8 8\'%3E%3Cpath d=\'M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z\'/%3E%3C/svg%3E")}.carousel-control-next-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'%23fff\' viewBox=\'0 0 8 8\'%3E%3Cpath d=\'M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z\'/%3E%3C/svg%3E")}.carousel-indicators{position:absolute;right:0;bottom:10px;left:0;z-index:15;display:flex;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{position:relative;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:rgba(255,255,255,0.5)}.carousel-indicators li::before{position:absolute;top:-10px;left:0;display:inline-block;width:100%;height:10px;content:""}.carousel-indicators li::after{position:absolute;bottom:-10px;left:0;display:inline-block;width:100%;height:10px;content:""}.carousel-indicators .active{background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}.align-baseline{vertical-align:baseline !important}.align-top{vertical-align:top !important}.align-middle{vertical-align:middle !important}.align-bottom{vertical-align:bottom !important}.align-text-bottom{vertical-align:text-bottom !important}.align-text-top{vertical-align:text-top !important}.bg-primary{background-color:#5e72e4 !important}a.bg-primary:hover,a.bg-primary:focus,button.bg-primary:hover,button.bg-primary:focus{background-color:#324cdd !important}.bg-secondary{background-color:#f7fafc !important}a.bg-secondary:hover,a.bg-secondary:focus,button.bg-secondary:hover,button.bg-secondary:focus{background-color:#d2e3ee !important}.bg-success{background-color:#2dce89 !important}a.bg-success:hover,a.bg-success:focus,button.bg-success:hover,button.bg-success:focus{background-color:#24a46d !important}.bg-info{background-color:#11cdef !important}a.bg-info:hover,a.bg-info:focus,button.bg-info:hover,button.bg-info:focus{background-color:#0da5c0 !important}.bg-warning{background-color:#fb6340 !important}a.bg-warning:hover,a.bg-warning:focus,button.bg-warning:hover,button.bg-warning:focus{background-color:#fa3a0e !important}.bg-danger{background-color:#f5365c !important}a.bg-danger:hover,a.bg-danger:focus,button.bg-danger:hover,button.bg-danger:focus{background-color:#ec0c38 !important}.bg-light{background-color:#adb5bd !important}a.bg-light:hover,a.bg-light:focus,button.bg-light:hover,button.bg-light:focus{background-color:#919ca6 !important}.bg-dark{background-color:#212529 !important}a.bg-dark:hover,a.bg-dark:focus,button.bg-dark:hover,button.bg-dark:focus{background-color:#0a0c0d !important}.bg-default{background-color:#172b4d !important}a.bg-default:hover,a.bg-default:focus,button.bg-default:hover,button.bg-default:focus{background-color:#0b1526 !important}.bg-white{background-color:#fff !important}a.bg-white:hover,a.bg-white:focus,button.bg-white:hover,button.bg-white:focus{background-color:#e6e6e6 !important}.bg-neutral{background-color:#fff !important}a.bg-neutral:hover,a.bg-neutral:focus,button.bg-neutral:hover,button.bg-neutral:focus{background-color:#e6e6e6 !important}.bg-darker{background-color:#000 !important}a.bg-darker:hover,a.bg-darker:focus,button.bg-darker:hover,button.bg-darker:focus{background-color:#000 !important}.bg-white{background-color:#fff !important}.bg-transparent{background-color:transparent !important}.border{border:1px solid #e9ecef !important}.border-top{border-top:1px solid #e9ecef !important}.border-right{border-right:1px solid #e9ecef !important}.border-bottom{border-bottom:1px solid #e9ecef !important}.border-left{border-left:1px solid #e9ecef !important}.border-0{border:0 !important}.border-top-0{border-top:0 !important}.border-right-0{border-right:0 !important}.border-bottom-0{border-bottom:0 !important}.border-left-0{border-left:0 !important}.border-primary{border-color:#5e72e4 !important}.border-secondary{border-color:#f7fafc !important}.border-success{border-color:#2dce89 !important}.border-info{border-color:#11cdef !important}.border-warning{border-color:#fb6340 !important}.border-danger{border-color:#f5365c !important}.border-light{border-color:#adb5bd !important}.border-dark{border-color:#212529 !important}.border-default{border-color:#172b4d !important}.border-white{border-color:#fff !important}.border-neutral{border-color:#fff !important}.border-darker{border-color:#000 !important}.border-white{border-color:#fff !important}.rounded{border-radius:.375rem !important}.rounded-top{border-top-left-radius:.375rem !important;border-top-right-radius:.375rem !important}.rounded-right{border-top-right-radius:.375rem !important;border-bottom-right-radius:.375rem !important}.rounded-bottom{border-bottom-right-radius:.375rem !important;border-bottom-left-radius:.375rem !important}.rounded-left{border-top-left-radius:.375rem !important;border-bottom-left-radius:.375rem !important}.rounded-circle{border-radius:50% !important}.rounded-0{border-radius:0 !important}.clearfix::after{display:block;clear:both;content:""}.d-none{display:none !important}.d-inline{display:inline !important}.d-inline-block{display:inline-block !important}.d-block{display:block !important}.d-table{display:table !important}.d-table-row{display:table-row !important}.d-table-cell{display:table-cell !important}.d-flex{display:flex !important}.d-inline-flex{display:inline-flex !important}@media (min-width: 576px){.d-sm-none{display:none !important}.d-sm-inline{display:inline !important}.d-sm-inline-block{display:inline-block !important}.d-sm-block{display:block !important}.d-sm-table{display:table !important}.d-sm-table-row{display:table-row !important}.d-sm-table-cell{display:table-cell !important}.d-sm-flex{display:flex !important}.d-sm-inline-flex{display:inline-flex !important}}@media (min-width: 768px){.d-md-none{display:none !important}.d-md-inline{display:inline !important}.d-md-inline-block{display:inline-block !important}.d-md-block{display:block !important}.d-md-table{display:table !important}.d-md-table-row{display:table-row !important}.d-md-table-cell{display:table-cell !important}.d-md-flex{display:flex !important}.d-md-inline-flex{display:inline-flex !important}}@media (min-width: 992px){.d-lg-none{display:none !important}.d-lg-inline{display:inline !important}.d-lg-inline-block{display:inline-block !important}.d-lg-block{display:block !important}.d-lg-table{display:table !important}.d-lg-table-row{display:table-row !important}.d-lg-table-cell{display:table-cell !important}.d-lg-flex{display:flex !important}.d-lg-inline-flex{display:inline-flex !important}}@media (min-width: 1200px){.d-xl-none{display:none !important}.d-xl-inline{display:inline !important}.d-xl-inline-block{display:inline-block !important}.d-xl-block{display:block !important}.d-xl-table{display:table !important}.d-xl-table-row{display:table-row !important}.d-xl-table-cell{display:table-cell !important}.d-xl-flex{display:flex !important}.d-xl-inline-flex{display:inline-flex !important}}@media print{.d-print-none{display:none !important}.d-print-inline{display:inline !important}.d-print-inline-block{display:inline-block !important}.d-print-block{display:block !important}.d-print-table{display:table !important}.d-print-table-row{display:table-row !important}.d-print-table-cell{display:table-cell !important}.d-print-flex{display:flex !important}.d-print-inline-flex{display:inline-flex !important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive::before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive iframe,.embed-responsive embed,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9::before{padding-top:42.85714%}.embed-responsive-16by9::before{padding-top:56.25%}.embed-responsive-4by3::before{padding-top:75%}.embed-responsive-1by1::before{padding-top:100%}.flex-row{flex-direction:row !important}.flex-column{flex-direction:column !important}.flex-row-reverse{flex-direction:row-reverse !important}.flex-column-reverse{flex-direction:column-reverse !important}.flex-wrap{flex-wrap:wrap !important}.flex-nowrap{flex-wrap:nowrap !important}.flex-wrap-reverse{flex-wrap:wrap-reverse !important}.flex-fill{flex:1 1 auto !important}.flex-grow-0{flex-grow:0 !important}.flex-grow-1{flex-grow:1 !important}.flex-shrink-0{flex-shrink:0 !important}.flex-shrink-1{flex-shrink:1 !important}.justify-content-start{justify-content:flex-start !important}.justify-content-end{justify-content:flex-end !important}.justify-content-center{justify-content:center !important}.justify-content-between{justify-content:space-between !important}.justify-content-around{justify-content:space-around !important}.align-items-start{align-items:flex-start !important}.align-items-end{align-items:flex-end !important}.align-items-center{align-items:center !important}.align-items-baseline{align-items:baseline !important}.align-items-stretch{align-items:stretch !important}.align-content-start{align-content:flex-start !important}.align-content-end{align-content:flex-end !important}.align-content-center{align-content:center !important}.align-content-between{align-content:space-between !important}.align-content-around{align-content:space-around !important}.align-content-stretch{align-content:stretch !important}.align-self-auto{align-self:auto !important}.align-self-start{align-self:flex-start !important}.align-self-end{align-self:flex-end !important}.align-self-center{align-self:center !important}.align-self-baseline{align-self:baseline !important}.align-self-stretch{align-self:stretch !important}@media (min-width: 576px){.flex-sm-row{flex-direction:row !important}.flex-sm-column{flex-direction:column !important}.flex-sm-row-reverse{flex-direction:row-reverse !important}.flex-sm-column-reverse{flex-direction:column-reverse !important}.flex-sm-wrap{flex-wrap:wrap !important}.flex-sm-nowrap{flex-wrap:nowrap !important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse !important}.flex-sm-fill{flex:1 1 auto !important}.flex-sm-grow-0{flex-grow:0 !important}.flex-sm-grow-1{flex-grow:1 !important}.flex-sm-shrink-0{flex-shrink:0 !important}.flex-sm-shrink-1{flex-shrink:1 !important}.justify-content-sm-start{justify-content:flex-start !important}.justify-content-sm-end{justify-content:flex-end !important}.justify-content-sm-center{justify-content:center !important}.justify-content-sm-between{justify-content:space-between !important}.justify-content-sm-around{justify-content:space-around !important}.align-items-sm-start{align-items:flex-start !important}.align-items-sm-end{align-items:flex-end !important}.align-items-sm-center{align-items:center !important}.align-items-sm-baseline{align-items:baseline !important}.align-items-sm-stretch{align-items:stretch !important}.align-content-sm-start{align-content:flex-start !important}.align-content-sm-end{align-content:flex-end !important}.align-content-sm-center{align-content:center !important}.align-content-sm-between{align-content:space-between !important}.align-content-sm-around{align-content:space-around !important}.align-content-sm-stretch{align-content:stretch !important}.align-self-sm-auto{align-self:auto !important}.align-self-sm-start{align-self:flex-start !important}.align-self-sm-end{align-self:flex-end !important}.align-self-sm-center{align-self:center !important}.align-self-sm-baseline{align-self:baseline !important}.align-self-sm-stretch{align-self:stretch !important}}@media (min-width: 768px){.flex-md-row{flex-direction:row !important}.flex-md-column{flex-direction:column !important}.flex-md-row-reverse{flex-direction:row-reverse !important}.flex-md-column-reverse{flex-direction:column-reverse !important}.flex-md-wrap{flex-wrap:wrap !important}.flex-md-nowrap{flex-wrap:nowrap !important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse !important}.flex-md-fill{flex:1 1 auto !important}.flex-md-grow-0{flex-grow:0 !important}.flex-md-grow-1{flex-grow:1 !important}.flex-md-shrink-0{flex-shrink:0 !important}.flex-md-shrink-1{flex-shrink:1 !important}.justify-content-md-start{justify-content:flex-start !important}.justify-content-md-end{justify-content:flex-end !important}.justify-content-md-center{justify-content:center !important}.justify-content-md-between{justify-content:space-between !important}.justify-content-md-around{justify-content:space-around !important}.align-items-md-start{align-items:flex-start !important}.align-items-md-end{align-items:flex-end !important}.align-items-md-center{align-items:center !important}.align-items-md-baseline{align-items:baseline !important}.align-items-md-stretch{align-items:stretch !important}.align-content-md-start{align-content:flex-start !important}.align-content-md-end{align-content:flex-end !important}.align-content-md-center{align-content:center !important}.align-content-md-between{align-content:space-between !important}.align-content-md-around{align-content:space-around !important}.align-content-md-stretch{align-content:stretch !important}.align-self-md-auto{align-self:auto !important}.align-self-md-start{align-self:flex-start !important}.align-self-md-end{align-self:flex-end !important}.align-self-md-center{align-self:center !important}.align-self-md-baseline{align-self:baseline !important}.align-self-md-stretch{align-self:stretch !important}}@media (min-width: 992px){.flex-lg-row{flex-direction:row !important}.flex-lg-column{flex-direction:column !important}.flex-lg-row-reverse{flex-direction:row-reverse !important}.flex-lg-column-reverse{flex-direction:column-reverse !important}.flex-lg-wrap{flex-wrap:wrap !important}.flex-lg-nowrap{flex-wrap:nowrap !important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse !important}.flex-lg-fill{flex:1 1 auto !important}.flex-lg-grow-0{flex-grow:0 !important}.flex-lg-grow-1{flex-grow:1 !important}.flex-lg-shrink-0{flex-shrink:0 !important}.flex-lg-shrink-1{flex-shrink:1 !important}.justify-content-lg-start{justify-content:flex-start !important}.justify-content-lg-end{justify-content:flex-end !important}.justify-content-lg-center{justify-content:center !important}.justify-content-lg-between{justify-content:space-between !important}.justify-content-lg-around{justify-content:space-around !important}.align-items-lg-start{align-items:flex-start !important}.align-items-lg-end{align-items:flex-end !important}.align-items-lg-center{align-items:center !important}.align-items-lg-baseline{align-items:baseline !important}.align-items-lg-stretch{align-items:stretch !important}.align-content-lg-start{align-content:flex-start !important}.align-content-lg-end{align-content:flex-end !important}.align-content-lg-center{align-content:center !important}.align-content-lg-between{align-content:space-between !important}.align-content-lg-around{align-content:space-around !important}.align-content-lg-stretch{align-content:stretch !important}.align-self-lg-auto{align-self:auto !important}.align-self-lg-start{align-self:flex-start !important}.align-self-lg-end{align-self:flex-end !important}.align-self-lg-center{align-self:center !important}.align-self-lg-baseline{align-self:baseline !important}.align-self-lg-stretch{align-self:stretch !important}}@media (min-width: 1200px){.flex-xl-row{flex-direction:row !important}.flex-xl-column{flex-direction:column !important}.flex-xl-row-reverse{flex-direction:row-reverse !important}.flex-xl-column-reverse{flex-direction:column-reverse !important}.flex-xl-wrap{flex-wrap:wrap !important}.flex-xl-nowrap{flex-wrap:nowrap !important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse !important}.flex-xl-fill{flex:1 1 auto !important}.flex-xl-grow-0{flex-grow:0 !important}.flex-xl-grow-1{flex-grow:1 !important}.flex-xl-shrink-0{flex-shrink:0 !important}.flex-xl-shrink-1{flex-shrink:1 !important}.justify-content-xl-start{justify-content:flex-start !important}.justify-content-xl-end{justify-content:flex-end !important}.justify-content-xl-center{justify-content:center !important}.justify-content-xl-between{justify-content:space-between !important}.justify-content-xl-around{justify-content:space-around !important}.align-items-xl-start{align-items:flex-start !important}.align-items-xl-end{align-items:flex-end !important}.align-items-xl-center{align-items:center !important}.align-items-xl-baseline{align-items:baseline !important}.align-items-xl-stretch{align-items:stretch !important}.align-content-xl-start{align-content:flex-start !important}.align-content-xl-end{align-content:flex-end !important}.align-content-xl-center{align-content:center !important}.align-content-xl-between{align-content:space-between !important}.align-content-xl-around{align-content:space-around !important}.align-content-xl-stretch{align-content:stretch !important}.align-self-xl-auto{align-self:auto !important}.align-self-xl-start{align-self:flex-start !important}.align-self-xl-end{align-self:flex-end !important}.align-self-xl-center{align-self:center !important}.align-self-xl-baseline{align-self:baseline !important}.align-self-xl-stretch{align-self:stretch !important}}.float-left{float:left !important}.float-right{float:right !important}.float-none{float:none !important}@media (min-width: 576px){.float-sm-left{float:left !important}.float-sm-right{float:right !important}.float-sm-none{float:none !important}}@media (min-width: 768px){.float-md-left{float:left !important}.float-md-right{float:right !important}.float-md-none{float:none !important}}@media (min-width: 992px){.float-lg-left{float:left !important}.float-lg-right{float:right !important}.float-lg-none{float:none !important}}@media (min-width: 1200px){.float-xl-left{float:left !important}.float-xl-right{float:right !important}.float-xl-none{float:none !important}}.position-static{position:static !important}.position-relative{position:relative !important}.position-absolute{position:absolute !important}.position-fixed{position:fixed !important}.position-sticky{position:sticky !important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports (position: sticky){.sticky-top{position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 0 0.5rem rgba(136,152,170,0.075) !important}.shadow,.card-profile-image img{box-shadow:0 0 2rem 0 rgba(136,152,170,0.15) !important}.shadow-lg{box-shadow:0 0 3rem rgba(136,152,170,0.175) !important}.shadow-none{box-shadow:none !important}.w-25{width:25% !important}.w-50{width:50% !important}.w-75{width:75% !important}.w-100{width:100% !important}.w-auto{width:auto !important}.h-25{height:25% !important}.h-50{height:50% !important}.h-75{height:75% !important}.h-100{height:100% !important}.h-auto{height:auto !important}.mw-100{max-width:100% !important}.mh-100{max-height:100% !important}.m-0{margin:0 !important}.mt-0,.my-0{margin-top:0 !important}.mr-0,.mx-0{margin-right:0 !important}.mb-0,.my-0{margin-bottom:0 !important}.ml-0,.mx-0{margin-left:0 !important}.m-1{margin:.25rem !important}.mt-1,.my-1{margin-top:.25rem !important}.mr-1,.mx-1{margin-right:.25rem !important}.mb-1,.my-1{margin-bottom:.25rem !important}.ml-1,.mx-1{margin-left:.25rem !important}.m-2{margin:.5rem !important}.mt-2,.my-2{margin-top:.5rem !important}.mr-2,.mx-2{margin-right:.5rem !important}.mb-2,.my-2{margin-bottom:.5rem !important}.ml-2,.mx-2{margin-left:.5rem !important}.m-3{margin:1rem !important}.mt-3,.my-3{margin-top:1rem !important}.mr-3,.mx-3{margin-right:1rem !important}.mb-3,.my-3{margin-bottom:1rem !important}.ml-3,.mx-3{margin-left:1rem !important}.m-4{margin:1.5rem !important}.mt-4,.my-4{margin-top:1.5rem !important}.mr-4,.mx-4{margin-right:1.5rem !important}.mb-4,.my-4{margin-bottom:1.5rem !important}.ml-4,.mx-4{margin-left:1.5rem !important}.m-5{margin:3rem !important}.mt-5,.my-5{margin-top:3rem !important}.mr-5,.mx-5{margin-right:3rem !important}.mb-5,.my-5{margin-bottom:3rem !important}.ml-5,.mx-5{margin-left:3rem !important}.m--9{margin:-10rem !important}.mt--9,.my--9{margin-top:-10rem !important}.mr--9,.mx--9{margin-right:-10rem !important}.mb--9,.my--9{margin-bottom:-10rem !important}.ml--9,.mx--9{margin-left:-10rem !important}.m--8{margin:-8rem !important}.mt--8,.my--8{margin-top:-8rem !important}.mr--8,.mx--8{margin-right:-8rem !important}.mb--8,.my--8{margin-bottom:-8rem !important}.ml--8,.mx--8{margin-left:-8rem !important}.m--7{margin:-6rem !important}.mt--7,.my--7{margin-top:-6rem !important}.mr--7,.mx--7{margin-right:-6rem !important}.mb--7,.my--7{margin-bottom:-6rem !important}.ml--7,.mx--7{margin-left:-6rem !important}.m--6{margin:-4.5rem !important}.mt--6,.my--6{margin-top:-4.5rem !important}.mr--6,.mx--6{margin-right:-4.5rem !important}.mb--6,.my--6{margin-bottom:-4.5rem !important}.ml--6,.mx--6{margin-left:-4.5rem !important}.m--5{margin:-3rem !important}.mt--5,.my--5{margin-top:-3rem !important}.mr--5,.mx--5{margin-right:-3rem !important}.mb--5,.my--5{margin-bottom:-3rem !important}.ml--5,.mx--5{margin-left:-3rem !important}.m--4{margin:-1.5rem !important}.mt--4,.my--4{margin-top:-1.5rem !important}.mr--4,.mx--4{margin-right:-1.5rem !important}.mb--4,.my--4{margin-bottom:-1.5rem !important}.ml--4,.mx--4{margin-left:-1.5rem !important}.m--3{margin:-1rem !important}.mt--3,.my--3{margin-top:-1rem !important}.mr--3,.mx--3{margin-right:-1rem !important}.mb--3,.my--3{margin-bottom:-1rem !important}.ml--3,.mx--3{margin-left:-1rem !important}.m--2{margin:-.5rem !important}.mt--2,.my--2{margin-top:-.5rem !important}.mr--2,.mx--2{margin-right:-.5rem !important}.mb--2,.my--2{margin-bottom:-.5rem !important}.ml--2,.mx--2{margin-left:-.5rem !important}.m--1{margin:-.25rem !important}.mt--1,.my--1{margin-top:-.25rem !important}.mr--1,.mx--1{margin-right:-.25rem !important}.mb--1,.my--1{margin-bottom:-.25rem !important}.ml--1,.mx--1{margin-left:-.25rem !important}.m-6{margin:4.5rem !important}.mt-6,.my-6{margin-top:4.5rem !important}.mr-6,.mx-6{margin-right:4.5rem !important}.mb-6,.my-6{margin-bottom:4.5rem !important}.ml-6,.mx-6{margin-left:4.5rem !important}.m-7{margin:6rem !important}.mt-7,.my-7{margin-top:6rem !important}.mr-7,.mx-7{margin-right:6rem !important}.mb-7,.my-7{margin-bottom:6rem !important}.ml-7,.mx-7{margin-left:6rem !important}.m-8{margin:8rem !important}.mt-8,.my-8{margin-top:8rem !important}.mr-8,.mx-8{margin-right:8rem !important}.mb-8,.my-8{margin-bottom:8rem !important}.ml-8,.mx-8{margin-left:8rem !important}.m-9{margin:10rem !important}.mt-9,.my-9{margin-top:10rem !important}.mr-9,.mx-9{margin-right:10rem !important}.mb-9,.my-9{margin-bottom:10rem !important}.ml-9,.mx-9{margin-left:10rem !important}.p-0{padding:0 !important}.pt-0,.py-0{padding-top:0 !important}.pr-0,.px-0{padding-right:0 !important}.pb-0,.py-0{padding-bottom:0 !important}.pl-0,.px-0{padding-left:0 !important}.p-1{padding:.25rem !important}.pt-1,.py-1{padding-top:.25rem !important}.pr-1,.px-1{padding-right:.25rem !important}.pb-1,.py-1{padding-bottom:.25rem !important}.pl-1,.px-1{padding-left:.25rem !important}.p-2{padding:.5rem !important}.pt-2,.py-2{padding-top:.5rem !important}.pr-2,.px-2{padding-right:.5rem !important}.pb-2,.py-2{padding-bottom:.5rem !important}.pl-2,.px-2{padding-left:.5rem !important}.p-3{padding:1rem !important}.pt-3,.py-3{padding-top:1rem !important}.pr-3,.px-3{padding-right:1rem !important}.pb-3,.py-3{padding-bottom:1rem !important}.pl-3,.px-3{padding-left:1rem !important}.p-4{padding:1.5rem !important}.pt-4,.py-4{padding-top:1.5rem !important}.pr-4,.px-4{padding-right:1.5rem !important}.pb-4,.py-4{padding-bottom:1.5rem !important}.pl-4,.px-4{padding-left:1.5rem !important}.p-5{padding:3rem !important}.pt-5,.py-5{padding-top:3rem !important}.pr-5,.px-5{padding-right:3rem !important}.pb-5,.py-5{padding-bottom:3rem !important}.pl-5,.px-5{padding-left:3rem !important}.p--9{padding:-10rem !important}.pt--9,.py--9{padding-top:-10rem !important}.pr--9,.px--9{padding-right:-10rem !important}.pb--9,.py--9{padding-bottom:-10rem !important}.pl--9,.px--9{padding-left:-10rem !important}.p--8{padding:-8rem !important}.pt--8,.py--8{padding-top:-8rem !important}.pr--8,.px--8{padding-right:-8rem !important}.pb--8,.py--8{padding-bottom:-8rem !important}.pl--8,.px--8{padding-left:-8rem !important}.p--7{padding:-6rem !important}.pt--7,.py--7{padding-top:-6rem !important}.pr--7,.px--7{padding-right:-6rem !important}.pb--7,.py--7{padding-bottom:-6rem !important}.pl--7,.px--7{padding-left:-6rem !important}.p--6{padding:-4.5rem !important}.pt--6,.py--6{padding-top:-4.5rem !important}.pr--6,.px--6{padding-right:-4.5rem !important}.pb--6,.py--6{padding-bottom:-4.5rem !important}.pl--6,.px--6{padding-left:-4.5rem !important}.p--5{padding:-3rem !important}.pt--5,.py--5{padding-top:-3rem !important}.pr--5,.px--5{padding-right:-3rem !important}.pb--5,.py--5{padding-bottom:-3rem !important}.pl--5,.px--5{padding-left:-3rem !important}.p--4{padding:-1.5rem !important}.pt--4,.py--4{padding-top:-1.5rem !important}.pr--4,.px--4{padding-right:-1.5rem !important}.pb--4,.py--4{padding-bottom:-1.5rem !important}.pl--4,.px--4{padding-left:-1.5rem !important}.p--3{padding:-1rem !important}.pt--3,.py--3{padding-top:-1rem !important}.pr--3,.px--3{padding-right:-1rem !important}.pb--3,.py--3{padding-bottom:-1rem !important}.pl--3,.px--3{padding-left:-1rem !important}.p--2{padding:-.5rem !important}.pt--2,.py--2{padding-top:-.5rem !important}.pr--2,.px--2{padding-right:-.5rem !important}.pb--2,.py--2{padding-bottom:-.5rem !important}.pl--2,.px--2{padding-left:-.5rem !important}.p--1{padding:-.25rem !important}.pt--1,.py--1{padding-top:-.25rem !important}.pr--1,.px--1{padding-right:-.25rem !important}.pb--1,.py--1{padding-bottom:-.25rem !important}.pl--1,.px--1{padding-left:-.25rem !important}.p-6{padding:4.5rem !important}.pt-6,.py-6{padding-top:4.5rem !important}.pr-6,.px-6{padding-right:4.5rem !important}.pb-6,.py-6{padding-bottom:4.5rem !important}.pl-6,.px-6{padding-left:4.5rem !important}.p-7{padding:6rem !important}.pt-7,.py-7{padding-top:6rem !important}.pr-7,.px-7{padding-right:6rem !important}.pb-7,.py-7{padding-bottom:6rem !important}.pl-7,.px-7{padding-left:6rem !important}.p-8{padding:8rem !important}.pt-8,.py-8{padding-top:8rem !important}.pr-8,.px-8{padding-right:8rem !important}.pb-8,.py-8{padding-bottom:8rem !important}.pl-8,.px-8{padding-left:8rem !important}.p-9{padding:10rem !important}.pt-9,.py-9{padding-top:10rem !important}.pr-9,.px-9{padding-right:10rem !important}.pb-9,.py-9{padding-bottom:10rem !important}.pl-9,.px-9{padding-left:10rem !important}.m-auto{margin:auto !important}.mt-auto,.my-auto{margin-top:auto !important}.mr-auto,.mx-auto{margin-right:auto !important}.mb-auto,.my-auto{margin-bottom:auto !important}.ml-auto,.mx-auto{margin-left:auto !important}@media (min-width: 576px){.m-sm-0{margin:0 !important}.mt-sm-0,.my-sm-0{margin-top:0 !important}.mr-sm-0,.mx-sm-0{margin-right:0 !important}.mb-sm-0,.my-sm-0{margin-bottom:0 !important}.ml-sm-0,.mx-sm-0{margin-left:0 !important}.m-sm-1{margin:.25rem !important}.mt-sm-1,.my-sm-1{margin-top:.25rem !important}.mr-sm-1,.mx-sm-1{margin-right:.25rem !important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem !important}.ml-sm-1,.mx-sm-1{margin-left:.25rem !important}.m-sm-2{margin:.5rem !important}.mt-sm-2,.my-sm-2{margin-top:.5rem !important}.mr-sm-2,.mx-sm-2{margin-right:.5rem !important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem !important}.ml-sm-2,.mx-sm-2{margin-left:.5rem !important}.m-sm-3{margin:1rem !important}.mt-sm-3,.my-sm-3{margin-top:1rem !important}.mr-sm-3,.mx-sm-3{margin-right:1rem !important}.mb-sm-3,.my-sm-3{margin-bottom:1rem !important}.ml-sm-3,.mx-sm-3{margin-left:1rem !important}.m-sm-4{margin:1.5rem !important}.mt-sm-4,.my-sm-4{margin-top:1.5rem !important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem !important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem !important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem !important}.m-sm-5{margin:3rem !important}.mt-sm-5,.my-sm-5{margin-top:3rem !important}.mr-sm-5,.mx-sm-5{margin-right:3rem !important}.mb-sm-5,.my-sm-5{margin-bottom:3rem !important}.ml-sm-5,.mx-sm-5{margin-left:3rem !important}.m-sm--9{margin:-10rem !important}.mt-sm--9,.my-sm--9{margin-top:-10rem !important}.mr-sm--9,.mx-sm--9{margin-right:-10rem !important}.mb-sm--9,.my-sm--9{margin-bottom:-10rem !important}.ml-sm--9,.mx-sm--9{margin-left:-10rem !important}.m-sm--8{margin:-8rem !important}.mt-sm--8,.my-sm--8{margin-top:-8rem !important}.mr-sm--8,.mx-sm--8{margin-right:-8rem !important}.mb-sm--8,.my-sm--8{margin-bottom:-8rem !important}.ml-sm--8,.mx-sm--8{margin-left:-8rem !important}.m-sm--7{margin:-6rem !important}.mt-sm--7,.my-sm--7{margin-top:-6rem !important}.mr-sm--7,.mx-sm--7{margin-right:-6rem !important}.mb-sm--7,.my-sm--7{margin-bottom:-6rem !important}.ml-sm--7,.mx-sm--7{margin-left:-6rem !important}.m-sm--6{margin:-4.5rem !important}.mt-sm--6,.my-sm--6{margin-top:-4.5rem !important}.mr-sm--6,.mx-sm--6{margin-right:-4.5rem !important}.mb-sm--6,.my-sm--6{margin-bottom:-4.5rem !important}.ml-sm--6,.mx-sm--6{margin-left:-4.5rem !important}.m-sm--5{margin:-3rem !important}.mt-sm--5,.my-sm--5{margin-top:-3rem !important}.mr-sm--5,.mx-sm--5{margin-right:-3rem !important}.mb-sm--5,.my-sm--5{margin-bottom:-3rem !important}.ml-sm--5,.mx-sm--5{margin-left:-3rem !important}.m-sm--4{margin:-1.5rem !important}.mt-sm--4,.my-sm--4{margin-top:-1.5rem !important}.mr-sm--4,.mx-sm--4{margin-right:-1.5rem !important}.mb-sm--4,.my-sm--4{margin-bottom:-1.5rem !important}.ml-sm--4,.mx-sm--4{margin-left:-1.5rem !important}.m-sm--3{margin:-1rem !important}.mt-sm--3,.my-sm--3{margin-top:-1rem !important}.mr-sm--3,.mx-sm--3{margin-right:-1rem !important}.mb-sm--3,.my-sm--3{margin-bottom:-1rem !important}.ml-sm--3,.mx-sm--3{margin-left:-1rem !important}.m-sm--2{margin:-.5rem !important}.mt-sm--2,.my-sm--2{margin-top:-.5rem !important}.mr-sm--2,.mx-sm--2{margin-right:-.5rem !important}.mb-sm--2,.my-sm--2{margin-bottom:-.5rem !important}.ml-sm--2,.mx-sm--2{margin-left:-.5rem !important}.m-sm--1{margin:-.25rem !important}.mt-sm--1,.my-sm--1{margin-top:-.25rem !important}.mr-sm--1,.mx-sm--1{margin-right:-.25rem !important}.mb-sm--1,.my-sm--1{margin-bottom:-.25rem !important}.ml-sm--1,.mx-sm--1{margin-left:-.25rem !important}.m-sm-6{margin:4.5rem !important}.mt-sm-6,.my-sm-6{margin-top:4.5rem !important}.mr-sm-6,.mx-sm-6{margin-right:4.5rem !important}.mb-sm-6,.my-sm-6{margin-bottom:4.5rem !important}.ml-sm-6,.mx-sm-6{margin-left:4.5rem !important}.m-sm-7{margin:6rem !important}.mt-sm-7,.my-sm-7{margin-top:6rem !important}.mr-sm-7,.mx-sm-7{margin-right:6rem !important}.mb-sm-7,.my-sm-7{margin-bottom:6rem !important}.ml-sm-7,.mx-sm-7{margin-left:6rem !important}.m-sm-8{margin:8rem !important}.mt-sm-8,.my-sm-8{margin-top:8rem !important}.mr-sm-8,.mx-sm-8{margin-right:8rem !important}.mb-sm-8,.my-sm-8{margin-bottom:8rem !important}.ml-sm-8,.mx-sm-8{margin-left:8rem !important}.m-sm-9{margin:10rem !important}.mt-sm-9,.my-sm-9{margin-top:10rem !important}.mr-sm-9,.mx-sm-9{margin-right:10rem !important}.mb-sm-9,.my-sm-9{margin-bottom:10rem !important}.ml-sm-9,.mx-sm-9{margin-left:10rem !important}.p-sm-0{padding:0 !important}.pt-sm-0,.py-sm-0{padding-top:0 !important}.pr-sm-0,.px-sm-0{padding-right:0 !important}.pb-sm-0,.py-sm-0{padding-bottom:0 !important}.pl-sm-0,.px-sm-0{padding-left:0 !important}.p-sm-1{padding:.25rem !important}.pt-sm-1,.py-sm-1{padding-top:.25rem !important}.pr-sm-1,.px-sm-1{padding-right:.25rem !important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem !important}.pl-sm-1,.px-sm-1{padding-left:.25rem !important}.p-sm-2{padding:.5rem !important}.pt-sm-2,.py-sm-2{padding-top:.5rem !important}.pr-sm-2,.px-sm-2{padding-right:.5rem !important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem !important}.pl-sm-2,.px-sm-2{padding-left:.5rem !important}.p-sm-3{padding:1rem !important}.pt-sm-3,.py-sm-3{padding-top:1rem !important}.pr-sm-3,.px-sm-3{padding-right:1rem !important}.pb-sm-3,.py-sm-3{padding-bottom:1rem !important}.pl-sm-3,.px-sm-3{padding-left:1rem !important}.p-sm-4{padding:1.5rem !important}.pt-sm-4,.py-sm-4{padding-top:1.5rem !important}.pr-sm-4,.px-sm-4{padding-right:1.5rem !important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem !important}.pl-sm-4,.px-sm-4{padding-left:1.5rem !important}.p-sm-5{padding:3rem !important}.pt-sm-5,.py-sm-5{padding-top:3rem !important}.pr-sm-5,.px-sm-5{padding-right:3rem !important}.pb-sm-5,.py-sm-5{padding-bottom:3rem !important}.pl-sm-5,.px-sm-5{padding-left:3rem !important}.p-sm--9{padding:-10rem !important}.pt-sm--9,.py-sm--9{padding-top:-10rem !important}.pr-sm--9,.px-sm--9{padding-right:-10rem !important}.pb-sm--9,.py-sm--9{padding-bottom:-10rem !important}.pl-sm--9,.px-sm--9{padding-left:-10rem !important}.p-sm--8{padding:-8rem !important}.pt-sm--8,.py-sm--8{padding-top:-8rem !important}.pr-sm--8,.px-sm--8{padding-right:-8rem !important}.pb-sm--8,.py-sm--8{padding-bottom:-8rem !important}.pl-sm--8,.px-sm--8{padding-left:-8rem !important}.p-sm--7{padding:-6rem !important}.pt-sm--7,.py-sm--7{padding-top:-6rem !important}.pr-sm--7,.px-sm--7{padding-right:-6rem !important}.pb-sm--7,.py-sm--7{padding-bottom:-6rem !important}.pl-sm--7,.px-sm--7{padding-left:-6rem !important}.p-sm--6{padding:-4.5rem !important}.pt-sm--6,.py-sm--6{padding-top:-4.5rem !important}.pr-sm--6,.px-sm--6{padding-right:-4.5rem !important}.pb-sm--6,.py-sm--6{padding-bottom:-4.5rem !important}.pl-sm--6,.px-sm--6{padding-left:-4.5rem !important}.p-sm--5{padding:-3rem !important}.pt-sm--5,.py-sm--5{padding-top:-3rem !important}.pr-sm--5,.px-sm--5{padding-right:-3rem !important}.pb-sm--5,.py-sm--5{padding-bottom:-3rem !important}.pl-sm--5,.px-sm--5{padding-left:-3rem !important}.p-sm--4{padding:-1.5rem !important}.pt-sm--4,.py-sm--4{padding-top:-1.5rem !important}.pr-sm--4,.px-sm--4{padding-right:-1.5rem !important}.pb-sm--4,.py-sm--4{padding-bottom:-1.5rem !important}.pl-sm--4,.px-sm--4{padding-left:-1.5rem !important}.p-sm--3{padding:-1rem !important}.pt-sm--3,.py-sm--3{padding-top:-1rem !important}.pr-sm--3,.px-sm--3{padding-right:-1rem !important}.pb-sm--3,.py-sm--3{padding-bottom:-1rem !important}.pl-sm--3,.px-sm--3{padding-left:-1rem !important}.p-sm--2{padding:-.5rem !important}.pt-sm--2,.py-sm--2{padding-top:-.5rem !important}.pr-sm--2,.px-sm--2{padding-right:-.5rem !important}.pb-sm--2,.py-sm--2{padding-bottom:-.5rem !important}.pl-sm--2,.px-sm--2{padding-left:-.5rem !important}.p-sm--1{padding:-.25rem !important}.pt-sm--1,.py-sm--1{padding-top:-.25rem !important}.pr-sm--1,.px-sm--1{padding-right:-.25rem !important}.pb-sm--1,.py-sm--1{padding-bottom:-.25rem !important}.pl-sm--1,.px-sm--1{padding-left:-.25rem !important}.p-sm-6{padding:4.5rem !important}.pt-sm-6,.py-sm-6{padding-top:4.5rem !important}.pr-sm-6,.px-sm-6{padding-right:4.5rem !important}.pb-sm-6,.py-sm-6{padding-bottom:4.5rem !important}.pl-sm-6,.px-sm-6{padding-left:4.5rem !important}.p-sm-7{padding:6rem !important}.pt-sm-7,.py-sm-7{padding-top:6rem !important}.pr-sm-7,.px-sm-7{padding-right:6rem !important}.pb-sm-7,.py-sm-7{padding-bottom:6rem !important}.pl-sm-7,.px-sm-7{padding-left:6rem !important}.p-sm-8{padding:8rem !important}.pt-sm-8,.py-sm-8{padding-top:8rem !important}.pr-sm-8,.px-sm-8{padding-right:8rem !important}.pb-sm-8,.py-sm-8{padding-bottom:8rem !important}.pl-sm-8,.px-sm-8{padding-left:8rem !important}.p-sm-9{padding:10rem !important}.pt-sm-9,.py-sm-9{padding-top:10rem !important}.pr-sm-9,.px-sm-9{padding-right:10rem !important}.pb-sm-9,.py-sm-9{padding-bottom:10rem !important}.pl-sm-9,.px-sm-9{padding-left:10rem !important}.m-sm-auto{margin:auto !important}.mt-sm-auto,.my-sm-auto{margin-top:auto !important}.mr-sm-auto,.mx-sm-auto{margin-right:auto !important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto !important}.ml-sm-auto,.mx-sm-auto{margin-left:auto !important}}@media (min-width: 768px){.m-md-0{margin:0 !important}.mt-md-0,.my-md-0{margin-top:0 !important}.mr-md-0,.mx-md-0{margin-right:0 !important}.mb-md-0,.my-md-0{margin-bottom:0 !important}.ml-md-0,.mx-md-0{margin-left:0 !important}.m-md-1{margin:.25rem !important}.mt-md-1,.my-md-1{margin-top:.25rem !important}.mr-md-1,.mx-md-1{margin-right:.25rem !important}.mb-md-1,.my-md-1{margin-bottom:.25rem !important}.ml-md-1,.mx-md-1{margin-left:.25rem !important}.m-md-2{margin:.5rem !important}.mt-md-2,.my-md-2{margin-top:.5rem !important}.mr-md-2,.mx-md-2{margin-right:.5rem !important}.mb-md-2,.my-md-2{margin-bottom:.5rem !important}.ml-md-2,.mx-md-2{margin-left:.5rem !important}.m-md-3{margin:1rem !important}.mt-md-3,.my-md-3{margin-top:1rem !important}.mr-md-3,.mx-md-3{margin-right:1rem !important}.mb-md-3,.my-md-3{margin-bottom:1rem !important}.ml-md-3,.mx-md-3{margin-left:1rem !important}.m-md-4{margin:1.5rem !important}.mt-md-4,.my-md-4{margin-top:1.5rem !important}.mr-md-4,.mx-md-4{margin-right:1.5rem !important}.mb-md-4,.my-md-4{margin-bottom:1.5rem !important}.ml-md-4,.mx-md-4{margin-left:1.5rem !important}.m-md-5{margin:3rem !important}.mt-md-5,.my-md-5{margin-top:3rem !important}.mr-md-5,.mx-md-5{margin-right:3rem !important}.mb-md-5,.my-md-5{margin-bottom:3rem !important}.ml-md-5,.mx-md-5{margin-left:3rem !important}.m-md--9{margin:-10rem !important}.mt-md--9,.my-md--9{margin-top:-10rem !important}.mr-md--9,.mx-md--9{margin-right:-10rem !important}.mb-md--9,.my-md--9{margin-bottom:-10rem !important}.ml-md--9,.mx-md--9{margin-left:-10rem !important}.m-md--8{margin:-8rem !important}.mt-md--8,.my-md--8{margin-top:-8rem !important}.mr-md--8,.mx-md--8{margin-right:-8rem !important}.mb-md--8,.my-md--8{margin-bottom:-8rem !important}.ml-md--8,.mx-md--8{margin-left:-8rem !important}.m-md--7{margin:-6rem !important}.mt-md--7,.my-md--7{margin-top:-6rem !important}.mr-md--7,.mx-md--7{margin-right:-6rem !important}.mb-md--7,.my-md--7{margin-bottom:-6rem !important}.ml-md--7,.mx-md--7{margin-left:-6rem !important}.m-md--6{margin:-4.5rem !important}.mt-md--6,.my-md--6{margin-top:-4.5rem !important}.mr-md--6,.mx-md--6{margin-right:-4.5rem !important}.mb-md--6,.my-md--6{margin-bottom:-4.5rem !important}.ml-md--6,.mx-md--6{margin-left:-4.5rem !important}.m-md--5{margin:-3rem !important}.mt-md--5,.my-md--5{margin-top:-3rem !important}.mr-md--5,.mx-md--5{margin-right:-3rem !important}.mb-md--5,.my-md--5{margin-bottom:-3rem !important}.ml-md--5,.mx-md--5{margin-left:-3rem !important}.m-md--4{margin:-1.5rem !important}.mt-md--4,.my-md--4{margin-top:-1.5rem !important}.mr-md--4,.mx-md--4{margin-right:-1.5rem !important}.mb-md--4,.my-md--4{margin-bottom:-1.5rem !important}.ml-md--4,.mx-md--4{margin-left:-1.5rem !important}.m-md--3{margin:-1rem !important}.mt-md--3,.my-md--3{margin-top:-1rem !important}.mr-md--3,.mx-md--3{margin-right:-1rem !important}.mb-md--3,.my-md--3{margin-bottom:-1rem !important}.ml-md--3,.mx-md--3{margin-left:-1rem !important}.m-md--2{margin:-.5rem !important}.mt-md--2,.my-md--2{margin-top:-.5rem !important}.mr-md--2,.mx-md--2{margin-right:-.5rem !important}.mb-md--2,.my-md--2{margin-bottom:-.5rem !important}.ml-md--2,.mx-md--2{margin-left:-.5rem !important}.m-md--1{margin:-.25rem !important}.mt-md--1,.my-md--1{margin-top:-.25rem !important}.mr-md--1,.mx-md--1{margin-right:-.25rem !important}.mb-md--1,.my-md--1{margin-bottom:-.25rem !important}.ml-md--1,.mx-md--1{margin-left:-.25rem !important}.m-md-6{margin:4.5rem !important}.mt-md-6,.my-md-6{margin-top:4.5rem !important}.mr-md-6,.mx-md-6{margin-right:4.5rem !important}.mb-md-6,.my-md-6{margin-bottom:4.5rem !important}.ml-md-6,.mx-md-6{margin-left:4.5rem !important}.m-md-7{margin:6rem !important}.mt-md-7,.my-md-7{margin-top:6rem !important}.mr-md-7,.mx-md-7{margin-right:6rem !important}.mb-md-7,.my-md-7{margin-bottom:6rem !important}.ml-md-7,.mx-md-7{margin-left:6rem !important}.m-md-8{margin:8rem !important}.mt-md-8,.my-md-8{margin-top:8rem !important}.mr-md-8,.mx-md-8{margin-right:8rem !important}.mb-md-8,.my-md-8{margin-bottom:8rem !important}.ml-md-8,.mx-md-8{margin-left:8rem !important}.m-md-9{margin:10rem !important}.mt-md-9,.my-md-9{margin-top:10rem !important}.mr-md-9,.mx-md-9{margin-right:10rem !important}.mb-md-9,.my-md-9{margin-bottom:10rem !important}.ml-md-9,.mx-md-9{margin-left:10rem !important}.p-md-0{padding:0 !important}.pt-md-0,.py-md-0{padding-top:0 !important}.pr-md-0,.px-md-0{padding-right:0 !important}.pb-md-0,.py-md-0{padding-bottom:0 !important}.pl-md-0,.px-md-0{padding-left:0 !important}.p-md-1{padding:.25rem !important}.pt-md-1,.py-md-1{padding-top:.25rem !important}.pr-md-1,.px-md-1{padding-right:.25rem !important}.pb-md-1,.py-md-1{padding-bottom:.25rem !important}.pl-md-1,.px-md-1{padding-left:.25rem !important}.p-md-2{padding:.5rem !important}.pt-md-2,.py-md-2{padding-top:.5rem !important}.pr-md-2,.px-md-2{padding-right:.5rem !important}.pb-md-2,.py-md-2{padding-bottom:.5rem !important}.pl-md-2,.px-md-2{padding-left:.5rem !important}.p-md-3{padding:1rem !important}.pt-md-3,.py-md-3{padding-top:1rem !important}.pr-md-3,.px-md-3{padding-right:1rem !important}.pb-md-3,.py-md-3{padding-bottom:1rem !important}.pl-md-3,.px-md-3{padding-left:1rem !important}.p-md-4{padding:1.5rem !important}.pt-md-4,.py-md-4{padding-top:1.5rem !important}.pr-md-4,.px-md-4{padding-right:1.5rem !important}.pb-md-4,.py-md-4{padding-bottom:1.5rem !important}.pl-md-4,.px-md-4{padding-left:1.5rem !important}.p-md-5{padding:3rem !important}.pt-md-5,.py-md-5{padding-top:3rem !important}.pr-md-5,.px-md-5{padding-right:3rem !important}.pb-md-5,.py-md-5{padding-bottom:3rem !important}.pl-md-5,.px-md-5{padding-left:3rem !important}.p-md--9{padding:-10rem !important}.pt-md--9,.py-md--9{padding-top:-10rem !important}.pr-md--9,.px-md--9{padding-right:-10rem !important}.pb-md--9,.py-md--9{padding-bottom:-10rem !important}.pl-md--9,.px-md--9{padding-left:-10rem !important}.p-md--8{padding:-8rem !important}.pt-md--8,.py-md--8{padding-top:-8rem !important}.pr-md--8,.px-md--8{padding-right:-8rem !important}.pb-md--8,.py-md--8{padding-bottom:-8rem !important}.pl-md--8,.px-md--8{padding-left:-8rem !important}.p-md--7{padding:-6rem !important}.pt-md--7,.py-md--7{padding-top:-6rem !important}.pr-md--7,.px-md--7{padding-right:-6rem !important}.pb-md--7,.py-md--7{padding-bottom:-6rem !important}.pl-md--7,.px-md--7{padding-left:-6rem !important}.p-md--6{padding:-4.5rem !important}.pt-md--6,.py-md--6{padding-top:-4.5rem !important}.pr-md--6,.px-md--6{padding-right:-4.5rem !important}.pb-md--6,.py-md--6{padding-bottom:-4.5rem !important}.pl-md--6,.px-md--6{padding-left:-4.5rem !important}.p-md--5{padding:-3rem !important}.pt-md--5,.py-md--5{padding-top:-3rem !important}.pr-md--5,.px-md--5{padding-right:-3rem !important}.pb-md--5,.py-md--5{padding-bottom:-3rem !important}.pl-md--5,.px-md--5{padding-left:-3rem !important}.p-md--4{padding:-1.5rem !important}.pt-md--4,.py-md--4{padding-top:-1.5rem !important}.pr-md--4,.px-md--4{padding-right:-1.5rem !important}.pb-md--4,.py-md--4{padding-bottom:-1.5rem !important}.pl-md--4,.px-md--4{padding-left:-1.5rem !important}.p-md--3{padding:-1rem !important}.pt-md--3,.py-md--3{padding-top:-1rem !important}.pr-md--3,.px-md--3{padding-right:-1rem !important}.pb-md--3,.py-md--3{padding-bottom:-1rem !important}.pl-md--3,.px-md--3{padding-left:-1rem !important}.p-md--2{padding:-.5rem !important}.pt-md--2,.py-md--2{padding-top:-.5rem !important}.pr-md--2,.px-md--2{padding-right:-.5rem !important}.pb-md--2,.py-md--2{padding-bottom:-.5rem !important}.pl-md--2,.px-md--2{padding-left:-.5rem !important}.p-md--1{padding:-.25rem !important}.pt-md--1,.py-md--1{padding-top:-.25rem !important}.pr-md--1,.px-md--1{padding-right:-.25rem !important}.pb-md--1,.py-md--1{padding-bottom:-.25rem !important}.pl-md--1,.px-md--1{padding-left:-.25rem !important}.p-md-6{padding:4.5rem !important}.pt-md-6,.py-md-6{padding-top:4.5rem !important}.pr-md-6,.px-md-6{padding-right:4.5rem !important}.pb-md-6,.py-md-6{padding-bottom:4.5rem !important}.pl-md-6,.px-md-6{padding-left:4.5rem !important}.p-md-7{padding:6rem !important}.pt-md-7,.py-md-7{padding-top:6rem !important}.pr-md-7,.px-md-7{padding-right:6rem !important}.pb-md-7,.py-md-7{padding-bottom:6rem !important}.pl-md-7,.px-md-7{padding-left:6rem !important}.p-md-8{padding:8rem !important}.pt-md-8,.py-md-8{padding-top:8rem !important}.pr-md-8,.px-md-8{padding-right:8rem !important}.pb-md-8,.py-md-8{padding-bottom:8rem !important}.pl-md-8,.px-md-8{padding-left:8rem !important}.p-md-9{padding:10rem !important}.pt-md-9,.py-md-9{padding-top:10rem !important}.pr-md-9,.px-md-9{padding-right:10rem !important}.pb-md-9,.py-md-9{padding-bottom:10rem !important}.pl-md-9,.px-md-9{padding-left:10rem !important}.m-md-auto{margin:auto !important}.mt-md-auto,.my-md-auto{margin-top:auto !important}.mr-md-auto,.mx-md-auto{margin-right:auto !important}.mb-md-auto,.my-md-auto{margin-bottom:auto !important}.ml-md-auto,.mx-md-auto{margin-left:auto !important}}@media (min-width: 992px){.m-lg-0{margin:0 !important}.mt-lg-0,.my-lg-0{margin-top:0 !important}.mr-lg-0,.mx-lg-0{margin-right:0 !important}.mb-lg-0,.my-lg-0{margin-bottom:0 !important}.ml-lg-0,.mx-lg-0{margin-left:0 !important}.m-lg-1{margin:.25rem !important}.mt-lg-1,.my-lg-1{margin-top:.25rem !important}.mr-lg-1,.mx-lg-1{margin-right:.25rem !important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem !important}.ml-lg-1,.mx-lg-1{margin-left:.25rem !important}.m-lg-2{margin:.5rem !important}.mt-lg-2,.my-lg-2{margin-top:.5rem !important}.mr-lg-2,.mx-lg-2{margin-right:.5rem !important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem !important}.ml-lg-2,.mx-lg-2{margin-left:.5rem !important}.m-lg-3{margin:1rem !important}.mt-lg-3,.my-lg-3{margin-top:1rem !important}.mr-lg-3,.mx-lg-3{margin-right:1rem !important}.mb-lg-3,.my-lg-3{margin-bottom:1rem !important}.ml-lg-3,.mx-lg-3{margin-left:1rem !important}.m-lg-4{margin:1.5rem !important}.mt-lg-4,.my-lg-4{margin-top:1.5rem !important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem !important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem !important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem !important}.m-lg-5{margin:3rem !important}.mt-lg-5,.my-lg-5{margin-top:3rem !important}.mr-lg-5,.mx-lg-5{margin-right:3rem !important}.mb-lg-5,.my-lg-5{margin-bottom:3rem !important}.ml-lg-5,.mx-lg-5{margin-left:3rem !important}.m-lg--9{margin:-10rem !important}.mt-lg--9,.my-lg--9{margin-top:-10rem !important}.mr-lg--9,.mx-lg--9{margin-right:-10rem !important}.mb-lg--9,.my-lg--9{margin-bottom:-10rem !important}.ml-lg--9,.mx-lg--9{margin-left:-10rem !important}.m-lg--8{margin:-8rem !important}.mt-lg--8,.my-lg--8{margin-top:-8rem !important}.mr-lg--8,.mx-lg--8{margin-right:-8rem !important}.mb-lg--8,.my-lg--8{margin-bottom:-8rem !important}.ml-lg--8,.mx-lg--8{margin-left:-8rem !important}.m-lg--7{margin:-6rem !important}.mt-lg--7,.my-lg--7{margin-top:-6rem !important}.mr-lg--7,.mx-lg--7{margin-right:-6rem !important}.mb-lg--7,.my-lg--7{margin-bottom:-6rem !important}.ml-lg--7,.mx-lg--7{margin-left:-6rem !important}.m-lg--6{margin:-4.5rem !important}.mt-lg--6,.my-lg--6{margin-top:-4.5rem !important}.mr-lg--6,.mx-lg--6{margin-right:-4.5rem !important}.mb-lg--6,.my-lg--6{margin-bottom:-4.5rem !important}.ml-lg--6,.mx-lg--6{margin-left:-4.5rem !important}.m-lg--5{margin:-3rem !important}.mt-lg--5,.my-lg--5{margin-top:-3rem !important}.mr-lg--5,.mx-lg--5{margin-right:-3rem !important}.mb-lg--5,.my-lg--5{margin-bottom:-3rem !important}.ml-lg--5,.mx-lg--5{margin-left:-3rem !important}.m-lg--4{margin:-1.5rem !important}.mt-lg--4,.my-lg--4{margin-top:-1.5rem !important}.mr-lg--4,.mx-lg--4{margin-right:-1.5rem !important}.mb-lg--4,.my-lg--4{margin-bottom:-1.5rem !important}.ml-lg--4,.mx-lg--4{margin-left:-1.5rem !important}.m-lg--3{margin:-1rem !important}.mt-lg--3,.my-lg--3{margin-top:-1rem !important}.mr-lg--3,.mx-lg--3{margin-right:-1rem !important}.mb-lg--3,.my-lg--3{margin-bottom:-1rem !important}.ml-lg--3,.mx-lg--3{margin-left:-1rem !important}.m-lg--2{margin:-.5rem !important}.mt-lg--2,.my-lg--2{margin-top:-.5rem !important}.mr-lg--2,.mx-lg--2{margin-right:-.5rem !important}.mb-lg--2,.my-lg--2{margin-bottom:-.5rem !important}.ml-lg--2,.mx-lg--2{margin-left:-.5rem !important}.m-lg--1{margin:-.25rem !important}.mt-lg--1,.my-lg--1{margin-top:-.25rem !important}.mr-lg--1,.mx-lg--1{margin-right:-.25rem !important}.mb-lg--1,.my-lg--1{margin-bottom:-.25rem !important}.ml-lg--1,.mx-lg--1{margin-left:-.25rem !important}.m-lg-6{margin:4.5rem !important}.mt-lg-6,.my-lg-6{margin-top:4.5rem !important}.mr-lg-6,.mx-lg-6{margin-right:4.5rem !important}.mb-lg-6,.my-lg-6{margin-bottom:4.5rem !important}.ml-lg-6,.mx-lg-6{margin-left:4.5rem !important}.m-lg-7{margin:6rem !important}.mt-lg-7,.my-lg-7{margin-top:6rem !important}.mr-lg-7,.mx-lg-7{margin-right:6rem !important}.mb-lg-7,.my-lg-7{margin-bottom:6rem !important}.ml-lg-7,.mx-lg-7{margin-left:6rem !important}.m-lg-8{margin:8rem !important}.mt-lg-8,.my-lg-8{margin-top:8rem !important}.mr-lg-8,.mx-lg-8{margin-right:8rem !important}.mb-lg-8,.my-lg-8{margin-bottom:8rem !important}.ml-lg-8,.mx-lg-8{margin-left:8rem !important}.m-lg-9{margin:10rem !important}.mt-lg-9,.my-lg-9{margin-top:10rem !important}.mr-lg-9,.mx-lg-9{margin-right:10rem !important}.mb-lg-9,.my-lg-9{margin-bottom:10rem !important}.ml-lg-9,.mx-lg-9{margin-left:10rem !important}.p-lg-0{padding:0 !important}.pt-lg-0,.py-lg-0{padding-top:0 !important}.pr-lg-0,.px-lg-0{padding-right:0 !important}.pb-lg-0,.py-lg-0{padding-bottom:0 !important}.pl-lg-0,.px-lg-0{padding-left:0 !important}.p-lg-1{padding:.25rem !important}.pt-lg-1,.py-lg-1{padding-top:.25rem !important}.pr-lg-1,.px-lg-1{padding-right:.25rem !important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem !important}.pl-lg-1,.px-lg-1{padding-left:.25rem !important}.p-lg-2{padding:.5rem !important}.pt-lg-2,.py-lg-2{padding-top:.5rem !important}.pr-lg-2,.px-lg-2{padding-right:.5rem !important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem !important}.pl-lg-2,.px-lg-2{padding-left:.5rem !important}.p-lg-3{padding:1rem !important}.pt-lg-3,.py-lg-3{padding-top:1rem !important}.pr-lg-3,.px-lg-3{padding-right:1rem !important}.pb-lg-3,.py-lg-3{padding-bottom:1rem !important}.pl-lg-3,.px-lg-3{padding-left:1rem !important}.p-lg-4{padding:1.5rem !important}.pt-lg-4,.py-lg-4{padding-top:1.5rem !important}.pr-lg-4,.px-lg-4{padding-right:1.5rem !important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem !important}.pl-lg-4,.px-lg-4{padding-left:1.5rem !important}.p-lg-5{padding:3rem !important}.pt-lg-5,.py-lg-5{padding-top:3rem !important}.pr-lg-5,.px-lg-5{padding-right:3rem !important}.pb-lg-5,.py-lg-5{padding-bottom:3rem !important}.pl-lg-5,.px-lg-5{padding-left:3rem !important}.p-lg--9{padding:-10rem !important}.pt-lg--9,.py-lg--9{padding-top:-10rem !important}.pr-lg--9,.px-lg--9{padding-right:-10rem !important}.pb-lg--9,.py-lg--9{padding-bottom:-10rem !important}.pl-lg--9,.px-lg--9{padding-left:-10rem !important}.p-lg--8{padding:-8rem !important}.pt-lg--8,.py-lg--8{padding-top:-8rem !important}.pr-lg--8,.px-lg--8{padding-right:-8rem !important}.pb-lg--8,.py-lg--8{padding-bottom:-8rem !important}.pl-lg--8,.px-lg--8{padding-left:-8rem !important}.p-lg--7{padding:-6rem !important}.pt-lg--7,.py-lg--7{padding-top:-6rem !important}.pr-lg--7,.px-lg--7{padding-right:-6rem !important}.pb-lg--7,.py-lg--7{padding-bottom:-6rem !important}.pl-lg--7,.px-lg--7{padding-left:-6rem !important}.p-lg--6{padding:-4.5rem !important}.pt-lg--6,.py-lg--6{padding-top:-4.5rem !important}.pr-lg--6,.px-lg--6{padding-right:-4.5rem !important}.pb-lg--6,.py-lg--6{padding-bottom:-4.5rem !important}.pl-lg--6,.px-lg--6{padding-left:-4.5rem !important}.p-lg--5{padding:-3rem !important}.pt-lg--5,.py-lg--5{padding-top:-3rem !important}.pr-lg--5,.px-lg--5{padding-right:-3rem !important}.pb-lg--5,.py-lg--5{padding-bottom:-3rem !important}.pl-lg--5,.px-lg--5{padding-left:-3rem !important}.p-lg--4{padding:-1.5rem !important}.pt-lg--4,.py-lg--4{padding-top:-1.5rem !important}.pr-lg--4,.px-lg--4{padding-right:-1.5rem !important}.pb-lg--4,.py-lg--4{padding-bottom:-1.5rem !important}.pl-lg--4,.px-lg--4{padding-left:-1.5rem !important}.p-lg--3{padding:-1rem !important}.pt-lg--3,.py-lg--3{padding-top:-1rem !important}.pr-lg--3,.px-lg--3{padding-right:-1rem !important}.pb-lg--3,.py-lg--3{padding-bottom:-1rem !important}.pl-lg--3,.px-lg--3{padding-left:-1rem !important}.p-lg--2{padding:-.5rem !important}.pt-lg--2,.py-lg--2{padding-top:-.5rem !important}.pr-lg--2,.px-lg--2{padding-right:-.5rem !important}.pb-lg--2,.py-lg--2{padding-bottom:-.5rem !important}.pl-lg--2,.px-lg--2{padding-left:-.5rem !important}.p-lg--1{padding:-.25rem !important}.pt-lg--1,.py-lg--1{padding-top:-.25rem !important}.pr-lg--1,.px-lg--1{padding-right:-.25rem !important}.pb-lg--1,.py-lg--1{padding-bottom:-.25rem !important}.pl-lg--1,.px-lg--1{padding-left:-.25rem !important}.p-lg-6{padding:4.5rem !important}.pt-lg-6,.py-lg-6{padding-top:4.5rem !important}.pr-lg-6,.px-lg-6{padding-right:4.5rem !important}.pb-lg-6,.py-lg-6{padding-bottom:4.5rem !important}.pl-lg-6,.px-lg-6{padding-left:4.5rem !important}.p-lg-7{padding:6rem !important}.pt-lg-7,.py-lg-7{padding-top:6rem !important}.pr-lg-7,.px-lg-7{padding-right:6rem !important}.pb-lg-7,.py-lg-7{padding-bottom:6rem !important}.pl-lg-7,.px-lg-7{padding-left:6rem !important}.p-lg-8{padding:8rem !important}.pt-lg-8,.py-lg-8{padding-top:8rem !important}.pr-lg-8,.px-lg-8{padding-right:8rem !important}.pb-lg-8,.py-lg-8{padding-bottom:8rem !important}.pl-lg-8,.px-lg-8{padding-left:8rem !important}.p-lg-9{padding:10rem !important}.pt-lg-9,.py-lg-9{padding-top:10rem !important}.pr-lg-9,.px-lg-9{padding-right:10rem !important}.pb-lg-9,.py-lg-9{padding-bottom:10rem !important}.pl-lg-9,.px-lg-9{padding-left:10rem !important}.m-lg-auto{margin:auto !important}.mt-lg-auto,.my-lg-auto{margin-top:auto !important}.mr-lg-auto,.mx-lg-auto{margin-right:auto !important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto !important}.ml-lg-auto,.mx-lg-auto{margin-left:auto !important}}@media (min-width: 1200px){.m-xl-0{margin:0 !important}.mt-xl-0,.my-xl-0{margin-top:0 !important}.mr-xl-0,.mx-xl-0{margin-right:0 !important}.mb-xl-0,.my-xl-0{margin-bottom:0 !important}.ml-xl-0,.mx-xl-0{margin-left:0 !important}.m-xl-1{margin:.25rem !important}.mt-xl-1,.my-xl-1{margin-top:.25rem !important}.mr-xl-1,.mx-xl-1{margin-right:.25rem !important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem !important}.ml-xl-1,.mx-xl-1{margin-left:.25rem !important}.m-xl-2{margin:.5rem !important}.mt-xl-2,.my-xl-2{margin-top:.5rem !important}.mr-xl-2,.mx-xl-2{margin-right:.5rem !important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem !important}.ml-xl-2,.mx-xl-2{margin-left:.5rem !important}.m-xl-3{margin:1rem !important}.mt-xl-3,.my-xl-3{margin-top:1rem !important}.mr-xl-3,.mx-xl-3{margin-right:1rem !important}.mb-xl-3,.my-xl-3{margin-bottom:1rem !important}.ml-xl-3,.mx-xl-3{margin-left:1rem !important}.m-xl-4{margin:1.5rem !important}.mt-xl-4,.my-xl-4{margin-top:1.5rem !important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem !important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem !important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem !important}.m-xl-5{margin:3rem !important}.mt-xl-5,.my-xl-5{margin-top:3rem !important}.mr-xl-5,.mx-xl-5{margin-right:3rem !important}.mb-xl-5,.my-xl-5{margin-bottom:3rem !important}.ml-xl-5,.mx-xl-5{margin-left:3rem !important}.m-xl--9{margin:-10rem !important}.mt-xl--9,.my-xl--9{margin-top:-10rem !important}.mr-xl--9,.mx-xl--9{margin-right:-10rem !important}.mb-xl--9,.my-xl--9{margin-bottom:-10rem !important}.ml-xl--9,.mx-xl--9{margin-left:-10rem !important}.m-xl--8{margin:-8rem !important}.mt-xl--8,.my-xl--8{margin-top:-8rem !important}.mr-xl--8,.mx-xl--8{margin-right:-8rem !important}.mb-xl--8,.my-xl--8{margin-bottom:-8rem !important}.ml-xl--8,.mx-xl--8{margin-left:-8rem !important}.m-xl--7{margin:-6rem !important}.mt-xl--7,.my-xl--7{margin-top:-6rem !important}.mr-xl--7,.mx-xl--7{margin-right:-6rem !important}.mb-xl--7,.my-xl--7{margin-bottom:-6rem !important}.ml-xl--7,.mx-xl--7{margin-left:-6rem !important}.m-xl--6{margin:-4.5rem !important}.mt-xl--6,.my-xl--6{margin-top:-4.5rem !important}.mr-xl--6,.mx-xl--6{margin-right:-4.5rem !important}.mb-xl--6,.my-xl--6{margin-bottom:-4.5rem !important}.ml-xl--6,.mx-xl--6{margin-left:-4.5rem !important}.m-xl--5{margin:-3rem !important}.mt-xl--5,.my-xl--5{margin-top:-3rem !important}.mr-xl--5,.mx-xl--5{margin-right:-3rem !important}.mb-xl--5,.my-xl--5{margin-bottom:-3rem !important}.ml-xl--5,.mx-xl--5{margin-left:-3rem !important}.m-xl--4{margin:-1.5rem !important}.mt-xl--4,.my-xl--4{margin-top:-1.5rem !important}.mr-xl--4,.mx-xl--4{margin-right:-1.5rem !important}.mb-xl--4,.my-xl--4{margin-bottom:-1.5rem !important}.ml-xl--4,.mx-xl--4{margin-left:-1.5rem !important}.m-xl--3{margin:-1rem !important}.mt-xl--3,.my-xl--3{margin-top:-1rem !important}.mr-xl--3,.mx-xl--3{margin-right:-1rem !important}.mb-xl--3,.my-xl--3{margin-bottom:-1rem !important}.ml-xl--3,.mx-xl--3{margin-left:-1rem !important}.m-xl--2{margin:-.5rem !important}.mt-xl--2,.my-xl--2{margin-top:-.5rem !important}.mr-xl--2,.mx-xl--2{margin-right:-.5rem !important}.mb-xl--2,.my-xl--2{margin-bottom:-.5rem !important}.ml-xl--2,.mx-xl--2{margin-left:-.5rem !important}.m-xl--1{margin:-.25rem !important}.mt-xl--1,.my-xl--1{margin-top:-.25rem !important}.mr-xl--1,.mx-xl--1{margin-right:-.25rem !important}.mb-xl--1,.my-xl--1{margin-bottom:-.25rem !important}.ml-xl--1,.mx-xl--1{margin-left:-.25rem !important}.m-xl-6{margin:4.5rem !important}.mt-xl-6,.my-xl-6{margin-top:4.5rem !important}.mr-xl-6,.mx-xl-6{margin-right:4.5rem !important}.mb-xl-6,.my-xl-6{margin-bottom:4.5rem !important}.ml-xl-6,.mx-xl-6{margin-left:4.5rem !important}.m-xl-7{margin:6rem !important}.mt-xl-7,.my-xl-7{margin-top:6rem !important}.mr-xl-7,.mx-xl-7{margin-right:6rem !important}.mb-xl-7,.my-xl-7{margin-bottom:6rem !important}.ml-xl-7,.mx-xl-7{margin-left:6rem !important}.m-xl-8{margin:8rem !important}.mt-xl-8,.my-xl-8{margin-top:8rem !important}.mr-xl-8,.mx-xl-8{margin-right:8rem !important}.mb-xl-8,.my-xl-8{margin-bottom:8rem !important}.ml-xl-8,.mx-xl-8{margin-left:8rem !important}.m-xl-9{margin:10rem !important}.mt-xl-9,.my-xl-9{margin-top:10rem !important}.mr-xl-9,.mx-xl-9{margin-right:10rem !important}.mb-xl-9,.my-xl-9{margin-bottom:10rem !important}.ml-xl-9,.mx-xl-9{margin-left:10rem !important}.p-xl-0{padding:0 !important}.pt-xl-0,.py-xl-0{padding-top:0 !important}.pr-xl-0,.px-xl-0{padding-right:0 !important}.pb-xl-0,.py-xl-0{padding-bottom:0 !important}.pl-xl-0,.px-xl-0{padding-left:0 !important}.p-xl-1{padding:.25rem !important}.pt-xl-1,.py-xl-1{padding-top:.25rem !important}.pr-xl-1,.px-xl-1{padding-right:.25rem !important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem !important}.pl-xl-1,.px-xl-1{padding-left:.25rem !important}.p-xl-2{padding:.5rem !important}.pt-xl-2,.py-xl-2{padding-top:.5rem !important}.pr-xl-2,.px-xl-2{padding-right:.5rem !important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem !important}.pl-xl-2,.px-xl-2{padding-left:.5rem !important}.p-xl-3{padding:1rem !important}.pt-xl-3,.py-xl-3{padding-top:1rem !important}.pr-xl-3,.px-xl-3{padding-right:1rem !important}.pb-xl-3,.py-xl-3{padding-bottom:1rem !important}.pl-xl-3,.px-xl-3{padding-left:1rem !important}.p-xl-4{padding:1.5rem !important}.pt-xl-4,.py-xl-4{padding-top:1.5rem !important}.pr-xl-4,.px-xl-4{padding-right:1.5rem !important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem !important}.pl-xl-4,.px-xl-4{padding-left:1.5rem !important}.p-xl-5{padding:3rem !important}.pt-xl-5,.py-xl-5{padding-top:3rem !important}.pr-xl-5,.px-xl-5{padding-right:3rem !important}.pb-xl-5,.py-xl-5{padding-bottom:3rem !important}.pl-xl-5,.px-xl-5{padding-left:3rem !important}.p-xl--9{padding:-10rem !important}.pt-xl--9,.py-xl--9{padding-top:-10rem !important}.pr-xl--9,.px-xl--9{padding-right:-10rem !important}.pb-xl--9,.py-xl--9{padding-bottom:-10rem !important}.pl-xl--9,.px-xl--9{padding-left:-10rem !important}.p-xl--8{padding:-8rem !important}.pt-xl--8,.py-xl--8{padding-top:-8rem !important}.pr-xl--8,.px-xl--8{padding-right:-8rem !important}.pb-xl--8,.py-xl--8{padding-bottom:-8rem !important}.pl-xl--8,.px-xl--8{padding-left:-8rem !important}.p-xl--7{padding:-6rem !important}.pt-xl--7,.py-xl--7{padding-top:-6rem !important}.pr-xl--7,.px-xl--7{padding-right:-6rem !important}.pb-xl--7,.py-xl--7{padding-bottom:-6rem !important}.pl-xl--7,.px-xl--7{padding-left:-6rem !important}.p-xl--6{padding:-4.5rem !important}.pt-xl--6,.py-xl--6{padding-top:-4.5rem !important}.pr-xl--6,.px-xl--6{padding-right:-4.5rem !important}.pb-xl--6,.py-xl--6{padding-bottom:-4.5rem !important}.pl-xl--6,.px-xl--6{padding-left:-4.5rem !important}.p-xl--5{padding:-3rem !important}.pt-xl--5,.py-xl--5{padding-top:-3rem !important}.pr-xl--5,.px-xl--5{padding-right:-3rem !important}.pb-xl--5,.py-xl--5{padding-bottom:-3rem !important}.pl-xl--5,.px-xl--5{padding-left:-3rem !important}.p-xl--4{padding:-1.5rem !important}.pt-xl--4,.py-xl--4{padding-top:-1.5rem !important}.pr-xl--4,.px-xl--4{padding-right:-1.5rem !important}.pb-xl--4,.py-xl--4{padding-bottom:-1.5rem !important}.pl-xl--4,.px-xl--4{padding-left:-1.5rem !important}.p-xl--3{padding:-1rem !important}.pt-xl--3,.py-xl--3{padding-top:-1rem !important}.pr-xl--3,.px-xl--3{padding-right:-1rem !important}.pb-xl--3,.py-xl--3{padding-bottom:-1rem !important}.pl-xl--3,.px-xl--3{padding-left:-1rem !important}.p-xl--2{padding:-.5rem !important}.pt-xl--2,.py-xl--2{padding-top:-.5rem !important}.pr-xl--2,.px-xl--2{padding-right:-.5rem !important}.pb-xl--2,.py-xl--2{padding-bottom:-.5rem !important}.pl-xl--2,.px-xl--2{padding-left:-.5rem !important}.p-xl--1{padding:-.25rem !important}.pt-xl--1,.py-xl--1{padding-top:-.25rem !important}.pr-xl--1,.px-xl--1{padding-right:-.25rem !important}.pb-xl--1,.py-xl--1{padding-bottom:-.25rem !important}.pl-xl--1,.px-xl--1{padding-left:-.25rem !important}.p-xl-6{padding:4.5rem !important}.pt-xl-6,.py-xl-6{padding-top:4.5rem !important}.pr-xl-6,.px-xl-6{padding-right:4.5rem !important}.pb-xl-6,.py-xl-6{padding-bottom:4.5rem !important}.pl-xl-6,.px-xl-6{padding-left:4.5rem !important}.p-xl-7{padding:6rem !important}.pt-xl-7,.py-xl-7{padding-top:6rem !important}.pr-xl-7,.px-xl-7{padding-right:6rem !important}.pb-xl-7,.py-xl-7{padding-bottom:6rem !important}.pl-xl-7,.px-xl-7{padding-left:6rem !important}.p-xl-8{padding:8rem !important}.pt-xl-8,.py-xl-8{padding-top:8rem !important}.pr-xl-8,.px-xl-8{padding-right:8rem !important}.pb-xl-8,.py-xl-8{padding-bottom:8rem !important}.pl-xl-8,.px-xl-8{padding-left:8rem !important}.p-xl-9{padding:10rem !important}.pt-xl-9,.py-xl-9{padding-top:10rem !important}.pr-xl-9,.px-xl-9{padding-right:10rem !important}.pb-xl-9,.py-xl-9{padding-bottom:10rem !important}.pl-xl-9,.px-xl-9{padding-left:10rem !important}.m-xl-auto{margin:auto !important}.mt-xl-auto,.my-xl-auto{margin-top:auto !important}.mr-xl-auto,.mx-xl-auto{margin-right:auto !important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto !important}.ml-xl-auto,.mx-xl-auto{margin-left:auto !important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}.text-justify{text-align:justify !important}.text-nowrap{white-space:nowrap !important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left !important}.text-right{text-align:right !important}.text-center{text-align:center !important}@media (min-width: 576px){.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}.text-sm-center{text-align:center !important}}@media (min-width: 768px){.text-md-left{text-align:left !important}.text-md-right{text-align:right !important}.text-md-center{text-align:center !important}}@media (min-width: 992px){.text-lg-left{text-align:left !important}.text-lg-right{text-align:right !important}.text-lg-center{text-align:center !important}}@media (min-width: 1200px){.text-xl-left{text-align:left !important}.text-xl-right{text-align:right !important}.text-xl-center{text-align:center !important}}.text-lowercase{text-transform:lowercase !important}.text-uppercase{text-transform:uppercase !important}.text-capitalize{text-transform:capitalize !important}.font-weight-light{font-weight:300 !important}.font-weight-normal{font-weight:400 !important}.font-weight-bold{font-weight:600 !important}.font-italic{font-style:italic !important}.text-white{color:#fff !important}.text-primary{color:#5e72e4 !important}a.text-primary:hover,a.text-primary:focus{color:#324cdd !important}.text-secondary{color:#f7fafc !important}a.text-secondary:hover,a.text-secondary:focus{color:#d2e3ee !important}.text-success{color:#2dce89 !important}a.text-success:hover,a.text-success:focus{color:#24a46d !important}.text-info{color:#11cdef !important}a.text-info:hover,a.text-info:focus{color:#0da5c0 !important}.text-warning{color:#fb6340 !important}a.text-warning:hover,a.text-warning:focus{color:#fa3a0e !important}.text-danger{color:#f5365c !important}a.text-danger:hover,a.text-danger:focus{color:#ec0c38 !important}.text-light{color:#adb5bd !important}a.text-light:hover,a.text-light:focus{color:#919ca6 !important}.text-dark{color:#212529 !important}a.text-dark:hover,a.text-dark:focus{color:#0a0c0d !important}.text-default{color:#172b4d !important}a.text-default:hover,a.text-default:focus{color:#0b1526 !important}.text-white{color:#fff !important}a.text-white:hover,a.text-white:focus{color:#e6e6e6 !important}.text-neutral{color:#fff !important}a.text-neutral:hover,a.text-neutral:focus{color:#e6e6e6 !important}.text-darker{color:#000 !important}a.text-darker:hover,a.text-darker:focus{color:#000 !important}.text-body{color:#000 !important}.text-muted{color:#8898aa !important}.text-black-50{color:rgba(0,0,0,0.5) !important}.text-white-50{color:rgba(255,255,255,0.5) !important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.visible{visibility:visible !important}.invisible{visibility:hidden !important}@media print{*,*::before,*::after{text-shadow:none !important;box-shadow:none !important}a:not(.btn){text-decoration:underline}abbr[title]::after{content:" (" attr(title) ")"}pre{white-space:pre-wrap !important}pre,blockquote{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body{min-width:992px !important}.container{min-width:992px !important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse !important}.table td,.table th{background-color:#fff !important}.table-bordered th,.table-bordered td{border:1px solid #dee2e6 !important}.table-dark{color:inherit}.table-dark th,.table-dark td,.table-dark thead th,.table-dark tbody+tbody{border-color:#e9ecef}.table .thead-dark th{color:inherit;border-color:#e9ecef}}iframe{border:0}figcaption,figure,main{display:block}main{overflow:hidden}.bg-blue{background-color:#5e72e4 !important}a.bg-blue:hover,a.bg-blue:focus,button.bg-blue:hover,button.bg-blue:focus{background-color:#324cdd !important}.bg-indigo{background-color:#5603ad !important}a.bg-indigo:hover,a.bg-indigo:focus,button.bg-indigo:hover,button.bg-indigo:focus{background-color:#3d027b !important}.bg-purple{background-color:#8965e0 !important}a.bg-purple:hover,a.bg-purple:focus,button.bg-purple:hover,button.bg-purple:focus{background-color:#683bd7 !important}.bg-pink{background-color:#f3a4b5 !important}a.bg-pink:hover,a.bg-pink:focus,button.bg-pink:hover,button.bg-pink:focus{background-color:#ed7790 !important}.bg-red{background-color:#f5365c !important}a.bg-red:hover,a.bg-red:focus,button.bg-red:hover,button.bg-red:focus{background-color:#ec0c38 !important}.bg-orange{background-color:#fb6340 !important}a.bg-orange:hover,a.bg-orange:focus,button.bg-orange:hover,button.bg-orange:focus{background-color:#fa3a0e !important}.bg-yellow{background-color:#ffd600 !important}a.bg-yellow:hover,a.bg-yellow:focus,button.bg-yellow:hover,button.bg-yellow:focus{background-color:#ccab00 !important}.bg-green{background-color:#2dce89 !important}a.bg-green:hover,a.bg-green:focus,button.bg-green:hover,button.bg-green:focus{background-color:#24a46d !important}.bg-teal{background-color:#11cdef !important}a.bg-teal:hover,a.bg-teal:focus,button.bg-teal:hover,button.bg-teal:focus{background-color:#0da5c0 !important}.bg-cyan{background-color:#2bffc6 !important}a.bg-cyan:hover,a.bg-cyan:focus,button.bg-cyan:hover,button.bg-cyan:focus{background-color:#00f7b5 !important}.bg-white{background-color:#fff !important}a.bg-white:hover,a.bg-white:focus,button.bg-white:hover,button.bg-white:focus{background-color:#e6e6e6 !important}.bg-gray{background-color:#8898aa !important}a.bg-gray:hover,a.bg-gray:focus,button.bg-gray:hover,button.bg-gray:focus{background-color:#6a7e95 !important}.bg-gray-dark{background-color:#32325d !important}a.bg-gray-dark:hover,a.bg-gray-dark:focus,button.bg-gray-dark:hover,button.bg-gray-dark:focus{background-color:#20203c !important}.bg-light{background-color:#ced4da !important}a.bg-light:hover,a.bg-light:focus,button.bg-light:hover,button.bg-light:focus{background-color:#b1bbc4 !important}.bg-lighter{background-color:#e9ecef !important}a.bg-lighter:hover,a.bg-lighter:focus,button.bg-lighter:hover,button.bg-lighter:focus{background-color:#cbd3da !important}.bg-gradient-primary{background:linear-gradient(87deg, #5e72e4 0, #825ee4 100%) !important}.bg-gradient-secondary{background:linear-gradient(87deg, #f7fafc 0, #f7f8fc 100%) !important}.bg-gradient-success{background:linear-gradient(87deg, #2dce89 0, #2dcecc 100%) !important}.bg-gradient-info{background:linear-gradient(87deg, #11cdef 0, #1171ef 100%) !important}.bg-gradient-warning{background:linear-gradient(87deg, #fb6340 0, #fbb140 100%) !important}.bg-gradient-danger{background:linear-gradient(87deg, #f5365c 0, #f56036 100%) !important}.bg-gradient-light{background:linear-gradient(87deg, #adb5bd 0, #adaebd 100%) !important}.bg-gradient-dark{background:linear-gradient(87deg, #212529 0, #212229 100%) !important}.bg-gradient-default{background:linear-gradient(87deg, #172b4d 0, #1a174d 100%) !important}.bg-gradient-white{background:linear-gradient(87deg, #fff 0, #fff 100%) !important}.bg-gradient-neutral{background:linear-gradient(87deg, #fff 0, #fff 100%) !important}.bg-gradient-darker{background:linear-gradient(87deg, #000 0, #000 100%) !important}.bg-gradient-blue{background:linear-gradient(87deg, #5e72e4 0, #825ee4 100%) !important}.bg-gradient-indigo{background:linear-gradient(87deg, #5603ad 0, #9d03ad 100%) !important}.bg-gradient-purple{background:linear-gradient(87deg, #8965e0 0, #bc65e0 100%) !important}.bg-gradient-pink{background:linear-gradient(87deg, #f3a4b5 0, #f3b4a4 100%) !important}.bg-gradient-red{background:linear-gradient(87deg, #f5365c 0, #f56036 100%) !important}.bg-gradient-orange{background:linear-gradient(87deg, #fb6340 0, #fbb140 100%) !important}.bg-gradient-yellow{background:linear-gradient(87deg, #ffd600 0, #beff00 100%) !important}.bg-gradient-green{background:linear-gradient(87deg, #2dce89 0, #2dcecc 100%) !important}.bg-gradient-teal{background:linear-gradient(87deg, #11cdef 0, #1171ef 100%) !important}.bg-gradient-cyan{background:linear-gradient(87deg, #2bffc6 0, #2be0ff 100%) !important}.bg-gradient-white{background:linear-gradient(87deg, #fff 0, #fff 100%) !important}.bg-gradient-gray{background:linear-gradient(87deg, #8898aa 0, #888aaa 100%) !important}.bg-gradient-gray-dark{background:linear-gradient(87deg, #32325d 0, #44325d 100%) !important}.bg-gradient-light{background:linear-gradient(87deg, #ced4da 0, #cecfda 100%) !important}.bg-gradient-lighter{background:linear-gradient(87deg, #e9ecef 0, #e9eaef 100%) !important}.bg-translucent-primary{background-color:rgba(63,87,223,0.6) !important}a.bg-translucent-primary:hover,a.bg-translucent-primary:focus,button.bg-translucent-primary:hover,button.bg-translucent-primary:focus{background-color:rgba(42,68,219,0.6) !important}.bg-translucent-secondary{background-color:rgba(221,234,242,0.6) !important}a.bg-translucent-secondary:hover,a.bg-translucent-secondary:focus,button.bg-translucent-secondary:hover,button.bg-translucent-secondary:focus{background-color:rgba(202,222,235,0.6) !important}.bg-translucent-success{background-color:rgba(39,177,118,0.6) !important}a.bg-translucent-success:hover,a.bg-translucent-success:focus,button.bg-translucent-success:hover,button.bg-translucent-success:focus{background-color:rgba(34,156,104,0.6) !important}.bg-translucent-info{background-color:rgba(14,177,206,0.6) !important}a.bg-translucent-info:hover,a.bg-translucent-info:focus,button.bg-translucent-info:hover,button.bg-translucent-info:focus{background-color:rgba(12,156,183,0.6) !important}.bg-translucent-warning{background-color:rgba(250,70,29,0.6) !important}a.bg-translucent-warning:hover,a.bg-translucent-warning:focus,button.bg-translucent-warning:hover,button.bg-translucent-warning:focus{background-color:rgba(249,51,5,0.6) !important}.bg-translucent-danger{background-color:rgba(243,20,64,0.6) !important}a.bg-translucent-danger:hover,a.bg-translucent-danger:focus,button.bg-translucent-danger:hover,button.bg-translucent-danger:focus{background-color:rgba(227,11,54,0.6) !important}.bg-translucent-light{background-color:rgba(153,163,173,0.6) !important}a.bg-translucent-light:hover,a.bg-translucent-light:focus,button.bg-translucent-light:hover,button.bg-translucent-light:focus{background-color:rgba(139,150,162,0.6) !important}.bg-translucent-dark{background-color:rgba(17,19,21,0.6) !important}a.bg-translucent-dark:hover,a.bg-translucent-dark:focus,button.bg-translucent-dark:hover,button.bg-translucent-dark:focus{background-color:rgba(6,6,7,0.6) !important}.bg-translucent-default{background-color:rgba(15,28,50,0.6) !important}a.bg-translucent-default:hover,a.bg-translucent-default:focus,button.bg-translucent-default:hover,button.bg-translucent-default:focus{background-color:rgba(9,17,30,0.6) !important}.bg-translucent-white{background-color:rgba(237,237,237,0.6) !important}a.bg-translucent-white:hover,a.bg-translucent-white:focus,button.bg-translucent-white:hover,button.bg-translucent-white:focus{background-color:rgba(224,224,224,0.6) !important}.bg-translucent-neutral{background-color:rgba(237,237,237,0.6) !important}a.bg-translucent-neutral:hover,a.bg-translucent-neutral:focus,button.bg-translucent-neutral:hover,button.bg-translucent-neutral:focus{background-color:rgba(224,224,224,0.6) !important}.bg-translucent-darker{background-color:rgba(0,0,0,0.6) !important}a.bg-translucent-darker:hover,a.bg-translucent-darker:focus,button.bg-translucent-darker:hover,button.bg-translucent-darker:focus{background-color:rgba(0,0,0,0.6) !important}.section-primary{background-color:#f8f9fe !important}a.section-primary:hover,a.section-primary:focus,button.section-primary:hover,button.section-primary:focus{background-color:#cbd3f8 !important}.section-secondary{background-color:#f7fafc !important}a.section-secondary:hover,a.section-secondary:focus,button.section-secondary:hover,button.section-secondary:focus{background-color:#d2e3ee !important}.section-light{background-color:#ced4da !important}a.section-light:hover,a.section-light:focus,button.section-light:hover,button.section-light:focus{background-color:#b1bbc4 !important}.section-dark{background-color:#212529 !important}a.section-dark:hover,a.section-dark:focus,button.section-dark:hover,button.section-dark:focus{background-color:#0a0c0d !important}.section-darker{background-color:#000 !important}a.section-darker:hover,a.section-darker:focus,button.section-darker:hover,button.section-darker:focus{background-color:#000 !important}.bg-gradient-primary{background:linear-gradient(87deg, #5e72e4 0, #825ee4 100%) !important}.bg-gradient-secondary{background:linear-gradient(87deg, #f7fafc 0, #f7f8fc 100%) !important}.bg-gradient-success{background:linear-gradient(87deg, #2dce89 0, #2dcecc 100%) !important}.bg-gradient-info{background:linear-gradient(87deg, #11cdef 0, #1171ef 100%) !important}.bg-gradient-warning{background:linear-gradient(87deg, #fb6340 0, #fbb140 100%) !important}.bg-gradient-danger{background:linear-gradient(87deg, #f5365c 0, #f56036 100%) !important}.bg-gradient-light{background:linear-gradient(87deg, #adb5bd 0, #adaebd 100%) !important}.bg-gradient-dark{background:linear-gradient(87deg, #212529 0, #212229 100%) !important}.bg-gradient-default{background:linear-gradient(87deg, #172b4d 0, #1a174d 100%) !important}.bg-gradient-white{background:linear-gradient(87deg, #fff 0, #fff 100%) !important}.bg-gradient-neutral{background:linear-gradient(87deg, #fff 0, #fff 100%) !important}.bg-gradient-darker{background:linear-gradient(87deg, #000 0, #000 100%) !important}.fill-primary{fill:#5e72e4}.stroke-primary{stroke:#5e72e4}.fill-secondary{fill:#f7fafc}.stroke-secondary{stroke:#f7fafc}.fill-success{fill:#2dce89}.stroke-success{stroke:#2dce89}.fill-info{fill:#11cdef}.stroke-info{stroke:#11cdef}.fill-warning{fill:#fb6340}.stroke-warning{stroke:#fb6340}.fill-danger{fill:#f5365c}.stroke-danger{stroke:#f5365c}.fill-light{fill:#adb5bd}.stroke-light{stroke:#adb5bd}.fill-dark{fill:#212529}.stroke-dark{stroke:#212529}.fill-default{fill:#172b4d}.stroke-default{stroke:#172b4d}.fill-white{fill:#fff}.stroke-white{stroke:#fff}.fill-neutral{fill:#fff}.stroke-neutral{stroke:#fff}.fill-darker{fill:#000}.stroke-darker{stroke:#000}.fill-opacity-8{fill-opacity:.8}.floating{animation:floating 3s ease infinite;will-change:transform}.floating:hover{animation-play-state:paused}.floating-lg{animation:floating-lg 3s ease infinite}.floating-sm{animation:floating-sm 3s ease infinite}@keyframes floating-lg{0%{transform:translateY(0px)}50%{transform:translateY(15px)}100%{transform:translateY(0px)}}@keyframes floating{0%{transform:translateY(0px)}50%{transform:translateY(10px)}100%{transform:translateY(0px)}}@keyframes floating-sm{0%{transform:translateY(0px)}50%{transform:translateY(5px)}100%{transform:translateY(0px)}}.floatfix:before,.floatfix:after{content:\'\';display:table}.floatfix:after{clear:both}.img-center{display:block;margin-left:auto;margin-right:auto}.opacity-1{opacity:.1 !important}.opacity-2{opacity:.2 !important}.opacity-3{opacity:.3 !important}.opacity-4{opacity:.4 !important}.opacity-5{opacity:.5 !important}.opacity-6{opacity:.6 !important}.opacity-7{opacity:.7 !important}.opacity-8{opacity:.8 !important}.opacity-8{opacity:.9 !important}.opacity-10{opacity:1 !important}.overflow-visible{overflow:visible !important}.overflow-hidden{overflow:hidden !important}.top-0{top:0}.right-0{right:0}.bottom-0{bottom:0}.left-0{left:0}.top-1{top:.25rem}.right-1{right:.25rem}.bottom-1{bottom:.25rem}.left-1{left:.25rem}.top-2{top:.5rem}.right-2{right:.5rem}.bottom-2{bottom:.5rem}.left-2{left:.5rem}.top-3{top:1rem}.right-3{right:1rem}.bottom-3{bottom:1rem}.left-3{left:1rem}.top-4{top:1.5rem}.right-4{right:1.5rem}.bottom-4{bottom:1.5rem}.left-4{left:1.5rem}.top-5{top:3rem}.right-5{right:3rem}.bottom-5{bottom:3rem}.left-5{left:3rem}.top--9{top:-10rem}.right--9{right:-10rem}.bottom--9{bottom:-10rem}.left--9{left:-10rem}.top--8{top:-8rem}.right--8{right:-8rem}.bottom--8{bottom:-8rem}.left--8{left:-8rem}.top--7{top:-6rem}.right--7{right:-6rem}.bottom--7{bottom:-6rem}.left--7{left:-6rem}.top--6{top:-4.5rem}.right--6{right:-4.5rem}.bottom--6{bottom:-4.5rem}.left--6{left:-4.5rem}.top--5{top:-3rem}.right--5{right:-3rem}.bottom--5{bottom:-3rem}.left--5{left:-3rem}.top--4{top:-1.5rem}.right--4{right:-1.5rem}.bottom--4{bottom:-1.5rem}.left--4{left:-1.5rem}.top--3{top:-1rem}.right--3{right:-1rem}.bottom--3{bottom:-1rem}.left--3{left:-1rem}.top--2{top:-.5rem}.right--2{right:-.5rem}.bottom--2{bottom:-.5rem}.left--2{left:-.5rem}.top--1{top:-.25rem}.right--1{right:-.25rem}.bottom--1{bottom:-.25rem}.left--1{left:-.25rem}.top-6{top:4.5rem}.right-6{right:4.5rem}.bottom-6{bottom:4.5rem}.left-6{left:4.5rem}.top-7{top:6rem}.right-7{right:6rem}.bottom-7{bottom:6rem}.left-7{left:6rem}.top-8{top:8rem}.right-8{right:8rem}.bottom-8{bottom:8rem}.left-8{left:8rem}.top-9{top:10rem}.right-9{right:10rem}.bottom-9{bottom:10rem}.left-9{left:10rem}.center{left:50%;transform:translateX(-50%)}.h-100vh{height:100vh !important}.row.row-grid>[class*="col-"]+[class*="col-"]{margin-top:3rem}@media (min-width: 992px){.row.row-grid>[class*="col-lg-"]+[class*="col-lg-"]{margin-top:0}}@media (min-width: 768px){.row.row-grid>[class*="col-md-"]+[class*="col-md-"]{margin-top:0}}@media (min-width: 576px){.row.row-grid>[class*="col-sm-"]+[class*="col-sm-"]{margin-top:0}}.row-grid+.row-grid{margin-top:3rem}@media (min-width: 992px){.mt--100{margin-top:-100px !important}.mr--100{margin-right:-100px !important}.mb--100{margin-bottom:-100px !important}.ml--100{margin-left:-100px !important}.mt--150{margin-top:-150px !important}.mb--150{margin-bottom:-150px !important}.mt--200{margin-top:-200px !important}.mb--200{margin-bottom:-200px !important}.mt--300{margin-top:-300px !important}.mb--300{margin-bottom:-300px !important}.pt-100{padding-top:100px !important}.pb-100{padding-bottom:100px !important}.pt-150{padding-top:150px !important}.pb-150{padding-bottom:150px !important}.pt-200{padding-top:200px !important}.pb-200{padding-bottom:200px !important}.pt-250{padding-top:250px !important}.pb-250{padding-bottom:250px !important}.pt-300{padding-top:300px !important}.pb-300{padding-bottom:300px !important}}[class*="shadow"]{transition:all 0.15s ease}.shadow-sm--hover:hover{box-shadow:0 0 0.5rem rgba(136,152,170,0.075) !important}.shadow--hover:hover{box-shadow:0 0 2rem 0 rgba(136,152,170,0.15) !important}.shadow-lg--hover:hover{box-shadow:0 0 3rem rgba(136,152,170,0.175) !important}.shadow-none--hover:hover{box-shadow:none !important}.font-weight-300{font-weight:300 !important}.font-weight-400{font-weight:400 !important}.font-weight-500{font-weight:500 !important}.font-weight-600{font-weight:600 !important}.font-weight-700{font-weight:700 !important}.font-weight-800{font-weight:800 !important}.font-weight-900{font-weight:900 !important}.text-underline{text-decoration:underline}.text-through{text-decoration:line-through}.text-xs{font-size:.75rem !important}.text-sm{font-size:.875rem !important}.text-lg{font-size:1.25rem !important}.text-xl{font-size:1.5rem !important}.lh-100{line-height:1}.lh-110{line-height:1.1}.lh-120{line-height:1.2}.lh-130{line-height:1.3}.lh-140{line-height:1.4}.lh-150{line-height:1.5}.lh-160{line-height:1.6}.lh-170{line-height:1.7}.lh-180{line-height:1.8}.ls-1{letter-spacing:.0625rem}.ls-15{letter-spacing:.09375rem}.ls-2{letter-spacing:0.125rem}.text-blue{color:#5e72e4 !important}a.text-blue:hover,a.text-blue:focus{color:#324cdd !important}.text-indigo{color:#5603ad !important}a.text-indigo:hover,a.text-indigo:focus{color:#3d027b !important}.text-purple{color:#8965e0 !important}a.text-purple:hover,a.text-purple:focus{color:#683bd7 !important}.text-pink{color:#f3a4b5 !important}a.text-pink:hover,a.text-pink:focus{color:#ed7790 !important}.text-red{color:#f5365c !important}a.text-red:hover,a.text-red:focus{color:#ec0c38 !important}.text-orange{color:#fb6340 !important}a.text-orange:hover,a.text-orange:focus{color:#fa3a0e !important}.text-yellow{color:#ffd600 !important}a.text-yellow:hover,a.text-yellow:focus{color:#ccab00 !important}.text-green{color:#2dce89 !important}a.text-green:hover,a.text-green:focus{color:#24a46d !important}.text-teal{color:#11cdef !important}a.text-teal:hover,a.text-teal:focus{color:#0da5c0 !important}.text-cyan{color:#2bffc6 !important}a.text-cyan:hover,a.text-cyan:focus{color:#00f7b5 !important}.text-white{color:#fff !important}a.text-white:hover,a.text-white:focus{color:#e6e6e6 !important}.text-gray{color:#8898aa !important}a.text-gray:hover,a.text-gray:focus{color:#6a7e95 !important}.text-gray-dark{color:#32325d !important}a.text-gray-dark:hover,a.text-gray-dark:focus{color:#20203c !important}.text-light{color:#ced4da !important}a.text-light:hover,a.text-light:focus{color:#b1bbc4 !important}.text-lighter{color:#e9ecef !important}a.text-lighter:hover,a.text-lighter:focus{color:#cbd3da !important}@media (min-width: 992px){.transform-perspective-right{transform:scale(1) perspective(1040px) rotateY(-11deg) rotateX(2deg) rotate(2deg)}.transform-perspective-left{transform:scale(1) perspective(2000px) rotateY(11deg) rotateX(2deg) rotate(-2deg)}}.alert{font-size:.875rem}.alert-heading{font-weight:600;font-size:.9375rem;margin-top:.15rem}.alert-icon{font-size:1.25rem;margin-right:1.25rem;display:inline-block;vertical-align:middle}.alert-icon i.ni{position:relative;top:1px}.alert-text{display:inline-block;vertical-align:middle}[class*="alert-"] .alert-link{color:#fff;border-bottom:1px dotted rgba(255,255,255,0.5)}.alert-dismissible .close{top:50%;right:1.5rem;padding:0;transform:translateY(-50%);color:rgba(255,255,255,0.6);opacity:1}.alert-dismissible .close:hover,.alert-dismissible .close:focus{color:rgba(255,255,255,0.9);opacity:1 !important}@media (max-width: 575.98px){.alert-dismissible .close{top:1rem;right:.5rem}}.alert-dismissible .close>span:not(.sr-only){font-size:1.5rem;background-color:transparent;color:rgba(255,255,255,0.6)}.alert-dismissible .close:hover>span:not(.sr-only),.alert-dismissible .close:focus>span:not(.sr-only){background-color:transparent;color:rgba(255,255,255,0.9)}.avatar{color:#fff;background-color:#adb5bd;display:inline-flex;align-items:center;justify-content:center;font-size:1rem;border-radius:50%;height:48px;width:48px}.avatar img{width:100%;border-radius:50%}.avatar+.avatar-content{display:inline-block;margin-left:.75rem}.avatar-lg{width:58px;height:58px;font-size:.875rem}.avatar-sm{width:36px;height:36px;font-size:.875rem}.avatar-group .avatar{position:relative;z-index:2;border:2px solid #fff}.avatar-group .avatar:hover{z-index:3}.avatar-group .avatar+.avatar{margin-left:-1rem}.badge{text-transform:uppercase}.badge a{color:#fff}.badge-md{padding:.65em 1em}.badge-lg{padding:.85em 1.375em}.badge-inline{margin-right:.625rem}.badge-inline+span{top:2px;position:relative}.badge-inline+span>a{text-decoration:underline}.btn .badge:not(:first-child){margin-left:.5rem}.btn .badge:not(:last-child){margin-right:.5rem}.badge-circle{text-align:center;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;width:2rem;height:2rem;font-size:.875rem}.badge-dot{padding-left:0;padding-right:0;background:transparent;font-weight:400;font-size:.875rem;text-transform:none}.badge-dot strong{color:#32325d}.badge-dot i{display:inline-block;vertical-align:middle;width:.375rem;height:.375rem;border-radius:50%;margin-right:.375rem}.badge-dot.badge-md i{width:.5rem;height:.5rem}.badge-dot.badge-lg i{width:.625rem;height:.625rem}.btn{position:relative;text-transform:none;transition:all 0.15s ease;letter-spacing:.025em;font-size:.875rem;will-change:transform}.btn:hover{box-shadow:0 7px 14px rgba(50,50,93,0.1),0 3px 6px rgba(0,0,0,0.08);transform:translateY(-1px)}.btn:not(:last-child){margin-right:.5rem}.btn i:not(:first-child),.btn svg:not(:first-child){margin-left:.5rem}.btn i:not(:last-child),.btn svg:not(:last-child){margin-right:.5rem}.btn-group .btn,.input-group .btn{margin-right:0;transform:translateY(0)}.btn-sm,.btn-group-sm>.btn{font-size:.75rem}.btn-lg,.btn-group-lg>.btn{font-size:.875rem}[class*="btn-outline-"]{border-width:1px}.btn-outline-secondary{color:#4385b1}.btn-inner--icon i:not(.fa){position:relative;top:2px}.btn-link{font-weight:600;box-shadow:none}.btn-link:hover{box-shadow:none;transform:none}.btn-neutral{color:#5e72e4}.btn-icon .btn-inner--icon img{width:20px}.btn-icon .btn-inner--text:not(:first-child){margin-left:0.75em}.btn-icon .btn-inner--text:not(:last-child){margin-right:0.75em}.btn-icon-only{width:2.375rem;height:2.375rem;padding:0}a.btn-icon-only{line-height:2.5}.btn-icon-only.btn-sm,.btn-group-sm>.btn-icon-only.btn{width:2rem;height:2rem}.btn-icon-clipboard{margin:0;padding:1.5rem;font-size:1rem;font-weight:400;line-height:1.25;color:#32325d;background-color:#f6f9fc;border-radius:.375rem;border:0;text-align:left;font-family:inherit;display:inline-block;vertical-align:middle;text-decoration:none;-moz-appearance:none;cursor:pointer;width:100%;margin:.5rem 0}.btn-icon-clipboard:hover{background-color:#fff;box-shadow:rgba(0,0,0,0.1) 0 0 0 1px,rgba(0,0,0,0.1) 0 4px 16px}.btn-icon-clipboard>div{align-items:center;display:flex}.btn-icon-clipboard i{box-sizing:content-box;color:#5e72e4;vertical-align:middle;font-size:1.5rem}.btn-icon-clipboard span{display:inline-block;font-size:0.875rem;line-height:1.5;margin-left:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:middle}.btn-facebook{color:#fff;background-color:#3b5999;border-color:#3b5999;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-facebook:hover{color:#fff;background-color:#3b5999;border-color:#3b5999}.btn-facebook:focus,.btn-facebook.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(59,89,153,0.5)}.btn-facebook.disabled,.btn-facebook:disabled{color:#fff;background-color:#3b5999;border-color:#3b5999}.btn-facebook:not(:disabled):not(.disabled):active,.btn-facebook:not(:disabled):not(.disabled).active,.show>.btn-facebook.dropdown-toggle{color:#fff;background-color:#2d4474;border-color:#3b5999}.btn-facebook:not(:disabled):not(.disabled):active:focus,.btn-facebook:not(:disabled):not(.disabled).active:focus,.show>.btn-facebook.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(59,89,153,0.5)}.btn-twitter{color:#fff;background-color:#1da1f2;border-color:#1da1f2;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-twitter:hover{color:#fff;background-color:#1da1f2;border-color:#1da1f2}.btn-twitter:focus,.btn-twitter.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(29,161,242,0.5)}.btn-twitter.disabled,.btn-twitter:disabled{color:#fff;background-color:#1da1f2;border-color:#1da1f2}.btn-twitter:not(:disabled):not(.disabled):active,.btn-twitter:not(:disabled):not(.disabled).active,.show>.btn-twitter.dropdown-toggle{color:#fff;background-color:#0c85d0;border-color:#1da1f2}.btn-twitter:not(:disabled):not(.disabled):active:focus,.btn-twitter:not(:disabled):not(.disabled).active:focus,.show>.btn-twitter.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(29,161,242,0.5)}.btn-google-plus{color:#fff;background-color:#dd4b39;border-color:#dd4b39;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-google-plus:hover{color:#fff;background-color:#dd4b39;border-color:#dd4b39}.btn-google-plus:focus,.btn-google-plus.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(221,75,57,0.5)}.btn-google-plus.disabled,.btn-google-plus:disabled{color:#fff;background-color:#dd4b39;border-color:#dd4b39}.btn-google-plus:not(:disabled):not(.disabled):active,.btn-google-plus:not(:disabled):not(.disabled).active,.show>.btn-google-plus.dropdown-toggle{color:#fff;background-color:#c23321;border-color:#dd4b39}.btn-google-plus:not(:disabled):not(.disabled):active:focus,.btn-google-plus:not(:disabled):not(.disabled).active:focus,.show>.btn-google-plus.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(221,75,57,0.5)}.btn-instagram{color:#fff;background-color:#e4405f;border-color:#e4405f;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-instagram:hover{color:#fff;background-color:#e4405f;border-color:#e4405f}.btn-instagram:focus,.btn-instagram.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(228,64,95,0.5)}.btn-instagram.disabled,.btn-instagram:disabled{color:#fff;background-color:#e4405f;border-color:#e4405f}.btn-instagram:not(:disabled):not(.disabled):active,.btn-instagram:not(:disabled):not(.disabled).active,.show>.btn-instagram.dropdown-toggle{color:#fff;background-color:#d31e40;border-color:#e4405f}.btn-instagram:not(:disabled):not(.disabled):active:focus,.btn-instagram:not(:disabled):not(.disabled).active:focus,.show>.btn-instagram.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(228,64,95,0.5)}.btn-pinterest{color:#fff;background-color:#bd081c;border-color:#bd081c;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-pinterest:hover{color:#fff;background-color:#bd081c;border-color:#bd081c}.btn-pinterest:focus,.btn-pinterest.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(189,8,28,0.5)}.btn-pinterest.disabled,.btn-pinterest:disabled{color:#fff;background-color:#bd081c;border-color:#bd081c}.btn-pinterest:not(:disabled):not(.disabled):active,.btn-pinterest:not(:disabled):not(.disabled).active,.show>.btn-pinterest.dropdown-toggle{color:#fff;background-color:#8c0615;border-color:#bd081c}.btn-pinterest:not(:disabled):not(.disabled):active:focus,.btn-pinterest:not(:disabled):not(.disabled).active:focus,.show>.btn-pinterest.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(189,8,28,0.5)}.btn-youtube{color:#fff;background-color:#cd201f;border-color:#cd201f;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-youtube:hover{color:#fff;background-color:#cd201f;border-color:#cd201f}.btn-youtube:focus,.btn-youtube.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(205,32,31,0.5)}.btn-youtube.disabled,.btn-youtube:disabled{color:#fff;background-color:#cd201f;border-color:#cd201f}.btn-youtube:not(:disabled):not(.disabled):active,.btn-youtube:not(:disabled):not(.disabled).active,.show>.btn-youtube.dropdown-toggle{color:#fff;background-color:#a11918;border-color:#cd201f}.btn-youtube:not(:disabled):not(.disabled):active:focus,.btn-youtube:not(:disabled):not(.disabled).active:focus,.show>.btn-youtube.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(205,32,31,0.5)}.btn-slack{color:#fff;background-color:#3aaf85;border-color:#3aaf85;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-slack:hover{color:#fff;background-color:#3aaf85;border-color:#3aaf85}.btn-slack:focus,.btn-slack.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(58,175,133,0.5)}.btn-slack.disabled,.btn-slack:disabled{color:#fff;background-color:#3aaf85;border-color:#3aaf85}.btn-slack:not(:disabled):not(.disabled):active,.btn-slack:not(:disabled):not(.disabled).active,.show>.btn-slack.dropdown-toggle{color:#fff;background-color:#2d8968;border-color:#3aaf85}.btn-slack:not(:disabled):not(.disabled):active:focus,.btn-slack:not(:disabled):not(.disabled).active:focus,.show>.btn-slack.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(58,175,133,0.5)}.btn-dribbble{color:#fff;background-color:#ea4c89;border-color:#ea4c89;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-dribbble:hover{color:#fff;background-color:#ea4c89;border-color:#ea4c89}.btn-dribbble:focus,.btn-dribbble.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(234,76,137,0.5)}.btn-dribbble.disabled,.btn-dribbble:disabled{color:#fff;background-color:#ea4c89;border-color:#ea4c89}.btn-dribbble:not(:disabled):not(.disabled):active,.btn-dribbble:not(:disabled):not(.disabled).active,.show>.btn-dribbble.dropdown-toggle{color:#fff;background-color:#e51e6b;border-color:#ea4c89}.btn-dribbble:not(:disabled):not(.disabled):active:focus,.btn-dribbble:not(:disabled):not(.disabled).active:focus,.show>.btn-dribbble.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(234,76,137,0.5)}.btn-github{color:#fff;background-color:#222;border-color:#222;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.btn-github:hover{color:#fff;background-color:#222;border-color:#222}.btn-github:focus,.btn-github.focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08),0 0 0 0 rgba(34,34,34,0.5)}.btn-github.disabled,.btn-github:disabled{color:#fff;background-color:#222;border-color:#222}.btn-github:not(:disabled):not(.disabled):active,.btn-github:not(:disabled):not(.disabled).active,.show>.btn-github.dropdown-toggle{color:#fff;background-color:#090909;border-color:#222}.btn-github:not(:disabled):not(.disabled):active:focus,.btn-github:not(:disabled):not(.disabled).active:focus,.show>.btn-github.dropdown-toggle:focus{box-shadow:none,0 0 0 0 rgba(34,34,34,0.5)}.card-translucent{background-color:rgba(18,91,152,0.08)}.card-profile-image{position:relative}.card-profile-image img{max-width:180px;border-radius:.375rem;transform:translate(-50%, -30%);position:absolute;left:50%;transition:all 0.15s ease}.card-profile-image img:hover{transform:translate(-50%, -33%)}.card-profile-stats{padding:1rem 0}.card-profile-stats>div{text-align:center;margin-right:1rem;padding:.875rem}.card-profile-stats>div:last-child{margin-right:0}.card-profile-stats>div .heading{font-size:1.1rem;font-weight:bold;display:block}.card-profile-stats>div .description{font-size:.875rem;color:#adb5bd}.card-profile-actions{padding:.875rem}.card-lift--hover:hover{transform:translateY(-20px);transition:all 0.15s ease}@media screen and (prefers-reduced-motion: reduce){.card-lift--hover:hover{transition:none}}.card-stats .card-body{padding:1rem 1.5rem}.card-stats .card-status-bullet{position:absolute;top:0;right:0;transform:translate(50%, -50%)}.chart{position:relative;height:350px}.chart-sm{height:230px}.chart-legend{display:flex;justify-content:center;margin-top:2.5rem;font-size:.875rem;text-align:center;color:#8898aa}.chart-legend-item{display:inline-flex;align-items:center}.chart-legend-item+.chart-legend-item{margin-left:1rem}.chart-legend-indicator{display:inline-block;width:0.5rem;height:0.5rem;margin-right:0.375rem;border-radius:50%}#chart-tooltip{z-index:0}#chart-tooltip .arrow{top:100%;left:50%;transform:translateX(-50%) translateX(-0.5rem)}.chart-info-overlay{position:absolute;top:0;left:5%;max-width:350px;padding:20px;z-index:1}.close{transition:all 0.15s ease}.close>span:not(.sr-only){background-color:rgba(0,0,0,0);color:rgba(0,0,0,0.6);line-height:17px;height:1.25rem;width:1.25rem;border-radius:50%;font-size:1.25rem;display:block;transition:all 0.15s ease}.close:hover,.close:focus{background-color:rgba(0,0,0,0);color:rgba(0,0,0,0.9);outline:none}.close:hover span:not(.sr-only),.close:focus span:not(.sr-only){background-color:rgba(0,0,0,0)}.main-content{position:relative}.main-content .navbar-top{position:absolute;left:0;top:0;width:100%;z-index:1;background-color:transparent;padding-left:0 !important;padding-right:0 !important}@media (min-width: 768px){.main-content .container-fluid{padding-left:39px !important;padding-right:39px !important}}.navbar-vertical.navbar-expand-xs.fixed-left+.main-content{margin-left:250px}.navbar-vertical.navbar-expand-xs.fixed-right+.main-content{margin-right:250px}@media (min-width: 576px){.navbar-vertical.navbar-expand-sm.fixed-left+.main-content{margin-left:250px}.navbar-vertical.navbar-expand-sm.fixed-right+.main-content{margin-right:250px}}@media (min-width: 768px){.navbar-vertical.navbar-expand-md.fixed-left+.main-content{margin-left:250px}.navbar-vertical.navbar-expand-md.fixed-right+.main-content{margin-right:250px}}@media (min-width: 992px){.navbar-vertical.navbar-expand-lg.fixed-left+.main-content{margin-left:250px}.navbar-vertical.navbar-expand-lg.fixed-right+.main-content{margin-right:250px}}@media (min-width: 1200px){.navbar-vertical.navbar-expand-xl.fixed-left+.main-content{margin-left:250px}.navbar-vertical.navbar-expand-xl.fixed-right+.main-content{margin-right:250px}}.custom-checkbox .custom-control-input ~ .custom-control-label{cursor:pointer;font-size:.875rem}.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before{border-color:#5e72e4}.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 8 8\'%3E%3Cpath fill=\'%23fff\' d=\'M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z\'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:disabled ~ .custom-control-label::before{border-color:#e9ecef}.custom-checkbox .custom-control-input:disabled:checked::before{border-color:rgba(94,114,228,0.5)}.custom-control-label::before{border:1px solid #cad1d7;transition:all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55)}.custom-control-label span{position:relative;top:2px}.custom-control-label{margin-bottom:0}.custom-control-alternative .custom-control-label::before{border:0;box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02)}.custom-control-alternative .custom-control-input:checked ~ .custom-control-label::before{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.custom-control-alternative .custom-control-input:active ~ .custom-control-label::before,.custom-control-alternative .custom-control-input:focus ~ .custom-control-label::before{box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02)}.custom-checkbox .custom-control-input ~ .custom-control-label{cursor:pointer;font-size:.875rem}.custom-checkbox .custom-control-input:checked ~ .custom-control-label::before{border-color:#5e72e4}.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 8 8\'%3E%3Cpath fill=\'%23fff\' d=\'M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z\'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:disabled ~ .custom-control-label::before{border-color:#e9ecef}.custom-checkbox .custom-control-input:disabled:checked::before{border-color:rgba(94,114,228,0.5)}.custom-radio .custom-control-input ~ .custom-control-label{cursor:pointer;font-size:.875rem}.custom-radio .custom-control-input:checked ~ .custom-control-label::before{border-color:#5e72e4}.custom-radio .custom-control-input:checked ~ .custom-control-label::after{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'-4 -4 8 8\'%3E%3Ccircle r=\'3\' fill=\'%23fff\'/%3E%3C/svg%3E")}.custom-radio .custom-control-input:disabled ~ .custom-control-label::before{border-color:#e9ecef}.custom-radio .custom-control-input:disabled:checked::before{border-color:rgba(94,114,228,0.5)}.custom-toggle{position:relative;display:inline-block;width:50px;height:1.5rem}.custom-toggle input{display:none}.custom-toggle input:checked+.custom-toggle-slider{border:1px solid #5e72e4}.custom-toggle input:checked+.custom-toggle-slider:before{background:#5e72e4;transform:translateX(1.625rem)}.custom-toggle input:disabled+.custom-toggle-slider{border:1px solid #e9ecef}.custom-toggle input:disabled:checked+.custom-toggle-slider{border:1px solid #e9ecef}.custom-toggle input:disabled:checked+.custom-toggle-slider:before{background-color:#8a98eb}.custom-toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;border:1px solid #cad1d7;border-radius:34px !important;background-color:transparent}.custom-toggle-slider:before{position:absolute;content:"";height:18px;width:18px;left:2px;bottom:2px;border-radius:50% !important;background-color:#e9ecef;transition:all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55)}.dropdown,.dropup,.dropright,.dropleft{display:inline-block}.dropdown-menu{min-width:12rem}.dropdown-menu .dropdown-item{padding:.5rem 1rem;font-size:.875rem}.dropdown-menu .dropdown-item>i,.dropdown-menu .dropdown-item>svg{margin-right:1rem;font-size:1rem;vertical-align:-17%}.dropdown-header{padding-left:1rem;padding-right:1rem;color:#f6f9fc;font-size:.625rem;text-transform:uppercase;font-weight:700}.dropdown-menu a.media>div:first-child{line-height:1}.dropdown-menu a.media p{color:#8898aa}.dropdown-menu a.media:hover .heading,.dropdown-menu a.media:hover p{color:#172b4d !important}.dropdown-menu-sm{min-width:100px;border:.4375rem}.dropdown-menu-lg{min-width:260px;border-radius:.4375rem}.dropdown-menu-xl{min-width:450px;border-radius:.4375rem}.footer{background:#f7fafc;padding:2.5rem 0}.footer .col-footer .heading{color:#8898aa;letter-spacing:0;font-size:.875rem;text-transform:uppercase;font-weight:600;margin-bottom:1rem}.footer .nav .nav-item .nav-link,.footer .footer-link{color:#8898aa !important}.footer .nav .nav-item .nav-link:hover,.footer .footer-link:hover{color:#525f7f !important}.footer .list-unstyled li a{display:inline-block;padding:.125rem 0;color:#8898aa;font-size:.85rem}.footer .list-unstyled li a:hover{color:#525f7f}.footer .copyright{font-size:.875rem}.footer-dark .col-footer .heading{color:#fff}.nav-footer .nav-link{font-size:.875rem}.nav-footer .nav-item:last-child .nav-link{padding-right:0}.footer.has-cards{overflow:hidden;padding-top:500px;margin-top:-420px;position:relative;background:transparent;pointer-events:none}.footer.has-cards:before{content:"";position:absolute;left:0;right:0;top:600px;height:2000px;background:#f7fafc;transform:skew(0, -8deg)}.footer.has-cards .container{pointer-events:auto;position:relative}.form-control-label{color:#525f7f;font-size:.875rem;font-weight:600}.form-control{font-size:.875rem}.form-control:focus::placeholder{color:#adb5bd}textarea[resize="none"]{resize:none !important}textarea[resize="both"]{resize:both !important}textarea[resize="vertical"]{resize:vertical !important}textarea[resize="horizontal"]{resize:horizontal !important}.form-control-muted{background-color:#F7FAFE;border-color:#F7FAFE;box-shadow:none}.form-control-muted:focus{background-color:#fcfdff}.form-control-alternative{box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02);border:0;transition:box-shadow .15s ease}.form-control-alternative:focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08)}.form-control-lg{font-size:1rem}.has-success,.has-danger{position:relative}.has-success:after,.has-danger:after{width:19px;height:19px;line-height:19px;text-align:center;font-family:\'NucleoIcons\';display:inline-block;position:absolute;right:15px;top:2px;transform:translateY(50%);border-radius:50%;font-size:9px;opacity:1}.has-success:after{content:"\\ea26";color:daken(#2dce89, 18%);background-color:#69deac}.has-success .form-control{background-color:#fff}.has-success .form-control:focus{border-color:rgba(50,151,211,0.25)}.has-success .form-control::placeholder{color:#2dce89}.has-danger:after{content:"\\ea53";color:daken(#fb6340, 18%);background-color:#fda08b}.has-danger .form-control{background-color:#fff}.has-danger .form-control:focus{border-color:rgba(50,151,211,0.25)}.has-danger .form-control::placeholder{color:#fb6340}.input-group{box-shadow:none;border-radius:.375rem;transition:all 0.15s ease}.input-group .form-control{box-shadow:none}.input-group .form-control:not(:first-child){border-left:0;padding-left:0}.input-group .form-control:not(:last-child){border-right:0;padding-right:0}.input-group .form-control:focus{box-shadow:none}.input-group-text{transition:all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55)}.input-group-alternative{box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02);border:0;transition:box-shadow .15s ease}.input-group-alternative .form-control,.input-group-alternative .input-group-text{border:0;box-shadow:none}.focused .input-group-alternative{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08) !important}.focused .input-group{box-shadow:none}.focused .input-group-text{color:#8898aa;background-color:#fff;border-color:rgba(50,151,211,0.25)}.focused .form-control{border-color:rgba(50,151,211,0.25)}.header{position:relative}.icon{width:3rem;height:3rem}.icon i,.icon svg{font-size:2.25rem}.icon+.icon-text{padding-left:1rem;width:calc(100% - 3rem - 1)}.icon-xl{width:5rem;height:5rem}.icon-xl i,.icon-xl svg{font-size:4.25rem}.icon-xl+.icon-text{width:calc(100% - 5rem - 1)}.icon-lg{width:4rem;height:4rem}.icon-lg i,.icon-lg svg{font-size:3.25rem}.icon-lg+.icon-text{width:calc(100% - 4rem - 1)}.icon-sm{width:2rem;height:2rem}.icon-sm i,.icon-sm svg{font-size:1.25rem}.icon-sm+.icon-text{width:calc(100% - 2rem - 1)}.icon-shape{padding:12px;text-align:center;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}.icon-shape i,.icon-shape svg{font-size:1.25rem}.icon-shape.icon-lg i,.icon-shape.icon-lg svg{font-size:1.625rem}.icon-shape.icon-sm i,.icon-shape.icon-sm svg{font-size:.875rem}.icon-shape svg{width:30px;height:30px}.icon-shape-primary{color:#2643e9;background-color:rgba(138,152,235,0.5)}.icon-shape-secondary{color:#cfe3f1;background-color:rgba(255,255,255,0.5)}.icon-shape-success{color:#1aae6f;background-color:rgba(84,218,161,0.5)}.icon-shape-info{color:#03acca;background-color:rgba(65,215,242,0.5)}.icon-shape-warning{color:#ff3709;background-color:rgba(252,140,114,0.5)}.icon-shape-danger{color:#f80031;background-color:rgba(247,103,131,0.5)}.icon-shape-light{color:#879cb0;background-color:rgba(201,207,212,0.5)}.icon-shape-dark{color:#090c0e;background-color:rgba(56,63,69,0.5)}.icon-shape-default{color:#091428;background-color:rgba(35,65,116,0.5)}.icon-shape-white{color:#e8e3e3;background-color:rgba(255,255,255,0.5)}.icon-shape-neutral{color:#e8e3e3;background-color:rgba(255,255,255,0.5)}.icon-shape-darker{color:#000;background-color:rgba(26,26,26,0.5)}.input-group{box-shadow:none;border-radius:.375rem;transition:all 0.15s ease}.input-group .form-control{box-shadow:none}.input-group .form-control:not(:first-child){border-left:0;padding-left:0}.input-group .form-control:not(:last-child){border-right:0;padding-right:0}.input-group .form-control:focus{box-shadow:none}.input-group-text{transition:all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55)}.input-group-alternative{box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02);border:0;transition:box-shadow .15s ease}.input-group-alternative .form-control,.input-group-alternative .input-group-text{border:0;box-shadow:none}.focused .input-group-alternative{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08) !important}.focused .input-group{box-shadow:none}.focused .input-group-text{color:#8898aa;background-color:#fff;border-color:rgba(50,151,211,0.25)}.focused .form-control{border-color:rgba(50,151,211,0.25)}.list-group-space .list-group-item{margin-bottom:1.5rem;border-radius:.375rem}.list-group-img{width:3rem;height:3rem;border-radius:50%;vertical-align:top;margin:-.1rem 1.2rem 0 -.2rem}.list-group-content{flex:1;min-width:0}.list-group-content>p{color:#adb5bd;line-height:1.5;margin:.2rem 0 0}.list-group-heading{font-size:1rem;color:#32325d}.list-group-heading>small{float:right;color:#adb5bd;font-weight:500}.map-canvas{position:relative;width:100%;height:500px;border-radius:.375rem}.mask{position:absolute;top:0;left:0;width:100%;height:100%;transition:all 0.15s ease}@media screen and (prefers-reduced-motion: reduce){.mask{transition:none}}.modal-fluid .modal-dialog{margin-top:0;margin-bottom:0}.modal-fluid .modal-content{border-radius:0}.modal-primary .modal-title{color:#fff}.modal-primary .modal-header,.modal-primary .modal-footer{border-color:rgba(255,255,255,0.075)}.modal-primary .modal-content{background-color:#5e72e4;color:#fff}.modal-primary .modal-content .heading{color:#fff}.modal-primary .close>span:not(.sr-only){color:#fff}.modal-secondary .modal-title{color:#212529}.modal-secondary .modal-header,.modal-secondary .modal-footer{border-color:rgba(33,37,41,0.075)}.modal-secondary .modal-content{background-color:#f7fafc;color:#212529}.modal-secondary .modal-content .heading{color:#212529}.modal-secondary .close>span:not(.sr-only){color:#fff}.modal-success .modal-title{color:#fff}.modal-success .modal-header,.modal-success .modal-footer{border-color:rgba(255,255,255,0.075)}.modal-success .modal-content{background-color:#2dce89;color:#fff}.modal-success .modal-content .heading{color:#fff}.modal-success .close>span:not(.sr-only){color:#fff}.modal-info .modal-title{color:#fff}.modal-info .modal-header,.modal-info .modal-footer{border-color:rgba(255,255,255,0.075)}.modal-info .modal-content{background-color:#11cdef;color:#fff}.modal-info .modal-content .heading{color:#fff}.modal-info .close>span:not(.sr-only){color:#fff}.modal-warning .modal-title{color:#fff}.modal-warning .modal-header,.modal-warning .modal-footer{border-color:rgba(255,255,255,0.075)}.modal-warning .modal-content{background-color:#fb6340;color:#fff}.modal-warning .modal-content .heading{color:#fff}.modal-warning .close>span:not(.sr-only){color:#fff}.modal-danger .modal-title{color:#fff}.modal-danger .modal-header,.modal-danger .modal-footer{border-color:rgba(255,255,255,0.075)}.modal-danger .modal-content{background-color:#f5365c;color:#fff}.modal-danger .modal-content .heading{color:#fff}.modal-danger .close>span:not(.sr-only){color:#fff}.modal-light .modal-title{color:#fff}.modal-light .modal-header,.modal-light .modal-footer{border-color:rgba(255,255,255,0.075)}.modal-light .modal-content{background-color:#adb5bd;color:#fff}.modal-light .modal-content .heading{color:#fff}.modal-light .close>span:not(.sr-only){color:#fff}.modal-dark .modal-title{color:#fff}.modal-dark .modal-header,.modal-dark .modal-footer{border-color:rgba(255,255,255,0.075)}.modal-dark .modal-content{background-color:#212529;color:#fff}.modal-dark .modal-content .heading{color:#fff}.modal-dark .close>span:not(.sr-only){color:#fff}.modal-default .modal-title{color:#fff}.modal-default .modal-header,.modal-default .modal-footer{border-color:rgba(255,255,255,0.075)}.modal-default .modal-content{background-color:#172b4d;color:#fff}.modal-default .modal-content .heading{color:#fff}.modal-default .close>span:not(.sr-only){color:#fff}.modal-white .modal-title{color:#212529}.modal-white .modal-header,.modal-white .modal-footer{border-color:rgba(33,37,41,0.075)}.modal-white .modal-content{background-color:#fff;color:#212529}.modal-white .modal-content .heading{color:#212529}.modal-white .close>span:not(.sr-only){color:#fff}.modal-neutral .modal-title{color:#212529}.modal-neutral .modal-header,.modal-neutral .modal-footer{border-color:rgba(33,37,41,0.075)}.modal-neutral .modal-content{background-color:#fff;color:#212529}.modal-neutral .modal-content .heading{color:#212529}.modal-neutral .close>span:not(.sr-only){color:#fff}.modal-darker .modal-title{color:#fff}.modal-darker .modal-header,.modal-darker .modal-footer{border-color:rgba(255,255,255,0.075)}.modal-darker .modal-content{background-color:#000;color:#fff}.modal-darker .modal-content .heading{color:#fff}.modal-darker .close>span:not(.sr-only){color:#fff}.nav-wrapper{padding:1rem 0;border-top-left-radius:.375rem;border-top-right-radius:.375rem}.nav-wrapper+.card{border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:.375rem;border-bottom-left-radius:.375rem}.nav-link{color:#525f7f}.nav-link:hover{color:#5e72e4}.nav-link i.ni{position:relative;top:2px}@media (min-width: 992px){.nav-item.active-pro{position:absolute;width:100%;bottom:10px;background:#f6f9fc}}.nav-pills .nav-item:not(:last-child){padding-right:1rem}.nav-pills .nav-link{padding:.75rem 1rem;color:#5e72e4;font-weight:500;font-size:.875rem;box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08);background-color:#fff;transition:all 0.15s ease}.nav-pills .nav-link:hover{color:#485fe0}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#5e72e4}@media (max-width: 575.98px){.nav-pills .nav-item{margin-bottom:1rem}}@media (max-width: 767.98px){.nav-pills:not(.nav-pills-circle) .nav-item{padding-right:0}}.nav-pills-circle .nav-link{text-align:center;height:60px;width:60px;padding:0;line-height:60px;border-radius:50%}.nav-pills-circle .nav-link-icon i,.nav-pills-circle .nav-link-icon svg{font-size:1rem}.navbar-horizontal .navbar-nav .nav-link{font-size:.9rem;font-weight:400;text-transform:normal;letter-spacing:0;transition:all 0.15s linear}@media screen and (prefers-reduced-motion: reduce){.navbar-horizontal .navbar-nav .nav-link{transition:none}}.navbar-horizontal .navbar-nav .nav-link .nav-link-inner--text{margin-left:.25rem}.navbar-horizontal .navbar-brand{font-size:.875rem;font-weight:600;text-transform:uppercase;font-size:.875rem;letter-spacing:.05px}.navbar-horizontal .navbar-brand img{height:30px}.navbar-horizontal .navbar-dark .navbar-brand{color:#fff}.navbar-horizontal .navbar-light .navbar-brand{color:#32325d}.navbar-horizontal .navbar-nav .nav-item .media:not(:last-child){margin-bottom:1.5rem}@media (min-width: 992px){.navbar-horizontal .navbar-nav .nav-item{margin-right:.5rem}.navbar-horizontal .navbar-nav .nav-item [data-toggle="dropdown"]::after{transition:all 0.15s ease}.navbar-horizontal .navbar-nav .nav-item.show [data-toggle="dropdown"]::after{transform:rotate(180deg)}.navbar-horizontal .navbar-nav .nav-link{padding-top:1rem;padding-bottom:1rem;border-radius:.375rem}.navbar-horizontal .navbar-nav .nav-link i{margin-right:.625rem}.navbar-horizontal .navbar-nav .nav-link-icon{padding-left:.5rem !important;padding-right:.5rem !important;font-size:1rem;border-radius:.375rem}.navbar-horizontal .navbar-nav .nav-link-icon i{margin-right:0}}.navbar-horizontal .navbar-transparent{position:absolute;top:0;width:100%;z-index:100;background-color:transparent;border:0;box-shadow:none}.navbar-horizontal .navbar-transparent .navbar-brand{color:#fff}.navbar-horizontal .navbar-transparent .navbar-toggler{color:#fff}.navbar-horizontal .navbar-transparent .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf8,%3Csvg viewBox=\'0 0 30 30\' xmlns=\'http://www.w3.org/2000/svg\'%3E%3Cpath stroke=\'rgba(255,255,255,0.95)\' stroke-width=\'2\' stroke-linecap=\'round\' stroke-miterlimit=\'10\' d=\'M4 7h22M4 15h22M4 23h22\'/%3E%3C/svg%3E")}@media (min-width: 768px){.navbar-horizontal .navbar-transparent .navbar-nav .nav-link{color:rgba(255,255,255,0.95)}.navbar-horizontal .navbar-transparent .navbar-nav .nav-link:hover,.navbar-horizontal .navbar-transparent .navbar-nav .nav-link:focus{color:rgba(255,255,255,0.65)}.navbar-horizontal .navbar-transparent .navbar-nav .nav-link.disabled{color:rgba(255,255,255,0.25)}.navbar-horizontal .navbar-transparent .navbar-nav .show>.nav-link,.navbar-horizontal .navbar-transparent .navbar-nav .active>.nav-link,.navbar-horizontal .navbar-transparent .navbar-nav .nav-link.show,.navbar-horizontal .navbar-transparent .navbar-nav .nav-link.active{color:rgba(255,255,255,0.65)}.navbar-horizontal .navbar-transparent .navbar-brand{color:rgba(255,255,255,0.95)}.navbar-horizontal .navbar-transparent .navbar-brand:hover,.navbar-horizontal .navbar-transparent .navbar-brand:focus{color:rgba(255,255,255,0.95)}}.navbar-vertical{box-shadow:0 0 2rem 0 rgba(136,152,170,0.15) !important}.navbar-vertical .navbar{border-width:0 0 1px 0;border-style:solid}.navbar-vertical .navbar-light{background-color:rgba(0,0,0,0);border-color:#f6f9fc}.navbar-vertical .navbar-brand{margin-right:0}.navbar-vertical .navbar-brand-img,.navbar-vertical .navbar-brand>img{max-width:100%;max-height:2rem}@media (min-width: 768px){.navbar-vertical .navbar-collapse{margin-left:-1rem;margin-right:-1rem;padding-left:1rem;padding-right:1rem}.navbar-vertical .navbar-collapse:before{content:\'\';display:block;margin:1rem -1rem}}.navbar-vertical .navbar-nav{margin-left:-1rem;margin-right:-1rem}.navbar-vertical .navbar-nav .nav-link{padding-left:1rem;padding-right:1rem;font-size:.9rem}.navbar-vertical .navbar-nav .nav-link.active{position:relative}.navbar-vertical .navbar-nav .nav-link.active:before{content:\'\';position:absolute;left:0;top:.25rem;bottom:.25rem;border-left:2px solid #5e72e4}.navbar-vertical .navbar-nav .nav-link>i{min-width:2.25rem;font-size:.9375rem;line-height:1.5rem}.navbar-vertical .navbar-nav .nav-link .dropdown-menu{border:none}.navbar-vertical .navbar-nav .nav-link .dropdown-menu .dropdown-menu{margin-left:.75rem}.navbar-vertical .navbar-nav .nav-link{display:flex;align-items:center}.navbar-vertical .navbar-nav .nav-link[data-toggle="collapse"]:after{display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;-webkit-font-smoothing:antialiased;font-family:\'Font Awesome 5 Free\';font-weight:700;content:"\\f105";margin-left:auto;color:#8898aa;transition:all 0.15s ease}.navbar-vertical .navbar-nav .nav-link[data-toggle="collapse"][aria-expanded="true"]:after{transform:rotate(90deg)}.navbar-vertical .navbar-nav .nav .nav-link{padding-left:3.25rem}.navbar-vertical .navbar-nav .nav .nav .nav-link{padding-left:3.75rem}.navbar-vertical .navbar-heading{padding-top:.25rem;padding-bottom:.25rem;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}.navbar-vertical.navbar-expand-xs{display:block;position:fixed;top:0;bottom:0;width:100%;max-width:250px;padding-left:1.5rem;padding-right:1.5rem;overflow-y:auto}.navbar-vertical.navbar-expand-xs>[class*="container"]{flex-direction:column;align-items:stretch;min-height:100%;padding-left:0;padding-right:0}@media all and (-ms-high-contrast: none), (-ms-high-contrast: active){.navbar-vertical.navbar-expand-xs>[class*="container"]{min-height:none;height:100%}}.navbar-vertical.navbar-expand-xs.fixed-left{left:0;border-width:0 1px 0 0}.navbar-vertical.navbar-expand-xs.fixed-right{right:0;border-width:0 0 0 1px}.navbar-vertical.navbar-expand-xs .navbar-collapse{flex:1;display:flex;flex-direction:column;align-items:stretch;margin-left:-1.5rem;margin-right:-1.5rem;padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-xs .navbar-collapse>*{min-width:100%}.navbar-vertical.navbar-expand-xs .navbar-nav{flex-direction:column;margin-left:-1.5rem;margin-right:-1.5rem}.navbar-vertical.navbar-expand-xs .navbar-nav .nav-link{padding:.65rem 1.5rem}.navbar-vertical.navbar-expand-xs .navbar-nav .nav-link.active:before{top:.25rem;bottom:.25rem;left:0;right:auto;border-left:2px solid #5e72e4;border-bottom:0}.navbar-vertical.navbar-expand-xs .navbar-nav .nav .nav-link{padding-left:3.75rem}.navbar-vertical.navbar-expand-xs .navbar-nav .nav .nav .nav-link{padding-left:4.5rem}.navbar-vertical.navbar-expand-xs .navbar-brand{display:block;text-align:center;padding-top:1rem;padding-bottom:1rem}.navbar-vertical.navbar-expand-xs .navbar-brand-img{max-height:2.5rem}.navbar-vertical.navbar-expand-xs .navbar-user{margin-left:-1.5rem;margin-right:-1.5rem;padding-top:1rem;padding-bottom:0rem;padding-left:1.5rem;padding-right:1.5rem;border-top:1px solid #e9ecef}.navbar-vertical.navbar-expand-xs .navbar-user .dropup .dropdown-menu{left:50%;transform:translateX(-50%)}@media (min-width: 576px){.navbar-vertical.navbar-expand-sm{display:block;position:fixed;top:0;bottom:0;width:100%;max-width:250px;padding-left:1.5rem;padding-right:1.5rem;overflow-y:auto}.navbar-vertical.navbar-expand-sm>[class*="container"]{flex-direction:column;align-items:stretch;min-height:100%;padding-left:0;padding-right:0}}@media all and (min-width: 576px) and (-ms-high-contrast: none), (min-width: 576px) and (-ms-high-contrast: active){.navbar-vertical.navbar-expand-sm>[class*="container"]{min-height:none;height:100%}}@media (min-width: 576px){.navbar-vertical.navbar-expand-sm.fixed-left{left:0;border-width:0 1px 0 0}.navbar-vertical.navbar-expand-sm.fixed-right{right:0;border-width:0 0 0 1px}.navbar-vertical.navbar-expand-sm .navbar-collapse{flex:1;display:flex;flex-direction:column;align-items:stretch;margin-left:-1.5rem;margin-right:-1.5rem;padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-sm .navbar-collapse>*{min-width:100%}.navbar-vertical.navbar-expand-sm .navbar-nav{flex-direction:column;margin-left:-1.5rem;margin-right:-1.5rem}.navbar-vertical.navbar-expand-sm .navbar-nav .nav-link{padding:.65rem 1.5rem}.navbar-vertical.navbar-expand-sm .navbar-nav .nav-link.active:before{top:.25rem;bottom:.25rem;left:0;right:auto;border-left:2px solid #5e72e4;border-bottom:0}.navbar-vertical.navbar-expand-sm .navbar-nav .nav .nav-link{padding-left:3.75rem}.navbar-vertical.navbar-expand-sm .navbar-nav .nav .nav .nav-link{padding-left:4.5rem}.navbar-vertical.navbar-expand-sm .navbar-brand{display:block;text-align:center;padding-top:1rem;padding-bottom:1rem}.navbar-vertical.navbar-expand-sm .navbar-brand-img{max-height:2.5rem}.navbar-vertical.navbar-expand-sm .navbar-user{margin-left:-1.5rem;margin-right:-1.5rem;padding-top:1rem;padding-bottom:0rem;padding-left:1.5rem;padding-right:1.5rem;border-top:1px solid #e9ecef}.navbar-vertical.navbar-expand-sm .navbar-user .dropup .dropdown-menu{left:50%;transform:translateX(-50%)}}@media (min-width: 768px){.navbar-vertical.navbar-expand-md{display:block;position:fixed;top:0;bottom:0;width:100%;max-width:250px;padding-left:1.5rem;padding-right:1.5rem;overflow-y:auto}.navbar-vertical.navbar-expand-md>[class*="container"]{flex-direction:column;align-items:stretch;min-height:100%;padding-left:0;padding-right:0}}@media all and (min-width: 768px) and (-ms-high-contrast: none), (min-width: 768px) and (-ms-high-contrast: active){.navbar-vertical.navbar-expand-md>[class*="container"]{min-height:none;height:100%}}@media (min-width: 768px){.navbar-vertical.navbar-expand-md.fixed-left{left:0;border-width:0 1px 0 0}.navbar-vertical.navbar-expand-md.fixed-right{right:0;border-width:0 0 0 1px}.navbar-vertical.navbar-expand-md .navbar-collapse{flex:1;display:flex;flex-direction:column;align-items:stretch;margin-left:-1.5rem;margin-right:-1.5rem;padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-md .navbar-collapse>*{min-width:100%}.navbar-vertical.navbar-expand-md .navbar-nav{flex-direction:column;margin-left:-1.5rem;margin-right:-1.5rem}.navbar-vertical.navbar-expand-md .navbar-nav .nav-link{padding:.65rem 1.5rem}.navbar-vertical.navbar-expand-md .navbar-nav .nav-link.active:before{top:.25rem;bottom:.25rem;left:0;right:auto;border-left:2px solid #5e72e4;border-bottom:0}.navbar-vertical.navbar-expand-md .navbar-nav .nav .nav-link{padding-left:3.75rem}.navbar-vertical.navbar-expand-md .navbar-nav .nav .nav .nav-link{padding-left:4.5rem}.navbar-vertical.navbar-expand-md .navbar-brand{display:block;text-align:center;padding-top:1rem;padding-bottom:1rem}.navbar-vertical.navbar-expand-md .navbar-brand-img{max-height:2.5rem}.navbar-vertical.navbar-expand-md .navbar-user{margin-left:-1.5rem;margin-right:-1.5rem;padding-top:1rem;padding-bottom:0rem;padding-left:1.5rem;padding-right:1.5rem;border-top:1px solid #e9ecef}.navbar-vertical.navbar-expand-md .navbar-user .dropup .dropdown-menu{left:50%;transform:translateX(-50%)}}@media (min-width: 992px){.navbar-vertical.navbar-expand-lg{display:block;position:fixed;top:0;bottom:0;width:100%;max-width:250px;padding-left:1.5rem;padding-right:1.5rem;overflow-y:auto}.navbar-vertical.navbar-expand-lg>[class*="container"]{flex-direction:column;align-items:stretch;min-height:100%;padding-left:0;padding-right:0}}@media all and (min-width: 992px) and (-ms-high-contrast: none), (min-width: 992px) and (-ms-high-contrast: active){.navbar-vertical.navbar-expand-lg>[class*="container"]{min-height:none;height:100%}}@media (min-width: 992px){.navbar-vertical.navbar-expand-lg.fixed-left{left:0;border-width:0 1px 0 0}.navbar-vertical.navbar-expand-lg.fixed-right{right:0;border-width:0 0 0 1px}.navbar-vertical.navbar-expand-lg .navbar-collapse{flex:1;display:flex;flex-direction:column;align-items:stretch;margin-left:-1.5rem;margin-right:-1.5rem;padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-lg .navbar-collapse>*{min-width:100%}.navbar-vertical.navbar-expand-lg .navbar-nav{flex-direction:column;margin-left:-1.5rem;margin-right:-1.5rem}.navbar-vertical.navbar-expand-lg .navbar-nav .nav-link{padding:.65rem 1.5rem}.navbar-vertical.navbar-expand-lg .navbar-nav .nav-link.active:before{top:.25rem;bottom:.25rem;left:0;right:auto;border-left:2px solid #5e72e4;border-bottom:0}.navbar-vertical.navbar-expand-lg .navbar-nav .nav .nav-link{padding-left:3.75rem}.navbar-vertical.navbar-expand-lg .navbar-nav .nav .nav .nav-link{padding-left:4.5rem}.navbar-vertical.navbar-expand-lg .navbar-brand{display:block;text-align:center;padding-top:1rem;padding-bottom:1rem}.navbar-vertical.navbar-expand-lg .navbar-brand-img{max-height:2.5rem}.navbar-vertical.navbar-expand-lg .navbar-user{margin-left:-1.5rem;margin-right:-1.5rem;padding-top:1rem;padding-bottom:0rem;padding-left:1.5rem;padding-right:1.5rem;border-top:1px solid #e9ecef}.navbar-vertical.navbar-expand-lg .navbar-user .dropup .dropdown-menu{left:50%;transform:translateX(-50%)}}@media (min-width: 1200px){.navbar-vertical.navbar-expand-xl{display:block;position:fixed;top:0;bottom:0;width:100%;max-width:250px;padding-left:1.5rem;padding-right:1.5rem;overflow-y:auto}.navbar-vertical.navbar-expand-xl>[class*="container"]{flex-direction:column;align-items:stretch;min-height:100%;padding-left:0;padding-right:0}}@media all and (min-width: 1200px) and (-ms-high-contrast: none), (min-width: 1200px) and (-ms-high-contrast: active){.navbar-vertical.navbar-expand-xl>[class*="container"]{min-height:none;height:100%}}@media (min-width: 1200px){.navbar-vertical.navbar-expand-xl.fixed-left{left:0;border-width:0 1px 0 0}.navbar-vertical.navbar-expand-xl.fixed-right{right:0;border-width:0 0 0 1px}.navbar-vertical.navbar-expand-xl .navbar-collapse{flex:1;display:flex;flex-direction:column;align-items:stretch;margin-left:-1.5rem;margin-right:-1.5rem;padding-left:1.5rem;padding-right:1.5rem}.navbar-vertical.navbar-expand-xl .navbar-collapse>*{min-width:100%}.navbar-vertical.navbar-expand-xl .navbar-nav{flex-direction:column;margin-left:-1.5rem;margin-right:-1.5rem}.navbar-vertical.navbar-expand-xl .navbar-nav .nav-link{padding:.65rem 1.5rem}.navbar-vertical.navbar-expand-xl .navbar-nav .nav-link.active:before{top:.25rem;bottom:.25rem;left:0;right:auto;border-left:2px solid #5e72e4;border-bottom:0}.navbar-vertical.navbar-expand-xl .navbar-nav .nav .nav-link{padding-left:3.75rem}.navbar-vertical.navbar-expand-xl .navbar-nav .nav .nav .nav-link{padding-left:4.5rem}.navbar-vertical.navbar-expand-xl .navbar-brand{display:block;text-align:center;padding-top:1rem;padding-bottom:1rem}.navbar-vertical.navbar-expand-xl .navbar-brand-img{max-height:2.5rem}.navbar-vertical.navbar-expand-xl .navbar-user{margin-left:-1.5rem;margin-right:-1.5rem;padding-top:1rem;padding-bottom:0rem;padding-left:1.5rem;padding-right:1.5rem;border-top:1px solid #e9ecef}.navbar-vertical.navbar-expand-xl .navbar-user .dropup .dropdown-menu{left:50%;transform:translateX(-50%)}}.navbar-search .input-group{border-radius:2rem;border:2px solid;background-color:transparent}.navbar-search .input-group .input-group-text{background-color:transparent;padding-left:1rem}.navbar-search .form-control{width:270px;background-color:transparent}.navbar-search-dark .input-group{border-color:rgba(255,255,255,0.6)}.navbar-search-dark .input-group-text{color:rgba(255,255,255,0.6)}.navbar-search-dark .form-control{color:rgba(255,255,255,0.9)}.navbar-search-dark .form-control::placeholder{color:rgba(255,255,255,0.6)}.navbar-search-dark .focused .input-group{border-color:rgba(255,255,255,0.9)}.navbar-search-light .input-group{border-color:rgba(0,0,0,0.6)}.navbar-search-light .input-group-text{color:rgba(0,0,0,0.6)}.navbar-search-light .form-control{color:rgba(0,0,0,0.9)}.navbar-search-light .form-control::placeholder{color:rgba(0,0,0,0.6)}.navbar-search-light .focused .input-group{border-color:rgba(0,0,0,0.9)}@media (min-width: 768px){.navbar .dropdown-menu{opacity:0;pointer-events:none;margin:0}.navbar .dropdown-menu-arrow:before{background:#fff;box-shadow:none;content:\'\';display:block;height:12px;width:12px;left:20px;position:absolute;bottom:100%;transform:rotate(-45deg) translateY(12px);z-index:-5;border-radius:2px}.navbar .dropdown-menu-right:before{right:20px;left:auto}.navbar:not(.navbar-nav-hover) .dropdown-menu.show{opacity:1;pointer-events:auto;animation:show-navbar-dropdown .25s ease forwards}.navbar:not(.navbar-nav-hover) .dropdown-menu.close{display:block;animation:hide-navbar-dropdown .15s ease backwards}.navbar.navbar-nav-hover .dropdown-menu{opacity:0;display:block;pointer-events:none;transform:translate(0, 10px) perspective(200px) rotateX(-2deg);transition:visibility 0.25s, opacity 0.25s, transform 0.25s}.navbar.navbar-nav-hover .nav-item.dropdown:hover>.dropdown-menu{display:block;opacity:1;pointer-events:auto;visibility:visible;transform:translate(0, 0);animation:none}.navbar .dropdown-menu-inner{position:relative;padding:1rem}@keyframes show-navbar-dropdown{0%{opacity:0;transform:translate(0, 10px) perspective(200px) rotateX(-2deg);transition:visibility 0.25s, opacity 0.25s, transform 0.25s}100%{transform:translate(0, 0);opacity:1}}@keyframes hide-navbar-dropdown{from{opacity:1}to{opacity:0;transform:translate(0, 10px)}}}.navbar-collapse-header{display:none}@media (max-width: 767.98px){.navbar-nav .nav-link{padding:.625rem 0;color:#172b4d !important}.navbar-nav .dropdown-menu{box-shadow:none;min-width:auto}.navbar-nav .dropdown-menu .media svg{width:30px}.navbar-collapse{width:calc(100% - 1.4rem);position:absolute;top:0;left:0;right:0;z-index:1050;margin:.7rem;overflow-y:auto;height:auto !important;opacity:0}.navbar-collapse .navbar-toggler{width:20px;height:20px;position:relative;cursor:pointer;display:inline-block;padding:0}.navbar-collapse .navbar-toggler span{display:block;position:absolute;width:100%;height:2px;border-radius:2px;opacity:1;background:#283448}.navbar-collapse .navbar-toggler :nth-child(1){transform:rotate(135deg)}.navbar-collapse .navbar-toggler :nth-child(2){transform:rotate(-135deg)}.navbar-collapse .navbar-collapse-header{display:block;padding-bottom:1rem;margin-bottom:1rem;border-bottom:1px solid rgba(0,0,0,0.1)}.navbar-collapse .collapse-brand img{height:36px}.navbar-collapse .collapse-close{text-align:right}.navbar-collapse.collapsing,.navbar-collapse.show{padding:1.5rem;border-radius:.375rem;background:#FFF;box-shadow:0 50px 100px rgba(50,50,93,0.1),0 15px 35px rgba(50,50,93,0.15),0 5px 15px rgba(0,0,0,0.1);animation:show-navbar-collapse .2s ease forwards}.navbar-collapse.collapsing-out{animation:hide-navbar-collapse .2s ease forwards}}@keyframes show-navbar-collapse{0%{opacity:0;transform:scale(0.95);transform-origin:100% 0}100%{opacity:1;transform:scale(1)}}@keyframes hide-navbar-collapse{from{opacity:1;transform:scale(1);transform-origin:100% 0}to{opacity:0;transform:scale(0.95)}}.page-item.active .page-link{box-shadow:0 7px 14px rgba(50,50,93,0.1),0 3px 6px rgba(0,0,0,0.08)}.page-item .page-link,.page-item span{display:flex;align-items:center;justify-content:center;padding:0;margin:0 3px;border-radius:50% !important;width:36px;height:36px;font-size:.875rem}.pagination-lg .page-item .page-link,.pagination-lg .page-item span{width:46px;height:46px;line-height:46px}.pagination-sm .page-item .page-link,.pagination-sm .page-item span{width:30px;height:30px;line-height:30px}.popover{border:0}.popover-header{font-weight:600}.popover-primary{background-color:#5e72e4}.popover-primary .popover-header{background-color:#5e72e4;color:#fff}.popover-primary .popover-body{color:#fff}.popover-primary .popover-header{border-color:rgba(255,255,255,0.2)}.popover-primary.bs-popover-top .arrow::after,.popover-primary.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#5e72e4}.popover-primary.bs-popover-right .arrow::after,.popover-primary.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#5e72e4}.popover-primary.bs-popover-bottom .arrow::after,.popover-primary.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#5e72e4}.popover-primary.bs-popover-left .arrow::after,.popover-primary.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#5e72e4}.popover-secondary{background-color:#f7fafc}.popover-secondary .popover-header{background-color:#f7fafc;color:#212529}.popover-secondary .popover-body{color:#212529}.popover-secondary .popover-header{border-color:rgba(33,37,41,0.2)}.popover-secondary.bs-popover-top .arrow::after,.popover-secondary.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#f7fafc}.popover-secondary.bs-popover-right .arrow::after,.popover-secondary.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#f7fafc}.popover-secondary.bs-popover-bottom .arrow::after,.popover-secondary.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#f7fafc}.popover-secondary.bs-popover-left .arrow::after,.popover-secondary.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#f7fafc}.popover-success{background-color:#2dce89}.popover-success .popover-header{background-color:#2dce89;color:#fff}.popover-success .popover-body{color:#fff}.popover-success .popover-header{border-color:rgba(255,255,255,0.2)}.popover-success.bs-popover-top .arrow::after,.popover-success.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#2dce89}.popover-success.bs-popover-right .arrow::after,.popover-success.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#2dce89}.popover-success.bs-popover-bottom .arrow::after,.popover-success.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#2dce89}.popover-success.bs-popover-left .arrow::after,.popover-success.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#2dce89}.popover-info{background-color:#11cdef}.popover-info .popover-header{background-color:#11cdef;color:#fff}.popover-info .popover-body{color:#fff}.popover-info .popover-header{border-color:rgba(255,255,255,0.2)}.popover-info.bs-popover-top .arrow::after,.popover-info.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#11cdef}.popover-info.bs-popover-right .arrow::after,.popover-info.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#11cdef}.popover-info.bs-popover-bottom .arrow::after,.popover-info.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#11cdef}.popover-info.bs-popover-left .arrow::after,.popover-info.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#11cdef}.popover-warning{background-color:#fb6340}.popover-warning .popover-header{background-color:#fb6340;color:#fff}.popover-warning .popover-body{color:#fff}.popover-warning .popover-header{border-color:rgba(255,255,255,0.2)}.popover-warning.bs-popover-top .arrow::after,.popover-warning.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#fb6340}.popover-warning.bs-popover-right .arrow::after,.popover-warning.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#fb6340}.popover-warning.bs-popover-bottom .arrow::after,.popover-warning.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#fb6340}.popover-warning.bs-popover-left .arrow::after,.popover-warning.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#fb6340}.popover-danger{background-color:#f5365c}.popover-danger .popover-header{background-color:#f5365c;color:#fff}.popover-danger .popover-body{color:#fff}.popover-danger .popover-header{border-color:rgba(255,255,255,0.2)}.popover-danger.bs-popover-top .arrow::after,.popover-danger.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#f5365c}.popover-danger.bs-popover-right .arrow::after,.popover-danger.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#f5365c}.popover-danger.bs-popover-bottom .arrow::after,.popover-danger.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#f5365c}.popover-danger.bs-popover-left .arrow::after,.popover-danger.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#f5365c}.popover-light{background-color:#adb5bd}.popover-light .popover-header{background-color:#adb5bd;color:#fff}.popover-light .popover-body{color:#fff}.popover-light .popover-header{border-color:rgba(255,255,255,0.2)}.popover-light.bs-popover-top .arrow::after,.popover-light.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#adb5bd}.popover-light.bs-popover-right .arrow::after,.popover-light.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#adb5bd}.popover-light.bs-popover-bottom .arrow::after,.popover-light.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#adb5bd}.popover-light.bs-popover-left .arrow::after,.popover-light.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#adb5bd}.popover-dark{background-color:#212529}.popover-dark .popover-header{background-color:#212529;color:#fff}.popover-dark .popover-body{color:#fff}.popover-dark .popover-header{border-color:rgba(255,255,255,0.2)}.popover-dark.bs-popover-top .arrow::after,.popover-dark.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#212529}.popover-dark.bs-popover-right .arrow::after,.popover-dark.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#212529}.popover-dark.bs-popover-bottom .arrow::after,.popover-dark.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#212529}.popover-dark.bs-popover-left .arrow::after,.popover-dark.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#212529}.popover-default{background-color:#172b4d}.popover-default .popover-header{background-color:#172b4d;color:#fff}.popover-default .popover-body{color:#fff}.popover-default .popover-header{border-color:rgba(255,255,255,0.2)}.popover-default.bs-popover-top .arrow::after,.popover-default.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#172b4d}.popover-default.bs-popover-right .arrow::after,.popover-default.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#172b4d}.popover-default.bs-popover-bottom .arrow::after,.popover-default.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#172b4d}.popover-default.bs-popover-left .arrow::after,.popover-default.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#172b4d}.popover-white{background-color:#fff}.popover-white .popover-header{background-color:#fff;color:#212529}.popover-white .popover-body{color:#212529}.popover-white .popover-header{border-color:rgba(33,37,41,0.2)}.popover-white.bs-popover-top .arrow::after,.popover-white.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#fff}.popover-white.bs-popover-right .arrow::after,.popover-white.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#fff}.popover-white.bs-popover-bottom .arrow::after,.popover-white.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#fff}.popover-white.bs-popover-left .arrow::after,.popover-white.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#fff}.popover-neutral{background-color:#fff}.popover-neutral .popover-header{background-color:#fff;color:#212529}.popover-neutral .popover-body{color:#212529}.popover-neutral .popover-header{border-color:rgba(33,37,41,0.2)}.popover-neutral.bs-popover-top .arrow::after,.popover-neutral.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#fff}.popover-neutral.bs-popover-right .arrow::after,.popover-neutral.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#fff}.popover-neutral.bs-popover-bottom .arrow::after,.popover-neutral.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#fff}.popover-neutral.bs-popover-left .arrow::after,.popover-neutral.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#fff}.popover-darker{background-color:#000}.popover-darker .popover-header{background-color:#000;color:#fff}.popover-darker .popover-body{color:#fff}.popover-darker .popover-header{border-color:rgba(255,255,255,0.2)}.popover-darker.bs-popover-top .arrow::after,.popover-darker.bs-popover-auto[x-placement^="top"] .arrow::after{border-top-color:#000}.popover-darker.bs-popover-right .arrow::after,.popover-darker.bs-popover-auto[x-placement^="right"] .arrow::after{border-right-color:#000}.popover-darker.bs-popover-bottom .arrow::after,.popover-darker.bs-popover-auto[x-placement^="bottom"] .arrow::after{border-bottom-color:#000}.popover-darker.bs-popover-left .arrow::after,.popover-darker.bs-popover-auto[x-placement^="left"] .arrow::after{border-left-color:#000}.progress-wrapper{position:relative;padding-top:1.5rem}.progress{height:8px;margin-bottom:1rem;overflow:hidden;border-radius:.25rem;background-color:#e9ecef;box-shadow:inset 0 1px 2px rgba(0,0,0,0.1)}.progress .sr-only{width:auto;height:20px;margin:0 0 0 30px;left:0;clip:auto;line-height:20px;font-size:13px}.progress-heading{font-size:14px;font-weight:500;margin:0 0 2px;padding:0}.progress-bar{box-shadow:none;border-radius:0;height:auto}.progress-info{margin-bottom:.5rem;display:flex;align-items:center;justify-content:space-between}.progress-label span{display:inline-block;color:#5e72e4;font-size:.625rem;font-weight:600;text-transform:uppercase;background:rgba(94,114,228,0.1);padding:.25rem 1rem;border-radius:30px}.progress-percentage{text-align:right}.progress-percentage span{display:inline-block;color:#8898aa;font-size:.875rem;font-weight:600}.separator{position:absolute;top:auto;left:0;right:0;width:100%;height:150px;transform:translateZ(0);overflow:hidden;pointer-events:none}.separator svg{position:absolute;pointer-events:none}.separator-top{top:0;bottom:auto}.separator-top svg{top:0}.separator-bottom{top:auto;bottom:0}.separator-bottom svg{bottom:0}.separator-inverse{transform:rotate(180deg)}.separator-skew{height:60px}@media (min-width: 1200px){.separator-skew{height:70px}}.table thead th{padding-top:.75rem;padding-bottom:.75rem;font-size:.65rem;text-transform:uppercase;letter-spacing:1px;border-bottom:1px solid #e9ecef}.table th{font-weight:600}.table td .progress{height:3px;width:120px;margin:0}.table td,.table th{font-size:.8125rem;white-space:nowrap}.table.align-items-center td,.table.align-items-center th{vertical-align:middle}.table .thead-dark th{background-color:#1c345d;color:#4d7bca}.table .thead-light th{background-color:#f6f9fc;color:#8898aa}.table-hover tr{transition:all 0.15s ease}@media screen and (prefers-reduced-motion: reduce){.table-hover tr{transition:none}}.table-flush td,.table-flush th{border-left:0;border-right:0}.table-flush tbody tr:first-child td,.table-flush tbody tr:first-child th{border-top:0}.table-flush tbody tr:last-child td,.table-flush tbody tr:last-child th{border-bottom:0}.card .table{margin-bottom:0}.card .table td,.card .table th{padding-left:1.5rem;padding-right:1.5rem}p{font-size:1rem;font-weight:300;line-height:1.7}.lead{font-size:1.25rem;font-weight:300;line-height:1.7;margin-top:1.5rem}.lead+.btn-wrapper{margin-top:3rem}.description{font-size:.875rem}.heading{letter-spacing:.025em;font-size:.95rem;text-transform:uppercase;font-weight:600}.heading-small{padding-top:.25rem;padding-bottom:.25rem;font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}.heading-title{letter-spacing:.025em;font-size:1.375rem;font-weight:600;text-transform:uppercase}.heading-section{letter-spacing:.025em;font-size:1.375rem;font-weight:600;text-transform:uppercase}.heading-section img{display:block;width:72px;height:72px;margin-bottom:1.5rem}.heading-section.text-center img{margin-left:auto;margin-right:auto}.display-1 span,.display-2 span,.display-3 span,.display-4 span{display:block;font-weight:300}article h4:not(:first-child),article h5:not(:first-child){margin-top:3rem}article h4,article h5{margin-bottom:1.5rem}article figure{margin:3rem 0}article h5+figure{margin-top:0}.datepicker{border-radius:.375rem;direction:ltr}.datepicker-inline{width:220px}.datepicker-rtl{direction:rtl}.datepicker-rtl.dropdown-menu{left:auto}.datepicker-rtl table tr td span{float:right}.datepicker-dropdown{top:0;left:0;padding:20px 22px;box-shadow:0 50px 100px rgba(50,50,93,0.1),0 15px 35px rgba(50,50,93,0.15),0 5px 15px rgba(0,0,0,0.1)}.datepicker-dropdown.datepicker-orient-left:before{left:6px}.datepicker-dropdown.datepicker-orient-left:after{left:7px}.datepicker-dropdown.datepicker-orient-right:before{right:6px}.datepicker-dropdown.datepicker-orient-right:after{right:7px}.datepicker-dropdown.datepicker-orient-bottom:before{top:-7px}.datepicker-dropdown.datepicker-orient-bottom:after{top:-6px}.datepicker-dropdown.datepicker-orient-top:before{bottom:-7px;border-bottom:0;border-top:7px solid #fff}.datepicker-dropdown.datepicker-orient-top:after{bottom:-6px;border-bottom:0;border-top:6px solid #fff}.datepicker table{margin:0;-webkit-touch-callout:none;user-select:none}.datepicker table tr td{border-radius:50%}.datepicker table tr th{border-radius:.375rem;font-weight:500}.datepicker table tr td,.datepicker table tr th{transition:all 0.15s ease;width:36px;height:36px;border:none;text-align:center;font-size:.875rem}.table-striped .datepicker table tr td,.table-striped .datepicker table tr th{background-color:transparent}.datepicker table tr td.old,.datepicker table tr td.new{color:#adb5bd}.datepicker table tr td.day:hover,.datepicker table tr td.focused{background:#fff;cursor:pointer}.datepicker table tr td.disabled,.datepicker table tr td.disabled:hover{background:none;color:#dee2e6;cursor:default}.datepicker table tr td.highlighted{border-radius:0}.datepicker table tr td.highlighted.focused{background:#5e72e4}.datepicker table tr td.highlighted.disabled,.datepicker table tr td.highlighted.disabled:active{background:#5e72e4;color:#ced4da}.datepicker table tr td.today{background:#fff}.datepicker table tr td.today.focused{background:#fff}.datepicker table tr td.today.disabled,.datepicker table tr td.today.disabled:active{background:#fff;color:#8898aa}.datepicker table tr td.range{background:#5e72e4;color:#fff;border-radius:0}.datepicker table tr td.range.focused{background:#3b53de}.datepicker table tr td.range.disabled,.datepicker table tr td.range.disabled:active,.datepicker table tr td.range.day.disabled:hover{background:#324cdd;color:#8a98eb}.datepicker table tr td.range.highlighted.focused{background:#cbd3da}.datepicker table tr td.range.highlighted.disabled,.datepicker table tr td.range.highlighted.disabled:active{background:#e9ecef;color:#dee2e6}.datepicker table tr td.range.today.disabled,.datepicker table tr td.range.today.disabled:active{background:#5e72e4;color:#fff}.datepicker table tr td.day.range-start{border-top-right-radius:0;border-bottom-right-radius:0}.datepicker table tr td.day.range-end{border-top-left-radius:0;border-bottom-left-radius:0}.datepicker table tr td.day.range-start.range-end{border-radius:50%}.datepicker table tr td.selected,.datepicker table tr td.selected.highlighted,.datepicker table tr td.selected:hover,.datepicker table tr td.selected.highlighted:hover,.datepicker table tr td.day.range:hover{background:#5e72e4;color:#fff}.datepicker table tr td.active,.datepicker table tr td.active.highlighted,.datepicker table tr td.active:hover,.datepicker table tr td.active.highlighted:hover{background:#5e72e4;color:#fff;box-shadow:none}.datepicker table tr td span{display:block;width:23%;height:54px;line-height:54px;float:left;margin:1%;cursor:pointer;border-radius:4px}.datepicker table tr td span:hover,.datepicker table tr td span.focused{background:#e9ecef}.datepicker table tr td span.disabled,.datepicker table tr td span.disabled:hover{background:none;color:#dee2e6;cursor:default}.datepicker table tr td span.active,.datepicker table tr td span.active:hover,.datepicker table tr td span.active.disabled,.datepicker table tr td span.active.disabled:hover{text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.datepicker table tr td span.old,.datepicker table tr td span.new{color:#8898aa}.datepicker .datepicker-switch{width:145px}.datepicker .datepicker-switch,.datepicker .prev,.datepicker .next,.datepicker tfoot tr th{cursor:pointer}.datepicker .datepicker-switch:hover,.datepicker .prev:hover,.datepicker .next:hover,.datepicker tfoot tr th:hover{background:#e9ecef}.datepicker .prev.disabled,.datepicker .next.disabled{visibility:hidden}.datepicker .cw{font-size:10px;width:12px;padding:0 2px 0 5px;vertical-align:middle}/*! nouislider - 14.0.1 - 6/21/2019 */.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative;direction:ltr}.noUi-base,.noUi-connects{width:100%;height:100%;position:relative;z-index:1}.noUi-connects{overflow:hidden;z-index:0}.noUi-connect,.noUi-origin{will-change:transform;position:absolute;z-index:1;top:0;left:0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-webkit-transform-style:preserve-3d;transform-origin:0 0;transform-style:flat}.noUi-connect{height:100%;width:100%}.noUi-origin{height:10%;width:10%}html:not([dir="rtl"]) .noUi-horizontal .noUi-origin{left:auto;right:0}.noUi-vertical .noUi-origin{width:0}.noUi-horizontal .noUi-origin{height:0}.noUi-handle{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute}.noUi-touch-area{height:100%;width:100%}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform 0.3s;transition:transform 0.3s}.noUi-state-drag *{cursor:inherit !important}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{width:34px;height:28px;left:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;left:-6px;top:-17px}html:not([dir="rtl"]) .noUi-horizontal .noUi-handle{right:-17px;left:auto}.noUi-target{background:#FAFAFA;border-radius:4px;border:1px solid #D3D3D3;box-shadow:inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB}.noUi-connects{border-radius:3px}.noUi-connect{background:#3FB8AF}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:1px solid #D9D9D9;border-radius:3px;background:#FFF;cursor:default;box-shadow:inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB}.noUi-active{box-shadow:inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB}.noUi-handle:before,.noUi-handle:after{content:"";display:block;position:absolute;height:14px;width:1px;background:#E8E7E6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:before,.noUi-vertical .noUi-handle:after{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect{background:#B8B8B8}[disabled].noUi-target,[disabled].noUi-handle,[disabled] .noUi-handle{cursor:not-allowed}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;white-space:nowrap;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#CCC}.noUi-marker-sub{background:#AAA}.noUi-marker-large{background:#AAA}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate(-50%, 50%);transform:translate(-50%, 50%)}.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%, 50%);transform:translate(50%, 50%)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate(0, -50%);transform:translate(0, -50%);padding-left:25px}.noUi-rtl .noUi-value-vertical{-webkit-transform:translate(0, 50%);transform:translate(0, 50%)}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid #D9D9D9;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center;white-space:nowrap}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%, 0);transform:translate(-50%, 0);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0, -50%);transform:translate(0, -50%);top:50%;right:120%}.noUi-target{background:#eceeef;border-radius:5px;border:0;box-shadow:inset 0 1px 2px rgba(90,97,105,0.1);margin:15px 0;cursor:pointer}.noUi-horizontal{height:5px}html:not([dir="rtl"]) .noUi-horizontal .noUi-handle{right:-10px}.noUi-vertical{width:5px}.noUi-connect{background:#5e72e4;box-shadow:none}.noUi-handle:after,.noUi-handle:before{content:none}.noUi-handle:focus{outline:none}.noUi-horizontal .noUi-handle,.noUi-vertical .noUi-handle{top:-5px;width:15px;height:15px;border-radius:100%;box-shadow:none;cursor:pointer;background-color:#5e72e4;border:0;transition:box-shadow .15s, transform .15s}.noUi-horizontal .noUi-handle.noUi-active,.noUi-vertical .noUi-handle.noUi-active{box-shadow:0px 0px 0px 2px #5e72e4}.input-slider--cyan .noUi-connect{background:#2bffc6}[disabled] .noUi-connect,[disabled].noUi-connect{background:#b2b2b2}[disabled] .noUi-handle,[disabled].noUi-origin{cursor:not-allowed}.range-slider-value{font-size:.75rem;font-weight:500;background-color:rgba(33,37,41,0.7);color:#fff;border-radius:10px;padding:.4em .8em .3em .85em}.range-slider-wrapper .upper-info{font-weight:400;margin-bottom:5px}.input-slider-value-output{background:#333;color:#fff;padding:4px 8px;position:relative;top:12px;font-size:11px;border-radius:2px}.input-slider-value-output:after{bottom:100%;left:10px;border:solid transparent;content:" ";height:0;width:0;position:absolute;pointer-events:none;border-color:rgba(136,183,213,0);border-bottom-color:#333;border-width:4px;margin-left:-4px}.input-slider-value-output.left:after{left:10px;right:auto}.input-slider-value-output.right:after{right:10px;left:auto}.scrollbar-inner{height:100%}.scrollbar-inner:not(:hover) .scroll-element{opacity:0}.scrollbar-inner .scroll-element{transition:opacity 300ms;margin-right:2px}.scrollbar-inner .scroll-element .scroll-bar,.scrollbar-inner .scroll-element .scroll-element_track{transition:background-color 300ms}.scrollbar-inner .scroll-element .scroll-element_track{background-color:transparent}.scrollbar-inner .scroll-element.scroll-y{width:3px;right:0}.scrollbar-inner .scroll-element.scroll-x{height:3px;bottom:0}.ct-navbar{background-color:#5e72e4;box-shadow:rgba(116,129,141,0.1) 0px 1px 1px 0px;padding-top:.5rem;padding-bottom:.5rem}@media (max-width: 991.98px){.ct-navbar{padding-right:.5rem;padding-left:.5rem}.ct-navbar .navbar-nav-scroll{max-width:100%;height:2.5rem;margin-top:.25rem;overflow:hidden;font-size:.875rem}.ct-navbar .navbar-nav-scroll .navbar-nav{padding-bottom:2rem;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}}@media (min-width: 768px){@supports (position: sticky){.ct-navbar{position:sticky;top:0;z-index:1071}}}.ct-navbar .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem;color:rgba(255,255,255,0.9) !important}.ct-navbar .navbar-nav .nav-link.active,.ct-navbar .navbar-nav .nav-link:hover{color:#fff !important;background-color:transparent !important}.ct-navbar .navbar-nav .nav-link.active{font-weight:500}.ct-navbar .navbar-nav-svg{display:inline-block;width:1rem;height:1rem;vertical-align:text-top}.ct-navbar .dropdown-menu{font-size:.875rem}.ct-navbar .dropdown-item.active{font-weight:500;color:#212529;background-color:transparent;background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 8 8\'%3E%3Cpath fill=\'%23292b2c\' d=\'M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z\'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:.4rem .87rem;background-size:.75rem .75rem;padding-left:25px}.github-corner{position:fixed;right:0;z-index:1080}.github-corner:hover .octo-arm{animation:octocat-wave 560ms ease-in-out}.github-corner svg{fill:#fff;color:#5e72e4}@keyframes octocat-wave{0%,100%{transform:rotate(0)}20%,60%{transform:rotate(-25deg)}40%,80%{transform:rotate(10deg)}}.ct-clipboard{position:relative;display:none;float:right}.ct-clipboard+.highlight{margin-top:0}.btn-clipboard{position:absolute;top:1rem;right:1rem;z-index:10;display:block;padding:.25rem .5rem;font-size:75%;cursor:pointer;background-color:transparent;border:0;border-radius:.25rem;color:#fff;background-color:#5e72e4}.btn-clipboard:hover{color:#fff;background-color:#324cdd}@media (min-width: 768px){.ct-clipboard{display:block}}.ct-example-row .row>.col span,.ct-example-row .row>[class^="col-"] span{display:block;padding:.75rem;color:#393f49;background-color:#fff;box-shadow:rgba(0,0,0,0.1) 0px 0px 0px 1px,rgba(0,0,0,0.1) 0px 4px 16px;font-size:.875rem;border-radius:.25rem;margin:1rem 0}.ct-example-row .no-gutters>.col span,.ct-example-row .no-gutters>[class^="col-"] span{border-radius:0}.ct-example-row .flex-items-top,.ct-example-row .flex-items-middle,.ct-example-row .flex-items-bottom{min-height:6rem;background-color:rgba(255,0,0,0.1)}.ct-example-row-flex-cols .row{min-height:10rem;background-color:rgba(255,0,0,0.1)}.ct-example-row-flex-cols .row+.row{margin-top:1rem}.ct-highlight{background-color:rgba(94,114,228,0.15);border:1px solid rgba(94,114,228,0.15)}.example-container{width:800px;width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.example-row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.example-content-main{position:relative;width:100%;min-height:1px;padding-right:15px;padding-left:15px}@media (min-width: 576px){.example-content-main{flex:0 0 50%;max-width:50%}}@media (min-width: 992px){.example-content-main{flex:0 0 66.66667%;max-width:66.66667%}}.example-content-secondary{position:relative;width:100%;min-height:1px;padding-right:15px;padding-left:15px}@media (min-width: 576px){.example-content-secondary{flex:0 0 50%;max-width:50%}}@media (min-width: 992px){.example-content-secondary{flex:0 0 33.33333%;max-width:33.33333%}}.ct-example-container{min-width:16rem;max-width:25rem;margin-right:auto;margin-left:auto}.ct-example-container-header{height:3rem;margin-bottom:.5rem;background-color:#fff;border-radius:.25rem}.ct-example-container-sidebar{float:right;width:4rem;height:8rem;background-color:#cbd2f6;border-radius:.25rem}.ct-example-container-body{height:8rem;margin-right:4.5rem;background-color:#cbd2f6;border-radius:.25rem}.ct-example-container-fluid{max-width:none}.ct-example{position:relative;margin:1rem -15px 0}.ct-example::after{display:block;clear:both;content:""}@media (min-width: 576px){.ct-example{margin-right:0;margin-left:0}}.ct-example+.highlight,.ct-example+.clipboard+.highlight{margin-top:0}.ct-example+p{margin-top:2rem}.ct-example .pos-f-t{position:relative;margin:-1rem}@media (min-width: 576px){.ct-example .pos-f-t{margin:-1.5rem}}.ct-example .custom-file-input:lang(es) ~ .custom-file-label::after{content:"Elegir"}.ct-example>.form-control+.form-control{margin-top:.5rem}.ct-example>.nav+.nav,.ct-example>.alert+.alert,.ct-example>.navbar+.navbar,.ct-example>.progress+.progress,.ct-example>.progress+.btn,.ct-example .badge,.ct-example .btn{margin-top:.5rem;margin-bottom:.5rem}.ct-example .btn-group{margin-top:.5rem;margin-bottom:.5rem}.ct-example .btn-group .btn{margin:0}.ct-example .alert{margin:0}.ct-example .alert+.alert{margin-top:1.25rem}.ct-example .badge{margin-right:.5rem}.ct-example>.dropdown-menu:first-child{position:static;display:block}.ct-example>.form-group:last-child{margin-bottom:0}.ct-example>.close{float:none}.ct-example-type .table .type-info{color:#999;vertical-align:middle}.ct-example-type .table td{padding:1rem 0;border-color:#eee}.ct-example-type .table tr:first-child td{border-top:0}.ct-example-type h1,.ct-example-type h2,.ct-example-type h3,.ct-example-type h4,.ct-example-type h5,.ct-example-type h6{margin-top:0;margin-bottom:0}.ct-example-bg-classes p{padding:1rem}.ct-example>img+img{margin-left:.5rem}.ct-example>.btn-group{margin-top:.25rem;margin-bottom:.25rem}.ct-example>.btn-toolbar+.btn-toolbar{margin-top:.5rem}.ct-example-control-sizing select,.ct-example-control-sizing input[type="text"]+input[type="text"]{margin-top:.5rem}.ct-example-form .input-group{margin-bottom:.5rem}.ct-example>textarea.form-control{resize:vertical}.ct-example>.list-group{max-width:400px}.ct-example .fixed-top,.ct-example .sticky-top{position:static;margin:-1rem -1rem 1rem}.ct-example .fixed-bottom{position:static;margin:1rem -1rem -1rem}@media (min-width: 576px){.ct-example .fixed-top,.ct-example .sticky-top{margin:-1.5rem -1.5rem 1rem}.ct-example .fixed-bottom{margin:1rem -1.5rem -1.5rem}}.ct-example .pagination{margin-top:.5rem;margin-bottom:.5rem}.modal{z-index:1072}.modal .tooltip,.modal .popover{z-index:1073}.modal-backdrop{z-index:1071}.ct-example-modal{background-color:#fafafa}.ct-example-modal .modal{position:relative;top:auto;right:auto;bottom:auto;left:auto;z-index:1;display:block}.ct-example-modal .modal-dialog{left:auto;margin-right:auto;margin-left:auto}.ct-example-tabs .nav-tabs{margin-bottom:1rem}.ct-example-popover-static{padding-bottom:1.5rem;background-color:#f9f9f9}.ct-example-popover-static .popover{position:relative;display:block;float:left;width:260px;margin:1.25rem}.tooltip-demo a{white-space:nowrap}.ct-example-tooltip-static .tooltip{position:relative;display:inline-block;margin:10px 20px;opacity:1}.scrollspy-example{position:relative;height:200px;margin-top:.5rem;overflow:auto}.scrollspy-example-2{position:relative;height:350px;overflow:auto}.ct-example-border-utils [class^="border"]{display:inline-block;width:5rem;height:5rem;margin:.25rem;background-color:#f5f5f5}.ct-example-border-utils-0 [class^="border"]{border:1px solid #e9ecef}.highlight{padding:0;margin-top:1rem;-ms-overflow-style:-ms-autohiding-scrollbar}@media (min-width: 576px){.highlight{padding:0}}.ct-content .highlight{margin-right:-15px;margin-left:-15px}@media (min-width: 576px){.ct-content .highlight{margin-right:0;margin-left:0}}.ct-example{margin-bottom:2rem;padding-bottom:2rem;border-bottom:1px solid #e9ecef}.ct-example .tab-content .tab-example-result{background-color:#f5f7f9;border:1px solid #e6ecf1;padding:1.25rem;border-radius:.25rem}.ct-example .nav-tabs-code{margin-bottom:.375rem}.ct-example .nav-tabs-code .nav-link{font-size:.875rem}.ct-example .nav-tabs-code .nav-link:active,.ct-example .nav-tabs-code .nav-link.active{color:#5e72e4}.icon-examples{margin-top:1rem}.btn-icon-clipboard{margin:0px;padding:24px;font-size:16px;font-weight:400;line-height:1.25;color:#393f49;background-color:#f8f9fa;border-radius:4px;border:0px none;text-align:left;font-family:inherit;display:inline-block;vertical-align:middle;text-decoration:none;-moz-appearance:none;cursor:pointer;width:100%;margin:.5rem 0}.btn-icon-clipboard:hover{background-color:#fff;box-shadow:rgba(0,0,0,0.1) 0px 0px 0px 1px,rgba(0,0,0,0.1) 0px 4px 16px}.btn-icon-clipboard>div{align-items:center;display:flex}.btn-icon-clipboard i{box-sizing:content-box;color:#393f49;vertical-align:middle;font-size:1.5rem}.btn-icon-clipboard span{display:inline-block;font-size:.875rem;line-height:1.5;color:#393f49;margin-left:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:middle}code[class*="language-"],pre[class*="language-"]{font-family:Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace;font-size:14px;line-height:1.375;direction:ltr;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none;background:#f5f7ff;color:#5e6687;border-radius:.25rem}pre[class*="language-"]::-moz-selection,pre[class*="language-"] ::-moz-selection,code[class*="language-"]::-moz-selection,code[class*="language-"] ::-moz-selection{text-shadow:none;background:#dfe2f1}pre[class*="language-"]::selection,pre[class*="language-"] ::selection,code[class*="language-"]::selection,code[class*="language-"] ::selection{text-shadow:none;background:#dfe2f1}pre[class*="language-"]{padding:1.25rem;margin:0;overflow:auto}:not(pre)>code[class*="language-"]{padding:.1em;border-radius:.3em}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#898ea4}.token.punctuation{color:#5e6687}.token.namespace{opacity:.7}.token.operator,.token.boolean,.token.number{color:#c76b29}.token.property{color:#c08b30}.token.tag{color:#3d8fd1}.token.string{color:#22a2c9}.token.selector{color:#6679cc}.token.attr-name{color:#c76b29}.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#22a2c9}.token.attr-value,.token.keyword,.token.control,.token.directive,.token.unit{color:#ac9739}.token.statement,.token.regex,.token.atrule{color:#22a2c9}.token.placeholder,.token.variable{color:#3d8fd1}.token.deleted{text-decoration:line-through}.token.inserted{border-bottom:1px dotted #202746;text-decoration:none}.token.italic{font-style:italic}.token.important,.token.bold{font-weight:bold}.token.important{color:#c94922}.token.entity{cursor:help}pre>code.highlight{outline:0.4em solid #c94922;outline-offset:.4em}.line-numbers .line-numbers-rows{border-right-color:#dfe2f1}.line-numbers-rows>span:before{color:#979db4}.line-highlight{background:rgba(107,115,148,0.2);background:-webkit-linear-gradient(left, rgba(107,115,148,0.2) 70%, rgba(107,115,148,0));background:linear-gradient(to right, rgba(107,115,148,0.2) 70%, rgba(107,115,148,0))}.docs{background:#FFF}.docs h6{font-size:1rem;font-weight:600}.ct-content{order:1}.ct-content>h2[id],.ct-content>h3[id],.ct-content>h4[id]{pointer-events:none}.ct-content>h2[id]>div,.ct-content>h2[id]>a,.ct-content>h3[id]>div,.ct-content>h3[id]>a,.ct-content>h4[id]>div,.ct-content>h4[id]>a{pointer-events:auto}.ct-content>h2[id]::before,.ct-content>h3[id]::before,.ct-content>h4[id]::before{display:block;height:6rem;margin-top:-6rem;visibility:hidden;content:""}.ct-content>table{width:100%;max-width:100%;margin-bottom:1rem}@media (max-width: 991.98px){.ct-content>table{display:block;overflow-x:auto;-ms-overflow-style:-ms-autohiding-scrollbar}.ct-content>table.table-bordered{border:0}}.ct-content>table>thead>tr>th,.ct-content>table>thead>tr>td,.ct-content>table>tbody>tr>th,.ct-content>table>tbody>tr>td,.ct-content>table>tfoot>tr>th,.ct-content>table>tfoot>tr>td{padding:1rem;vertical-align:top;border:1px solid #e9ecef}.ct-content>table>thead>tr>th>p:last-child,.ct-content>table>thead>tr>td>p:last-child,.ct-content>table>tbody>tr>th>p:last-child,.ct-content>table>tbody>tr>td>p:last-child,.ct-content>table>tfoot>tr>th>p:last-child,.ct-content>table>tfoot>tr>td>p:last-child{margin-bottom:0}.ct-content>table td:first-child>code{white-space:nowrap}.ct-content>h2:not(:first-child){margin-top:3rem;font-size:1.5rem;font-weight:600}.ct-content>h3{margin-top:2.5rem;font-size:1.25rem;font-weight:600}.ct-content>ul li,.ct-content>ol li{margin-bottom:.25rem}@media (min-width: 992px){.ct-content>ul,.ct-content>ol,.ct-content>p{max-width:80%}}.ct-page-title{padding-left:1.25rem;border-left:2px solid #5e72e4;margin-bottom:1.5rem}.ct-title{margin-top:1rem;margin-bottom:.5rem;font-weight:300}@media (min-width: 576px){.ct-title{font-size:1.5rem;font-weight:600}}.ct-lead{color:#3b454e;font-weight:500}@media (min-width: 576px){.ct-lead{max-width:80%;margin-bottom:1rem;font-size:.875rem}}.ct-text-purple{color:#5e72e4}.ct-text-purple-bright{color:#9da9f2}.ct-tabs-example .nav-link i{margin-right:5px}.color-swatch{margin:1rem 0;border-radius:.25rem;background-color:#F4F5F7}.color-swatch:after{content:" ";display:table;clear:both}.color-swatch-header{position:relative;height:0;padding-bottom:50%;border-radius:.25rem .25rem 0 0;border:1px solid transparent}.color-swatch-header.is-light{border-color:#C1C7D0}.color-swatch-header .pass-fail{position:absolute;width:100%;bottom:0}.color-swatch-header .pass-fail-item-wrap{position:relative;float:left;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.color-swatch-header .pass-fail-item-group{display:inline-block;padding:0 5px}.color-swatch-header .pass-fail-item{float:left;display:inline-block;text-align:center;padding:2px}.color-swatch-header .pass-fail-item.white .example{color:#fff}.color-swatch-header .pass-fail-item.small .example{font-size:10px}.color-swatch-header .pass-fail-item .lozenge{font-size:11px;text-transform:uppercase;font-weight:600;background:#000;color:#fff;padding:2px 4px;line-height:10px;border-radius:4px;letter-spacing:0.05em}.color-swatch-body{position:relative;left:50%;float:left;padding:10px 0;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.color-swatch-body .prop-item-wrap{float:left;padding:0 15px;min-width:65px}.color-swatch-body .prop-item{padding:15px 0}.color-swatch-body .prop-item .label{font-size:11px;color:#62748C;text-transform:uppercase;line-height:16px}.color-swatch-body .prop-item .value{font-size:14px}.table-colors{font-weight:600;font-size:16px;width:100%}.table-colors td,.table-colors:first-child td,.table-colors td:first-child,.table-colors:first-child td:first-child,.table-colors td:last-child,.table-colors:first-child td:last-child{background:rgba(255,255,255,0.9);border-bottom:1px solid rgba(0,0,0,0.1);padding:10px}.table-colors tr:last-child td,.table-colors:first-child tr:last-child td{border-bottom:none}.table-colors td:nth-child(1),.table-colors:first-child td:nth-child(1){line-height:40px}.table-colors .swatch,.table-colors:first-child .swatch{float:left;height:40px;width:40px;margin-right:20px;display:inline-block;border-radius:4px;border:1px solid transparent}.table-colors .swatch.is-light,.table-colors:first-child .swatch.is-light{border-color:#C1C7D0}.table-colors .lozenge,.table-colors:first-child .lozenge{float:left;margin:5px 10px 0 0;font-size:10px;display:inline-block;text-transform:uppercase;font-weight:600;background:#97A0AF;color:#042A53;padding:2px 4px;line-height:10px;border-radius:4px;letter-spacing:0.05em}.ct-toc{order:2;padding-top:2rem;padding-bottom:1.5rem;font-size:.875rem}@supports (position: sticky){.ct-toc{position:sticky;top:4rem;height:calc(100vh - 4rem);overflow-y:auto}}.section-nav{padding-left:0;border-left:1px solid #eee}.section-nav ul{padding-left:1rem}.section-nav ul ul{display:none}.toc-entry{display:block;font-size:1rem}.toc-entry a{display:block;padding:.125rem 1.5rem;color:#99979c;font-size:90%}.toc-entry a:hover{color:#5e72e4;text-decoration:none}.ct-sidebar{order:0;border-bottom:1px solid #e6ecf1;background-color:#f5f7f9}@media (min-width: 768px){.ct-sidebar{border-right:1px solid #e6ecf1}@supports (position: sticky){.ct-sidebar{position:sticky;top:4rem;z-index:1000;height:calc(100vh - 4rem)}}}@media (min-width: 1200px){.ct-sidebar{flex:0 1 320px}}.ct-links{padding-top:2rem;padding-bottom:1rem;margin-right:-15px;margin-left:-15px}@media (min-width: 768px){@supports (position: sticky){.ct-links{max-height:calc(100vh - 5rem);overflow-y:auto}}}@media (min-width: 768px){.ct-links{display:block !important}}.ct-search{position:relative;padding:1rem 15px;margin-right:-15px;margin-left:-15px;border-bottom:1px solid rgba(0,0,0,0.05)}.ct-search .form-control:focus{border-color:#9da9f2;box-shadow:0 0 0 3px rgba(157,169,242,0.25)}.ct-search-docs-toggle{line-height:1;color:#212529}.ct-sidenav{display:none}.ct-toc-link{display:block;padding:.25rem 1.5rem;font-weight:600;font-size:.875rem;color:#0d2b3e}.ct-toc-link:hover{color:rgba(0,0,0,0.85);text-decoration:none}.ct-toc-item.active{margin-bottom:1rem}.ct-toc-item.active:not(:first-child){margin-top:1rem}.ct-toc-item.active>.ct-toc-link{color:rgba(0,0,0,0.85)}.ct-toc-item.active>.ct-toc-link:hover{background-color:transparent}.ct-toc-item.active>.ct-sidenav{display:block}.ct-sidebar .nav>li>a{display:block;padding:.25rem 1.5rem;font-size:84%;color:#4c555a}.ct-sidebar .nav>li>a:hover{color:rgba(0,0,0,0.85);text-decoration:none;background-color:transparent}.ct-sidebar .nav>.active>a{font-weight:500;color:#0099e5;background-color:transparent;padding-left:2rem;position:relative}.ct-sidebar .nav>.active>a:before{content:\'\';position:absolute;height:16px;width:2px;background-color:#0099e5;top:50%;left:1.5rem;transform:translateY(-50%)}.ct-sidebar .nav>.active:hover>a{color:#0099e5}.scrollbar-inner{height:100%}.scrollbar-inner:not(:hover) .scroll-element{opacity:0}.scrollbar-inner .scroll-element{transition:opacity 300ms;margin-right:2px}.scrollbar-inner .scroll-element .scroll-bar,.scrollbar-inner .scroll-element .scroll-element_track{transition:background-color 300ms}.scrollbar-inner .scroll-element .scroll-element_track{background-color:transparent}.scrollbar-inner .scroll-element.scroll-y{width:3px;right:0}.scrollbar-inner .scroll-element.scroll-x{height:3px;bottom:0}.ct-footer{font-size:85%;text-align:center;background-color:#f7f7f7}.ct-footer a{font-weight:500;color:#525f7f}.ct-footer a:hover,.ct-footer a:focus{color:#5e72e4}.ct-footer p{margin-bottom:0}@media (min-width: 576px){.ct-footer{text-align:left}}.ct-footer-links{padding-left:0;margin-bottom:1rem}.ct-footer-links li{display:inline-block}.ct-footer-links li+li{margin-left:1rem}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:.25em solid currentColor;border-right-color:transparent;border-radius:50%;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}/*!\n* https://github.com/YouCanBookMe/react-datetime\n*/.rdt{position:relative}.rdt .rdtPicker{-webkit-transition:all 150ms linear;-moz-transition:all 150ms linear;-o-transition:all 150ms linear;-ms-transition:all 150ms linear;transition:all 150ms linear;margin-top:-20px;visibility:hidden;display:block;opacity:0}.rdt.rdtOpen .rdtPicker{opacity:1;visibility:visible;margin-top:0}.rdtPicker{display:none;position:absolute;padding:20px;margin-top:1px;z-index:99999 !important;background:#fff;border-radius:.375rem;box-shadow:0px 10px 50px 0px rgba(0,0,0,0.2);-webkit-background-clip:padding-box;background-clip:padding-box;min-width:160px}.rdtPicker:before{display:inline-block;position:absolute;width:0;height:0;vertical-align:middle;content:"";top:-5px;left:10px;right:auto;color:#ffffff;border-bottom:0.4em solid;border-right:0.4em solid transparent;border-left:0.4em solid transparent}.rdtPicker:after{border-bottom:0.4em solid #ffffff;border-right:0.4em solid transparent;border-left:0.4em solid transparent;content:"";display:inline-block;position:absolute;top:-5px;left:10px}.rdtPicker{display:block;top:40px}.rdtStatic .rdtPicker{box-shadow:none;position:static}.rdtPicker .rdtTimeToggle{text-align:center;padding:10px;border-radius:4px;visibility:hidden;position:relative}.rdtPicker .rdtTimeToggle:before{visibility:visible;width:100%;height:100%;border-radius:3px;position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;font:normal normal normal 1em/1 "Nucleo";font-size:18px;content:"\\EA5E"}.rdtPicker table{width:100%;margin:0;border-color:#fff !important}.rdtPicker td,.rdtPicker th{text-align:center;padding:1px}.rdtPicker td{cursor:pointer}.rdtDay{font-size:.875rem;width:36px;height:36px;transition:all .15s ease;text-align:center;border:none;border-radius:50%}.rdtDay.rdtToday.rdtActive,.rdtDay.rdtActive,.rdtDay.rdtActive:hover,.rdtDay.start-date,.rdtDay.end-date,.rdtDay.middle-date,.rdtDay.start-date:hover,.rdtDay.end-date:hover,.rdtDay.middle-date:hover{background-color:#11cdef !important;color:#fff !important}.rdtDay.start-date{border-top-right-radius:0;border-bottom-right-radius:0}.rdtDay.middle-date{border-radius:0}.rdtDay.end-date{border-top-left-radius:0;border-bottom-left-radius:0}.rdtDays tr .dow{text-align:center;font-size:12px;font-weight:inherit;padding-bottom:5px;padding-top:10px;font-weight:300;font-size:.875rem;width:20px;height:20px}.rdtDays tr .rdtDay{color:#525f7f;font-size:.875rem}.rdtDays tr .rdtDay.rdtOld,.rdtDays tr .rdtDay.rdtNew{color:#adb5bd;font-weight:300}.rdtPicker td.rdtDay:hover,.rdtPicker td.rdtHour:hover,.rdtPicker td.rdtMinute:hover,.rdtPicker td.rdtSecond:hover,.rdtPicker .rdtTimeToggle:hover,.rdtPicker .rdtTimeToggle:hover:before{background:#eeeeee;cursor:pointer}.rdtPicker td.rdtToday{position:relative}.rdtPicker td.rdtActive.rdtToday:before{border-bottom-color:#fff}.rdtPicker td.rdtDisabled,.rdtPicker td.rdtDisabled:hover{background:none;color:#999999;cursor:not-allowed}.rdtPicker td span.rdtOld{color:#999999}.rdtPicker td span.rdtDisabled,.rdtPicker td span.rdtDisabled:hover{background:none;color:#999999;cursor:not-allowed}.rdtPicker tr .dow{width:14.2857%;border-bottom:none;font-size:.875rem;width:36px;height:36px;transition:all .15s ease;text-align:center;border:none;font-weight:500;border-radius:.375rem}.rdtPicker th.rdtSwitch{font-weight:500;border-radius:.375rem;font-size:.875rem;width:145px;height:36px;transition:all .15s ease;text-align:center;border:none}.rdtPicker th.rdtNext,.rdtPicker th.rdtPrev{font-size:.875rem;width:36px;height:36px;transition:all .15s ease;text-align:center;border:none;border-radius:.375rem;cursor:pointer}.rdtPicker .dow,.rdtPicker th.rdtSwitch,.rdtPicker th.rdtNext,.rdtPicker th.rdtPrev,.rdtPicker .rdtTimeToggle{color:#525f7f}.rdtPrev span,.rdtNext span{display:block;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rdtPicker th.rdtDisabled,.rdtPicker th.rdtDisabled:hover{background:none;color:#999999;cursor:not-allowed}.rdtPicker thead tr:first-child th{cursor:pointer}.rdtPicker thead tr:first-child th:hover{background:#eeeeee}.rdtPicker button{border:none;background:none;cursor:pointer}.rdtPicker button:hover{background-color:#eee}.rdtPicker thead button{width:100%;height:100%}td.rdtMonth,td.rdtYear{height:50px;width:25%;cursor:pointer}td.rdtMonth:hover,td.rdtYear:hover{background:#eee}.rdtCounters{display:inline-block}.rdtCounters>div{float:left;width:40px;font-weight:inherit;margin:3px;border-radius:50%}.rdtCounters .rdtCounterSeparator{width:0;border:1px solid transparent}.rdtCounter{height:100px}.rdtCounter{width:40px}.rdtCounter .rdtCount{padding:7px;height:40px;border:1px solid transparent}.rdtCounters .rdtCounter:last-child .rdtCount{color:#11cdef;border-radius:50%;border:1px solid #11cdef}.rdtCounterSeparator{padding:7px;line-height:100px}.rdtCounter .rdtBtn{line-height:40px;cursor:pointer;display:block;border-radius:50%;color:#adb5bd;-webkit-transition:all 60ms ease-in;-moz-transition:all 60ms ease-in;-o-transition:all 60ms ease-in;-ms-transition:all 60ms ease-in;transition:all 60ms ease-in;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.rdtCounter .rdtBtn:hover{background:#eee;color:#797979}.rdtCounter .rdtCount{font-size:inherit;line-height:25px}.rdtMilli{vertical-align:middle;padding-left:8px;width:48px}.rdtMilli input{width:100%;font-size:inherit;margin-top:37px}.rdtMonths,.rdtYears{padding-bottom:10px}.rdtMonths .rdtMonth,.rdtMonths .rdtYear,.rdtYears .rdtMonth,.rdtYears .rdtYear{display:inline-block;width:56px;height:56px;line-height:56px;margin:3px 3px;cursor:pointer;border-radius:50%;text-align:center}.rdtMonths .rdtMonth.rdtActive,.rdtMonths .rdtMonth.start-date,.rdtMonths .rdtMonth.end-date,.rdtMonths .rdtMonth.middle-date,.rdtMonths .rdtYear.rdtActive,.rdtMonths .rdtYear.start-date,.rdtMonths .rdtYear.end-date,.rdtMonths .rdtYear.middle-date,.rdtYears .rdtMonth.rdtActive,.rdtYears .rdtMonth.start-date,.rdtYears .rdtMonth.end-date,.rdtYears .rdtMonth.middle-date,.rdtYears .rdtYear.rdtActive,.rdtYears .rdtYear.start-date,.rdtYears .rdtYear.end-date,.rdtYears .rdtYear.middle-date{background-color:#11cdef !important;color:#fff}.input-group .input-group-prepend+.rdt .form-control{border-top-left-radius:0;border-bottom-left-radius:0}.input-group .input-group-prepend+.rdt .form-control{border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.rdt:not(:last-child) .form-control{border-top-right-radius:0;border-bottom-right-radius:0}.form-group .rdt{width:1%;margin-bottom:0;flex:1 1 auto}.btn .btn-inner--icon{margin-right:4px}.btn+.btn{margin-left:4px}button:focus,:focus{outline:none}@keyframes show-navbar-dropdown{0%{opacity:0;transition:visibility 0.25s, opacity 0.25s}100%{opacity:1}}.navbar .collapsing .navbar-toggler{pointer-events:none}.navbar .nav-item .nav-link-icon.nav-link i{margin-right:4px}.table .avatar-group .avatar{margin-right:4px}.table .badge i{margin-right:10px}html{width:360px;height:580px;margin:auto;background-color:white;overflow:auto}body{width:360px;height:580px;background-color:#fafbfd}body[data-lang="ko"]{word-break:keep-all;word-wrap:break-word;font-family:"Nanum Barun Gothic", sans-serif !important}#app{width:360px;height:580px}@keyframes spinAround{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}.form-text,.valid-feedback,.invalid-feedback{position:absolute}.form-control{color:black}.form-control:focus{color:black}button[data-loading="true"]{color:transparent !important;pointer-events:none}button[data-loading="true"]::after{position:absolute !important;left:calc(50% - (1em / 2));top:calc(50% - (1em / 2));-webkit-animation:spinAround 0.5s infinite linear;animation:spinAround 0.5s infinite linear;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;width:1em}\n',""]),e.exports=t},function(e,t,n){var r=n(31),i=n(951),o=n(1085),a=n(1086),s=n(1087),c=n(1088),l=n(1089);t=r(!1);var u=i(o),f=i(a),d=i(s),p=i(c),h=i(l);t.push([e.i,"/*--------------------------------\n\nhermes-dashboard-icons Web Font - built using nucleoapp.com\nLicense - nucleoapp.com/license/\n\n-------------------------------- */\n@font-face {\n  font-family: 'NucleoIcons';\n  src: url("+u+");\n  src: url("+u+") format('embedded-opentype'), url("+f+") format('woff2'), url("+d+") format('woff'), url("+p+") format('truetype'), url("+h+') format(\'svg\');\n  font-weight: normal;\n  font-style: normal;\n}\n\n/*------------------------\n    base class definition\n-------------------------*/\n.ni {\n  display: inline-block;\n  font: normal normal normal 14px/1 NucleoIcons;\n  font-size: inherit;\n  text-rendering: auto;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n}\n\n/*------------------------\n  change icon size\n-------------------------*/\n.ni-lg {\n  font-size: 1.33333333em;\n  line-height: 0.75em;\n  vertical-align: -15%;\n}\n\n.ni-2x {\n  font-size: 2em;\n}\n\n.ni-3x {\n  font-size: 3em;\n}\n\n.ni-4x {\n  font-size: 4em;\n}\n\n.ni-5x {\n  font-size: 5em;\n}\n\n/*----------------------------------\n  add a square/circle background\n-----------------------------------*/\n.ni.square,\n.ni.circle {\n  padding: 0.33333333em;\n  vertical-align: -16%;\n  background-color: #eee;\n}\n\n.ni.circle {\n  border-radius: 50%;\n}\n\n/*------------------------\n  list icons\n-------------------------*/\n.ni-ul {\n  padding-left: 0;\n  margin-left: 2.14285714em;\n  list-style-type: none;\n}\n\n.ni-ul>li {\n  position: relative;\n}\n\n.ni-ul>li>.ni {\n  position: absolute;\n  left: -1.57142857em;\n  top: 0.14285714em;\n  text-align: center;\n}\n\n.ni-ul>li>.ni.lg {\n  top: 0;\n  left: -1.35714286em;\n}\n\n.ni-ul>li>.ni.circle,\n.ni-ul>li>.ni.square {\n  top: -0.19047619em;\n  left: -1.9047619em;\n}\n\n/*------------------------\n  spinning icons\n-------------------------*/\n.ni.spin {\n  -webkit-animation: nc-spin 2s infinite linear;\n  -moz-animation: nc-spin 2s infinite linear;\n  animation: nc-spin 2s infinite linear;\n}\n\n@-webkit-keyframes nc-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n  }\n\n  100% {\n    -webkit-transform: rotate(360deg);\n  }\n}\n\n@-moz-keyframes nc-spin {\n  0% {\n    -moz-transform: rotate(0deg);\n  }\n\n  100% {\n    -moz-transform: rotate(360deg);\n  }\n}\n\n@keyframes nc-spin {\n  0% {\n    -webkit-transform: rotate(0deg);\n    -moz-transform: rotate(0deg);\n    -ms-transform: rotate(0deg);\n    -o-transform: rotate(0deg);\n    transform: rotate(0deg);\n  }\n\n  100% {\n    -webkit-transform: rotate(360deg);\n    -moz-transform: rotate(360deg);\n    -ms-transform: rotate(360deg);\n    -o-transform: rotate(360deg);\n    transform: rotate(360deg);\n  }\n}\n\n/*------------------------\n  rotated/flipped icons\n-------------------------*/\n.ni.rotate-90 {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);\n  -webkit-transform: rotate(90deg);\n  -moz-transform: rotate(90deg);\n  -ms-transform: rotate(90deg);\n  -o-transform: rotate(90deg);\n  transform: rotate(90deg);\n}\n\n.ni.rotate-180 {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);\n  -webkit-transform: rotate(180deg);\n  -moz-transform: rotate(180deg);\n  -ms-transform: rotate(180deg);\n  -o-transform: rotate(180deg);\n  transform: rotate(180deg);\n}\n\n.ni.rotate-270 {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);\n  -webkit-transform: rotate(270deg);\n  -moz-transform: rotate(270deg);\n  -ms-transform: rotate(270deg);\n  -o-transform: rotate(270deg);\n  transform: rotate(270deg);\n}\n\n.ni.flip-y {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0);\n  -webkit-transform: scale(-1, 1);\n  -moz-transform: scale(-1, 1);\n  -ms-transform: scale(-1, 1);\n  -o-transform: scale(-1, 1);\n  transform: scale(-1, 1);\n}\n\n.ni.flip-x {\n  filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);\n  -webkit-transform: scale(1, -1);\n  -moz-transform: scale(1, -1);\n  -ms-transform: scale(1, -1);\n  -o-transform: scale(1, -1);\n  transform: scale(1, -1);\n}\n\n/*------------------------\n    font icons\n-------------------------*/\n\n.ni-active-40::before {\n  content: "\\ea02";\n}\n\n.ni-air-baloon::before {\n  content: "\\ea03";\n}\n\n.ni-album-2::before {\n  content: "\\ea04";\n}\n\n.ni-align-center::before {\n  content: "\\ea05";\n}\n\n.ni-align-left-2::before {\n  content: "\\ea06";\n}\n\n.ni-ambulance::before {\n  content: "\\ea07";\n}\n\n.ni-app::before {\n  content: "\\ea08";\n}\n\n.ni-archive-2::before {\n  content: "\\ea09";\n}\n\n.ni-atom::before {\n  content: "\\ea0a";\n}\n\n.ni-badge::before {\n  content: "\\ea0b";\n}\n\n.ni-bag-17::before {\n  content: "\\ea0c";\n}\n\n.ni-basket::before {\n  content: "\\ea0d";\n}\n\n.ni-bell-55::before {\n  content: "\\ea0e";\n}\n\n.ni-bold-down::before {\n  content: "\\ea0f";\n}\n\n.ni-bold-left::before {\n  content: "\\ea10";\n}\n\n.ni-bold-right::before {\n  content: "\\ea11";\n}\n\n.ni-bold-up::before {\n  content: "\\ea12";\n}\n\n.ni-bold::before {\n  content: "\\ea13";\n}\n\n.ni-book-bookmark::before {\n  content: "\\ea14";\n}\n\n.ni-books::before {\n  content: "\\ea15";\n}\n\n.ni-box-2::before {\n  content: "\\ea16";\n}\n\n.ni-briefcase-24::before {\n  content: "\\ea17";\n}\n\n.ni-building::before {\n  content: "\\ea18";\n}\n\n.ni-bulb-61::before {\n  content: "\\ea19";\n}\n\n.ni-bullet-list-67::before {\n  content: "\\ea1a";\n}\n\n.ni-bus-front-12::before {\n  content: "\\ea1b";\n}\n\n.ni-button-pause::before {\n  content: "\\ea1c";\n}\n\n.ni-button-play::before {\n  content: "\\ea1d";\n}\n\n.ni-button-power::before {\n  content: "\\ea1e";\n}\n\n.ni-calendar-grid-58::before {\n  content: "\\ea1f";\n}\n\n.ni-camera-compact::before {\n  content: "\\ea20";\n}\n\n.ni-caps-small::before {\n  content: "\\ea21";\n}\n\n.ni-cart::before {\n  content: "\\ea22";\n}\n\n.ni-chart-bar-32::before {\n  content: "\\ea23";\n}\n\n.ni-chart-pie-35::before {\n  content: "\\ea24";\n}\n\n.ni-chat-round::before {\n  content: "\\ea25";\n}\n\n.ni-check-bold::before {\n  content: "\\ea26";\n}\n\n.ni-circle-08::before {\n  content: "\\ea27";\n}\n\n.ni-cloud-download-95::before {\n  content: "\\ea28";\n}\n\n.ni-cloud-upload-96::before {\n  content: "\\ea29";\n}\n\n.ni-compass-04::before {\n  content: "\\ea2a";\n}\n\n.ni-controller::before {\n  content: "\\ea2b";\n}\n\n.ni-credit-card::before {\n  content: "\\ea2c";\n}\n\n.ni-curved-next::before {\n  content: "\\ea2d";\n}\n\n.ni-delivery-fast::before {\n  content: "\\ea2e";\n}\n\n.ni-diamond::before {\n  content: "\\ea2f";\n}\n\n.ni-email-83::before {\n  content: "\\ea30";\n}\n\n.ni-fat-add::before {\n  content: "\\ea31";\n}\n\n.ni-fat-delete::before {\n  content: "\\ea32";\n}\n\n.ni-fat-remove::before {\n  content: "\\ea33";\n}\n\n.ni-favourite-28::before {\n  content: "\\ea34";\n}\n\n.ni-folder-17::before {\n  content: "\\ea35";\n}\n\n.ni-glasses-2::before {\n  content: "\\ea36";\n}\n\n.ni-hat-3::before {\n  content: "\\ea37";\n}\n\n.ni-headphones::before {\n  content: "\\ea38";\n}\n\n.ni-html5::before {\n  content: "\\ea39";\n}\n\n.ni-istanbul::before {\n  content: "\\ea3a";\n}\n\n.ni-key-25::before {\n  content: "\\ea3b";\n}\n\n.ni-laptop::before {\n  content: "\\ea3c";\n}\n\n.ni-like-2::before {\n  content: "\\ea3d";\n}\n\n.ni-lock-circle-open::before {\n  content: "\\ea3e";\n}\n\n.ni-map-big::before {\n  content: "\\ea3f";\n}\n\n.ni-mobile-button::before {\n  content: "\\ea40";\n}\n\n.ni-money-coins::before {\n  content: "\\ea41";\n}\n\n.ni-note-03::before {\n  content: "\\ea42";\n}\n\n.ni-notification-70::before {\n  content: "\\ea43";\n}\n\n.ni-palette::before {\n  content: "\\ea44";\n}\n\n.ni-paper-diploma::before {\n  content: "\\ea45";\n}\n\n.ni-pin-3::before {\n  content: "\\ea46";\n}\n\n.ni-planet::before {\n  content: "\\ea47";\n}\n\n.ni-ruler-pencil::before {\n  content: "\\ea48";\n}\n\n.ni-satisfied::before {\n  content: "\\ea49";\n}\n\n.ni-scissors::before {\n  content: "\\ea4a";\n}\n\n.ni-send::before {\n  content: "\\ea4b";\n}\n\n.ni-settings-gear-65::before {\n  content: "\\ea4c";\n}\n\n.ni-settings::before {\n  content: "\\ea4d";\n}\n\n.ni-single-02::before {\n  content: "\\ea4e";\n}\n\n.ni-single-copy-04::before {\n  content: "\\ea4f";\n}\n\n.ni-sound-wave::before {\n  content: "\\ea50";\n}\n\n.ni-spaceship::before {\n  content: "\\ea51";\n}\n\n.ni-square-pin::before {\n  content: "\\ea52";\n}\n\n.ni-support-16::before {\n  content: "\\ea53";\n}\n\n.ni-tablet-button::before {\n  content: "\\ea54";\n}\n\n.ni-tag::before {\n  content: "\\ea55";\n}\n\n.ni-tie-bow::before {\n  content: "\\ea56";\n}\n\n.ni-time-alarm::before {\n  content: "\\ea57";\n}\n\n.ni-trophy::before {\n  content: "\\ea58";\n}\n\n.ni-tv-2::before {\n  content: "\\ea59";\n}\n\n.ni-umbrella-13::before {\n  content: "\\ea5a";\n}\n\n.ni-user-run::before {\n  content: "\\ea5b";\n}\n\n.ni-vector::before {\n  content: "\\ea5c";\n}\n\n.ni-watch-time::before {\n  content: "\\ea5d";\n}\n\n.ni-world::before {\n  content: "\\ea5e";\n}\n\n.ni-zoom-split-in::before {\n  content: "\\ea5f";\n}\n\n.ni-collection::before {\n  content: "\\ea60";\n}\n\n.ni-image::before {\n  content: "\\ea61";\n}\n\n.ni-shop::before {\n  content: "\\ea62";\n}\n\n.ni-ungroup::before {\n  content: "\\ea63";\n}\n\n.ni-world-2::before {\n  content: "\\ea64";\n}\n\n.ni-ui-04::before {\n  content: "\\ea65";\n}\n\n\n/* all icon font classes list here */',""]),e.exports=t},function(e,t){e.exports="assets/nucleo-icons.eot"},function(e,t){e.exports="assets/nucleo-icons.woff2"},function(e,t){e.exports="assets/nucleo-icons.woff"},function(e,t){e.exports="assets/nucleo-icons.ttf"},function(e,t){e.exports="assets/nucleo-icons.svg"},function(e,t){e.exports="assets/fa-solid-900.eot"},function(e,t){e.exports="assets/fa-solid-900.woff2"},function(e,t){e.exports="assets/fa-solid-900.woff"},function(e,t){e.exports="assets/fa-solid-900.ttf"},function(e,t){e.exports="assets/fa-solid-900.svg"},function(e,t){e.exports="assets/fa-brands-400.eot"},function(e,t){e.exports="assets/fa-brands-400.woff2"},function(e,t){e.exports="assets/fa-brands-400.woff"},function(e,t){e.exports="assets/fa-brands-400.ttf"},function(e,t){e.exports="assets/fa-brands-400.svg"},function(e,t){e.exports="assets/NanumBarunGothic.ttf"},function(e,t){e.exports="assets/NanumBarunGothicLight.ttf"},function(e,t){e.exports="assets/NanumBarunGothicBold.ttf"},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useInteractionInfo=void 0;const o=n(20),a=i(n(883)),s=n(407),c=n(0);t.useInteractionInfo=e=>{let t=o.useLocation().search;t.startsWith("?")&&(t=t.slice(1));const n=a.default.parse(t),i=c.useRef(e);i.current=e;const l={interaction:"true"===n.interaction,interactionInternal:"true"===n.interactionInternal};return c.useEffect(()=>{l.interaction&&!l.interactionInternal&&(s.disableScroll(),s.fitPopupWindow())},[l.interaction,l.interactionInternal]),c.useEffect(()=>()=>{i.current&&i.current()},[]),c.useEffect(()=>{const e=()=>r(void 0,void 0,void 0,(function*(){i.current&&i.current()}));return addEventListener("beforeunload",e),()=>{removeEventListener("beforeunload",e)}},[]),l}},function(e,t,n){"use strict";var r=n(1105);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var f,d,p,h,m=e[u].replace(s,"%20"),b=m.indexOf(n);b>=0?(f=m.substr(0,b),d=m.substr(b+1)):(f=m,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),r(a,p)?i(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=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,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?o(a(e),(function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],(function(e){return s+encodeURIComponent(r(e))})).join(t):s+encodeURIComponent(r(e[a]))})).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoConfig=t.MemoConfig=void 0;const i=n(5),o=n(836),a=n(0);class s extends o.TxChainSetter{constructor(e,t){super(e,t),this._memo="",i.makeObservable(this)}get memo(){return this._memo}setMemo(e){this._memo=e}getError(){}}r([i.observable],s.prototype,"_memo",void 0),r([i.action],s.prototype,"setMemo",null),t.MemoConfig=s;t.useMemoConfig=(e,t)=>{const[n]=a.useState(()=>new s(e,t));return n.setChain(t),n}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.useFeeConfig=t.FeeConfig=void 0;const i=n(952),o=n(836),a=n(5),s=n(23),c=n(389),l=n(0),u=n(870);class f extends o.TxChainSetter{constructor(e,t,n,r,i,o){super(e,t),this.amountConfig=i,this.gasConfig=o,this._feeType=void 0,this._manualFee=void 0,this.getFeeTypePretty=c.computedFn(e=>{if(!this.feeCurrency)throw new Error("Fee currency not set");const t=this.getFeeTypePrimitive(e),n=this.feeCurrency;return new s.CoinPretty(n,new s.Int(t.amount)).precision(n.coinDecimals).maxDecimals(n.coinDecimals)}),this._sender=n,this.queryBalances=r,a.makeObservable(this)}setQueryBalances(e){this.queryBalances=e}setSender(e){this._sender=e}setFeeType(e){this._feeType=e,this._manualFee=void 0}get isManual(){return void 0===this.feeType}get feeType(){return this._feeType}setManualFee(e){this._manualFee=e,this._feeType=void 0}get feeCurrencies(){return this.chainInfo.feeCurrencies}get feeCurrency(){return this.chainInfo.feeCurrencies[0]}toStdFee(){const e=this.getFeePrimitive();return e?{gas:this.gasConfig.gas.toString(),amount:[e]}:{gas:this.gasConfig.gas.toString(),amount:[]}}get fee(){if(!this.feeCurrency)return;const e=this.getFeePrimitive();return e?new s.CoinPretty(this.feeCurrency,new s.Int(e.amount)):void 0}getFeePrimitive(){if(this.feeCurrency)return this._manualFee?this._manualFee:this.feeType?this.getFeeTypePrimitive(this.feeType):void 0}getFeeTypePrimitive(e){if(!this.feeCurrency)throw new Error("Fee currency not set");const t=this.chainInfo.gasPriceStep?this.chainInfo.gasPriceStep:i.DefaultGasPriceStep,n=new s.Dec(t[e].toString()).mul(new s.Dec(this.gasConfig.gas));return{denom:this.feeCurrency.coinMinimalDenom,amount:n.truncate().toString()}}getError(){if(this.gasConfig.getError())return this.gasConfig.getError();const e=this.getFeePrimitive();if(!e)return;const t=this.amountConfig.getAmountPrimitive();let n;if(n=e&&e.denom===t.denom?new s.Coin(e.denom,new s.Int(e.amount).add(new s.Int(t.amount))):new s.Coin(e.denom,new s.Int(e.amount)),n.amount.gt(new s.Int(0))){const e=this.queryBalances.getQueryBech32Address(this._sender).balances.find(e=>e.currency.coinMinimalDenom===n.denom);if(!e)return new u.InsufficientFeeError("insufficient fee");if(!e.response&&!e.error)return new u.NotLoadedFeeError(e.currency.coinDenom+" is not loaded yet");if(e.balance.toDec().mul(s.DecUtils.getPrecisionDec(e.currency.coinDecimals)).truncate().lt(n.amount))return new u.InsufficientFeeError("insufficient fee")}}}r([a.observable.ref],f.prototype,"queryBalances",void 0),r([a.observable],f.prototype,"_sender",void 0),r([a.observable],f.prototype,"_feeType",void 0),r([a.observable],f.prototype,"_manualFee",void 0),r([a.action],f.prototype,"setQueryBalances",null),r([a.action],f.prototype,"setSender",null),r([a.action],f.prototype,"setFeeType",null),r([a.action],f.prototype,"setManualFee",null),r([a.computed],f.prototype,"fee",null),t.FeeConfig=f;t.useFeeConfig=(e,t,n,r,i,o)=>{const[a]=l.useState(()=>new f(e,t,n,r,i,o));return a.setChain(t),a.setQueryBalances(r),a.setSender(n),a}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.useRecipientConfig=t.RecipientConfig=void 0;const i=n(836),o=n(5),a=n(870),s=n(11),c=n(0),l=n(932);class u extends i.TxChainSetter{constructor(e,t){super(e,t),this._rawRecipient="",this._ensEndpoint=void 0,this.ensFetcherMap=new Map,o.makeObservable(this)}get recipient(){if(l.ObservableEnsFetcher.isValidENS(this.rawRecipient)){const e=this.getENSFetcher(this.rawRecipient);return e?e.isFetching?"":e.address&&null==e.error&&20===e.address.length?new s.Bech32Address(e.address).toBech32(this.chainInfo.bech32Config.bech32PrefixAccAddr):"":""}return this._rawRecipient}getENSFetcher(e){if(!this._ensEndpoint||null==this.chainInfo.coinType)return;this.ensFetcherMap.has(this._ensEndpoint)||o.runInAction(()=>{this.ensFetcherMap.set(this._ensEndpoint,new l.ObservableEnsFetcher(this._ensEndpoint))});const t=this.ensFetcherMap.get(this._ensEndpoint);return t.setNameAndCoinType(e,this.chainInfo.coinType),t}setENSEndpoint(e){this._ensEndpoint=e}getError(){if(!this.rawRecipient)return new a.EmptyAddressError("Address is empty");if(l.ObservableEnsFetcher.isValidENS(this.rawRecipient)){const e=this.getENSFetcher(this.rawRecipient);return e?e.isFetching?new a.ENSIsFetchingError("ENS is fetching"):e.address&&null==e.error&&20===e.address.length?void 0:new a.ENSFailedToFetchError("Failed to fetch the address from ENS"):new a.ENSNotSupportedError("ENS not supported for this chain")}const e=this.chainInfo.bech32Config.bech32PrefixAccAddr;try{s.Bech32Address.validate(this.recipient,e)}catch(e){return new a.InvalidBech32Error("Invalid bech32: "+(e.message||e.toString()))}}get rawRecipient(){return this._rawRecipient}setRawRecipient(e){this._rawRecipient=e}}r([o.observable],u.prototype,"_rawRecipient",void 0),r([o.observable],u.prototype,"_ensEndpoint",void 0),r([o.observable.shallow],u.prototype,"ensFetcherMap",void 0),r([o.action],u.prototype,"setENSEndpoint",null),r([o.action],u.prototype,"setRawRecipient",null),t.RecipientConfig=u;t.useRecipientConfig=(e,t,n)=>{const[r]=c.useState(()=>new u(e,t));return r.setChain(t),r.setENSEndpoint(n),r}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableEnsFetcher=void 0;const o=i(n(953)),a=n(5),s=n(2),c=n(1253),{Resolver:l}=n(1258),u=new Map;class f{constructor(e){this.endpoint=e,this._isFetching=!1,this._name="",this._coinType=void 0,this._address=void 0,this._error=void 0,this.ens=function(e){if(u.has(e))return u.get(e);const t=new o.default.providers.HttpProvider(e);return u.set(e,new c(t)),u.get(e)}(e),a.makeObservable(this)}static isValidENS(e){const t=e.split(".");if(t.length<=1)return!1;const n=t[t.length-1];return"eth"===n||"xyz"===n||"luxe"===n||"kred"===n}setNameAndCoinType(e,t){const n=this._name,r=this._coinType;this._name=e,this._coinType=t,this._name===n&&this._coinType===r||this.fetch(this._name,this._coinType)}get isFetching(){return this._isFetching}get name(){return this._name}get coinType(){return this._coinType}get address(){return this._address}get error(){return this._error}*fetch(e,t){this._isFetching=!0;try{const n=yield this.ens.resolver(e,l.abi),r=yield n.addr(t);this._address=s.Buffer.from(r.replace("0x",""),"hex"),this._error=void 0}catch(e){this._error=e}this._isFetching=!1}}r([a.observable],f.prototype,"_isFetching",void 0),r([a.observable],f.prototype,"_name",void 0),r([a.observable],f.prototype,"_coinType",void 0),r([a.observable.ref],f.prototype,"_address",void 0),r([a.observable.ref],f.prototype,"_error",void 0),r([a.flow],f.prototype,"fetch",null),t.ObservableEnsFetcher=f},function(e){e.exports=JSON.parse('{"name":"web3","version":"1.3.1","description":"Ethereum JavaScript API","repository":"https://github.com/ethereum/web3.js","license":"LGPL-3.0","engines":{"node":">=8.0.0"},"main":"lib/index.js","bugs":{"url":"https://github.com/ethereum/web3.js/issues"},"keywords":["Ethereum","JavaScript","API"],"author":"ethereum.org","types":"types/index.d.ts","scripts":{"tsc":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types"},"authors":[{"name":"Fabian Vogelsteller","email":"fabian@ethereum.org","homepage":"http://frozeman.de"},{"name":"Marek Kotewicz","email":"marek@parity.io","url":"https://github.com/debris"},{"name":"Marian Oancea","url":"https://github.com/cubedro"},{"name":"Gav Wood","email":"g@parity.io","homepage":"http://gavwood.com"},{"name":"Jeffery Wilcke","email":"jeffrey.wilcke@ethereum.org","url":"https://github.com/obscuren"}],"dependencies":{"web3-bzz":"1.3.1","web3-core":"1.3.1","web3-eth":"1.3.1","web3-eth-personal":"1.3.1","web3-net":"1.3.1","web3-shh":"1.3.1","web3-utils":"1.3.1"},"devDependencies":{"@types/node":"^12.12.6","dtslint":"^3.4.1","typescript":"^3.9.5"},"gitHead":"1a850aec1d8fa86bfacef1f3ffe71839b87e78e7"}')},function(e,t,n){"use strict";const{callbackify:r}=n(901);var i=n(147),o=n(145).errors,a=n(959),s=n(1126),c=n(1127),l=function e(t,n){this.provider=null,this.providers=e.providers,this.setProvider(t,n),this.subscriptions=new Map};l.givenProvider=c,l.providers={WebsocketProvider:n(1128),HttpProvider:n(1135),IpcProvider:n(1145)},l.prototype.setProvider=function(e,t){var n=this;if(e&&"string"==typeof e&&this.providers)if(/^http(s)?:\/\//i.test(e))e=new this.providers.HttpProvider(e);else if(/^ws(s)?:\/\//i.test(e))e=new this.providers.WebsocketProvider(e);else if(e&&"object"==typeof t&&"function"==typeof t.connect)e=new this.providers.IpcProvider(e,t);else if(e)throw new Error("Can't autodetect provider for \""+e+'"');if(this.provider&&this.provider.connected&&this.clearSubscriptions(),this.provider=e||null,this.provider&&this.provider.on){this.provider.on("data",(function(e,t){(e=e||t).method&&e.params&&e.params.subscription&&n.subscriptions.has(e.params.subscription)&&n.subscriptions.get(e.params.subscription).callback(null,e.params.result)})),this.provider.on("connect",(function(){n.subscriptions.forEach((function(e){e.subscription.resubscribe()}))})),this.provider.on("error",(function(e){n.subscriptions.forEach((function(t){t.callback(e)}))}));const e=function(e){n._isCleanCloseEvent(e)&&!n._isIpcCloseError(e)||(n.subscriptions.forEach((function(t){t.callback(o.ConnectionCloseError(e)),n.subscriptions.delete(t.subscription.id)})),n.provider&&n.provider.emit&&n.provider.emit("error",o.ConnectionCloseError(e))),n.provider&&n.provider.emit&&n.provider.emit("end",e)};this.provider.on("close",e),this.provider.on("disconnect",e)}},l.prototype.send=function(e,t){if(t=t||function(){},!this.provider)return t(o.InvalidProvider());const{method:n,params:i}=e,s=a.toPayload(n,i),c=this._jsonrpcResultCallback(t,s);if(this.provider.request){r(this.provider.request.bind(this.provider))({method:n,params:i},t)}else if(this.provider.sendAsync)this.provider.sendAsync(s,c);else{if(!this.provider.send)throw new Error("Provider does not have a request or send method to use.");this.provider.send(s,c)}},l.prototype.sendBatch=function(e,t){if(!this.provider)return t(o.InvalidProvider());var n=a.toBatchPayload(e);this.provider[this.provider.sendAsync?"sendAsync":"send"](n,(function(e,n){return e?t(e):i.isArray(n)?void t(null,n):t(o.InvalidResponse(n))}))},l.prototype.addSubscription=function(e,t){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions.set(e.id,{callback:t,subscription:e})},l.prototype.removeSubscription=function(e,t){if(this.subscriptions.has(e)){var n=this.subscriptions.get(e).subscription.options.type;return this.subscriptions.delete(e),void this.send({method:n+"_unsubscribe",params:[e]},t)}"function"==typeof t&&t(null)},l.prototype.clearSubscriptions=function(e){try{var t=this;return this.subscriptions.size>0&&this.subscriptions.forEach((function(n,r){e&&"syncing"===n.name||t.removeSubscription(r)})),this.provider.reset&&this.provider.reset(),!0}catch(e){throw new Error("Error while clearing subscriptions: "+e)}},l.prototype._isCleanCloseEvent=function(e){return"object"==typeof e&&([1e3].includes(e.code)||!0===e.wasClean)},l.prototype._isIpcCloseError=function(e){return"boolean"==typeof e&&e},l.prototype._jsonrpcResultCallback=function(e,t){return function(n,r){return r&&r.id&&t.id!==r.id?e(new Error(`Wrong response id ${r.id} (expected: ${t.id}) in ${JSON.stringify(t)}`)):n?e(n):r&&r.error?e(o.ErrorResponse(r)):a.isValidResponse(r)?void e(null,r.result):e(o.InvalidResponse(r))}},e.exports={Manager:l,BatchManager:s}},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},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 n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";e.exports={ErrorResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:JSON.stringify(e),n=e.error&&e.error.data?e.error.data:null,r=new Error("Returned error: "+t);return r.data=n,r},InvalidNumberOfParams:function(e,t,n){return new Error('Invalid number of parameters for "'+n+'". Got '+e+" expected "+t+"!")},InvalidConnection:function(e,t){return this.ConnectionError("CONNECTION ERROR: Couldn't connect to node "+e+".",t)},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)},ConnectionTimeout:function(e){return new Error("CONNECTION TIMEOUT: timeout of "+e+" ms achived")},ConnectionNotOpenError:function(e){return this.ConnectionError("connection not open on send()",e)},ConnectionCloseError:function(e){return"object"==typeof e&&e.code&&e.reason?this.ConnectionError("CONNECTION ERROR: The connection got closed with the close code `"+e.code+"` and the following reason string `"+e.reason+"`",e):new Error("CONNECTION ERROR: The connection closed unexpectedly")},MaxAttemptsReachedOnReconnectingError:function(){return new Error("Maximum number of reconnect attempts reached!")},PendingRequestsOnReconnectingError:function(){return new Error("CONNECTION ERROR: Provider started to reconnect before the response got received!")},ConnectionError:function(e,t){const n=new Error(e);return t&&(n.code=t.code,n.reason=t.reason),n},RevertInstructionError:function(e,t){var n=new Error("Your request got reverted with the following reason string: "+e);return n.reason=e,n.signature=t,n},TransactionRevertInstructionError:function(e,t,n){var r=new Error("Transaction has been reverted by the EVM:\n"+JSON.stringify(n,null,2));return r.reason=e,r.signature=t,r.receipt=n,r},TransactionError:function(e,t){var n=new Error(e);return n.receipt=t,n},NoContractAddressFoundError:function(e){return this.TransactionError("The transaction receipt didn't contain a contract address.",e)},ContractCodeNotStoredError:function(e){return this.TransactionError("The contract code couldn't be stored, please check your gas limit.",e)},TransactionRevertedWithoutReasonError:function(e){return this.TransactionError("Transaction has been reverted by the EVM:\n"+JSON.stringify(e,null,2),e)},TransactionOutOfGasError:function(e){return this.TransactionError("Transaction ran out of gas. Please provide more gas:\n"+JSON.stringify(e,null,2),e)},ResolverMethodMissingError:function(e,t){return new Error("The resolver at "+e+'does not implement requested method: "'+t+'".')},ContractMissingABIError:function(){return new Error("You must provide the json interface of the contract when instantiating a contract object.")},ContractOnceRequiresCallbackError:function(){return new Error("Once requires a callback as the second parameter.")},ContractEventDoesNotExistError:function(e){return new Error('Event "'+e+"\" doesn't exist in this contract.")},ContractReservedEventError:function(e){return new Error('The event "'+e+"\" is a reserved event name, you can't use it.")},ContractMissingDeployDataError:function(){return new Error('No "data" specified in neither the given options, nor the default options.')},ContractNoAddressDefinedError:function(){return new Error("This contract object doesn't have address set yet, please set an address first.")},ContractNoFromAddressDefinedError:function(){return new Error('No "from" address specified in neither the given options, nor the default options.')}}},function(e,t,n){"use strict";var r=n(147),i=n(213),o=n(958),a=function(e){return i.toBN(e).toString(10)},s=function(e){if(void 0!==e)return function(e){return"latest"===e||"pending"===e||"earliest"===e}(e)?e:"genesis"===e?"0x0":i.isHexStrict(e)?r.isString(e)?e.toLowerCase():e:i.numberToHex(e)},c=function(e){if(e.to&&(e.to=f(e.to)),e.data&&e.input)throw new Error('You can\'t have "data" and "input" as properties of transactions at the same time, please use either "data" or "input" instead.');if(!e.data&&e.input&&(e.data=e.input,delete e.input),e.data&&!e.data.startsWith("0x")&&(e.data="0x"+e.data),e.data&&!i.isHex(e.data))throw new Error("The data field must be HEX encoded data.");return(e.gas||e.gasLimit)&&(e.gas=e.gas||e.gasLimit),["gasPrice","gas","value","nonce"].filter((function(t){return void 0!==e[t]})).forEach((function(t){e[t]=i.numberToHex(e[t])})),e},l=function(e){return null!==e.blockNumber&&(e.blockNumber=i.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=i.hexToNumber(e.transactionIndex)),e.nonce=i.hexToNumber(e.nonce),e.gas=i.hexToNumber(e.gas),e.gasPrice=a(e.gasPrice),e.value=a(e.value),e.to&&i.isAddress(e.to)?e.to=i.toChecksumAddress(e.to):e.to=null,e.from&&(e.from=i.toChecksumAddress(e.from)),e},u=function(e){if("string"==typeof e.blockHash&&"string"==typeof e.transactionHash&&"string"==typeof e.logIndex){var t=i.sha3(e.blockHash.replace("0x","")+e.transactionHash.replace("0x","")+e.logIndex.replace("0x",""));e.id="log_"+t.replace("0x","").substr(0,8)}else e.id||(e.id=null);return null!==e.blockNumber&&(e.blockNumber=i.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=i.hexToNumber(e.transactionIndex)),null!==e.logIndex&&(e.logIndex=i.hexToNumber(e.logIndex)),e.address&&(e.address=i.toChecksumAddress(e.address)),e},f=function(e){var t=new o(e);if(t.isValid()&&t.isDirect())return t.toAddress().toLowerCase();if(i.isAddress(e))return"0x"+e.toLowerCase().replace("0x","");throw new Error(`Provided address ${e} is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted.`)};e.exports={inputDefaultBlockNumberFormatter:function(e){return s(this&&null==e?this.defaultBlock:e)},inputBlockNumberFormatter:s,inputCallFormatter:function(e){var t=(e=c(e)).from||(this?this.defaultAccount:null);return t&&(e.from=f(t)),e},inputTransactionFormatter:function(e){if(e=c(e),!r.isNumber(e.from)&&!r.isObject(e.from)){if(e.from=e.from||(this?this.defaultAccount:null),!e.from&&!r.isNumber(e.from))throw new Error('The send transactions "from" field must be defined!');e.from=f(e.from)}return e},inputAddressFormatter:f,inputPostFormatter:function(e){return e.ttl&&(e.ttl=i.numberToHex(e.ttl)),e.workToProve&&(e.workToProve=i.numberToHex(e.workToProve)),e.priority&&(e.priority=i.numberToHex(e.priority)),r.isArray(e.topics)||(e.topics=e.topics?[e.topics]:[]),e.topics=e.topics.map((function(e){return 0===e.indexOf("0x")?e:i.fromUtf8(e)})),e},inputLogFormatter:function(e){var t=function(e){return null==e?null:0===(e=String(e)).indexOf("0x")?e:i.fromUtf8(e)};return(e.fromBlock||0===e.fromBlock)&&(e.fromBlock=s(e.fromBlock)),(e.toBlock||0===e.toBlock)&&(e.toBlock=s(e.toBlock)),e.topics=e.topics||[],e.topics=e.topics.map((function(e){return r.isArray(e)?e.map(t):t(e)})),t=null,e.address&&(e.address=r.isArray(e.address)?e.address.map((function(e){return f(e)})):f(e.address)),e},inputSignFormatter:function(e){return i.isHexStrict(e)?e:i.utf8ToHex(e)},inputStorageKeysFormatter:function(e){return e.map(i.numberToHex)},outputProofFormatter:function(e){return e.address=i.toChecksumAddress(e.address),e.nonce=i.hexToNumberString(e.nonce),e.balance=i.hexToNumberString(e.balance),e},outputBigNumberFormatter:a,outputTransactionFormatter:l,outputTransactionReceiptFormatter:function(e){if("object"!=typeof e)throw new Error("Received receipt is invalid: "+e);return null!==e.blockNumber&&(e.blockNumber=i.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=i.hexToNumber(e.transactionIndex)),e.cumulativeGasUsed=i.hexToNumber(e.cumulativeGasUsed),e.gasUsed=i.hexToNumber(e.gasUsed),r.isArray(e.logs)&&(e.logs=e.logs.map(u)),e.contractAddress&&(e.contractAddress=i.toChecksumAddress(e.contractAddress)),void 0!==e.status&&null!==e.status&&(e.status=Boolean(parseInt(e.status))),e},outputBlockFormatter:function(e){return e.gasLimit=i.hexToNumber(e.gasLimit),e.gasUsed=i.hexToNumber(e.gasUsed),e.size=i.hexToNumber(e.size),e.timestamp=i.hexToNumber(e.timestamp),null!==e.number&&(e.number=i.hexToNumber(e.number)),e.difficulty&&(e.difficulty=a(e.difficulty)),e.totalDifficulty&&(e.totalDifficulty=a(e.totalDifficulty)),r.isArray(e.transactions)&&e.transactions.forEach((function(e){if(!r.isString(e))return l(e)})),e.miner&&(e.miner=i.toChecksumAddress(e.miner)),e},outputLogFormatter:u,outputPostFormatter:function(e){return e.expiry=i.hexToNumber(e.expiry),e.sent=i.hexToNumber(e.sent),e.ttl=i.hexToNumber(e.ttl),e.workProved=i.hexToNumber(e.workProved),e.topics||(e.topics=[]),e.topics=e.topics.map((function(e){return i.toUtf8(e)})),e},outputSyncingFormatter:function(e){return e.startingBlock=i.hexToNumber(e.startingBlock),e.currentBlock=i.hexToNumber(e.currentBlock),e.highestBlock=i.hexToNumber(e.highestBlock),e.knownStates&&(e.knownStates=i.hexToNumber(e.knownStates),e.pulledStates=i.hexToNumber(e.pulledStates)),e}}},function(e,t,n){"use strict";var r=n(1120),i=n(954),o=new r(0),a=new r(-1),s={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function c(e){var t=e?e.toLowerCase():"ether",n=s[t];if("string"!=typeof n)throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(s,null,2));return new r(n,10)}function l(e){if("string"==typeof e){if(!e.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).");return e}if("number"==typeof e)return String(e);if("object"==typeof e&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw new Error("while converting number to string, invalid number value '"+e+"' type "+typeof e+".")}e.exports={unitMap:s,numberToString:l,getValueOfUnit:c,fromWei:function(e,t,n){var r=i(e),l=r.lt(o),u=c(t),f=s[t].length-1||1,d=n||{};l&&(r=r.mul(a));for(var p=r.mod(u).toString(10);p.length<f;)p="0"+p;d.pad||(p=p.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var h=r.div(u).toString(10);d.commify&&(h=h.replace(/\B(?=(\d{3})+(?!\d))/g,","));var m=h+("0"==p?"":"."+p);return l&&(m="-"+m),m},toWei:function(e,t){var n=l(e),i=c(t),o=s[t].length-1||1,u="-"===n.substring(0,1);if(u&&(n=n.substring(1)),"."===n)throw new Error("[ethjs-unit] while converting number "+e+" to wei, invalid value");var f=n.split(".");if(f.length>2)throw new Error("[ethjs-unit] while converting number "+e+" to wei,  too many decimal points");var d=f[0],p=f[1];if(d||(d="0"),p||(p="0"),p.length>o)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;p.length<o;)p+="0";d=new r(d),p=new r(p);var h=d.mul(i).add(p);return u&&(h=h.mul(a)),new r(h.toString(10),10)}}},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(2).Buffer}catch(e){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),o=t;o<i;o++){var a=e.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(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"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("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 o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.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},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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"],u=[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],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,f=67108863&c,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var h=l-p|0;u+=(a=(i=0|e.words[h])*(o=0|t.words[p])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],p=f[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modn(p).toString(e);n=(h=h.idivn(p)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,l=new e(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.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()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,n,r;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?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.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)},o.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,i,o,a=e.words,s=t.words,c=n.words,l=0,u=0|a[0],f=8191&u,d=u>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],y=8191&b,g=b>>>13,v=0|a[3],w=8191&v,_=v>>>13,k=0|a[4],x=8191&k,S=k>>>13,O=0|a[5],E=8191&O,T=O>>>13,A=0|a[6],M=8191&A,I=A>>>13,P=0|a[7],C=8191&P,j=P>>>13,D=0|a[8],R=8191&D,N=D>>>13,B=0|a[9],L=8191&B,U=B>>>13,F=0|s[0],q=8191&F,z=F>>>13,V=0|s[1],H=8191&V,$=V>>>13,K=0|s[2],W=8191&K,G=K>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var be=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(h,q),i=(i=Math.imul(h,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(g,q)|0,o=Math.imul(g,z),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,$)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,$)|0;var ge=(l+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,$)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ve=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(S,q)|0,o=Math.imul(S,z),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,G)|0,r=r+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,z))+Math.imul(T,q)|0,o=Math.imul(T,z),r=r+Math.imul(x,H)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,z))+Math.imul(I,q)|0,o=Math.imul(I,z),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(l+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,z))+Math.imul(j,q)|0,o=Math.imul(j,z),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var xe=(l+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(N,q)|0,o=Math.imul(N,z),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(U,q)|0,o=Math.imul(U,z),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,le)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Oe=(l+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,H),i=(i=Math.imul(L,$))+Math.imul(U,H)|0,o=Math.imul(U,$),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ee=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,G))+Math.imul(U,W)|0,o=Math.imul(U,G),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(l+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(g,he)|0))<<13)|0;l=((o=o+Math.imul(g,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(U,Q)|0,o=Math.imul(U,Y),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,le)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ae=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,he)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Me=(l+(r=r+Math.imul(x,he)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,he)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,le)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(r=r+Math.imul(E,he)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(T,he)|0))<<13)|0;l=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var Pe=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(U,ce)|0,o=Math.imul(U,le),r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,de)|0;var Ce=(l+(r=r+Math.imul(C,he)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(j,he)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var je=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(N,he)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863;var De=(l+(r=Math.imul(L,he))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,he)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=be,c[1]=ye,c[2]=ge,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=xe,c[8]=Se,c[9]=Oe,c[10]=Ee,c[11]=Te,c[12]=Ae,c[13]=Me,c[14]=Ie,c[15]=Pe,c[16]=Ce,c[17]=je,c[18]=De,0!==l&&(c[19]=l,n.length++),n};function h(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=d),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,f=(0|e.words[u])*(0|t.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):h(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},m.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=c,d=l,p=0;p<a;p++){var h=n[u+p],m=r[u+p],b=n[u+p+a],y=r[u+p+a],g=f*b-d*y;y=f*y+d*b,b=g,n[u+p]=h+b,r[u+p]=m+y,n[u+p+a]=h-b,r[u+p+a]=m-y,p!==s&&(g=c*f-l*d,d=c*d+l*f,f=g)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,l,r),this.transform(a,o,s,c,r,i),this.transform(l,o,u,f,r,i);for(var p=0;p<r;p++){var h=s[p]*u[p]-c[p]*f[p];c[p]=s[p]*f[p]+c[p]*u[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),h(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<n;this.words[t]=c|a,a=s>>>26-n}a&&(this.words[t]=a,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()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=n;if(i-=a,i=Math.max(0,i),c){for(var l=0;l<a;l++)c.words[l]=this.words[l];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var f=0|this.words[l];this.words[l]=u<<26-o|f>>>o,u=f&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(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)},o.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},o.prototype.isubn=function(e){if(r("number"==typeof e),r(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()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(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},o.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},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}y.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(g,y),g.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(v,y),i(w,y),i(_,y),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();r(b<h);var y=this.pow(f,new o(1).iushln(h-b-1));d=d.redMul(y),f=y.redSqr(),p=p.redMul(f),h=b}return d},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var f=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,k),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(71)(e))},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(2).Buffer}catch(e){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),o=t;o<i;o++){var a=e.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(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"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("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 o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.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},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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"],u=[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],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,f=67108863&c,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var h=l-p|0;u+=(a=(i=0|e.words[h])*(o=0|t.words[p])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],p=f[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modn(p).toString(e);n=(h=h.idivn(p)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,l=new e(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.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()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,n,r;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?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.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)},o.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,i,o,a=e.words,s=t.words,c=n.words,l=0,u=0|a[0],f=8191&u,d=u>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],y=8191&b,g=b>>>13,v=0|a[3],w=8191&v,_=v>>>13,k=0|a[4],x=8191&k,S=k>>>13,O=0|a[5],E=8191&O,T=O>>>13,A=0|a[6],M=8191&A,I=A>>>13,P=0|a[7],C=8191&P,j=P>>>13,D=0|a[8],R=8191&D,N=D>>>13,B=0|a[9],L=8191&B,U=B>>>13,F=0|s[0],q=8191&F,z=F>>>13,V=0|s[1],H=8191&V,$=V>>>13,K=0|s[2],W=8191&K,G=K>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var be=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(h,q),i=(i=Math.imul(h,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(g,q)|0,o=Math.imul(g,z),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,$)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,$)|0;var ge=(l+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,$)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ve=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(S,q)|0,o=Math.imul(S,z),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,G)|0,r=r+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,z))+Math.imul(T,q)|0,o=Math.imul(T,z),r=r+Math.imul(x,H)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,z))+Math.imul(I,q)|0,o=Math.imul(I,z),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(l+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,z))+Math.imul(j,q)|0,o=Math.imul(j,z),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var xe=(l+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(N,q)|0,o=Math.imul(N,z),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(U,q)|0,o=Math.imul(U,z),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,le)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Oe=(l+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,H),i=(i=Math.imul(L,$))+Math.imul(U,H)|0,o=Math.imul(U,$),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ee=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,G))+Math.imul(U,W)|0,o=Math.imul(U,G),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(l+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(g,he)|0))<<13)|0;l=((o=o+Math.imul(g,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(U,Q)|0,o=Math.imul(U,Y),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,le)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ae=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,he)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Me=(l+(r=r+Math.imul(x,he)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,he)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,le)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(r=r+Math.imul(E,he)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(T,he)|0))<<13)|0;l=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var Pe=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(U,ce)|0,o=Math.imul(U,le),r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,de)|0;var Ce=(l+(r=r+Math.imul(C,he)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(j,he)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var je=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(N,he)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863;var De=(l+(r=Math.imul(L,he))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,he)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=be,c[1]=ye,c[2]=ge,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=xe,c[8]=Se,c[9]=Oe,c[10]=Ee,c[11]=Te,c[12]=Ae,c[13]=Me,c[14]=Ie,c[15]=Pe,c[16]=Ce,c[17]=je,c[18]=De,0!==l&&(c[19]=l,n.length++),n};function h(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=d),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,f=(0|e.words[u])*(0|t.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):h(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},m.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=c,d=l,p=0;p<a;p++){var h=n[u+p],m=r[u+p],b=n[u+p+a],y=r[u+p+a],g=f*b-d*y;y=f*y+d*b,b=g,n[u+p]=h+b,r[u+p]=m+y,n[u+p+a]=h-b,r[u+p+a]=m-y,p!==s&&(g=c*f-l*d,d=c*d+l*f,f=g)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,l,r),this.transform(a,o,s,c,r,i),this.transform(l,o,u,f,r,i);for(var p=0;p<r;p++){var h=s[p]*u[p]-c[p]*f[p];c[p]=s[p]*f[p]+c[p]*u[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),h(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<n;this.words[t]=c|a,a=s>>>26-n}a&&(this.words[t]=a,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()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=n;if(i-=a,i=Math.max(0,i),c){for(var l=0;l<a;l++)c.words[l]=this.words[l];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var f=0|this.words[l];this.words[l]=u<<26-o|f>>>o,u=f&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(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)},o.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},o.prototype.isubn=function(e){if(r("number"==typeof e),r(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()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(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},o.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},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}y.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(g,y),g.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(v,y),i(w,y),i(_,y),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();r(b<h);var y=this.pow(f,new o(1).iushln(h-b-1));d=d.redMul(y),f=y.redSqr(),p=p.redMul(f),h=b}return d},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var f=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,k),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(71)(e))},function(e,t,n){!function(e){var t,n,r,i=String.fromCharCode;function o(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function a(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function s(e,t){return i(e>>t&63|128)}function c(e){if(0==(4294967168&e))return i(e);var t="";return 0==(4294965248&e)?t=i(e>>6&31|192):0==(4294901760&e)?(a(e),t=i(e>>12&15|224),t+=s(e,6)):0==(4292870144&e)&&(t=i(e>>18&7|240),t+=s(e,12),t+=s(e,6)),t+=i(63&e|128)}function l(){if(r>=n)throw Error("Invalid byte index");var e=255&t[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function u(){var e,i;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(e=255&t[r],r++,0==(128&e))return e;if(192==(224&e)){if((i=(31&e)<<6|l())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&e)){if((i=(15&e)<<12|l()<<6|l())>=2048)return a(i),i;throw Error("Invalid continuation byte")}if(240==(248&e)&&(i=(7&e)<<18|l()<<12|l()<<6|l())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=o(e),n=t.length,r=-1,i="";++r<n;)i+=c(t[r]);return i},e.decode=function(e){t=o(e),n=t.length,r=0;for(var a,s=[];!1!==(a=u());)s.push(a);return function(e){for(var t,n=e.length,r=-1,o="";++r<n;)(t=e[r])>65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t);return o}(s)}}(t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1124);function i(e){return"string"==typeof e&&(!!/^(0x)?[0-9a-f]{512}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e)))}function o(e,t){"object"==typeof t&&t.constructor===Uint8Array&&(t=r.bytesToHex(t));const n=r.keccak256(t).replace("0x","");for(let t=0;t<12;t+=4){const r=(parseInt(n.substr(t,2),16)<<8)+parseInt(n.substr(t+2,2),16)&2047,i=1<<r%4;if((a(e.charCodeAt(e.length-1-Math.floor(r/4)))&i)!==i)return!1}return!0}function a(e){if(e>=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87;throw new Error("invalid bloom")}function s(e){return"string"==typeof e&&(!!/^(0x)?[0-9a-f]{64}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e)))}function c(e){return"string"==typeof e&&(!!e.match(/^(0x)?[0-9a-fA-F]{40}$/)||!!e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}t.isBloom=i,t.isInBloom=o,t.isUserEthereumAddressInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!c(t))throw new Error(`Invalid ethereum address given: "${t}"`);return o(e,r.padLeft(t,64))},t.isContractAddressInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!c(t))throw new Error(`Invalid contract address given: "${t}"`);return o(e,t)},t.isTopicInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!s(t))throw new Error("Invalid topic");return o(e,t)},t.isTopic=s,t.isAddress=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(222);function i(e){if(null==e)throw new Error("cannot convert null value to array");if("string"==typeof e){const t=e.match(/^(0x)?[0-9a-fA-F]*$/);if(!t)throw new Error("invalid hexidecimal string");if("0x"!==t[1])throw new Error("hex string must have 0x prefix");(e=e.substring(2)).length%2&&(e="0"+e);const n=[];for(let t=0;t<e.length;t+=2)n.push(parseInt(e.substr(t,2),16));return o(new Uint8Array(n))}if(function(e){if(!e||parseInt(String(e.length))!=e.length||"string"==typeof e)return!1;for(let t=0;t<e.length;t++){const n=e[t];if(n<0||n>=256||parseInt(String(n))!=n)return!1}return!0}(e))return o(new Uint8Array(e));throw new Error("invalid arrayify value")}function o(e){return void 0!==e.slice||(e.slice=()=>{const t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}t.keccak256=function(e){return"0x"+r.keccak_256(i(e))},t.padLeft=(e,t)=>{const n=/^0x/i.test(e)||"number"==typeof e,r=t-(e=e.toString().replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(n?"0x":"")+new Array(r).join("0")+e},t.bytesToHex=function(e){const t=[];for(let n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return"0x"+t.join("").replace(/^0+/,"")},t.toByteArray=i},function(e,t,n){var r=n(147),i=n(6),o=n(957),a=function(e){var t=typeof e;if("string"===t)return o.isHexStrict(e)?new i(e.replace(/0x/i,""),16):new i(e,10);if("number"===t)return new i(e);if(o.isBigNumber(e))return new i(e.toString(10));if(o.isBN(e))return e;throw new Error(e+" is not a number")},s=function(e,t,n){var r,s;if("bytes"===(e=function(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}(e))){if(t.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+t.length);return t}if("string"===e)return o.utf8ToHex(t);if("bool"===e)return t?"01":"00";if(e.startsWith("address")){if(r=n?64:40,!o.isAddress(t))throw new Error(t+" is not a valid address, or the checksum is invalid.");return o.leftPad(t.toLowerCase(),r)}if(r=function(e){var t=/^\D+(\d+).*$/.exec(e);return t?parseInt(t[1],10):null}(e),e.startsWith("bytes")){if(!r)throw new Error("bytes[] not yet supported in solidity");if(n&&(r=32),r<1||r>32||r<t.replace(/^0x/i,"").length/2)throw new Error("Invalid bytes"+r+" for "+t);return o.rightPad(t,2*r)}if(e.startsWith("uint")){if(r%8||r<8||r>256)throw new Error("Invalid uint"+r+" size");if((s=a(t)).bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+s.bitLength());if(s.lt(new i(0)))throw new Error("Supplied uint "+s.toString()+" is negative");return r?o.leftPad(s.toString("hex"),r/8*2):s}if(e.startsWith("int")){if(r%8||r<8||r>256)throw new Error("Invalid int"+r+" size");if((s=a(t)).bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+s.bitLength());return s.lt(new i(0))?s.toTwos(r).toString("hex"):r?o.leftPad(s.toString("hex"),r/8*2):s}throw new Error("Unsupported or invalid type: "+e)},c=function(e){if(r.isArray(e))throw new Error("Autodetection of array types is not supported.");var t,n,a="";if(r.isObject(e)&&(e.hasOwnProperty("v")||e.hasOwnProperty("t")||e.hasOwnProperty("value")||e.hasOwnProperty("type"))?(t=e.hasOwnProperty("t")?e.t:e.type,a=e.hasOwnProperty("v")?e.v:e.value):(t=o.toHex(e,!0),a=o.toHex(e),t.startsWith("int")||t.startsWith("uint")||(t="bytes")),!t.startsWith("int")&&!t.startsWith("uint")||"string"!=typeof a||/^(-)?0x/i.test(a)||(a=new i(a)),r.isArray(a)){if((n=function(e){var t=/^\D+\d*\[(\d+)\]$/.exec(e);return t?parseInt(t[1],10):null}(t))&&a.length!==n)throw new Error(t+" is not matching the given array "+JSON.stringify(a));n=a.length}return r.isArray(a)?a.map((function(e){return s(t,e,n).toString("hex").replace("0x","")})).join(""):s(t,a,n).toString("hex").replace("0x","")};e.exports={soliditySha3:function(){var e=Array.prototype.slice.call(arguments),t=r.map(e,c);return o.sha3("0x"+t.join(""))},soliditySha3Raw:function(){return o.sha3Raw("0x"+r.map(Array.prototype.slice.call(arguments),c).join(""))},encodePacked:function(){var e=Array.prototype.slice.call(arguments),t=r.map(e,c);return"0x"+t.join("").toLowerCase()}}},function(e,t,n){"use strict";var r=n(959),i=n(145).errors,o=function(e){this.requestManager=e,this.requests=[]};o.prototype.add=function(e){this.requests.push(e)},o.prototype.execute=function(){var e=this.requests;this.requestManager.sendBatch(e,(function(t,n){n=n||[],e.map((function(e,t){return n[t]||{}})).forEach((function(t,n){if(e[n].callback){if(t&&t.error)return e[n].callback(i.ErrorResponse(t));if(!r.isValidResponse(t))return e[n].callback(i.InvalidResponse(t));try{e[n].callback(null,e[n].format?e[n].format(t.result):t.result)}catch(t){e[n].callback(t)}}}))}))},e.exports=o},function(e,t,n){"use strict";var r,i=null;try{r=Function("return this")()}catch(e){r=window}void 0!==r.ethereum?i=r.ethereum:void 0!==r.web3&&r.web3.currentProvider&&(r.web3.currentProvider.sendAsync&&(r.web3.currentProvider.send=r.web3.currentProvider.sendAsync,delete r.web3.currentProvider.sendAsync),!r.web3.currentProvider.on&&r.web3.currentProvider.connection&&"ipcProviderWrapper"===r.web3.currentProvider.connection.constructor.name&&(r.web3.currentProvider.on=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");switch(e){case"data":this.connection.on("data",(function(e){var n="";e=e.toString();try{n=JSON.parse(e)}catch(n){return t(new Error("Couldn't parse response data"+e))}n.id||-1===n.method.indexOf("_subscription")||t(null,n)}));break;default:this.connection.on(e,t)}}),i=r.web3.currentProvider),e.exports=i},function(e,t,n){"use strict";var r=n(903),i=n(1129),o=n(145).errors,a=n(1131).w3cwebsocket,s=function(e,t){r.call(this),t=t||{},this.url=e,this._customTimeout=t.timeout||15e3,this.headers=t.headers||{},this.protocol=t.protocol||void 0,this.reconnectOptions=Object.assign({auto:!1,delay:5e3,maxAttempts:!1,onTimeout:!1},t.reconnect),this.clientConfig=t.clientConfig||void 0,this.requestOptions=t.requestOptions||void 0,this.DATA="data",this.CLOSE="close",this.ERROR="error",this.CONNECT="connect",this.RECONNECT="reconnect",this.connection=null,this.requestQueue=new Map,this.responseQueue=new Map,this.reconnectAttempts=0,this.reconnecting=!1;var n=i.parseURL(e);n.username&&n.password&&(this.headers.authorization="Basic "+i.btoa(n.username+":"+n.password)),n.auth&&(this.headers.authorization="Basic "+i.btoa(n.auth)),Object.defineProperty(this,"connected",{get:function(){return this.connection&&this.connection.readyState===this.connection.OPEN},enumerable:!0}),this.connect()};(s.prototype=Object.create(r.prototype)).constructor=s,s.prototype.connect=function(){this.connection=new a(this.url,this.protocol,void 0,this.headers,this.requestOptions,this.clientConfig),this._addSocketListeners()},s.prototype._onMessage=function(e){var t=this;this._parseResponse("string"==typeof e.data?e.data:"").forEach((function(e){if(e.method&&-1!==e.method.indexOf("_subscription"))t.emit(t.DATA,e);else{var n=e.id;Array.isArray(e)&&(n=e[0].id),t.responseQueue.has(n)&&(void 0!==t.responseQueue.get(n).callback&&t.responseQueue.get(n).callback(!1,e),t.responseQueue.delete(n))}}))},s.prototype._onConnect=function(){if(this.emit(this.CONNECT),this.reconnectAttempts=0,this.reconnecting=!1,this.requestQueue.size>0){var e=this;this.requestQueue.forEach((function(t,n){e.send(t.payload,t.callback),e.requestQueue.delete(n)}))}},s.prototype._onClose=function(e){var t=this;!this.reconnectOptions.auto||[1e3,1001].includes(e.code)&&!1!==e.wasClean?(this.emit(this.CLOSE,e),this.requestQueue.size>0&&this.requestQueue.forEach((function(n,r){n.callback(o.ConnectionNotOpenError(e)),t.requestQueue.delete(r)})),this.responseQueue.size>0&&this.responseQueue.forEach((function(n,r){n.callback(o.InvalidConnection("on WS",e)),t.responseQueue.delete(r)})),this._removeSocketListeners(),this.removeAllListeners()):this.reconnect()},s.prototype._addSocketListeners=function(){this.connection.addEventListener("message",this._onMessage.bind(this)),this.connection.addEventListener("open",this._onConnect.bind(this)),this.connection.addEventListener("close",this._onClose.bind(this))},s.prototype._removeSocketListeners=function(){this.connection.removeEventListener("message",this._onMessage),this.connection.removeEventListener("open",this._onConnect),this.connection.removeEventListener("close",this._onClose)},s.prototype._parseResponse=function(e){var t=this,n=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((function(e){t.lastChunk&&(e=t.lastChunk+e);var r=null;try{r=JSON.parse(e)}catch(n){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout((function(){t.reconnectOptions.auto&&t.reconnectOptions.onTimeout?t.reconnect():(t.emit(t.ERROR,o.ConnectionTimeout(t._customTimeout)),t.requestQueue.size>0&&t.requestQueue.forEach((function(e,n){e.callback(o.ConnectionTimeout(t._customTimeout)),t.requestQueue.delete(n)})))}),t._customTimeout))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,r&&n.push(r)})),n},s.prototype.send=function(e,t){var n=e.id,r={payload:e,callback:t};if(Array.isArray(e)&&(n=e[0].id),this.connection.readyState===this.connection.CONNECTING||this.reconnecting)this.requestQueue.set(n,r);else{if(this.connection.readyState!==this.connection.OPEN)return this.requestQueue.delete(n),this.emit(this.ERROR,o.ConnectionNotOpenError()),void r.callback(o.ConnectionNotOpenError());this.responseQueue.set(n,r),this.requestQueue.delete(n);try{this.connection.send(JSON.stringify(r.payload))}catch(e){r.callback(e),this.responseQueue.delete(n)}}},s.prototype.reset=function(){this.responseQueue.clear(),this.requestQueue.clear(),this.removeAllListeners(),this._removeSocketListeners(),this._addSocketListeners()},s.prototype.disconnect=function(e,t){this._removeSocketListeners(),this.connection.close(e||1e3,t)},s.prototype.supportsSubscriptions=function(){return!0},s.prototype.reconnect=function(){var e=this;this.reconnecting=!0,this.responseQueue.size>0&&this.responseQueue.forEach((function(t,n){t.callback(o.PendingRequestsOnReconnectingError()),e.responseQueue.delete(n)})),!this.reconnectOptions.maxAttempts||this.reconnectAttempts<this.reconnectOptions.maxAttempts?setTimeout((function(){e.reconnectAttempts++,e._removeSocketListeners(),e.emit(e.RECONNECT,e.reconnectAttempts),e.connect()}),this.reconnectOptions.delay):(this.emit(this.ERROR,o.MaxAttemptsReachedOnReconnectingError()),this.reconnecting=!1,this.requestQueue.size>0&&this.requestQueue.forEach((function(t,n){t.callback(o.MaxAttemptsReachedOnReconnectingError()),e.requestQueue.delete(n)})))},e.exports=s},function(e,t,n){(function(t,r){var i="[object process]"===Object.prototype.toString.call(void 0!==t?t:0),o="undefined"!=typeof navigator&&"ReactNative"===navigator.product,a=null,s=null;if(i||o){a=function(e){return r.from(e).toString("base64")};var c=n(409);if(c.URL){var l=c.URL;s=function(e){return new l(e)}}else s=n(409).parse}else a=btoa.bind(window),s=function(e){return new URL(e)};e.exports={parseURL:s,btoa:a}}).call(this,n(13),n(2).Buffer)},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){var r;try{r=n(1132)}catch(e){}finally{if(r||"undefined"==typeof window||(r=window),!r)throw new Error("Could not determine global this")}var i=r.WebSocket||r.MozWebSocket,o=n(1133);function a(e,t){return t?new i(e,t):new i(e)}i&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(a,e,{get:function(){return i[e]}})})),e.exports={w3cwebsocket:i?a:null,version:o}},function(e,t){var n=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},function(e,t,n){e.exports=n(1134).version},function(e){e.exports=JSON.parse('{"name":"websocket","description":"Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.","keywords":["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],"author":"Brian McKelvey <theturtle32@gmail.com> (https://github.com/theturtle32)","contributors":["Iñaki Baz Castillo <ibc@aliax.net> (http://dev.sipdoc.net)"],"version":"1.0.33","repository":{"type":"git","url":"https://github.com/theturtle32/WebSocket-Node.git"},"homepage":"https://github.com/theturtle32/WebSocket-Node","engines":{"node":">=4.0.0"},"dependencies":{"bufferutil":"^4.0.1","debug":"^2.2.0","es5-ext":"^0.10.50","typedarray-to-buffer":"^3.1.5","utf-8-validate":"^5.0.2","yaeti":"^0.0.6"},"devDependencies":{"buffer-equal":"^1.0.0","gulp":"^4.0.2","gulp-jshint":"^2.0.4","jshint-stylish":"^2.2.1","jshint":"^2.0.0","tape":"^4.9.1"},"config":{"verbose":false},"scripts":{"test":"tape test/unit/*.js","gulp":"gulp"},"main":"index","directories":{"lib":"./lib"},"browser":"lib/browser.js","license":"Apache-2.0"}')},function(e,t,n){var r=n(145).errors,i=n(1136).XMLHttpRequest,o=n(852),a=n(871),s=function(e,t){t=t||{},this.withCredentials=t.withCredentials||!1,this.timeout=t.timeout||0,this.headers=t.headers,this.agent=t.agent,this.connected=!1;const n=!1!==t.keepAlive;this.host=e||"http://localhost:8545",this.agent||("https"===this.host.substring(0,5)?this.httpsAgent=new a.Agent({keepAlive:n}):this.httpAgent=new o.Agent({keepAlive:n}))};s.prototype._prepareRequest=function(){var e;if("undefined"!=typeof XMLHttpRequest)e=new XMLHttpRequest;else{e=new i;var t={httpsAgent:this.httpsAgent,httpAgent:this.httpAgent,baseUrl:this.baseUrl};this.agent&&(t.httpsAgent=this.agent.https,t.httpAgent=this.agent.http,t.baseUrl=this.agent.baseUrl),e.nodejsSet(t)}return e.open("POST",this.host,!0),e.setRequestHeader("Content-Type","application/json"),e.timeout=this.timeout,e.withCredentials=this.withCredentials,this.headers&&this.headers.forEach((function(t){e.setRequestHeader(t.name,t.value)})),e},s.prototype.send=function(e,t){var n=this,i=this._prepareRequest();i.onreadystatechange=function(){if(4===i.readyState&&1!==i.timeout){var e=i.responseText,o=null;try{e=JSON.parse(e)}catch(e){o=r.InvalidResponse(i.responseText)}n.connected=!0,t(o,e)}},i.ontimeout=function(){n.connected=!1,t(r.ConnectionTimeout(this.timeout))};try{i.send(JSON.stringify(e))}catch(e){this.connected=!1,t(r.InvalidConnection(this.host))}},s.prototype.disconnect=function(){},s.prototype.supportsSubscriptions=function(){return!1},e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(1137));var r=n(904);t.XMLHttpRequestEventTarget=r.XMLHttpRequestEventTarget},function(e,t,n){"use strict";(function(e,r){var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(852),c=n(871),l=n(964),u=n(409),f=n(1141),d=n(1142),p=n(904),h=n(1143),m=n(1144),b=function(t){function n(r){void 0===r&&(r={});var i=t.call(this)||this;return i.UNSENT=n.UNSENT,i.OPENED=n.OPENED,i.HEADERS_RECEIVED=n.HEADERS_RECEIVED,i.LOADING=n.LOADING,i.DONE=n.DONE,i.onreadystatechange=null,i.readyState=n.UNSENT,i.response=null,i.responseText="",i.responseType="",i.status=0,i.statusText="",i.timeout=0,i.upload=new h.XMLHttpRequestUpload,i.responseUrl="",i.withCredentials=!1,i._method=null,i._url=null,i._sync=!1,i._headers={},i._loweredHeaders={},i._mimeOverride=null,i._request=null,i._response=null,i._responseParts=null,i._responseHeaders=null,i._aborting=null,i._error=null,i._loadedBytes=0,i._totalBytes=0,i._lengthComputable=!1,i._restrictedMethods={CONNECT:!0,TRACE:!0,TRACK:!0},i._restrictedHeaders={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0},i._privateHeaders={"set-cookie":!0,"set-cookie2":!0},i._userAgent="Mozilla/5.0 ("+l.type()+" "+l.arch()+") node.js/"+e.versions.node+" v8/"+e.versions.v8,i._anonymous=r.anon||!1,i}return o(n,t),n.prototype.open=function(e,t,r,i,o){if(void 0===r&&(r=!0),e=e.toUpperCase(),this._restrictedMethods[e])throw new n.SecurityError("HTTP method "+e+" is not allowed in XHR");var a=this._parseUrl(t,i,o);this.readyState===n.HEADERS_RECEIVED||(this.readyState,n.LOADING),this._method=e,this._url=a,this._sync=!r,this._headers={},this._loweredHeaders={},this._mimeOverride=null,this._setReadyState(n.OPENED),this._request=null,this._response=null,this.status=0,this.statusText="",this._responseParts=[],this._responseHeaders=null,this._loadedBytes=0,this._totalBytes=0,this._lengthComputable=!1},n.prototype.setRequestHeader=function(e,t){if(this.readyState!==n.OPENED)throw new n.InvalidStateError("XHR readyState must be OPENED");var r=e.toLowerCase();this._restrictedHeaders[r]||/^sec-/.test(r)||/^proxy-/.test(r)?console.warn('Refused to set unsafe header "'+e+'"'):(t=t.toString(),null!=this._loweredHeaders[r]?(e=this._loweredHeaders[r],this._headers[e]=this._headers[e]+", "+t):(this._loweredHeaders[r]=e,this._headers[e]=t))},n.prototype.send=function(e){if(this.readyState!==n.OPENED)throw new n.InvalidStateError("XHR readyState must be OPENED");if(this._request)throw new n.InvalidStateError("send() already called");switch(this._url.protocol){case"file:":return this._sendFile(e);case"http:":case"https:":return this._sendHttp(e);default:throw new n.NetworkError("Unsupported protocol "+this._url.protocol)}},n.prototype.abort=function(){null!=this._request&&(this._request.abort(),this._setError(),this._dispatchProgress("abort"),this._dispatchProgress("loadend"))},n.prototype.getResponseHeader=function(e){if(null==this._responseHeaders||null==e)return null;var t=e.toLowerCase();return this._responseHeaders.hasOwnProperty(t)?this._responseHeaders[e.toLowerCase()]:null},n.prototype.getAllResponseHeaders=function(){var e=this;return null==this._responseHeaders?"":Object.keys(this._responseHeaders).map((function(t){return t+": "+e._responseHeaders[t]})).join("\r\n")},n.prototype.overrideMimeType=function(e){if(this.readyState===n.LOADING||this.readyState===n.DONE)throw new n.InvalidStateError("overrideMimeType() not allowed in LOADING or DONE");this._mimeOverride=e.toLowerCase()},n.prototype.nodejsSet=function(e){if(this.nodejsHttpAgent=e.httpAgent||this.nodejsHttpAgent,this.nodejsHttpsAgent=e.httpsAgent||this.nodejsHttpsAgent,e.hasOwnProperty("baseUrl")){if(null!=e.baseUrl)if(!u.parse(e.baseUrl,!1,!0).protocol)throw new n.SyntaxError("baseUrl must be an absolute URL");this.nodejsBaseUrl=e.baseUrl}},n.nodejsSet=function(e){n.prototype.nodejsSet(e)},n.prototype._setReadyState=function(e){this.readyState=e,this.dispatchEvent(new f.ProgressEvent("readystatechange"))},n.prototype._sendFile=function(e){throw new Error("Protocol file: not implemented")},n.prototype._sendHttp=function(e){if(this._sync)throw new Error("Synchronous XHR processing not implemented");!e||"GET"!==this._method&&"HEAD"!==this._method?e=e||"":(console.warn("Discarding entity body for "+this._method+" requests"),e=null),this.upload._setData(e),this._finalizeHeaders(),this._sendHxxpRequest()},n.prototype._sendHxxpRequest=function(){var e=this;if(this.withCredentials){var t=n.cookieJar.getCookies(m.CookieAccessInfo(this._url.hostname,this._url.pathname,"https:"===this._url.protocol)).toValueString();this._headers.cookie=this._headers.cookie2=t}var r="http:"===this._url.protocol?[s,this.nodejsHttpAgent]:[c,this.nodejsHttpsAgent],i=r[0],o=r[1],a=i.request.bind(i)({hostname:this._url.hostname,port:+this._url.port,path:this._url.path,auth:this._url.auth,method:this._method,headers:this._headers,agent:o});this._request=a,this.timeout&&a.setTimeout(this.timeout,(function(){return e._onHttpTimeout(a)})),a.on("response",(function(t){return e._onHttpResponse(a,t)})),a.on("error",(function(t){return e._onHttpRequestError(a,t)})),this.upload._startUpload(a),this._request===a&&this._dispatchProgress("loadstart")},n.prototype._finalizeHeaders=function(){this._headers=a({},this._headers,{Connection:"keep-alive",Host:this._url.host,"User-Agent":this._userAgent},this._anonymous?{Referer:"about:blank"}:{}),this.upload._finalizeHeaders(this._headers,this._loweredHeaders)},n.prototype._onHttpResponse=function(e,t){var r=this;if(this._request===e){if(this.withCredentials&&(t.headers["set-cookie"]||t.headers["set-cookie2"])&&n.cookieJar.setCookies(t.headers["set-cookie"]||t.headers["set-cookie2"]),[301,302,303,307,308].indexOf(t.statusCode)>=0)return this._url=this._parseUrl(t.headers.location),this._method="GET",this._loweredHeaders["content-type"]&&(delete this._headers[this._loweredHeaders["content-type"]],delete this._loweredHeaders["content-type"]),null!=this._headers["Content-Type"]&&delete this._headers["Content-Type"],delete this._headers["Content-Length"],this.upload._reset(),this._finalizeHeaders(),void this._sendHxxpRequest();this._response=t,this._response.on("data",(function(e){return r._onHttpResponseData(t,e)})),this._response.on("end",(function(){return r._onHttpResponseEnd(t)})),this._response.on("close",(function(){return r._onHttpResponseClose(t)})),this.responseUrl=this._url.href.split("#")[0],this.status=t.statusCode,this.statusText=s.STATUS_CODES[this.status],this._parseResponseHeaders(t);var i=this._responseHeaders["content-length"]||"";this._totalBytes=+i,this._lengthComputable=!!i,this._setReadyState(n.HEADERS_RECEIVED)}},n.prototype._onHttpResponseData=function(e,t){this._response===e&&(this._responseParts.push(new r(t)),this._loadedBytes+=t.length,this.readyState!==n.LOADING&&this._setReadyState(n.LOADING),this._dispatchProgress("progress"))},n.prototype._onHttpResponseEnd=function(e){this._response===e&&(this._parseResponse(),this._request=null,this._response=null,this._setReadyState(n.DONE),this._dispatchProgress("load"),this._dispatchProgress("loadend"))},n.prototype._onHttpResponseClose=function(e){if(this._response===e){var t=this._request;this._setError(),t.abort(),this._setReadyState(n.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")}},n.prototype._onHttpTimeout=function(e){this._request===e&&(this._setError(),e.abort(),this._setReadyState(n.DONE),this._dispatchProgress("timeout"),this._dispatchProgress("loadend"))},n.prototype._onHttpRequestError=function(e,t){this._request===e&&(this._setError(),e.abort(),this._setReadyState(n.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend"))},n.prototype._dispatchProgress=function(e){var t=new n.ProgressEvent(e);t.lengthComputable=this._lengthComputable,t.loaded=this._loadedBytes,t.total=this._totalBytes,this.dispatchEvent(t)},n.prototype._setError=function(){this._request=null,this._response=null,this._responseHeaders=null,this._responseParts=null},n.prototype._parseUrl=function(e,t,n){var r=null==this.nodejsBaseUrl?e:u.resolve(this.nodejsBaseUrl,e),i=u.parse(r,!1,!0);i.hash=null;var o=(i.auth||"").split(":"),a=o[0],s=o[1];return(a||s||t||n)&&(i.auth=(t||a||"")+":"+(n||s||"")),i},n.prototype._parseResponseHeaders=function(e){for(var t in this._responseHeaders={},e.headers){var n=t.toLowerCase();this._privateHeaders[n]||(this._responseHeaders[n]=e.headers[t])}null!=this._mimeOverride&&(this._responseHeaders["content-type"]=this._mimeOverride)},n.prototype._parseResponse=function(){var e=r.concat(this._responseParts);switch(this._responseParts=null,this.responseType){case"json":this.responseText=null;try{this.response=JSON.parse(e.toString("utf-8"))}catch(e){this.response=null}return;case"buffer":return this.responseText=null,void(this.response=e);case"arraybuffer":this.responseText=null;for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i<e.length;i++)n[i]=e[i];return void(this.response=t);case"text":default:try{this.responseText=e.toString(this._parseResponseEncoding())}catch(t){this.responseText=e.toString("binary")}this.response=this.responseText}},n.prototype._parseResponseEncoding=function(){return/;\s*charset=(.*)$/.exec(this._responseHeaders["content-type"]||"")[1]||"utf-8"},n.ProgressEvent=f.ProgressEvent,n.InvalidStateError=d.InvalidStateError,n.NetworkError=d.NetworkError,n.SecurityError=d.SecurityError,n.SyntaxError=d.SyntaxError,n.XMLHttpRequestUpload=h.XMLHttpRequestUpload,n.UNSENT=0,n.OPENED=1,n.HEADERS_RECEIVED=2,n.LOADING=3,n.DONE=4,n.cookieJar=m.CookieJar(),n}(p.XMLHttpRequestEventTarget);t.XMLHttpRequest=b,b.prototype.nodejsHttpAgent=s.globalAgent,b.prototype.nodejsHttpsAgent=c.globalAgent,b.prototype.nodejsBaseUrl=null}).call(this,n(13),n(2).Buffer)},function(e,t,n){(function(t,r,i){var o=n(961),a=n(4),s=n(962),c=n(148),l=n(1139),u=s.IncomingMessage,f=s.readyStates;var d=e.exports=function(e){var n,r=this;c.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach((function(t){r.setHeader(t,e.headers[t])}));var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":o.vbArray&&e?"text:vbarray":"text"}(n,i),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};a(d,c.Writable),d.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===p.indexOf(n)&&(this._headers[n]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,a=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=o.arraybuffer?l(t.concat(e._body)):o.blobConstructor?new r.Blob(e._body.map((function(e){return l(e)})),{type:(a["content-type"]||{}).value||""}):t.concat(e._body).toString());var c=[];if(Object.keys(a).forEach((function(e){var t=a[e].name,n=a[e].value;Array.isArray(n)?n.forEach((function(e){c.push([t,e])})):c.push([t,n])})),"fetch"===e._mode){var u=null;if(o.abortController){var d=new AbortController;u=d.signal,e._fetchAbortController=d,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout((function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:c,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then((function(t){e._fetchResponse=t,e._connect()}),(function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)}))}else{var p=e._xhr=new r.XMLHttpRequest;try{p.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}"responseType"in p&&(p.responseType=e._mode.split(":")[0]),"withCredentials"in p&&(p.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in p&&p.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(p.timeout=n.requestTimeout,p.ontimeout=function(){e.emit("requestTimeout")}),c.forEach((function(e){p.setRequestHeader(e[0],e[1])})),e._response=null,p.onreadystatechange=function(){switch(p.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(p.onprogress=function(){e._onXHRProgress()}),p.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{p.send(s)}catch(t){return void i.nextTick((function(){e.emit("error",t)}))}}}},d.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",(function(t){e.emit("error",t)})),e.emit("response",e._response))},d.prototype._write=function(e,t,n){this._body.push(e),n()},d.prototype.abort=d.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},d.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),c.Writable.prototype.end.call(this,e,t,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(2).Buffer,n(12),n(13))},function(e,t,n){var r=n(2).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,i=0;i<n;i++)t[i]=e[i];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){this.type=e,this.bubbles=!1,this.cancelable=!1,this.loaded=0,this.lengthComputable=!1,this.total=0};t.ProgressEvent=r},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);t.SecurityError=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);t.InvalidStateError=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);t.NetworkError=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);t.SyntaxError=c},function(e,t,n){"use strict";(function(e){var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(t){function n(){var e=t.call(this)||this;return e._contentType=null,e._body=null,e._reset(),e}return i(n,t),n.prototype._reset=function(){this._contentType=null,this._body=null},n.prototype._setData=function(t){if(null!=t)if("string"==typeof t)0!==t.length&&(this._contentType="text/plain;charset=UTF-8"),this._body=new e(t,"utf-8");else if(e.isBuffer(t))this._body=t;else if(t instanceof ArrayBuffer){for(var n=new e(t.byteLength),r=new Uint8Array(t),i=0;i<t.byteLength;i++)n[i]=r[i];this._body=n}else{if(!(t.buffer&&t.buffer instanceof ArrayBuffer))throw new Error("Unsupported send() data "+t);n=new e(t.byteLength);var o=t.byteOffset;for(r=new Uint8Array(t.buffer),i=0;i<t.byteLength;i++)n[i]=r[i+o];this._body=n}},n.prototype._finalizeHeaders=function(e,t){this._contentType&&!t["content-type"]&&(e["Content-Type"]=this._contentType),this._body&&(e["Content-Length"]=this._body.length.toString())},n.prototype._startUpload=function(e){this._body&&e.write(this._body),e.end()},n}(n(904).XMLHttpRequestEventTarget);t.XMLHttpRequestUpload=o}).call(this,n(2).Buffer)},function(e,t){!function(){"use strict";function e(t,n,r,i){return this instanceof e?(this.domain=t||void 0,this.path=n||"/",this.secure=!!r,this.script=!!i,this):new e(t,n,r,i)}function n(e,t,r){return e instanceof n?e:this instanceof n?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(r||"/"),this.explicit_path=!1,this.domain=t||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,e&&this.parse(e,t,r),this):new n(e,t,r)}e.All=Object.freeze(Object.create(null)),t.CookieAccessInfo=e,t.Cookie=n,n.prototype.toString=function(){var e=[this.name+"="+this.value];return this.expiration_date!==1/0&&e.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&e.push("domain="+this.domain),this.path&&e.push("path="+this.path),this.secure&&e.push("secure"),this.noscript&&e.push("httponly"),e.join("; ")},n.prototype.toValueString=function(){return this.name+"="+this.value};var r=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function i(){var e,t;return this instanceof i?(e=Object.create(null),this.setCookie=function(r,i,o){var a,s;if(a=(r=new n(r,i,o)).expiration_date<=Date.now(),void 0!==e[r.name]){for(t=e[r.name],s=0;s<t.length;s+=1)if(t[s].collidesWith(r))return a?(t.splice(s,1),0===t.length&&delete e[r.name],!1):(t[s]=r,r);return!a&&(t.push(r),r)}return!a&&(e[r.name]=[r],e[r.name])},this.getCookie=function(n,r){var i,o;if(t=e[n])for(o=0;o<t.length;o+=1)if((i=t[o]).expiration_date<=Date.now())0===t.length&&delete e[i.name];else if(i.matches(r))return i},this.getCookies=function(t){var n,r,i=[];for(n in e)(r=this.getCookie(n,t))&&i.push(r);return i.toString=function(){return i.join(":")},i.toValueString=function(){return i.map((function(e){return e.toValueString()})).join(";")},i},this):new i}n.prototype.parse=function(e,t,r){if(this instanceof n){var i,o=e.split(";").filter((function(e){return!!e})),a=o[0].match(/([^=]+)=([\s\S]*)/);if(!a)return void console.warn("Invalid cookie header encountered. Header: '"+e+"'");var s=a[1],c=a[2];if("string"!=typeof s||0===s.length||"string"!=typeof c)return void console.warn("Unable to extract values from cookie header. Cookie: '"+e+"'");for(this.name=s,this.value=c,i=1;i<o.length;i+=1)switch(s=(a=o[i].match(/([^=]+)(?:=([\s\S]*))?/))[1].trim().toLowerCase(),c=a[2],s){case"httponly":this.noscript=!0;break;case"expires":this.expiration_date=c?Number(Date.parse(c)):1/0;break;case"path":this.path=c?c.trim():"",this.explicit_path=!0;break;case"domain":this.domain=c?c.trim():"",this.explicit_domain=!!this.domain;break;case"secure":this.secure=!0}return this.explicit_path||(this.path=r||"/"),this.explicit_domain||(this.domain=t),this}return(new n).parse(e,t,r)},n.prototype.matches=function(t){return t===e.All||!(this.noscript&&t.script||this.secure&&!t.secure||!this.collidesWith(t))},n.prototype.collidesWith=function(e){if(this.path&&!e.path||this.domain&&!e.domain)return!1;if(this.path&&0!==e.path.indexOf(this.path))return!1;if(this.explicit_path&&0!==e.path.indexOf(this.path))return!1;var t=e.domain&&e.domain.replace(/^[\.]/,""),n=this.domain&&this.domain.replace(/^[\.]/,"");if(n===t)return!0;if(n){if(!this.explicit_domain)return!1;var r=t.indexOf(n);return-1!==r&&r===t.length-n.length}return!0},t.CookieJar=i,i.prototype.setCookies=function(e,t,i){var o,a,s=[];for(e=(e=Array.isArray(e)?e:e.split(r)).map((function(e){return new n(e,t,i)})),o=0;o<e.length;o+=1)a=e[o],this.setCookie(a,t,i)&&s.push(a);return s}}()},function(e,t,n){"use strict";var r=n(147),i=n(145).errors,o=n(1146),a=function(e,t){var n=this;this.responseCallbacks={},this.notificationCallbacks=[],this.path=e,this.connected=!1,this.connection=t.connect({path:this.path}),this.addDefaultEvents();var i=function(e){var t=null;r.isArray(e)?e.forEach((function(e){n.responseCallbacks[e.id]&&(t=e.id)})):t=e.id,t||-1===e.method.indexOf("_subscription")?n.responseCallbacks[t]&&(n.responseCallbacks[t](null,e),delete n.responseCallbacks[t]):n.notificationCallbacks.forEach((function(t){r.isFunction(t)&&t(e)}))};"Socket"===t.constructor.name?o(this.connection).done(i):this.connection.on("data",(function(e){n._parseResponse(e.toString()).forEach(i)}))};a.prototype.addDefaultEvents=function(){var e=this;this.connection.on("connect",(function(){e.connected=!0})),this.connection.on("close",(function(){e.connected=!1})),this.connection.on("error",(function(){e._timeout()})),this.connection.on("end",(function(){e._timeout()})),this.connection.on("timeout",(function(){e._timeout()}))},a.prototype._parseResponse=function(e){var t=this,n=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((function(e){t.lastChunk&&(e=t.lastChunk+e);var r=null;try{r=JSON.parse(e)}catch(n){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout((function(){throw t._timeout(),i.InvalidResponse(e)}),15e3))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,r&&n.push(r)})),n},a.prototype._addResponseCallback=function(e,t){var n=e.id||e[0].id,r=e.method||e[0].method;this.responseCallbacks[n]=t,this.responseCallbacks[n].method=r},a.prototype._timeout=function(){for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](i.InvalidConnection("on IPC")),delete this.responseCallbacks[e])},a.prototype.reconnect=function(){this.connection.connect({path:this.path})},a.prototype.send=function(e,t){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(e)),this._addResponseCallback(e,t)},a.prototype.on=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");switch(e){case"data":this.notificationCallbacks.push(t);break;default:this.connection.on(e,t)}},a.prototype.once=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");this.connection.once(e,t)},a.prototype.removeListener=function(e,t){var n=this;switch(e){case"data":this.notificationCallbacks.forEach((function(e,r){e===t&&n.notificationCallbacks.splice(r,1)}));break;default:this.connection.removeListener(e,t)}},a.prototype.removeAllListeners=function(e){switch(e){case"data":this.notificationCallbacks=[];break;default:this.connection.removeAllListeners(e)}},a.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.connection.removeAllListeners("error"),this.connection.removeAllListeners("end"),this.connection.removeAllListeners("timeout"),this.addDefaultEvents()},a.prototype.supportsSubscriptions=function(){return!0},e.exports=a},function(e,t,n){
195 /*!
196  * v2.1.4-104-gc868b3a
197  * 
198  */
199 var r;"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){"use strict";n.d(t,"j",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"k",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return f})),n.d(t,"i",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return h}));var r=n(1),i=l((function(e,t){var n=t.length;return l((function(r){for(var i=0;i<r.length;i++)t[n+i]=r[i];return t.length=n+r.length,e.apply(this,t)}))}));function o(e,t){return function(){return e.call(this,t.apply(this,arguments))}}function a(e){return function(t){return t[e]}}l((function(e){var t=Object(r.c)(e);function n(e,t){return[c(e,t)]}return l((function(e){return Object(r.f)(n,e,t)[0]}))}));var s=l((function(e){return l((function(t){for(var n,r=0;r<a("length")(e);r++)if(n=c(t,e[r]))return n}))}));function c(e,t){return t.apply(void 0,e)}function l(e){var t=e.length-1,n=Array.prototype.slice;if(0===t)return function(){return e.call(this,n.call(arguments))};if(1===t)return function(){return e.call(this,arguments[0],n.call(arguments,1))};var r=Array(e.length);return function(){for(var i=0;i<t;i++)r[i]=arguments[i];return r[t]=n.call(arguments,t),e.apply(this,r)}}function u(e){return function(t,n){return e(n,t)}}function f(e,t){return function(n){return e(n)&&t(n)}}function d(){}function p(){return!0}function h(e){return function(){return e}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"l",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"m",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"e",(function(){return b}));var r=n(0);function i(e,t){return[e,t]}var o=Object(r.c)(0),a=Object(r.c)(1);function s(e){return m(e.reduce(Object(r.e)(i),null))}var c=Object(r.k)(s);function l(e){return f((function(e,t){return e.unshift(t),e}),[],e)}function u(e,t){return t?i(e(o(t)),u(e,a(t))):null}function f(e,t,n){return n?e(f(e,t,a(n)),o(n)):t}function d(e,t,n){return function e(n,r){return n?t(o(n))?(r(o(n)),a(n)):i(o(n),e(a(n),r)):null}(e,n||r.i)}function p(e,t){return!t||e(o(t))&&p(e,a(t))}function h(e,t){e&&(o(e).apply(null,t),h(a(e),t))}function m(e){return function e(t,n){return t?e(a(t),i(o(t),n)):n}(e,null)}function b(e,t){return t&&(e(o(t))?o(t):b(e,a(t)))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(1),i=n(0);function o(e,t){return t&&t.constructor===e}var a=Object(i.c)("length"),s=Object(i.j)(o,String);function c(e){return void 0!==e}function l(e,t){return t instanceof Object&&Object(r.a)((function(e){return e in t}),e)}},function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"m",(function(){return d})),n.d(t,"n",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"j",(function(){return m})),n.d(t,"l",(function(){return b})),n.d(t,"k",(function(){return y})),n.d(t,"o",(function(){return g}));var r=1,i=r++,o=r++,a=r++,s=r++,c="fail",l=r++,u=r++,f="start",d="data",p="end",h=r++,m=r++,b=r++,y=r++;function g(e,t,n){try{var r=JSON.parse(t)}catch(e){}return{statusCode:e,body:t,jsonBody:r,thrown:n}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a}));var r=n(0);function i(e,t){return{key:e,node:t}}var o=Object(r.c)("key"),a=Object(r.c)("node")},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),i=n(0),o=n(2),a=n(8),s=n(9);function c(e){var t=Object(r.h)("resume","pause","pipe"),n=Object(i.j)(o.b,t);return e?n(e)||Object(o.d)(e)?Object(a.a)(s.a,e):Object(a.a)(s.a,e.url,e.method,e.body,e.headers,e.withCredentials,e.cached):Object(s.a)()}c.drop=function(){return c.drop}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(3),i=n(4),o=n(2),a=n(1),s={};function c(e){var t=e(r.f).emit,n=e(r.d).emit,c=e(r.i).emit,l=e(r.h).emit;function u(e,t,n){Object(i.c)(Object(a.g)(e))[t]=n}function f(e,n,r){e&&u(e,n,r);var o=Object(a.d)(Object(i.b)(n,r),e);return t(o),o}var d={};return d[r.l]=function(e,t){if(!e)return c(t),f(e,s,t);var n=function(e,t){var n=Object(i.c)(Object(a.g)(e));return Object(o.c)(Array,n)?f(e,Object(o.e)(n),t):e}(e,t),r=Object(a.l)(n),l=Object(i.a)(Object(a.g)(n));return u(r,l,t),Object(a.d)(Object(i.b)(l,t),r)},d[r.k]=function(e){return n(e),Object(a.l)(e)||l(Object(i.c)(Object(a.g)(e)))},d[r.j]=f,d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.default=r.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e,t,n,i,o,a,s){return o=o?JSON.parse(JSON.stringify(o)):{},i?(Object(r.d)(i)||(i=JSON.stringify(i),o["Content-Type"]=o["Content-Type"]||"application/json"),o["Content-Length"]=o["Content-Length"]||i.length):i=null,e(n||"GET",function(e,t){return!1===t&&(-1===e.indexOf("?")?e+="?":e+="&",e+="_="+(new Date).getTime()),e}(t,s),i,o,a||!1)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(10),i=n(12),o=n(6),a=n(13),s=n(14),c=n(16),l=n(17),u=n(18);function f(e,t,n,f,d){var p=Object(r.a)();return t&&Object(u.b)(p,Object(u.a)(),e,t,n,f,d),Object(l.a)(p),Object(i.a)(p,Object(o.b)(p)),Object(a.a)(p,s.a),Object(c.a)(p,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(11),i=n(0);function o(){var e={},t=o("newListener"),n=o("removeListener");function o(i){return e[i]=Object(r.a)(i,t,n),e[i]}function a(t){return e[t]||o(t)}return["emit","on","un"].forEach((function(e){a[e]=Object(i.k)((function(t,n){Object(i.b)(n,a(t)[e])}))})),a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),i=n(2),o=n(0);function a(e,t,n){var a,s;function c(e){return function(t){return t.id===e}}return{on:function(n,i){var o={listener:n,id:i||n};return t&&t.emit(e,n,o.id),a=Object(r.d)(o,a),s=Object(r.d)(n,s),this},emit:function(){Object(r.b)(s,arguments)},un:function(t){var i;a=Object(r.m)(a,c(t),(function(e){i=e})),i&&(s=Object(r.m)(s,(function(e){return e===i.listener})),n&&n.emit(e,i.listener,i.id))},listeners:function(){return s},hasListener:function(e){var t=e?c(e):o.a;return Object(i.a)(Object(r.e)(t,a))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),i=n(3),o=n(1);function a(e,t){var n,a={};function s(e){return function(t){n=e(n,t)}}for(var c in t)e(c).on(s(t[c]),a);e(i.g).on((function(e){var t=Object(o.g)(n),i=Object(r.a)(t),a=Object(o.l)(n);a&&(Object(r.c)(Object(o.g)(a))[i]=e)})),e(i.e).on((function(){var e=Object(o.g)(n),t=Object(r.a)(e),i=Object(o.l)(n);i&&delete Object(r.c)(Object(o.g)(i))[t]})),e(i.a).on((function(){for(var n in t)e(n).un(a)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),i=n(1),o=n(4);function a(e,t){var n={node:e(r.d),path:e(r.f)};function a(t,n,r){var a=e(t).emit;n.on((function(e){var t=r(e);!1!==t&&function(e,t,n){var r=Object(i.k)(n);e(t,Object(i.i)(Object(i.l)(Object(i.j)(o.a,r))),Object(i.i)(Object(i.j)(o.c,r)))}(a,Object(o.c)(t),e)}),t),e("removeListener").on((function(r){r===t&&(e(r).listeners()||n.un(t))}))}e("newListener").on((function(e){var r=/(node|path):(.*)/.exec(e);if(r){var i=n[r[1]];i.hasListener(e)||a(e,i,t(r[2]))}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n(1),o=n(4),a=n(2),s=n(6),c=n(15),l=Object(c.a)((function(e,t,n,c,l){var u=Object(r.d)(o.a,i.g),f=Object(r.d)(o.c,i.g);function d(e,t){return t[1]?Object(r.g)(e,i.g):e}function p(e){return e===r.a?r.a:Object(r.g)((function(e){return u(e)!==s.a}),Object(r.d)(e,i.l))}function h(){return function(e){return u(e)===s.a}}function m(e,t,n,r,o){var s=e(n);if(s){var c=function(e,t,n){return Object(i.f)((function(e,t){return t(e,n)}),t,e)}(t,r,s);return o(n.substr(Object(a.e)(s[0])),c)}}function b(e,t){return Object(r.j)(m,e,t)}var y=Object(r.h)(b(e,Object(i.h)(d,(function(e,t){var n=t[3];if(!n)return e;var o=Object(r.j)(a.b,Object(i.c)(n.split(/\W+/))),s=Object(r.d)(o,f);return Object(r.g)(s,e)}),(function(e,t){var n=t[2],i=n&&"*"!==n?function(e){return String(u(e))===n}:r.a;return Object(r.g)(i,e)}),p)),b(t,Object(i.h)((function(e){if(e===r.a)return r.a;var t=h(),n=e,i=p((function(e){return o(e)})),o=Object(r.h)(t,n,i);return o}))),b(n,Object(i.h)()),b(c,Object(i.h)(d,h)),b(l,Object(i.h)((function(e){return function(t){var n=e(t);return!0===n?Object(i.g)(t):n}}))),(function(e){throw Error('"'+e+'" could not be tokenised')}));function g(e,t){return t}function v(e,t){return y(e,t,e?v:g)}return function(e){try{return v(e,r.a)}catch(t){throw Error('Could not compile "'+e+'" because '+t.message)}}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r,i,o,a,s,c,l,u,f,d,p,h=n(0),m=(r=Object(h.k)((function(e){return e.unshift(/^/),(t=RegExp(e.map(Object(h.c)("source")).join(""))).exec.bind(t);var t})),a=r(i=/(\$?)/,/([\w-_]+|\*)/,o=/(?:{([\w ]*?)})?/),s=r(i,/\["([^"]+)"\]/,o),c=r(i,/\[(\d+|\*)\]/,o),l=r(i,/()/,/{([\w ]*?)}/),u=r(/\.\./),f=r(/\./),d=r(i,/!/),p=r(/$/),function(e){return e(Object(h.h)(a,s,c,l),u,f,d,p)})},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),i=n(0),o=n(2),a=n(5);function s(e,t){var n,s=/^(node|path):./,c=e(r.h),l=e(r.e).emit,u=e(r.g).emit,f=Object(i.k)((function(t,r){if(n[t])Object(i.b)(r,n[t]);else{var o=e(t),a=r[0];s.test(t)?d(o,h(a)):o.on(a)}return n}));function d(e,t,r){r=r||t;var o=p(t);return e.on((function(){var t=!1;n.forget=function(){t=!0},Object(i.b)(arguments,o),delete n.forget,t&&e.un(r)}),r),n}function p(e){return function(){try{return e.apply(n,arguments)}catch(e){setTimeout((function(){throw new Error(e.message)}))}}}function h(e){return function(){var t=e.apply(this,arguments);Object(o.a)(t)&&(t===a.a.drop?l():u(t))}}function m(t,n,r){var i;i="node"===t?h(r):r,d(function(t,n){return e(t+":"+n)}(t,n),i,r)}function b(e,t,r){return Object(o.d)(t)?m(e,t,r):function(e,t){for(var n in t)m(e,n,t[n])}(e,t),n}return e(r.i).on((function(e){n.root=Object(i.f)(e)})),e(r.c).on((function(e,t){n.header=function(e){return e?t[e]:t}})),n={on:f,addListener:f,removeListener:function(t,r,i){if("done"===t)c.un(r);else if("node"===t||"path"===t)e.un(t+":"+r,i);else{var o=r;e(t).un(o)}return n},emit:e.emit,node:Object(i.j)(b,"node"),path:Object(i.j)(b,"path"),done:Object(i.j)(d,c),start:Object(i.j)((function(t,r){return e(t).on(p(r),r),n}),r.c),fail:e(r.b).on,abort:e(r.a).emit,header:i.i,root:i.i,source:t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3);function i(e){var t,n,i,o,a=e(r.j).emit,s=e(r.l).emit,c=e(r.k).emit,l=e(r.b).emit,u=/[\\"\n]/g,f=0,d=f++,p=f++,h=f++,m=f++,b=f++,y=f++,g=f++,v=f++,w=f++,_=f++,k=f++,x=f++,S=f++,O=f++,E=f++,T=f++,A=f++,M=f++,I=f++,P=f++,C=65536,j="",D=!1,R=!1,N=d,B=[],L=null,U=0,F=0,q=0,z=0,V=1;function H(e){void 0!==o&&(s(o),c(),o=void 0),t=Error(e+"\nLn: "+V+"\nCol: "+z+"\nChr: "+n),l(Object(r.o)(void 0,void 0,t))}function $(e){return"\r"===e||"\n"===e||" "===e||"\t"===e}e(r.m).on((function(e){if(!t){if(R)return H("Cannot write after close");var r,l=0;for(n=e[0];n&&(l>0&&(i=n),n=e[l++]);)switch(q++,"\n"===n?(V++,z=0):z++,N){case d:if("{"===n)N=h;else if("["===n)N=b;else if(!$(n))return H("Non-whitespace before {[.");continue;case v:case h:if($(n))continue;if(N===v)B.push(w);else{if("}"===n){s({}),c(),N=B.pop()||p;continue}B.push(m)}if('"'!==n)return H('Malformed object key should start with " ');N=g;continue;case w:case m:if($(n))continue;if(":"===n)N===m?(B.push(m),void 0!==o&&(s({}),a(o),o=void 0),F++):void 0!==o&&(a(o),o=void 0),N=p;else if("}"===n)void 0!==o&&(s(o),c(),o=void 0),c(),F--,N=B.pop()||p;else{if(","!==n)return H("Bad object");N===m&&B.push(m),void 0!==o&&(s(o),c(),o=void 0),N=v}continue;case b:case p:if($(n))continue;if(N===b){if(s([]),F++,N=p,"]"===n){c(),F--,N=B.pop()||p;continue}B.push(y)}if('"'===n)N=g;else if("{"===n)N=h;else if("["===n)N=b;else if("t"===n)N=_;else if("f"===n)N=S;else if("n"===n)N=A;else if("-"===n)j+=n;else if("0"===n)j+=n,N=20;else{if(-1==="123456789".indexOf(n))return H("Bad value");j+=n,N=20}continue;case y:if(","===n)B.push(y),void 0!==o&&(s(o),c(),o=void 0),N=p;else{if("]"!==n){if($(n))continue;return H("Bad array")}void 0!==o&&(s(o),c(),o=void 0),c(),F--,N=B.pop()||p}continue;case g:void 0===o&&(o="");var f=l-1;e:for(;;){for(;U>0;)if(L+=n,n=e.charAt(l++),4===U?(o+=String.fromCharCode(parseInt(L,16)),U=0,f=l-1):U++,!n)break e;if('"'===n&&!D){N=B.pop()||p,o+=e.substring(f,l-1);break}if(!("\\"!==n||D||(D=!0,o+=e.substring(f,l-1),n=e.charAt(l++))))break;if(D){if(D=!1,"n"===n?o+="\n":"r"===n?o+="\r":"t"===n?o+="\t":"f"===n?o+="\f":"b"===n?o+="\b":"u"===n?(U=1,L=""):o+=n,n=e.charAt(l++),f=l-1,n)continue;break}u.lastIndex=l;var K=u.exec(e);if(!K){l=e.length+1,o+=e.substring(f,l-1);break}if(l=K.index+1,!(n=e.charAt(K.index))){o+=e.substring(f,l-1);break}}continue;case _:if(!n)continue;if("r"!==n)return H("Invalid true started with t"+n);N=k;continue;case k:if(!n)continue;if("u"!==n)return H("Invalid true started with tr"+n);N=x;continue;case x:if(!n)continue;if("e"!==n)return H("Invalid true started with tru"+n);s(!0),c(),N=B.pop()||p;continue;case S:if(!n)continue;if("a"!==n)return H("Invalid false started with f"+n);N=O;continue;case O:if(!n)continue;if("l"!==n)return H("Invalid false started with fa"+n);N=E;continue;case E:if(!n)continue;if("s"!==n)return H("Invalid false started with fal"+n);N=T;continue;case T:if(!n)continue;if("e"!==n)return H("Invalid false started with fals"+n);s(!1),c(),N=B.pop()||p;continue;case A:if(!n)continue;if("u"!==n)return H("Invalid null started with n"+n);N=M;continue;case M:if(!n)continue;if("l"!==n)return H("Invalid null started with nu"+n);N=I;continue;case I:if(!n)continue;if("l"!==n)return H("Invalid null started with nul"+n);s(null),c(),N=B.pop()||p;continue;case P:if("."!==n)return H("Leading zero not followed by .");j+=n,N=20;continue;case 20:if(-1!=="0123456789".indexOf(n))j+=n;else if("."===n){if(-1!==j.indexOf("."))return H("Invalid number has two dots");j+=n}else if("e"===n||"E"===n){if(-1!==j.indexOf("e")||-1!==j.indexOf("E"))return H("Invalid number has two exponential");j+=n}else if("+"===n||"-"===n){if("e"!==i&&"E"!==i)return H("Invalid symbol in number");j+=n}else j&&(s(parseFloat(j)),c(),j=""),l--,N=B.pop()||p;continue;default:return H("Unknown state: "+N)}q>=C&&(r=0,void 0!==o&&o.length>65536&&(H("Max buffer length exceeded: textNode"),r=Math.max(r,o.length)),j.length>65536&&(H("Max buffer length exceeded: numberNode"),r=Math.max(r,j.length)),C=65536-r+q)}})),e(r.n).on((function(){if(N===d)return s({}),c(),void(R=!0);N===p&&0===F||H("Unexpected end"),void 0!==o&&(s(o),c(),o=void 0),R=!0}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(19),i=n(3),o=n(2),a=n(20),s=n(0);function c(){return new XMLHttpRequest}function l(e,t,n,c,l,u,f){var d=e(i.m).emit,p=e(i.b).emit,h=0,m=!0;function b(){if("2"===String(t.status)[0]){var e=t.responseText,n=(" "+e.substr(h)).substr(1);n&&d(n),h=Object(o.e)(e)}}function y(t){try{m&&e(i.c).emit(t.status,Object(a.a)(t.getAllResponseHeaders())),m=!1}catch(e){}}e(i.a).on((function(){t.onreadystatechange=null,t.abort()})),"onprogress"in t&&(t.onprogress=b),t.onreadystatechange=function(){switch(t.readyState){case 2:case 3:return y(t);case 4:y(t),"2"===String(t.status)[0]?(b(),e(i.n).emit()):p(Object(i.o)(t.status,t.responseText))}};try{for(var g in t.open(n,c,!0),u)t.setRequestHeader(g,u[g]);Object(r.a)(window.location,Object(r.b)(c))||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=f,t.send(l)}catch(e){window.setTimeout(Object(s.j)(p,Object(i.o)(void 0,void 0,e)),0)}}},function(e,t,n){"use strict";function r(e,t){function n(t){return String(t.port||{"http:":80,"https:":443}[t.protocol||e.protocol])}return!!(t.protocol&&t.protocol!==e.protocol||t.host&&t.host!==e.host||t.host&&n(t)!==n(e))}function i(e){var t=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e)||[];return{protocol:t[1]||"",host:t[2]||"",port:t[3]||""}}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}))},function(e,t,n){"use strict";function r(e){var t={};return e&&e.split("\r\n").forEach((function(e){var n=e.indexOf(": ");t[e.substring(0,n)]=e.substring(n+2)})),t}n.d(t,"a",(function(){return r}))}]).default},e.exports=r()},function(e,t,n){"use strict";var r=n(145).formatters,i=n(451),o=n(213);e.exports=function(e){var t=function(t){var n;return t.property?(e[t.property]||(e[t.property]={}),n=e[t.property]):n=e,t.methods&&t.methods.forEach((function(t){t instanceof i||(t=new i(t)),t.attachToObject(n),t.setRequestManager(e._requestManager)})),e};return t.formatters=r,t.utils=o,t.Method=i,t}},function(e,t,n){"use strict";var r=n(147),i=n(145).errors,o=n(903),a=n(145).formatters;function s(e){o.call(this),this.id=null,this.callback=r.identity,this.arguments=null,this.lastBlock=null,this.options={subscription:e.subscription,type:e.type,requestManager:e.requestManager}}s.prototype=Object.create(o.prototype),s.prototype.constructor=s,s.prototype._extractCallback=function(e){if(r.isFunction(e[e.length-1]))return e.pop()},s.prototype._validateArgs=function(e){var t=this.options.subscription;if(t||(t={}),t.params||(t.params=0),e.length!==t.params)throw i.InvalidNumberOfParams(e.length,t.params,t.subscriptionName)},s.prototype._formatInput=function(e){var t=this.options.subscription;return t&&t.inputFormatter?t.inputFormatter.map((function(t,n){return t?t(e[n]):e[n]})):e},s.prototype._formatOutput=function(e){var t=this.options.subscription;return t&&t.outputFormatter&&e?t.outputFormatter(e):e},s.prototype._toPayload=function(e){var t=[];if(this.callback=this._extractCallback(e)||r.identity,this.subscriptionMethod||(this.subscriptionMethod=e.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(e),this._validateArgs(this.arguments),e=[]),t.push(this.subscriptionMethod),t=t.concat(this.arguments),e.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:t}},s.prototype.unsubscribe=function(e){this.options.requestManager.removeSubscription(this.id,e),this.id=null,this.lastBlock=null,this.removeAllListeners()},s.prototype.subscribe=function(){var e=this,t=Array.prototype.slice.call(arguments),n=this._toPayload(t);if(!n)return this;if(!this.options.requestManager.provider)return setTimeout((function(){var t=new Error("No provider set.");e.callback(t,null,e),e.emit("error",t)}),0),this;if(!this.options.requestManager.provider.on)return setTimeout((function(){var t=new Error("The current provider doesn't support subscriptions: "+e.options.requestManager.provider.constructor.name);e.callback(t,null,e),e.emit("error",t)}),0),this;if(this.lastBlock&&r.isObject(this.options.params)&&(n.params[1]=this.options.params,n.params[1].fromBlock=a.inputBlockNumberFormatter(this.lastBlock+1)),this.id&&this.unsubscribe(),this.options.params=n.params[1],"logs"===n.params[0]&&r.isObject(n.params[1])&&n.params[1].hasOwnProperty("fromBlock")&&isFinite(n.params[1].fromBlock)){var i=Object.assign({},n.params[1]);this.options.requestManager.send({method:"eth_getLogs",params:[i]},(function(t,n){t?setTimeout((function(){e.callback(t,null,e),e.emit("error",t)}),0):n.forEach((function(t){var n=e._formatOutput(t);e.callback(null,n,e),e.emit("data",n)}))}))}return"object"==typeof n.params[1]&&delete n.params[1].fromBlock,this.options.requestManager.send(n,(function(t,i){!t&&i?(e.id=i,e.method=n.params[0],e.emit("connected",i),e.options.requestManager.addSubscription(e,(function(t,n){t?(e.callback(t,!1,e),e.emit("error",t)):(r.isArray(n)||(n=[n]),n.forEach((function(t){var n=e._formatOutput(t);if(e.lastBlock=r.isObject(n)?n.blockNumber:null,r.isFunction(e.options.subscription.subscriptionHandler))return e.options.subscription.subscriptionHandler.call(e,n);e.emit("data",n),e.callback(null,n,e)})))}))):setTimeout((function(){e.callback(t,!1,e),e.emit("error",t)}),0)})),this},s.prototype.resubscribe=function(){this.options.requestManager.removeSubscription(this.id),this.id=null,this.subscribe(this.callback)},e.exports=s},function(e,t,n){"use strict";var r=n(147),i=n(444),o=n(145),a=n(873).subscriptions,s=n(451),c=n(213),l=n(874),u=n(1150),f=n(971),d=n(966),p=n(958),h=n(1191),m=n(967),b=n(1233),y=o.formatters,g=function(e){return r.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockByHash":"eth_getBlockByNumber"},v=function(e){return r.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getTransactionByBlockHashAndIndex":"eth_getTransactionByBlockNumberAndIndex"},w=function(e){return r.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleByBlockHashAndIndex":"eth_getUncleByBlockNumberAndIndex"},_=function(e){return r.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getBlockTransactionCountByHash":"eth_getBlockTransactionCountByNumber"},k=function(e){return r.isString(e[0])&&0===e[0].indexOf("0x")?"eth_getUncleCountByBlockHash":"eth_getUncleCountByBlockNumber"},x=function(){var e=this;i.packageInit(this,arguments);var t=this.setRequestManager;this.setRequestManager=function(n){return t(n),e.net.setRequestManager(n),e.personal.setRequestManager(n),e.accounts.setRequestManager(n),e.Contract._requestManager=e._requestManager,e.Contract.currentProvider=e._provider,!0};var n=this.setProvider;this.setProvider=function(){n.apply(e,arguments),e.setRequestManager(e._requestManager),e.ens._detectedAddress=null,e.ens._lastSyncCheck=null};var o,x,S,O=!1,E=null,T="latest",A=50,M=24,I=750,P=100;Object.defineProperty(this,"handleRevert",{get:function(){return O},set:function(t){O=t,e.Contract.handleRevert=O,D.forEach((function(e){e.handleRevert=O}))},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return S},set:function(t){S=t,e.Contract.defaultCommon=S,D.forEach((function(e){e.defaultCommon=S}))},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return x},set:function(t){x=t,e.Contract.defaultHardfork=x,D.forEach((function(e){e.defaultHardfork=x}))},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return o},set:function(t){o=t,e.Contract.defaultChain=o,D.forEach((function(e){e.defaultChain=o}))},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return I},set:function(t){I=t,e.Contract.transactionPollingTimeout=I,D.forEach((function(e){e.transactionPollingTimeout=I}))},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return M},set:function(t){M=t,e.Contract.transactionConfirmationBlocks=M,D.forEach((function(e){e.transactionConfirmationBlocks=M}))},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return A},set:function(t){A=t,e.Contract.transactionBlockTimeout=A,D.forEach((function(e){e.transactionBlockTimeout=A}))},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return E},set:function(t){return t&&(E=c.toChecksumAddress(y.inputAddressFormatter(t))),e.Contract.defaultAccount=E,e.personal.defaultAccount=E,D.forEach((function(e){e.defaultAccount=E})),t},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return T},set:function(t){return T=t,e.Contract.defaultBlock=T,e.personal.defaultBlock=T,D.forEach((function(e){e.defaultBlock=T})),t},enumerable:!0}),Object.defineProperty(this,"maxListenersWarningThreshold",{get:function(){return P},set:function(t){e.currentProvider&&e.currentProvider.setMaxListeners&&(P=t,e.currentProvider.setMaxListeners(t))},enumerable:!0}),this.clearSubscriptions=e._requestManager.clearSubscriptions.bind(e._requestManager),this.net=new l(this),this.net.getNetworkType=b.bind(this),this.accounts=new h(this),this.personal=new f(this),this.personal.defaultAccount=this.defaultAccount,this.maxListenersWarningThreshold=P;var C=this,j=function(){d.apply(this,arguments);var e=this,t=C.setProvider;C.setProvider=function(){t.apply(C,arguments),i.packageInit(e,[C])}};j.setProvider=function(){d.setProvider.apply(this,arguments)},j.prototype=Object.create(d.prototype),j.prototype.constructor=j,this.Contract=j,this.Contract.defaultAccount=this.defaultAccount,this.Contract.defaultBlock=this.defaultBlock,this.Contract.transactionBlockTimeout=this.transactionBlockTimeout,this.Contract.transactionConfirmationBlocks=this.transactionConfirmationBlocks,this.Contract.transactionPollingTimeout=this.transactionPollingTimeout,this.Contract.handleRevert=this.handleRevert,this.Contract._requestManager=this._requestManager,this.Contract._ethAccounts=this.accounts,this.Contract.currentProvider=this._requestManager.provider,this.Iban=p,this.abi=m,this.ens=new u(this);var D=[new s({name:"getNodeInfo",call:"web3_clientVersion"}),new s({name:"getProtocolVersion",call:"eth_protocolVersion",params:0}),new s({name:"getCoinbase",call:"eth_coinbase",params:0}),new s({name:"isMining",call:"eth_mining",params:0}),new s({name:"getHashrate",call:"eth_hashrate",params:0,outputFormatter:c.hexToNumber}),new s({name:"isSyncing",call:"eth_syncing",params:0,outputFormatter:y.outputSyncingFormatter}),new s({name:"getGasPrice",call:"eth_gasPrice",params:0,outputFormatter:y.outputBigNumberFormatter}),new s({name:"getAccounts",call:"eth_accounts",params:0,outputFormatter:c.toChecksumAddress}),new s({name:"getBlockNumber",call:"eth_blockNumber",params:0,outputFormatter:c.hexToNumber}),new s({name:"getBalance",call:"eth_getBalance",params:2,inputFormatter:[y.inputAddressFormatter,y.inputDefaultBlockNumberFormatter],outputFormatter:y.outputBigNumberFormatter}),new s({name:"getStorageAt",call:"eth_getStorageAt",params:3,inputFormatter:[y.inputAddressFormatter,c.numberToHex,y.inputDefaultBlockNumberFormatter]}),new s({name:"getCode",call:"eth_getCode",params:2,inputFormatter:[y.inputAddressFormatter,y.inputDefaultBlockNumberFormatter]}),new s({name:"getBlock",call:g,params:2,inputFormatter:[y.inputBlockNumberFormatter,function(e){return!!e}],outputFormatter:y.outputBlockFormatter}),new s({name:"getUncle",call:w,params:2,inputFormatter:[y.inputBlockNumberFormatter,c.numberToHex],outputFormatter:y.outputBlockFormatter}),new s({name:"getBlockTransactionCount",call:_,params:1,inputFormatter:[y.inputBlockNumberFormatter],outputFormatter:c.hexToNumber}),new s({name:"getBlockUncleCount",call:k,params:1,inputFormatter:[y.inputBlockNumberFormatter],outputFormatter:c.hexToNumber}),new s({name:"getTransaction",call:"eth_getTransactionByHash",params:1,inputFormatter:[null],outputFormatter:y.outputTransactionFormatter}),new s({name:"getTransactionFromBlock",call:v,params:2,inputFormatter:[y.inputBlockNumberFormatter,c.numberToHex],outputFormatter:y.outputTransactionFormatter}),new s({name:"getTransactionReceipt",call:"eth_getTransactionReceipt",params:1,inputFormatter:[null],outputFormatter:y.outputTransactionReceiptFormatter}),new s({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[y.inputAddressFormatter,y.inputDefaultBlockNumberFormatter],outputFormatter:c.hexToNumber}),new s({name:"sendSignedTransaction",call:"eth_sendRawTransaction",params:1,inputFormatter:[null],abiCoder:m}),new s({name:"signTransaction",call:"eth_signTransaction",params:1,inputFormatter:[y.inputTransactionFormatter]}),new s({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[y.inputTransactionFormatter],abiCoder:m}),new s({name:"sign",call:"eth_sign",params:2,inputFormatter:[y.inputSignFormatter,y.inputAddressFormatter],transformPayload:function(e){return e.params.reverse(),e}}),new s({name:"call",call:"eth_call",params:2,inputFormatter:[y.inputCallFormatter,y.inputDefaultBlockNumberFormatter],abiCoder:m}),new s({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[y.inputCallFormatter],outputFormatter:c.hexToNumber}),new s({name:"submitWork",call:"eth_submitWork",params:3}),new s({name:"getWork",call:"eth_getWork",params:0}),new s({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[y.inputLogFormatter],outputFormatter:y.outputLogFormatter}),new s({name:"getChainId",call:"eth_chainId",params:0,outputFormatter:c.hexToNumber}),new s({name:"requestAccounts",call:"eth_requestAccounts",params:0,outputFormatter:c.toChecksumAddress}),new s({name:"getProof",call:"eth_getProof",params:3,inputFormatter:[y.inputAddressFormatter,y.inputStorageKeysFormatter,y.inputDefaultBlockNumberFormatter],outputFormatter:y.outputProofFormatter}),new s({name:"getPendingTransactions",call:"eth_pendingTransactions",params:0,outputFormatter:y.outputTransactionFormatter}),new a({name:"subscribe",type:"eth",subscriptions:{newBlockHeaders:{subscriptionName:"newHeads",params:0,outputFormatter:y.outputBlockFormatter},pendingTransactions:{subscriptionName:"newPendingTransactions",params:0},logs:{params:1,inputFormatter:[y.inputLogFormatter],outputFormatter:y.outputLogFormatter,subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),r.isFunction(this.callback)&&this.callback(null,e,this)}},syncing:{params:0,outputFormatter:y.outputSyncingFormatter,subscriptionHandler:function(e){var t=this;!0!==this._isSyncing?(this._isSyncing=!0,this.emit("changed",t._isSyncing),r.isFunction(this.callback)&&this.callback(null,t._isSyncing,this),setTimeout((function(){t.emit("data",e),r.isFunction(t.callback)&&t.callback(null,e,t)}),0)):(this.emit("data",e),r.isFunction(t.callback)&&this.callback(null,e,this),clearTimeout(this._isSyncingTimeout),this._isSyncingTimeout=setTimeout((function(){e.currentBlock>e.highestBlock-200&&(t._isSyncing=!1,t.emit("changed",t._isSyncing),r.isFunction(t.callback)&&t.callback(null,t._isSyncing,t))}),500))}}}})];D.forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager,e.accounts),t.defaultBlock=e.defaultBlock,t.defaultAccount=e.defaultAccount,t.transactionBlockTimeout=e.transactionBlockTimeout,t.transactionConfirmationBlocks=e.transactionConfirmationBlocks,t.transactionPollingTimeout=e.transactionPollingTimeout,t.handleRevert=e.handleRevert}))};i.addProviders(x),e.exports=x},function(e,t,n){"use strict";var r=n(1151);e.exports=r},function(e,t,n){"use strict";var r=n(147),i=n(965),o=n(145).formatters,a=n(213),s=n(1152),c=n(1158),l=n(1159);function u(e){this.eth=e;var t=null;this._detectedAddress=null,this._lastSyncCheck=null,Object.defineProperty(this,"registry",{get:function(){return new s(this)},enumerable:!0}),Object.defineProperty(this,"resolverMethodHandler",{get:function(){return new c(this.registry)},enumerable:!0}),Object.defineProperty(this,"registryAddress",{get:function(){return t},set:function(e){t=null!==e?o.inputAddressFormatter(e):e},enumerable:!0})}u.prototype.supportsInterface=function(e,t,n){return this.getResolver(e).then((function(e){return a.isHexStrict(t)||(t=a.sha3(t).slice(0,10)),e.methods.supportsInterface(t).call(n)})).catch((function(e){if(!r.isFunction(n))throw e;n(e,null)}))},u.prototype.resolver=function(e,t){return this.registry.resolver(e,t)},u.prototype.getResolver=function(e,t){return this.registry.getResolver(e,t)},u.prototype.setResolver=function(e,t,n,r){return this.registry.setResolver(e,t,n,r)},u.prototype.setRecord=function(e,t,n,r,i,o){return this.registry.setRecord(e,t,n,r,i,o)},u.prototype.setSubnodeRecord=function(e,t,n,r,i,o,a){return this.registry.setSubnodeRecord(e,t,n,r,i,o,a)},u.prototype.setApprovalForAll=function(e,t,n,r){return this.registry.setApprovalForAll(e,t,n,r)},u.prototype.isApprovedForAll=function(e,t,n){return this.registry.isApprovedForAll(e,t,n)},u.prototype.recordExists=function(e,t){return this.registry.recordExists(e,t)},u.prototype.setSubnodeOwner=function(e,t,n,r,i){return this.registry.setSubnodeOwner(e,t,n,r,i)},u.prototype.getTTL=function(e,t){return this.registry.getTTL(e,t)},u.prototype.setTTL=function(e,t,n,r){return this.registry.setTTL(e,t,n,r)},u.prototype.getOwner=function(e,t){return this.registry.getOwner(e,t)},u.prototype.setOwner=function(e,t,n,r){return this.registry.setOwner(e,t,n,r)},u.prototype.getAddress=function(e,t){return this.resolverMethodHandler.method(e,"addr",[]).call(t)},u.prototype.setAddress=function(e,t,n,r){return this.resolverMethodHandler.method(e,"setAddr",[t]).send(n,r)},u.prototype.getPubkey=function(e,t){return this.resolverMethodHandler.method(e,"pubkey",[],null,t).call(t)},u.prototype.setPubkey=function(e,t,n,r,i){return this.resolverMethodHandler.method(e,"setPubkey",[t,n]).send(r,i)},u.prototype.getContent=function(e,t){return this.resolverMethodHandler.method(e,"content",[]).call(t)},u.prototype.setContent=function(e,t,n,r){return this.resolverMethodHandler.method(e,"setContent",[t]).send(n,r)},u.prototype.getContenthash=function(e,t){return this.resolverMethodHandler.method(e,"contenthash",[],l.decode).call(t)},u.prototype.setContenthash=function(e,t,n,i){var o;try{o=l.encode(t)}catch(e){var a=new Error("Could not encode "+t+". See docs for supported hash protocols.");if(r.isFunction(i))return void i(a,null);throw a}return this.resolverMethodHandler.method(e,"setContenthash",[o]).send(n,i)},u.prototype.getMultihash=function(e,t){return this.resolverMethodHandler.method(e,"multihash",[]).call(t)},u.prototype.setMultihash=function(e,t,n,r){return this.resolverMethodHandler.method(e,"multihash",[t]).send(n,r)},u.prototype.checkNetwork=async function(){var e=new Date/1e3;if(!this._lastSyncCheck||e-this._lastSyncCheck>3600){var t=e-(await this.eth.getBlock("latest")).timestamp;if(t>3600)throw new Error("Network not synced; last block was "+t+" seconds ago");this._lastSyncCheck=e}if(this.registryAddress)return this.registryAddress;if(!this._detectedAddress){var n=await this.eth.net.getNetworkType(),r=i.addresses[n];if(void 0===r)throw new Error("ENS is not supported on network "+n);return this._detectedAddress=r,this._detectedAddress}return this._detectedAddress},e.exports=u},function(e,t,n){"use strict";var r=n(147),i=n(966),o=n(875),a=n(872),s=n(145).formatters,c=n(213),l=n(1156),u=n(1157);function f(e){var t=this;this.ens=e,this.contract=e.checkNetwork().then((function(e){var n=new i(l,e);return n.setProvider(t.ens.eth.currentProvider),n}))}f.prototype.owner=function(e,t){return console.warn('Deprecated: Please use the "getOwner" method instead of "owner".'),this.getOwner(e,t)},f.prototype.getOwner=function(e,t){var n=new a(!0);return this.contract.then((function(t){return t.methods.owner(o.hash(e)).call()})).then((function(e){r.isFunction(t)?t(e,e):n.resolve(e)})).catch((function(e){r.isFunction(t)?t(e,null):n.reject(e)})),n.eventEmitter},f.prototype.setOwner=function(e,t,n,i){var c=new a(!0);return this.contract.then((function(r){return r.methods.setOwner(o.hash(e),s.inputAddressFormatter(t)).send(n)})).then((function(e){r.isFunction(i)?i(e,e):c.resolve(e)})).catch((function(e){r.isFunction(i)?i(e,null):c.reject(e)})),c.eventEmitter},f.prototype.getTTL=function(e,t){var n=new a(!0);return this.contract.then((function(t){return t.methods.ttl(o.hash(e)).call()})).then((function(e){r.isFunction(t)?t(e,e):n.resolve(e)})).catch((function(e){r.isFunction(t)?t(e,null):n.reject(e)})),n.eventEmitter},f.prototype.setTTL=function(e,t,n,i){var s=new a(!0);return this.contract.then((function(r){return r.methods.setTTL(o.hash(e),t).send(n)})).then((function(e){r.isFunction(i)?i(e,e):s.resolve(e)})).catch((function(e){r.isFunction(i)?i(e,null):s.reject(e)})),s.eventEmitter},f.prototype.setSubnodeOwner=function(e,t,n,i,l){var u=new a(!0);return c.isHexStrict(t)||(t=c.sha3(t)),this.contract.then((function(r){return r.methods.setSubnodeOwner(o.hash(e),t,s.inputAddressFormatter(n)).send(i)})).then((function(e){r.isFunction(l)?l(e,e):u.resolve(e)})).catch((function(e){r.isFunction(l)?l(e,null):u.reject(e)})),u.eventEmitter},f.prototype.setRecord=function(e,t,n,i,c,l){var u=new a(!0);return this.contract.then((function(r){return r.methods.setRecord(o.hash(e),s.inputAddressFormatter(t),s.inputAddressFormatter(n),i).send(c)})).then((function(e){r.isFunction(l)?l(e,e):u.resolve(e)})).catch((function(e){r.isFunction(l)?l(e,null):u.reject(e)})),u.eventEmitter},f.prototype.setSubnodeRecord=function(e,t,n,i,l,u,f){var d=new a(!0);return c.isHexStrict(t)||(t=c.sha3(t)),this.contract.then((function(r){return r.methods.setSubnodeRecord(o.hash(e),t,s.inputAddressFormatter(n),s.inputAddressFormatter(i),l).send(u)})).then((function(e){r.isFunction(f)?f(e,e):d.resolve(e)})).catch((function(e){r.isFunction(f)?f(e,null):d.reject(e)})),d.eventEmitter},f.prototype.setApprovalForAll=function(e,t,n,i){var o=new a(!0);return this.contract.then((function(r){return r.methods.setApprovalForAll(s.inputAddressFormatter(e),t).send(n)})).then((function(e){r.isFunction(i)?i(e,e):o.resolve(e)})).catch((function(e){r.isFunction(i)?i(e,null):o.reject(e)})),o.eventEmitter},f.prototype.isApprovedForAll=function(e,t,n){var i=new a(!0);return this.contract.then((function(n){return n.methods.isApprovedForAll(s.inputAddressFormatter(e),s.inputAddressFormatter(t)).call()})).then((function(e){r.isFunction(n)?n(e,e):i.resolve(e)})).catch((function(e){r.isFunction(n)?n(e,null):i.reject(e)})),i.eventEmitter},f.prototype.recordExists=function(e,t){var n=new a(!0);return this.contract.then((function(t){return t.methods.recordExists(o.hash(e)).call()})).then((function(e){r.isFunction(t)?t(e,e):n.resolve(e)})).catch((function(e){r.isFunction(t)?t(e,null):n.reject(e)})),n.eventEmitter},f.prototype.resolver=function(e,t){return console.warn('Deprecated: Please use the "getResolver" method instead of "resolver".'),this.getResolver(e,t)},f.prototype.getResolver=function(e,t){var n=this;return this.contract.then((function(t){return t.methods.resolver(o.hash(e)).call()})).then((function(e){var o=new i(u,e);if(o.setProvider(n.ens.eth.currentProvider),!r.isFunction(t))return o;t(o,o)})).catch((function(e){if(!r.isFunction(t))throw e;t(e,null)}))},f.prototype.setResolver=function(e,t,n,i){var c=new a(!0);return this.contract.then((function(r){return r.methods.setResolver(o.hash(e),s.inputAddressFormatter(t)).send(n)})).then((function(e){r.isFunction(i)?i(e,e):c.resolve(e)})).catch((function(e){r.isFunction(i)?i(e,null):c.reject(e)})),c.eventEmitter},e.exports=f},function(e,t,n){(function(t,n){
200 /**
201  * [js-sha3]{@link https://github.com/emn178/js-sha3}
202  *
203  * @version 0.5.7
204  * @author Chen, Yi-Cyuan [emn178@gmail.com]
205  * @copyright Chen, Yi-Cyuan 2015-2016
206  * @license MIT
207  */
208 !function(){"use strict";var r="object"==typeof window?window:{};!r.JS_SHA3_NO_NODE_JS&&"object"==typeof t&&t.versions&&t.versions.node&&(r=n);for(var i=!r.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,o="0123456789abcdef".split(""),a=[0,8,16,24],s=[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],c=[224,256,384,512],l=["hex","buffer","arrayBuffer","array"],u=function(e,t,n){return function(r){return new _(e,t,e).update(r)[n]()}},f=function(e,t,n){return function(r,i){return new _(e,t,i).update(r)[n]()}},d=function(e,t){var n=u(e,t,"hex");n.create=function(){return new _(e,t,e)},n.update=function(e){return n.create().update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=u(e,t,i)}return n},p=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:d},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:d},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var n=f(e,t,"hex");n.create=function(n){return new _(e,t,n)},n.update=function(e,t){return n.create(t).update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=f(e,t,i)}return n}}],h={},m=[],b=0;b<p.length;++b)for(var y=p[b],g=y.bits,v=0;v<g.length;++v){var w=y.name+"_"+g[v];m.push(w),h[w]=y.createMethod(g[v],y.padding)}function _(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}_.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var n,r,i=e.length,o=this.blocks,s=this.byteCount,c=this.blockCount,l=0,u=this.s;l<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<c+1;++n)o[n]=0;if(t)for(n=this.start;l<i&&n<s;++l)o[n>>2]|=e[l]<<a[3&n++];else for(n=this.start;l<i&&n<s;++l)(r=e.charCodeAt(l))<128?o[n>>2]|=r<<a[3&n++]:r<2048?(o[n>>2]|=(192|r>>6)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):r<55296||r>=57344?(o[n>>2]|=(224|r>>12)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++l)),o[n>>2]|=(240|r>>18)<<a[3&n++],o[n>>2]|=(128|r>>12&63)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=o[c],n=0;n<c;++n)u[n]^=o[n];k(u),this.reset=!0}else this.start=n}return this},_.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];k(r)},_.prototype.toString=_.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,a=0,s=0,c="";s<r;){for(a=0;a<t&&s<r;++a,++s)e=n[a],c+=o[e>>4&15]+o[15&e]+o[e>>12&15]+o[e>>8&15]+o[e>>20&15]+o[e>>16&15]+o[e>>28&15]+o[e>>24&15];s%t==0&&(k(n),a=0)}return i&&(e=n[a],i>0&&(c+=o[e>>4&15]+o[15&e]),i>1&&(c+=o[e>>12&15]+o[e>>8&15]),i>2&&(c+=o[e>>20&15]+o[e>>16&15])),c},_.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)c[a]=n[o];a%t==0&&k(n)}return i&&(c[o]=n[o],e=e.slice(0,s)),e},_.prototype.buffer=_.prototype.arrayBuffer,_.prototype.digest=_.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,c=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n==0&&k(r)}return o&&(e=s<<2,t=r[a],o>0&&(c[e]=255&t),o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c};var k=function(e){var t,n,r,i,o,a,c,l,u,f,d,p,h,m,b,y,g,v,w,_,k,x,S,O,E,T,A,M,I,P,C,j,D,R,N,B,L,U,F,q,z,V,H,$,K,W,G,J,Q,Y,Z,X,ee,te,ne,re,ie,oe,ae,se,ce,le,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|c>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|u>>>31),n=o^(u<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(f<<1|d>>>31),n=c^(d<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(p<<1|h>>>31),n=u^(h<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|o>>>31),n=d^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,j=e[45]<<29|e[44]>>>3,D=e[44]<<29|e[45]>>>3,O=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,A=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~y&v,e[1]=b^~g&w,e[10]=O^~T&M,e[11]=E^~A&I,e[20]=R^~B&U,e[21]=N^~L&F,e[30]=$^~W&J,e[31]=K^~G&Q,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=y^~v&_,e[3]=g^~w&k,e[12]=T^~M&P,e[13]=A^~I&C,e[22]=B^~U&q,e[23]=L^~F&z,e[32]=W^~J&Y,e[33]=G^~Q&Z,e[42]=re^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&x,e[5]=w^~k&S,e[14]=M^~P&j,e[15]=I^~C&D,e[24]=U^~q&V,e[25]=F^~z&H,e[34]=J^~Y&X,e[35]=Q^~Z&ee,e[44]=oe^~se&le,e[45]=ae^~ce&ue,e[6]=_^~x&m,e[7]=k^~S&b,e[16]=P^~j&O,e[17]=C^~D&E,e[26]=q^~V&R,e[27]=z^~H&N,e[36]=Y^~X&$,e[37]=Z^~ee&K,e[46]=se^~le&te,e[47]=ce^~ue&ne,e[8]=x^~m&y,e[9]=S^~b&g,e[18]=j^~O&T,e[19]=D^~E&A,e[28]=V^~R&B,e[29]=H^~N&L,e[38]=X^~$&W,e[39]=ee^~K&G,e[48]=le^~te&re,e[49]=ue^~ne&ie,e[0]^=s[r],e[1]^=s[r+1]};if(i)e.exports=h;else for(b=0;b<m.length;++b)r[m[b]]=h[m[b]]}()}).call(this,n(13),n(12))},function(e,t,n){var r,i;r=[n(960),n(1155)],void 0===(i=function(e,t){return function(e,t){function n(n,r,i){for(var o=[],a=e.ucs2.decode(n),s=0;s<a.length;s++){var c=a[s],l=e.ucs2.encode([a[s]]),u=t.mapChar(c),f=u>>23,d=u>>21&3,p=u>>5&65535,h=31&u,m=t.mapStr.substr(p,h);if(0===d||r&&1&f)throw new Error("Illegal char "+l);1===d?o.push(m):2===d?o.push(i?m:l):3===d&&o.push(l)}return o.join("").normalize("NFC")}function r(t,r,o){void 0===o&&(o=!1);var a=n(t,o,r).split(".");return(a=a.map((function(t){return t.startsWith("xn--")?i(t=e.decode(t.substring(4)),o,!1):i(t,o,r),t}))).join(".")}function i(e,r,i){if("-"===e[2]&&"-"===e[3])throw new Error("Failed to validate "+e);if(e.startsWith("-")||e.endsWith("-"))throw new Error("Failed to validate "+e);if(e.includes("."))throw new Error("Failed to validate "+e);if(n(e,r,i)!==e)throw new Error("Failed to validate "+e);var o=e.codePointAt(0);if(t.mapChar(o)&2<<23)throw new Error("Label contains illegal character: "+o)}return{toUnicode:function(e,t){return void 0===t&&(t={}),r(e,!1,"useStd3ASCII"in t&&t.useStd3ASCII)},toAscii:function(t,n){void 0===n&&(n={});var i,o=!("transitional"in n)||n.transitional,a="useStd3ASCII"in n&&n.useStd3ASCII,s="verifyDnsLength"in n&&n.verifyDnsLength,c=r(t,o,a).split(".").map(e.toASCII),l=c.join(".");if(s){if(l.length<1||l.length>253)throw new Error("DNS name has wrong length: "+l);for(i=0;i<c.length;i++){var u=c[i];if(u.length<1||u.length>63)throw new Error("DNS label has wrong length: "+u)}}return l}}}(e,t)}.apply(t,r))||(e.exports=i)},function(e,t,n){var r;void 0===(r=function(){return e=[new Uint32Array([2157250,2157314,2157378,2157442,2157506,2157570,2157634,0,2157698,2157762,2157826,2157890,2157954,0,2158018,0]),new Uint32Array([2179041,6291456,2179073,6291456,2179105,6291456,2179137,6291456,2179169,6291456,2179201,6291456,2179233,6291456,2179265,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,2113729,2197345,2197377,2113825,2197409,2197441,2113921,2197473,2114017,2197505,2197537,2197569,2197601,2197633,2197665]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672,23068672,0,0,0,0,23068672]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064]),new Uint32Array([2196001,2196033,2196065,2196097,2196129,2196161,2196193,2196225,2196257,2196289,2196321,2196353,2196385,2196417,2196449,2196481]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2177025,6291456,2177057,6291456,2177089,6291456,2177121,6291456,2177153,6291456,2177185,6291456,2177217,6291456,2177249,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456]),new Uint32Array([2134435,2134531,2134627,2134723,2134723,2134819,2134819,2134915,2134915,2135011,2105987,2135107,2135203,2135299,2131587,2135395]),new Uint32Array([0,0,0,0,0,0,0,6291456,2168673,2169249,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354,2147906,2147970,2148034,2148098,2148162,2148226,2148290,2148354]),new Uint32Array([2125219,2125315,2152834,2152898,2125411,2152962,2153026,2125506,2125507,2125603,2153090,2153154,2153218,2153282,2153346,2105348]),new Uint32Array([2203393,6291456,2203425,6291456,2203457,6291456,2203489,6291456,6291456,6291456,6291456,2203521,6291456,2181281,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,6291456,2145538,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,6291456]),new Uint32Array([2139426,2160834,2160898,2160962,2134242,2161026,2161090,2161154,2161218,2161282,2161346,2161410,2138658,2161474,2161538,2134722]),new Uint32Array([2119939,2124930,2125026,2106658,2125218,2128962,2129058,2129154,2129250,2129346,2129442,2108866,2108770,2150466,2150530,2150594]),new Uint32Array([2201601,6291456,2201633,6291456,2201665,6291456,2201697,6291456,2201729,6291456,2201761,6291456,2201793,6291456,2201825,6291456]),new Uint32Array([2193537,2193569,2193601,2193633,2193665,2193697,2193729,2193761,2193793,2193825,2193857,2193889,2193921,2193953,2193985,2194017]),new Uint32Array([6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2190561,6291456,2190593,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2190625,6291456,2190657,6291456,23068672]),new Uint32Array([2215905,2215937,2215969,2216001,2216033,2216065,2216097,2216129,2216161,2216193,2216225,2216257,2105441,2216289,2216321,2216353]),new Uint32Array([23068672,18884130,23068672,23068672,23068672,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2191233,2191265,2191297,2191329,2191361,2191393,2191425,2117377,2191457,2191489,2191521,2191553,2191585,2191617,2191649,2117953]),new Uint32Array([2132227,2132323,2132419,2132419,2132515,2132515,2132611,2132707,2132707,2132803,2132899,2132899,2132995,2132995,2133091,2133187]),new Uint32Array([0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10609889,10610785,10609921,10610817,2222241]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([2219969,2157121,2157441,2157505,2157889,2157953,2220001,2158465,2158529,10575617,2156994,2157058,2129923,2130019,2157122,2157186]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2185249,6291456,2185281,6291456,2185313,6291456,2185345,6291456,2185377,6291456,2185409,6291456,2185441,6291456,2185473,6291456]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,6291456,0]),new Uint32Array([2183361,6291456,2183393,6291456,2183425,6291456,2183457,6291456,2183489,6291456,2183521,6291456,2183553,6291456,2183585,6291456]),new Uint32Array([2192161,2192193,2192225,2192257,2192289,2192321,2192353,2192385,2192417,2192449,2192481,2192513,2192545,2192577,2192609,2192641]),new Uint32Array([2212001,2212033,2212065,2212097,2212129,2212161,2212193,2212225,2212257,2212289,2212321,2212353,2212385,2212417,2212449,2207265]),new Uint32Array([2249825,2249857,2249889,2249921,2249954,2250018,2250082,2250145,2250177,2250209,2250241,2250274,2250337,2250370,2250433,2250465]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147905,2147969,2148033,2148097,2148161,2148225,2148289,2148353]),new Uint32Array([10485857,6291456,2197217,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,23068672,23068672]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2180353,2180385,2144033,2180417,2180449,2180481,2180513,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,10610209,10610465,10610241,10610753,10609857]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2223842,2223906,2223970,2224034,2224098,2224162,2224226,2224290,2224354,2224418,2224482,2224546,2224610,2224674,2224738,2224802]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,18923650,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,18923714,23068672,23068672]),new Uint32Array([2126179,2125538,2126275,2126371,2126467,2125634,2126563,2105603,2105604,2125346,2126659,2126755,2126851,2098179,2098181,2098182]),new Uint32Array([2227426,2227490,2227554,2227618,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2192353,2240642,2240642,2240705,2240737,2240737,2240769,2240802,2240866,2240929,2240961,2240993,2241025,2241057,2241089,2241121]),new Uint32Array([6291456,2170881,2170913,2170945,6291456,2170977,6291456,2171009,2171041,6291456,6291456,6291456,2171073,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2132226,2132514,2163586,2132610,2160386,2133090,2133186,2160450,2160514,2160578,2133570,2106178,2160642,2133858,2160706,2160770]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10532162,10532226,10532290,10532354,10532418,10532482,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2098209,2108353,2108193,2108481,2170241,2111713,2105473,2105569,2105601,2112289,2112481,2098305,2108321,0,0,0]),new Uint32Array([2209121,2209153,2209185,2209217,2209249,2209281,2209313,2209345,2209377,2209409,2209441,2209473,2207265,2209505,2209537,2209569]),new Uint32Array([2189025,6291456,2189057,6291456,2189089,6291456,2189121,6291456,2189153,6291456,2189185,6291456,2189217,6291456,2189249,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2165764,2140004]),new Uint32Array([2215105,6291456,2215137,6291456,6291456,2215169,2215201,6291456,6291456,6291456,2215233,2215265,2215297,2215329,2215361,2215393]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,23068672,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([10505091,10505187,10505283,10505379,10505475,10505571,10505667,10505763,10505859,10505955,10506051,10506147,10506243,10506339,10506435,10506531]),new Uint32Array([2229730,2229794,2229858,2229922,2229986,2230050,2230114,2230178,2230242,2230306,2230370,2230434,2230498,2230562,2230626,2230690]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,0,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([6291456,6291456,6291456,6291456,10502115,10502178,10502211,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2190305,6291456,2190337,6291456,2190369,6291456,2190401,6291456,2190433,6291456,2190465,6291456,2190497,6291456,2190529,6291456]),new Uint32Array([2173793,2173985,2174017,6291456,2173761,2173697,6291456,2174689,6291456,2174017,2174721,6291456,6291456,2174753,2174785,2174817]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609,2100033]),new Uint32Array([2132898,2163842,2163906,2133282,2132034,2131938,2137410,2132802,2132706,2164866,2133282,2160578,2165186,2165186,6291456,6291456]),new Uint32Array([10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059,10501155,10501251,10501347,10501443]),new Uint32Array([2163458,2130978,2131074,2131266,2131362,2163522,2160130,2132066,2131010,2131106,2106018,2131618,2131298,2132034,2131938,2137410]),new Uint32Array([2212961,2116993,2212993,2213025,2213057,2213089,2213121,2213153,2213185,2213217,2213249,2209633,2213281,2213313,2213345,2213377]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2113729,2113825,2113921,2114017,2114113,2114209,2114305,2114401,2114497,2114593,2114689,2114785,2114881,2114977,2115073,2115169]),new Uint32Array([2238177,2238209,2238241,2238273,2238305,2238337,2238337,2217537,2238369,2238401,2238433,2238465,2215649,2238497,2238529,2238561]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0]),new Uint32Array([6291456,0,6291456,2145026,0,6291456,2145090,0,6291456,6291456,0,0,23068672,0,23068672,23068672]),new Uint32Array([2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129,2100289]),new Uint32Array([6291456,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0]),new Uint32Array([2187681,2187713,2187745,2187777,2187809,2187841,2187873,2187905,2187937,2187969,2188001,2188033,2188065,2188097,2188129,2188161]),new Uint32Array([0,10554498,10554562,10554626,10554690,10554754,10554818,10554882,10554946,10555010,10555074,6291456,6291456,0,0,0]),new Uint32Array([2235170,2235234,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0]),new Uint32Array([2181153,6291456,2188897,6291456,6291456,2188929,6291456,6291456,6291456,6291456,6291456,6291456,2111905,2100865,2188961,2188993]),new Uint32Array([2100833,2100897,0,0,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,2112289]),new Uint32Array([6291456,2172833,6291456,2172865,2172897,2172929,2172961,6291456,2172993,6291456,2173025,6291456,2173057,6291456,2173089,6291456]),new Uint32Array([6291456,0,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,2190721]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456]),new Uint32Array([2184993,6291456,2185025,6291456,2185057,6291456,2185089,6291456,2185121,6291456,2185153,6291456,2185185,6291456,2185217,6291456]),new Uint32Array([2115265,2115361,2115457,2115553,2115649,2115745,2115841,2115937,2116033,2116129,2116225,2116321,2150658,2150722,2200225,6291456]),new Uint32Array([2168321,6291456,2168353,6291456,2168385,6291456,2168417,6291456,2168449,6291456,2168481,6291456,2168513,6291456,2168545,6291456]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,0,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2186625,0,0,6291456,6291456,2186657,2186689,2186721,2173505,0,10496067,10496163,10496259]),new Uint32Array([2178785,6291456,2178817,6291456,2178849,6291456,2178881,6291456,2178913,6291456,2178945,6291456,2178977,6291456,2179009,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2097152,0,0,0,2097152,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2197857,2197889,2197921,2197953,2197985,2198017,0,0,2198049,2198081,2198113,2198145,2198177,2198209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2098209,2167297,2111137,6291456]),new Uint32Array([2171393,6291456,2171425,6291456,2171457,6291456,2171489,6291456,2171521,6291456,2171553,6291456,2171585,6291456,2171617,6291456]),new Uint32Array([2206753,2206785,2195457,2206817,2206849,2206881,2206913,2197153,2197153,2206945,2117857,2206977,2207009,2207041,2207073,2207105]),new Uint32Array([0,0,0,0,0,0,0,23068672,0,0,0,0,2144834,2144898,0,2144962]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,0,2105505,2098241]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,2202049,6291456,2202081,6291456,2202113,6291456,2202145,6291456,2202177,6291456,2202209,6291456,2202241,6291456]),new Uint32Array([10501155,10501251,10501347,10501443,10501539,10501635,10501731,10501827,10501923,10502019,2141731,2105505,2098177,2155586,2166530,0]),new Uint32Array([2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441]),new Uint32Array([2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330,2146882,2146946,2147010,2147074,2147138,2147202,2147266,2147330]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10502307,10502403,10502499,10502595,10502691,10502787,10502883,10502979,10503075,10503171,10503267,10503363,10503459,10503555,10503651,10503747]),new Uint32Array([2179937,2179969,2180001,2180033,2156545,2180065,2156577,2180097,2180129,2180161,2180193,2180225,2180257,2180289,2156737,2180321]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,0,0,6291456,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([2227682,2227746,2227810,2227874,2227938,2228002,2228066,2228130,2228194,2228258,2228322,2228386,2228450,2228514,2228578,2228642]),new Uint32Array([2105601,2169121,2108193,2170049,2181025,2181057,2112481,2108321,2108289,2181089,2170497,2100865,2181121,2173601,2173633,2173665]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180641,6291456,6291456,6291456]),new Uint32Array([0,6291456,6291456,6291456,0,6291456,0,6291456,0,0,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2178273,6291456,2178305,6291456,2178337,6291456,2178369,6291456,2178401,6291456,2178433,6291456,2178465,6291456,2178497,6291456]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2237377,2237409,2236225,2237441,2237473,2217441,2215521,2215553,2217473,2237505,2237537,2209697,2237569,2215585,2237601,2237633]),new Uint32Array([2221985,2165601,2165601,2165665,2165665,2222017,2222017,2165729,2165729,2158913,2158913,2158913,2158913,2097281,2097281,2105921]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2149634,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2176897,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2176929,6291456,2176961,6291456,2176993,6291456]),new Uint32Array([2172641,6291456,2172673,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2172705,2172737,6291456,2172769,2172801,6291456]),new Uint32Array([2099173,2104196,2121667,2099395,2121763,2152258,2152322,2098946,2152386,2121859,2121955,2099333,2122051,2104324,2099493,2122147]),new Uint32Array([6291456,6291456,6291456,2145794,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2145858,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,0,0,6291456,0]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,0,2097505,2105889,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2239074,2239138,2239201,2239233,2239265,2239297,2239329,2239361,0,2239393,2239425,2239425,2239458,2239521,2239553,2209569]),new Uint32Array([14680064,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,6291456,23068672]),new Uint32Array([2108321,2108289,2113153,2098209,2180897,2180929,2180961,2111137,2098241,2108353,2170241,2170273,2180993,2105825,6291456,2105473]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146114,6291456,6291456,6291456,0,0,0]),new Uint32Array([2105921,2105921,2105921,2222049,2222049,2130977,2130977,2130977,2130977,2160065,2160065,2160065,2160065,2097729,2097729,2097729]),new Uint32Array([2218145,2214785,2207937,2218177,2218209,2192993,2210113,2212769,2218241,2218273,2216129,2218305,2216161,2218337,2218369,2218401]),new Uint32Array([0,0,0,2156546,2156610,2156674,2156738,2156802,0,0,0,0,0,2156866,23068672,2156930]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2213409,2213441,2213473,2213505,2213537,2213569,2213601,2213633,2213665,2195681,2213697,2213729,2213761,2213793,2213825,2213857]),new Uint32Array([2100033,2099233,2122017,2200673,2098113,2121537,2103201,2200705,2104033,2121857,2121953,2122401,2099649,2099969,2123009,2100129]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2201857,6291456,2201889,6291456,2201921,6291456,2201953,6291456,2201985,6291456,2202017,6291456,2176193,2176257,23068672,23068672]),new Uint32Array([6291456,6291456,23068672,23068672,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2188193,2188225,2188257,2188289,2188321,2188353,2188385,2188417,2188449,2188481,2188513,2188545,2188577,2188609,2188641,0]),new Uint32Array([10554529,2221089,0,10502113,10562017,10537921,10538049,2221121,2221153,0,0,0,0,0,0,0]),new Uint32Array([2213889,2213921,2213953,2213985,2214017,2214049,2214081,2194177,2214113,2214145,2214177,2214209,2214241,2214273,2214305,2214337]),new Uint32Array([2166978,2167042,2099169,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2180545,6291456,6291456,6291456]),new Uint32Array([10518915,10519011,10519107,10519203,2162242,2162306,2159554,2162370,2159362,2159618,2105922,2162434,2159746,2162498,2159810,2159874]),new Uint32Array([2161730,2161794,2135586,2161858,2161922,2137186,2131810,2160290,2135170,2161986,2137954,2162050,2162114,2162178,10518723,10518819]),new Uint32Array([10506627,10506723,10506819,10506915,10507011,10507107,10507203,10507299,10507395,10507491,10507587,10507683,10507779,10507875,10507971,10508067]),new Uint32Array([6291456,23068672,23068672,23068672,0,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2175873,2175905,2175937,2175969,2176001,2176033,2176065,2176097,2176129,2176161,2176193,2176225,2176257,2176289,2176321,2176353]),new Uint32Array([2140006,2140198,2140390,2140582,2140774,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,23068672,23068672,23068672]),new Uint32Array([2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241]),new Uint32Array([0,23068672,0,0,0,0,0,0,0,2145154,2145218,2145282,6291456,0,2145346,0]),new Uint32Array([0,0,0,0,10531458,10495395,2148545,2143201,2173473,2148865,2173505,0,2173537,0,2173569,2149121]),new Uint32Array([10537282,10495683,2148738,2148802,2148866,0,6291456,2148930,2186593,2173473,2148737,2148865,2148802,10495779,10495875,10495971]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2215425,2215457,2215489,2215521,2215553,2215585,2215617,2215649,2215681,2215713,2215745,2215777,2192033,2215809,2215841,2215873]),new Uint32Array([2242049,2242081,2242113,2242145,2242177,2242209,2242241,2242273,2215937,2242305,2242338,2242401,2242433,2242465,2242497,2216001]),new Uint32Array([10554529,2221089,0,0,10562017,10502113,10538049,10537921,2221185,10489601,10489697,10609889,10609921,2141729,2141793,10610273]),new Uint32Array([2141923,2142019,2142115,2142211,2142307,2142403,2142499,2142595,2142691,0,0,0,0,0,0,0]),new Uint32Array([0,2221185,2221217,10609857,10609857,10489601,10489697,10609889,10609921,2141729,2141793,2221345,2221377,2221409,2221441,2187105]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18923970,23068672,23068672,23068672,0,6291456,6291456]),new Uint32Array([2183105,6291456,2183137,6291456,2183169,6291456,2183201,6291456,2183233,6291456,2183265,6291456,2183297,6291456,2183329,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2134434,2134818,2097666,2097186,2097474,2097698,2105986,2131586,2132450,2131874,2131778,2135970,2135778,2161602,2136162,2161666]),new Uint32Array([2236865,2236897,2236930,2236993,2237025,2235681,2237058,2237121,2237153,2237185,2237217,2217281,2237250,2191233,2237313,2237345]),new Uint32Array([2190049,6291456,2190081,6291456,2190113,6291456,2190145,6291456,2190177,6291456,2190209,6291456,2190241,6291456,2190273,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2101922,2102050,2102178,2102306,10498755,10498851,10498947,10499043,10499139,10499235,10499331,10499427,10499523,10489604,10489732,10489860]),new Uint32Array([2166914,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2181601,2170561,2181633,2181665,2170753,2181697,2172897,2170881,2181729,2170913,2172929,2113441,2181761,2181793,2171009,2173761]),new Uint32Array([0,2105921,2097729,2106081,0,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2248001,2248033,2248066,2248130,2248193,2248226,2248289,2248322,2248385,2248417,2216673,2248450,2248514,2248577,2248610,2248673]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([2169729,6291456,2169761,6291456,2169793,6291456,2169825,6291456,2169857,2169889,6291456,2169921,6291456,2143329,6291456,2098305]),new Uint32Array([2162178,2163202,2163266,2135170,2136226,2161986,2137954,2159426,2159490,2163330,2159554,2163394,2159682,2139522,2136450,2159746]),new Uint32Array([2173953,2173985,0,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2174209,2174241,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,4271169,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2174273]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,6291456,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,2190785,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2189793,6291456,2189825,6291456,2189857,6291456,2189889,6291456,2189921,6291456,2189953,6291456,2189985,6291456,2190017,6291456]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,0,2098305,2108321,2108289,2100865,2113153,2108481,2113345,0,2098209,2111137]),new Uint32Array([2172129,6291456,2172161,6291456,2172193,6291456,2172225,6291456,2172257,6291456,2172289,6291456,2172321,6291456,2172353,6291456]),new Uint32Array([2214753,6291456,2214785,6291456,6291456,2214817,2214849,2214881,2214913,2214945,2214977,2215009,2215041,2215073,2194401,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([10610305,10610337,10575617,2221761,10610401,10610433,10502177,0,10610465,10610497,10610529,10610561,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2187105,2187137,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2199393,2199425,2199457,2199489,2199521,2199553,2199585,2199617,2199649,2199681,2199713,2199745,2199777,2199809,2199841,0]),new Uint32Array([2217249,2217281,2217313,2217345,2217377,2217409,2217441,2217473,2215617,2217505,2217537,2217569,2214753,2217601,2217633,2217665]),new Uint32Array([2170273,2170305,6291456,2170337,2170369,6291456,2170401,2170433,2170465,6291456,6291456,6291456,2170497,2170529,6291456,2170561]),new Uint32Array([2188673,6291456,2188705,2188737,2188769,6291456,6291456,2188801,6291456,2188833,6291456,2188865,6291456,2180929,2181505,2180897]),new Uint32Array([10489988,10490116,10490244,10490372,10490500,10490628,10490756,10490884,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2147393,2147457,2147521,2147585,2147649,2147713,2147777,2147841]),new Uint32Array([23068672,23068672,0,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2241153,2241185,2241217,2215809,2241250,2241313,2241345,2241377,2217921,2241377,2241409,2215873,2241441,2241473,2241505,2241537]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220417,2220417,2220449,2220449,2220481,2220481,2220513,2220513,2220545,2220545,2220577,2220577,2220609,2220609,2220641,2220641]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2144002,0,6291456,6291456,0,0,6291456,6291456,6291456]),new Uint32Array([2167105,2167137,2167169,2167201,2167233,2167265,2167297,2167329,2167361,2167393,2167425,2167457,2167489,2167521,2167553,2167585]),new Uint32Array([10575521,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2234146,2234210,2234274,2234338,2234402,2234466,2234530,2234594,2234658,2234722,2234786,2234850,2234914,2234978,2235042,2235106]),new Uint32Array([0,0,0,0,0,0,0,2180577,0,0,0,0,0,2180609,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456]),new Uint32Array([2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2242529,2242561,2242593,2242625,2242657,2242689,2242721,2242753,2207937,2218177,2242785,2242817,2242849,2242882,2242945,2242977]),new Uint32Array([2118049,2105345,2118241,2105441,2118433,2118529,2118625,2118721,2118817,2200257,2200289,2191809,2200321,2200353,2200385,2200417]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2185505,6291456,2185537,6291456,2185569,6291456,2185601,6291456,2185633,6291456,2185665,6291456,2185697,6291456,2185729,6291456]),new Uint32Array([2231970,2232034,2232098,2232162,2232226,2232290,2232354,2232418,2232482,2232546,2232610,2232674,2232738,2232802,2232866,2232930]),new Uint32Array([2218625,2246402,2246466,2246530,2246594,2246657,2246689,2246689,2218657,2219681,2246721,2246753,2246785,2246818,2246881,2208481]),new Uint32Array([2197025,2197057,2197089,2197121,2197153,2197185,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2219137,2216961,2219169,2219201,2219233,2219265,2219297,2217025,2215041,2219329,2217057,2219361,2217089,2219393,2197153,2219426]),new Uint32Array([23068672,23068672,23068672,0,0,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713]),new Uint32Array([2243522,2243585,2243617,2243649,2243681,2210113,2243713,2243746,2243810,2243874,2243937,2243970,2244033,2244065,2244097,2244129]),new Uint32Array([2178017,6291456,2178049,6291456,2178081,6291456,2178113,6291456,2178145,6291456,2178177,6291456,2178209,6291456,2178241,6291456]),new Uint32Array([10553858,2165314,10518722,6291456,10518818,0,10518914,2130690,10519010,2130786,10519106,2130882,10519202,2165378,10554050,2165506]),new Uint32Array([0,0,2135491,2135587,2135683,2135779,2135875,2135971,2135971,2136067,2136163,2136259,2136355,2136355,2136451,2136547]),new Uint32Array([23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2220033,2220033,2220065,2220065,2220065,2220065,2220097,2220097,2220097,2220097,2220129,2220129,2220129,2220129,2220161,2220161]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2100897,2100898,2100899,2150018,2100865,2100866,2100867,2100868,2150082,2108481,2109858,2109859,2105569,2105505,2098241,2105601]),new Uint32Array([2097217,2097505,2097505,2097505,2097505,2165570,2165570,2165634,2165634,2165698,2165698,2097858,2097858,0,0,2097152]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([10503843,10503939,10504035,10504131,10504227,10504323,10504419,10504515,10504611,10504707,10504803,10504899,10504995,10491140,10491268,0]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,2235297,2220769,2235329,2235361]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2222401,2222433,2222465,10531394,2222497,2222529,2222561,0,2222593,2222625,2222657,2222689,2222721,2222753,2222785,0]),new Uint32Array([2184481,6291456,2184513,6291456,2184545,6291456,2184577,6291456,2184609,6291456,2184641,6291456,2184673,6291456,2184705,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2105570,2156034,2126947,2156098,2153666,2127043,2127139,2156162,0,2127235,2156226,2156290,2156354,2156418,2127331,2127427]),new Uint32Array([2215905,2207041,2153185,2241569,2241601,2241633,2241665,2241697,2241730,2241793,2241825,2241857,2241889,2241921,2241954,2242017]),new Uint32Array([2203777,6291456,2203809,6291456,2203841,6291456,2203873,6291456,2203905,6291456,2173121,2180993,2181249,2203937,2181313,0]),new Uint32Array([2168577,6291456,2168609,6291456,2168641,6291456,2168673,6291456,2168705,6291456,2168737,6291456,2168769,6291456,2168801,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,0,0]),new Uint32Array([2210113,2195521,2210145,2210177,2210209,2210241,2210273,2210305,2210337,2210369,2210401,2210433,2210465,2210497,2210529,2210561]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2228706,2228770,2228834,2228898,2228962,2229026,2229090,2229154,2229218,2229282,2229346,2229410,2229474,2229538,2229602,2229666]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,18874368,18874368,18874368,0,0]),new Uint32Array([2133089,2133281,2133281,2133281,2133281,2160577,2160577,2160577,2160577,2097441,2097441,2097441,2097441,2133857,2133857,2133857]),new Uint32Array([6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089]),new Uint32Array([2178529,6291456,2178561,6291456,2178593,6291456,2178625,6291456,2178657,6291456,2178689,6291456,2178721,6291456,2178753,6291456]),new Uint32Array([2221025,2221025,2221057,2221057,2159329,2159329,2159329,2159329,2097217,2097217,2158914,2158914,2158978,2158978,2159042,2159042]),new Uint32Array([2208161,2208193,2208225,2208257,2194433,2208289,2208321,2208353,2208385,2208417,2208449,2208481,2208513,2208545,2208577,2208609]),new Uint32Array([2169217,6291456,2169249,6291456,2169281,6291456,2169313,6291456,2169345,6291456,2169377,6291456,2169409,6291456,2169441,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2133187,2133283,2133283,2133379,2133475,2133571,2133667,2133667,2133763,2133859,2133955,2134051,2134147,2134147,2134243,2134339]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,0]),new Uint32Array([2193089,2193121,2193153,2193185,2117665,2117569,2193217,2193249,2193281,2193313,2193345,2193377,2193409,2193441,2193473,2193505]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184225,6291456,2184257,6291456,2184289,6291456,2184321,6291456,2184353,6291456,2184385,6291456,2184417,6291456,2184449,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2100833,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2200801,2200833,2200865,0]),new Uint32Array([23068672,23068672,23068672,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0]),new Uint32Array([2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2181153,2105505,2181185,2167617,2180993]),new Uint32Array([2160002,2160066,2160130,2160194,2160258,2132066,2131010,2131106,2106018,2131618,2160322,2131298,2132034,2131938,2137410,2132226]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2183617,6291456,2183649,6291456,2183681,6291456,2183713,6291456,2183745,6291456,2183777,6291456,2183809,6291456,2183841,6291456]),new Uint32Array([0,6291456,6291456,0,6291456,0,0,6291456,6291456,0,6291456,0,0,6291456,0,0]),new Uint32Array([2250977,2251009,2251041,2251073,2195009,2251106,2251169,2251201,2251233,2251265,2251297,2251330,2251394,2251457,2251489,2251521]),new Uint32Array([2205729,2205761,2205793,2205825,2205857,2205889,2205921,2205953,2205985,2206017,2206049,2206081,2206113,2206145,2206177,2206209]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2143170,2168993,6291456,2169025,6291456,2169057,6291456,2169089,6291456,2143234,2169121,6291456,2169153,6291456,2169185,6291456]),new Uint32Array([23068672,23068672,2190689,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2248706,2248769,2248801,2248833,2248865,2248897,2248929,2248962,2249026,2249090,2249154,2240705,2249217,2249249,2249281,2249313]),new Uint32Array([10485857,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10495394,6291456,2098209,6291456,6291456,2097152,6291456,10531394]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([14680064,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([6291456,2186977,6291456,6291456,6291456,6291456,6291456,10537858,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2209601,2209633,2209665,2209697,2209729,2209761,2209793,2209825,2209857,2209889,2209921,2209953,2209985,2210017,2210049,2210081]),new Uint32Array([10501539,10501635,10501731,10501827,10501923,10502019,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905]),new Uint32Array([2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2194561,2194593,2194625,2119777,2119873,2194657,2194689,2194721,2194753,2194785,2194817,2194849,2194881,2194913,2194945,2194977]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569]),new Uint32Array([2222818,2222882,2222946,2223010,2223074,2223138,2223202,2223266,2223330,2223394,2223458,2223522,2223586,2223650,2223714,2223778]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672]),new Uint32Array([0,2179553,2179585,2179617,2179649,2144001,2179681,2179713,2179745,2179777,2179809,2156705,2179841,2156833,2179873,2179905]),new Uint32Array([6291456,23068672,6291456,2145602,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,6291456,0,0]),new Uint32Array([2196513,2196545,2196577,2196609,2196641,2196673,2196705,2196737,2196769,2196801,2196833,2196865,2196897,2196929,2196961,2196993]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2177281,6291456,2177313,6291456,2177345,6291456,2177377,6291456,2177409,6291456,2177441,6291456,2177473,6291456,2177505,6291456]),new Uint32Array([2187137,2221473,2221505,2221537,2221569,6291456,6291456,10610209,10610241,10537986,10537986,10537986,10537986,10609857,10609857,10609857]),new Uint32Array([2243009,2243041,2216033,2243074,2243137,2243169,2243201,2219617,2243233,2243265,2243297,2243329,2243362,2243425,2243457,2243489]),new Uint32Array([10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,10485857,2097152,4194304,4194304,0,0]),new Uint32Array([2143042,6291456,2143106,2143106,2168833,6291456,2168865,6291456,6291456,2168897,6291456,2168929,6291456,2168961,6291456,2143170]),new Uint32Array([6291456,6291456,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2204193,2204225,2204257,2204289,2204321,2204353,2204385,2204417,2204449,2204481,2204513,2204545,2204577,2204609,2204641,2204673]),new Uint32Array([2202753,6291456,2202785,6291456,2202817,6291456,2202849,6291456,2202881,6291456,2202913,6291456,2202945,6291456,2202977,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321]),new Uint32Array([2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842,2147394,2147458,2147522,2147586,2147650,2147714,2147778,2147842]),new Uint32Array([2253313,2253346,2253409,2253441,2253473,2253505,2253537,2253569,2253601,2253634,2219393,2253697,2253729,2253761,2253793,2253825]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([2162562,2162626,2131362,2162690,2159938,2160002,2162754,2162818,2160130,2162882,2160194,2160258,2160834,2160898,2161026,2161090]),new Uint32Array([2175361,2175393,2175425,2175457,2175489,2175521,2175553,2175585,2175617,2175649,2175681,2175713,2175745,2175777,2175809,2175841]),new Uint32Array([2253858,2253921,2253954,2254018,2254082,2196737,2254145,2196865,2254177,2254209,2254241,2254273,2197025,2254306,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2202113,2204129,2188705,2204161]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953]),new Uint32Array([2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209]),new Uint32Array([2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,0,2108417,0,2111713,2100897,2111905]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2175425,2175489,2175809,2175905,2175937,2175937,2176193,2176417,2180865,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,2143298,2143298,2143298,2143362,2143362,2143362,2143426,2143426,2143426,2171105,6291456,2171137]),new Uint32Array([2120162,2120258,2151618,2151682,2151746,2151810,2151874,2151938,2152002,2120035,2120131,2120227,2152066,2120323,2152130,2120419]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2195361,2142433,2236065,2236097,2236129,2236161,2118241,2117473,2236193,2236225,2236257,2236289,0,0,0,0]),new Uint32Array([2189281,6291456,2189313,6291456,2189345,6291456,2189377,6291456,2189409,6291456,2189441,6291456,2189473,6291456,2189505,6291456]),new Uint32Array([6291456,6291456,2145922,6291456,6291456,6291456,6291456,2145986,6291456,6291456,6291456,6291456,2146050,6291456,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10502113,10562017,10610401,10502177,10610433,10538049]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,2186401,0,2186433,0,2186465,0,2186497]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,23068672,23068672,23068672]),new Uint32Array([0,0,2198241,2198273,2198305,2198337,2198369,2198401,0,0,2198433,2198465,2198497,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,0,23068672,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([0,2105921,2097729,0,2097377,0,0,2106017,2133281,2097505,2105889,0,2097697,2135777,2097633,2097441]),new Uint32Array([2197889,2197921,2197953,2197985,2198017,2198049,2198081,2198113,2198145,2198177,2198209,2198241,2198273,2198305,2198337,2198369]),new Uint32Array([2132514,2132610,2160386,2133090,2133186,2160450,2160514,2133282,2160578,2133570,2106178,2160642,2133858,2160706,2160770,2134146]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,6291456,23068672,23068672,6291456,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([2184737,6291456,2184769,6291456,2184801,6291456,2184833,6291456,2184865,6291456,2184897,6291456,2184929,6291456,2184961,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,23068672,23068672,23068672,6291456,23068672,23068672,23068672,23068672,23068672,0,0]),new Uint32Array([6291456,6291456,6291456,2186753,6291456,6291456,6291456,6291456,2186785,2186817,2186849,2173569,2186881,10496355,10495395,10575521]),new Uint32Array([0,0,2097729,0,0,0,0,2106017,0,2097505,0,2097185,0,2135777,2097633,2097441]),new Uint32Array([2189537,6291456,2189569,6291456,2189601,6291456,2189633,6291456,2189665,6291456,2189697,6291456,2189729,6291456,2189761,6291456]),new Uint32Array([2202497,6291456,2202529,6291456,2202561,6291456,2202593,6291456,2202625,6291456,2202657,6291456,2202689,6291456,2202721,6291456]),new Uint32Array([2245217,2218369,2245249,2245282,2245345,2245377,2245410,2245474,2245537,2245569,2245601,2245633,2245665,2245665,2245697,2245729]),new Uint32Array([6291456,0,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,23068672,6291456,23068672,6291456,6291456,6291456,6291456,23068672,23068672]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2097281,2105921,2097729,2106081,2097377,2097601,2162337,2106017,2133281,2097505,0,2097185,2097697,2135777,2097633,2097441]),new Uint32Array([2176641,6291456,2176673,6291456,2176705,6291456,2176737,6291456,2176769,6291456,2176801,6291456,2176833,6291456,2176865,6291456]),new Uint32Array([2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2174369,2174369,0,0,2100833,2100737]),new Uint32Array([2116513,2190817,2190849,2190881,2190913,2190945,2116609,2190977,2191009,2191041,2191073,2117185,2191105,2191137,2191169,2191201]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456]),new Uint32Array([2167617,2167649,2167681,2167713,2167745,2167777,2167809,6291456,2167841,2167873,2167905,2167937,2167969,2168001,2168033,4240130]),new Uint32Array([2165122,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122,2134562,2132162,2132834,2136866]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2186209,2186241,2186273,2186305,2186337,2186369,0,0]),new Uint32Array([2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([0,0,23068672,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([0,10537921,10610689,10610273,10610497,10610529,10610305,10610721,10489601,10489697,10610337,10575617,10554529,2221761,2197217,10496577]),new Uint32Array([2105473,2105569,2105601,2112289,0,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2125346,2153410,2153474,2127394,2153538,2153602,2153666,2153730,2105507,2105476,2153794,2153858,2153922,2153986,2154050,2105794]),new Uint32Array([2200449,2119681,2200481,2153313,2199873,2199905,2199937,2200513,2200545,2200577,2200609,2119105,2119201,2119297,2119393,2119489]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2175777,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2222273,2197217,2221473,2221505,2221089,2222305,2200865,2099681,2104481,2222337,2099905,2120737,2222369,2103713,2100225,2098785]),new Uint32Array([2201377,6291456,2201409,6291456,2201441,6291456,2201473,6291456,2201505,6291456,2201537,6291456,2201569,6291456,6291456,23068672]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([2200897,6291456,2200929,6291456,2200961,6291456,2200993,6291456,2201025,6291456,2180865,6291456,2201057,6291456,2201089,6291456]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,6291456,6291456,6291456,0,0,0,0,0]),new Uint32Array([2161154,2161410,2138658,2161474,2161538,2097666,2097186,2097474,2162946,2132450,2163010,2163074,2136162,2163138,2161666,2161730]),new Uint32Array([2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953]),new Uint32Array([0,0,0,0,0,0,23068672,23068672,0,0,0,0,2145410,2145474,0,6291456]),new Uint32Array([2244161,2216065,2212769,2244193,2244225,2244257,2244290,2244353,2244385,2244417,2244449,2218273,2244481,2244514,2244577,2244609]),new Uint32Array([2125730,2125699,2125795,2125891,2125987,2154114,2154178,2154242,2154306,2154370,2154434,2154498,2126082,2126178,2126274,2126083]),new Uint32Array([2237665,2237697,2237697,2237697,2237730,2237793,2237825,2237857,2237890,2237953,2237985,2238017,2238049,2238081,2238113,2238145]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150146,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,0,0,23068672,23068672,23068672,0,0]),new Uint32Array([2214369,2238593,2238625,2238657,2238689,2238721,2238753,2238785,2238817,2238850,2238913,2238945,2238977,2235457,2239009,2239041]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([2252066,2252130,2252193,2252225,2252257,2252290,2252353,2252385,2252417,2252449,2252481,2252513,2252545,2252578,2252641,2252673]),new Uint32Array([2197697,2114113,2114209,2197729,2197761,2114305,2197793,2114401,2114497,2197825,2114593,2114689,2114785,2114881,2114977,2197857]),new Uint32Array([2224866,2224930,2224994,2225058,2225122,2225186,2225250,2225314,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2219490,2219554,2219617,2219649,2219681,2219714,2219778,2219842,2219905,2219937,0,0,0,0,0,0]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665]),new Uint32Array([2220161,2220161,2220193,2220193,2220193,2220193,2220225,2220225,2220225,2220225,2220257,2220257,2220257,2220257,2220289,2220289]),new Uint32Array([2192673,2192705,2192737,2192769,2192801,2192833,2192865,2118049,2192897,2117473,2117761,2192929,2192961,2192993,2193025,2193057]),new Uint32Array([2179297,6291456,2179329,6291456,2179361,6291456,2179393,6291456,2179425,6291456,2179457,6291456,2179489,6291456,2179521,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2235745,2235777,2193633,2235809,2235841,2235873,2235905,2235937,2235969,2116513,2116705,2236001,2200513,2199905,2200545,2236033]),new Uint32Array([2113153,2108481,2113345,2113441,2232993,2233025,0,0,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761]),new Uint32Array([2170593,6291456,2170625,6291456,2170657,6291456,2170689,2170721,6291456,2170753,6291456,6291456,2170785,6291456,2170817,2170849]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2166786,2166850,0,0,0,0]),new Uint32Array([23068672,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,10575617,2187041,10502177,10489601,10489697,0]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2134562,2132162,2132834,2136866,2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058]),new Uint32Array([6291456,6291456,2098337,2101441,10531458,2153473,6291456,6291456,10531522,2100737,2108193,6291456,2106499,2106595,2106691,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0]),new Uint32Array([2233122,2233186,2233250,2233314,2233378,2233442,2233506,2233570,2233634,2233698,2233762,2233826,2233890,2233954,2234018,2234082]),new Uint32Array([23068672,6291456,23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2205217,2205249,2205281,2205313,2205345,2205377,2205409,2205441,2205473,2205505,2205537,2205569,2205601,2205633,2205665,2205697]),new Uint32Array([6291456,0,6291456,0,0,0,6291456,6291456,6291456,6291456,0,0,23068672,6291456,23068672,23068672]),new Uint32Array([2173601,2173761,2174081,2173569,2174241,2174113,2173953,6291456,2174305,6291456,2174337,6291456,2174369,6291456,2174401,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([2152450,2152514,2099653,2104452,2099813,2122243,2099973,2152578,2122339,2122435,2122531,2122627,2122723,2104580,2122819,2152642]),new Uint32Array([2236385,2236417,2236449,2236482,2236545,2215425,2236577,2236609,2236641,2236673,2215457,2236705,2236737,2236770,2215489,2236833]),new Uint32Array([2163394,2159746,2163458,2131362,2163522,2160130,2163778,2132226,2163842,2132898,2163906,2161410,2138658,2097666,2136162,2163650]),new Uint32Array([2218721,2246913,2246946,2216385,2247010,2247074,2215009,2247137,2247169,2216481,2247201,2247233,2247266,2247330,2247330,0]),new Uint32Array([2129730,2129762,2129858,2129731,2129827,2156482,2156482,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,0,0,0,0,6291456,0,0]),new Uint32Array([2203969,2204001,2181377,2204033,2204065,6291456,2204097,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2169473,6291456,2169505,6291456,2169537,6291456,2169569,6291456,2169601,6291456,2169633,6291456,2169665,6291456,2169697,6291456]),new Uint32Array([2141542,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220801,2220801,2220801,2220801,2220833,2220833,2220865,2220865,2220865,2220865,2220897,2220897,2220897,2220897,2139873,2139873]),new Uint32Array([0,0,0,0,0,23068672,23068672,0,0,0,0,0,0,0,6291456,0]),new Uint32Array([2214849,2218433,2218465,2218497,2218529,2218561,2214881,2218593,2218625,2218657,2218689,2218721,2218753,2216545,2218785,2218817]),new Uint32Array([23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,0,0,0,6291456]),new Uint32Array([2136482,2164610,2164674,2164738,2164802,2132802,2132706,2164866,2132898,2164930,2164994,2165058,2165122,2132802,2132706,2164866]),new Uint32Array([2207649,2207681,2207713,2207745,2207777,2207809,2207841,2207873,2207905,2207937,2207969,2208001,2208033,2208065,2208097,2208129]),new Uint32Array([2123683,2105092,2152706,2123779,2105220,2152770,2100453,2098755,2123906,2124002,2124098,2124194,2124290,2124386,2124482,2124578]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,0,0,0,0,0,0,0,10485857]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([10508163,10508259,10508355,10508451,2200129,2200161,2192737,2200193,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203553,6291456,2203585,6291456,6291456,6291456,2203617,6291456,2203649,6291456,2203681,6291456,2203713,6291456,2203745,6291456]),new Uint32Array([18884449,18884065,23068672,18884417,18884034,18921185,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,18874368]),new Uint32Array([2247393,2247426,2247489,2247521,2247553,2247586,2247649,2247681,2247713,2247745,2247777,2247810,2247873,2247905,2247937,2247969]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,2160577,2133857,2235297,0,2235329,0]),new Uint32Array([2182593,6291456,2182625,6291456,2182657,6291456,2182689,6291456,2182721,6291456,2182753,6291456,2182785,6291456,2182817,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102402,2102403,6291456,2110050]),new Uint32Array([2149890,2108323,2149954,6291456,2113441,6291456,2149057,6291456,2113441,6291456,2105473,2167265,2111137,2105505,6291456,2108353]),new Uint32Array([2219105,2219137,2195233,2251554,2251617,2251649,2251681,2251713,2251746,2251810,2251873,2251905,2251937,2251970,2252033,2219169]),new Uint32Array([2203009,6291456,2203041,6291456,2203073,6291456,2203105,6291456,2203137,6291456,2203169,6291456,2203201,6291456,2203233,6291456]),new Uint32Array([2128195,2128291,2128387,2128483,2128579,2128675,2128771,2128867,2128963,2129059,2129155,2129251,2129347,2129443,2129539,2129635]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2140964,2141156,2140966,2141158,2141350]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2225378,2225442,2225506,2225570,2225634,2225698,2225762,2225826,2225890,2225954,2226018,2226082,2226146,2226210,2226274,2226338]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137,2105505,2098241,2108353,2108417]),new Uint32Array([2108353,2108417,0,2105601,2108193,2157121,2157313,2157377,2157441,2100897,6291456,2108419,2173953,2173633,2173633,2173953]),new Uint32Array([2111713,2173121,2111905,2098177,2173153,2173185,2173217,2113153,2113345,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,2190753]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,2197249,6291456,2117377,2197281,2197313,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,0,0,0,23068672,0,0,0,0,0,6291456,6291456,6291456]),new Uint32Array([2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100833,2100737,2098337,2101441,2101569,2101697,2101825,2101953]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0]),new Uint32Array([0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,23068672]),new Uint32Array([2173281,6291456,2173313,6291456,2173345,6291456,2173377,6291456,0,0,10532546,6291456,6291456,6291456,10562017,2173441]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,0,0]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2159426,2159490,2159554,2159362,2159618,2159682,2139522,2136450,2159746,2159810,2159874,2130978,2131074,2131266,2131362,2159938]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2203233,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2203265,6291456,2203297,6291456,2203329,2203361,6291456]),new Uint32Array([6291456,6291456,2148418,2148482,2148546,0,6291456,2148610,2186529,2186561,2148417,2148545,2148482,10495778,2143969,10495778]),new Uint32Array([2134146,2139426,2160962,2134242,2161218,2161282,2161346,2161410,2138658,2134722,2134434,2134818,2097666,2097346,2097698,2105986]),new Uint32Array([2198881,2198913,2198945,2198977,2199009,2199041,2199073,2199105,2199137,2199169,2199201,2199233,2199265,2199297,2199329,2199361]),new Uint32Array([0,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([10610561,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193]),new Uint32Array([2183873,6291456,2183905,6291456,2183937,6291456,2183969,6291456,2184001,6291456,2184033,6291456,2184065,6291456,2184097,6291456]),new Uint32Array([2244642,2244706,2244769,2244801,2218305,2244833,2244865,2244897,2244929,2244961,2244993,2245026,2245089,2245122,2245185,0]),new Uint32Array([6291456,6291456,2116513,2116609,2116705,2116801,2199873,2199905,2199937,2199969,2190913,2200001,2200033,2200065,2200097,2191009]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2180673,2180705,2180737,2180769,2180801,2180833,0,0]),new Uint32Array([2098081,2099521,2099105,2120705,2098369,2120801,2103361,2097985,2098433,2121377,2121473,2099169,2099873,2098401,2099393,2152609]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2150402]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,2145666,2145730,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665]),new Uint32Array([2187073,6291456,6291456,6291456,6291456,2098241,2098241,2108353,2100897,2111905,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2102404,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,2100612,6291456,6291456,6291456,6291456,6291456,6291456,6291456,10485857]),new Uint32Array([2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889]),new Uint32Array([2217697,2217729,2217761,2217793,2217825,2217857,2217889,2217921,2217953,2215873,2217985,2215905,2218017,2218049,2218081,2218113]),new Uint32Array([2211233,2218849,2216673,2218881,2218913,2218945,2218977,2219009,2216833,2219041,2215137,2219073,2216865,2209505,2219105,2216897]),new Uint32Array([2240097,2240129,2240161,2240193,2240225,2240257,2240289,2240321,2240353,2240386,2240449,2240481,2240513,2240545,2207905,2240578]),new Uint32Array([6291456,6291456,2202273,6291456,2202305,6291456,2202337,6291456,2202369,6291456,2202401,6291456,2202433,6291456,2202465,6291456]),new Uint32Array([0,23068672,23068672,18923394,23068672,18923458,18923522,18884099,18923586,18884195,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2201121,6291456,2201153,6291456,2201185,6291456,2201217,6291456,2201249,6291456,2201281,6291456,2201313,6291456,2201345,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2211041,2211073,2211105,2211137,2211169,2211201,2211233,2211265,2211297,2211329,2211361,2211393,2211425,2211457,2211489,2211521]),new Uint32Array([2181825,6291456,2181857,6291456,2181889,6291456,2181921,6291456,2181953,6291456,2181985,6291456,2182017,6291456,2182049,6291456]),new Uint32Array([2162337,2097633,2097633,2097633,2097633,2132705,2132705,2132705,2132705,2097153,2097153,2097153,2097153,2133089,2133089,2133089]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,2148545,6291456,2173473,6291456,2148865,6291456,2173505,6291456,2173537,6291456,2173569,6291456,2149121,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,0,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2207137,2207169,2207201,2207233,2207265,2207297,2207329,2207361,2207393,2207425,2207457,2207489,2207521,2207553,2207585,2207617]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,23068672,23068672,0,0,0,0,0,0]),new Uint32Array([2198401,2198433,2198465,2198497,0,2198529,2198561,2198593,2198625,2198657,2198689,2198721,2198753,2198785,2198817,2198849]),new Uint32Array([2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0,0]),new Uint32Array([2216385,2118721,2216417,2216449,2216481,2216513,2216545,2211233,2216577,2216609,2216641,2216673,2216705,2216737,2216737,2216769]),new Uint32Array([2216801,2216833,2216865,2216897,2216929,2216961,2216993,2215169,2217025,2217057,2217089,2217121,2217154,2217217,0,0]),new Uint32Array([2210593,2191809,2210625,2210657,2210689,2210721,2210753,2210785,2210817,2210849,2191297,2210881,2210913,2210945,2210977,2211009]),new Uint32Array([0,0,2105825,0,0,2111905,2105473,0,0,2112289,2108193,2112481,2112577,0,2098305,2108321]),new Uint32Array([0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,2097153,2134241,0,2132705,0,0,2131297,0,2133089,0,2133857,0,2220769,0,2235361]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,6291456,6291456,14680064]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2171873,6291456,2171905,6291456,2171937,6291456,2171969,6291456,2172001,6291456,2172033,6291456,2172065,6291456,2172097,6291456]),new Uint32Array([2220929,2220929,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2133857,2134145,2134145,2134145,2134145,2134241,2134241,2134241,2134241,2105889,2105889,2105889,2105889,2097185,2097185,2097185]),new Uint32Array([2173697,2173761,2173793,2174113,2173985,2173953,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,10499619,10499715,10499811,10499907]),new Uint32Array([0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,0,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,0,23068672,23068672,23068672,0,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,6291456,23068672,23068672]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,2144322,2144386,2144450,2144514,2144578,2144642,2144706,2144770]),new Uint32Array([23068672,23068672,23068672,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([2113153,2108481,2113345,2113441,2098209,2111137,0,2098241,2108353,2108417,2105825,0,0,2111905,2105473,2105569]),new Uint32Array([2236321,2236353,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2152194,2121283,2103684,2103812,2097986,2098533,2097990,2098693,2098595,2098853,2099013,2103940,2121379,2121475,2121571,2104068]),new Uint32Array([2206241,2206273,2206305,2206337,2206369,2206401,2206433,2206465,2206497,2206529,2206561,2206593,2206625,2206657,2206689,2206721]),new Uint32Array([6291456,6291456,6291456,6291456,16777216,16777216,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,23068672,23068672,10538818,10538882,6291456,6291456,2150338]),new Uint32Array([6291456,6291456,6291456,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2214369,2214401,2214433,2214465,2214497,2214529,2214561,2214593,2194977,2214625,2195073,2214657,2214689,2214721,6291456,6291456]),new Uint32Array([2097152,2097152,2097152,2097152,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2182081,6291456,2182113,6291456,2182145,6291456,2182177,6291456,2182209,6291456,2182241,6291456,2182273,6291456,2182305,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2146881,2146945,2147009,2147073,2147137,2147201,2147265,2147329]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,23068672,23068672]),new Uint32Array([0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2122915,2123011,2123107,2104708,2123203,2123299,2123395,2100133,2104836,2100290,2100293,2104962,2104964,2098052,2123491,2123587]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456]),new Uint32Array([6291456,2171169,6291456,2171201,6291456,2171233,6291456,2171265,6291456,2171297,6291456,2171329,6291456,6291456,2171361,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,2148994,2149058,2149122,0,6291456,2149186,2186945,2173537,2148993,2149121,2149058,10531458,10496066,0]),new Uint32Array([2195009,2195041,2195073,2195105,2195137,2195169,2195201,2195233,2195265,2195297,2195329,2195361,2195393,2195425,2195457,2195489]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,0,0,6291456,6291456]),new Uint32Array([2182849,6291456,2182881,6291456,2182913,6291456,2182945,6291456,2182977,6291456,2183009,6291456,2183041,6291456,2183073,6291456]),new Uint32Array([2211553,2210081,2211585,2211617,2211649,2211681,2211713,2211745,2211777,2211809,2209569,2211841,2211873,2211905,2211937,2211969]),new Uint32Array([2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2166594,2127298,2166658,2142978,2141827,2166722]),new Uint32Array([2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233057,2148481,2173601,2173633,2173665,2173697,2173729]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,0,0,2185761,2185793,2185825,2185857,2185889,2185921,0,0]),new Uint32Array([6291456,2148481,2173601,2173633,2173665,2173697,2173729,2148801,2173761,2143969,2173793,2173825,2153473,2173857,2173889,2173921]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,6291456]),new Uint32Array([0,0,0,2220961,2220961,2220961,2220961,2144193,2144193,2159201,2159201,2159265,2159265,2144194,2220993,2220993]),new Uint32Array([2192641,2235393,2235425,2152257,2116609,2235457,2235489,2200065,2235521,2235553,2235585,2212449,2235617,2235649,2235681,2235713]),new Uint32Array([2194049,2194081,2194113,2194145,2194177,2194209,2194241,2194273,2194305,2194337,2194369,2194401,2194433,2194465,2194497,2194529]),new Uint32Array([2196673,2208641,2208673,2208705,2208737,2208769,2208801,2208833,2208865,2208897,2208929,2208961,2208993,2209025,2209057,2209089]),new Uint32Array([2191681,2191713,2191745,2191777,2153281,2191809,2191841,2191873,2191905,2191937,2191969,2192001,2192033,2192065,2192097,2192129]),new Uint32Array([2230946,2231010,2231074,2231138,2231202,2231266,2231330,2231394,2231458,2231522,2231586,2231650,2231714,2231778,2231842,2231906]),new Uint32Array([14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064,14680064]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,2185953,2185985,2186017,2186049,2186081,2186113,2186145,2186177]),new Uint32Array([2139811,2139907,2097284,2105860,2105988,2106116,2106244,2097444,2097604,2097155,10485778,10486344,2106372,6291456,0,0]),new Uint32Array([2110051,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2172385,6291456,2172417,6291456,2172449,6291456,2172481,6291456,2172513,6291456,2172545,6291456,2172577,6291456,2172609,6291456]),new Uint32Array([0,0,23068672,23068672,6291456,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2249345,2249377,2249409,2249441,2249473,2249505,2249537,2249570,2210209,2249633,2249665,2249697,2249729,2249761,2249793,2216769]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,6291456,6291456,6291456,6291456]),new Uint32Array([2187169,2187201,2187233,2187265,2187297,2187329,2187361,2187393,2187425,2187457,2187489,2187521,2187553,2187585,2187617,2187649]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([0,0,0,6291456,6291456,0,0,0,6291456,6291456,6291456,0,0,0,6291456,6291456]),new Uint32Array([2182337,6291456,2182369,6291456,2182401,6291456,2182433,6291456,2182465,6291456,2182497,6291456,2182529,6291456,2182561,6291456]),new Uint32Array([2138179,2138275,2138371,2138467,2134243,2134435,2138563,2138659,2138755,2138851,2138947,2139043,2138947,2138755,2139139,2139235]),new Uint32Array([23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2250498,2250562,2250625,2250657,2208321,2250689,2250721,2250753,2250785,2250817,2250849,2218945,2250881,2250913,2250945,0]),new Uint32Array([2170369,2105569,2098305,2108481,2173249,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456]),new Uint32Array([2100897,2111905,2105473,2105569,2105601,0,2108193,0,0,0,2098305,2108321,2108289,2100865,2113153,2108481]),new Uint32Array([2100897,2100897,2105569,2105569,6291456,2112289,2149826,6291456,6291456,2112481,2112577,2098177,2098177,2098177,6291456,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,6291456,6291456,6291456]),new Uint32Array([6291456,2169953,2169985,6291456,2170017,6291456,2170049,2170081,6291456,2170113,2170145,2170177,6291456,6291456,2170209,2170241]),new Uint32Array([6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([0,0,0,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2220641,2220641,2220673,2220673,2220673,2220673,2220705,2220705,2220705,2220705,2220737,2220737,2220737,2220737,2220769,2220769]),new Uint32Array([2127650,2127746,2127842,2127938,2128034,2128130,2128226,2128322,2128418,2127523,2127619,2127715,2127811,2127907,2128003,2128099]),new Uint32Array([2143969,2173793,2173825,2153473,2173857,2173889,2173921,2173953,2173985,2173761,2174017,2174049,2174081,2174113,2174145,2174177]),new Uint32Array([0,0,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([2204705,2204737,2204769,2204801,2204833,2204865,2204897,2204929,2204961,2204993,2205025,2205057,2205089,2205121,2205153,2205185]),new Uint32Array([2176385,6291456,2176417,6291456,2176449,6291456,2176481,6291456,2176513,6291456,2176545,6291456,2176577,6291456,2176609,6291456]),new Uint32Array([2195521,2195553,2195585,2195617,2195649,2195681,2117857,2195713,2195745,2195777,2195809,2195841,2195873,2195905,2195937,2195969]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,6291456,6291456]),new Uint32Array([2173921,2173953,2173985,2174017,2174017,2174049,2174081,2174113,2174145,2174177,2149057,2233089,2173697,2173761,2173793,2174113]),new Uint32Array([2131586,2132450,2135970,2135778,2161602,2136162,2163650,2161794,2135586,2163714,2137186,2131810,2160290,2135170,2097506,2159554]),new Uint32Array([2134145,2097153,2134241,2105953,2132705,2130977,2160065,2131297,2162049,2133089,2160577,2133857,0,0,0,0]),new Uint32Array([2116513,2116609,2116705,2116801,2116897,2116993,2117089,2117185,2117281,2117377,2117473,2117569,2117665,2117761,2117857,2117953]),new Uint32Array([2100737,2098337,2101441,2101569,2101697,2101825,2101953,2102081,2102209,2100802,2101154,2101282,2101410,2101538,2101666,2101794]),new Uint32Array([2100289,2098657,2098049,2200737,2123489,2123681,2200769,2098625,2100321,2098145,2100449,2098017,2098753,2098977,2150241,2150305]),new Uint32Array([6291456,6291456,6291456,0,6291456,6291456,6291456,6291456,6291456,2109955,6291456,6291456,0,0,0,0]),new Uint32Array([18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368,18874368]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,6291456,0,6291456,0,0]),new Uint32Array([2130979,2131075,2131075,2131171,2131267,2131363,2131459,2131555,2131651,2131651,2131747,2131843,2131939,2132035,2132131,2132227]),new Uint32Array([0,2177793,6291456,2177825,6291456,2177857,6291456,2177889,6291456,2177921,6291456,2177953,6291456,2177985,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672]),new Uint32Array([6291456,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2113345,0,2098209,2111137,2105505,2098241,2108353,2108417,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289]),new Uint32Array([2136643,2136739,2136835,2136931,2137027,2137123,2137219,2137315,2137411,2137507,2137603,2137699,2137795,2137891,2137987,2138083]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0]),new Uint32Array([2174433,6291456,2174465,6291456,2174497,6291456,2174529,6291456,2174561,6291456,2174593,6291456,2174625,6291456,2174657,6291456]),new Uint32Array([0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441]),new Uint32Array([10496547,10496643,2105505,2149698,6291456,10496739,10496835,2170273,6291456,2149762,2105825,2111713,2111713,2111713,2111713,2168673]),new Uint32Array([6291456,2143490,2143490,2143490,2171649,6291456,2171681,2171713,2171745,6291456,2171777,6291456,2171809,6291456,2171841,6291456]),new Uint32Array([2159106,2159106,2159170,2159170,2159234,2159234,2159298,2159298,2159298,2159362,2159362,2159362,2106401,2106401,2106401,2106401]),new Uint32Array([2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865,2113153,2108481,2113345,2113441,2098209,2111137]),new Uint32Array([2108417,2181217,2181249,2181281,2170433,2170401,2181313,2181345,2181377,2181409,2181441,2181473,2181505,2181537,2170529,2181569]),new Uint32Array([2218433,2245761,2245793,2245825,2245857,2245890,2245953,2245986,2209665,2246050,2246113,2246146,2246210,2246274,2246337,2246369]),new Uint32Array([2230754,2230818,2230882,0,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([6291456,0,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,0,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2184129,6291456,2184161,6291456,2184193,6291456,6291456,6291456,6291456,6291456,2146818,2183361,6291456,6291456,2142978,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2135170,2097506,2130691,2130787,2130883,2163970,2164034,2164098,2164162,2164226,2164290,2164354,2164418,2164482,2164546,2133122]),new Uint32Array([2108515,2108611,2100740,2108707,2108803,2108899,2108995,2109091,2109187,2109283,2109379,2109475,2109571,2109667,2109763,2100738]),new Uint32Array([2102788,2102916,2103044,2120515,2103172,2120611,2120707,2098373,2103300,2120803,2120899,2120995,2103428,2103556,2121091,2121187]),new Uint32Array([2158082,2158146,0,2158210,2158274,0,2158338,2158402,2158466,2129922,2158530,2158594,2158658,2158722,2158786,2158850]),new Uint32Array([10499619,10499715,10499811,10499907,10500003,10500099,10500195,10500291,10500387,10500483,10500579,10500675,10500771,10500867,10500963,10501059]),new Uint32Array([2239585,2239618,2239681,2239713,0,2191969,2239745,2239777,2192033,2239809,2239841,2239874,2239937,2239970,2240033,2240065]),new Uint32Array([2252705,2252738,2252801,2252833,2252865,2252897,2252930,2252994,2253057,2253089,2253121,2253154,2253217,2253250,2219361,2219361]),new Uint32Array([2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,2108193,2112481,2112577,2098177,2098305,2108321,2108289,2100865]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,10538050,10538114,10538178,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([2226402,2226466,2226530,2226594,2226658,2226722,2226786,2226850,2226914,2226978,2227042,2227106,2227170,2227234,2227298,2227362]),new Uint32Array([23068672,6291456,6291456,6291456,6291456,2144066,2144130,2144194,2144258,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,23068672,23068672,23068672,6291456,23068672,23068672]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0]),new Uint32Array([2124674,2124770,2123875,2123971,2124067,2124163,2124259,2124355,2124451,2124547,2124643,2124739,2124835,2124931,2125027,2125123]),new Uint32Array([2168065,6291456,2168097,6291456,2168129,6291456,2168161,6291456,2168193,6291456,2168225,6291456,2168257,6291456,2168289,6291456]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0]),new Uint32Array([23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,2100610,2100611,6291456,2107842,2107843,6291456,6291456,6291456,6291456,10537922,6291456,10537986,6291456]),new Uint32Array([2174849,2174881,2174913,2174945,2174977,2175009,2175041,2175073,2175105,2175137,2175169,2175201,2175233,2175265,2175297,2175329]),new Uint32Array([2154562,2154626,2154690,2154754,2141858,2154818,2154882,2127298,2154946,2127298,2155010,2155074,2155138,2155202,2155266,2155202]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456,6291456,6291456,6291456,6291456,23068672,0]),new Uint32Array([2200641,2150786,2150850,2150914,2150978,2151042,2106562,2151106,2150562,2151170,2151234,2151298,2151362,2151426,2151490,2151554]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,23068672,0,0,0,0,0,0,0,0,6291456,6291456]),new Uint32Array([2220289,2220289,2220321,2220321,2220321,2220321,2220353,2220353,2220353,2220353,2220385,2220385,2220385,2220385,2220417,2220417]),new Uint32Array([2155330,2155394,0,2155458,2155522,2155586,2105732,0,2155650,2155714,2155778,2125314,2155842,2155906,2126274,2155970]),new Uint32Array([23068672,23068672,23068672,23068672,23068672,6291456,6291456,23068672,23068672,6291456,23068672,23068672,23068672,23068672,6291456,6291456]),new Uint32Array([6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,6291456,0,0,0,0,0,0]),new Uint32Array([2097729,2106017,2106017,2106017,2106017,2131297,2131297,2131297,2131297,2106081,2106081,2162049,2162049,2105953,2105953,2162337]),new Uint32Array([2097185,2097697,2097697,2097697,2097697,2135777,2135777,2135777,2135777,2097377,2097377,2097377,2097377,2097601,2097601,2097217]),new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23068672]),new Uint32Array([2139331,2139427,2139523,2139043,2133571,2132611,2139619,2139715,0,0,0,0,0,0,0,0]),new Uint32Array([2174113,2174145,2100897,2098177,2108289,2100865,2173601,2173633,2173985,2174113,2174145,6291456,6291456,6291456,6291456,6291456]),new Uint32Array([6291456,6291456,23068672,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456,23068672,6291456,6291456,6291456,6291456]),new Uint32Array([23068672,23068672,18923778,23068672,23068672,23068672,23068672,18923842,23068672,23068672,23068672,23068672,18923906,23068672,23068672,23068672]),new Uint32Array([2134145,2097153,2134241,0,2132705,2130977,2160065,2131297,0,2133089,0,2133857,0,0,0,0]),new Uint32Array([6291456,6291456,6291456,6291456,0,0,0,0,0,0,0,0,0,0,0,0]),new Uint32Array([2177537,6291456,2177569,6291456,2177601,6291456,2177633,6291456,2177665,6291456,2177697,6291456,2177729,6291456,2177761,6291456]),new Uint32Array([2212481,2212513,2212545,2212577,2197121,2212609,2212641,2212673,2212705,2212737,2212769,2212801,2212833,2212865,2212897,2212929]),new Uint32Array([6291456,6291456,23068672,23068672,23068672,6291456,6291456,0,0,0,0,0,0,0,0,0]),new Uint32Array([2098241,2108353,2170209,2105825,2111713,2100897,2111905,2105473,2105569,2105601,2112289,6291456,2108193,2172417,2112481,2098177]),new Uint32Array([6291456,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,23068672,6291456,6291456])],t=new Uint16Array([616,616,565,147,161,411,330,2,131,131,328,454,241,408,86,86,696,113,285,350,325,301,473,214,639,232,447,64,369,598,124,672,567,223,621,154,107,86,86,86,86,86,86,505,86,68,634,86,218,218,218,218,486,218,218,513,188,608,216,86,217,463,668,85,700,360,184,86,86,86,647,402,153,10,346,718,662,260,145,298,117,1,443,342,138,54,563,86,240,572,218,70,387,86,118,460,641,602,86,86,306,218,86,692,86,86,86,86,86,162,707,86,458,26,86,218,638,86,86,86,86,86,65,449,86,86,306,183,86,58,391,667,86,157,131,131,131,131,86,433,131,406,31,218,247,86,86,693,218,581,351,86,438,295,69,462,45,126,173,650,14,295,69,97,168,187,641,78,523,390,69,108,287,664,173,219,83,295,69,108,431,426,173,694,412,115,628,52,257,398,641,118,501,121,69,579,151,423,173,620,464,121,69,382,151,476,173,27,53,121,86,594,578,226,173,86,632,130,86,96,228,268,641,622,563,86,86,21,148,650,131,131,321,43,144,343,381,531,131,131,178,20,86,399,156,375,164,541,30,60,715,198,92,118,131,131,86,86,306,407,86,280,457,196,488,358,131,131,244,86,86,143,86,86,86,86,86,667,563,86,86,86,86,86,86,86,86,86,86,86,86,86,336,363,86,86,336,86,86,380,678,67,86,86,86,678,86,86,86,512,86,307,86,708,86,86,86,86,86,528,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,563,307,86,86,86,86,86,104,450,337,86,720,86,32,450,397,86,86,86,587,218,558,708,708,293,708,86,86,86,86,86,694,205,86,8,86,86,86,86,549,86,667,697,697,679,86,458,460,86,86,650,86,708,543,86,86,86,245,86,86,86,140,218,127,708,708,458,197,131,131,131,131,500,86,86,483,251,86,306,510,515,86,722,86,86,86,65,201,86,86,483,580,470,86,86,86,368,131,131,131,694,114,110,555,86,86,123,721,163,142,713,418,86,317,675,209,218,218,218,371,545,592,629,490,603,199,46,320,525,680,310,279,388,111,42,252,593,607,235,617,410,377,50,548,135,356,17,520,189,116,392,600,349,332,482,699,690,535,119,106,451,71,152,667,131,218,218,265,671,637,492,504,533,683,269,269,658,86,86,86,86,86,86,86,86,86,491,619,86,86,6,86,86,86,86,86,86,86,86,86,86,86,229,86,86,86,86,86,86,86,86,86,86,86,86,667,86,86,171,131,118,131,656,206,234,571,89,334,670,246,311,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,534,86,86,86,86,86,86,82,86,86,86,86,86,430,86,86,86,86,86,86,86,86,86,599,86,324,86,470,69,640,264,131,626,101,174,86,86,667,233,105,73,374,394,221,204,84,28,326,86,86,471,86,86,86,109,573,86,171,200,200,200,200,218,218,86,86,86,86,460,131,131,131,86,506,86,86,86,86,86,220,404,34,614,47,442,305,25,612,338,601,648,7,344,255,131,131,51,86,312,507,563,86,86,86,86,588,86,86,86,86,86,530,511,86,458,3,435,384,556,522,230,527,86,118,86,86,717,86,137,273,79,181,484,23,93,112,655,249,417,703,370,87,98,313,684,585,155,465,596,481,695,18,416,428,61,701,706,282,643,495,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,86,86,86,171,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,650,131,422,542,420,263,24,172,86,86,86,86,86,566,86,86,132,540,395,353,494,519,19,485,284,472,131,131,131,16,714,86,211,708,86,86,86,694,698,86,86,483,704,708,218,272,86,86,120,86,159,478,86,307,247,86,86,663,597,459,627,667,86,86,277,455,39,302,86,250,86,86,86,271,99,452,306,281,329,400,200,86,86,362,549,352,646,461,323,586,86,86,4,708,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,717,86,518,86,86,650,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,125,554,480,300,613,72,333,288,561,544,604,48,719,91,169,176,590,224,76,191,29,559,560,231,537,166,477,538,256,437,131,131,469,167,40,0,685,266,441,705,239,642,475,568,640,610,299,673,517,318,385,22,202,180,179,359,424,215,90,66,521,653,467,682,453,409,479,88,131,661,35,303,15,262,666,630,712,131,131,618,659,175,218,195,347,193,227,261,150,165,709,546,294,569,710,270,413,376,524,55,242,38,419,529,170,657,3,304,122,379,278,131,651,86,67,576,458,458,131,131,86,86,86,86,86,86,86,118,309,86,86,547,86,86,86,86,667,650,664,131,131,86,86,56,131,131,131,131,131,131,131,131,86,307,86,86,86,664,238,650,86,86,717,86,118,86,86,315,86,59,86,86,574,549,131,131,340,57,436,86,86,86,86,86,86,458,708,499,691,62,86,650,86,86,694,86,86,86,319,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,86,549,694,131,131,131,131,131,131,131,131,131,77,86,86,139,86,502,86,86,86,667,595,131,131,131,86,12,86,13,86,609,131,131,131,131,86,86,86,625,86,669,86,86,182,129,86,5,694,104,86,86,86,86,131,131,86,86,386,171,86,86,86,345,86,324,86,589,86,213,36,131,131,131,131,131,86,86,86,86,104,131,131,131,141,290,80,677,86,86,86,267,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,515,86,86,33,136,669,86,711,515,86,86,550,640,86,104,708,515,86,159,372,717,86,86,444,515,86,86,663,37,86,563,460,86,390,624,702,131,131,131,131,389,59,708,86,86,341,208,708,635,295,69,108,431,508,100,190,131,131,131,131,131,131,131,131,86,86,86,649,516,660,131,131,86,86,86,218,631,708,131,131,131,131,131,131,131,131,131,131,86,86,341,575,238,514,131,131,86,86,86,218,291,708,307,131,86,86,306,367,708,131,131,131,86,378,697,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,615,253,86,86,86,292,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,104,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,69,86,341,553,549,86,307,86,86,645,275,455,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,708,131,131,131,131,131,131,86,86,86,86,86,86,667,460,86,86,86,86,86,86,86,86,86,86,86,86,717,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,667,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,104,86,667,459,131,131,131,131,131,131,86,458,225,86,86,86,516,549,11,390,405,86,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,460,44,218,197,711,515,131,131,131,131,664,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,307,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,118,307,104,286,591,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,549,86,86,681,86,86,75,185,314,582,86,358,496,474,86,104,131,86,86,86,86,146,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,171,86,640,131,131,131,131,131,131,131,131,246,503,689,339,674,81,258,415,439,128,562,366,414,246,503,689,583,222,557,316,636,665,186,355,95,670,246,503,689,339,674,557,258,415,439,186,355,95,670,246,503,689,446,644,536,652,331,532,335,440,274,421,297,570,74,425,364,425,606,552,403,509,134,365,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,218,218,218,498,218,218,577,627,551,497,572,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,553,354,236,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,296,455,131,131,456,243,103,86,41,459,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,9,276,158,716,393,564,383,489,401,654,210,654,131,131,131,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,650,86,86,86,86,86,86,717,667,563,563,563,86,549,102,686,133,246,605,86,448,86,86,207,307,131,131,131,641,86,177,611,445,373,194,584,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,308,307,171,86,86,86,86,86,86,86,717,86,86,86,86,86,460,131,131,650,86,86,86,694,708,86,86,694,86,458,131,131,131,131,131,131,667,694,289,650,667,131,131,86,640,131,131,664,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,171,131,131,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,460,86,86,86,86,86,86,86,86,86,86,86,86,86,458,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,640,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,466,203,149,429,94,432,160,687,539,63,237,283,192,248,348,259,427,526,396,676,254,468,487,212,327,623,49,633,322,493,434,688,357,361,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131]),{mapStr:"صلى الله عليه وسلمجل جلالهキロメートルrad∕s2エスクードキログラムキロワットグラムトンクルゼイロサンチームパーセントピアストルファラッドブッシェルヘクタールマンションミリバールレントゲン′′′′1⁄10viii(10)(11)(12)(13)(14)(15)(16)(17)(18)(19)(20)∫∫∫∫(오전)(오후)アパートアルファアンペアイニングエーカーカラットカロリーキュリーギルダークローネサイクルシリングバーレルフィートポイントマイクロミクロンメガトンリットルルーブル株式会社kcalm∕s2c∕kgاكبرمحمدصلعمرسولریال1⁄41⁄23⁄4 ̈́ྲཱྀླཱྀ ̈͂ ̓̀ ̓́ ̓͂ ̔̀ ̔́ ̔͂ ̈̀‵‵‵a/ca/sc/oc/utelfax1⁄71⁄91⁄32⁄31⁄52⁄53⁄54⁄51⁄65⁄61⁄83⁄85⁄87⁄8xii0⁄3∮∮∮(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)::====(ᄀ)(ᄂ)(ᄃ)(ᄅ)(ᄆ)(ᄇ)(ᄉ)(ᄋ)(ᄌ)(ᄎ)(ᄏ)(ᄐ)(ᄑ)(ᄒ)(가)(나)(다)(라)(마)(바)(사)(아)(자)(차)(카)(타)(파)(하)(주)(一)(二)(三)(四)(五)(六)(七)(八)(九)(十)(月)(火)(水)(木)(金)(土)(日)(株)(有)(社)(名)(特)(財)(祝)(労)(代)(呼)(学)(監)(企)(資)(協)(祭)(休)(自)(至)pte10月11月12月ergltdアールインチウォンオンスオームカイリガロンガンマギニーケースコルナコーポセンチダースノットハイツパーツピクルフランペニヒヘルツペンスページベータボルトポンドホールホーンマイルマッハマルクヤードヤールユアンルピー10点11点12点13点14点15点16点17点18点19点20点21点22点23点24点hpabardm2dm3khzmhzghzthzmm2cm2km2mm3cm3km3kpampagpalogmilmolppmv∕ma∕m10日11日12日13日14日15日16日17日18日19日20日21日22日23日24日25日26日27日28日29日30日31日galffifflשּׁשּׂ ٌّ ٍّ َّ ُّ ِّ ّٰـَّـُّـِّتجمتحجتحمتخمتمجتمحتمخجمححميحمىسحجسجحسجىسمحسمجسممصححصممشحمشجيشمخشممضحىضخمطمحطممطميعجمعممعمىغممغميغمىفخمقمحقمملحملحيلحىلججلخملمحمحجمحيمجحمجممخممجخهمجهممنحمنحىنجمنجىنمينمىيممبخيتجيتجىتخيتخىتميتمىجميجحىجمىسخىصحيشحيضحيلجيلمييحييجييميمميقمينحيعميكمينجحمخيلجمكممجحيحجيمجيفميبحيسخينجيصلےقلے𝅘𝅥𝅮𝅘𝅥𝅯𝅘𝅥𝅰𝅘𝅥𝅱𝅘𝅥𝅲𝆹𝅥𝅮𝆺𝅥𝅮𝆹𝅥𝅯𝆺𝅥𝅯〔s〕ppv〔本〕〔三〕〔二〕〔安〕〔点〕〔打〕〔盗〕〔勝〕〔敗〕 ̄ ́ ̧ssi̇ijl·ʼndžljnjdz ̆ ̇ ̊ ̨ ̃ ̋ ιեւاٴوٴۇٴيٴक़ख़ग़ज़ड़ढ़फ़य़ড়ঢ়য়ਲ਼ਸ਼ਖ਼ਗ਼ਜ਼ਫ਼ଡ଼ଢ଼ําໍາຫນຫມགྷཌྷདྷབྷཛྷཀྵཱཱིུྲྀླྀྒྷྜྷྡྷྦྷྫྷྐྵaʾἀιἁιἂιἃιἄιἅιἆιἇιἠιἡιἢιἣιἤιἥιἦιἧιὠιὡιὢιὣιὤιὥιὦιὧιὰιαιάιᾶι ͂ὴιηιήιῆιὼιωιώιῶι ̳!! ̅???!!?rs°c°fnosmtmivix⫝̸ ゙ ゚よりコト333435참고주의363738394042444546474849503月4月5月6月7月8月9月hgevギガデシドルナノピコビルペソホンリラレムdaauovpciu平成昭和大正明治naμakakbmbgbpfnfμfμgmgμlmldlklfmnmμmpsnsμsmsnvμvkvpwnwμwmwkwkωmωbqcccddbgyhainkkktlnlxphprsrsvwbstմնմեմիվնմխיִײַשׁשׂאַאָאּבּגּדּהּוּזּטּיּךּכּלּמּנּסּףּפּצּקּרּתּוֹבֿכֿפֿאלئائەئوئۇئۆئۈئېئىئجئحئمئيبجبمبىبيتىتيثجثمثىثيخحضجضمطحظمغجفجفحفىفيقحقىقيكاكجكحكخكلكىكينخنىنيهجهىهييىذٰرٰىٰئرئزئنبزبنترتزتنثرثزثنمانرنزننيريزئخئهبهتهصخنههٰثهسهشهطىطيعىعيغىغيسىسيشىشيصىصيضىضيشخشرسرصرضراً ًـًـّ ْـْلآلألإ𝅗𝅥0,1,2,3,4,5,6,7,8,9,wzhvsdwcmcmddjほかココàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįĵķĺļľłńņňŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷÿźżɓƃƅɔƈɖɗƌǝəɛƒɠɣɩɨƙɯɲɵơƣƥʀƨʃƭʈưʊʋƴƶʒƹƽǎǐǒǔǖǘǚǜǟǡǣǥǧǩǫǭǯǵƕƿǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟƞȣȥȧȩȫȭȯȱȳⱥȼƚⱦɂƀʉʌɇɉɋɍɏɦɹɻʁʕͱͳʹͷ;ϳέίόύβγδεζθκλνξοπρστυφχψϊϋϗϙϛϝϟϡϣϥϧϩϫϭϯϸϻͻͼͽѐёђѓєѕіїјљњћќѝўџабвгдежзийклмнопрстуфхцчшщъыьэюяѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯաբգդզէըթժլծկհձղճյշոչպջռստրցփքօֆ་ⴧⴭნᏰᏱᏲᏳᏴᏵꙋɐɑᴂɜᴖᴗᴝᴥɒɕɟɡɥɪᵻʝɭᶅʟɱɰɳɴɸʂƫᴜʐʑḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿἐἑἒἓἔἕἰἱἲἳἴἵἶἷὀὁὂὃὄὅὑὓὕὗᾰᾱὲΐῐῑὶΰῠῡὺῥ`ὸ‐+−∑〈〉ⰰⰱⰲⰳⰴⰵⰶⰷⰸⰹⰺⰻⰼⰽⰾⰿⱀⱁⱂⱃⱄⱅⱆⱇⱈⱉⱊⱋⱌⱍⱎⱏⱐⱑⱒⱓⱔⱕⱖⱗⱘⱙⱚⱛⱜⱝⱞⱡɫᵽɽⱨⱪⱬⱳⱶȿɀⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳬⳮⳳⵡ母龟丨丶丿乙亅亠人儿入冂冖冫几凵刀力勹匕匚匸卜卩厂厶又口囗士夂夊夕女子宀寸小尢尸屮山巛工己巾干幺广廴廾弋弓彐彡彳心戈戶手支攴文斗斤方无曰欠止歹殳毋比毛氏气爪父爻爿片牙牛犬玄玉瓜瓦甘生用田疋疒癶白皮皿目矛矢石示禸禾穴立竹米糸缶网羊羽老而耒耳聿肉臣臼舌舛舟艮色艸虍虫血行衣襾見角言谷豆豕豸貝赤走足身車辛辰辵邑酉釆里長門阜隶隹雨靑非面革韋韭音頁風飛食首香馬骨高髟鬥鬯鬲鬼魚鳥鹵鹿麥麻黃黍黑黹黽鼎鼓鼠鼻齊齒龍龜龠.〒卄卅ᄁᆪᆬᆭᄄᆰᆱᆲᆳᆴᆵᄚᄈᄡᄊ짜ᅢᅣᅤᅥᅦᅧᅨᅩᅪᅫᅬᅭᅮᅯᅰᅱᅲᅳᅴᅵᄔᄕᇇᇈᇌᇎᇓᇗᇙᄜᇝᇟᄝᄞᄠᄢᄣᄧᄩᄫᄬᄭᄮᄯᄲᄶᅀᅇᅌᇱᇲᅗᅘᅙᆄᆅᆈᆑᆒᆔᆞᆡ上中下甲丙丁天地問幼箏우秘男適優印注項写左右医宗夜テヌモヨヰヱヲꙁꙃꙅꙇꙉꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝺꝼᵹꝿꞁꞃꞅꞇꞌꞑꞓꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩɬʞʇꭓꞵꞷꬷꭒᎠᎡᎢᎣᎤᎥᎦᎧᎨᎩᎪᎫᎬᎭᎮᎯᎰᎱᎲᎳᎴᎵᎶᎷᎸᎹᎺᎻᎼᎽᎾᎿᏀᏁᏂᏃᏄᏅᏆᏇᏈᏉᏊᏋᏌᏍᏎᏏᏐᏑᏒᏓᏔᏕᏖᏗᏘᏙᏚᏛᏜᏝᏞᏟᏠᏡᏢᏣᏤᏥᏦᏧᏨᏩᏪᏫᏬᏭᏮᏯ豈更賈滑串句契喇奈懶癩羅蘿螺裸邏樂洛烙珞落酪駱亂卵欄爛蘭鸞嵐濫藍襤拉臘蠟廊朗浪狼郎來冷勞擄櫓爐盧蘆虜路露魯鷺碌祿綠菉錄論壟弄籠聾牢磊賂雷壘屢樓淚漏累縷陋勒肋凜凌稜綾菱陵讀拏諾丹寧怒率異北磻便復不泌數索參塞省葉說殺沈拾若掠略亮兩凉梁糧良諒量勵呂廬旅濾礪閭驪麗黎曆歷轢年憐戀撚漣煉璉秊練聯輦蓮連鍊列劣咽烈裂廉念捻殮簾獵令囹嶺怜玲瑩羚聆鈴零靈領例禮醴隸惡了僚寮尿料燎療蓼遼暈阮劉杻柳流溜琉留硫紐類戮陸倫崙淪輪律慄栗隆利吏履易李梨泥理痢罹裏裡離匿溺吝燐璘藺隣鱗麟林淋臨笠粒狀炙識什茶刺切度拓糖宅洞暴輻降廓兀嗀塚晴凞猪益礼神祥福靖精蘒諸逸都飯飼館鶴郞隷侮僧免勉勤卑喝嘆器塀墨層悔慨憎懲敏既暑梅海渚漢煮爫琢碑祉祈祐祖禍禎穀突節縉繁署者臭艹著褐視謁謹賓贈辶難響頻恵𤋮舘並况全侀充冀勇勺啕喙嗢墳奄奔婢嬨廒廙彩徭惘慎愈慠戴揄搜摒敖望杖滛滋瀞瞧爵犯瑱甆画瘝瘟盛直睊着磌窱类絛缾荒華蝹襁覆調請諭變輸遲醙鉶陼韛頋鬒𢡊𢡄𣏕㮝䀘䀹𥉉𥳐𧻓齃龎עםٱٻپڀٺٿٹڤڦڄڃچڇڍڌڎڈژڑکگڳڱںڻۀہھۓڭۋۅۉ、〖〗—–_{}【】《》「」『』[]#&*-<>\\$%@ءؤة\"'^|~⦅⦆・ゥャ¢£¬¦¥₩│←↑→↓■○𐐨𐐩𐐪𐐫𐐬𐐭𐐮𐐯𐐰𐐱𐐲𐐳𐐴𐐵𐐶𐐷𐐸𐐹𐐺𐐻𐐼𐐽𐐾𐐿𐑀𐑁𐑂𐑃𐑄𐑅𐑆𐑇𐑈𐑉𐑊𐑋𐑌𐑍𐑎𐑏𐓘𐓙𐓚𐓛𐓜𐓝𐓞𐓟𐓠𐓡𐓢𐓣𐓤𐓥𐓦𐓧𐓨𐓩𐓪𐓫𐓬𐓭𐓮𐓯𐓰𐓱𐓲𐓳𐓴𐓵𐓶𐓷𐓸𐓹𐓺𐓻𐳀𐳁𐳂𐳃𐳄𐳅𐳆𐳇𐳈𐳉𐳊𐳋𐳌𐳍𐳎𐳏𐳐𐳑𐳒𐳓𐳔𐳕𐳖𐳗𐳘𐳙𐳚𐳛𐳜𐳝𐳞𐳟𐳠𐳡𐳢𐳣𐳤𐳥𐳦𐳧𐳨𐳩𐳪𐳫𐳬𐳭𐳮𐳯𐳰𐳱𐳲𑣀𑣁𑣂𑣃𑣄𑣅𑣆𑣇𑣈𑣉𑣊𑣋𑣌𑣍𑣎𑣏𑣐𑣑𑣒𑣓𑣔𑣕𑣖𑣗𑣘𑣙𑣚𑣛𑣜𑣝𑣞𑣟ıȷ∇∂𞤢𞤣𞤤𞤥𞤦𞤧𞤨𞤩𞤪𞤫𞤬𞤭𞤮𞤯𞤰𞤱𞤲𞤳𞤴𞤵𞤶𞤷𞤸𞤹𞤺𞤻𞤼𞤽𞤾𞤿𞥀𞥁𞥂𞥃ٮڡٯ字双多解交映無前後再新初終販声吹演投捕遊指禁空合満申割営配得可丽丸乁𠄢你侻倂偺備像㒞𠘺兔兤具𠔜㒹內𠕋冗冤仌冬𩇟刃㓟刻剆剷㔕包匆卉博即卽卿𠨬灰及叟𠭣叫叱吆咞吸呈周咢哶唐啓啣善喫喳嗂圖圗噑噴壮城埴堍型堲報墬𡓤売壷夆夢奢𡚨𡛪姬娛娧姘婦㛮嬈嬾𡧈寃寘寳𡬘寿将㞁屠峀岍𡷤嵃𡷦嵮嵫嵼巡巢㠯巽帨帽幩㡢𢆃㡼庰庳庶𪎒𢌱舁弢㣇𣊸𦇚形彫㣣徚忍志忹悁㤺㤜𢛔惇慈慌慺憲憤憯懞戛扝抱拔捐𢬌挽拼捨掃揤𢯱搢揅掩㨮摩摾撝摷㩬敬𣀊旣書晉㬙㬈㫤冒冕最暜肭䏙朡杞杓𣏃㭉柺枅桒𣑭梎栟椔楂榣槪檨𣚣櫛㰘次𣢧歔㱎歲殟殻𣪍𡴋𣫺汎𣲼沿泍汧洖派浩浸涅𣴞洴港湮㴳滇𣻑淹潮𣽞𣾎濆瀹瀛㶖灊災灷炭𠔥煅𤉣熜爨牐𤘈犀犕𤜵𤠔獺王㺬玥㺸瑇瑜璅瓊㼛甤𤰶甾𤲒𢆟瘐𤾡𤾸𥁄㿼䀈𥃳𥃲𥄙𥄳眞真瞋䁆䂖𥐝硎䃣𥘦𥚚𥛅秫䄯穊穏𥥼𥪧䈂𥮫篆築䈧𥲀糒䊠糨糣紀𥾆絣䌁緇縂繅䌴𦈨𦉇䍙𦋙罺𦌾羕翺𦓚𦔣聠𦖨聰𣍟䏕育脃䐋脾媵𦞧𦞵𣎓𣎜舄辞䑫芑芋芝劳花芳芽苦𦬼茝荣莭茣莽菧荓菊菌菜𦰶𦵫𦳕䔫蓱蓳蔖𧏊蕤𦼬䕝䕡𦾱𧃒䕫虐虧虩蚩蚈蜎蛢蜨蝫螆蟡蠁䗹衠𧙧裗裞䘵裺㒻𧢮𧥦䚾䛇誠𧲨貫賁贛起𧼯𠠄跋趼跰𠣞軔𨗒𨗭邔郱鄑𨜮鄛鈸鋗鋘鉼鏹鐕𨯺開䦕閷𨵷䧦雃嶲霣𩅅𩈚䩮䩶韠𩐊䪲𩒖頩𩖶飢䬳餩馧駂駾䯎𩬰鱀鳽䳎䳭鵧𪃎䳸𪄅𪈎𪊑䵖黾鼅鼏鼖𪘀",mapChar:function(n){return n>=196608?n>=917760&&n<=917999?18874368:0:e[t[n>>4]][15&n]}};var e,t}.apply(t,[]))||(e.exports=r)},function(e,t,n){"use strict";e.exports=[{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"resolver",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"label",type:"bytes32"},{name:"owner",type:"address"}],name:"setSubnodeOwner",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"ttl",type:"uint64"}],name:"setTTL",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"ttl",outputs:[{name:"",type:"uint64"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"resolver",type:"address"}],name:"setResolver",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"owner",type:"address"}],name:"setOwner",outputs:[],payable:!1,type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"label",type:"bytes32"},{indexed:!1,name:"owner",type:"address"}],name:"NewOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"resolver",type:"address"}],name:"NewResolver",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"ttl",type:"uint64"}],name:"NewTTL",type:"event"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{constant:!0,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"}],name:"recordExists",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"bytes32",name:"node",type:"bytes32"},{internalType:"bytes32",name:"label",type:"bytes32"},{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"resolver",type:"address"},{internalType:"uint64",name:"ttl",type:"uint64"}],name:"setSubnodeRecord",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},function(e,t,n){"use strict";e.exports=[{constant:!0,inputs:[{name:"interfaceID",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"contentTypes",type:"uint256"}],name:"ABI",outputs:[{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setMultihash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"multihash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"setPubkey",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"content",outputs:[{name:"ret",type:"bytes32"}],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"addr",outputs:[{name:"ret",type:"address"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"contentType",type:"uint256"},{name:"data",type:"bytes"}],name:"setABI",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"name",outputs:[{name:"ret",type:"string"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"name",type:"string"}],name:"setName",outputs:[],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes32"}],name:"setContent",outputs:[],payable:!1,type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"pubkey",outputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],payable:!1,type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"addr",type:"address"}],name:"setAddr",outputs:[],payable:!1,type:"function"},{inputs:[{name:"ensAddr",type:"address"}],payable:!1,type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"a",type:"address"}],name:"AddrChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes32"}],name:"ContentChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"name",type:"string"}],name:"NameChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!0,name:"contentType",type:"uint256"}],name:"ABIChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"x",type:"bytes32"},{indexed:!1,name:"y",type:"bytes32"}],name:"PubkeyChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"node",type:"bytes32"},{indexed:!1,name:"hash",type:"bytes"}],name:"ContenthashChanged",type:"event"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"contenthash",outputs:[{name:"",type:"bytes"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes"}],name:"setContenthash",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}]},function(e,t,n){"use strict";var r=n(872),i=n(875),o=n(145).errors,a=n(147),s=n(965).interfaceIds;function c(e){this.registry=e}c.prototype.method=function(e,t,n,r,i){return{call:this.call.bind({ensName:e,methodName:t,methodArguments:n,callback:i,parent:this,outputFormatter:r}),send:this.send.bind({ensName:e,methodName:t,methodArguments:n,callback:i,parent:this})}},c.prototype.call=function(e){var t=this,n=new r,i=this.parent.prepareArguments(this.ensName,this.methodArguments),o=this.outputFormatter||null;return this.parent.registry.getResolver(this.ensName).then((async function(r){await t.parent.checkInterfaceSupport(r,t.methodName),t.parent.handleCall(n,r.methods[t.methodName],i,o,e)})).catch((function(t){a.isFunction(e)?e(t,null):n.reject(t)})),n.eventEmitter},c.prototype.send=function(e,t){var n=this,i=new r,o=this.parent.prepareArguments(this.ensName,this.methodArguments);return this.parent.registry.getResolver(this.ensName).then((async function(r){await n.parent.checkInterfaceSupport(r,n.methodName),n.parent.handleSend(i,r.methods[n.methodName],o,e,t)})).catch((function(e){a.isFunction(t)?t(e,null):i.reject(e)})),i.eventEmitter},c.prototype.handleCall=function(e,t,n,r,i){return t.apply(this,n).call().then((function(t){r&&(t=r(t)),a.isFunction(i)?i(t,t):e.resolve(t)})).catch((function(t){a.isFunction(i)?i(t,null):e.reject(t)})),e},c.prototype.handleSend=function(e,t,n,r,i){return t.apply(this,n).send(r).on("sending",(function(){e.eventEmitter.emit("sending")})).on("sent",(function(){e.eventEmitter.emit("sent")})).on("transactionHash",(function(t){e.eventEmitter.emit("transactionHash",t)})).on("confirmation",(function(t,n){e.eventEmitter.emit("confirmation",t,n)})).on("receipt",(function(t){e.eventEmitter.emit("receipt",t),e.resolve(t),a.isFunction(i)&&i(t,t)})).on("error",(function(t){e.eventEmitter.emit("error",t),a.isFunction(i)?i(t,null):e.reject(t)})),e},c.prototype.prepareArguments=function(e,t){var n=i.hash(e);return t.length>0?(t.unshift(n),t):[n]},c.prototype.checkInterfaceSupport=async function(e,t){if(s[t]){var n=!1;try{n=await e.methods.supportsInterface(s[t]).call()}catch(t){console.warn('Could not verify interface of resolver contract at "'+e.options.address+'". ')}if(!n)throw o.ResolverMethodMissingError(e.options.address,t)}},e.exports=c},function(e,t,n){var r=n(1160);e.exports={decode:function(e){var t=null,n=null,i=null;if(e&&e.error)return{protocolType:null,decoded:e.error};if(e)try{t=r.decode(e);var o=r.getCodec(e);"ipfs-ns"===o?n="ipfs":"swarm-ns"===o?n="bzz":"onion"===o?n="onion":"onion3"===o?n="onion3":t=e}catch(e){i=e.message}return{protocolType:n,decoded:t,error:i}},encode:function(e){var t,n,i=!1;if(e){var o=e.match(/^(ipfs|bzz|onion|onion3):\/\/(.*)/)||e.match(/\/(ipfs)\/(.*)/);o&&(n=o[1],t=o[2]);try{if("ipfs"===n)t.length>=4&&(i="0x"+r.fromIpfs(t));else if("bzz"===n)t.length>=4&&(i="0x"+r.fromSwarm(t));else if("onion"===n)16===t.length&&(i="0x"+r.encode("onion",t));else{if("onion3"!==n)throw new Error("Could not encode content hash: unsupported content type");56===t.length&&(i="0x"+r.encode("onion3",t))}}catch(e){throw e}}return i}}},function(e,t,n){const r=n(1161),{hexStringToBuffer:i,profiles:o}=n(1169),{cidV0ToV1Base32:a}=n(1190);e.exports={helpers:{cidV0ToV1Base32:a},decode:function(e){const t=i(e),n=r.getCodec(t),a=r.rmPrefix(t);let s=o[n];return s||(s=o.default),s.decode(a)},fromIpfs:function(e){return this.encode("ipfs-ns",e)},fromSwarm:function(e){return this.encode("swarm-ns",e)},encode:function(e,t){let n=o[e];n||(n=o.default);const i=n.encode(t);return r.addPrefix(e,i).toString("hex")},getCodec:function(e){let t=i(e);return r.getCodec(t)}}},function(e,t,n){"use strict";(function(r){const i=n(853),o=n(1165),a=n(1166),s=n(968);(t=e.exports).addPrefix=(e,t)=>{let n;if(r.isBuffer(e))n=s.varintBufferEncode(e);else{if(!a[e])throw new Error("multicodec not recognized");n=a[e]}return r.concat([n,t])},t.rmPrefix=e=>(i.decode(e),e.slice(i.decode.bytes)),t.getCodec=e=>{const t=i.decode(e),n=o.get(t);if(void 0===n)throw new Error(`Code ${t} not found`);return n},t.getName=e=>o.get(e),t.getNumber=e=>{const t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return s.varintBufferDecode(t)[0]},t.getCode=e=>i.decode(e),t.getCodeVarint=e=>{const t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},t.getVarint=e=>i.encode(e);const c=n(1167);Object.assign(t,c),t.print=n(1168)}).call(this,n(2).Buffer)},function(e,t){e.exports=function e(t,r,i){r=r||[];var o=i=i||0;for(;t>=n;)r[i++]=255&t|128,t/=128;for(;-128&t;)r[i++]=255&t|128,t>>>=7;return r[i]=0|t,e.bytes=i-o+1,r};var n=Math.pow(2,31)},function(e,t){e.exports=function e(t,n){var r,i=0,o=0,a=n=n||0,s=t.length;do{if(a>=s)throw e.bytes=0,new RangeError("Could not decode varint");r=t[a++],i+=o<28?(127&r)<<o:(127&r)*Math.pow(2,o),o+=7}while(r>=128);return e.bytes=a-n,i}},function(e,t){var n=Math.pow(2,7),r=Math.pow(2,14),i=Math.pow(2,21),o=Math.pow(2,28),a=Math.pow(2,35),s=Math.pow(2,42),c=Math.pow(2,49),l=Math.pow(2,56),u=Math.pow(2,63);e.exports=function(e){return e<n?1:e<r?2:e<i?3:e<o?4:e<a?5:e<s?6:e<c?7:e<l?8:e<u?9:10}},function(e,t,n){"use strict";const r=n(876),i=new Map;for(const e in r){const t=r[e];i.set(t,e)}e.exports=Object.freeze(i)},function(e,t,n){"use strict";const r=n(876),i=n(968).varintEncode,o={};for(const e in r){const t=r[e];o[e]=i(t)}e.exports=Object.freeze(o)},function(e,t,n){"use strict";const r=n(876),i={};for(const[e,t]of Object.entries(r))i[e.toUpperCase().replace(/-/g,"_")]=t;e.exports=Object.freeze(i)},function(e,t,n){"use strict";const r=n(876),i={};for(const[e,t]of Object.entries(r))void 0===i[t]&&(i[t]=e);e.exports=Object.freeze(i)},function(e,t,n){(function(e){const r=n(969),i=n(905),o=e=>{let t=e.slice(0,2),n=e.slice(2),r="";return r="0x"===t?n:e,i.fromHexString(r)},a={swarm:e=>{const t=i.encode(o(e),"keccak-256");return new r(1,"swarm-manifest",t).buffer},ipfs:e=>{const t=i.fromB58String(e);return new r(1,"dag-pb",t).buffer},utf8:t=>e.from(t,"utf8")},s={hexMultiHash:e=>{const t=new r(e);return i.decode(t.multihash).digest.toString("hex")},b58MultiHash:e=>{const t=new r(e);return i.toB58String(t.multihash)},utf8:e=>e.toString("utf8")},c={"swarm-ns":{encode:a.swarm,decode:s.hexMultiHash},"ipfs-ns":{encode:a.ipfs,decode:s.b58MultiHash},"ipns-ns":{encode:a.ipfs,decode:s.b58MultiHash},default:{encode:a.utf8,decode:s.utf8}};t.hexStringToBuffer=o,t.profiles=c}).call(this,n(2).Buffer)},function(e,t,n){"use strict";const{Buffer:r}=n(2),i=n(1171);function o(e,t){if(!t)throw new Error("requires an encoded buffer");const n=a(e),i=r.from(n.code);return function(e,t){a(e).decode(t.toString())}(n.name,t),r.concat([i,t])}function a(e){let t;if(i.names[e])t=i.names[e];else{if(!i.codes[e])throw new Error("Unsupported encoding");t=i.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}(t=e.exports=o).encode=function(e,t){const n=a(e);return o(n.name,r.from(n.encode(t)))},t.decode=function(e){r.isBuffer(e)&&(e=e.toString());const t=e.substring(0,1);"string"==typeof(e=e.substring(1,e.length))&&(e=r.from(e));const n=a(t);return r.from(n.decode(e.toString()))},t.isEncoded=function(e){r.isBuffer(e)&&(e=e.toString());if("[object String]"!==Object.prototype.toString.call(e))return!1;const t=e.substring(0,1);try{return a(t).name}catch(e){return!1}},t.names=Object.freeze(Object.keys(i.names)),t.codes=Object.freeze(Object.keys(i.codes))},function(e,t,n){"use strict";const r=n(1172),i=n(396),o=n(1173),a=n(1174),s=n(1175),c=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",a,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",a,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",a,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",a,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",a,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],l=c.reduce((e,t)=>(e[t[0]]=new r(t[0],t[1],t[2],t[3]),e),{}),u=c.reduce((e,t)=>(e[t[1]]=l[t[0]],e),{});e.exports={names:l,codes:u}},function(e,t,n){"use strict";e.exports=class{constructor(e,t,n,r){this.name=e,this.code=t,this.alphabet=r,n&&r&&(this.engine=n(r))}encode(e){return this.engine.encode(e)}decode(e){return this.engine.decode(e)}isImplemented(){return this.engine}}},function(e,t,n){"use strict";const{Buffer:r}=n(2);e.exports=function(e){return{encode:e=>"string"==typeof e?r.from(e).toString("hex"):e.toString("hex"),decode(t){for(const n of t)if(e.indexOf(n)<0)throw new Error("invalid base16 character");return r.from(t,"hex")}}}},function(e,t,n){"use strict";function r(e,t){const n=e.byteLength,r=new Uint8Array(e),i=t.indexOf("=")===t.length-1;i&&(t=t.substring(0,t.length-1));let o=0,a=0,s="";for(let e=0;e<n;e++)for(a=a<<8|r[e],o+=8;o>=5;)s+=t[a>>>o-5&31],o-=5;if(o>0&&(s+=t[a<<5-o&31]),i)for(;s.length%8!=0;)s+="=";return s}e.exports=function(e){return{encode:t=>r("string"==typeof t?Uint8Array.from(t):t,e),decode(t){for(const n of t)if(e.indexOf(n)<0)throw new Error("invalid base32 character");return function(e,t){const n=(e=e.replace(new RegExp("=","g"),"")).length;let r=0,i=0,o=0;const a=new Uint8Array(5*n/8|0);for(let s=0;s<n;s++)i=i<<5|t.indexOf(e[s]),r+=5,r>=8&&(a[o++]=i>>>r-8&255,r-=8);return a.buffer}(t,e)}}}},function(e,t,n){"use strict";const{Buffer:r}=n(2);e.exports=function(e){const t=e.indexOf("=")>-1,n=e.indexOf("-")>-1&&e.indexOf("_")>-1;return{encode(e){let i="";i="string"==typeof e?r.from(e).toString("base64"):e.toString("base64"),n&&(i=i.replace(/\+/g,"-").replace(/\//g,"_"));const o=i.indexOf("=");return o>0&&!t&&(i=i.substring(0,o)),i},decode(t){for(const n of t)if(e.indexOf(n)<0)throw new Error("invalid base64 character");return r.from(t,"base64")}}}},function(e,t,n){"use strict";t.names=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"dbl-sha2-256":86,"sha3-224":23,"sha3-256":22,"sha3-384":21,"sha3-512":20,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,"murmur3-128":34,"murmur3-32":35,md4:212,md5:213,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"Skein256-8":45825,"Skein256-16":45826,"Skein256-24":45827,"Skein256-32":45828,"Skein256-40":45829,"Skein256-48":45830,"Skein256-56":45831,"Skein256-64":45832,"Skein256-72":45833,"Skein256-80":45834,"Skein256-88":45835,"Skein256-96":45836,"Skein256-104":45837,"Skein256-112":45838,"Skein256-120":45839,"Skein256-128":45840,"Skein256-136":45841,"Skein256-144":45842,"Skein256-152":45843,"Skein256-160":45844,"Skein256-168":45845,"Skein256-176":45846,"Skein256-184":45847,"Skein256-192":45848,"Skein256-200":45849,"Skein256-208":45850,"Skein256-216":45851,"Skein256-224":45852,"Skein256-232":45853,"Skein256-240":45854,"Skein256-248":45855,"Skein256-256":45856,"Skein512-8":45857,"Skein512-16":45858,"Skein512-24":45859,"Skein512-32":45860,"Skein512-40":45861,"Skein512-48":45862,"Skein512-56":45863,"Skein512-64":45864,"Skein512-72":45865,"Skein512-80":45866,"Skein512-88":45867,"Skein512-96":45868,"Skein512-104":45869,"Skein512-112":45870,"Skein512-120":45871,"Skein512-128":45872,"Skein512-136":45873,"Skein512-144":45874,"Skein512-152":45875,"Skein512-160":45876,"Skein512-168":45877,"Skein512-176":45878,"Skein512-184":45879,"Skein512-192":45880,"Skein512-200":45881,"Skein512-208":45882,"Skein512-216":45883,"Skein512-224":45884,"Skein512-232":45885,"Skein512-240":45886,"Skein512-248":45887,"Skein512-256":45888,"Skein512-264":45889,"Skein512-272":45890,"Skein512-280":45891,"Skein512-288":45892,"Skein512-296":45893,"Skein512-304":45894,"Skein512-312":45895,"Skein512-320":45896,"Skein512-328":45897,"Skein512-336":45898,"Skein512-344":45899,"Skein512-352":45900,"Skein512-360":45901,"Skein512-368":45902,"Skein512-376":45903,"Skein512-384":45904,"Skein512-392":45905,"Skein512-400":45906,"Skein512-408":45907,"Skein512-416":45908,"Skein512-424":45909,"Skein512-432":45910,"Skein512-440":45911,"Skein512-448":45912,"Skein512-456":45913,"Skein512-464":45914,"Skein512-472":45915,"Skein512-480":45916,"Skein512-488":45917,"Skein512-496":45918,"Skein512-504":45919,"Skein512-512":45920,"Skein1024-8":45921,"Skein1024-16":45922,"Skein1024-24":45923,"Skein1024-32":45924,"Skein1024-40":45925,"Skein1024-48":45926,"Skein1024-56":45927,"Skein1024-64":45928,"Skein1024-72":45929,"Skein1024-80":45930,"Skein1024-88":45931,"Skein1024-96":45932,"Skein1024-104":45933,"Skein1024-112":45934,"Skein1024-120":45935,"Skein1024-128":45936,"Skein1024-136":45937,"Skein1024-144":45938,"Skein1024-152":45939,"Skein1024-160":45940,"Skein1024-168":45941,"Skein1024-176":45942,"Skein1024-184":45943,"Skein1024-192":45944,"Skein1024-200":45945,"Skein1024-208":45946,"Skein1024-216":45947,"Skein1024-224":45948,"Skein1024-232":45949,"Skein1024-240":45950,"Skein1024-248":45951,"Skein1024-256":45952,"Skein1024-264":45953,"Skein1024-272":45954,"Skein1024-280":45955,"Skein1024-288":45956,"Skein1024-296":45957,"Skein1024-304":45958,"Skein1024-312":45959,"Skein1024-320":45960,"Skein1024-328":45961,"Skein1024-336":45962,"Skein1024-344":45963,"Skein1024-352":45964,"Skein1024-360":45965,"Skein1024-368":45966,"Skein1024-376":45967,"Skein1024-384":45968,"Skein1024-392":45969,"Skein1024-400":45970,"Skein1024-408":45971,"Skein1024-416":45972,"Skein1024-424":45973,"Skein1024-432":45974,"Skein1024-440":45975,"Skein1024-448":45976,"Skein1024-456":45977,"Skein1024-464":45978,"Skein1024-472":45979,"Skein1024-480":45980,"Skein1024-488":45981,"Skein1024-496":45982,"Skein1024-504":45983,"Skein1024-512":45984,"Skein1024-520":45985,"Skein1024-528":45986,"Skein1024-536":45987,"Skein1024-544":45988,"Skein1024-552":45989,"Skein1024-560":45990,"Skein1024-568":45991,"Skein1024-576":45992,"Skein1024-584":45993,"Skein1024-592":45994,"Skein1024-600":45995,"Skein1024-608":45996,"Skein1024-616":45997,"Skein1024-624":45998,"Skein1024-632":45999,"Skein1024-640":46e3,"Skein1024-648":46001,"Skein1024-656":46002,"Skein1024-664":46003,"Skein1024-672":46004,"Skein1024-680":46005,"Skein1024-688":46006,"Skein1024-696":46007,"Skein1024-704":46008,"Skein1024-712":46009,"Skein1024-720":46010,"Skein1024-728":46011,"Skein1024-736":46012,"Skein1024-744":46013,"Skein1024-752":46014,"Skein1024-760":46015,"Skein1024-768":46016,"Skein1024-776":46017,"Skein1024-784":46018,"Skein1024-792":46019,"Skein1024-800":46020,"Skein1024-808":46021,"Skein1024-816":46022,"Skein1024-824":46023,"Skein1024-832":46024,"Skein1024-840":46025,"Skein1024-848":46026,"Skein1024-856":46027,"Skein1024-864":46028,"Skein1024-872":46029,"Skein1024-880":46030,"Skein1024-888":46031,"Skein1024-896":46032,"Skein1024-904":46033,"Skein1024-912":46034,"Skein1024-920":46035,"Skein1024-928":46036,"Skein1024-936":46037,"Skein1024-944":46038,"Skein1024-952":46039,"Skein1024-960":46040,"Skein1024-968":46041,"Skein1024-976":46042,"Skein1024-984":46043,"Skein1024-992":46044,"Skein1024-1000":46045,"Skein1024-1008":46046,"Skein1024-1016":46047,"Skein1024-1024":46048}),t.codes=Object.freeze({0:"identity",17:"sha1",18:"sha2-256",19:"sha2-512",86:"dbl-sha2-256",23:"sha3-224",22:"sha3-256",21:"sha3-384",20:"sha3-512",24:"shake-128",25:"shake-256",26:"keccak-224",27:"keccak-256",28:"keccak-384",29:"keccak-512",34:"murmur3-128",35:"murmur3-32",212:"md4",213:"md5",45569:"blake2b-8",45570:"blake2b-16",45571:"blake2b-24",45572:"blake2b-32",45573:"blake2b-40",45574:"blake2b-48",45575:"blake2b-56",45576:"blake2b-64",45577:"blake2b-72",45578:"blake2b-80",45579:"blake2b-88",45580:"blake2b-96",45581:"blake2b-104",45582:"blake2b-112",45583:"blake2b-120",45584:"blake2b-128",45585:"blake2b-136",45586:"blake2b-144",45587:"blake2b-152",45588:"blake2b-160",45589:"blake2b-168",45590:"blake2b-176",45591:"blake2b-184",45592:"blake2b-192",45593:"blake2b-200",45594:"blake2b-208",45595:"blake2b-216",45596:"blake2b-224",45597:"blake2b-232",45598:"blake2b-240",45599:"blake2b-248",45600:"blake2b-256",45601:"blake2b-264",45602:"blake2b-272",45603:"blake2b-280",45604:"blake2b-288",45605:"blake2b-296",45606:"blake2b-304",45607:"blake2b-312",45608:"blake2b-320",45609:"blake2b-328",45610:"blake2b-336",45611:"blake2b-344",45612:"blake2b-352",45613:"blake2b-360",45614:"blake2b-368",45615:"blake2b-376",45616:"blake2b-384",45617:"blake2b-392",45618:"blake2b-400",45619:"blake2b-408",45620:"blake2b-416",45621:"blake2b-424",45622:"blake2b-432",45623:"blake2b-440",45624:"blake2b-448",45625:"blake2b-456",45626:"blake2b-464",45627:"blake2b-472",45628:"blake2b-480",45629:"blake2b-488",45630:"blake2b-496",45631:"blake2b-504",45632:"blake2b-512",45633:"blake2s-8",45634:"blake2s-16",45635:"blake2s-24",45636:"blake2s-32",45637:"blake2s-40",45638:"blake2s-48",45639:"blake2s-56",45640:"blake2s-64",45641:"blake2s-72",45642:"blake2s-80",45643:"blake2s-88",45644:"blake2s-96",45645:"blake2s-104",45646:"blake2s-112",45647:"blake2s-120",45648:"blake2s-128",45649:"blake2s-136",45650:"blake2s-144",45651:"blake2s-152",45652:"blake2s-160",45653:"blake2s-168",45654:"blake2s-176",45655:"blake2s-184",45656:"blake2s-192",45657:"blake2s-200",45658:"blake2s-208",45659:"blake2s-216",45660:"blake2s-224",45661:"blake2s-232",45662:"blake2s-240",45663:"blake2s-248",45664:"blake2s-256",45825:"Skein256-8",45826:"Skein256-16",45827:"Skein256-24",45828:"Skein256-32",45829:"Skein256-40",45830:"Skein256-48",45831:"Skein256-56",45832:"Skein256-64",45833:"Skein256-72",45834:"Skein256-80",45835:"Skein256-88",45836:"Skein256-96",45837:"Skein256-104",45838:"Skein256-112",45839:"Skein256-120",45840:"Skein256-128",45841:"Skein256-136",45842:"Skein256-144",45843:"Skein256-152",45844:"Skein256-160",45845:"Skein256-168",45846:"Skein256-176",45847:"Skein256-184",45848:"Skein256-192",45849:"Skein256-200",45850:"Skein256-208",45851:"Skein256-216",45852:"Skein256-224",45853:"Skein256-232",45854:"Skein256-240",45855:"Skein256-248",45856:"Skein256-256",45857:"Skein512-8",45858:"Skein512-16",45859:"Skein512-24",45860:"Skein512-32",45861:"Skein512-40",45862:"Skein512-48",45863:"Skein512-56",45864:"Skein512-64",45865:"Skein512-72",45866:"Skein512-80",45867:"Skein512-88",45868:"Skein512-96",45869:"Skein512-104",45870:"Skein512-112",45871:"Skein512-120",45872:"Skein512-128",45873:"Skein512-136",45874:"Skein512-144",45875:"Skein512-152",45876:"Skein512-160",45877:"Skein512-168",45878:"Skein512-176",45879:"Skein512-184",45880:"Skein512-192",45881:"Skein512-200",45882:"Skein512-208",45883:"Skein512-216",45884:"Skein512-224",45885:"Skein512-232",45886:"Skein512-240",45887:"Skein512-248",45888:"Skein512-256",45889:"Skein512-264",45890:"Skein512-272",45891:"Skein512-280",45892:"Skein512-288",45893:"Skein512-296",45894:"Skein512-304",45895:"Skein512-312",45896:"Skein512-320",45897:"Skein512-328",45898:"Skein512-336",45899:"Skein512-344",45900:"Skein512-352",45901:"Skein512-360",45902:"Skein512-368",45903:"Skein512-376",45904:"Skein512-384",45905:"Skein512-392",45906:"Skein512-400",45907:"Skein512-408",45908:"Skein512-416",45909:"Skein512-424",45910:"Skein512-432",45911:"Skein512-440",45912:"Skein512-448",45913:"Skein512-456",45914:"Skein512-464",45915:"Skein512-472",45916:"Skein512-480",45917:"Skein512-488",45918:"Skein512-496",45919:"Skein512-504",45920:"Skein512-512",45921:"Skein1024-8",45922:"Skein1024-16",45923:"Skein1024-24",45924:"Skein1024-32",45925:"Skein1024-40",45926:"Skein1024-48",45927:"Skein1024-56",45928:"Skein1024-64",45929:"Skein1024-72",45930:"Skein1024-80",45931:"Skein1024-88",45932:"Skein1024-96",45933:"Skein1024-104",45934:"Skein1024-112",45935:"Skein1024-120",45936:"Skein1024-128",45937:"Skein1024-136",45938:"Skein1024-144",45939:"Skein1024-152",45940:"Skein1024-160",45941:"Skein1024-168",45942:"Skein1024-176",45943:"Skein1024-184",45944:"Skein1024-192",45945:"Skein1024-200",45946:"Skein1024-208",45947:"Skein1024-216",45948:"Skein1024-224",45949:"Skein1024-232",45950:"Skein1024-240",45951:"Skein1024-248",45952:"Skein1024-256",45953:"Skein1024-264",45954:"Skein1024-272",45955:"Skein1024-280",45956:"Skein1024-288",45957:"Skein1024-296",45958:"Skein1024-304",45959:"Skein1024-312",45960:"Skein1024-320",45961:"Skein1024-328",45962:"Skein1024-336",45963:"Skein1024-344",45964:"Skein1024-352",45965:"Skein1024-360",45966:"Skein1024-368",45967:"Skein1024-376",45968:"Skein1024-384",45969:"Skein1024-392",45970:"Skein1024-400",45971:"Skein1024-408",45972:"Skein1024-416",45973:"Skein1024-424",45974:"Skein1024-432",45975:"Skein1024-440",45976:"Skein1024-448",45977:"Skein1024-456",45978:"Skein1024-464",45979:"Skein1024-472",45980:"Skein1024-480",45981:"Skein1024-488",45982:"Skein1024-496",45983:"Skein1024-504",45984:"Skein1024-512",45985:"Skein1024-520",45986:"Skein1024-528",45987:"Skein1024-536",45988:"Skein1024-544",45989:"Skein1024-552",45990:"Skein1024-560",45991:"Skein1024-568",45992:"Skein1024-576",45993:"Skein1024-584",45994:"Skein1024-592",45995:"Skein1024-600",45996:"Skein1024-608",45997:"Skein1024-616",45998:"Skein1024-624",45999:"Skein1024-632",46e3:"Skein1024-640",46001:"Skein1024-648",46002:"Skein1024-656",46003:"Skein1024-664",46004:"Skein1024-672",46005:"Skein1024-680",46006:"Skein1024-688",46007:"Skein1024-696",46008:"Skein1024-704",46009:"Skein1024-712",46010:"Skein1024-720",46011:"Skein1024-728",46012:"Skein1024-736",46013:"Skein1024-744",46014:"Skein1024-752",46015:"Skein1024-760",46016:"Skein1024-768",46017:"Skein1024-776",46018:"Skein1024-784",46019:"Skein1024-792",46020:"Skein1024-800",46021:"Skein1024-808",46022:"Skein1024-816",46023:"Skein1024-824",46024:"Skein1024-832",46025:"Skein1024-840",46026:"Skein1024-848",46027:"Skein1024-856",46028:"Skein1024-864",46029:"Skein1024-872",46030:"Skein1024-880",46031:"Skein1024-888",46032:"Skein1024-896",46033:"Skein1024-904",46034:"Skein1024-912",46035:"Skein1024-920",46036:"Skein1024-928",46037:"Skein1024-936",46038:"Skein1024-944",46039:"Skein1024-952",46040:"Skein1024-960",46041:"Skein1024-968",46042:"Skein1024-976",46043:"Skein1024-984",46044:"Skein1024-992",46045:"Skein1024-1000",46046:"Skein1024-1008",46047:"Skein1024-1016",46048:"Skein1024-1024"}),t.defaultLengths=Object.freeze({17:20,18:32,19:64,86:32,23:28,22:32,21:48,20:64,24:32,25:64,26:28,27:32,28:48,29:64,34:32,45569:1,45570:2,45571:3,45572:4,45573:5,45574:6,45575:7,45576:8,45577:9,45578:10,45579:11,45580:12,45581:13,45582:14,45583:15,45584:16,45585:17,45586:18,45587:19,45588:20,45589:21,45590:22,45591:23,45592:24,45593:25,45594:26,45595:27,45596:28,45597:29,45598:30,45599:31,45600:32,45601:33,45602:34,45603:35,45604:36,45605:37,45606:38,45607:39,45608:40,45609:41,45610:42,45611:43,45612:44,45613:45,45614:46,45615:47,45616:48,45617:49,45618:50,45619:51,45620:52,45621:53,45622:54,45623:55,45624:56,45625:57,45626:58,45627:59,45628:60,45629:61,45630:62,45631:63,45632:64,45633:1,45634:2,45635:3,45636:4,45637:5,45638:6,45639:7,45640:8,45641:9,45642:10,45643:11,45644:12,45645:13,45646:14,45647:15,45648:16,45649:17,45650:18,45651:19,45652:20,45653:21,45654:22,45655:23,45656:24,45657:25,45658:26,45659:27,45660:28,45661:29,45662:30,45663:31,45664:32,45825:1,45826:2,45827:3,45828:4,45829:5,45830:6,45831:7,45832:8,45833:9,45834:10,45835:11,45836:12,45837:13,45838:14,45839:15,45840:16,45841:17,45842:18,45843:19,45844:20,45845:21,45846:22,45847:23,45848:24,45849:25,45850:26,45851:27,45852:28,45853:29,45854:30,45855:31,45856:32,45857:1,45858:2,45859:3,45860:4,45861:5,45862:6,45863:7,45864:8,45865:9,45866:10,45867:11,45868:12,45869:13,45870:14,45871:15,45872:16,45873:17,45874:18,45875:19,45876:20,45877:21,45878:22,45879:23,45880:24,45881:25,45882:26,45883:27,45884:28,45885:29,45886:30,45887:31,45888:32,45889:33,45890:34,45891:35,45892:36,45893:37,45894:38,45895:39,45896:40,45897:41,45898:42,45899:43,45900:44,45901:45,45902:46,45903:47,45904:48,45905:49,45906:50,45907:51,45908:52,45909:53,45910:54,45911:55,45912:56,45913:57,45914:58,45915:59,45916:60,45917:61,45918:62,45919:63,45920:64,45921:1,45922:2,45923:3,45924:4,45925:5,45926:6,45927:7,45928:8,45929:9,45930:10,45931:11,45932:12,45933:13,45934:14,45935:15,45936:16,45937:17,45938:18,45939:19,45940:20,45941:21,45942:22,45943:23,45944:24,45945:25,45946:26,45947:27,45948:28,45949:29,45950:30,45951:31,45952:32,45953:33,45954:34,45955:35,45956:36,45957:37,45958:38,45959:39,45960:40,45961:41,45962:42,45963:43,45964:44,45965:45,45966:46,45967:47,45968:48,45969:49,45970:50,45971:51,45972:52,45973:53,45974:54,45975:55,45976:56,45977:57,45978:58,45979:59,45980:60,45981:61,45982:62,45983:63,45984:64,45985:65,45986:66,45987:67,45988:68,45989:69,45990:70,45991:71,45992:72,45993:73,45994:74,45995:75,45996:76,45997:77,45998:78,45999:79,46e3:80,46001:81,46002:82,46003:83,46004:84,46005:85,46006:86,46007:87,46008:88,46009:89,46010:90,46011:91,46012:92,46013:93,46014:94,46015:95,46016:96,46017:97,46018:98,46019:99,46020:100,46021:101,46022:102,46023:103,46024:104,46025:105,46026:106,46027:107,46028:108,46029:109,46030:110,46031:111,46032:112,46033:113,46034:114,46035:115,46036:116,46037:117,46038:118,46039:119,46040:120,46041:121,46042:122,46043:123,46044:124,46045:125,46046:126,46047:127,46048:128})},function(e,t,n){"use strict";const{Buffer:r}=n(2),i=n(1178);(t=e.exports=a).encode=function(e,t){const n=s(e);return a(n.name,r.from(n.encode(t)))},t.decode=function(e){r.isBuffer(e)&&(e=e.toString());const t=e.substring(0,1);"string"==typeof(e=e.substring(1,e.length))&&(e=r.from(e));const n=s(t);return r.from(n.decode(e.toString()))},t.isEncoded=function(e){r.isBuffer(e)&&(e=e.toString());if("[object String]"!==Object.prototype.toString.call(e))return!1;const t=e.substring(0,1);try{return s(t).name}catch(e){return!1}},t.names=Object.freeze(Object.keys(i.names)),t.codes=Object.freeze(Object.keys(i.codes));const o=new Error("Unsupported encoding");function a(e,t){if(!t)throw new Error("requires an encoded buffer");const n=s(e),i=r.from(n.code);return function(e,t){s(e).decode(t.toString())}(n.name,t),r.concat([i,t])}function s(e){let t;if(i.names[e])t=i.names[e];else{if(!i.codes[e])throw o;t=i.codes[e]}if(!t.isImplemented())throw new Error("Base "+e+" is not implemented yet");return t}},function(e,t,n){"use strict";const r=n(1179),i=n(396),o=n(1180),a=n(1181),s=n(1182),c=[["base1","1","","1"],["base2","0",i,"01"],["base8","7",i,"01234567"],["base10","9",i,"0123456789"],["base16","f",o,"0123456789abcdef"],["base32","b",a,"abcdefghijklmnopqrstuvwxyz234567"],["base32pad","c",a,"abcdefghijklmnopqrstuvwxyz234567="],["base32hex","v",a,"0123456789abcdefghijklmnopqrstuv"],["base32hexpad","t",a,"0123456789abcdefghijklmnopqrstuv="],["base32z","h",a,"ybndrfg8ejkmcpqxot1uwisza345h769"],["base58flickr","Z",i,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base58btc","z",i,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base64","m",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",s,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],l=c.reduce((e,t)=>(e[t[0]]=new r(t[0],t[1],t[2],t[3]),e),{}),u=c.reduce((e,t)=>(e[t[1]]=l[t[0]],e),{});e.exports={names:l,codes:u}},function(e,t,n){"use strict";e.exports=class{constructor(e,t,n,r){this.name=e,this.code=t,this.alphabet=r,n&&r&&(this.engine=n(r))}encode(e){return this.engine.encode(e)}decode(e){return this.engine.decode(e)}isImplemented(){return this.engine}}},function(e,t,n){"use strict";const{Buffer:r}=n(2);e.exports=function(e){return{encode:e=>"string"==typeof e?r.from(e).toString("hex"):e.toString("hex"),decode(t){for(const n of t)if(e.indexOf(n)<0)throw new Error("invalid base16 character");return r.from(t,"hex")}}}},function(e,t,n){"use strict";function r(e,t){const n=e.byteLength,r=new Uint8Array(e),i=t.indexOf("=")===t.length-1;i&&(t=t.substring(0,t.length-1));let o=0,a=0,s="";for(let e=0;e<n;e++)for(a=a<<8|r[e],o+=8;o>=5;)s+=t[a>>>o-5&31],o-=5;if(o>0&&(s+=t[a<<5-o&31]),i)for(;s.length%8!=0;)s+="=";return s}e.exports=function(e){return{encode:t=>r("string"==typeof t?Uint8Array.from(t):t,e),decode(t){for(const n of t)if(e.indexOf(n)<0)throw new Error("invalid base32 character");return function(e,t){const n=(e=e.replace(new RegExp("=","g"),"")).length;let r=0,i=0,o=0;const a=new Uint8Array(5*n/8|0);for(let s=0;s<n;s++)i=i<<5|t.indexOf(e[s]),r+=5,r>=8&&(a[o++]=i>>>r-8&255,r-=8);return a.buffer}(t,e)}}}},function(e,t,n){"use strict";const{Buffer:r}=n(2);e.exports=function(e){const t=e.indexOf("=")>-1,n=e.indexOf("-")>-1&&e.indexOf("_")>-1;return{encode(e){let i="";i="string"==typeof e?r.from(e).toString("base64"):e.toString("base64"),n&&(i=i.replace(/\+/g,"-").replace(/\//g,"_"));const o=i.indexOf("=");return o>0&&!t&&(i=i.substring(0,o)),i},decode(t){for(const n of t)if(e.indexOf(n)<0)throw new Error("invalid base64 character");return r.from(t,"base64")}}}},function(e,t,n){"use strict";const{Buffer:r}=n(2),i=n(853),o=n(1184),a=n(1185),s=n(970);(t=e.exports).addPrefix=(e,t)=>{let n;if(r.isBuffer(e))n=s.varintBufferEncode(e);else{if(!a[e])throw new Error("multicodec not recognized");n=a[e]}return r.concat([n,t])},t.rmPrefix=e=>(i.decode(e),e.slice(i.decode.bytes)),t.getCodec=e=>{const t=i.decode(e),n=o.get(t);if(void 0===n)throw new Error(`Code ${t} not found`);return n},t.getName=e=>o.get(e),t.getNumber=e=>{const t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return s.varintBufferDecode(t)[0]},t.getCode=e=>i.decode(e),t.getCodeVarint=e=>{const t=a[e];if(void 0===t)throw new Error("Codec `"+e+"` not found");return t},t.getVarint=e=>i.encode(e);const c=n(1186);Object.assign(t,c),t.print=n(1187)},function(e,t,n){"use strict";const r=n(854),i=new Map;for(const e in r){const t=r[e];i.set(t,e)}e.exports=Object.freeze(i)},function(e,t,n){"use strict";const r=n(854),i=n(970).varintEncode,o={};for(const e in r){const t=r[e];o[e]=i(t)}e.exports=Object.freeze(o)},function(e,t,n){"use strict";const r=n(854),i={};for(const[e,t]of Object.entries(r))i[e.toUpperCase().replace(/-/g,"_")]=t;e.exports=Object.freeze(i)},function(e,t,n){"use strict";const r=n(854),i={};for(const[e,t]of Object.entries(r))void 0===i[t]&&(i[t]=e);e.exports=Object.freeze(i)},function(e,t,n){"use strict";const r=n(905),{Buffer:i}=n(2);var o={checkCIDComponents:function(e){if(null==e)return"null values are not valid CIDs";if(0!==e.version&&1!==e.version)return"Invalid version, must be a number equal to 1 or 0";if("string"!=typeof e.codec)return"codec must be string";if(0===e.version){if("dag-pb"!==e.codec)return"codec must be 'dag-pb' for CIDv0";if("base58btc"!==e.multibaseName)return"multibaseName must be 'base58btc' for CIDv0"}if(!i.isBuffer(e.multihash))return"multihash must be a Buffer";try{r.validate(e.multihash)}catch(e){let t=e.message;return t||(t="Multihash validation failed"),t}}};e.exports=o},function(e,t,n){"use strict";e.exports=function(e,{className:t,symbolName:n}){const r=Symbol.for(n),i={[t]:class extends e{constructor(...e){super(...e),Object.defineProperty(this,r,{value:!0})}get[Symbol.toStringTag](){return t}}}[t];return i["is"+t]=e=>!(!e||!e[r]),i},e.exports.proto=function(e,{className:t,symbolName:n,withoutNew:r}){const i=Symbol.for(n),o={[t]:function(...t){if(r&&!(this instanceof o))return new o(...t);const n=e.call(this,...t)||this;return n&&!n[i]&&Object.defineProperty(n,i,{value:!0}),n}}[t];return o.prototype=Object.create(e.prototype),o.prototype.constructor=o,Object.defineProperty(o.prototype,Symbol.toStringTag,{get:()=>t}),o["is"+t]=e=>!(!e||!e[i]),o}},function(e,t,n){const r=n(969);t.cidV0ToV1Base32=e=>{let t=new r(e);return 0===t.version&&(t=t.toV1()),t.toString("base32")}},function(e,t,n){"use strict";(function(t,r){var i=n(147),o=n(444),a=n(451),s=n(1192),c=n(902),l=n(972),u=n(906),f=n(72),d=n(410),p=n(1195),h=n(213),m=n(145),b=n(1198).Transaction,y=n(978).default,g=function(e){return i.isUndefined(e)||i.isNull(e)},v=function(){var e=this;o.packageInit(this,arguments),delete this.BatchRequest,delete this.extend;var t=[new a({name:"getNetworkId",call:"net_version",params:0,outputFormatter:parseInt}),new a({name:"getChainId",call:"eth_chainId",params:0,outputFormatter:h.hexToNumber}),new a({name:"getGasPrice",call:"eth_gasPrice",params:0}),new a({name:"getTransactionCount",call:"eth_getTransactionCount",params:2,inputFormatter:[function(e){if(h.isAddress(e))return e;throw new Error("Address "+e+' is not a valid address to get the "transactionCount".')},function(){return"latest"}]})];this._ethereumCall={},i.each(t,(function(t){t.attachToObject(e._ethereumCall),t.setRequestManager(e._requestManager)})),this.wallet=new w(this)};function w(e){this._accounts=e,this.length=0,this.defaultKeyName="web3js_wallet"}v.prototype._addAccountFunctions=function(e){var t=this;return e.signTransaction=function(n,r){return t.signTransaction(n,e.privateKey,r)},e.sign=function(n){return t.sign(n,e.privateKey)},e.encrypt=function(n,r){return t.encrypt(e.privateKey,n,r)},e},v.prototype.create=function(e){return this._addAccountFunctions(s.create(e||h.randomHex(32)))},v.prototype.privateKeyToAccount=function(e,t){if(e.startsWith("0x")||(e="0x"+e),!t&&66!==e.length)throw new Error("Private key must be 32 bytes long");return this._addAccountFunctions(s.fromPrivate(e))},v.prototype.signTransaction=function(e,t,n){var o=!1,a={},s=!(!e||!(e.chain&&e.hardfork||e.common));if(n=n||function(){},!e)return o=new Error("No transaction object given!"),n(o),Promise.reject(o);function c(e){const o=function(e){if(e.common&&e.chain&&e.hardfork)return new Error("Please provide the ethereumjs-common object or the chain and hardfork property but not all together.");if(e.chain&&!e.hardfork||e.hardfork&&!e.chain)return new Error('When specifying chain and hardfork, both values must be defined. Received "chain": '+e.chain+', "hardfork": '+e.hardfork);if(!e.gas&&!e.gasLimit)return new Error('"gas" is missing');if(e.nonce<0||e.gas<0||e.gasPrice<0||e.chainId<0)return new Error("Gas, gasPrice, nonce or chainId is lower than 0");return}(e);if(o)return n(o),Promise.reject(o);try{var c=m.formatters.inputCallFormatter(i.clone(e));c.to=c.to||"0x",c.data=c.data||"0x",c.value=c.value||"0x",c.chainId=h.numberToHex(c.chainId),s?(c.common&&(a.common=y.forCustomChain(c.common.baseChain||"mainnet",{name:c.common.customChain.name||"custom-network",networkId:c.common.customChain.networkId,chainId:c.common.customChain.chainId},c.common.hardfork||"petersburg"),delete c.common),c.chain&&(a.chain=c.chain,delete c.chain),c.hardfork&&(a.hardfork=c.hardfork,delete c.hardfork)):(a.common=y.forCustomChain("mainnet",{name:"custom-network",networkId:c.networkId,chainId:c.chainId},"petersburg"),delete c.networkId),t.startsWith("0x")&&(t=t.substring(2));var l=new b(c,a);l.sign(r.from(t,"hex"));var u=l.validate(!0);if(""!==u)throw new Error("Signer Error: "+u);var f="0x"+l.serialize().toString("hex"),d=h.keccak256(f),p={messageHash:"0x"+r.from(l.hash(!1)).toString("hex"),v:"0x"+r.from(l.v).toString("hex"),r:"0x"+r.from(l.r).toString("hex"),s:"0x"+r.from(l.s).toString("hex"),rawTransaction:f,transactionHash:d};return n(null,p),p}catch(e){return n(e),Promise.reject(e)}}return void 0!==e.nonce&&void 0!==e.chainId&&void 0!==e.gasPrice&&s?Promise.resolve(c(e)):Promise.all([g(e.chainId)?this._ethereumCall.getChainId():e.chainId,g(e.gasPrice)?this._ethereumCall.getGasPrice():e.gasPrice,g(e.nonce)?this._ethereumCall.getTransactionCount(this.privateKeyToAccount(t).address):e.nonce,g(s)?this._ethereumCall.getNetworkId():1]).then((function(t){if(g(t[0])||g(t[1])||g(t[2])||g(t[3]))throw new Error('One of the values "chainId", "networkId", "gasPrice", or "nonce" couldn\'t be fetched: '+JSON.stringify(t));return c(i.extend(e,{chainId:t[0],gasPrice:t[1],nonce:t[2],networkId:t[3]}))}))},v.prototype.recoverTransaction=function(e){var t=l.decode(e),n=s.encodeSignature(t.slice(6,9)),r=u.toNumber(t[6]),i=r<35?[]:[u.fromNumber(r-35>>1),"0x","0x"],o=t.slice(0,6).concat(i),a=l.encode(o);return s.recover(c.keccak256(a),n)},v.prototype.hashMessage=function(e){var t=h.isHexStrict(e)?e:h.utf8ToHex(e),n=h.hexToBytes(t),i=r.from(n),o="\19Ethereum Signed Message:\n"+n.length,a=r.from(o),s=r.concat([a,i]);return c.keccak256s(s)},v.prototype.sign=function(e,t){if(t.startsWith("0x")||(t="0x"+t),66!==t.length)throw new Error("Private key must be 32 bytes long");var n=this.hashMessage(e),r=s.sign(n,t),i=s.decodeSignature(r);return{message:e,messageHash:n,v:i[0],r:i[1],s:i[2],signature:r}},v.prototype.recover=function(e,t,n){var r=[].slice.apply(arguments);return i.isObject(e)?this.recover(e.messageHash,s.encodeSignature([e.v,e.r,e.s]),!0):(n||(e=this.hashMessage(e)),r.length>=4?(n=r.slice(-1)[0],n=!!i.isBoolean(n)&&!!n,this.recover(e,s.encodeSignature(r.slice(1,4)),n)):s.recover(e,t))},v.prototype.decrypt=function(e,t,n){if(!i.isString(t))throw new Error("No password given.");var o,a,s=i.isObject(e)?e:JSON.parse(n?e.toLowerCase():e);if(3!==s.version)throw new Error("Not a valid V3 wallet");if("scrypt"===s.crypto.kdf)a=s.crypto.kdfparams,o=d.syncScrypt(r.from(t),r.from(a.salt,"hex"),a.n,a.r,a.p,a.dklen);else{if("pbkdf2"!==s.crypto.kdf)throw new Error("Unsupported key derivation scheme");if("hmac-sha256"!==(a=s.crypto.kdfparams).prf)throw new Error("Unsupported parameters to PBKDF2");o=f.pbkdf2Sync(r.from(t),r.from(a.salt,"hex"),a.c,a.dklen,"sha256")}var c=r.from(s.crypto.ciphertext,"hex");if(h.sha3(r.from([...o.slice(16,32),...c])).replace("0x","")!==s.crypto.mac)throw new Error("Key derivation failed - possibly wrong password");var l=f.createDecipheriv(s.crypto.cipher,o.slice(0,16),r.from(s.crypto.cipherparams.iv,"hex")),u="0x"+r.from([...l.update(c),...l.final()]).toString("hex");return this.privateKeyToAccount(u,!0)},v.prototype.encrypt=function(e,t,n){var i,o=this.privateKeyToAccount(e,!0),a=(n=n||{}).salt||f.randomBytes(32),s=n.iv||f.randomBytes(16),c=n.kdf||"scrypt",l={dklen:n.dklen||32,salt:a.toString("hex")};if("pbkdf2"===c)l.c=n.c||262144,l.prf="hmac-sha256",i=f.pbkdf2Sync(r.from(t),r.from(l.salt,"hex"),l.c,l.dklen,"sha256");else{if("scrypt"!==c)throw new Error("Unsupported kdf");l.n=n.n||8192,l.r=n.r||8,l.p=n.p||1,i=d.syncScrypt(r.from(t),r.from(l.salt,"hex"),l.n,l.r,l.p,l.dklen)}var u=f.createCipheriv(n.cipher||"aes-128-ctr",i.slice(0,16),s);if(!u)throw new Error("Unsupported cipher");var m=r.from([...u.update(r.from(o.privateKey.replace("0x",""),"hex")),...u.final()]),b=h.sha3(r.from([...i.slice(16,32),...m])).replace("0x","");return{version:3,id:p.v4({random:n.uuid||f.randomBytes(16)}),address:o.address.toLowerCase().replace("0x",""),crypto:{ciphertext:m.toString("hex"),cipherparams:{iv:s.toString("hex")},cipher:n.cipher||"aes-128-ctr",kdf:c,kdfparams:l,mac:b.toString("hex")}}},w.prototype._findSafeIndex=function(e){return e=e||0,i.has(this,e)?this._findSafeIndex(e+1):e},w.prototype._currentIndexes=function(){return Object.keys(this).map((function(e){return parseInt(e)})).filter((function(e){return e<9e20}))},w.prototype.create=function(e,t){for(var n=0;n<e;++n)this.add(this._accounts.create(t).privateKey);return this},w.prototype.add=function(e){return i.isString(e)&&(e=this._accounts.privateKeyToAccount(e)),this[e.address]?this[e.address]:((e=this._accounts.privateKeyToAccount(e.privateKey)).index=this._findSafeIndex(),this[e.index]=e,this[e.address]=e,this[e.address.toLowerCase()]=e,this.length++,e)},w.prototype.remove=function(e){var t=this[e];return!(!t||!t.address)&&(this[t.address].privateKey=null,delete this[t.address],this[t.address.toLowerCase()].privateKey=null,delete this[t.address.toLowerCase()],this[t.index].privateKey=null,delete this[t.index],this.length--,!0)},w.prototype.clear=function(){var e=this;return this._currentIndexes().forEach((function(t){e.remove(t)})),this},w.prototype.encrypt=function(e,t){var n=this;return this._currentIndexes().map((function(r){return n[r].encrypt(e,t)}))},w.prototype.decrypt=function(e,t){var n=this;return e.forEach((function(e){var r=n._accounts.decrypt(e,t);if(!r)throw new Error("Couldn't decrypt accounts. Password wrong?");n.add(r)})),this},w.prototype.save=function(e,t){return localStorage.setItem(t||this.defaultKeyName,JSON.stringify(this.encrypt(e))),!0},w.prototype.load=function(e,t){var n=localStorage.getItem(t||this.defaultKeyName);if(n)try{n=JSON.parse(n)}catch(e){}return this.decrypt(n||[],e)},function(e){var t;try{t=window[e];var n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(e){return e&&(22===e.code||1014===e.code||"QuotaExceededError"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&t&&0!==t.length}}("localStorage")||(delete w.prototype.save,delete w.prototype.load),e.exports=v}).call(this,n(12),n(2).Buffer)},function(e,t,n){(function(t){const r=n(906),i=n(1194),o=n(45),a=(n(972),new o.ec("secp256k1")),{keccak256:s,keccak256s:c}=n(902),l=e=>{const t=c(e.slice(2));let n="0x";for(let r=0;r<40;r++)n+=parseInt(t[r+2],16)>7?e[r+2].toUpperCase():e[r+2];return n},u=e=>{const n=new t(e.slice(2),"hex"),r="0x"+a.keyFromPrivate(n).getPublic(!1,"hex").slice(2),i=s(r);return{address:l("0x"+i.slice(-40)),privateKey:e}},f=([e,t,n])=>r.flatten([t,n,e]),d=e=>[r.slice(64,r.length(e),e),r.slice(0,32,e),r.slice(32,64,e)],p=e=>(n,o)=>{const s=a.keyFromPrivate(new t(o.slice(2),"hex")).sign(new t(n.slice(2),"hex"),{canonical:!0});return f([i.fromString(r.fromNumber(e+s.recoveryParam)),r.pad(32,r.fromNat("0x"+s.r.toString(16))),r.pad(32,r.fromNat("0x"+s.s.toString(16)))])},h=p(27);e.exports={create:e=>{const t=s(r.concat(r.random(32),e||r.random(32))),n=r.concat(r.concat(r.random(32),t),r.random(32)),i=s(n);return u(i)},toChecksum:l,fromPrivate:u,sign:h,makeSigner:p,recover:(e,n)=>{const i=d(n),o={v:r.toNumber(i[0]),r:i[1].slice(2),s:i[2].slice(2)},c="0x"+a.recoverPubKey(new t(e.slice(2),"hex"),o,o.v<2?o.v:1-o.v%2).encode("hex",!1).slice(2),u=s(c);return l("0x"+u.slice(-40))},encodeSignature:f,decodeSignature:d}}).call(this,n(2).Buffer)},function(e,t){const n=(e,t)=>{let n=[];for(var r=0;r<e;++r)n.push(t(r));return n};e.exports={generate:n,replicate:(e,t)=>n(e,()=>t),concat:(e,t)=>e.concat(t),flatten:e=>{let t=[];for(let n=0,r=e.length;n<r;++n)for(let r=0,i=e[n].length;r<i;++r)t.push(e[n][r]);return t},chunksOf:(e,t)=>{let n=[];for(let r=0,i=t.length;r<i;r+=e)n.push(t.slice(r,r+e));return n}}},function(e,t,n){const r=n(6),i=n(906),o=e=>new r(e.slice(2),16),a=e=>{const t="0x"+("0x"===e.slice(0,2)?new r(e.slice(2),16):new r(e,10)).toString("hex");return"0x0"===t?"0x":t},s=e=>"string"==typeof e?/^0x/.test(e)?e:"0x"+e:"0x"+new r(e).toString("hex"),c=e=>o(e).toNumber(),l=e=>(t,n)=>"0x"+o(t)[e](o(n)).toString("hex"),u=l("add"),f=l("mul"),d=l("div"),p=l("sub");e.exports={toString:e=>o(e).toString(10),fromString:a,toNumber:c,fromNumber:s,toEther:e=>c(d(e,a("10000000000")))/1e8,fromEther:e=>f(s(Math.floor(1e8*e)),a("10000000000")),toUint256:e=>i.pad(32,e),add:u,mul:f,div:d,sub:p}},function(e,t,n){var r=n(1196),i=n(1197),o=i;o.v1=r,o.v4=i,e.exports=o},function(e,t,n){var r,i,o=n(973),a=n(974),s=0,c=0;e.exports=function(e,t,n){var l=t&&n||0,u=t||[],f=(e=e||{}).node||r,d=void 0!==e.clockseq?e.clockseq:i;if(null==f||null==d){var p=o();null==f&&(f=r=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=i=16383&(p[6]<<8|p[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:c+1,b=h-s+(m-c)/1e4;if(b<0&&void 0===e.clockseq&&(d=d+1&16383),(b<0||h>s)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=h,c=m,i=d;var y=(1e4*(268435455&(h+=122192928e5))+m)%4294967296;u[l++]=y>>>24&255,u[l++]=y>>>16&255,u[l++]=y>>>8&255,u[l++]=255&y;var g=h/4294967296*1e4&268435455;u[l++]=g>>>8&255,u[l++]=255&g,u[l++]=g>>>24&15|16,u[l++]=g>>>16&255,u[l++]=d>>>8|128,u[l++]=255&d;for(var v=0;v<6;++v)u[l+v]=f[v];return t||a(u)}},function(e,t,n){var r=n(973),i=n(974);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(975);t.Transaction=r.default;var i=n(1232);t.FakeTransaction=i.default},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(398),a=n(1200);t.createPrivateKey=function(){return r(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return[4,a.getRandomBytes(32)];case 1:return e=t.sent(),o.privateKeyVerify(e)?[2,e]:[3,0];case 2:return[2]}}))}))},t.createPrivateKeySync=function(){for(;;){var e=a.getRandomBytesSync(32);if(o.privateKeyVerify(e))return e}},function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(398))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(62);t.getRandomBytes=function(e){return new Promise((function(t,n){r(e,(function(e,r){e?n(e):t(r)}))}))},t.getRandomBytesSync=function(e){return r(e)}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),i=new(0,n(45).ec)("secp256k1"),o=i.curve;t.privateKeyExport=function(e,t){void 0===t&&(t=!0);var n=new r(e);if(n.ucmp(o.n)>=0)throw new Error("couldn't export to DER format");var s=i.g.mul(n);return a(s.getX(),s.getY(),t)},t.privateKeyModInverse=function(t){var n=new r(t);if(n.ucmp(o.n)>=0||n.isZero())throw new Error("private key range is invalid");return n.invm(o.n).toArrayLike(e,"be",32)},t.signatureImport=function(t){var n=new r(t.r);n.ucmp(o.n)>=0&&(n=new r(0));var i=new r(t.s);return i.ucmp(o.n)>=0&&(i=new r(0)),e.concat([n.toArrayLike(e,"be",32),i.toArrayLike(e,"be",32)])},t.ecdhUnsafe=function(e,t,n){void 0===n&&(n=!0);var s=i.keyFromPublic(e),c=new r(t);if(c.ucmp(o.n)>=0||c.isZero())throw new Error("scalar was invalid (zero or overflow)");var l=s.pub.mul(c);return a(l.getX(),l.getY(),n)};var a=function(t,n,r){var i;return r?((i=e.alloc(33))[0]=n.isOdd()?3:2,t.toArrayLike(e,"be",32).copy(i,1)):((i=e.alloc(65))[0]=4,t.toArrayLike(e,"be",32).copy(i,1),n.toArrayLike(e,"be",32).copy(i,33)),i}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=e.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),r=e.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(t,i,o){void 0===o&&(o=!0);var a=e.from(o?n:r);return t.copy(a,o?8:9),i.copy(a,o?181:214),a},t.privateKeyImport=function(e){var t=e.length,n=0;if(t<n+1||48!==e[n])return null;if(t<(n+=1)+1||!(128&e[n]))return null;var r=127&e[n];if(r<1||r>2)return null;if(t<(n+=1)+r)return null;var i=e[n+r-1]|(r>1?e[n+r-2]<<8:0);return t<(n+=r)+i||t<n+3||2!==e[n]||1!==e[n+1]||1!==e[n+2]||t<(n+=3)+2||4!==e[n]||e[n+1]>32||t<n+2+e[n+1]?null:e.slice(n+2,n+2+e[n+1])},t.signatureImportLax=function(t){var n=e.alloc(32,0),r=e.alloc(32,0),i=t.length,o=0;if(48!==t[o++])return null;var a=t[o++];if(128&a&&(o+=a-128)>i)return null;if(2!==t[o++])return null;var s=t[o++];if(128&s){if(o+(a=s-128)>i)return null;for(;a>0&&0===t[o];o+=1,a-=1);for(s=0;a>0;o+=1,a-=1)s=(s<<8)+t[o]}if(s>i-o)return null;var c=o;if(o+=s,2!==t[o++])return null;var l=t[o++];if(128&l){if(o+(a=l-128)>i)return null;for(;a>0&&0===t[o];o+=1,a-=1);for(l=0;a>0;o+=1,a-=1)l=(l<<8)+t[o]}if(l>i-o)return null;var u=o;for(o+=l;s>0&&0===t[c];s-=1,c+=1);if(s>32)return null;var f=t.slice(c,c+s);for(f.copy(n,32-f.length);l>0&&0===t[u];l-=1,u+=1);if(l>32)return null;var d=t.slice(u,u+l);return d.copy(r,32-d.length),{r:n,s:r}}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=void 0;var r=n(6);t.MAX_INTEGER=new r("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new r("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=e.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=e.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=e.from(t.KECCAK256_RLP_S,"hex")}).call(this,n(2).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.importPublic=t.privateToPublic=t.privateToAddress=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.isPrecompiled=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isZeroAddress=t.isValidAddress=t.zeroAddress=void 0;var r=n(977),i=n(855),o=n(907),a=n(6),s=n(856),c=n(909);t.zeroAddress=function(){var e=s.zeros(20);return s.bufferToHex(e)},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},t.isZeroAddress=function(e){return t.zeroAddress()===s.addHexPrefix(e)},t.toChecksumAddress=function(e,t){e=i.stripHexPrefix(e).toLowerCase();for(var n=void 0!==t?t.toString()+"0x":"",r=c.keccak(n+e).toString("hex"),o="0x",a=0;a<e.length;a++)parseInt(r[a],16)>=8?o+=e[a].toUpperCase():o+=e[a];return o},t.isValidChecksumAddress=function(e,n){return t.isValidAddress(e)&&t.toChecksumAddress(e,n)===e},t.generateAddress=function(t,n){t=s.toBuffer(t);var r=new a(n);return r.isZero()?c.rlphash([t,null]).slice(-20):c.rlphash([t,e.from(r.toArray())]).slice(-20)},t.generateAddress2=function(t,n,i){var o=s.toBuffer(t),a=s.toBuffer(n),l=s.toBuffer(i);return r(20===o.length),r(32===a.length),c.keccak256(e.concat([e.from("ff","hex"),o,a,c.keccak256(l)])).slice(-20)},t.isPrecompiled=function(e){var t=s.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},t.isValidPrivate=function(e){return o.privateKeyVerify(e)},t.isValidPublic=function(t,n){return void 0===n&&(n=!1),64===t.length?o.publicKeyVerify(e.concat([e.from([4]),t])):!!n&&o.publicKeyVerify(t)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=s.toBuffer(e),t&&64!==e.length&&(e=o.publicKeyConvert(e,!1).slice(1)),r(64===e.length),c.keccak(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToAddress=function(e){return t.publicToAddress(t.privateToPublic(e))},t.privateToPublic=function(e){return e=s.toBuffer(e),o.publicKeyCreate(e,!1).slice(1)},t.importPublic=function(e){return 64!==(e=s.toBuffer(e)).length&&(e=o.publicKeyConvert(e,!1).slice(1)),e}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1206),i=n(1207);t.keccak224=r.createHashFunction((function(){return i("keccak224")})),t.keccak256=r.createHashFunction((function(){return i("keccak256")})),t.keccak384=r.createHashFunction((function(){return i("keccak384")})),t.keccak512=r.createHashFunction((function(){return i("keccak512")}))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(t){return function(n){var r=t();return r.update(n),e.from(r.digest())}}}).call(this,n(2).Buffer)},function(e,t,n){e.exports=n(1208)(n(1211))},function(e,t,n){const r=n(1209),i=n(1210);e.exports=function(e){const t=r(e),n=i(e);return function(e,r){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,r);case"keccak256":return new t(1088,512,null,256,r);case"keccak384":return new t(832,768,null,384,r);case"keccak512":return new t(576,1024,null,512,r);case"sha3-224":return new t(1152,448,6,224,r);case"sha3-256":return new t(1088,512,6,256,r);case"sha3-384":return new t(832,768,6,384,r);case"sha3-512":return new t(576,1024,6,512,r);case"shake128":return new n(1344,256,31,r);case"shake256":return new n(1088,512,31,r);default:throw new Error("Invald algorithm: "+e)}}}},function(e,t,n){(function(t){const{Transform:r}=n(397);e.exports=e=>class n extends r{constructor(t,n,r,i,o){super(o),this._rate=t,this._capacity=n,this._delimitedSuffix=r,this._hashBitLength=i,this._options=o,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let r=null;try{this.update(e,t)}catch(e){r=e}n(r)}_flush(e){let t=null;try{this.push(this.digest())}catch(e){t=e}e(t)}update(e,n){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");return t.isBuffer(e)||(e=t.from(e,n)),this._state.absorb(e),this}digest(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new n(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}}).call(this,n(2).Buffer)},function(e,t,n){(function(t){const{Transform:r}=n(397);e.exports=e=>class n extends r{constructor(t,n,r,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=r,this._options=i,this._state=new e,this._state.initialize(t,n),this._finalized=!1}_transform(e,t,n){let r=null;try{this.update(e,t)}catch(e){r=e}n(r)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,n){if(!t.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return t.isBuffer(e)||(e=t.from(e,n)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(e);return void 0!==t&&(n=n.toString(t)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new n(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}}).call(this,n(2).Buffer)},function(e,t,n){(function(t){const r=n(1212);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(e,t){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(r.p1600(this.state),this.count=0)},i.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,0!=(128&e)&&this.count===this.blockSize-1&&r.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,r.p1600(this.state),this.count=0,this.squeezing=!0},i.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const n=t.alloc(e);for(let t=0;t<e;++t)n[t]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(r.p1600(this.state),this.count=0);return n},i.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i}).call(this,n(2).Buffer)},function(e,t){const n=[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];t.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],i=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],s=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],u=e[7]^e[17]^e[27]^e[37]^e[47],f=e[8]^e[18]^e[28]^e[38]^e[48],d=e[9]^e[19]^e[29]^e[39]^e[49];let p=f^(o<<1|a>>>31),h=d^(a<<1|o>>>31);const m=e[0]^p,b=e[1]^h,y=e[10]^p,g=e[11]^h,v=e[20]^p,w=e[21]^h,_=e[30]^p,k=e[31]^h,x=e[40]^p,S=e[41]^h;p=r^(s<<1|c>>>31),h=i^(c<<1|s>>>31);const O=e[2]^p,E=e[3]^h,T=e[12]^p,A=e[13]^h,M=e[22]^p,I=e[23]^h,P=e[32]^p,C=e[33]^h,j=e[42]^p,D=e[43]^h;p=o^(l<<1|u>>>31),h=a^(u<<1|l>>>31);const R=e[4]^p,N=e[5]^h,B=e[14]^p,L=e[15]^h,U=e[24]^p,F=e[25]^h,q=e[34]^p,z=e[35]^h,V=e[44]^p,H=e[45]^h;p=s^(f<<1|d>>>31),h=c^(d<<1|f>>>31);const $=e[6]^p,K=e[7]^h,W=e[16]^p,G=e[17]^h,J=e[26]^p,Q=e[27]^h,Y=e[36]^p,Z=e[37]^h,X=e[46]^p,ee=e[47]^h;p=l^(r<<1|i>>>31),h=u^(i<<1|r>>>31);const te=e[8]^p,ne=e[9]^h,re=e[18]^p,ie=e[19]^h,oe=e[28]^p,ae=e[29]^h,se=e[38]^p,ce=e[39]^h,le=e[48]^p,ue=e[49]^h,fe=m,de=b,pe=g<<4|y>>>28,he=y<<4|g>>>28,me=v<<3|w>>>29,be=w<<3|v>>>29,ye=k<<9|_>>>23,ge=_<<9|k>>>23,ve=x<<18|S>>>14,we=S<<18|x>>>14,_e=O<<1|E>>>31,ke=E<<1|O>>>31,xe=A<<12|T>>>20,Se=T<<12|A>>>20,Oe=M<<10|I>>>22,Ee=I<<10|M>>>22,Te=C<<13|P>>>19,Ae=P<<13|C>>>19,Me=j<<2|D>>>30,Ie=D<<2|j>>>30,Pe=N<<30|R>>>2,Ce=R<<30|N>>>2,je=B<<6|L>>>26,De=L<<6|B>>>26,Re=F<<11|U>>>21,Ne=U<<11|F>>>21,Be=q<<15|z>>>17,Le=z<<15|q>>>17,Ue=H<<29|V>>>3,Fe=V<<29|H>>>3,qe=$<<28|K>>>4,ze=K<<28|$>>>4,Ve=G<<23|W>>>9,He=W<<23|G>>>9,$e=J<<25|Q>>>7,Ke=Q<<25|J>>>7,We=Y<<21|Z>>>11,Ge=Z<<21|Y>>>11,Je=ee<<24|X>>>8,Qe=X<<24|ee>>>8,Ye=te<<27|ne>>>5,Ze=ne<<27|te>>>5,Xe=re<<20|ie>>>12,et=ie<<20|re>>>12,tt=ae<<7|oe>>>25,nt=oe<<7|ae>>>25,rt=se<<8|ce>>>24,it=ce<<8|se>>>24,ot=le<<14|ue>>>18,at=ue<<14|le>>>18;e[0]=fe^~xe&Re,e[1]=de^~Se&Ne,e[10]=qe^~Xe&me,e[11]=ze^~et&be,e[20]=_e^~je&$e,e[21]=ke^~De&Ke,e[30]=Ye^~pe&Oe,e[31]=Ze^~he&Ee,e[40]=Pe^~Ve&tt,e[41]=Ce^~He&nt,e[2]=xe^~Re&We,e[3]=Se^~Ne&Ge,e[12]=Xe^~me&Te,e[13]=et^~be&Ae,e[22]=je^~$e&rt,e[23]=De^~Ke&it,e[32]=pe^~Oe&Be,e[33]=he^~Ee&Le,e[42]=Ve^~tt&ye,e[43]=He^~nt&ge,e[4]=Re^~We&ot,e[5]=Ne^~Ge&at,e[14]=me^~Te&Ue,e[15]=be^~Ae&Fe,e[24]=$e^~rt&ve,e[25]=Ke^~it&we,e[34]=Oe^~Be&Je,e[35]=Ee^~Le&Qe,e[44]=tt^~ye&Me,e[45]=nt^~ge&Ie,e[6]=We^~ot&fe,e[7]=Ge^~at&de,e[16]=Te^~Ue&qe,e[17]=Ae^~Fe&ze,e[26]=rt^~ve&_e,e[27]=it^~we&ke,e[36]=Be^~Je&Ye,e[37]=Le^~Qe&Ze,e[46]=ye^~Me&Pe,e[47]=ge^~Ie&Ce,e[8]=ot^~fe&xe,e[9]=at^~de&Se,e[18]=Ue^~qe&Xe,e[19]=Fe^~ze&et,e[28]=ve^~_e&je,e[29]=we^~ke&De,e[38]=Je^~Ye&pe,e[39]=Qe^~Ze&he,e[48]=Me^~Pe&Ve,e[49]=Ie^~Ce&He,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var r=n(907),i=n(6),o=n(856),a=n(909);function s(e,t){return t?e-(2*t+35):e-27}function c(e){return 0===e||1===e}t.ecsign=function(e,t,n){var i=r.sign(e,t),o=i.recovery;return{r:i.signature.slice(0,32),s:i.signature.slice(32,64),v:n?o+(2*n+35):o+27}},t.ecrecover=function(t,n,i,a,l){var u=e.concat([o.setLength(i,32),o.setLength(a,32)],64),f=s(n,l);if(!c(f))throw new Error("Invalid signature v value");var d=r.recover(t,u,f);return r.publicKeyConvert(d,!1).slice(1)},t.toRpcSig=function(t,n,r,i){if(!c(s(t,i)))throw new Error("Invalid signature v value");return o.bufferToHex(e.concat([o.setLengthLeft(n,32),o.setLengthLeft(r,32),o.toBuffer(t)]))},t.fromRpcSig=function(e){var t=o.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var n=t[64];return n<27&&(n+=27),{v:n,r:t.slice(0,32),s:t.slice(32,64)}},t.isValidSignature=function(e,t,n,r,o){void 0===r&&(r=!0);var a=new i("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),l=new i("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==n.length)return!1;if(!c(s(e,o)))return!1;var u=new i(t),f=new i(n);return!(u.isZero()||u.gt(l)||f.isZero()||f.gt(l))&&(!r||1!==f.cmp(a))},t.hashPersonalMessage=function(t){var n=e.from("\19Ethereum Signed Message:\n"+t.length.toString(),"utf-8");return a.keccak(e.concat([n,t]))}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=void 0;var r=n(977),i=n(855),o=n(908),a=n(856);t.defineProperties=function(t,n,s){if(t.raw=[],t._fields=[],t.toJSON=function(e){if(void 0===e&&(e=!1),e){var n={};return t._fields.forEach((function(e){n[e]="0x"+t[e].toString("hex")})),n}return a.baToJSON(t.raw)},t.serialize=function(){return o.encode(t.raw)},n.forEach((function(n,i){function o(){return t.raw[i]}function s(o){"00"!==(o=a.toBuffer(o)).toString("hex")||n.allowZero||(o=e.allocUnsafe(0)),n.allowLess&&n.length?(o=a.stripZeros(o),r(n.length>=o.length,"The field "+n.name+" must not have more "+n.length+" bytes")):n.allowZero&&0===o.length||!n.length||r(n.length===o.length,"The field "+n.name+" must have byte length of "+n.length),t.raw[i]=o}t._fields.push(n.name),Object.defineProperty(t,n.name,{enumerable:!0,configurable:!0,get:o,set:s}),n.default&&(t[n.name]=n.default),n.alias&&Object.defineProperty(t,n.alias,{enumerable:!1,configurable:!0,set:s,get:o})})),s)if("string"==typeof s&&(s=e.from(i.stripHexPrefix(s),"hex")),e.isBuffer(s)&&(s=o.decode(s)),Array.isArray(s)){if(s.length>t._fields.length)throw new Error("wrong number of fields in data");s.forEach((function(e,n){t[t._fields[n]]=a.toBuffer(e)}))}else{if("object"!=typeof s)throw new Error("invalid data");var c=Object.keys(s);n.forEach((function(e){-1!==c.indexOf(e.name)&&(t[e.name]=s[e.name]),-1!==c.indexOf(e.alias)&&(t[e.alias]=s[e.alias])}))}}}).call(this,n(2).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chains=void 0,t.chains={names:{1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli"},mainnet:n(1216),ropsten:n(1217),rinkeby:n(1218),kovan:n(1219),goerli:n(1220)}},function(e){e.exports=JSON.parse('{"name":"mainnet","chainId":1,"networkId":1,"comment":"The Ethereum main chain","url":"https://ethstats.net/","genesis":{"hash":"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3","timestamp":null,"gasLimit":5000,"difficulty":17179869184,"nonce":"0x0000000000000042","extraData":"0x11bbe8db4e347b4e8c937c1c8370e4b5ed33adb3db69cbdb7a38e1e50b1b82fa","stateRoot":"0xd7f8974fb5ac78d9ac099b9ad5018bedc2ce0a72dad1827a1709da30580f0544"},"hardforks":[{"name":"chainstart","block":0,"consensus":"pow","finality":null},{"name":"homestead","block":1150000,"consensus":"pow","finality":null},{"name":"dao","block":1920000,"consensus":"pow","finality":null},{"name":"tangerineWhistle","block":2463000,"consensus":"pow","finality":null},{"name":"spuriousDragon","block":2675000,"consensus":"pow","finality":null},{"name":"byzantium","block":4370000,"consensus":"pow","finality":null},{"name":"constantinople","block":7280000,"consensus":"pow","finality":null},{"name":"petersburg","block":7280000,"consensus":"pow","finality":null},{"name":"istanbul","block":9069000,"consensus":"pow","finality":null},{"name":"muirGlacier","block":9200000,"consensus":"pow","finality":null}],"bootstrapNodes":[{"ip":"18.138.108.67","port":30303,"id":"d860a01f9722d78051619d1e2351aba3f43f943f6f00718d1b9baa4101932a1f5011f16bb2b1bb35db20d6fe28fa0bf09636d26a87d31de9ec6203eeedb1f666","location":"ap-southeast-1-001","comment":"bootnode-aws-ap-southeast-1-001"},{"ip":"3.209.45.79","port":30303,"id":"22a8232c3abc76a16ae9d6c3b164f98775fe226f0917b0ca871128a74a8e9630b458460865bab457221f1d448dd9791d24c4e5d88786180ac185df813a68d4de","location":"us-east-1-001","comment":"bootnode-aws-us-east-1-001"},{"ip":"34.255.23.113","port":30303,"id":"ca6de62fce278f96aea6ec5a2daadb877e51651247cb96ee310a318def462913b653963c155a0ef6c7d50048bba6e6cea881130857413d9f50a621546b590758","location":"eu-west-1-001","comment":"bootnode-aws-eu-west-1-001"},{"ip":"35.158.244.151","port":30303,"id":"279944d8dcd428dffaa7436f25ca0ca43ae19e7bcf94a8fb7d1641651f92d121e972ac2e8f381414b80cc8e5555811c2ec6e1a99bb009b3f53c4c69923e11bd8","location":"eu-central-1-001","comment":"bootnode-aws-eu-central-1-001"},{"ip":"52.187.207.27","port":30303,"id":"8499da03c47d637b20eee24eec3c356c9a2e6148d6fe25ca195c7949ab8ec2c03e3556126b0d7ed644675e78c4318b08691b7b57de10e5f0d40d05b09238fa0a","location":"australiaeast-001","comment":"bootnode-azure-australiaeast-001"},{"ip":"191.234.162.198","port":30303,"id":"103858bdb88756c71f15e9b5e09b56dc1be52f0a5021d46301dbbfb7e130029cc9d0d6f73f693bc29b665770fff7da4d34f3c6379fe12721b5d7a0bcb5ca1fc1","location":"brazilsouth-001","comment":"bootnode-azure-brazilsouth-001"},{"ip":"52.231.165.108","port":30303,"id":"715171f50508aba88aecd1250af392a45a330af91d7b90701c436b618c86aaa1589c9184561907bebbb56439b8f8787bc01f49a7c77276c58c1b09822d75e8e8","location":"koreasouth-001","comment":"bootnode-azure-koreasouth-001"},{"ip":"104.42.217.25","port":30303,"id":"5d6d7cd20d6da4bb83a1d28cadb5d409b64edf314c0335df658c1a54e32c7c4a7ab7823d57c39b6a757556e68ff1df17c748b698544a55cb488b52479a92b60f","location":"westus-001","comment":"bootnode-azure-westus-001"}]}')},function(e){e.exports=JSON.parse('{"name":"ropsten","chainId":3,"networkId":3,"comment":"PoW test network","url":"https://github.com/ethereum/ropsten","genesis":{"hash":"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d","timestamp":null,"gasLimit":16777216,"difficulty":1048576,"nonce":"0x0000000000000042","extraData":"0x3535353535353535353535353535353535353535353535353535353535353535","stateRoot":"0x217b0bbcfb72e2d57e28f33cb361b9983513177755dc3f33ce3e7022ed62b77b"},"hardforks":[{"name":"chainstart","block":0,"consensus":"pow","finality":null},{"name":"homestead","block":0,"consensus":"pow","finality":null},{"name":"dao","block":null,"consensus":"pow","finality":null},{"name":"tangerineWhistle","block":0,"consensus":"pow","finality":null},{"name":"spuriousDragon","block":10,"consensus":"pow","finality":null},{"name":"byzantium","block":1700000,"consensus":"pow","finality":null},{"name":"constantinople","block":4230000,"consensus":"pow","finality":null},{"name":"petersburg","block":4939394,"consensus":"pow","finality":null},{"name":"istanbul","block":6485846,"consensus":"pow","finality":null},{"name":"muirGlacier","block":7117117,"consensus":"pow","finality":null}],"bootstrapNodes":[{"ip":"52.176.7.10","port":30303,"id":"30b7ab30a01c124a6cceca36863ece12c4f5fa68e3ba9b0b51407ccc002eeed3b3102d20a88f1c1d3c3154e2449317b8ef95090e77b312d5cc39354f86d5d606","location":"","comment":"US-Azure geth"},{"ip":"52.176.100.77","port":30303,"id":"865a63255b3bb68023b6bffd5095118fcc13e79dcf014fe4e47e065c350c7cc72af2e53eff895f11ba1bbb6a2b33271c1116ee870f266618eadfc2e78aa7349c","location":"","comment":"US-Azure parity"},{"ip":"52.232.243.152","port":30303,"id":"6332792c4a00e3e4ee0926ed89e0d27ef985424d97b6a45bf0f23e51f0dcb5e66b875777506458aea7af6f9e4ffb69f43f3778ee73c81ed9d34c51c4b16b0b0f","location":"","comment":"Parity"},{"ip":"192.81.208.223","port":30303,"id":"94c15d1b9e2fe7ce56e458b9a3b672ef11894ddedd0c6f247e0f1d3487f52b66208fb4aeb8179fce6e3a749ea93ed147c37976d67af557508d199d9594c35f09","location":"","comment":"@gpip"}]}')},function(e){e.exports=JSON.parse('{"name":"rinkeby","chainId":4,"networkId":4,"comment":"PoA test network","url":"https://www.rinkeby.io","genesis":{"hash":"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177","timestamp":"0x58ee40ba","gasLimit":4700000,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x52657370656374206d7920617574686f7269746168207e452e436172746d616e42eb768f2244c8811c63729a21a3569731535f067ffc57839b00206d1ad20c69a1981b489f772031b279182d99e65703f0076e4812653aab85fca0f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x53580584816f617295ea26c0e17641e0120cab2f0a8ffb53a866fd53aa8e8c2d"},"hardforks":[{"name":"chainstart","block":0,"consensus":"poa","finality":null},{"name":"homestead","block":1,"consensus":"poa","finality":null},{"name":"dao","block":null,"consensus":"poa","finality":null},{"name":"tangerineWhistle","block":2,"consensus":"poa","finality":null},{"name":"spuriousDragon","block":3,"consensus":"poa","finality":null},{"name":"byzantium","block":1035301,"consensus":"poa","finality":null},{"name":"constantinople","block":3660663,"consensus":"poa","finality":null},{"name":"petersburg","block":4321234,"consensus":"poa","finality":null},{"name":"istanbul","block":5435345,"consensus":"poa","finality":null}],"bootstrapNodes":[{"ip":"52.169.42.101","port":30303,"id":"a24ac7c5484ef4ed0c5eb2d36620ba4e4aa13b8c84684e1b4aab0cebea2ae45cb4d375b77eab56516d34bfbd3c1a833fc51296ff084b770b94fb9028c4d25ccf","location":"","comment":"IE"},{"ip":"52.3.158.184","port":30303,"id":"343149e4feefa15d882d9fe4ac7d88f885bd05ebb735e547f12e12080a9fa07c8014ca6fd7f373123488102fe5e34111f8509cf0b7de3f5b44339c9f25e87cb8","location":"","comment":"INFURA"},{"ip":"159.89.28.211","port":30303,"id":"b6b28890b006743680c52e64e0d16db57f28124885595fa03a562be1d2bf0f3a1da297d56b13da25fb992888fd556d4c1a27b1f39d531bde7de1921c90061cc6","location":"","comment":"AKASHA"}]}')},function(e){e.exports=JSON.parse('{"name":"kovan","chainId":42,"networkId":42,"comment":"Parity PoA test network","url":"https://kovan-testnet.github.io/website/","genesis":{"hash":"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9","timestamp":null,"gasLimit":6000000,"difficulty":131072,"nonce":"0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","extraData":"0x","stateRoot":"0x2480155b48a1cea17d67dbfdfaafe821c1d19cdd478c5358e8ec56dec24502b2"},"hardforks":[{"name":"chainstart","block":0,"consensus":"poa","finality":null},{"name":"homestead","block":0,"consensus":"poa","finality":null},{"name":"dao","block":0,"consensus":"poa","finality":null},{"name":"tangerineWhistle","block":0,"consensus":"poa","finality":null},{"name":"spuriousDragon","block":0,"consensus":"poa","finality":null},{"name":"byzantium","block":5067000,"consensus":"poa","finality":null},{"name":"constantinople","block":9200000,"consensus":"poa","finality":null},{"name":"petersburg","block":10255201,"consensus":"poa","finality":null},{"name":"istanbul","block":14111141,"consensus":"poa","finality":null}],"bootstrapNodes":[{"ip":"116.203.116.241","port":30303,"id":"16898006ba2cd4fa8bf9a3dfe32684c178fa861df144bfc21fe800dc4838a03e342056951fa9fd533dcb0be1219e306106442ff2cf1f7e9f8faa5f2fc1a3aa45","location":"","comment":"1"},{"ip":"3.217.96.11","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"2"},{"ip":"108.61.170.124","port":30303,"id":"740e1c8ea64e71762c71a463a04e2046070a0c9394fcab5891d41301dc473c0cff00ebab5a9bc87fbcb610ab98ac18225ff897bc8b7b38def5975d5ceb0a7d7c","location":"","comment":"3"},{"ip":"157.230.31.163","port":30303,"id":"2909846f78c37510cc0e306f185323b83bb2209e5ff4fdd279d93c60e3f365e3c6e62ad1d2133ff11f9fd6d23ad9c3dad73bb974d53a22f7d1ac5b7dea79d0b0","location":"","comment":"4"}]}')},function(e){e.exports=JSON.parse('{"name":"goerli","chainId":5,"networkId":5,"comment":"Cross-client PoA test network","url":"https://github.com/goerli/testnet","genesis":{"hash":"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a","timestamp":"0x5c51a607","gasLimit":10485760,"difficulty":1,"nonce":"0x0000000000000000","extraData":"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","stateRoot":"0x5d6cded585e73c4e322c30c2f782a336316f17dd85a4863b9d838d2d4b8b3008"},"hardforks":[{"name":"chainstart","block":0,"consensus":"poa","finality":null},{"name":"homestead","block":0,"consensus":"poa","finality":null},{"name":"dao","block":0,"consensus":"poa","finality":null},{"name":"tangerineWhistle","block":0,"consensus":"poa","finality":null},{"name":"spuriousDragon","block":0,"consensus":"poa","finality":null},{"name":"byzantium","block":0,"consensus":"poa","finality":null},{"name":"constantinople","block":0,"consensus":"poa","finality":null},{"name":"petersburg","block":0,"consensus":"poa","finality":null},{"name":"istanbul","block":1561651,"consensus":"poa","finality":null}],"bootstrapNodes":[{"ip":"51.141.78.53","port":30303,"id":"011f758e6552d105183b1761c5e2dea0111bc20fd5f6422bc7f91e0fabbec9a6595caf6239b37feb773dddd3f87240d99d859431891e4a642cf2a0a9e6cbb98a","location":"","comment":"Upstream bootnode 1"},{"ip":"13.93.54.137","port":30303,"id":"176b9417f511d05b6b2cf3e34b756cf0a7096b3094572a8f6ef4cdcb9d1f9d00683bf0f83347eebdf3b81c3521c2332086d9592802230bf528eaf606a1d9677b","location":"","comment":"Upstream bootnode 2"},{"ip":"94.237.54.114","port":30313,"id":"46add44b9f13965f7b9875ac6b85f016f341012d84f975377573800a863526f4da19ae2c620ec73d11591fa9510e992ecc03ad0751f53cc02f7c7ed6d55c7291","location":"","comment":"Upstream bootnode 3"},{"ip":"52.64.155.147","port":30303,"id":"c1f8b7c2ac4453271fa07d8e9ecf9a2e8285aa0bd0c07df0131f47153306b0736fd3db8924e7a9bf0bed6b1d8d4f87362a71b033dc7c64547728d953e43e59b2","location":"","comment":"Upstream bootnode 4"},{"ip":"213.186.16.82","port":30303,"id":"f4a9c6ee28586009fb5a96c8af13a58ed6d8315a9eee4772212c1d4d9cebe5a8b8a78ea4434f318726317d04a3f531a1ef0420cf9752605a562cfe858c46e263","location":"","comment":"Upstream bootnode 5"},{"ip":"3.11.147.67","port":30303,"id":"a61215641fb8714a373c80edbfa0ea8878243193f57c96eeb44d0bc019ef295abd4e044fd619bfc4c59731a73fb79afe84e9ab6da0c743ceb479cbb6d263fa91","location":"","comment":"Ethereum Foundation bootnode"}]}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hardforks=void 0,t.hardforks=[["chainstart",n(1222)],["homestead",n(1223)],["dao",n(1224)],["tangerineWhistle",n(1225)],["spuriousDragon",n(1226)],["byzantium",n(1227)],["constantinople",n(1228)],["petersburg",n(1229)],["istanbul",n(1230)],["muirGlacier",n(1231)]]},function(e){e.exports=JSON.parse('{"name":"chainstart","comment":"Start of the Ethereum main chain","eip":{"url":"","status":""},"status":"","gasConfig":{"minGasLimit":{"v":5000,"d":"Minimum the gas limit may ever be"},"gasLimitBoundDivisor":{"v":1024,"d":"The bound divisor of the gas limit, used in update calculations"}},"gasPrices":{"base":{"v":2,"d":"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},"tierStep":{"v":[0,2,3,5,8,10,20],"d":"Once per operation, for a selection of them"},"exp":{"v":10,"d":"Once per EXP instuction"},"expByte":{"v":10,"d":"Times ceil(log256(exponent)) for the EXP instruction"},"sha3":{"v":30,"d":"Once per SHA3 operation"},"sha3Word":{"v":6,"d":"Once per word of the SHA3 operation\'s data"},"sload":{"v":50,"d":"Once per SLOAD operation"},"sstoreSet":{"v":20000,"d":"Once per SSTORE operation if the zeroness changes from zero"},"sstoreReset":{"v":5000,"d":"Once per SSTORE operation if the zeroness does not change from zero"},"sstoreRefund":{"v":15000,"d":"Once per SSTORE operation if the zeroness changes to zero"},"jumpdest":{"v":1,"d":"Refunded gas, once per SSTORE operation if the zeroness changes to zero"},"log":{"v":375,"d":"Per LOG* operation"},"logData":{"v":8,"d":"Per byte in a LOG* operation\'s data"},"logTopic":{"v":375,"d":"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},"create":{"v":32000,"d":"Once per CREATE operation & contract-creation transaction"},"call":{"v":40,"d":"Once per CALL operation & message call transaction"},"callStipend":{"v":2300,"d":"Free gas given at beginning of call"},"callValueTransfer":{"v":9000,"d":"Paid for CALL when the value transfor is non-zero"},"callNewAccount":{"v":25000,"d":"Paid for CALL when the destination address didn\'t exist prior"},"selfdestructRefund":{"v":24000,"d":"Refunded following a selfdestruct operation"},"memory":{"v":3,"d":"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},"quadCoeffDiv":{"v":512,"d":"Divisor for the quadratic particle of the memory cost equation"},"createData":{"v":200,"d":""},"tx":{"v":21000,"d":"Per transaction. NOTE: Not payable on data of calls between transactions"},"txCreation":{"v":32000,"d":"The cost of creating a contract via tx"},"txDataZero":{"v":4,"d":"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},"txDataNonZero":{"v":68,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"copy":{"v":3,"d":"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},"ecRecover":{"v":3000,"d":""},"sha256":{"v":60,"d":""},"sha256Word":{"v":12,"d":""},"ripemd160":{"v":600,"d":""},"ripemd160Word":{"v":120,"d":""},"identity":{"v":15,"d":""},"identityWord":{"v":3,"d":""}},"vm":{"stackLimit":{"v":1024,"d":"Maximum size of VM stack allowed"},"callCreateDepth":{"v":1024,"d":"Maximum depth of call/create stack"},"maxExtraDataSize":{"v":32,"d":"Maximum size extra data may be after Genesis"}},"pow":{"minimumDifficulty":{"v":131072,"d":"The minimum that the difficulty may ever be"},"difficultyBoundDivisor":{"v":2048,"d":"The bound divisor of the difficulty, used in the update calculations"},"durationLimit":{"v":13,"d":"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},"epochDuration":{"v":30000,"d":"Duration between proof-of-work epochs"},"timebombPeriod":{"v":100000,"d":"Exponential difficulty timebomb period"},"minerReward":{"v":"5000000000000000000","d":"the amount a miner get rewarded for mining a block"}},"casper":{},"sharding":{}}')},function(e){e.exports=JSON.parse('{"name":"homestead","comment":"Homestead hardfork with protocol and network changes","eip":{"url":"https://eips.ethereum.org/EIPS/eip-606","status":"Final"},"gasConfig":{},"gasPrices":{},"vm":{},"pow":{},"casper":{},"sharding":{}}')},function(e){e.exports=JSON.parse('{"name":"dao","comment":"DAO rescue hardfork","eip":{"url":"https://eips.ethereum.org/EIPS/eip-779","status":"Final"},"gasConfig":{},"gasPrices":{},"vm":{},"pow":{},"casper":{},"sharding":{}}')},function(e){e.exports=JSON.parse('{"name":"tangerineWhistle","comment":"Hardfork with gas cost changes for IO-heavy operations","eip":{"url":"https://eips.ethereum.org/EIPS/eip-608","status":"Final"},"gasConfig":{},"gasPrices":{"sload":{"v":200,"d":"Once per SLOAD operation"},"call":{"v":700,"d":"Once per CALL operation & message call transaction"}},"vm":{},"pow":{},"casper":{},"sharding":{}}')},function(e){e.exports=JSON.parse('{"name":"spuriousDragon","comment":"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit","eip":{"url":"https://eips.ethereum.org/EIPS/eip-607","status":"Final"},"gasConfig":{},"gasPrices":{"expByte":{"v":50,"d":"Times ceil(log256(exponent)) for the EXP instruction"}},"vm":{"maxCodeSize":{"v":24576,"d":"Maximum length of contract code"}},"pow":{},"casper":{},"sharding":{}}')},function(e){e.exports=JSON.parse('{"name":"byzantium","comment":"Hardfork with new precompiles, instructions and other protocol changes","eip":{"url":"https://eips.ethereum.org/EIPS/eip-609","status":"Final"},"gasConfig":{},"gasPrices":{"modexpGquaddivisor":{"v":20,"d":"Gquaddivisor from modexp precompile for gas calculation"},"ecAdd":{"v":500,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":40000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":100000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":80000,"d":"Gas costs regarding curve pairing precompile input length"}},"vm":{},"pow":{"minerReward":{"v":"3000000000000000000","d":"the amount a miner get rewarded for mining a block"}},"casper":{},"sharding":{}}')},function(e){e.exports=JSON.parse('{"name":"constantinople","comment":"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)","eip":{"url":"https://eips.ethereum.org/EIPS/eip-1013","status":"Final"},"gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":200,"d":"Once per SSTORE operation if the value doesn\'t change"},"netSstoreInitGas":{"v":20000,"d":"Once per SSTORE operation from clean zero"},"netSstoreCleanGas":{"v":5000,"d":"Once per SSTORE operation from clean non-zero"},"netSstoreDirtyGas":{"v":200,"d":"Once per SSTORE operation from dirty"},"netSstoreClearRefund":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"},"netSstoreResetRefund":{"v":4800,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"netSstoreResetClearRefund":{"v":19800,"d":"Once per SSTORE operation for resetting to the original zero value"}},"vm":{},"pow":{"minerReward":{"v":"2000000000000000000","d":"The amount a miner gets rewarded for mining a block"}},"casper":{},"sharding":{}}')},function(e){e.exports=JSON.parse('{"name":"petersburg","comment":"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople","eip":{"url":"https://eips.ethereum.org/EIPS/eip-1716","status":"Draft"},"gasConfig":{},"gasPrices":{"netSstoreNoopGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreInitGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreCleanGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreDirtyGas":{"v":null,"d":"Removed along EIP-1283"},"netSstoreClearRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetRefund":{"v":null,"d":"Removed along EIP-1283"},"netSstoreResetClearRefund":{"v":null,"d":"Removed along EIP-1283"}},"vm":{},"pow":{},"casper":{},"sharding":{}}')},function(e){e.exports=JSON.parse('{"name":"istanbul","comment":"HF targeted for December 2019 following the Constantinople/Petersburg HF","eip":{"url":"https://eips.ethereum.org/EIPS/eip-1679","status":"Draft"},"gasConfig":{},"gasPrices":{"blake2Round":{"v":1,"d":"Gas cost per round for the Blake2 F precompile"},"ecAdd":{"v":150,"d":"Gas costs for curve addition precompile"},"ecMul":{"v":6000,"d":"Gas costs for curve multiplication precompile"},"ecPairing":{"v":45000,"d":"Base gas costs for curve pairing precompile"},"ecPairingWord":{"v":34000,"d":"Gas costs regarding curve pairing precompile input length"},"txDataNonZero":{"v":16,"d":"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},"sstoreSentryGasEIP2200":{"v":2300,"d":"Minimum gas required to be present for an SSTORE call, not consumed"},"sstoreNoopGasEIP2200":{"v":800,"d":"Once per SSTORE operation if the value doesn\'t change"},"sstoreDirtyGasEIP2200":{"v":800,"d":"Once per SSTORE operation if a dirty value is changed"},"sstoreInitGasEIP2200":{"v":20000,"d":"Once per SSTORE operation from clean zero to non-zero"},"sstoreInitRefundEIP2200":{"v":19200,"d":"Once per SSTORE operation for resetting to the original zero value"},"sstoreCleanGasEIP2200":{"v":5000,"d":"Once per SSTORE operation from clean non-zero to something else"},"sstoreCleanRefundEIP2200":{"v":4200,"d":"Once per SSTORE operation for resetting to the original non-zero value"},"sstoreClearRefundEIP2200":{"v":15000,"d":"Once per SSTORE operation for clearing an originally existing storage slot"}},"vm":{},"pow":{},"casper":{},"sharding":{}}')},function(e){e.exports=JSON.parse('{"name":"muirGlacier","comment":"HF to delay the difficulty bomb","eip":{"url":"https://eips.ethereum.org/EIPS/eip-2384","status":"Last Call"},"gasConfig":{},"gasPrices":{},"vm":{},"pow":{},"casper":{},"sharding":{}}')},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(976),a=n(2),s=function(e){function t(t,n){void 0===t&&(t={}),void 0===n&&(n={});var r=e.call(this,t,n)||this;Object.defineProperty(r,"from",{enumerable:!0,configurable:!0,get:function(){return r.getSenderAddress()},set:function(e){e&&(r._from=o.toBuffer(e))}});var i=t;return i.from&&(r.from=o.toBuffer(i.from)),r}return i(t,e),t.prototype.hash=function(t){if(void 0===t&&(t=!0),t&&this._from&&""!==this._from.toString("hex")){var n=a.Buffer.concat([this._from,this._from.slice(0,12)]);this.sign(n)}return e.prototype.hash.call(this,t)},t}(n(975).default);t.default=s},function(e,t,n){"use strict";var r=n(147);e.exports=function(e){var t,n=this;return this.net.getId().then((function(e){return t=e,n.getBlock(0)})).then((function(n){var i="private";return"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"===n.hash&&1===t&&(i="main"),"0cd786a2425d16f152c658316c423e6ce1181e15c3295826d7c9904cba9ce303"===n.hash&&2===t&&(i="morden"),"0x41941023680923e0fe4d74a34bdac8141f2540e3ae90623718e47d66d1ca4a2d"===n.hash&&3===t&&(i="ropsten"),"0x6341fd3daf94b748c72ced5a5b26028f2474f5f00d824504e4fa37a75767e177"===n.hash&&4===t&&(i="rinkeby"),"0xbf7e331f7f7c1dd2e05159666b3bf8bc7a8a3a9eb1d518969eab529dd9b88c1a"===n.hash&&5===t&&(i="goerli"),"0xa3c565fc15c7478862d50ccd6561e3c06b24cc509bf388941c25ea985ce32cb9"===n.hash&&42===t&&(i="kovan"),r.isFunction(e)&&e(null,i),i})).catch((function(t){if(!r.isFunction(e))throw t;e(t)}))}},function(e,t,n){"use strict";var r=n(444),i=n(873).subscriptions,o=n(451),a=n(874),s=function(){var e=this;r.packageInit(this,arguments);var t=this.setRequestManager;this.setRequestManager=function(n){return t(n),e.net.setRequestManager(n),!0};var n=this.setProvider;this.setProvider=function(){n.apply(e,arguments),e.setRequestManager(e._requestManager)},this.net=new a(this),[new i({name:"subscribe",type:"shh",subscriptions:{messages:{params:1}}}),new o({name:"getVersion",call:"shh_version",params:0}),new o({name:"getInfo",call:"shh_info",params:0}),new o({name:"setMaxMessageSize",call:"shh_setMaxMessageSize",params:1}),new o({name:"setMinPoW",call:"shh_setMinPoW",params:1}),new o({name:"markTrustedPeer",call:"shh_markTrustedPeer",params:1}),new o({name:"newKeyPair",call:"shh_newKeyPair",params:0}),new o({name:"addPrivateKey",call:"shh_addPrivateKey",params:1}),new o({name:"deleteKeyPair",call:"shh_deleteKeyPair",params:1}),new o({name:"hasKeyPair",call:"shh_hasKeyPair",params:1}),new o({name:"getPublicKey",call:"shh_getPublicKey",params:1}),new o({name:"getPrivateKey",call:"shh_getPrivateKey",params:1}),new o({name:"newSymKey",call:"shh_newSymKey",params:0}),new o({name:"addSymKey",call:"shh_addSymKey",params:1}),new o({name:"generateSymKeyFromPassword",call:"shh_generateSymKeyFromPassword",params:1}),new o({name:"hasSymKey",call:"shh_hasSymKey",params:1}),new o({name:"getSymKey",call:"shh_getSymKey",params:1}),new o({name:"deleteSymKey",call:"shh_deleteSymKey",params:1}),new o({name:"newMessageFilter",call:"shh_newMessageFilter",params:1}),new o({name:"getFilterMessages",call:"shh_getFilterMessages",params:1}),new o({name:"deleteMessageFilter",call:"shh_deleteMessageFilter",params:1}),new o({name:"post",call:"shh_post",params:1,inputFormatter:[null]}),new o({name:"unsubscribe",call:"shh_unsubscribe",params:1})].forEach((function(t){t.attachToObject(e),t.setRequestManager(e._requestManager)}))};s.prototype.clearSubscriptions=function(){this._requestManager.clearSubscriptions()},r.addProviders(s),e.exports=s},function(e,t,n){"use strict";var r=n(147),i=n(1236),o=function e(t){this.givenProvider=e.givenProvider,t&&t._requestManager&&(t=t.currentProvider),"undefined"!=typeof document&&(this.pick=i.pick),this.setProvider(t)};o.givenProvider=null,"undefined"!=typeof ethereum&&ethereum.bzz&&(o.givenProvider=ethereum.bzz),o.prototype.setProvider=function(e){if(r.isObject(e)&&r.isString(e.bzz)&&(e=e.bzz),!r.isString(e)){this.currentProvider=null;var t=new Error("No provider set, please set one using bzz.setProvider().");return this.download=this.upload=this.isAvailable=function(){throw t},!1}return this.currentProvider=e,this.download=i.at(e).download,this.upload=i.at(e).upload,this.isAvailable=i.at(e).isAvailable,!0},e.exports=o},function(e,t,n){var r=function(){throw"This swarm.js function isn't available on the browser."},i={readFile:r},o={download:r,safeDownloadArchived:r,directoryTree:r},a={platform:r,arch:r},s={join:r,slice:r},c={spawn:r},l={lookup:r},u=n(1237),f=n(980),d=n(1249),p=n(1251),h=n(1252);e.exports=h({fs:i,files:o,os:a,path:s,child_process:c,defaultArchives:{},mimetype:l,request:u,downloadUrl:null,bytes:f,hash:d,pick:p})},function(e,t,n){var r=n(1238),i=n(1240),o=n(406),a=n(1241),s=n(1242),c=function(){};e.exports=function(e,t,n){if(!e||"string"!=typeof e)throw new TypeError("must specify a URL");"function"==typeof t&&(n=t,t={});if(n&&"function"!=typeof n)throw new TypeError("expected cb to be undefined or a function");n=n||c;var l=(t=t||{}).json?"json":"text",u=(t=o({responseType:l},t)).headers||{},f=(t.method||"GET").toUpperCase(),d=t.query;d&&("string"!=typeof d&&(d=r.stringify(d)),e=i(e,d));"json"===t.responseType&&a(u,"Accept","application/json");t.json&&"GET"!==f&&"HEAD"!==f&&(a(u,"Content-Type","application/json"),t.body=JSON.stringify(t.body));return t.method=f,t.url=e,t.headers=u,delete t.query,delete t.json,s(t,n)}},function(e,t,n){"use strict";var r=n(1239),i=n(406),o=n(979);function a(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function s(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function c(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=i({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:o(a),n(o(i),a,r)})),Object.keys(r).sort().reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):r}t.extract=s,t.parse=c,t.stringify=function(e,t){!1===(t=i({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[a(t,e),"[",r,"]"].join(""):[a(t,e),"[",a(r,e),"]=",a(n,e)].join("")};case"bracket":return function(t,n){return null===n?a(t,e):[a(t,e),"[]=",a(n,e)].join("")};default:return function(t,n){return null===n?a(t,e):[a(t,e),"=",a(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(r){var i=e[r];if(void 0===i)return"";if(null===i)return a(r,t);if(Array.isArray(i)){var o=[];return i.slice().forEach((function(e){void 0!==e&&o.push(n(r,e,o.length))})),o.join("&")}return a(r,t)+"="+a(i,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:c(s(e),t)}}},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t){e.exports=function(e,t){if(t){t=(t=t.trim().replace(/^(\?|#|&)/,""))?"?"+t:t;var n=e.split(/[\?\#]/)[0];t&&/\:\/\/[^\/]*$/.test(n)&&(n+="/");var r=e.match(/(\#.*)$/);e=n+t,r&&(e+=r[0])}return e}},function(e,t){e.exports=function(e,t,n){var r=t.toLowerCase();e[t]||e[r]||(e[t]=n)}},function(e,t,n){var r=n(1243),i=n(1247),o=function(){};e.exports=function(e,t){delete e.uri;var n=!1;"json"===e.responseType&&(e.responseType="text",n=!0);var a=r(e,(function(r,a,s){if(n&&!r)try{var c=a.rawRequest.responseText;s=JSON.parse(c)}catch(e){r=e}a=i(e,a),t(r,r?null:s,a),t=o})),s=a.onabort;return a.onabort=function(){var e=s.apply(a,Array.prototype.slice.call(arguments));return t(new Error("XHR Aborted")),t=o,e},a}},function(e,t,n){"use strict";var r=n(1244),i=n(1245),o=n(1246),a=n(963);function s(e,t,n){var r=e;return i(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=a(t,{uri:e}),r.callback=n,r}function c(e,t,n){return l(t=s(e,t,n))}function l(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function r(){var e=void 0;if(e=u.response?u.response:u.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(u),y)try{e=JSON.parse(e)}catch(e){}return e}function i(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,g)}function a(){if(!l){var t;clearTimeout(f),t=e.useXDR&&void 0===u.status?200:1223===u.status?204:u.status;var i=g,a=null;return 0!==t?(i={body:r(),statusCode:t,method:p,headers:{},url:d,rawRequest:u},u.getAllResponseHeaders&&(i.headers=o(u.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,i,i.body)}}var s,l,u=e.xhr||null;u||(u=e.cors||e.useXDR?new c.XDomainRequest:new c.XMLHttpRequest);var f,d=u.url=e.uri||e.url,p=u.method=e.method||"GET",h=e.body||e.data,m=u.headers=e.headers||{},b=!!e.sync,y=!1,g={body:void 0,headers:{},statusCode:0,method:p,url:d,rawRequest:u};if("json"in e&&!1!==e.json&&(y=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),h=JSON.stringify(!0===e.json?h:e.json))),u.onreadystatechange=function(){4===u.readyState&&setTimeout(a,0)},u.onload=a,u.onerror=i,u.onprogress=function(){},u.onabort=function(){l=!0},u.ontimeout=i,u.open(p,d,!b,e.username,e.password),b||(u.withCredentials=!!e.withCredentials),!b&&e.timeout>0&&(f=setTimeout((function(){if(!l){l=!0,u.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",i(e)}}),e.timeout)),u.setRequestHeader)for(s in m)m.hasOwnProperty(s)&&u.setRequestHeader(s,m[s]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(u),u.send(h||null),u}e.exports=c,e.exports.default=c,c.XMLHttpRequest=r.XMLHttpRequest||function(){},c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:r.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],(function(e){c["delete"===e?"del":e]=function(t,n,r){return(n=s(t,n,r)).method=e.toUpperCase(),l(n)}}))},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(12))},function(e,t){e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},function(e,t){var n=function(e){return e.replace(/^\s+|\s+$/g,"")};e.exports=function(e){if(!e)return{};for(var t,r={},i=n(e).split("\n"),o=0;o<i.length;o++){var a=i[o],s=a.indexOf(":"),c=n(a.slice(0,s)).toLowerCase(),l=n(a.slice(s+1));void 0===r[c]?r[c]=l:(t=r[c],"[object Array]"===Object.prototype.toString.call(t)?r[c].push(l):r[c]=[r[c],l])}return r}},function(e,t){e.exports=function(e,t){return t?{statusCode:t.statusCode,headers:t.headers,method:e.method,url:e.url,rawRequest:t.rawRequest?t.rawRequest:t}:null}},function(e,t){var n=function(e,t){for(var n=[],r=0;r<e;++r)n.push(t(r));return n};e.exports={generate:n,replicate:function(e,t){return n(e,(function(){return t}))},concat:function(e,t){return e.concat(t)},flatten:function(e){for(var t=[],n=0,r=e.length;n<r;++n)for(var i=0,o=e[n].length;i<o;++i)t.push(e[n][i]);return t},chunksOf:function(e,t){for(var n=[],r=0,i=t.length;r<i;r+=e)n.push(t.slice(r,r+e));return n}}},function(e,t,n){var r=n(1250).keccak256,i=n(980),o=function(e,t){var n=i.reverse(i.pad(6,i.fromNumber(e))),o=i.flatten([n,"0x0000",t]);return r(o).slice(2)};e.exports=function e(t){"string"==typeof t&&"0x"!==t.slice(0,2)?t=i.fromString(t):"string"!=typeof t&&void 0!==t.length&&(t=i.fromUint8Array(t));var n=i.length(t);if(n<=4096)return o(n,t);for(var r=4096;128*r<n;)r*=128;for(var a=[],s=0;s<n;s+=r){var c=r<n-s?r:n-s;a.push(e(i.slice(t,s,s+c)))}return o(n,i.flatten(a))}},function(e,t){var n="0123456789abcdef".split(""),r=[1,256,65536,16777216],i=[0,8,16,24],o=[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],a=function(e){var t,n,r,i,a,s,c,l,u,f,d,p,h,m,b,y,g,v,w,_,k,x,S,O,E,T,A,M,I,P,C,j,D,R,N,B,L,U,F,q,z,V,H,$,K,W,G,J,Q,Y,Z,X,ee,te,ne,re,ie,oe,ae,se,ce,le,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|c>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|s>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|u>>>31),n=a^(u<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=s^(f<<1|d>>>31),n=c^(d<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(p<<1|h>>>31),n=u^(h<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|a>>>31),n=d^(a<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,j=e[45]<<29|e[44]>>>3,D=e[44]<<29|e[45]>>>3,O=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,A=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~y&v,e[1]=b^~g&w,e[10]=O^~T&M,e[11]=E^~A&I,e[20]=R^~B&U,e[21]=N^~L&F,e[30]=$^~W&J,e[31]=K^~G&Q,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=y^~v&_,e[3]=g^~w&k,e[12]=T^~M&P,e[13]=A^~I&C,e[22]=B^~U&q,e[23]=L^~F&z,e[32]=W^~J&Y,e[33]=G^~Q&Z,e[42]=re^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&x,e[5]=w^~k&S,e[14]=M^~P&j,e[15]=I^~C&D,e[24]=U^~q&V,e[25]=F^~z&H,e[34]=J^~Y&X,e[35]=Q^~Z&ee,e[44]=oe^~se&le,e[45]=ae^~ce&ue,e[6]=_^~x&m,e[7]=k^~S&b,e[16]=P^~j&O,e[17]=C^~D&E,e[26]=q^~V&R,e[27]=z^~H&N,e[36]=Y^~X&$,e[37]=Z^~ee&K,e[46]=se^~le&te,e[47]=ce^~ue&ne,e[8]=x^~m&y,e[9]=S^~b&g,e[18]=j^~O&T,e[19]=D^~E&A,e[28]=V^~R&B,e[29]=H^~N&L,e[38]=X^~$&W,e[39]=ee^~K&G,e[48]=le^~te&re,e[49]=ue^~ne&ie,e[0]^=o[r],e[1]^=o[r+1]},s=function(e){return function(t){var o;if("0x"===t.slice(0,2)){o=[];for(var s=2,c=t.length;s<c;s+=2)o.push(parseInt(t.slice(s,s+2),16))}else o=t;return function(e,t){for(var o,s=t.length,c=e.blocks,l=e.blockCount<<2,u=e.blockCount,f=e.outputBlocks,d=e.s,p=0;p<s;){if(e.reset)for(e.reset=!1,c[0]=e.block,b=1;b<u+1;++b)c[b]=0;if("string"!=typeof t)for(b=e.start;p<s&&b<l;++p)c[b>>2]|=t[p]<<i[3&b++];else for(b=e.start;p<s&&b<l;++p)(o=t.charCodeAt(p))<128?c[b>>2]|=o<<i[3&b++]:o<2048?(c[b>>2]|=(192|o>>6)<<i[3&b++],c[b>>2]|=(128|63&o)<<i[3&b++]):o<55296||o>=57344?(c[b>>2]|=(224|o>>12)<<i[3&b++],c[b>>2]|=(128|o>>6&63)<<i[3&b++],c[b>>2]|=(128|63&o)<<i[3&b++]):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++p)),c[b>>2]|=(240|o>>18)<<i[3&b++],c[b>>2]|=(128|o>>12&63)<<i[3&b++],c[b>>2]|=(128|o>>6&63)<<i[3&b++],c[b>>2]|=(128|63&o)<<i[3&b++]);if(e.lastByteIndex=b,b>=l){for(e.start=b-l,e.block=c[u],b=0;b<u;++b)d[b]^=c[b];a(d),e.reset=!0}else e.start=b}if(c[(b=e.lastByteIndex)>>2]|=r[3&b],e.lastByteIndex===l)for(c[0]=c[u],b=1;b<u+1;++b)c[b]=0;for(c[u-1]|=2147483648,b=0;b<u;++b)d[b]^=c[b];a(d);for(var h,m="",b=0,y=0;y<f;){for(b=0;b<u&&y<f;++b,++y)h=d[b],m+=n[h>>4&15]+n[15&h]+n[h>>12&15]+n[h>>8&15]+n[h>>20&15]+n[h>>16&15]+n[h>>28&15]+n[h>>24&15];y%u==0&&(a(d),b=0)}return"0x"+m}(function(e){return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:(t=[0,0,0,0,0,0,0,0,0,0],[].concat(t,t,t,t,t))};var t}(e),o)}};e.exports={keccak256:s(256),keccak512:s(512),keccak256s:s(256),keccak512s:s(512)}},function(e,t){var n=function(e){return function(){return new Promise((function(t,n){var r,i=function(n){var r={},i=n.target.files.length,o=0;[].map.call(n.target.files,(function(n){var a=new FileReader;a.onload=function(a){var s=new Uint8Array(a.target.result);if("directory"===e){var c=n.webkitRelativePath;r[c.slice(c.indexOf("/")+1)]={type:"text/plain",data:s},++o===i&&t(r)}else if("file"===e){var l=n.webkitRelativePath;t({type:mimetype.lookup(l),data:s})}else t(s)},a.readAsArrayBuffer(n)}))};"directory"===e?((r=document.createElement("input")).addEventListener("change",i),r.type="file",r.webkitdirectory=!0,r.mozdirectory=!0,r.msdirectory=!0,r.odirectory=!0,r.directory=!0):((r=document.createElement("input")).addEventListener("change",i),r.type="file");var o=document.createEvent("MouseEvents");o.initEvent("click",!0,!1),r.dispatchEvent(o)}))}};e.exports={data:n("data"),file:n("file"),directory:n("directory")}},function(e,t){e.exports=function(e){var t=e.fs,n=e.files,r=e.os,i=e.path,o=e.child_process,a=e.mimetype,s=e.defaultArchives,c=e.request,l=e.downloadUrl,u=e.bytes,f=e.hash,d=e.pick,p=function(e){return function(t){for(var n={},r=0,i=e.length;r<i;++r)n[e[r]]=t[r];return n}},h=function(e){return function(t){return"".concat(e,"/bzz-raw:/").concat(t)}},m=function(e){return function(t){return new Promise((function(n,r){c(h(e)(t),{responseType:"arraybuffer"},(function(e,t,i){return e?r(e):i.statusCode>=400?r(new Error("Error ".concat(i.statusCode,"."))):n(new Uint8Array(t))}))}))}},b=function(e){return function(t){return function t(n){return function(r){return function(i){var o=function(e){return void 0===e.path?Promise.resolve():"application/bzz-manifest+json"===e.contentType?t(e.hash)(r+e.path)(i):Promise.resolve((n=r+e.path,function(e){return function(t){return t[n]=e,t}})(function(e){return{type:e.contentType,hash:e.hash}}(e))(i));var n};return m(e)(n).then((function(e){return JSON.parse(N(e)).entries})).then((function(e){return Promise.all(e.map(o))})).then((function(){return i}))}}}(t)("")({})}},y=function(e){return function(t){return b(e)(t).then((function(e){return p(Object.keys(e))(Object.keys(e).map((function(t){return e[t].hash})))}))}},g=function(e){return function(t){return b(e)(t).then((function(t){var n=Object.keys(t),r=n.map((function(e){return t[e].hash})),i=n.map((function(e){return t[e].type})),o=r.map(m(e));return Promise.all(o).then((function(e){return p(n)(function(e){return e.map((function(e,t){return{type:i[t],data:e}}))}(e))}))}))}},v=function(e){return function(t){return function(r){return n.download(h(e)(t))(r)}}},w=function(e){return function(t){return function(n){return y(e)(t).then((function(t){var r=[];for(var o in t)if(o.length>0){var a=i.join(n,o);r.push(v(e)(t[o])(a))}return Promise.all(r).then((function(){return n}))}))}}},_=function(e){return function(t){return new Promise((function(n,r){var i={body:"string"==typeof t?B(t):t,method:"POST"};c("".concat(e,"/bzz-raw:/"),i,(function(e,t){return e?r(e):n(t)}))}))}},k=function(e){return function(t){return function(n){return function(r){return function i(o){var a="/"===n[0]?n:"/"+n,s="".concat(e,"/bzz:/").concat(t).concat(a),l={method:"PUT",headers:{"Content-Type":r.type},body:r.data};return new Promise((function(e,t){c(s,l,(function(n,r){return n?t(n):-1!==r.indexOf("error")?t(r):e(r)}))})).catch((function(e){return o>0&&i(o-1)}))}(3)}}}},x=function(e){return function(t){return O(e)({"":t})}},S=function(e){return function(n){return t.readFile(n).then((function(t){return x(e)({type:a.lookup(n),data:t})}))}},O=function(e){return function(t){return _(e)("{}").then((function(n){return Object.keys(t).reduce((function(n,r){return n.then(function(n){return function(r){return k(e)(r)(n)(t[n])}}(r))}),Promise.resolve(n))}))}},E=function(e){return function(n){return t.readFile(n).then(_(e))}},T=function(e){return function(r){return function(i){return n.directoryTree(i).then((function(e){return Promise.all(e.map((function(e){return t.readFile(e)}))).then((function(t){var n=e.map((function(e){return e.slice(i.length)})),r=e.map((function(e){return a.lookup(e)||"text/plain"}));return p(n)(t.map((function(e,t){return{type:r[t],data:e}})))}))})).then((function(e){return(t=r?{"":e[r]}:{},function(e){var n={};for(var r in t)n[r]=t[r];for(var i in e)n[i]=e[i];return n})(e);var t})).then(O(e))}}},A=function(e){return function(t){if("data"===t.pick)return d.data().then(_(e));if("file"===t.pick)return d.file().then(x(e));if("directory"===t.pick)return d.directory().then(O(e));if(t.path)switch(t.kind){case"data":return E(e)(t.path);case"file":return S(e)(t.path);case"directory":return T(e)(t.defaultFile)(t.path)}else{if(t.length||"string"==typeof t)return _(e)(t);if(t instanceof Object)return O(e)(t)}return Promise.reject(new Error("Bad arguments"))}},M=function(e){return function(t){return function(n){return D(e)(t).then((function(r){return r?n?w(e)(t)(n):g(e)(t):n?v(e)(t)(n):m(e)(t)}))}}},I=function(e,t){var i=r.platform().replace("win32","windows")+"-"+("x64"===r.arch()?"amd64":"386"),o=(t||s)[i],a=l+o.archive+".tar.gz",c=o.archiveMD5,u=o.binaryMD5;return n.safeDownloadArchived(a)(c)(u)(e)},P=function(e){return new Promise((function(t,n){var r=o.spawn,i=function(e){return function(t){return-1!==(""+t).indexOf(e)}},a=e.account,s=e.password,c=e.dataDir,l=e.ensApi,u=e.privateKey,f=0,d=r(e.binPath,["--bzzaccount",a||u,"--datadir",c,"--ens-api",l]),p=function(e){0===f&&i("Passphrase")(e)?setTimeout((function(){f=1,d.stdin.write(s+"\n")}),500):i("Swarm http proxy started")(e)&&(f=2,clearTimeout(h),t(d))};d.stdout.on("data",p),d.stderr.on("data",p);var h=setTimeout((function(){return n(new Error("Couldn't start swarm process."))}),2e4)}))},C=function(e){return new Promise((function(t,n){e.stderr.removeAllListeners("data"),e.stdout.removeAllListeners("data"),e.stdin.removeAllListeners("error"),e.removeAllListeners("error"),e.removeAllListeners("exit"),e.kill("SIGINT");var r=setTimeout((function(){return e.kill("SIGKILL")}),8e3);e.once("close",(function(){clearTimeout(r),t()}))}))},j=function(e){return _(e)("test").then((function(e){return"c9a99c7d326dcc6316f32fe2625b311f6dc49a175e6877681ded93137d3569e7"===e})).catch((function(){return!1}))},D=function(e){return function(t){return m(e)(t).then((function(e){try{return!!JSON.parse(N(e)).entries}catch(e){return!1}}))}},R=function(e){return function(t,n,r,i,o){var a;return void 0!==t&&(a=e(t)),void 0!==n&&(a=e(n)),void 0!==r&&(a=e(r)),void 0!==i&&(a=e(i)),void 0!==o&&(a=e(o)),a}},N=function(e){return u.toString(u.fromUint8Array(e))},B=function(e){return u.toUint8Array(u.fromString(e))},L=function(e){return{download:function(t,n){return M(e)(t)(n)},downloadData:R(m(e)),downloadDataToDisk:R(v(e)),downloadDirectory:R(g(e)),downloadDirectoryToDisk:R(w(e)),downloadEntries:R(b(e)),downloadRoutes:R(y(e)),isAvailable:function(){return j(e)},upload:function(t){return A(e)(t)},uploadData:R(_(e)),uploadFile:R(x(e)),uploadFileFromDisk:R(x(e)),uploadDataFromDisk:R(E(e)),uploadDirectory:R(O(e)),uploadDirectoryFromDisk:R(T(e)),uploadToManifest:R(k(e)),pick:d,hash:f,fromString:B,toString:N}};return{at:L,local:function(e){return function(t){return j("http://localhost:8500").then((function(n){return n?t(L("http://localhost:8500")).then((function(){})):I(e.binPath,e.archives).onData((function(t){return(e.onProgress||function(){})(t.length)})).then((function(){return P(e)})).then((function(e){return t(L("http://localhost:8500")).then((function(){return e}))})).then(C)}))}},download:M,downloadBinary:I,downloadData:m,downloadDataToDisk:v,downloadDirectory:g,downloadDirectoryToDisk:w,downloadEntries:b,downloadRoutes:y,isAvailable:j,startProcess:P,stopProcess:C,upload:A,uploadData:_,uploadDataFromDisk:E,uploadFile:x,uploadFileFromDisk:S,uploadDirectory:O,uploadDirectoryFromDisk:T,uploadToManifest:k,pick:d,hash:f,fromString:B,toString:N}}},function(e,t,n){var r=n(875),i=n(411),o=n(1254),a=n(1543),s=n(953),c=n(1255),l=n(1257),u=l.registryInterface,f=l.resolverInterface,d={1:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",3:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",4:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",5:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},p={1:function(e){return e=c.strFromUtf8Ab(e),JSON.parse(e)},2:function(e){return e=i.inflate(e,{to:"string"}),JSON.parse(e)}},h=a.reduce(a.keys(p),(function(e,t){return e|t}));function m(e,t,n){return void 0!==n&&(s=n),/^0\./.exec(s.version||new s(e).version.api)?c.construct(v,[e,t]):c.construct(y,[e,t])}function b(e,t,n){this.ens=e,this.node=t,this.instancePromise=e.registryPromise.then((function(e){return e.methods.resolver(t).call().then((function(e){return"0x0000000000000000000000000000000000000000"==e?o.reject(m.NameNotFound):(n.options.address=e,n)}))})),a.each(n.methods,function(n,r){this[r]=function(){var n,i=Array.prototype.slice.call(arguments);return this.instancePromise.then((function(o){var s=o._jsonInterface.reduce((function(e,t){return e||(t.name!==r||t.constant?null:t)}),null);return null===s?a.partial(o.methods[r],t).apply(o.methods,i).call():(s.inputs.length<i.length+1&&(n=i.splice(i.length-1)[0]),e.web3.eth.getAccounts().then((function(e){return a.partial(o.methods[r],t).apply(o.methods,i).send(n||{from:e[0]})})))})).bind(this)}.bind(this)}.bind(this))}
209 /**
210  * @class
211  *
212  * @description Provides an easy-to-use interface to the Ethereum Name Service.
213  *
214  * Example usage:
215  *
216  *     var ENS = require('ethereum-ens');
217  *     var Web3 = require('web3');
218  *
219  *     var web3 = new Web3();
220  *     var ens = new ENS(web3);
221  *
222  *     var address = ens.resolver('foo.eth').addr().then(function(addr) { ... });
223  *
224  * Functions that require communicating with the node return promises, rather than
225  * using callbacks. A promise has a `then` function, which takes a callback and will
226  * call it when the promise is fulfilled; `then` returns another promise, so you can
227  * chain callbacks. For more details, see http://bluebirdjs.com/.
228  *
229  * Notably, the `resolver` method returns a resolver instance immediately; lookup of
230  * the resolver address is done in the background or when you first call an asynchronous
231  * method on the resolver.
232  *
233  * Functions that create transactions also take an optional 'options' argument;
234  * this has the same parameters as web3.
235  *
236  * @author Nick Johnson <nick@ethereum.org>
237  * @date 2016
238  * @license LGPL
239  *
240  * @param {object} provider A web3 provider to use to communicate with the blockchain.
241  * @param {address} address Optional. The address of the ENS registry. Defaults to the public ENS registry.
242  */
243 function y(e,t){e.currentProvider&&(e=e.currentProvider),this.web3=new s(e);var n=new this.web3.eth.Contract(u);null!=t?(n.options.address=t,this.registryPromise=o.resolve(n)):this.registryPromise=new o(e=>{this.web3.eth.net.getId().then((function(t){n.options.address=d[t],e(n)}))})}function g(e,t,n){this.ens=e,this.node=t,this.instancePromise=e.registryPromise.then((function(e){return e.resolverAsync(t).then((function(e){return"0x0000000000000000000000000000000000000000"==e?o.reject(m.NameNotFound):o.promisifyAll(n.at(e))}))})),a.each(n.abi,function(e){this[e.name]=function(){var n=arguments;return this.instancePromise.then((function(r){return a.partial(r[e.name+"Async"],t).apply(r,n)})).bind(this)}.bind(this)}.bind(this))}
244 /**
245  * @class
246  *
247  * @description Provides an easy-to-use interface to the Ethereum Name Service.
248  *
249  * Example usage:
250  *
251  *     var ENS = require('ethereum-ens');
252  *     var Web3 = require('web3');
253  *
254  *     var web3 = new Web3();
255  *     var ens = new ENS(web3);
256  *
257  *     var address = ens.resolver('foo.eth').addr().then(function(addr) { ... });
258  *
259  * Functions that require communicating with the node return promises, rather than
260  * using callbacks. A promise has a `then` function, which takes a callback and will
261  * call it when the promise is fulfilled; `then` returns another promise, so you can
262  * chain callbacks. For more details, see http://bluebirdjs.com/.
263  *
264  * Notably, the `resolver` method returns a resolver instance immediately; lookup of
265  * the resolver address is done in the background or when you first call an asynchronous
266  * method on the resolver.
267  *
268  * Functions that create transactions also take an optional 'options' argument;
269  * this has the same parameters as web3.
270  *
271  * @author Nick Johnson <nick@ethereum.org>
272  * @date 2016
273  * @license LGPL
274  *
275  * @param {object} provider A web3 provider to use to communicate with the blockchain.
276  * @param {address} address Optional. The address of the ENS registry. Defaults to the public ENS registry.
277  */
278 function v(e,t){e.currentProvider&&(e=e.currentProvider),this.web3=new s(e);var n=this.web3.eth.contract(u);this.registryPromise=null!=t?o.resolve(o.promisifyAll(n.at(t))):o.promisify(this.web3.version.getNetwork)().then((function(e){return o.promisifyAll(n.at(d[e]))}))}m.NameNotFound=Error("ENS name not found"),b.prototype.resolverAddress=function(){return this.instancePromise.then((function(e){return e._address}))},b.prototype.reverseAddr=function(){return this.addr().then((function(e){return this.ens.reverse(e)})).bind(this)},b.prototype.abi=function(e){return this.instancePromise.then(function(t){return t.methods.ABI(this.node,h).call().then(function(t){return 0==t[0]?0==e?null:this.reverseAddr().then((function(e){return e.abi(!1)})):p[t[0]](c.fromHex(t[1]))}.bind(this))}.bind(this))},b.prototype.contract=function(){return o.join(this.abi(),this.addr(),function(e,t){return new this.ens.web3.eth.Contract(e,t)}.bind(this))},y.NameNotFound=Error("ENS name not found"),y.prototype.resolver=function(e,t){return t=t||f,new b(this,r.hash(e),new this.web3.eth.Contract(t))},y.prototype.reverse=function(e,t){return e.startsWith("0x")&&(e=e.slice(2)),this.resolver(e.toLowerCase()+".addr.reverse",t)},y.prototype.setResolver=function(e,t,n){var i=r.hash(e);return this.registryPromise.then(function(e){return this.web3.eth.getAccounts().then((function(r){return e.methods.setResolver(i,t).send(n||{from:r[0]})}))}.bind(this))},y.prototype.owner=function(e,t){var n=r.hash(e);return this.registryPromise.then((function(e){return e.methods.owner(n).call()}))},y.prototype.setOwner=function(e,t,n){var i=r.hash(e);return this.registryPromise.then(function(e){return this.web3.eth.getAccounts().then((function(r){return e.methods.setOwner(i,t).send(n||{from:r[0]})}))}.bind(this))},y.prototype.setSubnodeOwner=function(e,t,n){var r=c.parentNamehash(e);return this.registryPromise.then(function(e){return this.web3.eth.getAccounts().then((function(i){return e.methods.setSubnodeOwner(r[1],r[0],t).send(n||{from:i[0]})}))}.bind(this))},g.prototype.resolverAddress=function(){return this.instancePromise.then((function(e){return e.address}))},g.prototype.reverseAddr=function(){return this.addr().then((function(e){return this.ens.reverse(e)})).bind(this)},g.prototype.abi=function(e){return this.instancePromise.then(function(t){return t.ABIAsync(this.node,h).then(function(t){return 0==t[0]?0==e?null:this.reverseAddr().then((function(e){return e.abi(!1)})):p[t[0]](c.fromHex(t[1]))}.bind(this))}.bind(this))},g.prototype.contract=function(){return o.join(this.abi(),this.addr(),function(e,t){return this.ens.web3.eth.contract(e).at(t)}.bind(this))},v.NameNotFound=Error("ENS name not found"),v.prototype.resolver=function(e,t){return t=t||f,new g(this,r.hash(e),this.web3.eth.contract(t))},v.prototype.reverse=function(e,t){return e.startsWith("0x")&&(e=e.slice(2)),this.resolver(e.toLowerCase()+".addr.reverse",t)},v.prototype.setResolver=function(e,t,n){var i=r.hash(e);return this.registryPromise.then((function(e){return e.setResolverAsync(i,t,n)}))},v.prototype.owner=function(e,t){var n=r.hash(e);return this.registryPromise.then((function(e){return e.ownerAsync(n)}))},v.prototype.setOwner=function(e,t,n){var i=r.hash(e);return this.registryPromise.then((function(e){return e.setOwnerAsync(i,t,n)}))},v.prototype.setSubnodeOwner=function(e,t,n){var r=c.parentNamehash(e);return this.registryPromise.then((function(e){return e.setSubnodeOwnerAsync(r[1],r[0],t,n)}))},e.exports=m},function(e,t,n){(function(t,n,r){var i;i=function(){var e,i,o;return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof _dereq_&&_dereq_;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){var n=t[a][1][e];return i(n||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";t.exports=function(e){var t=e._SomePromiseArray;function n(e){var n=new t(e),r=n.promise();return n.setHowMany(1),n.setUnwrap(),n.init(),r}e.any=function(e){return n(e)},e.prototype.any=function(){return n(this)}}},{}],2:[function(e,n,r){"use strict";var i;try{throw new Error}catch(e){i=e}var o=e("./schedule"),a=e("./queue");function s(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new a(16),this._normalQueue=new a(16),this._haveDrainedQueues=!1;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=o}function c(e){for(;e.length()>0;)l(e)}function l(e){var t=e.shift();if("function"!=typeof t)t._settlePromises();else{var n=e.shift(),r=e.shift();t.call(n,r)}}s.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},s.prototype.hasCustomScheduler=function(){return this._customScheduler},s.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},s.prototype.fatalError=function(e,n){n?(t.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),t.exit(2)):this.throwLater(e)},s.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout((function(){e(t)}),0);else try{this._schedule((function(){e(t)}))}catch(e){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}},s.prototype.invokeLater=function(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()},s.prototype.invoke=function(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()},s.prototype.settlePromises=function(e){this._normalQueue._pushOne(e),this._queueTick()},s.prototype._drainQueues=function(){c(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,c(this._lateQueue)},s.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},s.prototype._reset=function(){this._isTickUsed=!1},n.exports=s,n.exports.firstLineError=i},{"./queue":26,"./schedule":29}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i=!1,o=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},s=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},c=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var l=n(o),u=new e(t);u._propagateFrom(this,1);var f=this._target();if(u._setBoundTo(l),l instanceof e){var d={promiseRejectionQueued:!1,promise:u,target:f,bindingPromise:l};f._then(t,a,void 0,u,d),l._then(s,c,void 0,u,d),u._setOnCancel(l)}else u._resolveCallback(f);return u},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){"use strict";var r;"undefined"!=typeof Promise&&(r=Promise);var i=e("./promise")();i.noConflict=function(){try{Promise===i&&(Promise=r)}catch(e){}return i},t.exports=i},{"./promise":22}],5:[function(e,t,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}t.exports=function(t){var n=e("./util"),r=n.canEvaluate;function i(e){return function(e,r){var i;if(null!=e&&(i=e[r]),"function"!=typeof i){var o="Object "+n.classString(e)+" has no method '"+n.toString(r)+"'";throw new t.TypeError(o)}return i}(e,this.pop()).apply(e,this)}function o(e){return e[this]}function a(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}n.isIdentifier,t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(i,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"==typeof e)t=a;else if(r){var n=(void 0)(e);t=null!==n?n:o}else t=o;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),a=o.tryCatch,s=o.errorObj,c=t._async;t.prototype.break=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"==typeof e){if(!t){var r=a(e).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),c.throwLater(r.e))}}else e._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),c.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,t,n){"use strict";t.exports=function(t){var n=e("./util"),r=e("./es5").keys,i=n.tryCatch,o=n.errorObj;return function(e,a,s){return function(c){var l=s._boundValue();e:for(var u=0;u<e.length;++u){var f=e[u];if(f===Error||null!=f&&f.prototype instanceof Error){if(c instanceof f)return i(a).call(l,c)}else if("function"==typeof f){var d=i(f).call(l,c);if(d===o)return d;if(d)return i(a).call(l,c)}else if(n.isObject(c)){for(var p=r(f),h=0;h<p.length;++h){var m=p[h];if(f[m]!=c[m])continue e}return i(a).call(l,c)}}return t}}}},{"./es5":13,"./util":36}],8:[function(e,t,n){"use strict";t.exports=function(e){var t=!1,n=[];function r(){this._trace=new r.CapturedTrace(i())}function i(){var e=n.length-1;if(e>=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=function(){if(t)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,o=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,c=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=o,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=c,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=i,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},{}],9:[function(e,n,r){"use strict";n.exports=function(n,r,i,o){var a,s,c,l,u=n._async,f=e("./errors").Warning,d=e("./util"),p=e("./es5"),h=d.canAttachTrace,m=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,b=/\((?:timers\.js):\d+:\d+\)/,y=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,g=null,v=null,w=!1,_=!(0==d.env("BLUEBIRD_DEBUG")),k=!(0==d.env("BLUEBIRD_WARNINGS")||!_&&!d.env("BLUEBIRD_WARNINGS")),x=!(0==d.env("BLUEBIRD_LONG_STACK_TRACES")||!_&&!d.env("BLUEBIRD_LONG_STACK_TRACES")),S=0!=d.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(k||!!d.env("BLUEBIRD_W_FORGOTTEN_RETURN"));!function(){var e=[];function t(){for(var t=0;t<e.length;++t)e[t]._notifyUnhandledRejection();r()}function r(){e.length=0}l=function(n){e.push(n),setTimeout(t,1)},p.defineProperty(n,"_unhandledRejectionCheck",{value:t}),p.defineProperty(n,"_unhandledRejectionClear",{value:r})}(),n.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},n.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),l(this))},n.prototype._notifyUnhandledRejectionIsHandled=function(){G("rejectionHandled",a,void 0,this)},n.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},n.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},n.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),G("unhandledRejection",s,e,this)}},n.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},n.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},n.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},n.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},n.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},n.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},n.prototype._warn=function(e,t,n){return H(e,t,n||this)},n.onPossiblyUnhandledRejection=function(e){var t=n._getContext();s=d.contextBind(t,e)},n.onUnhandledRejectionHandled=function(e){var t=n._getContext();a=d.contextBind(t,e)};var O=function(){};n.longStackTraces=function(){if(u.haveItemsQueued()&&!ne.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");if(!ne.longStackTraces&&Q()){var e=n.prototype._captureStackTrace,t=n.prototype._attachExtraTrace,i=n.prototype._dereferenceTrace;ne.longStackTraces=!0,O=function(){if(u.haveItemsQueued()&&!ne.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");n.prototype._captureStackTrace=e,n.prototype._attachExtraTrace=t,n.prototype._dereferenceTrace=i,r.deactivateLongStackTraces(),ne.longStackTraces=!1},n.prototype._captureStackTrace=q,n.prototype._attachExtraTrace=z,n.prototype._dereferenceTrace=V,r.activateLongStackTraces()}},n.hasLongStackTraces=function(){return ne.longStackTraces&&Q()};var E={unhandledrejection:{before:function(){var e=d.global.onunhandledrejection;return d.global.onunhandledrejection=null,e},after:function(e){d.global.onunhandledrejection=e}},rejectionhandled:{before:function(){var e=d.global.onrejectionhandled;return d.global.onrejectionhandled=null,e},after:function(e){d.global.onrejectionhandled=e}}},T=function(){var e=function(e,t){if(!e)return!d.global.dispatchEvent(t);var n;try{return n=e.before(),!d.global.dispatchEvent(t)}finally{e.after(n)}};try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return d.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r=new CustomEvent(t,{detail:n,cancelable:!0});return p.defineProperty(r,"promise",{value:n.promise}),p.defineProperty(r,"reason",{value:n.reason}),e(E[t],r)}}return"function"==typeof Event?(t=new Event("CustomEvent"),d.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r=new Event(t,{cancelable:!0});return r.detail=n,p.defineProperty(r,"promise",{value:n.promise}),p.defineProperty(r,"reason",{value:n.reason}),e(E[t],r)}):((t=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),d.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,!1,!0,n),e(E[t],r)})}catch(e){}return function(){return!1}}(),A=d.isNode?function(){return t.emit.apply(t,arguments)}:d.global?function(e){var t="on"+e.toLowerCase(),n=d.global[t];return!!n&&(n.apply(d.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function M(e,t){return{promise:t}}var I={promiseCreated:M,promiseFulfilled:M,promiseRejected:M,promiseResolved:M,promiseCancelled:M,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:M},P=function(e){var t=!1;try{t=A.apply(null,arguments)}catch(e){u.throwLater(e),t=!0}var n=!1;try{n=T(e,I[e].apply(null,arguments))}catch(e){u.throwLater(e),n=!0}return n||t};function C(){return!1}function j(e,t,n){var r=this;try{e(t,n,(function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+d.toString(e));r._attachCancellationCallback(e)}))}catch(e){return e}}function D(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?d.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function R(){return this._onCancelField}function N(e){this._onCancelField=e}function B(){this._cancellationParent=void 0,this._onCancelField=void 0}function L(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}n.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?n.longStackTraces():!e.longStackTraces&&n.hasLongStackTraces()&&O()),"warnings"in e){var t=e.warnings;ne.warnings=!!t,S=ne.warnings,d.isObject(t)&&"wForgottenReturn"in t&&(S=!!t.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!ne.cancellation){if(u.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");n.prototype._clearCancellationData=B,n.prototype._propagateFrom=L,n.prototype._onCancel=R,n.prototype._setOnCancel=N,n.prototype._attachCancellationCallback=D,n.prototype._execute=j,U=L,ne.cancellation=!0}if("monitoring"in e&&(e.monitoring&&!ne.monitoring?(ne.monitoring=!0,n.prototype._fireEvent=P):!e.monitoring&&ne.monitoring&&(ne.monitoring=!1,n.prototype._fireEvent=C)),"asyncHooks"in e&&d.nodeSupportsAsyncResource){var r=ne.asyncHooks,a=!!e.asyncHooks;r!==a&&(ne.asyncHooks=a,a?i():o())}return n},n.prototype._fireEvent=C,n.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},n.prototype._onCancel=function(){},n.prototype._setOnCancel=function(e){},n.prototype._attachCancellationCallback=function(e){},n.prototype._captureStackTrace=function(){},n.prototype._attachExtraTrace=function(){},n.prototype._dereferenceTrace=function(){},n.prototype._clearCancellationData=function(){},n.prototype._propagateFrom=function(e,t){};var U=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function F(){var e=this._boundTo;return void 0!==e&&e instanceof n?e.isFulfilled()?e.value():void 0:e}function q(){this._trace=new ee(this._peekContext())}function z(e,t){if(h(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=K(e);d.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),d.notEnumerableProp(e,"__stackCleaned__",!0)}}}function V(){this._trace=void 0}function H(e,t,r){if(ne.warnings){var i,o=new f(e);if(t)r._attachExtraTrace(o);else if(ne.longStackTraces&&(i=n._peekContext()))i.attachExtraTrace(o);else{var a=K(o);o.stack=a.message+"\n"+a.stack.join("\n")}P("warning",o)||W(o,"",!0)}}function $(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i="    (No stack trace)"===r||g.test(r),o=i&&Y(r);i&&!o&&(w&&" "!==r.charAt(0)&&(r="    "+r),t.push(r))}return t}function K(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&t.length>0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var r=t[n];if("    (No stack trace)"===r||g.test(r))break}return n>0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):["    (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:$(t)}}function W(e,t,n){if("undefined"!=typeof console){var r;if(d.isObject(e)){var i=e.stack;r=t+v(i,e)}else r=t+String(e);"function"==typeof c?c(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function G(e,t,n,r){var i=!1;try{"function"==typeof t&&(i=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(e){u.throwLater(e)}"unhandledRejection"===e?P(e,n,r)||i||W(n,"Unhandled rejection "):P(e,r)}function J(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"==typeof e.toString?e.toString():d.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+function(e){return e.length<41?e:e.substr(0,38)+"..."}(t)+">, no stack trace)"}function Q(){return"function"==typeof te}var Y=function(){return!1},Z=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function X(e){var t=e.match(Z);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function ee(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);te(this,ee),t>32&&this.uncycle()}d.inherits(ee,Error),r.CapturedTrace=ee,ee.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;void 0!==i;++r)t.push(i),i=i._parent;for(r=(e=this._length=r)-1;r>=0;--r){var o=t[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r<e;++r){var a=n[t[r].stack];if(void 0!==a&&a!==r){a>0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var s=r>0?t[r-1]:this;a<e-1?(s._parent=t[a+1],s._parent.uncycle(),s._length=s._parent._length+1):(s._parent=void 0,s._length=1);for(var c=s._length+1,l=r-2;l>=0;--l)t[l]._length=c,c++;return}}}},ee.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=K(e),n=t.message,r=[t.stack],i=this;void 0!==i;)r.push($(i.stack.split("\n"))),i=i._parent;!function(e){for(var t=e[0],n=1;n<e.length;++n){for(var r=e[n],i=t.length-1,o=t[i],a=-1,s=r.length-1;s>=0;--s)if(r[s]===o){a=s;break}for(s=a;s>=0;--s){var c=r[s];if(t[i]!==c)break;t.pop(),i--}t=r}}(r),function(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}(r),d.notEnumerableProp(e,"stack",function(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}(n,r)),d.notEnumerableProp(e,"__stackCleaned__",!0)}};var te=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():J(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,g=e,v=t;var n=Error.captureStackTrace;return Y=function(e){return m.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var r,i=new Error;if("string"==typeof i.stack&&i.stack.split("\n")[0].indexOf("stackDetection@")>=0)return g=/@/,v=t,w=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(e){r="stack"in e}return!("stack"in i)&&r&&"number"==typeof Error.stackTraceLimit?(g=e,v=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}):(v=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?J(t):t.toString()},null)}();"undefined"!=typeof console&&void 0!==console.warn&&(c=function(e){console.warn(e)},d.isNode&&t.stderr.isTTY?c=function(e,t){var n=t?"\e[33m":"\e[31m";console.warn(n+e+"\e[0m\n")}:d.isNode||"string"!=typeof(new Error).stack||(c=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var ne={warnings:k,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return x&&n.longStackTraces(),{asyncHooks:function(){return ne.asyncHooks},longStackTraces:function(){return ne.longStackTraces},warnings:function(){return ne.warnings},cancellation:function(){return ne.cancellation},monitoring:function(){return ne.monitoring},propagateFromFunction:function(){return U},boundValueFunction:function(){return F},checkForgottenReturns:function(e,t,n,r,i){if(void 0===e&&null!==t&&S){if(void 0!==i&&i._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),c=$(s),l=c.length-1;l>=0;--l){var u=c[l];if(!b.test(u)){var f=u.match(y);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(c.length>0){var d=c[0];for(l=0;l<s.length;++l)if(s[l]===d){l>0&&(a="\n"+s[l-1]);break}}}var p="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(p,!0,t)}},setBounds:function(e,t){if(Q()){for(var n,r,i=(e.stack||"").split("\n"),o=(t.stack||"").split("\n"),a=-1,s=-1,c=0;c<i.length;++c)if(l=X(i[c])){n=l.fileName,a=l.line;break}for(c=0;c<o.length;++c){var l;if(l=X(o[c])){r=l.fileName,s=l.line;break}}a<0||s<0||!n||!r||n!==r||a>=s||(Y=function(e){if(m.test(e))return!0;var t=X(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:H,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),H(n)},CapturedTrace:ee,fireDomEvent:T,fireGlobalEvent:A}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],11:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.reduce,r=e.all;function i(){return r(this)}e.prototype.each=function(e){return n(this,e,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(i,void 0,void 0,e,void 0)},e.mapSeries=function(e,r){return n(e,r,t,t)}}},{}],12:[function(e,t,n){"use strict";var r,i,o=e("./es5"),a=o.freeze,s=e("./util"),c=s.inherits,l=s.notEnumerableProp;function u(e,t){function n(r){if(!(this instanceof n))return new n(r);l(this,"message","string"==typeof r?r:t),l(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return c(n,Error),n}var f=u("Warning","warning"),d=u("CancellationError","cancellation error"),p=u("TimeoutError","timeout error"),h=u("AggregateError","aggregate error");try{r=TypeError,i=RangeError}catch(e){r=u("TypeError","type error"),i=u("RangeError","range error")}for(var m="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),b=0;b<m.length;++b)"function"==typeof Array.prototype[m[b]]&&(h.prototype[m[b]]=Array.prototype[m[b]]);o.defineProperty(h.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),h.prototype.isOperational=!0;var y=0;function g(e){if(!(this instanceof g))return new g(e);l(this,"name","OperationalError"),l(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(l(this,"message",e.message),l(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}h.prototype.toString=function(){var e=Array(4*y+1).join(" "),t="\n"+e+"AggregateError of:\n";y++,e=Array(4*y+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",i=r.split("\n"),o=0;o<i.length;++o)i[o]=e+i[o];t+=(r=i.join("\n"))+"\n"}return y--,t},c(g,Error);var v=Error.__BluebirdErrorTypes__;v||(v=a({CancellationError:d,TimeoutError:p,OperationalError:g,RejectionError:g,AggregateError:h}),o.defineProperty(Error,"__BluebirdErrorTypes__",{value:v,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error:Error,TypeError:r,RangeError:i,CancellationError:v.CancellationError,OperationalError:v.OperationalError,TimeoutError:v.TimeoutError,AggregateError:v.AggregateError,Warning:f}},{"./es5":13,"./util":36}],13:[function(e,t,n){var r=function(){"use strict";return void 0===this}();if(r)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var i={}.hasOwnProperty,o={}.toString,a={}.constructor.prototype,s=function(e){var t=[];for(var n in e)i.call(e,n)&&t.push(n);return t};t.exports={isArray:function(e){try{return"[object Array]"===o.call(e)}catch(e){return!1}},keys:s,names:s,defineProperty:function(e,t,n){return e[t]=n.value,e},getDescriptor:function(e,t){return{value:e[t]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return Object(e).constructor.prototype}catch(e){return a}},isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,r){return n(this,e,r,t)},e.filter=function(e,r,i){return n(e,r,i,t)}}},{}],15:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=t.CancellationError,a=i.errorObj,s=e("./catch_filter")(r);function c(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function l(e){this.finallyHandler=e}function u(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function f(){return p.call(this,this.promise._target()._settledValue())}function d(e){if(!u(this,e))return a.e=e,a}function p(e){var i=this.promise,s=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?s.call(i._boundValue()):s.call(i._boundValue(),e);if(c===r)return c;if(void 0!==c){i._setReturnedNonUndefined();var p=n(c,i);if(p instanceof t){if(null!=this.cancelPromise){if(p._isCancelled()){var h=new o("late cancellation observer");return i._attachExtraTrace(h),a.e=h,a}p.isPending()&&p._attachCancellationCallback(new l(this))}return p._then(f,d,void 0,this,void 0)}}}return i.isRejected()?(u(this),a.e=e,a):(u(this),e)}return c.prototype.isFinallyHandler=function(){return 0===this.type},l.prototype._resultCancelled=function(){u(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new c(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,p,p)},t.prototype.tap=function(e){return this._passThrough(e,1,p)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,void 0,p);var r,o=new Array(n-1),a=0;for(r=0;r<n-1;++r){var c=arguments[r];if(!i.isObject(c))return t.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+i.classString(c)));o[a++]=c}o.length=a;var l=arguments[r];return this._passThrough(s(o,l,this),1,void 0,p)},c}},{"./catch_filter":7,"./util":36}],16:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./errors").TypeError,c=e("./util"),l=c.errorObj,u=c.tryCatch,f=[];function d(e,n,i,o){if(a.cancellation()){var s=new t(r),c=this._finallyPromise=new t(r);this._promise=s.lastly((function(){return c})),s._captureStackTrace(),s._setOnCancel(this)}else(this._promise=new t(r))._captureStackTrace();this._stack=o,this._generatorFunction=e,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof i?[i].concat(f):f,this._yieldedPromise=null,this._cancellationPhase=!1}c.inherits(d,o),d.prototype._isResolved=function(){return null===this._promise},d.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},d.prototype._promiseCancelled=function(){if(!this._isResolved()){var e;if(void 0!==this._generator.return)this._promise._pushContext(),e=u(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var n=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=n,this._promise._attachExtraTrace(n),this._promise._pushContext(),e=u(this._generator.throw).call(this._generator,n),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(e)}},d.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=u(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)},d.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=u(this._generator.throw).call(this._generator,e);this._promise._popContext(),this._continue(t)},d.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},d.prototype.promise=function(){return this._promise},d.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},d.prototype._continue=function(e){var n=this._promise;if(e===l)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(e.e,!1);var r=e.value;if(!0===e.done)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var o=i(r,this._promise);if(o instanceof t||null!==(o=function(e,n,r){for(var o=0;o<n.length;++o){r._pushContext();var a=u(n[o])(e);if(r._popContext(),a===l){r._pushContext();var s=t.reject(l.e);return r._popContext(),s}var c=i(a,r);if(c instanceof t)return c}return null}(o,this._yieldHandlers,this._promise))){var a=(o=o._target())._bitField;0==(50397184&a)?(this._yieldedPromise=o,o._proxy(this,null)):0!=(33554432&a)?t._async.invoke(this._promiseFulfilled,this,o._value()):0!=(16777216&a)?t._async.invoke(this._promiseRejected,this,o._reason()):this._promiseCancelled()}else this._promiseRejected(new s("A value %s was yielded that could not be treated as a promise\n\n    See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},t.coroutine=function(e,t){if("function"!=typeof e)throw new s("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,r=d,i=(new Error).stack;return function(){var t=e.apply(this,arguments),o=new r(void 0,void 0,n,i),a=o.promise();return o._generator=t,o._promiseFulfilled(void 0),a}},t.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new s("expecting a function but got "+c.classString(e));f.push(e)},t.spawn=function(e){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return n("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var r=new d(e,this),i=r.promise();return r._run(t.spawn),i}}},{"./errors":12,"./util":36}],17:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util");a.canEvaluate,a.tryCatch,a.errorObj,t.join=function(){var e,t=arguments.length-1;t>0&&"function"==typeof arguments[t]&&(e=arguments[t]);var r=[].slice.call(arguments);e&&r.pop();var i=new n(r).promise();return void 0!==e?i.spread(e):i}}},{"./util":36}],18:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util"),c=s.tryCatch,l=s.errorObj,u=t._async;function f(e,n,r,i){this.constructor$(e),this._promise._captureStackTrace();var a=t._getContext();if(this._callback=s.contextBind(a,n),this._preservedValues=i===o?new Array(this.length()):null,this._limit=r,this._inFlight=0,this._queue=[],u.invoke(this._asyncInit,this,void 0),s.isArray(e))for(var c=0;c<e.length;++c){var l=e[c];l instanceof t&&l.suppressUnhandledRejections()}}function d(e,n,i,o){if("function"!=typeof n)return r("expecting a function but got "+s.classString(n));var a=0;if(void 0!==i){if("object"!=typeof i||null===i)return t.reject(new TypeError("options argument must be an object but it is "+s.classString(i)));if("number"!=typeof i.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+s.classString(i.concurrency)));a=i.concurrency}return new f(e,n,a="number"==typeof a&&isFinite(a)&&a>=1?a:0,o).promise()}s.inherits(f,n),f.prototype._asyncInit=function(){this._init$(void 0,-2)},f.prototype._init=function(){},f.prototype._promiseFulfilled=function(e,n){var r=this._values,o=this.length(),s=this._preservedValues,u=this._limit;if(n<0){if(r[n=-1*n-1]=e,u>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(u>=1&&this._inFlight>=u)return r[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var f=this._promise,d=this._callback,p=f._boundValue();f._pushContext();var h=c(d).call(p,e,n,o),m=f._popContext();if(a.checkForgottenReturns(h,m,null!==s?"Promise.filter":"Promise.map",f),h===l)return this._reject(h.e),!0;var b=i(h,this._promise);if(b instanceof t){var y=(b=b._target())._bitField;if(0==(50397184&y))return u>=1&&this._inFlight++,r[n]=b,b._proxy(this,-1*(n+1)),!1;if(0==(33554432&y))return 0!=(16777216&y)?(this._reject(b._reason()),!0):(this._cancel(),!0);h=b._value()}r[n]=h}return++this._totalResolved>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},f.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight<t;){if(this._isResolved())return;var r=e.pop();this._promiseFulfilled(n[r],r)}},f.prototype._filter=function(e,t){for(var n=t.length,r=new Array(n),i=0,o=0;o<n;++o)e[o]&&(r[i++]=t[o]);r.length=i,this._resolve(r)},f.prototype.preservedValues=function(){return this._preservedValues},t.prototype.map=function(e,t){return d(this,e,t,null)},t.map=function(e,t,n,r){return d(e,t,n,r)}}},{"./util":36}],19:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util"),s=a.tryCatch;t.method=function(e){if("function"!=typeof e)throw new t.TypeError("expecting a function but got "+a.classString(e));return function(){var r=new t(n);r._captureStackTrace(),r._pushContext();var i=s(e).apply(this,arguments),a=r._popContext();return o.checkForgottenReturns(i,a,"Promise.method",r),r._resolveFromSyncValue(i),r}},t.attempt=t.try=function(e){if("function"!=typeof e)return i("expecting a function but got "+a.classString(e));var r,c=new t(n);if(c._captureStackTrace(),c._pushContext(),arguments.length>1){o.deprecated("calling Promise.try with more than 1 argument");var l=arguments[1],u=arguments[2];r=a.isArray(l)?s(e).apply(u,l):s(e).call(u,l)}else r=s(e)();var f=c._popContext();return o.checkForgottenReturns(r,f,"Promise.try",c),c._resolveFromSyncValue(r),c},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){"use strict";var r=e("./util"),i=r.maybeWrapAsError,o=e("./errors").OperationalError,a=e("./es5"),s=/^(?:name|message|stack|cause)$/;function c(e){var t;if(function(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}(e)){(t=new o(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=a.keys(e),i=0;i<n.length;++i){var c=n[i];s.test(c)||(t[c]=e[c])}return t}return r.markAsOriginatingFromRejection(e),e}t.exports=function(e,t){return function(n,r){if(null!==e){if(n){var o=c(i(n));e._attachExtraTrace(o),e._reject(o)}else if(t){var a=[].slice.call(arguments,1);e._fulfill(a)}else e._fulfill(r);e=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(e,t,n){"use strict";t.exports=function(t){var n=e("./util"),r=t._async,i=n.tryCatch,o=n.errorObj;function a(e,t){if(!n.isArray(e))return s.call(this,e,t);var a=i(t).apply(this._boundValue(),[null].concat(e));a===o&&r.throwLater(a.e)}function s(e,t){var n=this._boundValue(),a=void 0===e?i(t).call(n,null):i(t).call(n,null,e);a===o&&r.throwLater(a.e)}function c(e,t){if(!e){var n=new Error(e+"");n.cause=e,e=n}var a=i(t).call(this._boundValue(),e);a===o&&r.throwLater(a.e)}t.prototype.asCallback=t.prototype.nodeify=function(e,t){if("function"==typeof e){var n=s;void 0!==t&&Object(t).spread&&(n=a),this._then(n,c,void 0,this,e)}return this}}},{"./util":36}],22:[function(e,n,r){"use strict";n.exports=function(){var r=function(){return new g("circular promise resolution chain\n\n    See http://goo.gl/MqrFmX\n")},i=function(){return new j.PromiseInspection(this._target())},o=function(e){return j.reject(new g(e))};function a(){}var s={},c=e("./util");c.setReflectHandler(i);var l=function(){var e=t.domain;return void 0===e?null:e},u=function(){return{domain:l(),async:null}},f=c.isNode&&c.nodeSupportsAsyncResource?e("async_hooks").AsyncResource:null,d=function(){return{domain:l(),async:new f("Bluebird::Promise")}},p=c.isNode?u:function(){return null};c.notEnumerableProp(j,"_getContext",p);var h=e("./es5"),m=e("./async"),b=new m;h.defineProperty(j,"_async",{value:b});var y=e("./errors"),g=j.TypeError=y.TypeError;j.RangeError=y.RangeError;var v=j.CancellationError=y.CancellationError;j.TimeoutError=y.TimeoutError,j.OperationalError=y.OperationalError,j.RejectionError=y.OperationalError,j.AggregateError=y.AggregateError;var w=function(){},_={},k={},x=e("./thenables")(j,w),S=e("./promise_array")(j,w,x,o,a),O=e("./context")(j),E=O.create,T=e("./debuggability")(j,O,(function(){p=d,c.notEnumerableProp(j,"_getContext",d)}),(function(){p=u,c.notEnumerableProp(j,"_getContext",u)})),A=(T.CapturedTrace,e("./finally")(j,x,k)),M=e("./catch_filter")(k),I=e("./nodeback"),P=c.errorObj,C=c.tryCatch;function j(e){e!==w&&function(e,t){if(null==e||e.constructor!==j)throw new g("the promise constructor cannot be invoked directly\n\n    See http://goo.gl/MqrFmX\n");if("function"!=typeof t)throw new g("expecting a function but got "+c.classString(t))}(this,e),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(e),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function D(e){this.promise._resolveCallback(e)}function R(e){this.promise._rejectCallback(e,!1)}function N(e){var t=new j(w);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return j.prototype.toString=function(){return"[object Promise]"},j.prototype.caught=j.prototype.catch=function(e){var t=arguments.length;if(t>1){var n,r=new Array(t-1),i=0;for(n=0;n<t-1;++n){var a=arguments[n];if(!c.isObject(a))return o("Catch statement predicate: expecting an object but got "+c.classString(a));r[i++]=a}if(r.length=i,"function"!=typeof(e=arguments[n]))throw new g("The last argument to .catch() must be a function, got "+c.toString(e));return this.then(void 0,M(r,e,this))}return this.then(void 0,e)},j.prototype.reflect=function(){return this._then(i,i,void 0,this,void 0)},j.prototype.then=function(e,t){if(T.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+c.classString(e);arguments.length>1&&(n+=", "+c.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},j.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},j.prototype.spread=function(e){return"function"!=typeof e?o("expecting a function but got "+c.classString(e)):this.all()._then(e,void 0,void 0,_,void 0)},j.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},j.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new S(this).promise()},j.prototype.error=function(e){return this.caught(c.originatesFromRejection,e)},j.getNewLibraryCopy=n.exports,j.is=function(e){return e instanceof j},j.fromNode=j.fromCallback=function(e){var t=new j(w);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=C(e)(I(t,n));return r===P&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},j.all=function(e){return new S(e).promise()},j.cast=function(e){var t=x(e);return t instanceof j||((t=new j(w))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},j.resolve=j.fulfilled=j.cast,j.reject=j.rejected=function(e){var t=new j(w);return t._captureStackTrace(),t._rejectCallback(e,!0),t},j.setScheduler=function(e){if("function"!=typeof e)throw new g("expecting a function but got "+c.classString(e));return b.setScheduler(e)},j.prototype._then=function(e,t,n,r,i){var o=void 0!==i,a=o?i:new j(w),s=this._target(),l=s._bitField;o||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&l)?this._boundValue():s===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var u=p();if(0!=(50397184&l)){var f,d,h=s._settlePromiseCtx;0!=(33554432&l)?(d=s._rejectionHandler0,f=e):0!=(16777216&l)?(d=s._fulfillmentHandler0,f=t,s._unsetRejectionIsUnhandled()):(h=s._settlePromiseLateCancellationObserver,d=new v("late cancellation observer"),s._attachExtraTrace(d),f=t),b.invoke(h,s,{handler:c.contextBind(u,f),promise:a,receiver:r,value:d})}else s._addCallbacks(e,t,a,r,u);return a},j.prototype._length=function(){return 65535&this._bitField},j.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},j.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},j.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},j.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},j.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},j.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},j.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},j.prototype._isFinal=function(){return(4194304&this._bitField)>0},j.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},j.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},j.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},j.prototype._setAsyncGuaranteed=function(){if(!b.hasCustomScheduler()){var e=this._bitField;this._bitField=e|(536870912&e)>>2^134217728}},j.prototype._setNoAsyncGuarantee=function(){this._bitField=-134217729&(536870912|this._bitField)},j.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==s)return void 0===t&&this._isBound()?this._boundValue():t},j.prototype._promiseAt=function(e){return this[4*e-4+2]},j.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},j.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},j.prototype._boundValue=function(){},j.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);void 0===i&&(i=s),this._addCallbacks(t,n,r,i,null)},j.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=s),this._addCallbacks(n,r,i,o,null)},j.prototype._addCallbacks=function(e,t,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof e&&(this._fulfillmentHandler0=c.contextBind(i,e)),"function"==typeof t&&(this._rejectionHandler0=c.contextBind(i,t));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"==typeof e&&(this[a+0]=c.contextBind(i,e)),"function"==typeof t&&(this[a+1]=c.contextBind(i,t))}return this._setLength(o+1),o},j.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},j.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(r(),!1);var n=x(e,this);if(!(n instanceof j))return this._fulfill(e);t&&this._propagateFrom(n,2);var i=n._target();if(i!==this){var o=i._bitField;if(0==(50397184&o)){var a=this._length();a>0&&i._migrateCallback0(this);for(var s=1;s<a;++s)i._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(n)}else if(0!=(33554432&o))this._fulfill(i._value());else if(0!=(16777216&o))this._reject(i._reason());else{var c=new v("late cancellation observer");i._attachExtraTrace(c),this._reject(c)}}else this._reject(r())}},j.prototype._rejectCallback=function(e,t,n){var r=c.ensureErrorObject(e),i=r===e;if(!i&&!n&&T.warnings()){var o="a promise was rejected with a non-error: "+c.classString(e);this._warn(o,!0)}this._attachExtraTrace(r,!!t&&i),this._reject(e)},j.prototype._resolveFromExecutor=function(e){if(e!==w){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(e,(function(e){t._resolveCallback(e)}),(function(e){t._rejectCallback(e,n)}));n=!1,this._popContext(),void 0!==r&&t._rejectCallback(r,!0)}},j.prototype._settlePromiseFromHandler=function(e,t,n,r){var i=r._bitField;if(0==(65536&i)){var o;r._pushContext(),t===_?n&&"number"==typeof n.length?o=C(e).apply(this._boundValue(),n):(o=P).e=new g("cannot .spread() a non-array: "+c.classString(n)):o=C(e).call(t,n);var a=r._popContext();0==(65536&(i=r._bitField))&&(o===k?r._reject(n):o===P?r._rejectCallback(o.e,!1):(T.checkForgottenReturns(o,a,"",r,this),r._resolveCallback(o)))}},j.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},j.prototype._followee=function(){return this._rejectionHandler0},j.prototype._setFollowee=function(e){this._rejectionHandler0=e},j.prototype._settlePromise=function(e,t,n,r){var o=e instanceof j,s=this._bitField,c=0!=(134217728&s);0!=(65536&s)?(o&&e._invokeInternalOnCancel(),n instanceof A&&n.isFinallyHandler()?(n.cancelPromise=e,C(t).call(n,r)===P&&e._reject(P.e)):t===i?e._fulfill(i.call(n)):n instanceof a?n._promiseCancelled(e):o||e instanceof S?e._cancel():n.cancel()):"function"==typeof t?o?(c&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,n,r,e)):t.call(n,r,e):n instanceof a?n._isResolved()||(0!=(33554432&s)?n._promiseFulfilled(r,e):n._promiseRejected(r,e)):o&&(c&&e._setAsyncGuaranteed(),0!=(33554432&s)?e._fulfill(r):e._reject(r))},j.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,r=e.receiver,i=e.value;"function"==typeof t?n instanceof j?this._settlePromiseFromHandler(t,r,i,n):t.call(r,i,n):n instanceof j&&n._reject(i)},j.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},j.prototype._settlePromise0=function(e,t,n){var r=this._promise0,i=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,e,i,t)},j.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},j.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var n=r();return this._attachExtraTrace(n),this._reject(n)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():b.settlePromises(this),this._dereferenceTrace())}},j.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return b.fatalError(e,c.isNode);(65535&t)>0?b.settlePromises(this):this._ensurePossibleRejectionHandled()}},j.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var r=this._fulfillmentHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},j.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var r=this._rejectionHandlerAt(n),i=this._promiseAt(n),o=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(i,r,o,t)}},j.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},j.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&h.defineProperty(j.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),j.defer=j.pending=function(){return T.deprecated("Promise.defer","new Promise"),{promise:new j(w),resolve:D,reject:R}},c.notEnumerableProp(j,"_makeSelfResolutionError",r),e("./method")(j,w,x,o,T),e("./bind")(j,w,x,T),e("./cancel")(j,S,o,T),e("./direct_resolve")(j),e("./synchronous_inspection")(j),e("./join")(j,S,x,w,b),j.Promise=j,j.version="3.7.2",e("./call_get.js")(j),e("./generators.js")(j,o,w,x,a,T),e("./map.js")(j,S,o,x,w,T),e("./nodeify.js")(j),e("./promisify.js")(j,w),e("./props.js")(j,S,x,o),e("./race.js")(j,w,x,o),e("./reduce.js")(j,S,o,x,w,T),e("./settle.js")(j,S,T),e("./some.js")(j,S,o),e("./timers.js")(j,w,T),e("./using.js")(j,o,x,E,w,T),e("./any.js")(j),e("./each.js")(j,w),e("./filter.js")(j,w),c.toFastProperties(j),c.toFastProperties(j.prototype),N({a:1}),N({b:2}),N({c:3}),N(1),N((function(){})),N(void 0),N(!1),N(new j(w)),T.setBounds(m.firstLineError,c.lastLineError),j}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36,async_hooks:void 0}],23:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util");function s(e){var r=this._promise=new t(n);e instanceof t&&(r._propagateFrom(e,3),e.suppressUnhandledRejections()),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.isArray,a.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(n,o){var s=r(this._values,this._promise);if(s instanceof t){var c=(s=s._target())._bitField;if(this._values=s,0==(50397184&c))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,o);if(0==(33554432&c))return 0!=(16777216&c)?this._reject(s._reason()):this._cancel();s=s._value()}if(null!==(s=a.asArray(s)))0!==s.length?this._iterate(s):-5===o?this._resolveEmptyArray():this._resolve(function(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}(o));else{var l=i("expecting an array or an iterable object but got "+a.classString(s)).reason();this._promise._rejectCallback(l,!1)}},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s<n;++s){var c=r(e[s],i);a=c instanceof t?(c=c._target())._bitField:null,o?null!==a&&c.suppressUnhandledRejections():null!==a?0==(50397184&a)?(c._proxy(this,s),this._values[s]=c):o=0!=(33554432&a)?this._promiseFulfilled(c._value(),s):0!=(16777216&a)?this._promiseRejected(c._reason(),s):this._promiseCancelled(s):o=this._promiseFulfilled(c,s)}o||i._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},s.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},s.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n<e.length;++n)e[n]instanceof t&&e[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(e){return e},s}},{"./util":36}],24:[function(e,t,n){"use strict";t.exports=function(t,n){var r={},i=e("./util"),o=e("./nodeback"),a=i.withAppended,s=i.maybeWrapAsError,c=i.canEvaluate,l=e("./errors").TypeError,u={__isPromisified__:!0},f=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),d=function(e){return i.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function p(e){return!f.test(e)}function h(e){try{return!0===e.__isPromisified__}catch(e){return!1}}function m(e,t,n){var r=i.getDataPropertyOrDefault(e,t+n,u);return!!r&&h(r)}function b(e,t,n,r){for(var o=i.inheritedDataKeys(e),a=[],s=0;s<o.length;++s){var c=o[s],u=e[c],f=r===d||d(c);"function"!=typeof u||h(u)||m(e,c,t)||!r(c,u,e,f)||a.push(c,u)}return function(e,t,n){for(var r=0;r<e.length;r+=2){var i=e[r];if(n.test(i))for(var o=i.replace(n,""),a=0;a<e.length;a+=2)if(e[a]===o)throw new l("Cannot promisify an API that has normal methods with '%s'-suffix\n\n    See http://goo.gl/MqrFmX\n".replace("%s",t))}}(a,t,n),a}var y=c?void 0:function(e,c,l,u,f,d){var p=function(){return this}(),h=e;function m(){var i=c;c===r&&(i=this);var l=new t(n);l._captureStackTrace();var u="string"==typeof h&&this!==p?this[h]:e,f=o(l,d);try{u.apply(i,a(arguments,f))}catch(e){l._rejectCallback(s(e),!0,!0)}return l._isFateSealed()||l._setAsyncGuaranteed(),l}return"string"==typeof h&&(e=u),i.notEnumerableProp(m,"__isPromisified__",!0),m};function g(e,t,n,o,a){for(var s=new RegExp(t.replace(/([$])/,"\\$")+"$"),c=b(e,t,s,n),l=0,u=c.length;l<u;l+=2){var f=c[l],d=c[l+1],p=f+t;if(o===y)e[p]=y(f,r,f,d,t,a);else{var h=o(d,(function(){return y(f,r,f,d,t,a)}));i.notEnumerableProp(h,"__isPromisified__",!0),e[p]=h}}return i.toFastProperties(e),e}t.promisify=function(e,t){if("function"!=typeof e)throw new l("expecting a function but got "+i.classString(e));if(h(e))return e;var n=function(e,t,n){return y(e,t,void 0,e,null,n)}(e,void 0===(t=Object(t)).context?r:t.context,!!t.multiArgs);return i.copyDescriptors(e,n,p),n},t.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!=typeof e)throw new l("the target of promisifyAll must be an object or a function\n\n    See http://goo.gl/MqrFmX\n");var n=!!(t=Object(t)).multiArgs,r=t.suffix;"string"!=typeof r&&(r="Async");var o=t.filter;"function"!=typeof o&&(o=d);var a=t.promisifier;if("function"!=typeof a&&(a=y),!i.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n    See http://goo.gl/MqrFmX\n");for(var s=i.inheritedDataKeys(e),c=0;c<s.length;++c){var u=e[s[c]];"constructor"!==s[c]&&i.isClass(u)&&(g(u.prototype,r,o,a,n),g(u,r,o,a,n))}return g(e,r,o,a,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o,a=e("./util"),s=a.isObject,c=e("./es5");"function"==typeof Map&&(o=Map);var l=function(){var e=0,t=0;function n(n,r){this[e]=n,this[e+t]=r,e++}return function(r){t=r.size,e=0;var i=new Array(2*r.size);return r.forEach(n,i),i}}();function u(e){var t,n=!1;if(void 0!==o&&e instanceof o)t=l(e),n=!0;else{var r=c.keys(e),i=r.length;t=new Array(2*i);for(var a=0;a<i;++a){var s=r[a];t[a]=e[s],t[a+i]=s}}this.constructor$(t),this._isMap=n,this._init$(void 0,n?-6:-3)}function f(e){var n,o=r(e);return s(o)?(n=o instanceof t?o._then(t.props,void 0,void 0,void 0,void 0):new u(o).promise(),o instanceof t&&n._propagateFrom(o,2),n):i("cannot await properties of a non-object\n\n    See http://goo.gl/MqrFmX\n")}a.inherits(u,n),u.prototype._init=function(){},u.prototype._promiseFulfilled=function(e,t){if(this._values[t]=e,++this._totalResolved>=this._length){var n;if(this._isMap)n=function(e){for(var t=new o,n=e.length/2|0,r=0;r<n;++r){var i=e[n+r],a=e[r];t.set(i,a)}return t}(this._values);else{n={};for(var r=this.length(),i=0,a=this.length();i<a;++i)n[this._values[i+r]]=this._values[i]}return this._resolve(n),!0}return!1},u.prototype.shouldCopyValues=function(){return!1},u.prototype.getActualLength=function(e){return e>>1},t.prototype.props=function(){return f(this)},t.props=function(e){return f(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){"use strict";function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity<e},r.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1),this[this._front+t&this._capacity-1]=e,this._length=t+1},r.prototype.push=function(e,t,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var i=this._front+r-3;this._checkCapacity(r);var o=this._capacity-1;this[i+0&o]=e,this[i+1&o]=t,this[i+2&o]=n,this._length=r},r.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},r.prototype.length=function(){return this._length},r.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},r.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e,function(e,t,n,r,i){for(var o=0;o<i;++o)n[o+r]=e[o+t],e[o+t]=void 0}(this,0,this,t,this._front+this._length&t-1)},t.exports=r},{}],27:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util");function a(e,s){var c,l=r(e);if(l instanceof t)return(c=l).then((function(e){return a(e,c)}));if(null===(e=o.asArray(e)))return i("expecting an array or an iterable object but got "+o.classString(e));var u=new t(n);void 0!==s&&u._propagateFrom(s,3);for(var f=u._fulfill,d=u._reject,p=0,h=e.length;p<h;++p){var m=e[p];(void 0!==m||p in e)&&t.cast(m)._then(f,d,void 0,u,null)}return u}t.race=function(e){return a(e,void 0)},t.prototype.race=function(){return a(this,void 0)}}},{"./util":36}],28:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util"),c=s.tryCatch;function l(e,n,r,i){this.constructor$(e);var a=t._getContext();this._fn=s.contextBind(a,n),void 0!==r&&(r=t.resolve(r))._attachCancellationCallback(this),this._initialValue=r,this._currentCancellable=null,this._eachValues=i===o?Array(this._length):0===i?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function u(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function f(e,t,n,i){return"function"!=typeof t?r("expecting a function but got "+s.classString(t)):new l(e,t,n,i).promise()}function d(e){this.accum=e,this.array._gotAccum(e);var n=i(this.value,this.array._promise);return n instanceof t?(this.array._currentCancellable=n,n._then(p,void 0,void 0,this,void 0)):p.call(this,n)}function p(e){var n,r=this.array,i=r._promise,o=c(r._fn);i._pushContext(),(n=void 0!==r._eachValues?o.call(i._boundValue(),e,this.index,this.length):o.call(i._boundValue(),this.accum,e,this.index,this.length))instanceof t&&(r._currentCancellable=n);var s=i._popContext();return a.checkForgottenReturns(n,s,void 0!==r._eachValues?"Promise.each":"Promise.reduce",i),n}s.inherits(l,n),l.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==o&&this._eachValues.push(e)},l.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},l.prototype._init=function(){},l.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},l.prototype.shouldCopyValues=function(){return!1},l.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},l.prototype._resultCancelled=function(e){if(e===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel())},l.prototype._iterate=function(e){var n,r;this._values=e;var i=e.length;void 0!==this._initialValue?(n=this._initialValue,r=0):(n=t.resolve(e[0]),r=1),this._currentCancellable=n;for(var o=r;o<i;++o){var a=e[o];a instanceof t&&a.suppressUnhandledRejections()}if(!n.isRejected())for(;r<i;++r){var s={accum:null,value:e[r],index:r,length:i,array:this};n=n._then(d,void 0,void 0,s,void 0),0==(127&r)&&n._setNoAsyncGuarantee()}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(u,u,void 0,n,this)},t.prototype.reduce=function(e,t){return f(this,e,t,null)},t.reduce=function(e,t,n,r){return f(e,t,n,r)}}},{"./util":36}],29:[function(e,i,o){"use strict";var a,s,c,l,u,f=e("./util"),d=f.getNativePromise();if(f.isNode&&"undefined"==typeof MutationObserver){var p=n.setImmediate,h=t.nextTick;a=f.isRecentNode?function(e){p.call(n,e)}:function(e){h.call(t,e)}}else if("function"==typeof d&&"function"==typeof d.resolve){var m=d.resolve();a=function(e){m.then(e)}}else a="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)||!("classList"in document.documentElement)?void 0!==r?function(e){r(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:function(){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}:(s=document.createElement("div"),c={attributes:!0},l=!1,u=document.createElement("div"),new MutationObserver((function(){s.classList.toggle("foo"),l=!1})).observe(u,c),function(e){var t=new MutationObserver((function(){t.disconnect(),e()}));t.observe(s,c),l||(l=!0,u.classList.toggle("foo"))});i.exports=a},{"./util":36}],30:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=t.PromiseInspection;function o(e){this.constructor$(e)}e("./util").inherits(o,n),o.prototype._promiseResolved=function(e,t){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(e,t){var n=new i;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},o.prototype._promiseRejected=function(e,t){var n=new i;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new o(e).promise()},t.allSettled=function(e){return new o(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=e("./errors").RangeError,a=e("./errors").AggregateError,s=i.isArray,c={};function l(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function u(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n    See http://goo.gl/MqrFmX\n");var n=new l(e),i=n.promise();return n.setHowMany(t),n.init(),i}i.inherits(l,n),l.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},l.prototype.init=function(){this._initialized=!0,this._init()},l.prototype.setUnwrap=function(){this._unwrap=!0},l.prototype.howMany=function(){return this._howMany},l.prototype.setHowMany=function(e){this._howMany=e},l.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},l.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},l.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},l.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t<this._values.length;++t)this._values[t]!==c&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},l.prototype._fulfilled=function(){return this._totalResolved},l.prototype._rejected=function(){return this._values.length-this.length()},l.prototype._addRejected=function(e){this._values.push(e)},l.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},l.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},l.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new o(t)},l.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return u(e,t)},t.prototype.some=function(e){return u(this,e)},t._SomePromiseArray=l}},{"./errors":12,"./util":36}],32:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){"use strict";t.exports=function(t,n){var r=e("./util"),i=r.errorObj,o=r.isObject,a={}.hasOwnProperty;return function(e,s){if(o(e)){if(e instanceof t)return e;var c=function(e){try{return function(e){return e.then}(e)}catch(e){return i.e=e,i}}(e);if(c===i){s&&s._pushContext();var l=t.reject(c.e);return s&&s._popContext(),l}if("function"==typeof c)return function(e){try{return a.call(e,"_promise0")}catch(e){return!1}}(e)?(l=new t(n),e._then(l._fulfill,l._reject,void 0,l,null),l):function(e,o,a){var s=new t(n),c=s;a&&a._pushContext(),s._captureStackTrace(),a&&a._popContext();var l=r.tryCatch(o).call(e,(function(e){s&&(s._resolveCallback(e),s=null)}),(function(e){s&&(s._rejectCallback(e,!1,!0),s=null)}));return s&&l===i&&(s._rejectCallback(l.e,!0,!0),s=null),c}(e,c,s)}return e}}},{"./util":36}],34:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=t.TimeoutError;function a(e){this.handle=e}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return c(+this).thenReturn(e)},c=t.delay=function(e,i){var o,c;return void 0!==i?(o=t.resolve(i)._then(s,null,null,e,void 0),r.cancellation()&&i instanceof t&&o._setOnCancel(i)):(o=new t(n),c=setTimeout((function(){o._fulfill()}),+e),r.cancellation()&&o._setOnCancel(new a(c)),o._captureStackTrace()),o._setAsyncGuaranteed(),o};function l(e){return clearTimeout(this.handle),e}function u(e){throw clearTimeout(this.handle),e}t.prototype.delay=function(e){return c(e,this)},t.prototype.timeout=function(e,t){var n,s;e=+e;var c=new a(setTimeout((function(){n.isPending()&&function(e,t,n){var r;r="string"!=typeof t?t instanceof Error?t:new o("operation timed out"):new o(t),i.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()}(n,t,s)}),e));return r.cancellation()?(s=this.then(),(n=s._then(l,u,void 0,c,void 0))._setOnCancel(c)):n=this._then(l,u,void 0,c,void 0),n}}},{"./util":36}],35:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util"),c=e("./errors").TypeError,l=e("./util").inherits,u=s.errorObj,f=s.tryCatch,d={};function p(e){setTimeout((function(){throw e}),0)}function h(e,n){var i=0,a=e.length,s=new t(o);return function o(){if(i>=a)return s._fulfill();var c=function(e){var t=r(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(e[i++]);if(c instanceof t&&c._isDisposable()){try{c=r(c._getDisposer().tryDispose(n),e.promise)}catch(e){return p(e)}if(c instanceof t)return c._then(o,p,null,null,null)}o()}(),s}function m(e,t,n){this._data=e,this._promise=t,this._context=n}function b(e,t,n){this.constructor$(e,t,n)}function y(e){return m.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function g(e){this.length=e,this.promise=null,this[e-1]=null}m.prototype.data=function(){return this._data},m.prototype.promise=function(){return this._promise},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():d},m.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==d?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},m.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},l(b,m),b.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},g.prototype._resultCancelled=function(){for(var e=this.length,n=0;n<e;++n){var r=this[n];r instanceof t&&r.cancel()}},t.using=function(){var e=arguments.length;if(e<2)return n("you must pass at least 2 arguments to Promise.using");var i,o=arguments[e-1];if("function"!=typeof o)return n("expecting a function but got "+s.classString(o));var c=!0;2===e&&Array.isArray(arguments[0])?(e=(i=arguments[0]).length,c=!1):(i=arguments,e--);for(var l=new g(e),d=0;d<e;++d){var p=i[d];if(m.isDisposer(p)){var b=p;(p=p.promise())._setDisposable(b)}else{var v=r(p);v instanceof t&&(p=v._then(y,null,null,{resources:l,index:d},void 0))}l[d]=p}var w=new Array(l.length);for(d=0;d<w.length;++d)w[d]=t.resolve(l[d]).reflect();var _=t.all(w).then((function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return u.e=n.error(),u;if(!n.isFulfilled())return void _.cancel();e[t]=n.value()}k._pushContext(),o=f(o);var r=c?o.apply(void 0,e):o(e),i=k._popContext();return a.checkForgottenReturns(r,i,"Promise.using",k),r})),k=_.lastly((function(){var e=new t.PromiseInspection(_);return h(l,e)}));return l.promise=k,k._setOnCancel(l),k},t.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},t.prototype._isDisposable=function(){return(131072&this._bitField)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new b(e,this,i());throw new c}}},{"./errors":12,"./util":36}],36:[function(e,r,i){"use strict";var o=e("./es5"),a="undefined"==typeof navigator,s={e:{}},c,l="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:void 0!==this?this:null;function u(){try{var e=c;return c=null,e.apply(this,arguments)}catch(e){return s.e=e,s}}function f(e){return c=e,u}var d=function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype};function p(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function h(e){return"function"==typeof e||"object"==typeof e&&null!==e}function m(e){return p(e)?new Error(T(e)):e}function b(e,t){var n,r=e.length,i=new Array(r+1);for(n=0;n<r;++n)i[n]=e[n];return i[n]=t,i}function y(e,t,n){if(!o.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var r=Object.getOwnPropertyDescriptor(e,t);return null!=r?null==r.get&&null==r.set?r.value:n:void 0}function g(e,t,n){if(p(e))return e;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return o.defineProperty(e,t,r),e}function v(e){throw e}var w=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if(o.isES5){var n=Object.getOwnPropertyNames;return function(e){for(var r=[],i=Object.create(null);null!=e&&!t(e);){var a;try{a=n(e)}catch(e){return r}for(var s=0;s<a.length;++s){var c=a[s];if(!i[c]){i[c]=!0;var l=Object.getOwnPropertyDescriptor(e,c);null!=l&&null==l.get&&null==l.set&&r.push(c)}}e=o.getPrototypeOf(e)}return r}}var r={}.hasOwnProperty;return function(n){if(t(n))return[];var i=[];e:for(var o in n)if(r.call(n,o))i.push(o);else{for(var a=0;a<e.length;++a)if(r.call(e[a],o))continue e;i.push(o)}return i}}(),_=/this\s*\.\s*\S+\s*=/;function k(e){try{if("function"==typeof e){var t=o.names(e.prototype),n=o.isES5&&t.length>1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),i=_.test(e+"")&&o.names(e).length>0;if(n||r||i)return!0}return!1}catch(e){return!1}}function x(e){function t(){}t.prototype=e;var n=new t;function r(){return typeof n.foo}return r(),r(),e}var S=/^[a-z$_][a-z$_0-9]*$/i;function O(e){return S.test(e)}function E(e,t,n){for(var r=new Array(e),i=0;i<e;++i)r[i]=t+i+n;return r}function T(e){try{return e+""}catch(e){return"[no string representation]"}}function A(e){return e instanceof Error||null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function M(e){try{g(e,"isOperational",!0)}catch(e){}}function I(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)}function P(e){return A(e)&&o.propertyIsWritable(e,"stack")}var C="stack"in new Error?function(e){return P(e)?e:new Error(T(e))}:function(e){if(P(e))return e;try{throw new Error(T(e))}catch(e){return e}};function j(e){return{}.toString.call(e)}function D(e,t,n){for(var r=o.names(e),i=0;i<r.length;++i){var a=r[i];if(n(a))try{o.defineProperty(t,a,o.getDescriptor(e,a))}catch(e){}}}var R=function(e){return o.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var N="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,n=[],r=e[Symbol.iterator]();!(t=r.next()).done;)n.push(t.value);return n};R=function(e){return o.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?N(e):null}}var B=void 0!==t&&"[object process]"===j(t).toLowerCase(),L=void 0!==t&&void 0!==t.env,U;function F(e){return L?t.env[e]:void 0}function q(){if("function"==typeof Promise)try{if("[object Promise]"===j(new Promise((function(){}))))return Promise}catch(e){}}function z(e,t){if(null===e||"function"!=typeof t||t===U)return t;null!==e.domain&&(t=e.domain.bind(t));var n=e.async;if(null!==n){var r=t;t=function(){var e=new Array(2).concat([].slice.call(arguments));return e[0]=r,e[1]=this,n.runInAsyncScope.apply(n,e)}}return t}var V={setReflectHandler:function(e){U=e},isClass:k,isIdentifier:O,inheritedDataKeys:w,getDataPropertyOrDefault:y,thrower:v,isArray:o.isArray,asArray:R,notEnumerableProp:g,isPrimitive:p,isObject:h,isError:A,canEvaluate:a,errorObj:s,tryCatch:f,inherits:d,withAppended:b,maybeWrapAsError:m,toFastProperties:x,filledRange:E,toString:T,canAttachTrace:P,ensureErrorObject:C,originatesFromRejection:I,markAsOriginatingFromRejection:M,classString:j,copyDescriptors:D,isNode:B,hasEnvVariables:L,env:F,global:l,getNativePromise:q,contextBind:z},H;V.isRecentNode=V.isNode&&(t.versions&&t.versions.node?H=t.versions.node.split(".").map(Number):t.version&&(H=t.version.split(".").map(Number)),0===H[0]&&H[1]>10||H[0]>0),V.nodeSupportsAsyncResource=V.isNode&&function(){var t=!1;try{t="function"==typeof e("async_hooks").AsyncResource.prototype.runInAsyncScope}catch(e){t=!1}return t}(),V.isNode&&V.toFastProperties(t);try{throw new Error}catch(e){V.lastLineError=e}r.exports=V},{"./es5":13,async_hooks:void 0}]},{},[4])(4)},e.exports=i(),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(this,n(13),n(12),n(223).setImmediate)},function(e,t,n){var r=n(1256).keccak_256,i=n(875);e.exports={fromHex:function(e){e.startsWith("0x")&&(e=e.slice(2));for(var t=new Uint8Array(e.length/2),n=0;n<t.length;n++)t[n]=parseInt(e.slice(2*n,2*n+2),16);return t},parentNamehash:function(e){var t=e.indexOf(".");return-1==t?["0x"+r(i.normalize(e)),i.hash("")]:["0x"+r(i.normalize(e.slice(0,t))),i.hash(e.slice(t+1))]},construct:function(e,t){function n(){return e.apply(this,t)}return n.prototype=e.prototype,new n},strFromUtf8Ab:function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}}},function(e,t,n){(function(t,n){
279 /**
280  * [js-sha3]{@link https://github.com/emn178/js-sha3}
281  *
282  * @version 0.5.7
283  * @author Chen, Yi-Cyuan [emn178@gmail.com]
284  * @copyright Chen, Yi-Cyuan 2015-2016
285  * @license MIT
286  */
287 !function(){"use strict";var r="object"==typeof window?window:{};!r.JS_SHA3_NO_NODE_JS&&"object"==typeof t&&t.versions&&t.versions.node&&(r=n);for(var i=!r.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,o="0123456789abcdef".split(""),a=[0,8,16,24],s=[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],c=[224,256,384,512],l=["hex","buffer","arrayBuffer","array"],u=function(e,t,n){return function(r){return new _(e,t,e).update(r)[n]()}},f=function(e,t,n){return function(r,i){return new _(e,t,i).update(r)[n]()}},d=function(e,t){var n=u(e,t,"hex");n.create=function(){return new _(e,t,e)},n.update=function(e){return n.create().update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=u(e,t,i)}return n},p=[{name:"keccak",padding:[1,256,65536,16777216],bits:c,createMethod:d},{name:"sha3",padding:[6,1536,393216,100663296],bits:c,createMethod:d},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var n=f(e,t,"hex");n.create=function(n){return new _(e,t,n)},n.update=function(e,t){return n.create(t).update(e)};for(var r=0;r<l.length;++r){var i=l[r];n[i]=f(e,t,i)}return n}}],h={},m=[],b=0;b<p.length;++b)for(var y=p[b],g=y.bits,v=0;v<g.length;++v){var w=y.name+"_"+g[v];m.push(w),h[w]=y.createMethod(g[v],y.padding)}function _(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}_.prototype.update=function(e){var t="string"!=typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var n,r,i=e.length,o=this.blocks,s=this.byteCount,c=this.blockCount,l=0,u=this.s;l<i;){if(this.reset)for(this.reset=!1,o[0]=this.block,n=1;n<c+1;++n)o[n]=0;if(t)for(n=this.start;l<i&&n<s;++l)o[n>>2]|=e[l]<<a[3&n++];else for(n=this.start;l<i&&n<s;++l)(r=e.charCodeAt(l))<128?o[n>>2]|=r<<a[3&n++]:r<2048?(o[n>>2]|=(192|r>>6)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):r<55296||r>=57344?(o[n>>2]|=(224|r>>12)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]):(r=65536+((1023&r)<<10|1023&e.charCodeAt(++l)),o[n>>2]|=(240|r>>18)<<a[3&n++],o[n>>2]|=(128|r>>12&63)<<a[3&n++],o[n>>2]|=(128|r>>6&63)<<a[3&n++],o[n>>2]|=(128|63&r)<<a[3&n++]);if(this.lastByteIndex=n,n>=s){for(this.start=n-s,this.block=o[c],n=0;n<c;++n)u[n]^=o[n];k(u),this.reset=!0}else this.start=n}return this},_.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];k(r)},_.prototype.toString=_.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,a=0,s=0,c="";s<r;){for(a=0;a<t&&s<r;++a,++s)e=n[a],c+=o[e>>4&15]+o[15&e]+o[e>>12&15]+o[e>>8&15]+o[e>>20&15]+o[e>>16&15]+o[e>>28&15]+o[e>>24&15];s%t==0&&(k(n),a=0)}return i&&(e=n[a],i>0&&(c+=o[e>>4&15]+o[15&e]),i>1&&(c+=o[e>>12&15]+o[e>>8&15]),i>2&&(c+=o[e>>20&15]+o[e>>16&15])),c},_.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)c[a]=n[o];a%t==0&&k(n)}return i&&(c[o]=n[o],e=e.slice(0,s)),e},_.prototype.buffer=_.prototype.arrayBuffer,_.prototype.digest=_.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,c=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n==0&&k(r)}return o&&(e=s<<2,t=r[a],o>0&&(c[e]=255&t),o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c};var k=function(e){var t,n,r,i,o,a,c,l,u,f,d,p,h,m,b,y,g,v,w,_,k,x,S,O,E,T,A,M,I,P,C,j,D,R,N,B,L,U,F,q,z,V,H,$,K,W,G,J,Q,Y,Z,X,ee,te,ne,re,ie,oe,ae,se,ce,le,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|c>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|u>>>31),n=o^(u<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(f<<1|d>>>31),n=c^(d<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(p<<1|h>>>31),n=u^(h<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|o>>>31),n=d^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,j=e[45]<<29|e[44]>>>3,D=e[44]<<29|e[45]>>>3,O=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,A=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~y&v,e[1]=b^~g&w,e[10]=O^~T&M,e[11]=E^~A&I,e[20]=R^~B&U,e[21]=N^~L&F,e[30]=$^~W&J,e[31]=K^~G&Q,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=y^~v&_,e[3]=g^~w&k,e[12]=T^~M&P,e[13]=A^~I&C,e[22]=B^~U&q,e[23]=L^~F&z,e[32]=W^~J&Y,e[33]=G^~Q&Z,e[42]=re^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&x,e[5]=w^~k&S,e[14]=M^~P&j,e[15]=I^~C&D,e[24]=U^~q&V,e[25]=F^~z&H,e[34]=J^~Y&X,e[35]=Q^~Z&ee,e[44]=oe^~se&le,e[45]=ae^~ce&ue,e[6]=_^~x&m,e[7]=k^~S&b,e[16]=P^~j&O,e[17]=C^~D&E,e[26]=q^~V&R,e[27]=z^~H&N,e[36]=Y^~X&$,e[37]=Z^~ee&K,e[46]=se^~le&te,e[47]=ce^~ue&ne,e[8]=x^~m&y,e[9]=S^~b&g,e[18]=j^~O&T,e[19]=D^~E&A,e[28]=V^~R&B,e[29]=H^~N&L,e[38]=X^~$&W,e[39]=ee^~K&G,e[48]=le^~te&re,e[49]=ue^~ne&ie,e[0]^=s[r],e[1]^=s[r+1]};if(i)e.exports=h;else for(b=0;b<m.length;++b)r[m[b]]=h[m[b]]}()}).call(this,n(13),n(12))},function(e,t){e.exports={registryInterface:[{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"resolver",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"owner",outputs:[{name:"",type:"address"}],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"resolver",type:"address"}],name:"setResolver",outputs:[],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"label",type:"bytes32"},{name:"owner",type:"address"}],name:"setSubnodeOwner",outputs:[],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"owner",type:"address"}],name:"setOwner",outputs:[],type:"function"}],resolverInterface:[{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"addr",outputs:[{name:"",type:"address"}],type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"content",outputs:[{name:"",type:"bytes32"}],type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"}],name:"name",outputs:[{name:"",type:"string"}],type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"kind",type:"bytes32"}],name:"has",outputs:[{name:"",type:"bool"}],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"addr",type:"address"}],name:"setAddr",outputs:[],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"hash",type:"bytes32"}],name:"setContent",outputs:[],type:"function"},{constant:!1,inputs:[{name:"node",type:"bytes32"},{name:"name",type:"string"}],name:"setName",outputs:[],type:"function"},{constant:!0,inputs:[{name:"node",type:"bytes32"},{name:"contentType",type:"uint256"}],name:"ABI",outputs:[{name:"",type:"uint256"},{name:"",type:"bytes"}],payable:!1,type:"function"}]}},function(e,t,n){const r=n(1259),i=n(1260),o=n(1261),a=n(1262),s=n(1263);e.exports={DNSResolver:r,DefaultReverseResolver:i,OwnedResolver:o,PublicResolver:a,Resolver:s}},function(e){e.exports=JSON.parse('{"contractName":"DNSResolver","abi":[{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"name","type":"bytes"},{"indexed":false,"name":"resource","type":"uint16"},{"indexed":false,"name":"record","type":"bytes"}],"name":"DNSRecordChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"name","type":"bytes"},{"indexed":false,"name":"resource","type":"uint16"}],"name":"DNSRecordDeleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"}],"name":"DNSZoneCleared","type":"event"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"data","type":"bytes"}],"name":"setDNSRecords","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"name","type":"bytes32"},{"name":"resource","type":"uint16"}],"name":"dnsRecord","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"name","type":"bytes32"}],"name":"hasDNSRecords","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"}],"name":"clearDNSZone","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"}],"metadata":"{\\"compiler\\":{\\"version\\":\\"0.5.8+commit.23d335f2\\"},\\"language\\":\\"Solidity\\",\\"output\\":{\\"abi\\":[{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"}],\\"name\\":\\"supportsInterface\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bool\\"}],\\"payable\\":false,\\"stateMutability\\":\\"pure\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"data\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setDNSRecords\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"name\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"hasDNSRecords\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bool\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"name\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"resource\\",\\"type\\":\\"uint16\\"}],\\"name\\":\\"dnsRecord\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"clearDNSZone\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"name\\",\\"type\\":\\"bytes\\"},{\\"indexed\\":false,\\"name\\":\\"resource\\",\\"type\\":\\"uint16\\"},{\\"indexed\\":false,\\"name\\":\\"record\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"DNSRecordChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"name\\",\\"type\\":\\"bytes\\"},{\\"indexed\\":false,\\"name\\":\\"resource\\",\\"type\\":\\"uint16\\"}],\\"name\\":\\"DNSRecordDeleted\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"DNSZoneCleared\\",\\"type\\":\\"event\\"}],\\"devdoc\\":{\\"methods\\":{\\"clearDNSZone(bytes32)\\":{\\"params\\":{\\"node\\":\\"the namehash of the node for which to clear the zone\\"}},\\"dnsRecord(bytes32,bytes32,uint16)\\":{\\"params\\":{\\"name\\":\\"the keccak-256 hash of the fully-qualified name for which to fetch the record\\",\\"node\\":\\"the namehash of the node for which to fetch the record\\",\\"resource\\":\\"the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types\\"},\\"return\\":\\"the DNS record in wire format if present, otherwise empty\\"},\\"hasDNSRecords(bytes32,bytes32)\\":{\\"params\\":{\\"name\\":\\"the namehash of the node for which to check the records\\",\\"node\\":\\"the namehash of the node for which to check the records\\"}},\\"setDNSRecords(bytes32,bytes)\\":{\\"params\\":{\\"data\\":\\"the DNS wire format records to set\\",\\"node\\":\\"the namehash of the node for which to set the records\\"}}}},\\"userdoc\\":{\\"methods\\":{\\"clearDNSZone(bytes32)\\":{\\"notice\\":\\"Clear all information for a DNS zone.\\"},\\"dnsRecord(bytes32,bytes32,uint16)\\":{\\"notice\\":\\"Obtain a DNS record.\\"},\\"hasDNSRecords(bytes32,bytes32)\\":{\\"notice\\":\\"Check if a given node has records.\\"},\\"setDNSRecords(bytes32,bytes)\\":{\\"notice\\":\\"Set one or more DNS records.  Records are supplied in wire-format. Records with the same node/name/resource must be supplied one after the other to ensure the data is updated correctly. For example, if the data was supplied:    a.example.com IN A 1.2.3.4    a.example.com IN A 5.6.7.8    www.example.com IN CNAME a.example.com. then this would store the two A records for a.example.com correctly as a single RRSET, however if the data was supplied:    a.example.com IN A 1.2.3.4    www.example.com IN CNAME a.example.com.    a.example.com IN A 5.6.7.8 then this would store the first A record, the CNAME, then the second A record which would overwrite the first.\\"}}}},\\"settings\\":{\\"compilationTarget\\":{\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/DNSResolver.sol\\":\\"DNSResolver\\"},\\"evmVersion\\":\\"petersburg\\",\\"libraries\\":{},\\"optimizer\\":{\\"enabled\\":false,\\"runs\\":200},\\"remappings\\":[]},\\"sources\\":{\\"/home/user/Dropbox/projects/resolvers/contracts/ResolverBase.sol\\":{\\"keccak256\\":\\"0xfc7d550960829127576d6fc3080513d74ef18a6d7057d0d9262ce071890053e8\\",\\"urls\\":[\\"bzzr://81e5565403a67f558d12c787f53f40ff19a5da99c648f8a4f99f2caa449ca0e6\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/DNSResolver.sol\\":{\\"keccak256\\":\\"0x51534f5ebdcfda403b1a935f256e7f27d16b490e5b023b6e57877973daf9a4d4\\",\\"urls\\":[\\"bzzr://a81c189814102f6debd761795650d94694225b7486d490faf7d5fb6e0704ed28\\"]},\\"@ensdomains/buffer/contracts/Buffer.sol\\":{\\"keccak256\\":\\"0x1264adbd06f6e05b04539bb225063a988b7fa90343d068de60cdde6cfb6fa92d\\",\\"urls\\":[\\"bzzr://8f1cb39e242b73bb7fac1f48bf0380ccccad14f06aae9cf4f87329cc78186122\\"]},\\"@ensdomains/dnssec-oracle/contracts/BytesUtils.sol\\":{\\"keccak256\\":\\"0x4014e689ef4a36cbf7103d88286abd2a7c560c2a7af99a561c33c61bc78be27a\\",\\"urls\\":[\\"bzzr://adf984996598f1e0d446eea1eda14ed2c49ab86a4ea1ae837cf4f9d99556b9c2\\"]},\\"@ensdomains/dnssec-oracle/contracts/RRUtils.sol\\":{\\"keccak256\\":\\"0x5135591043cf38413b19f93d16f189f0f8b50b01b78642fb764635d9790cc7ca\\",\\"urls\\":[\\"bzzr://7e3a0111306a7c5640e213da22bcfac1e42b813e8d4d99ef7ea33c09747049fc\\"]}},\\"version\\":1}","bytecode":"0x","deployedBytecode":"0x","sourceMap":"","deployedSourceMap":"","source":"pragma solidity ^0.5.0;\\n\\nimport \\"../ResolverBase.sol\\";\\nimport \\"@ensdomains/dnssec-oracle/contracts/RRUtils.sol\\";\\n\\ncontract DNSResolver is ResolverBase {\\n    using RRUtils for *;\\n    using BytesUtils for bytes;\\n\\n    bytes4 constant private DNS_RECORD_INTERFACE_ID = 0xa8fa5682;\\n\\n    // DNSRecordChanged is emitted whenever a given node/name/resource\'s RRSET is updated.\\n    event DNSRecordChanged(bytes32 indexed node, bytes name, uint16 resource, bytes record);\\n    // DNSRecordDeleted is emitted whenever a given node/name/resource\'s RRSET is deleted.\\n    event DNSRecordDeleted(bytes32 indexed node, bytes name, uint16 resource);\\n    // DNSZoneCleared is emitted whenever a given node\'s zone information is cleared.\\n    event DNSZoneCleared(bytes32 indexed node);\\n\\n    // Version the mapping for each zone.  This allows users who have lost\\n    // track of their entries to effectively delete an entire zone by bumping\\n    // the version number.\\n    // node => version\\n    mapping(bytes32=>uint256) private versions;\\n\\n    // The records themselves.  Stored as binary RRSETs\\n    // node => version => name => resource => data\\n    mapping(bytes32=>mapping(uint256=>mapping(bytes32=>mapping(uint16=>bytes)))) private records;\\n\\n    // Count of number of entries for a given name.  Required for DNS resolvers\\n    // when resolving wildcards.\\n    // node => version => name => number of records\\n    mapping(bytes32=>mapping(uint256=>mapping(bytes32=>uint16))) private nameEntriesCount;\\n\\n    /**\\n     * Set one or more DNS records.  Records are supplied in wire-format.\\n     * Records with the same node/name/resource must be supplied one after the\\n     * other to ensure the data is updated correctly. For example, if the data\\n     * was supplied:\\n     *     a.example.com IN A 1.2.3.4\\n     *     a.example.com IN A 5.6.7.8\\n     *     www.example.com IN CNAME a.example.com.\\n     * then this would store the two A records for a.example.com correctly as a\\n     * single RRSET, however if the data was supplied:\\n     *     a.example.com IN A 1.2.3.4\\n     *     www.example.com IN CNAME a.example.com.\\n     *     a.example.com IN A 5.6.7.8\\n     * then this would store the first A record, the CNAME, then the second A\\n     * record which would overwrite the first.\\n     *\\n     * @param node the namehash of the node for which to set the records\\n     * @param data the DNS wire format records to set\\n     */\\n    function setDNSRecords(bytes32 node, bytes calldata data) external authorised(node) {\\n        uint16 resource = 0;\\n        uint256 offset = 0;\\n        bytes memory name;\\n        bytes memory value;\\n        bytes32 nameHash;\\n        // Iterate over the data to add the resource records\\n        for (RRUtils.RRIterator memory iter = data.iterateRRs(0); !iter.done(); iter.next()) {\\n            if (resource == 0) {\\n                resource = iter.dnstype;\\n                name = iter.name();\\n                nameHash = keccak256(abi.encodePacked(name));\\n                value = bytes(iter.rdata());\\n            } else {\\n                bytes memory newName = iter.name();\\n                if (resource != iter.dnstype || !name.equals(newName)) {\\n                    setDNSRRSet(node, name, resource, data, offset, iter.offset - offset, value.length == 0);\\n                    resource = iter.dnstype;\\n                    offset = iter.offset;\\n                    name = newName;\\n                    nameHash = keccak256(name);\\n                    value = bytes(iter.rdata());\\n                }\\n            }\\n        }\\n        if (name.length > 0) {\\n            setDNSRRSet(node, name, resource, data, offset, data.length - offset, value.length == 0);\\n        }\\n    }\\n\\n    /**\\n     * Obtain a DNS record.\\n     * @param node the namehash of the node for which to fetch the record\\n     * @param name the keccak-256 hash of the fully-qualified name for which to fetch the record\\n     * @param resource the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types\\n     * @return the DNS record in wire format if present, otherwise empty\\n     */\\n    function dnsRecord(bytes32 node, bytes32 name, uint16 resource) public view returns (bytes memory) {\\n        return records[node][versions[node]][name][resource];\\n    }\\n\\n    /**\\n     * Check if a given node has records.\\n     * @param node the namehash of the node for which to check the records\\n     * @param name the namehash of the node for which to check the records\\n     */\\n    function hasDNSRecords(bytes32 node, bytes32 name) public view returns (bool) {\\n        return (nameEntriesCount[node][versions[node]][name] != 0);\\n    }\\n\\n    /**\\n     * Clear all information for a DNS zone.\\n     * @param node the namehash of the node for which to clear the zone\\n     */\\n    function clearDNSZone(bytes32 node) public authorised(node) {\\n        versions[node]++;\\n        emit DNSZoneCleared(node);\\n    }\\n\\n    function supportsInterface(bytes4 interfaceID) public pure returns(bool) {\\n        return interfaceID == DNS_RECORD_INTERFACE_ID || super.supportsInterface(interfaceID);\\n    }\\n\\n    function setDNSRRSet(\\n        bytes32 node,\\n        bytes memory name,\\n        uint16 resource,\\n        bytes memory data,\\n        uint256 offset,\\n        uint256 size,\\n        bool deleteRecord) private\\n    {\\n        uint256 version = versions[node];\\n        bytes32 nameHash = keccak256(name);\\n        bytes memory rrData = data.substring(offset, size);\\n        if (deleteRecord) {\\n            if (records[node][version][nameHash][resource].length != 0) {\\n                nameEntriesCount[node][version][nameHash]--;\\n            }\\n            delete(records[node][version][nameHash][resource]);\\n            emit DNSRecordDeleted(node, name, resource);\\n        } else {\\n            if (records[node][version][nameHash][resource].length == 0) {\\n                nameEntriesCount[node][version][nameHash]++;\\n            }\\n            records[node][version][nameHash][resource] = rrData;\\n            emit DNSRecordChanged(node, name, resource, rrData);\\n        }\\n    }\\n}\\n","sourcePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/DNSResolver.sol","ast":{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/DNSResolver.sol","exportedSymbols":{"DNSResolver":[1458]},"id":1459,"nodeType":"SourceUnit","nodes":[{"id":1029,"literals":["solidity","^","0.5",".0"],"nodeType":"PragmaDirective","src":"0:23:9"},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/ResolverBase.sol","file":"../ResolverBase.sol","id":1030,"nodeType":"ImportDirective","scope":1459,"sourceUnit":663,"src":"25:29:9","symbolAliases":[],"unitAlias":""},{"absolutePath":"@ensdomains/dnssec-oracle/contracts/RRUtils.sol","file":"@ensdomains/dnssec-oracle/contracts/RRUtils.sol","id":1031,"nodeType":"ImportDirective","scope":1459,"sourceUnit":3703,"src":"55:57:9","symbolAliases":[],"unitAlias":""},{"baseContracts":[{"arguments":null,"baseName":{"contractScope":null,"id":1032,"name":"ResolverBase","nodeType":"UserDefinedTypeName","referencedDeclaration":662,"src":"138:12:9","typeDescriptions":{"typeIdentifier":"t_contract$_ResolverBase_$662","typeString":"contract ResolverBase"}},"id":1033,"nodeType":"InheritanceSpecifier","src":"138:12:9"}],"contractDependencies":[662],"contractKind":"contract","documentation":null,"fullyImplemented":false,"id":1458,"linearizedBaseContracts":[1458,662],"name":"DNSResolver","nodeType":"ContractDefinition","nodes":[{"id":1035,"libraryName":{"contractScope":null,"id":1034,"name":"RRUtils","nodeType":"UserDefinedTypeName","referencedDeclaration":3702,"src":"163:7:9","typeDescriptions":{"typeIdentifier":"t_contract$_RRUtils_$3702","typeString":"library RRUtils"}},"nodeType":"UsingForDirective","src":"157:20:9","typeName":null},{"id":1038,"libraryName":{"contractScope":null,"id":1036,"name":"BytesUtils","nodeType":"UserDefinedTypeName","referencedDeclaration":3081,"src":"188:10:9","typeDescriptions":{"typeIdentifier":"t_contract$_BytesUtils_$3081","typeString":"library BytesUtils"}},"nodeType":"UsingForDirective","src":"182:27:9","typeName":{"id":1037,"name":"bytes","nodeType":"ElementaryTypeName","src":"203:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}}},{"constant":true,"id":1041,"name":"DNS_RECORD_INTERFACE_ID","nodeType":"VariableDeclaration","scope":1458,"src":"215:60:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":1039,"name":"bytes4","nodeType":"ElementaryTypeName","src":"215:6:9","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"value":{"argumentTypes":null,"hexValue":"30786138666135363832","id":1040,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"265:10:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_2834978434_by_1","typeString":"int_const 2834978434"},"value":"0xa8fa5682"},"visibility":"private"},{"anonymous":false,"documentation":null,"id":1051,"name":"DNSRecordChanged","nodeType":"EventDefinition","parameters":{"id":1050,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1043,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":1051,"src":"396:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1042,"name":"bytes32","nodeType":"ElementaryTypeName","src":"396:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1045,"indexed":false,"name":"name","nodeType":"VariableDeclaration","scope":1051,"src":"418:10:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1044,"name":"bytes","nodeType":"ElementaryTypeName","src":"418:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"},{"constant":false,"id":1047,"indexed":false,"name":"resource","nodeType":"VariableDeclaration","scope":1051,"src":"430:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1046,"name":"uint16","nodeType":"ElementaryTypeName","src":"430:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":null,"visibility":"internal"},{"constant":false,"id":1049,"indexed":false,"name":"record","nodeType":"VariableDeclaration","scope":1051,"src":"447:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1048,"name":"bytes","nodeType":"ElementaryTypeName","src":"447:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"395:65:9"},"src":"373:88:9"},{"anonymous":false,"documentation":null,"id":1059,"name":"DNSRecordDeleted","nodeType":"EventDefinition","parameters":{"id":1058,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1053,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":1059,"src":"580:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1052,"name":"bytes32","nodeType":"ElementaryTypeName","src":"580:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1055,"indexed":false,"name":"name","nodeType":"VariableDeclaration","scope":1059,"src":"602:10:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1054,"name":"bytes","nodeType":"ElementaryTypeName","src":"602:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"},{"constant":false,"id":1057,"indexed":false,"name":"resource","nodeType":"VariableDeclaration","scope":1059,"src":"614:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1056,"name":"uint16","nodeType":"ElementaryTypeName","src":"614:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":null,"visibility":"internal"}],"src":"579:51:9"},"src":"557:74:9"},{"anonymous":false,"documentation":null,"id":1063,"name":"DNSZoneCleared","nodeType":"EventDefinition","parameters":{"id":1062,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1061,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":1063,"src":"743:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1060,"name":"bytes32","nodeType":"ElementaryTypeName","src":"743:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"742:22:9"},"src":"722:43:9"},{"constant":false,"id":1067,"name":"versions","nodeType":"VariableDeclaration","scope":1458,"src":"974:42:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"},"typeName":{"id":1066,"keyType":{"id":1064,"name":"bytes32","nodeType":"ElementaryTypeName","src":"982:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"974:25:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"},"valueType":{"id":1065,"name":"uint256","nodeType":"ElementaryTypeName","src":"991:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}},"value":null,"visibility":"private"},{"constant":false,"id":1077,"name":"records","nodeType":"VariableDeclaration","scope":1458,"src":"1130:92:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes))))"},"typeName":{"id":1076,"keyType":{"id":1068,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1138:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"1130:76:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes))))"},"valueType":{"id":1075,"keyType":{"id":1069,"name":"uint256","nodeType":"ElementaryTypeName","src":"1155:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Mapping","src":"1147:58:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes)))"},"valueType":{"id":1074,"keyType":{"id":1070,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1172:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"1164:40:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes))"},"valueType":{"id":1073,"keyType":{"id":1071,"name":"uint16","nodeType":"ElementaryTypeName","src":"1189:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"Mapping","src":"1181:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes)"},"valueType":{"id":1072,"name":"bytes","nodeType":"ElementaryTypeName","src":"1197:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}}}}}},"value":null,"visibility":"private"},{"constant":false,"id":1085,"name":"nameEntriesCount","nodeType":"VariableDeclaration","scope":1458,"src":"1394:85:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => uint16)))"},"typeName":{"id":1084,"keyType":{"id":1078,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1402:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"1394:60:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => uint16)))"},"valueType":{"id":1083,"keyType":{"id":1079,"name":"uint256","nodeType":"ElementaryTypeName","src":"1419:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Mapping","src":"1411:42:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$","typeString":"mapping(uint256 => mapping(bytes32 => uint16))"},"valueType":{"id":1082,"keyType":{"id":1080,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1436:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"1428:24:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint16_$","typeString":"mapping(bytes32 => uint16)"},"valueType":{"id":1081,"name":"uint16","nodeType":"ElementaryTypeName","src":"1445:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}}}}},"value":null,"visibility":"private"},{"body":{"id":1249,"nodeType":"Block","src":"2487:1179:9","statements":[{"assignments":[1096],"declarations":[{"constant":false,"id":1096,"name":"resource","nodeType":"VariableDeclaration","scope":1249,"src":"2497:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1095,"name":"uint16","nodeType":"ElementaryTypeName","src":"2497:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":null,"visibility":"internal"}],"id":1098,"initialValue":{"argumentTypes":null,"hexValue":"30","id":1097,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2515:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"nodeType":"VariableDeclarationStatement","src":"2497:19:9"},{"assignments":[1100],"declarations":[{"constant":false,"id":1100,"name":"offset","nodeType":"VariableDeclaration","scope":1249,"src":"2526:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1099,"name":"uint256","nodeType":"ElementaryTypeName","src":"2526:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"id":1102,"initialValue":{"argumentTypes":null,"hexValue":"30","id":1101,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2543:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"nodeType":"VariableDeclarationStatement","src":"2526:18:9"},{"assignments":[1104],"declarations":[{"constant":false,"id":1104,"name":"name","nodeType":"VariableDeclaration","scope":1249,"src":"2554:17:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1103,"name":"bytes","nodeType":"ElementaryTypeName","src":"2554:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"id":1105,"initialValue":null,"nodeType":"VariableDeclarationStatement","src":"2554:17:9"},{"assignments":[1107],"declarations":[{"constant":false,"id":1107,"name":"value","nodeType":"VariableDeclaration","scope":1249,"src":"2581:18:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1106,"name":"bytes","nodeType":"ElementaryTypeName","src":"2581:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"id":1108,"initialValue":null,"nodeType":"VariableDeclarationStatement","src":"2581:18:9"},{"assignments":[1110],"declarations":[{"constant":false,"id":1110,"name":"nameHash","nodeType":"VariableDeclaration","scope":1249,"src":"2609:16:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1109,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2609:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"id":1111,"initialValue":null,"nodeType":"VariableDeclarationStatement","src":"2609:16:9"},{"body":{"id":1225,"nodeType":"Block","src":"2781:736:9","statements":[{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint16","typeString":"uint16"},"id":1131,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"id":1129,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"2799:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1130,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2811:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2799:13:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":1223,"nodeType":"Block","src":"3019:488:9","statements":[{"assignments":[1162],"declarations":[{"constant":false,"id":1162,"name":"newName","nodeType":"VariableDeclaration","scope":1223,"src":"3037:20:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1161,"name":"bytes","nodeType":"ElementaryTypeName","src":"3037:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"id":1166,"initialValue":{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1163,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3060:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1164,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"name","nodeType":"MemberAccess","referencedDeclaration":3387,"src":"3060:9:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$_t_bytes_memory_ptr_$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure returns (bytes memory)"}},"id":1165,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3060:11:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"VariableDeclarationStatement","src":"3037:34:9"},{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":1176,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint16","typeString":"uint16"},"id":1170,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"id":1167,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"3093:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1168,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3105:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1169,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"dnstype","nodeType":"MemberAccess","referencedDeclaration":3214,"src":"3105:12:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"3093:24:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"argumentTypes":null,"id":1175,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"3121:21:9","subExpression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1173,"name":"newName","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1162,"src":"3134:7:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"argumentTypes":null,"id":1171,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3122:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1172,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"equals","nodeType":"MemberAccess","referencedDeclaration":2651,"src":"3122:11:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_bool_$bound_to$_t_bytes_memory_ptr_$","typeString":"function (bytes memory,bytes memory) pure returns (bool)"}},"id":1174,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3122:20:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"3093:49:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":1222,"nodeType":"IfStatement","src":"3089:404:9","trueBody":{"id":1221,"nodeType":"Block","src":"3144:349:9","statements":[{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1178,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1087,"src":"3178:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"argumentTypes":null,"id":1179,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3184:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"argumentTypes":null,"id":1180,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"3190:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},{"argumentTypes":null,"id":1181,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1089,"src":"3200:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}},{"argumentTypes":null,"id":1182,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1100,"src":"3206:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1186,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1183,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3214:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1184,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"offset","nodeType":"MemberAccess","referencedDeclaration":3212,"src":"3214:11:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"argumentTypes":null,"id":1185,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1100,"src":"3228:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3214:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1190,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1187,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1107,"src":"3236:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1188,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"3236:12:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1189,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3252:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3236:17:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_uint16","typeString":"uint16"},{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"id":1177,"name":"setDNSRRSet","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1457,"src":"3166:11:9","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint16_$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$_t_bool_$returns$__$","typeString":"function (bytes32,bytes memory,uint16,bytes memory,uint256,uint256,bool)"}},"id":1191,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3166:88:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1192,"nodeType":"ExpressionStatement","src":"3166:88:9"},{"expression":{"argumentTypes":null,"id":1196,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1193,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"3276:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1194,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3287:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1195,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"dnstype","nodeType":"MemberAccess","referencedDeclaration":3214,"src":"3287:12:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"3276:23:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":1197,"nodeType":"ExpressionStatement","src":"3276:23:9"},{"expression":{"argumentTypes":null,"id":1201,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1198,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1100,"src":"3321:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1199,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3330:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1200,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"offset","nodeType":"MemberAccess","referencedDeclaration":3212,"src":"3330:11:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3321:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1202,"nodeType":"ExpressionStatement","src":"3321:20:9"},{"expression":{"argumentTypes":null,"id":1205,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1203,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3363:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":1204,"name":"newName","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1162,"src":"3370:7:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"3363:14:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1206,"nodeType":"ExpressionStatement","src":"3363:14:9"},{"expression":{"argumentTypes":null,"id":1211,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1207,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1110,"src":"3399:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1209,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3420:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1208,"name":"keccak256","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4127,"src":"3410:9:9","typeDescriptions":{"typeIdentifier":"t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$","typeString":"function (bytes memory) pure returns (bytes32)"}},"id":1210,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3410:15:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"src":"3399:26:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"id":1212,"nodeType":"ExpressionStatement","src":"3399:26:9"},{"expression":{"argumentTypes":null,"id":1219,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1213,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1107,"src":"3447:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1215,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3461:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1216,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"rdata","nodeType":"MemberAccess","referencedDeclaration":3407,"src":"3461:10:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$_t_bytes_memory_ptr_$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure returns (bytes memory)"}},"id":1217,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3461:12:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1214,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"3455:5:9","typeDescriptions":{"typeIdentifier":"t_type$_t_bytes_storage_ptr_$","typeString":"type(bytes storage pointer)"},"typeName":"bytes"},"id":1218,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3455:19:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"3447:27:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1220,"nodeType":"ExpressionStatement","src":"3447:27:9"}]}}]},"id":1224,"nodeType":"IfStatement","src":"2795:712:9","trueBody":{"id":1160,"nodeType":"Block","src":"2814:199:9","statements":[{"expression":{"argumentTypes":null,"id":1135,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1132,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"2832:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1133,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"2843:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1134,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"dnstype","nodeType":"MemberAccess","referencedDeclaration":3214,"src":"2843:12:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"2832:23:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":1136,"nodeType":"ExpressionStatement","src":"2832:23:9"},{"expression":{"argumentTypes":null,"id":1141,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1137,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"2873:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1138,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"2880:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1139,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"name","nodeType":"MemberAccess","referencedDeclaration":3387,"src":"2880:9:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$_t_bytes_memory_ptr_$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure returns (bytes memory)"}},"id":1140,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2880:11:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"2873:18:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1142,"nodeType":"ExpressionStatement","src":"2873:18:9"},{"expression":{"argumentTypes":null,"id":1150,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1143,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1110,"src":"2909:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1147,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"2947:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"argumentTypes":null,"id":1145,"name":"abi","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4120,"src":"2930:3:9","typeDescriptions":{"typeIdentifier":"t_magic_abi","typeString":"abi"}},"id":1146,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberName":"encodePacked","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2930:16:9","typeDescriptions":{"typeIdentifier":"t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$","typeString":"function () pure returns (bytes memory)"}},"id":1148,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2930:22:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1144,"name":"keccak256","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4127,"src":"2920:9:9","typeDescriptions":{"typeIdentifier":"t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$","typeString":"function (bytes memory) pure returns (bytes32)"}},"id":1149,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2920:33:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"src":"2909:44:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"id":1151,"nodeType":"ExpressionStatement","src":"2909:44:9"},{"expression":{"argumentTypes":null,"id":1158,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1152,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1107,"src":"2971:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1154,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"2985:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1155,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"rdata","nodeType":"MemberAccess","referencedDeclaration":3407,"src":"2985:10:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$_t_bytes_memory_ptr_$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure returns (bytes memory)"}},"id":1156,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2985:12:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1153,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2979:5:9","typeDescriptions":{"typeIdentifier":"t_type$_t_bytes_storage_ptr_$","typeString":"type(bytes storage pointer)"},"typeName":"bytes"},"id":1157,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2979:19:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"2971:27:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1159,"nodeType":"ExpressionStatement","src":"2971:27:9"}]}}]},"condition":{"argumentTypes":null,"id":1124,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"2754:12:9","subExpression":{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1121,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"2755:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1122,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"done","nodeType":"MemberAccess","referencedDeclaration":3264,"src":"2755:9:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$_t_bool_$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure returns (bool)"}},"id":1123,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2755:11:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1226,"initializationExpression":{"assignments":[1115],"declarations":[{"constant":false,"id":1115,"name":"iter","nodeType":"VariableDeclaration","scope":1226,"src":"2701:30:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator"},"typeName":{"contractScope":null,"id":1114,"name":"RRUtils.RRIterator","nodeType":"UserDefinedTypeName","referencedDeclaration":3223,"src":"2701:18:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_storage_ptr","typeString":"struct RRUtils.RRIterator"}},"value":null,"visibility":"internal"}],"id":1120,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"hexValue":"30","id":1118,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2750:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"expression":{"argumentTypes":null,"id":1116,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1089,"src":"2734:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}},"id":1117,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"iterateRRs","nodeType":"MemberAccess","referencedDeclaration":3249,"src":"2734:15:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_struct$_RRIterator_$3223_memory_ptr_$bound_to$_t_bytes_memory_ptr_$","typeString":"function (bytes memory,uint256) pure returns (struct RRUtils.RRIterator memory)"}},"id":1119,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2734:18:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"nodeType":"VariableDeclarationStatement","src":"2701:51:9"},"loopExpression":{"expression":{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1125,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"2768:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1126,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"next","nodeType":"MemberAccess","referencedDeclaration":3366,"src":"2768:9:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$__$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure"}},"id":1127,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2768:11:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1128,"nodeType":"ExpressionStatement","src":"2768:11:9"},"nodeType":"ForStatement","src":"2696:821:9"},{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1230,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1227,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3530:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1228,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"3530:11:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1229,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3544:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3530:15:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":1248,"nodeType":"IfStatement","src":"3526:134:9","trueBody":{"id":1247,"nodeType":"Block","src":"3547:113:9","statements":[{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1232,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1087,"src":"3573:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"argumentTypes":null,"id":1233,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3579:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"argumentTypes":null,"id":1234,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"3585:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},{"argumentTypes":null,"id":1235,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1089,"src":"3595:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}},{"argumentTypes":null,"id":1236,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1100,"src":"3601:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1240,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1237,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1089,"src":"3609:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}},"id":1238,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"3609:11:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"argumentTypes":null,"id":1239,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1100,"src":"3623:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3609:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1244,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1241,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1107,"src":"3631:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1242,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"3631:12:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1243,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3647:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3631:17:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_uint16","typeString":"uint16"},{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"id":1231,"name":"setDNSRRSet","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1457,"src":"3561:11:9","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint16_$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$_t_bool_$returns$__$","typeString":"function (bytes32,bytes memory,uint16,bytes memory,uint256,uint256,bool)"}},"id":1245,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3561:88:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1246,"nodeType":"ExpressionStatement","src":"3561:88:9"}]}}]},"documentation":"Set one or more DNS records.  Records are supplied in wire-format.\\nRecords with the same node/name/resource must be supplied one after the\\nother to ensure the data is updated correctly. For example, if the data\\nwas supplied:\\n    a.example.com IN A 1.2.3.4\\n    a.example.com IN A 5.6.7.8\\n    www.example.com IN CNAME a.example.com.\\nthen this would store the two A records for a.example.com correctly as a\\nsingle RRSET, however if the data was supplied:\\n    a.example.com IN A 1.2.3.4\\n    www.example.com IN CNAME a.example.com.\\n    a.example.com IN A 5.6.7.8\\nthen this would store the first A record, the CNAME, then the second A\\nrecord which would overwrite the first.\\n     * @param node the namehash of the node for which to set the records\\n@param data the DNS wire format records to set","id":1250,"implemented":true,"kind":"function","modifiers":[{"arguments":[{"argumentTypes":null,"id":1092,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1087,"src":"2481:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"id":1093,"modifierName":{"argumentTypes":null,"id":1091,"name":"authorised","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":629,"src":"2470:10:9","typeDescriptions":{"typeIdentifier":"t_modifier$_t_bytes32_$","typeString":"modifier (bytes32)"}},"nodeType":"ModifierInvocation","src":"2470:16:9"}],"name":"setDNSRecords","nodeType":"FunctionDefinition","parameters":{"id":1090,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1087,"name":"node","nodeType":"VariableDeclaration","scope":1250,"src":"2426:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1086,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2426:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1089,"name":"data","nodeType":"VariableDeclaration","scope":1250,"src":"2440:19:9","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1088,"name":"bytes","nodeType":"ElementaryTypeName","src":"2440:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"2425:35:9"},"returnParameters":{"id":1094,"nodeType":"ParameterList","parameters":[],"src":"2487:0:9"},"scope":1458,"src":"2403:1263:9","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":{"id":1273,"nodeType":"Block","src":"4167:69:9","statements":[{"expression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1261,"name":"records","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1077,"src":"4184:7:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref))))"}},"id":1263,"indexExpression":{"argumentTypes":null,"id":1262,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1252,"src":"4192:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4184:13:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref)))"}},"id":1267,"indexExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1264,"name":"versions","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1067,"src":"4198:8:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"}},"id":1266,"indexExpression":{"argumentTypes":null,"id":1265,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1252,"src":"4207:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4198:14:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4184:29:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes storage ref))"}},"id":1269,"indexExpression":{"argumentTypes":null,"id":1268,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1254,"src":"4214:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4184:35:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes storage ref)"}},"id":1271,"indexExpression":{"argumentTypes":null,"id":1270,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1256,"src":"4220:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4184:45:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"functionReturnParameters":1260,"id":1272,"nodeType":"Return","src":"4177:52:9"}]},"documentation":"Obtain a DNS record.\\n@param node the namehash of the node for which to fetch the record\\n@param name the keccak-256 hash of the fully-qualified name for which to fetch the record\\n@param resource the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types\\n@return the DNS record in wire format if present, otherwise empty","id":1274,"implemented":true,"kind":"function","modifiers":[],"name":"dnsRecord","nodeType":"FunctionDefinition","parameters":{"id":1257,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1252,"name":"node","nodeType":"VariableDeclaration","scope":1274,"src":"4087:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1251,"name":"bytes32","nodeType":"ElementaryTypeName","src":"4087:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1254,"name":"name","nodeType":"VariableDeclaration","scope":1274,"src":"4101:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1253,"name":"bytes32","nodeType":"ElementaryTypeName","src":"4101:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1256,"name":"resource","nodeType":"VariableDeclaration","scope":1274,"src":"4115:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1255,"name":"uint16","nodeType":"ElementaryTypeName","src":"4115:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":null,"visibility":"internal"}],"src":"4086:45:9"},"returnParameters":{"id":1260,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1259,"name":"","nodeType":"VariableDeclaration","scope":1274,"src":"4153:12:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1258,"name":"bytes","nodeType":"ElementaryTypeName","src":"4153:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"4152:14:9"},"scope":1458,"src":"4068:168:9","stateMutability":"view","superFunction":null,"visibility":"public"},{"body":{"id":1296,"nodeType":"Block","src":"4528:75:9","statements":[{"expression":{"argumentTypes":null,"components":[{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint16","typeString":"uint16"},"id":1293,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1283,"name":"nameEntriesCount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1085,"src":"4546:16:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => uint16)))"}},"id":1285,"indexExpression":{"argumentTypes":null,"id":1284,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1276,"src":"4563:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4546:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$","typeString":"mapping(uint256 => mapping(bytes32 => uint16))"}},"id":1289,"indexExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1286,"name":"versions","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1067,"src":"4569:8:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"}},"id":1288,"indexExpression":{"argumentTypes":null,"id":1287,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1276,"src":"4578:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4569:14:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4546:38:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint16_$","typeString":"mapping(bytes32 => uint16)"}},"id":1291,"indexExpression":{"argumentTypes":null,"id":1290,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1278,"src":"4585:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4546:44:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1292,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4594:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"4546:49:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":1294,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"4545:51:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":1282,"id":1295,"nodeType":"Return","src":"4538:58:9"}]},"documentation":"Check if a given node has records.\\n@param node the namehash of the node for which to check the records\\n@param name the namehash of the node for which to check the records","id":1297,"implemented":true,"kind":"function","modifiers":[],"name":"hasDNSRecords","nodeType":"FunctionDefinition","parameters":{"id":1279,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1276,"name":"node","nodeType":"VariableDeclaration","scope":1297,"src":"4473:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1275,"name":"bytes32","nodeType":"ElementaryTypeName","src":"4473:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1278,"name":"name","nodeType":"VariableDeclaration","scope":1297,"src":"4487:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1277,"name":"bytes32","nodeType":"ElementaryTypeName","src":"4487:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"4472:28:9"},"returnParameters":{"id":1282,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1281,"name":"","nodeType":"VariableDeclaration","scope":1297,"src":"4522:4:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1280,"name":"bool","nodeType":"ElementaryTypeName","src":"4522:4:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"4521:6:9"},"scope":1458,"src":"4450:153:9","stateMutability":"view","superFunction":null,"visibility":"public"},{"body":{"id":1314,"nodeType":"Block","src":"4802:68:9","statements":[{"expression":{"argumentTypes":null,"id":1308,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"++","prefix":false,"src":"4812:16:9","subExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1305,"name":"versions","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1067,"src":"4812:8:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"}},"id":1307,"indexExpression":{"argumentTypes":null,"id":1306,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1299,"src":"4821:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"4812:14:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1309,"nodeType":"ExpressionStatement","src":"4812:16:9"},{"eventCall":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1311,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1299,"src":"4858:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"id":1310,"name":"DNSZoneCleared","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1063,"src":"4843:14:9","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_bytes32_$returns$__$","typeString":"function (bytes32)"}},"id":1312,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4843:20:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1313,"nodeType":"EmitStatement","src":"4838:25:9"}]},"documentation":"Clear all information for a DNS zone.\\n@param node the namehash of the node for which to clear the zone","id":1315,"implemented":true,"kind":"function","modifiers":[{"arguments":[{"argumentTypes":null,"id":1302,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1299,"src":"4796:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"id":1303,"modifierName":{"argumentTypes":null,"id":1301,"name":"authorised","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":629,"src":"4785:10:9","typeDescriptions":{"typeIdentifier":"t_modifier$_t_bytes32_$","typeString":"modifier (bytes32)"}},"nodeType":"ModifierInvocation","src":"4785:16:9"}],"name":"clearDNSZone","nodeType":"FunctionDefinition","parameters":{"id":1300,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1299,"name":"node","nodeType":"VariableDeclaration","scope":1315,"src":"4764:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1298,"name":"bytes32","nodeType":"ElementaryTypeName","src":"4764:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"4763:14:9"},"returnParameters":{"id":1304,"nodeType":"ParameterList","parameters":[],"src":"4802:0:9"},"scope":1458,"src":"4742:128:9","stateMutability":"nonpayable","superFunction":null,"visibility":"public"},{"body":{"id":1331,"nodeType":"Block","src":"4949:102:9","statements":[{"expression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":1329,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"id":1324,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"id":1322,"name":"interfaceID","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1317,"src":"4966:11:9","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"id":1323,"name":"DNS_RECORD_INTERFACE_ID","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1041,"src":"4981:23:9","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"src":"4966:38:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1327,"name":"interfaceID","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1317,"src":"5032:11:9","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes4","typeString":"bytes4"}],"expression":{"argumentTypes":null,"id":1325,"name":"super","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4184,"src":"5008:5:9","typeDescriptions":{"typeIdentifier":"t_super$_DNSResolver_$1458","typeString":"contract super DNSResolver"}},"id":1326,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"supportsInterface","nodeType":"MemberAccess","referencedDeclaration":610,"src":"5008:23:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes4_$returns$_t_bool_$","typeString":"function (bytes4) pure returns (bool)"}},"id":1328,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5008:36:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"4966:78:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":1321,"id":1330,"nodeType":"Return","src":"4959:85:9"}]},"documentation":null,"id":1332,"implemented":true,"kind":"function","modifiers":[],"name":"supportsInterface","nodeType":"FunctionDefinition","parameters":{"id":1318,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1317,"name":"interfaceID","nodeType":"VariableDeclaration","scope":1332,"src":"4903:18:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":1316,"name":"bytes4","nodeType":"ElementaryTypeName","src":"4903:6:9","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"value":null,"visibility":"internal"}],"src":"4902:20:9"},"returnParameters":{"id":1321,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1320,"name":"","nodeType":"VariableDeclaration","scope":1332,"src":"4943:4:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1319,"name":"bool","nodeType":"ElementaryTypeName","src":"4943:4:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"4942:6:9"},"scope":1458,"src":"4876:175:9","stateMutability":"pure","superFunction":610,"visibility":"public"},{"body":{"id":1456,"nodeType":"Block","src":"5265:757:9","statements":[{"assignments":[1350],"declarations":[{"constant":false,"id":1350,"name":"version","nodeType":"VariableDeclaration","scope":1456,"src":"5275:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1349,"name":"uint256","nodeType":"ElementaryTypeName","src":"5275:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"id":1354,"initialValue":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1351,"name":"versions","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1067,"src":"5293:8:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"}},"id":1353,"indexExpression":{"argumentTypes":null,"id":1352,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5302:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5293:14:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"5275:32:9"},{"assignments":[1356],"declarations":[{"constant":false,"id":1356,"name":"nameHash","nodeType":"VariableDeclaration","scope":1456,"src":"5317:16:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1355,"name":"bytes32","nodeType":"ElementaryTypeName","src":"5317:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"id":1360,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1358,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1336,"src":"5346:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1357,"name":"keccak256","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4127,"src":"5336:9:9","typeDescriptions":{"typeIdentifier":"t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$","typeString":"function (bytes memory) pure returns (bytes32)"}},"id":1359,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5336:15:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"VariableDeclarationStatement","src":"5317:34:9"},{"assignments":[1362],"declarations":[{"constant":false,"id":1362,"name":"rrData","nodeType":"VariableDeclaration","scope":1456,"src":"5361:19:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1361,"name":"bytes","nodeType":"ElementaryTypeName","src":"5361:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"id":1368,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1365,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1342,"src":"5398:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"argumentTypes":null,"id":1366,"name":"size","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1344,"src":"5406:4:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"expression":{"argumentTypes":null,"id":1363,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1340,"src":"5383:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1364,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"substring","nodeType":"MemberAccess","referencedDeclaration":2858,"src":"5383:14:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_bytes_memory_ptr_$bound_to$_t_bytes_memory_ptr_$","typeString":"function (bytes memory,uint256,uint256) pure returns (bytes memory)"}},"id":1367,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5383:28:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"VariableDeclarationStatement","src":"5361:50:9"},{"condition":{"argumentTypes":null,"id":1369,"name":"deleteRecord","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1346,"src":"5425:12:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":1454,"nodeType":"Block","src":"5726:290:9","statements":[{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1423,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1412,"name":"records","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1077,"src":"5744:7:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref))))"}},"id":1414,"indexExpression":{"argumentTypes":null,"id":1413,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5752:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5744:13:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref)))"}},"id":1416,"indexExpression":{"argumentTypes":null,"id":1415,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5758:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5744:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes storage ref))"}},"id":1418,"indexExpression":{"argumentTypes":null,"id":1417,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5767:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5744:32:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes storage ref)"}},"id":1420,"indexExpression":{"argumentTypes":null,"id":1419,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5777:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5744:42:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"id":1421,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"5744:49:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1422,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5797:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"5744:54:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":1434,"nodeType":"IfStatement","src":"5740:136:9","trueBody":{"id":1433,"nodeType":"Block","src":"5800:76:9","statements":[{"expression":{"argumentTypes":null,"id":1431,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"++","prefix":false,"src":"5818:43:9","subExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1424,"name":"nameEntriesCount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1085,"src":"5818:16:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => uint16)))"}},"id":1428,"indexExpression":{"argumentTypes":null,"id":1425,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5835:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5818:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$","typeString":"mapping(uint256 => mapping(bytes32 => uint16))"}},"id":1429,"indexExpression":{"argumentTypes":null,"id":1426,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5841:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5818:31:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint16_$","typeString":"mapping(bytes32 => uint16)"}},"id":1430,"indexExpression":{"argumentTypes":null,"id":1427,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5850:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"5818:41:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":1432,"nodeType":"ExpressionStatement","src":"5818:43:9"}]}},{"expression":{"argumentTypes":null,"id":1445,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1435,"name":"records","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1077,"src":"5889:7:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref))))"}},"id":1440,"indexExpression":{"argumentTypes":null,"id":1436,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5897:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5889:13:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref)))"}},"id":1441,"indexExpression":{"argumentTypes":null,"id":1437,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5903:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5889:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes storage ref))"}},"id":1442,"indexExpression":{"argumentTypes":null,"id":1438,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5912:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5889:32:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes storage ref)"}},"id":1443,"indexExpression":{"argumentTypes":null,"id":1439,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5922:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"5889:42:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":1444,"name":"rrData","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1362,"src":"5934:6:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"5889:51:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"id":1446,"nodeType":"ExpressionStatement","src":"5889:51:9"},{"eventCall":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1448,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5976:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"argumentTypes":null,"id":1449,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1336,"src":"5982:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"argumentTypes":null,"id":1450,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5988:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},{"argumentTypes":null,"id":1451,"name":"rrData","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1362,"src":"5998:6:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_uint16","typeString":"uint16"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1447,"name":"DNSRecordChanged","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1051,"src":"5959:16:9","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint16_$_t_bytes_memory_ptr_$returns$__$","typeString":"function (bytes32,bytes memory,uint16,bytes memory)"}},"id":1452,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5959:46:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1453,"nodeType":"EmitStatement","src":"5954:51:9"}]},"id":1455,"nodeType":"IfStatement","src":"5421:595:9","trueBody":{"id":1411,"nodeType":"Block","src":"5439:281:9","statements":[{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1381,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1370,"name":"records","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1077,"src":"5457:7:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref))))"}},"id":1372,"indexExpression":{"argumentTypes":null,"id":1371,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5465:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5457:13:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref)))"}},"id":1374,"indexExpression":{"argumentTypes":null,"id":1373,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5471:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5457:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes storage ref))"}},"id":1376,"indexExpression":{"argumentTypes":null,"id":1375,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5480:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5457:32:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes storage ref)"}},"id":1378,"indexExpression":{"argumentTypes":null,"id":1377,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5490:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5457:42:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"id":1379,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"5457:49:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1380,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5510:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"5457:54:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":1392,"nodeType":"IfStatement","src":"5453:136:9","trueBody":{"id":1391,"nodeType":"Block","src":"5513:76:9","statements":[{"expression":{"argumentTypes":null,"id":1389,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"--","prefix":false,"src":"5531:43:9","subExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1382,"name":"nameEntriesCount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1085,"src":"5531:16:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => uint16)))"}},"id":1386,"indexExpression":{"argumentTypes":null,"id":1383,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5548:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5531:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$","typeString":"mapping(uint256 => mapping(bytes32 => uint16))"}},"id":1387,"indexExpression":{"argumentTypes":null,"id":1384,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5554:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5531:31:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint16_$","typeString":"mapping(bytes32 => uint16)"}},"id":1388,"indexExpression":{"argumentTypes":null,"id":1385,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5563:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"5531:41:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":1390,"nodeType":"ExpressionStatement","src":"5531:43:9"}]}},{"expression":{"argumentTypes":null,"id":1403,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"delete","prefix":true,"src":"5602:50:9","subExpression":{"argumentTypes":null,"components":[{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1393,"name":"records","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1077,"src":"5609:7:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref))))"}},"id":1395,"indexExpression":{"argumentTypes":null,"id":1394,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5617:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5609:13:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref)))"}},"id":1397,"indexExpression":{"argumentTypes":null,"id":1396,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5623:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5609:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes storage ref))"}},"id":1399,"indexExpression":{"argumentTypes":null,"id":1398,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5632:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5609:32:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes storage ref)"}},"id":1401,"indexExpression":{"argumentTypes":null,"id":1400,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5642:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"5609:42:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}}],"id":1402,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"5608:44:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1404,"nodeType":"ExpressionStatement","src":"5602:50:9"},{"eventCall":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1406,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5688:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"argumentTypes":null,"id":1407,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1336,"src":"5694:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"argumentTypes":null,"id":1408,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5700:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_uint16","typeString":"uint16"}],"id":1405,"name":"DNSRecordDeleted","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1059,"src":"5671:16:9","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint16_$returns$__$","typeString":"function (bytes32,bytes memory,uint16)"}},"id":1409,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5671:38:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1410,"nodeType":"EmitStatement","src":"5666:43:9"}]}}]},"documentation":null,"id":1457,"implemented":true,"kind":"function","modifiers":[],"name":"setDNSRRSet","nodeType":"FunctionDefinition","parameters":{"id":1347,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1334,"name":"node","nodeType":"VariableDeclaration","scope":1457,"src":"5087:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1333,"name":"bytes32","nodeType":"ElementaryTypeName","src":"5087:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1336,"name":"name","nodeType":"VariableDeclaration","scope":1457,"src":"5109:17:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1335,"name":"bytes","nodeType":"ElementaryTypeName","src":"5109:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"},{"constant":false,"id":1338,"name":"resource","nodeType":"VariableDeclaration","scope":1457,"src":"5136:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1337,"name":"uint16","nodeType":"ElementaryTypeName","src":"5136:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":null,"visibility":"internal"},{"constant":false,"id":1340,"name":"data","nodeType":"VariableDeclaration","scope":1457,"src":"5161:17:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1339,"name":"bytes","nodeType":"ElementaryTypeName","src":"5161:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"},{"constant":false,"id":1342,"name":"offset","nodeType":"VariableDeclaration","scope":1457,"src":"5188:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1341,"name":"uint256","nodeType":"ElementaryTypeName","src":"5188:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":1344,"name":"size","nodeType":"VariableDeclaration","scope":1457,"src":"5212:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1343,"name":"uint256","nodeType":"ElementaryTypeName","src":"5212:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":1346,"name":"deleteRecord","nodeType":"VariableDeclaration","scope":1457,"src":"5234:17:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1345,"name":"bool","nodeType":"ElementaryTypeName","src":"5234:4:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"5077:175:9"},"returnParameters":{"id":1348,"nodeType":"ParameterList","parameters":[],"src":"5265:0:9"},"scope":1458,"src":"5057:965:9","stateMutability":"nonpayable","superFunction":null,"visibility":"private"}],"scope":1459,"src":"114:5910:9"}],"src":"0:6025:9"},"legacyAST":{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/DNSResolver.sol","exportedSymbols":{"DNSResolver":[1458]},"id":1459,"nodeType":"SourceUnit","nodes":[{"id":1029,"literals":["solidity","^","0.5",".0"],"nodeType":"PragmaDirective","src":"0:23:9"},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/ResolverBase.sol","file":"../ResolverBase.sol","id":1030,"nodeType":"ImportDirective","scope":1459,"sourceUnit":663,"src":"25:29:9","symbolAliases":[],"unitAlias":""},{"absolutePath":"@ensdomains/dnssec-oracle/contracts/RRUtils.sol","file":"@ensdomains/dnssec-oracle/contracts/RRUtils.sol","id":1031,"nodeType":"ImportDirective","scope":1459,"sourceUnit":3703,"src":"55:57:9","symbolAliases":[],"unitAlias":""},{"baseContracts":[{"arguments":null,"baseName":{"contractScope":null,"id":1032,"name":"ResolverBase","nodeType":"UserDefinedTypeName","referencedDeclaration":662,"src":"138:12:9","typeDescriptions":{"typeIdentifier":"t_contract$_ResolverBase_$662","typeString":"contract ResolverBase"}},"id":1033,"nodeType":"InheritanceSpecifier","src":"138:12:9"}],"contractDependencies":[662],"contractKind":"contract","documentation":null,"fullyImplemented":false,"id":1458,"linearizedBaseContracts":[1458,662],"name":"DNSResolver","nodeType":"ContractDefinition","nodes":[{"id":1035,"libraryName":{"contractScope":null,"id":1034,"name":"RRUtils","nodeType":"UserDefinedTypeName","referencedDeclaration":3702,"src":"163:7:9","typeDescriptions":{"typeIdentifier":"t_contract$_RRUtils_$3702","typeString":"library RRUtils"}},"nodeType":"UsingForDirective","src":"157:20:9","typeName":null},{"id":1038,"libraryName":{"contractScope":null,"id":1036,"name":"BytesUtils","nodeType":"UserDefinedTypeName","referencedDeclaration":3081,"src":"188:10:9","typeDescriptions":{"typeIdentifier":"t_contract$_BytesUtils_$3081","typeString":"library BytesUtils"}},"nodeType":"UsingForDirective","src":"182:27:9","typeName":{"id":1037,"name":"bytes","nodeType":"ElementaryTypeName","src":"203:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}}},{"constant":true,"id":1041,"name":"DNS_RECORD_INTERFACE_ID","nodeType":"VariableDeclaration","scope":1458,"src":"215:60:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":1039,"name":"bytes4","nodeType":"ElementaryTypeName","src":"215:6:9","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"value":{"argumentTypes":null,"hexValue":"30786138666135363832","id":1040,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"265:10:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_2834978434_by_1","typeString":"int_const 2834978434"},"value":"0xa8fa5682"},"visibility":"private"},{"anonymous":false,"documentation":null,"id":1051,"name":"DNSRecordChanged","nodeType":"EventDefinition","parameters":{"id":1050,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1043,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":1051,"src":"396:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1042,"name":"bytes32","nodeType":"ElementaryTypeName","src":"396:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1045,"indexed":false,"name":"name","nodeType":"VariableDeclaration","scope":1051,"src":"418:10:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1044,"name":"bytes","nodeType":"ElementaryTypeName","src":"418:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"},{"constant":false,"id":1047,"indexed":false,"name":"resource","nodeType":"VariableDeclaration","scope":1051,"src":"430:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1046,"name":"uint16","nodeType":"ElementaryTypeName","src":"430:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":null,"visibility":"internal"},{"constant":false,"id":1049,"indexed":false,"name":"record","nodeType":"VariableDeclaration","scope":1051,"src":"447:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1048,"name":"bytes","nodeType":"ElementaryTypeName","src":"447:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"395:65:9"},"src":"373:88:9"},{"anonymous":false,"documentation":null,"id":1059,"name":"DNSRecordDeleted","nodeType":"EventDefinition","parameters":{"id":1058,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1053,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":1059,"src":"580:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1052,"name":"bytes32","nodeType":"ElementaryTypeName","src":"580:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1055,"indexed":false,"name":"name","nodeType":"VariableDeclaration","scope":1059,"src":"602:10:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1054,"name":"bytes","nodeType":"ElementaryTypeName","src":"602:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"},{"constant":false,"id":1057,"indexed":false,"name":"resource","nodeType":"VariableDeclaration","scope":1059,"src":"614:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1056,"name":"uint16","nodeType":"ElementaryTypeName","src":"614:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":null,"visibility":"internal"}],"src":"579:51:9"},"src":"557:74:9"},{"anonymous":false,"documentation":null,"id":1063,"name":"DNSZoneCleared","nodeType":"EventDefinition","parameters":{"id":1062,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1061,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":1063,"src":"743:20:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1060,"name":"bytes32","nodeType":"ElementaryTypeName","src":"743:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"742:22:9"},"src":"722:43:9"},{"constant":false,"id":1067,"name":"versions","nodeType":"VariableDeclaration","scope":1458,"src":"974:42:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"},"typeName":{"id":1066,"keyType":{"id":1064,"name":"bytes32","nodeType":"ElementaryTypeName","src":"982:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"974:25:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"},"valueType":{"id":1065,"name":"uint256","nodeType":"ElementaryTypeName","src":"991:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}},"value":null,"visibility":"private"},{"constant":false,"id":1077,"name":"records","nodeType":"VariableDeclaration","scope":1458,"src":"1130:92:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes))))"},"typeName":{"id":1076,"keyType":{"id":1068,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1138:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"1130:76:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes))))"},"valueType":{"id":1075,"keyType":{"id":1069,"name":"uint256","nodeType":"ElementaryTypeName","src":"1155:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Mapping","src":"1147:58:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes)))"},"valueType":{"id":1074,"keyType":{"id":1070,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1172:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"1164:40:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes))"},"valueType":{"id":1073,"keyType":{"id":1071,"name":"uint16","nodeType":"ElementaryTypeName","src":"1189:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"Mapping","src":"1181:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes)"},"valueType":{"id":1072,"name":"bytes","nodeType":"ElementaryTypeName","src":"1197:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}}}}}},"value":null,"visibility":"private"},{"constant":false,"id":1085,"name":"nameEntriesCount","nodeType":"VariableDeclaration","scope":1458,"src":"1394:85:9","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => uint16)))"},"typeName":{"id":1084,"keyType":{"id":1078,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1402:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"1394:60:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => uint16)))"},"valueType":{"id":1083,"keyType":{"id":1079,"name":"uint256","nodeType":"ElementaryTypeName","src":"1419:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Mapping","src":"1411:42:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$","typeString":"mapping(uint256 => mapping(bytes32 => uint16))"},"valueType":{"id":1082,"keyType":{"id":1080,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1436:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"1428:24:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint16_$","typeString":"mapping(bytes32 => uint16)"},"valueType":{"id":1081,"name":"uint16","nodeType":"ElementaryTypeName","src":"1445:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}}}}},"value":null,"visibility":"private"},{"body":{"id":1249,"nodeType":"Block","src":"2487:1179:9","statements":[{"assignments":[1096],"declarations":[{"constant":false,"id":1096,"name":"resource","nodeType":"VariableDeclaration","scope":1249,"src":"2497:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1095,"name":"uint16","nodeType":"ElementaryTypeName","src":"2497:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":null,"visibility":"internal"}],"id":1098,"initialValue":{"argumentTypes":null,"hexValue":"30","id":1097,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2515:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"nodeType":"VariableDeclarationStatement","src":"2497:19:9"},{"assignments":[1100],"declarations":[{"constant":false,"id":1100,"name":"offset","nodeType":"VariableDeclaration","scope":1249,"src":"2526:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1099,"name":"uint256","nodeType":"ElementaryTypeName","src":"2526:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"id":1102,"initialValue":{"argumentTypes":null,"hexValue":"30","id":1101,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2543:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"nodeType":"VariableDeclarationStatement","src":"2526:18:9"},{"assignments":[1104],"declarations":[{"constant":false,"id":1104,"name":"name","nodeType":"VariableDeclaration","scope":1249,"src":"2554:17:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1103,"name":"bytes","nodeType":"ElementaryTypeName","src":"2554:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"id":1105,"initialValue":null,"nodeType":"VariableDeclarationStatement","src":"2554:17:9"},{"assignments":[1107],"declarations":[{"constant":false,"id":1107,"name":"value","nodeType":"VariableDeclaration","scope":1249,"src":"2581:18:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1106,"name":"bytes","nodeType":"ElementaryTypeName","src":"2581:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"id":1108,"initialValue":null,"nodeType":"VariableDeclarationStatement","src":"2581:18:9"},{"assignments":[1110],"declarations":[{"constant":false,"id":1110,"name":"nameHash","nodeType":"VariableDeclaration","scope":1249,"src":"2609:16:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1109,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2609:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"id":1111,"initialValue":null,"nodeType":"VariableDeclarationStatement","src":"2609:16:9"},{"body":{"id":1225,"nodeType":"Block","src":"2781:736:9","statements":[{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint16","typeString":"uint16"},"id":1131,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"id":1129,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"2799:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1130,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2811:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"2799:13:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":1223,"nodeType":"Block","src":"3019:488:9","statements":[{"assignments":[1162],"declarations":[{"constant":false,"id":1162,"name":"newName","nodeType":"VariableDeclaration","scope":1223,"src":"3037:20:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1161,"name":"bytes","nodeType":"ElementaryTypeName","src":"3037:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"id":1166,"initialValue":{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1163,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3060:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1164,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"name","nodeType":"MemberAccess","referencedDeclaration":3387,"src":"3060:9:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$_t_bytes_memory_ptr_$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure returns (bytes memory)"}},"id":1165,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3060:11:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"VariableDeclarationStatement","src":"3037:34:9"},{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":1176,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint16","typeString":"uint16"},"id":1170,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"id":1167,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"3093:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1168,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3105:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1169,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"dnstype","nodeType":"MemberAccess","referencedDeclaration":3214,"src":"3105:12:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"3093:24:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"argumentTypes":null,"id":1175,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"3121:21:9","subExpression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1173,"name":"newName","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1162,"src":"3134:7:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"argumentTypes":null,"id":1171,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3122:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1172,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"equals","nodeType":"MemberAccess","referencedDeclaration":2651,"src":"3122:11:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes_memory_ptr_$_t_bytes_memory_ptr_$returns$_t_bool_$bound_to$_t_bytes_memory_ptr_$","typeString":"function (bytes memory,bytes memory) pure returns (bool)"}},"id":1174,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3122:20:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"3093:49:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":1222,"nodeType":"IfStatement","src":"3089:404:9","trueBody":{"id":1221,"nodeType":"Block","src":"3144:349:9","statements":[{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1178,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1087,"src":"3178:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"argumentTypes":null,"id":1179,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3184:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"argumentTypes":null,"id":1180,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"3190:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},{"argumentTypes":null,"id":1181,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1089,"src":"3200:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}},{"argumentTypes":null,"id":1182,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1100,"src":"3206:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1186,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1183,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3214:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1184,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"offset","nodeType":"MemberAccess","referencedDeclaration":3212,"src":"3214:11:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"argumentTypes":null,"id":1185,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1100,"src":"3228:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3214:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1190,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1187,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1107,"src":"3236:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1188,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"3236:12:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1189,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3252:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3236:17:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_uint16","typeString":"uint16"},{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"id":1177,"name":"setDNSRRSet","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1457,"src":"3166:11:9","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint16_$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$_t_bool_$returns$__$","typeString":"function (bytes32,bytes memory,uint16,bytes memory,uint256,uint256,bool)"}},"id":1191,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3166:88:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1192,"nodeType":"ExpressionStatement","src":"3166:88:9"},{"expression":{"argumentTypes":null,"id":1196,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1193,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"3276:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1194,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3287:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1195,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"dnstype","nodeType":"MemberAccess","referencedDeclaration":3214,"src":"3287:12:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"3276:23:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":1197,"nodeType":"ExpressionStatement","src":"3276:23:9"},{"expression":{"argumentTypes":null,"id":1201,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1198,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1100,"src":"3321:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1199,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3330:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1200,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"offset","nodeType":"MemberAccess","referencedDeclaration":3212,"src":"3330:11:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3321:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1202,"nodeType":"ExpressionStatement","src":"3321:20:9"},{"expression":{"argumentTypes":null,"id":1205,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1203,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3363:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":1204,"name":"newName","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1162,"src":"3370:7:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"3363:14:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1206,"nodeType":"ExpressionStatement","src":"3363:14:9"},{"expression":{"argumentTypes":null,"id":1211,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1207,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1110,"src":"3399:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1209,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3420:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1208,"name":"keccak256","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4127,"src":"3410:9:9","typeDescriptions":{"typeIdentifier":"t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$","typeString":"function (bytes memory) pure returns (bytes32)"}},"id":1210,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3410:15:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"src":"3399:26:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"id":1212,"nodeType":"ExpressionStatement","src":"3399:26:9"},{"expression":{"argumentTypes":null,"id":1219,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1213,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1107,"src":"3447:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1215,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"3461:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1216,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"rdata","nodeType":"MemberAccess","referencedDeclaration":3407,"src":"3461:10:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$_t_bytes_memory_ptr_$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure returns (bytes memory)"}},"id":1217,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3461:12:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1214,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"3455:5:9","typeDescriptions":{"typeIdentifier":"t_type$_t_bytes_storage_ptr_$","typeString":"type(bytes storage pointer)"},"typeName":"bytes"},"id":1218,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3455:19:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"3447:27:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1220,"nodeType":"ExpressionStatement","src":"3447:27:9"}]}}]},"id":1224,"nodeType":"IfStatement","src":"2795:712:9","trueBody":{"id":1160,"nodeType":"Block","src":"2814:199:9","statements":[{"expression":{"argumentTypes":null,"id":1135,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1132,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"2832:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1133,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"2843:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1134,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"dnstype","nodeType":"MemberAccess","referencedDeclaration":3214,"src":"2843:12:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"src":"2832:23:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":1136,"nodeType":"ExpressionStatement","src":"2832:23:9"},{"expression":{"argumentTypes":null,"id":1141,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1137,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"2873:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1138,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"2880:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1139,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"name","nodeType":"MemberAccess","referencedDeclaration":3387,"src":"2880:9:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$_t_bytes_memory_ptr_$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure returns (bytes memory)"}},"id":1140,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2880:11:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"2873:18:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1142,"nodeType":"ExpressionStatement","src":"2873:18:9"},{"expression":{"argumentTypes":null,"id":1150,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1143,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1110,"src":"2909:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1147,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"2947:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"expression":{"argumentTypes":null,"id":1145,"name":"abi","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4120,"src":"2930:3:9","typeDescriptions":{"typeIdentifier":"t_magic_abi","typeString":"abi"}},"id":1146,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"memberName":"encodePacked","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2930:16:9","typeDescriptions":{"typeIdentifier":"t_function_abiencodepacked_pure$__$returns$_t_bytes_memory_ptr_$","typeString":"function () pure returns (bytes memory)"}},"id":1148,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2930:22:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1144,"name":"keccak256","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4127,"src":"2920:9:9","typeDescriptions":{"typeIdentifier":"t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$","typeString":"function (bytes memory) pure returns (bytes32)"}},"id":1149,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2920:33:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"src":"2909:44:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"id":1151,"nodeType":"ExpressionStatement","src":"2909:44:9"},{"expression":{"argumentTypes":null,"id":1158,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":1152,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1107,"src":"2971:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1154,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"2985:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1155,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"rdata","nodeType":"MemberAccess","referencedDeclaration":3407,"src":"2985:10:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$_t_bytes_memory_ptr_$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure returns (bytes memory)"}},"id":1156,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2985:12:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1153,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2979:5:9","typeDescriptions":{"typeIdentifier":"t_type$_t_bytes_storage_ptr_$","typeString":"type(bytes storage pointer)"},"typeName":"bytes"},"id":1157,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2979:19:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"2971:27:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1159,"nodeType":"ExpressionStatement","src":"2971:27:9"}]}}]},"condition":{"argumentTypes":null,"id":1124,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"!","prefix":true,"src":"2754:12:9","subExpression":{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1121,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"2755:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1122,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"done","nodeType":"MemberAccess","referencedDeclaration":3264,"src":"2755:9:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$_t_bool_$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure returns (bool)"}},"id":1123,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2755:11:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":1226,"initializationExpression":{"assignments":[1115],"declarations":[{"constant":false,"id":1115,"name":"iter","nodeType":"VariableDeclaration","scope":1226,"src":"2701:30:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator"},"typeName":{"contractScope":null,"id":1114,"name":"RRUtils.RRIterator","nodeType":"UserDefinedTypeName","referencedDeclaration":3223,"src":"2701:18:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_storage_ptr","typeString":"struct RRUtils.RRIterator"}},"value":null,"visibility":"internal"}],"id":1120,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"hexValue":"30","id":1118,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2750:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"expression":{"argumentTypes":null,"id":1116,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1089,"src":"2734:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}},"id":1117,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"iterateRRs","nodeType":"MemberAccess","referencedDeclaration":3249,"src":"2734:15:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$returns$_t_struct$_RRIterator_$3223_memory_ptr_$bound_to$_t_bytes_memory_ptr_$","typeString":"function (bytes memory,uint256) pure returns (struct RRUtils.RRIterator memory)"}},"id":1119,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2734:18:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"nodeType":"VariableDeclarationStatement","src":"2701:51:9"},"loopExpression":{"expression":{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"expression":{"argumentTypes":null,"id":1125,"name":"iter","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1115,"src":"2768:4:9","typeDescriptions":{"typeIdentifier":"t_struct$_RRIterator_$3223_memory_ptr","typeString":"struct RRUtils.RRIterator memory"}},"id":1126,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"next","nodeType":"MemberAccess","referencedDeclaration":3366,"src":"2768:9:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_struct$_RRIterator_$3223_memory_ptr_$returns$__$bound_to$_t_struct$_RRIterator_$3223_memory_ptr_$","typeString":"function (struct RRUtils.RRIterator memory) pure"}},"id":1127,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2768:11:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1128,"nodeType":"ExpressionStatement","src":"2768:11:9"},"nodeType":"ForStatement","src":"2696:821:9"},{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1230,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1227,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3530:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1228,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"3530:11:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":">","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1229,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3544:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3530:15:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":1248,"nodeType":"IfStatement","src":"3526:134:9","trueBody":{"id":1247,"nodeType":"Block","src":"3547:113:9","statements":[{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1232,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1087,"src":"3573:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"argumentTypes":null,"id":1233,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1104,"src":"3579:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"argumentTypes":null,"id":1234,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1096,"src":"3585:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},{"argumentTypes":null,"id":1235,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1089,"src":"3595:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}},{"argumentTypes":null,"id":1236,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1100,"src":"3601:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1240,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1237,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1089,"src":"3609:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"}},"id":1238,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"3609:11:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"-","rightExpression":{"argumentTypes":null,"id":1239,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1100,"src":"3623:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"3609:20:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1244,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":1241,"name":"value","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1107,"src":"3631:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1242,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"3631:12:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1243,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"3647:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"3631:17:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_uint16","typeString":"uint16"},{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes calldata"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_bool","typeString":"bool"}],"id":1231,"name":"setDNSRRSet","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1457,"src":"3561:11:9","typeDescriptions":{"typeIdentifier":"t_function_internal_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint16_$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$_t_bool_$returns$__$","typeString":"function (bytes32,bytes memory,uint16,bytes memory,uint256,uint256,bool)"}},"id":1245,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"3561:88:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1246,"nodeType":"ExpressionStatement","src":"3561:88:9"}]}}]},"documentation":"Set one or more DNS records.  Records are supplied in wire-format.\\nRecords with the same node/name/resource must be supplied one after the\\nother to ensure the data is updated correctly. For example, if the data\\nwas supplied:\\n    a.example.com IN A 1.2.3.4\\n    a.example.com IN A 5.6.7.8\\n    www.example.com IN CNAME a.example.com.\\nthen this would store the two A records for a.example.com correctly as a\\nsingle RRSET, however if the data was supplied:\\n    a.example.com IN A 1.2.3.4\\n    www.example.com IN CNAME a.example.com.\\n    a.example.com IN A 5.6.7.8\\nthen this would store the first A record, the CNAME, then the second A\\nrecord which would overwrite the first.\\n     * @param node the namehash of the node for which to set the records\\n@param data the DNS wire format records to set","id":1250,"implemented":true,"kind":"function","modifiers":[{"arguments":[{"argumentTypes":null,"id":1092,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1087,"src":"2481:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"id":1093,"modifierName":{"argumentTypes":null,"id":1091,"name":"authorised","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":629,"src":"2470:10:9","typeDescriptions":{"typeIdentifier":"t_modifier$_t_bytes32_$","typeString":"modifier (bytes32)"}},"nodeType":"ModifierInvocation","src":"2470:16:9"}],"name":"setDNSRecords","nodeType":"FunctionDefinition","parameters":{"id":1090,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1087,"name":"node","nodeType":"VariableDeclaration","scope":1250,"src":"2426:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1086,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2426:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1089,"name":"data","nodeType":"VariableDeclaration","scope":1250,"src":"2440:19:9","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":1088,"name":"bytes","nodeType":"ElementaryTypeName","src":"2440:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"2425:35:9"},"returnParameters":{"id":1094,"nodeType":"ParameterList","parameters":[],"src":"2487:0:9"},"scope":1458,"src":"2403:1263:9","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":{"id":1273,"nodeType":"Block","src":"4167:69:9","statements":[{"expression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1261,"name":"records","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1077,"src":"4184:7:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref))))"}},"id":1263,"indexExpression":{"argumentTypes":null,"id":1262,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1252,"src":"4192:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4184:13:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref)))"}},"id":1267,"indexExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1264,"name":"versions","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1067,"src":"4198:8:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"}},"id":1266,"indexExpression":{"argumentTypes":null,"id":1265,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1252,"src":"4207:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4198:14:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4184:29:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes storage ref))"}},"id":1269,"indexExpression":{"argumentTypes":null,"id":1268,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1254,"src":"4214:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4184:35:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes storage ref)"}},"id":1271,"indexExpression":{"argumentTypes":null,"id":1270,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1256,"src":"4220:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4184:45:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"functionReturnParameters":1260,"id":1272,"nodeType":"Return","src":"4177:52:9"}]},"documentation":"Obtain a DNS record.\\n@param node the namehash of the node for which to fetch the record\\n@param name the keccak-256 hash of the fully-qualified name for which to fetch the record\\n@param resource the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types\\n@return the DNS record in wire format if present, otherwise empty","id":1274,"implemented":true,"kind":"function","modifiers":[],"name":"dnsRecord","nodeType":"FunctionDefinition","parameters":{"id":1257,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1252,"name":"node","nodeType":"VariableDeclaration","scope":1274,"src":"4087:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1251,"name":"bytes32","nodeType":"ElementaryTypeName","src":"4087:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1254,"name":"name","nodeType":"VariableDeclaration","scope":1274,"src":"4101:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1253,"name":"bytes32","nodeType":"ElementaryTypeName","src":"4101:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1256,"name":"resource","nodeType":"VariableDeclaration","scope":1274,"src":"4115:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1255,"name":"uint16","nodeType":"ElementaryTypeName","src":"4115:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":null,"visibility":"internal"}],"src":"4086:45:9"},"returnParameters":{"id":1260,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1259,"name":"","nodeType":"VariableDeclaration","scope":1274,"src":"4153:12:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1258,"name":"bytes","nodeType":"ElementaryTypeName","src":"4153:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"4152:14:9"},"scope":1458,"src":"4068:168:9","stateMutability":"view","superFunction":null,"visibility":"public"},{"body":{"id":1296,"nodeType":"Block","src":"4528:75:9","statements":[{"expression":{"argumentTypes":null,"components":[{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint16","typeString":"uint16"},"id":1293,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1283,"name":"nameEntriesCount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1085,"src":"4546:16:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => uint16)))"}},"id":1285,"indexExpression":{"argumentTypes":null,"id":1284,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1276,"src":"4563:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4546:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$","typeString":"mapping(uint256 => mapping(bytes32 => uint16))"}},"id":1289,"indexExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1286,"name":"versions","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1067,"src":"4569:8:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"}},"id":1288,"indexExpression":{"argumentTypes":null,"id":1287,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1276,"src":"4578:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4569:14:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4546:38:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint16_$","typeString":"mapping(bytes32 => uint16)"}},"id":1291,"indexExpression":{"argumentTypes":null,"id":1290,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1278,"src":"4585:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"4546:44:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1292,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"4594:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"4546:49:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"id":1294,"isConstant":false,"isInlineArray":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"TupleExpression","src":"4545:51:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":1282,"id":1295,"nodeType":"Return","src":"4538:58:9"}]},"documentation":"Check if a given node has records.\\n@param node the namehash of the node for which to check the records\\n@param name the namehash of the node for which to check the records","id":1297,"implemented":true,"kind":"function","modifiers":[],"name":"hasDNSRecords","nodeType":"FunctionDefinition","parameters":{"id":1279,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1276,"name":"node","nodeType":"VariableDeclaration","scope":1297,"src":"4473:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1275,"name":"bytes32","nodeType":"ElementaryTypeName","src":"4473:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1278,"name":"name","nodeType":"VariableDeclaration","scope":1297,"src":"4487:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1277,"name":"bytes32","nodeType":"ElementaryTypeName","src":"4487:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"4472:28:9"},"returnParameters":{"id":1282,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1281,"name":"","nodeType":"VariableDeclaration","scope":1297,"src":"4522:4:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1280,"name":"bool","nodeType":"ElementaryTypeName","src":"4522:4:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"4521:6:9"},"scope":1458,"src":"4450:153:9","stateMutability":"view","superFunction":null,"visibility":"public"},{"body":{"id":1314,"nodeType":"Block","src":"4802:68:9","statements":[{"expression":{"argumentTypes":null,"id":1308,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"++","prefix":false,"src":"4812:16:9","subExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1305,"name":"versions","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1067,"src":"4812:8:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"}},"id":1307,"indexExpression":{"argumentTypes":null,"id":1306,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1299,"src":"4821:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"4812:14:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":1309,"nodeType":"ExpressionStatement","src":"4812:16:9"},{"eventCall":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1311,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1299,"src":"4858:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"id":1310,"name":"DNSZoneCleared","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1063,"src":"4843:14:9","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_bytes32_$returns$__$","typeString":"function (bytes32)"}},"id":1312,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"4843:20:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1313,"nodeType":"EmitStatement","src":"4838:25:9"}]},"documentation":"Clear all information for a DNS zone.\\n@param node the namehash of the node for which to clear the zone","id":1315,"implemented":true,"kind":"function","modifiers":[{"arguments":[{"argumentTypes":null,"id":1302,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1299,"src":"4796:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"id":1303,"modifierName":{"argumentTypes":null,"id":1301,"name":"authorised","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":629,"src":"4785:10:9","typeDescriptions":{"typeIdentifier":"t_modifier$_t_bytes32_$","typeString":"modifier (bytes32)"}},"nodeType":"ModifierInvocation","src":"4785:16:9"}],"name":"clearDNSZone","nodeType":"FunctionDefinition","parameters":{"id":1300,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1299,"name":"node","nodeType":"VariableDeclaration","scope":1315,"src":"4764:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1298,"name":"bytes32","nodeType":"ElementaryTypeName","src":"4764:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"4763:14:9"},"returnParameters":{"id":1304,"nodeType":"ParameterList","parameters":[],"src":"4802:0:9"},"scope":1458,"src":"4742:128:9","stateMutability":"nonpayable","superFunction":null,"visibility":"public"},{"body":{"id":1331,"nodeType":"Block","src":"4949:102:9","statements":[{"expression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":1329,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"id":1324,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"id":1322,"name":"interfaceID","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1317,"src":"4966:11:9","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"id":1323,"name":"DNS_RECORD_INTERFACE_ID","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1041,"src":"4981:23:9","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"src":"4966:38:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1327,"name":"interfaceID","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1317,"src":"5032:11:9","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes4","typeString":"bytes4"}],"expression":{"argumentTypes":null,"id":1325,"name":"super","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4184,"src":"5008:5:9","typeDescriptions":{"typeIdentifier":"t_super$_DNSResolver_$1458","typeString":"contract super DNSResolver"}},"id":1326,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"supportsInterface","nodeType":"MemberAccess","referencedDeclaration":610,"src":"5008:23:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes4_$returns$_t_bool_$","typeString":"function (bytes4) pure returns (bool)"}},"id":1328,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5008:36:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"4966:78:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":1321,"id":1330,"nodeType":"Return","src":"4959:85:9"}]},"documentation":null,"id":1332,"implemented":true,"kind":"function","modifiers":[],"name":"supportsInterface","nodeType":"FunctionDefinition","parameters":{"id":1318,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1317,"name":"interfaceID","nodeType":"VariableDeclaration","scope":1332,"src":"4903:18:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":1316,"name":"bytes4","nodeType":"ElementaryTypeName","src":"4903:6:9","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"value":null,"visibility":"internal"}],"src":"4902:20:9"},"returnParameters":{"id":1321,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1320,"name":"","nodeType":"VariableDeclaration","scope":1332,"src":"4943:4:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1319,"name":"bool","nodeType":"ElementaryTypeName","src":"4943:4:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"4942:6:9"},"scope":1458,"src":"4876:175:9","stateMutability":"pure","superFunction":610,"visibility":"public"},{"body":{"id":1456,"nodeType":"Block","src":"5265:757:9","statements":[{"assignments":[1350],"declarations":[{"constant":false,"id":1350,"name":"version","nodeType":"VariableDeclaration","scope":1456,"src":"5275:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1349,"name":"uint256","nodeType":"ElementaryTypeName","src":"5275:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"id":1354,"initialValue":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1351,"name":"versions","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1067,"src":"5293:8:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint256_$","typeString":"mapping(bytes32 => uint256)"}},"id":1353,"indexExpression":{"argumentTypes":null,"id":1352,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5302:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5293:14:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"VariableDeclarationStatement","src":"5275:32:9"},{"assignments":[1356],"declarations":[{"constant":false,"id":1356,"name":"nameHash","nodeType":"VariableDeclaration","scope":1456,"src":"5317:16:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1355,"name":"bytes32","nodeType":"ElementaryTypeName","src":"5317:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"id":1360,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1358,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1336,"src":"5346:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1357,"name":"keccak256","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4127,"src":"5336:9:9","typeDescriptions":{"typeIdentifier":"t_function_keccak256_pure$_t_bytes_memory_ptr_$returns$_t_bytes32_$","typeString":"function (bytes memory) pure returns (bytes32)"}},"id":1359,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5336:15:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"VariableDeclarationStatement","src":"5317:34:9"},{"assignments":[1362],"declarations":[{"constant":false,"id":1362,"name":"rrData","nodeType":"VariableDeclaration","scope":1456,"src":"5361:19:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1361,"name":"bytes","nodeType":"ElementaryTypeName","src":"5361:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"id":1368,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1365,"name":"offset","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1342,"src":"5398:6:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},{"argumentTypes":null,"id":1366,"name":"size","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1344,"src":"5406:4:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"},{"typeIdentifier":"t_uint256","typeString":"uint256"}],"expression":{"argumentTypes":null,"id":1363,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1340,"src":"5383:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"id":1364,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"substring","nodeType":"MemberAccess","referencedDeclaration":2858,"src":"5383:14:9","typeDescriptions":{"typeIdentifier":"t_function_internal_pure$_t_bytes_memory_ptr_$_t_uint256_$_t_uint256_$returns$_t_bytes_memory_ptr_$bound_to$_t_bytes_memory_ptr_$","typeString":"function (bytes memory,uint256,uint256) pure returns (bytes memory)"}},"id":1367,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5383:28:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"nodeType":"VariableDeclarationStatement","src":"5361:50:9"},{"condition":{"argumentTypes":null,"id":1369,"name":"deleteRecord","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1346,"src":"5425:12:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":{"id":1454,"nodeType":"Block","src":"5726:290:9","statements":[{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1423,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1412,"name":"records","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1077,"src":"5744:7:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref))))"}},"id":1414,"indexExpression":{"argumentTypes":null,"id":1413,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5752:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5744:13:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref)))"}},"id":1416,"indexExpression":{"argumentTypes":null,"id":1415,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5758:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5744:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes storage ref))"}},"id":1418,"indexExpression":{"argumentTypes":null,"id":1417,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5767:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5744:32:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes storage ref)"}},"id":1420,"indexExpression":{"argumentTypes":null,"id":1419,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5777:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5744:42:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"id":1421,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"5744:49:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1422,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5797:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"5744:54:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":1434,"nodeType":"IfStatement","src":"5740:136:9","trueBody":{"id":1433,"nodeType":"Block","src":"5800:76:9","statements":[{"expression":{"argumentTypes":null,"id":1431,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"++","prefix":false,"src":"5818:43:9","subExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1424,"name":"nameEntriesCount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1085,"src":"5818:16:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => uint16)))"}},"id":1428,"indexExpression":{"argumentTypes":null,"id":1425,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5835:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5818:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$","typeString":"mapping(uint256 => mapping(bytes32 => uint16))"}},"id":1429,"indexExpression":{"argumentTypes":null,"id":1426,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5841:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5818:31:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint16_$","typeString":"mapping(bytes32 => uint16)"}},"id":1430,"indexExpression":{"argumentTypes":null,"id":1427,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5850:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"5818:41:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":1432,"nodeType":"ExpressionStatement","src":"5818:43:9"}]}},{"expression":{"argumentTypes":null,"id":1445,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1435,"name":"records","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1077,"src":"5889:7:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref))))"}},"id":1440,"indexExpression":{"argumentTypes":null,"id":1436,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5897:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5889:13:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref)))"}},"id":1441,"indexExpression":{"argumentTypes":null,"id":1437,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5903:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5889:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes storage ref))"}},"id":1442,"indexExpression":{"argumentTypes":null,"id":1438,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5912:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5889:32:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes storage ref)"}},"id":1443,"indexExpression":{"argumentTypes":null,"id":1439,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5922:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"5889:42:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":1444,"name":"rrData","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1362,"src":"5934:6:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"5889:51:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"id":1446,"nodeType":"ExpressionStatement","src":"5889:51:9"},{"eventCall":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1448,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5976:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"argumentTypes":null,"id":1449,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1336,"src":"5982:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"argumentTypes":null,"id":1450,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5988:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},{"argumentTypes":null,"id":1451,"name":"rrData","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1362,"src":"5998:6:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_uint16","typeString":"uint16"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}],"id":1447,"name":"DNSRecordChanged","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1051,"src":"5959:16:9","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint16_$_t_bytes_memory_ptr_$returns$__$","typeString":"function (bytes32,bytes memory,uint16,bytes memory)"}},"id":1452,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5959:46:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1453,"nodeType":"EmitStatement","src":"5954:51:9"}]},"id":1455,"nodeType":"IfStatement","src":"5421:595:9","trueBody":{"id":1411,"nodeType":"Block","src":"5439:281:9","statements":[{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":1381,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1370,"name":"records","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1077,"src":"5457:7:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref))))"}},"id":1372,"indexExpression":{"argumentTypes":null,"id":1371,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5465:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5457:13:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref)))"}},"id":1374,"indexExpression":{"argumentTypes":null,"id":1373,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5471:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5457:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes storage ref))"}},"id":1376,"indexExpression":{"argumentTypes":null,"id":1375,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5480:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5457:32:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes storage ref)"}},"id":1378,"indexExpression":{"argumentTypes":null,"id":1377,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5490:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5457:42:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"id":1379,"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"5457:49:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"argumentTypes":null,"hexValue":"30","id":1380,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"5510:1:9","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"src":"5457:54:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":1392,"nodeType":"IfStatement","src":"5453:136:9","trueBody":{"id":1391,"nodeType":"Block","src":"5513:76:9","statements":[{"expression":{"argumentTypes":null,"id":1389,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"--","prefix":false,"src":"5531:43:9","subExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1382,"name":"nameEntriesCount","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1085,"src":"5531:16:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => uint16)))"}},"id":1386,"indexExpression":{"argumentTypes":null,"id":1383,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5548:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5531:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_uint16_$_$","typeString":"mapping(uint256 => mapping(bytes32 => uint16))"}},"id":1387,"indexExpression":{"argumentTypes":null,"id":1384,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5554:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5531:31:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_uint16_$","typeString":"mapping(bytes32 => uint16)"}},"id":1388,"indexExpression":{"argumentTypes":null,"id":1385,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5563:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"5531:41:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"id":1390,"nodeType":"ExpressionStatement","src":"5531:43:9"}]}},{"expression":{"argumentTypes":null,"id":1403,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"delete","prefix":true,"src":"5602:50:9","subExpression":{"argumentTypes":null,"components":[{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":1393,"name":"records","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1077,"src":"5609:7:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$_$","typeString":"mapping(bytes32 => mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref))))"}},"id":1395,"indexExpression":{"argumentTypes":null,"id":1394,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5617:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5609:13:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint256_$_t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$_$","typeString":"mapping(uint256 => mapping(bytes32 => mapping(uint16 => bytes storage ref)))"}},"id":1397,"indexExpression":{"argumentTypes":null,"id":1396,"name":"version","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1350,"src":"5623:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5609:22:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_uint16_$_t_bytes_storage_$_$","typeString":"mapping(bytes32 => mapping(uint16 => bytes storage ref))"}},"id":1399,"indexExpression":{"argumentTypes":null,"id":1398,"name":"nameHash","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1356,"src":"5632:8:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"5609:32:9","typeDescriptions":{"typeIdentifier":"t_mapping$_t_uint16_$_t_bytes_storage_$","typeString":"mapping(uint16 => bytes storage ref)"}},"id":1401,"indexExpression":{"argumentTypes":null,"id":1400,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5642:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"5609:42:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}}],"id":1402,"isConstant":false,"isInlineArray":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"TupleExpression","src":"5608:44:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage","typeString":"bytes storage ref"}},"typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1404,"nodeType":"ExpressionStatement","src":"5602:50:9"},{"eventCall":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":1406,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1334,"src":"5688:4:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"argumentTypes":null,"id":1407,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1336,"src":"5694:4:9","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},{"argumentTypes":null,"id":1408,"name":"resource","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1338,"src":"5700:8:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"},{"typeIdentifier":"t_uint16","typeString":"uint16"}],"id":1405,"name":"DNSRecordDeleted","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":1059,"src":"5671:16:9","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_bytes32_$_t_bytes_memory_ptr_$_t_uint16_$returns$__$","typeString":"function (bytes32,bytes memory,uint16)"}},"id":1409,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"5671:38:9","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":1410,"nodeType":"EmitStatement","src":"5666:43:9"}]}}]},"documentation":null,"id":1457,"implemented":true,"kind":"function","modifiers":[],"name":"setDNSRRSet","nodeType":"FunctionDefinition","parameters":{"id":1347,"nodeType":"ParameterList","parameters":[{"constant":false,"id":1334,"name":"node","nodeType":"VariableDeclaration","scope":1457,"src":"5087:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":1333,"name":"bytes32","nodeType":"ElementaryTypeName","src":"5087:7:9","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":1336,"name":"name","nodeType":"VariableDeclaration","scope":1457,"src":"5109:17:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1335,"name":"bytes","nodeType":"ElementaryTypeName","src":"5109:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"},{"constant":false,"id":1338,"name":"resource","nodeType":"VariableDeclaration","scope":1457,"src":"5136:15:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"},"typeName":{"id":1337,"name":"uint16","nodeType":"ElementaryTypeName","src":"5136:6:9","typeDescriptions":{"typeIdentifier":"t_uint16","typeString":"uint16"}},"value":null,"visibility":"internal"},{"constant":false,"id":1340,"name":"data","nodeType":"VariableDeclaration","scope":1457,"src":"5161:17:9","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":1339,"name":"bytes","nodeType":"ElementaryTypeName","src":"5161:5:9","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"},{"constant":false,"id":1342,"name":"offset","nodeType":"VariableDeclaration","scope":1457,"src":"5188:14:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1341,"name":"uint256","nodeType":"ElementaryTypeName","src":"5188:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":1344,"name":"size","nodeType":"VariableDeclaration","scope":1457,"src":"5212:12:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":1343,"name":"uint256","nodeType":"ElementaryTypeName","src":"5212:7:9","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":1346,"name":"deleteRecord","nodeType":"VariableDeclaration","scope":1457,"src":"5234:17:9","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":1345,"name":"bool","nodeType":"ElementaryTypeName","src":"5234:4:9","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"5077:175:9"},"returnParameters":{"id":1348,"nodeType":"ParameterList","parameters":[],"src":"5265:0:9"},"scope":1458,"src":"5057:965:9","stateMutability":"nonpayable","superFunction":null,"visibility":"private"}],"scope":1459,"src":"114:5910:9"}],"src":"0:6025:9"},"compiler":{"name":"solc","version":"0.5.8+commit.23d335f2.Emscripten.clang"},"networks":{},"schemaVersion":"3.0.16","updatedAt":"2020-02-10T18:46:21.032Z","devdoc":{"methods":{"clearDNSZone(bytes32)":{"params":{"node":"the namehash of the node for which to clear the zone"}},"dnsRecord(bytes32,bytes32,uint16)":{"params":{"name":"the keccak-256 hash of the fully-qualified name for which to fetch the record","node":"the namehash of the node for which to fetch the record","resource":"the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types"},"return":"the DNS record in wire format if present, otherwise empty"},"hasDNSRecords(bytes32,bytes32)":{"params":{"name":"the namehash of the node for which to check the records","node":"the namehash of the node for which to check the records"}},"setDNSRecords(bytes32,bytes)":{"params":{"data":"the DNS wire format records to set","node":"the namehash of the node for which to set the records"}}}},"userdoc":{"methods":{"clearDNSZone(bytes32)":{"notice":"Clear all information for a DNS zone."},"dnsRecord(bytes32,bytes32,uint16)":{"notice":"Obtain a DNS record."},"hasDNSRecords(bytes32,bytes32)":{"notice":"Check if a given node has records."},"setDNSRecords(bytes32,bytes)":{"notice":"Set one or more DNS records.  Records are supplied in wire-format. Records with the same node/name/resource must be supplied one after the other to ensure the data is updated correctly. For example, if the data was supplied:    a.example.com IN A 1.2.3.4    a.example.com IN A 5.6.7.8    www.example.com IN CNAME a.example.com. then this would store the two A records for a.example.com correctly as a single RRSET, however if the data was supplied:    a.example.com IN A 1.2.3.4    www.example.com IN CNAME a.example.com.    a.example.com IN A 5.6.7.8 then this would store the first A record, the CNAME, then the second A record which would overwrite the first."}}}}')},function(e){e.exports=JSON.parse('{"contractName":"DefaultReverseResolver","abi":[{"constant":true,"inputs":[],"name":"ens","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"}],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"ensAddr","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"_name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"metadata":"{\\"compiler\\":{\\"version\\":\\"0.5.8+commit.23d335f2\\"},\\"language\\":\\"Solidity\\",\\"output\\":{\\"abi\\":[{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"ens\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"name\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"string\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"_name\\",\\"type\\":\\"string\\"}],\\"name\\":\\"setName\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"inputs\\":[{\\"name\\":\\"ensAddr\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"constructor\\"}],\\"devdoc\\":{\\"details\\":\\"Provides a default implementation of a resolver for reverse records, which permits only the owner to update it.\\",\\"methods\\":{\\"constructor\\":{\\"details\\":\\"Constructor\\",\\"params\\":{\\"ensAddr\\":\\"The address of the ENS registry.\\"}},\\"setName(bytes32,string)\\":{\\"details\\":\\"Sets the name for a node.\\",\\"params\\":{\\"_name\\":\\"The name to set.\\",\\"node\\":\\"The node to update.\\"}}}},\\"userdoc\\":{\\"methods\\":{}}},\\"settings\\":{\\"compilationTarget\\":{\\"/home/user/Dropbox/projects/resolvers/contracts/DefaultReverseResolver.sol\\":\\"DefaultReverseResolver\\"},\\"evmVersion\\":\\"petersburg\\",\\"libraries\\":{},\\"optimizer\\":{\\"enabled\\":false,\\"runs\\":200},\\"remappings\\":[]},\\"sources\\":{\\"/home/user/Dropbox/projects/resolvers/contracts/DefaultReverseResolver.sol\\":{\\"keccak256\\":\\"0x3911f972c8f69bea945ffaa356d8b9496446ac00f2543eafbf3aaf8a76d27682\\",\\"urls\\":[\\"bzzr://1bfa8ac7b28a7f546bcd7bc49b54ca37a618d6b13f344f7a9603a64277b65fcc\\"]},\\"@ensdomains/ens/contracts/ENS.sol\\":{\\"keccak256\\":\\"0xe688db01c0b974f8ff8565557f7fe81aa1f209c1497ec1e74536241f4cc11f08\\",\\"urls\\":[\\"bzzr://04aa083550728a1da54d9acf874f4fca77cc3afef81c57f1ec19be78af05019a\\"]},\\"@ensdomains/ens/contracts/ReverseRegistrar.sol\\":{\\"keccak256\\":\\"0x9f88ee601bc32f69ded7a3931640bcbd379920db4f3e45923f10fcc08642a8e2\\",\\"urls\\":[\\"bzzr://4a291280ddecf6766aefb98ee46c92e0daf6122653aca9bdb8ed197854c7455a\\"]}},\\"version\\":1}","bytecode":"0x608060405234801561001057600080fd5b5060405160208061070a8339810180604052602081101561003057600080fd5b8101908080519060200190929190505050806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302571be37f91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e260001b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561011857600080fd5b505afa15801561012c573d6000803e3d6000fd5b505050506040513d602081101561014257600080fd5b81019080805190602001909291905050509050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610245578073ffffffffffffffffffffffffffffffffffffffff16631e83409a336040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15801561020857600080fd5b505af115801561021c573d6000803e3d6000fd5b505050506040513d602081101561023257600080fd5b8101908080519060200190929190505050505b50506104b4806102566000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80633f15457f14610046578063691f3431146100905780637737221314610137575b600080fd5b61004e6101fc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100bc600480360360208110156100a657600080fd5b8101908080359060200190929190505050610221565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100fc5780820151818401526020810190506100e1565b50505050905090810190601f1680156101295780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101fa6004803603604081101561014d57600080fd5b81019080803590602001909291908035906020019064010000000081111561017457600080fd5b82018360208201111561018657600080fd5b803590602001918460018302840111640100000000831117156101a857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506102d1565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60016020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102c95780601f1061029e576101008083540402835291602001916102c9565b820191906000526020600020905b8154815290600101906020018083116102ac57829003601f168201915b505050505081565b816000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302571be3826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561034457600080fd5b505afa158015610358573d6000803e3d6000fd5b505050506040513d602081101561036e57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103b657600080fd5b816001600085815260200190815260200160002090805190602001906103dd9291906103e3565b50505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061042457805160ff1916838001178555610452565b82800160010185558215610452579182015b82811115610451578251825591602001919060010190610436565b5b50905061045f9190610463565b5090565b61048591905b80821115610481576000816000905550600101610469565b5090565b9056fea165627a7a723058204143b50c1437939fe324edd9b3e8befe3ed30e022828581416e04a08c6bde6790029","deployedBytecode":"0x608060405234801561001057600080fd5b50600436106100415760003560e01c80633f15457f14610046578063691f3431146100905780637737221314610137575b600080fd5b61004e6101fc565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6100bc600480360360208110156100a657600080fd5b8101908080359060200190929190505050610221565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100fc5780820151818401526020810190506100e1565b50505050905090810190601f1680156101295780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101fa6004803603604081101561014d57600080fd5b81019080803590602001909291908035906020019064010000000081111561017457600080fd5b82018360208201111561018657600080fd5b803590602001918460018302840111640100000000831117156101a857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050506102d1565b005b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60016020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156102c95780601f1061029e576101008083540402835291602001916102c9565b820191906000526020600020905b8154815290600101906020018083116102ac57829003601f168201915b505050505081565b816000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302571be3826040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b15801561034457600080fd5b505afa158015610358573d6000803e3d6000fd5b505050506040513d602081101561036e57600080fd5b810190808051906020019092919050505073ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146103b657600080fd5b816001600085815260200190815260200160002090805190602001906103dd9291906103e3565b50505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061042457805160ff1916838001178555610452565b82800160010185558215610452579182015b82811115610451578251825591602001919060010190610436565b5b50905061045f9190610463565b5090565b61048591905b80821115610481576000816000905550600101610469565b5090565b9056fea165627a7a723058204143b50c1437939fe324edd9b3e8befe3ed30e022828581416e04a08c6bde6790029","sourceMap":"260:1138:0:-;;;835:315;8:9:-1;5:2;;;30:1;27;20:12;5:2;835:315:0;;;;;;;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;835:315:0;;;;;;;;;;;;;;;;883:7;877:3;;:13;;;;;;;;;;;;;;;;;;967:26;1013:3;;;;;;;;;;;:9;;;367:66;1023:17;;1013:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1013:28:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1013:28:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1013:28:0;;;;;;;;;;;;;;;;967:75;;1086:3;1056:34;;1064:9;1056:34;;;1052:92;;1106:9;:15;;;1122:10;1106:27;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;1106:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;1106:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1106:27:0;;;;;;;;;;;;;;;;;1052:92;835:315;;260:1138;;;;;;","deployedSourceMap":"260:1138:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;260:1138:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;440:14;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;460:39;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;460:39:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;460:39:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1286:110;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1286:110:0;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;1286:110:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1286:110:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;1286:110:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;1286:110:0;;;;;;;;;;;;;;;:::i;:::-;;440:14;;;;;;;;;;;;;:::o;460:39::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1286:110::-;1355:4;700:3;;;;;;;;;;;:9;;;710:4;700:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;700:15:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;700:15:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;700:15:0;;;;;;;;;;;;;;;;686:29;;:10;:29;;;678:38;;;;;;1384:5;1371:4;:10;1376:4;1371:10;;;;;;;;;;;:18;;;;;;;;;;;;:::i;:::-;;1286:110;;;:::o;260:1138::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o","source":"pragma solidity >=0.4.25;\\n\\nimport \\"@ensdomains/ens/contracts/ENS.sol\\";\\nimport \\"@ensdomains/ens/contracts/ReverseRegistrar.sol\\";\\n\\n/**\\n * @dev Provides a default implementation of a resolver for reverse records,\\n * which permits only the owner to update it.\\n */\\ncontract DefaultReverseResolver {\\n    // namehash(\'addr.reverse\')\\n    bytes32 constant ADDR_REVERSE_NODE = 0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2;\\n\\n    ENS public ens;\\n    mapping (bytes32 => string) public name;\\n\\n    /**\\n     * @dev Only permits calls by the reverse registrar.\\n     * @param node The node permission is required for.\\n     */\\n    modifier onlyOwner(bytes32 node) {\\n        require(msg.sender == ens.owner(node));\\n        _;\\n    }\\n\\n    /**\\n     * @dev Constructor\\n     * @param ensAddr The address of the ENS registry.\\n     */\\n    constructor(ENS ensAddr) public {\\n        ens = ensAddr;\\n\\n        // Assign ownership of the reverse record to our deployer\\n        ReverseRegistrar registrar = ReverseRegistrar(ens.owner(ADDR_REVERSE_NODE));\\n        if (address(registrar) != address(0x0)) {\\n            registrar.claim(msg.sender);\\n        }\\n    }\\n\\n    /**\\n     * @dev Sets the name for a node.\\n     * @param node The node to update.\\n     * @param _name The name to set.\\n     */\\n    function setName(bytes32 node, string memory _name) public onlyOwner(node) {\\n        name[node] = _name;\\n    }\\n}\\n","sourcePath":"/home/user/Dropbox/projects/resolvers/contracts/DefaultReverseResolver.sol","ast":{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/DefaultReverseResolver.sol","exportedSymbols":{"DefaultReverseResolver":[81]},"id":82,"nodeType":"SourceUnit","nodes":[{"id":1,"literals":["solidity",">=","0.4",".25"],"nodeType":"PragmaDirective","src":"0:25:0"},{"absolutePath":"@ensdomains/ens/contracts/ENS.sol","file":"@ensdomains/ens/contracts/ENS.sol","id":2,"nodeType":"ImportDirective","scope":82,"sourceUnit":3783,"src":"27:43:0","symbolAliases":[],"unitAlias":""},{"absolutePath":"@ensdomains/ens/contracts/ReverseRegistrar.sol","file":"@ensdomains/ens/contracts/ReverseRegistrar.sol","id":3,"nodeType":"ImportDirective","scope":82,"sourceUnit":4010,"src":"71:56:0","symbolAliases":[],"unitAlias":""},{"baseContracts":[],"contractDependencies":[],"contractKind":"contract","documentation":"@dev Provides a default implementation of a resolver for reverse records,\\nwhich permits only the owner to update it.","fullyImplemented":true,"id":81,"linearizedBaseContracts":[81],"name":"DefaultReverseResolver","nodeType":"ContractDefinition","nodes":[{"constant":true,"id":6,"name":"ADDR_REVERSE_NODE","nodeType":"VariableDeclaration","scope":81,"src":"330:103:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":4,"name":"bytes32","nodeType":"ElementaryTypeName","src":"330:7:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":{"argumentTypes":null,"hexValue":"307839316431373737373831383834643033613637353761383033393936653338646532613432393637666233376565616361373237323932373130323561396532","id":5,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"367:66:0","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_65955458610802586644366824307633271870356699036341805474246458084352783133154_by_1","typeString":"int_const 6595...(69 digits omitted)...3154"},"value":"0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2"},"visibility":"internal"},{"constant":false,"id":8,"name":"ens","nodeType":"VariableDeclaration","scope":81,"src":"440:14:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"},"typeName":{"contractScope":null,"id":7,"name":"ENS","nodeType":"UserDefinedTypeName","referencedDeclaration":3782,"src":"440:3:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"value":null,"visibility":"public"},{"constant":false,"id":12,"name":"name","nodeType":"VariableDeclaration","scope":81,"src":"460:39:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_string_storage_$","typeString":"mapping(bytes32 => string)"},"typeName":{"id":11,"keyType":{"id":9,"name":"bytes32","nodeType":"ElementaryTypeName","src":"469:7:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"460:27:0","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_string_storage_$","typeString":"mapping(bytes32 => string)"},"valueType":{"id":10,"name":"string","nodeType":"ElementaryTypeName","src":"480:6:0","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}}},"value":null,"visibility":"public"},{"body":{"id":27,"nodeType":"Block","src":"668:66:0","statements":[{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":23,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":17,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"686:3:0","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":18,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"686:10:0","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":21,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":14,"src":"710:4:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"expression":{"argumentTypes":null,"id":19,"name":"ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":8,"src":"700:3:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"id":20,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"owner","nodeType":"MemberAccess","referencedDeclaration":3767,"src":"700:9:0","typeDescriptions":{"typeIdentifier":"t_function_external_view$_t_bytes32_$returns$_t_address_$","typeString":"function (bytes32) view external returns (address)"}},"id":22,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"700:15:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"686:29:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":16,"name":"require","nodeType":"Identifier","overloadedDeclarations":[4136,4137],"referencedDeclaration":4136,"src":"678:7:0","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":24,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"678:38:0","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":25,"nodeType":"ExpressionStatement","src":"678:38:0"},{"id":26,"nodeType":"PlaceholderStatement","src":"726:1:0"}]},"documentation":"@dev Only permits calls by the reverse registrar.\\n@param node The node permission is required for.","id":28,"name":"onlyOwner","nodeType":"ModifierDefinition","parameters":{"id":15,"nodeType":"ParameterList","parameters":[{"constant":false,"id":14,"name":"node","nodeType":"VariableDeclaration","scope":28,"src":"654:12:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":13,"name":"bytes32","nodeType":"ElementaryTypeName","src":"654:7:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"653:14:0"},"src":"635:99:0","visibility":"internal"},{"body":{"id":62,"nodeType":"Block","src":"867:283:0","statements":[{"expression":{"argumentTypes":null,"id":35,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":33,"name":"ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":8,"src":"877:3:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":34,"name":"ensAddr","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":30,"src":"883:7:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"src":"877:13:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"id":36,"nodeType":"ExpressionStatement","src":"877:13:0"},{"assignments":[38],"declarations":[{"constant":false,"id":38,"name":"registrar","nodeType":"VariableDeclaration","scope":62,"src":"967:26:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"},"typeName":{"contractScope":null,"id":37,"name":"ReverseRegistrar","nodeType":"UserDefinedTypeName","referencedDeclaration":4009,"src":"967:16:0","typeDescriptions":{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"}},"value":null,"visibility":"internal"}],"id":45,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":42,"name":"ADDR_REVERSE_NODE","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":6,"src":"1023:17:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"expression":{"argumentTypes":null,"id":40,"name":"ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":8,"src":"1013:3:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"id":41,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"owner","nodeType":"MemberAccess","referencedDeclaration":3767,"src":"1013:9:0","typeDescriptions":{"typeIdentifier":"t_function_external_view$_t_bytes32_$returns$_t_address_$","typeString":"function (bytes32) view external returns (address)"}},"id":43,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1013:28:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":39,"name":"ReverseRegistrar","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4009,"src":"996:16:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_ReverseRegistrar_$4009_$","typeString":"type(contract ReverseRegistrar)"}},"id":44,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"996:46:0","typeDescriptions":{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"}},"nodeType":"VariableDeclarationStatement","src":"967:75:0"},{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":52,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":47,"name":"registrar","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":38,"src":"1064:9:0","typeDescriptions":{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"}],"id":46,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1056:7:0","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":"address"},"id":48,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1056:18:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"hexValue":"307830","id":50,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1086:3:0","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0x0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"id":49,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1078:7:0","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":"address"},"id":51,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1078:12:0","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"src":"1056:34:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":61,"nodeType":"IfStatement","src":"1052:92:0","trueBody":{"id":60,"nodeType":"Block","src":"1092:52:0","statements":[{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"expression":{"argumentTypes":null,"id":56,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"1122:3:0","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":57,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"1122:10:0","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address_payable","typeString":"address payable"}],"expression":{"argumentTypes":null,"id":53,"name":"registrar","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":38,"src":"1106:9:0","typeDescriptions":{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"}},"id":55,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"claim","nodeType":"MemberAccess","referencedDeclaration":3856,"src":"1106:15:0","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$returns$_t_bytes32_$","typeString":"function (address) external returns (bytes32)"}},"id":58,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1106:27:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"id":59,"nodeType":"ExpressionStatement","src":"1106:27:0"}]}}]},"documentation":"@dev Constructor\\n@param ensAddr The address of the ENS registry.","id":63,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nodeType":"FunctionDefinition","parameters":{"id":31,"nodeType":"ParameterList","parameters":[{"constant":false,"id":30,"name":"ensAddr","nodeType":"VariableDeclaration","scope":63,"src":"847:11:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"},"typeName":{"contractScope":null,"id":29,"name":"ENS","nodeType":"UserDefinedTypeName","referencedDeclaration":3782,"src":"847:3:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"value":null,"visibility":"internal"}],"src":"846:13:0"},"returnParameters":{"id":32,"nodeType":"ParameterList","parameters":[],"src":"867:0:0"},"scope":81,"src":"835:315:0","stateMutability":"nonpayable","superFunction":null,"visibility":"public"},{"body":{"id":79,"nodeType":"Block","src":"1361:35:0","statements":[{"expression":{"argumentTypes":null,"id":77,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":73,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":12,"src":"1371:4:0","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_string_storage_$","typeString":"mapping(bytes32 => string storage ref)"}},"id":75,"indexExpression":{"argumentTypes":null,"id":74,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":65,"src":"1376:4:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"1371:10:0","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string storage ref"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":76,"name":"_name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":67,"src":"1384:5:0","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}},"src":"1371:18:0","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string storage ref"}},"id":78,"nodeType":"ExpressionStatement","src":"1371:18:0"}]},"documentation":"@dev Sets the name for a node.\\n@param node The node to update.\\n@param _name The name to set.","id":80,"implemented":true,"kind":"function","modifiers":[{"arguments":[{"argumentTypes":null,"id":70,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":65,"src":"1355:4:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"id":71,"modifierName":{"argumentTypes":null,"id":69,"name":"onlyOwner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":28,"src":"1345:9:0","typeDescriptions":{"typeIdentifier":"t_modifier$_t_bytes32_$","typeString":"modifier (bytes32)"}},"nodeType":"ModifierInvocation","src":"1345:15:0"}],"name":"setName","nodeType":"FunctionDefinition","parameters":{"id":68,"nodeType":"ParameterList","parameters":[{"constant":false,"id":65,"name":"node","nodeType":"VariableDeclaration","scope":80,"src":"1303:12:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":64,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1303:7:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":67,"name":"_name","nodeType":"VariableDeclaration","scope":80,"src":"1317:19:0","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":66,"name":"string","nodeType":"ElementaryTypeName","src":"1317:6:0","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"1302:35:0"},"returnParameters":{"id":72,"nodeType":"ParameterList","parameters":[],"src":"1361:0:0"},"scope":81,"src":"1286:110:0","stateMutability":"nonpayable","superFunction":null,"visibility":"public"}],"scope":82,"src":"260:1138:0"}],"src":"0:1399:0"},"legacyAST":{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/DefaultReverseResolver.sol","exportedSymbols":{"DefaultReverseResolver":[81]},"id":82,"nodeType":"SourceUnit","nodes":[{"id":1,"literals":["solidity",">=","0.4",".25"],"nodeType":"PragmaDirective","src":"0:25:0"},{"absolutePath":"@ensdomains/ens/contracts/ENS.sol","file":"@ensdomains/ens/contracts/ENS.sol","id":2,"nodeType":"ImportDirective","scope":82,"sourceUnit":3783,"src":"27:43:0","symbolAliases":[],"unitAlias":""},{"absolutePath":"@ensdomains/ens/contracts/ReverseRegistrar.sol","file":"@ensdomains/ens/contracts/ReverseRegistrar.sol","id":3,"nodeType":"ImportDirective","scope":82,"sourceUnit":4010,"src":"71:56:0","symbolAliases":[],"unitAlias":""},{"baseContracts":[],"contractDependencies":[],"contractKind":"contract","documentation":"@dev Provides a default implementation of a resolver for reverse records,\\nwhich permits only the owner to update it.","fullyImplemented":true,"id":81,"linearizedBaseContracts":[81],"name":"DefaultReverseResolver","nodeType":"ContractDefinition","nodes":[{"constant":true,"id":6,"name":"ADDR_REVERSE_NODE","nodeType":"VariableDeclaration","scope":81,"src":"330:103:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":4,"name":"bytes32","nodeType":"ElementaryTypeName","src":"330:7:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":{"argumentTypes":null,"hexValue":"307839316431373737373831383834643033613637353761383033393936653338646532613432393637666233376565616361373237323932373130323561396532","id":5,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"367:66:0","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_65955458610802586644366824307633271870356699036341805474246458084352783133154_by_1","typeString":"int_const 6595...(69 digits omitted)...3154"},"value":"0x91d1777781884d03a6757a803996e38de2a42967fb37eeaca72729271025a9e2"},"visibility":"internal"},{"constant":false,"id":8,"name":"ens","nodeType":"VariableDeclaration","scope":81,"src":"440:14:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"},"typeName":{"contractScope":null,"id":7,"name":"ENS","nodeType":"UserDefinedTypeName","referencedDeclaration":3782,"src":"440:3:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"value":null,"visibility":"public"},{"constant":false,"id":12,"name":"name","nodeType":"VariableDeclaration","scope":81,"src":"460:39:0","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_string_storage_$","typeString":"mapping(bytes32 => string)"},"typeName":{"id":11,"keyType":{"id":9,"name":"bytes32","nodeType":"ElementaryTypeName","src":"469:7:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"460:27:0","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_string_storage_$","typeString":"mapping(bytes32 => string)"},"valueType":{"id":10,"name":"string","nodeType":"ElementaryTypeName","src":"480:6:0","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}}},"value":null,"visibility":"public"},{"body":{"id":27,"nodeType":"Block","src":"668:66:0","statements":[{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":23,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":17,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"686:3:0","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":18,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"686:10:0","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":21,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":14,"src":"710:4:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"expression":{"argumentTypes":null,"id":19,"name":"ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":8,"src":"700:3:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"id":20,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"owner","nodeType":"MemberAccess","referencedDeclaration":3767,"src":"700:9:0","typeDescriptions":{"typeIdentifier":"t_function_external_view$_t_bytes32_$returns$_t_address_$","typeString":"function (bytes32) view external returns (address)"}},"id":22,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"700:15:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"686:29:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":16,"name":"require","nodeType":"Identifier","overloadedDeclarations":[4136,4137],"referencedDeclaration":4136,"src":"678:7:0","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":24,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"678:38:0","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":25,"nodeType":"ExpressionStatement","src":"678:38:0"},{"id":26,"nodeType":"PlaceholderStatement","src":"726:1:0"}]},"documentation":"@dev Only permits calls by the reverse registrar.\\n@param node The node permission is required for.","id":28,"name":"onlyOwner","nodeType":"ModifierDefinition","parameters":{"id":15,"nodeType":"ParameterList","parameters":[{"constant":false,"id":14,"name":"node","nodeType":"VariableDeclaration","scope":28,"src":"654:12:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":13,"name":"bytes32","nodeType":"ElementaryTypeName","src":"654:7:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"653:14:0"},"src":"635:99:0","visibility":"internal"},{"body":{"id":62,"nodeType":"Block","src":"867:283:0","statements":[{"expression":{"argumentTypes":null,"id":35,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":33,"name":"ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":8,"src":"877:3:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":34,"name":"ensAddr","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":30,"src":"883:7:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"src":"877:13:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"id":36,"nodeType":"ExpressionStatement","src":"877:13:0"},{"assignments":[38],"declarations":[{"constant":false,"id":38,"name":"registrar","nodeType":"VariableDeclaration","scope":62,"src":"967:26:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"},"typeName":{"contractScope":null,"id":37,"name":"ReverseRegistrar","nodeType":"UserDefinedTypeName","referencedDeclaration":4009,"src":"967:16:0","typeDescriptions":{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"}},"value":null,"visibility":"internal"}],"id":45,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":42,"name":"ADDR_REVERSE_NODE","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":6,"src":"1023:17:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"expression":{"argumentTypes":null,"id":40,"name":"ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":8,"src":"1013:3:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"id":41,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"owner","nodeType":"MemberAccess","referencedDeclaration":3767,"src":"1013:9:0","typeDescriptions":{"typeIdentifier":"t_function_external_view$_t_bytes32_$returns$_t_address_$","typeString":"function (bytes32) view external returns (address)"}},"id":43,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1013:28:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address","typeString":"address"}],"id":39,"name":"ReverseRegistrar","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4009,"src":"996:16:0","typeDescriptions":{"typeIdentifier":"t_type$_t_contract$_ReverseRegistrar_$4009_$","typeString":"type(contract ReverseRegistrar)"}},"id":44,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"996:46:0","typeDescriptions":{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"}},"nodeType":"VariableDeclarationStatement","src":"967:75:0"},{"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":52,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":47,"name":"registrar","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":38,"src":"1064:9:0","typeDescriptions":{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"}],"id":46,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1056:7:0","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":"address"},"id":48,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1056:18:0","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"!=","rightExpression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"hexValue":"307830","id":50,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"1086:3:0","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0x0"}],"expression":{"argumentTypes":[{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"}],"id":49,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"1078:7:0","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":"address"},"id":51,"isConstant":false,"isLValue":false,"isPure":true,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1078:12:0","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"src":"1056:34:0","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"falseBody":null,"id":61,"nodeType":"IfStatement","src":"1052:92:0","trueBody":{"id":60,"nodeType":"Block","src":"1092:52:0","statements":[{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"expression":{"argumentTypes":null,"id":56,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"1122:3:0","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":57,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"1122:10:0","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_address_payable","typeString":"address payable"}],"expression":{"argumentTypes":null,"id":53,"name":"registrar","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":38,"src":"1106:9:0","typeDescriptions":{"typeIdentifier":"t_contract$_ReverseRegistrar_$4009","typeString":"contract ReverseRegistrar"}},"id":55,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"claim","nodeType":"MemberAccess","referencedDeclaration":3856,"src":"1106:15:0","typeDescriptions":{"typeIdentifier":"t_function_external_nonpayable$_t_address_$returns$_t_bytes32_$","typeString":"function (address) external returns (bytes32)"}},"id":58,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"1106:27:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"id":59,"nodeType":"ExpressionStatement","src":"1106:27:0"}]}}]},"documentation":"@dev Constructor\\n@param ensAddr The address of the ENS registry.","id":63,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nodeType":"FunctionDefinition","parameters":{"id":31,"nodeType":"ParameterList","parameters":[{"constant":false,"id":30,"name":"ensAddr","nodeType":"VariableDeclaration","scope":63,"src":"847:11:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"},"typeName":{"contractScope":null,"id":29,"name":"ENS","nodeType":"UserDefinedTypeName","referencedDeclaration":3782,"src":"847:3:0","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"value":null,"visibility":"internal"}],"src":"846:13:0"},"returnParameters":{"id":32,"nodeType":"ParameterList","parameters":[],"src":"867:0:0"},"scope":81,"src":"835:315:0","stateMutability":"nonpayable","superFunction":null,"visibility":"public"},{"body":{"id":79,"nodeType":"Block","src":"1361:35:0","statements":[{"expression":{"argumentTypes":null,"id":77,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":73,"name":"name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":12,"src":"1371:4:0","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_string_storage_$","typeString":"mapping(bytes32 => string storage ref)"}},"id":75,"indexExpression":{"argumentTypes":null,"id":74,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":65,"src":"1376:4:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"1371:10:0","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string storage ref"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":76,"name":"_name","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":67,"src":"1384:5:0","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string memory"}},"src":"1371:18:0","typeDescriptions":{"typeIdentifier":"t_string_storage","typeString":"string storage ref"}},"id":78,"nodeType":"ExpressionStatement","src":"1371:18:0"}]},"documentation":"@dev Sets the name for a node.\\n@param node The node to update.\\n@param _name The name to set.","id":80,"implemented":true,"kind":"function","modifiers":[{"arguments":[{"argumentTypes":null,"id":70,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":65,"src":"1355:4:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"id":71,"modifierName":{"argumentTypes":null,"id":69,"name":"onlyOwner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":28,"src":"1345:9:0","typeDescriptions":{"typeIdentifier":"t_modifier$_t_bytes32_$","typeString":"modifier (bytes32)"}},"nodeType":"ModifierInvocation","src":"1345:15:0"}],"name":"setName","nodeType":"FunctionDefinition","parameters":{"id":68,"nodeType":"ParameterList","parameters":[{"constant":false,"id":65,"name":"node","nodeType":"VariableDeclaration","scope":80,"src":"1303:12:0","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":64,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1303:7:0","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":67,"name":"_name","nodeType":"VariableDeclaration","scope":80,"src":"1317:19:0","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":66,"name":"string","nodeType":"ElementaryTypeName","src":"1317:6:0","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"1302:35:0"},"returnParameters":{"id":72,"nodeType":"ParameterList","parameters":[],"src":"1361:0:0"},"scope":81,"src":"1286:110:0","stateMutability":"nonpayable","superFunction":null,"visibility":"public"}],"scope":82,"src":"260:1138:0"}],"src":"0:1399:0"},"compiler":{"name":"solc","version":"0.5.8+commit.23d335f2.Emscripten.clang"},"networks":{},"schemaVersion":"3.0.16","updatedAt":"2020-02-10T18:46:21.020Z","devdoc":{"details":"Provides a default implementation of a resolver for reverse records, which permits only the owner to update it.","methods":{"constructor":{"details":"Constructor","params":{"ensAddr":"The address of the ENS registry."}},"setName(bytes32,string)":{"details":"Sets the name for a node.","params":{"_name":"The name to set.","node":"The node to update."}}}},"userdoc":{"methods":{}}}')},function(e){e.exports=JSON.parse('{"contractName":"OwnedResolver","abi":[{"constant":true,"inputs":[{"name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"key","type":"string"},{"name":"value","type":"string"}],"name":"setText","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"interfaceID","type":"bytes4"}],"name":"interfaceImplementer","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"contentTypes","type":"uint256"}],"name":"ABI","outputs":[{"name":"","type":"uint256"},{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"x","type":"bytes32"},{"name":"y","type":"bytes32"}],"name":"setPubkey","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"hash","type":"bytes"}],"name":"setContenthash","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"addr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"key","type":"string"}],"name":"text","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"contentType","type":"uint256"},{"name":"data","type":"bytes"}],"name":"setABI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"coinType","type":"uint256"},{"name":"a","type":"bytes"}],"name":"setAddr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"contenthash","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"pubkey","outputs":[{"name":"x","type":"bytes32"},{"name":"y","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"a","type":"address"}],"name":"setAddr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"interfaceID","type":"bytes4"},{"name":"implementer","type":"address"}],"name":"setInterface","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"coinType","type":"uint256"}],"name":"addr","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"indexedKey","type":"string"},{"indexed":false,"name":"key","type":"string"}],"name":"TextChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"x","type":"bytes32"},{"indexed":false,"name":"y","type":"bytes32"}],"name":"PubkeyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"name","type":"string"}],"name":"NameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"interfaceID","type":"bytes4"},{"indexed":false,"name":"implementer","type":"address"}],"name":"InterfaceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"hash","type":"bytes"}],"name":"ContenthashChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"a","type":"address"}],"name":"AddrChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"coinType","type":"uint256"},{"indexed":false,"name":"newAddress","type":"bytes"}],"name":"AddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"contentType","type":"uint256"}],"name":"ABIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}],"metadata":"{\\"compiler\\":{\\"version\\":\\"0.5.8+commit.23d335f2\\"},\\"language\\":\\"Solidity\\",\\"output\\":{\\"abi\\":[{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"}],\\"name\\":\\"supportsInterface\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bool\\"}],\\"payable\\":false,\\"stateMutability\\":\\"pure\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"key\\",\\"type\\":\\"string\\"},{\\"name\\":\\"value\\",\\"type\\":\\"string\\"}],\\"name\\":\\"setText\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"}],\\"name\\":\\"interfaceImplementer\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"contentTypes\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"ABI\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"uint256\\"},{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"x\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"y\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"setPubkey\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"hash\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setContenthash\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"addr\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"key\\",\\"type\\":\\"string\\"}],\\"name\\":\\"text\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"string\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"contentType\\",\\"type\\":\\"uint256\\"},{\\"name\\":\\"data\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setABI\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"name\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"string\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[],\\"name\\":\\"renounceOwnership\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"name\\",\\"type\\":\\"string\\"}],\\"name\\":\\"setName\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"coinType\\",\\"type\\":\\"uint256\\"},{\\"name\\":\\"a\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setAddr\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"owner\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[],\\"name\\":\\"isOwner\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bool\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"contenthash\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"pubkey\\",\\"outputs\\":[{\\"name\\":\\"x\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"y\\",\\"type\\":\\"bytes32\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"a\\",\\"type\\":\\"address\\"}],\\"name\\":\\"setAddr\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"},{\\"name\\":\\"implementer\\",\\"type\\":\\"address\\"}],\\"name\\":\\"setInterface\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"coinType\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"addr\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"newOwner\\",\\"type\\":\\"address\\"}],\\"name\\":\\"transferOwnership\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":true,\\"name\\":\\"indexedKey\\",\\"type\\":\\"string\\"},{\\"indexed\\":false,\\"name\\":\\"key\\",\\"type\\":\\"string\\"}],\\"name\\":\\"TextChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"x\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"y\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"PubkeyChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"name\\",\\"type\\":\\"string\\"}],\\"name\\":\\"NameChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":true,\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"},{\\"indexed\\":false,\\"name\\":\\"implementer\\",\\"type\\":\\"address\\"}],\\"name\\":\\"InterfaceChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"hash\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"ContenthashChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"a\\",\\"type\\":\\"address\\"}],\\"name\\":\\"AddrChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"coinType\\",\\"type\\":\\"uint256\\"},{\\"indexed\\":false,\\"name\\":\\"newAddress\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"AddressChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":true,\\"name\\":\\"contentType\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"ABIChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"previousOwner\\",\\"type\\":\\"address\\"},{\\"indexed\\":true,\\"name\\":\\"newOwner\\",\\"type\\":\\"address\\"}],\\"name\\":\\"OwnershipTransferred\\",\\"type\\":\\"event\\"}],\\"devdoc\\":{\\"methods\\":{\\"ABI(bytes32,uint256)\\":{\\"params\\":{\\"contentTypes\\":\\"A bitwise OR of the ABI formats accepted by the caller.\\",\\"node\\":\\"The ENS node to query\\"},\\"return\\":\\"contentType The content type of the return valuedata The ABI data\\"},\\"addr(bytes32)\\":{\\"params\\":{\\"node\\":\\"The ENS node to query.\\"},\\"return\\":\\"The associated address.\\"},\\"contenthash(bytes32)\\":{\\"params\\":{\\"node\\":\\"The ENS node to query.\\"},\\"return\\":\\"The associated contenthash.\\"},\\"interfaceImplementer(bytes32,bytes4)\\":{\\"params\\":{\\"interfaceID\\":\\"The EIP 168 interface ID to check for.\\",\\"node\\":\\"The ENS node to query.\\"},\\"return\\":\\"The address that implements this interface, or 0 if the interface is unsupported.\\"},\\"isOwner()\\":{\\"return\\":\\"true if `msg.sender` is the owner of the contract.\\"},\\"name(bytes32)\\":{\\"params\\":{\\"node\\":\\"The ENS node to query.\\"},\\"return\\":\\"The associated name.\\"},\\"owner()\\":{\\"return\\":\\"the address of the owner.\\"},\\"pubkey(bytes32)\\":{\\"params\\":{\\"node\\":\\"The ENS node to query\\"},\\"return\\":\\"x, y the X and Y coordinates of the curve point for the public key.\\"},\\"renounceOwnership()\\":{\\"details\\":\\"Allows the current owner to relinquish control of the contract.\\"},\\"setABI(bytes32,uint256,bytes)\\":{\\"params\\":{\\"contentType\\":\\"The content type of the ABI\\",\\"data\\":\\"The ABI data.\\",\\"node\\":\\"The node to update.\\"}},\\"setAddr(bytes32,address)\\":{\\"params\\":{\\"a\\":\\"The address to set.\\",\\"node\\":\\"The node to update.\\"}},\\"setContenthash(bytes32,bytes)\\":{\\"params\\":{\\"hash\\":\\"The contenthash to set\\",\\"node\\":\\"The node to update.\\"}},\\"setInterface(bytes32,bytes4,address)\\":{\\"params\\":{\\"implementer\\":\\"The address of a contract that implements this interface for this node.\\",\\"interfaceID\\":\\"The EIP 168 interface ID.\\",\\"node\\":\\"The node to update.\\"}},\\"setName(bytes32,string)\\":{\\"params\\":{\\"name\\":\\"The name to set.\\",\\"node\\":\\"The node to update.\\"}},\\"setPubkey(bytes32,bytes32,bytes32)\\":{\\"params\\":{\\"node\\":\\"The ENS node to query\\",\\"x\\":\\"the X coordinate of the curve point for the public key.\\",\\"y\\":\\"the Y coordinate of the curve point for the public key.\\"}},\\"setText(bytes32,string,string)\\":{\\"params\\":{\\"key\\":\\"The key to set.\\",\\"node\\":\\"The node to update.\\",\\"value\\":\\"The text data value to set.\\"}},\\"text(bytes32,string)\\":{\\"params\\":{\\"key\\":\\"The text data key to query.\\",\\"node\\":\\"The ENS node to query.\\"},\\"return\\":\\"The associated text data.\\"},\\"transferOwnership(address)\\":{\\"details\\":\\"Allows the current owner to transfer control of the contract to a newOwner.\\",\\"params\\":{\\"newOwner\\":\\"The address to transfer ownership to.\\"}}}},\\"userdoc\\":{\\"methods\\":{\\"ABI(bytes32,uint256)\\":{\\"notice\\":\\"Returns the ABI associated with an ENS node. Defined in EIP205.\\"},\\"addr(bytes32)\\":{\\"notice\\":\\"Returns the address associated with an ENS node.\\"},\\"contenthash(bytes32)\\":{\\"notice\\":\\"Returns the contenthash associated with an ENS node.\\"},\\"interfaceImplementer(bytes32,bytes4)\\":{\\"notice\\":\\"Returns the address of a contract that implements the specified interface for this name. If an implementer has not been set for this interfaceID and name, the resolver will query the contract at `addr()`. If `addr()` is set, a contract exists at that address, and that contract implements EIP168 and returns `true` for the specified interfaceID, its address will be returned.\\"},\\"name(bytes32)\\":{\\"notice\\":\\"Returns the name associated with an ENS node, for reverse records. Defined in EIP181.\\"},\\"pubkey(bytes32)\\":{\\"notice\\":\\"Returns the SECP256k1 public key associated with an ENS node. Defined in EIP 619.\\"},\\"renounceOwnership()\\":{\\"notice\\":\\"Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the `onlyOwner` modifier anymore.\\"},\\"setABI(bytes32,uint256,bytes)\\":{\\"notice\\":\\"Sets the ABI associated with an ENS node. Nodes may have one ABI of each content type. To remove an ABI, set it to the empty string.\\"},\\"setAddr(bytes32,address)\\":{\\"notice\\":\\"Sets the address associated with an ENS node. May only be called by the owner of that node in the ENS registry.\\"},\\"setContenthash(bytes32,bytes)\\":{\\"notice\\":\\"Sets the contenthash associated with an ENS node. May only be called by the owner of that node in the ENS registry.\\"},\\"setInterface(bytes32,bytes4,address)\\":{\\"notice\\":\\"Sets an interface associated with a name. Setting the address to 0 restores the default behaviour of querying the contract at `addr()` for interface support.\\"},\\"setName(bytes32,string)\\":{\\"notice\\":\\"Sets the name associated with an ENS node, for reverse records. May only be called by the owner of that node in the ENS registry.\\"},\\"setPubkey(bytes32,bytes32,bytes32)\\":{\\"notice\\":\\"Sets the SECP256k1 public key associated with an ENS node.\\"},\\"setText(bytes32,string,string)\\":{\\"notice\\":\\"Sets the text data associated with an ENS node and key. May only be called by the owner of that node in the ENS registry.\\"},\\"text(bytes32,string)\\":{\\"notice\\":\\"Returns the text data associated with an ENS node and key.\\"}},\\"notice\\":\\"A simple resolver anyone can use; only allows the owner of a node to set its address.\\"}},\\"settings\\":{\\"compilationTarget\\":{\\"/home/user/Dropbox/projects/resolvers/contracts/OwnedResolver.sol\\":\\"OwnedResolver\\"},\\"evmVersion\\":\\"petersburg\\",\\"libraries\\":{},\\"optimizer\\":{\\"enabled\\":false,\\"runs\\":200},\\"remappings\\":[]},\\"sources\\":{\\"/home/user/Dropbox/projects/resolvers/contracts/OwnedResolver.sol\\":{\\"keccak256\\":\\"0x7f733f4354cde4ed92c08095afd8cc6b2f8d17da8b763fd17069319d9f840bf3\\",\\"urls\\":[\\"bzzr://471cb1f17fc51d7d2e1a64faf7b8e86e98f6c063222dfa85d7e86545f013a428\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/ResolverBase.sol\\":{\\"keccak256\\":\\"0xfc7d550960829127576d6fc3080513d74ef18a6d7057d0d9262ce071890053e8\\",\\"urls\\":[\\"bzzr://81e5565403a67f558d12c787f53f40ff19a5da99c648f8a4f99f2caa449ca0e6\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/ABIResolver.sol\\":{\\"keccak256\\":\\"0x794514d39c469bab511822ca7a1a7a7838dca338499889896c7dac4303c30c1f\\",\\"urls\\":[\\"bzzr://9fdf58339517baeca57889519a4bb2f30a010f2f4262771e6f5de4374fc436b1\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/AddrResolver.sol\\":{\\"keccak256\\":\\"0xbe84f840b10f6ddc3d695d5905fe4034569c646bdf56b1367c16271aa92071c6\\",\\"urls\\":[\\"bzzr://c97941ee4075d43abe371cc52f3bfa018d7dc93c7cfbb72da565ecaa72996381\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/ContentHashResolver.sol\\":{\\"keccak256\\":\\"0xaa3d9b9baae36fbf831b8297832b54ffd1023b9ac508f2c5068b92ce0c30edfc\\",\\"urls\\":[\\"bzzr://c80ec35a145dd4b853e1e04b32763843313be216462a4993d28d5b489a6912f7\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/InterfaceResolver.sol\\":{\\"keccak256\\":\\"0x6398dc59dd38501acd6a716173793e84aa1c454c3e21c190e10ddbe54dd8be41\\",\\"urls\\":[\\"bzzr://0d539232d308722b6a434ed5e9a22b0c4cb849c641b6d0739f2f83e566cb59f1\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/NameResolver.sol\\":{\\"keccak256\\":\\"0xcff06da8901397164ca9bea36361ac518fb62cd5283d2e2e835e006980ba4d16\\",\\"urls\\":[\\"bzzr://a4a8988916719c4976bb0caf1cff3bdee3c94ae693b57970f6b925124cff38ee\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/PubkeyResolver.sol\\":{\\"keccak256\\":\\"0xaa10a8a7e1579987b6781657153ae3f16806f240b3ffaa54ea1f303f7cb7a74a\\",\\"urls\\":[\\"bzzr://1caaa8668f536f654f4e6d68129ab5091e0ed5c72e0e70216b82d0bb9e7cd86f\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/TextResolver.sol\\":{\\"keccak256\\":\\"0x1feb20d9466c52f471c57344c1e3792e2c69b24ab9d7f7a4de6e49912abc75bb\\",\\"urls\\":[\\"bzzr://25ce3b4bf68f29d54e8916c0682b746a9e15f14bcccfc76136fc17ae2c902898\\"]},\\"openzeppelin-solidity/contracts/ownership/Ownable.sol\\":{\\"keccak256\\":\\"0x980de387a1a020a498f53d00f89fecebb12c949a17e8f160093c0303ede2b786\\",\\"urls\\":[\\"bzzr://08894efa2a557982070beda6a81a032407e70532d24bdafe80d39660c74904d9\\"]}},\\"version\\":1}","bytecode":"0x6080604052336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36123ea806100cf6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063bc1c58d11161007c578063bc1c58d1146108f3578063c86902331461099a578063d5fa2b00146109e3578063e59d895d14610a31578063f1cb7e0614610aa8578063f2fde38b14610b5957610137565b8063715018a61461072b57806377372213146107355780638b95dd71146107b85780638da5cb5b146108875780638f32d59b146108d157610137565b8063304e6ade116100ff578063304e6ade1461040a5780633b3b57de1461048d57806359d1d43c146104fb578063623195b0146105f7578063691f34311461068457610137565b806301ffc9a71461013c57806310f13a8c146101a1578063124a319c146102795780632203ab561461031057806329cd62ea146103c8575b600080fd5b6101876004803603602081101561015257600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610b9d565b604051808215151515815260200191505060405180910390f35b610277600480360360608110156101b757600080fd5b8101908080359060200190929190803590602001906401000000008111156101de57600080fd5b8201836020820111156101f057600080fd5b8035906020019184600183028401116401000000008311171561021257600080fd5b90919293919293908035906020019064010000000081111561023357600080fd5b82018360208201111561024557600080fd5b8035906020019184600183028401116401000000008311171561026757600080fd5b9091929391929390505050610bfe565b005b6102ce6004803603604081101561028f57600080fd5b810190808035906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610ce4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103466004803603604081101561032657600080fd5b8101908080359060200190929190803590602001909291905050506111e1565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561038c578082015181840152602081019050610371565b50505050905090810190601f1680156103b95780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610408600480360360608110156103de57600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050611331565b005b61048b6004803603604081101561042057600080fd5b81019080803590602001909291908035906020019064010000000081111561044757600080fd5b82018360208201111561045957600080fd5b8035906020019184600183028401116401000000008311171561047b57600080fd5b90919293919293905050506113c9565b005b6104b9600480360360208110156104a357600080fd5b8101908080359060200190929190505050611469565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61057c6004803603604081101561051157600080fd5b81019080803590602001909291908035906020019064010000000081111561053857600080fd5b82018360208201111561054a57600080fd5b8035906020019184600183028401116401000000008311171561056c57600080fd5b90919293919293905050506114a0565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105bc5780820151818401526020810190506105a1565b50505050905090810190601f1680156105e95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6106826004803603606081101561060d57600080fd5b8101908080359060200190929190803590602001909291908035906020019064010000000081111561063e57600080fd5b82018360208201111561065057600080fd5b8035906020019184600183028401116401000000008311171561067257600080fd5b909192939192939050505061157c565b005b6106b06004803603602081101561069a57600080fd5b810190808035906020019092919050505061160a565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156106f05780820151818401526020810190506106d5565b50505050905090810190601f16801561071d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6107336116bf565b005b6107b66004803603604081101561074b57600080fd5b81019080803590602001909291908035906020019064010000000081111561077257600080fd5b82018360208201111561078457600080fd5b803590602001918460018302840111640100000000831117156107a657600080fd5b909192939192939050505061178f565b005b610885600480360360608110156107ce57600080fd5b810190808035906020019092919080359060200190929190803590602001906401000000008111156107ff57600080fd5b82018360208201111561081157600080fd5b8035906020019184600183028401116401000000008311171561083357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061182f565b005b61088f61199c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108d96119c5565b604051808215151515815260200191505060405180910390f35b61091f6004803603602081101561090957600080fd5b8101908080359060200190929190505050611a1c565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561095f578082015181840152602081019050610944565b50505050905090810190601f16801561098c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6109c6600480360360208110156109b057600080fd5b8101908080359060200190929190505050611ad1565b604051808381526020018281526020019250505060405180910390f35b610a2f600480360360408110156109f957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b0b565b005b610aa660048036036060811015610a4757600080fd5b810190808035906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b37565b005b610ade60048036036040811015610abe57600080fd5b810190808035906020019092919080359060200190929190505050611c75565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b1e578082015181840152602081019050610b03565b50505050905090810190601f168015610b4b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610b9b60048036036020811015610b6f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611d3c565b005b60006359d1d43c60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bf75750610bf682611d59565b5b9050919050565b84610c0881611dba565b610c1157600080fd5b828260076000898152602001908152602001600020878760405180838380828437808301925050509250505090815260200160405180910390209190610c589291906121f5565b5084846040518083838082843780830192505050925050506040518091039020867fd8c9334b1a9c2f9da342a0a2b32629c1a229b6445dad78947f674b44444a7550878760405180806020018281038252848482818152602001925080828437600081840152601f19601f820116905080830192505050935050505060405180910390a3505050505050565b600080600460008581526020019081526020016000206000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610da957809150506111db565b6000610db485611469565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610df6576000925050506111db565b600060608273ffffffffffffffffffffffffffffffffffffffff166301ffc9a760e01b60405160240180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019150506040516020818303038152906040527f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b60208310610f175780518252602082019150602081019050602083039250610ef4565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610f77576040519150601f19603f3d011682016040523d82523d6000602084013e610f7c565b606091505b5091509150811580610f8f575060208151105b80610fd65750600060f81b81601f81518110610fa757fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15610fe85760009450505050506111db565b8273ffffffffffffffffffffffffffffffffffffffff168660405160240180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019150506040516020818303038152906040527f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b602083106110fe57805182526020820191506020810190506020830392506110db565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461115e576040519150601f19603f3d011682016040523d82523d6000602084013e611163565b606091505b50809250819350505081158061117a575060208151105b806111c15750600060f81b81601f8151811061119257fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b156111d35760009450505050506111db565b829450505050505b92915050565b6000606060006001600086815260200190815260200160002090506000600190505b84811161130e5760008582161415801561124357506000826000838152602001908152602001600020805460018160011615610100020316600290049050115b156113025780826000838152602001908152602001600020808054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156112f05780601f106112c5576101008083540402835291602001916112f0565b820191906000526020600020905b8154815290600101906020018083116112d357829003601f168201915b5050505050905093509350505061132a565b600181901b9050611203565b5060006040518060200160405280600081525081915092509250505b9250929050565b8261133b81611dba565b61134457600080fd5b604051806040016040528084815260200183815250600660008681526020019081526020016000206000820151816000015560208201518160010155905050837f1d6f5e03d3f63eb58751986629a5439baee5079ff04f345becb66e23eb154e468484604051808381526020018281526020019250505060405180910390a250505050565b826113d381611dba565b6113dc57600080fd5b82826003600087815260200190815260200160002091906113fe929190612275565b50837fe379c1624ed7e714cc0937528a32359d69d5281337765313dba4e081b72d7578848460405180806020018281038252848482818152602001925080828437600081840152601f19601f820116905080830192505050935050505060405180910390a250505050565b6000606061147883603c611c75565b905060008151141561148e57600091505061149b565b61149781611df9565b9150505b919050565b606060076000858152602001908152602001600020838360405180838380828437808301925050509250505090815260200160405180910390208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561156e5780601f106115435761010080835404028352916020019161156e565b820191906000526020600020905b81548152906001019060200180831161155157829003601f168201915b505050505090509392505050565b8361158681611dba565b61158f57600080fd5b6000846001860316146115a157600080fd5b828260016000888152602001908152602001600020600087815260200190815260200160002091906115d4929190612275565b5083857faa121bbeef5f32f5961a2a28966e769023910fc9479059ee3495d4c1a696efe360405160405180910390a35050505050565b6060600560008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156116b35780601f10611688576101008083540402835291602001916116b3565b820191906000526020600020905b81548152906001019060200180831161169657829003601f168201915b50505050509050919050565b6116c76119c5565b6116d057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b8261179981611dba565b6117a257600080fd5b82826005600087815260200190815260200160002091906117c49291906121f5565b50837fb7d29e911041e8d9b843369e890bcb72c9388692ba48b65ac54e7214c4c348f7848460405180806020018281038252848482818152602001925080828437600081840152601f19601f820116905080830192505050935050505060405180910390a250505050565b8261183981611dba565b61184257600080fd5b837f65412581168e88a1e60c6459d7f44ae83ad0832e670826c05a4e2476b57af75284846040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156118ac578082015181840152602081019050611891565b50505050905090810190601f1680156118d95780820380516001836020036101000a031916815260200191505b50935050505060405180910390a2603c83141561195d57837f52d7d861f09ab3d26239d492e8968629f95e9e318cf0b73bfddc441522a15fd261191b84611df9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a25b8160026000868152602001908152602001600020600085815260200190815260200160002090805190602001906119959291906122f5565b5050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b6060600360008381526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611ac55780601f10611a9a57610100808354040283529160200191611ac5565b820191906000526020600020905b815481529060010190602001808311611aa857829003601f168201915b50505050509050919050565b6000806006600084815260200190815260200160002060000154600660008581526020019081526020016000206001015491509150915091565b81611b1581611dba565b611b1e57600080fd5b611b3283603c611b2d85611e1c565b61182f565b505050565b82611b4181611dba565b611b4a57600080fd5b81600460008681526020019081526020016000206000857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916847f7c69f06bea0bdef565b709e93a147836b0063ba2dd89f02d0b7e8d931e6a6daa84604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a350505050565b60606002600084815260200190815260200160002060008381526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611d2f5780601f10611d0457610100808354040283529160200191611d2f565b820191906000526020600020905b815481529060010190602001808311611d1257829003601f168201915b5050505050905092915050565b611d446119c5565b611d4d57600080fd5b611d5681611e67565b50565b600063c869023360e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611db35750611db282611f5f565b5b9050919050565b6000611dc461199c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16149050919050565b60006014825114611e0957600080fd5b600c6101000a6020830151049050919050565b606060146040519080825280601f01601f191660200182016040528015611e525781602001600182028038833980820191505090505b509050600c6101000a82026020820152919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ea157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600063691f343160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611fb95750611fb882611fc0565b5b9050919050565b6000604051808061239b60249139602401905060405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061202b575061202a82612032565b5b9050919050565b600063bc1c58d160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061208c575061208b82612093565b5b9050919050565b6000633b3b57de60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061212c575063f1cb7e0660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061213c575061213b82612143565b5b9050919050565b6000632203ab5660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061219d575061219c826121a4565b5b9050919050565b60006301ffc9a760e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061223657803560ff1916838001178555612264565b82800160010185558215612264579182015b82811115612263578235825591602001919060010190612248565b5b5090506122719190612375565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106122b657803560ff19168380011785556122e4565b828001600101855582156122e4579182015b828111156122e35782358255916020019190600101906122c8565b5b5090506122f19190612375565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061233657805160ff1916838001178555612364565b82800160010185558215612364579182015b82811115612363578251825591602001919060010190612348565b5b5090506123719190612375565b5090565b61239791905b8082111561239357600081600090555060010161237b565b5090565b9056fe696e74657266616365496d706c656d656e74657228627974657333322c62797465733429a165627a7a7230582031836b5f898302cabf50c9867158cc925aacbe7d0decb7f9e1b6fc4c943f77de0029","deployedBytecode":"0x608060405234801561001057600080fd5b50600436106101375760003560e01c8063715018a6116100b8578063bc1c58d11161007c578063bc1c58d1146108f3578063c86902331461099a578063d5fa2b00146109e3578063e59d895d14610a31578063f1cb7e0614610aa8578063f2fde38b14610b5957610137565b8063715018a61461072b57806377372213146107355780638b95dd71146107b85780638da5cb5b146108875780638f32d59b146108d157610137565b8063304e6ade116100ff578063304e6ade1461040a5780633b3b57de1461048d57806359d1d43c146104fb578063623195b0146105f7578063691f34311461068457610137565b806301ffc9a71461013c57806310f13a8c146101a1578063124a319c146102795780632203ab561461031057806329cd62ea146103c8575b600080fd5b6101876004803603602081101561015257600080fd5b8101908080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610b9d565b604051808215151515815260200191505060405180910390f35b610277600480360360608110156101b757600080fd5b8101908080359060200190929190803590602001906401000000008111156101de57600080fd5b8201836020820111156101f057600080fd5b8035906020019184600183028401116401000000008311171561021257600080fd5b90919293919293908035906020019064010000000081111561023357600080fd5b82018360208201111561024557600080fd5b8035906020019184600183028401116401000000008311171561026757600080fd5b9091929391929390505050610bfe565b005b6102ce6004803603604081101561028f57600080fd5b810190808035906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190505050610ce4565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6103466004803603604081101561032657600080fd5b8101908080359060200190929190803590602001909291905050506111e1565b6040518083815260200180602001828103825283818151815260200191508051906020019080838360005b8381101561038c578082015181840152602081019050610371565b50505050905090810190601f1680156103b95780820380516001836020036101000a031916815260200191505b50935050505060405180910390f35b610408600480360360608110156103de57600080fd5b81019080803590602001909291908035906020019092919080359060200190929190505050611331565b005b61048b6004803603604081101561042057600080fd5b81019080803590602001909291908035906020019064010000000081111561044757600080fd5b82018360208201111561045957600080fd5b8035906020019184600183028401116401000000008311171561047b57600080fd5b90919293919293905050506113c9565b005b6104b9600480360360208110156104a357600080fd5b8101908080359060200190929190505050611469565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61057c6004803603604081101561051157600080fd5b81019080803590602001909291908035906020019064010000000081111561053857600080fd5b82018360208201111561054a57600080fd5b8035906020019184600183028401116401000000008311171561056c57600080fd5b90919293919293905050506114a0565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156105bc5780820151818401526020810190506105a1565b50505050905090810190601f1680156105e95780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6106826004803603606081101561060d57600080fd5b8101908080359060200190929190803590602001909291908035906020019064010000000081111561063e57600080fd5b82018360208201111561065057600080fd5b8035906020019184600183028401116401000000008311171561067257600080fd5b909192939192939050505061157c565b005b6106b06004803603602081101561069a57600080fd5b810190808035906020019092919050505061160a565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156106f05780820151818401526020810190506106d5565b50505050905090810190601f16801561071d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6107336116bf565b005b6107b66004803603604081101561074b57600080fd5b81019080803590602001909291908035906020019064010000000081111561077257600080fd5b82018360208201111561078457600080fd5b803590602001918460018302840111640100000000831117156107a657600080fd5b909192939192939050505061178f565b005b610885600480360360608110156107ce57600080fd5b810190808035906020019092919080359060200190929190803590602001906401000000008111156107ff57600080fd5b82018360208201111561081157600080fd5b8035906020019184600183028401116401000000008311171561083357600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050919291929050505061182f565b005b61088f61199c565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6108d96119c5565b604051808215151515815260200191505060405180910390f35b61091f6004803603602081101561090957600080fd5b8101908080359060200190929190505050611a1c565b6040518080602001828103825283818151815260200191508051906020019080838360005b8381101561095f578082015181840152602081019050610944565b50505050905090810190601f16801561098c5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6109c6600480360360208110156109b057600080fd5b8101908080359060200190929190505050611ad1565b604051808381526020018281526020019250505060405180910390f35b610a2f600480360360408110156109f957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b0b565b005b610aa660048036036060811015610a4757600080fd5b810190808035906020019092919080357bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611b37565b005b610ade60048036036040811015610abe57600080fd5b810190808035906020019092919080359060200190929190505050611c75565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610b1e578082015181840152602081019050610b03565b50505050905090810190601f168015610b4b5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b610b9b60048036036020811015610b6f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611d3c565b005b60006359d1d43c60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610bf75750610bf682611d59565b5b9050919050565b84610c0881611dba565b610c1157600080fd5b828260076000898152602001908152602001600020878760405180838380828437808301925050509250505090815260200160405180910390209190610c589291906121f5565b5084846040518083838082843780830192505050925050506040518091039020867fd8c9334b1a9c2f9da342a0a2b32629c1a229b6445dad78947f674b44444a7550878760405180806020018281038252848482818152602001925080828437600081840152601f19601f820116905080830192505050935050505060405180910390a3505050505050565b600080600460008581526020019081526020016000206000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610da957809150506111db565b6000610db485611469565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610df6576000925050506111db565b600060608273ffffffffffffffffffffffffffffffffffffffff166301ffc9a760e01b60405160240180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019150506040516020818303038152906040527f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b60208310610f175780518252602082019150602081019050602083039250610ef4565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d8060008114610f77576040519150601f19603f3d011682016040523d82523d6000602084013e610f7c565b606091505b5091509150811580610f8f575060208151105b80610fd65750600060f81b81601f81518110610fa757fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15610fe85760009450505050506111db565b8273ffffffffffffffffffffffffffffffffffffffff168660405160240180827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020019150506040516020818303038152906040527f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050506040518082805190602001908083835b602083106110fe57805182526020820191506020810190506020830392506110db565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461115e576040519150601f19603f3d011682016040523d82523d6000602084013e611163565b606091505b50809250819350505081158061117a575060208151105b806111c15750600060f81b81601f8151811061119257fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b156111d35760009450505050506111db565b829450505050505b92915050565b6000606060006001600086815260200190815260200160002090506000600190505b84811161130e5760008582161415801561124357506000826000838152602001908152602001600020805460018160011615610100020316600290049050115b156113025780826000838152602001908152602001600020808054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156112f05780601f106112c5576101008083540402835291602001916112f0565b820191906000526020600020905b8154815290600101906020018083116112d357829003601f168201915b5050505050905093509350505061132a565b600181901b9050611203565b5060006040518060200160405280600081525081915092509250505b9250929050565b8261133b81611dba565b61134457600080fd5b604051806040016040528084815260200183815250600660008681526020019081526020016000206000820151816000015560208201518160010155905050837f1d6f5e03d3f63eb58751986629a5439baee5079ff04f345becb66e23eb154e468484604051808381526020018281526020019250505060405180910390a250505050565b826113d381611dba565b6113dc57600080fd5b82826003600087815260200190815260200160002091906113fe929190612275565b50837fe379c1624ed7e714cc0937528a32359d69d5281337765313dba4e081b72d7578848460405180806020018281038252848482818152602001925080828437600081840152601f19601f820116905080830192505050935050505060405180910390a250505050565b6000606061147883603c611c75565b905060008151141561148e57600091505061149b565b61149781611df9565b9150505b919050565b606060076000858152602001908152602001600020838360405180838380828437808301925050509250505090815260200160405180910390208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561156e5780601f106115435761010080835404028352916020019161156e565b820191906000526020600020905b81548152906001019060200180831161155157829003601f168201915b505050505090509392505050565b8361158681611dba565b61158f57600080fd5b6000846001860316146115a157600080fd5b828260016000888152602001908152602001600020600087815260200190815260200160002091906115d4929190612275565b5083857faa121bbeef5f32f5961a2a28966e769023910fc9479059ee3495d4c1a696efe360405160405180910390a35050505050565b6060600560008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156116b35780601f10611688576101008083540402835291602001916116b3565b820191906000526020600020905b81548152906001019060200180831161169657829003601f168201915b50505050509050919050565b6116c76119c5565b6116d057600080fd5b600073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360008060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b8261179981611dba565b6117a257600080fd5b82826005600087815260200190815260200160002091906117c49291906121f5565b50837fb7d29e911041e8d9b843369e890bcb72c9388692ba48b65ac54e7214c4c348f7848460405180806020018281038252848482818152602001925080828437600081840152601f19601f820116905080830192505050935050505060405180910390a250505050565b8261183981611dba565b61184257600080fd5b837f65412581168e88a1e60c6459d7f44ae83ad0832e670826c05a4e2476b57af75284846040518083815260200180602001828103825283818151815260200191508051906020019080838360005b838110156118ac578082015181840152602081019050611891565b50505050905090810190601f1680156118d95780820380516001836020036101000a031916815260200191505b50935050505060405180910390a2603c83141561195d57837f52d7d861f09ab3d26239d492e8968629f95e9e318cf0b73bfddc441522a15fd261191b84611df9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a25b8160026000868152602001908152602001600020600085815260200190815260200160002090805190602001906119959291906122f5565b5050505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614905090565b6060600360008381526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611ac55780601f10611a9a57610100808354040283529160200191611ac5565b820191906000526020600020905b815481529060010190602001808311611aa857829003601f168201915b50505050509050919050565b6000806006600084815260200190815260200160002060000154600660008581526020019081526020016000206001015491509150915091565b81611b1581611dba565b611b1e57600080fd5b611b3283603c611b2d85611e1c565b61182f565b505050565b82611b4181611dba565b611b4a57600080fd5b81600460008681526020019081526020016000206000857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916847f7c69f06bea0bdef565b709e93a147836b0063ba2dd89f02d0b7e8d931e6a6daa84604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a350505050565b60606002600084815260200190815260200160002060008381526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611d2f5780601f10611d0457610100808354040283529160200191611d2f565b820191906000526020600020905b815481529060010190602001808311611d1257829003601f168201915b5050505050905092915050565b611d446119c5565b611d4d57600080fd5b611d5681611e67565b50565b600063c869023360e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611db35750611db282611f5f565b5b9050919050565b6000611dc461199c565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16149050919050565b60006014825114611e0957600080fd5b600c6101000a6020830151049050919050565b606060146040519080825280601f01601f191660200182016040528015611e525781602001600182028038833980820191505090505b509050600c6101000a82026020820152919050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611ea157600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600063691f343160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611fb95750611fb882611fc0565b5b9050919050565b6000604051808061239b60249139602401905060405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061202b575061202a82612032565b5b9050919050565b600063bc1c58d160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061208c575061208b82612093565b5b9050919050565b6000633b3b57de60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061212c575063f1cb7e0660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061213c575061213b82612143565b5b9050919050565b6000632203ab5660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061219d575061219c826121a4565b5b9050919050565b60006301ffc9a760e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061223657803560ff1916838001178555612264565b82800160010185558215612264579182015b82811115612263578235825591602001919060010190612248565b5b5090506122719190612375565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106122b657803560ff19168380011785556122e4565b828001600101855582156122e4579182015b828111156122e35782358255916020019190600101906122c8565b5b5090506122f19190612375565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061233657805160ff1916838001178555612364565b82800160010185558215612364579182015b82811115612363578251825591602001919060010190612348565b5b5090506123719190612375565b5090565b61239791905b8082111561239357600081600090555060010161237b565b5090565b9056fe696e74657266616365496d706c656d656e74657228627974657333322c62797465733429a165627a7a7230582031836b5f898302cabf50c9867158cc925aacbe7d0decb7f9e1b6fc4c943f77de0029","sourceMap":"469:262:2:-;;;524:10:19;515:6;;:19;;;;;;;;;;;;;;;;;;582:6;;;;;;;;;;;549:40;;578:1;549:40;;;;;;;;;;;;469:262:2;;;;;;","deployedSourceMap":"469:262:2:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;469:262:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1107:169:13;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1107:169:13;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;573:184;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;573:184:13;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;573:184:13;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;573:184:13;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;573:184:13;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;573:184:13;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;573:184:13;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;573:184:13;;;;;;;;;;;;:::i;:::-;;1721:953:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1721:953:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;1195:454:6;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1195:454:6;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1195:454:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;612:169:12;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;612:169:12;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;505:166:8;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;505:166:8;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;505:166:8;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;505:166:8;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;505:166:8;;;;;;;;;;;;:::i;:::-;;972:228:7;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;972:228:7;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;974:127:13;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;974:127:13;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;974:127:13;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;974:127:13;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;974:127:13;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;974:127:13;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;582:292:6;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;582:292:6;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;582:292:6;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;582:292:6;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;582:292:6;;;;;;;;;;;;:::i;:::-;;844:101:11;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;844:101:11;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;844:101:11;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1347:137:19;;;:::i;:::-;;492:152:11;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;492:152:11;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;492:152:11;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;492:152:11;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;492:152:11;;;;;;;;;;;;:::i;:::-;;1206:286:7;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1206:286:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;21:11:-1;8;5:28;2:2;;;46:1;43;36:12;2:2;1206:286:7;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;1206:286:7;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;1206:286:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;1206:286:7;;;;;;;;;;;;;;;:::i;:::-;;659:77:19;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;979:90;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;838:108:8;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;838:108:8;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;838:108:8;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1023:133:12;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1023:133:12;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;681:132:7;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;681:132:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;858:226:10;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;858:226:10;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;1498:127:7;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1498:127:7;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1498:127:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1655:107:19;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;1655:107:19;;;;;;;;;;;;;;;;;;;:::i;:::-;;1107:169:13;1174:4;144:10;1212:17;;1197:32;;;:11;:32;;;;:72;;;;1233:36;1257:11;1233:23;:36::i;:::-;1197:72;1190:79;;1107:169;;;:::o;573:184::-;668:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;703:5:13;;684;:11;690:4;684:11;;;;;;;;;;;696:3;;684:16;;;;;30:3:-1;22:6;14;1:33;57:3;49:6;45:16;35:26;;684:16:13;;;;;;;;;;;;;;;;;;:24;;;;;;;:::i;:::-;;741:3;;723:27;;;;;30:3:-1;22:6;14;1:33;57:3;49:6;45:16;35:26;;723:27:13;;;;;;;;;;;;;735:4;723:27;746:3;;723:27;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;723:27:13;;;;;;;;;;;;;;573:184;;;;;;:::o;1721:953:10:-;1808:7;1827:19;1849:10;:16;1860:4;1849:16;;;;;;;;;;;:29;1866:11;1849:29;;;;;;;;;;;;;;;;;;;;;;;;;;;1827:51;;1914:1;1891:25;;:11;:25;;;1888:73;;1939:11;1932:18;;;;;1888:73;1971:9;1983:10;1988:4;1983;:10::i;:::-;1971:22;;2019:1;2006:15;;:1;:15;;;2003:62;;;2052:1;2037:17;;;;;;2003:62;2076:12;2090:23;2117:1;:12;;304:10;2183:17;;2130:71;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;2130:71:10;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;2130:71:10;2117:85;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2117:85:10;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;2075:127:10;;;;2216:7;2215:8;:34;;;;2247:2;2227:10;:17;:22;2215:34;:57;;;;2271:1;2253:19;;:10;2264:2;2253:14;;;;;;;;;;;;;;;;:19;;;;2215:57;2212:151;;;2350:1;2335:17;;;;;;;;2212:151;2397:1;:12;;2463:11;2410:65;;;;;;;;;;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;2410:65:10;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;2410:65:10;2397:79;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;182:3;176:10;171:3;164:23;98:2;93:3;89:12;82:19;;123:2;118:3;114:12;107:19;;148:2;143:3;139:12;132:19;;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;2397:79:10;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;2373:103:10;;;;;;;;2490:7;2489:8;:34;;;;2521:2;2501:10;:17;:22;2489:34;:57;;;;2545:1;2527:19;;:10;2538:2;2527:14;;;;;;;;;;;;;;;;:19;;;;2489:57;2486:163;;;2636:1;2621:17;;;;;;;;2486:163;2666:1;2659:8;;;;;;1721:953;;;;;:::o;1195:454:6:-;1267:7;1276:12;1300:38;1341:4;:10;1346:4;1341:10;;;;;;;;;;;1300:51;;1367:19;1389:1;1367:23;;1362:249;1407:12;1392:11;:27;1362:249;;1490:1;1473:12;1459:11;:26;1458:33;;:67;;;;;1524:1;1495:6;:19;1502:11;1495:19;;;;;;;;;;;:26;;;;;;;;;;;;;;;;:30;1458:67;1454:147;;;1553:11;1566:6;:19;1573:11;1566:19;;;;;;;;;;;1545:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1454:147;1437:1;1421:17;;;;;1362:249;;;;1629:1;1632:9;;;;;;;;;;;;1621:21;;;;;;;;1195:454;;;;;;:::o;612:169:12:-;687:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;719:15:12;;;;;;;;729:1;719:15;;;;732:1;719:15;;;703:7;:13;711:4;703:13;;;;;;;;;;;:31;;;;;;;;;;;;;;;;;;;763:4;749:25;769:1;772;749:25;;;;;;;;;;;;;;;;;;;;;;;;612:169;;;;:::o;505:166:8:-;584:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;615:4:8;;600:6;:12;607:4;600:12;;;;;;;;;;;:19;;;;;;;:::i;:::-;;653:4;634:30;659:4;;634:30;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;634:30:8;;;;;;;;;;;;;;505:166;;;;:::o;972:228:7:-;1021:15;1048:14;1065:25;1070:4;261:2;1065:4;:25::i;:::-;1048:42;;1115:1;1103;:8;:13;1100:60;;;1147:1;1132:17;;;;;1100:60;1176:17;1191:1;1176:14;:17::i;:::-;1169:24;;;972:228;;;;:::o;974:127:13:-;1046:13;1078:5;:11;1084:4;1078:11;;;;;;;;;;;1090:3;;1078:16;;;;;30:3:-1;22:6;14;1:33;57:3;49:6;45:16;35:26;;1078:16:13;;;;;;;;;;;;;;;;;;1071:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;974:127;;;;;:::o;582:292:6:-;674:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;780:1:6;764:11;759:1;745:11;:15;744:31;743:38;735:47;;;;;;819:4;;793;:10;798:4;793:10;;;;;;;;;;;:23;804:11;793:23;;;;;;;;;;;:30;;;;;;;:::i;:::-;;855:11;849:4;838:29;;;;;;;;;;582:292;;;;;:::o;844:101:11:-;895:13;927:5;:11;933:4;927:11;;;;;;;;;;;920:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;844:101;;;:::o;1347:137:19:-;863:9;:7;:9::i;:::-;855:18;;;;;;1445:1;1408:40;;1429:6;;;;;;;;;;;1408:40;;;;;;;;;;;;1475:1;1458:6;;:19;;;;;;;;;;;;;;;;;;1347:137::o;492:152:11:-;565:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;595:4:11;;581:5;:11;587:4;581:11;;;;;;;;;;;:18;;;;;;;:::i;:::-;;626:4;614:23;632:4;;614:23;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;614:23:11;;;;;;;;;;;;;;492:152;;;;:::o;1206:286:7:-;1286:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;1322:4:7;1307:33;1328:8;1338:1;1307:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;1307:33:7;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;261:2;1353:8;:25;1350:96;;;1411:4;1399:36;1417:17;1432:1;1417:14;:17::i;:::-;1399:36;;;;;;;;;;;;;;;;;;;;;;1350:96;1484:1;1455:10;:16;1466:4;1455:16;;;;;;;;;;;:26;1472:8;1455:26;;;;;;;;;;;:30;;;;;;;;;;;;:::i;:::-;;1206:286;;;;:::o;659:77:19:-;697:7;723:6;;;;;;;;;;;716:13;;659:77;:::o;979:90::-;1019:4;1056:6;;;;;;;;;;;1042:20;;:10;:20;;;1035:27;;979:90;:::o;838:108:8:-;896:12;927:6;:12;934:4;927:12;;;;;;;;;;;920:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;838:108;;;:::o;1023:133:12:-;1076:9;1087;1116:7;:13;1124:4;1116:13;;;;;;;;;;;:15;;;1133:7;:13;1141:4;1133:13;;;;;;;;;;;:15;;;1108:41;;;;1023:133;;;:::o;681:132:7:-;743:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;759:47:7;767:4;261:2;788:17;803:1;788:14;:17::i;:::-;759:7;:47::i;:::-;681:132;;;:::o;858:226:10:-;955:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;1003:11:10;971:10;:16;982:4;971:16;;;;;;;;;;;:29;988:11;971:29;;;;;;;;;;;;;;;;;;:43;;;;;;;;;;;;;;;;;;1052:11;1029:48;;;1046:4;1029:48;1065:11;1029:48;;;;;;;;;;;;;;;;;;;;;;858:226;;;;:::o;1498:127:7:-;1561:12;1592:10;:16;1603:4;1592:16;;;;;;;;;;;:26;1609:8;1592:26;;;;;;;;;;;1585:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1498:127;;;;:::o;1655:107:19:-;863:9;:7;:9::i;:::-;855:18;;;;;;1727:28;1746:8;1727:18;:28::i;:::-;1655:107;:::o;1162:171:12:-;1229:4;148:10;1267:19;;1252:34;;;:11;:34;;;;:74;;;;1290:36;1314:11;1290:23;:36::i;:::-;1252:74;1245:81;;1162:171;;;:::o;620:109:2:-;678:4;715:7;:5;:7::i;:::-;701:21;;:10;:21;;;694:28;;620:109;;;:::o;414:204:5:-;476:17;525:2;513:1;:8;:14;505:23;;;;;;598:2;593:3;589:12;583:2;580:1;576:10;570:17;566:36;561:41;;547:65;;;:::o;624:189::-;681:14;721:2;711:13;;;;;;;;;;;;;;;;;;;;;;;;;29:1:-1;21:6;17:14;116:4;104:10;96:6;87:34;147:4;139:6;135:17;125:27;;0:156;711:13:5;;;;707:17;;792:2;787:3;783:12;780:1;776:20;771:2;768:1;764:10;757:40;743:64;;;:::o;1906:183:19:-;1999:1;1979:22;;:8;:22;;;;1971:31;;;;;;2046:8;2017:38;;2038:6;;;;;;;;;;;2017:38;;;;;;;;;;;;2074:8;2065:6;;:17;;;;;;;;;;;;;;;;;;1906:183;:::o;951:169:11:-;1018:4;144:10;1056:17;;1041:32;;;:11;:32;;;;:72;;;;1077:36;1101:11;1077:23;:36::i;:::-;1041:72;1034:79;;951:169;;;:::o;2680:174:10:-;2747:4;204:49;;;;;;;;;;;;;;;;;;;2770:37;;;:11;:37;;;;:77;;;;2811:36;2835:11;2811:23;:36::i;:::-;2770:77;2763:84;;2680:174;;;:::o;952:177:8:-;1019:4;159:10;1057:25;;1042:40;;;:11;:40;;;;:80;;;;1086:36;1110:11;1086:23;:36::i;:::-;1042:80;1035:87;;952:177;;;:::o;1631:208:7:-;1698:4;144:10;1736:17;;1721:32;;;:11;:32;;;;:71;;;;207:10;1772:20;;1757:35;;;:11;:35;;;;1721:71;:111;;;;1796:36;1820:11;1796:23;:36::i;:::-;1721:111;1714:118;;1631:208;;;:::o;1655:168:6:-;1722:4;142:10;1760:16;;1745:31;;;:11;:31;;;;:71;;;;1780:36;1804:11;1780:23;:36::i;:::-;1745:71;1738:78;;1655:168;;;:::o;114:129:5:-;181:4;97:10;219:17;;204:32;;;:11;:32;;;;197:39;;114:129;;;:::o;469:262:2:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o","source":"pragma solidity ^0.5.0;\\n\\nimport \\"openzeppelin-solidity/contracts/ownership/Ownable.sol\\";\\nimport \\"./profiles/ABIResolver.sol\\";\\nimport \\"./profiles/AddrResolver.sol\\";\\nimport \\"./profiles/ContentHashResolver.sol\\";\\nimport \\"./profiles/InterfaceResolver.sol\\";\\nimport \\"./profiles/NameResolver.sol\\";\\nimport \\"./profiles/PubkeyResolver.sol\\";\\nimport \\"./profiles/TextResolver.sol\\";\\n\\n/**\\n * A simple resolver anyone can use; only allows the owner of a node to set its\\n * address.\\n */\\ncontract OwnedResolver is Ownable, ABIResolver, AddrResolver, ContentHashResolver, InterfaceResolver, NameResolver, PubkeyResolver, TextResolver {\\n    function isAuthorised(bytes32 node) internal view returns(bool) {\\n        return msg.sender == owner();\\n    }\\n}\\n","sourcePath":"/home/user/Dropbox/projects/resolvers/contracts/OwnedResolver.sol","ast":{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/OwnedResolver.sol","exportedSymbols":{"OwnedResolver":[179]},"id":180,"nodeType":"SourceUnit","nodes":[{"id":140,"literals":["solidity","^","0.5",".0"],"nodeType":"PragmaDirective","src":"0:23:2"},{"absolutePath":"openzeppelin-solidity/contracts/ownership/Ownable.sol","file":"openzeppelin-solidity/contracts/ownership/Ownable.sol","id":141,"nodeType":"ImportDirective","scope":180,"sourceUnit":4119,"src":"25:63:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/ABIResolver.sol","file":"./profiles/ABIResolver.sol","id":142,"nodeType":"ImportDirective","scope":180,"sourceUnit":799,"src":"89:36:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/AddrResolver.sol","file":"./profiles/AddrResolver.sol","id":143,"nodeType":"ImportDirective","scope":180,"sourceUnit":958,"src":"126:37:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/ContentHashResolver.sol","file":"./profiles/ContentHashResolver.sol","id":144,"nodeType":"ImportDirective","scope":180,"sourceUnit":1028,"src":"164:44:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/InterfaceResolver.sol","file":"./profiles/InterfaceResolver.sol","id":145,"nodeType":"ImportDirective","scope":180,"sourceUnit":1646,"src":"209:42:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/NameResolver.sol","file":"./profiles/NameResolver.sol","id":146,"nodeType":"ImportDirective","scope":180,"sourceUnit":1716,"src":"252:37:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/PubkeyResolver.sol","file":"./profiles/PubkeyResolver.sol","id":147,"nodeType":"ImportDirective","scope":180,"sourceUnit":1807,"src":"290:39:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/TextResolver.sol","file":"./profiles/TextResolver.sol","id":148,"nodeType":"ImportDirective","scope":180,"sourceUnit":1890,"src":"330:37:2","symbolAliases":[],"unitAlias":""},{"baseContracts":[{"arguments":null,"baseName":{"contractScope":null,"id":149,"name":"Ownable","nodeType":"UserDefinedTypeName","referencedDeclaration":4118,"src":"495:7:2","typeDescriptions":{"typeIdentifier":"t_contract$_Ownable_$4118","typeString":"contract Ownable"}},"id":150,"nodeType":"InheritanceSpecifier","src":"495:7:2"},{"arguments":null,"baseName":{"contractScope":null,"id":151,"name":"ABIResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":798,"src":"504:11:2","typeDescriptions":{"typeIdentifier":"t_contract$_ABIResolver_$798","typeString":"contract ABIResolver"}},"id":152,"nodeType":"InheritanceSpecifier","src":"504:11:2"},{"arguments":null,"baseName":{"contractScope":null,"id":153,"name":"AddrResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":957,"src":"517:12:2","typeDescriptions":{"typeIdentifier":"t_contract$_AddrResolver_$957","typeString":"contract AddrResolver"}},"id":154,"nodeType":"InheritanceSpecifier","src":"517:12:2"},{"arguments":null,"baseName":{"contractScope":null,"id":155,"name":"ContentHashResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1027,"src":"531:19:2","typeDescriptions":{"typeIdentifier":"t_contract$_ContentHashResolver_$1027","typeString":"contract ContentHashResolver"}},"id":156,"nodeType":"InheritanceSpecifier","src":"531:19:2"},{"arguments":null,"baseName":{"contractScope":null,"id":157,"name":"InterfaceResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1645,"src":"552:17:2","typeDescriptions":{"typeIdentifier":"t_contract$_InterfaceResolver_$1645","typeString":"contract InterfaceResolver"}},"id":158,"nodeType":"InheritanceSpecifier","src":"552:17:2"},{"arguments":null,"baseName":{"contractScope":null,"id":159,"name":"NameResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1715,"src":"571:12:2","typeDescriptions":{"typeIdentifier":"t_contract$_NameResolver_$1715","typeString":"contract NameResolver"}},"id":160,"nodeType":"InheritanceSpecifier","src":"571:12:2"},{"arguments":null,"baseName":{"contractScope":null,"id":161,"name":"PubkeyResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1806,"src":"585:14:2","typeDescriptions":{"typeIdentifier":"t_contract$_PubkeyResolver_$1806","typeString":"contract PubkeyResolver"}},"id":162,"nodeType":"InheritanceSpecifier","src":"585:14:2"},{"arguments":null,"baseName":{"contractScope":null,"id":163,"name":"TextResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1889,"src":"601:12:2","typeDescriptions":{"typeIdentifier":"t_contract$_TextResolver_$1889","typeString":"contract TextResolver"}},"id":164,"nodeType":"InheritanceSpecifier","src":"601:12:2"}],"contractDependencies":[662,798,957,1027,1645,1715,1806,1889,4118],"contractKind":"contract","documentation":"A simple resolver anyone can use; only allows the owner of a node to set its\\naddress.","fullyImplemented":true,"id":179,"linearizedBaseContracts":[179,1889,1806,1715,1645,1027,957,798,662,4118],"name":"OwnedResolver","nodeType":"ContractDefinition","nodes":[{"body":{"id":177,"nodeType":"Block","src":"684:45:2","statements":[{"expression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":175,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":171,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"701:3:2","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":172,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"701:10:2","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"id":173,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"715:5:2","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":174,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"715:7:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"701:21:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":170,"id":176,"nodeType":"Return","src":"694:28:2"}]},"documentation":null,"id":178,"implemented":true,"kind":"function","modifiers":[],"name":"isAuthorised","nodeType":"FunctionDefinition","parameters":{"id":167,"nodeType":"ParameterList","parameters":[{"constant":false,"id":166,"name":"node","nodeType":"VariableDeclaration","scope":178,"src":"642:12:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":165,"name":"bytes32","nodeType":"ElementaryTypeName","src":"642:7:2","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"641:14:2"},"returnParameters":{"id":170,"nodeType":"ParameterList","parameters":[{"constant":false,"id":169,"name":"","nodeType":"VariableDeclaration","scope":178,"src":"678:4:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":168,"name":"bool","nodeType":"ElementaryTypeName","src":"678:4:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"677:6:2"},"scope":179,"src":"620:109:2","stateMutability":"view","superFunction":617,"visibility":"internal"}],"scope":180,"src":"469:262:2"}],"src":"0:732:2"},"legacyAST":{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/OwnedResolver.sol","exportedSymbols":{"OwnedResolver":[179]},"id":180,"nodeType":"SourceUnit","nodes":[{"id":140,"literals":["solidity","^","0.5",".0"],"nodeType":"PragmaDirective","src":"0:23:2"},{"absolutePath":"openzeppelin-solidity/contracts/ownership/Ownable.sol","file":"openzeppelin-solidity/contracts/ownership/Ownable.sol","id":141,"nodeType":"ImportDirective","scope":180,"sourceUnit":4119,"src":"25:63:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/ABIResolver.sol","file":"./profiles/ABIResolver.sol","id":142,"nodeType":"ImportDirective","scope":180,"sourceUnit":799,"src":"89:36:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/AddrResolver.sol","file":"./profiles/AddrResolver.sol","id":143,"nodeType":"ImportDirective","scope":180,"sourceUnit":958,"src":"126:37:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/ContentHashResolver.sol","file":"./profiles/ContentHashResolver.sol","id":144,"nodeType":"ImportDirective","scope":180,"sourceUnit":1028,"src":"164:44:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/InterfaceResolver.sol","file":"./profiles/InterfaceResolver.sol","id":145,"nodeType":"ImportDirective","scope":180,"sourceUnit":1646,"src":"209:42:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/NameResolver.sol","file":"./profiles/NameResolver.sol","id":146,"nodeType":"ImportDirective","scope":180,"sourceUnit":1716,"src":"252:37:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/PubkeyResolver.sol","file":"./profiles/PubkeyResolver.sol","id":147,"nodeType":"ImportDirective","scope":180,"sourceUnit":1807,"src":"290:39:2","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/TextResolver.sol","file":"./profiles/TextResolver.sol","id":148,"nodeType":"ImportDirective","scope":180,"sourceUnit":1890,"src":"330:37:2","symbolAliases":[],"unitAlias":""},{"baseContracts":[{"arguments":null,"baseName":{"contractScope":null,"id":149,"name":"Ownable","nodeType":"UserDefinedTypeName","referencedDeclaration":4118,"src":"495:7:2","typeDescriptions":{"typeIdentifier":"t_contract$_Ownable_$4118","typeString":"contract Ownable"}},"id":150,"nodeType":"InheritanceSpecifier","src":"495:7:2"},{"arguments":null,"baseName":{"contractScope":null,"id":151,"name":"ABIResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":798,"src":"504:11:2","typeDescriptions":{"typeIdentifier":"t_contract$_ABIResolver_$798","typeString":"contract ABIResolver"}},"id":152,"nodeType":"InheritanceSpecifier","src":"504:11:2"},{"arguments":null,"baseName":{"contractScope":null,"id":153,"name":"AddrResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":957,"src":"517:12:2","typeDescriptions":{"typeIdentifier":"t_contract$_AddrResolver_$957","typeString":"contract AddrResolver"}},"id":154,"nodeType":"InheritanceSpecifier","src":"517:12:2"},{"arguments":null,"baseName":{"contractScope":null,"id":155,"name":"ContentHashResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1027,"src":"531:19:2","typeDescriptions":{"typeIdentifier":"t_contract$_ContentHashResolver_$1027","typeString":"contract ContentHashResolver"}},"id":156,"nodeType":"InheritanceSpecifier","src":"531:19:2"},{"arguments":null,"baseName":{"contractScope":null,"id":157,"name":"InterfaceResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1645,"src":"552:17:2","typeDescriptions":{"typeIdentifier":"t_contract$_InterfaceResolver_$1645","typeString":"contract InterfaceResolver"}},"id":158,"nodeType":"InheritanceSpecifier","src":"552:17:2"},{"arguments":null,"baseName":{"contractScope":null,"id":159,"name":"NameResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1715,"src":"571:12:2","typeDescriptions":{"typeIdentifier":"t_contract$_NameResolver_$1715","typeString":"contract NameResolver"}},"id":160,"nodeType":"InheritanceSpecifier","src":"571:12:2"},{"arguments":null,"baseName":{"contractScope":null,"id":161,"name":"PubkeyResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1806,"src":"585:14:2","typeDescriptions":{"typeIdentifier":"t_contract$_PubkeyResolver_$1806","typeString":"contract PubkeyResolver"}},"id":162,"nodeType":"InheritanceSpecifier","src":"585:14:2"},{"arguments":null,"baseName":{"contractScope":null,"id":163,"name":"TextResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1889,"src":"601:12:2","typeDescriptions":{"typeIdentifier":"t_contract$_TextResolver_$1889","typeString":"contract TextResolver"}},"id":164,"nodeType":"InheritanceSpecifier","src":"601:12:2"}],"contractDependencies":[662,798,957,1027,1645,1715,1806,1889,4118],"contractKind":"contract","documentation":"A simple resolver anyone can use; only allows the owner of a node to set its\\naddress.","fullyImplemented":true,"id":179,"linearizedBaseContracts":[179,1889,1806,1715,1645,1027,957,798,662,4118],"name":"OwnedResolver","nodeType":"ContractDefinition","nodes":[{"body":{"id":177,"nodeType":"Block","src":"684:45:2","statements":[{"expression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":175,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":171,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"701:3:2","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":172,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"701:10:2","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"arguments":[],"expression":{"argumentTypes":[],"id":173,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4043,"src":"715:5:2","typeDescriptions":{"typeIdentifier":"t_function_internal_view$__$returns$_t_address_$","typeString":"function () view returns (address)"}},"id":174,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"715:7:2","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"src":"701:21:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":170,"id":176,"nodeType":"Return","src":"694:28:2"}]},"documentation":null,"id":178,"implemented":true,"kind":"function","modifiers":[],"name":"isAuthorised","nodeType":"FunctionDefinition","parameters":{"id":167,"nodeType":"ParameterList","parameters":[{"constant":false,"id":166,"name":"node","nodeType":"VariableDeclaration","scope":178,"src":"642:12:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":165,"name":"bytes32","nodeType":"ElementaryTypeName","src":"642:7:2","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"641:14:2"},"returnParameters":{"id":170,"nodeType":"ParameterList","parameters":[{"constant":false,"id":169,"name":"","nodeType":"VariableDeclaration","scope":178,"src":"678:4:2","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":168,"name":"bool","nodeType":"ElementaryTypeName","src":"678:4:2","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"677:6:2"},"scope":179,"src":"620:109:2","stateMutability":"view","superFunction":617,"visibility":"internal"}],"scope":180,"src":"469:262:2"}],"src":"0:732:2"},"compiler":{"name":"solc","version":"0.5.8+commit.23d335f2.Emscripten.clang"},"networks":{},"schemaVersion":"3.0.16","updatedAt":"2020-02-10T18:46:21.022Z","devdoc":{"methods":{"ABI(bytes32,uint256)":{"params":{"contentTypes":"A bitwise OR of the ABI formats accepted by the caller.","node":"The ENS node to query"},"return":"contentType The content type of the return valuedata The ABI data"},"addr(bytes32)":{"params":{"node":"The ENS node to query."},"return":"The associated address."},"contenthash(bytes32)":{"params":{"node":"The ENS node to query."},"return":"The associated contenthash."},"interfaceImplementer(bytes32,bytes4)":{"params":{"interfaceID":"The EIP 168 interface ID to check for.","node":"The ENS node to query."},"return":"The address that implements this interface, or 0 if the interface is unsupported."},"isOwner()":{"return":"true if `msg.sender` is the owner of the contract."},"name(bytes32)":{"params":{"node":"The ENS node to query."},"return":"The associated name."},"owner()":{"return":"the address of the owner."},"pubkey(bytes32)":{"params":{"node":"The ENS node to query"},"return":"x, y the X and Y coordinates of the curve point for the public key."},"renounceOwnership()":{"details":"Allows the current owner to relinquish control of the contract."},"setABI(bytes32,uint256,bytes)":{"params":{"contentType":"The content type of the ABI","data":"The ABI data.","node":"The node to update."}},"setAddr(bytes32,address)":{"params":{"a":"The address to set.","node":"The node to update."}},"setContenthash(bytes32,bytes)":{"params":{"hash":"The contenthash to set","node":"The node to update."}},"setInterface(bytes32,bytes4,address)":{"params":{"implementer":"The address of a contract that implements this interface for this node.","interfaceID":"The EIP 168 interface ID.","node":"The node to update."}},"setName(bytes32,string)":{"params":{"name":"The name to set.","node":"The node to update."}},"setPubkey(bytes32,bytes32,bytes32)":{"params":{"node":"The ENS node to query","x":"the X coordinate of the curve point for the public key.","y":"the Y coordinate of the curve point for the public key."}},"setText(bytes32,string,string)":{"params":{"key":"The key to set.","node":"The node to update.","value":"The text data value to set."}},"text(bytes32,string)":{"params":{"key":"The text data key to query.","node":"The ENS node to query."},"return":"The associated text data."},"transferOwnership(address)":{"details":"Allows the current owner to transfer control of the contract to a newOwner.","params":{"newOwner":"The address to transfer ownership to."}}}},"userdoc":{"methods":{"ABI(bytes32,uint256)":{"notice":"Returns the ABI associated with an ENS node. Defined in EIP205."},"addr(bytes32)":{"notice":"Returns the address associated with an ENS node."},"contenthash(bytes32)":{"notice":"Returns the contenthash associated with an ENS node."},"interfaceImplementer(bytes32,bytes4)":{"notice":"Returns the address of a contract that implements the specified interface for this name. If an implementer has not been set for this interfaceID and name, the resolver will query the contract at `addr()`. If `addr()` is set, a contract exists at that address, and that contract implements EIP168 and returns `true` for the specified interfaceID, its address will be returned."},"name(bytes32)":{"notice":"Returns the name associated with an ENS node, for reverse records. Defined in EIP181."},"pubkey(bytes32)":{"notice":"Returns the SECP256k1 public key associated with an ENS node. Defined in EIP 619."},"renounceOwnership()":{"notice":"Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the `onlyOwner` modifier anymore."},"setABI(bytes32,uint256,bytes)":{"notice":"Sets the ABI associated with an ENS node. Nodes may have one ABI of each content type. To remove an ABI, set it to the empty string."},"setAddr(bytes32,address)":{"notice":"Sets the address associated with an ENS node. May only be called by the owner of that node in the ENS registry."},"setContenthash(bytes32,bytes)":{"notice":"Sets the contenthash associated with an ENS node. May only be called by the owner of that node in the ENS registry."},"setInterface(bytes32,bytes4,address)":{"notice":"Sets an interface associated with a name. Setting the address to 0 restores the default behaviour of querying the contract at `addr()` for interface support."},"setName(bytes32,string)":{"notice":"Sets the name associated with an ENS node, for reverse records. May only be called by the owner of that node in the ENS registry."},"setPubkey(bytes32,bytes32,bytes32)":{"notice":"Sets the SECP256k1 public key associated with an ENS node."},"setText(bytes32,string,string)":{"notice":"Sets the text data associated with an ENS node and key. May only be called by the owner of that node in the ENS registry."},"text(bytes32,string)":{"notice":"Returns the text data associated with an ENS node and key."}},"notice":"A simple resolver anyone can use; only allows the owner of a node to set its address."}}')},function(e){e.exports=JSON.parse('{"contractName":"PublicResolver","abi":[{"constant":true,"inputs":[{"name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"data","type":"bytes"}],"name":"setDNSRecords","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"key","type":"string"},{"name":"value","type":"string"}],"name":"setText","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"interfaceID","type":"bytes4"}],"name":"interfaceImplementer","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"contentTypes","type":"uint256"}],"name":"ABI","outputs":[{"name":"","type":"uint256"},{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"x","type":"bytes32"},{"name":"y","type":"bytes32"}],"name":"setPubkey","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"hash","type":"bytes"}],"name":"setContenthash","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"addr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"name","type":"bytes32"}],"name":"hasDNSRecords","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"key","type":"string"}],"name":"text","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"contentType","type":"uint256"},{"name":"data","type":"bytes"}],"name":"setABI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"coinType","type":"uint256"},{"name":"a","type":"bytes"}],"name":"setAddr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"name","type":"bytes32"},{"name":"resource","type":"uint16"}],"name":"dnsRecord","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"}],"name":"clearDNSZone","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"contenthash","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"pubkey","outputs":[{"name":"x","type":"bytes32"},{"name":"y","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"a","type":"address"}],"name":"setAddr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"interfaceID","type":"bytes4"},{"name":"implementer","type":"address"}],"name":"setInterface","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"coinType","type":"uint256"}],"name":"addr","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"bytes32"},{"name":"","type":"address"},{"name":"","type":"address"}],"name":"authorisations","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"inputs":[{"name":"_ens","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"target","type":"address"},{"indexed":false,"name":"isAuthorised","type":"bool"}],"name":"AuthorisationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"indexedKey","type":"string"},{"indexed":false,"name":"key","type":"string"}],"name":"TextChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"x","type":"bytes32"},{"indexed":false,"name":"y","type":"bytes32"}],"name":"PubkeyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"name","type":"string"}],"name":"NameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"interfaceID","type":"bytes4"},{"indexed":false,"name":"implementer","type":"address"}],"name":"InterfaceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"name","type":"bytes"},{"indexed":false,"name":"resource","type":"uint16"},{"indexed":false,"name":"record","type":"bytes"}],"name":"DNSRecordChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"name","type":"bytes"},{"indexed":false,"name":"resource","type":"uint16"}],"name":"DNSRecordDeleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"}],"name":"DNSZoneCleared","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"hash","type":"bytes"}],"name":"ContenthashChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"a","type":"address"}],"name":"AddrChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"coinType","type":"uint256"},{"indexed":false,"name":"newAddress","type":"bytes"}],"name":"AddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"contentType","type":"uint256"}],"name":"ABIChanged","type":"event"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"target","type":"address"},{"name":"isAuthorised","type":"bool"}],"name":"setAuthorisation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"name":"results","type":"bytes[]"}],"payable":false,"stateMutability":"nonpayable","type":"function"}],"metadata":"{\\"compiler\\":{\\"version\\":\\"0.5.8+commit.23d335f2\\"},\\"language\\":\\"Solidity\\",\\"output\\":{\\"abi\\":[{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"}],\\"name\\":\\"supportsInterface\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bool\\"}],\\"payable\\":false,\\"stateMutability\\":\\"pure\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"data\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setDNSRecords\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"key\\",\\"type\\":\\"string\\"},{\\"name\\":\\"value\\",\\"type\\":\\"string\\"}],\\"name\\":\\"setText\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"}],\\"name\\":\\"interfaceImplementer\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"contentTypes\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"ABI\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"uint256\\"},{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"x\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"y\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"setPubkey\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"hash\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setContenthash\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"addr\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"target\\",\\"type\\":\\"address\\"},{\\"name\\":\\"isAuthorised\\",\\"type\\":\\"bool\\"}],\\"name\\":\\"setAuthorisation\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"name\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"hasDNSRecords\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bool\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"key\\",\\"type\\":\\"string\\"}],\\"name\\":\\"text\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"string\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"contentType\\",\\"type\\":\\"uint256\\"},{\\"name\\":\\"data\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setABI\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"name\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"string\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"name\\",\\"type\\":\\"string\\"}],\\"name\\":\\"setName\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"coinType\\",\\"type\\":\\"uint256\\"},{\\"name\\":\\"a\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setAddr\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"name\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"resource\\",\\"type\\":\\"uint16\\"}],\\"name\\":\\"dnsRecord\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"data\\",\\"type\\":\\"bytes[]\\"}],\\"name\\":\\"multicall\\",\\"outputs\\":[{\\"name\\":\\"results\\",\\"type\\":\\"bytes[]\\"}],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"clearDNSZone\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"contenthash\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"pubkey\\",\\"outputs\\":[{\\"name\\":\\"x\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"y\\",\\"type\\":\\"bytes32\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"a\\",\\"type\\":\\"address\\"}],\\"name\\":\\"setAddr\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"},{\\"name\\":\\"implementer\\",\\"type\\":\\"address\\"}],\\"name\\":\\"setInterface\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"coinType\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"addr\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"\\",\\"type\\":\\"address\\"},{\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"name\\":\\"authorisations\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bool\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"inputs\\":[{\\"name\\":\\"_ens\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"constructor\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":true,\\"name\\":\\"owner\\",\\"type\\":\\"address\\"},{\\"indexed\\":true,\\"name\\":\\"target\\",\\"type\\":\\"address\\"},{\\"indexed\\":false,\\"name\\":\\"isAuthorised\\",\\"type\\":\\"bool\\"}],\\"name\\":\\"AuthorisationChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":true,\\"name\\":\\"indexedKey\\",\\"type\\":\\"string\\"},{\\"indexed\\":false,\\"name\\":\\"key\\",\\"type\\":\\"string\\"}],\\"name\\":\\"TextChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"x\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"y\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"PubkeyChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"name\\",\\"type\\":\\"string\\"}],\\"name\\":\\"NameChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":true,\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"},{\\"indexed\\":false,\\"name\\":\\"implementer\\",\\"type\\":\\"address\\"}],\\"name\\":\\"InterfaceChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"name\\",\\"type\\":\\"bytes\\"},{\\"indexed\\":false,\\"name\\":\\"resource\\",\\"type\\":\\"uint16\\"},{\\"indexed\\":false,\\"name\\":\\"record\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"DNSRecordChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"name\\",\\"type\\":\\"bytes\\"},{\\"indexed\\":false,\\"name\\":\\"resource\\",\\"type\\":\\"uint16\\"}],\\"name\\":\\"DNSRecordDeleted\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"DNSZoneCleared\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"hash\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"ContenthashChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"a\\",\\"type\\":\\"address\\"}],\\"name\\":\\"AddrChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"coinType\\",\\"type\\":\\"uint256\\"},{\\"indexed\\":false,\\"name\\":\\"newAddress\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"AddressChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":true,\\"name\\":\\"contentType\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"ABIChanged\\",\\"type\\":\\"event\\"}],\\"devdoc\\":{\\"methods\\":{\\"ABI(bytes32,uint256)\\":{\\"params\\":{\\"contentTypes\\":\\"A bitwise OR of the ABI formats accepted by the caller.\\",\\"node\\":\\"The ENS node to query\\"},\\"return\\":\\"contentType The content type of the return valuedata The ABI data\\"},\\"addr(bytes32)\\":{\\"params\\":{\\"node\\":\\"The ENS node to query.\\"},\\"return\\":\\"The associated address.\\"},\\"clearDNSZone(bytes32)\\":{\\"params\\":{\\"node\\":\\"the namehash of the node for which to clear the zone\\"}},\\"contenthash(bytes32)\\":{\\"params\\":{\\"node\\":\\"The ENS node to query.\\"},\\"return\\":\\"The associated contenthash.\\"},\\"dnsRecord(bytes32,bytes32,uint16)\\":{\\"params\\":{\\"name\\":\\"the keccak-256 hash of the fully-qualified name for which to fetch the record\\",\\"node\\":\\"the namehash of the node for which to fetch the record\\",\\"resource\\":\\"the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types\\"},\\"return\\":\\"the DNS record in wire format if present, otherwise empty\\"},\\"hasDNSRecords(bytes32,bytes32)\\":{\\"params\\":{\\"name\\":\\"the namehash of the node for which to check the records\\",\\"node\\":\\"the namehash of the node for which to check the records\\"}},\\"interfaceImplementer(bytes32,bytes4)\\":{\\"params\\":{\\"interfaceID\\":\\"The EIP 168 interface ID to check for.\\",\\"node\\":\\"The ENS node to query.\\"},\\"return\\":\\"The address that implements this interface, or 0 if the interface is unsupported.\\"},\\"name(bytes32)\\":{\\"params\\":{\\"node\\":\\"The ENS node to query.\\"},\\"return\\":\\"The associated name.\\"},\\"pubkey(bytes32)\\":{\\"params\\":{\\"node\\":\\"The ENS node to query\\"},\\"return\\":\\"x, y the X and Y coordinates of the curve point for the public key.\\"},\\"setABI(bytes32,uint256,bytes)\\":{\\"params\\":{\\"contentType\\":\\"The content type of the ABI\\",\\"data\\":\\"The ABI data.\\",\\"node\\":\\"The node to update.\\"}},\\"setAddr(bytes32,address)\\":{\\"params\\":{\\"a\\":\\"The address to set.\\",\\"node\\":\\"The node to update.\\"}},\\"setAuthorisation(bytes32,address,bool)\\":{\\"details\\":\\"Sets or clears an authorisation. Authorisations are specific to the caller. Any account can set an authorisation for any name, but the authorisation that is checked will be that of the current owner of a name. Thus, transferring a name effectively clears any existing authorisations, and new authorisations can be set in advance of an ownership transfer if desired.\\",\\"params\\":{\\"isAuthorised\\":\\"True if the address should be authorised, or false if it should be deauthorised.\\",\\"node\\":\\"The name to change the authorisation on.\\",\\"target\\":\\"The address that is to be authorised or deauthorised.\\"}},\\"setContenthash(bytes32,bytes)\\":{\\"params\\":{\\"hash\\":\\"The contenthash to set\\",\\"node\\":\\"The node to update.\\"}},\\"setDNSRecords(bytes32,bytes)\\":{\\"params\\":{\\"data\\":\\"the DNS wire format records to set\\",\\"node\\":\\"the namehash of the node for which to set the records\\"}},\\"setInterface(bytes32,bytes4,address)\\":{\\"params\\":{\\"implementer\\":\\"The address of a contract that implements this interface for this node.\\",\\"interfaceID\\":\\"The EIP 168 interface ID.\\",\\"node\\":\\"The node to update.\\"}},\\"setName(bytes32,string)\\":{\\"params\\":{\\"name\\":\\"The name to set.\\",\\"node\\":\\"The node to update.\\"}},\\"setPubkey(bytes32,bytes32,bytes32)\\":{\\"params\\":{\\"node\\":\\"The ENS node to query\\",\\"x\\":\\"the X coordinate of the curve point for the public key.\\",\\"y\\":\\"the Y coordinate of the curve point for the public key.\\"}},\\"setText(bytes32,string,string)\\":{\\"params\\":{\\"key\\":\\"The key to set.\\",\\"node\\":\\"The node to update.\\",\\"value\\":\\"The text data value to set.\\"}},\\"text(bytes32,string)\\":{\\"params\\":{\\"key\\":\\"The text data key to query.\\",\\"node\\":\\"The ENS node to query.\\"},\\"return\\":\\"The associated text data.\\"}}},\\"userdoc\\":{\\"methods\\":{\\"ABI(bytes32,uint256)\\":{\\"notice\\":\\"Returns the ABI associated with an ENS node. Defined in EIP205.\\"},\\"addr(bytes32)\\":{\\"notice\\":\\"Returns the address associated with an ENS node.\\"},\\"clearDNSZone(bytes32)\\":{\\"notice\\":\\"Clear all information for a DNS zone.\\"},\\"contenthash(bytes32)\\":{\\"notice\\":\\"Returns the contenthash associated with an ENS node.\\"},\\"dnsRecord(bytes32,bytes32,uint16)\\":{\\"notice\\":\\"Obtain a DNS record.\\"},\\"hasDNSRecords(bytes32,bytes32)\\":{\\"notice\\":\\"Check if a given node has records.\\"},\\"interfaceImplementer(bytes32,bytes4)\\":{\\"notice\\":\\"Returns the address of a contract that implements the specified interface for this name. If an implementer has not been set for this interfaceID and name, the resolver will query the contract at `addr()`. If `addr()` is set, a contract exists at that address, and that contract implements EIP168 and returns `true` for the specified interfaceID, its address will be returned.\\"},\\"name(bytes32)\\":{\\"notice\\":\\"Returns the name associated with an ENS node, for reverse records. Defined in EIP181.\\"},\\"pubkey(bytes32)\\":{\\"notice\\":\\"Returns the SECP256k1 public key associated with an ENS node. Defined in EIP 619.\\"},\\"setABI(bytes32,uint256,bytes)\\":{\\"notice\\":\\"Sets the ABI associated with an ENS node. Nodes may have one ABI of each content type. To remove an ABI, set it to the empty string.\\"},\\"setAddr(bytes32,address)\\":{\\"notice\\":\\"Sets the address associated with an ENS node. May only be called by the owner of that node in the ENS registry.\\"},\\"setContenthash(bytes32,bytes)\\":{\\"notice\\":\\"Sets the contenthash associated with an ENS node. May only be called by the owner of that node in the ENS registry.\\"},\\"setDNSRecords(bytes32,bytes)\\":{\\"notice\\":\\"Set one or more DNS records.  Records are supplied in wire-format. Records with the same node/name/resource must be supplied one after the other to ensure the data is updated correctly. For example, if the data was supplied:    a.example.com IN A 1.2.3.4    a.example.com IN A 5.6.7.8    www.example.com IN CNAME a.example.com. then this would store the two A records for a.example.com correctly as a single RRSET, however if the data was supplied:    a.example.com IN A 1.2.3.4    www.example.com IN CNAME a.example.com.    a.example.com IN A 5.6.7.8 then this would store the first A record, the CNAME, then the second A record which would overwrite the first.\\"},\\"setInterface(bytes32,bytes4,address)\\":{\\"notice\\":\\"Sets an interface associated with a name. Setting the address to 0 restores the default behaviour of querying the contract at `addr()` for interface support.\\"},\\"setName(bytes32,string)\\":{\\"notice\\":\\"Sets the name associated with an ENS node, for reverse records. May only be called by the owner of that node in the ENS registry.\\"},\\"setPubkey(bytes32,bytes32,bytes32)\\":{\\"notice\\":\\"Sets the SECP256k1 public key associated with an ENS node.\\"},\\"setText(bytes32,string,string)\\":{\\"notice\\":\\"Sets the text data associated with an ENS node and key. May only be called by the owner of that node in the ENS registry.\\"},\\"text(bytes32,string)\\":{\\"notice\\":\\"Returns the text data associated with an ENS node and key.\\"}},\\"notice\\":\\"A simple resolver anyone can use; only allows the owner of a node to set its address.\\"}},\\"settings\\":{\\"compilationTarget\\":{\\"/home/user/Dropbox/projects/resolvers/contracts/PublicResolver.sol\\":\\"PublicResolver\\"},\\"evmVersion\\":\\"petersburg\\",\\"libraries\\":{},\\"optimizer\\":{\\"enabled\\":false,\\"runs\\":200},\\"remappings\\":[]},\\"sources\\":{\\"/home/user/Dropbox/projects/resolvers/contracts/PublicResolver.sol\\":{\\"keccak256\\":\\"0xefbe75eae88d73e4db56bc22f72fbf157d027caf2d20644eb99298f04b27fa5f\\",\\"urls\\":[\\"bzzr://4cb74b326c91262a10141c4c2dfe36a303793fbb300f502a0f3e2fbfbb468c58\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/ResolverBase.sol\\":{\\"keccak256\\":\\"0xfc7d550960829127576d6fc3080513d74ef18a6d7057d0d9262ce071890053e8\\",\\"urls\\":[\\"bzzr://81e5565403a67f558d12c787f53f40ff19a5da99c648f8a4f99f2caa449ca0e6\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/ABIResolver.sol\\":{\\"keccak256\\":\\"0x794514d39c469bab511822ca7a1a7a7838dca338499889896c7dac4303c30c1f\\",\\"urls\\":[\\"bzzr://9fdf58339517baeca57889519a4bb2f30a010f2f4262771e6f5de4374fc436b1\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/AddrResolver.sol\\":{\\"keccak256\\":\\"0xbe84f840b10f6ddc3d695d5905fe4034569c646bdf56b1367c16271aa92071c6\\",\\"urls\\":[\\"bzzr://c97941ee4075d43abe371cc52f3bfa018d7dc93c7cfbb72da565ecaa72996381\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/ContentHashResolver.sol\\":{\\"keccak256\\":\\"0xaa3d9b9baae36fbf831b8297832b54ffd1023b9ac508f2c5068b92ce0c30edfc\\",\\"urls\\":[\\"bzzr://c80ec35a145dd4b853e1e04b32763843313be216462a4993d28d5b489a6912f7\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/DNSResolver.sol\\":{\\"keccak256\\":\\"0x51534f5ebdcfda403b1a935f256e7f27d16b490e5b023b6e57877973daf9a4d4\\",\\"urls\\":[\\"bzzr://a81c189814102f6debd761795650d94694225b7486d490faf7d5fb6e0704ed28\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/InterfaceResolver.sol\\":{\\"keccak256\\":\\"0x6398dc59dd38501acd6a716173793e84aa1c454c3e21c190e10ddbe54dd8be41\\",\\"urls\\":[\\"bzzr://0d539232d308722b6a434ed5e9a22b0c4cb849c641b6d0739f2f83e566cb59f1\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/NameResolver.sol\\":{\\"keccak256\\":\\"0xcff06da8901397164ca9bea36361ac518fb62cd5283d2e2e835e006980ba4d16\\",\\"urls\\":[\\"bzzr://a4a8988916719c4976bb0caf1cff3bdee3c94ae693b57970f6b925124cff38ee\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/PubkeyResolver.sol\\":{\\"keccak256\\":\\"0xaa10a8a7e1579987b6781657153ae3f16806f240b3ffaa54ea1f303f7cb7a74a\\",\\"urls\\":[\\"bzzr://1caaa8668f536f654f4e6d68129ab5091e0ed5c72e0e70216b82d0bb9e7cd86f\\"]},\\"/home/user/Dropbox/projects/resolvers/contracts/profiles/TextResolver.sol\\":{\\"keccak256\\":\\"0x1feb20d9466c52f471c57344c1e3792e2c69b24ab9d7f7a4de6e49912abc75bb\\",\\"urls\\":[\\"bzzr://25ce3b4bf68f29d54e8916c0682b746a9e15f14bcccfc76136fc17ae2c902898\\"]},\\"@ensdomains/buffer/contracts/Buffer.sol\\":{\\"keccak256\\":\\"0x1264adbd06f6e05b04539bb225063a988b7fa90343d068de60cdde6cfb6fa92d\\",\\"urls\\":[\\"bzzr://8f1cb39e242b73bb7fac1f48bf0380ccccad14f06aae9cf4f87329cc78186122\\"]},\\"@ensdomains/dnssec-oracle/contracts/BytesUtils.sol\\":{\\"keccak256\\":\\"0x4014e689ef4a36cbf7103d88286abd2a7c560c2a7af99a561c33c61bc78be27a\\",\\"urls\\":[\\"bzzr://adf984996598f1e0d446eea1eda14ed2c49ab86a4ea1ae837cf4f9d99556b9c2\\"]},\\"@ensdomains/dnssec-oracle/contracts/RRUtils.sol\\":{\\"keccak256\\":\\"0x5135591043cf38413b19f93d16f189f0f8b50b01b78642fb764635d9790cc7ca\\",\\"urls\\":[\\"bzzr://7e3a0111306a7c5640e213da22bcfac1e42b813e8d4d99ef7ea33c09747049fc\\"]},\\"@ensdomains/ens/contracts/ENS.sol\\":{\\"keccak256\\":\\"0xe688db01c0b974f8ff8565557f7fe81aa1f209c1497ec1e74536241f4cc11f08\\",\\"urls\\":[\\"bzzr://04aa083550728a1da54d9acf874f4fca77cc3afef81c57f1ec19be78af05019a\\"]}},\\"version\\":1}","bytecode":"0x60806040523480156200001157600080fd5b506040516020806200386d833981018060405262000033919081019062000092565b80600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505062000120565b6000815190506200008c8162000106565b92915050565b600060208284031215620000a557600080fd5b6000620000b5848285016200007b565b91505092915050565b6000620000cb82620000e6565b9050919050565b6000620000df82620000be565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6200011181620000d2565b81146200011d57600080fd5b50565b61373d80620001306000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c8063691f3431116100c3578063bc1c58d11161007c578063bc1c58d11461040a578063c86902331461043a578063d5fa2b001461046b578063e59d895d14610487578063f1cb7e06146104a3578063f86bc879146104d357610158565b8063691f34311461032657806377372213146103565780638b95dd7114610372578063a8fa56821461038e578063ac9650d8146103be578063ad5780af146103ee57610158565b8063304e6ade11610115578063304e6ade146102425780633b3b57de1461025e5780633e9ce7941461028e5780634cbf6ba4146102aa57806359d1d43c146102da578063623195b01461030a57610158565b806301ffc9a71461015d5780630af179d71461018d57806310f13a8c146101a9578063124a319c146101c55780632203ab56146101f557806329cd62ea14610226575b600080fd5b61017760048036036101729190810190612ecd565b610503565b60405161018491906132ae565b60405180910390f35b6101a760048036036101a29190810190612c85565b610564565b005b6101c360048036036101be9190810190612d35565b610792565b005b6101df60048036036101da9190810190612bfa565b610840565b6040516101ec919061323b565b60405180910390f35b61020f600480360361020a9190810190612dbe565b610c2b565b60405161021d929190613429565b60405180910390f35b610240600480360361023b9190810190612b5c565b610d7a565b005b61025c60048036036102579190810190612c85565b610e0c565b005b61027860048036036102739190810190612a1d565b610e82565b6040516102859190613271565b60405180910390f35b6102a860048036036102a39190810190612ad1565b610eb9565b005b6102c460048036036102bf9190810190612b20565b610fc9565b6040516102d191906132ae565b60405180910390f35b6102f460048036036102ef9190810190612cdd565b611031565b6040516103019190613407565b60405180910390f35b610324600480360361031f9190810190612dfa565b611106565b005b610340600480360361033b9190810190612a1d565b611193565b60405161034d9190613407565b60405180910390f35b610370600480360361036b9190810190612cdd565b611248565b005b61038c60048036036103879190810190612e66565b6112be565b005b6103a860048036036103a39190810190612bab565b611394565b6040516103b5919061334c565b60405180910390f35b6103d860048036036103d391908101906129d8565b611499565b6040516103e5919061328c565b60405180910390f35b61040860048036036104039190810190612a1d565b6115ef565b005b610424600480360361041f9190810190612a1d565b611656565b604051610431919061334c565b60405180910390f35b610454600480360361044f9190810190612a1d565b61170b565b6040516104629291906132e4565b60405180910390f35b61048560048036036104809190810190612a46565b611745565b005b6104a1600480360361049c9190810190612c36565b611771565b005b6104bd60048036036104b89190810190612dbe565b611883565b6040516104ca919061334c565b60405180910390f35b6104ed60048036036104e89190810190612a82565b61194a565b6040516104fa91906132ae565b60405180910390f35b60006359d1d43c60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061055d575061055c82611986565b5b9050919050565b8261056e816119e7565b61057757600080fd5b60008090506000809050606080600061058e6125b2565b6105e660008a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050611b7090919063ffffffff16565b90505b6105f281611b9a565b61071f5760008661ffff16141561064e578060400151955061061381611bb0565b93508360405160200161062691906131f6565b60405160208183030381529060405280519060200120915061064781611be7565b9250610711565b606061065982611bb0565b9050816040015161ffff168761ffff1614158061068657506106848186611c1790919063ffffffff16565b155b1561070f576106e88b86898d8d8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508a8b88602001510360008b5114611c3e565b81604001519650816020015195508094508480519060200120925061070c82611be7565b93505b505b61071a81611f6e565b6105e9565b50600083511115610787576107868984878b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505088898e8e9050036000895114611c3e565b5b505050505050505050565b8461079c816119e7565b6107a557600080fd5b82826009600089815260200190815260200160002087876040516107ca92919061320d565b908152602001604051809103902091906107e59291906125fd565b5084846040516107f692919061320d565b6040518091039020867fd8c9334b1a9c2f9da342a0a2b32629c1a229b6445dad78947f674b44444a755087876040516108309291906133e3565b60405180910390a3505050505050565b600080600660008581526020019081526020016000206000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109055780915050610c25565b600061091085610e82565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561095257600092505050610c25565b600060608273ffffffffffffffffffffffffffffffffffffffff166301ffc9a760e01b604051602401610985919061330d565b6040516020818303038152906040527f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610a0f91906131f6565b600060405180830381855afa9150503d8060008114610a4a576040519150601f19603f3d011682016040523d82523d6000602084013e610a4f565b606091505b5091509150811580610a62575060208151105b80610aa95750600060f81b81601f81518110610a7a57fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15610abb576000945050505050610c25565b8273ffffffffffffffffffffffffffffffffffffffff1686604051602401610ae3919061330d565b6040516020818303038152906040527f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610b6d91906131f6565b600060405180830381855afa9150503d8060008114610ba8576040519150601f19603f3d011682016040523d82523d6000602084013e610bad565b606091505b508092508193505050811580610bc4575060208151105b80610c0b5750600060f81b81601f81518110610bdc57fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15610c1d576000945050505050610c25565b829450505050505b92915050565b60006060600080600086815260200190815260200160002090506000600190505b848111610d5757600085821614158015610c8c57506000826000838152602001908152602001600020805460018160011615610100020316600290049050115b15610d4b5780826000838152602001908152602001600020808054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d395780601f10610d0e57610100808354040283529160200191610d39565b820191906000526020600020905b815481529060010190602001808311610d1c57829003601f168201915b50505050509050935093505050610d73565b600181901b9050610c4c565b5060006040518060200160405280600081525081915092509250505b9250929050565b82610d84816119e7565b610d8d57600080fd5b604051806040016040528084815260200183815250600860008681526020019081526020016000206000820151816000015560208201518160010155905050837f1d6f5e03d3f63eb58751986629a5439baee5079ff04f345becb66e23eb154e468484604051610dfe9291906132e4565b60405180910390a250505050565b82610e16816119e7565b610e1f57600080fd5b8282600260008781526020019081526020016000209190610e4192919061267d565b50837fe379c1624ed7e714cc0937528a32359d69d5281337765313dba4e081b72d75788484604051610e74929190613328565b60405180910390a250505050565b60006060610e9183603c611883565b9050600081511415610ea7576000915050610eb4565b610eb081612082565b9150505b919050565b80600b600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16847fe1c5610a6e0cbe10764ecd182adcef1ec338dc4e199c99c32ce98f38e12791df84604051610fbc91906132ae565b60405180910390a4505050565b60008060056000858152602001908152602001600020600060036000878152602001908152602001600020548152602001908152602001600020600084815260200190815260200160002060009054906101000a900461ffff1661ffff161415905092915050565b606060096000858152602001908152602001600020838360405161105692919061320d565b90815260200160405180910390208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156110f85780601f106110cd576101008083540402835291602001916110f8565b820191906000526020600020905b8154815290600101906020018083116110db57829003601f168201915b505050505090509392505050565b83611110816119e7565b61111957600080fd5b60008460018603161461112b57600080fd5b82826000808881526020019081526020016000206000878152602001908152602001600020919061115d92919061267d565b5083857faa121bbeef5f32f5961a2a28966e769023910fc9479059ee3495d4c1a696efe360405160405180910390a35050505050565b6060600760008381526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561123c5780601f106112115761010080835404028352916020019161123c565b820191906000526020600020905b81548152906001019060200180831161121f57829003601f168201915b50505050509050919050565b82611252816119e7565b61125b57600080fd5b828260076000878152602001908152602001600020919061127d9291906125fd565b50837fb7d29e911041e8d9b843369e890bcb72c9388692ba48b65ac54e7214c4c348f784846040516112b09291906133e3565b60405180910390a250505050565b826112c8816119e7565b6112d157600080fd5b837f65412581168e88a1e60c6459d7f44ae83ad0832e670826c05a4e2476b57af7528484604051611303929190613429565b60405180910390a2603c83141561135557837f52d7d861f09ab3d26239d492e8968629f95e9e318cf0b73bfddc441522a15fd261133f84612082565b60405161134c9190613256565b60405180910390a25b81600160008681526020019081526020016000206000858152602001908152602001600020908051906020019061138d9291906126fd565b5050505050565b606060046000858152602001908152602001600020600060036000878152602001908152602001600020548152602001908152602001600020600084815260200190815260200160002060008361ffff1661ffff1681526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561148b5780601f106114605761010080835404028352916020019161148b565b820191906000526020600020905b81548152906001019060200180831161146e57829003601f168201915b505050505090509392505050565b6060828290506040519080825280602002602001820160405280156114d257816020015b60608152602001906001900390816114bd5790505b50905060008090505b838390508110156115e557600060603073ffffffffffffffffffffffffffffffffffffffff1686868581811061150d57fe5b905060200281018035600160200383360303811261152a57600080fd5b8083019250508135905060208201915067ffffffffffffffff81111561154f57600080fd5b60018102360382131561156157600080fd5b60405161156f9291906131dd565b600060405180830381855af49150503d80600081146115aa576040519150601f19603f3d011682016040523d82523d6000602084013e6115af565b606091505b5091509150816115be57600080fd5b808484815181106115cb57fe5b6020026020010181905250505080806001019150506114db565b5080905092915050565b806115f9816119e7565b61160257600080fd5b6003600083815260200190815260200160002060008154809291906001019190505550817fb757169b8492ca2f1c6619d9d76ce22803035c3b1d5f6930dffe7b127c1a198360405160405180910390a25050565b6060600260008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156116ff5780601f106116d4576101008083540402835291602001916116ff565b820191906000526020600020905b8154815290600101906020018083116116e257829003601f168201915b50505050509050919050565b6000806008600084815260200190815260200160002060000154600860008581526020019081526020016000206001015491509150915091565b8161174f816119e7565b61175857600080fd5b61176c83603c611767856120a5565b6112be565b505050565b8261177b816119e7565b61178457600080fd5b81600660008681526020019081526020016000206000857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916847f7c69f06bea0bdef565b709e93a147836b0063ba2dd89f02d0b7e8d931e6a6daa84604051611875919061323b565b60405180910390a350505050565b60606001600084815260200190815260200160002060008381526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561193d5780601f106119125761010080835404028352916020019161193d565b820191906000526020600020905b81548152906001019060200180831161192057829003601f168201915b5050505050905092915050565b600b602052826000526040600020602052816000526040600020602052806000526040600020600092509250509054906101000a900460ff1681565b600063c869023360e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119e057506119df826120f0565b5b9050919050565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302571be3846040518263ffffffff1660e01b8152600401611a4591906132c9565b60206040518083038186803b158015611a5d57600080fd5b505afa158015611a71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611a9591908101906129af565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161480611b685750600b600084815260200190815260200160002060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b915050919050565b611b786125b2565b828160000181905250818160c0018181525050611b9481611f6e565b92915050565b6000816000015151826020015110159050919050565b6060611be08260200151611bcc84600001518560200151612151565b84600001516121ac9092919063ffffffff16565b9050919050565b6060611c108260a001518360a001518460c001510384600001516121ac9092919063ffffffff16565b9050919050565b600081518351148015611c365750611c35836000846000875161221f565b5b905092915050565b6000600360008981526020019081526020016000205490506000878051906020012090506060611c798686896121ac9092919063ffffffff16565b90508315611dee576000600460008c81526020019081526020016000206000858152602001908152602001600020600084815260200190815260200160002060008a61ffff1661ffff16815260200190815260200160002080546001816001161561010002031660029004905014611d5557600560008b815260200190815260200160002060008481526020019081526020016000206000838152602001908152602001600020600081819054906101000a900461ffff16809291906001900391906101000a81548161ffff021916908361ffff160217905550505b600460008b81526020019081526020016000206000848152602001908152602001600020600083815260200190815260200160002060008961ffff1661ffff1681526020019081526020016000206000611daf919061277d565b897f03528ed0c2a3ebc993b12ce3c16bb382f9c7d88ef7d8a1bf290eaf35955a12078a8a604051611de192919061336e565b60405180910390a2611f62565b6000600460008c81526020019081526020016000206000858152602001908152602001600020600084815260200190815260200160002060008a61ffff1661ffff1681526020019081526020016000208054600181600116156101000203166002900490501415611ec257600560008b815260200190815260200160002060008481526020019081526020016000206000838152602001908152602001600020600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550505b80600460008c81526020019081526020016000206000858152602001908152602001600020600084815260200190815260200160002060008a61ffff1661ffff1681526020019081526020016000209080519060200190611f249291906126fd565b50897f52a608b3303a48862d07a73d82fa221318c0027fbbcfb1b2329bface3f19ff2b8a8a84604051611f599392919061339e565b60405180910390a25b50505050505050505050565b8060c00151816020018181525050806000015151816020015110611f915761207f565b6000611fa582600001518360200151612151565b8260200151019050611fc481836000015161224390919063ffffffff16565b826040019061ffff16908161ffff1681525050600281019050611ff481836000015161224390919063ffffffff16565b826060019061ffff16908161ffff168152505060028101905061202481836000015161226990919063ffffffff16565b826080019063ffffffff16908163ffffffff1681525050600481019050600061205a82846000015161224390919063ffffffff16565b61ffff169050600282019150818360a00181815250508082018360c001818152505050505b50565b6000601482511461209257600080fd5b600c6101000a6020830151049050919050565b606060146040519080825280601f01601f1916602001820160405280156120db5781602001600182028038833980820191505090505b509050600c6101000a82026020820152919050565b600063691f343160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061214a575061214982612291565b5b9050919050565b6000808290505b6001156121a0578351811061216957fe5b600061217e82866122fe90919063ffffffff16565b60ff1690506001810182019150600081141561219a57506121a0565b50612158565b82810391505092915050565b6060835182840111156121be57600080fd5b6060826040519080825280601f01601f1916602001820160405280156121f35781602001600182028038833980820191505090505b5090506000806020830191508560208801019050612212828287612322565b8293505050509392505050565b600061222c84848461236b565b61223787878561236b565b14905095945050505050565b6000825160028301111561225657600080fd5b61ffff8260028501015116905092915050565b6000825160048301111561227c57600080fd5b63ffffffff8260048501015116905092915050565b600060405161229f90613226565b60405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122f757506122f68261238e565b5b9050919050565b600082828151811061230c57fe5b602001015160f81c60f81b60f81c905092915050565b5b602081106123465781518352602083019250602082019150602081039050612323565b60006001826020036101000a0390508019835116818551168181178652505050505050565b60008351828401111561237d57600080fd5b818360208601012090509392505050565b600063a8fa568260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123e857506123e7826123ef565b5b9050919050565b600063bc1c58d160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612449575061244882612450565b5b9050919050565b6000633b3b57de60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124e9575063f1cb7e0660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806124f957506124f882612500565b5b9050919050565b6000632203ab5660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061255a575061255982612561565b5b9050919050565b60006301ffc9a760e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060e001604052806060815260200160008152602001600061ffff168152602001600061ffff168152602001600063ffffffff16815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061263e57803560ff191683800117855561266c565b8280016001018555821561266c579182015b8281111561266b578235825591602001919060010190612650565b5b50905061267991906127c5565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106126be57803560ff19168380011785556126ec565b828001600101855582156126ec579182015b828111156126eb5782358255916020019190600101906126d0565b5b5090506126f991906127c5565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061273e57805160ff191683800117855561276c565b8280016001018555821561276c579182015b8281111561276b578251825591602001919060010190612750565b5b50905061277991906127c5565b5090565b50805460018160011615610100020316600290046000825580601f106127a357506127c2565b601f0160209004906000526020600020908101906127c191906127c5565b5b50565b6127e791905b808211156127e35760008160009055506001016127cb565b5090565b90565b6000813590506127f981613679565b92915050565b60008151905061280e81613679565b92915050565b60008083601f84011261282657600080fd5b8235905067ffffffffffffffff81111561283f57600080fd5b60208301915083602082028301111561285757600080fd5b9250929050565b60008135905061286d81613690565b92915050565b600081359050612882816136a7565b92915050565b600081359050612897816136be565b92915050565b60008083601f8401126128af57600080fd5b8235905067ffffffffffffffff8111156128c857600080fd5b6020830191508360018202830111156128e057600080fd5b9250929050565b600082601f8301126128f857600080fd5b813561290b61290682613486565b613459565b9150808252602083016020830185838301111561292757600080fd5b612932838284613626565b50505092915050565b60008083601f84011261294d57600080fd5b8235905067ffffffffffffffff81111561296657600080fd5b60208301915083600182028301111561297e57600080fd5b9250929050565b600081359050612994816136d5565b92915050565b6000813590506129a9816136ec565b92915050565b6000602082840312156129c157600080fd5b60006129cf848285016127ff565b91505092915050565b600080602083850312156129eb57600080fd5b600083013567ffffffffffffffff811115612a0557600080fd5b612a1185828601612814565b92509250509250929050565b600060208284031215612a2f57600080fd5b6000612a3d84828501612873565b91505092915050565b60008060408385031215612a5957600080fd5b6000612a6785828601612873565b9250506020612a78858286016127ea565b9150509250929050565b600080600060608486031215612a9757600080fd5b6000612aa586828701612873565b9350506020612ab6868287016127ea565b9250506040612ac7868287016127ea565b9150509250925092565b600080600060608486031215612ae657600080fd5b6000612af486828701612873565b9350506020612b05868287016127ea565b9250506040612b168682870161285e565b9150509250925092565b60008060408385031215612b3357600080fd5b6000612b4185828601612873565b9250506020612b5285828601612873565b9150509250929050565b600080600060608486031215612b7157600080fd5b6000612b7f86828701612873565b9350506020612b9086828701612873565b9250506040612ba186828701612873565b9150509250925092565b600080600060608486031215612bc057600080fd5b6000612bce86828701612873565b9350506020612bdf86828701612873565b9250506040612bf086828701612985565b9150509250925092565b60008060408385031215612c0d57600080fd5b6000612c1b85828601612873565b9250506020612c2c85828601612888565b9150509250929050565b600080600060608486031215612c4b57600080fd5b6000612c5986828701612873565b9350506020612c6a86828701612888565b9250506040612c7b868287016127ea565b9150509250925092565b600080600060408486031215612c9a57600080fd5b6000612ca886828701612873565b935050602084013567ffffffffffffffff811115612cc557600080fd5b612cd18682870161289d565b92509250509250925092565b600080600060408486031215612cf257600080fd5b6000612d0086828701612873565b935050602084013567ffffffffffffffff811115612d1d57600080fd5b612d298682870161293b565b92509250509250925092565b600080600080600060608688031215612d4d57600080fd5b6000612d5b88828901612873565b955050602086013567ffffffffffffffff811115612d7857600080fd5b612d848882890161293b565b9450945050604086013567ffffffffffffffff811115612da357600080fd5b612daf8882890161293b565b92509250509295509295909350565b60008060408385031215612dd157600080fd5b6000612ddf85828601612873565b9250506020612df08582860161299a565b9150509250929050565b60008060008060608587031215612e1057600080fd5b6000612e1e87828801612873565b9450506020612e2f8782880161299a565b935050604085013567ffffffffffffffff811115612e4c57600080fd5b612e588782880161289d565b925092505092959194509250565b600080600060608486031215612e7b57600080fd5b6000612e8986828701612873565b9350506020612e9a8682870161299a565b925050604084013567ffffffffffffffff811115612eb757600080fd5b612ec3868287016128e7565b9150509250925092565b600060208284031215612edf57600080fd5b6000612eed84828501612888565b91505092915050565b6000612f028383613095565b905092915050565b612f13816135f0565b82525050565b612f2281613564565b82525050565b612f3181613552565b82525050565b6000612f42826134bf565b612f4c81856134f8565b935083602082028501612f5e856134b2565b8060005b85811015612f9a5784840389528151612f7b8582612ef6565b9450612f86836134eb565b925060208a01995050600181019050612f62565b50829750879550505050505092915050565b612fb581613576565b82525050565b612fc481613582565b82525050565b612fd38161358c565b82525050565b6000612fe5838561351a565b9350612ff2838584613626565b612ffb83613668565b840190509392505050565b6000613012838561352b565b935061301f838584613626565b82840190509392505050565b6000613036826134d5565b613040818561351a565b9350613050818560208601613635565b61305981613668565b840191505092915050565b600061306f826134d5565b613079818561352b565b9350613089818560208601613635565b80840191505092915050565b60006130a0826134ca565b6130aa8185613509565b93506130ba818560208601613635565b6130c381613668565b840191505092915050565b60006130da8385613536565b93506130e7838584613626565b6130f083613668565b840190509392505050565b60006131078385613547565b9350613114838584613626565b82840190509392505050565b600061312b826134e0565b6131358185613536565b9350613145818560208601613635565b61314e81613668565b840191505092915050565b6000613166602483613547565b91507f696e74657266616365496d706c656d656e74657228627974657333322c62797460008301527f65733429000000000000000000000000000000000000000000000000000000006020830152602482019050919050565b6131c8816135b8565b82525050565b6131d7816135e6565b82525050565b60006131ea828486613006565b91508190509392505050565b60006132028284613064565b915081905092915050565b600061321a8284866130fb565b91508190509392505050565b600061323182613159565b9150819050919050565b60006020820190506132506000830184612f28565b92915050565b600060208201905061326b6000830184612f0a565b92915050565b60006020820190506132866000830184612f19565b92915050565b600060208201905081810360008301526132a68184612f37565b905092915050565b60006020820190506132c36000830184612fac565b92915050565b60006020820190506132de6000830184612fbb565b92915050565b60006040820190506132f96000830185612fbb565b6133066020830184612fbb565b9392505050565b60006020820190506133226000830184612fca565b92915050565b60006020820190508181036000830152613343818486612fd9565b90509392505050565b60006020820190508181036000830152613366818461302b565b905092915050565b60006040820190508181036000830152613388818561302b565b905061339760208301846131bf565b9392505050565b600060608201905081810360008301526133b8818661302b565b90506133c760208301856131bf565b81810360408301526133d9818461302b565b9050949350505050565b600060208201905081810360008301526133fe8184866130ce565b90509392505050565b600060208201905081810360008301526134218184613120565b905092915050565b600060408201905061343e60008301856131ce565b8181036020830152613450818461302b565b90509392505050565b6000604051905081810181811067ffffffffffffffff8211171561347c57600080fd5b8060405250919050565b600067ffffffffffffffff82111561349d57600080fd5b601f19601f8301169050602081019050919050565b6000602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061355d826135c6565b9050919050565b600061356f826135c6565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006135fb82613602565b9050919050565b600061360d82613614565b9050919050565b600061361f826135c6565b9050919050565b82818337600083830152505050565b60005b83811015613653578082015181840152602081019050613638565b83811115613662576000848401525b50505050565b6000601f19601f8301169050919050565b61368281613552565b811461368d57600080fd5b50565b61369981613576565b81146136a457600080fd5b50565b6136b081613582565b81146136bb57600080fd5b50565b6136c78161358c565b81146136d257600080fd5b50565b6136de816135b8565b81146136e957600080fd5b50565b6136f5816135e6565b811461370057600080fd5b5056fea265627a7a7230582049ebf27fa2f4353ae0dc98302f101fe3256ef5930b91c52222dcf860d94f3c326c6578706572696d656e74616cf50037","deployedBytecode":"0x608060405234801561001057600080fd5b50600436106101585760003560e01c8063691f3431116100c3578063bc1c58d11161007c578063bc1c58d11461040a578063c86902331461043a578063d5fa2b001461046b578063e59d895d14610487578063f1cb7e06146104a3578063f86bc879146104d357610158565b8063691f34311461032657806377372213146103565780638b95dd7114610372578063a8fa56821461038e578063ac9650d8146103be578063ad5780af146103ee57610158565b8063304e6ade11610115578063304e6ade146102425780633b3b57de1461025e5780633e9ce7941461028e5780634cbf6ba4146102aa57806359d1d43c146102da578063623195b01461030a57610158565b806301ffc9a71461015d5780630af179d71461018d57806310f13a8c146101a9578063124a319c146101c55780632203ab56146101f557806329cd62ea14610226575b600080fd5b61017760048036036101729190810190612ecd565b610503565b60405161018491906132ae565b60405180910390f35b6101a760048036036101a29190810190612c85565b610564565b005b6101c360048036036101be9190810190612d35565b610792565b005b6101df60048036036101da9190810190612bfa565b610840565b6040516101ec919061323b565b60405180910390f35b61020f600480360361020a9190810190612dbe565b610c2b565b60405161021d929190613429565b60405180910390f35b610240600480360361023b9190810190612b5c565b610d7a565b005b61025c60048036036102579190810190612c85565b610e0c565b005b61027860048036036102739190810190612a1d565b610e82565b6040516102859190613271565b60405180910390f35b6102a860048036036102a39190810190612ad1565b610eb9565b005b6102c460048036036102bf9190810190612b20565b610fc9565b6040516102d191906132ae565b60405180910390f35b6102f460048036036102ef9190810190612cdd565b611031565b6040516103019190613407565b60405180910390f35b610324600480360361031f9190810190612dfa565b611106565b005b610340600480360361033b9190810190612a1d565b611193565b60405161034d9190613407565b60405180910390f35b610370600480360361036b9190810190612cdd565b611248565b005b61038c60048036036103879190810190612e66565b6112be565b005b6103a860048036036103a39190810190612bab565b611394565b6040516103b5919061334c565b60405180910390f35b6103d860048036036103d391908101906129d8565b611499565b6040516103e5919061328c565b60405180910390f35b61040860048036036104039190810190612a1d565b6115ef565b005b610424600480360361041f9190810190612a1d565b611656565b604051610431919061334c565b60405180910390f35b610454600480360361044f9190810190612a1d565b61170b565b6040516104629291906132e4565b60405180910390f35b61048560048036036104809190810190612a46565b611745565b005b6104a1600480360361049c9190810190612c36565b611771565b005b6104bd60048036036104b89190810190612dbe565b611883565b6040516104ca919061334c565b60405180910390f35b6104ed60048036036104e89190810190612a82565b61194a565b6040516104fa91906132ae565b60405180910390f35b60006359d1d43c60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061055d575061055c82611986565b5b9050919050565b8261056e816119e7565b61057757600080fd5b60008090506000809050606080600061058e6125b2565b6105e660008a8a8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f82011690508083019250505050505050611b7090919063ffffffff16565b90505b6105f281611b9a565b61071f5760008661ffff16141561064e578060400151955061061381611bb0565b93508360405160200161062691906131f6565b60405160208183030381529060405280519060200120915061064781611be7565b9250610711565b606061065982611bb0565b9050816040015161ffff168761ffff1614158061068657506106848186611c1790919063ffffffff16565b155b1561070f576106e88b86898d8d8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050508a8b88602001510360008b5114611c3e565b81604001519650816020015195508094508480519060200120925061070c82611be7565b93505b505b61071a81611f6e565b6105e9565b50600083511115610787576107868984878b8b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505088898e8e9050036000895114611c3e565b5b505050505050505050565b8461079c816119e7565b6107a557600080fd5b82826009600089815260200190815260200160002087876040516107ca92919061320d565b908152602001604051809103902091906107e59291906125fd565b5084846040516107f692919061320d565b6040518091039020867fd8c9334b1a9c2f9da342a0a2b32629c1a229b6445dad78947f674b44444a755087876040516108309291906133e3565b60405180910390a3505050505050565b600080600660008581526020019081526020016000206000847bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109055780915050610c25565b600061091085610e82565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561095257600092505050610c25565b600060608273ffffffffffffffffffffffffffffffffffffffff166301ffc9a760e01b604051602401610985919061330d565b6040516020818303038152906040527f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610a0f91906131f6565b600060405180830381855afa9150503d8060008114610a4a576040519150601f19603f3d011682016040523d82523d6000602084013e610a4f565b606091505b5091509150811580610a62575060208151105b80610aa95750600060f81b81601f81518110610a7a57fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15610abb576000945050505050610c25565b8273ffffffffffffffffffffffffffffffffffffffff1686604051602401610ae3919061330d565b6040516020818303038152906040527f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051610b6d91906131f6565b600060405180830381855afa9150503d8060008114610ba8576040519150601f19603f3d011682016040523d82523d6000602084013e610bad565b606091505b508092508193505050811580610bc4575060208151105b80610c0b5750600060f81b81601f81518110610bdc57fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b15610c1d576000945050505050610c25565b829450505050505b92915050565b60006060600080600086815260200190815260200160002090506000600190505b848111610d5757600085821614158015610c8c57506000826000838152602001908152602001600020805460018160011615610100020316600290049050115b15610d4b5780826000838152602001908152602001600020808054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610d395780601f10610d0e57610100808354040283529160200191610d39565b820191906000526020600020905b815481529060010190602001808311610d1c57829003601f168201915b50505050509050935093505050610d73565b600181901b9050610c4c565b5060006040518060200160405280600081525081915092509250505b9250929050565b82610d84816119e7565b610d8d57600080fd5b604051806040016040528084815260200183815250600860008681526020019081526020016000206000820151816000015560208201518160010155905050837f1d6f5e03d3f63eb58751986629a5439baee5079ff04f345becb66e23eb154e468484604051610dfe9291906132e4565b60405180910390a250505050565b82610e16816119e7565b610e1f57600080fd5b8282600260008781526020019081526020016000209190610e4192919061267d565b50837fe379c1624ed7e714cc0937528a32359d69d5281337765313dba4e081b72d75788484604051610e74929190613328565b60405180910390a250505050565b60006060610e9183603c611883565b9050600081511415610ea7576000915050610eb4565b610eb081612082565b9150505b919050565b80600b600085815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16847fe1c5610a6e0cbe10764ecd182adcef1ec338dc4e199c99c32ce98f38e12791df84604051610fbc91906132ae565b60405180910390a4505050565b60008060056000858152602001908152602001600020600060036000878152602001908152602001600020548152602001908152602001600020600084815260200190815260200160002060009054906101000a900461ffff1661ffff161415905092915050565b606060096000858152602001908152602001600020838360405161105692919061320d565b90815260200160405180910390208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156110f85780601f106110cd576101008083540402835291602001916110f8565b820191906000526020600020905b8154815290600101906020018083116110db57829003601f168201915b505050505090509392505050565b83611110816119e7565b61111957600080fd5b60008460018603161461112b57600080fd5b82826000808881526020019081526020016000206000878152602001908152602001600020919061115d92919061267d565b5083857faa121bbeef5f32f5961a2a28966e769023910fc9479059ee3495d4c1a696efe360405160405180910390a35050505050565b6060600760008381526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561123c5780601f106112115761010080835404028352916020019161123c565b820191906000526020600020905b81548152906001019060200180831161121f57829003601f168201915b50505050509050919050565b82611252816119e7565b61125b57600080fd5b828260076000878152602001908152602001600020919061127d9291906125fd565b50837fb7d29e911041e8d9b843369e890bcb72c9388692ba48b65ac54e7214c4c348f784846040516112b09291906133e3565b60405180910390a250505050565b826112c8816119e7565b6112d157600080fd5b837f65412581168e88a1e60c6459d7f44ae83ad0832e670826c05a4e2476b57af7528484604051611303929190613429565b60405180910390a2603c83141561135557837f52d7d861f09ab3d26239d492e8968629f95e9e318cf0b73bfddc441522a15fd261133f84612082565b60405161134c9190613256565b60405180910390a25b81600160008681526020019081526020016000206000858152602001908152602001600020908051906020019061138d9291906126fd565b5050505050565b606060046000858152602001908152602001600020600060036000878152602001908152602001600020548152602001908152602001600020600084815260200190815260200160002060008361ffff1661ffff1681526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561148b5780601f106114605761010080835404028352916020019161148b565b820191906000526020600020905b81548152906001019060200180831161146e57829003601f168201915b505050505090509392505050565b6060828290506040519080825280602002602001820160405280156114d257816020015b60608152602001906001900390816114bd5790505b50905060008090505b838390508110156115e557600060603073ffffffffffffffffffffffffffffffffffffffff1686868581811061150d57fe5b905060200281018035600160200383360303811261152a57600080fd5b8083019250508135905060208201915067ffffffffffffffff81111561154f57600080fd5b60018102360382131561156157600080fd5b60405161156f9291906131dd565b600060405180830381855af49150503d80600081146115aa576040519150601f19603f3d011682016040523d82523d6000602084013e6115af565b606091505b5091509150816115be57600080fd5b808484815181106115cb57fe5b6020026020010181905250505080806001019150506114db565b5080905092915050565b806115f9816119e7565b61160257600080fd5b6003600083815260200190815260200160002060008154809291906001019190505550817fb757169b8492ca2f1c6619d9d76ce22803035c3b1d5f6930dffe7b127c1a198360405160405180910390a25050565b6060600260008381526020019081526020016000208054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156116ff5780601f106116d4576101008083540402835291602001916116ff565b820191906000526020600020905b8154815290600101906020018083116116e257829003601f168201915b50505050509050919050565b6000806008600084815260200190815260200160002060000154600860008581526020019081526020016000206001015491509150915091565b8161174f816119e7565b61175857600080fd5b61176c83603c611767856120a5565b6112be565b505050565b8261177b816119e7565b61178457600080fd5b81600660008681526020019081526020016000206000857bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916847f7c69f06bea0bdef565b709e93a147836b0063ba2dd89f02d0b7e8d931e6a6daa84604051611875919061323b565b60405180910390a350505050565b60606001600084815260200190815260200160002060008381526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561193d5780601f106119125761010080835404028352916020019161193d565b820191906000526020600020905b81548152906001019060200180831161192057829003601f168201915b5050505050905092915050565b600b602052826000526040600020602052816000526040600020602052806000526040600020600092509250509054906101000a900460ff1681565b600063c869023360e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806119e057506119df826120f0565b5b9050919050565b600080600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166302571be3846040518263ffffffff1660e01b8152600401611a4591906132c9565b60206040518083038186803b158015611a5d57600080fd5b505afa158015611a71573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611a9591908101906129af565b90503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161480611b685750600b600084815260200190815260200160002060008273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff165b915050919050565b611b786125b2565b828160000181905250818160c0018181525050611b9481611f6e565b92915050565b6000816000015151826020015110159050919050565b6060611be08260200151611bcc84600001518560200151612151565b84600001516121ac9092919063ffffffff16565b9050919050565b6060611c108260a001518360a001518460c001510384600001516121ac9092919063ffffffff16565b9050919050565b600081518351148015611c365750611c35836000846000875161221f565b5b905092915050565b6000600360008981526020019081526020016000205490506000878051906020012090506060611c798686896121ac9092919063ffffffff16565b90508315611dee576000600460008c81526020019081526020016000206000858152602001908152602001600020600084815260200190815260200160002060008a61ffff1661ffff16815260200190815260200160002080546001816001161561010002031660029004905014611d5557600560008b815260200190815260200160002060008481526020019081526020016000206000838152602001908152602001600020600081819054906101000a900461ffff16809291906001900391906101000a81548161ffff021916908361ffff160217905550505b600460008b81526020019081526020016000206000848152602001908152602001600020600083815260200190815260200160002060008961ffff1661ffff1681526020019081526020016000206000611daf919061277d565b897f03528ed0c2a3ebc993b12ce3c16bb382f9c7d88ef7d8a1bf290eaf35955a12078a8a604051611de192919061336e565b60405180910390a2611f62565b6000600460008c81526020019081526020016000206000858152602001908152602001600020600084815260200190815260200160002060008a61ffff1661ffff1681526020019081526020016000208054600181600116156101000203166002900490501415611ec257600560008b815260200190815260200160002060008481526020019081526020016000206000838152602001908152602001600020600081819054906101000a900461ffff168092919060010191906101000a81548161ffff021916908361ffff160217905550505b80600460008c81526020019081526020016000206000858152602001908152602001600020600084815260200190815260200160002060008a61ffff1661ffff1681526020019081526020016000209080519060200190611f249291906126fd565b50897f52a608b3303a48862d07a73d82fa221318c0027fbbcfb1b2329bface3f19ff2b8a8a84604051611f599392919061339e565b60405180910390a25b50505050505050505050565b8060c00151816020018181525050806000015151816020015110611f915761207f565b6000611fa582600001518360200151612151565b8260200151019050611fc481836000015161224390919063ffffffff16565b826040019061ffff16908161ffff1681525050600281019050611ff481836000015161224390919063ffffffff16565b826060019061ffff16908161ffff168152505060028101905061202481836000015161226990919063ffffffff16565b826080019063ffffffff16908163ffffffff1681525050600481019050600061205a82846000015161224390919063ffffffff16565b61ffff169050600282019150818360a00181815250508082018360c001818152505050505b50565b6000601482511461209257600080fd5b600c6101000a6020830151049050919050565b606060146040519080825280601f01601f1916602001820160405280156120db5781602001600182028038833980820191505090505b509050600c6101000a82026020820152919050565b600063691f343160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061214a575061214982612291565b5b9050919050565b6000808290505b6001156121a0578351811061216957fe5b600061217e82866122fe90919063ffffffff16565b60ff1690506001810182019150600081141561219a57506121a0565b50612158565b82810391505092915050565b6060835182840111156121be57600080fd5b6060826040519080825280601f01601f1916602001820160405280156121f35781602001600182028038833980820191505090505b5090506000806020830191508560208801019050612212828287612322565b8293505050509392505050565b600061222c84848461236b565b61223787878561236b565b14905095945050505050565b6000825160028301111561225657600080fd5b61ffff8260028501015116905092915050565b6000825160048301111561227c57600080fd5b63ffffffff8260048501015116905092915050565b600060405161229f90613226565b60405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806122f757506122f68261238e565b5b9050919050565b600082828151811061230c57fe5b602001015160f81c60f81b60f81c905092915050565b5b602081106123465781518352602083019250602082019150602081039050612323565b60006001826020036101000a0390508019835116818551168181178652505050505050565b60008351828401111561237d57600080fd5b818360208601012090509392505050565b600063a8fa568260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806123e857506123e7826123ef565b5b9050919050565b600063bc1c58d160e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612449575061244882612450565b5b9050919050565b6000633b3b57de60e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806124e9575063f1cb7e0660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806124f957506124f882612500565b5b9050919050565b6000632203ab5660e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061255a575061255982612561565b5b9050919050565b60006301ffc9a760e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060e001604052806060815260200160008152602001600061ffff168152602001600061ffff168152602001600063ffffffff16815260200160008152602001600081525090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061263e57803560ff191683800117855561266c565b8280016001018555821561266c579182015b8281111561266b578235825591602001919060010190612650565b5b50905061267991906127c5565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106126be57803560ff19168380011785556126ec565b828001600101855582156126ec579182015b828111156126eb5782358255916020019190600101906126d0565b5b5090506126f991906127c5565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061273e57805160ff191683800117855561276c565b8280016001018555821561276c579182015b8281111561276b578251825591602001919060010190612750565b5b50905061277991906127c5565b5090565b50805460018160011615610100020316600290046000825580601f106127a357506127c2565b601f0160209004906000526020600020908101906127c191906127c5565b5b50565b6127e791905b808211156127e35760008160009055506001016127cb565b5090565b90565b6000813590506127f981613679565b92915050565b60008151905061280e81613679565b92915050565b60008083601f84011261282657600080fd5b8235905067ffffffffffffffff81111561283f57600080fd5b60208301915083602082028301111561285757600080fd5b9250929050565b60008135905061286d81613690565b92915050565b600081359050612882816136a7565b92915050565b600081359050612897816136be565b92915050565b60008083601f8401126128af57600080fd5b8235905067ffffffffffffffff8111156128c857600080fd5b6020830191508360018202830111156128e057600080fd5b9250929050565b600082601f8301126128f857600080fd5b813561290b61290682613486565b613459565b9150808252602083016020830185838301111561292757600080fd5b612932838284613626565b50505092915050565b60008083601f84011261294d57600080fd5b8235905067ffffffffffffffff81111561296657600080fd5b60208301915083600182028301111561297e57600080fd5b9250929050565b600081359050612994816136d5565b92915050565b6000813590506129a9816136ec565b92915050565b6000602082840312156129c157600080fd5b60006129cf848285016127ff565b91505092915050565b600080602083850312156129eb57600080fd5b600083013567ffffffffffffffff811115612a0557600080fd5b612a1185828601612814565b92509250509250929050565b600060208284031215612a2f57600080fd5b6000612a3d84828501612873565b91505092915050565b60008060408385031215612a5957600080fd5b6000612a6785828601612873565b9250506020612a78858286016127ea565b9150509250929050565b600080600060608486031215612a9757600080fd5b6000612aa586828701612873565b9350506020612ab6868287016127ea565b9250506040612ac7868287016127ea565b9150509250925092565b600080600060608486031215612ae657600080fd5b6000612af486828701612873565b9350506020612b05868287016127ea565b9250506040612b168682870161285e565b9150509250925092565b60008060408385031215612b3357600080fd5b6000612b4185828601612873565b9250506020612b5285828601612873565b9150509250929050565b600080600060608486031215612b7157600080fd5b6000612b7f86828701612873565b9350506020612b9086828701612873565b9250506040612ba186828701612873565b9150509250925092565b600080600060608486031215612bc057600080fd5b6000612bce86828701612873565b9350506020612bdf86828701612873565b9250506040612bf086828701612985565b9150509250925092565b60008060408385031215612c0d57600080fd5b6000612c1b85828601612873565b9250506020612c2c85828601612888565b9150509250929050565b600080600060608486031215612c4b57600080fd5b6000612c5986828701612873565b9350506020612c6a86828701612888565b9250506040612c7b868287016127ea565b9150509250925092565b600080600060408486031215612c9a57600080fd5b6000612ca886828701612873565b935050602084013567ffffffffffffffff811115612cc557600080fd5b612cd18682870161289d565b92509250509250925092565b600080600060408486031215612cf257600080fd5b6000612d0086828701612873565b935050602084013567ffffffffffffffff811115612d1d57600080fd5b612d298682870161293b565b92509250509250925092565b600080600080600060608688031215612d4d57600080fd5b6000612d5b88828901612873565b955050602086013567ffffffffffffffff811115612d7857600080fd5b612d848882890161293b565b9450945050604086013567ffffffffffffffff811115612da357600080fd5b612daf8882890161293b565b92509250509295509295909350565b60008060408385031215612dd157600080fd5b6000612ddf85828601612873565b9250506020612df08582860161299a565b9150509250929050565b60008060008060608587031215612e1057600080fd5b6000612e1e87828801612873565b9450506020612e2f8782880161299a565b935050604085013567ffffffffffffffff811115612e4c57600080fd5b612e588782880161289d565b925092505092959194509250565b600080600060608486031215612e7b57600080fd5b6000612e8986828701612873565b9350506020612e9a8682870161299a565b925050604084013567ffffffffffffffff811115612eb757600080fd5b612ec3868287016128e7565b9150509250925092565b600060208284031215612edf57600080fd5b6000612eed84828501612888565b91505092915050565b6000612f028383613095565b905092915050565b612f13816135f0565b82525050565b612f2281613564565b82525050565b612f3181613552565b82525050565b6000612f42826134bf565b612f4c81856134f8565b935083602082028501612f5e856134b2565b8060005b85811015612f9a5784840389528151612f7b8582612ef6565b9450612f86836134eb565b925060208a01995050600181019050612f62565b50829750879550505050505092915050565b612fb581613576565b82525050565b612fc481613582565b82525050565b612fd38161358c565b82525050565b6000612fe5838561351a565b9350612ff2838584613626565b612ffb83613668565b840190509392505050565b6000613012838561352b565b935061301f838584613626565b82840190509392505050565b6000613036826134d5565b613040818561351a565b9350613050818560208601613635565b61305981613668565b840191505092915050565b600061306f826134d5565b613079818561352b565b9350613089818560208601613635565b80840191505092915050565b60006130a0826134ca565b6130aa8185613509565b93506130ba818560208601613635565b6130c381613668565b840191505092915050565b60006130da8385613536565b93506130e7838584613626565b6130f083613668565b840190509392505050565b60006131078385613547565b9350613114838584613626565b82840190509392505050565b600061312b826134e0565b6131358185613536565b9350613145818560208601613635565b61314e81613668565b840191505092915050565b6000613166602483613547565b91507f696e74657266616365496d706c656d656e74657228627974657333322c62797460008301527f65733429000000000000000000000000000000000000000000000000000000006020830152602482019050919050565b6131c8816135b8565b82525050565b6131d7816135e6565b82525050565b60006131ea828486613006565b91508190509392505050565b60006132028284613064565b915081905092915050565b600061321a8284866130fb565b91508190509392505050565b600061323182613159565b9150819050919050565b60006020820190506132506000830184612f28565b92915050565b600060208201905061326b6000830184612f0a565b92915050565b60006020820190506132866000830184612f19565b92915050565b600060208201905081810360008301526132a68184612f37565b905092915050565b60006020820190506132c36000830184612fac565b92915050565b60006020820190506132de6000830184612fbb565b92915050565b60006040820190506132f96000830185612fbb565b6133066020830184612fbb565b9392505050565b60006020820190506133226000830184612fca565b92915050565b60006020820190508181036000830152613343818486612fd9565b90509392505050565b60006020820190508181036000830152613366818461302b565b905092915050565b60006040820190508181036000830152613388818561302b565b905061339760208301846131bf565b9392505050565b600060608201905081810360008301526133b8818661302b565b90506133c760208301856131bf565b81810360408301526133d9818461302b565b9050949350505050565b600060208201905081810360008301526133fe8184866130ce565b90509392505050565b600060208201905081810360008301526134218184613120565b905092915050565b600060408201905061343e60008301856131ce565b8181036020830152613450818461302b565b90509392505050565b6000604051905081810181811067ffffffffffffffff8211171561347c57600080fd5b8060405250919050565b600067ffffffffffffffff82111561349d57600080fd5b601f19601f8301169050602081019050919050565b6000602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061355d826135c6565b9050919050565b600061356f826135c6565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006135fb82613602565b9050919050565b600061360d82613614565b9050919050565b600061361f826135c6565b9050919050565b82818337600083830152505050565b60005b83811015613653578082015181840152602081019050613638565b83811115613662576000848401525b50505050565b6000601f19601f8301169050919050565b61368281613552565b811461368d57600080fd5b50565b61369981613576565b81146136a457600080fd5b50565b6136b081613582565b81146136bb57600080fd5b50565b6136c78161358c565b81146136d257600080fd5b50565b6136de816135b8565b81146136e957600080fd5b50565b6136f5816135e6565b811461370057600080fd5b5056fea265627a7a7230582049ebf27fa2f4353ae0dc98302f101fe3256ef5930b91c52222dcf860d94f3c326c6578706572696d656e74616cf50037","sourceMap":"520:2174:3:-;;;1151:56;8:9:-1;5:2;;;30:1;27;20:12;5:2;1151:56:3;;;;;;;;;;;;;;;;;;;;;;1196:4;1190:3;;:10;;;;;;;;;;;;;;;;;;1151:56;520:2174;;5:158:-1;;101:6;95:13;86:22;;113:45;152:5;113:45;;;80:83;;;;;170:287;;297:2;285:9;276:7;272:23;268:32;265:2;;;313:1;310;303:12;265:2;348:1;365:76;433:7;424:6;413:9;409:22;365:76;;;355:86;;327:120;259:198;;;;;464:91;;526:24;544:5;526:24;;;515:35;;509:46;;;;562:103;;636:24;654:5;636:24;;;625:35;;619:46;;;;672:121;;745:42;738:5;734:54;723:65;;717:76;;;;800:141;881:36;911:5;881:36;;;874:5;871:47;861:2;;932:1;929;922:12;861:2;855:86;;520:2174:3;;;;;;;","deployedSourceMap":"520:2174:3:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;520:2174:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1107:169:13;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;2403:1263:9;;;;;;;;;;;;;;;;:::i;:::-;;573:184:13;;;;;;;;;;;;;;;;:::i;:::-;;1721:953:10;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1195:454:6;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;612:169:12;;;;;;;;;;;;;;;;:::i;:::-;;505:166:8;;;;;;;;;;;;;;;;:::i;:::-;;972:228:7;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1892:231:3;;;;;;;;;;;;;;;;:::i;:::-;;4450:153:9;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;974:127:13;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;582:292:6;;;;;;;;;;;;;;;;:::i;:::-;;844:101:11;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;492:152;;;;;;;;;;;;;;;;:::i;:::-;;1206:286:7;;;;;;;;;;;;;;;;:::i;:::-;;4068:168:9;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;2326:366:3;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;4742:128:9;;;;;;;;;;;;;;;;:::i;:::-;;838:108:8;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1023:133:12;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;681:132:7;;;;;;;;;;;;;;;;:::i;:::-;;858:226:10;;;;;;;;;;;;;;;;:::i;:::-;;1498:127:7;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;943:80:3;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;1107:169:13;1174:4;144:10;1212:17;;1197:32;;;:11;:32;;;;:72;;;;1233:36;1257:11;1233:23;:36::i;:::-;1197:72;1190:79;;1107:169;;;:::o;2403:1263:9:-;2481:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;2497:15:9;2515:1;2497:19;;2526:14;2543:1;2526:18;;2554:17;2581:18;2609:16;2701:30;;:::i;:::-;2734:18;2750:1;2734:4;;:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;2734:15:9;;;;;;;;:18;;;;:::i;:::-;2701:51;;2696:821;2755:11;:4;:9;:11::i;:::-;2696:821;;2811:1;2799:8;:13;;;2795:712;;;2843:4;:12;;;2832:23;;2880:11;:4;:9;:11::i;:::-;2873:18;;2947:4;2930:22;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;2930:22:9;;;2920:33;;;;;;2909:44;;2985:12;:4;:10;:12::i;:::-;2971:27;;2795:712;;;3037:20;3060:11;:4;:9;:11::i;:::-;3037:34;;3105:4;:12;;;3093:24;;:8;:24;;;;:49;;;;3122:20;3134:7;3122:4;:11;;:20;;;;:::i;:::-;3121:21;3093:49;3089:404;;;3166:88;3178:4;3184;3190:8;3200:4;;3166:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;3166:88:9;;;;;;3206:6;3228;3214:4;:11;;;:20;3252:1;3236:5;:12;:17;3166:11;:88::i;:::-;3287:4;:12;;;3276:23;;3330:4;:11;;;3321:20;;3370:7;3363:14;;3420:4;3410:15;;;;;;3399:26;;3461:12;:4;:10;:12::i;:::-;3447:27;;3089:404;2795:712;;2768:11;:4;:9;:11::i;:::-;2696:821;;;;3544:1;3530:4;:11;:15;3526:134;;;3561:88;3573:4;3579;3585:8;3595:4;;3561:88;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;3561:88:9;;;;;;3601:6;3623;3609:4;;:11;;:20;3647:1;3631:5;:12;:17;3561:11;:88::i;:::-;3526:134;400:1:5;;;;;2403:1263:9;;;;:::o;573:184:13:-;668:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;703:5:13;;684;:11;690:4;684:11;;;;;;;;;;;696:3;;684:16;;;;;;;;;;;;;;;;;;;;;:24;;;;;;;:::i;:::-;;741:3;;723:27;;;;;;;;;;;;;;;;735:4;723:27;746:3;;723:27;;;;;;;;;;;;;;;;573:184;;;;;;:::o;1721:953:10:-;1808:7;1827:19;1849:10;:16;1860:4;1849:16;;;;;;;;;;;:29;1866:11;1849:29;;;;;;;;;;;;;;;;;;;;;;;;;;;1827:51;;1914:1;1891:25;;:11;:25;;;1888:73;;1939:11;1932:18;;;;;1888:73;1971:9;1983:10;1988:4;1983;:10::i;:::-;1971:22;;2019:1;2006:15;;:1;:15;;;2003:62;;;2052:1;2037:17;;;;;;2003:62;2076:12;2090:23;2117:1;:12;;304:10;2183:17;;2130:71;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;2130:71:10;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;2130:71:10;2117:85;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;2075:127:10;;;;2216:7;2215:8;:34;;;;2247:2;2227:10;:17;:22;2215:34;:57;;;;2271:1;2253:19;;:10;2264:2;2253:14;;;;;;;;;;;;;;;;:19;;;;2215:57;2212:151;;;2350:1;2335:17;;;;;;;;2212:151;2397:1;:12;;2463:11;2410:65;;;;;;;;;;;;49:4:-1;39:7;30;26:21;22:32;13:7;6:49;2410:65:10;;;;;;;38:4:-1;29:7;25:18;67:10;61:17;96:58;199:8;192:4;186;182:15;179:29;167:10;160:49;0:215;;;2410:65:10;2397:79;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;2373:103:10;;;;;;;;2490:7;2489:8;:34;;;;2521:2;2501:10;:17;:22;2489:34;:57;;;;2545:1;2527:19;;:10;2538:2;2527:14;;;;;;;;;;;;;;;;:19;;;;2489:57;2486:163;;;2636:1;2621:17;;;;;;;;2486:163;2666:1;2659:8;;;;;;1721:953;;;;;:::o;1195:454:6:-;1267:7;1276:12;1300:38;1341:4;:10;1346:4;1341:10;;;;;;;;;;;1300:51;;1367:19;1389:1;1367:23;;1362:249;1407:12;1392:11;:27;1362:249;;1490:1;1473:12;1459:11;:26;1458:33;;:67;;;;;1524:1;1495:6;:19;1502:11;1495:19;;;;;;;;;;;:26;;;;;;;;;;;;;;;;:30;1458:67;1454:147;;;1553:11;1566:6;:19;1573:11;1566:19;;;;;;;;;;;1545:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1454:147;1437:1;1421:17;;;;;1362:249;;;;1629:1;1632:9;;;;;;;;;;;;1621:21;;;;;;;;1195:454;;;;;;:::o;612:169:12:-;687:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;719:15:12;;;;;;;;729:1;719:15;;;;732:1;719:15;;;703:7;:13;711:4;703:13;;;;;;;;;;;:31;;;;;;;;;;;;;;;;;;;763:4;749:25;769:1;772;749:25;;;;;;;;;;;;;;;;612:169;;;;:::o;505:166:8:-;584:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;615:4:8;;600:6;:12;607:4;600:12;;;;;;;;;;;:19;;;;;;;:::i;:::-;;653:4;634:30;659:4;;634:30;;;;;;;;;;;;;;;;505:166;;;;:::o;972:228:7:-;1021:15;1048:14;1065:25;1070:4;261:2;1065:4;:25::i;:::-;1048:42;;1115:1;1103;:8;:13;1100:60;;;1147:1;1132:17;;;;;1100:60;1176:17;1191:1;1176:14;:17::i;:::-;1169:24;;;972:228;;;;:::o;1892:231:3:-;2029:12;1986:14;:20;2001:4;1986:20;;;;;;;;;;;:32;2007:10;1986:32;;;;;;;;;;;;;;;:40;2019:6;1986:40;;;;;;;;;;;;;;;;:55;;;;;;;;;;;;;;;;;;2095:6;2056:60;;2083:10;2056:60;;2077:4;2056:60;2103:12;2056:60;;;;;;;;;;;;;;;1892:231;;;:::o;4450:153:9:-;4522:4;4594:1;4546:16;:22;4563:4;4546:22;;;;;;;;;;;:38;4569:8;:14;4578:4;4569:14;;;;;;;;;;;;4546:38;;;;;;;;;;;:44;4585:4;4546:44;;;;;;;;;;;;;;;;;;;;;:49;;;;4538:58;;4450:153;;;;:::o;974:127:13:-;1046:13;1078:5;:11;1084:4;1078:11;;;;;;;;;;;1090:3;;1078:16;;;;;;;;;;;;;;;;;;;;;1071:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;974:127;;;;;:::o;582:292:6:-;674:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;780:1:6;764:11;759:1;745:11;:15;744:31;743:38;735:47;;;;;;819:4;;793;:10;798:4;793:10;;;;;;;;;;;:23;804:11;793:23;;;;;;;;;;;:30;;;;;;;:::i;:::-;;855:11;849:4;838:29;;;;;;;;;;582:292;;;;;:::o;844:101:11:-;895:13;927:5;:11;933:4;927:11;;;;;;;;;;;920:18;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;844:101;;;:::o;492:152::-;565:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;595:4:11;;581:5;:11;587:4;581:11;;;;;;;;;;;:18;;;;;;;:::i;:::-;;626:4;614:23;632:4;;614:23;;;;;;;;;;;;;;;;492:152;;;;:::o;1206:286:7:-;1286:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;1322:4:7;1307:33;1328:8;1338:1;1307:33;;;;;;;;;;;;;;;;261:2;1353:8;:25;1350:96;;;1411:4;1399:36;1417:17;1432:1;1417:14;:17::i;:::-;1399:36;;;;;;;;;;;;;;;1350:96;1484:1;1455:10;:16;1466:4;1455:16;;;;;;;;;;;:26;1472:8;1455:26;;;;;;;;;;;:30;;;;;;;;;;;;:::i;:::-;;1206:286;;;;:::o;4068:168:9:-;4153:12;4184:7;:13;4192:4;4184:13;;;;;;;;;;;:29;4198:8;:14;4207:4;4198:14;;;;;;;;;;;;4184:29;;;;;;;;;;;:35;4214:4;4184:35;;;;;;;;;;;:45;4220:8;4184:45;;;;;;;;;;;;;;;4177:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4068:168;;;;;:::o;2326:366:3:-;2385:22;2441:4;;:11;;2429:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2419:34;;2467:6;2476:1;2467:10;;2463:199;2483:4;;:11;;2479:1;:15;2463:199;;;2516:12;2530:19;2561:4;2553:26;;2580:4;;2585:1;2580:7;;;;;;;;;;;;;43:11:-1;30:25;137:1;131:4;127:12;116:8;100:14;96:29;92:48;72:18;68:73;58:2;;155:1;152;145:12;58:2;188:18;178:8;174:33;162:45;;0:210;29:8;16:22;6:32;;69:4;59:8;55:19;43:31;;93:18;85:6;82:30;79:2;;;125:1;122;115:12;79:2;183:3;175:6;171:16;155:14;151:37;141:8;137:52;134:2;;;202:1;199;192:12;134:2;2553:35:3;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;2515:73:3;;;;2610:7;2602:16;;;;;;2645:6;2632:7;2640:1;2632:10;;;;;;;;;;;;;:19;;;;2463:199;;2496:3;;;;;;;2463:199;;;;2678:7;2671:14;;2326:366;;;;:::o;4742:128:9:-;4796:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;4812:8:9;:14;4821:4;4812:14;;;;;;;;;;;;:16;;;;;;;;;;;;;4858:4;4843:20;;;;;;;;;;4742:128;;:::o;838:108:8:-;896:12;927:6;:12;934:4;927:12;;;;;;;;;;;920:19;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;838:108;;;:::o;1023:133:12:-;1076:9;1087;1116:7;:13;1124:4;1116:13;;;;;;;;;;;:15;;;1133:7;:13;1141:4;1133:13;;;;;;;;;;;:15;;;1108:41;;;;1023:133;;;:::o;681:132:7:-;743:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;759:47:7;767:4;261:2;788:17;803:1;788:14;:17::i;:::-;759:7;:47::i;:::-;681:132;;;:::o;858:226:10:-;955:4;371:18:5;384:4;371:12;:18::i;:::-;363:27;;;;;;1003:11:10;971:10;:16;982:4;971:16;;;;;;;;;;;:29;988:11;971:29;;;;;;;;;;;;;;;;;;:43;;;;;;;;;;;;;;;;;;1052:11;1029:48;;;1046:4;1029:48;1065:11;1029:48;;;;;;;;;;;;;;;858:226;;;;:::o;1498:127:7:-;1561:12;1592:10;:16;1603:4;1592:16;;;;;;;;;;;:26;1609:8;1592:26;;;;;;;;;;;1585:33;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1498:127;;;;:::o;943:80:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;1162:171:12:-;1229:4;148:10;1267:19;;1252:34;;;:11;:34;;;;:74;;;;1290:36;1314:11;1290:23;:36::i;:::-;1252:74;1245:81;;1162:171;;;:::o;2129:191:3:-;2187:4;2203:13;2219:3;;;;;;;;;;;:9;;;2229:4;2219:15;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;2219:15:3;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;2219:15:3;;;;;;;101:4:-1;97:9;90:4;84;80:15;76:31;69:5;65:43;126:6;120:4;113:20;0:138;2219:15:3;;;;;;;;;2203:31;;2260:10;2251:19;;:5;:19;;;:62;;;;2274:14;:20;2289:4;2274:20;;;;;;;;;;;:27;2295:5;2274:27;;;;;;;;;;;;;;;:39;2302:10;2274:39;;;;;;;;;;;;;;;;;;;;;;;;;2251:62;2244:69;;;2129:191;;;:::o;2435:182:16:-;2510:21;;:::i;:::-;2554:4;2543:3;:8;;:15;;;;2585:6;2568:3;:14;;:23;;;;;2601:9;2606:3;2601:4;:9::i;:::-;2435:182;;;;:::o;2788:121::-;2848:4;2886;:9;;;:16;2871:4;:11;;;:31;;2864:38;;2788:121;;;:::o;3890:166::-;3950:12;3981:68;4001:4;:11;;;4014:34;4025:4;:9;;;4036:4;:11;;;4014:10;:34::i;:::-;3981:4;:9;;;:19;;:68;;;;;:::i;:::-;3974:75;;3890:166;;;:::o;4229:172::-;4290:12;4321:73;4341:4;:16;;;4377:4;:16;;;4359:4;:15;;;:34;4321:4;:9;;;:19;;:73;;;;;:::i;:::-;4314:80;;4229:172;;;:::o;4913:176:15:-;4990:4;5028:5;:12;5013:4;:11;:27;:69;;;;;5044:38;5051:4;5057:1;5060:5;5067:1;5070:4;:11;5044:6;:38::i;:::-;5013:69;5006:76;;4913:176;;;;:::o;5057:965:9:-;5275:15;5293:8;:14;5302:4;5293:14;;;;;;;;;;;;5275:32;;5317:16;5346:4;5336:15;;;;;;5317:34;;5361:19;5383:28;5398:6;5406:4;5383;:14;;:28;;;;;:::i;:::-;5361:50;;5425:12;5421:595;;;5510:1;5457:7;:13;5465:4;5457:13;;;;;;;;;;;:22;5471:7;5457:22;;;;;;;;;;;:32;5480:8;5457:32;;;;;;;;;;;:42;5490:8;5457:42;;;;;;;;;;;;;;;:49;;;;;;;;;;;;;;;;:54;5453:136;;5531:16;:22;5548:4;5531:22;;;;;;;;;;;:31;5554:7;5531:31;;;;;;;;;;;:41;5563:8;5531:41;;;;;;;;;;;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5453:136;5609:7;:13;5617:4;5609:13;;;;;;;;;;;:22;5623:7;5609:22;;;;;;;;;;;:32;5632:8;5609:32;;;;;;;;;;;:42;5642:8;5609:42;;;;;;;;;;;;;;;;5602:50;;;;:::i;:::-;5688:4;5671:38;5694:4;5700:8;5671:38;;;;;;;;;;;;;;;;5421:595;;;5797:1;5744:7;:13;5752:4;5744:13;;;;;;;;;;;:22;5758:7;5744:22;;;;;;;;;;;:32;5767:8;5744:32;;;;;;;;;;;:42;5777:8;5744:42;;;;;;;;;;;;;;;:49;;;;;;;;;;;;;;;;:54;5740:136;;;5818:16;:22;5835:4;5818:22;;;;;;;;;;;:31;5841:7;5818:31;;;;;;;;;;;:41;5850:8;5818:41;;;;;;;;;;;;:43;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5740:136;5934:6;5889:7;:13;5897:4;5889:13;;;;;;;;;;;:22;5903:7;5889:22;;;;;;;;;;;:32;5912:8;5889:32;;;;;;;;;;;:42;5922:8;5889:42;;;;;;;;;;;;;;;:51;;;;;;;;;;;;:::i;:::-;;5976:4;5959:46;5982:4;5988:8;5998:6;5959:46;;;;;;;;;;;;;;;;;5421:595;5057:965;;;;;;;;;;:::o;3032:682:16:-;3108:4;:15;;;3094:4;:11;;:29;;;;;3152:4;:9;;;:16;3137:4;:11;;;:31;3133:68;;3184:7;;3133:68;3236:8;3261:34;3272:4;:9;;;3283:4;:11;;;3261:10;:34::i;:::-;3247:4;:11;;;:48;3236:59;;3358:25;3379:3;3358:4;:9;;;:20;;:25;;;;:::i;:::-;3343:4;:12;;:40;;;;;;;;;;;3400:1;3393:8;;;;3424:25;3445:3;3424:4;:9;;;:20;;:25;;;;:::i;:::-;3411:4;:10;;:38;;;;;;;;;;;3466:1;3459:8;;;;3488:25;3509:3;3488:4;:9;;;:20;;:25;;;;:::i;:::-;3477:4;:8;;:36;;;;;;;;;;;3530:1;3523:8;;;;3568:16;3587:25;3608:3;3587:4;:9;;;:20;;:25;;;;:::i;:::-;3568:44;;;;3629:1;3622:8;;;;3659:3;3640:4;:16;;:22;;;;;3696:11;3690:3;:17;3672:4;:15;;:35;;;;;3032:682;;;;:::o;414:204:5:-;476:17;525:2;513:1;:8;:14;505:23;;;;;;598:2;593:3;589:12;583:2;580:1;576:10;570:17;566:36;561:41;;547:65;;;:::o;624:189::-;681:14;721:2;711:13;;;;;;;;;;;;;;;;;;;;;;;;;29:1:-1;21:6;17:14;116:4;104:10;96:6;87:34;147:4;139:6;135:17;125:27;;0:156;711:13:5;;;;707:17;;792:2;787:3;783:12;780:1;776:20;771:2;768:1;764:10;757:40;743:64;;;:::o;951:169:11:-;1018:4;144:10;1056:17;;1041:32;;;:11;:32;;;;:72;;;;1077:36;1101:11;1077:23;:36::i;:::-;1041:72;1034:79;;951:169;;;:::o;535:367:16:-;609:4;625:8;636:6;625:17;;652:215;659:4;652:215;;;692:4;:11;686:3;:17;679:25;;;;718:13;734:19;749:3;734:4;:14;;:19;;;;:::i;:::-;718:35;;;;785:1;774:8;:12;767:19;;;;816:1;804:8;:13;800:57;;;837:5;;;800:57;652:215;;;;889:6;883:3;:12;876:19;;;535:367;;;;:::o;8683:393:15:-;8766:12;8814:4;:11;8807:3;8798:6;:12;:27;;8790:36;;;;;;8837:16;8866:3;8856:14;;;;;;;;;;;;;;;;;;;;;;;;;29:1:-1;21:6;17:14;116:4;104:10;96:6;87:34;147:4;139:6;135:17;125:27;;0:156;8856:14:15;;;;8837:33;;8880:9;8899:8;8958:2;8953:3;8949:12;8941:20;;9000:6;8995:2;8989:4;8985:13;8981:26;8974:33;;9026:22;9033:4;9039:3;9044;9026:6;:22::i;:::-;9066:3;9059:10;;;;;8683:393;;;;;:::o;3277:209::-;3396:4;3448:31;3455:5;3462:11;3475:3;3448:6;:31::i;:::-;3419:25;3426:4;3432:6;3440:3;3419:6;:25::i;:::-;:60;3412:67;;3277:209;;;;;;;:::o;5697:223::-;5769:10;5810:4;:11;5805:1;5799:3;:7;:22;;5791:31;;;;;;5897:6;5890:3;5886:1;5880:4;5876:12;5872:22;5866:29;5862:42;5855:49;;5841:73;;;;:::o;6164:227::-;6236:10;6277:4;:11;6272:1;6266:3;:7;:22;;6258:31;;;;;;6364:10;6357:3;6353:1;6347:4;6343:12;6339:22;6333:29;6329:46;6322:53;;6308:77;;;;:::o;2680:174:10:-;2747:4;204:49;;;;;;;;;;;;;;2770:37;;;:11;:37;;;;:77;;;;2811:36;2835:11;2811:23;:36::i;:::-;2770:77;2763:84;;2680:174;;;:::o;5331:122:15:-;5402:9;5436:4;5441:3;5436:9;;;;;;;;;;;;;;;;5430:16;;5423:23;;5331:122;;;;:::o;7914:549::-;8034:165;8048:2;8041:3;:9;8034:165;;8123:3;8117:10;8111:4;8104:24;8163:2;8155:10;;;;8186:2;8179:9;;;;8059:2;8052:9;;;;8034:165;;;8241:9;8273:1;8266:3;8261:2;:8;8253:3;:17;:21;8241:33;;8342:4;8338:9;8332:3;8326:10;8322:26;8394:4;8387;8381:11;8377:22;8438:7;8428:8;8425:21;8419:4;8412:35;8293:164;;;;;;:::o;306:238::-;387:11;434:4;:11;427:3;418:6;:12;:27;;410:36;;;;;;524:3;515:6;510:2;504:4;500:13;496:26;486:42;479:49;;465:73;;;;;:::o;4876:175:9:-;4943:4;265:10;4981:23;;4966:38;;;:11;:38;;;;:78;;;;5008:36;5032:11;5008:23;:36::i;:::-;4966:78;4959:85;;4876:175;;;:::o;952:177:8:-;1019:4;159:10;1057:25;;1042:40;;;:11;:40;;;;:80;;;;1086:36;1110:11;1086:23;:36::i;:::-;1042:80;1035:87;;952:177;;;:::o;1631:208:7:-;1698:4;144:10;1736:17;;1721:32;;;:11;:32;;;;:71;;;;207:10;1772:20;;1757:35;;;:11;:35;;;;1721:71;:111;;;;1796:36;1820:11;1796:23;:36::i;:::-;1721:111;1714:118;;1631:208;;;:::o;1655:168:6:-;1722:4;142:10;1760:16;;1745:31;;;:11;:31;;;;:71;;;;1780:36;1804:11;1780:23;:36::i;:::-;1745:71;1738:78;;1655:168;;;:::o;114:129:5:-;181:4;97:10;219:17;;204:32;;;:11;:32;;;;197:39;;114:129;;;:::o;520:2174:3:-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;5:130:-1:-;;85:6;72:20;63:29;;97:33;124:5;97:33;;;57:78;;;;;142:134;;226:6;220:13;211:22;;238:33;265:5;238:33;;;205:71;;;;;299:359;;;436:3;429:4;421:6;417:17;413:27;403:2;;454:1;451;444:12;403:2;487:6;474:20;464:30;;514:18;506:6;503:30;500:2;;;546:1;543;536:12;500:2;580:4;572:6;568:17;556:29;;631:3;623:4;615:6;611:17;601:8;597:32;594:41;591:2;;;648:1;645;638:12;591:2;396:262;;;;;;666:124;;743:6;730:20;721:29;;755:30;779:5;755:30;;;715:75;;;;;797:130;;877:6;864:20;855:29;;889:33;916:5;889:33;;;849:78;;;;;934:128;;1013:6;1000:20;991:29;;1025:32;1051:5;1025:32;;;985:77;;;;;1083:335;;;1197:3;1190:4;1182:6;1178:17;1174:27;1164:2;;1215:1;1212;1205:12;1164:2;1248:6;1235:20;1225:30;;1275:18;1267:6;1264:30;1261:2;;;1307:1;1304;1297:12;1261:2;1341:4;1333:6;1329:17;1317:29;;1391:3;1384;1376:6;1372:16;1362:8;1358:31;1355:40;1352:2;;;1408:1;1405;1398:12;1352:2;1157:261;;;;;;1427:440;;1528:3;1521:4;1513:6;1509:17;1505:27;1495:2;;1546:1;1543;1536:12;1495:2;1583:6;1570:20;1605:64;1620:48;1661:6;1620:48;;;1605:64;;;1596:73;;1689:6;1682:5;1675:21;1725:4;1717:6;1713:17;1758:4;1751:5;1747:16;1793:3;1784:6;1779:3;1775:16;1772:25;1769:2;;;1810:1;1807;1800:12;1769:2;1820:41;1854:6;1849:3;1844;1820:41;;;1488:379;;;;;;;;1890:336;;;2005:3;1998:4;1990:6;1986:17;1982:27;1972:2;;2023:1;2020;2013:12;1972:2;2056:6;2043:20;2033:30;;2083:18;2075:6;2072:30;2069:2;;;2115:1;2112;2105:12;2069:2;2149:4;2141:6;2137:17;2125:29;;2199:3;2192;2184:6;2180:16;2170:8;2166:31;2163:40;2160:2;;;2216:1;2213;2206:12;2160:2;1965:261;;;;;;2234:128;;2313:6;2300:20;2291:29;;2325:32;2351:5;2325:32;;;2285:77;;;;;2369:130;;2449:6;2436:20;2427:29;;2461:33;2488:5;2461:33;;;2421:78;;;;;2506:263;;2621:2;2609:9;2600:7;2596:23;2592:32;2589:2;;;2637:1;2634;2627:12;2589:2;2672:1;2689:64;2745:7;2736:6;2725:9;2721:22;2689:64;;;2679:74;;2651:108;2583:186;;;;;2776:411;;;2922:2;2910:9;2901:7;2897:23;2893:32;2890:2;;;2938:1;2935;2928:12;2890:2;3001:1;2990:9;2986:17;2973:31;3024:18;3016:6;3013:30;3010:2;;;3056:1;3053;3046:12;3010:2;3084:87;3163:7;3154:6;3143:9;3139:22;3084:87;;;3074:97;;;;2952:225;2884:303;;;;;;3194:241;;3298:2;3286:9;3277:7;3273:23;3269:32;3266:2;;;3314:1;3311;3304:12;3266:2;3349:1;3366:53;3411:7;3402:6;3391:9;3387:22;3366:53;;;3356:63;;3328:97;3260:175;;;;;3442:366;;;3563:2;3551:9;3542:7;3538:23;3534:32;3531:2;;;3579:1;3576;3569:12;3531:2;3614:1;3631:53;3676:7;3667:6;3656:9;3652:22;3631:53;;;3621:63;;3593:97;3721:2;3739:53;3784:7;3775:6;3764:9;3760:22;3739:53;;;3729:63;;3700:98;3525:283;;;;;;3815:491;;;;3953:2;3941:9;3932:7;3928:23;3924:32;3921:2;;;3969:1;3966;3959:12;3921:2;4004:1;4021:53;4066:7;4057:6;4046:9;4042:22;4021:53;;;4011:63;;3983:97;4111:2;4129:53;4174:7;4165:6;4154:9;4150:22;4129:53;;;4119:63;;4090:98;4219:2;4237:53;4282:7;4273:6;4262:9;4258:22;4237:53;;;4227:63;;4198:98;3915:391;;;;;;4313:485;;;;4448:2;4436:9;4427:7;4423:23;4419:32;4416:2;;;4464:1;4461;4454:12;4416:2;4499:1;4516:53;4561:7;4552:6;4541:9;4537:22;4516:53;;;4506:63;;4478:97;4606:2;4624:53;4669:7;4660:6;4649:9;4645:22;4624:53;;;4614:63;;4585:98;4714:2;4732:50;4774:7;4765:6;4754:9;4750:22;4732:50;;;4722:60;;4693:95;4410:388;;;;;;4805:366;;;4926:2;4914:9;4905:7;4901:23;4897:32;4894:2;;;4942:1;4939;4932:12;4894:2;4977:1;4994:53;5039:7;5030:6;5019:9;5015:22;4994:53;;;4984:63;;4956:97;5084:2;5102:53;5147:7;5138:6;5127:9;5123:22;5102:53;;;5092:63;;5063:98;4888:283;;;;;;5178:491;;;;5316:2;5304:9;5295:7;5291:23;5287:32;5284:2;;;5332:1;5329;5322:12;5284:2;5367:1;5384:53;5429:7;5420:6;5409:9;5405:22;5384:53;;;5374:63;;5346:97;5474:2;5492:53;5537:7;5528:6;5517:9;5513:22;5492:53;;;5482:63;;5453:98;5582:2;5600:53;5645:7;5636:6;5625:9;5621:22;5600:53;;;5590:63;;5561:98;5278:391;;;;;;5676:489;;;;5813:2;5801:9;5792:7;5788:23;5784:32;5781:2;;;5829:1;5826;5819:12;5781:2;5864:1;5881:53;5926:7;5917:6;5906:9;5902:22;5881:53;;;5871:63;;5843:97;5971:2;5989:53;6034:7;6025:6;6014:9;6010:22;5989:53;;;5979:63;;5950:98;6079:2;6097:52;6141:7;6132:6;6121:9;6117:22;6097:52;;;6087:62;;6058:97;5775:390;;;;;;6172:364;;;6292:2;6280:9;6271:7;6267:23;6263:32;6260:2;;;6308:1;6305;6298:12;6260:2;6343:1;6360:53;6405:7;6396:6;6385:9;6381:22;6360:53;;;6350:63;;6322:97;6450:2;6468:52;6512:7;6503:6;6492:9;6488:22;6468:52;;;6458:62;;6429:97;6254:282;;;;;;6543:489;;;;6680:2;6668:9;6659:7;6655:23;6651:32;6648:2;;;6696:1;6693;6686:12;6648:2;6731:1;6748:53;6793:7;6784:6;6773:9;6769:22;6748:53;;;6738:63;;6710:97;6838:2;6856:52;6900:7;6891:6;6880:9;6876:22;6856:52;;;6846:62;;6817:97;6945:2;6963:53;7008:7;6999:6;6988:9;6984:22;6963:53;;;6953:63;;6924:98;6642:390;;;;;;7039:490;;;;7179:2;7167:9;7158:7;7154:23;7150:32;7147:2;;;7195:1;7192;7185:12;7147:2;7230:1;7247:53;7292:7;7283:6;7272:9;7268:22;7247:53;;;7237:63;;7209:97;7365:2;7354:9;7350:18;7337:32;7389:18;7381:6;7378:30;7375:2;;;7421:1;7418;7411:12;7375:2;7449:64;7505:7;7496:6;7485:9;7481:22;7449:64;;;7439:74;;;;7316:203;7141:388;;;;;;7536:492;;;;7677:2;7665:9;7656:7;7652:23;7648:32;7645:2;;;7693:1;7690;7683:12;7645:2;7728:1;7745:53;7790:7;7781:6;7770:9;7766:22;7745:53;;;7735:63;;7707:97;7863:2;7852:9;7848:18;7835:32;7887:18;7879:6;7876:30;7873:2;;;7919:1;7916;7909:12;7873:2;7947:65;8004:7;7995:6;7984:9;7980:22;7947:65;;;7937:75;;;;7814:204;7639:389;;;;;;8035:743;;;;;;8213:2;8201:9;8192:7;8188:23;8184:32;8181:2;;;8229:1;8226;8219:12;8181:2;8264:1;8281:53;8326:7;8317:6;8306:9;8302:22;8281:53;;;8271:63;;8243:97;8399:2;8388:9;8384:18;8371:32;8423:18;8415:6;8412:30;8409:2;;;8455:1;8452;8445:12;8409:2;8483:65;8540:7;8531:6;8520:9;8516:22;8483:65;;;8473:75;;;;8350:204;8613:2;8602:9;8598:18;8585:32;8637:18;8629:6;8626:30;8623:2;;;8669:1;8666;8659:12;8623:2;8697:65;8754:7;8745:6;8734:9;8730:22;8697:65;;;8687:75;;;;8564:204;8175:603;;;;;;;;;8785:366;;;8906:2;8894:9;8885:7;8881:23;8877:32;8874:2;;;8922:1;8919;8912:12;8874:2;8957:1;8974:53;9019:7;9010:6;8999:9;8995:22;8974:53;;;8964:63;;8936:97;9064:2;9082:53;9127:7;9118:6;9107:9;9103:22;9082:53;;;9072:63;;9043:98;8868:283;;;;;;9158:615;;;;;9315:2;9303:9;9294:7;9290:23;9286:32;9283:2;;;9331:1;9328;9321:12;9283:2;9366:1;9383:53;9428:7;9419:6;9408:9;9404:22;9383:53;;;9373:63;;9345:97;9473:2;9491:53;9536:7;9527:6;9516:9;9512:22;9491:53;;;9481:63;;9452:98;9609:2;9598:9;9594:18;9581:32;9633:18;9625:6;9622:30;9619:2;;;9665:1;9662;9655:12;9619:2;9693:64;9749:7;9740:6;9729:9;9725:22;9693:64;;;9683:74;;;;9560:203;9277:496;;;;;;;;9780:595;;;;9927:2;9915:9;9906:7;9902:23;9898:32;9895:2;;;9943:1;9940;9933:12;9895:2;9978:1;9995:53;10040:7;10031:6;10020:9;10016:22;9995:53;;;9985:63;;9957:97;10085:2;10103:53;10148:7;10139:6;10128:9;10124:22;10103:53;;;10093:63;;10064:98;10221:2;10210:9;10206:18;10193:32;10245:18;10237:6;10234:30;10231:2;;;10277:1;10274;10267:12;10231:2;10297:62;10351:7;10342:6;10331:9;10327:22;10297:62;;;10287:72;;10172:193;9889:486;;;;;;10382:239;;10485:2;10473:9;10464:7;10460:23;10456:32;10453:2;;;10501:1;10498;10491:12;10453:2;10536:1;10553:52;10597:7;10588:6;10577:9;10573:22;10553:52;;;10543:62;;10515:96;10447:174;;;;;10629:177;;10740:60;10796:3;10788:6;10740:60;;;10726:74;;10719:87;;;;;10814:142;10905:45;10944:5;10905:45;;;10900:3;10893:58;10887:69;;;10963:137;11062:32;11088:5;11062:32;;;11057:3;11050:45;11044:56;;;11107:113;11190:24;11208:5;11190:24;;;11185:3;11178:37;11172:48;;;11254:888;;11409:59;11462:5;11409:59;;;11481:91;11565:6;11560:3;11481:91;;;11474:98;;11595:3;11637:4;11629:6;11625:17;11620:3;11616:27;11664:61;11719:5;11664:61;;;11745:7;11773:1;11758:345;11783:6;11780:1;11777:13;11758:345;;;11845:9;11839:4;11835:20;11830:3;11823:33;11890:6;11884:13;11912:74;11981:4;11966:13;11912:74;;;11904:82;;12003:65;12061:6;12003:65;;;11993:75;;12091:4;12086:3;12082:14;12075:21;;11815:288;11805:1;11802;11798:9;11793:14;;11758:345;;;11762:14;12116:4;12109:11;;12133:3;12126:10;;11388:754;;;;;;;;;;12150:104;12227:21;12242:5;12227:21;;;12222:3;12215:34;12209:45;;;12261:113;12344:24;12362:5;12344:24;;;12339:3;12332:37;12326:48;;;12381:110;12462:23;12479:5;12462:23;;;12457:3;12450:36;12444:47;;;12521:297;;12635:70;12698:6;12693:3;12635:70;;;12628:77;;12717:43;12753:6;12748:3;12741:5;12717:43;;;12782:29;12804:6;12782:29;;;12777:3;12773:39;12766:46;;12621:197;;;;;;12849:306;;12977:88;13058:6;13053:3;12977:88;;;12970:95;;13077:43;13113:6;13108:3;13101:5;13077:43;;;13142:6;13137:3;13133:16;13126:23;;12963:192;;;;;;13163:343;;13273:38;13305:5;13273:38;;;13323:70;13386:6;13381:3;13323:70;;;13316:77;;13398:52;13443:6;13438:3;13431:4;13424:5;13420:16;13398:52;;;13471:29;13493:6;13471:29;;;13466:3;13462:39;13455:46;;13253:253;;;;;;13513:356;;13641:38;13673:5;13641:38;;;13691:88;13772:6;13767:3;13691:88;;;13684:95;;13784:52;13829:6;13824:3;13817:4;13810:5;13806:16;13784:52;;;13857:6;13852:3;13848:16;13841:23;;13621:248;;;;;;13876:315;;13972:34;14000:5;13972:34;;;14018:60;14071:6;14066:3;14018:60;;;14011:67;;14083:52;14128:6;14123:3;14116:4;14109:5;14105:16;14083:52;;;14156:29;14178:6;14156:29;;;14151:3;14147:39;14140:46;;13952:239;;;;;;14223:300;;14339:71;14403:6;14398:3;14339:71;;;14332:78;;14422:43;14458:6;14453:3;14446:5;14422:43;;;14487:29;14509:6;14487:29;;;14482:3;14478:39;14471:46;;14325:198;;;;;;14556:313;;14690:89;14772:6;14767:3;14690:89;;;14683:96;;14791:43;14827:6;14822:3;14815:5;14791:43;;;14856:6;14851:3;14847:16;14840:23;;14676:193;;;;;;14877:347;;14989:39;15022:5;14989:39;;;15040:71;15104:6;15099:3;15040:71;;;15033:78;;15116:52;15161:6;15156:3;15149:4;15142:5;15138:16;15116:52;;;15189:29;15211:6;15189:29;;;15184:3;15180:39;15173:46;;14969:255;;;;;;15232:501;;15410:85;15492:2;15487:3;15410:85;;;15403:92;;15528:66;15524:1;15519:3;15515:11;15508:87;15629:66;15624:2;15619:3;15615:12;15608:88;15724:2;15719:3;15715:12;15708:19;;15396:337;;;;15741:110;15822:23;15839:5;15822:23;;;15817:3;15810:36;15804:47;;;15858:113;15941:24;15959:5;15941:24;;;15936:3;15929:37;15923:48;;;15978:274;;16128:99;16223:3;16214:6;16206;16128:99;;;16121:106;;16244:3;16237:10;;16109:143;;;;;;16259:262;;16403:93;16492:3;16483:6;16403:93;;;16396:100;;16513:3;16506:10;;16384:137;;;;;16528:286;;16684:105;16785:3;16776:6;16768;16684:105;;;16677:112;;16806:3;16799:10;;16665:149;;;;;;16821:372;;17020:148;17164:3;17020:148;;;17013:155;;17185:3;17178:10;;17001:192;;;;17200:213;;17318:2;17307:9;17303:18;17295:26;;17332:71;17400:1;17389:9;17385:17;17376:6;17332:71;;;17289:124;;;;;17420:229;;17546:2;17535:9;17531:18;17523:26;;17560:79;17636:1;17625:9;17621:17;17612:6;17560:79;;;17517:132;;;;;17656:245;;17790:2;17779:9;17775:18;17767:26;;17804:87;17888:1;17877:9;17873:17;17864:6;17804:87;;;17761:140;;;;;17908:381;;18086:2;18075:9;18071:18;18063:26;;18136:9;18130:4;18126:20;18122:1;18111:9;18107:17;18100:47;18161:118;18274:4;18265:6;18161:118;;;18153:126;;18057:232;;;;;18296:201;;18408:2;18397:9;18393:18;18385:26;;18422:65;18484:1;18473:9;18469:17;18460:6;18422:65;;;18379:118;;;;;18504:213;;18622:2;18611:9;18607:18;18599:26;;18636:71;18704:1;18693:9;18689:17;18680:6;18636:71;;;18593:124;;;;;18724:324;;18870:2;18859:9;18855:18;18847:26;;18884:71;18952:1;18941:9;18937:17;18928:6;18884:71;;;18966:72;19034:2;19023:9;19019:18;19010:6;18966:72;;;18841:207;;;;;;19055:209;;19171:2;19160:9;19156:18;19148:26;;19185:69;19251:1;19240:9;19236:17;19227:6;19185:69;;;19142:122;;;;;19271:317;;19417:2;19406:9;19402:18;19394:26;;19467:9;19461:4;19457:20;19453:1;19442:9;19438:17;19431:47;19492:86;19573:4;19564:6;19556;19492:86;;;19484:94;;19388:200;;;;;;19595:297;;19731:2;19720:9;19716:18;19708:26;;19781:9;19775:4;19771:20;19767:1;19756:9;19752:17;19745:47;19806:76;19877:4;19868:6;19806:76;;;19798:84;;19702:190;;;;;19899:404;;20061:2;20050:9;20046:18;20038:26;;20111:9;20105:4;20101:20;20097:1;20086:9;20082:17;20075:47;20136:76;20207:4;20198:6;20136:76;;;20128:84;;20223:70;20289:2;20278:9;20274:18;20265:6;20223:70;;;20032:271;;;;;;20310:599;;20518:2;20507:9;20503:18;20495:26;;20568:9;20562:4;20558:20;20554:1;20543:9;20539:17;20532:47;20593:76;20664:4;20655:6;20593:76;;;20585:84;;20680:70;20746:2;20735:9;20731:18;20722:6;20680:70;;;20798:9;20792:4;20788:20;20783:2;20772:9;20768:18;20761:48;20823:76;20894:4;20885:6;20823:76;;;20815:84;;20489:420;;;;;;;20916:321;;21064:2;21053:9;21049:18;21041:26;;21114:9;21108:4;21104:20;21100:1;21089:9;21085:17;21078:47;21139:88;21222:4;21213:6;21205;21139:88;;;21131:96;;21035:202;;;;;;21244:301;;21382:2;21371:9;21367:18;21359:26;;21432:9;21426:4;21422:20;21418:1;21407:9;21403:17;21396:47;21457:78;21530:4;21521:6;21457:78;;;21449:86;;21353:192;;;;;21552:408;;21716:2;21705:9;21701:18;21693:26;;21730:71;21798:1;21787:9;21783:17;21774:6;21730:71;;;21849:9;21843:4;21839:20;21834:2;21823:9;21819:18;21812:48;21874:76;21945:4;21936:6;21874:76;;;21866:84;;21687:273;;;;;;21967:256;;22029:2;22023:9;22013:19;;22067:4;22059:6;22055:17;22166:6;22154:10;22151:22;22130:18;22118:10;22115:34;22112:62;22109:2;;;22187:1;22184;22177:12;22109:2;22207:10;22203:2;22196:22;22007:216;;;;;22230:258;;22373:18;22365:6;22362:30;22359:2;;;22405:1;22402;22395:12;22359:2;22449:4;22445:9;22438:4;22430:6;22426:17;22422:33;22414:41;;22478:4;22472;22468:15;22460:23;;22296:192;;;;22498:128;;22613:4;22605:6;22601:17;22590:28;;22581:45;;;;22636:112;;22737:5;22731:12;22721:22;;22715:33;;;;22755:87;;22831:5;22825:12;22815:22;;22809:33;;;;22849:91;;22929:5;22923:12;22913:22;;22907:33;;;;22947:92;;23028:5;23022:12;23012:22;;23006:33;;;;23048:129;;23165:4;23157:6;23153:17;23142:28;;23134:43;;;;23187:183;;23322:6;23317:3;23310:19;23359:4;23354:3;23350:14;23335:29;;23303:67;;;;;23379:152;;23483:6;23478:3;23471:19;23520:4;23515:3;23511:14;23496:29;;23464:67;;;;;23540:162;;23654:6;23649:3;23642:19;23691:4;23686:3;23682:14;23667:29;;23635:67;;;;;23711:144;;23846:3;23831:18;;23824:31;;;;;23864:163;;23979:6;23974:3;23967:19;24016:4;24011:3;24007:14;23992:29;;23960:67;;;;;24036:145;;24172:3;24157:18;;24150:31;;;;;24189:91;;24251:24;24269:5;24251:24;;;24240:35;;24234:46;;;;24287:99;;24357:24;24375:5;24357:24;;;24346:35;;24340:46;;;;24393:85;;24466:5;24459:13;24452:21;24441:32;;24435:43;;;;24485:72;;24547:5;24536:16;;24530:27;;;;24564:144;;24636:66;24629:5;24625:78;24614:89;;24608:100;;;;24715:84;;24787:6;24780:5;24776:18;24765:29;;24759:40;;;;24806:121;;24879:42;24872:5;24868:54;24857:65;;24851:76;;;;24934:72;;24996:5;24985:16;;24979:27;;;;25013:129;;25100:37;25131:5;25100:37;;;25087:50;;25081:61;;;;25149:121;;25228:37;25259:5;25228:37;;;25215:50;;25209:61;;;;25277:108;;25356:24;25374:5;25356:24;;;25343:37;;25337:48;;;;25393:145;25474:6;25469:3;25464;25451:30;25530:1;25521:6;25516:3;25512:16;25505:27;25444:94;;;;25547:268;25612:1;25619:101;25633:6;25630:1;25627:13;25619:101;;;25709:1;25704:3;25700:11;25694:18;25690:1;25685:3;25681:11;25674:39;25655:2;25652:1;25648:10;25643:15;;25619:101;;;25735:6;25732:1;25729:13;25726:2;;;25800:1;25791:6;25786:3;25782:16;25775:27;25726:2;25596:219;;;;;25823:97;;25911:2;25907:7;25902:2;25895:5;25891:14;25887:28;25877:38;;25871:49;;;;25928:117;25997:24;26015:5;25997:24;;;25990:5;25987:35;25977:2;;26036:1;26033;26026:12;25977:2;25971:74;;26052:111;26118:21;26133:5;26118:21;;;26111:5;26108:32;26098:2;;26154:1;26151;26144:12;26098:2;26092:71;;26170:117;26239:24;26257:5;26239:24;;;26232:5;26229:35;26219:2;;26278:1;26275;26268:12;26219:2;26213:74;;26294:115;26362:23;26379:5;26362:23;;;26355:5;26352:34;26342:2;;26400:1;26397;26390:12;26342:2;26336:73;;26416:115;26484:23;26501:5;26484:23;;;26477:5;26474:34;26464:2;;26522:1;26519;26512:12;26464:2;26458:73;;26538:117;26607:24;26625:5;26607:24;;;26600:5;26597:35;26587:2;;26646:1;26643;26636:12;26587:2;26581:74;","source":"pragma solidity ^0.5.0;\\npragma experimental ABIEncoderV2;\\n\\nimport \\"@ensdomains/ens/contracts/ENS.sol\\";\\nimport \\"./profiles/ABIResolver.sol\\";\\nimport \\"./profiles/AddrResolver.sol\\";\\nimport \\"./profiles/ContentHashResolver.sol\\";\\nimport \\"./profiles/DNSResolver.sol\\";\\nimport \\"./profiles/InterfaceResolver.sol\\";\\nimport \\"./profiles/NameResolver.sol\\";\\nimport \\"./profiles/PubkeyResolver.sol\\";\\nimport \\"./profiles/TextResolver.sol\\";\\n\\n/**\\n * A simple resolver anyone can use; only allows the owner of a node to set its\\n * address.\\n */\\ncontract PublicResolver is ABIResolver, AddrResolver, ContentHashResolver, DNSResolver, InterfaceResolver, NameResolver, PubkeyResolver, TextResolver {\\n    ENS ens;\\n\\n    /**\\n     * A mapping of authorisations. An address that is authorised for a name\\n     * may make any changes to the name that the owner could, but may not update\\n     * the set of authorisations.\\n     * (node, owner, caller) => isAuthorised\\n     */\\n    mapping(bytes32=>mapping(address=>mapping(address=>bool))) public authorisations;\\n\\n    event AuthorisationChanged(bytes32 indexed node, address indexed owner, address indexed target, bool isAuthorised);\\n\\n    constructor(ENS _ens) public {\\n        ens = _ens;\\n    }\\n\\n    /**\\n     * @dev Sets or clears an authorisation.\\n     * Authorisations are specific to the caller. Any account can set an authorisation\\n     * for any name, but the authorisation that is checked will be that of the\\n     * current owner of a name. Thus, transferring a name effectively clears any\\n     * existing authorisations, and new authorisations can be set in advance of\\n     * an ownership transfer if desired.\\n     *\\n     * @param node The name to change the authorisation on.\\n     * @param target The address that is to be authorised or deauthorised.\\n     * @param isAuthorised True if the address should be authorised, or false if it should be deauthorised.\\n     */\\n    function setAuthorisation(bytes32 node, address target, bool isAuthorised) external {\\n        authorisations[node][msg.sender][target] = isAuthorised;\\n        emit AuthorisationChanged(node, msg.sender, target, isAuthorised);\\n    }\\n\\n    function isAuthorised(bytes32 node) internal view returns(bool) {\\n        address owner = ens.owner(node);\\n        return owner == msg.sender || authorisations[node][owner][msg.sender];\\n    }\\n\\n    function multicall(bytes[] calldata data) external returns(bytes[] memory results) {\\n        results = new bytes[](data.length);\\n        for(uint i = 0; i < data.length; i++) {\\n            (bool success, bytes memory result) = address(this).delegatecall(data[i]);\\n            require(success);\\n            results[i] = result;\\n        }\\n        return results;\\n    }\\n}\\n","sourcePath":"/home/user/Dropbox/projects/resolvers/contracts/PublicResolver.sol","ast":{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/PublicResolver.sol","exportedSymbols":{"PublicResolver":[353]},"id":354,"nodeType":"SourceUnit","nodes":[{"id":181,"literals":["solidity","^","0.5",".0"],"nodeType":"PragmaDirective","src":"0:23:3"},{"id":182,"literals":["experimental","ABIEncoderV2"],"nodeType":"PragmaDirective","src":"24:33:3"},{"absolutePath":"@ensdomains/ens/contracts/ENS.sol","file":"@ensdomains/ens/contracts/ENS.sol","id":183,"nodeType":"ImportDirective","scope":354,"sourceUnit":3783,"src":"59:43:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/ABIResolver.sol","file":"./profiles/ABIResolver.sol","id":184,"nodeType":"ImportDirective","scope":354,"sourceUnit":799,"src":"103:36:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/AddrResolver.sol","file":"./profiles/AddrResolver.sol","id":185,"nodeType":"ImportDirective","scope":354,"sourceUnit":958,"src":"140:37:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/ContentHashResolver.sol","file":"./profiles/ContentHashResolver.sol","id":186,"nodeType":"ImportDirective","scope":354,"sourceUnit":1028,"src":"178:44:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/DNSResolver.sol","file":"./profiles/DNSResolver.sol","id":187,"nodeType":"ImportDirective","scope":354,"sourceUnit":1459,"src":"223:36:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/InterfaceResolver.sol","file":"./profiles/InterfaceResolver.sol","id":188,"nodeType":"ImportDirective","scope":354,"sourceUnit":1646,"src":"260:42:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/NameResolver.sol","file":"./profiles/NameResolver.sol","id":189,"nodeType":"ImportDirective","scope":354,"sourceUnit":1716,"src":"303:37:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/PubkeyResolver.sol","file":"./profiles/PubkeyResolver.sol","id":190,"nodeType":"ImportDirective","scope":354,"sourceUnit":1807,"src":"341:39:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/TextResolver.sol","file":"./profiles/TextResolver.sol","id":191,"nodeType":"ImportDirective","scope":354,"sourceUnit":1890,"src":"381:37:3","symbolAliases":[],"unitAlias":""},{"baseContracts":[{"arguments":null,"baseName":{"contractScope":null,"id":192,"name":"ABIResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":798,"src":"547:11:3","typeDescriptions":{"typeIdentifier":"t_contract$_ABIResolver_$798","typeString":"contract ABIResolver"}},"id":193,"nodeType":"InheritanceSpecifier","src":"547:11:3"},{"arguments":null,"baseName":{"contractScope":null,"id":194,"name":"AddrResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":957,"src":"560:12:3","typeDescriptions":{"typeIdentifier":"t_contract$_AddrResolver_$957","typeString":"contract AddrResolver"}},"id":195,"nodeType":"InheritanceSpecifier","src":"560:12:3"},{"arguments":null,"baseName":{"contractScope":null,"id":196,"name":"ContentHashResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1027,"src":"574:19:3","typeDescriptions":{"typeIdentifier":"t_contract$_ContentHashResolver_$1027","typeString":"contract ContentHashResolver"}},"id":197,"nodeType":"InheritanceSpecifier","src":"574:19:3"},{"arguments":null,"baseName":{"contractScope":null,"id":198,"name":"DNSResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1458,"src":"595:11:3","typeDescriptions":{"typeIdentifier":"t_contract$_DNSResolver_$1458","typeString":"contract DNSResolver"}},"id":199,"nodeType":"InheritanceSpecifier","src":"595:11:3"},{"arguments":null,"baseName":{"contractScope":null,"id":200,"name":"InterfaceResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1645,"src":"608:17:3","typeDescriptions":{"typeIdentifier":"t_contract$_InterfaceResolver_$1645","typeString":"contract InterfaceResolver"}},"id":201,"nodeType":"InheritanceSpecifier","src":"608:17:3"},{"arguments":null,"baseName":{"contractScope":null,"id":202,"name":"NameResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1715,"src":"627:12:3","typeDescriptions":{"typeIdentifier":"t_contract$_NameResolver_$1715","typeString":"contract NameResolver"}},"id":203,"nodeType":"InheritanceSpecifier","src":"627:12:3"},{"arguments":null,"baseName":{"contractScope":null,"id":204,"name":"PubkeyResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1806,"src":"641:14:3","typeDescriptions":{"typeIdentifier":"t_contract$_PubkeyResolver_$1806","typeString":"contract PubkeyResolver"}},"id":205,"nodeType":"InheritanceSpecifier","src":"641:14:3"},{"arguments":null,"baseName":{"contractScope":null,"id":206,"name":"TextResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1889,"src":"657:12:3","typeDescriptions":{"typeIdentifier":"t_contract$_TextResolver_$1889","typeString":"contract TextResolver"}},"id":207,"nodeType":"InheritanceSpecifier","src":"657:12:3"}],"contractDependencies":[662,798,957,1027,1458,1645,1715,1806,1889],"contractKind":"contract","documentation":"A simple resolver anyone can use; only allows the owner of a node to set its\\naddress.","fullyImplemented":true,"id":353,"linearizedBaseContracts":[353,1889,1806,1715,1645,1458,1027,957,798,662],"name":"PublicResolver","nodeType":"ContractDefinition","nodes":[{"constant":false,"id":209,"name":"ens","nodeType":"VariableDeclaration","scope":353,"src":"676:7:3","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"},"typeName":{"contractScope":null,"id":208,"name":"ENS","nodeType":"UserDefinedTypeName","referencedDeclaration":3782,"src":"676:3:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"value":null,"visibility":"internal"},{"constant":false,"id":217,"name":"authorisations","nodeType":"VariableDeclaration","scope":353,"src":"943:80:3","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$_$","typeString":"mapping(bytes32 => mapping(address => mapping(address => bool)))"},"typeName":{"id":216,"keyType":{"id":210,"name":"bytes32","nodeType":"ElementaryTypeName","src":"951:7:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"943:58:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$_$","typeString":"mapping(bytes32 => mapping(address => mapping(address => bool)))"},"valueType":{"id":215,"keyType":{"id":211,"name":"address","nodeType":"ElementaryTypeName","src":"968:7:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"960:40:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$","typeString":"mapping(address => mapping(address => bool))"},"valueType":{"id":214,"keyType":{"id":212,"name":"address","nodeType":"ElementaryTypeName","src":"985:7:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"977:22:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_bool_$","typeString":"mapping(address => bool)"},"valueType":{"id":213,"name":"bool","nodeType":"ElementaryTypeName","src":"994:4:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}}}},"value":null,"visibility":"public"},{"anonymous":false,"documentation":null,"id":227,"name":"AuthorisationChanged","nodeType":"EventDefinition","parameters":{"id":226,"nodeType":"ParameterList","parameters":[{"constant":false,"id":219,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":227,"src":"1057:20:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":218,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1057:7:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":221,"indexed":true,"name":"owner","nodeType":"VariableDeclaration","scope":227,"src":"1079:21:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":220,"name":"address","nodeType":"ElementaryTypeName","src":"1079:7:3","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"},{"constant":false,"id":223,"indexed":true,"name":"target","nodeType":"VariableDeclaration","scope":227,"src":"1102:22:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":222,"name":"address","nodeType":"ElementaryTypeName","src":"1102:7:3","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"},{"constant":false,"id":225,"indexed":false,"name":"isAuthorised","nodeType":"VariableDeclaration","scope":227,"src":"1126:17:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":224,"name":"bool","nodeType":"ElementaryTypeName","src":"1126:4:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"1056:88:3"},"src":"1030:115:3"},{"body":{"id":236,"nodeType":"Block","src":"1180:27:3","statements":[{"expression":{"argumentTypes":null,"id":234,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":232,"name":"ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":209,"src":"1190:3:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":233,"name":"_ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":229,"src":"1196:4:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"src":"1190:10:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"id":235,"nodeType":"ExpressionStatement","src":"1190:10:3"}]},"documentation":null,"id":237,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nodeType":"FunctionDefinition","parameters":{"id":230,"nodeType":"ParameterList","parameters":[{"constant":false,"id":229,"name":"_ens","nodeType":"VariableDeclaration","scope":237,"src":"1163:8:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"},"typeName":{"contractScope":null,"id":228,"name":"ENS","nodeType":"UserDefinedTypeName","referencedDeclaration":3782,"src":"1163:3:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"value":null,"visibility":"internal"}],"src":"1162:10:3"},"returnParameters":{"id":231,"nodeType":"ParameterList","parameters":[],"src":"1180:0:3"},"scope":353,"src":"1151:56:3","stateMutability":"nonpayable","superFunction":null,"visibility":"public"},{"body":{"id":265,"nodeType":"Block","src":"1976:147:3","statements":[{"expression":{"argumentTypes":null,"id":255,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":246,"name":"authorisations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":217,"src":"1986:14:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$_$","typeString":"mapping(bytes32 => mapping(address => mapping(address => bool)))"}},"id":251,"indexExpression":{"argumentTypes":null,"id":247,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":239,"src":"2001:4:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"1986:20:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$","typeString":"mapping(address => mapping(address => bool))"}},"id":252,"indexExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":248,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"2007:3:3","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":249,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2007:10:3","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"1986:32:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_bool_$","typeString":"mapping(address => bool)"}},"id":253,"indexExpression":{"argumentTypes":null,"id":250,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":241,"src":"2019:6:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"1986:40:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":254,"name":"isAuthorised","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":243,"src":"2029:12:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"1986:55:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":256,"nodeType":"ExpressionStatement","src":"1986:55:3"},{"eventCall":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":258,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":239,"src":"2077:4:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"argumentTypes":null,"expression":{"argumentTypes":null,"id":259,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"2083:3:3","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":260,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2083:10:3","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},{"argumentTypes":null,"id":261,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":241,"src":"2095:6:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"argumentTypes":null,"id":262,"name":"isAuthorised","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":243,"src":"2103:12:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_address_payable","typeString":"address payable"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bool","typeString":"bool"}],"id":257,"name":"AuthorisationChanged","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":227,"src":"2056:20:3","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_bool_$returns$__$","typeString":"function (bytes32,address,address,bool)"}},"id":263,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2056:60:3","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":264,"nodeType":"EmitStatement","src":"2051:65:3"}]},"documentation":"@dev Sets or clears an authorisation.\\nAuthorisations are specific to the caller. Any account can set an authorisation\\nfor any name, but the authorisation that is checked will be that of the\\ncurrent owner of a name. Thus, transferring a name effectively clears any\\nexisting authorisations, and new authorisations can be set in advance of\\nan ownership transfer if desired.\\n     * @param node The name to change the authorisation on.\\n@param target The address that is to be authorised or deauthorised.\\n@param isAuthorised True if the address should be authorised, or false if it should be deauthorised.","id":266,"implemented":true,"kind":"function","modifiers":[],"name":"setAuthorisation","nodeType":"FunctionDefinition","parameters":{"id":244,"nodeType":"ParameterList","parameters":[{"constant":false,"id":239,"name":"node","nodeType":"VariableDeclaration","scope":266,"src":"1918:12:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":238,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1918:7:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":241,"name":"target","nodeType":"VariableDeclaration","scope":266,"src":"1932:14:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":240,"name":"address","nodeType":"ElementaryTypeName","src":"1932:7:3","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"},{"constant":false,"id":243,"name":"isAuthorised","nodeType":"VariableDeclaration","scope":266,"src":"1948:17:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":242,"name":"bool","nodeType":"ElementaryTypeName","src":"1948:4:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"1917:49:3"},"returnParameters":{"id":245,"nodeType":"ParameterList","parameters":[],"src":"1976:0:3"},"scope":353,"src":"1892:231:3","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":{"id":294,"nodeType":"Block","src":"2193:127:3","statements":[{"assignments":[274],"declarations":[{"constant":false,"id":274,"name":"owner","nodeType":"VariableDeclaration","scope":294,"src":"2203:13:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":273,"name":"address","nodeType":"ElementaryTypeName","src":"2203:7:3","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"id":279,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":277,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":268,"src":"2229:4:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"expression":{"argumentTypes":null,"id":275,"name":"ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":209,"src":"2219:3:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"id":276,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"owner","nodeType":"MemberAccess","referencedDeclaration":3767,"src":"2219:9:3","typeDescriptions":{"typeIdentifier":"t_function_external_view$_t_bytes32_$returns$_t_address_$","typeString":"function (bytes32) view external returns (address)"}},"id":278,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2219:15:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"VariableDeclarationStatement","src":"2203:31:3"},{"expression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":292,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":283,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"id":280,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":274,"src":"2251:5:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":281,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"2260:3:3","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":282,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2260:10:3","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"src":"2251:19:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":284,"name":"authorisations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":217,"src":"2274:14:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$_$","typeString":"mapping(bytes32 => mapping(address => mapping(address => bool)))"}},"id":286,"indexExpression":{"argumentTypes":null,"id":285,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":268,"src":"2289:4:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"2274:20:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$","typeString":"mapping(address => mapping(address => bool))"}},"id":288,"indexExpression":{"argumentTypes":null,"id":287,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":274,"src":"2295:5:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"2274:27:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_bool_$","typeString":"mapping(address => bool)"}},"id":291,"indexExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":289,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"2302:3:3","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":290,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2302:10:3","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"2274:39:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"2251:62:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":272,"id":293,"nodeType":"Return","src":"2244:69:3"}]},"documentation":null,"id":295,"implemented":true,"kind":"function","modifiers":[],"name":"isAuthorised","nodeType":"FunctionDefinition","parameters":{"id":269,"nodeType":"ParameterList","parameters":[{"constant":false,"id":268,"name":"node","nodeType":"VariableDeclaration","scope":295,"src":"2151:12:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":267,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2151:7:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"2150:14:3"},"returnParameters":{"id":272,"nodeType":"ParameterList","parameters":[{"constant":false,"id":271,"name":"","nodeType":"VariableDeclaration","scope":295,"src":"2187:4:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":270,"name":"bool","nodeType":"ElementaryTypeName","src":"2187:4:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"2186:6:3"},"scope":353,"src":"2129:191:3","stateMutability":"view","superFunction":617,"visibility":"internal"},{"body":{"id":351,"nodeType":"Block","src":"2409:283:3","statements":[{"expression":{"argumentTypes":null,"id":311,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":304,"name":"results","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":302,"src":"2419:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes memory[] memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"expression":{"argumentTypes":null,"id":308,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":298,"src":"2441:4:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_calldata_$dyn_calldata_ptr","typeString":"bytes calldata[] calldata"}},"id":309,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2441:11:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":307,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"NewExpression","src":"2429:11:3","typeDescriptions":{"typeIdentifier":"t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes_memory_$dyn_memory_$","typeString":"function (uint256) pure returns (bytes memory[] memory)"},"typeName":{"baseType":{"id":305,"name":"bytes","nodeType":"ElementaryTypeName","src":"2433:5:3","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"id":306,"length":null,"nodeType":"ArrayTypeName","src":"2433:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_storage_$dyn_storage_ptr","typeString":"bytes[]"}}},"id":310,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2429:24:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory","typeString":"bytes memory[] memory"}},"src":"2419:34:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes memory[] memory"}},"id":312,"nodeType":"ExpressionStatement","src":"2419:34:3"},{"body":{"id":347,"nodeType":"Block","src":"2501:161:3","statements":[{"assignments":[325,327],"declarations":[{"constant":false,"id":325,"name":"success","nodeType":"VariableDeclaration","scope":347,"src":"2516:12:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":324,"name":"bool","nodeType":"ElementaryTypeName","src":"2516:4:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"},{"constant":false,"id":327,"name":"result","nodeType":"VariableDeclaration","scope":347,"src":"2530:19:3","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":326,"name":"bytes","nodeType":"ElementaryTypeName","src":"2530:5:3","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"id":336,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":332,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":298,"src":"2580:4:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_calldata_$dyn_calldata_ptr","typeString":"bytes calldata[] calldata"}},"id":334,"indexExpression":{"argumentTypes":null,"id":333,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":314,"src":"2585:1:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"2580:7:3","typeDescriptions":{"typeIdentifier":"t_bytes_calldata","typeString":"bytes calldata"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_calldata","typeString":"bytes calldata"}],"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":329,"name":"this","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4185,"src":"2561:4:3","typeDescriptions":{"typeIdentifier":"t_contract$_PublicResolver_$353","typeString":"contract PublicResolver"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_contract$_PublicResolver_$353","typeString":"contract PublicResolver"}],"id":328,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2553:7:3","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":"address"},"id":330,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2553:13:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":331,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"delegatecall","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2553:26:3","typeDescriptions":{"typeIdentifier":"t_function_baredelegatecall_nonpayable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$","typeString":"function (bytes memory) returns (bool,bytes memory)"}},"id":335,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2553:35:3","typeDescriptions":{"typeIdentifier":"t_tuple$_t_bool_$_t_bytes_memory_ptr_$","typeString":"tuple(bool,bytes memory)"}},"nodeType":"VariableDeclarationStatement","src":"2515:73:3"},{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":338,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":325,"src":"2610:7:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":337,"name":"require","nodeType":"Identifier","overloadedDeclarations":[4136,4137],"referencedDeclaration":4136,"src":"2602:7:3","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":339,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2602:16:3","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":340,"nodeType":"ExpressionStatement","src":"2602:16:3"},{"expression":{"argumentTypes":null,"id":345,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":341,"name":"results","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":302,"src":"2632:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes memory[] memory"}},"id":343,"indexExpression":{"argumentTypes":null,"id":342,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":314,"src":"2640:1:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"2632:10:3","typeDescriptions":{"typeIdentifier":"t_bytes_memory","typeString":"bytes memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":344,"name":"result","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":327,"src":"2645:6:3","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"2632:19:3","typeDescriptions":{"typeIdentifier":"t_bytes_memory","typeString":"bytes memory"}},"id":346,"nodeType":"ExpressionStatement","src":"2632:19:3"}]},"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":320,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"id":317,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":314,"src":"2479:1:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":318,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":298,"src":"2483:4:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_calldata_$dyn_calldata_ptr","typeString":"bytes calldata[] calldata"}},"id":319,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2483:11:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2479:15:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":348,"initializationExpression":{"assignments":[314],"declarations":[{"constant":false,"id":314,"name":"i","nodeType":"VariableDeclaration","scope":348,"src":"2467:6:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":313,"name":"uint","nodeType":"ElementaryTypeName","src":"2467:4:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"id":316,"initialValue":{"argumentTypes":null,"hexValue":"30","id":315,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2476:1:3","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"nodeType":"VariableDeclarationStatement","src":"2467:10:3"},"loopExpression":{"expression":{"argumentTypes":null,"id":322,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"++","prefix":false,"src":"2496:3:3","subExpression":{"argumentTypes":null,"id":321,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":314,"src":"2496:1:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":323,"nodeType":"ExpressionStatement","src":"2496:3:3"},"nodeType":"ForStatement","src":"2463:199:3"},{"expression":{"argumentTypes":null,"id":349,"name":"results","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":302,"src":"2678:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes memory[] memory"}},"functionReturnParameters":303,"id":350,"nodeType":"Return","src":"2671:14:3"}]},"documentation":null,"id":352,"implemented":true,"kind":"function","modifiers":[],"name":"multicall","nodeType":"FunctionDefinition","parameters":{"id":299,"nodeType":"ParameterList","parameters":[{"constant":false,"id":298,"name":"data","nodeType":"VariableDeclaration","scope":352,"src":"2345:21:3","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_calldata_$dyn_calldata_ptr","typeString":"bytes[]"},"typeName":{"baseType":{"id":296,"name":"bytes","nodeType":"ElementaryTypeName","src":"2345:5:3","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"id":297,"length":null,"nodeType":"ArrayTypeName","src":"2345:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_storage_$dyn_storage_ptr","typeString":"bytes[]"}},"value":null,"visibility":"internal"}],"src":"2344:23:3"},"returnParameters":{"id":303,"nodeType":"ParameterList","parameters":[{"constant":false,"id":302,"name":"results","nodeType":"VariableDeclaration","scope":352,"src":"2385:22:3","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes[]"},"typeName":{"baseType":{"id":300,"name":"bytes","nodeType":"ElementaryTypeName","src":"2385:5:3","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"id":301,"length":null,"nodeType":"ArrayTypeName","src":"2385:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_storage_$dyn_storage_ptr","typeString":"bytes[]"}},"value":null,"visibility":"internal"}],"src":"2384:24:3"},"scope":353,"src":"2326:366:3","stateMutability":"nonpayable","superFunction":null,"visibility":"external"}],"scope":354,"src":"520:2174:3"}],"src":"0:2695:3"},"legacyAST":{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/PublicResolver.sol","exportedSymbols":{"PublicResolver":[353]},"id":354,"nodeType":"SourceUnit","nodes":[{"id":181,"literals":["solidity","^","0.5",".0"],"nodeType":"PragmaDirective","src":"0:23:3"},{"id":182,"literals":["experimental","ABIEncoderV2"],"nodeType":"PragmaDirective","src":"24:33:3"},{"absolutePath":"@ensdomains/ens/contracts/ENS.sol","file":"@ensdomains/ens/contracts/ENS.sol","id":183,"nodeType":"ImportDirective","scope":354,"sourceUnit":3783,"src":"59:43:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/ABIResolver.sol","file":"./profiles/ABIResolver.sol","id":184,"nodeType":"ImportDirective","scope":354,"sourceUnit":799,"src":"103:36:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/AddrResolver.sol","file":"./profiles/AddrResolver.sol","id":185,"nodeType":"ImportDirective","scope":354,"sourceUnit":958,"src":"140:37:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/ContentHashResolver.sol","file":"./profiles/ContentHashResolver.sol","id":186,"nodeType":"ImportDirective","scope":354,"sourceUnit":1028,"src":"178:44:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/DNSResolver.sol","file":"./profiles/DNSResolver.sol","id":187,"nodeType":"ImportDirective","scope":354,"sourceUnit":1459,"src":"223:36:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/InterfaceResolver.sol","file":"./profiles/InterfaceResolver.sol","id":188,"nodeType":"ImportDirective","scope":354,"sourceUnit":1646,"src":"260:42:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/NameResolver.sol","file":"./profiles/NameResolver.sol","id":189,"nodeType":"ImportDirective","scope":354,"sourceUnit":1716,"src":"303:37:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/PubkeyResolver.sol","file":"./profiles/PubkeyResolver.sol","id":190,"nodeType":"ImportDirective","scope":354,"sourceUnit":1807,"src":"341:39:3","symbolAliases":[],"unitAlias":""},{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/profiles/TextResolver.sol","file":"./profiles/TextResolver.sol","id":191,"nodeType":"ImportDirective","scope":354,"sourceUnit":1890,"src":"381:37:3","symbolAliases":[],"unitAlias":""},{"baseContracts":[{"arguments":null,"baseName":{"contractScope":null,"id":192,"name":"ABIResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":798,"src":"547:11:3","typeDescriptions":{"typeIdentifier":"t_contract$_ABIResolver_$798","typeString":"contract ABIResolver"}},"id":193,"nodeType":"InheritanceSpecifier","src":"547:11:3"},{"arguments":null,"baseName":{"contractScope":null,"id":194,"name":"AddrResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":957,"src":"560:12:3","typeDescriptions":{"typeIdentifier":"t_contract$_AddrResolver_$957","typeString":"contract AddrResolver"}},"id":195,"nodeType":"InheritanceSpecifier","src":"560:12:3"},{"arguments":null,"baseName":{"contractScope":null,"id":196,"name":"ContentHashResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1027,"src":"574:19:3","typeDescriptions":{"typeIdentifier":"t_contract$_ContentHashResolver_$1027","typeString":"contract ContentHashResolver"}},"id":197,"nodeType":"InheritanceSpecifier","src":"574:19:3"},{"arguments":null,"baseName":{"contractScope":null,"id":198,"name":"DNSResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1458,"src":"595:11:3","typeDescriptions":{"typeIdentifier":"t_contract$_DNSResolver_$1458","typeString":"contract DNSResolver"}},"id":199,"nodeType":"InheritanceSpecifier","src":"595:11:3"},{"arguments":null,"baseName":{"contractScope":null,"id":200,"name":"InterfaceResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1645,"src":"608:17:3","typeDescriptions":{"typeIdentifier":"t_contract$_InterfaceResolver_$1645","typeString":"contract InterfaceResolver"}},"id":201,"nodeType":"InheritanceSpecifier","src":"608:17:3"},{"arguments":null,"baseName":{"contractScope":null,"id":202,"name":"NameResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1715,"src":"627:12:3","typeDescriptions":{"typeIdentifier":"t_contract$_NameResolver_$1715","typeString":"contract NameResolver"}},"id":203,"nodeType":"InheritanceSpecifier","src":"627:12:3"},{"arguments":null,"baseName":{"contractScope":null,"id":204,"name":"PubkeyResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1806,"src":"641:14:3","typeDescriptions":{"typeIdentifier":"t_contract$_PubkeyResolver_$1806","typeString":"contract PubkeyResolver"}},"id":205,"nodeType":"InheritanceSpecifier","src":"641:14:3"},{"arguments":null,"baseName":{"contractScope":null,"id":206,"name":"TextResolver","nodeType":"UserDefinedTypeName","referencedDeclaration":1889,"src":"657:12:3","typeDescriptions":{"typeIdentifier":"t_contract$_TextResolver_$1889","typeString":"contract TextResolver"}},"id":207,"nodeType":"InheritanceSpecifier","src":"657:12:3"}],"contractDependencies":[662,798,957,1027,1458,1645,1715,1806,1889],"contractKind":"contract","documentation":"A simple resolver anyone can use; only allows the owner of a node to set its\\naddress.","fullyImplemented":true,"id":353,"linearizedBaseContracts":[353,1889,1806,1715,1645,1458,1027,957,798,662],"name":"PublicResolver","nodeType":"ContractDefinition","nodes":[{"constant":false,"id":209,"name":"ens","nodeType":"VariableDeclaration","scope":353,"src":"676:7:3","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"},"typeName":{"contractScope":null,"id":208,"name":"ENS","nodeType":"UserDefinedTypeName","referencedDeclaration":3782,"src":"676:3:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"value":null,"visibility":"internal"},{"constant":false,"id":217,"name":"authorisations","nodeType":"VariableDeclaration","scope":353,"src":"943:80:3","stateVariable":true,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$_$","typeString":"mapping(bytes32 => mapping(address => mapping(address => bool)))"},"typeName":{"id":216,"keyType":{"id":210,"name":"bytes32","nodeType":"ElementaryTypeName","src":"951:7:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"nodeType":"Mapping","src":"943:58:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$_$","typeString":"mapping(bytes32 => mapping(address => mapping(address => bool)))"},"valueType":{"id":215,"keyType":{"id":211,"name":"address","nodeType":"ElementaryTypeName","src":"968:7:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"960:40:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$","typeString":"mapping(address => mapping(address => bool))"},"valueType":{"id":214,"keyType":{"id":212,"name":"address","nodeType":"ElementaryTypeName","src":"985:7:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"Mapping","src":"977:22:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_bool_$","typeString":"mapping(address => bool)"},"valueType":{"id":213,"name":"bool","nodeType":"ElementaryTypeName","src":"994:4:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}}}},"value":null,"visibility":"public"},{"anonymous":false,"documentation":null,"id":227,"name":"AuthorisationChanged","nodeType":"EventDefinition","parameters":{"id":226,"nodeType":"ParameterList","parameters":[{"constant":false,"id":219,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":227,"src":"1057:20:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":218,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1057:7:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":221,"indexed":true,"name":"owner","nodeType":"VariableDeclaration","scope":227,"src":"1079:21:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":220,"name":"address","nodeType":"ElementaryTypeName","src":"1079:7:3","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"},{"constant":false,"id":223,"indexed":true,"name":"target","nodeType":"VariableDeclaration","scope":227,"src":"1102:22:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":222,"name":"address","nodeType":"ElementaryTypeName","src":"1102:7:3","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"},{"constant":false,"id":225,"indexed":false,"name":"isAuthorised","nodeType":"VariableDeclaration","scope":227,"src":"1126:17:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":224,"name":"bool","nodeType":"ElementaryTypeName","src":"1126:4:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"1056:88:3"},"src":"1030:115:3"},{"body":{"id":236,"nodeType":"Block","src":"1180:27:3","statements":[{"expression":{"argumentTypes":null,"id":234,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":232,"name":"ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":209,"src":"1190:3:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":233,"name":"_ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":229,"src":"1196:4:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"src":"1190:10:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"id":235,"nodeType":"ExpressionStatement","src":"1190:10:3"}]},"documentation":null,"id":237,"implemented":true,"kind":"constructor","modifiers":[],"name":"","nodeType":"FunctionDefinition","parameters":{"id":230,"nodeType":"ParameterList","parameters":[{"constant":false,"id":229,"name":"_ens","nodeType":"VariableDeclaration","scope":237,"src":"1163:8:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"},"typeName":{"contractScope":null,"id":228,"name":"ENS","nodeType":"UserDefinedTypeName","referencedDeclaration":3782,"src":"1163:3:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"value":null,"visibility":"internal"}],"src":"1162:10:3"},"returnParameters":{"id":231,"nodeType":"ParameterList","parameters":[],"src":"1180:0:3"},"scope":353,"src":"1151:56:3","stateMutability":"nonpayable","superFunction":null,"visibility":"public"},{"body":{"id":265,"nodeType":"Block","src":"1976:147:3","statements":[{"expression":{"argumentTypes":null,"id":255,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":246,"name":"authorisations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":217,"src":"1986:14:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$_$","typeString":"mapping(bytes32 => mapping(address => mapping(address => bool)))"}},"id":251,"indexExpression":{"argumentTypes":null,"id":247,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":239,"src":"2001:4:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"1986:20:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$","typeString":"mapping(address => mapping(address => bool))"}},"id":252,"indexExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":248,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"2007:3:3","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":249,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2007:10:3","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"1986:32:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_bool_$","typeString":"mapping(address => bool)"}},"id":253,"indexExpression":{"argumentTypes":null,"id":250,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":241,"src":"2019:6:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"1986:40:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":254,"name":"isAuthorised","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":243,"src":"2029:12:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"1986:55:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":256,"nodeType":"ExpressionStatement","src":"1986:55:3"},{"eventCall":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":258,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":239,"src":"2077:4:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},{"argumentTypes":null,"expression":{"argumentTypes":null,"id":259,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"2083:3:3","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":260,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2083:10:3","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},{"argumentTypes":null,"id":261,"name":"target","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":241,"src":"2095:6:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},{"argumentTypes":null,"id":262,"name":"isAuthorised","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":243,"src":"2103:12:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"},{"typeIdentifier":"t_address_payable","typeString":"address payable"},{"typeIdentifier":"t_address","typeString":"address"},{"typeIdentifier":"t_bool","typeString":"bool"}],"id":257,"name":"AuthorisationChanged","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":227,"src":"2056:20:3","typeDescriptions":{"typeIdentifier":"t_function_event_nonpayable$_t_bytes32_$_t_address_$_t_address_$_t_bool_$returns$__$","typeString":"function (bytes32,address,address,bool)"}},"id":263,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2056:60:3","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":264,"nodeType":"EmitStatement","src":"2051:65:3"}]},"documentation":"@dev Sets or clears an authorisation.\\nAuthorisations are specific to the caller. Any account can set an authorisation\\nfor any name, but the authorisation that is checked will be that of the\\ncurrent owner of a name. Thus, transferring a name effectively clears any\\nexisting authorisations, and new authorisations can be set in advance of\\nan ownership transfer if desired.\\n     * @param node The name to change the authorisation on.\\n@param target The address that is to be authorised or deauthorised.\\n@param isAuthorised True if the address should be authorised, or false if it should be deauthorised.","id":266,"implemented":true,"kind":"function","modifiers":[],"name":"setAuthorisation","nodeType":"FunctionDefinition","parameters":{"id":244,"nodeType":"ParameterList","parameters":[{"constant":false,"id":239,"name":"node","nodeType":"VariableDeclaration","scope":266,"src":"1918:12:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":238,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1918:7:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":241,"name":"target","nodeType":"VariableDeclaration","scope":266,"src":"1932:14:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":240,"name":"address","nodeType":"ElementaryTypeName","src":"1932:7:3","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"},{"constant":false,"id":243,"name":"isAuthorised","nodeType":"VariableDeclaration","scope":266,"src":"1948:17:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":242,"name":"bool","nodeType":"ElementaryTypeName","src":"1948:4:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"1917:49:3"},"returnParameters":{"id":245,"nodeType":"ParameterList","parameters":[],"src":"1976:0:3"},"scope":353,"src":"1892:231:3","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":{"id":294,"nodeType":"Block","src":"2193:127:3","statements":[{"assignments":[274],"declarations":[{"constant":false,"id":274,"name":"owner","nodeType":"VariableDeclaration","scope":294,"src":"2203:13:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":273,"name":"address","nodeType":"ElementaryTypeName","src":"2203:7:3","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"id":279,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":277,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":268,"src":"2229:4:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes32","typeString":"bytes32"}],"expression":{"argumentTypes":null,"id":275,"name":"ens","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":209,"src":"2219:3:3","typeDescriptions":{"typeIdentifier":"t_contract$_ENS_$3782","typeString":"contract ENS"}},"id":276,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"owner","nodeType":"MemberAccess","referencedDeclaration":3767,"src":"2219:9:3","typeDescriptions":{"typeIdentifier":"t_function_external_view$_t_bytes32_$returns$_t_address_$","typeString":"function (bytes32) view external returns (address)"}},"id":278,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2219:15:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"VariableDeclarationStatement","src":"2203:31:3"},{"expression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_bool","typeString":"bool"},"id":292,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_address","typeString":"address"},"id":283,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"id":280,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":274,"src":"2251:5:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"nodeType":"BinaryOperation","operator":"==","rightExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":281,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"2260:3:3","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":282,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2260:10:3","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"src":"2251:19:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"nodeType":"BinaryOperation","operator":"||","rightExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":284,"name":"authorisations","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":217,"src":"2274:14:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_bytes32_$_t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$_$","typeString":"mapping(bytes32 => mapping(address => mapping(address => bool)))"}},"id":286,"indexExpression":{"argumentTypes":null,"id":285,"name":"node","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":268,"src":"2289:4:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"2274:20:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_mapping$_t_address_$_t_bool_$_$","typeString":"mapping(address => mapping(address => bool))"}},"id":288,"indexExpression":{"argumentTypes":null,"id":287,"name":"owner","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":274,"src":"2295:5:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"2274:27:3","typeDescriptions":{"typeIdentifier":"t_mapping$_t_address_$_t_bool_$","typeString":"mapping(address => bool)"}},"id":291,"indexExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":289,"name":"msg","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4133,"src":"2302:3:3","typeDescriptions":{"typeIdentifier":"t_magic_message","typeString":"msg"}},"id":290,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"sender","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2302:10:3","typeDescriptions":{"typeIdentifier":"t_address_payable","typeString":"address payable"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"2274:39:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"src":"2251:62:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"functionReturnParameters":272,"id":293,"nodeType":"Return","src":"2244:69:3"}]},"documentation":null,"id":295,"implemented":true,"kind":"function","modifiers":[],"name":"isAuthorised","nodeType":"FunctionDefinition","parameters":{"id":269,"nodeType":"ParameterList","parameters":[{"constant":false,"id":268,"name":"node","nodeType":"VariableDeclaration","scope":295,"src":"2151:12:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":267,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2151:7:3","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"2150:14:3"},"returnParameters":{"id":272,"nodeType":"ParameterList","parameters":[{"constant":false,"id":271,"name":"","nodeType":"VariableDeclaration","scope":295,"src":"2187:4:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":270,"name":"bool","nodeType":"ElementaryTypeName","src":"2187:4:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"2186:6:3"},"scope":353,"src":"2129:191:3","stateMutability":"view","superFunction":617,"visibility":"internal"},{"body":{"id":351,"nodeType":"Block","src":"2409:283:3","statements":[{"expression":{"argumentTypes":null,"id":311,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"id":304,"name":"results","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":302,"src":"2419:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes memory[] memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"expression":{"argumentTypes":null,"id":308,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":298,"src":"2441:4:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_calldata_$dyn_calldata_ptr","typeString":"bytes calldata[] calldata"}},"id":309,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2441:11:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_uint256","typeString":"uint256"}],"id":307,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"NewExpression","src":"2429:11:3","typeDescriptions":{"typeIdentifier":"t_function_objectcreation_pure$_t_uint256_$returns$_t_array$_t_bytes_memory_$dyn_memory_$","typeString":"function (uint256) pure returns (bytes memory[] memory)"},"typeName":{"baseType":{"id":305,"name":"bytes","nodeType":"ElementaryTypeName","src":"2433:5:3","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"id":306,"length":null,"nodeType":"ArrayTypeName","src":"2433:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_storage_$dyn_storage_ptr","typeString":"bytes[]"}}},"id":310,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2429:24:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory","typeString":"bytes memory[] memory"}},"src":"2419:34:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes memory[] memory"}},"id":312,"nodeType":"ExpressionStatement","src":"2419:34:3"},{"body":{"id":347,"nodeType":"Block","src":"2501:161:3","statements":[{"assignments":[325,327],"declarations":[{"constant":false,"id":325,"name":"success","nodeType":"VariableDeclaration","scope":347,"src":"2516:12:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":324,"name":"bool","nodeType":"ElementaryTypeName","src":"2516:4:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"},{"constant":false,"id":327,"name":"result","nodeType":"VariableDeclaration","scope":347,"src":"2530:19:3","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":326,"name":"bytes","nodeType":"ElementaryTypeName","src":"2530:5:3","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"id":336,"initialValue":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":332,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":298,"src":"2580:4:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_calldata_$dyn_calldata_ptr","typeString":"bytes calldata[] calldata"}},"id":334,"indexExpression":{"argumentTypes":null,"id":333,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":314,"src":"2585:1:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"IndexAccess","src":"2580:7:3","typeDescriptions":{"typeIdentifier":"t_bytes_calldata","typeString":"bytes calldata"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bytes_calldata","typeString":"bytes calldata"}],"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":329,"name":"this","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":4185,"src":"2561:4:3","typeDescriptions":{"typeIdentifier":"t_contract$_PublicResolver_$353","typeString":"contract PublicResolver"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_contract$_PublicResolver_$353","typeString":"contract PublicResolver"}],"id":328,"isConstant":false,"isLValue":false,"isPure":true,"lValueRequested":false,"nodeType":"ElementaryTypeNameExpression","src":"2553:7:3","typeDescriptions":{"typeIdentifier":"t_type$_t_address_$","typeString":"type(address)"},"typeName":"address"},"id":330,"isConstant":false,"isLValue":false,"isPure":false,"kind":"typeConversion","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2553:13:3","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"id":331,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"delegatecall","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2553:26:3","typeDescriptions":{"typeIdentifier":"t_function_baredelegatecall_nonpayable$_t_bytes_memory_ptr_$returns$_t_bool_$_t_bytes_memory_ptr_$","typeString":"function (bytes memory) returns (bool,bytes memory)"}},"id":335,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2553:35:3","typeDescriptions":{"typeIdentifier":"t_tuple$_t_bool_$_t_bytes_memory_ptr_$","typeString":"tuple(bool,bytes memory)"}},"nodeType":"VariableDeclarationStatement","src":"2515:73:3"},{"expression":{"argumentTypes":null,"arguments":[{"argumentTypes":null,"id":338,"name":"success","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":325,"src":"2610:7:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}}],"expression":{"argumentTypes":[{"typeIdentifier":"t_bool","typeString":"bool"}],"id":337,"name":"require","nodeType":"Identifier","overloadedDeclarations":[4136,4137],"referencedDeclaration":4136,"src":"2602:7:3","typeDescriptions":{"typeIdentifier":"t_function_require_pure$_t_bool_$returns$__$","typeString":"function (bool) pure"}},"id":339,"isConstant":false,"isLValue":false,"isPure":false,"kind":"functionCall","lValueRequested":false,"names":[],"nodeType":"FunctionCall","src":"2602:16:3","typeDescriptions":{"typeIdentifier":"t_tuple$__$","typeString":"tuple()"}},"id":340,"nodeType":"ExpressionStatement","src":"2602:16:3"},{"expression":{"argumentTypes":null,"id":345,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftHandSide":{"argumentTypes":null,"baseExpression":{"argumentTypes":null,"id":341,"name":"results","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":302,"src":"2632:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes memory[] memory"}},"id":343,"indexExpression":{"argumentTypes":null,"id":342,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":314,"src":"2640:1:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"isConstant":false,"isLValue":true,"isPure":false,"lValueRequested":true,"nodeType":"IndexAccess","src":"2632:10:3","typeDescriptions":{"typeIdentifier":"t_bytes_memory","typeString":"bytes memory"}},"nodeType":"Assignment","operator":"=","rightHandSide":{"argumentTypes":null,"id":344,"name":"result","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":327,"src":"2645:6:3","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes memory"}},"src":"2632:19:3","typeDescriptions":{"typeIdentifier":"t_bytes_memory","typeString":"bytes memory"}},"id":346,"nodeType":"ExpressionStatement","src":"2632:19:3"}]},"condition":{"argumentTypes":null,"commonType":{"typeIdentifier":"t_uint256","typeString":"uint256"},"id":320,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"leftExpression":{"argumentTypes":null,"id":317,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":314,"src":"2479:1:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"nodeType":"BinaryOperation","operator":"<","rightExpression":{"argumentTypes":null,"expression":{"argumentTypes":null,"id":318,"name":"data","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":298,"src":"2483:4:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_calldata_$dyn_calldata_ptr","typeString":"bytes calldata[] calldata"}},"id":319,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"memberName":"length","nodeType":"MemberAccess","referencedDeclaration":null,"src":"2483:11:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"src":"2479:15:3","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"id":348,"initializationExpression":{"assignments":[314],"declarations":[{"constant":false,"id":314,"name":"i","nodeType":"VariableDeclaration","scope":348,"src":"2467:6:3","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":313,"name":"uint","nodeType":"ElementaryTypeName","src":"2467:4:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"id":316,"initialValue":{"argumentTypes":null,"hexValue":"30","id":315,"isConstant":false,"isLValue":false,"isPure":true,"kind":"number","lValueRequested":false,"nodeType":"Literal","src":"2476:1:3","subdenomination":null,"typeDescriptions":{"typeIdentifier":"t_rational_0_by_1","typeString":"int_const 0"},"value":"0"},"nodeType":"VariableDeclarationStatement","src":"2467:10:3"},"loopExpression":{"expression":{"argumentTypes":null,"id":322,"isConstant":false,"isLValue":false,"isPure":false,"lValueRequested":false,"nodeType":"UnaryOperation","operator":"++","prefix":false,"src":"2496:3:3","subExpression":{"argumentTypes":null,"id":321,"name":"i","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":314,"src":"2496:1:3","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"id":323,"nodeType":"ExpressionStatement","src":"2496:3:3"},"nodeType":"ForStatement","src":"2463:199:3"},{"expression":{"argumentTypes":null,"id":349,"name":"results","nodeType":"Identifier","overloadedDeclarations":[],"referencedDeclaration":302,"src":"2678:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes memory[] memory"}},"functionReturnParameters":303,"id":350,"nodeType":"Return","src":"2671:14:3"}]},"documentation":null,"id":352,"implemented":true,"kind":"function","modifiers":[],"name":"multicall","nodeType":"FunctionDefinition","parameters":{"id":299,"nodeType":"ParameterList","parameters":[{"constant":false,"id":298,"name":"data","nodeType":"VariableDeclaration","scope":352,"src":"2345:21:3","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_calldata_$dyn_calldata_ptr","typeString":"bytes[]"},"typeName":{"baseType":{"id":296,"name":"bytes","nodeType":"ElementaryTypeName","src":"2345:5:3","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"id":297,"length":null,"nodeType":"ArrayTypeName","src":"2345:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_storage_$dyn_storage_ptr","typeString":"bytes[]"}},"value":null,"visibility":"internal"}],"src":"2344:23:3"},"returnParameters":{"id":303,"nodeType":"ParameterList","parameters":[{"constant":false,"id":302,"name":"results","nodeType":"VariableDeclaration","scope":352,"src":"2385:22:3","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes[]"},"typeName":{"baseType":{"id":300,"name":"bytes","nodeType":"ElementaryTypeName","src":"2385:5:3","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"id":301,"length":null,"nodeType":"ArrayTypeName","src":"2385:7:3","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_storage_$dyn_storage_ptr","typeString":"bytes[]"}},"value":null,"visibility":"internal"}],"src":"2384:24:3"},"scope":353,"src":"2326:366:3","stateMutability":"nonpayable","superFunction":null,"visibility":"external"}],"scope":354,"src":"520:2174:3"}],"src":"0:2695:3"},"compiler":{"name":"solc","version":"0.5.8+commit.23d335f2.Emscripten.clang"},"networks":{},"schemaVersion":"3.0.16","updatedAt":"2020-02-10T18:46:21.022Z","devdoc":{"methods":{"ABI(bytes32,uint256)":{"params":{"contentTypes":"A bitwise OR of the ABI formats accepted by the caller.","node":"The ENS node to query"},"return":"contentType The content type of the return valuedata The ABI data"},"addr(bytes32)":{"params":{"node":"The ENS node to query."},"return":"The associated address."},"clearDNSZone(bytes32)":{"params":{"node":"the namehash of the node for which to clear the zone"}},"contenthash(bytes32)":{"params":{"node":"The ENS node to query."},"return":"The associated contenthash."},"dnsRecord(bytes32,bytes32,uint16)":{"params":{"name":"the keccak-256 hash of the fully-qualified name for which to fetch the record","node":"the namehash of the node for which to fetch the record","resource":"the ID of the resource as per https://en.wikipedia.org/wiki/List_of_DNS_record_types"},"return":"the DNS record in wire format if present, otherwise empty"},"hasDNSRecords(bytes32,bytes32)":{"params":{"name":"the namehash of the node for which to check the records","node":"the namehash of the node for which to check the records"}},"interfaceImplementer(bytes32,bytes4)":{"params":{"interfaceID":"The EIP 168 interface ID to check for.","node":"The ENS node to query."},"return":"The address that implements this interface, or 0 if the interface is unsupported."},"name(bytes32)":{"params":{"node":"The ENS node to query."},"return":"The associated name."},"pubkey(bytes32)":{"params":{"node":"The ENS node to query"},"return":"x, y the X and Y coordinates of the curve point for the public key."},"setABI(bytes32,uint256,bytes)":{"params":{"contentType":"The content type of the ABI","data":"The ABI data.","node":"The node to update."}},"setAddr(bytes32,address)":{"params":{"a":"The address to set.","node":"The node to update."}},"setAuthorisation(bytes32,address,bool)":{"details":"Sets or clears an authorisation. Authorisations are specific to the caller. Any account can set an authorisation for any name, but the authorisation that is checked will be that of the current owner of a name. Thus, transferring a name effectively clears any existing authorisations, and new authorisations can be set in advance of an ownership transfer if desired.","params":{"isAuthorised":"True if the address should be authorised, or false if it should be deauthorised.","node":"The name to change the authorisation on.","target":"The address that is to be authorised or deauthorised."}},"setContenthash(bytes32,bytes)":{"params":{"hash":"The contenthash to set","node":"The node to update."}},"setDNSRecords(bytes32,bytes)":{"params":{"data":"the DNS wire format records to set","node":"the namehash of the node for which to set the records"}},"setInterface(bytes32,bytes4,address)":{"params":{"implementer":"The address of a contract that implements this interface for this node.","interfaceID":"The EIP 168 interface ID.","node":"The node to update."}},"setName(bytes32,string)":{"params":{"name":"The name to set.","node":"The node to update."}},"setPubkey(bytes32,bytes32,bytes32)":{"params":{"node":"The ENS node to query","x":"the X coordinate of the curve point for the public key.","y":"the Y coordinate of the curve point for the public key."}},"setText(bytes32,string,string)":{"params":{"key":"The key to set.","node":"The node to update.","value":"The text data value to set."}},"text(bytes32,string)":{"params":{"key":"The text data key to query.","node":"The ENS node to query."},"return":"The associated text data."}}},"userdoc":{"methods":{"ABI(bytes32,uint256)":{"notice":"Returns the ABI associated with an ENS node. Defined in EIP205."},"addr(bytes32)":{"notice":"Returns the address associated with an ENS node."},"clearDNSZone(bytes32)":{"notice":"Clear all information for a DNS zone."},"contenthash(bytes32)":{"notice":"Returns the contenthash associated with an ENS node."},"dnsRecord(bytes32,bytes32,uint16)":{"notice":"Obtain a DNS record."},"hasDNSRecords(bytes32,bytes32)":{"notice":"Check if a given node has records."},"interfaceImplementer(bytes32,bytes4)":{"notice":"Returns the address of a contract that implements the specified interface for this name. If an implementer has not been set for this interfaceID and name, the resolver will query the contract at `addr()`. If `addr()` is set, a contract exists at that address, and that contract implements EIP168 and returns `true` for the specified interfaceID, its address will be returned."},"name(bytes32)":{"notice":"Returns the name associated with an ENS node, for reverse records. Defined in EIP181."},"pubkey(bytes32)":{"notice":"Returns the SECP256k1 public key associated with an ENS node. Defined in EIP 619."},"setABI(bytes32,uint256,bytes)":{"notice":"Sets the ABI associated with an ENS node. Nodes may have one ABI of each content type. To remove an ABI, set it to the empty string."},"setAddr(bytes32,address)":{"notice":"Sets the address associated with an ENS node. May only be called by the owner of that node in the ENS registry."},"setContenthash(bytes32,bytes)":{"notice":"Sets the contenthash associated with an ENS node. May only be called by the owner of that node in the ENS registry."},"setDNSRecords(bytes32,bytes)":{"notice":"Set one or more DNS records.  Records are supplied in wire-format. Records with the same node/name/resource must be supplied one after the other to ensure the data is updated correctly. For example, if the data was supplied:    a.example.com IN A 1.2.3.4    a.example.com IN A 5.6.7.8    www.example.com IN CNAME a.example.com. then this would store the two A records for a.example.com correctly as a single RRSET, however if the data was supplied:    a.example.com IN A 1.2.3.4    www.example.com IN CNAME a.example.com.    a.example.com IN A 5.6.7.8 then this would store the first A record, the CNAME, then the second A record which would overwrite the first."},"setInterface(bytes32,bytes4,address)":{"notice":"Sets an interface associated with a name. Setting the address to 0 restores the default behaviour of querying the contract at `addr()` for interface support."},"setName(bytes32,string)":{"notice":"Sets the name associated with an ENS node, for reverse records. May only be called by the owner of that node in the ENS registry."},"setPubkey(bytes32,bytes32,bytes32)":{"notice":"Sets the SECP256k1 public key associated with an ENS node."},"setText(bytes32,string,string)":{"notice":"Sets the text data associated with an ENS node and key. May only be called by the owner of that node in the ENS registry."},"text(bytes32,string)":{"notice":"Returns the text data associated with an ENS node and key."}},"notice":"A simple resolver anyone can use; only allows the owner of a node to set its address."}}')},function(e){e.exports=JSON.parse('{"contractName":"Resolver","abi":[{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"a","type":"address"}],"name":"AddrChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"coinType","type":"uint256"},{"indexed":false,"name":"newAddress","type":"bytes"}],"name":"AddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"name","type":"string"}],"name":"NameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"contentType","type":"uint256"}],"name":"ABIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"x","type":"bytes32"},{"indexed":false,"name":"y","type":"bytes32"}],"name":"PubkeyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":true,"name":"indexedKey","type":"string"},{"indexed":false,"name":"key","type":"string"}],"name":"TextChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"hash","type":"bytes"}],"name":"ContenthashChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"node","type":"bytes32"},{"indexed":false,"name":"hash","type":"bytes32"}],"name":"ContentChanged","type":"event"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"contentTypes","type":"uint256"}],"name":"ABI","outputs":[{"name":"","type":"uint256"},{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"coinType","type":"uint256"}],"name":"addr","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"addr","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"contenthash","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"dnsrr","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"pubkey","outputs":[{"name":"x","type":"bytes32"},{"name":"y","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"key","type":"string"}],"name":"text","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"},{"name":"interfaceID","type":"bytes4"}],"name":"interfaceImplementer","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"contentType","type":"uint256"},{"name":"data","type":"bytes"}],"name":"setABI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"addr","type":"address"}],"name":"setAddr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"coinType","type":"uint256"},{"name":"a","type":"bytes"}],"name":"setAddr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"hash","type":"bytes"}],"name":"setContenthash","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"data","type":"bytes"}],"name":"setDnsrr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"_name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"x","type":"bytes32"},{"name":"y","type":"bytes32"}],"name":"setPubkey","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"key","type":"string"},{"name":"value","type":"string"}],"name":"setText","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"interfaceID","type":"bytes4"},{"name":"implementer","type":"address"}],"name":"setInterface","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"name":"results","type":"bytes[]"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"content","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"node","type":"bytes32"}],"name":"multihash","outputs":[{"name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"hash","type":"bytes32"}],"name":"setContent","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"node","type":"bytes32"},{"name":"hash","type":"bytes"}],"name":"setMultihash","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}],"metadata":"{\\"compiler\\":{\\"version\\":\\"0.5.8+commit.23d335f2\\"},\\"language\\":\\"Solidity\\",\\"output\\":{\\"abi\\":[{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"}],\\"name\\":\\"supportsInterface\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bool\\"}],\\"payable\\":false,\\"stateMutability\\":\\"pure\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"key\\",\\"type\\":\\"string\\"},{\\"name\\":\\"value\\",\\"type\\":\\"string\\"}],\\"name\\":\\"setText\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"}],\\"name\\":\\"interfaceImplementer\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"dnsrr\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"contentTypes\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"ABI\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"uint256\\"},{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"x\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"y\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"setPubkey\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"content\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes32\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"hash\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setContenthash\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"addr\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"address\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"key\\",\\"type\\":\\"string\\"}],\\"name\\":\\"text\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"string\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"contentType\\",\\"type\\":\\"uint256\\"},{\\"name\\":\\"data\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setABI\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"name\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"string\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"data\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setDnsrr\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"_name\\",\\"type\\":\\"string\\"}],\\"name\\":\\"setName\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"coinType\\",\\"type\\":\\"uint256\\"},{\\"name\\":\\"a\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setAddr\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"hash\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"setMultihash\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"data\\",\\"type\\":\\"bytes[]\\"}],\\"name\\":\\"multicall\\",\\"outputs\\":[{\\"name\\":\\"results\\",\\"type\\":\\"bytes[]\\"}],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"contenthash\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"hash\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"setContent\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"pubkey\\",\\"outputs\\":[{\\"name\\":\\"x\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"y\\",\\"type\\":\\"bytes32\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"addr\\",\\"type\\":\\"address\\"}],\\"name\\":\\"setAddr\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":false,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"interfaceID\\",\\"type\\":\\"bytes4\\"},{\\"name\\":\\"implementer\\",\\"type\\":\\"address\\"}],\\"name\\":\\"setInterface\\",\\"outputs\\":[],\\"payable\\":false,\\"stateMutability\\":\\"nonpayable\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"multihash\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"constant\\":true,\\"inputs\\":[{\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"name\\":\\"coinType\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"addr\\",\\"outputs\\":[{\\"name\\":\\"\\",\\"type\\":\\"bytes\\"}],\\"payable\\":false,\\"stateMutability\\":\\"view\\",\\"type\\":\\"function\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"a\\",\\"type\\":\\"address\\"}],\\"name\\":\\"AddrChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"coinType\\",\\"type\\":\\"uint256\\"},{\\"indexed\\":false,\\"name\\":\\"newAddress\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"AddressChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"name\\",\\"type\\":\\"string\\"}],\\"name\\":\\"NameChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":true,\\"name\\":\\"contentType\\",\\"type\\":\\"uint256\\"}],\\"name\\":\\"ABIChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"x\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"y\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"PubkeyChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":true,\\"name\\":\\"indexedKey\\",\\"type\\":\\"string\\"},{\\"indexed\\":false,\\"name\\":\\"key\\",\\"type\\":\\"string\\"}],\\"name\\":\\"TextChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"hash\\",\\"type\\":\\"bytes\\"}],\\"name\\":\\"ContenthashChanged\\",\\"type\\":\\"event\\"},{\\"anonymous\\":false,\\"inputs\\":[{\\"indexed\\":true,\\"name\\":\\"node\\",\\"type\\":\\"bytes32\\"},{\\"indexed\\":false,\\"name\\":\\"hash\\",\\"type\\":\\"bytes32\\"}],\\"name\\":\\"ContentChanged\\",\\"type\\":\\"event\\"}],\\"devdoc\\":{\\"methods\\":{}},\\"userdoc\\":{\\"methods\\":{},\\"notice\\":\\"A generic resolver interface which includes all the functions including the ones deprecated\\"}},\\"settings\\":{\\"compilationTarget\\":{\\"/home/user/Dropbox/projects/resolvers/contracts/Resolver.sol\\":\\"Resolver\\"},\\"evmVersion\\":\\"petersburg\\",\\"libraries\\":{},\\"optimizer\\":{\\"enabled\\":false,\\"runs\\":200},\\"remappings\\":[]},\\"sources\\":{\\"/home/user/Dropbox/projects/resolvers/contracts/Resolver.sol\\":{\\"keccak256\\":\\"0xb992c6a78066be42d7e9b54d0e385e87267d7e229099ed6c857c9d9ace43995d\\",\\"urls\\":[\\"bzzr://ddba23b761cfa2d6bb8746fd4241896db84282f2550c06c738fc1de2f8fb33c2\\"]}},\\"version\\":1}","bytecode":"0x","deployedBytecode":"0x","sourceMap":"","deployedSourceMap":"","source":"pragma solidity >=0.4.25;\\npragma experimental ABIEncoderV2;\\n\\n/**\\n * A generic resolver interface which includes all the functions including the ones deprecated\\n */\\ninterface Resolver{\\n    event AddrChanged(bytes32 indexed node, address a);\\n    event AddressChanged(bytes32 indexed node, uint coinType, bytes newAddress);\\n    event NameChanged(bytes32 indexed node, string name);\\n    event ABIChanged(bytes32 indexed node, uint256 indexed contentType);\\n    event PubkeyChanged(bytes32 indexed node, bytes32 x, bytes32 y);\\n    event TextChanged(bytes32 indexed node, string indexed indexedKey, string key);\\n    event ContenthashChanged(bytes32 indexed node, bytes hash);\\n    /* Deprecated events */\\n    event ContentChanged(bytes32 indexed node, bytes32 hash);\\n\\n    function ABI(bytes32 node, uint256 contentTypes) external view returns (uint256, bytes memory);\\n    function addr(bytes32 node) external view returns (address);\\n    function addr(bytes32 node, uint coinType) external view returns(bytes memory);\\n    function contenthash(bytes32 node) external view returns (bytes memory);\\n    function dnsrr(bytes32 node) external view returns (bytes memory);\\n    function name(bytes32 node) external view returns (string memory);\\n    function pubkey(bytes32 node) external view returns (bytes32 x, bytes32 y);\\n    function text(bytes32 node, string calldata key) external view returns (string memory);\\n    function interfaceImplementer(bytes32 node, bytes4 interfaceID) external view returns (address);\\n    function setABI(bytes32 node, uint256 contentType, bytes calldata data) external;\\n    function setAddr(bytes32 node, address addr) external;\\n    function setAddr(bytes32 node, uint coinType, bytes calldata a) external;\\n    function setContenthash(bytes32 node, bytes calldata hash) external;\\n    function setDnsrr(bytes32 node, bytes calldata data) external;\\n    function setName(bytes32 node, string calldata _name) external;\\n    function setPubkey(bytes32 node, bytes32 x, bytes32 y) external;\\n    function setText(bytes32 node, string calldata key, string calldata value) external;\\n    function setInterface(bytes32 node, bytes4 interfaceID, address implementer) external;\\n    function supportsInterface(bytes4 interfaceID) external pure returns (bool);\\n    function multicall(bytes[] calldata data) external returns(bytes[] memory results);\\n\\n    /* Deprecated functions */\\n    function content(bytes32 node) external view returns (bytes32);\\n    function multihash(bytes32 node) external view returns (bytes memory);\\n    function setContent(bytes32 node, bytes32 hash) external;\\n    function setMultihash(bytes32 node, bytes calldata hash) external;\\n}\\n","sourcePath":"/home/user/Dropbox/projects/resolvers/contracts/Resolver.sol","ast":{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/Resolver.sol","exportedSymbols":{"Resolver":[603]},"id":604,"nodeType":"SourceUnit","nodes":[{"id":355,"literals":["solidity",">=","0.4",".25"],"nodeType":"PragmaDirective","src":"0:25:4"},{"id":356,"literals":["experimental","ABIEncoderV2"],"nodeType":"PragmaDirective","src":"26:33:4"},{"baseContracts":[],"contractDependencies":[],"contractKind":"interface","documentation":"A generic resolver interface which includes all the functions including the ones deprecated","fullyImplemented":false,"id":603,"linearizedBaseContracts":[603],"name":"Resolver","nodeType":"ContractDefinition","nodes":[{"anonymous":false,"documentation":null,"id":362,"name":"AddrChanged","nodeType":"EventDefinition","parameters":{"id":361,"nodeType":"ParameterList","parameters":[{"constant":false,"id":358,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":362,"src":"206:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":357,"name":"bytes32","nodeType":"ElementaryTypeName","src":"206:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":360,"indexed":false,"name":"a","nodeType":"VariableDeclaration","scope":362,"src":"228:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":359,"name":"address","nodeType":"ElementaryTypeName","src":"228:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"src":"205:33:4"},"src":"188:51:4"},{"anonymous":false,"documentation":null,"id":370,"name":"AddressChanged","nodeType":"EventDefinition","parameters":{"id":369,"nodeType":"ParameterList","parameters":[{"constant":false,"id":364,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":370,"src":"265:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":363,"name":"bytes32","nodeType":"ElementaryTypeName","src":"265:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":366,"indexed":false,"name":"coinType","nodeType":"VariableDeclaration","scope":370,"src":"287:13:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":365,"name":"uint","nodeType":"ElementaryTypeName","src":"287:4:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":368,"indexed":false,"name":"newAddress","nodeType":"VariableDeclaration","scope":370,"src":"302:16:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":367,"name":"bytes","nodeType":"ElementaryTypeName","src":"302:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"264:55:4"},"src":"244:76:4"},{"anonymous":false,"documentation":null,"id":376,"name":"NameChanged","nodeType":"EventDefinition","parameters":{"id":375,"nodeType":"ParameterList","parameters":[{"constant":false,"id":372,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":376,"src":"343:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":371,"name":"bytes32","nodeType":"ElementaryTypeName","src":"343:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":374,"indexed":false,"name":"name","nodeType":"VariableDeclaration","scope":376,"src":"365:11:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":373,"name":"string","nodeType":"ElementaryTypeName","src":"365:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"342:35:4"},"src":"325:53:4"},{"anonymous":false,"documentation":null,"id":382,"name":"ABIChanged","nodeType":"EventDefinition","parameters":{"id":381,"nodeType":"ParameterList","parameters":[{"constant":false,"id":378,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":382,"src":"400:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":377,"name":"bytes32","nodeType":"ElementaryTypeName","src":"400:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":380,"indexed":true,"name":"contentType","nodeType":"VariableDeclaration","scope":382,"src":"422:27:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":379,"name":"uint256","nodeType":"ElementaryTypeName","src":"422:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"src":"399:51:4"},"src":"383:68:4"},{"anonymous":false,"documentation":null,"id":390,"name":"PubkeyChanged","nodeType":"EventDefinition","parameters":{"id":389,"nodeType":"ParameterList","parameters":[{"constant":false,"id":384,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":390,"src":"476:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":383,"name":"bytes32","nodeType":"ElementaryTypeName","src":"476:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":386,"indexed":false,"name":"x","nodeType":"VariableDeclaration","scope":390,"src":"498:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":385,"name":"bytes32","nodeType":"ElementaryTypeName","src":"498:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":388,"indexed":false,"name":"y","nodeType":"VariableDeclaration","scope":390,"src":"509:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":387,"name":"bytes32","nodeType":"ElementaryTypeName","src":"509:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"475:44:4"},"src":"456:64:4"},{"anonymous":false,"documentation":null,"id":398,"name":"TextChanged","nodeType":"EventDefinition","parameters":{"id":397,"nodeType":"ParameterList","parameters":[{"constant":false,"id":392,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":398,"src":"543:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":391,"name":"bytes32","nodeType":"ElementaryTypeName","src":"543:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":394,"indexed":true,"name":"indexedKey","nodeType":"VariableDeclaration","scope":398,"src":"565:25:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":393,"name":"string","nodeType":"ElementaryTypeName","src":"565:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"},{"constant":false,"id":396,"indexed":false,"name":"key","nodeType":"VariableDeclaration","scope":398,"src":"592:10:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":395,"name":"string","nodeType":"ElementaryTypeName","src":"592:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"542:61:4"},"src":"525:79:4"},{"anonymous":false,"documentation":null,"id":404,"name":"ContenthashChanged","nodeType":"EventDefinition","parameters":{"id":403,"nodeType":"ParameterList","parameters":[{"constant":false,"id":400,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":404,"src":"634:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":399,"name":"bytes32","nodeType":"ElementaryTypeName","src":"634:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":402,"indexed":false,"name":"hash","nodeType":"VariableDeclaration","scope":404,"src":"656:10:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":401,"name":"bytes","nodeType":"ElementaryTypeName","src":"656:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"633:34:4"},"src":"609:59:4"},{"anonymous":false,"documentation":null,"id":410,"name":"ContentChanged","nodeType":"EventDefinition","parameters":{"id":409,"nodeType":"ParameterList","parameters":[{"constant":false,"id":406,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":410,"src":"722:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":405,"name":"bytes32","nodeType":"ElementaryTypeName","src":"722:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":408,"indexed":false,"name":"hash","nodeType":"VariableDeclaration","scope":410,"src":"744:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":407,"name":"bytes32","nodeType":"ElementaryTypeName","src":"744:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"721:36:4"},"src":"701:57:4"},{"body":null,"documentation":null,"id":421,"implemented":false,"kind":"function","modifiers":[],"name":"ABI","nodeType":"FunctionDefinition","parameters":{"id":415,"nodeType":"ParameterList","parameters":[{"constant":false,"id":412,"name":"node","nodeType":"VariableDeclaration","scope":421,"src":"777:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":411,"name":"bytes32","nodeType":"ElementaryTypeName","src":"777:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":414,"name":"contentTypes","nodeType":"VariableDeclaration","scope":421,"src":"791:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":413,"name":"uint256","nodeType":"ElementaryTypeName","src":"791:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"src":"776:36:4"},"returnParameters":{"id":420,"nodeType":"ParameterList","parameters":[{"constant":false,"id":417,"name":"","nodeType":"VariableDeclaration","scope":421,"src":"836:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":416,"name":"uint256","nodeType":"ElementaryTypeName","src":"836:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":419,"name":"","nodeType":"VariableDeclaration","scope":421,"src":"845:12:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":418,"name":"bytes","nodeType":"ElementaryTypeName","src":"845:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"835:23:4"},"scope":603,"src":"764:95:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":428,"implemented":false,"kind":"function","modifiers":[],"name":"addr","nodeType":"FunctionDefinition","parameters":{"id":424,"nodeType":"ParameterList","parameters":[{"constant":false,"id":423,"name":"node","nodeType":"VariableDeclaration","scope":428,"src":"878:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":422,"name":"bytes32","nodeType":"ElementaryTypeName","src":"878:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"877:14:4"},"returnParameters":{"id":427,"nodeType":"ParameterList","parameters":[{"constant":false,"id":426,"name":"","nodeType":"VariableDeclaration","scope":428,"src":"915:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":425,"name":"address","nodeType":"ElementaryTypeName","src":"915:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"src":"914:9:4"},"scope":603,"src":"864:60:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":437,"implemented":false,"kind":"function","modifiers":[],"name":"addr","nodeType":"FunctionDefinition","parameters":{"id":433,"nodeType":"ParameterList","parameters":[{"constant":false,"id":430,"name":"node","nodeType":"VariableDeclaration","scope":437,"src":"943:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":429,"name":"bytes32","nodeType":"ElementaryTypeName","src":"943:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":432,"name":"coinType","nodeType":"VariableDeclaration","scope":437,"src":"957:13:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":431,"name":"uint","nodeType":"ElementaryTypeName","src":"957:4:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"src":"942:29:4"},"returnParameters":{"id":436,"nodeType":"ParameterList","parameters":[{"constant":false,"id":435,"name":"","nodeType":"VariableDeclaration","scope":437,"src":"994:12:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":434,"name":"bytes","nodeType":"ElementaryTypeName","src":"994:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"993:14:4"},"scope":603,"src":"929:79:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":444,"implemented":false,"kind":"function","modifiers":[],"name":"contenthash","nodeType":"FunctionDefinition","parameters":{"id":440,"nodeType":"ParameterList","parameters":[{"constant":false,"id":439,"name":"node","nodeType":"VariableDeclaration","scope":444,"src":"1034:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":438,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1034:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1033:14:4"},"returnParameters":{"id":443,"nodeType":"ParameterList","parameters":[{"constant":false,"id":442,"name":"","nodeType":"VariableDeclaration","scope":444,"src":"1071:12:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":441,"name":"bytes","nodeType":"ElementaryTypeName","src":"1071:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1070:14:4"},"scope":603,"src":"1013:72:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":451,"implemented":false,"kind":"function","modifiers":[],"name":"dnsrr","nodeType":"FunctionDefinition","parameters":{"id":447,"nodeType":"ParameterList","parameters":[{"constant":false,"id":446,"name":"node","nodeType":"VariableDeclaration","scope":451,"src":"1105:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":445,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1105:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1104:14:4"},"returnParameters":{"id":450,"nodeType":"ParameterList","parameters":[{"constant":false,"id":449,"name":"","nodeType":"VariableDeclaration","scope":451,"src":"1142:12:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":448,"name":"bytes","nodeType":"ElementaryTypeName","src":"1142:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1141:14:4"},"scope":603,"src":"1090:66:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":458,"implemented":false,"kind":"function","modifiers":[],"name":"name","nodeType":"FunctionDefinition","parameters":{"id":454,"nodeType":"ParameterList","parameters":[{"constant":false,"id":453,"name":"node","nodeType":"VariableDeclaration","scope":458,"src":"1175:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":452,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1175:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1174:14:4"},"returnParameters":{"id":457,"nodeType":"ParameterList","parameters":[{"constant":false,"id":456,"name":"","nodeType":"VariableDeclaration","scope":458,"src":"1212:13:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":455,"name":"string","nodeType":"ElementaryTypeName","src":"1212:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"1211:15:4"},"scope":603,"src":"1161:66:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":467,"implemented":false,"kind":"function","modifiers":[],"name":"pubkey","nodeType":"FunctionDefinition","parameters":{"id":461,"nodeType":"ParameterList","parameters":[{"constant":false,"id":460,"name":"node","nodeType":"VariableDeclaration","scope":467,"src":"1248:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":459,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1248:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1247:14:4"},"returnParameters":{"id":466,"nodeType":"ParameterList","parameters":[{"constant":false,"id":463,"name":"x","nodeType":"VariableDeclaration","scope":467,"src":"1285:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":462,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1285:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":465,"name":"y","nodeType":"VariableDeclaration","scope":467,"src":"1296:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":464,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1296:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1284:22:4"},"scope":603,"src":"1232:75:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":476,"implemented":false,"kind":"function","modifiers":[],"name":"text","nodeType":"FunctionDefinition","parameters":{"id":472,"nodeType":"ParameterList","parameters":[{"constant":false,"id":469,"name":"node","nodeType":"VariableDeclaration","scope":476,"src":"1326:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":468,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1326:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":471,"name":"key","nodeType":"VariableDeclaration","scope":476,"src":"1340:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_string_calldata_ptr","typeString":"string"},"typeName":{"id":470,"name":"string","nodeType":"ElementaryTypeName","src":"1340:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"1325:35:4"},"returnParameters":{"id":475,"nodeType":"ParameterList","parameters":[{"constant":false,"id":474,"name":"","nodeType":"VariableDeclaration","scope":476,"src":"1384:13:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":473,"name":"string","nodeType":"ElementaryTypeName","src":"1384:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"1383:15:4"},"scope":603,"src":"1312:87:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":485,"implemented":false,"kind":"function","modifiers":[],"name":"interfaceImplementer","nodeType":"FunctionDefinition","parameters":{"id":481,"nodeType":"ParameterList","parameters":[{"constant":false,"id":478,"name":"node","nodeType":"VariableDeclaration","scope":485,"src":"1434:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":477,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1434:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":480,"name":"interfaceID","nodeType":"VariableDeclaration","scope":485,"src":"1448:18:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":479,"name":"bytes4","nodeType":"ElementaryTypeName","src":"1448:6:4","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"value":null,"visibility":"internal"}],"src":"1433:34:4"},"returnParameters":{"id":484,"nodeType":"ParameterList","parameters":[{"constant":false,"id":483,"name":"","nodeType":"VariableDeclaration","scope":485,"src":"1491:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":482,"name":"address","nodeType":"ElementaryTypeName","src":"1491:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"src":"1490:9:4"},"scope":603,"src":"1404:96:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":494,"implemented":false,"kind":"function","modifiers":[],"name":"setABI","nodeType":"FunctionDefinition","parameters":{"id":492,"nodeType":"ParameterList","parameters":[{"constant":false,"id":487,"name":"node","nodeType":"VariableDeclaration","scope":494,"src":"1521:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":486,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1521:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":489,"name":"contentType","nodeType":"VariableDeclaration","scope":494,"src":"1535:19:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":488,"name":"uint256","nodeType":"ElementaryTypeName","src":"1535:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":491,"name":"data","nodeType":"VariableDeclaration","scope":494,"src":"1556:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":490,"name":"bytes","nodeType":"ElementaryTypeName","src":"1556:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1520:56:4"},"returnParameters":{"id":493,"nodeType":"ParameterList","parameters":[],"src":"1585:0:4"},"scope":603,"src":"1505:81:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":501,"implemented":false,"kind":"function","modifiers":[],"name":"setAddr","nodeType":"FunctionDefinition","parameters":{"id":499,"nodeType":"ParameterList","parameters":[{"constant":false,"id":496,"name":"node","nodeType":"VariableDeclaration","scope":501,"src":"1608:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":495,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1608:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":498,"name":"addr","nodeType":"VariableDeclaration","scope":501,"src":"1622:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":497,"name":"address","nodeType":"ElementaryTypeName","src":"1622:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"src":"1607:28:4"},"returnParameters":{"id":500,"nodeType":"ParameterList","parameters":[],"src":"1644:0:4"},"scope":603,"src":"1591:54:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":510,"implemented":false,"kind":"function","modifiers":[],"name":"setAddr","nodeType":"FunctionDefinition","parameters":{"id":508,"nodeType":"ParameterList","parameters":[{"constant":false,"id":503,"name":"node","nodeType":"VariableDeclaration","scope":510,"src":"1667:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":502,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1667:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":505,"name":"coinType","nodeType":"VariableDeclaration","scope":510,"src":"1681:13:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":504,"name":"uint","nodeType":"ElementaryTypeName","src":"1681:4:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":507,"name":"a","nodeType":"VariableDeclaration","scope":510,"src":"1696:16:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":506,"name":"bytes","nodeType":"ElementaryTypeName","src":"1696:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1666:47:4"},"returnParameters":{"id":509,"nodeType":"ParameterList","parameters":[],"src":"1722:0:4"},"scope":603,"src":"1650:73:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":517,"implemented":false,"kind":"function","modifiers":[],"name":"setContenthash","nodeType":"FunctionDefinition","parameters":{"id":515,"nodeType":"ParameterList","parameters":[{"constant":false,"id":512,"name":"node","nodeType":"VariableDeclaration","scope":517,"src":"1752:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":511,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1752:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":514,"name":"hash","nodeType":"VariableDeclaration","scope":517,"src":"1766:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":513,"name":"bytes","nodeType":"ElementaryTypeName","src":"1766:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1751:35:4"},"returnParameters":{"id":516,"nodeType":"ParameterList","parameters":[],"src":"1795:0:4"},"scope":603,"src":"1728:68:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":524,"implemented":false,"kind":"function","modifiers":[],"name":"setDnsrr","nodeType":"FunctionDefinition","parameters":{"id":522,"nodeType":"ParameterList","parameters":[{"constant":false,"id":519,"name":"node","nodeType":"VariableDeclaration","scope":524,"src":"1819:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":518,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1819:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":521,"name":"data","nodeType":"VariableDeclaration","scope":524,"src":"1833:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":520,"name":"bytes","nodeType":"ElementaryTypeName","src":"1833:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1818:35:4"},"returnParameters":{"id":523,"nodeType":"ParameterList","parameters":[],"src":"1862:0:4"},"scope":603,"src":"1801:62:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":531,"implemented":false,"kind":"function","modifiers":[],"name":"setName","nodeType":"FunctionDefinition","parameters":{"id":529,"nodeType":"ParameterList","parameters":[{"constant":false,"id":526,"name":"node","nodeType":"VariableDeclaration","scope":531,"src":"1885:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":525,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1885:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":528,"name":"_name","nodeType":"VariableDeclaration","scope":531,"src":"1899:21:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_string_calldata_ptr","typeString":"string"},"typeName":{"id":527,"name":"string","nodeType":"ElementaryTypeName","src":"1899:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"1884:37:4"},"returnParameters":{"id":530,"nodeType":"ParameterList","parameters":[],"src":"1930:0:4"},"scope":603,"src":"1868:63:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":540,"implemented":false,"kind":"function","modifiers":[],"name":"setPubkey","nodeType":"FunctionDefinition","parameters":{"id":538,"nodeType":"ParameterList","parameters":[{"constant":false,"id":533,"name":"node","nodeType":"VariableDeclaration","scope":540,"src":"1955:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":532,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1955:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":535,"name":"x","nodeType":"VariableDeclaration","scope":540,"src":"1969:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":534,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1969:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":537,"name":"y","nodeType":"VariableDeclaration","scope":540,"src":"1980:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":536,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1980:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1954:36:4"},"returnParameters":{"id":539,"nodeType":"ParameterList","parameters":[],"src":"1999:0:4"},"scope":603,"src":"1936:64:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":549,"implemented":false,"kind":"function","modifiers":[],"name":"setText","nodeType":"FunctionDefinition","parameters":{"id":547,"nodeType":"ParameterList","parameters":[{"constant":false,"id":542,"name":"node","nodeType":"VariableDeclaration","scope":549,"src":"2022:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":541,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2022:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":544,"name":"key","nodeType":"VariableDeclaration","scope":549,"src":"2036:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_string_calldata_ptr","typeString":"string"},"typeName":{"id":543,"name":"string","nodeType":"ElementaryTypeName","src":"2036:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"},{"constant":false,"id":546,"name":"value","nodeType":"VariableDeclaration","scope":549,"src":"2057:21:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_string_calldata_ptr","typeString":"string"},"typeName":{"id":545,"name":"string","nodeType":"ElementaryTypeName","src":"2057:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"2021:58:4"},"returnParameters":{"id":548,"nodeType":"ParameterList","parameters":[],"src":"2088:0:4"},"scope":603,"src":"2005:84:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":558,"implemented":false,"kind":"function","modifiers":[],"name":"setInterface","nodeType":"FunctionDefinition","parameters":{"id":556,"nodeType":"ParameterList","parameters":[{"constant":false,"id":551,"name":"node","nodeType":"VariableDeclaration","scope":558,"src":"2116:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":550,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2116:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":553,"name":"interfaceID","nodeType":"VariableDeclaration","scope":558,"src":"2130:18:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":552,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2130:6:4","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"value":null,"visibility":"internal"},{"constant":false,"id":555,"name":"implementer","nodeType":"VariableDeclaration","scope":558,"src":"2150:19:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":554,"name":"address","nodeType":"ElementaryTypeName","src":"2150:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"src":"2115:55:4"},"returnParameters":{"id":557,"nodeType":"ParameterList","parameters":[],"src":"2179:0:4"},"scope":603,"src":"2094:86:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":565,"implemented":false,"kind":"function","modifiers":[],"name":"supportsInterface","nodeType":"FunctionDefinition","parameters":{"id":561,"nodeType":"ParameterList","parameters":[{"constant":false,"id":560,"name":"interfaceID","nodeType":"VariableDeclaration","scope":565,"src":"2212:18:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":559,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2212:6:4","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"value":null,"visibility":"internal"}],"src":"2211:20:4"},"returnParameters":{"id":564,"nodeType":"ParameterList","parameters":[{"constant":false,"id":563,"name":"","nodeType":"VariableDeclaration","scope":565,"src":"2255:4:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":562,"name":"bool","nodeType":"ElementaryTypeName","src":"2255:4:4","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"2254:6:4"},"scope":603,"src":"2185:76:4","stateMutability":"pure","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":574,"implemented":false,"kind":"function","modifiers":[],"name":"multicall","nodeType":"FunctionDefinition","parameters":{"id":569,"nodeType":"ParameterList","parameters":[{"constant":false,"id":568,"name":"data","nodeType":"VariableDeclaration","scope":574,"src":"2285:21:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_calldata_$dyn_calldata_ptr","typeString":"bytes[]"},"typeName":{"baseType":{"id":566,"name":"bytes","nodeType":"ElementaryTypeName","src":"2285:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"id":567,"length":null,"nodeType":"ArrayTypeName","src":"2285:7:4","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_storage_$dyn_storage_ptr","typeString":"bytes[]"}},"value":null,"visibility":"internal"}],"src":"2284:23:4"},"returnParameters":{"id":573,"nodeType":"ParameterList","parameters":[{"constant":false,"id":572,"name":"results","nodeType":"VariableDeclaration","scope":574,"src":"2325:22:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes[]"},"typeName":{"baseType":{"id":570,"name":"bytes","nodeType":"ElementaryTypeName","src":"2325:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"id":571,"length":null,"nodeType":"ArrayTypeName","src":"2325:7:4","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_storage_$dyn_storage_ptr","typeString":"bytes[]"}},"value":null,"visibility":"internal"}],"src":"2324:24:4"},"scope":603,"src":"2266:83:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":581,"implemented":false,"kind":"function","modifiers":[],"name":"content","nodeType":"FunctionDefinition","parameters":{"id":577,"nodeType":"ParameterList","parameters":[{"constant":false,"id":576,"name":"node","nodeType":"VariableDeclaration","scope":581,"src":"2403:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":575,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2403:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"2402:14:4"},"returnParameters":{"id":580,"nodeType":"ParameterList","parameters":[{"constant":false,"id":579,"name":"","nodeType":"VariableDeclaration","scope":581,"src":"2440:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":578,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2440:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"2439:9:4"},"scope":603,"src":"2386:63:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":588,"implemented":false,"kind":"function","modifiers":[],"name":"multihash","nodeType":"FunctionDefinition","parameters":{"id":584,"nodeType":"ParameterList","parameters":[{"constant":false,"id":583,"name":"node","nodeType":"VariableDeclaration","scope":588,"src":"2473:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":582,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2473:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"2472:14:4"},"returnParameters":{"id":587,"nodeType":"ParameterList","parameters":[{"constant":false,"id":586,"name":"","nodeType":"VariableDeclaration","scope":588,"src":"2510:12:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":585,"name":"bytes","nodeType":"ElementaryTypeName","src":"2510:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"2509:14:4"},"scope":603,"src":"2454:70:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":595,"implemented":false,"kind":"function","modifiers":[],"name":"setContent","nodeType":"FunctionDefinition","parameters":{"id":593,"nodeType":"ParameterList","parameters":[{"constant":false,"id":590,"name":"node","nodeType":"VariableDeclaration","scope":595,"src":"2549:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":589,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2549:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":592,"name":"hash","nodeType":"VariableDeclaration","scope":595,"src":"2563:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":591,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2563:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"2548:28:4"},"returnParameters":{"id":594,"nodeType":"ParameterList","parameters":[],"src":"2585:0:4"},"scope":603,"src":"2529:57:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":602,"implemented":false,"kind":"function","modifiers":[],"name":"setMultihash","nodeType":"FunctionDefinition","parameters":{"id":600,"nodeType":"ParameterList","parameters":[{"constant":false,"id":597,"name":"node","nodeType":"VariableDeclaration","scope":602,"src":"2613:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":596,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2613:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":599,"name":"hash","nodeType":"VariableDeclaration","scope":602,"src":"2627:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":598,"name":"bytes","nodeType":"ElementaryTypeName","src":"2627:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"2612:35:4"},"returnParameters":{"id":601,"nodeType":"ParameterList","parameters":[],"src":"2656:0:4"},"scope":603,"src":"2591:66:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"}],"scope":604,"src":"164:2495:4"}],"src":"0:2660:4"},"legacyAST":{"absolutePath":"/home/user/Dropbox/projects/resolvers/contracts/Resolver.sol","exportedSymbols":{"Resolver":[603]},"id":604,"nodeType":"SourceUnit","nodes":[{"id":355,"literals":["solidity",">=","0.4",".25"],"nodeType":"PragmaDirective","src":"0:25:4"},{"id":356,"literals":["experimental","ABIEncoderV2"],"nodeType":"PragmaDirective","src":"26:33:4"},{"baseContracts":[],"contractDependencies":[],"contractKind":"interface","documentation":"A generic resolver interface which includes all the functions including the ones deprecated","fullyImplemented":false,"id":603,"linearizedBaseContracts":[603],"name":"Resolver","nodeType":"ContractDefinition","nodes":[{"anonymous":false,"documentation":null,"id":362,"name":"AddrChanged","nodeType":"EventDefinition","parameters":{"id":361,"nodeType":"ParameterList","parameters":[{"constant":false,"id":358,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":362,"src":"206:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":357,"name":"bytes32","nodeType":"ElementaryTypeName","src":"206:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":360,"indexed":false,"name":"a","nodeType":"VariableDeclaration","scope":362,"src":"228:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":359,"name":"address","nodeType":"ElementaryTypeName","src":"228:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"src":"205:33:4"},"src":"188:51:4"},{"anonymous":false,"documentation":null,"id":370,"name":"AddressChanged","nodeType":"EventDefinition","parameters":{"id":369,"nodeType":"ParameterList","parameters":[{"constant":false,"id":364,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":370,"src":"265:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":363,"name":"bytes32","nodeType":"ElementaryTypeName","src":"265:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":366,"indexed":false,"name":"coinType","nodeType":"VariableDeclaration","scope":370,"src":"287:13:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":365,"name":"uint","nodeType":"ElementaryTypeName","src":"287:4:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":368,"indexed":false,"name":"newAddress","nodeType":"VariableDeclaration","scope":370,"src":"302:16:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":367,"name":"bytes","nodeType":"ElementaryTypeName","src":"302:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"264:55:4"},"src":"244:76:4"},{"anonymous":false,"documentation":null,"id":376,"name":"NameChanged","nodeType":"EventDefinition","parameters":{"id":375,"nodeType":"ParameterList","parameters":[{"constant":false,"id":372,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":376,"src":"343:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":371,"name":"bytes32","nodeType":"ElementaryTypeName","src":"343:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":374,"indexed":false,"name":"name","nodeType":"VariableDeclaration","scope":376,"src":"365:11:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":373,"name":"string","nodeType":"ElementaryTypeName","src":"365:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"342:35:4"},"src":"325:53:4"},{"anonymous":false,"documentation":null,"id":382,"name":"ABIChanged","nodeType":"EventDefinition","parameters":{"id":381,"nodeType":"ParameterList","parameters":[{"constant":false,"id":378,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":382,"src":"400:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":377,"name":"bytes32","nodeType":"ElementaryTypeName","src":"400:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":380,"indexed":true,"name":"contentType","nodeType":"VariableDeclaration","scope":382,"src":"422:27:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":379,"name":"uint256","nodeType":"ElementaryTypeName","src":"422:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"src":"399:51:4"},"src":"383:68:4"},{"anonymous":false,"documentation":null,"id":390,"name":"PubkeyChanged","nodeType":"EventDefinition","parameters":{"id":389,"nodeType":"ParameterList","parameters":[{"constant":false,"id":384,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":390,"src":"476:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":383,"name":"bytes32","nodeType":"ElementaryTypeName","src":"476:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":386,"indexed":false,"name":"x","nodeType":"VariableDeclaration","scope":390,"src":"498:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":385,"name":"bytes32","nodeType":"ElementaryTypeName","src":"498:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":388,"indexed":false,"name":"y","nodeType":"VariableDeclaration","scope":390,"src":"509:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":387,"name":"bytes32","nodeType":"ElementaryTypeName","src":"509:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"475:44:4"},"src":"456:64:4"},{"anonymous":false,"documentation":null,"id":398,"name":"TextChanged","nodeType":"EventDefinition","parameters":{"id":397,"nodeType":"ParameterList","parameters":[{"constant":false,"id":392,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":398,"src":"543:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":391,"name":"bytes32","nodeType":"ElementaryTypeName","src":"543:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":394,"indexed":true,"name":"indexedKey","nodeType":"VariableDeclaration","scope":398,"src":"565:25:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":393,"name":"string","nodeType":"ElementaryTypeName","src":"565:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"},{"constant":false,"id":396,"indexed":false,"name":"key","nodeType":"VariableDeclaration","scope":398,"src":"592:10:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":395,"name":"string","nodeType":"ElementaryTypeName","src":"592:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"542:61:4"},"src":"525:79:4"},{"anonymous":false,"documentation":null,"id":404,"name":"ContenthashChanged","nodeType":"EventDefinition","parameters":{"id":403,"nodeType":"ParameterList","parameters":[{"constant":false,"id":400,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":404,"src":"634:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":399,"name":"bytes32","nodeType":"ElementaryTypeName","src":"634:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":402,"indexed":false,"name":"hash","nodeType":"VariableDeclaration","scope":404,"src":"656:10:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":401,"name":"bytes","nodeType":"ElementaryTypeName","src":"656:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"633:34:4"},"src":"609:59:4"},{"anonymous":false,"documentation":null,"id":410,"name":"ContentChanged","nodeType":"EventDefinition","parameters":{"id":409,"nodeType":"ParameterList","parameters":[{"constant":false,"id":406,"indexed":true,"name":"node","nodeType":"VariableDeclaration","scope":410,"src":"722:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":405,"name":"bytes32","nodeType":"ElementaryTypeName","src":"722:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":408,"indexed":false,"name":"hash","nodeType":"VariableDeclaration","scope":410,"src":"744:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":407,"name":"bytes32","nodeType":"ElementaryTypeName","src":"744:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"721:36:4"},"src":"701:57:4"},{"body":null,"documentation":null,"id":421,"implemented":false,"kind":"function","modifiers":[],"name":"ABI","nodeType":"FunctionDefinition","parameters":{"id":415,"nodeType":"ParameterList","parameters":[{"constant":false,"id":412,"name":"node","nodeType":"VariableDeclaration","scope":421,"src":"777:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":411,"name":"bytes32","nodeType":"ElementaryTypeName","src":"777:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":414,"name":"contentTypes","nodeType":"VariableDeclaration","scope":421,"src":"791:20:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":413,"name":"uint256","nodeType":"ElementaryTypeName","src":"791:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"src":"776:36:4"},"returnParameters":{"id":420,"nodeType":"ParameterList","parameters":[{"constant":false,"id":417,"name":"","nodeType":"VariableDeclaration","scope":421,"src":"836:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":416,"name":"uint256","nodeType":"ElementaryTypeName","src":"836:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":419,"name":"","nodeType":"VariableDeclaration","scope":421,"src":"845:12:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":418,"name":"bytes","nodeType":"ElementaryTypeName","src":"845:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"835:23:4"},"scope":603,"src":"764:95:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":428,"implemented":false,"kind":"function","modifiers":[],"name":"addr","nodeType":"FunctionDefinition","parameters":{"id":424,"nodeType":"ParameterList","parameters":[{"constant":false,"id":423,"name":"node","nodeType":"VariableDeclaration","scope":428,"src":"878:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":422,"name":"bytes32","nodeType":"ElementaryTypeName","src":"878:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"877:14:4"},"returnParameters":{"id":427,"nodeType":"ParameterList","parameters":[{"constant":false,"id":426,"name":"","nodeType":"VariableDeclaration","scope":428,"src":"915:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":425,"name":"address","nodeType":"ElementaryTypeName","src":"915:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"src":"914:9:4"},"scope":603,"src":"864:60:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":437,"implemented":false,"kind":"function","modifiers":[],"name":"addr","nodeType":"FunctionDefinition","parameters":{"id":433,"nodeType":"ParameterList","parameters":[{"constant":false,"id":430,"name":"node","nodeType":"VariableDeclaration","scope":437,"src":"943:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":429,"name":"bytes32","nodeType":"ElementaryTypeName","src":"943:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":432,"name":"coinType","nodeType":"VariableDeclaration","scope":437,"src":"957:13:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":431,"name":"uint","nodeType":"ElementaryTypeName","src":"957:4:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"}],"src":"942:29:4"},"returnParameters":{"id":436,"nodeType":"ParameterList","parameters":[{"constant":false,"id":435,"name":"","nodeType":"VariableDeclaration","scope":437,"src":"994:12:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":434,"name":"bytes","nodeType":"ElementaryTypeName","src":"994:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"993:14:4"},"scope":603,"src":"929:79:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":444,"implemented":false,"kind":"function","modifiers":[],"name":"contenthash","nodeType":"FunctionDefinition","parameters":{"id":440,"nodeType":"ParameterList","parameters":[{"constant":false,"id":439,"name":"node","nodeType":"VariableDeclaration","scope":444,"src":"1034:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":438,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1034:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1033:14:4"},"returnParameters":{"id":443,"nodeType":"ParameterList","parameters":[{"constant":false,"id":442,"name":"","nodeType":"VariableDeclaration","scope":444,"src":"1071:12:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":441,"name":"bytes","nodeType":"ElementaryTypeName","src":"1071:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1070:14:4"},"scope":603,"src":"1013:72:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":451,"implemented":false,"kind":"function","modifiers":[],"name":"dnsrr","nodeType":"FunctionDefinition","parameters":{"id":447,"nodeType":"ParameterList","parameters":[{"constant":false,"id":446,"name":"node","nodeType":"VariableDeclaration","scope":451,"src":"1105:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":445,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1105:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1104:14:4"},"returnParameters":{"id":450,"nodeType":"ParameterList","parameters":[{"constant":false,"id":449,"name":"","nodeType":"VariableDeclaration","scope":451,"src":"1142:12:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":448,"name":"bytes","nodeType":"ElementaryTypeName","src":"1142:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1141:14:4"},"scope":603,"src":"1090:66:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":458,"implemented":false,"kind":"function","modifiers":[],"name":"name","nodeType":"FunctionDefinition","parameters":{"id":454,"nodeType":"ParameterList","parameters":[{"constant":false,"id":453,"name":"node","nodeType":"VariableDeclaration","scope":458,"src":"1175:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":452,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1175:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1174:14:4"},"returnParameters":{"id":457,"nodeType":"ParameterList","parameters":[{"constant":false,"id":456,"name":"","nodeType":"VariableDeclaration","scope":458,"src":"1212:13:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":455,"name":"string","nodeType":"ElementaryTypeName","src":"1212:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"1211:15:4"},"scope":603,"src":"1161:66:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":467,"implemented":false,"kind":"function","modifiers":[],"name":"pubkey","nodeType":"FunctionDefinition","parameters":{"id":461,"nodeType":"ParameterList","parameters":[{"constant":false,"id":460,"name":"node","nodeType":"VariableDeclaration","scope":467,"src":"1248:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":459,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1248:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1247:14:4"},"returnParameters":{"id":466,"nodeType":"ParameterList","parameters":[{"constant":false,"id":463,"name":"x","nodeType":"VariableDeclaration","scope":467,"src":"1285:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":462,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1285:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":465,"name":"y","nodeType":"VariableDeclaration","scope":467,"src":"1296:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":464,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1296:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1284:22:4"},"scope":603,"src":"1232:75:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":476,"implemented":false,"kind":"function","modifiers":[],"name":"text","nodeType":"FunctionDefinition","parameters":{"id":472,"nodeType":"ParameterList","parameters":[{"constant":false,"id":469,"name":"node","nodeType":"VariableDeclaration","scope":476,"src":"1326:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":468,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1326:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":471,"name":"key","nodeType":"VariableDeclaration","scope":476,"src":"1340:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_string_calldata_ptr","typeString":"string"},"typeName":{"id":470,"name":"string","nodeType":"ElementaryTypeName","src":"1340:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"1325:35:4"},"returnParameters":{"id":475,"nodeType":"ParameterList","parameters":[{"constant":false,"id":474,"name":"","nodeType":"VariableDeclaration","scope":476,"src":"1384:13:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_string_memory_ptr","typeString":"string"},"typeName":{"id":473,"name":"string","nodeType":"ElementaryTypeName","src":"1384:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"1383:15:4"},"scope":603,"src":"1312:87:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":485,"implemented":false,"kind":"function","modifiers":[],"name":"interfaceImplementer","nodeType":"FunctionDefinition","parameters":{"id":481,"nodeType":"ParameterList","parameters":[{"constant":false,"id":478,"name":"node","nodeType":"VariableDeclaration","scope":485,"src":"1434:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":477,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1434:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":480,"name":"interfaceID","nodeType":"VariableDeclaration","scope":485,"src":"1448:18:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":479,"name":"bytes4","nodeType":"ElementaryTypeName","src":"1448:6:4","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"value":null,"visibility":"internal"}],"src":"1433:34:4"},"returnParameters":{"id":484,"nodeType":"ParameterList","parameters":[{"constant":false,"id":483,"name":"","nodeType":"VariableDeclaration","scope":485,"src":"1491:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":482,"name":"address","nodeType":"ElementaryTypeName","src":"1491:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"src":"1490:9:4"},"scope":603,"src":"1404:96:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":494,"implemented":false,"kind":"function","modifiers":[],"name":"setABI","nodeType":"FunctionDefinition","parameters":{"id":492,"nodeType":"ParameterList","parameters":[{"constant":false,"id":487,"name":"node","nodeType":"VariableDeclaration","scope":494,"src":"1521:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":486,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1521:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":489,"name":"contentType","nodeType":"VariableDeclaration","scope":494,"src":"1535:19:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":488,"name":"uint256","nodeType":"ElementaryTypeName","src":"1535:7:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":491,"name":"data","nodeType":"VariableDeclaration","scope":494,"src":"1556:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":490,"name":"bytes","nodeType":"ElementaryTypeName","src":"1556:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1520:56:4"},"returnParameters":{"id":493,"nodeType":"ParameterList","parameters":[],"src":"1585:0:4"},"scope":603,"src":"1505:81:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":501,"implemented":false,"kind":"function","modifiers":[],"name":"setAddr","nodeType":"FunctionDefinition","parameters":{"id":499,"nodeType":"ParameterList","parameters":[{"constant":false,"id":496,"name":"node","nodeType":"VariableDeclaration","scope":501,"src":"1608:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":495,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1608:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":498,"name":"addr","nodeType":"VariableDeclaration","scope":501,"src":"1622:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":497,"name":"address","nodeType":"ElementaryTypeName","src":"1622:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"src":"1607:28:4"},"returnParameters":{"id":500,"nodeType":"ParameterList","parameters":[],"src":"1644:0:4"},"scope":603,"src":"1591:54:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":510,"implemented":false,"kind":"function","modifiers":[],"name":"setAddr","nodeType":"FunctionDefinition","parameters":{"id":508,"nodeType":"ParameterList","parameters":[{"constant":false,"id":503,"name":"node","nodeType":"VariableDeclaration","scope":510,"src":"1667:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":502,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1667:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":505,"name":"coinType","nodeType":"VariableDeclaration","scope":510,"src":"1681:13:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"},"typeName":{"id":504,"name":"uint","nodeType":"ElementaryTypeName","src":"1681:4:4","typeDescriptions":{"typeIdentifier":"t_uint256","typeString":"uint256"}},"value":null,"visibility":"internal"},{"constant":false,"id":507,"name":"a","nodeType":"VariableDeclaration","scope":510,"src":"1696:16:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":506,"name":"bytes","nodeType":"ElementaryTypeName","src":"1696:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1666:47:4"},"returnParameters":{"id":509,"nodeType":"ParameterList","parameters":[],"src":"1722:0:4"},"scope":603,"src":"1650:73:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":517,"implemented":false,"kind":"function","modifiers":[],"name":"setContenthash","nodeType":"FunctionDefinition","parameters":{"id":515,"nodeType":"ParameterList","parameters":[{"constant":false,"id":512,"name":"node","nodeType":"VariableDeclaration","scope":517,"src":"1752:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":511,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1752:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":514,"name":"hash","nodeType":"VariableDeclaration","scope":517,"src":"1766:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":513,"name":"bytes","nodeType":"ElementaryTypeName","src":"1766:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1751:35:4"},"returnParameters":{"id":516,"nodeType":"ParameterList","parameters":[],"src":"1795:0:4"},"scope":603,"src":"1728:68:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":524,"implemented":false,"kind":"function","modifiers":[],"name":"setDnsrr","nodeType":"FunctionDefinition","parameters":{"id":522,"nodeType":"ParameterList","parameters":[{"constant":false,"id":519,"name":"node","nodeType":"VariableDeclaration","scope":524,"src":"1819:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":518,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1819:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":521,"name":"data","nodeType":"VariableDeclaration","scope":524,"src":"1833:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":520,"name":"bytes","nodeType":"ElementaryTypeName","src":"1833:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"1818:35:4"},"returnParameters":{"id":523,"nodeType":"ParameterList","parameters":[],"src":"1862:0:4"},"scope":603,"src":"1801:62:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":531,"implemented":false,"kind":"function","modifiers":[],"name":"setName","nodeType":"FunctionDefinition","parameters":{"id":529,"nodeType":"ParameterList","parameters":[{"constant":false,"id":526,"name":"node","nodeType":"VariableDeclaration","scope":531,"src":"1885:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":525,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1885:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":528,"name":"_name","nodeType":"VariableDeclaration","scope":531,"src":"1899:21:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_string_calldata_ptr","typeString":"string"},"typeName":{"id":527,"name":"string","nodeType":"ElementaryTypeName","src":"1899:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"1884:37:4"},"returnParameters":{"id":530,"nodeType":"ParameterList","parameters":[],"src":"1930:0:4"},"scope":603,"src":"1868:63:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":540,"implemented":false,"kind":"function","modifiers":[],"name":"setPubkey","nodeType":"FunctionDefinition","parameters":{"id":538,"nodeType":"ParameterList","parameters":[{"constant":false,"id":533,"name":"node","nodeType":"VariableDeclaration","scope":540,"src":"1955:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":532,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1955:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":535,"name":"x","nodeType":"VariableDeclaration","scope":540,"src":"1969:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":534,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1969:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":537,"name":"y","nodeType":"VariableDeclaration","scope":540,"src":"1980:9:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":536,"name":"bytes32","nodeType":"ElementaryTypeName","src":"1980:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"1954:36:4"},"returnParameters":{"id":539,"nodeType":"ParameterList","parameters":[],"src":"1999:0:4"},"scope":603,"src":"1936:64:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":549,"implemented":false,"kind":"function","modifiers":[],"name":"setText","nodeType":"FunctionDefinition","parameters":{"id":547,"nodeType":"ParameterList","parameters":[{"constant":false,"id":542,"name":"node","nodeType":"VariableDeclaration","scope":549,"src":"2022:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":541,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2022:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":544,"name":"key","nodeType":"VariableDeclaration","scope":549,"src":"2036:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_string_calldata_ptr","typeString":"string"},"typeName":{"id":543,"name":"string","nodeType":"ElementaryTypeName","src":"2036:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"},{"constant":false,"id":546,"name":"value","nodeType":"VariableDeclaration","scope":549,"src":"2057:21:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_string_calldata_ptr","typeString":"string"},"typeName":{"id":545,"name":"string","nodeType":"ElementaryTypeName","src":"2057:6:4","typeDescriptions":{"typeIdentifier":"t_string_storage_ptr","typeString":"string"}},"value":null,"visibility":"internal"}],"src":"2021:58:4"},"returnParameters":{"id":548,"nodeType":"ParameterList","parameters":[],"src":"2088:0:4"},"scope":603,"src":"2005:84:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":558,"implemented":false,"kind":"function","modifiers":[],"name":"setInterface","nodeType":"FunctionDefinition","parameters":{"id":556,"nodeType":"ParameterList","parameters":[{"constant":false,"id":551,"name":"node","nodeType":"VariableDeclaration","scope":558,"src":"2116:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":550,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2116:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":553,"name":"interfaceID","nodeType":"VariableDeclaration","scope":558,"src":"2130:18:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":552,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2130:6:4","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"value":null,"visibility":"internal"},{"constant":false,"id":555,"name":"implementer","nodeType":"VariableDeclaration","scope":558,"src":"2150:19:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"},"typeName":{"id":554,"name":"address","nodeType":"ElementaryTypeName","src":"2150:7:4","stateMutability":"nonpayable","typeDescriptions":{"typeIdentifier":"t_address","typeString":"address"}},"value":null,"visibility":"internal"}],"src":"2115:55:4"},"returnParameters":{"id":557,"nodeType":"ParameterList","parameters":[],"src":"2179:0:4"},"scope":603,"src":"2094:86:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":565,"implemented":false,"kind":"function","modifiers":[],"name":"supportsInterface","nodeType":"FunctionDefinition","parameters":{"id":561,"nodeType":"ParameterList","parameters":[{"constant":false,"id":560,"name":"interfaceID","nodeType":"VariableDeclaration","scope":565,"src":"2212:18:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"},"typeName":{"id":559,"name":"bytes4","nodeType":"ElementaryTypeName","src":"2212:6:4","typeDescriptions":{"typeIdentifier":"t_bytes4","typeString":"bytes4"}},"value":null,"visibility":"internal"}],"src":"2211:20:4"},"returnParameters":{"id":564,"nodeType":"ParameterList","parameters":[{"constant":false,"id":563,"name":"","nodeType":"VariableDeclaration","scope":565,"src":"2255:4:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"},"typeName":{"id":562,"name":"bool","nodeType":"ElementaryTypeName","src":"2255:4:4","typeDescriptions":{"typeIdentifier":"t_bool","typeString":"bool"}},"value":null,"visibility":"internal"}],"src":"2254:6:4"},"scope":603,"src":"2185:76:4","stateMutability":"pure","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":574,"implemented":false,"kind":"function","modifiers":[],"name":"multicall","nodeType":"FunctionDefinition","parameters":{"id":569,"nodeType":"ParameterList","parameters":[{"constant":false,"id":568,"name":"data","nodeType":"VariableDeclaration","scope":574,"src":"2285:21:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_calldata_$dyn_calldata_ptr","typeString":"bytes[]"},"typeName":{"baseType":{"id":566,"name":"bytes","nodeType":"ElementaryTypeName","src":"2285:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"id":567,"length":null,"nodeType":"ArrayTypeName","src":"2285:7:4","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_storage_$dyn_storage_ptr","typeString":"bytes[]"}},"value":null,"visibility":"internal"}],"src":"2284:23:4"},"returnParameters":{"id":573,"nodeType":"ParameterList","parameters":[{"constant":false,"id":572,"name":"results","nodeType":"VariableDeclaration","scope":574,"src":"2325:22:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_memory_$dyn_memory_ptr","typeString":"bytes[]"},"typeName":{"baseType":{"id":570,"name":"bytes","nodeType":"ElementaryTypeName","src":"2325:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"id":571,"length":null,"nodeType":"ArrayTypeName","src":"2325:7:4","typeDescriptions":{"typeIdentifier":"t_array$_t_bytes_storage_$dyn_storage_ptr","typeString":"bytes[]"}},"value":null,"visibility":"internal"}],"src":"2324:24:4"},"scope":603,"src":"2266:83:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":581,"implemented":false,"kind":"function","modifiers":[],"name":"content","nodeType":"FunctionDefinition","parameters":{"id":577,"nodeType":"ParameterList","parameters":[{"constant":false,"id":576,"name":"node","nodeType":"VariableDeclaration","scope":581,"src":"2403:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":575,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2403:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"2402:14:4"},"returnParameters":{"id":580,"nodeType":"ParameterList","parameters":[{"constant":false,"id":579,"name":"","nodeType":"VariableDeclaration","scope":581,"src":"2440:7:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":578,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2440:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"2439:9:4"},"scope":603,"src":"2386:63:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":588,"implemented":false,"kind":"function","modifiers":[],"name":"multihash","nodeType":"FunctionDefinition","parameters":{"id":584,"nodeType":"ParameterList","parameters":[{"constant":false,"id":583,"name":"node","nodeType":"VariableDeclaration","scope":588,"src":"2473:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":582,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2473:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"2472:14:4"},"returnParameters":{"id":587,"nodeType":"ParameterList","parameters":[{"constant":false,"id":586,"name":"","nodeType":"VariableDeclaration","scope":588,"src":"2510:12:4","stateVariable":false,"storageLocation":"memory","typeDescriptions":{"typeIdentifier":"t_bytes_memory_ptr","typeString":"bytes"},"typeName":{"id":585,"name":"bytes","nodeType":"ElementaryTypeName","src":"2510:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"2509:14:4"},"scope":603,"src":"2454:70:4","stateMutability":"view","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":595,"implemented":false,"kind":"function","modifiers":[],"name":"setContent","nodeType":"FunctionDefinition","parameters":{"id":593,"nodeType":"ParameterList","parameters":[{"constant":false,"id":590,"name":"node","nodeType":"VariableDeclaration","scope":595,"src":"2549:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":589,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2549:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":592,"name":"hash","nodeType":"VariableDeclaration","scope":595,"src":"2563:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":591,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2563:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"}],"src":"2548:28:4"},"returnParameters":{"id":594,"nodeType":"ParameterList","parameters":[],"src":"2585:0:4"},"scope":603,"src":"2529:57:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"},{"body":null,"documentation":null,"id":602,"implemented":false,"kind":"function","modifiers":[],"name":"setMultihash","nodeType":"FunctionDefinition","parameters":{"id":600,"nodeType":"ParameterList","parameters":[{"constant":false,"id":597,"name":"node","nodeType":"VariableDeclaration","scope":602,"src":"2613:12:4","stateVariable":false,"storageLocation":"default","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"},"typeName":{"id":596,"name":"bytes32","nodeType":"ElementaryTypeName","src":"2613:7:4","typeDescriptions":{"typeIdentifier":"t_bytes32","typeString":"bytes32"}},"value":null,"visibility":"internal"},{"constant":false,"id":599,"name":"hash","nodeType":"VariableDeclaration","scope":602,"src":"2627:19:4","stateVariable":false,"storageLocation":"calldata","typeDescriptions":{"typeIdentifier":"t_bytes_calldata_ptr","typeString":"bytes"},"typeName":{"id":598,"name":"bytes","nodeType":"ElementaryTypeName","src":"2627:5:4","typeDescriptions":{"typeIdentifier":"t_bytes_storage_ptr","typeString":"bytes"}},"value":null,"visibility":"internal"}],"src":"2612:35:4"},"returnParameters":{"id":601,"nodeType":"ParameterList","parameters":[],"src":"2656:0:4"},"scope":603,"src":"2591:66:4","stateMutability":"nonpayable","superFunction":null,"visibility":"external"}],"scope":604,"src":"164:2495:4"}],"src":"0:2660:4"},"compiler":{"name":"solc","version":"0.5.8+commit.23d335f2.Emscripten.clang"},"networks":{},"schemaVersion":"3.0.16","updatedAt":"2020-02-10T19:24:14.594Z","devdoc":{"methods":{}},"userdoc":{"methods":{},"notice":"A generic resolver interface which includes all the functions including the ones deprecated"}}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSendTxConfig=void 0;const r=n(835),i=n(981),o=n(918);t.useSendTxConfig=(e,t,n,a,s,c)=>{const l=o.useAmountConfig(e,t,a,s),u=r.useMemoConfig(e,t),f=i.useSendGasConfig(e,t,l,n);return{amountConfig:l,memoConfig:u,gasConfig:f,feeConfig:r.useFeeConfig(e,t,a,s,l,f),recipientConfig:r.useRecipientConfig(e,t,c)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useBasicTxConfig=void 0;const r=n(835),i=n(900),o=n(918);t.useBasicTxConfig=(e,t,n,a,s)=>{const c=o.useAmountConfig(e,t,a,s),l=r.useMemoConfig(e,t),u=i.useGasConfig(e,t,n.gas);return{amountConfig:c,memoConfig:l,gasConfig:u,feeConfig:r.useFeeConfig(e,t,a,s,c,u)}}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.useRegisterConfig=t.RegisterConfig=void 0;const c=a(n(0)),l=n(5),u=n(108);class f{constructor(e,t,n){this.rng=n,this._isLoading=!1,this.options=[],this._type="",this._isFinalized=!1,this.keyRingStore=e,l.makeObservable(this);for(const e of t)this.addRegisterOption(e.type,e.intro,e.page)}get mode(){return 0===this.keyRingStore.multiKeyStoreInfo.length?"create":"add"}get isLoading(){return this._isLoading}get isFinalized(){return this._isFinalized}addRegisterOption(e,t,n){this.options.push({type:e,intro:t,page:n})}setType(e){this._type=e}get type(){return this._type}get isIntro(){return""===this._type}clear(){this.setType("")}*createMnemonic(e,t,n,r){this._isLoading=!0;try{"create"===this.mode?yield this.keyRingStore.createMnemonicKey(t,n,{name:e},r):yield this.keyRingStore.addMnemonicKey(t,{name:e},r),this._isFinalized=!0}finally{this._isLoading=!1}}*createLedger(e,t,n){this._isLoading=!0;try{"create"===this.mode?yield this.keyRingStore.createLedgerKey(t,{name:e},n):yield this.keyRingStore.addLedgerKey({name:e},n),this._isFinalized=!0}finally{this._isLoading=!1}}*createPrivateKey(e,t,n){this._isLoading=!0;try{"create"===this.mode?yield this.keyRingStore.createPrivateKey(t,n,{name:e}):yield this.keyRingStore.addPrivateKey(t,{name:e}),this._isFinalized=!0}finally{this._isLoading=!1}}generateMnemonic(e=128){return s(this,void 0,void 0,(function*(){return yield u.Mnemonic.generateSeed(this.rng,e)}))}render(){return c.default.createElement("div",null,this.isIntro?this.options.map(e=>c.default.createElement(c.default.Fragment,{key:e.type},c.default.createElement(e.intro,{registerConfig:this}))):this.isFinalized?null:this.options.map(e=>{if(e.type===this.type)return c.default.createElement(c.default.Fragment,{key:e.type},c.default.createElement(e.page,{registerConfig:this}))}))}}o([l.observable],f.prototype,"_isLoading",void 0),o([l.observable.shallow],f.prototype,"options",void 0),o([l.observable],f.prototype,"_type",void 0),o([l.observable],f.prototype,"_isFinalized",void 0),o([l.computed],f.prototype,"mode",null),o([l.action],f.prototype,"addRegisterOption",null),o([l.action],f.prototype,"setType",null),o([l.action],f.prototype,"clear",null),o([l.flow],f.prototype,"createMnemonic",null),o([l.flow],f.prototype,"createLedger",null),o([l.flow],f.prototype,"createPrivateKey",null),t.RegisterConfig=f;t.useRegisterConfig=(e,t,n=(e=>Promise.resolve(crypto.getRandomValues(e))))=>{const[r]=c.useState(()=>new f(e,t,n));return r}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.useAddressBookConfig=t.AddressBookConfigMap=t.AddressBookConfig=void 0;const o=n(5),a=n(63),s=n(93),c=n(0);class l{constructor(e,t,n){this.kvStore=e,this.chainGetter=t,this.chainId=n,this._addressBookDatas=[],o.makeObservable(this),this.loadAddressBookDatas()}get addressBookDatas(){return this._addressBookDatas}setSelectHandler(e){this._selectHandler=e}selectAddressAt(e){const t=this.addressBookDatas[e];this._selectHandler&&(this._selectHandler.setRecipient(t.address),this._selectHandler.setMemo(t.memo))}*addAddressBook(e){yield this.loadAddressBookDatas(),this._addressBookDatas.push(e),yield this.saveAddressBookDatas()}*removeAddressBook(e){yield this.loadAddressBookDatas(),this._addressBookDatas.splice(e,1),yield this.saveAddressBookDatas()}*editAddressBookAt(e,t){yield this.loadAddressBookDatas(),this._addressBookDatas[e]=t,yield this.saveAddressBookDatas()}saveAddressBookDatas(){return i(this,void 0,void 0,(function*(){const e=this.chainGetter.getChain(this.chainId);yield this.kvStore.set(l.keyForChainInfo(e),o.toJS(this._addressBookDatas))}))}*loadAddressBookDatas(){const e=this.chainGetter.getChain(this.chainId),t=yield*a.toGenerator(this.kvStore.get(l.keyForChainInfo(e)));this._addressBookDatas=t||[]}static keyForChainInfo(e){return""+e.chainName}}r([o.observable],l.prototype,"_addressBookDatas",void 0),r([o.flow],l.prototype,"addAddressBook",null),r([o.flow],l.prototype,"removeAddressBook",null),r([o.flow],l.prototype,"editAddressBookAt",null),r([o.flow],l.prototype,"loadAddressBookDatas",null),t.AddressBookConfig=l;class u extends s.HasMapStore{constructor(e,t){super(n=>new l(e,t,n)),this.kvStore=e,this.chainGetter=t}getAddressBookConfig(e){return this.get(e)}}t.AddressBookConfigMap=u;t.useAddressBookConfig=(e,t,n,r)=>{const[i]=c.useState(()=>new u(e,t)),o=i.getAddressBookConfig(n);return o.setSelectHandler(r),o}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryMap=t.ObservableQuery=t.ObservableQueryBase=t.defaultOptions=void 0;const a=n(5),s=o(n(68)),c=n(63),l=n(983);t.defaultOptions={cacheMaxAge:Number.MAX_VALUE,fetchingInterval:0};class u{constructor(e,n){this._response=void 0,this._isFetching=!1,this._error=void 0,this._isStarted=!1,this.observedCount=0,this.intervalId=-1,this.becomeObserved=()=>{0===this.observedCount&&this.start(),this.observedCount++},this.becomeUnobserved=()=>{this.observedCount--,0===this.observedCount&&this.stop()},this.intervalFetch=()=>{this.isFetching||this.fetch()},this.options=Object.assign(Object.assign({},n),t.defaultOptions),this._instance=e,a.makeObservable(this),a.onBecomeObserved(this,"_response",this.becomeObserved),a.onBecomeObserved(this,"_isFetching",this.becomeObserved),a.onBecomeObserved(this,"_error",this.becomeObserved),a.onBecomeUnobserved(this,"_response",this.becomeUnobserved),a.onBecomeUnobserved(this,"_isFetching",this.becomeUnobserved),a.onBecomeUnobserved(this,"_error",this.becomeUnobserved)}get isObserved(){return this.observedCount>0}start(){this._isStarted||(this._isStarted=!0,this.onStart())}stop(){this.isStarted&&(this.onStop(),this._isStarted=!1)}get isStarted(){return this._isStarted}onStart(){this.fetch(),this.options.fetchingInterval>0&&(this.intervalId=window.setInterval(this.intervalFetch,this.options.fetchingInterval))}onStop(){this.cancel(),this.intervalId>=0&&window.clearInterval(this.intervalId)}canFetch(){return!0}get isFetching(){return this._isFetching}get instance(){return this._instance}*fetch(){if(this.isStarted&&this.canFetch()){if(this.isFetching&&this.cancel(),this._isFetching=!0,this.cancelToken=s.default.CancelToken.source(),this._response)this.setResponse(Object.assign(Object.assign({},this._response),{staled:!0}));else{const e=yield*c.toGenerator(this.loadStaledResponse());e&&e.timestamp>Date.now()-this.options.cacheMaxAge&&this.setResponse(e)}try{const e=yield*c.toGenerator(this.fetchResponse(this.cancelToken.token));this.setResponse(e),this.setError(void 0),yield this.saveResponse(e)}catch(e){if(s.default.isCancel(e))return;if(e.response){const t={status:e.response.status,statusText:e.response.statusText,message:e.response.statusText,data:e.response.data};this.setError(t)}else if(e.request){const e={status:0,statusText:"Failed to get response",message:"Failed to get response"};this.setError(e)}else{const t={status:0,statusText:e.message,message:e.message,data:e};this.setError(t)}}finally{this._isFetching=!1,this.cancelToken=void 0}}}get response(){return this._response}get error(){return this._error}setResponse(e){this._response=e}setError(e){this._error=e}cancel(){this.cancelToken&&this.cancelToken.cancel()}waitResponse(){return this.isFetching?new Promise(e=>{const t=a.autorun(()=>{this.isFetching||(e(this.response),t())})}):Promise.resolve(this.response)}waitFreshResponse(){let e=!1;const t=a.reaction(()=>this.isFetching,()=>{e||(this.fetch(),e=!0)});return new Promise(e=>{const n=a.autorun(()=>{this.isFetching||(e(this.response),t(),n())})})}}r([a.observable.ref],u.prototype,"_response",void 0),r([a.observable],u.prototype,"_isFetching",void 0),r([a.observable.ref],u.prototype,"_error",void 0),r([a.observable],u.prototype,"_isStarted",void 0),r([a.observable.ref],u.prototype,"_instance",void 0),r([a.action],u.prototype,"start",null),r([a.action],u.prototype,"stop",null),r([a.computed],u.prototype,"instance",null),r([a.flow],u.prototype,"fetch",null),r([a.action],u.prototype,"setResponse",null),r([a.action],u.prototype,"setError",null),t.ObservableQueryBase=u;class f extends u{constructor(e,t,n,r={}){super(t,r),this.kvStore=e,this._url="",a.makeObservable(this),this.setUrl(n)}get url(){return this._url}setUrl(e){this._url!==e&&(this._url=e,this.fetch())}fetchResponse(e){return i(this,void 0,void 0,(function*(){const t=yield this.instance.get(this.url,{cancelToken:e});return{data:t.data,status:t.status,staled:!1,timestamp:Date.now()}}))}getCacheKey(){return`${this.instance.name}-${this.instance.defaults.baseURL}${this.instance.getUri({url:this.url})}`}saveResponse(e){return i(this,void 0,void 0,(function*(){const t=this.getCacheKey();yield this.kvStore.set(t,e)}))}loadStaledResponse(){return i(this,void 0,void 0,(function*(){const e=this.getCacheKey(),t=yield this.kvStore.get(e);if(t)return Object.assign(Object.assign({},t),{staled:!0})}))}}r([a.observable],f.prototype,"_url",void 0),r([a.action],f.prototype,"setUrl",null),t.ObservableQuery=f;class d extends l.HasMapStore{constructor(e){super(e)}}t.ObservableQueryMap=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StoreUtils=void 0;const r=n(23);class i{static getBalancesFromCurrencies(e,t){const n=[];for(const i of t){const t=e[i.denom];if(t){let e=i.amount;e.includes(".")&&(e=e.slice(0,e.indexOf("."))),n.push(new r.CoinPretty(t,new r.Int(e)))}}return n}static getBalanceFromCurrency(e,t){const n=i.getBalancesFromCurrencies({[e.coinMinimalDenom]:e},t);return 1===n.length?n[0]:new r.CoinPretty(e,new r.Int(0)).ready(!1)}}t.StoreUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinGeckoPriceStore=void 0;const o=n(209),a=i(n(68)),s=n(23),c=n(1272),l=i(n(390));class u extends o.ObservableQuery{constructor(e,t){super(e,a.default.create({baseURL:"https://api.coingecko.com/api/v3"}),"/simple/price"),this.coinIds=[],this.vsCurrencies=[],this._supportedVsCurrencies=t}get supportedVsCurrencies(){return this._supportedVsCurrencies}getFiatCurrency(e){return this._supportedVsCurrencies[e]}canFetch(){return this.coinIds.length>0&&this.vsCurrencies.length>0}fetchResponse(e){const t=Object.create(null,{fetchResponse:{get:()=>super.fetchResponse}});return r(this,void 0,void 0,(function*(){const n=yield t.fetchResponse.call(this,e);return Object.assign(Object.assign({},n),{data:l.default(this.response?this.response.data:{},n.data)})}))}refetch(){const e=`/simple/price?ids=${this.coinIds.join(",")}&vs_currencies=${this.vsCurrencies.join(",")}`;this.setUrl(e)}getCacheKey(){return`${this.instance.name}-${this.instance.defaults.baseURL}${this.instance.getUri({url:"/simple/price"})}`}getPrice(e,t){if(!this.supportedVsCurrencies[t])return;if(this.coinIds.includes(e)&&this.vsCurrencies.includes(t)||(this.coinIds.includes(e)||this.coinIds.push(e),this.vsCurrencies.includes(t)||this.vsCurrencies.push(t),this.refetch()),!this.response)return;const n=this.response.data[e];return n?n[t]:void 0}calculatePrice(e,t){if(!t.currency.coinGeckoId)return;const n=this.supportedVsCurrencies[e];if(!n)return;const r=this.getPrice(t.currency.coinGeckoId,e);if(void 0===r)return new c.PricePretty(n,new s.Int(0)).ready(!1);const i=t.toDec(),o=new s.Dec(r.toString());return new c.PricePretty(n,i.mul(o))}}t.CoinGeckoPriceStore=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PricePretty=void 0;const r=n(221),i=n(112),o=n(149);class a{constructor(e,t){this._fiatCurrency=e,this.amount=t,this._options={separator:"",upperCase:!1,lowerCase:!1,locale:"en-US"},t instanceof r.IntPretty?this.intPretty=t:this.intPretty=new r.IntPretty(t),this.intPretty=this.intPretty.maxDecimals(e.maxDecimals).shrink(!0).trim(!0).locale(!1),this._options.locale=e.locale}get options(){return Object.assign(Object.assign({},this.intPretty.options),this._options)}get symbol(){return this._fiatCurrency.symbol}get fiatCurrency(){return this._fiatCurrency}separator(e){const t=this.clone();return t._options.separator=e,t}upperCase(e){const t=this.clone();return t._options.upperCase=e,t._options.lowerCase=!e,t}lowerCase(e){const t=this.clone();return t._options.lowerCase=e,t._options.upperCase=!e,t}precision(e){const t=this.clone();return t.intPretty=t.intPretty.precision(e),t}maxDecimals(e){const t=this.clone();return t.intPretty=t.intPretty.maxDecimals(e),t}trim(e){const t=this.clone();return t.intPretty=t.intPretty.trim(e),t}shrink(e){const t=this.clone();return t.intPretty=t.intPretty.shrink(e),t}locale(e){const t=this.clone();return t._options.locale=e,t}ready(e){const t=this.clone();return t.intPretty=t.intPretty.ready(e),t}get isReady(){return this.intPretty.isReady}add(e){const t=this.clone();return t.intPretty=t.intPretty.add(e.intPretty),t}toDec(){return this.intPretty.toDec()}toString(){let e=this.symbol;this._options.upperCase&&(e=e.toUpperCase()),this._options.lowerCase&&(e=e.toLowerCase());const t=this.toDec(),n=this.options;if(t.gt(new i.Dec(0))){const r=new i.Dec(1).quo(o.DecUtils.getPrecisionDec(this.options.maxDecimals));if(t.lt(r)){const t=parseFloat(r.toString(n.maxDecimals)).toLocaleString(n.locale,{maximumFractionDigits:n.maxDecimals});return`< ${e}${this._options.separator}${t}`}}const r=parseFloat(this.intPretty.toString()).toLocaleString(n.locale,{maximumFractionDigits:n.maxDecimals});return`${e}${this._options.separator}${r}`}clone(){const e=new a(this._fiatCurrency,this.amount);return e._options=Object.assign({},this._options),e.intPretty=this.intPretty.clone(),e}}t.PricePretty=a},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.QueriesStore=void 0;var o=n(1274);Object.defineProperty(t,"QueriesStore",{enumerable:!0,get:function(){return o.QueriesStore}}),i(n(987),t),i(n(984),t)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.QueriesStore=t.Queries=void 0;const i=n(5),o=n(920),a=n(984),s=n(987),c=n(1301),l=n(1302),u=n(1303),f=n(1304),d=n(1305);class p{constructor(e,t,n){this._querySifchainAPY=new f.ObservableQuerySifchainLiquidityAPY(e,t),this._queryBalances=new o.ObservableQueryBalances(e,t,n),this._queryBalances.addBalanceRegistry(new c.ObservableQueryCosmosBalanceRegistry(e)),this._queryBlock=new s.ObservableQueryBlock(e,t,n),this._queryAccount=new s.ObservableQueryAccount(e,t,n),this._queryMint=new s.ObservableQueryMintingInfation(e,t,n),this._queryPool=new s.ObservableQueryStakingPool(e,t,n),this._queryStakingParams=new s.ObservableQueryStakingParams(e,t,n),this._querySupplyTotal=new s.ObservableQuerySupplyTotal(e,t,n);const r=new d.ObservableQueryOsmosisMintParmas(e,t,n);this._queryInflation=new s.ObservableQueryInflation(t,n,this._queryMint,this._queryPool,this._querySupplyTotal,new u.ObservableQueryIrisMintingInfation(e,t,n),this._querySifchainAPY,new d.ObservableQueryOsmosisEpochs(e,t,n),new d.ObservableQueryOsmosisEpochProvisions(e,t,n,r),r),this._queryRewards=new s.ObservableQueryRewards(e,t,n),this._queryDelegations=new s.ObservableQueryDelegations(e,t,n),this._queryUnbondingDelegations=new s.ObservableQueryUnbondingDelegations(e,t,n),this._queryValidators=new s.ObservableQueryValidators(e,t,n),this._queryGovernance=new s.ObservableQueryGovernance(e,t,n,this._queryPool),this._queryProposalVote=new s.ObservableQueryProposalVote(e,t,n),this._queryIBCClientState=new s.ObservableQueryIBCClientState(e,t,n),this._queryIBCChannel=new s.ObservableQueryIBCChannel(e,t,n),this._queryIBCDenomTrace=new s.ObservableQueryDenomTrace(e,t,n),this._querySecretContractCodeHash=new a.ObservableQuerySecretContractCodeHash(e,t,n),this._queryBalances.addBalanceRegistry(new a.ObservableQuerySecret20BalanceRegistry(e,this._querySecretContractCodeHash)),this._querySecret20ContractInfo=new l.ObservableQuerySecret20ContractInfo(e,t,n,this._querySecretContractCodeHash)}getQueryBlock(){return this._queryBlock}getQueryAccount(){return this._queryAccount}getQueryMint(){return this._queryMint}getQueryPool(){return this._queryPool}getQueryStakingParams(){return this._queryStakingParams}getQuerySupplyTotal(){return this._querySupplyTotal}getQueryInflation(){return this._queryInflation}getQueryRewards(){return this._queryRewards}getQueryBalances(){return this._queryBalances}getQueryDelegations(){return this._queryDelegations}getQueryUnbondingDelegations(){return this._queryUnbondingDelegations}getQueryValidators(){return this._queryValidators}getQueryGovernance(){return this._queryGovernance}getQueryProposalVote(){return this._queryProposalVote}getQueryIBCClientState(){return this._queryIBCClientState}getQueryIBCCChannel(){return this._queryIBCChannel}getQueryIBCDenomTrace(){return this._queryIBCDenomTrace}getQuerySecretContractCodeHash(){return this._querySecretContractCodeHash}getQuerySecret20ContractInfo(){return this._querySecret20ContractInfo}getQuerySifchainAPY(){return this._querySifchainAPY}}t.Queries=p;class h{constructor(e,t){this.kvStore=e,this.chainGetter=t,this.queriesMap=new Map,i.makeObservable(this)}get(e){if(!this.queriesMap.has(e)){const t=new p(this.kvStore,e,this.chainGetter);i.runInAction(()=>{this.queriesMap.set(e,t)})}return this.queriesMap.get(e)}}r([i.observable.shallow],h.prototype,"queriesMap",void 0),t.QueriesStore=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQuerySecretContractCodeHash=t.ObservableQuerySecretContractCodeHashInner=void 0;const r=n(89);class i extends r.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,`/wasm/contract/${r}/code-hash`),this.contractAddress=r}canFetch(){return this.contractAddress.length>0}}t.ObservableQuerySecretContractCodeHashInner=i;class o extends r.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>new i(this.kvStore,this.chainId,this.chainGetter,e)),this.kvStore=e,this.chainId=t,this.chainGetter=n}getQueryContract(e){return this.get(e)}}t.ObservableQuerySecretContractCodeHash=o},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQuerySecret20BalanceRegistry=t.ObservableQuerySecret20BalanceInner=t.ObservableQuerySecret20Balance=void 0;const o=n(5),a=n(63),s=n(23),c=n(920),l=n(985),u=n(986);class f extends l.ObservableSecretContractChainQuery{constructor(e,t,n,r,i,a,s){super(e,t,n,r,{},s),this.contractAddress=r,this.bech32Address=i,this.parent=a,this.querySecretContractCodeHash=s,o.makeObservable(this),this.viewingKey?this.setObj({balance:{address:i,key:this.viewingKey}}):this.setError({status:0,statusText:"Viewing key is empty",message:"Viewing key is empty"})}get viewingKey(){const e=this.parent.currency;return"type"in e&&"secret20"===e.type?e.viewingKey:""}canFetch(){return super.canFetch()&&""!==this.bech32Address&&""!==this.viewingKey}fetchResponse(e){const t=Object.create(null,{fetchResponse:{get:()=>super.fetchResponse}});var n;return i(this,void 0,void 0,(function*(){const r=yield t.fetchResponse.call(this,e);if(r.data.viewing_key_error)throw new u.WrongViewingKeyError(null===(n=r.data.viewing_key_error)||void 0===n?void 0:n.msg);return r}))}}r([o.computed],f.prototype,"viewingKey",null),t.ObservableQuerySecret20Balance=f;class d extends c.ObservableQueryBalanceInner{constructor(e,t,n,r,i,a){super(e,t,n,"",r),this.bech32Address=i,this.querySecretContractCodeHash=a,o.makeObservable(this),this.querySecret20Balance=new f(e,t,n,r.contractAddress,i,this,this.querySecretContractCodeHash)}canFetch(){return!1}*fetch(){yield this.querySecret20Balance.fetch()}get isFetching(){return this.querySecretContractCodeHash.getQueryContract(this.denomHelper.contractAddress).isFetching||this.querySecret20Balance.isFetching}get error(){return this.querySecretContractCodeHash.getQueryContract(this.denomHelper.contractAddress).error||this.querySecret20Balance.error}get balance(){const e=this.denomHelper.denom,t=this.chainGetter.getChain(this.chainId).currencies.find(t=>t.coinMinimalDenom===e);if(!t)throw new Error("Unknown currency: "+e);return this.querySecret20Balance.response&&this.querySecret20Balance.response.data.balance?new s.CoinPretty(t,new s.Int(this.querySecret20Balance.response.data.balance.amount)):new s.CoinPretty(t,new s.Int(0)).ready(!1)}}r([o.override],d.prototype,"fetch",null),r([o.computed],d.prototype,"balance",null),t.ObservableQuerySecret20BalanceInner=d;t.ObservableQuerySecret20BalanceRegistry=class{constructor(e,t){this.kvStore=e,this.querySecretContractCodeHash=t}getBalanceInner(e,t,n,r){const i=new a.DenomHelper(r);if("secret20"===i.type)return new d(this.kvStore,e,t,i,n,this.querySecretContractCodeHash)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1279),t),i(n(989),t),i(n(988),t),i(n(1280),t)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryGovernance=void 0;const i=n(89),o=n(5),a=n(988),s=n(23),c=n(389),l=n(989);class u extends i.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,"/gov/proposals"),this._queryPool=r,this.paramDeposit=void 0,this.paramVoting=void 0,this.paramTally=void 0,this.getProposal=c.computedFn(e=>this.proposals.find(t=>t.id===e)),o.makeObservable(this)}getQueryPool(){return this._queryPool}getQueryParamDeposit(){return this.paramDeposit||o.runInAction(()=>{this.paramDeposit=new a.ObservableQueryGovParamDeposit(this.kvStore,this.chainId,this.chainGetter)}),this.paramDeposit}getQueryParamVoting(){return this.paramVoting||o.runInAction(()=>{this.paramVoting=new a.ObservableQueryGovParamVoting(this.kvStore,this.chainId,this.chainGetter)}),this.paramVoting}getQueryParamTally(){return this.paramTally||o.runInAction(()=>{this.paramTally=new a.ObservableQueryGovParamTally(this.kvStore,this.chainId,this.chainGetter)}),this.paramTally}get quorum(){const e=this.getQueryParamTally();if(!e.response)return new s.IntPretty(new s.Int(0)).ready(!1);let t=new s.Dec(e.response.data.result.quorum);return t=t.mulTruncate(s.DecUtils.getPrecisionDec(2)),new s.IntPretty(t)}get proposals(){if(!this.response)return[];const e=[];for(const t of this.response.data.result)e.push(new l.ObservableQueryProposal(this.kvStore,this.chainId,this.chainGetter,t,this));return e.reverse()}}r([o.observable.ref],u.prototype,"paramDeposit",void 0),r([o.observable.ref],u.prototype,"paramVoting",void 0),r([o.observable.ref],u.prototype,"paramTally",void 0),r([o.computed],u.prototype,"quorum",null),r([o.computed],u.prototype,"proposals",null),t.ObservableQueryGovernance=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryProposalVote=t.ObservableQueryProposalVoteInner=void 0;const r=n(89);class i extends r.ObservableChainQuery{constructor(e,t,n,r,i){super(e,t,n,`/gov/proposals/${r}/votes/${i}`),this.proposalId=r,this.bech32Address=i}get vote(){return this.response?"string"==typeof this.response.data.result.option?this.response.data.result.option:(()=>{switch(this.response.data.result.option){case 1:return"Yes";case 2:return"Abstain";case 3:return"No";case 4:return"NoWithVeto";default:return"Unspecified"}})():"Unspecified"}canFetch(){return this.bech32Address.length>0}}t.ObservableQueryProposalVoteInner=i;class o extends r.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>{const{proposalId:t,voter:n}=JSON.parse(e);return new i(this.kvStore,this.chainId,this.chainGetter,t,n)}),this.kvStore=e,this.chainId=t,this.chainGetter=n}getVote(e,t){const n=JSON.stringify({proposalId:e,voter:t});return this.get(n)}}t.ObservableQueryProposalVote=o},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1282),t),i(n(1283),t),i(n(1284),t),i(n(1285),t),i(n(1286),t),i(n(1287),t)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryDelegations=t.ObservableQueryDelegationsInner=void 0;const i=n(89),o=n(23),a=n(5),s=n(389);class c extends i.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,`/staking/delegators/${r}/delegations`),this.getDelegationTo=s.computedFn(e=>{const t=this.delegations,n=this.chainGetter.getChain(this.chainId).stakeCurrency;if(!this.response)return new o.CoinPretty(n,new o.Int(0)).ready(!1);for(const r of t)if(r.validator_address===e)return new o.CoinPretty(n,new o.Int("string"==typeof r.balance?r.balance:r.balance.amount));return new o.CoinPretty(n,new o.Int(0))}),a.makeObservable(this),this.bech32Address=r}canFetch(){return this.bech32Address.length>0}get total(){const e=this.chainGetter.getChain(this.chainId).stakeCurrency;if(!this.response)return new o.CoinPretty(e,new o.Int(0)).ready(!1);let t=new o.Int(0);for(const e of this.response.data.result)t="string"==typeof e.balance?t.add(new o.Int(e.balance)):t.add(new o.Int(e.balance.amount));return new o.CoinPretty(e,t)}get delegationBalances(){if(!this.response)return[];const e=this.chainGetter.getChain(this.chainId).stakeCurrency,t=[];for(const n of this.response.data.result){const r="string"==typeof n.balance?n.balance:n.balance.amount;t.push({validatorAddress:"validator_address"in n?n.validator_address:n.delegation.validator_address,balance:new o.CoinPretty(e,new o.Int(r))})}return t}get delegations(){if(!this.response)return[];const e=this.response.data.result;return e.length>0&&"delegation"in e[0]?e.map(e=>({balance:e.balance,delegator_address:e.delegation.delegator_address,validator_address:e.delegation.validator_address,shares:e.delegation.shares})):e}}r([a.computed],c.prototype,"total",null),r([a.computed],c.prototype,"delegationBalances",null),r([a.computed],c.prototype,"delegations",null),t.ObservableQueryDelegationsInner=c;class l extends i.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>new c(this.kvStore,this.chainId,this.chainGetter,e)),this.kvStore=e,this.chainId=t,this.chainGetter=n}getQueryBech32Address(e){return this.get(e)}}t.ObservableQueryDelegations=l},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryRewards=t.ObservableQueryRewardsInner=void 0;const i=n(89),o=n(5),a=n(23),s=n(209),c=n(389);class l extends i.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,`/distribution/delegators/${r}/rewards`),this.getRewardsOf=c.computedFn(e=>{var t,n,r;const i=this.chainGetter.getChain(this.chainId).currencies.reduce((e,t)=>("type"in t||(e[t.coinMinimalDenom]=t),e),{}),o=null===(n=null===(t=this.response)||void 0===t?void 0:t.data.result.rewards)||void 0===n?void 0:n.find(t=>t.validator_address===e);return s.StoreUtils.getBalancesFromCurrencies(i,null!==(r=null==o?void 0:o.reward)&&void 0!==r?r:[])}),this.getStakableRewardOf=c.computedFn(e=>{var t,n,r;const i=this.chainGetter.getChain(this.chainId),o=null===(n=null===(t=this.response)||void 0===t?void 0:t.data.result.rewards)||void 0===n?void 0:n.find(t=>t.validator_address===e);return s.StoreUtils.getBalanceFromCurrency(i.stakeCurrency,null!==(r=null==o?void 0:o.reward)&&void 0!==r?r:[])}),this.getUnstakableRewardsOf=c.computedFn(e=>{var t,n,r;const i=this.chainGetter.getChain(this.chainId),o=i.currencies.reduce((e,t)=>("type"in t||t.coinMinimalDenom===i.stakeCurrency.coinMinimalDenom||(e[t.coinMinimalDenom]=t),e),{}),a=null===(n=null===(t=this.response)||void 0===t?void 0:t.data.result.rewards)||void 0===n?void 0:n.find(t=>t.validator_address===e);return s.StoreUtils.getBalancesFromCurrencies(o,null!==(r=null==a?void 0:a.reward)&&void 0!==r?r:[])}),this.getDescendingPendingRewardValidatorAddresses=c.computedFn(e=>{var t,n;if(!this.response)return[];const r=this.chainGetter.getChain(this.chainId),i=null!==(n=null===(t=this.response.data.result.rewards)||void 0===t?void 0:t.slice())&&void 0!==n?n:[];return i.sort((e,t)=>{var n,i;const o=s.StoreUtils.getBalanceFromCurrency(r.stakeCurrency,null!==(n=e.reward)&&void 0!==n?n:[]),a=s.StoreUtils.getBalanceFromCurrency(r.stakeCurrency,null!==(i=t.reward)&&void 0!==i?i:[]);return o.toDec().gt(a.toDec())?-1:1}),i.filter(e=>{if(e.reward)for(const t of e.reward){if(new a.Dec(t.amount).truncate().gt(new a.Int(0)))return!0}return!1}).slice(0,e).map(e=>e.validator_address)}),o.makeObservable(this),this.bech32Address=r}canFetch(){return this.bech32Address.length>0}get rewards(){var e,t;const n=this.chainGetter.getChain(this.chainId).currencies.reduce((e,t)=>("type"in t||(e[t.coinMinimalDenom]=t),e),{});return s.StoreUtils.getBalancesFromCurrencies(n,null!==(t=null===(e=this.response)||void 0===e?void 0:e.data.result.total)&&void 0!==t?t:[])}get stakableReward(){var e,t;const n=this.chainGetter.getChain(this.chainId);return s.StoreUtils.getBalanceFromCurrency(n.stakeCurrency,null!==(t=null===(e=this.response)||void 0===e?void 0:e.data.result.total)&&void 0!==t?t:[])}get unstakableRewards(){var e,t;const n=this.chainGetter.getChain(this.chainId),r=n.currencies.reduce((e,t)=>("type"in t||t.coinMinimalDenom===n.stakeCurrency.coinMinimalDenom||(e[t.coinMinimalDenom]=t),e),{});return s.StoreUtils.getBalancesFromCurrencies(r,null!==(t=null===(e=this.response)||void 0===e?void 0:e.data.result.total)&&void 0!==t?t:[])}get pendingRewardValidatorAddresses(){var e;if(!this.response)return[];const t=[];for(const n of null!==(e=this.response.data.result.rewards)&&void 0!==e?e:[])if(n.reward)for(const e of n.reward){if(new a.Dec(e.amount).truncate().gt(new a.Int(0))){t.push(n.validator_address);break}}return t}}r([o.computed],l.prototype,"rewards",null),r([o.computed],l.prototype,"stakableReward",null),r([o.computed],l.prototype,"unstakableRewards",null),r([o.computed],l.prototype,"pendingRewardValidatorAddresses",null),t.ObservableQueryRewardsInner=l;class u extends i.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>new l(this.kvStore,this.chainId,this.chainGetter,e)),this.kvStore=e,this.chainId=t,this.chainGetter=n}getQueryBech32Address(e){return this.get(e)}}t.ObservableQueryRewards=u},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryUnbondingDelegations=t.ObservableQueryUnbondingDelegationsInner=void 0;const i=n(89),o=n(23),a=n(5);class s extends i.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,`/staking/delegators/${r}/unbonding_delegations`),a.makeObservable(this),this.bech32Address=r}canFetch(){return this.bech32Address.length>0}get total(){const e=this.chainGetter.getChain(this.chainId).stakeCurrency;if(!this.response)return new o.CoinPretty(e,new o.Int(0)).ready(!1);let t=new o.Int(0);for(const e of this.response.data.result)for(const n of e.entries)t=t.add(new o.Int(n.balance));return new o.CoinPretty(e,t)}get unbondingBalances(){const e=this.unbondings,t=this.chainGetter.getChain(this.chainId).stakeCurrency,n=[];for(const r of e){const e=[];for(const n of r.entries)e.push({creationHeight:new o.Int(n.creation_height),completionTime:n.completion_time,balance:new o.CoinPretty(t,new o.Int(n.balance))});n.push({validatorAddress:r.validator_address,entries:e})}return n}get unbondings(){return this.response?this.response.data.result:[]}}r([a.computed],s.prototype,"total",null),r([a.computed],s.prototype,"unbondingBalances",null),r([a.computed],s.prototype,"unbondings",null),t.ObservableQueryUnbondingDelegationsInner=s;class c extends i.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>new s(this.kvStore,this.chainId,this.chainGetter,e)),this.kvStore=e,this.chainId=t,this.chainGetter=n}getQueryBech32Address(e){return this.get(e)}}t.ObservableQueryUnbondingDelegations=c},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryValidators=t.ObservableQueryValidatorsInner=t.ObservableQueryValidatorThumbnail=void 0;const a=n(89),s=n(919),c=n(5),l=n(209),u=o(n(68)),f=o(n(412)),d=n(23),p=n(389);class h extends l.ObservableQuery{constructor(e,t){super(e,u.default.create({baseURL:"https://keybase.io/"}),"_/api/1.0/user/lookup.json?fields=pictures&key_suffix="+t.description.identity),c.makeObservable(this),this.validator=t}canFetch(){return""!==this.validator.description.identity}fetchResponse(e){const t=Object.create(null,{fetchResponse:{get:()=>super.fetchResponse}});return i(this,void 0,void 0,(function*(){return yield h.fetchingThumbnailQueue.add(()=>t.fetchResponse.call(this,e))}))}get thumbnail(){var e,t,n,r;return 0===(null===(e=this.response)||void 0===e?void 0:e.data.status.code)&&this.response.data.them&&this.response.data.them.length>0&&null!==(r=null===(n=null===(t=this.response.data.them[0].pictures)||void 0===t?void 0:t.primary)||void 0===n?void 0:n.url)&&void 0!==r?r:""}}h.fetchingThumbnailQueue=new f.default({concurrency:3}),r([c.computed],h.prototype,"thumbnail",null),t.ObservableQueryValidatorThumbnail=h;class m extends a.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,"/staking/validators?status="+r),this.status=r,this.thumbnailMap=new Map,this.getValidator=p.computedFn(e=>this.validators.find(t=>t.operator_address===e)),this.getValidatorThumbnail=p.computedFn(e=>{const t=this.validators.find(t=>t.operator_address===e);if(!t)return"";if(!t.description.identity)return"";const n=t.description.identity;return this.thumbnailMap.has(n)||c.runInAction(()=>{this.thumbnailMap.set(n,new h(this.kvStore,t))}),this.thumbnailMap.get(n).thumbnail}),this.getValidatorShare=p.computedFn(e=>{const t=this.validators.find(t=>t.operator_address===e);if(!t)return;const n=this.chainGetter.getChain(this.chainId).stakeCurrency,r=new d.Dec(t.delegator_shares).truncate();return new d.CoinPretty(n,r)}),c.makeObservable(this),c.autorun(()=>{const e=this.chainGetter.getChain(this.chainId);if(e.features&&e.features.includes("stargate")){const e=(()=>{switch(this.status){case s.BondStatus.Bonded:return"/staking/validators?status=BOND_STATUS_BONDED";case s.BondStatus.Unbonded:return"/staking/validators?status=BOND_STATUS_UNBONDED";case s.BondStatus.Unbonding:return"/staking/validators?status=BOND_STATUS_UNBONDING"}})();this.setUrl(e)}})}get validators(){var e;return(null===(e=this.response)||void 0===e?void 0:e.data.result)?this.response.data.result:[]}get validatorsSortedByVotingPower(){return this.validators.sort((e,t)=>new d.Dec(e.delegator_shares).gt(new d.Dec(t.delegator_shares))?-1:1)}}r([c.observable.shallow],m.prototype,"thumbnailMap",void 0),r([c.computed],m.prototype,"validators",null),r([c.computed],m.prototype,"validatorsSortedByVotingPower",null),t.ObservableQueryValidatorsInner=m;class b extends a.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>new m(this.kvStore,this.chainId,this.chainGetter,e)),this.kvStore=e,this.chainId=t,this.chainGetter=n}getQueryStatus(e=s.BondStatus.Bonded){return this.get(e)}}t.ObservableQueryValidators=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryStakingPool=void 0;const r=n(89);class i extends r.ObservableChainQuery{constructor(e,t,n){super(e,t,n,"/staking/pool")}}t.ObservableQueryStakingPool=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryStakingParams=void 0;const r=n(89);class i extends r.ObservableChainQuery{constructor(e,t,n){super(e,t,n,"/staking/parameters")}}t.ObservableQueryStakingParams=i},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1289),t),i(n(1290),t),i(n(1291),t)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryInflation=void 0;const i=n(5),o=n(23);class a{constructor(e,t,n,r,o,a,s,c,l,u){this.chainId=e,this.chainGetter=t,this._queryMint=n,this._queryPool=r,this._querySupplyTotal=o,this._queryIrisMint=a,this._querySifchainAPY=s,this._queryOsmosisEpochs=c,this._queryOsmosisEpochProvisions=l,this._queryOsmosisMintParams=u,i.makeObservable(this)}get error(){var e,t;return null!==(t=null!==(e=this._queryMint.error)&&void 0!==e?e:this._queryPool.error)&&void 0!==t?t:this._querySupplyTotal.getQueryStakeDenom().error}get isFetching(){return this._queryMint.isFetching||this._queryPool.isFetching||this._querySupplyTotal.getQueryStakeDenom().isFetching}get inflation(){var e,t,n,r;try{let i;const a=this.chainGetter.getChain(this.chainId);if(a.chainId.startsWith("irishub"))i=new o.Dec(null!==(t=null===(e=this._queryIrisMint.response)||void 0===e?void 0:e.data.result.inflation)&&void 0!==t?t:"0").mul(o.DecUtils.getPrecisionDec(2));else{if(a.chainId.startsWith("sifchain"))return new o.IntPretty(new o.Dec(this._querySifchainAPY.liquidityAPY.toString()));if(a.chainId.startsWith("osmosis")){const e=this._queryOsmosisMintParams;if(e.epochIdentifier){const t=this._queryOsmosisEpochs.getEpoch(e.epochIdentifier).duration;if(t){const n=this._queryOsmosisEpochProvisions.epochProvisions;if(n&&this._querySupplyTotal.getQueryStakeDenom().response){const r=new o.Dec(n.toDec().mul(e.distributionProportions.staking).truncate().toString()).mul(new o.Dec((31536e3/t).toString())),a=o.DecUtils.getPrecisionDec(8);i=r.quo(a).mul(o.DecUtils.getPrecisionDec(2))}}}}else i=new o.Dec(null!==(r=null===(n=this._queryMint.response)||void 0===n?void 0:n.data.result)&&void 0!==r?r:"0").mul(o.DecUtils.getPrecisionDec(2))}if(!i||i.equals(new o.Dec(0)))return new o.IntPretty(new o.Int(0)).ready(!1);if(this._queryPool.response&&this._querySupplyTotal.getQueryStakeDenom().response){const e=new o.Dec(this._queryPool.response.data.result.bonded_tokens),t=(()=>{if(a.chainId.startsWith("osmosis"))return o.DecUtils.getPrecisionDec(14).toString();const e=this._querySupplyTotal.getQueryStakeDenom().response.data.result;return"string"==typeof e?e:e.amount})(),n=new o.Dec(t);if(n.gt(new o.Dec(0))){const t=e.quo(n);i=i.quo(t)}}return new o.IntPretty(i)}catch(e){return console.log(e),new o.IntPretty(new o.Int(0)).ready(!1)}}}r([i.computed],a.prototype,"inflation",null),t.ObservableQueryInflation=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryMintingInfation=void 0;const r=n(89);class i extends r.ObservableChainQuery{constructor(e,t,n){super(e,t,n,"/minting/inflation")}}t.ObservableQueryMintingInfation=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQuerySupplyTotal=t.ObservableChainQuerySupplyTotal=void 0;const r=n(89),i=n(5);class o extends r.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,"/supply/total/"+r),i.autorun(()=>{const e=this.chainGetter.getChain(this.chainId);if(e.features&&e.features.includes("stargate")){const e="/bank/total/"+r;this.setUrl(e)}})}}t.ObservableChainQuerySupplyTotal=o;class a extends r.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>new o(this.kvStore,this.chainId,this.chainGetter,e)),this.kvStore=e,this.chainId=t,this.chainGetter=n}getQueryDenom(e){return this.get(e)}getQueryStakeDenom(){const e=this.chainGetter.getChain(this.chainId);return this.get(e.stakeCurrency.coinMinimalDenom)}}t.ObservableQuerySupplyTotal=a},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryAccount=t.ObservableQueryAccountInner=void 0;const i=n(89),o=n(5),a=n(11);class s extends i.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,"/auth/accounts/"+r),this.bech32Address=r,o.makeObservable(this)}get sequence(){if(!this.response)return"0";try{return a.BaseAccount.fromAminoJSON(this.response.data,this.bech32Address).getSequence().toString()}catch(e){return"0"}}}r([o.computed],s.prototype,"sequence",null),t.ObservableQueryAccountInner=s;class c extends i.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>new s(this.kvStore,this.chainId,this.chainGetter,e)),this.kvStore=e,this.chainId=t,this.chainGetter=n}getQueryBech32Address(e){return this.get(e)}}t.ObservableQueryAccount=c},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1294),t),i(n(1295),t),i(n(1296),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryIBCChannel=void 0;const r=n(89);class i extends r.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>{const t=JSON.parse(e);return new r.ObservableChainQuery(this.kvStore,this.chainId,this.chainGetter,`/ibc/core/channel/v1beta1/channels/${t.channelId}/ports/${t.portId}`)}),this.kvStore=e,this.chainId=t,this.chainGetter=n}getTransferChannel(e){return this.getChannel("transfer",e)}getChannel(e,t){const n=JSON.stringify({portId:e,channelId:t});return this.get(n)}}t.ObservableQueryIBCChannel=i},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryIBCClientState=t.ObservableChainQueryClientState=void 0;const i=n(89),o=n(5);class a extends i.ObservableChainQuery{constructor(e,t,n,r,i){super(e,t,n,`/ibc/core/channel/v1beta1/channels/${i}/ports/${r}/client_state`)}get clientChainId(){var e,t;if(this.response)return null===(t=null===(e=this.response.data.identified_client_state)||void 0===e?void 0:e.client_state)||void 0===t?void 0:t.chain_id}}r([o.computed],a.prototype,"clientChainId",null),t.ObservableChainQueryClientState=a;class s extends i.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>{const t=JSON.parse(e);return new a(this.kvStore,this.chainId,this.chainGetter,t.portId,t.channelId)}),this.kvStore=e,this.chainId=t,this.chainGetter=n}getClientStateOnTransferPort(e){return this.getClientState("transfer",e)}getClientState(e,t){const n=JSON.stringify({portId:e,channelId:t});return this.get(n)}}t.ObservableQueryIBCClientState=s},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryDenomTrace=t.ObservableChainQueryDenomTrace=void 0;const i=n(89),o=n(5);class a extends i.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,"/ibc/applications/transfer/v1beta1/denom_traces/"+r),this.hash=r}get paths(){if(!this.response)return[];const e=this.response.data.denom_trace.path.split("/");if(e.length%2!=0)return console.log("Failed to parse paths",e),[];const t=[];for(let n=0;n<e.length;n+=2)t.push(e.slice(n,n+2));return t.map(e=>({portId:e[0],channelId:e[1]}))}get denom(){if(this.response)return this.response.data.denom_trace.base_denom}get denomTrace(){if(this.response&&this.denom)return{denom:this.denom,paths:this.paths}}}r([o.computed],a.prototype,"paths",null),r([o.computed],a.prototype,"denomTrace",null),t.ObservableChainQueryDenomTrace=a;class s extends i.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>new a(this.kvStore,this.chainId,this.chainGetter,e)),this.kvStore=e,this.chainId=t,this.chainGetter=n}getDenomTrace(e){return this.get(e)}}t.ObservableQueryDenomTrace=s},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryBlock=t.ObservableQueryBlockInner=void 0;const i=n(89),o=n(5),a=n(23);class s extends i.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,"/blocks/"+r),this.paramHeight=r,o.makeObservable(this)}get height(){return this.response?new a.Int(this.response.data.block.header.height):new a.Int("0")}}r([o.computed],s.prototype,"height",null),t.ObservableQueryBlockInner=s;class c extends i.ObservableChainQueryMap{constructor(e,t,n){super(e,t,n,e=>{const t="latest"===e?e:parseInt(e);return new s(this.kvStore,this.chainId,this.chainGetter,t)}),this.kvStore=e,this.chainId=t,this.chainGetter=n}getBlock(e){return this.get(e.toString())}}t.ObservableQueryBlock=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryCosmosBalanceRegistry=t.ObservableQueryCosmosBalances=t.ObservableQueryBalanceNative=void 0;const i=n(63),o=n(5),a=n(23),s=n(209),c=n(920),l=n(89);class u extends c.ObservableQueryBalanceInner{constructor(e,t,n,r,i){super(e,t,n,"",r),this.nativeBalances=i,o.makeObservable(this)}canFetch(){return!1}get isFetching(){return this.nativeBalances.isFetching}get error(){return this.nativeBalances.error}get response(){return this.nativeBalances.response}*fetch(){yield this.nativeBalances.fetch()}get balance(){const e=this.currency;return this.nativeBalances.response?s.StoreUtils.getBalanceFromCurrency(e,this.nativeBalances.response.data.result):new a.CoinPretty(e,new a.Int(0)).ready(!1)}}r([o.override],u.prototype,"fetch",null),r([o.computed],u.prototype,"balance",null),t.ObservableQueryBalanceNative=u;class f extends l.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,"/bank/balances/"+r),this.bech32Address=r}canFetch(){return this.bech32Address.length>0}}t.ObservableQueryCosmosBalances=f;t.ObservableQueryCosmosBalanceRegistry=class{constructor(e){this.kvStore=e,this.nativeBalances=new Map}getBalanceInner(e,t,n,r){const o=new i.DenomHelper(r);if("native"!==o.type)return;const a=`${e}/${n}`;return this.nativeBalances.has(a)||this.nativeBalances.set(a,new f(this.kvStore,e,t,n)),new u(this.kvStore,e,t,o,this.nativeBalances.get(a))}}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQuerySecret20ContractInfo=t.ObservableQuerySecret20ContactInfoInner=void 0;const i=n(89),o=n(5),a=n(985);class s extends a.ObservableSecretContractChainQuery{constructor(e,t,n,r,i){super(e,t,n,r,{token_info:{}},i),this.contractAddress=r,this.querySecretContractCodeHash=i,o.makeObservable(this)}get error(){return super.error||this.querySecretContractCodeHash.getQueryContract(this.contractAddress).error}get tokenInfo(){if(this.response)return this.response.data.token_info}}r([o.computed],s.prototype,"tokenInfo",null),t.ObservableQuerySecret20ContactInfoInner=s;class c extends i.ObservableChainQueryMap{constructor(e,t,n,r){super(e,t,n,e=>new s(this.kvStore,this.chainId,this.chainGetter,e,r)),this.kvStore=e,this.chainId=t,this.chainGetter=n,this.querySecretContractCodeHash=r}getQueryContract(e){return this.get(e)}}t.ObservableQuerySecret20ContractInfo=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryIrisMintingInfation=void 0;const r=n(89);class i extends r.ObservableChainQuery{constructor(e,t,n){super(e,t,n,"/mint/params")}}t.ObservableQueryIrisMintingInfation=i},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQuerySifchainLiquidityAPY=void 0;const o=n(209),a=i(n(68)),s=n(5);class c extends o.ObservableQuery{constructor(e,t){super(e,a.default.create({baseURL:"https://vtdbgplqd6.execute-api.us-west-2.amazonaws.com/"}),"default/liqvalrewards"),this.chainId=t,s.makeObservable(this)}canFetch(){return this.chainId.startsWith("sifchain")}get liquidityAPY(){return this.response?Number(this.response.data.body.liqValRewards):0}}r([s.computed],c.prototype,"liquidityAPY",null),t.ObservableQuerySifchainLiquidityAPY=c},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1306),t),i(n(1307),t),i(n(1308),t)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryOsmosisEpochs=t.ObservableQueryOsmosisEpochsInner=void 0;const i=n(89),o=n(5);class a{constructor(e,t){this.identifier=e,this.queryEpochs=t}get epoch(){var e;return null===(e=this.queryEpochs.response)||void 0===e?void 0:e.data.epochs.find(e=>e.identifier===this.identifier)}get duration(){return this.epoch?parseInt(this.epoch.duration.replace("s","")):0}get startTime(){return this.epoch?new Date(this.epoch.current_epoch_start_time):new Date(0)}get endTime(){const e=this.startTime;return this.duration?new Date(e.getTime()+1e3*this.duration):e}}r([o.computed],a.prototype,"epoch",null),r([o.computed],a.prototype,"duration",null),r([o.computed],a.prototype,"startTime",null),r([o.computed],a.prototype,"endTime",null),t.ObservableQueryOsmosisEpochsInner=a;class s extends i.ObservableChainQuery{constructor(e,t,n){super(e,t,n,"/osmosis/epochs/v1beta1/epochs"),this.map=new Map}getEpoch(e){if(!this.map.has(e)){const t=new a(e,this);this.map.set(e,t)}return this.map.get(e)}}r([o.observable.shallow],s.prototype,"map",void 0),t.ObservableQueryOsmosisEpochs=s},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryOsmosisEpochProvisions=void 0;const i=n(89),o=n(5),a=n(23);class s extends i.ObservableChainQuery{constructor(e,t,n,r){super(e,t,n,"/osmosis/mint/v1beta1/epoch_provisions"),this.queryMintParmas=r,o.makeObservable(this)}get epochProvisions(){if(!this.response||!this.queryMintParmas.mintDenom)return;const e=this.chainGetter.getChain(this.chainId).currencies.find(e=>e.coinMinimalDenom===this.queryMintParmas.mintDenom);if(!e)throw new Error("Unknown currency");let t=this.response.data.epoch_provisions;return t.includes(".")&&(t=t.slice(0,t.indexOf("."))),new a.CoinPretty(e,new a.Int(t))}}r([o.computed],s.prototype,"epochProvisions",null),t.ObservableQueryOsmosisEpochProvisions=s},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ObservableQueryOsmosisMintParmas=void 0;const i=n(89),o=n(5),a=n(23);class s extends i.ObservableChainQuery{constructor(e,t,n){super(e,t,n,"/osmosis/mint/v1beta1/params"),o.makeObservable(this)}get mintDenom(){var e;return null===(e=this.response)||void 0===e?void 0:e.data.params.mint_denom}get epochIdentifier(){var e;return null===(e=this.response)||void 0===e?void 0:e.data.params.epoch_identifier}get distributionProportions(){return this.response?{staking:new a.Dec(this.response.data.params.distribution_proportions.staking),poolIncentives:new a.Dec(this.response.data.params.distribution_proportions.pool_incentives),developerRewards:new a.Dec(this.response.data.params.distribution_proportions.developer_rewards)}:{staking:new a.Dec(0),poolIncentives:new a.Dec(0),developerRewards:new a.Dec(0)}}}r([o.computed],s.prototype,"distributionProportions",null),t.ObservableQueryOsmosisMintParmas=s},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ChainStore=void 0;const i=n(5),o=n(11),a=n(389);class s{constructor(e){this._chainInfoOverriders=[],this.getOverridedChainInfo=a.computedFn(e=>{for(const t of this._chainInfoOverriders)e=t(e);return e}),this._chainInfos=e,i.makeObservable(this),a.keepAlive(this,"chainInfos")}get chainInfos(){return this._chainInfos.map(e=>this.getOverridedChainInfo(e))}getChain(e){const t=o.ChainIdHelper.parse(e),n=this.chainInfos.find(e=>o.ChainIdHelper.parse(e.chainId).identifier===t.identifier);if(!n)throw new Error("Unknown chain info: "+e);return n}hasChain(e){const t=o.ChainIdHelper.parse(e);return null!=this.chainInfos.find(e=>o.ChainIdHelper.parse(e.chainId).identifier===t.identifier)}registerChainInfoOverrider(e){this._chainInfoOverriders.push(e)}setChainInfos(e){this._chainInfos=e}}r([i.observable.ref],s.prototype,"_chainInfos",void 0),r([i.observable.shallow],s.prototype,"_chainInfoOverriders",void 0),r([i.computed],s.prototype,"chainInfos",null),r([i.action],s.prototype,"registerChainInfoOverrider",null),r([i.action],s.prototype,"setChainInfos",null),t.ChainStore=s},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1311),t),i(n(1317),t),i(n(1318),t)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1312),t),i(n(1313),t),i(n(1314),t),i(n(1315),t),i(n(1316),t)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.InteractionStore=void 0;const i=n(18),o=n(59),a=n(5);class s{constructor(e,t){this.router=e,this.msgRequester=t,this.datas=new Map,this.events=new Map,a.makeObservable(this);const n=new o.InteractionForegroundService(this);o.interactionForegroundInit(e,n)}getDatas(e){var t;return null!==(t=a.toJS(this.datas.get(e)))&&void 0!==t?t:[]}getEvents(e){var t;return null!==(t=a.toJS(this.events.get(e)))&&void 0!==t?t:[]}onInteractionDataReceived(e){this.datas.has(e.type)||this.datas.set(e.type,a.observable.array([],{deep:!1})),this.datas.get(e.type).push(e)}onEventDataReceived(e){this.events.has(e.type)||this.events.set(e.type,a.observable.array([],{deep:!1})),this.events.get(e.type).push(e)}*approve(e,t,n){this.removeData(e,t),yield this.msgRequester.sendMessage(i.BACKGROUND_PORT,new o.ApproveInteractionMsg(t,n))}*reject(e,t){this.removeData(e,t),yield this.msgRequester.sendMessage(i.BACKGROUND_PORT,new o.RejectInteractionMsg(t))}*rejectAll(e){const t=this.getDatas(e);for(const e of t)yield this.reject(e.type,e.id)}removeData(e,t){if(this.datas.has(e)){const n=this.datas.get(e).find(e=>e.id===t);n&&this.datas.get(e).remove(n)}}clearEvent(e){this.events.has(e)&&this.events.get(e).length>0&&this.events.set(e,a.observable.array([],{deep:!1}))}}r([a.observable.shallow],s.prototype,"datas",void 0),r([a.observable.shallow],s.prototype,"events",void 0),r([a.action],s.prototype,"onInteractionDataReceived",null),r([a.action],s.prototype,"onEventDataReceived",null),r([a.flow],s.prototype,"approve",null),r([a.flow],s.prototype,"reject",null),r([a.flow],s.prototype,"rejectAll",null),r([a.action],s.prototype,"removeData",null),r([a.action],s.prototype,"clearEvent",null),t.InteractionStore=s},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionStore=t.BasicAccessPermissionInnerStore=t.Secret20ViewingKeyPermissionInnerStore=void 0;const i=n(59),o=n(5),a=n(209),s=n(18),c=n(63);class l{constructor(e,t,n){this.chainId=e,this.contractAddress=t,this.requester=n,this._origins=[],o.makeObservable(this),this.refreshOrigins()}get origins(){return this._origins}*removeOrigin(e){yield this.requester.sendMessage(s.BACKGROUND_PORT,new i.RemovePermissionOrigin(this.chainId,i.getSecret20ViewingKeyPermissionType(this.contractAddress),e)),yield this.refreshOrigins()}*refreshOrigins(){this._origins=yield*c.toGenerator(this.requester.sendMessage(s.BACKGROUND_PORT,new i.GetPermissionOriginsMsg(this.chainId,i.getSecret20ViewingKeyPermissionType(this.contractAddress))))}}r([o.observable.ref],l.prototype,"_origins",void 0),r([o.flow],l.prototype,"removeOrigin",null),r([o.flow],l.prototype,"refreshOrigins",null),t.Secret20ViewingKeyPermissionInnerStore=l;class u{constructor(e,t){this.chainId=e,this.requester=t,this._origins=[],o.makeObservable(this),this.refreshOrigins()}get origins(){return this._origins}*removeOrigin(e){yield this.requester.sendMessage(s.BACKGROUND_PORT,new i.RemovePermissionOrigin(this.chainId,i.getBasicAccessPermissionType(),e)),yield this.refreshOrigins()}*refreshOrigins(){this._origins=yield*c.toGenerator(this.requester.sendMessage(s.BACKGROUND_PORT,new i.GetPermissionOriginsMsg(this.chainId,i.getBasicAccessPermissionType())))}}r([o.observable.ref],u.prototype,"_origins",void 0),r([o.flow],u.prototype,"removeOrigin",null),r([o.flow],u.prototype,"refreshOrigins",null),t.BasicAccessPermissionInnerStore=u;class f extends a.HasMapStore{constructor(e,t){super(e=>{const t=JSON.parse(e);return"basicAccess"===t.type?new u(t.chainId,this.requester):new l(t.chainId,t.contractAddress,this.requester)}),this.interactionStore=e,this.requester=t,this._isLoading=!1,o.makeObservable(this)}getBasicAccessInfo(e){const t=JSON.stringify({type:"basicAccess",chainId:e,contractAddress:""});return this.get(t)}getSecret20ViewingKeyAccessInfo(e,t){const n=JSON.stringify({type:"viewingKey",chainId:e,contractAddress:t});return this.get(n)}get waitingBasicAccessPermissions(){const e=this.waitingDatas,t=[];for(const n of e)i.isBasicAccessPermissionType(n.data.type)&&t.push({id:n.id,data:{chainIds:n.data.chainIds,origins:n.data.origins}});return t}get waitingSecret20ViewingKeyAccessPermissions(){const e=this.waitingDatas,t=[];for(const n of e)i.isSecret20ViewingKeyPermissionType(n.data.type)&&t.push({id:n.id,data:{chainIds:n.data.chainIds,contractAddress:i.splitSecret20ViewingKeyPermissionType(n.data.type),origins:n.data.origins}});return t}get waitingDatas(){return this.interactionStore.getDatas(i.INTERACTION_TYPE_PERMISSION)}*approve(e){this._isLoading=!0;try{yield this.interactionStore.approve(i.INTERACTION_TYPE_PERMISSION,e,{})}finally{this._isLoading=!1}}*reject(e){this._isLoading=!0;try{yield this.interactionStore.reject(i.INTERACTION_TYPE_PERMISSION,e)}finally{this._isLoading=!1}}*rejectAll(){this._isLoading=!0;try{yield this.interactionStore.rejectAll(i.INTERACTION_TYPE_PERMISSION)}finally{this._isLoading=!1}}get isLoading(){return this._isLoading}}r([o.observable],f.prototype,"_isLoading",void 0),r([o.computed],f.prototype,"waitingBasicAccessPermissions",null),r([o.computed],f.prototype,"waitingSecret20ViewingKeyAccessPermissions",null),r([o.flow],f.prototype,"approve",null),r([o.flow],f.prototype,"reject",null),r([o.flow],f.prototype,"rejectAll",null),t.PermissionStore=f},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.SignInteractionStore=void 0;const i=n(5),o=n(11);class a{constructor(e){this.interactionStore=e,this._isLoading=!1,i.makeObservable(this),i.autorun(()=>{const e=this.waitingDatas.slice();if(e.length>1)for(let t=1;t<e.length;t++)this.rejectWithId(e[t].id)})}get waitingDatas(){return this.interactionStore.getDatas("request-sign")}get waitingData(){const e=this.waitingDatas;if(0===e.length)return;const t=e[0],n="amino"===t.data.mode?o.SignDocWrapper.fromAminoSignDoc(t.data.signDoc):new o.SignDocWrapper(t.data.mode,t.data.signDocBytes);return{id:t.id,type:t.type,data:{signer:t.data.signer,signDocWrapper:n,signOptions:t.data.signOptions}}}isEnded(){return this.interactionStore.getEvents("request-sign-end").length>0}clearEnded(){this.interactionStore.clearEvent("request-sign-end")}waitEnd(){return this.isEnded()?Promise.resolve():new Promise(e=>{const t=i.autorun(()=>{this.isEnded()&&(e(),this.clearEnded(),t())})})}*approveAndWaitEnd(e){if(0!==this.waitingDatas.length){this._isLoading=!0;try{const t="amino"===e.mode?e.aminoSignDoc:e.protoSignDoc.toBytes();yield this.interactionStore.approve("request-sign",this.waitingDatas[0].id,t)}finally{yield this.waitEnd(),this._isLoading=!1}}}*reject(){if(0!==this.waitingDatas.length){this._isLoading=!0;try{yield this.interactionStore.reject("request-sign",this.waitingDatas[0].id)}finally{this._isLoading=!1}}}*rejectAll(){this._isLoading=!0;try{yield this.interactionStore.rejectAll("request-sign")}finally{this._isLoading=!1}}*rejectWithId(e){yield this.interactionStore.reject("request-sign",e)}get isLoading(){return this._isLoading}}r([i.observable],a.prototype,"_isLoading",void 0),r([i.computed],a.prototype,"waitingData",null),r([i.flow],a.prototype,"approveAndWaitEnd",null),r([i.flow],a.prototype,"reject",null),r([i.flow],a.prototype,"rejectAll",null),r([i.flow],a.prototype,"rejectWithId",null),t.SignInteractionStore=a},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.LedgerInitStore=void 0;const i=n(5),o=n(18),a=n(59),s=n(63);class c{constructor(e,t){this.interactionStore=e,this.msgRequester=t,this._isLoading=!1,this._isWebHID=!1,i.makeObservable(this),this.fetchIsWebHID()}*fetchIsWebHID(){this._isWebHID=yield*s.toGenerator(this.msgRequester.sendMessage(o.BACKGROUND_PORT,new a.LedgerGetWebHIDFlagMsg))}*setWebHID(e){yield this.msgRequester.sendMessage(o.BACKGROUND_PORT,new a.LedgerSetWebHIDFlagMsg(e)),yield this.fetchIsWebHID()}get isWebHID(){return this._isWebHID}get isGetPubKeySucceeded(){const e=this.interactionStore.getEvents("ledger-init");for(const t of e)if("get-pubkey"===t.data.event&&t.data.success)return!0;return!1}get isSignCompleted(){return this.isSignSucceeded||this.isSignRejected}get isSignSucceeded(){const e=this.interactionStore.getEvents("ledger-init");for(const t of e)if("sign"===t.data.event&&t.data.success)return!0;return!1}get isSignRejected(){const e=this.interactionStore.getEvents("ledger-init");for(const t of e)if("sign"===t.data.event&&!t.data.success)return!0;return!1}get isInitAborted(){const e=this.interactionStore.getEvents("ledger-init");for(const t of e)if("init-aborted"===t.data.event)return!0;return!1}*resume(){this._isLoading=!0;try{const e=this.interactionStore.getDatas("ledger-init");for(const t of e)if("init-failed"===t.data.event){yield this.interactionStore.approve("ledger-init",t.id,{});break}}finally{this._isLoading=!1}}get isLoading(){return this._isLoading}}r([i.observable],c.prototype,"_isLoading",void 0),r([i.observable],c.prototype,"_isWebHID",void 0),r([i.flow],c.prototype,"fetchIsWebHID",null),r([i.flow],c.prototype,"setWebHID",null),r([i.computed],c.prototype,"isGetPubKeySucceeded",null),r([i.computed],c.prototype,"isSignCompleted",null),r([i.computed],c.prototype,"isSignSucceeded",null),r([i.computed],c.prototype,"isSignRejected",null),r([i.computed],c.prototype,"isInitAborted",null),r([i.flow],c.prototype,"resume",null),t.LedgerInitStore=c},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ChainSuggestStore=void 0;const i=n(59),o=n(5);class a{constructor(e){this.interactionStore=e,this._isLoading=!1,o.makeObservable(this)}get waitingSuggestedChainInfo(){const e=this.interactionStore.getDatas(i.SuggestChainInfoMsg.type());if(e.length>0)return e[0]}*approve(){this._isLoading=!0;try{const e=this.waitingSuggestedChainInfo;e&&(yield this.interactionStore.approve(e.type,e.id,{}))}finally{this._isLoading=!1}}*reject(){this._isLoading=!0;try{const e=this.waitingSuggestedChainInfo;e&&(yield this.interactionStore.reject(e.type,e.id))}finally{this._isLoading=!1}}*rejectAll(){this._isLoading=!0;try{yield this.interactionStore.rejectAll(i.SuggestChainInfoMsg.type())}finally{this._isLoading=!1}}get isLoading(){return this._isLoading}}r([o.observable],a.prototype,"_isLoading",void 0),r([o.flow],a.prototype,"approve",null),r([o.flow],a.prototype,"reject",null),r([o.flow],a.prototype,"rejectAll",null),t.ChainSuggestStore=a},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyRingStore=t.KeyRingSelectablesStore=void 0;const i=n(18),o=n(59),a=n(5),s=n(63);class c{constructor(e,t,n,r){this.chainGetter=e,this.requester=t,this.chainId=n,this.keyRingStore=r,this.isInitializing=!1,this._isKeyStoreCoinTypeSet=!1,this._selectables=[],a.makeObservable(this),this.refresh()}get needSelectCoinType(){const e=this.chainGetter.getChain(this.chainId);return!(!e.alternativeBIP44s||0===e.alternativeBIP44s.length)&&(!this.isInitializing&&!this._isKeyStoreCoinTypeSet)}get selectables(){return this._selectables}*refresh(){var e;if("mnemonic"!==this.keyRingStore.keyRingType)return this.isInitializing=!1,this._isKeyStoreCoinTypeSet=!0,void(this._selectables=[]);this.isInitializing=!0;const t=this.chainGetter.getChain(this.chainId),n=new o.GetIsKeyStoreCoinTypeSetMsg(this.chainId,[t.bip44,...null!==(e=t.alternativeBIP44s)&&void 0!==e?e:[]]),r=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,n));0===r.length?this._isKeyStoreCoinTypeSet=!0:1===r.length?(yield this.keyRingStore.setKeyStoreCoinType(this.chainId,r[0].path.coinType),this._isKeyStoreCoinTypeSet=!0):(this._selectables=r,this._isKeyStoreCoinTypeSet=!1),this.isInitializing=!1}}r([a.observable],c.prototype,"isInitializing",void 0),r([a.observable],c.prototype,"_isKeyStoreCoinTypeSet",void 0),r([a.observable.ref],c.prototype,"_selectables",void 0),r([a.computed],c.prototype,"needSelectCoinType",null),r([a.flow],c.prototype,"refresh",null),t.KeyRingSelectablesStore=c;class l{constructor(e,t,n){this.chainGetter=e,this.requester=t,this.interactionStore=n,this.status=o.KeyRingStatus.NOTLOADED,this.keyRingType="none",this.multiKeyStoreInfo=[],this.selectablesMap=new Map,a.makeObservable(this),this.restore()}*createMnemonicKey(e,t,n,r){const a=new o.CreateMnemonicKeyMsg(e,t,n,r),c=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,a));this.status=c.status,this.keyRingType=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,new o.GetKeyRingTypeMsg))}*createPrivateKey(e,t,n){const r=new o.CreatePrivateKeyMsg(e,t,n),a=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,r));this.status=a.status,this.keyRingType=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,new o.GetKeyRingTypeMsg))}*createLedgerKey(e,t,n){const r=new o.CreateLedgerKeyMsg(e,t,n),a=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,r));this.status=a.status,this.keyRingType=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,new o.GetKeyRingTypeMsg))}*addMnemonicKey(e,t,n){const r=new o.AddMnemonicKeyMsg(e,t,n);this.multiKeyStoreInfo=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,r))}*addPrivateKey(e,t){const n=new o.AddPrivateKeyMsg(e,t);this.multiKeyStoreInfo=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,n))}*addLedgerKey(e,t){const n=new o.AddLedgerKeyMsg(e,t);this.multiKeyStoreInfo=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,n))}*changeKeyRing(e){const t=new o.ChangeKeyRingMsg(e);this.multiKeyStoreInfo=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,t)),this.keyRingType=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,new o.GetKeyRingTypeMsg)),window.dispatchEvent(new Event("keplr_keystorechange")),this.selectablesMap.forEach(e=>e.refresh())}*lock(){const e=new o.LockKeyRingMsg,t=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,e));this.status=t.status}*unlock(e){const t=new o.UnlockKeyRingMsg(e),n=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,t));this.status=n.status;for(const e of this.interactionStore.getDatas("unlock"))yield this.interactionStore.approve("unlock",e.id,{});window.dispatchEvent(new Event("keplr_keystoreunlock"))}*rejectAll(){yield this.interactionStore.rejectAll("unlock")}*restore(){const e=new o.RestoreKeyRingMsg,t=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,e));this.status=t.status,this.keyRingType=t.type,this.multiKeyStoreInfo=t.multiKeyStoreInfo}*showKeyRing(e,t){const n=new o.ShowKeyRingMsg(e,t);return yield this.requester.sendMessage(i.BACKGROUND_PORT,n)}*deleteKeyRing(e,t){const n=new o.DeleteKeyRingMsg(e,t),r=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,n));this.status=r.status,this.multiKeyStoreInfo=r.multiKeyStoreInfo,this.keyRingType=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,new o.GetKeyRingTypeMsg))}*updateNameKeyRing(e,t){const n=new o.UpdateNameKeyRingMsg(e,t),r=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,n));this.status=r.status,this.multiKeyStoreInfo=r.multiKeyStoreInfo;this.multiKeyStoreInfo.findIndex(e=>e.selected)===e&&window.dispatchEvent(new Event("keplr_keystorechange"))}getKeyStoreSelectables(e){return this.selectablesMap.has(e)||a.runInAction(()=>{this.selectablesMap.set(e,new c(this.chainGetter,this.requester,e,this))}),this.selectablesMap.get(e)}*setKeyStoreCoinType(e,t){const n=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,new o.SetKeyStoreCoinTypeMsg(e,t)));this.multiKeyStoreInfo=yield*s.toGenerator(this.requester.sendMessage(i.BACKGROUND_PORT,new o.GetMultiKeyStoreInfoMsg)),this.status=n,window.dispatchEvent(new Event("keplr_keystorechange")),this.selectablesMap.forEach(e=>e.refresh())}}r([a.observable],l.prototype,"status",void 0),r([a.observable],l.prototype,"keyRingType",void 0),r([a.observable],l.prototype,"multiKeyStoreInfo",void 0),r([a.observable.shallow],l.prototype,"selectablesMap",void 0),r([a.flow],l.prototype,"createMnemonicKey",null),r([a.flow],l.prototype,"createPrivateKey",null),r([a.flow],l.prototype,"createLedgerKey",null),r([a.flow],l.prototype,"addMnemonicKey",null),r([a.flow],l.prototype,"addPrivateKey",null),r([a.flow],l.prototype,"addLedgerKey",null),r([a.flow],l.prototype,"changeKeyRing",null),r([a.flow],l.prototype,"lock",null),r([a.flow],l.prototype,"unlock",null),r([a.flow],l.prototype,"rejectAll",null),r([a.flow],l.prototype,"restore",null),r([a.flow],l.prototype,"showKeyRing",null),r([a.flow],l.prototype,"deleteKeyRing",null),r([a.flow],l.prototype,"updateNameKeyRing",null),r([a.flow],l.prototype,"setKeyStoreCoinType",null),t.KeyRingStore=l},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.TokensStore=t.TokensStoreInner=void 0;const i=n(209),o=n(18),a=n(59),s=n(5),c=n(63),l=n(389);class u{constructor(e,t){this.chainId=e,this.requester=t,this._tokens=[],s.makeObservable(this),this.refreshTokens(),window.addEventListener("keplr_keystoreunlock",()=>{this.refreshTokens()}),window.addEventListener("keplr_keystorechange",()=>{this.refreshTokens()})}get tokens(){return this._tokens}*refreshTokens(){const e=new a.GetTokensMsg(this.chainId);this._tokens=yield*c.toGenerator(this.requester.sendMessage(o.BACKGROUND_PORT,e))}*addToken(e){const t=new a.AddTokenMsg(this.chainId,e);yield this.requester.sendMessage(o.BACKGROUND_PORT,t),yield this.refreshTokens()}*removeToken(e){const t=new a.RemoveTokenMsg(this.chainId,e);yield this.requester.sendMessage(o.BACKGROUND_PORT,t),yield this.refreshTokens()}}r([s.observable.ref],u.prototype,"_tokens",void 0),r([s.flow],u.prototype,"refreshTokens",null),r([s.flow],u.prototype,"addToken",null),r([s.flow],u.prototype,"removeToken",null),t.TokensStoreInner=u;class f extends i.HasMapStore{constructor(e,t,n){super(e=>new u(e,this.requester)),this.chainStore=e,this.requester=t,this.interactionStore=n,this.overrideChainInfo=l.computedFn(e=>{const t=this.getTokensOf(e.chainId),n=e.currencies.slice();for(const e of t.tokens){n.find(t=>t.coinMinimalDenom===e.coinMinimalDenom)||n.push(e)}return Object.assign(Object.assign({},e),{currencies:n})}),s.makeObservable(this),this.chainStore.registerChainInfoOverrider(this.overrideChainInfo)}getTokensOf(e){return this.get(e)}get waitingSuggestedToken(){const e=this.interactionStore.getDatas(a.SuggestTokenMsg.type());if(e.length>0)return e[0]}*approveSuggestedToken(e){const t=this.waitingSuggestedToken;t&&(yield this.interactionStore.approve(a.SuggestTokenMsg.type(),t.id,e),yield this.getTokensOf(t.data.chainId).refreshTokens())}*rejectSuggestedToken(){const e=this.waitingSuggestedToken;e&&(yield this.interactionStore.reject(a.SuggestTokenMsg.type(),e.id))}*rejectAllSuggestedTokens(){yield this.interactionStore.rejectAll(a.SuggestTokenMsg.type())}}r([s.flow],f.prototype,"approveSuggestedToken",null),r([s.flow],f.prototype,"rejectSuggestedToken",null),r([s.flow],f.prototype,"rejectAllSuggestedTokens",null),t.TokensStore=f},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(1320),t),i(n(1321),t)},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.IBCChannelStore=t.IBCChannelStoreInner=void 0;const o=n(63),a=n(5),s=n(389),c=n(209),l=n(11);class u{constructor(e,t){this.kvStore=e,this.chainId=t,this.channelMap=new Map,this.getChannelsToPort=s.computedFn(e=>{this.channelMap.has(e)||a.runInAction(()=>{this.channelMap.set(e,a.observable.map({},{deep:!1}))});const t=this.channelMap.get(e),n=[];for(const e of t.values())n.push(e);return n}),this.getChannel=s.computedFn((e,t)=>{var n;return null===(n=this.channelMap.get(e))||void 0===n?void 0:n.get(t)}),a.makeObservable(this),this.loadChannels()}getTransferChannels(){return this.getChannelsToPort("transfer")}*addChannel(e){this.channelMap.has(e.portId)||this.channelMap.set(e.portId,a.observable.map({},{deep:!1})),this.channelMap.get(e.portId).set(e.channelId,e),yield this.saveChannels()}*loadChannels(){const e=yield*o.toGenerator(this.kvStore.get(l.ChainIdHelper.parse(this.chainId).identifier+"-channels"));if(e)for(const t of Object.keys(e)){const n=e[t];for(const e of Object.keys(n)){this.channelMap.has(t)||this.channelMap.set(t,a.observable.map({},{deep:!1}));this.channelMap.get(t).set(e,n[e])}}}saveChannels(){return i(this,void 0,void 0,(function*(){const e={};this.channelMap.forEach((t,n)=>{e[n]=(()=>{const e={};return t.forEach((t,n)=>{e[n]=t}),e})()}),yield this.kvStore.set(l.ChainIdHelper.parse(this.chainId).identifier+"-channels",e)}))}}r([a.observable.shallow],u.prototype,"channelMap",void 0),r([a.flow],u.prototype,"addChannel",null),r([a.flow],u.prototype,"loadChannels",null),t.IBCChannelStoreInner=u;class f extends c.HasMapStore{constructor(e){super(t=>new u(e,t)),this.kvStore=e}get(e){return super.get(e)}}t.IBCChannelStore=f},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.IBCCurrencyRegsitrar=t.IBCCurrencyRegsitrarInner=void 0;const i=n(5),o=n(209),a=n(389);class s{constructor(e,t,n,r){this.chainId=e,this.chainStore=t,this.accountStore=n,this.queriesStore=r,this._ibcCurrencies=[],i.makeObservable(this),i.autorun(()=>{const e=[];if(this.accountStore.hasAccount(this.chainId)){const t=this.accountStore.getAccount(this.chainId);if(t.bech32Address.length>0){const n=r.get(this.chainId),i=n.getQueryBalances().getQueryBech32Address(t.bech32Address).stakable.response;if(i)for(const t of i.data.result)if(t.denom.startsWith("ibc/")){const r=t.denom.replace("ibc/",""),i=n.getQueryIBCDenomTrace().getDenomTrace(r).denomTrace;if(i){const n=i.paths;let r,o,a=this.chainId;for(const e of n){const t=this.queriesStore.get(a).getQueryIBCClientState().getClientState(e.portId,e.channelId);if(!t.clientChainId||!this.chainStore.hasChain(t.clientChainId)){o=void 0;break}a=t.clientChainId,o=this.chainStore.getChain(t.clientChainId),r||(r=this.chainStore.getChain(t.clientChainId))}if(o){const a=o.currencies.find(e=>e.coinMinimalDenom===i.denom);a&&!("type"in a)&&e.push(Object.assign(Object.assign({},a),{coinMinimalDenom:t.denom,coinDenom:`${a.coinDenom} (${r?r.chainName:"Unknown"}/${n[0].channelId})`,paths:n,originChainId:o.chainId,originCurrency:a}))}else e.push({coinDecimals:0,coinMinimalDenom:t.denom,coinDenom:`${i.denom} (${r?r.chainName:"Unknown"}/${n[0].channelId})`,paths:n,originChainId:void 0,originCurrency:void 0})}}}}i.runInAction(()=>{for(const t of this._ibcCurrencies){const n=e.find(e=>e.coinMinimalDenom===t.coinMinimalDenom);n&&n.coinDenom!==t.coinDenom&&(this._ibcCurrencies=this._ibcCurrencies.filter(e=>e.coinMinimalDenom!==t.coinMinimalDenom))}for(const t of e)this._ibcCurrencies.find(e=>e.coinMinimalDenom===t.coinMinimalDenom)||this._ibcCurrencies.push(t)})})}get ibcCurrencies(){return this._ibcCurrencies}}r([i.observable.shallow],s.prototype,"_ibcCurrencies",void 0),t.IBCCurrencyRegsitrarInner=s;class c extends o.HasMapStore{constructor(e,t,n){super(e=>new s(e,this.chainStore,this.accountStore,this.queriesStore)),this.chainStore=e,this.accountStore=t,this.queriesStore=n,this.overrideChainInfo=a.computedFn(e=>{if(!e.features||!e.features.includes("stargate"))return e;const t=this.get(e.chainId);return t.ibcCurrencies.length>0?Object.assign(Object.assign({},e),{currencies:e.currencies.concat(t.ibcCurrencies)}):e}),this.chainStore.registerChainInfoOverrider(this.overrideChainInfo)}}t.IBCCurrencyRegsitrar=c},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useSignDocHelper=t.SignDocHelper=void 0;const s=n(5),c=n(0),l=n(11),u=a(n(113));o(n(1323),t);class f{constructor(e,t){this.feeConfig=e,this.memoConfig=t,this._signDocWrapper=void 0,s.makeObservable(this)}get signDocWrapper(){var e,t,n,r;if(!this._signDocWrapper)return;const i=this.feeConfig.toStdFee();if("amino"===this._signDocWrapper.mode){const e=Object.assign(Object.assign({},this._signDocWrapper.aminoSignDoc),{fee:i,memo:this.memoConfig.memo});return l.SignDocWrapper.fromAminoSignDoc(e)}const o=this._signDocWrapper.protoSignDoc,a=new l.cosmos.tx.v1beta1.Fee({gasLimit:u.default.fromString(i.gas),amount:i.amount.map(e=>({amount:e.amount,denom:e.denom})),granter:(null===(e=o.authInfo.fee)||void 0===e?void 0:e.granter)?null===(t=o.authInfo.fee)||void 0===t?void 0:t.granter:null,payer:(null===(n=o.authInfo.fee)||void 0===n?void 0:n.payer)?null===(r=o.authInfo.fee)||void 0===r?void 0:r.granter:null}),s=l.cosmos.tx.v1beta1.SignDoc.create(Object.assign(Object.assign({},o.signDoc),{bodyBytes:l.cosmos.tx.v1beta1.TxBody.encode(Object.assign(Object.assign({},o.txBody),{memo:this.memoConfig.memo})).finish(),authInfoBytes:l.cosmos.tx.v1beta1.AuthInfo.encode(Object.assign(Object.assign({},o.authInfo),{fee:a})).finish()}));return l.SignDocWrapper.fromDirectSignDoc(s)}get signDocJson(){if(this.signDocWrapper)return"amino"===this.signDocWrapper.mode?this.signDocWrapper.aminoSignDoc:this.signDocWrapper.protoSignDoc.toJSON()}setSignDocWrapper(e){this._signDocWrapper=e}}i([s.observable.ref],f.prototype,"_signDocWrapper",void 0),i([s.computed],f.prototype,"signDocWrapper",null),i([s.computed],f.prototype,"signDocJson",null),i([s.action],f.prototype,"setSignDocWrapper",null),t.SignDocHelper=f;t.useSignDocHelper=(e,t)=>{const[n]=c.useState(()=>new f(e,t));return n}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.useSignDocAmountConfig=t.SignDocAmountConfig=void 0;const i=n(836),o=n(5),a=n(23),s=n(0),c=n(389),l=n(11);class u extends i.TxChainSetter{constructor(e,t,n){super(e,t),this.signDocHelper=void 0,this.getAmountPrimitive=c.computedFn(()=>{var e;return(null===(e=this.signDocHelper)||void 0===e?void 0:e.signDocWrapper)&&0!==this.chainInfo.feeCurrencies.length?"amino"===this.signDocHelper.signDocWrapper.mode?this.computeAmountInAminoMsgs(this.signDocHelper.signDocWrapper.aminoSignDoc.msgs):this.computeAmountInProtoMsgs(this.signDocHelper.signDocWrapper.protoSignDoc.txMsgs):{amount:"0",denom:this.sendCurrency.coinMinimalDenom}}),this.msgOpts=n,o.makeObservable(this)}setMsgOpts(e){this.msgOpts=e}setSignDocHelper(e){this.signDocHelper=e}get amount(){const e=this.getAmountPrimitive();return new a.CoinPretty(this.sendCurrency,new a.Int(e.amount)).toString()}get sendCurrency(){const e=this.chainInfo;return e.feeCurrencies.length>0?e.feeCurrencies[0]:e.currencies[0]}get sendableCurrencies(){return[this.sendCurrency]}get sender(){return""}computeAmountInAminoMsgs(e){const t=new a.Coin(this.sendCurrency.coinMinimalDenom,new a.Int(0));for(const n of e)try{switch(n.type){case this.msgOpts.send.native.type:if(n.value.amount&&Array.isArray(n.value.amount))for(const e of n.value.amount)e.denom===t.denom&&(t.amount=t.amount.add(new a.Int(e.amount)));break;case this.msgOpts.delegate.type:n.value.amount&&n.value.amount.denom===t.denom&&(t.amount=t.amount.add(new a.Int(n.value.amount.amount)))}}catch(e){console.log("Error on the parsing the msg: "+(e.message||e.toString()))}return{amount:t.amount.toString(),denom:t.denom}}computeAmountInProtoMsgs(e){var t;const n=new a.Coin(this.sendCurrency.coinMinimalDenom,new a.Int(0));for(const r of e)try{switch(r.constructor){case l.cosmos.bank.v1beta1.MsgSend:const e=r;for(const t of e.amount)t.denom===n.denom&&t.amount&&(n.amount=n.amount.add(new a.Int(t.amount)));break;case l.cosmos.staking.v1beta1.MsgDelegate:const i=r;(null===(t=i.amount)||void 0===t?void 0:t.denom)===n.denom&&i.amount.amount&&(n.amount=n.amount.add(new a.Int(i.amount.amount)))}}catch(e){console.log("Error on the parsing the msg: "+(e.message||e.toString()))}return{amount:n.amount.toString(),denom:n.denom}}getError(){}setAmount(){}setSendCurrency(){}setSender(){}}r([o.observable.ref],u.prototype,"msgOpts",void 0),r([o.observable.ref],u.prototype,"signDocHelper",void 0),r([o.action],u.prototype,"setMsgOpts",null),r([o.action],u.prototype,"setSignDocHelper",null),r([o.computed],u.prototype,"amount",null),t.SignDocAmountConfig=u;t.useSignDocAmountConfig=(e,t,n)=>{const[r]=s.useState(()=>new u(e,t,n));return r.setChain(t),r.setMsgOpts(n),r}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(991),t),i(n(992),t),i(n(993),t),i(n(994),t),i(n(1325),t),i(n(1327),t)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIBCTransferConfig=void 0;const r=n(835),i=n(991),o=n(994),a=n(992),s=n(1326);t.useIBCTransferConfig=(e,t,n,c,l,u)=>{const f=i.useIBCAmountConfig(e,t,c,l),d=r.useMemoConfig(e,t),p=o.useIBCTransferGasConfig(e,t,n),h=r.useFeeConfig(e,t,c,l,f,p),m=a.useIBCChannelConfig();return{amountConfig:f,memoConfig:d,gasConfig:p,feeConfig:h,recipientConfig:s.useIBCRecipientConfig(e,t,m,u),channelConfig:m}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIBCRecipientConfig=t.IBCRecipientConfig=void 0;const r=n(835),i=n(0);class o extends r.RecipientConfig{constructor(e,t,n){super(e,t),this.channelConfig=n}get chainId(){return this.channelConfig.channel?this.channelConfig.channel.counterpartyChainId:super.chainId}}t.IBCRecipientConfig=o;t.useIBCRecipientConfig=(e,t,n,r)=>{const[a]=i.useState(()=>new o(e,t,n));return a.setChain(t),a.setENSEndpoint(r),a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";
288 /** @license React v16.12.0
289  * react-dom.production.min.js
290  *
291  * Copyright (c) Facebook, Inc. and its affiliates.
292  *
293  * This source code is licensed under the MIT license found in the
294  * LICENSE file in the root directory of this source tree.
295  */var r=n(1329),i=n(406),o=n(1331);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=null,c={};function l(){if(s)for(var e in c){var t=c[e],n=s.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!f[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in f[n]=t,n=t.eventTypes){var i=void 0,o=n[r],l=t,p=r;if(d.hasOwnProperty(p))throw Error(a(99,p));d[p]=o;var h=o.phasedRegistrationNames;if(h){for(i in h)h.hasOwnProperty(i)&&u(h[i],l,p);i=!0}else o.registrationName?(u(o.registrationName,l,p),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function u(e,t,n){if(p[e])throw Error(a(100,e));p[e]=t,h[e]=t.eventTypes[n].dependencies}var f=[],d={},p={},h={};function m(e,t,n,r,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var b=!1,y=null,g=!1,v=null,w={onError:function(e){b=!0,y=e}};function _(e,t,n,r,i,o,a,s,c){b=!1,y=null,m.apply(w,arguments)}var k=null,x=null,S=null;function O(e,t,n){var r=e.type||"unknown-event";e.currentTarget=S(n),function(e,t,n,r,i,o,s,c,l){if(_.apply(this,arguments),b){if(!b)throw Error(a(198));var u=y;b=!1,y=null,g||(g=!0,v=u)}}(r,t,void 0,e),e.currentTarget=null}function E(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function T(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var A=null;function M(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)O(e,t[r],n[r]);else t&&O(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function I(e){if(null!==e&&(A=E(A,e)),e=A,A=null,e){if(T(e,M),A)throw Error(a(95));if(g)throw e=v,g=!1,v=null,e}}var P={injectEventPluginOrder:function(e){if(s)throw Error(a(101));s=Array.prototype.slice.call(e),l()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!c.hasOwnProperty(t)||c[t]!==r){if(c[t])throw Error(a(102,t));c[t]=r,n=!0}}n&&l()}};function C(e,t){var n=e.stateNode;if(!n)return null;var r=k(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var j=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;j.hasOwnProperty("ReactCurrentDispatcher")||(j.ReactCurrentDispatcher={current:null}),j.hasOwnProperty("ReactCurrentBatchConfig")||(j.ReactCurrentBatchConfig={suspense:null});var D=/^(.*)[\\\/]/,R="function"==typeof Symbol&&Symbol.for,N=R?Symbol.for("react.element"):60103,B=R?Symbol.for("react.portal"):60106,L=R?Symbol.for("react.fragment"):60107,U=R?Symbol.for("react.strict_mode"):60108,F=R?Symbol.for("react.profiler"):60114,q=R?Symbol.for("react.provider"):60109,z=R?Symbol.for("react.context"):60110,V=R?Symbol.for("react.concurrent_mode"):60111,H=R?Symbol.for("react.forward_ref"):60112,$=R?Symbol.for("react.suspense"):60113,K=R?Symbol.for("react.suspense_list"):60120,W=R?Symbol.for("react.memo"):60115,G=R?Symbol.for("react.lazy"):60116;R&&Symbol.for("react.fundamental"),R&&Symbol.for("react.responder"),R&&Symbol.for("react.scope");var J="function"==typeof Symbol&&Symbol.iterator;function Q(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=J&&e[J]||e["@@iterator"])?e:null}function Y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case L:return"Fragment";case B:return"Portal";case F:return"Profiler";case U:return"StrictMode";case $:return"Suspense";case K:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case z:return"Context.Consumer";case q:return"Context.Provider";case H:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case W:return Y(e.type);case G:if(e=1===e._status?e._result:null)return Y(e)}return null}function Z(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=Y(e.type);n=null,r&&(n=Y(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(D,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}var X=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ee=null,te=null,ne=null;function re(e){if(e=x(e)){if("function"!=typeof ee)throw Error(a(280));var t=k(e.stateNode);ee(e.stateNode,e.type,t)}}function ie(e){te?ne?ne.push(e):ne=[e]:te=e}function oe(){if(te){var e=te,t=ne;if(ne=te=null,re(e),t)for(e=0;e<t.length;e++)re(t[e])}}function ae(e,t){return e(t)}function se(e,t,n,r){return e(t,n,r)}function ce(){}var le=ae,ue=!1,fe=!1;function de(){null===te&&null===ne||(ce(),oe())}new Map;var pe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,he=Object.prototype.hasOwnProperty,me={},be={};function ye(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var ge={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){ge[e]=new ye(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];ge[t]=new ye(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){ge[e]=new ye(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){ge[e]=new ye(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){ge[e]=new ye(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){ge[e]=new ye(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){ge[e]=new ye(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){ge[e]=new ye(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){ge[e]=new ye(e,5,!1,e.toLowerCase(),null,!1)}));var ve=/[\-:]([a-z])/g;function we(e){return e[1].toUpperCase()}function _e(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ke(e,t,n,r){var i=ge.hasOwnProperty(t)?ge[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!he.call(be,e)||!he.call(me,e)&&(pe.test(e)?be[e]=!0:(me[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function xe(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Se(e){e._valueTracker||(e._valueTracker=function(e){var t=xe(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Oe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xe(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ee(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=_e(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ae(e,t){null!=(t=t.checked)&&ke(e,"checked",t,!1)}function Me(e,t){Ae(e,t);var n=_e(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Pe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Pe(e,t.type,_e(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ie(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Pe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ce(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function je(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_e(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function De(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Re(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw Error(a(92));if(Array.isArray(t)){if(!(1>=t.length))throw Error(a(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:_e(n)}}function Ne(e,t){var n=_e(t.value),r=_e(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Be(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(ve,we);ge[t]=new ye(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(ve,we);ge[t]=new ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(ve,we);ge[t]=new ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){ge[e]=new ye(e,1,!1,e.toLowerCase(),null,!1)})),ge.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){ge[e]=new ye(e,1,!1,e.toLowerCase(),null,!0)}));var Le="http://www.w3.org/1999/xhtml",Ue="http://www.w3.org/2000/svg";function Fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function qe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ze,Ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Ue||"innerHTML"in e)e.innerHTML=t;else{for((ze=ze||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ze.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function He(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function $e(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ke={animationend:$e("Animation","AnimationEnd"),animationiteration:$e("Animation","AnimationIteration"),animationstart:$e("Animation","AnimationStart"),transitionend:$e("Transition","TransitionEnd")},We={},Ge={};function Je(e){if(We[e])return We[e];if(!Ke[e])return e;var t,n=Ke[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ge)return We[e]=n[t];return e}X&&(Ge=document.createElement("div").style,"AnimationEvent"in window||(delete Ke.animationend.animation,delete Ke.animationiteration.animation,delete Ke.animationstart.animation),"TransitionEvent"in window||delete Ke.transitionend.transition);var Qe=Je("animationend"),Ye=Je("animationiteration"),Ze=Je("animationstart"),Xe=Je("transitionend"),et="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" ");function tt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function nt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function rt(e){if(tt(e)!==e)throw Error(a(188))}function it(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=tt(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return rt(i),e;if(o===r)return rt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var ot,at,st,ct=!1,lt=[],ut=null,ft=null,dt=null,pt=new Map,ht=new Map,mt=[],bt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),yt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function gt(e,t,n,r){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:r}}function vt(e,t){switch(e){case"focus":case"blur":ut=null;break;case"dragenter":case"dragleave":ft=null;break;case"mouseover":case"mouseout":dt=null;break;case"pointerover":case"pointerout":pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ht.delete(t.pointerId)}}function wt(e,t,n,r,i){return null===e||e.nativeEvent!==i?(e=gt(t,n,r,i),null!==t&&(null!==(t=lr(t))&&at(t)),e):(e.eventSystemFlags|=r,e)}function _t(e){var t=cr(e.target);if(null!==t){var n=tt(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=nt(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){st(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function kt(e){if(null!==e.blockedOn)return!1;var t=Pn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);if(null!==t){var n=lr(t);return null!==n&&at(n),e.blockedOn=t,!1}return!0}function xt(e,t,n){kt(e)&&n.delete(t)}function St(){for(ct=!1;0<lt.length;){var e=lt[0];if(null!==e.blockedOn){null!==(e=lr(e.blockedOn))&&ot(e);break}var t=Pn(e.topLevelType,e.eventSystemFlags,e.nativeEvent);null!==t?e.blockedOn=t:lt.shift()}null!==ut&&kt(ut)&&(ut=null),null!==ft&&kt(ft)&&(ft=null),null!==dt&&kt(dt)&&(dt=null),pt.forEach(xt),ht.forEach(xt)}function Ot(e,t){e.blockedOn===t&&(e.blockedOn=null,ct||(ct=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,St)))}function Et(e){function t(t){return Ot(t,e)}if(0<lt.length){Ot(lt[0],e);for(var n=1;n<lt.length;n++){var r=lt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ut&&Ot(ut,e),null!==ft&&Ot(ft,e),null!==dt&&Ot(dt,e),pt.forEach(t),ht.forEach(t),n=0;n<mt.length;n++)(r=mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<mt.length&&null===(n=mt[0]).blockedOn;)_t(n),null===n.blockedOn&&mt.shift()}function Tt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function At(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Mt(e,t,n){(t=C(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=E(n._dispatchListeners,t),n._dispatchInstances=E(n._dispatchInstances,e))}function It(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=At(t);for(t=n.length;0<t--;)Mt(n[t],"captured",e);for(t=0;t<n.length;t++)Mt(n[t],"bubbled",e)}}function Pt(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=C(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=E(n._dispatchListeners,t),n._dispatchInstances=E(n._dispatchInstances,e))}function Ct(e){e&&e.dispatchConfig.registrationName&&Pt(e._targetInst,null,e)}function jt(e){T(e,It)}function Dt(){return!0}function Rt(){return!1}function Nt(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Dt:Rt,this.isPropagationStopped=Rt,this}function Bt(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Lt(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Ut(e){e.eventPool=[],e.getPooled=Bt,e.release=Lt}i(Nt.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Dt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Dt)},persist:function(){this.isPersistent=Dt},isPersistent:Rt,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Rt,this._dispatchInstances=this._dispatchListeners=null}}),Nt.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Nt.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Ut(n),n},Ut(Nt);var Ft=Nt.extend({animationName:null,elapsedTime:null,pseudoElement:null}),qt=Nt.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zt=Nt.extend({view:null,detail:null}),Vt=zt.extend({relatedTarget:null});function Ht(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var $t={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kt={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Wt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Wt[e])&&!!t[e]}function Jt(){return Gt}for(var Qt=zt.extend({key:function(e){if(e.key){var t=$t[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ht(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Kt[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Jt,charCode:function(e){return"keypress"===e.type?Ht(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ht(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Yt=0,Zt=0,Xt=!1,en=!1,tn=zt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Jt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Yt;return Yt=e.screenX,Xt?"mousemove"===e.type?e.screenX-t:0:(Xt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Zt;return Zt=e.screenY,en?"mousemove"===e.type?e.screenY-t:0:(en=!0,0)}}),nn=tn.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),rn=tn.extend({dataTransfer:null}),on=zt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Jt}),an=Nt.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),sn=tn.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),cn=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[Qe,"animationEnd",2],[Ye,"animationIteration",2],[Ze,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[Xe,"transitionEnd",2],["waiting","waiting",2]],ln={},un={},fn=0;fn<cn.length;fn++){var dn=cn[fn],pn=dn[0],hn=dn[1],mn=dn[2],bn="on"+(hn[0].toUpperCase()+hn.slice(1)),yn={phasedRegistrationNames:{bubbled:bn,captured:bn+"Capture"},dependencies:[pn],eventPriority:mn};ln[hn]=yn,un[pn]=yn}var gn={eventTypes:ln,getEventPriority:function(e){return void 0!==(e=un[e])?e.eventPriority:2},extractEvents:function(e,t,n,r){var i=un[e];if(!i)return null;switch(e){case"keypress":if(0===Ht(n))return null;case"keydown":case"keyup":e=Qt;break;case"blur":case"focus":e=Vt;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=tn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=rn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=on;break;case Qe:case Ye:case Ze:e=Ft;break;case Xe:e=an;break;case"scroll":e=zt;break;case"wheel":e=sn;break;case"copy":case"cut":case"paste":e=qt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=nn;break;default:e=Nt}return jt(t=e.getPooled(i,t,n,r)),t}},vn=o.unstable_UserBlockingPriority,wn=o.unstable_runWithPriority,_n=gn.getEventPriority,kn=[];function xn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=cr(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=Tt(e.nativeEvent);r=e.topLevelType;for(var o=e.nativeEvent,a=e.eventSystemFlags,s=null,c=0;c<f.length;c++){var l=f[c];l&&(l=l.extractEvents(r,t,o,i,a))&&(s=E(s,l))}I(s)}}var Sn=!0;function On(e,t){En(t,e,!1)}function En(e,t,n){switch(_n(t)){case 0:var r=Tn.bind(null,t,1);break;case 1:r=An.bind(null,t,1);break;default:r=In.bind(null,t,1)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Tn(e,t,n){ue||ce();var r=In,i=ue;ue=!0;try{se(r,e,t,n)}finally{(ue=i)||de()}}function An(e,t,n){wn(vn,In.bind(null,e,t,n))}function Mn(e,t,n,r){if(kn.length){var i=kn.pop();i.topLevelType=e,i.eventSystemFlags=t,i.nativeEvent=n,i.targetInst=r,e=i}else e={topLevelType:e,eventSystemFlags:t,nativeEvent:n,targetInst:r,ancestors:[]};try{if(t=xn,n=e,fe)t(n,void 0);else{fe=!0;try{le(t,n,void 0)}finally{fe=!1,de()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,kn.length<10&&kn.push(e)}}function In(e,t,n){if(Sn)if(0<lt.length&&-1<bt.indexOf(e))e=gt(null,e,t,n),lt.push(e);else{var r=Pn(e,t,n);null===r?vt(e,n):-1<bt.indexOf(e)?(e=gt(r,e,t,n),lt.push(e)):function(e,t,n,r){switch(t){case"focus":return ut=wt(ut,e,t,n,r),!0;case"dragenter":return ft=wt(ft,e,t,n,r),!0;case"mouseover":return dt=wt(dt,e,t,n,r),!0;case"pointerover":var i=r.pointerId;return pt.set(i,wt(pt.get(i)||null,e,t,n,r)),!0;case"gotpointercapture":return i=r.pointerId,ht.set(i,wt(ht.get(i)||null,e,t,n,r)),!0}return!1}(r,e,t,n)||(vt(e,n),Mn(e,t,n,null))}}function Pn(e,t,n){var r=Tt(n);if(null!==(r=cr(r))){var i=tt(r);if(null===i)r=null;else{var o=i.tag;if(13===o){if(null!==(r=nt(i)))return r;r=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null)}}return Mn(e,t,n,r),null}function Cn(e){if(!X)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var jn=new("function"==typeof WeakMap?WeakMap:Map);function Dn(e){var t=jn.get(e);return void 0===t&&(t=new Set,jn.set(e,t)),t}function Rn(e,t,n){if(!n.has(e)){switch(e){case"scroll":En(t,"scroll",!0);break;case"focus":case"blur":En(t,"focus",!0),En(t,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":Cn(e)&&En(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===et.indexOf(e)&&On(e,t)}n.add(e)}}var Nn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Bn=["Webkit","ms","Moz","O"];function Ln(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Nn.hasOwnProperty(e)&&Nn[e]?(""+t).trim():t+"px"}function Un(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=Ln(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Nn).forEach((function(e){Bn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nn[t]=Nn[e]}))}));var Fn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qn(e,t){if(t){if(Fn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function zn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Vn(e,t){var n=Dn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=h[t];for(var r=0;r<t.length;r++)Rn(t[r],e,n)}function Hn(){}function $n(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Kn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wn(e,t){var n,r=Kn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Kn(r)}}function Gn(){for(var e=window,t=$n();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=$n((e=t.contentWindow).document)}return t}function Jn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Qn=null,Yn=null;function Zn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Xn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var er="function"==typeof setTimeout?setTimeout:void 0,tr="function"==typeof clearTimeout?clearTimeout:void 0;function nr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function rr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ir=Math.random().toString(36).slice(2),or="__reactInternalInstance$"+ir,ar="__reactEventHandlers$"+ir,sr="__reactContainere$"+ir;function cr(e){var t=e[or];if(t)return t;for(var n=e.parentNode;n;){if(t=n[sr]||n[or]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=rr(e);null!==e;){if(n=e[or])return n;e=rr(e)}return t}n=(e=n).parentNode}return null}function lr(e){return!(e=e[or]||e[sr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ur(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function fr(e){return e[ar]||null}var dr=null,pr=null,hr=null;function mr(){if(hr)return hr;var e,t,n=pr,r=n.length,i="value"in dr?dr.value:dr.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return hr=i.slice(e,1<t?1-t:void 0)}var br=Nt.extend({data:null}),yr=Nt.extend({data:null}),gr=[9,13,27,32],vr=X&&"CompositionEvent"in window,wr=null;X&&"documentMode"in document&&(wr=document.documentMode);var _r=X&&"TextEvent"in window&&!wr,kr=X&&(!vr||wr&&8<wr&&11>=wr),xr=String.fromCharCode(32),Sr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Or=!1;function Er(e,t){switch(e){case"keyup":return-1!==gr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Tr(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ar=!1;var Mr={eventTypes:Sr,extractEvents:function(e,t,n,r){var i;if(vr)e:{switch(e){case"compositionstart":var o=Sr.compositionStart;break e;case"compositionend":o=Sr.compositionEnd;break e;case"compositionupdate":o=Sr.compositionUpdate;break e}o=void 0}else Ar?Er(e,n)&&(o=Sr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Sr.compositionStart);return o?(kr&&"ko"!==n.locale&&(Ar||o!==Sr.compositionStart?o===Sr.compositionEnd&&Ar&&(i=mr()):(pr="value"in(dr=r)?dr.value:dr.textContent,Ar=!0)),o=br.getPooled(o,t,n,r),i?o.data=i:null!==(i=Tr(n))&&(o.data=i),jt(o),i=o):i=null,(e=_r?function(e,t){switch(e){case"compositionend":return Tr(t);case"keypress":return 32!==t.which?null:(Or=!0,xr);case"textInput":return(e=t.data)===xr&&Or?null:e;default:return null}}(e,n):function(e,t){if(Ar)return"compositionend"===e||!vr&&Er(e,t)?(e=mr(),hr=pr=dr=null,Ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return kr&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=yr.getPooled(Sr.beforeInput,t,n,r)).data=e,jt(t)):t=null,null===i?t:null===t?i:[i,t]}},Ir={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ir[e.type]:"textarea"===t}var Cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function jr(e,t,n){return(e=Nt.getPooled(Cr.change,e,t,n)).type="change",ie(n),jt(e),e}var Dr=null,Rr=null;function Nr(e){I(e)}function Br(e){if(Oe(ur(e)))return e}function Lr(e,t){if("change"===e)return t}var Ur=!1;function Fr(){Dr&&(Dr.detachEvent("onpropertychange",qr),Rr=Dr=null)}function qr(e){if("value"===e.propertyName&&Br(Rr))if(e=jr(Rr,e,Tt(e)),ue)I(e);else{ue=!0;try{ae(Nr,e)}finally{ue=!1,de()}}}function zr(e,t,n){"focus"===e?(Fr(),Rr=n,(Dr=t).attachEvent("onpropertychange",qr)):"blur"===e&&Fr()}function Vr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Br(Rr)}function Hr(e,t){if("click"===e)return Br(t)}function $r(e,t){if("input"===e||"change"===e)return Br(t)}X&&(Ur=Cn("input")&&(!document.documentMode||9<document.documentMode));var Kr,Wr={eventTypes:Cr,_isInputEventSupported:Ur,extractEvents:function(e,t,n,r){var i=t?ur(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=Lr;else if(Pr(i))if(Ur)a=$r;else{a=Vr;var s=zr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Hr);if(a&&(a=a(e,t)))return jr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Pe(i,"number",i.value)}},Gr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Jr={eventTypes:Gr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?cr(t):null)&&(t!==(o=tt(t))||5!==t.tag&&6!==t.tag)&&(t=null)):a=null,a===t)return null;if("mouseout"===e||"mouseover"===e)var s=tn,c=Gr.mouseLeave,l=Gr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=nn,c=Gr.pointerLeave,l=Gr.pointerEnter,u="pointer");if(e=null==a?i:ur(a),i=null==t?i:ur(t),(c=s.getPooled(c,a,n,r)).type=u+"leave",c.target=e,c.relatedTarget=i,(r=s.getPooled(l,t,n,r)).type=u+"enter",r.target=i,r.relatedTarget=e,u=t,(s=a)&&u)e:{for(e=u,a=0,t=l=s;t;t=At(t))a++;for(t=0,i=e;i;i=At(i))t++;for(;0<a-t;)l=At(l),a--;for(;0<t-a;)e=At(e),t--;for(;a--;){if(l===e||l===e.alternate)break e;l=At(l),e=At(e)}l=null}else l=null;for(e=l,l=[];s&&s!==e&&(null===(a=s.alternate)||a!==e);)l.push(s),s=At(s);for(s=[];u&&u!==e&&(null===(a=u.alternate)||a!==e);)s.push(u),u=At(u);for(u=0;u<l.length;u++)Pt(l[u],"bubbled",c);for(u=s.length;0<u--;)Pt(s[u],"captured",r);return n===Kr?(Kr=null,[c]):(Kr=n,[c,r])}};var Qr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Yr=Object.prototype.hasOwnProperty;function Zr(e,t){if(Qr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Yr.call(t,n[r])||!Qr(e[n[r]],t[n[r]]))return!1;return!0}var Xr=X&&"documentMode"in document&&11>=document.documentMode,ei={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},ti=null,ni=null,ri=null,ii=!1;function oi(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return ii||null==ti||ti!==$n(n)?null:("selectionStart"in(n=ti)&&Jn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},ri&&Zr(ri,n)?null:(ri=n,(e=Nt.getPooled(ei.select,ni,e,t)).type="select",e.target=ti,jt(e),e))}var ai={eventTypes:ei,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=Dn(o),i=h.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?ur(t):window,e){case"focus":(Pr(o)||"true"===o.contentEditable)&&(ti=o,ni=t,ri=null);break;case"blur":ri=ni=ti=null;break;case"mousedown":ii=!0;break;case"contextmenu":case"mouseup":case"dragend":return ii=!1,oi(n,r);case"selectionchange":if(Xr)break;case"keydown":case"keyup":return oi(n,r)}return null}};P.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k=fr,x=lr,S=ur,P.injectEventPluginsByName({SimpleEventPlugin:gn,EnterLeaveEventPlugin:Jr,ChangeEventPlugin:Wr,SelectEventPlugin:ai,BeforeInputEventPlugin:Mr}),new Set;var si=[],ci=-1;function li(e){0>ci||(e.current=si[ci],si[ci]=null,ci--)}function ui(e,t){ci++,si[ci]=e.current,e.current=t}var fi={},di={current:fi},pi={current:!1},hi=fi;function mi(e,t){var n=e.type.contextTypes;if(!n)return fi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function bi(e){return null!=(e=e.childContextTypes)}function yi(e){li(pi),li(di)}function gi(e){li(pi),li(di)}function vi(e,t,n){if(di.current!==fi)throw Error(a(168));ui(di,t),ui(pi,n)}function wi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,Y(t)||"Unknown",o));return i({},n,{},r)}function _i(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||fi,hi=di.current,ui(di,t),ui(pi,pi.current),!0}function ki(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(t=wi(e,t,hi),r.__reactInternalMemoizedMergedChildContext=t,li(pi),li(di),ui(di,t)):li(pi),ui(pi,n)}var xi=o.unstable_runWithPriority,Si=o.unstable_scheduleCallback,Oi=o.unstable_cancelCallback,Ei=o.unstable_shouldYield,Ti=o.unstable_requestPaint,Ai=o.unstable_now,Mi=o.unstable_getCurrentPriorityLevel,Ii=o.unstable_ImmediatePriority,Pi=o.unstable_UserBlockingPriority,Ci=o.unstable_NormalPriority,ji=o.unstable_LowPriority,Di=o.unstable_IdlePriority,Ri={},Ni=void 0!==Ti?Ti:function(){},Bi=null,Li=null,Ui=!1,Fi=Ai(),qi=1e4>Fi?Ai:function(){return Ai()-Fi};function zi(){switch(Mi()){case Ii:return 99;case Pi:return 98;case Ci:return 97;case ji:return 96;case Di:return 95;default:throw Error(a(332))}}function Vi(e){switch(e){case 99:return Ii;case 98:return Pi;case 97:return Ci;case 96:return ji;case 95:return Di;default:throw Error(a(332))}}function Hi(e,t){return e=Vi(e),xi(e,t)}function $i(e,t,n){return e=Vi(e),Si(e,t,n)}function Ki(e){return null===Bi?(Bi=[e],Li=Si(Ii,Gi)):Bi.push(e),Ri}function Wi(){if(null!==Li){var e=Li;Li=null,Oi(e)}Gi()}function Gi(){if(!Ui&&null!==Bi){Ui=!0;var e=0;try{var t=Bi;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bi=null}catch(t){throw null!==Bi&&(Bi=Bi.slice(e+1)),Si(Ii,Wi),t}finally{Ui=!1}}}var Ji=3;function Qi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Yi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Zi={current:null},Xi=null,eo=null,to=null;function no(){to=eo=Xi=null}function ro(e,t){var n=e.type._context;ui(Zi,n._currentValue),n._currentValue=t}function io(e){var t=Zi.current;li(Zi),e.type._context._currentValue=t}function oo(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ao(e,t){Xi=e,to=eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(qa=!0),e.firstContext=null)}function so(e,t){if(to!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(to=e,t=1073741823),t={context:e,observedBits:t,next:null},null===eo){if(null===Xi)throw Error(a(308));eo=t,Xi.dependencies={expirationTime:0,firstContext:t,responders:null}}else eo=eo.next=t;return e._currentValue}var co=!1;function lo(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function uo(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function fo(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function po(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function ho(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,i=null;null===r&&(r=e.updateQueue=lo(e.memoizedState))}else r=e.updateQueue,i=n.updateQueue,null===r?null===i?(r=e.updateQueue=lo(e.memoizedState),i=n.updateQueue=lo(n.memoizedState)):r=e.updateQueue=uo(i):null===i&&(i=n.updateQueue=uo(r));null===i||r===i?po(r,t):null===r.lastUpdate||null===i.lastUpdate?(po(r,t),po(i,t)):(po(r,t),i.lastUpdate=t)}function mo(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=lo(e.memoizedState):bo(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function bo(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=uo(t)),t}function yo(e,t,n,r,o,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,o):e;case 3:e.effectTag=-4097&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=n.payload)?e.call(a,r,o):e))break;return i({},r,o);case 2:co=!0}return r}function go(e,t,n,r,i){co=!1;for(var o=(t=bo(e,t)).baseState,a=null,s=0,c=t.firstUpdate,l=o;null!==c;){var u=c.expirationTime;u<i?(null===a&&(a=c,o=l),s<u&&(s=u)):(fc(u,c.suspenseConfig),l=yo(e,0,c,l,n,r),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=c:(t.lastEffect.nextEffect=c,t.lastEffect=c))),c=c.next}for(u=null,c=t.firstCapturedUpdate;null!==c;){var f=c.expirationTime;f<i?(null===u&&(u=c,null===a&&(o=l)),s<f&&(s=f)):(l=yo(e,0,c,l,n,r),null!==c.callback&&(e.effectTag|=32,c.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=c:(t.lastCapturedEffect.nextEffect=c,t.lastCapturedEffect=c))),c=c.next}null===a&&(t.lastUpdate=null),null===u?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===u&&(o=l),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=u,dc(s),e.expirationTime=s,e.memoizedState=l}function vo(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),wo(t.firstEffect,n),t.firstEffect=t.lastEffect=null,wo(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function wo(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;if("function"!=typeof n)throw Error(a(191,n));n.call(r)}e=e.nextEffect}}var _o=j.ReactCurrentBatchConfig,ko=(new r.Component).refs;function xo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var So={isMounted:function(e){return!!(e=e._reactInternalFiber)&&tt(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Zs(),i=_o.suspense;(i=fo(r=Xs(r,e,i),i)).payload=t,null!=n&&(i.callback=n),ho(e,i),ec(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Zs(),i=_o.suspense;(i=fo(r=Xs(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),ho(e,i),ec(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Zs(),r=_o.suspense;(r=fo(n=Xs(n,e,r),r)).tag=2,null!=t&&(r.callback=t),ho(e,r),ec(e,n)}};function Oo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Zr(n,r)||!Zr(i,o))}function Eo(e,t,n){var r=!1,i=fi,o=t.contextType;return"object"==typeof o&&null!==o?o=so(o):(i=bi(t)?hi:di.current,o=(r=null!=(r=t.contextTypes))?mi(e,i):fi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=So,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function To(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&So.enqueueReplaceState(t,t.state,null)}function Ao(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ko;var o=t.contextType;"object"==typeof o&&null!==o?i.context=so(o):(o=bi(t)?hi:di.current,i.context=mi(e,o)),null!==(o=e.updateQueue)&&(go(e,o,n,i,r),i.state=e.memoizedState),"function"==typeof(o=t.getDerivedStateFromProps)&&(xo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&So.enqueueReplaceState(i,i.state,null),null!==(o=e.updateQueue)&&(go(e,o,n,i,r),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var Mo=Array.isArray;function Io(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ko&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Po(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Co(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return(e=Cc(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Rc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Io(e,t,n),r.return=e,r):((r=jc(n.type,n.key,n.props,null,e.mode,r)).ref=Io(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Nc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Dc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Rc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case N:return(n=jc(t.type,t.key,t.props,null,e.mode,n)).ref=Io(e,null,t),n.return=e,n;case B:return(t=Nc(t,e.mode,n)).return=e,t}if(Mo(t)||Q(t))return(t=Dc(t,e.mode,n,null)).return=e,t;Po(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case N:return n.key===i?n.type===L?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case B:return n.key===i?u(e,t,n,r):null}if(Mo(n)||Q(n))return null!==i?null:f(e,t,n,r,null);Po(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case N:return e=e.get(null===r.key?n:r.key)||null,r.type===L?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case B:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(Mo(r)||Q(r))return f(t,e=e.get(n)||null,r,i,null);Po(t,r)}return null}function m(i,a,s,c){for(var l=null,u=null,f=a,m=a=0,b=null;null!==f&&m<s.length;m++){f.index>m?(b=f,f=null):b=f.sibling;var y=p(i,f,s[m],c);if(null===y){null===f&&(f=b);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,m),null===u?l=y:u.sibling=y,u=y,f=b}if(m===s.length)return n(i,f),l;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],c))&&(a=o(f,a,m),null===u?l=f:u.sibling=f,u=f);return l}for(f=r(i,f);m<s.length;m++)null!==(b=h(f,i,m,s[m],c))&&(e&&null!==b.alternate&&f.delete(null===b.key?m:b.key),a=o(b,a,m),null===u?l=b:u.sibling=b,u=b);return e&&f.forEach((function(e){return t(i,e)})),l}function b(i,s,c,l){var u=Q(c);if("function"!=typeof u)throw Error(a(150));if(null==(c=u.call(c)))throw Error(a(151));for(var f=u=null,m=s,b=s=0,y=null,g=c.next();null!==m&&!g.done;b++,g=c.next()){m.index>b?(y=m,m=null):y=m.sibling;var v=p(i,m,g.value,l);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(i,m),s=o(v,s,b),null===f?u=v:f.sibling=v,f=v,m=y}if(g.done)return n(i,m),u;if(null===m){for(;!g.done;b++,g=c.next())null!==(g=d(i,g.value,l))&&(s=o(g,s,b),null===f?u=g:f.sibling=g,f=g);return u}for(m=r(i,m);!g.done;b++,g=c.next())null!==(g=h(m,i,b,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?b:g.key),s=o(g,s,b),null===f?u=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,r,o,c){var l="object"==typeof o&&null!==o&&o.type===L&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case N:e:{for(u=o.key,l=r;null!==l;){if(l.key===u){if(7===l.tag?o.type===L:l.elementType===o.type){n(e,l.sibling),(r=i(l,o.type===L?o.props.children:o.props)).ref=Io(e,l,o),r.return=e,e=r;break e}n(e,l);break}t(e,l),l=l.sibling}o.type===L?((r=Dc(o.props.children,e.mode,c,o.key)).return=e,e=r):((c=jc(o.type,o.key,o.props,null,e.mode,c)).ref=Io(e,r,o),c.return=e,e=c)}return s(e);case B:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Nc(o,e.mode,c)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Rc(o,e.mode,c)).return=e,e=r),s(e);if(Mo(o))return m(e,r,o,c);if(Q(o))return b(e,r,o,c);if(u&&Po(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var jo=Co(!0),Do=Co(!1),Ro={},No={current:Ro},Bo={current:Ro},Lo={current:Ro};function Uo(e){if(e===Ro)throw Error(a(174));return e}function Fo(e,t){ui(Lo,t),ui(Bo,e),ui(No,Ro);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:qe(null,"");break;default:t=qe(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}li(No),ui(No,t)}function qo(e){li(No),li(Bo),li(Lo)}function zo(e){Uo(Lo.current);var t=Uo(No.current),n=qe(t,e.type);t!==n&&(ui(Bo,e),ui(No,n))}function Vo(e){Bo.current===e&&(li(No),li(Bo))}var Ho={current:0};function $o(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ko(e,t){return{responder:e,props:t}}var Wo=j.ReactCurrentDispatcher,Go=j.ReactCurrentBatchConfig,Jo=0,Qo=null,Yo=null,Zo=null,Xo=null,ea=null,ta=null,na=0,ra=null,ia=0,oa=!1,aa=null,sa=0;function ca(){throw Error(a(321))}function la(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Qr(e[n],t[n]))return!1;return!0}function ua(e,t,n,r,i,o){if(Jo=o,Qo=t,Zo=null!==e?e.memoizedState:null,Wo.current=null===Zo?Ma:Ia,t=n(r,i),oa){do{oa=!1,sa+=1,Zo=null!==e?e.memoizedState:null,ta=Xo,ra=ea=Yo=null,Wo.current=Ia,t=n(r,i)}while(oa);aa=null,sa=0}if(Wo.current=Aa,(e=Qo).memoizedState=Xo,e.expirationTime=na,e.updateQueue=ra,e.effectTag|=ia,e=null!==Yo&&null!==Yo.next,Jo=0,ta=ea=Xo=Zo=Yo=Qo=null,na=0,ra=null,ia=0,e)throw Error(a(300));return t}function fa(){Wo.current=Aa,Jo=0,ta=ea=Xo=Zo=Yo=Qo=null,na=0,ra=null,ia=0,oa=!1,aa=null,sa=0}function da(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===ea?Xo=ea=e:ea=ea.next=e,ea}function pa(){if(null!==ta)ta=(ea=ta).next,Zo=null!==(Yo=Zo)?Yo.next:null;else{if(null===Zo)throw Error(a(310));var e={memoizedState:(Yo=Zo).memoizedState,baseState:Yo.baseState,queue:Yo.queue,baseUpdate:Yo.baseUpdate,next:null};ea=null===ea?Xo=e:ea.next=e,Zo=Yo.next}return ea}function ha(e,t){return"function"==typeof t?t(e):t}function ma(e){var t=pa(),n=t.queue;if(null===n)throw Error(a(311));if(n.lastRenderedReducer=e,0<sa){var r=n.dispatch;if(null!==aa){var i=aa.get(n);if(void 0!==i){aa.delete(n);var o=t.memoizedState;do{o=e(o,i.action),i=i.next}while(null!==i);return Qr(o,t.memoizedState)||(qa=!0),t.memoizedState=o,t.baseUpdate===n.last&&(t.baseState=o),n.lastRenderedState=o,[o,r]}}return[t.memoizedState,r]}r=n.last;var s=t.baseUpdate;if(o=t.baseState,null!==s?(null!==r&&(r.next=null),r=s.next):r=null!==r?r.next:null,null!==r){var c=i=null,l=r,u=!1;do{var f=l.expirationTime;f<Jo?(u||(u=!0,c=s,i=o),f>na&&dc(na=f)):(fc(f,l.suspenseConfig),o=l.eagerReducer===e?l.eagerState:e(o,l.action)),s=l,l=l.next}while(null!==l&&l!==r);u||(c=s,i=o),Qr(o,t.memoizedState)||(qa=!0),t.memoizedState=o,t.baseUpdate=c,t.baseState=i,n.lastRenderedState=o}return[t.memoizedState,n.dispatch]}function ba(e){var t=da();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e}).dispatch=Ta.bind(null,Qo,e),[t.memoizedState,e]}function ya(e){return ma(ha)}function ga(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===ra?(ra={lastEffect:null}).lastEffect=e.next=e:null===(t=ra.lastEffect)?ra.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,ra.lastEffect=e),e}function va(e,t,n,r){var i=da();ia|=e,i.memoizedState=ga(t,n,void 0,void 0===r?null:r)}function wa(e,t,n,r){var i=pa();r=void 0===r?null:r;var o=void 0;if(null!==Yo){var a=Yo.memoizedState;if(o=a.destroy,null!==r&&la(r,a.deps))return void ga(0,n,o,r)}ia|=e,i.memoizedState=ga(t,n,o,r)}function _a(e,t){return va(516,192,e,t)}function ka(e,t){return wa(516,192,e,t)}function xa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Sa(){}function Oa(e,t){return da().memoizedState=[e,void 0===t?null:t],e}function Ea(e,t){var n=pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&la(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ta(e,t,n){if(!(25>sa))throw Error(a(301));var r=e.alternate;if(e===Qo||null!==r&&r===Qo)if(oa=!0,e={expirationTime:Jo,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===aa&&(aa=new Map),void 0===(n=aa.get(t)))aa.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var i=Zs(),o=_o.suspense;o={expirationTime:i=Xs(i,e,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var s=t.last;if(null===s)o.next=o;else{var c=s.next;null!==c&&(o.next=c),s.next=o}if(t.last=o,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=r(l,n);if(o.eagerReducer=r,o.eagerState=u,Qr(u,l))return}catch(e){}ec(e,i)}}var Aa={readContext:so,useCallback:ca,useContext:ca,useEffect:ca,useImperativeHandle:ca,useLayoutEffect:ca,useMemo:ca,useReducer:ca,useRef:ca,useState:ca,useDebugValue:ca,useResponder:ca,useDeferredValue:ca,useTransition:ca},Ma={readContext:so,useCallback:Oa,useContext:so,useEffect:_a,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,va(4,36,xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return va(4,36,e,t)},useMemo:function(e,t){var n=da();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=da();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ta.bind(null,Qo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},da().memoizedState=e},useState:ba,useDebugValue:Sa,useResponder:Ko,useDeferredValue:function(e,t){var n=ba(e),r=n[0],i=n[1];return _a((function(){o.unstable_next((function(){var n=Go.suspense;Go.suspense=void 0===t?null:t;try{i(e)}finally{Go.suspense=n}}))}),[e,t]),r},useTransition:function(e){var t=ba(!1),n=t[0],r=t[1];return[Oa((function(t){r(!0),o.unstable_next((function(){var n=Go.suspense;Go.suspense=void 0===e?null:e;try{r(!1),t()}finally{Go.suspense=n}}))}),[e,n]),n]}},Ia={readContext:so,useCallback:Ea,useContext:so,useEffect:ka,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,wa(4,36,xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4,36,e,t)},useMemo:function(e,t){var n=pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&la(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:ma,useRef:function(){return pa().memoizedState},useState:ya,useDebugValue:Sa,useResponder:Ko,useDeferredValue:function(e,t){var n=ya(),r=n[0],i=n[1];return ka((function(){o.unstable_next((function(){var n=Go.suspense;Go.suspense=void 0===t?null:t;try{i(e)}finally{Go.suspense=n}}))}),[e,t]),r},useTransition:function(e){var t=ya(),n=t[0],r=t[1];return[Ea((function(t){r(!0),o.unstable_next((function(){var n=Go.suspense;Go.suspense=void 0===e?null:e;try{r(!1),t()}finally{Go.suspense=n}}))}),[e,n]),n]}},Pa=null,Ca=null,ja=!1;function Da(e,t){var n=Ic(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ra(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Na(e){if(ja){var t=Ca;if(t){var n=t;if(!Ra(e,t)){if(!(t=nr(n.nextSibling))||!Ra(e,t))return e.effectTag=-1025&e.effectTag|2,ja=!1,void(Pa=e);Da(Pa,n)}Pa=e,Ca=nr(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,ja=!1,Pa=e}}function Ba(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Pa=e}function La(e){if(e!==Pa)return!1;if(!ja)return Ba(e),ja=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Xn(t,e.memoizedProps))for(t=Ca;t;)Da(e,t),t=nr(t.nextSibling);if(Ba(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ca=nr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ca=null}}else Ca=Pa?nr(e.stateNode.nextSibling):null;return!0}function Ua(){Ca=Pa=null,ja=!1}var Fa=j.ReactCurrentOwner,qa=!1;function za(e,t,n,r){t.child=null===e?Do(t,null,n,r):jo(t,e.child,n,r)}function Va(e,t,n,r,i){n=n.render;var o=t.ref;return ao(t,i),r=ua(e,t,n,r,o,i),null===e||qa?(t.effectTag|=1,za(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),os(e,t,i))}function Ha(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Pc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=jc(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,$a(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Zr)(i,r)&&e.ref===t.ref)?os(e,t,o):(t.effectTag|=1,(e=Cc(a,r)).ref=t.ref,e.return=t,t.child=e)}function $a(e,t,n,r,i,o){return null!==e&&Zr(e.memoizedProps,r)&&e.ref===t.ref&&(qa=!1,i<o)?os(e,t,o):Wa(e,t,n,r,o)}function Ka(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Wa(e,t,n,r,i){var o=bi(n)?hi:di.current;return o=mi(t,o),ao(t,i),n=ua(e,t,n,r,o,i),null===e||qa?(t.effectTag|=1,za(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),os(e,t,i))}function Ga(e,t,n,r,i){if(bi(n)){var o=!0;_i(t)}else o=!1;if(ao(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Eo(t,n,r),Ao(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=so(l):l=mi(t,l=bi(n)?hi:di.current);var u=n.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==l)&&To(t,a,r,l),co=!1;var d=t.memoizedState;c=a.state=d;var p=t.updateQueue;null!==p&&(go(t,p,r,a,i),c=t.memoizedState),s!==r||d!==c||pi.current||co?("function"==typeof u&&(xo(t,n,u,r),c=t.memoizedState),(s=co||Oo(t,n,s,r,d,c,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,s=t.memoizedProps,a.props=t.type===t.elementType?s:Yi(t.type,s),c=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=so(l):l=mi(t,l=bi(n)?hi:di.current),(f="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==l)&&To(t,a,r,l),co=!1,c=t.memoizedState,d=a.state=c,null!==(p=t.updateQueue)&&(go(t,p,r,a,i),d=t.memoizedState),s!==r||c!==d||pi.current||co?("function"==typeof u&&(xo(t,n,u,r),d=t.memoizedState),(u=co||Oo(t,n,s,r,c,d,l))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return Ja(e,t,n,r,o,i)}function Ja(e,t,n,r,i,o){Ka(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&ki(t,n,!1),os(e,t,o);r=t.stateNode,Fa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=jo(t,e.child,null,o),t.child=jo(t,null,s,o)):za(e,t,s,o),t.memoizedState=r.state,i&&ki(t,n,!0),t.child}function Qa(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Fo(e,t.containerInfo)}var Ya,Za,Xa,es={dehydrated:null,retryTime:0};function ts(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Ho.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),ui(Ho,1&a),null===e){if(void 0!==o.fallback&&Na(t),s){if(s=o.fallback,(o=Dc(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Dc(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=es,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Do(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Cc(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Cc(i,o,i.expirationTime)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=es,t.child=n,i}return n=jo(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Dc(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Dc(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=es,t.child=o,n}return t.memoizedState=null,t.child=jo(t,e,o.children,n)}function ns(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),oo(e.return,t)}function rs(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function is(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(za(e,t,r.children,n),0!=(2&(r=Ho.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ns(e,n);else if(19===e.tag)ns(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ui(Ho,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===$o(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rs(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===$o(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rs(t,!0,n,null,o,t.lastEffect);break;case"together":rs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function os(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&dc(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Cc(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Cc(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function as(e){e.effectTag|=4}function ss(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function cs(e){switch(e.tag){case 1:bi(e.type)&&yi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(qo(),gi(),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Vo(e),null;case 13:return li(Ho),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return li(Ho),null;case 4:return qo(),null;case 10:return io(e),null;default:return null}}function ls(e,t){return{value:e,source:t,stack:Z(t)}}Ya=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Za=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,c,l=t.stateNode;switch(Uo(No.current),e=null,n){case"input":a=Ee(l,a),r=Ee(l,r),e=[];break;case"option":a=Ce(l,a),r=Ce(l,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=De(l,a),r=De(l,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(l.onclick=Hn)}for(s in qn(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(c in l=a[s])l.hasOwnProperty(c)&&(n||(n={}),n[c]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(p.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var u=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l))if("style"===s)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(n||(n={}),n[c]=u[c])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(s,""+u)):"children"===s?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(p.hasOwnProperty(s)?(null!=u&&Vn(o,s),e||l===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&as(t)}},Xa=function(e,t,n,r){n!==r&&as(t)};var us="function"==typeof WeakSet?WeakSet:Set;function fs(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=Z(n)),null!==n&&Y(n.type),t=t.value,null!==e&&1===e.tag&&Y(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ds(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Sc(e,t)}else t.current=null}function ps(e,t){switch(t.tag){case 0:case 11:case 15:hs(2,0,t);break;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}break;case 3:case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}function hs(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if(0!=(r.tag&e)){var i=r.destroy;r.destroy=void 0,void 0!==i&&i()}0!=(r.tag&t)&&(i=r.create,r.destroy=i()),r=r.next}while(r!==n)}}function ms(e,t,n){switch("function"==typeof Ac&&Ac(t),t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Hi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){Sc(i,e)}}e=e.next}while(e!==r)}))}break;case 1:ds(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){Sc(e,t)}}(t,n);break;case 5:ds(t);break;case 4:vs(e,t,n)}}function bs(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,null!==t&&bs(t)}function ys(e){return 5===e.tag||3===e.tag||4===e.tag}function gs(e){e:{for(var t=e.return;null!==t;){if(ys(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(He(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ys(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){var o=5===i.tag||6===i.tag;if(o){var s=o?i.stateNode:i.stateNode.instance;if(n)if(r){var c=s;s=n,8===(o=t).nodeType?o.parentNode.insertBefore(c,s):o.insertBefore(c,s)}else t.insertBefore(s,n);else r?(8===(c=t).nodeType?(o=c.parentNode).insertBefore(s,c):(o=c).appendChild(s),null!=(c=c._reactRootContainer)||null!==o.onclick||(o.onclick=Hn)):t.appendChild(s)}else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function vs(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var c=e,l=o,u=n,f=l;;)if(ms(c,f,u),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break;for(;null===f.sibling;){if(null===f.return||f.return===l)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(c=r,l=o.stateNode,8===c.nodeType?c.parentNode.removeChild(l):c.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(ms(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ws(e,t){switch(t.tag){case 0:case 11:case 14:case 15:hs(4,8,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[ar]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ae(n,r),zn(e,i),t=zn(e,r),i=0;i<o.length;i+=2){var s=o[i],c=o[i+1];"style"===s?Un(n,c):"dangerouslySetInnerHTML"===s?Ve(n,c):"children"===s?He(n,c):ke(n,s,c,t)}switch(e){case"input":Me(n,r);break;case"textarea":Ne(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?je(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?je(n,!!r.multiple,r.defaultValue,!0):je(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw Error(a(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:(t=t.stateNode).hydrate&&(t.hydrate=!1,Et(t.containerInfo));break;case 12:break;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Fs=qi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=Ln("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}_s(t);break;case 19:_s(t);break;case 17:case 20:case 21:break;default:throw Error(a(163))}}function _s(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new us),t.forEach((function(t){var r=Ec.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ks="function"==typeof WeakMap?WeakMap:Map;function xs(e,t,n){(n=fo(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zs||(zs=!0,Vs=r),fs(e,t)},n}function Ss(e,t,n){(n=fo(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return fs(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Hs?Hs=new Set([this]):Hs.add(this),fs(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Os,Es=Math.ceil,Ts=j.ReactCurrentDispatcher,As=j.ReactCurrentOwner,Ms=0,Is=null,Ps=null,Cs=0,js=0,Ds=null,Rs=1073741823,Ns=1073741823,Bs=null,Ls=0,Us=!1,Fs=0,qs=null,zs=!1,Vs=null,Hs=null,$s=!1,Ks=null,Ws=90,Gs=null,Js=0,Qs=null,Ys=0;function Zs(){return 0!=(48&Ms)?1073741821-(qi()/10|0):0!==Ys?Ys:Ys=1073741821-(qi()/10|0)}function Xs(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=zi();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&Ms))return Cs;if(null!==n)e=Qi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Qi(e,150,100);break;case 97:case 96:e=Qi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Is&&e===Cs&&--e,e}function ec(e,t){if(50<Js)throw Js=0,Qs=null,Error(a(185));if(null!==(e=tc(e,t))){var n=zi();1073741823===t?0!=(8&Ms)&&0==(48&Ms)?oc(e):(rc(e),0===Ms&&Wi()):rc(e),0==(4&Ms)||98!==n&&99!==n||(null===Gs?Gs=new Map([[e,t]]):(void 0===(n=Gs.get(e))||n>t)&&Gs.set(e,t))}}function tc(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Is===i&&(dc(t),4===js&&Uc(i,Cs)),Fc(i,t)),i}function nc(e){var t=e.lastExpiredTime;return 0!==t?t:Lc(e,t=e.firstPendingTime)?(t=e.lastPingedTime)>(e=e.nextKnownPendingLevel)?t:e:t}function rc(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Ki(oc.bind(null,e));else{var t=nc(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Zs();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ri&&Oi(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Ki(oc.bind(null,e)):$i(r,ic.bind(null,e),{timeout:10*(1073741821-t)-qi()}),e.callbackNode=t}}}function ic(e,t){if(Ys=0,t)return qc(e,t=Zs()),rc(e),null;var n=nc(e);if(0!==n){if(t=e.callbackNode,0!=(48&Ms))throw Error(a(327));if(_c(),e===Is&&n===Cs||cc(e,n),null!==Ps){var r=Ms;Ms|=16;for(var i=uc();;)try{hc();break}catch(t){lc(e,t)}if(no(),Ms=r,Ts.current=i,1===js)throw t=Ds,cc(e,n),Uc(e,n),rc(e),t;if(null===Ps)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=js,Is=null,r){case 0:case 1:throw Error(a(345));case 2:qc(e,2<n?2:n);break;case 3:if(Uc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=yc(i)),1073741823===Rs&&10<(i=Fs+500-qi())){if(Us){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,cc(e,n);break}}if(0!==(o=nc(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=er(gc.bind(null,e),i);break}gc(e);break;case 4:if(Uc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=yc(i)),Us&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,cc(e,n);break}if(0!==(i=nc(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ns?r=10*(1073741821-Ns)-qi():1073741823===Rs?r=0:(r=10*(1073741821-Rs)-5e3,0>(r=(i=qi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Es(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=er(gc.bind(null,e),r);break}gc(e);break;case 5:if(1073741823!==Rs&&null!==Bs){o=Rs;var s=Bs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=qi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Uc(e,n),e.timeoutHandle=er(gc.bind(null,e),r);break}}gc(e);break;default:throw Error(a(329))}if(rc(e),e.callbackNode===t)return ic.bind(null,e)}}return null}function oc(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,e.finishedExpirationTime===t)gc(e);else{if(0!=(48&Ms))throw Error(a(327));if(_c(),e===Is&&t===Cs||cc(e,t),null!==Ps){var n=Ms;Ms|=16;for(var r=uc();;)try{pc();break}catch(t){lc(e,t)}if(no(),Ms=n,Ts.current=r,1===js)throw n=Ds,cc(e,t),Uc(e,t),rc(e),n;if(null!==Ps)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Is=null,gc(e),rc(e)}}return null}function ac(e,t){var n=Ms;Ms|=1;try{return e(t)}finally{0===(Ms=n)&&Wi()}}function sc(e,t){var n=Ms;Ms&=-2,Ms|=8;try{return e(t)}finally{0===(Ms=n)&&Wi()}}function cc(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,tr(n)),null!==Ps)for(n=Ps.return;null!==n;){var r=n;switch(r.tag){case 1:var i=r.type.childContextTypes;null!=i&&yi();break;case 3:qo(),gi();break;case 5:Vo(r);break;case 4:qo();break;case 13:case 19:li(Ho);break;case 10:io(r)}n=n.return}Is=e,Ps=Cc(e.current,null),Cs=t,js=0,Ds=null,Ns=Rs=1073741823,Bs=null,Ls=0,Us=!1}function lc(e,t){for(;;){try{if(no(),fa(),null===Ps||null===Ps.return)return js=1,Ds=t,null;e:{var n=e,r=Ps.return,i=Ps,o=t;if(t=Cs,i.effectTag|=2048,i.firstEffect=i.lastEffect=null,null!==o&&"object"==typeof o&&"function"==typeof o.then){var a=o,s=0!=(1&Ho.current),c=r;do{var l;if(l=13===c.tag){var u=c.memoizedState;if(null!==u)l=null!==u.dehydrated;else{var f=c.memoizedProps;l=void 0!==f.fallback&&(!0!==f.unstable_avoidThisFallback||!s)}}if(l){var d=c.updateQueue;if(null===d){var p=new Set;p.add(a),c.updateQueue=p}else d.add(a);if(0==(2&c.mode)){if(c.effectTag|=64,i.effectTag&=-2981,1===i.tag)if(null===i.alternate)i.tag=17;else{var h=fo(1073741823,null);h.tag=2,ho(i,h)}i.expirationTime=1073741823;break e}o=void 0,i=t;var m=n.pingCache;if(null===m?(m=n.pingCache=new ks,o=new Set,m.set(a,o)):void 0===(o=m.get(a))&&(o=new Set,m.set(a,o)),!o.has(i)){o.add(i);var b=Oc.bind(null,n,a,i);a.then(b,b)}c.effectTag|=4096,c.expirationTime=t;break e}c=c.return}while(null!==c);o=Error((Y(i.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+Z(i))}5!==js&&(js=2),o=ls(o,i),c=r;do{switch(c.tag){case 3:a=o,c.effectTag|=4096,c.expirationTime=t,mo(c,xs(c,a,t));break e;case 1:a=o;var y=c.type,g=c.stateNode;if(0==(64&c.effectTag)&&("function"==typeof y.getDerivedStateFromError||null!==g&&"function"==typeof g.componentDidCatch&&(null===Hs||!Hs.has(g)))){c.effectTag|=4096,c.expirationTime=t,mo(c,Ss(c,a,t));break e}}c=c.return}while(null!==c)}Ps=bc(Ps)}catch(e){t=e;continue}break}}function uc(){var e=Ts.current;return Ts.current=Aa,null===e?Aa:e}function fc(e,t){e<Rs&&2<e&&(Rs=e),null!==t&&e<Ns&&2<e&&(Ns=e,Bs=t)}function dc(e){e>Ls&&(Ls=e)}function pc(){for(;null!==Ps;)Ps=mc(Ps)}function hc(){for(;null!==Ps&&!Ei();)Ps=mc(Ps)}function mc(e){var t=Os(e.alternate,e,Cs);return e.memoizedProps=e.pendingProps,null===t&&(t=bc(e)),As.current=null,t}function bc(e){Ps=e;do{var t=Ps.alternate;if(e=Ps.return,0==(2048&Ps.effectTag)){e:{var n=t,r=Cs,o=(t=Ps).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:bi(t.type)&&yi();break;case 3:qo(),gi(),(o=t.stateNode).pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(null===n||null===n.child)&&La(t)&&as(t);break;case 5:Vo(t),r=Uo(Lo.current);var s=t.type;if(null!==n&&null!=t.stateNode)Za(n,t,s,o,r),n.ref!==t.ref&&(t.effectTag|=128);else if(o){var c=Uo(No.current);if(La(t)){var l=(o=t).stateNode;n=o.type;var u=o.memoizedProps,f=r;switch(l[or]=o,l[ar]=u,s=void 0,r=l,n){case"iframe":case"object":case"embed":On("load",r);break;case"video":case"audio":for(l=0;l<et.length;l++)On(et[l],r);break;case"source":On("error",r);break;case"img":case"image":case"link":On("error",r),On("load",r);break;case"form":On("reset",r),On("submit",r);break;case"details":On("toggle",r);break;case"input":Te(r,u),On("invalid",r),Vn(f,"onChange");break;case"select":r._wrapperState={wasMultiple:!!u.multiple},On("invalid",r),Vn(f,"onChange");break;case"textarea":Re(r,u),On("invalid",r),Vn(f,"onChange")}for(s in qn(n,u),l=null,u)u.hasOwnProperty(s)&&(c=u[s],"children"===s?"string"==typeof c?r.textContent!==c&&(l=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(l=["children",""+c]):p.hasOwnProperty(s)&&null!=c&&Vn(f,s));switch(n){case"input":Se(r),Ie(r,u,!0);break;case"textarea":Se(r),Be(r);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(r.onclick=Hn)}s=l,o.updateQueue=s,(o=null!==s)&&as(t)}else{n=t,f=s,u=o,l=9===r.nodeType?r:r.ownerDocument,c===Le&&(c=Fe(f)),c===Le?"script"===f?((u=l.createElement("div")).innerHTML="<script><\/script>",l=u.removeChild(u.firstChild)):"string"==typeof u.is?l=l.createElement(f,{is:u.is}):(l=l.createElement(f),"select"===f&&(f=l,u.multiple?f.multiple=!0:u.size&&(f.size=u.size))):l=l.createElementNS(c,f),(u=l)[or]=n,u[ar]=o,Ya(u,t),t.stateNode=u;var d=r,h=zn(f=s,n=o);switch(f){case"iframe":case"object":case"embed":On("load",u),r=n;break;case"video":case"audio":for(r=0;r<et.length;r++)On(et[r],u);r=n;break;case"source":On("error",u),r=n;break;case"img":case"image":case"link":On("error",u),On("load",u),r=n;break;case"form":On("reset",u),On("submit",u),r=n;break;case"details":On("toggle",u),r=n;break;case"input":Te(u,n),r=Ee(u,n),On("invalid",u),Vn(d,"onChange");break;case"option":r=Ce(u,n);break;case"select":u._wrapperState={wasMultiple:!!n.multiple},r=i({},n,{value:void 0}),On("invalid",u),Vn(d,"onChange");break;case"textarea":Re(u,n),r=De(u,n),On("invalid",u),Vn(d,"onChange");break;default:r=n}qn(f,r),l=void 0,c=f;var m=u,b=r;for(l in b)if(b.hasOwnProperty(l)){var y=b[l];"style"===l?Un(m,y):"dangerouslySetInnerHTML"===l?null!=(y=y?y.__html:void 0)&&Ve(m,y):"children"===l?"string"==typeof y?("textarea"!==c||""!==y)&&He(m,y):"number"==typeof y&&He(m,""+y):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(p.hasOwnProperty(l)?null!=y&&Vn(d,l):null!=y&&ke(m,l,y,h))}switch(f){case"input":Se(u),Ie(u,n,!1);break;case"textarea":Se(u),Be(u);break;case"option":null!=n.value&&u.setAttribute("value",""+_e(n.value));break;case"select":(r=u).multiple=!!n.multiple,null!=(u=n.value)?je(r,!!n.multiple,u,!1):null!=n.defaultValue&&je(r,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof r.onClick&&(u.onclick=Hn)}(o=Zn(s,o))&&as(t)}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw Error(a(166));break;case 6:if(n&&null!=t.stateNode)Xa(0,t,n.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(a(166));r=Uo(Lo.current),Uo(No.current),La(t)?(s=(o=t).stateNode,r=o.memoizedProps,s[or]=o,(o=s.nodeValue!==r)&&as(t)):(s=t,(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[or]=s,t.stateNode=o)}break;case 11:break;case 13:if(li(Ho),o=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=r;break e}o=null!==o,s=!1,null===n?void 0!==t.memoizedProps.fallback&&La(t):(s=null!==(r=n.memoizedState),o||null===r||null!==(r=n.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=r,r.nextEffect=u):(t.firstEffect=t.lastEffect=r,r.nextEffect=null),r.effectTag=8)),o&&!s&&0!=(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ho.current)?0===js&&(js=3):(0!==js&&3!==js||(js=4),0!==Ls&&null!==Is&&(Uc(Is,Cs),Fc(Is,Ls)))),(o||s)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:qo();break;case 10:io(t);break;case 9:case 14:break;case 17:bi(t.type)&&yi();break;case 19:if(li(Ho),null===(o=t.memoizedState))break;if(s=0!=(64&t.effectTag),null===(u=o.rendering)){if(s)ss(o,!1);else if(0!==js||null!==n&&0!=(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(u=$o(n))){for(t.effectTag|=64,ss(o,!1),null!==(s=u.updateQueue)&&(t.updateQueue=s,t.effectTag|=4),null===o.lastEffect&&(t.firstEffect=null),t.lastEffect=o.lastEffect,o=r,s=t.child;null!==s;)n=o,(r=s).effectTag&=2,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null,null===(u=r.alternate)?(r.childExpirationTime=0,r.expirationTime=n,r.child=null,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null):(r.childExpirationTime=u.childExpirationTime,r.expirationTime=u.expirationTime,r.child=u.child,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,n=u.dependencies,r.dependencies=null===n?null:{expirationTime:n.expirationTime,firstContext:n.firstContext,responders:n.responders}),s=s.sibling;ui(Ho,1&Ho.current|2),t=t.child;break e}n=n.sibling}}else{if(!s)if(null!==(n=$o(u))){if(t.effectTag|=64,s=!0,null!==(r=n.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),ss(o,!0),null===o.tail&&"hidden"===o.tailMode&&!u.alternate){null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null);break}}else qi()>o.tailExpiration&&1<r&&(t.effectTag|=64,s=!0,ss(o,!1),t.expirationTime=t.childExpirationTime=r-1);o.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=o.last)?r.sibling=u:t.child=u,o.last=u)}if(null!==o.tail){0===o.tailExpiration&&(o.tailExpiration=qi()+500),r=o.tail,o.rendering=r,o.tail=r.sibling,o.lastEffect=t.lastEffect,r.sibling=null,o=Ho.current,ui(Ho,o=s?1&o|2:1&o),t=r;break e}break;case 20:case 21:break;default:throw Error(a(156,t.tag))}t=null}if(o=Ps,1===Cs||1!==o.childExpirationTime){for(s=0,r=o.child;null!==r;)(n=r.expirationTime)>s&&(s=n),(u=r.childExpirationTime)>s&&(s=u),r=r.sibling;o.childExpirationTime=s}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ps.firstEffect),null!==Ps.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ps.firstEffect),e.lastEffect=Ps.lastEffect),1<Ps.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ps:e.firstEffect=Ps,e.lastEffect=Ps))}else{if(null!==(t=cs(Ps)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ps.sibling))return t;Ps=e}while(null!==Ps);return 0===js&&(js=5),null}function yc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function gc(e){var t=zi();return Hi(99,vc.bind(null,e,t)),null}function vc(e,t){do{_c()}while(null!==Ks);if(0!=(48&Ms))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=yc(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Is&&(Ps=Is=null,Cs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Ms;Ms|=32,As.current=null,Qn=Sn;var s=Gn();if(Jn(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(c=(c=s.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(l&&0!==l.rangeCount){c=l.anchorNode;var u=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{c.nodeType,f.nodeType}catch(e){c=null;break e}var d=0,p=-1,h=-1,m=0,b=0,y=s,g=null;t:for(;;){for(var v;y!==c||0!==u&&3!==y.nodeType||(p=d+u),y!==f||0!==l&&3!==y.nodeType||(h=d+l),3===y.nodeType&&(d+=y.nodeValue.length),null!==(v=y.firstChild);)g=y,y=v;for(;;){if(y===s)break t;if(g===c&&++m===u&&(p=d),g===f&&++b===l&&(h=d),null!==(v=y.nextSibling))break;g=(y=g).parentNode}y=v}c=-1===p||-1===h?null:{start:p,end:h}}else c=null}c=c||{start:0,end:0}}else c=null;Yn={focusedElem:s,selectionRange:c},Sn=!1,qs=i;do{try{wc()}catch(e){if(null===qs)throw Error(a(330));Sc(qs,e),qs=qs.nextEffect}}while(null!==qs);qs=i;do{try{for(s=e,c=t;null!==qs;){var w=qs.effectTag;if(16&w&&He(qs.stateNode,""),128&w){var _=qs.alternate;if(null!==_){var k=_.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&w){case 2:gs(qs),qs.effectTag&=-3;break;case 6:gs(qs),qs.effectTag&=-3,ws(qs.alternate,qs);break;case 1024:qs.effectTag&=-1025;break;case 1028:qs.effectTag&=-1025,ws(qs.alternate,qs);break;case 4:ws(qs.alternate,qs);break;case 8:vs(s,u=qs,c),bs(u)}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(a(330));Sc(qs,e),qs=qs.nextEffect}}while(null!==qs);if(k=Yn,_=Gn(),w=k.focusedElem,c=k.selectionRange,_!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==c&&Jn(w)&&(_=c.start,void 0===(k=c.end)&&(k=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(k,w.value.length)):(k=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(k=k.getSelection(),u=w.textContent.length,s=Math.min(c.start,u),c=void 0===c.end?s:Math.min(c.end,u),!k.extend&&s>c&&(u=c,c=s,s=u),u=Wn(w,s),f=Wn(w,c),u&&f&&(1!==k.rangeCount||k.anchorNode!==u.node||k.anchorOffset!==u.offset||k.focusNode!==f.node||k.focusOffset!==f.offset)&&((_=_.createRange()).setStart(u.node,u.offset),k.removeAllRanges(),s>c?(k.addRange(_),k.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),k.addRange(_))))),_=[];for(k=w;k=k.parentNode;)1===k.nodeType&&_.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(k=_[w]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Yn=null,Sn=!!Qn,Qn=null,e.current=n,qs=i;do{try{for(w=r;null!==qs;){var x=qs.effectTag;if(36&x){var S=qs.alternate;switch(k=w,(_=qs).tag){case 0:case 11:case 15:hs(16,32,_);break;case 1:var O=_.stateNode;if(4&_.effectTag)if(null===S)O.componentDidMount();else{var E=_.elementType===_.type?S.memoizedProps:Yi(_.type,S.memoizedProps);O.componentDidUpdate(E,S.memoizedState,O.__reactInternalSnapshotBeforeUpdate)}var T=_.updateQueue;null!==T&&vo(0,T,O);break;case 3:var A=_.updateQueue;if(null!==A){if(s=null,null!==_.child)switch(_.child.tag){case 5:s=_.child.stateNode;break;case 1:s=_.child.stateNode}vo(0,A,s)}break;case 5:var M=_.stateNode;null===S&&4&_.effectTag&&Zn(_.type,_.memoizedProps)&&M.focus();break;case 6:case 4:case 12:break;case 13:if(null===_.memoizedState){var I=_.alternate;if(null!==I){var P=I.memoizedState;if(null!==P){var C=P.dehydrated;null!==C&&Et(C)}}}break;case 19:case 17:case 20:case 21:break;default:throw Error(a(163))}}if(128&x){_=void 0;var j=qs.ref;if(null!==j){var D=qs.stateNode;switch(qs.tag){case 5:_=D;break;default:_=D}"function"==typeof j?j(_):j.current=_}}qs=qs.nextEffect}}catch(e){if(null===qs)throw Error(a(330));Sc(qs,e),qs=qs.nextEffect}}while(null!==qs);qs=null,Ni(),Ms=o}else e.current=n;if($s)$s=!1,Ks=e,Ws=t;else for(qs=i;null!==qs;)t=qs.nextEffect,qs.nextEffect=null,qs=t;if(0===(t=e.firstPendingTime)&&(Hs=null),1073741823===t?e===Qs?Js++:(Js=0,Qs=e):Js=0,"function"==typeof Tc&&Tc(n.stateNode,r),rc(e),zs)throw zs=!1,e=Vs,Vs=null,e;return 0!=(8&Ms)||Wi(),null}function wc(){for(;null!==qs;){var e=qs.effectTag;0!=(256&e)&&ps(qs.alternate,qs),0==(512&e)||$s||($s=!0,$i(97,(function(){return _c(),null}))),qs=qs.nextEffect}}function _c(){if(90!==Ws){var e=97<Ws?97:Ws;return Ws=90,Hi(e,kc)}}function kc(){if(null===Ks)return!1;var e=Ks;if(Ks=null,0!=(48&Ms))throw Error(a(331));var t=Ms;for(Ms|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:hs(128,0,n),hs(0,64,n)}}catch(t){if(null===e)throw Error(a(330));Sc(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return Ms=t,Wi(),!0}function xc(e,t,n){ho(e,t=xs(e,t=ls(n,t),1073741823)),null!==(e=tc(e,1073741823))&&rc(e)}function Sc(e,t){if(3===e.tag)xc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){xc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Hs||!Hs.has(r))){ho(n,e=Ss(n,e=ls(t,e),1073741823)),null!==(n=tc(n,1073741823))&&rc(n);break}}n=n.return}}function Oc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Is===e&&Cs===n?4===js||3===js&&1073741823===Rs&&qi()-Fs<500?cc(e,Cs):Us=!0:Lc(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),rc(e)))}function Ec(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Xs(t=Zs(),e,null)),null!==(e=tc(e,t))&&rc(e)}Os=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||pi.current)qa=!0;else{if(r<n){switch(qa=!1,t.tag){case 3:Qa(t),Ua();break;case 5:if(zo(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:bi(t.type)&&_i(t);break;case 4:Fo(t,t.stateNode.containerInfo);break;case 10:ro(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?ts(e,t,n):(ui(Ho,1&Ho.current),null!==(t=os(e,t,n))?t.sibling:null);ui(Ho,1&Ho.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return is(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),ui(Ho,Ho.current),!r)return null}return os(e,t,n)}qa=!1}}else qa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=mi(t,di.current),ao(t,n),i=ua(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,fa(),bi(r)){var o=!0;_i(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var s=r.getDerivedStateFromProps;"function"==typeof s&&xo(t,r,s,e),i.updater=So,t.stateNode=i,i._reactInternalFiber=t,Ao(t,r,e,n),t=Ja(null,t,r,!0,o,n)}else t.tag=0,za(null,t,i,n),t=t.child;return t;case 16:if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Pc(e)?1:0;if(null!=e){if((e=e.$$typeof)===H)return 11;if(e===W)return 14}return 2}(i),e=Yi(i,e),o){case 0:t=Wa(null,t,i,e,n);break;case 1:t=Ga(null,t,i,e,n);break;case 11:t=Va(null,t,i,e,n);break;case 14:t=Ha(null,t,i,Yi(i.type,e),r,n);break;default:throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Wa(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ga(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if(Qa(t),null===(r=t.updateQueue))throw Error(a(282));if(i=null!==(i=t.memoizedState)?i.element:null,go(t,r,t.pendingProps,null,n),(r=t.memoizedState.element)===i)Ua(),t=os(e,t,n);else{if((i=t.stateNode.hydrate)&&(Ca=nr(t.stateNode.containerInfo.firstChild),Pa=t,i=ja=!0),i)for(n=Do(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else za(e,t,r,n),Ua();t=t.child}return t;case 5:return zo(t),null===e&&Na(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Xn(r,i)?s=null:null!==o&&Xn(r,o)&&(t.effectTag|=16),Ka(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(za(e,t,s,n),t=t.child),t;case 6:return null===e&&Na(t),null;case 13:return ts(e,t,n);case 4:return Fo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=jo(t,null,r,n):za(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Va(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return za(e,t,t.pendingProps,n),t.child;case 8:case 12:return za(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,ro(t,o=i.value),null!==s){var c=s.value;if(0===(o=Qr(c,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(s.children===i.children&&!pi.current){t=os(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===c.tag&&((u=fo(n,null)).tag=2,ho(c,u)),c.expirationTime<n&&(c.expirationTime=n),null!==(u=c.alternate)&&u.expirationTime<n&&(u.expirationTime=n),oo(c.return,n),l.expirationTime<n&&(l.expirationTime=n);break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}}za(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,ao(t,n),r=r(i=so(i,o.unstable_observedBits)),t.effectTag|=1,za(e,t,r,n),t.child;case 14:return o=Yi(i=t.type,t.pendingProps),Ha(e,t,i,o=Yi(i.type,o),r,n);case 15:return $a(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,bi(r)?(e=!0,_i(t)):e=!1,ao(t,n),Eo(t,r,i),Ao(t,r,i,n),Ja(null,t,r,!0,e,n);case 19:return is(e,t,n)}throw Error(a(156,t.tag))};var Tc=null,Ac=null;function Mc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ic(e,t,n,r){return new Mc(e,t,n,r)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Cc(e,t){var n=e.alternate;return null===n?((n=Ic(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function jc(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Pc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case L:return Dc(n.children,i,o,t);case V:s=8,i|=7;break;case U:s=8,i|=1;break;case F:return(e=Ic(12,n,t,8|i)).elementType=F,e.type=F,e.expirationTime=o,e;case $:return(e=Ic(13,n,t,i)).type=$,e.elementType=$,e.expirationTime=o,e;case K:return(e=Ic(19,n,t,i)).elementType=K,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case q:s=10;break e;case z:s=9;break e;case H:s=11;break e;case W:s=14;break e;case G:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ic(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Dc(e,t,n,r){return(e=Ic(7,e,r,t)).expirationTime=n,e}function Rc(e,t,n){return(e=Ic(6,e,null,t)).expirationTime=n,e}function Nc(e,t,n){return(t=Ic(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Lc(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Uc(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Fc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function qc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function zc(e,t,n,r){var i=t.current,o=Zs(),s=_o.suspense;o=Xs(o,i,s);e:if(n){t:{if(tt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(bi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var l=n.type;if(bi(l)){n=wi(n,l,c);break e}}n=c}else n=fi;return null===t.context?t.context=n:t.pendingContext=n,(t=fo(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ho(i,t),ec(i,o),o}function Vc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Hc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function $c(e,t){Hc(e,t),(e=e.alternate)&&Hc(e,t)}function Kc(e,t,n){var r=new Bc(e,t,n=null!=n&&!0===n.hydrate),i=Ic(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,e[sr]=r.current,n&&0!==t&&function(e){var t=Dn(e);bt.forEach((function(n){Rn(n,e,t)})),yt.forEach((function(n){Rn(n,e,t)}))}(9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Wc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Gc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Vc(a);s.call(e)}}zc(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Kc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var c=i;i=function(){var e=Vc(a);c.call(e)}}sc((function(){zc(t,a,e,i)}))}return Vc(a)}function Jc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:B,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Wc(t))throw Error(a(200));return Jc(e,t,null,n)}Kc.prototype.render=function(e,t){zc(e,this._internalRoot,null,void 0===t?null:t)},Kc.prototype.unmount=function(e){var t=this._internalRoot,n=void 0===e?null:e,r=t.containerInfo;zc(null,t,null,(function(){r[sr]=null,null!==n&&n()}))},ot=function(e){if(13===e.tag){var t=Qi(Zs(),150,100);ec(e,t),$c(e,t)}},at=function(e){if(13===e.tag){Zs();var t=Ji++;ec(e,t),$c(e,t)}},st=function(e){if(13===e.tag){var t=Zs();ec(e,t=Xs(t,e,null)),$c(e,t)}},ee=function(e,t,n){switch(t){case"input":if(Me(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=fr(r);if(!i)throw Error(a(90));Oe(r),Me(r,i)}}}break;case"textarea":Ne(e,n);break;case"select":null!=(t=n.value)&&je(e,!!n.multiple,t,!1)}},ae=ac,se=function(e,t,n,r){var i=Ms;Ms|=4;try{return Hi(98,e.bind(null,t,n,r))}finally{0===(Ms=i)&&Wi()}},ce=function(){0==(49&Ms)&&(function(){if(null!==Gs){var e=Gs;Gs=null,e.forEach((function(e,t){qc(t,e),rc(t)})),Wi()}}(),_c())},le=function(e,t){var n=Ms;Ms|=2;try{return e(t)}finally{0===(Ms=n)&&Wi()}};var Yc,Zc,Xc={createPortal:Qc,findDOMNode:function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=it(t))?null:e.stateNode},hydrate:function(e,t,n){if(!Wc(t))throw Error(a(200));return Gc(null,e,t,!0,n)},render:function(e,t,n){if(!Wc(t))throw Error(a(200));return Gc(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!Wc(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Gc(e,t,n,!1,r)},unmountComponentAtNode:function(e){if(!Wc(e))throw Error(a(40));return!!e._reactRootContainer&&(sc((function(){Gc(null,null,e,!1,(function(){e._reactRootContainer=null,e[sr]=null}))})),!0)},unstable_createPortal:function(){return Qc.apply(void 0,arguments)},unstable_batchedUpdates:ac,flushSync:function(e,t){if(0!=(48&Ms))throw Error(a(187));var n=Ms;Ms|=1;try{return Hi(99,e.bind(null,t))}finally{Ms=n,Wi()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[lr,ur,fr,P.injectEventPluginsByName,d,jt,function(e){T(e,Ct)},ie,oe,In,I,_c,{current:!1}]}};Zc=(Yc={findFiberByHostInstance:cr,bundleType:0,version:"16.12.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Tc=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},Ac=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(i({},Yc,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:j.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=it(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Zc?Zc(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var el={default:Xc},tl=el&&Xc||el;e.exports=tl.default||tl},function(e,t,n){"use strict";e.exports=n(1330)},function(e,t,n){"use strict";
296 /** @license React v16.12.0
297  * react.production.min.js
298  *
299  * Copyright (c) Facebook, Inc. and its affiliates.
300  *
301  * This source code is licensed under the MIT license found in the
302  * LICENSE file in the root directory of this source tree.
303  */var r=n(406),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113;i&&Symbol.for("react.suspense_list");var h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116;i&&Symbol.for("react.fundamental"),i&&Symbol.for("react.responder"),i&&Symbol.for("react.scope");var b="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function _(){}function k(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var x=k.prototype=new _;x.constructor=k,r(x,w.prototype),x.isPureReactComponent=!0;var S={current:null},O={current:null},E=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:O.current}}function M(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var I=/\/+/g,P=[];function C(e,t,n,r){if(P.length){var i=P.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function D(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case o:case a:c=!0}}if(c)return r(i,t,""===n?"."+R(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var u=n+R(s=t[l],l);c+=e(s,u,r,i)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=b&&t[b]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),l=0;!(s=t.next()).done;)c+=e(s=s.value,u=n+R(s,l++),r,i);else if("object"===s)throw r=""+t,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return c}(e,"",t,n)}function R(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function N(e,t){e.func.call(e.context,t,e.count++)}function B(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?L(e,r,n,(function(e){return e})):null!=e&&(M(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(I,"$&/")+"/")+n)),r.push(e))}function L(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(I,"$&/")+"/"),D(e,B,t=C(t,o,r,i)),j(t)}function U(){var e=S.current;if(null===e)throw Error(y(321));return e}var F={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return L(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;D(e,N,t=C(null,null,t,n)),j(t)},count:function(e){return D(e,(function(){return null}),null)},toArray:function(e){var t=[];return L(e,t,null,(function(e){return e})),t},only:function(e){if(!M(e))throw Error(y(143));return e}},createRef:function(){return{current:null}},Component:w,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:d,render:e}},lazy:function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return U().useCallback(e,t)},useContext:function(e,t){return U().useContext(e,t)},useEffect:function(e,t){return U().useEffect(e,t)},useImperativeHandle:function(e,t,n){return U().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return U().useLayoutEffect(e,t)},useMemo:function(e,t){return U().useMemo(e,t)},useReducer:function(e,t,n){return U().useReducer(e,t,n)},useRef:function(e){return U().useRef(e)},useState:function(e){return U().useState(e)},Fragment:s,Profiler:l,StrictMode:c,Suspense:p,createElement:A,cloneElement:function(e,t,n){if(null==e)throw Error(y(267,e));var i=r({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=O.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)E.call(t,u)&&!T.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){l=Array(u);for(var f=0;f<u;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:c}},createFactory:function(e){var t=A.bind(null,e);return t.type=e,t},isValidElement:M,version:"16.12.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:S,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:O,IsSomeRendererActing:{current:!1},assign:r}},q={default:F},z=q&&F||q;e.exports=z.default||z},function(e,t,n){"use strict";e.exports=n(1332)},function(e,t,n){"use strict";
304 /** @license React v0.18.0
305  * scheduler.production.min.js
306  *
307  * Copyright (c) Facebook, Inc. and its affiliates.
308  *
309  * This source code is licensed under the MIT license found in the
310  * LICENSE file in the root directory of this source tree.
311  */var r,i,o,a,s;if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,u=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(u,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(u,0))},i=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var b=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var y=p.now();t.unstable_now=function(){return p.now()-y}}var g=!1,v=null,w=-1,_=5,k=0;a=function(){return t.unstable_now()>=k},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,S=x.port2;x.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();k=e+_;try{v(!0,e)?S.postMessage(null):(g=!1,v=null)}catch(e){throw S.postMessage(null),e}}else g=!1},r=function(e){v=e,g||(g=!0,S.postMessage(null))},i=function(e,n){w=h((function(){e(t.unstable_now())}),n)},o=function(){m(w),w=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=Math.floor((n-1)/2),i=e[r];if(!(void 0!==i&&0<A(i,t)))break e;e[r]=t,e[n]=i,n=r}}function E(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,c=e[s];if(void 0!==a&&0>A(a,n))void 0!==c&&0>A(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==c&&0>A(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var M=[],I=[],P=1,C=null,j=3,D=!1,R=!1,N=!1;function B(e){for(var t=E(I);null!==t;){if(null===t.callback)T(I);else{if(!(t.startTime<=e))break;T(I),t.sortIndex=t.expirationTime,O(M,t)}t=E(I)}}function L(e){if(N=!1,B(e),!R)if(null!==E(M))R=!0,r(U);else{var t=E(I);null!==t&&i(L,t.startTime-e)}}function U(e,n){R=!1,N&&(N=!1,o()),D=!0;var r=j;try{for(B(n),C=E(M);null!==C&&(!(C.expirationTime>n)||e&&!a());){var s=C.callback;if(null!==s){C.callback=null,j=C.priorityLevel;var c=s(C.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?C.callback=c:C===E(M)&&T(M),B(n)}else T(M);C=E(M)}if(null!==C)var l=!0;else{var u=E(I);null!==u&&i(L,u.startTime-n),l=!1}return l}finally{C=null,j=r,D=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var q=s;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:F(e)}else a=F(e),c=s;return e={id:P++,callback:n,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,O(I,e),null===E(M)&&e===E(I)&&(N?o():N=!0,i(L,c-s))):(e.sortIndex=a,O(M,e),R||D||(R=!0,r(U))),e},t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_shouldYield=function(){var e=t.unstable_now();B(e);var n=E(M);return n!==C&&null!==C&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<C.expirationTime||a()},t.unstable_requestPaint=q,t.unstable_continueExecution=function(){R||D||(R=!0,r(U))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return E(M)},t.unstable_Profiling=null},function(e,t,n){"use strict";
312 /** @license React v16.14.0
313  * react.production.min.js
314  *
315  * Copyright (c) Facebook, Inc. and its affiliates.
316  *
317  * This source code is licensed under the MIT license found in the
318  * LICENSE file in the root directory of this source tree.
319  */var r=n(1334),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,b="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function w(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}function _(){}function k(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var x=k.prototype=new _;x.constructor=k,r(x,w.prototype),x.isPureReactComponent=!0;var S={current:null},O=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)O.call(t,r)&&!E.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:S.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var M=/\/+/g,I=[];function P(e,t,n,r){if(I.length){var i=I.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function C(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var c=!1;if(null===t)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case o:case a:c=!0}}if(c)return r(i,t,""===n?"."+D(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l<t.length;l++){var u=n+D(s=t[l],l);c+=e(s,u,r,i)}else if(null===t||"object"!=typeof t?u=null:u="function"==typeof(u=b&&t[b]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),l=0;!(s=t.next()).done;)c+=e(s=s.value,u=n+D(s,l++),r,i);else if("object"===s)throw r=""+t,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return c}(e,"",t,n)}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function N(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?B(e,r,n,(function(e){return e})):null!=e&&(A(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(M,"$&/")+"/")+n)),r.push(e))}function B(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(M,"$&/")+"/"),j(e,N,t=P(t,o,r,i)),C(t)}var L={current:null};function U(){var e=L.current;if(null===e)throw Error(y(321));return e}var F={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return B(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;j(e,R,t=P(null,null,t,n)),C(t)},count:function(e){return j(e,(function(){return null}),null)},toArray:function(e){var t=[];return B(e,t,null,(function(e){return e})),t},only:function(e){if(!A(e))throw Error(y(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=l,t.PureComponent=k,t.StrictMode=c,t.Suspense=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,t.cloneElement=function(e,t,n){if(null==e)throw Error(y(267,e));var i=r({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)O.call(t,u)&&!E.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){l=Array(u);for(var f=0;f<u;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:d,render:e}},t.isValidElement=A,t.lazy=function(e){return{$$typeof:m,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return U().useCallback(e,t)},t.useContext=function(e,t){return U().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return U().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return U().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return U().useLayoutEffect(e,t)},t.useMemo=function(e,t){return U().useMemo(e,t)},t.useReducer=function(e,t,n){return U().useReducer(e,t,n)},t.useRef=function(e){return U().useRef(e)},t.useState=function(e){return U().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";
320 /*
321 object-assign
322 (c) Sindre Sorhus
323 @license MIT
324 */var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,c=a(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))i.call(n,u)&&(c[u]=n[u]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(c[s[f]]=n[s[f]])}}return c}},function(e,t,n){(t=n(31)(!1)).push([e.i,"body.modal-open{overflow:visible}.modal-2ljkUKHWOtPMSGzpUR_0M8{background-color:#fafbfd}.modal-container-3pbJWj9UxS0GNppmB9khM-{padding:40px}.modal-container-3pbJWj9UxS0GNppmB9khM- h1{font-size:26px;font-weight:bold;color:#32325d}.modal-container-3pbJWj9UxS0GNppmB9khM- p{font-size:16px;letter-spacing:-0.3px;color:#32325d;margin-bottom:40px}.modal-container-3pbJWj9UxS0GNppmB9khM- button{float:right;min-width:100px;margin-top:20px}.modal-content-empty-AxSlyTGbwXCdDngfSPoPu{background:transparent;box-shadow:none;display:flex;justify-content:center;align-items:center}.modal-content-1yNd2EScbTZtlwRIenJLDc{background-color:#fafbfd}.torus-2Q9ndj1w7YccOMybyN8GFF{font-size:12px;font-weight:300;color:#9092b6;cursor:pointer}\n",""]),t.locals={modal:"modal-2ljkUKHWOtPMSGzpUR_0M8","modal-container":"modal-container-3pbJWj9UxS0GNppmB9khM-",modalContainer:"modal-container-3pbJWj9UxS0GNppmB9khM-","modal-content-empty":"modal-content-empty-AxSlyTGbwXCdDngfSPoPu",modalContentEmpty:"modal-content-empty-AxSlyTGbwXCdDngfSPoPu","modal-content":"modal-content-1yNd2EScbTZtlwRIenJLDc",modalContent:"modal-content-1yNd2EScbTZtlwRIenJLDc",torus:"torus-2Q9ndj1w7YccOMybyN8GFF"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,'body[data-centered="true"]{height:85vh;background-color:white;overflow:visible !important}body[data-centered="true"] #app{height:100%}body[data-centered="true"] #app .container-3Ms4OvCWNwJapzrn-T5Uyd{display:flex;flex-direction:column;justify-content:center}.container-3Ms4OvCWNwJapzrn-T5Uyd{width:420px;margin-left:-30px;display:flex;flex-direction:column;background-color:white}.container-3Ms4OvCWNwJapzrn-T5Uyd .btn{margin-left:0;margin-right:0}.container-3Ms4OvCWNwJapzrn-T5Uyd .logo-container-30NDrqgVlTJgr64abxGPsB{margin-top:40px;margin-bottom:40px;display:flex}.container-3Ms4OvCWNwJapzrn-T5Uyd .logo-container-30NDrqgVlTJgr64abxGPsB .icon-krTUYoiAFxtbl5aDtu8Y_{width:80px;height:80px}.container-3Ms4OvCWNwJapzrn-T5Uyd .logo-container-30NDrqgVlTJgr64abxGPsB .logo-inner-container-2KNcFn3qeALy0Ov_VvysUi{margin-top:8px;margin-left:20px;display:flex;flex-direction:column;justify-content:space-evenly;align-items:start}.container-3Ms4OvCWNwJapzrn-T5Uyd .logo-container-30NDrqgVlTJgr64abxGPsB .logo-inner-container-2KNcFn3qeALy0Ov_VvysUi .logo-1YOHvFewLeDY8XbVDxJEru{height:50px}.container-3Ms4OvCWNwJapzrn-T5Uyd .logo-container-30NDrqgVlTJgr64abxGPsB .logo-inner-container-2KNcFn3qeALy0Ov_VvysUi .paragraph-1Ac3wfLmsAQifwZrOkzgux{font-size:16px;line-height:1}.container-3Ms4OvCWNwJapzrn-T5Uyd .title-1YFE7CVw-ljrWbsrDZHOzi{font-size:24px;letter-spacing:-1.07px;margin-bottom:24px;color:#525f7f}.container-3Ms4OvCWNwJapzrn-T5Uyd .mnemonic-3luxJlviHURCV0ekNRHy1D{font-family:"Courier Prime", serif;font-size:16px;letter-spacing:-0.36px;padding:20px 30px;text-align:center}.container-3Ms4OvCWNwJapzrn-T5Uyd .mnemonic-3luxJlviHURCV0ekNRHy1D:read-only{background-color:white}.container-3Ms4OvCWNwJapzrn-T5Uyd .mnemonic-3luxJlviHURCV0ekNRHy1D[readonly]{background-color:white}.container-3Ms4OvCWNwJapzrn-T5Uyd .sub-content-3RLjus79OJSHiO7OGCZoUx{margin-top:34px;font-size:14px;font-weight:300;text-align:center;color:#9092b6}.container-3Ms4OvCWNwJapzrn-T5Uyd hr{width:100%;margin-top:20px;margin-bottom:20px}.form-container-22p3qlGr0WSQrT3o31sJkC{display:flex;flex-direction:column}.buttons-1qQbZC72i_3DX2uqOSJQCq{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-start}.buttons-1qQbZC72i_3DX2uqOSJQCq button:not(:last-child){margin-right:8px}.buttons-1qQbZC72i_3DX2uqOSJQCq button{margin-bottom:8px;margin-left:0 !important}\n',""]),t.locals={container:"container-3Ms4OvCWNwJapzrn-T5Uyd","logo-container":"logo-container-30NDrqgVlTJgr64abxGPsB",logoContainer:"logo-container-30NDrqgVlTJgr64abxGPsB",icon:"icon-krTUYoiAFxtbl5aDtu8Y_","logo-inner-container":"logo-inner-container-2KNcFn3qeALy0Ov_VvysUi",logoInnerContainer:"logo-inner-container-2KNcFn3qeALy0Ov_VvysUi",logo:"logo-1YOHvFewLeDY8XbVDxJEru",paragraph:"paragraph-1Ac3wfLmsAQifwZrOkzgux",title:"title-1YFE7CVw-ljrWbsrDZHOzi",mnemonic:"mnemonic-3luxJlviHURCV0ekNRHy1D","sub-content":"sub-content-3RLjus79OJSHiO7OGCZoUx",subContent:"sub-content-3RLjus79OJSHiO7OGCZoUx","form-container":"form-container-22p3qlGr0WSQrT3o31sJkC",formContainer:"form-container-22p3qlGr0WSQrT3o31sJkC",buttons:"buttons-1qQbZC72i_3DX2uqOSJQCq"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".input-3D4RiQgfsq6CVDibN-Ssyh{box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02) !important}.input-3D4RiQgfsq6CVDibN-Ssyh:focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08) !important}\n",""]),t.locals={input:"input-3D4RiQgfsq6CVDibN-Ssyh"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".menu-nav-1_WHC06ZZyUf1MFpYgCHhe{position:fixed;top:0;left:0;padding-top:64px;width:270px;height:100%;z-index:900;background-color:white;overflow-y:auto}.background-xbpI23q2_pUFQsakAulEU{position:fixed;top:0;left:0;width:360px;height:100%;z-index:899;background-color:black}\n",""]),t.locals={"menu-nav":"menu-nav-1_WHC06ZZyUf1MFpYgCHhe",menuNav:"menu-nav-1_WHC06ZZyUf1MFpYgCHhe",background:"background-xbpI23q2_pUFQsakAulEU"},e.exports=t},function(e,t,n){var r=n(37),i=n(1340);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(31)(!1)).push([e.i,".header{width:100%;height:64px;position:relative}.header.fixed{position:fixed}.header-menu-left{position:absolute;height:64px;top:0}.header-section{flex:1;height:64px;display:flex;justify-content:center;align-items:center}.header-menu-right{position:absolute;height:64px;top:0;right:0}\n",""]),e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".menu-container-jKp_R3g-Ug-E6dc102oBK{height:64px;display:flex;flex-direction:row;align-items:center;padding-left:12px}.menu-img-3Ws5G3zOf3NqQMjVQuWomF{width:20px;height:20px;margin-left:14px;margin-bottom:4px;cursor:pointer}.chain-list-container-3lVS1ADkLvCaYJqwFSxJY0{cursor:pointer;display:flex;flex-direction:row;justify-content:center;align-items:center}.chain-list-container-3lVS1ADkLvCaYJqwFSxJY0 .title-MzwbR6axjSUpIx2dKWquf{font-size:24px;margin-right:6px}.chain-list-container-3lVS1ADkLvCaYJqwFSxJY0 .title-icon-container-1XGnq7lVXX3PIfX60anC7C{width:0;height:16px}.chain-list-container-3lVS1ADkLvCaYJqwFSxJY0 .title-icon-container-1XGnq7lVXX3PIfX60anC7C .title-icon-25e1WHW2QCVx0gKPqEq2KM{width:16px;height:16px;margin-top:-6px;fill:#8f8f8f}\n",""]),t.locals={"menu-container":"menu-container-jKp_R3g-Ug-E6dc102oBK",menuContainer:"menu-container-jKp_R3g-Ug-E6dc102oBK","menu-img":"menu-img-3Ws5G3zOf3NqQMjVQuWomF",menuImg:"menu-img-3Ws5G3zOf3NqQMjVQuWomF","chain-list-container":"chain-list-container-3lVS1ADkLvCaYJqwFSxJY0",chainListContainer:"chain-list-container-3lVS1ADkLvCaYJqwFSxJY0",title:"title-MzwbR6axjSUpIx2dKWquf","title-icon-container":"title-icon-container-1XGnq7lVXX3PIfX60anC7C",titleIconContainer:"title-icon-container-1XGnq7lVXX3PIfX60anC7C","title-icon":"title-icon-25e1WHW2QCVx0gKPqEq2KM",titleIcon:"title-icon-25e1WHW2QCVx0gKPqEq2KM"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,'[x-arrow]{position:absolute;z-index:1000}.popper{margin-top:6px;margin-bottom:6px;background-color:rgba(0,0,0,0.75);padding:4px;border-radius:6px;color:white;z-index:1000;transition:opacity 0.45s}.popper[x-placement="bottom"] [x-arrow]{top:-6px;border-bottom:6px solid rgba(0,0,0,0.75);border-right:6px solid transparent;border-left:6px solid transparent}.popper[x-placement="top"] [x-arrow]{bottom:-6px;border-top:6px solid rgba(0,0,0,0.75);border-right:6px solid transparent;border-left:6px solid transparent}.bright-13fqZ8zPAhE0WeoFFA0drv .popper{background-color:rgba(255,255,255,0.75);color:black}.bright-13fqZ8zPAhE0WeoFFA0drv .popper[x-placement="bottom"] [x-arrow]{border-bottom:6px solid rgba(255,255,255,0.75)}.bright-13fqZ8zPAhE0WeoFFA0drv .popper[x-placement="top"] [x-arrow]{border-top:6px solid rgba(255,255,255,0.75)}\n',""]),t.locals={bright:"bright-13fqZ8zPAhE0WeoFFA0drv"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".chain-list-container-2O1kmXQgj2e1mD5MUOrGU8{padding:12px;min-width:200px;text-align:center;max-height:300px;overflow-y:auto}.chain-list-container-2O1kmXQgj2e1mD5MUOrGU8 .chain-name-3y9Cmcj2vnhF87NtAYca07{cursor:pointer;font-size:20px;color:rgba(255,255,255,0.5);border-radius:6px;position:relative;display:flex;justify-content:center;align-items:center;margin-top:4px}.chain-list-container-2O1kmXQgj2e1mD5MUOrGU8 .chain-name-3y9Cmcj2vnhF87NtAYca07.selected{cursor:auto;color:white}.chain-list-container-2O1kmXQgj2e1mD5MUOrGU8 .chain-name-3y9Cmcj2vnhF87NtAYca07:not(.selected):hover{background:rgba(255,255,255,0.1);color:white}.chain-list-container-2O1kmXQgj2e1mD5MUOrGU8 .chain-name-3y9Cmcj2vnhF87NtAYca07:first-child{margin-top:0}.chain-list-container-2O1kmXQgj2e1mD5MUOrGU8 .chain-name-3y9Cmcj2vnhF87NtAYca07 .remove-btn-3lLJBY7v2feaF7LVf9_M_w{position:absolute;right:0;display:flex;height:100%;align-items:center}\n",""]),t.locals={"chain-list-container":"chain-list-container-2O1kmXQgj2e1mD5MUOrGU8",chainListContainer:"chain-list-container-2O1kmXQgj2e1mD5MUOrGU8","chain-name":"chain-name-3y9Cmcj2vnhF87NtAYca07",chainName:"chain-name-3y9Cmcj2vnhF87NtAYca07","remove-btn":"remove-btn-3lLJBY7v2feaF7LVf9_M_w",removeBtn:"remove-btn-3lLJBY7v2feaF7LVf9_M_w"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".modal-1Ot4jKecR_4QbNW6I5NS_p{padding:12px}@media (max-width: 575.98px){.modal-dialog-2vYhnkoMP1vH_uBHwSob04{margin:32px}.modal-dialog-2vYhnkoMP1vH_uBHwSob04.modal-dialog-centered{height:calc(100% - (32px * 2));min-height:unset}}.dialog-3k033EGXACYrInnI7-73vH .body-container-2pdHokQ9B38U0AlBCfSrCj{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0 32px 12px}.dialog-3k033EGXACYrInnI7-73vH .body-container-2pdHokQ9B38U0AlBCfSrCj h1{text-align:center;font-size:1.15rem;color:black;font-weight:bold;margin:0}.dialog-3k033EGXACYrInnI7-73vH .body-container-2pdHokQ9B38U0AlBCfSrCj p{margin-bottom:0;text-align:center;font-size:0.85rem;color:#525f7f;font-weight:normal;line-height:1.4}.dialog-3k033EGXACYrInnI7-73vH .buttons-3ZnGHM_mAAaVWgmkONpHaF{display:flex;justify-content:center}.dialog-3k033EGXACYrInnI7-73vH .buttons-3ZnGHM_mAAaVWgmkONpHaF button{width:80px}.dialog-3k033EGXACYrInnI7-73vH .buttons-3ZnGHM_mAAaVWgmkONpHaF button.btn-outline-default:not(:hover){color:#8898aa;border-color:#8898aa}\n",""]),t.locals={modal:"modal-1Ot4jKecR_4QbNW6I5NS_p","modal-dialog":"modal-dialog-2vYhnkoMP1vH_uBHwSob04",modalDialog:"modal-dialog-2vYhnkoMP1vH_uBHwSob04",dialog:"dialog-3k033EGXACYrInnI7-73vH","body-container":"body-container-2pdHokQ9B38U0AlBCfSrCj",bodyContainer:"body-container-2pdHokQ9B38U0AlBCfSrCj",buttons:"buttons-3ZnGHM_mAAaVWgmkONpHaF"},e.exports=t},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(1));var r=s(n(1346)),i=s(n(1348)),o=s(n(0)),a=s(n(997));n(998);function s(e){return e&&e.__esModule?e:{default:e}}function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},f=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),l(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,i=t.getClassNames("enter").doneClassName,o=n?r+" "+i:i;t.removeClasses(e,n?"appear":"enter"),l(e,o),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),l(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),l(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?(r&&n?n+"-":"")+e:n[e];return{className:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,i=n.activeClassName,o=n.doneClassName;r&&u(e,r),i&&u(e,i),o&&u(e,o)},i.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,l(e,t))},i.render=function(){var e=c({},this.props);return delete e.classNames,o.default.createElement(a.default,c({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(o.default.Component);f.defaultProps={classNames:""},f.propTypes={};var d=f;t.default=d,e.exports=t.default},function(e,t,n){"use strict";var r=n(115);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,i.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var i=r(n(1347));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){"use strict";
325 /** @license React v16.14.0
326  * react-dom.production.min.js
327  *
328  * Copyright (c) Facebook, Inc. and its affiliates.
329  *
330  * This source code is licensed under the MIT license found in the
331  * LICENSE file in the root directory of this source tree.
332  */var r=n(0),i=n(406),o=n(1350);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,i,o,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var c=!1,l=null,u=!1,f=null,d={onError:function(e){c=!0,l=e}};function p(e,t,n,r,i,o,a,u,f){c=!1,l=null,s.apply(d,arguments)}var h=null,m=null,b=null;function y(e,t,n){var r=e.type||"unknown-event";e.currentTarget=b(n),function(e,t,n,r,i,o,s,d,h){if(p.apply(this,arguments),c){if(!c)throw Error(a(198));var m=l;c=!1,l=null,u||(u=!0,f=m)}}(r,t,void 0,e),e.currentTarget=null}var g=null,v={};function w(){if(g)for(var e in v){var t=v[e],n=g.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!k[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in k[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,c=r;if(x.hasOwnProperty(c))throw Error(a(99,c));x[c]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&_(l[i],s,c);i=!0}else o.registrationName?(_(o.registrationName,s,c),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function _(e,t,n){if(S[e])throw Error(a(100,e));S[e]=t,O[e]=t.eventTypes[n].dependencies}var k=[],x={},S={},O={};function E(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!v.hasOwnProperty(t)||v[t]!==r){if(v[t])throw Error(a(102,t));v[t]=r,n=!0}}n&&w()}var T=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),A=null,M=null,I=null;function P(e){if(e=m(e)){if("function"!=typeof A)throw Error(a(280));var t=e.stateNode;t&&(t=h(t),A(e.stateNode,e.type,t))}}function C(e){M?I?I.push(e):I=[e]:M=e}function j(){if(M){var e=M,t=I;if(I=M=null,P(e),t)for(e=0;e<t.length;e++)P(t[e])}}function D(e,t){return e(t)}function R(e,t,n,r,i){return e(t,n,r,i)}function N(){}var B=D,L=!1,U=!1;function F(){null===M&&null===I||(N(),j())}function q(e,t,n){if(U)return e(t,n);U=!0;try{return B(e,t,n)}finally{U=!1,F()}}var z=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,V=Object.prototype.hasOwnProperty,H={},$={};function K(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){W[e]=new K(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];W[t]=new K(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){W[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){W[e]=new K(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){W[e]=new K(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){W[e]=new K(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){W[e]=new K(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){W[e]=new K(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){W[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var G=/[\-:]([a-z])/g;function J(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(G,J);W[t]=new K(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(G,J);W[t]=new K(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(G,J);W[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){W[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),W.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){W[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));var Q=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(e,t,n,r){var i=W.hasOwnProperty(t)?W[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!V.call($,e)||!V.call(H,e)&&(z.test(e)?$[e]=!0:(H[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,X="function"==typeof Symbol&&Symbol.for,ee=X?Symbol.for("react.element"):60103,te=X?Symbol.for("react.portal"):60106,ne=X?Symbol.for("react.fragment"):60107,re=X?Symbol.for("react.strict_mode"):60108,ie=X?Symbol.for("react.profiler"):60114,oe=X?Symbol.for("react.provider"):60109,ae=X?Symbol.for("react.context"):60110,se=X?Symbol.for("react.concurrent_mode"):60111,ce=X?Symbol.for("react.forward_ref"):60112,le=X?Symbol.for("react.suspense"):60113,ue=X?Symbol.for("react.suspense_list"):60120,fe=X?Symbol.for("react.memo"):60115,de=X?Symbol.for("react.lazy"):60116,pe=X?Symbol.for("react.block"):60121,he="function"==typeof Symbol&&Symbol.iterator;function me(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=he&&e[he]||e["@@iterator"])?e:null}function be(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case le:return"Suspense";case ue:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case ce:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return be(e.type);case pe:return be(e.render);case de:if(e=1===e._status?e._result:null)return be(e)}return null}function ye(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=be(e.type);n=null,r&&(n=be(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ge(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ve(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=ve(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ve(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ke(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function xe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ge(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&Y(e,"checked",t,!1)}function Oe(e,t){Se(e,t);var n=ge(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,n):t.hasOwnProperty("defaultValue")&&Te(e,t.type,ge(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Te(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Me(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ge(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ge(n)}}function Ce(e,t){var n=ge(t.value),r=ge(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function je(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var De="http://www.w3.org/1999/xhtml",Re="http://www.w3.org/2000/svg";function Ne(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Be(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Ne(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Le,Ue=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Re||"innerHTML"in e)e.innerHTML=t;else{for((Le=Le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function qe(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ze={animationend:qe("Animation","AnimationEnd"),animationiteration:qe("Animation","AnimationIteration"),animationstart:qe("Animation","AnimationStart"),transitionend:qe("Transition","TransitionEnd")},Ve={},He={};function $e(e){if(Ve[e])return Ve[e];if(!ze[e])return e;var t,n=ze[e];for(t in n)if(n.hasOwnProperty(t)&&t in He)return Ve[e]=n[t];return e}T&&(He=document.createElement("div").style,"AnimationEvent"in window||(delete ze.animationend.animation,delete ze.animationiteration.animation,delete ze.animationstart.animation),"TransitionEvent"in window||delete ze.transitionend.transition);var Ke=$e("animationend"),We=$e("animationiteration"),Ge=$e("animationstart"),Je=$e("transitionend"),Qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ye=new("function"==typeof WeakMap?WeakMap:Map);function Ze(e){var t=Ye.get(e);return void 0===t&&(t=new Map,Ye.set(e,t)),t}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Xe(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=o;break}if(c===r){s=!0,r=i,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=i;break}if(c===r){s=!0,r=o,n=i;break}c=c.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)y(e,t[r],n[r]);else t&&y(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(u)throw e=f,u=!1,f=null,e}}function ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!T)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}var ut=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ut.length&&ut.push(e)}function dt(e,t,n,r){if(ut.length){var i=ut.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function pt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Tn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ct(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,c=0;c<k.length;c++){var l=k[c];l&&(l=l.extractEvents(r,t,o,i,a))&&(s=rt(s,l))}st(s)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":Gt(t,"scroll",!0);break;case"focus":case"blur":Gt(t,"focus",!0),Gt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":lt(e)&&Gt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qe.indexOf(e)&&Wt(e,t)}n.set(e,null)}}var mt,bt,yt,gt=!1,vt=[],wt=null,_t=null,kt=null,xt=new Map,St=new Map,Ot=[],Et="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Tt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function At(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Mt(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":xt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function It(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=At(t,n,r,i,o),null!==t&&(null!==(t=An(t))&&bt(t)),e):(e.eventSystemFlags|=r,e)}function Pt(e){var t=Tn(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ct(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=An(t);return null!==n&&bt(n),e.blockedOn=t,!1}return!0}function jt(e,t,n){Ct(e)&&n.delete(t)}function Dt(){for(gt=!1;0<vt.length;){var e=vt[0];if(null!==e.blockedOn){null!==(e=An(e.blockedOn))&&mt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:vt.shift()}null!==wt&&Ct(wt)&&(wt=null),null!==_t&&Ct(_t)&&(_t=null),null!==kt&&Ct(kt)&&(kt=null),xt.forEach(jt),St.forEach(jt)}function Rt(e,t){e.blockedOn===t&&(e.blockedOn=null,gt||(gt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Dt)))}function Nt(e){function t(t){return Rt(t,e)}if(0<vt.length){Rt(vt[0],e);for(var n=1;n<vt.length;n++){var r=vt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==wt&&Rt(wt,e),null!==_t&&Rt(_t,e),null!==kt&&Rt(kt,e),xt.forEach(t),St.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Pt(n),null===n.blockedOn&&Ot.shift()}var Bt={},Lt=new Map,Ut=new Map,Ft=["abort","abort",Ke,"animationEnd",We,"animationIteration",Ge,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Je,"transitionEnd","waiting","waiting"];function qt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Ut.set(r,t),Lt.set(r,o),Bt[i]=o}}qt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),qt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),qt(Ft,2);for(var zt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Vt=0;Vt<zt.length;Vt++)Ut.set(zt[Vt],0);var Ht=o.unstable_UserBlockingPriority,$t=o.unstable_runWithPriority,Kt=!0;function Wt(e,t){Gt(t,e,!1)}function Gt(e,t,n){var r=Ut.get(t);switch(void 0===r?2:r){case 0:r=Jt.bind(null,t,1,e);break;case 1:r=Qt.bind(null,t,1,e);break;default:r=Yt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Jt(e,t,n,r){L||N();var i=Yt,o=L;L=!0;try{R(i,e,t,n,r)}finally{(L=o)||F()}}function Qt(e,t,n,r){$t(Ht,Yt.bind(null,e,t,n,r))}function Yt(e,t,n,r){if(Kt)if(0<vt.length&&-1<Et.indexOf(e))e=At(null,e,t,n,r),vt.push(e);else{var i=Zt(e,t,n,r);if(null===i)Mt(e,r);else if(-1<Et.indexOf(e))e=At(i,e,t,n,r),vt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return wt=It(wt,e,t,n,r,i),!0;case"dragenter":return _t=It(_t,e,t,n,r,i),!0;case"mouseover":return kt=It(kt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return xt.set(o,It(xt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,St.set(o,It(St.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){Mt(e,r),e=dt(e,r,null,t);try{q(pt,e)}finally{ft(e)}}}}function Zt(e,t,n,r){if(null!==(n=Tn(n=ct(r)))){var i=Xe(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=dt(e,r,n,t);try{q(pt,e)}finally{ft(e)}return null}var Xt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||Xt.hasOwnProperty(e)&&Xt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Xt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xt[t]=Xt[e]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=De;function cn(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=O[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function ln(){}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dn(e,t){var n,r=fn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fn(r)}}function pn(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var mn=null,bn=null;function yn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function gn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var vn="function"==typeof setTimeout?setTimeout:void 0,wn="function"==typeof clearTimeout?clearTimeout:void 0;function _n(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function kn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var xn=Math.random().toString(36).slice(2),Sn="__reactInternalInstance$"+xn,On="__reactEventHandlers$"+xn,En="__reactContainere$"+xn;function Tn(e){var t=e[Sn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[En]||n[Sn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=kn(e);null!==e;){if(n=e[Sn])return n;e=kn(e)}return t}n=(e=n).parentNode}return null}function An(e){return!(e=e[Sn]||e[En])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Mn(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function In(e){return e[On]||null}function Pn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Cn(e,t){var n=e.stateNode;if(!n)return null;var r=h(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}function jn(e,t,n){(t=Cn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Dn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Pn(t);for(t=n.length;0<t--;)jn(n[t],"captured",e);for(t=0;t<n.length;t++)jn(n[t],"bubbled",e)}}function Rn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Cn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Nn(e){e&&e.dispatchConfig.registrationName&&Rn(e._targetInst,null,e)}function Bn(e){it(e,Dn)}var Ln=null,Un=null,Fn=null;function qn(){if(Fn)return Fn;var e,t,n=Un,r=n.length,i="value"in Ln?Ln.value:Ln.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Fn=i.slice(e,1<t?1-t:void 0)}function zn(){return!0}function Vn(){return!1}function Hn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?zn:Vn,this.isPropagationStopped=Vn,this}function $n(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Kn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Wn(e){e.eventPool=[],e.getPooled=$n,e.release=Kn}i(Hn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=zn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=zn)},persist:function(){this.isPersistent=zn},isPersistent:Vn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Vn,this._dispatchInstances=this._dispatchListeners=null}}),Hn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Hn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Wn(n),n},Wn(Hn);var Gn=Hn.extend({data:null}),Jn=Hn.extend({data:null}),Qn=[9,13,27,32],Yn=T&&"CompositionEvent"in window,Zn=null;T&&"documentMode"in document&&(Zn=document.documentMode);var Xn=T&&"TextEvent"in window&&!Zn,er=T&&(!Yn||Zn&&8<Zn&&11>=Zn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==Qn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(Yn)e:{switch(e){case"compositionstart":var o=nr.compositionStart;break e;case"compositionend":o=nr.compositionEnd;break e;case"compositionupdate":o=nr.compositionUpdate;break e}o=void 0}else ar?ir(e,n)&&(o=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=nr.compositionStart);return o?(er&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=qn()):(Un="value"in(Ln=r)?Ln.value:Ln.textContent,ar=!0)),o=Gn.getPooled(o,t,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Bn(o),i=o):i=null,(e=Xn?function(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!Yn&&ir(e,t)?(e=qn(),Fn=Un=Ln=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Jn.getPooled(nr.beforeInput,t,n,r)).data=e,Bn(t)):t=null,null===i?t:null===t?i:[i,t]}},cr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!cr[e.type]:"textarea"===t}var ur={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(e,t,n){return(e=Hn.getPooled(ur.change,e,t,n)).type="change",C(n),Bn(e),e}var dr=null,pr=null;function hr(e){st(e)}function mr(e){if(_e(Mn(e)))return e}function br(e,t){if("change"===e)return t}var yr=!1;function gr(){dr&&(dr.detachEvent("onpropertychange",vr),pr=dr=null)}function vr(e){if("value"===e.propertyName&&mr(pr))if(e=fr(pr,e,ct(e)),L)st(e);else{L=!0;try{D(hr,e)}finally{L=!1,F()}}}function wr(e,t,n){"focus"===e?(gr(),pr=n,(dr=t).attachEvent("onpropertychange",vr)):"blur"===e&&gr()}function _r(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return mr(pr)}function kr(e,t){if("click"===e)return mr(t)}function xr(e,t){if("input"===e||"change"===e)return mr(t)}T&&(yr=lt("input")&&(!document.documentMode||9<document.documentMode));var Sr={eventTypes:ur,_isInputEventSupported:yr,extractEvents:function(e,t,n,r){var i=t?Mn(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=br;else if(lr(i))if(yr)a=xr;else{a=_r;var s=wr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=kr);if(a&&(a=a(e,t)))return fr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Te(i,"number",i.value)}},Or=Hn.extend({view:null,detail:null}),Er={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Er[e])&&!!t[e]}function Ar(){return Tr}var Mr=0,Ir=0,Pr=!1,Cr=!1,jr=Or.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ar,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Mr;return Mr=e.screenX,Pr?"mousemove"===e.type?e.screenX-t:0:(Pr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ir;return Ir=e.screenY,Cr?"mousemove"===e.type?e.screenY-t:0:(Cr=!0,0)}}),Dr=jr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Rr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Nr={eventTypes:Rr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0==(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?Tn(t):null)&&(t!==Xe(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=jr,c=Rr.mouseLeave,l=Rr.mouseEnter,u="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Dr,c=Rr.pointerLeave,l=Rr.pointerEnter,u="pointer");if(e=null==a?o:Mn(a),o=null==t?o:Mn(t),(c=s.getPooled(c,a,n,r)).type=u+"leave",c.target=e,c.relatedTarget=o,(n=s.getPooled(l,t,n,r)).type=u+"enter",n.target=o,n.relatedTarget=e,u=t,(r=a)&&u)e:{for(l=u,a=0,e=s=r;e;e=Pn(e))a++;for(e=0,t=l;t;t=Pn(t))e++;for(;0<a-e;)s=Pn(s),a--;for(;0<e-a;)l=Pn(l),e--;for(;a--;){if(s===l||s===l.alternate)break e;s=Pn(s),l=Pn(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)s.push(r),r=Pn(r);for(r=[];u&&u!==l&&(null===(a=u.alternate)||a!==l);)r.push(u),u=Pn(u);for(u=0;u<s.length;u++)Rn(s[u],"bubbled",c);for(u=r.length;0<u--;)Rn(r[u],"captured",n);return 0==(64&i)?[c]:[c,n]}};var Br="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Lr=Object.prototype.hasOwnProperty;function Ur(e,t){if(Br(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Lr.call(t,n[r])||!Br(e[n[r]],t[n[r]]))return!1;return!0}var Fr=T&&"documentMode"in document&&11>=document.documentMode,qr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},zr=null,Vr=null,Hr=null,$r=!1;function Kr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return $r||null==zr||zr!==un(n)?null:("selectionStart"in(n=zr)&&hn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Hr&&Ur(Hr,n)?null:(Hr=n,(e=Hn.getPooled(qr.select,Vr,e,t)).type="select",e.target=zr,Bn(e),e))}var Wr={eventTypes:qr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Ze(i),o=O.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?Mn(t):window,e){case"focus":(lr(i)||"true"===i.contentEditable)&&(zr=i,Vr=t,Hr=null);break;case"blur":Hr=Vr=zr=null;break;case"mousedown":$r=!0;break;case"contextmenu":case"mouseup":case"dragend":return $r=!1,Kr(n,r);case"selectionchange":if(Fr)break;case"keydown":case"keyup":return Kr(n,r)}return null}},Gr=Hn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=Hn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qr=Or.extend({relatedTarget:null});function Yr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Zr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ei=Or.extend({key:function(e){if(e.key){var t=Zr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Yr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Xr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ar,charCode:function(e){return"keypress"===e.type?Yr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Yr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ti=jr.extend({dataTransfer:null}),ni=Or.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ar}),ri=Hn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=jr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:Bt,extractEvents:function(e,t,n,r){var i=Lt.get(e);if(!i)return null;switch(e){case"keypress":if(0===Yr(n))return null;case"keydown":case"keyup":e=ei;break;case"blur":case"focus":e=Qr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=jr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ni;break;case Ke:case We:case Ge:e=Gr;break;case Je:e=ri;break;case"scroll":e=Or;break;case"wheel":e=ii;break;case"copy":case"cut":case"paste":e=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Dr;break;default:e=Hn}return Bn(t=e.getPooled(i,t,n,r)),t}};if(g)throw Error(a(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),h=In,m=An,b=Mn,E({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Nr,ChangeEventPlugin:Sr,SelectEventPlugin:Wr,BeforeInputEventPlugin:sr});var ai=[],si=-1;function ci(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function li(e,t){si++,ai[si]=e.current,e.current=t}var ui={},fi={current:ui},di={current:!1},pi=ui;function hi(e,t){var n=e.type.contextTypes;if(!n)return ui;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function mi(e){return null!=(e=e.childContextTypes)}function bi(){ci(di),ci(fi)}function yi(e,t,n){if(fi.current!==ui)throw Error(a(168));li(fi,t),li(di,n)}function gi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,be(t)||"Unknown",o));return i({},n,{},r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ui,pi=fi.current,li(fi,e),li(di,di.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=gi(e,t,pi),r.__reactInternalMemoizedMergedChildContext=e,ci(di),ci(fi),li(fi,e)):ci(di),li(di,n)}var _i=o.unstable_runWithPriority,ki=o.unstable_scheduleCallback,xi=o.unstable_cancelCallback,Si=o.unstable_requestPaint,Oi=o.unstable_now,Ei=o.unstable_getCurrentPriorityLevel,Ti=o.unstable_ImmediatePriority,Ai=o.unstable_UserBlockingPriority,Mi=o.unstable_NormalPriority,Ii=o.unstable_LowPriority,Pi=o.unstable_IdlePriority,Ci={},ji=o.unstable_shouldYield,Di=void 0!==Si?Si:function(){},Ri=null,Ni=null,Bi=!1,Li=Oi(),Ui=1e4>Li?Oi:function(){return Oi()-Li};function Fi(){switch(Ei()){case Ti:return 99;case Ai:return 98;case Mi:return 97;case Ii:return 96;case Pi:return 95;default:throw Error(a(332))}}function qi(e){switch(e){case 99:return Ti;case 98:return Ai;case 97:return Mi;case 96:return Ii;case 95:return Pi;default:throw Error(a(332))}}function zi(e,t){return e=qi(e),_i(e,t)}function Vi(e,t,n){return e=qi(e),ki(e,t,n)}function Hi(e){return null===Ri?(Ri=[e],Ni=ki(Ti,Ki)):Ri.push(e),Ci}function $i(){if(null!==Ni){var e=Ni;Ni=null,xi(e)}Ki()}function Ki(){if(!Bi&&null!==Ri){Bi=!0;var e=0;try{var t=Ri;zi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ri=null}catch(t){throw null!==Ri&&(Ri=Ri.slice(e+1)),ki(Ti,$i),t}finally{Bi=!1}}}function Wi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Gi(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Ji={current:null},Qi=null,Yi=null,Zi=null;function Xi(){Zi=Yi=Qi=null}function eo(e){var t=Ji.current;ci(Ji),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function no(e,t){Qi=e,Zi=Yi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ia=!0),e.firstContext=null)}function ro(e,t){if(Zi!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yi){if(null===Qi)throw Error(a(308));Yi=t,Qi.dependencies={expirationTime:0,firstContext:t,responders:null}}else Yi=Yi.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function so(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function co(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function lo(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function uo(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var c=a.next;a.next=s.next,s.next=c}a=s,o.shared.pending=null,null!==(c=e.alternate)&&(null!==(c=c.updateQueue)&&(c.baseQueue=s))}if(null!==a){c=a.next;var l=o.baseState,u=0,f=null,d=null,p=null;if(null!==c)for(var h=c;;){if((s=h.expirationTime)<r){var m={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===p?(d=p=m,f=l):p=p.next=m,s>u&&(u=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),oc(s,h.suspenseConfig);e:{var b=e,y=h;switch(s=t,m=n,y.tag){case 1:if("function"==typeof(b=y.payload)){l=b.call(m,l,s);break e}l=b;break e;case 3:b.effectTag=-4097&b.effectTag|64;case 0:if(null==(s="function"==typeof(b=y.payload)?b.call(m,l,s):b))break e;l=i({},l,s);break e;case 2:io=!0}}null!==h.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[h]:s.push(h))}if(null===(h=h.next)||h===c){if(null===(s=o.shared.pending))break;h=a.next=s.next,s.next=c,o.baseQueue=a=s,o.shared.pending=null}}null===p?f=l:p.next=d,o.baseState=f,o.baseQueue=p,ac(u),e.expirationTime=u,e.memoizedState=l}}function fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!=typeof r)throw Error(a(191,r));r.call(i)}}}var po=Q.ReactCurrentBatchConfig,ho=(new r.Component).refs;function mo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var bo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ks(),i=po.suspense;(i=so(r=Ws(r,e,i),i)).payload=t,null!=n&&(i.callback=n),co(e,i),Gs(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ks(),i=po.suspense;(i=so(r=Ws(r,e,i),i)).tag=1,i.payload=t,null!=n&&(i.callback=n),co(e,i),Gs(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ks(),r=po.suspense;(r=so(n=Ws(n,e,r),r)).tag=2,null!=t&&(r.callback=t),co(e,r),Gs(e,n)}};function yo(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!Ur(n,r)||!Ur(i,o))}function go(e,t,n){var r=!1,i=ui,o=t.contextType;return"object"==typeof o&&null!==o?o=ro(o):(i=mi(t)?pi:fi.current,o=(r=null!=(r=t.contextTypes))?hi(e,i):ui),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bo.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ho,oo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=ro(o):(o=mi(t)?pi:fi.current,i.context=hi(e,o)),uo(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(mo(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&bo.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var _o=Array.isArray;function ko(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===ho&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function xo(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function So(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Ec(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Mc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ko(e,t,n),r.return=e,r):((r=Tc(n.type,n.key,n.props,null,e.mode,r)).ref=ko(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ic(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Ac(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Mc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Tc(t.type,t.key,t.props,null,e.mode,n)).ref=ko(e,null,t),n.return=e,n;case te:return(t=Ic(t,e.mode,n)).return=e,t}if(_o(t)||me(t))return(t=Ac(t,e.mode,n,null)).return=e,t;xo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:c(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case te:return n.key===i?u(e,t,n,r):null}if(_o(n)||me(n))return null!==i?null:f(e,t,n,r,null);xo(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return c(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case te:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(_o(r)||me(r))return f(t,e=e.get(n)||null,r,i,null);xo(t,r)}return null}function m(i,a,s,c){for(var l=null,u=null,f=a,m=a=0,b=null;null!==f&&m<s.length;m++){f.index>m?(b=f,f=null):b=f.sibling;var y=p(i,f,s[m],c);if(null===y){null===f&&(f=b);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,m),null===u?l=y:u.sibling=y,u=y,f=b}if(m===s.length)return n(i,f),l;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],c))&&(a=o(f,a,m),null===u?l=f:u.sibling=f,u=f);return l}for(f=r(i,f);m<s.length;m++)null!==(b=h(f,i,m,s[m],c))&&(e&&null!==b.alternate&&f.delete(null===b.key?m:b.key),a=o(b,a,m),null===u?l=b:u.sibling=b,u=b);return e&&f.forEach((function(e){return t(i,e)})),l}function b(i,s,c,l){var u=me(c);if("function"!=typeof u)throw Error(a(150));if(null==(c=u.call(c)))throw Error(a(151));for(var f=u=null,m=s,b=s=0,y=null,g=c.next();null!==m&&!g.done;b++,g=c.next()){m.index>b?(y=m,m=null):y=m.sibling;var v=p(i,m,g.value,l);if(null===v){null===m&&(m=y);break}e&&m&&null===v.alternate&&t(i,m),s=o(v,s,b),null===f?u=v:f.sibling=v,f=v,m=y}if(g.done)return n(i,m),u;if(null===m){for(;!g.done;b++,g=c.next())null!==(g=d(i,g.value,l))&&(s=o(g,s,b),null===f?u=g:f.sibling=g,f=g);return u}for(m=r(i,m);!g.done;b++,g=c.next())null!==(g=h(m,i,b,g.value,l))&&(e&&null!==g.alternate&&m.delete(null===g.key?b:g.key),s=o(g,s,b),null===f?u=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),u}return function(e,r,o,c){var l="object"==typeof o&&null!==o&&o.type===ne&&null===o.key;l&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case ee:e:{for(u=o.key,l=r;null!==l;){if(l.key===u){switch(l.tag){case 7:if(o.type===ne){n(e,l.sibling),(r=i(l,o.props.children)).return=e,e=r;break e}break;default:if(l.elementType===o.type){n(e,l.sibling),(r=i(l,o.props)).ref=ko(e,l,o),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}o.type===ne?((r=Ac(o.props.children,e.mode,c,o.key)).return=e,e=r):((c=Tc(o.type,o.key,o.props,null,e.mode,c)).ref=ko(e,r,o),c.return=e,e=c)}return s(e);case te:e:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ic(o,e.mode,c)).return=e,e=r}return s(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Mc(o,e.mode,c)).return=e,e=r),s(e);if(_o(o))return m(e,r,o,c);if(me(o))return b(e,r,o,c);if(u&&xo(e,o),void 0===o&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Oo=So(!0),Eo=So(!1),To={},Ao={current:To},Mo={current:To},Io={current:To};function Po(e){if(e===To)throw Error(a(174));return e}function Co(e,t){switch(li(Io,t),li(Mo,e),li(Ao,To),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Be(null,"");break;default:t=Be(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ci(Ao),li(Ao,t)}function jo(){ci(Ao),ci(Mo),ci(Io)}function Do(e){Po(Io.current);var t=Po(Ao.current),n=Be(t,e.type);t!==n&&(li(Mo,e),li(Ao,n))}function Ro(e){Mo.current===e&&(ci(Ao),ci(Mo))}var No={current:0};function Bo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Lo(e,t){return{responder:e,props:t}}var Uo=Q.ReactCurrentDispatcher,Fo=Q.ReactCurrentBatchConfig,qo=0,zo=null,Vo=null,Ho=null,$o=!1;function Ko(){throw Error(a(321))}function Wo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Br(e[n],t[n]))return!1;return!0}function Go(e,t,n,r,i,o){if(qo=o,zo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Uo.current=null===e||null===e.memoizedState?ya:ga,e=n(r,i),t.expirationTime===qo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Ho=Vo=null,t.updateQueue=null,Uo.current=va,e=n(r,i)}while(t.expirationTime===qo)}if(Uo.current=ba,t=null!==Vo&&null!==Vo.next,qo=0,Ho=Vo=zo=null,$o=!1,t)throw Error(a(300));return e}function Jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ho?zo.memoizedState=Ho=e:Ho=Ho.next=e,Ho}function Qo(){if(null===Vo){var e=zo.alternate;e=null!==e?e.memoizedState:null}else e=Vo.next;var t=null===Ho?zo.memoizedState:Ho.next;if(null!==t)Ho=t,Vo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Vo=e).memoizedState,baseState:Vo.baseState,baseQueue:Vo.baseQueue,queue:Vo.queue,next:null},null===Ho?zo.memoizedState=Ho=e:Ho=Ho.next=e}return Ho}function Yo(e,t){return"function"==typeof t?t(e):t}function Zo(e){var t=Qo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Vo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var c=s=o=null,l=i;do{var u=l.expirationTime;if(u<qo){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=f,o=r):c=c.next=f,u>zo.expirationTime&&(zo.expirationTime=u,ac(u))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),oc(u,l.suspenseConfig),r=l.eagerReducer===e?l.eagerState:e(r,l.action);l=l.next}while(null!==l&&l!==i);null===c?o=r:c.next=s,Br(r,t.memoizedState)||(Ia=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Xo(e){var t=Qo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Br(o,t.memoizedState)||(Ia=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ea(e){var t=Jo();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Yo,lastRenderedState:e}).dispatch=ma.bind(null,zo,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=zo.updateQueue)?(t={lastEffect:null},zo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Qo().memoizedState}function ra(e,t,n,r){var i=Jo();zo.effectTag|=e,i.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function ia(e,t,n,r){var i=Qo();r=void 0===r?null:r;var o=void 0;if(null!==Vo){var a=Vo.memoizedState;if(o=a.destroy,null!==r&&Wo(r,a.deps))return void ta(t,n,o,r)}zo.effectTag|=e,i.memoizedState=ta(1|t,n,o,r)}function oa(e,t){return ra(516,4,e,t)}function aa(e,t){return ia(516,4,e,t)}function sa(e,t){return ia(4,2,e,t)}function ca(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function la(e,t,n){return n=null!=n?n.concat([e]):null,ia(4,2,ca.bind(null,t,e),n)}function ua(){}function fa(e,t){return Jo().memoizedState=[e,void 0===t?null:t],e}function da(e,t){var n=Qo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pa(e,t){var n=Qo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Wo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ha(e,t,n){var r=Fi();zi(98>r?98:r,(function(){e(!0)})),zi(97<r?97:r,(function(){var r=Fo.suspense;Fo.suspense=void 0===t?null:t;try{e(!1),n()}finally{Fo.suspense=r}}))}function ma(e,t,n){var r=Ks(),i=po.suspense;i={expirationTime:r=Ws(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===zo||null!==o&&o===zo)$o=!0,i.expirationTime=qo,zo.expirationTime=qo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Br(s,a))return}catch(e){}Gs(e,r)}}var ba={readContext:ro,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useMemo:Ko,useReducer:Ko,useRef:Ko,useState:Ko,useDebugValue:Ko,useResponder:Ko,useDeferredValue:Ko,useTransition:Ko},ya={readContext:ro,useCallback:fa,useContext:ro,useEffect:oa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ra(4,2,ca.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Jo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Jo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ma.bind(null,zo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Jo().memoizedState=e},useState:ea,useDebugValue:ua,useResponder:Lo,useDeferredValue:function(e,t){var n=ea(e),r=n[0],i=n[1];return oa((function(){var n=Fo.suspense;Fo.suspense=void 0===t?null:t;try{i(e)}finally{Fo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[fa(ha.bind(null,t,e),[t,e]),n]}},ga={readContext:ro,useCallback:da,useContext:ro,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:pa,useReducer:Zo,useRef:na,useState:function(){return Zo(Yo)},useDebugValue:ua,useResponder:Lo,useDeferredValue:function(e,t){var n=Zo(Yo),r=n[0],i=n[1];return aa((function(){var n=Fo.suspense;Fo.suspense=void 0===t?null:t;try{i(e)}finally{Fo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zo(Yo),n=t[0];return t=t[1],[da(ha.bind(null,t,e),[t,e]),n]}},va={readContext:ro,useCallback:da,useContext:ro,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:pa,useReducer:Xo,useRef:na,useState:function(){return Xo(Yo)},useDebugValue:ua,useResponder:Lo,useDeferredValue:function(e,t){var n=Xo(Yo),r=n[0],i=n[1];return aa((function(){var n=Fo.suspense;Fo.suspense=void 0===t?null:t;try{i(e)}finally{Fo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Xo(Yo),n=t[0];return t=t[1],[da(ha.bind(null,t,e),[t,e]),n]}},wa=null,_a=null,ka=!1;function xa(e,t){var n=Sc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Oa(e){if(ka){var t=_a;if(t){var n=t;if(!Sa(e,t)){if(!(t=_n(n.nextSibling))||!Sa(e,t))return e.effectTag=-1025&e.effectTag|2,ka=!1,void(wa=e);xa(wa,n)}wa=e,_a=_n(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,ka=!1,wa=e}}function Ea(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wa=e}function Ta(e){if(e!==wa)return!1;if(!ka)return Ea(e),ka=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!gn(t,e.memoizedProps))for(t=_a;t;)xa(e,t),t=_n(t.nextSibling);if(Ea(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){_a=_n(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}_a=null}}else _a=wa?_n(e.stateNode.nextSibling):null;return!0}function Aa(){_a=wa=null,ka=!1}var Ma=Q.ReactCurrentOwner,Ia=!1;function Pa(e,t,n,r){t.child=null===e?Eo(t,null,n,r):Oo(t,e.child,n,r)}function Ca(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=Go(e,t,n,r,o,i),null===e||Ia?(t.effectTag|=1,Pa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ga(e,t,i))}function ja(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Oc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Tc(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Da(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Ur)(i,r)&&e.ref===t.ref)?Ga(e,t,o):(t.effectTag|=1,(e=Ec(a,r)).ref=t.ref,e.return=t,t.child=e)}function Da(e,t,n,r,i,o){return null!==e&&Ur(e.memoizedProps,r)&&e.ref===t.ref&&(Ia=!1,i<o)?(t.expirationTime=e.expirationTime,Ga(e,t,o)):Na(e,t,n,r,o)}function Ra(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Na(e,t,n,r,i){var o=mi(n)?pi:fi.current;return o=hi(t,o),no(t,i),n=Go(e,t,n,r,o,i),null===e||Ia?(t.effectTag|=1,Pa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ga(e,t,i))}function Ba(e,t,n,r,i){if(mi(n)){var o=!0;vi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),go(t,n,r),wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var c=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=ro(l):l=hi(t,l=mi(n)?pi:fi.current);var u=n.getDerivedStateFromProps,f="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==l)&&vo(t,a,r,l),io=!1;var d=t.memoizedState;a.state=d,uo(t,r,a,i),c=t.memoizedState,s!==r||d!==c||di.current||io?("function"==typeof u&&(mo(t,n,u,r),c=t.memoizedState),(s=io||yo(t,n,s,r,d,c,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=l,r=s):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,ao(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:Gi(t.type,s),c=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=ro(l):l=hi(t,l=mi(n)?pi:fi.current),(f="function"==typeof(u=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||c!==l)&&vo(t,a,r,l),io=!1,c=t.memoizedState,a.state=c,uo(t,r,a,i),d=t.memoizedState,s!==r||c!==d||di.current||io?("function"==typeof u&&(mo(t,n,u,r),d=t.memoizedState),(u=io||yo(t,n,s,r,c,d,l))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return La(e,t,n,r,o,i)}function La(e,t,n,r,i,o){Ra(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return i&&wi(t,n,!1),Ga(e,t,o);r=t.stateNode,Ma.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Oo(t,e.child,null,o),t.child=Oo(t,null,s,o)):Pa(e,t,s,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function Ua(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Co(e,t.containerInfo)}var Fa,qa,za,Va={dehydrated:null,retryTime:0};function Ha(e,t,n){var r,i=t.mode,o=t.pendingProps,a=No.current,s=!1;if((r=0!=(64&t.effectTag))||(r=0!=(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),li(No,1&a),null===e){if(void 0!==o.fallback&&Oa(t),s){if(s=o.fallback,(o=Ac(null,i,0,null)).return=t,0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Ac(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=Va,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Eo(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Ec(e,e.pendingProps)).return=t,0==(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Ec(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Va,t.child=n,i}return n=Oo(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=Ac(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0==(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=Ac(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=Va,t.child=o,n}return t.memoizedState=null,t.child=Oo(t,e,o.children,n)}function $a(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),to(e.return,t)}function Ka(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Wa(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Pa(e,t,r.children,n),0!=(2&(r=No.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$a(e,n);else if(19===e.tag)$a(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(li(No,r),0==(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Bo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ka(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Bo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ka(t,!0,n,null,o,t.lastEffect);break;case"together":Ka(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&ac(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Ec(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ec(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ja(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qa(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return mi(t.type)&&bi(),null;case 3:return jo(),ci(di),ci(fi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Ta(t)||(t.effectTag|=4),null;case 5:Ro(t),n=Po(Io.current);var o=t.type;if(null!==e&&null!=t.stateNode)qa(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Po(Ao.current),Ta(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[Sn]=t,r[On]=s,o){case"iframe":case"object":case"embed":Wt("load",r);break;case"video":case"audio":for(e=0;e<Qe.length;e++)Wt(Qe[e],r);break;case"source":Wt("error",r);break;case"img":case"image":case"link":Wt("error",r),Wt("load",r);break;case"form":Wt("reset",r),Wt("submit",r);break;case"details":Wt("toggle",r);break;case"input":xe(r,s),Wt("invalid",r),cn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Wt("invalid",r),cn(n,"onChange");break;case"textarea":Pe(r,s),Wt("invalid",r),cn(n,"onChange")}for(var c in on(o,s),e=null,s)if(s.hasOwnProperty(c)){var l=s[c];"children"===c?"string"==typeof l?r.textContent!==l&&(e=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(e=["children",""+l]):S.hasOwnProperty(c)&&null!=l&&cn(n,c)}switch(o){case"input":we(r),Ee(r,s,!0);break;case"textarea":we(r),je(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=ln)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=Ne(o)),e===sn?"script"===o?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(o,{is:r.is}):(e=c.createElement(o),"select"===o&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,o),e[Sn]=t,e[On]=r,Fa(e,t),t.stateNode=e,c=an(o,r),o){case"iframe":case"object":case"embed":Wt("load",e),l=r;break;case"video":case"audio":for(l=0;l<Qe.length;l++)Wt(Qe[l],e);l=r;break;case"source":Wt("error",e),l=r;break;case"img":case"image":case"link":Wt("error",e),Wt("load",e),l=r;break;case"form":Wt("reset",e),Wt("submit",e),l=r;break;case"details":Wt("toggle",e),l=r;break;case"input":xe(e,r),l=ke(e,r),Wt("invalid",e),cn(n,"onChange");break;case"option":l=Ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),Wt("invalid",e),cn(n,"onChange");break;case"textarea":Pe(e,r),l=Ie(e,r),Wt("invalid",e),cn(n,"onChange");break;default:l=r}on(o,l);var u=l;for(s in u)if(u.hasOwnProperty(s)){var f=u[s];"style"===s?nn(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Ue(e,f):"children"===s?"string"==typeof f?("textarea"!==o||""!==f)&&Fe(e,f):"number"==typeof f&&Fe(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=f&&cn(n,s):null!=f&&Y(e,s,f,c))}switch(o){case"input":we(e),Ee(e,r,!1);break;case"textarea":we(e),je(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ge(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Me(e,!!r.multiple,n,!1):null!=r.defaultValue&&Me(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=ln)}yn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)za(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Po(Io.current),Po(Ao.current),Ta(t)?(n=t.stateNode,r=t.memoizedProps,n[Sn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Sn]=t,t.stateNode=n)}return null;case 13:return ci(No),r=t.memoizedState,0!=(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Ta(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&No.current)?Ts===ws&&(Ts=_s):(Ts!==ws&&Ts!==_s||(Ts=ks),0!==Cs&&null!==Ss&&(jc(Ss,Es),Dc(Ss,Cs)))),(n||r)&&(t.effectTag|=4),null);case 4:return jo(),null;case 10:return eo(t),null;case 17:return mi(t.type)&&bi(),null;case 19:if(ci(No),null===(r=t.memoizedState))return null;if(o=0!=(64&t.effectTag),null===(s=r.rendering)){if(o)Ja(r,!1);else if(Ts!==ws||null!==e&&0!=(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Bo(s))){for(t.effectTag|=64,Ja(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return li(No,1&No.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Bo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Ja(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ui()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Ja(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Ui()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ui(),n.sibling=null,t=No.current,li(No,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Ya(e){switch(e.tag){case 1:mi(e.type)&&bi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(jo(),ci(di),ci(fi),0!=(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Ro(e),null;case 13:return ci(No),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ci(No),null;case 4:return jo(),null;case 10:return eo(e),null;default:return null}}function Za(e,t){return{value:e,source:t,stack:ye(t)}}Fa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},qa=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,c,l=t.stateNode;switch(Po(Ao.current),e=null,n){case"input":a=ke(l,a),r=ke(l,r),e=[];break;case"option":a=Ae(l,a),r=Ae(l,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Ie(l,a),r=Ie(l,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(l.onclick=ln)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(c in l=a[s])l.hasOwnProperty(c)&&(n||(n={}),n[c]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var u=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&u!==l&&(null!=u||null!=l))if("style"===s)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(n||(n={}),n[c]=u[c])}else n||(e||(e=[]),e.push(s,n)),n=u;else"dangerouslySetInnerHTML"===s?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(e=e||[]).push(s,u)):"children"===s?l===u||"string"!=typeof u&&"number"!=typeof u||(e=e||[]).push(s,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=u&&cn(o,s),e||l===u||(e=[])):(e=e||[]).push(s,u))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},za=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Xa="function"==typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ye(n)),null!==n&&be(n.type),t=t.value,null!==e&&1===e.tag&&be(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function ts(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){gc(e,t)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Gi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void is(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Gi(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&fo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&yn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Nt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"==typeof kc&&kc(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;zi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(e){gc(i,e)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"==typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){gc(e,t)}}(t,n);break;case 5:ts(t);break;case 4:us(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function cs(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:{for(var t=e.return;null!==t;){if(cs(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Fe(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||cs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=ln));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function us(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var c=e,l=o,u=n,f=l;;)if(as(c,f,u),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break e;for(;null===f.sibling;){if(null===f.return||f.return===l)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(c=r,l=o.stateNode,8===c.nodeType?c.parentNode.removeChild(l):c.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(as(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function fs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[On]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Se(n,r),an(e,i),t=an(e,r),i=0;i<o.length;i+=2){var s=o[i],c=o[i+1];"style"===s?nn(n,c):"dangerouslySetInnerHTML"===s?Ue(n,c):"children"===s?Fe(n,c):Y(n,s,c,t)}switch(e){case"input":Oe(n,r);break;case"textarea":Ce(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Me(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Me(n,!!r.multiple,r.defaultValue,!0):Me(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Nt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Ds=Ui()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"==typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,o.style.display=tn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void ds(t);case 19:return void ds(t);case 17:return}throw Error(a(163))}function ds(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xa),t.forEach((function(t){var r=wc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ps="function"==typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=so(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ns||(Ns=!0,Bs=r),es(e,t)},n}function ms(e,t,n){(n=so(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return es(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ls?Ls=new Set([this]):Ls.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var bs,ys=Math.ceil,gs=Q.ReactCurrentDispatcher,vs=Q.ReactCurrentOwner,ws=0,_s=3,ks=4,xs=0,Ss=null,Os=null,Es=0,Ts=ws,As=null,Ms=1073741823,Is=1073741823,Ps=null,Cs=0,js=!1,Ds=0,Rs=null,Ns=!1,Bs=null,Ls=null,Us=!1,Fs=null,qs=90,zs=null,Vs=0,Hs=null,$s=0;function Ks(){return 0!=(48&xs)?1073741821-(Ui()/10|0):0!==$s?$s:$s=1073741821-(Ui()/10|0)}function Ws(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=Fi();if(0==(4&t))return 99===r?1073741823:1073741822;if(0!=(16&xs))return Es;if(null!==n)e=Wi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Wi(e,150,100);break;case 97:case 96:e=Wi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Ss&&e===Es&&--e,e}function Gs(e,t){if(50<Vs)throw Vs=0,Hs=null,Error(a(185));if(null!==(e=Js(e,t))){var n=Fi();1073741823===t?0!=(8&xs)&&0==(48&xs)?Xs(e):(Ys(e),0===xs&&$i()):Ys(e),0==(4&xs)||98!==n&&99!==n||(null===zs?zs=new Map([[e,t]]):(void 0===(n=zs.get(e))||n>t)&&zs.set(e,t))}}function Js(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(Ss===i&&(ac(t),Ts===ks&&jc(i,Es)),Dc(i,t)),i}function Qs(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Cc(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Ys(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Hi(Xs.bind(null,e));else{var t=Qs(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ks();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ci&&xi(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Hi(Xs.bind(null,e)):Vi(r,Zs.bind(null,e),{timeout:10*(1073741821-t)-Ui()}),e.callbackNode=t}}}function Zs(e,t){if($s=0,t)return Rc(e,t=Ks()),Ys(e),null;var n=Qs(e);if(0!==n){if(t=e.callbackNode,0!=(48&xs))throw Error(a(327));if(mc(),e===Ss&&n===Es||nc(e,n),null!==Os){var r=xs;xs|=16;for(var i=ic();;)try{cc();break}catch(t){rc(e,t)}if(Xi(),xs=r,gs.current=i,1===Ts)throw t=As,nc(e,n),jc(e,n),Ys(e),t;if(null===Os)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Ts,Ss=null,r){case ws:case 1:throw Error(a(345));case 2:Rc(e,2<n?2:n);break;case _s:if(jc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fc(i)),1073741823===Ms&&10<(i=Ds+500-Ui())){if(js){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,nc(e,n);break}}if(0!==(o=Qs(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=vn(dc.bind(null,e),i);break}dc(e);break;case ks:if(jc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fc(i)),js&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,nc(e,n);break}if(0!==(i=Qs(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Is?r=10*(1073741821-Is)-Ui():1073741823===Ms?r=0:(r=10*(1073741821-Ms)-5e3,0>(r=(i=Ui())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ys(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=vn(dc.bind(null,e),r);break}dc(e);break;case 5:if(1073741823!==Ms&&null!==Ps){o=Ms;var s=Ps;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Ui()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){jc(e,n),e.timeoutHandle=vn(dc.bind(null,e),r);break}}dc(e);break;default:throw Error(a(329))}if(Ys(e),e.callbackNode===t)return Zs.bind(null,e)}}return null}function Xs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!=(48&xs))throw Error(a(327));if(mc(),e===Ss&&t===Es||nc(e,t),null!==Os){var n=xs;xs|=16;for(var r=ic();;)try{sc();break}catch(t){rc(e,t)}if(Xi(),xs=n,gs.current=r,1===Ts)throw n=As,nc(e,t),jc(e,t),Ys(e),n;if(null!==Os)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ss=null,dc(e),Ys(e)}return null}function ec(e,t){var n=xs;xs|=1;try{return e(t)}finally{0===(xs=n)&&$i()}}function tc(e,t){var n=xs;xs&=-2,xs|=8;try{return e(t)}finally{0===(xs=n)&&$i()}}function nc(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==Os)for(n=Os.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&bi();break;case 3:jo(),ci(di),ci(fi);break;case 5:Ro(r);break;case 4:jo();break;case 13:case 19:ci(No);break;case 10:eo(r)}n=n.return}Ss=e,Os=Ec(e.current,null),Es=t,Ts=ws,As=null,Is=Ms=1073741823,Ps=null,Cs=0,js=!1}function rc(e,t){for(;;){try{if(Xi(),Uo.current=ba,$o)for(var n=zo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(qo=0,Ho=Vo=zo=null,$o=!1,null===Os||null===Os.return)return Ts=1,As=t,Os=null;e:{var i=e,o=Os.return,a=Os,s=t;if(t=Es,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s;if(0==(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var u=0!=(1&No.current),f=o;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var h=f.memoizedProps;d=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!u)}}if(d){var m=f.updateQueue;if(null===m){var b=new Set;b.add(c),f.updateQueue=b}else m.add(c);if(0==(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=so(1073741823,null);y.tag=2,co(a,y)}a.expirationTime=1073741823;break e}s=void 0,a=t;var g=i.pingCache;if(null===g?(g=i.pingCache=new ps,s=new Set,g.set(c,s)):void 0===(s=g.get(c))&&(s=new Set,g.set(c,s)),!s.has(a)){s.add(a);var v=vc.bind(null,i,c,a);c.then(v,v)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);s=Error((be(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ye(a))}5!==Ts&&(Ts=2),s=Za(s,a),f=o;do{switch(f.tag){case 3:c=s,f.effectTag|=4096,f.expirationTime=t,lo(f,hs(f,c,t));break e;case 1:c=s;var w=f.type,_=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof w.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===Ls||!Ls.has(_)))){f.effectTag|=4096,f.expirationTime=t,lo(f,ms(f,c,t));break e}}f=f.return}while(null!==f)}Os=uc(Os)}catch(e){t=e;continue}break}}function ic(){var e=gs.current;return gs.current=ba,null===e?ba:e}function oc(e,t){e<Ms&&2<e&&(Ms=e),null!==t&&e<Is&&2<e&&(Is=e,Ps=t)}function ac(e){e>Cs&&(Cs=e)}function sc(){for(;null!==Os;)Os=lc(Os)}function cc(){for(;null!==Os&&!ji();)Os=lc(Os)}function lc(e){var t=bs(e.alternate,e,Es);return e.memoizedProps=e.pendingProps,null===t&&(t=uc(e)),vs.current=null,t}function uc(e){Os=e;do{var t=Os.alternate;if(e=Os.return,0==(2048&Os.effectTag)){if(t=Qa(t,Os,Es),1===Es||1!==Os.childExpirationTime){for(var n=0,r=Os.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Os.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Os.firstEffect),null!==Os.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Os.firstEffect),e.lastEffect=Os.lastEffect),1<Os.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Os:e.firstEffect=Os,e.lastEffect=Os))}else{if(null!==(t=Ya(Os)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Os.sibling))return t;Os=e}while(null!==Os);return Ts===ws&&(Ts=5),null}function fc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function dc(e){var t=Fi();return zi(99,pc.bind(null,e,t)),null}function pc(e,t){do{mc()}while(null!==Fs);if(0!=(48&xs))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=fc(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ss&&(Os=Ss=null,Es=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=xs;xs|=32,vs.current=null,mn=Kt;var s=pn();if(hn(s)){if("selectionStart"in s)var c={start:s.selectionStart,end:s.selectionEnd};else e:{var l=(c=(c=s.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(l&&0!==l.rangeCount){c=l.anchorNode;var u=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{c.nodeType,f.nodeType}catch(e){c=null;break e}var d=0,p=-1,h=-1,m=0,b=0,y=s,g=null;t:for(;;){for(var v;y!==c||0!==u&&3!==y.nodeType||(p=d+u),y!==f||0!==l&&3!==y.nodeType||(h=d+l),3===y.nodeType&&(d+=y.nodeValue.length),null!==(v=y.firstChild);)g=y,y=v;for(;;){if(y===s)break t;if(g===c&&++m===u&&(p=d),g===f&&++b===l&&(h=d),null!==(v=y.nextSibling))break;g=(y=g).parentNode}y=v}c=-1===p||-1===h?null:{start:p,end:h}}else c=null}c=c||{start:0,end:0}}else c=null;bn={activeElementDetached:null,focusedElem:s,selectionRange:c},Kt=!1,Rs=i;do{try{hc()}catch(e){if(null===Rs)throw Error(a(330));gc(Rs,e),Rs=Rs.nextEffect}}while(null!==Rs);Rs=i;do{try{for(s=e,c=t;null!==Rs;){var w=Rs.effectTag;if(16&w&&Fe(Rs.stateNode,""),128&w){var _=Rs.alternate;if(null!==_){var k=_.ref;null!==k&&("function"==typeof k?k(null):k.current=null)}}switch(1038&w){case 2:ls(Rs),Rs.effectTag&=-3;break;case 6:ls(Rs),Rs.effectTag&=-3,fs(Rs.alternate,Rs);break;case 1024:Rs.effectTag&=-1025;break;case 1028:Rs.effectTag&=-1025,fs(Rs.alternate,Rs);break;case 4:fs(Rs.alternate,Rs);break;case 8:us(s,u=Rs,c),ss(u)}Rs=Rs.nextEffect}}catch(e){if(null===Rs)throw Error(a(330));gc(Rs,e),Rs=Rs.nextEffect}}while(null!==Rs);if(k=bn,_=pn(),w=k.focusedElem,c=k.selectionRange,_!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==c&&hn(w)&&(_=c.start,void 0===(k=c.end)&&(k=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(k,w.value.length)):(k=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(k=k.getSelection(),u=w.textContent.length,s=Math.min(c.start,u),c=void 0===c.end?s:Math.min(c.end,u),!k.extend&&s>c&&(u=c,c=s,s=u),u=dn(w,s),f=dn(w,c),u&&f&&(1!==k.rangeCount||k.anchorNode!==u.node||k.anchorOffset!==u.offset||k.focusNode!==f.node||k.focusOffset!==f.offset)&&((_=_.createRange()).setStart(u.node,u.offset),k.removeAllRanges(),s>c?(k.addRange(_),k.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),k.addRange(_))))),_=[];for(k=w;k=k.parentNode;)1===k.nodeType&&_.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof w.focus&&w.focus(),w=0;w<_.length;w++)(k=_[w]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Kt=!!mn,bn=mn=null,e.current=n,Rs=i;do{try{for(w=e;null!==Rs;){var x=Rs.effectTag;if(36&x&&os(w,Rs.alternate,Rs),128&x){_=void 0;var S=Rs.ref;if(null!==S){var O=Rs.stateNode;switch(Rs.tag){case 5:_=O;break;default:_=O}"function"==typeof S?S(_):S.current=_}}Rs=Rs.nextEffect}}catch(e){if(null===Rs)throw Error(a(330));gc(Rs,e),Rs=Rs.nextEffect}}while(null!==Rs);Rs=null,Di(),xs=o}else e.current=n;if(Us)Us=!1,Fs=e,qs=t;else for(Rs=i;null!==Rs;)t=Rs.nextEffect,Rs.nextEffect=null,Rs=t;if(0===(t=e.firstPendingTime)&&(Ls=null),1073741823===t?e===Hs?Vs++:(Vs=0,Hs=e):Vs=0,"function"==typeof _c&&_c(n.stateNode,r),Ys(e),Ns)throw Ns=!1,e=Bs,Bs=null,e;return 0!=(8&xs)||$i(),null}function hc(){for(;null!==Rs;){var e=Rs.effectTag;0!=(256&e)&&ns(Rs.alternate,Rs),0==(512&e)||Us||(Us=!0,Vi(97,(function(){return mc(),null}))),Rs=Rs.nextEffect}}function mc(){if(90!==qs){var e=97<qs?97:qs;return qs=90,zi(e,bc)}}function bc(){if(null===Fs)return!1;var e=Fs;if(Fs=null,0!=(48&xs))throw Error(a(331));var t=xs;for(xs|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),is(5,n)}}catch(t){if(null===e)throw Error(a(330));gc(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return xs=t,$i(),!0}function yc(e,t,n){co(e,t=hs(e,t=Za(n,t),1073741823)),null!==(e=Js(e,1073741823))&&Ys(e)}function gc(e,t){if(3===e.tag)yc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){yc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ls||!Ls.has(r))){co(n,e=ms(n,e=Za(t,e),1073741823)),null!==(n=Js(n,1073741823))&&Ys(n);break}}n=n.return}}function vc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ss===e&&Es===n?Ts===ks||Ts===_s&&1073741823===Ms&&Ui()-Ds<500?nc(e,Es):js=!0:Cc(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Ys(e)))}function wc(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Ws(t=Ks(),e,null)),null!==(e=Js(e,t))&&Ys(e)}bs=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||di.current)Ia=!0;else{if(r<n){switch(Ia=!1,t.tag){case 3:Ua(t),Aa();break;case 5:if(Do(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:mi(t.type)&&vi(t);break;case 4:Co(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,li(Ji,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Ha(e,t,n):(li(No,1&No.current),null!==(t=Ga(e,t,n))?t.sibling:null);li(No,1&No.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Wa(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),li(No,No.current),!r)return null}return Ga(e,t,n)}Ia=!1}}else Ia=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=hi(t,fi.current),no(t,n),i=Go(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mi(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&mo(t,r,s,e),i.updater=bo,t.stateNode=i,i._reactInternalFiber=t,wo(t,r,e,n),t=La(null,t,r,!0,o,n)}else t.tag=0,Pa(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"==typeof e)return Oc(e)?1:0;if(null!=e){if((e=e.$$typeof)===ce)return 11;if(e===fe)return 14}return 2}(i),e=Gi(i,e),o){case 0:t=Na(null,t,i,e,n);break e;case 1:t=Ba(null,t,i,e,n);break e;case 11:t=Ca(null,t,i,e,n);break e;case 14:t=ja(null,t,i,Gi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Na(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 3:if(Ua(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),uo(t,r,null,n),(r=t.memoizedState.element)===i)Aa(),t=Ga(e,t,n);else{if((i=t.stateNode.hydrate)&&(_a=_n(t.stateNode.containerInfo.firstChild),wa=t,i=ka=!0),i)for(n=Eo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Pa(e,t,r,n),Aa();t=t.child}return t;case 5:return Do(t),null===e&&Oa(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,gn(r,i)?s=null:null!==o&&gn(r,o)&&(t.effectTag|=16),Ra(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Pa(e,t,s,n),t=t.child),t;case 6:return null===e&&Oa(t),null;case 13:return Ha(e,t,n);case 4:return Co(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Oo(t,null,r,n):Pa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ca(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 7:return Pa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Pa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var c=t.type._context;if(li(Ji,c._currentValue),c._currentValue=o,null!==s)if(c=s.value,0===(o=Br(c,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(c,o):1073741823))){if(s.children===i.children&&!di.current){t=Ga(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&0!=(u.observedBits&o)){1===c.tag&&((u=so(n,null)).tag=2,co(c,u)),c.expirationTime<n&&(c.expirationTime=n),null!==(u=c.alternate)&&u.expirationTime<n&&(u.expirationTime=n),to(c.return,n),l.expirationTime<n&&(l.expirationTime=n);break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Pa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,no(t,n),r=r(i=ro(i,o.unstable_observedBits)),t.effectTag|=1,Pa(e,t,r,n),t.child;case 14:return o=Gi(i=t.type,t.pendingProps),ja(e,t,i,o=Gi(i.type,o),r,n);case 15:return Da(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,mi(r)?(e=!0,vi(t)):e=!1,no(t,n),go(t,r,i),wo(t,r,i,n),La(null,t,r,!0,e,n);case 19:return Wa(e,t,n)}throw Error(a(156,t.tag))};var _c=null,kc=null;function xc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Sc(e,t,n,r){return new xc(e,t,n,r)}function Oc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ec(e,t){var n=e.alternate;return null===n?((n=Sc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tc(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Oc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case ne:return Ac(n.children,i,o,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=Sc(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case le:return(e=Sc(13,n,t,i)).type=le,e.elementType=le,e.expirationTime=o,e;case ue:return(e=Sc(19,n,t,i)).elementType=ue,e.expirationTime=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case ce:s=11;break e;case fe:s=14;break e;case de:s=16,r=null;break e;case pe:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Sc(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function Ac(e,t,n,r){return(e=Sc(7,e,r,t)).expirationTime=n,e}function Mc(e,t,n){return(e=Sc(6,e,null,t)).expirationTime=n,e}function Ic(e,t,n){return(t=Sc(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pc(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Cc(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function jc(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Dc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Rc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Nc(e,t,n,r){var i=t.current,o=Ks(),s=po.suspense;o=Ws(o,i,s);e:if(n){t:{if(Xe(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(mi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(a(171))}if(1===n.tag){var l=n.type;if(mi(l)){n=gi(n,l,c);break e}}n=c}else n=ui;return null===t.context?t.context=n:t.pendingContext=n,(t=so(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),co(i,t),Gs(i,o),o}function Bc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Lc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Uc(e,t){Lc(e,t),(e=e.alternate)&&Lc(e,t)}function Fc(e,t,n){var r=new Pc(e,t,n=null!=n&&!0===n.hydrate),i=Sc(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,oo(i),e[En]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);Et.forEach((function(e){ht(e,t,n)})),Tt.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function zc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"==typeof i){var s=i;i=function(){var e=Bc(a);s.call(e)}}Nc(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Fc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var c=i;i=function(){var e=Bc(a);c.call(e)}}tc((function(){Nc(t,a,e,i)}))}return Bc(a)}function Vc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qc(t))throw Error(a(200));return Vc(e,t,null,n)}Fc.prototype.render=function(e){Nc(e,this._internalRoot,null,null)},Fc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Nc(null,e,null,(function(){t[En]=null}))},mt=function(e){if(13===e.tag){var t=Wi(Ks(),150,100);Gs(e,t),Uc(e,t)}},bt=function(e){13===e.tag&&(Gs(e,3),Uc(e,3))},yt=function(e){if(13===e.tag){var t=Ks();Gs(e,t=Ws(t,e,null)),Uc(e,t)}},A=function(e,t,n){switch(t){case"input":if(Oe(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=In(r);if(!i)throw Error(a(90));_e(r),Oe(r,i)}}}break;case"textarea":Ce(e,n);break;case"select":null!=(t=n.value)&&Me(e,!!n.multiple,t,!1)}},D=ec,R=function(e,t,n,r,i){var o=xs;xs|=4;try{return zi(98,e.bind(null,t,n,r,i))}finally{0===(xs=o)&&$i()}},N=function(){0==(49&xs)&&(function(){if(null!==zs){var e=zs;zs=null,e.forEach((function(e,t){Rc(t,e),Ys(t)})),$i()}}(),mc())},B=function(e,t){var n=xs;xs|=2;try{return e(t)}finally{0===(xs=n)&&$i()}};var $c,Kc,Wc={Events:[An,Mn,In,E,x,Bn,function(e){it(e,Nn)},C,j,Yt,st,mc,{current:!1}]};Kc=($c={findFiberByHostInstance:Tn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);_c=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},kc=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(i({},$c,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Kc?Kc(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null})),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wc,t.createPortal=Hc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!=(48&xs))throw Error(a(187));var n=xs;xs|=1;try{return zi(99,e.bind(null,t))}finally{xs=n,$i()}},t.hydrate=function(e,t,n){if(!qc(t))throw Error(a(200));return zc(null,e,t,!0,n)},t.render=function(e,t,n){if(!qc(t))throw Error(a(200));return zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!qc(e))throw Error(a(40));return!!e._reactRootContainer&&(tc((function(){zc(null,null,e,!1,(function(){e._reactRootContainer=null,e[En]=null}))})),!0)},t.unstable_batchedUpdates=ec,t.unstable_createPortal=function(e,t){return Hc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!qc(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return zc(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(1351)},function(e,t,n){"use strict";
333 /** @license React v0.19.1
334  * scheduler.production.min.js
335  *
336  * Copyright (c) Facebook, Inc. and its affiliates.
337  *
338  * This source code is licensed under the MIT license found in the
339  * LICENSE file in the root directory of this source tree.
340  */var r,i,o,a,s;if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,l=null,u=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(u,0),e}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(u,0))},i=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,m=window.clearTimeout;if("undefined"!=typeof console){var b=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof b&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"==typeof d&&"function"==typeof d.now)t.unstable_now=function(){return d.now()};else{var y=p.now();t.unstable_now=function(){return p.now()-y}}var g=!1,v=null,w=-1,_=5,k=0;a=function(){return t.unstable_now()>=k},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,S=x.port2;x.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();k=e+_;try{v(!0,e)?S.postMessage(null):(g=!1,v=null)}catch(e){throw S.postMessage(null),e}}else g=!1},r=function(e){v=e,g||(g=!0,S.postMessage(null))},i=function(e,n){w=h((function(){e(t.unstable_now())}),n)},o=function(){m(w),w=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<A(i,t)))break e;e[r]=t,e[n]=i,n=r}}function E(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,c=e[s];if(void 0!==a&&0>A(a,n))void 0!==c&&0>A(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==c&&0>A(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function A(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var M=[],I=[],P=1,C=null,j=3,D=!1,R=!1,N=!1;function B(e){for(var t=E(I);null!==t;){if(null===t.callback)T(I);else{if(!(t.startTime<=e))break;T(I),t.sortIndex=t.expirationTime,O(M,t)}t=E(I)}}function L(e){if(N=!1,B(e),!R)if(null!==E(M))R=!0,r(U);else{var t=E(I);null!==t&&i(L,t.startTime-e)}}function U(e,n){R=!1,N&&(N=!1,o()),D=!0;var r=j;try{for(B(n),C=E(M);null!==C&&(!(C.expirationTime>n)||e&&!a());){var s=C.callback;if(null!==s){C.callback=null,j=C.priorityLevel;var c=s(C.expirationTime<=n);n=t.unstable_now(),"function"==typeof c?C.callback=c:C===E(M)&&T(M),B(n)}else T(M);C=E(M)}if(null!==C)var l=!0;else{var u=E(I);null!==u&&i(L,u.startTime-n),l=!1}return l}finally{C=null,j=r,D=!1}}function F(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var q=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||D||(R=!0,r(U))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return E(M)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=q,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"==typeof a&&null!==a){var c=a.delay;c="number"==typeof c&&0<c?s+c:s,a="number"==typeof a.timeout?a.timeout:F(e)}else a=F(e),c=s;return e={id:P++,callback:n,priorityLevel:e,startTime:c,expirationTime:a=c+a,sortIndex:-1},c>s?(e.sortIndex=c,O(I,e),null===E(M)&&e===E(I)&&(N?o():N=!0,i(L,c-s))):(e.sortIndex=a,O(M,e),R||D||(R=!0,r(U))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();B(e);var n=E(M);return n!==C&&null!==C&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<C.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;a(n(1));var r=a(n(0)),i=n(414),o=a(n(999));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var s=a.prototype;return s.handleLifecycle=function(e,t,n){var o,a=this.props.children,s=r.default.Children.toArray(a)[t];s.props[e]&&(o=s.props)[e].apply(o,n),this.props[e]&&this.props[e]((0,i.findDOMNode)(this))},s.render=function(){var e=this.props,t=e.children,n=e.in,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,["children","in"]),a=r.default.Children.toArray(t),s=a[0],c=a[1];return delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,r.default.createElement(o.default,i,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);s.propTypes={};var c=s;t.default=c,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=i,t.mergeChildMappings=o,t.getInitialChildMapping=function(e,t){return i(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var s=i(e.children),c=o(t,s);return Object.keys(c).forEach((function(i){var o=c[i];if((0,r.isValidElement)(o)){var l=i in t,u=i in s,f=t[i],d=(0,r.isValidElement)(f)&&!f.props.in;!u||l&&!d?u||!l||d?u&&l&&(0,r.isValidElement)(f)&&(c[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:f.props.in,exit:a(o,"exit",e),enter:a(o,"enter",e)})):c[i]=(0,r.cloneElement)(o,{in:!1}):c[i]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:a(o,"exit",e),enter:a(o,"enter",e)})}})),c};var r=n(0);function i(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var c in t){if(i[c])for(r=0;r<i[c].length;r++){var l=i[c][r];s[i[c][r]]=n(l)}s[c]=n(c)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-4kk0pwFQUkEv6wY7fi5X3{height:100%;display:flex;flex-direction:column;background-color:#fafbfd}.inner-container-2JQb_iGTtYISptUuTsLuAT{padding:0 12px 12px;flex:1}\n",""]),t.locals={container:"container-4kk0pwFQUkEv6wY7fi5X3","inner-container":"inner-container-2JQb_iGTtYISptUuTsLuAT",innerContainer:"inner-container-2JQb_iGTtYISptUuTsLuAT"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-1JM-8NAXUsuME2kV2WQDjK{margin:0 calc(12px * -1) calc(12px * -1);display:flex;flex-direction:column;height:100%}\n",""]),t.locals={container:"container-1JM-8NAXUsuME2kV2WQDjK"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".inner-top-container-2iH4fwX8oI-P8u3H77ssqz{display:flex;margin:0 12px;min-height:43px}.full-modal-1iXCUfgmypUXfZmxmNFgEp{width:100%;height:100%;max-width:none;max-height:none;border:0;margin:0;padding:0}.full-modal-1iXCUfgmypUXfZmxmNFgEp.modal-content{box-shadow:none}\n",""]),t.locals={"inner-top-container":"inner-top-container-2iH4fwX8oI-P8u3H77ssqz",innerTopContainer:"inner-top-container-2iH4fwX8oI-P8u3H77ssqz","full-modal":"full-modal-1iXCUfgmypUXfZmxmNFgEp",fullModal:"full-modal-1iXCUfgmypUXfZmxmNFgEp"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-2uHDJYw0Nr96cUDJhKob26{width:100%;height:76px;background:white;padding:16px;cursor:pointer;border-top:#e9ecef solid 1px;display:flex;flex-direction:row}.container-2uHDJYw0Nr96cUDJhKob26.with-sub-paragraph-1Jjb2h3XFSm_H52OAGMqKw{height:84px}.container-2uHDJYw0Nr96cUDJhKob26.with-sub-paragraph-1Jjb2h3XFSm_H52OAGMqKw .inner-container-3X7hA_tFYTorTPvopUaS0x h1{line-height:1.25}.container-2uHDJYw0Nr96cUDJhKob26.with-sub-paragraph-1Jjb2h3XFSm_H52OAGMqKw .inner-container-3X7hA_tFYTorTPvopUaS0x p{line-height:1.25}.container-2uHDJYw0Nr96cUDJhKob26:last-of-type{border-bottom:#e9ecef solid 1px}.container-2uHDJYw0Nr96cUDJhKob26 .inner-container-3X7hA_tFYTorTPvopUaS0x{display:flex;flex-direction:column;justify-content:center}.container-2uHDJYw0Nr96cUDJhKob26 .inner-container-3X7hA_tFYTorTPvopUaS0x h1{font-size:14px;color:#525f7f;margin:0;max-width:240px;text-overflow:ellipsis;overflow:hidden}.container-2uHDJYw0Nr96cUDJhKob26 .inner-container-3X7hA_tFYTorTPvopUaS0x p{font-size:14px;color:#8898aa;margin:0;max-width:280px;text-overflow:ellipsis;overflow:hidden}.container-2uHDJYw0Nr96cUDJhKob26 .icon-container-2G0I1QVOtQw9f_WMiEaehc{display:flex;flex-direction:column}.container-2uHDJYw0Nr96cUDJhKob26 .icon-container-2G0I1QVOtQw9f_WMiEaehc:not(:last-of-type){margin-right:8px}\n",""]),t.locals={container:"container-2uHDJYw0Nr96cUDJhKob26","with-sub-paragraph":"with-sub-paragraph-1Jjb2h3XFSm_H52OAGMqKw",withSubParagraph:"with-sub-paragraph-1Jjb2h3XFSm_H52OAGMqKw","inner-container":"inner-container-3X7hA_tFYTorTPvopUaS0x",innerContainer:"inner-container-3X7hA_tFYTorTPvopUaS0x","icon-container":"icon-container-2G0I1QVOtQw9f_WMiEaehc",iconContainer:"icon-container-2G0I1QVOtQw9f_WMiEaehc"},e.exports=t},function(e,t){e.exports="assets/trash.svg"},function(e,t,n){"use strict";t.__esModule=!0;var r=n(0),i=(a(r),a(n(1))),o=a(n(1360));a(n(885));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function l(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)}function u(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}t.default=function(e,t){var n,a,f="__create-react-context-"+(0,o.default)()+"__",d=function(e){function n(){var t,r;s(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=r=c(this,e.call.apply(e,[this].concat(o))),r.emitter=u(r.props.value),c(r,t)}return l(n,e),n.prototype.getChildContext=function(){var e;return(e={})[f]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,i=void 0;((o=n)===(a=r)?0!==o||1/o==1/a:o!=o&&a!=a)?i=0:(i="function"==typeof t?t(n,r):1073741823,0!==(i|=0)&&this.emitter.set(e.value,i))}var o,a},n.prototype.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((n={})[f]=i.default.object.isRequired,n);var p=function(t){function n(){var e,r;s(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=r=c(this,t.call.apply(t,[this].concat(o))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!=((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},c(r,e)}return l(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},n.prototype.componentDidMount=function(){this.context[f]&&this.context[f].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},n.prototype.componentWillUnmount=function(){this.context[f]&&this.context[f].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[f]?this.context[f].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return p.contextTypes=((a={})[f]=i.default.object,a),{Provider:d,Consumer:p}},e.exports=t.default},function(e,t,n){"use strict";(function(t){var n="__global_unique_id__";e.exports=function(){return t[n]=(t[n]||0)+1}}).call(this,n(12))},function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(1001),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{f(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=l&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var b=0;b<e.length;++b)d.push(String(b));else for(var y in e)h&&"prototype"===y||!i.call(e,y)||d.push(String(y));if(c)for(var g=function(e){if("undefined"==typeof window||!p)return f(e);try{return f(e)}catch(e){return!1}}(e),v=0;v<u.length;++v)g&&"constructor"===u[v]||!i.call(e,u[v])||d.push(u[v]);return d}}e.exports=r},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,i=n(1363)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},function(e,t,n){"use strict";var r=n(1002),i=n(1003),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")>-1?i(n):n}},function(e,t,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==o.call(t))throw new TypeError(r+t);for(var n,a=i.call(arguments,1),s=function(){if(this instanceof n){var r=t.apply(this,a.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,a.concat(i.call(arguments)))},c=Math.max(0,t.length-a.length),l=[],u=0;u<c;u++)l.push("$"+u);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var f=function(){};f.prototype=t.prototype,n.prototype=new f,f.prototype=null}return n}},function(e,t,n){"use strict";var r=n(857);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";var r=n(858),i=n(1003),o=n(1004),a=n(1005),s=n(1368),c=i(a(),Object);r(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},function(e,t,n){"use strict";var r=n(1005),i=n(858);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},function(e,t,n){"use strict";var r,i,o,a,s=n(922)()&&"symbol"==typeof Symbol.toStringTag;if(s){r=Function.call.bind(Object.prototype.hasOwnProperty),i=Function.call.bind(RegExp.prototype.exec),o={};var c=function(){throw o};a={toString:c,valueOf:c},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=c)}var l=Object.prototype.toString,u=Object.getOwnPropertyDescriptor;e.exports=s?function(e){if(!e||"object"!=typeof e)return!1;var t=u(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{i(e,a)}catch(e){return e===o}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===l.call(e)}},function(e,t,n){"use strict";var r=n(858),i=n(1371),o=n(1006),a=n(1007),s=n(1373),c=i(o);r(c,{getPolyfill:a,implementation:o,shim:s}),e.exports=c},function(e,t,n){"use strict";var r=n(857),i=n(1372),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),c=i("%Object.defineProperty%",!0);if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(){return s(r,a,arguments)};var l=function(){return s(r,o,arguments)};c?c(e.exports,"apply",{value:l}):e.exports.apply=l},function(e,t,n){"use strict";var r=TypeError,i=Object.getOwnPropertyDescriptor;if(i)try{i({},"")}catch(e){i=null}var o=function(){throw new r},a=i?function(){try{return o}catch(e){try{return i(arguments,"callee").get}catch(e){return o}}}():o,s=n(922)(),c=Object.getPrototypeOf||function(e){return e.__proto__},l=void 0,u="undefined"==typeof Uint8Array?void 0:c(Uint8Array),f={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":s?c([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":l&&s&&Symbol.asyncIterator?l[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?c(c([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&s?c((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&s?c((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":s?c(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":s?Symbol:void 0,"%SymbolPrototype%":s?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":u,"%TypedArrayPrototype%":u?u.prototype:void 0,"%TypeError%":r,"%TypeErrorPrototype%":r.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},d=n(857).call(Function.call,String.prototype.replace),p=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,m=function(e){var t=[];return d(e,p,(function(e,n,r,i){t[t.length]=r?d(i,h,"$1"):n||e})),t},b=function(e,t){if(!(e in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[e]&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=m(e),o=b("%"+(n.length>0?n[0]:"")+"%",t),a=1;a<n.length;a+=1)if(null!=o)if(i&&a+1>=n.length){var s=i(o,n[a]);if(!t&&!(n[a]in o))throw new r("base intrinsic for "+e+" exists, but the property is not available.");o=s&&"get"in s&&!("originalValue"in s.get)?s.get:o[n[a]]}else o=o[n[a]];return o}},function(e,t,n){"use strict";var r=n(858).supportsDescriptors,i=n(1007),o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,c=Object.getPrototypeOf,l=/a/;e.exports=function(){if(!r||!c)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=c(l),n=o(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},function(e,t,n){"use strict";var r=Date.prototype.getDay,i=Object.prototype.toString,o="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(o?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===i.call(e))}},function(e,t,n){(t=n(31)(!1)).push([e.i,".full-modal-1JFCeapdhLdsLJtmNDG4Dq{width:100%;height:100%;max-width:none;max-height:none;border:0;margin:0;padding:0}.full-modal-1JFCeapdhLdsLJtmNDG4Dq.modal-content{box-shadow:none}.input-2hAJgmbJ5GujqDYmHt7IH5{box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02) !important}.input-2hAJgmbJ5GujqDYmHt7IH5:focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08) !important}.address-book-button-30ZloVEsPCw2LDIo1v1QRC{background:white;border-top-left-radius:0;border-bottom-left-radius:0;border-width:0;box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02) !important}.address-book-button-30ZloVEsPCw2LDIo1v1QRC:hover{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08) !important}\n",""]),t.locals={"full-modal":"full-modal-1JFCeapdhLdsLJtmNDG4Dq",fullModal:"full-modal-1JFCeapdhLdsLJtmNDG4Dq",input:"input-2hAJgmbJ5GujqDYmHt7IH5","address-book-button":"address-book-button-30ZloVEsPCw2LDIo1v1QRC",addressBookButton:"address-book-button-30ZloVEsPCw2LDIo1v1QRC"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,'.input-P4FgYXEXjUpxZr7h92Vqz{box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02) !important}.input-P4FgYXEXjUpxZr7h92Vqz:focus{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08) !important}.input-P4FgYXEXjUpxZr7h92Vqz:focus+.select-2u6vARGyNGQ370rAWulg-B{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08) !important}.token-selector-e-XTdMptT1zQhqCjvpnUE{width:100%;height:46px}.token-selector-e-XTdMptT1zQhqCjvpnUE button{width:100%;background:white;text-align:left;font-weight:normal}.token-selector-e-XTdMptT1zQhqCjvpnUE .dropdown-toggle{box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02) !important}.token-selector-e-XTdMptT1zQhqCjvpnUE .dropdown-toggle::after{border-radius:2px;content:" ";display:block;height:0.625em;margin-top:-0.4375em;pointer-events:none;position:absolute;top:50%;transform:rotate(-45deg);transform-origin:center;width:0.625em;border:0 solid black;border-bottom-width:3px;border-left-width:3px;right:1.125em;z-index:4}.token-selector-e-XTdMptT1zQhqCjvpnUE .dropdown-menu.show{width:100%}.token-selector-e-XTdMptT1zQhqCjvpnUE.disabled button{background:#e9ecef;border-color:#e9ecef}.balance-1yKGD3D3S0eOzOXOydNK4H{float:right;font-weight:normal;color:#555555}.balance-1yKGD3D3S0eOzOXOydNK4H.clickable-2zqhHas50evgDv7DIFMYL8{cursor:pointer;text-decoration:underline}.balance-1yKGD3D3S0eOzOXOydNK4H.clickable-2zqhHas50evgDv7DIFMYL8:hover{color:black}.balance-1yKGD3D3S0eOzOXOydNK4H.clickable-2zqhHas50evgDv7DIFMYL8.clicked-30cOvW8n-cw9Xh9MdAbbcl{color:black}\n',""]),t.locals={input:"input-P4FgYXEXjUpxZr7h92Vqz",select:"select-2u6vARGyNGQ370rAWulg-B","token-selector":"token-selector-e-XTdMptT1zQhqCjvpnUE",tokenSelector:"token-selector-e-XTdMptT1zQhqCjvpnUE",balance:"balance-1yKGD3D3S0eOzOXOydNK4H",clickable:"clickable-2zqhHas50evgDv7DIFMYL8",clicked:"clicked-30cOvW8n-cw9Xh9MdAbbcl"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".buttons-lQ4QdO4N7wnjvKGvH9niZ{display:flex}.buttons-lQ4QdO4N7wnjvKGvH9niZ .button-2L5u0uu2Hw41WT4vjcMCD9{flex:1;box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02)}.buttons-lQ4QdO4N7wnjvKGvH9niZ .button-2L5u0uu2Hw41WT4vjcMCD9:not(.btn-primary){background-color:white}.buttons-lQ4QdO4N7wnjvKGvH9niZ .button-2L5u0uu2Hw41WT4vjcMCD9:focus{z-index:unset}.buttons-lQ4QdO4N7wnjvKGvH9niZ .button-2L5u0uu2Hw41WT4vjcMCD9 .title-3eiuUr4kiIIG2lezGu_GAc{font-weight:bold}.buttons-lQ4QdO4N7wnjvKGvH9niZ .button-2L5u0uu2Hw41WT4vjcMCD9 .fiat-PvXRHubpeegJIVVVbAVN4{font-size:10px}.buttons-lQ4QdO4N7wnjvKGvH9niZ .button-2L5u0uu2Hw41WT4vjcMCD9 .coin-3f_gvDIUtJMJ9imxwexWWi{font-size:10px}\n",""]),t.locals={buttons:"buttons-lQ4QdO4N7wnjvKGvH9niZ",button:"button-2L5u0uu2Hw41WT4vjcMCD9",title:"title-3eiuUr4kiIIG2lezGu_GAc",fiat:"fiat-PvXRHubpeegJIVVVbAVN4",coin:"coin-3f_gvDIUtJMJ9imxwexWWi"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,'.chain-selector-6KtmPej7cvzEZxPY5ENML{width:100%;height:46px}.chain-selector-6KtmPej7cvzEZxPY5ENML button{width:100%;background:white;text-align:left;font-weight:normal}.chain-selector-6KtmPej7cvzEZxPY5ENML button .channel-3uwwmRtwKd4P1StkBZAfpy{float:right;letter-spacing:0.14px;color:#9092b6}.chain-selector-6KtmPej7cvzEZxPY5ENML .dropdown-toggle{box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02) !important}.chain-selector-6KtmPej7cvzEZxPY5ENML .dropdown-toggle::after{border-radius:2px;content:" ";display:block;height:0.625em;margin-top:-0.4375em;pointer-events:none;position:absolute;top:50%;transform:rotate(-45deg);transform-origin:center;width:0.625em;border:0 solid black;border-bottom-width:3px;border-left-width:3px;right:1.125em;z-index:4}.chain-selector-6KtmPej7cvzEZxPY5ENML .dropdown-menu.show{width:100%}\n',""]),t.locals={"chain-selector":"chain-selector-6KtmPej7cvzEZxPY5ENML",chainSelector:"chain-selector-6KtmPej7cvzEZxPY5ENML",channel:"channel-3uwwmRtwKd4P1StkBZAfpy"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-2r_sTVfDeimjo0VLAYOa4O{padding:12px}\n",""]),t.locals={container:"container-2r_sTVfDeimjo0VLAYOa4O"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".title-OW6CCxD5mk1V6coyc9Yez{font-size:24px;letter-spacing:-1.07px}.content-uWNMIF-wsH_v_Bnkz5Od6{font-size:16px;letter-spacing:-0.71px;color:#6b6b6b}\n",""]),t.locals={title:"title-OW6CCxD5mk1V6coyc9Yez",content:"content-uWNMIF-wsH_v_Bnkz5Od6"},e.exports=t},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function f(){}function d(){}function p(){}var h={};h[i]=function(){return this};var m=Object.getPrototypeOf,b=m&&m(m(S([])));b&&b!==t&&n.call(b,i)&&(h=b);var y=p.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function v(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function S(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return d.prototype=y.constructor=p,p.constructor=d,d.displayName=s(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},g(v.prototype),v.prototype[o]=function(){return this},e.AsyncIterator=v,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new v(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(y),s(y,a,"Generator"),y[i]=function(){return this},y.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(1384);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){var r=n(1013),i=n(1012);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){var r=n(1387),i=n(1388),o=n(1015),a=n(1389);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){},function(e,t,n){"use strict";function r(e){this.message=e}n.r(t),n.d(t,"InvalidTokenError",(function(){return a})),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var i="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,o=0,a=0,s="";i=t.charAt(a++);~i&&(n=o%4?64*n+i:i,o++%4)?s+=String.fromCharCode(255&n>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function o(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(i(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return i(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError",t.default=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(o(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},function(e,t,n){(function(t){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){e.exports=n(1393)},function(e,t){e.exports=n(879)},function(e,t){e.exports=n(1017)},function(e,t){e.exports=n(399)},function(e,t){e.exports=n(880)},function(e,t){e.exports=n(1409)},function(e,t){e.exports=n(1413)},function(e,t){e.exports=n(878)},function(e,t){e.exports=n(1433)},function(e,t){e.exports=n(1013)},function(e,t){e.exports=n(923)},function(e,t){e.exports=n(924)},function(e,t){e.exports=n(1020)},function(e,t){e.exports=n(1437)},function(e,t){e.exports=n(1027)},function(e,n,r){"use strict";r.r(n);var i=r(1),o=r.n(i),a=r(7),s=r.n(a),c=r(9),l=r.n(c),u=r(4),f=r.n(u),d=r(10),p=r.n(d),h=r(11),m=r.n(h),b=r(6),y=r(2),g=r(0),v=r.n(g),w=r(12),_=r(5),k=r.n(_),x=r(13),S=r.n(x),O=r(3),E=r(14),T=r.n(E).a.getLogger("torus.js"),A=function(e,t){return new Promise((function(n,r){var i,o=0,a={resolved:!1},s=new Array(e.length).fill(void 0),c=new Array(e.length).fill(void 0);e.forEach((function(l,u){l.then((function(e){c[u]=e})).catch((function(e){s[u]=e})).finally((function(){a.resolved||t(c.slice(0),a).then((function(e){a.resolved=!0,n(e)})).catch((function(e){i=e})).finally((function(t){var n;(o+=1)===e.length&&r(new Error("Unable to resolve enough promises, errors: ".concat(JSON.stringify(s),", responses: ").concat(JSON.stringify(c),", predicate: ").concat((null===(n=i)||void 0===n?void 0:n.message)||i)))}))}))}))}))},M=r(8),I=r.n(M);function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=function e(t,n){var r=t;if("number"==typeof r&&(r=Array.from({length:r},(function(e,t){return t}))),n>r.length||n<=0)return[];if(n===r.length)return[r];if(1===n)return r.reduce((function(e,t){return[].concat(I()(e),[[t]])}),[]);for(var i=[],o=[],a=0;a<=r.length-n+1;a+=1){o=e(r.slice(a+1),n-1);for(var s=0;s<o.length;s+=1)i.push([r[a]].concat(I()(o[s])))}return i},D=function(e,t){for(var n={},r=0;r<e.length;r+=1){var i=k()(e[r]);if(n[i]=n[i]?n[i]+1:1,n[i]===t)return e[r]}},R=function(e,t,n){var r=e.map((function(e){return Object(y.post)(e,Object(y.generateJsonRPCObject)("VerifierLookupRequest",{verifier:t,verifier_id:n.toString()})).catch((function(e){return T.error("lookup request failed",e)}))}));return A(r,(function(t){var n=t.filter((function(e){return e})),r=D(n.map((function(e){return e&&e.error})),1+~~(e.length/2)),i=D(n.map((function(e){return e&&e.result})),1+~~(e.length/2));return i||r?Promise.resolve({keyResult:i,errorResult:r}):Promise.reject(new Error("invalid results ".concat(JSON.stringify(t))))})).catch((function(e){return T.error("Some for keylookup failed",e)}))},N=function(e,t,n,r){return new Promise((function(i,o){setTimeout((function(){R(e,t,n).then(i).catch(o)}),r)}))},B=function e(t,n,r,i,o,a){var s,c;if(void 0===r?(s=Math.floor(Math.random()*t.length),c=s):s=r%t.length,s===i)throw new Error("Looped through all");void 0!==i&&(c=i);var l=Object(y.generateJsonRPCObject)("KeyAssign",{verifier:o,verifier_id:a.toString()});return Object(y.post)("https://signer.tor.us/api/sign",l,{headers:{pubKeyX:n[s].X,pubKeyY:n[s].Y}},{useAPIKey:!0}).then((function(r){return Object(y.post)(t[s],C(C({},l),r),{headers:{"Content-Type":"application/json; charset=utf-8"}}).catch((function(r){return e(t,n,s+1,c,o,a)}))}))};function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){s()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var F=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.enableLogging,r=void 0!==n&&n,i=t.metadataHost,o=void 0===i?"https://metadata.tor.us":i,a=t.allowHost,s=void 0===a?"https://signer.tor.us/api/allow":a;p()(this,e),this.ec=new w.ec("secp256k1"),this.metadataHost=o,this.allowHost=s,this.metadataCache=S.a,r||T.disableAll(),this.metadataLock={}}var n,r,i,a;return m()(e,[{key:"retrieveShares",value:(a=f()(o.a.mark((function e(n,r,i,a,s){var c,u,d,p,h,m,g,w,_,k=this,x=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=x.length>5&&void 0!==x[5]?x[5]:{},u=[],e.next=4,Object(y.get)(this.allowHost,{},{useAPIKey:!0});case 4:for(d=Object(b.generatePrivate)(),p=Object(b.getPublic)(d).toString("hex"),h=p.slice(2,66),m=p.slice(66),g=Object(O.keccak256)(s),w=0;w<n.length;w+=1)_=Object(y.post)(n[w],Object(y.generateJsonRPCObject)("CommitmentRequest",{messageprefix:"mug00",tokencommitment:g.slice(2),temppubx:h,temppuby:m,verifieridentifier:i})).catch((function(e){return T.error("commitment",e)})),u.push(_);return e.abrupt("return",A(u,(function(e){return e.filter((function(e){return!(!e||"object"!==l()(e)||e.error)})).length>=3*~~(n.length/4)+1?Promise.resolve(e):Promise.reject(new Error("invalid ".concat(JSON.stringify(e))))})).then((function(e){for(var l=[],u=[],p=0;p<e.length;p+=1)e[p]&&u.push(e[p].result);for(var h=0;h<n.length;h+=1){var m=Object(y.post)(n[h],Object(y.generateJsonRPCObject)("ShareRequest",{encrypted:"yes",item:[U(U({},a),{},{idtoken:s,nodesignatures:u,verifieridentifier:i},c)]})).catch((function(e){return T.error("share req",e)}));l.push(m)}return A(l,function(){var e=f()(o.a.mark((function e(i,a){var s,c,l,u,f,p,h,m,y,g,w,_,x,S;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=i.filter((function(e){return e})),c=D(i.map((function(e){return e&&e.result&&e.result.keys[0].PublicKey})),1+~~(n.length/2)),!(s.length>=1+~~(n.length/2)&&c)){e.next=32;break}for(l=[],u=[],f=0;f<i.length;f+=1)i[f]&&i[f].result&&i[f].result.keys&&i[f].result.keys.length>0?(i[f].result.keys.sort((function(e,t){return new v.a(e.Index,16).cmp(new v.a(t.Index,16))})),i[f].result.keys[0].Metadata?(p={ephemPublicKey:t.from(i[f].result.keys[0].Metadata.ephemPublicKey,"hex"),iv:t.from(i[f].result.keys[0].Metadata.iv,"hex"),mac:t.from(i[f].result.keys[0].Metadata.mac,"hex"),mode:t.from(i[f].result.keys[0].Metadata.mode,"hex")},l.push(Object(b.decrypt)(d,U(U({},p),{},{ciphertext:t.from(atob(i[f].result.keys[0].Share).padStart(64,"0"),"hex")})).catch((function(e){return T.debug("share decryption",e)})))):l.push(Promise.resolve(t.from(i[f].result.keys[0].Share.padStart(64,"0"),"hex")))):l.push(Promise.resolve(void 0)),u.push(new v.a(r[f],16));return e.next=8,Promise.all(l);case 8:if(h=e.sent,!a.resolved){e.next=11;break}return e.abrupt("return",void 0);case 11:m=h.reduce((function(e,t,n){return t&&e.push({index:u[n],value:new v.a(t)}),e}),[]),y=j(m.length,1+~~(n.length/2)),w=function(e){var n=y[e],r=m.filter((function(e,t){return n.includes(t)})),i=r.map((function(e){return e.value})),o=r.map((function(e){return e.index})),a=k.lagrangeInterpolation(i,o),s=Object(b.getPublic)(t.from(a.toString(16,64),"hex")).toString("hex"),l=s.slice(2,66),u=s.slice(66);if(0===new v.a(l,16).cmp(new v.a(c.X,16))&&0===new v.a(u,16).cmp(new v.a(c.Y,16)))return g=a,"break"},_=0;case 15:if(!(_<y.length)){e.next=22;break}if("break"!==w(_)){e.next=19;break}return e.abrupt("break",22);case 19:_+=1,e.next=15;break;case 22:if(void 0!==g){e.next=24;break}throw new Error("could not derive private key");case 24:return e.next=26,k.getMetadata({pub_key_X:c.X,pub_key_Y:c.Y});case 26:if(x=e.sent,!a.resolved){e.next=29;break}return e.abrupt("return",void 0);case 29:return g=g.add(x).umod(k.ec.curve.n),S=k.generateAddressFromPrivKey(g),e.abrupt("return",{ethAddress:S,privKey:g.toString("hex",64)});case 32:throw new Error("invalid");case 33:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())})));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,i){return a.apply(this,arguments)})},{key:"getMetadata",value:(i=f()(o.a.mark((function e(t,n){var r,i,a,s,c=this;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=k()(t),null===this.metadataLock[i]){e.next=7;break}return e.next=5,this.metadataLock[i];case 5:e.next=8;break;case 7:this.metadataLock[i]=new Promise((function(e){r=function(){c.metadataLock[i]=null,e()}}));case 8:if(null===(a=this.metadataCache.get(i))){e.next=12;break}return r&&r(),e.abrupt("return",a);case 12:return e.next=14,Object(y.post)("".concat(this.metadataHost,"/get"),t,n,{useAPIKey:!0});case 14:if((s=e.sent)&&s.message){e.next=19;break}return this.metadataCache.put(i,new v.a(0),6e4),r&&r(),e.abrupt("return",new v.a(0));case 19:return this.metadataCache.put(i,new v.a(s.message,16),6e4),e.abrupt("return",new v.a(s.message,16));case 23:return e.prev=23,e.t0=e.catch(0),T.error("get metadata error",e.t0),r&&r(),e.abrupt("return",new v.a(0));case 28:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e,t){return i.apply(this,arguments)})},{key:"generateMetadataParams",value:function(e,n){var r=this.ec.keyFromPrivate(n.toString("hex",64)),i={data:e,timestamp:new v.a(~~(Date.now()/1e3)).toString(16)},o=r.sign(Object(O.keccak256)(k()(i)).slice(2));return{pub_key_X:r.getPublic().getX().toString("hex"),pub_key_Y:r.getPublic().getY().toString("hex"),set_data:i,signature:t.from(o.r.toString(16,64)+o.s.toString(16,64)+new v.a(o.v).toString(16,2),"hex").toString("base64")}}},{key:"setMetadata",value:(r=f()(o.a.mark((function e(t,n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(y.post)("".concat(this.metadataHost,"/set"),t,n,{useAPIKey:!0});case 3:return r=e.sent,e.abrupt("return",r.message);case 7:return e.prev=7,e.t0=e.catch(0),T.error("set metadata error",e.t0),e.abrupt("return","");case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e,t){return r.apply(this,arguments)})},{key:"lagrangeInterpolation",value:function(e,t){if(e.length!==t.length)return null;for(var n=new v.a(0),r=0;r<e.length;r+=1){for(var i=new v.a(1),o=new v.a(1),a=0;a<e.length;a+=1)if(r!==a){i=(i=i.mul(t[a].neg())).umod(this.ec.curve.n);var s=t[r].sub(t[a]);s=s.umod(this.ec.curve.n),o=o.mul(s).umod(this.ec.curve.n)}var c=i.mul(o.invm(this.ec.curve.n)).umod(this.ec.curve.n);c=c.mul(e[r]).umod(this.ec.curve.n),n=n.add(c)}return n.umod(this.ec.curve.n)}},{key:"generateAddressFromPrivKey",value:function(e){var n=this.ec.keyFromPrivate(e.toString("hex",64),"hex").getPublic().encode("hex").slice(2),r="0x".concat(Object(O.keccak256)(t.from(n,"hex")).slice(26));return Object(O.toChecksumAddress)(r)}},{key:"generateAddressFromPubKey",value:function(e,n){var r=this.ec.keyFromPublic({x:e.toString("hex",64),y:n.toString("hex",64)}).getPublic().encode("hex").slice(2),i="0x".concat(Object(O.keccak256)(t.from(r,"hex")).slice(26));return Object(O.toChecksumAddress)(i)}},{key:"getPublicAddress",value:(n=f()(o.a.mark((function e(t,n,r){var i,a,s,c,l,u,f,d,p,h,m,b,y,g,v=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.verifier,a=r.verifierId,s=v.length>3&&void 0!==v[3]&&v[3],e.next=4,R(t,i,a);case 4:if(e.t0=e.sent,e.t0){e.next=7;break}e.t0={};case 7:if(l=e.t0,u=l.keyResult,!(f=l.errorResult)||!JSON.stringify(f).includes("Verifier + VerifierID has not yet been assigned")){e.next=22;break}return e.next=13,B(t,n,void 0,void 0,i,a);case 13:return e.next=15,N(t,i,a,1e3);case 15:if(e.t1=e.sent,e.t1){e.next=18;break}e.t1={};case 18:d=e.t1,c=d.keyResult,e.next=27;break;case 22:if(!u){e.next=26;break}c=u,e.next=27;break;case 26:throw new Error("node results do not match at first lookup ".concat(JSON.stringify(u||{}),", ").concat(JSON.stringify(f||{})));case 27:if(!c){e.next=39;break}return p=c.keys[0],h=p.pub_key_X,m=p.pub_key_Y,e.next=31,this.getMetadata({pub_key_X:h,pub_key_Y:m});case 31:if(b=e.sent,y=this.ec.keyFromPublic({x:h.toString(16),y:m.toString(16)}).getPublic().add(this.ec.keyFromPrivate(b.toString(16)).getPublic()),h=y.getX().toString(16),m=y.getY().toString(16),g=this.generateAddressFromPubKey(y.getX(),y.getY()),s){e.next=38;break}return e.abrupt("return",g);case 38:return e.abrupt("return",{address:g,X:h,Y:m});case 39:throw new Error("node results do not match at final lookup ".concat(JSON.stringify(u||{}),", ").concat(JSON.stringify(f||{})));case 40:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})}],[{key:"setAPIKey",value:function(e){Object(y.setAPIKey)(e)}},{key:"setEmbedHost",value:function(e){Object(y.setEmbedHost)(e)}}]),e}();n.default=F}]).default}).call(this,n(2).Buffer)},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(1394).Buffer}catch(e){}function s(e,t,n){for(var i=0,o=Math.min(e.length,n),a=0,s=t;s<o;s++){var c,l=e.charCodeAt(s)-48;i<<=4,i|=c=l>=49&&l<=54?l-49+10:l>=17&&l<=22?l-17+10:l,a|=c}return r(!(240&a),"Invalid character in "+e),i}function c(e,t,n,i){for(var o=0,a=0,s=Math.min(e.length,n),c=t;c<s;c++){var l=e.charCodeAt(c)-48;o*=i,a=l>=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&a<i,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(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"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("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 o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.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},o.prototype._move=function(e){l(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){o.prototype.inspect=u}else o.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[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],p=[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];o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?f[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=d[e],u=p[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(e);n=(h=h.idivn(u)).isZero()?m+n:f[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,f=67108863&c,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var h=l-p|0;u+=(a=(i=0|e.words[h])*(o=0|t.words[p])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===o?(n<e.length&&(e[n++]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.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()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,n,r;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?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.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)},o.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var r,i,o,a=e.words,s=t.words,c=n.words,l=0,u=0|a[0],f=8191&u,d=u>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],y=8191&b,g=b>>>13,v=0|a[3],w=8191&v,_=v>>>13,k=0|a[4],x=8191&k,S=k>>>13,O=0|a[5],E=8191&O,T=O>>>13,A=0|a[6],M=8191&A,I=A>>>13,P=0|a[7],C=8191&P,j=P>>>13,D=0|a[8],R=8191&D,N=D>>>13,B=0|a[9],L=8191&B,U=B>>>13,F=0|s[0],q=8191&F,z=F>>>13,V=0|s[1],H=8191&V,$=V>>>13,K=0|s[2],W=8191&K,G=K>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var be=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(h,q),i=(i=Math.imul(h,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(g,q)|0,o=Math.imul(g,z),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,$)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,$)|0;var ge=(l+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,$)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ve=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(S,q)|0,o=Math.imul(S,z),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,G)|0,r=r+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,z))+Math.imul(T,q)|0,o=Math.imul(T,z),r=r+Math.imul(x,H)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,z))+Math.imul(I,q)|0,o=Math.imul(I,z),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(l+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,z))+Math.imul(j,q)|0,o=Math.imul(j,z),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var xe=(l+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(N,q)|0,o=Math.imul(N,z),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(U,q)|0,o=Math.imul(U,z),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,le)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Oe=(l+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,H),i=(i=Math.imul(L,$))+Math.imul(U,H)|0,o=Math.imul(U,$),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ee=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,G))+Math.imul(U,W)|0,o=Math.imul(U,G),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(l+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(g,he)|0))<<13)|0;l=((o=o+Math.imul(g,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(U,Q)|0,o=Math.imul(U,Y),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,le)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ae=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,he)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Me=(l+(r=r+Math.imul(x,he)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,he)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,le)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(r=r+Math.imul(E,he)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(T,he)|0))<<13)|0;l=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var Pe=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(U,ce)|0,o=Math.imul(U,le),r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,de)|0;var Ce=(l+(r=r+Math.imul(C,he)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(j,he)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var je=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(N,he)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863;var De=(l+(r=Math.imul(L,he))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,he)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=be,c[1]=ye,c[2]=ge,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=xe,c[8]=Se,c[9]=Oe,c[10]=Ee,c[11]=Te,c[12]=Ae,c[13]=Me,c[14]=Ie,c[15]=Pe,c[16]=Ce,c[17]=je,c[18]=De,0!==l&&(c[19]=l,n.length++),n};function b(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,f=(0|e.words[u])*(0|t.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(e,t,n){return b(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(m=h),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?h(this,e,t):n<1024?b(this,e,t):y(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},g.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},g.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},g.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=c,d=l,p=0;p<a;p++){var h=n[u+p],m=r[u+p],b=n[u+p+a],y=r[u+p+a],g=f*b-d*y;y=f*y+d*b,b=g,n[u+p]=h+b,r[u+p]=m+y,n[u+p+a]=h-b,r[u+p+a]=m-y,p!==s&&(g=c*f-l*d,d=c*d+l*f,f=g)}},g.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},g.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},g.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,l,r),this.transform(a,o,s,c,r,i),this.transform(l,o,u,f,r,i);for(var p=0;p<r;p++){var h=s[p]*u[p]-c[p]*f[p];c[p]=s[p]*f[p]+c[p]*u[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),y(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<n;this.words[t]=c|a,a=s>>>26-n}a&&(this.words[t]=a,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()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=n;if(i-=a,i=Math.max(0,i),c){for(var l=0;l<a;l++)c.words[l]=this.words[l];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var f=0|this.words[l];this.words[l]=u<<26-o|f>>>o,u=f&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(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)},o.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},o.prototype.isubn=function(e){if(r("number"==typeof e),r(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()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(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},o.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},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new O(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function O(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){O.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}w.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(_,w),_.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(k,w),i(x,w),i(S,w),S.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new k;else if("p192"===e)t=new x;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return v[e]=t,t},O.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},O.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},O.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},O.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},O.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},O.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},O.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},O.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},O.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},O.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},O.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},O.prototype.isqr=function(e){return this.imul(e,e.clone())},O.prototype.sqr=function(e){return this.mul(e,e)},O.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();r(b<h);var y=this.pow(f,new o(1).iushln(h-b-1));d=d.redMul(y),f=y.redSqr(),p=p.redMul(f),h=b}return d},O.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},O.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var f=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},O.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},O.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,O),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).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)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(71)(e))},function(e,t){},function(e,t,n){"use strict";var r=n(1396),i=n(1018),o=new r(0),a=new r(-1),s={noether:"0",wei:"1",kwei:"1000",Kwei:"1000",babbage:"1000",femtoether:"1000",mwei:"1000000",Mwei:"1000000",lovelace:"1000000",picoether:"1000000",gwei:"1000000000",Gwei:"1000000000",shannon:"1000000000",nanoether:"1000000000",nano:"1000000000",szabo:"1000000000000",microether:"1000000000000",micro:"1000000000000",finney:"1000000000000000",milliether:"1000000000000000",milli:"1000000000000000",ether:"1000000000000000000",kether:"1000000000000000000000",grand:"1000000000000000000000",mether:"1000000000000000000000000",gether:"1000000000000000000000000000",tether:"1000000000000000000000000000000"};function c(e){var t=e?e.toLowerCase():"ether",n=s[t];if("string"!=typeof n)throw new Error("[ethjs-unit] the unit provided "+e+" doesn't exists, please use the one of the following units "+JSON.stringify(s,null,2));return new r(n,10)}function l(e){if("string"==typeof e){if(!e.match(/^-?[0-9.]+$/))throw new Error("while converting number to string, invalid number value '"+e+"', should be a number matching (^-?[0-9.]+).");return e}if("number"==typeof e)return String(e);if("object"==typeof e&&e.toString&&(e.toTwos||e.dividedToIntegerBy))return e.toPrecision?String(e.toPrecision()):e.toString(10);throw new Error("while converting number to string, invalid number value '"+e+"' type "+typeof e+".")}e.exports={unitMap:s,numberToString:l,getValueOfUnit:c,fromWei:function(e,t,n){var r=i(e),l=r.lt(o),u=c(t),f=s[t].length-1||1,d=n||{};l&&(r=r.mul(a));for(var p=r.mod(u).toString(10);p.length<f;)p="0"+p;d.pad||(p=p.match(/^([0-9]*[1-9]|0)(0*)/)[1]);var h=r.div(u).toString(10);d.commify&&(h=h.replace(/\B(?=(\d{3})+(?!\d))/g,","));var m=h+("0"==p?"":"."+p);return l&&(m="-"+m),m},toWei:function(e,t){var n=l(e),i=c(t),o=s[t].length-1||1,u="-"===n.substring(0,1);if(u&&(n=n.substring(1)),"."===n)throw new Error("[ethjs-unit] while converting number "+e+" to wei, invalid value");var f=n.split(".");if(f.length>2)throw new Error("[ethjs-unit] while converting number "+e+" to wei,  too many decimal points");var d=f[0],p=f[1];if(d||(d="0"),p||(p="0"),p.length>o)throw new Error("[ethjs-unit] while converting number "+e+" to wei, too many decimal places");for(;p.length<o;)p+="0";d=new r(d),p=new r(p);var h=d.mul(i).add(p);return u&&(h=h.mul(a)),new r(h.toString(10),10)}}},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(2).Buffer}catch(e){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),o=t;o<i;o++){var a=e.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(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"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("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 o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.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},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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"],u=[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],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,f=67108863&c,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var h=l-p|0;u+=(a=(i=0|e.words[h])*(o=0|t.words[p])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],p=f[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modn(p).toString(e);n=(h=h.idivn(p)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,l=new e(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.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()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,n,r;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?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.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)},o.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,i,o,a=e.words,s=t.words,c=n.words,l=0,u=0|a[0],f=8191&u,d=u>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],y=8191&b,g=b>>>13,v=0|a[3],w=8191&v,_=v>>>13,k=0|a[4],x=8191&k,S=k>>>13,O=0|a[5],E=8191&O,T=O>>>13,A=0|a[6],M=8191&A,I=A>>>13,P=0|a[7],C=8191&P,j=P>>>13,D=0|a[8],R=8191&D,N=D>>>13,B=0|a[9],L=8191&B,U=B>>>13,F=0|s[0],q=8191&F,z=F>>>13,V=0|s[1],H=8191&V,$=V>>>13,K=0|s[2],W=8191&K,G=K>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var be=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(h,q),i=(i=Math.imul(h,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(g,q)|0,o=Math.imul(g,z),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,$)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,$)|0;var ge=(l+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,$)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ve=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(S,q)|0,o=Math.imul(S,z),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,G)|0,r=r+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,z))+Math.imul(T,q)|0,o=Math.imul(T,z),r=r+Math.imul(x,H)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,z))+Math.imul(I,q)|0,o=Math.imul(I,z),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(l+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,z))+Math.imul(j,q)|0,o=Math.imul(j,z),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var xe=(l+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(N,q)|0,o=Math.imul(N,z),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(U,q)|0,o=Math.imul(U,z),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,le)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Oe=(l+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,H),i=(i=Math.imul(L,$))+Math.imul(U,H)|0,o=Math.imul(U,$),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ee=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,G))+Math.imul(U,W)|0,o=Math.imul(U,G),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(l+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(g,he)|0))<<13)|0;l=((o=o+Math.imul(g,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(U,Q)|0,o=Math.imul(U,Y),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,le)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ae=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,he)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Me=(l+(r=r+Math.imul(x,he)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,he)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,le)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(r=r+Math.imul(E,he)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(T,he)|0))<<13)|0;l=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var Pe=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(U,ce)|0,o=Math.imul(U,le),r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,de)|0;var Ce=(l+(r=r+Math.imul(C,he)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(j,he)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var je=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(N,he)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863;var De=(l+(r=Math.imul(L,he))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,he)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=be,c[1]=ye,c[2]=ge,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=xe,c[8]=Se,c[9]=Oe,c[10]=Ee,c[11]=Te,c[12]=Ae,c[13]=Me,c[14]=Ie,c[15]=Pe,c[16]=Ce,c[17]=je,c[18]=De,0!==l&&(c[19]=l,n.length++),n};function h(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=d),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,f=(0|e.words[u])*(0|t.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):h(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},m.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=c,d=l,p=0;p<a;p++){var h=n[u+p],m=r[u+p],b=n[u+p+a],y=r[u+p+a],g=f*b-d*y;y=f*y+d*b,b=g,n[u+p]=h+b,r[u+p]=m+y,n[u+p+a]=h-b,r[u+p+a]=m-y,p!==s&&(g=c*f-l*d,d=c*d+l*f,f=g)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,l,r),this.transform(a,o,s,c,r,i),this.transform(l,o,u,f,r,i);for(var p=0;p<r;p++){var h=s[p]*u[p]-c[p]*f[p];c[p]=s[p]*f[p]+c[p]*u[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),h(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<n;this.words[t]=c|a,a=s>>>26-n}a&&(this.words[t]=a,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()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=n;if(i-=a,i=Math.max(0,i),c){for(var l=0;l<a;l++)c.words[l]=this.words[l];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var f=0|this.words[l];this.words[l]=u<<26-o|f>>>o,u=f&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(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)},o.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},o.prototype.isubn=function(e){if(r("number"==typeof e),r(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()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(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},o.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},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}y.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(g,y),g.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(v,y),i(w,y),i(_,y),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();r(b<h);var y=this.pow(f,new o(1).iushln(h-b-1));d=d.redMul(y),f=y.redSqr(),p=p.redMul(f),h=b}return d},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var f=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,k),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(71)(e))},function(e,t,n){(function(e){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=n(2).Buffer}catch(e){}function s(e,t,n){for(var r=0,i=Math.min(e.length,n),o=t;o<i;o++){var a=e.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function c(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(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"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){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):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("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 o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=e.length-6,r=0;n>=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,u=n;u<s;u+=r)l=c(e,u,u+r,t),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=c(e,u,e.length,t),u=0;u<a;u++)f*=t;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.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},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","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"],u=[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],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var u=c>>>26,f=67108863&c,d=Math.min(l,t.length-1),p=Math.max(0,l-e.length+1);p<=d;p++){var h=l-p|0;u+=(a=(i=0|e.words[h])*(o=0|t.words[p])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],c=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=u[e],p=f[e];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modn(p).toString(e);n=(h=h.idivn(p)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.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&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r(void 0!==a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,c="le"===t,l=new e(o),u=this.clone();if(c){for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!u.isZero();s++)a=u.andln(255),u.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.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()},o.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,n,r;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?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.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)},o.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 n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,n){var r,i,o,a=e.words,s=t.words,c=n.words,l=0,u=0|a[0],f=8191&u,d=u>>>13,p=0|a[1],h=8191&p,m=p>>>13,b=0|a[2],y=8191&b,g=b>>>13,v=0|a[3],w=8191&v,_=v>>>13,k=0|a[4],x=8191&k,S=k>>>13,O=0|a[5],E=8191&O,T=O>>>13,A=0|a[6],M=8191&A,I=A>>>13,P=0|a[7],C=8191&P,j=P>>>13,D=0|a[8],R=8191&D,N=D>>>13,B=0|a[9],L=8191&B,U=B>>>13,F=0|s[0],q=8191&F,z=F>>>13,V=0|s[1],H=8191&V,$=V>>>13,K=0|s[2],W=8191&K,G=K>>>13,J=0|s[3],Q=8191&J,Y=J>>>13,Z=0|s[4],X=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,le=se>>>13,ue=0|s[8],fe=8191&ue,de=ue>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var be=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,z))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,z))+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(h,q),i=(i=Math.imul(h,z))+Math.imul(m,q)|0,o=Math.imul(m,z);var ye=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,$)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,$)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,q),i=(i=Math.imul(y,z))+Math.imul(g,q)|0,o=Math.imul(g,z),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,$)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,$)|0;var ge=(l+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,z))+Math.imul(_,q)|0,o=Math.imul(_,z),r=r+Math.imul(y,H)|0,i=(i=i+Math.imul(y,$)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,$)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,G)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,G)|0;var ve=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(x,q),i=(i=Math.imul(x,z))+Math.imul(S,q)|0,o=Math.imul(S,z),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,$)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,$)|0,r=r+Math.imul(y,W)|0,i=(i=i+Math.imul(y,G)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,G)|0,r=r+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Y)|0;var we=(l+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,z))+Math.imul(T,q)|0,o=Math.imul(T,z),r=r+Math.imul(x,H)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,$)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,G)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,G)|0,r=r+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,Y)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,z))+Math.imul(I,q)|0,o=Math.imul(I,z),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,$)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,$)|0,r=r+Math.imul(x,W)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,G)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(l+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,z))+Math.imul(j,q)|0,o=Math.imul(j,z),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,$)|0,r=r+Math.imul(E,W)|0,i=(i=i+Math.imul(E,G)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,i=(i=i+Math.imul(y,re)|0)+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var xe=(l+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(R,q),i=(i=Math.imul(R,z))+Math.imul(N,q)|0,o=Math.imul(N,z),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(j,H)|0,o=o+Math.imul(j,$)|0,r=r+Math.imul(M,W)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,G)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,r=r+Math.imul(h,ce)|0,i=(i=i+Math.imul(h,le)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,le)|0;var Se=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,q),i=(i=Math.imul(L,z))+Math.imul(U,q)|0,o=Math.imul(U,z),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,$)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,$)|0,r=r+Math.imul(C,W)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(j,W)|0,o=o+Math.imul(j,G)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(y,ce)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(g,ce)|0,o=o+Math.imul(g,le)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Oe=(l+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,H),i=(i=Math.imul(L,$))+Math.imul(U,H)|0,o=Math.imul(U,$),r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,G)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(j,Q)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(w,ce)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ce)|0,o=o+Math.imul(_,le)|0,r=r+Math.imul(y,fe)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var Ee=(l+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,G))+Math.imul(U,W)|0,o=Math.imul(U,G),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(j,X)|0,o=o+Math.imul(j,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(I,ne)|0,o=o+Math.imul(I,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(S,ce)|0,o=o+Math.imul(S,le)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(l+(r=r+Math.imul(y,he)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(g,he)|0))<<13)|0;l=((o=o+Math.imul(g,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(U,Q)|0,o=Math.imul(U,Y),r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(N,X)|0,o=o+Math.imul(N,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(j,ne)|0,o=o+Math.imul(j,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,le)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ae=(l+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,he)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(N,ne)|0,o=o+Math.imul(N,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,r=r+Math.imul(M,ce)|0,i=(i=i+Math.imul(M,le)|0)+Math.imul(I,ce)|0,o=o+Math.imul(I,le)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Me=(l+(r=r+Math.imul(x,he)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(S,he)|0))<<13)|0;l=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(U,ne)|0,o=Math.imul(U,re),r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,r=r+Math.imul(C,ce)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(j,ce)|0,o=o+Math.imul(j,le)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(r=r+Math.imul(E,he)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(T,he)|0))<<13)|0;l=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(U,oe)|0,o=Math.imul(U,ae),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(N,ce)|0,o=o+Math.imul(N,le)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(j,fe)|0,o=o+Math.imul(j,de)|0;var Pe=(l+(r=r+Math.imul(M,he)|0)|0)+((8191&(i=(i=i+Math.imul(M,me)|0)+Math.imul(I,he)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,ce),i=(i=Math.imul(L,le))+Math.imul(U,ce)|0,o=Math.imul(U,le),r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,de)|0;var Ce=(l+(r=r+Math.imul(C,he)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(j,he)|0))<<13)|0;l=((o=o+Math.imul(j,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(U,fe)|0,o=Math.imul(U,de);var je=(l+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(N,he)|0))<<13)|0;l=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863;var De=(l+(r=Math.imul(L,he))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(U,he)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=be,c[1]=ye,c[2]=ge,c[3]=ve,c[4]=we,c[5]=_e,c[6]=ke,c[7]=xe,c[8]=Se,c[9]=Oe,c[10]=Ee,c[11]=Te,c[12]=Ae,c[13]=Me,c[14]=Ie,c[15]=Pe,c[16]=Ce,c[17]=je,c[18]=De,0!==l&&(c[19]=l,n.length++),n};function h(e,t,n){return(new m).mulp(e,t,n)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=d),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,c=Math.min(o,t.length-1),l=Math.max(0,o-e.length+1);l<=c;l++){var u=o-l,f=(0|e.words[u])*(0|t.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):h(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},m.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},m.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},m.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,c=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),u=0;u<i;u+=s)for(var f=c,d=l,p=0;p<a;p++){var h=n[u+p],m=r[u+p],b=n[u+p+a],y=r[u+p+a],g=f*b-d*y;y=f*y+d*b,b=g,n[u+p]=h+b,r[u+p]=m+y,n[u+p+a]=h-b,r[u+p+a]=m-y,p!==s&&(g=c*f-l*d,d=c*d+l*f,f=g)}},m.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},m.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},m.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},m.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,l,r),this.transform(a,o,s,c,r,i),this.transform(l,o,u,f,r,i);for(var p=0;p<r;p++){var h=s[p]*u[p]-c[p]*f[p];c[p]=s[p]*f[p]+c[p]*u[p],s[p]=h}return this.conjugate(s,c,r),this.transform(s,c,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),h(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,c=(0|this.words[t])-s<<n;this.words[t]=c|a,a=s>>>26-n}a&&(this.words[t]=a,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()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,c=n;if(i-=a,i=Math.max(0,i),c){for(var l=0;l<a;l++)c.words[l]=this.words[l];c.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var f=0|this.words[l];this.words[l]=u<<26-o|f>>>o,u=f&s}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"==typeof e),r(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)},o.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},o.prototype.isubn=function(e){if(r("number"==typeof e),r(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()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var c=(0|e.words[i])*t;s=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,c=r.length-i.length;if("mod"!==t){(s=new o(null)).length=c+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,s&&(s.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),c=new o(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0==(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(u),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0==(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(u),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(c)):(n.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:n.iushln(l)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(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},o.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},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var b={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(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)}y.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},i(g,y),g.prototype.split=function(e,t){for(var n=Math.min(e.length,9),r=0;r<n;r++)t.words[r]=e.words[r];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,r=10;r<e.length;r++){var o=0|e.words[r];e.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[r-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(v,y),i(w,y),i(_,y),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(b[e])return b[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new v;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return b[e]=t,t},k.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new o(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var f=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,b=0;0!==m.cmp(s);b++)m=m.redSqr();r(b<h);var y=this.pow(f,new o(1).iushln(h-b-1));d=d.redMul(y),f=y.redSqr(),p=p.redMul(f),h=b}return d},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var f=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===u)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}c=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,k),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(71)(e))},function(e,t,n){var r=n(1399);e.exports=function(e){return"string"!=typeof e?e:r(e)?e.slice(2):e}},function(e,t){e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},function(e,t){},function(e,t,n){!function(e){var t,n,r,i=String.fromCharCode;function o(e){for(var t,n,r=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(n=e.charCodeAt(i++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--):r.push(t);return r}function a(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function s(e,t){return i(e>>t&63|128)}function c(e){if(0==(4294967168&e))return i(e);var t="";return 0==(4294965248&e)?t=i(e>>6&31|192):0==(4294901760&e)?(a(e),t=i(e>>12&15|224),t+=s(e,6)):0==(4292870144&e)&&(t=i(e>>18&7|240),t+=s(e,12),t+=s(e,6)),t+=i(63&e|128)}function l(){if(r>=n)throw Error("Invalid byte index");var e=255&t[r];if(r++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function u(){var e,i;if(r>n)throw Error("Invalid byte index");if(r==n)return!1;if(e=255&t[r],r++,0==(128&e))return e;if(192==(224&e)){if((i=(31&e)<<6|l())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&e)){if((i=(15&e)<<12|l()<<6|l())>=2048)return a(i),i;throw Error("Invalid continuation byte")}if(240==(248&e)&&(i=(7&e)<<18|l()<<12|l()<<6|l())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=o(e),n=t.length,r=-1,i="";++r<n;)i+=c(t[r]);return i},e.decode=function(e){t=o(e),n=t.length,r=0;for(var a,s=[];!1!==(a=u());)s.push(a);return function(e){for(var t,n=e.length,r=-1,o="";++r<n;)(t=e[r])>65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t);return o}(s)}}(t)},function(e,t){const n="0123456789abcdef".split(""),r=[1,256,65536,16777216],i=[0,8,16,24],o=[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],a=e=>{var t,n,r,i,a,s,c,l,u,f,d,p,h,m,b,y,g,v,w,_,k,x,S,O,E,T,A,M,I,P,C,j,D,R,N,B,L,U,F,q,z,V,H,$,K,W,G,J,Q,Y,Z,X,ee,te,ne,re,ie,oe,ae,se,ce,le,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],a=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],c=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(p=e[8]^e[18]^e[28]^e[38]^e[48])^(s<<1|c>>>31),n=(h=e[9]^e[19]^e[29]^e[39]^e[49])^(c<<1|s>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(l<<1|u>>>31),n=a^(u<<1|l>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=s^(f<<1|d>>>31),n=c^(d<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=l^(p<<1|h>>>31),n=u^(h<<1|p>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(i<<1|a>>>31),n=d^(a<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,m=e[0],b=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,j=e[45]<<29|e[44]>>>3,D=e[44]<<29|e[45]>>>3,O=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,A=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=m^~y&v,e[1]=b^~g&w,e[10]=O^~T&M,e[11]=E^~A&I,e[20]=R^~B&U,e[21]=N^~L&F,e[30]=$^~W&J,e[31]=K^~G&Q,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=y^~v&_,e[3]=g^~w&k,e[12]=T^~M&P,e[13]=A^~I&C,e[22]=B^~U&q,e[23]=L^~F&z,e[32]=W^~J&Y,e[33]=G^~Q&Z,e[42]=re^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&x,e[5]=w^~k&S,e[14]=M^~P&j,e[15]=I^~C&D,e[24]=U^~q&V,e[25]=F^~z&H,e[34]=J^~Y&X,e[35]=Q^~Z&ee,e[44]=oe^~se&le,e[45]=ae^~ce&ue,e[6]=_^~x&m,e[7]=k^~S&b,e[16]=P^~j&O,e[17]=C^~D&E,e[26]=q^~V&R,e[27]=z^~H&N,e[36]=Y^~X&$,e[37]=Z^~ee&K,e[46]=se^~le&te,e[47]=ce^~ue&ne,e[8]=x^~m&y,e[9]=S^~b&g,e[18]=j^~O&T,e[19]=D^~E&A,e[28]=V^~R&B,e[29]=H^~N&L,e[38]=X^~$&W,e[39]=ee^~K&G,e[48]=le^~te&re,e[49]=ue^~ne&ie,e[0]^=o[r],e[1]^=o[r+1]},s=e=>t=>{var o;if("0x"===t.slice(0,2)){o=[];for(var s=2,c=t.length;s<c;s+=2)o.push(parseInt(t.slice(s,s+2),16))}else o=t;return((e,t)=>{for(var o,s=t.length,c=e.blocks,l=e.blockCount<<2,u=e.blockCount,f=e.outputBlocks,d=e.s,p=0;p<s;){if(e.reset)for(e.reset=!1,c[0]=e.block,b=1;b<u+1;++b)c[b]=0;if("string"!=typeof t)for(b=e.start;p<s&&b<l;++p)c[b>>2]|=t[p]<<i[3&b++];else for(b=e.start;p<s&&b<l;++p)(o=t.charCodeAt(p))<128?c[b>>2]|=o<<i[3&b++]:o<2048?(c[b>>2]|=(192|o>>6)<<i[3&b++],c[b>>2]|=(128|63&o)<<i[3&b++]):o<55296||o>=57344?(c[b>>2]|=(224|o>>12)<<i[3&b++],c[b>>2]|=(128|o>>6&63)<<i[3&b++],c[b>>2]|=(128|63&o)<<i[3&b++]):(o=65536+((1023&o)<<10|1023&t.charCodeAt(++p)),c[b>>2]|=(240|o>>18)<<i[3&b++],c[b>>2]|=(128|o>>12&63)<<i[3&b++],c[b>>2]|=(128|o>>6&63)<<i[3&b++],c[b>>2]|=(128|63&o)<<i[3&b++]);if(e.lastByteIndex=b,b>=l){for(e.start=b-l,e.block=c[u],b=0;b<u;++b)d[b]^=c[b];a(d),e.reset=!0}else e.start=b}if(c[(b=e.lastByteIndex)>>2]|=r[3&b],e.lastByteIndex===l)for(c[0]=c[u],b=1;b<u+1;++b)c[b]=0;for(c[u-1]|=2147483648,b=0;b<u;++b)d[b]^=c[b];a(d);for(var h,m="",b=0,y=0;y<f;){for(b=0;b<u&&y<f;++b,++y)h=d[b],m+=n[h>>4&15]+n[15&h]+n[h>>12&15]+n[h>>8&15]+n[h>>20&15]+n[h>>16&15]+n[h>>28&15]+n[h>>24&15];y%u==0&&(a(d),b=0)}return"0x"+m})((e=>{return{blocks:[],reset:!0,block:0,start:0,blockCount:1600-(e<<1)>>5,outputBlocks:e>>5,s:(t=[0,0,0,0,0,0,0,0,0,0],[].concat(t,t,t,t,t))};var t})(e),o)};e.exports={keccak256:s(256),keccak512:s(512),keccak256s:s(256),keccak512s:s(512)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1404);function i(e){return"string"==typeof e&&(!!/^(0x)?[0-9a-f]{512}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{512}$/.test(e)&&!/^(0x)?[0-9A-F]{512}$/.test(e)))}function o(e,t){"object"==typeof t&&t.constructor===Uint8Array&&(t=r.bytesToHex(t));const n=r.keccak256(t).replace("0x","");for(let t=0;t<12;t+=4){const r=(parseInt(n.substr(t,2),16)<<8)+parseInt(n.substr(t+2,2),16)&2047,i=1<<r%4;if((a(e.charCodeAt(e.length-1-Math.floor(r/4)))&i)!==i)return!1}return!0}function a(e){if(e>=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87;throw new Error("invalid bloom")}function s(e){return"string"==typeof e&&(!!/^(0x)?[0-9a-f]{64}$/i.test(e)&&!(!/^(0x)?[0-9a-f]{64}$/.test(e)&&!/^(0x)?[0-9A-F]{64}$/.test(e)))}function c(e){return"string"==typeof e&&(!!e.match(/^(0x)?[0-9a-fA-F]{40}$/)||!!e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/))}t.isBloom=i,t.isInBloom=o,t.isUserEthereumAddressInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!c(t))throw new Error(`Invalid ethereum address given: "${t}"`);return o(e,r.padLeft(t,64))},t.isContractAddressInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!c(t))throw new Error(`Invalid contract address given: "${t}"`);return o(e,t)},t.isTopicInBloom=function(e,t){if(!i(e))throw new Error("Invalid bloom given");if(!s(t))throw new Error("Invalid topic");return o(e,t)},t.isTopic=s,t.isAddress=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(1405);function i(e){if(null==e)throw new Error("cannot convert null value to array");if("string"==typeof e){const t=e.match(/^(0x)?[0-9a-fA-F]*$/);if(!t)throw new Error("invalid hexidecimal string");if("0x"!==t[1])throw new Error("hex string must have 0x prefix");(e=e.substring(2)).length%2&&(e="0"+e);const n=[];for(let t=0;t<e.length;t+=2)n.push(parseInt(e.substr(t,2),16));return o(new Uint8Array(n))}if(function(e){if(!e||parseInt(String(e.length))!=e.length||"string"==typeof e)return!1;for(let t=0;t<e.length;t++){const n=e[t];if(n<0||n>=256||parseInt(String(n))!=n)return!1}return!0}(e))return o(new Uint8Array(e));throw new Error("invalid arrayify value")}function o(e){return void 0!==e.slice||(e.slice=()=>{const t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}t.keccak256=function(e){return"0x"+r.keccak_256(i(e))},t.padLeft=(e,t)=>{const n=/^0x/i.test(e)||"number"==typeof e,r=t-(e=e.toString().replace(/^0x/i,"")).length+1>=0?t-e.length+1:0;return(n?"0x":"")+new Array(r).join("0")+e},t.bytesToHex=function(e){const t=[];for(let n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return"0x"+t.join("").replace(/^0+/,"")},t.toByteArray=i},function(e,t,n){(function(r,i){var o;
341 /**
342  * [js-sha3]{@link https://github.com/emn178/js-sha3}
343  *
344  * @version 0.8.0
345  * @author Chen, Yi-Cyuan [emn178@gmail.com]
346  * @copyright Chen, Yi-Cyuan 2015-2018
347  * @license MIT
348  */!function(){"use strict";var a="input is invalid type",s="object"==typeof window,c=s?window:{};c.JS_SHA3_NO_WINDOW&&(s=!1);var l=!s&&"object"==typeof self;!c.JS_SHA3_NO_NODE_JS&&"object"==typeof r&&r.versions&&r.versions.node?c=i:l&&(c=self);var u=!c.JS_SHA3_NO_COMMON_JS&&"object"==typeof e&&e.exports,f=n(408),d=!c.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,p="0123456789abcdef".split(""),h=[4,1024,262144,67108864],m=[0,8,16,24],b=[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],y=[224,256,384,512],g=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],w={128:168,256:136};!c.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!c.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 _=function(e,t,n){return function(r){return new N(e,t,e).update(r)[n]()}},k=function(e,t,n){return function(r,i){return new N(e,t,i).update(r)[n]()}},x=function(e,t,n){return function(t,r,i,o){return A["cshake"+e].update(t,r,i,o)[n]()}},S=function(e,t,n){return function(t,r,i,o){return A["kmac"+e].update(t,r,i,o)[n]()}},O=function(e,t,n,r){for(var i=0;i<v.length;++i){var o=v[i];e[o]=t(n,r,o)}return e},E=function(e,t){var n=_(e,t,"hex");return n.create=function(){return new N(e,t,e)},n.update=function(e){return n.create().update(e)},O(n,_,e,t)},T=[{name:"keccak",padding:[1,256,65536,16777216],bits:y,createMethod:E},{name:"sha3",padding:[6,1536,393216,100663296],bits:y,createMethod:E},{name:"shake",padding:[31,7936,2031616,520093696],bits:g,createMethod:function(e,t){var n=k(e,t,"hex");return n.create=function(n){return new N(e,t,n)},n.update=function(e,t){return n.create(t).update(e)},O(n,k,e,t)}},{name:"cshake",padding:h,bits:g,createMethod:function(e,t){var n=w[e],r=x(e,0,"hex");return r.create=function(r,i,o){return i||o?new N(e,t,r).bytepad([i,o],n):A["shake"+e].create(r)},r.update=function(e,t,n,i){return r.create(t,n,i).update(e)},O(r,x,e,t)}},{name:"kmac",padding:h,bits:g,createMethod:function(e,t){var n=w[e],r=S(e,0,"hex");return r.create=function(r,i,o){return new B(e,t,i).bytepad(["KMAC",o],n).bytepad([r],n)},r.update=function(e,t,n,i){return r.create(e,n,i).update(t)},O(r,S,e,t)}}],A={},M=[],I=0;I<T.length;++I)for(var P=T[I],C=P.bits,j=0;j<C.length;++j){var D=P.name+"_"+C[j];if(M.push(D),A[D]=P.createMethod(C[j],P.padding),"sha3"!==P.name){var R=P.name+C[j];M.push(R),A[R]=A[D]}}function N(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,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=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function B(e,t,n){N.call(this,e,t,n)}N.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(a);t=!0}for(var r,i,o=this.blocks,s=this.byteCount,c=e.length,l=this.blockCount,u=0,f=this.s;u<c;){if(this.reset)for(this.reset=!1,o[0]=this.block,r=1;r<l+1;++r)o[r]=0;if(t)for(r=this.start;u<c&&r<s;++u)o[r>>2]|=e[u]<<m[3&r++];else for(r=this.start;u<c&&r<s;++u)(i=e.charCodeAt(u))<128?o[r>>2]|=i<<m[3&r++]:i<2048?(o[r>>2]|=(192|i>>6)<<m[3&r++],o[r>>2]|=(128|63&i)<<m[3&r++]):i<55296||i>=57344?(o[r>>2]|=(224|i>>12)<<m[3&r++],o[r>>2]|=(128|i>>6&63)<<m[3&r++],o[r>>2]|=(128|63&i)<<m[3&r++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++u)),o[r>>2]|=(240|i>>18)<<m[3&r++],o[r>>2]|=(128|i>>12&63)<<m[3&r++],o[r>>2]|=(128|i>>6&63)<<m[3&r++],o[r>>2]|=(128|63&i)<<m[3&r++]);if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=o[l],r=0;r<l;++r)f[r]^=o[r];L(f),this.reset=!0}else this.start=r}return this},N.prototype.encode=function(e,t){var n=255&e,r=1,i=[n];for(n=255&(e>>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},N.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(a);if(null===e)throw new Error(a);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(a);t=!0}var r=0,i=e.length;if(t)r=i;else for(var o=0;o<e.length;++o){var s=e.charCodeAt(o);s<128?r+=1:s<2048?r+=2:s<55296||s>=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(e),r},N.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r<e.length;++r)n+=this.encodeString(e[r]);var i=t-n%t,o=[];return o.length=i,this.update(o),this},N.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];L(r)}},N.prototype.toString=N.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<r;){for(o=0;o<t&&a<r;++o,++a)e=n[o],s+=p[e>>4&15]+p[15&e]+p[e>>12&15]+p[e>>8&15]+p[e>>20&15]+p[e>>16&15]+p[e>>28&15]+p[e>>24&15];a%t==0&&(L(n),o=0)}return i&&(e=n[o],s+=p[e>>4&15]+p[15&e],i>1&&(s+=p[e>>12&15]+p[e>>8&15]),i>2&&(s+=p[e>>20&15]+p[e>>16&15])),s},N.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)c[a]=n[o];a%t==0&&L(n)}return i&&(c[o]=n[o],e=e.slice(0,s)),e},N.prototype.buffer=N.prototype.arrayBuffer,N.prototype.digest=N.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,c=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],c[e]=255&t,c[e+1]=t>>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n==0&&L(r)}return o&&(e=s<<2,t=r[a],c[e]=255&t,o>1&&(c[e+1]=t>>8&255),o>2&&(c[e+2]=t>>16&255)),c},B.prototype=new N,B.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var L=function(e){var t,n,r,i,o,a,s,c,l,u,f,d,p,h,m,y,g,v,w,_,k,x,S,O,E,T,A,M,I,P,C,j,D,R,N,B,L,U,F,q,z,V,H,$,K,W,G,J,Q,Y,Z,X,ee,te,ne,re,ie,oe,ae,se,ce,le,ue;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(c<<1|l>>>31),n=o^(l<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(u<<1|f>>>31),n=s^(f<<1|u>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(d<<1|p>>>31),n=l^(p<<1|d>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=u^(i<<1|o>>>31),n=f^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,h=e[0],m=e[1],W=e[11]<<4|e[10]>>>28,G=e[10]<<4|e[11]>>>28,M=e[20]<<3|e[21]>>>29,I=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,V=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,N=e[3]<<1|e[2]>>>31,y=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,Q=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,C=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ue=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,B=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,v=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,j=e[45]<<29|e[44]>>>3,D=e[44]<<29|e[45]>>>3,O=e[6]<<28|e[7]>>>4,E=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,_=e[36]<<21|e[37]>>>11,k=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,$=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,T=e[18]<<20|e[19]>>>12,A=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,z=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=h^~y&v,e[1]=m^~g&w,e[10]=O^~T&M,e[11]=E^~A&I,e[20]=R^~B&U,e[21]=N^~L&F,e[30]=$^~W&J,e[31]=K^~G&Q,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=y^~v&_,e[3]=g^~w&k,e[12]=T^~M&P,e[13]=A^~I&C,e[22]=B^~U&q,e[23]=L^~F&z,e[32]=W^~J&Y,e[33]=G^~Q&Z,e[42]=re^~oe&se,e[43]=ie^~ae&ce,e[4]=v^~_&x,e[5]=w^~k&S,e[14]=M^~P&j,e[15]=I^~C&D,e[24]=U^~q&V,e[25]=F^~z&H,e[34]=J^~Y&X,e[35]=Q^~Z&ee,e[44]=oe^~se&le,e[45]=ae^~ce&ue,e[6]=_^~x&h,e[7]=k^~S&m,e[16]=P^~j&O,e[17]=C^~D&E,e[26]=q^~V&R,e[27]=z^~H&N,e[36]=Y^~X&$,e[37]=Z^~ee&K,e[46]=se^~le&te,e[47]=ce^~ue&ne,e[8]=x^~h&y,e[9]=S^~m&g,e[18]=j^~O&T,e[19]=D^~E&A,e[28]=V^~R&B,e[29]=H^~N&L,e[38]=X^~$&W,e[39]=ee^~K&G,e[48]=le^~te&re,e[49]=ue^~ne&ie,e[0]^=b[r],e[1]^=b[r+1]};if(u)e.exports=A;else{for(I=0;I<M.length;++I)c[M[I]]=A[M[I]];f&&(void 0===(o=function(){return A}.call(t,n,t,e))||(e.exports=o))}}()}).call(this,n(13),n(12))},function(e,t,n){var r=n(391),i=n(27),o=n(1019),a=function(e){var t=typeof e;if("string"===t)return o.isHexStrict(e)?new i(e.replace(/0x/i,""),16):new i(e,10);if("number"===t)return new i(e);if(o.isBigNumber(e))return new i(e.toString(10));if(o.isBN(e))return e;throw new Error(e+" is not a number")},s=function(e,t,n){var r,s;if("bytes"===(e=function(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}(e))){if(t.replace(/^0x/i,"").length%2!=0)throw new Error("Invalid bytes characters "+t.length);return t}if("string"===e)return o.utf8ToHex(t);if("bool"===e)return t?"01":"00";if(e.startsWith("address")){if(r=n?64:40,!o.isAddress(t))throw new Error(t+" is not a valid address, or the checksum is invalid.");return o.leftPad(t.toLowerCase(),r)}if(r=function(e){var t=/^\D+(\d+).*$/.exec(e);return t?parseInt(t[1],10):null}(e),e.startsWith("bytes")){if(!r)throw new Error("bytes[] not yet supported in solidity");if(n&&(r=32),r<1||r>32||r<t.replace(/^0x/i,"").length/2)throw new Error("Invalid bytes"+r+" for "+t);return o.rightPad(t,2*r)}if(e.startsWith("uint")){if(r%8||r<8||r>256)throw new Error("Invalid uint"+r+" size");if((s=a(t)).bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+s.bitLength());if(s.lt(new i(0)))throw new Error("Supplied uint "+s.toString()+" is negative");return r?o.leftPad(s.toString("hex"),r/8*2):s}if(e.startsWith("int")){if(r%8||r<8||r>256)throw new Error("Invalid int"+r+" size");if((s=a(t)).bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+s.bitLength());return s.lt(new i(0))?s.toTwos(r).toString("hex"):r?o.leftPad(s.toString("hex"),r/8*2):s}throw new Error("Unsupported or invalid type: "+e)},c=function(e){if(r.isArray(e))throw new Error("Autodetection of array types is not supported.");var t,n,a="";if(r.isObject(e)&&(e.hasOwnProperty("v")||e.hasOwnProperty("t")||e.hasOwnProperty("value")||e.hasOwnProperty("type"))?(t=e.hasOwnProperty("t")?e.t:e.type,a=e.hasOwnProperty("v")?e.v:e.value):(t=o.toHex(e,!0),a=o.toHex(e),t.startsWith("int")||t.startsWith("uint")||(t="bytes")),!t.startsWith("int")&&!t.startsWith("uint")||"string"!=typeof a||/^(-)?0x/i.test(a)||(a=new i(a)),r.isArray(a)){if((n=function(e){var t=/^\D+\d*\[(\d+)\]$/.exec(e);return t?parseInt(t[1],10):null}(t))&&a.length!==n)throw new Error(t+" is not matching the given array "+JSON.stringify(a));n=a.length}return r.isArray(a)?a.map((function(e){return s(t,e,n).toString("hex").replace("0x","")})).join(""):s(t,a,n).toString("hex").replace("0x","")};e.exports={soliditySha3:function(){var e=Array.prototype.slice.call(arguments),t=r.map(e,c);return o.sha3("0x"+t.join(""))},soliditySha3Raw:function(){return o.sha3Raw("0x"+r.map(Array.prototype.slice.call(arguments),c).join(""))},encodePacked:function(){var e=Array.prototype.slice.call(arguments),t=r.map(e,c);return"0x"+t.join("").toLowerCase()}}},function(e,t,n){"use strict";(function(t,r){var i=n(1408).Buffer,o=t.crypto||t.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>65536)for(var a=0;a<e;a+=65536)o.getRandomValues(n.slice(a,a+65536));else o.getRandomValues(n);if("function"==typeof t)return r.nextTick((function(){t(null,n)}));return n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(12),n(13))},function(e,t,n){
349 /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
350 var r=n(2),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){var r="undefined"!=typeof JSON?JSON:n(1410);e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n=t.space||"";"number"==typeof n&&(n=Array(n+1).join(" "));var a,s="boolean"==typeof t.cycles&&t.cycles,c=t.replacer||function(e,t){return t},l=t.cmp&&(a=t.cmp,function(e){return function(t,n){var r={key:t,value:e[t]},i={key:n,value:e[n]};return a(r,i)}}),u=[];return function e(t,a,f,d){var p=n?"\n"+new Array(d+1).join(n):"",h=n?": ":":";if(f&&f.toJSON&&"function"==typeof f.toJSON&&(f=f.toJSON()),void 0!==(f=c.call(t,a,f))){if("object"!=typeof f||null===f)return r.stringify(f);if(i(f)){for(var m=[],b=0;b<f.length;b++){var y=e(f,b,f[b],d+1)||r.stringify(null);m.push(p+n+y)}return"["+m.join(",")+p+"]"}if(-1!==u.indexOf(f)){if(s)return r.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}u.push(f);var g=o(f).sort(l&&l(f));for(m=[],b=0;b<g.length;b++){var v=e(f,a=g[b],f[a],d+1);if(v){var w=r.stringify(a)+h+v;m.push(p+n+w)}}return u.splice(u.indexOf(f),1),"{"+m.join(",")+p+"}"}}({"":e},"",e,0)};var i=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},o=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n}},function(e,t,n){t.parse=n(1411),t.stringify=n(1412)},function(e,t){var n,r,i,o,a={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},s=function(e){throw{name:"SyntaxError",message:e,at:n,text:i}},c=function(e){return e&&e!==r&&s("Expected '"+e+"' instead of '"+r+"'"),r=i.charAt(n),n+=1,r},l=function(){var e,t="";for("-"===r&&(t="-",c("-"));r>="0"&&r<="9";)t+=r,c();if("."===r)for(t+=".";c()&&r>="0"&&r<="9";)t+=r;if("e"===r||"E"===r)for(t+=r,c(),"-"!==r&&"+"!==r||(t+=r,c());r>="0"&&r<="9";)t+=r,c();if(e=+t,isFinite(e))return e;s("Bad number")},u=function(){var e,t,n,i="";if('"'===r)for(;c();){if('"'===r)return c(),i;if("\\"===r)if(c(),"u"===r){for(n=0,t=0;t<4&&(e=parseInt(c(),16),isFinite(e));t+=1)n=16*n+e;i+=String.fromCharCode(n)}else{if("string"!=typeof a[r])break;i+=a[r]}else i+=r}s("Bad string")},f=function(){for(;r&&r<=" ";)c()};o=function(){switch(f(),r){case"{":return function(){var e,t={};if("{"===r){if(c("{"),f(),"}"===r)return c("}"),t;for(;r;){if(e=u(),f(),c(":"),Object.hasOwnProperty.call(t,e)&&s('Duplicate key "'+e+'"'),t[e]=o(),f(),"}"===r)return c("}"),t;c(","),f()}}s("Bad object")}();case"[":return function(){var e=[];if("["===r){if(c("["),f(),"]"===r)return c("]"),e;for(;r;){if(e.push(o()),f(),"]"===r)return c("]"),e;c(","),f()}}s("Bad array")}();case'"':return u();case"-":return l();default:return r>="0"&&r<="9"?l():function(){switch(r){case"t":return c("t"),c("r"),c("u"),c("e"),!0;case"f":return c("f"),c("a"),c("l"),c("s"),c("e"),!1;case"n":return c("n"),c("u"),c("l"),c("l"),null}s("Unexpected '"+r+"'")}()}},e.exports=function(e,t){var a;return i=e,n=0,r=" ",a=o(),f(),r&&s("Syntax error"),"function"==typeof t?function e(n,r){var i,o,a=n[r];if(a&&"object"==typeof a)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(void 0!==(o=e(a,i))?a[i]=o:delete a[i]);return t.call(n,r,a)}({"":a},""):a}},function(e,t){var n,r,i,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,(function(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}e.exports=function(e,t,o){var a;if(n="",r="","number"==typeof o)for(a=0;a<o;a+=1)r+=" ";else"string"==typeof o&&(r=o);if(i=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return function e(t,o){var a,c,l,u,f,d=n,p=o[t];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(t)),"function"==typeof i&&(p=i.call(o,t,p)),typeof p){case"string":return s(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(n+=r,f=[],"[object Array]"===Object.prototype.toString.apply(p)){for(u=p.length,a=0;a<u;a+=1)f[a]=e(a,p)||"null";return l=0===f.length?"[]":n?"[\n"+n+f.join(",\n"+n)+"\n"+d+"]":"["+f.join(",")+"]",n=d,l}if(i&&"object"==typeof i)for(u=i.length,a=0;a<u;a+=1)"string"==typeof(c=i[a])&&(l=e(c,p))&&f.push(s(c)+(n?": ":":")+l);else for(c in p)Object.prototype.hasOwnProperty.call(p,c)&&(l=e(c,p))&&f.push(s(c)+(n?": ":":")+l);return l=0===f.length?"{}":n?"{\n"+n+f.join(",\n"+n)+"\n"+d+"}":"{"+f.join(",")+"}",n=d,l}}("",{"":e})}},function(e,t,n){"use strict";(function(e,r){var i=new(0,n(1020).ec)("secp256k1"),o=e.crypto||e.msCrypto||{},a=o.subtle||o.webkitSubtle,s=n(72);const c=r.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),l=r.alloc(32,0);function u(e,t){if(!e)throw new Error(t||"Assertion failed")}function f(e){return t=e,!(!r.isBuffer(t)||32!==t.length)&&(e.compare(l)>0&&e.compare(c)<0);var t}function d(e){var t=new Uint8Array(e);return void 0===o.getRandomValues?r.from(s.randomBytes(e)):(o.getRandomValues(t),r.from(t))}function p(e){return new Promise((function(t){var n=s.createHash("sha512").update(e).digest();t(new Uint8Array(n))}))}function h(e){return function(t,n,i){return new Promise((function(o){if(a){return a.importKey("raw",n,{name:"AES-CBC"},!1,[e]).then((function(n){var r={name:"AES-CBC",iv:t};return a[e](r,n,i)})).then((function(e){o(r.from(new Uint8Array(e)))}))}if("encrypt"===e){var c=s.createCipheriv("aes-256-cbc",n,t);let e=c.update(i),a=c.final();o(r.concat([e,a]))}else if("decrypt"===e){var l=s.createDecipheriv("aes-256-cbc",n,t);let e=l.update(i),a=l.final();o(r.concat([e,a]))}}))}}var m=h("encrypt"),b=h("decrypt");t.generatePrivate=function(){for(var e=d(32);!f(e);)e=d(32);return e};var y=t.getPublic=function(e){return u(32===e.length,"Bad private key"),u(f(e),"Bad private key"),r.from(i.keyFromPrivate(e).getPublic("arr"))};t.getPublicCompressed=function(e){u(32===e.length,"Bad private key"),u(f(e),"Bad private key");return r.from(i.keyFromPrivate(e).getPublic(!0,"arr"))};t.sign=function(e,t){return new Promise((function(n){u(32===e.length,"Bad private key"),u(f(e),"Bad private key"),u(t.length>0,"Message should not be empty"),u(t.length<=32,"Message is too long"),n(r.from(i.sign(t,e,{canonical:!0}).toDER()))}))},t.verify=function(e,t,n){return new Promise((function(r,o){u(65===e.length||33===e.length,"Bad public key"),65===e.length&&u(4===e[0],"Bad public key"),33===e.length&&u(2===e[0]||3===e[0],"Bad public key"),u(t.length>0,"Message should not be empty"),u(t.length<=32,"Message is too long"),i.verify(t,n,e)?r(null):o(new Error("Bad signature"))}))};var g=t.derive=function(e,t){return new Promise((function(n){u(r.isBuffer(e),"Bad private key"),u(r.isBuffer(t),"Bad public key"),u(32===e.length,"Bad private key"),u(f(e),"Bad private key"),u(65===t.length||33===t.length,"Bad public key"),65===t.length&&u(4===t[0],"Bad public key"),33===t.length&&u(2===t[0]||3===t[0],"Bad public key");var o=i.keyFromPrivate(e),a=i.keyFromPublic(t),s=o.derive(a.getPublic());n(r.from(s.toArray()))}))};t.encrypt=function(e,t,n){var i,o,a,c;return n=n||{},new Promise((function(t){for(var r=n.ephemPrivateKey||d(32);!f(r);)r=n.ephemPrivateKey||d(32);o=y(r),t(g(r,e))})).then((function(e){return p(e)})).then((function(e){i=n.iv||d(16);var r=e.slice(0,32);return c=e.slice(32),m(i,r,t)})).then((function(e){a=e;var t=r.concat([i,o,a]);return function(e,t){return new Promise((function(n){var i=s.createHmac("sha256",r.from(e));i.update(t),n(i.digest())}))}(c,t)})).then((function(e){return{iv:i,ephemPublicKey:o,ciphertext:a,mac:e}}))},t.decrypt=function(e,t){var n;return g(e,t.ephemPublicKey).then((function(e){return p(e)})).then((function(e){n=e.slice(0,32);var i,o,a,c=e.slice(32),l=r.concat([t.iv,t.ephemPublicKey,t.ciphertext]);return i=c,o=l,a=t.mac,new Promise((function(e){var t=s.createHmac("sha256",r.from(i));t.update(o),e(function(e,t){if(e.length!==t.length)return!1;for(var n=0,r=0;r<e.length;r++)n|=e[r]^t[r];return 0===n}(t.digest(),a))}))})).then((function(e){return u(e,"Bad MAC"),b(t.iv,n,t.ciphertext)})).then((function(e){return r.from(new Uint8Array(e))}))}}).call(this,n(12),n(2).Buffer)},function(e){e.exports=JSON.parse('{"name":"elliptic","version":"6.5.3","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"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","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny <fedor@indutny.com>","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","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":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"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"}}')},function(e,t){},function(e,t,n){"use strict";var r=n(224),i=n(27),o=n(882),a=n(881),s=r.assert;function c(e){a.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(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 l(e,t,n,r){a.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(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,n,r){a.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,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}o(c,a),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?n=o[0]:(n=o[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,o,a,s,c,l,u,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,p=this.n.clone(),h=new i(1),m=new i(0),b=new i(0),y=new i(1),g=0;0!==d.cmpn(0);){var v=p.div(d);l=p.sub(v.mul(d)),u=b.sub(v.mul(h));var w=y.sub(v.mul(m));if(!r&&l.cmp(f)<0)t=c.neg(),n=h,r=l.neg(),o=u;else if(r&&2==++g)break;c=l,p=d,d=l,b=h,h=u,y=m,m=w}a=l.neg(),s=u;var _=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=t,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),c=i.mul(n.b),l=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(t&&!o||!t&&o)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],c=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),c=c.neg(!0)),r[2*o]=s,r[2*o+1]=c,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var l=this._wnafMulAdd(1,r,i,2*o,n),u=0;u<2*o;u++)r[u]=null,i[u]=null;return l},o(l,a.BasePoint),c.prototype.point=function(e,t,n){return new l(this,e,t,n)},c.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.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 n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},l.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]},l.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},l.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)+">"},l.prototype.isInfinity=function(){return this.inf},l.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 n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},l.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,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},l.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},l.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))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(u,a.BasePoint),c.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},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(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),u=l.redMul(s),f=r.redMul(l),d=c.redSqr().redIAdd(u).redISub(f).redISub(f),p=c.redMul(f.redISub(d)).redISub(o.redMul(u)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,p,h)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),l=c.redMul(a),u=n.redMul(c),f=s.redSqr().redIAdd(l).redISub(u).redISub(u),d=s.redMul(u.redISub(f)).redISub(i.redMul(l)),p=this.z.redMul(a);return this.curve.jpoint(f,d,p)},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,n=0;n<e;n++)t=t.dbl();return t}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,c=s.redSqr().redSqr(),l=a.redAdd(a);for(n=0;n<e;n++){var u=o.redSqr(),f=l.redSqr(),d=f.redSqr(),p=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),h=o.redMul(f),m=p.redSqr().redISub(h.redAdd(h)),b=h.redISub(m),y=p.redMul(b);y=y.redIAdd(y).redISub(d);var g=l.redMul(s);n+1<e&&(c=c.redMul(d)),o=m,s=g,l=y}return this.curve.jpoint(o,l.redMul(i),s)},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,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),c=s.redSqr().redISub(a).redISub(a),l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=s.redMul(a.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),p=this.x.redAdd(f).redSqr().redISub(u).redISub(d);p=p.redIAdd(p);var h=u.redAdd(u).redIAdd(u),m=h.redSqr(),b=d.redIAdd(d);b=(b=b.redIAdd(b)).redIAdd(b),e=m.redISub(p).redISub(p),t=h.redMul(p.redISub(e)).redISub(b),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=s.redSqr().redISub(a).redISub(a);e=c;var l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),t=s.redMul(a.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),p=this.x.redSub(u).redMul(this.x.redAdd(u));p=p.redAdd(p).redIAdd(p);var h=d.redIAdd(d),m=(h=h.redIAdd(h)).redAdd(h);e=p.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(u);var b=f.redSqr();b=(b=(b=b.redIAdd(b)).redIAdd(b)).redIAdd(b),t=p.redMul(h.redISub(e)).redISub(b)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(a),u=s.redSqr().redISub(l.redAdd(l)),f=l.redISub(u),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=s.redMul(f).redISub(d),h=n.redAdd(n).redMul(r);return this.curve.jpoint(u,p,h)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var f=this.x.redMul(s).redISub(u);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(l.redMul(c.redISub(l)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,d,p)},u.prototype.mul=function(e,t){return e=new i(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(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},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,n){"use strict";var r=n(27),i=n(882),o=n(881),a=n(224);function s(e){o.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){o.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(n),a=i.redMul(r),s=t.z.redMul(o.redAdd(a).redSqr()),c=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,n){"use strict";var r=n(224),i=n(27),o=n(882),a=n(881),s=r.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(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 l(e,t,n,r,o){a.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(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 i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=o&&new i(o,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()))))}o(c,a),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},o(l,a.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,n,r){return new l(this,e,t,n,r)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.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)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=r.redAdd(t),a=o.redSub(n),s=r.redSub(t),c=i.redMul(a),l=o.redMul(s),u=i.redMul(s),f=a.redMul(o);return this.curve.point(c,l,f,u)},l.prototype._projDbl=function(){var e,t,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(l=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=r.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(l.redSub(o)),n=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),c=a.redSub(s).redISub(s);e=r.redSub(i).redISub(o).redMul(c),t=a.redMul(l.redSub(o)),n=a.redMul(c)}}else{var l=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),c=l.redSub(s).redSub(s);e=this.curve._mulC(r.redISub(l)).redMul(c),t=this.curve._mulC(l).redMul(i.redISub(o)),n=l.redMul(c)}return this.curve.point(e,t,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=n.redSub(t),a=i.redSub(r),s=i.redAdd(r),c=n.redAdd(t),l=o.redMul(a),u=s.redMul(c),f=o.redMul(c),d=a.redMul(s);return this.curve.point(l,u,d,f)},l.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),l=i.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=r.redMul(c).redMul(u);return this.curve.twisted?(t=r.redMul(l).redMul(a.redSub(this.curve._mulA(o))),n=c.redMul(l)):(t=r.redMul(l).redMul(a.redSub(o)),n=this.curve._mulC(c).redMul(l)),this.curve.point(f,t,n)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},l.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},l.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},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},function(e,t,n){"use strict";t.sha1=n(1420),t.sha224=n(1421),t.sha256=n(1025),t.sha384=n(1422),t.sha512=n(1026)},function(e,t,n){"use strict";var r=n(392),i=n(859),o=n(1024),a=r.rotl32,s=r.sum32,c=r.sum32_5,l=o.ft_1,u=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],u=this.h[2],d=this.h[3],p=this.h[4];for(r=0;r<n.length;r++){var h=~~(r/20),m=c(a(i,5),l(h,o,u,d),p,n[r],f[h]);p=d,d=u,u=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],u),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],p)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(e,t,n){"use strict";var r=n(392),i=n(1025);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(e,t,n){"use strict";var r=n(392),i=n(1026);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(e,t,n){"use strict";var r=n(392),i=n(859),o=r.rotl32,a=r.sum32,s=r.sum32_3,c=r.sum32_4,l=i.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function p(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,l),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],u=this.h[4],g=n,v=r,w=i,_=l,k=u,x=0;x<80;x++){var S=a(o(c(n,f(x,r,i,l),e[h[x]+t],d(x)),b[x]),u);n=u,u=l,l=o(i,10),i=r,r=S,S=a(o(c(g,f(79-x,v,w,_),e[m[x]+t],p(x)),y[x]),k),g=k,k=_,_=o(w,10),w=v,v=S}S=s(this.h[1],i,_),this.h[1]=s(this.h[2],l,k),this.h[2]=s(this.h[3],u,g),this.h[3]=s(this.h[4],n,v),this.h[4]=s(this.h[0],r,w),this.h[0]=S},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var h=[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],m=[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],b=[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],y=[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,n){"use strict";var r=n(392),i=n(824);function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(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)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.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,n){"use strict";var r=n(27),i=n(1427),o=n(224),a=n(925),s=n(1022),c=o.assert,l=n(1428),u=n(1429);function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(c(a.hasOwnProperty(e),"Unknown curve "+e),e=a[e]),e instanceof a.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}e.exports=f,f.prototype.keyPair=function(e){return new l(this,e)},f.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var a=new r(t.generate(n));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,n,o){"object"==typeof n&&(o=n,n=null),o||(o={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),l=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new r(1)),d=0;;d++){var p=o.k?o.k(d):new r(l.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(f)>=0)){var h=this.g.mul(p);if(!h.isInfinity()){var m=h.getX(),b=m.umod(this.n);if(0!==b.cmpn(0)){var y=p.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(y=y.umod(this.n)).cmpn(0)){var g=(h.getY().isOdd()?1:0)|(0!==m.cmp(b)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),g^=1),new u({r:b,s:y,recoveryParam:g})}}}}}},f.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var o=(t=new u(t,"hex")).r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,c=a.invm(this.n),l=c.mul(e).umod(this.n),f=c.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(l,n.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var o=this.n,a=new r(e),s=t.r,l=t.s,f=1&n,d=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var p=t.r.invm(o),h=o.sub(a).mul(p).umod(o),m=l.mul(p).umod(o);return this.g.mulAdd(h,s,m)},f.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,n){"use strict";var r=n(215),i=n(1021),o=n(824);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=a,a.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);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(r),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},a.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())},a.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},a.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,e);return this._update(n),this._reseed++,i.encode(a,t)}},function(e,t,n){"use strict";var r=n(27),i=n(224).assert;function o(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)}e.exports=o,o.fromPublic=function(e,t,n){return t instanceof o?t:new o(e,{pub:t,pubEnc:n})},o.fromPrivate=function(e,t,n){return t instanceof o?t:new o(e,{priv:t,privEnc:n})},o.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"}},o.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},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(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)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,n){"use strict";var r=n(27),i=n(224),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o<r;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function l(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;if(o+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=c(e,n);if(!1===a)return!1;var l=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var u=c(e,n);if(!1===u)return!1;if(e.length!==u+n.place)return!1;var f=e.slice(n.place,u+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(l),this.s=new r(f),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=l(t),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var o=r.concat(n),a=[48];return u(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,n){"use strict";var r=n(215),i=n(925),o=n(224),a=o.assert,s=o.parseBytes,c=n(1431),l=n(1432);function u(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[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=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),e).mul(n.priv()),c=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},u.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(o)},u.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)},u.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=o.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return o.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,n){"use strict";var r=n(224),i=r.assert,o=r.parseBytes,a=r.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},s.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=s},function(e,t,n){"use strict";var r=n(27),i=n(224),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(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 r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},function(e,t,n){var r=n(1434),i=n(1435),o=n(1015),a=n(1436);e.exports=function(e){return r(e)||i(e)||o(e)||a()}},function(e,t,n){var r=n(1016);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){"use strict";function r(){var e=Object.create(null),t=0,n=0,r=0,i=!1;function o(t){r--,delete e[t]}this.put=function(t,n,a,s){if(i&&console.log("caching: %s = %j (@%s)",t,n,a),void 0!==a&&("number"!=typeof a||isNaN(a)||a<=0))throw new Error("Cache timeout must be a positive number");if(void 0!==s&&"function"!=typeof s)throw new Error("Cache timeout callback must be a function");var c=e[t];c?clearTimeout(c.timeout):r++;var l={value:n,expire:a+Date.now()};return isNaN(l.expire)||(l.timeout=setTimeout(function(){o(t),s&&s(t,n)}.bind(this),a)),e[t]=l,n},this.del=function(t){var n=!0,r=e[t];return r?(clearTimeout(r.timeout),!isNaN(r.expire)&&r.expire<Date.now()&&(n=!1)):n=!1,n&&o(t),n},this.clear=function(){for(var o in e)clearTimeout(e[o].timeout);r=0,e=Object.create(null),i&&(t=0,n=0)},this.get=function(o){var a=e[o];if(void 0!==a){if(isNaN(a.expire)||a.expire>=Date.now())return i&&t++,a.value;i&&n++,r--,delete e[o]}else i&&n++;return null},this.size=function(){return r},this.memsize=function(){var t,n=0;for(t in e)n++;return n},this.debug=function(e){i=e},this.hits=function(){return t},this.misses=function(){return n},this.keys=function(){return Object.keys(e)},this.exportJson=function(){var t={};for(var n in e){var r=e[n];t[n]={value:r.value,expire:r.expire||"NaN"}}return JSON.stringify(t)},this.importJson=function(t,n){var r=JSON.parse(t),o=Date.now(),a=n&&n.skipDuplicates;for(var s in r)if(r.hasOwnProperty(s)){if(a)if(e[s]){i&&console.log("Skipping duplicate imported key '%s'",s);continue}var c=r[s],l=c.expire-o;if(l<=0){this.del(s);continue}l=l>0?l:void 0,this.put(s,c.value,l)}return this.size()}}e.exports=new r,e.exports.Cache=r},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t){e.exports=n(878)},function(e,t){e.exports=n(879)},function(e,t){e.exports=n(1439)},function(e,t){e.exports=n(399)},function(e,t){e.exports=n(880)},function(e,t){e.exports=n(923)},function(e,t){e.exports=n(924)},function(e){e.exports=JSON.parse('{"a":[{"constant":true,"inputs":[],"name":"currentEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"epoch","type":"uint256"}],"name":"getEpochInfo","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"n","type":"uint256"},{"internalType":"uint256","name":"k","type":"uint256"},{"internalType":"uint256","name":"t","type":"uint256"},{"internalType":"address[]","name":"nodeList","type":"address[]"},{"internalType":"uint256","name":"prevEpoch","type":"uint256"},{"internalType":"uint256","name":"nextEpoch","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"nodeAddress","type":"address"}],"name":"getNodeDetails","outputs":[{"internalType":"string","name":"declaredIp","type":"string"},{"internalType":"uint256","name":"position","type":"uint256"},{"internalType":"uint256","name":"pubKx","type":"uint256"},{"internalType":"uint256","name":"pubKy","type":"uint256"},{"internalType":"string","name":"tmP2PListenAddress","type":"string"},{"internalType":"string","name":"p2pListenAddress","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}]}')},function(e,t,n){"use strict";n.r(t);var r=n(1),i=n.n(r),o=n(4),a=n.n(o),s=n(5),c=n.n(s),l=n(6),u=n.n(l),f=n(0),d=n.n(f),p=n(2),h=n.n(p),m=n(3),b=n(7),y=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.network,i=void 0===r?"mainnet":r,o=n.proxyAddress,a=void 0===o?"0x638646503746d5456209e33a2ff5e3226d698bea":o;c()(this,e),d()(this,"_currentEpoch","19"),d()(this,"_torusNodeEndpoints",["https://torus-19.torusnode.com/jrpc","https://torus-node.ens.domains/jrpc","https://torus-node.matic.network/jrpc","https://torus.zilliqa.network/jrpc","https://torus-mainnet.cosmos.network/jrpc","https://torus2.etherscan.com/jrpc","https://torus-node-v2.skalelabs.com/jrpc","https://torus-node.binancex.dev/jrpc","https://torusnode.ont.io/jrpc"]),d()(this,"_torusNodePub",[{X:"bbe83c64177c3775550e6ba6ac2bc059f6847d644c9e4894e42c60d7974d8c2b",Y:"82b49a7caf70def38cdad2740af45c1e4f969650105c5019a29bb18b21a9acb5"},{X:"c208cac4ef9a47d386097a9c915b28e9cb89213abee8d26a17198ee261201b0d",Y:"c7db2fe4631109f40833de9dc78d07e35706549ee48fa557b33e4e75e1047873"},{X:"ca1766bb426d4ca5582818a0c5439d560ea64f5baa060793ab29dd3d0ceacfe",Y:"d46c1d08c40e1306e1bca328c2287b8268166b11a1ba4b8442ea2ad0c5e32152"},{X:"c3934dd2f6f4b3d2e1e398cc501e143c1e1a381b52feb6d1525af34d16253768",Y:"71f5141a5035799099f5ea3e241e66946bc55dc857ac3bd7d6fcdb8dcd3eeeef"},{X:"22e66f1929631d00bf026227581597f085fd94fd952fc0dca9f0833398b5c064",Y:"6088b3912e10a1e9d50355a609c10db7d188f16a2e2fd7357e51bf4f6a74f0a1"},{X:"9dc9fa410f3ce9eb70df70cdea00a49f2c4cc7a31c08c0dab5f863ed35ff5139",Y:"627a291cb87a75c61da3f65d6818e1e05e360217179817ed27e8c73bca7ec122"},{X:"118b9fc07e97b096d899b9f6658463ce6a8caa64038e37fc969df4e6023dd8c6",Y:"baf9fa4e51770f4796ea165dd03a769b8606681a38954a0a92c4cbffd6609ce9"},{X:"8a6d8b925da15a273dec3d8f8395ec35cd6878f274b2b180e4e106999db64043",Y:"96f67f870c157743da0b1eb84d89bf30500d74dc84c11f501ee1cb013acc8c46"},{X:"39cecb62e863729f572f7dfc46c24867981bf04bb405fed0df39e33984bfade5",Y:"61c2364434012e68a2be2e9952805037e52629d7762fafc8e10e9fb5bad8f790"}]),d()(this,"_torusIndexes",[1,2,3,4,5,6,7,8,9]);try{var s=new URL(i);t=s.href}catch(e){t="https://".concat(i,".infura.io/v3/").concat("b8cdb0e4cff24599a286bf8e87ff1c96")}h.a.setProvider(t),this.nodeListContract=new h.a(b.a,a),this.nodeListAddress=a,this.updated=!1}var t;return u()(e,[{key:"getCurrentEpoch",value:function(){return this.nodeListContract.methods.currentEpoch().call()}},{key:"getEpochInfo",value:function(e){return this.nodeListContract.methods.getEpochInfo(e).call()}},{key:"getNodeEndpoint",value:function(e){return this.nodeListContract.methods.getNodeDetails(e).call()}},{key:"getNodeDetails",value:(t=a()(i.a.mark((function e(){var t,n,r,o,a,s,c,l,u,f,d,p=this,h=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=h.length>0&&void 0!==h[0]&&h[0],e.prev=1,!t){e.next=4;break}return e.abrupt("return",this._nodeDetails);case 4:if(!this.updated){e.next=6;break}return e.abrupt("return",this._nodeDetails);case 6:return e.next=8,this.getCurrentEpoch();case 8:return n=e.sent,this._currentEpoch=n,e.next=12,this.getEpochInfo(n);case 12:return r=e.sent,o=[],a=r.nodeList.map((function(e,t){return t+1})),this._torusIndexes=a,r.nodeList.map((function(e){return o.push(p.getNodeEndpoint(e).catch((function(e){})))})),e.next=19,Promise.all(o);case 19:for(s=e.sent,c=[],l=[],u=0;u<s.length;u+=1)f=s[u],d="https://".concat(f.declaredIp.split(":")[0],"/jrpc"),c.push(d),l.push({X:Object(m.toHex)(f.pubKx).replace("0x",""),Y:Object(m.toHex)(f.pubKy).replace("0x","")});return this._torusNodeEndpoints=c,this._torusNodePub=l,this.updated=!0,e.abrupt("return",this._nodeDetails);case 29:return e.prev=29,e.t0=e.catch(1),e.abrupt("return",this._nodeDetails);case 32:case"end":return e.stop()}}),e,this,[[1,29]])}))),function(){return t.apply(this,arguments)})},{key:"_nodeDetails",get:function(){return{currentEpoch:this._currentEpoch,nodeListAddress:this.nodeListAddress,torusNodeEndpoints:this._torusNodeEndpoints,torusNodePub:this._torusNodePub,torusIndexes:this._torusIndexes,updated:this.updated}}}]),e}();t.default=y}]).default},function(e,t,n){"use strict";var r=n(391),i=n(1440),o=n(1029),a=n(399),s=n(1031).subscription,c=n(225).formatters,l=n(225).errors,u=n(1030),f=n(1464),d=function e(t,n,o){var s=this,u=Array.prototype.slice.call(arguments);if(!(this instanceof e))throw new Error('Please use the "new" keyword to instantiate a web3.eth.Contract() object!');if(this.setProvider=function(){i.packageInit(s,arguments),s.clearSubscriptions=s._requestManager.clearSubscriptions},i.packageInit(this,[this.constructor]),this.clearSubscriptions=this._requestManager.clearSubscriptions,!t||!Array.isArray(t))throw l.ContractMissingABIError();this.options={};var d=u[u.length-1];r.isObject(d)&&!r.isArray(d)&&(o=d,this.options=r.extend(this.options,this._getOrSetDefaultOptions(o)),r.isObject(n)&&(n=null)),Object.defineProperty(this.options,"address",{set:function(e){e&&(s._address=a.toChecksumAddress(c.inputAddressFormatter(e)))},get:function(){return s._address},enumerable:!0}),Object.defineProperty(this.options,"jsonInterface",{set:function(e){return s.methods={},s.events={},s._jsonInterface=e.map((function(e){var t,n;if(e.constant="view"===e.stateMutability||"pure"===e.stateMutability||e.constant,e.payable="payable"===e.stateMutability||e.payable,e.name&&(n=a._jsonInterfaceMethodToString(e)),"function"===e.type){if(e.signature=f.encodeFunctionSignature(n),t=s._createTxObject.bind({method:e,parent:s}),s.methods[e.name]){var r=s._createTxObject.bind({method:e,parent:s,nextMethod:s.methods[e.name]});s.methods[e.name]=r}else s.methods[e.name]=t;s.methods[e.signature]=t,s.methods[n]=t}else if("event"===e.type){e.signature=f.encodeEventSignature(n);var i=s._on.bind(s,e.signature);s.events[e.name]&&"bound "!==s.events[e.name].name||(s.events[e.name]=i),s.events[e.signature]=i,s.events[n]=i}return e})),s.events.allEvents=s._on.bind(s,"allevents"),s._jsonInterface},get:function(){return s._jsonInterface},enumerable:!0});var p=this.constructor.defaultAccount,h=this.constructor.defaultBlock||"latest";Object.defineProperty(this,"handleRevert",{get:function(){return!1===s.options.handleRevert||!0===s.options.handleRevert?s.options.handleRevert:this.constructor.handleRevert},set:function(e){s.options.handleRevert=e},enumerable:!0}),Object.defineProperty(this,"defaultCommon",{get:function(){return s.options.common||this.constructor.defaultCommon},set:function(e){s.options.common=e},enumerable:!0}),Object.defineProperty(this,"defaultHardfork",{get:function(){return s.options.hardfork||this.constructor.defaultHardfork},set:function(e){s.options.hardfork=e},enumerable:!0}),Object.defineProperty(this,"defaultChain",{get:function(){return s.options.chain||this.constructor.defaultChain},set:function(e){s.options.chain=e},enumerable:!0}),Object.defineProperty(this,"transactionPollingTimeout",{get:function(){return 0===s.options.transactionPollingTimeout?s.options.transactionPollingTimeout:s.options.transactionPollingTimeout||this.constructor.transactionPollingTimeout},set:function(e){s.options.transactionPollingTimeout=e},enumerable:!0}),Object.defineProperty(this,"transactionConfirmationBlocks",{get:function(){return 0===s.options.transactionConfirmationBlocks?s.options.transactionConfirmationBlocks:s.options.transactionConfirmationBlocks||this.constructor.transactionConfirmationBlocks},set:function(e){s.options.transactionConfirmationBlocks=e},enumerable:!0}),Object.defineProperty(this,"transactionBlockTimeout",{get:function(){return 0===s.options.transactionBlockTimeout?s.options.transactionBlockTimeout:s.options.transactionBlockTimeout||this.constructor.transactionBlockTimeout},set:function(e){s.options.transactionBlockTimeout=e},enumerable:!0}),Object.defineProperty(this,"defaultAccount",{get:function(){return p},set:function(e){return e&&(p=a.toChecksumAddress(c.inputAddressFormatter(e))),e},enumerable:!0}),Object.defineProperty(this,"defaultBlock",{get:function(){return h},set:function(e){return h=e,e},enumerable:!0}),this.methods={},this.events={},this._address=null,this._jsonInterface=[],this.options.address=n,this.options.jsonInterface=t};d.setProvider=function(e,t){i.packageInit(this,[e]),this._ethAccounts=t},d.prototype._getCallback=function(e){if(e&&r.isFunction(e[e.length-1]))return e.pop()},d.prototype._checkListener=function(e,t){if(t===e)throw l.ContractReservedEventError(e)},d.prototype._getOrSetDefaultOptions=function(e){var t=e.gasPrice?String(e.gasPrice):null,n=e.from?a.toChecksumAddress(c.inputAddressFormatter(e.from)):null;return e.data=e.data||this.options.data,e.from=n||this.options.from,e.gasPrice=t||this.options.gasPrice,e.gas=e.gas||e.gasLimit||this.options.gas,delete e.gasLimit,e},d.prototype._encodeEventABI=function(e,t){var n=(t=t||{}).filter||{},i={};if(["fromBlock","toBlock"].filter((function(e){return void 0!==t[e]})).forEach((function(e){i[e]=c.inputBlockNumberFormatter(t[e])})),r.isArray(t.topics))i.topics=t.topics;else{if(i.topics=[],e&&!e.anonymous&&"ALLEVENTS"!==e.name&&i.topics.push(e.signature),"ALLEVENTS"!==e.name){var o=e.inputs.filter((function(e){return!0===e.indexed})).map((function(e){var t=n[e.name];return t?r.isArray(t)?t.map((function(t){return f.encodeParameter(e.type,t)})):f.encodeParameter(e.type,t):null}));i.topics=i.topics.concat(o)}i.topics.length||delete i.topics}return this.options.address&&(i.address=this.options.address.toLowerCase()),i},d.prototype._decodeEventABI=function(e){var t=this;e.data=e.data||"",e.topics=e.topics||[];var n=c.outputLogFormatter(e);if("ALLEVENTS"===t.name&&(t=t.jsonInterface.find((function(t){return t.signature===e.topics[0]}))||{anonymous:!0}),t.inputs=t.inputs||[],!t.anonymous){let n=0;t.inputs.forEach(e=>e.indexed?n++:null),n>0&&e.topics.length!==n+1&&(t={anonymous:!0,inputs:[]})}var r=t.anonymous?e.topics:e.topics.slice(1);return n.returnValues=f.decodeLog(t.inputs,e.data,r),delete n.returnValues.__length__,n.event=t.name,n.signature=t.anonymous||!e.topics[0]?null:e.topics[0],n.raw={data:n.data,topics:n.topics},delete n.data,delete n.topics,n},d.prototype._encodeMethodABI=function(){var e=this._method.signature,t=this.arguments||[],n=!1,i=this._parent.options.jsonInterface.filter((function(t){return"constructor"===e&&t.type===e||(t.signature===e||t.signature===e.replace("0x","")||t.name===e)&&"function"===t.type})).map((function(e){var i=r.isArray(e.inputs)?e.inputs.length:0;if(i!==t.length)throw new Error("The number of arguments is not matching the methods required number. You need to pass "+i+" arguments.");return"function"===e.type&&(n=e.signature),r.isArray(e.inputs)?e.inputs:[]})).map((function(e){return f.encodeParameters(e,t).replace("0x","")}))[0]||"";if("constructor"===e){if(!this._deployData)throw new Error("The contract has no contract data option set. This is necessary to append the constructor parameters.");return this._deployData.startsWith("0x")||(this._deployData="0x"+this._deployData),this._deployData+i}var o=n?n+i:i;if(!o)throw new Error("Couldn't find a matching contract method named \""+this._method.name+'".');return o},d.prototype._decodeMethodReturn=function(e,t){if(!t)return null;t=t.length>=2?t.slice(2):t;var n=f.decodeParameters(e,t);return 1===n.__length__?n[0]:(delete n.__length__,n)},d.prototype.deploy=function(e,t){if((e=e||{}).arguments=e.arguments||[],!(e=this._getOrSetDefaultOptions(e)).data){if("function"==typeof t)return t(l.ContractMissingDeployDataError());throw l.ContractMissingDeployDataError()}var n=r.find(this.options.jsonInterface,(function(e){return"constructor"===e.type}))||{};return n.signature="constructor",this._createTxObject.apply({method:n,parent:this,deployData:e.data,_ethAccounts:this.constructor._ethAccounts},e.arguments)},d.prototype._generateEventOptions=function(){var e=Array.prototype.slice.call(arguments),t=this._getCallback(e),n=r.isObject(e[e.length-1])?e.pop():{},i=r.isString(e[0])?e[0]:"allevents",o="allevents"===i.toLowerCase()?{name:"ALLEVENTS",jsonInterface:this.options.jsonInterface}:this.options.jsonInterface.find((function(e){return"event"===e.type&&(e.name===i||e.signature==="0x"+i.replace("0x",""))}));if(!o)throw l.ContractEventDoesNotExistError(i);if(!a.isAddress(this.options.address))throw l.ContractNoAddressDefinedError();return{params:this._encodeEventABI(o,n),event:o,callback:t}},d.prototype.clone=function(){return new this.constructor(this.options.jsonInterface,this.options.address,this.options)},d.prototype.once=function(e,t,n){var i=Array.prototype.slice.call(arguments);if(!(n=this._getCallback(i)))throw l.ContractOnceRequiresCallbackError();t&&delete t.fromBlock,this._on(e,t,(function(e,t,i){i.unsubscribe(),r.isFunction(n)&&n(e,t,i)}))},d.prototype._on=function(){var e=this._generateEventOptions.apply(this,arguments);e.params&&e.params.toBlock&&(delete e.params.toBlock,console.warn("Invalid option: toBlock. Use getPastEvents for specific range.")),this._checkListener("newListener",e.event.name),this._checkListener("removeListener",e.event.name);var t=new s({subscription:{params:1,inputFormatter:[c.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event),subscriptionHandler:function(e){e.removed?this.emit("changed",e):this.emit("data",e),r.isFunction(this.callback)&&this.callback(null,e,this)}},type:"eth",requestManager:this._requestManager});return t.subscribe("logs",e.params,e.callback||function(){}),t},d.prototype.getPastEvents=function(){var e=this._generateEventOptions.apply(this,arguments),t=new o({name:"getPastLogs",call:"eth_getLogs",params:1,inputFormatter:[c.inputLogFormatter],outputFormatter:this._decodeEventABI.bind(e.event)});t.setRequestManager(this._requestManager);var n=t.buildCall();return t=null,n(e.params,e.callback)},d.prototype._createTxObject=function(){var e=Array.prototype.slice.call(arguments),t={};if("function"===this.method.type&&(t.call=this.parent._executeMethod.bind(t,"call"),t.call.request=this.parent._executeMethod.bind(t,"call",!0)),t.send=this.parent._executeMethod.bind(t,"send"),t.send.request=this.parent._executeMethod.bind(t,"send",!0),t.encodeABI=this.parent._encodeMethodABI.bind(t),t.estimateGas=this.parent._executeMethod.bind(t,"estimate"),e&&this.method.inputs&&e.length!==this.method.inputs.length){if(this.nextMethod)return this.nextMethod.apply(null,e);throw l.InvalidNumberOfParams(e.length,this.method.inputs.length,this.method.name)}return t.arguments=e||[],t._method=this.method,t._parent=this.parent,t._ethAccounts=this.parent.constructor._ethAccounts||this._ethAccounts,this.deployData&&(t._deployData=this.deployData),t},d.prototype._processExecuteArguments=function(e,t){var n={};if(n.type=e.shift(),n.callback=this._parent._getCallback(e),"call"===n.type&&!0!==e[e.length-1]&&(r.isString(e[e.length-1])||isFinite(e[e.length-1]))&&(n.defaultBlock=e.pop()),n.options=r.isObject(e[e.length-1])?e.pop():{},n.generateRequest=!0===e[e.length-1]&&e.pop(),n.options=this._parent._getOrSetDefaultOptions(n.options),n.options.data=this.encodeABI(),!this._deployData&&!a.isAddress(this._parent.options.address))throw l.ContractNoAddressDefinedError();return this._deployData||(n.options.to=this._parent.options.address),n.options.data?n:a._fireError(new Error("Couldn't find a matching contract method, or the number of parameters is wrong."),t.eventEmitter,t.reject,n.callback)},d.prototype._executeMethod=function(){var e=this,t=this._parent._processExecuteArguments.call(this,Array.prototype.slice.call(arguments),n),n=u("send"!==t.type),i=e.constructor._ethAccounts||e._ethAccounts;if(t.generateRequest){var s={params:[c.inputCallFormatter.call(this._parent,t.options)],callback:t.callback};return"call"===t.type?(s.params.push(c.inputDefaultBlockNumberFormatter.call(this._parent,t.defaultBlock)),s.method="eth_call",s.format=this._parent._decodeMethodReturn.bind(null,this._method.outputs)):s.method="eth_sendTransaction",s}switch(t.type){case"estimate":var d=new o({name:"estimateGas",call:"eth_estimateGas",params:1,inputFormatter:[c.inputCallFormatter],outputFormatter:a.hexToNumber,requestManager:e._parent._requestManager,accounts:i,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock}).createFunction();return d(t.options,t.callback);case"call":var p=new o({name:"call",call:"eth_call",params:2,inputFormatter:[c.inputCallFormatter,c.inputDefaultBlockNumberFormatter],outputFormatter:function(t){return e._parent._decodeMethodReturn(e._method.outputs,t)},requestManager:e._parent._requestManager,accounts:i,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,handleRevert:e._parent.handleRevert,abiCoder:f}).createFunction();return p(t.options,t.defaultBlock,t.callback);case"send":if(!a.isAddress(t.options.from))return a._fireError(l.ContractNoFromAddressDefinedError(),n.eventEmitter,n.reject,t.callback);if(r.isBoolean(this._method.payable)&&!this._method.payable&&t.options.value&&t.options.value>0)return a._fireError(new Error("Can not send value to non-payable contract method or constructor"),n.eventEmitter,n.reject,t.callback);var h={receiptFormatter:function(t){if(r.isArray(t.logs)){var n=r.map(t.logs,(function(t){return e._parent._decodeEventABI.call({name:"ALLEVENTS",jsonInterface:e._parent.options.jsonInterface},t)}));t.events={};var i=0;n.forEach((function(e){e.event?t.events[e.event]?Array.isArray(t.events[e.event])?t.events[e.event].push(e):t.events[e.event]=[t.events[e.event],e]:t.events[e.event]=e:(t.events[i]=e,i++)})),delete t.logs}return t},contractDeployFormatter:function(t){var n=e._parent.clone();return n.options.address=t.contractAddress,n}},m=new o({name:"sendTransaction",call:"eth_sendTransaction",params:1,inputFormatter:[c.inputTransactionFormatter],requestManager:e._parent._requestManager,accounts:e.constructor._ethAccounts||e._ethAccounts,defaultAccount:e._parent.defaultAccount,defaultBlock:e._parent.defaultBlock,transactionBlockTimeout:e._parent.transactionBlockTimeout,transactionConfirmationBlocks:e._parent.transactionConfirmationBlocks,transactionPollingTimeout:e._parent.transactionPollingTimeout,defaultCommon:e._parent.defaultCommon,defaultChain:e._parent.defaultChain,defaultHardfork:e._parent.defaultHardfork,handleRevert:e._parent.handleRevert,extraFormatters:h,abiCoder:f}).createFunction();return m(t.options,t.callback);default:throw new Error('Method "'+t.type+'" not implemented.')}},e.exports=d},function(e,t,n){const r=n(1441),i=n(1462);e.exports={packageInit:(e,t)=>{if(t=Array.prototype.slice.call(t),!e)throw new Error('You need to instantiate using the "new" keyword.');Object.defineProperty(e,"currentProvider",{get:()=>e._provider,set:t=>e.setProvider(t),enumerable:!0,configurable:!0}),t[0]&&t[0]._requestManager?e._requestManager=t[0]._requestManager:e._requestManager=new r.Manager(t[0],t[1]),e.givenProvider=r.Manager.givenProvider,e.providers=r.Manager.providers,e._provider=e._requestManager.provider,e.setProvider||(e.setProvider=(t,n)=>(e._requestManager.setProvider(t,n),e._provider=e._requestManager.provider,!0)),e.setRequestManager=t=>{e._requestManager=t,e._provider=t.provider},e.BatchRequest=r.BatchManager.bind(null,e._requestManager),e.extend=i(e)},addProviders:e=>{e.givenProvider=r.Manager.givenProvider,e.providers=r.Manager.providers}}},function(e,t,n){"use strict";const{callbackify:r}=n(901);var i=n(391),o=n(225).errors,a=n(1028),s=n(1445),c=n(1446),l=function e(t,n){this.provider=null,this.providers=e.providers,this.setProvider(t,n),this.subscriptions=new Map};l.givenProvider=c,l.providers={WebsocketProvider:n(1447),HttpProvider:n(1453),IpcProvider:n(1460)},l.prototype.setProvider=function(e,t){var n=this;if(e&&"string"==typeof e&&this.providers)if(/^http(s)?:\/\//i.test(e))e=new this.providers.HttpProvider(e);else if(/^ws(s)?:\/\//i.test(e))e=new this.providers.WebsocketProvider(e);else if(e&&"object"==typeof t&&"function"==typeof t.connect)e=new this.providers.IpcProvider(e,t);else if(e)throw new Error("Can't autodetect provider for \""+e+'"');if(this.provider&&this.provider.connected&&this.clearSubscriptions(),this.provider=e||null,this.provider&&this.provider.on){"function"==typeof e.request?this.provider.on("message",(function(e){if(e&&"eth_subscription"===e.type&&e.data){const t=e.data;t.subscription&&n.subscriptions.has(t.subscription)&&n.subscriptions.get(t.subscription).callback(null,t.result)}})):this.provider.on("data",(function(e,t){(e=e||t).method&&e.params&&e.params.subscription&&n.subscriptions.has(e.params.subscription)&&n.subscriptions.get(e.params.subscription).callback(null,e.params.result)})),this.provider.on("connect",(function(){n.subscriptions.forEach((function(e){e.subscription.resubscribe()}))})),this.provider.on("error",(function(e){n.subscriptions.forEach((function(t){t.callback(e)}))}));const t=function(e){n._isCleanCloseEvent(e)&&!n._isIpcCloseError(e)||(n.subscriptions.forEach((function(t){t.callback(o.ConnectionCloseError(e)),n.subscriptions.delete(t.subscription.id)})),n.provider&&n.provider.emit&&n.provider.emit("error",o.ConnectionCloseError(e))),n.provider&&n.provider.emit&&n.provider.emit("end",e)};this.provider.on("close",t),this.provider.on("disconnect",t)}},l.prototype.send=function(e,t){if(t=t||function(){},!this.provider)return t(o.InvalidProvider());const{method:n,params:i}=e,s=a.toPayload(n,i),c=this._jsonrpcResultCallback(t,s);if(this.provider.request){r(this.provider.request.bind(this.provider))({method:n,params:i},t)}else if(this.provider.sendAsync)this.provider.sendAsync(s,c);else{if(!this.provider.send)throw new Error("Provider does not have a request or send method to use.");this.provider.send(s,c)}},l.prototype.sendBatch=function(e,t){if(!this.provider)return t(o.InvalidProvider());var n=a.toBatchPayload(e);this.provider[this.provider.sendAsync?"sendAsync":"send"](n,(function(e,n){return e?t(e):i.isArray(n)?void t(null,n):t(o.InvalidResponse(n))}))},l.prototype.addSubscription=function(e,t){if(!this.provider.on)throw new Error("The provider doesn't support subscriptions: "+this.provider.constructor.name);this.subscriptions.set(e.id,{callback:t,subscription:e})},l.prototype.removeSubscription=function(e,t){if(this.subscriptions.has(e)){var n=this.subscriptions.get(e).subscription.options.type;return this.subscriptions.delete(e),void this.send({method:n+"_unsubscribe",params:[e]},t)}"function"==typeof t&&t(null)},l.prototype.clearSubscriptions=function(e){try{var t=this;return this.subscriptions.size>0&&this.subscriptions.forEach((function(n,r){e&&"syncing"===n.name||t.removeSubscription(r)})),this.provider.reset&&this.provider.reset(),!0}catch(e){throw new Error("Error while clearing subscriptions: "+e)}},l.prototype._isCleanCloseEvent=function(e){return"object"==typeof e&&([1e3].includes(e.code)||!0===e.wasClean)},l.prototype._isIpcCloseError=function(e){return"boolean"==typeof e&&e},l.prototype._jsonrpcResultCallback=function(e,t){return function(n,r){return r&&r.id&&t.id!==r.id?e(new Error(`Wrong response id ${r.id} (expected: ${t.id}) in ${JSON.stringify(t)}`)):n?e(n):r&&r.error?e(o.ErrorResponse(r)):a.isValidResponse(r)?void e(null,r.result):e(o.InvalidResponse(r))}},e.exports={Manager:l,BatchManager:s}},function(e,t,n){"use strict";e.exports={ErrorResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:JSON.stringify(e),n=e.error&&e.error.data?e.error.data:null,r=new Error("Returned error: "+t);return r.data=n,r},InvalidNumberOfParams:function(e,t,n){return new Error('Invalid number of parameters for "'+n+'". Got '+e+" expected "+t+"!")},InvalidConnection:function(e,t){return this.ConnectionError("CONNECTION ERROR: Couldn't connect to node "+e+".",t)},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)},ConnectionTimeout:function(e){return new Error("CONNECTION TIMEOUT: timeout of "+e+" ms achived")},ConnectionNotOpenError:function(e){return this.ConnectionError("connection not open on send()",e)},ConnectionCloseError:function(e){return"object"==typeof e&&e.code&&e.reason?this.ConnectionError("CONNECTION ERROR: The connection got closed with the close code `"+e.code+"` and the following reason string `"+e.reason+"`",e):new Error("CONNECTION ERROR: The connection closed unexpectedly")},MaxAttemptsReachedOnReconnectingError:function(){return new Error("Maximum number of reconnect attempts reached!")},PendingRequestsOnReconnectingError:function(){return new Error("CONNECTION ERROR: Provider started to reconnect before the response got received!")},ConnectionError:function(e,t){const n=new Error(e);return t&&(n.code=t.code,n.reason=t.reason),n},RevertInstructionError:function(e,t){var n=new Error("Your request got reverted with the following reason string: "+e);return n.reason=e,n.signature=t,n},TransactionRevertInstructionError:function(e,t,n){var r=new Error("Transaction has been reverted by the EVM:\n"+JSON.stringify(n,null,2));return r.reason=e,r.signature=t,r.receipt=n,r},TransactionError:function(e,t){var n=new Error(e);return n.receipt=t,n},NoContractAddressFoundError:function(e){return this.TransactionError("The transaction receipt didn't contain a contract address.",e)},ContractCodeNotStoredError:function(e){return this.TransactionError("The contract code couldn't be stored, please check your gas limit.",e)},TransactionRevertedWithoutReasonError:function(e){return this.TransactionError("Transaction has been reverted by the EVM:\n"+JSON.stringify(e,null,2),e)},TransactionOutOfGasError:function(e){return this.TransactionError("Transaction ran out of gas. Please provide more gas:\n"+JSON.stringify(e,null,2),e)},ResolverMethodMissingError:function(e,t){return new Error("The resolver at "+e+'does not implement requested method: "'+t+'".')},ContractMissingABIError:function(){return new Error("You must provide the json interface of the contract when instantiating a contract object.")},ContractOnceRequiresCallbackError:function(){return new Error("Once requires a callback as the second parameter.")},ContractEventDoesNotExistError:function(e){return new Error('Event "'+e+"\" doesn't exist in this contract.")},ContractReservedEventError:function(e){return new Error('The event "'+e+"\" is a reserved event name, you can't use it.")},ContractMissingDeployDataError:function(){return new Error('No "data" specified in neither the given options, nor the default options.')},ContractNoAddressDefinedError:function(){return new Error("This contract object doesn't have address set yet, please set an address first.")},ContractNoFromAddressDefinedError:function(){return new Error('No "from" address specified in neither the given options, nor the default options.')}}},function(e,t,n){"use strict";var r=n(391),i=n(399),o=n(1444),a=function(e){return i.toBN(e).toString(10)},s=function(e){if(void 0!==e)return function(e){return"latest"===e||"pending"===e||"earliest"===e}(e)?e:"genesis"===e?"0x0":i.isHexStrict(e)?r.isString(e)?e.toLowerCase():e:i.numberToHex(e)},c=function(e){if(e.to&&(e.to=f(e.to)),e.data&&e.input)throw new Error('You can\'t have "data" and "input" as properties of transactions at the same time, please use either "data" or "input" instead.');if(!e.data&&e.input&&(e.data=e.input,delete e.input),e.data&&!e.data.startsWith("0x")&&(e.data="0x"+e.data),e.data&&!i.isHex(e.data))throw new Error("The data field must be HEX encoded data.");return(e.gas||e.gasLimit)&&(e.gas=e.gas||e.gasLimit),["gasPrice","gas","value","nonce"].filter((function(t){return void 0!==e[t]})).forEach((function(t){e[t]=i.numberToHex(e[t])})),e},l=function(e){return null!==e.blockNumber&&(e.blockNumber=i.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=i.hexToNumber(e.transactionIndex)),e.nonce=i.hexToNumber(e.nonce),e.gas=i.hexToNumber(e.gas),e.gasPrice=a(e.gasPrice),e.value=a(e.value),e.to&&i.isAddress(e.to)?e.to=i.toChecksumAddress(e.to):e.to=null,e.from&&(e.from=i.toChecksumAddress(e.from)),e},u=function(e){if("string"==typeof e.blockHash&&"string"==typeof e.transactionHash&&"string"==typeof e.logIndex){var t=i.sha3(e.blockHash.replace("0x","")+e.transactionHash.replace("0x","")+e.logIndex.replace("0x",""));e.id="log_"+t.replace("0x","").substr(0,8)}else e.id||(e.id=null);return null!==e.blockNumber&&(e.blockNumber=i.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=i.hexToNumber(e.transactionIndex)),null!==e.logIndex&&(e.logIndex=i.hexToNumber(e.logIndex)),e.address&&(e.address=i.toChecksumAddress(e.address)),e},f=function(e){var t=new o(e);if(t.isValid()&&t.isDirect())return t.toAddress().toLowerCase();if(i.isAddress(e))return"0x"+e.toLowerCase().replace("0x","");throw new Error(`Provided address ${e} is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted.`)};e.exports={inputDefaultBlockNumberFormatter:function(e){return s(this&&null==e?this.defaultBlock:e)},inputBlockNumberFormatter:s,inputCallFormatter:function(e){var t=(e=c(e)).from||(this?this.defaultAccount:null);return t&&(e.from=f(t)),e},inputTransactionFormatter:function(e){if(e=c(e),!r.isNumber(e.from)&&!r.isObject(e.from)){if(e.from=e.from||(this?this.defaultAccount:null),!e.from&&!r.isNumber(e.from))throw new Error('The send transactions "from" field must be defined!');e.from=f(e.from)}return e},inputAddressFormatter:f,inputPostFormatter:function(e){return e.ttl&&(e.ttl=i.numberToHex(e.ttl)),e.workToProve&&(e.workToProve=i.numberToHex(e.workToProve)),e.priority&&(e.priority=i.numberToHex(e.priority)),r.isArray(e.topics)||(e.topics=e.topics?[e.topics]:[]),e.topics=e.topics.map((function(e){return 0===e.indexOf("0x")?e:i.fromUtf8(e)})),e},inputLogFormatter:function(e){var t=function(e){return null==e?null:0===(e=String(e)).indexOf("0x")?e:i.fromUtf8(e)};return(e.fromBlock||0===e.fromBlock)&&(e.fromBlock=s(e.fromBlock)),(e.toBlock||0===e.toBlock)&&(e.toBlock=s(e.toBlock)),e.topics=e.topics||[],e.topics=e.topics.map((function(e){return r.isArray(e)?e.map(t):t(e)})),t=null,e.address&&(e.address=r.isArray(e.address)?e.address.map((function(e){return f(e)})):f(e.address)),e},inputSignFormatter:function(e){return i.isHexStrict(e)?e:i.utf8ToHex(e)},inputStorageKeysFormatter:function(e){return e.map(i.numberToHex)},outputProofFormatter:function(e){return e.address=i.toChecksumAddress(e.address),e.nonce=i.hexToNumberString(e.nonce),e.balance=i.hexToNumberString(e.balance),e},outputBigNumberFormatter:a,outputTransactionFormatter:l,outputTransactionReceiptFormatter:function(e){if("object"!=typeof e)throw new Error("Received receipt is invalid: "+e);return null!==e.blockNumber&&(e.blockNumber=i.hexToNumber(e.blockNumber)),null!==e.transactionIndex&&(e.transactionIndex=i.hexToNumber(e.transactionIndex)),e.cumulativeGasUsed=i.hexToNumber(e.cumulativeGasUsed),e.gasUsed=i.hexToNumber(e.gasUsed),r.isArray(e.logs)&&(e.logs=e.logs.map(u)),e.contractAddress&&(e.contractAddress=i.toChecksumAddress(e.contractAddress)),void 0!==e.status&&null!==e.status&&(e.status=Boolean(parseInt(e.status))),e},outputBlockFormatter:function(e){return e.gasLimit=i.hexToNumber(e.gasLimit),e.gasUsed=i.hexToNumber(e.gasUsed),e.size=i.hexToNumber(e.size),e.timestamp=i.hexToNumber(e.timestamp),null!==e.number&&(e.number=i.hexToNumber(e.number)),e.difficulty&&(e.difficulty=a(e.difficulty)),e.totalDifficulty&&(e.totalDifficulty=a(e.totalDifficulty)),r.isArray(e.transactions)&&e.transactions.forEach((function(e){if(!r.isString(e))return l(e)})),e.miner&&(e.miner=i.toChecksumAddress(e.miner)),e},outputLogFormatter:u,outputPostFormatter:function(e){return e.expiry=i.hexToNumber(e.expiry),e.sent=i.hexToNumber(e.sent),e.ttl=i.hexToNumber(e.ttl),e.workProved=i.hexToNumber(e.workProved),e.topics||(e.topics=[]),e.topics=e.topics.map((function(e){return i.toUtf8(e)})),e},outputSyncingFormatter:function(e){return e.startingBlock=i.hexToNumber(e.startingBlock),e.currentBlock=i.hexToNumber(e.currentBlock),e.highestBlock=i.hexToNumber(e.highestBlock),e.knownStates&&(e.knownStates=i.hexToNumber(e.knownStates),e.pulledStates=i.hexToNumber(e.pulledStates)),e}}},function(e,t,n){"use strict";var r=n(399),i=n(27),o=function(e){var t="A".charCodeAt(0),n="Z".charCodeAt(0);return(e=(e=e.toUpperCase()).substr(4)+e.substr(0,4)).split("").map((function(e){var r=e.charCodeAt(0);return r>=t&&r<=n?r-t+10:e})).join("")},a=function(e){for(var t,n=e;n.length>2;)t=n.slice(0,9),n=parseInt(t,10)%97+n.slice(t.length);return parseInt(n,10)%97},s=function(e){this._iban=e};s.toAddress=function(e){if(!(e=new s(e)).isDirect())throw new Error("IBAN is indirect and can't be converted");return e.toAddress()},s.toIban=function(e){return s.fromAddress(e).toString()},s.fromAddress=function(e){if(!r.isAddress(e))throw new Error("Provided address is not a valid address: "+e);e=e.replace("0x","").replace("0X","");var t=function(e,t){for(var n=e;n.length<2*t;)n="0"+n;return n}(new i(e,16).toString(36),15);return s.fromBban(t.toUpperCase())},s.fromBban=function(e){var t=("0"+(98-a(o("XE00"+e)))).slice(-2);return new s("XE"+t+e)},s.createIndirect=function(e){return s.fromBban("ETH"+e.institution+e.identifier)},s.isValid=function(e){return new s(e).isValid()},s.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(o(this._iban))},s.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},s.prototype.isIndirect=function(){return 20===this._iban.length},s.prototype.checksum=function(){return this._iban.substr(2,2)},s.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},s.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},s.prototype.toAddress=function(){if(this.isDirect()){var e=this._iban.substr(4),t=new i(e,36);return r.toChecksumAddress(t.toString(16,20))}return""},s.prototype.toString=function(){return this._iban},e.exports=s},function(e,t,n){"use strict";var r=n(1028),i=n(225).errors,o=function(e){this.requestManager=e,this.requests=[]};o.prototype.add=function(e){this.requests.push(e)},o.prototype.execute=function(){var e=this.requests;this.requestManager.sendBatch(e,(function(t,n){n=n||[],e.map((function(e,t){return n[t]||{}})).forEach((function(t,n){if(e[n].callback){if(t&&t.error)return e[n].callback(i.ErrorResponse(t));if(!r.isValidResponse(t))return e[n].callback(i.InvalidResponse(t));try{e[n].callback(null,e[n].format?e[n].format(t.result):t.result)}catch(t){e[n].callback(t)}}}))}))},e.exports=o},function(e,t,n){"use strict";var r,i=null;try{r=Function("return this")()}catch(e){r=window}void 0!==r.ethereum?i=r.ethereum:void 0!==r.web3&&r.web3.currentProvider&&(r.web3.currentProvider.sendAsync&&(r.web3.currentProvider.send=r.web3.currentProvider.sendAsync,delete r.web3.currentProvider.sendAsync),!r.web3.currentProvider.on&&r.web3.currentProvider.connection&&"ipcProviderWrapper"===r.web3.currentProvider.connection.constructor.name&&(r.web3.currentProvider.on=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");switch(e){case"data":this.connection.on("data",(function(e){var n="";e=e.toString();try{n=JSON.parse(e)}catch(n){return t(new Error("Couldn't parse response data"+e))}n.id||-1===n.method.indexOf("_subscription")||t(null,n)}));break;default:this.connection.on(e,t)}}),i=r.web3.currentProvider),e.exports=i},function(e,t,n){"use strict";var r=n(926),i=n(1448),o=n(225).errors,a=n(1449).w3cwebsocket,s=function(e,t){r.call(this),t=t||{},this.url=e,this._customTimeout=t.timeout||15e3,this.headers=t.headers||{},this.protocol=t.protocol||void 0,this.reconnectOptions=Object.assign({auto:!1,delay:5e3,maxAttempts:!1,onTimeout:!1},t.reconnect),this.clientConfig=t.clientConfig||void 0,this.requestOptions=t.requestOptions||void 0,this.DATA="data",this.CLOSE="close",this.ERROR="error",this.CONNECT="connect",this.RECONNECT="reconnect",this.connection=null,this.requestQueue=new Map,this.responseQueue=new Map,this.reconnectAttempts=0,this.reconnecting=!1;var n=i.parseURL(e);n.username&&n.password&&(this.headers.authorization="Basic "+i.btoa(n.username+":"+n.password)),n.auth&&(this.headers.authorization="Basic "+i.btoa(n.auth)),Object.defineProperty(this,"connected",{get:function(){return this.connection&&this.connection.readyState===this.connection.OPEN},enumerable:!0}),this.connect()};(s.prototype=Object.create(r.prototype)).constructor=s,s.prototype.connect=function(){this.connection=new a(this.url,this.protocol,void 0,this.headers,this.requestOptions,this.clientConfig),this._addSocketListeners()},s.prototype._onMessage=function(e){var t=this;this._parseResponse("string"==typeof e.data?e.data:"").forEach((function(e){if(e.method&&-1!==e.method.indexOf("_subscription"))t.emit(t.DATA,e);else{var n=e.id;Array.isArray(e)&&(n=e[0].id),t.responseQueue.has(n)&&(void 0!==t.responseQueue.get(n).callback&&t.responseQueue.get(n).callback(!1,e),t.responseQueue.delete(n))}}))},s.prototype._onConnect=function(){if(this.emit(this.CONNECT),this.reconnectAttempts=0,this.reconnecting=!1,this.requestQueue.size>0){var e=this;this.requestQueue.forEach((function(t,n){e.send(t.payload,t.callback),e.requestQueue.delete(n)}))}},s.prototype._onClose=function(e){var t=this;!this.reconnectOptions.auto||[1e3,1001].includes(e.code)&&!1!==e.wasClean?(this.emit(this.CLOSE,e),this.requestQueue.size>0&&this.requestQueue.forEach((function(n,r){n.callback(o.ConnectionNotOpenError(e)),t.requestQueue.delete(r)})),this.responseQueue.size>0&&this.responseQueue.forEach((function(n,r){n.callback(o.InvalidConnection("on WS",e)),t.responseQueue.delete(r)})),this._removeSocketListeners(),this.removeAllListeners()):this.reconnect()},s.prototype._addSocketListeners=function(){this.connection.addEventListener("message",this._onMessage.bind(this)),this.connection.addEventListener("open",this._onConnect.bind(this)),this.connection.addEventListener("close",this._onClose.bind(this))},s.prototype._removeSocketListeners=function(){this.connection.removeEventListener("message",this._onMessage),this.connection.removeEventListener("open",this._onConnect),this.connection.removeEventListener("close",this._onClose)},s.prototype._parseResponse=function(e){var t=this,n=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((function(e){t.lastChunk&&(e=t.lastChunk+e);var r=null;try{r=JSON.parse(e)}catch(n){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout((function(){t.reconnectOptions.auto&&t.reconnectOptions.onTimeout?t.reconnect():(t.emit(t.ERROR,o.ConnectionTimeout(t._customTimeout)),t.requestQueue.size>0&&t.requestQueue.forEach((function(e,n){e.callback(o.ConnectionTimeout(t._customTimeout)),t.requestQueue.delete(n)})))}),t._customTimeout))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,r&&n.push(r)})),n},s.prototype.send=function(e,t){var n=e.id,r={payload:e,callback:t};if(Array.isArray(e)&&(n=e[0].id),this.connection.readyState===this.connection.CONNECTING||this.reconnecting)this.requestQueue.set(n,r);else{if(this.connection.readyState!==this.connection.OPEN)return this.requestQueue.delete(n),this.emit(this.ERROR,o.ConnectionNotOpenError()),void r.callback(o.ConnectionNotOpenError());this.responseQueue.set(n,r),this.requestQueue.delete(n);try{this.connection.send(JSON.stringify(r.payload))}catch(e){r.callback(e),this.responseQueue.delete(n)}}},s.prototype.reset=function(){this.responseQueue.clear(),this.requestQueue.clear(),this.removeAllListeners(),this._removeSocketListeners(),this._addSocketListeners()},s.prototype.disconnect=function(e,t){this._removeSocketListeners(),this.connection.close(e||1e3,t)},s.prototype.supportsSubscriptions=function(){return!0},s.prototype.reconnect=function(){var e=this;this.reconnecting=!0,this.responseQueue.size>0&&this.responseQueue.forEach((function(t,n){t.callback(o.PendingRequestsOnReconnectingError()),e.responseQueue.delete(n)})),!this.reconnectOptions.maxAttempts||this.reconnectAttempts<this.reconnectOptions.maxAttempts?setTimeout((function(){e.reconnectAttempts++,e._removeSocketListeners(),e.emit(e.RECONNECT,e.reconnectAttempts),e.connect()}),this.reconnectOptions.delay):(this.emit(this.ERROR,o.MaxAttemptsReachedOnReconnectingError()),this.reconnecting=!1,this.requestQueue.size>0&&this.requestQueue.forEach((function(t,n){t.callback(o.MaxAttemptsReachedOnReconnectingError()),e.requestQueue.delete(n)})))},e.exports=s},function(e,t,n){(function(t,r){var i="[object process]"===Object.prototype.toString.call(void 0!==t?t:0),o="undefined"!=typeof navigator&&"ReactNative"===navigator.product,a=null,s=null;if(i||o){a=function(e){return r.from(e).toString("base64")};var c=n(409);if(c.URL){var l=c.URL;s=function(e){return new l(e)}}else s=n(409).parse}else a=btoa.bind(window),s=function(e){return new URL(e)};e.exports={parseURL:s,btoa:a}}).call(this,n(13),n(2).Buffer)},function(e,t,n){var r;try{r=n(1450)}catch(e){}finally{if(r||"undefined"==typeof window||(r=window),!r)throw new Error("Could not determine global this")}var i=r.WebSocket||r.MozWebSocket,o=n(1451);function a(e,t){return t?new i(e,t):new i(e)}i&&["CONNECTING","OPEN","CLOSING","CLOSED"].forEach((function(e){Object.defineProperty(a,e,{get:function(){return i[e]}})})),e.exports={w3cwebsocket:i?a:null,version:o}},function(e,t){var n=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};e.exports=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},function(e,t,n){e.exports=n(1452).version},function(e){e.exports=JSON.parse('{"name":"websocket","description":"Websocket Client & Server Library implementing the WebSocket protocol as specified in RFC 6455.","keywords":["websocket","websockets","socket","networking","comet","push","RFC-6455","realtime","server","client"],"author":"Brian McKelvey <theturtle32@gmail.com> (https://github.com/theturtle32)","contributors":["Iñaki Baz Castillo <ibc@aliax.net> (http://dev.sipdoc.net)"],"version":"1.0.33","repository":{"type":"git","url":"https://github.com/theturtle32/WebSocket-Node.git"},"homepage":"https://github.com/theturtle32/WebSocket-Node","engines":{"node":">=4.0.0"},"dependencies":{"bufferutil":"^4.0.1","debug":"^2.2.0","es5-ext":"^0.10.50","typedarray-to-buffer":"^3.1.5","utf-8-validate":"^5.0.2","yaeti":"^0.0.6"},"devDependencies":{"buffer-equal":"^1.0.0","gulp":"^4.0.2","gulp-jshint":"^2.0.4","jshint-stylish":"^2.2.1","jshint":"^2.0.0","tape":"^4.9.1"},"config":{"verbose":false},"scripts":{"test":"tape test/unit/*.js","gulp":"gulp"},"main":"index","directories":{"lib":"./lib"},"browser":"lib/browser.js","license":"Apache-2.0"}')},function(e,t,n){var r=n(225).errors,i=n(1454).XMLHttpRequest,o=n(852),a=n(871),s=function(e,t){t=t||{},this.withCredentials=t.withCredentials||!1,this.timeout=t.timeout||0,this.headers=t.headers,this.agent=t.agent,this.connected=!1;const n=!1!==t.keepAlive;this.host=e||"http://localhost:8545",this.agent||("https"===this.host.substring(0,5)?this.httpsAgent=new a.Agent({keepAlive:n}):this.httpAgent=new o.Agent({keepAlive:n}))};s.prototype._prepareRequest=function(){var e;if("undefined"!=typeof XMLHttpRequest)e=new XMLHttpRequest;else{e=new i;var t={httpsAgent:this.httpsAgent,httpAgent:this.httpAgent,baseUrl:this.baseUrl};this.agent&&(t.httpsAgent=this.agent.https,t.httpAgent=this.agent.http,t.baseUrl=this.agent.baseUrl),e.nodejsSet(t)}return e.open("POST",this.host,!0),e.setRequestHeader("Content-Type","application/json"),e.timeout=this.timeout,e.withCredentials=this.withCredentials,this.headers&&this.headers.forEach((function(t){e.setRequestHeader(t.name,t.value)})),e},s.prototype.send=function(e,t){var n=this,i=this._prepareRequest();i.onreadystatechange=function(){if(4===i.readyState&&1!==i.timeout){var e=i.responseText,o=null;try{e=JSON.parse(e)}catch(e){o=r.InvalidResponse(i.responseText)}n.connected=!0,t(o,e)}},i.ontimeout=function(){n.connected=!1,t(r.ConnectionTimeout(this.timeout))};try{i.send(JSON.stringify(e))}catch(e){this.connected=!1,t(r.InvalidConnection(this.host))}},s.prototype.disconnect=function(){},s.prototype.supportsSubscriptions=function(){return!1},e.exports=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(1455));var r=n(927);t.XMLHttpRequestEventTarget=r.XMLHttpRequestEventTarget},function(e,t,n){"use strict";(function(e,r){var i,o=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(852),c=n(871),l=n(964),u=n(409),f=n(1456),d=n(1457),p=n(927),h=n(1458),m=n(1459),b=function(t){function n(r){void 0===r&&(r={});var i=t.call(this)||this;return i.UNSENT=n.UNSENT,i.OPENED=n.OPENED,i.HEADERS_RECEIVED=n.HEADERS_RECEIVED,i.LOADING=n.LOADING,i.DONE=n.DONE,i.onreadystatechange=null,i.readyState=n.UNSENT,i.response=null,i.responseText="",i.responseType="",i.status=0,i.statusText="",i.timeout=0,i.upload=new h.XMLHttpRequestUpload,i.responseUrl="",i.withCredentials=!1,i._method=null,i._url=null,i._sync=!1,i._headers={},i._loweredHeaders={},i._mimeOverride=null,i._request=null,i._response=null,i._responseParts=null,i._responseHeaders=null,i._aborting=null,i._error=null,i._loadedBytes=0,i._totalBytes=0,i._lengthComputable=!1,i._restrictedMethods={CONNECT:!0,TRACE:!0,TRACK:!0},i._restrictedHeaders={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,via:!0},i._privateHeaders={"set-cookie":!0,"set-cookie2":!0},i._userAgent="Mozilla/5.0 ("+l.type()+" "+l.arch()+") node.js/"+e.versions.node+" v8/"+e.versions.v8,i._anonymous=r.anon||!1,i}return o(n,t),n.prototype.open=function(e,t,r,i,o){if(void 0===r&&(r=!0),e=e.toUpperCase(),this._restrictedMethods[e])throw new n.SecurityError("HTTP method "+e+" is not allowed in XHR");var a=this._parseUrl(t,i,o);this.readyState===n.HEADERS_RECEIVED||(this.readyState,n.LOADING),this._method=e,this._url=a,this._sync=!r,this._headers={},this._loweredHeaders={},this._mimeOverride=null,this._setReadyState(n.OPENED),this._request=null,this._response=null,this.status=0,this.statusText="",this._responseParts=[],this._responseHeaders=null,this._loadedBytes=0,this._totalBytes=0,this._lengthComputable=!1},n.prototype.setRequestHeader=function(e,t){if(this.readyState!==n.OPENED)throw new n.InvalidStateError("XHR readyState must be OPENED");var r=e.toLowerCase();this._restrictedHeaders[r]||/^sec-/.test(r)||/^proxy-/.test(r)?console.warn('Refused to set unsafe header "'+e+'"'):(t=t.toString(),null!=this._loweredHeaders[r]?(e=this._loweredHeaders[r],this._headers[e]=this._headers[e]+", "+t):(this._loweredHeaders[r]=e,this._headers[e]=t))},n.prototype.send=function(e){if(this.readyState!==n.OPENED)throw new n.InvalidStateError("XHR readyState must be OPENED");if(this._request)throw new n.InvalidStateError("send() already called");switch(this._url.protocol){case"file:":return this._sendFile(e);case"http:":case"https:":return this._sendHttp(e);default:throw new n.NetworkError("Unsupported protocol "+this._url.protocol)}},n.prototype.abort=function(){null!=this._request&&(this._request.abort(),this._setError(),this._dispatchProgress("abort"),this._dispatchProgress("loadend"))},n.prototype.getResponseHeader=function(e){if(null==this._responseHeaders||null==e)return null;var t=e.toLowerCase();return this._responseHeaders.hasOwnProperty(t)?this._responseHeaders[e.toLowerCase()]:null},n.prototype.getAllResponseHeaders=function(){var e=this;return null==this._responseHeaders?"":Object.keys(this._responseHeaders).map((function(t){return t+": "+e._responseHeaders[t]})).join("\r\n")},n.prototype.overrideMimeType=function(e){if(this.readyState===n.LOADING||this.readyState===n.DONE)throw new n.InvalidStateError("overrideMimeType() not allowed in LOADING or DONE");this._mimeOverride=e.toLowerCase()},n.prototype.nodejsSet=function(e){if(this.nodejsHttpAgent=e.httpAgent||this.nodejsHttpAgent,this.nodejsHttpsAgent=e.httpsAgent||this.nodejsHttpsAgent,e.hasOwnProperty("baseUrl")){if(null!=e.baseUrl)if(!u.parse(e.baseUrl,!1,!0).protocol)throw new n.SyntaxError("baseUrl must be an absolute URL");this.nodejsBaseUrl=e.baseUrl}},n.nodejsSet=function(e){n.prototype.nodejsSet(e)},n.prototype._setReadyState=function(e){this.readyState=e,this.dispatchEvent(new f.ProgressEvent("readystatechange"))},n.prototype._sendFile=function(e){throw new Error("Protocol file: not implemented")},n.prototype._sendHttp=function(e){if(this._sync)throw new Error("Synchronous XHR processing not implemented");!e||"GET"!==this._method&&"HEAD"!==this._method?e=e||"":(console.warn("Discarding entity body for "+this._method+" requests"),e=null),this.upload._setData(e),this._finalizeHeaders(),this._sendHxxpRequest()},n.prototype._sendHxxpRequest=function(){var e=this;if(this.withCredentials){var t=n.cookieJar.getCookies(m.CookieAccessInfo(this._url.hostname,this._url.pathname,"https:"===this._url.protocol)).toValueString();this._headers.cookie=this._headers.cookie2=t}var r="http:"===this._url.protocol?[s,this.nodejsHttpAgent]:[c,this.nodejsHttpsAgent],i=r[0],o=r[1],a=i.request.bind(i)({hostname:this._url.hostname,port:+this._url.port,path:this._url.path,auth:this._url.auth,method:this._method,headers:this._headers,agent:o});this._request=a,this.timeout&&a.setTimeout(this.timeout,(function(){return e._onHttpTimeout(a)})),a.on("response",(function(t){return e._onHttpResponse(a,t)})),a.on("error",(function(t){return e._onHttpRequestError(a,t)})),this.upload._startUpload(a),this._request===a&&this._dispatchProgress("loadstart")},n.prototype._finalizeHeaders=function(){this._headers=a({},this._headers,{Connection:"keep-alive",Host:this._url.host,"User-Agent":this._userAgent},this._anonymous?{Referer:"about:blank"}:{}),this.upload._finalizeHeaders(this._headers,this._loweredHeaders)},n.prototype._onHttpResponse=function(e,t){var r=this;if(this._request===e){if(this.withCredentials&&(t.headers["set-cookie"]||t.headers["set-cookie2"])&&n.cookieJar.setCookies(t.headers["set-cookie"]||t.headers["set-cookie2"]),[301,302,303,307,308].indexOf(t.statusCode)>=0)return this._url=this._parseUrl(t.headers.location),this._method="GET",this._loweredHeaders["content-type"]&&(delete this._headers[this._loweredHeaders["content-type"]],delete this._loweredHeaders["content-type"]),null!=this._headers["Content-Type"]&&delete this._headers["Content-Type"],delete this._headers["Content-Length"],this.upload._reset(),this._finalizeHeaders(),void this._sendHxxpRequest();this._response=t,this._response.on("data",(function(e){return r._onHttpResponseData(t,e)})),this._response.on("end",(function(){return r._onHttpResponseEnd(t)})),this._response.on("close",(function(){return r._onHttpResponseClose(t)})),this.responseUrl=this._url.href.split("#")[0],this.status=t.statusCode,this.statusText=s.STATUS_CODES[this.status],this._parseResponseHeaders(t);var i=this._responseHeaders["content-length"]||"";this._totalBytes=+i,this._lengthComputable=!!i,this._setReadyState(n.HEADERS_RECEIVED)}},n.prototype._onHttpResponseData=function(e,t){this._response===e&&(this._responseParts.push(new r(t)),this._loadedBytes+=t.length,this.readyState!==n.LOADING&&this._setReadyState(n.LOADING),this._dispatchProgress("progress"))},n.prototype._onHttpResponseEnd=function(e){this._response===e&&(this._parseResponse(),this._request=null,this._response=null,this._setReadyState(n.DONE),this._dispatchProgress("load"),this._dispatchProgress("loadend"))},n.prototype._onHttpResponseClose=function(e){if(this._response===e){var t=this._request;this._setError(),t.abort(),this._setReadyState(n.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend")}},n.prototype._onHttpTimeout=function(e){this._request===e&&(this._setError(),e.abort(),this._setReadyState(n.DONE),this._dispatchProgress("timeout"),this._dispatchProgress("loadend"))},n.prototype._onHttpRequestError=function(e,t){this._request===e&&(this._setError(),e.abort(),this._setReadyState(n.DONE),this._dispatchProgress("error"),this._dispatchProgress("loadend"))},n.prototype._dispatchProgress=function(e){var t=new n.ProgressEvent(e);t.lengthComputable=this._lengthComputable,t.loaded=this._loadedBytes,t.total=this._totalBytes,this.dispatchEvent(t)},n.prototype._setError=function(){this._request=null,this._response=null,this._responseHeaders=null,this._responseParts=null},n.prototype._parseUrl=function(e,t,n){var r=null==this.nodejsBaseUrl?e:u.resolve(this.nodejsBaseUrl,e),i=u.parse(r,!1,!0);i.hash=null;var o=(i.auth||"").split(":"),a=o[0],s=o[1];return(a||s||t||n)&&(i.auth=(t||a||"")+":"+(n||s||"")),i},n.prototype._parseResponseHeaders=function(e){for(var t in this._responseHeaders={},e.headers){var n=t.toLowerCase();this._privateHeaders[n]||(this._responseHeaders[n]=e.headers[t])}null!=this._mimeOverride&&(this._responseHeaders["content-type"]=this._mimeOverride)},n.prototype._parseResponse=function(){var e=r.concat(this._responseParts);switch(this._responseParts=null,this.responseType){case"json":this.responseText=null;try{this.response=JSON.parse(e.toString("utf-8"))}catch(e){this.response=null}return;case"buffer":return this.responseText=null,void(this.response=e);case"arraybuffer":this.responseText=null;for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i<e.length;i++)n[i]=e[i];return void(this.response=t);case"text":default:try{this.responseText=e.toString(this._parseResponseEncoding())}catch(t){this.responseText=e.toString("binary")}this.response=this.responseText}},n.prototype._parseResponseEncoding=function(){return/;\s*charset=(.*)$/.exec(this._responseHeaders["content-type"]||"")[1]||"utf-8"},n.ProgressEvent=f.ProgressEvent,n.InvalidStateError=d.InvalidStateError,n.NetworkError=d.NetworkError,n.SecurityError=d.SecurityError,n.SyntaxError=d.SyntaxError,n.XMLHttpRequestUpload=h.XMLHttpRequestUpload,n.UNSENT=0,n.OPENED=1,n.HEADERS_RECEIVED=2,n.LOADING=3,n.DONE=4,n.cookieJar=m.CookieJar(),n}(p.XMLHttpRequestEventTarget);t.XMLHttpRequest=b,b.prototype.nodejsHttpAgent=s.globalAgent,b.prototype.nodejsHttpsAgent=c.globalAgent,b.prototype.nodejsBaseUrl=null}).call(this,n(13),n(2).Buffer)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){this.type=e,this.bubbles=!1,this.cancelable=!1,this.loaded=0,this.lengthComputable=!1,this.total=0};t.ProgressEvent=r},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);t.SecurityError=o;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);t.InvalidStateError=a;var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);t.NetworkError=s;var c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(Error);t.SyntaxError=c},function(e,t,n){"use strict";(function(e){var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(t){function n(){var e=t.call(this)||this;return e._contentType=null,e._body=null,e._reset(),e}return i(n,t),n.prototype._reset=function(){this._contentType=null,this._body=null},n.prototype._setData=function(t){if(null!=t)if("string"==typeof t)0!==t.length&&(this._contentType="text/plain;charset=UTF-8"),this._body=new e(t,"utf-8");else if(e.isBuffer(t))this._body=t;else if(t instanceof ArrayBuffer){for(var n=new e(t.byteLength),r=new Uint8Array(t),i=0;i<t.byteLength;i++)n[i]=r[i];this._body=n}else{if(!(t.buffer&&t.buffer instanceof ArrayBuffer))throw new Error("Unsupported send() data "+t);n=new e(t.byteLength);var o=t.byteOffset;for(r=new Uint8Array(t.buffer),i=0;i<t.byteLength;i++)n[i]=r[i+o];this._body=n}},n.prototype._finalizeHeaders=function(e,t){this._contentType&&!t["content-type"]&&(e["Content-Type"]=this._contentType),this._body&&(e["Content-Length"]=this._body.length.toString())},n.prototype._startUpload=function(e){this._body&&e.write(this._body),e.end()},n}(n(927).XMLHttpRequestEventTarget);t.XMLHttpRequestUpload=o}).call(this,n(2).Buffer)},function(e,t){!function(){"use strict";function e(t,n,r,i){return this instanceof e?(this.domain=t||void 0,this.path=n||"/",this.secure=!!r,this.script=!!i,this):new e(t,n,r,i)}function n(e,t,r){return e instanceof n?e:this instanceof n?(this.name=null,this.value=null,this.expiration_date=1/0,this.path=String(r||"/"),this.explicit_path=!1,this.domain=t||null,this.explicit_domain=!1,this.secure=!1,this.noscript=!1,e&&this.parse(e,t,r),this):new n(e,t,r)}e.All=Object.freeze(Object.create(null)),t.CookieAccessInfo=e,t.Cookie=n,n.prototype.toString=function(){var e=[this.name+"="+this.value];return this.expiration_date!==1/0&&e.push("expires="+new Date(this.expiration_date).toGMTString()),this.domain&&e.push("domain="+this.domain),this.path&&e.push("path="+this.path),this.secure&&e.push("secure"),this.noscript&&e.push("httponly"),e.join("; ")},n.prototype.toValueString=function(){return this.name+"="+this.value};var r=/[:](?=\s*[a-zA-Z0-9_\-]+\s*[=])/g;function i(){var e,t;return this instanceof i?(e=Object.create(null),this.setCookie=function(r,i,o){var a,s;if(a=(r=new n(r,i,o)).expiration_date<=Date.now(),void 0!==e[r.name]){for(t=e[r.name],s=0;s<t.length;s+=1)if(t[s].collidesWith(r))return a?(t.splice(s,1),0===t.length&&delete e[r.name],!1):(t[s]=r,r);return!a&&(t.push(r),r)}return!a&&(e[r.name]=[r],e[r.name])},this.getCookie=function(n,r){var i,o;if(t=e[n])for(o=0;o<t.length;o+=1)if((i=t[o]).expiration_date<=Date.now())0===t.length&&delete e[i.name];else if(i.matches(r))return i},this.getCookies=function(t){var n,r,i=[];for(n in e)(r=this.getCookie(n,t))&&i.push(r);return i.toString=function(){return i.join(":")},i.toValueString=function(){return i.map((function(e){return e.toValueString()})).join(";")},i},this):new i}n.prototype.parse=function(e,t,r){if(this instanceof n){var i,o=e.split(";").filter((function(e){return!!e})),a=o[0].match(/([^=]+)=([\s\S]*)/);if(!a)return void console.warn("Invalid cookie header encountered. Header: '"+e+"'");var s=a[1],c=a[2];if("string"!=typeof s||0===s.length||"string"!=typeof c)return void console.warn("Unable to extract values from cookie header. Cookie: '"+e+"'");for(this.name=s,this.value=c,i=1;i<o.length;i+=1)switch(s=(a=o[i].match(/([^=]+)(?:=([\s\S]*))?/))[1].trim().toLowerCase(),c=a[2],s){case"httponly":this.noscript=!0;break;case"expires":this.expiration_date=c?Number(Date.parse(c)):1/0;break;case"path":this.path=c?c.trim():"",this.explicit_path=!0;break;case"domain":this.domain=c?c.trim():"",this.explicit_domain=!!this.domain;break;case"secure":this.secure=!0}return this.explicit_path||(this.path=r||"/"),this.explicit_domain||(this.domain=t),this}return(new n).parse(e,t,r)},n.prototype.matches=function(t){return t===e.All||!(this.noscript&&t.script||this.secure&&!t.secure||!this.collidesWith(t))},n.prototype.collidesWith=function(e){if(this.path&&!e.path||this.domain&&!e.domain)return!1;if(this.path&&0!==e.path.indexOf(this.path))return!1;if(this.explicit_path&&0!==e.path.indexOf(this.path))return!1;var t=e.domain&&e.domain.replace(/^[\.]/,""),n=this.domain&&this.domain.replace(/^[\.]/,"");if(n===t)return!0;if(n){if(!this.explicit_domain)return!1;var r=t.indexOf(n);return-1!==r&&r===t.length-n.length}return!0},t.CookieJar=i,i.prototype.setCookies=function(e,t,i){var o,a,s=[];for(e=(e=Array.isArray(e)?e:e.split(r)).map((function(e){return new n(e,t,i)})),o=0;o<e.length;o+=1)a=e[o],this.setCookie(a,t,i)&&s.push(a);return s}}()},function(e,t,n){"use strict";var r=n(391),i=n(225).errors,o=n(1461),a=function(e,t){var n=this;this.responseCallbacks={},this.notificationCallbacks=[],this.path=e,this.connected=!1,this.connection=t.connect({path:this.path}),this.addDefaultEvents();var i=function(e){var t=null;r.isArray(e)?e.forEach((function(e){n.responseCallbacks[e.id]&&(t=e.id)})):t=e.id,t||-1===e.method.indexOf("_subscription")?n.responseCallbacks[t]&&(n.responseCallbacks[t](null,e),delete n.responseCallbacks[t]):n.notificationCallbacks.forEach((function(t){r.isFunction(t)&&t(e)}))};"Socket"===t.constructor.name?o(this.connection).done(i):this.connection.on("data",(function(e){n._parseResponse(e.toString()).forEach(i)}))};a.prototype.addDefaultEvents=function(){var e=this;this.connection.on("connect",(function(){e.connected=!0})),this.connection.on("close",(function(){e.connected=!1})),this.connection.on("error",(function(){e._timeout()})),this.connection.on("end",(function(){e._timeout()})),this.connection.on("timeout",(function(){e._timeout()}))},a.prototype._parseResponse=function(e){var t=this,n=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach((function(e){t.lastChunk&&(e=t.lastChunk+e);var r=null;try{r=JSON.parse(e)}catch(n){return t.lastChunk=e,clearTimeout(t.lastChunkTimeout),void(t.lastChunkTimeout=setTimeout((function(){throw t._timeout(),i.InvalidResponse(e)}),15e3))}clearTimeout(t.lastChunkTimeout),t.lastChunk=null,r&&n.push(r)})),n},a.prototype._addResponseCallback=function(e,t){var n=e.id||e[0].id,r=e.method||e[0].method;this.responseCallbacks[n]=t,this.responseCallbacks[n].method=r},a.prototype._timeout=function(){for(var e in this.responseCallbacks)this.responseCallbacks.hasOwnProperty(e)&&(this.responseCallbacks[e](i.InvalidConnection("on IPC")),delete this.responseCallbacks[e])},a.prototype.reconnect=function(){this.connection.connect({path:this.path})},a.prototype.send=function(e,t){this.connection.writable||this.connection.connect({path:this.path}),this.connection.write(JSON.stringify(e)),this._addResponseCallback(e,t)},a.prototype.on=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");switch(e){case"data":this.notificationCallbacks.push(t);break;default:this.connection.on(e,t)}},a.prototype.once=function(e,t){if("function"!=typeof t)throw new Error("The second parameter callback must be a function.");this.connection.once(e,t)},a.prototype.removeListener=function(e,t){var n=this;switch(e){case"data":this.notificationCallbacks.forEach((function(e,r){e===t&&n.notificationCallbacks.splice(r,1)}));break;default:this.connection.removeListener(e,t)}},a.prototype.removeAllListeners=function(e){switch(e){case"data":this.notificationCallbacks=[];break;default:this.connection.removeAllListeners(e)}},a.prototype.reset=function(){this._timeout(),this.notificationCallbacks=[],this.connection.removeAllListeners("error"),this.connection.removeAllListeners("end"),this.connection.removeAllListeners("timeout"),this.addDefaultEvents()},a.prototype.supportsSubscriptions=function(){return!0},e.exports=a},function(e,t,n){
351 /*!
352  * v2.1.4-104-gc868b3a
353  * 
354  */
355 var r;"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=7)}([function(e,t,n){"use strict";n.d(t,"j",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"h",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"k",(function(){return l})),n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return f})),n.d(t,"i",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return h}));var r=n(1),i=l((function(e,t){var n=t.length;return l((function(r){for(var i=0;i<r.length;i++)t[n+i]=r[i];return t.length=n+r.length,e.apply(this,t)}))}));function o(e,t){return function(){return e.call(this,t.apply(this,arguments))}}function a(e){return function(t){return t[e]}}l((function(e){var t=Object(r.c)(e);function n(e,t){return[c(e,t)]}return l((function(e){return Object(r.f)(n,e,t)[0]}))}));var s=l((function(e){return l((function(t){for(var n,r=0;r<a("length")(e);r++)if(n=c(t,e[r]))return n}))}));function c(e,t){return t.apply(void 0,e)}function l(e){var t=e.length-1,n=Array.prototype.slice;if(0===t)return function(){return e.call(this,n.call(arguments))};if(1===t)return function(){return e.call(this,arguments[0],n.call(arguments,1))};var r=Array(e.length);return function(){for(var i=0;i<t;i++)r[i]=arguments[i];return r[t]=n.call(arguments,t),e.apply(this,r)}}function u(e){return function(t,n){return e(n,t)}}function f(e,t){return function(n){return e(n)&&t(n)}}function d(){}function p(){return!0}function h(e){return function(){return e}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"g",(function(){return o})),n.d(t,"l",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"m",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"k",(function(){return m})),n.d(t,"e",(function(){return b}));var r=n(0);function i(e,t){return[e,t]}var o=Object(r.c)(0),a=Object(r.c)(1);function s(e){return m(e.reduce(Object(r.e)(i),null))}var c=Object(r.k)(s);function l(e){return f((function(e,t){return e.unshift(t),e}),[],e)}function u(e,t){return t?i(e(o(t)),u(e,a(t))):null}function f(e,t,n){return n?e(f(e,t,a(n)),o(n)):t}function d(e,t,n){return function e(n,r){return n?t(o(n))?(r(o(n)),a(n)):i(o(n),e(a(n),r)):null}(e,n||r.i)}function p(e,t){return!t||e(o(t))&&p(e,a(t))}function h(e,t){e&&(o(e).apply(null,t),h(a(e),t))}function m(e){return function e(t,n){return t?e(a(t),i(o(t),n)):n}(e,null)}function b(e,t){return t&&(e(o(t))?o(t):b(e,a(t)))}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(1),i=n(0);function o(e,t){return t&&t.constructor===e}var a=Object(i.c)("length"),s=Object(i.j)(o,String);function c(e){return void 0!==e}function l(e,t){return t instanceof Object&&Object(r.a)((function(e){return e in t}),e)}},function(e,t,n){"use strict";n.d(t,"f",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"m",(function(){return d})),n.d(t,"n",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"j",(function(){return m})),n.d(t,"l",(function(){return b})),n.d(t,"k",(function(){return y})),n.d(t,"o",(function(){return g}));var r=1,i=r++,o=r++,a=r++,s=r++,c="fail",l=r++,u=r++,f="start",d="data",p="end",h=r++,m=r++,b=r++,y=r++;function g(e,t,n){try{var r=JSON.parse(t)}catch(e){}return{statusCode:e,body:t,jsonBody:r,thrown:n}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return a}));var r=n(0);function i(e,t){return{key:e,node:t}}var o=Object(r.c)("key"),a=Object(r.c)("node")},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),i=n(0),o=n(2),a=n(8),s=n(9);function c(e){var t=Object(r.h)("resume","pause","pipe"),n=Object(i.j)(o.b,t);return e?n(e)||Object(o.d)(e)?Object(a.a)(s.a,e):Object(a.a)(s.a,e.url,e.method,e.body,e.headers,e.withCredentials,e.cached):Object(s.a)()}c.drop=function(){return c.drop}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return s}));var r=n(3),i=n(4),o=n(2),a=n(1),s={};function c(e){var t=e(r.f).emit,n=e(r.d).emit,c=e(r.i).emit,l=e(r.h).emit;function u(e,t,n){Object(i.c)(Object(a.g)(e))[t]=n}function f(e,n,r){e&&u(e,n,r);var o=Object(a.d)(Object(i.b)(n,r),e);return t(o),o}var d={};return d[r.l]=function(e,t){if(!e)return c(t),f(e,s,t);var n=function(e,t){var n=Object(i.c)(Object(a.g)(e));return Object(o.c)(Array,n)?f(e,Object(o.e)(n),t):e}(e,t),r=Object(a.l)(n),l=Object(i.a)(Object(a.g)(n));return u(r,l,t),Object(a.d)(Object(i.b)(l,t),r)},d[r.k]=function(e){return n(e),Object(a.l)(e)||l(Object(i.c)(Object(a.g)(e)))},d[r.j]=f,d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.default=r.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e,t,n,i,o,a,s){return o=o?JSON.parse(JSON.stringify(o)):{},i?(Object(r.d)(i)||(i=JSON.stringify(i),o["Content-Type"]=o["Content-Type"]||"application/json"),o["Content-Length"]=o["Content-Length"]||i.length):i=null,e(n||"GET",function(e,t){return!1===t&&(-1===e.indexOf("?")?e+="?":e+="&",e+="_="+(new Date).getTime()),e}(t,s),i,o,a||!1)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(10),i=n(12),o=n(6),a=n(13),s=n(14),c=n(16),l=n(17),u=n(18);function f(e,t,n,f,d){var p=Object(r.a)();return t&&Object(u.b)(p,Object(u.a)(),e,t,n,f,d),Object(l.a)(p),Object(i.a)(p,Object(o.b)(p)),Object(a.a)(p,s.a),Object(c.a)(p,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(11),i=n(0);function o(){var e={},t=o("newListener"),n=o("removeListener");function o(i){return e[i]=Object(r.a)(i,t,n),e[i]}function a(t){return e[t]||o(t)}return["emit","on","un"].forEach((function(e){a[e]=Object(i.k)((function(t,n){Object(i.b)(n,a(t)[e])}))})),a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),i=n(2),o=n(0);function a(e,t,n){var a,s;function c(e){return function(t){return t.id===e}}return{on:function(n,i){var o={listener:n,id:i||n};return t&&t.emit(e,n,o.id),a=Object(r.d)(o,a),s=Object(r.d)(n,s),this},emit:function(){Object(r.b)(s,arguments)},un:function(t){var i;a=Object(r.m)(a,c(t),(function(e){i=e})),i&&(s=Object(r.m)(s,(function(e){return e===i.listener})),n&&n.emit(e,i.listener,i.id))},listeners:function(){return s},hasListener:function(e){var t=e?c(e):o.a;return Object(i.a)(Object(r.e)(t,a))}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),i=n(3),o=n(1);function a(e,t){var n,a={};function s(e){return function(t){n=e(n,t)}}for(var c in t)e(c).on(s(t[c]),a);e(i.g).on((function(e){var t=Object(o.g)(n),i=Object(r.a)(t),a=Object(o.l)(n);a&&(Object(r.c)(Object(o.g)(a))[i]=e)})),e(i.e).on((function(){var e=Object(o.g)(n),t=Object(r.a)(e),i=Object(o.l)(n);i&&delete Object(r.c)(Object(o.g)(i))[t]})),e(i.a).on((function(){for(var n in t)e(n).un(a)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),i=n(1),o=n(4);function a(e,t){var n={node:e(r.d),path:e(r.f)};function a(t,n,r){var a=e(t).emit;n.on((function(e){var t=r(e);!1!==t&&function(e,t,n){var r=Object(i.k)(n);e(t,Object(i.i)(Object(i.l)(Object(i.j)(o.a,r))),Object(i.i)(Object(i.j)(o.c,r)))}(a,Object(o.c)(t),e)}),t),e("removeListener").on((function(r){r===t&&(e(r).listeners()||n.un(t))}))}e("newListener").on((function(e){var r=/(node|path):(.*)/.exec(e);if(r){var i=n[r[1]];i.hasListener(e)||a(e,i,t(r[2]))}}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(0),i=n(1),o=n(4),a=n(2),s=n(6),c=n(15),l=Object(c.a)((function(e,t,n,c,l){var u=Object(r.d)(o.a,i.g),f=Object(r.d)(o.c,i.g);function d(e,t){return t[1]?Object(r.g)(e,i.g):e}function p(e){return e===r.a?r.a:Object(r.g)((function(e){return u(e)!==s.a}),Object(r.d)(e,i.l))}function h(){return function(e){return u(e)===s.a}}function m(e,t,n,r,o){var s=e(n);if(s){var c=function(e,t,n){return Object(i.f)((function(e,t){return t(e,n)}),t,e)}(t,r,s);return o(n.substr(Object(a.e)(s[0])),c)}}function b(e,t){return Object(r.j)(m,e,t)}var y=Object(r.h)(b(e,Object(i.h)(d,(function(e,t){var n=t[3];if(!n)return e;var o=Object(r.j)(a.b,Object(i.c)(n.split(/\W+/))),s=Object(r.d)(o,f);return Object(r.g)(s,e)}),(function(e,t){var n=t[2],i=n&&"*"!==n?function(e){return String(u(e))===n}:r.a;return Object(r.g)(i,e)}),p)),b(t,Object(i.h)((function(e){if(e===r.a)return r.a;var t=h(),n=e,i=p((function(e){return o(e)})),o=Object(r.h)(t,n,i);return o}))),b(n,Object(i.h)()),b(c,Object(i.h)(d,h)),b(l,Object(i.h)((function(e){return function(t){var n=e(t);return!0===n?Object(i.g)(t):n}}))),(function(e){throw Error('"'+e+'" could not be tokenised')}));function g(e,t){return t}function v(e,t){return y(e,t,e?v:g)}return function(e){try{return v(e,r.a)}catch(t){throw Error('Could not compile "'+e+'" because '+t.message)}}}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r,i,o,a,s,c,l,u,f,d,p,h=n(0),m=(r=Object(h.k)((function(e){return e.unshift(/^/),(t=RegExp(e.map(Object(h.c)("source")).join(""))).exec.bind(t);var t})),a=r(i=/(\$?)/,/([\w-_]+|\*)/,o=/(?:{([\w ]*?)})?/),s=r(i,/\["([^"]+)"\]/,o),c=r(i,/\[(\d+|\*)\]/,o),l=r(i,/()/,/{([\w ]*?)}/),u=r(/\.\./),f=r(/\./),d=r(i,/!/),p=r(/$/),function(e){return e(Object(h.h)(a,s,c,l),u,f,d,p)})},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(3),i=n(0),o=n(2),a=n(5);function s(e,t){var n,s=/^(node|path):./,c=e(r.h),l=e(r.e).emit,u=e(r.g).emit,f=Object(i.k)((function(t,r){if(n[t])Object(i.b)(r,n[t]);else{var o=e(t),a=r[0];s.test(t)?d(o,h(a)):o.on(a)}return n}));function d(e,t,r){r=r||t;var o=p(t);return e.on((function(){var t=!1;n.forget=function(){t=!0},Object(i.b)(arguments,o),delete n.forget,t&&e.un(r)}),r),n}function p(e){return function(){try{return e.apply(n,arguments)}catch(e){setTimeout((function(){throw new Error(e.message)}))}}}function h(e){return function(){var t=e.apply(this,arguments);Object(o.a)(t)&&(t===a.a.drop?l():u(t))}}function m(t,n,r){var i;i="node"===t?h(r):r,d(function(t,n){return e(t+":"+n)}(t,n),i,r)}function b(e,t,r){return Object(o.d)(t)?m(e,t,r):function(e,t){for(var n in t)m(e,n,t[n])}(e,t),n}return e(r.i).on((function(e){n.root=Object(i.f)(e)})),e(r.c).on((function(e,t){n.header=function(e){return e?t[e]:t}})),n={on:f,addListener:f,removeListener:function(t,r,i){if("done"===t)c.un(r);else if("node"===t||"path"===t)e.un(t+":"+r,i);else{var o=r;e(t).un(o)}return n},emit:e.emit,node:Object(i.j)(b,"node"),path:Object(i.j)(b,"path"),done:Object(i.j)(d,c),start:Object(i.j)((function(t,r){return e(t).on(p(r),r),n}),r.c),fail:e(r.b).on,abort:e(r.a).emit,header:i.i,root:i.i,source:t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3);function i(e){var t,n,i,o,a=e(r.j).emit,s=e(r.l).emit,c=e(r.k).emit,l=e(r.b).emit,u=/[\\"\n]/g,f=0,d=f++,p=f++,h=f++,m=f++,b=f++,y=f++,g=f++,v=f++,w=f++,_=f++,k=f++,x=f++,S=f++,O=f++,E=f++,T=f++,A=f++,M=f++,I=f++,P=f++,C=65536,j="",D=!1,R=!1,N=d,B=[],L=null,U=0,F=0,q=0,z=0,V=1;function H(e){void 0!==o&&(s(o),c(),o=void 0),t=Error(e+"\nLn: "+V+"\nCol: "+z+"\nChr: "+n),l(Object(r.o)(void 0,void 0,t))}function $(e){return"\r"===e||"\n"===e||" "===e||"\t"===e}e(r.m).on((function(e){if(!t){if(R)return H("Cannot write after close");var r,l=0;for(n=e[0];n&&(l>0&&(i=n),n=e[l++]);)switch(q++,"\n"===n?(V++,z=0):z++,N){case d:if("{"===n)N=h;else if("["===n)N=b;else if(!$(n))return H("Non-whitespace before {[.");continue;case v:case h:if($(n))continue;if(N===v)B.push(w);else{if("}"===n){s({}),c(),N=B.pop()||p;continue}B.push(m)}if('"'!==n)return H('Malformed object key should start with " ');N=g;continue;case w:case m:if($(n))continue;if(":"===n)N===m?(B.push(m),void 0!==o&&(s({}),a(o),o=void 0),F++):void 0!==o&&(a(o),o=void 0),N=p;else if("}"===n)void 0!==o&&(s(o),c(),o=void 0),c(),F--,N=B.pop()||p;else{if(","!==n)return H("Bad object");N===m&&B.push(m),void 0!==o&&(s(o),c(),o=void 0),N=v}continue;case b:case p:if($(n))continue;if(N===b){if(s([]),F++,N=p,"]"===n){c(),F--,N=B.pop()||p;continue}B.push(y)}if('"'===n)N=g;else if("{"===n)N=h;else if("["===n)N=b;else if("t"===n)N=_;else if("f"===n)N=S;else if("n"===n)N=A;else if("-"===n)j+=n;else if("0"===n)j+=n,N=20;else{if(-1==="123456789".indexOf(n))return H("Bad value");j+=n,N=20}continue;case y:if(","===n)B.push(y),void 0!==o&&(s(o),c(),o=void 0),N=p;else{if("]"!==n){if($(n))continue;return H("Bad array")}void 0!==o&&(s(o),c(),o=void 0),c(),F--,N=B.pop()||p}continue;case g:void 0===o&&(o="");var f=l-1;e:for(;;){for(;U>0;)if(L+=n,n=e.charAt(l++),4===U?(o+=String.fromCharCode(parseInt(L,16)),U=0,f=l-1):U++,!n)break e;if('"'===n&&!D){N=B.pop()||p,o+=e.substring(f,l-1);break}if(!("\\"!==n||D||(D=!0,o+=e.substring(f,l-1),n=e.charAt(l++))))break;if(D){if(D=!1,"n"===n?o+="\n":"r"===n?o+="\r":"t"===n?o+="\t":"f"===n?o+="\f":"b"===n?o+="\b":"u"===n?(U=1,L=""):o+=n,n=e.charAt(l++),f=l-1,n)continue;break}u.lastIndex=l;var K=u.exec(e);if(!K){l=e.length+1,o+=e.substring(f,l-1);break}if(l=K.index+1,!(n=e.charAt(K.index))){o+=e.substring(f,l-1);break}}continue;case _:if(!n)continue;if("r"!==n)return H("Invalid true started with t"+n);N=k;continue;case k:if(!n)continue;if("u"!==n)return H("Invalid true started with tr"+n);N=x;continue;case x:if(!n)continue;if("e"!==n)return H("Invalid true started with tru"+n);s(!0),c(),N=B.pop()||p;continue;case S:if(!n)continue;if("a"!==n)return H("Invalid false started with f"+n);N=O;continue;case O:if(!n)continue;if("l"!==n)return H("Invalid false started with fa"+n);N=E;continue;case E:if(!n)continue;if("s"!==n)return H("Invalid false started with fal"+n);N=T;continue;case T:if(!n)continue;if("e"!==n)return H("Invalid false started with fals"+n);s(!1),c(),N=B.pop()||p;continue;case A:if(!n)continue;if("u"!==n)return H("Invalid null started with n"+n);N=M;continue;case M:if(!n)continue;if("l"!==n)return H("Invalid null started with nu"+n);N=I;continue;case I:if(!n)continue;if("l"!==n)return H("Invalid null started with nul"+n);s(null),c(),N=B.pop()||p;continue;case P:if("."!==n)return H("Leading zero not followed by .");j+=n,N=20;continue;case 20:if(-1!=="0123456789".indexOf(n))j+=n;else if("."===n){if(-1!==j.indexOf("."))return H("Invalid number has two dots");j+=n}else if("e"===n||"E"===n){if(-1!==j.indexOf("e")||-1!==j.indexOf("E"))return H("Invalid number has two exponential");j+=n}else if("+"===n||"-"===n){if("e"!==i&&"E"!==i)return H("Invalid symbol in number");j+=n}else j&&(s(parseFloat(j)),c(),j=""),l--,N=B.pop()||p;continue;default:return H("Unknown state: "+N)}q>=C&&(r=0,void 0!==o&&o.length>65536&&(H("Max buffer length exceeded: textNode"),r=Math.max(r,o.length)),j.length>65536&&(H("Max buffer length exceeded: numberNode"),r=Math.max(r,j.length)),C=65536-r+q)}})),e(r.n).on((function(){if(N===d)return s({}),c(),void(R=!0);N===p&&0===F||H("Unexpected end"),void 0!==o&&(s(o),c(),o=void 0),R=!0}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(19),i=n(3),o=n(2),a=n(20),s=n(0);function c(){return new XMLHttpRequest}function l(e,t,n,c,l,u,f){var d=e(i.m).emit,p=e(i.b).emit,h=0,m=!0;function b(){if("2"===String(t.status)[0]){var e=t.responseText,n=(" "+e.substr(h)).substr(1);n&&d(n),h=Object(o.e)(e)}}function y(t){try{m&&e(i.c).emit(t.status,Object(a.a)(t.getAllResponseHeaders())),m=!1}catch(e){}}e(i.a).on((function(){t.onreadystatechange=null,t.abort()})),"onprogress"in t&&(t.onprogress=b),t.onreadystatechange=function(){switch(t.readyState){case 2:case 3:return y(t);case 4:y(t),"2"===String(t.status)[0]?(b(),e(i.n).emit()):p(Object(i.o)(t.status,t.responseText))}};try{for(var g in t.open(n,c,!0),u)t.setRequestHeader(g,u[g]);Object(r.a)(window.location,Object(r.b)(c))||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=f,t.send(l)}catch(e){window.setTimeout(Object(s.j)(p,Object(i.o)(void 0,void 0,e)),0)}}},function(e,t,n){"use strict";function r(e,t){function n(t){return String(t.port||{"http:":80,"https:":443}[t.protocol||e.protocol])}return!!(t.protocol&&t.protocol!==e.protocol||t.host&&t.host!==e.host||t.host&&n(t)!==n(e))}function i(e){var t=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e)||[];return{protocol:t[1]||"",host:t[2]||"",port:t[3]||""}}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}))},function(e,t,n){"use strict";function r(e){var t={};return e&&e.split("\r\n").forEach((function(e){var n=e.indexOf(": ");t[e.substring(0,n)]=e.substring(n+2)})),t}n.d(t,"a",(function(){return r}))}]).default},e.exports=r()},function(e,t,n){"use strict";var r=n(225).formatters,i=n(1029),o=n(399);e.exports=function(e){var t=function(t){var n;return t.property?(e[t.property]||(e[t.property]={}),n=e[t.property]):n=e,t.methods&&t.methods.forEach((function(t){t instanceof i||(t=new i(t)),t.attachToObject(n),t.setRequestManager(e._requestManager)})),e};return t.formatters=r,t.utils=o,t.Method=i,t}},function(e,t,n){"use strict";var r=n(391),i=n(225).errors,o=n(926),a=n(225).formatters;function s(e){o.call(this),this.id=null,this.callback=r.identity,this.arguments=null,this.lastBlock=null,this.options={subscription:e.subscription,type:e.type,requestManager:e.requestManager}}s.prototype=Object.create(o.prototype),s.prototype.constructor=s,s.prototype._extractCallback=function(e){if(r.isFunction(e[e.length-1]))return e.pop()},s.prototype._validateArgs=function(e){var t=this.options.subscription;if(t||(t={}),t.params||(t.params=0),e.length!==t.params)throw i.InvalidNumberOfParams(e.length,t.params,t.subscriptionName)},s.prototype._formatInput=function(e){var t=this.options.subscription;return t&&t.inputFormatter?t.inputFormatter.map((function(t,n){return t?t(e[n]):e[n]})):e},s.prototype._formatOutput=function(e){var t=this.options.subscription;return t&&t.outputFormatter&&e?t.outputFormatter(e):e},s.prototype._toPayload=function(e){var t=[];if(this.callback=this._extractCallback(e)||r.identity,this.subscriptionMethod||(this.subscriptionMethod=e.shift(),this.options.subscription.subscriptionName&&(this.subscriptionMethod=this.options.subscription.subscriptionName)),this.arguments||(this.arguments=this._formatInput(e),this._validateArgs(this.arguments),e=[]),t.push(this.subscriptionMethod),t=t.concat(this.arguments),e.length)throw new Error("Only a callback is allowed as parameter on an already instantiated subscription.");return{method:this.options.type+"_subscribe",params:t}},s.prototype.unsubscribe=function(e){this.options.requestManager.removeSubscription(this.id,e),this.id=null,this.lastBlock=null,this.removeAllListeners()},s.prototype.subscribe=function(){var e=this,t=Array.prototype.slice.call(arguments),n=this._toPayload(t);if(!n)return this;if(!this.options.requestManager.provider)return setTimeout((function(){var t=new Error("No provider set.");e.callback(t,null,e),e.emit("error",t)}),0),this;if(!this.options.requestManager.provider.on)return setTimeout((function(){var t=new Error("The current provider doesn't support subscriptions: "+e.options.requestManager.provider.constructor.name);e.callback(t,null,e),e.emit("error",t)}),0),this;if(this.lastBlock&&r.isObject(this.options.params)&&(n.params[1]=this.options.params,n.params[1].fromBlock=a.inputBlockNumberFormatter(this.lastBlock+1)),this.id&&this.unsubscribe(),this.options.params=n.params[1],"logs"===n.params[0]&&r.isObject(n.params[1])&&n.params[1].hasOwnProperty("fromBlock")&&isFinite(n.params[1].fromBlock)){var i=Object.assign({},n.params[1]);this.options.requestManager.send({method:"eth_getLogs",params:[i]},(function(t,n){t?setTimeout((function(){e.callback(t,null,e),e.emit("error",t)}),0):n.forEach((function(t){var n=e._formatOutput(t);e.callback(null,n,e),e.emit("data",n)}))}))}return"object"==typeof n.params[1]&&delete n.params[1].fromBlock,this.options.requestManager.send(n,(function(t,i){!t&&i?(e.id=i,e.method=n.params[0],e.emit("connected",i),e.options.requestManager.addSubscription(e,(function(t,n){t?(e.callback(t,!1,e),e.emit("error",t)):(r.isArray(n)||(n=[n]),n.forEach((function(t){var n=e._formatOutput(t);if(e.lastBlock=r.isObject(n)?n.blockNumber:null,r.isFunction(e.options.subscription.subscriptionHandler))return e.options.subscription.subscriptionHandler.call(e,n);e.emit("data",n),e.callback(null,n,e)})))}))):setTimeout((function(){e.callback(t,!1,e),e.emit("error",t)}),0)})),this},s.prototype.resubscribe=function(){this.options.requestManager.removeSubscription(this.id),this.id=null,this.subscribe(this.callback)},e.exports=s},function(e,t,n){var r=n(2).Buffer,i=n(391),o=n(399),a=n(1041).AbiCoder,s=n(1041).ParamType,c=new a((function(e,t){return!e.match(/^u?int/)||i.isArray(t)||i.isObject(t)&&"BN"===t.constructor.name?t:t.toString()}));function l(){}var u=function(){};u.prototype.encodeFunctionSignature=function(e){return i.isObject(e)&&(e=o._jsonInterfaceMethodToString(e)),o.sha3(e).slice(0,10)},u.prototype.encodeEventSignature=function(e){return i.isObject(e)&&(e=o._jsonInterfaceMethodToString(e)),o.sha3(e)},u.prototype.encodeParameter=function(e,t){return this.encodeParameters([e],[t])},u.prototype.encodeParameters=function(e,t){var n=this;return e=n.mapTypes(e),t=t.map((function(t,r){let i=e[r];if("object"==typeof i&&i.type&&(i=i.type),t=n.formatParam(i,t),"string"==typeof i&&i.includes("tuple")){const e=c._getCoder(s.from(i)),r=(e,t)=>{if("array"===e.name)return t.map(t=>r(c._getCoder(s.from(e.type.replace("[]",""))),t));e.coders.forEach((e,i)=>{"tuple"===e.name?r(e,t[i]):t[i]=n.formatParam(e.name,t[i])})};r(e,t)}return t})),c.encode(e,t)},u.prototype.mapTypes=function(e){var t=this,n=[];return e.forEach((function(e){if("object"==typeof e&&"function"===e.type&&(e.type="bytes24"),t.isSimplifiedStructFormat(e)){var r=Object.keys(e)[0];n.push(Object.assign(t.mapStructNameAndType(r),{components:t.mapStructToCoderFormat(e[r])}))}else n.push(e)})),n},u.prototype.isSimplifiedStructFormat=function(e){return"object"==typeof e&&void 0===e.components&&void 0===e.name},u.prototype.mapStructNameAndType=function(e){var t="tuple";return e.indexOf("[]")>-1&&(t="tuple[]",e=e.slice(0,-2)),{type:t,name:e}},u.prototype.mapStructToCoderFormat=function(e){var t=this,n=[];return Object.keys(e).forEach((function(r){"object"!=typeof e[r]?n.push({name:r,type:e[r]}):n.push(Object.assign(t.mapStructNameAndType(r),{components:t.mapStructToCoderFormat(e[r])}))})),n},u.prototype.formatParam=function(e,t){const n=new RegExp(/^bytes([0-9]*)$/),i=new RegExp(/^bytes([0-9]*)\[\]$/),a=new RegExp(/^(u?int)([0-9]*)$/),s=new RegExp(/^(u?int)([0-9]*)\[\]$/);if(o.isBN(t)||o.isBigNumber(t))return t.toString(10);if(e.match(i)||e.match(s))return t.map(t=>this.formatParam(e.replace("[]",""),t));let c=e.match(a);if(c){let e=parseInt(c[2]||"256");e/8<t.length&&(t=o.leftPad(t,e))}if(c=e.match(n),c){r.isBuffer(t)&&(t=o.toHex(t));let e=parseInt(c[1]);if(e){let n=2*e;"0x"===t.substring(0,2)&&(n+=2),t.length<n&&(t=o.rightPad(t,2*e))}t.length%2==1&&(t="0x0"+t.substring(2))}return t},u.prototype.encodeFunctionCall=function(e,t){return this.encodeFunctionSignature(e)+this.encodeParameters(e.inputs,t).replace("0x","")},u.prototype.decodeParameter=function(e,t){return this.decodeParameters([e],t)[0]},u.prototype.decodeParameters=function(e,t){return this.decodeParametersWith(e,t,!1)},u.prototype.decodeParametersWith=function(e,t,n){if(e.length>0&&(!t||"0x"===t||"0X"===t))throw new Error("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");var r=c.decode(this.mapTypes(e),"0x"+t.replace(/0x/i,""),n),o=new l;return o.__length__=0,e.forEach((function(e,t){var n=r[o.__length__];n="0x"===n?null:n,o[t]=n,i.isObject(e)&&e.name&&(o[e.name]=n),o.__length__++})),o},u.prototype.decodeLog=function(e,t,n){var r=this;n=i.isArray(n)?n:[n],t=t||"";var o=[],a=[],s=0;e.forEach((function(e,t){e.indexed?(a[t]=["bool","int","uint","address","fixed","ufixed"].find((function(t){return-1!==e.type.indexOf(t)}))?r.decodeParameter(e.type,n[s]):n[s],s++):o[t]=e}));var c=t,u=c?this.decodeParametersWith(o,c,!0):[],f=new l;return f.__length__=0,e.forEach((function(e,t){f[t]="string"===e.type?"":null,void 0!==u[t]&&(f[t]=u[t]),void 0!==a[t]&&(f[t]=a[t]),e.name&&(f[e.name]=f[t]),f.__length__++})),f};var f=new u;e.exports=f},function(e,t){var n="abcdefghijklmnopqrstuvwxyz",r="ABCDEFGHIJKLMNOPQRSTUVWXYZ",i="0123456789",o="~!@#$%^&()_+-={}[];',";e.exports=function(e,t){e||(e=30),t||(t="aA0");var a="";t.split("").forEach(e=>{isNaN(parseInt(e))?/[a-z]/.test(e)?a+=n:/[A-Z]/.test(e)?a+=r:a+=o:a+=i});for(var s="",c=0;c<e;c++)s+=a.charAt(Math.floor(Math.random()*a.length));return s}},function(e,t){var n;function r(e,t){navigator.onLine||e("offline"),e("error",t)}function i(e,t,n){navigator.serviceWorker.register(e,n).then((function(e){t("registered",e),e.waiting?t("updated",e):e.onupdatefound=function(){t("updatefound",e);var n=e.installing;n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?t("updated",e):t("cached",e))}}})).catch((function(e){return r(t,e)}))}"undefined"!=typeof window&&(n="undefined"==typeof document||"interactive"!==document.readyState&&"complete"!==document.readyState?"undefined"!=typeof Promise?new Promise((function(e){return window.addEventListener("load",e)})):{then:function(e){return window.addEventListener("load",e)}}:Promise.resolve()),t.register=function(e,t){void 0===t&&(t={});var o=t.registrationOptions;void 0===o&&(o={}),delete t.registrationOptions;var a=function(e){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];t&&t[e]&&t[e].apply(t,n)};"serviceWorker"in navigator&&n.then((function(){Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/))?(!function(e,t,n){fetch(e).then((function(r){404===r.status?(t("error",new Error("Service worker not found at "+e)),unregister()):-1===r.headers.get("content-type").indexOf("javascript")?(t("error",new Error("Expected "+e+" to have javascript content-type, but received "+r.headers.get("content-type"))),unregister()):i(e,t,n)})).catch((function(e){return r(t,e)}))}(e,a,o),navigator.serviceWorker.ready.then((function(e){a("ready",e)}))):(i(e,a,o),navigator.serviceWorker.ready.then((function(e){a("ready",e)})))}))},t.unregister=function(){"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()}))}},function(e,t,n){(t=n(31)(!1)).push([e.i,'.container-32qWNIPmM-DBfCoNvvihsK{display:flex;flex-direction:column;height:100%}.container-32qWNIPmM-DBfCoNvvihsK .header-2TOKRGbwiuGLbgbd2latWx{margin-top:20px;text-align:center}.container-32qWNIPmM-DBfCoNvvihsK .paragraph-yA9g7VsZ3EbXbCYhkUoXZ{text-align:center;padding:0 24px}.container-32qWNIPmM-DBfCoNvvihsK .permission-iG2GVwShVRY0dRMGlGRZ6{margin-top:30px;font-size:14px;color:#525f7f;text-align:center}.container-32qWNIPmM-DBfCoNvvihsK ul{list-style:none;font-size:14px;padding:0;width:fit-content;margin:auto;color:#525f7f}.container-32qWNIPmM-DBfCoNvvihsK ul li:before{content:"- "}.container-32qWNIPmM-DBfCoNvvihsK .buttons-2nWpBrAPFoUYGbfor3EQeg{display:flex}.container-32qWNIPmM-DBfCoNvvihsK .button-2Wy7qB5YF1cUrJMw9os9yf{flex:1}\n',""]),t.locals={container:"container-32qWNIPmM-DBfCoNvvihsK",header:"header-2TOKRGbwiuGLbgbd2latWx",paragraph:"paragraph-yA9g7VsZ3EbXbCYhkUoXZ",permission:"permission-iG2GVwShVRY0dRMGlGRZ6",buttons:"buttons-2nWpBrAPFoUYGbfor3EQeg",button:"button-2Wy7qB5YF1cUrJMw9os9yf"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".right-3SphQyN3oQtzkgDpktlUmR{height:64px;padding-right:12px;display:flex;flex-direction:column}.right-3SphQyN3oQtzkgDpktlUmR .sign-out-3ciponOZlxfdSZhG-mcZLO{font-size:20px;padding:0 8px}.right-3SphQyN3oQtzkgDpktlUmR .sign-out-3ciponOZlxfdSZhG-mcZLO i{cursor:pointer;color:#8f8f8f}.right-3SphQyN3oQtzkgDpktlUmR .sign-out-3ciponOZlxfdSZhG-mcZLO i:hover{color:black}.container-account-inner-5Dpp7jt7wytlNRYdUjN7o{display:flex;flex-direction:column;width:100%}.card-PQObXsfpyppb1NTlf-vsu{margin-bottom:12px}.card-PQObXsfpyppb1NTlf-vsu:last-of-type{margin-bottom:0}.card-PQObXsfpyppb1NTlf-vsu .card-body{padding:16px}\n",""]),t.locals={right:"right-3SphQyN3oQtzkgDpktlUmR","sign-out":"sign-out-3ciponOZlxfdSZhG-mcZLO",signOut:"sign-out-3ciponOZlxfdSZhG-mcZLO","container-account-inner":"container-account-inner-5Dpp7jt7wytlNRYdUjN7o",containerAccountInner:"container-account-inner-5Dpp7jt7wytlNRYdUjN7o",card:"card-PQObXsfpyppb1NTlf-vsu"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-1SlLP5TlYwfMl3dBMy8MNr{display:flex;flex-direction:column;height:100%}.item-1SymL2drj4cNQ8YFByagSV{cursor:pointer;padding:8px 20px;font-size:24px;font-weight:bold;color:#32325d}.footer-1-k_f1oXn_AqNgGp3YZEWm{padding:20px 30px;font-size:14px}.footer-1-k_f1oXn_AqNgGp3YZEWm .inner-638ZsrH-qFd0n8928obTC{display:flex;cursor:pointer;color:#8898aa}.footer-1-k_f1oXn_AqNgGp3YZEWm .inner-638ZsrH-qFd0n8928obTC i{margin-right:6px;font-size:20px}\n",""]),t.locals={container:"container-1SlLP5TlYwfMl3dBMy8MNr",item:"item-1SymL2drj4cNQ8YFByagSV",footer:"footer-1-k_f1oXn_AqNgGp3YZEWm",inner:"inner-638ZsrH-qFd0n8928obTC"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-name-17DBJKAID5VX6Af0BOeLeH{display:flex;flex-direction:row}.name-2Oht8_aTVByqOFxwd7KjFk{font-size:20px;color:#32325d;font-weight:bold}.container-account-36F-HRh7rS5eaE0tdsslwL{display:flex;flex-direction:row}.address-cka5_AqdBbQ3rTDt-kZh1{border:solid 1px #e6e6e6;border-radius:100px;padding:0 16px;font-size:12px;color:#474747;cursor:pointer}\n",""]),t.locals={"container-name":"container-name-17DBJKAID5VX6Af0BOeLeH",containerName:"container-name-17DBJKAID5VX6Af0BOeLeH",name:"name-2Oht8_aTVByqOFxwd7KjFk","container-account":"container-account-36F-HRh7rS5eaE0tdsslwL",containerAccount:"container-account-36F-HRh7rS5eaE0tdsslwL",address:"address-cka5_AqdBbQ3rTDt-kZh1"},e.exports=t},function(e,t,n){var r=n(37),i=n(1472);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1};r(i,o);e.exports=i.locals||{}},function(e,t,n){(t=n(31)(!1)).push([e.i,"#notification-top-right{position:fixed;width:100%;max-width:340px;padding:8px;z-index:10000;top:0;right:0}#notification-top-right li{margin-top:8px}#notification-top-right li:first-child{margin-top:0}#notification-top-right .alert-dismissible .close{top:50% !important;right:1rem !important}#notification-top-left{position:fixed;width:100%;max-width:340px;padding:8px;z-index:10000;top:0;left:0}#notification-top-left li{margin-top:8px}#notification-top-left li:first-child{margin-top:0}#notification-top-left .alert-dismissible .close{top:50% !important;right:1rem !important}#notification-top-center{position:fixed;width:100%;max-width:340px;padding:8px;z-index:10000;top:0;left:50%;transform:translateX(-50%)}#notification-top-center li{margin-top:8px}#notification-top-center li:first-child{margin-top:0}#notification-top-center .alert-dismissible .close{top:50% !important;right:1rem !important}\n",""]),e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-tx-button-1P-nLDPoVxo01fnVBIk6Zv{display:flex;flex-direction:row}.container-tx-button-1P-nLDPoVxo01fnVBIk6Zv .button-3g6yZYmNBOJfDslQeJYRQm{flex:1;margin-right:12px}.container-tx-button-1P-nLDPoVxo01fnVBIk6Zv .button-3g6yZYmNBOJfDslQeJYRQm:last-child{margin-right:0}.deposit-modal-2-CERmlqVYyP1XHv0OL1xP .address-23VNO7XbsMQPW2Lh7gAv7y{text-align:center;font-size:16px;border:solid 1px #e6e6e6;border-radius:100px;padding:0 8px;color:#474747;cursor:pointer}\n",""]),t.locals={"container-tx-button":"container-tx-button-1P-nLDPoVxo01fnVBIk6Zv",containerTxButton:"container-tx-button-1P-nLDPoVxo01fnVBIk6Zv",button:"button-3g6yZYmNBOJfDslQeJYRQm","deposit-modal":"deposit-modal-2-CERmlqVYyP1XHv0OL1xP",depositModal:"deposit-modal-2-CERmlqVYyP1XHv0OL1xP",address:"address-23VNO7XbsMQPW2Lh7gAv7y"},e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(0),a=h(o),s=h(n(931)),c=h(n(1)),l=h(n(1475)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1033)),f=n(928),d=h(f),p=n(921);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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}var y=t.portalClassName="ReactModalPortal",g=t.bodyOpenClassName="ReactModal__Body--open",v=f.canUseDOM&&void 0!==s.default.createPortal,w=function(){return v?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function _(e){return e()}var k=function(e){function t(){var e,n,i;m(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=i=b(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),i.removePortal=function(){!v&&s.default.unmountComponentAtNode(i.node);var e=_(i.props.parentSelector);e&&e.contains(i.node)?e.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(e){i.portal=e},i.renderPortal=function(e){var n=w()(i,a.default.createElement(l.default,r({defaultStyles:t.defaultStyles},e)),i.node);i.portalRef(n)},b(i,n)}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,e),i(t,[{key:"componentDidMount",value:function(){f.canUseDOM&&(v||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName,_(this.props.parentSelector).appendChild(this.node),!v&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:_(e.parentSelector),nextParent:_(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(f.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;e.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||i)&&!v&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&v?(!this.node&&v&&(this.node=document.createElement("div")),w()(a.default.createElement(l.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(o.Component);k.propTypes={isOpen:c.default.bool.isRequired,style:c.default.shape({content:c.default.object,overlay:c.default.object}),portalClassName:c.default.string,bodyOpenClassName:c.default.string,htmlOpenClassName:c.default.string,className:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),overlayClassName:c.default.oneOfType([c.default.string,c.default.shape({base:c.default.string.isRequired,afterOpen:c.default.string.isRequired,beforeClose:c.default.string.isRequired})]),appElement:c.default.instanceOf(d.default),onAfterOpen:c.default.func,onRequestClose:c.default.func,closeTimeoutMS:c.default.number,ariaHideApp:c.default.bool,shouldFocusAfterRender:c.default.bool,shouldCloseOnOverlayClick:c.default.bool,shouldReturnFocusAfterClose:c.default.bool,preventScroll:c.default.bool,parentSelector:c.default.func,aria:c.default.object,data:c.default.object,role:c.default.string,contentLabel:c.default.string,shouldCloseOnEsc:c.default.bool,overlayRef:c.default.func,contentRef:c.default.func,id:c.default.string,overlayElement:c.default.func,contentElement:c.default.func},k.defaultProps={isOpen:!1,portalClassName:y,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},k.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,p.polyfill)(k),t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),s=m(n(1)),c=h(n(1476)),l=m(n(1477)),u=h(n(1033)),f=h(n(1479)),d=m(n(928)),p=m(n(1034));function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function m(e){return e&&e.__esModule?e:{default:e}}n(1480);var b={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,g=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 n=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,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,i=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&f.remove(document.body,o),i&&f.remove(document.getElementsByTagName("html")[0],i),r&&y>0&&0===(y-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(c.returnFocus(n.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(c.setupScopedFocus(n.node),c.markForFocusLater()),n.setState({isOpen:!0},(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,l.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":i(t))?t:{base:b[e],afterOpen:b[e]+"--after-open",beforeClose:b[e]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"==typeof t&&t?o+" "+t:o},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}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,e),o(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,i=e.bodyOpenClassName;i&&f.add(document.body,i),r&&f.add(document.getElementsByTagName("html")[0],r),n&&(y+=1,u.hide(t)),p.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,i=e.overlayClassName,o=e.defaultStyles,a=e.children,s=n?{}:o.content,c=i?{}:o.overlay;if(this.shouldBeClosed())return null;var l={ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},c,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),f=this.props.contentElement(u,a);return this.props.overlayElement(l,f)}}]),t}(a.Component);g.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},g.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.instanceOf(d.default),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=g,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleBlur=l,t.handleFocus=u,t.markForFocusLater=function(){a.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==a.length&&(t=a.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){a.length>0&&a.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",u))};var r,i=n(1032),o=(r=i)&&r.__esModule?r:{default:r};var a=[],s=null,c=!1;function l(){c=!0}function u(){if(c){if(c=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,o.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,i=t.shiftKey,a=n[0],s=n[n.length-1];if(e===document.activeElement){if(!i)return;r=s}s!==document.activeElement||i||(r=a);a===document.activeElement&&i&&(r=s);if(r)return t.preventDefault(),void r.focus();var c=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==c||"Chrome"==c[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var l=n.indexOf(document.activeElement);l>-1&&(l+=i?-1:1);if(void 0===(r=n[l]))return t.preventDefault(),void(r=i?s:a).focus();t.preventDefault(),r.focus()};var r,i=n(1032),o=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){var r;
356 /*!
357   Copyright (c) 2015 Jed Watson.
358   Based on code that is Copyright 2013-2015, Facebook, Inc.
359   All rights reserved.
360 */!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=function(){0};var r={},i={};t.add=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),n.add(e)}));var n,o},t.remove=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&n.remove(e)}));var n,o}},function(e,t,n){"use strict";var r,i=n(1034),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0,s=void 0,c=[];function l(){0!==c.length&&c[c.length-1].focusContent()}o.default.subscribe((function(e,t){a&&s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",l),(s=a.cloneNode()).addEventListener("focus",l)),(c=t).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},function(e,t,n){var r=n(1482),i=n(1483),o=n(1500),a=n(1501);function s(e,t,n,o,a){var s=[].slice.call(arguments,1),c=s.length,l="function"==typeof s[c-1];if(!l&&!r())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=o=void 0):2!==c||t.getContext||(o=n,n=t,t=void 0),new Promise((function(r,a){try{var s=i.create(n,o);r(e(s,t,o))}catch(e){a(e)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(a=n,n=t,t=o=void 0):3===c&&(t.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=n,n=t,t=void 0));try{var u=i.create(n,o);a(null,e(u,t,o))}catch(e){a(e)}}t.create=i.create,t.toCanvas=s.bind(null,o.render),t.toDataURL=s.bind(null,o.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return a.render(e,n)}))},function(e,t){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},function(e,t,n){var r=n(837),i=n(825),o=n(930),a=n(1484),s=n(1485),c=n(1486),l=n(1487),u=n(1488),f=n(1035),d=n(1489),p=n(1492),h=n(1493),m=n(826),b=n(1494),y=n(929);function g(e,t,n){var r,i,o=e.size,a=h.getEncodedBits(t,n);for(r=0;r<15;r++)i=1==(a>>r&1),r<6?e.set(r,8,i,!0):r<8?e.set(r+1,8,i,!0):e.set(o-15+r,8,i,!0),r<8?e.set(8,o-r-1,i,!0):r<9?e.set(8,15-r-1+1,i,!0):e.set(8,15-r-1,i,!0);e.set(o-8,8,1,!0)}function v(e,t,n){var o=new a;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),m.getCharCountIndicator(t.mode,e)),t.write(o)}));var s=8*(i.getSymbolTotalCodewords(e)-f.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);for(var c=(s-o.getLengthInBits())/8,l=0;l<c;l++)o.put(l%2?17:236,8);return function(e,t,n){for(var o=i.getSymbolTotalCodewords(t),a=f.getTotalCodewordsCount(t,n),s=o-a,c=f.getBlocksCount(t,n),l=c-o%c,u=Math.floor(o/c),p=Math.floor(s/c),h=p+1,m=u-p,b=new d(m),y=0,g=new Array(c),v=new Array(c),w=0,_=r.from(e.buffer),k=0;k<c;k++){var x=k<l?p:h;g[k]=_.slice(y,y+x),v[k]=b.encode(g[k]),y+=x,w=Math.max(w,x)}var S,O,E=r.alloc(o),T=0;for(S=0;S<w;S++)for(O=0;O<c;O++)S<g[O].length&&(E[T++]=g[O][S]);for(S=0;S<m;S++)for(O=0;O<c;O++)E[T++]=v[O][S];return E}(o,e,t)}function w(e,t,n,r){var o;if(y(e))o=b.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");var a=t;if(!a){var f=b.rawSplit(e);a=p.getBestVersionForData(f,n)}o=b.fromString(e,a||40)}var d=p.getBestVersionForData(o,n);if(!d)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<d)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+d+".\n")}else t=d;var h=v(t,n,o),m=i.getSymbolSize(t),w=new s(m);return function(e,t){for(var n=e.size,r=l.getPositions(t),i=0;i<r.length;i++)for(var o=r[i][0],a=r[i][1],s=-1;s<=7;s++)if(!(o+s<=-1||n<=o+s))for(var c=-1;c<=7;c++)a+c<=-1||n<=a+c||(s>=0&&s<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===s||6===s)||s>=2&&s<=4&&c>=2&&c<=4?e.set(o+s,a+c,!0,!0):e.set(o+s,a+c,!1,!0))}(w,t),function(e){for(var t=e.size,n=8;n<t-8;n++){var r=n%2==0;e.set(n,6,r,!0),e.set(6,n,r,!0)}}(w),function(e,t){for(var n=c.getPositions(t),r=0;r<n.length;r++)for(var i=n[r][0],o=n[r][1],a=-2;a<=2;a++)for(var s=-2;s<=2;s++)-2===a||2===a||-2===s||2===s||0===a&&0===s?e.set(i+a,o+s,!0,!0):e.set(i+a,o+s,!1,!0)}(w,t),g(w,n,0),t>=7&&function(e,t){for(var n,r,i,o=e.size,a=p.getEncodedBits(t),s=0;s<18;s++)n=Math.floor(s/3),r=s%3+o-8-3,i=1==(a>>s&1),e.set(n,r,i,!0),e.set(r,n,i,!0)}(w,t),function(e,t){for(var n=e.size,r=-1,i=n-1,o=7,a=0,s=n-1;s>0;s-=2)for(6===s&&s--;;){for(var c=0;c<2;c++)if(!e.isReserved(i,s-c)){var l=!1;a<t.length&&(l=1==(t[a]>>>o&1)),e.set(i,s-c,l),-1===--o&&(a++,o=7)}if((i+=r)<0||n<=i){i-=r,r=-r;break}}}(w,h),isNaN(r)&&(r=u.getBestMask(w,g.bind(null,w,n))),u.applyMask(r,w),g(w,n,r),{modules:w,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var n,r,a=o.M;return void 0!==t&&(a=o.from(t.errorCorrectionLevel,o.M),n=p.from(t.version),r=u.from(t.maskPattern),t.toSJISFunc&&i.setToSJISFunction(t.toSJISFunc)),w(e,n,a,r)}},function(e,t){function n(){this.buffer=[],this.length=0}n.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=n},function(e,t,n){var r=n(837);function i(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=r.alloc(e*e),this.reservedBit=r.alloc(e*e)}i.prototype.set=function(e,t,n,r){var i=e*this.size+t;this.data[i]=n,r&&(this.reservedBit[i]=!0)},i.prototype.get=function(e,t){return this.data[e*this.size+t]},i.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},i.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=i},function(e,t,n){var r=n(825).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=r(e),i=145===n?26:2*Math.ceil((n-13)/(2*t-2)),o=[n-7],a=1;a<t-1;a++)o[a]=o[a-1]-i;return o.push(6),o.reverse()},t.getPositions=function(e){for(var n=[],r=t.getRowColCoords(e),i=r.length,o=0;o<i;o++)for(var a=0;a<i;a++)0===o&&0===a||0===o&&a===i-1||o===i-1&&0===a||n.push([r[o],r[a]]);return n}},function(e,t,n){var r=n(825).getSymbolSize;t.getPositions=function(e){var t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n=3,r=3,i=40,o=10;function a(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,r=0,i=0,o=0,a=null,s=null,c=0;c<t;c++){i=o=0,a=s=null;for(var l=0;l<t;l++){var u=e.get(c,l);u===a?i++:(i>=5&&(r+=n+(i-5)),a=u,i=1),(u=e.get(l,c))===s?o++:(o>=5&&(r+=n+(o-5)),s=u,o=1)}i>=5&&(r+=n+(i-5)),o>=5&&(r+=n+(o-5))}return r},t.getPenaltyN2=function(e){for(var t=e.size,n=0,i=0;i<t-1;i++)for(var o=0;o<t-1;o++){var a=e.get(i,o)+e.get(i,o+1)+e.get(i+1,o)+e.get(i+1,o+1);4!==a&&0!==a||n++}return n*r},t.getPenaltyN3=function(e){for(var t=e.size,n=0,r=0,o=0,a=0;a<t;a++){r=o=0;for(var s=0;s<t;s++)r=r<<1&2047|e.get(a,s),s>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(s,a),s>=10&&(1488===o||93===o)&&n++}return n*i},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*o},t.applyMask=function(e,t){for(var n=t.size,r=0;r<n;r++)for(var i=0;i<n;i++)t.isReserved(i,r)||t.xor(i,r,a(e,i,r))},t.getBestMask=function(e,n){for(var r=Object.keys(t.Patterns).length,i=0,o=1/0,a=0;a<r;a++){n(a),t.applyMask(a,e);var s=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),s<o&&(o=s,i=a)}return i}},function(e,t,n){var r=n(837),i=n(1490),o=n(2).Buffer;function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=i.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=r.alloc(this.degree),n=o.concat([e,t],e.length+this.degree),a=i.mod(n,this.genPoly),s=this.degree-a.length;if(s>0){var c=r.alloc(this.degree);return a.copy(c,s),c}return a},e.exports=a},function(e,t,n){var r=n(837),i=n(1491);t.mul=function(e,t){for(var n=r.alloc(e.length+t.length-1),o=0;o<e.length;o++)for(var a=0;a<t.length;a++)n[o+a]^=i.mul(e[o],t[a]);return n},t.mod=function(e,t){for(var n=r.from(e);n.length-t.length>=0;){for(var o=n[0],a=0;a<t.length;a++)n[a]^=i.mul(t[a],o);for(var s=0;s<n.length&&0===n[s];)s++;n=n.slice(s)}return n},t.generateECPolynomial=function(e){for(var n=r.from([1]),o=0;o<e;o++)n=t.mul(n,[1,i.exp(o)]);return n}},function(e,t,n){var r=n(837),i=r.alloc(512),o=r.alloc(256);!function(){for(var e=1,t=0;t<255;t++)i[t]=e,o[e]=t,256&(e<<=1)&&(e^=285);for(t=255;t<512;t++)i[t]=i[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return o[e]},t.exp=function(e){return i[e]},t.mul=function(e,t){return 0===e||0===t?0:i[o[e]+o[t]]}},function(e,t,n){var r=n(825),i=n(1035),o=n(930),a=n(826),s=n(1036),c=n(929),l=r.getBCHDigit(7973);function u(e,t){return a.getCharCountIndicator(e,t)+4}function f(e,t){var n=0;return e.forEach((function(e){var r=u(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);var o=8*(r.getSymbolTotalCodewords(e)-i.getTotalCodewordsCount(e,t));if(n===a.MIXED)return o;var c=o-u(n,e);switch(n){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){var r,i=o.from(n,o.M);if(c(e)){if(e.length>1)return function(e,n){for(var r=1;r<=40;r++){if(f(e,r)<=t.getCapacity(r,n,a.MIXED))return r}}(e,i);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(var i=1;i<=40;i++)if(n<=t.getCapacity(i,r,e))return i}(r.mode,r.getLength(),i)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},function(e,t,n){var r=n(825),i=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var n=e.bit<<3|t,o=n<<10;r.getBCHDigit(o)-i>=0;)o^=1335<<r.getBCHDigit(o)-i;return 21522^(n<<10|o)}},function(e,t,n){var r=n(826),i=n(1495),o=n(1496),a=n(1497),s=n(1498),c=n(1037),l=n(825),u=n(1499);function f(e){return unescape(encodeURIComponent(e)).length}function d(e,t,n){for(var r,i=[];null!==(r=e.exec(n));)i.push({data:r[0],index:r.index,mode:t,length:r[0].length});return i}function p(e){var t,n,i=d(c.NUMERIC,r.NUMERIC,e),o=d(c.ALPHANUMERIC,r.ALPHANUMERIC,e);return l.isKanjiModeEnabled()?(t=d(c.BYTE,r.BYTE,e),n=d(c.KANJI,r.KANJI,e)):(t=d(c.BYTE_KANJI,r.BYTE,e),n=[]),i.concat(o,t,n).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case r.NUMERIC:return i.getBitsLength(e);case r.ALPHANUMERIC:return o.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function m(e,t){var n,c=r.getBestModeForData(e);if((n=r.from(t,c))!==r.BYTE&&n.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(c));switch(n!==r.KANJI||l.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new i(e);case r.ALPHANUMERIC:return new o(e);case r.KANJI:return new s(e);case r.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"==typeof t?e.push(m(t,null)):t.data&&e.push(m(t.data,t.mode)),e}),[])},t.fromString=function(e,n){for(var i=function(e,t){for(var n={},i={start:{}},o=["start"],a=0;a<e.length;a++){for(var s=e[a],c=[],l=0;l<s.length;l++){var u=s[l],f=""+a+l;c.push(f),n[f]={node:u,lastCount:0},i[f]={};for(var d=0;d<o.length;d++){var p=o[d];n[p]&&n[p].node.mode===u.mode?(i[p][f]=h(n[p].lastCount+u.length,u.mode)-h(n[p].lastCount,u.mode),n[p].lastCount+=u.length):(n[p]&&(n[p].lastCount=u.length),i[p][f]=h(u.length,u.mode)+4+r.getCharCountIndicator(u.mode,t))}}o=c}for(d=0;d<o.length;d++)i[o[d]].end=0;return{map:i,table:n}}(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];switch(i.mode){case r.NUMERIC:t.push([i,{data:i.data,mode:r.ALPHANUMERIC,length:i.length},{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.ALPHANUMERIC:t.push([i,{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.KANJI:t.push([i,{data:i.data,mode:r.BYTE,length:f(i.data)}]);break;case r.BYTE:t.push([{data:i.data,mode:r.BYTE,length:f(i.data)}])}}return t}(p(e,l.isKanjiModeEnabled())),n),o=u.find_path(i.map,"start","end"),a=[],s=1;s<o.length-1;s++)a.push(i.table[o[s]].node);return t.fromArray(function(e){return e.reduce((function(e,t){var n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(a))},t.rawSplit=function(e){return t.fromArray(p(e,l.isKanjiModeEnabled()))}},function(e,t,n){var r=n(826);function i(e){this.mode=r.NUMERIC,this.data=e.toString()}i.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);var i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*i+1))},e.exports=i},function(e,t,n){var r=n(826),i=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function o(e){this.mode=r.ALPHANUMERIC,this.data=e}o.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var n=45*i.indexOf(this.data[t]);n+=i.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(i.indexOf(this.data[t]),6)},e.exports=o},function(e,t,n){var r=n(837),i=n(826);function o(e){this.mode=i.BYTE,this.data=r.from(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(var t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=o},function(e,t,n){var r=n(826),i=n(825);function o(e){this.mode=r.KANJI,this.data=e}o.getBitsLength=function(e){return 13*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){var t;for(t=0;t<this.data.length;t++){var n=i.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=o},function(e,t,n){"use strict";var r={single_source_shortest_paths:function(e,t,n){var i={},o={};o[t]=0;var a,s,c,l,u,f,d,p=r.PriorityQueue.make();for(p.push(t,0);!p.empty();)for(c in s=(a=p.pop()).value,l=a.cost,u=e[s]||{})u.hasOwnProperty(c)&&(f=l+u[c],d=o[c],(void 0===o[c]||d>f)&&(o[c]=f,p.push(c,f),i[c]=s));if(void 0!==n&&void 0===o[n]){var h=["Could not find a path from ",t," to ",n,"."].join("");throw new Error(h)}return i},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,t,n){var i=r.single_source_shortest_paths(e,t,n);return r.extract_shortest_path_from_predecessor_list(i,n)},PriorityQueue:{make:function(e){var t,n=r.PriorityQueue,i={};for(t in e=e||{},n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i.queue=[],i.sorter=e.sorter||n.default_sorter,i},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=r},function(e,t,n){var r=n(1038);t.render=function(e,t,n){var i=n,o=t;void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(o=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),i=r.getOptions(i);var a=r.getImageWidth(e.modules.size,i),s=o.getContext("2d"),c=s.createImageData(a,a);return r.qrToImageData(c.data,e,i),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,o,a),s.putImageData(c,0,0),o},t.renderToDataURL=function(e,n,r){var i=r;void 0!==i||n&&n.getContext||(i=n,n=void 0),i||(i={});var o=t.render(e,n,i),a=i.type||"image/png",s=i.rendererOpts||{};return o.toDataURL(a,s.quality)}},function(e,t,n){var r=n(1038);function i(e,t){var n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function o(e,t,n){var r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){var a=r.getOptions(t),s=e.modules.size,c=e.modules.data,l=s+2*a.margin,u=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",f="<path "+i(a.color.dark,"stroke")+' d="'+function(e,t,n){for(var r="",i=0,a=!1,s=0,c=0;c<e.length;c++){var l=Math.floor(c%t),u=Math.floor(c/t);l||a||(a=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(r+=a?o("M",l+n,.5+u+n):o("m",i,0),i=0,a=!1),l+1<t&&e[c+1]||(r+=o("h",s),s=0)):i++}return r}(c,s,a.margin)+'"/>',d='viewBox="0 0 '+l+" "+l+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+d+' shape-rendering="crispEdges">'+u+f+"</svg>\n";return"function"==typeof n&&n(null,p),p}},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-asset-3fFs7FCGdjbZ58DGHWFzM_{flex:1;display:flex;flex-direction:column;justify-content:space-around;align-items:center;padding:14px 0}.container-asset-3fFs7FCGdjbZ58DGHWFzM_ .title-3fPJqHo3Y6koiwz8dDUoi_{font-size:14px;letter-spacing:-0.31px;text-align:center;color:#4a4a4a}.container-asset-3fFs7FCGdjbZ58DGHWFzM_ .fiat-QuOpPd3089lktfa27zrSN{font-size:36px;text-align:center;letter-spacing:-0.8px;color:black}.container-asset-3fFs7FCGdjbZ58DGHWFzM_ .amount-2LE2KQivutL06VPAgdT2uk{position:relative;display:flex;font-size:18px;text-align:center;letter-spacing:-0.4px;color:#8f8f8f}.container-asset-3fFs7FCGdjbZ58DGHWFzM_ .popper{font-size:14px;min-width:140px}.container-chart-1ghFQJe_1aqt-Ll0KwOow3{position:relative}.container-chart-1ghFQJe_1aqt-Ll0KwOow3 .center-text-XycbXlked4D7mBoIHASIQ{position:absolute;z-index:1;text-align:center;top:50%;left:50%;transform:translate(-50%, -50%)}.container-chart-1ghFQJe_1aqt-Ll0KwOow3 .center-text-XycbXlked4D7mBoIHASIQ .big-NDQn2_PLARDUOSsEsNsJu{font-size:13px;color:#32325d}.container-chart-1ghFQJe_1aqt-Ll0KwOow3 .center-text-XycbXlked4D7mBoIHASIQ .small-3oRmUi9Eehn7HL-ydpdrr0{font-size:20px;color:#32325d;font-weight:bold}.container-chart-1ghFQJe_1aqt-Ll0KwOow3 .center-text-XycbXlked4D7mBoIHASIQ .indicator-icon-3F_wGVyMcXXJ7CCNRnIbk0{position:absolute;width:100%}.container-chart-1ghFQJe_1aqt-Ll0KwOow3 canvas{position:relative}.legend-Wu4L2QEXtVB9TwJtkUYqD{display:flex;width:100%}.legend-Wu4L2QEXtVB9TwJtkUYqD .label-m7QGcGyJEW9j5ibxplIxQ{letter-spacing:-0.3px;flex:1;display:flex;justify-content:flex-end}.legend-Wu4L2QEXtVB9TwJtkUYqD .value-1TgBA0VFi2Ld1KtpwsaNGp{letter-spacing:-0.3px;flex:1;display:flex;font-weight:bold}\n",""]),t.locals={"container-asset":"container-asset-3fFs7FCGdjbZ58DGHWFzM_",containerAsset:"container-asset-3fFs7FCGdjbZ58DGHWFzM_",title:"title-3fPJqHo3Y6koiwz8dDUoi_",fiat:"fiat-QuOpPd3089lktfa27zrSN",amount:"amount-2LE2KQivutL06VPAgdT2uk","container-chart":"container-chart-1ghFQJe_1aqt-Ll0KwOow3",containerChart:"container-chart-1ghFQJe_1aqt-Ll0KwOow3","center-text":"center-text-XycbXlked4D7mBoIHASIQ",centerText:"center-text-XycbXlked4D7mBoIHASIQ",big:"big-NDQn2_PLARDUOSsEsNsJu",small:"small-3oRmUi9Eehn7HL-ydpdrr0","indicator-icon":"indicator-icon-3F_wGVyMcXXJ7CCNRnIbk0",indicatorIcon:"indicator-icon-3F_wGVyMcXXJ7CCNRnIbk0",legend:"legend-Wu4L2QEXtVB9TwJtkUYqD",label:"label-m7QGcGyJEW9j5ibxplIxQ",value:"value-1TgBA0VFi2Ld1KtpwsaNGp"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-inner-1k4PbBScgIT9M_LAlCnAr{display:flex;flex-direction:row;height:48px;justify-content:center;align-items:center}.container-inner-1k4PbBScgIT9M_LAlCnAr .paragraph-main-tqAQ8LliGP_Z1aC334Y{line-height:1.35}.container-inner-1k4PbBScgIT9M_LAlCnAr .paragraph-sub-g5SN2vVmaUtmTHCjHQK2l{line-height:1.35;color:#8898aa}.container-inner-1k4PbBScgIT9M_LAlCnAr .vertical--Jj5LO6Wz7s3jFyOn9e_d{display:flex;flex-direction:column}.container-inner-1k4PbBScgIT9M_LAlCnAr .button-1mEOW-sxRwh_T3b2aqtDYy{min-width:76px;padding:6px 10px 4px}.hr-13xa9q-hXOQnF7BUTYoD1o{margin:16px 0}\n",""]),t.locals={"container-inner":"container-inner-1k4PbBScgIT9M_LAlCnAr",containerInner:"container-inner-1k4PbBScgIT9M_LAlCnAr","paragraph-main":"paragraph-main-tqAQ8LliGP_Z1aC334Y",paragraphMain:"paragraph-main-tqAQ8LliGP_Z1aC334Y","paragraph-sub":"paragraph-sub-g5SN2vVmaUtmTHCjHQK2l",paragraphSub:"paragraph-sub-g5SN2vVmaUtmTHCjHQK2l",vertical:"vertical--Jj5LO6Wz7s3jFyOn9e_d",button:"button-1mEOW-sxRwh_T3b2aqtDYy",hr:"hr-13xa9q-hXOQnF7BUTYoD1o"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".token-container-1olDSzm7YJ4O-LHmhiIQN1{display:flex;flex-direction:row;align-items:center;cursor:pointer;margin:0 0 12px 0}.token-container-1olDSzm7YJ4O-LHmhiIQN1:last-of-type{margin-bottom:0}.token-container-1olDSzm7YJ4O-LHmhiIQN1 .icon-6rYjjiKdOFpSnVkhdtHY6{width:36px;height:36px;margin-right:8px}.token-container-1olDSzm7YJ4O-LHmhiIQN1 .inner-container-2V5mhAi67pdjQU0yIBZKOY{flex:1;display:flex;justify-content:space-between;align-items:center}.token-container-1olDSzm7YJ4O-LHmhiIQN1 .inner-container-2V5mhAi67pdjQU0yIBZKOY .content-33Dr_4t84qohkRhNTjz55l{display:flex;flex-direction:column}.token-container-1olDSzm7YJ4O-LHmhiIQN1 .inner-container-2V5mhAi67pdjQU0yIBZKOY .content-33Dr_4t84qohkRhNTjz55l .name-rz3L8APlQyDWzHNCterPZ{font-size:14px;color:#525f7f;max-width:216px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.token-container-1olDSzm7YJ4O-LHmhiIQN1 .inner-container-2V5mhAi67pdjQU0yIBZKOY .content-33Dr_4t84qohkRhNTjz55l .amount-2w-uVCdX0sNxSk8Is0TJ6B{font-size:16px;line-height:1.13;letter-spacing:-0.3px;color:#32325d;max-width:216px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.token-container-1olDSzm7YJ4O-LHmhiIQN1 .inner-container-2V5mhAi67pdjQU0yIBZKOY .right-icon-1ADnKo-Y_tQj3SdEoRKobQ i{font-size:18px;color:#999999}.tokens-container-3mlLqddmop68WkDQ_Hwwbc .title-3RrH0iaRIKlIBvBHjchPW2{font-size:14px;font-weight:bold;color:#525f7f;margin-bottom:12px}\n",""]),t.locals={"token-container":"token-container-1olDSzm7YJ4O-LHmhiIQN1",tokenContainer:"token-container-1olDSzm7YJ4O-LHmhiIQN1",icon:"icon-6rYjjiKdOFpSnVkhdtHY6","inner-container":"inner-container-2V5mhAi67pdjQU0yIBZKOY",innerContainer:"inner-container-2V5mhAi67pdjQU0yIBZKOY",content:"content-33Dr_4t84qohkRhNTjz55l",name:"name-rz3L8APlQyDWzHNCterPZ",amount:"amount-2w-uVCdX0sNxSk8Is0TJ6B","right-icon":"right-icon-1ADnKo-Y_tQj3SdEoRKobQ",rightIcon:"right-icon-1ADnKo-Y_tQj3SdEoRKobQ","tokens-container":"tokens-container-3mlLqddmop68WkDQ_Hwwbc",tokensContainer:"tokens-container-3mlLqddmop68WkDQ_Hwwbc",title:"title-3RrH0iaRIKlIBvBHjchPW2"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".modal-1tQK56A2xJCNwRpa1xbdN8 .modal-dialog{transition:none !important}.modal-content-empty-3Fapn90sCRvrX63Ix5Ig0a{background:transparent;box-shadow:none;display:flex;justify-content:center;align-items:center}\n",""]),t.locals={modal:"modal-1tQK56A2xJCNwRpa1xbdN8","modal-content-empty":"modal-content-empty-3Fapn90sCRvrX63Ix5Ig0a",modalContentEmpty:"modal-content-empty-3Fapn90sCRvrX63Ix5Ig0a"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".title-3NozRVEpr1dK7Z0H5g98Wt{font-size:28px;font-weight:bold;color:#32325d}.selectable-1J79ND09RvVza9DKLo0Mhi{margin-left:6px;margin-top:-6px}.selectable-1J79ND09RvVza9DKLo0Mhi .path-2Xj73zDztA4hDLmqdRniOY{font-size:12px;font-weight:bold;color:#9092b6;margin-bottom:6px}.selectable-1J79ND09RvVza9DKLo0Mhi .label-3DM1qDRO1jqbWVB5zXwZkm{font-size:12px;line-height:1.2;color:#8898aa;text-transform:uppercase}.selectable-1J79ND09RvVza9DKLo0Mhi .value-eJnp2OsTNKhw63Yjxoq0W{font-size:16px;color:#212529;margin-bottom:8px}\n",""]),t.locals={title:"title-3NozRVEpr1dK7Z0H5g98Wt",selectable:"selectable-1J79ND09RvVza9DKLo0Mhi",path:"path-2Xj73zDztA4hDLmqdRniOY",label:"label-3DM1qDRO1jqbWVB5zXwZkm",value:"value-eJnp2OsTNKhw63Yjxoq0W"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-inner-2w-lrKHp7gmoKz4h3msqhR{display:flex;flex-direction:row;height:48px;justify-content:center;align-items:center}.container-inner-2w-lrKHp7gmoKz4h3msqhR .paragraph-main-1Ca7Fbw1WFA-wA2Es1f1qX{line-height:1.35}.container-inner-2w-lrKHp7gmoKz4h3msqhR .paragraph-sub-3fkml8-96QFK5zA4acd_Yq{line-height:1.35;color:#8898aa}.container-inner-2w-lrKHp7gmoKz4h3msqhR .vertical-21mDdO_h3rzMngv0fZ1dEz{display:flex;flex-direction:column}.container-inner-2w-lrKHp7gmoKz4h3msqhR .button-h8Ku5FCl4tRgZY2JGR1Vm{min-width:76px;padding:6px 10px 4px}\n",""]),t.locals={"container-inner":"container-inner-2w-lrKHp7gmoKz4h3msqhR",containerInner:"container-inner-2w-lrKHp7gmoKz4h3msqhR","paragraph-main":"paragraph-main-1Ca7Fbw1WFA-wA2Es1f1qX",paragraphMain:"paragraph-main-1Ca7Fbw1WFA-wA2Es1f1qX","paragraph-sub":"paragraph-sub-3fkml8-96QFK5zA4acd_Yq",paragraphSub:"paragraph-sub-3fkml8-96QFK5zA4acd_Yq",vertical:"vertical-21mDdO_h3rzMngv0fZ1dEz",button:"button-h8Ku5FCl4tRgZY2JGR1Vm"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-1uz2wVZ0JhV76riOi3XGk9{height:100%}.flex-vertical-2F2om3TusCZS5nDYHH70uf{display:flex;flex-direction:column}.flex-horizontal-1c1Lfsa-9usBTxpOoguE-K{display:flex;flex-direction:row}.empty-v73Gqssd0OyvfnzQEADmW{flex:1}.icon-29EDiJplhq03Ba7hQ2mpXW{object-fit:contain;height:100px;margin-bottom:30px}.logo-ErxF245bmgim3lpYhORLB{object-fit:contain;height:32px;margin-bottom:4px}.subtitle-3TCMOKJ6jyCDLayKgol99N{font-size:18px}\n",""]),t.locals={container:"container-1uz2wVZ0JhV76riOi3XGk9","flex-vertical":"flex-vertical-2F2om3TusCZS5nDYHH70uf",flexVertical:"flex-vertical-2F2om3TusCZS5nDYHH70uf","flex-horizontal":"flex-horizontal-1c1Lfsa-9usBTxpOoguE-K",flexHorizontal:"flex-horizontal-1c1Lfsa-9usBTxpOoguE-K",empty:"empty-v73Gqssd0OyvfnzQEADmW",icon:"icon-29EDiJplhq03Ba7hQ2mpXW",logo:"logo-ErxF245bmgim3lpYhORLB",subtitle:"subtitle-3TCMOKJ6jyCDLayKgol99N"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".form-container-nmRETxvDybJFQk8n9rUeI{display:flex;flex-direction:column;height:100%}\n",""]),t.locals={"form-container":"form-container-nmRETxvDybJFQk8n9rUeI",formContainer:"form-container-nmRETxvDybJFQk8n9rUeI"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".form-container-2qyF4UrorsIaBQu1NsaXpA{height:100%}.form-inner-container-1jHhyVflfLaQglWWlABz9n{height:100%;display:flex;flex-direction:column}.full-modal-1fczmx7FmioElX5lSW8h2M{width:100%;height:100%;max-width:none;max-height:none;border:0;margin:0;padding:0}.full-modal-1fczmx7FmioElX5lSW8h2M.modal-content{box-shadow:none}.address-book-button-31Ug-gU7WcnfVAs5hbQEx1{background:white;border-top-left-radius:0;border-bottom-left-radius:0;border-width:0;box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02) !important}.address-book-button-31Ug-gU7WcnfVAs5hbQEx1:hover{box-shadow:0 4px 6px rgba(50,50,93,0.11),0 1px 3px rgba(0,0,0,0.08) !important}\n",""]),t.locals={"form-container":"form-container-2qyF4UrorsIaBQu1NsaXpA",formContainer:"form-container-2qyF4UrorsIaBQu1NsaXpA","form-inner-container":"form-inner-container-1jHhyVflfLaQglWWlABz9n",formInnerContainer:"form-inner-container-1jHhyVflfLaQglWWlABz9n","full-modal":"full-modal-1fczmx7FmioElX5lSW8h2M",fullModal:"full-modal-1fczmx7FmioElX5lSW8h2M","address-book-button":"address-book-button-31Ug-gU7WcnfVAs5hbQEx1",addressBookButton:"address-book-button-31Ug-gU7WcnfVAs5hbQEx1"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".form-container-24n5n0IwzDzQEN72XV23a{height:100%}.form-inner-container-2gaFFnzpzSIJuajNY68-8V{height:100%;display:flex;flex-direction:column}.chain-selector-rS6u47vQVu-ACRKE_w9Us{width:100%;height:46px}.chain-selector-rS6u47vQVu-ACRKE_w9Us button{width:100%}.chain-selector-rS6u47vQVu-ACRKE_w9Us .dropdown-menu.show{width:100%}.alert-PPN2O23PrznnSHDMoNYhE{display:flex;border:solid 1px #9092b6;background-color:#ffffff;color:#32325d}.alert-PPN2O23PrznnSHDMoNYhE i{font-size:24px;margin-right:8px}.alert-PPN2O23PrznnSHDMoNYhE h1{font-size:16px;font-weight:bold;color:#32325d;margin-bottom:4px}.alert-PPN2O23PrznnSHDMoNYhE p{font-size:14px;line-height:1.57;margin:0}\n",""]),t.locals={"form-container":"form-container-24n5n0IwzDzQEN72XV23a",formContainer:"form-container-24n5n0IwzDzQEN72XV23a","form-inner-container":"form-inner-container-2gaFFnzpzSIJuajNY68-8V",formInnerContainer:"form-inner-container-2gaFFnzpzSIJuajNY68-8V","chain-selector":"chain-selector-rS6u47vQVu-ACRKE_w9Us",chainSelector:"chain-selector-rS6u47vQVu-ACRKE_w9Us",alert:"alert-PPN2O23PrznnSHDMoNYhE"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-2KIZwCr7N1Xb0-YkJkBZ1c{margin:0 calc(12px * -1) calc(12px * -1);display:flex;flex-direction:column;height:100%}.inner-top-container-ZvK9-pBt_Kw01lJPI6Cnl{display:flex;margin:0 12px;min-height:43px}\n",""]),t.locals={container:"container-2KIZwCr7N1Xb0-YkJkBZ1c","inner-top-container":"inner-top-container-ZvK9-pBt_Kw01lJPI6Cnl",innerTopContainer:"inner-top-container-ZvK9-pBt_Kw01lJPI6Cnl"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".tabs-13vRhGRkjXaQE3UAjNp5ag ul{list-style:none;display:flex;flex:1;padding:0}.tabs-13vRhGRkjXaQE3UAjNp5ag ul li{flex:1;text-align:center;border-bottom-color:#dbdbdb;border-bottom-style:solid;border-bottom-width:1px;padding-bottom:8px}.tabs-13vRhGRkjXaQE3UAjNp5ag ul li.active{border-bottom-color:#5e72e4;color:#5e72e4}.tabs-13vRhGRkjXaQE3UAjNp5ag .tab-bDUaZvNDbobate3pr8xJ1{cursor:pointer;text-decoration:none}.buttons-3vrCU9UlYWfCD3LBM3zLtL{display:flex}.button-2L_D8DyoeebOx_Bz2dJbwK{flex:1}.container-3OtxCjzM610uOOzlRydxh1{height:100%;display:flex;flex-direction:column}.tab-container-job1VTggLcr-y0YjGYyds{height:400px}.tab-container-job1VTggLcr-y0YjGYyds.data-tab-8UpwDq2W8ExsdL23lJO5Y{overflow:auto}.message-3qO2iyVHDSW5bK_dbma_zQ{height:400px;font-size:12px;overflow:visible;background:transparent}\n",""]),t.locals={tabs:"tabs-13vRhGRkjXaQE3UAjNp5ag",tab:"tab-bDUaZvNDbobate3pr8xJ1",buttons:"buttons-3vrCU9UlYWfCD3LBM3zLtL",button:"button-2L_D8DyoeebOx_Bz2dJbwK",container:"container-3OtxCjzM610uOOzlRydxh1","tab-container":"tab-container-job1VTggLcr-y0YjGYyds",tabContainer:"tab-container-job1VTggLcr-y0YjGYyds","data-tab":"data-tab-8UpwDq2W8ExsdL23lJO5Y",dataTab:"data-tab-8UpwDq2W8ExsdL23lJO5Y",message:"message-3qO2iyVHDSW5bK_dbma_zQ"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".hr-2kgJsIu8AnL0KDbHYkVKT9{background-color:gray;margin:0;height:1px}.container-1Brpow7XpFEdfVoHT4txzy{height:100%;display:flex;flex-direction:column}.msg-container-1SsJ7w4WoQtqcTVz3H56iG{overflow:auto;flex:1}.msg-container-1SsJ7w4WoQtqcTVz3H56iG hr{margin:8px 0}.msg-container-1SsJ7w4WoQtqcTVz3H56iG .msg-2vfr8iIl8J-KAocGoPyR5q{display:flex;flex-direction:row}.msg-container-1SsJ7w4WoQtqcTVz3H56iG .msg-2vfr8iIl8J-KAocGoPyR5q .icon-1434e60M2q7etJ6XOP4yWj{display:flex;flex-direction:column;margin:0 10px 0 8px;width:24px;text-align:center}.msg-container-1SsJ7w4WoQtqcTVz3H56iG .msg-2vfr8iIl8J-KAocGoPyR5q .icon-1434e60M2q7etJ6XOP4yWj i{font-size:20px;line-height:20px}.msg-container-1SsJ7w4WoQtqcTVz3H56iG .msg-2vfr8iIl8J-KAocGoPyR5q .content-container-1R6aet9LQvkCndZAJ6qVrw{display:flex;flex:1;flex-direction:column}.msg-container-1SsJ7w4WoQtqcTVz3H56iG .msg-2vfr8iIl8J-KAocGoPyR5q .content-container-1R6aet9LQvkCndZAJ6qVrw .content-title-1H_h5qv5oLo1jeULHuhRnq{font-size:16px;font-weight:bold}.msg-container-1SsJ7w4WoQtqcTVz3H56iG .msg-2vfr8iIl8J-KAocGoPyR5q .content-container-1R6aet9LQvkCndZAJ6qVrw .content-2AstwrA9t7EDzCutt-PgbE{font-size:12px;color:gray}\n",""]),t.locals={hr:"hr-2kgJsIu8AnL0KDbHYkVKT9",container:"container-1Brpow7XpFEdfVoHT4txzy","msg-container":"msg-container-1SsJ7w4WoQtqcTVz3H56iG",msgContainer:"msg-container-1SsJ7w4WoQtqcTVz3H56iG",msg:"msg-2vfr8iIl8J-KAocGoPyR5q",icon:"icon-1434e60M2q7etJ6XOP4yWj","content-container":"content-container-1R6aet9LQvkCndZAJ6qVrw",contentContainer:"content-container-1R6aet9LQvkCndZAJ6qVrw","content-title":"content-title-1H_h5qv5oLo1jeULHuhRnq",contentTitle:"content-title-1H_h5qv5oLo1jeULHuhRnq",content:"content-2AstwrA9t7EDzCutt-PgbE"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,'.container-ntNsiPKL_IQRPmyeinbiW{display:flex;flex-direction:column;height:100%}.container-ntNsiPKL_IQRPmyeinbiW .header-1EHiI1APm-P-fpWRHU6zkF{margin-top:20px;text-align:center}.container-ntNsiPKL_IQRPmyeinbiW .paragraph-3c0N6IjrV6ayrPyA2v87SE{text-align:center;padding:0 24px}.container-ntNsiPKL_IQRPmyeinbiW ul{list-style:none;font-size:14px;padding:0;width:fit-content;margin:auto;color:#525f7f}.container-ntNsiPKL_IQRPmyeinbiW ul li:before{content:"- "}.container-ntNsiPKL_IQRPmyeinbiW .warning-keDqioh2ncF3cfPZwAa9a{display:flex;flex-direction:row}.container-ntNsiPKL_IQRPmyeinbiW .warning-keDqioh2ncF3cfPZwAa9a .img-container-v4gA5_Y_ekilNjdaWbNVX{display:flex;height:100%;justify-content:center;align-items:center;margin-right:8px}.container-ntNsiPKL_IQRPmyeinbiW .warning-keDqioh2ncF3cfPZwAa9a .img-container-v4gA5_Y_ekilNjdaWbNVX img{height:36px}.container-ntNsiPKL_IQRPmyeinbiW .warning-keDqioh2ncF3cfPZwAa9a .content-1r5rvBR63FuLb7IdGPrp5v{display:flex;flex-direction:column}.container-ntNsiPKL_IQRPmyeinbiW .warning-keDqioh2ncF3cfPZwAa9a .content-1r5rvBR63FuLb7IdGPrp5v .title-Im_U1Xp8DANdgbDhHEsjK{font-size:16px;font-weight:bold;line-height:1.75;letter-spacing:-0.3px;color:white}.container-ntNsiPKL_IQRPmyeinbiW .warning-keDqioh2ncF3cfPZwAa9a .content-1r5rvBR63FuLb7IdGPrp5v .paragraph-3c0N6IjrV6ayrPyA2v87SE{font-size:13px;color:white}.container-ntNsiPKL_IQRPmyeinbiW .buttons-3kLWXpIpnbFout9JI1D6BJ{display:flex}.container-ntNsiPKL_IQRPmyeinbiW .button-3TBml_JV7gtC6z7GWHCdbd{flex:1}\n',""]),t.locals={container:"container-ntNsiPKL_IQRPmyeinbiW",header:"header-1EHiI1APm-P-fpWRHU6zkF",paragraph:"paragraph-3c0N6IjrV6ayrPyA2v87SE",warning:"warning-keDqioh2ncF3cfPZwAa9a","img-container":"img-container-v4gA5_Y_ekilNjdaWbNVX",imgContainer:"img-container-v4gA5_Y_ekilNjdaWbNVX",content:"content-1r5rvBR63FuLb7IdGPrp5v",title:"title-Im_U1Xp8DANdgbDhHEsjK",buttons:"buttons-3kLWXpIpnbFout9JI1D6BJ",button:"button-3TBml_JV7gtC6z7GWHCdbd"},e.exports=t},function(e,t){e.exports="assets/icons8-test-tube.svg"},function(e,t,n){(t=n(31)(!1)).push([e.i,".dropdown-6SAYb6ttX_Ah8-pjX6C5t{margin-left:12px}\n",""]),t.locals={dropdown:"dropdown-6SAYb6ttX_Ah8-pjX6C5t"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-2Jkq5EtlRdBXVZ6A4UJ9Yu{margin:0 calc(12px * -1) calc(12px * -1);display:flex;flex-direction:column;height:100%}\n",""]),t.locals={container:"container-2Jkq5EtlRdBXVZ6A4UJ9Yu"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-3fc_Dyj3qejpOqW5x5QaEr{display:flex;flex-direction:column;height:100%}\n",""]),t.locals={container:"container-3fc_Dyj3qejpOqW5x5QaEr"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-153pa5QUWkuPYxwnmEMZEF{display:flex;flex-direction:column;height:100%}\n",""]),t.locals={container:"container-153pa5QUWkuPYxwnmEMZEF"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".inner-container-3QrjhjP64Rl9jQVuuOa8x1{flex:1;display:flex;flex-direction:column;align-items:center}.trash-container-2u3RyX6p_95UBVAUcQDdXA{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 16px;font-size:16px;letter-spacing:-0.3px;text-align:center;color:#32325d}.trash-container-2u3RyX6p_95UBVAUcQDdXA img{height:60px;margin-bottom:20px}\n",""]),t.locals={"inner-container":"inner-container-3QrjhjP64Rl9jQVuuOa8x1",innerContainer:"inner-container-3QrjhjP64Rl9jQVuuOa8x1","trash-container":"trash-container-2u3RyX6p_95UBVAUcQDdXA",trashContainer:"trash-container-2u3RyX6p_95UBVAUcQDdXA"},e.exports=t},function(e,t){e.exports="assets/icons8-trash-can.svg"},function(e,t,n){(t=n(31)(!1)).push([e.i,".inner-container-3XATzmVgCiHE04jf-KvMzo{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center}.inner-container-3XATzmVgCiHE04jf-KvMzo .img-lock-1Hdj-nQA70w5isHJ1Y5N6T{height:96px}.inner-container-3XATzmVgCiHE04jf-KvMzo p{margin-top:18px;font-size:16px;letter-spacing:-0.3px;color:#32325d}\n",""]),t.locals={"inner-container":"inner-container-3XATzmVgCiHE04jf-KvMzo",innerContainer:"inner-container-3XATzmVgCiHE04jf-KvMzo","img-lock":"img-lock-1Hdj-nQA70w5isHJ1Y5N6T",imgLock:"img-lock-1Hdj-nQA70w5isHJ1Y5N6T"},e.exports=t},function(e,t){e.exports="assets/icons8-lock.svg"},function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){(t=n(31)(!1)).push([e.i,'.container-3u_XZUc9axKve4DOaN4vKp{display:flex;flex-direction:column;height:100%}.mnemonic-2-LWofEm9BuiJqQkuOTvcj{font-family:"Courier Prime", serif;font-size:16px;letter-spacing:-0.36px;padding:20px 30px;text-align:center;background:white;border-radius:6px;box-shadow:0 1px 3px rgba(50,50,93,0.15),0 1px 0 rgba(0,0,0,0.02) !important}.mnemonic-2-LWofEm9BuiJqQkuOTvcj.alt-hex-L1NaLSnnPF7xWcYX5OqmD{word-break:break-all}.mnemonic-2-LWofEm9BuiJqQkuOTvcj.alt-hex-L1NaLSnnPF7xWcYX5OqmD::before{content:"0x"}\n',""]),t.locals={container:"container-3u_XZUc9axKve4DOaN4vKp",mnemonic:"mnemonic-2-LWofEm9BuiJqQkuOTvcj","alt-hex":"alt-hex-L1NaLSnnPF7xWcYX5OqmD",altHex:"alt-hex-L1NaLSnnPF7xWcYX5OqmD"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-2MMUCAn9oGLmQPB0CFw2lu{height:100%;display:flex;flex-direction:column}.confirm-ledger-dialog-1_Et-ihYQkDU5ZKS8aWsOh{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 30px;text-align:center}.confirm-ledger-dialog-1_Et-ihYQkDU5ZKS8aWsOh img{height:100px}.confirm-ledger-dialog-1_Et-ihYQkDU5ZKS8aWsOh p{font-size:20px;color:#32325d;margin:0;padding:30px 0 50px 0}.confirm-ledger-dialog-1_Et-ihYQkDU5ZKS8aWsOh i{color:#9092b6}.sign-complete-dialog-3rPjmUhLX-3pdlLN1bic6Z{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:0 30px;text-align:center}.sign-complete-dialog-3rPjmUhLX-3pdlLN1bic6Z img{height:100px}.sign-complete-dialog-3rPjmUhLX-3pdlLN1bic6Z p{font-size:20px;color:#32325d;margin:0;padding:30px 0 50px 0}.sign-complete-dialog-3rPjmUhLX-3pdlLN1bic6Z .sub-paragraph-3AUPSpYL_3NVIpaKLmT0Jb{font-size:16px;color:#32325d}.instructions-2Q83LLUiXiBjSNqmoH6W3s{padding-top:20px;height:100%;display:flex;flex-direction:column}.instruction-2rR1tVUZSpTnC2pc_aTNcJ{margin-bottom:30px;padding-left:10px;padding-right:10px;color:#32325d;display:flex}.instruction-2rR1tVUZSpTnC2pc_aTNcJ .icon-1VMSf2Zxs3UUBguLFWIwY8{min-width:50px;display:flex;justify-content:center;margin-top:6px;margin-right:20px}.instruction-2rR1tVUZSpTnC2pc_aTNcJ.pass-DbCrxrcK0gQMd8rAi3XzI h1{color:#aaaaaa}.instruction-2rR1tVUZSpTnC2pc_aTNcJ.pass-DbCrxrcK0gQMd8rAi3XzI p{color:#aaaaaa}.instruction-2rR1tVUZSpTnC2pc_aTNcJ .inner-1iIBIvPgRdCi88VcqD7UC8 h1{font-size:24px;font-weight:bold;margin-bottom:8px}.instruction-2rR1tVUZSpTnC2pc_aTNcJ .inner-1iIBIvPgRdCi88VcqD7UC8 p{font-size:16px;line-height:1.5;letter-spacing:-0.3px;margin-bottom:10px}\n",""]),t.locals={container:"container-2MMUCAn9oGLmQPB0CFw2lu","confirm-ledger-dialog":"confirm-ledger-dialog-1_Et-ihYQkDU5ZKS8aWsOh",confirmLedgerDialog:"confirm-ledger-dialog-1_Et-ihYQkDU5ZKS8aWsOh","sign-complete-dialog":"sign-complete-dialog-3rPjmUhLX-3pdlLN1bic6Z",signCompleteDialog:"sign-complete-dialog-3rPjmUhLX-3pdlLN1bic6Z","sub-paragraph":"sub-paragraph-3AUPSpYL_3NVIpaKLmT0Jb",subParagraph:"sub-paragraph-3AUPSpYL_3NVIpaKLmT0Jb",instructions:"instructions-2Q83LLUiXiBjSNqmoH6W3s",instruction:"instruction-2rR1tVUZSpTnC2pc_aTNcJ",icon:"icon-1VMSf2Zxs3UUBguLFWIwY8",pass:"pass-DbCrxrcK0gQMd8rAi3XzI",inner:"inner-1iIBIvPgRdCi88VcqD7UC8"},e.exports=t},function(e,t){e.exports="assets/icons8-usb-2.svg"},function(e,t){e.exports="assets/atom-o.svg"},function(e,t){e.exports="assets/icons8-pen.svg"},function(e,t){e.exports="assets/icons8-checked.svg"},function(e,t){e.exports="assets/icons8-cancel.svg"},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-21Zz0rpiNy_31nCZMpf3_b{display:flex;flex-direction:column;height:100%}.container-21Zz0rpiNy_31nCZMpf3_b input:read-only{box-shadow:none !important;background:transparent;padding:0;height:20px}\n",""]),t.locals={container:"container-21Zz0rpiNy_31nCZMpf3_b"},e.exports=t},function(e,t,n){(t=n(31)(!1)).push([e.i,".container-2munaLsAPAMHq3LC6qt91h{margin:0 calc(12px * -1) calc(12px * -1);display:flex;flex-direction:column;height:100%}\n",""]),t.locals={container:"container-2munaLsAPAMHq3LC6qt91h"},e.exports=t},function(e,t){e.exports="assets/icon-16.png"},function(e,t){e.exports="assets/icon-48.png"},function(e,t){e.exports="assets/icon-128.png"},,,,,function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return _n})),n.d(t,"VERSION",(function(){return i.e})),n.d(t,"restArguments",(function(){return o})),n.d(t,"isObject",(function(){return a})),n.d(t,"isNull",(function(){return s})),n.d(t,"isUndefined",(function(){return c})),n.d(t,"isBoolean",(function(){return l})),n.d(t,"isElement",(function(){return u})),n.d(t,"isString",(function(){return d})),n.d(t,"isNumber",(function(){return p})),n.d(t,"isDate",(function(){return h})),n.d(t,"isRegExp",(function(){return m})),n.d(t,"isError",(function(){return b})),n.d(t,"isSymbol",(function(){return y})),n.d(t,"isArrayBuffer",(function(){return g})),n.d(t,"isDataView",(function(){return E})),n.d(t,"isArray",(function(){return T})),n.d(t,"isFunction",(function(){return _})),n.d(t,"isArguments",(function(){return I})),n.d(t,"isFinite",(function(){return P})),n.d(t,"isNaN",(function(){return C})),n.d(t,"isTypedArray",(function(){return U})),n.d(t,"isEmpty",(function(){return V})),n.d(t,"isMatch",(function(){return H})),n.d(t,"isEqual",(function(){return G})),n.d(t,"isMap",(function(){return re})),n.d(t,"isWeakMap",(function(){return ie})),n.d(t,"isSet",(function(){return oe})),n.d(t,"isWeakSet",(function(){return ae})),n.d(t,"keys",(function(){return z})),n.d(t,"allKeys",(function(){return J})),n.d(t,"values",(function(){return se})),n.d(t,"pairs",(function(){return ce})),n.d(t,"invert",(function(){return le})),n.d(t,"functions",(function(){return ue})),n.d(t,"methods",(function(){return ue})),n.d(t,"extend",(function(){return de})),n.d(t,"extendOwn",(function(){return pe})),n.d(t,"assign",(function(){return pe})),n.d(t,"defaults",(function(){return he})),n.d(t,"create",(function(){return be})),n.d(t,"clone",(function(){return ye})),n.d(t,"tap",(function(){return ge})),n.d(t,"get",(function(){return ke})),n.d(t,"has",(function(){return xe})),n.d(t,"mapObject",(function(){return Pe})),n.d(t,"identity",(function(){return Se})),n.d(t,"constant",(function(){return j})),n.d(t,"noop",(function(){return Ce})),n.d(t,"toPath",(function(){return ve})),n.d(t,"property",(function(){return Ee})),n.d(t,"propertyOf",(function(){return je})),n.d(t,"matcher",(function(){return Oe})),n.d(t,"matches",(function(){return Oe})),n.d(t,"times",(function(){return De})),n.d(t,"random",(function(){return Re})),n.d(t,"now",(function(){return Ne})),n.d(t,"escape",(function(){return Ue})),n.d(t,"unescape",(function(){return Fe})),n.d(t,"templateSettings",(function(){return qe})),n.d(t,"template",(function(){return Ke})),n.d(t,"result",(function(){return We})),n.d(t,"uniqueId",(function(){return Je})),n.d(t,"chain",(function(){return Qe})),n.d(t,"iteratee",(function(){return Me})),n.d(t,"partial",(function(){return Xe})),n.d(t,"bind",(function(){return et})),n.d(t,"bindAll",(function(){return rt})),n.d(t,"memoize",(function(){return it})),n.d(t,"delay",(function(){return ot})),n.d(t,"defer",(function(){return at})),n.d(t,"throttle",(function(){return st})),n.d(t,"debounce",(function(){return ct})),n.d(t,"wrap",(function(){return lt})),n.d(t,"negate",(function(){return ut})),n.d(t,"compose",(function(){return ft})),n.d(t,"after",(function(){return dt})),n.d(t,"before",(function(){return pt})),n.d(t,"once",(function(){return ht})),n.d(t,"findKey",(function(){return mt})),n.d(t,"findIndex",(function(){return yt})),n.d(t,"findLastIndex",(function(){return gt})),n.d(t,"sortedIndex",(function(){return vt})),n.d(t,"indexOf",(function(){return _t})),n.d(t,"lastIndexOf",(function(){return kt})),n.d(t,"find",(function(){return xt})),n.d(t,"detect",(function(){return xt})),n.d(t,"findWhere",(function(){return St})),n.d(t,"each",(function(){return Ot})),n.d(t,"forEach",(function(){return Ot})),n.d(t,"map",(function(){return Et})),n.d(t,"collect",(function(){return Et})),n.d(t,"reduce",(function(){return At})),n.d(t,"foldl",(function(){return At})),n.d(t,"inject",(function(){return At})),n.d(t,"reduceRight",(function(){return Mt})),n.d(t,"foldr",(function(){return Mt})),n.d(t,"filter",(function(){return It})),n.d(t,"select",(function(){return It})),n.d(t,"reject",(function(){return Pt})),n.d(t,"every",(function(){return Ct})),n.d(t,"all",(function(){return Ct})),n.d(t,"some",(function(){return jt})),n.d(t,"any",(function(){return jt})),n.d(t,"contains",(function(){return Dt})),n.d(t,"includes",(function(){return Dt})),n.d(t,"include",(function(){return Dt})),n.d(t,"invoke",(function(){return Rt})),n.d(t,"pluck",(function(){return Nt})),n.d(t,"where",(function(){return Bt})),n.d(t,"max",(function(){return Lt})),n.d(t,"min",(function(){return Ut})),n.d(t,"shuffle",(function(){return qt})),n.d(t,"sample",(function(){return Ft})),n.d(t,"sortBy",(function(){return zt})),n.d(t,"groupBy",(function(){return Ht})),n.d(t,"indexBy",(function(){return $t})),n.d(t,"countBy",(function(){return Kt})),n.d(t,"partition",(function(){return Wt})),n.d(t,"toArray",(function(){return Jt})),n.d(t,"size",(function(){return Qt})),n.d(t,"pick",(function(){return Zt})),n.d(t,"omit",(function(){return Xt})),n.d(t,"first",(function(){return tn})),n.d(t,"head",(function(){return tn})),n.d(t,"take",(function(){return tn})),n.d(t,"initial",(function(){return en})),n.d(t,"last",(function(){return rn})),n.d(t,"rest",(function(){return nn})),n.d(t,"tail",(function(){return nn})),n.d(t,"drop",(function(){return nn})),n.d(t,"compact",(function(){return on})),n.d(t,"flatten",(function(){return an})),n.d(t,"without",(function(){return cn})),n.d(t,"uniq",(function(){return ln})),n.d(t,"unique",(function(){return ln})),n.d(t,"union",(function(){return un})),n.d(t,"intersection",(function(){return fn})),n.d(t,"difference",(function(){return sn})),n.d(t,"unzip",(function(){return dn})),n.d(t,"transpose",(function(){return dn})),n.d(t,"zip",(function(){return pn})),n.d(t,"object",(function(){return hn})),n.d(t,"range",(function(){return mn})),n.d(t,"chunk",(function(){return bn})),n.d(t,"mixin",(function(){return gn}));var r={};n.r(r),n.d(r,"VERSION",(function(){return i.e})),n.d(r,"restArguments",(function(){return o})),n.d(r,"isObject",(function(){return a})),n.d(r,"isNull",(function(){return s})),n.d(r,"isUndefined",(function(){return c})),n.d(r,"isBoolean",(function(){return l})),n.d(r,"isElement",(function(){return u})),n.d(r,"isString",(function(){return d})),n.d(r,"isNumber",(function(){return p})),n.d(r,"isDate",(function(){return h})),n.d(r,"isRegExp",(function(){return m})),n.d(r,"isError",(function(){return b})),n.d(r,"isSymbol",(function(){return y})),n.d(r,"isArrayBuffer",(function(){return g})),n.d(r,"isDataView",(function(){return E})),n.d(r,"isArray",(function(){return T})),n.d(r,"isFunction",(function(){return _})),n.d(r,"isArguments",(function(){return I})),n.d(r,"isFinite",(function(){return P})),n.d(r,"isNaN",(function(){return C})),n.d(r,"isTypedArray",(function(){return U})),n.d(r,"isEmpty",(function(){return V})),n.d(r,"isMatch",(function(){return H})),n.d(r,"isEqual",(function(){return G})),n.d(r,"isMap",(function(){return re})),n.d(r,"isWeakMap",(function(){return ie})),n.d(r,"isSet",(function(){return oe})),n.d(r,"isWeakSet",(function(){return ae})),n.d(r,"keys",(function(){return z})),n.d(r,"allKeys",(function(){return J})),n.d(r,"values",(function(){return se})),n.d(r,"pairs",(function(){return ce})),n.d(r,"invert",(function(){return le})),n.d(r,"functions",(function(){return ue})),n.d(r,"methods",(function(){return ue})),n.d(r,"extend",(function(){return de})),n.d(r,"extendOwn",(function(){return pe})),n.d(r,"assign",(function(){return pe})),n.d(r,"defaults",(function(){return he})),n.d(r,"create",(function(){return be})),n.d(r,"clone",(function(){return ye})),n.d(r,"tap",(function(){return ge})),n.d(r,"get",(function(){return ke})),n.d(r,"has",(function(){return xe})),n.d(r,"mapObject",(function(){return Pe})),n.d(r,"identity",(function(){return Se})),n.d(r,"constant",(function(){return j})),n.d(r,"noop",(function(){return Ce})),n.d(r,"toPath",(function(){return ve})),n.d(r,"property",(function(){return Ee})),n.d(r,"propertyOf",(function(){return je})),n.d(r,"matcher",(function(){return Oe})),n.d(r,"matches",(function(){return Oe})),n.d(r,"times",(function(){return De})),n.d(r,"random",(function(){return Re})),n.d(r,"now",(function(){return Ne})),n.d(r,"escape",(function(){return Ue})),n.d(r,"unescape",(function(){return Fe})),n.d(r,"templateSettings",(function(){return qe})),n.d(r,"template",(function(){return Ke})),n.d(r,"result",(function(){return We})),n.d(r,"uniqueId",(function(){return Je})),n.d(r,"chain",(function(){return Qe})),n.d(r,"iteratee",(function(){return Me})),n.d(r,"partial",(function(){return Xe})),n.d(r,"bind",(function(){return et})),n.d(r,"bindAll",(function(){return rt})),n.d(r,"memoize",(function(){return it})),n.d(r,"delay",(function(){return ot})),n.d(r,"defer",(function(){return at})),n.d(r,"throttle",(function(){return st})),n.d(r,"debounce",(function(){return ct})),n.d(r,"wrap",(function(){return lt})),n.d(r,"negate",(function(){return ut})),n.d(r,"compose",(function(){return ft})),n.d(r,"after",(function(){return dt})),n.d(r,"before",(function(){return pt})),n.d(r,"once",(function(){return ht})),n.d(r,"findKey",(function(){return mt})),n.d(r,"findIndex",(function(){return yt})),n.d(r,"findLastIndex",(function(){return gt})),n.d(r,"sortedIndex",(function(){return vt})),n.d(r,"indexOf",(function(){return _t})),n.d(r,"lastIndexOf",(function(){return kt})),n.d(r,"find",(function(){return xt})),n.d(r,"detect",(function(){return xt})),n.d(r,"findWhere",(function(){return St})),n.d(r,"each",(function(){return Ot})),n.d(r,"forEach",(function(){return Ot})),n.d(r,"map",(function(){return Et})),n.d(r,"collect",(function(){return Et})),n.d(r,"reduce",(function(){return At})),n.d(r,"foldl",(function(){return At})),n.d(r,"inject",(function(){return At})),n.d(r,"reduceRight",(function(){return Mt})),n.d(r,"foldr",(function(){return Mt})),n.d(r,"filter",(function(){return It})),n.d(r,"select",(function(){return It})),n.d(r,"reject",(function(){return Pt})),n.d(r,"every",(function(){return Ct})),n.d(r,"all",(function(){return Ct})),n.d(r,"some",(function(){return jt})),n.d(r,"any",(function(){return jt})),n.d(r,"contains",(function(){return Dt})),n.d(r,"includes",(function(){return Dt})),n.d(r,"include",(function(){return Dt})),n.d(r,"invoke",(function(){return Rt})),n.d(r,"pluck",(function(){return Nt})),n.d(r,"where",(function(){return Bt})),n.d(r,"max",(function(){return Lt})),n.d(r,"min",(function(){return Ut})),n.d(r,"shuffle",(function(){return qt})),n.d(r,"sample",(function(){return Ft})),n.d(r,"sortBy",(function(){return zt})),n.d(r,"groupBy",(function(){return Ht})),n.d(r,"indexBy",(function(){return $t})),n.d(r,"countBy",(function(){return Kt})),n.d(r,"partition",(function(){return Wt})),n.d(r,"toArray",(function(){return Jt})),n.d(r,"size",(function(){return Qt})),n.d(r,"pick",(function(){return Zt})),n.d(r,"omit",(function(){return Xt})),n.d(r,"first",(function(){return tn})),n.d(r,"head",(function(){return tn})),n.d(r,"take",(function(){return tn})),n.d(r,"initial",(function(){return en})),n.d(r,"last",(function(){return rn})),n.d(r,"rest",(function(){return nn})),n.d(r,"tail",(function(){return nn})),n.d(r,"drop",(function(){return nn})),n.d(r,"compact",(function(){return on})),n.d(r,"flatten",(function(){return an})),n.d(r,"without",(function(){return cn})),n.d(r,"uniq",(function(){return ln})),n.d(r,"unique",(function(){return ln})),n.d(r,"union",(function(){return un})),n.d(r,"intersection",(function(){return fn})),n.d(r,"difference",(function(){return sn})),n.d(r,"unzip",(function(){return dn})),n.d(r,"transpose",(function(){return dn})),n.d(r,"zip",(function(){return pn})),n.d(r,"object",(function(){return hn})),n.d(r,"range",(function(){return mn})),n.d(r,"chunk",(function(){return bn})),n.d(r,"mixin",(function(){return gn})),n.d(r,"default",(function(){return vn}));var i=n(25);function o(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var o=Array(t+1);for(i=0;i<t;i++)o[i]=arguments[i];return o[t]=r,e.apply(this,o)}}function a(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function s(e){return null===e}function c(e){return void 0===e}function l(e){return!0===e||!1===e||"[object Boolean]"===i.t.call(e)}function u(e){return!(!e||1!==e.nodeType)}function f(e){var t="[object "+e+"]";return function(e){return i.t.call(e)===t}}var d=f("String"),p=f("Number"),h=f("Date"),m=f("RegExp"),b=f("Error"),y=f("Symbol"),g=f("ArrayBuffer"),v=f("Function"),w=i.p.document&&i.p.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof w&&(v=function(e){return"function"==typeof e||!1});var _=v,k=f("Object"),x=i.s&&k(new DataView(new ArrayBuffer(8))),S="undefined"!=typeof Map&&k(new Map),O=f("DataView");var E=x?function(e){return null!=e&&_(e.getInt8)&&g(e.buffer)}:O,T=i.k||f("Array");function A(e,t){return null!=e&&i.i.call(e,t)}var M=f("Arguments");!function(){M(arguments)||(M=function(e){return A(e,"callee")})}();var I=M;function P(e){return!y(e)&&Object(i.f)(e)&&!isNaN(parseFloat(e))}function C(e){return p(e)&&Object(i.g)(e)}function j(e){return function(){return e}}function D(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=i.b}}function R(e){return function(t){return null==t?void 0:t[e]}}var N=R("byteLength"),B=D(N),L=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var U=i.r?function(e){return i.l?Object(i.l)(e)&&!E(e):B(e)&&L.test(i.t.call(e))}:j(!1),F=R("length");function q(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=i.n.length,r=e.constructor,o=_(r)&&r.prototype||i.c,a="constructor";for(A(e,a)&&!t.contains(a)&&t.push(a);n--;)(a=i.n[n])in e&&e[a]!==o[a]&&!t.contains(a)&&t.push(a)}function z(e){if(!a(e))return[];if(i.m)return Object(i.m)(e);var t=[];for(var n in e)A(e,n)&&t.push(n);return i.h&&q(e,t),t}function V(e){if(null==e)return!0;var t=F(e);return"number"==typeof t&&(T(e)||d(e)||I(e))?0===t:0===F(z(e))}function H(e,t){var n=z(t),r=n.length;if(null==e)return!r;for(var i=Object(e),o=0;o<r;o++){var a=n[o];if(t[a]!==i[a]||!(a in i))return!1}return!0}function $(e){return e instanceof $?e:this instanceof $?void(this._wrapped=e):new $(e)}function K(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,N(e))}$.VERSION=i.e,$.prototype.value=function(){return this._wrapped},$.prototype.valueOf=$.prototype.toJSON=$.prototype.value,$.prototype.toString=function(){return String(this._wrapped)};function W(e,t,n,r){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!=e)return t!=t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&function e(t,n,r,o){t instanceof $&&(t=t._wrapped);n instanceof $&&(n=n._wrapped);var a=i.t.call(t);if(a!==i.t.call(n))return!1;if(x&&"[object Object]"==a&&E(t)){if(!E(n))return!1;a="[object DataView]"}switch(a){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return i.d.valueOf.call(t)===i.d.valueOf.call(n);case"[object ArrayBuffer]":case"[object DataView]":return e(K(t),K(n),r,o)}var s="[object Array]"===a;if(!s&&U(t)){if(N(t)!==N(n))return!1;if(t.buffer===n.buffer&&t.byteOffset===n.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,l=n.constructor;if(c!==l&&!(_(c)&&c instanceof c&&_(l)&&l instanceof l)&&"constructor"in t&&"constructor"in n)return!1}o=o||[];var u=(r=r||[]).length;for(;u--;)if(r[u]===t)return o[u]===n;if(r.push(t),o.push(n),s){if((u=t.length)!==n.length)return!1;for(;u--;)if(!W(t[u],n[u],r,o))return!1}else{var f,d=z(t);if(u=d.length,z(n).length!==u)return!1;for(;u--;)if(f=d[u],!A(n,f)||!W(t[f],n[f],r,o))return!1}return r.pop(),o.pop(),!0}(e,t,n,r)}function G(e,t){return W(e,t)}function J(e){if(!a(e))return[];var t=[];for(var n in e)t.push(n);return i.h&&q(e,t),t}function Q(e){var t=F(e);return function(n){if(null==n)return!1;var r=J(n);if(F(r))return!1;for(var i=0;i<t;i++)if(!_(n[e[i]]))return!1;return e!==te||!_(n[Y])}}var Y="forEach",Z=["clear","delete"],X=["get","has","set"],ee=Z.concat(Y,X),te=Z.concat(X),ne=["add"].concat(Z,Y,"has"),re=S?Q(ee):f("Map"),ie=S?Q(te):f("WeakMap"),oe=S?Q(ne):f("Set"),ae=f("WeakSet");function se(e){for(var t=z(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function ce(e){for(var t=z(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function le(e){for(var t={},n=z(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function ue(e){var t=[];for(var n in e)_(e[n])&&t.push(n);return t.sort()}function fe(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=e(o),s=a.length,c=0;c<s;c++){var l=a[c];t&&void 0!==n[l]||(n[l]=o[l])}return n}}var de=fe(J),pe=fe(z),he=fe(J,!0);function me(e){if(!a(e))return{};if(i.j)return Object(i.j)(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function be(e,t){var n=me(e);return t&&pe(n,t),n}function ye(e){return a(e)?T(e)?e.slice():de({},e):e}function ge(e,t){return t(e),e}function ve(e){return T(e)?e:[e]}function we(e){return $.toPath(e)}function _e(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function ke(e,t,n){var r=_e(e,we(t));return c(r)?n:r}function xe(e,t){for(var n=(t=we(t)).length,r=0;r<n;r++){var i=t[r];if(!A(e,i))return!1;e=e[i]}return!!n}function Se(e){return e}function Oe(e){return e=pe({},e),function(t){return H(t,e)}}function Ee(e){return e=we(e),function(t){return _e(t,e)}}function Te(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}}function Ae(e,t,n){return null==e?Se:_(e)?Te(e,t,n):a(e)&&!T(e)?Oe(e):Ee(e)}function Me(e,t){return Ae(e,t,1/0)}function Ie(e,t,n){return $.iteratee!==Me?$.iteratee(e,t):Ae(e,t,n)}function Pe(e,t,n){t=Ie(t,n);for(var r=z(e),i=r.length,o={},a=0;a<i;a++){var s=r[a];o[s]=t(e[s],s,e)}return o}function Ce(){}function je(e){return null==e?Ce:function(t){return ke(e,t)}}function De(e,t,n){var r=Array(Math.max(0,e));t=Te(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function Re(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}$.toPath=ve,$.iteratee=Me;var Ne=Date.now||function(){return(new Date).getTime()};function Be(e){var t=function(t){return e[t]},n="(?:"+z(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var Le={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ue=Be(Le),Fe=Be(le(Le)),qe=$.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ze=/(.)^/,Ve={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},He=/\\|'|\r|\n|\u2028|\u2029/g;function $e(e){return"\\"+Ve[e]}function Ke(e,t,n){!t&&n&&(t=n),t=he({},t,$.templateSettings);var r,i=RegExp([(t.escape||ze).source,(t.interpolate||ze).source,(t.evaluate||ze).source].join("|")+"|$","g"),o=0,a="__p+='";e.replace(i,(function(t,n,r,i,s){return a+=e.slice(o,s).replace(He,$e),o=s+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":i&&(a+="';\n"+i+"\n__p+='"),t})),a+="';\n",t.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{r=new Function(t.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(e){return r.call(this,e,$)},c=t.variable||"obj";return s.source="function("+c+"){\n"+a+"}",s}function We(e,t,n){var r=(t=we(t)).length;if(!r)return _(n)?n.call(e):n;for(var i=0;i<r;i++){var o=null==e?void 0:e[t[i]];void 0===o&&(o=n,i=r),e=_(o)?o.call(e):o}return e}var Ge=0;function Je(e){var t=++Ge+"";return e?e+t:t}function Qe(e){var t=$(e);return t._chain=!0,t}function Ye(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var o=me(e.prototype),s=e.apply(o,i);return a(s)?s:o}var Ze=o((function(e,t){var n=Ze.placeholder,r=function(){for(var i=0,o=t.length,a=Array(o),s=0;s<o;s++)a[s]=t[s]===n?arguments[i++]:t[s];for(;i<arguments.length;)a.push(arguments[i++]);return Ye(e,r,this,this,a)};return r}));Ze.placeholder=$;var Xe=Ze,et=o((function(e,t,n){if(!_(e))throw new TypeError("Bind must be called on a function");var r=o((function(i){return Ye(e,r,t,this,n.concat(i))}));return r})),tt=D(F);function nt(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,o=0,a=F(e);o<a;o++){var s=e[o];if(tt(s)&&(T(s)||I(s)))if(t>1)nt(s,t-1,n,r),i=r.length;else for(var c=0,l=s.length;c<l;)r[i++]=s[c++];else n||(r[i++]=s)}return r}var rt=o((function(e,t){var n=(t=nt(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=et(e[r],e)}return e}));function it(e,t){var n=function(r){var i=n.cache,o=""+(t?t.apply(this,arguments):r);return A(i,o)||(i[o]=e.apply(this,arguments)),i[o]};return n.cache={},n}var ot=o((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),at=Xe(ot,$,1);function st(e,t,n){var r,i,o,a,s=0;n||(n={});var c=function(){s=!1===n.leading?0:Ne(),r=null,a=e.apply(i,o),r||(i=o=null)},l=function(){var l=Ne();s||!1!==n.leading||(s=l);var u=t-(l-s);return i=this,o=arguments,u<=0||u>t?(r&&(clearTimeout(r),r=null),s=l,a=e.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,u)),a};return l.cancel=function(){clearTimeout(r),s=0,r=i=o=null},l}function ct(e,t,n){var r,i,a=function(t,n){r=null,n&&(i=e.apply(t,n))},s=o((function(o){if(r&&clearTimeout(r),n){var s=!r;r=setTimeout(a,t),s&&(i=e.apply(this,o))}else r=ot(a,t,this,o);return i}));return s.cancel=function(){clearTimeout(r),r=null},s}function lt(e,t){return Xe(t,e)}function ut(e){return function(){return!e.apply(this,arguments)}}function ft(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function dt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function pt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var ht=Xe(pt,2);function mt(e,t,n){t=Ie(t,n);for(var r,i=z(e),o=0,a=i.length;o<a;o++)if(t(e[r=i[o]],r,e))return r}function bt(e){return function(t,n,r){n=Ie(n,r);for(var i=F(t),o=e>0?0:i-1;o>=0&&o<i;o+=e)if(n(t[o],o,t))return o;return-1}}var yt=bt(1),gt=bt(-1);function vt(e,t,n,r){for(var i=(n=Ie(n,r,1))(t),o=0,a=F(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<i?o=s+1:a=s}return o}function wt(e,t,n){return function(r,o,a){var s=0,c=F(r);if("number"==typeof a)e>0?s=a>=0?a:Math.max(a+c,s):c=a>=0?Math.min(a+1,c):a+c+1;else if(n&&a&&c)return r[a=n(r,o)]===o?a:-1;if(o!=o)return(a=t(i.q.call(r,s,c),C))>=0?a+s:-1;for(a=e>0?s:c-1;a>=0&&a<c;a+=e)if(r[a]===o)return a;return-1}}var _t=wt(1,yt,vt),kt=wt(-1,gt);function xt(e,t,n){var r=(tt(e)?yt:mt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function St(e,t){return xt(e,Oe(t))}function Ot(e,t,n){var r,i;if(t=Te(t,n),tt(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var o=z(e);for(r=0,i=o.length;r<i;r++)t(e[o[r]],o[r],e)}return e}function Et(e,t,n){t=Ie(t,n);for(var r=!tt(e)&&z(e),i=(r||e).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=t(e[s],s,e)}return o}function Tt(e){var t=function(t,n,r,i){var o=!tt(t)&&z(t),a=(o||t).length,s=e>0?0:a-1;for(i||(r=t[o?o[s]:s],s+=e);s>=0&&s<a;s+=e){var c=o?o[s]:s;r=n(r,t[c],c,t)}return r};return function(e,n,r,i){var o=arguments.length>=3;return t(e,Te(n,i,4),r,o)}}var At=Tt(1),Mt=Tt(-1);function It(e,t,n){var r=[];return t=Ie(t,n),Ot(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function Pt(e,t,n){return It(e,ut(Ie(t)),n)}function Ct(e,t,n){t=Ie(t,n);for(var r=!tt(e)&&z(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(!t(e[a],a,e))return!1}return!0}function jt(e,t,n){t=Ie(t,n);for(var r=!tt(e)&&z(e),i=(r||e).length,o=0;o<i;o++){var a=r?r[o]:o;if(t(e[a],a,e))return!0}return!1}function Dt(e,t,n,r){return tt(e)||(e=se(e)),("number"!=typeof n||r)&&(n=0),_t(e,t,n)>=0}var Rt=o((function(e,t,n){var r,i;return _(t)?i=t:(t=we(t),r=t.slice(0,-1),t=t[t.length-1]),Et(e,(function(e){var o=i;if(!o){if(r&&r.length&&(e=_e(e,r)),null==e)return;o=e[t]}return null==o?o:o.apply(e,n)}))}));function Nt(e,t){return Et(e,Ee(t))}function Bt(e,t){return It(e,Oe(t))}function Lt(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=tt(e)?e:se(e)).length;s<c;s++)null!=(r=e[s])&&r>o&&(o=r);else t=Ie(t,n),Ot(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o}function Ut(e,t,n){var r,i,o=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=tt(e)?e:se(e)).length;s<c;s++)null!=(r=e[s])&&r<o&&(o=r);else t=Ie(t,n),Ot(e,(function(e,n,r){((i=t(e,n,r))<a||i===1/0&&o===1/0)&&(o=e,a=i)}));return o}function Ft(e,t,n){if(null==t||n)return tt(e)||(e=se(e)),e[Re(e.length-1)];var r=tt(e)?ye(e):se(e),i=F(r);t=Math.max(Math.min(t,i),0);for(var o=i-1,a=0;a<t;a++){var s=Re(a,o),c=r[a];r[a]=r[s],r[s]=c}return r.slice(0,t)}function qt(e){return Ft(e,1/0)}function zt(e,t,n){var r=0;return t=Ie(t,n),Nt(Et(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function Vt(e,t){return function(n,r,i){var o=t?[[],[]]:{};return r=Ie(r,i),Ot(n,(function(t,i){var a=r(t,i,n);e(o,t,a)})),o}}var Ht=Vt((function(e,t,n){A(e,n)?e[n].push(t):e[n]=[t]})),$t=Vt((function(e,t,n){e[n]=t})),Kt=Vt((function(e,t,n){A(e,n)?e[n]++:e[n]=1})),Wt=Vt((function(e,t,n){e[n?0:1].push(t)}),!0),Gt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Jt(e){return e?T(e)?i.q.call(e):d(e)?e.match(Gt):tt(e)?Et(e,Se):se(e):[]}function Qt(e){return null==e?0:tt(e)?e.length:z(e).length}function Yt(e,t,n){return t in n}var Zt=o((function(e,t){var n={},r=t[0];if(null==e)return n;_(r)?(t.length>1&&(r=Te(r,t[1])),t=J(e)):(r=Yt,t=nt(t,!1,!1),e=Object(e));for(var i=0,o=t.length;i<o;i++){var a=t[i],s=e[a];r(s,a,e)&&(n[a]=s)}return n})),Xt=o((function(e,t){var n,r=t[0];return _(r)?(r=ut(r),t.length>1&&(n=t[1])):(t=Et(nt(t,!1,!1),String),r=function(e,n){return!Dt(t,n)}),Zt(e,r,n)}));function en(e,t,n){return i.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function tn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:en(e,e.length-t)}function nn(e,t,n){return i.q.call(e,null==t||n?1:t)}function rn(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:nn(e,Math.max(0,e.length-t))}function on(e){return It(e,Boolean)}function an(e,t){return nt(e,t,!1)}var sn=o((function(e,t){return t=nt(t,!0,!0),It(e,(function(e){return!Dt(t,e)}))})),cn=o((function(e,t){return sn(e,t)}));function ln(e,t,n,r){l(t)||(r=n,n=t,t=!1),null!=n&&(n=Ie(n,r));for(var i=[],o=[],a=0,s=F(e);a<s;a++){var c=e[a],u=n?n(c,a,e):c;t&&!n?(a&&o===u||i.push(c),o=u):n?Dt(o,u)||(o.push(u),i.push(c)):Dt(i,c)||i.push(c)}return i}var un=o((function(e){return ln(nt(e,!0,!0))}));function fn(e){for(var t=[],n=arguments.length,r=0,i=F(e);r<i;r++){var o=e[r];if(!Dt(t,o)){var a;for(a=1;a<n&&Dt(arguments[a],o);a++);a===n&&t.push(o)}}return t}function dn(e){for(var t=e&&Lt(e,F).length||0,n=Array(t),r=0;r<t;r++)n[r]=Nt(e,r);return n}var pn=o(dn);function hn(e,t){for(var n={},r=0,i=F(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function mn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),o=0;o<r;o++,e+=n)i[o]=e;return i}function bn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,o=e.length;r<o;)n.push(i.q.call(e,r,r+=t));return n}function yn(e,t){return e._chain?$(t).chain():t}function gn(e){return Ot(ue(e),(function(t){var n=$[t]=e[t];$.prototype[t]=function(){var e=[this._wrapped];return i.o.apply(e,arguments),yn(this,n.apply($,e))}})),$}Ot(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=i.a[e];$.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),yn(this,n)}})),Ot(["concat","join","slice"],(function(e){var t=i.a[e];$.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),yn(this,e)}}));var vn=$,wn=gn(r);wn._=wn;var _n=wn},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),o=n(931),a=n.n(o),s=n(210),c=(n(1082),n(20)),l=n(53),u=n(230),f=n(1),d=n.n(f),p=n(19),h=n(26),m=n(218);i.a.Component;var b=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(u.b)(t.props),t}return Object(l.a)(t,e),t.prototype.render=function(){return i.a.createElement(c.Router,{history:this.history,children:this.props.children})},t}(i.a.Component);var y=function(e,t){return"function"==typeof e?e(t):e},g=function(e,t){return"string"==typeof e?Object(u.c)(e,null,null,t):e},v=function(e){return e},w=i.a.forwardRef;void 0===w&&(w=v);var _=w((function(e,t){var n=e.innerRef,r=e.navigate,o=e.onClick,a=Object(h.a)(e,["innerRef","navigate","onClick"]),s=a.target,c=Object(p.a)({},a,{onClick:function(e){try{o&&o(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return c.ref=v!==w&&t||n,i.a.createElement("a",c)}));var k=w((function(e,t){var n=e.component,r=void 0===n?_:n,o=e.replace,a=e.to,s=e.innerRef,l=Object(h.a)(e,["component","replace","to","innerRef"]);return i.a.createElement(c.__RouterContext.Consumer,null,(function(e){e||Object(m.a)(!1);var n=e.history,c=g(y(a,e.location),e.location),u=c?n.createHref(c):"",f=Object(p.a)({},l,{href:u,navigate:function(){var t=y(a,e.location);(o?n.replace:n.push)(t)}});return v!==w?f.ref=t||s:f.innerRef=s,i.a.createElement(r,f)}))})),x=function(e){return e},S=i.a.forwardRef;void 0===S&&(S=x);S((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,o=e.activeClassName,a=void 0===o?"active":o,s=e.activeStyle,l=e.className,u=e.exact,f=e.isActive,d=e.location,b=e.sensitive,v=e.strict,w=e.style,_=e.to,O=e.innerRef,E=Object(h.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return i.a.createElement(c.__RouterContext.Consumer,null,(function(e){e||Object(m.a)(!1);var n=d||e.location,o=g(y(_,n),n),h=o.pathname,T=h&&h.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),A=T?Object(c.matchPath)(n.pathname,{path:T,exact:u,sensitive:b,strict:v}):null,M=!!(f?f(A,n):A),I=M?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(l,a):l,P=M?Object(p.a)({},w,{},s):w,C=Object(p.a)({"aria-current":M&&r||null,className:I,style:P,to:o},E);return x!==S?C.ref=t||O:C.innerRef=O,i.a.createElement(k,C)}))}));var O=n(46),E=n(402),T=n(14),A=n(21),M=n(152),I=n.n(M),P=n(228),C=n(388),j=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const D=Object(T.a)(()=>{const{chainStore:e,permissionStore:t}=Object(A.b)(),o=t.waitingBasicAccessPermissions.length>0?t.waitingBasicAccessPermissions[0]:void 0,a=Object(O.useInteractionInfo)(()=>{t.rejectAll()}),s=Object(r.useMemo)(()=>{if(o)for(const t of o.data.chainIds)if(e.hasChain(t)){const n=e.getChain(t);if(n.features&&n.features.includes("secretwasm"))return!0}return!1},[e,o]),c=Object(r.useMemo)(()=>o?o.data.origins.map(e=>new URL(e).host).join(", "):"",[o]),l=Object(r.useMemo)(()=>o?o.data.chainIds.join(", "):"",[o]);return i.a.createElement(P.a,{style:{height:"100%",paddingTop:"80px"}},i.a.createElement("div",{className:I.a.container},i.a.createElement("img",{src:n(413),alt:"logo",style:{height:"92px"}}),i.a.createElement("h1",{className:I.a.header},i.a.createElement(C.a,{id:"access.title"})),i.a.createElement("p",{className:I.a.paragraph},i.a.createElement(C.a,{id:"access.paragraph",values:{host:c,chainId:l,b:(...e)=>i.a.createElement("b",null,e)}})),i.a.createElement("div",{className:I.a.permission},i.a.createElement(C.a,{id:"access.permission.title"})),i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement(C.a,{id:"access.permission.account"})),i.a.createElement("li",null,i.a.createElement(C.a,{id:"access.permission.tx-request"})),s?i.a.createElement("li",null,i.a.createElement(C.a,{id:"access.permission.secret"})):null),i.a.createElement("div",{style:{flex:1}}),i.a.createElement("div",{className:I.a.buttons},i.a.createElement(E.a,{className:I.a.button,color:"danger",outline:!0,onClick:e=>j(void 0,void 0,void 0,(function*(){e.preventDefault(),o&&(yield t.reject(o.id),0===t.waitingBasicAccessPermissions.length&&a.interaction&&!a.interactionInternal&&window.close())})),"data-loading":t.isLoading},i.a.createElement(C.a,{id:"access.button.reject"})),i.a.createElement(E.a,{className:I.a.button,color:"primary",onClick:e=>j(void 0,void 0,void 0,(function*(){e.preventDefault(),o&&(yield t.approve(o.id),0===t.waitingBasicAccessPermissions.length&&a.interaction&&!a.interactionInternal&&window.close())})),disabled:!o,"data-loading":t.isLoading},i.a.createElement(C.a,{id:"access.button.approve"})))))});var R=n(11),N=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const B=Object(T.a)(()=>{const{chainStore:e,permissionStore:t}=Object(A.b)(),o=t.waitingSecret20ViewingKeyAccessPermissions.length>0?t.waitingSecret20ViewingKeyAccessPermissions[0]:void 0,a=Object(O.useInteractionInfo)(()=>{t.rejectAll()});Object(r.useEffect)(()=>{o&&e.selectChain(o.data.chainIds[0])},[e,o]);const s=Object(r.useMemo)(()=>o?o.data.origins.map(e=>new URL(e).host).join(","):"",[o]);return i.a.createElement(P.a,{style:{height:"100%",paddingTop:"80px"}},i.a.createElement("div",{className:I.a.container},i.a.createElement("img",{src:n(413),alt:"logo",style:{height:"92px"}}),i.a.createElement("h1",{className:I.a.header},i.a.createElement(C.a,{id:"access.viewing-key.title"})),i.a.createElement("p",{className:I.a.paragraph},i.a.createElement(C.a,{id:"access.viewing-key.paragraph",values:{host:s,contractAddress:o?o.data.contractAddress:"loading...",b:(...e)=>i.a.createElement("b",null,e)}})),i.a.createElement("div",{className:I.a.permission},i.a.createElement(C.a,{id:"access.viewing-key.permission.title"})),i.a.createElement("ul",null,i.a.createElement("li",null,i.a.createElement(C.a,{id:"access.viewing-key.permission.secret"}))),i.a.createElement("div",{style:{flex:1}}),i.a.createElement("div",{className:I.a.buttons},i.a.createElement(E.a,{className:I.a.button,color:"danger",outline:!0,onClick:e=>N(void 0,void 0,void 0,(function*(){e.preventDefault(),o&&(yield t.reject(o.id),0===t.waitingSecret20ViewingKeyAccessPermissions.length&&a.interaction&&!a.interactionInternal&&window.close())})),"data-loading":t.isLoading},i.a.createElement(C.a,{id:"access.viewing-key.button.reject"})),i.a.createElement(E.a,{className:I.a.button,color:"primary",onClick:e=>N(void 0,void 0,void 0,(function*(){e.preventDefault(),o&&(yield t.approve(o.id),0===t.waitingSecret20ViewingKeyAccessPermissions.length&&a.interaction&&!a.interactionInternal&&window.close())})),disabled:!o||R.ChainIdHelper.parse(e.current.chainId).identifier!==R.ChainIdHelper.parse(o.data.chainIds[0]).identifier,"data-loading":t.isLoading},i.a.createElement(C.a,{id:"access.viewing-key.button.approve"})))))});var L=n(889),U=n(55),F=n(10),q=n.n(F),z=n(8),V={tag:z.p,inverse:d.a.bool,color:d.a.string,body:d.a.bool,outline:d.a.bool,className:d.a.string,cssModule:d.a.object,innerRef:d.a.oneOfType([d.a.object,d.a.string,d.a.func])},H=function(e){var t=e.className,n=e.cssModule,r=e.color,o=e.body,a=e.inverse,s=e.outline,c=e.tag,l=e.innerRef,u=Object(h.a)(e,["className","cssModule","color","body","inverse","outline","tag","innerRef"]),f=Object(z.l)(q()(t,"card",!!a&&"text-white",!!o&&"card-body",!!r&&(s?"border":"bg")+"-"+r),n);return i.a.createElement(c,Object(p.a)({},u,{className:f,ref:l}))};H.propTypes=V,H.defaultProps={tag:"div"};var $=H,K={tag:z.p,className:d.a.string,cssModule:d.a.object,innerRef:d.a.oneOfType([d.a.object,d.a.string,d.a.func])},W=function(e){var t=e.className,n=e.cssModule,r=e.innerRef,o=e.tag,a=Object(h.a)(e,["className","cssModule","innerRef","tag"]),s=Object(z.l)(q()(t,"card-body"),n);return i.a.createElement(o,Object(p.a)({},a,{className:s,ref:r}))};W.propTypes=K,W.defaultProps={tag:"div"};var G=W,J=n(846),Q=n.n(J),Y=n(403),Z=n.n(Y);const X=Object(T.a)(()=>{var e,t;const{chainStore:n,keyRingStore:r}=Object(A.b)(),o=Object(c.useHistory)();return i.a.createElement("div",{className:Z.a.container},i.a.createElement("div",{className:Z.a.item,onClick:()=>{o.push({pathname:"/setting/address-book"})}},i.a.createElement(C.a,{id:"main.menu.address-book"})),i.a.createElement("div",{className:Z.a.item,onClick:()=>{o.push({pathname:"/setting"})}},i.a.createElement(C.a,{id:"main.menu.settings"})),(null!==(e=n.current.features)&&void 0!==e?e:[]).find(e=>"cosmwasm"===e||"secretwasm"===e)?i.a.createElement("div",{className:Z.a.item,onClick:()=>{o.push({pathname:"/setting/token/add"})}},i.a.createElement(C.a,{id:"setting.token.add"})):null,(null!==(t=n.current.features)&&void 0!==t?t:[]).find(e=>"secretwasm"===e)?i.a.createElement("div",{className:Z.a.item,onClick:()=>{o.push({pathname:"/setting/token/manage"})}},i.a.createElement(C.a,{id:"main.menu.token-list"})):null,i.a.createElement("div",{style:{flex:1}}),i.a.createElement("div",{className:Z.a.item,onClick:()=>{r.lock()}},i.a.createElement(C.a,{id:"main.menu.sign-out"})),i.a.createElement("div",null,i.a.createElement("hr",{className:"mx-4 my-1"})),i.a.createElement("div",{className:Z.a.footer},i.a.createElement("a",{className:Z.a.inner,href:"https://github.com/everett-protocol/keplr-extension",target:"_blank",rel:"noopener noreferrer"},i.a.createElement("i",{className:"fab fa-github"}),i.a.createElement(C.a,{id:"main.menu.footer.github"}))))});var ee=n(839),te=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class ne extends i.a.Component{constructor(){super(...arguments),this.copyRef=i.a.createRef(),this.onCopy=e=>te(this,void 0,void 0,(function*(){if(e.clipboardData){const e=yield navigator.clipboard.readText();yield navigator.clipboard.writeText(e.replace(/(\r\n|\n|\r)/gm,""))}}))}componentDidMount(){this.copyRef.current&&this.copyRef.current.addEventListener("copy",this.onCopy)}componentWillUnmount(){this.copyRef.current&&this.copyRef.current.removeEventListener("copy",this.onCopy)}render(){const{tooltipFontSize:e,lineBreakBeforePrefix:t,children:n}=this.props,r=this.props.tooltipAddress?this.props.tooltipAddress:n;return i.a.createElement(ee.a,{trigger:"hover",options:{placement:"top"},tooltip:i.a.createElement("div",{ref:this.copyRef,className:"address-tooltip",style:{fontSize:e}},t&&r.length>0?r.split("1").map((e,t)=>0===t?i.a.createElement("div",{key:t},e+"1"):i.a.createElement("div",{key:t},e)):r)},R.Bech32Address.shortenAddress(n,this.props.maxCharacters))}}var re=n(867),ie=n.n(re),oe=n(111),ae=n(869),se=n(93),ce=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const le=Object(T.a)(()=>{const{accountStore:e,chainStore:t}=Object(A.b)(),n=e.getAccount(t.current.chainId),o=Object(ae.a)(),a=Object(oe.c)(),s=Object(r.useCallback)(()=>ce(void 0,void 0,void 0,(function*(){n.walletStatus===se.WalletStatus.Loaded&&(yield navigator.clipboard.writeText(n.bech32Address),a.push({placement:"top-center",type:"success",duration:2,content:o.formatMessage({id:"main.address.copied"}),canDelete:!0,transition:{duration:.25}}))})),[n.walletStatus,n.bech32Address,a,o]);return i.a.createElement("div",null,i.a.createElement("div",{className:ie.a.containerName},i.a.createElement("div",{style:{flex:1}}),i.a.createElement("div",{className:ie.a.name},n.walletStatus===se.WalletStatus.Loaded?n.name||o.formatMessage({id:"setting.keyring.unnamed-account"}):"Loading..."),i.a.createElement("div",{style:{flex:1}})),i.a.createElement("div",{className:ie.a.containerAccount},i.a.createElement("div",{style:{flex:1}}),i.a.createElement("div",{className:ie.a.address,onClick:s},i.a.createElement(ne,{maxCharacters:22,lineBreakBeforePrefix:!1},n.walletStatus===se.WalletStatus.Loaded&&n.bech32Address?n.bech32Address:"...")),i.a.createElement("div",{style:{flex:1}})))});var ue=n(847),fe=n.n(ue),de=n(940),pe=n(829),he=n.n(pe),me=n(23),be=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const ye=n(1481),ge=({bech32Address:e})=>{const t=Object(r.useRef)(null);Object(r.useEffect)(()=>{t.current&&e&&ye.toCanvas(t.current,e)},[e]);const n=Object(oe.c)(),o=Object(r.useCallback)(t=>be(void 0,void 0,void 0,(function*(){yield navigator.clipboard.writeText(e),n.push({placement:"top-center",type:"success",duration:2,content:"Address copied!",canDelete:!0,transition:{duration:.25}}),t.preventDefault()})),[n,e]);return i.a.createElement("div",{style:{display:"flex",flexDirection:"column",height:"250px"},className:fe.a.depositModal},i.a.createElement("div",{style:{flex:1}}),i.a.createElement("div",{style:{display:"flex"}},i.a.createElement("div",{style:{flex:1}}),i.a.createElement("canvas",{id:"qrcode",ref:t}),i.a.createElement("div",{style:{flex:1}})),i.a.createElement("div",{className:fe.a.address,onClick:o},i.a.createElement(ne,{maxCharacters:28,lineBreakBeforePrefix:!1,tooltipFontSize:"12px"},e)),i.a.createElement("div",{style:{flex:1}}))},ve=Object(T.a)(()=>{const{accountStore:e,chainStore:t,queriesStore:n}=Object(A.b)(),o=e.getAccount(t.current.chainId),a=n.get(t.current.chainId).getQueryBalances().getQueryBech32Address(o.bech32Address),[s,l]=Object(r.useState)(!1),[u,f]=Object(r.useState)(!1),d=Object(c.useHistory)(),p=void 0!==a.balances.find(e=>e.balance.toDec().gt(new me.Dec(0))),h=Object(r.useRef)(null);return i.a.createElement("div",{className:fe.a.containerTxButton},i.a.createElement(he.a,{style:{content:{width:"330px",minWidth:"330px"}},isOpen:s,onRequestClose:()=>{l(!1)}},i.a.createElement(ge,{bech32Address:o.bech32Address})),i.a.createElement(E.a,{className:fe.a.button,color:"primary",outline:!0,onClick:e=>{e.preventDefault(),l(!0)}},i.a.createElement(C.a,{id:"main.account.button.deposit"})),i.a.createElement(E.a,{innerRef:h,className:q()(fe.a.button,{disabled:!p}),color:"primary",outline:!0,"data-loading":"send"===o.isSendingMsg,onClick:e=>{e.preventDefault(),p&&d.push("/send")}},i.a.createElement(C.a,{id:"main.account.button.send"})),p?null:i.a.createElement(de.a,{placement:"bottom",isOpen:u,target:h,toggle:()=>f(e=>!e),fade:!0},i.a.createElement(C.a,{id:"main.account.tooltip.no-asset"})))});var we=n(220),_e=n.n(we),ke=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const xe=i.a.lazy(()=>ke(void 0,void 0,void 0,(function*(){const e=yield Promise.all([n.e(5),n.e(4)]).then(n.t.bind(null,1826,7));return e.Chart.pluginService.register({beforeDraw:function(e){const t={x:(e.chartArea.left+e.chartArea.right)/2,y:(e.chartArea.top+e.chartArea.bottom)/2,radius:(e.outerRadius+e.innerRadius)/2,thickness:(e.outerRadius-e.innerRadius)/2},n=e.chart.ctx;n.save(),n.beginPath(),n.arc(t.x,t.y,t.radius,0,2*Math.PI),n.closePath(),n.lineWidth=2*t.thickness,n.strokeStyle="#f4f5f7",n.stroke(),n.restore()},beforeTooltipDraw:function(e){const t=e.getDatasetMeta(0).data,n={x:(e.chartArea.left+e.chartArea.right)/2,y:(e.chartArea.top+e.chartArea.bottom)/2,radius:(e.outerRadius+e.innerRadius)/2,thickness:(e.outerRadius-e.innerRadius)/2},r=e.chart.ctx,i=(e,t)=>{r.save(),r.translate(n.x,n.y),r.fillStyle=t,r.beginPath(),r.arc(n.radius*Math.sin(e),n.radius*Math.cos(e),n.thickness,0,2*Math.PI),r.closePath(),r.fill(),r.restore()};2==t.length&&((e,t)=>{const n=Math.PI/2-e._view.startAngle,r=Math.PI/2-e._view.endAngle,o=Math.PI/2-t._view.startAngle,a=Math.atan2(Math.sin(Math.PI/2-t._view.endAngle),Math.cos(Math.PI/2-t._view.endAngle));Math.abs(n-a)>Math.PI/180*3&&i(n,e._view.backgroundColor),Math.abs(r-o)>Math.PI/180*3&&i(r,e._view.backgroundColor),(Math.abs(o)>Math.PI/180*3||Math.abs(a)>Math.PI/180*3)&&(i(o,t._view.backgroundColor),i(a,t._view.backgroundColor))})(t[0],t[1])}}),{default:e.Doughnut}}))),Se=Object(T.a)(()=>{var e,t;const{chainStore:n,accountStore:r,queriesStore:o,priceStore:a}=Object(A.b)(),c=Object(ae.a)(),l=Object(s.b)().fiatCurrency,u=n.current,f=o.get(u.chainId),d=r.getAccount(u.chainId),p=f.getQueryBalances().getQueryBech32Address(d.bech32Address).stakable,h=p.balance,m=f.getQueryDelegations().getQueryBech32Address(d.bech32Address).total.upperCase(!0),b=f.getQueryUnbondingDelegations().getQueryBech32Address(d.bech32Address).total.upperCase(!0),y=m.add(b),g=h.add(y),v=a.calculatePrice(l,h),w=a.calculatePrice(l,y),_=a.calculatePrice(l,g),k=[v?parseFloat(v.toDec().toString()):parseFloat(h.toDec().toString()),w?parseFloat(w.toDec().toString()):parseFloat(y.toDec().toString())];return i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:_e.a.containerChart},i.a.createElement("div",{className:_e.a.centerText},i.a.createElement("div",{className:_e.a.big},i.a.createElement(C.a,{id:"main.account.chart.total-balance"})),i.a.createElement("div",{className:_e.a.small},_?_.toString():g.shrink(!0).maxDecimals(6).toString()),i.a.createElement("div",{className:_e.a.indicatorIcon},i.a.createElement(i.a.Fragment,null,p.isFetching?i.a.createElement("i",{className:"fas fa-spinner fa-spin"}):p.error?i.a.createElement(ee.a,{tooltip:(null===(e=p.error)||void 0===e?void 0:e.message)||(null===(t=p.error)||void 0===t?void 0:t.statusText),theme:"dark",trigger:"hover",options:{placement:"top"}},i.a.createElement("i",{className:"fas fa-exclamation-triangle text-danger"})):null))),i.a.createElement(i.a.Suspense,{fallback:i.a.createElement("div",{style:{height:"150px"}})},i.a.createElement(xe,{data:{datasets:[{data:k,backgroundColor:["#5e72e4","#11cdef"],borderWidth:[0,0]}],labels:[c.formatMessage({id:"main.account.chart.available-balance"}),c.formatMessage({id:"main.account.chart.staked-balance"})]},options:{rotation:.5*Math.PI,cutoutPercentage:85,legend:{display:!1},tooltips:{callbacks:{label:e=>{let t=new me.Dec(0);return 0===e.index?(g.toDec().equals(new me.Dec(0))||(t=h.toDec().quo(g.toDec()).mul(me.DecUtils.getPrecisionDec(2))),`${v?v.toString():h.separator("").trim(!0).shrink(!0).maxDecimals(6).toString()} (${t.toString(1)}%)`):1===e.index?(g.toDec().equals(new me.Dec(0))||(t=y.toDec().quo(g.toDec()).mul(me.DecUtils.getPrecisionDec(2))),`${w?w.toString():y.separator("").trim(!0).shrink(!0).maxDecimals(6).toString()} (${t.toString(1)}%)`):"Unexpected error"}}}}}))),i.a.createElement("div",{style:{marginTop:"12px",width:"100%"}},i.a.createElement("div",{className:_e.a.legend},i.a.createElement("div",{className:_e.a.label,style:{color:"#5e72e4"}},i.a.createElement("span",{className:"badge-dot badge badge-secondary"},i.a.createElement("i",{className:"bg-primary"})),i.a.createElement(C.a,{id:"main.account.chart.available-balance"})),i.a.createElement("div",{style:{minWidth:"16px"}}),i.a.createElement("div",{className:_e.a.value,style:{color:"#525f7f"}},h.shrink(!0).maxDecimals(6).toString())),i.a.createElement("div",{className:_e.a.legend},i.a.createElement("div",{className:_e.a.label,style:{color:"#11cdef"}},i.a.createElement("span",{className:"badge-dot badge badge-secondary"},i.a.createElement("i",{className:"bg-info"})),i.a.createElement(C.a,{id:"main.account.chart.staked-balance"})),i.a.createElement("div",{style:{minWidth:"16px"}}),i.a.createElement("div",{className:_e.a.value,style:{color:"#525f7f"}},y.shrink(!0).maxDecimals(6).toString()))))}),Oe=()=>i.a.createElement("div",{className:_e.a.containerAsset},i.a.createElement(Se,null));var Ee=n(212),Te=n.n(Ee),Ae=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const Me=Object(T.a)(()=>{const e=Object(c.useHistory)(),{chainStore:t,accountStore:n,queriesStore:o}=Object(A.b)(),a=n.getAccount(t.current.chainId),s=o.get(t.current.chainId),l=Object(oe.c)(),u=s.getQueryInflation(),f=s.getQueryRewards().getQueryBech32Address(a.bech32Address),d=f.stakableReward,p=s.getQueryBalances().getQueryBech32Address(a.bech32Address).stakable,h=f.rewards.length>0,m=Object(r.useMemo)(()=>p.balance.toDec().gt(new me.Dec(0)),[p.balance]),[b,y]=Object(r.useState)(!1),g=Object(r.useRef)(null);return i.a.createElement("div",null,h?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:q()(Te.a.containerInner,Te.a.reward)},i.a.createElement("div",{className:Te.a.vertical},i.a.createElement("p",{className:q()("h4","my-0","font-weight-normal",Te.a.paragraphSub)},i.a.createElement(C.a,{id:"main.stake.message.pending-staking-reward"})),i.a.createElement("p",{className:q()("h2","my-0","font-weight-normal",Te.a.paragraphMain)},d.shrink(!0).maxDecimals(6).toString(),f.isFetching?i.a.createElement("span",null,i.a.createElement("i",{className:"fas fa-spinner fa-spin"})):null)),i.a.createElement("div",{style:{flex:1}}),i.a.createElement(E.a,{className:Te.a.button,color:"primary",size:"sm",disabled:!a.isReadyToSendMsgs,onClick:()=>Ae(void 0,void 0,void 0,(function*(){if(a.isReadyToSendMsgs)try{yield a.sendWithdrawDelegationRewardMsgs(f.getDescendingPendingRewardValidatorAddresses(8),""),e.replace("/")}catch(t){e.replace("/"),l.push({type:"warning",placement:"top-center",duration:5,content:"Fail to withdraw rewards: "+t.message,canDelete:!0,transition:{duration:.25}})}})),"data-loading":"withdrawRewards"===a.isSendingMsg},i.a.createElement(C.a,{id:"main.stake.button.claim-rewards"}))),i.a.createElement("hr",{className:Te.a.hr})):null,i.a.createElement("div",{className:q()(Te.a.containerInner,Te.a.stake)},i.a.createElement("div",{className:Te.a.vertical},i.a.createElement("p",{className:q()("h2","my-0","font-weight-normal",Te.a.paragraphMain)},i.a.createElement(C.a,{id:"main.stake.message.stake"})),i.a.createElement("p",{className:q()("h4","my-0","font-weight-normal",Te.a.paragraphSub)},i.a.createElement(C.a,{id:"main.stake.message.earning",values:{apr:i.a.createElement(i.a.Fragment,null,u.inflation.trim(!0).maxDecimals(2).toString(),u.isFetching?i.a.createElement("span",null,i.a.createElement("i",{className:"fas fa-spinner fa-spin"})):null)}}))),i.a.createElement("div",{style:{flex:1}}),i.a.createElement("a",{href:t.current.walletUrlForStaking,target:"_blank",rel:"noopener noreferrer",onClick:e=>{m||e.preventDefault()}},i.a.createElement(E.a,{innerRef:g,className:q()(Te.a.button,{disabled:!m}),color:"primary",size:"sm",outline:h},i.a.createElement(C.a,{id:"main.stake.button.stake"})),m?null:i.a.createElement(de.a,{placement:"bottom",isOpen:b,target:g,toggle:()=>y(e=>!e),fade:!0},i.a.createElement(C.a,{id:"main.stake.tooltip.no-asset"})))))});var Ie=n(1058),Pe=n(29),Ce={className:d.a.string,id:d.a.oneOfType([d.a.string,d.a.number]).isRequired,label:d.a.node,valid:d.a.bool,invalid:d.a.bool,bsSize:d.a.string,htmlFor:d.a.string,cssModule:d.a.object,onChange:d.a.func,children:d.a.oneOfType([d.a.node,d.a.array,d.a.func]),innerRef:d.a.oneOfType([d.a.object,d.a.string,d.a.func])},je=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={files:null},n.onChange=n.onChange.bind(Object(Pe.a)(n)),n}Object(l.a)(t,e);var n=t.prototype;return n.onChange=function(e){var t=e.target,n=this.props.onChange,r=this.getSelectedFiles(t);"function"==typeof n&&n.apply(void 0,arguments),this.setState({files:r})},n.getSelectedFiles=function(e){if(this.props.multiple&&e.files)return[].slice.call(e.files).map((function(e){return e.name})).join(", ");if(-1!==e.value.indexOf("fakepath")){var t=e.value.split("\\");return t[t.length-1]}return e.value},n.render=function(){var e=this.props,t=e.className,n=e.label,r=e.valid,o=e.invalid,a=e.cssModule,s=e.children,c=(e.bsSize,e.innerRef),l=e.htmlFor,u=(e.type,e.onChange,e.dataBrowse),f=e.hidden,d=Object(h.a)(e,["className","label","valid","invalid","cssModule","children","bsSize","innerRef","htmlFor","type","onChange","dataBrowse","hidden"]),m=Object(z.l)(q()(t,"custom-file"),a),b=Object(z.l)(q()(o&&"is-invalid",r&&"is-valid"),a),y=l||d.id,g=this.state.files;return i.a.createElement("div",{className:m,hidden:f||!1},i.a.createElement("input",Object(p.a)({type:"file"},d,{ref:c,"aria-invalid":o,className:q()(b,Object(z.l)("custom-file-input",a)),onChange:this.onChange})),i.a.createElement("label",{className:Object(z.l)("custom-file-label",a),htmlFor:y,"data-browse":u},g||n||"Choose file"),s)},t}(i.a.Component);je.propTypes=Ce;var De=je,Re={className:d.a.string,id:d.a.oneOfType([d.a.string,d.a.number]).isRequired,type:d.a.string.isRequired,label:d.a.node,inline:d.a.bool,valid:d.a.bool,invalid:d.a.bool,bsSize:d.a.string,htmlFor:d.a.string,cssModule:d.a.object,children:d.a.oneOfType([d.a.node,d.a.array,d.a.func]),innerRef:d.a.oneOfType([d.a.object,d.a.string,d.a.func])};function Ne(e){var t=e.className,n=e.label,r=e.inline,o=e.valid,a=e.invalid,s=e.cssModule,c=e.children,l=e.bsSize,u=e.innerRef,f=e.htmlFor,d=Object(h.a)(e,["className","label","inline","valid","invalid","cssModule","children","bsSize","innerRef","htmlFor"]),m=d.type,b=Object(z.l)(q()(t,"custom-"+m,!!l&&"custom-"+m+"-"+l),s),y=Object(z.l)(q()(a&&"is-invalid",o&&"is-valid"),s),g=f||d.id;if("select"===m){d.type;var v=Object(h.a)(d,["type"]);return i.a.createElement("select",Object(p.a)({},v,{ref:u,className:q()(y,b),"aria-invalid":a}),c)}if("file"===m)return i.a.createElement(De,e);if("checkbox"!==m&&"radio"!==m&&"switch"!==m)return i.a.createElement("input",Object(p.a)({},d,{ref:u,"aria-invalid":a,className:q()(y,b)}));var w=q()(b,Object(z.l)(q()("custom-control",{"custom-control-inline":r}),s)),_=d.hidden,k=Object(h.a)(d,["hidden"]);return i.a.createElement("div",{className:w,hidden:_||!1},i.a.createElement("input",Object(p.a)({},k,{type:"switch"===m?"checkbox":m,ref:u,"aria-invalid":a,className:q()(y,Object(z.l)("custom-control-input",s))})),i.a.createElement("label",{className:Object(z.l)("custom-control-label",s),htmlFor:g},n),c)}Ne.propTypes=Re;var Be=Ne,Le=d.a.oneOfType([d.a.number,d.a.string]),Ue={tag:z.p,noGutters:d.a.bool,className:d.a.string,cssModule:d.a.object,form:d.a.bool,xs:Le,sm:Le,md:Le,lg:Le,xl:Le},Fe={tag:"div",widths:["xs","sm","md","lg","xl"]},qe=function(e){var t=e.className,n=e.cssModule,r=e.noGutters,o=e.tag,a=e.form,s=e.widths,c=Object(h.a)(e,["className","cssModule","noGutters","tag","form","widths"]),l=[];s.forEach((function(t,n){var r=e[t];if(delete c[t],r){var i=!n;l.push(i?"row-cols-"+r:"row-cols-"+t+"-"+r)}}));var u=Object(z.l)(q()(t,r?"no-gutters":null,a?"form-row":"row",l),n);return i.a.createElement(o,Object(p.a)({},c,{className:u}))};qe.propTypes=Ue,qe.defaultProps=Fe;var ze=qe,Ve=d.a.oneOfType([d.a.number,d.a.string]),He=d.a.oneOfType([d.a.bool,d.a.number,d.a.string,d.a.shape({size:d.a.oneOfType([d.a.bool,d.a.number,d.a.string]),order:Ve,offset:Ve})]),$e={tag:z.p,xs:He,sm:He,md:He,lg:He,xl:He,className:d.a.string,cssModule:d.a.object,widths:d.a.array},Ke={tag:"div",widths:["xs","sm","md","lg","xl"]},We=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},Ge=function(e){var t=e.className,n=e.cssModule,r=e.widths,o=e.tag,a=Object(h.a)(e,["className","cssModule","widths","tag"]),s=[];r.forEach((function(t,r){var i=e[t];if(delete a[t],i||""===i){var o=!r;if(Object(z.j)(i)){var c,l=o?"-":"-"+t+"-",u=We(o,t,i.size);s.push(Object(z.l)(q()(((c={})[u]=i.size||""===i.size,c["order"+l+i.order]=i.order||0===i.order,c["offset"+l+i.offset]=i.offset||0===i.offset,c)),n))}else{var f=We(o,t,i);s.push(f)}}})),s.length||s.push("col");var c=Object(z.l)(q()(t,s),n);return i.a.createElement(o,Object(p.a)({},a,{className:c}))};Ge.propTypes=$e,Ge.defaultProps=Ke;var Je=Ge,Qe=n(947),Ye=n(1070),Ze=n(394),Xe=n.n(Ze),et=n(393),tt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const nt=Object(T.a)(({selectable:e,selected:t,onSelect:n})=>{const{chainStore:r,queriesStore:o}=Object(A.b)(),a=o.get(r.current.chainId),s=a.getQueryAccount().getQueryBech32Address(e.bech32Address),c=a.getQueryBalances().getQueryBech32Address(e.bech32Address).stakable;return i.a.createElement("div",{style:{cursor:"pointer"},onClick:e=>{e.preventDefault(),e.stopPropagation(),n()}},i.a.createElement(Be,{type:"radio",id:"selectable-"+e.bech32Address,checked:t,onChange:()=>{}},i.a.createElement("div",{className:Xe.a.selectable},i.a.createElement("div",{className:Xe.a.path},`m/44’/${e.path.coinType}’`),i.a.createElement(ze,null,i.a.createElement(Je,null,i.a.createElement("div",{className:Xe.a.label},i.a.createElement(C.a,{id:"main.modal.select-account.label.address"})),i.a.createElement("div",{className:Xe.a.value},R.Bech32Address.shortenAddress(e.bech32Address,26)))),i.a.createElement(ze,null,i.a.createElement(Je,null,i.a.createElement("div",{className:Xe.a.label},i.a.createElement(C.a,{id:"main.modal.select-account.label.balance"})),i.a.createElement("div",{className:Xe.a.value},c.balance.trim(!0).shrink(!0).maxDecimals(6).toString(),c.isFetching?i.a.createElement("i",{className:"fas fa-spinner fa-spin ml-1"}):null)),i.a.createElement(Je,null,i.a.createElement("div",{className:Xe.a.label},i.a.createElement(C.a,{id:"main.modal.select-account.label.sequence"})),i.a.createElement("div",{className:Xe.a.value},s.sequence,s.isFetching?i.a.createElement("i",{className:"fas fa-spinner fa-spin ml-1"}):null))))))}),rt=Object(T.a)(()=>{const{chainStore:e,keyRingStore:t,queriesStore:n}=Object(A.b)(),o=n.get(e.current.chainId),a=t.getKeyStoreSelectables(e.current.chainId),[s,c]=Object(r.useState)(!1),l=Object(et.b)();Object(r.useEffect)(()=>{if(a.isInitializing)c(!1);else if(a.needSelectCoinType){const n=a.selectables.map(e=>o.getQueryBalances().getQueryBech32Address(e.bech32Address).balances).map(e=>e.map(e=>e.waitFreshResponse())).reduce((e,t)=>e.concat(t),[]),r=a.selectables.map(e=>o.getQueryAccount().getQueryBech32Address(e.bech32Address)).map(e=>e.waitFreshResponse());Promise.all([...n,...r]).then(()=>{const n=a.selectables.slice(1),r=n.find(e=>{const t=o.getQueryBalances().getQueryBech32Address(e.bech32Address).balances;for(let e=0;e<t.length;e++){if(t[e].balance.toDec().gt(new me.Dec(0)))return!0}return!1}),i=n.find(e=>"0"!==o.getQueryAccount().getQueryBech32Address(e.bech32Address).sequence);r||i?c(!0):t.setKeyStoreCoinType(e.current.chainId,a.selectables[0].path.coinType),l.setIsLoading("bip44-selectables-init",!1)})}else l.setIsLoading("bip44-selectables-init",!1),c(!1)},[e,t,l,o,a.isInitializing,a.needSelectCoinType,a.selectables]);const[u,f]=Object(r.useState)(-1);return i.a.createElement(Qe.a,{isOpen:!a.isInitializing&&a.needSelectCoinType&&s,centered:!0},i.a.createElement(Ye.a,null,i.a.createElement("div",{className:Xe.a.title},i.a.createElement(C.a,{id:"main.modal.select-account.title"})),i.a.createElement("div",null,a.selectables.map(e=>i.a.createElement(nt,{key:e.bech32Address,selectable:e,selected:u===e.path.coinType,onSelect:()=>{f(e.path.coinType)}}))),i.a.createElement(E.a,{type:"button",color:"primary",block:!0,style:{marginTop:"10px"},disabled:u<0,onClick:n=>tt(void 0,void 0,void 0,(function*(){n.preventDefault(),n.stopPropagation(),u>=0&&(yield t.setKeyStoreCoinType(e.current.chainId,u))}))},i.a.createElement(C.a,{id:"main.modal.select-account.button.select"}))))});var it=n(150),ot=n(59),at=n(848),st=n.n(at);const ct=Object(T.a)(()=>{const e=Object(c.useHistory)(),{accountStore:t,chainStore:n,queriesStore:r}=Object(A.b)(),o=t.getAccount(n.current.chainId),a=void 0!==r.get(n.current.chainId).getQueryBalances().getQueryBech32Address(o.bech32Address).balances.find(e=>e.balance.toDec().gt(new me.Dec(0)));return i.a.createElement("div",{className:st.a.containerInner},i.a.createElement("div",{className:st.a.vertical},i.a.createElement("p",{className:q()("h2","my-0","font-weight-normal",st.a.paragraphMain)},i.a.createElement(C.a,{id:"main.ibc.transfer.title"})),i.a.createElement("p",{className:q()("h4","my-0","font-weight-normal",st.a.paragraphSub)},i.a.createElement(C.a,{id:"main.ibc.transfer.paragraph"}))),i.a.createElement("div",{style:{flex:1}}),i.a.createElement(E.a,{className:st.a.button,color:"primary",size:"sm",disabled:!a,"data-loading":"ibcTransfer"===o.isSendingMsg,onClick:t=>{t.preventDefault(),e.push("/ibc-transfer")}},i.a.createElement(C.a,{id:"main.ibc.transfer.button"})))});var lt=n(63),ut=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const ft=Object(T.a)(()=>{var e;const t=Object(c.useHistory)(),n=Object(ae.a)(),{chainStore:o,accountStore:a,queriesStore:s}=Object(A.b)(),l=Object(it.b)(),u=o.current.chainId,f=Object(r.useRef)();Object(r.useEffect)(()=>{o.isInitializing||f.current===u||(ut(void 0,void 0,void 0,(function*(){const e=yield ot.ChainUpdaterService.checkChainUpdate(o.current);e.explicit?(yield l.confirm({paragraph:n.formatMessage({id:"main.update-chain.confirm.paragraph"}),yes:n.formatMessage({id:"main.update-chain.confirm.yes"}),no:n.formatMessage({id:"main.update-chain.confirm.no"})}))&&(yield o.tryUpdateChain(o.current.chainId)):e.slient&&(yield o.tryUpdateChain(o.current.chainId))})),f.current=u)},[o,l,o.isInitializing,u,n]);const d=a.getAccount(o.current.chainId),p=s.get(o.current.chainId).getQueryBalances().getQueryBech32Address(d.bech32Address).unstakables.filter(e=>"native"!==new lt.DenomHelper(e.currency.coinMinimalDenom).type||e.balance.toDec().gt(new me.Dec("0"))).length>0;return i.a.createElement(U.a,{showChainName:!0,canChangeChainInfo:!0,menuRenderer:i.a.createElement(X,null),rightRenderer:i.a.createElement("div",{style:{height:"64px",display:"flex",flexDirection:"row",alignItems:"center",paddingRight:"20px"}},i.a.createElement("i",{className:"fas fa-user",style:{cursor:"pointer",padding:"4px"},onClick:e=>{e.preventDefault(),t.push("/setting/set-keyring")}}))},i.a.createElement(rt,null),i.a.createElement($,{className:q()(Q.a.card,"shadow")},i.a.createElement(G,null,i.a.createElement("div",{className:Q.a.containerAccountInner},i.a.createElement(le,null),i.a.createElement(Oe,null),i.a.createElement(ve,null)))),o.current.walletUrlForStaking?i.a.createElement($,{className:q()(Q.a.card,"shadow")},i.a.createElement(G,null,i.a.createElement(Me,null))):null,p?i.a.createElement($,{className:q()(Q.a.card,"shadow")},i.a.createElement(G,null,i.a.createElement(Ie.a,null))):null,(null===(e=o.current.features)||void 0===e?void 0:e.includes("ibc-transfer"))?i.a.createElement($,{className:q()(Q.a.card,"shadow")},i.a.createElement(G,null,i.a.createElement(ct,null))):null)});var dt=n(34),pt=n(1553),ht=n(232),mt=n.n(ht);const bt=({icon:e,logo:t,subtitle:n})=>i.a.createElement("div",{className:q()(mt.a.container,mt.a.flexVertical)},i.a.createElement("div",{className:mt.a.empty}),i.a.createElement("div",{className:mt.a.flexHorizontal},i.a.createElement("div",{className:mt.a.empty}),i.a.createElement("div",{className:mt.a.flexVertical},i.a.createElement("img",{className:mt.a.icon,src:e}),i.a.createElement("img",{className:mt.a.logo,src:t}),i.a.createElement("div",{className:mt.a.subtitle},n)),i.a.createElement("div",{className:mt.a.empty})),i.a.createElement("div",{className:mt.a.empty}));var yt=n(146),gt=n(1059),vt=n.n(gt),wt=n(386),_t=n.n(wt),kt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const xt=Object(T.a)(()=>{const e=Object(ae.a)(),t=Object(c.useHistory)(),{register:o,handleSubmit:a,setError:s,errors:l}=Object(yt.a)({defaultValues:{password:""}}),{keyRingStore:u}=Object(A.b)(),[f,d]=Object(r.useState)(!1),p=Object(O.useInteractionInfo)(()=>{u.rejectAll()});return i.a.createElement(P.a,{style:{backgroundColor:"white",height:"100%"}},i.a.createElement(pt.a,{className:vt.a.formContainer,onSubmit:a(n=>kt(void 0,void 0,void 0,(function*(){d(!0);try{yield u.unlock(n.password),p.interaction&&(p.interactionInternal?t.replace("/"):(yield _t()(100),window.location.href.includes("#/unlock")&&window.close()))}catch(t){console.log("Fail to decrypt: "+t.message),s("password","invalid",e.formatMessage({id:"lock.input.password.error.invalid"})),d(!1)}})))},i.a.createElement(bt,{icon:n(413),logo:n(877),subtitle:"Wallet for the Interchain"}),i.a.createElement(dt.e,{type:"password",label:e.formatMessage({id:"lock.input.password"}),name:"password",error:l.password&&l.password.message,ref:o({required:e.formatMessage({id:"lock.input.password.error.required"})})}),i.a.createElement(E.a,{type:"submit",color:"primary",block:!0,"data-loading":f},i.a.createElement(C.a,{id:"lock.button.unlock"}))))});var St=n(942),Ot=n.n(St),Et=n(883),Tt=n.n(Et),At=n(208),Mt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const It=Object(T.a)(()=>{var e,t,n,o;const a=Object(c.useHistory)();let s=Object(c.useLocation)().search;s.startsWith("?")&&(s=s.slice(1));const l=Tt.a.parse(s);Object(r.useEffect)(()=>{window.scrollTo&&window.scrollTo(0,0)},[]);const u=Object(ae.a)(),f=Object(oe.c)(),{chainStore:d,accountStore:p,priceStore:h,queriesStore:m}=Object(A.b)(),b=d.current,y=p.getAccount(b.chainId),g=Object(O.useSendTxConfig)(d,b.chainId,y.msgOpts.send,y.bech32Address,m.get(b.chainId).getQueryBalances(),At.c);Object(r.useEffect)(()=>{if(l.defaultDenom){const e=b.currencies.find(e=>e.coinMinimalDenom===l.defaultDenom);e&&g.amountConfig.setSendCurrency(e)}},[b.currencies,l.defaultDenom,g.amountConfig]);const v=null==(null!==(o=null!==(n=null!==(t=null!==(e=g.recipientConfig.getError())&&void 0!==e?e:g.amountConfig.getError())&&void 0!==t?t:g.memoConfig.getError())&&void 0!==n?n:g.gasConfig.getError())&&void 0!==o?o:g.feeConfig.getError());return i.a.createElement(U.a,{showChainName:!0,canChangeChainInfo:!1,onBackButton:()=>{a.goBack()}},i.a.createElement("form",{className:Ot.a.formContainer,onSubmit:e=>Mt(void 0,void 0,void 0,(function*(){if(e.preventDefault(),y.isReadyToSendMsgs&&v)try{const e=g.feeConfig.toStdFee();yield y.sendToken(g.amountConfig.amount,g.amountConfig.sendCurrency,g.recipientConfig.recipient,g.memoConfig.memo,e,{preferNoSetFee:!0,preferNoSetMemo:!0}),a.replace("/")}catch(e){a.replace("/"),f.push({type:"warning",placement:"top-center",duration:5,content:"Fail to send token: "+e.message,canDelete:!0,transition:{duration:.25}})}}))},i.a.createElement("div",{className:Ot.a.formInnerContainer},i.a.createElement("div",null,i.a.createElement(dt.a,{recipientConfig:g.recipientConfig,memoConfig:g.memoConfig,label:u.formatMessage({id:"send.input.recipient"})}),i.a.createElement(dt.b,{amountConfig:g.amountConfig,feeConfig:g.feeConfig,label:u.formatMessage({id:"send.input.amount"}),balanceText:u.formatMessage({id:"send.input-button.balance"})}),i.a.createElement(dt.f,{memoConfig:g.memoConfig,label:u.formatMessage({id:"send.input.memo"})}),i.a.createElement(dt.d,{feeConfig:g.feeConfig,gasConfig:g.gasConfig,priceStore:h,label:u.formatMessage({id:"send.input.fee"}),feeSelectLabels:{low:u.formatMessage({id:"fee-buttons.select.low"}),average:u.formatMessage({id:"fee-buttons.select.average"}),high:u.formatMessage({id:"fee-buttons.select.high"})},gasLabel:u.formatMessage({id:"send.input.gas"})})),i.a.createElement("div",{style:{flex:1}}),i.a.createElement(E.a,{type:"submit",color:"primary",block:!0,"data-loading":"send"===y.isSendingMsg,disabled:!y.isReadyToSendMsgs||!v},u.formatMessage({id:"send.button.send"})))))});var Pt=n(849),Ct=n.n(Pt),jt=n(1560),Dt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const Rt=Object(T.a)(()=>{const e=Object(c.useHistory)(),[t,n]=Object(r.useState)("channel"),{chainStore:o,accountStore:a,queriesStore:s}=Object(A.b)(),l=a.getAccount(o.current.chainId),u=s.get(o.current.chainId),f=Object(oe.c)(),d=Object(O.useIBCTransferConfig)(o,o.current.chainId,l.msgOpts.ibcTransfer,l.bech32Address,u.getQueryBalances(),At.c);return i.a.createElement(U.a,{showChainName:!0,canChangeChainInfo:!1,onBackButton:()=>{e.goBack()}},"channel"===t?i.a.createElement(Nt,{channelConfig:d.channelConfig,recipientConfig:d.recipientConfig,memoConfig:d.memoConfig,onNext:()=>{n("amount")}}):null,"amount"===t?i.a.createElement(Bt,{amountConfig:d.amountConfig,feeConfig:d.feeConfig,gasConfig:d.gasConfig,onSubmit:()=>Dt(void 0,void 0,void 0,(function*(){if(d.channelConfig.channel)try{yield l.sendIBCTransferMsg(d.channelConfig.channel,d.amountConfig.amount,d.amountConfig.sendCurrency,d.recipientConfig.recipient,d.memoConfig.memo,d.feeConfig.toStdFee(),{preferNoSetFee:!0,preferNoSetMemo:!0}),e.push("/")}catch(t){e.replace("/"),f.push({type:"warning",placement:"top-center",duration:5,content:"Fail to transfer token: "+t.message,canDelete:!0,transition:{duration:.25}})}}))}):null)}),Nt=Object(T.a)(({channelConfig:e,recipientConfig:t,memoConfig:n,onNext:r})=>{const o=Object(ae.a)(),a=null==e.getError()&&null==t.getError()&&null==n.getError(),s=null!=e.channel;return i.a.createElement("form",{className:Ct.a.formContainer},i.a.createElement("div",{className:Ct.a.formInnerContainer},i.a.createElement(dt.c,{ibcChannelConfig:e}),i.a.createElement(dt.a,{label:o.formatMessage({id:"send.input.recipient"}),recipientConfig:t,memoConfig:n,ibcChannelConfig:e,disabled:!s}),i.a.createElement(dt.f,{label:o.formatMessage({id:"send.input.memo"}),memoConfig:n,disabled:!s}),i.a.createElement("div",{style:{flex:1}}),i.a.createElement(jt.a,{className:Ct.a.alert},i.a.createElement("i",{className:"fas fa-exclamation-circle"}),i.a.createElement("div",null,i.a.createElement("h1",null,"IBC is production ready"),i.a.createElement("p",null,"However, all new technologies should be used with caution. We recommend only transferring small amounts."))),i.a.createElement(E.a,{type:"submit",color:"primary",block:!0,disabled:!a,onClick:e=>{e.preventDefault(),r()}},i.a.createElement(C.a,{id:"ibc.transfer.next"}))))}),Bt=Object(T.a)(({amountConfig:e,feeConfig:t,gasConfig:n,onSubmit:r})=>{const o=Object(ae.a)(),{accountStore:a,chainStore:s,priceStore:c}=Object(A.b)(),l=a.getAccount(s.current.chainId),u=null==e.getError()&&null==t.getError()&&null==n.getError();return i.a.createElement("form",{className:Ct.a.formContainer},i.a.createElement("div",{className:Ct.a.formInnerContainer},i.a.createElement(dt.b,{label:o.formatMessage({id:"send.input.amount"}),amountConfig:e,feeConfig:t}),i.a.createElement("div",{style:{flex:1}}),i.a.createElement(dt.d,{label:o.formatMessage({id:"send.input.fee"}),feeConfig:t,gasConfig:n,priceStore:c}),i.a.createElement(E.a,{type:"submit",color:"primary",block:!0,disabled:!u,"data-loading":"ibcTransfer"===l.isSendingMsg,onClick:e=>{e.preventDefault(),r()}},i.a.createElement(C.a,{id:"ibc.transfer.submit"}))))});var Lt=n(1060),Ut=n(5),Ft=n(219),qt=n.n(Ft);const zt=Object(T.a)(({signDocHelper:e})=>i.a.createElement("pre",{className:qt.a.message},JSON.stringify(e.signDocJson,void 0,2)));var Vt=n(420),Ht=n.n(Vt),$t=n(108),Kt={color:d.a.string,pill:d.a.bool,tag:z.p,innerRef:d.a.oneOfType([d.a.object,d.a.func,d.a.string]),children:d.a.node,className:d.a.string,cssModule:d.a.object},Wt=function(e){var t=e.className,n=e.cssModule,r=e.color,o=e.innerRef,a=e.pill,s=e.tag,c=Object(h.a)(e,["className","cssModule","color","innerRef","pill","tag"]),l=Object(z.l)(q()(t,"badge","badge-"+r,!!a&&"badge-pill"),n);return c.href&&"span"===s&&(s="a"),i.a.createElement(s,Object(p.a)({},c,{className:l,ref:o}))};Wt.propTypes=Kt,Wt.defaultProps={color:"secondary",pill:!1,tag:"span"};var Gt=Wt;
361 /*! js-yaml 4.0.0 https://github.com/nodeca/js-yaml @license MIT */function Jt(e){return null==e}var Qt={isNothing:Jt,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:Jt(e)?[]:[e]},repeat:function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var n,r,i,o;if(t)for(n=0,r=(o=Object.keys(t)).length;n<r;n+=1)e[i=o[n]]=t[i];return e}};function Yt(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+="\n\n"+e.mark.snippet),r+" "+n):r}function Zt(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Yt(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}Zt.prototype=Object.create(Error.prototype),Zt.prototype.constructor=Zt,Zt.prototype.toString=function(e){return this.name+": "+Yt(this,e)};var Xt=Zt;function en(e,t,n,r,i){var o="",a="",s=Math.floor(i/2)-1;return r-t>s&&(t=r-s+(o=" ... ").length),n-r>s&&(n=r+s-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function tn(e,t){return Qt.repeat(" ",t-e.length)+e}var nn=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n,r=/\r?\n|\r|\0/g,i=[0],o=[],a=-1;n=r.exec(e.buffer);)o.push(n.index),i.push(n.index+n[0].length),e.position<=n.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var s,c,l="",u=Math.min(e.line+t.linesAfter,o.length).toString().length,f=t.maxLength-(t.indent+u+3);for(s=1;s<=t.linesBefore&&!(a-s<0);s++)c=en(e.buffer,i[a-s],o[a-s],e.position-(i[a]-i[a-s]),f),l=Qt.repeat(" ",t.indent)+tn((e.line-s+1).toString(),u)+" | "+c.str+"\n"+l;for(c=en(e.buffer,i[a],o[a],e.position,f),l+=Qt.repeat(" ",t.indent)+tn((e.line+1).toString(),u)+" | "+c.str+"\n",l+=Qt.repeat("-",t.indent+u+3+c.pos)+"^\n",s=1;s<=t.linesAfter&&!(a+s>=o.length);s++)c=en(e.buffer,i[a+s],o[a+s],e.position-(i[a]-i[a+s]),f),l+=Qt.repeat(" ",t.indent)+tn((e.line+s+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},rn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],on=["scalar","sequence","mapping"];var an=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===rn.indexOf(t))throw new Xt('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))})),t}(t.styleAliases||null),-1===on.indexOf(this.kind))throw new Xt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function sn(e,t,n){var r=[];return e[t].forEach((function(e){n.forEach((function(t,n){t.tag===e.tag&&t.kind===e.kind&&t.multi===e.multi&&r.push(n)})),n.push(e)})),n.filter((function(e,t){return-1===r.indexOf(t)}))}function cn(e){return this.extend(e)}cn.prototype.extend=function(e){var t=[],n=[];if(e instanceof an)n.push(e);else if(Array.isArray(e))n=n.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new Xt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof an))throw new Xt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new Xt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new Xt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),n.forEach((function(e){if(!(e instanceof an))throw new Xt("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var r=Object.create(cn.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=sn(r,"implicit",[]),r.compiledExplicit=sn(r,"explicit",[]),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(r.compiledImplicit,r.compiledExplicit),r};var ln=cn,un=new ln({explicit:[new an("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),new an("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),new an("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})]});var fn=new an("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var dn=new an("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function pn(e){return 48<=e&&e<=55}function hn(e){return 48<=e&&e<=57}var mn=new an("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,i=0,o=!1;if(!r)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===r)return!0;if("b"===(t=e[++i])){for(i++;i<r;i++)if("_"!==(t=e[i])){if("0"!==t&&"1"!==t)return!1;o=!0}return o&&"_"!==t}if("x"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!(48<=(n=e.charCodeAt(i))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;o=!0}return o&&"_"!==t}if("o"===t){for(i++;i<r;i++)if("_"!==(t=e[i])){if(!pn(e.charCodeAt(i)))return!1;o=!0}return o&&"_"!==t}}if("_"===t)return!1;for(;i<r;i++)if("_"!==(t=e[i])){if(!hn(e.charCodeAt(i)))return!1;o=!0}return!(!o||"_"===t)},construct:function(e){var t,n=e,r=1;if(-1!==n.indexOf("_")&&(n=n.replace(/_/g,"")),"-"!==(t=n[0])&&"+"!==t||("-"===t&&(r=-1),t=(n=n.slice(1))[0]),"0"===n)return 0;if("0"===t){if("b"===n[1])return r*parseInt(n.slice(2),2);if("x"===n[1])return r*parseInt(n.slice(2),16);if("o"===n[1])return r*parseInt(n.slice(2),8)}return r*parseInt(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!Qt.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),bn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var yn=/^[-+]?[0-9]+e/;var gn=new an("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!bn.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||Qt.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Qt.isNegativeZero(e))return"-0.0";return n=e.toString(10),yn.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),vn=un.extend({implicit:[fn,dn,mn,gn]}),wn=vn,_n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),kn=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var xn=new an("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==_n.exec(e)||null!==kn.exec(e))},construct:function(e){var t,n,r,i,o,a,s,c,l=0,u=null;if(null===(t=_n.exec(e))&&(t=kn.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],a=+t[5],s=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(n,r,i,o,a,s,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var Sn=new an("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),On="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var En=new an("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,i=e.length,o=On;for(n=0;n<i;n++)if(!((t=o.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=On,a=0,s=[];for(t=0;t<i;t++)t%4==0&&t&&(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)),a=a<<6|o.indexOf(r.charAt(t));return 0===(n=i%4*6)?(s.push(a>>16&255),s.push(a>>8&255),s.push(255&a)):18===n?(s.push(a>>10&255),s.push(a>>2&255)):12===n&&s.push(a>>4&255),new Uint8Array(s)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",i=0,o=e.length,a=On;for(t=0;t<o;t++)t%3==0&&t&&(r+=a[i>>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]),i=(i<<8)+e[t];return 0===(n=o%3)?(r+=a[i>>18&63],r+=a[i>>12&63],r+=a[i>>6&63],r+=a[63&i]):2===n?(r+=a[i>>10&63],r+=a[i>>4&63],r+=a[i<<2&63],r+=a[64]):1===n&&(r+=a[i>>2&63],r+=a[i<<4&63],r+=a[64],r+=a[64]),r}}),Tn=Object.prototype.hasOwnProperty,An=Object.prototype.toString;var Mn=new an("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,o,a=[],s=e;for(t=0,n=s.length;t<n;t+=1){if(r=s[t],o=!1,"[object Object]"!==An.call(r))return!1;for(i in r)if(Tn.call(r,i)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==a.indexOf(i))return!1;a.push(i)}return!0},construct:function(e){return null!==e?e:[]}}),In=Object.prototype.toString;var Pn=new an("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],"[object Object]"!==In.call(r))return!1;if(1!==(i=Object.keys(r)).length)return!1;o[t]=[i[0],r[i[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,i,o,a=e;for(o=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),o[t]=[i[0],r[i[0]]];return o}}),Cn=Object.prototype.hasOwnProperty;var jn=new an("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(Cn.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Dn=wn.extend({implicit:[xn,Sn],explicit:[En,Mn,Pn,jn]}),Rn=Object.prototype.hasOwnProperty,Nn=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Bn=/[\x85\u2028\u2029]/,Ln=/[,\[\]\{\}]/,Un=/^(?:!|!!|![a-z\-]+!)$/i,Fn=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function qn(e){return Object.prototype.toString.call(e)}function zn(e){return 10===e||13===e}function Vn(e){return 9===e||32===e}function Hn(e){return 9===e||32===e||10===e||13===e}function $n(e){return 44===e||91===e||93===e||123===e||125===e}function Kn(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Wn(e){return 48===e?"\0":97===e?"\a":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"\e":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"\85":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Gn(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Jn=new Array(256),Qn=new Array(256),Yn=0;Yn<256;Yn++)Jn[Yn]=Wn(Yn)?1:0,Qn[Yn]=Wn(Yn);function Zn(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Dn,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Xn(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=nn(n),new Xt(t,n)}function er(e,t){throw Xn(e,t)}function tr(e,t){e.onWarning&&e.onWarning.call(null,Xn(e,t))}var nr={YAML:function(e,t,n){var r,i,o;null!==e.version&&er(e,"duplication of %YAML directive"),1!==n.length&&er(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&er(e,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&er(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&tr(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,i;2!==n.length&&er(e,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],Un.test(r)||er(e,"ill-formed tag handle (first argument) of the TAG directive"),Rn.call(e.tagMap,r)&&er(e,'there is a previously declared suffix for "'+r+'" tag handle'),Fn.test(i)||er(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(t){er(e,"tag prefix is malformed: "+i)}e.tagMap[r]=i}};function rr(e,t,n,r){var i,o,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(i=0,o=s.length;i<o;i+=1)9===(a=s.charCodeAt(i))||32<=a&&a<=1114111||er(e,"expected valid JSON character");else Nn.test(s)&&er(e,"the stream contains non-printable characters");e.result+=s}}function ir(e,t,n,r){var i,o,a,s;for(Qt.isObject(n)||er(e,"cannot merge mappings; the provided source object is unacceptable"),a=0,s=(i=Object.keys(n)).length;a<s;a+=1)o=i[a],Rn.call(t,o)||(t[o]=n[o],r[o]=!0)}function or(e,t,n,r,i,o,a,s,c){var l,u;if(Array.isArray(i))for(l=0,u=(i=Array.prototype.slice.call(i)).length;l<u;l+=1)Array.isArray(i[l])&&er(e,"nested arrays are not supported inside keys"),"object"==typeof i&&"[object Object]"===qn(i[l])&&(i[l]="[object Object]");if("object"==typeof i&&"[object Object]"===qn(i)&&(i="[object Object]"),i=String(i),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(l=0,u=o.length;l<u;l+=1)ir(e,t,o[l],n);else ir(e,t,o,n);else e.json||Rn.call(n,i)||!Rn.call(t,i)||(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=c||e.position,er(e,"duplicated mapping key")),"__proto__"===i?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:o}):t[i]=o,delete n[i];return t}function ar(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):er(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function sr(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);0!==i;){for(;Vn(i);)9===i&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&35===i)do{i=e.input.charCodeAt(++e.position)}while(10!==i&&13!==i&&0!==i);if(!zn(i))break;for(ar(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&tr(e,"deficient indentation"),r}function cr(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!Hn(t)))}function lr(e,t){1===t?e.result+=" ":t>1&&(e.result+=Qt.repeat("\n",t-1))}function ur(e,t){var n,r,i=e.tag,o=e.anchor,a=[],s=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,er(e,"tab characters must not be used in indentation")),45===r)&&Hn(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,sr(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,pr(e,t,3,!1,!0),a.push(e.result),sr(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)er(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=i,e.anchor=o,e.kind="sequence",e.result=a,!0)}function fr(e){var t,n,r,i,o=!1,a=!1;if(33!==(i=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&er(e,"duplication of a tag property"),60===(i=e.input.charCodeAt(++e.position))?(o=!0,i=e.input.charCodeAt(++e.position)):33===i?(a=!0,n="!!",i=e.input.charCodeAt(++e.position)):n="!",t=e.position,o){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&62!==i);e.position<e.length?(r=e.input.slice(t,e.position),i=e.input.charCodeAt(++e.position)):er(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==i&&!Hn(i);)33===i&&(a?er(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Un.test(n)||er(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),i=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),Ln.test(r)&&er(e,"tag suffix cannot contain flow indicator characters")}r&&!Fn.test(r)&&er(e,"tag name cannot contain such characters: "+r);try{r=decodeURIComponent(r)}catch(t){er(e,"tag name is malformed: "+r)}return o?e.tag=r:Rn.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:er(e,'undeclared tag handle "'+n+'"'),!0}function dr(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&er(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Hn(n)&&!$n(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&er(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function pr(e,t,n,r,i){var o,a,s,c,l,u,f,d,p,h=1,m=!1,b=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,o=a=s=4===n||3===n,r&&sr(e,!0,-1)&&(m=!0,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)),1===h)for(;fr(e)||dr(e);)sr(e,!0,-1)?(m=!0,s=o,e.lineIndent>t?h=1:e.lineIndent===t?h=0:e.lineIndent<t&&(h=-1)):s=!1;if(s&&(s=m||i),1!==h&&4!==n||(d=1===n||2===n?t:t+1,p=e.position-e.lineStart,1===h?s&&(ur(e,p)||function(e,t,n){var r,i,o,a,s,c,l,u=e.tag,f=e.anchor,d={},p=Object.create(null),h=null,m=null,b=null,y=!1,g=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=d),l=e.input.charCodeAt(e.position);0!==l;){if(y||-1===e.firstTabInLine||(e.position=e.firstTabInLine,er(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),o=e.line,63!==l&&58!==l||!Hn(r)){if(a=e.line,s=e.lineStart,c=e.position,!pr(e,n,2,!1,!0))break;if(e.line===o){for(l=e.input.charCodeAt(e.position);Vn(l);)l=e.input.charCodeAt(++e.position);if(58===l)Hn(l=e.input.charCodeAt(++e.position))||er(e,"a whitespace character is expected after the key-value separator within a block mapping"),y&&(or(e,d,p,h,m,null,a,s,c),h=m=b=null),g=!0,y=!1,i=!1,h=e.tag,m=e.result;else{if(!g)return e.tag=u,e.anchor=f,!0;er(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!g)return e.tag=u,e.anchor=f,!0;er(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(y&&(or(e,d,p,h,m,null,a,s,c),h=m=b=null),g=!0,y=!0,i=!0):y?(y=!1,i=!0):er(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=r;if((e.line===o||e.lineIndent>t)&&(y&&(a=e.line,s=e.lineStart,c=e.position),pr(e,t,4,!0,i)&&(y?m=e.result:b=e.result),y||(or(e,d,p,h,m,b,a,s,c),h=m=b=null),sr(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==l)er(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return y&&or(e,d,p,h,m,null,a,s,c),g&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=d),g}(e,p,d))||function(e,t){var n,r,i,o,a,s,c,l,u,f,d,p,h=!0,m=e.tag,b=e.anchor,y=Object.create(null);if(91===(p=e.input.charCodeAt(e.position)))a=93,l=!1,o=[];else{if(123!==p)return!1;a=125,l=!0,o={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),p=e.input.charCodeAt(++e.position);0!==p;){if(sr(e,!0,t),(p=e.input.charCodeAt(e.position))===a)return e.position++,e.tag=m,e.anchor=b,e.kind=l?"mapping":"sequence",e.result=o,!0;h?44===p&&er(e,"expected the node content, but found ','"):er(e,"missed comma between flow collection entries"),d=null,s=c=!1,63===p&&Hn(e.input.charCodeAt(e.position+1))&&(s=c=!0,e.position++,sr(e,!0,t)),n=e.line,r=e.lineStart,i=e.position,pr(e,t,1,!1,!0),f=e.tag,u=e.result,sr(e,!0,t),p=e.input.charCodeAt(e.position),!c&&e.line!==n||58!==p||(s=!0,p=e.input.charCodeAt(++e.position),sr(e,!0,t),pr(e,t,1,!1,!0),d=e.result),l?or(e,o,y,f,u,d,n,r,i):s?o.push(or(e,null,y,f,u,d,n,r,i)):o.push(u),sr(e,!0,t),44===(p=e.input.charCodeAt(e.position))?(h=!0,p=e.input.charCodeAt(++e.position)):h=!1}er(e,"unexpected end of the stream within a flow collection")}(e,d)?b=!0:(a&&function(e,t){var n,r,i,o,a,s=1,c=!1,l=!1,u=t,f=0,d=!1;if(124===(o=e.input.charCodeAt(e.position)))r=!1;else{if(62!==o)return!1;r=!0}for(e.kind="scalar",e.result="";0!==o;)if(43===(o=e.input.charCodeAt(++e.position))||45===o)1===s?s=43===o?3:2:er(e,"repeat of a chomping mode identifier");else{if(!((i=48<=(a=o)&&a<=57?a-48:-1)>=0))break;0===i?er(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?er(e,"repeat of an indentation width identifier"):(u=t+i-1,l=!0)}if(Vn(o)){do{o=e.input.charCodeAt(++e.position)}while(Vn(o));if(35===o)do{o=e.input.charCodeAt(++e.position)}while(!zn(o)&&0!==o)}for(;0!==o;){for(ar(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),zn(o))f++;else{if(e.lineIndent<u){3===s?e.result+=Qt.repeat("\n",c?1+f:f):1===s&&c&&(e.result+="\n");break}for(r?Vn(o)?(d=!0,e.result+=Qt.repeat("\n",c?1+f:f)):d?(d=!1,e.result+=Qt.repeat("\n",f+1)):0===f?c&&(e.result+=" "):e.result+=Qt.repeat("\n",f):e.result+=Qt.repeat("\n",c?1+f:f),c=!0,l=!0,f=0,n=e.position;!zn(o)&&0!==o;)o=e.input.charCodeAt(++e.position);rr(e,n,e.position,!1)}}return!0}(e,d)||function(e,t){var n,r,i;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(rr(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,i=e.position}else zn(n)?(rr(e,r,i,!0),lr(e,sr(e,!1,t)),r=i=e.position):e.position===e.lineStart&&cr(e)?er(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);er(e,"unexpected end of the stream within a single quoted scalar")}(e,d)||function(e,t){var n,r,i,o,a,s,c;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return rr(e,n,e.position,!0),e.position++,!0;if(92===s){if(rr(e,n,e.position,!0),zn(s=e.input.charCodeAt(++e.position)))sr(e,!1,t);else if(s<256&&Jn[s])e.result+=Qn[s],e.position++;else if((a=120===(c=s)?2:117===c?4:85===c?8:0)>0){for(i=a,o=0;i>0;i--)(a=Kn(s=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:er(e,"expected hexadecimal character");e.result+=Gn(o),e.position++}else er(e,"unknown escape sequence");n=r=e.position}else zn(s)?(rr(e,n,r,!0),lr(e,sr(e,!1,t)),n=r=e.position):e.position===e.lineStart&&cr(e)?er(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}er(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?b=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Hn(r)&&!$n(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&er(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Rn.call(e.anchorMap,n)||er(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],sr(e,!0,-1),!0}(e)?function(e,t,n){var r,i,o,a,s,c,l,u,f=e.kind,d=e.result;if(Hn(u=e.input.charCodeAt(e.position))||$n(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Hn(r=e.input.charCodeAt(e.position+1))||n&&$n(r)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,a=!1;0!==u;){if(58===u){if(Hn(r=e.input.charCodeAt(e.position+1))||n&&$n(r))break}else if(35===u){if(Hn(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&cr(e)||n&&$n(u))break;if(zn(u)){if(s=e.line,c=e.lineStart,l=e.lineIndent,sr(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=c,e.lineIndent=l;break}}a&&(rr(e,i,o,!1),lr(e,e.line-s),i=o=e.position,a=!1),Vn(u)||(o=e.position+1),u=e.input.charCodeAt(++e.position)}return rr(e,i,o,!1),!!e.result||(e.kind=f,e.result=d,!1)}(e,d,1===n)&&(b=!0,null===e.tag&&(e.tag="?")):(b=!0,null===e.tag&&null===e.anchor||er(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===h&&(b=s&&ur(e,p))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&er(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((f=e.implicitTypes[c]).resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(Rn.call(e.typeMap[e.kind||"fallback"],e.tag))f=e.typeMap[e.kind||"fallback"][e.tag];else for(f=null,c=0,l=(u=e.typeMap.multi[e.kind||"fallback"]).length;c<l;c+=1)if(e.tag.slice(0,u[c].tag.length)===u[c].tag){f=u[c];break}f||er(e,"unknown tag !<"+e.tag+">"),null!==e.result&&f.kind!==e.kind&&er(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):er(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||b}function hr(e){var t,n,r,i,o=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(i=e.input.charCodeAt(e.position))&&(sr(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(a=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!Hn(i);)i=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&er(e,"directive name must not be less than one character in length");0!==i;){for(;Vn(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!zn(i));break}if(zn(i))break;for(t=e.position;0!==i&&!Hn(i);)i=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==i&&ar(e),Rn.call(nr,n)?nr[n](e,n,r):tr(e,'unknown document directive "'+n+'"')}sr(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,sr(e,!0,-1)):a&&er(e,"directives end mark is expected"),pr(e,e.lineIndent-1,4,!1,!0),sr(e,!0,-1),e.checkLineBreaks&&Bn.test(e.input.slice(o,e.position))&&tr(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&cr(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,sr(e,!0,-1)):e.position<e.length-1&&er(e,"end of the stream or a document separator is expected")}function mr(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new Zn(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,er(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)hr(n);return n.documents}var br={loadAll:function(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=mr(e,n);if("function"!=typeof t)return r;for(var i=0,o=r.length;i<o;i+=1)t(r[i])},load:function(e,t){var n=mr(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new Xt("expected a single document in the stream, but found more")}}},yr=Object.prototype.toString,gr=Object.prototype.hasOwnProperty,vr={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},wr=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],_r=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function kr(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else{if(!(e<=4294967295))throw new Xt("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+Qt.repeat("0",r-t.length)+t}function xr(e){this.schema=e.schema||Dn,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Qt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,i,o,a,s,c;if(null===t)return{};for(n={},i=0,o=(r=Object.keys(t)).length;i<o;i+=1)a=r[i],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(c=e.compiledTypeMap.fallback[a])&&gr.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[a]=s;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?2:1,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Sr(e,t){for(var n,r=Qt.repeat(" ",t),i=0,o=-1,a="",s=e.length;i<s;)-1===(o=e.indexOf("\n",i))?(n=e.slice(i),i=s):(n=e.slice(i,o+1),i=o+1),n.length&&"\n"!==n&&(a+=r),a+=n;return a}function Or(e,t){return"\n"+Qt.repeat(" ",e.indent*t)}function Er(e){return 32===e||9===e}function Tr(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function Ar(e){return Tr(e)&&65279!==e&&13!==e&&10!==e}function Mr(e,t,n){var r=Ar(e),i=r&&!Er(e);return(n?r:r&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!i)||Ar(t)&&!Er(t)&&35===e||58===t&&i}function Ir(e,t){var n,r=e.charCodeAt(t);return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(r-55296)+n-56320+65536:r}function Pr(e){return/^\n* /.test(e)}function Cr(e,t,n,r,i,o,a,s){var c,l,u=0,f=null,d=!1,p=!1,h=-1!==r,m=-1,b=Tr(l=Ir(e,0))&&65279!==l&&!Er(l)&&45!==l&&63!==l&&58!==l&&44!==l&&91!==l&&93!==l&&123!==l&&125!==l&&35!==l&&38!==l&&42!==l&&33!==l&&124!==l&&61!==l&&62!==l&&39!==l&&34!==l&&37!==l&&64!==l&&96!==l&&function(e){return!Er(e)&&58!==e}(Ir(e,e.length-1));if(t||a)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!Tr(u=Ir(e,c)))return 5;b=b&&Mr(u,f,s),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(10===(u=Ir(e,c)))d=!0,h&&(p=p||c-m-1>r&&" "!==e[m+1],m=c);else if(!Tr(u))return 5;b=b&&Mr(u,f,s),f=u}p=p||h&&c-m-1>r&&" "!==e[m+1]}return d||p?n>9&&Pr(e)?5:a?2===o?5:2:p?4:3:!b||a||i(e)?2===o?5:2:1}function jr(e,t,n,r,i){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==wr.indexOf(t)||_r.test(t)))return 2===e.quotingType?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),s=r||e.flowLevel>-1&&n>=e.flowLevel;switch(Cr(t,s,e.indent,a,(function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!r,i)){case 1:return t;case 2:return"'"+t.replace(/'/g,"''")+"'";case 3:return"|"+Dr(t,e.indent)+Rr(Sr(t,o));case 4:return">"+Dr(t,e.indent)+Rr(Sr(function(e,t){var n,r,i=/(\n+)([^\n]*)/g,o=(s=e.indexOf("\n"),s=-1!==s?s:e.length,i.lastIndex=s,Nr(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];var s;for(;r=i.exec(e);){var c=r[1],l=r[2];n=" "===l[0],o+=c+(a||n||""===l?"":"\n")+Nr(l,t),a=n}return o}(t,a),o));case 5:return'"'+function(e){for(var t,n="",r=0,i=0;i<e.length;r>=65536?i+=2:i++)r=Ir(e,i),!(t=vr[r])&&Tr(r)?(n+=e[i],r>=65536&&(n+=e[i+1])):n+=t||kr(r);return n}(t)+'"';default:throw new Xt("impossible error: invalid scalar style")}}()}function Dr(e,t){var n=Pr(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function Rr(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Nr(e,t){if(""===e||" "===e[0])return e;for(var n,r,i=/ [^ ]/g,o=0,a=0,s=0,c="";n=i.exec(e);)(s=n.index)-o>t&&(r=a>o?a:s,c+="\n"+e.slice(o,r),o=r+1),a=s;return c+="\n",e.length-o>t&&a>o?c+=e.slice(o,a)+"\n"+e.slice(a+1):c+=e.slice(o),c.slice(1)}function Br(e,t,n,r){var i,o,a,s="",c=e.tag;for(i=0,o=n.length;i<o;i+=1)a=n[i],e.replacer&&(a=e.replacer.call(n,String(i),a)),(Ur(e,t+1,a,!0,!0,!1,!0)||void 0===a&&Ur(e,t+1,null,!0,!0,!1,!0))&&(r&&""===s||(s+=Or(e,t)),e.dump&&10===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=c,e.dump=s||"[]"}function Lr(e,t,n){var r,i,o,a,s,c;for(o=0,a=(i=n?e.explicitTypes:e.implicitTypes).length;o<a;o+=1)if(((s=i[o]).instanceOf||s.predicate)&&(!s.instanceOf||"object"==typeof t&&t instanceof s.instanceOf)&&(!s.predicate||s.predicate(t))){if(n?s.multi&&s.representName?e.tag=s.representName(t):e.tag=s.tag:e.tag="?",s.represent){if(c=e.styleMap[s.tag]||s.defaultStyle,"[object Function]"===yr.call(s.represent))r=s.represent(t,c);else{if(!gr.call(s.represent,c))throw new Xt("!<"+s.tag+'> tag resolver accepts not "'+c+'" style');r=s.represent[c](t,c)}e.dump=r}return!0}return!1}function Ur(e,t,n,r,i,o,a){e.tag=null,e.dump=n,Lr(e,n,!1)||Lr(e,n,!0);var s,c=yr.call(e.dump),l=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var u,f,d="[object Object]"===c||"[object Array]"===c;if(d&&(f=-1!==(u=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(i=!1),f&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(d&&f&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var i,o,a,s,c,l,u="",f=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new Xt("sortKeys must be a boolean or a function");for(i=0,o=d.length;i<o;i+=1)l="",r&&""===u||(l+=Or(e,t)),s=n[a=d[i]],e.replacer&&(s=e.replacer.call(n,a,s)),Ur(e,t+1,a,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&10===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=Or(e,t)),Ur(e,t+1,s,!0,c)&&(e.dump&&10===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=f,e.dump=u||"{}"}(e,t,e.dump,i),f&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,i,o,a,s,c="",l=e.tag,u=Object.keys(n);for(r=0,i=u.length;r<i;r+=1)s="",""!==c&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[o=u[r]],e.replacer&&(a=e.replacer.call(n,o,a)),Ur(e,t,o,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ur(e,t,a,!1,!1)&&(c+=s+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===c)r&&0!==e.dump.length?(e.noArrayIndent&&!a&&t>0?Br(e,t-1,e.dump,i):Br(e,t,e.dump,i),f&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,n){var r,i,o,a="",s=e.tag;for(r=0,i=n.length;r<i;r+=1)o=n[r],e.replacer&&(o=e.replacer.call(n,String(r),o)),(Ur(e,t,o,!1,!1)||void 0===o&&Ur(e,t,null,!1,!1))&&(""!==a&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}(e,t,e.dump),f&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new Xt("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&jr(e,e.dump,t,o,l)}null!==e.tag&&"?"!==e.tag&&(s=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),s="!"===e.tag[0]?"!"+s:"tag:yaml.org,2002:"===s.slice(0,18)?"!!"+s.slice(18):"!<"+s+">",e.dump=s+" "+e.dump)}return!0}function Fr(e,t){var n,r,i=[],o=[];for(function e(t,n,r){var i,o,a;if(null!==t&&"object"==typeof t)if(-1!==(o=n.indexOf(t)))-1===r.indexOf(o)&&r.push(o);else if(n.push(t),Array.isArray(t))for(o=0,a=t.length;o<a;o+=1)e(t[o],n,r);else for(i=Object.keys(t),o=0,a=i.length;o<a;o+=1)e(t[i[o]],n,r)}(e,i,o),n=0,r=o.length;n<r;n+=1)t.duplicates.push(i[o[n]]);t.usedDuplicates=new Array(r)}function qr(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var zr={Type:an,Schema:ln,FAILSAFE_SCHEMA:un,JSON_SCHEMA:vn,CORE_SCHEMA:wn,DEFAULT_SCHEMA:Dn,load:br.load,loadAll:br.loadAll,dump:{dump:function(e,t){var n=new xr(t=t||{});n.noRefs||Fr(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Ur(n,0,r,!0,!0)?n.dump+"\n":""}}.dump,YAMLException:Xt,safeLoad:qr("safeLoad","load"),safeLoadAll:qr("safeLoadAll","loadAll"),safeDump:qr("safeDump","dump")},Vr=n(2),Hr=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};function $r(e){return{icon:void 0,title:"Custom",content:i.a.createElement(i.a.Fragment,null,i.a.createElement(Yr,{msg:e}))}}function Kr(e,t,n,r){const o=[];for(const t of n){const n=new me.Coin(t.denom,t.amount),r=me.CoinUtils.parseDecAndDenomFromCoin(e,n);o.push({amount:Zr(r.amount),denom:r.denom})}return{icon:"fas fa-paper-plane",title:t.formatMessage({id:"sign.list.message.cosmos-sdk/MsgSend.title"}),content:i.a.createElement(C.a,{id:"sign.list.message.cosmos-sdk/MsgSend.content",values:{b:(...e)=>i.a.createElement("b",null,e),recipient:R.Bech32Address.shortenAddress(r,20),amount:o.map(e=>`${e.amount} ${e.denom}`).join(",")}})}}function Wr(e,t,n,r,o){const a=me.CoinUtils.parseDecAndDenomFromCoin(e,new me.Coin(n.denom,n.amount));return{icon:"fas fa-layer-group",title:t.formatMessage({id:"sign.list.message.cosmos-sdk/MsgBeginRedelegate.title"}),content:i.a.createElement(C.a,{id:"sign.list.message.cosmos-sdk/MsgBeginRedelegate.content",values:{b:(...e)=>i.a.createElement("b",null,e),fromValidator:R.Bech32Address.shortenAddress(r,24),toValidator:R.Bech32Address.shortenAddress(o,24),amount:`${Zr(a.amount)} ${a.denom}`}})}}function Gr(e,t,n,r){const o=me.CoinUtils.parseDecAndDenomFromCoin(e,new me.Coin(n.denom,n.amount));return{icon:"fas fa-layer-group",title:t.formatMessage({id:"sign.list.message.cosmos-sdk/MsgUndelegate.title"}),content:i.a.createElement(C.a,{id:"sign.list.message.cosmos-sdk/MsgUndelegate.content",values:{b:(...e)=>i.a.createElement("b",null,e),br:i.a.createElement("br",null),validator:R.Bech32Address.shortenAddress(r,24),amount:`${Zr(o.amount)} ${o.denom}`}})}}function Jr(e,t,n,r){const o=me.CoinUtils.parseDecAndDenomFromCoin(e,new me.Coin(n.denom,n.amount));return{icon:"fas fa-layer-group",title:t.formatMessage({id:"sign.list.message.cosmos-sdk/MsgDelegate.title"}),content:i.a.createElement(C.a,{id:"sign.list.message.cosmos-sdk/MsgDelegate.content",values:{b:(...e)=>i.a.createElement("b",null,e),validator:R.Bech32Address.shortenAddress(r,24),amount:`${Zr(o.amount)} ${o.denom}`}})}}const Qr=Object(T.a)(({msg:e})=>{const{chainStore:t}=Object(A.b)(),[n,o]=Object(r.useState)(!0),a=Object(ae.a)(),[s,c]=Object(r.useState)(()=>JSON.stringify(e,null,2)),[l,u]=Object(r.useState)("");return Object(r.useEffect)(()=>{"string"==typeof e&&Hr(void 0,void 0,void 0,(function*(){try{let n=Vr.Buffer.from(Vr.Buffer.from(e,"base64"));const r=n.slice(0,32);n=n.slice(64);const i=yield se.AccountStore.getKeplr();if(!i)throw new Error("Can't get the keplr API");const o=i.getEnigmaUtils(t.current.chainId);let a=Vr.Buffer.from(yield o.decrypt(n,r));a=a.slice(64),c(JSON.stringify(JSON.parse(a.toString()),null,2)),u("")}catch(e){u(a.formatMessage({id:"sign.list.message.wasm/MsgExecuteContract.content.warning.secret-wasm.failed-decryption"}))}}))},[t,t.current.chainId,a,e]),i.a.createElement("div",null,n?i.a.createElement(i.a.Fragment,null,i.a.createElement("pre",{style:{width:"280px"}},n?s:""),l?i.a.createElement("div",null,l):null):null,i.a.createElement(E.a,{size:"sm",style:{float:"right",marginRight:"6px"},onClick:e=>{e.preventDefault(),e.stopPropagation(),o(e=>!e)}},n?a.formatMessage({id:"sign.list.message.wasm.button.close"}):a.formatMessage({id:"sign.list.message.wasm.button.details"})))}),Yr=({msg:e})=>{const t=Object(r.useMemo)(()=>{try{return zr.dump(e)}catch(e){return console.log(e),"Failed to decode the msg"}},[e]);return i.a.createElement("div",null,i.a.createElement("pre",{style:{width:"280px"}},t))};function Zr(e){if(!e.includes("."))return e;for(let t=e.length-1;t>=0&&"0"===e[t];t--)e=e.slice(0,e.length-1);return e.length>0&&"."===e[e.length-1]&&(e=e.slice(0,e.length-1)),e}function Xr(e,t,n,r){if(t.type===e.send.native.type){const e=t.value;return Kr(n,r,e.amount,e.to_address)}if(t.type===e.ibcTransfer.type){const e=t.value;return function(e,t,n,r,o){const a=new me.Coin(n.denom,n.amount),s=me.CoinUtils.parseDecAndDenomFromCoin(e,a);return n={amount:Zr(s.amount),denom:s.denom},{icon:"fas fa-link",title:t.formatMessage({id:"sign.list.message.cosmos-sdk/MsgTransfer.title"}),content:i.a.createElement(C.a,{id:"sign.list.message.cosmos-sdk/MsgTransfer.content",values:{b:(...e)=>i.a.createElement("b",null,e),receiver:R.Bech32Address.shortenAddress(r,20),amount:`${n.amount} ${n.denom}`,channel:o}})}}(n,r,e.token,e.receiver,e.source_channel)}if(t.type===e.redelegate.type){const e=t.value;return Wr(n,r,e.amount,e.validator_src_address,e.validator_dst_address)}if(t.type===e.undelegate.type){const e=t.value;return Gr(n,r,e.amount,e.validator_address)}if(t.type===e.delegate.type){const e=t.value;return Jr(n,r,e.amount,e.validator_address)}if(t.type===e.withdrawRewards.type){return function(e,t){return{icon:"fas fa-money-bill",title:e.formatMessage({id:"sign.list.message.cosmos-sdk/MsgWithdrawDelegatorReward.title"}),content:i.a.createElement(C.a,{id:"sign.list.message.cosmos-sdk/MsgWithdrawDelegatorReward.content",values:{b:(...e)=>i.a.createElement("b",null,e),validator:R.Bech32Address.shortenAddress(t,34)}})}}(r,t.value.validator_address)}if(t.type===e.govVote.type){const e=t.value;return function(e,t,n){const r=(()=>{if("string"==typeof n)return n;switch(n){case 0:return"Empty";case 1:return"Yes";case 2:return"Abstain";case 3:return"No";case 4:return"No with veto";default:return"Unspecified"}})();return{icon:"fas fa-vote-yea",title:e.formatMessage({id:"sign.list.message.cosmos-sdk/MsgVote.title"}),content:i.a.createElement(C.a,{id:"sign.list.message.cosmos-sdk/MsgVote.content",values:{b:(...e)=>i.a.createElement("b",null,e),id:t,option:r}})}}(r,e.proposal_id,e.option)}if("wasm/MsgInstantiateContract"===t.type){const e=t.value;return function(e,t,n,r,o,a,s){const c=[];for(const t of n){const n=new me.Coin(t.denom,t.amount),r=me.CoinUtils.parseDecAndDenomFromCoin(e,n);c.push({amount:Zr(r.amount),denom:r.denom})}return{icon:"fas fa-cog",title:t.formatMessage({id:"sign.list.message.wasm/MsgInstantiateContract.title"}),content:i.a.createElement(i.a.Fragment,null,i.a.createElement(C.a,{id:"sign.list.message.wasm/MsgInstantiateContract.content",values:{b:(...e)=>i.a.createElement("b",null,e),br:i.a.createElement("br",null),admin:r?R.Bech32Address.shortenAddress(r,30):"","only-admin-exist":(...e)=>r?e:"",codeId:o,label:a,"only-funds-exist":(...e)=>c.length>0?e:"",funds:c.map(e=>`${e.amount} ${e.denom}`).join(",")}}),i.a.createElement("br",null),i.a.createElement(Qr,{msg:s}))}}(n,r,e.init_funds,e.admin,e.code_id,e.label,e.init_msg)}if(t.type===e.executeSecretWasm.type){const e=t.value;return function(e,t,n,r,o,a){const s=[];for(const t of n){const n=new me.Coin(t.denom,t.amount),r=me.CoinUtils.parseDecAndDenomFromCoin(e,n);s.push({amount:Zr(r.amount),denom:r.denom})}const c=null!=r;return{icon:"fas fa-cog",title:t.formatMessage({id:"sign.list.message.wasm/MsgExecuteContract.title"}),content:i.a.createElement(i.a.Fragment,null,i.a.createElement(C.a,{id:"sign.list.message.wasm/MsgExecuteContract.content",values:{b:(...e)=>i.a.createElement("b",null,e),br:i.a.createElement("br",null),address:R.Bech32Address.shortenAddress(o,26),"only-sent-exist":(...e)=>s.length>0?e:"",sent:s.map(e=>`${e.amount} ${e.denom}`).join(",")}}),c?i.a.createElement(i.a.Fragment,null,i.a.createElement("br",null),i.a.createElement(Gt,{color:"primary",pill:!0,style:{marginTop:"6px",marginBottom:"6px"}},i.a.createElement(C.a,{id:"sign.list.message.wasm/MsgExecuteContract.content.badge.secret-wasm"}))):i.a.createElement("br",null),i.a.createElement(Qr,{msg:a}))}}(n,r,e.sent_funds,e.callback_code_hash,e.contract,e.msg)}if("cyber/Link"===t.type){const e=t.value,n=[];for(const t of e.links)n.push({from:t.from,to:t.to});return{icon:"fas fa-paper-plane",title:r.formatMessage({id:"sign.list.message.cyber/Link.title"}),content:i.a.createElement(C.a,{id:"sign.list.message.cyber/Link.content",values:{b:(...e)=>i.a.createElement("b",null,e),br:i.a.createElement("br",null),address:R.Bech32Address.shortenAddress(e.address,20),link:n.map(e=>`${$t.Hash.truncHashPortion(e.from,7,7)} → ${$t.Hash.truncHashPortion(e.to,7,7)}`).join(", ")}})}}return $r(t)}var ei=n(405);const ti=Object(T.a)(({signDocHelper:e,memoConfig:t,feeConfig:n,gasConfig:r,isInternal:o,preferNoSetFee:a,preferNoSetMemo:c})=>{var l;const{chainStore:u,priceStore:f,accountStore:d}=Object(A.b)(),p=Object(ae.a)(),h=Object(s.b)(),m=e.signDocWrapper?e.signDocWrapper.mode:"none",b=e.signDocWrapper?"amino"===e.signDocWrapper.mode?e.signDocWrapper.aminoSignDoc.msgs:e.signDocWrapper.protoSignDoc.txMsgs:[],y="amino"===m?b.map((e,t)=>{const n=Xr(d.getAccount(u.current.chainId).msgOpts,e,u.current.currencies,p);return i.a.createElement(i.a.Fragment,{key:t.toString()},i.a.createElement(ni,{icon:n.icon,title:n.title},n.content),i.a.createElement("hr",null))}):"direct"===m?b.map((e,t)=>{const n=function(e,t,n){return e instanceof R.cosmos.bank.v1beta1.MsgSend?Kr(t,n,e.amount,e.toAddress):e instanceof R.cosmos.staking.v1beta1.MsgDelegate?Jr(t,n,e.amount,e.validatorAddress):e instanceof R.cosmos.staking.v1beta1.MsgBeginRedelegate?Wr(t,n,e.amount,e.validatorSrcAddress,e.validatorDstAddress):e instanceof R.cosmos.staking.v1beta1.MsgUndelegate?Gr(t,n,e.amount,e.validatorAddress):e instanceof R.UnknownMessage?$r(e.toJSON()):$r({typeUrl:e.typeUrl||e.type_url||"Unknown",value:Vr.Buffer.from(e.value).toString("base64")})}(e,u.current.currencies,p);return i.a.createElement(i.a.Fragment,{key:t.toString()},i.a.createElement(ni,{icon:n.icon,title:n.title},n.content),i.a.createElement("hr",null))}):null;return i.a.createElement("div",{className:Ht.a.container},i.a.createElement(ei.a,{for:"signing-messages",className:"form-control-label",style:{display:"flex"}},i.a.createElement(C.a,{id:"sign.list.messages.label"}),i.a.createElement(Gt,{className:"ml-2",color:"primary"},b.length)),i.a.createElement("div",{id:"signing-messages",className:Ht.a.msgContainer},y),c?i.a.createElement(i.a.Fragment,null,i.a.createElement(ei.a,{for:"memo",className:"form-control-label"},i.a.createElement(C.a,{id:"sign.info.memo"})),i.a.createElement("div",{id:"memo",style:{marginBottom:"8px"}},i.a.createElement("div",{style:{color:t.memo?void 0:"#AAAAAA"}},t.memo?t.memo:p.formatMessage({id:"sign.info.warning.empty-memo"})))):i.a.createElement(dt.f,{memoConfig:t,label:p.formatMessage({id:"sign.info.memo"}),rows:1}),a&&n.isManual?n.fee?i.a.createElement(i.a.Fragment,null,i.a.createElement(ei.a,{for:"fee-price",className:"form-control-label"},i.a.createElement(C.a,{id:"sign.info.fee"})),i.a.createElement("div",{id:"fee-price"},i.a.createElement("div",null,n.fee.maxDecimals(6).trim(!0).toString(),f.calculatePrice(h.fiatCurrency,n.fee)?i.a.createElement("div",{className:"ml-2",style:{display:"inline-block",fontSize:"12px"}},null===(l=f.calculatePrice(h.fiatCurrency,n.fee))||void 0===l?void 0:l.toString()):null)),o?null:i.a.createElement("div",{style:{fontSize:"12px"}},i.a.createElement(E.a,{color:"link",size:"sm",style:{padding:0},onClick:e=>{e.preventDefault(),n.setFeeType("average")}},i.a.createElement(C.a,{id:"sign.info.fee.override"})))):null:i.a.createElement(dt.d,{feeConfig:n,gasConfig:r,priceStore:f,label:p.formatMessage({id:"sign.info.fee"}),gasLabel:p.formatMessage({id:"sign.info.gas"})}))}),ni=({icon:e="fas fa-question",title:t,children:n})=>i.a.createElement("div",{className:Ht.a.msg},i.a.createElement("div",{className:Ht.a.icon},i.a.createElement("div",{style:{height:"2px"}}),i.a.createElement("i",{className:e}),i.a.createElement("div",{style:{flex:1}})),i.a.createElement("div",{className:Ht.a.contentContainer},i.a.createElement("div",{className:Ht.a.contentTitle},t),i.a.createElement("div",{className:Ht.a.content},n)));var ri,ii=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};!function(e){e[e.Details=0]="Details",e[e.Data=1]="Data"}(ri||(ri={}));const oi=Object(T.a)(()=>{var e,t,n,o,a;const s=Object(c.useHistory)(),[l,u]=Object(r.useState)(ri.Details),f=Object(ae.a)(),{chainStore:d,keyRingStore:p,signInteractionStore:h,accountStore:m,queriesStore:b}=Object(A.b)(),[y,g]=Object(r.useState)(""),v=d.current,w=Object(O.useGasConfig)(d,v.chainId,1),_=Object(O.useSignDocAmountConfig)(d,v.chainId,m.getAccount(v.chainId).msgOpts),k=Object(O.useFeeConfig)(d,v.chainId,y,b.get(v.chainId).getQueryBalances(),_,w),x=Object(O.useMemoConfig)(d,v.chainId),S=null===(e=h.waitingData)||void 0===e?void 0:e.data.signDocWrapper,T=Object(O.useSignDocHelper)(k,x);_.setSignDocHelper(T),Object(r.useEffect)(()=>{if(h.waitingData){const e=h.waitingData;d.selectChain(e.data.signDocWrapper.chainId),T.setSignDocWrapper(e.data.signDocWrapper),w.setGas(e.data.signDocWrapper.gas),x.setMemo(e.data.signDocWrapper.memo),e.data.signOptions.preferNoSetFee&&e.data.signDocWrapper.fees[0]&&k.setManualFee(e.data.signDocWrapper.fees[0]),g(e.data.signer)}},[d,w,x,k,T,h.waitingData]);const[M,I]=Object(r.useState)(!1),P=!0===(null===(t=h.waitingData)||void 0===t?void 0:t.data.signOptions.preferNoSetFee)||!0===(null===(n=h.waitingData)||void 0===n?void 0:n.data.signOptions.preferNoSetMemo),j=!0===(null===(o=h.waitingData)||void 0===o?void 0:o.data.signOptions.preferNoSetFee)||M,D=!0===(null===(a=h.waitingData)||void 0===a?void 0:a.data.signOptions.preferNoSetMemo)||M,R=Object(O.useInteractionInfo)(()=>{P&&I(!0),h.rejectAll()});return i.a.createElement(U.a,{showChainName:!0,canChangeChainInfo:!1,onBackButton:R.interactionInternal?()=>{s.goBack()}:void 0,style:{background:"white"}},y?i.a.createElement("div",{className:qt.a.container},i.a.createElement("div",{className:q()(qt.a.tabs)},i.a.createElement("ul",null,i.a.createElement("li",{className:q()({active:l===ri.Details})},i.a.createElement("a",{className:qt.a.tab,onClick:()=>{u(ri.Details)}},f.formatMessage({id:"sign.tab.details"}))),i.a.createElement("li",{className:q()({active:l===ri.Data})},i.a.createElement("a",{className:qt.a.tab,onClick:()=>{u(ri.Data)}},f.formatMessage({id:"sign.tab.data"}))))),i.a.createElement("div",{className:q()(qt.a.tabContainer,{[qt.a.dataTab]:l===ri.Data})},l===ri.Data?i.a.createElement(zt,{signDocHelper:T}):null,l===ri.Details?i.a.createElement(ti,{signDocHelper:T,memoConfig:x,feeConfig:k,gasConfig:w,isInternal:R.interaction&&R.interactionInternal,preferNoSetFee:j,preferNoSetMemo:D}):null),i.a.createElement("div",{style:{flex:1}}),i.a.createElement("div",{className:qt.a.buttons},"ledger"===p.keyRingType&&h.isLoading?i.a.createElement(E.a,{className:qt.a.button,color:"primary",disabled:!0,outline:!0},i.a.createElement(C.a,{id:"sign.button.confirm-ledger"})," ",i.a.createElement("i",{className:"fa fa-spinner fa-spin fa-fw"})):i.a.createElement(i.a.Fragment,null,i.a.createElement(E.a,{className:qt.a.button,color:"danger",disabled:null==S||null==T.signDocWrapper,"data-loading":h.isLoading,onClick:e=>ii(void 0,void 0,void 0,(function*(){e.preventDefault(),P&&I(!0),yield h.reject(),R.interaction&&!R.interactionInternal&&window.close()})),outline:!0},f.formatMessage({id:"sign.button.reject"})),i.a.createElement(E.a,{className:qt.a.button,color:"primary",disabled:null==S||null==T.signDocWrapper||null!=x.getError()||null!=k.getError(),"data-loading":h.isLoading,onClick:e=>ii(void 0,void 0,void 0,(function*(){e.preventDefault(),P&&I(!0),T.signDocWrapper&&(yield h.approveAndWaitEnd(T.signDocWrapper)),R.interaction&&!R.interactionInternal&&window.close()}))},f.formatMessage({id:"sign.button.approve"}))))):i.a.createElement("div",{style:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},i.a.createElement("i",{className:"fas fa-spinner fa-spin fa-2x text-gray"})))});var ai=n(387),si=n.n(ai),ci=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const li=Object(T.a)(()=>{var e,t;const{chainSuggestStore:r}=Object(A.b)(),o=Object(c.useHistory)(),a=Object(O.useInteractionInfo)(()=>{r.rejectAll()});return i.a.createElement(P.a,{style:{height:"100%",paddingTop:"80px"}},i.a.createElement("div",{className:si.a.container},i.a.createElement("img",{src:n(413),alt:"logo",style:{height:"92px"}}),i.a.createElement("h1",{className:si.a.header},i.a.createElement(C.a,{id:"chain.suggested.title"})),i.a.createElement("p",{className:si.a.paragraph},i.a.createElement(C.a,{id:"chain.suggested.paragraph",values:{host:null===(e=r.waitingSuggestedChainInfo)||void 0===e?void 0:e.data.origin,chainId:null===(t=r.waitingSuggestedChainInfo)||void 0===t?void 0:t.data.chainId,b:(...e)=>i.a.createElement("b",null,e)}})),i.a.createElement("div",{style:{flex:1}}),i.a.createElement(jt.a,{className:si.a.warning,color:"warning"},i.a.createElement("div",{className:si.a.imgContainer},i.a.createElement("img",{src:n(1516),alt:"experiment"})),i.a.createElement("div",{className:si.a.content},i.a.createElement("div",{className:si.a.title},i.a.createElement(C.a,{id:"chain.suggested.waring.experiment.title"})),i.a.createElement("div",null,i.a.createElement(C.a,{id:"chain.suggested.waring.experiment.paragraph"})))),i.a.createElement("div",{className:si.a.buttons},i.a.createElement(E.a,{className:si.a.button,color:"danger",outline:!0,disabled:!r.waitingSuggestedChainInfo,"data-loading":r.isLoading,onClick:e=>ci(void 0,void 0,void 0,(function*(){e.preventDefault(),yield r.reject(),a.interaction&&!a.interactionInternal?window.close():o.push("/")}))},i.a.createElement(C.a,{id:"chain.suggested.button.reject"})),i.a.createElement(E.a,{className:si.a.button,color:"primary",disabled:!r.waitingSuggestedChainInfo,"data-loading":r.isLoading,onClick:e=>ci(void 0,void 0,void 0,(function*(){e.preventDefault(),yield r.approve(),a.interaction&&!a.interactionInternal?window.close():o.push("/")}))},i.a.createElement(C.a,{id:"chain.suggested.button.approve"})))))});var ui=n(87),fi=n(227),di=n.n(fi);const pi=Object(T.a)(()=>{const e=Object(s.b)(),t=Object(c.useHistory)(),n=Object(ae.a)(),o=e.automatic?n.formatMessage({id:"setting.language.automatic-with-language"},{language:n.formatMessage({id:"setting.language."+e.language})}):n.formatMessage({id:"setting.language."+e.language}),a=e.isFiatCurrencyAutomatic?n.formatMessage({id:"setting.fiat.automatic-with-fiat"},{fiat:e.fiatCurrency.toUpperCase()}):e.fiatCurrency.toUpperCase();return i.a.createElement(U.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:n.formatMessage({id:"main.menu.settings"}),onBackButton:()=>{t.goBack()}},i.a.createElement("div",{className:di.a.container},i.a.createElement(ui.a,{title:n.formatMessage({id:"setting.language"}),paragraph:o,onClick:()=>{t.push({pathname:"/setting/language"})},icons:Object(r.useMemo)(()=>[i.a.createElement("i",{key:"next",className:"fas fa-chevron-right"})],[])}),i.a.createElement(ui.a,{title:n.formatMessage({id:"setting.fiat"}),paragraph:a,onClick:()=>{t.push({pathname:"/setting/fiat"})},icons:Object(r.useMemo)(()=>[i.a.createElement("i",{key:"next",className:"fas fa-chevron-right"})],[])}),i.a.createElement(ui.a,{title:n.formatMessage({id:"setting.connections"}),paragraph:n.formatMessage({id:"setting.connections.paragraph"}),onClick:()=>{t.push({pathname:"/setting/connections"})},icons:Object(r.useMemo)(()=>[i.a.createElement("i",{key:"next",className:"fas fa-chevron-right"})],[])}),i.a.createElement(ui.a,{title:n.formatMessage({id:"setting.credit"}),onClick:()=>{t.push({pathname:"/setting/credit"})},icons:Object(r.useMemo)(()=>[i.a.createElement("i",{key:"next",className:"fas fa-chevron-right"})],[])})))}),hi=Object(T.a)(()=>{const e=Object(c.useHistory)(),t=Object(ae.a)(),n=Object(s.b)(),{priceStore:o}=Object(A.b)(),a=Object(r.useMemo)(()=>[i.a.createElement("i",{key:"selected",className:"fas fa-check"})],[]);return i.a.createElement(U.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:t.formatMessage({id:"setting.fiat"}),onBackButton:()=>{e.goBack()}},i.a.createElement("div",{className:di.a.container},i.a.createElement(ui.a,{title:t.formatMessage({id:"setting.fiat.automatic"}),onClick:()=>{n.setFiatCurrency(null),e.push({pathname:"/"})},icons:n.isFiatCurrencyAutomatic?a:void 0}),Object.keys(o.supportedVsCurrencies).map(t=>{const r=o.supportedVsCurrencies[t];return i.a.createElement(ui.a,{key:r.currency,title:`${r.currency.toUpperCase()} (${r.symbol})`,onClick:()=>{n.setFiatCurrency(r.currency),e.push({pathname:"/"})},icons:n.isFiatCurrencyAutomatic?void 0:n.fiatCurrency===r.currency?a:void 0})})))});var mi=n(948),bi=n(949),yi=n(946),gi=n(897),vi=n(1061),wi=n.n(vi),_i=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const ki=Object(T.a)(()=>{const e=Object(c.useHistory)(),t=Object(ae.a)(),{chainStore:o,permissionStore:a}=Object(A.b)(),[s,l]=Object(r.useState)(o.current.chainId),u=a.getBasicAccessInfo(s),[f,d]=Object(r.useState)(!1),p=Object(it.b)(),h=Object(r.useMemo)(()=>[i.a.createElement("i",{key:"remove",className:"fas fa-times"})],[]);return i.a.createElement(U.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:t.formatMessage({id:"setting.connections"}),onBackButton:()=>{e.goBack()}},i.a.createElement("div",{className:di.a.container},i.a.createElement(mi.a,{isOpen:f,toggle:()=>d(!f),className:wi.a.dropdown},i.a.createElement(bi.a,{caret:!0,style:{boxShadow:"none"}},o.getChain(s).chainName),i.a.createElement(yi.a,null,o.chainInfos.map(e=>i.a.createElement(gi.a,{key:e.chainId,onClick:t=>{t.preventDefault(),l(e.chainId)}},e.chainName)))),u.origins.map(e=>i.a.createElement(ui.a,{title:e,key:e,onClick:r=>_i(void 0,void 0,void 0,(function*(){r.preventDefault(),(yield p.confirm({img:i.a.createElement("img",{alt:"unlink",src:n(1039),style:{height:"80px"}}),title:t.formatMessage({id:"setting.connections.confirm.delete-connection.title"}),paragraph:t.formatMessage({id:"setting.connections.confirm.delete-connection.paragraph"})}))&&(yield u.removeOrigin(e))})),icons:h}))))});var xi=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const Si=Object(T.a)(()=>{var e,t;const o=Object(c.useRouteMatch)(),a=Object(ae.a)(),s=Object(c.useHistory)(),l=Object(it.b)(),{chainStore:u,permissionStore:f,queriesStore:d}=Object(A.b)(),p=d.get(u.current.chainId).getQuerySecret20ContractInfo().getQueryContract(o.params.contractAddress),h=f.getSecret20ViewingKeyAccessInfo(u.current.chainId,o.params.contractAddress),m=Object(r.useMemo)(()=>[i.a.createElement("i",{key:"remove",className:"fas fa-times"})],[]);return i.a.createElement(U.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:a.formatMessage({id:"setting.connections.viewing-key"}),onBackButton:()=>{s.goBack()}},i.a.createElement("div",{className:di.a.container},i.a.createElement("div",{className:"text-gray",style:{padding:"8px 16px",fontSize:"14px"}},`${null===(e=p.tokenInfo)||void 0===e?void 0:e.name} (${null===(t=p.tokenInfo)||void 0===t?void 0:t.symbol})`),h.origins.map(e=>i.a.createElement(ui.a,{title:e,key:e,onClick:t=>xi(void 0,void 0,void 0,(function*(){t.preventDefault(),(yield l.confirm({img:i.a.createElement("img",{alt:"unlink",src:n(1039),style:{height:"80px"}}),title:a.formatMessage({id:"setting.connections.viewing-key.confirm.delete-connection.title"}),paragraph:a.formatMessage({id:"setting.connections.viewing-key.confirm.delete-connection.paragraph"})}))&&(yield h.removeOrigin(e))})),icons:m}))))});var Oi=n(891),Ei=n(1062),Ti=n.n(Ei);var Ai=n(1063),Mi=n.n(Ai),Ii=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const Pi=Object(T.a)(()=>{var e;const t=Object(c.useHistory)(),n=Object(c.useRouteMatch)(),o=Object(ae.a)(),[a,s]=Object(r.useState)(!1),{keyRingStore:l}=Object(A.b)(),{register:u,handleSubmit:f,errors:d,setError:p}=Object(yt.a)({defaultValues:{name:""}});Object(r.useEffect)(()=>{if(parseInt(n.params.index).toString()!==n.params.index)throw new Error("Invalid index")},[n.params.index]);const h=Object(r.useMemo)(()=>l.multiKeyStoreInfo[parseInt(n.params.index)],[l.multiKeyStoreInfo,n.params.index]);return i.a.createElement(U.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:o.formatMessage({id:"setting.keyring.change.name"}),onBackButton:()=>{t.goBack()}},i.a.createElement(pt.a,{className:Mi.a.container,onSubmit:f(e=>Ii(void 0,void 0,void 0,(function*(){s(!0);try{yield l.updateNameKeyRing(parseInt(n.params.index),e.name),t.push("/")}catch(e){console.log("Fail to decrypt: "+e.message),p("name","invalid",o.formatMessage({id:"setting.keyring.change.input.name.error.invalid"})),s(!1)}})))},i.a.createElement(dt.e,{type:"text",label:o.formatMessage({id:"setting.keyring.change.previous-name"}),value:null===(e=h.meta)||void 0===e?void 0:e.name,readOnly:!0}),i.a.createElement(dt.e,{type:"text",label:o.formatMessage({id:"setting.keyring.change.input.name"}),name:"name",error:d.name&&d.name.message,ref:u({required:o.formatMessage({id:"setting.keyring.change.input.name.error.required"})})}),i.a.createElement("div",{style:{flex:1}}),i.a.createElement(E.a,{type:"submit",color:"primary",block:!0,"data-loading":a},i.a.createElement(C.a,{id:"setting.keyring.change.name.button.save"}))))});var Ci=n(1064),ji=n.n(Ci),Di=n(944),Ri=n.n(Di);const Ni=({index:e,keyStore:t})=>{const o=Object(c.useHistory)(),a=Object(r.useCallback)(t=>{t.preventDefault(),o.push("/setting/export/"+e)},[o,e]);return i.a.createElement("div",{className:Ri.a.innerContainer},"mnemonic"===t.type?i.a.createElement(jt.a,{color:"warning",fade:!1},i.a.createElement("div",null,i.a.createElement(C.a,{id:"setting.clear.alert"})),i.a.createElement(E.a,{size:"sm",style:{float:"right",marginTop:"10px"},color:"white",outline:!0,onClick:a},i.a.createElement(C.a,{id:"setting.clear.button.back-up"}))):null,i.a.createElement("div",{className:Ri.a.trashContainer},i.a.createElement("img",{src:n(1522),alt:"trash-can"}),i.a.createElement("div",null,i.a.createElement(C.a,{id:"setting.clear.warning"}))))};var Bi=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const Li=Object(T.a)(()=>{const e=Object(c.useHistory)(),t=Object(c.useRouteMatch)(),n=Object(ae.a)(),[o,a]=Object(r.useState)(!1),{keyRingStore:s}=Object(A.b)(),{register:l,handleSubmit:u,setError:f,errors:d}=Object(yt.a)({defaultValues:{password:""}});Object(r.useEffect)(()=>{if(parseInt(t.params.index).toString()!==t.params.index)throw new Error("Invalid index")},[t.params.index]);const p=Object(r.useMemo)(()=>s.multiKeyStoreInfo[parseInt(t.params.index)],[s.multiKeyStoreInfo,t.params.index]);return i.a.createElement(U.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:n.formatMessage({id:"setting.clear"}),onBackButton:Object(r.useCallback)(()=>{e.goBack()},[e])},i.a.createElement("div",{className:ji.a.container},p?i.a.createElement(Ni,{index:parseInt(t.params.index),keyStore:p}):null,i.a.createElement(pt.a,{onSubmit:u(r=>Bi(void 0,void 0,void 0,(function*(){a(!0);try{yield s.deleteKeyRing(parseInt(t.params.index),r.password),e.push("/")}catch(e){console.log("Fail to decrypt: "+e.message),f("password","invalid",n.formatMessage({id:"setting.clear.input.password.error.invalid"})),a(!1)}})))},i.a.createElement(dt.e,{type:"password",label:n.formatMessage({id:"setting.clear.input.password"}),name:"password",error:d.password&&d.password.message,ref:l({required:n.formatMessage({id:"setting.clear.input.password.error.required"})})}),i.a.createElement(E.a,{type:"submit",color:"primary",block:!0,"data-loading":o},i.a.createElement(C.a,{id:"setting.clear.button.confirm"})))))});var Ui=n(945),Fi=n.n(Ui);const qi=()=>i.a.createElement("div",{className:Fi.a.innerContainer},i.a.createElement("img",{className:Fi.a.imgLock,src:n(1524),alt:"lock"}),i.a.createElement("p",null,i.a.createElement(C.a,{id:"setting.export.warning"})));var zi=n(1065),Vi=n.n(zi),Hi=n(894),$i=n.n(Hi),Ki=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const Wi=Object(T.a)(()=>{var e;const t=Object(c.useHistory)(),n=Object(c.useLocation)(),o=Object(c.useRouteMatch)(),a=Object(ae.a)(),{keyRingStore:s}=Object(A.b)(),l=null!==(e=Vi.a.parse(n.search).type)&&void 0!==e?e:"mnemonic",[u,f]=Object(r.useState)(!1),[d,p]=Object(r.useState)(""),{register:h,handleSubmit:m,setError:b,errors:y}=Object(yt.a)({defaultValues:{password:""}});return Object(r.useEffect)(()=>{if(parseInt(o.params.index).toString()!==o.params.index)throw new Error("Invalid index")},[o.params.index]),i.a.createElement(U.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:a.formatMessage({id:"mnemonic"===l?"setting.export":"setting.export.private-key"}),onBackButton:Object(r.useCallback)(()=>{t.goBack()},[t])},i.a.createElement("div",{className:$i.a.container},d?i.a.createElement("div",{className:q()($i.a.mnemonic,{[$i.a.altHex]:"mnemonic"!==l})},d):i.a.createElement(i.a.Fragment,null,i.a.createElement(qi,null),i.a.createElement(pt.a,{onSubmit:m(e=>Ki(void 0,void 0,void 0,(function*(){f(!0);try{p(yield Object(Ut.flowResult)(s.showKeyRing(parseInt(o.params.index),e.password)))}catch(e){console.log("Fail to decrypt: "+e.message),b("password","invalid",a.formatMessage({id:"setting.export.input.password.error.invalid"}))}finally{f(!1)}})))},i.a.createElement(dt.e,{type:"password",label:a.formatMessage({id:"setting.export.input.password"}),name:"password",error:y.password&&y.password.message,ref:h({required:a.formatMessage({id:"setting.export.input.password.error.required"})})}),i.a.createElement(E.a,{type:"submit",color:"primary",block:!0,"data-loading":u},i.a.createElement(C.a,{id:"setting.export.button.confirm"}))))))});var Gi=n(395),Ji=n.n(Gi),Qi=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const Yi=Object(T.a)(()=>{Object(O.useInteractionInfo)();const{ledgerInitStore:e}=Object(A.b)(),t=Object(ae.a)(),o=Object(oe.c)(),[a,s]=Object(r.useState)(!1);Object(r.useEffect)(()=>{e.isSignCompleted&&setTimeout(window.close,3e3),e.isGetPubKeySucceeded&&window.close(),e.isInitAborted&&window.close()},[e.isGetPubKeySucceeded,e.isSignCompleted,e.isInitAborted]);const[c,l]=Object(r.useState)(0),[u,f]=Object(r.useState)(void 0),[d,p]=Object(r.useState)(!1),[h,m]=Object(r.useState)(!1);return i.a.createElement(P.a,{className:Ji.a.container},e.isSignCompleted?i.a.createElement(Xi,{rejected:e.isSignRejected}):h?i.a.createElement(Zi,null):i.a.createElement("div",{className:Ji.a.instructions},i.a.createElement(eo,{icon:i.a.createElement("img",{src:n(1529),style:{height:"50px"},alt:"usb"}),title:t.formatMessage({id:"ledger.step1"}),paragraph:t.formatMessage({id:"ledger.step1.paragraph"}),pass:c>0&&u===ot.LedgerInitErrorOn.App}),i.a.createElement(eo,{icon:i.a.createElement("img",{src:n(1530),style:{height:"34px"},alt:"atom"}),title:t.formatMessage({id:"ledger.step2"}),paragraph:t.formatMessage({id:"ledger.step2.paragraph"}),pass:c>0&&null==u}),i.a.createElement("div",{style:{flex:1}}),i.a.createElement("div",{className:"custom-control custom-checkbox mb-2"},i.a.createElement("input",{className:"custom-control-input",id:"use-webhid",type:"checkbox",checked:e.isWebHID,onChange:t=>Qi(void 0,void 0,void 0,(function*(){t.preventDefault(),e.isWebHID||(yield ot.Ledger.isWebHIDSupported())?(s(!1),yield e.setWebHID(!e.isWebHID)):s(!0)}))}),i.a.createElement("label",{className:"custom-control-label",htmlFor:"use-webhid",style:{color:"#666666",paddingTop:"1px"}},i.a.createElement(C.a,{id:"ledger.option.webhid.checkbox"}))),a?i.a.createElement("div",{style:{fontSize:"14px",marginBottom:"20px",color:"#777777"}},i.a.createElement(C.a,{id:"ledger.option.webhid.warning",values:{link:i.a.createElement("a",{href:"chrome://flags/#enable-experimental-web-platform-features",target:"_blank",rel:"noopener noreferrer",onClick:()=>{navigator.clipboard.writeText("chrome://flags/#enable-experimental-web-platform-features").then(()=>{o.push({placement:"top-center",type:"success",duration:2,content:t.formatMessage({id:"ledger.option.webhid.link.copied"}),canDelete:!0,transition:{duration:.25}})})}},"chrome://flags/#enable-experimental-web-platform-features")}})):null,i.a.createElement(E.a,{color:"primary",block:!0,onClick:t=>Qi(void 0,void 0,void 0,(function*(){t.preventDefault(),yield Qi(void 0,void 0,void 0,(function*(){let t;l(c+1),p(!0);try{const t=yield ot.Ledger.init(e.isWebHID);yield t.close(),e.isWebHID||_t()(1e3)}catch(e){console.log(e),t=null!=e.errorOn?e.errorOn:ot.LedgerInitErrorOn.Unknown}f(t),p(!1),void 0===t&&(m(!0),yield e.resume())}))})),"data-loading":d},i.a.createElement(C.a,{id:"ledger.button.next"}))))}),Zi=()=>i.a.createElement("div",{className:Ji.a.confirmLedgerDialog},i.a.createElement("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"flex-end"}},i.a.createElement("img",{src:n(1531),alt:"pen"})),i.a.createElement("p",null,i.a.createElement(C.a,{id:"ledger.confirm.waiting.paragraph"})),i.a.createElement("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"flex-start"}},i.a.createElement("i",{className:"fa fa-spinner fa-spin fa-2x fa-fw"}))),Xi=({rejected:e})=>{const t=Object(ae.a)();return i.a.createElement("div",{className:Ji.a.signCompleteDialog},i.a.createElement("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"flex-end"}},e?i.a.createElement("img",{src:n(1533),alt:"rejected"}):i.a.createElement("img",{src:n(1532),alt:"success"})),i.a.createElement("p",null,e?t.formatMessage({id:"ledger.confirm.rejected"}):t.formatMessage({id:"ledger.confirm.success"})),i.a.createElement("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"flex-start"}},i.a.createElement("div",{className:Ji.a.subParagraph},e?t.formatMessage({id:"ledger.confirm.rejected.paragraph"}):t.formatMessage({id:"ledger.confirm.success.paragraph"}))))},eo=({icon:e,title:t,paragraph:n,children:r,pass:o})=>i.a.createElement("div",{className:q()(Ji.a.instruction,{[Ji.a.pass]:o})},i.a.createElement("div",{className:Ji.a.icon},e),i.a.createElement("div",{className:Ji.a.inner},i.a.createElement("h1",null,t,o?i.a.createElement("i",{className:"fas fa-check",style:{marginLeft:"10px",color:"#2dce89"}}):null),i.a.createElement("p",null,n),r));var to=n(1066),no=n.n(to),ro=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const io=Object(T.a)(()=>{var e,t,n,o,a,s,l,u;const f=Object(ae.a)(),d=Object(c.useHistory)(),{chainStore:p,queriesStore:h,accountStore:m,tokensStore:b}=Object(A.b)(),y=b.getTokensOf(p.current.chainId),g=m.getAccount(p.current.chainId),v=Object(O.useInteractionInfo)(()=>{"createSecret20ViewingKey"!==g.isSendingMsg&&b.rejectAllSuggestedTokens()}),w=Object(yt.a)({defaultValues:{contractAddress:"",viewingKey:""}}),_=w.watch("contractAddress"),[k,x]=Object(r.useState)(!1);Object(r.useEffect)(()=>{b.waitingSuggestedToken&&p.selectChain(b.waitingSuggestedToken.data.chainId)},[p,b.waitingSuggestedToken]),Object(r.useEffect)(()=>{b.waitingSuggestedToken&&_!==b.waitingSuggestedToken.data.contractAddress&&w.setValue("contractAddress",b.waitingSuggestedToken.data.contractAddress)},[_,w,b.waitingSuggestedToken]),Object(r.useEffect)(()=>{b.waitingSuggestedToken&&b.waitingSuggestedToken.data.viewingKey&&x(!0)},[b.waitingSuggestedToken]),Object(r.useEffect)(()=>{b.waitingSuggestedToken&&b.waitingSuggestedToken.data.viewingKey&&k&&w.setValue("viewingKey",b.waitingSuggestedToken.data.viewingKey)},[k,b.waitingSuggestedToken]);const S=h.get(p.current.chainId).getQuerySecret20ContractInfo().getQueryContract(_),T=S.tokenInfo,M=null!=(null!==(e=p.current.features)&&void 0!==e?e:[]).find(e=>"secretwasm"===e),I=Object(oe.c)(),P=Object(et.b)();return i.a.createElement(U.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:f.formatMessage({id:"setting.token.add"}),onBackButton:v.interaction?void 0:()=>{d.goBack()}},i.a.createElement(pt.a,{className:no.a.container,onSubmit:w.handleSubmit(e=>ro(void 0,void 0,void 0,(function*(){if(null!=(null==T?void 0:T.decimals)&&T.name&&T.symbol){if(M){let t=e.viewingKey;if(!t&&!k)try{t=yield ro(void 0,void 0,void 0,(function*(){return new Promise((e,t)=>{g.createSecret20ViewingKey(_,"",{},(t,n)=>{P.setIsLoading("create-veiwing-key",!1),e(n)}).then(()=>{P.setIsLoading("create-veiwing-key",!0)}).catch(t)})}))}catch(e){return I.push({placement:"top-center",type:"danger",duration:2,content:"Failed to create the viewing key: "+e.message,canDelete:!0,transition:{duration:.25}}),v.interaction&&b.waitingSuggestedToken&&(yield b.rejectAllSuggestedTokens()),void(v.interaction&&!v.interactionInternal?window.close():d.push({pathname:"/"}))}if(t){const n={type:"secret20",contractAddress:e.contractAddress,viewingKey:t,coinMinimalDenom:T.name,coinDenom:T.symbol,coinDecimals:T.decimals};v.interaction&&b.waitingSuggestedToken?yield b.approveSuggestedToken(n):yield y.addToken(n)}else I.push({placement:"top-center",type:"danger",duration:2,content:"Failed to create the viewing key",canDelete:!0,transition:{duration:.25}})}else{const t={type:"cw20",contractAddress:e.contractAddress,coinMinimalDenom:T.name,coinDenom:T.symbol,coinDecimals:T.decimals};v.interaction&&b.waitingSuggestedToken?yield b.approveSuggestedToken(t):yield y.addToken(t)}v.interaction&&!v.interactionInternal?window.close():d.push({pathname:"/"})}})))},i.a.createElement(dt.e,{type:"text",label:f.formatMessage({id:"setting.token.add.contract-address"}),name:"contractAddress",autoComplete:"off",readOnly:null!=b.waitingSuggestedToken,ref:w.register({required:"Contract address is required",validate:e=>{try{R.Bech32Address.validate(e,p.current.bech32Config.bech32PrefixAccAddr)}catch(e){return"Invalid address"}}}),error:w.errors.contractAddress?w.errors.contractAddress.message:null==T?(null===(n=null===(t=S.error)||void 0===t?void 0:t.data)||void 0===n?void 0:n.error)||(null===(o=S.error)||void 0===o?void 0:o.message):void 0,text:S.isFetching?i.a.createElement("i",{className:"fas fa-spinner fa-spin"}):void 0}),i.a.createElement(dt.e,{type:"text",label:f.formatMessage({id:"setting.token.add.name"}),value:null!==(a=null==T?void 0:T.name)&&void 0!==a?a:"-",readOnly:!0}),i.a.createElement(dt.e,{type:"text",label:f.formatMessage({id:"setting.token.add.symbol"}),value:null!==(s=null==T?void 0:T.symbol)&&void 0!==s?s:"-",readOnly:!0}),i.a.createElement(dt.e,{type:"text",label:f.formatMessage({id:"setting.token.add.decimals"}),value:null!==(l=null==T?void 0:T.decimals)&&void 0!==l?l:"-",readOnly:!0}),M&&k?i.a.createElement(dt.e,{type:"text",label:f.formatMessage({id:"setting.token.add.secret20.viewing-key"}),name:"viewingKey",autoComplete:"off",ref:w.register({required:"Viewing key is required"}),error:w.errors.viewingKey?w.errors.viewingKey.message:void 0}):null,i.a.createElement("div",{style:{flex:1}}),i.a.createElement("div",{className:"custom-control custom-checkbox mb-2"},i.a.createElement("input",{className:"custom-control-input",id:"viewing-key-checkbox",type:"checkbox",checked:k,onChange:()=>{x(e=>!e)}}),i.a.createElement("label",{className:"custom-control-label",htmlFor:"viewing-key-checkbox",style:{color:"#666666",paddingTop:"1px"}},i.a.createElement(C.a,{id:(null===(u=b.waitingSuggestedToken)||void 0===u?void 0:u.data.viewingKey)?"setting.token.add.secret20.checkbox.use-suggested-viewing-key":"setting.token.add.secret20.checkbox.import-viewing-key"}))),i.a.createElement(E.a,{type:"submit",color:"primary",disabled:null==T||!g.isReadyToSendMsgs,"data-loading":"createSecret20ViewingKey"===g.isSendingMsg},i.a.createElement(C.a,{id:"setting.token.add.button.submit"}))))});var oo=n(1067),ao=n.n(oo),so=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};const co=Object(T.a)(()=>{const e=Object(c.useHistory)(),t=Object(ae.a)(),n=Object(oe.c)(),r=Object(it.b)(),{chainStore:o,tokensStore:a}=Object(A.b)(),s=o.current.currencies.filter(e=>"type"in e&&"secret20"===e.type);return i.a.createElement(U.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:t.formatMessage({id:"main.menu.token-list"}),onBackButton:()=>{e.goBack()}},i.a.createElement("div",{className:ao.a.container},s.map(e=>{if(!("type"in e)||"secret20"!==e.type)return;const s=e,c=[];return c.push(i.a.createElement("i",{key:"copy",className:"fas fa-copy",style:{cursor:"pointer"},onClick:e=>so(void 0,void 0,void 0,(function*(){e.preventDefault(),yield navigator.clipboard.writeText(s.viewingKey),n.push({placement:"top-center",type:"success",duration:2,content:t.formatMessage({id:"setting.token.manage.notification.viewing-key.copy"}),canDelete:!0,transition:{duration:.25}})}))})),c.push(i.a.createElement("i",{key:"trash",className:"fas fa-trash-alt",style:{cursor:"pointer"},onClick:e=>so(void 0,void 0,void 0,(function*(){e.preventDefault(),(yield r.confirm({paragraph:t.formatMessage({id:"setting.token.manage.confirm.remove-token"})}))&&(yield a.getTokensOf(o.current.chainId).removeToken(s))}))})),i.a.createElement(ui.a,{key:s.contractAddress,style:{cursor:"auto"},title:s.coinDenom,paragraph:R.Bech32Address.shortenAddress(s.contractAddress,30),icons:c})})))});var lo=n(415),uo=n(400),fo=n(18);window.keplr=new uo.Keplr(lo.version,new fo.InExtensionMessageRequester),n(413),n(1536),n(1537),n(1538),Object(Ut.configure)({enforceActions:"always"}),he.a.setAppElement("#app"),he.a.defaultStyles={content:Object.assign(Object.assign({},he.a.defaultStyles.content),{minWidth:"300px",maxWidth:"600px",minHeight:"250px",maxHeight:"500px",left:"50%",right:"auto",top:"50%",bottom:"auto",transform:"translate(-50%, -50%)"}),overlay:Object.assign({zIndex:1e3},he.a.defaultStyles.overlay)};const po=Object(T.a)(()=>{const{keyRingStore:e}=Object(A.b)();return e.status===ot.KeyRingStatus.UNLOCKED?i.a.createElement(ft,null):e.status===ot.KeyRingStatus.LOCKED?i.a.createElement(xt,null):e.status===ot.KeyRingStatus.EMPTY?(browser.tabs.create({url:"/popup.html#/register"}),window.close(),i.a.createElement("div",{style:{height:"100%"}},i.a.createElement(bt,{icon:n(413),logo:n(877),subtitle:"Wallet for the Interchain"}))):e.status===ot.KeyRingStatus.NOTLOADED?i.a.createElement("div",{style:{height:"100%"}},i.a.createElement(bt,{icon:n(413),logo:n(877),subtitle:"Wallet for the Interchain"})):i.a.createElement("div",null,"Unknown status")});a.a.render(i.a.createElement(A.a,null,i.a.createElement(s.a,{additionalMessages:At.b,languageToFiatCurrency:At.e},i.a.createElement(et.a,null,i.a.createElement(oe.b,null,i.a.createElement(oe.a,null,i.a.createElement(it.a,null,i.a.createElement(b,null,i.a.createElement(c.Route,{exact:!0,path:"/",component:po}),i.a.createElement(c.Route,{exact:!0,path:"/unlock",component:xt}),i.a.createElement(c.Route,{exact:!0,path:"/access",component:D}),i.a.createElement(c.Route,{exact:!0,path:"/access/viewing-key",component:B}),i.a.createElement(c.Route,{exact:!0,path:"/register",component:L.b}),i.a.createElement(c.Route,{exact:!0,path:"/send",component:It}),i.a.createElement(c.Route,{exact:!0,path:"/ibc-transfer",component:Rt}),i.a.createElement(c.Route,{exact:!0,path:"/setting",component:pi}),i.a.createElement(c.Route,{exact:!0,path:"/ledger-grant",component:Yi}),i.a.createElement(c.Route,{exact:!0,path:"/setting/language",component:()=>{const e=Object(s.b)(),t=Object(c.useHistory)(),n=Object(ae.a)(),o=Object(r.useMemo)(()=>[i.a.createElement("i",{key:"selected",className:"fas fa-check"})],[]);return i.a.createElement(U.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:n.formatMessage({id:"setting.language"}),onBackButton:Object(r.useCallback)(()=>{t.goBack()},[t])},i.a.createElement("div",{className:di.a.container},i.a.createElement(ui.a,{title:n.formatMessage({id:"setting.language.automatic"}),onClick:Object(r.useCallback)(()=>{e.clearLanguage(),t.push({pathname:"/"})},[t,e]),icons:e.automatic?o:void 0}),i.a.createElement(ui.a,{title:n.formatMessage({id:"setting.language.en"}),onClick:Object(r.useCallback)(()=>{e.setLanguage("en"),t.push({pathname:"/"})},[t,e]),icons:e.automatic||"en"!=e.language?void 0:o}),i.a.createElement(ui.a,{title:n.formatMessage({id:"setting.language.ko"}),onClick:Object(r.useCallback)(()=>{e.setLanguage("ko"),t.push({pathname:"/"})},[t,e]),icons:e.automatic||"ko"!=e.language?void 0:o})))}}),i.a.createElement(c.Route,{exact:!0,path:"/setting/fiat",component:hi}),i.a.createElement(c.Route,{exact:!0,path:"/setting/connections",component:ki}),i.a.createElement(c.Route,{exact:!0,path:"/setting/connections/viewing-key/:contractAddress",component:Si}),i.a.createElement(c.Route,{exact:!0,path:"/setting/address-book",component:Oi.a}),i.a.createElement(c.Route,{exact:!0,path:"/setting/credit",component:()=>{const e=Object(c.useHistory)(),t=Object(ae.a)();return i.a.createElement(U.a,{showChainName:!1,canChangeChainInfo:!1,alternativeTitle:t.formatMessage({id:"setting.credit"}),onBackButton:()=>{e.goBack()}},i.a.createElement("div",{className:Ti.a.container},i.a.createElement(ui.a,{title:"Entity Funding Support",paragraph:"Provided by ICF",onClick:e=>{e.preventDefault(),browser.tabs.create({url:"https://interchain.io"})}}),i.a.createElement(ui.a,{title:"Cosmos Hub node",paragraph:"Provided by Figment Networks Datahub",onClick:e=>{e.preventDefault(),browser.tabs.create({url:"https://figment.network"})}}),i.a.createElement(ui.a,{title:"Price data",paragraph:"Provided by Coingecko API",onClick:e=>{e.preventDefault(),browser.tabs.create({url:"https://www.coingecko.com/"})}}),i.a.createElement(ui.a,{title:"Development grant support",paragraph:"Provided by grant.fish",onClick:e=>{e.preventDefault(),browser.tabs.create({url:"https://stake.fish"})}})))}}),i.a.createElement(c.Route,{exact:!0,path:"/setting/set-keyring",component:Lt.a}),i.a.createElement(c.Route,{exact:!0,path:"/setting/export/:index",component:Wi}),i.a.createElement(c.Route,{exact:!0,path:"/setting/clear/:index",component:Li}),i.a.createElement(c.Route,{exact:!0,path:"/setting/keyring/change/name/:index",component:Pi}),i.a.createElement(c.Route,{exact:!0,path:"/setting/token/add",component:io}),i.a.createElement(c.Route,{exact:!0,path:"/setting/token/manage",component:co}),i.a.createElement(c.Route,{path:"/sign",component:oi}),i.a.createElement(c.Route,{path:"/suggest-chain",component:li})))))))),document.getElementById("app"))},function(e,t,n){"use strict";n.r(t),n.d(t,"BroadcastChannel",(function(){return O})),n.d(t,"clearNodeFolder",(function(){return E})),n.d(t,"enforceOptions",(function(){return T})),n.d(t,"createLeaderElection",(function(){return H}));var r=n(90);var i={create:function(e){var t={messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t},close:function(e){e.bc.close(),e.subFns=[]},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){e.bc.postMessage(t,!1)},canBeUsed:function(){if(r.a&&"undefined"==typeof window)return!1;if("function"==typeof BroadcastChannel){if(BroadcastChannel._pubkey)throw new Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0}return!1},type:"native",averageResponseTime:function(){return 150},microSeconds:r.c};function o(){return(new Date).getTime()}var a=function(e){var t=new Set,n=new Map;this.has=t.has.bind(t),this.add=function(r){n.set(r,o()),t.add(r),function(){var r=o()-e,i=t[Symbol.iterator]();for(;;){var a=i.next().value;if(!a)return;if(!(n.get(a)<r))return;n.delete(a),t.delete(a)}}()},this.clear=function(){t.clear(),n.clear()}};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));return void 0===t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"==typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=12e4),void 0===t.node.useFastPath&&(t.node.useFastPath=!0),t}var c=r.c;function l(){if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB;if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB;if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function u(e,t){return function(e,t){var n=(new Date).getTime()-t,r=e.transaction("messages").objectStore("messages"),i=[];return new Promise((function(e){r.openCursor().onsuccess=function(t){var r=t.target.result;if(r){var o=r.value;if(!(o.time<n))return void e(i);i.push(o),r.continue()}else e(i)}}))}(e,t).then((function(t){return Promise.all(t.map((function(t){return function(e,t){var n=e.transaction(["messages"],"readwrite").objectStore("messages").delete(t);return new Promise((function(e){n.onsuccess=function(){return e()}}))}(e,t.id)})))}))}function f(e){return e.closed?Promise.resolve():e.messagesCallback?(t=e.db,n=e.lastCursorId,r=t.transaction("messages").objectStore("messages"),i=[],o=IDBKeyRange.bound(n+1,1/0),new Promise((function(e){r.openCursor(o).onsuccess=function(t){var n=t.target.result;n?(i.push(n.value),n.continue()):e(i)}}))).then((function(t){return t.filter((function(e){return!!e})).map((function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t})).filter((function(t){return function(e,t){return e.uuid!==t.uuid&&(!t.eMIs.has(e.id)&&!(e.data.time<t.messagesCallbackTime))}(t,e)})).sort((function(e,t){return e.time-t.time})).forEach((function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))})),Promise.resolve()})):Promise.resolve();var t,n,r,i,o}var d={create:function(e,t){return t=s(t),function(e){var t="pubkey.broadcast-channel-0-"+e,n=l().open(t,1);return n.onupgradeneeded=function(e){e.target.result.createObjectStore("messages",{keyPath:"id",autoIncrement:!0})},new Promise((function(e,t){n.onerror=function(e){return t(e)},n.onsuccess=function(){e(n.result)}}))}(e).then((function(n){var i={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:Object(r.e)(),eMIs:new a(2*t.idb.ttl),writeBlockPromise:Promise.resolve(),messagesCallback:null,readQueuePromises:[],db:n};return n.onclose=function(){i.closed=!0,t.idb.onclose&&t.idb.onclose()},function e(t){if(t.closed)return;f(t).then((function(){return Object(r.f)(t.options.idb.fallbackInterval)})).then((function(){return e(t)}))}(i),i}))},close:function(e){e.closed=!0,e.db.close()},onMessage:function(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t,f(e)},postMessage:function(e,t){return e.writeBlockPromise=e.writeBlockPromise.then((function(){return function(e,t,n){var r={uuid:t,time:(new Date).getTime(),data:n},i=e.transaction(["messages"],"readwrite");return new Promise((function(e,t){i.oncomplete=function(){return e()},i.onerror=function(e){return t(e)},i.objectStore("messages").add(r)}))}(e.db,e.uuid,t)})).then((function(){0===Object(r.d)(0,10)&&u(e.db,e.options.idb.ttl)})),e.writeBlockPromise},canBeUsed:function(){return!r.a&&!!l()},type:"idb",averageResponseTime:function(e){return 2*e.idb.fallbackInterval},microSeconds:c},p=r.c;function h(){var e;if("undefined"==typeof window)return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function m(e){return"pubkey.broadcastChannel-"+e}function b(){if(r.a)return!1;var e=h();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}var y={create:function(e,t){if(t=s(t),!b())throw new Error("BroadcastChannel: localstorage cannot be used");var n=Object(r.e)(),i=new a(t.localstorage.removeTimeout),o={channelName:e,uuid:n,eMIs:i};return o.listener=function(e,t){var n=m(e),r=function(e){e.key===n&&t(JSON.parse(e.newValue))};return window.addEventListener("storage",r),r}(e,(function(e){o.messagesCallback&&e.uuid!==n&&e.token&&!i.has(e.token)&&(e.data.time&&e.data.time<o.messagesCallbackTime||(i.add(e.token),o.messagesCallback(e.data)))})),o},close:function(e){var t;t=e.listener,window.removeEventListener("storage",t)},onMessage:function(e,t,n){e.messagesCallbackTime=n,e.messagesCallback=t},postMessage:function(e,t){return new Promise((function(n){Object(r.f)().then((function(){var i=m(e.channelName),o={token:Object(r.e)(),time:(new Date).getTime(),data:t,uuid:e.uuid},a=JSON.stringify(o);h().setItem(i,a);var s=document.createEvent("Event");s.initEvent("storage",!0,!0),s.key=i,s.newValue=a,window.dispatchEvent(s),n()}))}))},canBeUsed:b,type:"localstorage",averageResponseTime:function(){var e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?240:120},microSeconds:p},g=r.c,v=new Set;var w={create:function(e){var t={name:e,messagesCallback:null};return v.add(t),t},close:function(e){v.delete(e)},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){return new Promise((function(n){return setTimeout((function(){Array.from(v).filter((function(t){return t.name===e.name})).filter((function(t){return t!==e})).filter((function(e){return!!e.messagesCallback})).forEach((function(e){return e.messagesCallback(t)})),n()}),5)}))},canBeUsed:function(){return!0},type:"simulate",averageResponseTime:function(){return 5},microSeconds:g},_=[i,d,y];if(r.a){var k=n(1390);"function"==typeof k.canBeUsed&&_.push(k)}function x(e){var t=[].concat(e.methods,_).filter(Boolean);if(e.type){if("simulate"===e.type)return w;var n=t.find((function(t){return t.type===e.type}));if(n)return n;throw new Error("method-type "+e.type+" not found")}e.webWorkerSupport||r.a||(t=t.filter((function(e){return"idb"!==e.type})));var i=t.find((function(e){return e.canBeUsed()}));if(i)return i;throw new Error("No useable methode found:"+JSON.stringify(_.map((function(e){return e.type}))))}var S,O=function(e,t){var n,i;this.name=e,S&&(t=S),this.options=s(t),this.method=x(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._befC=[],this._prepP=null,i=(n=this).method.create(n.name,n.options),Object(r.b)(i)?(n._prepP=i,i.then((function(e){n._state=e}))):n._state=i};function E(e){var t=x(e=s(e));return"node"===t.type?t.clearNodeFolder().then((function(){return!0})):Promise.resolve(!1)}function T(e){S=e}function A(e,t,n){var r={time:e.method.microSeconds(),type:t,data:n};return(e._prepP?e._prepP:Promise.resolve()).then((function(){return e.method.postMessage(e._state,r)}))}function M(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function I(e,t,n){e._addEL[t].push(n),function(e){if(!e._iL&&M(e)){var t=function(t){e._addEL[t.type].forEach((function(e){t.time>=e.time&&e.fn(t.data)}))},n=e.method.microSeconds();e._prepP?e._prepP.then((function(){e._iL=!0,e.method.onMessage(e._state,t,n)})):(e._iL=!0,e.method.onMessage(e._state,t,n))}}(e)}function P(e,t,n){e._addEL[t]=e._addEL[t].filter((function(e){return e!==n})),function(e){if(e._iL&&!M(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}O._pubkey=!0,O.prototype={postMessage:function(e){if(this.closed)throw new Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed");return A(this,"message",e)},postInternal:function(e){return A(this,"internal",e)},set onmessage(e){var t={time:this.method.microSeconds(),fn:e};P(this,"message",this._onML),e&&"function"==typeof e?(this._onML=t,I(this,"message",t)):this._onML=null},addEventListener:function(e,t){I(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){P(this,e,this._addEL[e].find((function(e){return e.fn===t})))},close:function(){var e=this;if(!this.closed){this.closed=!0;var t=this._prepP?this._prepP:Promise.resolve();return this._onML=null,this._addEL.message=[],t.then((function(){return Promise.all(e._befC.map((function(e){return e()})))})).then((function(){return e.method.close(e._state)}))}},get type(){return this.method.type}};var C=n(1052),j=n.n(C);var D={add:function(e){if("function"==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope);else{if("function"!=typeof window.addEventListener)return;window.addEventListener("beforeunload",(function(){e()}),!0),window.addEventListener("unload",(function(){e()}),!0)}}},R=n(1053),N=n.n(R),B=j.a?N.a:D,L=new Set,U=!1;function F(){var e=[];return L.forEach((function(t){e.push(t()),L.delete(t)})),Promise.all(e)}var q={add:function(e){if(U||(U=!0,B.add(F)),"function"!=typeof e)throw new Error("Listener is no function");return L.add(e),{remove:function(){return L.delete(e)},run:function(){return L.delete(e),e()}}},runAll:F,removeAll:function(){L.clear()},getSize:function(){return L.size}},z=function(e,t){this._channel=e,this._options=t,this.isLeader=!1,this.isDead=!1,this.token=Object(r.e)(),this._isApl=!1,this._reApply=!1,this._unl=[],this._lstns=[],this._invs=[]};function V(e,t){var n={context:"leader",action:t,token:e.token};return e._channel.postInternal(n)}function H(e,t){if(e._leaderElector)throw new Error("BroadcastChannel already has a leader-elector");t=function(e,t){return e||(e={}),(e=JSON.parse(JSON.stringify(e))).fallbackInterval||(e.fallbackInterval=3e3),e.responseTime||(e.responseTime=t.method.averageResponseTime(t.options)),e}(t,e);var n=new z(e,t);return e._befC.push((function(){return n.die()})),e._leaderElector=n,n}z.prototype={applyOnce:function(){var e=this;if(this.isLeader)return Promise.resolve(!1);if(this.isDead)return Promise.resolve(!1);if(this._isApl)return this._reApply=!0,Promise.resolve(!1);this._isApl=!0;var t=!1,n=[],i=function(r){"leader"===r.context&&r.token!=e.token&&(n.push(r),"apply"===r.action&&r.token>e.token&&(t=!0),"tell"===r.action&&(t=!0))};return this._channel.addEventListener("internal",i),V(this,"apply").then((function(){return Object(r.f)(e._options.responseTime)})).then((function(){return t?Promise.reject(new Error):V(e,"apply")})).then((function(){return Object(r.f)(e._options.responseTime)})).then((function(){return t?Promise.reject(new Error):V(e)})).then((function(){return function(e){e.isLeader=!0;var t=q.add((function(){return e.die()}));e._unl.push(t);var n=function(t){"leader"===t.context&&"apply"===t.action&&V(e,"tell")};return e._channel.addEventListener("internal",n),e._lstns.push(n),V(e,"tell")}(e)})).then((function(){return!0})).catch((function(){return!1})).then((function(t){return e._channel.removeEventListener("internal",i),e._isApl=!1,!t&&e._reApply?(e._reApply=!1,e.applyOnce()):t}))},awaitLeadership:function(){var e;return this._aLP||(this._aLP=(e=this).isLeader?Promise.resolve():new Promise((function(t){var n=!1,r=function(){n||(n=!0,clearInterval(i),e._channel.removeEventListener("internal",o),t(!0))};e.applyOnce().then((function(){e.isLeader&&r()}));var i=setInterval((function(){e.applyOnce().then((function(){e.isLeader&&r()}))}),e._options.fallbackInterval);e._invs.push(i);var o=function(t){"leader"===t.context&&"death"===t.action&&e.applyOnce().then((function(){e.isLeader&&r()}))};e._channel.addEventListener("internal",o),e._lstns.push(o)}))),this._aLP},die:function(){var e=this;if(!this.isDead)return this.isDead=!0,this._lstns.forEach((function(t){return e._channel.removeEventListener("internal",t)})),this._invs.forEach((function(e){return clearInterval(e)})),this._unl.forEach((function(e){e.remove()})),V(this,"death")}}},function(e,t,n){"use strict";n.r(t),n.d(t,"computeAddress",(function(){return _})),n.d(t,"recoverAddress",(function(){return k})),n.d(t,"serialize",(function(){return x})),n.d(t,"parse",(function(){return S}));var r=n(417),i=n(850),o=n(16),a=n(1559),s=n(214),c=n(60),l=n(830),u=n(1044),f=n(35);const d=new f.a("signing-key/5.0.7");let p=null;function h(){return p||(p=new u.a("secp256k1")),p}class m{constructor(e){Object(c.c)(this,"curve","secp256k1"),Object(c.c)(this,"privateKey",Object(o.g)(e));const t=h().keyFromPrivate(Object(o.a)(this.privateKey));Object(c.c)(this,"publicKey","0x"+t.getPublic(!1,"hex")),Object(c.c)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),Object(c.c)(this,"_isSigningKey",!0)}_addPoint(e){const t=h().keyFromPublic(Object(o.a)(this.publicKey)),n=h().keyFromPublic(Object(o.a)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const t=h().keyFromPrivate(Object(o.a)(this.privateKey)).sign(Object(o.a)(e),{canonical:!0});return Object(o.k)({recoveryParam:t.recoveryParam,r:Object(o.f)("0x"+t.r.toString(16),32),s:Object(o.f)("0x"+t.s.toString(16),32)})}computeSharedSecret(e){const t=h().keyFromPrivate(Object(o.a)(this.privateKey)),n=h().keyFromPublic(Object(o.a)(b(e)));return Object(o.f)("0x"+t.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function b(e,t){const n=Object(o.a)(e);if(32===n.length){const e=new m(n);return t?"0x"+h().keyFromPrivate(n).getPublic(!0,"hex"):e.publicKey}return 33===n.length?t?Object(o.g)(n):"0x"+h().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+h().keyFromPublic(n).getPublic(!0,"hex"):Object(o.g)(n):d.throwArgumentError("invalid public or private key","key","[REDACTED]")}const y=new f.a("transactions/5.0.8");function g(e){return"0x"===e?a.d:i.a.from(e)}const v=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],w={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0};function _(e){const t=b(e);return Object(r.a)(Object(o.e)(Object(s.a)(Object(o.e)(t,1)),12))}function k(e,t){return _(function(e,t){const n=Object(o.k)(t),r={r:Object(o.a)(n.r),s:Object(o.a)(n.s)};return"0x"+h().recoverPubKey(Object(o.a)(e),r,n.recoveryParam).encode("hex",!1)}(Object(o.a)(e),t))}function x(e,t){Object(c.b)(e,w);const n=[];v.forEach((function(t){let r=e[t.name]||[];const i={};t.numeric&&(i.hexPad="left"),r=Object(o.a)(Object(o.g)(r,i)),t.length&&r.length!==t.length&&r.length>0&&y.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),t.maxLength&&(r=Object(o.l)(r),r.length>t.maxLength&&y.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r)),n.push(Object(o.g)(r))}));let r=0;if(null!=e.chainId?(r=e.chainId,"number"!=typeof r&&y.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!Object(o.i)(t)&&t.v>28&&(r=Math.floor((t.v-35)/2)),0!==r&&(n.push(Object(o.g)(r)),n.push("0x"),n.push("0x")),!t)return l.b(n);const i=Object(o.k)(t);let a=27+i.recoveryParam;return 0!==r?(n.pop(),n.pop(),n.pop(),a+=2*r+8,i.v>28&&i.v!==a&&y.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==a&&y.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),n.push(Object(o.g)(a)),n.push(Object(o.l)(Object(o.a)(i.r))),n.push(Object(o.l)(Object(o.a)(i.s))),l.b(n)}function S(e){const t=l.a(e);9!==t.length&&6!==t.length&&y.throwArgumentError("invalid raw transaction","rawTransaction",e);const n={nonce:g(t[0]).toNumber(),gasPrice:g(t[1]),gasLimit:g(t[2]),to:(a=t[3],"0x"===a?null:Object(r.a)(a)),value:g(t[4]),data:t[5],chainId:0};var a;if(6===t.length)return n;try{n.v=i.a.from(t[6]).toNumber()}catch(e){return console.log(e),n}if(n.r=Object(o.f)(t[7],32),n.s=Object(o.f)(t[8],32),i.a.from(n.r).isZero()&&i.a.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let r=n.v-27;const i=t.slice(0,6);0!==n.chainId&&(i.push(Object(o.g)(n.chainId)),i.push("0x"),i.push("0x"),r-=2*n.chainId+8);const a=Object(s.a)(l.b(i));try{n.from=k(a,{r:Object(o.g)(n.r),s:Object(o.g)(n.s),recoveryParam:r})}catch(e){console.log(e)}n.hash=Object(s.a)(e)}return n}},function(e,t,n){"use strict";n.r(t),n.d(t,"computeAddress",(function(){return _})),n.d(t,"recoverAddress",(function(){return k})),n.d(t,"serialize",(function(){return x})),n.d(t,"parse",(function(){return S}));var r=n(418),i=n(851),o=n(17),a=n(1561),s=n(216),c=n(61),l=n(831),u=n(1055),f=n(36);const d=new f.a("signing-key/5.0.7");let p=null;function h(){return p||(p=new u.a("secp256k1")),p}class m{constructor(e){Object(c.c)(this,"curve","secp256k1"),Object(c.c)(this,"privateKey",Object(o.g)(e));const t=h().keyFromPrivate(Object(o.a)(this.privateKey));Object(c.c)(this,"publicKey","0x"+t.getPublic(!1,"hex")),Object(c.c)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),Object(c.c)(this,"_isSigningKey",!0)}_addPoint(e){const t=h().keyFromPublic(Object(o.a)(this.publicKey)),n=h().keyFromPublic(Object(o.a)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const t=h().keyFromPrivate(Object(o.a)(this.privateKey)).sign(Object(o.a)(e),{canonical:!0});return Object(o.k)({recoveryParam:t.recoveryParam,r:Object(o.f)("0x"+t.r.toString(16),32),s:Object(o.f)("0x"+t.s.toString(16),32)})}computeSharedSecret(e){const t=h().keyFromPrivate(Object(o.a)(this.privateKey)),n=h().keyFromPublic(Object(o.a)(b(e)));return Object(o.f)("0x"+t.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function b(e,t){const n=Object(o.a)(e);if(32===n.length){const e=new m(n);return t?"0x"+h().keyFromPrivate(n).getPublic(!0,"hex"):e.publicKey}return 33===n.length?t?Object(o.g)(n):"0x"+h().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+h().keyFromPublic(n).getPublic(!0,"hex"):Object(o.g)(n):d.throwArgumentError("invalid public or private key","key","[REDACTED]")}const y=new f.a("transactions/5.0.8");function g(e){return"0x"===e?a.d:i.a.from(e)}const v=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],w={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0};function _(e){const t=b(e);return Object(r.a)(Object(o.e)(Object(s.a)(Object(o.e)(t,1)),12))}function k(e,t){return _(function(e,t){const n=Object(o.k)(t),r={r:Object(o.a)(n.r),s:Object(o.a)(n.s)};return"0x"+h().recoverPubKey(Object(o.a)(e),r,n.recoveryParam).encode("hex",!1)}(Object(o.a)(e),t))}function x(e,t){Object(c.b)(e,w);const n=[];v.forEach((function(t){let r=e[t.name]||[];const i={};t.numeric&&(i.hexPad="left"),r=Object(o.a)(Object(o.g)(r,i)),t.length&&r.length!==t.length&&r.length>0&&y.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),t.maxLength&&(r=Object(o.l)(r),r.length>t.maxLength&&y.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r)),n.push(Object(o.g)(r))}));let r=0;if(null!=e.chainId?(r=e.chainId,"number"!=typeof r&&y.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!Object(o.i)(t)&&t.v>28&&(r=Math.floor((t.v-35)/2)),0!==r&&(n.push(Object(o.g)(r)),n.push("0x"),n.push("0x")),!t)return l.b(n);const i=Object(o.k)(t);let a=27+i.recoveryParam;return 0!==r?(n.pop(),n.pop(),n.pop(),a+=2*r+8,i.v>28&&i.v!==a&&y.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==a&&y.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),n.push(Object(o.g)(a)),n.push(Object(o.l)(Object(o.a)(i.r))),n.push(Object(o.l)(Object(o.a)(i.s))),l.b(n)}function S(e){const t=l.a(e);9!==t.length&&6!==t.length&&y.throwArgumentError("invalid raw transaction","rawTransaction",e);const n={nonce:g(t[0]).toNumber(),gasPrice:g(t[1]),gasLimit:g(t[2]),to:(a=t[3],"0x"===a?null:Object(r.a)(a)),value:g(t[4]),data:t[5],chainId:0};var a;if(6===t.length)return n;try{n.v=i.a.from(t[6]).toNumber()}catch(e){return console.log(e),n}if(n.r=Object(o.f)(t[7],32),n.s=Object(o.f)(t[8],32),i.a.from(n.r).isZero()&&i.a.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let r=n.v-27;const i=t.slice(0,6);0!==n.chainId&&(i.push(Object(o.g)(n.chainId)),i.push("0x"),i.push("0x"),r-=2*n.chainId+8);const a=Object(s.a)(l.b(i));try{n.from=k(a,{r:Object(o.g)(n.r),s:Object(o.g)(n.s),recoveryParam:r})}catch(e){console.log(e)}n.hash=Object(s.a)(e)}return n}},,,function(e,t,n){"use strict";n.r(t);var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.default=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return k}));var r=n(1048),i=n.n(r),o=n(828),a=n.n(o),s=n(109),c=n.n(s),l=n(840),u=n.n(l),f=n(110),d=n.n(f),p=n(1049),h=n.n(p),m=n(0),b=n(864),y=n(888),g=n(401),v={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},w={},_=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,d()(c()(t),"state",{data:void 0,placement:void 0}),d()(c()(t),"popperInstance",void 0),d()(c()(t),"popperNode",null),d()(c()(t),"arrowNode",null),d()(c()(t),"setPopperNode",(function(e){e&&t.popperNode!==e&&(Object(g.b)(t.props.innerRef,e),t.popperNode=e,t.updatePopperInstance())})),d()(c()(t),"setArrowNode",(function(e){t.arrowNode=e})),d()(c()(t),"updateStateModifier",{enabled:!0,order:900,fn:function(e){var n=e.placement;return t.setState({data:e,placement:n}),e}}),d()(c()(t),"getOptions",(function(){return{placement:t.props.placement,eventsEnabled:t.props.eventsEnabled,positionFixed:t.props.positionFixed,modifiers:a()({},t.props.modifiers,{arrow:a()({},t.props.modifiers&&t.props.modifiers.arrow,{enabled:!!t.arrowNode,element:t.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:t.updateStateModifier})}})),d()(c()(t),"getPopperStyle",(function(){return t.popperNode&&t.state.data?a()({position:t.state.data.offsets.popper.position},t.state.data.styles):v})),d()(c()(t),"getPopperPlacement",(function(){return t.state.data?t.state.placement:void 0})),d()(c()(t),"getArrowStyle",(function(){return t.arrowNode&&t.state.data?t.state.data.arrowStyles:w})),d()(c()(t),"getOutOfBoundariesState",(function(){return t.state.data?t.state.data.hide:void 0})),d()(c()(t),"destroyPopperInstance",(function(){t.popperInstance&&(t.popperInstance.destroy(),t.popperInstance=null)})),d()(c()(t),"updatePopperInstance",(function(){t.destroyPopperInstance();var e=c()(t).popperNode,n=t.props.referenceElement;n&&e&&(t.popperInstance=new b.a(n,e,t.getOptions()))})),d()(c()(t),"scheduleUpdate",(function(){t.popperInstance&&t.popperInstance.scheduleUpdate()})),t}u()(t,e);var n=t.prototype;return n.componentDidUpdate=function(e,t){this.props.placement===e.placement&&this.props.referenceElement===e.referenceElement&&this.props.positionFixed===e.positionFixed&&h()(this.props.modifiers,e.modifiers,{strict:!0})?this.props.eventsEnabled!==e.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()):this.updatePopperInstance(),t.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){Object(g.b)(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return Object(g.c)(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},t}(m.Component);d()(_,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});b.a.placements;function k(e){var t=e.referenceElement,n=i()(e,["referenceElement"]);return m.createElement(y.a.Consumer,null,(function(e){return m.createElement(_,a()({referenceElement:void 0!==t?t:e},n))}))}},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(0),a=n.n(o),s=n(1),c=n.n(s),l=n(10),u=n.n(l),f=n(8),d={tag:f.p,"aria-label":c.a.string,className:c.a.string,cssModule:c.a.object,role:c.a.string,size:c.a.string,vertical:c.a.bool},p=function(e){var t=e.className,n=e.cssModule,o=e.size,s=e.vertical,c=e.tag,l=Object(i.a)(e,["className","cssModule","size","vertical","tag"]),d=Object(f.l)(u()(t,!!o&&"btn-group-"+o,s?"btn-group-vertical":"btn-group"),n);return a.a.createElement(c,Object(r.a)({},l,{className:d}))};p.propTypes=d,p.defaultProps={tag:"div",role:"group"},t.a=p},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(29),a=n(53),s=n(0),c=n.n(s),l=n(1),u=n.n(l),f=n(10),d=n.n(f),p=n(8),h={children:u.a.node,inline:u.a.bool,tag:p.p,innerRef:u.a.oneOfType([u.a.object,u.a.func,u.a.string]),className:u.a.string,cssModule:u.a.object},m=function(e){function t(t){var n;return(n=e.call(this,t)||this).getRef=n.getRef.bind(Object(o.a)(n)),n.submit=n.submit.bind(Object(o.a)(n)),n}Object(a.a)(t,e);var n=t.prototype;return n.getRef=function(e){this.props.innerRef&&this.props.innerRef(e),this.ref=e},n.submit=function(){this.ref&&this.ref.submit()},n.render=function(){var e=this.props,t=e.className,n=e.cssModule,o=e.inline,a=e.tag,s=e.innerRef,l=Object(i.a)(e,["className","cssModule","inline","tag","innerRef"]),u=Object(p.l)(d()(t,!!o&&"form-inline"),n);return c.a.createElement(a,Object(r.a)({},l,{ref:s,className:u}))},t}(s.Component);m.propTypes=h,m.defaultProps={tag:"form"},t.a=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(226),i=n(19),o=n(29),a=n(53),s=n(0),c=n.n(s),l=n(1),u=n.n(l),f=n(940),d=n(8);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var h=["defaultOpen"],m=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={isOpen:t.defaultOpen||!1},n.toggle=n.toggle.bind(Object(o.a)(n)),n}Object(a.a)(t,e);var n=t.prototype;return n.toggle=function(){this.setState({isOpen:!this.state.isOpen})},n.render=function(){return c.a.createElement(f.a,Object(i.a)({isOpen:this.state.isOpen,toggle:this.toggle},Object(d.m)(this.props,h)))},t}(s.Component);m.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({defaultOpen:u.a.bool},f.a.propTypes)},function(e,t,n){"use strict";var r=n(19),i=n(0),o=n.n(i),a=n(10),s=n.n(a),c=n(843),l=function(e){var t=s()("popover","show",e.popperClassName),n=s()("popover-inner",e.innerClassName);return o.a.createElement(c.a,Object(r.a)({},e,{popperClassName:t,innerClassName:n}))};l.propTypes=c.b,l.defaultProps={placement:"right",placementPrefix:"bs-popover",trigger:"click"},t.a=l},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(0),a=n.n(o),s=n(1),c=n.n(s),l=n(10),u=n.n(l),f=n(8),d={tag:f.p,className:c.a.string,cssModule:c.a.object},p=function(e){var t=e.className,n=e.cssModule,o=e.tag,s=Object(i.a)(e,["className","cssModule","tag"]),c=Object(f.l)(u()(t,"popover-body"),n);return a.a.createElement(o,Object(r.a)({},s,{className:c}))};p.propTypes=d,p.defaultProps={tag:"div"},t.a=p},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(850);const i=r.a.from(-1),o=r.a.from(0),a=r.a.from(1),s=r.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},function(e,t,n){"use strict";var r=n(19),i=n(26),o=n(226),a=n(0),s=n.n(a),c=n(1),l=n.n(c),u=n(10),f=n.n(u),d=n(8),p=n(151);function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var b={children:l.a.node,className:l.a.string,closeClassName:l.a.string,closeAriaLabel:l.a.string,cssModule:l.a.object,color:l.a.string,fade:l.a.bool,isOpen:l.a.bool,toggle:l.a.func,tag:d.p,transition:l.a.shape(p.a.propTypes),innerRef:l.a.oneOfType([l.a.object,l.a.string,l.a.func])},y={color:"success",isOpen:!0,tag:"div",closeAriaLabel:"Close",fade:!0,transition:m(m({},p.a.defaultProps),{},{unmountOnExit:!0})};function g(e){var t=e.className,n=e.closeClassName,o=e.closeAriaLabel,a=e.cssModule,c=e.tag,l=e.color,u=e.isOpen,h=e.toggle,b=e.children,y=e.transition,g=e.fade,v=e.innerRef,w=Object(i.a)(e,["className","closeClassName","closeAriaLabel","cssModule","tag","color","isOpen","toggle","children","transition","fade","innerRef"]),_=Object(d.l)(f()(t,"alert","alert-"+l,{"alert-dismissible":h}),a),k=Object(d.l)(f()("close",n),a),x=m(m(m({},p.a.defaultProps),y),{},{baseClass:g?y.baseClass:"",timeout:g?y.timeout:0});return s.a.createElement(p.a,Object(r.a)({},w,x,{tag:c,className:_,in:u,role:"alert",innerRef:v}),h?s.a.createElement("button",{type:"button",className:k,"aria-label":o,onClick:h},s.a.createElement("span",{"aria-hidden":"true"},"×")):null,b)}g.propTypes=b,g.defaultProps=y,t.a=g},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(851);const i=r.a.from(-1),o=r.a.from(0),a=r.a.from(1),s=r.a.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")}]);