From 85df40d86d2a41e80f933dce3acfe1ce4a9a9060 Mon Sep 17 00:00:00 2001 From: mbhandary Date: Thu, 16 Apr 2020 15:34:43 -0400 Subject: [PATCH] Redo last commit since merge and fixed lowercase support --- assets/js/domain-verifier-bundle.js | 2 +- assets/js/domain-verifier-checker.js | 2 +- tool/template-validator-domain-verifier.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/js/domain-verifier-bundle.js b/assets/js/domain-verifier-bundle.js index 20585c4b4e..f9df7aae21 100644 --- a/assets/js/domain-verifier-bundle.js +++ b/assets/js/domain-verifier-bundle.js @@ -19,7 +19,7 @@ var r=n(64),i=n(65),o=n(41);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647 * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var o="Expected a function",s="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",c="[object Boolean]",h="[object Date]",d="[object Error]",l="[object Function]",p="[object GeneratorFunction]",b="[object Map]",g="[object Number]",v="[object Object]",m="[object RegExp]",y="[object Set]",w="[object String]",_="[object Symbol]",S="[object WeakMap]",M="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",x="[object Float64Array]",I="[object Int8Array]",T="[object Int16Array]",k="[object Int32Array]",L="[object Uint8Array]",N="[object Uint16Array]",R="[object Uint32Array]",O=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,F=RegExp(P.source),j=RegExp(U.source),C=/<%-([\s\S]+?)%>/g,D=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(Z.source),J=/^\s+|\s+$/g,K=/^\s+/,$=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,st=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,ft=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ht=/['\n\r\u2028\u2029\\]/g,dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",lt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",bt="["+lt+"]",gt="["+dt+"]",vt="\\d+",mt="[\\u2700-\\u27bf]",yt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+lt+vt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",St="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",At="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xt="(?:"+yt+"|"+wt+")",It="(?:"+At+"|"+wt+")",Tt="(?:"+gt+"|"+_t+")"+"?",kt="[\\ufe0e\\ufe0f]?"+Tt+("(?:\\u200d(?:"+[St,Mt,Et].join("|")+")[\\ufe0e\\ufe0f]?"+Tt+")*"),Lt="(?:"+[mt,Mt,Et].join("|")+")"+kt,Nt="(?:"+[St+gt+"?",gt,Mt,Et,pt].join("|")+")",Rt=RegExp("['’]","g"),Ot=RegExp(gt,"g"),Bt=RegExp(_t+"(?="+_t+")|"+Nt+kt,"g"),zt=RegExp([At+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[bt,At,"$"].join("|")+")",It+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[bt,At+xt,"$"].join("|")+")",At+"?"+xt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",At+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vt,Lt].join("|"),"g"),Pt=RegExp("[\\u200d\\ud800-\\udfff"+dt+"\\ufe0e\\ufe0f]"),Ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jt=-1,Ct={};Ct[A]=Ct[x]=Ct[I]=Ct[T]=Ct[k]=Ct[L]=Ct["[object Uint8ClampedArray]"]=Ct[N]=Ct[R]=!0,Ct[u]=Ct[f]=Ct[M]=Ct[c]=Ct[E]=Ct[h]=Ct[d]=Ct[l]=Ct[b]=Ct[g]=Ct[v]=Ct[m]=Ct[y]=Ct[w]=Ct[S]=!1;var Dt={};Dt[u]=Dt[f]=Dt[M]=Dt[E]=Dt[c]=Dt[h]=Dt[A]=Dt[x]=Dt[I]=Dt[T]=Dt[k]=Dt[b]=Dt[g]=Dt[v]=Dt[m]=Dt[y]=Dt[w]=Dt[_]=Dt[L]=Dt["[object Uint8ClampedArray]"]=Dt[N]=Dt[R]=!0,Dt[d]=Dt[l]=Dt[S]=!1;var qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vt=parseFloat,Ht=parseInt,Wt="object"==typeof t&&t&&t.Object===Object&&t,Zt="object"==typeof self&&self&&self.Object===Object&&self,Yt=Wt||Zt||Function("return this")(),Jt=e&&!e.nodeType&&e,Kt=Jt&&"object"==typeof r&&r&&!r.nodeType&&r,$t=Kt&&Kt.exports===Jt,Xt=$t&&Wt.process,Gt=function(){try{var t=Kt&&Kt.require&&Kt.require("util").types;return t||Xt&&Xt.binding&&Xt.binding("util")}catch(t){}}(),Qt=Gt&&Gt.isArrayBuffer,te=Gt&&Gt.isDate,ee=Gt&&Gt.isMap,ne=Gt&&Gt.isRegExp,re=Gt&&Gt.isSet,ie=Gt&&Gt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function se(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i-1}function de(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function Be(t,e){for(var n=t.length;n--&&_e(e,t[n],0)>-1;);return n}function ze(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Pe=xe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ue=xe({"&":"&","<":"<",">":">",'"':""","'":"'"});function Fe(t){return"\\"+qt[t]}function je(t){return Pt.test(t)}function Ce(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function De(t,e){return function(n){return t(e(n))}}function qe(t,e){for(var n=-1,r=t.length,i=0,o=[];++n",""":'"',"'":"'"});var Je=function t(e){var n,r=(e=null==e?Yt:Je.defaults(Yt.Object(),e,Je.pick(Yt,Ft))).Array,i=e.Date,dt=e.Error,lt=e.Function,pt=e.Math,bt=e.Object,gt=e.RegExp,vt=e.String,mt=e.TypeError,yt=r.prototype,wt=lt.prototype,_t=bt.prototype,St=e["__core-js_shared__"],Mt=wt.toString,Et=_t.hasOwnProperty,At=0,xt=(n=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",It=_t.toString,Tt=Mt.call(bt),kt=Yt._,Lt=gt("^"+Mt.call(Et).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nt=$t?e.Buffer:void 0,Bt=e.Symbol,Pt=e.Uint8Array,qt=Nt?Nt.allocUnsafe:void 0,Wt=De(bt.getPrototypeOf,bt),Zt=bt.create,Jt=_t.propertyIsEnumerable,Kt=yt.splice,Xt=Bt?Bt.isConcatSpreadable:void 0,Gt=Bt?Bt.iterator:void 0,me=Bt?Bt.toStringTag:void 0,xe=function(){try{var t=Qi(bt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ke=e.clearTimeout!==Yt.clearTimeout&&e.clearTimeout,$e=i&&i.now!==Yt.Date.now&&i.now,Xe=e.setTimeout!==Yt.setTimeout&&e.setTimeout,Ge=pt.ceil,Qe=pt.floor,tn=bt.getOwnPropertySymbols,en=Nt?Nt.isBuffer:void 0,nn=e.isFinite,rn=yt.join,on=De(bt.keys,bt),sn=pt.max,an=pt.min,un=i.now,fn=e.parseInt,cn=pt.random,hn=yt.reverse,dn=Qi(e,"DataView"),ln=Qi(e,"Map"),pn=Qi(e,"Promise"),bn=Qi(e,"Set"),gn=Qi(e,"WeakMap"),vn=Qi(bt,"create"),mn=gn&&new gn,yn={},wn=Io(dn),_n=Io(ln),Sn=Io(pn),Mn=Io(bn),En=Io(gn),An=Bt?Bt.prototype:void 0,xn=An?An.valueOf:void 0,In=An?An.toString:void 0;function Tn(t){if(Hs(t)&&!Os(t)&&!(t instanceof Rn)){if(t instanceof Nn)return t;if(Et.call(t,"__wrapped__"))return To(t)}return new Nn(t)}var kn=function(){function t(){}return function(e){if(!Vs(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Ln(){}function Nn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Rn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function On(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function $n(t,e,n,r,i,o){var s,a=1&e,f=2&e,d=4&e;if(n&&(s=i?n(t,r,i,o):n(t)),void 0!==s)return s;if(!Vs(t))return t;var S=Os(t);if(S){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Et.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!a)return vi(t,s)}else{var O=no(t),B=O==l||O==p;if(Us(t))return hi(t,a);if(O==v||O==u||B&&!i){if(s=f||B?{}:io(t),!a)return f?function(t,e){return mi(t,eo(t),e)}(t,function(t,e){return t&&mi(e,_a(e),t)}(s,t)):function(t,e){return mi(t,to(t),e)}(t,Zn(s,t))}else{if(!Dt[O])return i?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case M:return di(t);case c:case h:return new r(+t);case E:return function(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case A:case x:case I:case T:case k:case L:case"[object Uint8ClampedArray]":case N:case R:return li(t,n);case b:return new r;case g:case w:return new r(t);case m:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case y:return new r;case _:return i=t,xn?bt(xn.call(i)):{}}var i}(t,O,a)}}o||(o=new Un);var z=o.get(t);if(z)return z;o.set(t,s),Ks(t)?t.forEach((function(r){s.add($n(r,e,n,r,t,o))})):Ws(t)&&t.forEach((function(r,i){s.set(i,$n(r,e,n,i,t,o))}));var P=S?void 0:(d?f?Zi:Wi:f?_a:wa)(t);return ae(P||t,(function(r,i){P&&(r=t[i=r]),Vn(s,i,$n(r,e,n,i,t,o))})),s}function Xn(t,e,n){var r=n.length;if(null==t)return!r;for(t=bt(t);r--;){var i=n[r],o=e[i],s=t[i];if(void 0===s&&!(i in t)||!o(s))return!1}return!0}function Gn(t,e,n){if("function"!=typeof t)throw new mt(o);return wo((function(){t.apply(void 0,n)}),e)}function Qn(t,e,n,r){var i=-1,o=he,s=!0,a=t.length,u=[],f=e.length;if(!a)return u;n&&(e=le(e,Le(n))),r?(o=de,s=!1):e.length>=200&&(o=Re,s=!1,e=new Pn(e));t:for(;++i-1},Bn.prototype.set=function(t,e){var n=this.__data__,r=Hn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new On,map:new(ln||Bn),string:new On}},zn.prototype.delete=function(t){var e=Xi(this,t).delete(t);return this.size-=e?1:0,e},zn.prototype.get=function(t){return Xi(this,t).get(t)},zn.prototype.has=function(t){return Xi(this,t).has(t)},zn.prototype.set=function(t,e){var n=Xi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Pn.prototype.add=Pn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Pn.prototype.has=function(t){return this.__data__.has(t)},Un.prototype.clear=function(){this.__data__=new Bn,this.size=0},Un.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Un.prototype.get=function(t){return this.__data__.get(t)},Un.prototype.has=function(t){return this.__data__.has(t)},Un.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Bn){var r=n.__data__;if(!ln||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(t,e),this.size=n.size,this};var tr=_i(ur),er=_i(fr,!0);function nr(t,e){var n=!0;return tr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function rr(t,e,n){for(var r=-1,i=t.length;++r0&&n(a)?e>1?or(a,e-1,n,r,i):pe(i,a):r||(i[i.length]=a)}return i}var sr=Si(),ar=Si(!0);function ur(t,e){return t&&sr(t,e,wa)}function fr(t,e){return t&&ar(t,e,wa)}function cr(t,e){return ce(e,(function(e){return Cs(t[e])}))}function hr(t,e){for(var n=0,r=(e=ai(e,t)).length;null!=t&&ne}function br(t,e){return null!=t&&Et.call(t,e)}function gr(t,e){return null!=t&&e in bt(t)}function vr(t,e,n){for(var i=n?de:he,o=t[0].length,s=t.length,a=s,u=r(s),f=1/0,c=[];a--;){var h=t[a];a&&e&&(h=le(h,Le(e))),f=an(h.length,f),u[a]=!n&&(e||o>=120&&h.length>=120)?new Pn(a&&h):void 0}h=t[0];var d=-1,l=u[0];t:for(;++d=a)return u;var f=n[r];return u*("desc"==f?-1:1)}}return t.index-e.index}(t,e,n)}))}function Or(t,e,n){for(var r=-1,i=e.length,o={};++r-1;)a!==t&&Kt.call(a,u,1),Kt.call(t,u,1);return t}function zr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;so(i)?Kt.call(t,i,1):Qr(t,i)}}return t}function Pr(t,e){return t+Qe(cn()*(e-t+1))}function Ur(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=Qe(e/2))&&(t+=t)}while(e);return n}function Fr(t,e){return _o(bo(t,e,Za),t+"")}function jr(t){return jn(ka(t))}function Cr(t,e){var n=ka(t);return Eo(n,Kn(e,0,n.length))}function Dr(t,e,n,r){if(!Vs(t))return t;for(var i=-1,o=(e=ai(e,t)).length,s=o-1,a=t;null!=a&&++io?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=r(o);++i>>1,s=t[o];null!==s&&!Xs(s)&&(n?s<=e:s=200){var f=e?null:Ui(t);if(f)return Ve(f);s=!1,i=Re,u=new Pn}else u=e?[]:a;t:for(;++r=r?t:Wr(t,e,n)}var ci=Ke||function(t){return Yt.clearTimeout(t)};function hi(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function di(t){var e=new t.constructor(t.byteLength);return new Pt(e).set(new Pt(t)),e}function li(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function pi(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Xs(t),s=void 0!==e,a=null===e,u=e==e,f=Xs(e);if(!a&&!f&&!o&&t>e||o&&s&&u&&!a&&!f||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!f&&t1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,s&&ao(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=bt(e);++r-1?i[o?e[s]:s]:void 0}}function Ii(t){return Hi((function(e){var n=e.length,r=n,i=Nn.prototype.thru;for(t&&e.reverse();r--;){var s=e[r];if("function"!=typeof s)throw new mt(o);if(i&&!a&&"wrapper"==Ji(s))var a=new Nn([],!0)}for(r=a?r:n;++r1&&y.reverse(),h&&fa))return!1;var f=o.get(t);if(f&&o.get(e))return f==e;var c=-1,h=!0,d=2&n?new Pn:void 0;for(o.set(t,e),o.set(e,t);++c-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(X,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return ae(a,(function(n){var r="_."+n[0];e&n[1]&&!he(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(G);return e?e[1].split(Q):[]}(r),n)))}function Mo(t){var e=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Eo(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Jo(t,n)}));function es(t){var e=Tn(t);return e.__chain__=!0,e}function ns(t,e){return e(t)}var rs=Hi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Jn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Rn&&so(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ns,args:[i],thisArg:void 0}),new Nn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var is=yi((function(t,e,n){Et.call(t,n)?++t[n]:Yn(t,n,1)}));var os=xi(Ro),ss=xi(Oo);function as(t,e){return(Os(t)?ae:tr)(t,$i(e,3))}function us(t,e){return(Os(t)?ue:er)(t,$i(e,3))}var fs=yi((function(t,e,n){Et.call(t,n)?t[n].push(e):Yn(t,n,[e])}));var cs=Fr((function(t,e,n){var i=-1,o="function"==typeof e,s=zs(t)?r(t.length):[];return tr(t,(function(t){s[++i]=o?oe(e,t,n):mr(t,e,n)})),s})),hs=yi((function(t,e,n){Yn(t,n,e)}));function ds(t,e){return(Os(t)?le:Ir)(t,$i(e,3))}var ls=yi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var ps=Fr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ao(t,e[0],e[1])?e=[]:n>2&&ao(e[0],e[1],e[2])&&(e=[e[0]]),Rr(t,or(e,1),[])})),bs=$e||function(){return Yt.Date.now()};function gs(t,e,n){return e=n?void 0:e,ji(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function vs(t,e){var n;if("function"!=typeof e)throw new mt(o);return t=ra(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ms=Fr((function(t,e,n){var r=1;if(n.length){var i=qe(n,Ki(ms));r|=32}return ji(t,r,e,n,i)})),ys=Fr((function(t,e,n){var r=3;if(n.length){var i=qe(n,Ki(ys));r|=32}return ji(e,r,t,n,i)}));function ws(t,e,n){var r,i,s,a,u,f,c=0,h=!1,d=!1,l=!0;if("function"!=typeof t)throw new mt(o);function p(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n)}function b(t){return c=t,u=wo(v,e),h?p(t):a}function g(t){var n=t-f;return void 0===f||n>=e||n<0||d&&t-c>=s}function v(){var t=bs();if(g(t))return m(t);u=wo(v,function(t){var n=e-(t-f);return d?an(n,s-(t-c)):n}(t))}function m(t){return u=void 0,l&&r?p(t):(r=i=void 0,a)}function y(){var t=bs(),n=g(t);if(r=arguments,i=this,f=t,n){if(void 0===u)return b(f);if(d)return ci(u),u=wo(v,e),p(f)}return void 0===u&&(u=wo(v,e)),a}return e=oa(e)||0,Vs(n)&&(h=!!n.leading,s=(d="maxWait"in n)?sn(oa(n.maxWait)||0,e):s,l="trailing"in n?!!n.trailing:l),y.cancel=function(){void 0!==u&&ci(u),c=0,r=f=i=u=void 0},y.flush=function(){return void 0===u?a:m(bs())},y}var _s=Fr((function(t,e){return Gn(t,1,e)})),Ss=Fr((function(t,e,n){return Gn(t,oa(e)||0,n)}));function Ms(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new mt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ms.Cache||zn),n}function Es(t){if("function"!=typeof t)throw new mt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ms.Cache=zn;var As=ui((function(t,e){var n=(e=1==e.length&&Os(e[0])?le(e[0],Le($i())):le(or(e,1),Le($i()))).length;return Fr((function(r){for(var i=-1,o=an(r.length,n);++i=e})),Rs=yr(function(){return arguments}())?yr:function(t){return Hs(t)&&Et.call(t,"callee")&&!Jt.call(t,"callee")},Os=r.isArray,Bs=Qt?Le(Qt):function(t){return Hs(t)&&lr(t)==M};function zs(t){return null!=t&&qs(t.length)&&!Cs(t)}function Ps(t){return Hs(t)&&zs(t)}var Us=en||ou,Fs=te?Le(te):function(t){return Hs(t)&&lr(t)==h};function js(t){if(!Hs(t))return!1;var e=lr(t);return e==d||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ys(t)}function Cs(t){if(!Vs(t))return!1;var e=lr(t);return e==l||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ds(t){return"number"==typeof t&&t==ra(t)}function qs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Vs(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Hs(t){return null!=t&&"object"==typeof t}var Ws=ee?Le(ee):function(t){return Hs(t)&&no(t)==b};function Zs(t){return"number"==typeof t||Hs(t)&&lr(t)==g}function Ys(t){if(!Hs(t)||lr(t)!=v)return!1;var e=Wt(t);if(null===e)return!0;var n=Et.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Mt.call(n)==Tt}var Js=ne?Le(ne):function(t){return Hs(t)&&lr(t)==m};var Ks=re?Le(re):function(t){return Hs(t)&&no(t)==y};function $s(t){return"string"==typeof t||!Os(t)&&Hs(t)&&lr(t)==w}function Xs(t){return"symbol"==typeof t||Hs(t)&&lr(t)==_}var Gs=ie?Le(ie):function(t){return Hs(t)&&qs(t.length)&&!!Ct[lr(t)]};var Qs=Bi(xr),ta=Bi((function(t,e){return t<=e}));function ea(t){if(!t)return[];if(zs(t))return $s(t)?Ze(t):vi(t);if(Gt&&t[Gt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Gt]());var e=no(t);return(e==b?Ce:e==y?Ve:ka)(t)}function na(t){return t?(t=oa(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ra(t){var e=na(t),n=e%1;return e==e?n?e-n:e:0}function ia(t){return t?Kn(ra(t),0,4294967295):0}function oa(t){if("number"==typeof t)return t;if(Xs(t))return NaN;if(Vs(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Vs(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(J,"");var n=ot.test(t);return n||at.test(t)?Ht(t.slice(2),n?2:8):it.test(t)?NaN:+t}function sa(t){return mi(t,_a(t))}function aa(t){return null==t?"":Xr(t)}var ua=wi((function(t,e){if(ho(e)||zs(e))mi(e,wa(e),t);else for(var n in e)Et.call(e,n)&&Vn(t,n,e[n])})),fa=wi((function(t,e){mi(e,_a(e),t)})),ca=wi((function(t,e,n,r){mi(e,_a(e),t,r)})),ha=wi((function(t,e,n,r){mi(e,wa(e),t,r)})),da=Hi(Jn);var la=Fr((function(t,e){t=bt(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&ao(e[0],e[1],i)&&(r=1);++n1),e})),mi(t,Zi(t),n),r&&(n=$n(n,7,qi));for(var i=e.length;i--;)Qr(n,e[i]);return n}));var Aa=Hi((function(t,e){return null==t?{}:function(t,e){return Or(t,e,(function(e,n){return ga(t,n)}))}(t,e)}));function xa(t,e){if(null==t)return{};var n=le(Zi(t),(function(t){return[t]}));return e=$i(e),Or(t,n,(function(t,n){return e(t,n[0])}))}var Ia=Fi(wa),Ta=Fi(_a);function ka(t){return null==t?[]:Ne(t,wa(t))}var La=Ei((function(t,e,n){return e=e.toLowerCase(),t+(n?Na(e):e)}));function Na(t){return ja(aa(t).toLowerCase())}function Ra(t){return(t=aa(t))&&t.replace(ft,Pe).replace(Ot,"")}var Oa=Ei((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ba=Ei((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),za=Mi("toLowerCase");var Pa=Ei((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Ua=Ei((function(t,e,n){return t+(n?" ":"")+ja(e)}));var Fa=Ei((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),ja=Mi("toUpperCase");function Ca(t,e,n){return t=aa(t),void 0===(e=n?void 0:e)?function(t){return Ut.test(t)}(t)?function(t){return t.match(zt)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(e)||[]}var Da=Fr((function(t,e){try{return oe(t,void 0,e)}catch(t){return js(t)?t:new dt(t)}})),qa=Hi((function(t,e){return ae(e,(function(e){e=xo(e),Yn(t,e,ms(t[e],t))})),t}));function Va(t){return function(){return t}}var Ha=Ii(),Wa=Ii(!0);function Za(t){return t}function Ya(t){return Mr("function"==typeof t?t:$n(t,1))}var Ja=Fr((function(t,e){return function(n){return mr(n,t,e)}})),Ka=Fr((function(t,e){return function(n){return mr(t,n,e)}}));function $a(t,e,n){var r=wa(e),i=cr(e,r);null!=n||Vs(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=cr(e,wa(e)));var o=!(Vs(n)&&"chain"in n&&!n.chain),s=Cs(t);return ae(i,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=vi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,pe([this.value()],arguments))})})),t}function Xa(){}var Ga=Ni(le),Qa=Ni(fe),tu=Ni(ve);function eu(t){return uo(t)?Ae(xo(t)):function(t){return function(e){return hr(e,t)}}(t)}var nu=Oi(),ru=Oi(!0);function iu(){return[]}function ou(){return!1}var su=Li((function(t,e){return t+e}),0),au=Pi("ceil"),uu=Li((function(t,e){return t/e}),1),fu=Pi("floor");var cu,hu=Li((function(t,e){return t*e}),1),du=Pi("round"),lu=Li((function(t,e){return t-e}),0);return Tn.after=function(t,e){if("function"!=typeof e)throw new mt(o);return t=ra(t),function(){if(--t<1)return e.apply(this,arguments)}},Tn.ary=gs,Tn.assign=ua,Tn.assignIn=fa,Tn.assignInWith=ca,Tn.assignWith=ha,Tn.at=da,Tn.before=vs,Tn.bind=ms,Tn.bindAll=qa,Tn.bindKey=ys,Tn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Os(t)?t:[t]},Tn.chain=es,Tn.chunk=function(t,e,n){e=(n?ao(t,e,n):void 0===e)?1:sn(ra(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,s=0,a=r(Ge(i/e));oi?0:i+n),(r=void 0===r||r>i?i:ra(r))<0&&(r+=i),r=n>r?0:ia(r);n>>0)?(t=aa(t))&&("string"==typeof e||null!=e&&!Js(e))&&!(e=Xr(e))&&je(t)?fi(Ze(t),0,n):t.split(e,n):[]},Tn.spread=function(t,e){if("function"!=typeof t)throw new mt(o);return e=null==e?0:sn(ra(e),0),Fr((function(n){var r=n[e],i=fi(n,0,e);return r&&pe(i,r),oe(t,this,i)}))},Tn.tail=function(t){var e=null==t?0:t.length;return e?Wr(t,1,e):[]},Tn.take=function(t,e,n){return t&&t.length?Wr(t,0,(e=n||void 0===e?1:ra(e))<0?0:e):[]},Tn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Wr(t,(e=r-(e=n||void 0===e?1:ra(e)))<0?0:e,r):[]},Tn.takeRightWhile=function(t,e){return t&&t.length?ei(t,$i(e,3),!1,!0):[]},Tn.takeWhile=function(t,e){return t&&t.length?ei(t,$i(e,3)):[]},Tn.tap=function(t,e){return e(t),t},Tn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new mt(o);return Vs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ws(t,e,{leading:r,maxWait:e,trailing:i})},Tn.thru=ns,Tn.toArray=ea,Tn.toPairs=Ia,Tn.toPairsIn=Ta,Tn.toPath=function(t){return Os(t)?le(t,xo):Xs(t)?[t]:vi(Ao(aa(t)))},Tn.toPlainObject=sa,Tn.transform=function(t,e,n){var r=Os(t),i=r||Us(t)||Gs(t);if(e=$i(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Vs(t)&&Cs(o)?kn(Wt(t)):{}}return(i?ae:ur)(t,(function(t,r,i){return e(n,t,r,i)})),n},Tn.unary=function(t){return gs(t,1)},Tn.union=Ho,Tn.unionBy=Wo,Tn.unionWith=Zo,Tn.uniq=function(t){return t&&t.length?Gr(t):[]},Tn.uniqBy=function(t,e){return t&&t.length?Gr(t,$i(e,2)):[]},Tn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Gr(t,void 0,e):[]},Tn.unset=function(t,e){return null==t||Qr(t,e)},Tn.unzip=Yo,Tn.unzipWith=Jo,Tn.update=function(t,e,n){return null==t?t:ti(t,e,si(n))},Tn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:ti(t,e,si(n),r)},Tn.values=ka,Tn.valuesIn=function(t){return null==t?[]:Ne(t,_a(t))},Tn.without=Ko,Tn.words=Ca,Tn.wrap=function(t,e){return xs(si(e),t)},Tn.xor=$o,Tn.xorBy=Xo,Tn.xorWith=Go,Tn.zip=Qo,Tn.zipObject=function(t,e){return ii(t||[],e||[],Vn)},Tn.zipObjectDeep=function(t,e){return ii(t||[],e||[],Dr)},Tn.zipWith=ts,Tn.entries=Ia,Tn.entriesIn=Ta,Tn.extend=fa,Tn.extendWith=ca,$a(Tn,Tn),Tn.add=su,Tn.attempt=Da,Tn.camelCase=La,Tn.capitalize=Na,Tn.ceil=au,Tn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=oa(n))==n?n:0),void 0!==e&&(e=(e=oa(e))==e?e:0),Kn(oa(t),e,n)},Tn.clone=function(t){return $n(t,4)},Tn.cloneDeep=function(t){return $n(t,5)},Tn.cloneDeepWith=function(t,e){return $n(t,5,e="function"==typeof e?e:void 0)},Tn.cloneWith=function(t,e){return $n(t,4,e="function"==typeof e?e:void 0)},Tn.conformsTo=function(t,e){return null==e||Xn(t,e,wa(e))},Tn.deburr=Ra,Tn.defaultTo=function(t,e){return null==t||t!=t?e:t},Tn.divide=uu,Tn.endsWith=function(t,e,n){t=aa(t),e=Xr(e);var r=t.length,i=n=void 0===n?r:Kn(ra(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Tn.eq=ks,Tn.escape=function(t){return(t=aa(t))&&j.test(t)?t.replace(U,Ue):t},Tn.escapeRegExp=function(t){return(t=aa(t))&&Y.test(t)?t.replace(Z,"\\$&"):t},Tn.every=function(t,e,n){var r=Os(t)?fe:nr;return n&&ao(t,e,n)&&(e=void 0),r(t,$i(e,3))},Tn.find=os,Tn.findIndex=Ro,Tn.findKey=function(t,e){return ye(t,$i(e,3),ur)},Tn.findLast=ss,Tn.findLastIndex=Oo,Tn.findLastKey=function(t,e){return ye(t,$i(e,3),fr)},Tn.floor=fu,Tn.forEach=as,Tn.forEachRight=us,Tn.forIn=function(t,e){return null==t?t:sr(t,$i(e,3),_a)},Tn.forInRight=function(t,e){return null==t?t:ar(t,$i(e,3),_a)},Tn.forOwn=function(t,e){return t&&ur(t,$i(e,3))},Tn.forOwnRight=function(t,e){return t&&fr(t,$i(e,3))},Tn.get=ba,Tn.gt=Ls,Tn.gte=Ns,Tn.has=function(t,e){return null!=t&&ro(t,e,br)},Tn.hasIn=ga,Tn.head=zo,Tn.identity=Za,Tn.includes=function(t,e,n,r){t=zs(t)?t:ka(t),n=n&&!r?ra(n):0;var i=t.length;return n<0&&(n=sn(i+n,0)),$s(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&_e(t,e,n)>-1},Tn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ra(n);return i<0&&(i=sn(r+i,0)),_e(t,e,i)},Tn.inRange=function(t,e,n){return e=na(e),void 0===n?(n=e,e=0):n=na(n),function(t,e,n){return t>=an(e,n)&&t=-9007199254740991&&t<=9007199254740991},Tn.isSet=Ks,Tn.isString=$s,Tn.isSymbol=Xs,Tn.isTypedArray=Gs,Tn.isUndefined=function(t){return void 0===t},Tn.isWeakMap=function(t){return Hs(t)&&no(t)==S},Tn.isWeakSet=function(t){return Hs(t)&&"[object WeakSet]"==lr(t)},Tn.join=function(t,e){return null==t?"":rn.call(t,e)},Tn.kebabCase=Oa,Tn.last=jo,Tn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=ra(n))<0?sn(r+i,0):an(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):we(t,Me,i,!0)},Tn.lowerCase=Ba,Tn.lowerFirst=za,Tn.lt=Qs,Tn.lte=ta,Tn.max=function(t){return t&&t.length?rr(t,Za,pr):void 0},Tn.maxBy=function(t,e){return t&&t.length?rr(t,$i(e,2),pr):void 0},Tn.mean=function(t){return Ee(t,Za)},Tn.meanBy=function(t,e){return Ee(t,$i(e,2))},Tn.min=function(t){return t&&t.length?rr(t,Za,xr):void 0},Tn.minBy=function(t,e){return t&&t.length?rr(t,$i(e,2),xr):void 0},Tn.stubArray=iu,Tn.stubFalse=ou,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=hu,Tn.nth=function(t,e){return t&&t.length?Nr(t,ra(e)):void 0},Tn.noConflict=function(){return Yt._===this&&(Yt._=kt),this},Tn.noop=Xa,Tn.now=bs,Tn.pad=function(t,e,n){t=aa(t);var r=(e=ra(e))?We(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Ri(Qe(i),n)+t+Ri(Ge(i),n)},Tn.padEnd=function(t,e,n){t=aa(t);var r=(e=ra(e))?We(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=cn();return an(t+i*(e-t+Vt("1e-"+((i+"").length-1))),e)}return Pr(t,e)},Tn.reduce=function(t,e,n){var r=Os(t)?be:Ie,i=arguments.length<3;return r(t,$i(e,4),n,i,tr)},Tn.reduceRight=function(t,e,n){var r=Os(t)?ge:Ie,i=arguments.length<3;return r(t,$i(e,4),n,i,er)},Tn.repeat=function(t,e,n){return e=(n?ao(t,e,n):void 0===e)?1:ra(e),Ur(aa(t),e)},Tn.replace=function(){var t=arguments,e=aa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Tn.result=function(t,e,n){var r=-1,i=(e=ai(e,t)).length;for(i||(i=1,t=void 0);++r9007199254740991)return[];var n=4294967295,r=an(t,4294967295);t-=4294967295;for(var i=ke(r,e=$i(e));++n=o)return t;var a=n-We(r);if(a<1)return r;var u=s?fi(s,0,a).join(""):t.slice(0,a);if(void 0===i)return u+r;if(s&&(a+=u.length-a),Js(i)){if(t.slice(a).search(i)){var f,c=u;for(i.global||(i=gt(i.source,aa(rt.exec(i))+"g")),i.lastIndex=0;f=i.exec(c);)var h=f.index;u=u.slice(0,void 0===h?a:h)}}else if(t.indexOf(Xr(i),a)!=a){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},Tn.unescape=function(t){return(t=aa(t))&&F.test(t)?t.replace(P,Ye):t},Tn.uniqueId=function(t){var e=++At;return aa(t)+e},Tn.upperCase=Fa,Tn.upperFirst=ja,Tn.each=as,Tn.eachRight=us,Tn.first=zo,$a(Tn,(cu={},ur(Tn,(function(t,e){Et.call(Tn.prototype,e)||(cu[e]=t)})),cu),{chain:!1}),Tn.VERSION="4.17.15",ae(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Tn[t].placeholder=Tn})),ae(["drop","take"],(function(t,e){Rn.prototype[t]=function(n){n=void 0===n?1:sn(ra(n),0);var r=this.__filtered__&&!e?new Rn(this):this.clone();return r.__filtered__?r.__takeCount__=an(n,r.__takeCount__):r.__views__.push({size:an(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Rn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ae(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Rn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:$i(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),ae(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Rn.prototype[t]=function(){return this[n](1).value()[0]}})),ae(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Rn.prototype[t]=function(){return this.__filtered__?new Rn(this):this[n](1)}})),Rn.prototype.compact=function(){return this.filter(Za)},Rn.prototype.find=function(t){return this.filter(t).head()},Rn.prototype.findLast=function(t){return this.reverse().find(t)},Rn.prototype.invokeMap=Fr((function(t,e){return"function"==typeof t?new Rn(this):this.map((function(n){return mr(n,t,e)}))})),Rn.prototype.reject=function(t){return this.filter(Es($i(t)))},Rn.prototype.slice=function(t,e){t=ra(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Rn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=ra(e))<0?n.dropRight(-e):n.take(e-t)),n)},Rn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Rn.prototype.toArray=function(){return this.take(4294967295)},ur(Rn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Tn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(Tn.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,a=e instanceof Rn,u=s[0],f=a||Os(e),c=function(t){var e=i.apply(Tn,pe([t],s));return r&&h?e[0]:e};f&&n&&"function"==typeof u&&1!=u.length&&(a=f=!1);var h=this.__chain__,d=!!this.__actions__.length,l=o&&!h,p=a&&!d;if(!o&&f){e=p?e:new Rn(this);var b=t.apply(e,s);return b.__actions__.push({func:ns,args:[c],thisArg:void 0}),new Nn(b,h)}return l&&p?t.apply(this,s):(b=this.thru(c),l?r?b.value()[0]:b.value():b)})})),ae(["pop","push","shift","sort","splice","unshift"],(function(t){var e=yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Tn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Os(i)?i:[],t)}return this[n]((function(n){return e.apply(Os(n)?n:[],t)}))}})),ur(Rn.prototype,(function(t,e){var n=Tn[e];if(n){var r=n.name+"";Et.call(yn,r)||(yn[r]=[]),yn[r].push({name:e,func:n})}})),yn[Ti(void 0,2).name]=[{name:"wrapper",func:void 0}],Rn.prototype.clone=function(){var t=new Rn(this.__wrapped__);return t.__actions__=vi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=vi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=vi(this.__views__),t},Rn.prototype.reverse=function(){if(this.__filtered__){var t=new Rn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Rn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Os(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Tn.prototype.plant=function(t){for(var e,n=this;n instanceof Ln;){var r=To(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},Tn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Rn){var e=t;return this.__actions__.length&&(e=new Rn(this)),(e=e.reverse()).__actions__.push({func:ns,args:[Vo],thisArg:void 0}),new Nn(e,this.__chain__)}return this.thru(Vo)},Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Tn.prototype.first=Tn.prototype.head,Gt&&(Tn.prototype[Gt]=function(){return this}),Tn}();Yt._=Je,void 0===(i=function(){return Je}.call(e,n,e,r))||(r.exports=i)}).call(this)}).call(this,n(9),n(27)(t))},function(t,e,n){"use strict";var r=n(23),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=h;var o=Object.create(n(20));o.inherits=n(1);var s=n(45),a=n(33);o.inherits(h,s);for(var u=i(a.prototype),f=0;f=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 t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,e,n){var r=e;r.utils=n(7),r.common=n(22),r.sha=n(111),r.ripemd=n(115),r.hmac=n(116),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(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,f=[],c=!1,h=-1;function d(){c&&u&&(c=!1,u.length?f=u.concat(f):h=-1,f.length&&l())}function l(){if(!c){var t=a(d);c=!0;for(var e=f.length;e;){for(u=f,f=[];++h1)for(var n=1;n=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o0&&void 0!==arguments[0]?arguments[0]:0,e=c[this.constructor.width];if(t<0||!(t<=e))throw new Error(t+" not in range 0 <= $val <= "+e);this.val=t},statics:{width:0,fromParser:function(t){return new this(this.width>4?t.read(this.width):t.readUIntN(this.width))},from:function(t){return t instanceof this?t:new this(t)}},toJSON:function(){return this.val},valueOf:function(){return this.val},compareTo:function(t){var e,n,o=this.valueOf(),s=t.valueOf();return o instanceof i?s instanceof i?o.cmp(s):o.cmpn(s):s instanceof i?-t.compareTo(this):(r("number"==typeof s),(e=o)<(n=s)?-1:e===n?0:1)},toBytesSink:function(t){t.put(this.toBytes())},toBytes:function(){return f(this.val,this.constructor.width)}});t.exports={UInt:h}},function(t,e,n){"use strict";(function(e){var r=n(0),i=n(21).HashPrefix,o=n(16).Hash256,s=n(3).parseBytes,a=n(42),u=r({Sha512Half:function(){this.hash=a("sha512")},statics:{put:function(t){return(new this).put(t)}},put:function(t){return this.hash.update(s(t,e)),this},finish256:function(){return this.hash.digest().slice(0,32)},finish:function(){return new o(this.finish256())}});function f(){for(var t=new u,e=arguments.length,n=Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){a(t.precomputed);var n=t._getDoubles(),r=o(e,1,this._bitLength),i=(1<=u;e--)f=(f<<1)+r[e];s.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(e=0;f>=0&&0===s[f];f--)e++;if(f>=0&&e++,u=u.dblp(e),f<0)break;var c=s[f];a(0!==c),u="affine"===t.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,n,r,i){for(var a=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===a[l]&&1===a[p]){var b=[e[l],null,null,e[p]];0===e[l].y.cmp(e[p].y)?(b[1]=e[l].add(e[p]),b[2]=e[l].toJ().mixedAdd(e[p].neg())):0===e[l].y.cmp(e[p].y.redNeg())?(b[1]=e[l].toJ().mixedAdd(e[p]),b[2]=e[l].add(e[p].neg())):(b[1]=e[l].toJ().mixedAdd(e[p]),b[2]=e[l].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=s(n[l],n[p]);c=Math.max(v[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var m=0;m=0;h--){for(var M=0;h>=0;){var E=!0;for(m=0;m=0&&M++,_=_.dblp(M),h<0)break;for(m=0;m0?A=u[m][x-1>>1]:x<0&&(A=u[m][-x-1>>1].neg()),_="affine"===A.type?_.mixedAdd(A):_.add(A))}}for(h=0;h=Math.ceil((t.bitLength()+1)/e.step)},f.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i>8&255,n>>16&255,n>>24&255,0,0,0,0])]);return r.codec.encodeChecked(a)}function a(e){const n=r.codec.decodeChecked(e),s=function(t){const e=t.slice(0,2);if(o.MAIN.equals(e))return!1;if(o.TEST.equals(e))return!0;throw new Error("Invalid X-address: bad prefix")}(n);return{accountId:n.slice(2,22),tag:function(e){const n=e[22];if(n>=2)throw new Error("Unsupported X-address");if(1===n)return e[23]+256*e[24]+65536*e[25]+16777216*e[26];return i.strictEqual(n,0,"flag must be zero to indicate no tag"),i.ok(t.from("0000000000000000","hex").equals(e.slice(23,31)),"remaining bytes must be zero"),!1}(n),test:s}}e.classicAddressToXAddress=function(t,e,n){return s(r.decodeAccountID(t),e,n)},e.encodeXAddress=s,e.xAddressToClassicAddress=function(t){const{accountId:e,tag:n,test:i}=a(t);return{classicAddress:r.encodeAccountID(e),tag:n,test:i}},e.decodeXAddress=a,e.isValidXAddress=function(t){try{a(t)}catch(t){return!1}return!0}}).call(this,n(5).Buffer)},function(t,e,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function f(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function h(t,e,n,r){var i,o,s,a;if(f(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(t))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return t}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 l(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)o(u,this,e);else{var f=u.length,c=g(u,f);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},a.prototype.listeners=function(t){return p(this,t,!0)},a.prototype.rawListeners=function(t){return p(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):b.call(t,e)},a.prototype.listenerCount=b,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){(e=t.exports=n(45)).Stream=e,e.Readable=e,e.Writable=n(33),e.Duplex=n(13),e.Transform=n(48),e.PassThrough=n(84)},function(t,e,n){var r=n(5),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),o(i,s),s.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},s.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){"use strict";(function(e,r,i){var o=n(23);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=m;var a,u=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?r:o.nextTick;m.WritableState=v;var f=Object.create(n(20));f.inherits=n(1);var c={deprecate:n(82)},h=n(46),d=n(32).Buffer,l=i.Uint8Array||function(){};var p,b=n(47);function g(){}function v(t,e){a=a||n(13),t=t||{};var r=e instanceof a;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,f=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(f||0===f)?f:c,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 h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?(o.nextTick(i,r),o.nextTick(E,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),E(t,e))}(t,n,r,e,i);else{var s=S(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||_(t,n),r?u(w,t,n,s,i):w(t,n,s,i)}}(e,t)},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 s(this)}function m(t){if(a=a||n(13),!(p.call(m,this)||this instanceof a))return new m(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function y(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function w(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),E(t,e)}function _(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var a=0,u=!0;n;)i[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;i.allBuffers=u,y(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;n;){var f=n.chunk,c=n.encoding,h=n.callback;if(y(t,e,!1,e.objectMode?1:f.length,f,c,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function S(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function M(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),E(t,e)}))}function E(t,e){var n=S(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(M,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}f.inherits(m,h),v.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(v.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===m&&(t&&t._writableState instanceof v)}})):p=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,n){var r,i=this._writableState,s=!1,a=!i.objectMode&&(r=t,d.isBuffer(r)||r instanceof l);return a&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=g),i.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),o.nextTick(e,n)}(this,n):(a||function(t,e,n,r){var i=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),o.nextTick(r,s),i=!1),i}(this,i,t,n))&&(i.pendingcb++,s=function(t,e,n,r,i,o){if(!n){var s=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n));return e}(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var u=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,E(t,e),n&&(e.finished?o.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=b.destroy,m.prototype._undestroy=b.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(19),n(80).setImmediate,n(9))},function(t,e,n){"use strict";var r=n(83).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.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(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=f,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=c,this.end=h,e=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function c(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function l(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";var r=n(0)({inherits:n(36).Hash,statics:{width:20}});t.exports={Hash160:r}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(10),s=o.Comparable,a=o.SerializedType,u=n(3),f=u.compareBytes,c=u.parseBytes,h=i({Hash:function(t){var e=this.constructor.width;this._bytes=t?c(t,Uint8Array):new Uint8Array(e),r.equal(this._bytes.length,e)},mixins:[s,a],statics:{width:NaN,from:function(t){return t instanceof this?t:new this(c(t))},fromParser:function(t,e){return new this(t.read(e||this.width))}},compareTo:function(t){return f(this._bytes,this.constructor.from(t)._bytes)},toString:function(){return this.toHex()},nibblet:function(t){var e=t>0?t/2|0:0,n=this._bytes[e];return t%2==0?n=(240&n)>>>4:n&=15,n}});t.exports={Hash:h}},function(t,e,n){"use strict";var r=n(2),i=n(3),o=i.parseBytes,s=i.bytesToHex,a=n(0),u=n(15),f=u.Type,c=u.Field,h=a({implementing:{put:function(){}},BytesList:function(){this.arrays=[],this.length=0},put:function(t){var e=o(t,Uint8Array);return this.length+=e.length,this.arrays.push(e),this},toBytesSink:function(t){this.arrays.forEach((function(e){t.put(e)}))},toBytes:function(){var t=new Uint8Array(this.length),e=0;return this.arrays.forEach((function(n){t.set(n,e),e+=n.length})),t},toHex:function(){return s(this.toBytes())}}),d=a({BinarySerializer:function(t){this.sink=t},write:function(t){t.toBytesSink(this.sink)},put:function(t){this.sink.put(t)},writeType:function(t,e){this.write(t.from(e))},writeBytesList:function(t){t.toBytesSink(this.sink)},encodeVL:function(t){var e=t,n=new Uint8Array(4);if(e<=192)return n[0]=e,n.subarray(0,1);if(e<=12480)return e-=193,n[0]=193+(e>>>8),n[1]=255&e,n.subarray(0,2);if(e<=918744)return e-=12481,n[0]=241+(e>>>16),n[1]=e>>8&255,n[2]=255&e,n.subarray(0,3);throw new Error("Overflow error")},writeFieldAndValue:function(t,e){var n=this.sink,i=t.associatedType.from(e);r(i.toBytesSink,t),n.put(t.bytes),t.isVLEncoded?this.writeLengthEncoded(i):(i.toBytesSink(n),t.type===f.STObject?n.put(c.ObjectEndMarker.bytes):t.type===f.STArray&&n.put(c.ArrayEndMarker.bytes))},writeLengthEncoded:function(t){var e=new h;t.toBytesSink(e),this.put(this.encodeVL(e.length)),this.writeBytesList(e)}});t.exports={BytesList:h,BinarySerializer:d}},function(t,e,n){"use strict";var r=n(12),i=n(0),o=n(3).slice,s=n(35).Hash160,a=/^[A-Z0-9]{3}$/,u=/^[A-F0-9]{40}$/;function f(t){return r.isString(t)&&(function(t){return 3===t.length}(t)||function(t){return u.test(t)}(t))}function c(t){if(function(t){return f(t)||function(t){return 20===t.length}(t)}(t))return 3===t.length?function(t){var e=new Uint8Array(20);if("XRP"!==t){var n=t.split("").map((function(t){return t.charCodeAt(0)}));e.set(n,12)}return e}(t):t;throw new Error("Unsupported Currency repr: "+t)}var h=s.prototype,d=i({inherits:s,getters:["isNative","iso"],statics:{init:function(){this.XRP=new this(new Uint8Array(20))},from:function(t){return t instanceof this?t:new this(c(t))}},Currency:function(t){s.call(this,t),this.classify()},classify:function(){for(var t=!0,e=this._bytes,n=o(this._bytes,12,15,Array),i=n.map((function(t){return String.fromCharCode(t)})).join(""),s=e.length-1;s>=0;s--)if(0!==e[s]&&12!==s&&13!==s&&14!==s){t=!1;break}var u=t&&"XRP"!==i&&a.test(i);this._isNative=t&&r.isEqual(n,[0,0,0]),this._iso=this._isNative?"XRP":u?i:null},toJSON:function(){return this.iso()?this.iso():h.toJSON.call(this)}});t.exports={Currency:d}},function(t,e,n){var r;function i(t){this.rand=t}if(t.exports=function(t){return r||(r=new i(null)),r.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n=this._blockSize;){for(var o=this._blockOffset;o0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},function(t,e,n){t.exports=i;var r=n(30).EventEmitter;function i(){r.call(this)}n(1)(i,r),i.Readable=n(31),i.Writable=n(85),i.Duplex=n(86),i.Transform=n(87),i.PassThrough=n(88),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",u));var s=!1;function a(){s||(s=!0,t.end())}function u(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function f(t){if(c(),0===r.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",u),n.removeListener("error",f),t.removeListener("error",f),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",f),t.on("error",f),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t}},function(t,e,n){"use strict";(function(e,r){var i=n(23);t.exports=y;var o,s=n(41);y.ReadableState=m;n(30).EventEmitter;var a=function(t,e){return t.listeners(e).length},u=n(46),f=n(32).Buffer,c=e.Uint8Array||function(){};var h=Object.create(n(20));h.inherits=n(1);var d=n(77),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=n(78),g=n(47);h.inherits(y,u);var v=["error","close","destroy","pause","resume"];function m(t,e){t=t||{};var r=e instanceof(o=o||n(13));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=n(34).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function y(t){if(o=o||n(13),!(this instanceof y))return new y(t);this._readableState=new m(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,n,r,i){var o,s=t._readableState;null===e?(s.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,M(t)}(t,s)):(i||(o=function(t,e){var n;r=e,f.isBuffer(r)||r instanceof c||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===f.prototype||(e=function(t){return f.from(t)}(e)),r?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?_(t,s,e,!1):A(t,s)):_(t,s,e,!1))):r||(s.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function M(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(E,t):E(t))}function E(t){l("emit readable"),t.emit("readable"),k(t)}function A(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(x,t,e))}function x(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;to.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=f.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function N(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(R,e,t))}function R(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function O(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):M(this),null;if(0===(t=S(t,e))&&e.ended)return 0===e.length&&N(this),null;var r,i=e.needReadable;return l("need readable",i),(0===e.length||e.length-t0?L(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&N(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?c:y;function f(e,r){l("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,l("cleanup"),t.removeListener("close",v),t.removeListener("finish",m),t.removeListener("drain",h),t.removeListener("error",g),t.removeListener("unpipe",f),n.removeListener("end",c),n.removeListener("end",y),n.removeListener("data",b),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function c(){l("onend"),t.end()}o.endEmitted?i.nextTick(u):n.once("end",u),t.on("unpipe",f);var h=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,k(t))}}(n);t.on("drain",h);var d=!1;var p=!1;function b(e){l("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==O(o.pipes,t))&&!d&&(l("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function g(e){l("onerror",e),y(),t.removeListener("error",g),0===a(t,"error")&&t.emit("error",e)}function v(){t.removeListener("finish",m),y()}function m(){l("onfinish"),t.removeListener("close",v),y()}function y(){l("unpipe"),n.unpipe(t)}return n.on("data",b),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?s(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",v),t.once("finish",m),t.emit("pipe",n),o.flowing||(l("pipe resume"),n.resume()),t},y.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function l(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}r(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,u=0|this._f,b=0|this._g,g=0|this._h,v=0;v<16;++v)e[v]=t.readInt32BE(4*v);for(;v<64;++v)e[v]=p(e[v-2])+e[v-7]+l(e[v-15])+e[v-16]|0;for(var m=0;m<64;++m){var y=g+d(a)+f(a,u,b)+s[m]+e[m]|0,w=h(n)+c(n,r,i)|0;g=b,b=u,u=a,a=o+y|0,o=i,i=r,r=n,n=y+w|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=u+this._f|0,this._g=b+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},function(t,e,n){var r=n(1),i=n(17),o=n(6).Buffer,s=[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],a=new Array(160);function u(){this.init(),this._w=a,i.call(this,128,112)}function f(t,e,n){return n^t&(e^n)}function c(t,e,n){return t&e|n&(t|e)}function h(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function l(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function b(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function v(t,e){return t>>>0>>0?1:0}r(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,u=0|this._fh,m=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,M=0|this._dl,E=0|this._el,A=0|this._fl,x=0|this._gl,I=0|this._hl,T=0;T<32;T+=2)e[T]=t.readInt32BE(4*T),e[T+1]=t.readInt32BE(4*T+4);for(;T<160;T+=2){var k=e[T-30],L=e[T-30+1],N=l(k,L),R=p(L,k),O=b(k=e[T-4],L=e[T-4+1]),B=g(L,k),z=e[T-14],P=e[T-14+1],U=e[T-32],F=e[T-32+1],j=R+P|0,C=N+z+v(j,R)|0;C=(C=C+O+v(j=j+B|0,B)|0)+U+v(j=j+F|0,F)|0,e[T]=C,e[T+1]=j}for(var D=0;D<160;D+=2){C=e[D],j=e[D+1];var q=c(n,r,i),V=c(w,_,S),H=h(n,w),W=h(w,n),Z=d(a,E),Y=d(E,a),J=s[D],K=s[D+1],$=f(a,u,m),X=f(E,A,x),G=I+Y|0,Q=y+Z+v(G,I)|0;Q=(Q=(Q=Q+$+v(G=G+X|0,X)|0)+J+v(G=G+K|0,K)|0)+C+v(G=G+j|0,j)|0;var tt=W+V|0,et=H+q+v(tt,W)|0;y=m,I=x,m=u,x=A,u=a,A=E,a=o+Q+v(E=M+G|0,M)|0,o=i,M=S,i=r,S=_,r=n,_=w,n=Q+et+v(w=G+tt|0,G)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+M|0,this._el=this._el+E|0,this._fl=this._fl+A|0,this._gl=this._gl+x|0,this._hl=this._hl+I|0,this._ah=this._ah+n+v(this._al,w)|0,this._bh=this._bh+r+v(this._bl,_)|0,this._ch=this._ch+i+v(this._cl,S)|0,this._dh=this._dh+o+v(this._dl,M)|0,this._eh=this._eh+a+v(this._el,E)|0,this._fh=this._fh+u+v(this._fl,A)|0,this._gh=this._gh+m+v(this._gl,x)|0,this._hh=this._hh+y+v(this._hl,I)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},function(t,e,n){var r;!function(i){"use strict";var o,s,a,u="0123456789abcdef",f="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",c="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",h={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},d=!0,l="[DecimalError] Invalid argument: ",p=Math.floor,b=Math.pow,g=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,v=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,m=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,y=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,w=f.length-1,_=c.length-1,S={name:"[object Decimal]"};function M(t){var e,n,r,i=t.length-1,o="",s=t[0];if(i>0){for(o+=s,e=1;en)throw Error(l+t)}function A(t,e,n,r){var i,o,s,a;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),o=b(10,7-e),a=t[i]%o|0,null==r?e<3?(0==e?a=a/100|0:1==e&&(a=a/10|0),s=n<4&&99999==a||n>3&&49999==a||5e4==a||0==a):s=(n<4&&a+1==o||n>3&&a+1==o/2)&&(t[i+1]/o/100|0)==b(10,e-2)-1||(a==o/2||0==a)&&0==(t[i+1]/o/100|0):e<4?(0==e?a=a/1e3|0:1==e?a=a/100|0:2==e&&(a=a/10|0),s=(r||n<4)&&9999==a||!r&&n>3&&4999==a):s=((r||n<4)&&a+1==o||!r&&n>3&&a+1==o/2)&&(t[i+1]/o/1e3|0)==b(10,e-3)-1,s}function x(t,e,n){for(var r,i,o=[0],s=0,a=t.length;sn-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}S.absoluteValue=S.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),T(t)},S.ceil=function(){return T(new this.constructor(this),this.e+1,2)},S.comparedTo=S.cmp=function(t){var e,n,r,i,o=this,s=o.d,a=(t=new o.constructor(t)).d,u=o.s,f=t.s;if(!s||!a)return u&&f?u!==f?u:s===a?0:!s^u<0?1:-1:NaN;if(!s[0]||!a[0])return s[0]?u:a[0]?-f:0;if(u!==f)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,n=(r=s.length)<(i=a.length)?r:i;ea[e]^u<0?1:-1;return r===i?0:r>i^u<0?1:-1},S.cosine=S.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r,i=e.d.length;i<32?(n=Math.ceil(i/3),r=(1/H(4,n)).toString()):(n=16,r="2.3283064365386962890625e-10");t.precision+=n,e=V(t,1,e.times(r),new t(1));for(var o=n;o--;){var s=e.times(e);e=s.times(s).minus(s).times(8).plus(1)}return t.precision-=n,e}(r,W(r,n)),r.precision=t,r.rounding=e,T(2==a||3==a?n.neg():n,t,e,!0)):new r(1):new r(NaN)},S.cubeRoot=S.cbrt=function(){var t,e,n,r,i,o,s,a,u,f,c=this,h=c.constructor;if(!c.isFinite()||c.isZero())return new h(c);for(d=!1,(o=c.s*b(c.s*c,1/3))&&Math.abs(o)!=1/0?r=new h(o.toString()):(n=M(c.d),(o=((t=c.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=b(n,1/3),t=p((t+1)/3)-(t%3==(t<0?-1:2)),(r=new h(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=c.s),s=(t=h.precision)+3;;)if(f=(u=(a=r).times(a).times(a)).plus(c),r=I(f.plus(c).times(a),f.plus(u),s+2,1),M(a.d).slice(0,s)===(n=M(r.d)).slice(0,s)){if("9999"!=(n=n.slice(s-3,s+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(T(r,t+1,1),e=!r.times(r).times(r).eq(c));break}if(!i&&(T(a,t+1,0),a.times(a).times(a).eq(c))){r=a;break}s+=4,i=1}return d=!0,T(r,t,h.rounding,e)},S.decimalPlaces=S.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-p(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},S.dividedBy=S.div=function(t){return I(this,new this.constructor(t))},S.dividedToIntegerBy=S.divToInt=function(t){var e=this.constructor;return T(I(this,new e(t),0,1,1),e.precision,e.rounding)},S.equals=S.eq=function(t){return 0===this.cmp(t)},S.floor=function(){return T(new this.constructor(this),this.e+1,3)},S.greaterThan=S.gt=function(t){return this.cmp(t)>0},S.greaterThanOrEqualTo=S.gte=function(t){var e=this.cmp(t);return 1==e||0===e},S.hyperbolicCosine=S.cosh=function(){var t,e,n,r,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;n=s.precision,r=s.rounding,s.precision=n+Math.max(o.e,o.sd())+4,s.rounding=1,(i=o.d.length)<32?e=(1/H(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=V(s,1,o.times(e),new s(1),!0);for(var u,f=t,c=new s(8);f--;)u=o.times(o),o=a.minus(u.times(c.minus(u.times(c))));return T(o,s.precision=n,s.rounding=r,!0)},S.hyperbolicSine=S.sinh=function(){var t,e,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=V(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=V(o,2,i=i.times(1/H(5,t)),i,!0);for(var s,a=new o(5),u=new o(16),f=new o(20);t--;)s=i.times(i),i=i.times(a.plus(s.times(u.times(s).plus(f))))}return o.precision=e,o.rounding=n,T(i,e,n,!0)},S.hyperbolicTangent=S.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,I(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},S.inverseCosine=S.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?e.isNeg()?R(n,i,o):new n(0):new n(NaN):e.isZero()?R(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=R(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},S.inverseHyperbolicCosine=S.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,d=!1,n=n.times(n).minus(1).sqrt().plus(n),d=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},S.inverseHyperbolicSine=S.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,d=!1,n=n.times(n).plus(1).sqrt().plus(n),d=!0,r.precision=t,r.rounding=e,n.ln())},S.inverseHyperbolicTangent=S.atanh=function(){var t,e,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?T(new o(i),t,e,!0):(o.precision=n=r-i.e,i=I(i.plus(1),new o(1).minus(i),n+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},S.inverseSine=S.asin=function(){var t,e,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==e?0===e?((t=R(o,n+4,r).times(.5)).s=i.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},S.inverseTangent=S.atan=function(){var t,e,n,r,i,o,s,a,u,f=this,c=f.constructor,h=c.precision,l=c.rounding;if(f.isFinite()){if(f.isZero())return new c(f);if(f.abs().eq(1)&&h+4<=_)return(s=R(c,h+4,l).times(.25)).s=f.s,s}else{if(!f.s)return new c(NaN);if(h+4<=_)return(s=R(c,h+4,l).times(.5)).s=f.s,s}for(c.precision=a=h+10,c.rounding=1,t=n=Math.min(28,a/7+2|0);t;--t)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(d=!1,e=Math.ceil(a/7),r=1,u=f.times(f),s=new c(f),i=f;-1!==t;)if(i=i.times(u),o=s.minus(i.div(r+=2)),i=i.times(u),void 0!==(s=o.plus(i.div(r+=2))).d[e])for(t=e;s.d[t]===o.d[t]&&t--;);return n&&(s=s.times(2<this.d.length-2},S.isNaN=function(){return!this.s},S.isNegative=S.isNeg=function(){return this.s<0},S.isPositive=S.isPos=function(){return this.s>0},S.isZero=function(){return!!this.d&&0===this.d[0]},S.lessThan=S.lt=function(t){return this.cmp(t)<0},S.lessThanOrEqualTo=S.lte=function(t){return this.cmp(t)<1},S.logarithm=S.log=function(t){var e,n,r,i,o,s,a,u,f=this.constructor,c=f.precision,h=f.rounding;if(null==t)t=new f(10),e=!0;else{if(n=(t=new f(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new f(NaN);e=t.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new f(n&&!n[0]?-1/0:1!=this.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(d=!1,s=j(this,a=c+5),r=e?N(f,a+10):j(t,a),A((u=I(s,r,a,1)).d,i=c,h))do{if(s=j(this,a+=10),r=e?N(f,a+10):j(t,a),u=I(s,r,a,1),!o){+M(u.d).slice(i+1,i+15)+1==1e14&&(u=T(u,c+1,0));break}}while(A(u.d,i+=10,h));return d=!0,T(u,c,h)},S.minus=S.sub=function(t){var e,n,r,i,o,s,a,u,f,c,h,l,b=this,g=b.constructor;if(t=new g(t),!b.d||!t.d)return b.s&&t.s?b.d?t.s=-t.s:t=new g(t.d||b.s!==t.s?b:NaN):t=new g(NaN),t;if(b.s!=t.s)return t.s=-t.s,b.plus(t);if(f=b.d,l=t.d,a=g.precision,u=g.rounding,!f[0]||!l[0]){if(l[0])t.s=-t.s;else{if(!f[0])return new g(3===u?-0:0);t=new g(b)}return d?T(t,a,u):t}if(n=p(t.e/7),c=p(b.e/7),f=f.slice(),o=c-n){for((h=o<0)?(e=f,o=-o,s=l.length):(e=l,n=c,s=f.length),o>(r=Math.max(Math.ceil(a/7),s)+2)&&(o=r,e.length=1),e.reverse(),r=o;r--;)e.push(0);e.reverse()}else{for((h=(r=f.length)<(s=l.length))&&(s=r),r=0;r0;--r)f[s++]=0;for(r=l.length;r>o;){if(f[--r](s=(o=Math.ceil(a/7))>s?o+1:s+1)&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((s=f.length)-(i=c.length)<0&&(i=s,n=c,c=f,f=n),e=0;i;)e=(f[--i]=f[i]+c[i]+e)/1e7|0,f[i]%=1e7;for(e&&(f.unshift(e),++r),s=f.length;0==f[--s];)f.pop();return t.d=f,t.e=L(f,r),d?T(t,a,u):t},S.precision=S.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(l+t);return n.d?(e=O(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},S.round=function(){var t=this,e=t.constructor;return T(new e(t),t.e+1,e.rounding)},S.sine=S.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return V(t,2,e,e);n=(n=1.4*Math.sqrt(r))>16?16:0|n,e=e.times(1/H(5,n)),e=V(t,2,e,e);for(var i,o=new t(5),s=new t(16),a=new t(20);n--;)i=e.times(e),e=e.times(o.plus(i.times(s.times(i).minus(a))));return e}(r,W(r,n)),r.precision=t,r.rounding=e,T(a>2?n.neg():n,t,e,!0)):new r(NaN)},S.squareRoot=S.sqrt=function(){var t,e,n,r,i,o,s=this,a=s.d,u=s.e,f=s.s,c=s.constructor;if(1!==f||!a||!a[0])return new c(!f||f<0&&(!a||a[0])?NaN:a?s:1/0);for(d=!1,0==(f=Math.sqrt(+s))||f==1/0?(((e=M(a)).length+u)%2==0&&(e+="0"),f=Math.sqrt(e),u=p((u+1)/2)-(u<0||u%2),r=new c(e=f==1/0?"1e"+u:(e=f.toExponential()).slice(0,e.indexOf("e")+1)+u)):r=new c(f.toString()),n=(u=c.precision)+3;;)if(r=(o=r).plus(I(s,o,n+2,1)).times(.5),M(o.d).slice(0,n)===(e=M(r.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(T(r,u+1,1),t=!r.times(r).eq(s));break}if(!i&&(T(o,u+1,0),o.times(o).eq(s))){r=o;break}n+=4,i=1}return d=!0,T(r,u,c.rounding,t)},S.tangent=S.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=I(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,T(2==a||4==a?n.neg():n,t,e,!0)):new r(NaN)},S.times=S.mul=function(t){var e,n,r,i,o,s,a,u,f,c=this,h=c.constructor,l=c.d,b=(t=new h(t)).d;if(t.s*=c.s,!(l&&l[0]&&b&&b[0]))return new h(!t.s||l&&!l[0]&&!b||b&&!b[0]&&!l?NaN:l&&b?0*t.s:t.s/0);for(n=p(c.e/7)+p(t.e/7),(u=l.length)<(f=b.length)&&(o=l,l=b,b=o,s=u,u=f,f=s),o=[],r=s=u+f;r--;)o.push(0);for(r=f;--r>=0;){for(e=0,i=u+r;i>r;)a=o[i]+b[r]*l[i-r-1]+e,o[i--]=a%1e7|0,e=a/1e7|0;o[i]=(o[i]+e)%1e7|0}for(;!o[--s];)o.pop();return e?++n:o.shift(),t.d=o,t.e=L(o,n),d?T(t,h.precision,h.rounding):t},S.toBinary=function(t,e){return Z(this,2,t,e)},S.toDecimalPlaces=S.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(E(t,0,1e9),void 0===e?e=r.rounding:E(e,0,8),T(n,t+n.e+1,e))},S.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=k(r,!0):(E(t,0,1e9),void 0===e?e=i.rounding:E(e,0,8),n=k(r=T(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},S.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=k(i):(E(t,0,1e9),void 0===e?e=o.rounding:E(e,0,8),n=k(r=T(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},S.toFraction=function(t){var e,n,r,i,o,s,a,u,f,c,h,p,g=this,v=g.d,m=g.constructor;if(!v)return new m(g);if(f=n=new m(1),r=u=new m(0),s=(o=(e=new m(r)).e=O(v)-g.e-1)%7,e.d[0]=b(10,s<0?7+s:s),null==t)t=o>0?e:f;else{if(!(a=new m(t)).isInt()||a.lt(f))throw Error(l+a);t=a.gt(e)?o>0?e:f:a}for(d=!1,a=new m(M(v)),c=m.precision,m.precision=o=7*v.length*2;h=I(a,e,0,1,1),1!=(i=n.plus(h.times(r))).cmp(t);)n=r,r=i,i=f,f=u.plus(h.times(i)),u=i,i=e,e=a.minus(h.times(i)),a=i;return i=I(t.minus(n),r,0,1,1),u=u.plus(i.times(f)),n=n.plus(i.times(r)),u.s=f.s=g.s,p=I(f,r,o,1).minus(g).abs().cmp(I(u,n,o,1).minus(g).abs())<1?[f,r]:[u,n],m.precision=c,d=!0,p},S.toHexadecimal=S.toHex=function(t,e){return Z(this,16,t,e)},S.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:E(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(d=!1,n=I(n,t,0,e,1).times(t),d=!0,T(n)):(t.s=n.s,n=t),n},S.toNumber=function(){return+this},S.toOctal=function(t,e){return Z(this,8,t,e)},S.toPower=S.pow=function(t){var e,n,r,i,o,s,a=this,u=a.constructor,f=+(t=new u(t));if(!(a.d&&t.d&&a.d[0]&&t.d[0]))return new u(b(+a,f));if((a=new u(a)).eq(1))return a;if(r=u.precision,o=u.rounding,t.eq(1))return T(a,r,o);if((e=p(t.e/7))>=t.d.length-1&&(n=f<0?-f:f)<=9007199254740991)return i=z(u,a,n,r),t.s<0?new u(1).div(i):T(i,r,o);if((s=a.s)<0){if(eu.maxE+1||e0?s/0:0):(d=!1,u.rounding=a.s=1,n=Math.min(12,(e+"").length),(i=F(t.times(j(a,r+n)),r)).d&&A((i=T(i,r+5,1)).d,r,o)&&(e=r+10,+M((i=T(F(t.times(j(a,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=T(i,r+1,0))),i.s=s,d=!0,u.rounding=o,T(i,r,o))},S.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=k(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(E(t,1,1e9),void 0===e?e=i.rounding:E(e,0,8),n=k(r=T(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},S.toSignificantDigits=S.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(E(t,1,1e9),void 0===e?e=n.rounding:E(e,0,8)),T(new n(this),t,e)},S.toString=function(){var t=this,e=t.constructor,n=k(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},S.truncated=S.trunc=function(){return T(new this.constructor(this),this.e+1,1)},S.valueOf=S.toJSON=function(){var t=this,e=t.constructor,n=k(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var I=function(){function t(t,e,n){var r,i=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+i,t[o]=r%n|0,i=r/n|0;return i&&t.unshift(i),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;)t.shift()}return function(r,i,o,a,u,f){var c,h,d,l,b,g,v,m,y,w,_,S,M,E,A,x,I,k,L,N,R=r.constructor,O=r.s==i.s?1:-1,B=r.d,z=i.d;if(!(B&&B[0]&&z&&z[0]))return new R(r.s&&i.s&&(B?!z||B[0]!=z[0]:z)?B&&0==B[0]||!z?0*O:O/0:NaN);for(f?(b=1,h=r.e-i.e):(f=1e7,b=7,h=p(r.e/b)-p(i.e/b)),L=z.length,I=B.length,w=(y=new R(O)).d=[],d=0;z[d]==(B[d]||0);d++);if(z[d]>(B[d]||0)&&h--,null==o?(E=o=R.precision,a=R.rounding):E=u?o+(r.e-i.e)+1:o,E<0)w.push(1),g=!0;else{if(E=E/b+2|0,d=0,1==L){for(l=0,z=z[0],E++;(d1&&(z=t(z,l,f),B=t(B,l,f),L=z.length,I=B.length),x=L,S=(_=B.slice(0,L)).length;S=f/2&&++k;do{l=0,(c=e(z,_,L,S))<0?(M=_[0],L!=S&&(M=M*f+(_[1]||0)),(l=M/k|0)>1?(l>=f&&(l=f-1),1==(c=e(v=t(z,l,f),_,m=v.length,S=_.length))&&(l--,n(v,L=10;l/=10)d++;y.e=d+h*b-1,T(y,u?o+y.e+1:o,a,g)}return y}}();function T(t,e,n,r){var i,o,s,a,u,f,c,h,l,p=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(i=1,a=h[0];a>=10;a/=10)i++;if((o=e-i)<0)o+=7,s=e,u=(c=h[l=0])/b(10,i-s-1)%10|0;else if((l=Math.ceil((o+1)/7))>=(a=h.length)){if(!r)break t;for(;a++<=l;)h.push(0);c=u=0,i=1,s=(o%=7)-7+1}else{for(c=a=h[l],i=1;a>=10;a/=10)i++;u=(s=(o%=7)-7+i)<0?0:c/b(10,i-s-1)%10|0}if(r=r||e<0||void 0!==h[l+1]||(s<0?c:c%b(10,i-s-1)),f=n<4?(u||r)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(o>0?s>0?c/b(10,i-s):0:h[l-1])%10&1||n==(t.s<0?8:7)),e<1||!h[0])return h.length=0,f?(e-=t.e+1,h[0]=b(10,(7-e%7)%7),t.e=-e||0):h[0]=t.e=0,t;if(0==o?(h.length=l,a=1,l--):(h.length=l+1,a=b(10,7-o),h[l]=s>0?(c/b(10,i-s)%b(10,s)|0)*a:0),f)for(;;){if(0==l){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(t.e++,1e7==h[0]&&(h[0]=1));break}if(h[l]+=a,1e7!=h[l])break;h[l--]=0,a=1}for(o=h.length;0===h[--o];)h.pop()}return d&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e0?o=o.charAt(0)+"."+o.slice(1)+B(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+B(-i-1)+o,n&&(r=n-s)>0&&(o+=B(r))):i>=s?(o+=B(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+B(r))):((r=i+1)0&&(i+1===s&&(o+="."),o+=B(r))),o}function L(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function N(t,e,n){if(e>w)throw d=!0,n&&(t.precision=n),Error("[DecimalError] Precision limit exceeded");return T(new t(f),e,1,!0)}function R(t,e,n){if(e>_)throw Error("[DecimalError] Precision limit exceeded");return T(new t(c),e,n,!0)}function O(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function B(t){for(var e="";t--;)e+="0";return e}function z(t,e,n,r){var i,o=new t(1),s=Math.ceil(r/7+4);for(d=!1;;){if(n%2&&Y((o=o.times(e)).d,s)&&(i=!0),0===(n=p(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}Y((e=e.times(e)).d,s)}return d=!0,o}function P(t){return 1&t.d[t.d.length-1]}function U(t,e,n){for(var r,i=new t(e[0]),o=0;++o17)return new l(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(d=!1,u=g):u=e,a=new l(.03125);t.e>-2;)t=t.times(a),h+=5;for(u+=r=Math.log(b(2,h))/Math.LN10*2+5|0,n=o=s=new l(1),l.precision=u;;){if(o=T(o.times(t),u,1),n=n.times(++c),M((a=s.plus(I(o,n,u,1))).d).slice(0,u)===M(s.d).slice(0,u)){for(i=h;i--;)s=T(s.times(s),u,1);if(null!=e)return l.precision=g,s;if(!(f<3&&A(s.d,u-r,p,f)))return T(s,l.precision=g,p,d=!0);l.precision=u+=10,n=o=a=new l(1),c=0,f++}s=a}}function j(t,e){var n,r,i,o,s,a,u,f,c,h,l,p=1,b=t,g=b.d,v=b.constructor,m=v.rounding,y=v.precision;if(b.s<0||!g||!g[0]||!b.e&&1==g[0]&&1==g.length)return new v(g&&!g[0]?-1/0:1!=b.s?NaN:g?0:b);if(null==e?(d=!1,c=y):c=e,v.precision=c+=10,r=(n=M(g)).charAt(0),!(Math.abs(o=b.e)<15e14))return f=N(v,c+2,y).times(o+""),b=j(new v(r+"."+n.slice(1)),c-10).plus(f),v.precision=y,null==e?T(b,y,m,d=!0):b;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=M((b=b.times(t)).d)).charAt(0),p++;for(o=b.e,r>1?(b=new v("0."+n),o++):b=new v(r+"."+n.slice(1)),h=b,u=s=b=I(b.minus(1),b.plus(1),c,1),l=T(b.times(b),c,1),i=3;;){if(s=T(s.times(l),c,1),M((f=u.plus(I(s,new v(i),c,1))).d).slice(0,c)===M(u.d).slice(0,c)){if(u=u.times(2),0!==o&&(u=u.plus(N(v,c+2,y).times(o+""))),u=I(u,new v(p),c,1),null!=e)return v.precision=y,u;if(!A(u.d,c-10,m,a))return T(u,v.precision=y,m,d=!0);v.precision=c+=10,f=s=b=I(h.minus(1),h.plus(1),c,1),l=T(b.times(b),c,1),i=a=1}u=f,i+=2}}function C(t){return String(t.s*t.s/0)}function D(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%7,n<0&&(r+=7),rt.constructor.maxE?(t.d=null,t.e=NaN):t.e0?(f=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),a=(s=e.indexOf("."))>=0,r=t.constructor,a&&(s=(u=(e=e.replace(".","")).length)-s,i=z(r,new r(n),s,2*s)),s=h=(c=x(e,n,1e7)).length-1;0===c[s];--s)c.pop();return s<0?new r(0*t.s):(t.e=L(c,h),t.d=c,d=!1,a&&(t=I(t,i,4*u)),f&&(t=t.times(Math.abs(f)<54?b(2,f):o.pow(2,f))),d=!0,t)}function V(t,e,n,r,i){var o,s,a,u,f=t.precision,c=Math.ceil(f/7);for(d=!1,u=n.times(n),a=new t(r);;){if(s=I(a.times(u),new t(e++*e++),f,1),a=i?r.plus(s):r.minus(s),r=I(s.times(u),new t(e++*e++),f,1),void 0!==(s=a.plus(r)).d[c]){for(o=c;s.d[o]===a.d[o]&&o--;);if(-1==o)break}o=a,a=r,r=s,s=o}return d=!0,s.d.length=c+1,s}function H(t,e){for(var n=t;--e;)n*=t;return n}function W(t,e){var n,r=e.s<0,i=R(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return a=r?4:1,e;if((n=e.divToInt(i)).isZero())a=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return a=P(n)?r?2:3:r?4:1,e;a=P(n)?r?1:4:r?3:2}return e.minus(i).abs()}function Z(t,e,n,r){var i,o,a,f,c,h,d,l,p,b=t.constructor,g=void 0!==n;if(g?(E(n,1,1e9),void 0===r?r=b.rounding:E(r,0,8)):(n=b.precision,r=b.rounding),t.isFinite()){for(g?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(a=(d=k(t)).indexOf("."))>=0&&(d=d.replace(".",""),(p=new b(1)).e=d.length-a,p.d=x(k(p),10,i),p.e=p.d.length),o=c=(l=x(d,10,i)).length;0==l[--c];)l.pop();if(l[0]){if(a<0?o--:((t=new b(t)).d=l,t.e=o,l=(t=I(t,p,n,r,0,i)).d,o=t.e,h=s),a=l[n],f=i/2,h=h||void 0!==l[n+1],h=r<4?(void 0!==a||h)&&(0===r||r===(t.s<0?3:2)):a>f||a===f&&(4===r||h||6===r&&1&l[n-1]||r===(t.s<0?8:7)),l.length=n,h)for(;++l[--n]>i-1;)l[n]=0,n||(++o,l.unshift(1));for(c=l.length;!l[c-1];--c);for(a=0,d="";a1)if(16==e||8==e){for(a=16==e?4:3,--c;c%a;c++)d+="0";for(c=(l=x(d,i,e)).length;!l[c-1];--c);for(a=1,d="1.";ac)for(o-=c;o--;)d+="0";else oe)return t.length=e,!0}function J(t){return new this(t).abs()}function K(t){return new this(t).acos()}function $(t){return new this(t).acosh()}function X(t,e){return new this(t).plus(e)}function G(t){return new this(t).asin()}function Q(t){return new this(t).asinh()}function tt(t){return new this(t).atan()}function et(t){return new this(t).atanh()}function nt(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,o=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?R(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=R(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(I(t,e,o,1)),e=R(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(I(t,e,o,1)):(n=R(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function rt(t){return new this(t).cbrt()}function it(t){return T(t=new this(t),t.e+1,2)}function ot(t){if(!t||"object"!=typeof t)throw Error("[DecimalError] Object expected");var e,n,r,i=!0===t.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(e=0;e=o[e+1]&&r<=o[e+2]))throw Error(l+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=h[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(l+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");this[n]=!0}else this[n]=!1}return this}function st(t){return new this(t).cos()}function at(t){return new this(t).cosh()}function ut(t,e){return new this(t).div(e)}function ft(t){return new this(t).exp()}function ct(t){return T(t=new this(t),t.e+1,3)}function ht(){var t,e,n=new this(0);for(d=!1,t=0;t=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");for(e=crypto.randomBytes(r*=4);o=214e7?crypto.randomBytes(4).copy(e,o):(a.push(i%1e7),o+=4);o=r/4}else for(;o=10;i/=10)r++;r<7&&(n-=7-r)}return s.e=n,s.d=a,s}function Mt(t){return T(t=new this(t),t.e+1,this.rounding)}function Et(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function At(t){return new this(t).sin()}function xt(t){return new this(t).sinh()}function It(t){return new this(t).sqrt()}function Tt(t,e){return new this(t).sub(e)}function kt(t){return new this(t).tan()}function Lt(t){return new this(t).tanh()}function Nt(t){return T(t=new this(t),t.e+1,1)}(o=function t(e){var n,r,i;function o(t){var e,n,r,i=this;if(!(i instanceof o))return new o(t);if(i.constructor=o,t instanceof o)return i.s=t.s,void(d?!t.d||t.e>o.maxE?(i.e=NaN,i.d=null):t.e=10;n/=10)e++;return void(d?e>o.maxE?(i.e=NaN,i.d=null):e0&&void 0!==arguments[0]?arguments[0]:0,e=void 0===t?"undefined":r(t);if("number"===e)i(t>=0),this._bytes=new Uint8Array(8),this._bytes.set(c(t,4),4);else if(t instanceof o)this._bytes=f(t.toArray("be",8),Uint8Array),this._toBN=t;else{if("string"===e&&!d.test(t))throw new Error(t+" is not a valid UInt64 hex string");this._bytes=f(t,Uint8Array)}i(8===this._bytes.length)},toJSON:function(){return u(this._bytes)},valueOf:function(){return this.toBN()},cached:{toBN:function(){return new o(this._bytes)}},toBytes:function(){return this._bytes}});t.exports={UInt64:l}},function(t,e,n){"use strict";var r=n(0)({inherits:n(36).Hash,statics:{width:32,init:function(){this.ZERO_256=new this(new Uint8Array(this.width))}}});t.exports={Hash256:r}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(12),o=n(0),s=n(15).Field,a=n(37).BinarySerializer,u=s.ObjectEndMarker,f=o({mixins:n(10).SerializedType,statics:{fromParser:function(t,e){for(var n="number"==typeof e?t.pos()+e:null,r=new this;!t.end(n);){var i=t.readField();if(i===u)break;r[i]=t.readFieldValue(i)}return r},from:function(t){if(t instanceof this)return t;if("object"===(void 0===t?"undefined":r(t)))return i.transform(t,(function(t,e,n){var r=s[n];r?t[r]=r.associatedType.from(e):t[n]=e}),new this);throw new Error(t+" is unsupported")}},fieldKeys:function(){return Object.keys(this).map((function(t){return s[t]})).filter(Boolean)},toJSON:function(){return i.transform(this,(function(t,e,n){t[n]=e&&e.toJSON?e.toJSON():e}),{})},toBytesSink:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},r=new a(t),o=this.fieldKeys(),s=i.sortBy(o,"ordinal");s.filter(n).forEach((function(t){var n=e[t];t.isSerialized&&r.writeFieldAndValue(t,n)}))}});t.exports={STObject:f}},function(t,e,n){"use strict";var r=n(11),i=n(16),o=n(21).HashPrefix,s=n(106).BinaryParser,a=n(37),u=a.BinarySerializer,f=a.BytesList,c=n(3),h=c.bytesToHex,d=c.slice,l=c.parseBytes,p=n(25),b=p.sha512Half,g=p.transactionID,v=function(t){return new s(t)},m=function(t){return t.readType(i.STObject).toJSON()};function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.prefix,r=e.suffix,o=e.signingFieldsOnly,s=void 0!==o&&o,a=new f;n&&a.put(n);var u=s?function(t){return t.isSigningField}:void 0;return i.STObject.from(t).toBytesSink(a,u),r&&a.put(r),a.toBytes()}t.exports={BinaryParser:s,BinarySerializer:u,BytesList:f,makeParser:v,serializeObject:y,readJSON:m,bytesToHex:h,parseBytes:l,multiSigningData:function(t,e){return y(t,{prefix:o.transactionMultiSig,suffix:i.AccountID.from(e).toBytes(),signingFieldsOnly:!0})},signingData:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.transactionSig;return y(t,{prefix:e,signingFieldsOnly:!0})},signingClaimData:function(t){var e=o.paymentChannelClaim,n=i.Hash256.from(t.channel).toBytes(),s=new i.UInt64(new r(t.amount)).toBytes(),a=new f;return a.put(e),a.put(n),a.put(s),a.toBytes()},binaryToJSON:function(t){return m(v(t))},sha512Half:b,transactionID:g,slice:d}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(16).Hash256,s=n(21).HashPrefix,a=n(25).Sha512Half,u=i({virtuals:{hashPrefix:function(){},isLeaf:function(){},isInner:function(){}},cached:{hash:function(){var t=a.put(this.hashPrefix());return this.toBytesSink(t),t.finish()}}}),f=i({inherits:u,ShaMapLeaf:function(t,e){u.call(this),this.index=t,this.item=e},isLeaf:function(){return!0},isInner:function(){return!1},hashPrefix:function(){return this.item.hashPrefix()},toBytesSink:function(t){this.item.toBytesSink(t),this.index.toBytesSink(t)}}),c=u.prototype,h=i({inherits:u,ShaMapInner:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;u.call(this),this.depth=t,this.slotBits=0,this.branches=Array(16)},isInner:function(){return!0},isLeaf:function(){return!1},hashPrefix:function(){return s.innerNode},setBranch:function(t,e){this.slotBits=this.slotBits|1<>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,n){"use strict";var r=n(7),i=n(22),o=n(57),s=n(14),a=r.sum32,u=r.sum32_4,f=r.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,v=[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 m(){if(!(this instanceof m))return new m;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(m,g),t.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r>8,s=255&i;o?n.push(o,s):n.push(s)}return n},r.zero2=i,r.toHex=o,r.encode=function(t,e){return"hex"===e?o(t):t}},function(t,e,n){"use strict";var r=e;r.base=n(26),r.short=n(119),r.mont=n(120),r.edwards=n(121)},function(t,e,n){(function(t){const e=n(66),r=n(29),o=n(109),s="badge badge-danger";var a=0;function u(t,e){let n;return n=e?$("
  • ").appendTo("#log").append(t):$("
  • ").text(t+" ").appendTo("#log"),n.resolve=function(t){return $("").html(t).appendTo(n)},n}function f(t){for(x in t)log=u(x+": "+t[x])}function c(){const n=$("#manifest").val();try{var c=e.decode(n)}catch(t){return void u("Error decoding manifest").resolve(t).addClass(s)}let d=c.Sequence,l=c.PublicKey,p=new t(l,"hex").toJSON().data,b=r.encodeNodePublic(p),g=c.SigningPubKey,v=new t(g,"hex").toJSON().data,m=r.encodeNodePublic(v);try{var y=function(t){for(var e=t.toString(),n="",r=0;rCheck if the xrp-ledger.toml file is actually hosted in the /.well-known/ location at the domain in your manifest. Check your server\'s HTTPS settings and certificate, and make sure your server provides the required CORS header.

    ')}})}function h(t){for(var e=[],n=0,r=t.length;n{$("#manifest-entry").submit(d)})}).call(this,n(5).Buffer)},function(t,e,n){"use strict";e.byteLength=function(t){var e=f(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=f(t),s=r[0],a=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),c=0,h=a>0?s-4:s;for(n=0;n>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;sa?a:s+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,s=[],a=e;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<>1,c=-7,h=n?i-1:0,d=n?-1:1,l=t[e+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+t[e+h],h+=d,c-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(l?-1:1);s+=Math.pow(2,r),o-=f}return(l?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,f=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:o-1,p=r?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+l]=255&a,l+=p,a/=256,i-=8);for(s=s<0;t[n+l]=255&s,l+=p,s/=256,f-=8);t[n+l-p]|=128*b}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(2),o=n(71),s=o.quality,a=o.binary,u=a.bytesToHex,f=a.signingData,c=a.signingClaimData,h=a.multiSigningData,d=a.binaryToJSON,l=a.serializeObject,p=a.BinaryParser;t.exports={decode:function(t){return i("string"==typeof t,"binary must be a hex string"),d(t)},encode:function(t){return i("object"===(void 0===t?"undefined":r(t))),u(l(t))},encodeForSigning:function(t){return i("object"===(void 0===t?"undefined":r(t))),u(f(t))},encodeForSigningClaim:function(t){return i("object"===(void 0===t?"undefined":r(t))),u(c(t))},encodeForMultisigning:function(t,e){return i("object"===(void 0===t?"undefined":r(t))),i.equal(t.SigningPubKey,""),u(h(t,e))},encodeQuality:function(t){return i("string"==typeof t),u(s.encode(t))},decodeQuality:function(t){return i("string"==typeof t),s.decode(t).toString()},decodeLedgerData:function(t){i("string"==typeof t,"binary must be a hex string");var e=new p(t);return{ledger_index:e.readUInt32(),total_coins:e.readType(o.UInt64).valueOf().toString(),parent_hash:e.readType(o.Hash256).toHex(),transaction_hash:e.readType(o.Hash256).toHex(),account_hash:e.readType(o.Hash256).toHex(),parent_close_time:e.readUInt32(),close_time:e.readUInt32(),close_time_resolution:e.readUInt8(),close_flags:e.readUInt8()}}}},function(t,e,n){"use strict"; + */(function(){var o="Expected a function",s="__lodash_placeholder__",a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",f="[object Array]",c="[object Boolean]",h="[object Date]",d="[object Error]",l="[object Function]",p="[object GeneratorFunction]",b="[object Map]",g="[object Number]",v="[object Object]",m="[object RegExp]",y="[object Set]",w="[object String]",_="[object Symbol]",S="[object WeakMap]",M="[object ArrayBuffer]",E="[object DataView]",A="[object Float32Array]",x="[object Float64Array]",I="[object Int8Array]",T="[object Int16Array]",k="[object Int32Array]",L="[object Uint8Array]",N="[object Uint16Array]",R="[object Uint32Array]",O=/\b__p \+= '';/g,B=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,P=/&(?:amp|lt|gt|quot|#39);/g,U=/[&<>"']/g,F=RegExp(P.source),j=RegExp(U.source),C=/<%-([\s\S]+?)%>/g,D=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,W=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(Z.source),J=/^\s+|\s+$/g,K=/^\s+/,$=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,G=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,st=/^\[object .+?Constructor\]$/,at=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,ft=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ht=/['\n\r\u2028\u2029\\]/g,dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",lt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",bt="["+lt+"]",gt="["+dt+"]",vt="\\d+",mt="[\\u2700-\\u27bf]",yt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+lt+vt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",St="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",Et="[\\ud800-\\udbff][\\udc00-\\udfff]",At="[A-Z\\xc0-\\xd6\\xd8-\\xde]",xt="(?:"+yt+"|"+wt+")",It="(?:"+At+"|"+wt+")",Tt="(?:"+gt+"|"+_t+")"+"?",kt="[\\ufe0e\\ufe0f]?"+Tt+("(?:\\u200d(?:"+[St,Mt,Et].join("|")+")[\\ufe0e\\ufe0f]?"+Tt+")*"),Lt="(?:"+[mt,Mt,Et].join("|")+")"+kt,Nt="(?:"+[St+gt+"?",gt,Mt,Et,pt].join("|")+")",Rt=RegExp("['’]","g"),Ot=RegExp(gt,"g"),Bt=RegExp(_t+"(?="+_t+")|"+Nt+kt,"g"),zt=RegExp([At+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[bt,At,"$"].join("|")+")",It+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[bt,At+xt,"$"].join("|")+")",At+"?"+xt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",At+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vt,Lt].join("|"),"g"),Pt=RegExp("[\\u200d\\ud800-\\udfff"+dt+"\\ufe0e\\ufe0f]"),Ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ft=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],jt=-1,Ct={};Ct[A]=Ct[x]=Ct[I]=Ct[T]=Ct[k]=Ct[L]=Ct["[object Uint8ClampedArray]"]=Ct[N]=Ct[R]=!0,Ct[u]=Ct[f]=Ct[M]=Ct[c]=Ct[E]=Ct[h]=Ct[d]=Ct[l]=Ct[b]=Ct[g]=Ct[v]=Ct[m]=Ct[y]=Ct[w]=Ct[S]=!1;var Dt={};Dt[u]=Dt[f]=Dt[M]=Dt[E]=Dt[c]=Dt[h]=Dt[A]=Dt[x]=Dt[I]=Dt[T]=Dt[k]=Dt[b]=Dt[g]=Dt[v]=Dt[m]=Dt[y]=Dt[w]=Dt[_]=Dt[L]=Dt["[object Uint8ClampedArray]"]=Dt[N]=Dt[R]=!0,Dt[d]=Dt[l]=Dt[S]=!1;var qt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vt=parseFloat,Ht=parseInt,Wt="object"==typeof t&&t&&t.Object===Object&&t,Zt="object"==typeof self&&self&&self.Object===Object&&self,Yt=Wt||Zt||Function("return this")(),Jt=e&&!e.nodeType&&e,Kt=Jt&&"object"==typeof r&&r&&!r.nodeType&&r,$t=Kt&&Kt.exports===Jt,Xt=$t&&Wt.process,Gt=function(){try{var t=Kt&&Kt.require&&Kt.require("util").types;return t||Xt&&Xt.binding&&Xt.binding("util")}catch(t){}}(),Qt=Gt&&Gt.isArrayBuffer,te=Gt&&Gt.isDate,ee=Gt&&Gt.isMap,ne=Gt&&Gt.isRegExp,re=Gt&&Gt.isSet,ie=Gt&&Gt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function se(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i-1}function de(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function Be(t,e){for(var n=t.length;n--&&_e(e,t[n],0)>-1;);return n}function ze(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Pe=xe({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Ue=xe({"&":"&","<":"<",">":">",'"':""","'":"'"});function Fe(t){return"\\"+qt[t]}function je(t){return Pt.test(t)}function Ce(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function De(t,e){return function(n){return t(e(n))}}function qe(t,e){for(var n=-1,r=t.length,i=0,o=[];++n",""":'"',"'":"'"});var Je=function t(e){var n,r=(e=null==e?Yt:Je.defaults(Yt.Object(),e,Je.pick(Yt,Ft))).Array,i=e.Date,dt=e.Error,lt=e.Function,pt=e.Math,bt=e.Object,gt=e.RegExp,vt=e.String,mt=e.TypeError,yt=r.prototype,wt=lt.prototype,_t=bt.prototype,St=e["__core-js_shared__"],Mt=wt.toString,Et=_t.hasOwnProperty,At=0,xt=(n=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",It=_t.toString,Tt=Mt.call(bt),kt=Yt._,Lt=gt("^"+Mt.call(Et).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nt=$t?e.Buffer:void 0,Bt=e.Symbol,Pt=e.Uint8Array,qt=Nt?Nt.allocUnsafe:void 0,Wt=De(bt.getPrototypeOf,bt),Zt=bt.create,Jt=_t.propertyIsEnumerable,Kt=yt.splice,Xt=Bt?Bt.isConcatSpreadable:void 0,Gt=Bt?Bt.iterator:void 0,me=Bt?Bt.toStringTag:void 0,xe=function(){try{var t=Qi(bt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ke=e.clearTimeout!==Yt.clearTimeout&&e.clearTimeout,$e=i&&i.now!==Yt.Date.now&&i.now,Xe=e.setTimeout!==Yt.setTimeout&&e.setTimeout,Ge=pt.ceil,Qe=pt.floor,tn=bt.getOwnPropertySymbols,en=Nt?Nt.isBuffer:void 0,nn=e.isFinite,rn=yt.join,on=De(bt.keys,bt),sn=pt.max,an=pt.min,un=i.now,fn=e.parseInt,cn=pt.random,hn=yt.reverse,dn=Qi(e,"DataView"),ln=Qi(e,"Map"),pn=Qi(e,"Promise"),bn=Qi(e,"Set"),gn=Qi(e,"WeakMap"),vn=Qi(bt,"create"),mn=gn&&new gn,yn={},wn=Io(dn),_n=Io(ln),Sn=Io(pn),Mn=Io(bn),En=Io(gn),An=Bt?Bt.prototype:void 0,xn=An?An.valueOf:void 0,In=An?An.toString:void 0;function Tn(t){if(Hs(t)&&!Os(t)&&!(t instanceof Rn)){if(t instanceof Nn)return t;if(Et.call(t,"__wrapped__"))return To(t)}return new Nn(t)}var kn=function(){function t(){}return function(e){if(!Vs(e))return{};if(Zt)return Zt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function Ln(){}function Nn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function Rn(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function On(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function $n(t,e,n,r,i,o){var s,a=1&e,f=2&e,d=4&e;if(n&&(s=i?n(t,r,i,o):n(t)),void 0!==s)return s;if(!Vs(t))return t;var S=Os(t);if(S){if(s=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&Et.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!a)return vi(t,s)}else{var O=no(t),B=O==l||O==p;if(Us(t))return hi(t,a);if(O==v||O==u||B&&!i){if(s=f||B?{}:io(t),!a)return f?function(t,e){return mi(t,eo(t),e)}(t,function(t,e){return t&&mi(e,_a(e),t)}(s,t)):function(t,e){return mi(t,to(t),e)}(t,Zn(s,t))}else{if(!Dt[O])return i?t:{};s=function(t,e,n){var r=t.constructor;switch(e){case M:return di(t);case c:case h:return new r(+t);case E:return function(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case A:case x:case I:case T:case k:case L:case"[object Uint8ClampedArray]":case N:case R:return li(t,n);case b:return new r;case g:case w:return new r(t);case m:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case y:return new r;case _:return i=t,xn?bt(xn.call(i)):{}}var i}(t,O,a)}}o||(o=new Un);var z=o.get(t);if(z)return z;o.set(t,s),Ks(t)?t.forEach((function(r){s.add($n(r,e,n,r,t,o))})):Ws(t)&&t.forEach((function(r,i){s.set(i,$n(r,e,n,i,t,o))}));var P=S?void 0:(d?f?Zi:Wi:f?_a:wa)(t);return ae(P||t,(function(r,i){P&&(r=t[i=r]),Vn(s,i,$n(r,e,n,i,t,o))})),s}function Xn(t,e,n){var r=n.length;if(null==t)return!r;for(t=bt(t);r--;){var i=n[r],o=e[i],s=t[i];if(void 0===s&&!(i in t)||!o(s))return!1}return!0}function Gn(t,e,n){if("function"!=typeof t)throw new mt(o);return wo((function(){t.apply(void 0,n)}),e)}function Qn(t,e,n,r){var i=-1,o=he,s=!0,a=t.length,u=[],f=e.length;if(!a)return u;n&&(e=le(e,Le(n))),r?(o=de,s=!1):e.length>=200&&(o=Re,s=!1,e=new Pn(e));t:for(;++i-1},Bn.prototype.set=function(t,e){var n=this.__data__,r=Hn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},zn.prototype.clear=function(){this.size=0,this.__data__={hash:new On,map:new(ln||Bn),string:new On}},zn.prototype.delete=function(t){var e=Xi(this,t).delete(t);return this.size-=e?1:0,e},zn.prototype.get=function(t){return Xi(this,t).get(t)},zn.prototype.has=function(t){return Xi(this,t).has(t)},zn.prototype.set=function(t,e){var n=Xi(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Pn.prototype.add=Pn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Pn.prototype.has=function(t){return this.__data__.has(t)},Un.prototype.clear=function(){this.__data__=new Bn,this.size=0},Un.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Un.prototype.get=function(t){return this.__data__.get(t)},Un.prototype.has=function(t){return this.__data__.has(t)},Un.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Bn){var r=n.__data__;if(!ln||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new zn(r)}return n.set(t,e),this.size=n.size,this};var tr=_i(ur),er=_i(fr,!0);function nr(t,e){var n=!0;return tr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function rr(t,e,n){for(var r=-1,i=t.length;++r0&&n(a)?e>1?or(a,e-1,n,r,i):pe(i,a):r||(i[i.length]=a)}return i}var sr=Si(),ar=Si(!0);function ur(t,e){return t&&sr(t,e,wa)}function fr(t,e){return t&&ar(t,e,wa)}function cr(t,e){return ce(e,(function(e){return Cs(t[e])}))}function hr(t,e){for(var n=0,r=(e=ai(e,t)).length;null!=t&&ne}function br(t,e){return null!=t&&Et.call(t,e)}function gr(t,e){return null!=t&&e in bt(t)}function vr(t,e,n){for(var i=n?de:he,o=t[0].length,s=t.length,a=s,u=r(s),f=1/0,c=[];a--;){var h=t[a];a&&e&&(h=le(h,Le(e))),f=an(h.length,f),u[a]=!n&&(e||o>=120&&h.length>=120)?new Pn(a&&h):void 0}h=t[0];var d=-1,l=u[0];t:for(;++d=a)return u;var f=n[r];return u*("desc"==f?-1:1)}}return t.index-e.index}(t,e,n)}))}function Or(t,e,n){for(var r=-1,i=e.length,o={};++r-1;)a!==t&&Kt.call(a,u,1),Kt.call(t,u,1);return t}function zr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;so(i)?Kt.call(t,i,1):Qr(t,i)}}return t}function Pr(t,e){return t+Qe(cn()*(e-t+1))}function Ur(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=Qe(e/2))&&(t+=t)}while(e);return n}function Fr(t,e){return _o(bo(t,e,Za),t+"")}function jr(t){return jn(ka(t))}function Cr(t,e){var n=ka(t);return Eo(n,Kn(e,0,n.length))}function Dr(t,e,n,r){if(!Vs(t))return t;for(var i=-1,o=(e=ai(e,t)).length,s=o-1,a=t;null!=a&&++io?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var s=r(o);++i>>1,s=t[o];null!==s&&!Xs(s)&&(n?s<=e:s=200){var f=e?null:Ui(t);if(f)return Ve(f);s=!1,i=Re,u=new Pn}else u=e?[]:a;t:for(;++r=r?t:Wr(t,e,n)}var ci=Ke||function(t){return Yt.clearTimeout(t)};function hi(t,e){if(e)return t.slice();var n=t.length,r=qt?qt(n):new t.constructor(n);return t.copy(r),r}function di(t){var e=new t.constructor(t.byteLength);return new Pt(e).set(new Pt(t)),e}function li(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function pi(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Xs(t),s=void 0!==e,a=null===e,u=e==e,f=Xs(e);if(!a&&!f&&!o&&t>e||o&&s&&u&&!a&&!f||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!f&&t1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,s&&ao(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),e=bt(e);++r-1?i[o?e[s]:s]:void 0}}function Ii(t){return Hi((function(e){var n=e.length,r=n,i=Nn.prototype.thru;for(t&&e.reverse();r--;){var s=e[r];if("function"!=typeof s)throw new mt(o);if(i&&!a&&"wrapper"==Ji(s))var a=new Nn([],!0)}for(r=a?r:n;++r1&&y.reverse(),h&&fa))return!1;var f=o.get(t);if(f&&o.get(e))return f==e;var c=-1,h=!0,d=2&n?new Pn:void 0;for(o.set(t,e),o.set(e,t);++c-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(X,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return ae(a,(function(n){var r="_."+n[0];e&n[1]&&!he(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(G);return e?e[1].split(Q):[]}(r),n)))}function Mo(t){var e=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Eo(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Jo(t,n)}));function es(t){var e=Tn(t);return e.__chain__=!0,e}function ns(t,e){return e(t)}var rs=Hi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Jn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Rn&&so(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:ns,args:[i],thisArg:void 0}),new Nn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var is=yi((function(t,e,n){Et.call(t,n)?++t[n]:Yn(t,n,1)}));var os=xi(Ro),ss=xi(Oo);function as(t,e){return(Os(t)?ae:tr)(t,$i(e,3))}function us(t,e){return(Os(t)?ue:er)(t,$i(e,3))}var fs=yi((function(t,e,n){Et.call(t,n)?t[n].push(e):Yn(t,n,[e])}));var cs=Fr((function(t,e,n){var i=-1,o="function"==typeof e,s=zs(t)?r(t.length):[];return tr(t,(function(t){s[++i]=o?oe(e,t,n):mr(t,e,n)})),s})),hs=yi((function(t,e,n){Yn(t,n,e)}));function ds(t,e){return(Os(t)?le:Ir)(t,$i(e,3))}var ls=yi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var ps=Fr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ao(t,e[0],e[1])?e=[]:n>2&&ao(e[0],e[1],e[2])&&(e=[e[0]]),Rr(t,or(e,1),[])})),bs=$e||function(){return Yt.Date.now()};function gs(t,e,n){return e=n?void 0:e,ji(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function vs(t,e){var n;if("function"!=typeof e)throw new mt(o);return t=ra(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ms=Fr((function(t,e,n){var r=1;if(n.length){var i=qe(n,Ki(ms));r|=32}return ji(t,r,e,n,i)})),ys=Fr((function(t,e,n){var r=3;if(n.length){var i=qe(n,Ki(ys));r|=32}return ji(e,r,t,n,i)}));function ws(t,e,n){var r,i,s,a,u,f,c=0,h=!1,d=!1,l=!0;if("function"!=typeof t)throw new mt(o);function p(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n)}function b(t){return c=t,u=wo(v,e),h?p(t):a}function g(t){var n=t-f;return void 0===f||n>=e||n<0||d&&t-c>=s}function v(){var t=bs();if(g(t))return m(t);u=wo(v,function(t){var n=e-(t-f);return d?an(n,s-(t-c)):n}(t))}function m(t){return u=void 0,l&&r?p(t):(r=i=void 0,a)}function y(){var t=bs(),n=g(t);if(r=arguments,i=this,f=t,n){if(void 0===u)return b(f);if(d)return ci(u),u=wo(v,e),p(f)}return void 0===u&&(u=wo(v,e)),a}return e=oa(e)||0,Vs(n)&&(h=!!n.leading,s=(d="maxWait"in n)?sn(oa(n.maxWait)||0,e):s,l="trailing"in n?!!n.trailing:l),y.cancel=function(){void 0!==u&&ci(u),c=0,r=f=i=u=void 0},y.flush=function(){return void 0===u?a:m(bs())},y}var _s=Fr((function(t,e){return Gn(t,1,e)})),Ss=Fr((function(t,e,n){return Gn(t,oa(e)||0,n)}));function Ms(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new mt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(Ms.Cache||zn),n}function Es(t){if("function"!=typeof t)throw new mt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ms.Cache=zn;var As=ui((function(t,e){var n=(e=1==e.length&&Os(e[0])?le(e[0],Le($i())):le(or(e,1),Le($i()))).length;return Fr((function(r){for(var i=-1,o=an(r.length,n);++i=e})),Rs=yr(function(){return arguments}())?yr:function(t){return Hs(t)&&Et.call(t,"callee")&&!Jt.call(t,"callee")},Os=r.isArray,Bs=Qt?Le(Qt):function(t){return Hs(t)&&lr(t)==M};function zs(t){return null!=t&&qs(t.length)&&!Cs(t)}function Ps(t){return Hs(t)&&zs(t)}var Us=en||ou,Fs=te?Le(te):function(t){return Hs(t)&&lr(t)==h};function js(t){if(!Hs(t))return!1;var e=lr(t);return e==d||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ys(t)}function Cs(t){if(!Vs(t))return!1;var e=lr(t);return e==l||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ds(t){return"number"==typeof t&&t==ra(t)}function qs(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function Vs(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Hs(t){return null!=t&&"object"==typeof t}var Ws=ee?Le(ee):function(t){return Hs(t)&&no(t)==b};function Zs(t){return"number"==typeof t||Hs(t)&&lr(t)==g}function Ys(t){if(!Hs(t)||lr(t)!=v)return!1;var e=Wt(t);if(null===e)return!0;var n=Et.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Mt.call(n)==Tt}var Js=ne?Le(ne):function(t){return Hs(t)&&lr(t)==m};var Ks=re?Le(re):function(t){return Hs(t)&&no(t)==y};function $s(t){return"string"==typeof t||!Os(t)&&Hs(t)&&lr(t)==w}function Xs(t){return"symbol"==typeof t||Hs(t)&&lr(t)==_}var Gs=ie?Le(ie):function(t){return Hs(t)&&qs(t.length)&&!!Ct[lr(t)]};var Qs=Bi(xr),ta=Bi((function(t,e){return t<=e}));function ea(t){if(!t)return[];if(zs(t))return $s(t)?Ze(t):vi(t);if(Gt&&t[Gt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Gt]());var e=no(t);return(e==b?Ce:e==y?Ve:ka)(t)}function na(t){return t?(t=oa(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ra(t){var e=na(t),n=e%1;return e==e?n?e-n:e:0}function ia(t){return t?Kn(ra(t),0,4294967295):0}function oa(t){if("number"==typeof t)return t;if(Xs(t))return NaN;if(Vs(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Vs(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(J,"");var n=ot.test(t);return n||at.test(t)?Ht(t.slice(2),n?2:8):it.test(t)?NaN:+t}function sa(t){return mi(t,_a(t))}function aa(t){return null==t?"":Xr(t)}var ua=wi((function(t,e){if(ho(e)||zs(e))mi(e,wa(e),t);else for(var n in e)Et.call(e,n)&&Vn(t,n,e[n])})),fa=wi((function(t,e){mi(e,_a(e),t)})),ca=wi((function(t,e,n,r){mi(e,_a(e),t,r)})),ha=wi((function(t,e,n,r){mi(e,wa(e),t,r)})),da=Hi(Jn);var la=Fr((function(t,e){t=bt(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&ao(e[0],e[1],i)&&(r=1);++n1),e})),mi(t,Zi(t),n),r&&(n=$n(n,7,qi));for(var i=e.length;i--;)Qr(n,e[i]);return n}));var Aa=Hi((function(t,e){return null==t?{}:function(t,e){return Or(t,e,(function(e,n){return ga(t,n)}))}(t,e)}));function xa(t,e){if(null==t)return{};var n=le(Zi(t),(function(t){return[t]}));return e=$i(e),Or(t,n,(function(t,n){return e(t,n[0])}))}var Ia=Fi(wa),Ta=Fi(_a);function ka(t){return null==t?[]:Ne(t,wa(t))}var La=Ei((function(t,e,n){return e=e.toLowerCase(),t+(n?Na(e):e)}));function Na(t){return ja(aa(t).toLowerCase())}function Ra(t){return(t=aa(t))&&t.replace(ft,Pe).replace(Ot,"")}var Oa=Ei((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Ba=Ei((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),za=Mi("toLowerCase");var Pa=Ei((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Ua=Ei((function(t,e,n){return t+(n?" ":"")+ja(e)}));var Fa=Ei((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),ja=Mi("toUpperCase");function Ca(t,e,n){return t=aa(t),void 0===(e=n?void 0:e)?function(t){return Ut.test(t)}(t)?function(t){return t.match(zt)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(e)||[]}var Da=Fr((function(t,e){try{return oe(t,void 0,e)}catch(t){return js(t)?t:new dt(t)}})),qa=Hi((function(t,e){return ae(e,(function(e){e=xo(e),Yn(t,e,ms(t[e],t))})),t}));function Va(t){return function(){return t}}var Ha=Ii(),Wa=Ii(!0);function Za(t){return t}function Ya(t){return Mr("function"==typeof t?t:$n(t,1))}var Ja=Fr((function(t,e){return function(n){return mr(n,t,e)}})),Ka=Fr((function(t,e){return function(n){return mr(t,n,e)}}));function $a(t,e,n){var r=wa(e),i=cr(e,r);null!=n||Vs(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=cr(e,wa(e)));var o=!(Vs(n)&&"chain"in n&&!n.chain),s=Cs(t);return ae(i,(function(n){var r=e[n];t[n]=r,s&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=vi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,pe([this.value()],arguments))})})),t}function Xa(){}var Ga=Ni(le),Qa=Ni(fe),tu=Ni(ve);function eu(t){return uo(t)?Ae(xo(t)):function(t){return function(e){return hr(e,t)}}(t)}var nu=Oi(),ru=Oi(!0);function iu(){return[]}function ou(){return!1}var su=Li((function(t,e){return t+e}),0),au=Pi("ceil"),uu=Li((function(t,e){return t/e}),1),fu=Pi("floor");var cu,hu=Li((function(t,e){return t*e}),1),du=Pi("round"),lu=Li((function(t,e){return t-e}),0);return Tn.after=function(t,e){if("function"!=typeof e)throw new mt(o);return t=ra(t),function(){if(--t<1)return e.apply(this,arguments)}},Tn.ary=gs,Tn.assign=ua,Tn.assignIn=fa,Tn.assignInWith=ca,Tn.assignWith=ha,Tn.at=da,Tn.before=vs,Tn.bind=ms,Tn.bindAll=qa,Tn.bindKey=ys,Tn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Os(t)?t:[t]},Tn.chain=es,Tn.chunk=function(t,e,n){e=(n?ao(t,e,n):void 0===e)?1:sn(ra(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,s=0,a=r(Ge(i/e));oi?0:i+n),(r=void 0===r||r>i?i:ra(r))<0&&(r+=i),r=n>r?0:ia(r);n>>0)?(t=aa(t))&&("string"==typeof e||null!=e&&!Js(e))&&!(e=Xr(e))&&je(t)?fi(Ze(t),0,n):t.split(e,n):[]},Tn.spread=function(t,e){if("function"!=typeof t)throw new mt(o);return e=null==e?0:sn(ra(e),0),Fr((function(n){var r=n[e],i=fi(n,0,e);return r&&pe(i,r),oe(t,this,i)}))},Tn.tail=function(t){var e=null==t?0:t.length;return e?Wr(t,1,e):[]},Tn.take=function(t,e,n){return t&&t.length?Wr(t,0,(e=n||void 0===e?1:ra(e))<0?0:e):[]},Tn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Wr(t,(e=r-(e=n||void 0===e?1:ra(e)))<0?0:e,r):[]},Tn.takeRightWhile=function(t,e){return t&&t.length?ei(t,$i(e,3),!1,!0):[]},Tn.takeWhile=function(t,e){return t&&t.length?ei(t,$i(e,3)):[]},Tn.tap=function(t,e){return e(t),t},Tn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new mt(o);return Vs(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ws(t,e,{leading:r,maxWait:e,trailing:i})},Tn.thru=ns,Tn.toArray=ea,Tn.toPairs=Ia,Tn.toPairsIn=Ta,Tn.toPath=function(t){return Os(t)?le(t,xo):Xs(t)?[t]:vi(Ao(aa(t)))},Tn.toPlainObject=sa,Tn.transform=function(t,e,n){var r=Os(t),i=r||Us(t)||Gs(t);if(e=$i(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:Vs(t)&&Cs(o)?kn(Wt(t)):{}}return(i?ae:ur)(t,(function(t,r,i){return e(n,t,r,i)})),n},Tn.unary=function(t){return gs(t,1)},Tn.union=Ho,Tn.unionBy=Wo,Tn.unionWith=Zo,Tn.uniq=function(t){return t&&t.length?Gr(t):[]},Tn.uniqBy=function(t,e){return t&&t.length?Gr(t,$i(e,2)):[]},Tn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Gr(t,void 0,e):[]},Tn.unset=function(t,e){return null==t||Qr(t,e)},Tn.unzip=Yo,Tn.unzipWith=Jo,Tn.update=function(t,e,n){return null==t?t:ti(t,e,si(n))},Tn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:ti(t,e,si(n),r)},Tn.values=ka,Tn.valuesIn=function(t){return null==t?[]:Ne(t,_a(t))},Tn.without=Ko,Tn.words=Ca,Tn.wrap=function(t,e){return xs(si(e),t)},Tn.xor=$o,Tn.xorBy=Xo,Tn.xorWith=Go,Tn.zip=Qo,Tn.zipObject=function(t,e){return ii(t||[],e||[],Vn)},Tn.zipObjectDeep=function(t,e){return ii(t||[],e||[],Dr)},Tn.zipWith=ts,Tn.entries=Ia,Tn.entriesIn=Ta,Tn.extend=fa,Tn.extendWith=ca,$a(Tn,Tn),Tn.add=su,Tn.attempt=Da,Tn.camelCase=La,Tn.capitalize=Na,Tn.ceil=au,Tn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=oa(n))==n?n:0),void 0!==e&&(e=(e=oa(e))==e?e:0),Kn(oa(t),e,n)},Tn.clone=function(t){return $n(t,4)},Tn.cloneDeep=function(t){return $n(t,5)},Tn.cloneDeepWith=function(t,e){return $n(t,5,e="function"==typeof e?e:void 0)},Tn.cloneWith=function(t,e){return $n(t,4,e="function"==typeof e?e:void 0)},Tn.conformsTo=function(t,e){return null==e||Xn(t,e,wa(e))},Tn.deburr=Ra,Tn.defaultTo=function(t,e){return null==t||t!=t?e:t},Tn.divide=uu,Tn.endsWith=function(t,e,n){t=aa(t),e=Xr(e);var r=t.length,i=n=void 0===n?r:Kn(ra(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Tn.eq=ks,Tn.escape=function(t){return(t=aa(t))&&j.test(t)?t.replace(U,Ue):t},Tn.escapeRegExp=function(t){return(t=aa(t))&&Y.test(t)?t.replace(Z,"\\$&"):t},Tn.every=function(t,e,n){var r=Os(t)?fe:nr;return n&&ao(t,e,n)&&(e=void 0),r(t,$i(e,3))},Tn.find=os,Tn.findIndex=Ro,Tn.findKey=function(t,e){return ye(t,$i(e,3),ur)},Tn.findLast=ss,Tn.findLastIndex=Oo,Tn.findLastKey=function(t,e){return ye(t,$i(e,3),fr)},Tn.floor=fu,Tn.forEach=as,Tn.forEachRight=us,Tn.forIn=function(t,e){return null==t?t:sr(t,$i(e,3),_a)},Tn.forInRight=function(t,e){return null==t?t:ar(t,$i(e,3),_a)},Tn.forOwn=function(t,e){return t&&ur(t,$i(e,3))},Tn.forOwnRight=function(t,e){return t&&fr(t,$i(e,3))},Tn.get=ba,Tn.gt=Ls,Tn.gte=Ns,Tn.has=function(t,e){return null!=t&&ro(t,e,br)},Tn.hasIn=ga,Tn.head=zo,Tn.identity=Za,Tn.includes=function(t,e,n,r){t=zs(t)?t:ka(t),n=n&&!r?ra(n):0;var i=t.length;return n<0&&(n=sn(i+n,0)),$s(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&_e(t,e,n)>-1},Tn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:ra(n);return i<0&&(i=sn(r+i,0)),_e(t,e,i)},Tn.inRange=function(t,e,n){return e=na(e),void 0===n?(n=e,e=0):n=na(n),function(t,e,n){return t>=an(e,n)&&t=-9007199254740991&&t<=9007199254740991},Tn.isSet=Ks,Tn.isString=$s,Tn.isSymbol=Xs,Tn.isTypedArray=Gs,Tn.isUndefined=function(t){return void 0===t},Tn.isWeakMap=function(t){return Hs(t)&&no(t)==S},Tn.isWeakSet=function(t){return Hs(t)&&"[object WeakSet]"==lr(t)},Tn.join=function(t,e){return null==t?"":rn.call(t,e)},Tn.kebabCase=Oa,Tn.last=jo,Tn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=ra(n))<0?sn(r+i,0):an(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):we(t,Me,i,!0)},Tn.lowerCase=Ba,Tn.lowerFirst=za,Tn.lt=Qs,Tn.lte=ta,Tn.max=function(t){return t&&t.length?rr(t,Za,pr):void 0},Tn.maxBy=function(t,e){return t&&t.length?rr(t,$i(e,2),pr):void 0},Tn.mean=function(t){return Ee(t,Za)},Tn.meanBy=function(t,e){return Ee(t,$i(e,2))},Tn.min=function(t){return t&&t.length?rr(t,Za,xr):void 0},Tn.minBy=function(t,e){return t&&t.length?rr(t,$i(e,2),xr):void 0},Tn.stubArray=iu,Tn.stubFalse=ou,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=hu,Tn.nth=function(t,e){return t&&t.length?Nr(t,ra(e)):void 0},Tn.noConflict=function(){return Yt._===this&&(Yt._=kt),this},Tn.noop=Xa,Tn.now=bs,Tn.pad=function(t,e,n){t=aa(t);var r=(e=ra(e))?We(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Ri(Qe(i),n)+t+Ri(Ge(i),n)},Tn.padEnd=function(t,e,n){t=aa(t);var r=(e=ra(e))?We(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=cn();return an(t+i*(e-t+Vt("1e-"+((i+"").length-1))),e)}return Pr(t,e)},Tn.reduce=function(t,e,n){var r=Os(t)?be:Ie,i=arguments.length<3;return r(t,$i(e,4),n,i,tr)},Tn.reduceRight=function(t,e,n){var r=Os(t)?ge:Ie,i=arguments.length<3;return r(t,$i(e,4),n,i,er)},Tn.repeat=function(t,e,n){return e=(n?ao(t,e,n):void 0===e)?1:ra(e),Ur(aa(t),e)},Tn.replace=function(){var t=arguments,e=aa(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Tn.result=function(t,e,n){var r=-1,i=(e=ai(e,t)).length;for(i||(i=1,t=void 0);++r9007199254740991)return[];var n=4294967295,r=an(t,4294967295);t-=4294967295;for(var i=ke(r,e=$i(e));++n=o)return t;var a=n-We(r);if(a<1)return r;var u=s?fi(s,0,a).join(""):t.slice(0,a);if(void 0===i)return u+r;if(s&&(a+=u.length-a),Js(i)){if(t.slice(a).search(i)){var f,c=u;for(i.global||(i=gt(i.source,aa(rt.exec(i))+"g")),i.lastIndex=0;f=i.exec(c);)var h=f.index;u=u.slice(0,void 0===h?a:h)}}else if(t.indexOf(Xr(i),a)!=a){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},Tn.unescape=function(t){return(t=aa(t))&&F.test(t)?t.replace(P,Ye):t},Tn.uniqueId=function(t){var e=++At;return aa(t)+e},Tn.upperCase=Fa,Tn.upperFirst=ja,Tn.each=as,Tn.eachRight=us,Tn.first=zo,$a(Tn,(cu={},ur(Tn,(function(t,e){Et.call(Tn.prototype,e)||(cu[e]=t)})),cu),{chain:!1}),Tn.VERSION="4.17.15",ae(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Tn[t].placeholder=Tn})),ae(["drop","take"],(function(t,e){Rn.prototype[t]=function(n){n=void 0===n?1:sn(ra(n),0);var r=this.__filtered__&&!e?new Rn(this):this.clone();return r.__filtered__?r.__takeCount__=an(n,r.__takeCount__):r.__views__.push({size:an(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},Rn.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),ae(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Rn.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:$i(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),ae(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Rn.prototype[t]=function(){return this[n](1).value()[0]}})),ae(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Rn.prototype[t]=function(){return this.__filtered__?new Rn(this):this[n](1)}})),Rn.prototype.compact=function(){return this.filter(Za)},Rn.prototype.find=function(t){return this.filter(t).head()},Rn.prototype.findLast=function(t){return this.reverse().find(t)},Rn.prototype.invokeMap=Fr((function(t,e){return"function"==typeof t?new Rn(this):this.map((function(n){return mr(n,t,e)}))})),Rn.prototype.reject=function(t){return this.filter(Es($i(t)))},Rn.prototype.slice=function(t,e){t=ra(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Rn(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=ra(e))<0?n.dropRight(-e):n.take(e-t)),n)},Rn.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Rn.prototype.toArray=function(){return this.take(4294967295)},ur(Rn.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Tn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(Tn.prototype[e]=function(){var e=this.__wrapped__,s=r?[1]:arguments,a=e instanceof Rn,u=s[0],f=a||Os(e),c=function(t){var e=i.apply(Tn,pe([t],s));return r&&h?e[0]:e};f&&n&&"function"==typeof u&&1!=u.length&&(a=f=!1);var h=this.__chain__,d=!!this.__actions__.length,l=o&&!h,p=a&&!d;if(!o&&f){e=p?e:new Rn(this);var b=t.apply(e,s);return b.__actions__.push({func:ns,args:[c],thisArg:void 0}),new Nn(b,h)}return l&&p?t.apply(this,s):(b=this.thru(c),l?r?b.value()[0]:b.value():b)})})),ae(["pop","push","shift","sort","splice","unshift"],(function(t){var e=yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Tn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Os(i)?i:[],t)}return this[n]((function(n){return e.apply(Os(n)?n:[],t)}))}})),ur(Rn.prototype,(function(t,e){var n=Tn[e];if(n){var r=n.name+"";Et.call(yn,r)||(yn[r]=[]),yn[r].push({name:e,func:n})}})),yn[Ti(void 0,2).name]=[{name:"wrapper",func:void 0}],Rn.prototype.clone=function(){var t=new Rn(this.__wrapped__);return t.__actions__=vi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=vi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=vi(this.__views__),t},Rn.prototype.reverse=function(){if(this.__filtered__){var t=new Rn(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Rn.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Os(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Tn.prototype.plant=function(t){for(var e,n=this;n instanceof Ln;){var r=To(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},Tn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Rn){var e=t;return this.__actions__.length&&(e=new Rn(this)),(e=e.reverse()).__actions__.push({func:ns,args:[Vo],thisArg:void 0}),new Nn(e,this.__chain__)}return this.thru(Vo)},Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Tn.prototype.first=Tn.prototype.head,Gt&&(Tn.prototype[Gt]=function(){return this}),Tn}();Yt._=Je,void 0===(i=function(){return Je}.call(e,n,e,r))||(r.exports=i)}).call(this)}).call(this,n(9),n(27)(t))},function(t,e,n){"use strict";var r=n(23),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=h;var o=Object.create(n(20));o.inherits=n(1);var s=n(45),a=n(33);o.inherits(h,s);for(var u=i(a.prototype),f=0;f=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 t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,e,n){var r=e;r.utils=n(7),r.common=n(22),r.sha=n(111),r.ripemd=n(115),r.hmac=n(116),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(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var u,f=[],c=!1,h=-1;function d(){c&&u&&(c=!1,u.length?f=u.concat(f):h=-1,f.length&&l())}function l(){if(!c){var t=a(d);c=!0;for(var e=f.length;e;){for(u=f,f=[];++h1)for(var n=1;n=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o0&&void 0!==arguments[0]?arguments[0]:0,e=c[this.constructor.width];if(t<0||!(t<=e))throw new Error(t+" not in range 0 <= $val <= "+e);this.val=t},statics:{width:0,fromParser:function(t){return new this(this.width>4?t.read(this.width):t.readUIntN(this.width))},from:function(t){return t instanceof this?t:new this(t)}},toJSON:function(){return this.val},valueOf:function(){return this.val},compareTo:function(t){var e,n,o=this.valueOf(),s=t.valueOf();return o instanceof i?s instanceof i?o.cmp(s):o.cmpn(s):s instanceof i?-t.compareTo(this):(r("number"==typeof s),(e=o)<(n=s)?-1:e===n?0:1)},toBytesSink:function(t){t.put(this.toBytes())},toBytes:function(){return f(this.val,this.constructor.width)}});t.exports={UInt:h}},function(t,e,n){"use strict";(function(e){var r=n(0),i=n(21).HashPrefix,o=n(16).Hash256,s=n(3).parseBytes,a=n(42),u=r({Sha512Half:function(){this.hash=a("sha512")},statics:{put:function(t){return(new this).put(t)}},put:function(t){return this.hash.update(s(t,e)),this},finish256:function(){return this.hash.digest().slice(0,32)},finish:function(){return new o(this.finish256())}});function f(){for(var t=new u,e=arguments.length,n=Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){a(t.precomputed);var n=t._getDoubles(),r=o(e,1,this._bitLength),i=(1<=u;e--)f=(f<<1)+r[e];s.push(f)}for(var c=this.jpoint(null,null,null),h=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u=0;f--){for(e=0;f>=0&&0===s[f];f--)e++;if(f>=0&&e++,u=u.dblp(e),f<0)break;var c=s[f];a(0!==c),u="affine"===t.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,n,r,i){for(var a=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,h=0;h=1;h-=2){var l=h-1,p=h;if(1===a[l]&&1===a[p]){var b=[e[l],null,null,e[p]];0===e[l].y.cmp(e[p].y)?(b[1]=e[l].add(e[p]),b[2]=e[l].toJ().mixedAdd(e[p].neg())):0===e[l].y.cmp(e[p].y.redNeg())?(b[1]=e[l].toJ().mixedAdd(e[p]),b[2]=e[l].add(e[p].neg())):(b[1]=e[l].toJ().mixedAdd(e[p]),b[2]=e[l].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],v=s(n[l],n[p]);c=Math.max(v[0].length,c),f[l]=new Array(c),f[p]=new Array(c);for(var m=0;m=0;h--){for(var M=0;h>=0;){var E=!0;for(m=0;m=0&&M++,_=_.dblp(M),h<0)break;for(m=0;m0?A=u[m][x-1>>1]:x<0&&(A=u[m][-x-1>>1].neg()),_="affine"===A.type?_.mixedAdd(A):_.add(A))}}for(h=0;h=Math.ceil((t.bitLength()+1)/e.step)},f.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i>8&255,n>>16&255,n>>24&255,0,0,0,0])]);return r.codec.encodeChecked(a)}function a(e){const n=r.codec.decodeChecked(e),s=function(t){const e=t.slice(0,2);if(o.MAIN.equals(e))return!1;if(o.TEST.equals(e))return!0;throw new Error("Invalid X-address: bad prefix")}(n);return{accountId:n.slice(2,22),tag:function(e){const n=e[22];if(n>=2)throw new Error("Unsupported X-address");if(1===n)return e[23]+256*e[24]+65536*e[25]+16777216*e[26];return i.strictEqual(n,0,"flag must be zero to indicate no tag"),i.ok(t.from("0000000000000000","hex").equals(e.slice(23,31)),"remaining bytes must be zero"),!1}(n),test:s}}e.classicAddressToXAddress=function(t,e,n){return s(r.decodeAccountID(t),e,n)},e.encodeXAddress=s,e.xAddressToClassicAddress=function(t){const{accountId:e,tag:n,test:i}=a(t);return{classicAddress:r.encodeAccountID(e),tag:n,test:i}},e.decodeXAddress=a,e.isValidXAddress=function(t){try{a(t)}catch(t){return!1}return!0}}).call(this,n(5).Buffer)},function(t,e,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function f(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function h(t,e,n,r){var i,o,s,a;if(f(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),s=o[e]),void 0===s)s=o[e]=n,++t._eventsCount;else if("function"==typeof s?s=o[e]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),(i=c(t))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return t}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 l(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)o(u,this,e);else{var f=u.length,c=g(u,f);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){s=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},a.prototype.listeners=function(t){return p(this,t,!0)},a.prototype.rawListeners=function(t){return p(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):b.call(t,e)},a.prototype.listenerCount=b,a.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){(e=t.exports=n(45)).Stream=e,e.Readable=e,e.Writable=n(33),e.Duplex=n(13),e.Transform=n(48),e.PassThrough=n(84)},function(t,e,n){var r=n(5),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),o(i,s),s.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},s.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){"use strict";(function(e,r,i){var o=n(23);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=m;var a,u=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?r:o.nextTick;m.WritableState=v;var f=Object.create(n(20));f.inherits=n(1);var c={deprecate:n(82)},h=n(46),d=n(32).Buffer,l=i.Uint8Array||function(){};var p,b=n(47);function g(){}function v(t,e){a=a||n(13),t=t||{};var r=e instanceof a;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,f=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(f||0===f)?f:c,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 h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?(o.nextTick(i,r),o.nextTick(E,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),E(t,e))}(t,n,r,e,i);else{var s=S(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||_(t,n),r?u(w,t,n,s,i):w(t,n,s,i)}}(e,t)},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 s(this)}function m(t){if(a=a||n(13),!(p.call(m,this)||this instanceof a))return new m(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function y(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function w(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),E(t,e)}function _(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var a=0,u=!0;n;)i[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;i.allBuffers=u,y(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;n;){var f=n.chunk,c=n.encoding,h=n.callback;if(y(t,e,!1,e.objectMode?1:f.length,f,c,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function S(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function M(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),E(t,e)}))}function E(t,e){var n=S(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(M,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}f.inherits(m,h),v.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(v.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===m&&(t&&t._writableState instanceof v)}})):p=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,n){var r,i=this._writableState,s=!1,a=!i.objectMode&&(r=t,d.isBuffer(r)||r instanceof l);return a&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=g),i.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),o.nextTick(e,n)}(this,n):(a||function(t,e,n,r){var i=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),o.nextTick(r,s),i=!1),i}(this,i,t,n))&&(i.pendingcb++,s=function(t,e,n,r,i,o){if(!n){var s=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n));return e}(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var u=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,E(t,e),n&&(e.finished?o.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=b.destroy,m.prototype._undestroy=b.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(19),n(80).setImmediate,n(9))},function(t,e,n){"use strict";var r=n(83).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.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(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=f,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=c,this.end=h,e=3;break;default:return this.write=d,void(this.end=l)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function c(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function l(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";var r=n(0)({inherits:n(36).Hash,statics:{width:20}});t.exports={Hash160:r}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(10),s=o.Comparable,a=o.SerializedType,u=n(3),f=u.compareBytes,c=u.parseBytes,h=i({Hash:function(t){var e=this.constructor.width;this._bytes=t?c(t,Uint8Array):new Uint8Array(e),r.equal(this._bytes.length,e)},mixins:[s,a],statics:{width:NaN,from:function(t){return t instanceof this?t:new this(c(t))},fromParser:function(t,e){return new this(t.read(e||this.width))}},compareTo:function(t){return f(this._bytes,this.constructor.from(t)._bytes)},toString:function(){return this.toHex()},nibblet:function(t){var e=t>0?t/2|0:0,n=this._bytes[e];return t%2==0?n=(240&n)>>>4:n&=15,n}});t.exports={Hash:h}},function(t,e,n){"use strict";var r=n(2),i=n(3),o=i.parseBytes,s=i.bytesToHex,a=n(0),u=n(15),f=u.Type,c=u.Field,h=a({implementing:{put:function(){}},BytesList:function(){this.arrays=[],this.length=0},put:function(t){var e=o(t,Uint8Array);return this.length+=e.length,this.arrays.push(e),this},toBytesSink:function(t){this.arrays.forEach((function(e){t.put(e)}))},toBytes:function(){var t=new Uint8Array(this.length),e=0;return this.arrays.forEach((function(n){t.set(n,e),e+=n.length})),t},toHex:function(){return s(this.toBytes())}}),d=a({BinarySerializer:function(t){this.sink=t},write:function(t){t.toBytesSink(this.sink)},put:function(t){this.sink.put(t)},writeType:function(t,e){this.write(t.from(e))},writeBytesList:function(t){t.toBytesSink(this.sink)},encodeVL:function(t){var e=t,n=new Uint8Array(4);if(e<=192)return n[0]=e,n.subarray(0,1);if(e<=12480)return e-=193,n[0]=193+(e>>>8),n[1]=255&e,n.subarray(0,2);if(e<=918744)return e-=12481,n[0]=241+(e>>>16),n[1]=e>>8&255,n[2]=255&e,n.subarray(0,3);throw new Error("Overflow error")},writeFieldAndValue:function(t,e){var n=this.sink,i=t.associatedType.from(e);r(i.toBytesSink,t),n.put(t.bytes),t.isVLEncoded?this.writeLengthEncoded(i):(i.toBytesSink(n),t.type===f.STObject?n.put(c.ObjectEndMarker.bytes):t.type===f.STArray&&n.put(c.ArrayEndMarker.bytes))},writeLengthEncoded:function(t){var e=new h;t.toBytesSink(e),this.put(this.encodeVL(e.length)),this.writeBytesList(e)}});t.exports={BytesList:h,BinarySerializer:d}},function(t,e,n){"use strict";var r=n(12),i=n(0),o=n(3).slice,s=n(35).Hash160,a=/^[A-Z0-9]{3}$/,u=/^[A-F0-9]{40}$/;function f(t){return r.isString(t)&&(function(t){return 3===t.length}(t)||function(t){return u.test(t)}(t))}function c(t){if(function(t){return f(t)||function(t){return 20===t.length}(t)}(t))return 3===t.length?function(t){var e=new Uint8Array(20);if("XRP"!==t){var n=t.split("").map((function(t){return t.charCodeAt(0)}));e.set(n,12)}return e}(t):t;throw new Error("Unsupported Currency repr: "+t)}var h=s.prototype,d=i({inherits:s,getters:["isNative","iso"],statics:{init:function(){this.XRP=new this(new Uint8Array(20))},from:function(t){return t instanceof this?t:new this(c(t))}},Currency:function(t){s.call(this,t),this.classify()},classify:function(){for(var t=!0,e=this._bytes,n=o(this._bytes,12,15,Array),i=n.map((function(t){return String.fromCharCode(t)})).join(""),s=e.length-1;s>=0;s--)if(0!==e[s]&&12!==s&&13!==s&&14!==s){t=!1;break}var u=t&&"XRP"!==i&&a.test(i);this._isNative=t&&r.isEqual(n,[0,0,0]),this._iso=this._isNative?"XRP":u?i:null},toJSON:function(){return this.iso()?this.iso():h.toJSON.call(this)}});t.exports={Currency:d}},function(t,e,n){var r;function i(t){this.rand=t}if(t.exports=function(t){return r||(r=new i(null)),r.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n=this._blockSize;){for(var o=this._blockOffset;o0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},function(t,e,n){t.exports=i;var r=n(30).EventEmitter;function i(){r.call(this)}n(1)(i,r),i.Readable=n(31),i.Writable=n(85),i.Duplex=n(86),i.Transform=n(87),i.PassThrough=n(88),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",u));var s=!1;function a(){s||(s=!0,t.end())}function u(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function f(t){if(c(),0===r.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",u),n.removeListener("error",f),t.removeListener("error",f),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",f),t.on("error",f),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t}},function(t,e,n){"use strict";(function(e,r){var i=n(23);t.exports=y;var o,s=n(41);y.ReadableState=m;n(30).EventEmitter;var a=function(t,e){return t.listeners(e).length},u=n(46),f=n(32).Buffer,c=e.Uint8Array||function(){};var h=Object.create(n(20));h.inherits=n(1);var d=n(77),l=void 0;l=d&&d.debuglog?d.debuglog("stream"):function(){};var p,b=n(78),g=n(47);h.inherits(y,u);var v=["error","close","destroy","pause","resume"];function m(t,e){t=t||{};var r=e instanceof(o=o||n(13));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new b,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=n(34).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function y(t){if(o=o||n(13),!(this instanceof y))return new y(t);this._readableState=new m(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,n,r,i){var o,s=t._readableState;null===e?(s.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,M(t)}(t,s)):(i||(o=function(t,e){var n;r=e,f.isBuffer(r)||r instanceof c||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(s,e)),o?t.emit("error",o):s.objectMode||e&&e.length>0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===f.prototype||(e=function(t){return f.from(t)}(e)),r?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?_(t,s,e,!1):A(t,s)):_(t,s,e,!1))):r||(s.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function M(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(E,t):E(t))}function E(t){l("emit readable"),t.emit("readable"),k(t)}function A(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(x,t,e))}function x(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;to.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=f.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function N(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(R,e,t))}function R(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function O(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?N(this):M(this),null;if(0===(t=S(t,e))&&e.ended)return 0===e.length&&N(this),null;var r,i=e.needReadable;return l("need readable",i),(0===e.length||e.length-t0?L(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&N(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?c:y;function f(e,r){l("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,l("cleanup"),t.removeListener("close",v),t.removeListener("finish",m),t.removeListener("drain",h),t.removeListener("error",g),t.removeListener("unpipe",f),n.removeListener("end",c),n.removeListener("end",y),n.removeListener("data",b),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function c(){l("onend"),t.end()}o.endEmitted?i.nextTick(u):n.once("end",u),t.on("unpipe",f);var h=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,k(t))}}(n);t.on("drain",h);var d=!1;var p=!1;function b(e){l("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==O(o.pipes,t))&&!d&&(l("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function g(e){l("onerror",e),y(),t.removeListener("error",g),0===a(t,"error")&&t.emit("error",e)}function v(){t.removeListener("finish",m),y()}function m(){l("onfinish"),t.removeListener("close",v),y()}function y(){l("unpipe"),n.unpipe(t)}return n.on("data",b),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?s(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",v),t.once("finish",m),t.emit("pipe",n),o.flowing||(l("pipe resume"),n.resume()),t},y.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function l(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}function p(t){return(t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10}r(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,a=0|this._e,u=0|this._f,b=0|this._g,g=0|this._h,v=0;v<16;++v)e[v]=t.readInt32BE(4*v);for(;v<64;++v)e[v]=p(e[v-2])+e[v-7]+l(e[v-15])+e[v-16]|0;for(var m=0;m<64;++m){var y=g+d(a)+f(a,u,b)+s[m]+e[m]|0,w=h(n)+c(n,r,i)|0;g=b,b=u,u=a,a=o+y|0,o=i,i=r,r=n,n=y+w|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=a+this._e|0,this._f=u+this._f|0,this._g=b+this._g|0,this._h=g+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},function(t,e,n){var r=n(1),i=n(17),o=n(6).Buffer,s=[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],a=new Array(160);function u(){this.init(),this._w=a,i.call(this,128,112)}function f(t,e,n){return n^t&(e^n)}function c(t,e,n){return t&e|n&(t|e)}function h(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function l(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function b(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function v(t,e){return t>>>0>>0?1:0}r(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,u=0|this._fh,m=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,S=0|this._cl,M=0|this._dl,E=0|this._el,A=0|this._fl,x=0|this._gl,I=0|this._hl,T=0;T<32;T+=2)e[T]=t.readInt32BE(4*T),e[T+1]=t.readInt32BE(4*T+4);for(;T<160;T+=2){var k=e[T-30],L=e[T-30+1],N=l(k,L),R=p(L,k),O=b(k=e[T-4],L=e[T-4+1]),B=g(L,k),z=e[T-14],P=e[T-14+1],U=e[T-32],F=e[T-32+1],j=R+P|0,C=N+z+v(j,R)|0;C=(C=C+O+v(j=j+B|0,B)|0)+U+v(j=j+F|0,F)|0,e[T]=C,e[T+1]=j}for(var D=0;D<160;D+=2){C=e[D],j=e[D+1];var q=c(n,r,i),V=c(w,_,S),H=h(n,w),W=h(w,n),Z=d(a,E),Y=d(E,a),J=s[D],K=s[D+1],$=f(a,u,m),X=f(E,A,x),G=I+Y|0,Q=y+Z+v(G,I)|0;Q=(Q=(Q=Q+$+v(G=G+X|0,X)|0)+J+v(G=G+K|0,K)|0)+C+v(G=G+j|0,j)|0;var tt=W+V|0,et=H+q+v(tt,W)|0;y=m,I=x,m=u,x=A,u=a,A=E,a=o+Q+v(E=M+G|0,M)|0,o=i,M=S,i=r,S=_,r=n,_=w,n=Q+et+v(w=G+tt|0,G)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+S|0,this._dl=this._dl+M|0,this._el=this._el+E|0,this._fl=this._fl+A|0,this._gl=this._gl+x|0,this._hl=this._hl+I|0,this._ah=this._ah+n+v(this._al,w)|0,this._bh=this._bh+r+v(this._bl,_)|0,this._ch=this._ch+i+v(this._cl,S)|0,this._dh=this._dh+o+v(this._dl,M)|0,this._eh=this._eh+a+v(this._el,E)|0,this._fh=this._fh+u+v(this._fl,A)|0,this._gh=this._gh+m+v(this._gl,x)|0,this._hh=this._hh+y+v(this._hl,I)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},function(t,e,n){var r;!function(i){"use strict";var o,s,a,u="0123456789abcdef",f="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",c="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",h={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},d=!0,l="[DecimalError] Invalid argument: ",p=Math.floor,b=Math.pow,g=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,v=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,m=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,y=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,w=f.length-1,_=c.length-1,S={name:"[object Decimal]"};function M(t){var e,n,r,i=t.length-1,o="",s=t[0];if(i>0){for(o+=s,e=1;en)throw Error(l+t)}function A(t,e,n,r){var i,o,s,a;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),o=b(10,7-e),a=t[i]%o|0,null==r?e<3?(0==e?a=a/100|0:1==e&&(a=a/10|0),s=n<4&&99999==a||n>3&&49999==a||5e4==a||0==a):s=(n<4&&a+1==o||n>3&&a+1==o/2)&&(t[i+1]/o/100|0)==b(10,e-2)-1||(a==o/2||0==a)&&0==(t[i+1]/o/100|0):e<4?(0==e?a=a/1e3|0:1==e?a=a/100|0:2==e&&(a=a/10|0),s=(r||n<4)&&9999==a||!r&&n>3&&4999==a):s=((r||n<4)&&a+1==o||!r&&n>3&&a+1==o/2)&&(t[i+1]/o/1e3|0)==b(10,e-3)-1,s}function x(t,e,n){for(var r,i,o=[0],s=0,a=t.length;sn-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}S.absoluteValue=S.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),T(t)},S.ceil=function(){return T(new this.constructor(this),this.e+1,2)},S.comparedTo=S.cmp=function(t){var e,n,r,i,o=this,s=o.d,a=(t=new o.constructor(t)).d,u=o.s,f=t.s;if(!s||!a)return u&&f?u!==f?u:s===a?0:!s^u<0?1:-1:NaN;if(!s[0]||!a[0])return s[0]?u:a[0]?-f:0;if(u!==f)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,n=(r=s.length)<(i=a.length)?r:i;ea[e]^u<0?1:-1;return r===i?0:r>i^u<0?1:-1},S.cosine=S.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r,i=e.d.length;i<32?(n=Math.ceil(i/3),r=(1/H(4,n)).toString()):(n=16,r="2.3283064365386962890625e-10");t.precision+=n,e=V(t,1,e.times(r),new t(1));for(var o=n;o--;){var s=e.times(e);e=s.times(s).minus(s).times(8).plus(1)}return t.precision-=n,e}(r,W(r,n)),r.precision=t,r.rounding=e,T(2==a||3==a?n.neg():n,t,e,!0)):new r(1):new r(NaN)},S.cubeRoot=S.cbrt=function(){var t,e,n,r,i,o,s,a,u,f,c=this,h=c.constructor;if(!c.isFinite()||c.isZero())return new h(c);for(d=!1,(o=c.s*b(c.s*c,1/3))&&Math.abs(o)!=1/0?r=new h(o.toString()):(n=M(c.d),(o=((t=c.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=b(n,1/3),t=p((t+1)/3)-(t%3==(t<0?-1:2)),(r=new h(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=c.s),s=(t=h.precision)+3;;)if(f=(u=(a=r).times(a).times(a)).plus(c),r=I(f.plus(c).times(a),f.plus(u),s+2,1),M(a.d).slice(0,s)===(n=M(r.d)).slice(0,s)){if("9999"!=(n=n.slice(s-3,s+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(T(r,t+1,1),e=!r.times(r).times(r).eq(c));break}if(!i&&(T(a,t+1,0),a.times(a).times(a).eq(c))){r=a;break}s+=4,i=1}return d=!0,T(r,t,h.rounding,e)},S.decimalPlaces=S.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-p(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},S.dividedBy=S.div=function(t){return I(this,new this.constructor(t))},S.dividedToIntegerBy=S.divToInt=function(t){var e=this.constructor;return T(I(this,new e(t),0,1,1),e.precision,e.rounding)},S.equals=S.eq=function(t){return 0===this.cmp(t)},S.floor=function(){return T(new this.constructor(this),this.e+1,3)},S.greaterThan=S.gt=function(t){return this.cmp(t)>0},S.greaterThanOrEqualTo=S.gte=function(t){var e=this.cmp(t);return 1==e||0===e},S.hyperbolicCosine=S.cosh=function(){var t,e,n,r,i,o=this,s=o.constructor,a=new s(1);if(!o.isFinite())return new s(o.s?1/0:NaN);if(o.isZero())return a;n=s.precision,r=s.rounding,s.precision=n+Math.max(o.e,o.sd())+4,s.rounding=1,(i=o.d.length)<32?e=(1/H(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=V(s,1,o.times(e),new s(1),!0);for(var u,f=t,c=new s(8);f--;)u=o.times(o),o=a.minus(u.times(c.minus(u.times(c))));return T(o,s.precision=n,s.rounding=r,!0)},S.hyperbolicSine=S.sinh=function(){var t,e,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=V(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=V(o,2,i=i.times(1/H(5,t)),i,!0);for(var s,a=new o(5),u=new o(16),f=new o(20);t--;)s=i.times(i),i=i.times(a.plus(s.times(u.times(s).plus(f))))}return o.precision=e,o.rounding=n,T(i,e,n,!0)},S.hyperbolicTangent=S.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,I(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},S.inverseCosine=S.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?e.isNeg()?R(n,i,o):new n(0):new n(NaN):e.isZero()?R(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=R(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},S.inverseHyperbolicCosine=S.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,d=!1,n=n.times(n).minus(1).sqrt().plus(n),d=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},S.inverseHyperbolicSine=S.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,d=!1,n=n.times(n).plus(1).sqrt().plus(n),d=!0,r.precision=t,r.rounding=e,n.ln())},S.inverseHyperbolicTangent=S.atanh=function(){var t,e,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?T(new o(i),t,e,!0):(o.precision=n=r-i.e,i=I(i.plus(1),new o(1).minus(i),n+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},S.inverseSine=S.asin=function(){var t,e,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==e?0===e?((t=R(o,n+4,r).times(.5)).s=i.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},S.inverseTangent=S.atan=function(){var t,e,n,r,i,o,s,a,u,f=this,c=f.constructor,h=c.precision,l=c.rounding;if(f.isFinite()){if(f.isZero())return new c(f);if(f.abs().eq(1)&&h+4<=_)return(s=R(c,h+4,l).times(.25)).s=f.s,s}else{if(!f.s)return new c(NaN);if(h+4<=_)return(s=R(c,h+4,l).times(.5)).s=f.s,s}for(c.precision=a=h+10,c.rounding=1,t=n=Math.min(28,a/7+2|0);t;--t)f=f.div(f.times(f).plus(1).sqrt().plus(1));for(d=!1,e=Math.ceil(a/7),r=1,u=f.times(f),s=new c(f),i=f;-1!==t;)if(i=i.times(u),o=s.minus(i.div(r+=2)),i=i.times(u),void 0!==(s=o.plus(i.div(r+=2))).d[e])for(t=e;s.d[t]===o.d[t]&&t--;);return n&&(s=s.times(2<this.d.length-2},S.isNaN=function(){return!this.s},S.isNegative=S.isNeg=function(){return this.s<0},S.isPositive=S.isPos=function(){return this.s>0},S.isZero=function(){return!!this.d&&0===this.d[0]},S.lessThan=S.lt=function(t){return this.cmp(t)<0},S.lessThanOrEqualTo=S.lte=function(t){return this.cmp(t)<1},S.logarithm=S.log=function(t){var e,n,r,i,o,s,a,u,f=this.constructor,c=f.precision,h=f.rounding;if(null==t)t=new f(10),e=!0;else{if(n=(t=new f(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new f(NaN);e=t.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new f(n&&!n[0]?-1/0:1!=this.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(d=!1,s=j(this,a=c+5),r=e?N(f,a+10):j(t,a),A((u=I(s,r,a,1)).d,i=c,h))do{if(s=j(this,a+=10),r=e?N(f,a+10):j(t,a),u=I(s,r,a,1),!o){+M(u.d).slice(i+1,i+15)+1==1e14&&(u=T(u,c+1,0));break}}while(A(u.d,i+=10,h));return d=!0,T(u,c,h)},S.minus=S.sub=function(t){var e,n,r,i,o,s,a,u,f,c,h,l,b=this,g=b.constructor;if(t=new g(t),!b.d||!t.d)return b.s&&t.s?b.d?t.s=-t.s:t=new g(t.d||b.s!==t.s?b:NaN):t=new g(NaN),t;if(b.s!=t.s)return t.s=-t.s,b.plus(t);if(f=b.d,l=t.d,a=g.precision,u=g.rounding,!f[0]||!l[0]){if(l[0])t.s=-t.s;else{if(!f[0])return new g(3===u?-0:0);t=new g(b)}return d?T(t,a,u):t}if(n=p(t.e/7),c=p(b.e/7),f=f.slice(),o=c-n){for((h=o<0)?(e=f,o=-o,s=l.length):(e=l,n=c,s=f.length),o>(r=Math.max(Math.ceil(a/7),s)+2)&&(o=r,e.length=1),e.reverse(),r=o;r--;)e.push(0);e.reverse()}else{for((h=(r=f.length)<(s=l.length))&&(s=r),r=0;r0;--r)f[s++]=0;for(r=l.length;r>o;){if(f[--r](s=(o=Math.ceil(a/7))>s?o+1:s+1)&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((s=f.length)-(i=c.length)<0&&(i=s,n=c,c=f,f=n),e=0;i;)e=(f[--i]=f[i]+c[i]+e)/1e7|0,f[i]%=1e7;for(e&&(f.unshift(e),++r),s=f.length;0==f[--s];)f.pop();return t.d=f,t.e=L(f,r),d?T(t,a,u):t},S.precision=S.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(l+t);return n.d?(e=O(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},S.round=function(){var t=this,e=t.constructor;return T(new e(t),t.e+1,e.rounding)},S.sine=S.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return V(t,2,e,e);n=(n=1.4*Math.sqrt(r))>16?16:0|n,e=e.times(1/H(5,n)),e=V(t,2,e,e);for(var i,o=new t(5),s=new t(16),a=new t(20);n--;)i=e.times(e),e=e.times(o.plus(i.times(s.times(i).minus(a))));return e}(r,W(r,n)),r.precision=t,r.rounding=e,T(a>2?n.neg():n,t,e,!0)):new r(NaN)},S.squareRoot=S.sqrt=function(){var t,e,n,r,i,o,s=this,a=s.d,u=s.e,f=s.s,c=s.constructor;if(1!==f||!a||!a[0])return new c(!f||f<0&&(!a||a[0])?NaN:a?s:1/0);for(d=!1,0==(f=Math.sqrt(+s))||f==1/0?(((e=M(a)).length+u)%2==0&&(e+="0"),f=Math.sqrt(e),u=p((u+1)/2)-(u<0||u%2),r=new c(e=f==1/0?"1e"+u:(e=f.toExponential()).slice(0,e.indexOf("e")+1)+u)):r=new c(f.toString()),n=(u=c.precision)+3;;)if(r=(o=r).plus(I(s,o,n+2,1)).times(.5),M(o.d).slice(0,n)===(e=M(r.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(T(r,u+1,1),t=!r.times(r).eq(s));break}if(!i&&(T(o,u+1,0),o.times(o).eq(s))){r=o;break}n+=4,i=1}return d=!0,T(r,u,c.rounding,t)},S.tangent=S.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=I(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,T(2==a||4==a?n.neg():n,t,e,!0)):new r(NaN)},S.times=S.mul=function(t){var e,n,r,i,o,s,a,u,f,c=this,h=c.constructor,l=c.d,b=(t=new h(t)).d;if(t.s*=c.s,!(l&&l[0]&&b&&b[0]))return new h(!t.s||l&&!l[0]&&!b||b&&!b[0]&&!l?NaN:l&&b?0*t.s:t.s/0);for(n=p(c.e/7)+p(t.e/7),(u=l.length)<(f=b.length)&&(o=l,l=b,b=o,s=u,u=f,f=s),o=[],r=s=u+f;r--;)o.push(0);for(r=f;--r>=0;){for(e=0,i=u+r;i>r;)a=o[i]+b[r]*l[i-r-1]+e,o[i--]=a%1e7|0,e=a/1e7|0;o[i]=(o[i]+e)%1e7|0}for(;!o[--s];)o.pop();return e?++n:o.shift(),t.d=o,t.e=L(o,n),d?T(t,h.precision,h.rounding):t},S.toBinary=function(t,e){return Z(this,2,t,e)},S.toDecimalPlaces=S.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(E(t,0,1e9),void 0===e?e=r.rounding:E(e,0,8),T(n,t+n.e+1,e))},S.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=k(r,!0):(E(t,0,1e9),void 0===e?e=i.rounding:E(e,0,8),n=k(r=T(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},S.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=k(i):(E(t,0,1e9),void 0===e?e=o.rounding:E(e,0,8),n=k(r=T(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},S.toFraction=function(t){var e,n,r,i,o,s,a,u,f,c,h,p,g=this,v=g.d,m=g.constructor;if(!v)return new m(g);if(f=n=new m(1),r=u=new m(0),s=(o=(e=new m(r)).e=O(v)-g.e-1)%7,e.d[0]=b(10,s<0?7+s:s),null==t)t=o>0?e:f;else{if(!(a=new m(t)).isInt()||a.lt(f))throw Error(l+a);t=a.gt(e)?o>0?e:f:a}for(d=!1,a=new m(M(v)),c=m.precision,m.precision=o=7*v.length*2;h=I(a,e,0,1,1),1!=(i=n.plus(h.times(r))).cmp(t);)n=r,r=i,i=f,f=u.plus(h.times(i)),u=i,i=e,e=a.minus(h.times(i)),a=i;return i=I(t.minus(n),r,0,1,1),u=u.plus(i.times(f)),n=n.plus(i.times(r)),u.s=f.s=g.s,p=I(f,r,o,1).minus(g).abs().cmp(I(u,n,o,1).minus(g).abs())<1?[f,r]:[u,n],m.precision=c,d=!0,p},S.toHexadecimal=S.toHex=function(t,e){return Z(this,16,t,e)},S.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:E(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(d=!1,n=I(n,t,0,e,1).times(t),d=!0,T(n)):(t.s=n.s,n=t),n},S.toNumber=function(){return+this},S.toOctal=function(t,e){return Z(this,8,t,e)},S.toPower=S.pow=function(t){var e,n,r,i,o,s,a=this,u=a.constructor,f=+(t=new u(t));if(!(a.d&&t.d&&a.d[0]&&t.d[0]))return new u(b(+a,f));if((a=new u(a)).eq(1))return a;if(r=u.precision,o=u.rounding,t.eq(1))return T(a,r,o);if((e=p(t.e/7))>=t.d.length-1&&(n=f<0?-f:f)<=9007199254740991)return i=z(u,a,n,r),t.s<0?new u(1).div(i):T(i,r,o);if((s=a.s)<0){if(eu.maxE+1||e0?s/0:0):(d=!1,u.rounding=a.s=1,n=Math.min(12,(e+"").length),(i=F(t.times(j(a,r+n)),r)).d&&A((i=T(i,r+5,1)).d,r,o)&&(e=r+10,+M((i=T(F(t.times(j(a,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=T(i,r+1,0))),i.s=s,d=!0,u.rounding=o,T(i,r,o))},S.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=k(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(E(t,1,1e9),void 0===e?e=i.rounding:E(e,0,8),n=k(r=T(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},S.toSignificantDigits=S.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(E(t,1,1e9),void 0===e?e=n.rounding:E(e,0,8)),T(new n(this),t,e)},S.toString=function(){var t=this,e=t.constructor,n=k(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},S.truncated=S.trunc=function(){return T(new this.constructor(this),this.e+1,1)},S.valueOf=S.toJSON=function(){var t=this,e=t.constructor,n=k(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var I=function(){function t(t,e,n){var r,i=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+i,t[o]=r%n|0,i=r/n|0;return i&&t.unshift(i),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;)t.shift()}return function(r,i,o,a,u,f){var c,h,d,l,b,g,v,m,y,w,_,S,M,E,A,x,I,k,L,N,R=r.constructor,O=r.s==i.s?1:-1,B=r.d,z=i.d;if(!(B&&B[0]&&z&&z[0]))return new R(r.s&&i.s&&(B?!z||B[0]!=z[0]:z)?B&&0==B[0]||!z?0*O:O/0:NaN);for(f?(b=1,h=r.e-i.e):(f=1e7,b=7,h=p(r.e/b)-p(i.e/b)),L=z.length,I=B.length,w=(y=new R(O)).d=[],d=0;z[d]==(B[d]||0);d++);if(z[d]>(B[d]||0)&&h--,null==o?(E=o=R.precision,a=R.rounding):E=u?o+(r.e-i.e)+1:o,E<0)w.push(1),g=!0;else{if(E=E/b+2|0,d=0,1==L){for(l=0,z=z[0],E++;(d1&&(z=t(z,l,f),B=t(B,l,f),L=z.length,I=B.length),x=L,S=(_=B.slice(0,L)).length;S=f/2&&++k;do{l=0,(c=e(z,_,L,S))<0?(M=_[0],L!=S&&(M=M*f+(_[1]||0)),(l=M/k|0)>1?(l>=f&&(l=f-1),1==(c=e(v=t(z,l,f),_,m=v.length,S=_.length))&&(l--,n(v,L=10;l/=10)d++;y.e=d+h*b-1,T(y,u?o+y.e+1:o,a,g)}return y}}();function T(t,e,n,r){var i,o,s,a,u,f,c,h,l,p=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(i=1,a=h[0];a>=10;a/=10)i++;if((o=e-i)<0)o+=7,s=e,u=(c=h[l=0])/b(10,i-s-1)%10|0;else if((l=Math.ceil((o+1)/7))>=(a=h.length)){if(!r)break t;for(;a++<=l;)h.push(0);c=u=0,i=1,s=(o%=7)-7+1}else{for(c=a=h[l],i=1;a>=10;a/=10)i++;u=(s=(o%=7)-7+i)<0?0:c/b(10,i-s-1)%10|0}if(r=r||e<0||void 0!==h[l+1]||(s<0?c:c%b(10,i-s-1)),f=n<4?(u||r)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(o>0?s>0?c/b(10,i-s):0:h[l-1])%10&1||n==(t.s<0?8:7)),e<1||!h[0])return h.length=0,f?(e-=t.e+1,h[0]=b(10,(7-e%7)%7),t.e=-e||0):h[0]=t.e=0,t;if(0==o?(h.length=l,a=1,l--):(h.length=l+1,a=b(10,7-o),h[l]=s>0?(c/b(10,i-s)%b(10,s)|0)*a:0),f)for(;;){if(0==l){for(o=1,s=h[0];s>=10;s/=10)o++;for(s=h[0]+=a,a=1;s>=10;s/=10)a++;o!=a&&(t.e++,1e7==h[0]&&(h[0]=1));break}if(h[l]+=a,1e7!=h[l])break;h[l--]=0,a=1}for(o=h.length;0===h[--o];)h.pop()}return d&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e0?o=o.charAt(0)+"."+o.slice(1)+B(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+B(-i-1)+o,n&&(r=n-s)>0&&(o+=B(r))):i>=s?(o+=B(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+B(r))):((r=i+1)0&&(i+1===s&&(o+="."),o+=B(r))),o}function L(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function N(t,e,n){if(e>w)throw d=!0,n&&(t.precision=n),Error("[DecimalError] Precision limit exceeded");return T(new t(f),e,1,!0)}function R(t,e,n){if(e>_)throw Error("[DecimalError] Precision limit exceeded");return T(new t(c),e,n,!0)}function O(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function B(t){for(var e="";t--;)e+="0";return e}function z(t,e,n,r){var i,o=new t(1),s=Math.ceil(r/7+4);for(d=!1;;){if(n%2&&Y((o=o.times(e)).d,s)&&(i=!0),0===(n=p(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}Y((e=e.times(e)).d,s)}return d=!0,o}function P(t){return 1&t.d[t.d.length-1]}function U(t,e,n){for(var r,i=new t(e[0]),o=0;++o17)return new l(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(d=!1,u=g):u=e,a=new l(.03125);t.e>-2;)t=t.times(a),h+=5;for(u+=r=Math.log(b(2,h))/Math.LN10*2+5|0,n=o=s=new l(1),l.precision=u;;){if(o=T(o.times(t),u,1),n=n.times(++c),M((a=s.plus(I(o,n,u,1))).d).slice(0,u)===M(s.d).slice(0,u)){for(i=h;i--;)s=T(s.times(s),u,1);if(null!=e)return l.precision=g,s;if(!(f<3&&A(s.d,u-r,p,f)))return T(s,l.precision=g,p,d=!0);l.precision=u+=10,n=o=a=new l(1),c=0,f++}s=a}}function j(t,e){var n,r,i,o,s,a,u,f,c,h,l,p=1,b=t,g=b.d,v=b.constructor,m=v.rounding,y=v.precision;if(b.s<0||!g||!g[0]||!b.e&&1==g[0]&&1==g.length)return new v(g&&!g[0]?-1/0:1!=b.s?NaN:g?0:b);if(null==e?(d=!1,c=y):c=e,v.precision=c+=10,r=(n=M(g)).charAt(0),!(Math.abs(o=b.e)<15e14))return f=N(v,c+2,y).times(o+""),b=j(new v(r+"."+n.slice(1)),c-10).plus(f),v.precision=y,null==e?T(b,y,m,d=!0):b;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=M((b=b.times(t)).d)).charAt(0),p++;for(o=b.e,r>1?(b=new v("0."+n),o++):b=new v(r+"."+n.slice(1)),h=b,u=s=b=I(b.minus(1),b.plus(1),c,1),l=T(b.times(b),c,1),i=3;;){if(s=T(s.times(l),c,1),M((f=u.plus(I(s,new v(i),c,1))).d).slice(0,c)===M(u.d).slice(0,c)){if(u=u.times(2),0!==o&&(u=u.plus(N(v,c+2,y).times(o+""))),u=I(u,new v(p),c,1),null!=e)return v.precision=y,u;if(!A(u.d,c-10,m,a))return T(u,v.precision=y,m,d=!0);v.precision=c+=10,f=s=b=I(h.minus(1),h.plus(1),c,1),l=T(b.times(b),c,1),i=a=1}u=f,i+=2}}function C(t){return String(t.s*t.s/0)}function D(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%7,n<0&&(r+=7),rt.constructor.maxE?(t.d=null,t.e=NaN):t.e0?(f=+e.slice(s+1),e=e.substring(2,s)):e=e.slice(2),a=(s=e.indexOf("."))>=0,r=t.constructor,a&&(s=(u=(e=e.replace(".","")).length)-s,i=z(r,new r(n),s,2*s)),s=h=(c=x(e,n,1e7)).length-1;0===c[s];--s)c.pop();return s<0?new r(0*t.s):(t.e=L(c,h),t.d=c,d=!1,a&&(t=I(t,i,4*u)),f&&(t=t.times(Math.abs(f)<54?b(2,f):o.pow(2,f))),d=!0,t)}function V(t,e,n,r,i){var o,s,a,u,f=t.precision,c=Math.ceil(f/7);for(d=!1,u=n.times(n),a=new t(r);;){if(s=I(a.times(u),new t(e++*e++),f,1),a=i?r.plus(s):r.minus(s),r=I(s.times(u),new t(e++*e++),f,1),void 0!==(s=a.plus(r)).d[c]){for(o=c;s.d[o]===a.d[o]&&o--;);if(-1==o)break}o=a,a=r,r=s,s=o}return d=!0,s.d.length=c+1,s}function H(t,e){for(var n=t;--e;)n*=t;return n}function W(t,e){var n,r=e.s<0,i=R(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return a=r?4:1,e;if((n=e.divToInt(i)).isZero())a=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return a=P(n)?r?2:3:r?4:1,e;a=P(n)?r?1:4:r?3:2}return e.minus(i).abs()}function Z(t,e,n,r){var i,o,a,f,c,h,d,l,p,b=t.constructor,g=void 0!==n;if(g?(E(n,1,1e9),void 0===r?r=b.rounding:E(r,0,8)):(n=b.precision,r=b.rounding),t.isFinite()){for(g?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(a=(d=k(t)).indexOf("."))>=0&&(d=d.replace(".",""),(p=new b(1)).e=d.length-a,p.d=x(k(p),10,i),p.e=p.d.length),o=c=(l=x(d,10,i)).length;0==l[--c];)l.pop();if(l[0]){if(a<0?o--:((t=new b(t)).d=l,t.e=o,l=(t=I(t,p,n,r,0,i)).d,o=t.e,h=s),a=l[n],f=i/2,h=h||void 0!==l[n+1],h=r<4?(void 0!==a||h)&&(0===r||r===(t.s<0?3:2)):a>f||a===f&&(4===r||h||6===r&&1&l[n-1]||r===(t.s<0?8:7)),l.length=n,h)for(;++l[--n]>i-1;)l[n]=0,n||(++o,l.unshift(1));for(c=l.length;!l[c-1];--c);for(a=0,d="";a1)if(16==e||8==e){for(a=16==e?4:3,--c;c%a;c++)d+="0";for(c=(l=x(d,i,e)).length;!l[c-1];--c);for(a=1,d="1.";ac)for(o-=c;o--;)d+="0";else oe)return t.length=e,!0}function J(t){return new this(t).abs()}function K(t){return new this(t).acos()}function $(t){return new this(t).acosh()}function X(t,e){return new this(t).plus(e)}function G(t){return new this(t).asin()}function Q(t){return new this(t).asinh()}function tt(t){return new this(t).atan()}function et(t){return new this(t).atanh()}function nt(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,o=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?R(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=R(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(I(t,e,o,1)),e=R(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(I(t,e,o,1)):(n=R(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function rt(t){return new this(t).cbrt()}function it(t){return T(t=new this(t),t.e+1,2)}function ot(t){if(!t||"object"!=typeof t)throw Error("[DecimalError] Object expected");var e,n,r,i=!0===t.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(e=0;e=o[e+1]&&r<=o[e+2]))throw Error(l+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=h[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(l+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");this[n]=!0}else this[n]=!1}return this}function st(t){return new this(t).cos()}function at(t){return new this(t).cosh()}function ut(t,e){return new this(t).div(e)}function ft(t){return new this(t).exp()}function ct(t){return T(t=new this(t),t.e+1,3)}function ht(){var t,e,n=new this(0);for(d=!1,t=0;t=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:a[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");for(e=crypto.randomBytes(r*=4);o=214e7?crypto.randomBytes(4).copy(e,o):(a.push(i%1e7),o+=4);o=r/4}else for(;o=10;i/=10)r++;r<7&&(n-=7-r)}return s.e=n,s.d=a,s}function Mt(t){return T(t=new this(t),t.e+1,this.rounding)}function Et(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function At(t){return new this(t).sin()}function xt(t){return new this(t).sinh()}function It(t){return new this(t).sqrt()}function Tt(t,e){return new this(t).sub(e)}function kt(t){return new this(t).tan()}function Lt(t){return new this(t).tanh()}function Nt(t){return T(t=new this(t),t.e+1,1)}(o=function t(e){var n,r,i;function o(t){var e,n,r,i=this;if(!(i instanceof o))return new o(t);if(i.constructor=o,t instanceof o)return i.s=t.s,void(d?!t.d||t.e>o.maxE?(i.e=NaN,i.d=null):t.e=10;n/=10)e++;return void(d?e>o.maxE?(i.e=NaN,i.d=null):e0&&void 0!==arguments[0]?arguments[0]:0,e=void 0===t?"undefined":r(t);if("number"===e)i(t>=0),this._bytes=new Uint8Array(8),this._bytes.set(c(t,4),4);else if(t instanceof o)this._bytes=f(t.toArray("be",8),Uint8Array),this._toBN=t;else{if("string"===e&&!d.test(t))throw new Error(t+" is not a valid UInt64 hex string");this._bytes=f(t,Uint8Array)}i(8===this._bytes.length)},toJSON:function(){return u(this._bytes)},valueOf:function(){return this.toBN()},cached:{toBN:function(){return new o(this._bytes)}},toBytes:function(){return this._bytes}});t.exports={UInt64:l}},function(t,e,n){"use strict";var r=n(0)({inherits:n(36).Hash,statics:{width:32,init:function(){this.ZERO_256=new this(new Uint8Array(this.width))}}});t.exports={Hash256:r}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(12),o=n(0),s=n(15).Field,a=n(37).BinarySerializer,u=s.ObjectEndMarker,f=o({mixins:n(10).SerializedType,statics:{fromParser:function(t,e){for(var n="number"==typeof e?t.pos()+e:null,r=new this;!t.end(n);){var i=t.readField();if(i===u)break;r[i]=t.readFieldValue(i)}return r},from:function(t){if(t instanceof this)return t;if("object"===(void 0===t?"undefined":r(t)))return i.transform(t,(function(t,e,n){var r=s[n];r?t[r]=r.associatedType.from(e):t[n]=e}),new this);throw new Error(t+" is unsupported")}},fieldKeys:function(){return Object.keys(this).map((function(t){return s[t]})).filter(Boolean)},toJSON:function(){return i.transform(this,(function(t,e,n){t[n]=e&&e.toJSON?e.toJSON():e}),{})},toBytesSink:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){return!0},r=new a(t),o=this.fieldKeys(),s=i.sortBy(o,"ordinal");s.filter(n).forEach((function(t){var n=e[t];t.isSerialized&&r.writeFieldAndValue(t,n)}))}});t.exports={STObject:f}},function(t,e,n){"use strict";var r=n(11),i=n(16),o=n(21).HashPrefix,s=n(106).BinaryParser,a=n(37),u=a.BinarySerializer,f=a.BytesList,c=n(3),h=c.bytesToHex,d=c.slice,l=c.parseBytes,p=n(25),b=p.sha512Half,g=p.transactionID,v=function(t){return new s(t)},m=function(t){return t.readType(i.STObject).toJSON()};function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.prefix,r=e.suffix,o=e.signingFieldsOnly,s=void 0!==o&&o,a=new f;n&&a.put(n);var u=s?function(t){return t.isSigningField}:void 0;return i.STObject.from(t).toBytesSink(a,u),r&&a.put(r),a.toBytes()}t.exports={BinaryParser:s,BinarySerializer:u,BytesList:f,makeParser:v,serializeObject:y,readJSON:m,bytesToHex:h,parseBytes:l,multiSigningData:function(t,e){return y(t,{prefix:o.transactionMultiSig,suffix:i.AccountID.from(e).toBytes(),signingFieldsOnly:!0})},signingData:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.transactionSig;return y(t,{prefix:e,signingFieldsOnly:!0})},signingClaimData:function(t){var e=o.paymentChannelClaim,n=i.Hash256.from(t.channel).toBytes(),s=new i.UInt64(new r(t.amount)).toBytes(),a=new f;return a.put(e),a.put(n),a.put(s),a.toBytes()},binaryToJSON:function(t){return m(v(t))},sha512Half:b,transactionID:g,slice:d}},function(t,e,n){"use strict";var r=n(2),i=n(0),o=n(16).Hash256,s=n(21).HashPrefix,a=n(25).Sha512Half,u=i({virtuals:{hashPrefix:function(){},isLeaf:function(){},isInner:function(){}},cached:{hash:function(){var t=a.put(this.hashPrefix());return this.toBytesSink(t),t.finish()}}}),f=i({inherits:u,ShaMapLeaf:function(t,e){u.call(this),this.index=t,this.item=e},isLeaf:function(){return!0},isInner:function(){return!1},hashPrefix:function(){return this.item.hashPrefix()},toBytesSink:function(t){this.item.toBytesSink(t),this.index.toBytesSink(t)}}),c=u.prototype,h=i({inherits:u,ShaMapInner:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;u.call(this),this.depth=t,this.slotBits=0,this.branches=Array(16)},isInner:function(){return!0},isLeaf:function(){return!1},hashPrefix:function(){return s.innerNode},setBranch:function(t,e){this.slotBits=this.slotBits|1<>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,n){"use strict";var r=n(7),i=n(22),o=n(57),s=n(14),a=r.sum32,u=r.sum32_4,f=r.sum32_5,c=o.ch32,h=o.maj32,d=o.s0_256,l=o.s1_256,p=o.g0_256,b=o.g1_256,g=i.BlockHash,v=[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 m(){if(!(this instanceof m))return new m;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(m,g),t.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r>8,s=255&i;o?n.push(o,s):n.push(s)}return n},r.zero2=i,r.toHex=o,r.encode=function(t,e){return"hex"===e?o(t):t}},function(t,e,n){"use strict";var r=e;r.base=n(26),r.short=n(119),r.mont=n(120),r.edwards=n(121)},function(t,e,n){(function(t){const e=n(66),r=n(29),o=n(109),s="badge badge-danger";var a=0;function u(t,e){let n;return n=e?$("
  • ").appendTo("#log").append(t):$("
  • ").text(t+" ").appendTo("#log"),n.resolve=function(t){return $("").html(t).appendTo(n)},n}function f(t){for(x in t)log=u(x+": "+t[x])}function c(){const n=$("#manifest").val().toUpperCase();try{var c=e.decode(n)}catch(t){return void u("Error decoding manifest").resolve(t).addClass(s)}let d=c.Sequence,l=c.PublicKey,p=new t(l,"hex").toJSON().data,b=r.encodeNodePublic(p),g=c.SigningPubKey,v=new t(g,"hex").toJSON().data,m=r.encodeNodePublic(v);try{var y=function(t){for(var e=t.toString(),n="",r=0;rCheck if the xrp-ledger.toml file is actually hosted in the /.well-known/ location at the domain in your manifest. Check your server\'s HTTPS settings and certificate, and make sure your server provides the required CORS header.

    ')}})}function h(t){for(var e=[],n=0,r=t.length;n{$("#manifest-entry").submit(d)})}).call(this,n(5).Buffer)},function(t,e,n){"use strict";e.byteLength=function(t){var e=f(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=f(t),s=r[0],a=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),c=0,h=a>0?s-4:s;for(n=0;n>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===a&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===a&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;sa?a:s+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,s=[],a=e;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<>1,c=-7,h=n?i-1:0,d=n?-1:1,l=t[e+h];for(h+=d,o=l&(1<<-c)-1,l>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+t[e+h],h+=d,c-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(l?-1:1);s+=Math.pow(2,r),o-=f}return(l?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,f=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:o-1,p=r?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+l]=255&a,l+=p,a/=256,i-=8);for(s=s<0;t[n+l]=255&s,l+=p,s/=256,f-=8);t[n+l-p]|=128*b}},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(2),o=n(71),s=o.quality,a=o.binary,u=a.bytesToHex,f=a.signingData,c=a.signingClaimData,h=a.multiSigningData,d=a.binaryToJSON,l=a.serializeObject,p=a.BinaryParser;t.exports={decode:function(t){return i("string"==typeof t,"binary must be a hex string"),d(t)},encode:function(t){return i("object"===(void 0===t?"undefined":r(t))),u(l(t))},encodeForSigning:function(t){return i("object"===(void 0===t?"undefined":r(t))),u(f(t))},encodeForSigningClaim:function(t){return i("object"===(void 0===t?"undefined":r(t))),u(c(t))},encodeForMultisigning:function(t,e){return i("object"===(void 0===t?"undefined":r(t))),i.equal(t.SigningPubKey,""),u(h(t,e))},encodeQuality:function(t){return i("string"==typeof t),u(s.encode(t))},decodeQuality:function(t){return i("string"==typeof t),s.decode(t).toString()},decodeLedgerData:function(t){i("string"==typeof t,"binary must be a hex string");var e=new p(t);return{ledger_index:e.readUInt32(),total_coins:e.readType(o.UInt64).valueOf().toString(),parent_hash:e.readType(o.Hash256).toHex(),transaction_hash:e.readType(o.Hash256).toHex(),account_hash:e.readType(o.Hash256).toHex(),parent_close_time:e.readUInt32(),close_time:e.readUInt32(),close_time_resolution:e.readUInt8(),close_flags:e.readUInt8()}}}},function(t,e,n){"use strict"; /* object-assign (c) Sindre Sorhus diff --git a/assets/js/domain-verifier-checker.js b/assets/js/domain-verifier-checker.js index de6ef43584..94dbbbf726 100644 --- a/assets/js/domain-verifier-checker.js +++ b/assets/js/domain-verifier-checker.js @@ -1,4 +1,4 @@ -//Browserify was used to create domain-verifier-bundle.js so that we can use 'require' in the browser +//Webpack was used to create domain-verifier-bundle.js so that we can use 'require' in the browser const codec = require("ripple-binary-codec"); const addressCodec = require("ripple-address-codec"); diff --git a/tool/template-validator-domain-verifier.html b/tool/template-validator-domain-verifier.html index 2642fb10f0..0428983dc0 100644 --- a/tool/template-validator-domain-verifier.html +++ b/tool/template-validator-domain-verifier.html @@ -12,7 +12,7 @@

    + pattern="[0-9A-Fa-f]+">