>>0?1:0)|0,this._h=this._h+E+(this._hl>>>0>>0?1:0)|0},n.prototype._hash=function(){function t(t,e,n){r.writeInt32BE(t,n),r.writeInt32BE(e,n+4)}var r=new e(64);return t(this._a,this._al,0),t(this._b,this._bl,8),t(this._c,this._cl,16),t(this._d,this._dl,24),t(this._e,this._el,32),t(this._f,this._fl,40),t(this._g,this._gl,48),t(this._h,this._hl,56),r},t.exports=n}).call(e,r(239).Buffer)},function(t,e,r){(function(t){"use strict";function n(t,e){return i.sign(t,e)}function o(t,e,r){return i.verify(t,e,r)}e.sign=n,e.verify=o,Object.defineProperty(e,"__esModule",{value:!0});var i={};"undefined"==typeof window?!function(){var e=r(316);i.sign=function(r,n){return r=new t(r),e.Sign(r,n)},i.verify=function(r,n,o){r=new t(r);try{return e.Verify(r,n,o)}catch(i){return!1}}}():!function(){var e=r(322);i.sign=function(r,n){r=new t(r),r=new Uint8Array(r.toJSON().data),n=new Uint8Array(n.toJSON().data);var o=e.sign.detached(r,n);return new t(o)},i.verify=function(r,n,o){return r=new t(r),r=new Uint8Array(r.toJSON().data),n=new Uint8Array(n.toJSON().data),o=new Uint8Array(o.toJSON().data),e.sign.detached.verify(r,n,o)}}()}).call(e,r(239).Buffer)},function(t,e,r){t.exports=r(317)("ed25519")},function(t,e,r){(function(n,o){function i(t){"string"==typeof t?t={bindings:t}:t||(t={}),t.__proto__=l,t.module_root||(t.module_root=e.getRoot(e.getFileName())),".node"!=u.extname(t.bindings)&&(t.bindings+=".node");for(var n,o,i,s=[],c=0,f=t.try.length;f>c;c++){n=a.apply(null,t.try[c].map(function(e){return t[e]||e})),s.push(n);try{return o=t.path?r(319).resolve(n):r(319)(n),t.path||(o.path=n),o}catch(h){if(!/not find/i.test(h.message))throw h}}throw i=new Error("Could not locate the bindings file. Tried:\n"+s.map(function(e){return t.arrow+e}).join("\n")),i.tries=s,i}var s=r(!function(){var t=new Error('Cannot find module "fs"');throw t.code="MODULE_NOT_FOUND",t}()),u=r(318),a=u.join,c=u.dirname,f=s.existsSync||u.existsSync,l={arrow:n.env.NODE_BINDINGS_ARROW||" → ",compiled:n.env.NODE_BINDINGS_COMPILED_DIR||"compiled",platform:n.platform,arch:n.arch,version:n.versions.node,bindings:"bindings.node","try":[["module_root","build","bindings"],["module_root","build","Debug","bindings"],["module_root","build","Release","bindings"],["module_root","out","Debug","bindings"],["module_root","Debug","bindings"],["module_root","out","Release","bindings"],["module_root","Release","bindings"],["module_root","build","default","bindings"],["module_root","compiled","version","platform","arch","bindings"]]};t.exports=e=i,e.getFileName=function(t){var e,r=Error.prepareStackTrace,n=Error.stackTraceLimit,i={};return Error.stackTraceLimit=10,Error.prepareStackTrace=function(r,n){for(var i=0,s=n.length;s>i;i++)if(e=n[i].getFileName(),e!==o){if(!t)return;if(e!==t)return}},Error.captureStackTrace(i),i.stack,Error.prepareStackTrace=r,Error.stackTraceLimit=n,e},e.getRoot=function(t){for(var e,r=c(t);;){if("."===r&&(r=n.cwd()),f(a(r,"package.json"))||f(a(r,"node_modules")))return r;if(e===r)throw new Error('Could not find module root given file: "'+t+'". Do you have a `package.json` file? ');e=r,r=a(r,"..")}}}).call(e,r(189),"/index.js")},function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var o=t[n];"."===o?t.splice(n,1):".."===o?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n=-1&&!o;i--){var s=i>=0?arguments[i]:t.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(e=s+"/"+e,o="/"===s.charAt(0))}return e=r(n(e.split("/"),function(t){return!!t}),!o).join("/"),(o?"/":"")+e||"."},e.normalize=function(t){var o=e.isAbsolute(t),i="/"===s(t,-1);return t=r(n(t.split("/"),function(t){return!!t}),!o).join("/"),t||o||(t="."),t&&i&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(n(t,function(t){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e=0&&""===t[r];r--);return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var o=n(t.split("/")),i=n(r.split("/")),s=Math.min(o.length,i.length),u=s,a=0;s>a;a++)if(o[a]!==i[a]){u=a;break}for(var c=[],a=u;ae&&(e=t.length+e),t.substr(e,r)}}).call(e,r(189))},function(t,e,r){function n(t){return r(o(t))}function o(t){return i[t]||function(){throw new Error("Cannot find module '"+t+"'.")}()}var i={"./bindings":317,"./bindings.js":317};n.keys=function(){return Object.keys(i)},n.resolve=o,t.exports=n,n.id=319},,,function(t,e,r){(function(e){!function(t){"use strict";function n(t,e,r,n){t[e]=r>>24&255,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r,t[e+4]=n>>24&255,t[e+5]=n>>16&255,t[e+6]=n>>8&255,t[e+7]=255&n}function o(t,e,r,n,o){var i,s=0;for(i=0;o>i;i++)s|=t[e+i]^r[n+i];return(1&s-1>>>8)-1}function i(t,e,r,n){return o(t,e,r,n,16)}function s(t,e,r,n){return o(t,e,r,n,32)}function u(t,e,r,n){for(var o,i=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,a=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,d=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,v=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,g=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,m=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,_=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,b=i,E=s,A=u,k=a,O=c,x=f,S=l,j=h,T=p,P=d,R=v,I=g,C=y,M=m,L=_,N=w,U=0;20>U;U+=2)o=b+C|0,O^=o<<7|o>>>25,o=O+b|0,T^=o<<9|o>>>23,o=T+O|0,C^=o<<13|o>>>19,o=C+T|0,b^=o<<18|o>>>14,o=x+E|0,P^=o<<7|o>>>25,o=P+x|0,M^=o<<9|o>>>23,o=M+P|0,E^=o<<13|o>>>19,o=E+M|0,x^=o<<18|o>>>14,o=R+S|0,L^=o<<7|o>>>25,o=L+R|0,A^=o<<9|o>>>23,o=A+L|0,S^=o<<13|o>>>19,o=S+A|0,R^=o<<18|o>>>14,o=N+I|0,k^=o<<7|o>>>25,o=k+N|0,j^=o<<9|o>>>23,o=j+k|0,I^=o<<13|o>>>19,o=I+j|0,N^=o<<18|o>>>14,o=b+k|0,E^=o<<7|o>>>25,o=E+b|0,A^=o<<9|o>>>23,o=A+E|0,k^=o<<13|o>>>19,o=k+A|0,b^=o<<18|o>>>14,o=x+O|0,S^=o<<7|o>>>25,o=S+x|0,j^=o<<9|o>>>23,o=j+S|0,O^=o<<13|o>>>19,o=O+j|0,x^=o<<18|o>>>14,o=R+P|0,I^=o<<7|o>>>25,o=I+R|0,T^=o<<9|o>>>23,o=T+I|0,P^=o<<13|o>>>19,o=P+T|0,R^=o<<18|o>>>14,o=N+L|0,C^=o<<7|o>>>25,o=C+N|0,M^=o<<9|o>>>23,o=M+C|0,L^=o<<13|o>>>19,o=L+M|0,N^=o<<18|o>>>14;
b=b+i|0,E=E+s|0,A=A+u|0,k=k+a|0,O=O+c|0,x=x+f|0,S=S+l|0,j=j+h|0,T=T+p|0,P=P+d|0,R=R+v|0,I=I+g|0,C=C+y|0,M=M+m|0,L=L+_|0,N=N+w|0,t[0]=b>>>0&255,t[1]=b>>>8&255,t[2]=b>>>16&255,t[3]=b>>>24&255,t[4]=E>>>0&255,t[5]=E>>>8&255,t[6]=E>>>16&255,t[7]=E>>>24&255,t[8]=A>>>0&255,t[9]=A>>>8&255,t[10]=A>>>16&255,t[11]=A>>>24&255,t[12]=k>>>0&255,t[13]=k>>>8&255,t[14]=k>>>16&255,t[15]=k>>>24&255,t[16]=O>>>0&255,t[17]=O>>>8&255,t[18]=O>>>16&255,t[19]=O>>>24&255,t[20]=x>>>0&255,t[21]=x>>>8&255,t[22]=x>>>16&255,t[23]=x>>>24&255,t[24]=S>>>0&255,t[25]=S>>>8&255,t[26]=S>>>16&255,t[27]=S>>>24&255,t[28]=j>>>0&255,t[29]=j>>>8&255,t[30]=j>>>16&255,t[31]=j>>>24&255,t[32]=T>>>0&255,t[33]=T>>>8&255,t[34]=T>>>16&255,t[35]=T>>>24&255,t[36]=P>>>0&255,t[37]=P>>>8&255,t[38]=P>>>16&255,t[39]=P>>>24&255,t[40]=R>>>0&255,t[41]=R>>>8&255,t[42]=R>>>16&255,t[43]=R>>>24&255,t[44]=I>>>0&255,t[45]=I>>>8&255,t[46]=I>>>16&255,t[47]=I>>>24&255,t[48]=C>>>0&255,t[49]=C>>>8&255,t[50]=C>>>16&255,t[51]=C>>>24&255,t[52]=M>>>0&255,t[53]=M>>>8&255,t[54]=M>>>16&255,t[55]=M>>>24&255,t[56]=L>>>0&255,t[57]=L>>>8&255,t[58]=L>>>16&255,t[59]=L>>>24&255,t[60]=N>>>0&255,t[61]=N>>>8&255,t[62]=N>>>16&255,t[63]=N>>>24&255}function a(t,e,r,n){for(var o,i=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,a=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,c=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,f=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,h=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,p=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,d=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,v=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,g=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,y=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,m=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,_=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,w=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,b=i,E=s,A=u,k=a,O=c,x=f,S=l,j=h,T=p,P=d,R=v,I=g,C=y,M=m,L=_,N=w,U=0;20>U;U+=2)o=b+C|0,O^=o<<7|o>>>25,o=O+b|0,T^=o<<9|o>>>23,o=T+O|0,C^=o<<13|o>>>19,o=C+T|0,b^=o<<18|o>>>14,o=x+E|0,P^=o<<7|o>>>25,o=P+x|0,M^=o<<9|o>>>23,o=M+P|0,E^=o<<13|o>>>19,o=E+M|0,x^=o<<18|o>>>14,o=R+S|0,L^=o<<7|o>>>25,o=L+R|0,A^=o<<9|o>>>23,o=A+L|0,S^=o<<13|o>>>19,o=S+A|0,R^=o<<18|o>>>14,o=N+I|0,k^=o<<7|o>>>25,o=k+N|0,j^=o<<9|o>>>23,o=j+k|0,I^=o<<13|o>>>19,o=I+j|0,N^=o<<18|o>>>14,o=b+k|0,E^=o<<7|o>>>25,o=E+b|0,A^=o<<9|o>>>23,o=A+E|0,k^=o<<13|o>>>19,o=k+A|0,b^=o<<18|o>>>14,o=x+O|0,S^=o<<7|o>>>25,o=S+x|0,j^=o<<9|o>>>23,o=j+S|0,O^=o<<13|o>>>19,o=O+j|0,x^=o<<18|o>>>14,o=R+P|0,I^=o<<7|o>>>25,o=I+R|0,T^=o<<9|o>>>23,o=T+I|0,P^=o<<13|o>>>19,o=P+T|0,R^=o<<18|o>>>14,o=N+L|0,C^=o<<7|o>>>25,o=C+N|0,M^=o<<9|o>>>23,o=M+C|0,L^=o<<13|o>>>19,o=L+M|0,N^=o<<18|o>>>14;t[0]=b>>>0&255,t[1]=b>>>8&255,t[2]=b>>>16&255,t[3]=b>>>24&255,t[4]=x>>>0&255,t[5]=x>>>8&255,t[6]=x>>>16&255,t[7]=x>>>24&255,t[8]=R>>>0&255,t[9]=R>>>8&255,t[10]=R>>>16&255,t[11]=R>>>24&255,t[12]=N>>>0&255,t[13]=N>>>8&255,t[14]=N>>>16&255,t[15]=N>>>24&255,t[16]=S>>>0&255,t[17]=S>>>8&255,t[18]=S>>>16&255,t[19]=S>>>24&255,t[20]=j>>>0&255,t[21]=j>>>8&255,t[22]=j>>>16&255,t[23]=j>>>24&255,t[24]=T>>>0&255,t[25]=T>>>8&255,t[26]=T>>>16&255,t[27]=T>>>24&255,t[28]=P>>>0&255,t[29]=P>>>8&255,t[30]=P>>>16&255,t[31]=P>>>24&255}function c(t,e,r,n){u(t,e,r,n)}function f(t,e,r,n){a(t,e,r,n)}function l(t,e,r,n,o,i,s){var u,a,f=new Uint8Array(16),l=new Uint8Array(64);for(a=0;16>a;a++)f[a]=0;for(a=0;8>a;a++)f[a]=i[a];for(;o>=64;){for(c(l,f,s,pe),a=0;64>a;a++)t[e+a]=r[n+a]^l[a];for(u=1,a=8;16>a;a++)u=u+(255&f[a])|0,f[a]=255&u,u>>>=8;o-=64,e+=64,n+=64}if(o>0)for(c(l,f,s,pe),a=0;o>a;a++)t[e+a]=r[n+a]^l[a];return 0}function h(t,e,r,n,o){var i,s,u=new Uint8Array(16),a=new Uint8Array(64);for(s=0;16>s;s++)u[s]=0;for(s=0;8>s;s++)u[s]=n[s];for(;r>=64;){for(c(a,u,o,pe),s=0;64>s;s++)t[e+s]=a[s];for(i=1,s=8;16>s;s++)i=i+(255&u[s])|0,u[s]=255&i,i>>>=8;r-=64,e+=64}if(r>0)for(c(a,u,o,pe),s=0;r>s;s++)t[e+s]=a[s];return 0}function p(t,e,r,n,o){var i=new Uint8Array(32);f(i,n,o,pe);for(var s=new Uint8Array(8),u=0;8>u;u++)s[u]=n[u+16];return h(t,e,r,s,i)}function d(t,e,r,n,o,i,s){var u=new Uint8Array(32);f(u,i,s,pe);for(var a=new Uint8Array(8),c=0;8>c;c++)a[c]=i[c+16];return l(t,e,r,n,o,a,u)}function v(t,e,r,n,o,i){var s=new de(i);return s.update(r,n,o),s.finish(t,e),0}function g(t,e,r,n,o,s){var u=new Uint8Array(16);return v(u,0,r,n,o,s),i(t,e,u,0)}function y(t,e,r,n,o){var i;if(32>r)return-1;for(d(t,0,e,0,r,n,o),v(t,16,t,32,r-32,t),i=0;16>i;i++)t[i]=0;return 0}function m(t,e,r,n,o){var i,s=new Uint8Array(32);if(32>r)return-1;if(p(s,0,32,n,o),0!==g(e,16,e,32,r-32,s))return-1;for(d(t,0,e,0,r,n,o),i=0;32>i;i++)t[i]=0;return 0}function _(t,e){var r;for(r=0;16>r;r++)t[r]=0|e[r]}function w(t){var e,r,n=1;for(e=0;16>e;e++)r=t[e]+n+65535,n=Math.floor(r/65536),t[e]=r-65536*n;t[0]+=n-1+37*(n-1)}function b(t,e,r){for(var n,o=~(r-1),i=0;16>i;i++)n=o&(t[i]^e[i]),t[i]^=n,e[i]^=n}function E(t,e){var r,n,o,i=ee(),s=ee();for(r=0;16>r;r++)s[r]=e[r];for(w(s),w(s),w(s),n=0;2>n;n++){for(i[0]=s[0]-65517,r=1;15>r;r++)i[r]=s[r]-65535-(i[r-1]>>16&1),i[r-1]&=65535;i[15]=s[15]-32767-(i[14]>>16&1),o=i[15]>>16&1,i[14]&=65535,b(s,i,1-o)}for(r=0;16>r;r++)t[2*r]=255&s[r],t[2*r+1]=s[r]>>8}function A(t,e){var r=new Uint8Array(32),n=new Uint8Array(32);return E(r,t),E(n,e),s(r,0,n,0)}function k(t){var e=new Uint8Array(32);return E(e,t),1&e[0]}function O(t,e){var r;for(r=0;16>r;r++)t[r]=e[2*r]+(e[2*r+1]<<8);t[15]&=32767}function x(t,e,r){for(var n=0;16>n;n++)t[n]=e[n]+r[n]}function S(t,e,r){for(var n=0;16>n;n++)t[n]=e[n]-r[n]}function j(t,e,r){var n,o,i=0,s=0,u=0,a=0,c=0,f=0,l=0,h=0,p=0,d=0,v=0,g=0,y=0,m=0,_=0,w=0,b=0,E=0,A=0,k=0,O=0,x=0,S=0,j=0,T=0,P=0,R=0,I=0,C=0,M=0,L=0,N=r[0],U=r[1],F=r[2],B=r[3],D=r[4],z=r[5],q=r[6],H=r[7],V=r[8],Q=r[9],X=r[10],W=r[11],$=r[12],K=r[13],Y=r[14],G=r[15];n=e[0],i+=n*N,s+=n*U,u+=n*F,a+=n*B,c+=n*D,f+=n*z,l+=n*q,h+=n*H,p+=n*V,d+=n*Q,v+=n*X,g+=n*W,y+=n*$,m+=n*K,_+=n*Y,w+=n*G,n=e[1],s+=n*N,u+=n*U,a+=n*F,c+=n*B,f+=n*D,l+=n*z,h+=n*q,p+=n*H,d+=n*V,v+=n*Q,g+=n*X,y+=n*W,m+=n*$,_+=n*K,w+=n*Y,b+=n*G,n=e[2],u+=n*N,a+=n*U,c+=n*F,f+=n*B,l+=n*D,h+=n*z,p+=n*q,d+=n*H,v+=n*V,g+=n*Q,y+=n*X,m+=n*W,_+=n*$,w+=n*K,b+=n*Y,E+=n*G,n=e[3],a+=n*N,c+=n*U,f+=n*F,l+=n*B,h+=n*D,p+=n*z,d+=n*q,v+=n*H,g+=n*V,y+=n*Q,m+=n*X,_+=n*W,w+=n*$,b+=n*K,E+=n*Y,A+=n*G,n=e[4],c+=n*N,f+=n*U,l+=n*F,h+=n*B,p+=n*D,d+=n*z,v+=n*q,g+=n*H,y+=n*V,m+=n*Q,_+=n*X,w+=n*W,b+=n*$,E+=n*K,A+=n*Y,k+=n*G,n=e[5],f+=n*N,l+=n*U,h+=n*F,p+=n*B,d+=n*D,v+=n*z,g+=n*q,y+=n*H,m+=n*V,_+=n*Q,w+=n*X,b+=n*W,E+=n*$,A+=n*K,k+=n*Y,O+=n*G,n=e[6],l+=n*N,h+=n*U,p+=n*F,d+=n*B,v+=n*D,g+=n*z,y+=n*q,m+=n*H,_+=n*V,w+=n*Q,b+=n*X,E+=n*W,A+=n*$,k+=n*K,O+=n*Y,x+=n*G,n=e[7],h+=n*N,p+=n*U,d+=n*F,v+=n*B,g+=n*D,y+=n*z,m+=n*q,_+=n*H,w+=n*V,b+=n*Q,E+=n*X,A+=n*W,k+=n*$,O+=n*K,x+=n*Y,S+=n*G,n=e[8],p+=n*N,d+=n*U,v+=n*F,g+=n*B,y+=n*D,m+=n*z,_+=n*q,w+=n*H,b+=n*V,E+=n*Q,A+=n*X,k+=n*W,O+=n*$,x+=n*K,S+=n*Y,j+=n*G,n=e[9],d+=n*N,v+=n*U,g+=n*F,y+=n*B,m+=n*D,_+=n*z,w+=n*q,b+=n*H,E+=n*V,A+=n*Q,k+=n*X,O+=n*W,x+=n*$,S+=n*K,j+=n*Y,T+=n*G,n=e[10],v+=n*N,g+=n*U,y+=n*F,m+=n*B,_+=n*D,w+=n*z,b+=n*q,E+=n*H,A+=n*V,k+=n*Q,O+=n*X,x+=n*W,S+=n*$,j+=n*K,T+=n*Y,P+=n*G,n=e[11],g+=n*N,y+=n*U,m+=n*F,_+=n*B,w+=n*D,b+=n*z,E+=n*q,A+=n*H,k+=n*V,O+=n*Q,x+=n*X,S+=n*W,j+=n*$,T+=n*K,P+=n*Y,R+=n*G,n=e[12],y+=n*N,m+=n*U,_+=n*F,w+=n*B,b+=n*D,E+=n*z,A+=n*q,k+=n*H,O+=n*V,x+=n*Q,S+=n*X,j+=n*W,T+=n*$,P+=n*K,R+=n*Y,I+=n*G,n=e[13],m+=n*N,_+=n*U,w+=n*F,b+=n*B,E+=n*D,A+=n*z,k+=n*q,O+=n*H,x+=n*V,S+=n*Q,j+=n*X,T+=n*W,P+=n*$,R+=n*K,I+=n*Y,C+=n*G,n=e[14],_+=n*N,w+=n*U,b+=n*F,E+=n*B,A+=n*D,k+=n*z,O+=n*q,x+=n*H,S+=n*V,j+=n*Q,T+=n*X,P+=n*W,R+=n*$,I+=n*K,C+=n*Y,M+=n*G,n=e[15],w+=n*N,b+=n*U,E+=n*F,A+=n*B,k+=n*D,O+=n*z,x+=n*q,S+=n*H,j+=n*V,T+=n*Q,P+=n*X,R+=n*W,I+=n*$,C+=n*K,M+=n*Y,L+=n*G,i+=38*b,s+=38*E,u+=38*A,a+=38*k,c+=38*O,f+=38*x,l+=38*S,h+=38*j,p+=38*T,d+=38*P,v+=38*R,g+=38*I,y+=38*C,m+=38*M,_+=38*L,o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-65536*o,n=s+o+65535,o=Math.floor(n/65536),s=n-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=a+o+65535,o=Math.floor(n/65536),a=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=f+o+65535,o=Math.floor(n/65536),f=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=p+o+65535,o=Math.floor(n/65536),p=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=g+o+65535,o=Math.floor(n/65536),g=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=m+o+65535,o=Math.floor(n/65536),m=n-65536*o,n=_+o+65535,o=Math.floor(n/65536),_=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,i+=o-1+37*(o-1),o=1,n=i+o+65535,o=Math.floor(n/65536),i=n-65536*o,n=s+o+65535,o=Math.floor(n/65536),s=n-65536*o,n=u+o+65535,o=Math.floor(n/65536),u=n-65536*o,n=a+o+65535,o=Math.floor(n/65536),a=n-65536*o,n=c+o+65535,o=Math.floor(n/65536),c=n-65536*o,n=f+o+65535,o=Math.floor(n/65536),f=n-65536*o,n=l+o+65535,o=Math.floor(n/65536),l=n-65536*o,n=h+o+65535,o=Math.floor(n/65536),h=n-65536*o,n=p+o+65535,o=Math.floor(n/65536),p=n-65536*o,n=d+o+65535,o=Math.floor(n/65536),d=n-65536*o,n=v+o+65535,o=Math.floor(n/65536),v=n-65536*o,n=g+o+65535,o=Math.floor(n/65536),g=n-65536*o,n=y+o+65535,o=Math.floor(n/65536),y=n-65536*o,n=m+o+65535,o=Math.floor(n/65536),m=n-65536*o,n=_+o+65535,o=Math.floor(n/65536),_=n-65536*o,n=w+o+65535,o=Math.floor(n/65536),w=n-65536*o,i+=o-1+37*(o-1),t[0]=i,t[1]=s,t[2]=u,t[3]=a,t[4]=c,t[5]=f,t[6]=l,t[7]=h,t[8]=p,t[9]=d,t[10]=v,t[11]=g,t[12]=y,t[13]=m,t[14]=_,t[15]=w}function T(t,e){j(t,e,e)}function P(t,e){var r,n=ee();for(r=0;16>r;r++)n[r]=e[r];for(r=253;r>=0;r--)T(n,n),2!==r&&4!==r&&j(n,n,e);for(r=0;16>r;r++)t[r]=n[r]}function R(t,e){var r,n=ee();for(r=0;16>r;r++)n[r]=e[r];for(r=250;r>=0;r--)T(n,n),1!==r&&j(n,n,e);for(r=0;16>r;r++)t[r]=n[r]}function I(t,e,r){var n,o,i=new Uint8Array(32),s=new Float64Array(80),u=ee(),a=ee(),c=ee(),f=ee(),l=ee(),h=ee();for(o=0;31>o;o++)i[o]=e[o];for(i[31]=127&e[31]|64,i[0]&=248,O(s,r),o=0;16>o;o++)a[o]=s[o],f[o]=u[o]=c[o]=0;for(u[0]=f[0]=1,o=254;o>=0;--o)n=i[o>>>3]>>>(7&o)&1,b(u,a,n),b(c,f,n),x(l,u,c),S(u,u,c),x(c,a,f),S(a,a,f),T(f,l),T(h,u),j(u,c,u),j(c,a,l),x(l,u,c),S(u,u,c),T(a,u),S(c,f,h),j(u,c,ue),x(u,u,f),j(c,c,u),j(u,f,h),j(f,a,s),T(a,l),b(u,a,n),b(c,f,n);for(o=0;16>o;o++)s[o+16]=u[o],s[o+32]=c[o],s[o+48]=a[o],s[o+64]=f[o];var p=s.subarray(32),d=s.subarray(16);return P(p,p),j(d,d,p),E(t,d),0}function C(t,e){return I(t,e,oe)}function M(t,e){return re(e,32),C(t,e)}function L(t,e,r){var n=new Uint8Array(32);return I(n,r,e),f(t,ne,n,pe)}function N(t,e,r,n,o,i){var s=new Uint8Array(32);return L(s,o,i),ve(t,e,r,n,s)}function U(t,e,r,n,o,i){var s=new Uint8Array(32);return L(s,o,i),ge(t,e,r,n,s)}function F(t,e,r,n){for(var o,i,s,u,a,c,f,l,h,p,d,v,g,y,m,_,w,b,E,A,k,O,x,S,j,T,P=new Int32Array(16),R=new Int32Array(16),I=t[0],C=t[1],M=t[2],L=t[3],N=t[4],U=t[5],F=t[6],B=t[7],D=e[0],z=e[1],q=e[2],H=e[3],V=e[4],Q=e[5],X=e[6],W=e[7],$=0;n>=128;){for(E=0;16>E;E++)A=8*E+$,P[E]=r[A+0]<<24|r[A+1]<<16|r[A+2]<<8|r[A+3],R[E]=r[A+4]<<24|r[A+5]<<16|r[A+6]<<8|r[A+7];for(E=0;80>E;E++)if(o=I,i=C,s=M,u=L,a=N,c=U,f=F,l=B,h=D,p=z,d=q,v=H,g=V,y=Q,m=X,_=W,k=B,O=W,x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=(N>>>14|V<<18)^(N>>>18|V<<14)^(V>>>9|N<<23),O=(V>>>14|N<<18)^(V>>>18|N<<14)^(N>>>9|V<<23),x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,k=N&U^~N&F,O=V&Q^~V&X,x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,k=ye[2*E],O=ye[2*E+1],x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,k=P[E%16],O=R[E%16],x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,w=65535&j|T<<16,b=65535&x|S<<16,k=w,O=b,x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=(I>>>28|D<<4)^(D>>>2|I<<30)^(D>>>7|I<<25),O=(D>>>28|I<<4)^(I>>>2|D<<30)^(I>>>7|D<<25),x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,k=I&C^I&M^C&M,O=D&z^D&q^z&q,x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,l=65535&j|T<<16,_=65535&x|S<<16,k=u,O=v,x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=w,O=b,x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,u=65535&j|T<<16,v=65535&x|S<<16,C=o,M=i,L=s,N=u,U=a,F=c,B=f,I=l,z=h,q=p,H=d,V=v,Q=g,X=y,W=m,D=_,E%16===15)for(A=0;16>A;A++)k=P[A],O=R[A],x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=P[(A+9)%16],O=R[(A+9)%16],x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,w=P[(A+1)%16],b=R[(A+1)%16],k=(w>>>1|b<<31)^(w>>>8|b<<24)^w>>>7,O=(b>>>1|w<<31)^(b>>>8|w<<24)^(b>>>7|w<<25),x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,w=P[(A+14)%16],b=R[(A+14)%16],k=(w>>>19|b<<13)^(b>>>29|w<<3)^w>>>6,O=(b>>>19|w<<13)^(w>>>29|b<<3)^(b>>>6|w<<26),x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,P[A]=65535&j|T<<16,R[A]=65535&x|S<<16;k=I,O=D,x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=t[0],O=e[0],x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,t[0]=I=65535&j|T<<16,e[0]=D=65535&x|S<<16,k=C,O=z,x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=t[1],O=e[1],x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,t[1]=C=65535&j|T<<16,e[1]=z=65535&x|S<<16,k=M,O=q,x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=t[2],O=e[2],x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,t[2]=M=65535&j|T<<16,e[2]=q=65535&x|S<<16,k=L,O=H,x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=t[3],O=e[3],x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,t[3]=L=65535&j|T<<16,e[3]=H=65535&x|S<<16,k=N,O=V,x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=t[4],O=e[4],x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,t[4]=N=65535&j|T<<16,e[4]=V=65535&x|S<<16,k=U,O=Q,x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=t[5],O=e[5],x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,t[5]=U=65535&j|T<<16,e[5]=Q=65535&x|S<<16,k=F,O=X,x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=t[6],O=e[6],x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,t[6]=F=65535&j|T<<16,e[6]=X=65535&x|S<<16,k=B,O=W,x=65535&O,S=O>>>16,j=65535&k,T=k>>>16,k=t[7],O=e[7],x+=65535&O,S+=O>>>16,j+=65535&k,T+=k>>>16,S+=x>>>16,j+=S>>>16,T+=j>>>16,t[7]=B=65535&j|T<<16,e[7]=W=65535&x|S<<16,$+=128,n-=128}return n}function B(t,e,r){var o,i=new Int32Array(8),s=new Int32Array(8),u=new Uint8Array(256),a=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,s[0]=4089235720,s[1]=2227873595,s[2]=4271175723,s[3]=1595750129,s[4]=2917565137,s[5]=725511199,s[6]=4215389547,s[7]=327033209,F(i,s,e,r),r%=128,o=0;r>o;o++)u[o]=e[a-r+o];for(u[r]=128,r=256-128*(112>r?1:0),u[r-9]=0,n(u,r-8,a/536870912|0,a<<3),F(i,s,u,r),o=0;8>o;o++)n(t,8*o,i[o],s[o]);return 0}function D(t,e){var r=ee(),n=ee(),o=ee(),i=ee(),s=ee(),u=ee(),a=ee(),c=ee(),f=ee();S(r,t[1],t[0]),S(f,e[1],e[0]),j(r,r,f),x(n,t[0],t[1]),x(f,e[0],e[1]),j(n,n,f),j(o,t[3],e[3]),j(o,o,ce),j(i,t[2],e[2]),x(i,i,i),S(s,n,r),S(u,i,o),x(a,i,o),x(c,n,r),j(t[0],s,u),j(t[1],c,a),j(t[2],a,u),j(t[3],s,c)}function z(t,e,r){var n;for(n=0;4>n;n++)b(t[n],e[n],r)}function q(t,e){var r=ee(),n=ee(),o=ee();P(o,e[2]),j(r,e[0],o),j(n,e[1],o),E(t,n),t[31]^=k(r)<<7}function H(t,e,r){var n,o;for(_(t[0],ie),_(t[1],se),_(t[2],se),_(t[3],ie),o=255;o>=0;--o)n=r[o/8|0]>>(7&o)&1,z(t,e,n),D(e,t),D(t,t),z(t,e,n)}function V(t,e){var r=[ee(),ee(),ee(),ee()];_(r[0],fe),_(r[1],le),_(r[2],se),j(r[3],fe,le),H(t,r,e)}function Q(t,e,r){var n,o=new Uint8Array(64),i=[ee(),ee(),ee(),ee()];for(r||re(e,32),B(o,e,32),o[0]&=248,o[31]&=127,o[31]|=64,V(i,o),q(t,i),n=0;32>n;n++)e[n+32]=t[n];return 0}function X(t,e){var r,n,o,i;for(n=63;n>=32;--n){for(r=0,o=n-32,i=n-12;i>o;++o)e[o]+=r-16*e[n]*me[o-(n-32)],r=e[o]+128>>8,e[o]-=256*r;e[o]+=r,e[n]=0}for(r=0,o=0;32>o;o++)e[o]+=r-(e[31]>>4)*me[o],r=e[o]>>8,e[o]&=255;for(o=0;32>o;o++)e[o]-=r*me[o];for(n=0;32>n;n++)e[n+1]+=e[n]>>8,t[n]=255&e[n]}function W(t){var e,r=new Float64Array(64);for(e=0;64>e;e++)r[e]=t[e];for(e=0;64>e;e++)t[e]=0;X(t,r)}function $(t,e,r,n){var o,i,s=new Uint8Array(64),u=new Uint8Array(64),a=new Uint8Array(64),c=new Float64Array(64),f=[ee(),ee(),ee(),ee()];B(s,n,32),s[0]&=248,s[31]&=127,s[31]|=64;var l=r+64;for(o=0;r>o;o++)t[64+o]=e[o];for(o=0;32>o;o++)t[32+o]=s[32+o];for(B(a,t.subarray(32),r+32),W(a),V(f,a),q(t,f),o=32;64>o;o++)t[o]=n[o];for(B(u,t,r+64),W(u),o=0;64>o;o++)c[o]=0;for(o=0;32>o;o++)c[o]=a[o];for(o=0;32>o;o++)for(i=0;32>i;i++)c[o+i]+=u[o]*s[i];return X(t.subarray(32),c),l}function K(t,e){var r=ee(),n=ee(),o=ee(),i=ee(),s=ee(),u=ee(),a=ee();return _(t[2],se),O(t[1],e),T(o,t[1]),j(i,o,ae),S(o,o,t[2]),x(i,t[2],i),T(s,i),T(u,s),j(a,u,s),j(r,a,o),j(r,r,i),R(r,r),j(r,r,o),j(r,r,i),j(r,r,i),j(t[0],r,i),T(n,t[0]),j(n,n,i),A(n,o)&&j(t[0],t[0],he),T(n,t[0]),j(n,n,i),A(n,o)?-1:(k(t[0])===e[31]>>7&&S(t[0],ie,t[0]),j(t[3],t[0],t[1]),0)}function Y(t,e,r,n){var o,i,u=new Uint8Array(32),a=new Uint8Array(64),c=[ee(),ee(),ee(),ee()],f=[ee(),ee(),ee(),ee()];if(i=-1,64>r)return-1;if(K(f,n))return-1;for(o=0;r>o;o++)t[o]=e[o];for(o=0;32>o;o++)t[o+32]=n[o];if(B(a,t,r),W(a),H(c,f,a),V(f,e.subarray(32)),D(c,f),q(u,c),r-=64,s(e,0,u,0)){for(o=0;r>o;o++)t[o]=0;return-1}for(o=0;r>o;o++)t[o]=e[o+64];return i=r}function G(t,e){if(t.length!==_e)throw new Error("bad key size");if(e.length!==we)throw new Error("bad nonce size")}function J(t,e){if(t.length!==Oe)throw new Error("bad public key size");if(e.length!==xe)throw new Error("bad secret key size")}function Z(){var t,e;for(e=0;e>>13|r<<3),n=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(r>>>10|n<<6),o=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(n>>>7|o<<9),i=255&t[8]|(255&t[9])<<8,this.r[4]=255&(o>>>4|i<<12),this.r[5]=i>>>1&8190,s=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(i>>>14|s<<2),u=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(s>>>11|u<<5),a=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(u>>>8|a<<8),this.r[9]=a>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};de.prototype.blocks=function(t,e,r){for(var n,o,i,s,u,a,c,f,l,h,p,d,v,g,y,m,_,w,b,E=this.fin?0:2048,A=this.h[0],k=this.h[1],O=this.h[2],x=this.h[3],S=this.h[4],j=this.h[5],T=this.h[6],P=this.h[7],R=this.h[8],I=this.h[9],C=this.r[0],M=this.r[1],L=this.r[2],N=this.r[3],U=this.r[4],F=this.r[5],B=this.r[6],D=this.r[7],z=this.r[8],q=this.r[9];r>=16;)n=255&t[e+0]|(255&t[e+1])<<8,A+=8191&n,o=255&t[e+2]|(255&t[e+3])<<8,k+=8191&(n>>>13|o<<3),i=255&t[e+4]|(255&t[e+5])<<8,O+=8191&(o>>>10|i<<6),s=255&t[e+6]|(255&t[e+7])<<8,x+=8191&(i>>>7|s<<9),u=255&t[e+8]|(255&t[e+9])<<8,S+=8191&(s>>>4|u<<12),j+=u>>>1&8191,a=255&t[e+10]|(255&t[e+11])<<8,T+=8191&(u>>>14|a<<2),c=255&t[e+12]|(255&t[e+13])<<8,P+=8191&(a>>>11|c<<5),f=255&t[e+14]|(255&t[e+15])<<8,R+=8191&(c>>>8|f<<8),I+=f>>>5|E,l=0,h=l,h+=A*C,h+=5*k*q,h+=5*O*z,h+=5*x*D,h+=5*S*B,l=h>>>13,h&=8191,h+=5*j*F,h+=5*T*U,h+=5*P*N,h+=5*R*L,h+=5*I*M,l+=h>>>13,h&=8191,p=l,p+=A*M,p+=k*C,p+=5*O*q,p+=5*x*z,p+=5*S*D,l=p>>>13,p&=8191,p+=5*j*B,p+=5*T*F,p+=5*P*U,p+=5*R*N,p+=5*I*L,l+=p>>>13,p&=8191,d=l,d+=A*L,d+=k*M,d+=O*C,d+=5*x*q,d+=5*S*z,l=d>>>13,d&=8191,d+=5*j*D,d+=5*T*B,d+=5*P*F,d+=5*R*U,d+=5*I*N,l+=d>>>13,d&=8191,v=l,v+=A*N,v+=k*L,v+=O*M,v+=x*C,v+=5*S*q,l=v>>>13,v&=8191,v+=5*j*z,v+=5*T*D,v+=5*P*B,v+=5*R*F,v+=5*I*U,l+=v>>>13,v&=8191,g=l,g+=A*U,g+=k*N,g+=O*L,g+=x*M,g+=S*C,l=g>>>13,g&=8191,g+=5*j*q,g+=5*T*z,g+=5*P*D,g+=5*R*B,g+=5*I*F,l+=g>>>13,g&=8191,y=l,y+=A*F,y+=k*U,y+=O*N,y+=x*L,y+=S*M,l=y>>>13,y&=8191,y+=j*C,y+=5*T*q,y+=5*P*z,y+=5*R*D,y+=5*I*B,l+=y>>>13,y&=8191,m=l,m+=A*B,m+=k*F,m+=O*U,m+=x*N,m+=S*L,l=m>>>13,m&=8191,m+=j*M,m+=T*C,m+=5*P*q,m+=5*R*z,m+=5*I*D,l+=m>>>13,m&=8191,_=l,_+=A*D,_+=k*B,_+=O*F,_+=x*U,_+=S*N,l=_>>>13,_&=8191,_+=j*L,_+=T*M,_+=P*C,_+=5*R*q,_+=5*I*z,l+=_>>>13,_&=8191,w=l,w+=A*z,w+=k*D,w+=O*B,w+=x*F,w+=S*U,l=w>>>13,w&=8191,w+=j*N,w+=T*L,w+=P*M,w+=R*C,w+=5*I*q,l+=w>>>13,w&=8191,b=l,b+=A*q,b+=k*z,b+=O*D,b+=x*B,b+=S*F,l=b>>>13,b&=8191,b+=j*U,b+=T*N,b+=P*L,b+=R*M,b+=I*C,l+=b>>>13,b&=8191,l=(l<<2)+l|0,l=l+h|0,h=8191&l,l>>>=13,p+=l,A=h,k=p,O=d,x=v,S=g,j=y,T=m,P=_,R=w,I=b,e+=16,r-=16;this.h[0]=A,this.h[1]=k,this.h[2]=O,this.h[3]=x,this.h[4]=S,this.h[5]=j,this.h[6]=T,this.h[7]=P,this.h[8]=R,this.h[9]=I},de.prototype.finish=function(t,e){var r,n,o,i,s=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;16>i;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,i=2;10>i;i++)this.h[i]+=r,r=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,s[0]=this.h[0]+5,r=s[0]>>>13,s[0]&=8191,i=1;10>i;i++)s[i]=this.h[i]+r,r=s[i]>>>13,s[i]&=8191;for(s[9]-=8192,n=(s[9]>>>15)-1,i=0;10>i;i++)s[i]&=n;for(n=~n,i=0;10>i;i++)this.h[i]=this.h[i]&n|s[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),o=this.h[0]+this.pad[0],this.h[0]=65535&o,i=1;8>i;i++)o=(this.h[i]+this.pad[i]|0)+(o>>>16)|0,this.h[i]=65535&o;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},de.prototype.update=function(t,e,r){var n,o;if(this.leftover){for(o=16-this.leftover,o>r&&(o=r),n=0;o>n;n++)this.buffer[this.leftover+n]=t[e+n];if(r-=o,e+=o,this.leftover+=o,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(o=r-r%16,this.blocks(t,e,o),e+=o,r-=o),r){for(n=0;r>n;n++)this.buffer[this.leftover+n]=t[e+n];this.leftover+=r}};var ve=y,ge=m,ye=[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],me=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),_e=32,we=24,be=32,Ee=16,Ae=32,ke=32,Oe=32,xe=32,Se=32,je=we,Te=be,Pe=Ee,Re=64,Ie=32,Ce=64,Me=32,Le=64;t.lowlevel={crypto_core_hsalsa20:f,crypto_stream_xor:d,crypto_stream:p,crypto_stream_salsa20_xor:l,crypto_stream_salsa20:h,crypto_onetimeauth:v,crypto_onetimeauth_verify:g,crypto_verify_16:i,crypto_verify_32:s,crypto_secretbox:y,crypto_secretbox_open:m,crypto_scalarmult:I,crypto_scalarmult_base:C,crypto_box_beforenm:L,crypto_box_afternm:ve,crypto_box:N,crypto_box_open:U,crypto_box_keypair:M,crypto_hash:B,crypto_sign:$,crypto_sign_keypair:Q,crypto_sign_open:Y,crypto_secretbox_KEYBYTES:_e,crypto_secretbox_NONCEBYTES:we,crypto_secretbox_ZEROBYTES:be,crypto_secretbox_BOXZEROBYTES:Ee,crypto_scalarmult_BYTES:Ae,crypto_scalarmult_SCALARBYTES:ke,crypto_box_PUBLICKEYBYTES:Oe,crypto_box_SECRETKEYBYTES:xe,crypto_box_BEFORENMBYTES:Se,crypto_box_NONCEBYTES:je,crypto_box_ZEROBYTES:Te,crypto_box_BOXZEROBYTES:Pe,crypto_sign_BYTES:Re,crypto_sign_PUBLICKEYBYTES:Ie,crypto_sign_SECRETKEYBYTES:Ce,crypto_sign_SEEDBYTES:Me,crypto_hash_BYTES:Le},t.util={},t.util.decodeUTF8=function(t){var e,r=unescape(encodeURIComponent(t)),n=new Uint8Array(r.length);for(e=0;er;r++)n.push(String.fromCharCode(t[r]));return btoa(n.join(""))},t.util.decodeBase64=function(t){if("undefined"==typeof atob)return new Uint8Array(Array.prototype.slice.call(new e(t,"base64"),0));var r,n=atob(t),o=new Uint8Array(n.length);for(r=0;rn)return null;for(var o=new Uint8Array(n),i=0;in;n++)o[n]=e[n];for(n=0;n=0},t.sign.keyPair=function(){var t=new Uint8Array(Ie),e=new Uint8Array(Ce);return Q(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(Z(t),t.length!==Ce)throw new Error("bad secret key size");for(var e=new Uint8Array(Ie),r=0;rn;n++)r[n]=t[n];return Q(e,r,!0),{publicKey:e,secretKey:r}},t.sign.publicKeyLength=Ie,t.sign.secretKeyLength=Ce,t.sign.seedLength=Me,t.sign.signatureLength=Re,t.hash=function(t){Z(t);var e=new Uint8Array(Le);return B(e,t,t.length),e},t.hash.hashLength=Le,t.verify=function(t,e){return Z(t,e),0===t.length||0===e.length?!1:t.length!==e.length?!1:0===o(t,0,e,0,t.length)?!0:!1},t.setPRNG=function(t){re=t},function(){var e;"undefined"!=typeof window?(window.crypto&&window.crypto.getRandomValues?e=window.crypto:window.msCrypto&&window.msCrypto.getRandomValues&&(e=window.msCrypto),e&&t.setPRNG(function(t,r){var n,o=new Uint8Array(r);for(e.getRandomValues(o),n=0;r>n;n++)t[n]=o[n];te(o)})):(e=r(323),e&&t.setPRNG(function(t,r){var n,o=e.randomBytes(r);for(n=0;r>n;n++)t[n]=o[n];te(o)}))}()}("undefined"!=typeof t&&t.exports?t.exports:window.nacl=window.nacl||{})}).call(e,r(239).Buffer)},function(){},function(t,e,r){(function(t){"use strict";var n=function(t){return t&&t.__esModule?t["default"]:t},o=function(t){return t&&t.__esModule?t:{"default":t}},i=function(){function t(t,e){for(var r in e){var n=e[r];n.configurable=!0,n.value&&(n.writable=!0)}Object.defineProperties(t,e)}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),s=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(e,"__esModule",{value:!0});{var u=r(315),a=u.sign,c=u.verify,f=o(r(325)),l=o(r(327)),h=n(r(267)),p=r(322);e.Keypair=function(){function e(r){s(this,e),this._publicKey=new t(r.publicKey),r.secretSeed&&(this._secretSeed=new t(r.secretSeed),this._secretKey=new t(r.secretKey))}return i(e,{accountId:{value:function(){return new h.AccountId.keyTypeEd25519(this._publicKey)}},publicKey:{value:function(){return new h.PublicKey.keyTypeEd25519(this._publicKey)}},rawPublicKey:{value:function(){return this._publicKey}},signatureHint:{value:function(){var t=this.accountId().toXDR();
return t.slice(t.length-4)}},address:{value:function(){return l.encodeCheck("accountId",this._publicKey)}},seed:{value:function(){return l.encodeCheck("seed",this._secretSeed)}},rawSeed:{value:function(){return this._secretSeed}},rawSecretKey:{value:function(){return this._secretKey}},canSign:{value:function(){return!!this._secretKey}},sign:{value:function(t){var e=function(){return t.apply(this,arguments)};return e.toString=function(){return t.toString()},e}(function(t){if(!this.canSign())throw new Error("cannot sign: no secret key available");return a(t,this._secretKey)})},verify:{value:function(t){var e=function(){return t.apply(this,arguments)};return e.toString=function(){return t.toString()},e}(function(t,e){return c(t,e,this._publicKey)})},signDecorated:{value:function(t){var e=this.sign(t),r=this.signatureHint();return new h.DecoratedSignature({hint:r,signature:e})}}},{fromSeed:{value:function(t){var e=l.decodeCheck("seed",t);return this.fromRawSeed(e)}},fromBase58Seed:{value:function(t){var e=f.decodeBase58Check("seed",t);return this.fromRawSeed(e)}},fromRawSeed:{value:function(e){e=new t(e);var r=new Uint8Array(e),n=p.sign.keyPair.fromSeed(r);return n.secretSeed=e,new this(n)}},master:{value:function(){return this.fromRawSeed("allmylifemyhearthasbeensearching")}},fromAddress:{value:function(t){var e=l.decodeCheck("accountId",t);if(32!==e.length)throw new Error("Invalid Stellar address");return new this({publicKey:e})}},random:{value:function(){var t=p.randomBytes(32);return this.fromRawSeed(t)}}}),e}()}}).call(e,r(239).Buffer)},function(t,e,r){(function(t){"use strict";function n(e){return new t(f.decode(e))}function o(e,r){var n=f.decode(r),o=n[0],i=n.slice(0,n.length-4),s=i.slice(1),c=n.slice(n.length-4),l=v[e];if(h(l))throw new Error(""+e+' is not a valid version byte name. expected one of "accountId", "seed", or "none"');if(o!==l)throw new Error("invalid version byte. expected "+l+", got "+o);var p=u(i);if(!a(p,c))throw new Error("invalid checksum");if("accountId"===e&&37!==n.length)throw new Error("Decoded address length is invalid. Expected 37, got "+n.length);return new t(s)}function i(t){if(p(t)||h(t))throw new Error("cannot encode null data");return f.encode(t)}function s(e,r){if(p(r)||h(r))throw new Error("cannot encode null data");var n=v[e];if(h(n))throw new Error(""+e+' is not a valid version byte name. expected one of "accountId", "seed", or "none"');r=new t(r);var o=new t([n]),s=t.concat([o,r]),a=u(s),c=t.concat([s,a]);return i(c)}function u(t){var e=d(t),r=d(e);return r.slice(0,4)}function a(t,e){if(t.length!==e.length)return!1;if(0===t.length)return!0;for(var r=0;r=0;--e)u+=n[o[e]];return u}function r(t){if(0===t.length)return[];var e,r,n=[0];for(e=0;e>8,n[r]&=255;for(;u;)n.push(255&u),u>>=8}for(e=0;"g"===t[e]&&e0?o|=i<n?(r.push(o|i>>-n),n+=8,o=i<>o,this.buf+=this.alphabet[31&e],o>5&&(o-=5,e=r>>o,this.buf+=this.alphabet[31&e]),o=5-o,i=r<s;s++)o=t[s],r+=o;return i+=r%256,i%256})},function(t){t.exports=function(t,e){var r;return r=function(t,r){return e(t,r)>>>0},r.signed=e,r.unsigned=r,r.model=t,r}},function(t,e,r){var n,o,i;n=r(239).Buffer,i=r(331),o=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243],"undefined"!=typeof Int32Array&&(o=new Int32Array(o)),t.exports=i("crc-8",function(t,e){var r,i,s,u;for(n.isBuffer(t)||(t=n(t)),i=~~e,s=0,u=t.length;u>s;s++)r=t[s],i=255&o[255&(i^r)];return i})},function(t,e,r){var n,o,i;n=r(239).Buffer,i=r(331),o=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53],"undefined"!=typeof Int32Array&&(o=new Int32Array(o)),t.exports=i("dallas-1-wire",function(t,e){var r,i,s,u;for(n.isBuffer(t)||(t=n(t)),i=~~e,s=0,u=t.length;u>s;s++)r=t[s],i=255&o[255&(i^r)];return i})},function(t,e,r){var n,o,i;n=r(239).Buffer,i=r(331),o=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448],"undefined"!=typeof Int32Array&&(o=new Int32Array(o)),t.exports=i("crc-16",function(t,e){var r,i,s,u;for(n.isBuffer(t)||(t=n(t)),i=~~e,s=0,u=t.length;u>s;s++)r=t[s],i=65535&(o[255&(i^r)]^i>>8);return i})},function(t,e,r){var n,o,i;n=r(239).Buffer,i=r(331),o=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920],"undefined"!=typeof Int32Array&&(o=new Int32Array(o)),t.exports=i("ccitt",function(t,e){var r,i,s,u;for(n.isBuffer(t)||(t=n(t)),i=null!=e?~~e:65535,s=0,u=t.length;u>s;s++)r=t[s],i=65535&(o[255&(i>>8^r)]^i<<8);return i})},function(t,e,r){var n,o,i;n=r(239).Buffer,i=r(331),o=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448],"undefined"!=typeof Int32Array&&(o=new Int32Array(o)),t.exports=i("crc-16-modbus",function(t,e){var r,i,s,u;for(n.isBuffer(t)||(t=n(t)),i=null!=e?~~e:65535,s=0,u=t.length;u>s;s++)r=t[s],i=65535&(o[255&(i^r)]^i>>8);return i})},function(t,e,r){var n,o;n=r(239).Buffer,o=r(331),t.exports=o("xmodem",function(t,e){var r,o,i,s;for(n.isBuffer(t)||(t=n(t)),i=null!=e?~~e:0,o=t.length,s=0;o>0;)r=i>>>8&255,r^=255&t[s++],r^=r>>>4,i=i<<8&65535,i^=r,r=r<<5&65535,i^=r,r=r<<7&65535,i^=r,o--;return i})},function(t,e,r){var n,o,i;n=r(239).Buffer,i=r(331),o=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560],"undefined"!=typeof Int32Array&&(o=new Int32Array(o)),t.exports=i("crc-24",function(t,e){var r,i,s,u;for(n.isBuffer(t)||(t=n(t)),i=null!=e?~~e:11994318,s=0,u=t.length;u>s;s++)r=t[s],i=16777215&(o[255&(i>>16^r)]^i<<8);return i})},function(t,e,r){var n,o,i;n=r(239).Buffer,i=r(331),o=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],"undefined"!=typeof Int32Array&&(o=new Int32Array(o)),t.exports=i("crc-32",function(t,e){var r,i,s,u;for(n.isBuffer(t)||(t=n(t)),i=0===e?0:-1^~~e,s=0,u=t.length;u>s;s++)r=t[s],i=o[255&(i^r)]^i>>>8;return-1^i})},function(t,e,r){(function(t){"use strict";var n=function(){function t(t,e){for(var r in e){var n=e[r];n.configurable=!0,n.value&&(n.writable=!0)}Object.defineProperties(t,e)}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(e,"__esModule",{value:!0});{var i=r(266),s=i.xdr,u=i.hash,a=r(327).encodeCheck,c=r(341).Operation,f=r(346).Network,l=r(275),h=l.map,p=l.each;e.Transaction=function(){function e(r){if(o(this,e),"string"==typeof r){var n=new t(r,"base64");r=s.TransactionEnvelope.fromXDR(n)}this.tx=r.tx(),this.source=a("accountId",r.tx().sourceAccount().ed25519()),this.fee=this.tx.fee(),this.memo=this.tx.memo(),this.sequence=this.tx.seqNum().toString();var i=this.tx.operations()||[];this.operations=h(i,function(t){return c.operationToObject(t)});var u=r.signatures()||[];this.signatures=h(u,function(t){return t})}return n(e,{sign:{value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;e>n;n++)r[n]=arguments[n];{var o=this.hash();p(r,function(e){var r=e.signDecorated(o);t.signatures.push(r)})}}},hash:{value:function(t){var e=function(){return t.apply(this,arguments)};return e.toString=function(){return t.toString()},e}(function(){return u(this.signatureBase())})},signatureBase:{value:function(){return t.concat([f.current().networkId(),s.EnvelopeType.envelopeTypeTx().toXDR(),this.tx.toXDR()])}},toEnvelope:{value:function(){var t=this.tx,e=this.signatures,r=new s.TransactionEnvelope({tx:t,signatures:e});return r}}}),e}()}}).call(e,r(239).Buffer)},function(t,e,r){"use strict";var n=function(t){return t&&t.__esModule?t["default"]:t},o=function(){function t(t,e){for(var r in e){var n=e[r];n.configurable=!0,n.value&&(n.writable=!0)}Object.defineProperties(t,e)}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(e,"__esModule",{value:!0});{var s=n(r(267)),u=r(342).Account,a=r(324).Keypair,c=r(268),f=c.UnsignedHyper,l=c.Hyper,h=(r(305).hash,r(327).encodeCheck),p=r(343).Asset,d=r(275),v=d.padRight,g=d.trimRight,y=d.isEmpty,m=d.isUndefined,_=d.isString,w=n(r(344)),b=r(345).best_r,E=1e7,A="9223372036854775807";e.Operation=function(){function t(){i(this,t)}return o(t,null,{createAccount:{value:function e(t){if(!u.isValidAddress(t.destination))throw new Error("destination is invalid");if(!_(t.startingBalance))throw new TypeError("startingBalance argument must be of type String");if(y(t.startingBalance))throw new TypeError("startingBalance argument must not be empty");var r={};r.destination=a.fromAddress(t.destination).accountId(),r.startingBalance=this._toXDRAmount(t.startingBalance);var e=new s.CreateAccountOp(r),n={};return n.body=s.OperationBody.createAccount(e),this.setSourceAccount(n,t),new s.Operation(n)}},payment:{value:function r(t){if(!u.isValidAddress(t.destination))throw new Error("destination is invalid");if(!t.asset)throw new Error("Must provide an asset for a payment operation");if(!_(t.amount))throw new TypeError("amount argument must be of type String");if(y(t.amount))throw new TypeError("amount argument must not be empty");var e={};e.destination=a.fromAddress(t.destination).accountId(),e.asset=t.asset.toXdrObject(),e.amount=this._toXDRAmount(t.amount);var r=new s.PaymentOp(e),n={};return n.body=s.OperationBody.payment(r),this.setSourceAccount(n,t),new s.Operation(n)}},pathPayment:{value:function(t){if(!t.sendAsset)throw new Error("Must specify a send asset");if(!_(t.sendMax))throw new TypeError("sendMax argument must be of type String");if(y(t.sendMax))throw new TypeError("sendMax argument must not be empty");if(!u.isValidAddress(t.destination))throw new Error("destination is invalid");if(!t.destAsset)throw new Error("Must provide a destAsset for a payment operation");if(!_(t.destAmount))throw new TypeError("destAmount argument must be of type String");if(y(t.destAmount))throw new TypeError("destAmount argument must not be empty");var e={};e.sendAsset=t.sendAsset.toXdrObject(),e.sendMax=this._toXDRAmount(t.sendMax),e.destination=a.fromAddress(t.destination).accountId(),e.destAsset=t.destAsset.toXdrObject(),e.destAmount=this._toXDRAmount(t.destAmount),e.path=t.path?t.path:[];var r=new s.PathPaymentOp(e),n={};return n.body=s.OperationBody.pathPayment(r),this.setSourceAccount(n,t),new s.Operation(n)}},changeTrust:{value:function(t){var e={};if(e.line=t.asset.toXdrObject(),!m(t.limit)&&!_(t.limit))throw new TypeError("limit argument must be of type String");e.limit=t.limit?this._toXDRAmount(t.limit):l.fromString(new w(A).toString()),t.source&&(e.source=t.source?t.source.masterKeypair:null);var r=new s.ChangeTrustOp(e),n={};return n.body=s.OperationBody.changeTrust(r),this.setSourceAccount(n,t),new s.Operation(n)}},allowTrust:{value:function(t){if(!u.isValidAddress(t.trustor))throw new Error("trustor is invalid");var e={};if(e.trustor=a.fromAddress(t.trustor).accountId(),t.assetCode.length<=4){var r=v(t.assetCode,4,"\x00");e.asset=s.AllowTrustOpAsset.assetTypeCreditAlphanum4(r)}else{if(!(t.assetCode.length<=12))throw new Error("Asset code must be 12 characters at max.");var r=v(t.assetCode,12,"\x00");e.asset=s.AllowTrustOpAsset.assetTypeCreditAlphanum12(r)}e.authorize=t.authorize;var n=new s.AllowTrustOp(e),o={};return o.body=s.OperationBody.allowTrust(n),this.setSourceAccount(o,t),new s.Operation(o)}},setOptions:{value:function(t){var e={};if(t.inflationDest){if(!u.isValidAddress(t.inflationDest))throw new Error("inflationDest is invalid");e.inflationDest=a.fromAddress(t.inflationDest).accountId()}if(e.clearFlags=t.clearFlags,e.setFlags=t.setFlags,!m(t.masterWeight)&&(t.masterWeight<0||t.masterWeight>255))throw new Error("masterWeight value must be between 0 and 255");if(!m(t.lowThreshold)&&(t.lowThreshold<0||t.lowThreshold>255))throw new Error("lowThreshold value must be between 0 and 255");if(!m(t.medThreshold)&&(t.medThreshold<0||t.medThreshold>255))throw new Error("medThreshold value must be between 0 and 255");if(!m(t.highThreshold)&&(t.highThreshold<0||t.highThreshold>255))throw new Error("highThreshold value must be between 0 and 255");if(e.masterWeight=t.masterWeight,e.lowThreshold=t.lowThreshold,e.medThreshold=t.medThreshold,e.highThreshold=t.highThreshold,!m(t.homeDomain)&&!_(t.homeDomain))throw new TypeError("homeDomain argument must be of type String");if(e.homeDomain=t.homeDomain,t.signer){if(!u.isValidAddress(t.signer.address))throw new Error("signer.address is invalid");if(t.signer.weight<0||t.signer.weight>255)throw new Error("signer.weight value must be between 0 and 255");e.signer=new s.Signer({pubKey:a.fromAddress(t.signer.address).accountId(),weight:t.signer.weight})}var r=new s.SetOptionsOp(e),n={};return n.body=s.OperationBody.setOption(r),this.setSourceAccount(n,t),new s.Operation(n)}},manageOffer:{value:function(t){var e={};if(e.selling=t.selling.toXdrObject(),e.buying=t.buying.toXdrObject(),!_(t.amount))throw new TypeError("amount argument must be of type String");if(e.amount=this._toXDRAmount(t.amount),m(t.price))throw new TypeError("price argument is required");if(e.price=this._toXDRPrice(t.price),m(t.offerId))t.offerId="0";else if(!_(t.offerId))throw new TypeError("offerId argument must be of type String");e.offerId=f.fromString(t.offerId);var r=new s.ManageOfferOp(e),n={};return n.body=s.OperationBody.manageOffer(r),this.setSourceAccount(n,t),new s.Operation(n)}},createPassiveOffer:{value:function(t){var e={};if(e.selling=t.selling.toXdrObject(),e.buying=t.buying.toXdrObject(),!_(t.amount))throw new TypeError("amount argument must be of type String");if(e.amount=this._toXDRAmount(t.amount),m(t.price))throw new TypeError("price argument is required");e.price=this._toXDRPrice(t.price);var r=new s.CreatePassiveOfferOp(e),n={};return n.body=s.OperationBody.createPassiveOffer(r),this.setSourceAccount(n,t),new s.Operation(n)}},accountMerge:{value:function(t){var e={};if(!u.isValidAddress(t.destination))throw new Error("destination is invalid");return e.body=s.OperationBody.accountMerge(a.fromAddress(t.destination).accountId()),this.setSourceAccount(e,t),new s.Operation(e)}},inflation:{value:function(){var t=void 0===arguments[0]?{}:arguments[0],e={};return e.body=s.OperationBody.inflation(),this.setSourceAccount(e,t),new s.Operation(e)}},setSourceAccount:{value:function(t,e){if(e.source){if(!u.isValidAddress(e.source))throw new Error("Source address is invalid");t.sourceAccount=a.fromAddress(e.source).accountId()}}},operationToObject:{value:function(t){function e(t){return h("accountId",t.ed25519())}var r={};t.sourceAccount()&&(r.source=e(t.sourceAccount()));var n=t.body().value();switch(t.body()["switch"]().name){case"createAccount":r.type="createAccount",r.destination=e(n.destination()),r.startingBalance=this._fromXDRAmount(n.startingBalance());break;case"payment":r.type="payment",r.destination=e(n.destination()),r.asset=p.fromOperation(n.asset()),r.amount=this._fromXDRAmount(n.amount());break;case"pathPayment":r.type="pathPayment",r.sendAsset=p.fromOperation(n.sendAsset()),r.sendMax=this._fromXDRAmount(n.sendMax()),r.destination=e(n.destination()),r.destAsset=p.fromOperation(n.destAsset()),r.destAmount=this._fromXDRAmount(n.destAmount()),r.path=n.path();break;case"changeTrust":r.type="changeTrust",r.line=p.fromOperation(n.line()),r.limit=this._fromXDRAmount(n.limit());break;case"allowTrust":r.type="allowTrust",r.trustor=e(n.trustor()),r.assetCode=n.asset().value().toString(),r.assetCode=g(r.assetCode,"\x00"),r.authorize=n.authorize();break;case"setOption":if(r.type="setOptions",n.inflationDest()&&(r.inflationDest=e(n.inflationDest())),r.clearFlags=n.clearFlags(),r.setFlags=n.setFlags(),r.masterWeight=n.masterWeight(),r.lowThreshold=n.lowThreshold(),r.medThreshold=n.medThreshold(),r.highThreshold=n.highThreshold(),r.homeDomain=n.homeDomain(),n.signer()){var o={};o.address=e(n.signer().pubKey()),o.weight=n.signer().weight(),r.signer=o}break;case"manageOffer":r.type="manageOffer",r.selling=p.fromOperation(n.selling()),r.buying=p.fromOperation(n.buying()),r.amount=this._fromXDRAmount(n.amount()),r.price=this._fromXDRPrice(n.price()),r.offerId=n.offerId().toString();break;case"createPassiveOffer":r.type="createPassiveOffer",r.selling=p.fromOperation(n.selling()),r.buying=p.fromOperation(n.buying()),r.amount=this._fromXDRAmount(n.amount()),r.price=this._fromXDRPrice(n.price());break;case"accountMerge":r.type="accountMerge",r.destination=e(n);break;case"inflation":r.type="inflation";break;default:throw new Error("Unknown operation")}return r}},_toXDRAmount:{value:function(t){var e=new w(t).mul(E);return l.fromString(e.toString())}},_fromXDRAmount:{value:function(t){return new w(t).div(E).toString()}},_fromXDRPrice:{value:function(t){var e=new w(t.n());return e.div(new w(t.d())).toString()}},_toXDRPrice:{value:function(t){if(t=new w(t),t.lte(0))throw new Error("price must be positive");
var e=b(t);return new s.Price({n:parseInt(e[0]),d:parseInt(e[1])})}}}),t}()}},function(t,e,r){"use strict";var n=function(){function t(t,e){for(var r in e){var n=e[r];n.configurable=!0,n.value&&(n.writable=!0)}Object.defineProperties(t,e)}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(e,"__esModule",{value:!0});{var i=r(327).decodeCheck;e.Account=function(){function t(e,r){if(o(this,t),!t.isValidAddress(e))throw new Error("address is invalid");this.address=e,this.sequence=r}return n(t,null,{isValidAddress:{value:function(t){try{var e=i("accountId",t);if(32!==e.length)return!1}catch(r){return!1}return!0}}}),t}()}},function(t,e,r){"use strict";var n=function(t){return t&&t.__esModule?t["default"]:t},o=function(){function t(t,e){for(var r in e){var n=e[r];n.configurable=!0,n.value&&(n.writable=!0)}Object.defineProperties(t,e)}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(e,"__esModule",{value:!0});{var s=n(r(267)),u=r(342).Account,a=r(324).Keypair,c=r(327).encodeCheck,f=r(275),l=f.clone,h=f.padRight,p=f.trimRight;e.Asset=function(){function t(e,r){if(i(this,t),e.length>12)throw new Error("Asset code must be 12 characters at max");if("xlm"!==String(e).toLowerCase()&&!r)throw new Error("Issuer cannot be null");if(r&&!u.isValidAddress(r))throw new Error("Issuer is invalid");this.code=e,this.issuer=r}return o(t,{toXdrObject:{value:function(){if(this.isNative())return s.Asset.assetTypeNative();var t=void 0,e=void 0;this.code.length<=4?(t=s.AssetAlphaNum4,e="assetTypeCreditAlphanum4"):(t=s.AssetAlphaNum12,e="assetTypeCreditAlphanum12");var r=this.code.length<=4?4:12,n=h(this.code,r,"\x00"),o=new t({assetCode:n,issuer:a.fromAddress(this.issuer).accountId()});return new s.Asset(e,o)}},getCode:{value:function(){return l(this.code)}},getIssuer:{value:function(){return l(this.issuer)}},isNative:{value:function(){return!this.issuer}},equals:{value:function(t){return this.code==t.getCode()&&this.issuer==t.getIssuer()}}},{"native":{value:function(){return new t("XLM")}},fromOperation:{value:function(t){var e=void 0,r=void 0,n=void 0;switch(t["switch"]()){case s.AssetType.assetTypeNative():return this.native();case s.AssetType.assetTypeCreditAlphanum4():return e=t.alphaNum4(),n=c("accountId",e.issuer().ed25519()),r=p(e.assetCode(),"\x00"),new this(r,n);case s.AssetType.assetTypeCreditAlphanum12():return e=t.alphaNum12(),n=c("accountId",e.issuer().ed25519()),r=p(e.assetCode(),"\x00"),new this(r,n);default:throw new Error("Invalid asset type: "+t["switch"]().name)}}}}),t}()}},function(t,e,r){var n;!function(o){"use strict";function i(t){function e(t,n){var o,i,s,u,a,c,f=this;if(!(f instanceof e))return V&&I(26,"constructor call without new",t),new e(t,n);if(null!=n&&Q(n,2,64,L,"base")){if(n=0|n,c=t+"",10==n)return f=new e(t instanceof e?t:c),C(f,F+f.e+1,B);if((u="number"==typeof t)&&0*t!=0||!new RegExp("^-?"+(o="["+k.slice(0,n)+"]+")+"(?:\\."+o+")?$",37>n?"i":"").test(c))return y(f,c,u,n);u?(f.s=0>1/t?(c=c.slice(1),-1):1,V&&c.replace(/^0\.0*|\./,"").length>15&&I(L,A,t),u=!1):f.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1,c=r(c,10,n,f.s)}else{if(t instanceof e)return f.s=t.s,f.e=t.e,f.c=(t=t.c)?t.slice():t,L=0,void 0;if((u="number"==typeof t)&&0*t==0){if(f.s=0>1/t?(t=-t,-1):1,t===~~t){for(i=0,s=t;s>=10;s/=10,i++);return f.e=i,f.c=[t],L=0,void 0}c=t+""}else{if(!m.test(c=t+""))return y(f,c,u);f.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1}}for((i=c.indexOf("."))>-1&&(c=c.replace(".","")),(s=c.search(/e/i))>0?(0>i&&(i=s),i+=+c.slice(s+1),c=c.substring(0,s)):0>i&&(i=c.length),s=0;48===c.charCodeAt(s);s++);for(a=c.length;48===c.charCodeAt(--a););if(c=c.slice(s,a+1))if(a=c.length,u&&V&&a>15&&I(L,A,f.s*t),i=i-s-1,i>H)f.c=f.e=null;else if(q>i)f.c=[f.e=0];else{if(f.e=i,f.c=[],s=(i+1)%x,0>i&&(s+=x),a>s){for(s&&f.c.push(+c.slice(0,s)),a-=x;a>s;)f.c.push(+c.slice(s,s+=x));c=c.slice(s),s=x-c.length}else s-=a;for(;s--;c+="0");f.c.push(+c)}else f.c=[f.e=0];L=0}function r(t,r,n,o){var i,s,a,c,f,h,d,v=t.indexOf("."),g=F,y=B;for(37>n&&(t=t.toLowerCase()),v>=0&&(a=$,$=0,t=t.replace(".",""),d=new e(n),f=d.pow(t.length-v),$=a,d.c=l(p(u(f.c),f.e),10,r),d.e=d.c.length),h=l(t,n,r),s=a=h.length;0==h[--a];h.pop());if(!h[0])return"0";if(0>v?--s:(f.c=h,f.e=s,f.s=o,f=M(f,d,g,y,r),h=f.c,c=f.r,s=f.e),i=s+g+1,v=h[i],a=r/2,c=c||0>i||null!=h[i+1],c=4>y?(null!=v||c)&&(0==y||y==(f.s<0?3:2)):v>a||v==a&&(4==y||c||6==y&&1&h[i-1]||y==(f.s<0?8:7)),1>i||!h[0])t=c?p("1",-g):"0";else{if(h.length=i,c)for(--r;++h[--i]>r;)h[i]=0,i||(++s,h.unshift(1));for(a=h.length;!h[--a];);for(v=0,t="";a>=v;t+=k.charAt(h[v++]));t=p(t,s)}return t}function n(t,r,n,o){var i,s,a,c,f;if(n=null!=n&&Q(n,0,8,o,E)?0|n:B,!t.c)return t.toString();if(i=t.c[0],a=t.e,null==r)f=u(t.c),f=19==o||24==o&&D>=a?h(f,a):p(f,a);else if(t=C(new e(t),r,n),s=t.e,f=u(t.c),c=f.length,19==o||24==o&&(s>=r||D>=s)){for(;r>c;f+="0",c++);f=h(f,s)}else if(r-=a,f=p(f,s),s+1>c){if(--r>0)for(f+=".";r--;f+="0");}else if(r+=s-c,r>0)for(s+1==c&&(f+=".");r--;f+="0");return t.s<0&&i?"-"+f:f}function o(t,r){var n,o,i=0;for(f(t[0])&&(t=t[0]),n=new e(t[0]);++it||t>r||t!=d(t))&&I(n,(o||"decimal places")+(e>t||t>r?" out of range":" not an integer"),t),!0}function R(t,e,r){for(var n=1,o=e.length;!e[--o];e.pop());for(o=e[0];o>=10;o/=10,n++);return(r=n+r*x-1)>H?t.c=t.e=null:q>r?t.c=[t.e=0]:(t.e=r,t.c=e),t}function I(t,e,r){var n=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][t]+"() "+e+": "+r);throw n.name="BigNumber Error",L=0,n}function C(t,e,r,n){var o,i,s,u,a,c,f,l=t.c,h=j;if(l){t:{for(o=1,u=l[0];u>=10;u/=10,o++);if(i=e-o,0>i)i+=x,s=e,a=l[c=0],f=a/h[o-s-1]%10|0;else if(c=_((i+1)/x),c>=l.length){if(!n)break t;for(;l.length<=c;l.push(0));a=f=0,o=1,i%=x,s=i-x+1}else{for(a=u=l[c],o=1;u>=10;u/=10,o++);i%=x,s=i-x+o,f=0>s?0:a/h[o-s-1]%10|0}if(n=n||0>e||null!=l[c+1]||(0>s?a:a%h[o-s-1]),n=4>r?(f||n)&&(0==r||r==(t.s<0?3:2)):f>5||5==f&&(4==r||n||6==r&&(i>0?s>0?a/h[o-s]:0:l[c-1])%10&1||r==(t.s<0?8:7)),1>e||!l[0])return l.length=0,n?(e-=t.e+1,l[0]=h[e%x],t.e=-e||0):l[0]=t.e=0,t;if(0==i?(l.length=c,u=1,c--):(l.length=c+1,u=h[x-i],l[c]=s>0?w(a/h[o-s]%h[s])*u:0),n)for(;;){if(0==c){for(i=1,s=l[0];s>=10;s/=10,i++);for(s=l[0]+=u,u=1;s>=10;s/=10,u++);i!=u&&(t.e++,l[0]==O&&(l[0]=1));break}if(l[c]+=u,l[c]!=O)break;l[c--]=0,u=1}for(i=l.length;0===l[--i];l.pop());}t.e>H?t.c=t.e=null:t.er?null!=(t=o[r++]):void 0};return s(e="DECIMAL_PLACES")&&Q(t,0,P,2,e)&&(F=0|t),n[e]=F,s(e="ROUNDING_MODE")&&Q(t,0,8,2,e)&&(B=0|t),n[e]=B,s(e="EXPONENTIAL_AT")&&(f(t)?Q(t[0],-P,0,2,e)&&Q(t[1],0,P,2,e)&&(D=0|t[0],z=0|t[1]):Q(t,-P,P,2,e)&&(D=-(z=0|(0>t?-t:t)))),n[e]=[D,z],s(e="RANGE")&&(f(t)?Q(t[0],-P,-1,2,e)&&Q(t[1],1,P,2,e)&&(q=0|t[0],H=0|t[1]):Q(t,-P,P,2,e)&&(0|t?q=-(H=0|(0>t?-t:t)):V&&I(2,e+" cannot be zero",t))),n[e]=[q,H],s(e="ERRORS")&&(t===!!t||1===t||0===t?(L=0,Q=(V=!!t)?v:c):V&&I(2,e+b,t)),n[e]=V,s(e="CRYPTO")&&(t===!!t||1===t||0===t?(X=!(!t||!g||"object"!=typeof g),t&&!X&&V&&I(2,"crypto unavailable",g)):V&&I(2,e+b,t)),n[e]=X,s(e="MODULO_MODE")&&Q(t,0,9,2,e)&&(W=0|t),n[e]=W,s(e="POW_PRECISION")&&Q(t,0,P,2,e)&&($=0|t),n[e]=$,s(e="FORMAT")&&("object"==typeof t?K=t:V&&I(2,e+" not an object",t)),n[e]=K,n},e.max=function(){return o(arguments,N.lt)},e.min=function(){return o(arguments,N.gt)},e.random=function(){var t=9007199254740992,r=Math.random()*t&2097151?function(){return w(Math.random()*t)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var n,o,i,s,u,a=0,c=[],f=new e(U);if(t=null!=t&&Q(t,0,P,14)?0|t:F,s=_(t/x),X)if(g&&g.getRandomValues){for(n=g.getRandomValues(new Uint32Array(s*=2));s>a;)u=131072*n[a]+(n[a+1]>>>11),u>=9e15?(o=g.getRandomValues(new Uint32Array(2)),n[a]=o[0],n[a+1]=o[1]):(c.push(u%1e14),a+=2);a=s/2}else if(g&&g.randomBytes){for(n=g.randomBytes(s*=7);s>a;)u=281474976710656*(31&n[a])+1099511627776*n[a+1]+4294967296*n[a+2]+16777216*n[a+3]+(n[a+4]<<16)+(n[a+5]<<8)+n[a+6],u>=9e15?g.randomBytes(7).copy(n,a):(c.push(u%1e14),a+=7);a=s/7}else V&&I(14,"crypto unavailable",g);if(!a)for(;s>a;)u=r(),9e15>u&&(c[a++]=u%1e14);for(s=c[--a],t%=x,s&&t&&(u=j[x-t],c[a]=w(s/u)*u);0===c[a];c.pop(),a--);if(0>a)c=[i=0];else{for(i=-1;0===c[0];c.shift(),i-=x);for(a=1,u=c[0];u>=10;u/=10,a++);x>a&&(i-=x-a)}return f.e=i,f.c=c,f}}(),M=function(){function t(t,e,r){var n,o,i,s,u=0,a=t.length,c=e%T,f=e/T|0;for(t=t.slice();a--;)i=t[a]%T,s=t[a]/T|0,n=f*i+s*c,o=c*i+n%T*T+u,u=(o/r|0)+(n/T|0)+f*s,t[a]=o%r;return u&&t.unshift(u),t}function r(t,e,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;r>o;o++)if(t[o]!=e[o]){i=t[o]>e[o]?1:-1;break}return i}function n(t,e,r,n){for(var o=0;r--;)t[r]-=o,o=t[r]1;t.shift());}return function(o,i,u,a,c){var f,l,h,p,d,v,g,y,m,_,b,E,A,k,S,j,T,P=o.s==i.s?1:-1,R=o.c,I=i.c;if(!(R&&R[0]&&I&&I[0]))return new e(o.s&&i.s&&(R?!I||R[0]!=I[0]:I)?R&&0==R[0]||!I?0*P:P/0:0/0);for(y=new e(P),m=y.c=[],l=o.e-i.e,P=u+l+1,c||(c=O,l=s(o.e/x)-s(i.e/x),P=P/x|0),h=0;I[h]==(R[h]||0);h++);if(I[h]>(R[h]||0)&&l--,0>P)m.push(1),p=!0;else{for(k=R.length,j=I.length,h=0,P+=2,d=w(c/(I[0]+1)),d>1&&(I=t(I,d,c),R=t(R,d,c),j=I.length,k=R.length),A=j,_=R.slice(0,j),b=_.length;j>b;_[b++]=0);T=I.slice(),T.unshift(0),S=I[0],I[1]>=c/2&&S++;do{if(d=0,f=r(I,_,j,b),0>f){if(E=_[0],j!=b&&(E=E*c+(_[1]||0)),d=w(E/S),d>1)for(d>=c&&(d=c-1),v=t(I,d,c),g=v.length,b=_.length;1==r(v,_,g,b);)d--,n(v,g>j?T:I,g,c),g=v.length,f=1;else 0==d&&(f=d=1),v=I.slice(),g=v.length;if(b>g&&v.unshift(0),n(_,v,b,c),b=_.length,-1==f)for(;r(I,_,j,b)<1;)d++,n(_,b>j?T:I,b,c),b=_.length}else 0===f&&(d++,_=[0]);m[h++]=d,_[0]?_[b++]=R[A]||0:(_=[R[A]],b=1)}while((A++=10;P/=10,h++);C(y,u+(y.e=h+l*x-1)+1,a,p)}else y.e=l,y.r=+p;return y}}(),y=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,r=/^([^.]+)\.$/,n=/^\.([^.]+)$/,o=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(s,u,a,c){var f,l=a?u:u.replace(i,"");if(o.test(l))s.s=isNaN(l)?null:0>l?-1:1;else{if(!a&&(l=l.replace(t,function(t,e,r){return f="x"==(r=r.toLowerCase())?16:"b"==r?2:8,c&&c!=f?t:e}),c&&(f=c,l=l.replace(r,"$1").replace(n,"0.$1")),u!=l))return new e(l,f);V&&I(L,"not a"+(c?" base "+c:"")+" number",u),s.s=null}s.c=s.e=null,L=0}}(),N.absoluteValue=N.abs=function(){var t=new e(this);return t.s<0&&(t.s=1),t},N.ceil=function(){return C(new e(this),this.e+1,2)},N.comparedTo=N.cmp=function(t,r){return L=1,a(this,new e(t,r))},N.decimalPlaces=N.dp=function(){var t,e,r=this.c;if(!r)return null;if(t=((e=r.length-1)-s(this.e/x))*x,e=r[e])for(;e%10==0;e/=10,t--);return 0>t&&(t=0),t},N.dividedBy=N.div=function(t,r){return L=3,M(this,new e(t,r),F,B)},N.dividedToIntegerBy=N.divToInt=function(t,r){return L=4,M(this,new e(t,r),0,1)},N.equals=N.eq=function(t,r){return L=5,0===a(this,new e(t,r))},N.floor=function(){return C(new e(this),this.e+1,3)},N.greaterThan=N.gt=function(t,r){return L=6,a(this,new e(t,r))>0},N.greaterThanOrEqualTo=N.gte=function(t,r){return L=7,1===(r=a(this,new e(t,r)))||0===r},N.isFinite=function(){return!!this.c},N.isInteger=N.isInt=function(){return!!this.c&&s(this.e/x)>this.c.length-2},N.isNaN=function(){return!this.s},N.isNegative=N.isNeg=function(){return this.s<0},N.isZero=function(){return!!this.c&&0==this.c[0]},N.lessThan=N.lt=function(t,r){return L=8,a(this,new e(t,r))<0},N.lessThanOrEqualTo=N.lte=function(t,r){return L=9,-1===(r=a(this,new e(t,r)))||0===r},N.minus=N.sub=function(t,r){var n,o,i,u,a=this,c=a.s;if(L=10,t=new e(t,r),r=t.s,!c||!r)return new e(0/0);if(c!=r)return t.s=-r,a.plus(t);var f=a.e/x,l=t.e/x,h=a.c,p=t.c;if(!f||!l){if(!h||!p)return h?(t.s=-r,t):new e(p?a:0/0);if(!h[0]||!p[0])return p[0]?(t.s=-r,t):new e(h[0]?a:3==B?-0:0)}if(f=s(f),l=s(l),h=h.slice(),c=f-l){for((u=0>c)?(c=-c,i=h):(l=f,i=p),i.reverse(),r=c;r--;i.push(0));i.reverse()}else for(o=(u=(c=h.length)<(r=p.length))?c:r,c=r=0;o>r;r++)if(h[r]!=p[r]){u=h[r]0)for(;r--;h[n++]=0);for(r=O-1;o>c;){if(h[--o]
0?(a=u,n=f):(i=-i,n=c),n.reverse();i--;n.push(0));n.reverse()}for(i=c.length,r=f.length,0>i-r&&(n=f,f=c,c=n,r=i),i=0;r;)i=(c[--r]=c[r]+f[r]+i)/O|0,c[r]%=O;return i&&(c.unshift(i),++a),R(t,c,a)},N.precision=N.sd=function(t){var e,r,n=this,o=n.c;if(null!=t&&t!==!!t&&1!==t&&0!==t&&(V&&I(13,"argument"+b,t),t!=!!t&&(t=null)),!o)return null;if(r=o.length-1,e=r*x+1,r=o[r]){for(;r%10==0;r/=10,e--);for(r=o[0];r>=10;r/=10,e++);}return t&&n.e+1>e&&(e=n.e+1),e},N.round=function(t,r){var n=new e(this);return(null==t||Q(t,0,P,15))&&C(n,~~t+this.e+1,null!=r&&Q(r,0,8,15,E)?0|r:B),n},N.shift=function(t){var r=this;return Q(t,-S,S,16,"argument")?r.times("1e"+d(t)):new e(r.c&&r.c[0]&&(-S>t||t>S)?r.s*(0>t?0:1/0):r)},N.squareRoot=N.sqrt=function(){var t,r,n,o,i,a=this,c=a.c,f=a.s,l=a.e,h=F+4,p=new e("0.5");if(1!==f||!c||!c[0])return new e(!f||0>f&&(!c||c[0])?0/0:c?a:1/0);if(f=Math.sqrt(+a),0==f||f==1/0?(r=u(c),(r.length+l)%2==0&&(r+="0"),f=Math.sqrt(r),l=s((l+1)/2)-(0>l||l%2),f==1/0?r="1e"+l:(r=f.toExponential(),r=r.slice(0,r.indexOf("e")+1)+l),n=new e(r)):n=new e(f+""),n.c[0])for(l=n.e,f=l+h,3>f&&(f=0);;)if(i=n,n=p.times(i.plus(M(a,i,h,1))),u(i.c).slice(0,f)===(r=u(n.c)).slice(0,f)){if(n.ef&&(g=w,w=b,b=g,i=f,f=p,p=i),i=f+p,g=[];i--;g.push(0));for(y=O,m=T,i=p;--i>=0;){for(n=0,d=b[i]%m,v=b[i]/m|0,a=f,u=i+a;u>i;)l=w[--a]%m,h=w[a]/m|0,c=v*l+h*d,l=d*l+c%m*m+g[u]+n,n=(l/y|0)+(c/m|0)+v*h,g[u--]=l%y;g[u]=n}return n?++o:g.shift(),R(t,g,o)},N.toDigits=function(t,r){var n=new e(this);return t=null!=t&&Q(t,1,P,18,"precision")?0|t:null,r=null!=r&&Q(r,0,8,18,E)?0|r:B,t?C(n,t,r):n},N.toExponential=function(t,e){return n(this,null!=t&&Q(t,0,P,19)?~~t+1:null,e,19)},N.toFixed=function(t,e){return n(this,null!=t&&Q(t,0,P,20)?~~t+this.e+1:null,e,20)},N.toFormat=function(t,e){var r=n(this,null!=t&&Q(t,0,P,21)?~~t+this.e+1:null,e,21);if(this.c){var o,i=r.split("."),s=+K.groupSize,u=+K.secondaryGroupSize,a=K.groupSeparator,c=i[0],f=i[1],l=this.s<0,h=l?c.slice(1):c,p=h.length;if(u&&(o=s,s=u,u=o,p-=o),s>0&&p>0){for(o=p%s||s,c=h.substr(0,o);p>o;o+=s)c+=a+h.substr(o,s);u>0&&(c+=a+h.slice(o)),l&&(c="-"+c)}r=f?c+K.decimalSeparator+((u=+K.fractionGroupSize)?f.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+K.fractionGroupSeparator):f):c}return r},N.toFraction=function(t){var r,n,o,i,s,a,c,f,l,h=V,p=this,d=p.c,v=new e(U),g=n=new e(U),y=c=new e(U);if(null!=t&&(V=!1,a=new e(t),V=h,(!(h=a.isInt())||a.lt(U))&&(V&&I(22,"max denominator "+(h?"out of range":"not an integer"),t),t=!h&&a.c&&C(a,a.e+1,1).gte(U)?a:null)),!d)return p.toString();for(l=u(d),i=v.e=l.length-p.e-1,v.c[0]=j[(s=i%x)<0?x+s:s],t=!t||a.cmp(v)>0?i>0?v:g:a,s=H,H=1/0,a=new e(l),c.c[0]=0;f=M(a,v,0,1),o=n.plus(f.times(y)),1!=o.cmp(t);)n=y,y=o,g=c.plus(f.times(o=g)),c=o,v=a.minus(f.times(o=v)),a=o;return o=M(t.minus(n),y,0,1),c=c.plus(o.times(g)),n=n.plus(o.times(y)),c.s=g.s=p.s,i*=2,r=M(g,y,i,B).minus(p).abs().cmp(M(c,n,i,B).minus(p).abs())<1?[g.toString(),y.toString()]:[c.toString(),n.toString()],H=s,r},N.toNumber=function(){var t=this;return+t||(t.s?0*t.s:0/0)},N.toPower=N.pow=function(t){var r,n,o=w(0>t?-t:+t),i=this;if(!Q(t,-S,S,23,"exponent")&&(!isFinite(t)||o>S&&(t/=0)||parseFloat(t)!=t&&!(t=0/0)))return new e(Math.pow(+i,t));for(r=$?_($/x+2):0,n=new e(U);;){if(o%2){if(n=n.times(i),!n.c)break;r&&n.c.length>r&&(n.c.length=r)}if(o=w(o/2),!o)break;i=i.times(i),r&&i.c&&i.c.length>r&&(i.c.length=r)}return 0>t&&(n=U.div(n)),r?C(n,$,B):n},N.toPrecision=function(t,e){return n(this,null!=t&&Q(t,1,P,24,"precision")?0|t:null,e,24)},N.toString=function(t){var e,n=this,o=n.s,i=n.e;return null===i?o?(e="Infinity",0>o&&(e="-"+e)):e="NaN":(e=u(n.c),e=null!=t&&Q(t,2,64,25,"base")?r(p(e,i),0|t,10,o):D>=i||i>=z?h(e,i):p(e,i),0>o&&n.c[0]&&(e="-"+e)),e},N.truncated=N.trunc=function(){return C(new e(this),this.e+1,1)},N.valueOf=N.toJSON=function(){return this.toString()},null!=t&&e.config(t),e}function s(t){var e=0|t;return t>0||t===e?e:e-1}function u(t){for(var e,r,n=1,o=t.length,i=t[0]+"";o>n;){for(e=t[n++]+"",r=x-e.length;r--;e="0"+e);i+=e}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function a(t,e){var r,n,o=t.c,i=e.c,s=t.s,u=e.s,a=t.e,c=e.e;if(!s||!u)return null;if(r=o&&!o[0],n=i&&!i[0],r||n)return r?n?0:-u:s;if(s!=u)return s;if(r=0>s,n=a==c,!o||!i)return n?0:!o^r?1:-1;if(!n)return a>c^r?1:-1;for(u=(a=o.length)<(c=i.length)?a:c,s=0;u>s;s++)if(o[s]!=i[s])return o[s]>i[s]^r?1:-1;return a==c?0:a>c^r?1:-1}function c(t,e,r){return(t=d(t))>=e&&r>=t}function f(t){return"[object Array]"==Object.prototype.toString.call(t)}function l(t,e,r){for(var n,o,i=[0],s=0,u=t.length;u>s;){for(o=i.length;o--;i[o]*=e);for(i[n=0]+=k.indexOf(t.charAt(s++));nr-1&&(null==i[n+1]&&(i[n+1]=0),i[n+1]+=i[n]/r|0,i[n]%=r)}return i.reverse()}function h(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(0>e?"e":"e+")+e}function p(t,e){var r,n;if(0>e){for(n="0.";++e;n+="0");t=n+t}else if(r=t.length,++e>r){for(n="0",e-=r;--e;n+="0");t+=n}else r>e&&(t=t.slice(0,e)+"."+t.slice(e));return t}function d(t){return t=parseFloat(t),0>t?_(t):w(t)}var v,g,y,m=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,_=Math.ceil,w=Math.floor,b=" not a boolean or binary digit",E="rounding mode",A="number type has more than 15 significant digits",k="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",O=1e14,x=14,S=9007199254740991,j=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],T=1e7,P=1e9;v=i(),n=function(){return v}.call(e,r,e,t),!(void 0!==n&&(t.exports=n))}(this)},function(t,e,r){"use strict";function n(t){t=new s(t);for(var e,r,n=[[new s(0),new s(1)],[new s(1),new s(0)]],o=2;;){if(t.gt(u))break;e=t.floor(),r=t.sub(e);var a=e.mul(n[o-1][0]).add(n[o-2][0]),c=e.mul(n[o-1][1]).add(n[o-2][1]);if(a.gt(u)||c.gt(u))break;if(n.push([a,c]),r.eq(0))break;t=new s(1).div(r),o+=1}var f=i(n[n.length-1],2),l=f[0],h=f[1];return[l.toNumber(),h.toNumber()]}var o=function(t){return t&&t.__esModule?t["default"]:t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){for(var r,n=[],o=t[Symbol.iterator]();!(r=o.next()).done&&(n.push(r.value),!e||n.length!==e););return n}throw new TypeError("Invalid attempt to destructure non-iterable instance")};e.best_r=n,Object.defineProperty(e,"__esModule",{value:!0});var s=o(r(344)),u=2147483647},function(t,e,r){"use strict";var n=function(){function t(t,e){for(var r in e){var n=e[r];n.configurable=!0,n.value&&(n.writable=!0)}Object.defineProperties(t,e)}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};Object.defineProperty(e,"__esModule",{value:!0});var i=r(305).hash,s={PUBLIC:"Public Global Stellar Network ; September 2015",TESTNET:"Test SDF Network ; September 2015"};e.Networks=s;var u,a=e.Network=function(){function t(e){o(this,t),this._networkPassphrase=e}return n(t,{networkPassphrase:{value:function(){return this._networkPassphrase}},networkId:{value:function(){return i(this.networkPassphrase())}}},{useDefault:{value:function(){this.useTestNetwork()}},usePublicNetwork:{value:function(){this.use(new t(s.PUBLIC))}},usePublicNet:{value:function(){this.usePublicNetwork()}},useTestNetwork:{value:function(){this.use(new t(s.TESTNET))}},useTestNet:{value:function(){this.useTestNetwork()}},use:{value:function(t){u=t}},current:{value:function(t){var e=function(){return t.apply(this,arguments)};return e.toString=function(){return t.toString()},e}(function(){return u})}}),t}();a.useDefault()},function(t,e,r){"use strict";var n=function(t){return t&&t.__esModule?t["default"]:t},o=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e32)throw new Error("Text should be < 32 bytes (ascii encoded). Got "+t.byteLength(e,"ascii"));return s.Memo.memoText(e)})},id:{value:function(t){var e=function(){return t.apply(this,arguments)};return e.toString=function(){return t.toString()},e}(function(t){if("NaN"===Number(t))throw new Error("Expects a int64 as a string. Got "+t);return s.Memo.memoId(t)})},hash:{value:function(t){var e=function(){return t.apply(this,arguments)};return e.toString=function(){return t.toString()},e}(function(e){if("string"==typeof e&&32!=t.byteLength(e))throw new Error("Expects a 32 byte hash value. Got "+t.byteLength(e)+" bytes instead");return s.Memo.memoHash(e)})},returnHash:{value:function(e){if("string"==typeof e&&32!=t.byteLength(e))throw new Error("Expects a 32 byte hash value. Got "+t.byteLength(e)+" bytes instead");return s.Memo.memoReturn(e)}}}),e}()}}).call(e,r(239).Buffer)}]);