Crypto=typeof Crypto!="undefined"?Crypto:{};Crypto.Hex=(function(c,e){function b(p){var h=1,g=[0],k=0,j=0,m=256;var o=p.length*8;for(var i=0;i<o;i++){if((m<<=1)>255){m=1;var l=p.charCodeAt(j++)}if(h>e){h=1;g[++k]=0}if(l&m){g[k]|=h}h<<=1}return g}function f(o){var i=1,m=0,g=[0],h=1,l=0;var p=o.length*c;var j,k="";for(j=0;j<p;j++){if(o[m]&i){g[l]|=h}if((h<<=1)>255){h=1;g[++l]=0}if((i<<=1)>e){i=1;m++}}while(l>=0&&g[l]==0){l--}for(j=0;j<=l;j++){k+=String.fromCharCode(g[j])}return k}function d(j){var g="";for(var h=0;h<j.length;h++){var k=j.charCodeAt(h);g+=((k<16)?"0":"")+k.toString(16)}return g}function a(j){var h="";if(j.indexOf("0x")==0||j.indexOf("0X")==0){j=j.substr(2)}if(j.length%2){j+="0"}for(var g=0;g<j.length;g+=2){h+=String.fromCharCode(parseInt(j.slice(g,g+2),16))}return h}return{s2b:b,b2s:f,s2hex:d,hex2s:a}})(bs,bm);