_gzf.js 1.5 KB

123456
  1. // Licensed Materials - Property of IBM
  2. // IBM Cognos Products: rs
  3. // (C) Copyright IBM Corp. 2003, 2022.
  4. // US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  5. function _gzf(){if(!this._hhm){var o={};var _tzl=this._ihm.length;for(var i=0;i<_tzl;i++){o[this._ihm.charAt(i)]=i;}_gzf.prototype._hhm=o;}};_gzf.prototype._ihm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+=/";_gzf.prototype._kdm=function(_cwm){var a=[];var _ugi=0;var _tzl=_cwm.length;for(var i=0;i<_tzl;i++){var _e1l=_cwm.charCodeAt(i);var _f1l=(++i<_tzl)?_cwm.charCodeAt(i):0;var _g1l=(++i<_tzl)?_cwm.charCodeAt(i):0;var _yvj=_e1l >> 2;var _zvj=((_e1l & 3)<< 4)|(_f1l >> 4);var _0wj=((_f1l & 15)<< 2)|(_g1l >> 6);var _1wj=_g1l & 63;a.push(this._ihm.charAt(_yvj));a.push(this._ihm.charAt(_zvj));a.push(_f1l?this._ihm.charAt(_0wj):"=");a.push(_g1l?this._ihm.charAt(_1wj):"=");if(++_ugi==19){a.push("\r\n");_ugi=0;}}return a.join("");};_gzf.prototype._ddm=function(_cwm){var s=_cwm.replace(/[^A-Za-z0-9\+\/\=]/g, "");var a=[];var _tzl=s.length;for(var i=0;i<_tzl;i++){var _e1l=this._hhm[s.charAt(i)];var _f1l=(++i<_tzl)?this._hhm[s.charAt(i)]:0;var _g1l=(++i<_tzl)?this._hhm[s.charAt(i)]:0;var _h1l=(++i<_tzl)?this._hhm[s.charAt(i)]:0;a.push(String.fromCharCode((_e1l << 2)|(_f1l >> 4)));if(_g1l!=63){a.push(String.fromCharCode(((_f1l & 15)<< 4)|(_g1l >> 2)));if(_h1l!=63){a.push(String.fromCharCode(((_g1l & 3)<< 6)| _h1l));}}}return a.join("");};