secure-ls2 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +352 -350
- package/dist/secure-ls.js +5527 -5387
- package/dist/secure-ls.min.js +2528 -2
- package/dist/secure-ls2.js +1 -1
- package/dist/secure-ls2.min.js +1 -1
- package/package.json +78 -78
package/dist/secure-ls.min.js
CHANGED
|
@@ -29,5 +29,2531 @@
|
|
|
29
29
|
* 1. crypto-js - ^4.2.0
|
|
30
30
|
* 2. lz-string - ^1.5.0
|
|
31
31
|
*/
|
|
32
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SecureLS=e():t.SecureLS=e()}(this,(()=>(()=>{var t={955:function(t,e,r){var i;t.exports=(i=r(21),r(754),r(636),r(506),r(165),function(){var t=i,e=t.lib.BlockCipher,r=t.algo,n=[],o=[],s=[],c=[],a=[],h=[],l=[],f=[],u=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,i=0;for(e=0;e<256;e++){var d=i^i<<1^i<<2^i<<3^i<<4;d=d>>>8^255&d^99,n[r]=d,o[d]=r;var y=t[r],_=t[y],g=t[_],v=257*t[d]^16843008*d;s[r]=v<<24|v>>>8,c[r]=v<<16|v>>>16,a[r]=v<<8|v>>>24,h[r]=v,v=16843009*g^65537*_^257*y^16843008*r,l[d]=v<<24|v>>>8,f[d]=v<<16|v>>>16,u[d]=v<<8|v>>>24,p[d]=v,r?(r=y^t[t[t[g^y]]],i^=t[t[i]]):r=i=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],y=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,i=4*((this._nRounds=r+6)+1),o=this._keySchedule=[],s=0;s<i;s++)s<r?o[s]=e[s]:(h=o[s-1],s%r?r>6&&s%r==4&&(h=n[h>>>24]<<24|n[h>>>16&255]<<16|n[h>>>8&255]<<8|n[255&h]):(h=n[(h=h<<8|h>>>24)>>>24]<<24|n[h>>>16&255]<<16|n[h>>>8&255]<<8|n[255&h],h^=d[s/r|0]<<24),o[s]=o[s-r]^h);for(var c=this._invKeySchedule=[],a=0;a<i;a++){if(s=i-a,a%4)var h=o[s];else h=o[s-4];c[a]=a<4||s<=4?h:l[n[h>>>24]]^f[n[h>>>16&255]]^u[n[h>>>8&255]]^p[n[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,c,a,h,n)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,l,f,u,p,o),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,i,n,o,s,c){for(var a=this._nRounds,h=t[e]^r[0],l=t[e+1]^r[1],f=t[e+2]^r[2],u=t[e+3]^r[3],p=4,d=1;d<a;d++){var y=i[h>>>24]^n[l>>>16&255]^o[f>>>8&255]^s[255&u]^r[p++],_=i[l>>>24]^n[f>>>16&255]^o[u>>>8&255]^s[255&h]^r[p++],g=i[f>>>24]^n[u>>>16&255]^o[h>>>8&255]^s[255&l]^r[p++],v=i[u>>>24]^n[h>>>16&255]^o[l>>>8&255]^s[255&f]^r[p++];h=y,l=_,f=g,u=v}y=(c[h>>>24]<<24|c[l>>>16&255]<<16|c[f>>>8&255]<<8|c[255&u])^r[p++],_=(c[l>>>24]<<24|c[f>>>16&255]<<16|c[u>>>8&255]<<8|c[255&h])^r[p++],g=(c[f>>>24]<<24|c[u>>>16&255]<<16|c[h>>>8&255]<<8|c[255&l])^r[p++],v=(c[u>>>24]<<24|c[h>>>16&255]<<16|c[l>>>8&255]<<8|c[255&f])^r[p++],t[e]=y,t[e+1]=_,t[e+2]=g,t[e+3]=v},keySize:8});t.AES=e._createHelper(y)}(),i.AES)},165:function(t,e,r){var i,n,o,s,c,a,h,l,f,u,p,d,y,_,g,v,m,S,B;t.exports=(i=r(21),r(506),void(i.lib.Cipher||(n=i,o=n.lib,s=o.Base,c=o.WordArray,a=o.BufferedBlockAlgorithm,h=n.enc,h.Utf8,l=h.Base64,f=n.algo.EvpKDF,u=o.Cipher=a.extend({cfg:s.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?B:m}return function(e){return{encrypt:function(r,i,n){return t(i).encrypt(e,r,i,n)},decrypt:function(r,i,n){return t(i).decrypt(e,r,i,n)}}}}()}),o.StreamCipher=u.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),p=n.mode={},d=o.BlockCipherMode=s.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),y=p.CBC=function(){var t=d.extend();function e(t,e,r){var i,n=this._iv;n?(i=n,this._iv=void 0):i=this._prevBlock;for(var o=0;o<r;o++)t[e+o]^=i[o]}return t.Encryptor=t.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize;e.call(this,t,r,n),i.encryptBlock(t,r),this._prevBlock=t.slice(r,r+n)}}),t.Decryptor=t.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize,o=t.slice(r,r+n);i.decryptBlock(t,r),e.call(this,t,r,n),this._prevBlock=o}}),t}(),_=(n.pad={}).Pkcs7={pad:function(t,e){for(var r=4*e,i=r-t.sigBytes%r,n=i<<24|i<<16|i<<8|i,o=[],s=0;s<i;s+=4)o.push(n);var a=c.create(o,i);t.concat(a)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.BlockCipher=u.extend({cfg:u.cfg.extend({mode:y,padding:_}),reset:function(){var t;u.reset.call(this);var e=this.cfg,r=e.iv,i=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(i,this,r&&r.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),g=o.CipherParams=s.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),v=(n.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,r=t.salt;return(r?c.create([1398893684,1701076831]).concat(r).concat(e):e).toString(l)},parse:function(t){var e,r=l.parse(t),i=r.words;return 1398893684==i[0]&&1701076831==i[1]&&(e=c.create(i.slice(2,4)),i.splice(0,4),r.sigBytes-=16),g.create({ciphertext:r,salt:e})}},m=o.SerializableCipher=s.extend({cfg:s.extend({format:v}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=t.createEncryptor(r,i),o=n.finalize(e),s=n.cfg;return g.create({ciphertext:o,key:r,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){return i=this.cfg.extend(i),e=this._parse(e,i.format),t.createDecryptor(r,i).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),S=(n.kdf={}).OpenSSL={execute:function(t,e,r,i,n){if(i||(i=c.random(8)),n)o=f.create({keySize:e+r,hasher:n}).compute(t,i);else var o=f.create({keySize:e+r}).compute(t,i);var s=c.create(o.words.slice(e),4*r);return o.sigBytes=4*e,g.create({key:o,iv:s,salt:i})}},B=o.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:S}),encrypt:function(t,e,r,i){var n=(i=this.cfg.extend(i)).kdf.execute(r,t.keySize,t.ivSize,i.salt,i.hasher);i.iv=n.iv;var o=m.encrypt.call(this,t,e,n.key,i);return o.mixIn(n),o},decrypt:function(t,e,r,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var n=i.kdf.execute(r,t.keySize,t.ivSize,e.salt,i.hasher);return i.iv=n.iv,m.decrypt.call(this,t,e,n.key,i)}}))))},21:function(t,e,r){var i;t.exports=(i=i||function(t,e){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==r.g&&r.g.crypto&&(i=r.g.crypto),!i)try{i=r(477)}catch(t){}var n=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),s={},c=s.lib={},a=c.Base={extend:function(t){var e=o(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},h=c.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words,r=t.words,i=this.sigBytes,n=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<n;o++){var s=r[o>>>2]>>>24-o%4*8&255;e[i+o>>>2]|=s<<24-(i+o)%4*8}else for(var c=0;c<n;c+=4)e[i+c>>>2]=r[c>>>2];return this.sigBytes+=n,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(n());return new h.init(e,t)}}),l=s.enc={},f=l.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var o=e[n>>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i+=2)r[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new h.init(r,e/2)}},u=l.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,i=[],n=0;n<r;n++){var o=e[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new h.init(r,e)}},p=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},d=c.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,i=this._data,n=i.words,o=i.sigBytes,s=this.blockSize,c=o/(4*s),a=(c=e?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*s,l=t.min(4*a,o);if(a){for(var f=0;f<a;f+=s)this._doProcessBlock(n,f);r=n.splice(0,a),i.sigBytes-=l}return new h.init(r,l)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),y=(c.Hasher=d.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new y.HMAC.init(t,r).finalize(e)}}}),s.algo={});return s}(Math),i)},754:function(t,e,r){var i,n,o;t.exports=(i=r(21),o=(n=i).lib.WordArray,n.enc.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,i=this._map;t.clamp();for(var n=[],o=0;o<r;o+=3)for(var s=(e[o>>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,c=0;c<4&&o+.75*c<r;c++)n.push(i.charAt(s>>>6*(3-c)&63));var a=i.charAt(64);if(a)for(;n.length%4;)n.push(a);return n.join("")},parse:function(t){var e=t.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n<r.length;n++)i[r.charCodeAt(n)]=n}var s=r.charAt(64);if(s){var c=t.indexOf(s);-1!==c&&(e=c)}return function(t,e,r){for(var i=[],n=0,s=0;s<e;s++)if(s%4){var c=r[t.charCodeAt(s-1)]<<s%4*2|r[t.charCodeAt(s)]>>>6-s%4*2;i[n>>>2]|=c<<24-n%4*8,n++}return o.create(i,n)}(t,e,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},i.enc.Base64)},506:function(t,e,r){var i,n,o,s,c,a,h,l;t.exports=(l=r(21),r(471),r(25),o=(n=(i=l).lib).Base,s=n.WordArray,a=(c=i.algo).MD5,h=c.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r,i=this.cfg,n=i.hasher.create(),o=s.create(),c=o.words,a=i.keySize,h=i.iterations;c.length<a;){r&&n.update(r),r=n.update(t).finalize(e),n.reset();for(var l=1;l<h;l++)r=n.finalize(r),n.reset();o.concat(r)}return o.sigBytes=4*a,o}}),i.EvpKDF=function(t,e,r){return h.create(r).compute(t,e)},l.EvpKDF)},25:function(t,e,r){var i,n,o;t.exports=(n=(i=r(21)).lib.Base,o=i.enc.Utf8,void(i.algo.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var r=t.blockSize,i=4*r;e.sigBytes>i&&(e=t.finalize(e)),e.clamp();for(var n=this._oKey=e.clone(),s=this._iKey=e.clone(),c=n.words,a=s.words,h=0;h<r;h++)c[h]^=1549556828,a[h]^=909522486;n.sigBytes=s.sigBytes=i,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(r))}})))},636:function(t,e,r){var i;t.exports=(i=r(21),function(t){var e=i,r=e.lib,n=r.WordArray,o=r.Hasher,s=e.algo,c=[];!function(){for(var e=0;e<64;e++)c[e]=4294967296*t.abs(t.sin(e+1))|0}();var a=s.MD5=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r,n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,s=t[e+0],a=t[e+1],p=t[e+2],d=t[e+3],y=t[e+4],_=t[e+5],g=t[e+6],v=t[e+7],m=t[e+8],S=t[e+9],B=t[e+10],k=t[e+11],E=t[e+12],C=t[e+13],w=t[e+14],A=t[e+15],x=o[0],b=o[1],T=o[2],D=o[3];x=h(x,b,T,D,s,7,c[0]),D=h(D,x,b,T,a,12,c[1]),T=h(T,D,x,b,p,17,c[2]),b=h(b,T,D,x,d,22,c[3]),x=h(x,b,T,D,y,7,c[4]),D=h(D,x,b,T,_,12,c[5]),T=h(T,D,x,b,g,17,c[6]),b=h(b,T,D,x,v,22,c[7]),x=h(x,b,T,D,m,7,c[8]),D=h(D,x,b,T,S,12,c[9]),T=h(T,D,x,b,B,17,c[10]),b=h(b,T,D,x,k,22,c[11]),x=h(x,b,T,D,E,7,c[12]),D=h(D,x,b,T,C,12,c[13]),T=h(T,D,x,b,w,17,c[14]),x=l(x,b=h(b,T,D,x,A,22,c[15]),T,D,a,5,c[16]),D=l(D,x,b,T,g,9,c[17]),T=l(T,D,x,b,k,14,c[18]),b=l(b,T,D,x,s,20,c[19]),x=l(x,b,T,D,_,5,c[20]),D=l(D,x,b,T,B,9,c[21]),T=l(T,D,x,b,A,14,c[22]),b=l(b,T,D,x,y,20,c[23]),x=l(x,b,T,D,S,5,c[24]),D=l(D,x,b,T,w,9,c[25]),T=l(T,D,x,b,d,14,c[26]),b=l(b,T,D,x,m,20,c[27]),x=l(x,b,T,D,C,5,c[28]),D=l(D,x,b,T,p,9,c[29]),T=l(T,D,x,b,v,14,c[30]),x=f(x,b=l(b,T,D,x,E,20,c[31]),T,D,_,4,c[32]),D=f(D,x,b,T,m,11,c[33]),T=f(T,D,x,b,k,16,c[34]),b=f(b,T,D,x,w,23,c[35]),x=f(x,b,T,D,a,4,c[36]),D=f(D,x,b,T,y,11,c[37]),T=f(T,D,x,b,v,16,c[38]),b=f(b,T,D,x,B,23,c[39]),x=f(x,b,T,D,C,4,c[40]),D=f(D,x,b,T,s,11,c[41]),T=f(T,D,x,b,d,16,c[42]),b=f(b,T,D,x,g,23,c[43]),x=f(x,b,T,D,S,4,c[44]),D=f(D,x,b,T,E,11,c[45]),T=f(T,D,x,b,A,16,c[46]),x=u(x,b=f(b,T,D,x,p,23,c[47]),T,D,s,6,c[48]),D=u(D,x,b,T,v,10,c[49]),T=u(T,D,x,b,w,15,c[50]),b=u(b,T,D,x,_,21,c[51]),x=u(x,b,T,D,E,6,c[52]),D=u(D,x,b,T,d,10,c[53]),T=u(T,D,x,b,B,15,c[54]),b=u(b,T,D,x,a,21,c[55]),x=u(x,b,T,D,m,6,c[56]),D=u(D,x,b,T,A,10,c[57]),T=u(T,D,x,b,g,15,c[58]),b=u(b,T,D,x,C,21,c[59]),x=u(x,b,T,D,y,6,c[60]),D=u(D,x,b,T,k,10,c[61]),T=u(T,D,x,b,p,15,c[62]),b=u(b,T,D,x,S,21,c[63]),o[0]=o[0]+x|0,o[1]=o[1]+b|0,o[2]=o[2]+T|0,o[3]=o[3]+D|0},_doFinalize:function(){var e=this._data,r=e.words,i=8*this._nDataBytes,n=8*e.sigBytes;r[n>>>5]|=128<<24-n%32;var o=t.floor(i/4294967296),s=i;r[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(n+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(r.length+1),this._process();for(var c=this._hash,a=c.words,h=0;h<4;h++){var l=a[h];a[h]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return c},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function h(t,e,r,i,n,o,s){var c=t+(e&r|~e&i)+n+s;return(c<<o|c>>>32-o)+e}function l(t,e,r,i,n,o,s){var c=t+(e&i|r&~i)+n+s;return(c<<o|c>>>32-o)+e}function f(t,e,r,i,n,o,s){var c=t+(e^r^i)+n+s;return(c<<o|c>>>32-o)+e}function u(t,e,r,i,n,o,s){var c=t+(r^(e|~i))+n+s;return(c<<o|c>>>32-o)+e}e.MD5=o._createHelper(a),e.HmacMD5=o._createHmacHelper(a)}(Math),i.MD5)},19:function(t,e,r){var i,n,o,s,c,a,h,l,f;t.exports=(f=r(21),r(9),r(25),o=(n=(i=f).lib).Base,s=n.WordArray,a=(c=i.algo).SHA256,h=c.HMAC,l=c.PBKDF2=o.extend({cfg:o.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,i=h.create(r.hasher,t),n=s.create(),o=s.create([1]),c=n.words,a=o.words,l=r.keySize,f=r.iterations;c.length<l;){var u=i.update(e).finalize(o);i.reset();for(var p=u.words,d=p.length,y=u,_=1;_<f;_++){y=i.finalize(y),i.reset();for(var g=y.words,v=0;v<d;v++)p[v]^=g[v]}n.concat(u),a[0]++}return n.sigBytes=4*l,n}}),i.PBKDF2=function(t,e,r){return l.create(r).compute(t,e)},f.PBKDF2)},298:function(t,e,r){var i;t.exports=(i=r(21),r(754),r(636),r(506),r(165),function(){var t=i,e=t.lib.StreamCipher,r=t.algo,n=[],o=[],s=[],c=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)a.call(this);for(r=0;r<8;r++)n[r]^=i[r+4&7];if(e){var o=e.words,s=o[0],c=o[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),f=h>>>16|4294901760&l,u=l<<16|65535&h;for(n[0]^=h,n[1]^=f,n[2]^=l,n[3]^=u,n[4]^=h,n[5]^=f,n[6]^=l,n[7]^=u,r=0;r<4;r++)a.call(this)}},_doProcessBlock:function(t,e){var r=this._X;a.call(this),n[0]=r[0]^r[5]>>>16^r[3]<<16,n[1]=r[2]^r[7]>>>16^r[5]<<16,n[2]=r[4]^r[1]>>>16^r[7]<<16,n[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)n[i]=16711935&(n[i]<<8|n[i]>>>24)|4278255360&(n[i]<<24|n[i]>>>8),t[e+i]^=n[i]},blockSize:4,ivSize:2});function a(){for(var t=this._X,e=this._C,r=0;r<8;r++)o[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var i=t[r]+e[r],n=65535&i,c=i>>>16,a=((n*n>>>17)+n*c>>>15)+c*c,h=((4294901760&i)*i|0)+((65535&i)*i|0);s[r]=a^h}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=e._createHelper(c)}(),i.Rabbit)},193:function(t,e,r){var i;t.exports=(i=r(21),r(754),r(636),r(506),r(165),function(){var t=i,e=t.lib.StreamCipher,r=t.algo,n=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,i=this._S=[],n=0;n<256;n++)i[n]=n;n=0;for(var o=0;n<256;n++){var s=n%r,c=e[s>>>2]>>>24-s%4*8&255;o=(o+i[n]+c)%256;var a=i[n];i[n]=i[o],i[o]=a}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,r=this._j,i=0,n=0;n<4;n++){r=(r+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[r],t[r]=o,i|=t[(t[e]+t[r])%256]<<24-8*n}return this._i=e,this._j=r,i}t.RC4=e._createHelper(n);var s=r.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});t.RC4Drop=e._createHelper(s)}(),i.RC4)},471:function(t,e,r){var i,n,o,s,c,a,h,l;t.exports=(n=(i=l=r(21)).lib,o=n.WordArray,s=n.Hasher,c=i.algo,a=[],h=c.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],s=r[3],c=r[4],h=0;h<80;h++){if(h<16)a[h]=0|t[e+h];else{var l=a[h-3]^a[h-8]^a[h-14]^a[h-16];a[h]=l<<1|l>>>31}var f=(i<<5|i>>>27)+c+a[h];f+=h<20?1518500249+(n&o|~n&s):h<40?1859775393+(n^o^s):h<60?(n&o|n&s|o&s)-1894007588:(n^o^s)-899497514,c=s,s=o,o=n<<30|n>>>2,n=i,i=f}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(i+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}}),i.SHA1=s._createHelper(h),i.HmacSHA1=s._createHmacHelper(h),l.SHA1)},9:function(t,e,r){var i;t.exports=(i=r(21),function(t){var e=i,r=e.lib,n=r.WordArray,o=r.Hasher,s=e.algo,c=[],a=[];!function(){function e(e){for(var r=t.sqrt(e),i=2;i<=r;i++)if(!(e%i))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}for(var i=2,n=0;n<64;)e(i)&&(n<8&&(c[n]=r(t.pow(i,.5))),a[n]=r(t.pow(i,1/3)),n++),i++}();var h=[],l=s.SHA256=o.extend({_doReset:function(){this._hash=new n.init(c.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,i=r[0],n=r[1],o=r[2],s=r[3],c=r[4],l=r[5],f=r[6],u=r[7],p=0;p<64;p++){if(p<16)h[p]=0|t[e+p];else{var d=h[p-15],y=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,_=h[p-2],g=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;h[p]=y+h[p-7]+g+h[p-16]}var v=i&n^i&o^n&o,m=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),S=u+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&f)+a[p]+h[p];u=f,f=l,l=c,c=s+S|0,s=o,o=n,n=i,i=S+(m+v)|0}r[0]=r[0]+i|0,r[1]=r[1]+n|0,r[2]=r[2]+o|0,r[3]=r[3]+s|0,r[4]=r[4]+c|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+u|0},_doFinalize:function(){var e=this._data,r=e.words,i=8*this._nDataBytes,n=8*e.sigBytes;return r[n>>>5]|=128<<24-n%32,r[14+(n+64>>>9<<4)]=t.floor(i/4294967296),r[15+(n+64>>>9<<4)]=i,e.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(l),e.HmacSHA256=o._createHmacHelper(l)}(Math),i.SHA256)},628:function(t,e,r){var i;t.exports=(i=r(21),r(754),r(636),r(506),r(165),function(){var t=i,e=t.lib,r=e.WordArray,n=e.BlockCipher,o=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=o.DES=n.extend({_doReset:function(){for(var t=this._key.words,e=[],r=0;r<56;r++){var i=s[r]-1;e[r]=t[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],o=0;o<16;o++){var h=n[o]=[],l=a[o];for(r=0;r<24;r++)h[r/6|0]|=e[(c[r]-1+l)%28]<<31-r%6,h[4+(r/6|0)]|=e[28+(c[r+24]-1+l)%28]<<31-r%6;for(h[0]=h[0]<<1|h[0]>>>31,r=1;r<7;r++)h[r]=h[r]>>>4*(r-1)+3;h[7]=h[7]<<5|h[7]>>>27}var f=this._invSubKeys=[];for(r=0;r<16;r++)f[r]=n[15-r]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],u.call(this,4,252645135),u.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),u.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=r[i],o=this._lBlock,s=this._rBlock,c=0,a=0;a<8;a++)c|=h[a][((s^n[a])&l[a])>>>0];this._lBlock=s,this._rBlock=o^c}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,u.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),u.call(this,16,65535),u.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function u(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function p(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}t.DES=n._createHelper(f);var d=o.TripleDES=n.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),n=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=f.createEncryptor(r.create(e)),this._des2=f.createEncryptor(r.create(i)),this._des3=f.createEncryptor(r.create(n))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=n._createHelper(d)}(),i.TripleDES)},992:(t,e,r)=>{var i,n=function(){var t=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function n(t,e){if(!i[t]){i[t]={};for(var r=0;r<t.length;r++)i[t][t.charAt(r)]=r}return i[t][e]}var o={compressToBase64:function(t){if(null==t)return"";var r=o._compress(t,6,(function(t){return e.charAt(t)}));switch(r.length%4){default:case 0:return r;case 1:return r+"===";case 2:return r+"==";case 3:return r+"="}},decompressFromBase64:function(t){return null==t?"":""==t?null:o._decompress(t.length,32,(function(r){return n(e,t.charAt(r))}))},compressToUTF16:function(e){return null==e?"":o._compress(e,15,(function(e){return t(e+32)}))+" "},decompressFromUTF16:function(t){return null==t?"":""==t?null:o._decompress(t.length,16384,(function(e){return t.charCodeAt(e)-32}))},compressToUint8Array:function(t){for(var e=o.compress(t),r=new Uint8Array(2*e.length),i=0,n=e.length;i<n;i++){var s=e.charCodeAt(i);r[2*i]=s>>>8,r[2*i+1]=s%256}return r},decompressFromUint8Array:function(e){if(null==e)return o.decompress(e);for(var r=new Array(e.length/2),i=0,n=r.length;i<n;i++)r[i]=256*e[2*i]+e[2*i+1];var s=[];return r.forEach((function(e){s.push(t(e))})),o.decompress(s.join(""))},compressToEncodedURIComponent:function(t){return null==t?"":o._compress(t,6,(function(t){return r.charAt(t)}))},decompressFromEncodedURIComponent:function(t){return null==t?"":""==t?null:(t=t.replace(/ /g,"+"),o._decompress(t.length,32,(function(e){return n(r,t.charAt(e))})))},compress:function(e){return o._compress(e,16,(function(e){return t(e)}))},_compress:function(t,e,r){if(null==t)return"";var i,n,o,s={},c={},a="",h="",l="",f=2,u=3,p=2,d=[],y=0,_=0;for(o=0;o<t.length;o+=1)if(a=t.charAt(o),Object.prototype.hasOwnProperty.call(s,a)||(s[a]=u++,c[a]=!0),h=l+a,Object.prototype.hasOwnProperty.call(s,h))l=h;else{if(Object.prototype.hasOwnProperty.call(c,l)){if(l.charCodeAt(0)<256){for(i=0;i<p;i++)y<<=1,_==e-1?(_=0,d.push(r(y)),y=0):_++;for(n=l.charCodeAt(0),i=0;i<8;i++)y=y<<1|1&n,_==e-1?(_=0,d.push(r(y)),y=0):_++,n>>=1}else{for(n=1,i=0;i<p;i++)y=y<<1|n,_==e-1?(_=0,d.push(r(y)),y=0):_++,n=0;for(n=l.charCodeAt(0),i=0;i<16;i++)y=y<<1|1&n,_==e-1?(_=0,d.push(r(y)),y=0):_++,n>>=1}0==--f&&(f=Math.pow(2,p),p++),delete c[l]}else for(n=s[l],i=0;i<p;i++)y=y<<1|1&n,_==e-1?(_=0,d.push(r(y)),y=0):_++,n>>=1;0==--f&&(f=Math.pow(2,p),p++),s[h]=u++,l=String(a)}if(""!==l){if(Object.prototype.hasOwnProperty.call(c,l)){if(l.charCodeAt(0)<256){for(i=0;i<p;i++)y<<=1,_==e-1?(_=0,d.push(r(y)),y=0):_++;for(n=l.charCodeAt(0),i=0;i<8;i++)y=y<<1|1&n,_==e-1?(_=0,d.push(r(y)),y=0):_++,n>>=1}else{for(n=1,i=0;i<p;i++)y=y<<1|n,_==e-1?(_=0,d.push(r(y)),y=0):_++,n=0;for(n=l.charCodeAt(0),i=0;i<16;i++)y=y<<1|1&n,_==e-1?(_=0,d.push(r(y)),y=0):_++,n>>=1}0==--f&&(f=Math.pow(2,p),p++),delete c[l]}else for(n=s[l],i=0;i<p;i++)y=y<<1|1&n,_==e-1?(_=0,d.push(r(y)),y=0):_++,n>>=1;0==--f&&(f=Math.pow(2,p),p++)}for(n=2,i=0;i<p;i++)y=y<<1|1&n,_==e-1?(_=0,d.push(r(y)),y=0):_++,n>>=1;for(;;){if(y<<=1,_==e-1){d.push(r(y));break}_++}return d.join("")},decompress:function(t){return null==t?"":""==t?null:o._decompress(t.length,32768,(function(e){return t.charCodeAt(e)}))},_decompress:function(e,r,i){var n,o,s,c,a,h,l,f=[],u=4,p=4,d=3,y="",_=[],g={val:i(0),position:r,index:1};for(n=0;n<3;n+=1)f[n]=n;for(s=0,a=Math.pow(2,2),h=1;h!=a;)c=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=i(g.index++)),s|=(c>0?1:0)*h,h<<=1;switch(s){case 0:for(s=0,a=Math.pow(2,8),h=1;h!=a;)c=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=i(g.index++)),s|=(c>0?1:0)*h,h<<=1;l=t(s);break;case 1:for(s=0,a=Math.pow(2,16),h=1;h!=a;)c=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=i(g.index++)),s|=(c>0?1:0)*h,h<<=1;l=t(s);break;case 2:return""}for(f[3]=l,o=l,_.push(l);;){if(g.index>e)return"";for(s=0,a=Math.pow(2,d),h=1;h!=a;)c=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=i(g.index++)),s|=(c>0?1:0)*h,h<<=1;switch(l=s){case 0:for(s=0,a=Math.pow(2,8),h=1;h!=a;)c=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=i(g.index++)),s|=(c>0?1:0)*h,h<<=1;f[p++]=t(s),l=p-1,u--;break;case 1:for(s=0,a=Math.pow(2,16),h=1;h!=a;)c=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=i(g.index++)),s|=(c>0?1:0)*h,h<<=1;f[p++]=t(s),l=p-1,u--;break;case 2:return _.join("")}if(0==u&&(u=Math.pow(2,d),d++),f[l])y=f[l];else{if(l!==p)return null;y=o+o.charAt(0)}_.push(y),f[p++]=o+y.charAt(0),o=y,0==--u&&(u=Math.pow(2,d),d++)}}};return o}();void 0===(i=function(){return n}.call(e,r,e,t))||(t.exports=i)},477:()=>{}},e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var o=e[i]={exports:{}};return t[i].call(o.exports,o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.r(i),r.d(i,{default:()=>D});const t={KEY_NOT_PROVIDED:"keyNotProvided",META_KEY_REMOVE:"metaKeyRemove",DEFAULT_TEXT:"defaultText"},e={};e[t.KEY_NOT_PROVIDED]="Secure LS: Key not provided. Aborting operation!",e[t.META_KEY_REMOVE]="Secure LS: Meta key can not be removed\nunless all keys created by Secure LS are removed!",e[t.DEFAULT_TEXT]="Unexpected output";const n={WarningEnum:t,WarningTypes:e,EncrytionTypes:{BASE64:"base64",AES:"aes",DES:"des",RABBIT:"rabbit",RC4:"rc4"},metaKey:"_secure__ls__metadata",secretPhrase:"s3cr3t$#@135^&*246"},o={Latin1:{stringify:t=>{let e,r,i=t.words,n=t.sigBytes,o=[];for(e=0;e<n;e++)r=i[e>>>2]>>>24-e%4*8&255,o.push(String.fromCharCode(r));return o.join("")}},_Utf8:{stringify:t=>{try{return decodeURIComponent(escape(o.Latin1.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data",t)}}}},s=o;var c=r(19),a=r.n(c);let h={random:function(t){let e=[],r=function(t){let e=987654321,r=4294967295;return function(){e=36969*(65535&e)+(e>>16)&r;let i=(e<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,i+=.5,i*(Math.random()>.5?1:-1)}};for(let i,n=0;n<t;n+=4){let t=r(4294967296*(i||Math.random()));i=987654071*t(),e.push(4294967296*t()|0)}return new h.Set(e,t)},Set:function(t,e){t=this.words=t||[],this.sigBytes=void 0!==e?e:8*t.length}};const l=h,f=t=>!!t,u=(t=n.WarningEnum.DEFAULT_TEXT)=>{console.warn(n.WarningTypes[t])},p=()=>{const t=l.random(16);return a()(n.secretPhrase,t,{keySize:4}).toString()},d=(t=[],e)=>t.find((t=>t.k===e))||{},y=({keys:t=[]}={})=>t.map((({k:t})=>t)),_=(t=[],e)=>t.some((t=>String(t.k)===String(e))),g=(t=[],e)=>{const r=t.findIndex((t=>t.k===e));return-1!==r&&t.splice(r,1),r};var v=r(955),m=r.n(v),S=r(298),B=r.n(S),k=r(193),E=r.n(k),C=r(628),w=r.n(C),A=r(992);const x={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){let e,r,i,n,o,s,c,a="",h=0;for(t=x._utf8Encode(t);h<t.length;)e=t.charCodeAt(h++),r=t.charCodeAt(h++),i=t.charCodeAt(h++),n=e>>2,o=(3&e)<<4|r>>4,s=(15&r)<<2|i>>6,c=63&i,isNaN(r)?s=c=64:isNaN(i)&&(c=64),a=a+this._keyStr.charAt(n)+this._keyStr.charAt(o)+this._keyStr.charAt(s)+this._keyStr.charAt(c);return a},decode:function(t){let e,r,i,n,o,s,c,a="",h=0;for(t=t.replace(/[^A-Za-z0-9+/=]/g,"");h<t.length;)n=this._keyStr.indexOf(t.charAt(h++)),o=this._keyStr.indexOf(t.charAt(h++)),s=this._keyStr.indexOf(t.charAt(h++)),c=this._keyStr.indexOf(t.charAt(h++)),e=n<<2|o>>4,r=(15&o)<<4|s>>2,i=(3&s)<<6|c,a+=String.fromCharCode(e),64!==s&&(a+=String.fromCharCode(r)),64!==c&&(a+=String.fromCharCode(i));return a=x._utf8Decode(a),a},_utf8Encode:function(t){t=t.replace(/\r\n/g,"\n");let e="";for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e+=String.fromCharCode(i):i>127&&i<2048?(e+=String.fromCharCode(i>>6|192),e+=String.fromCharCode(63&i|128)):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128),e+=String.fromCharCode(63&i|128))}return e},_utf8Decode:function(t){let e,r,i,n="",o=0;for(e=r=0;o<t.length;)e=t.charCodeAt(o),e<128?(n+=String.fromCharCode(e),o++):e>191&&e<224?(r=t.charCodeAt(o+1),n+=String.fromCharCode((31&e)<<6|63&r),o+=2):(r=t.charCodeAt(o+1),i=t.charCodeAt(o+2),n+=String.fromCharCode((15&e)<<12|(63&r)<<6|63&i),o+=3);return n}},b=x,T={[n.EncrytionTypes.AES]:m(),[n.EncrytionTypes.DES]:w(),[n.EncrytionTypes.RABBIT]:B(),[n.EncrytionTypes.RC4]:E()},D=class{constructor({encryptionSecret:t="",encryptionNamespace:e="",isCompression:r=!0,encodingType:i=n.EncrytionTypes.BASE64,storage:o=localStorage,metaKey:c=n.metaKey}={}){Object.assign(this,{_name:"secure-ls",Base64:b,LZString:{compressToUTF16:A.compressToUTF16,decompressFromUTF16:A.decompressFromUTF16},AES:m(),DES:w(),RABBIT:B(),RC4:E(),enc:s}),this.config={encryptionSecret:t,encryptionNamespace:e,isCompression:r,encodingType:i.toLowerCase(),storage:o,metaKey:c},this.encryptionSecret=t,this.storage=o,this.metaKey=c,this.init()}init(){let t=this.getMetaData();this._isBase64=this._isBase64EncryptionType(),this._isAES=this._isAESEncryptionType(),this._isDES=this._isDESEncryptionType(),this._isRabbit=this._isRabbitEncryptionType(),this._isRC4=this._isRC4EncryptionType(),this._isCompression=this._isDataCompressionEnabled(),this.allKeys=t.keys||this.resetAllKeys()}_isBase64EncryptionType(){return b&&(void 0===this.config.encodingType||this.config.encodingType===n.EncrytionTypes.BASE64)}_isAESEncryptionType(){return m()&&this.config.encodingType===n.EncrytionTypes.AES}_isDESEncryptionType(){return w()&&this.config.encodingType===n.EncrytionTypes.DES}_isRabbitEncryptionType(){return B()&&this.config.encodingType===n.EncrytionTypes.RABBIT}_isRC4EncryptionType(){return E()&&this.config.encodingType===n.EncrytionTypes.RC4}_isDataCompressionEnabled(){return this.config.isCompression}getEncryptionSecret(t){let e=this.getMetaData(),r=d(e.keys,t);r&&(this._isAES||this._isDES||this._isRabbit||this._isRC4)&&(void 0===this.config.encryptionSecret?(this.encryptionSecret=r.s,this.encryptionSecret||(this.encryptionSecret=p(),this.setMetaData())):this.encryptionSecret=this.config.encryptionSecret||r.s||"")}getEncryptionType(){const t=this.config.encodingType;return t?t.toLowerCase():n.EncrytionTypes.BASE64}getDataFromLocalStorage(t){return this.storage.getItem(t,!0)}setDataToLocalStorage(t,e){this.storage.setItem(t,e)}setMetaData(){let t=this.processData({keys:this.allKeys},!0);this.setDataToLocalStorage(this.getMetaKey(),t)}getMetaData(){return this.get(this.getMetaKey(),!0)||{}}getMetaKey(){return this.metaKey+(this.config.encryptionNamespace?"__"+this.config.encryptionNamespace:"")}resetAllKeys(){return this.allKeys=[],[]}processData(t,e){if(null==t||""===t)return"";let r;try{r=JSON.stringify(t)}catch(t){throw new Error("Could not stringify data",t)}let i=r;if(this._isBase64||e)i=b.encode(r);else{const t=T[this.getEncryptionType()];t&&(i=t.encrypt(r,this.encryptionSecret)),i=i&&i.toString()}let n=i;return(this._isCompression||e)&&(n=this.LZString.compressToUTF16(i)),n}getAllKeys(){let t=this.getMetaData();return y(t)||[]}get(t,e){let r="",i="";if(!f(t))return u(n.WarningEnum.KEY_NOT_PROVIDED),i;let o=this.getDataFromLocalStorage(t);if(!o)return i;let c=o;if((this._isCompression||e)&&(c=this.LZString.decompressFromUTF16(o)),r=c,this._isBase64||e)r=b.decode(c);else{this.getEncryptionSecret(t);const e=T[this.getEncryptionType()];if(e){const t=e.decrypt(c.toString(),this.encryptionSecret);t&&(r=t.toString(s._Utf8))}}try{i=JSON.parse(r)}catch(t){throw new Error("Could not parse JSON",t)}return i}set(t,e){let r="";f(t)?(this.getEncryptionSecret(t),String(t)!==String(this.metaKey)&&(_(this.allKeys,t)||(this.allKeys.push({k:t,s:this.encryptionSecret}),this.setMetaData())),r=this.processData(e),this.setDataToLocalStorage(t,r)):u(n.WarningEnum.KEY_NOT_PROVIDED)}remove(t){f(t)?t===this.metaKey&&this.getAllKeys().length?u(n.WarningEnum.META_KEY_REMOVE):(_(this.allKeys,t)&&(g(this.allKeys,t),this.setMetaData()),this.storage.removeItem(t)):u(n.WarningEnum.KEY_NOT_PROVIDED)}removeAll(){let t=this.getAllKeys();for(let e=0;e<t.length;e++)this.storage.removeItem(t[e]);this.storage.removeItem(this.metaKey),this.resetAllKeys()}clear(){this.storage.clear(),this.resetAllKeys()}}})(),i})()));
|
|
33
|
-
|
|
32
|
+
!(function (t, e) {
|
|
33
|
+
'object' == typeof exports && 'object' == typeof module
|
|
34
|
+
? (module.exports = e())
|
|
35
|
+
: 'function' == typeof define && define.amd
|
|
36
|
+
? define([], e)
|
|
37
|
+
: 'object' == typeof exports
|
|
38
|
+
? (exports.SecureLS = e())
|
|
39
|
+
: (t.SecureLS = e());
|
|
40
|
+
})(this, () =>
|
|
41
|
+
(() => {
|
|
42
|
+
var t = {
|
|
43
|
+
955: function (t, e, r) {
|
|
44
|
+
var i;
|
|
45
|
+
t.exports =
|
|
46
|
+
((i = r(21)),
|
|
47
|
+
r(754),
|
|
48
|
+
r(636),
|
|
49
|
+
r(506),
|
|
50
|
+
r(165),
|
|
51
|
+
(function () {
|
|
52
|
+
var t = i,
|
|
53
|
+
e = t.lib.BlockCipher,
|
|
54
|
+
r = t.algo,
|
|
55
|
+
n = [],
|
|
56
|
+
o = [],
|
|
57
|
+
s = [],
|
|
58
|
+
c = [],
|
|
59
|
+
a = [],
|
|
60
|
+
h = [],
|
|
61
|
+
l = [],
|
|
62
|
+
f = [],
|
|
63
|
+
u = [],
|
|
64
|
+
p = [];
|
|
65
|
+
!(function () {
|
|
66
|
+
for (var t = [], e = 0; e < 256; e++) t[e] = e < 128 ? e << 1 : (e << 1) ^ 283;
|
|
67
|
+
var r = 0,
|
|
68
|
+
i = 0;
|
|
69
|
+
for (e = 0; e < 256; e++) {
|
|
70
|
+
var d = i ^ (i << 1) ^ (i << 2) ^ (i << 3) ^ (i << 4);
|
|
71
|
+
(d = (d >>> 8) ^ (255 & d) ^ 99), (n[r] = d), (o[d] = r);
|
|
72
|
+
var y = t[r],
|
|
73
|
+
_ = t[y],
|
|
74
|
+
g = t[_],
|
|
75
|
+
v = (257 * t[d]) ^ (16843008 * d);
|
|
76
|
+
(s[r] = (v << 24) | (v >>> 8)),
|
|
77
|
+
(c[r] = (v << 16) | (v >>> 16)),
|
|
78
|
+
(a[r] = (v << 8) | (v >>> 24)),
|
|
79
|
+
(h[r] = v),
|
|
80
|
+
(v = (16843009 * g) ^ (65537 * _) ^ (257 * y) ^ (16843008 * r)),
|
|
81
|
+
(l[d] = (v << 24) | (v >>> 8)),
|
|
82
|
+
(f[d] = (v << 16) | (v >>> 16)),
|
|
83
|
+
(u[d] = (v << 8) | (v >>> 24)),
|
|
84
|
+
(p[d] = v),
|
|
85
|
+
r ? ((r = y ^ t[t[t[g ^ y]]]), (i ^= t[t[i]])) : (r = i = 1);
|
|
86
|
+
}
|
|
87
|
+
})();
|
|
88
|
+
var d = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
|
|
89
|
+
y = (r.AES = e.extend({
|
|
90
|
+
_doReset: function () {
|
|
91
|
+
if (!this._nRounds || this._keyPriorReset !== this._key) {
|
|
92
|
+
for (
|
|
93
|
+
var t = (this._keyPriorReset = this._key),
|
|
94
|
+
e = t.words,
|
|
95
|
+
r = t.sigBytes / 4,
|
|
96
|
+
i = 4 * ((this._nRounds = r + 6) + 1),
|
|
97
|
+
o = (this._keySchedule = []),
|
|
98
|
+
s = 0;
|
|
99
|
+
s < i;
|
|
100
|
+
s++
|
|
101
|
+
)
|
|
102
|
+
s < r
|
|
103
|
+
? (o[s] = e[s])
|
|
104
|
+
: ((h = o[s - 1]),
|
|
105
|
+
s % r
|
|
106
|
+
? r > 6 &&
|
|
107
|
+
s % r == 4 &&
|
|
108
|
+
(h =
|
|
109
|
+
(n[h >>> 24] << 24) |
|
|
110
|
+
(n[(h >>> 16) & 255] << 16) |
|
|
111
|
+
(n[(h >>> 8) & 255] << 8) |
|
|
112
|
+
n[255 & h])
|
|
113
|
+
: ((h =
|
|
114
|
+
(n[(h = (h << 8) | (h >>> 24)) >>> 24] << 24) |
|
|
115
|
+
(n[(h >>> 16) & 255] << 16) |
|
|
116
|
+
(n[(h >>> 8) & 255] << 8) |
|
|
117
|
+
n[255 & h]),
|
|
118
|
+
(h ^= d[(s / r) | 0] << 24)),
|
|
119
|
+
(o[s] = o[s - r] ^ h));
|
|
120
|
+
for (var c = (this._invKeySchedule = []), a = 0; a < i; a++) {
|
|
121
|
+
if (((s = i - a), a % 4)) var h = o[s];
|
|
122
|
+
else h = o[s - 4];
|
|
123
|
+
c[a] =
|
|
124
|
+
a < 4 || s <= 4
|
|
125
|
+
? h
|
|
126
|
+
: l[n[h >>> 24]] ^ f[n[(h >>> 16) & 255]] ^ u[n[(h >>> 8) & 255]] ^ p[n[255 & h]];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
encryptBlock: function (t, e) {
|
|
131
|
+
this._doCryptBlock(t, e, this._keySchedule, s, c, a, h, n);
|
|
132
|
+
},
|
|
133
|
+
decryptBlock: function (t, e) {
|
|
134
|
+
var r = t[e + 1];
|
|
135
|
+
(t[e + 1] = t[e + 3]),
|
|
136
|
+
(t[e + 3] = r),
|
|
137
|
+
this._doCryptBlock(t, e, this._invKeySchedule, l, f, u, p, o),
|
|
138
|
+
(r = t[e + 1]),
|
|
139
|
+
(t[e + 1] = t[e + 3]),
|
|
140
|
+
(t[e + 3] = r);
|
|
141
|
+
},
|
|
142
|
+
_doCryptBlock: function (t, e, r, i, n, o, s, c) {
|
|
143
|
+
for (
|
|
144
|
+
var a = this._nRounds,
|
|
145
|
+
h = t[e] ^ r[0],
|
|
146
|
+
l = t[e + 1] ^ r[1],
|
|
147
|
+
f = t[e + 2] ^ r[2],
|
|
148
|
+
u = t[e + 3] ^ r[3],
|
|
149
|
+
p = 4,
|
|
150
|
+
d = 1;
|
|
151
|
+
d < a;
|
|
152
|
+
d++
|
|
153
|
+
) {
|
|
154
|
+
var y = i[h >>> 24] ^ n[(l >>> 16) & 255] ^ o[(f >>> 8) & 255] ^ s[255 & u] ^ r[p++],
|
|
155
|
+
_ = i[l >>> 24] ^ n[(f >>> 16) & 255] ^ o[(u >>> 8) & 255] ^ s[255 & h] ^ r[p++],
|
|
156
|
+
g = i[f >>> 24] ^ n[(u >>> 16) & 255] ^ o[(h >>> 8) & 255] ^ s[255 & l] ^ r[p++],
|
|
157
|
+
v = i[u >>> 24] ^ n[(h >>> 16) & 255] ^ o[(l >>> 8) & 255] ^ s[255 & f] ^ r[p++];
|
|
158
|
+
(h = y), (l = _), (f = g), (u = v);
|
|
159
|
+
}
|
|
160
|
+
(y =
|
|
161
|
+
((c[h >>> 24] << 24) | (c[(l >>> 16) & 255] << 16) | (c[(f >>> 8) & 255] << 8) | c[255 & u]) ^
|
|
162
|
+
r[p++]),
|
|
163
|
+
(_ =
|
|
164
|
+
((c[l >>> 24] << 24) | (c[(f >>> 16) & 255] << 16) | (c[(u >>> 8) & 255] << 8) | c[255 & h]) ^
|
|
165
|
+
r[p++]),
|
|
166
|
+
(g =
|
|
167
|
+
((c[f >>> 24] << 24) | (c[(u >>> 16) & 255] << 16) | (c[(h >>> 8) & 255] << 8) | c[255 & l]) ^
|
|
168
|
+
r[p++]),
|
|
169
|
+
(v =
|
|
170
|
+
((c[u >>> 24] << 24) | (c[(h >>> 16) & 255] << 16) | (c[(l >>> 8) & 255] << 8) | c[255 & f]) ^
|
|
171
|
+
r[p++]),
|
|
172
|
+
(t[e] = y),
|
|
173
|
+
(t[e + 1] = _),
|
|
174
|
+
(t[e + 2] = g),
|
|
175
|
+
(t[e + 3] = v);
|
|
176
|
+
},
|
|
177
|
+
keySize: 8,
|
|
178
|
+
}));
|
|
179
|
+
t.AES = e._createHelper(y);
|
|
180
|
+
})(),
|
|
181
|
+
i.AES);
|
|
182
|
+
},
|
|
183
|
+
165: function (t, e, r) {
|
|
184
|
+
var i, n, o, s, c, a, h, l, f, u, p, d, y, _, g, v, m, S, B;
|
|
185
|
+
t.exports =
|
|
186
|
+
((i = r(21)),
|
|
187
|
+
r(506),
|
|
188
|
+
void (
|
|
189
|
+
i.lib.Cipher ||
|
|
190
|
+
((n = i),
|
|
191
|
+
(o = n.lib),
|
|
192
|
+
(s = o.Base),
|
|
193
|
+
(c = o.WordArray),
|
|
194
|
+
(a = o.BufferedBlockAlgorithm),
|
|
195
|
+
(h = n.enc),
|
|
196
|
+
h.Utf8,
|
|
197
|
+
(l = h.Base64),
|
|
198
|
+
(f = n.algo.EvpKDF),
|
|
199
|
+
(u = o.Cipher =
|
|
200
|
+
a.extend({
|
|
201
|
+
cfg: s.extend(),
|
|
202
|
+
createEncryptor: function (t, e) {
|
|
203
|
+
return this.create(this._ENC_XFORM_MODE, t, e);
|
|
204
|
+
},
|
|
205
|
+
createDecryptor: function (t, e) {
|
|
206
|
+
return this.create(this._DEC_XFORM_MODE, t, e);
|
|
207
|
+
},
|
|
208
|
+
init: function (t, e, r) {
|
|
209
|
+
(this.cfg = this.cfg.extend(r)), (this._xformMode = t), (this._key = e), this.reset();
|
|
210
|
+
},
|
|
211
|
+
reset: function () {
|
|
212
|
+
a.reset.call(this), this._doReset();
|
|
213
|
+
},
|
|
214
|
+
process: function (t) {
|
|
215
|
+
return this._append(t), this._process();
|
|
216
|
+
},
|
|
217
|
+
finalize: function (t) {
|
|
218
|
+
return t && this._append(t), this._doFinalize();
|
|
219
|
+
},
|
|
220
|
+
keySize: 4,
|
|
221
|
+
ivSize: 4,
|
|
222
|
+
_ENC_XFORM_MODE: 1,
|
|
223
|
+
_DEC_XFORM_MODE: 2,
|
|
224
|
+
_createHelper: (function () {
|
|
225
|
+
function t(t) {
|
|
226
|
+
return 'string' == typeof t ? B : m;
|
|
227
|
+
}
|
|
228
|
+
return function (e) {
|
|
229
|
+
return {
|
|
230
|
+
encrypt: function (r, i, n) {
|
|
231
|
+
return t(i).encrypt(e, r, i, n);
|
|
232
|
+
},
|
|
233
|
+
decrypt: function (r, i, n) {
|
|
234
|
+
return t(i).decrypt(e, r, i, n);
|
|
235
|
+
},
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
})(),
|
|
239
|
+
})),
|
|
240
|
+
(o.StreamCipher = u.extend({
|
|
241
|
+
_doFinalize: function () {
|
|
242
|
+
return this._process(!0);
|
|
243
|
+
},
|
|
244
|
+
blockSize: 1,
|
|
245
|
+
})),
|
|
246
|
+
(p = n.mode = {}),
|
|
247
|
+
(d = o.BlockCipherMode =
|
|
248
|
+
s.extend({
|
|
249
|
+
createEncryptor: function (t, e) {
|
|
250
|
+
return this.Encryptor.create(t, e);
|
|
251
|
+
},
|
|
252
|
+
createDecryptor: function (t, e) {
|
|
253
|
+
return this.Decryptor.create(t, e);
|
|
254
|
+
},
|
|
255
|
+
init: function (t, e) {
|
|
256
|
+
(this._cipher = t), (this._iv = e);
|
|
257
|
+
},
|
|
258
|
+
})),
|
|
259
|
+
(y = p.CBC =
|
|
260
|
+
(function () {
|
|
261
|
+
var t = d.extend();
|
|
262
|
+
function e(t, e, r) {
|
|
263
|
+
var i,
|
|
264
|
+
n = this._iv;
|
|
265
|
+
n ? ((i = n), (this._iv = void 0)) : (i = this._prevBlock);
|
|
266
|
+
for (var o = 0; o < r; o++) t[e + o] ^= i[o];
|
|
267
|
+
}
|
|
268
|
+
return (
|
|
269
|
+
(t.Encryptor = t.extend({
|
|
270
|
+
processBlock: function (t, r) {
|
|
271
|
+
var i = this._cipher,
|
|
272
|
+
n = i.blockSize;
|
|
273
|
+
e.call(this, t, r, n), i.encryptBlock(t, r), (this._prevBlock = t.slice(r, r + n));
|
|
274
|
+
},
|
|
275
|
+
})),
|
|
276
|
+
(t.Decryptor = t.extend({
|
|
277
|
+
processBlock: function (t, r) {
|
|
278
|
+
var i = this._cipher,
|
|
279
|
+
n = i.blockSize,
|
|
280
|
+
o = t.slice(r, r + n);
|
|
281
|
+
i.decryptBlock(t, r), e.call(this, t, r, n), (this._prevBlock = o);
|
|
282
|
+
},
|
|
283
|
+
})),
|
|
284
|
+
t
|
|
285
|
+
);
|
|
286
|
+
})()),
|
|
287
|
+
(_ = (n.pad = {}).Pkcs7 =
|
|
288
|
+
{
|
|
289
|
+
pad: function (t, e) {
|
|
290
|
+
for (
|
|
291
|
+
var r = 4 * e, i = r - (t.sigBytes % r), n = (i << 24) | (i << 16) | (i << 8) | i, o = [], s = 0;
|
|
292
|
+
s < i;
|
|
293
|
+
s += 4
|
|
294
|
+
)
|
|
295
|
+
o.push(n);
|
|
296
|
+
var a = c.create(o, i);
|
|
297
|
+
t.concat(a);
|
|
298
|
+
},
|
|
299
|
+
unpad: function (t) {
|
|
300
|
+
var e = 255 & t.words[(t.sigBytes - 1) >>> 2];
|
|
301
|
+
t.sigBytes -= e;
|
|
302
|
+
},
|
|
303
|
+
}),
|
|
304
|
+
(o.BlockCipher = u.extend({
|
|
305
|
+
cfg: u.cfg.extend({ mode: y, padding: _ }),
|
|
306
|
+
reset: function () {
|
|
307
|
+
var t;
|
|
308
|
+
u.reset.call(this);
|
|
309
|
+
var e = this.cfg,
|
|
310
|
+
r = e.iv,
|
|
311
|
+
i = e.mode;
|
|
312
|
+
this._xformMode == this._ENC_XFORM_MODE
|
|
313
|
+
? (t = i.createEncryptor)
|
|
314
|
+
: ((t = i.createDecryptor), (this._minBufferSize = 1)),
|
|
315
|
+
this._mode && this._mode.__creator == t
|
|
316
|
+
? this._mode.init(this, r && r.words)
|
|
317
|
+
: ((this._mode = t.call(i, this, r && r.words)), (this._mode.__creator = t));
|
|
318
|
+
},
|
|
319
|
+
_doProcessBlock: function (t, e) {
|
|
320
|
+
this._mode.processBlock(t, e);
|
|
321
|
+
},
|
|
322
|
+
_doFinalize: function () {
|
|
323
|
+
var t,
|
|
324
|
+
e = this.cfg.padding;
|
|
325
|
+
return (
|
|
326
|
+
this._xformMode == this._ENC_XFORM_MODE
|
|
327
|
+
? (e.pad(this._data, this.blockSize), (t = this._process(!0)))
|
|
328
|
+
: ((t = this._process(!0)), e.unpad(t)),
|
|
329
|
+
t
|
|
330
|
+
);
|
|
331
|
+
},
|
|
332
|
+
blockSize: 4,
|
|
333
|
+
})),
|
|
334
|
+
(g = o.CipherParams =
|
|
335
|
+
s.extend({
|
|
336
|
+
init: function (t) {
|
|
337
|
+
this.mixIn(t);
|
|
338
|
+
},
|
|
339
|
+
toString: function (t) {
|
|
340
|
+
return (t || this.formatter).stringify(this);
|
|
341
|
+
},
|
|
342
|
+
})),
|
|
343
|
+
(v = (n.format = {}).OpenSSL =
|
|
344
|
+
{
|
|
345
|
+
stringify: function (t) {
|
|
346
|
+
var e = t.ciphertext,
|
|
347
|
+
r = t.salt;
|
|
348
|
+
return (r ? c.create([1398893684, 1701076831]).concat(r).concat(e) : e).toString(l);
|
|
349
|
+
},
|
|
350
|
+
parse: function (t) {
|
|
351
|
+
var e,
|
|
352
|
+
r = l.parse(t),
|
|
353
|
+
i = r.words;
|
|
354
|
+
return (
|
|
355
|
+
1398893684 == i[0] &&
|
|
356
|
+
1701076831 == i[1] &&
|
|
357
|
+
((e = c.create(i.slice(2, 4))), i.splice(0, 4), (r.sigBytes -= 16)),
|
|
358
|
+
g.create({ ciphertext: r, salt: e })
|
|
359
|
+
);
|
|
360
|
+
},
|
|
361
|
+
}),
|
|
362
|
+
(m = o.SerializableCipher =
|
|
363
|
+
s.extend({
|
|
364
|
+
cfg: s.extend({ format: v }),
|
|
365
|
+
encrypt: function (t, e, r, i) {
|
|
366
|
+
i = this.cfg.extend(i);
|
|
367
|
+
var n = t.createEncryptor(r, i),
|
|
368
|
+
o = n.finalize(e),
|
|
369
|
+
s = n.cfg;
|
|
370
|
+
return g.create({
|
|
371
|
+
ciphertext: o,
|
|
372
|
+
key: r,
|
|
373
|
+
iv: s.iv,
|
|
374
|
+
algorithm: t,
|
|
375
|
+
mode: s.mode,
|
|
376
|
+
padding: s.padding,
|
|
377
|
+
blockSize: t.blockSize,
|
|
378
|
+
formatter: i.format,
|
|
379
|
+
});
|
|
380
|
+
},
|
|
381
|
+
decrypt: function (t, e, r, i) {
|
|
382
|
+
return (
|
|
383
|
+
(i = this.cfg.extend(i)),
|
|
384
|
+
(e = this._parse(e, i.format)),
|
|
385
|
+
t.createDecryptor(r, i).finalize(e.ciphertext)
|
|
386
|
+
);
|
|
387
|
+
},
|
|
388
|
+
_parse: function (t, e) {
|
|
389
|
+
return 'string' == typeof t ? e.parse(t, this) : t;
|
|
390
|
+
},
|
|
391
|
+
})),
|
|
392
|
+
(S = (n.kdf = {}).OpenSSL =
|
|
393
|
+
{
|
|
394
|
+
execute: function (t, e, r, i, n) {
|
|
395
|
+
if ((i || (i = c.random(8)), n)) o = f.create({ keySize: e + r, hasher: n }).compute(t, i);
|
|
396
|
+
else var o = f.create({ keySize: e + r }).compute(t, i);
|
|
397
|
+
var s = c.create(o.words.slice(e), 4 * r);
|
|
398
|
+
return (o.sigBytes = 4 * e), g.create({ key: o, iv: s, salt: i });
|
|
399
|
+
},
|
|
400
|
+
}),
|
|
401
|
+
(B = o.PasswordBasedCipher =
|
|
402
|
+
m.extend({
|
|
403
|
+
cfg: m.cfg.extend({ kdf: S }),
|
|
404
|
+
encrypt: function (t, e, r, i) {
|
|
405
|
+
var n = (i = this.cfg.extend(i)).kdf.execute(r, t.keySize, t.ivSize, i.salt, i.hasher);
|
|
406
|
+
i.iv = n.iv;
|
|
407
|
+
var o = m.encrypt.call(this, t, e, n.key, i);
|
|
408
|
+
return o.mixIn(n), o;
|
|
409
|
+
},
|
|
410
|
+
decrypt: function (t, e, r, i) {
|
|
411
|
+
(i = this.cfg.extend(i)), (e = this._parse(e, i.format));
|
|
412
|
+
var n = i.kdf.execute(r, t.keySize, t.ivSize, e.salt, i.hasher);
|
|
413
|
+
return (i.iv = n.iv), m.decrypt.call(this, t, e, n.key, i);
|
|
414
|
+
},
|
|
415
|
+
})))
|
|
416
|
+
));
|
|
417
|
+
},
|
|
418
|
+
21: function (t, e, r) {
|
|
419
|
+
var i;
|
|
420
|
+
t.exports =
|
|
421
|
+
((i =
|
|
422
|
+
i ||
|
|
423
|
+
(function (t, e) {
|
|
424
|
+
var i;
|
|
425
|
+
if (
|
|
426
|
+
('undefined' != typeof window && window.crypto && (i = window.crypto),
|
|
427
|
+
'undefined' != typeof self && self.crypto && (i = self.crypto),
|
|
428
|
+
'undefined' != typeof globalThis && globalThis.crypto && (i = globalThis.crypto),
|
|
429
|
+
!i && 'undefined' != typeof window && window.msCrypto && (i = window.msCrypto),
|
|
430
|
+
!i && void 0 !== r.g && r.g.crypto && (i = r.g.crypto),
|
|
431
|
+
!i)
|
|
432
|
+
)
|
|
433
|
+
try {
|
|
434
|
+
i = r(477);
|
|
435
|
+
} catch (t) {}
|
|
436
|
+
var n = function () {
|
|
437
|
+
if (i) {
|
|
438
|
+
if ('function' == typeof i.getRandomValues)
|
|
439
|
+
try {
|
|
440
|
+
return i.getRandomValues(new Uint32Array(1))[0];
|
|
441
|
+
} catch (t) {}
|
|
442
|
+
if ('function' == typeof i.randomBytes)
|
|
443
|
+
try {
|
|
444
|
+
return i.randomBytes(4).readInt32LE();
|
|
445
|
+
} catch (t) {}
|
|
446
|
+
}
|
|
447
|
+
throw new Error('Native crypto module could not be used to get secure random number.');
|
|
448
|
+
},
|
|
449
|
+
o =
|
|
450
|
+
Object.create ||
|
|
451
|
+
(function () {
|
|
452
|
+
function t() {}
|
|
453
|
+
return function (e) {
|
|
454
|
+
var r;
|
|
455
|
+
return (t.prototype = e), (r = new t()), (t.prototype = null), r;
|
|
456
|
+
};
|
|
457
|
+
})(),
|
|
458
|
+
s = {},
|
|
459
|
+
c = (s.lib = {}),
|
|
460
|
+
a = (c.Base = {
|
|
461
|
+
extend: function (t) {
|
|
462
|
+
var e = o(this);
|
|
463
|
+
return (
|
|
464
|
+
t && e.mixIn(t),
|
|
465
|
+
(e.hasOwnProperty('init') && this.init !== e.init) ||
|
|
466
|
+
(e.init = function () {
|
|
467
|
+
e.$super.init.apply(this, arguments);
|
|
468
|
+
}),
|
|
469
|
+
(e.init.prototype = e),
|
|
470
|
+
(e.$super = this),
|
|
471
|
+
e
|
|
472
|
+
);
|
|
473
|
+
},
|
|
474
|
+
create: function () {
|
|
475
|
+
var t = this.extend();
|
|
476
|
+
return t.init.apply(t, arguments), t;
|
|
477
|
+
},
|
|
478
|
+
init: function () {},
|
|
479
|
+
mixIn: function (t) {
|
|
480
|
+
for (var e in t) t.hasOwnProperty(e) && (this[e] = t[e]);
|
|
481
|
+
t.hasOwnProperty('toString') && (this.toString = t.toString);
|
|
482
|
+
},
|
|
483
|
+
clone: function () {
|
|
484
|
+
return this.init.prototype.extend(this);
|
|
485
|
+
},
|
|
486
|
+
}),
|
|
487
|
+
h = (c.WordArray = a.extend({
|
|
488
|
+
init: function (t, e) {
|
|
489
|
+
(t = this.words = t || []), (this.sigBytes = null != e ? e : 4 * t.length);
|
|
490
|
+
},
|
|
491
|
+
toString: function (t) {
|
|
492
|
+
return (t || f).stringify(this);
|
|
493
|
+
},
|
|
494
|
+
concat: function (t) {
|
|
495
|
+
var e = this.words,
|
|
496
|
+
r = t.words,
|
|
497
|
+
i = this.sigBytes,
|
|
498
|
+
n = t.sigBytes;
|
|
499
|
+
if ((this.clamp(), i % 4))
|
|
500
|
+
for (var o = 0; o < n; o++) {
|
|
501
|
+
var s = (r[o >>> 2] >>> (24 - (o % 4) * 8)) & 255;
|
|
502
|
+
e[(i + o) >>> 2] |= s << (24 - ((i + o) % 4) * 8);
|
|
503
|
+
}
|
|
504
|
+
else for (var c = 0; c < n; c += 4) e[(i + c) >>> 2] = r[c >>> 2];
|
|
505
|
+
return (this.sigBytes += n), this;
|
|
506
|
+
},
|
|
507
|
+
clamp: function () {
|
|
508
|
+
var e = this.words,
|
|
509
|
+
r = this.sigBytes;
|
|
510
|
+
(e[r >>> 2] &= 4294967295 << (32 - (r % 4) * 8)), (e.length = t.ceil(r / 4));
|
|
511
|
+
},
|
|
512
|
+
clone: function () {
|
|
513
|
+
var t = a.clone.call(this);
|
|
514
|
+
return (t.words = this.words.slice(0)), t;
|
|
515
|
+
},
|
|
516
|
+
random: function (t) {
|
|
517
|
+
for (var e = [], r = 0; r < t; r += 4) e.push(n());
|
|
518
|
+
return new h.init(e, t);
|
|
519
|
+
},
|
|
520
|
+
})),
|
|
521
|
+
l = (s.enc = {}),
|
|
522
|
+
f = (l.Hex = {
|
|
523
|
+
stringify: function (t) {
|
|
524
|
+
for (var e = t.words, r = t.sigBytes, i = [], n = 0; n < r; n++) {
|
|
525
|
+
var o = (e[n >>> 2] >>> (24 - (n % 4) * 8)) & 255;
|
|
526
|
+
i.push((o >>> 4).toString(16)), i.push((15 & o).toString(16));
|
|
527
|
+
}
|
|
528
|
+
return i.join('');
|
|
529
|
+
},
|
|
530
|
+
parse: function (t) {
|
|
531
|
+
for (var e = t.length, r = [], i = 0; i < e; i += 2)
|
|
532
|
+
r[i >>> 3] |= parseInt(t.substr(i, 2), 16) << (24 - (i % 8) * 4);
|
|
533
|
+
return new h.init(r, e / 2);
|
|
534
|
+
},
|
|
535
|
+
}),
|
|
536
|
+
u = (l.Latin1 = {
|
|
537
|
+
stringify: function (t) {
|
|
538
|
+
for (var e = t.words, r = t.sigBytes, i = [], n = 0; n < r; n++) {
|
|
539
|
+
var o = (e[n >>> 2] >>> (24 - (n % 4) * 8)) & 255;
|
|
540
|
+
i.push(String.fromCharCode(o));
|
|
541
|
+
}
|
|
542
|
+
return i.join('');
|
|
543
|
+
},
|
|
544
|
+
parse: function (t) {
|
|
545
|
+
for (var e = t.length, r = [], i = 0; i < e; i++)
|
|
546
|
+
r[i >>> 2] |= (255 & t.charCodeAt(i)) << (24 - (i % 4) * 8);
|
|
547
|
+
return new h.init(r, e);
|
|
548
|
+
},
|
|
549
|
+
}),
|
|
550
|
+
p = (l.Utf8 = {
|
|
551
|
+
stringify: function (t) {
|
|
552
|
+
try {
|
|
553
|
+
return decodeURIComponent(escape(u.stringify(t)));
|
|
554
|
+
} catch (t) {
|
|
555
|
+
throw new Error('Malformed UTF-8 data');
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
parse: function (t) {
|
|
559
|
+
return u.parse(unescape(encodeURIComponent(t)));
|
|
560
|
+
},
|
|
561
|
+
}),
|
|
562
|
+
d = (c.BufferedBlockAlgorithm = a.extend({
|
|
563
|
+
reset: function () {
|
|
564
|
+
(this._data = new h.init()), (this._nDataBytes = 0);
|
|
565
|
+
},
|
|
566
|
+
_append: function (t) {
|
|
567
|
+
'string' == typeof t && (t = p.parse(t)), this._data.concat(t), (this._nDataBytes += t.sigBytes);
|
|
568
|
+
},
|
|
569
|
+
_process: function (e) {
|
|
570
|
+
var r,
|
|
571
|
+
i = this._data,
|
|
572
|
+
n = i.words,
|
|
573
|
+
o = i.sigBytes,
|
|
574
|
+
s = this.blockSize,
|
|
575
|
+
c = o / (4 * s),
|
|
576
|
+
a = (c = e ? t.ceil(c) : t.max((0 | c) - this._minBufferSize, 0)) * s,
|
|
577
|
+
l = t.min(4 * a, o);
|
|
578
|
+
if (a) {
|
|
579
|
+
for (var f = 0; f < a; f += s) this._doProcessBlock(n, f);
|
|
580
|
+
(r = n.splice(0, a)), (i.sigBytes -= l);
|
|
581
|
+
}
|
|
582
|
+
return new h.init(r, l);
|
|
583
|
+
},
|
|
584
|
+
clone: function () {
|
|
585
|
+
var t = a.clone.call(this);
|
|
586
|
+
return (t._data = this._data.clone()), t;
|
|
587
|
+
},
|
|
588
|
+
_minBufferSize: 0,
|
|
589
|
+
})),
|
|
590
|
+
y =
|
|
591
|
+
((c.Hasher = d.extend({
|
|
592
|
+
cfg: a.extend(),
|
|
593
|
+
init: function (t) {
|
|
594
|
+
(this.cfg = this.cfg.extend(t)), this.reset();
|
|
595
|
+
},
|
|
596
|
+
reset: function () {
|
|
597
|
+
d.reset.call(this), this._doReset();
|
|
598
|
+
},
|
|
599
|
+
update: function (t) {
|
|
600
|
+
return this._append(t), this._process(), this;
|
|
601
|
+
},
|
|
602
|
+
finalize: function (t) {
|
|
603
|
+
return t && this._append(t), this._doFinalize();
|
|
604
|
+
},
|
|
605
|
+
blockSize: 16,
|
|
606
|
+
_createHelper: function (t) {
|
|
607
|
+
return function (e, r) {
|
|
608
|
+
return new t.init(r).finalize(e);
|
|
609
|
+
};
|
|
610
|
+
},
|
|
611
|
+
_createHmacHelper: function (t) {
|
|
612
|
+
return function (e, r) {
|
|
613
|
+
return new y.HMAC.init(t, r).finalize(e);
|
|
614
|
+
};
|
|
615
|
+
},
|
|
616
|
+
})),
|
|
617
|
+
(s.algo = {}));
|
|
618
|
+
return s;
|
|
619
|
+
})(Math)),
|
|
620
|
+
i);
|
|
621
|
+
},
|
|
622
|
+
754: function (t, e, r) {
|
|
623
|
+
var i, n, o;
|
|
624
|
+
t.exports =
|
|
625
|
+
((i = r(21)),
|
|
626
|
+
(o = (n = i).lib.WordArray),
|
|
627
|
+
(n.enc.Base64 = {
|
|
628
|
+
stringify: function (t) {
|
|
629
|
+
var e = t.words,
|
|
630
|
+
r = t.sigBytes,
|
|
631
|
+
i = this._map;
|
|
632
|
+
t.clamp();
|
|
633
|
+
for (var n = [], o = 0; o < r; o += 3)
|
|
634
|
+
for (
|
|
635
|
+
var s =
|
|
636
|
+
(((e[o >>> 2] >>> (24 - (o % 4) * 8)) & 255) << 16) |
|
|
637
|
+
(((e[(o + 1) >>> 2] >>> (24 - ((o + 1) % 4) * 8)) & 255) << 8) |
|
|
638
|
+
((e[(o + 2) >>> 2] >>> (24 - ((o + 2) % 4) * 8)) & 255),
|
|
639
|
+
c = 0;
|
|
640
|
+
c < 4 && o + 0.75 * c < r;
|
|
641
|
+
c++
|
|
642
|
+
)
|
|
643
|
+
n.push(i.charAt((s >>> (6 * (3 - c))) & 63));
|
|
644
|
+
var a = i.charAt(64);
|
|
645
|
+
if (a) for (; n.length % 4; ) n.push(a);
|
|
646
|
+
return n.join('');
|
|
647
|
+
},
|
|
648
|
+
parse: function (t) {
|
|
649
|
+
var e = t.length,
|
|
650
|
+
r = this._map,
|
|
651
|
+
i = this._reverseMap;
|
|
652
|
+
if (!i) {
|
|
653
|
+
i = this._reverseMap = [];
|
|
654
|
+
for (var n = 0; n < r.length; n++) i[r.charCodeAt(n)] = n;
|
|
655
|
+
}
|
|
656
|
+
var s = r.charAt(64);
|
|
657
|
+
if (s) {
|
|
658
|
+
var c = t.indexOf(s);
|
|
659
|
+
-1 !== c && (e = c);
|
|
660
|
+
}
|
|
661
|
+
return (function (t, e, r) {
|
|
662
|
+
for (var i = [], n = 0, s = 0; s < e; s++)
|
|
663
|
+
if (s % 4) {
|
|
664
|
+
var c = (r[t.charCodeAt(s - 1)] << ((s % 4) * 2)) | (r[t.charCodeAt(s)] >>> (6 - (s % 4) * 2));
|
|
665
|
+
(i[n >>> 2] |= c << (24 - (n % 4) * 8)), n++;
|
|
666
|
+
}
|
|
667
|
+
return o.create(i, n);
|
|
668
|
+
})(t, e, i);
|
|
669
|
+
},
|
|
670
|
+
_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
|
|
671
|
+
}),
|
|
672
|
+
i.enc.Base64);
|
|
673
|
+
},
|
|
674
|
+
506: function (t, e, r) {
|
|
675
|
+
var i, n, o, s, c, a, h, l;
|
|
676
|
+
t.exports =
|
|
677
|
+
((l = r(21)),
|
|
678
|
+
r(471),
|
|
679
|
+
r(25),
|
|
680
|
+
(o = (n = (i = l).lib).Base),
|
|
681
|
+
(s = n.WordArray),
|
|
682
|
+
(a = (c = i.algo).MD5),
|
|
683
|
+
(h = c.EvpKDF =
|
|
684
|
+
o.extend({
|
|
685
|
+
cfg: o.extend({ keySize: 4, hasher: a, iterations: 1 }),
|
|
686
|
+
init: function (t) {
|
|
687
|
+
this.cfg = this.cfg.extend(t);
|
|
688
|
+
},
|
|
689
|
+
compute: function (t, e) {
|
|
690
|
+
for (
|
|
691
|
+
var r,
|
|
692
|
+
i = this.cfg,
|
|
693
|
+
n = i.hasher.create(),
|
|
694
|
+
o = s.create(),
|
|
695
|
+
c = o.words,
|
|
696
|
+
a = i.keySize,
|
|
697
|
+
h = i.iterations;
|
|
698
|
+
c.length < a;
|
|
699
|
+
|
|
700
|
+
) {
|
|
701
|
+
r && n.update(r), (r = n.update(t).finalize(e)), n.reset();
|
|
702
|
+
for (var l = 1; l < h; l++) (r = n.finalize(r)), n.reset();
|
|
703
|
+
o.concat(r);
|
|
704
|
+
}
|
|
705
|
+
return (o.sigBytes = 4 * a), o;
|
|
706
|
+
},
|
|
707
|
+
})),
|
|
708
|
+
(i.EvpKDF = function (t, e, r) {
|
|
709
|
+
return h.create(r).compute(t, e);
|
|
710
|
+
}),
|
|
711
|
+
l.EvpKDF);
|
|
712
|
+
},
|
|
713
|
+
25: function (t, e, r) {
|
|
714
|
+
var i, n, o;
|
|
715
|
+
t.exports =
|
|
716
|
+
((n = (i = r(21)).lib.Base),
|
|
717
|
+
(o = i.enc.Utf8),
|
|
718
|
+
void (i.algo.HMAC = n.extend({
|
|
719
|
+
init: function (t, e) {
|
|
720
|
+
(t = this._hasher = new t.init()), 'string' == typeof e && (e = o.parse(e));
|
|
721
|
+
var r = t.blockSize,
|
|
722
|
+
i = 4 * r;
|
|
723
|
+
e.sigBytes > i && (e = t.finalize(e)), e.clamp();
|
|
724
|
+
for (
|
|
725
|
+
var n = (this._oKey = e.clone()), s = (this._iKey = e.clone()), c = n.words, a = s.words, h = 0;
|
|
726
|
+
h < r;
|
|
727
|
+
h++
|
|
728
|
+
)
|
|
729
|
+
(c[h] ^= 1549556828), (a[h] ^= 909522486);
|
|
730
|
+
(n.sigBytes = s.sigBytes = i), this.reset();
|
|
731
|
+
},
|
|
732
|
+
reset: function () {
|
|
733
|
+
var t = this._hasher;
|
|
734
|
+
t.reset(), t.update(this._iKey);
|
|
735
|
+
},
|
|
736
|
+
update: function (t) {
|
|
737
|
+
return this._hasher.update(t), this;
|
|
738
|
+
},
|
|
739
|
+
finalize: function (t) {
|
|
740
|
+
var e = this._hasher,
|
|
741
|
+
r = e.finalize(t);
|
|
742
|
+
return e.reset(), e.finalize(this._oKey.clone().concat(r));
|
|
743
|
+
},
|
|
744
|
+
})));
|
|
745
|
+
},
|
|
746
|
+
636: function (t, e, r) {
|
|
747
|
+
var i;
|
|
748
|
+
t.exports =
|
|
749
|
+
((i = r(21)),
|
|
750
|
+
(function (t) {
|
|
751
|
+
var e = i,
|
|
752
|
+
r = e.lib,
|
|
753
|
+
n = r.WordArray,
|
|
754
|
+
o = r.Hasher,
|
|
755
|
+
s = e.algo,
|
|
756
|
+
c = [];
|
|
757
|
+
!(function () {
|
|
758
|
+
for (var e = 0; e < 64; e++) c[e] = (4294967296 * t.abs(t.sin(e + 1))) | 0;
|
|
759
|
+
})();
|
|
760
|
+
var a = (s.MD5 = o.extend({
|
|
761
|
+
_doReset: function () {
|
|
762
|
+
this._hash = new n.init([1732584193, 4023233417, 2562383102, 271733878]);
|
|
763
|
+
},
|
|
764
|
+
_doProcessBlock: function (t, e) {
|
|
765
|
+
for (var r = 0; r < 16; r++) {
|
|
766
|
+
var i = e + r,
|
|
767
|
+
n = t[i];
|
|
768
|
+
t[i] = (16711935 & ((n << 8) | (n >>> 24))) | (4278255360 & ((n << 24) | (n >>> 8)));
|
|
769
|
+
}
|
|
770
|
+
var o = this._hash.words,
|
|
771
|
+
s = t[e + 0],
|
|
772
|
+
a = t[e + 1],
|
|
773
|
+
p = t[e + 2],
|
|
774
|
+
d = t[e + 3],
|
|
775
|
+
y = t[e + 4],
|
|
776
|
+
_ = t[e + 5],
|
|
777
|
+
g = t[e + 6],
|
|
778
|
+
v = t[e + 7],
|
|
779
|
+
m = t[e + 8],
|
|
780
|
+
S = t[e + 9],
|
|
781
|
+
B = t[e + 10],
|
|
782
|
+
k = t[e + 11],
|
|
783
|
+
E = t[e + 12],
|
|
784
|
+
C = t[e + 13],
|
|
785
|
+
w = t[e + 14],
|
|
786
|
+
A = t[e + 15],
|
|
787
|
+
x = o[0],
|
|
788
|
+
b = o[1],
|
|
789
|
+
T = o[2],
|
|
790
|
+
D = o[3];
|
|
791
|
+
(x = h(x, b, T, D, s, 7, c[0])),
|
|
792
|
+
(D = h(D, x, b, T, a, 12, c[1])),
|
|
793
|
+
(T = h(T, D, x, b, p, 17, c[2])),
|
|
794
|
+
(b = h(b, T, D, x, d, 22, c[3])),
|
|
795
|
+
(x = h(x, b, T, D, y, 7, c[4])),
|
|
796
|
+
(D = h(D, x, b, T, _, 12, c[5])),
|
|
797
|
+
(T = h(T, D, x, b, g, 17, c[6])),
|
|
798
|
+
(b = h(b, T, D, x, v, 22, c[7])),
|
|
799
|
+
(x = h(x, b, T, D, m, 7, c[8])),
|
|
800
|
+
(D = h(D, x, b, T, S, 12, c[9])),
|
|
801
|
+
(T = h(T, D, x, b, B, 17, c[10])),
|
|
802
|
+
(b = h(b, T, D, x, k, 22, c[11])),
|
|
803
|
+
(x = h(x, b, T, D, E, 7, c[12])),
|
|
804
|
+
(D = h(D, x, b, T, C, 12, c[13])),
|
|
805
|
+
(T = h(T, D, x, b, w, 17, c[14])),
|
|
806
|
+
(x = l(x, (b = h(b, T, D, x, A, 22, c[15])), T, D, a, 5, c[16])),
|
|
807
|
+
(D = l(D, x, b, T, g, 9, c[17])),
|
|
808
|
+
(T = l(T, D, x, b, k, 14, c[18])),
|
|
809
|
+
(b = l(b, T, D, x, s, 20, c[19])),
|
|
810
|
+
(x = l(x, b, T, D, _, 5, c[20])),
|
|
811
|
+
(D = l(D, x, b, T, B, 9, c[21])),
|
|
812
|
+
(T = l(T, D, x, b, A, 14, c[22])),
|
|
813
|
+
(b = l(b, T, D, x, y, 20, c[23])),
|
|
814
|
+
(x = l(x, b, T, D, S, 5, c[24])),
|
|
815
|
+
(D = l(D, x, b, T, w, 9, c[25])),
|
|
816
|
+
(T = l(T, D, x, b, d, 14, c[26])),
|
|
817
|
+
(b = l(b, T, D, x, m, 20, c[27])),
|
|
818
|
+
(x = l(x, b, T, D, C, 5, c[28])),
|
|
819
|
+
(D = l(D, x, b, T, p, 9, c[29])),
|
|
820
|
+
(T = l(T, D, x, b, v, 14, c[30])),
|
|
821
|
+
(x = f(x, (b = l(b, T, D, x, E, 20, c[31])), T, D, _, 4, c[32])),
|
|
822
|
+
(D = f(D, x, b, T, m, 11, c[33])),
|
|
823
|
+
(T = f(T, D, x, b, k, 16, c[34])),
|
|
824
|
+
(b = f(b, T, D, x, w, 23, c[35])),
|
|
825
|
+
(x = f(x, b, T, D, a, 4, c[36])),
|
|
826
|
+
(D = f(D, x, b, T, y, 11, c[37])),
|
|
827
|
+
(T = f(T, D, x, b, v, 16, c[38])),
|
|
828
|
+
(b = f(b, T, D, x, B, 23, c[39])),
|
|
829
|
+
(x = f(x, b, T, D, C, 4, c[40])),
|
|
830
|
+
(D = f(D, x, b, T, s, 11, c[41])),
|
|
831
|
+
(T = f(T, D, x, b, d, 16, c[42])),
|
|
832
|
+
(b = f(b, T, D, x, g, 23, c[43])),
|
|
833
|
+
(x = f(x, b, T, D, S, 4, c[44])),
|
|
834
|
+
(D = f(D, x, b, T, E, 11, c[45])),
|
|
835
|
+
(T = f(T, D, x, b, A, 16, c[46])),
|
|
836
|
+
(x = u(x, (b = f(b, T, D, x, p, 23, c[47])), T, D, s, 6, c[48])),
|
|
837
|
+
(D = u(D, x, b, T, v, 10, c[49])),
|
|
838
|
+
(T = u(T, D, x, b, w, 15, c[50])),
|
|
839
|
+
(b = u(b, T, D, x, _, 21, c[51])),
|
|
840
|
+
(x = u(x, b, T, D, E, 6, c[52])),
|
|
841
|
+
(D = u(D, x, b, T, d, 10, c[53])),
|
|
842
|
+
(T = u(T, D, x, b, B, 15, c[54])),
|
|
843
|
+
(b = u(b, T, D, x, a, 21, c[55])),
|
|
844
|
+
(x = u(x, b, T, D, m, 6, c[56])),
|
|
845
|
+
(D = u(D, x, b, T, A, 10, c[57])),
|
|
846
|
+
(T = u(T, D, x, b, g, 15, c[58])),
|
|
847
|
+
(b = u(b, T, D, x, C, 21, c[59])),
|
|
848
|
+
(x = u(x, b, T, D, y, 6, c[60])),
|
|
849
|
+
(D = u(D, x, b, T, k, 10, c[61])),
|
|
850
|
+
(T = u(T, D, x, b, p, 15, c[62])),
|
|
851
|
+
(b = u(b, T, D, x, S, 21, c[63])),
|
|
852
|
+
(o[0] = (o[0] + x) | 0),
|
|
853
|
+
(o[1] = (o[1] + b) | 0),
|
|
854
|
+
(o[2] = (o[2] + T) | 0),
|
|
855
|
+
(o[3] = (o[3] + D) | 0);
|
|
856
|
+
},
|
|
857
|
+
_doFinalize: function () {
|
|
858
|
+
var e = this._data,
|
|
859
|
+
r = e.words,
|
|
860
|
+
i = 8 * this._nDataBytes,
|
|
861
|
+
n = 8 * e.sigBytes;
|
|
862
|
+
r[n >>> 5] |= 128 << (24 - (n % 32));
|
|
863
|
+
var o = t.floor(i / 4294967296),
|
|
864
|
+
s = i;
|
|
865
|
+
(r[15 + (((n + 64) >>> 9) << 4)] =
|
|
866
|
+
(16711935 & ((o << 8) | (o >>> 24))) | (4278255360 & ((o << 24) | (o >>> 8)))),
|
|
867
|
+
(r[14 + (((n + 64) >>> 9) << 4)] =
|
|
868
|
+
(16711935 & ((s << 8) | (s >>> 24))) | (4278255360 & ((s << 24) | (s >>> 8)))),
|
|
869
|
+
(e.sigBytes = 4 * (r.length + 1)),
|
|
870
|
+
this._process();
|
|
871
|
+
for (var c = this._hash, a = c.words, h = 0; h < 4; h++) {
|
|
872
|
+
var l = a[h];
|
|
873
|
+
a[h] = (16711935 & ((l << 8) | (l >>> 24))) | (4278255360 & ((l << 24) | (l >>> 8)));
|
|
874
|
+
}
|
|
875
|
+
return c;
|
|
876
|
+
},
|
|
877
|
+
clone: function () {
|
|
878
|
+
var t = o.clone.call(this);
|
|
879
|
+
return (t._hash = this._hash.clone()), t;
|
|
880
|
+
},
|
|
881
|
+
}));
|
|
882
|
+
function h(t, e, r, i, n, o, s) {
|
|
883
|
+
var c = t + ((e & r) | (~e & i)) + n + s;
|
|
884
|
+
return ((c << o) | (c >>> (32 - o))) + e;
|
|
885
|
+
}
|
|
886
|
+
function l(t, e, r, i, n, o, s) {
|
|
887
|
+
var c = t + ((e & i) | (r & ~i)) + n + s;
|
|
888
|
+
return ((c << o) | (c >>> (32 - o))) + e;
|
|
889
|
+
}
|
|
890
|
+
function f(t, e, r, i, n, o, s) {
|
|
891
|
+
var c = t + (e ^ r ^ i) + n + s;
|
|
892
|
+
return ((c << o) | (c >>> (32 - o))) + e;
|
|
893
|
+
}
|
|
894
|
+
function u(t, e, r, i, n, o, s) {
|
|
895
|
+
var c = t + (r ^ (e | ~i)) + n + s;
|
|
896
|
+
return ((c << o) | (c >>> (32 - o))) + e;
|
|
897
|
+
}
|
|
898
|
+
(e.MD5 = o._createHelper(a)), (e.HmacMD5 = o._createHmacHelper(a));
|
|
899
|
+
})(Math),
|
|
900
|
+
i.MD5);
|
|
901
|
+
},
|
|
902
|
+
19: function (t, e, r) {
|
|
903
|
+
var i, n, o, s, c, a, h, l, f;
|
|
904
|
+
t.exports =
|
|
905
|
+
((f = r(21)),
|
|
906
|
+
r(9),
|
|
907
|
+
r(25),
|
|
908
|
+
(o = (n = (i = f).lib).Base),
|
|
909
|
+
(s = n.WordArray),
|
|
910
|
+
(a = (c = i.algo).SHA256),
|
|
911
|
+
(h = c.HMAC),
|
|
912
|
+
(l = c.PBKDF2 =
|
|
913
|
+
o.extend({
|
|
914
|
+
cfg: o.extend({ keySize: 4, hasher: a, iterations: 25e4 }),
|
|
915
|
+
init: function (t) {
|
|
916
|
+
this.cfg = this.cfg.extend(t);
|
|
917
|
+
},
|
|
918
|
+
compute: function (t, e) {
|
|
919
|
+
for (
|
|
920
|
+
var r = this.cfg,
|
|
921
|
+
i = h.create(r.hasher, t),
|
|
922
|
+
n = s.create(),
|
|
923
|
+
o = s.create([1]),
|
|
924
|
+
c = n.words,
|
|
925
|
+
a = o.words,
|
|
926
|
+
l = r.keySize,
|
|
927
|
+
f = r.iterations;
|
|
928
|
+
c.length < l;
|
|
929
|
+
|
|
930
|
+
) {
|
|
931
|
+
var u = i.update(e).finalize(o);
|
|
932
|
+
i.reset();
|
|
933
|
+
for (var p = u.words, d = p.length, y = u, _ = 1; _ < f; _++) {
|
|
934
|
+
(y = i.finalize(y)), i.reset();
|
|
935
|
+
for (var g = y.words, v = 0; v < d; v++) p[v] ^= g[v];
|
|
936
|
+
}
|
|
937
|
+
n.concat(u), a[0]++;
|
|
938
|
+
}
|
|
939
|
+
return (n.sigBytes = 4 * l), n;
|
|
940
|
+
},
|
|
941
|
+
})),
|
|
942
|
+
(i.PBKDF2 = function (t, e, r) {
|
|
943
|
+
return l.create(r).compute(t, e);
|
|
944
|
+
}),
|
|
945
|
+
f.PBKDF2);
|
|
946
|
+
},
|
|
947
|
+
298: function (t, e, r) {
|
|
948
|
+
var i;
|
|
949
|
+
t.exports =
|
|
950
|
+
((i = r(21)),
|
|
951
|
+
r(754),
|
|
952
|
+
r(636),
|
|
953
|
+
r(506),
|
|
954
|
+
r(165),
|
|
955
|
+
(function () {
|
|
956
|
+
var t = i,
|
|
957
|
+
e = t.lib.StreamCipher,
|
|
958
|
+
r = t.algo,
|
|
959
|
+
n = [],
|
|
960
|
+
o = [],
|
|
961
|
+
s = [],
|
|
962
|
+
c = (r.Rabbit = e.extend({
|
|
963
|
+
_doReset: function () {
|
|
964
|
+
for (var t = this._key.words, e = this.cfg.iv, r = 0; r < 4; r++)
|
|
965
|
+
t[r] = (16711935 & ((t[r] << 8) | (t[r] >>> 24))) | (4278255360 & ((t[r] << 24) | (t[r] >>> 8)));
|
|
966
|
+
var i = (this._X = [
|
|
967
|
+
t[0],
|
|
968
|
+
(t[3] << 16) | (t[2] >>> 16),
|
|
969
|
+
t[1],
|
|
970
|
+
(t[0] << 16) | (t[3] >>> 16),
|
|
971
|
+
t[2],
|
|
972
|
+
(t[1] << 16) | (t[0] >>> 16),
|
|
973
|
+
t[3],
|
|
974
|
+
(t[2] << 16) | (t[1] >>> 16),
|
|
975
|
+
]),
|
|
976
|
+
n = (this._C = [
|
|
977
|
+
(t[2] << 16) | (t[2] >>> 16),
|
|
978
|
+
(4294901760 & t[0]) | (65535 & t[1]),
|
|
979
|
+
(t[3] << 16) | (t[3] >>> 16),
|
|
980
|
+
(4294901760 & t[1]) | (65535 & t[2]),
|
|
981
|
+
(t[0] << 16) | (t[0] >>> 16),
|
|
982
|
+
(4294901760 & t[2]) | (65535 & t[3]),
|
|
983
|
+
(t[1] << 16) | (t[1] >>> 16),
|
|
984
|
+
(4294901760 & t[3]) | (65535 & t[0]),
|
|
985
|
+
]);
|
|
986
|
+
for (this._b = 0, r = 0; r < 4; r++) a.call(this);
|
|
987
|
+
for (r = 0; r < 8; r++) n[r] ^= i[(r + 4) & 7];
|
|
988
|
+
if (e) {
|
|
989
|
+
var o = e.words,
|
|
990
|
+
s = o[0],
|
|
991
|
+
c = o[1],
|
|
992
|
+
h = (16711935 & ((s << 8) | (s >>> 24))) | (4278255360 & ((s << 24) | (s >>> 8))),
|
|
993
|
+
l = (16711935 & ((c << 8) | (c >>> 24))) | (4278255360 & ((c << 24) | (c >>> 8))),
|
|
994
|
+
f = (h >>> 16) | (4294901760 & l),
|
|
995
|
+
u = (l << 16) | (65535 & h);
|
|
996
|
+
for (
|
|
997
|
+
n[0] ^= h, n[1] ^= f, n[2] ^= l, n[3] ^= u, n[4] ^= h, n[5] ^= f, n[6] ^= l, n[7] ^= u, r = 0;
|
|
998
|
+
r < 4;
|
|
999
|
+
r++
|
|
1000
|
+
)
|
|
1001
|
+
a.call(this);
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
_doProcessBlock: function (t, e) {
|
|
1005
|
+
var r = this._X;
|
|
1006
|
+
a.call(this),
|
|
1007
|
+
(n[0] = r[0] ^ (r[5] >>> 16) ^ (r[3] << 16)),
|
|
1008
|
+
(n[1] = r[2] ^ (r[7] >>> 16) ^ (r[5] << 16)),
|
|
1009
|
+
(n[2] = r[4] ^ (r[1] >>> 16) ^ (r[7] << 16)),
|
|
1010
|
+
(n[3] = r[6] ^ (r[3] >>> 16) ^ (r[1] << 16));
|
|
1011
|
+
for (var i = 0; i < 4; i++)
|
|
1012
|
+
(n[i] =
|
|
1013
|
+
(16711935 & ((n[i] << 8) | (n[i] >>> 24))) | (4278255360 & ((n[i] << 24) | (n[i] >>> 8)))),
|
|
1014
|
+
(t[e + i] ^= n[i]);
|
|
1015
|
+
},
|
|
1016
|
+
blockSize: 4,
|
|
1017
|
+
ivSize: 2,
|
|
1018
|
+
}));
|
|
1019
|
+
function a() {
|
|
1020
|
+
for (var t = this._X, e = this._C, r = 0; r < 8; r++) o[r] = e[r];
|
|
1021
|
+
for (
|
|
1022
|
+
e[0] = (e[0] + 1295307597 + this._b) | 0,
|
|
1023
|
+
e[1] = (e[1] + 3545052371 + (e[0] >>> 0 < o[0] >>> 0 ? 1 : 0)) | 0,
|
|
1024
|
+
e[2] = (e[2] + 886263092 + (e[1] >>> 0 < o[1] >>> 0 ? 1 : 0)) | 0,
|
|
1025
|
+
e[3] = (e[3] + 1295307597 + (e[2] >>> 0 < o[2] >>> 0 ? 1 : 0)) | 0,
|
|
1026
|
+
e[4] = (e[4] + 3545052371 + (e[3] >>> 0 < o[3] >>> 0 ? 1 : 0)) | 0,
|
|
1027
|
+
e[5] = (e[5] + 886263092 + (e[4] >>> 0 < o[4] >>> 0 ? 1 : 0)) | 0,
|
|
1028
|
+
e[6] = (e[6] + 1295307597 + (e[5] >>> 0 < o[5] >>> 0 ? 1 : 0)) | 0,
|
|
1029
|
+
e[7] = (e[7] + 3545052371 + (e[6] >>> 0 < o[6] >>> 0 ? 1 : 0)) | 0,
|
|
1030
|
+
this._b = e[7] >>> 0 < o[7] >>> 0 ? 1 : 0,
|
|
1031
|
+
r = 0;
|
|
1032
|
+
r < 8;
|
|
1033
|
+
r++
|
|
1034
|
+
) {
|
|
1035
|
+
var i = t[r] + e[r],
|
|
1036
|
+
n = 65535 & i,
|
|
1037
|
+
c = i >>> 16,
|
|
1038
|
+
a = ((((n * n) >>> 17) + n * c) >>> 15) + c * c,
|
|
1039
|
+
h = (((4294901760 & i) * i) | 0) + (((65535 & i) * i) | 0);
|
|
1040
|
+
s[r] = a ^ h;
|
|
1041
|
+
}
|
|
1042
|
+
(t[0] = (s[0] + ((s[7] << 16) | (s[7] >>> 16)) + ((s[6] << 16) | (s[6] >>> 16))) | 0),
|
|
1043
|
+
(t[1] = (s[1] + ((s[0] << 8) | (s[0] >>> 24)) + s[7]) | 0),
|
|
1044
|
+
(t[2] = (s[2] + ((s[1] << 16) | (s[1] >>> 16)) + ((s[0] << 16) | (s[0] >>> 16))) | 0),
|
|
1045
|
+
(t[3] = (s[3] + ((s[2] << 8) | (s[2] >>> 24)) + s[1]) | 0),
|
|
1046
|
+
(t[4] = (s[4] + ((s[3] << 16) | (s[3] >>> 16)) + ((s[2] << 16) | (s[2] >>> 16))) | 0),
|
|
1047
|
+
(t[5] = (s[5] + ((s[4] << 8) | (s[4] >>> 24)) + s[3]) | 0),
|
|
1048
|
+
(t[6] = (s[6] + ((s[5] << 16) | (s[5] >>> 16)) + ((s[4] << 16) | (s[4] >>> 16))) | 0),
|
|
1049
|
+
(t[7] = (s[7] + ((s[6] << 8) | (s[6] >>> 24)) + s[5]) | 0);
|
|
1050
|
+
}
|
|
1051
|
+
t.Rabbit = e._createHelper(c);
|
|
1052
|
+
})(),
|
|
1053
|
+
i.Rabbit);
|
|
1054
|
+
},
|
|
1055
|
+
193: function (t, e, r) {
|
|
1056
|
+
var i;
|
|
1057
|
+
t.exports =
|
|
1058
|
+
((i = r(21)),
|
|
1059
|
+
r(754),
|
|
1060
|
+
r(636),
|
|
1061
|
+
r(506),
|
|
1062
|
+
r(165),
|
|
1063
|
+
(function () {
|
|
1064
|
+
var t = i,
|
|
1065
|
+
e = t.lib.StreamCipher,
|
|
1066
|
+
r = t.algo,
|
|
1067
|
+
n = (r.RC4 = e.extend({
|
|
1068
|
+
_doReset: function () {
|
|
1069
|
+
for (var t = this._key, e = t.words, r = t.sigBytes, i = (this._S = []), n = 0; n < 256; n++)
|
|
1070
|
+
i[n] = n;
|
|
1071
|
+
n = 0;
|
|
1072
|
+
for (var o = 0; n < 256; n++) {
|
|
1073
|
+
var s = n % r,
|
|
1074
|
+
c = (e[s >>> 2] >>> (24 - (s % 4) * 8)) & 255;
|
|
1075
|
+
o = (o + i[n] + c) % 256;
|
|
1076
|
+
var a = i[n];
|
|
1077
|
+
(i[n] = i[o]), (i[o] = a);
|
|
1078
|
+
}
|
|
1079
|
+
this._i = this._j = 0;
|
|
1080
|
+
},
|
|
1081
|
+
_doProcessBlock: function (t, e) {
|
|
1082
|
+
t[e] ^= o.call(this);
|
|
1083
|
+
},
|
|
1084
|
+
keySize: 8,
|
|
1085
|
+
ivSize: 0,
|
|
1086
|
+
}));
|
|
1087
|
+
function o() {
|
|
1088
|
+
for (var t = this._S, e = this._i, r = this._j, i = 0, n = 0; n < 4; n++) {
|
|
1089
|
+
r = (r + t[(e = (e + 1) % 256)]) % 256;
|
|
1090
|
+
var o = t[e];
|
|
1091
|
+
(t[e] = t[r]), (t[r] = o), (i |= t[(t[e] + t[r]) % 256] << (24 - 8 * n));
|
|
1092
|
+
}
|
|
1093
|
+
return (this._i = e), (this._j = r), i;
|
|
1094
|
+
}
|
|
1095
|
+
t.RC4 = e._createHelper(n);
|
|
1096
|
+
var s = (r.RC4Drop = n.extend({
|
|
1097
|
+
cfg: n.cfg.extend({ drop: 192 }),
|
|
1098
|
+
_doReset: function () {
|
|
1099
|
+
n._doReset.call(this);
|
|
1100
|
+
for (var t = this.cfg.drop; t > 0; t--) o.call(this);
|
|
1101
|
+
},
|
|
1102
|
+
}));
|
|
1103
|
+
t.RC4Drop = e._createHelper(s);
|
|
1104
|
+
})(),
|
|
1105
|
+
i.RC4);
|
|
1106
|
+
},
|
|
1107
|
+
471: function (t, e, r) {
|
|
1108
|
+
var i, n, o, s, c, a, h, l;
|
|
1109
|
+
t.exports =
|
|
1110
|
+
((n = (i = l = r(21)).lib),
|
|
1111
|
+
(o = n.WordArray),
|
|
1112
|
+
(s = n.Hasher),
|
|
1113
|
+
(c = i.algo),
|
|
1114
|
+
(a = []),
|
|
1115
|
+
(h = c.SHA1 =
|
|
1116
|
+
s.extend({
|
|
1117
|
+
_doReset: function () {
|
|
1118
|
+
this._hash = new o.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520]);
|
|
1119
|
+
},
|
|
1120
|
+
_doProcessBlock: function (t, e) {
|
|
1121
|
+
for (var r = this._hash.words, i = r[0], n = r[1], o = r[2], s = r[3], c = r[4], h = 0; h < 80; h++) {
|
|
1122
|
+
if (h < 16) a[h] = 0 | t[e + h];
|
|
1123
|
+
else {
|
|
1124
|
+
var l = a[h - 3] ^ a[h - 8] ^ a[h - 14] ^ a[h - 16];
|
|
1125
|
+
a[h] = (l << 1) | (l >>> 31);
|
|
1126
|
+
}
|
|
1127
|
+
var f = ((i << 5) | (i >>> 27)) + c + a[h];
|
|
1128
|
+
(f +=
|
|
1129
|
+
h < 20
|
|
1130
|
+
? 1518500249 + ((n & o) | (~n & s))
|
|
1131
|
+
: h < 40
|
|
1132
|
+
? 1859775393 + (n ^ o ^ s)
|
|
1133
|
+
: h < 60
|
|
1134
|
+
? ((n & o) | (n & s) | (o & s)) - 1894007588
|
|
1135
|
+
: (n ^ o ^ s) - 899497514),
|
|
1136
|
+
(c = s),
|
|
1137
|
+
(s = o),
|
|
1138
|
+
(o = (n << 30) | (n >>> 2)),
|
|
1139
|
+
(n = i),
|
|
1140
|
+
(i = f);
|
|
1141
|
+
}
|
|
1142
|
+
(r[0] = (r[0] + i) | 0),
|
|
1143
|
+
(r[1] = (r[1] + n) | 0),
|
|
1144
|
+
(r[2] = (r[2] + o) | 0),
|
|
1145
|
+
(r[3] = (r[3] + s) | 0),
|
|
1146
|
+
(r[4] = (r[4] + c) | 0);
|
|
1147
|
+
},
|
|
1148
|
+
_doFinalize: function () {
|
|
1149
|
+
var t = this._data,
|
|
1150
|
+
e = t.words,
|
|
1151
|
+
r = 8 * this._nDataBytes,
|
|
1152
|
+
i = 8 * t.sigBytes;
|
|
1153
|
+
return (
|
|
1154
|
+
(e[i >>> 5] |= 128 << (24 - (i % 32))),
|
|
1155
|
+
(e[14 + (((i + 64) >>> 9) << 4)] = Math.floor(r / 4294967296)),
|
|
1156
|
+
(e[15 + (((i + 64) >>> 9) << 4)] = r),
|
|
1157
|
+
(t.sigBytes = 4 * e.length),
|
|
1158
|
+
this._process(),
|
|
1159
|
+
this._hash
|
|
1160
|
+
);
|
|
1161
|
+
},
|
|
1162
|
+
clone: function () {
|
|
1163
|
+
var t = s.clone.call(this);
|
|
1164
|
+
return (t._hash = this._hash.clone()), t;
|
|
1165
|
+
},
|
|
1166
|
+
})),
|
|
1167
|
+
(i.SHA1 = s._createHelper(h)),
|
|
1168
|
+
(i.HmacSHA1 = s._createHmacHelper(h)),
|
|
1169
|
+
l.SHA1);
|
|
1170
|
+
},
|
|
1171
|
+
9: function (t, e, r) {
|
|
1172
|
+
var i;
|
|
1173
|
+
t.exports =
|
|
1174
|
+
((i = r(21)),
|
|
1175
|
+
(function (t) {
|
|
1176
|
+
var e = i,
|
|
1177
|
+
r = e.lib,
|
|
1178
|
+
n = r.WordArray,
|
|
1179
|
+
o = r.Hasher,
|
|
1180
|
+
s = e.algo,
|
|
1181
|
+
c = [],
|
|
1182
|
+
a = [];
|
|
1183
|
+
!(function () {
|
|
1184
|
+
function e(e) {
|
|
1185
|
+
for (var r = t.sqrt(e), i = 2; i <= r; i++) if (!(e % i)) return !1;
|
|
1186
|
+
return !0;
|
|
1187
|
+
}
|
|
1188
|
+
function r(t) {
|
|
1189
|
+
return (4294967296 * (t - (0 | t))) | 0;
|
|
1190
|
+
}
|
|
1191
|
+
for (var i = 2, n = 0; n < 64; )
|
|
1192
|
+
e(i) && (n < 8 && (c[n] = r(t.pow(i, 0.5))), (a[n] = r(t.pow(i, 1 / 3))), n++), i++;
|
|
1193
|
+
})();
|
|
1194
|
+
var h = [],
|
|
1195
|
+
l = (s.SHA256 = o.extend({
|
|
1196
|
+
_doReset: function () {
|
|
1197
|
+
this._hash = new n.init(c.slice(0));
|
|
1198
|
+
},
|
|
1199
|
+
_doProcessBlock: function (t, e) {
|
|
1200
|
+
for (
|
|
1201
|
+
var r = this._hash.words,
|
|
1202
|
+
i = r[0],
|
|
1203
|
+
n = r[1],
|
|
1204
|
+
o = r[2],
|
|
1205
|
+
s = r[3],
|
|
1206
|
+
c = r[4],
|
|
1207
|
+
l = r[5],
|
|
1208
|
+
f = r[6],
|
|
1209
|
+
u = r[7],
|
|
1210
|
+
p = 0;
|
|
1211
|
+
p < 64;
|
|
1212
|
+
p++
|
|
1213
|
+
) {
|
|
1214
|
+
if (p < 16) h[p] = 0 | t[e + p];
|
|
1215
|
+
else {
|
|
1216
|
+
var d = h[p - 15],
|
|
1217
|
+
y = ((d << 25) | (d >>> 7)) ^ ((d << 14) | (d >>> 18)) ^ (d >>> 3),
|
|
1218
|
+
_ = h[p - 2],
|
|
1219
|
+
g = ((_ << 15) | (_ >>> 17)) ^ ((_ << 13) | (_ >>> 19)) ^ (_ >>> 10);
|
|
1220
|
+
h[p] = y + h[p - 7] + g + h[p - 16];
|
|
1221
|
+
}
|
|
1222
|
+
var v = (i & n) ^ (i & o) ^ (n & o),
|
|
1223
|
+
m = ((i << 30) | (i >>> 2)) ^ ((i << 19) | (i >>> 13)) ^ ((i << 10) | (i >>> 22)),
|
|
1224
|
+
S =
|
|
1225
|
+
u +
|
|
1226
|
+
(((c << 26) | (c >>> 6)) ^ ((c << 21) | (c >>> 11)) ^ ((c << 7) | (c >>> 25))) +
|
|
1227
|
+
((c & l) ^ (~c & f)) +
|
|
1228
|
+
a[p] +
|
|
1229
|
+
h[p];
|
|
1230
|
+
(u = f), (f = l), (l = c), (c = (s + S) | 0), (s = o), (o = n), (n = i), (i = (S + (m + v)) | 0);
|
|
1231
|
+
}
|
|
1232
|
+
(r[0] = (r[0] + i) | 0),
|
|
1233
|
+
(r[1] = (r[1] + n) | 0),
|
|
1234
|
+
(r[2] = (r[2] + o) | 0),
|
|
1235
|
+
(r[3] = (r[3] + s) | 0),
|
|
1236
|
+
(r[4] = (r[4] + c) | 0),
|
|
1237
|
+
(r[5] = (r[5] + l) | 0),
|
|
1238
|
+
(r[6] = (r[6] + f) | 0),
|
|
1239
|
+
(r[7] = (r[7] + u) | 0);
|
|
1240
|
+
},
|
|
1241
|
+
_doFinalize: function () {
|
|
1242
|
+
var e = this._data,
|
|
1243
|
+
r = e.words,
|
|
1244
|
+
i = 8 * this._nDataBytes,
|
|
1245
|
+
n = 8 * e.sigBytes;
|
|
1246
|
+
return (
|
|
1247
|
+
(r[n >>> 5] |= 128 << (24 - (n % 32))),
|
|
1248
|
+
(r[14 + (((n + 64) >>> 9) << 4)] = t.floor(i / 4294967296)),
|
|
1249
|
+
(r[15 + (((n + 64) >>> 9) << 4)] = i),
|
|
1250
|
+
(e.sigBytes = 4 * r.length),
|
|
1251
|
+
this._process(),
|
|
1252
|
+
this._hash
|
|
1253
|
+
);
|
|
1254
|
+
},
|
|
1255
|
+
clone: function () {
|
|
1256
|
+
var t = o.clone.call(this);
|
|
1257
|
+
return (t._hash = this._hash.clone()), t;
|
|
1258
|
+
},
|
|
1259
|
+
}));
|
|
1260
|
+
(e.SHA256 = o._createHelper(l)), (e.HmacSHA256 = o._createHmacHelper(l));
|
|
1261
|
+
})(Math),
|
|
1262
|
+
i.SHA256);
|
|
1263
|
+
},
|
|
1264
|
+
628: function (t, e, r) {
|
|
1265
|
+
var i;
|
|
1266
|
+
t.exports =
|
|
1267
|
+
((i = r(21)),
|
|
1268
|
+
r(754),
|
|
1269
|
+
r(636),
|
|
1270
|
+
r(506),
|
|
1271
|
+
r(165),
|
|
1272
|
+
(function () {
|
|
1273
|
+
var t = i,
|
|
1274
|
+
e = t.lib,
|
|
1275
|
+
r = e.WordArray,
|
|
1276
|
+
n = e.BlockCipher,
|
|
1277
|
+
o = t.algo,
|
|
1278
|
+
s = [
|
|
1279
|
+
57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52,
|
|
1280
|
+
44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5,
|
|
1281
|
+
28, 20, 12, 4,
|
|
1282
|
+
],
|
|
1283
|
+
c = [
|
|
1284
|
+
14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31,
|
|
1285
|
+
37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32,
|
|
1286
|
+
],
|
|
1287
|
+
a = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28],
|
|
1288
|
+
h = [
|
|
1289
|
+
{
|
|
1290
|
+
0: 8421888,
|
|
1291
|
+
268435456: 32768,
|
|
1292
|
+
536870912: 8421378,
|
|
1293
|
+
805306368: 2,
|
|
1294
|
+
1073741824: 512,
|
|
1295
|
+
1342177280: 8421890,
|
|
1296
|
+
1610612736: 8389122,
|
|
1297
|
+
1879048192: 8388608,
|
|
1298
|
+
2147483648: 514,
|
|
1299
|
+
2415919104: 8389120,
|
|
1300
|
+
2684354560: 33280,
|
|
1301
|
+
2952790016: 8421376,
|
|
1302
|
+
3221225472: 32770,
|
|
1303
|
+
3489660928: 8388610,
|
|
1304
|
+
3758096384: 0,
|
|
1305
|
+
4026531840: 33282,
|
|
1306
|
+
134217728: 0,
|
|
1307
|
+
402653184: 8421890,
|
|
1308
|
+
671088640: 33282,
|
|
1309
|
+
939524096: 32768,
|
|
1310
|
+
1207959552: 8421888,
|
|
1311
|
+
1476395008: 512,
|
|
1312
|
+
1744830464: 8421378,
|
|
1313
|
+
2013265920: 2,
|
|
1314
|
+
2281701376: 8389120,
|
|
1315
|
+
2550136832: 33280,
|
|
1316
|
+
2818572288: 8421376,
|
|
1317
|
+
3087007744: 8389122,
|
|
1318
|
+
3355443200: 8388610,
|
|
1319
|
+
3623878656: 32770,
|
|
1320
|
+
3892314112: 514,
|
|
1321
|
+
4160749568: 8388608,
|
|
1322
|
+
1: 32768,
|
|
1323
|
+
268435457: 2,
|
|
1324
|
+
536870913: 8421888,
|
|
1325
|
+
805306369: 8388608,
|
|
1326
|
+
1073741825: 8421378,
|
|
1327
|
+
1342177281: 33280,
|
|
1328
|
+
1610612737: 512,
|
|
1329
|
+
1879048193: 8389122,
|
|
1330
|
+
2147483649: 8421890,
|
|
1331
|
+
2415919105: 8421376,
|
|
1332
|
+
2684354561: 8388610,
|
|
1333
|
+
2952790017: 33282,
|
|
1334
|
+
3221225473: 514,
|
|
1335
|
+
3489660929: 8389120,
|
|
1336
|
+
3758096385: 32770,
|
|
1337
|
+
4026531841: 0,
|
|
1338
|
+
134217729: 8421890,
|
|
1339
|
+
402653185: 8421376,
|
|
1340
|
+
671088641: 8388608,
|
|
1341
|
+
939524097: 512,
|
|
1342
|
+
1207959553: 32768,
|
|
1343
|
+
1476395009: 8388610,
|
|
1344
|
+
1744830465: 2,
|
|
1345
|
+
2013265921: 33282,
|
|
1346
|
+
2281701377: 32770,
|
|
1347
|
+
2550136833: 8389122,
|
|
1348
|
+
2818572289: 514,
|
|
1349
|
+
3087007745: 8421888,
|
|
1350
|
+
3355443201: 8389120,
|
|
1351
|
+
3623878657: 0,
|
|
1352
|
+
3892314113: 33280,
|
|
1353
|
+
4160749569: 8421378,
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
0: 1074282512,
|
|
1357
|
+
16777216: 16384,
|
|
1358
|
+
33554432: 524288,
|
|
1359
|
+
50331648: 1074266128,
|
|
1360
|
+
67108864: 1073741840,
|
|
1361
|
+
83886080: 1074282496,
|
|
1362
|
+
100663296: 1073758208,
|
|
1363
|
+
117440512: 16,
|
|
1364
|
+
134217728: 540672,
|
|
1365
|
+
150994944: 1073758224,
|
|
1366
|
+
167772160: 1073741824,
|
|
1367
|
+
184549376: 540688,
|
|
1368
|
+
201326592: 524304,
|
|
1369
|
+
218103808: 0,
|
|
1370
|
+
234881024: 16400,
|
|
1371
|
+
251658240: 1074266112,
|
|
1372
|
+
8388608: 1073758208,
|
|
1373
|
+
25165824: 540688,
|
|
1374
|
+
41943040: 16,
|
|
1375
|
+
58720256: 1073758224,
|
|
1376
|
+
75497472: 1074282512,
|
|
1377
|
+
92274688: 1073741824,
|
|
1378
|
+
109051904: 524288,
|
|
1379
|
+
125829120: 1074266128,
|
|
1380
|
+
142606336: 524304,
|
|
1381
|
+
159383552: 0,
|
|
1382
|
+
176160768: 16384,
|
|
1383
|
+
192937984: 1074266112,
|
|
1384
|
+
209715200: 1073741840,
|
|
1385
|
+
226492416: 540672,
|
|
1386
|
+
243269632: 1074282496,
|
|
1387
|
+
260046848: 16400,
|
|
1388
|
+
268435456: 0,
|
|
1389
|
+
285212672: 1074266128,
|
|
1390
|
+
301989888: 1073758224,
|
|
1391
|
+
318767104: 1074282496,
|
|
1392
|
+
335544320: 1074266112,
|
|
1393
|
+
352321536: 16,
|
|
1394
|
+
369098752: 540688,
|
|
1395
|
+
385875968: 16384,
|
|
1396
|
+
402653184: 16400,
|
|
1397
|
+
419430400: 524288,
|
|
1398
|
+
436207616: 524304,
|
|
1399
|
+
452984832: 1073741840,
|
|
1400
|
+
469762048: 540672,
|
|
1401
|
+
486539264: 1073758208,
|
|
1402
|
+
503316480: 1073741824,
|
|
1403
|
+
520093696: 1074282512,
|
|
1404
|
+
276824064: 540688,
|
|
1405
|
+
293601280: 524288,
|
|
1406
|
+
310378496: 1074266112,
|
|
1407
|
+
327155712: 16384,
|
|
1408
|
+
343932928: 1073758208,
|
|
1409
|
+
360710144: 1074282512,
|
|
1410
|
+
377487360: 16,
|
|
1411
|
+
394264576: 1073741824,
|
|
1412
|
+
411041792: 1074282496,
|
|
1413
|
+
427819008: 1073741840,
|
|
1414
|
+
444596224: 1073758224,
|
|
1415
|
+
461373440: 524304,
|
|
1416
|
+
478150656: 0,
|
|
1417
|
+
494927872: 16400,
|
|
1418
|
+
511705088: 1074266128,
|
|
1419
|
+
528482304: 540672,
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
0: 260,
|
|
1423
|
+
1048576: 0,
|
|
1424
|
+
2097152: 67109120,
|
|
1425
|
+
3145728: 65796,
|
|
1426
|
+
4194304: 65540,
|
|
1427
|
+
5242880: 67108868,
|
|
1428
|
+
6291456: 67174660,
|
|
1429
|
+
7340032: 67174400,
|
|
1430
|
+
8388608: 67108864,
|
|
1431
|
+
9437184: 67174656,
|
|
1432
|
+
10485760: 65792,
|
|
1433
|
+
11534336: 67174404,
|
|
1434
|
+
12582912: 67109124,
|
|
1435
|
+
13631488: 65536,
|
|
1436
|
+
14680064: 4,
|
|
1437
|
+
15728640: 256,
|
|
1438
|
+
524288: 67174656,
|
|
1439
|
+
1572864: 67174404,
|
|
1440
|
+
2621440: 0,
|
|
1441
|
+
3670016: 67109120,
|
|
1442
|
+
4718592: 67108868,
|
|
1443
|
+
5767168: 65536,
|
|
1444
|
+
6815744: 65540,
|
|
1445
|
+
7864320: 260,
|
|
1446
|
+
8912896: 4,
|
|
1447
|
+
9961472: 256,
|
|
1448
|
+
11010048: 67174400,
|
|
1449
|
+
12058624: 65796,
|
|
1450
|
+
13107200: 65792,
|
|
1451
|
+
14155776: 67109124,
|
|
1452
|
+
15204352: 67174660,
|
|
1453
|
+
16252928: 67108864,
|
|
1454
|
+
16777216: 67174656,
|
|
1455
|
+
17825792: 65540,
|
|
1456
|
+
18874368: 65536,
|
|
1457
|
+
19922944: 67109120,
|
|
1458
|
+
20971520: 256,
|
|
1459
|
+
22020096: 67174660,
|
|
1460
|
+
23068672: 67108868,
|
|
1461
|
+
24117248: 0,
|
|
1462
|
+
25165824: 67109124,
|
|
1463
|
+
26214400: 67108864,
|
|
1464
|
+
27262976: 4,
|
|
1465
|
+
28311552: 65792,
|
|
1466
|
+
29360128: 67174400,
|
|
1467
|
+
30408704: 260,
|
|
1468
|
+
31457280: 65796,
|
|
1469
|
+
32505856: 67174404,
|
|
1470
|
+
17301504: 67108864,
|
|
1471
|
+
18350080: 260,
|
|
1472
|
+
19398656: 67174656,
|
|
1473
|
+
20447232: 0,
|
|
1474
|
+
21495808: 65540,
|
|
1475
|
+
22544384: 67109120,
|
|
1476
|
+
23592960: 256,
|
|
1477
|
+
24641536: 67174404,
|
|
1478
|
+
25690112: 65536,
|
|
1479
|
+
26738688: 67174660,
|
|
1480
|
+
27787264: 65796,
|
|
1481
|
+
28835840: 67108868,
|
|
1482
|
+
29884416: 67109124,
|
|
1483
|
+
30932992: 67174400,
|
|
1484
|
+
31981568: 4,
|
|
1485
|
+
33030144: 65792,
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
0: 2151682048,
|
|
1489
|
+
65536: 2147487808,
|
|
1490
|
+
131072: 4198464,
|
|
1491
|
+
196608: 2151677952,
|
|
1492
|
+
262144: 0,
|
|
1493
|
+
327680: 4198400,
|
|
1494
|
+
393216: 2147483712,
|
|
1495
|
+
458752: 4194368,
|
|
1496
|
+
524288: 2147483648,
|
|
1497
|
+
589824: 4194304,
|
|
1498
|
+
655360: 64,
|
|
1499
|
+
720896: 2147487744,
|
|
1500
|
+
786432: 2151678016,
|
|
1501
|
+
851968: 4160,
|
|
1502
|
+
917504: 4096,
|
|
1503
|
+
983040: 2151682112,
|
|
1504
|
+
32768: 2147487808,
|
|
1505
|
+
98304: 64,
|
|
1506
|
+
163840: 2151678016,
|
|
1507
|
+
229376: 2147487744,
|
|
1508
|
+
294912: 4198400,
|
|
1509
|
+
360448: 2151682112,
|
|
1510
|
+
425984: 0,
|
|
1511
|
+
491520: 2151677952,
|
|
1512
|
+
557056: 4096,
|
|
1513
|
+
622592: 2151682048,
|
|
1514
|
+
688128: 4194304,
|
|
1515
|
+
753664: 4160,
|
|
1516
|
+
819200: 2147483648,
|
|
1517
|
+
884736: 4194368,
|
|
1518
|
+
950272: 4198464,
|
|
1519
|
+
1015808: 2147483712,
|
|
1520
|
+
1048576: 4194368,
|
|
1521
|
+
1114112: 4198400,
|
|
1522
|
+
1179648: 2147483712,
|
|
1523
|
+
1245184: 0,
|
|
1524
|
+
1310720: 4160,
|
|
1525
|
+
1376256: 2151678016,
|
|
1526
|
+
1441792: 2151682048,
|
|
1527
|
+
1507328: 2147487808,
|
|
1528
|
+
1572864: 2151682112,
|
|
1529
|
+
1638400: 2147483648,
|
|
1530
|
+
1703936: 2151677952,
|
|
1531
|
+
1769472: 4198464,
|
|
1532
|
+
1835008: 2147487744,
|
|
1533
|
+
1900544: 4194304,
|
|
1534
|
+
1966080: 64,
|
|
1535
|
+
2031616: 4096,
|
|
1536
|
+
1081344: 2151677952,
|
|
1537
|
+
1146880: 2151682112,
|
|
1538
|
+
1212416: 0,
|
|
1539
|
+
1277952: 4198400,
|
|
1540
|
+
1343488: 4194368,
|
|
1541
|
+
1409024: 2147483648,
|
|
1542
|
+
1474560: 2147487808,
|
|
1543
|
+
1540096: 64,
|
|
1544
|
+
1605632: 2147483712,
|
|
1545
|
+
1671168: 4096,
|
|
1546
|
+
1736704: 2147487744,
|
|
1547
|
+
1802240: 2151678016,
|
|
1548
|
+
1867776: 4160,
|
|
1549
|
+
1933312: 2151682048,
|
|
1550
|
+
1998848: 4194304,
|
|
1551
|
+
2064384: 4198464,
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
0: 128,
|
|
1555
|
+
4096: 17039360,
|
|
1556
|
+
8192: 262144,
|
|
1557
|
+
12288: 536870912,
|
|
1558
|
+
16384: 537133184,
|
|
1559
|
+
20480: 16777344,
|
|
1560
|
+
24576: 553648256,
|
|
1561
|
+
28672: 262272,
|
|
1562
|
+
32768: 16777216,
|
|
1563
|
+
36864: 537133056,
|
|
1564
|
+
40960: 536871040,
|
|
1565
|
+
45056: 553910400,
|
|
1566
|
+
49152: 553910272,
|
|
1567
|
+
53248: 0,
|
|
1568
|
+
57344: 17039488,
|
|
1569
|
+
61440: 553648128,
|
|
1570
|
+
2048: 17039488,
|
|
1571
|
+
6144: 553648256,
|
|
1572
|
+
10240: 128,
|
|
1573
|
+
14336: 17039360,
|
|
1574
|
+
18432: 262144,
|
|
1575
|
+
22528: 537133184,
|
|
1576
|
+
26624: 553910272,
|
|
1577
|
+
30720: 536870912,
|
|
1578
|
+
34816: 537133056,
|
|
1579
|
+
38912: 0,
|
|
1580
|
+
43008: 553910400,
|
|
1581
|
+
47104: 16777344,
|
|
1582
|
+
51200: 536871040,
|
|
1583
|
+
55296: 553648128,
|
|
1584
|
+
59392: 16777216,
|
|
1585
|
+
63488: 262272,
|
|
1586
|
+
65536: 262144,
|
|
1587
|
+
69632: 128,
|
|
1588
|
+
73728: 536870912,
|
|
1589
|
+
77824: 553648256,
|
|
1590
|
+
81920: 16777344,
|
|
1591
|
+
86016: 553910272,
|
|
1592
|
+
90112: 537133184,
|
|
1593
|
+
94208: 16777216,
|
|
1594
|
+
98304: 553910400,
|
|
1595
|
+
102400: 553648128,
|
|
1596
|
+
106496: 17039360,
|
|
1597
|
+
110592: 537133056,
|
|
1598
|
+
114688: 262272,
|
|
1599
|
+
118784: 536871040,
|
|
1600
|
+
122880: 0,
|
|
1601
|
+
126976: 17039488,
|
|
1602
|
+
67584: 553648256,
|
|
1603
|
+
71680: 16777216,
|
|
1604
|
+
75776: 17039360,
|
|
1605
|
+
79872: 537133184,
|
|
1606
|
+
83968: 536870912,
|
|
1607
|
+
88064: 17039488,
|
|
1608
|
+
92160: 128,
|
|
1609
|
+
96256: 553910272,
|
|
1610
|
+
100352: 262272,
|
|
1611
|
+
104448: 553910400,
|
|
1612
|
+
108544: 0,
|
|
1613
|
+
112640: 553648128,
|
|
1614
|
+
116736: 16777344,
|
|
1615
|
+
120832: 262144,
|
|
1616
|
+
124928: 537133056,
|
|
1617
|
+
129024: 536871040,
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
0: 268435464,
|
|
1621
|
+
256: 8192,
|
|
1622
|
+
512: 270532608,
|
|
1623
|
+
768: 270540808,
|
|
1624
|
+
1024: 268443648,
|
|
1625
|
+
1280: 2097152,
|
|
1626
|
+
1536: 2097160,
|
|
1627
|
+
1792: 268435456,
|
|
1628
|
+
2048: 0,
|
|
1629
|
+
2304: 268443656,
|
|
1630
|
+
2560: 2105344,
|
|
1631
|
+
2816: 8,
|
|
1632
|
+
3072: 270532616,
|
|
1633
|
+
3328: 2105352,
|
|
1634
|
+
3584: 8200,
|
|
1635
|
+
3840: 270540800,
|
|
1636
|
+
128: 270532608,
|
|
1637
|
+
384: 270540808,
|
|
1638
|
+
640: 8,
|
|
1639
|
+
896: 2097152,
|
|
1640
|
+
1152: 2105352,
|
|
1641
|
+
1408: 268435464,
|
|
1642
|
+
1664: 268443648,
|
|
1643
|
+
1920: 8200,
|
|
1644
|
+
2176: 2097160,
|
|
1645
|
+
2432: 8192,
|
|
1646
|
+
2688: 268443656,
|
|
1647
|
+
2944: 270532616,
|
|
1648
|
+
3200: 0,
|
|
1649
|
+
3456: 270540800,
|
|
1650
|
+
3712: 2105344,
|
|
1651
|
+
3968: 268435456,
|
|
1652
|
+
4096: 268443648,
|
|
1653
|
+
4352: 270532616,
|
|
1654
|
+
4608: 270540808,
|
|
1655
|
+
4864: 8200,
|
|
1656
|
+
5120: 2097152,
|
|
1657
|
+
5376: 268435456,
|
|
1658
|
+
5632: 268435464,
|
|
1659
|
+
5888: 2105344,
|
|
1660
|
+
6144: 2105352,
|
|
1661
|
+
6400: 0,
|
|
1662
|
+
6656: 8,
|
|
1663
|
+
6912: 270532608,
|
|
1664
|
+
7168: 8192,
|
|
1665
|
+
7424: 268443656,
|
|
1666
|
+
7680: 270540800,
|
|
1667
|
+
7936: 2097160,
|
|
1668
|
+
4224: 8,
|
|
1669
|
+
4480: 2105344,
|
|
1670
|
+
4736: 2097152,
|
|
1671
|
+
4992: 268435464,
|
|
1672
|
+
5248: 268443648,
|
|
1673
|
+
5504: 8200,
|
|
1674
|
+
5760: 270540808,
|
|
1675
|
+
6016: 270532608,
|
|
1676
|
+
6272: 270540800,
|
|
1677
|
+
6528: 270532616,
|
|
1678
|
+
6784: 8192,
|
|
1679
|
+
7040: 2105352,
|
|
1680
|
+
7296: 2097160,
|
|
1681
|
+
7552: 0,
|
|
1682
|
+
7808: 268435456,
|
|
1683
|
+
8064: 268443656,
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
0: 1048576,
|
|
1687
|
+
16: 33555457,
|
|
1688
|
+
32: 1024,
|
|
1689
|
+
48: 1049601,
|
|
1690
|
+
64: 34604033,
|
|
1691
|
+
80: 0,
|
|
1692
|
+
96: 1,
|
|
1693
|
+
112: 34603009,
|
|
1694
|
+
128: 33555456,
|
|
1695
|
+
144: 1048577,
|
|
1696
|
+
160: 33554433,
|
|
1697
|
+
176: 34604032,
|
|
1698
|
+
192: 34603008,
|
|
1699
|
+
208: 1025,
|
|
1700
|
+
224: 1049600,
|
|
1701
|
+
240: 33554432,
|
|
1702
|
+
8: 34603009,
|
|
1703
|
+
24: 0,
|
|
1704
|
+
40: 33555457,
|
|
1705
|
+
56: 34604032,
|
|
1706
|
+
72: 1048576,
|
|
1707
|
+
88: 33554433,
|
|
1708
|
+
104: 33554432,
|
|
1709
|
+
120: 1025,
|
|
1710
|
+
136: 1049601,
|
|
1711
|
+
152: 33555456,
|
|
1712
|
+
168: 34603008,
|
|
1713
|
+
184: 1048577,
|
|
1714
|
+
200: 1024,
|
|
1715
|
+
216: 34604033,
|
|
1716
|
+
232: 1,
|
|
1717
|
+
248: 1049600,
|
|
1718
|
+
256: 33554432,
|
|
1719
|
+
272: 1048576,
|
|
1720
|
+
288: 33555457,
|
|
1721
|
+
304: 34603009,
|
|
1722
|
+
320: 1048577,
|
|
1723
|
+
336: 33555456,
|
|
1724
|
+
352: 34604032,
|
|
1725
|
+
368: 1049601,
|
|
1726
|
+
384: 1025,
|
|
1727
|
+
400: 34604033,
|
|
1728
|
+
416: 1049600,
|
|
1729
|
+
432: 1,
|
|
1730
|
+
448: 0,
|
|
1731
|
+
464: 34603008,
|
|
1732
|
+
480: 33554433,
|
|
1733
|
+
496: 1024,
|
|
1734
|
+
264: 1049600,
|
|
1735
|
+
280: 33555457,
|
|
1736
|
+
296: 34603009,
|
|
1737
|
+
312: 1,
|
|
1738
|
+
328: 33554432,
|
|
1739
|
+
344: 1048576,
|
|
1740
|
+
360: 1025,
|
|
1741
|
+
376: 34604032,
|
|
1742
|
+
392: 33554433,
|
|
1743
|
+
408: 34603008,
|
|
1744
|
+
424: 0,
|
|
1745
|
+
440: 34604033,
|
|
1746
|
+
456: 1049601,
|
|
1747
|
+
472: 1024,
|
|
1748
|
+
488: 33555456,
|
|
1749
|
+
504: 1048577,
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
0: 134219808,
|
|
1753
|
+
1: 131072,
|
|
1754
|
+
2: 134217728,
|
|
1755
|
+
3: 32,
|
|
1756
|
+
4: 131104,
|
|
1757
|
+
5: 134350880,
|
|
1758
|
+
6: 134350848,
|
|
1759
|
+
7: 2048,
|
|
1760
|
+
8: 134348800,
|
|
1761
|
+
9: 134219776,
|
|
1762
|
+
10: 133120,
|
|
1763
|
+
11: 134348832,
|
|
1764
|
+
12: 2080,
|
|
1765
|
+
13: 0,
|
|
1766
|
+
14: 134217760,
|
|
1767
|
+
15: 133152,
|
|
1768
|
+
2147483648: 2048,
|
|
1769
|
+
2147483649: 134350880,
|
|
1770
|
+
2147483650: 134219808,
|
|
1771
|
+
2147483651: 134217728,
|
|
1772
|
+
2147483652: 134348800,
|
|
1773
|
+
2147483653: 133120,
|
|
1774
|
+
2147483654: 133152,
|
|
1775
|
+
2147483655: 32,
|
|
1776
|
+
2147483656: 134217760,
|
|
1777
|
+
2147483657: 2080,
|
|
1778
|
+
2147483658: 131104,
|
|
1779
|
+
2147483659: 134350848,
|
|
1780
|
+
2147483660: 0,
|
|
1781
|
+
2147483661: 134348832,
|
|
1782
|
+
2147483662: 134219776,
|
|
1783
|
+
2147483663: 131072,
|
|
1784
|
+
16: 133152,
|
|
1785
|
+
17: 134350848,
|
|
1786
|
+
18: 32,
|
|
1787
|
+
19: 2048,
|
|
1788
|
+
20: 134219776,
|
|
1789
|
+
21: 134217760,
|
|
1790
|
+
22: 134348832,
|
|
1791
|
+
23: 131072,
|
|
1792
|
+
24: 0,
|
|
1793
|
+
25: 131104,
|
|
1794
|
+
26: 134348800,
|
|
1795
|
+
27: 134219808,
|
|
1796
|
+
28: 134350880,
|
|
1797
|
+
29: 133120,
|
|
1798
|
+
30: 2080,
|
|
1799
|
+
31: 134217728,
|
|
1800
|
+
2147483664: 131072,
|
|
1801
|
+
2147483665: 2048,
|
|
1802
|
+
2147483666: 134348832,
|
|
1803
|
+
2147483667: 133152,
|
|
1804
|
+
2147483668: 32,
|
|
1805
|
+
2147483669: 134348800,
|
|
1806
|
+
2147483670: 134217728,
|
|
1807
|
+
2147483671: 134219808,
|
|
1808
|
+
2147483672: 134350880,
|
|
1809
|
+
2147483673: 134217760,
|
|
1810
|
+
2147483674: 134219776,
|
|
1811
|
+
2147483675: 0,
|
|
1812
|
+
2147483676: 133120,
|
|
1813
|
+
2147483677: 2080,
|
|
1814
|
+
2147483678: 131104,
|
|
1815
|
+
2147483679: 134350848,
|
|
1816
|
+
},
|
|
1817
|
+
],
|
|
1818
|
+
l = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679],
|
|
1819
|
+
f = (o.DES = n.extend({
|
|
1820
|
+
_doReset: function () {
|
|
1821
|
+
for (var t = this._key.words, e = [], r = 0; r < 56; r++) {
|
|
1822
|
+
var i = s[r] - 1;
|
|
1823
|
+
e[r] = (t[i >>> 5] >>> (31 - (i % 32))) & 1;
|
|
1824
|
+
}
|
|
1825
|
+
for (var n = (this._subKeys = []), o = 0; o < 16; o++) {
|
|
1826
|
+
var h = (n[o] = []),
|
|
1827
|
+
l = a[o];
|
|
1828
|
+
for (r = 0; r < 24; r++)
|
|
1829
|
+
(h[(r / 6) | 0] |= e[(c[r] - 1 + l) % 28] << (31 - (r % 6))),
|
|
1830
|
+
(h[4 + ((r / 6) | 0)] |= e[28 + ((c[r + 24] - 1 + l) % 28)] << (31 - (r % 6)));
|
|
1831
|
+
for (h[0] = (h[0] << 1) | (h[0] >>> 31), r = 1; r < 7; r++) h[r] = h[r] >>> (4 * (r - 1) + 3);
|
|
1832
|
+
h[7] = (h[7] << 5) | (h[7] >>> 27);
|
|
1833
|
+
}
|
|
1834
|
+
var f = (this._invSubKeys = []);
|
|
1835
|
+
for (r = 0; r < 16; r++) f[r] = n[15 - r];
|
|
1836
|
+
},
|
|
1837
|
+
encryptBlock: function (t, e) {
|
|
1838
|
+
this._doCryptBlock(t, e, this._subKeys);
|
|
1839
|
+
},
|
|
1840
|
+
decryptBlock: function (t, e) {
|
|
1841
|
+
this._doCryptBlock(t, e, this._invSubKeys);
|
|
1842
|
+
},
|
|
1843
|
+
_doCryptBlock: function (t, e, r) {
|
|
1844
|
+
(this._lBlock = t[e]),
|
|
1845
|
+
(this._rBlock = t[e + 1]),
|
|
1846
|
+
u.call(this, 4, 252645135),
|
|
1847
|
+
u.call(this, 16, 65535),
|
|
1848
|
+
p.call(this, 2, 858993459),
|
|
1849
|
+
p.call(this, 8, 16711935),
|
|
1850
|
+
u.call(this, 1, 1431655765);
|
|
1851
|
+
for (var i = 0; i < 16; i++) {
|
|
1852
|
+
for (var n = r[i], o = this._lBlock, s = this._rBlock, c = 0, a = 0; a < 8; a++)
|
|
1853
|
+
c |= h[a][((s ^ n[a]) & l[a]) >>> 0];
|
|
1854
|
+
(this._lBlock = s), (this._rBlock = o ^ c);
|
|
1855
|
+
}
|
|
1856
|
+
var f = this._lBlock;
|
|
1857
|
+
(this._lBlock = this._rBlock),
|
|
1858
|
+
(this._rBlock = f),
|
|
1859
|
+
u.call(this, 1, 1431655765),
|
|
1860
|
+
p.call(this, 8, 16711935),
|
|
1861
|
+
p.call(this, 2, 858993459),
|
|
1862
|
+
u.call(this, 16, 65535),
|
|
1863
|
+
u.call(this, 4, 252645135),
|
|
1864
|
+
(t[e] = this._lBlock),
|
|
1865
|
+
(t[e + 1] = this._rBlock);
|
|
1866
|
+
},
|
|
1867
|
+
keySize: 2,
|
|
1868
|
+
ivSize: 2,
|
|
1869
|
+
blockSize: 2,
|
|
1870
|
+
}));
|
|
1871
|
+
function u(t, e) {
|
|
1872
|
+
var r = ((this._lBlock >>> t) ^ this._rBlock) & e;
|
|
1873
|
+
(this._rBlock ^= r), (this._lBlock ^= r << t);
|
|
1874
|
+
}
|
|
1875
|
+
function p(t, e) {
|
|
1876
|
+
var r = ((this._rBlock >>> t) ^ this._lBlock) & e;
|
|
1877
|
+
(this._lBlock ^= r), (this._rBlock ^= r << t);
|
|
1878
|
+
}
|
|
1879
|
+
t.DES = n._createHelper(f);
|
|
1880
|
+
var d = (o.TripleDES = n.extend({
|
|
1881
|
+
_doReset: function () {
|
|
1882
|
+
var t = this._key.words;
|
|
1883
|
+
if (2 !== t.length && 4 !== t.length && t.length < 6)
|
|
1884
|
+
throw new Error('Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.');
|
|
1885
|
+
var e = t.slice(0, 2),
|
|
1886
|
+
i = t.length < 4 ? t.slice(0, 2) : t.slice(2, 4),
|
|
1887
|
+
n = t.length < 6 ? t.slice(0, 2) : t.slice(4, 6);
|
|
1888
|
+
(this._des1 = f.createEncryptor(r.create(e))),
|
|
1889
|
+
(this._des2 = f.createEncryptor(r.create(i))),
|
|
1890
|
+
(this._des3 = f.createEncryptor(r.create(n)));
|
|
1891
|
+
},
|
|
1892
|
+
encryptBlock: function (t, e) {
|
|
1893
|
+
this._des1.encryptBlock(t, e), this._des2.decryptBlock(t, e), this._des3.encryptBlock(t, e);
|
|
1894
|
+
},
|
|
1895
|
+
decryptBlock: function (t, e) {
|
|
1896
|
+
this._des3.decryptBlock(t, e), this._des2.encryptBlock(t, e), this._des1.decryptBlock(t, e);
|
|
1897
|
+
},
|
|
1898
|
+
keySize: 6,
|
|
1899
|
+
ivSize: 2,
|
|
1900
|
+
blockSize: 2,
|
|
1901
|
+
}));
|
|
1902
|
+
t.TripleDES = n._createHelper(d);
|
|
1903
|
+
})(),
|
|
1904
|
+
i.TripleDES);
|
|
1905
|
+
},
|
|
1906
|
+
992: (t, e, r) => {
|
|
1907
|
+
var i,
|
|
1908
|
+
n = (function () {
|
|
1909
|
+
var t = String.fromCharCode,
|
|
1910
|
+
e = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
|
|
1911
|
+
r = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$',
|
|
1912
|
+
i = {};
|
|
1913
|
+
function n(t, e) {
|
|
1914
|
+
if (!i[t]) {
|
|
1915
|
+
i[t] = {};
|
|
1916
|
+
for (var r = 0; r < t.length; r++) i[t][t.charAt(r)] = r;
|
|
1917
|
+
}
|
|
1918
|
+
return i[t][e];
|
|
1919
|
+
}
|
|
1920
|
+
var o = {
|
|
1921
|
+
compressToBase64: function (t) {
|
|
1922
|
+
if (null == t) return '';
|
|
1923
|
+
var r = o._compress(t, 6, function (t) {
|
|
1924
|
+
return e.charAt(t);
|
|
1925
|
+
});
|
|
1926
|
+
switch (r.length % 4) {
|
|
1927
|
+
default:
|
|
1928
|
+
case 0:
|
|
1929
|
+
return r;
|
|
1930
|
+
case 1:
|
|
1931
|
+
return r + '===';
|
|
1932
|
+
case 2:
|
|
1933
|
+
return r + '==';
|
|
1934
|
+
case 3:
|
|
1935
|
+
return r + '=';
|
|
1936
|
+
}
|
|
1937
|
+
},
|
|
1938
|
+
decompressFromBase64: function (t) {
|
|
1939
|
+
return null == t
|
|
1940
|
+
? ''
|
|
1941
|
+
: '' == t
|
|
1942
|
+
? null
|
|
1943
|
+
: o._decompress(t.length, 32, function (r) {
|
|
1944
|
+
return n(e, t.charAt(r));
|
|
1945
|
+
});
|
|
1946
|
+
},
|
|
1947
|
+
compressToUTF16: function (e) {
|
|
1948
|
+
return null == e
|
|
1949
|
+
? ''
|
|
1950
|
+
: o._compress(e, 15, function (e) {
|
|
1951
|
+
return t(e + 32);
|
|
1952
|
+
}) + ' ';
|
|
1953
|
+
},
|
|
1954
|
+
decompressFromUTF16: function (t) {
|
|
1955
|
+
return null == t
|
|
1956
|
+
? ''
|
|
1957
|
+
: '' == t
|
|
1958
|
+
? null
|
|
1959
|
+
: o._decompress(t.length, 16384, function (e) {
|
|
1960
|
+
return t.charCodeAt(e) - 32;
|
|
1961
|
+
});
|
|
1962
|
+
},
|
|
1963
|
+
compressToUint8Array: function (t) {
|
|
1964
|
+
for (var e = o.compress(t), r = new Uint8Array(2 * e.length), i = 0, n = e.length; i < n; i++) {
|
|
1965
|
+
var s = e.charCodeAt(i);
|
|
1966
|
+
(r[2 * i] = s >>> 8), (r[2 * i + 1] = s % 256);
|
|
1967
|
+
}
|
|
1968
|
+
return r;
|
|
1969
|
+
},
|
|
1970
|
+
decompressFromUint8Array: function (e) {
|
|
1971
|
+
if (null == e) return o.decompress(e);
|
|
1972
|
+
for (var r = new Array(e.length / 2), i = 0, n = r.length; i < n; i++)
|
|
1973
|
+
r[i] = 256 * e[2 * i] + e[2 * i + 1];
|
|
1974
|
+
var s = [];
|
|
1975
|
+
return (
|
|
1976
|
+
r.forEach(function (e) {
|
|
1977
|
+
s.push(t(e));
|
|
1978
|
+
}),
|
|
1979
|
+
o.decompress(s.join(''))
|
|
1980
|
+
);
|
|
1981
|
+
},
|
|
1982
|
+
compressToEncodedURIComponent: function (t) {
|
|
1983
|
+
return null == t
|
|
1984
|
+
? ''
|
|
1985
|
+
: o._compress(t, 6, function (t) {
|
|
1986
|
+
return r.charAt(t);
|
|
1987
|
+
});
|
|
1988
|
+
},
|
|
1989
|
+
decompressFromEncodedURIComponent: function (t) {
|
|
1990
|
+
return null == t
|
|
1991
|
+
? ''
|
|
1992
|
+
: '' == t
|
|
1993
|
+
? null
|
|
1994
|
+
: ((t = t.replace(/ /g, '+')),
|
|
1995
|
+
o._decompress(t.length, 32, function (e) {
|
|
1996
|
+
return n(r, t.charAt(e));
|
|
1997
|
+
}));
|
|
1998
|
+
},
|
|
1999
|
+
compress: function (e) {
|
|
2000
|
+
return o._compress(e, 16, function (e) {
|
|
2001
|
+
return t(e);
|
|
2002
|
+
});
|
|
2003
|
+
},
|
|
2004
|
+
_compress: function (t, e, r) {
|
|
2005
|
+
if (null == t) return '';
|
|
2006
|
+
var i,
|
|
2007
|
+
n,
|
|
2008
|
+
o,
|
|
2009
|
+
s = {},
|
|
2010
|
+
c = {},
|
|
2011
|
+
a = '',
|
|
2012
|
+
h = '',
|
|
2013
|
+
l = '',
|
|
2014
|
+
f = 2,
|
|
2015
|
+
u = 3,
|
|
2016
|
+
p = 2,
|
|
2017
|
+
d = [],
|
|
2018
|
+
y = 0,
|
|
2019
|
+
_ = 0;
|
|
2020
|
+
for (o = 0; o < t.length; o += 1)
|
|
2021
|
+
if (
|
|
2022
|
+
((a = t.charAt(o)),
|
|
2023
|
+
Object.prototype.hasOwnProperty.call(s, a) || ((s[a] = u++), (c[a] = !0)),
|
|
2024
|
+
(h = l + a),
|
|
2025
|
+
Object.prototype.hasOwnProperty.call(s, h))
|
|
2026
|
+
)
|
|
2027
|
+
l = h;
|
|
2028
|
+
else {
|
|
2029
|
+
if (Object.prototype.hasOwnProperty.call(c, l)) {
|
|
2030
|
+
if (l.charCodeAt(0) < 256) {
|
|
2031
|
+
for (i = 0; i < p; i++) (y <<= 1), _ == e - 1 ? ((_ = 0), d.push(r(y)), (y = 0)) : _++;
|
|
2032
|
+
for (n = l.charCodeAt(0), i = 0; i < 8; i++)
|
|
2033
|
+
(y = (y << 1) | (1 & n)), _ == e - 1 ? ((_ = 0), d.push(r(y)), (y = 0)) : _++, (n >>= 1);
|
|
2034
|
+
} else {
|
|
2035
|
+
for (n = 1, i = 0; i < p; i++)
|
|
2036
|
+
(y = (y << 1) | n), _ == e - 1 ? ((_ = 0), d.push(r(y)), (y = 0)) : _++, (n = 0);
|
|
2037
|
+
for (n = l.charCodeAt(0), i = 0; i < 16; i++)
|
|
2038
|
+
(y = (y << 1) | (1 & n)), _ == e - 1 ? ((_ = 0), d.push(r(y)), (y = 0)) : _++, (n >>= 1);
|
|
2039
|
+
}
|
|
2040
|
+
0 == --f && ((f = Math.pow(2, p)), p++), delete c[l];
|
|
2041
|
+
} else
|
|
2042
|
+
for (n = s[l], i = 0; i < p; i++)
|
|
2043
|
+
(y = (y << 1) | (1 & n)), _ == e - 1 ? ((_ = 0), d.push(r(y)), (y = 0)) : _++, (n >>= 1);
|
|
2044
|
+
0 == --f && ((f = Math.pow(2, p)), p++), (s[h] = u++), (l = String(a));
|
|
2045
|
+
}
|
|
2046
|
+
if ('' !== l) {
|
|
2047
|
+
if (Object.prototype.hasOwnProperty.call(c, l)) {
|
|
2048
|
+
if (l.charCodeAt(0) < 256) {
|
|
2049
|
+
for (i = 0; i < p; i++) (y <<= 1), _ == e - 1 ? ((_ = 0), d.push(r(y)), (y = 0)) : _++;
|
|
2050
|
+
for (n = l.charCodeAt(0), i = 0; i < 8; i++)
|
|
2051
|
+
(y = (y << 1) | (1 & n)), _ == e - 1 ? ((_ = 0), d.push(r(y)), (y = 0)) : _++, (n >>= 1);
|
|
2052
|
+
} else {
|
|
2053
|
+
for (n = 1, i = 0; i < p; i++)
|
|
2054
|
+
(y = (y << 1) | n), _ == e - 1 ? ((_ = 0), d.push(r(y)), (y = 0)) : _++, (n = 0);
|
|
2055
|
+
for (n = l.charCodeAt(0), i = 0; i < 16; i++)
|
|
2056
|
+
(y = (y << 1) | (1 & n)), _ == e - 1 ? ((_ = 0), d.push(r(y)), (y = 0)) : _++, (n >>= 1);
|
|
2057
|
+
}
|
|
2058
|
+
0 == --f && ((f = Math.pow(2, p)), p++), delete c[l];
|
|
2059
|
+
} else
|
|
2060
|
+
for (n = s[l], i = 0; i < p; i++)
|
|
2061
|
+
(y = (y << 1) | (1 & n)), _ == e - 1 ? ((_ = 0), d.push(r(y)), (y = 0)) : _++, (n >>= 1);
|
|
2062
|
+
0 == --f && ((f = Math.pow(2, p)), p++);
|
|
2063
|
+
}
|
|
2064
|
+
for (n = 2, i = 0; i < p; i++)
|
|
2065
|
+
(y = (y << 1) | (1 & n)), _ == e - 1 ? ((_ = 0), d.push(r(y)), (y = 0)) : _++, (n >>= 1);
|
|
2066
|
+
for (;;) {
|
|
2067
|
+
if (((y <<= 1), _ == e - 1)) {
|
|
2068
|
+
d.push(r(y));
|
|
2069
|
+
break;
|
|
2070
|
+
}
|
|
2071
|
+
_++;
|
|
2072
|
+
}
|
|
2073
|
+
return d.join('');
|
|
2074
|
+
},
|
|
2075
|
+
decompress: function (t) {
|
|
2076
|
+
return null == t
|
|
2077
|
+
? ''
|
|
2078
|
+
: '' == t
|
|
2079
|
+
? null
|
|
2080
|
+
: o._decompress(t.length, 32768, function (e) {
|
|
2081
|
+
return t.charCodeAt(e);
|
|
2082
|
+
});
|
|
2083
|
+
},
|
|
2084
|
+
_decompress: function (e, r, i) {
|
|
2085
|
+
var n,
|
|
2086
|
+
o,
|
|
2087
|
+
s,
|
|
2088
|
+
c,
|
|
2089
|
+
a,
|
|
2090
|
+
h,
|
|
2091
|
+
l,
|
|
2092
|
+
f = [],
|
|
2093
|
+
u = 4,
|
|
2094
|
+
p = 4,
|
|
2095
|
+
d = 3,
|
|
2096
|
+
y = '',
|
|
2097
|
+
_ = [],
|
|
2098
|
+
g = { val: i(0), position: r, index: 1 };
|
|
2099
|
+
for (n = 0; n < 3; n += 1) f[n] = n;
|
|
2100
|
+
for (s = 0, a = Math.pow(2, 2), h = 1; h != a; )
|
|
2101
|
+
(c = g.val & g.position),
|
|
2102
|
+
(g.position >>= 1),
|
|
2103
|
+
0 == g.position && ((g.position = r), (g.val = i(g.index++))),
|
|
2104
|
+
(s |= (c > 0 ? 1 : 0) * h),
|
|
2105
|
+
(h <<= 1);
|
|
2106
|
+
switch (s) {
|
|
2107
|
+
case 0:
|
|
2108
|
+
for (s = 0, a = Math.pow(2, 8), h = 1; h != a; )
|
|
2109
|
+
(c = g.val & g.position),
|
|
2110
|
+
(g.position >>= 1),
|
|
2111
|
+
0 == g.position && ((g.position = r), (g.val = i(g.index++))),
|
|
2112
|
+
(s |= (c > 0 ? 1 : 0) * h),
|
|
2113
|
+
(h <<= 1);
|
|
2114
|
+
l = t(s);
|
|
2115
|
+
break;
|
|
2116
|
+
case 1:
|
|
2117
|
+
for (s = 0, a = Math.pow(2, 16), h = 1; h != a; )
|
|
2118
|
+
(c = g.val & g.position),
|
|
2119
|
+
(g.position >>= 1),
|
|
2120
|
+
0 == g.position && ((g.position = r), (g.val = i(g.index++))),
|
|
2121
|
+
(s |= (c > 0 ? 1 : 0) * h),
|
|
2122
|
+
(h <<= 1);
|
|
2123
|
+
l = t(s);
|
|
2124
|
+
break;
|
|
2125
|
+
case 2:
|
|
2126
|
+
return '';
|
|
2127
|
+
}
|
|
2128
|
+
for (f[3] = l, o = l, _.push(l); ; ) {
|
|
2129
|
+
if (g.index > e) return '';
|
|
2130
|
+
for (s = 0, a = Math.pow(2, d), h = 1; h != a; )
|
|
2131
|
+
(c = g.val & g.position),
|
|
2132
|
+
(g.position >>= 1),
|
|
2133
|
+
0 == g.position && ((g.position = r), (g.val = i(g.index++))),
|
|
2134
|
+
(s |= (c > 0 ? 1 : 0) * h),
|
|
2135
|
+
(h <<= 1);
|
|
2136
|
+
switch ((l = s)) {
|
|
2137
|
+
case 0:
|
|
2138
|
+
for (s = 0, a = Math.pow(2, 8), h = 1; h != a; )
|
|
2139
|
+
(c = g.val & g.position),
|
|
2140
|
+
(g.position >>= 1),
|
|
2141
|
+
0 == g.position && ((g.position = r), (g.val = i(g.index++))),
|
|
2142
|
+
(s |= (c > 0 ? 1 : 0) * h),
|
|
2143
|
+
(h <<= 1);
|
|
2144
|
+
(f[p++] = t(s)), (l = p - 1), u--;
|
|
2145
|
+
break;
|
|
2146
|
+
case 1:
|
|
2147
|
+
for (s = 0, a = Math.pow(2, 16), h = 1; h != a; )
|
|
2148
|
+
(c = g.val & g.position),
|
|
2149
|
+
(g.position >>= 1),
|
|
2150
|
+
0 == g.position && ((g.position = r), (g.val = i(g.index++))),
|
|
2151
|
+
(s |= (c > 0 ? 1 : 0) * h),
|
|
2152
|
+
(h <<= 1);
|
|
2153
|
+
(f[p++] = t(s)), (l = p - 1), u--;
|
|
2154
|
+
break;
|
|
2155
|
+
case 2:
|
|
2156
|
+
return _.join('');
|
|
2157
|
+
}
|
|
2158
|
+
if ((0 == u && ((u = Math.pow(2, d)), d++), f[l])) y = f[l];
|
|
2159
|
+
else {
|
|
2160
|
+
if (l !== p) return null;
|
|
2161
|
+
y = o + o.charAt(0);
|
|
2162
|
+
}
|
|
2163
|
+
_.push(y), (f[p++] = o + y.charAt(0)), (o = y), 0 == --u && ((u = Math.pow(2, d)), d++);
|
|
2164
|
+
}
|
|
2165
|
+
},
|
|
2166
|
+
};
|
|
2167
|
+
return o;
|
|
2168
|
+
})();
|
|
2169
|
+
void 0 ===
|
|
2170
|
+
(i = function () {
|
|
2171
|
+
return n;
|
|
2172
|
+
}.call(e, r, e, t)) || (t.exports = i);
|
|
2173
|
+
},
|
|
2174
|
+
477: () => {},
|
|
2175
|
+
},
|
|
2176
|
+
e = {};
|
|
2177
|
+
function r(i) {
|
|
2178
|
+
var n = e[i];
|
|
2179
|
+
if (void 0 !== n) return n.exports;
|
|
2180
|
+
var o = (e[i] = { exports: {} });
|
|
2181
|
+
return t[i].call(o.exports, o, o.exports, r), o.exports;
|
|
2182
|
+
}
|
|
2183
|
+
(r.n = (t) => {
|
|
2184
|
+
var e = t && t.__esModule ? () => t.default : () => t;
|
|
2185
|
+
return r.d(e, { a: e }), e;
|
|
2186
|
+
}),
|
|
2187
|
+
(r.d = (t, e) => {
|
|
2188
|
+
for (var i in e) r.o(e, i) && !r.o(t, i) && Object.defineProperty(t, i, { enumerable: !0, get: e[i] });
|
|
2189
|
+
}),
|
|
2190
|
+
(r.g = (function () {
|
|
2191
|
+
if ('object' == typeof globalThis) return globalThis;
|
|
2192
|
+
try {
|
|
2193
|
+
return this || new Function('return this')();
|
|
2194
|
+
} catch (t) {
|
|
2195
|
+
if ('object' == typeof window) return window;
|
|
2196
|
+
}
|
|
2197
|
+
})()),
|
|
2198
|
+
(r.o = (t, e) => Object.prototype.hasOwnProperty.call(t, e)),
|
|
2199
|
+
(r.r = (t) => {
|
|
2200
|
+
'undefined' != typeof Symbol &&
|
|
2201
|
+
Symbol.toStringTag &&
|
|
2202
|
+
Object.defineProperty(t, Symbol.toStringTag, { value: 'Module' }),
|
|
2203
|
+
Object.defineProperty(t, '__esModule', { value: !0 });
|
|
2204
|
+
});
|
|
2205
|
+
var i = {};
|
|
2206
|
+
return (
|
|
2207
|
+
(() => {
|
|
2208
|
+
'use strict';
|
|
2209
|
+
r.r(i), r.d(i, { default: () => D });
|
|
2210
|
+
const t = { KEY_NOT_PROVIDED: 'keyNotProvided', META_KEY_REMOVE: 'metaKeyRemove', DEFAULT_TEXT: 'defaultText' },
|
|
2211
|
+
e = {};
|
|
2212
|
+
(e[t.KEY_NOT_PROVIDED] = 'Secure LS: Key not provided. Aborting operation!'),
|
|
2213
|
+
(e[t.META_KEY_REMOVE] =
|
|
2214
|
+
'Secure LS: Meta key can not be removed\nunless all keys created by Secure LS are removed!'),
|
|
2215
|
+
(e[t.DEFAULT_TEXT] = 'Unexpected output');
|
|
2216
|
+
const n = {
|
|
2217
|
+
WarningEnum: t,
|
|
2218
|
+
WarningTypes: e,
|
|
2219
|
+
EncrytionTypes: { BASE64: 'base64', AES: 'aes', DES: 'des', RABBIT: 'rabbit', RC4: 'rc4' },
|
|
2220
|
+
metaKey: '_secure__ls__metadata',
|
|
2221
|
+
secretPhrase: 's3cr3t$#@135^&*246',
|
|
2222
|
+
},
|
|
2223
|
+
o = {
|
|
2224
|
+
Latin1: {
|
|
2225
|
+
stringify: (t) => {
|
|
2226
|
+
let e,
|
|
2227
|
+
r,
|
|
2228
|
+
i = t.words,
|
|
2229
|
+
n = t.sigBytes,
|
|
2230
|
+
o = [];
|
|
2231
|
+
for (e = 0; e < n; e++) (r = (i[e >>> 2] >>> (24 - (e % 4) * 8)) & 255), o.push(String.fromCharCode(r));
|
|
2232
|
+
return o.join('');
|
|
2233
|
+
},
|
|
2234
|
+
},
|
|
2235
|
+
_Utf8: {
|
|
2236
|
+
stringify: (t) => {
|
|
2237
|
+
try {
|
|
2238
|
+
return decodeURIComponent(escape(o.Latin1.stringify(t)));
|
|
2239
|
+
} catch (t) {
|
|
2240
|
+
throw new Error('Malformed UTF-8 data', t);
|
|
2241
|
+
}
|
|
2242
|
+
},
|
|
2243
|
+
},
|
|
2244
|
+
},
|
|
2245
|
+
s = o;
|
|
2246
|
+
var c = r(19),
|
|
2247
|
+
a = r.n(c);
|
|
2248
|
+
let h = {
|
|
2249
|
+
random: function (t) {
|
|
2250
|
+
let e = [],
|
|
2251
|
+
r = function (t) {
|
|
2252
|
+
let e = 987654321,
|
|
2253
|
+
r = 4294967295;
|
|
2254
|
+
return function () {
|
|
2255
|
+
e = (36969 * (65535 & e) + (e >> 16)) & r;
|
|
2256
|
+
let i = ((e << 16) + (t = (18e3 * (65535 & t) + (t >> 16)) & r)) & r;
|
|
2257
|
+
return (i /= 4294967296), (i += 0.5), i * (Math.random() > 0.5 ? 1 : -1);
|
|
2258
|
+
};
|
|
2259
|
+
};
|
|
2260
|
+
for (let i, n = 0; n < t; n += 4) {
|
|
2261
|
+
let t = r(4294967296 * (i || Math.random()));
|
|
2262
|
+
(i = 987654071 * t()), e.push((4294967296 * t()) | 0);
|
|
2263
|
+
}
|
|
2264
|
+
return new h.Set(e, t);
|
|
2265
|
+
},
|
|
2266
|
+
Set: function (t, e) {
|
|
2267
|
+
(t = this.words = t || []), (this.sigBytes = void 0 !== e ? e : 8 * t.length);
|
|
2268
|
+
},
|
|
2269
|
+
};
|
|
2270
|
+
const l = h,
|
|
2271
|
+
f = (t) => !!t,
|
|
2272
|
+
u = (t = n.WarningEnum.DEFAULT_TEXT) => {
|
|
2273
|
+
console.warn(n.WarningTypes[t]);
|
|
2274
|
+
},
|
|
2275
|
+
p = () => {
|
|
2276
|
+
const t = l.random(16);
|
|
2277
|
+
return a()(n.secretPhrase, t, { keySize: 4 }).toString();
|
|
2278
|
+
},
|
|
2279
|
+
d = (t = [], e) => t.find((t) => t.k === e) || {},
|
|
2280
|
+
y = ({ keys: t = [] } = {}) => t.map(({ k: t }) => t),
|
|
2281
|
+
_ = (t = [], e) => t.some((t) => String(t.k) === String(e)),
|
|
2282
|
+
g = (t = [], e) => {
|
|
2283
|
+
const r = t.findIndex((t) => t.k === e);
|
|
2284
|
+
return -1 !== r && t.splice(r, 1), r;
|
|
2285
|
+
};
|
|
2286
|
+
var v = r(955),
|
|
2287
|
+
m = r.n(v),
|
|
2288
|
+
S = r(298),
|
|
2289
|
+
B = r.n(S),
|
|
2290
|
+
k = r(193),
|
|
2291
|
+
E = r.n(k),
|
|
2292
|
+
C = r(628),
|
|
2293
|
+
w = r.n(C),
|
|
2294
|
+
A = r(992);
|
|
2295
|
+
const x = {
|
|
2296
|
+
_keyStr: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
|
|
2297
|
+
encode: function (t) {
|
|
2298
|
+
let e,
|
|
2299
|
+
r,
|
|
2300
|
+
i,
|
|
2301
|
+
n,
|
|
2302
|
+
o,
|
|
2303
|
+
s,
|
|
2304
|
+
c,
|
|
2305
|
+
a = '',
|
|
2306
|
+
h = 0;
|
|
2307
|
+
for (t = x._utf8Encode(t); h < t.length; )
|
|
2308
|
+
(e = t.charCodeAt(h++)),
|
|
2309
|
+
(r = t.charCodeAt(h++)),
|
|
2310
|
+
(i = t.charCodeAt(h++)),
|
|
2311
|
+
(n = e >> 2),
|
|
2312
|
+
(o = ((3 & e) << 4) | (r >> 4)),
|
|
2313
|
+
(s = ((15 & r) << 2) | (i >> 6)),
|
|
2314
|
+
(c = 63 & i),
|
|
2315
|
+
isNaN(r) ? (s = c = 64) : isNaN(i) && (c = 64),
|
|
2316
|
+
(a =
|
|
2317
|
+
a +
|
|
2318
|
+
this._keyStr.charAt(n) +
|
|
2319
|
+
this._keyStr.charAt(o) +
|
|
2320
|
+
this._keyStr.charAt(s) +
|
|
2321
|
+
this._keyStr.charAt(c));
|
|
2322
|
+
return a;
|
|
2323
|
+
},
|
|
2324
|
+
decode: function (t) {
|
|
2325
|
+
let e,
|
|
2326
|
+
r,
|
|
2327
|
+
i,
|
|
2328
|
+
n,
|
|
2329
|
+
o,
|
|
2330
|
+
s,
|
|
2331
|
+
c,
|
|
2332
|
+
a = '',
|
|
2333
|
+
h = 0;
|
|
2334
|
+
for (t = t.replace(/[^A-Za-z0-9+/=]/g, ''); h < t.length; )
|
|
2335
|
+
(n = this._keyStr.indexOf(t.charAt(h++))),
|
|
2336
|
+
(o = this._keyStr.indexOf(t.charAt(h++))),
|
|
2337
|
+
(s = this._keyStr.indexOf(t.charAt(h++))),
|
|
2338
|
+
(c = this._keyStr.indexOf(t.charAt(h++))),
|
|
2339
|
+
(e = (n << 2) | (o >> 4)),
|
|
2340
|
+
(r = ((15 & o) << 4) | (s >> 2)),
|
|
2341
|
+
(i = ((3 & s) << 6) | c),
|
|
2342
|
+
(a += String.fromCharCode(e)),
|
|
2343
|
+
64 !== s && (a += String.fromCharCode(r)),
|
|
2344
|
+
64 !== c && (a += String.fromCharCode(i));
|
|
2345
|
+
return (a = x._utf8Decode(a)), a;
|
|
2346
|
+
},
|
|
2347
|
+
_utf8Encode: function (t) {
|
|
2348
|
+
t = t.replace(/\r\n/g, '\n');
|
|
2349
|
+
let e = '';
|
|
2350
|
+
for (let r = 0; r < t.length; r++) {
|
|
2351
|
+
let i = t.charCodeAt(r);
|
|
2352
|
+
i < 128
|
|
2353
|
+
? (e += String.fromCharCode(i))
|
|
2354
|
+
: i > 127 && i < 2048
|
|
2355
|
+
? ((e += String.fromCharCode((i >> 6) | 192)), (e += String.fromCharCode((63 & i) | 128)))
|
|
2356
|
+
: ((e += String.fromCharCode((i >> 12) | 224)),
|
|
2357
|
+
(e += String.fromCharCode(((i >> 6) & 63) | 128)),
|
|
2358
|
+
(e += String.fromCharCode((63 & i) | 128)));
|
|
2359
|
+
}
|
|
2360
|
+
return e;
|
|
2361
|
+
},
|
|
2362
|
+
_utf8Decode: function (t) {
|
|
2363
|
+
let e,
|
|
2364
|
+
r,
|
|
2365
|
+
i,
|
|
2366
|
+
n = '',
|
|
2367
|
+
o = 0;
|
|
2368
|
+
for (e = r = 0; o < t.length; )
|
|
2369
|
+
(e = t.charCodeAt(o)),
|
|
2370
|
+
e < 128
|
|
2371
|
+
? ((n += String.fromCharCode(e)), o++)
|
|
2372
|
+
: e > 191 && e < 224
|
|
2373
|
+
? ((r = t.charCodeAt(o + 1)), (n += String.fromCharCode(((31 & e) << 6) | (63 & r))), (o += 2))
|
|
2374
|
+
: ((r = t.charCodeAt(o + 1)),
|
|
2375
|
+
(i = t.charCodeAt(o + 2)),
|
|
2376
|
+
(n += String.fromCharCode(((15 & e) << 12) | ((63 & r) << 6) | (63 & i))),
|
|
2377
|
+
(o += 3));
|
|
2378
|
+
return n;
|
|
2379
|
+
},
|
|
2380
|
+
},
|
|
2381
|
+
b = x,
|
|
2382
|
+
T = {
|
|
2383
|
+
[n.EncrytionTypes.AES]: m(),
|
|
2384
|
+
[n.EncrytionTypes.DES]: w(),
|
|
2385
|
+
[n.EncrytionTypes.RABBIT]: B(),
|
|
2386
|
+
[n.EncrytionTypes.RC4]: E(),
|
|
2387
|
+
},
|
|
2388
|
+
D = class {
|
|
2389
|
+
constructor({
|
|
2390
|
+
encryptionSecret: t = '',
|
|
2391
|
+
encryptionNamespace: e = '',
|
|
2392
|
+
isCompression: r = !0,
|
|
2393
|
+
encodingType: i = n.EncrytionTypes.BASE64,
|
|
2394
|
+
storage: o = localStorage,
|
|
2395
|
+
metaKey: c = n.metaKey,
|
|
2396
|
+
} = {}) {
|
|
2397
|
+
Object.assign(this, {
|
|
2398
|
+
_name: 'secure-ls',
|
|
2399
|
+
Base64: b,
|
|
2400
|
+
LZString: { compressToUTF16: A.compressToUTF16, decompressFromUTF16: A.decompressFromUTF16 },
|
|
2401
|
+
AES: m(),
|
|
2402
|
+
DES: w(),
|
|
2403
|
+
RABBIT: B(),
|
|
2404
|
+
RC4: E(),
|
|
2405
|
+
enc: s,
|
|
2406
|
+
}),
|
|
2407
|
+
(this.config = {
|
|
2408
|
+
encryptionSecret: t,
|
|
2409
|
+
encryptionNamespace: e,
|
|
2410
|
+
isCompression: r,
|
|
2411
|
+
encodingType: i.toLowerCase(),
|
|
2412
|
+
storage: o,
|
|
2413
|
+
metaKey: c,
|
|
2414
|
+
}),
|
|
2415
|
+
(this.encryptionSecret = t),
|
|
2416
|
+
(this.storage = o),
|
|
2417
|
+
(this.metaKey = c),
|
|
2418
|
+
this.init();
|
|
2419
|
+
}
|
|
2420
|
+
init() {
|
|
2421
|
+
let t = this.getMetaData();
|
|
2422
|
+
(this._isBase64 = this._isBase64EncryptionType()),
|
|
2423
|
+
(this._isAES = this._isAESEncryptionType()),
|
|
2424
|
+
(this._isDES = this._isDESEncryptionType()),
|
|
2425
|
+
(this._isRabbit = this._isRabbitEncryptionType()),
|
|
2426
|
+
(this._isRC4 = this._isRC4EncryptionType()),
|
|
2427
|
+
(this._isCompression = this._isDataCompressionEnabled()),
|
|
2428
|
+
(this.allKeys = t.keys || this.resetAllKeys());
|
|
2429
|
+
}
|
|
2430
|
+
_isBase64EncryptionType() {
|
|
2431
|
+
return b && (void 0 === this.config.encodingType || this.config.encodingType === n.EncrytionTypes.BASE64);
|
|
2432
|
+
}
|
|
2433
|
+
_isAESEncryptionType() {
|
|
2434
|
+
return m() && this.config.encodingType === n.EncrytionTypes.AES;
|
|
2435
|
+
}
|
|
2436
|
+
_isDESEncryptionType() {
|
|
2437
|
+
return w() && this.config.encodingType === n.EncrytionTypes.DES;
|
|
2438
|
+
}
|
|
2439
|
+
_isRabbitEncryptionType() {
|
|
2440
|
+
return B() && this.config.encodingType === n.EncrytionTypes.RABBIT;
|
|
2441
|
+
}
|
|
2442
|
+
_isRC4EncryptionType() {
|
|
2443
|
+
return E() && this.config.encodingType === n.EncrytionTypes.RC4;
|
|
2444
|
+
}
|
|
2445
|
+
_isDataCompressionEnabled() {
|
|
2446
|
+
return this.config.isCompression;
|
|
2447
|
+
}
|
|
2448
|
+
getEncryptionSecret(t) {
|
|
2449
|
+
let e = this.getMetaData(),
|
|
2450
|
+
r = d(e.keys, t);
|
|
2451
|
+
r &&
|
|
2452
|
+
(this._isAES || this._isDES || this._isRabbit || this._isRC4) &&
|
|
2453
|
+
(void 0 === this.config.encryptionSecret
|
|
2454
|
+
? ((this.encryptionSecret = r.s),
|
|
2455
|
+
this.encryptionSecret || ((this.encryptionSecret = p()), this.setMetaData()))
|
|
2456
|
+
: (this.encryptionSecret = this.config.encryptionSecret || r.s || ''));
|
|
2457
|
+
}
|
|
2458
|
+
getEncryptionType() {
|
|
2459
|
+
const t = this.config.encodingType;
|
|
2460
|
+
return t ? t.toLowerCase() : n.EncrytionTypes.BASE64;
|
|
2461
|
+
}
|
|
2462
|
+
getDataFromLocalStorage(t) {
|
|
2463
|
+
return this.storage.getItem(t, !0);
|
|
2464
|
+
}
|
|
2465
|
+
setDataToLocalStorage(t, e) {
|
|
2466
|
+
this.storage.setItem(t, e);
|
|
2467
|
+
}
|
|
2468
|
+
setMetaData() {
|
|
2469
|
+
let t = this.processData({ keys: this.allKeys }, !0);
|
|
2470
|
+
this.setDataToLocalStorage(this.getMetaKey(), t);
|
|
2471
|
+
}
|
|
2472
|
+
getMetaData() {
|
|
2473
|
+
return this.get(this.getMetaKey(), !0) || {};
|
|
2474
|
+
}
|
|
2475
|
+
getMetaKey() {
|
|
2476
|
+
return this.metaKey + (this.config.encryptionNamespace ? '__' + this.config.encryptionNamespace : '');
|
|
2477
|
+
}
|
|
2478
|
+
resetAllKeys() {
|
|
2479
|
+
return (this.allKeys = []), [];
|
|
2480
|
+
}
|
|
2481
|
+
processData(t, e) {
|
|
2482
|
+
if (null == t || '' === t) return '';
|
|
2483
|
+
let r;
|
|
2484
|
+
try {
|
|
2485
|
+
r = JSON.stringify(t);
|
|
2486
|
+
} catch (t) {
|
|
2487
|
+
throw new Error('Could not stringify data', t);
|
|
2488
|
+
}
|
|
2489
|
+
let i = r;
|
|
2490
|
+
if (this._isBase64 || e) i = b.encode(r);
|
|
2491
|
+
else {
|
|
2492
|
+
const t = T[this.getEncryptionType()];
|
|
2493
|
+
t && (i = t.encrypt(r, this.encryptionSecret)), (i = i && i.toString());
|
|
2494
|
+
}
|
|
2495
|
+
let n = i;
|
|
2496
|
+
return (this._isCompression || e) && (n = this.LZString.compressToUTF16(i)), n;
|
|
2497
|
+
}
|
|
2498
|
+
getAllKeys() {
|
|
2499
|
+
let t = this.getMetaData();
|
|
2500
|
+
return y(t) || [];
|
|
2501
|
+
}
|
|
2502
|
+
get(t, e) {
|
|
2503
|
+
let r = '',
|
|
2504
|
+
i = '';
|
|
2505
|
+
if (!f(t)) return u(n.WarningEnum.KEY_NOT_PROVIDED), i;
|
|
2506
|
+
let o = this.getDataFromLocalStorage(t);
|
|
2507
|
+
if (!o) return i;
|
|
2508
|
+
let c = o;
|
|
2509
|
+
if (
|
|
2510
|
+
((this._isCompression || e) && (c = this.LZString.decompressFromUTF16(o)), (r = c), this._isBase64 || e)
|
|
2511
|
+
)
|
|
2512
|
+
r = b.decode(c);
|
|
2513
|
+
else {
|
|
2514
|
+
this.getEncryptionSecret(t);
|
|
2515
|
+
const e = T[this.getEncryptionType()];
|
|
2516
|
+
if (e) {
|
|
2517
|
+
const t = e.decrypt(c.toString(), this.encryptionSecret);
|
|
2518
|
+
t && (r = t.toString(s._Utf8));
|
|
2519
|
+
}
|
|
2520
|
+
}
|
|
2521
|
+
try {
|
|
2522
|
+
i = JSON.parse(r);
|
|
2523
|
+
} catch (t) {
|
|
2524
|
+
throw new Error('Could not parse JSON', t);
|
|
2525
|
+
}
|
|
2526
|
+
return i;
|
|
2527
|
+
}
|
|
2528
|
+
set(t, e) {
|
|
2529
|
+
let r = '';
|
|
2530
|
+
f(t)
|
|
2531
|
+
? (this.getEncryptionSecret(t),
|
|
2532
|
+
String(t) !== String(this.metaKey) &&
|
|
2533
|
+
(_(this.allKeys, t) || (this.allKeys.push({ k: t, s: this.encryptionSecret }), this.setMetaData())),
|
|
2534
|
+
(r = this.processData(e)),
|
|
2535
|
+
this.setDataToLocalStorage(t, r))
|
|
2536
|
+
: u(n.WarningEnum.KEY_NOT_PROVIDED);
|
|
2537
|
+
}
|
|
2538
|
+
remove(t) {
|
|
2539
|
+
f(t)
|
|
2540
|
+
? t === this.metaKey && this.getAllKeys().length
|
|
2541
|
+
? u(n.WarningEnum.META_KEY_REMOVE)
|
|
2542
|
+
: (_(this.allKeys, t) && (g(this.allKeys, t), this.setMetaData()), this.storage.removeItem(t))
|
|
2543
|
+
: u(n.WarningEnum.KEY_NOT_PROVIDED);
|
|
2544
|
+
}
|
|
2545
|
+
removeAll() {
|
|
2546
|
+
let t = this.getAllKeys();
|
|
2547
|
+
for (let e = 0; e < t.length; e++) this.storage.removeItem(t[e]);
|
|
2548
|
+
this.storage.removeItem(this.metaKey), this.resetAllKeys();
|
|
2549
|
+
}
|
|
2550
|
+
clear() {
|
|
2551
|
+
this.storage.clear(), this.resetAllKeys();
|
|
2552
|
+
}
|
|
2553
|
+
};
|
|
2554
|
+
})(),
|
|
2555
|
+
i
|
|
2556
|
+
);
|
|
2557
|
+
})(),
|
|
2558
|
+
);
|
|
2559
|
+
//# sourceMappingURL=secure-ls.min.js.map
|