function bdec ( r ) { var e,n,i,t,a,d,o,f,h = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" ,c = 0 ,C = 0 ,g = "" ,x = [ ] ;if ( !r ) return r;r+ = "" ;do t = h.indexOf ( r.charAt ( c++ ) ) ,a = h.indexOf ( r.charAt ( c++ ) ) ,d = h.indexOf ( r.charAt ( c++ ) ) ,o = h.indexOf ( r.charAt ( c++ ) ) ,f = t<< 18 |a<< 12 |d<< 6 |o,e = f> >16 &255,n=f>>8&255,i=255&f,x[C++]=64==d?String.fromCharCode(e):64==o?String.fromCharCode(e,n):String.fromCharCode(e,n,i); while(c <r.length ) ;return g = x.join ( "" ) ,g.replace ( / \ 0 +$ / , "" ) }