!function(e,r){"use strict";"undefined"!=typeof module&&(e=global);var t="0123456789abcdef".split(""),f=[-2147483648,8388608,32768,128],o=[24,16,8,0],a=[];if(e.JS_SHA1_TEST||"undefined"==typeof module)e&&(e.sha1=function(e){var r="string"!=typeof e;r&&e.constructor==ArrayBuffer&&(e=new Uint8Array(e));var n,u,i,s,d,c,h,l,p,y=0,A=!1,g=0,v=0,w=0,b=e.length;n=1732584193,u=4023233417,i=2562383102,s=271733878,d=3285377520;do{if(a[0]=y,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0,r)for(l=v;g>2]|=e[g]<>2]|=c<>2]|=(192|c>>6)<>2]|=(128|63&c)<=57344?(a[l>>2]|=(224|c>>12)<>2]|=(128|c>>6&63)<>2]|=(128|63&c)<>2]|=(240|c>>18)<>2]|=(128|c>>12&63)<>2]|=(128|c>>6&63)<>2]|=(128|63&c)<>2]|=f[3&l],++g),y=a[16],g>b&&l<56&&(a[15]=w<<3,A=!0),p=16;p<80;++p)h=a[p-3]^a[p-8]^a[p-14]^a[p-16],a[p]=h<<1|h>>>31;var m=n,x=u,B=i,H=s,S=d;for(p=0;p<20;p+=5)m=(h=(x=(h=(B=(h=(H=(h=(S=(h=m<<5|m>>>27)+(x&B|~x&H)+S+1518500249+a[p]|0)<<5|S>>>27)+(m&(x=x<<30|x>>>2)|~m&B)+H+1518500249+a[p+1]|0)<<5|H>>>27)+(S&(m=m<<30|m>>>2)|~S&x)+B+1518500249+a[p+2]|0)<<5|B>>>27)+(H&(S=S<<30|S>>>2)|~H&m)+x+1518500249+a[p+3]|0)<<5|x>>>27)+(B&(H=H<<30|H>>>2)|~B&S)+m+1518500249+a[p+4]|0,B=B<<30|B>>>2;for(;p<40;p+=5)m=(h=(x=(h=(B=(h=(H=(h=(S=(h=m<<5|m>>>27)+(x^B^H)+S+1859775393+a[p]|0)<<5|S>>>27)+(m^(x=x<<30|x>>>2)^B)+H+1859775393+a[p+1]|0)<<5|H>>>27)+(S^(m=m<<30|m>>>2)^x)+B+1859775393+a[p+2]|0)<<5|B>>>27)+(H^(S=S<<30|S>>>2)^m)+x+1859775393+a[p+3]|0)<<5|x>>>27)+(B^(H=H<<30|H>>>2)^S)+m+1859775393+a[p+4]|0,B=B<<30|B>>>2;for(;p<60;p+=5)m=(h=(x=(h=(B=(h=(H=(h=(S=(h=m<<5|m>>>27)+(x&B|x&H|B&H)+S-1894007588+a[p]|0)<<5|S>>>27)+(m&(x=x<<30|x>>>2)|m&B|x&B)+H-1894007588+a[p+1]|0)<<5|H>>>27)+(S&(m=m<<30|m>>>2)|S&x|m&x)+B-1894007588+a[p+2]|0)<<5|B>>>27)+(H&(S=S<<30|S>>>2)|H&m|S&m)+x-1894007588+a[p+3]|0)<<5|x>>>27)+(B&(H=H<<30|H>>>2)|B&S|H&S)+m-1894007588+a[p+4]|0,B=B<<30|B>>>2;for(;p<80;p+=5)m=(h=(x=(h=(B=(h=(H=(h=(S=(h=m<<5|m>>>27)+(x^B^H)+S-899497514+a[p]|0)<<5|S>>>27)+(m^(x=x<<30|x>>>2)^B)+H-899497514+a[p+1]|0)<<5|H>>>27)+(S^(m=m<<30|m>>>2)^x)+B-899497514+a[p+2]|0)<<5|B>>>27)+(H^(S=S<<30|S>>>2)^m)+x-899497514+a[p+3]|0)<<5|x>>>27)+(B^(H=H<<30|H>>>2)^S)+m-899497514+a[p+4]|0,B=B<<30|B>>>2;n=n+m|0,u=u+x|0,i=i+B|0,s=s+H|0,d=d+S|0}while(!A);return t[n>>28&15]+t[n>>24&15]+t[n>>20&15]+t[n>>16&15]+t[n>>12&15]+t[n>>8&15]+t[n>>4&15]+t[15&n]+t[u>>28&15]+t[u>>24&15]+t[u>>20&15]+t[u>>16&15]+t[u>>12&15]+t[u>>8&15]+t[u>>4&15]+t[15&u]+t[i>>28&15]+t[i>>24&15]+t[i>>20&15]+t[i>>16&15]+t[i>>12&15]+t[i>>8&15]+t[i>>4&15]+t[15&i]+t[s>>28&15]+t[s>>24&15]+t[s>>20&15]+t[s>>16&15]+t[s>>12&15]+t[s>>8&15]+t[s>>4&15]+t[15&s]+t[d>>28&15]+t[d>>24&15]+t[d>>20&15]+t[d>>16&15]+t[d>>12&15]+t[d>>8&15]+t[d>>4&15]+t[15&d]});else{var n=require("crypto"),u=require("buffer").Buffer;module.exports=function(e){return"string"==typeof e?n.createHash("sha1").update(e,"utf8").digest("hex"):(e.constructor==ArrayBuffer&&(e=new Uint8Array(e)),n.createHash("sha1").update(new u(e)).digest("hex"))}}}(this);