generated from statsim/port-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhash.js
1 lines (1 loc) · 17.7 KB
/
hash.js
1
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).hash=t()}}(function(){return function s(r,o,u){function a(n,t){if(!o[n]){if(!r[n]){var i="function"==typeof require&&require;if(!t&&i)return i(n,!0);if(c)return c(n,!0);var h=new Error("Cannot find module '"+n+"'");throw h.code="MODULE_NOT_FOUND",h}var e=o[n]={exports:{}};r[n][0].call(e.exports,function(t){var i=r[n][1][t];return a(i||t)},e,e.exports,s,r,o,u)}return o[n].exports}for(var c="function"==typeof require&&require,t=0;t<u.length;t++)a(u[t]);return a}({1:[function(t,i,n){var h=n;h.utils=t("./hash/utils"),h.common=t("./hash/common"),h.sha=t("./hash/sha"),h.ripemd=t("./hash/ripemd"),h.hmac=t("./hash/hmac"),h.sha1=h.sha.sha1,h.sha256=h.sha.sha256,h.sha224=h.sha.sha224,h.sha384=h.sha.sha384,h.sha512=h.sha.sha512,h.ripemd160=h.ripemd.ripemd160},{"./hash/common":2,"./hash/hmac":3,"./hash/ripemd":4,"./hash/sha":5,"./hash/utils":12}],2:[function(t,i,n){"use strict";var e=t("./utils"),h=t("minimalistic-assert");function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}(n.BlockHash=s).prototype.update=function(t,i){if(t=e.toArray(t,i),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=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=e.join32(t,0,t.length-n,this.endian);for(var h=0;h<t.length;h+=this._delta32)this._update(t,h,h+this._delta32)}return this},s.prototype.digest=function(t){return this.update(this._pad()),h(null===this.pending),this._digest(t)},s.prototype._pad=function(){var t=this.pendingTotal,i=this._delta8,n=i-(t+this.padLength)%i,h=new Array(n+this.padLength);h[0]=128;for(var e=1;e<n;e++)h[e]=0;if(t<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)h[e++]=0;h[e++]=0,h[e++]=0,h[e++]=0,h[e++]=0,h[e++]=t>>>24&255,h[e++]=t>>>16&255,h[e++]=t>>>8&255,h[e++]=255&t}else for(h[e++]=255&t,h[e++]=t>>>8&255,h[e++]=t>>>16&255,h[e++]=t>>>24&255,h[e++]=0,h[e++]=0,h[e++]=0,h[e++]=0,s=8;s<this.padLength;s++)h[e++]=0;return h}},{"./utils":12,"minimalistic-assert":14}],3:[function(t,i,n){"use strict";var h=t("./utils"),e=t("minimalistic-assert");function s(t,i,n){if(!(this instanceof s))return new s(t,i,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(h.toArray(i,n))}(i.exports=s).prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),e(t.length<=this.blockSize);for(var i=t.length;i<this.blockSize;i++)t.push(0);for(i=0;i<t.length;i++)t[i]^=54;for(this.inner=(new this.Hash).update(t),i=0;i<t.length;i++)t[i]^=106;this.outer=(new this.Hash).update(t)},s.prototype.update=function(t,i){return this.inner.update(t,i),this},s.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},{"./utils":12,"minimalistic-assert":14}],4:[function(t,i,n){"use strict";var h=t("./utils"),e=t("./common"),g=h.rotl32,m=h.sum32,d=h.sum32_3,_=h.sum32_4,s=e.BlockHash;function r(){if(!(this instanceof r))return new r;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function v(t,i,n,h){return t<=15?i^n^h:t<=31?i&n|~i&h:t<=47?(i|~n)^h:t<=63?i&h|n&~h:i^(n|~h)}function y(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function b(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}h.inherits(r,s),(n.ripemd160=r).blockSize=512,r.outSize=160,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(t,i){for(var n=this.h[0],h=this.h[1],e=this.h[2],s=this.h[3],r=this.h[4],o=n,u=h,a=e,c=s,l=r,f=0;f<80;f++){var p=m(g(_(n,v(f,h,e,s),t[S[f]+i],y(f)),k[f]),r);n=r,r=s,s=g(e,10),e=h,h=p,p=m(g(_(o,v(79-f,u,a,c),t[x[f]+i],b(f)),w[f]),l),o=l,l=c,c=g(a,10),a=u,u=p}p=d(this.h[1],e,c),this.h[1]=d(this.h[2],s,l),this.h[2]=d(this.h[3],r,o),this.h[3]=d(this.h[4],n,u),this.h[4]=d(this.h[0],h,a),this.h[0]=p},r.prototype._digest=function(t){return"hex"===t?h.toHex32(this.h,"little"):h.split32(this.h,"little")};var S=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],x=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],k=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],w=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":2,"./utils":12}],5:[function(t,i,n){"use strict";n.sha1=t("./sha/1"),n.sha224=t("./sha/224"),n.sha256=t("./sha/256"),n.sha384=t("./sha/384"),n.sha512=t("./sha/512")},{"./sha/1":6,"./sha/224":7,"./sha/256":8,"./sha/384":9,"./sha/512":10}],6:[function(t,i,n){"use strict";var h=t("../utils"),e=t("../common"),s=t("./common"),l=h.rotl32,f=h.sum32,p=h.sum32_5,g=s.ft_1,r=e.BlockHash,m=[1518500249,1859775393,2400959708,3395469782];function o(){if(!(this instanceof o))return new o;r.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}h.inherits(o,r),(i.exports=o).blockSize=512,o.outSize=160,o.hmacStrength=80,o.padLength=64,o.prototype._update=function(t,i){for(var n=this.W,h=0;h<16;h++)n[h]=t[i+h];for(;h<n.length;h++)n[h]=l(n[h-3]^n[h-8]^n[h-14]^n[h-16],1);var e=this.h[0],s=this.h[1],r=this.h[2],o=this.h[3],u=this.h[4];for(h=0;h<n.length;h++){var a=~~(h/20),c=p(l(e,5),g(a,s,r,o),u,n[h],m[a]);u=o,o=r,r=l(s,30),s=e,e=c}this.h[0]=f(this.h[0],e),this.h[1]=f(this.h[1],s),this.h[2]=f(this.h[2],r),this.h[3]=f(this.h[3],o),this.h[4]=f(this.h[4],u)},o.prototype._digest=function(t){return"hex"===t?h.toHex32(this.h,"big"):h.split32(this.h,"big")}},{"../common":2,"../utils":12,"./common":11}],7:[function(t,i,n){"use strict";var h=t("../utils"),e=t("./256");function s(){if(!(this instanceof s))return new s;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}h.inherits(s,e),(i.exports=s).blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(t){return"hex"===t?h.toHex32(this.h.slice(0,7),"big"):h.split32(this.h.slice(0,7),"big")}},{"../utils":12,"./256":8}],8:[function(t,i,n){"use strict";var h=t("../utils"),e=t("../common"),s=t("./common"),g=t("minimalistic-assert"),m=h.sum32,d=h.sum32_4,_=h.sum32_5,v=s.ch32,y=s.maj32,b=s.s0_256,S=s.s1_256,x=s.g0_256,k=s.g1_256,r=e.BlockHash,o=[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 u(){if(!(this instanceof u))return new u;r.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=o,this.W=new Array(64)}h.inherits(u,r),(i.exports=u).blockSize=512,u.outSize=256,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(t,i){for(var n=this.W,h=0;h<16;h++)n[h]=t[i+h];for(;h<n.length;h++)n[h]=d(k(n[h-2]),n[h-7],x(n[h-15]),n[h-16]);var e=this.h[0],s=this.h[1],r=this.h[2],o=this.h[3],u=this.h[4],a=this.h[5],c=this.h[6],l=this.h[7];for(g(this.k.length===n.length),h=0;h<n.length;h++){var f=_(l,S(u),v(u,a,c),this.k[h],n[h]),p=m(b(e),y(e,s,r));l=c,c=a,a=u,u=m(o,f),o=r,r=s,s=e,e=m(f,p)}this.h[0]=m(this.h[0],e),this.h[1]=m(this.h[1],s),this.h[2]=m(this.h[2],r),this.h[3]=m(this.h[3],o),this.h[4]=m(this.h[4],u),this.h[5]=m(this.h[5],a),this.h[6]=m(this.h[6],c),this.h[7]=m(this.h[7],l)},u.prototype._digest=function(t){return"hex"===t?h.toHex32(this.h,"big"):h.split32(this.h,"big")}},{"../common":2,"../utils":12,"./common":11,"minimalistic-assert":14}],9:[function(t,i,n){"use strict";var h=t("../utils"),e=t("./512");function s(){if(!(this instanceof s))return new s;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}h.inherits(s,e),(i.exports=s).blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(t){return"hex"===t?h.toHex32(this.h.slice(0,12),"big"):h.split32(this.h.slice(0,12),"big")}},{"../utils":12,"./512":10}],10:[function(t,i,n){"use strict";var h=t("../utils"),e=t("../common"),E=t("minimalistic-assert"),s=h.rotr64_hi,r=h.rotr64_lo,o=h.shr64_hi,u=h.shr64_lo,O=h.sum64,T=h.sum64_hi,N=h.sum64_lo,f=h.sum64_4_hi,p=h.sum64_4_lo,D=h.sum64_5_hi,U=h.sum64_5_lo,a=e.BlockHash,c=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function l(){if(!(this instanceof l))return new l;a.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=c,this.W=new Array(160)}function F(t,i,n,h,e){var s=t&n^~t&e;return s<0&&(s+=4294967296),s}function I(t,i,n,h,e,s){var r=i&h^~i&s;return r<0&&(r+=4294967296),r}function M(t,i,n,h,e){var s=t&n^t&e^n&e;return s<0&&(s+=4294967296),s}function G(t,i,n,h,e,s){var r=i&h^i&s^h&s;return r<0&&(r+=4294967296),r}function J(t,i){var n=s(t,i,28)^s(i,t,2)^s(i,t,7);return n<0&&(n+=4294967296),n}function K(t,i){var n=r(t,i,28)^r(i,t,2)^r(i,t,7);return n<0&&(n+=4294967296),n}function P(t,i){var n=s(t,i,14)^s(t,i,18)^s(i,t,9);return n<0&&(n+=4294967296),n}function Q(t,i){var n=r(t,i,14)^r(t,i,18)^r(i,t,9);return n<0&&(n+=4294967296),n}function g(t,i){var n=s(t,i,1)^s(t,i,8)^o(t,i,7);return n<0&&(n+=4294967296),n}function m(t,i){var n=r(t,i,1)^r(t,i,8)^u(t,i,7);return n<0&&(n+=4294967296),n}function d(t,i){var n=s(t,i,19)^s(i,t,29)^o(t,i,6);return n<0&&(n+=4294967296),n}function _(t,i){var n=r(t,i,19)^r(i,t,29)^u(t,i,6);return n<0&&(n+=4294967296),n}h.inherits(l,a),(i.exports=l).blockSize=1024,l.outSize=512,l.hmacStrength=192,l.padLength=128,l.prototype._prepareBlock=function(t,i){for(var n=this.W,h=0;h<32;h++)n[h]=t[i+h];for(;h<n.length;h+=2){var e=d(n[h-4],n[h-3]),s=_(n[h-4],n[h-3]),r=n[h-14],o=n[h-13],u=g(n[h-30],n[h-29]),a=m(n[h-30],n[h-29]),c=n[h-32],l=n[h-31];n[h]=f(e,s,r,o,u,a,c,l),n[h+1]=p(e,s,r,o,u,a,c,l)}},l.prototype._update=function(t,i){this._prepareBlock(t,i);var n=this.W,h=this.h[0],e=this.h[1],s=this.h[2],r=this.h[3],o=this.h[4],u=this.h[5],a=this.h[6],c=this.h[7],l=this.h[8],f=this.h[9],p=this.h[10],g=this.h[11],m=this.h[12],d=this.h[13],_=this.h[14],v=this.h[15];E(this.k.length===n.length);for(var y=0;y<n.length;y+=2){var b=_,S=v,x=P(l,f),k=Q(l,f),w=F(l,f,p,g,m),z=I(l,f,p,g,m,d),A=this.k[y],H=this.k[y+1],L=n[y],j=n[y+1],B=D(b,S,x,k,w,z,A,H,L,j),W=U(b,S,x,k,w,z,A,H,L,j);b=J(h,e),S=K(h,e),x=M(h,e,s,r,o),k=G(h,e,s,r,o,u);var q=T(b,S,x,k),C=N(b,S,x,k);_=m,v=d,m=p,d=g,p=l,g=f,l=T(a,c,B,W),f=N(c,c,B,W),a=o,c=u,o=s,u=r,s=h,r=e,h=T(B,W,q,C),e=N(B,W,q,C)}O(this.h,0,h,e),O(this.h,2,s,r),O(this.h,4,o,u),O(this.h,6,a,c),O(this.h,8,l,f),O(this.h,10,p,g),O(this.h,12,m,d),O(this.h,14,_,v)},l.prototype._digest=function(t){return"hex"===t?h.toHex32(this.h,"big"):h.split32(this.h,"big")}},{"../common":2,"../utils":12,"minimalistic-assert":14}],11:[function(t,i,n){"use strict";var h=t("../utils").rotr32;function e(t,i,n){return t&i^~t&n}function s(t,i,n){return t&i^t&n^i&n}function r(t,i,n){return t^i^n}n.ft_1=function(t,i,n,h){return 0===t?e(i,n,h):1===t||3===t?r(i,n,h):2===t?s(i,n,h):void 0},n.ch32=e,n.maj32=s,n.p32=r,n.s0_256=function(t){return h(t,2)^h(t,13)^h(t,22)},n.s1_256=function(t){return h(t,6)^h(t,11)^h(t,25)},n.g0_256=function(t){return h(t,7)^h(t,18)^t>>>3},n.g1_256=function(t){return h(t,17)^h(t,19)^t>>>10}},{"../utils":12}],12:[function(t,i,n){"use strict";var a=t("minimalistic-assert"),h=t("inherits");function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function e(t){return 1===t.length?"0"+t:t}function r(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}n.inherits=h,n.toArray=function(t,i){if(Array.isArray(t))return t.slice();if(!t)return[];var n,h,e=[];if("string"==typeof t)if(i){if("hex"===i)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),r=0;r<t.length;r+=2)e.push(parseInt(t[r]+t[r+1],16))}else for(var s=0,r=0;r<t.length;r++){var o=t.charCodeAt(r);e[s++]=o<128?o:(e[s++]=o<2048?o>>6|192:(h=r,55296!=(64512&(n=t).charCodeAt(h))||h<0||h+1>=n.length||56320!=(64512&n.charCodeAt(h+1))?e[s++]=o>>12|224:(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++r)),e[s++]=o>>18|240,e[s++]=o>>12&63|128),o>>6&63|128),63&o|128)}else for(r=0;r<t.length;r++)e[r]=0|t[r];return e},n.toHex=function(t){for(var i="",n=0;n<t.length;n++)i+=e(t[n].toString(16));return i},n.htonl=s,n.toHex32=function(t,i){for(var n="",h=0;h<t.length;h++){var e=t[h];"little"===i&&(e=s(e)),n+=r(e.toString(16))}return n},n.zero2=e,n.zero8=r,n.join32=function(t,i,n,h){var e=n-i;a(e%4==0);for(var s=new Array(e/4),r=0,o=i;r<s.length;r++,o+=4){var u;u="big"===h?t[o]<<24|t[o+1]<<16|t[o+2]<<8|t[o+3]:t[o+3]<<24|t[o+2]<<16|t[o+1]<<8|t[o],s[r]=u>>>0}return s},n.split32=function(t,i){for(var n=new Array(4*t.length),h=0,e=0;h<t.length;h++,e+=4){var s=t[h];"big"===i?(n[e]=s>>>24,n[e+1]=s>>>16&255,n[e+2]=s>>>8&255,n[e+3]=255&s):(n[e+3]=s>>>24,n[e+2]=s>>>16&255,n[e+1]=s>>>8&255,n[e]=255&s)}return n},n.rotr32=function(t,i){return t>>>i|t<<32-i},n.rotl32=function(t,i){return t<<i|t>>>32-i},n.sum32=function(t,i){return t+i>>>0},n.sum32_3=function(t,i,n){return t+i+n>>>0},n.sum32_4=function(t,i,n,h){return t+i+n+h>>>0},n.sum32_5=function(t,i,n,h,e){return t+i+n+h+e>>>0},n.sum64=function(t,i,n,h){var e=t[i],s=h+t[i+1]>>>0,r=(s<h?1:0)+n+e;t[i]=r>>>0,t[i+1]=s},n.sum64_hi=function(t,i,n,h){return(i+h>>>0<i?1:0)+t+n>>>0},n.sum64_lo=function(t,i,n,h){return i+h>>>0},n.sum64_4_hi=function(t,i,n,h,e,s,r,o){var u=0,a=i;return u+=(a=a+h>>>0)<i?1:0,u+=(a=a+s>>>0)<s?1:0,t+n+e+r+(u+=(a=a+o>>>0)<o?1:0)>>>0},n.sum64_4_lo=function(t,i,n,h,e,s,r,o){return i+h+s+o>>>0},n.sum64_5_hi=function(t,i,n,h,e,s,r,o,u,a){var c=0,l=i;return c+=(l=l+h>>>0)<i?1:0,c+=(l=l+s>>>0)<s?1:0,c+=(l=l+o>>>0)<o?1:0,t+n+e+r+u+(c+=(l=l+a>>>0)<a?1:0)>>>0},n.sum64_5_lo=function(t,i,n,h,e,s,r,o,u,a){return i+h+s+o+a>>>0},n.rotr64_hi=function(t,i,n){return(i<<32-n|t>>>n)>>>0},n.rotr64_lo=function(t,i,n){return(t<<32-n|i>>>n)>>>0},n.shr64_hi=function(t,i,n){return t>>>n},n.shr64_lo=function(t,i,n){return(t<<32-n|i>>>n)>>>0}},{inherits:13,"minimalistic-assert":14}],13:[function(t,i,n){"function"==typeof Object.create?i.exports=function(t,i){i&&(t.super_=i,t.prototype=Object.create(i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:i.exports=function(t,i){if(i){t.super_=i;var n=function(){};n.prototype=i.prototype,t.prototype=new n,t.prototype.constructor=t}}},{}],14:[function(t,i,n){function h(t,i){if(!t)throw new Error(i||"Assertion failed")}(i.exports=h).equal=function(t,i,n){if(t!=i)throw new Error(n||"Assertion failed: "+t+" != "+i)}},{}],15:[function(t,i,n){var h=t("hash.js");i.exports=function(t){return t.file&&t.file.length?h[t.method]().update(t.file).digest("hex"):"Error. No file selected"}},{"hash.js":1}]},{},[15])(15)});