(function(x,z,y,A){("function"===typeof define&&define.amd?define:"undefined"!=typeof module&&module.exports?function(d,k){module.exports=k()}:function(d,k){z[x]=k()})([],function(){var d=function(d,h){return d<<h|d>>>32-h},k=function(d){for(var h=7,a,g="";0<=h;h--)a=d>>>4*h&15,g+=a.toString(16);return g},x=/[^\x00-\xFF]/,q=function(q,h){var a,g=new A(80),r=1732584193,t=4023233417,u=2562383102,v=271733878,w=3285377520;var b=y(q);var c=b.length;var m=[];void 0==h&&(h=!x.test(b));h||(b=unescape(encodeURIComponent(b)));
for(a=0;a<c-3;a+=4){var p=b.charCodeAt(a)<<24|b.charCodeAt(a+1)<<16|b.charCodeAt(a+2)<<8|b.charCodeAt(a+3);m.push(p)}switch(c%4){case 0:a=2147483648;break;case 1:a=b.charCodeAt(c-1)<<24|8388608;break;case 2:a=b.charCodeAt(c-2)<<24|b.charCodeAt(c-1)<<16|32768;break;case 3:a=b.charCodeAt(c-3)<<24|b.charCodeAt(c-2)<<16|b.charCodeAt(c-1)<<8|128}for(m.push(a);14!=m.length%16;)m.push(0);m.push(c>>>29);m.push(c<<3&4294967295);for(p=0;p<m.length;p+=16){for(a=0;16>a;a++)g[a]=m[p+a];for(a=16;79>=a;a++)g[a]=
d(g[a-3]^g[a-8]^g[a-14]^g[a-16],1);b=r;c=t;var e=u;var f=v;var l=w;for(a=0;19>=a;a++){var n=d(b,5)+(c&e|~c&f)+l+g[a]+1518500249&4294967295;l=f;f=e;e=d(c,30);c=b;b=n}for(a=20;39>=a;a++)n=d(b,5)+(c^e^f)+l+g[a]+1859775393&4294967295,l=f,f=e,e=d(c,30),c=b,b=n;for(a=40;59>=a;a++)n=d(b,5)+(c&e|c&f|e&f)+l+g[a]+2400959708&4294967295,l=f,f=e,e=d(c,30),c=b,b=n;for(a=60;79>=a;a++)n=d(b,5)+(c^e^f)+l+g[a]+3395469782&4294967295,l=f,f=e,e=d(c,30),c=b,b=n;r=r+b&4294967295;t=t+c&4294967295;u=u+e&4294967295;v=v+f&
4294967295;w=w+l&4294967295}a=k(r)+k(t)+k(u)+k(v)+k(w);return a=a.toLowerCase()};q._proto_=y.prototype.sha1=function(d){return q(this,d)};return q})})("sha1",this,String,Array);
