diff --git a/.prettierignore b/.prettierignore index 0106b02347888124a026be495ab0bc9f868b5ecb..1188e65aabdd14c4a3ae96fff16ea538e1c4d575 100644 --- a/.prettierignore +++ b/.prettierignore @@ -8,6 +8,7 @@ packages/uni-components/lib packages/uni-cloud/lib packages/uni-h5/lib packages/uni-stat/lib +packages/uni-push/lib packages/uni-mp-alipay/lib packages/uni-mp-baidu/lib packages/uni-mp-kuaishou/lib diff --git a/packages/uni-push/dist/uni-push.es.js b/packages/uni-push/dist/uni-push.es.js index 2d3ea5ca5c3950768a1732d7029695e05e4f3196..fda72b5190df2f7662e017612a40fdc889f84db2 100644 --- a/packages/uni-push/dist/uni-push.es.js +++ b/packages/uni-push/dist/uni-push.es.js @@ -10,9138 +10,75 @@ function createCommonjsModule(fn) { /*! For license information please see gtpush-min.js.LICENSE.txt */ var gtpushMin = createCommonjsModule(function (module, exports) { -(function t(e, r) { - module.exports = r(); -})(self, function () { - return (() => { - var t = { - 452: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(8269), r(8214), r(888), r(5109)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.BlockCipher; - var n = e.algo; - var s = []; - var a = []; - var o = []; - var u = []; - var c = []; - var l = []; - var f = []; - var h = []; - var d = []; - var v = [] - ;(function () { - var t = []; - for (var e = 0; e < 256; e++) - if (e < 128) t[e] = e << 1; - else t[e] = (e << 1) ^ 283; - var r = 0; - var i = 0; - for (var e = 0; e < 256; e++) { - var n = i ^ (i << 1) ^ (i << 2) ^ (i << 3) ^ (i << 4); - n = (n >>> 8) ^ (255 & n) ^ 99; - s[r] = n; - a[n] = r; - var p = t[r]; - var g = t[p]; - var y = t[g]; - var m = (257 * t[n]) ^ (16843008 * n); - o[r] = (m << 24) | (m >>> 8); - u[r] = (m << 16) | (m >>> 16); - c[r] = (m << 8) | (m >>> 24); - l[r] = m; - var m = - (16843009 * y) ^ (65537 * g) ^ (257 * p) ^ (16843008 * r); - f[n] = (m << 24) | (m >>> 8); - h[n] = (m << 16) | (m >>> 16); - d[n] = (m << 8) | (m >>> 24); - v[n] = m; - if (!r) r = i = 1; - else { - r = p ^ t[t[t[y ^ p]]]; - i ^= t[t[i]]; - } - } - })(); - var p = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54]; - var g = (n.AES = i.extend({ - _doReset: function () { - var t; - if (this._nRounds && this._keyPriorReset === this._key) return - var e = (this._keyPriorReset = this._key); - var r = e.words; - var i = e.sigBytes / 4; - var n = (this._nRounds = i + 6); - var a = 4 * (n + 1); - var o = (this._keySchedule = []); - for (var u = 0; u < a; u++) - if (u < i) o[u] = r[u]; - else { - t = o[u - 1]; - if (!(u % i)) { - t = (t << 8) | (t >>> 24); - t = - (s[t >>> 24] << 24) | - (s[(t >>> 16) & 255] << 16) | - (s[(t >>> 8) & 255] << 8) | - s[255 & t]; - t ^= p[(u / i) | 0] << 24; - } else if (i > 6 && u % i == 4) - t = - (s[t >>> 24] << 24) | - (s[(t >>> 16) & 255] << 16) | - (s[(t >>> 8) & 255] << 8) | - s[255 & t]; - o[u] = o[u - i] ^ t; - } - var c = (this._invKeySchedule = []); - for (var l = 0; l < a; l++) { - var u = a - l; - if (l % 4) var t = o[u]; - else var t = o[u - 4]; - if (l < 4 || u <= 4) c[l] = t; - else - c[l] = - f[s[t >>> 24]] ^ - h[s[(t >>> 16) & 255]] ^ - d[s[(t >>> 8) & 255]] ^ - v[s[255 & t]]; - } - }, - encryptBlock: function (t, e) { - this._doCryptBlock(t, e, this._keySchedule, o, u, c, l, s); - }, - 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, f, h, d, v, a); - var r = t[e + 1]; - t[e + 1] = t[e + 3]; - t[e + 3] = r; - }, - _doCryptBlock: function (t, e, r, i, n, s, a, o) { - var u = this._nRounds; - var c = t[e] ^ r[0]; - var l = t[e + 1] ^ r[1]; - var f = t[e + 2] ^ r[2]; - var h = t[e + 3] ^ r[3]; - var d = 4; - for (var v = 1; v < u; v++) { - var p = - i[c >>> 24] ^ - n[(l >>> 16) & 255] ^ - s[(f >>> 8) & 255] ^ - a[255 & h] ^ - r[d++]; - var g = - i[l >>> 24] ^ - n[(f >>> 16) & 255] ^ - s[(h >>> 8) & 255] ^ - a[255 & c] ^ - r[d++]; - var y = - i[f >>> 24] ^ - n[(h >>> 16) & 255] ^ - s[(c >>> 8) & 255] ^ - a[255 & l] ^ - r[d++]; - var m = - i[h >>> 24] ^ - n[(c >>> 16) & 255] ^ - s[(l >>> 8) & 255] ^ - a[255 & f] ^ - r[d++]; - c = p; - l = g; - f = y; - h = m; - } - var p = - ((o[c >>> 24] << 24) | - (o[(l >>> 16) & 255] << 16) | - (o[(f >>> 8) & 255] << 8) | - o[255 & h]) ^ - r[d++]; - var g = - ((o[l >>> 24] << 24) | - (o[(f >>> 16) & 255] << 16) | - (o[(h >>> 8) & 255] << 8) | - o[255 & c]) ^ - r[d++]; - var y = - ((o[f >>> 24] << 24) | - (o[(h >>> 16) & 255] << 16) | - (o[(c >>> 8) & 255] << 8) | - o[255 & l]) ^ - r[d++]; - var m = - ((o[h >>> 24] << 24) | - (o[(c >>> 16) & 255] << 16) | - (o[(l >>> 8) & 255] << 8) | - o[255 & f]) ^ - r[d++]; - t[e] = p; - t[e + 1] = g; - t[e + 2] = y; - t[e + 3] = m; - }, - keySize: 256 / 32, - })); - e.AES = i._createHelper(g); - })(); - return t.AES - }); - }, - 5109: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(888)); - })(this, function (t) { - t.lib.Cipher || - (function (e) { - var r = t; - var i = r.lib; - var n = i.Base; - var s = i.WordArray; - var a = i.BufferedBlockAlgorithm; - var o = r.enc; - o.Utf8; - var c = o.Base64; - var l = r.algo; - var f = l.EvpKDF; - var h = (i.Cipher = a.extend({ - cfg: n.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) { - this._append(t); - return this._process() - }, - finalize: function (t) { - if (t) this._append(t); - var e = this._doFinalize(); - return e - }, - keySize: 128 / 32, - ivSize: 128 / 32, - _ENC_XFORM_MODE: 1, - _DEC_XFORM_MODE: 2, - _createHelper: (function () { - function t(t) { - if ('string' == typeof t) return A - else return w - } - 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) - }, - } - } - })(), - })); - (i.StreamCipher = h.extend({ - _doFinalize: function () { - var t = this._process(!!'flush'); - return t - }, - blockSize: 1, - })); - var v = (r.mode = {}); - var p = (i.BlockCipherMode = n.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; - }, - })); - var g = (v.CBC = (function () { - var t = p.extend(); - t.Encryptor = t.extend({ - processBlock: function (t, e) { - var i = this._cipher; - var n = i.blockSize; - r.call(this, t, e, n); - i.encryptBlock(t, e); - this._prevBlock = t.slice(e, e + n); - }, - }); - t.Decryptor = t.extend({ - processBlock: function (t, e) { - var i = this._cipher; - var n = i.blockSize; - var s = t.slice(e, e + n); - i.decryptBlock(t, e); - r.call(this, t, e, n); - this._prevBlock = s; - }, - }); - function r(t, r, i) { - var n; - var s = this._iv; - if (s) { - n = s; - this._iv = e; - } else n = this._prevBlock; - for (var a = 0; a < i; a++) t[r + a] ^= n[a]; - } - return t - })()); - var y = (r.pad = {}); - var m = (y.Pkcs7 = { - pad: function (t, e) { - var r = 4 * e; - var i = r - (t.sigBytes % r); - var n = (i << 24) | (i << 16) | (i << 8) | i; - var a = []; - for (var o = 0; o < i; o += 4) a.push(n); - var u = s.create(a, i); - t.concat(u); - }, - unpad: function (t) { - var e = 255 & t.words[(t.sigBytes - 1) >>> 2]; - t.sigBytes -= e; - }, - }); - (i.BlockCipher = h.extend({ - cfg: h.cfg.extend({ mode: g, padding: m }), - reset: function () { - var t; - h.reset.call(this); - var e = this.cfg; - var r = e.iv; - var i = e.mode; - if (this._xformMode == this._ENC_XFORM_MODE) - t = i.createEncryptor; - else { - t = i.createDecryptor; - this._minBufferSize = 1; - } - if (this._mode && this._mode.__creator == t) - this._mode.init(this, r && r.words); - else { - 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; - var e = this.cfg.padding; - if (this._xformMode == this._ENC_XFORM_MODE) { - e.pad(this._data, this.blockSize); - t = this._process(!!'flush'); - } else { - t = this._process(!!'flush'); - e.unpad(t); - } - return t - }, - blockSize: 128 / 32, - })); - var S = (i.CipherParams = n.extend({ - init: function (t) { - this.mixIn(t); - }, - toString: function (t) { - return (t || this.formatter).stringify(this) - }, - })); - var E = (r.format = {}); - var b = (E.OpenSSL = { - stringify: function (t) { - var e; - var r = t.ciphertext; - var i = t.salt; - if (i) - e = s.create([1398893684, 1701076831]).concat(i).concat(r); - else e = r; - return e.toString(c) - }, - parse: function (t) { - var e; - var r = c.parse(t); - var i = r.words; - if (1398893684 == i[0] && 1701076831 == i[1]) { - e = s.create(i.slice(2, 4)); - i.splice(0, 4); - r.sigBytes -= 16; - } - return S.create({ ciphertext: r, salt: e }) - }, - }); - var w = (i.SerializableCipher = n.extend({ - cfg: n.extend({ format: b }), - encrypt: function (t, e, r, i) { - i = this.cfg.extend(i); - var n = t.createEncryptor(r, i); - var s = n.finalize(e); - var a = n.cfg; - return S.create({ - ciphertext: s, - key: r, - iv: a.iv, - algorithm: t, - mode: a.mode, - padding: a.padding, - blockSize: t.blockSize, - formatter: i.format, - }) - }, - decrypt: function (t, e, r, i) { - i = this.cfg.extend(i); - e = this._parse(e, i.format); - var n = t.createDecryptor(r, i).finalize(e.ciphertext); - return n - }, - _parse: function (t, e) { - if ('string' == typeof t) return e.parse(t, this) - else return t - }, - })); - var D = (r.kdf = {}); - var T = (D.OpenSSL = { - execute: function (t, e, r, i) { - if (!i) i = s.random(64 / 8); - var n = f.create({ keySize: e + r }).compute(t, i); - var a = s.create(n.words.slice(e), 4 * r); - n.sigBytes = 4 * e; - return S.create({ key: n, iv: a, salt: i }) - }, - }); - var A = (i.PasswordBasedCipher = w.extend({ - cfg: w.cfg.extend({ kdf: T }), - encrypt: function (t, e, r, i) { - i = this.cfg.extend(i); - var n = i.kdf.execute(r, t.keySize, t.ivSize); - i.iv = n.iv; - var s = w.encrypt.call(this, t, e, n.key, i); - s.mixIn(n); - return s - }, - 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.iv = n.iv; - var s = w.decrypt.call(this, t, e, n.key, i); - return s - }, - })); - })(); - }); - }, - 8249: function (t, e, r) { -(function (r, i) { - t.exports = i(); - })(this, function () { - var t = - t || - (function (t, e) { - var i; - if ('undefined' !== typeof window && window.crypto) - i = window.crypto; - if ('undefined' !== typeof self && self.crypto) i = self.crypto; - if ('undefined' !== typeof globalThis && globalThis.crypto) - i = globalThis.crypto; - if (!i && 'undefined' !== typeof window && window.msCrypto) - i = window.msCrypto; - if (!i && 'undefined' !== typeof r.g && r.g.crypto) i = r.g.crypto; - if (!i && 'function' === 'function') - try { - i = r(2480); - } 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.' - ) - }; - var s = - Object.create || - (function () { - function t() {} - return function (e) { - var r; - t.prototype = e; - r = new t(); - t.prototype = null; - return r - } - })(); - var a = {}; - var o = (a.lib = {}); - var u = (o.Base = (function () { - return { - extend: function (t) { - var e = s(this); - if (t) e.mixIn(t); - if (!e.hasOwnProperty('init') || this.init === e.init) - e.init = function () { - e.$super.init.apply(this, arguments); - }; - e.init.prototype = e; - e.$super = this; - return e - }, - create: function () { - var t = this.extend(); - t.init.apply(t, arguments); - return t - }, - init: function () {}, - mixIn: function (t) { - for (var e in t) if (t.hasOwnProperty(e)) this[e] = t[e]; - if (t.hasOwnProperty('toString')) this.toString = t.toString; - }, - clone: function () { - return this.init.prototype.extend(this) - }, - } - })()); - var c = (o.WordArray = u.extend({ - init: function (t, r) { - t = this.words = t || []; - if (r != e) this.sigBytes = r; - else this.sigBytes = 4 * t.length; - }, - toString: function (t) { - return (t || f).stringify(this) - }, - concat: function (t) { - var e = this.words; - var r = t.words; - var i = this.sigBytes; - var n = t.sigBytes; - this.clamp(); - if (i % 4) - for (var s = 0; s < n; s++) { - var a = (r[s >>> 2] >>> (24 - (s % 4) * 8)) & 255; - e[(i + s) >>> 2] |= a << (24 - ((i + s) % 4) * 8); - } - else - for (var o = 0; o < n; o += 4) e[(i + o) >>> 2] = r[o >>> 2]; - this.sigBytes += n; - return this - }, - clamp: function () { - var e = this.words; - var r = this.sigBytes; - e[r >>> 2] &= 4294967295 << (32 - (r % 4) * 8); - e.length = t.ceil(r / 4); - }, - clone: function () { - var t = u.clone.call(this); - t.words = this.words.slice(0); - return t - }, - random: function (t) { - var e = []; - for (var r = 0; r < t; r += 4) e.push(n()); - return new c.init(e, t) - }, - })); - var l = (a.enc = {}); - var f = (l.Hex = { - stringify: function (t) { - var e = t.words; - var r = t.sigBytes; - var i = []; - for (var n = 0; n < r; n++) { - var s = (e[n >>> 2] >>> (24 - (n % 4) * 8)) & 255; - i.push((s >>> 4).toString(16)); - i.push((15 & s).toString(16)); - } - return i.join('') - }, - parse: function (t) { - var e = t.length; - var r = []; - for (var i = 0; i < e; i += 2) - r[i >>> 3] |= - parseInt(t.substr(i, 2), 16) << (24 - (i % 8) * 4); - return new c.init(r, e / 2) - }, - }); - var h = (l.Latin1 = { - stringify: function (t) { - var e = t.words; - var r = t.sigBytes; - var i = []; - for (var n = 0; n < r; n++) { - var s = (e[n >>> 2] >>> (24 - (n % 4) * 8)) & 255; - i.push(String.fromCharCode(s)); - } - return i.join('') - }, - parse: function (t) { - var e = t.length; - var r = []; - for (var i = 0; i < e; i++) - r[i >>> 2] |= (255 & t.charCodeAt(i)) << (24 - (i % 4) * 8); - return new c.init(r, e) - }, - }); - var d = (l.Utf8 = { - stringify: function (t) { - try { - return decodeURIComponent(escape(h.stringify(t))) - } catch (t) { - throw new Error('Malformed UTF-8 data') - } - }, - parse: function (t) { - return h.parse(unescape(encodeURIComponent(t))) - }, - }); - var v = (o.BufferedBlockAlgorithm = u.extend({ - reset: function () { - this._data = new c.init(); - this._nDataBytes = 0; - }, - _append: function (t) { - if ('string' == typeof t) t = d.parse(t); - this._data.concat(t); - this._nDataBytes += t.sigBytes; - }, - _process: function (e) { - var r; - var i = this._data; - var n = i.words; - var s = i.sigBytes; - var a = this.blockSize; - var o = 4 * a; - var u = s / o; - if (e) u = t.ceil(u); - else u = t.max((0 | u) - this._minBufferSize, 0); - var l = u * a; - var f = t.min(4 * l, s); - if (l) { - for (var h = 0; h < l; h += a) this._doProcessBlock(n, h); - r = n.splice(0, l); - i.sigBytes -= f; - } - return new c.init(r, f) - }, - clone: function () { - var t = u.clone.call(this); - t._data = this._data.clone(); - return t - }, - _minBufferSize: 0, - })); - (o.Hasher = v.extend({ - cfg: u.extend(), - init: function (t) { - this.cfg = this.cfg.extend(t); - this.reset(); - }, - reset: function () { - v.reset.call(this); - this._doReset(); - }, - update: function (t) { - this._append(t); - this._process(); - return this - }, - finalize: function (t) { - if (t) this._append(t); - var e = this._doFinalize(); - return e - }, - blockSize: 512 / 32, - _createHelper: function (t) { - return function (e, r) { - return new t.init(r).finalize(e) - } - }, - _createHmacHelper: function (t) { - return function (e, r) { - return new g.HMAC.init(t, r).finalize(e) - } - }, - })); - var g = (a.algo = {}); - return a - })(Math); - return t - }); - }, - 8269: function (t, e, r) { -(function (i, n) { - t.exports = n(r(8249)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.WordArray; - var n = e.enc; - (n.Base64 = { - stringify: function (t) { - var e = t.words; - var r = t.sigBytes; - var i = this._map; - t.clamp(); - var n = []; - for (var s = 0; s < r; s += 3) { - var a = (e[s >>> 2] >>> (24 - (s % 4) * 8)) & 255; - var o = (e[(s + 1) >>> 2] >>> (24 - ((s + 1) % 4) * 8)) & 255; - var u = (e[(s + 2) >>> 2] >>> (24 - ((s + 2) % 4) * 8)) & 255; - var c = (a << 16) | (o << 8) | u; - for (var l = 0; l < 4 && s + 0.75 * l < r; l++) - n.push(i.charAt((c >>> (6 * (3 - l))) & 63)); - } - var f = i.charAt(64); - if (f) while (n.length % 4) n.push(f); - return n.join('') - }, - parse: function (t) { - var e = t.length; - var r = this._map; - var 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 o = t.indexOf(s); - if (-1 !== o) e = o; - } - return a(t, e, i) - }, - _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=', - }); - function a(t, e, r) { - var n = []; - var s = 0; - for (var a = 0; a < e; a++) - if (a % 4) { - var o = r[t.charCodeAt(a - 1)] << ((a % 4) * 2); - var u = r[t.charCodeAt(a)] >>> (6 - (a % 4) * 2); - var c = o | u; - n[s >>> 2] |= c << (24 - (s % 4) * 8); - s++; - } - return i.create(n, s) - } - })(); - return t.enc.Base64 - }); - }, - 3786: function (t, e, r) { -(function (i, n) { - t.exports = n(r(8249)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.WordArray; - var n = e.enc; - (n.Base64url = { - stringify: function (t, e = true) { - var r = t.words; - var i = t.sigBytes; - var n = e ? this._safe_map : this._map; - t.clamp(); - var s = []; - for (var a = 0; a < i; a += 3) { - var o = (r[a >>> 2] >>> (24 - (a % 4) * 8)) & 255; - var u = (r[(a + 1) >>> 2] >>> (24 - ((a + 1) % 4) * 8)) & 255; - var c = (r[(a + 2) >>> 2] >>> (24 - ((a + 2) % 4) * 8)) & 255; - var l = (o << 16) | (u << 8) | c; - for (var f = 0; f < 4 && a + 0.75 * f < i; f++) - s.push(n.charAt((l >>> (6 * (3 - f))) & 63)); - } - var h = n.charAt(64); - if (h) while (s.length % 4) s.push(h); - return s.join('') - }, - parse: function (t, e = true) { - var r = t.length; - var i = e ? this._safe_map : this._map; - var n = this._reverseMap; - if (!n) { - n = this._reverseMap = []; - for (var s = 0; s < i.length; s++) n[i.charCodeAt(s)] = s; - } - var o = i.charAt(64); - if (o) { - var u = t.indexOf(o); - if (-1 !== u) r = u; - } - return a(t, r, n) - }, - _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=', - _safe_map: - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_', - }); - function a(t, e, r) { - var n = []; - var s = 0; - for (var a = 0; a < e; a++) - if (a % 4) { - var o = r[t.charCodeAt(a - 1)] << ((a % 4) * 2); - var u = r[t.charCodeAt(a)] >>> (6 - (a % 4) * 2); - var c = o | u; - n[s >>> 2] |= c << (24 - (s % 4) * 8); - s++; - } - return i.create(n, s) - } - })(); - return t.enc.Base64url - }); - }, - 298: function (t, e, r) { -(function (i, n) { - t.exports = n(r(8249)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.WordArray; - var n = e.enc; - (n.Utf16 = - n.Utf16BE = - { - stringify: function (t) { - var e = t.words; - var r = t.sigBytes; - var i = []; - for (var n = 0; n < r; n += 2) { - var s = (e[n >>> 2] >>> (16 - (n % 4) * 8)) & 65535; - i.push(String.fromCharCode(s)); - } - return i.join('') - }, - parse: function (t) { - var e = t.length; - var r = []; - for (var n = 0; n < e; n++) - r[n >>> 1] |= t.charCodeAt(n) << (16 - (n % 2) * 16); - return i.create(r, 2 * e) - }, - }); - n.Utf16LE = { - stringify: function (t) { - var e = t.words; - var r = t.sigBytes; - var i = []; - for (var n = 0; n < r; n += 2) { - var s = a((e[n >>> 2] >>> (16 - (n % 4) * 8)) & 65535); - i.push(String.fromCharCode(s)); - } - return i.join('') - }, - parse: function (t) { - var e = t.length; - var r = []; - for (var n = 0; n < e; n++) - r[n >>> 1] |= a(t.charCodeAt(n) << (16 - (n % 2) * 16)); - return i.create(r, 2 * e) - }, - }; - function a(t) { - return ((t << 8) & 4278255360) | ((t >>> 8) & 16711935) - } - })(); - return t.enc.Utf16 - }); - }, - 888: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(2783), r(9824)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.Base; - var n = r.WordArray; - var s = e.algo; - var a = s.MD5; - var o = (s.EvpKDF = i.extend({ - cfg: i.extend({ keySize: 128 / 32, hasher: a, iterations: 1 }), - init: function (t) { - this.cfg = this.cfg.extend(t); - }, - compute: function (t, e) { - var r; - var i = this.cfg; - var s = i.hasher.create(); - var a = n.create(); - var o = a.words; - var u = i.keySize; - var c = i.iterations; - while (o.length < u) { - if (r) s.update(r); - r = s.update(t).finalize(e); - s.reset(); - for (var l = 1; l < c; l++) { - r = s.finalize(r); - s.reset(); - } - a.concat(r); - } - a.sigBytes = 4 * u; - return a - }, - })); - e.EvpKDF = function (t, e, r) { - return o.create(r).compute(t, e) - }; - })(); - return t.EvpKDF - }); - }, - 2209: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(5109)); - })(this, function (t) { -(function (e) { - var r = t; - var i = r.lib; - var n = i.CipherParams; - var s = r.enc; - var a = s.Hex; - var o = r.format; - (o.Hex = { - stringify: function (t) { - return t.ciphertext.toString(a) - }, - parse: function (t) { - var e = a.parse(t); - return n.create({ ciphertext: e }) - }, - }); - })(); - return t.format.Hex - }); - }, - 9824: function (t, e, r) { -(function (i, n) { - t.exports = n(r(8249)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.Base; - var n = e.enc; - var s = n.Utf8; - var a = e.algo; - (a.HMAC = i.extend({ - init: function (t, e) { - t = this._hasher = new t.init(); - if ('string' == typeof e) e = s.parse(e); - var r = t.blockSize; - var i = 4 * r; - if (e.sigBytes > i) e = t.finalize(e); - e.clamp(); - var n = (this._oKey = e.clone()); - var a = (this._iKey = e.clone()); - var o = n.words; - var u = a.words; - for (var c = 0; c < r; c++) { - o[c] ^= 1549556828; - u[c] ^= 909522486; - } - n.sigBytes = a.sigBytes = i; - this.reset(); - }, - reset: function () { - var t = this._hasher; - t.reset(); - t.update(this._iKey); - }, - update: function (t) { - this._hasher.update(t); - return this - }, - finalize: function (t) { - var e = this._hasher; - var r = e.finalize(t); - e.reset(); - var i = e.finalize(this._oKey.clone().concat(r)); - return i - }, - })); - })(); - }); - }, - 1354: function (t, e, r) { -(function (i, n, s) { - t.exports = n( - r(8249), - r(4938), - r(4433), - r(298), - r(8269), - r(3786), - r(8214), - r(2783), - r(2153), - r(7792), - r(34), - r(7460), - r(3327), - r(706), - r(9824), - r(2112), - r(888), - r(5109), - r(8568), - r(4242), - r(9968), - r(7660), - r(1148), - r(3615), - r(2807), - r(1077), - r(6475), - r(6991), - r(2209), - r(452), - r(4253), - r(1857), - r(4454), - r(3974) - ); - })(this, function (t) { - return t - }); - }, - 4433: function (t, e, r) { -(function (i, n) { - t.exports = n(r(8249)); - })(this, function (t) { -(function () { - if ('function' != typeof ArrayBuffer) return - var e = t; - var r = e.lib; - var i = r.WordArray; - var n = i.init; - var s = (i.init = function (t) { - if (t instanceof ArrayBuffer) t = new Uint8Array(t); - if ( - t instanceof Int8Array || - ('undefined' !== typeof Uint8ClampedArray && - t instanceof Uint8ClampedArray) || - t instanceof Int16Array || - t instanceof Uint16Array || - t instanceof Int32Array || - t instanceof Uint32Array || - t instanceof Float32Array || - t instanceof Float64Array - ) - t = new Uint8Array(t.buffer, t.byteOffset, t.byteLength); - if (t instanceof Uint8Array) { - var e = t.byteLength; - var r = []; - for (var i = 0; i < e; i++) - r[i >>> 2] |= t[i] << (24 - (i % 4) * 8); - n.call(this, r, e); - } else n.apply(this, arguments); - }); - s.prototype = i; - })(); - return t.lib.WordArray - }); - }, - 8214: function (t, e, r) { -(function (i, n) { - t.exports = n(r(8249)); - })(this, function (t) { -(function (e) { - var r = t; - var i = r.lib; - var n = i.WordArray; - var s = i.Hasher; - var a = r.algo; - var o = [] - ;(function () { - for (var t = 0; t < 64; t++) - o[t] = (4294967296 * e.abs(e.sin(t + 1))) | 0; - })(); - var u = (a.MD5 = s.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; - var n = t[i]; - t[i] = - (16711935 & ((n << 8) | (n >>> 24))) | - (4278255360 & ((n << 24) | (n >>> 8))); - } - var s = this._hash.words; - var a = t[e + 0]; - var u = t[e + 1]; - var d = t[e + 2]; - var v = t[e + 3]; - var p = t[e + 4]; - var g = t[e + 5]; - var y = t[e + 6]; - var m = t[e + 7]; - var _ = t[e + 8]; - var S = t[e + 9]; - var E = t[e + 10]; - var b = t[e + 11]; - var w = t[e + 12]; - var D = t[e + 13]; - var T = t[e + 14]; - var A = t[e + 15]; - var M = s[0]; - var I = s[1]; - var R = s[2]; - var x = s[3]; - M = c(M, I, R, x, a, 7, o[0]); - x = c(x, M, I, R, u, 12, o[1]); - R = c(R, x, M, I, d, 17, o[2]); - I = c(I, R, x, M, v, 22, o[3]); - M = c(M, I, R, x, p, 7, o[4]); - x = c(x, M, I, R, g, 12, o[5]); - R = c(R, x, M, I, y, 17, o[6]); - I = c(I, R, x, M, m, 22, o[7]); - M = c(M, I, R, x, _, 7, o[8]); - x = c(x, M, I, R, S, 12, o[9]); - R = c(R, x, M, I, E, 17, o[10]); - I = c(I, R, x, M, b, 22, o[11]); - M = c(M, I, R, x, w, 7, o[12]); - x = c(x, M, I, R, D, 12, o[13]); - R = c(R, x, M, I, T, 17, o[14]); - I = c(I, R, x, M, A, 22, o[15]); - M = l(M, I, R, x, u, 5, o[16]); - x = l(x, M, I, R, y, 9, o[17]); - R = l(R, x, M, I, b, 14, o[18]); - I = l(I, R, x, M, a, 20, o[19]); - M = l(M, I, R, x, g, 5, o[20]); - x = l(x, M, I, R, E, 9, o[21]); - R = l(R, x, M, I, A, 14, o[22]); - I = l(I, R, x, M, p, 20, o[23]); - M = l(M, I, R, x, S, 5, o[24]); - x = l(x, M, I, R, T, 9, o[25]); - R = l(R, x, M, I, v, 14, o[26]); - I = l(I, R, x, M, _, 20, o[27]); - M = l(M, I, R, x, D, 5, o[28]); - x = l(x, M, I, R, d, 9, o[29]); - R = l(R, x, M, I, m, 14, o[30]); - I = l(I, R, x, M, w, 20, o[31]); - M = f(M, I, R, x, g, 4, o[32]); - x = f(x, M, I, R, _, 11, o[33]); - R = f(R, x, M, I, b, 16, o[34]); - I = f(I, R, x, M, T, 23, o[35]); - M = f(M, I, R, x, u, 4, o[36]); - x = f(x, M, I, R, p, 11, o[37]); - R = f(R, x, M, I, m, 16, o[38]); - I = f(I, R, x, M, E, 23, o[39]); - M = f(M, I, R, x, D, 4, o[40]); - x = f(x, M, I, R, a, 11, o[41]); - R = f(R, x, M, I, v, 16, o[42]); - I = f(I, R, x, M, y, 23, o[43]); - M = f(M, I, R, x, S, 4, o[44]); - x = f(x, M, I, R, w, 11, o[45]); - R = f(R, x, M, I, A, 16, o[46]); - I = f(I, R, x, M, d, 23, o[47]); - M = h(M, I, R, x, a, 6, o[48]); - x = h(x, M, I, R, m, 10, o[49]); - R = h(R, x, M, I, T, 15, o[50]); - I = h(I, R, x, M, g, 21, o[51]); - M = h(M, I, R, x, w, 6, o[52]); - x = h(x, M, I, R, v, 10, o[53]); - R = h(R, x, M, I, E, 15, o[54]); - I = h(I, R, x, M, u, 21, o[55]); - M = h(M, I, R, x, _, 6, o[56]); - x = h(x, M, I, R, A, 10, o[57]); - R = h(R, x, M, I, y, 15, o[58]); - I = h(I, R, x, M, D, 21, o[59]); - M = h(M, I, R, x, p, 6, o[60]); - x = h(x, M, I, R, b, 10, o[61]); - R = h(R, x, M, I, d, 15, o[62]); - I = h(I, R, x, M, S, 21, o[63]); - s[0] = (s[0] + M) | 0; - s[1] = (s[1] + I) | 0; - s[2] = (s[2] + R) | 0; - s[3] = (s[3] + x) | 0; - }, - _doFinalize: function () { - var t = this._data; - var r = t.words; - var i = 8 * this._nDataBytes; - var n = 8 * t.sigBytes; - r[n >>> 5] |= 128 << (24 - (n % 32)); - var s = e.floor(i / 4294967296); - var a = i; - r[(((n + 64) >>> 9) << 4) + 15] = - (16711935 & ((s << 8) | (s >>> 24))) | - (4278255360 & ((s << 24) | (s >>> 8))); - r[(((n + 64) >>> 9) << 4) + 14] = - (16711935 & ((a << 8) | (a >>> 24))) | - (4278255360 & ((a << 24) | (a >>> 8))); - t.sigBytes = 4 * (r.length + 1); - this._process(); - var o = this._hash; - var u = o.words; - for (var c = 0; c < 4; c++) { - var l = u[c]; - u[c] = - (16711935 & ((l << 8) | (l >>> 24))) | - (4278255360 & ((l << 24) | (l >>> 8))); - } - return o - }, - clone: function () { - var t = s.clone.call(this); - t._hash = this._hash.clone(); - return t - }, - })); - function c(t, e, r, i, n, s, a) { - var o = t + ((e & r) | (~e & i)) + n + a; - return ((o << s) | (o >>> (32 - s))) + e - } - function l(t, e, r, i, n, s, a) { - var o = t + ((e & i) | (r & ~i)) + n + a; - return ((o << s) | (o >>> (32 - s))) + e - } - function f(t, e, r, i, n, s, a) { - var o = t + (e ^ r ^ i) + n + a; - return ((o << s) | (o >>> (32 - s))) + e - } - function h(t, e, r, i, n, s, a) { - var o = t + (r ^ (e | ~i)) + n + a; - return ((o << s) | (o >>> (32 - s))) + e - } - r.MD5 = s._createHelper(u); - r.HmacMD5 = s._createHmacHelper(u); - })(Math); - return t.MD5 - }); - }, - 8568: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(5109)); - })(this, function (t) { - t.mode.CFB = (function () { - var e = t.lib.BlockCipherMode.extend(); - e.Encryptor = e.extend({ - processBlock: function (t, e) { - var i = this._cipher; - var n = i.blockSize; - r.call(this, t, e, n, i); - this._prevBlock = t.slice(e, e + n); - }, - }); - e.Decryptor = e.extend({ - processBlock: function (t, e) { - var i = this._cipher; - var n = i.blockSize; - var s = t.slice(e, e + n); - r.call(this, t, e, n, i); - this._prevBlock = s; - }, - }); - function r(t, e, r, i) { - var n; - var s = this._iv; - if (s) { - n = s.slice(0); - this._iv = void 0; - } else n = this._prevBlock; - i.encryptBlock(n, 0); - for (var a = 0; a < r; a++) t[e + a] ^= n[a]; - } - return e - })(); - return t.mode.CFB - }); - }, - 9968: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(5109)); - })(this, function (t) { - t.mode.CTRGladman = (function () { - var e = t.lib.BlockCipherMode.extend(); - function r(t) { - if (255 === ((t >> 24) & 255)) { - var e = (t >> 16) & 255; - var r = (t >> 8) & 255; - var i = 255 & t; - if (255 === e) { - e = 0; - if (255 === r) { - r = 0; - if (255 === i) i = 0; - else ++i; - } else ++r; - } else ++e; - t = 0; - t += e << 16; - t += r << 8; - t += i; - } else t += 1 << 24; - return t - } - function i(t) { - if (0 === (t[0] = r(t[0]))) t[1] = r(t[1]); - return t - } - var n = (e.Encryptor = e.extend({ - processBlock: function (t, e) { - var r = this._cipher; - var n = r.blockSize; - var s = this._iv; - var a = this._counter; - if (s) { - a = this._counter = s.slice(0); - this._iv = void 0; - } - i(a); - var o = a.slice(0); - r.encryptBlock(o, 0); - for (var u = 0; u < n; u++) t[e + u] ^= o[u]; - }, - })); - e.Decryptor = n; - return e - })(); - return t.mode.CTRGladman - }); - }, - 4242: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(5109)); - })(this, function (t) { - t.mode.CTR = (function () { - var e = t.lib.BlockCipherMode.extend(); - var r = (e.Encryptor = e.extend({ - processBlock: function (t, e) { - var r = this._cipher; - var i = r.blockSize; - var n = this._iv; - var s = this._counter; - if (n) { - s = this._counter = n.slice(0); - this._iv = void 0; - } - var a = s.slice(0); - r.encryptBlock(a, 0); - s[i - 1] = (s[i - 1] + 1) | 0; - for (var o = 0; o < i; o++) t[e + o] ^= a[o]; - }, - })); - e.Decryptor = r; - return e - })(); - return t.mode.CTR - }); - }, - 1148: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(5109)); - })(this, function (t) { - t.mode.ECB = (function () { - var e = t.lib.BlockCipherMode.extend(); - e.Encryptor = e.extend({ - processBlock: function (t, e) { - this._cipher.encryptBlock(t, e); - }, - }); - e.Decryptor = e.extend({ - processBlock: function (t, e) { - this._cipher.decryptBlock(t, e); - }, - }); - return e - })(); - return t.mode.ECB - }); - }, - 7660: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(5109)); - })(this, function (t) { - t.mode.OFB = (function () { - var e = t.lib.BlockCipherMode.extend(); - var r = (e.Encryptor = e.extend({ - processBlock: function (t, e) { - var r = this._cipher; - var i = r.blockSize; - var n = this._iv; - var s = this._keystream; - if (n) { - s = this._keystream = n.slice(0); - this._iv = void 0; - } - r.encryptBlock(s, 0); - for (var a = 0; a < i; a++) t[e + a] ^= s[a]; - }, - })); - e.Decryptor = r; - return e - })(); - return t.mode.OFB - }); - }, - 3615: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(5109)); - })(this, function (t) { - t.pad.AnsiX923 = { - pad: function (t, e) { - var r = t.sigBytes; - var i = 4 * e; - var n = i - (r % i); - var s = r + n - 1; - t.clamp(); - t.words[s >>> 2] |= n << (24 - (s % 4) * 8); - t.sigBytes += n; - }, - unpad: function (t) { - var e = 255 & t.words[(t.sigBytes - 1) >>> 2]; - t.sigBytes -= e; - }, - }; - return t.pad.Ansix923 - }); - }, - 2807: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(5109)); - })(this, function (t) { - t.pad.Iso10126 = { - pad: function (e, r) { - var i = 4 * r; - var n = i - (e.sigBytes % i); - e.concat(t.lib.WordArray.random(n - 1)).concat( - t.lib.WordArray.create([n << 24], 1) - ); - }, - unpad: function (t) { - var e = 255 & t.words[(t.sigBytes - 1) >>> 2]; - t.sigBytes -= e; - }, - }; - return t.pad.Iso10126 - }); - }, - 1077: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(5109)); - })(this, function (t) { - t.pad.Iso97971 = { - pad: function (e, r) { - e.concat(t.lib.WordArray.create([2147483648], 1)); - t.pad.ZeroPadding.pad(e, r); - }, - unpad: function (e) { - t.pad.ZeroPadding.unpad(e); - e.sigBytes--; - }, - }; - return t.pad.Iso97971 - }); - }, - 6991: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(5109)); - })(this, function (t) { - t.pad.NoPadding = { pad: function () {}, unpad: function () {} }; - return t.pad.NoPadding - }); - }, - 6475: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(5109)); - })(this, function (t) { - t.pad.ZeroPadding = { - pad: function (t, e) { - var r = 4 * e; - t.clamp(); - t.sigBytes += r - (t.sigBytes % r || r); - }, - unpad: function (t) { - var e = t.words; - var r = t.sigBytes - 1; - for (var r = t.sigBytes - 1; r >= 0; r--) - if ((e[r >>> 2] >>> (24 - (r % 4) * 8)) & 255) { - t.sigBytes = r + 1; - break - } - }, - }; - return t.pad.ZeroPadding - }); - }, - 2112: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(2783), r(9824)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.Base; - var n = r.WordArray; - var s = e.algo; - var a = s.SHA1; - var o = s.HMAC; - var u = (s.PBKDF2 = i.extend({ - cfg: i.extend({ keySize: 128 / 32, hasher: a, iterations: 1 }), - init: function (t) { - this.cfg = this.cfg.extend(t); - }, - compute: function (t, e) { - var r = this.cfg; - var i = o.create(r.hasher, t); - var s = n.create(); - var a = n.create([1]); - var u = s.words; - var c = a.words; - var l = r.keySize; - var f = r.iterations; - while (u.length < l) { - var h = i.update(e).finalize(a); - i.reset(); - var d = h.words; - var v = d.length; - var p = h; - for (var g = 1; g < f; g++) { - p = i.finalize(p); - i.reset(); - var y = p.words; - for (var m = 0; m < v; m++) d[m] ^= y[m]; - } - s.concat(h); - c[0]++; - } - s.sigBytes = 4 * l; - return s - }, - })); - e.PBKDF2 = function (t, e, r) { - return u.create(r).compute(t, e) - }; - })(); - return t.PBKDF2 - }); - }, - 3974: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(8269), r(8214), r(888), r(5109)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.StreamCipher; - var n = e.algo; - var s = []; - var a = []; - var o = []; - var u = (n.RabbitLegacy = i.extend({ - _doReset: function () { - var t = this._key.words; - var e = this.cfg.iv; - var r = (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), - ]); - var i = (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]), - ]); - this._b = 0; - for (var n = 0; n < 4; n++) c.call(this); - for (var n = 0; n < 8; n++) i[n] ^= r[(n + 4) & 7]; - if (e) { - var s = e.words; - var a = s[0]; - var o = s[1]; - var u = - (16711935 & ((a << 8) | (a >>> 24))) | - (4278255360 & ((a << 24) | (a >>> 8))); - var l = - (16711935 & ((o << 8) | (o >>> 24))) | - (4278255360 & ((o << 24) | (o >>> 8))); - var f = (u >>> 16) | (4294901760 & l); - var h = (l << 16) | (65535 & u); - i[0] ^= u; - i[1] ^= f; - i[2] ^= l; - i[3] ^= h; - i[4] ^= u; - i[5] ^= f; - i[6] ^= l; - i[7] ^= h; - for (var n = 0; n < 4; n++) c.call(this); - } - }, - _doProcessBlock: function (t, e) { - var r = this._X; - c.call(this); - s[0] = r[0] ^ (r[5] >>> 16) ^ (r[3] << 16); - s[1] = r[2] ^ (r[7] >>> 16) ^ (r[5] << 16); - s[2] = r[4] ^ (r[1] >>> 16) ^ (r[7] << 16); - s[3] = r[6] ^ (r[3] >>> 16) ^ (r[1] << 16); - for (var i = 0; i < 4; i++) { - s[i] = - (16711935 & ((s[i] << 8) | (s[i] >>> 24))) | - (4278255360 & ((s[i] << 24) | (s[i] >>> 8))); - t[e + i] ^= s[i]; - } - }, - blockSize: 128 / 32, - ivSize: 64 / 32, - })); - function c() { - var t = this._X; - var e = this._C; - for (var r = 0; r < 8; r++) a[r] = e[r]; - e[0] = (e[0] + 1295307597 + this._b) | 0; - e[1] = (e[1] + 3545052371 + (e[0] >>> 0 < a[0] >>> 0 ? 1 : 0)) | 0; - e[2] = (e[2] + 886263092 + (e[1] >>> 0 < a[1] >>> 0 ? 1 : 0)) | 0; - e[3] = (e[3] + 1295307597 + (e[2] >>> 0 < a[2] >>> 0 ? 1 : 0)) | 0; - e[4] = (e[4] + 3545052371 + (e[3] >>> 0 < a[3] >>> 0 ? 1 : 0)) | 0; - e[5] = (e[5] + 886263092 + (e[4] >>> 0 < a[4] >>> 0 ? 1 : 0)) | 0; - e[6] = (e[6] + 1295307597 + (e[5] >>> 0 < a[5] >>> 0 ? 1 : 0)) | 0; - e[7] = (e[7] + 3545052371 + (e[6] >>> 0 < a[6] >>> 0 ? 1 : 0)) | 0; - this._b = e[7] >>> 0 < a[7] >>> 0 ? 1 : 0; - for (var r = 0; r < 8; r++) { - var i = t[r] + e[r]; - var n = 65535 & i; - var s = i >>> 16; - var u = ((((n * n) >>> 17) + n * s) >>> 15) + s * s; - var c = (((4294901760 & i) * i) | 0) + (((65535 & i) * i) | 0); - o[r] = u ^ c; - } - t[0] = - (o[0] + - ((o[7] << 16) | (o[7] >>> 16)) + - ((o[6] << 16) | (o[6] >>> 16))) | - 0; - t[1] = (o[1] + ((o[0] << 8) | (o[0] >>> 24)) + o[7]) | 0; - t[2] = - (o[2] + - ((o[1] << 16) | (o[1] >>> 16)) + - ((o[0] << 16) | (o[0] >>> 16))) | - 0; - t[3] = (o[3] + ((o[2] << 8) | (o[2] >>> 24)) + o[1]) | 0; - t[4] = - (o[4] + - ((o[3] << 16) | (o[3] >>> 16)) + - ((o[2] << 16) | (o[2] >>> 16))) | - 0; - t[5] = (o[5] + ((o[4] << 8) | (o[4] >>> 24)) + o[3]) | 0; - t[6] = - (o[6] + - ((o[5] << 16) | (o[5] >>> 16)) + - ((o[4] << 16) | (o[4] >>> 16))) | - 0; - t[7] = (o[7] + ((o[6] << 8) | (o[6] >>> 24)) + o[5]) | 0; - } - e.RabbitLegacy = i._createHelper(u); - })(); - return t.RabbitLegacy - }); - }, - 4454: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(8269), r(8214), r(888), r(5109)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.StreamCipher; - var n = e.algo; - var s = []; - var a = []; - var o = []; - var u = (n.Rabbit = i.extend({ - _doReset: function () { - var t = this._key.words; - var e = this.cfg.iv; - for (var 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), - ]); - var 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]), - ]); - this._b = 0; - for (var r = 0; r < 4; r++) c.call(this); - for (var r = 0; r < 8; r++) n[r] ^= i[(r + 4) & 7]; - if (e) { - var s = e.words; - var a = s[0]; - var o = s[1]; - var u = - (16711935 & ((a << 8) | (a >>> 24))) | - (4278255360 & ((a << 24) | (a >>> 8))); - var l = - (16711935 & ((o << 8) | (o >>> 24))) | - (4278255360 & ((o << 24) | (o >>> 8))); - var f = (u >>> 16) | (4294901760 & l); - var h = (l << 16) | (65535 & u); - n[0] ^= u; - n[1] ^= f; - n[2] ^= l; - n[3] ^= h; - n[4] ^= u; - n[5] ^= f; - n[6] ^= l; - n[7] ^= h; - for (var r = 0; r < 4; r++) c.call(this); - } - }, - _doProcessBlock: function (t, e) { - var r = this._X; - c.call(this); - s[0] = r[0] ^ (r[5] >>> 16) ^ (r[3] << 16); - s[1] = r[2] ^ (r[7] >>> 16) ^ (r[5] << 16); - s[2] = r[4] ^ (r[1] >>> 16) ^ (r[7] << 16); - s[3] = r[6] ^ (r[3] >>> 16) ^ (r[1] << 16); - for (var i = 0; i < 4; i++) { - s[i] = - (16711935 & ((s[i] << 8) | (s[i] >>> 24))) | - (4278255360 & ((s[i] << 24) | (s[i] >>> 8))); - t[e + i] ^= s[i]; - } - }, - blockSize: 128 / 32, - ivSize: 64 / 32, - })); - function c() { - var t = this._X; - var e = this._C; - for (var r = 0; r < 8; r++) a[r] = e[r]; - e[0] = (e[0] + 1295307597 + this._b) | 0; - e[1] = (e[1] + 3545052371 + (e[0] >>> 0 < a[0] >>> 0 ? 1 : 0)) | 0; - e[2] = (e[2] + 886263092 + (e[1] >>> 0 < a[1] >>> 0 ? 1 : 0)) | 0; - e[3] = (e[3] + 1295307597 + (e[2] >>> 0 < a[2] >>> 0 ? 1 : 0)) | 0; - e[4] = (e[4] + 3545052371 + (e[3] >>> 0 < a[3] >>> 0 ? 1 : 0)) | 0; - e[5] = (e[5] + 886263092 + (e[4] >>> 0 < a[4] >>> 0 ? 1 : 0)) | 0; - e[6] = (e[6] + 1295307597 + (e[5] >>> 0 < a[5] >>> 0 ? 1 : 0)) | 0; - e[7] = (e[7] + 3545052371 + (e[6] >>> 0 < a[6] >>> 0 ? 1 : 0)) | 0; - this._b = e[7] >>> 0 < a[7] >>> 0 ? 1 : 0; - for (var r = 0; r < 8; r++) { - var i = t[r] + e[r]; - var n = 65535 & i; - var s = i >>> 16; - var u = ((((n * n) >>> 17) + n * s) >>> 15) + s * s; - var c = (((4294901760 & i) * i) | 0) + (((65535 & i) * i) | 0); - o[r] = u ^ c; - } - t[0] = - (o[0] + - ((o[7] << 16) | (o[7] >>> 16)) + - ((o[6] << 16) | (o[6] >>> 16))) | - 0; - t[1] = (o[1] + ((o[0] << 8) | (o[0] >>> 24)) + o[7]) | 0; - t[2] = - (o[2] + - ((o[1] << 16) | (o[1] >>> 16)) + - ((o[0] << 16) | (o[0] >>> 16))) | - 0; - t[3] = (o[3] + ((o[2] << 8) | (o[2] >>> 24)) + o[1]) | 0; - t[4] = - (o[4] + - ((o[3] << 16) | (o[3] >>> 16)) + - ((o[2] << 16) | (o[2] >>> 16))) | - 0; - t[5] = (o[5] + ((o[4] << 8) | (o[4] >>> 24)) + o[3]) | 0; - t[6] = - (o[6] + - ((o[5] << 16) | (o[5] >>> 16)) + - ((o[4] << 16) | (o[4] >>> 16))) | - 0; - t[7] = (o[7] + ((o[6] << 8) | (o[6] >>> 24)) + o[5]) | 0; - } - e.Rabbit = i._createHelper(u); - })(); - return t.Rabbit - }); - }, - 1857: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(8269), r(8214), r(888), r(5109)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.StreamCipher; - var n = e.algo; - var s = (n.RC4 = i.extend({ - _doReset: function () { - var t = this._key; - var e = t.words; - var r = t.sigBytes; - var i = (this._S = []); - for (var n = 0; n < 256; n++) i[n] = n; - for (var n = 0, s = 0; n < 256; n++) { - var a = n % r; - var o = (e[a >>> 2] >>> (24 - (a % 4) * 8)) & 255; - s = (s + i[n] + o) % 256; - var u = i[n]; - i[n] = i[s]; - i[s] = u; - } - this._i = this._j = 0; - }, - _doProcessBlock: function (t, e) { - t[e] ^= a.call(this); - }, - keySize: 256 / 32, - ivSize: 0, - })); - function a() { - var t = this._S; - var e = this._i; - var r = this._j; - var i = 0; - for (var n = 0; n < 4; n++) { - e = (e + 1) % 256; - r = (r + t[e]) % 256; - var s = t[e]; - t[e] = t[r]; - t[r] = s; - i |= t[(t[e] + t[r]) % 256] << (24 - 8 * n); - } - this._i = e; - this._j = r; - return i - } - e.RC4 = i._createHelper(s); - var o = (n.RC4Drop = s.extend({ - cfg: s.cfg.extend({ drop: 192 }), - _doReset: function () { - s._doReset.call(this); - for (var t = this.cfg.drop; t > 0; t--) a.call(this); - }, - })); - e.RC4Drop = i._createHelper(o); - })(); - return t.RC4 - }); - }, - 706: function (t, e, r) { -(function (i, n) { - t.exports = n(r(8249)); - })(this, function (t) { -(function (e) { - var r = t; - var i = r.lib; - var n = i.WordArray; - var s = i.Hasher; - var a = r.algo; - var o = n.create([ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, - 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, - 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, - 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, - 13, - ]); - var u = n.create([ - 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, - 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, - 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, - 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, - 9, 11, - ]); - var c = n.create([ - 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, - 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, - 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, - 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, - 13, 14, 11, 8, 5, 6, - ]); - var l = n.create([ - 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, - 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, - 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, - 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, - 15, 13, 11, 11, - ]); - var f = n.create([ - 0, 1518500249, 1859775393, 2400959708, 2840853838, - ]); - var h = n.create([ - 1352829926, 1548603684, 1836072691, 2053994217, 0, - ]); - var d = (a.RIPEMD160 = s.extend({ - _doReset: function () { - this._hash = n.create([ - 1732584193, 4023233417, 2562383102, 271733878, 3285377520, - ]); - }, - _doProcessBlock: function (t, e) { - for (var r = 0; r < 16; r++) { - var i = e + r; - var n = t[i]; - t[i] = - (16711935 & ((n << 8) | (n >>> 24))) | - (4278255360 & ((n << 24) | (n >>> 8))); - } - var s = this._hash.words; - var a = f.words; - var d = h.words; - var S = o.words; - var E = u.words; - var b = c.words; - var w = l.words; - var D, T, A, M, I; - var R, x, B, C, O; - R = D = s[0]; - x = T = s[1]; - B = A = s[2]; - C = M = s[3]; - O = I = s[4]; - var k; - for (var r = 0; r < 80; r += 1) { - k = (D + t[e + S[r]]) | 0; - if (r < 16) k += v(T, A, M) + a[0]; - else if (r < 32) k += p(T, A, M) + a[1]; - else if (r < 48) k += g(T, A, M) + a[2]; - else if (r < 64) k += y(T, A, M) + a[3]; - else k += m(T, A, M) + a[4]; - k |= 0; - k = _(k, b[r]); - k = (k + I) | 0; - D = I; - I = M; - M = _(A, 10); - A = T; - T = k; - k = (R + t[e + E[r]]) | 0; - if (r < 16) k += m(x, B, C) + d[0]; - else if (r < 32) k += y(x, B, C) + d[1]; - else if (r < 48) k += g(x, B, C) + d[2]; - else if (r < 64) k += p(x, B, C) + d[3]; - else k += v(x, B, C) + d[4]; - k |= 0; - k = _(k, w[r]); - k = (k + O) | 0; - R = O; - O = C; - C = _(B, 10); - B = x; - x = k; - } - k = (s[1] + A + C) | 0; - s[1] = (s[2] + M + O) | 0; - s[2] = (s[3] + I + R) | 0; - s[3] = (s[4] + D + x) | 0; - s[4] = (s[0] + T + B) | 0; - s[0] = k; - }, - _doFinalize: function () { - var t = this._data; - var e = t.words; - var r = 8 * this._nDataBytes; - var i = 8 * t.sigBytes; - e[i >>> 5] |= 128 << (24 - (i % 32)); - e[(((i + 64) >>> 9) << 4) + 14] = - (16711935 & ((r << 8) | (r >>> 24))) | - (4278255360 & ((r << 24) | (r >>> 8))); - t.sigBytes = 4 * (e.length + 1); - this._process(); - var n = this._hash; - var s = n.words; - for (var a = 0; a < 5; a++) { - var o = s[a]; - s[a] = - (16711935 & ((o << 8) | (o >>> 24))) | - (4278255360 & ((o << 24) | (o >>> 8))); - } - return n - }, - clone: function () { - var t = s.clone.call(this); - t._hash = this._hash.clone(); - return t - }, - })); - function v(t, e, r) { - return t ^ e ^ r - } - function p(t, e, r) { - return (t & e) | (~t & r) - } - function g(t, e, r) { - return (t | ~e) ^ r - } - function y(t, e, r) { - return (t & r) | (e & ~r) - } - function m(t, e, r) { - return t ^ (e | ~r) - } - function _(t, e) { - return (t << e) | (t >>> (32 - e)) - } - r.RIPEMD160 = s._createHelper(d); - r.HmacRIPEMD160 = s._createHmacHelper(d); - })(); - return t.RIPEMD160 - }); - }, - 2783: function (t, e, r) { -(function (i, n) { - t.exports = n(r(8249)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.WordArray; - var n = r.Hasher; - var s = e.algo; - var a = []; - var o = (s.SHA1 = n.extend({ - _doReset: function () { - this._hash = new i.init([ - 1732584193, 4023233417, 2562383102, 271733878, 3285377520, - ]); - }, - _doProcessBlock: function (t, e) { - var r = this._hash.words; - var i = r[0]; - var n = r[1]; - var s = r[2]; - var o = r[3]; - var u = r[4]; - for (var c = 0; c < 80; c++) { - if (c < 16) a[c] = 0 | t[e + c]; - else { - var l = a[c - 3] ^ a[c - 8] ^ a[c - 14] ^ a[c - 16]; - a[c] = (l << 1) | (l >>> 31); - } - var f = ((i << 5) | (i >>> 27)) + u + a[c]; - if (c < 20) f += ((n & s) | (~n & o)) + 1518500249; - else if (c < 40) f += (n ^ s ^ o) + 1859775393; - else if (c < 60) - f += ((n & s) | (n & o) | (s & o)) - 1894007588; - else f += (n ^ s ^ o) - 899497514; - u = o; - o = s; - s = (n << 30) | (n >>> 2); - n = i; - i = f; - } - r[0] = (r[0] + i) | 0; - r[1] = (r[1] + n) | 0; - r[2] = (r[2] + s) | 0; - r[3] = (r[3] + o) | 0; - r[4] = (r[4] + u) | 0; - }, - _doFinalize: function () { - var t = this._data; - var e = t.words; - var r = 8 * this._nDataBytes; - var i = 8 * t.sigBytes; - e[i >>> 5] |= 128 << (24 - (i % 32)); - e[(((i + 64) >>> 9) << 4) + 14] = Math.floor(r / 4294967296); - e[(((i + 64) >>> 9) << 4) + 15] = r; - t.sigBytes = 4 * e.length; - this._process(); - return this._hash - }, - clone: function () { - var t = n.clone.call(this); - t._hash = this._hash.clone(); - return t - }, - })); - e.SHA1 = n._createHelper(o); - e.HmacSHA1 = n._createHmacHelper(o); - })(); - return t.SHA1 - }); - }, - 7792: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(2153)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.WordArray; - var n = e.algo; - var s = n.SHA256; - var a = (n.SHA224 = s.extend({ - _doReset: function () { - this._hash = new i.init([ - 3238371032, 914150663, 812702999, 4144912697, 4290775857, - 1750603025, 1694076839, 3204075428, - ]); - }, - _doFinalize: function () { - var t = s._doFinalize.call(this); - t.sigBytes -= 4; - return t - }, - })); - e.SHA224 = s._createHelper(a); - e.HmacSHA224 = s._createHmacHelper(a); - })(); - return t.SHA224 - }); - }, - 2153: function (t, e, r) { -(function (i, n) { - t.exports = n(r(8249)); - })(this, function (t) { -(function (e) { - var r = t; - var i = r.lib; - var n = i.WordArray; - var s = i.Hasher; - var a = r.algo; - var o = []; - var u = [] - ;(function () { - function t(t) { - var r = e.sqrt(t); - for (var i = 2; i <= r; i++) if (!(t % i)) return false - return true - } - function r(t) { - return (4294967296 * (t - (0 | t))) | 0 - } - var i = 2; - var n = 0; - while (n < 64) { - if (t(i)) { - if (n < 8) o[n] = r(e.pow(i, 1 / 2)); - u[n] = r(e.pow(i, 1 / 3)); - n++; - } - i++; - } - })(); - var c = []; - var l = (a.SHA256 = s.extend({ - _doReset: function () { - this._hash = new n.init(o.slice(0)); - }, - _doProcessBlock: function (t, e) { - var r = this._hash.words; - var i = r[0]; - var n = r[1]; - var s = r[2]; - var a = r[3]; - var o = r[4]; - var l = r[5]; - var f = r[6]; - var h = r[7]; - for (var d = 0; d < 64; d++) { - if (d < 16) c[d] = 0 | t[e + d]; - else { - var v = c[d - 15]; - var p = - ((v << 25) | (v >>> 7)) ^ - ((v << 14) | (v >>> 18)) ^ - (v >>> 3); - var g = c[d - 2]; - var y = - ((g << 15) | (g >>> 17)) ^ - ((g << 13) | (g >>> 19)) ^ - (g >>> 10); - c[d] = p + c[d - 7] + y + c[d - 16]; - } - var m = (o & l) ^ (~o & f); - var _ = (i & n) ^ (i & s) ^ (n & s); - var S = - ((i << 30) | (i >>> 2)) ^ - ((i << 19) | (i >>> 13)) ^ - ((i << 10) | (i >>> 22)); - var E = - ((o << 26) | (o >>> 6)) ^ - ((o << 21) | (o >>> 11)) ^ - ((o << 7) | (o >>> 25)); - var b = h + E + m + u[d] + c[d]; - var w = S + _; - h = f; - f = l; - l = o; - o = (a + b) | 0; - a = s; - s = n; - n = i; - i = (b + w) | 0; - } - r[0] = (r[0] + i) | 0; - r[1] = (r[1] + n) | 0; - r[2] = (r[2] + s) | 0; - r[3] = (r[3] + a) | 0; - r[4] = (r[4] + o) | 0; - r[5] = (r[5] + l) | 0; - r[6] = (r[6] + f) | 0; - r[7] = (r[7] + h) | 0; - }, - _doFinalize: function () { - var t = this._data; - var r = t.words; - var i = 8 * this._nDataBytes; - var n = 8 * t.sigBytes; - r[n >>> 5] |= 128 << (24 - (n % 32)); - r[(((n + 64) >>> 9) << 4) + 14] = e.floor(i / 4294967296); - r[(((n + 64) >>> 9) << 4) + 15] = i; - t.sigBytes = 4 * r.length; - this._process(); - return this._hash - }, - clone: function () { - var t = s.clone.call(this); - t._hash = this._hash.clone(); - return t - }, - })); - r.SHA256 = s._createHelper(l); - r.HmacSHA256 = s._createHmacHelper(l); - })(Math); - return t.SHA256 - }); - }, - 3327: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(4938)); - })(this, function (t) { -(function (e) { - var r = t; - var i = r.lib; - var n = i.WordArray; - var s = i.Hasher; - var a = r.x64; - var o = a.Word; - var u = r.algo; - var c = []; - var l = []; - var f = [] - ;(function () { - var t = 1, - e = 0; - for (var r = 0; r < 24; r++) { - c[t + 5 * e] = (((r + 1) * (r + 2)) / 2) % 64; - var i = e % 5; - var n = (2 * t + 3 * e) % 5; - t = i; - e = n; - } - for (var t = 0; t < 5; t++) - for (var e = 0; e < 5; e++) - l[t + 5 * e] = e + ((2 * t + 3 * e) % 5) * 5; - var s = 1; - for (var a = 0; a < 24; a++) { - var u = 0; - var h = 0; - for (var d = 0; d < 7; d++) { - if (1 & s) { - var v = (1 << d) - 1; - if (v < 32) h ^= 1 << v; - else u ^= 1 << (v - 32); - } - if (128 & s) s = (s << 1) ^ 113; - else s <<= 1; - } - f[a] = o.create(u, h); - } - })(); - var h = [] - ;(function () { - for (var t = 0; t < 25; t++) h[t] = o.create(); - })(); - var d = (u.SHA3 = s.extend({ - cfg: s.cfg.extend({ outputLength: 512 }), - _doReset: function () { - var t = (this._state = []); - for (var e = 0; e < 25; e++) t[e] = new o.init(); - this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32; - }, - _doProcessBlock: function (t, e) { - var r = this._state; - var i = this.blockSize / 2; - for (var n = 0; n < i; n++) { - var s = t[e + 2 * n]; - var a = t[e + 2 * n + 1]; - s = - (16711935 & ((s << 8) | (s >>> 24))) | - (4278255360 & ((s << 24) | (s >>> 8))); - a = - (16711935 & ((a << 8) | (a >>> 24))) | - (4278255360 & ((a << 24) | (a >>> 8))); - var o = r[n]; - o.high ^= a; - o.low ^= s; - } - for (var u = 0; u < 24; u++) { - for (var d = 0; d < 5; d++) { - var v = 0, - p = 0; - for (var g = 0; g < 5; g++) { - var o = r[d + 5 * g]; - v ^= o.high; - p ^= o.low; - } - var y = h[d]; - y.high = v; - y.low = p; - } - for (var d = 0; d < 5; d++) { - var m = h[(d + 4) % 5]; - var _ = h[(d + 1) % 5]; - var S = _.high; - var E = _.low; - var v = m.high ^ ((S << 1) | (E >>> 31)); - var p = m.low ^ ((E << 1) | (S >>> 31)); - for (var g = 0; g < 5; g++) { - var o = r[d + 5 * g]; - o.high ^= v; - o.low ^= p; - } - } - for (var b = 1; b < 25; b++) { - var v; - var p; - var o = r[b]; - var w = o.high; - var D = o.low; - var T = c[b]; - if (T < 32) { - v = (w << T) | (D >>> (32 - T)); - p = (D << T) | (w >>> (32 - T)); - } else { - v = (D << (T - 32)) | (w >>> (64 - T)); - p = (w << (T - 32)) | (D >>> (64 - T)); - } - var A = h[l[b]]; - A.high = v; - A.low = p; - } - var M = h[0]; - var I = r[0]; - M.high = I.high; - M.low = I.low; - for (var d = 0; d < 5; d++) - for (var g = 0; g < 5; g++) { - var b = d + 5 * g; - var o = r[b]; - var R = h[b]; - var x = h[((d + 1) % 5) + 5 * g]; - var B = h[((d + 2) % 5) + 5 * g]; - o.high = R.high ^ (~x.high & B.high); - o.low = R.low ^ (~x.low & B.low); - } - var o = r[0]; - var C = f[u]; - o.high ^= C.high; - o.low ^= C.low; - } - }, - _doFinalize: function () { - var t = this._data; - var r = t.words; - 8 * this._nDataBytes; - var s = 8 * t.sigBytes; - var a = 32 * this.blockSize; - r[s >>> 5] |= 1 << (24 - (s % 32)); - r[((e.ceil((s + 1) / a) * a) >>> 5) - 1] |= 128; - t.sigBytes = 4 * r.length; - this._process(); - var o = this._state; - var u = this.cfg.outputLength / 8; - var c = u / 8; - var l = []; - for (var f = 0; f < c; f++) { - var h = o[f]; - var d = h.high; - var v = h.low; - d = - (16711935 & ((d << 8) | (d >>> 24))) | - (4278255360 & ((d << 24) | (d >>> 8))); - v = - (16711935 & ((v << 8) | (v >>> 24))) | - (4278255360 & ((v << 24) | (v >>> 8))); - l.push(v); - l.push(d); - } - return new n.init(l, u) - }, - clone: function () { - var t = s.clone.call(this); - var e = (t._state = this._state.slice(0)); - for (var r = 0; r < 25; r++) e[r] = e[r].clone(); - return t - }, - })); - r.SHA3 = s._createHelper(d); - r.HmacSHA3 = s._createHmacHelper(d); - })(Math); - return t.SHA3 - }); - }, - 7460: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(4938), r(34)); - })(this, function (t) { -(function () { - var e = t; - var r = e.x64; - var i = r.Word; - var n = r.WordArray; - var s = e.algo; - var a = s.SHA512; - var o = (s.SHA384 = a.extend({ - _doReset: function () { - this._hash = new n.init([ - new i.init(3418070365, 3238371032), - new i.init(1654270250, 914150663), - new i.init(2438529370, 812702999), - new i.init(355462360, 4144912697), - new i.init(1731405415, 4290775857), - new i.init(2394180231, 1750603025), - new i.init(3675008525, 1694076839), - new i.init(1203062813, 3204075428), - ]); - }, - _doFinalize: function () { - var t = a._doFinalize.call(this); - t.sigBytes -= 16; - return t - }, - })); - e.SHA384 = a._createHelper(o); - e.HmacSHA384 = a._createHmacHelper(o); - })(); - return t.SHA384 - }); - }, - 34: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(4938)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.Hasher; - var n = e.x64; - var s = n.Word; - var a = n.WordArray; - var o = e.algo; - function u() { - return s.create.apply(s, arguments) - } - var c = [ - u(1116352408, 3609767458), - u(1899447441, 602891725), - u(3049323471, 3964484399), - u(3921009573, 2173295548), - u(961987163, 4081628472), - u(1508970993, 3053834265), - u(2453635748, 2937671579), - u(2870763221, 3664609560), - u(3624381080, 2734883394), - u(310598401, 1164996542), - u(607225278, 1323610764), - u(1426881987, 3590304994), - u(1925078388, 4068182383), - u(2162078206, 991336113), - u(2614888103, 633803317), - u(3248222580, 3479774868), - u(3835390401, 2666613458), - u(4022224774, 944711139), - u(264347078, 2341262773), - u(604807628, 2007800933), - u(770255983, 1495990901), - u(1249150122, 1856431235), - u(1555081692, 3175218132), - u(1996064986, 2198950837), - u(2554220882, 3999719339), - u(2821834349, 766784016), - u(2952996808, 2566594879), - u(3210313671, 3203337956), - u(3336571891, 1034457026), - u(3584528711, 2466948901), - u(113926993, 3758326383), - u(338241895, 168717936), - u(666307205, 1188179964), - u(773529912, 1546045734), - u(1294757372, 1522805485), - u(1396182291, 2643833823), - u(1695183700, 2343527390), - u(1986661051, 1014477480), - u(2177026350, 1206759142), - u(2456956037, 344077627), - u(2730485921, 1290863460), - u(2820302411, 3158454273), - u(3259730800, 3505952657), - u(3345764771, 106217008), - u(3516065817, 3606008344), - u(3600352804, 1432725776), - u(4094571909, 1467031594), - u(275423344, 851169720), - u(430227734, 3100823752), - u(506948616, 1363258195), - u(659060556, 3750685593), - u(883997877, 3785050280), - u(958139571, 3318307427), - u(1322822218, 3812723403), - u(1537002063, 2003034995), - u(1747873779, 3602036899), - u(1955562222, 1575990012), - u(2024104815, 1125592928), - u(2227730452, 2716904306), - u(2361852424, 442776044), - u(2428436474, 593698344), - u(2756734187, 3733110249), - u(3204031479, 2999351573), - u(3329325298, 3815920427), - u(3391569614, 3928383900), - u(3515267271, 566280711), - u(3940187606, 3454069534), - u(4118630271, 4000239992), - u(116418474, 1914138554), - u(174292421, 2731055270), - u(289380356, 3203993006), - u(460393269, 320620315), - u(685471733, 587496836), - u(852142971, 1086792851), - u(1017036298, 365543100), - u(1126000580, 2618297676), - u(1288033470, 3409855158), - u(1501505948, 4234509866), - u(1607167915, 987167468), - u(1816402316, 1246189591), - ]; - var l = [] - ;(function () { - for (var t = 0; t < 80; t++) l[t] = u(); - })(); - var f = (o.SHA512 = i.extend({ - _doReset: function () { - this._hash = new a.init([ - new s.init(1779033703, 4089235720), - new s.init(3144134277, 2227873595), - new s.init(1013904242, 4271175723), - new s.init(2773480762, 1595750129), - new s.init(1359893119, 2917565137), - new s.init(2600822924, 725511199), - new s.init(528734635, 4215389547), - new s.init(1541459225, 327033209), - ]); - }, - _doProcessBlock: function (t, e) { - var r = this._hash.words; - var i = r[0]; - var n = r[1]; - var s = r[2]; - var a = r[3]; - var o = r[4]; - var u = r[5]; - var f = r[6]; - var h = r[7]; - var d = i.high; - var v = i.low; - var p = n.high; - var g = n.low; - var y = s.high; - var m = s.low; - var _ = a.high; - var S = a.low; - var E = o.high; - var b = o.low; - var w = u.high; - var D = u.low; - var T = f.high; - var A = f.low; - var M = h.high; - var I = h.low; - var R = d; - var x = v; - var B = p; - var C = g; - var O = y; - var k = m; - var P = _; - var N = S; - var V = E; - var H = b; - var L = w; - var K = D; - var U = T; - var j = A; - var F = M; - var z = I; - for (var q = 0; q < 80; q++) { - var G; - var Y; - var W = l[q]; - if (q < 16) { - Y = W.high = 0 | t[e + 2 * q]; - G = W.low = 0 | t[e + 2 * q + 1]; - } else { - var J = l[q - 15]; - var $ = J.high; - var Z = J.low; - var X = - (($ >>> 1) | (Z << 31)) ^ - (($ >>> 8) | (Z << 24)) ^ - ($ >>> 7); - var Q = - ((Z >>> 1) | ($ << 31)) ^ - ((Z >>> 8) | ($ << 24)) ^ - ((Z >>> 7) | ($ << 25)); - var tt = l[q - 2]; - var et = tt.high; - var rt = tt.low; - var it = - ((et >>> 19) | (rt << 13)) ^ - ((et << 3) | (rt >>> 29)) ^ - (et >>> 6); - var nt = - ((rt >>> 19) | (et << 13)) ^ - ((rt << 3) | (et >>> 29)) ^ - ((rt >>> 6) | (et << 26)); - var st = l[q - 7]; - var at = st.high; - var ot = st.low; - var ut = l[q - 16]; - var ct = ut.high; - var lt = ut.low; - G = Q + ot; - Y = X + at + (G >>> 0 < Q >>> 0 ? 1 : 0); - G += nt; - Y = Y + it + (G >>> 0 < nt >>> 0 ? 1 : 0); - G += lt; - Y = Y + ct + (G >>> 0 < lt >>> 0 ? 1 : 0); - W.high = Y; - W.low = G; - } - var ft = (V & L) ^ (~V & U); - var ht = (H & K) ^ (~H & j); - var dt = (R & B) ^ (R & O) ^ (B & O); - var vt = (x & C) ^ (x & k) ^ (C & k); - var pt = - ((R >>> 28) | (x << 4)) ^ - ((R << 30) | (x >>> 2)) ^ - ((R << 25) | (x >>> 7)); - var gt = - ((x >>> 28) | (R << 4)) ^ - ((x << 30) | (R >>> 2)) ^ - ((x << 25) | (R >>> 7)); - var yt = - ((V >>> 14) | (H << 18)) ^ - ((V >>> 18) | (H << 14)) ^ - ((V << 23) | (H >>> 9)); - var mt = - ((H >>> 14) | (V << 18)) ^ - ((H >>> 18) | (V << 14)) ^ - ((H << 23) | (V >>> 9)); - var _t = c[q]; - var St = _t.high; - var Et = _t.low; - var bt = z + mt; - var wt = F + yt + (bt >>> 0 < z >>> 0 ? 1 : 0); - var bt = bt + ht; - var wt = wt + ft + (bt >>> 0 < ht >>> 0 ? 1 : 0); - var bt = bt + Et; - var wt = wt + St + (bt >>> 0 < Et >>> 0 ? 1 : 0); - var bt = bt + G; - var wt = wt + Y + (bt >>> 0 < G >>> 0 ? 1 : 0); - var Dt = gt + vt; - var Tt = pt + dt + (Dt >>> 0 < gt >>> 0 ? 1 : 0); - F = U; - z = j; - U = L; - j = K; - L = V; - K = H; - H = (N + bt) | 0; - V = (P + wt + (H >>> 0 < N >>> 0 ? 1 : 0)) | 0; - P = O; - N = k; - O = B; - k = C; - B = R; - C = x; - x = (bt + Dt) | 0; - R = (wt + Tt + (x >>> 0 < bt >>> 0 ? 1 : 0)) | 0; - } - v = i.low = v + x; - i.high = d + R + (v >>> 0 < x >>> 0 ? 1 : 0); - g = n.low = g + C; - n.high = p + B + (g >>> 0 < C >>> 0 ? 1 : 0); - m = s.low = m + k; - s.high = y + O + (m >>> 0 < k >>> 0 ? 1 : 0); - S = a.low = S + N; - a.high = _ + P + (S >>> 0 < N >>> 0 ? 1 : 0); - b = o.low = b + H; - o.high = E + V + (b >>> 0 < H >>> 0 ? 1 : 0); - D = u.low = D + K; - u.high = w + L + (D >>> 0 < K >>> 0 ? 1 : 0); - A = f.low = A + j; - f.high = T + U + (A >>> 0 < j >>> 0 ? 1 : 0); - I = h.low = I + z; - h.high = M + F + (I >>> 0 < z >>> 0 ? 1 : 0); - }, - _doFinalize: function () { - var t = this._data; - var e = t.words; - var r = 8 * this._nDataBytes; - var i = 8 * t.sigBytes; - e[i >>> 5] |= 128 << (24 - (i % 32)); - e[(((i + 128) >>> 10) << 5) + 30] = Math.floor(r / 4294967296); - e[(((i + 128) >>> 10) << 5) + 31] = r; - t.sigBytes = 4 * e.length; - this._process(); - var n = this._hash.toX32(); - return n - }, - clone: function () { - var t = i.clone.call(this); - t._hash = this._hash.clone(); - return t - }, - blockSize: 1024 / 32, - })); - e.SHA512 = i._createHelper(f); - e.HmacSHA512 = i._createHmacHelper(f); - })(); - return t.SHA512 - }); - }, - 4253: function (t, e, r) { -(function (i, n, s) { - t.exports = n(r(8249), r(8269), r(8214), r(888), r(5109)); - })(this, function (t) { -(function () { - var e = t; - var r = e.lib; - var i = r.WordArray; - var n = r.BlockCipher; - var s = e.algo; - var a = [ - 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, - ]; - var o = [ - 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, - ]; - var u = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28]; - var c = [ - { - 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, - }, - ]; - var l = [ - 4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, - 2147483679, - ]; - var f = (s.DES = n.extend({ - _doReset: function () { - var t = this._key; - var e = t.words; - var r = []; - for (var i = 0; i < 56; i++) { - var n = a[i] - 1; - r[i] = (e[n >>> 5] >>> (31 - (n % 32))) & 1; - } - var s = (this._subKeys = []); - for (var c = 0; c < 16; c++) { - var l = (s[c] = []); - var f = u[c]; - for (var i = 0; i < 24; i++) { - l[(i / 6) | 0] |= r[(o[i] - 1 + f) % 28] << (31 - (i % 6)); - l[4 + ((i / 6) | 0)] |= - r[28 + ((o[i + 24] - 1 + f) % 28)] << (31 - (i % 6)); - } - l[0] = (l[0] << 1) | (l[0] >>> 31); - for (var i = 1; i < 7; i++) l[i] = l[i] >>> (4 * (i - 1) + 3); - l[7] = (l[7] << 5) | (l[7] >>> 27); - } - var h = (this._invSubKeys = []); - for (var i = 0; i < 16; i++) h[i] = s[15 - i]; - }, - 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]; - h.call(this, 4, 252645135); - h.call(this, 16, 65535); - d.call(this, 2, 858993459); - d.call(this, 8, 16711935); - h.call(this, 1, 1431655765); - for (var i = 0; i < 16; i++) { - var n = r[i]; - var s = this._lBlock; - var a = this._rBlock; - var o = 0; - for (var u = 0; u < 8; u++) - o |= c[u][((a ^ n[u]) & l[u]) >>> 0]; - this._lBlock = a; - this._rBlock = s ^ o; - } - var f = this._lBlock; - this._lBlock = this._rBlock; - this._rBlock = f; - h.call(this, 1, 1431655765); - d.call(this, 8, 16711935); - d.call(this, 2, 858993459); - h.call(this, 16, 65535); - h.call(this, 4, 252645135); - t[e] = this._lBlock; - t[e + 1] = this._rBlock; - }, - keySize: 64 / 32, - ivSize: 64 / 32, - blockSize: 64 / 32, - })); - function h(t, e) { - var r = ((this._lBlock >>> t) ^ this._rBlock) & e; - this._rBlock ^= r; - this._lBlock ^= r << t; - } - function d(t, e) { - var r = ((this._rBlock >>> t) ^ this._lBlock) & e; - this._lBlock ^= r; - this._rBlock ^= r << t; - } - e.DES = n._createHelper(f); - var v = (s.TripleDES = n.extend({ - _doReset: function () { - var t = this._key; - var e = t.words; - if (2 !== e.length && 4 !== e.length && e.length < 6) - throw new Error( - 'Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.' - ) - var r = e.slice(0, 2); - var n = e.length < 4 ? e.slice(0, 2) : e.slice(2, 4); - var s = e.length < 6 ? e.slice(0, 2) : e.slice(4, 6); - this._des1 = f.createEncryptor(i.create(r)); - this._des2 = f.createEncryptor(i.create(n)); - this._des3 = f.createEncryptor(i.create(s)); - }, - 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: 192 / 32, - ivSize: 64 / 32, - blockSize: 64 / 32, - })); - e.TripleDES = n._createHelper(v); - })(); - return t.TripleDES - }); - }, - 4938: function (t, e, r) { -(function (i, n) { - t.exports = n(r(8249)); - })(this, function (t) { -(function (e) { - var r = t; - var i = r.lib; - var n = i.Base; - var s = i.WordArray; - var a = (r.x64 = {}); - (a.Word = n.extend({ - init: function (t, e) { - this.high = t; - this.low = e; - }, - })); - (a.WordArray = n.extend({ - init: function (t, r) { - t = this.words = t || []; - if (r != e) this.sigBytes = r; - else this.sigBytes = 8 * t.length; - }, - toX32: function () { - var t = this.words; - var e = t.length; - var r = []; - for (var i = 0; i < e; i++) { - var n = t[i]; - r.push(n.high); - r.push(n.low); - } - return s.create(r, this.sigBytes) - }, - clone: function () { - var t = n.clone.call(this); - var e = (t.words = this.words.slice(0)); - var r = e.length; - for (var i = 0; i < r; i++) e[i] = e[i].clone(); - return t - }, - })); - })(); - return t - }); - }, - 3118: (t, e) => { - Object.defineProperty(e, '__esModule', { value: true }); - e.ErrorCode = void 0; -(function (t) { - t[(t['SUCCESS'] = 0)] = 'SUCCESS'; - t[(t['CLIENT_ID_NOT_FOUND'] = 1)] = 'CLIENT_ID_NOT_FOUND'; - t[(t['OPERATION_TOO_OFTEN'] = 2)] = 'OPERATION_TOO_OFTEN'; - t[(t['REPEAT_MESSAGE'] = 3)] = 'REPEAT_MESSAGE'; - t[(t['TIME_OUT'] = 4)] = 'TIME_OUT'; - })((e.ErrorCode || (e.ErrorCode = {}))); - }, - 5987: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(1901)); - const s = i(r(1754)); - const a = i(r(1237)); - var o - ;(function (t) { - function e(t) { - a.default.debugMode = t; - a.default.info(`setDebugMode: ${t}`); - } - t.setDebugMode = e; - function r(t) { - try { - f(t.appid); - n.default.init(t); - } catch (t) { - a.default.error(`init error`, t); - } - } - t.init = r; - function i(t) { - try { - n.default.setTag(t); - } catch (t) { - a.default.error(`setTag error`, t); - } - } - t.setTag = i; - function o(t) { - try { - n.default.bindAlias(t); - } catch (t) { - a.default.error(`bindAlias error`, t); - } - } - t.bindAlias = o; - function u(t) { - try { - n.default.unbindAlias(t); - } catch (t) { - a.default.error(`unbindAlias error`, t); - } - } - t.unbindAlias = u; - function c(t) { - try { - if (!t.url) throw new Error('invalid url') - if (!t.key || !t.keyId) throw new Error('invalid key or keyId') - s.default.socketUrl = t.url; - s.default.publicKeyId = t.keyId; - s.default.publicKey = t.key; - } catch (t) { - a.default.error(`setSocketServer error`, t); - } - } - t.setSocketServer = c; - function l(t) { - try { - n.default.enableSocket(t); - } catch (t) { - a.default.error(`enableSocket error`, t); - } - } - t.enableSocket = l; - function f(t) { - if (null == t || void 0 == t || '' == t.trim()) - throw new Error(`invalid appid ${t}`) - } - })(o || (o = {})); - e['default'] = o; - }, - 127: (t, e) => { - Object.defineProperty(e, '__esModule', { value: true }); - var r - ;(function (t) { - t.SDK_VERSION = 'GTMP-1.0.0.0'; - t.DEFAULT_SOCKET_URL = 'wss://wshz.getui.net:5223/nws'; - t.SOCKET_PROTOCOL_VERSION = '1.0'; - t.SERVER_PUBLIC_KEY = - 'MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB'; - t.SERVER_PUBLIC_KEY_ID = '69d747c4b9f641baf4004be4297e9f3b'; - })(r || (r = {})); - e['default'] = r; - }, - 1901: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(3593)); - const s = i(r(1237)); - const a = r(3118); - const o = i(r(1754)); - const u = i(r(3854)); - const c = i(r(9018)); - const l = i(r(5084)); - class f { - static init(t) { - if (this.inited) return - try { - this.inited = true; - s.default.info(`init: appid=${t.appid}`); - o.default.init(t); - n.default.connect(); - } catch (t) { - this.inited = false; - } - } - static enableSocket(t) { - this.checkInit(); - n.default.allowReconnect = t; - if (t) n.default.reconnect(0); - else n.default.close(`enableSocket ${t}`); - } - static setTag(t) { - var e; - this.checkInit(); - if (!o.default.cid) { - null === (e = t.setTagResult) || - void 0 === e || - e.call(t.setTagResult, { - resultCode: a.ErrorCode.CLIENT_ID_NOT_FOUND, - message: 'client id not found', - }); - return - } - c.default.create(t.tags, t.setTagResult).send(); - } - static bindAlias(t) { - var e, r; - this.checkInit(); - if (!o.default.cid) { - null === (e = t.bindAliasResult) || - void 0 === e || - e.call(t.bindAliasResult, { - resultCode: a.ErrorCode.CLIENT_ID_NOT_FOUND, - message: 'client id not found', - }); - return - } - let i = new Date().getTime(); - if (i - o.default.lastAliasTime < 1 * 1e3) { - s.default.error( - `bind alias fail: alias option can only be called once a second` - ); - null === (r = t.bindAliasResult) || - void 0 === r || - r.call(t.bindAliasResult, { - resultCode: a.ErrorCode.OPERATION_TOO_OFTEN, - message: 'alias option can only be called once a second', - }); - return - } - u.default.create(t.alias, true, t.bindAliasResult).send(); - o.default.lastAliasTime = i; - } - static unbindAlias(t) { - var e, r; - this.checkInit(); - if (!o.default.cid) { - null === (e = t.unbindAliasResult) || - void 0 === e || - e.call(t.unbindAliasResult, { - resultCode: a.ErrorCode.CLIENT_ID_NOT_FOUND, - message: 'client id not found', - }); - return - } - let i = new Date().getTime(); - if (i - o.default.lastAliasTime < 1 * 1e3) { - s.default.error( - `unbindAlias alias fail: alias option can only be called once a second` - ); - null === (r = t.unbindAliasResult) || - void 0 === r || - r.call(t.unbindAliasResult, { - resultCode: a.ErrorCode.OPERATION_TOO_OFTEN, - message: 'alias option can only be called once a second', - }); - return - } - l.default.create(t.alias, t.onlySelf, t.unbindAliasResult).send(); - o.default.lastAliasTime = i; - } - static turnOff() {} - static turnOn() {} - static checkInit() { - if (!this.inited) - throw new Error(`not init, please invoke init method firstly`) - } - } - f.inited = false; - e['default'] = f; - }, - 1754: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(323)); - const s = i(r(207)); - const a = i(r(127)); - const o = i(r(3593)); - const u = i(r(1237)); - const c = i(r(3270)); - class l { - static init(t) { - var e; - this.appid = t.appid; - this.onClientId = t.onClientId; - this.onlineState = t.onlineState; - this.onPushMsg = t.onPushMsg; - if ( - this.appid != s.default.getSync(s.default.KEY_APPID, this.appid) - ) { - u.default.info('appid changed, clear session and cid'); - s.default.setSync(s.default.KEY_CID, ''); - s.default.setSync(s.default.KEY_SESSION, ''); - } - s.default.setSync(s.default.KEY_APPID, this.appid); - this.cid = s.default.getSync(s.default.KEY_CID, this.cid); - if (this.cid) - null === (e = this.onClientId) || - void 0 === e || - e.call(this, { cid: l.cid }); - this.session = s.default.getSync( - s.default.KEY_SESSION, - this.session - ); - this.deviceId = s.default.getSync( - s.default.KEY_DEVICE_ID, - this.deviceId - ); - this.regId = s.default.getSync(s.default.KEY_REGID, this.regId); - if (!this.regId) { - this.regId = this.createRegId(); - s.default.set({ key: s.default.KEY_REGID, data: this.regId }); - } - this.socketUrl = s.default.getSync( - s.default.KEY_SOCKET_URL, - this.socketUrl - ); - let r = this; - c.default.getNetworkType({ - success: (t) => { - r.networkType = t; - r.networkConnected = - 'none' != r.networkType && '' != r.networkType; - }, - }); - c.default.onNetworkStatusChange((t) => { - r.networkConnected = t.isConnected; - r.networkType = t.networkType; - if (r.networkConnected) o.default.reconnect(0); - }); - } - static createRegId() { - return `M-V${n.default.md5Hex( - this.getUuid() - )}-${new Date().getTime()}` - } - static getUuid() { - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace( - /[xy]/g, - function (t) { - let e = (16 * Math.random()) | 0, - r = 'x' === t ? e : (3 & e) | 8; - return r.toString(16) - } - ) - } - } - l.appid = ''; - l.cid = ''; - l.regId = ''; - l.session = ''; - l.deviceId = ''; - l.packetId = 1; - l.online = false; - l.socketUrl = a.default.DEFAULT_SOCKET_URL; - l.publicKeyId = a.default.SERVER_PUBLIC_KEY_ID; - l.publicKey = a.default.SERVER_PUBLIC_KEY; - l.lastAliasTime = 0; - l.networkConnected = true; - l.networkType = 'none'; - e['default'] = l; - }, - 9214: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - var n, s; - Object.defineProperty(e, '__esModule', { value: true }); - const a = i(r(9800)); - const o = r(3118); - const u = i(r(1754)); - class c extends a.default { - constructor() { - super(...arguments); - this.actionMsgData = new l(); - } - static initActionMsg(t, ...e) { - super.initMsg(t); - t.command = a.default.Command.CLIENT_MSG; - t.data = t.actionMsgData = l.create(); - return t - } - static parseActionMsg(t, e) { - super.parseMsg(t, e); - t.actionMsgData = l.parse(t.data); - return t - } - send() { - setTimeout(() => { - var t; - if ( - c.waitingLoginMsgMap.has(this.actionMsgData.msgId) || - c.waitingResponseMsgMap.has(this.actionMsgData.msgId) - ) { - c.waitingLoginMsgMap.delete(this.actionMsgData.msgId); - c.waitingResponseMsgMap.delete(this.actionMsgData.msgId); - null === (t = this.callback) || - void 0 === t || - t.call(this.callback, { - resultCode: o.ErrorCode.TIME_OUT, - message: 'waiting time out', - }); - } - }, 1e4); - if (!u.default.online) { - c.waitingLoginMsgMap.set(this.actionMsgData.msgId, this); - return - } - if (this.actionMsgData.msgAction != c.ClientAction.RECEIVED) - c.waitingResponseMsgMap.set(this.actionMsgData.msgId, this); - super.send(); - } - receive() {} - static sendWaitingMessages() { - let t = this.waitingLoginMsgMap.keys(); - let e; - while (((e = t.next()), !e.done)) { - let t = this.waitingLoginMsgMap.get(e.value); - this.waitingLoginMsgMap.delete(e.value); - null === t || void 0 === t || t.send(); - } - } - static getWaitingResponseMessage(t) { - return c.waitingResponseMsgMap.get(t) - } - static removeWaitingResponseMessage(t) { - let e = c.waitingResponseMsgMap.get(t); - if (e) c.waitingResponseMsgMap.delete(t); - return e - } - } - c.ServerAction = - ((n = class {}), - (n.PUSH_MESSAGE = 'pushmessage'), - (n.REDIRECT_SERVER = 'redirect_server'), - (n.ADD_PHONE_INFO_RESULT = 'addphoneinfo'), - (n.SET_MODE_RESULT = 'set_mode_result'), - (n.SET_TAG_RESULT = 'settag_result'), - (n.BIND_ALIAS_RESULT = 'response_bind'), - (n.UNBIND_ALIAS_RESULT = 'response_unbind'), - (n.FEED_BACK_RESULT = 'pushmessage_feedback'), - (n.RECEIVED = 'received'), - n); - c.ClientAction = - ((s = class {}), - (s.ADD_PHONE_INFO = 'addphoneinfo'), - (s.SET_MODE = 'set_mode'), - (s.FEED_BACK = 'pushmessage_feedback'), - (s.SET_TAGS = 'set_tag'), - (s.BIND_ALIAS = 'bind_alias'), - (s.UNBIND_ALIAS = 'unbind_alias'), - (s.RECEIVED = 'received'), - s); - c.waitingLoginMsgMap = new Map(); - c.waitingResponseMsgMap = new Map(); - class l { - constructor() { - this.appId = ''; - this.cid = ''; - this.msgId = ''; - this.msgAction = ''; - this.msgData = ''; - this.msgExtraData = ''; - } - static create() { - let t = new l(); - t.appId = u.default.appid; - t.cid = u.default.cid; - t.msgId = new Date().getTime().toString().substr(4); - return t - } - static parse(t) { - let e = new l(); - let r = JSON.parse(t); - e.appId = r.appId; - e.cid = r.cid; - e.msgId = r.msgId; - e.msgAction = r.msgAction; - e.msgData = r.msgData; - e.msgExtraData = r.msgExtraData; - return e - } - } - e['default'] = c; - }, - 708: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(3270)); - const s = i(r(207)); - const a = i(r(127)); - const o = r(3118); - const u = i(r(9214)); - const c = i(r(1754)); - class l extends u.default { - constructor() { - super(...arguments); - this.addPhoneInfoData = new f(); - } - static create() { - let t = new l(); - super.initActionMsg(t); - t.callback = (e) => { - if ( - e.resultCode != o.ErrorCode.SUCCESS && - e.resultCode != o.ErrorCode.REPEAT_MESSAGE - ) - setTimeout(function () { - t.send(); - }, 30 * 1e3); - else - s.default.set({ - key: s.default.KEY_ADD_PHONE_INFO_TIME, - data: new Date().getTime(), - }); - }; - t.actionMsgData.msgAction = u.default.ClientAction.ADD_PHONE_INFO; - t.addPhoneInfoData = f.create(); - t.actionMsgData.msgData = JSON.stringify(t.addPhoneInfoData); - return t - } - send() { - let t = new Date().getTime(); - let e = s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME, 0); - if (t - e < 24 * 60 * 60 * 1e3) return - super.send(); - } - } - class f { - constructor() { - this.model = ''; - this.brand = ''; - this.system_version = ''; - this.version = ''; - this.device_token = ''; - this.imei = ''; - this.oaid = ''; - this.mac = ''; - this.idfa = ''; - this.deviceid = ''; - this.type = ''; - this.extra = { - os: '', - platform: '', - platformVersion: '', - platformId: '', - appVersion: '', - language: '', - }; - } - static create() { - let t = new f(); - t.model = n.default.model(); - t.brand = n.default.brand(); - t.system_version = n.default.osVersion(); - t.version = a.default.SDK_VERSION; - t.device_token = ''; - t.imei = ''; - t.oaid = ''; - t.mac = ''; - t.idfa = ''; - t.type = 'MINI'; - t.deviceid = `${t.type}-${c.default.deviceId}`; - t.extra = { - os: n.default.os(), - platform: n.default.platform(), - platformVersion: n.default.platformVersion(), - platformId: n.default.platformId(), - appVersion: '', - language: n.default.language(), - }; - return t - } - } - e['default'] = l; - }, - 3854: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(1754)); - const s = i(r(9214)); - class a extends s.default { - constructor() { - super(...arguments); - this.bindAliasTagData = new o(); - } - static create(t, e, r) { - let i = new a(); - super.initActionMsg(i); - i.bindAliasTagData = o.create(t, e); - i.callback = r; - i.actionMsgData.msgAction = s.default.ClientAction.BIND_ALIAS; - i.actionMsgData.msgData = JSON.stringify(i.bindAliasTagData); - return i - } - } - class o { - constructor() { - this.alias = ''; - this.cid = ''; - this.appid = ''; - this.sn = ''; - this.is_self = ''; - } - static create(t, e) { - let r = new o(); - r.alias = t; - r.cid = n.default.cid; - r.appid = n.default.appid; - r.sn = new Date().getTime().toString(); - r.is_self = e ? '1' : '0'; - return r - } - } - e['default'] = a; - }, - 652: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - var n, s; - Object.defineProperty(e, '__esModule', { value: true }); - const a = i(r(1754)); - const o = r(3118); - const u = i(r(9214)); - class c extends u.default { - constructor() { - super(...arguments); - this.feedbackData = new l(); - } - static create(t, e) { - let r = new c(); - super.initActionMsg(r); - r.callback = (t) => { - if ( - t.resultCode != o.ErrorCode.SUCCESS && - t.resultCode != o.ErrorCode.REPEAT_MESSAGE - ) - setTimeout(function () { - r.send(); - }, 30 * 1e3); - }; - r.feedbackData = l.create(t, e); - r.actionMsgData.msgAction = u.default.ClientAction.FEED_BACK; - r.actionMsgData.msgData = JSON.stringify(r.feedbackData); - return r - } - send() { - super.send(); - } - } - c.ActionId = - ((n = class {}), - (n.RECEIVE = '0'), - (n.MP_RECEIVE = '210000'), - (n.WEB_RECEIVE = '220000'), - (n.BEGIN = '1'), - n); - c.RESULT = ((s = class {}), (s.OK = 'ok'), s); - class l { - constructor() { - this.messageid = ''; - this.appkey = ''; - this.appid = ''; - this.taskid = ''; - this.actionid = ''; - this.result = ''; - this.timestamp = ''; - } - static create(t, e) { - let r = new l(); - r.messageid = t.pushMessageData.messageid; - r.appkey = t.pushMessageData.appKey; - r.appid = a.default.appid; - r.taskid = t.pushMessageData.taskId; - r.actionid = e; - r.result = c.RESULT.OK; - r.timestamp = new Date().getTime().toString(); - return r - } - } - e['default'] = c; - }, - 9018: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(1754)); - const s = i(r(9214)); - class a extends s.default { - constructor() { - super(...arguments); - this.setTagData = new o(); - } - static create(t, e) { - let r = new a(); - super.initActionMsg(r); - r.setTagData = o.create(t); - r.callback = e; - r.actionMsgData.msgAction = s.default.ClientAction.SET_TAGS; - r.actionMsgData.msgData = JSON.stringify(r.setTagData); - return r - } - } - class o { - constructor() { - this.appid = ''; - this.tags = ''; - this.sn = ''; - } - static create(t) { - let e = new o(); - e.appid = n.default.appid; - e.tags = u(t); - e.sn = new Date().getTime().toString(); - return e - } - } - function u(t) { - return encodeURIComponent(t) - .replace(/!/g, '%21') - .replace(/'/g, '%27') - .replace(/\(/g, '%28') - .replace(/\)/g, '%29') - .replace(/\*/g, '%2A') - } - e['default'] = a; - }, - 5084: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(1754)); - const s = i(r(9214)); - class a extends s.default { - constructor() { - super(...arguments); - this.unbindAliasData = new o(); - } - static create(t, e, r) { - let i = new a(); - super.initActionMsg(i); - i.unbindAliasData = o.create(t, e); - i.callback = r; - i.actionMsgData.msgAction = s.default.ClientAction.UNBIND_ALIAS; - i.actionMsgData.msgData = JSON.stringify(i.unbindAliasData); - return i - } - } - class o { - constructor() { - this.alias = ''; - this.cid = ''; - this.appid = ''; - this.sn = ''; - this.is_self = ''; - } - static create(t, e) { - let r = new o(); - r.alias = t; - r.cid = n.default.cid; - r.appid = n.default.appid; - r.sn = new Date().getTime().toString(); - r.is_self = e ? '1' : '0'; - return r - } - } - e['default'] = a; - }, - 6561: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(9800)); - class s extends n.default { - static create() { - let t = new s(); - super.initMsg(t); - t.command = n.default.Command.HEART_BEAT; - return t - } - } - e['default'] = s; - }, - 358: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(323)); - const s = i(r(1754)); - const a = i(r(9800)); - class o extends a.default { - constructor() { - super(...arguments); - this.keyNegotiateData = new u(); - } - static create() { - let t = new o(); - super.initMsg(t); - t.command = a.default.Command.KEY_NEGOTIATE; - n.default.resetKey(); - t.data = t.keyNegotiateData = u.create(); - return t - } - send() { - super.send(); - } - } - class u { - constructor() { - this.appId = ''; - this.rsaPublicKeyId = ''; - this.algorithm = ''; - this.secretKey = ''; - this.iv = ''; - } - static create() { - let t = new u(); - t.appId = s.default.appid; - t.rsaPublicKeyId = s.default.publicKeyId; - t.algorithm = 'AES'; - t.secretKey = n.default.getEncryptedSecretKey(); - t.iv = n.default.getEncryptedIV(); - return t - } - } - e['default'] = o; - }, - 5301: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(9800)); - const s = i(r(323)); - const a = i(r(2544)); - class o extends n.default { - constructor() { - super(...arguments); - this.keyNegotiateResultData = new u(); - } - static parse(t) { - let e = new o(); - super.parseMsg(e, t); - e.keyNegotiateResultData = u.parse(e.data); - return e - } - receive() { - if (0 != this.keyNegotiateResultData.errorCode) { - console.error(`key negotiate fail: ${this.data}`); - return - } - let t = this.keyNegotiateResultData.encryptType.split('/'); - if ( - !s.default.algorithmMap.has(t[0].trim().toLowerCase()) || - !s.default.modeMap.has(t[1].trim().toLowerCase()) || - !s.default.paddingMap.has(t[2].trim().toLowerCase()) - ) { - console.error(`key negotiate fail: ${this.data}`); - return - } - s.default.setEncryptParams( - t[0].trim().toLowerCase(), - t[1].trim().toLowerCase(), - t[2].trim().toLowerCase() - ); - a.default.create().send(); - } - } - class u { - constructor() { - this.errorCode = -1; - this.errorMsg = ''; - this.encryptType = ''; - } - static parse(t) { - let e = new u(); - let r = JSON.parse(t); - e.errorCode = r.errorCode; - e.errorMsg = r.errorMsg; - e.encryptType = r.encryptType; - return e - } - } - e['default'] = o; - }, - 2544: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(1754)); - const s = i(r(323)); - const a = i(r(9800)); - const o = i(r(3527)); - class u extends a.default { - constructor() { - super(...arguments); - this.loginData = new c(); - } - static create() { - let t = new u(); - super.initMsg(t); - t.command = a.default.Command.LOGIN; - t.data = t.loginData = c.create(); - return t - } - send() { - if ( - !this.loginData.session || - n.default.cid != s.default.md5Hex(this.loginData.session) - ) { - o.default.create().send(); - return - } - super.send(); - } - } - class c { - constructor() { - this.appId = ''; - this.session = ''; - } - static create() { - let t = new c(); - t.appId = n.default.appid; - t.session = n.default.session; - return t - } - } - e['default'] = u; - }, - 8734: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(207)); - const s = i(r(9800)); - const a = i(r(1754)); - const o = i(r(9214)); - const u = i(r(708)); - const c = i(r(2544)); - class l extends s.default { - constructor() { - super(...arguments); - this.loginResultData = new f(); - } - static parse(t) { - let e = new l(); - super.parseMsg(e, t); - e.loginResultData = f.parse(e.data); - return e - } - receive() { - var t; - if (0 != this.loginResultData.errorCode) { - this.data; - a.default.session = a.default.cid = ''; - n.default.setSync(n.default.KEY_CID, ''); - n.default.setSync(n.default.KEY_SESSION, ''); - c.default.create().send(); - return - } - if (!a.default.online) { - a.default.online = true; - null === (t = a.default.onlineState) || - void 0 === t || - t.call(a.default.onlineState, { online: a.default.online }); - } - o.default.sendWaitingMessages(); - u.default.create().send(); - } - } - class f { - constructor() { - this.errorCode = -1; - this.errorMsg = ''; - this.session = ''; - } - static parse(t) { - let e = new f(); - let r = JSON.parse(t); - e.errorCode = r.errorCode; - e.errorMsg = r.errorMsg; - e.session = r.session; - return e - } - } - e['default'] = l; - }, - 9800: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - var n; - Object.defineProperty(e, '__esModule', { value: true }); - const s = i(r(350)); - const a = i(r(3593)); - const o = i(r(127)); - const u = i(r(1754)); - class c { - constructor() { - this.version = ''; - this.command = 0; - this.packetId = 0; - this.timeStamp = 0; - this.data = ''; - this.signature = ''; - } - static initMsg(t, ...e) { - t.version = o.default.SOCKET_PROTOCOL_VERSION; - t.command = 0; - t.timeStamp = new Date().getTime(); - return t - } - static parseMsg(t, e) { - let r = JSON.parse(e); - t.version = r.version; - t.command = r.command; - t.packetId = r.packetId; - t.timeStamp = r.timeStamp; - t.data = r.data; - t.signature = r.signature; - return t - } - stringify() { - return JSON.stringify(this, [ - 'version', - 'command', - 'packetId', - 'timeStamp', - 'data', - 'signature', - ]) - } - send() { - if (!a.default.isAvailable()) return - this.packetId = u.default.packetId++; - this.data = JSON.stringify(this.data); - this.stringify(); - if (this.command != c.Command.HEART_BEAT) { - s.default.sign(this); - if (this.data && this.command != c.Command.KEY_NEGOTIATE) - s.default.encrypt(this); - } - a.default.send(this.stringify()); - } - } - c.Command = - ((n = class {}), - (n.HEART_BEAT = 0), - (n.KEY_NEGOTIATE = 1), - (n.KEY_NEGOTIATE_RESULT = 16), - (n.REGISTER = 2), - (n.REGISTER_RESULT = 32), - (n.LOGIN = 3), - (n.LOGIN_RESULT = 48), - (n.LOGOUT = 4), - (n.LOGOUT_RESULT = 64), - (n.CLIENT_MSG = 5), - (n.SERVER_MSG = 80), - (n.SERVER_CLOSE = 96), - n); - e['default'] = c; - }, - 350: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(323)); - var s - ;(function (t) { - function e(t) { - t.data = n.default.encrypt(t.data); - } - t.encrypt = e; - function r(t) { - t.data = n.default.decrypt(t.data); - } - t.decrypt = r; - function i(t) { - t.signature = n.default.sha256( - `${t.timeStamp}${t.packetId}${t.command}${t.data}` - ); - } - t.sign = i; - function s(t) { - let e = n.default.sha256( - `${t.timeStamp}${t.packetId}${t.command}${t.data}` - ); - if (t.signature != e) throw new Error(`msg signature vierfy failed`) - } - t.verify = s; - })(s || (s = {})); - e['default'] = s; - }, - 1236: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(5301)); - const s = i(r(8734)); - const a = i(r(9800)); - const o = i(r(7078)); - const u = i(r(538)); - const c = i(r(7821)); - const l = i(r(217)); - const f = i(r(7156)); - const h = i(r(2535)); - const d = i(r(9214)); - const v = i(r(7303)); - const p = i(r(6063)); - const g = i(r(7923)); - const y = i(r(350)); - const m = i(r(9214)); - const _ = i(r(6254)); - const S = i(r(5035)); - class E { - static receiveMessage(t) { - let e = a.default.parseMsg(new a.default(), t); - if ( - e.command != a.default.Command.KEY_NEGOTIATE_RESULT && - e.command != a.default.Command.HEART_BEAT && - e.command != a.default.Command.SERVER_CLOSE - ) - y.default.decrypt(e); - if ( - e.command != a.default.Command.HEART_BEAT && - e.command != a.default.Command.SERVER_CLOSE - ) - y.default.verify(e); - switch (e.command) { - case a.default.Command.KEY_NEGOTIATE_RESULT: - n.default.parse(e.stringify()).receive(); - break - case a.default.Command.REGISTER_RESULT: - o.default.parse(e.stringify()).receive(); - break - case a.default.Command.LOGIN_RESULT: - s.default.parse(e.stringify()).receive(); - break - case a.default.Command.SERVER_MSG: - this.receiveActionMsg(e.stringify()); - break - case a.default.Command.SERVER_CLOSE: - S.default.parse(e.stringify()).receive(); - break - } - } - static receiveActionMsg(t) { - let e = m.default.parseActionMsg(new m.default(), t); - if ( - e.actionMsgData.msgAction != d.default.ServerAction.RECEIVED && - e.actionMsgData.msgAction != - d.default.ServerAction.REDIRECT_SERVER - ) { - let t = JSON.parse(e.actionMsgData.msgData); - _.default.create(t.id).send(); - } - switch (e.actionMsgData.msgAction) { - case d.default.ServerAction.PUSH_MESSAGE: - f.default.parse(t).receive(); - break - case d.default.ServerAction.REDIRECT_SERVER: - h.default.parse(t).receive(); - break - case d.default.ServerAction.ADD_PHONE_INFO_RESULT: - u.default.parse(t).receive(); - break - case d.default.ServerAction.SET_MODE_RESULT: - v.default.parse(t).receive(); - break - case d.default.ServerAction.SET_TAG_RESULT: - p.default.parse(t).receive(); - break - case d.default.ServerAction.BIND_ALIAS_RESULT: - c.default.parse(t).receive(); - break - case d.default.ServerAction.UNBIND_ALIAS_RESULT: - g.default.parse(t).receive(); - break - case d.default.ServerAction.FEED_BACK_RESULT: - l.default.parse(t).receive(); - break - case d.default.ServerAction.RECEIVED: - _.default.parse(t).receive(); - break - } - } - } - e['default'] = E; - }, - 6254: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = r(3118); - const s = i(r(1754)); - const a = i(r(9214)); - class o extends a.default { - constructor() { - super(...arguments); - this.receivedData = new u(); - } - static create(t) { - let e = new o(); - super.initActionMsg(e); - e.callback = (t) => { - if ( - t.resultCode != n.ErrorCode.SUCCESS && - t.resultCode != n.ErrorCode.REPEAT_MESSAGE - ) - setTimeout(function () { - e.send(); - }, 3 * 1e3); - }; - e.actionMsgData.msgAction = a.default.ClientAction.RECEIVED; - e.receivedData = u.create(t); - e.actionMsgData.msgData = JSON.stringify(e.receivedData); - return e - } - static parse(t) { - let e = new o(); - super.parseActionMsg(e, t); - e.receivedData = u.parse(e.data); - return e - } - receive() { - var t; - let e = a.default.getWaitingResponseMessage( - this.actionMsgData.msgId - ); - if ( - (e && - e.actionMsgData.msgAction == - a.default.ClientAction.ADD_PHONE_INFO) || - (e && - e.actionMsgData.msgAction == a.default.ClientAction.FEED_BACK) - ) { - a.default.removeWaitingResponseMessage(e.actionMsgData.msgId); - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: n.ErrorCode.SUCCESS, - message: 'received', - }); - } - } - send() { - super.send(); - } - } - class u { - constructor() { - this.msgId = ''; - this.cid = ''; - } - static create(t) { - let e = new u(); - e.cid = s.default.cid; - e.msgId = t; - return e - } - static parse(t) { - let e = new u(); - let r = JSON.parse(t); - e.cid = r.cid; - e.msgId = r.msgId; - return e - } - } - e['default'] = o; - }, - 3527: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(1754)); - const s = i(r(9800)); - class a extends s.default { - constructor() { - super(...arguments); - this.registerData = new o(); - } - static create() { - let t = new a(); - super.initMsg(t); - t.command = s.default.Command.REGISTER; - t.data = t.registerData = o.create(); - return t - } - send() { - super.send(); - } - } - class o { - constructor() { - this.appId = ''; - this.regId = ''; - } - static create() { - let t = new o(); - t.appId = n.default.appid; - t.regId = n.default.regId; - return t - } - } - e['default'] = a; - }, - 7078: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(9800)); - const s = i(r(207)); - const a = i(r(1754)); - const o = i(r(2544)); - class u extends n.default { - constructor() { - super(...arguments); - this.registerResultData = new c(); - } - static parse(t) { - let e = new u(); - super.parseMsg(e, t); - e.registerResultData = c.parse(e.data); - return e - } - receive() { - var t; - if ( - 0 != this.registerResultData.errorCode || - !this.registerResultData.cid || - !this.registerResultData.session - ) { - console.error(`register fail: ${this.data}`); - return - } - if (a.default.cid != this.registerResultData.cid) - s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME, 0); - a.default.cid = this.registerResultData.cid; - null === (t = a.default.onClientId) || - void 0 === t || - t.call(a.default.onClientId, { cid: a.default.cid }); - s.default.set({ key: s.default.KEY_CID, data: a.default.cid }); - a.default.session = this.registerResultData.session; - s.default.set({ - key: s.default.KEY_SESSION, - data: a.default.session, - }); - a.default.deviceId = this.registerResultData.deviceId; - s.default.set({ - key: s.default.KEY_DEVICE_ID, - data: a.default.deviceId, - }); - o.default.create().send(); - } - } - class c { - constructor() { - this.errorCode = -1; - this.errorMsg = ''; - this.cid = ''; - this.session = ''; - this.deviceId = ''; - this.regId = ''; - } - static parse(t) { - let e = new c(); - let r = JSON.parse(t); - e.errorCode = r.errorCode; - e.errorMsg = r.errorMsg; - e.cid = r.cid; - e.session = r.session; - e.deviceId = r.deviceId; - e.regId = r.regId; - return e - } - } - e['default'] = u; - }, - 5035: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(3593)); - const s = i(r(9800)); - class a extends s.default { - constructor() { - super(...arguments); - this.serverCloseData = new o(); - } - static parse(t) { - let e = new a(); - super.parseMsg(e, t); - e.serverCloseData = o.parse(e.data); - return e - } - receive() { - this.data; - if ( - 20 == this.serverCloseData.code || - 23 == this.serverCloseData.code || - 24 == this.serverCloseData.code - ) - n.default.allowReconnect = false; - n.default.close(); - } - } - class o { - constructor() { - this.code = -1; - this.msg = ''; - } - static parse(t) { - let e = new o(); - let r = JSON.parse(t); - e.code = r.code; - e.msg = r.msg; - return e - } - } - e['default'] = a; - }, - 538: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(207)); - const s = i(r(9214)); - class a extends s.default { - constructor() { - super(...arguments); - this.addPhoneInfoResultData = new o(); - } - static parse(t) { - let e = new a(); - super.parseActionMsg(e, t); - e.addPhoneInfoResultData = o.parse(e.actionMsgData.msgData); - return e - } - receive() { - var t; - this.addPhoneInfoResultData; - let e = s.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ); - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: this.addPhoneInfoResultData.errorCode, - message: this.addPhoneInfoResultData.errorMsg, - }); - n.default.set({ - key: n.default.KEY_ADD_PHONE_INFO_TIME, - data: new Date().getTime(), - }); - } - } - class o { - constructor() { - this.errorCode = -1; - this.errorMsg = ''; - } - static parse(t) { - let e = new o(); - let r = JSON.parse(t); - e.errorCode = r.errorCode; - e.errorMsg = r.errorMsg; - return e - } - } - e['default'] = a; - }, - 7821: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(207)); - const s = i(r(1237)); - const a = i(r(9214)); - class o extends a.default { - constructor() { - super(...arguments); - this.bindAliasResultData = new u(); - } - static parse(t) { - let e = new o(); - super.parseActionMsg(e, t); - e.bindAliasResultData = u.parse(e.actionMsgData.msgData); - return e - } - receive() { - var t; - s.default.info(`bind alias result`, this.bindAliasResultData); - let e = a.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ); - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: this.bindAliasResultData.errorCode, - message: this.bindAliasResultData.errorMsg, - }); - n.default.set({ - key: n.default.KEY_BIND_ALIAS_TIME, - data: new Date().getTime(), - }); - } - } - class u { - constructor() { - this.errorCode = -1; - this.errorMsg = ''; - } - static parse(t) { - let e = new u(); - let r = JSON.parse(t); - e.errorCode = r.errorCode; - e.errorMsg = r.errorMsg; - return e - } - } - e['default'] = o; - }, - 217: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = r(3118); - const s = i(r(9214)); - class a extends s.default { - constructor() { - super(...arguments); - this.feedbackResultData = new o(); - } - static parse(t) { - let e = new a(); - super.parseActionMsg(e, t); - e.feedbackResultData = o.parse(e.actionMsgData.msgData); - return e - } - receive() { - var t; - this.feedbackResultData; - let e = s.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ); - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: n.ErrorCode.SUCCESS, - message: 'received', - }); - } - } - class o { - constructor() { - this.actionId = ''; - this.taskId = ''; - this.result = ''; - } - static parse(t) { - let e = new o(); - let r = JSON.parse(t); - e.actionId = r.actionId; - e.taskId = r.taskId; - e.result = r.result; - return e - } - } - e['default'] = a; - }, - 7156: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - var n; - Object.defineProperty(e, '__esModule', { value: true }); - const s = i(r(1754)); - const a = i(r(9214)); - const o = i(r(652)); - class u extends a.default { - constructor() { - super(...arguments); - this.pushMessageData = new c(); - } - static parse(t) { - let e = new u(); - super.parseActionMsg(e, t); - e.pushMessageData = c.parse(e.actionMsgData.msgData); - return e - } - receive() { - var t; - this.pushMessageData; - if ( - this.pushMessageData.appId != s.default.appid || - !this.pushMessageData.messageid || - !this.pushMessageData.taskId - ) - this.stringify(); - o.default.create(this, o.default.ActionId.RECEIVE).send(); - o.default.create(this, o.default.ActionId.MP_RECEIVE).send(); - if (this.actionMsgData.msgExtraData && s.default.onPushMsg) - null === (t = s.default.onPushMsg) || - void 0 === t || - t.call(s.default.onPushMsg, { - message: this.actionMsgData.msgExtraData, - }); - } - } - class c { - constructor() { - this.id = ''; - this.appKey = ''; - this.appId = ''; - this.messageid = ''; - this.taskId = ''; - this.actionChain = []; - this.cdnType = ''; - } - static parse(t) { - let e = new c(); - let r = JSON.parse(t); - e.id = r.id; - e.appKey = r.appKey; - e.appId = r.appId; - e.messageid = r.messageid; - e.taskId = r.taskId; - e.actionChain = r.actionChain; - e.cdnType = r.cdnType; - return e - } - } - ((n = class {}), (n.GO_TO = 'goto'), (n.TRANSMIT = 'transmit'), n); - e['default'] = u; - }, - 2535: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(3593)); - const s = i(r(1754)); - const a = i(r(9214)); - class o extends a.default { - constructor() { - super(...arguments); - this.redirectServerData = new u(); - } - static parse(t) { - let e = new o(); - super.parseActionMsg(e, t); - e.redirectServerData = u.parse(e.actionMsgData.msgData); - return e - } - receive() { - s.default.socketUrl = - this.redirectServerData.addressList.split(',')[0]; - n.default.connect(); - } - } - class u { - constructor() { - this.addressList = ''; - this.delay = 0; - this.location = ''; - this.idConfig = ''; - } - static parse(t) { - let e = new u(); - let r = JSON.parse(t); - e.addressList = r.addressList; - e.delay = r.delay; - e.location = r.location; - e.idConfig = r.idConfig; - return e - } - } - e['default'] = o; - }, - 7303: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(9214)); - class s extends n.default { - constructor() { - super(...arguments); - this.setModeResultData = new a(); - } - static parse(t) { - let e = new s(); - super.parseActionMsg(e, t); - e.setModeResultData = a.parse(e.actionMsgData.msgData); - return e - } - receive() { - var t; - this.setModeResultData; - let e = n.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ); - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: this.setModeResultData.errorCode, - message: this.setModeResultData.errorMsg, - }); - } - } - class a { - constructor() { - this.errorCode = -1; - this.errorMsg = ''; - } - static parse(t) { - let e = new a(); - let r = JSON.parse(t); - e.errorCode = r.errorCode; - e.errorMsg = r.errorMsg; - return e - } - } - e['default'] = s; - }, - 6063: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(207)); - const s = i(r(1237)); - const a = i(r(9214)); - class o extends a.default { - constructor() { - super(...arguments); - this.setTagResultData = new u(); - } - static parse(t) { - let e = new o(); - super.parseActionMsg(e, t); - e.setTagResultData = u.parse(e.actionMsgData.msgData); - return e - } - receive() { - var t; - s.default.info(`set tag result`, this.setTagResultData); - let e = a.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ); - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: this.setTagResultData.errorCode, - message: this.setTagResultData.errorMsg, - }); - n.default.set({ - key: n.default.KEY_SET_TAG_TIME, - data: new Date().getTime(), - }); - } - } - class u { - constructor() { - this.errorCode = 0; - this.errorMsg = ''; - } - static parse(t) { - let e = new u(); - let r = JSON.parse(t); - e.errorCode = r.errorCode; - e.errorMsg = r.errorMsg; - return e - } - } - e['default'] = o; - }, - 7923: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(207)); - const s = i(r(1237)); - const a = i(r(9214)); - class o extends a.default { - constructor() { - super(...arguments); - this.unbindAliasResultData = new u(); - } - static parse(t) { - let e = new o(); - super.parseActionMsg(e, t); - e.unbindAliasResultData = u.parse(e.actionMsgData.msgData); - return e - } - receive() { - var t; - s.default.info(`unbind alias result`, this.unbindAliasResultData); - let e = a.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ); - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: this.unbindAliasResultData.errorCode, - message: this.unbindAliasResultData.errorMsg, - }); - n.default.set({ - key: n.default.KEY_BIND_ALIAS_TIME, - data: new Date().getTime(), - }); - } - } - class u { - constructor() { - this.errorCode = -1; - this.errorMsg = ''; - } - static parse(t) { - let e = new u(); - let r = JSON.parse(t); - e.errorCode = r.errorCode; - e.errorMsg = r.errorMsg; - return e - } - } - e['default'] = o; - }, - 9285: (t, e) => { - Object.defineProperty(e, '__esModule', { value: true }); - class r { - constructor(t) { - this.delay = 10; - this.delay = t; - } - start() { - this.cancel(); - let t = this; - this.timer = setInterval(function () { - t.run(); - }, this.delay); - } - cancel() { - if (this.timer) clearInterval(this.timer); - } - } - e['default'] = r; - }, - 1571: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - var n; - Object.defineProperty(e, '__esModule', { value: true }); - const s = i(r(6561)); - const a = i(r(9285)); - class o extends a.default { - static getInstance() { - return o.InstanceHolder.instance - } - run() { - s.default.create().send(); - } - refresh() { - this.delay = 60 * 1e3; - this.start(); - } - } - o.INTERVAL = 60 * 1e3; - o.InstanceHolder = ((n = class {}), (n.instance = new o(o.INTERVAL)), n); - e['default'] = o; - }, - 3270: (t, e) => { - Object.defineProperty(e, '__esModule', { value: true }); - var r - ;(function (t) { - let e; - let r; - try { - e = uni.getSystemInfoSync(); - r = uni.getAccountInfoSync(); - } catch (t) {} - function i() { - let t = ''; - try { - t = e ? e.platform : ''; - } catch (t) {} - return t ? t : '' - } - t.os = i; - function n() { - let t = ''; - try { - t = e ? e.model : ''; - } catch (t) {} - return t ? t : '' - } - t.model = n; - function s() { - let t = ''; - try { - t = e ? e.brand : ''; - } catch (t) {} - return t ? t : '' - } - t.brand = s; - function a() { - let t = ''; - try { - t = e ? e.system : ''; - // #ifdef MP-ALIPAY - let r = i(); - if (t && r && !t.toLocaleLowerCase().startsWith(r.toLowerCase())) - t = i() + ' ' + t; - // #endif - } catch (t) {} - return t ? t : '' - } - t.osVersion = a; - function o() { - let t = ''; - // #ifdef APP-PLUS - t = 'APP-PLUS'; - // #endif - // #ifdef APP-PLUS-NVUE - t = 'APP-PLUS-NVUE'; - // #endif - // #ifdef APP-NVUE - t = 'APP-NVUE'; - // #endif - // #ifdef H5 - t = 'H5'; - // #endif - // #ifdef MP-WEIXIN - t = 'MP-WEIXIN'; - // #endif - // #ifdef MP-ALIPAY - t = 'MP-ALIPAY'; - // #endif - // #ifdef MP-BAIDU - t = 'MP-BAIDU'; - // #endif - // #ifdef MP-TOUTIAO - t = 'MP-TOUTIAO'; - // #endif - // #ifdef MP-LARK - t = 'MP-LARK'; - // #endif - // #ifdef MP-QQ - t = 'MP-QQ'; - // #endif - // #ifdef MP-KUAISHOU - t = 'MP-KUAISHOU'; - // #endif - // #ifdef MP-360 - t = 'MP-360'; - // #endif - // #ifdef QUICKAPP-WEBVIEW - t = 'QUICKAPP-WEBVIEW'; - // #endif - // #ifdef QUICKAPP-WEBVIEW-UNION - t = 'QUICKAPP-WEBVIEW-UNION'; - // #endif - return t - } - t.platform = o; - function u() { - let t = ''; - try { - t = e ? e.version : ''; - } catch (t) {} - return t ? t : '' - } - t.platformVersion = u; - function c() { - let t = ''; - try { - t = r ? r.miniProgram.appId : ''; - } catch (t) {} - return t ? t : '' - } - t.platformId = c; - function l() { - let t = ''; - try { - t = e ? e.language : ''; - } catch (t) {} - return t ? t : '' - } - t.language = l; - function f() { - return '' - } - t.imei = f; - function h() { - return '' - } - t.oaid = h; - function d(t) { - uni.getNetworkType({ - success: (e) => { - var r; - null === (r = t.success) || - void 0 === r || - r.call(t.success, e.networkType); - }, - fail: (e) => { - var r; - null === (r = t.fail) || void 0 === r || r.call(t.fail, e); - }, - }); - } - t.getNetworkType = d; - function v(t) { - uni.onNetworkStatusChange((e) => { - t.call(t, e); - }); - } - t.onNetworkStatusChange = v; - })(r || (r = {})); - e['default'] = r; - }, - 3593: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(358)); - const s = i(r(1754)); - const a = i(r(1236)); - const o = i(r(1571)); - const u = i(r(1237)); - var c - ;(function (t) { - let e; - let r = false; - let i = false; - t.allowReconnect = true; - function c() { - return r && i - } - t.isAvailable = c; - function l(e) { - if (!t.allowReconnect) return - setTimeout(function () { - f(); - }, e); - } - t.reconnect = l; - function f() { - t.allowReconnect = true; - if (!s.default.networkConnected) { - u.default.info(`connect failed, network is not available`); - return - } - if (i || r) return - let n = s.default.socketUrl; - e = uni.connectSocket({ - url: n, - success: function () { - i = true; - h(); - }, - fail: function () { - i = false; - p(); - }, - }); - // #ifdef MP-ALIPAY - uni.onSocketOpen(g); - uni.onSocketMessage(y); - uni.onSocketError(m); - uni.onSocketClose(_); - // #endif - // #ifndef MP-ALIPAY - e.onOpen(g); - e.onMessage(y); - e.onError(m); - e.onClose(_); - // #endif - } - t.connect = f; - function h() { - if (i && r) { - n.default.create().send(); - o.default.getInstance().start(); - } - } - function d(t) { - // #ifdef MP-ALIPAY - uni.closeSocket({ - reason: t, - success: function (t) {}, - fail: function (t) { - p(); - }, - }); - // #endif - // #ifndef MP-ALIPAY - e.close({ - reason: t, - success: function (t) {}, - fail: function (t) { - p(); - }, - }); - // #endif - } - t.close = d; - function v(t) { - if (r && r) { - // #ifdef MP-ALIPAY - uni.sendSocketMessage({ - data: t, - success: function (t) {}, - fail: function (t) {}, - }); - // #endif - // #ifndef MP-ALIPAY - e.send({ - data: t, - success: function (t) {}, - fail: function (t) {}, - }); - // #endif - } else throw new Error(`socket not connect`) - } - t.send = v; - function p(t) { - var e, n; - i = false; - r = false; - o.default.getInstance().cancel(); - if (s.default.online) { - s.default.online = false; - null === (e = s.default.onlineState) || - void 0 === e || - e.call(s.default.onlineState, { online: s.default.online }); - } - if (s.default.online) { - s.default.online = false; - null === (n = s.default.onlineState) || - void 0 === n || - n.call(s.default.onlineState, { online: s.default.online }); - } - l(1e3); - } - let g = function (t) { - r = true; - h(); - }; - let y = function (t) { - try { - t.data; - o.default.getInstance().refresh(); - a.default.receiveMessage(t.data); - } catch (t) {} - }; - let m = function (t) { - d(`socket error`); - }; - let _ = function (t) { - p(); - }; - })(c || (c = {})); - e['default'] = c; - }, - 207: (t, e) => { - Object.defineProperty(e, '__esModule', { value: true }); - var r - ;(function (t) { - t.KEY_APPID = 'appid'; - t.KEY_CID = 'cid'; - t.KEY_SESSION = 'session'; - t.KEY_REGID = 'regid'; - t.KEY_SOCKET_URL = 'socket_url'; - t.KEY_DEVICE_ID = 'deviceid'; - t.KEY_ADD_PHONE_INFO_TIME = 'api_time'; - t.KEY_BIND_ALIAS_TIME = 'ba_time'; - t.KEY_SET_TAG_TIME = 'st_time'; - function e(t, e) { - uni.setStorageSync(t, e); - } - t.setSync = e; - function r(t) { - uni.setStorage({ - key: t.key, - data: t.data, - fail: () => { - var e; - t.key, t.data; - null === (e = t.fail) || void 0 === e || e.call(t); - }, - }); - } - t.set = r; - function i(t, e) { - let r = e; - try { - let e = uni.getStorageSync(t); - if (e) r = e; - } catch (t) {} - return r - } - t.getSync = i; - function n(t) { - uni.getStorage({ - key: t.key, - success: (e) => { - var r; - null === (r = t.success) || void 0 === r || r.call(t, e.data); - }, - fail: () => { - var e; - t.key; - null === (e = t.fail) || void 0 === e || e.call(t); - }, - }); - } - t.get = n; - })(r || (r = {})); - e['default'] = r; - }, - 323: function (t, e, r) { - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - }; - Object.defineProperty(e, '__esModule', { value: true }); - const n = i(r(3357)); - const s = i(r(1354)); - const a = i(r(1754)); - var o - ;(function (t) { - let e; - let r; - let i; - let o; - let u = new n.default(); - let c = s.default.mode.CBC; - let l = s.default.pad.Pkcs7; - let f = s.default.AES; - t.algorithmMap = new Map([['aes', s.default.AES]]); - t.modeMap = new Map([ - ['cbc', s.default.mode.CBC], - ['cfb', s.default.mode.CFB], - ['cfb128', s.default.mode.CFB], - ['ecb', s.default.mode.ECB], - ['ofb', s.default.mode.OFB], - ]); - t.paddingMap = new Map([ - ['nopadding', s.default.pad.NoPadding], - ['pkcs7', s.default.pad.Pkcs7], - ]); - function h() { - e = s.default.MD5(new Date().getTime().toString()); - r = s.default.MD5(e); - u.setPublicKey(a.default.publicKey); - e.toString(s.default.enc.Hex); - r.toString(s.default.enc.Hex); - i = u.encrypt(e.toString(s.default.enc.Hex)); - o = u.encrypt(r.toString(s.default.enc.Hex)); - } - t.resetKey = h; - function d(e, r, i) { - f = t.algorithmMap.get(e); - c = t.modeMap.get(r); - l = t.paddingMap.get(i); - } - t.setEncryptParams = d; - function v(t) { - return f.encrypt(t, e, { iv: r, mode: c, padding: l }).toString() - } - t.encrypt = v; - function p(t) { - return f - .decrypt(t, e, { iv: r, mode: c, padding: l }) - .toString(s.default.enc.Utf8) - } - t.decrypt = p; - function g(t) { - return s.default.SHA256(t).toString(s.default.enc.Base64) - } - t.sha256 = g; - function y(t) { - return s.default.MD5(t).toString(s.default.enc.Hex) - } - t.md5Hex = y; - function m() { - return i ? i : '' - } - t.getEncryptedSecretKey = m; - function _() { - return o ? o : '' - } - t.getEncryptedIV = _; - })(o || (o = {})); - e['default'] = o; - }, - 1237: (t, e) => { - Object.defineProperty(e, '__esModule', { value: true }); - class r { - static info(...t) { - if (this.debugMode) console.info(`[GtPush]`, t); - } - static error(...t) { - console.error(`[GtPush]`, t); - } - } - r.debugMode = false; - e['default'] = r; - }, - 3357: (t, e, r) => { - r.r(e); - r.d(e, { JSEncrypt: () => _t, default: () => St }); - var i = '0123456789abcdefghijklmnopqrstuvwxyz'; - function n(t) { - return i.charAt(t) - } - function s(t, e) { - return t & e - } - function a(t, e) { - return t | e - } - function o(t, e) { - return t ^ e - } - function u(t, e) { - return t & ~e - } - function c(t) { - if (0 == t) return -1 - var e = 0; - if (0 == (65535 & t)) { - t >>= 16; - e += 16; - } - if (0 == (255 & t)) { - t >>= 8; - e += 8; - } - if (0 == (15 & t)) { - t >>= 4; - e += 4; - } - if (0 == (3 & t)) { - t >>= 2; - e += 2; - } - if (0 == (1 & t)) ++e; - return e - } - function l(t) { - var e = 0; - while (0 != t) { - t &= t - 1; - ++e; - } - return e - } - var f = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - var h = '='; - function d(t) { - var e; - var r; - var i = ''; - for (e = 0; e + 3 <= t.length; e += 3) { - r = parseInt(t.substring(e, e + 3), 16); - i += f.charAt(r >> 6) + f.charAt(63 & r); - } - if (e + 1 == t.length) { - r = parseInt(t.substring(e, e + 1), 16); - i += f.charAt(r << 2); - } else if (e + 2 == t.length) { - r = parseInt(t.substring(e, e + 2), 16); - i += f.charAt(r >> 2) + f.charAt((3 & r) << 4); - } - while ((3 & i.length) > 0) i += h; - return i - } - function v(t) { - var e = ''; - var r; - var i = 0; - var s = 0; - for (r = 0; r < t.length; ++r) { - if (t.charAt(r) == h) break - var a = f.indexOf(t.charAt(r)); - if (a < 0) continue - if (0 == i) { - e += n(a >> 2); - s = 3 & a; - i = 1; - } else if (1 == i) { - e += n((s << 2) | (a >> 4)); - s = 15 & a; - i = 2; - } else if (2 == i) { - e += n(s); - e += n(a >> 2); - s = 3 & a; - i = 3; - } else { - e += n((s << 2) | (a >> 4)); - e += n(15 & a); - i = 0; - } - } - if (1 == i) e += n(s << 2); - return e - } - var g; - var y = { - decode: function (t) { - var e; - if (void 0 === g) { - var r = '0123456789ABCDEF'; - var i = ' \f\n\r\t \u2028\u2029'; - g = {}; - for (e = 0; e < 16; ++e) g[r.charAt(e)] = e; - r = r.toLowerCase(); - for (e = 10; e < 16; ++e) g[r.charAt(e)] = e; - for (e = 0; e < i.length; ++e) g[i.charAt(e)] = -1; - } - var n = []; - var s = 0; - var a = 0; - for (e = 0; e < t.length; ++e) { - var o = t.charAt(e); - if ('=' == o) break - o = g[o]; - if (-1 == o) continue - if (void 0 === o) - throw new Error('Illegal character at offset ' + e) - s |= o; - if (++a >= 2) { - n[n.length] = s; - s = 0; - a = 0; - } else s <<= 4; - } - if (a) throw new Error('Hex encoding incomplete: 4 bits missing') - return n - }, - }; - var m; - var _ = { - decode: function (t) { - var e; - if (void 0 === m) { - var r = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; - var i = '= \f\n\r\t \u2028\u2029'; - m = Object.create(null); - for (e = 0; e < 64; ++e) m[r.charAt(e)] = e; - m['-'] = 62; - m['_'] = 63; - for (e = 0; e < i.length; ++e) m[i.charAt(e)] = -1; - } - var n = []; - var s = 0; - var a = 0; - for (e = 0; e < t.length; ++e) { - var o = t.charAt(e); - if ('=' == o) break - o = m[o]; - if (-1 == o) continue - if (void 0 === o) - throw new Error('Illegal character at offset ' + e) - s |= o; - if (++a >= 4) { - n[n.length] = s >> 16; - n[n.length] = (s >> 8) & 255; - n[n.length] = 255 & s; - s = 0; - a = 0; - } else s <<= 6; - } - switch (a) { - case 1: - throw new Error( - 'Base64 encoding incomplete: at least 2 bits missing' - ) - case 2: - n[n.length] = s >> 10; - break - case 3: - n[n.length] = s >> 16; - n[n.length] = (s >> 8) & 255; - break - } - return n - }, - re: /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/, - unarmor: function (t) { - var e = _.re.exec(t); - if (e) - if (e[1]) t = e[1]; - else if (e[2]) t = e[2]; - else throw new Error('RegExp out of sync') - return _.decode(t) - }, - }; - var S = 1e13; - var E = (function () { - function t(t) { - this.buf = [+t || 0]; - } - t.prototype.mulAdd = function (t, e) { - var r = this.buf; - var i = r.length; - var n; - var s; - for (n = 0; n < i; ++n) { - s = r[n] * t + e; - if (s < S) e = 0; - else { - e = 0 | (s / S); - s -= e * S; - } - r[n] = s; - } - if (e > 0) r[n] = e; - }; - t.prototype.sub = function (t) { - var e = this.buf; - var r = e.length; - var i; - var n; - for (i = 0; i < r; ++i) { - n = e[i] - t; - if (n < 0) { - n += S; - t = 1; - } else t = 0; - e[i] = n; - } - while (0 === e[e.length - 1]) e.pop(); - }; - t.prototype.toString = function (t) { - if (10 != (t || 10)) throw new Error('only base 10 is supported') - var e = this.buf; - var r = e[e.length - 1].toString(); - for (var i = e.length - 2; i >= 0; --i) - r += (S + e[i]).toString().substring(1); - return r - }; - t.prototype.valueOf = function () { - var t = this.buf; - var e = 0; - for (var r = t.length - 1; r >= 0; --r) e = e * S + t[r]; - return e - }; - t.prototype.simplify = function () { - var t = this.buf; - return 1 == t.length ? t[0] : this - }; - return t - })(); - var b = '…'; - var w = - /^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/; - var D = - /^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/; - function T(t, e) { - if (t.length > e) t = t.substring(0, e) + b; - return t - } - var A = (function () { - function t(e, r) { - this.hexDigits = '0123456789ABCDEF'; - if (e instanceof t) { - this.enc = e.enc; - this.pos = e.pos; - } else { - this.enc = e; - this.pos = r; - } - } - t.prototype.get = function (t) { - if (void 0 === t) t = this.pos++; - if (t >= this.enc.length) - throw new Error( - 'Requesting byte offset ' + - t + - ' on a stream of length ' + - this.enc.length - ) - return 'string' === typeof this.enc - ? this.enc.charCodeAt(t) - : this.enc[t] - }; - t.prototype.hexByte = function (t) { - return ( - this.hexDigits.charAt((t >> 4) & 15) + - this.hexDigits.charAt(15 & t) - ) - }; - t.prototype.hexDump = function (t, e, r) { - var i = ''; - for (var n = t; n < e; ++n) { - i += this.hexByte(this.get(n)); - if (true !== r) - switch (15 & n) { - case 7: - i += ' '; - break - case 15: - i += '\n'; - break - default: - i += ' '; - } - } - return i - }; - t.prototype.isASCII = function (t, e) { - for (var r = t; r < e; ++r) { - var i = this.get(r); - if (i < 32 || i > 176) return false - } - return true - }; - t.prototype.parseStringISO = function (t, e) { - var r = ''; - for (var i = t; i < e; ++i) r += String.fromCharCode(this.get(i)); - return r - }; - t.prototype.parseStringUTF = function (t, e) { - var r = ''; - for (var i = t; i < e; ) { - var n = this.get(i++); - if (n < 128) r += String.fromCharCode(n); - else if (n > 191 && n < 224) - r += String.fromCharCode(((31 & n) << 6) | (63 & this.get(i++))); - else - r += String.fromCharCode( - ((15 & n) << 12) | - ((63 & this.get(i++)) << 6) | - (63 & this.get(i++)) - ); - } - return r - }; - t.prototype.parseStringBMP = function (t, e) { - var r = ''; - var i; - var n; - for (var s = t; s < e; ) { - i = this.get(s++); - n = this.get(s++); - r += String.fromCharCode((i << 8) | n); - } - return r - }; - t.prototype.parseTime = function (t, e, r) { - var i = this.parseStringISO(t, e); - var n = (r ? w : D).exec(i); - if (!n) return 'Unrecognized time: ' + i - if (r) { - n[1] = +n[1]; - n[1] += +n[1] < 70 ? 2e3 : 1900; - } - i = n[1] + '-' + n[2] + '-' + n[3] + ' ' + n[4]; - if (n[5]) { - i += ':' + n[5]; - if (n[6]) { - i += ':' + n[6]; - if (n[7]) i += '.' + n[7]; - } - } - if (n[8]) { - i += ' UTC'; - if ('Z' != n[8]) { - i += n[8]; - if (n[9]) i += ':' + n[9]; - } - } - return i - }; - t.prototype.parseInteger = function (t, e) { - var r = this.get(t); - var i = r > 127; - var n = i ? 255 : 0; - var s; - var a = ''; - while (r == n && ++t < e) r = this.get(t); - s = e - t; - if (0 === s) return i ? -1 : 0 - if (s > 4) { - a = r; - s <<= 3; - while (0 == (128 & (+a ^ n))) { - a = +a << 1; - --s; - } - a = '(' + s + ' bit)\n'; - } - if (i) r -= 256; - var o = new E(r); - for (var u = t + 1; u < e; ++u) o.mulAdd(256, this.get(u)); - return a + o.toString() - }; - t.prototype.parseBitString = function (t, e, r) { - var i = this.get(t); - var n = ((e - t - 1) << 3) - i; - var s = '(' + n + ' bit)\n'; - var a = ''; - for (var o = t + 1; o < e; ++o) { - var u = this.get(o); - var c = o == e - 1 ? i : 0; - for (var l = 7; l >= c; --l) a += (u >> l) & 1 ? '1' : '0'; - if (a.length > r) return s + T(a, r) - } - return s + a - }; - t.prototype.parseOctetString = function (t, e, r) { - if (this.isASCII(t, e)) return T(this.parseStringISO(t, e), r) - var i = e - t; - var n = '(' + i + ' byte)\n'; - r /= 2; - if (i > r) e = t + r; - for (var s = t; s < e; ++s) n += this.hexByte(this.get(s)); - if (i > r) n += b; - return n - }; - t.prototype.parseOID = function (t, e, r) { - var i = ''; - var n = new E(); - var s = 0; - for (var a = t; a < e; ++a) { - var o = this.get(a); - n.mulAdd(128, 127 & o); - s += 7; - if (!(128 & o)) { - if ('' === i) { - n = n.simplify(); - if (n instanceof E) { - n.sub(80); - i = '2.' + n.toString(); - } else { - var u = n < 80 ? (n < 40 ? 0 : 1) : 2; - i = u + '.' + (n - 40 * u); - } - } else i += '.' + n.toString(); - if (i.length > r) return T(i, r) - n = new E(); - s = 0; - } - } - if (s > 0) i += '.incomplete'; - return i - }; - return t - })(); - var M = (function () { - function t(t, e, r, i, n) { - if (!(i instanceof I)) throw new Error('Invalid tag value.') - this.stream = t; - this.header = e; - this.length = r; - this.tag = i; - this.sub = n; - } - t.prototype.typeName = function () { - switch (this.tag.tagClass) { - case 0: - switch (this.tag.tagNumber) { - case 0: - return 'EOC' - case 1: - return 'BOOLEAN' - case 2: - return 'INTEGER' - case 3: - return 'BIT_STRING' - case 4: - return 'OCTET_STRING' - case 5: - return 'NULL' - case 6: - return 'OBJECT_IDENTIFIER' - case 7: - return 'ObjectDescriptor' - case 8: - return 'EXTERNAL' - case 9: - return 'REAL' - case 10: - return 'ENUMERATED' - case 11: - return 'EMBEDDED_PDV' - case 12: - return 'UTF8String' - case 16: - return 'SEQUENCE' - case 17: - return 'SET' - case 18: - return 'NumericString' - case 19: - return 'PrintableString' - case 20: - return 'TeletexString' - case 21: - return 'VideotexString' - case 22: - return 'IA5String' - case 23: - return 'UTCTime' - case 24: - return 'GeneralizedTime' - case 25: - return 'GraphicString' - case 26: - return 'VisibleString' - case 27: - return 'GeneralString' - case 28: - return 'UniversalString' - case 30: - return 'BMPString' - } - return 'Universal_' + this.tag.tagNumber.toString() - case 1: - return 'Application_' + this.tag.tagNumber.toString() - case 2: - return '[' + this.tag.tagNumber.toString() + ']' - case 3: - return 'Private_' + this.tag.tagNumber.toString() - } - }; - t.prototype.content = function (t) { - if (void 0 === this.tag) return null - if (void 0 === t) t = 1 / 0; - var e = this.posContent(); - var r = Math.abs(this.length); - if (!this.tag.isUniversal()) { - if (null !== this.sub) return '(' + this.sub.length + ' elem)' - return this.stream.parseOctetString(e, e + r, t) - } - switch (this.tag.tagNumber) { - case 1: - return 0 === this.stream.get(e) ? 'false' : 'true' - case 2: - return this.stream.parseInteger(e, e + r) - case 3: - return this.sub - ? '(' + this.sub.length + ' elem)' - : this.stream.parseBitString(e, e + r, t) - case 4: - return this.sub - ? '(' + this.sub.length + ' elem)' - : this.stream.parseOctetString(e, e + r, t) - case 6: - return this.stream.parseOID(e, e + r, t) - case 16: - case 17: - if (null !== this.sub) return '(' + this.sub.length + ' elem)' - else return '(no elem)' - case 12: - return T(this.stream.parseStringUTF(e, e + r), t) - case 18: - case 19: - case 20: - case 21: - case 22: - case 26: - return T(this.stream.parseStringISO(e, e + r), t) - case 30: - return T(this.stream.parseStringBMP(e, e + r), t) - case 23: - case 24: - return this.stream.parseTime(e, e + r, 23 == this.tag.tagNumber) - } - return null - }; - t.prototype.toString = function () { - return ( - this.typeName() + - '@' + - this.stream.pos + - '[header:' + - this.header + - ',length:' + - this.length + - ',sub:' + - (null === this.sub ? 'null' : this.sub.length) + - ']' - ) - }; - t.prototype.toPrettyString = function (t) { - if (void 0 === t) t = ''; - var e = t + this.typeName() + ' @' + this.stream.pos; - if (this.length >= 0) e += '+'; - e += this.length; - if (this.tag.tagConstructed) e += ' (constructed)'; - else if ( - this.tag.isUniversal() && - (3 == this.tag.tagNumber || 4 == this.tag.tagNumber) && - null !== this.sub - ) - e += ' (encapsulates)'; - e += '\n'; - if (null !== this.sub) { - t += ' '; - for (var r = 0, i = this.sub.length; r < i; ++r) - e += this.sub[r].toPrettyString(t); - } - return e - }; - t.prototype.posStart = function () { - return this.stream.pos - }; - t.prototype.posContent = function () { - return this.stream.pos + this.header - }; - t.prototype.posEnd = function () { - return this.stream.pos + this.header + Math.abs(this.length) - }; - t.prototype.toHexString = function () { - return this.stream.hexDump(this.posStart(), this.posEnd(), true) - }; - t.decodeLength = function (t) { - var e = t.get(); - var r = 127 & e; - if (r == e) return r - if (r > 6) - throw new Error( - 'Length over 48 bits not supported at position ' + (t.pos - 1) - ) - if (0 === r) return null - e = 0; - for (var i = 0; i < r; ++i) e = 256 * e + t.get(); - return e - }; - t.prototype.getHexStringValue = function () { - var t = this.toHexString(); - var e = 2 * this.header; - var r = 2 * this.length; - return t.substr(e, r) - }; - t.decode = function (e) { - var r; - if (!(e instanceof A)) r = new A(e, 0); - else r = e; - var i = new A(r); - var n = new I(r); - var s = t.decodeLength(r); - var a = r.pos; - var o = a - i.pos; - var u = null; - var c = function () { - var e = []; - if (null !== s) { - var i = a + s; - while (r.pos < i) e[e.length] = t.decode(r); - if (r.pos != i) - throw new Error( - 'Content size is not correct for container starting at offset ' + - a - ) - } else - try { - for (;;) { - var n = t.decode(r); - if (n.tag.isEOC()) break - e[e.length] = n; - } - s = a - r.pos; - } catch (t) { - throw new Error( - 'Exception while decoding undefined length content: ' + t - ) - } - return e - }; - if (n.tagConstructed) u = c(); - else if (n.isUniversal() && (3 == n.tagNumber || 4 == n.tagNumber)) - try { - if (3 == n.tagNumber) - if (0 != r.get()) - throw new Error( - 'BIT STRINGs with unused bits cannot encapsulate.' - ) - u = c(); - for (var l = 0; l < u.length; ++l) - if (u[l].tag.isEOC()) - throw new Error('EOC is not supposed to be actual content.') - } catch (t) { - u = null; - } - if (null === u) { - if (null === s) - throw new Error( - "We can't skip over an invalid tag with undefined length at offset " + - a - ) - r.pos = a + Math.abs(s); - } - return new t(i, o, s, n, u) - }; - return t - })(); - var I = (function () { - function t(t) { - var e = t.get(); - this.tagClass = e >> 6; - this.tagConstructed = 0 !== (32 & e); - this.tagNumber = 31 & e; - if (31 == this.tagNumber) { - var r = new E(); - do { - e = t.get(); - r.mulAdd(128, 127 & e); - } while (128 & e) - this.tagNumber = r.simplify(); - } - } - t.prototype.isUniversal = function () { - return 0 === this.tagClass - }; - t.prototype.isEOC = function () { - return 0 === this.tagClass && 0 === this.tagNumber - }; - return t - })(); - var R; - var x = 0xdeadbeefcafe; - var B = 15715070 == (16777215 & x); - var C = [ - 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, - 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, - 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, - 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, - 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, - 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, - 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, - 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, - 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, - 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, - 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, - 941, 947, 953, 967, 971, 977, 983, 991, 997, - ]; - var O = (1 << 26) / C[C.length - 1]; - var k = (function () { - function t(t, e, r) { - if (null != t) - if ('number' == typeof t) this.fromNumber(t, e, r); - else if (null == e && 'string' != typeof t) - this.fromString(t, 256); - else this.fromString(t, e); - } - t.prototype.toString = function (t) { - if (this.s < 0) return '-' + this.negate().toString(t) - var e; - if (16 == t) e = 4; - else if (8 == t) e = 3; - else if (2 == t) e = 1; - else if (32 == t) e = 5; - else if (4 == t) e = 2; - else return this.toRadix(t) - var r = (1 << e) - 1; - var i; - var s = false; - var a = ''; - var o = this.t; - var u = this.DB - ((o * this.DB) % e); - if (o-- > 0) { - if (u < this.DB && (i = this[o] >> u) > 0) { - s = true; - a = n(i); - } - while (o >= 0) { - if (u < e) { - i = (this[o] & ((1 << u) - 1)) << (e - u); - i |= this[--o] >> (u += this.DB - e); - } else { - i = (this[o] >> (u -= e)) & r; - if (u <= 0) { - u += this.DB; - --o; - } - } - if (i > 0) s = true; - if (s) a += n(i); - } - } - return s ? a : '0' - }; - t.prototype.negate = function () { - var e = L(); - t.ZERO.subTo(this, e); - return e - }; - t.prototype.abs = function () { - return this.s < 0 ? this.negate() : this - }; - t.prototype.compareTo = function (t) { - var e = this.s - t.s; - if (0 != e) return e - var r = this.t; - e = r - t.t; - if (0 != e) return this.s < 0 ? -e : e - while (--r >= 0) if (0 != (e = this[r] - t[r])) return e - return 0 - }; - t.prototype.bitLength = function () { - if (this.t <= 0) return 0 - return ( - this.DB * (this.t - 1) + W(this[this.t - 1] ^ (this.s & this.DM)) - ) - }; - t.prototype.mod = function (e) { - var r = L(); - this.abs().divRemTo(e, null, r); - if (this.s < 0 && r.compareTo(t.ZERO) > 0) e.subTo(r, r); - return r - }; - t.prototype.modPowInt = function (t, e) { - var r; - if (t < 256 || e.isEven()) r = new N(e); - else r = new V(e); - return this.exp(t, r) - }; - t.prototype.clone = function () { - var t = L(); - this.copyTo(t); - return t - }; - t.prototype.intValue = function () { - if (this.s < 0) { - if (1 == this.t) return this[0] - this.DV - else if (0 == this.t) return -1 - } else if (1 == this.t) return this[0] - else if (0 == this.t) return 0 - return ( - ((this[1] & ((1 << (32 - this.DB)) - 1)) << this.DB) | this[0] - ) - }; - t.prototype.byteValue = function () { - return 0 == this.t ? this.s : (this[0] << 24) >> 24 - }; - t.prototype.shortValue = function () { - return 0 == this.t ? this.s : (this[0] << 16) >> 16 - }; - t.prototype.signum = function () { - if (this.s < 0) return -1 - else if (this.t <= 0 || (1 == this.t && this[0] <= 0)) return 0 - else return 1 - }; - t.prototype.toByteArray = function () { - var t = this.t; - var e = []; - e[0] = this.s; - var r = this.DB - ((t * this.DB) % 8); - var i; - var n = 0; - if (t-- > 0) { - if (r < this.DB && (i = this[t] >> r) != (this.s & this.DM) >> r) - e[n++] = i | (this.s << (this.DB - r)); - while (t >= 0) { - if (r < 8) { - i = (this[t] & ((1 << r) - 1)) << (8 - r); - i |= this[--t] >> (r += this.DB - 8); - } else { - i = (this[t] >> (r -= 8)) & 255; - if (r <= 0) { - r += this.DB; - --t; - } - } - if (0 != (128 & i)) i |= -256; - if (0 == n && (128 & this.s) != (128 & i)) ++n; - if (n > 0 || i != this.s) e[n++] = i; - } - } - return e - }; - t.prototype.equals = function (t) { - return 0 == this.compareTo(t) - }; - t.prototype.min = function (t) { - return this.compareTo(t) < 0 ? this : t - }; - t.prototype.max = function (t) { - return this.compareTo(t) > 0 ? this : t - }; - t.prototype.and = function (t) { - var e = L(); - this.bitwiseTo(t, s, e); - return e - }; - t.prototype.or = function (t) { - var e = L(); - this.bitwiseTo(t, a, e); - return e - }; - t.prototype.xor = function (t) { - var e = L(); - this.bitwiseTo(t, o, e); - return e - }; - t.prototype.andNot = function (t) { - var e = L(); - this.bitwiseTo(t, u, e); - return e - }; - t.prototype.not = function () { - var t = L(); - for (var e = 0; e < this.t; ++e) t[e] = this.DM & ~this[e]; - t.t = this.t; - t.s = ~this.s; - return t - }; - t.prototype.shiftLeft = function (t) { - var e = L(); - if (t < 0) this.rShiftTo(-t, e); - else this.lShiftTo(t, e); - return e - }; - t.prototype.shiftRight = function (t) { - var e = L(); - if (t < 0) this.lShiftTo(-t, e); - else this.rShiftTo(t, e); - return e - }; - t.prototype.getLowestSetBit = function () { - for (var t = 0; t < this.t; ++t) - if (0 != this[t]) return t * this.DB + c(this[t]) - if (this.s < 0) return this.t * this.DB - return -1 - }; - t.prototype.bitCount = function () { - var t = 0; - var e = this.s & this.DM; - for (var r = 0; r < this.t; ++r) t += l(this[r] ^ e); - return t - }; - t.prototype.testBit = function (t) { - var e = Math.floor(t / this.DB); - if (e >= this.t) return 0 != this.s - return 0 != (this[e] & (1 << t % this.DB)) - }; - t.prototype.setBit = function (t) { - return this.changeBit(t, a) - }; - t.prototype.clearBit = function (t) { - return this.changeBit(t, u) - }; - t.prototype.flipBit = function (t) { - return this.changeBit(t, o) - }; - t.prototype.add = function (t) { - var e = L(); - this.addTo(t, e); - return e - }; - t.prototype.subtract = function (t) { - var e = L(); - this.subTo(t, e); - return e - }; - t.prototype.multiply = function (t) { - var e = L(); - this.multiplyTo(t, e); - return e - }; - t.prototype.divide = function (t) { - var e = L(); - this.divRemTo(t, e, null); - return e - }; - t.prototype.remainder = function (t) { - var e = L(); - this.divRemTo(t, null, e); - return e - }; - t.prototype.divideAndRemainder = function (t) { - var e = L(); - var r = L(); - this.divRemTo(t, e, r); - return [e, r] - }; - t.prototype.modPow = function (t, e) { - var r = t.bitLength(); - var i; - var n = Y(1); - var s; - if (r <= 0) return n - else if (r < 18) i = 1; - else if (r < 48) i = 3; - else if (r < 144) i = 4; - else if (r < 768) i = 5; - else i = 6; - if (r < 8) s = new N(e); - else if (e.isEven()) s = new H(e); - else s = new V(e); - var a = []; - var o = 3; - var u = i - 1; - var c = (1 << i) - 1; - a[1] = s.convert(this); - if (i > 1) { - var l = L(); - s.sqrTo(a[1], l); - while (o <= c) { - a[o] = L(); - s.mulTo(l, a[o - 2], a[o]); - o += 2; - } - } - var f = t.t - 1; - var h; - var d = true; - var v = L(); - var p; - r = W(t[f]) - 1; - while (f >= 0) { - if (r >= u) h = (t[f] >> (r - u)) & c; - else { - h = (t[f] & ((1 << (r + 1)) - 1)) << (u - r); - if (f > 0) h |= t[f - 1] >> (this.DB + r - u); - } - o = i; - while (0 == (1 & h)) { - h >>= 1; - --o; - } - if ((r -= o) < 0) { - r += this.DB; - --f; - } - if (d) { - a[h].copyTo(n); - d = false; - } else { - while (o > 1) { - s.sqrTo(n, v); - s.sqrTo(v, n); - o -= 2; - } - if (o > 0) s.sqrTo(n, v); - else { - p = n; - n = v; - v = p; - } - s.mulTo(v, a[h], n); - } - while (f >= 0 && 0 == (t[f] & (1 << r))) { - s.sqrTo(n, v); - p = n; - n = v; - v = p; - if (--r < 0) { - r = this.DB - 1; - --f; - } - } - } - return s.revert(n) - }; - t.prototype.modInverse = function (e) { - var r = e.isEven(); - if ((this.isEven() && r) || 0 == e.signum()) return t.ZERO - var i = e.clone(); - var n = this.clone(); - var s = Y(1); - var a = Y(0); - var o = Y(0); - var u = Y(1); - while (0 != i.signum()) { - while (i.isEven()) { - i.rShiftTo(1, i); - if (r) { - if (!s.isEven() || !a.isEven()) { - s.addTo(this, s); - a.subTo(e, a); - } - s.rShiftTo(1, s); - } else if (!a.isEven()) a.subTo(e, a); - a.rShiftTo(1, a); - } - while (n.isEven()) { - n.rShiftTo(1, n); - if (r) { - if (!o.isEven() || !u.isEven()) { - o.addTo(this, o); - u.subTo(e, u); - } - o.rShiftTo(1, o); - } else if (!u.isEven()) u.subTo(e, u); - u.rShiftTo(1, u); - } - if (i.compareTo(n) >= 0) { - i.subTo(n, i); - if (r) s.subTo(o, s); - a.subTo(u, a); - } else { - n.subTo(i, n); - if (r) o.subTo(s, o); - u.subTo(a, u); - } - } - if (0 != n.compareTo(t.ONE)) return t.ZERO - if (u.compareTo(e) >= 0) return u.subtract(e) - if (u.signum() < 0) u.addTo(e, u); - else return u - if (u.signum() < 0) return u.add(e) - else return u - }; - t.prototype.pow = function (t) { - return this.exp(t, new P()) - }; - t.prototype.gcd = function (t) { - var e = this.s < 0 ? this.negate() : this.clone(); - var r = t.s < 0 ? t.negate() : t.clone(); - if (e.compareTo(r) < 0) { - var i = e; - e = r; - r = i; - } - var n = e.getLowestSetBit(); - var s = r.getLowestSetBit(); - if (s < 0) return e - if (n < s) s = n; - if (s > 0) { - e.rShiftTo(s, e); - r.rShiftTo(s, r); - } - while (e.signum() > 0) { - if ((n = e.getLowestSetBit()) > 0) e.rShiftTo(n, e); - if ((n = r.getLowestSetBit()) > 0) r.rShiftTo(n, r); - if (e.compareTo(r) >= 0) { - e.subTo(r, e); - e.rShiftTo(1, e); - } else { - r.subTo(e, r); - r.rShiftTo(1, r); - } - } - if (s > 0) r.lShiftTo(s, r); - return r - }; - t.prototype.isProbablePrime = function (t) { - var e; - var r = this.abs(); - if (1 == r.t && r[0] <= C[C.length - 1]) { - for (e = 0; e < C.length; ++e) if (r[0] == C[e]) return true - return false - } - if (r.isEven()) return false - e = 1; - while (e < C.length) { - var i = C[e]; - var n = e + 1; - while (n < C.length && i < O) i *= C[n++]; - i = r.modInt(i); - while (e < n) if (i % C[e++] == 0) return false - } - return r.millerRabin(t) - }; - t.prototype.copyTo = function (t) { - for (var e = this.t - 1; e >= 0; --e) t[e] = this[e]; - t.t = this.t; - t.s = this.s; - }; - t.prototype.fromInt = function (t) { - this.t = 1; - this.s = t < 0 ? -1 : 0; - if (t > 0) this[0] = t; - else if (t < -1) this[0] = t + this.DV; - else this.t = 0; - }; - t.prototype.fromString = function (e, r) { - var i; - if (16 == r) i = 4; - else if (8 == r) i = 3; - else if (256 == r) i = 8; - else if (2 == r) i = 1; - else if (32 == r) i = 5; - else if (4 == r) i = 2; - else { - this.fromRadix(e, r); - return - } - this.t = 0; - this.s = 0; - var n = e.length; - var s = false; - var a = 0; - while (--n >= 0) { - var o = 8 == i ? 255 & +e[n] : G(e, n); - if (o < 0) { - if ('-' == e.charAt(n)) s = true; - continue - } - s = false; - if (0 == a) this[this.t++] = o; - else if (a + i > this.DB) { - this[this.t - 1] |= (o & ((1 << (this.DB - a)) - 1)) << a; - this[this.t++] = o >> (this.DB - a); - } else this[this.t - 1] |= o << a; - a += i; - if (a >= this.DB) a -= this.DB; - } - if (8 == i && 0 != (128 & +e[0])) { - this.s = -1; - if (a > 0) this[this.t - 1] |= ((1 << (this.DB - a)) - 1) << a; - } - this.clamp(); - if (s) t.ZERO.subTo(this, this); - }; - t.prototype.clamp = function () { - var t = this.s & this.DM; - while (this.t > 0 && this[this.t - 1] == t) --this.t; - }; - t.prototype.dlShiftTo = function (t, e) { - var r; - for (r = this.t - 1; r >= 0; --r) e[r + t] = this[r]; - for (r = t - 1; r >= 0; --r) e[r] = 0; - e.t = this.t + t; - e.s = this.s; - }; - t.prototype.drShiftTo = function (t, e) { - for (var r = t; r < this.t; ++r) e[r - t] = this[r]; - e.t = Math.max(this.t - t, 0); - e.s = this.s; - }; - t.prototype.lShiftTo = function (t, e) { - var r = t % this.DB; - var i = this.DB - r; - var n = (1 << i) - 1; - var s = Math.floor(t / this.DB); - var a = (this.s << r) & this.DM; - for (var o = this.t - 1; o >= 0; --o) { - e[o + s + 1] = (this[o] >> i) | a; - a = (this[o] & n) << r; - } - for (var o = s - 1; o >= 0; --o) e[o] = 0; - e[s] = a; - e.t = this.t + s + 1; - e.s = this.s; - e.clamp(); - }; - t.prototype.rShiftTo = function (t, e) { - e.s = this.s; - var r = Math.floor(t / this.DB); - if (r >= this.t) { - e.t = 0; - return - } - var i = t % this.DB; - var n = this.DB - i; - var s = (1 << i) - 1; - e[0] = this[r] >> i; - for (var a = r + 1; a < this.t; ++a) { - e[a - r - 1] |= (this[a] & s) << n; - e[a - r] = this[a] >> i; - } - if (i > 0) e[this.t - r - 1] |= (this.s & s) << n; - e.t = this.t - r; - e.clamp(); - }; - t.prototype.subTo = function (t, e) { - var r = 0; - var i = 0; - var n = Math.min(t.t, this.t); - while (r < n) { - i += this[r] - t[r]; - e[r++] = i & this.DM; - i >>= this.DB; - } - if (t.t < this.t) { - i -= t.s; - while (r < this.t) { - i += this[r]; - e[r++] = i & this.DM; - i >>= this.DB; - } - i += this.s; - } else { - i += this.s; - while (r < t.t) { - i -= t[r]; - e[r++] = i & this.DM; - i >>= this.DB; - } - i -= t.s; - } - e.s = i < 0 ? -1 : 0; - if (i < -1) e[r++] = this.DV + i; - else if (i > 0) e[r++] = i; - e.t = r; - e.clamp(); - }; - t.prototype.multiplyTo = function (e, r) { - var i = this.abs(); - var n = e.abs(); - var s = i.t; - r.t = s + n.t; - while (--s >= 0) r[s] = 0; - for (s = 0; s < n.t; ++s) r[s + i.t] = i.am(0, n[s], r, s, 0, i.t); - r.s = 0; - r.clamp(); - if (this.s != e.s) t.ZERO.subTo(r, r); - }; - t.prototype.squareTo = function (t) { - var e = this.abs(); - var r = (t.t = 2 * e.t); - while (--r >= 0) t[r] = 0; - for (r = 0; r < e.t - 1; ++r) { - var i = e.am(r, e[r], t, 2 * r, 0, 1); - if ( - (t[r + e.t] += e.am( - r + 1, - 2 * e[r], - t, - 2 * r + 1, - i, - e.t - r - 1 - )) >= e.DV - ) { - t[r + e.t] -= e.DV; - t[r + e.t + 1] = 1; - } - } - if (t.t > 0) t[t.t - 1] += e.am(r, e[r], t, 2 * r, 0, 1); - t.s = 0; - t.clamp(); - }; - t.prototype.divRemTo = function (e, r, i) { - var n = e.abs(); - if (n.t <= 0) return - var s = this.abs(); - if (s.t < n.t) { - if (null != r) r.fromInt(0); - if (null != i) this.copyTo(i); - return - } - if (null == i) i = L(); - var a = L(); - var o = this.s; - var u = e.s; - var c = this.DB - W(n[n.t - 1]); - if (c > 0) { - n.lShiftTo(c, a); - s.lShiftTo(c, i); - } else { - n.copyTo(a); - s.copyTo(i); - } - var l = a.t; - var f = a[l - 1]; - if (0 == f) return - var h = f * (1 << this.F1) + (l > 1 ? a[l - 2] >> this.F2 : 0); - var d = this.FV / h; - var v = (1 << this.F1) / h; - var p = 1 << this.F2; - var g = i.t; - var y = g - l; - var m = null == r ? L() : r; - a.dlShiftTo(y, m); - if (i.compareTo(m) >= 0) { - i[i.t++] = 1; - i.subTo(m, i); - } - t.ONE.dlShiftTo(l, m); - m.subTo(a, a); - while (a.t < l) a[a.t++] = 0; - while (--y >= 0) { - var _ = - i[--g] == f - ? this.DM - : Math.floor(i[g] * d + (i[g - 1] + p) * v); - if ((i[g] += a.am(0, _, i, y, 0, l)) < _) { - a.dlShiftTo(y, m); - i.subTo(m, i); - while (i[g] < --_) i.subTo(m, i); - } - } - if (null != r) { - i.drShiftTo(l, r); - if (o != u) t.ZERO.subTo(r, r); - } - i.t = l; - i.clamp(); - if (c > 0) i.rShiftTo(c, i); - if (o < 0) t.ZERO.subTo(i, i); - }; - t.prototype.invDigit = function () { - if (this.t < 1) return 0 - var t = this[0]; - if (0 == (1 & t)) return 0 - var e = 3 & t; - e = (e * (2 - (15 & t) * e)) & 15; - e = (e * (2 - (255 & t) * e)) & 255; - e = (e * (2 - (((65535 & t) * e) & 65535))) & 65535; - e = (e * (2 - ((t * e) % this.DV))) % this.DV; - return e > 0 ? this.DV - e : -e - }; - t.prototype.isEven = function () { - return 0 == (this.t > 0 ? 1 & this[0] : this.s) - }; - t.prototype.exp = function (e, r) { - if (e > 4294967295 || e < 1) return t.ONE - var i = L(); - var n = L(); - var s = r.convert(this); - var a = W(e) - 1; - s.copyTo(i); - while (--a >= 0) { - r.sqrTo(i, n); - if ((e & (1 << a)) > 0) r.mulTo(n, s, i); - else { - var o = i; - i = n; - n = o; - } - } - return r.revert(i) - }; - t.prototype.chunkSize = function (t) { - return Math.floor((Math.LN2 * this.DB) / Math.log(t)) - }; - t.prototype.toRadix = function (t) { - if (null == t) t = 10; - if (0 == this.signum() || t < 2 || t > 36) return '0' - var e = this.chunkSize(t); - var r = Math.pow(t, e); - var i = Y(r); - var n = L(); - var s = L(); - var a = ''; - this.divRemTo(i, n, s); - while (n.signum() > 0) { - a = (r + s.intValue()).toString(t).substr(1) + a; - n.divRemTo(i, n, s); - } - return s.intValue().toString(t) + a - }; - t.prototype.fromRadix = function (e, r) { - this.fromInt(0); - if (null == r) r = 10; - var i = this.chunkSize(r); - var n = Math.pow(r, i); - var s = false; - var a = 0; - var o = 0; - for (var u = 0; u < e.length; ++u) { - var c = G(e, u); - if (c < 0) { - if ('-' == e.charAt(u) && 0 == this.signum()) s = true; - continue - } - o = r * o + c; - if (++a >= i) { - this.dMultiply(n); - this.dAddOffset(o, 0); - a = 0; - o = 0; - } - } - if (a > 0) { - this.dMultiply(Math.pow(r, a)); - this.dAddOffset(o, 0); - } - if (s) t.ZERO.subTo(this, this); - }; - t.prototype.fromNumber = function (e, r, i) { - if ('number' == typeof r) - if (e < 2) this.fromInt(1); - else { - this.fromNumber(e, i); - if (!this.testBit(e - 1)) - this.bitwiseTo(t.ONE.shiftLeft(e - 1), a, this); - if (this.isEven()) this.dAddOffset(1, 0); - while (!this.isProbablePrime(r)) { - this.dAddOffset(2, 0); - if (this.bitLength() > e) - this.subTo(t.ONE.shiftLeft(e - 1), this); - } - } - else { - var n = []; - var s = 7 & e; - n.length = (e >> 3) + 1; - r.nextBytes(n); - if (s > 0) n[0] &= (1 << s) - 1; - else n[0] = 0; - this.fromString(n, 256); - } - }; - t.prototype.bitwiseTo = function (t, e, r) { - var i; - var n; - var s = Math.min(t.t, this.t); - for (i = 0; i < s; ++i) r[i] = e(this[i], t[i]); - if (t.t < this.t) { - n = t.s & this.DM; - for (i = s; i < this.t; ++i) r[i] = e(this[i], n); - r.t = this.t; - } else { - n = this.s & this.DM; - for (i = s; i < t.t; ++i) r[i] = e(n, t[i]); - r.t = t.t; - } - r.s = e(this.s, t.s); - r.clamp(); - }; - t.prototype.changeBit = function (e, r) { - var i = t.ONE.shiftLeft(e); - this.bitwiseTo(i, r, i); - return i - }; - t.prototype.addTo = function (t, e) { - var r = 0; - var i = 0; - var n = Math.min(t.t, this.t); - while (r < n) { - i += this[r] + t[r]; - e[r++] = i & this.DM; - i >>= this.DB; - } - if (t.t < this.t) { - i += t.s; - while (r < this.t) { - i += this[r]; - e[r++] = i & this.DM; - i >>= this.DB; - } - i += this.s; - } else { - i += this.s; - while (r < t.t) { - i += t[r]; - e[r++] = i & this.DM; - i >>= this.DB; - } - i += t.s; - } - e.s = i < 0 ? -1 : 0; - if (i > 0) e[r++] = i; - else if (i < -1) e[r++] = this.DV + i; - e.t = r; - e.clamp(); - }; - t.prototype.dMultiply = function (t) { - this[this.t] = this.am(0, t - 1, this, 0, 0, this.t); - ++this.t; - this.clamp(); - }; - t.prototype.dAddOffset = function (t, e) { - if (0 == t) return - while (this.t <= e) this[this.t++] = 0; - this[e] += t; - while (this[e] >= this.DV) { - this[e] -= this.DV; - if (++e >= this.t) this[this.t++] = 0; - ++this[e]; - } - }; - t.prototype.multiplyLowerTo = function (t, e, r) { - var i = Math.min(this.t + t.t, e); - r.s = 0; - r.t = i; - while (i > 0) r[--i] = 0; - for (var n = r.t - this.t; i < n; ++i) - r[i + this.t] = this.am(0, t[i], r, i, 0, this.t); - for (var n = Math.min(t.t, e); i < n; ++i) - this.am(0, t[i], r, i, 0, e - i); - r.clamp(); - }; - t.prototype.multiplyUpperTo = function (t, e, r) { - --e; - var i = (r.t = this.t + t.t - e); - r.s = 0; - while (--i >= 0) r[i] = 0; - for (i = Math.max(e - this.t, 0); i < t.t; ++i) - r[this.t + i - e] = this.am(e - i, t[i], r, 0, 0, this.t + i - e); - r.clamp(); - r.drShiftTo(1, r); - }; - t.prototype.modInt = function (t) { - if (t <= 0) return 0 - var e = this.DV % t; - var r = this.s < 0 ? t - 1 : 0; - if (this.t > 0) - if (0 == e) r = this[0] % t; - else - for (var i = this.t - 1; i >= 0; --i) r = (e * r + this[i]) % t; - return r - }; - t.prototype.millerRabin = function (e) { - var r = this.subtract(t.ONE); - var i = r.getLowestSetBit(); - if (i <= 0) return false - var n = r.shiftRight(i); - e = (e + 1) >> 1; - if (e > C.length) e = C.length; - var s = L(); - for (var a = 0; a < e; ++a) { - s.fromInt(C[Math.floor(Math.random() * C.length)]); - var o = s.modPow(n, this); - if (0 != o.compareTo(t.ONE) && 0 != o.compareTo(r)) { - var u = 1; - while (u++ < i && 0 != o.compareTo(r)) { - o = o.modPowInt(2, this); - if (0 == o.compareTo(t.ONE)) return false - } - if (0 != o.compareTo(r)) return false - } - } - return true - }; - t.prototype.square = function () { - var t = L(); - this.squareTo(t); - return t - }; - t.prototype.gcda = function (t, e) { - var r = this.s < 0 ? this.negate() : this.clone(); - var i = t.s < 0 ? t.negate() : t.clone(); - if (r.compareTo(i) < 0) { - var n = r; - r = i; - i = n; - } - var s = r.getLowestSetBit(); - var a = i.getLowestSetBit(); - if (a < 0) { - e(r); - return - } - if (s < a) a = s; - if (a > 0) { - r.rShiftTo(a, r); - i.rShiftTo(a, i); - } - var o = function () { - if ((s = r.getLowestSetBit()) > 0) r.rShiftTo(s, r); - if ((s = i.getLowestSetBit()) > 0) i.rShiftTo(s, i); - if (r.compareTo(i) >= 0) { - r.subTo(i, r); - r.rShiftTo(1, r); - } else { - i.subTo(r, i); - i.rShiftTo(1, i); - } - if (!(r.signum() > 0)) { - if (a > 0) i.lShiftTo(a, i); - setTimeout(function () { - e(i); - }, 0); - } else setTimeout(o, 0); - }; - setTimeout(o, 10); - }; - t.prototype.fromNumberAsync = function (e, r, i, n) { - if ('number' == typeof r) - if (e < 2) this.fromInt(1); - else { - this.fromNumber(e, i); - if (!this.testBit(e - 1)) - this.bitwiseTo(t.ONE.shiftLeft(e - 1), a, this); - if (this.isEven()) this.dAddOffset(1, 0); - var s = this; - var o = function () { - s.dAddOffset(2, 0); - if (s.bitLength() > e) s.subTo(t.ONE.shiftLeft(e - 1), s); - if (s.isProbablePrime(r)) - setTimeout(function () { - n(); - }, 0); - else setTimeout(o, 0); - }; - setTimeout(o, 0); - } - else { - var u = []; - var c = 7 & e; - u.length = (e >> 3) + 1; - r.nextBytes(u); - if (c > 0) u[0] &= (1 << c) - 1; - else u[0] = 0; - this.fromString(u, 256); - } - }; - return t - })(); - var P = (function () { - function t() {} - t.prototype.convert = function (t) { - return t - }; - t.prototype.revert = function (t) { - return t - }; - t.prototype.mulTo = function (t, e, r) { - t.multiplyTo(e, r); - }; - t.prototype.sqrTo = function (t, e) { - t.squareTo(e); - }; - return t - })(); - var N = (function () { - function t(t) { - this.m = t; - } - t.prototype.convert = function (t) { - if (t.s < 0 || t.compareTo(this.m) >= 0) return t.mod(this.m) - else return t - }; - t.prototype.revert = function (t) { - return t - }; - t.prototype.reduce = function (t) { - t.divRemTo(this.m, null, t); - }; - t.prototype.mulTo = function (t, e, r) { - t.multiplyTo(e, r); - this.reduce(r); - }; - t.prototype.sqrTo = function (t, e) { - t.squareTo(e); - this.reduce(e); - }; - return t - })(); - var V = (function () { - function t(t) { - this.m = t; - this.mp = t.invDigit(); - this.mpl = 32767 & this.mp; - this.mph = this.mp >> 15; - this.um = (1 << (t.DB - 15)) - 1; - this.mt2 = 2 * t.t; - } - t.prototype.convert = function (t) { - var e = L(); - t.abs().dlShiftTo(this.m.t, e); - e.divRemTo(this.m, null, e); - if (t.s < 0 && e.compareTo(k.ZERO) > 0) this.m.subTo(e, e); - return e - }; - t.prototype.revert = function (t) { - var e = L(); - t.copyTo(e); - this.reduce(e); - return e - }; - t.prototype.reduce = function (t) { - while (t.t <= this.mt2) t[t.t++] = 0; - for (var e = 0; e < this.m.t; ++e) { - var r = 32767 & t[e]; - var i = - (r * this.mpl + - (((r * this.mph + (t[e] >> 15) * this.mpl) & this.um) << - 15)) & - t.DM; - r = e + this.m.t; - t[r] += this.m.am(0, i, t, e, 0, this.m.t); - while (t[r] >= t.DV) { - t[r] -= t.DV; - t[++r]++; - } - } - t.clamp(); - t.drShiftTo(this.m.t, t); - if (t.compareTo(this.m) >= 0) t.subTo(this.m, t); - }; - t.prototype.mulTo = function (t, e, r) { - t.multiplyTo(e, r); - this.reduce(r); - }; - t.prototype.sqrTo = function (t, e) { - t.squareTo(e); - this.reduce(e); - }; - return t - })(); - var H = (function () { - function t(t) { - this.m = t; - this.r2 = L(); - this.q3 = L(); - k.ONE.dlShiftTo(2 * t.t, this.r2); - this.mu = this.r2.divide(t); - } - t.prototype.convert = function (t) { - if (t.s < 0 || t.t > 2 * this.m.t) return t.mod(this.m) - else if (t.compareTo(this.m) < 0) return t - else { - var e = L(); - t.copyTo(e); - this.reduce(e); - return e - } - }; - t.prototype.revert = function (t) { - return t - }; - t.prototype.reduce = function (t) { - t.drShiftTo(this.m.t - 1, this.r2); - if (t.t > this.m.t + 1) { - t.t = this.m.t + 1; - t.clamp(); - } - this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3); - this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); - while (t.compareTo(this.r2) < 0) t.dAddOffset(1, this.m.t + 1); - t.subTo(this.r2, t); - while (t.compareTo(this.m) >= 0) t.subTo(this.m, t); - }; - t.prototype.mulTo = function (t, e, r) { - t.multiplyTo(e, r); - this.reduce(r); - }; - t.prototype.sqrTo = function (t, e) { - t.squareTo(e); - this.reduce(e); - }; - return t - })(); - function L() { - return new k(null) - } - function K(t, e) { - return new k(t, e) - } - var U = 'undefined' !== typeof navigator; - if (U && B && 'Microsoft Internet Explorer' == navigator.appName) { - k.prototype.am = function t(e, r, i, n, s, a) { - var o = 32767 & r; - var u = r >> 15; - while (--a >= 0) { - var c = 32767 & this[e]; - var l = this[e++] >> 15; - var f = u * c + l * o; - c = o * c + ((32767 & f) << 15) + i[n] + (1073741823 & s); - s = (c >>> 30) + (f >>> 15) + u * l + (s >>> 30); - i[n++] = 1073741823 & c; - } - return s - }; - R = 30; - } else if (U && B && 'Netscape' != navigator.appName) { - k.prototype.am = function t(e, r, i, n, s, a) { - while (--a >= 0) { - var o = r * this[e++] + i[n] + s; - s = Math.floor(o / 67108864); - i[n++] = 67108863 & o; - } - return s - }; - R = 26; - } else { - k.prototype.am = function t(e, r, i, n, s, a) { - var o = 16383 & r; - var u = r >> 14; - while (--a >= 0) { - var c = 16383 & this[e]; - var l = this[e++] >> 14; - var f = u * c + l * o; - c = o * c + ((16383 & f) << 14) + i[n] + s; - s = (c >> 28) + (f >> 14) + u * l; - i[n++] = 268435455 & c; - } - return s - }; - R = 28; - } - k.prototype.DB = R; - k.prototype.DM = (1 << R) - 1; - k.prototype.DV = 1 << R; - var j = 52; - k.prototype.FV = Math.pow(2, j); - k.prototype.F1 = j - R; - k.prototype.F2 = 2 * R - j; - var F = []; - var z; - var q; - z = '0'.charCodeAt(0); - for (q = 0; q <= 9; ++q) F[z++] = q; - z = 'a'.charCodeAt(0); - for (q = 10; q < 36; ++q) F[z++] = q; - z = 'A'.charCodeAt(0); - for (q = 10; q < 36; ++q) F[z++] = q; - function G(t, e) { - var r = F[t.charCodeAt(e)]; - return null == r ? -1 : r - } - function Y(t) { - var e = L(); - e.fromInt(t); - return e - } - function W(t) { - var e = 1; - var r; - if (0 != (r = t >>> 16)) { - t = r; - e += 16; - } - if (0 != (r = t >> 8)) { - t = r; - e += 8; - } - if (0 != (r = t >> 4)) { - t = r; - e += 4; - } - if (0 != (r = t >> 2)) { - t = r; - e += 2; - } - if (0 != (r = t >> 1)) { - t = r; - e += 1; - } - return e - } - k.ZERO = Y(0); - k.ONE = Y(1); - var J = (function () { - function t() { - this.i = 0; - this.j = 0; - this.S = []; - } - t.prototype.init = function (t) { - var e; - var r; - var i; - for (e = 0; e < 256; ++e) this.S[e] = e; - r = 0; - for (e = 0; e < 256; ++e) { - r = (r + this.S[e] + t[e % t.length]) & 255; - i = this.S[e]; - this.S[e] = this.S[r]; - this.S[r] = i; - } - this.i = 0; - this.j = 0; - }; - t.prototype.next = function () { - var t; - this.i = (this.i + 1) & 255; - this.j = (this.j + this.S[this.i]) & 255; - t = this.S[this.i]; - this.S[this.i] = this.S[this.j]; - this.S[this.j] = t; - return this.S[(t + this.S[this.i]) & 255] - }; - return t - })(); - function $() { - return new J() - } - var Z = 256; - var X; - var Q = null; - var tt; - if (null == Q) { - Q = []; - tt = 0; - } - function nt() { - if (null == X) { - X = $(); - while (tt < Z) { - var t = Math.floor(65536 * Math.random()); - Q[tt++] = 255 & t; - } - X.init(Q); - for (tt = 0; tt < Q.length; ++tt) Q[tt] = 0; - tt = 0; - } - return X.next() - } - var st = (function () { - function t() {} - t.prototype.nextBytes = function (t) { - for (var e = 0; e < t.length; ++e) t[e] = nt(); - }; - return t - })(); - function at(t, e) { - if (e < t.length + 22) { - console.error('Message too long for RSA'); - return null - } - var r = e - t.length - 6; - var i = ''; - for (var n = 0; n < r; n += 2) i += 'ff'; - var s = '0001' + i + '00' + t; - return K(s, 16) - } - function ot(t, e) { - if (e < t.length + 11) { - console.error('Message too long for RSA'); - return null - } - var r = []; - var i = t.length - 1; - while (i >= 0 && e > 0) { - var n = t.charCodeAt(i--); - if (n < 128) r[--e] = n; - else if (n > 127 && n < 2048) { - r[--e] = (63 & n) | 128; - r[--e] = (n >> 6) | 192; - } else { - r[--e] = (63 & n) | 128; - r[--e] = ((n >> 6) & 63) | 128; - r[--e] = (n >> 12) | 224; - } - } - r[--e] = 0; - var s = new st(); - var a = []; - while (e > 2) { - a[0] = 0; - while (0 == a[0]) s.nextBytes(a); - r[--e] = a[0]; - } - r[--e] = 2; - r[--e] = 0; - return new k(r) - } - var ut = (function () { - function t() { - this.n = null; - this.e = 0; - this.d = null; - this.p = null; - this.q = null; - this.dmp1 = null; - this.dmq1 = null; - this.coeff = null; - } - t.prototype.doPublic = function (t) { - return t.modPowInt(this.e, this.n) - }; - t.prototype.doPrivate = function (t) { - if (null == this.p || null == this.q) - return t.modPow(this.d, this.n) - var e = t.mod(this.p).modPow(this.dmp1, this.p); - var r = t.mod(this.q).modPow(this.dmq1, this.q); - while (e.compareTo(r) < 0) e = e.add(this.p); - return e - .subtract(r) - .multiply(this.coeff) - .mod(this.p) - .multiply(this.q) - .add(r) - }; - t.prototype.setPublic = function (t, e) { - if (null != t && null != e && t.length > 0 && e.length > 0) { - this.n = K(t, 16); - this.e = parseInt(e, 16); - } else console.error('Invalid RSA public key'); - }; - t.prototype.encrypt = function (t) { - var e = (this.n.bitLength() + 7) >> 3; - var r = ot(t, e); - if (null == r) return null - var i = this.doPublic(r); - if (null == i) return null - var n = i.toString(16); - var s = n.length; - for (var a = 0; a < 2 * e - s; a++) n = '0' + n; - return n - }; - t.prototype.setPrivate = function (t, e, r) { - if (null != t && null != e && t.length > 0 && e.length > 0) { - this.n = K(t, 16); - this.e = parseInt(e, 16); - this.d = K(r, 16); - } else console.error('Invalid RSA private key'); - }; - t.prototype.setPrivateEx = function (t, e, r, i, n, s, a, o) { - if (null != t && null != e && t.length > 0 && e.length > 0) { - this.n = K(t, 16); - this.e = parseInt(e, 16); - this.d = K(r, 16); - this.p = K(i, 16); - this.q = K(n, 16); - this.dmp1 = K(s, 16); - this.dmq1 = K(a, 16); - this.coeff = K(o, 16); - } else console.error('Invalid RSA private key'); - }; - t.prototype.generate = function (t, e) { - var r = new st(); - var i = t >> 1; - this.e = parseInt(e, 16); - var n = new k(e, 16); - for (;;) { - for (;;) { - this.p = new k(t - i, 1, r); - if ( - 0 == this.p.subtract(k.ONE).gcd(n).compareTo(k.ONE) && - this.p.isProbablePrime(10) - ) - break - } - for (;;) { - this.q = new k(i, 1, r); - if ( - 0 == this.q.subtract(k.ONE).gcd(n).compareTo(k.ONE) && - this.q.isProbablePrime(10) - ) - break - } - if (this.p.compareTo(this.q) <= 0) { - var s = this.p; - this.p = this.q; - this.q = s; - } - var a = this.p.subtract(k.ONE); - var o = this.q.subtract(k.ONE); - var u = a.multiply(o); - if (0 == u.gcd(n).compareTo(k.ONE)) { - this.n = this.p.multiply(this.q); - this.d = n.modInverse(u); - this.dmp1 = this.d.mod(a); - this.dmq1 = this.d.mod(o); - this.coeff = this.q.modInverse(this.p); - break - } - } - }; - t.prototype.decrypt = function (t) { - var e = K(t, 16); - var r = this.doPrivate(e); - if (null == r) return null - return ct(r, (this.n.bitLength() + 7) >> 3) - }; - t.prototype.generateAsync = function (t, e, r) { - var i = new st(); - var n = t >> 1; - this.e = parseInt(e, 16); - var s = new k(e, 16); - var a = this; - var o = function () { - var e = function () { - if (a.p.compareTo(a.q) <= 0) { - var t = a.p; - a.p = a.q; - a.q = t; - } - var e = a.p.subtract(k.ONE); - var i = a.q.subtract(k.ONE); - var n = e.multiply(i); - if (0 == n.gcd(s).compareTo(k.ONE)) { - a.n = a.p.multiply(a.q); - a.d = s.modInverse(n); - a.dmp1 = a.d.mod(e); - a.dmq1 = a.d.mod(i); - a.coeff = a.q.modInverse(a.p); - setTimeout(function () { - r(); - }, 0); - } else setTimeout(o, 0); - }; - var u = function () { - a.q = L(); - a.q.fromNumberAsync(n, 1, i, function () { - a.q.subtract(k.ONE).gcda(s, function (t) { - if (0 == t.compareTo(k.ONE) && a.q.isProbablePrime(10)) - setTimeout(e, 0); - else setTimeout(u, 0); - }); - }); - }; - var c = function () { - a.p = L(); - a.p.fromNumberAsync(t - n, 1, i, function () { - a.p.subtract(k.ONE).gcda(s, function (t) { - if (0 == t.compareTo(k.ONE) && a.p.isProbablePrime(10)) - setTimeout(u, 0); - else setTimeout(c, 0); - }); - }); - }; - setTimeout(c, 0); - }; - setTimeout(o, 0); - }; - t.prototype.sign = function (t, e, r) { - var i = ht(r); - var n = i + e(t).toString(); - var s = at(n, this.n.bitLength() / 4); - if (null == s) return null - var a = this.doPrivate(s); - if (null == a) return null - var o = a.toString(16); - if (0 == (1 & o.length)) return o - else return '0' + o - }; - t.prototype.verify = function (t, e, r) { - var i = K(e, 16); - var n = this.doPublic(i); - if (null == n) return null - var s = n.toString(16).replace(/^1f+00/, ''); - var a = dt(s); - return a == r(t).toString() - }; - t.prototype.encryptLong = function (t) { - var e = this; - var r = ''; - var i = ((this.n.bitLength() + 7) >> 3) - 11; - var n = this.setSplitChn(t, i); - n.forEach(function (t) { - r += e.encrypt(t); - }); - return r - }; - t.prototype.decryptLong = function (t) { - var e = ''; - var r = (this.n.bitLength() + 7) >> 3; - var i = 2 * r; - if (t.length > i) { - var n = t.match(new RegExp('.{1,' + i + '}', 'g')) || []; - var s = []; - for (var a = 0; a < n.length; a++) { - var o = K(n[a], 16); - var u = this.doPrivate(o); - if (null == u) return null - s.push(u); - } - e = lt(s, r); - } else e = this.decrypt(t); - return e - }; - t.prototype.setSplitChn = function (t, e, r) { - if (void 0 === r) r = []; - var i = t.split(''); - var n = 0; - for (var s = 0; s < i.length; s++) { - var a = i[s].charCodeAt(0); - if (a <= 127) n += 1; - else if (a <= 2047) n += 2; - else if (a <= 65535) n += 3; - else n += 4; - if (n > e) { - var o = t.substring(0, s); - r.push(o); - return this.setSplitChn(t.substring(s), e, r) - } - } - r.push(t); - return r - }; - return t - })(); - function ct(t, e) { - var r = t.toByteArray(); - var i = 0; - while (i < r.length && 0 == r[i]) ++i; - if (r.length - i != e - 1 || 2 != r[i]) return null - ++i; - while (0 != r[i]) if (++i >= r.length) return null - var n = ''; - while (++i < r.length) { - var s = 255 & r[i]; - if (s < 128) n += String.fromCharCode(s); - else if (s > 191 && s < 224) { - n += String.fromCharCode(((31 & s) << 6) | (63 & r[i + 1])); - ++i; - } else { - n += String.fromCharCode( - ((15 & s) << 12) | ((63 & r[i + 1]) << 6) | (63 & r[i + 2]) - ); - i += 2; - } - } - return n - } - function lt(t, e) { - var r = []; - for (var i = 0; i < t.length; i++) { - var n = t[i]; - var s = n.toByteArray(); - var a = 0; - while (a < s.length && 0 == s[a]) ++a; - if (s.length - a != e - 1 || 2 != s[a]) return null - ++a; - while (0 != s[a]) if (++a >= s.length) return null - r = r.concat(s.slice(a + 1)); - } - var o = r; - var u = -1; - var c = ''; - while (++u < o.length) { - var l = 255 & o[u]; - if (l < 128) c += String.fromCharCode(l); - else if (l > 191 && l < 224) { - c += String.fromCharCode(((31 & l) << 6) | (63 & o[u + 1])); - ++u; - } else { - c += String.fromCharCode( - ((15 & l) << 12) | ((63 & o[u + 1]) << 6) | (63 & o[u + 2]) - ); - u += 2; - } - } - return c - } - var ft = { - md2: '3020300c06082a864886f70d020205000410', - md5: '3020300c06082a864886f70d020505000410', - sha1: '3021300906052b0e03021a05000414', - sha224: '302d300d06096086480165030402040500041c', - sha256: '3031300d060960864801650304020105000420', - sha384: '3041300d060960864801650304020205000430', - sha512: '3051300d060960864801650304020305000440', - ripemd160: '3021300906052b2403020105000414', - }; - function ht(t) { - return ft[t] || '' - } - function dt(t) { - for (var e in ft) - if (ft.hasOwnProperty(e)) { - var r = ft[e]; - var i = r.length; - if (t.substr(0, i) == r) return t.substr(i) - } - return t - } - var vt = {}; - vt.lang = { - extend: function (t, e, r) { - if (!e || !t) - throw new Error( - 'YAHOO.lang.extend failed, please check that ' + - 'all dependencies are included.' - ) - var i = function () {}; - i.prototype = e.prototype; - t.prototype = new i(); - t.prototype.constructor = t; - t.superclass = e.prototype; - if (e.prototype.constructor == Object.prototype.constructor) - e.prototype.constructor = e; - if (r) { - var n; - for (n in r) t.prototype[n] = r[n]; - var s = function () {}, - a = ['toString', 'valueOf']; - try { - if (/MSIE/.test(navigator.userAgent)) - s = function (t, e) { - for (n = 0; n < a.length; n += 1) { - var r = a[n], - i = e[r]; - if ('function' === typeof i && i != Object.prototype[r]) - t[r] = i; - } - }; - } catch (t) {} - s(t.prototype, r); - } - }, - }; - var pt = {}; - if ('undefined' == typeof pt.asn1 || !pt.asn1) pt.asn1 = {}; - pt.asn1.ASN1Util = new (function () { - this.integerToByteHex = function (t) { - var e = t.toString(16); - if (e.length % 2 == 1) e = '0' + e; - return e - }; - this.bigIntToMinTwosComplementsHex = function (t) { - var e = t.toString(16); - if ('-' != e.substr(0, 1)) { - if (e.length % 2 == 1) e = '0' + e; - else if (!e.match(/^[0-7]/)) e = '00' + e; - } else { - var r = e.substr(1); - var i = r.length; - if (i % 2 == 1) i += 1; - else if (!e.match(/^[0-7]/)) i += 2; - var n = ''; - for (var s = 0; s < i; s++) n += 'f'; - var a = new k(n, 16); - var o = a.xor(t).add(k.ONE); - e = o.toString(16).replace(/^-/, ''); - } - return e - }; - this.getPEMStringFromHex = function (t, e) { - return hextopem(t, e) - }; - this.newObject = function (t) { - var e = pt, - r = e.asn1, - i = r.DERBoolean, - n = r.DERInteger, - s = r.DERBitString, - a = r.DEROctetString, - o = r.DERNull, - u = r.DERObjectIdentifier, - c = r.DEREnumerated, - l = r.DERUTF8String, - f = r.DERNumericString, - h = r.DERPrintableString, - d = r.DERTeletexString, - v = r.DERIA5String, - p = r.DERUTCTime, - g = r.DERGeneralizedTime, - y = r.DERSequence, - m = r.DERSet, - _ = r.DERTaggedObject, - S = r.ASN1Util.newObject; - var E = Object.keys(t); - if (1 != E.length) throw 'key of param shall be only one.' - var b = E[0]; - if ( - -1 == - ':bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:'.indexOf( - ':' + b + ':' - ) - ) - throw 'undefined key: ' + b - if ('bool' == b) return new i(t[b]) - if ('int' == b) return new n(t[b]) - if ('bitstr' == b) return new s(t[b]) - if ('octstr' == b) return new a(t[b]) - if ('null' == b) return new o(t[b]) - if ('oid' == b) return new u(t[b]) - if ('enum' == b) return new c(t[b]) - if ('utf8str' == b) return new l(t[b]) - if ('numstr' == b) return new f(t[b]) - if ('prnstr' == b) return new h(t[b]) - if ('telstr' == b) return new d(t[b]) - if ('ia5str' == b) return new v(t[b]) - if ('utctime' == b) return new p(t[b]) - if ('gentime' == b) return new g(t[b]) - if ('seq' == b) { - var w = t[b]; - var D = []; - for (var T = 0; T < w.length; T++) { - var A = S(w[T]); - D.push(A); - } - return new y({ array: D }) - } - if ('set' == b) { - var w = t[b]; - var D = []; - for (var T = 0; T < w.length; T++) { - var A = S(w[T]); - D.push(A); - } - return new m({ array: D }) - } - if ('tag' == b) { - var M = t[b]; - if ( - '[object Array]' === Object.prototype.toString.call(M) && - 3 == M.length - ) { - var I = S(M[2]); - return new _({ tag: M[0], explicit: M[1], obj: I }) - } else { - var R = {}; - if (void 0 !== M.explicit) R.explicit = M.explicit; - if (void 0 !== M.tag) R.tag = M.tag; - if (void 0 === M.obj) throw "obj shall be specified for 'tag'." - R.obj = S(M.obj); - return new _(R) - } - } - }; - this.jsonToASN1HEX = function (t) { - var e = this.newObject(t); - return e.getEncodedHex() - }; - })(); - pt.asn1.ASN1Util.oidHexToInt = function (t) { - var e = ''; - var r = parseInt(t.substr(0, 2), 16); - var i = Math.floor(r / 40); - var n = r % 40; - var e = i + '.' + n; - var s = ''; - for (var a = 2; a < t.length; a += 2) { - var o = parseInt(t.substr(a, 2), 16); - var u = ('00000000' + o.toString(2)).slice(-8); - s += u.substr(1, 7); - if ('0' == u.substr(0, 1)) { - var c = new k(s, 2); - e = e + '.' + c.toString(10); - s = ''; - } - } - return e - }; - pt.asn1.ASN1Util.oidIntToHex = function (t) { - var e = function (t) { - var e = t.toString(16); - if (1 == e.length) e = '0' + e; - return e - }; - var r = function (t) { - var r = ''; - var i = new k(t, 10); - var n = i.toString(2); - var s = 7 - (n.length % 7); - if (7 == s) s = 0; - var a = ''; - for (var o = 0; o < s; o++) a += '0'; - n = a + n; - for (var o = 0; o < n.length - 1; o += 7) { - var u = n.substr(o, 7); - if (o != n.length - 7) u = '1' + u; - r += e(parseInt(u, 2)); - } - return r - }; - if (!t.match(/^[0-9.]+$/)) throw 'malformed oid string: ' + t - var i = ''; - var n = t.split('.'); - var s = 40 * parseInt(n[0]) + parseInt(n[1]); - i += e(s); - n.splice(0, 2); - for (var a = 0; a < n.length; a++) i += r(n[a]); - return i - }; - pt.asn1.ASN1Object = function () { - var n = ''; - this.getLengthHexFromValue = function () { - if ('undefined' == typeof this.hV || null == this.hV) - throw 'this.hV is null or undefined.' - if (this.hV.length % 2 == 1) - throw ( - 'value hex must be even length: n=' + n.length + ',v=' + this.hV - ) - var t = this.hV.length / 2; - var e = t.toString(16); - if (e.length % 2 == 1) e = '0' + e; - if (t < 128) return e - else { - var r = e.length / 2; - if (r > 15) - throw ( - 'ASN.1 length too long to represent by 8x: n = ' + - t.toString(16) - ) - var i = 128 + r; - return i.toString(16) + e - } - }; - this.getEncodedHex = function () { - if (null == this.hTLV || this.isModified) { - this.hV = this.getFreshValueHex(); - this.hL = this.getLengthHexFromValue(); - this.hTLV = this.hT + this.hL + this.hV; - this.isModified = false; - } - return this.hTLV - }; - this.getValueHex = function () { - this.getEncodedHex(); - return this.hV - }; - this.getFreshValueHex = function () { - return '' - }; - }; - pt.asn1.DERAbstractString = function (t) { - pt.asn1.DERAbstractString.superclass.constructor.call(this); - this.getString = function () { - return this.s - }; - this.setString = function (t) { - this.hTLV = null; - this.isModified = true; - this.s = t; - this.hV = stohex(this.s); - }; - this.setStringHex = function (t) { - this.hTLV = null; - this.isModified = true; - this.s = null; - this.hV = t; - }; - this.getFreshValueHex = function () { - return this.hV - }; - if ('undefined' != typeof t) - if ('string' == typeof t) this.setString(t); - else if ('undefined' != typeof t['str']) this.setString(t['str']); - else if ('undefined' != typeof t['hex']) this.setStringHex(t['hex']); - }; - vt.lang.extend(pt.asn1.DERAbstractString, pt.asn1.ASN1Object); - pt.asn1.DERAbstractTime = function (t) { - pt.asn1.DERAbstractTime.superclass.constructor.call(this); - this.localDateToUTC = function (t) { - utc = t.getTime() + 6e4 * t.getTimezoneOffset(); - var e = new Date(utc); - return e - }; - this.formatDate = function (t, e, r) { - var i = this.zeroPadding; - var n = this.localDateToUTC(t); - var s = String(n.getFullYear()); - if ('utc' == e) s = s.substr(2, 2); - var a = i(String(n.getMonth() + 1), 2); - var o = i(String(n.getDate()), 2); - var u = i(String(n.getHours()), 2); - var c = i(String(n.getMinutes()), 2); - var l = i(String(n.getSeconds()), 2); - var f = s + a + o + u + c + l; - if (true === r) { - var h = n.getMilliseconds(); - if (0 != h) { - var d = i(String(h), 3); - d = d.replace(/[0]+$/, ''); - f = f + '.' + d; - } - } - return f + 'Z' - }; - this.zeroPadding = function (t, e) { - if (t.length >= e) return t - return new Array(e - t.length + 1).join('0') + t - }; - this.getString = function () { - return this.s - }; - this.setString = function (t) { - this.hTLV = null; - this.isModified = true; - this.s = t; - this.hV = stohex(t); - }; - this.setByDateValue = function (t, e, r, i, n, s) { - var a = new Date(Date.UTC(t, e - 1, r, i, n, s, 0)); - this.setByDate(a); - }; - this.getFreshValueHex = function () { - return this.hV - }; - }; - vt.lang.extend(pt.asn1.DERAbstractTime, pt.asn1.ASN1Object); - pt.asn1.DERAbstractStructured = function (t) { - pt.asn1.DERAbstractString.superclass.constructor.call(this); - this.setByASN1ObjectArray = function (t) { - this.hTLV = null; - this.isModified = true; - this.asn1Array = t; - }; - this.appendASN1Object = function (t) { - this.hTLV = null; - this.isModified = true; - this.asn1Array.push(t); - }; - this.asn1Array = new Array(); - if ('undefined' != typeof t) - if ('undefined' != typeof t['array']) this.asn1Array = t['array']; - }; - vt.lang.extend(pt.asn1.DERAbstractStructured, pt.asn1.ASN1Object); - pt.asn1.DERBoolean = function () { - pt.asn1.DERBoolean.superclass.constructor.call(this); - this.hT = '01'; - this.hTLV = '0101ff'; - }; - vt.lang.extend(pt.asn1.DERBoolean, pt.asn1.ASN1Object); - pt.asn1.DERInteger = function (t) { - pt.asn1.DERInteger.superclass.constructor.call(this); - this.hT = '02'; - this.setByBigInteger = function (t) { - this.hTLV = null; - this.isModified = true; - this.hV = pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t); - }; - this.setByInteger = function (t) { - var e = new k(String(t), 10); - this.setByBigInteger(e); - }; - this.setValueHex = function (t) { - this.hV = t; - }; - this.getFreshValueHex = function () { - return this.hV - }; - if ('undefined' != typeof t) - if ('undefined' != typeof t['bigint']) - this.setByBigInteger(t['bigint']); - else if ('undefined' != typeof t['int']) this.setByInteger(t['int']); - else if ('number' == typeof t) this.setByInteger(t); - else if ('undefined' != typeof t['hex']) this.setValueHex(t['hex']); - }; - vt.lang.extend(pt.asn1.DERInteger, pt.asn1.ASN1Object); - pt.asn1.DERBitString = function (t) { - if (void 0 !== t && 'undefined' !== typeof t.obj) { - var e = pt.asn1.ASN1Util.newObject(t.obj); - t.hex = '00' + e.getEncodedHex(); - } - pt.asn1.DERBitString.superclass.constructor.call(this); - this.hT = '03'; - this.setHexValueIncludingUnusedBits = function (t) { - this.hTLV = null; - this.isModified = true; - this.hV = t; - }; - this.setUnusedBitsAndHexValue = function (t, e) { - if (t < 0 || 7 < t) - throw 'unused bits shall be from 0 to 7: u = ' + t - var r = '0' + t; - this.hTLV = null; - this.isModified = true; - this.hV = r + e; - }; - this.setByBinaryString = function (t) { - t = t.replace(/0+$/, ''); - var e = 8 - (t.length % 8); - if (8 == e) e = 0; - for (var r = 0; r <= e; r++) t += '0'; - var i = ''; - for (var r = 0; r < t.length - 1; r += 8) { - var n = t.substr(r, 8); - var s = parseInt(n, 2).toString(16); - if (1 == s.length) s = '0' + s; - i += s; - } - this.hTLV = null; - this.isModified = true; - this.hV = '0' + e + i; - }; - this.setByBooleanArray = function (t) { - var e = ''; - for (var r = 0; r < t.length; r++) - if (true == t[r]) e += '1'; - else e += '0'; - this.setByBinaryString(e); - }; - this.newFalseArray = function (t) { - var e = new Array(t); - for (var r = 0; r < t; r++) e[r] = false; - return e - }; - this.getFreshValueHex = function () { - return this.hV - }; - if ('undefined' != typeof t) - if ('string' == typeof t && t.toLowerCase().match(/^[0-9a-f]+$/)) - this.setHexValueIncludingUnusedBits(t); - else if ('undefined' != typeof t['hex']) - this.setHexValueIncludingUnusedBits(t['hex']); - else if ('undefined' != typeof t['bin']) - this.setByBinaryString(t['bin']); - else if ('undefined' != typeof t['array']) - this.setByBooleanArray(t['array']); - }; - vt.lang.extend(pt.asn1.DERBitString, pt.asn1.ASN1Object); - pt.asn1.DEROctetString = function (t) { - if (void 0 !== t && 'undefined' !== typeof t.obj) { - var e = pt.asn1.ASN1Util.newObject(t.obj); - t.hex = e.getEncodedHex(); - } - pt.asn1.DEROctetString.superclass.constructor.call(this, t); - this.hT = '04'; - }; - vt.lang.extend(pt.asn1.DEROctetString, pt.asn1.DERAbstractString); - pt.asn1.DERNull = function () { - pt.asn1.DERNull.superclass.constructor.call(this); - this.hT = '05'; - this.hTLV = '0500'; - }; - vt.lang.extend(pt.asn1.DERNull, pt.asn1.ASN1Object); - pt.asn1.DERObjectIdentifier = function (t) { - var e = function (t) { - var e = t.toString(16); - if (1 == e.length) e = '0' + e; - return e - }; - var r = function (t) { - var r = ''; - var i = new k(t, 10); - var n = i.toString(2); - var s = 7 - (n.length % 7); - if (7 == s) s = 0; - var a = ''; - for (var o = 0; o < s; o++) a += '0'; - n = a + n; - for (var o = 0; o < n.length - 1; o += 7) { - var u = n.substr(o, 7); - if (o != n.length - 7) u = '1' + u; - r += e(parseInt(u, 2)); - } - return r - }; - pt.asn1.DERObjectIdentifier.superclass.constructor.call(this); - this.hT = '06'; - this.setValueHex = function (t) { - this.hTLV = null; - this.isModified = true; - this.s = null; - this.hV = t; - }; - this.setValueOidString = function (t) { - if (!t.match(/^[0-9.]+$/)) throw 'malformed oid string: ' + t - var i = ''; - var n = t.split('.'); - var s = 40 * parseInt(n[0]) + parseInt(n[1]); - i += e(s); - n.splice(0, 2); - for (var a = 0; a < n.length; a++) i += r(n[a]); - this.hTLV = null; - this.isModified = true; - this.s = null; - this.hV = i; - }; - this.setValueName = function (t) { - var e = pt.asn1.x509.OID.name2oid(t); - if ('' !== e) this.setValueOidString(e); - else throw 'DERObjectIdentifier oidName undefined: ' + t - }; - this.getFreshValueHex = function () { - return this.hV - }; - if (void 0 !== t) - if ('string' === typeof t) - if (t.match(/^[0-2].[0-9.]+$/)) this.setValueOidString(t); - else this.setValueName(t); - else if (void 0 !== t.oid) this.setValueOidString(t.oid); - else if (void 0 !== t.hex) this.setValueHex(t.hex); - else if (void 0 !== t.name) this.setValueName(t.name); - }; - vt.lang.extend(pt.asn1.DERObjectIdentifier, pt.asn1.ASN1Object); - pt.asn1.DEREnumerated = function (t) { - pt.asn1.DEREnumerated.superclass.constructor.call(this); - this.hT = '0a'; - this.setByBigInteger = function (t) { - this.hTLV = null; - this.isModified = true; - this.hV = pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t); - }; - this.setByInteger = function (t) { - var e = new k(String(t), 10); - this.setByBigInteger(e); - }; - this.setValueHex = function (t) { - this.hV = t; - }; - this.getFreshValueHex = function () { - return this.hV - }; - if ('undefined' != typeof t) - if ('undefined' != typeof t['int']) this.setByInteger(t['int']); - else if ('number' == typeof t) this.setByInteger(t); - else if ('undefined' != typeof t['hex']) this.setValueHex(t['hex']); - }; - vt.lang.extend(pt.asn1.DEREnumerated, pt.asn1.ASN1Object); - pt.asn1.DERUTF8String = function (t) { - pt.asn1.DERUTF8String.superclass.constructor.call(this, t); - this.hT = '0c'; - }; - vt.lang.extend(pt.asn1.DERUTF8String, pt.asn1.DERAbstractString); - pt.asn1.DERNumericString = function (t) { - pt.asn1.DERNumericString.superclass.constructor.call(this, t); - this.hT = '12'; - }; - vt.lang.extend(pt.asn1.DERNumericString, pt.asn1.DERAbstractString); - pt.asn1.DERPrintableString = function (t) { - pt.asn1.DERPrintableString.superclass.constructor.call(this, t); - this.hT = '13'; - }; - vt.lang.extend(pt.asn1.DERPrintableString, pt.asn1.DERAbstractString); - pt.asn1.DERTeletexString = function (t) { - pt.asn1.DERTeletexString.superclass.constructor.call(this, t); - this.hT = '14'; - }; - vt.lang.extend(pt.asn1.DERTeletexString, pt.asn1.DERAbstractString); - pt.asn1.DERIA5String = function (t) { - pt.asn1.DERIA5String.superclass.constructor.call(this, t); - this.hT = '16'; - }; - vt.lang.extend(pt.asn1.DERIA5String, pt.asn1.DERAbstractString); - pt.asn1.DERUTCTime = function (t) { - pt.asn1.DERUTCTime.superclass.constructor.call(this, t); - this.hT = '17'; - this.setByDate = function (t) { - this.hTLV = null; - this.isModified = true; - this.date = t; - this.s = this.formatDate(this.date, 'utc'); - this.hV = stohex(this.s); - }; - this.getFreshValueHex = function () { - if ( - 'undefined' == typeof this.date && - 'undefined' == typeof this.s - ) { - this.date = new Date(); - this.s = this.formatDate(this.date, 'utc'); - this.hV = stohex(this.s); - } - return this.hV - }; - if (void 0 !== t) - if (void 0 !== t.str) this.setString(t.str); - else if ('string' == typeof t && t.match(/^[0-9]{12}Z$/)) - this.setString(t); - else if (void 0 !== t.hex) this.setStringHex(t.hex); - else if (void 0 !== t.date) this.setByDate(t.date); - }; - vt.lang.extend(pt.asn1.DERUTCTime, pt.asn1.DERAbstractTime); - pt.asn1.DERGeneralizedTime = function (t) { - pt.asn1.DERGeneralizedTime.superclass.constructor.call(this, t); - this.hT = '18'; - this.withMillis = false; - this.setByDate = function (t) { - this.hTLV = null; - this.isModified = true; - this.date = t; - this.s = this.formatDate(this.date, 'gen', this.withMillis); - this.hV = stohex(this.s); - }; - this.getFreshValueHex = function () { - if (void 0 === this.date && void 0 === this.s) { - this.date = new Date(); - this.s = this.formatDate(this.date, 'gen', this.withMillis); - this.hV = stohex(this.s); - } - return this.hV - }; - if (void 0 !== t) { - if (void 0 !== t.str) this.setString(t.str); - else if ('string' == typeof t && t.match(/^[0-9]{14}Z$/)) - this.setString(t); - else if (void 0 !== t.hex) this.setStringHex(t.hex); - else if (void 0 !== t.date) this.setByDate(t.date); - if (true === t.millis) this.withMillis = true; - } - }; - vt.lang.extend(pt.asn1.DERGeneralizedTime, pt.asn1.DERAbstractTime); - pt.asn1.DERSequence = function (t) { - pt.asn1.DERSequence.superclass.constructor.call(this, t); - this.hT = '30'; - this.getFreshValueHex = function () { - var t = ''; - for (var e = 0; e < this.asn1Array.length; e++) { - var r = this.asn1Array[e]; - t += r.getEncodedHex(); - } - this.hV = t; - return this.hV - }; - }; - vt.lang.extend(pt.asn1.DERSequence, pt.asn1.DERAbstractStructured); - pt.asn1.DERSet = function (t) { - pt.asn1.DERSet.superclass.constructor.call(this, t); - this.hT = '31'; - this.sortFlag = true; - this.getFreshValueHex = function () { - var t = new Array(); - for (var e = 0; e < this.asn1Array.length; e++) { - var r = this.asn1Array[e]; - t.push(r.getEncodedHex()); - } - if (true == this.sortFlag) t.sort(); - this.hV = t.join(''); - return this.hV - }; - if ('undefined' != typeof t) - if ('undefined' != typeof t.sortflag && false == t.sortflag) - this.sortFlag = false; - }; - vt.lang.extend(pt.asn1.DERSet, pt.asn1.DERAbstractStructured); - pt.asn1.DERTaggedObject = function (t) { - pt.asn1.DERTaggedObject.superclass.constructor.call(this); - this.hT = 'a0'; - this.hV = ''; - this.isExplicit = true; - this.asn1Object = null; - this.setASN1Object = function (t, e, r) { - this.hT = e; - this.isExplicit = t; - this.asn1Object = r; - if (this.isExplicit) { - this.hV = this.asn1Object.getEncodedHex(); - this.hTLV = null; - this.isModified = true; - } else { - this.hV = null; - this.hTLV = r.getEncodedHex(); - this.hTLV = this.hTLV.replace(/^../, e); - this.isModified = false; - } - }; - this.getFreshValueHex = function () { - return this.hV - }; - if ('undefined' != typeof t) { - if ('undefined' != typeof t['tag']) this.hT = t['tag']; - if ('undefined' != typeof t['explicit']) - this.isExplicit = t['explicit']; - if ('undefined' != typeof t['obj']) { - this.asn1Object = t['obj']; - this.setASN1Object(this.isExplicit, this.hT, this.asn1Object); - } - } - }; - vt.lang.extend(pt.asn1.DERTaggedObject, pt.asn1.ASN1Object); - var gt = - (function () { - var t = function (e, r) { - t = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function (t, e) { - t.__proto__ = e; - }) || - function (t, e) { - for (var r in e) - if (Object.prototype.hasOwnProperty.call(e, r)) t[r] = e[r]; - }; - return t(e, r) - }; - return function (e, r) { - if ('function' !== typeof r && null !== r) - throw new TypeError( - 'Class extends value ' + - String(r) + - ' is not a constructor or null' - ) - t(e, r); - function i() { - this.constructor = e; - } - e.prototype = - null === r - ? Object.create(r) - : ((i.prototype = r.prototype), new i()); - } - })(); - var yt = (function (t) { - gt(e, t); - function e(r) { - var i = t.call(this) || this; - if (r) - if ('string' === typeof r) i.parseKey(r); - else if (e.hasPrivateKeyProperty(r) || e.hasPublicKeyProperty(r)) - i.parsePropertiesFrom(r); - return i - } - e.prototype.parseKey = function (t) { - try { - var e = 0; - var r = 0; - var i = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/; - var n = i.test(t) ? y.decode(t) : _.unarmor(t); - var s = M.decode(n); - if (3 === s.sub.length) s = s.sub[2].sub[0]; - if (9 === s.sub.length) { - e = s.sub[1].getHexStringValue(); - this.n = K(e, 16); - r = s.sub[2].getHexStringValue(); - this.e = parseInt(r, 16); - var a = s.sub[3].getHexStringValue(); - this.d = K(a, 16); - var o = s.sub[4].getHexStringValue(); - this.p = K(o, 16); - var u = s.sub[5].getHexStringValue(); - this.q = K(u, 16); - var c = s.sub[6].getHexStringValue(); - this.dmp1 = K(c, 16); - var l = s.sub[7].getHexStringValue(); - this.dmq1 = K(l, 16); - var f = s.sub[8].getHexStringValue(); - this.coeff = K(f, 16); - } else if (2 === s.sub.length) { - var h = s.sub[1]; - var d = h.sub[0]; - e = d.sub[0].getHexStringValue(); - this.n = K(e, 16); - r = d.sub[1].getHexStringValue(); - this.e = parseInt(r, 16); - } else return false - return true - } catch (t) { - return false - } - }; - e.prototype.getPrivateBaseKey = function () { - var t = { - array: [ - new pt.asn1.DERInteger({ int: 0 }), - new pt.asn1.DERInteger({ bigint: this.n }), - new pt.asn1.DERInteger({ int: this.e }), - new pt.asn1.DERInteger({ bigint: this.d }), - new pt.asn1.DERInteger({ bigint: this.p }), - new pt.asn1.DERInteger({ bigint: this.q }), - new pt.asn1.DERInteger({ bigint: this.dmp1 }), - new pt.asn1.DERInteger({ bigint: this.dmq1 }), - new pt.asn1.DERInteger({ bigint: this.coeff }), - ], - }; - var e = new pt.asn1.DERSequence(t); - return e.getEncodedHex() - }; - e.prototype.getPrivateBaseKeyB64 = function () { - return d(this.getPrivateBaseKey()) - }; - e.prototype.getPublicBaseKey = function () { - var t = new pt.asn1.DERSequence({ - array: [ - new pt.asn1.DERObjectIdentifier({ - oid: '1.2.840.113549.1.1.1', - }), - new pt.asn1.DERNull(), - ], - }); - var e = new pt.asn1.DERSequence({ - array: [ - new pt.asn1.DERInteger({ bigint: this.n }), - new pt.asn1.DERInteger({ int: this.e }), - ], - }); - var r = new pt.asn1.DERBitString({ hex: '00' + e.getEncodedHex() }); - var i = new pt.asn1.DERSequence({ array: [t, r] }); - return i.getEncodedHex() - }; - e.prototype.getPublicBaseKeyB64 = function () { - return d(this.getPublicBaseKey()) - }; - e.wordwrap = function (t, e) { - e = e || 64; - if (!t) return t - var r = '(.{1,' + e + '})( +|$\n?)|(.{1,' + e + '})'; - return t.match(RegExp(r, 'g')).join('\n') - }; - e.prototype.getPrivateKey = function () { - var t = '-----BEGIN RSA PRIVATE KEY-----\n'; - t += e.wordwrap(this.getPrivateBaseKeyB64()) + '\n'; - t += '-----END RSA PRIVATE KEY-----'; - return t - }; - e.prototype.getPublicKey = function () { - var t = '-----BEGIN PUBLIC KEY-----\n'; - t += e.wordwrap(this.getPublicBaseKeyB64()) + '\n'; - t += '-----END PUBLIC KEY-----'; - return t - }; - e.hasPublicKeyProperty = function (t) { - t = t || {}; - return t.hasOwnProperty('n') && t.hasOwnProperty('e') - }; - e.hasPrivateKeyProperty = function (t) { - t = t || {}; - return ( - t.hasOwnProperty('n') && - t.hasOwnProperty('e') && - t.hasOwnProperty('d') && - t.hasOwnProperty('p') && - t.hasOwnProperty('q') && - t.hasOwnProperty('dmp1') && - t.hasOwnProperty('dmq1') && - t.hasOwnProperty('coeff') - ) - }; - e.prototype.parsePropertiesFrom = function (t) { - this.n = t.n; - this.e = t.e; - if (t.hasOwnProperty('d')) { - this.d = t.d; - this.p = t.p; - this.q = t.q; - this.dmp1 = t.dmp1; - this.dmq1 = t.dmq1; - this.coeff = t.coeff; - } - }; - return e - })(ut); - const mt = { i: '3.2.1' }; - var _t = (function () { - function t(t) { - if (void 0 === t) t = {}; - t = t || {}; - this.default_key_size = t.default_key_size - ? parseInt(t.default_key_size, 10) - : 1024; - this.default_public_exponent = t.default_public_exponent || '010001'; - this.log = t.log || false; - this.key = null; - } - t.prototype.setKey = function (t) { - if (this.log && this.key) - console.warn('A key was already set, overriding existing.'); - this.key = new yt(t); - }; - t.prototype.setPrivateKey = function (t) { - this.setKey(t); - }; - t.prototype.setPublicKey = function (t) { - this.setKey(t); - }; - t.prototype.decrypt = function (t) { - try { - return this.getKey().decrypt(v(t)) - } catch (t) { - return false - } - }; - t.prototype.encrypt = function (t) { - try { - return this.getKey().encrypt(t) - } catch (t) { - return false - } - }; - t.prototype.encryptLong = function (t) { - try { - return d(this.getKey().encryptLong(t)) - } catch (t) { - return false - } - }; - t.prototype.decryptLong = function (t) { - try { - return this.getKey().decryptLong(t) - } catch (t) { - return false - } - }; - t.prototype.sign = function (t, e, r) { - try { - return d(this.getKey().sign(t, e, r)) - } catch (t) { - return false - } - }; - t.prototype.verify = function (t, e, r) { - try { - return this.getKey().verify(t, v(e), r) - } catch (t) { - return false - } - }; - t.prototype.getKey = function (t) { - if (!this.key) { - this.key = new yt(); - if (t && '[object Function]' === {}.toString.call(t)) { - this.key.generateAsync( - this.default_key_size, - this.default_public_exponent, - t - ); - return - } - this.key.generate( - this.default_key_size, - this.default_public_exponent - ); - } - return this.key - }; - t.prototype.getPrivateKey = function () { - return this.getKey().getPrivateKey() - }; - t.prototype.getPrivateKeyB64 = function () { - return this.getKey().getPrivateBaseKeyB64() - }; - t.prototype.getPublicKey = function () { - return this.getKey().getPublicKey() - }; - t.prototype.getPublicKeyB64 = function () { - return this.getKey().getPublicBaseKeyB64() - }; - t.version = mt.i; - return t - })(); - const St = _t; - }, - 2480: () => {}, - }; - var e = {}; - function r(i) { - var n = e[i]; - if (void 0 !== n) return n.exports - var s = (e[i] = { exports: {} }); - t[i].call(s.exports, s, s.exports, r); - return s.exports - } -(() => { - r.d = (t, e) => { - for (var i in e) - if (r.o(e, i) && !r.o(t, i)) - Object.defineProperty(t, i, { enumerable: true, 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) => { - if ('undefined' !== typeof Symbol && Symbol.toStringTag) - Object.defineProperty(t, Symbol.toStringTag, { value: 'Module' }); - Object.defineProperty(t, '__esModule', { value: true }); - }; - })(); - var i = r(5987); - return i - })() -}); +(function t(e,r){module.exports=r();})(self,(function(){return (()=>{var t={452:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.BlockCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=[];var c=[];var l=[];var f=[];var h=[];var d=[];var v=[];(function(){var t=[];for(var e=0;e<256;e++)if(e<128)t[e]=e<<1;else t[e]=e<<1^283;var r=0;var i=0;for(var e=0;e<256;e++){var n=i^i<<1^i<<2^i<<3^i<<4;n=n>>>8^255&n^99;s[r]=n;a[n]=r;var p=t[r];var g=t[p];var y=t[g];var m=257*t[n]^16843008*n;o[r]=m<<24|m>>>8;u[r]=m<<16|m>>>16;c[r]=m<<8|m>>>24;l[r]=m;var m=16843009*y^65537*g^257*p^16843008*r;f[n]=m<<24|m>>>8;h[n]=m<<16|m>>>16;d[n]=m<<8|m>>>24;v[n]=m;if(!r)r=i=1;else {r=p^t[t[t[y^p]]];i^=t[t[i]];}}})();var p=[0,1,2,4,8,16,32,64,128,27,54];var g=n.AES=i.extend({_doReset:function(){var t;if(this._nRounds&&this._keyPriorReset===this._key)return;var e=this._keyPriorReset=this._key;var r=e.words;var i=e.sigBytes/4;var n=this._nRounds=i+6;var a=4*(n+1);var o=this._keySchedule=[];for(var u=0;u>>24;t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];t^=p[u/i|0]<<24;}else if(i>6&&u%i==4)t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];o[u]=o[u-i]^t;}var c=this._invKeySchedule=[];for(var l=0;l>>24]]^h[s[t>>>16&255]]^d[s[t>>>8&255]]^v[s[255&t]];}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,u,c,l,s);},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,f,h,d,v,a);var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r;},_doCryptBlock:function(t,e,r,i,n,s,a,o){var u=this._nRounds;var c=t[e]^r[0];var l=t[e+1]^r[1];var f=t[e+2]^r[2];var h=t[e+3]^r[3];var d=4;for(var v=1;v>>24]^n[l>>>16&255]^s[f>>>8&255]^a[255&h]^r[d++];var g=i[l>>>24]^n[f>>>16&255]^s[h>>>8&255]^a[255&c]^r[d++];var y=i[f>>>24]^n[h>>>16&255]^s[c>>>8&255]^a[255&l]^r[d++];var m=i[h>>>24]^n[c>>>16&255]^s[l>>>8&255]^a[255&f]^r[d++];c=p;l=g;f=y;h=m;}var p=(o[c>>>24]<<24|o[l>>>16&255]<<16|o[f>>>8&255]<<8|o[255&h])^r[d++];var g=(o[l>>>24]<<24|o[f>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^r[d++];var y=(o[f>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&l])^r[d++];var m=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[l>>>8&255]<<8|o[255&f])^r[d++];t[e]=p;t[e+1]=g;t[e+2]=y;t[e+3]=m;},keySize:256/32});e.AES=i._createHelper(g);})();return t.AES}));},5109:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(888));})(this,(function(t){t.lib.Cipher||function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=i.BufferedBlockAlgorithm;var o=r.enc;o.Utf8;var c=o.Base64;var l=r.algo;var f=l.EvpKDF;var h=i.Cipher=a.extend({cfg:n.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){this._append(t);return this._process()},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){if("string"==typeof t)return A;else return w}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)}}}}()});i.StreamCipher=h.extend({_doFinalize:function(){var t=this._process(!!"flush");return t},blockSize:1});var v=r.mode={};var p=i.BlockCipherMode=n.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;}});var g=v.CBC=function(){var t=p.extend();t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n);i.encryptBlock(t,e);this._prevBlock=t.slice(e,e+n);}});t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);i.decryptBlock(t,e);r.call(this,t,e,n);this._prevBlock=s;}});function r(t,r,i){var n;var s=this._iv;if(s){n=s;this._iv=e;}else n=this._prevBlock;for(var a=0;a>>2];t.sigBytes-=e;}};i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:m}),reset:function(){var t;h.reset.call(this);var e=this.cfg;var r=e.iv;var i=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)t=i.createEncryptor;else {t=i.createDecryptor;this._minBufferSize=1;}if(this._mode&&this._mode.__creator==t)this._mode.init(this,r&&r.words);else {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;var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);t=this._process(!!"flush");}else {t=this._process(!!"flush");e.unpad(t);}return t},blockSize:128/32});var S=i.CipherParams=n.extend({init:function(t){this.mixIn(t);},toString:function(t){return (t||this.formatter).stringify(this)}});var E=r.format={};var b=E.OpenSSL={stringify:function(t){var e;var r=t.ciphertext;var i=t.salt;if(i)e=s.create([1398893684,1701076831]).concat(i).concat(r);else e=r;return e.toString(c)},parse:function(t){var e;var r=c.parse(t);var i=r.words;if(1398893684==i[0]&&1701076831==i[1]){e=s.create(i.slice(2,4));i.splice(0,4);r.sigBytes-=16;}return S.create({ciphertext:r,salt:e})}};var w=i.SerializableCipher=n.extend({cfg:n.extend({format:b}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=t.createEncryptor(r,i);var s=n.finalize(e);var a=n.cfg;return S.create({ciphertext:s,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=t.createDecryptor(r,i).finalize(e.ciphertext);return n},_parse:function(t,e){if("string"==typeof t)return e.parse(t,this);else return t}});var D=r.kdf={};var T=D.OpenSSL={execute:function(t,e,r,i){if(!i)i=s.random(64/8);var n=f.create({keySize:e+r}).compute(t,i);var a=s.create(n.words.slice(e),4*r);n.sigBytes=4*e;return S.create({key:n,iv:a,salt:i})}};var A=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:T}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=i.kdf.execute(r,t.keySize,t.ivSize);i.iv=n.iv;var s=w.encrypt.call(this,t,e,n.key,i);s.mixIn(n);return s},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.iv=n.iv;var s=w.decrypt.call(this,t,e,n.key,i);return s}});}();}));},8249:function(t,e,r){(function(r,i){t.exports=i();})(this,(function(){var t=t||function(t,e){var i;if("undefined"!==typeof window&&window.crypto)i=window.crypto;if("undefined"!==typeof self&&self.crypto)i=self.crypto;if("undefined"!==typeof globalThis&&globalThis.crypto)i=globalThis.crypto;if(!i&&"undefined"!==typeof window&&window.msCrypto)i=window.msCrypto;if(!i&&"undefined"!==typeof r.g&&r.g.crypto)i=r.g.crypto;if(!i&&"function"==="function")try{i=r(2480);}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.")};var s=Object.create||function(){function t(){}return function(e){var r;t.prototype=e;r=new t;t.prototype=null;return r}}();var a={};var o=a.lib={};var u=o.Base=function(){return {extend:function(t){var e=s(this);if(t)e.mixIn(t);if(!e.hasOwnProperty("init")||this.init===e.init)e.init=function(){e.$super.init.apply(this,arguments);};e.init.prototype=e;e.$super=this;return e},create:function(){var t=this.extend();t.init.apply(t,arguments);return t},init:function(){},mixIn:function(t){for(var e in t)if(t.hasOwnProperty(e))this[e]=t[e];if(t.hasOwnProperty("toString"))this.toString=t.toString;},clone:function(){return this.init.prototype.extend(this)}}}();var c=o.WordArray=u.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=4*t.length;},toString:function(t){return (t||f).stringify(this)},concat:function(t){var e=this.words;var r=t.words;var i=this.sigBytes;var n=t.sigBytes;this.clamp();if(i%4)for(var s=0;s>>2]>>>24-s%4*8&255;e[i+s>>>2]|=a<<24-(i+s)%4*8;}else for(var o=0;o>>2]=r[o>>>2];this.sigBytes+=n;return this},clamp:function(){var e=this.words;var r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8;e.length=t.ceil(r/4);},clone:function(){var t=u.clone.call(this);t.words=this.words.slice(0);return t},random:function(t){var e=[];for(var r=0;r>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16));i.push((15&s).toString(16));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(r,e/2)}};var h=l.Latin1={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(r,e)}};var d=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}};var v=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init;this._nDataBytes=0;},_append:function(t){if("string"==typeof t)t=d.parse(t);this._data.concat(t);this._nDataBytes+=t.sigBytes;},_process:function(e){var r;var i=this._data;var n=i.words;var s=i.sigBytes;var a=this.blockSize;var o=4*a;var u=s/o;if(e)u=t.ceil(u);else u=t.max((0|u)-this._minBufferSize,0);var l=u*a;var f=t.min(4*l,s);if(l){for(var h=0;h>>2]>>>24-s%4*8&255;var o=e[s+1>>>2]>>>24-(s+1)%4*8&255;var u=e[s+2>>>2]>>>24-(s+2)%4*8&255;var c=a<<16|o<<8|u;for(var l=0;l<4&&s+.75*l>>6*(3-l)&63));}var f=i.charAt(64);if(f)while(n.length%4)n.push(f);return n.join("")},parse:function(t){var e=t.length;var r=this._map;var i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++;}return i.create(n,s)}})();return t.enc.Base64}));},3786:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Base64url={stringify:function(t,e=true){var r=t.words;var i=t.sigBytes;var n=e?this._safe_map:this._map;t.clamp();var s=[];for(var a=0;a>>2]>>>24-a%4*8&255;var u=r[a+1>>>2]>>>24-(a+1)%4*8&255;var c=r[a+2>>>2]>>>24-(a+2)%4*8&255;var l=o<<16|u<<8|c;for(var f=0;f<4&&a+.75*f>>6*(3-f)&63));}var h=n.charAt(64);if(h)while(s.length%4)s.push(h);return s.join("")},parse:function(t,e=true){var r=t.length;var i=e?this._safe_map:this._map;var n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var s=0;s>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++;}return i.create(n,s)}})();return t.enc.Base64url}));},298:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;n.Utf16=n.Utf16BE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n>>1]|=t.charCodeAt(n)<<16-n%2*16;return i.create(r,2*e)}};n.Utf16LE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n>>2]>>>16-n%4*8&65535);i.push(String.fromCharCode(s));}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n>>1]|=a(t.charCodeAt(n)<<16-n%2*16);return i.create(r,2*e)}};function a(t){return t<<8&4278255360|t>>>8&16711935}})();return t.enc.Utf16}));},888:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2783),r(9824));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.MD5;var o=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t);},compute:function(t,e){var r;var i=this.cfg;var s=i.hasher.create();var a=n.create();var o=a.words;var u=i.keySize;var c=i.iterations;while(o.lengthi)e=t.finalize(e);e.clamp();var n=this._oKey=e.clone();var a=this._iKey=e.clone();var o=n.words;var u=a.words;for(var c=0;c>>2]|=t[i]<<24-i%4*8;n.call(this,r,e);}else n.apply(this,arguments);};s.prototype=i;})();return t.lib.WordArray}));},8214:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];(function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0;})();var u=a.MD5=s.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;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);}var s=this._hash.words;var a=t[e+0];var u=t[e+1];var d=t[e+2];var v=t[e+3];var p=t[e+4];var g=t[e+5];var y=t[e+6];var m=t[e+7];var _=t[e+8];var S=t[e+9];var E=t[e+10];var b=t[e+11];var w=t[e+12];var D=t[e+13];var T=t[e+14];var A=t[e+15];var M=s[0];var I=s[1];var R=s[2];var x=s[3];M=c(M,I,R,x,a,7,o[0]);x=c(x,M,I,R,u,12,o[1]);R=c(R,x,M,I,d,17,o[2]);I=c(I,R,x,M,v,22,o[3]);M=c(M,I,R,x,p,7,o[4]);x=c(x,M,I,R,g,12,o[5]);R=c(R,x,M,I,y,17,o[6]);I=c(I,R,x,M,m,22,o[7]);M=c(M,I,R,x,_,7,o[8]);x=c(x,M,I,R,S,12,o[9]);R=c(R,x,M,I,E,17,o[10]);I=c(I,R,x,M,b,22,o[11]);M=c(M,I,R,x,w,7,o[12]);x=c(x,M,I,R,D,12,o[13]);R=c(R,x,M,I,T,17,o[14]);I=c(I,R,x,M,A,22,o[15]);M=l(M,I,R,x,u,5,o[16]);x=l(x,M,I,R,y,9,o[17]);R=l(R,x,M,I,b,14,o[18]);I=l(I,R,x,M,a,20,o[19]);M=l(M,I,R,x,g,5,o[20]);x=l(x,M,I,R,E,9,o[21]);R=l(R,x,M,I,A,14,o[22]);I=l(I,R,x,M,p,20,o[23]);M=l(M,I,R,x,S,5,o[24]);x=l(x,M,I,R,T,9,o[25]);R=l(R,x,M,I,v,14,o[26]);I=l(I,R,x,M,_,20,o[27]);M=l(M,I,R,x,D,5,o[28]);x=l(x,M,I,R,d,9,o[29]);R=l(R,x,M,I,m,14,o[30]);I=l(I,R,x,M,w,20,o[31]);M=f(M,I,R,x,g,4,o[32]);x=f(x,M,I,R,_,11,o[33]);R=f(R,x,M,I,b,16,o[34]);I=f(I,R,x,M,T,23,o[35]);M=f(M,I,R,x,u,4,o[36]);x=f(x,M,I,R,p,11,o[37]);R=f(R,x,M,I,m,16,o[38]);I=f(I,R,x,M,E,23,o[39]);M=f(M,I,R,x,D,4,o[40]);x=f(x,M,I,R,a,11,o[41]);R=f(R,x,M,I,v,16,o[42]);I=f(I,R,x,M,y,23,o[43]);M=f(M,I,R,x,S,4,o[44]);x=f(x,M,I,R,w,11,o[45]);R=f(R,x,M,I,A,16,o[46]);I=f(I,R,x,M,d,23,o[47]);M=h(M,I,R,x,a,6,o[48]);x=h(x,M,I,R,m,10,o[49]);R=h(R,x,M,I,T,15,o[50]);I=h(I,R,x,M,g,21,o[51]);M=h(M,I,R,x,w,6,o[52]);x=h(x,M,I,R,v,10,o[53]);R=h(R,x,M,I,E,15,o[54]);I=h(I,R,x,M,u,21,o[55]);M=h(M,I,R,x,_,6,o[56]);x=h(x,M,I,R,A,10,o[57]);R=h(R,x,M,I,y,15,o[58]);I=h(I,R,x,M,D,21,o[59]);M=h(M,I,R,x,p,6,o[60]);x=h(x,M,I,R,b,10,o[61]);R=h(R,x,M,I,d,15,o[62]);I=h(I,R,x,M,S,21,o[63]);s[0]=s[0]+M|0;s[1]=s[1]+I|0;s[2]=s[2]+R|0;s[3]=s[3]+x|0;},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var s=e.floor(i/4294967296);var a=i;r[(n+64>>>9<<4)+15]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);r[(n+64>>>9<<4)+14]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);t.sigBytes=4*(r.length+1);this._process();var o=this._hash;var u=o.words;for(var c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8);}return o},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function c(t,e,r,i,n,s,a){var o=t+(e&r|~e&i)+n+a;return (o<>>32-s)+e}function l(t,e,r,i,n,s,a){var o=t+(e&i|r&~i)+n+a;return (o<>>32-s)+e}function f(t,e,r,i,n,s,a){var o=t+(e^r^i)+n+a;return (o<>>32-s)+e}function h(t,e,r,i,n,s,a){var o=t+(r^(e|~i))+n+a;return (o<>>32-s)+e}r.MD5=s._createHelper(u);r.HmacMD5=s._createHmacHelper(u);})(Math);return t.MD5}));},8568:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n,i);this._prevBlock=t.slice(e,e+n);}});e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);r.call(this,t,e,n,i);this._prevBlock=s;}});function r(t,e,r,i){var n;var s=this._iv;if(s){n=s.slice(0);this._iv=void 0;}else n=this._prevBlock;i.encryptBlock(n,0);for(var a=0;a>24&255)){var e=t>>16&255;var r=t>>8&255;var i=255&t;if(255===e){e=0;if(255===r){r=0;if(255===i)i=0;else ++i;}else ++r;}else ++e;t=0;t+=e<<16;t+=r<<8;t+=i;}else t+=1<<24;return t}function i(t){if(0===(t[0]=r(t[0])))t[1]=r(t[1]);return t}var n=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var n=r.blockSize;var s=this._iv;var a=this._counter;if(s){a=this._counter=s.slice(0);this._iv=void 0;}i(a);var o=a.slice(0);r.encryptBlock(o,0);for(var u=0;u>>2]|=n<<24-s%4*8;t.sigBytes+=n;},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};return t.pad.Ansix923}));},2807:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.Iso10126={pad:function(e,r){var i=4*r;var n=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(n-1)).concat(t.lib.WordArray.create([n<<24],1));},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e;}};return t.pad.Iso10126}));},1077:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1));t.pad.ZeroPadding.pad(e,r);},unpad:function(e){t.pad.ZeroPadding.unpad(e);e.sigBytes--;}};return t.pad.Iso97971}));},6991:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.NoPadding={pad:function(){},unpad:function(){}};return t.pad.NoPadding}));},6475:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(5109));})(this,(function(t){t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp();t.sigBytes+=r-(t.sigBytes%r||r);},unpad:function(t){var e=t.words;var r=t.sigBytes-1;for(var r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}};return t.pad.ZeroPadding}));},2112:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2783),r(9824));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.SHA1;var o=s.HMAC;var u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t);},compute:function(t,e){var r=this.cfg;var i=o.create(r.hasher,t);var s=n.create();var a=n.create([1]);var u=s.words;var c=a.words;var l=r.keySize;var f=r.iterations;while(u.length>>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];var i=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]];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;i[0]^=u;i[1]^=f;i[2]^=l;i[3]^=h;i[4]^=u;i[5]^=f;i[6]^=l;i[7]^=h;for(var n=0;n<4;n++)c.call(this);}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i];}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0;this._b=e[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c;}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}e.RabbitLegacy=i._createHelper(u);})();return t.RabbitLegacy}));},4454:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.Rabbit=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;for(var 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];var 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]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;n[0]^=u;n[1]^=f;n[2]^=l;n[3]^=h;n[4]^=u;n[5]^=f;n[6]^=l;n[7]^=h;for(var r=0;r<4;r++)c.call(this);}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i];}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0;this._b=e[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c;}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0;}e.Rabbit=i._createHelper(u);})();return t.Rabbit}));},1857:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=n.RC4=i.extend({_doReset:function(){var t=this._key;var e=t.words;var r=t.sigBytes;var i=this._S=[];for(var n=0;n<256;n++)i[n]=n;for(var n=0,s=0;n<256;n++){var a=n%r;var o=e[a>>>2]>>>24-a%4*8&255;s=(s+i[n]+o)%256;var u=i[n];i[n]=i[s];i[s]=u;}this._i=this._j=0;},_doProcessBlock:function(t,e){t[e]^=a.call(this);},keySize:256/32,ivSize:0});function a(){var t=this._S;var e=this._i;var r=this._j;var i=0;for(var n=0;n<4;n++){e=(e+1)%256;r=(r+t[e])%256;var s=t[e];t[e]=t[r];t[r]=s;i|=t[(t[e]+t[r])%256]<<24-8*n;}this._i=e;this._j=r;return i}e.RC4=i._createHelper(s);var o=n.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this);}});e.RC4Drop=i._createHelper(o);})();return t.RC4}));},706:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]);var u=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]);var c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]);var l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]);var f=n.create([0,1518500249,1859775393,2400959708,2840853838]);var h=n.create([1352829926,1548603684,1836072691,2053994217,0]);var d=a.RIPEMD160=s.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);}var s=this._hash.words;var a=f.words;var d=h.words;var S=o.words;var E=u.words;var b=c.words;var w=l.words;var D,T,A,M,I;var R,x,B,C,O;R=D=s[0];x=T=s[1];B=A=s[2];C=M=s[3];O=I=s[4];var k;for(var r=0;r<80;r+=1){k=D+t[e+S[r]]|0;if(r<16)k+=v(T,A,M)+a[0];else if(r<32)k+=p(T,A,M)+a[1];else if(r<48)k+=g(T,A,M)+a[2];else if(r<64)k+=y(T,A,M)+a[3];else k+=m(T,A,M)+a[4];k|=0;k=_(k,b[r]);k=k+I|0;D=I;I=M;M=_(A,10);A=T;T=k;k=R+t[e+E[r]]|0;if(r<16)k+=m(x,B,C)+d[0];else if(r<32)k+=y(x,B,C)+d[1];else if(r<48)k+=g(x,B,C)+d[2];else if(r<64)k+=p(x,B,C)+d[3];else k+=v(x,B,C)+d[4];k|=0;k=_(k,w[r]);k=k+O|0;R=O;O=C;C=_(B,10);B=x;x=k;}k=s[1]+A+C|0;s[1]=s[2]+M+O|0;s[2]=s[3]+I+R|0;s[3]=s[4]+D+x|0;s[4]=s[0]+T+B|0;s[0]=k;},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);t.sigBytes=4*(e.length+1);this._process();var n=this._hash;var s=n.words;for(var a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);}return n},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function v(t,e,r){return t^e^r}function p(t,e,r){return t&e|~t&r}function g(t,e,r){return (t|~e)^r}function y(t,e,r){return t&r|e&~r}function m(t,e,r){return t^(e|~r)}function _(t,e){return t<>>32-e}r.RIPEMD160=s._createHelper(d);r.HmacRIPEMD160=s._createHmacHelper(d);})();return t.RIPEMD160}));},2783:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.Hasher;var s=e.algo;var a=[];var o=s.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520]);},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var o=r[3];var u=r[4];for(var c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else {var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31;}var f=(i<<5|i>>>27)+u+a[c];if(c<20)f+=(n&s|~n&o)+1518500249;else if(c<40)f+=(n^s^o)+1859775393;else if(c<60)f+=(n&s|n&o|s&o)-1894007588;else f+=(n^s^o)-899497514;u=o;o=s;s=n<<30|n>>>2;n=i;i=f;}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+o|0;r[4]=r[4]+u|0;},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=Math.floor(r/4294967296);e[(i+64>>>9<<4)+15]=r;t.sigBytes=4*e.length;this._process();return this._hash},clone:function(){var t=n.clone.call(this);t._hash=this._hash.clone();return t}});e.SHA1=n._createHelper(o);e.HmacSHA1=n._createHmacHelper(o);})();return t.SHA1}));},7792:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(2153));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.algo;var s=n.SHA256;var a=n.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]);},_doFinalize:function(){var t=s._doFinalize.call(this);t.sigBytes-=4;return t}});e.SHA224=s._createHelper(a);e.HmacSHA224=s._createHmacHelper(a);})();return t.SHA224}));},2153:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];var u=[];(function(){function t(t){var r=e.sqrt(t);for(var i=2;i<=r;i++)if(!(t%i))return false;return true}function r(t){return 4294967296*(t-(0|t))|0}var i=2;var n=0;while(n<64){if(t(i)){if(n<8)o[n]=r(e.pow(i,1/2));u[n]=r(e.pow(i,1/3));n++;}i++;}})();var c=[];var l=a.SHA256=s.extend({_doReset:function(){this._hash=new n.init(o.slice(0));},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var l=r[5];var f=r[6];var h=r[7];for(var d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else {var v=c[d-15];var p=(v<<25|v>>>7)^(v<<14|v>>>18)^v>>>3;var g=c[d-2];var y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=p+c[d-7]+y+c[d-16];}var m=o&l^~o&f;var _=i&n^i&s^n&s;var S=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22);var E=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25);var b=h+E+m+u[d]+c[d];var w=S+_;h=f;f=l;l=o;o=a+b|0;a=s;s=n;n=i;i=b+w|0;}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+a|0;r[4]=r[4]+o|0;r[5]=r[5]+l|0;r[6]=r[6]+f|0;r[7]=r[7]+h|0;},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;r[(n+64>>>9<<4)+14]=e.floor(i/4294967296);r[(n+64>>>9<<4)+15]=i;t.sigBytes=4*r.length;this._process();return this._hash},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});r.SHA256=s._createHelper(l);r.HmacSHA256=s._createHmacHelper(l);})(Math);return t.SHA256}));},3327:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.x64;var o=a.Word;var u=r.algo;var c=[];var l=[];var f=[];(function(){var t=1,e=0;for(var r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var i=e%5;var n=(2*t+3*e)%5;t=i;e=n;}for(var t=0;t<5;t++)for(var e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;var s=1;for(var a=0;a<24;a++){var u=0;var h=0;for(var d=0;d<7;d++){if(1&s){var v=(1<>>24)|4278255360&(s<<24|s>>>8);a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var o=r[n];o.high^=a;o.low^=s;}for(var u=0;u<24;u++){for(var d=0;d<5;d++){var v=0,p=0;for(var g=0;g<5;g++){var o=r[d+5*g];v^=o.high;p^=o.low;}var y=h[d];y.high=v;y.low=p;}for(var d=0;d<5;d++){var m=h[(d+4)%5];var _=h[(d+1)%5];var S=_.high;var E=_.low;var v=m.high^(S<<1|E>>>31);var p=m.low^(E<<1|S>>>31);for(var g=0;g<5;g++){var o=r[d+5*g];o.high^=v;o.low^=p;}}for(var b=1;b<25;b++){var v;var p;var o=r[b];var w=o.high;var D=o.low;var T=c[b];if(T<32){v=w<>>32-T;p=D<>>32-T;}else {v=D<>>64-T;p=w<>>64-T;}var A=h[l[b]];A.high=v;A.low=p;}var M=h[0];var I=r[0];M.high=I.high;M.low=I.low;for(var d=0;d<5;d++)for(var g=0;g<5;g++){var b=d+5*g;var o=r[b];var R=h[b];var x=h[(d+1)%5+5*g];var B=h[(d+2)%5+5*g];o.high=R.high^~x.high&B.high;o.low=R.low^~x.low&B.low;}var o=r[0];var C=f[u];o.high^=C.high;o.low^=C.low;}},_doFinalize:function(){var t=this._data;var r=t.words;8*this._nDataBytes;var s=8*t.sigBytes;var a=32*this.blockSize;r[s>>>5]|=1<<24-s%32;r[(e.ceil((s+1)/a)*a>>>5)-1]|=128;t.sigBytes=4*r.length;this._process();var o=this._state;var u=this.cfg.outputLength/8;var c=u/8;var l=[];for(var f=0;f>>24)|4278255360&(d<<24|d>>>8);v=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8);l.push(v);l.push(d);}return new n.init(l,u)},clone:function(){var t=s.clone.call(this);var e=t._state=this._state.slice(0);for(var r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=s._createHelper(d);r.HmacSHA3=s._createHmacHelper(d);})(Math);return t.SHA3}));},7460:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938),r(34));})(this,(function(t){(function(){var e=t;var r=e.x64;var i=r.Word;var n=r.WordArray;var s=e.algo;var a=s.SHA512;var o=s.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)]);},_doFinalize:function(){var t=a._doFinalize.call(this);t.sigBytes-=16;return t}});e.SHA384=a._createHelper(o);e.HmacSHA384=a._createHmacHelper(o);})();return t.SHA384}));},34:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(4938));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Hasher;var n=e.x64;var s=n.Word;var a=n.WordArray;var o=e.algo;function u(){return s.create.apply(s,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)];var l=[];(function(){for(var t=0;t<80;t++)l[t]=u();})();var f=o.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)]);},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var u=r[5];var f=r[6];var h=r[7];var d=i.high;var v=i.low;var p=n.high;var g=n.low;var y=s.high;var m=s.low;var _=a.high;var S=a.low;var E=o.high;var b=o.low;var w=u.high;var D=u.low;var T=f.high;var A=f.low;var M=h.high;var I=h.low;var R=d;var x=v;var B=p;var C=g;var O=y;var k=m;var P=_;var N=S;var V=E;var H=b;var L=w;var K=D;var U=T;var j=A;var F=M;var z=I;for(var q=0;q<80;q++){var G;var Y;var W=l[q];if(q<16){Y=W.high=0|t[e+2*q];G=W.low=0|t[e+2*q+1];}else {var J=l[q-15];var $=J.high;var Z=J.low;var X=($>>>1|Z<<31)^($>>>8|Z<<24)^$>>>7;var Q=(Z>>>1|$<<31)^(Z>>>8|$<<24)^(Z>>>7|$<<25);var tt=l[q-2];var et=tt.high;var rt=tt.low;var it=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6;var nt=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26);var st=l[q-7];var at=st.high;var ot=st.low;var ut=l[q-16];var ct=ut.high;var lt=ut.low;G=Q+ot;Y=X+at+(G>>>0>>0?1:0);G+=nt;Y=Y+it+(G>>>0>>0?1:0);G+=lt;Y=Y+ct+(G>>>0>>0?1:0);W.high=Y;W.low=G;}var ft=V&L^~V&U;var ht=H&K^~H&j;var dt=R&B^R&O^B&O;var vt=x&C^x&k^C&k;var pt=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7);var gt=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7);var yt=(V>>>14|H<<18)^(V>>>18|H<<14)^(V<<23|H>>>9);var mt=(H>>>14|V<<18)^(H>>>18|V<<14)^(H<<23|V>>>9);var _t=c[q];var St=_t.high;var Et=_t.low;var bt=z+mt;var wt=F+yt+(bt>>>0>>0?1:0);var bt=bt+ht;var wt=wt+ft+(bt>>>0>>0?1:0);var bt=bt+Et;var wt=wt+St+(bt>>>0>>0?1:0);var bt=bt+G;var wt=wt+Y+(bt>>>0>>0?1:0);var Dt=gt+vt;var Tt=pt+dt+(Dt>>>0>>0?1:0);F=U;z=j;U=L;j=K;L=V;K=H;H=N+bt|0;V=P+wt+(H>>>0>>0?1:0)|0;P=O;N=k;O=B;k=C;B=R;C=x;x=bt+Dt|0;R=wt+Tt+(x>>>0>>0?1:0)|0;}v=i.low=v+x;i.high=d+R+(v>>>0>>0?1:0);g=n.low=g+C;n.high=p+B+(g>>>0>>0?1:0);m=s.low=m+k;s.high=y+O+(m>>>0>>0?1:0);S=a.low=S+N;a.high=_+P+(S>>>0>>0?1:0);b=o.low=b+H;o.high=E+V+(b>>>0>>0?1:0);D=u.low=D+K;u.high=w+L+(D>>>0>>0?1:0);A=f.low=A+j;f.high=T+U+(A>>>0>>0?1:0);I=h.low=I+z;h.high=M+F+(I>>>0>>0?1:0);},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+128>>>10<<5)+30]=Math.floor(r/4294967296);e[(i+128>>>10<<5)+31]=r;t.sigBytes=4*e.length;this._process();var n=this._hash.toX32();return n},clone:function(){var t=i.clone.call(this);t._hash=this._hash.clone();return t},blockSize:1024/32});e.SHA512=i._createHelper(f);e.HmacSHA512=i._createHmacHelper(f);})();return t.SHA512}));},4253:function(t,e,r){(function(i,n,s){t.exports=n(r(8249),r(8269),r(8214),r(888),r(5109));})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.BlockCipher;var s=e.algo;var a=[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];var o=[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];var u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];var c=[{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}];var l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];var f=s.DES=n.extend({_doReset:function(){var t=this._key;var e=t.words;var r=[];for(var i=0;i<56;i++){var n=a[i]-1;r[i]=e[n>>>5]>>>31-n%32&1;}var s=this._subKeys=[];for(var c=0;c<16;c++){var l=s[c]=[];var f=u[c];for(var i=0;i<24;i++){l[i/6|0]|=r[(o[i]-1+f)%28]<<31-i%6;l[4+(i/6|0)]|=r[28+(o[i+24]-1+f)%28]<<31-i%6;}l[0]=l[0]<<1|l[0]>>>31;for(var i=1;i<7;i++)l[i]=l[i]>>>4*(i-1)+3;l[7]=l[7]<<5|l[7]>>>27;}var h=this._invSubKeys=[];for(var i=0;i<16;i++)h[i]=s[15-i];},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];h.call(this,4,252645135);h.call(this,16,65535);d.call(this,2,858993459);d.call(this,8,16711935);h.call(this,1,1431655765);for(var i=0;i<16;i++){var n=r[i];var s=this._lBlock;var a=this._rBlock;var o=0;for(var u=0;u<8;u++)o|=c[u][((a^n[u])&l[u])>>>0];this._lBlock=a;this._rBlock=s^o;}var f=this._lBlock;this._lBlock=this._rBlock;this._rBlock=f;h.call(this,1,1431655765);d.call(this,8,16711935);d.call(this,2,858993459);h.call(this,16,65535);h.call(this,4,252645135);t[e]=this._lBlock;t[e+1]=this._rBlock;},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r;this._lBlock^=r<>>t^this._lBlock)&e;this._lBlock^=r;this._rBlock^=r<192.");var r=e.slice(0,2);var n=e.length<4?e.slice(0,2):e.slice(2,4);var s=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(i.create(r));this._des2=f.createEncryptor(i.create(n));this._des3=f.createEncryptor(i.create(s));},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:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=n._createHelper(v);})();return t.TripleDES}));},4938:function(t,e,r){(function(i,n){t.exports=n(r(8249));})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=r.x64={};a.Word=n.extend({init:function(t,e){this.high=t;this.low=e;}});a.WordArray=n.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=8*t.length;},toX32:function(){var t=this.words;var e=t.length;var r=[];for(var i=0;i{Object.defineProperty(e,"__esModule",{value:true});e.ErrorCode=void 0;(function(t){t[t["SUCCESS"]=0]="SUCCESS";t[t["CLIENT_ID_NOT_FOUND"]=1]="CLIENT_ID_NOT_FOUND";t[t["OPERATION_TOO_OFTEN"]=2]="OPERATION_TOO_OFTEN";t[t["REPEAT_MESSAGE"]=3]="REPEAT_MESSAGE";t[t["TIME_OUT"]=4]="TIME_OUT";})(e.ErrorCode||(e.ErrorCode={}));},5987:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1901));const s=i(r(1754));const a=i(r(1237));var o;(function(t){function e(t){a.default.debugMode=t;a.default.info(`setDebugMode: ${t}`);}t.setDebugMode=e;function r(t){try{f(t.appid);n.default.init(t);}catch(t){a.default.error(`init error`,t);}}t.init=r;function i(t){try{n.default.setTag(t);}catch(t){a.default.error(`setTag error`,t);}}t.setTag=i;function o(t){try{n.default.bindAlias(t);}catch(t){a.default.error(`bindAlias error`,t);}}t.bindAlias=o;function u(t){try{n.default.unbindAlias(t);}catch(t){a.default.error(`unbindAlias error`,t);}}t.unbindAlias=u;function c(t){try{if(!t.url)throw new Error("invalid url");if(!t.key||!t.keyId)throw new Error("invalid key or keyId");s.default.socketUrl=t.url;s.default.publicKeyId=t.keyId;s.default.publicKey=t.key;}catch(t){a.default.error(`setSocketServer error`,t);}}t.setSocketServer=c;function l(t){try{n.default.enableSocket(t);}catch(t){a.default.error(`enableSocket error`,t);}}t.enableSocket=l;function f(t){if(null==t||void 0==t||""==t.trim())throw new Error(`invalid appid ${t}`)}})(o||(o={}));e["default"]=o;},127:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){t.SDK_VERSION="GTMP-1.0.0.0";t.DEFAULT_SOCKET_URL="wss://wshz.getui.net:5223/nws";t.SOCKET_PROTOCOL_VERSION="1.0";t.SERVER_PUBLIC_KEY="MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB";t.SERVER_PUBLIC_KEY_ID="69d747c4b9f641baf4004be4297e9f3b";})(r||(r={}));e["default"]=r;},1901:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(3593));const s=i(r(1237));const a=r(3118);const o=i(r(1754));const u=i(r(3854));const c=i(r(9018));const l=i(r(5084));class f{static init(t){if(this.inited)return;try{this.inited=true;s.default.info(`init: appid=${t.appid}`);o.default.init(t);n.default.connect();}catch(t){this.inited=false;}}static enableSocket(t){this.checkInit();n.default.allowReconnect=t;if(t)n.default.reconnect(0);else n.default.close(`enableSocket ${t}`);}static setTag(t){var e;this.checkInit();if(!o.default.cid){null===(e=t.setTagResult)||void 0===e||e.call(t.setTagResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}c.default.create(t.tags,t.setTagResult).send();}static bindAlias(t){var e,r;this.checkInit();if(!o.default.cid){null===(e=t.bindAliasResult)||void 0===e||e.call(t.bindAliasResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}let i=(new Date).getTime();if(i-o.default.lastAliasTime<1*1e3){s.default.error(`bind alias fail: alias option can only be called once a second`);null===(r=t.bindAliasResult)||void 0===r||r.call(t.bindAliasResult,{resultCode:a.ErrorCode.OPERATION_TOO_OFTEN,message:"alias option can only be called once a second"});return}u.default.create(t.alias,true,t.bindAliasResult).send();o.default.lastAliasTime=i;}static unbindAlias(t){var e,r;this.checkInit();if(!o.default.cid){null===(e=t.unbindAliasResult)||void 0===e||e.call(t.unbindAliasResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}let i=(new Date).getTime();if(i-o.default.lastAliasTime<1*1e3){s.default.error(`unbindAlias alias fail: alias option can only be called once a second`);null===(r=t.unbindAliasResult)||void 0===r||r.call(t.unbindAliasResult,{resultCode:a.ErrorCode.OPERATION_TOO_OFTEN,message:"alias option can only be called once a second"});return}l.default.create(t.alias,t.onlySelf,t.unbindAliasResult).send();o.default.lastAliasTime=i;}static turnOff(){}static turnOn(){}static checkInit(){if(!this.inited)throw new Error(`not init, please invoke init method firstly`)}}f.inited=false;e["default"]=f;},1754:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(207));const a=i(r(127));const o=i(r(3593));const u=i(r(1237));const c=i(r(3270));class l{static init(t){var e;this.appid=t.appid;this.onClientId=t.onClientId;this.onlineState=t.onlineState;this.onPushMsg=t.onPushMsg;if(this.appid!=s.default.getSync(s.default.KEY_APPID,this.appid)){u.default.info("appid changed, clear session and cid");s.default.setSync(s.default.KEY_CID,"");s.default.setSync(s.default.KEY_SESSION,"");}s.default.setSync(s.default.KEY_APPID,this.appid);this.cid=s.default.getSync(s.default.KEY_CID,this.cid);if(this.cid)null===(e=this.onClientId)||void 0===e||e.call(this,{cid:l.cid});this.session=s.default.getSync(s.default.KEY_SESSION,this.session);this.deviceId=s.default.getSync(s.default.KEY_DEVICE_ID,this.deviceId);this.regId=s.default.getSync(s.default.KEY_REGID,this.regId);if(!this.regId){this.regId=this.createRegId();s.default.set({key:s.default.KEY_REGID,data:this.regId});}this.socketUrl=s.default.getSync(s.default.KEY_SOCKET_URL,this.socketUrl);let r=this;c.default.getNetworkType({success:t=>{r.networkType=t;r.networkConnected="none"!=r.networkType&&""!=r.networkType;}});c.default.onNetworkStatusChange((t=>{r.networkConnected=t.isConnected;r.networkType=t.networkType;if(r.networkConnected)o.default.reconnect(0);}));}static createRegId(){return `M-V${n.default.md5Hex(this.getUuid())}-${(new Date).getTime()}`}static getUuid(){return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){let e=16*Math.random()|0,r="x"===t?e:3&e|8;return r.toString(16)}))}}l.appid="";l.cid="";l.regId="";l.session="";l.deviceId="";l.packetId=1;l.online=false;l.socketUrl=a.default.DEFAULT_SOCKET_URL;l.publicKeyId=a.default.SERVER_PUBLIC_KEY_ID;l.publicKey=a.default.SERVER_PUBLIC_KEY;l.lastAliasTime=0;l.networkConnected=true;l.networkType="none";e["default"]=l;},9214:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(9800));const o=r(3118);const u=i(r(1754));class c extends a.default{constructor(){super(...arguments);this.actionMsgData=new l;}static initActionMsg(t,...e){super.initMsg(t);t.command=a.default.Command.CLIENT_MSG;t.data=t.actionMsgData=l.create();return t}static parseActionMsg(t,e){super.parseMsg(t,e);t.actionMsgData=l.parse(t.data);return t}send(){setTimeout((()=>{var t;if(c.waitingLoginMsgMap.has(this.actionMsgData.msgId)||c.waitingResponseMsgMap.has(this.actionMsgData.msgId)){c.waitingLoginMsgMap.delete(this.actionMsgData.msgId);c.waitingResponseMsgMap.delete(this.actionMsgData.msgId);null===(t=this.callback)||void 0===t||t.call(this.callback,{resultCode:o.ErrorCode.TIME_OUT,message:"waiting time out"});}}),1e4);if(!u.default.online){c.waitingLoginMsgMap.set(this.actionMsgData.msgId,this);return}if(this.actionMsgData.msgAction!=c.ClientAction.RECEIVED)c.waitingResponseMsgMap.set(this.actionMsgData.msgId,this);super.send();}receive(){}static sendWaitingMessages(){let t=this.waitingLoginMsgMap.keys();let e;while(e=t.next(),!e.done){let t=this.waitingLoginMsgMap.get(e.value);this.waitingLoginMsgMap.delete(e.value);null===t||void 0===t||t.send();}}static getWaitingResponseMessage(t){return c.waitingResponseMsgMap.get(t)}static removeWaitingResponseMessage(t){let e=c.waitingResponseMsgMap.get(t);if(e)c.waitingResponseMsgMap.delete(t);return e}}c.ServerAction=(n=class{},n.PUSH_MESSAGE="pushmessage",n.REDIRECT_SERVER="redirect_server",n.ADD_PHONE_INFO_RESULT="addphoneinfo",n.SET_MODE_RESULT="set_mode_result",n.SET_TAG_RESULT="settag_result",n.BIND_ALIAS_RESULT="response_bind",n.UNBIND_ALIAS_RESULT="response_unbind",n.FEED_BACK_RESULT="pushmessage_feedback",n.RECEIVED="received",n);c.ClientAction=(s=class{},s.ADD_PHONE_INFO="addphoneinfo",s.SET_MODE="set_mode",s.FEED_BACK="pushmessage_feedback",s.SET_TAGS="set_tag",s.BIND_ALIAS="bind_alias",s.UNBIND_ALIAS="unbind_alias",s.RECEIVED="received",s);c.waitingLoginMsgMap=new Map;c.waitingResponseMsgMap=new Map;class l{constructor(){this.appId="";this.cid="";this.msgId="";this.msgAction="";this.msgData="";this.msgExtraData="";}static create(){let t=new l;t.appId=u.default.appid;t.cid=u.default.cid;t.msgId=(new Date).getTime().toString().substr(4);return t}static parse(t){let e=new l;let r=JSON.parse(t);e.appId=r.appId;e.cid=r.cid;e.msgId=r.msgId;e.msgAction=r.msgAction;e.msgData=r.msgData;e.msgExtraData=r.msgExtraData;return e}}e["default"]=c;},708:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(3270));const s=i(r(207));const a=i(r(127));const o=r(3118);const u=i(r(9214));const c=i(r(1754));class l extends u.default{constructor(){super(...arguments);this.addPhoneInfoData=new f;}static create(){let t=new l;super.initActionMsg(t);t.callback=e=>{if(e.resultCode!=o.ErrorCode.SUCCESS&&e.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){t.send();}),30*1e3);else s.default.set({key:s.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()});};t.actionMsgData.msgAction=u.default.ClientAction.ADD_PHONE_INFO;t.addPhoneInfoData=f.create();t.actionMsgData.msgData=JSON.stringify(t.addPhoneInfoData);return t}send(){let t=(new Date).getTime();let e=s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);if(t-e<24*60*60*1e3)return;super.send();}}class f{constructor(){this.model="";this.brand="";this.system_version="";this.version="";this.device_token="";this.imei="";this.oaid="";this.mac="";this.idfa="";this.deviceid="";this.type="";this.extra={os:"",platform:"",platformVersion:"",platformId:"",appVersion:"",language:""};}static create(){let t=new f;t.model=n.default.model();t.brand=n.default.brand();t.system_version=n.default.osVersion();t.version=a.default.SDK_VERSION;t.device_token="";t.imei="";t.oaid="";t.mac="";t.idfa="";t.type="MINI";t.deviceid=`${t.type}-${c.default.deviceId}`;t.extra={os:n.default.os(),platform:n.default.platform(),platformVersion:n.default.platformVersion(),platformId:n.default.platformId(),appVersion:"",language:n.default.language()};return t}}e["default"]=l;},3854:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.bindAliasTagData=new o;}static create(t,e,r){let i=new a;super.initActionMsg(i);i.bindAliasTagData=o.create(t,e);i.callback=r;i.actionMsgData.msgAction=s.default.ClientAction.BIND_ALIAS;i.actionMsgData.msgData=JSON.stringify(i.bindAliasTagData);return i}}class o{constructor(){this.alias="";this.cid="";this.appid="";this.sn="";this.is_self="";}static create(t,e){let r=new o;r.alias=t;r.cid=n.default.cid;r.appid=n.default.appid;r.sn=(new Date).getTime().toString();r.is_self=e?"1":"0";return r}}e["default"]=a;},652:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(1754));const o=r(3118);const u=i(r(9214));class c extends u.default{constructor(){super(...arguments);this.feedbackData=new l;}static create(t,e){let r=new c;super.initActionMsg(r);r.callback=t=>{if(t.resultCode!=o.ErrorCode.SUCCESS&&t.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){r.send();}),30*1e3);};r.feedbackData=l.create(t,e);r.actionMsgData.msgAction=u.default.ClientAction.FEED_BACK;r.actionMsgData.msgData=JSON.stringify(r.feedbackData);return r}send(){super.send();}}c.ActionId=(n=class{},n.RECEIVE="0",n.MP_RECEIVE="210000",n.WEB_RECEIVE="220000",n.BEGIN="1",n);c.RESULT=(s=class{},s.OK="ok",s);class l{constructor(){this.messageid="";this.appkey="";this.appid="";this.taskid="";this.actionid="";this.result="";this.timestamp="";}static create(t,e){let r=new l;r.messageid=t.pushMessageData.messageid;r.appkey=t.pushMessageData.appKey;r.appid=a.default.appid;r.taskid=t.pushMessageData.taskId;r.actionid=e;r.result=c.RESULT.OK;r.timestamp=(new Date).getTime().toString();return r}}e["default"]=c;},9018:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.setTagData=new o;}static create(t,e){let r=new a;super.initActionMsg(r);r.setTagData=o.create(t);r.callback=e;r.actionMsgData.msgAction=s.default.ClientAction.SET_TAGS;r.actionMsgData.msgData=JSON.stringify(r.setTagData);return r}}class o{constructor(){this.appid="";this.tags="";this.sn="";}static create(t){let e=new o;e.appid=n.default.appid;e.tags=u(t);e.sn=(new Date).getTime().toString();return e}}function u(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}e["default"]=a;},5084:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.unbindAliasData=new o;}static create(t,e,r){let i=new a;super.initActionMsg(i);i.unbindAliasData=o.create(t,e);i.callback=r;i.actionMsgData.msgAction=s.default.ClientAction.UNBIND_ALIAS;i.actionMsgData.msgData=JSON.stringify(i.unbindAliasData);return i}}class o{constructor(){this.alias="";this.cid="";this.appid="";this.sn="";this.is_self="";}static create(t,e){let r=new o;r.alias=t;r.cid=n.default.cid;r.appid=n.default.appid;r.sn=(new Date).getTime().toString();r.is_self=e?"1":"0";return r}}e["default"]=a;},6561:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));class s extends n.default{static create(){let t=new s;super.initMsg(t);t.command=n.default.Command.HEART_BEAT;return t}}e["default"]=s;},358:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(1754));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.keyNegotiateData=new u;}static create(){let t=new o;super.initMsg(t);t.command=a.default.Command.KEY_NEGOTIATE;n.default.resetKey();t.data=t.keyNegotiateData=u.create();return t}send(){super.send();}}class u{constructor(){this.appId="";this.rsaPublicKeyId="";this.algorithm="";this.secretKey="";this.iv="";}static create(){let t=new u;t.appId=s.default.appid;t.rsaPublicKeyId=s.default.publicKeyId;t.algorithm="AES";t.secretKey=n.default.getEncryptedSecretKey();t.iv=n.default.getEncryptedIV();return t}}e["default"]=o;},5301:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(323));const a=i(r(2544));class o extends n.default{constructor(){super(...arguments);this.keyNegotiateResultData=new u;}static parse(t){let e=new o;super.parseMsg(e,t);e.keyNegotiateResultData=u.parse(e.data);return e}receive(){if(0!=this.keyNegotiateResultData.errorCode){console.error(`key negotiate fail: ${this.data}`);return}let t=this.keyNegotiateResultData.encryptType.split("/");if(!s.default.algorithmMap.has(t[0].trim().toLowerCase())||!s.default.modeMap.has(t[1].trim().toLowerCase())||!s.default.paddingMap.has(t[2].trim().toLowerCase())){console.error(`key negotiate fail: ${this.data}`);return}s.default.setEncryptParams(t[0].trim().toLowerCase(),t[1].trim().toLowerCase(),t[2].trim().toLowerCase());a.default.create().send();}}class u{constructor(){this.errorCode=-1;this.errorMsg="";this.encryptType="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.encryptType=r.encryptType;return e}}e["default"]=o;},2544:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(323));const a=i(r(9800));const o=i(r(3527));class u extends a.default{constructor(){super(...arguments);this.loginData=new c;}static create(){let t=new u;super.initMsg(t);t.command=a.default.Command.LOGIN;t.data=t.loginData=c.create();return t}send(){if(!this.loginData.session||n.default.cid!=s.default.md5Hex(this.loginData.session)){o.default.create().send();return}super.send();}}class c{constructor(){this.appId="";this.session="";}static create(){let t=new c;t.appId=n.default.appid;t.session=n.default.session;return t}}e["default"]=u;},8734:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(207));const s=i(r(9800));const a=i(r(1754));const o=i(r(9214));const u=i(r(708));const c=i(r(2544));class l extends s.default{constructor(){super(...arguments);this.loginResultData=new f;}static parse(t){let e=new l;super.parseMsg(e,t);e.loginResultData=f.parse(e.data);return e}receive(){var t;if(0!=this.loginResultData.errorCode){this.data;a.default.session=a.default.cid="";n.default.setSync(n.default.KEY_CID,"");n.default.setSync(n.default.KEY_SESSION,"");c.default.create().send();return}if(!a.default.online){a.default.online=true;null===(t=a.default.onlineState)||void 0===t||t.call(a.default.onlineState,{online:a.default.online});}o.default.sendWaitingMessages();u.default.create().send();}}class f{constructor(){this.errorCode=-1;this.errorMsg="";this.session="";}static parse(t){let e=new f;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.session=r.session;return e}}e["default"]=l;},9800:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(350));const a=i(r(3593));const o=i(r(127));const u=i(r(1754));class c{constructor(){this.version="";this.command=0;this.packetId=0;this.timeStamp=0;this.data="";this.signature="";}static initMsg(t,...e){t.version=o.default.SOCKET_PROTOCOL_VERSION;t.command=0;t.timeStamp=(new Date).getTime();return t}static parseMsg(t,e){let r=JSON.parse(e);t.version=r.version;t.command=r.command;t.packetId=r.packetId;t.timeStamp=r.timeStamp;t.data=r.data;t.signature=r.signature;return t}stringify(){return JSON.stringify(this,["version","command","packetId","timeStamp","data","signature"])}send(){if(!a.default.isAvailable())return;this.packetId=u.default.packetId++;this.data=JSON.stringify(this.data);this.stringify();if(this.command!=c.Command.HEART_BEAT){s.default.sign(this);if(this.data&&this.command!=c.Command.KEY_NEGOTIATE)s.default.encrypt(this);}a.default.send(this.stringify());}}c.Command=(n=class{},n.HEART_BEAT=0,n.KEY_NEGOTIATE=1,n.KEY_NEGOTIATE_RESULT=16,n.REGISTER=2,n.REGISTER_RESULT=32,n.LOGIN=3,n.LOGIN_RESULT=48,n.LOGOUT=4,n.LOGOUT_RESULT=64,n.CLIENT_MSG=5,n.SERVER_MSG=80,n.SERVER_CLOSE=96,n);e["default"]=c;},350:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));var s;(function(t){function e(t){t.data=n.default.encrypt(t.data);}t.encrypt=e;function r(t){t.data=n.default.decrypt(t.data);}t.decrypt=r;function i(t){t.signature=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);}t.sign=i;function s(t){let e=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);if(t.signature!=e)throw new Error(`msg signature vierfy failed`)}t.verify=s;})(s||(s={}));e["default"]=s;},1236:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(5301));const s=i(r(8734));const a=i(r(9800));const o=i(r(7078));const u=i(r(538));const c=i(r(7821));const l=i(r(217));const f=i(r(7156));const h=i(r(2535));const d=i(r(9214));const v=i(r(7303));const p=i(r(6063));const g=i(r(7923));const y=i(r(350));const m=i(r(9214));const _=i(r(6254));const S=i(r(5035));class E{static receiveMessage(t){let e=a.default.parseMsg(new a.default,t);if(e.command!=a.default.Command.KEY_NEGOTIATE_RESULT&&e.command!=a.default.Command.HEART_BEAT&&e.command!=a.default.Command.SERVER_CLOSE)y.default.decrypt(e);if(e.command!=a.default.Command.HEART_BEAT&&e.command!=a.default.Command.SERVER_CLOSE)y.default.verify(e);switch(e.command){case a.default.Command.KEY_NEGOTIATE_RESULT:n.default.parse(e.stringify()).receive();break;case a.default.Command.REGISTER_RESULT:o.default.parse(e.stringify()).receive();break;case a.default.Command.LOGIN_RESULT:s.default.parse(e.stringify()).receive();break;case a.default.Command.SERVER_MSG:this.receiveActionMsg(e.stringify());break;case a.default.Command.SERVER_CLOSE:S.default.parse(e.stringify()).receive();break;}}static receiveActionMsg(t){let e=m.default.parseActionMsg(new m.default,t);if(e.actionMsgData.msgAction!=d.default.ServerAction.RECEIVED&&e.actionMsgData.msgAction!=d.default.ServerAction.REDIRECT_SERVER){let t=JSON.parse(e.actionMsgData.msgData);_.default.create(t.id).send();}switch(e.actionMsgData.msgAction){case d.default.ServerAction.PUSH_MESSAGE:f.default.parse(t).receive();break;case d.default.ServerAction.REDIRECT_SERVER:h.default.parse(t).receive();break;case d.default.ServerAction.ADD_PHONE_INFO_RESULT:u.default.parse(t).receive();break;case d.default.ServerAction.SET_MODE_RESULT:v.default.parse(t).receive();break;case d.default.ServerAction.SET_TAG_RESULT:p.default.parse(t).receive();break;case d.default.ServerAction.BIND_ALIAS_RESULT:c.default.parse(t).receive();break;case d.default.ServerAction.UNBIND_ALIAS_RESULT:g.default.parse(t).receive();break;case d.default.ServerAction.FEED_BACK_RESULT:l.default.parse(t).receive();break;case d.default.ServerAction.RECEIVED:_.default.parse(t).receive();break}}}e["default"]=E;},6254:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(1754));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.receivedData=new u;}static create(t){let e=new o;super.initActionMsg(e);e.callback=t=>{if(t.resultCode!=n.ErrorCode.SUCCESS&&t.resultCode!=n.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){e.send();}),3*1e3);};e.actionMsgData.msgAction=a.default.ClientAction.RECEIVED;e.receivedData=u.create(t);e.actionMsgData.msgData=JSON.stringify(e.receivedData);return e}static parse(t){let e=new o;super.parseActionMsg(e,t);e.receivedData=u.parse(e.data);return e}receive(){var t;let e=a.default.getWaitingResponseMessage(this.actionMsgData.msgId);if(e&&e.actionMsgData.msgAction==a.default.ClientAction.ADD_PHONE_INFO||e&&e.actionMsgData.msgAction==a.default.ClientAction.FEED_BACK){a.default.removeWaitingResponseMessage(e.actionMsgData.msgId);null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"});}}send(){super.send();}}class u{constructor(){this.msgId="";this.cid="";}static create(t){let e=new u;e.cid=s.default.cid;e.msgId=t;return e}static parse(t){let e=new u;let r=JSON.parse(t);e.cid=r.cid;e.msgId=r.msgId;return e}}e["default"]=o;},3527:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.registerData=new o;}static create(){let t=new a;super.initMsg(t);t.command=s.default.Command.REGISTER;t.data=t.registerData=o.create();return t}send(){super.send();}}class o{constructor(){this.appId="";this.regId="";}static create(){let t=new o;t.appId=n.default.appid;t.regId=n.default.regId;return t}}e["default"]=a;},7078:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(207));const a=i(r(1754));const o=i(r(2544));class u extends n.default{constructor(){super(...arguments);this.registerResultData=new c;}static parse(t){let e=new u;super.parseMsg(e,t);e.registerResultData=c.parse(e.data);return e}receive(){var t;if(0!=this.registerResultData.errorCode||!this.registerResultData.cid||!this.registerResultData.session){console.error(`register fail: ${this.data}`);return}if(a.default.cid!=this.registerResultData.cid)s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);a.default.cid=this.registerResultData.cid;null===(t=a.default.onClientId)||void 0===t||t.call(a.default.onClientId,{cid:a.default.cid});s.default.set({key:s.default.KEY_CID,data:a.default.cid});a.default.session=this.registerResultData.session;s.default.set({key:s.default.KEY_SESSION,data:a.default.session});a.default.deviceId=this.registerResultData.deviceId;s.default.set({key:s.default.KEY_DEVICE_ID,data:a.default.deviceId});o.default.create().send();}}class c{constructor(){this.errorCode=-1;this.errorMsg="";this.cid="";this.session="";this.deviceId="";this.regId="";}static parse(t){let e=new c;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.cid=r.cid;e.session=r.session;e.deviceId=r.deviceId;e.regId=r.regId;return e}}e["default"]=u;},5035:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(3593));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.serverCloseData=new o;}static parse(t){let e=new a;super.parseMsg(e,t);e.serverCloseData=o.parse(e.data);return e}receive(){this.data;if(20==this.serverCloseData.code||23==this.serverCloseData.code||24==this.serverCloseData.code)n.default.allowReconnect=false;n.default.close();}}class o{constructor(){this.code=-1;this.msg="";}static parse(t){let e=new o;let r=JSON.parse(t);e.code=r.code;e.msg=r.msg;return e}}e["default"]=a;},538:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(207));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.addPhoneInfoResultData=new o;}static parse(t){let e=new a;super.parseActionMsg(e,t);e.addPhoneInfoResultData=o.parse(e.actionMsgData.msgData);return e}receive(){var t;this.addPhoneInfoResultData;let e=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.addPhoneInfoResultData.errorCode,message:this.addPhoneInfoResultData.errorMsg});n.default.set({key:n.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()});}}class o{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new o;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=a;},7821:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(207));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.bindAliasResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.bindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){var t;s.default.info(`bind alias result`,this.bindAliasResultData);let e=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.bindAliasResultData.errorCode,message:this.bindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},217:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.feedbackResultData=new o;}static parse(t){let e=new a;super.parseActionMsg(e,t);e.feedbackResultData=o.parse(e.actionMsgData.msgData);return e}receive(){var t;this.feedbackResultData;let e=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"});}}class o{constructor(){this.actionId="";this.taskId="";this.result="";}static parse(t){let e=new o;let r=JSON.parse(t);e.actionId=r.actionId;e.taskId=r.taskId;e.result=r.result;return e}}e["default"]=a;},7156:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(1754));const a=i(r(9214));const o=i(r(652));class u extends a.default{constructor(){super(...arguments);this.pushMessageData=new c;}static parse(t){let e=new u;super.parseActionMsg(e,t);e.pushMessageData=c.parse(e.actionMsgData.msgData);return e}receive(){var t;this.pushMessageData;if(this.pushMessageData.appId!=s.default.appid||!this.pushMessageData.messageid||!this.pushMessageData.taskId)this.stringify();o.default.create(this,o.default.ActionId.RECEIVE).send();o.default.create(this,o.default.ActionId.MP_RECEIVE).send();if(this.actionMsgData.msgExtraData&&s.default.onPushMsg)null===(t=s.default.onPushMsg)||void 0===t||t.call(s.default.onPushMsg,{message:this.actionMsgData.msgExtraData});}}class c{constructor(){this.id="";this.appKey="";this.appId="";this.messageid="";this.taskId="";this.actionChain=[];this.cdnType="";}static parse(t){let e=new c;let r=JSON.parse(t);e.id=r.id;e.appKey=r.appKey;e.appId=r.appId;e.messageid=r.messageid;e.taskId=r.taskId;e.actionChain=r.actionChain;e.cdnType=r.cdnType;return e}}(n=class{},n.GO_TO="goto",n.TRANSMIT="transmit",n);e["default"]=u;},2535:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(3593));const s=i(r(1754));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.redirectServerData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.redirectServerData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.socketUrl=this.redirectServerData.addressList.split(",")[0];n.default.connect();}}class u{constructor(){this.addressList="";this.delay=0;this.location="";this.idConfig="";}static parse(t){let e=new u;let r=JSON.parse(t);e.addressList=r.addressList;e.delay=r.delay;e.location=r.location;e.idConfig=r.idConfig;return e}}e["default"]=o;},7303:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9214));class s extends n.default{constructor(){super(...arguments);this.setModeResultData=new a;}static parse(t){let e=new s;super.parseActionMsg(e,t);e.setModeResultData=a.parse(e.actionMsgData.msgData);return e}receive(){var t;this.setModeResultData;let e=n.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.setModeResultData.errorCode,message:this.setModeResultData.errorMsg});}}class a{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new a;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=s;},6063:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(207));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.setTagResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.setTagResultData=u.parse(e.actionMsgData.msgData);return e}receive(){var t;s.default.info(`set tag result`,this.setTagResultData);let e=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.setTagResultData.errorCode,message:this.setTagResultData.errorMsg});n.default.set({key:n.default.KEY_SET_TAG_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=0;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},7923:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(207));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.unbindAliasResultData=new u;}static parse(t){let e=new o;super.parseActionMsg(e,t);e.unbindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){var t;s.default.info(`unbind alias result`,this.unbindAliasResultData);let e=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.unbindAliasResultData.errorCode,message:this.unbindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()});}}class u{constructor(){this.errorCode=-1;this.errorMsg="";}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o;},9285:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{constructor(t){this.delay=10;this.delay=t;}start(){this.cancel();let t=this;this.timer=setInterval((function(){t.run();}),this.delay);}cancel(){if(this.timer)clearInterval(this.timer);}}e["default"]=r;},1571:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(6561));const a=i(r(9285));class o extends a.default{static getInstance(){return o.InstanceHolder.instance}run(){s.default.create().send();}refresh(){this.delay=60*1e3;this.start();}}o.INTERVAL=60*1e3;o.InstanceHolder=(n=class{},n.instance=new o(o.INTERVAL),n);e["default"]=o;},3270:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){let e;let r;try{e=uni.getSystemInfoSync();r=uni.getAccountInfoSync();}catch(t){}function i(){let t="";try{t=e?e.platform:"";}catch(t){}return t?t:""}t.os=i;function n(){let t="";try{t=e?e.model:"";}catch(t){}return t?t:""}t.model=n;function s(){let t="";try{t=e?e.brand:"";}catch(t){}return t?t:""}t.brand=s;function a(){let t="";try{t=e?e.system:""; +// #ifdef MP-ALIPAY +let r=i();if(t&&r&&!t.toLocaleLowerCase().startsWith(r.toLowerCase()))t=i()+" "+t; +// #endif +}catch(t){}return t?t:""}t.osVersion=a;function o(){let t=""; +// #ifdef APP-PLUS +t="APP-PLUS"; +// #endif +// #ifdef APP-PLUS-NVUE +t="APP-PLUS-NVUE"; +// #endif +// #ifdef APP-NVUE +t="APP-NVUE"; +// #endif +// #ifdef H5 +t="H5"; +// #endif +// #ifdef MP-WEIXIN +t="MP-WEIXIN"; +// #endif +// #ifdef MP-ALIPAY +t="MP-ALIPAY"; +// #endif +// #ifdef MP-BAIDU +t="MP-BAIDU"; +// #endif +// #ifdef MP-TOUTIAO +t="MP-TOUTIAO"; +// #endif +// #ifdef MP-LARK +t="MP-LARK"; +// #endif +// #ifdef MP-QQ +t="MP-QQ"; +// #endif +// #ifdef MP-KUAISHOU +t="MP-KUAISHOU"; +// #endif +// #ifdef MP-360 +t="MP-360"; +// #endif +// #ifdef QUICKAPP-WEBVIEW +t="QUICKAPP-WEBVIEW"; +// #endif +// #ifdef QUICKAPP-WEBVIEW-UNION +t="QUICKAPP-WEBVIEW-UNION"; +// #endif +return t}t.platform=o;function u(){let t="";try{t=e?e.version:"";}catch(t){}return t?t:""}t.platformVersion=u;function c(){let t="";try{t=r?r.miniProgram.appId:"";}catch(t){}return t?t:""}t.platformId=c;function l(){let t="";try{t=e?e.language:"";}catch(t){}return t?t:""}t.language=l;function f(){return ""}t.imei=f;function h(){return ""}t.oaid=h;function d(t){uni.getNetworkType({success:e=>{var r;null===(r=t.success)||void 0===r||r.call(t.success,e.networkType);},fail:e=>{var r;null===(r=t.fail)||void 0===r||r.call(t.fail,e);}});}t.getNetworkType=d;function v(t){uni.onNetworkStatusChange((e=>{t.call(t,e);}));}t.onNetworkStatusChange=v;})(r||(r={}));e["default"]=r;},3593:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(358));const s=i(r(1754));const a=i(r(1236));const o=i(r(1571));const u=i(r(1237));var c;(function(t){let e;let r=false;let i=false;t.allowReconnect=true;function c(){return r&&i}t.isAvailable=c;function l(e){if(!t.allowReconnect)return;setTimeout((function(){f();}),e);}t.reconnect=l;function f(){t.allowReconnect=true;if(!s.default.networkConnected){u.default.info(`connect failed, network is not available`);return}if(i||r)return;let n=s.default.socketUrl;e=uni.connectSocket({url:n,success:function(){i=true;h();},fail:function(){i=false;p();}}); +// #ifdef MP-ALIPAY +uni.onSocketOpen(g);uni.onSocketMessage(y);uni.onSocketError(m);uni.onSocketClose(_); +// #endif +// #ifndef MP-ALIPAY +e.onOpen(g);e.onMessage(y);e.onError(m);e.onClose(_); +// #endif +}t.connect=f;function h(){if(i&&r){n.default.create().send();o.default.getInstance().start();}}function d(t){ +// #ifdef MP-ALIPAY +uni.closeSocket({reason:t,success:function(t){},fail:function(t){p();}}); +// #endif +// #ifndef MP-ALIPAY +e.close({reason:t,success:function(t){},fail:function(t){p();}}); +// #endif +}t.close=d;function v(t){if(r&&r){ +// #ifdef MP-ALIPAY +uni.sendSocketMessage({data:t,success:function(t){},fail:function(t){}}); +// #endif +// #ifndef MP-ALIPAY +e.send({data:t,success:function(t){},fail:function(t){}}); +// #endif +}else throw new Error(`socket not connect`)}t.send=v;function p(t){var e,n;i=false;r=false;o.default.getInstance().cancel();if(s.default.online){s.default.online=false;null===(e=s.default.onlineState)||void 0===e||e.call(s.default.onlineState,{online:s.default.online});}if(s.default.online){s.default.online=false;null===(n=s.default.onlineState)||void 0===n||n.call(s.default.onlineState,{online:s.default.online});}l(1e3);}let g=function(t){r=true;h();};let y=function(t){try{t.data;o.default.getInstance().refresh();a.default.receiveMessage(t.data);}catch(t){}};let m=function(t){d(`socket error`);};let _=function(t){p();};})(c||(c={}));e["default"]=c;},207:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){t.KEY_APPID="appid";t.KEY_CID="cid";t.KEY_SESSION="session";t.KEY_REGID="regid";t.KEY_SOCKET_URL="socket_url";t.KEY_DEVICE_ID="deviceid";t.KEY_ADD_PHONE_INFO_TIME="api_time";t.KEY_BIND_ALIAS_TIME="ba_time";t.KEY_SET_TAG_TIME="st_time";function e(t,e){uni.setStorageSync(t,e);}t.setSync=e;function r(t){uni.setStorage({key:t.key,data:t.data,fail:()=>{var e;t.key,t.data;null===(e=t.fail)||void 0===e||e.call(t);}});}t.set=r;function i(t,e){let r=e;try{let e=uni.getStorageSync(t);if(e)r=e;}catch(t){}return r}t.getSync=i;function n(t){uni.getStorage({key:t.key,success:e=>{var r;null===(r=t.success)||void 0===r||r.call(t,e.data);},fail:()=>{var e;t.key;null===(e=t.fail)||void 0===e||e.call(t);}});}t.get=n;})(r||(r={}));e["default"]=r;},323:function(t,e,r){var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(3357));const s=i(r(1354));const a=i(r(1754));var o;(function(t){let e;let r;let i;let o;let u=new n.default;let c=s.default.mode.CBC;let l=s.default.pad.Pkcs7;let f=s.default.AES;t.algorithmMap=new Map([["aes",s.default.AES]]);t.modeMap=new Map([["cbc",s.default.mode.CBC],["cfb",s.default.mode.CFB],["cfb128",s.default.mode.CFB],["ecb",s.default.mode.ECB],["ofb",s.default.mode.OFB]]);t.paddingMap=new Map([["nopadding",s.default.pad.NoPadding],["pkcs7",s.default.pad.Pkcs7]]);function h(){e=s.default.MD5((new Date).getTime().toString());r=s.default.MD5(e);u.setPublicKey(a.default.publicKey);e.toString(s.default.enc.Hex);r.toString(s.default.enc.Hex);i=u.encrypt(e.toString(s.default.enc.Hex));o=u.encrypt(r.toString(s.default.enc.Hex));}t.resetKey=h;function d(e,r,i){f=t.algorithmMap.get(e);c=t.modeMap.get(r);l=t.paddingMap.get(i);}t.setEncryptParams=d;function v(t){return f.encrypt(t,e,{iv:r,mode:c,padding:l}).toString()}t.encrypt=v;function p(t){return f.decrypt(t,e,{iv:r,mode:c,padding:l}).toString(s.default.enc.Utf8)}t.decrypt=p;function g(t){return s.default.SHA256(t).toString(s.default.enc.Base64)}t.sha256=g;function y(t){return s.default.MD5(t).toString(s.default.enc.Hex)}t.md5Hex=y;function m(){return i?i:""}t.getEncryptedSecretKey=m;function _(){return o?o:""}t.getEncryptedIV=_;})(o||(o={}));e["default"]=o;},1237:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});class r{static info(...t){if(this.debugMode)console.info(`[GtPush]`,t);}static error(...t){console.error(`[GtPush]`,t);}}r.debugMode=false;e["default"]=r;},3357:(t,e,r)=>{r.r(e);r.d(e,{JSEncrypt:()=>_t,default:()=>St});var i="0123456789abcdefghijklmnopqrstuvwxyz";function n(t){return i.charAt(t)}function s(t,e){return t&e}function a(t,e){return t|e}function o(t,e){return t^e}function u(t,e){return t&~e}function c(t){if(0==t)return -1;var e=0;if(0==(65535&t)){t>>=16;e+=16;}if(0==(255&t)){t>>=8;e+=8;}if(0==(15&t)){t>>=4;e+=4;}if(0==(3&t)){t>>=2;e+=2;}if(0==(1&t))++e;return e}function l(t){var e=0;while(0!=t){t&=t-1;++e;}return e}var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var h="=";function d(t){var e;var r;var i="";for(e=0;e+3<=t.length;e+=3){r=parseInt(t.substring(e,e+3),16);i+=f.charAt(r>>6)+f.charAt(63&r);}if(e+1==t.length){r=parseInt(t.substring(e,e+1),16);i+=f.charAt(r<<2);}else if(e+2==t.length){r=parseInt(t.substring(e,e+2),16);i+=f.charAt(r>>2)+f.charAt((3&r)<<4);}while((3&i.length)>0)i+=h;return i}function v(t){var e="";var r;var i=0;var s=0;for(r=0;r>2);s=3&a;i=1;}else if(1==i){e+=n(s<<2|a>>4);s=15&a;i=2;}else if(2==i){e+=n(s);e+=n(a>>2);s=3&a;i=3;}else {e+=n(s<<2|a>>4);e+=n(15&a);i=0;}}if(1==i)e+=n(s<<2);return e}var g;var y={decode:function(t){var e;if(void 0===g){var r="0123456789ABCDEF";var i=" \f\n\r\t \u2028\u2029";g={};for(e=0;e<16;++e)g[r.charAt(e)]=e;r=r.toLowerCase();for(e=10;e<16;++e)g[r.charAt(e)]=e;for(e=0;e=2){n[n.length]=s;s=0;a=0;}else s<<=4;}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return n}};var m;var _={decode:function(t){var e;if(void 0===m){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var i="= \f\n\r\t \u2028\u2029";m=Object.create(null);for(e=0;e<64;++e)m[r.charAt(e)]=e;m["-"]=62;m["_"]=63;for(e=0;e=4){n[n.length]=s>>16;n[n.length]=s>>8&255;n[n.length]=255&s;s=0;a=0;}else s<<=6;}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=s>>10;break;case 3:n[n.length]=s>>16;n[n.length]=s>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=_.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return _.decode(t)}};var S=1e13;var E=function(){function t(t){this.buf=[+t||0];}t.prototype.mulAdd=function(t,e){var r=this.buf;var i=r.length;var n;var s;for(n=0;n0)r[n]=e;};t.prototype.sub=function(t){var e=this.buf;var r=e.length;var i;var n;for(i=0;i=0;--i)r+=(S+e[i]).toString().substring(1);return r};t.prototype.valueOf=function(){var t=this.buf;var e=0;for(var r=t.length-1;r>=0;--r)e=e*S+t[r];return e};t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this};return t}();var b="…";var w=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;var D=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function T(t,e){if(t.length>e)t=t.substring(0,e)+b;return t}var A=function(){function t(e,r){this.hexDigits="0123456789ABCDEF";if(e instanceof t){this.enc=e.enc;this.pos=e.pos;}else {this.enc=e;this.pos=r;}}t.prototype.get=function(t){if(void 0===t)t=this.pos++;if(t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return "string"===typeof this.enc?this.enc.charCodeAt(t):this.enc[t]};t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)};t.prototype.hexDump=function(t,e,r){var i="";for(var n=t;n176)return false}return true};t.prototype.parseStringISO=function(t,e){var r="";for(var i=t;i191&&n<224)r+=String.fromCharCode((31&n)<<6|63&this.get(i++));else r+=String.fromCharCode((15&n)<<12|(63&this.get(i++))<<6|63&this.get(i++));}return r};t.prototype.parseStringBMP=function(t,e){var r="";var i;var n;for(var s=t;s127;var n=i?255:0;var s;var a="";while(r==n&&++t4){a=r;s<<=3;while(0==(128&(+a^n))){a=+a<<1;--s;}a="("+s+" bit)\n";}if(i)r-=256;var o=new E(r);for(var u=t+1;u=c;--l)a+=u>>l&1?"1":"0";if(a.length>r)return s+T(a,r)}return s+a};t.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return T(this.parseStringISO(t,e),r);var i=e-t;var n="("+i+" byte)\n";r/=2;if(i>r)e=t+r;for(var s=t;sr)n+=b;return n};t.prototype.parseOID=function(t,e,r){var i="";var n=new E;var s=0;for(var a=t;ar)return T(i,r);n=new E;s=0;}}if(s>0)i+=".incomplete";return i};return t}();var M=function(){function t(t,e,r,i,n){if(!(i instanceof I))throw new Error("Invalid tag value.");this.stream=t;this.header=e;this.length=r;this.tag=i;this.sub=n;}t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return "EOC";case 1:return "BOOLEAN";case 2:return "INTEGER";case 3:return "BIT_STRING";case 4:return "OCTET_STRING";case 5:return "NULL";case 6:return "OBJECT_IDENTIFIER";case 7:return "ObjectDescriptor";case 8:return "EXTERNAL";case 9:return "REAL";case 10:return "ENUMERATED";case 11:return "EMBEDDED_PDV";case 12:return "UTF8String";case 16:return "SEQUENCE";case 17:return "SET";case 18:return "NumericString";case 19:return "PrintableString";case 20:return "TeletexString";case 21:return "VideotexString";case 22:return "IA5String";case 23:return "UTCTime";case 24:return "GeneralizedTime";case 25:return "GraphicString";case 26:return "VisibleString";case 27:return "GeneralString";case 28:return "UniversalString";case 30:return "BMPString"}return "Universal_"+this.tag.tagNumber.toString();case 1:return "Application_"+this.tag.tagNumber.toString();case 2:return "["+this.tag.tagNumber.toString()+"]";case 3:return "Private_"+this.tag.tagNumber.toString()}};t.prototype.content=function(t){if(void 0===this.tag)return null;if(void 0===t)t=1/0;var e=this.posContent();var r=Math.abs(this.length);if(!this.tag.isUniversal()){if(null!==this.sub)return "("+this.sub.length+" elem)";return this.stream.parseOctetString(e,e+r,t)}switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:if(null!==this.sub)return "("+this.sub.length+" elem)";else return "(no elem)";case 12:return T(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return T(this.stream.parseStringISO(e,e+r),t);case 30:return T(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null};t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"};t.prototype.toPrettyString=function(t){if(void 0===t)t="";var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0)e+="+";e+=this.length;if(this.tag.tagConstructed)e+=" (constructed)";else if(this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub)e+=" (encapsulates)";e+="\n";if(null!==this.sub){t+=" ";for(var r=0,i=this.sub.length;r6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var i=0;i>6;this.tagConstructed=0!==(32&e);this.tagNumber=31&e;if(31==this.tagNumber){var r=new E;do{e=t.get();r.mulAdd(128,127&e);}while(128&e);this.tagNumber=r.simplify();}}t.prototype.isUniversal=function(){return 0===this.tagClass};t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber};return t}();var R;var x=0xdeadbeefcafe;var B=15715070==(16777215&x);var C=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var O=(1<<26)/C[C.length-1];var k=function(){function t(t,e,r){if(null!=t)if("number"==typeof t)this.fromNumber(t,e,r);else if(null==e&&"string"!=typeof t)this.fromString(t,256);else this.fromString(t,e);}t.prototype.toString=function(t){if(this.s<0)return "-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else if(4==t)e=2;else return this.toRadix(t);var r=(1<0){if(u>u)>0){s=true;a=n(i);}while(o>=0){if(u>(u+=this.DB-e);}else {i=this[o]>>(u-=e)&r;if(u<=0){u+=this.DB;--o;}}if(i>0)s=true;if(s)a+=n(i);}}return s?a:"0"};t.prototype.negate=function(){var e=L();t.ZERO.subTo(this,e);return e};t.prototype.abs=function(){return this.s<0?this.negate():this};t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;e=r-t.t;if(0!=e)return this.s<0?-e:e;while(--r>=0)if(0!=(e=this[r]-t[r]))return e;return 0};t.prototype.bitLength=function(){if(this.t<=0)return 0;return this.DB*(this.t-1)+W(this[this.t-1]^this.s&this.DM)};t.prototype.mod=function(e){var r=L();this.abs().divRemTo(e,null,r);if(this.s<0&&r.compareTo(t.ZERO)>0)e.subTo(r,r);return r};t.prototype.modPowInt=function(t,e){var r;if(t<256||e.isEven())r=new N(e);else r=new V(e);return this.exp(t,r)};t.prototype.clone=function(){var t=L();this.copyTo(t);return t};t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;else if(0==this.t)return -1}else if(1==this.t)return this[0];else if(0==this.t)return 0;return (this[1]&(1<<32-this.DB)-1)<>24};t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16};t.prototype.signum=function(){if(this.s<0)return -1;else if(this.t<=0||1==this.t&&this[0]<=0)return 0;else return 1};t.prototype.toByteArray=function(){var t=this.t;var e=[];e[0]=this.s;var r=this.DB-t*this.DB%8;var i;var n=0;if(t-- >0){if(r>r)!=(this.s&this.DM)>>r)e[n++]=i|this.s<=0){if(r<8){i=(this[t]&(1<>(r+=this.DB-8);}else {i=this[t]>>(r-=8)&255;if(r<=0){r+=this.DB;--t;}}if(0!=(128&i))i|=-256;if(0==n&&(128&this.s)!=(128&i))++n;if(n>0||i!=this.s)e[n++]=i;}}return e};t.prototype.equals=function(t){return 0==this.compareTo(t)};t.prototype.min=function(t){return this.compareTo(t)<0?this:t};t.prototype.max=function(t){return this.compareTo(t)>0?this:t};t.prototype.and=function(t){var e=L();this.bitwiseTo(t,s,e);return e};t.prototype.or=function(t){var e=L();this.bitwiseTo(t,a,e);return e};t.prototype.xor=function(t){var e=L();this.bitwiseTo(t,o,e);return e};t.prototype.andNot=function(t){var e=L();this.bitwiseTo(t,u,e);return e};t.prototype.not=function(){var t=L();for(var e=0;e=this.t)return 0!=this.s;return 0!=(this[e]&1<1){var l=L();s.sqrTo(a[1],l);while(o<=c){a[o]=L();s.mulTo(l,a[o-2],a[o]);o+=2;}}var f=t.t-1;var h;var d=true;var v=L();var p;r=W(t[f])-1;while(f>=0){if(r>=u)h=t[f]>>r-u&c;else {h=(t[f]&(1<0)h|=t[f-1]>>this.DB+r-u;}o=i;while(0==(1&h)){h>>=1;--o;}if((r-=o)<0){r+=this.DB;--f;}if(d){a[h].copyTo(n);d=false;}else {while(o>1){s.sqrTo(n,v);s.sqrTo(v,n);o-=2;}if(o>0)s.sqrTo(n,v);else {p=n;n=v;v=p;}s.mulTo(v,a[h],n);}while(f>=0&&0==(t[f]&1<=0){i.subTo(n,i);if(r)s.subTo(o,s);a.subTo(u,a);}else {n.subTo(i,n);if(r)o.subTo(s,o);u.subTo(a,u);}}if(0!=n.compareTo(t.ONE))return t.ZERO;if(u.compareTo(e)>=0)return u.subtract(e);if(u.signum()<0)u.addTo(e,u);else return u;if(u.signum()<0)return u.add(e);else return u};t.prototype.pow=function(t){return this.exp(t,new P)};t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone();var r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r;r=i;}var n=e.getLowestSetBit();var s=r.getLowestSetBit();if(s<0)return e;if(n0){e.rShiftTo(s,e);r.rShiftTo(s,r);}while(e.signum()>0){if((n=e.getLowestSetBit())>0)e.rShiftTo(n,e);if((n=r.getLowestSetBit())>0)r.rShiftTo(n,r);if(e.compareTo(r)>=0){e.subTo(r,e);e.rShiftTo(1,e);}else {r.subTo(e,r);r.rShiftTo(1,r);}}if(s>0)r.lShiftTo(s,r);return r};t.prototype.isProbablePrime=function(t){var e;var r=this.abs();if(1==r.t&&r[0]<=C[C.length-1]){for(e=0;e=0;--e)t[e]=this[e];t.t=this.t;t.s=this.s;};t.prototype.fromInt=function(t){this.t=1;this.s=t<0?-1:0;if(t>0)this[0]=t;else if(t<-1)this[0]=t+this.DV;else this.t=0;};t.prototype.fromString=function(e,r){var i;if(16==r)i=4;else if(8==r)i=3;else if(256==r)i=8;else if(2==r)i=1;else if(32==r)i=5;else if(4==r)i=2;else {this.fromRadix(e,r);return}this.t=0;this.s=0;var n=e.length;var s=false;var a=0;while(--n>=0){var o=8==i?255&+e[n]:G(e,n);if(o<0){if("-"==e.charAt(n))s=true;continue}s=false;if(0==a)this[this.t++]=o;else if(a+i>this.DB){this[this.t-1]|=(o&(1<>this.DB-a;}else this[this.t-1]|=o<=this.DB)a-=this.DB;}if(8==i&&0!=(128&+e[0])){this.s=-1;if(a>0)this[this.t-1]|=(1<0&&this[this.t-1]==t)--this.t;};t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t;e.s=this.s;};t.prototype.drShiftTo=function(t,e){for(var r=t;r=0;--o){e[o+s+1]=this[o]>>i|a;a=(this[o]&n)<=0;--o)e[o]=0;e[s]=a;e.t=this.t+s+1;e.s=this.s;e.clamp();};t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB;var n=this.DB-i;var s=(1<>i;for(var a=r+1;a>i;}if(i>0)e[this.t-r-1]|=(this.s&s)<>=this.DB;}if(t.t>=this.DB;}i+=this.s;}else {i+=this.s;while(r>=this.DB;}i-=t.s;}e.s=i<0?-1:0;if(i<-1)e[r++]=this.DV+i;else if(i>0)e[r++]=i;e.t=r;e.clamp();};t.prototype.multiplyTo=function(e,r){var i=this.abs();var n=e.abs();var s=i.t;r.t=s+n.t;while(--s>=0)r[s]=0;for(s=0;s=0)t[r]=0;for(r=0;r=e.DV){t[r+e.t]-=e.DV;t[r+e.t+1]=1;}}if(t.t>0)t[t.t-1]+=e.am(r,e[r],t,2*r,0,1);t.s=0;t.clamp();};t.prototype.divRemTo=function(e,r,i){var n=e.abs();if(n.t<=0)return;var s=this.abs();if(s.t0){n.lShiftTo(c,a);s.lShiftTo(c,i);}else {n.copyTo(a);s.copyTo(i);}var l=a.t;var f=a[l-1];if(0==f)return;var h=f*(1<1?a[l-2]>>this.F2:0);var d=this.FV/h;var v=(1<=0){i[i.t++]=1;i.subTo(m,i);}t.ONE.dlShiftTo(l,m);m.subTo(a,a);while(a.t=0){var _=i[--g]==f?this.DM:Math.floor(i[g]*d+(i[g-1]+p)*v);if((i[g]+=a.am(0,_,i,y,0,l))<_){a.dlShiftTo(y,m);i.subTo(m,i);while(i[g]<--_)i.subTo(m,i);}}if(null!=r){i.drShiftTo(l,r);if(o!=u)t.ZERO.subTo(r,r);}i.t=l;i.clamp();if(c>0)i.rShiftTo(c,i);if(o<0)t.ZERO.subTo(i,i);};t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;e=e*(2-(15&t)*e)&15;e=e*(2-(255&t)*e)&255;e=e*(2-((65535&t)*e&65535))&65535;e=e*(2-t*e%this.DV)%this.DV;return e>0?this.DV-e:-e};t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)};t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=L();var n=L();var s=r.convert(this);var a=W(e)-1;s.copyTo(i);while(--a>=0){r.sqrTo(i,n);if((e&1<0)r.mulTo(n,s,i);else {var o=i;i=n;n=o;}}return r.revert(i)};t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))};t.prototype.toRadix=function(t){if(null==t)t=10;if(0==this.signum()||t<2||t>36)return "0";var e=this.chunkSize(t);var r=Math.pow(t,e);var i=Y(r);var n=L();var s=L();var a="";this.divRemTo(i,n,s);while(n.signum()>0){a=(r+s.intValue()).toString(t).substr(1)+a;n.divRemTo(i,n,s);}return s.intValue().toString(t)+a};t.prototype.fromRadix=function(e,r){this.fromInt(0);if(null==r)r=10;var i=this.chunkSize(r);var n=Math.pow(r,i);var s=false;var a=0;var o=0;for(var u=0;u=i){this.dMultiply(n);this.dAddOffset(o,0);a=0;o=0;}}if(a>0){this.dMultiply(Math.pow(r,a));this.dAddOffset(o,0);}if(s)t.ZERO.subTo(this,this);};t.prototype.fromNumber=function(e,r,i){if("number"==typeof r)if(e<2)this.fromInt(1);else {this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(r)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(t.ONE.shiftLeft(e-1),this);}}else {var n=[];var s=7&e;n.length=(e>>3)+1;r.nextBytes(n);if(s>0)n[0]&=(1<>=this.DB;}if(t.t>=this.DB;}i+=this.s;}else {i+=this.s;while(r>=this.DB;}i+=t.s;}e.s=i<0?-1:0;if(i>0)e[r++]=i;else if(i<-1)e[r++]=this.DV+i;e.t=r;e.clamp();};t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t);++this.t;this.clamp();};t.prototype.dAddOffset=function(t,e){if(0==t)return;while(this.t<=e)this[this.t++]=0;this[e]+=t;while(this[e]>=this.DV){this[e]-=this.DV;if(++e>=this.t)this[this.t++]=0;++this[e];}};t.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);r.s=0;r.t=i;while(i>0)r[--i]=0;for(var n=r.t-this.t;i=0)r[i]=0;for(i=Math.max(e-this.t,0);i0)if(0==e)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r};t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE);var i=r.getLowestSetBit();if(i<=0)return false;var n=r.shiftRight(i);e=e+1>>1;if(e>C.length)e=C.length;var s=L();for(var a=0;a0){r.rShiftTo(a,r);i.rShiftTo(a,i);}var o=function(){if((s=r.getLowestSetBit())>0)r.rShiftTo(s,r);if((s=i.getLowestSetBit())>0)i.rShiftTo(s,i);if(r.compareTo(i)>=0){r.subTo(i,r);r.rShiftTo(1,r);}else {i.subTo(r,i);i.rShiftTo(1,i);}if(!(r.signum()>0)){if(a>0)i.lShiftTo(a,i);setTimeout((function(){e(i);}),0);}else setTimeout(o,0);};setTimeout(o,10);};t.prototype.fromNumberAsync=function(e,r,i,n){if("number"==typeof r)if(e<2)this.fromInt(1);else {this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);var s=this;var o=function(){s.dAddOffset(2,0);if(s.bitLength()>e)s.subTo(t.ONE.shiftLeft(e-1),s);if(s.isProbablePrime(r))setTimeout((function(){n();}),0);else setTimeout(o,0);};setTimeout(o,0);}else {var u=[];var c=7&e;u.length=(e>>3)+1;r.nextBytes(u);if(c>0)u[0]&=(1<=0)return t.mod(this.m);else return t};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.divRemTo(this.m,null,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();var V=function(){function t(t){this.m=t;this.mp=t.invDigit();this.mpl=32767&this.mp;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(e,e);return e};t.prototype.revert=function(t){var e=L();t.copyTo(e);this.reduce(e);return e};t.prototype.reduce=function(t){while(t.t<=this.mt2)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;r=e+this.m.t;t[r]+=this.m.am(0,i,t,e,0,this.m.t);while(t[r]>=t.DV){t[r]-=t.DV;t[++r]++;}}t.clamp();t.drShiftTo(this.m.t,t);if(t.compareTo(this.m)>=0)t.subTo(this.m,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();var H=function(){function t(t){this.m=t;this.r2=L();this.q3=L();k.ONE.dlShiftTo(2*t.t,this.r2);this.mu=this.r2.divide(t);}t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);else if(t.compareTo(this.m)<0)return t;else {var e=L();t.copyTo(e);this.reduce(e);return e}};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.drShiftTo(this.m.t-1,this.r2);if(t.t>this.m.t+1){t.t=this.m.t+1;t.clamp();}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(t.compareTo(this.r2)<0)t.dAddOffset(1,this.m.t+1);t.subTo(this.r2,t);while(t.compareTo(this.m)>=0)t.subTo(this.m,t);};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r);};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e);};return t}();function L(){return new k(null)}function K(t,e){return new k(t,e)}var U="undefined"!==typeof navigator;if(U&&B&&"Microsoft Internet Explorer"==navigator.appName){k.prototype.am=function t(e,r,i,n,s,a){var o=32767&r;var u=r>>15;while(--a>=0){var c=32767&this[e];var l=this[e++]>>15;var f=u*c+l*o;c=o*c+((32767&f)<<15)+i[n]+(1073741823&s);s=(c>>>30)+(f>>>15)+u*l+(s>>>30);i[n++]=1073741823&c;}return s};R=30;}else if(U&&B&&"Netscape"!=navigator.appName){k.prototype.am=function t(e,r,i,n,s,a){while(--a>=0){var o=r*this[e++]+i[n]+s;s=Math.floor(o/67108864);i[n++]=67108863&o;}return s};R=26;}else {k.prototype.am=function t(e,r,i,n,s,a){var o=16383&r;var u=r>>14;while(--a>=0){var c=16383&this[e];var l=this[e++]>>14;var f=u*c+l*o;c=o*c+((16383&f)<<14)+i[n]+s;s=(c>>28)+(f>>14)+u*l;i[n++]=268435455&c;}return s};R=28;}k.prototype.DB=R;k.prototype.DM=(1<>>16)){t=r;e+=16;}if(0!=(r=t>>8)){t=r;e+=8;}if(0!=(r=t>>4)){t=r;e+=4;}if(0!=(r=t>>2)){t=r;e+=2;}if(0!=(r=t>>1)){t=r;e+=1;}return e}k.ZERO=Y(0);k.ONE=Y(1);var J=function(){function t(){this.i=0;this.j=0;this.S=[];}t.prototype.init=function(t){var e;var r;var i;for(e=0;e<256;++e)this.S[e]=e;r=0;for(e=0;e<256;++e){r=r+this.S[e]+t[e%t.length]&255;i=this.S[e];this.S[e]=this.S[r];this.S[r]=i;}this.i=0;this.j=0;};t.prototype.next=function(){var t;this.i=this.i+1&255;this.j=this.j+this.S[this.i]&255;t=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=t;return this.S[t+this.S[this.i]&255]};return t}();function $(){return new J}var Z=256;var X;var Q=null;var tt;if(null==Q){Q=[];tt=0;}function nt(){if(null==X){X=$();while(tt=0&&e>0){var n=t.charCodeAt(i--);if(n<128)r[--e]=n;else if(n>127&&n<2048){r[--e]=63&n|128;r[--e]=n>>6|192;}else {r[--e]=63&n|128;r[--e]=n>>6&63|128;r[--e]=n>>12|224;}}r[--e]=0;var s=new st;var a=[];while(e>2){a[0]=0;while(0==a[0])s.nextBytes(a);r[--e]=a[0];}r[--e]=2;r[--e]=0;return new k(r)}var ut=function(){function t(){this.n=null;this.e=0;this.d=null;this.p=null;this.q=null;this.dmp1=null;this.dmq1=null;this.coeff=null;}t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)};t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p);var r=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(r)<0)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)};t.prototype.setPublic=function(t,e){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);}else console.error("Invalid RSA public key");};t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3;var r=ot(t,e);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var n=i.toString(16);var s=n.length;for(var a=0;a<2*e-s;a++)n="0"+n;return n};t.prototype.setPrivate=function(t,e,r){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);this.d=K(r,16);}else console.error("Invalid RSA private key");};t.prototype.setPrivateEx=function(t,e,r,i,n,s,a,o){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);this.d=K(r,16);this.p=K(i,16);this.q=K(n,16);this.dmp1=K(s,16);this.dmq1=K(a,16);this.coeff=K(o,16);}else console.error("Invalid RSA private key");};t.prototype.generate=function(t,e){var r=new st;var i=t>>1;this.e=parseInt(e,16);var n=new k(e,16);for(;;){for(;;){this.p=new k(t-i,1,r);if(0==this.p.subtract(k.ONE).gcd(n).compareTo(k.ONE)&&this.p.isProbablePrime(10))break}for(;;){this.q=new k(i,1,r);if(0==this.q.subtract(k.ONE).gcd(n).compareTo(k.ONE)&&this.q.isProbablePrime(10))break}if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q;this.q=s;}var a=this.p.subtract(k.ONE);var o=this.q.subtract(k.ONE);var u=a.multiply(o);if(0==u.gcd(n).compareTo(k.ONE)){this.n=this.p.multiply(this.q);this.d=n.modInverse(u);this.dmp1=this.d.mod(a);this.dmq1=this.d.mod(o);this.coeff=this.q.modInverse(this.p);break}}};t.prototype.decrypt=function(t){var e=K(t,16);var r=this.doPrivate(e);if(null==r)return null;return ct(r,this.n.bitLength()+7>>3)};t.prototype.generateAsync=function(t,e,r){var i=new st;var n=t>>1;this.e=parseInt(e,16);var s=new k(e,16);var a=this;var o=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q;a.q=t;}var e=a.p.subtract(k.ONE);var i=a.q.subtract(k.ONE);var n=e.multiply(i);if(0==n.gcd(s).compareTo(k.ONE)){a.n=a.p.multiply(a.q);a.d=s.modInverse(n);a.dmp1=a.d.mod(e);a.dmq1=a.d.mod(i);a.coeff=a.q.modInverse(a.p);setTimeout((function(){r();}),0);}else setTimeout(o,0);};var u=function(){a.q=L();a.q.fromNumberAsync(n,1,i,(function(){a.q.subtract(k.ONE).gcda(s,(function(t){if(0==t.compareTo(k.ONE)&&a.q.isProbablePrime(10))setTimeout(e,0);else setTimeout(u,0);}));}));};var c=function(){a.p=L();a.p.fromNumberAsync(t-n,1,i,(function(){a.p.subtract(k.ONE).gcda(s,(function(t){if(0==t.compareTo(k.ONE)&&a.p.isProbablePrime(10))setTimeout(u,0);else setTimeout(c,0);}));}));};setTimeout(c,0);};setTimeout(o,0);};t.prototype.sign=function(t,e,r){var i=ht(r);var n=i+e(t).toString();var s=at(n,this.n.bitLength()/4);if(null==s)return null;var a=this.doPrivate(s);if(null==a)return null;var o=a.toString(16);if(0==(1&o.length))return o;else return "0"+o};t.prototype.verify=function(t,e,r){var i=K(e,16);var n=this.doPublic(i);if(null==n)return null;var s=n.toString(16).replace(/^1f+00/,"");var a=dt(s);return a==r(t).toString()};t.prototype.encryptLong=function(t){var e=this;var r="";var i=(this.n.bitLength()+7>>3)-11;var n=this.setSplitChn(t,i);n.forEach((function(t){r+=e.encrypt(t);}));return r};t.prototype.decryptLong=function(t){var e="";var r=this.n.bitLength()+7>>3;var i=2*r;if(t.length>i){var n=t.match(new RegExp(".{1,"+i+"}","g"))||[];var s=[];for(var a=0;ae){var o=t.substring(0,s);r.push(o);return this.setSplitChn(t.substring(s),e,r)}}r.push(t);return r};return t}();function ct(t,e){var r=t.toByteArray();var i=0;while(i=r.length)return null;var n="";while(++i191&&s<224){n+=String.fromCharCode((31&s)<<6|63&r[i+1]);++i;}else {n+=String.fromCharCode((15&s)<<12|(63&r[i+1])<<6|63&r[i+2]);i+=2;}}return n}function lt(t,e){var r=[];for(var i=0;i=s.length)return null;r=r.concat(s.slice(a+1));}var o=r;var u=-1;var c="";while(++u191&&l<224){c+=String.fromCharCode((31&l)<<6|63&o[u+1]);++u;}else {c+=String.fromCharCode((15&l)<<12|(63&o[u+1])<<6|63&o[u+2]);u+=2;}}return c}var ft={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ht(t){return ft[t]||""}function dt(t){for(var e in ft)if(ft.hasOwnProperty(e)){var r=ft[e];var i=r.length;if(t.substr(0,i)==r)return t.substr(i)}return t}var vt={};vt.lang={extend:function(t,e,r){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");var i=function(){};i.prototype=e.prototype;t.prototype=new i;t.prototype.constructor=t;t.superclass=e.prototype;if(e.prototype.constructor==Object.prototype.constructor)e.prototype.constructor=e;if(r){var n;for(n in r)t.prototype[n]=r[n];var s=function(){},a=["toString","valueOf"];try{if(/MSIE/.test(navigator.userAgent))s=function(t,e){for(n=0;n15)throw "ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+e}};this.getEncodedHex=function(){if(null==this.hTLV||this.isModified){this.hV=this.getFreshValueHex();this.hL=this.getLengthHexFromValue();this.hTLV=this.hT+this.hL+this.hV;this.isModified=false;}return this.hTLV};this.getValueHex=function(){this.getEncodedHex();return this.hV};this.getFreshValueHex=function(){return ""};};pt.asn1.DERAbstractString=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this);this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(this.s);};this.setStringHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t)this.setString(t);else if("undefined"!=typeof t["str"])this.setString(t["str"]);else if("undefined"!=typeof t["hex"])this.setStringHex(t["hex"]);};vt.lang.extend(pt.asn1.DERAbstractString,pt.asn1.ASN1Object);pt.asn1.DERAbstractTime=function(t){pt.asn1.DERAbstractTime.superclass.constructor.call(this);this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e};this.formatDate=function(t,e,r){var i=this.zeroPadding;var n=this.localDateToUTC(t);var s=String(n.getFullYear());if("utc"==e)s=s.substr(2,2);var a=i(String(n.getMonth()+1),2);var o=i(String(n.getDate()),2);var u=i(String(n.getHours()),2);var c=i(String(n.getMinutes()),2);var l=i(String(n.getSeconds()),2);var f=s+a+o+u+c+l;if(true===r){var h=n.getMilliseconds();if(0!=h){var d=i(String(h),3);d=d.replace(/[0]+$/,"");f=f+"."+d;}}return f+"Z"};this.zeroPadding=function(t,e){if(t.length>=e)return t;return new Array(e-t.length+1).join("0")+t};this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(t);};this.setByDateValue=function(t,e,r,i,n,s){var a=new Date(Date.UTC(t,e-1,r,i,n,s,0));this.setByDate(a);};this.getFreshValueHex=function(){return this.hV};};vt.lang.extend(pt.asn1.DERAbstractTime,pt.asn1.ASN1Object);pt.asn1.DERAbstractStructured=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this);this.setByASN1ObjectArray=function(t){this.hTLV=null;this.isModified=true;this.asn1Array=t;};this.appendASN1Object=function(t){this.hTLV=null;this.isModified=true;this.asn1Array.push(t);};this.asn1Array=new Array;if("undefined"!=typeof t)if("undefined"!=typeof t["array"])this.asn1Array=t["array"];};vt.lang.extend(pt.asn1.DERAbstractStructured,pt.asn1.ASN1Object);pt.asn1.DERBoolean=function(){pt.asn1.DERBoolean.superclass.constructor.call(this);this.hT="01";this.hTLV="0101ff";};vt.lang.extend(pt.asn1.DERBoolean,pt.asn1.ASN1Object);pt.asn1.DERInteger=function(t){pt.asn1.DERInteger.superclass.constructor.call(this);this.hT="02";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t);};this.setByInteger=function(t){var e=new k(String(t),10);this.setByBigInteger(e);};this.setValueHex=function(t){this.hV=t;};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["bigint"])this.setByBigInteger(t["bigint"]);else if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"]);};vt.lang.extend(pt.asn1.DERInteger,pt.asn1.ASN1Object);pt.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=pt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex();}pt.asn1.DERBitString.superclass.constructor.call(this);this.hT="03";this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null;this.isModified=true;this.hV=t;};this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7{}};var e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={exports:{}};t[i].call(s.exports,s,s.exports,r);return s.exports}(()=>{r.d=(t,e)=>{for(var i in e)if(r.o(e,i)&&!r.o(t,i))Object.defineProperty(t,i,{enumerable:true,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=>{if("undefined"!==typeof Symbol&&Symbol.toStringTag)Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:true});};})();var i=r(5987);return i})()})); }); diff --git a/packages/uni-push/lib/gtpush-min.js b/packages/uni-push/lib/gtpush-min.js index dfdd774134bf2a6bad5d9a5cb35261ecf5cbf194..caefc41d57109249ec7d386b707259d17e644e8d 100644 --- a/packages/uni-push/lib/gtpush-min.js +++ b/packages/uni-push/lib/gtpush-min.js @@ -1,9224 +1,71 @@ /*! For license information please see gtpush-min.js.LICENSE.txt */ -;(function t(e, r) { - if ('object' === typeof exports && 'object' === typeof module) - module.exports = r() - else if ('function' === typeof define && define.amd) define([], r) - else if ('object' === typeof exports) exports['gtpush'] = r() - else e['gtpush'] = r() -})(self, function () { - return (() => { - var t = { - 452: function (t, e, r) { - ;(function (i, n, s) { - if (true) - t.exports = e = n(r(8249), r(8269), r(8214), r(888), r(5109)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.BlockCipher - var n = e.algo - var s = [] - var a = [] - var o = [] - var u = [] - var c = [] - var l = [] - var f = [] - var h = [] - var d = [] - var v = [] - ;(function () { - var t = [] - for (var e = 0; e < 256; e++) - if (e < 128) t[e] = e << 1 - else t[e] = (e << 1) ^ 283 - var r = 0 - var i = 0 - for (var e = 0; e < 256; e++) { - var n = i ^ (i << 1) ^ (i << 2) ^ (i << 3) ^ (i << 4) - n = (n >>> 8) ^ (255 & n) ^ 99 - s[r] = n - a[n] = r - var p = t[r] - var g = t[p] - var y = t[g] - var m = (257 * t[n]) ^ (16843008 * n) - o[r] = (m << 24) | (m >>> 8) - u[r] = (m << 16) | (m >>> 16) - c[r] = (m << 8) | (m >>> 24) - l[r] = m - var m = - (16843009 * y) ^ (65537 * g) ^ (257 * p) ^ (16843008 * r) - f[n] = (m << 24) | (m >>> 8) - h[n] = (m << 16) | (m >>> 16) - d[n] = (m << 8) | (m >>> 24) - v[n] = m - if (!r) r = i = 1 - else { - r = p ^ t[t[t[y ^ p]]] - i ^= t[t[i]] - } - } - })() - var p = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54] - var g = (n.AES = i.extend({ - _doReset: function () { - var t - if (this._nRounds && this._keyPriorReset === this._key) return - var e = (this._keyPriorReset = this._key) - var r = e.words - var i = e.sigBytes / 4 - var n = (this._nRounds = i + 6) - var a = 4 * (n + 1) - var o = (this._keySchedule = []) - for (var u = 0; u < a; u++) - if (u < i) o[u] = r[u] - else { - t = o[u - 1] - if (!(u % i)) { - t = (t << 8) | (t >>> 24) - t = - (s[t >>> 24] << 24) | - (s[(t >>> 16) & 255] << 16) | - (s[(t >>> 8) & 255] << 8) | - s[255 & t] - t ^= p[(u / i) | 0] << 24 - } else if (i > 6 && u % i == 4) - t = - (s[t >>> 24] << 24) | - (s[(t >>> 16) & 255] << 16) | - (s[(t >>> 8) & 255] << 8) | - s[255 & t] - o[u] = o[u - i] ^ t - } - var c = (this._invKeySchedule = []) - for (var l = 0; l < a; l++) { - var u = a - l - if (l % 4) var t = o[u] - else var t = o[u - 4] - if (l < 4 || u <= 4) c[l] = t - else - c[l] = - f[s[t >>> 24]] ^ - h[s[(t >>> 16) & 255]] ^ - d[s[(t >>> 8) & 255]] ^ - v[s[255 & t]] - } - }, - encryptBlock: function (t, e) { - this._doCryptBlock(t, e, this._keySchedule, o, u, c, l, s) - }, - 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, f, h, d, v, a) - var r = t[e + 1] - t[e + 1] = t[e + 3] - t[e + 3] = r - }, - _doCryptBlock: function (t, e, r, i, n, s, a, o) { - var u = this._nRounds - var c = t[e] ^ r[0] - var l = t[e + 1] ^ r[1] - var f = t[e + 2] ^ r[2] - var h = t[e + 3] ^ r[3] - var d = 4 - for (var v = 1; v < u; v++) { - var p = - i[c >>> 24] ^ - n[(l >>> 16) & 255] ^ - s[(f >>> 8) & 255] ^ - a[255 & h] ^ - r[d++] - var g = - i[l >>> 24] ^ - n[(f >>> 16) & 255] ^ - s[(h >>> 8) & 255] ^ - a[255 & c] ^ - r[d++] - var y = - i[f >>> 24] ^ - n[(h >>> 16) & 255] ^ - s[(c >>> 8) & 255] ^ - a[255 & l] ^ - r[d++] - var m = - i[h >>> 24] ^ - n[(c >>> 16) & 255] ^ - s[(l >>> 8) & 255] ^ - a[255 & f] ^ - r[d++] - c = p - l = g - f = y - h = m - } - var p = - ((o[c >>> 24] << 24) | - (o[(l >>> 16) & 255] << 16) | - (o[(f >>> 8) & 255] << 8) | - o[255 & h]) ^ - r[d++] - var g = - ((o[l >>> 24] << 24) | - (o[(f >>> 16) & 255] << 16) | - (o[(h >>> 8) & 255] << 8) | - o[255 & c]) ^ - r[d++] - var y = - ((o[f >>> 24] << 24) | - (o[(h >>> 16) & 255] << 16) | - (o[(c >>> 8) & 255] << 8) | - o[255 & l]) ^ - r[d++] - var m = - ((o[h >>> 24] << 24) | - (o[(c >>> 16) & 255] << 16) | - (o[(l >>> 8) & 255] << 8) | - o[255 & f]) ^ - r[d++] - t[e] = p - t[e + 1] = g - t[e + 2] = y - t[e + 3] = m - }, - keySize: 256 / 32, - })) - e.AES = i._createHelper(g) - })() - return t.AES - }) - }, - 5109: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(888)) - })(this, function (t) { - t.lib.Cipher || - (function (e) { - var r = t - var i = r.lib - var n = i.Base - var s = i.WordArray - var a = i.BufferedBlockAlgorithm - var o = r.enc - var u = o.Utf8 - var c = o.Base64 - var l = r.algo - var f = l.EvpKDF - var h = (i.Cipher = a.extend({ - cfg: n.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) { - this._append(t) - return this._process() - }, - finalize: function (t) { - if (t) this._append(t) - var e = this._doFinalize() - return e - }, - keySize: 128 / 32, - ivSize: 128 / 32, - _ENC_XFORM_MODE: 1, - _DEC_XFORM_MODE: 2, - _createHelper: (function () { - function t(t) { - if ('string' == typeof t) return A - else return w - } - 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) - }, - } - } - })(), - })) - var d = (i.StreamCipher = h.extend({ - _doFinalize: function () { - var t = this._process(!!'flush') - return t - }, - blockSize: 1, - })) - var v = (r.mode = {}) - var p = (i.BlockCipherMode = n.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 - }, - })) - var g = (v.CBC = (function () { - var t = p.extend() - t.Encryptor = t.extend({ - processBlock: function (t, e) { - var i = this._cipher - var n = i.blockSize - r.call(this, t, e, n) - i.encryptBlock(t, e) - this._prevBlock = t.slice(e, e + n) - }, - }) - t.Decryptor = t.extend({ - processBlock: function (t, e) { - var i = this._cipher - var n = i.blockSize - var s = t.slice(e, e + n) - i.decryptBlock(t, e) - r.call(this, t, e, n) - this._prevBlock = s - }, - }) - function r(t, r, i) { - var n - var s = this._iv - if (s) { - n = s - this._iv = e - } else n = this._prevBlock - for (var a = 0; a < i; a++) t[r + a] ^= n[a] - } - return t - })()) - var y = (r.pad = {}) - var m = (y.Pkcs7 = { - pad: function (t, e) { - var r = 4 * e - var i = r - (t.sigBytes % r) - var n = (i << 24) | (i << 16) | (i << 8) | i - var a = [] - for (var o = 0; o < i; o += 4) a.push(n) - var u = s.create(a, i) - t.concat(u) - }, - unpad: function (t) { - var e = 255 & t.words[(t.sigBytes - 1) >>> 2] - t.sigBytes -= e - }, - }) - var _ = (i.BlockCipher = h.extend({ - cfg: h.cfg.extend({ mode: g, padding: m }), - reset: function () { - var t - h.reset.call(this) - var e = this.cfg - var r = e.iv - var i = e.mode - if (this._xformMode == this._ENC_XFORM_MODE) - t = i.createEncryptor - else { - t = i.createDecryptor - this._minBufferSize = 1 - } - if (this._mode && this._mode.__creator == t) - this._mode.init(this, r && r.words) - else { - 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 - var e = this.cfg.padding - if (this._xformMode == this._ENC_XFORM_MODE) { - e.pad(this._data, this.blockSize) - t = this._process(!!'flush') - } else { - t = this._process(!!'flush') - e.unpad(t) - } - return t - }, - blockSize: 128 / 32, - })) - var S = (i.CipherParams = n.extend({ - init: function (t) { - this.mixIn(t) - }, - toString: function (t) { - return (t || this.formatter).stringify(this) - }, - })) - var E = (r.format = {}) - var b = (E.OpenSSL = { - stringify: function (t) { - var e - var r = t.ciphertext - var i = t.salt - if (i) - e = s.create([1398893684, 1701076831]).concat(i).concat(r) - else e = r - return e.toString(c) - }, - parse: function (t) { - var e - var r = c.parse(t) - var i = r.words - if (1398893684 == i[0] && 1701076831 == i[1]) { - e = s.create(i.slice(2, 4)) - i.splice(0, 4) - r.sigBytes -= 16 - } - return S.create({ ciphertext: r, salt: e }) - }, - }) - var w = (i.SerializableCipher = n.extend({ - cfg: n.extend({ format: b }), - encrypt: function (t, e, r, i) { - i = this.cfg.extend(i) - var n = t.createEncryptor(r, i) - var s = n.finalize(e) - var a = n.cfg - return S.create({ - ciphertext: s, - key: r, - iv: a.iv, - algorithm: t, - mode: a.mode, - padding: a.padding, - blockSize: t.blockSize, - formatter: i.format, - }) - }, - decrypt: function (t, e, r, i) { - i = this.cfg.extend(i) - e = this._parse(e, i.format) - var n = t.createDecryptor(r, i).finalize(e.ciphertext) - return n - }, - _parse: function (t, e) { - if ('string' == typeof t) return e.parse(t, this) - else return t - }, - })) - var D = (r.kdf = {}) - var T = (D.OpenSSL = { - execute: function (t, e, r, i) { - if (!i) i = s.random(64 / 8) - var n = f.create({ keySize: e + r }).compute(t, i) - var a = s.create(n.words.slice(e), 4 * r) - n.sigBytes = 4 * e - return S.create({ key: n, iv: a, salt: i }) - }, - }) - var A = (i.PasswordBasedCipher = w.extend({ - cfg: w.cfg.extend({ kdf: T }), - encrypt: function (t, e, r, i) { - i = this.cfg.extend(i) - var n = i.kdf.execute(r, t.keySize, t.ivSize) - i.iv = n.iv - var s = w.encrypt.call(this, t, e, n.key, i) - s.mixIn(n) - return s - }, - 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.iv = n.iv - var s = w.decrypt.call(this, t, e, n.key, i) - return s - }, - })) - })() - }) - }, - 8249: function (t, e, r) { - ;(function (r, i) { - if (true) t.exports = e = i() - })(this, function () { - var t = - t || - (function (t, e) { - var i - if ('undefined' !== typeof window && window.crypto) - i = window.crypto - if ('undefined' !== typeof self && self.crypto) i = self.crypto - if ('undefined' !== typeof globalThis && globalThis.crypto) - i = globalThis.crypto - if (!i && 'undefined' !== typeof window && window.msCrypto) - i = window.msCrypto - if (!i && 'undefined' !== typeof r.g && r.g.crypto) i = r.g.crypto - if (!i && 'function' === 'function') - try { - i = r(2480) - } 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.' - ) - } - var s = - Object.create || - (function () { - function t() {} - return function (e) { - var r - t.prototype = e - r = new t() - t.prototype = null - return r - } - })() - var a = {} - var o = (a.lib = {}) - var u = (o.Base = (function () { - return { - extend: function (t) { - var e = s(this) - if (t) e.mixIn(t) - if (!e.hasOwnProperty('init') || this.init === e.init) - e.init = function () { - e.$super.init.apply(this, arguments) - } - e.init.prototype = e - e.$super = this - return e - }, - create: function () { - var t = this.extend() - t.init.apply(t, arguments) - return t - }, - init: function () {}, - mixIn: function (t) { - for (var e in t) if (t.hasOwnProperty(e)) this[e] = t[e] - if (t.hasOwnProperty('toString')) this.toString = t.toString - }, - clone: function () { - return this.init.prototype.extend(this) - }, - } - })()) - var c = (o.WordArray = u.extend({ - init: function (t, r) { - t = this.words = t || [] - if (r != e) this.sigBytes = r - else this.sigBytes = 4 * t.length - }, - toString: function (t) { - return (t || f).stringify(this) - }, - concat: function (t) { - var e = this.words - var r = t.words - var i = this.sigBytes - var n = t.sigBytes - this.clamp() - if (i % 4) - for (var s = 0; s < n; s++) { - var a = (r[s >>> 2] >>> (24 - (s % 4) * 8)) & 255 - e[(i + s) >>> 2] |= a << (24 - ((i + s) % 4) * 8) - } - else - for (var o = 0; o < n; o += 4) e[(i + o) >>> 2] = r[o >>> 2] - this.sigBytes += n - return this - }, - clamp: function () { - var e = this.words - var r = this.sigBytes - e[r >>> 2] &= 4294967295 << (32 - (r % 4) * 8) - e.length = t.ceil(r / 4) - }, - clone: function () { - var t = u.clone.call(this) - t.words = this.words.slice(0) - return t - }, - random: function (t) { - var e = [] - for (var r = 0; r < t; r += 4) e.push(n()) - return new c.init(e, t) - }, - })) - var l = (a.enc = {}) - var f = (l.Hex = { - stringify: function (t) { - var e = t.words - var r = t.sigBytes - var i = [] - for (var n = 0; n < r; n++) { - var s = (e[n >>> 2] >>> (24 - (n % 4) * 8)) & 255 - i.push((s >>> 4).toString(16)) - i.push((15 & s).toString(16)) - } - return i.join('') - }, - parse: function (t) { - var e = t.length - var r = [] - for (var i = 0; i < e; i += 2) - r[i >>> 3] |= - parseInt(t.substr(i, 2), 16) << (24 - (i % 8) * 4) - return new c.init(r, e / 2) - }, - }) - var h = (l.Latin1 = { - stringify: function (t) { - var e = t.words - var r = t.sigBytes - var i = [] - for (var n = 0; n < r; n++) { - var s = (e[n >>> 2] >>> (24 - (n % 4) * 8)) & 255 - i.push(String.fromCharCode(s)) - } - return i.join('') - }, - parse: function (t) { - var e = t.length - var r = [] - for (var i = 0; i < e; i++) - r[i >>> 2] |= (255 & t.charCodeAt(i)) << (24 - (i % 4) * 8) - return new c.init(r, e) - }, - }) - var d = (l.Utf8 = { - stringify: function (t) { - try { - return decodeURIComponent(escape(h.stringify(t))) - } catch (t) { - throw new Error('Malformed UTF-8 data') - } - }, - parse: function (t) { - return h.parse(unescape(encodeURIComponent(t))) - }, - }) - var v = (o.BufferedBlockAlgorithm = u.extend({ - reset: function () { - this._data = new c.init() - this._nDataBytes = 0 - }, - _append: function (t) { - if ('string' == typeof t) t = d.parse(t) - this._data.concat(t) - this._nDataBytes += t.sigBytes - }, - _process: function (e) { - var r - var i = this._data - var n = i.words - var s = i.sigBytes - var a = this.blockSize - var o = 4 * a - var u = s / o - if (e) u = t.ceil(u) - else u = t.max((0 | u) - this._minBufferSize, 0) - var l = u * a - var f = t.min(4 * l, s) - if (l) { - for (var h = 0; h < l; h += a) this._doProcessBlock(n, h) - r = n.splice(0, l) - i.sigBytes -= f - } - return new c.init(r, f) - }, - clone: function () { - var t = u.clone.call(this) - t._data = this._data.clone() - return t - }, - _minBufferSize: 0, - })) - var p = (o.Hasher = v.extend({ - cfg: u.extend(), - init: function (t) { - this.cfg = this.cfg.extend(t) - this.reset() - }, - reset: function () { - v.reset.call(this) - this._doReset() - }, - update: function (t) { - this._append(t) - this._process() - return this - }, - finalize: function (t) { - if (t) this._append(t) - var e = this._doFinalize() - return e - }, - blockSize: 512 / 32, - _createHelper: function (t) { - return function (e, r) { - return new t.init(r).finalize(e) - } - }, - _createHmacHelper: function (t) { - return function (e, r) { - return new g.HMAC.init(t, r).finalize(e) - } - }, - })) - var g = (a.algo = {}) - return a - })(Math) - return t - }) - }, - 8269: function (t, e, r) { - ;(function (i, n) { - if (true) t.exports = e = n(r(8249)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.WordArray - var n = e.enc - var s = (n.Base64 = { - stringify: function (t) { - var e = t.words - var r = t.sigBytes - var i = this._map - t.clamp() - var n = [] - for (var s = 0; s < r; s += 3) { - var a = (e[s >>> 2] >>> (24 - (s % 4) * 8)) & 255 - var o = (e[(s + 1) >>> 2] >>> (24 - ((s + 1) % 4) * 8)) & 255 - var u = (e[(s + 2) >>> 2] >>> (24 - ((s + 2) % 4) * 8)) & 255 - var c = (a << 16) | (o << 8) | u - for (var l = 0; l < 4 && s + 0.75 * l < r; l++) - n.push(i.charAt((c >>> (6 * (3 - l))) & 63)) - } - var f = i.charAt(64) - if (f) while (n.length % 4) n.push(f) - return n.join('') - }, - parse: function (t) { - var e = t.length - var r = this._map - var 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 o = t.indexOf(s) - if (-1 !== o) e = o - } - return a(t, e, i) - }, - _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=', - }) - function a(t, e, r) { - var n = [] - var s = 0 - for (var a = 0; a < e; a++) - if (a % 4) { - var o = r[t.charCodeAt(a - 1)] << ((a % 4) * 2) - var u = r[t.charCodeAt(a)] >>> (6 - (a % 4) * 2) - var c = o | u - n[s >>> 2] |= c << (24 - (s % 4) * 8) - s++ - } - return i.create(n, s) - } - })() - return t.enc.Base64 - }) - }, - 3786: function (t, e, r) { - ;(function (i, n) { - if (true) t.exports = e = n(r(8249)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.WordArray - var n = e.enc - var s = (n.Base64url = { - stringify: function (t, e = true) { - var r = t.words - var i = t.sigBytes - var n = e ? this._safe_map : this._map - t.clamp() - var s = [] - for (var a = 0; a < i; a += 3) { - var o = (r[a >>> 2] >>> (24 - (a % 4) * 8)) & 255 - var u = (r[(a + 1) >>> 2] >>> (24 - ((a + 1) % 4) * 8)) & 255 - var c = (r[(a + 2) >>> 2] >>> (24 - ((a + 2) % 4) * 8)) & 255 - var l = (o << 16) | (u << 8) | c - for (var f = 0; f < 4 && a + 0.75 * f < i; f++) - s.push(n.charAt((l >>> (6 * (3 - f))) & 63)) - } - var h = n.charAt(64) - if (h) while (s.length % 4) s.push(h) - return s.join('') - }, - parse: function (t, e = true) { - var r = t.length - var i = e ? this._safe_map : this._map - var n = this._reverseMap - if (!n) { - n = this._reverseMap = [] - for (var s = 0; s < i.length; s++) n[i.charCodeAt(s)] = s - } - var o = i.charAt(64) - if (o) { - var u = t.indexOf(o) - if (-1 !== u) r = u - } - return a(t, r, n) - }, - _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=', - _safe_map: - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_', - }) - function a(t, e, r) { - var n = [] - var s = 0 - for (var a = 0; a < e; a++) - if (a % 4) { - var o = r[t.charCodeAt(a - 1)] << ((a % 4) * 2) - var u = r[t.charCodeAt(a)] >>> (6 - (a % 4) * 2) - var c = o | u - n[s >>> 2] |= c << (24 - (s % 4) * 8) - s++ - } - return i.create(n, s) - } - })() - return t.enc.Base64url - }) - }, - 298: function (t, e, r) { - ;(function (i, n) { - if (true) t.exports = e = n(r(8249)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.WordArray - var n = e.enc - var s = - (n.Utf16 = - n.Utf16BE = - { - stringify: function (t) { - var e = t.words - var r = t.sigBytes - var i = [] - for (var n = 0; n < r; n += 2) { - var s = (e[n >>> 2] >>> (16 - (n % 4) * 8)) & 65535 - i.push(String.fromCharCode(s)) - } - return i.join('') - }, - parse: function (t) { - var e = t.length - var r = [] - for (var n = 0; n < e; n++) - r[n >>> 1] |= t.charCodeAt(n) << (16 - (n % 2) * 16) - return i.create(r, 2 * e) - }, - }) - n.Utf16LE = { - stringify: function (t) { - var e = t.words - var r = t.sigBytes - var i = [] - for (var n = 0; n < r; n += 2) { - var s = a((e[n >>> 2] >>> (16 - (n % 4) * 8)) & 65535) - i.push(String.fromCharCode(s)) - } - return i.join('') - }, - parse: function (t) { - var e = t.length - var r = [] - for (var n = 0; n < e; n++) - r[n >>> 1] |= a(t.charCodeAt(n) << (16 - (n % 2) * 16)) - return i.create(r, 2 * e) - }, - } - function a(t) { - return ((t << 8) & 4278255360) | ((t >>> 8) & 16711935) - } - })() - return t.enc.Utf16 - }) - }, - 888: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(2783), r(9824)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.Base - var n = r.WordArray - var s = e.algo - var a = s.MD5 - var o = (s.EvpKDF = i.extend({ - cfg: i.extend({ keySize: 128 / 32, hasher: a, iterations: 1 }), - init: function (t) { - this.cfg = this.cfg.extend(t) - }, - compute: function (t, e) { - var r - var i = this.cfg - var s = i.hasher.create() - var a = n.create() - var o = a.words - var u = i.keySize - var c = i.iterations - while (o.length < u) { - if (r) s.update(r) - r = s.update(t).finalize(e) - s.reset() - for (var l = 1; l < c; l++) { - r = s.finalize(r) - s.reset() - } - a.concat(r) - } - a.sigBytes = 4 * u - return a - }, - })) - e.EvpKDF = function (t, e, r) { - return o.create(r).compute(t, e) - } - })() - return t.EvpKDF - }) - }, - 2209: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(5109)) - })(this, function (t) { - ;(function (e) { - var r = t - var i = r.lib - var n = i.CipherParams - var s = r.enc - var a = s.Hex - var o = r.format - var u = (o.Hex = { - stringify: function (t) { - return t.ciphertext.toString(a) - }, - parse: function (t) { - var e = a.parse(t) - return n.create({ ciphertext: e }) - }, - }) - })() - return t.format.Hex - }) - }, - 9824: function (t, e, r) { - ;(function (i, n) { - if (true) t.exports = e = n(r(8249)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.Base - var n = e.enc - var s = n.Utf8 - var a = e.algo - var o = (a.HMAC = i.extend({ - init: function (t, e) { - t = this._hasher = new t.init() - if ('string' == typeof e) e = s.parse(e) - var r = t.blockSize - var i = 4 * r - if (e.sigBytes > i) e = t.finalize(e) - e.clamp() - var n = (this._oKey = e.clone()) - var a = (this._iKey = e.clone()) - var o = n.words - var u = a.words - for (var c = 0; c < r; c++) { - o[c] ^= 1549556828 - u[c] ^= 909522486 - } - n.sigBytes = a.sigBytes = i - this.reset() - }, - reset: function () { - var t = this._hasher - t.reset() - t.update(this._iKey) - }, - update: function (t) { - this._hasher.update(t) - return this - }, - finalize: function (t) { - var e = this._hasher - var r = e.finalize(t) - e.reset() - var i = e.finalize(this._oKey.clone().concat(r)) - return i - }, - })) - })() - }) - }, - 1354: function (t, e, r) { - ;(function (i, n, s) { - if (true) - t.exports = e = n( - r(8249), - r(4938), - r(4433), - r(298), - r(8269), - r(3786), - r(8214), - r(2783), - r(2153), - r(7792), - r(34), - r(7460), - r(3327), - r(706), - r(9824), - r(2112), - r(888), - r(5109), - r(8568), - r(4242), - r(9968), - r(7660), - r(1148), - r(3615), - r(2807), - r(1077), - r(6475), - r(6991), - r(2209), - r(452), - r(4253), - r(1857), - r(4454), - r(3974) - ) - })(this, function (t) { - return t - }) - }, - 4433: function (t, e, r) { - ;(function (i, n) { - if (true) t.exports = e = n(r(8249)) - })(this, function (t) { - ;(function () { - if ('function' != typeof ArrayBuffer) return - var e = t - var r = e.lib - var i = r.WordArray - var n = i.init - var s = (i.init = function (t) { - if (t instanceof ArrayBuffer) t = new Uint8Array(t) - if ( - t instanceof Int8Array || - ('undefined' !== typeof Uint8ClampedArray && - t instanceof Uint8ClampedArray) || - t instanceof Int16Array || - t instanceof Uint16Array || - t instanceof Int32Array || - t instanceof Uint32Array || - t instanceof Float32Array || - t instanceof Float64Array - ) - t = new Uint8Array(t.buffer, t.byteOffset, t.byteLength) - if (t instanceof Uint8Array) { - var e = t.byteLength - var r = [] - for (var i = 0; i < e; i++) - r[i >>> 2] |= t[i] << (24 - (i % 4) * 8) - n.call(this, r, e) - } else n.apply(this, arguments) - }) - s.prototype = i - })() - return t.lib.WordArray - }) - }, - 8214: function (t, e, r) { - ;(function (i, n) { - if (true) t.exports = e = n(r(8249)) - })(this, function (t) { - ;(function (e) { - var r = t - var i = r.lib - var n = i.WordArray - var s = i.Hasher - var a = r.algo - var o = [] - ;(function () { - for (var t = 0; t < 64; t++) - o[t] = (4294967296 * e.abs(e.sin(t + 1))) | 0 - })() - var u = (a.MD5 = s.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 - var n = t[i] - t[i] = - (16711935 & ((n << 8) | (n >>> 24))) | - (4278255360 & ((n << 24) | (n >>> 8))) - } - var s = this._hash.words - var a = t[e + 0] - var u = t[e + 1] - var d = t[e + 2] - var v = t[e + 3] - var p = t[e + 4] - var g = t[e + 5] - var y = t[e + 6] - var m = t[e + 7] - var _ = t[e + 8] - var S = t[e + 9] - var E = t[e + 10] - var b = t[e + 11] - var w = t[e + 12] - var D = t[e + 13] - var T = t[e + 14] - var A = t[e + 15] - var M = s[0] - var I = s[1] - var R = s[2] - var x = s[3] - M = c(M, I, R, x, a, 7, o[0]) - x = c(x, M, I, R, u, 12, o[1]) - R = c(R, x, M, I, d, 17, o[2]) - I = c(I, R, x, M, v, 22, o[3]) - M = c(M, I, R, x, p, 7, o[4]) - x = c(x, M, I, R, g, 12, o[5]) - R = c(R, x, M, I, y, 17, o[6]) - I = c(I, R, x, M, m, 22, o[7]) - M = c(M, I, R, x, _, 7, o[8]) - x = c(x, M, I, R, S, 12, o[9]) - R = c(R, x, M, I, E, 17, o[10]) - I = c(I, R, x, M, b, 22, o[11]) - M = c(M, I, R, x, w, 7, o[12]) - x = c(x, M, I, R, D, 12, o[13]) - R = c(R, x, M, I, T, 17, o[14]) - I = c(I, R, x, M, A, 22, o[15]) - M = l(M, I, R, x, u, 5, o[16]) - x = l(x, M, I, R, y, 9, o[17]) - R = l(R, x, M, I, b, 14, o[18]) - I = l(I, R, x, M, a, 20, o[19]) - M = l(M, I, R, x, g, 5, o[20]) - x = l(x, M, I, R, E, 9, o[21]) - R = l(R, x, M, I, A, 14, o[22]) - I = l(I, R, x, M, p, 20, o[23]) - M = l(M, I, R, x, S, 5, o[24]) - x = l(x, M, I, R, T, 9, o[25]) - R = l(R, x, M, I, v, 14, o[26]) - I = l(I, R, x, M, _, 20, o[27]) - M = l(M, I, R, x, D, 5, o[28]) - x = l(x, M, I, R, d, 9, o[29]) - R = l(R, x, M, I, m, 14, o[30]) - I = l(I, R, x, M, w, 20, o[31]) - M = f(M, I, R, x, g, 4, o[32]) - x = f(x, M, I, R, _, 11, o[33]) - R = f(R, x, M, I, b, 16, o[34]) - I = f(I, R, x, M, T, 23, o[35]) - M = f(M, I, R, x, u, 4, o[36]) - x = f(x, M, I, R, p, 11, o[37]) - R = f(R, x, M, I, m, 16, o[38]) - I = f(I, R, x, M, E, 23, o[39]) - M = f(M, I, R, x, D, 4, o[40]) - x = f(x, M, I, R, a, 11, o[41]) - R = f(R, x, M, I, v, 16, o[42]) - I = f(I, R, x, M, y, 23, o[43]) - M = f(M, I, R, x, S, 4, o[44]) - x = f(x, M, I, R, w, 11, o[45]) - R = f(R, x, M, I, A, 16, o[46]) - I = f(I, R, x, M, d, 23, o[47]) - M = h(M, I, R, x, a, 6, o[48]) - x = h(x, M, I, R, m, 10, o[49]) - R = h(R, x, M, I, T, 15, o[50]) - I = h(I, R, x, M, g, 21, o[51]) - M = h(M, I, R, x, w, 6, o[52]) - x = h(x, M, I, R, v, 10, o[53]) - R = h(R, x, M, I, E, 15, o[54]) - I = h(I, R, x, M, u, 21, o[55]) - M = h(M, I, R, x, _, 6, o[56]) - x = h(x, M, I, R, A, 10, o[57]) - R = h(R, x, M, I, y, 15, o[58]) - I = h(I, R, x, M, D, 21, o[59]) - M = h(M, I, R, x, p, 6, o[60]) - x = h(x, M, I, R, b, 10, o[61]) - R = h(R, x, M, I, d, 15, o[62]) - I = h(I, R, x, M, S, 21, o[63]) - s[0] = (s[0] + M) | 0 - s[1] = (s[1] + I) | 0 - s[2] = (s[2] + R) | 0 - s[3] = (s[3] + x) | 0 - }, - _doFinalize: function () { - var t = this._data - var r = t.words - var i = 8 * this._nDataBytes - var n = 8 * t.sigBytes - r[n >>> 5] |= 128 << (24 - (n % 32)) - var s = e.floor(i / 4294967296) - var a = i - r[(((n + 64) >>> 9) << 4) + 15] = - (16711935 & ((s << 8) | (s >>> 24))) | - (4278255360 & ((s << 24) | (s >>> 8))) - r[(((n + 64) >>> 9) << 4) + 14] = - (16711935 & ((a << 8) | (a >>> 24))) | - (4278255360 & ((a << 24) | (a >>> 8))) - t.sigBytes = 4 * (r.length + 1) - this._process() - var o = this._hash - var u = o.words - for (var c = 0; c < 4; c++) { - var l = u[c] - u[c] = - (16711935 & ((l << 8) | (l >>> 24))) | - (4278255360 & ((l << 24) | (l >>> 8))) - } - return o - }, - clone: function () { - var t = s.clone.call(this) - t._hash = this._hash.clone() - return t - }, - })) - function c(t, e, r, i, n, s, a) { - var o = t + ((e & r) | (~e & i)) + n + a - return ((o << s) | (o >>> (32 - s))) + e - } - function l(t, e, r, i, n, s, a) { - var o = t + ((e & i) | (r & ~i)) + n + a - return ((o << s) | (o >>> (32 - s))) + e - } - function f(t, e, r, i, n, s, a) { - var o = t + (e ^ r ^ i) + n + a - return ((o << s) | (o >>> (32 - s))) + e - } - function h(t, e, r, i, n, s, a) { - var o = t + (r ^ (e | ~i)) + n + a - return ((o << s) | (o >>> (32 - s))) + e - } - r.MD5 = s._createHelper(u) - r.HmacMD5 = s._createHmacHelper(u) - })(Math) - return t.MD5 - }) - }, - 8568: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(5109)) - })(this, function (t) { - t.mode.CFB = (function () { - var e = t.lib.BlockCipherMode.extend() - e.Encryptor = e.extend({ - processBlock: function (t, e) { - var i = this._cipher - var n = i.blockSize - r.call(this, t, e, n, i) - this._prevBlock = t.slice(e, e + n) - }, - }) - e.Decryptor = e.extend({ - processBlock: function (t, e) { - var i = this._cipher - var n = i.blockSize - var s = t.slice(e, e + n) - r.call(this, t, e, n, i) - this._prevBlock = s - }, - }) - function r(t, e, r, i) { - var n - var s = this._iv - if (s) { - n = s.slice(0) - this._iv = void 0 - } else n = this._prevBlock - i.encryptBlock(n, 0) - for (var a = 0; a < r; a++) t[e + a] ^= n[a] - } - return e - })() - return t.mode.CFB - }) - }, - 9968: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(5109)) - })(this, function (t) { - t.mode.CTRGladman = (function () { - var e = t.lib.BlockCipherMode.extend() - function r(t) { - if (255 === ((t >> 24) & 255)) { - var e = (t >> 16) & 255 - var r = (t >> 8) & 255 - var i = 255 & t - if (255 === e) { - e = 0 - if (255 === r) { - r = 0 - if (255 === i) i = 0 - else ++i - } else ++r - } else ++e - t = 0 - t += e << 16 - t += r << 8 - t += i - } else t += 1 << 24 - return t - } - function i(t) { - if (0 === (t[0] = r(t[0]))) t[1] = r(t[1]) - return t - } - var n = (e.Encryptor = e.extend({ - processBlock: function (t, e) { - var r = this._cipher - var n = r.blockSize - var s = this._iv - var a = this._counter - if (s) { - a = this._counter = s.slice(0) - this._iv = void 0 - } - i(a) - var o = a.slice(0) - r.encryptBlock(o, 0) - for (var u = 0; u < n; u++) t[e + u] ^= o[u] - }, - })) - e.Decryptor = n - return e - })() - return t.mode.CTRGladman - }) - }, - 4242: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(5109)) - })(this, function (t) { - t.mode.CTR = (function () { - var e = t.lib.BlockCipherMode.extend() - var r = (e.Encryptor = e.extend({ - processBlock: function (t, e) { - var r = this._cipher - var i = r.blockSize - var n = this._iv - var s = this._counter - if (n) { - s = this._counter = n.slice(0) - this._iv = void 0 - } - var a = s.slice(0) - r.encryptBlock(a, 0) - s[i - 1] = (s[i - 1] + 1) | 0 - for (var o = 0; o < i; o++) t[e + o] ^= a[o] - }, - })) - e.Decryptor = r - return e - })() - return t.mode.CTR - }) - }, - 1148: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(5109)) - })(this, function (t) { - t.mode.ECB = (function () { - var e = t.lib.BlockCipherMode.extend() - e.Encryptor = e.extend({ - processBlock: function (t, e) { - this._cipher.encryptBlock(t, e) - }, - }) - e.Decryptor = e.extend({ - processBlock: function (t, e) { - this._cipher.decryptBlock(t, e) - }, - }) - return e - })() - return t.mode.ECB - }) - }, - 7660: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(5109)) - })(this, function (t) { - t.mode.OFB = (function () { - var e = t.lib.BlockCipherMode.extend() - var r = (e.Encryptor = e.extend({ - processBlock: function (t, e) { - var r = this._cipher - var i = r.blockSize - var n = this._iv - var s = this._keystream - if (n) { - s = this._keystream = n.slice(0) - this._iv = void 0 - } - r.encryptBlock(s, 0) - for (var a = 0; a < i; a++) t[e + a] ^= s[a] - }, - })) - e.Decryptor = r - return e - })() - return t.mode.OFB - }) - }, - 3615: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(5109)) - })(this, function (t) { - t.pad.AnsiX923 = { - pad: function (t, e) { - var r = t.sigBytes - var i = 4 * e - var n = i - (r % i) - var s = r + n - 1 - t.clamp() - t.words[s >>> 2] |= n << (24 - (s % 4) * 8) - t.sigBytes += n - }, - unpad: function (t) { - var e = 255 & t.words[(t.sigBytes - 1) >>> 2] - t.sigBytes -= e - }, - } - return t.pad.Ansix923 - }) - }, - 2807: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(5109)) - })(this, function (t) { - t.pad.Iso10126 = { - pad: function (e, r) { - var i = 4 * r - var n = i - (e.sigBytes % i) - e.concat(t.lib.WordArray.random(n - 1)).concat( - t.lib.WordArray.create([n << 24], 1) - ) - }, - unpad: function (t) { - var e = 255 & t.words[(t.sigBytes - 1) >>> 2] - t.sigBytes -= e - }, - } - return t.pad.Iso10126 - }) - }, - 1077: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(5109)) - })(this, function (t) { - t.pad.Iso97971 = { - pad: function (e, r) { - e.concat(t.lib.WordArray.create([2147483648], 1)) - t.pad.ZeroPadding.pad(e, r) - }, - unpad: function (e) { - t.pad.ZeroPadding.unpad(e) - e.sigBytes-- - }, - } - return t.pad.Iso97971 - }) - }, - 6991: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(5109)) - })(this, function (t) { - t.pad.NoPadding = { pad: function () {}, unpad: function () {} } - return t.pad.NoPadding - }) - }, - 6475: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(5109)) - })(this, function (t) { - t.pad.ZeroPadding = { - pad: function (t, e) { - var r = 4 * e - t.clamp() - t.sigBytes += r - (t.sigBytes % r || r) - }, - unpad: function (t) { - var e = t.words - var r = t.sigBytes - 1 - for (var r = t.sigBytes - 1; r >= 0; r--) - if ((e[r >>> 2] >>> (24 - (r % 4) * 8)) & 255) { - t.sigBytes = r + 1 - break - } - }, - } - return t.pad.ZeroPadding - }) - }, - 2112: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(2783), r(9824)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.Base - var n = r.WordArray - var s = e.algo - var a = s.SHA1 - var o = s.HMAC - var u = (s.PBKDF2 = i.extend({ - cfg: i.extend({ keySize: 128 / 32, hasher: a, iterations: 1 }), - init: function (t) { - this.cfg = this.cfg.extend(t) - }, - compute: function (t, e) { - var r = this.cfg - var i = o.create(r.hasher, t) - var s = n.create() - var a = n.create([1]) - var u = s.words - var c = a.words - var l = r.keySize - var f = r.iterations - while (u.length < l) { - var h = i.update(e).finalize(a) - i.reset() - var d = h.words - var v = d.length - var p = h - for (var g = 1; g < f; g++) { - p = i.finalize(p) - i.reset() - var y = p.words - for (var m = 0; m < v; m++) d[m] ^= y[m] - } - s.concat(h) - c[0]++ - } - s.sigBytes = 4 * l - return s - }, - })) - e.PBKDF2 = function (t, e, r) { - return u.create(r).compute(t, e) - } - })() - return t.PBKDF2 - }) - }, - 3974: function (t, e, r) { - ;(function (i, n, s) { - if (true) - t.exports = e = n(r(8249), r(8269), r(8214), r(888), r(5109)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.StreamCipher - var n = e.algo - var s = [] - var a = [] - var o = [] - var u = (n.RabbitLegacy = i.extend({ - _doReset: function () { - var t = this._key.words - var e = this.cfg.iv - var r = (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), - ]) - var i = (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]), - ]) - this._b = 0 - for (var n = 0; n < 4; n++) c.call(this) - for (var n = 0; n < 8; n++) i[n] ^= r[(n + 4) & 7] - if (e) { - var s = e.words - var a = s[0] - var o = s[1] - var u = - (16711935 & ((a << 8) | (a >>> 24))) | - (4278255360 & ((a << 24) | (a >>> 8))) - var l = - (16711935 & ((o << 8) | (o >>> 24))) | - (4278255360 & ((o << 24) | (o >>> 8))) - var f = (u >>> 16) | (4294901760 & l) - var h = (l << 16) | (65535 & u) - i[0] ^= u - i[1] ^= f - i[2] ^= l - i[3] ^= h - i[4] ^= u - i[5] ^= f - i[6] ^= l - i[7] ^= h - for (var n = 0; n < 4; n++) c.call(this) - } - }, - _doProcessBlock: function (t, e) { - var r = this._X - c.call(this) - s[0] = r[0] ^ (r[5] >>> 16) ^ (r[3] << 16) - s[1] = r[2] ^ (r[7] >>> 16) ^ (r[5] << 16) - s[2] = r[4] ^ (r[1] >>> 16) ^ (r[7] << 16) - s[3] = r[6] ^ (r[3] >>> 16) ^ (r[1] << 16) - for (var i = 0; i < 4; i++) { - s[i] = - (16711935 & ((s[i] << 8) | (s[i] >>> 24))) | - (4278255360 & ((s[i] << 24) | (s[i] >>> 8))) - t[e + i] ^= s[i] - } - }, - blockSize: 128 / 32, - ivSize: 64 / 32, - })) - function c() { - var t = this._X - var e = this._C - for (var r = 0; r < 8; r++) a[r] = e[r] - e[0] = (e[0] + 1295307597 + this._b) | 0 - e[1] = (e[1] + 3545052371 + (e[0] >>> 0 < a[0] >>> 0 ? 1 : 0)) | 0 - e[2] = (e[2] + 886263092 + (e[1] >>> 0 < a[1] >>> 0 ? 1 : 0)) | 0 - e[3] = (e[3] + 1295307597 + (e[2] >>> 0 < a[2] >>> 0 ? 1 : 0)) | 0 - e[4] = (e[4] + 3545052371 + (e[3] >>> 0 < a[3] >>> 0 ? 1 : 0)) | 0 - e[5] = (e[5] + 886263092 + (e[4] >>> 0 < a[4] >>> 0 ? 1 : 0)) | 0 - e[6] = (e[6] + 1295307597 + (e[5] >>> 0 < a[5] >>> 0 ? 1 : 0)) | 0 - e[7] = (e[7] + 3545052371 + (e[6] >>> 0 < a[6] >>> 0 ? 1 : 0)) | 0 - this._b = e[7] >>> 0 < a[7] >>> 0 ? 1 : 0 - for (var r = 0; r < 8; r++) { - var i = t[r] + e[r] - var n = 65535 & i - var s = i >>> 16 - var u = ((((n * n) >>> 17) + n * s) >>> 15) + s * s - var c = (((4294901760 & i) * i) | 0) + (((65535 & i) * i) | 0) - o[r] = u ^ c - } - t[0] = - (o[0] + - ((o[7] << 16) | (o[7] >>> 16)) + - ((o[6] << 16) | (o[6] >>> 16))) | - 0 - t[1] = (o[1] + ((o[0] << 8) | (o[0] >>> 24)) + o[7]) | 0 - t[2] = - (o[2] + - ((o[1] << 16) | (o[1] >>> 16)) + - ((o[0] << 16) | (o[0] >>> 16))) | - 0 - t[3] = (o[3] + ((o[2] << 8) | (o[2] >>> 24)) + o[1]) | 0 - t[4] = - (o[4] + - ((o[3] << 16) | (o[3] >>> 16)) + - ((o[2] << 16) | (o[2] >>> 16))) | - 0 - t[5] = (o[5] + ((o[4] << 8) | (o[4] >>> 24)) + o[3]) | 0 - t[6] = - (o[6] + - ((o[5] << 16) | (o[5] >>> 16)) + - ((o[4] << 16) | (o[4] >>> 16))) | - 0 - t[7] = (o[7] + ((o[6] << 8) | (o[6] >>> 24)) + o[5]) | 0 - } - e.RabbitLegacy = i._createHelper(u) - })() - return t.RabbitLegacy - }) - }, - 4454: function (t, e, r) { - ;(function (i, n, s) { - if (true) - t.exports = e = n(r(8249), r(8269), r(8214), r(888), r(5109)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.StreamCipher - var n = e.algo - var s = [] - var a = [] - var o = [] - var u = (n.Rabbit = i.extend({ - _doReset: function () { - var t = this._key.words - var e = this.cfg.iv - for (var 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), - ]) - var 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]), - ]) - this._b = 0 - for (var r = 0; r < 4; r++) c.call(this) - for (var r = 0; r < 8; r++) n[r] ^= i[(r + 4) & 7] - if (e) { - var s = e.words - var a = s[0] - var o = s[1] - var u = - (16711935 & ((a << 8) | (a >>> 24))) | - (4278255360 & ((a << 24) | (a >>> 8))) - var l = - (16711935 & ((o << 8) | (o >>> 24))) | - (4278255360 & ((o << 24) | (o >>> 8))) - var f = (u >>> 16) | (4294901760 & l) - var h = (l << 16) | (65535 & u) - n[0] ^= u - n[1] ^= f - n[2] ^= l - n[3] ^= h - n[4] ^= u - n[5] ^= f - n[6] ^= l - n[7] ^= h - for (var r = 0; r < 4; r++) c.call(this) - } - }, - _doProcessBlock: function (t, e) { - var r = this._X - c.call(this) - s[0] = r[0] ^ (r[5] >>> 16) ^ (r[3] << 16) - s[1] = r[2] ^ (r[7] >>> 16) ^ (r[5] << 16) - s[2] = r[4] ^ (r[1] >>> 16) ^ (r[7] << 16) - s[3] = r[6] ^ (r[3] >>> 16) ^ (r[1] << 16) - for (var i = 0; i < 4; i++) { - s[i] = - (16711935 & ((s[i] << 8) | (s[i] >>> 24))) | - (4278255360 & ((s[i] << 24) | (s[i] >>> 8))) - t[e + i] ^= s[i] - } - }, - blockSize: 128 / 32, - ivSize: 64 / 32, - })) - function c() { - var t = this._X - var e = this._C - for (var r = 0; r < 8; r++) a[r] = e[r] - e[0] = (e[0] + 1295307597 + this._b) | 0 - e[1] = (e[1] + 3545052371 + (e[0] >>> 0 < a[0] >>> 0 ? 1 : 0)) | 0 - e[2] = (e[2] + 886263092 + (e[1] >>> 0 < a[1] >>> 0 ? 1 : 0)) | 0 - e[3] = (e[3] + 1295307597 + (e[2] >>> 0 < a[2] >>> 0 ? 1 : 0)) | 0 - e[4] = (e[4] + 3545052371 + (e[3] >>> 0 < a[3] >>> 0 ? 1 : 0)) | 0 - e[5] = (e[5] + 886263092 + (e[4] >>> 0 < a[4] >>> 0 ? 1 : 0)) | 0 - e[6] = (e[6] + 1295307597 + (e[5] >>> 0 < a[5] >>> 0 ? 1 : 0)) | 0 - e[7] = (e[7] + 3545052371 + (e[6] >>> 0 < a[6] >>> 0 ? 1 : 0)) | 0 - this._b = e[7] >>> 0 < a[7] >>> 0 ? 1 : 0 - for (var r = 0; r < 8; r++) { - var i = t[r] + e[r] - var n = 65535 & i - var s = i >>> 16 - var u = ((((n * n) >>> 17) + n * s) >>> 15) + s * s - var c = (((4294901760 & i) * i) | 0) + (((65535 & i) * i) | 0) - o[r] = u ^ c - } - t[0] = - (o[0] + - ((o[7] << 16) | (o[7] >>> 16)) + - ((o[6] << 16) | (o[6] >>> 16))) | - 0 - t[1] = (o[1] + ((o[0] << 8) | (o[0] >>> 24)) + o[7]) | 0 - t[2] = - (o[2] + - ((o[1] << 16) | (o[1] >>> 16)) + - ((o[0] << 16) | (o[0] >>> 16))) | - 0 - t[3] = (o[3] + ((o[2] << 8) | (o[2] >>> 24)) + o[1]) | 0 - t[4] = - (o[4] + - ((o[3] << 16) | (o[3] >>> 16)) + - ((o[2] << 16) | (o[2] >>> 16))) | - 0 - t[5] = (o[5] + ((o[4] << 8) | (o[4] >>> 24)) + o[3]) | 0 - t[6] = - (o[6] + - ((o[5] << 16) | (o[5] >>> 16)) + - ((o[4] << 16) | (o[4] >>> 16))) | - 0 - t[7] = (o[7] + ((o[6] << 8) | (o[6] >>> 24)) + o[5]) | 0 - } - e.Rabbit = i._createHelper(u) - })() - return t.Rabbit - }) - }, - 1857: function (t, e, r) { - ;(function (i, n, s) { - if (true) - t.exports = e = n(r(8249), r(8269), r(8214), r(888), r(5109)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.StreamCipher - var n = e.algo - var s = (n.RC4 = i.extend({ - _doReset: function () { - var t = this._key - var e = t.words - var r = t.sigBytes - var i = (this._S = []) - for (var n = 0; n < 256; n++) i[n] = n - for (var n = 0, s = 0; n < 256; n++) { - var a = n % r - var o = (e[a >>> 2] >>> (24 - (a % 4) * 8)) & 255 - s = (s + i[n] + o) % 256 - var u = i[n] - i[n] = i[s] - i[s] = u - } - this._i = this._j = 0 - }, - _doProcessBlock: function (t, e) { - t[e] ^= a.call(this) - }, - keySize: 256 / 32, - ivSize: 0, - })) - function a() { - var t = this._S - var e = this._i - var r = this._j - var i = 0 - for (var n = 0; n < 4; n++) { - e = (e + 1) % 256 - r = (r + t[e]) % 256 - var s = t[e] - t[e] = t[r] - t[r] = s - i |= t[(t[e] + t[r]) % 256] << (24 - 8 * n) - } - this._i = e - this._j = r - return i - } - e.RC4 = i._createHelper(s) - var o = (n.RC4Drop = s.extend({ - cfg: s.cfg.extend({ drop: 192 }), - _doReset: function () { - s._doReset.call(this) - for (var t = this.cfg.drop; t > 0; t--) a.call(this) - }, - })) - e.RC4Drop = i._createHelper(o) - })() - return t.RC4 - }) - }, - 706: function (t, e, r) { - ;(function (i, n) { - if (true) t.exports = e = n(r(8249)) - })(this, function (t) { - ;(function (e) { - var r = t - var i = r.lib - var n = i.WordArray - var s = i.Hasher - var a = r.algo - var o = n.create([ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, - 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, - 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, - 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, - 13, - ]) - var u = n.create([ - 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, - 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, - 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, - 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, - 9, 11, - ]) - var c = n.create([ - 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, - 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, - 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, - 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, - 13, 14, 11, 8, 5, 6, - ]) - var l = n.create([ - 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, - 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, - 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, - 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, - 15, 13, 11, 11, - ]) - var f = n.create([ - 0, 1518500249, 1859775393, 2400959708, 2840853838, - ]) - var h = n.create([ - 1352829926, 1548603684, 1836072691, 2053994217, 0, - ]) - var d = (a.RIPEMD160 = s.extend({ - _doReset: function () { - this._hash = n.create([ - 1732584193, 4023233417, 2562383102, 271733878, 3285377520, - ]) - }, - _doProcessBlock: function (t, e) { - for (var r = 0; r < 16; r++) { - var i = e + r - var n = t[i] - t[i] = - (16711935 & ((n << 8) | (n >>> 24))) | - (4278255360 & ((n << 24) | (n >>> 8))) - } - var s = this._hash.words - var a = f.words - var d = h.words - var S = o.words - var E = u.words - var b = c.words - var w = l.words - var D, T, A, M, I - var R, x, B, C, O - R = D = s[0] - x = T = s[1] - B = A = s[2] - C = M = s[3] - O = I = s[4] - var k - for (var r = 0; r < 80; r += 1) { - k = (D + t[e + S[r]]) | 0 - if (r < 16) k += v(T, A, M) + a[0] - else if (r < 32) k += p(T, A, M) + a[1] - else if (r < 48) k += g(T, A, M) + a[2] - else if (r < 64) k += y(T, A, M) + a[3] - else k += m(T, A, M) + a[4] - k |= 0 - k = _(k, b[r]) - k = (k + I) | 0 - D = I - I = M - M = _(A, 10) - A = T - T = k - k = (R + t[e + E[r]]) | 0 - if (r < 16) k += m(x, B, C) + d[0] - else if (r < 32) k += y(x, B, C) + d[1] - else if (r < 48) k += g(x, B, C) + d[2] - else if (r < 64) k += p(x, B, C) + d[3] - else k += v(x, B, C) + d[4] - k |= 0 - k = _(k, w[r]) - k = (k + O) | 0 - R = O - O = C - C = _(B, 10) - B = x - x = k - } - k = (s[1] + A + C) | 0 - s[1] = (s[2] + M + O) | 0 - s[2] = (s[3] + I + R) | 0 - s[3] = (s[4] + D + x) | 0 - s[4] = (s[0] + T + B) | 0 - s[0] = k - }, - _doFinalize: function () { - var t = this._data - var e = t.words - var r = 8 * this._nDataBytes - var i = 8 * t.sigBytes - e[i >>> 5] |= 128 << (24 - (i % 32)) - e[(((i + 64) >>> 9) << 4) + 14] = - (16711935 & ((r << 8) | (r >>> 24))) | - (4278255360 & ((r << 24) | (r >>> 8))) - t.sigBytes = 4 * (e.length + 1) - this._process() - var n = this._hash - var s = n.words - for (var a = 0; a < 5; a++) { - var o = s[a] - s[a] = - (16711935 & ((o << 8) | (o >>> 24))) | - (4278255360 & ((o << 24) | (o >>> 8))) - } - return n - }, - clone: function () { - var t = s.clone.call(this) - t._hash = this._hash.clone() - return t - }, - })) - function v(t, e, r) { - return t ^ e ^ r - } - function p(t, e, r) { - return (t & e) | (~t & r) - } - function g(t, e, r) { - return (t | ~e) ^ r - } - function y(t, e, r) { - return (t & r) | (e & ~r) - } - function m(t, e, r) { - return t ^ (e | ~r) - } - function _(t, e) { - return (t << e) | (t >>> (32 - e)) - } - r.RIPEMD160 = s._createHelper(d) - r.HmacRIPEMD160 = s._createHmacHelper(d) - })(Math) - return t.RIPEMD160 - }) - }, - 2783: function (t, e, r) { - ;(function (i, n) { - if (true) t.exports = e = n(r(8249)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.WordArray - var n = r.Hasher - var s = e.algo - var a = [] - var o = (s.SHA1 = n.extend({ - _doReset: function () { - this._hash = new i.init([ - 1732584193, 4023233417, 2562383102, 271733878, 3285377520, - ]) - }, - _doProcessBlock: function (t, e) { - var r = this._hash.words - var i = r[0] - var n = r[1] - var s = r[2] - var o = r[3] - var u = r[4] - for (var c = 0; c < 80; c++) { - if (c < 16) a[c] = 0 | t[e + c] - else { - var l = a[c - 3] ^ a[c - 8] ^ a[c - 14] ^ a[c - 16] - a[c] = (l << 1) | (l >>> 31) - } - var f = ((i << 5) | (i >>> 27)) + u + a[c] - if (c < 20) f += ((n & s) | (~n & o)) + 1518500249 - else if (c < 40) f += (n ^ s ^ o) + 1859775393 - else if (c < 60) - f += ((n & s) | (n & o) | (s & o)) - 1894007588 - else f += (n ^ s ^ o) - 899497514 - u = o - o = s - s = (n << 30) | (n >>> 2) - n = i - i = f - } - r[0] = (r[0] + i) | 0 - r[1] = (r[1] + n) | 0 - r[2] = (r[2] + s) | 0 - r[3] = (r[3] + o) | 0 - r[4] = (r[4] + u) | 0 - }, - _doFinalize: function () { - var t = this._data - var e = t.words - var r = 8 * this._nDataBytes - var i = 8 * t.sigBytes - e[i >>> 5] |= 128 << (24 - (i % 32)) - e[(((i + 64) >>> 9) << 4) + 14] = Math.floor(r / 4294967296) - e[(((i + 64) >>> 9) << 4) + 15] = r - t.sigBytes = 4 * e.length - this._process() - return this._hash - }, - clone: function () { - var t = n.clone.call(this) - t._hash = this._hash.clone() - return t - }, - })) - e.SHA1 = n._createHelper(o) - e.HmacSHA1 = n._createHmacHelper(o) - })() - return t.SHA1 - }) - }, - 7792: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(2153)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.WordArray - var n = e.algo - var s = n.SHA256 - var a = (n.SHA224 = s.extend({ - _doReset: function () { - this._hash = new i.init([ - 3238371032, 914150663, 812702999, 4144912697, 4290775857, - 1750603025, 1694076839, 3204075428, - ]) - }, - _doFinalize: function () { - var t = s._doFinalize.call(this) - t.sigBytes -= 4 - return t - }, - })) - e.SHA224 = s._createHelper(a) - e.HmacSHA224 = s._createHmacHelper(a) - })() - return t.SHA224 - }) - }, - 2153: function (t, e, r) { - ;(function (i, n) { - if (true) t.exports = e = n(r(8249)) - })(this, function (t) { - ;(function (e) { - var r = t - var i = r.lib - var n = i.WordArray - var s = i.Hasher - var a = r.algo - var o = [] - var u = [] - ;(function () { - function t(t) { - var r = e.sqrt(t) - for (var i = 2; i <= r; i++) if (!(t % i)) return false - return true - } - function r(t) { - return (4294967296 * (t - (0 | t))) | 0 - } - var i = 2 - var n = 0 - while (n < 64) { - if (t(i)) { - if (n < 8) o[n] = r(e.pow(i, 1 / 2)) - u[n] = r(e.pow(i, 1 / 3)) - n++ - } - i++ - } - })() - var c = [] - var l = (a.SHA256 = s.extend({ - _doReset: function () { - this._hash = new n.init(o.slice(0)) - }, - _doProcessBlock: function (t, e) { - var r = this._hash.words - var i = r[0] - var n = r[1] - var s = r[2] - var a = r[3] - var o = r[4] - var l = r[5] - var f = r[6] - var h = r[7] - for (var d = 0; d < 64; d++) { - if (d < 16) c[d] = 0 | t[e + d] - else { - var v = c[d - 15] - var p = - ((v << 25) | (v >>> 7)) ^ - ((v << 14) | (v >>> 18)) ^ - (v >>> 3) - var g = c[d - 2] - var y = - ((g << 15) | (g >>> 17)) ^ - ((g << 13) | (g >>> 19)) ^ - (g >>> 10) - c[d] = p + c[d - 7] + y + c[d - 16] - } - var m = (o & l) ^ (~o & f) - var _ = (i & n) ^ (i & s) ^ (n & s) - var S = - ((i << 30) | (i >>> 2)) ^ - ((i << 19) | (i >>> 13)) ^ - ((i << 10) | (i >>> 22)) - var E = - ((o << 26) | (o >>> 6)) ^ - ((o << 21) | (o >>> 11)) ^ - ((o << 7) | (o >>> 25)) - var b = h + E + m + u[d] + c[d] - var w = S + _ - h = f - f = l - l = o - o = (a + b) | 0 - a = s - s = n - n = i - i = (b + w) | 0 - } - r[0] = (r[0] + i) | 0 - r[1] = (r[1] + n) | 0 - r[2] = (r[2] + s) | 0 - r[3] = (r[3] + a) | 0 - r[4] = (r[4] + o) | 0 - r[5] = (r[5] + l) | 0 - r[6] = (r[6] + f) | 0 - r[7] = (r[7] + h) | 0 - }, - _doFinalize: function () { - var t = this._data - var r = t.words - var i = 8 * this._nDataBytes - var n = 8 * t.sigBytes - r[n >>> 5] |= 128 << (24 - (n % 32)) - r[(((n + 64) >>> 9) << 4) + 14] = e.floor(i / 4294967296) - r[(((n + 64) >>> 9) << 4) + 15] = i - t.sigBytes = 4 * r.length - this._process() - return this._hash - }, - clone: function () { - var t = s.clone.call(this) - t._hash = this._hash.clone() - return t - }, - })) - r.SHA256 = s._createHelper(l) - r.HmacSHA256 = s._createHmacHelper(l) - })(Math) - return t.SHA256 - }) - }, - 3327: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(4938)) - })(this, function (t) { - ;(function (e) { - var r = t - var i = r.lib - var n = i.WordArray - var s = i.Hasher - var a = r.x64 - var o = a.Word - var u = r.algo - var c = [] - var l = [] - var f = [] - ;(function () { - var t = 1, - e = 0 - for (var r = 0; r < 24; r++) { - c[t + 5 * e] = (((r + 1) * (r + 2)) / 2) % 64 - var i = e % 5 - var n = (2 * t + 3 * e) % 5 - t = i - e = n - } - for (var t = 0; t < 5; t++) - for (var e = 0; e < 5; e++) - l[t + 5 * e] = e + ((2 * t + 3 * e) % 5) * 5 - var s = 1 - for (var a = 0; a < 24; a++) { - var u = 0 - var h = 0 - for (var d = 0; d < 7; d++) { - if (1 & s) { - var v = (1 << d) - 1 - if (v < 32) h ^= 1 << v - else u ^= 1 << (v - 32) - } - if (128 & s) s = (s << 1) ^ 113 - else s <<= 1 - } - f[a] = o.create(u, h) - } - })() - var h = [] - ;(function () { - for (var t = 0; t < 25; t++) h[t] = o.create() - })() - var d = (u.SHA3 = s.extend({ - cfg: s.cfg.extend({ outputLength: 512 }), - _doReset: function () { - var t = (this._state = []) - for (var e = 0; e < 25; e++) t[e] = new o.init() - this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32 - }, - _doProcessBlock: function (t, e) { - var r = this._state - var i = this.blockSize / 2 - for (var n = 0; n < i; n++) { - var s = t[e + 2 * n] - var a = t[e + 2 * n + 1] - s = - (16711935 & ((s << 8) | (s >>> 24))) | - (4278255360 & ((s << 24) | (s >>> 8))) - a = - (16711935 & ((a << 8) | (a >>> 24))) | - (4278255360 & ((a << 24) | (a >>> 8))) - var o = r[n] - o.high ^= a - o.low ^= s - } - for (var u = 0; u < 24; u++) { - for (var d = 0; d < 5; d++) { - var v = 0, - p = 0 - for (var g = 0; g < 5; g++) { - var o = r[d + 5 * g] - v ^= o.high - p ^= o.low - } - var y = h[d] - y.high = v - y.low = p - } - for (var d = 0; d < 5; d++) { - var m = h[(d + 4) % 5] - var _ = h[(d + 1) % 5] - var S = _.high - var E = _.low - var v = m.high ^ ((S << 1) | (E >>> 31)) - var p = m.low ^ ((E << 1) | (S >>> 31)) - for (var g = 0; g < 5; g++) { - var o = r[d + 5 * g] - o.high ^= v - o.low ^= p - } - } - for (var b = 1; b < 25; b++) { - var v - var p - var o = r[b] - var w = o.high - var D = o.low - var T = c[b] - if (T < 32) { - v = (w << T) | (D >>> (32 - T)) - p = (D << T) | (w >>> (32 - T)) - } else { - v = (D << (T - 32)) | (w >>> (64 - T)) - p = (w << (T - 32)) | (D >>> (64 - T)) - } - var A = h[l[b]] - A.high = v - A.low = p - } - var M = h[0] - var I = r[0] - M.high = I.high - M.low = I.low - for (var d = 0; d < 5; d++) - for (var g = 0; g < 5; g++) { - var b = d + 5 * g - var o = r[b] - var R = h[b] - var x = h[((d + 1) % 5) + 5 * g] - var B = h[((d + 2) % 5) + 5 * g] - o.high = R.high ^ (~x.high & B.high) - o.low = R.low ^ (~x.low & B.low) - } - var o = r[0] - var C = f[u] - o.high ^= C.high - o.low ^= C.low - } - }, - _doFinalize: function () { - var t = this._data - var r = t.words - var i = 8 * this._nDataBytes - var s = 8 * t.sigBytes - var a = 32 * this.blockSize - r[s >>> 5] |= 1 << (24 - (s % 32)) - r[((e.ceil((s + 1) / a) * a) >>> 5) - 1] |= 128 - t.sigBytes = 4 * r.length - this._process() - var o = this._state - var u = this.cfg.outputLength / 8 - var c = u / 8 - var l = [] - for (var f = 0; f < c; f++) { - var h = o[f] - var d = h.high - var v = h.low - d = - (16711935 & ((d << 8) | (d >>> 24))) | - (4278255360 & ((d << 24) | (d >>> 8))) - v = - (16711935 & ((v << 8) | (v >>> 24))) | - (4278255360 & ((v << 24) | (v >>> 8))) - l.push(v) - l.push(d) - } - return new n.init(l, u) - }, - clone: function () { - var t = s.clone.call(this) - var e = (t._state = this._state.slice(0)) - for (var r = 0; r < 25; r++) e[r] = e[r].clone() - return t - }, - })) - r.SHA3 = s._createHelper(d) - r.HmacSHA3 = s._createHmacHelper(d) - })(Math) - return t.SHA3 - }) - }, - 7460: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(4938), r(34)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.x64 - var i = r.Word - var n = r.WordArray - var s = e.algo - var a = s.SHA512 - var o = (s.SHA384 = a.extend({ - _doReset: function () { - this._hash = new n.init([ - new i.init(3418070365, 3238371032), - new i.init(1654270250, 914150663), - new i.init(2438529370, 812702999), - new i.init(355462360, 4144912697), - new i.init(1731405415, 4290775857), - new i.init(2394180231, 1750603025), - new i.init(3675008525, 1694076839), - new i.init(1203062813, 3204075428), - ]) - }, - _doFinalize: function () { - var t = a._doFinalize.call(this) - t.sigBytes -= 16 - return t - }, - })) - e.SHA384 = a._createHelper(o) - e.HmacSHA384 = a._createHmacHelper(o) - })() - return t.SHA384 - }) - }, - 34: function (t, e, r) { - ;(function (i, n, s) { - if (true) t.exports = e = n(r(8249), r(4938)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.Hasher - var n = e.x64 - var s = n.Word - var a = n.WordArray - var o = e.algo - function u() { - return s.create.apply(s, arguments) - } - var c = [ - u(1116352408, 3609767458), - u(1899447441, 602891725), - u(3049323471, 3964484399), - u(3921009573, 2173295548), - u(961987163, 4081628472), - u(1508970993, 3053834265), - u(2453635748, 2937671579), - u(2870763221, 3664609560), - u(3624381080, 2734883394), - u(310598401, 1164996542), - u(607225278, 1323610764), - u(1426881987, 3590304994), - u(1925078388, 4068182383), - u(2162078206, 991336113), - u(2614888103, 633803317), - u(3248222580, 3479774868), - u(3835390401, 2666613458), - u(4022224774, 944711139), - u(264347078, 2341262773), - u(604807628, 2007800933), - u(770255983, 1495990901), - u(1249150122, 1856431235), - u(1555081692, 3175218132), - u(1996064986, 2198950837), - u(2554220882, 3999719339), - u(2821834349, 766784016), - u(2952996808, 2566594879), - u(3210313671, 3203337956), - u(3336571891, 1034457026), - u(3584528711, 2466948901), - u(113926993, 3758326383), - u(338241895, 168717936), - u(666307205, 1188179964), - u(773529912, 1546045734), - u(1294757372, 1522805485), - u(1396182291, 2643833823), - u(1695183700, 2343527390), - u(1986661051, 1014477480), - u(2177026350, 1206759142), - u(2456956037, 344077627), - u(2730485921, 1290863460), - u(2820302411, 3158454273), - u(3259730800, 3505952657), - u(3345764771, 106217008), - u(3516065817, 3606008344), - u(3600352804, 1432725776), - u(4094571909, 1467031594), - u(275423344, 851169720), - u(430227734, 3100823752), - u(506948616, 1363258195), - u(659060556, 3750685593), - u(883997877, 3785050280), - u(958139571, 3318307427), - u(1322822218, 3812723403), - u(1537002063, 2003034995), - u(1747873779, 3602036899), - u(1955562222, 1575990012), - u(2024104815, 1125592928), - u(2227730452, 2716904306), - u(2361852424, 442776044), - u(2428436474, 593698344), - u(2756734187, 3733110249), - u(3204031479, 2999351573), - u(3329325298, 3815920427), - u(3391569614, 3928383900), - u(3515267271, 566280711), - u(3940187606, 3454069534), - u(4118630271, 4000239992), - u(116418474, 1914138554), - u(174292421, 2731055270), - u(289380356, 3203993006), - u(460393269, 320620315), - u(685471733, 587496836), - u(852142971, 1086792851), - u(1017036298, 365543100), - u(1126000580, 2618297676), - u(1288033470, 3409855158), - u(1501505948, 4234509866), - u(1607167915, 987167468), - u(1816402316, 1246189591), - ] - var l = [] - ;(function () { - for (var t = 0; t < 80; t++) l[t] = u() - })() - var f = (o.SHA512 = i.extend({ - _doReset: function () { - this._hash = new a.init([ - new s.init(1779033703, 4089235720), - new s.init(3144134277, 2227873595), - new s.init(1013904242, 4271175723), - new s.init(2773480762, 1595750129), - new s.init(1359893119, 2917565137), - new s.init(2600822924, 725511199), - new s.init(528734635, 4215389547), - new s.init(1541459225, 327033209), - ]) - }, - _doProcessBlock: function (t, e) { - var r = this._hash.words - var i = r[0] - var n = r[1] - var s = r[2] - var a = r[3] - var o = r[4] - var u = r[5] - var f = r[6] - var h = r[7] - var d = i.high - var v = i.low - var p = n.high - var g = n.low - var y = s.high - var m = s.low - var _ = a.high - var S = a.low - var E = o.high - var b = o.low - var w = u.high - var D = u.low - var T = f.high - var A = f.low - var M = h.high - var I = h.low - var R = d - var x = v - var B = p - var C = g - var O = y - var k = m - var P = _ - var N = S - var V = E - var H = b - var L = w - var K = D - var U = T - var j = A - var F = M - var z = I - for (var q = 0; q < 80; q++) { - var G - var Y - var W = l[q] - if (q < 16) { - Y = W.high = 0 | t[e + 2 * q] - G = W.low = 0 | t[e + 2 * q + 1] - } else { - var J = l[q - 15] - var $ = J.high - var Z = J.low - var X = - (($ >>> 1) | (Z << 31)) ^ - (($ >>> 8) | (Z << 24)) ^ - ($ >>> 7) - var Q = - ((Z >>> 1) | ($ << 31)) ^ - ((Z >>> 8) | ($ << 24)) ^ - ((Z >>> 7) | ($ << 25)) - var tt = l[q - 2] - var et = tt.high - var rt = tt.low - var it = - ((et >>> 19) | (rt << 13)) ^ - ((et << 3) | (rt >>> 29)) ^ - (et >>> 6) - var nt = - ((rt >>> 19) | (et << 13)) ^ - ((rt << 3) | (et >>> 29)) ^ - ((rt >>> 6) | (et << 26)) - var st = l[q - 7] - var at = st.high - var ot = st.low - var ut = l[q - 16] - var ct = ut.high - var lt = ut.low - G = Q + ot - Y = X + at + (G >>> 0 < Q >>> 0 ? 1 : 0) - G += nt - Y = Y + it + (G >>> 0 < nt >>> 0 ? 1 : 0) - G += lt - Y = Y + ct + (G >>> 0 < lt >>> 0 ? 1 : 0) - W.high = Y - W.low = G - } - var ft = (V & L) ^ (~V & U) - var ht = (H & K) ^ (~H & j) - var dt = (R & B) ^ (R & O) ^ (B & O) - var vt = (x & C) ^ (x & k) ^ (C & k) - var pt = - ((R >>> 28) | (x << 4)) ^ - ((R << 30) | (x >>> 2)) ^ - ((R << 25) | (x >>> 7)) - var gt = - ((x >>> 28) | (R << 4)) ^ - ((x << 30) | (R >>> 2)) ^ - ((x << 25) | (R >>> 7)) - var yt = - ((V >>> 14) | (H << 18)) ^ - ((V >>> 18) | (H << 14)) ^ - ((V << 23) | (H >>> 9)) - var mt = - ((H >>> 14) | (V << 18)) ^ - ((H >>> 18) | (V << 14)) ^ - ((H << 23) | (V >>> 9)) - var _t = c[q] - var St = _t.high - var Et = _t.low - var bt = z + mt - var wt = F + yt + (bt >>> 0 < z >>> 0 ? 1 : 0) - var bt = bt + ht - var wt = wt + ft + (bt >>> 0 < ht >>> 0 ? 1 : 0) - var bt = bt + Et - var wt = wt + St + (bt >>> 0 < Et >>> 0 ? 1 : 0) - var bt = bt + G - var wt = wt + Y + (bt >>> 0 < G >>> 0 ? 1 : 0) - var Dt = gt + vt - var Tt = pt + dt + (Dt >>> 0 < gt >>> 0 ? 1 : 0) - F = U - z = j - U = L - j = K - L = V - K = H - H = (N + bt) | 0 - V = (P + wt + (H >>> 0 < N >>> 0 ? 1 : 0)) | 0 - P = O - N = k - O = B - k = C - B = R - C = x - x = (bt + Dt) | 0 - R = (wt + Tt + (x >>> 0 < bt >>> 0 ? 1 : 0)) | 0 - } - v = i.low = v + x - i.high = d + R + (v >>> 0 < x >>> 0 ? 1 : 0) - g = n.low = g + C - n.high = p + B + (g >>> 0 < C >>> 0 ? 1 : 0) - m = s.low = m + k - s.high = y + O + (m >>> 0 < k >>> 0 ? 1 : 0) - S = a.low = S + N - a.high = _ + P + (S >>> 0 < N >>> 0 ? 1 : 0) - b = o.low = b + H - o.high = E + V + (b >>> 0 < H >>> 0 ? 1 : 0) - D = u.low = D + K - u.high = w + L + (D >>> 0 < K >>> 0 ? 1 : 0) - A = f.low = A + j - f.high = T + U + (A >>> 0 < j >>> 0 ? 1 : 0) - I = h.low = I + z - h.high = M + F + (I >>> 0 < z >>> 0 ? 1 : 0) - }, - _doFinalize: function () { - var t = this._data - var e = t.words - var r = 8 * this._nDataBytes - var i = 8 * t.sigBytes - e[i >>> 5] |= 128 << (24 - (i % 32)) - e[(((i + 128) >>> 10) << 5) + 30] = Math.floor(r / 4294967296) - e[(((i + 128) >>> 10) << 5) + 31] = r - t.sigBytes = 4 * e.length - this._process() - var n = this._hash.toX32() - return n - }, - clone: function () { - var t = i.clone.call(this) - t._hash = this._hash.clone() - return t - }, - blockSize: 1024 / 32, - })) - e.SHA512 = i._createHelper(f) - e.HmacSHA512 = i._createHmacHelper(f) - })() - return t.SHA512 - }) - }, - 4253: function (t, e, r) { - ;(function (i, n, s) { - if (true) - t.exports = e = n(r(8249), r(8269), r(8214), r(888), r(5109)) - })(this, function (t) { - ;(function () { - var e = t - var r = e.lib - var i = r.WordArray - var n = r.BlockCipher - var s = e.algo - var a = [ - 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, - ] - var o = [ - 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, - ] - var u = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28] - var c = [ - { - 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, - }, - ] - var l = [ - 4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, - 2147483679, - ] - var f = (s.DES = n.extend({ - _doReset: function () { - var t = this._key - var e = t.words - var r = [] - for (var i = 0; i < 56; i++) { - var n = a[i] - 1 - r[i] = (e[n >>> 5] >>> (31 - (n % 32))) & 1 - } - var s = (this._subKeys = []) - for (var c = 0; c < 16; c++) { - var l = (s[c] = []) - var f = u[c] - for (var i = 0; i < 24; i++) { - l[(i / 6) | 0] |= r[(o[i] - 1 + f) % 28] << (31 - (i % 6)) - l[4 + ((i / 6) | 0)] |= - r[28 + ((o[i + 24] - 1 + f) % 28)] << (31 - (i % 6)) - } - l[0] = (l[0] << 1) | (l[0] >>> 31) - for (var i = 1; i < 7; i++) l[i] = l[i] >>> (4 * (i - 1) + 3) - l[7] = (l[7] << 5) | (l[7] >>> 27) - } - var h = (this._invSubKeys = []) - for (var i = 0; i < 16; i++) h[i] = s[15 - i] - }, - 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] - h.call(this, 4, 252645135) - h.call(this, 16, 65535) - d.call(this, 2, 858993459) - d.call(this, 8, 16711935) - h.call(this, 1, 1431655765) - for (var i = 0; i < 16; i++) { - var n = r[i] - var s = this._lBlock - var a = this._rBlock - var o = 0 - for (var u = 0; u < 8; u++) - o |= c[u][((a ^ n[u]) & l[u]) >>> 0] - this._lBlock = a - this._rBlock = s ^ o - } - var f = this._lBlock - this._lBlock = this._rBlock - this._rBlock = f - h.call(this, 1, 1431655765) - d.call(this, 8, 16711935) - d.call(this, 2, 858993459) - h.call(this, 16, 65535) - h.call(this, 4, 252645135) - t[e] = this._lBlock - t[e + 1] = this._rBlock - }, - keySize: 64 / 32, - ivSize: 64 / 32, - blockSize: 64 / 32, - })) - function h(t, e) { - var r = ((this._lBlock >>> t) ^ this._rBlock) & e - this._rBlock ^= r - this._lBlock ^= r << t - } - function d(t, e) { - var r = ((this._rBlock >>> t) ^ this._lBlock) & e - this._lBlock ^= r - this._rBlock ^= r << t - } - e.DES = n._createHelper(f) - var v = (s.TripleDES = n.extend({ - _doReset: function () { - var t = this._key - var e = t.words - if (2 !== e.length && 4 !== e.length && e.length < 6) - throw new Error( - 'Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.' - ) - var r = e.slice(0, 2) - var n = e.length < 4 ? e.slice(0, 2) : e.slice(2, 4) - var s = e.length < 6 ? e.slice(0, 2) : e.slice(4, 6) - this._des1 = f.createEncryptor(i.create(r)) - this._des2 = f.createEncryptor(i.create(n)) - this._des3 = f.createEncryptor(i.create(s)) - }, - 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: 192 / 32, - ivSize: 64 / 32, - blockSize: 64 / 32, - })) - e.TripleDES = n._createHelper(v) - })() - return t.TripleDES - }) - }, - 4938: function (t, e, r) { - ;(function (i, n) { - if (true) t.exports = e = n(r(8249)) - })(this, function (t) { - ;(function (e) { - var r = t - var i = r.lib - var n = i.Base - var s = i.WordArray - var a = (r.x64 = {}) - var o = (a.Word = n.extend({ - init: function (t, e) { - this.high = t - this.low = e - }, - })) - var u = (a.WordArray = n.extend({ - init: function (t, r) { - t = this.words = t || [] - if (r != e) this.sigBytes = r - else this.sigBytes = 8 * t.length - }, - toX32: function () { - var t = this.words - var e = t.length - var r = [] - for (var i = 0; i < e; i++) { - var n = t[i] - r.push(n.high) - r.push(n.low) - } - return s.create(r, this.sigBytes) - }, - clone: function () { - var t = n.clone.call(this) - var e = (t.words = this.words.slice(0)) - var r = e.length - for (var i = 0; i < r; i++) e[i] = e[i].clone() - return t - }, - })) - })() - return t - }) - }, - 3118: (t, e) => { - 'use strict' - Object.defineProperty(e, '__esModule', { value: true }) - e.ErrorCode = void 0 - var r - ;(function (t) { - t[(t['SUCCESS'] = 0)] = 'SUCCESS' - t[(t['CLIENT_ID_NOT_FOUND'] = 1)] = 'CLIENT_ID_NOT_FOUND' - t[(t['OPERATION_TOO_OFTEN'] = 2)] = 'OPERATION_TOO_OFTEN' - t[(t['REPEAT_MESSAGE'] = 3)] = 'REPEAT_MESSAGE' - t[(t['TIME_OUT'] = 4)] = 'TIME_OUT' - })((r = e.ErrorCode || (e.ErrorCode = {}))) - }, - 5987: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(1901)) - const s = i(r(1754)) - const a = i(r(1237)) - var o - ;(function (t) { - function e(t) { - a.default.debugMode = t - a.default.info(`setDebugMode: ${t}`) - } - t.setDebugMode = e - function r(t) { - try { - f(t.appid) - n.default.init(t) - } catch (t) { - a.default.error(`init error`, t) - } - } - t.init = r - function i(t) { - try { - n.default.setTag(t) - } catch (t) { - a.default.error(`setTag error`, t) - } - } - t.setTag = i - function o(t) { - try { - n.default.bindAlias(t) - } catch (t) { - a.default.error(`bindAlias error`, t) - } - } - t.bindAlias = o - function u(t) { - try { - n.default.unbindAlias(t) - } catch (t) { - a.default.error(`unbindAlias error`, t) - } - } - t.unbindAlias = u - function c(t) { - try { - if (!t.url) throw new Error('invalid url') - if (!t.key || !t.keyId) throw new Error('invalid key or keyId') - s.default.socketUrl = t.url - s.default.publicKeyId = t.keyId - s.default.publicKey = t.key - } catch (t) { - a.default.error(`setSocketServer error`, t) - } - } - t.setSocketServer = c - function l(t) { - try { - n.default.enableSocket(t) - } catch (t) { - a.default.error(`enableSocket error`, t) - } - } - t.enableSocket = l - function f(t) { - if (null == t || void 0 == t || '' == t.trim()) - throw new Error(`invalid appid ${t}`) - } - })(o || (o = {})) - e['default'] = o - }, - 127: (t, e) => { - 'use strict' - Object.defineProperty(e, '__esModule', { value: true }) - var r - ;(function (t) { - t.SDK_VERSION = 'GTMP-1.0.0.0' - t.DEFAULT_SOCKET_URL = 'wss://wshz.getui.net:5223/nws' - t.SOCKET_PROTOCOL_VERSION = '1.0' - t.SERVER_PUBLIC_KEY = - 'MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB' - t.SERVER_PUBLIC_KEY_ID = '69d747c4b9f641baf4004be4297e9f3b' - })(r || (r = {})) - e['default'] = r - }, - 1901: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(3593)) - const s = i(r(1237)) - const a = r(3118) - const o = i(r(1754)) - const u = i(r(3854)) - const c = i(r(9018)) - const l = i(r(5084)) - class f { - static init(t) { - if (this.inited) return - try { - this.inited = true - s.default.info(`init: appid=${t.appid}`) - o.default.init(t) - n.default.connect() - } catch (t) { - this.inited = false - } - } - static enableSocket(t) { - this.checkInit() - n.default.allowReconnect = t - if (t) n.default.reconnect(0) - else n.default.close(`enableSocket ${t}`) - } - static setTag(t) { - var e - this.checkInit() - if (!o.default.cid) { - null === (e = t.setTagResult) || - void 0 === e || - e.call(t.setTagResult, { - resultCode: a.ErrorCode.CLIENT_ID_NOT_FOUND, - message: 'client id not found', - }) - return - } - c.default.create(t.tags, t.setTagResult).send() - } - static bindAlias(t) { - var e, r - this.checkInit() - if (!o.default.cid) { - null === (e = t.bindAliasResult) || - void 0 === e || - e.call(t.bindAliasResult, { - resultCode: a.ErrorCode.CLIENT_ID_NOT_FOUND, - message: 'client id not found', - }) - return - } - let i = new Date().getTime() - if (i - o.default.lastAliasTime < 1 * 1e3) { - s.default.error( - `bind alias fail: alias option can only be called once a second` - ) - null === (r = t.bindAliasResult) || - void 0 === r || - r.call(t.bindAliasResult, { - resultCode: a.ErrorCode.OPERATION_TOO_OFTEN, - message: 'alias option can only be called once a second', - }) - return - } - u.default.create(t.alias, true, t.bindAliasResult).send() - o.default.lastAliasTime = i - } - static unbindAlias(t) { - var e, r - this.checkInit() - if (!o.default.cid) { - null === (e = t.unbindAliasResult) || - void 0 === e || - e.call(t.unbindAliasResult, { - resultCode: a.ErrorCode.CLIENT_ID_NOT_FOUND, - message: 'client id not found', - }) - return - } - let i = new Date().getTime() - if (i - o.default.lastAliasTime < 1 * 1e3) { - s.default.error( - `unbindAlias alias fail: alias option can only be called once a second` - ) - null === (r = t.unbindAliasResult) || - void 0 === r || - r.call(t.unbindAliasResult, { - resultCode: a.ErrorCode.OPERATION_TOO_OFTEN, - message: 'alias option can only be called once a second', - }) - return - } - l.default.create(t.alias, t.onlySelf, t.unbindAliasResult).send() - o.default.lastAliasTime = i - } - static turnOff() {} - static turnOn() {} - static checkInit() { - if (!this.inited) - throw new Error(`not init, please invoke init method firstly`) - } - } - f.inited = false - e['default'] = f - }, - 1754: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(323)) - const s = i(r(207)) - const a = i(r(127)) - const o = i(r(3593)) - const u = i(r(1237)) - const c = i(r(3270)) - class l { - static init(t) { - var e - this.appid = t.appid - this.onClientId = t.onClientId - this.onlineState = t.onlineState - this.onPushMsg = t.onPushMsg - if ( - this.appid != s.default.getSync(s.default.KEY_APPID, this.appid) - ) { - u.default.info('appid changed, clear session and cid') - s.default.setSync(s.default.KEY_CID, '') - s.default.setSync(s.default.KEY_SESSION, '') - } - s.default.setSync(s.default.KEY_APPID, this.appid) - this.cid = s.default.getSync(s.default.KEY_CID, this.cid) - if (this.cid) - null === (e = this.onClientId) || - void 0 === e || - e.call(this, { cid: l.cid }) - this.session = s.default.getSync( - s.default.KEY_SESSION, - this.session - ) - this.deviceId = s.default.getSync( - s.default.KEY_DEVICE_ID, - this.deviceId - ) - this.regId = s.default.getSync(s.default.KEY_REGID, this.regId) - if (!this.regId) { - this.regId = this.createRegId() - s.default.set({ key: s.default.KEY_REGID, data: this.regId }) - } - this.socketUrl = s.default.getSync( - s.default.KEY_SOCKET_URL, - this.socketUrl - ) - let r = this - c.default.getNetworkType({ - success: (t) => { - r.networkType = t - r.networkConnected = - 'none' != r.networkType && '' != r.networkType - }, - }) - c.default.onNetworkStatusChange((t) => { - r.networkConnected = t.isConnected - r.networkType = t.networkType - if (r.networkConnected) o.default.reconnect(0) - }) - } - static createRegId() { - return `M-V${n.default.md5Hex( - this.getUuid() - )}-${new Date().getTime()}` - } - static getUuid() { - return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace( - /[xy]/g, - function (t) { - let e = (16 * Math.random()) | 0, - r = 'x' === t ? e : (3 & e) | 8 - return r.toString(16) - } - ) - } - } - l.appid = '' - l.cid = '' - l.regId = '' - l.session = '' - l.deviceId = '' - l.packetId = 1 - l.online = false - l.socketUrl = a.default.DEFAULT_SOCKET_URL - l.publicKeyId = a.default.SERVER_PUBLIC_KEY_ID - l.publicKey = a.default.SERVER_PUBLIC_KEY - l.lastAliasTime = 0 - l.networkConnected = true - l.networkType = 'none' - e['default'] = l - }, - 9214: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - var n, s - Object.defineProperty(e, '__esModule', { value: true }) - const a = i(r(9800)) - const o = r(3118) - const u = i(r(1754)) - class c extends a.default { - constructor() { - super(...arguments) - this.actionMsgData = new l() - } - static initActionMsg(t, ...e) { - super.initMsg(t) - t.command = a.default.Command.CLIENT_MSG - t.data = t.actionMsgData = l.create() - return t - } - static parseActionMsg(t, e) { - super.parseMsg(t, e) - t.actionMsgData = l.parse(t.data) - return t - } - send() { - let t = setTimeout(() => { - var t - if ( - c.waitingLoginMsgMap.has(this.actionMsgData.msgId) || - c.waitingResponseMsgMap.has(this.actionMsgData.msgId) - ) { - c.waitingLoginMsgMap.delete(this.actionMsgData.msgId) - c.waitingResponseMsgMap.delete(this.actionMsgData.msgId) - null === (t = this.callback) || - void 0 === t || - t.call(this.callback, { - resultCode: o.ErrorCode.TIME_OUT, - message: 'waiting time out', - }) - } - }, 1e4) - if (!u.default.online) { - c.waitingLoginMsgMap.set(this.actionMsgData.msgId, this) - return - } - if (this.actionMsgData.msgAction != c.ClientAction.RECEIVED) - c.waitingResponseMsgMap.set(this.actionMsgData.msgId, this) - super.send() - } - receive() {} - static sendWaitingMessages() { - let t = this.waitingLoginMsgMap.keys() - let e - while (((e = t.next()), !e.done)) { - let t = this.waitingLoginMsgMap.get(e.value) - this.waitingLoginMsgMap.delete(e.value) - null === t || void 0 === t || t.send() - } - } - static getWaitingResponseMessage(t) { - return c.waitingResponseMsgMap.get(t) - } - static removeWaitingResponseMessage(t) { - let e = c.waitingResponseMsgMap.get(t) - if (e) c.waitingResponseMsgMap.delete(t) - return e - } - } - c.ServerAction = - ((n = class {}), - (n.PUSH_MESSAGE = 'pushmessage'), - (n.REDIRECT_SERVER = 'redirect_server'), - (n.ADD_PHONE_INFO_RESULT = 'addphoneinfo'), - (n.SET_MODE_RESULT = 'set_mode_result'), - (n.SET_TAG_RESULT = 'settag_result'), - (n.BIND_ALIAS_RESULT = 'response_bind'), - (n.UNBIND_ALIAS_RESULT = 'response_unbind'), - (n.FEED_BACK_RESULT = 'pushmessage_feedback'), - (n.RECEIVED = 'received'), - n) - c.ClientAction = - ((s = class {}), - (s.ADD_PHONE_INFO = 'addphoneinfo'), - (s.SET_MODE = 'set_mode'), - (s.FEED_BACK = 'pushmessage_feedback'), - (s.SET_TAGS = 'set_tag'), - (s.BIND_ALIAS = 'bind_alias'), - (s.UNBIND_ALIAS = 'unbind_alias'), - (s.RECEIVED = 'received'), - s) - c.waitingLoginMsgMap = new Map() - c.waitingResponseMsgMap = new Map() - class l { - constructor() { - this.appId = '' - this.cid = '' - this.msgId = '' - this.msgAction = '' - this.msgData = '' - this.msgExtraData = '' - } - static create() { - let t = new l() - t.appId = u.default.appid - t.cid = u.default.cid - t.msgId = new Date().getTime().toString().substr(4) - return t - } - static parse(t) { - let e = new l() - let r = JSON.parse(t) - e.appId = r.appId - e.cid = r.cid - e.msgId = r.msgId - e.msgAction = r.msgAction - e.msgData = r.msgData - e.msgExtraData = r.msgExtraData - return e - } - } - e['default'] = c - }, - 708: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(3270)) - const s = i(r(207)) - const a = i(r(127)) - const o = r(3118) - const u = i(r(9214)) - const c = i(r(1754)) - class l extends u.default { - constructor() { - super(...arguments) - this.addPhoneInfoData = new f() - } - static create() { - let t = new l() - super.initActionMsg(t) - t.callback = (e) => { - if ( - e.resultCode != o.ErrorCode.SUCCESS && - e.resultCode != o.ErrorCode.REPEAT_MESSAGE - ) - setTimeout(function () { - t.send() - }, 30 * 1e3) - else - s.default.set({ - key: s.default.KEY_ADD_PHONE_INFO_TIME, - data: new Date().getTime(), - }) - } - t.actionMsgData.msgAction = u.default.ClientAction.ADD_PHONE_INFO - t.addPhoneInfoData = f.create() - t.actionMsgData.msgData = JSON.stringify(t.addPhoneInfoData) - return t - } - send() { - let t = new Date().getTime() - let e = s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME, 0) - if (t - e < 24 * 60 * 60 * 1e3) return - super.send() - } - } - class f { - constructor() { - this.model = '' - this.brand = '' - this.system_version = '' - this.version = '' - this.device_token = '' - this.imei = '' - this.oaid = '' - this.mac = '' - this.idfa = '' - this.deviceid = '' - this.type = '' - this.extra = { - os: '', - platform: '', - platformVersion: '', - platformId: '', - appVersion: '', - language: '', - } - } - static create() { - let t = new f() - t.model = n.default.model() - t.brand = n.default.brand() - t.system_version = n.default.osVersion() - t.version = a.default.SDK_VERSION - t.device_token = '' - t.imei = '' - t.oaid = '' - t.mac = '' - t.idfa = '' - t.type = 'MINI' - t.deviceid = `${t.type}-${c.default.deviceId}` - t.extra = { - os: n.default.os(), - platform: n.default.platform(), - platformVersion: n.default.platformVersion(), - platformId: n.default.platformId(), - appVersion: '', - language: n.default.language(), - } - return t - } - } - e['default'] = l - }, - 3854: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(1754)) - const s = i(r(9214)) - class a extends s.default { - constructor() { - super(...arguments) - this.bindAliasTagData = new o() - } - static create(t, e, r) { - let i = new a() - super.initActionMsg(i) - i.bindAliasTagData = o.create(t, e) - i.callback = r - i.actionMsgData.msgAction = s.default.ClientAction.BIND_ALIAS - i.actionMsgData.msgData = JSON.stringify(i.bindAliasTagData) - return i - } - } - class o { - constructor() { - this.alias = '' - this.cid = '' - this.appid = '' - this.sn = '' - this.is_self = '' - } - static create(t, e) { - let r = new o() - r.alias = t - r.cid = n.default.cid - r.appid = n.default.appid - r.sn = new Date().getTime().toString() - r.is_self = e ? '1' : '0' - return r - } - } - e['default'] = a - }, - 652: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - var n, s - Object.defineProperty(e, '__esModule', { value: true }) - const a = i(r(1754)) - const o = r(3118) - const u = i(r(9214)) - class c extends u.default { - constructor() { - super(...arguments) - this.feedbackData = new l() - } - static create(t, e) { - let r = new c() - super.initActionMsg(r) - r.callback = (t) => { - if ( - t.resultCode != o.ErrorCode.SUCCESS && - t.resultCode != o.ErrorCode.REPEAT_MESSAGE - ) - setTimeout(function () { - r.send() - }, 30 * 1e3) - } - r.feedbackData = l.create(t, e) - r.actionMsgData.msgAction = u.default.ClientAction.FEED_BACK - r.actionMsgData.msgData = JSON.stringify(r.feedbackData) - return r - } - send() { - super.send() - } - } - c.ActionId = - ((n = class {}), - (n.RECEIVE = '0'), - (n.MP_RECEIVE = '210000'), - (n.WEB_RECEIVE = '220000'), - (n.BEGIN = '1'), - n) - c.RESULT = ((s = class {}), (s.OK = 'ok'), s) - class l { - constructor() { - this.messageid = '' - this.appkey = '' - this.appid = '' - this.taskid = '' - this.actionid = '' - this.result = '' - this.timestamp = '' - } - static create(t, e) { - let r = new l() - r.messageid = t.pushMessageData.messageid - r.appkey = t.pushMessageData.appKey - r.appid = a.default.appid - r.taskid = t.pushMessageData.taskId - r.actionid = e - r.result = c.RESULT.OK - r.timestamp = new Date().getTime().toString() - return r - } - } - e['default'] = c - }, - 9018: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(1754)) - const s = i(r(9214)) - class a extends s.default { - constructor() { - super(...arguments) - this.setTagData = new o() - } - static create(t, e) { - let r = new a() - super.initActionMsg(r) - r.setTagData = o.create(t) - r.callback = e - r.actionMsgData.msgAction = s.default.ClientAction.SET_TAGS - r.actionMsgData.msgData = JSON.stringify(r.setTagData) - return r - } - } - class o { - constructor() { - this.appid = '' - this.tags = '' - this.sn = '' - } - static create(t) { - let e = new o() - e.appid = n.default.appid - e.tags = u(t) - e.sn = new Date().getTime().toString() - return e - } - } - function u(t) { - return encodeURIComponent(t) - .replace(/!/g, '%21') - .replace(/'/g, '%27') - .replace(/\(/g, '%28') - .replace(/\)/g, '%29') - .replace(/\*/g, '%2A') - } - e['default'] = a - }, - 5084: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(1754)) - const s = i(r(9214)) - class a extends s.default { - constructor() { - super(...arguments) - this.unbindAliasData = new o() - } - static create(t, e, r) { - let i = new a() - super.initActionMsg(i) - i.unbindAliasData = o.create(t, e) - i.callback = r - i.actionMsgData.msgAction = s.default.ClientAction.UNBIND_ALIAS - i.actionMsgData.msgData = JSON.stringify(i.unbindAliasData) - return i - } - } - class o { - constructor() { - this.alias = '' - this.cid = '' - this.appid = '' - this.sn = '' - this.is_self = '' - } - static create(t, e) { - let r = new o() - r.alias = t - r.cid = n.default.cid - r.appid = n.default.appid - r.sn = new Date().getTime().toString() - r.is_self = e ? '1' : '0' - return r - } - } - e['default'] = a - }, - 6561: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(9800)) - class s extends n.default { - static create() { - let t = new s() - super.initMsg(t) - t.command = n.default.Command.HEART_BEAT - return t - } - } - e['default'] = s - }, - 358: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(323)) - const s = i(r(1754)) - const a = i(r(9800)) - class o extends a.default { - constructor() { - super(...arguments) - this.keyNegotiateData = new u() - } - static create() { - let t = new o() - super.initMsg(t) - t.command = a.default.Command.KEY_NEGOTIATE - n.default.resetKey() - t.data = t.keyNegotiateData = u.create() - return t - } - send() { - super.send() - } - } - class u { - constructor() { - this.appId = '' - this.rsaPublicKeyId = '' - this.algorithm = '' - this.secretKey = '' - this.iv = '' - } - static create() { - let t = new u() - t.appId = s.default.appid - t.rsaPublicKeyId = s.default.publicKeyId - t.algorithm = 'AES' - t.secretKey = n.default.getEncryptedSecretKey() - t.iv = n.default.getEncryptedIV() - return t - } - } - e['default'] = o - }, - 5301: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(9800)) - const s = i(r(323)) - const a = i(r(2544)) - class o extends n.default { - constructor() { - super(...arguments) - this.keyNegotiateResultData = new u() - } - static parse(t) { - let e = new o() - super.parseMsg(e, t) - e.keyNegotiateResultData = u.parse(e.data) - return e - } - receive() { - if (0 != this.keyNegotiateResultData.errorCode) { - console.error(`key negotiate fail: ${this.data}`) - return - } - let t = this.keyNegotiateResultData.encryptType.split('/') - if ( - !s.default.algorithmMap.has(t[0].trim().toLowerCase()) || - !s.default.modeMap.has(t[1].trim().toLowerCase()) || - !s.default.paddingMap.has(t[2].trim().toLowerCase()) - ) { - console.error(`key negotiate fail: ${this.data}`) - return - } - s.default.setEncryptParams( - t[0].trim().toLowerCase(), - t[1].trim().toLowerCase(), - t[2].trim().toLowerCase() - ) - a.default.create().send() - } - } - class u { - constructor() { - this.errorCode = -1 - this.errorMsg = '' - this.encryptType = '' - } - static parse(t) { - let e = new u() - let r = JSON.parse(t) - e.errorCode = r.errorCode - e.errorMsg = r.errorMsg - e.encryptType = r.encryptType - return e - } - } - e['default'] = o - }, - 2544: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(1754)) - const s = i(r(323)) - const a = i(r(9800)) - const o = i(r(3527)) - class u extends a.default { - constructor() { - super(...arguments) - this.loginData = new c() - } - static create() { - let t = new u() - super.initMsg(t) - t.command = a.default.Command.LOGIN - t.data = t.loginData = c.create() - return t - } - send() { - if ( - !this.loginData.session || - n.default.cid != s.default.md5Hex(this.loginData.session) - ) { - o.default.create().send() - return - } - super.send() - } - } - class c { - constructor() { - this.appId = '' - this.session = '' - } - static create() { - let t = new c() - t.appId = n.default.appid - t.session = n.default.session - return t - } - } - e['default'] = u - }, - 8734: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(207)) - const s = i(r(9800)) - const a = i(r(1754)) - const o = i(r(9214)) - const u = i(r(708)) - const c = i(r(2544)) - class l extends s.default { - constructor() { - super(...arguments) - this.loginResultData = new f() - } - static parse(t) { - let e = new l() - super.parseMsg(e, t) - e.loginResultData = f.parse(e.data) - return e - } - receive() { - var t - if (0 != this.loginResultData.errorCode) { - this.data - a.default.session = a.default.cid = '' - n.default.setSync(n.default.KEY_CID, '') - n.default.setSync(n.default.KEY_SESSION, '') - c.default.create().send() - return - } - if (!a.default.online) { - a.default.online = true - null === (t = a.default.onlineState) || - void 0 === t || - t.call(a.default.onlineState, { online: a.default.online }) - } - o.default.sendWaitingMessages() - u.default.create().send() - } - } - class f { - constructor() { - this.errorCode = -1 - this.errorMsg = '' - this.session = '' - } - static parse(t) { - let e = new f() - let r = JSON.parse(t) - e.errorCode = r.errorCode - e.errorMsg = r.errorMsg - e.session = r.session - return e - } - } - e['default'] = l - }, - 9800: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - var n - Object.defineProperty(e, '__esModule', { value: true }) - const s = i(r(350)) - const a = i(r(3593)) - const o = i(r(127)) - const u = i(r(1754)) - class c { - constructor() { - this.version = '' - this.command = 0 - this.packetId = 0 - this.timeStamp = 0 - this.data = '' - this.signature = '' - } - static initMsg(t, ...e) { - t.version = o.default.SOCKET_PROTOCOL_VERSION - t.command = 0 - t.timeStamp = new Date().getTime() - return t - } - static parseMsg(t, e) { - let r = JSON.parse(e) - t.version = r.version - t.command = r.command - t.packetId = r.packetId - t.timeStamp = r.timeStamp - t.data = r.data - t.signature = r.signature - return t - } - stringify() { - return JSON.stringify(this, [ - 'version', - 'command', - 'packetId', - 'timeStamp', - 'data', - 'signature', - ]) - } - send() { - if (!a.default.isAvailable()) return - this.packetId = u.default.packetId++ - this.data = JSON.stringify(this.data) - this.stringify() - if (this.command != c.Command.HEART_BEAT) { - s.default.sign(this) - if (this.data && this.command != c.Command.KEY_NEGOTIATE) - s.default.encrypt(this) - } - a.default.send(this.stringify()) - } - } - c.Command = - ((n = class {}), - (n.HEART_BEAT = 0), - (n.KEY_NEGOTIATE = 1), - (n.KEY_NEGOTIATE_RESULT = 16), - (n.REGISTER = 2), - (n.REGISTER_RESULT = 32), - (n.LOGIN = 3), - (n.LOGIN_RESULT = 48), - (n.LOGOUT = 4), - (n.LOGOUT_RESULT = 64), - (n.CLIENT_MSG = 5), - (n.SERVER_MSG = 80), - (n.SERVER_CLOSE = 96), - n) - e['default'] = c - }, - 350: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(323)) - var s - ;(function (t) { - function e(t) { - t.data = n.default.encrypt(t.data) - } - t.encrypt = e - function r(t) { - t.data = n.default.decrypt(t.data) - } - t.decrypt = r - function i(t) { - t.signature = n.default.sha256( - `${t.timeStamp}${t.packetId}${t.command}${t.data}` - ) - } - t.sign = i - function s(t) { - let e = n.default.sha256( - `${t.timeStamp}${t.packetId}${t.command}${t.data}` - ) - if (t.signature != e) throw new Error(`msg signature vierfy failed`) - } - t.verify = s - })(s || (s = {})) - e['default'] = s - }, - 1236: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(5301)) - const s = i(r(8734)) - const a = i(r(9800)) - const o = i(r(7078)) - const u = i(r(538)) - const c = i(r(7821)) - const l = i(r(217)) - const f = i(r(7156)) - const h = i(r(2535)) - const d = i(r(9214)) - const v = i(r(7303)) - const p = i(r(6063)) - const g = i(r(7923)) - const y = i(r(350)) - const m = i(r(9214)) - const _ = i(r(6254)) - const S = i(r(5035)) - class E { - static receiveMessage(t) { - let e = a.default.parseMsg(new a.default(), t) - if ( - e.command != a.default.Command.KEY_NEGOTIATE_RESULT && - e.command != a.default.Command.HEART_BEAT && - e.command != a.default.Command.SERVER_CLOSE - ) - y.default.decrypt(e) - if ( - e.command != a.default.Command.HEART_BEAT && - e.command != a.default.Command.SERVER_CLOSE - ) - y.default.verify(e) - switch (e.command) { - case a.default.Command.KEY_NEGOTIATE_RESULT: - n.default.parse(e.stringify()).receive() - break - case a.default.Command.REGISTER_RESULT: - o.default.parse(e.stringify()).receive() - break - case a.default.Command.LOGIN_RESULT: - s.default.parse(e.stringify()).receive() - break - case a.default.Command.SERVER_MSG: - this.receiveActionMsg(e.stringify()) - break - case a.default.Command.SERVER_CLOSE: - S.default.parse(e.stringify()).receive() - break - default: - break - } - } - static receiveActionMsg(t) { - let e = m.default.parseActionMsg(new m.default(), t) - if ( - e.actionMsgData.msgAction != d.default.ServerAction.RECEIVED && - e.actionMsgData.msgAction != - d.default.ServerAction.REDIRECT_SERVER - ) { - let t = JSON.parse(e.actionMsgData.msgData) - _.default.create(t.id).send() - } - switch (e.actionMsgData.msgAction) { - case d.default.ServerAction.PUSH_MESSAGE: - f.default.parse(t).receive() - break - case d.default.ServerAction.REDIRECT_SERVER: - h.default.parse(t).receive() - break - case d.default.ServerAction.ADD_PHONE_INFO_RESULT: - u.default.parse(t).receive() - break - case d.default.ServerAction.SET_MODE_RESULT: - v.default.parse(t).receive() - break - case d.default.ServerAction.SET_TAG_RESULT: - p.default.parse(t).receive() - break - case d.default.ServerAction.BIND_ALIAS_RESULT: - c.default.parse(t).receive() - break - case d.default.ServerAction.UNBIND_ALIAS_RESULT: - g.default.parse(t).receive() - break - case d.default.ServerAction.FEED_BACK_RESULT: - l.default.parse(t).receive() - break - case d.default.ServerAction.RECEIVED: - _.default.parse(t).receive() - break - } - } - } - e['default'] = E - }, - 6254: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = r(3118) - const s = i(r(1754)) - const a = i(r(9214)) - class o extends a.default { - constructor() { - super(...arguments) - this.receivedData = new u() - } - static create(t) { - let e = new o() - super.initActionMsg(e) - e.callback = (t) => { - if ( - t.resultCode != n.ErrorCode.SUCCESS && - t.resultCode != n.ErrorCode.REPEAT_MESSAGE - ) - setTimeout(function () { - e.send() - }, 3 * 1e3) - } - e.actionMsgData.msgAction = a.default.ClientAction.RECEIVED - e.receivedData = u.create(t) - e.actionMsgData.msgData = JSON.stringify(e.receivedData) - return e - } - static parse(t) { - let e = new o() - super.parseActionMsg(e, t) - e.receivedData = u.parse(e.data) - return e - } - receive() { - var t - let e = a.default.getWaitingResponseMessage( - this.actionMsgData.msgId - ) - if ( - (e && - e.actionMsgData.msgAction == - a.default.ClientAction.ADD_PHONE_INFO) || - (e && - e.actionMsgData.msgAction == a.default.ClientAction.FEED_BACK) - ) { - a.default.removeWaitingResponseMessage(e.actionMsgData.msgId) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: n.ErrorCode.SUCCESS, - message: 'received', - }) - } - } - send() { - super.send() - } - } - class u { - constructor() { - this.msgId = '' - this.cid = '' - } - static create(t) { - let e = new u() - e.cid = s.default.cid - e.msgId = t - return e - } - static parse(t) { - let e = new u() - let r = JSON.parse(t) - e.cid = r.cid - e.msgId = r.msgId - return e - } - } - e['default'] = o - }, - 3527: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(1754)) - const s = i(r(9800)) - class a extends s.default { - constructor() { - super(...arguments) - this.registerData = new o() - } - static create() { - let t = new a() - super.initMsg(t) - t.command = s.default.Command.REGISTER - t.data = t.registerData = o.create() - return t - } - send() { - super.send() - } - } - class o { - constructor() { - this.appId = '' - this.regId = '' - } - static create() { - let t = new o() - t.appId = n.default.appid - t.regId = n.default.regId - return t - } - } - e['default'] = a - }, - 7078: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(9800)) - const s = i(r(207)) - const a = i(r(1754)) - const o = i(r(2544)) - class u extends n.default { - constructor() { - super(...arguments) - this.registerResultData = new c() - } - static parse(t) { - let e = new u() - super.parseMsg(e, t) - e.registerResultData = c.parse(e.data) - return e - } - receive() { - var t - if ( - 0 != this.registerResultData.errorCode || - !this.registerResultData.cid || - !this.registerResultData.session - ) { - console.error(`register fail: ${this.data}`) - return - } - if (a.default.cid != this.registerResultData.cid) - s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME, 0) - a.default.cid = this.registerResultData.cid - null === (t = a.default.onClientId) || - void 0 === t || - t.call(a.default.onClientId, { cid: a.default.cid }) - s.default.set({ key: s.default.KEY_CID, data: a.default.cid }) - a.default.session = this.registerResultData.session - s.default.set({ - key: s.default.KEY_SESSION, - data: a.default.session, - }) - a.default.deviceId = this.registerResultData.deviceId - s.default.set({ - key: s.default.KEY_DEVICE_ID, - data: a.default.deviceId, - }) - o.default.create().send() - } - } - class c { - constructor() { - this.errorCode = -1 - this.errorMsg = '' - this.cid = '' - this.session = '' - this.deviceId = '' - this.regId = '' - } - static parse(t) { - let e = new c() - let r = JSON.parse(t) - e.errorCode = r.errorCode - e.errorMsg = r.errorMsg - e.cid = r.cid - e.session = r.session - e.deviceId = r.deviceId - e.regId = r.regId - return e - } - } - e['default'] = u - }, - 5035: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(3593)) - const s = i(r(9800)) - class a extends s.default { - constructor() { - super(...arguments) - this.serverCloseData = new o() - } - static parse(t) { - let e = new a() - super.parseMsg(e, t) - e.serverCloseData = o.parse(e.data) - return e - } - receive() { - this.data - if ( - 20 == this.serverCloseData.code || - 23 == this.serverCloseData.code || - 24 == this.serverCloseData.code - ) - n.default.allowReconnect = false - n.default.close() - } - } - class o { - constructor() { - this.code = -1 - this.msg = '' - } - static parse(t) { - let e = new o() - let r = JSON.parse(t) - e.code = r.code - e.msg = r.msg - return e - } - } - e['default'] = a - }, - 538: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(207)) - const s = i(r(9214)) - class a extends s.default { - constructor() { - super(...arguments) - this.addPhoneInfoResultData = new o() - } - static parse(t) { - let e = new a() - super.parseActionMsg(e, t) - e.addPhoneInfoResultData = o.parse(e.actionMsgData.msgData) - return e - } - receive() { - var t - this.addPhoneInfoResultData - let e = s.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ) - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: this.addPhoneInfoResultData.errorCode, - message: this.addPhoneInfoResultData.errorMsg, - }) - n.default.set({ - key: n.default.KEY_ADD_PHONE_INFO_TIME, - data: new Date().getTime(), - }) - } - } - class o { - constructor() { - this.errorCode = -1 - this.errorMsg = '' - } - static parse(t) { - let e = new o() - let r = JSON.parse(t) - e.errorCode = r.errorCode - e.errorMsg = r.errorMsg - return e - } - } - e['default'] = a - }, - 7821: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(207)) - const s = i(r(1237)) - const a = i(r(9214)) - class o extends a.default { - constructor() { - super(...arguments) - this.bindAliasResultData = new u() - } - static parse(t) { - let e = new o() - super.parseActionMsg(e, t) - e.bindAliasResultData = u.parse(e.actionMsgData.msgData) - return e - } - receive() { - var t - s.default.info(`bind alias result`, this.bindAliasResultData) - let e = a.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ) - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: this.bindAliasResultData.errorCode, - message: this.bindAliasResultData.errorMsg, - }) - n.default.set({ - key: n.default.KEY_BIND_ALIAS_TIME, - data: new Date().getTime(), - }) - } - } - class u { - constructor() { - this.errorCode = -1 - this.errorMsg = '' - } - static parse(t) { - let e = new u() - let r = JSON.parse(t) - e.errorCode = r.errorCode - e.errorMsg = r.errorMsg - return e - } - } - e['default'] = o - }, - 217: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = r(3118) - const s = i(r(9214)) - class a extends s.default { - constructor() { - super(...arguments) - this.feedbackResultData = new o() - } - static parse(t) { - let e = new a() - super.parseActionMsg(e, t) - e.feedbackResultData = o.parse(e.actionMsgData.msgData) - return e - } - receive() { - var t - this.feedbackResultData - let e = s.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ) - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: n.ErrorCode.SUCCESS, - message: 'received', - }) - } - } - class o { - constructor() { - this.actionId = '' - this.taskId = '' - this.result = '' - } - static parse(t) { - let e = new o() - let r = JSON.parse(t) - e.actionId = r.actionId - e.taskId = r.taskId - e.result = r.result - return e - } - } - e['default'] = a - }, - 7156: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - var n - Object.defineProperty(e, '__esModule', { value: true }) - const s = i(r(1754)) - const a = i(r(9214)) - const o = i(r(652)) - class u extends a.default { - constructor() { - super(...arguments) - this.pushMessageData = new c() - } - static parse(t) { - let e = new u() - super.parseActionMsg(e, t) - e.pushMessageData = c.parse(e.actionMsgData.msgData) - return e - } - receive() { - var t - this.pushMessageData - if ( - this.pushMessageData.appId != s.default.appid || - !this.pushMessageData.messageid || - !this.pushMessageData.taskId - ) - this.stringify() - o.default.create(this, o.default.ActionId.RECEIVE).send() - o.default.create(this, o.default.ActionId.MP_RECEIVE).send() - if (this.actionMsgData.msgExtraData && s.default.onPushMsg) - null === (t = s.default.onPushMsg) || - void 0 === t || - t.call(s.default.onPushMsg, { - message: this.actionMsgData.msgExtraData, - }) - } - } - class c { - constructor() { - this.id = '' - this.appKey = '' - this.appId = '' - this.messageid = '' - this.taskId = '' - this.actionChain = [] - this.cdnType = '' - } - static parse(t) { - let e = new c() - let r = JSON.parse(t) - e.id = r.id - e.appKey = r.appKey - e.appId = r.appId - e.messageid = r.messageid - e.taskId = r.taskId - e.actionChain = r.actionChain - e.cdnType = r.cdnType - return e - } - } - class l { - constructor() { - this.type = '' - this.actionid = '' - this.do = '' - } - } - l.Type = - ((n = class {}), (n.GO_TO = 'goto'), (n.TRANSMIT = 'transmit'), n) - e['default'] = u - }, - 2535: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(3593)) - const s = i(r(1754)) - const a = i(r(9214)) - class o extends a.default { - constructor() { - super(...arguments) - this.redirectServerData = new u() - } - static parse(t) { - let e = new o() - super.parseActionMsg(e, t) - e.redirectServerData = u.parse(e.actionMsgData.msgData) - return e - } - receive() { - s.default.socketUrl = - this.redirectServerData.addressList.split(',')[0] - n.default.connect() - } - } - class u { - constructor() { - this.addressList = '' - this.delay = 0 - this.location = '' - this.idConfig = '' - } - static parse(t) { - let e = new u() - let r = JSON.parse(t) - e.addressList = r.addressList - e.delay = r.delay - e.location = r.location - e.idConfig = r.idConfig - return e - } - } - e['default'] = o - }, - 7303: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(9214)) - class s extends n.default { - constructor() { - super(...arguments) - this.setModeResultData = new a() - } - static parse(t) { - let e = new s() - super.parseActionMsg(e, t) - e.setModeResultData = a.parse(e.actionMsgData.msgData) - return e - } - receive() { - var t - this.setModeResultData - let e = n.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ) - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: this.setModeResultData.errorCode, - message: this.setModeResultData.errorMsg, - }) - } - } - class a { - constructor() { - this.errorCode = -1 - this.errorMsg = '' - } - static parse(t) { - let e = new a() - let r = JSON.parse(t) - e.errorCode = r.errorCode - e.errorMsg = r.errorMsg - return e - } - } - e['default'] = s - }, - 6063: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(207)) - const s = i(r(1237)) - const a = i(r(9214)) - class o extends a.default { - constructor() { - super(...arguments) - this.setTagResultData = new u() - } - static parse(t) { - let e = new o() - super.parseActionMsg(e, t) - e.setTagResultData = u.parse(e.actionMsgData.msgData) - return e - } - receive() { - var t - s.default.info(`set tag result`, this.setTagResultData) - let e = a.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ) - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: this.setTagResultData.errorCode, - message: this.setTagResultData.errorMsg, - }) - n.default.set({ - key: n.default.KEY_SET_TAG_TIME, - data: new Date().getTime(), - }) - } - } - class u { - constructor() { - this.errorCode = 0 - this.errorMsg = '' - } - static parse(t) { - let e = new u() - let r = JSON.parse(t) - e.errorCode = r.errorCode - e.errorMsg = r.errorMsg - return e - } - } - e['default'] = o - }, - 7923: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(207)) - const s = i(r(1237)) - const a = i(r(9214)) - class o extends a.default { - constructor() { - super(...arguments) - this.unbindAliasResultData = new u() - } - static parse(t) { - let e = new o() - super.parseActionMsg(e, t) - e.unbindAliasResultData = u.parse(e.actionMsgData.msgData) - return e - } - receive() { - var t - s.default.info(`unbind alias result`, this.unbindAliasResultData) - let e = a.default.removeWaitingResponseMessage( - this.actionMsgData.msgId - ) - if (e) - null === (t = e.callback) || - void 0 === t || - t.call(e.callback, { - resultCode: this.unbindAliasResultData.errorCode, - message: this.unbindAliasResultData.errorMsg, - }) - n.default.set({ - key: n.default.KEY_BIND_ALIAS_TIME, - data: new Date().getTime(), - }) - } - } - class u { - constructor() { - this.errorCode = -1 - this.errorMsg = '' - } - static parse(t) { - let e = new u() - let r = JSON.parse(t) - e.errorCode = r.errorCode - e.errorMsg = r.errorMsg - return e - } - } - e['default'] = o - }, - 9285: (t, e) => { - 'use strict' - Object.defineProperty(e, '__esModule', { value: true }) - class r { - constructor(t) { - this.delay = 10 - this.delay = t - } - start() { - this.cancel() - let t = this - this.timer = setInterval(function () { - t.run() - }, this.delay) - } - cancel() { - if (this.timer) clearInterval(this.timer) - } - } - e['default'] = r - }, - 1571: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - var n - Object.defineProperty(e, '__esModule', { value: true }) - const s = i(r(6561)) - const a = i(r(9285)) - class o extends a.default { - static getInstance() { - return o.InstanceHolder.instance - } - run() { - s.default.create().send() - } - refresh() { - this.delay = 60 * 1e3 - this.start() - } - } - o.INTERVAL = 60 * 1e3 - o.InstanceHolder = ((n = class {}), (n.instance = new o(o.INTERVAL)), n) - e['default'] = o - }, - 3270: (t, e) => { - 'use strict' - Object.defineProperty(e, '__esModule', { value: true }) - var r - ;(function (t) { - let e - let r - try { - e = uni.getSystemInfoSync() - r = uni.getAccountInfoSync() - } catch (t) {} - function i() { - let t = '' - try { - t = e ? e.platform : '' - } catch (t) {} - return t ? t : '' - } - t.os = i - function n() { - let t = '' - try { - t = e ? e.model : '' - } catch (t) {} - return t ? t : '' - } - t.model = n - function s() { - let t = '' - try { - t = e ? e.brand : '' - } catch (t) {} - return t ? t : '' - } - t.brand = s - function a() { - let t = '' - try { - t = e ? e.system : '' - // #ifdef MP-ALIPAY - let r = i() - if (t && r && !t.toLocaleLowerCase().startsWith(r.toLowerCase())) - t = i() + ' ' + t - // #endif - } catch (t) {} - return t ? t : '' - } - t.osVersion = a - function o() { - let t = '' - // #ifdef APP-PLUS - t = 'APP-PLUS' - // #endif - // #ifdef APP-PLUS-NVUE - t = 'APP-PLUS-NVUE' - // #endif - // #ifdef APP-NVUE - t = 'APP-NVUE' - // #endif - // #ifdef H5 - t = 'H5' - // #endif - // #ifdef MP-WEIXIN - t = 'MP-WEIXIN' - // #endif - // #ifdef MP-ALIPAY - t = 'MP-ALIPAY' - // #endif - // #ifdef MP-BAIDU - t = 'MP-BAIDU' - // #endif - // #ifdef MP-TOUTIAO - t = 'MP-TOUTIAO' - // #endif - // #ifdef MP-LARK - t = 'MP-LARK' - // #endif - // #ifdef MP-QQ - t = 'MP-QQ' - // #endif - // #ifdef MP-KUAISHOU - t = 'MP-KUAISHOU' - // #endif - // #ifdef MP-360 - t = 'MP-360' - // #endif - // #ifdef QUICKAPP-WEBVIEW - t = 'QUICKAPP-WEBVIEW' - // #endif - // #ifdef QUICKAPP-WEBVIEW-UNION - t = 'QUICKAPP-WEBVIEW-UNION' - // #endif - return t - } - t.platform = o - function u() { - let t = '' - try { - t = e ? e.version : '' - } catch (t) {} - return t ? t : '' - } - t.platformVersion = u - function c() { - let t = '' - try { - t = r ? r.miniProgram.appId : '' - } catch (t) {} - return t ? t : '' - } - t.platformId = c - function l() { - let t = '' - try { - t = e ? e.language : '' - } catch (t) {} - return t ? t : '' - } - t.language = l - function f() { - return '' - } - t.imei = f - function h() { - return '' - } - t.oaid = h - function d(t) { - uni.getNetworkType({ - success: (e) => { - var r - null === (r = t.success) || - void 0 === r || - r.call(t.success, e.networkType) - }, - fail: (e) => { - var r - null === (r = t.fail) || void 0 === r || r.call(t.fail, e) - }, - }) - } - t.getNetworkType = d - function v(t) { - uni.onNetworkStatusChange((e) => { - t.call(t, e) - }) - } - t.onNetworkStatusChange = v - })(r || (r = {})) - e['default'] = r - }, - 3593: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(358)) - const s = i(r(1754)) - const a = i(r(1236)) - const o = i(r(1571)) - const u = i(r(1237)) - var c - ;(function (t) { - let e - let r = false - let i = false - t.allowReconnect = true - function c() { - return r && i - } - t.isAvailable = c - function l(e) { - if (!t.allowReconnect) return - setTimeout(function () { - f() - }, e) - } - t.reconnect = l - function f() { - t.allowReconnect = true - if (!s.default.networkConnected) { - u.default.info(`connect failed, network is not available`) - return - } - if (i || r) return - let n = s.default.socketUrl - e = uni.connectSocket({ - url: n, - success: function () { - i = true - h() - }, - fail: function () { - i = false - p('') - }, - }) - // #ifdef MP-ALIPAY - uni.onSocketOpen(g) - uni.onSocketMessage(y) - uni.onSocketError(m) - uni.onSocketClose(_) - // #endif - // #ifndef MP-ALIPAY - e.onOpen(g) - e.onMessage(y) - e.onError(m) - e.onClose(_) - // #endif - } - t.connect = f - function h() { - if (i && r) { - n.default.create().send() - o.default.getInstance().start() - } - } - function d(t) { - // #ifdef MP-ALIPAY - uni.closeSocket({ - reason: t, - success: function (t) {}, - fail: function (t) { - p(t) - }, - }) - // #endif - // #ifndef MP-ALIPAY - e.close({ - reason: t, - success: function (t) {}, - fail: function (t) { - p(t) - }, - }) - // #endif - } - t.close = d - function v(t) { - if (r && r) { - // #ifdef MP-ALIPAY - uni.sendSocketMessage({ - data: t, - success: function (t) {}, - fail: function (t) {}, - }) - // #endif - // #ifndef MP-ALIPAY - e.send({ - data: t, - success: function (t) {}, - fail: function (t) {}, - }) - // #endif - } else throw new Error(`socket not connect`) - } - t.send = v - function p(t) { - var e, n - i = false - r = false - o.default.getInstance().cancel() - if (s.default.online) { - s.default.online = false - null === (e = s.default.onlineState) || - void 0 === e || - e.call(s.default.onlineState, { online: s.default.online }) - } - if (s.default.online) { - s.default.online = false - null === (n = s.default.onlineState) || - void 0 === n || - n.call(s.default.onlineState, { online: s.default.online }) - } - l(1e3) - } - let g = function (t) { - r = true - h() - } - let y = function (t) { - try { - t.data - o.default.getInstance().refresh() - a.default.receiveMessage(t.data) - } catch (t) {} - } - let m = function (t) { - d(`socket error`) - } - let _ = function (t) { - p(t) - } - })(c || (c = {})) - e['default'] = c - }, - 207: (t, e) => { - 'use strict' - Object.defineProperty(e, '__esModule', { value: true }) - var r - ;(function (t) { - t.KEY_APPID = 'appid' - t.KEY_CID = 'cid' - t.KEY_SESSION = 'session' - t.KEY_REGID = 'regid' - t.KEY_SOCKET_URL = 'socket_url' - t.KEY_DEVICE_ID = 'deviceid' - t.KEY_ADD_PHONE_INFO_TIME = 'api_time' - t.KEY_BIND_ALIAS_TIME = 'ba_time' - t.KEY_SET_TAG_TIME = 'st_time' - function e(t, e) { - uni.setStorageSync(t, e) - } - t.setSync = e - function r(t) { - uni.setStorage({ - key: t.key, - data: t.data, - fail: () => { - var e - t.key, t.data - null === (e = t.fail) || void 0 === e || e.call(t) - }, - }) - } - t.set = r - function i(t, e) { - let r = e - try { - let e = uni.getStorageSync(t) - if (e) r = e - } catch (t) {} - return r - } - t.getSync = i - function n(t) { - uni.getStorage({ - key: t.key, - success: (e) => { - var r - null === (r = t.success) || void 0 === r || r.call(t, e.data) - }, - fail: () => { - var e - t.key - null === (e = t.fail) || void 0 === e || e.call(t) - }, - }) - } - t.get = n - })(r || (r = {})) - e['default'] = r - }, - 323: function (t, e, r) { - 'use strict' - var i = - (this && this.__importDefault) || - function (t) { - return t && t.__esModule ? t : { default: t } - } - Object.defineProperty(e, '__esModule', { value: true }) - const n = i(r(3357)) - const s = i(r(1354)) - const a = i(r(1754)) - var o - ;(function (t) { - let e - let r - let i - let o - let u = new n.default() - let c = s.default.mode.CBC - let l = s.default.pad.Pkcs7 - let f = s.default.AES - t.algorithmMap = new Map([['aes', s.default.AES]]) - t.modeMap = new Map([ - ['cbc', s.default.mode.CBC], - ['cfb', s.default.mode.CFB], - ['cfb128', s.default.mode.CFB], - ['ecb', s.default.mode.ECB], - ['ofb', s.default.mode.OFB], - ]) - t.paddingMap = new Map([ - ['nopadding', s.default.pad.NoPadding], - ['pkcs7', s.default.pad.Pkcs7], - ]) - function h() { - e = s.default.MD5(new Date().getTime().toString()) - r = s.default.MD5(e) - u.setPublicKey(a.default.publicKey) - e.toString(s.default.enc.Hex) - r.toString(s.default.enc.Hex) - i = u.encrypt(e.toString(s.default.enc.Hex)) - o = u.encrypt(r.toString(s.default.enc.Hex)) - } - t.resetKey = h - function d(e, r, i) { - f = t.algorithmMap.get(e) - c = t.modeMap.get(r) - l = t.paddingMap.get(i) - } - t.setEncryptParams = d - function v(t) { - return f.encrypt(t, e, { iv: r, mode: c, padding: l }).toString() - } - t.encrypt = v - function p(t) { - return f - .decrypt(t, e, { iv: r, mode: c, padding: l }) - .toString(s.default.enc.Utf8) - } - t.decrypt = p - function g(t) { - return s.default.SHA256(t).toString(s.default.enc.Base64) - } - t.sha256 = g - function y(t) { - return s.default.MD5(t).toString(s.default.enc.Hex) - } - t.md5Hex = y - function m() { - return i ? i : '' - } - t.getEncryptedSecretKey = m - function _() { - return o ? o : '' - } - t.getEncryptedIV = _ - })(o || (o = {})) - e['default'] = o - }, - 1237: (t, e) => { - 'use strict' - Object.defineProperty(e, '__esModule', { value: true }) - class r { - static info(...t) { - if (this.debugMode) console.info(`[GtPush]`, t) - } - static error(...t) { - console.error(`[GtPush]`, t) - } - } - r.debugMode = false - e['default'] = r - }, - 3357: (t, e, r) => { - 'use strict' - r.r(e) - r.d(e, { JSEncrypt: () => _t, default: () => St }) - var i = '0123456789abcdefghijklmnopqrstuvwxyz' - function n(t) { - return i.charAt(t) - } - function s(t, e) { - return t & e - } - function a(t, e) { - return t | e - } - function o(t, e) { - return t ^ e - } - function u(t, e) { - return t & ~e - } - function c(t) { - if (0 == t) return -1 - var e = 0 - if (0 == (65535 & t)) { - t >>= 16 - e += 16 - } - if (0 == (255 & t)) { - t >>= 8 - e += 8 - } - if (0 == (15 & t)) { - t >>= 4 - e += 4 - } - if (0 == (3 & t)) { - t >>= 2 - e += 2 - } - if (0 == (1 & t)) ++e - return e - } - function l(t) { - var e = 0 - while (0 != t) { - t &= t - 1 - ++e - } - return e - } - var f = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' - var h = '=' - function d(t) { - var e - var r - var i = '' - for (e = 0; e + 3 <= t.length; e += 3) { - r = parseInt(t.substring(e, e + 3), 16) - i += f.charAt(r >> 6) + f.charAt(63 & r) - } - if (e + 1 == t.length) { - r = parseInt(t.substring(e, e + 1), 16) - i += f.charAt(r << 2) - } else if (e + 2 == t.length) { - r = parseInt(t.substring(e, e + 2), 16) - i += f.charAt(r >> 2) + f.charAt((3 & r) << 4) - } - while ((3 & i.length) > 0) i += h - return i - } - function v(t) { - var e = '' - var r - var i = 0 - var s = 0 - for (r = 0; r < t.length; ++r) { - if (t.charAt(r) == h) break - var a = f.indexOf(t.charAt(r)) - if (a < 0) continue - if (0 == i) { - e += n(a >> 2) - s = 3 & a - i = 1 - } else if (1 == i) { - e += n((s << 2) | (a >> 4)) - s = 15 & a - i = 2 - } else if (2 == i) { - e += n(s) - e += n(a >> 2) - s = 3 & a - i = 3 - } else { - e += n((s << 2) | (a >> 4)) - e += n(15 & a) - i = 0 - } - } - if (1 == i) e += n(s << 2) - return e - } - function p(t) { - var e = v(t) - var r - var i = [] - for (r = 0; 2 * r < e.length; ++r) - i[r] = parseInt(e.substring(2 * r, 2 * r + 2), 16) - return i - } - var g - var y = { - decode: function (t) { - var e - if (void 0 === g) { - var r = '0123456789ABCDEF' - var i = ' \f\n\r\t \u2028\u2029' - g = {} - for (e = 0; e < 16; ++e) g[r.charAt(e)] = e - r = r.toLowerCase() - for (e = 10; e < 16; ++e) g[r.charAt(e)] = e - for (e = 0; e < i.length; ++e) g[i.charAt(e)] = -1 - } - var n = [] - var s = 0 - var a = 0 - for (e = 0; e < t.length; ++e) { - var o = t.charAt(e) - if ('=' == o) break - o = g[o] - if (-1 == o) continue - if (void 0 === o) - throw new Error('Illegal character at offset ' + e) - s |= o - if (++a >= 2) { - n[n.length] = s - s = 0 - a = 0 - } else s <<= 4 - } - if (a) throw new Error('Hex encoding incomplete: 4 bits missing') - return n - }, - } - var m - var _ = { - decode: function (t) { - var e - if (void 0 === m) { - var r = - 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' - var i = '= \f\n\r\t \u2028\u2029' - m = Object.create(null) - for (e = 0; e < 64; ++e) m[r.charAt(e)] = e - m['-'] = 62 - m['_'] = 63 - for (e = 0; e < i.length; ++e) m[i.charAt(e)] = -1 - } - var n = [] - var s = 0 - var a = 0 - for (e = 0; e < t.length; ++e) { - var o = t.charAt(e) - if ('=' == o) break - o = m[o] - if (-1 == o) continue - if (void 0 === o) - throw new Error('Illegal character at offset ' + e) - s |= o - if (++a >= 4) { - n[n.length] = s >> 16 - n[n.length] = (s >> 8) & 255 - n[n.length] = 255 & s - s = 0 - a = 0 - } else s <<= 6 - } - switch (a) { - case 1: - throw new Error( - 'Base64 encoding incomplete: at least 2 bits missing' - ) - case 2: - n[n.length] = s >> 10 - break - case 3: - n[n.length] = s >> 16 - n[n.length] = (s >> 8) & 255 - break - } - return n - }, - re: /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/, - unarmor: function (t) { - var e = _.re.exec(t) - if (e) - if (e[1]) t = e[1] - else if (e[2]) t = e[2] - else throw new Error('RegExp out of sync') - return _.decode(t) - }, - } - var S = 1e13 - var E = (function () { - function t(t) { - this.buf = [+t || 0] - } - t.prototype.mulAdd = function (t, e) { - var r = this.buf - var i = r.length - var n - var s - for (n = 0; n < i; ++n) { - s = r[n] * t + e - if (s < S) e = 0 - else { - e = 0 | (s / S) - s -= e * S - } - r[n] = s - } - if (e > 0) r[n] = e - } - t.prototype.sub = function (t) { - var e = this.buf - var r = e.length - var i - var n - for (i = 0; i < r; ++i) { - n = e[i] - t - if (n < 0) { - n += S - t = 1 - } else t = 0 - e[i] = n - } - while (0 === e[e.length - 1]) e.pop() - } - t.prototype.toString = function (t) { - if (10 != (t || 10)) throw new Error('only base 10 is supported') - var e = this.buf - var r = e[e.length - 1].toString() - for (var i = e.length - 2; i >= 0; --i) - r += (S + e[i]).toString().substring(1) - return r - } - t.prototype.valueOf = function () { - var t = this.buf - var e = 0 - for (var r = t.length - 1; r >= 0; --r) e = e * S + t[r] - return e - } - t.prototype.simplify = function () { - var t = this.buf - return 1 == t.length ? t[0] : this - } - return t - })() - var b = '…' - var w = - /^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/ - var D = - /^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/ - function T(t, e) { - if (t.length > e) t = t.substring(0, e) + b - return t - } - var A = (function () { - function t(e, r) { - this.hexDigits = '0123456789ABCDEF' - if (e instanceof t) { - this.enc = e.enc - this.pos = e.pos - } else { - this.enc = e - this.pos = r - } - } - t.prototype.get = function (t) { - if (void 0 === t) t = this.pos++ - if (t >= this.enc.length) - throw new Error( - 'Requesting byte offset ' + - t + - ' on a stream of length ' + - this.enc.length - ) - return 'string' === typeof this.enc - ? this.enc.charCodeAt(t) - : this.enc[t] - } - t.prototype.hexByte = function (t) { - return ( - this.hexDigits.charAt((t >> 4) & 15) + - this.hexDigits.charAt(15 & t) - ) - } - t.prototype.hexDump = function (t, e, r) { - var i = '' - for (var n = t; n < e; ++n) { - i += this.hexByte(this.get(n)) - if (true !== r) - switch (15 & n) { - case 7: - i += ' ' - break - case 15: - i += '\n' - break - default: - i += ' ' - } - } - return i - } - t.prototype.isASCII = function (t, e) { - for (var r = t; r < e; ++r) { - var i = this.get(r) - if (i < 32 || i > 176) return false - } - return true - } - t.prototype.parseStringISO = function (t, e) { - var r = '' - for (var i = t; i < e; ++i) r += String.fromCharCode(this.get(i)) - return r - } - t.prototype.parseStringUTF = function (t, e) { - var r = '' - for (var i = t; i < e; ) { - var n = this.get(i++) - if (n < 128) r += String.fromCharCode(n) - else if (n > 191 && n < 224) - r += String.fromCharCode(((31 & n) << 6) | (63 & this.get(i++))) - else - r += String.fromCharCode( - ((15 & n) << 12) | - ((63 & this.get(i++)) << 6) | - (63 & this.get(i++)) - ) - } - return r - } - t.prototype.parseStringBMP = function (t, e) { - var r = '' - var i - var n - for (var s = t; s < e; ) { - i = this.get(s++) - n = this.get(s++) - r += String.fromCharCode((i << 8) | n) - } - return r - } - t.prototype.parseTime = function (t, e, r) { - var i = this.parseStringISO(t, e) - var n = (r ? w : D).exec(i) - if (!n) return 'Unrecognized time: ' + i - if (r) { - n[1] = +n[1] - n[1] += +n[1] < 70 ? 2e3 : 1900 - } - i = n[1] + '-' + n[2] + '-' + n[3] + ' ' + n[4] - if (n[5]) { - i += ':' + n[5] - if (n[6]) { - i += ':' + n[6] - if (n[7]) i += '.' + n[7] - } - } - if (n[8]) { - i += ' UTC' - if ('Z' != n[8]) { - i += n[8] - if (n[9]) i += ':' + n[9] - } - } - return i - } - t.prototype.parseInteger = function (t, e) { - var r = this.get(t) - var i = r > 127 - var n = i ? 255 : 0 - var s - var a = '' - while (r == n && ++t < e) r = this.get(t) - s = e - t - if (0 === s) return i ? -1 : 0 - if (s > 4) { - a = r - s <<= 3 - while (0 == (128 & (+a ^ n))) { - a = +a << 1 - --s - } - a = '(' + s + ' bit)\n' - } - if (i) r -= 256 - var o = new E(r) - for (var u = t + 1; u < e; ++u) o.mulAdd(256, this.get(u)) - return a + o.toString() - } - t.prototype.parseBitString = function (t, e, r) { - var i = this.get(t) - var n = ((e - t - 1) << 3) - i - var s = '(' + n + ' bit)\n' - var a = '' - for (var o = t + 1; o < e; ++o) { - var u = this.get(o) - var c = o == e - 1 ? i : 0 - for (var l = 7; l >= c; --l) a += (u >> l) & 1 ? '1' : '0' - if (a.length > r) return s + T(a, r) - } - return s + a - } - t.prototype.parseOctetString = function (t, e, r) { - if (this.isASCII(t, e)) return T(this.parseStringISO(t, e), r) - var i = e - t - var n = '(' + i + ' byte)\n' - r /= 2 - if (i > r) e = t + r - for (var s = t; s < e; ++s) n += this.hexByte(this.get(s)) - if (i > r) n += b - return n - } - t.prototype.parseOID = function (t, e, r) { - var i = '' - var n = new E() - var s = 0 - for (var a = t; a < e; ++a) { - var o = this.get(a) - n.mulAdd(128, 127 & o) - s += 7 - if (!(128 & o)) { - if ('' === i) { - n = n.simplify() - if (n instanceof E) { - n.sub(80) - i = '2.' + n.toString() - } else { - var u = n < 80 ? (n < 40 ? 0 : 1) : 2 - i = u + '.' + (n - 40 * u) - } - } else i += '.' + n.toString() - if (i.length > r) return T(i, r) - n = new E() - s = 0 - } - } - if (s > 0) i += '.incomplete' - return i - } - return t - })() - var M = (function () { - function t(t, e, r, i, n) { - if (!(i instanceof I)) throw new Error('Invalid tag value.') - this.stream = t - this.header = e - this.length = r - this.tag = i - this.sub = n - } - t.prototype.typeName = function () { - switch (this.tag.tagClass) { - case 0: - switch (this.tag.tagNumber) { - case 0: - return 'EOC' - case 1: - return 'BOOLEAN' - case 2: - return 'INTEGER' - case 3: - return 'BIT_STRING' - case 4: - return 'OCTET_STRING' - case 5: - return 'NULL' - case 6: - return 'OBJECT_IDENTIFIER' - case 7: - return 'ObjectDescriptor' - case 8: - return 'EXTERNAL' - case 9: - return 'REAL' - case 10: - return 'ENUMERATED' - case 11: - return 'EMBEDDED_PDV' - case 12: - return 'UTF8String' - case 16: - return 'SEQUENCE' - case 17: - return 'SET' - case 18: - return 'NumericString' - case 19: - return 'PrintableString' - case 20: - return 'TeletexString' - case 21: - return 'VideotexString' - case 22: - return 'IA5String' - case 23: - return 'UTCTime' - case 24: - return 'GeneralizedTime' - case 25: - return 'GraphicString' - case 26: - return 'VisibleString' - case 27: - return 'GeneralString' - case 28: - return 'UniversalString' - case 30: - return 'BMPString' - } - return 'Universal_' + this.tag.tagNumber.toString() - case 1: - return 'Application_' + this.tag.tagNumber.toString() - case 2: - return '[' + this.tag.tagNumber.toString() + ']' - case 3: - return 'Private_' + this.tag.tagNumber.toString() - } - } - t.prototype.content = function (t) { - if (void 0 === this.tag) return null - if (void 0 === t) t = 1 / 0 - var e = this.posContent() - var r = Math.abs(this.length) - if (!this.tag.isUniversal()) { - if (null !== this.sub) return '(' + this.sub.length + ' elem)' - return this.stream.parseOctetString(e, e + r, t) - } - switch (this.tag.tagNumber) { - case 1: - return 0 === this.stream.get(e) ? 'false' : 'true' - case 2: - return this.stream.parseInteger(e, e + r) - case 3: - return this.sub - ? '(' + this.sub.length + ' elem)' - : this.stream.parseBitString(e, e + r, t) - case 4: - return this.sub - ? '(' + this.sub.length + ' elem)' - : this.stream.parseOctetString(e, e + r, t) - case 6: - return this.stream.parseOID(e, e + r, t) - case 16: - case 17: - if (null !== this.sub) return '(' + this.sub.length + ' elem)' - else return '(no elem)' - case 12: - return T(this.stream.parseStringUTF(e, e + r), t) - case 18: - case 19: - case 20: - case 21: - case 22: - case 26: - return T(this.stream.parseStringISO(e, e + r), t) - case 30: - return T(this.stream.parseStringBMP(e, e + r), t) - case 23: - case 24: - return this.stream.parseTime(e, e + r, 23 == this.tag.tagNumber) - } - return null - } - t.prototype.toString = function () { - return ( - this.typeName() + - '@' + - this.stream.pos + - '[header:' + - this.header + - ',length:' + - this.length + - ',sub:' + - (null === this.sub ? 'null' : this.sub.length) + - ']' - ) - } - t.prototype.toPrettyString = function (t) { - if (void 0 === t) t = '' - var e = t + this.typeName() + ' @' + this.stream.pos - if (this.length >= 0) e += '+' - e += this.length - if (this.tag.tagConstructed) e += ' (constructed)' - else if ( - this.tag.isUniversal() && - (3 == this.tag.tagNumber || 4 == this.tag.tagNumber) && - null !== this.sub - ) - e += ' (encapsulates)' - e += '\n' - if (null !== this.sub) { - t += ' ' - for (var r = 0, i = this.sub.length; r < i; ++r) - e += this.sub[r].toPrettyString(t) - } - return e - } - t.prototype.posStart = function () { - return this.stream.pos - } - t.prototype.posContent = function () { - return this.stream.pos + this.header - } - t.prototype.posEnd = function () { - return this.stream.pos + this.header + Math.abs(this.length) - } - t.prototype.toHexString = function () { - return this.stream.hexDump(this.posStart(), this.posEnd(), true) - } - t.decodeLength = function (t) { - var e = t.get() - var r = 127 & e - if (r == e) return r - if (r > 6) - throw new Error( - 'Length over 48 bits not supported at position ' + (t.pos - 1) - ) - if (0 === r) return null - e = 0 - for (var i = 0; i < r; ++i) e = 256 * e + t.get() - return e - } - t.prototype.getHexStringValue = function () { - var t = this.toHexString() - var e = 2 * this.header - var r = 2 * this.length - return t.substr(e, r) - } - t.decode = function (e) { - var r - if (!(e instanceof A)) r = new A(e, 0) - else r = e - var i = new A(r) - var n = new I(r) - var s = t.decodeLength(r) - var a = r.pos - var o = a - i.pos - var u = null - var c = function () { - var e = [] - if (null !== s) { - var i = a + s - while (r.pos < i) e[e.length] = t.decode(r) - if (r.pos != i) - throw new Error( - 'Content size is not correct for container starting at offset ' + - a - ) - } else - try { - for (;;) { - var n = t.decode(r) - if (n.tag.isEOC()) break - e[e.length] = n - } - s = a - r.pos - } catch (t) { - throw new Error( - 'Exception while decoding undefined length content: ' + t - ) - } - return e - } - if (n.tagConstructed) u = c() - else if (n.isUniversal() && (3 == n.tagNumber || 4 == n.tagNumber)) - try { - if (3 == n.tagNumber) - if (0 != r.get()) - throw new Error( - 'BIT STRINGs with unused bits cannot encapsulate.' - ) - u = c() - for (var l = 0; l < u.length; ++l) - if (u[l].tag.isEOC()) - throw new Error('EOC is not supposed to be actual content.') - } catch (t) { - u = null - } - if (null === u) { - if (null === s) - throw new Error( - "We can't skip over an invalid tag with undefined length at offset " + - a - ) - r.pos = a + Math.abs(s) - } - return new t(i, o, s, n, u) - } - return t - })() - var I = (function () { - function t(t) { - var e = t.get() - this.tagClass = e >> 6 - this.tagConstructed = 0 !== (32 & e) - this.tagNumber = 31 & e - if (31 == this.tagNumber) { - var r = new E() - do { - e = t.get() - r.mulAdd(128, 127 & e) - } while (128 & e) - this.tagNumber = r.simplify() - } - } - t.prototype.isUniversal = function () { - return 0 === this.tagClass - } - t.prototype.isEOC = function () { - return 0 === this.tagClass && 0 === this.tagNumber - } - return t - })() - var R - var x = 0xdeadbeefcafe - var B = 15715070 == (16777215 & x) - var C = [ - 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, - 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, - 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, - 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, - 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, - 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, - 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, - 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, - 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, - 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, - 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, - 941, 947, 953, 967, 971, 977, 983, 991, 997, - ] - var O = (1 << 26) / C[C.length - 1] - var k = (function () { - function t(t, e, r) { - if (null != t) - if ('number' == typeof t) this.fromNumber(t, e, r) - else if (null == e && 'string' != typeof t) - this.fromString(t, 256) - else this.fromString(t, e) - } - t.prototype.toString = function (t) { - if (this.s < 0) return '-' + this.negate().toString(t) - var e - if (16 == t) e = 4 - else if (8 == t) e = 3 - else if (2 == t) e = 1 - else if (32 == t) e = 5 - else if (4 == t) e = 2 - else return this.toRadix(t) - var r = (1 << e) - 1 - var i - var s = false - var a = '' - var o = this.t - var u = this.DB - ((o * this.DB) % e) - if (o-- > 0) { - if (u < this.DB && (i = this[o] >> u) > 0) { - s = true - a = n(i) - } - while (o >= 0) { - if (u < e) { - i = (this[o] & ((1 << u) - 1)) << (e - u) - i |= this[--o] >> (u += this.DB - e) - } else { - i = (this[o] >> (u -= e)) & r - if (u <= 0) { - u += this.DB - --o - } - } - if (i > 0) s = true - if (s) a += n(i) - } - } - return s ? a : '0' - } - t.prototype.negate = function () { - var e = L() - t.ZERO.subTo(this, e) - return e - } - t.prototype.abs = function () { - return this.s < 0 ? this.negate() : this - } - t.prototype.compareTo = function (t) { - var e = this.s - t.s - if (0 != e) return e - var r = this.t - e = r - t.t - if (0 != e) return this.s < 0 ? -e : e - while (--r >= 0) if (0 != (e = this[r] - t[r])) return e - return 0 - } - t.prototype.bitLength = function () { - if (this.t <= 0) return 0 - return ( - this.DB * (this.t - 1) + W(this[this.t - 1] ^ (this.s & this.DM)) - ) - } - t.prototype.mod = function (e) { - var r = L() - this.abs().divRemTo(e, null, r) - if (this.s < 0 && r.compareTo(t.ZERO) > 0) e.subTo(r, r) - return r - } - t.prototype.modPowInt = function (t, e) { - var r - if (t < 256 || e.isEven()) r = new N(e) - else r = new V(e) - return this.exp(t, r) - } - t.prototype.clone = function () { - var t = L() - this.copyTo(t) - return t - } - t.prototype.intValue = function () { - if (this.s < 0) { - if (1 == this.t) return this[0] - this.DV - else if (0 == this.t) return -1 - } else if (1 == this.t) return this[0] - else if (0 == this.t) return 0 - return ( - ((this[1] & ((1 << (32 - this.DB)) - 1)) << this.DB) | this[0] - ) - } - t.prototype.byteValue = function () { - return 0 == this.t ? this.s : (this[0] << 24) >> 24 - } - t.prototype.shortValue = function () { - return 0 == this.t ? this.s : (this[0] << 16) >> 16 - } - t.prototype.signum = function () { - if (this.s < 0) return -1 - else if (this.t <= 0 || (1 == this.t && this[0] <= 0)) return 0 - else return 1 - } - t.prototype.toByteArray = function () { - var t = this.t - var e = [] - e[0] = this.s - var r = this.DB - ((t * this.DB) % 8) - var i - var n = 0 - if (t-- > 0) { - if (r < this.DB && (i = this[t] >> r) != (this.s & this.DM) >> r) - e[n++] = i | (this.s << (this.DB - r)) - while (t >= 0) { - if (r < 8) { - i = (this[t] & ((1 << r) - 1)) << (8 - r) - i |= this[--t] >> (r += this.DB - 8) - } else { - i = (this[t] >> (r -= 8)) & 255 - if (r <= 0) { - r += this.DB - --t - } - } - if (0 != (128 & i)) i |= -256 - if (0 == n && (128 & this.s) != (128 & i)) ++n - if (n > 0 || i != this.s) e[n++] = i - } - } - return e - } - t.prototype.equals = function (t) { - return 0 == this.compareTo(t) - } - t.prototype.min = function (t) { - return this.compareTo(t) < 0 ? this : t - } - t.prototype.max = function (t) { - return this.compareTo(t) > 0 ? this : t - } - t.prototype.and = function (t) { - var e = L() - this.bitwiseTo(t, s, e) - return e - } - t.prototype.or = function (t) { - var e = L() - this.bitwiseTo(t, a, e) - return e - } - t.prototype.xor = function (t) { - var e = L() - this.bitwiseTo(t, o, e) - return e - } - t.prototype.andNot = function (t) { - var e = L() - this.bitwiseTo(t, u, e) - return e - } - t.prototype.not = function () { - var t = L() - for (var e = 0; e < this.t; ++e) t[e] = this.DM & ~this[e] - t.t = this.t - t.s = ~this.s - return t - } - t.prototype.shiftLeft = function (t) { - var e = L() - if (t < 0) this.rShiftTo(-t, e) - else this.lShiftTo(t, e) - return e - } - t.prototype.shiftRight = function (t) { - var e = L() - if (t < 0) this.lShiftTo(-t, e) - else this.rShiftTo(t, e) - return e - } - t.prototype.getLowestSetBit = function () { - for (var t = 0; t < this.t; ++t) - if (0 != this[t]) return t * this.DB + c(this[t]) - if (this.s < 0) return this.t * this.DB - return -1 - } - t.prototype.bitCount = function () { - var t = 0 - var e = this.s & this.DM - for (var r = 0; r < this.t; ++r) t += l(this[r] ^ e) - return t - } - t.prototype.testBit = function (t) { - var e = Math.floor(t / this.DB) - if (e >= this.t) return 0 != this.s - return 0 != (this[e] & (1 << t % this.DB)) - } - t.prototype.setBit = function (t) { - return this.changeBit(t, a) - } - t.prototype.clearBit = function (t) { - return this.changeBit(t, u) - } - t.prototype.flipBit = function (t) { - return this.changeBit(t, o) - } - t.prototype.add = function (t) { - var e = L() - this.addTo(t, e) - return e - } - t.prototype.subtract = function (t) { - var e = L() - this.subTo(t, e) - return e - } - t.prototype.multiply = function (t) { - var e = L() - this.multiplyTo(t, e) - return e - } - t.prototype.divide = function (t) { - var e = L() - this.divRemTo(t, e, null) - return e - } - t.prototype.remainder = function (t) { - var e = L() - this.divRemTo(t, null, e) - return e - } - t.prototype.divideAndRemainder = function (t) { - var e = L() - var r = L() - this.divRemTo(t, e, r) - return [e, r] - } - t.prototype.modPow = function (t, e) { - var r = t.bitLength() - var i - var n = Y(1) - var s - if (r <= 0) return n - else if (r < 18) i = 1 - else if (r < 48) i = 3 - else if (r < 144) i = 4 - else if (r < 768) i = 5 - else i = 6 - if (r < 8) s = new N(e) - else if (e.isEven()) s = new H(e) - else s = new V(e) - var a = [] - var o = 3 - var u = i - 1 - var c = (1 << i) - 1 - a[1] = s.convert(this) - if (i > 1) { - var l = L() - s.sqrTo(a[1], l) - while (o <= c) { - a[o] = L() - s.mulTo(l, a[o - 2], a[o]) - o += 2 - } - } - var f = t.t - 1 - var h - var d = true - var v = L() - var p - r = W(t[f]) - 1 - while (f >= 0) { - if (r >= u) h = (t[f] >> (r - u)) & c - else { - h = (t[f] & ((1 << (r + 1)) - 1)) << (u - r) - if (f > 0) h |= t[f - 1] >> (this.DB + r - u) - } - o = i - while (0 == (1 & h)) { - h >>= 1 - --o - } - if ((r -= o) < 0) { - r += this.DB - --f - } - if (d) { - a[h].copyTo(n) - d = false - } else { - while (o > 1) { - s.sqrTo(n, v) - s.sqrTo(v, n) - o -= 2 - } - if (o > 0) s.sqrTo(n, v) - else { - p = n - n = v - v = p - } - s.mulTo(v, a[h], n) - } - while (f >= 0 && 0 == (t[f] & (1 << r))) { - s.sqrTo(n, v) - p = n - n = v - v = p - if (--r < 0) { - r = this.DB - 1 - --f - } - } - } - return s.revert(n) - } - t.prototype.modInverse = function (e) { - var r = e.isEven() - if ((this.isEven() && r) || 0 == e.signum()) return t.ZERO - var i = e.clone() - var n = this.clone() - var s = Y(1) - var a = Y(0) - var o = Y(0) - var u = Y(1) - while (0 != i.signum()) { - while (i.isEven()) { - i.rShiftTo(1, i) - if (r) { - if (!s.isEven() || !a.isEven()) { - s.addTo(this, s) - a.subTo(e, a) - } - s.rShiftTo(1, s) - } else if (!a.isEven()) a.subTo(e, a) - a.rShiftTo(1, a) - } - while (n.isEven()) { - n.rShiftTo(1, n) - if (r) { - if (!o.isEven() || !u.isEven()) { - o.addTo(this, o) - u.subTo(e, u) - } - o.rShiftTo(1, o) - } else if (!u.isEven()) u.subTo(e, u) - u.rShiftTo(1, u) - } - if (i.compareTo(n) >= 0) { - i.subTo(n, i) - if (r) s.subTo(o, s) - a.subTo(u, a) - } else { - n.subTo(i, n) - if (r) o.subTo(s, o) - u.subTo(a, u) - } - } - if (0 != n.compareTo(t.ONE)) return t.ZERO - if (u.compareTo(e) >= 0) return u.subtract(e) - if (u.signum() < 0) u.addTo(e, u) - else return u - if (u.signum() < 0) return u.add(e) - else return u - } - t.prototype.pow = function (t) { - return this.exp(t, new P()) - } - t.prototype.gcd = function (t) { - var e = this.s < 0 ? this.negate() : this.clone() - var r = t.s < 0 ? t.negate() : t.clone() - if (e.compareTo(r) < 0) { - var i = e - e = r - r = i - } - var n = e.getLowestSetBit() - var s = r.getLowestSetBit() - if (s < 0) return e - if (n < s) s = n - if (s > 0) { - e.rShiftTo(s, e) - r.rShiftTo(s, r) - } - while (e.signum() > 0) { - if ((n = e.getLowestSetBit()) > 0) e.rShiftTo(n, e) - if ((n = r.getLowestSetBit()) > 0) r.rShiftTo(n, r) - if (e.compareTo(r) >= 0) { - e.subTo(r, e) - e.rShiftTo(1, e) - } else { - r.subTo(e, r) - r.rShiftTo(1, r) - } - } - if (s > 0) r.lShiftTo(s, r) - return r - } - t.prototype.isProbablePrime = function (t) { - var e - var r = this.abs() - if (1 == r.t && r[0] <= C[C.length - 1]) { - for (e = 0; e < C.length; ++e) if (r[0] == C[e]) return true - return false - } - if (r.isEven()) return false - e = 1 - while (e < C.length) { - var i = C[e] - var n = e + 1 - while (n < C.length && i < O) i *= C[n++] - i = r.modInt(i) - while (e < n) if (i % C[e++] == 0) return false - } - return r.millerRabin(t) - } - t.prototype.copyTo = function (t) { - for (var e = this.t - 1; e >= 0; --e) t[e] = this[e] - t.t = this.t - t.s = this.s - } - t.prototype.fromInt = function (t) { - this.t = 1 - this.s = t < 0 ? -1 : 0 - if (t > 0) this[0] = t - else if (t < -1) this[0] = t + this.DV - else this.t = 0 - } - t.prototype.fromString = function (e, r) { - var i - if (16 == r) i = 4 - else if (8 == r) i = 3 - else if (256 == r) i = 8 - else if (2 == r) i = 1 - else if (32 == r) i = 5 - else if (4 == r) i = 2 - else { - this.fromRadix(e, r) - return - } - this.t = 0 - this.s = 0 - var n = e.length - var s = false - var a = 0 - while (--n >= 0) { - var o = 8 == i ? 255 & +e[n] : G(e, n) - if (o < 0) { - if ('-' == e.charAt(n)) s = true - continue - } - s = false - if (0 == a) this[this.t++] = o - else if (a + i > this.DB) { - this[this.t - 1] |= (o & ((1 << (this.DB - a)) - 1)) << a - this[this.t++] = o >> (this.DB - a) - } else this[this.t - 1] |= o << a - a += i - if (a >= this.DB) a -= this.DB - } - if (8 == i && 0 != (128 & +e[0])) { - this.s = -1 - if (a > 0) this[this.t - 1] |= ((1 << (this.DB - a)) - 1) << a - } - this.clamp() - if (s) t.ZERO.subTo(this, this) - } - t.prototype.clamp = function () { - var t = this.s & this.DM - while (this.t > 0 && this[this.t - 1] == t) --this.t - } - t.prototype.dlShiftTo = function (t, e) { - var r - for (r = this.t - 1; r >= 0; --r) e[r + t] = this[r] - for (r = t - 1; r >= 0; --r) e[r] = 0 - e.t = this.t + t - e.s = this.s - } - t.prototype.drShiftTo = function (t, e) { - for (var r = t; r < this.t; ++r) e[r - t] = this[r] - e.t = Math.max(this.t - t, 0) - e.s = this.s - } - t.prototype.lShiftTo = function (t, e) { - var r = t % this.DB - var i = this.DB - r - var n = (1 << i) - 1 - var s = Math.floor(t / this.DB) - var a = (this.s << r) & this.DM - for (var o = this.t - 1; o >= 0; --o) { - e[o + s + 1] = (this[o] >> i) | a - a = (this[o] & n) << r - } - for (var o = s - 1; o >= 0; --o) e[o] = 0 - e[s] = a - e.t = this.t + s + 1 - e.s = this.s - e.clamp() - } - t.prototype.rShiftTo = function (t, e) { - e.s = this.s - var r = Math.floor(t / this.DB) - if (r >= this.t) { - e.t = 0 - return - } - var i = t % this.DB - var n = this.DB - i - var s = (1 << i) - 1 - e[0] = this[r] >> i - for (var a = r + 1; a < this.t; ++a) { - e[a - r - 1] |= (this[a] & s) << n - e[a - r] = this[a] >> i - } - if (i > 0) e[this.t - r - 1] |= (this.s & s) << n - e.t = this.t - r - e.clamp() - } - t.prototype.subTo = function (t, e) { - var r = 0 - var i = 0 - var n = Math.min(t.t, this.t) - while (r < n) { - i += this[r] - t[r] - e[r++] = i & this.DM - i >>= this.DB - } - if (t.t < this.t) { - i -= t.s - while (r < this.t) { - i += this[r] - e[r++] = i & this.DM - i >>= this.DB - } - i += this.s - } else { - i += this.s - while (r < t.t) { - i -= t[r] - e[r++] = i & this.DM - i >>= this.DB - } - i -= t.s - } - e.s = i < 0 ? -1 : 0 - if (i < -1) e[r++] = this.DV + i - else if (i > 0) e[r++] = i - e.t = r - e.clamp() - } - t.prototype.multiplyTo = function (e, r) { - var i = this.abs() - var n = e.abs() - var s = i.t - r.t = s + n.t - while (--s >= 0) r[s] = 0 - for (s = 0; s < n.t; ++s) r[s + i.t] = i.am(0, n[s], r, s, 0, i.t) - r.s = 0 - r.clamp() - if (this.s != e.s) t.ZERO.subTo(r, r) - } - t.prototype.squareTo = function (t) { - var e = this.abs() - var r = (t.t = 2 * e.t) - while (--r >= 0) t[r] = 0 - for (r = 0; r < e.t - 1; ++r) { - var i = e.am(r, e[r], t, 2 * r, 0, 1) - if ( - (t[r + e.t] += e.am( - r + 1, - 2 * e[r], - t, - 2 * r + 1, - i, - e.t - r - 1 - )) >= e.DV - ) { - t[r + e.t] -= e.DV - t[r + e.t + 1] = 1 - } - } - if (t.t > 0) t[t.t - 1] += e.am(r, e[r], t, 2 * r, 0, 1) - t.s = 0 - t.clamp() - } - t.prototype.divRemTo = function (e, r, i) { - var n = e.abs() - if (n.t <= 0) return - var s = this.abs() - if (s.t < n.t) { - if (null != r) r.fromInt(0) - if (null != i) this.copyTo(i) - return - } - if (null == i) i = L() - var a = L() - var o = this.s - var u = e.s - var c = this.DB - W(n[n.t - 1]) - if (c > 0) { - n.lShiftTo(c, a) - s.lShiftTo(c, i) - } else { - n.copyTo(a) - s.copyTo(i) - } - var l = a.t - var f = a[l - 1] - if (0 == f) return - var h = f * (1 << this.F1) + (l > 1 ? a[l - 2] >> this.F2 : 0) - var d = this.FV / h - var v = (1 << this.F1) / h - var p = 1 << this.F2 - var g = i.t - var y = g - l - var m = null == r ? L() : r - a.dlShiftTo(y, m) - if (i.compareTo(m) >= 0) { - i[i.t++] = 1 - i.subTo(m, i) - } - t.ONE.dlShiftTo(l, m) - m.subTo(a, a) - while (a.t < l) a[a.t++] = 0 - while (--y >= 0) { - var _ = - i[--g] == f - ? this.DM - : Math.floor(i[g] * d + (i[g - 1] + p) * v) - if ((i[g] += a.am(0, _, i, y, 0, l)) < _) { - a.dlShiftTo(y, m) - i.subTo(m, i) - while (i[g] < --_) i.subTo(m, i) - } - } - if (null != r) { - i.drShiftTo(l, r) - if (o != u) t.ZERO.subTo(r, r) - } - i.t = l - i.clamp() - if (c > 0) i.rShiftTo(c, i) - if (o < 0) t.ZERO.subTo(i, i) - } - t.prototype.invDigit = function () { - if (this.t < 1) return 0 - var t = this[0] - if (0 == (1 & t)) return 0 - var e = 3 & t - e = (e * (2 - (15 & t) * e)) & 15 - e = (e * (2 - (255 & t) * e)) & 255 - e = (e * (2 - (((65535 & t) * e) & 65535))) & 65535 - e = (e * (2 - ((t * e) % this.DV))) % this.DV - return e > 0 ? this.DV - e : -e - } - t.prototype.isEven = function () { - return 0 == (this.t > 0 ? 1 & this[0] : this.s) - } - t.prototype.exp = function (e, r) { - if (e > 4294967295 || e < 1) return t.ONE - var i = L() - var n = L() - var s = r.convert(this) - var a = W(e) - 1 - s.copyTo(i) - while (--a >= 0) { - r.sqrTo(i, n) - if ((e & (1 << a)) > 0) r.mulTo(n, s, i) - else { - var o = i - i = n - n = o - } - } - return r.revert(i) - } - t.prototype.chunkSize = function (t) { - return Math.floor((Math.LN2 * this.DB) / Math.log(t)) - } - t.prototype.toRadix = function (t) { - if (null == t) t = 10 - if (0 == this.signum() || t < 2 || t > 36) return '0' - var e = this.chunkSize(t) - var r = Math.pow(t, e) - var i = Y(r) - var n = L() - var s = L() - var a = '' - this.divRemTo(i, n, s) - while (n.signum() > 0) { - a = (r + s.intValue()).toString(t).substr(1) + a - n.divRemTo(i, n, s) - } - return s.intValue().toString(t) + a - } - t.prototype.fromRadix = function (e, r) { - this.fromInt(0) - if (null == r) r = 10 - var i = this.chunkSize(r) - var n = Math.pow(r, i) - var s = false - var a = 0 - var o = 0 - for (var u = 0; u < e.length; ++u) { - var c = G(e, u) - if (c < 0) { - if ('-' == e.charAt(u) && 0 == this.signum()) s = true - continue - } - o = r * o + c - if (++a >= i) { - this.dMultiply(n) - this.dAddOffset(o, 0) - a = 0 - o = 0 - } - } - if (a > 0) { - this.dMultiply(Math.pow(r, a)) - this.dAddOffset(o, 0) - } - if (s) t.ZERO.subTo(this, this) - } - t.prototype.fromNumber = function (e, r, i) { - if ('number' == typeof r) - if (e < 2) this.fromInt(1) - else { - this.fromNumber(e, i) - if (!this.testBit(e - 1)) - this.bitwiseTo(t.ONE.shiftLeft(e - 1), a, this) - if (this.isEven()) this.dAddOffset(1, 0) - while (!this.isProbablePrime(r)) { - this.dAddOffset(2, 0) - if (this.bitLength() > e) - this.subTo(t.ONE.shiftLeft(e - 1), this) - } - } - else { - var n = [] - var s = 7 & e - n.length = (e >> 3) + 1 - r.nextBytes(n) - if (s > 0) n[0] &= (1 << s) - 1 - else n[0] = 0 - this.fromString(n, 256) - } - } - t.prototype.bitwiseTo = function (t, e, r) { - var i - var n - var s = Math.min(t.t, this.t) - for (i = 0; i < s; ++i) r[i] = e(this[i], t[i]) - if (t.t < this.t) { - n = t.s & this.DM - for (i = s; i < this.t; ++i) r[i] = e(this[i], n) - r.t = this.t - } else { - n = this.s & this.DM - for (i = s; i < t.t; ++i) r[i] = e(n, t[i]) - r.t = t.t - } - r.s = e(this.s, t.s) - r.clamp() - } - t.prototype.changeBit = function (e, r) { - var i = t.ONE.shiftLeft(e) - this.bitwiseTo(i, r, i) - return i - } - t.prototype.addTo = function (t, e) { - var r = 0 - var i = 0 - var n = Math.min(t.t, this.t) - while (r < n) { - i += this[r] + t[r] - e[r++] = i & this.DM - i >>= this.DB - } - if (t.t < this.t) { - i += t.s - while (r < this.t) { - i += this[r] - e[r++] = i & this.DM - i >>= this.DB - } - i += this.s - } else { - i += this.s - while (r < t.t) { - i += t[r] - e[r++] = i & this.DM - i >>= this.DB - } - i += t.s - } - e.s = i < 0 ? -1 : 0 - if (i > 0) e[r++] = i - else if (i < -1) e[r++] = this.DV + i - e.t = r - e.clamp() - } - t.prototype.dMultiply = function (t) { - this[this.t] = this.am(0, t - 1, this, 0, 0, this.t) - ++this.t - this.clamp() - } - t.prototype.dAddOffset = function (t, e) { - if (0 == t) return - while (this.t <= e) this[this.t++] = 0 - this[e] += t - while (this[e] >= this.DV) { - this[e] -= this.DV - if (++e >= this.t) this[this.t++] = 0 - ++this[e] - } - } - t.prototype.multiplyLowerTo = function (t, e, r) { - var i = Math.min(this.t + t.t, e) - r.s = 0 - r.t = i - while (i > 0) r[--i] = 0 - for (var n = r.t - this.t; i < n; ++i) - r[i + this.t] = this.am(0, t[i], r, i, 0, this.t) - for (var n = Math.min(t.t, e); i < n; ++i) - this.am(0, t[i], r, i, 0, e - i) - r.clamp() - } - t.prototype.multiplyUpperTo = function (t, e, r) { - --e - var i = (r.t = this.t + t.t - e) - r.s = 0 - while (--i >= 0) r[i] = 0 - for (i = Math.max(e - this.t, 0); i < t.t; ++i) - r[this.t + i - e] = this.am(e - i, t[i], r, 0, 0, this.t + i - e) - r.clamp() - r.drShiftTo(1, r) - } - t.prototype.modInt = function (t) { - if (t <= 0) return 0 - var e = this.DV % t - var r = this.s < 0 ? t - 1 : 0 - if (this.t > 0) - if (0 == e) r = this[0] % t - else - for (var i = this.t - 1; i >= 0; --i) r = (e * r + this[i]) % t - return r - } - t.prototype.millerRabin = function (e) { - var r = this.subtract(t.ONE) - var i = r.getLowestSetBit() - if (i <= 0) return false - var n = r.shiftRight(i) - e = (e + 1) >> 1 - if (e > C.length) e = C.length - var s = L() - for (var a = 0; a < e; ++a) { - s.fromInt(C[Math.floor(Math.random() * C.length)]) - var o = s.modPow(n, this) - if (0 != o.compareTo(t.ONE) && 0 != o.compareTo(r)) { - var u = 1 - while (u++ < i && 0 != o.compareTo(r)) { - o = o.modPowInt(2, this) - if (0 == o.compareTo(t.ONE)) return false - } - if (0 != o.compareTo(r)) return false - } - } - return true - } - t.prototype.square = function () { - var t = L() - this.squareTo(t) - return t - } - t.prototype.gcda = function (t, e) { - var r = this.s < 0 ? this.negate() : this.clone() - var i = t.s < 0 ? t.negate() : t.clone() - if (r.compareTo(i) < 0) { - var n = r - r = i - i = n - } - var s = r.getLowestSetBit() - var a = i.getLowestSetBit() - if (a < 0) { - e(r) - return - } - if (s < a) a = s - if (a > 0) { - r.rShiftTo(a, r) - i.rShiftTo(a, i) - } - var o = function () { - if ((s = r.getLowestSetBit()) > 0) r.rShiftTo(s, r) - if ((s = i.getLowestSetBit()) > 0) i.rShiftTo(s, i) - if (r.compareTo(i) >= 0) { - r.subTo(i, r) - r.rShiftTo(1, r) - } else { - i.subTo(r, i) - i.rShiftTo(1, i) - } - if (!(r.signum() > 0)) { - if (a > 0) i.lShiftTo(a, i) - setTimeout(function () { - e(i) - }, 0) - } else setTimeout(o, 0) - } - setTimeout(o, 10) - } - t.prototype.fromNumberAsync = function (e, r, i, n) { - if ('number' == typeof r) - if (e < 2) this.fromInt(1) - else { - this.fromNumber(e, i) - if (!this.testBit(e - 1)) - this.bitwiseTo(t.ONE.shiftLeft(e - 1), a, this) - if (this.isEven()) this.dAddOffset(1, 0) - var s = this - var o = function () { - s.dAddOffset(2, 0) - if (s.bitLength() > e) s.subTo(t.ONE.shiftLeft(e - 1), s) - if (s.isProbablePrime(r)) - setTimeout(function () { - n() - }, 0) - else setTimeout(o, 0) - } - setTimeout(o, 0) - } - else { - var u = [] - var c = 7 & e - u.length = (e >> 3) + 1 - r.nextBytes(u) - if (c > 0) u[0] &= (1 << c) - 1 - else u[0] = 0 - this.fromString(u, 256) - } - } - return t - })() - var P = (function () { - function t() {} - t.prototype.convert = function (t) { - return t - } - t.prototype.revert = function (t) { - return t - } - t.prototype.mulTo = function (t, e, r) { - t.multiplyTo(e, r) - } - t.prototype.sqrTo = function (t, e) { - t.squareTo(e) - } - return t - })() - var N = (function () { - function t(t) { - this.m = t - } - t.prototype.convert = function (t) { - if (t.s < 0 || t.compareTo(this.m) >= 0) return t.mod(this.m) - else return t - } - t.prototype.revert = function (t) { - return t - } - t.prototype.reduce = function (t) { - t.divRemTo(this.m, null, t) - } - t.prototype.mulTo = function (t, e, r) { - t.multiplyTo(e, r) - this.reduce(r) - } - t.prototype.sqrTo = function (t, e) { - t.squareTo(e) - this.reduce(e) - } - return t - })() - var V = (function () { - function t(t) { - this.m = t - this.mp = t.invDigit() - this.mpl = 32767 & this.mp - this.mph = this.mp >> 15 - this.um = (1 << (t.DB - 15)) - 1 - this.mt2 = 2 * t.t - } - t.prototype.convert = function (t) { - var e = L() - t.abs().dlShiftTo(this.m.t, e) - e.divRemTo(this.m, null, e) - if (t.s < 0 && e.compareTo(k.ZERO) > 0) this.m.subTo(e, e) - return e - } - t.prototype.revert = function (t) { - var e = L() - t.copyTo(e) - this.reduce(e) - return e - } - t.prototype.reduce = function (t) { - while (t.t <= this.mt2) t[t.t++] = 0 - for (var e = 0; e < this.m.t; ++e) { - var r = 32767 & t[e] - var i = - (r * this.mpl + - (((r * this.mph + (t[e] >> 15) * this.mpl) & this.um) << - 15)) & - t.DM - r = e + this.m.t - t[r] += this.m.am(0, i, t, e, 0, this.m.t) - while (t[r] >= t.DV) { - t[r] -= t.DV - t[++r]++ - } - } - t.clamp() - t.drShiftTo(this.m.t, t) - if (t.compareTo(this.m) >= 0) t.subTo(this.m, t) - } - t.prototype.mulTo = function (t, e, r) { - t.multiplyTo(e, r) - this.reduce(r) - } - t.prototype.sqrTo = function (t, e) { - t.squareTo(e) - this.reduce(e) - } - return t - })() - var H = (function () { - function t(t) { - this.m = t - this.r2 = L() - this.q3 = L() - k.ONE.dlShiftTo(2 * t.t, this.r2) - this.mu = this.r2.divide(t) - } - t.prototype.convert = function (t) { - if (t.s < 0 || t.t > 2 * this.m.t) return t.mod(this.m) - else if (t.compareTo(this.m) < 0) return t - else { - var e = L() - t.copyTo(e) - this.reduce(e) - return e - } - } - t.prototype.revert = function (t) { - return t - } - t.prototype.reduce = function (t) { - t.drShiftTo(this.m.t - 1, this.r2) - if (t.t > this.m.t + 1) { - t.t = this.m.t + 1 - t.clamp() - } - this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3) - this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2) - while (t.compareTo(this.r2) < 0) t.dAddOffset(1, this.m.t + 1) - t.subTo(this.r2, t) - while (t.compareTo(this.m) >= 0) t.subTo(this.m, t) - } - t.prototype.mulTo = function (t, e, r) { - t.multiplyTo(e, r) - this.reduce(r) - } - t.prototype.sqrTo = function (t, e) { - t.squareTo(e) - this.reduce(e) - } - return t - })() - function L() { - return new k(null) - } - function K(t, e) { - return new k(t, e) - } - var U = 'undefined' !== typeof navigator - if (U && B && 'Microsoft Internet Explorer' == navigator.appName) { - k.prototype.am = function t(e, r, i, n, s, a) { - var o = 32767 & r - var u = r >> 15 - while (--a >= 0) { - var c = 32767 & this[e] - var l = this[e++] >> 15 - var f = u * c + l * o - c = o * c + ((32767 & f) << 15) + i[n] + (1073741823 & s) - s = (c >>> 30) + (f >>> 15) + u * l + (s >>> 30) - i[n++] = 1073741823 & c - } - return s - } - R = 30 - } else if (U && B && 'Netscape' != navigator.appName) { - k.prototype.am = function t(e, r, i, n, s, a) { - while (--a >= 0) { - var o = r * this[e++] + i[n] + s - s = Math.floor(o / 67108864) - i[n++] = 67108863 & o - } - return s - } - R = 26 - } else { - k.prototype.am = function t(e, r, i, n, s, a) { - var o = 16383 & r - var u = r >> 14 - while (--a >= 0) { - var c = 16383 & this[e] - var l = this[e++] >> 14 - var f = u * c + l * o - c = o * c + ((16383 & f) << 14) + i[n] + s - s = (c >> 28) + (f >> 14) + u * l - i[n++] = 268435455 & c - } - return s - } - R = 28 - } - k.prototype.DB = R - k.prototype.DM = (1 << R) - 1 - k.prototype.DV = 1 << R - var j = 52 - k.prototype.FV = Math.pow(2, j) - k.prototype.F1 = j - R - k.prototype.F2 = 2 * R - j - var F = [] - var z - var q - z = '0'.charCodeAt(0) - for (q = 0; q <= 9; ++q) F[z++] = q - z = 'a'.charCodeAt(0) - for (q = 10; q < 36; ++q) F[z++] = q - z = 'A'.charCodeAt(0) - for (q = 10; q < 36; ++q) F[z++] = q - function G(t, e) { - var r = F[t.charCodeAt(e)] - return null == r ? -1 : r - } - function Y(t) { - var e = L() - e.fromInt(t) - return e - } - function W(t) { - var e = 1 - var r - if (0 != (r = t >>> 16)) { - t = r - e += 16 - } - if (0 != (r = t >> 8)) { - t = r - e += 8 - } - if (0 != (r = t >> 4)) { - t = r - e += 4 - } - if (0 != (r = t >> 2)) { - t = r - e += 2 - } - if (0 != (r = t >> 1)) { - t = r - e += 1 - } - return e - } - k.ZERO = Y(0) - k.ONE = Y(1) - var J = (function () { - function t() { - this.i = 0 - this.j = 0 - this.S = [] - } - t.prototype.init = function (t) { - var e - var r - var i - for (e = 0; e < 256; ++e) this.S[e] = e - r = 0 - for (e = 0; e < 256; ++e) { - r = (r + this.S[e] + t[e % t.length]) & 255 - i = this.S[e] - this.S[e] = this.S[r] - this.S[r] = i - } - this.i = 0 - this.j = 0 - } - t.prototype.next = function () { - var t - this.i = (this.i + 1) & 255 - this.j = (this.j + this.S[this.i]) & 255 - t = this.S[this.i] - this.S[this.i] = this.S[this.j] - this.S[this.j] = t - return this.S[(t + this.S[this.i]) & 255] - } - return t - })() - function $() { - return new J() - } - var Z = 256 - var X - var Q = null - var tt - if (null == Q) { - Q = [] - tt = 0 - var et = void 0 - var rt = 0 - var it = function (t) { - rt = rt || 0 - if (rt >= 256 || tt >= rng_psize) return - try { - var e = t.x + t.y - Q[tt++] = 255 & e - rt += 1 - } catch (t) {} - } - } - function nt() { - if (null == X) { - X = $() - while (tt < Z) { - var t = Math.floor(65536 * Math.random()) - Q[tt++] = 255 & t - } - X.init(Q) - for (tt = 0; tt < Q.length; ++tt) Q[tt] = 0 - tt = 0 - } - return X.next() - } - var st = (function () { - function t() {} - t.prototype.nextBytes = function (t) { - for (var e = 0; e < t.length; ++e) t[e] = nt() - } - return t - })() - function at(t, e) { - if (e < t.length + 22) { - console.error('Message too long for RSA') - return null - } - var r = e - t.length - 6 - var i = '' - for (var n = 0; n < r; n += 2) i += 'ff' - var s = '0001' + i + '00' + t - return K(s, 16) - } - function ot(t, e) { - if (e < t.length + 11) { - console.error('Message too long for RSA') - return null - } - var r = [] - var i = t.length - 1 - while (i >= 0 && e > 0) { - var n = t.charCodeAt(i--) - if (n < 128) r[--e] = n - else if (n > 127 && n < 2048) { - r[--e] = (63 & n) | 128 - r[--e] = (n >> 6) | 192 - } else { - r[--e] = (63 & n) | 128 - r[--e] = ((n >> 6) & 63) | 128 - r[--e] = (n >> 12) | 224 - } - } - r[--e] = 0 - var s = new st() - var a = [] - while (e > 2) { - a[0] = 0 - while (0 == a[0]) s.nextBytes(a) - r[--e] = a[0] - } - r[--e] = 2 - r[--e] = 0 - return new k(r) - } - var ut = (function () { - function t() { - this.n = null - this.e = 0 - this.d = null - this.p = null - this.q = null - this.dmp1 = null - this.dmq1 = null - this.coeff = null - } - t.prototype.doPublic = function (t) { - return t.modPowInt(this.e, this.n) - } - t.prototype.doPrivate = function (t) { - if (null == this.p || null == this.q) - return t.modPow(this.d, this.n) - var e = t.mod(this.p).modPow(this.dmp1, this.p) - var r = t.mod(this.q).modPow(this.dmq1, this.q) - while (e.compareTo(r) < 0) e = e.add(this.p) - return e - .subtract(r) - .multiply(this.coeff) - .mod(this.p) - .multiply(this.q) - .add(r) - } - t.prototype.setPublic = function (t, e) { - if (null != t && null != e && t.length > 0 && e.length > 0) { - this.n = K(t, 16) - this.e = parseInt(e, 16) - } else console.error('Invalid RSA public key') - } - t.prototype.encrypt = function (t) { - var e = (this.n.bitLength() + 7) >> 3 - var r = ot(t, e) - if (null == r) return null - var i = this.doPublic(r) - if (null == i) return null - var n = i.toString(16) - var s = n.length - for (var a = 0; a < 2 * e - s; a++) n = '0' + n - return n - } - t.prototype.setPrivate = function (t, e, r) { - if (null != t && null != e && t.length > 0 && e.length > 0) { - this.n = K(t, 16) - this.e = parseInt(e, 16) - this.d = K(r, 16) - } else console.error('Invalid RSA private key') - } - t.prototype.setPrivateEx = function (t, e, r, i, n, s, a, o) { - if (null != t && null != e && t.length > 0 && e.length > 0) { - this.n = K(t, 16) - this.e = parseInt(e, 16) - this.d = K(r, 16) - this.p = K(i, 16) - this.q = K(n, 16) - this.dmp1 = K(s, 16) - this.dmq1 = K(a, 16) - this.coeff = K(o, 16) - } else console.error('Invalid RSA private key') - } - t.prototype.generate = function (t, e) { - var r = new st() - var i = t >> 1 - this.e = parseInt(e, 16) - var n = new k(e, 16) - for (;;) { - for (;;) { - this.p = new k(t - i, 1, r) - if ( - 0 == this.p.subtract(k.ONE).gcd(n).compareTo(k.ONE) && - this.p.isProbablePrime(10) - ) - break - } - for (;;) { - this.q = new k(i, 1, r) - if ( - 0 == this.q.subtract(k.ONE).gcd(n).compareTo(k.ONE) && - this.q.isProbablePrime(10) - ) - break - } - if (this.p.compareTo(this.q) <= 0) { - var s = this.p - this.p = this.q - this.q = s - } - var a = this.p.subtract(k.ONE) - var o = this.q.subtract(k.ONE) - var u = a.multiply(o) - if (0 == u.gcd(n).compareTo(k.ONE)) { - this.n = this.p.multiply(this.q) - this.d = n.modInverse(u) - this.dmp1 = this.d.mod(a) - this.dmq1 = this.d.mod(o) - this.coeff = this.q.modInverse(this.p) - break - } - } - } - t.prototype.decrypt = function (t) { - var e = K(t, 16) - var r = this.doPrivate(e) - if (null == r) return null - return ct(r, (this.n.bitLength() + 7) >> 3) - } - t.prototype.generateAsync = function (t, e, r) { - var i = new st() - var n = t >> 1 - this.e = parseInt(e, 16) - var s = new k(e, 16) - var a = this - var o = function () { - var e = function () { - if (a.p.compareTo(a.q) <= 0) { - var t = a.p - a.p = a.q - a.q = t - } - var e = a.p.subtract(k.ONE) - var i = a.q.subtract(k.ONE) - var n = e.multiply(i) - if (0 == n.gcd(s).compareTo(k.ONE)) { - a.n = a.p.multiply(a.q) - a.d = s.modInverse(n) - a.dmp1 = a.d.mod(e) - a.dmq1 = a.d.mod(i) - a.coeff = a.q.modInverse(a.p) - setTimeout(function () { - r() - }, 0) - } else setTimeout(o, 0) - } - var u = function () { - a.q = L() - a.q.fromNumberAsync(n, 1, i, function () { - a.q.subtract(k.ONE).gcda(s, function (t) { - if (0 == t.compareTo(k.ONE) && a.q.isProbablePrime(10)) - setTimeout(e, 0) - else setTimeout(u, 0) - }) - }) - } - var c = function () { - a.p = L() - a.p.fromNumberAsync(t - n, 1, i, function () { - a.p.subtract(k.ONE).gcda(s, function (t) { - if (0 == t.compareTo(k.ONE) && a.p.isProbablePrime(10)) - setTimeout(u, 0) - else setTimeout(c, 0) - }) - }) - } - setTimeout(c, 0) - } - setTimeout(o, 0) - } - t.prototype.sign = function (t, e, r) { - var i = ht(r) - var n = i + e(t).toString() - var s = at(n, this.n.bitLength() / 4) - if (null == s) return null - var a = this.doPrivate(s) - if (null == a) return null - var o = a.toString(16) - if (0 == (1 & o.length)) return o - else return '0' + o - } - t.prototype.verify = function (t, e, r) { - var i = K(e, 16) - var n = this.doPublic(i) - if (null == n) return null - var s = n.toString(16).replace(/^1f+00/, '') - var a = dt(s) - return a == r(t).toString() - } - t.prototype.encryptLong = function (t) { - var e = this - var r = '' - var i = ((this.n.bitLength() + 7) >> 3) - 11 - var n = this.setSplitChn(t, i) - n.forEach(function (t) { - r += e.encrypt(t) - }) - return r - } - t.prototype.decryptLong = function (t) { - var e = '' - var r = (this.n.bitLength() + 7) >> 3 - var i = 2 * r - if (t.length > i) { - var n = t.match(new RegExp('.{1,' + i + '}', 'g')) || [] - var s = [] - for (var a = 0; a < n.length; a++) { - var o = K(n[a], 16) - var u = this.doPrivate(o) - if (null == u) return null - s.push(u) - } - e = lt(s, r) - } else e = this.decrypt(t) - return e - } - t.prototype.setSplitChn = function (t, e, r) { - if (void 0 === r) r = [] - var i = t.split('') - var n = 0 - for (var s = 0; s < i.length; s++) { - var a = i[s].charCodeAt(0) - if (a <= 127) n += 1 - else if (a <= 2047) n += 2 - else if (a <= 65535) n += 3 - else n += 4 - if (n > e) { - var o = t.substring(0, s) - r.push(o) - return this.setSplitChn(t.substring(s), e, r) - } - } - r.push(t) - return r - } - return t - })() - function ct(t, e) { - var r = t.toByteArray() - var i = 0 - while (i < r.length && 0 == r[i]) ++i - if (r.length - i != e - 1 || 2 != r[i]) return null - ++i - while (0 != r[i]) if (++i >= r.length) return null - var n = '' - while (++i < r.length) { - var s = 255 & r[i] - if (s < 128) n += String.fromCharCode(s) - else if (s > 191 && s < 224) { - n += String.fromCharCode(((31 & s) << 6) | (63 & r[i + 1])) - ++i - } else { - n += String.fromCharCode( - ((15 & s) << 12) | ((63 & r[i + 1]) << 6) | (63 & r[i + 2]) - ) - i += 2 - } - } - return n - } - function lt(t, e) { - var r = [] - for (var i = 0; i < t.length; i++) { - var n = t[i] - var s = n.toByteArray() - var a = 0 - while (a < s.length && 0 == s[a]) ++a - if (s.length - a != e - 1 || 2 != s[a]) return null - ++a - while (0 != s[a]) if (++a >= s.length) return null - r = r.concat(s.slice(a + 1)) - } - var o = r - var u = -1 - var c = '' - while (++u < o.length) { - var l = 255 & o[u] - if (l < 128) c += String.fromCharCode(l) - else if (l > 191 && l < 224) { - c += String.fromCharCode(((31 & l) << 6) | (63 & o[u + 1])) - ++u - } else { - c += String.fromCharCode( - ((15 & l) << 12) | ((63 & o[u + 1]) << 6) | (63 & o[u + 2]) - ) - u += 2 - } - } - return c - } - var ft = { - md2: '3020300c06082a864886f70d020205000410', - md5: '3020300c06082a864886f70d020505000410', - sha1: '3021300906052b0e03021a05000414', - sha224: '302d300d06096086480165030402040500041c', - sha256: '3031300d060960864801650304020105000420', - sha384: '3041300d060960864801650304020205000430', - sha512: '3051300d060960864801650304020305000440', - ripemd160: '3021300906052b2403020105000414', - } - function ht(t) { - return ft[t] || '' - } - function dt(t) { - for (var e in ft) - if (ft.hasOwnProperty(e)) { - var r = ft[e] - var i = r.length - if (t.substr(0, i) == r) return t.substr(i) - } - return t - } - var vt = {} - vt.lang = { - extend: function (t, e, r) { - if (!e || !t) - throw new Error( - 'YAHOO.lang.extend failed, please check that ' + - 'all dependencies are included.' - ) - var i = function () {} - i.prototype = e.prototype - t.prototype = new i() - t.prototype.constructor = t - t.superclass = e.prototype - if (e.prototype.constructor == Object.prototype.constructor) - e.prototype.constructor = e - if (r) { - var n - for (n in r) t.prototype[n] = r[n] - var s = function () {}, - a = ['toString', 'valueOf'] - try { - if (/MSIE/.test(navigator.userAgent)) - s = function (t, e) { - for (n = 0; n < a.length; n += 1) { - var r = a[n], - i = e[r] - if ('function' === typeof i && i != Object.prototype[r]) - t[r] = i - } - } - } catch (t) {} - s(t.prototype, r) - } - }, - } - var pt = {} - if ('undefined' == typeof pt.asn1 || !pt.asn1) pt.asn1 = {} - pt.asn1.ASN1Util = new (function () { - this.integerToByteHex = function (t) { - var e = t.toString(16) - if (e.length % 2 == 1) e = '0' + e - return e - } - this.bigIntToMinTwosComplementsHex = function (t) { - var e = t.toString(16) - if ('-' != e.substr(0, 1)) { - if (e.length % 2 == 1) e = '0' + e - else if (!e.match(/^[0-7]/)) e = '00' + e - } else { - var r = e.substr(1) - var i = r.length - if (i % 2 == 1) i += 1 - else if (!e.match(/^[0-7]/)) i += 2 - var n = '' - for (var s = 0; s < i; s++) n += 'f' - var a = new k(n, 16) - var o = a.xor(t).add(k.ONE) - e = o.toString(16).replace(/^-/, '') - } - return e - } - this.getPEMStringFromHex = function (t, e) { - return hextopem(t, e) - } - this.newObject = function (t) { - var e = pt, - r = e.asn1, - i = r.DERBoolean, - n = r.DERInteger, - s = r.DERBitString, - a = r.DEROctetString, - o = r.DERNull, - u = r.DERObjectIdentifier, - c = r.DEREnumerated, - l = r.DERUTF8String, - f = r.DERNumericString, - h = r.DERPrintableString, - d = r.DERTeletexString, - v = r.DERIA5String, - p = r.DERUTCTime, - g = r.DERGeneralizedTime, - y = r.DERSequence, - m = r.DERSet, - _ = r.DERTaggedObject, - S = r.ASN1Util.newObject - var E = Object.keys(t) - if (1 != E.length) throw 'key of param shall be only one.' - var b = E[0] - if ( - -1 == - ':bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:'.indexOf( - ':' + b + ':' - ) - ) - throw 'undefined key: ' + b - if ('bool' == b) return new i(t[b]) - if ('int' == b) return new n(t[b]) - if ('bitstr' == b) return new s(t[b]) - if ('octstr' == b) return new a(t[b]) - if ('null' == b) return new o(t[b]) - if ('oid' == b) return new u(t[b]) - if ('enum' == b) return new c(t[b]) - if ('utf8str' == b) return new l(t[b]) - if ('numstr' == b) return new f(t[b]) - if ('prnstr' == b) return new h(t[b]) - if ('telstr' == b) return new d(t[b]) - if ('ia5str' == b) return new v(t[b]) - if ('utctime' == b) return new p(t[b]) - if ('gentime' == b) return new g(t[b]) - if ('seq' == b) { - var w = t[b] - var D = [] - for (var T = 0; T < w.length; T++) { - var A = S(w[T]) - D.push(A) - } - return new y({ array: D }) - } - if ('set' == b) { - var w = t[b] - var D = [] - for (var T = 0; T < w.length; T++) { - var A = S(w[T]) - D.push(A) - } - return new m({ array: D }) - } - if ('tag' == b) { - var M = t[b] - if ( - '[object Array]' === Object.prototype.toString.call(M) && - 3 == M.length - ) { - var I = S(M[2]) - return new _({ tag: M[0], explicit: M[1], obj: I }) - } else { - var R = {} - if (void 0 !== M.explicit) R.explicit = M.explicit - if (void 0 !== M.tag) R.tag = M.tag - if (void 0 === M.obj) throw "obj shall be specified for 'tag'." - R.obj = S(M.obj) - return new _(R) - } - } - } - this.jsonToASN1HEX = function (t) { - var e = this.newObject(t) - return e.getEncodedHex() - } - })() - pt.asn1.ASN1Util.oidHexToInt = function (t) { - var e = '' - var r = parseInt(t.substr(0, 2), 16) - var i = Math.floor(r / 40) - var n = r % 40 - var e = i + '.' + n - var s = '' - for (var a = 2; a < t.length; a += 2) { - var o = parseInt(t.substr(a, 2), 16) - var u = ('00000000' + o.toString(2)).slice(-8) - s += u.substr(1, 7) - if ('0' == u.substr(0, 1)) { - var c = new k(s, 2) - e = e + '.' + c.toString(10) - s = '' - } - } - return e - } - pt.asn1.ASN1Util.oidIntToHex = function (t) { - var e = function (t) { - var e = t.toString(16) - if (1 == e.length) e = '0' + e - return e - } - var r = function (t) { - var r = '' - var i = new k(t, 10) - var n = i.toString(2) - var s = 7 - (n.length % 7) - if (7 == s) s = 0 - var a = '' - for (var o = 0; o < s; o++) a += '0' - n = a + n - for (var o = 0; o < n.length - 1; o += 7) { - var u = n.substr(o, 7) - if (o != n.length - 7) u = '1' + u - r += e(parseInt(u, 2)) - } - return r - } - if (!t.match(/^[0-9.]+$/)) throw 'malformed oid string: ' + t - var i = '' - var n = t.split('.') - var s = 40 * parseInt(n[0]) + parseInt(n[1]) - i += e(s) - n.splice(0, 2) - for (var a = 0; a < n.length; a++) i += r(n[a]) - return i - } - pt.asn1.ASN1Object = function () { - var t = true - var e = null - var r = '00' - var i = '00' - var n = '' - this.getLengthHexFromValue = function () { - if ('undefined' == typeof this.hV || null == this.hV) - throw 'this.hV is null or undefined.' - if (this.hV.length % 2 == 1) - throw ( - 'value hex must be even length: n=' + n.length + ',v=' + this.hV - ) - var t = this.hV.length / 2 - var e = t.toString(16) - if (e.length % 2 == 1) e = '0' + e - if (t < 128) return e - else { - var r = e.length / 2 - if (r > 15) - throw ( - 'ASN.1 length too long to represent by 8x: n = ' + - t.toString(16) - ) - var i = 128 + r - return i.toString(16) + e - } - } - this.getEncodedHex = function () { - if (null == this.hTLV || this.isModified) { - this.hV = this.getFreshValueHex() - this.hL = this.getLengthHexFromValue() - this.hTLV = this.hT + this.hL + this.hV - this.isModified = false - } - return this.hTLV - } - this.getValueHex = function () { - this.getEncodedHex() - return this.hV - } - this.getFreshValueHex = function () { - return '' - } - } - pt.asn1.DERAbstractString = function (t) { - pt.asn1.DERAbstractString.superclass.constructor.call(this) - var e = null - var r = null - this.getString = function () { - return this.s - } - this.setString = function (t) { - this.hTLV = null - this.isModified = true - this.s = t - this.hV = stohex(this.s) - } - this.setStringHex = function (t) { - this.hTLV = null - this.isModified = true - this.s = null - this.hV = t - } - this.getFreshValueHex = function () { - return this.hV - } - if ('undefined' != typeof t) - if ('string' == typeof t) this.setString(t) - else if ('undefined' != typeof t['str']) this.setString(t['str']) - else if ('undefined' != typeof t['hex']) this.setStringHex(t['hex']) - } - vt.lang.extend(pt.asn1.DERAbstractString, pt.asn1.ASN1Object) - pt.asn1.DERAbstractTime = function (t) { - pt.asn1.DERAbstractTime.superclass.constructor.call(this) - var e = null - var r = null - this.localDateToUTC = function (t) { - utc = t.getTime() + 6e4 * t.getTimezoneOffset() - var e = new Date(utc) - return e - } - this.formatDate = function (t, e, r) { - var i = this.zeroPadding - var n = this.localDateToUTC(t) - var s = String(n.getFullYear()) - if ('utc' == e) s = s.substr(2, 2) - var a = i(String(n.getMonth() + 1), 2) - var o = i(String(n.getDate()), 2) - var u = i(String(n.getHours()), 2) - var c = i(String(n.getMinutes()), 2) - var l = i(String(n.getSeconds()), 2) - var f = s + a + o + u + c + l - if (true === r) { - var h = n.getMilliseconds() - if (0 != h) { - var d = i(String(h), 3) - d = d.replace(/[0]+$/, '') - f = f + '.' + d - } - } - return f + 'Z' - } - this.zeroPadding = function (t, e) { - if (t.length >= e) return t - return new Array(e - t.length + 1).join('0') + t - } - this.getString = function () { - return this.s - } - this.setString = function (t) { - this.hTLV = null - this.isModified = true - this.s = t - this.hV = stohex(t) - } - this.setByDateValue = function (t, e, r, i, n, s) { - var a = new Date(Date.UTC(t, e - 1, r, i, n, s, 0)) - this.setByDate(a) - } - this.getFreshValueHex = function () { - return this.hV - } - } - vt.lang.extend(pt.asn1.DERAbstractTime, pt.asn1.ASN1Object) - pt.asn1.DERAbstractStructured = function (t) { - pt.asn1.DERAbstractString.superclass.constructor.call(this) - var e = null - this.setByASN1ObjectArray = function (t) { - this.hTLV = null - this.isModified = true - this.asn1Array = t - } - this.appendASN1Object = function (t) { - this.hTLV = null - this.isModified = true - this.asn1Array.push(t) - } - this.asn1Array = new Array() - if ('undefined' != typeof t) - if ('undefined' != typeof t['array']) this.asn1Array = t['array'] - } - vt.lang.extend(pt.asn1.DERAbstractStructured, pt.asn1.ASN1Object) - pt.asn1.DERBoolean = function () { - pt.asn1.DERBoolean.superclass.constructor.call(this) - this.hT = '01' - this.hTLV = '0101ff' - } - vt.lang.extend(pt.asn1.DERBoolean, pt.asn1.ASN1Object) - pt.asn1.DERInteger = function (t) { - pt.asn1.DERInteger.superclass.constructor.call(this) - this.hT = '02' - this.setByBigInteger = function (t) { - this.hTLV = null - this.isModified = true - this.hV = pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t) - } - this.setByInteger = function (t) { - var e = new k(String(t), 10) - this.setByBigInteger(e) - } - this.setValueHex = function (t) { - this.hV = t - } - this.getFreshValueHex = function () { - return this.hV - } - if ('undefined' != typeof t) - if ('undefined' != typeof t['bigint']) - this.setByBigInteger(t['bigint']) - else if ('undefined' != typeof t['int']) this.setByInteger(t['int']) - else if ('number' == typeof t) this.setByInteger(t) - else if ('undefined' != typeof t['hex']) this.setValueHex(t['hex']) - } - vt.lang.extend(pt.asn1.DERInteger, pt.asn1.ASN1Object) - pt.asn1.DERBitString = function (t) { - if (void 0 !== t && 'undefined' !== typeof t.obj) { - var e = pt.asn1.ASN1Util.newObject(t.obj) - t.hex = '00' + e.getEncodedHex() - } - pt.asn1.DERBitString.superclass.constructor.call(this) - this.hT = '03' - this.setHexValueIncludingUnusedBits = function (t) { - this.hTLV = null - this.isModified = true - this.hV = t - } - this.setUnusedBitsAndHexValue = function (t, e) { - if (t < 0 || 7 < t) - throw 'unused bits shall be from 0 to 7: u = ' + t - var r = '0' + t - this.hTLV = null - this.isModified = true - this.hV = r + e - } - this.setByBinaryString = function (t) { - t = t.replace(/0+$/, '') - var e = 8 - (t.length % 8) - if (8 == e) e = 0 - for (var r = 0; r <= e; r++) t += '0' - var i = '' - for (var r = 0; r < t.length - 1; r += 8) { - var n = t.substr(r, 8) - var s = parseInt(n, 2).toString(16) - if (1 == s.length) s = '0' + s - i += s - } - this.hTLV = null - this.isModified = true - this.hV = '0' + e + i - } - this.setByBooleanArray = function (t) { - var e = '' - for (var r = 0; r < t.length; r++) - if (true == t[r]) e += '1' - else e += '0' - this.setByBinaryString(e) - } - this.newFalseArray = function (t) { - var e = new Array(t) - for (var r = 0; r < t; r++) e[r] = false - return e - } - this.getFreshValueHex = function () { - return this.hV - } - if ('undefined' != typeof t) - if ('string' == typeof t && t.toLowerCase().match(/^[0-9a-f]+$/)) - this.setHexValueIncludingUnusedBits(t) - else if ('undefined' != typeof t['hex']) - this.setHexValueIncludingUnusedBits(t['hex']) - else if ('undefined' != typeof t['bin']) - this.setByBinaryString(t['bin']) - else if ('undefined' != typeof t['array']) - this.setByBooleanArray(t['array']) - } - vt.lang.extend(pt.asn1.DERBitString, pt.asn1.ASN1Object) - pt.asn1.DEROctetString = function (t) { - if (void 0 !== t && 'undefined' !== typeof t.obj) { - var e = pt.asn1.ASN1Util.newObject(t.obj) - t.hex = e.getEncodedHex() - } - pt.asn1.DEROctetString.superclass.constructor.call(this, t) - this.hT = '04' - } - vt.lang.extend(pt.asn1.DEROctetString, pt.asn1.DERAbstractString) - pt.asn1.DERNull = function () { - pt.asn1.DERNull.superclass.constructor.call(this) - this.hT = '05' - this.hTLV = '0500' - } - vt.lang.extend(pt.asn1.DERNull, pt.asn1.ASN1Object) - pt.asn1.DERObjectIdentifier = function (t) { - var e = function (t) { - var e = t.toString(16) - if (1 == e.length) e = '0' + e - return e - } - var r = function (t) { - var r = '' - var i = new k(t, 10) - var n = i.toString(2) - var s = 7 - (n.length % 7) - if (7 == s) s = 0 - var a = '' - for (var o = 0; o < s; o++) a += '0' - n = a + n - for (var o = 0; o < n.length - 1; o += 7) { - var u = n.substr(o, 7) - if (o != n.length - 7) u = '1' + u - r += e(parseInt(u, 2)) - } - return r - } - pt.asn1.DERObjectIdentifier.superclass.constructor.call(this) - this.hT = '06' - this.setValueHex = function (t) { - this.hTLV = null - this.isModified = true - this.s = null - this.hV = t - } - this.setValueOidString = function (t) { - if (!t.match(/^[0-9.]+$/)) throw 'malformed oid string: ' + t - var i = '' - var n = t.split('.') - var s = 40 * parseInt(n[0]) + parseInt(n[1]) - i += e(s) - n.splice(0, 2) - for (var a = 0; a < n.length; a++) i += r(n[a]) - this.hTLV = null - this.isModified = true - this.s = null - this.hV = i - } - this.setValueName = function (t) { - var e = pt.asn1.x509.OID.name2oid(t) - if ('' !== e) this.setValueOidString(e) - else throw 'DERObjectIdentifier oidName undefined: ' + t - } - this.getFreshValueHex = function () { - return this.hV - } - if (void 0 !== t) - if ('string' === typeof t) - if (t.match(/^[0-2].[0-9.]+$/)) this.setValueOidString(t) - else this.setValueName(t) - else if (void 0 !== t.oid) this.setValueOidString(t.oid) - else if (void 0 !== t.hex) this.setValueHex(t.hex) - else if (void 0 !== t.name) this.setValueName(t.name) - } - vt.lang.extend(pt.asn1.DERObjectIdentifier, pt.asn1.ASN1Object) - pt.asn1.DEREnumerated = function (t) { - pt.asn1.DEREnumerated.superclass.constructor.call(this) - this.hT = '0a' - this.setByBigInteger = function (t) { - this.hTLV = null - this.isModified = true - this.hV = pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t) - } - this.setByInteger = function (t) { - var e = new k(String(t), 10) - this.setByBigInteger(e) - } - this.setValueHex = function (t) { - this.hV = t - } - this.getFreshValueHex = function () { - return this.hV - } - if ('undefined' != typeof t) - if ('undefined' != typeof t['int']) this.setByInteger(t['int']) - else if ('number' == typeof t) this.setByInteger(t) - else if ('undefined' != typeof t['hex']) this.setValueHex(t['hex']) - } - vt.lang.extend(pt.asn1.DEREnumerated, pt.asn1.ASN1Object) - pt.asn1.DERUTF8String = function (t) { - pt.asn1.DERUTF8String.superclass.constructor.call(this, t) - this.hT = '0c' - } - vt.lang.extend(pt.asn1.DERUTF8String, pt.asn1.DERAbstractString) - pt.asn1.DERNumericString = function (t) { - pt.asn1.DERNumericString.superclass.constructor.call(this, t) - this.hT = '12' - } - vt.lang.extend(pt.asn1.DERNumericString, pt.asn1.DERAbstractString) - pt.asn1.DERPrintableString = function (t) { - pt.asn1.DERPrintableString.superclass.constructor.call(this, t) - this.hT = '13' - } - vt.lang.extend(pt.asn1.DERPrintableString, pt.asn1.DERAbstractString) - pt.asn1.DERTeletexString = function (t) { - pt.asn1.DERTeletexString.superclass.constructor.call(this, t) - this.hT = '14' - } - vt.lang.extend(pt.asn1.DERTeletexString, pt.asn1.DERAbstractString) - pt.asn1.DERIA5String = function (t) { - pt.asn1.DERIA5String.superclass.constructor.call(this, t) - this.hT = '16' - } - vt.lang.extend(pt.asn1.DERIA5String, pt.asn1.DERAbstractString) - pt.asn1.DERUTCTime = function (t) { - pt.asn1.DERUTCTime.superclass.constructor.call(this, t) - this.hT = '17' - this.setByDate = function (t) { - this.hTLV = null - this.isModified = true - this.date = t - this.s = this.formatDate(this.date, 'utc') - this.hV = stohex(this.s) - } - this.getFreshValueHex = function () { - if ( - 'undefined' == typeof this.date && - 'undefined' == typeof this.s - ) { - this.date = new Date() - this.s = this.formatDate(this.date, 'utc') - this.hV = stohex(this.s) - } - return this.hV - } - if (void 0 !== t) - if (void 0 !== t.str) this.setString(t.str) - else if ('string' == typeof t && t.match(/^[0-9]{12}Z$/)) - this.setString(t) - else if (void 0 !== t.hex) this.setStringHex(t.hex) - else if (void 0 !== t.date) this.setByDate(t.date) - } - vt.lang.extend(pt.asn1.DERUTCTime, pt.asn1.DERAbstractTime) - pt.asn1.DERGeneralizedTime = function (t) { - pt.asn1.DERGeneralizedTime.superclass.constructor.call(this, t) - this.hT = '18' - this.withMillis = false - this.setByDate = function (t) { - this.hTLV = null - this.isModified = true - this.date = t - this.s = this.formatDate(this.date, 'gen', this.withMillis) - this.hV = stohex(this.s) - } - this.getFreshValueHex = function () { - if (void 0 === this.date && void 0 === this.s) { - this.date = new Date() - this.s = this.formatDate(this.date, 'gen', this.withMillis) - this.hV = stohex(this.s) - } - return this.hV - } - if (void 0 !== t) { - if (void 0 !== t.str) this.setString(t.str) - else if ('string' == typeof t && t.match(/^[0-9]{14}Z$/)) - this.setString(t) - else if (void 0 !== t.hex) this.setStringHex(t.hex) - else if (void 0 !== t.date) this.setByDate(t.date) - if (true === t.millis) this.withMillis = true - } - } - vt.lang.extend(pt.asn1.DERGeneralizedTime, pt.asn1.DERAbstractTime) - pt.asn1.DERSequence = function (t) { - pt.asn1.DERSequence.superclass.constructor.call(this, t) - this.hT = '30' - this.getFreshValueHex = function () { - var t = '' - for (var e = 0; e < this.asn1Array.length; e++) { - var r = this.asn1Array[e] - t += r.getEncodedHex() - } - this.hV = t - return this.hV - } - } - vt.lang.extend(pt.asn1.DERSequence, pt.asn1.DERAbstractStructured) - pt.asn1.DERSet = function (t) { - pt.asn1.DERSet.superclass.constructor.call(this, t) - this.hT = '31' - this.sortFlag = true - this.getFreshValueHex = function () { - var t = new Array() - for (var e = 0; e < this.asn1Array.length; e++) { - var r = this.asn1Array[e] - t.push(r.getEncodedHex()) - } - if (true == this.sortFlag) t.sort() - this.hV = t.join('') - return this.hV - } - if ('undefined' != typeof t) - if ('undefined' != typeof t.sortflag && false == t.sortflag) - this.sortFlag = false - } - vt.lang.extend(pt.asn1.DERSet, pt.asn1.DERAbstractStructured) - pt.asn1.DERTaggedObject = function (t) { - pt.asn1.DERTaggedObject.superclass.constructor.call(this) - this.hT = 'a0' - this.hV = '' - this.isExplicit = true - this.asn1Object = null - this.setASN1Object = function (t, e, r) { - this.hT = e - this.isExplicit = t - this.asn1Object = r - if (this.isExplicit) { - this.hV = this.asn1Object.getEncodedHex() - this.hTLV = null - this.isModified = true - } else { - this.hV = null - this.hTLV = r.getEncodedHex() - this.hTLV = this.hTLV.replace(/^../, e) - this.isModified = false - } - } - this.getFreshValueHex = function () { - return this.hV - } - if ('undefined' != typeof t) { - if ('undefined' != typeof t['tag']) this.hT = t['tag'] - if ('undefined' != typeof t['explicit']) - this.isExplicit = t['explicit'] - if ('undefined' != typeof t['obj']) { - this.asn1Object = t['obj'] - this.setASN1Object(this.isExplicit, this.hT, this.asn1Object) - } - } - } - vt.lang.extend(pt.asn1.DERTaggedObject, pt.asn1.ASN1Object) - var gt = - (void 0 && (void 0).__extends) || - (function () { - var t = function (e, r) { - t = - Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && - function (t, e) { - t.__proto__ = e - }) || - function (t, e) { - for (var r in e) - if (Object.prototype.hasOwnProperty.call(e, r)) t[r] = e[r] - } - return t(e, r) - } - return function (e, r) { - if ('function' !== typeof r && null !== r) - throw new TypeError( - 'Class extends value ' + - String(r) + - ' is not a constructor or null' - ) - t(e, r) - function i() { - this.constructor = e - } - e.prototype = - null === r - ? Object.create(r) - : ((i.prototype = r.prototype), new i()) - } - })() - var yt = (function (t) { - gt(e, t) - function e(r) { - var i = t.call(this) || this - if (r) - if ('string' === typeof r) i.parseKey(r) - else if (e.hasPrivateKeyProperty(r) || e.hasPublicKeyProperty(r)) - i.parsePropertiesFrom(r) - return i - } - e.prototype.parseKey = function (t) { - try { - var e = 0 - var r = 0 - var i = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/ - var n = i.test(t) ? y.decode(t) : _.unarmor(t) - var s = M.decode(n) - if (3 === s.sub.length) s = s.sub[2].sub[0] - if (9 === s.sub.length) { - e = s.sub[1].getHexStringValue() - this.n = K(e, 16) - r = s.sub[2].getHexStringValue() - this.e = parseInt(r, 16) - var a = s.sub[3].getHexStringValue() - this.d = K(a, 16) - var o = s.sub[4].getHexStringValue() - this.p = K(o, 16) - var u = s.sub[5].getHexStringValue() - this.q = K(u, 16) - var c = s.sub[6].getHexStringValue() - this.dmp1 = K(c, 16) - var l = s.sub[7].getHexStringValue() - this.dmq1 = K(l, 16) - var f = s.sub[8].getHexStringValue() - this.coeff = K(f, 16) - } else if (2 === s.sub.length) { - var h = s.sub[1] - var d = h.sub[0] - e = d.sub[0].getHexStringValue() - this.n = K(e, 16) - r = d.sub[1].getHexStringValue() - this.e = parseInt(r, 16) - } else return false - return true - } catch (t) { - return false - } - } - e.prototype.getPrivateBaseKey = function () { - var t = { - array: [ - new pt.asn1.DERInteger({ int: 0 }), - new pt.asn1.DERInteger({ bigint: this.n }), - new pt.asn1.DERInteger({ int: this.e }), - new pt.asn1.DERInteger({ bigint: this.d }), - new pt.asn1.DERInteger({ bigint: this.p }), - new pt.asn1.DERInteger({ bigint: this.q }), - new pt.asn1.DERInteger({ bigint: this.dmp1 }), - new pt.asn1.DERInteger({ bigint: this.dmq1 }), - new pt.asn1.DERInteger({ bigint: this.coeff }), - ], - } - var e = new pt.asn1.DERSequence(t) - return e.getEncodedHex() - } - e.prototype.getPrivateBaseKeyB64 = function () { - return d(this.getPrivateBaseKey()) - } - e.prototype.getPublicBaseKey = function () { - var t = new pt.asn1.DERSequence({ - array: [ - new pt.asn1.DERObjectIdentifier({ - oid: '1.2.840.113549.1.1.1', - }), - new pt.asn1.DERNull(), - ], - }) - var e = new pt.asn1.DERSequence({ - array: [ - new pt.asn1.DERInteger({ bigint: this.n }), - new pt.asn1.DERInteger({ int: this.e }), - ], - }) - var r = new pt.asn1.DERBitString({ hex: '00' + e.getEncodedHex() }) - var i = new pt.asn1.DERSequence({ array: [t, r] }) - return i.getEncodedHex() - } - e.prototype.getPublicBaseKeyB64 = function () { - return d(this.getPublicBaseKey()) - } - e.wordwrap = function (t, e) { - e = e || 64 - if (!t) return t - var r = '(.{1,' + e + '})( +|$\n?)|(.{1,' + e + '})' - return t.match(RegExp(r, 'g')).join('\n') - } - e.prototype.getPrivateKey = function () { - var t = '-----BEGIN RSA PRIVATE KEY-----\n' - t += e.wordwrap(this.getPrivateBaseKeyB64()) + '\n' - t += '-----END RSA PRIVATE KEY-----' - return t - } - e.prototype.getPublicKey = function () { - var t = '-----BEGIN PUBLIC KEY-----\n' - t += e.wordwrap(this.getPublicBaseKeyB64()) + '\n' - t += '-----END PUBLIC KEY-----' - return t - } - e.hasPublicKeyProperty = function (t) { - t = t || {} - return t.hasOwnProperty('n') && t.hasOwnProperty('e') - } - e.hasPrivateKeyProperty = function (t) { - t = t || {} - return ( - t.hasOwnProperty('n') && - t.hasOwnProperty('e') && - t.hasOwnProperty('d') && - t.hasOwnProperty('p') && - t.hasOwnProperty('q') && - t.hasOwnProperty('dmp1') && - t.hasOwnProperty('dmq1') && - t.hasOwnProperty('coeff') - ) - } - e.prototype.parsePropertiesFrom = function (t) { - this.n = t.n - this.e = t.e - if (t.hasOwnProperty('d')) { - this.d = t.d - this.p = t.p - this.q = t.q - this.dmp1 = t.dmp1 - this.dmq1 = t.dmq1 - this.coeff = t.coeff - } - } - return e - })(ut) - const mt = { i: '3.2.1' } - var _t = (function () { - function t(t) { - if (void 0 === t) t = {} - t = t || {} - this.default_key_size = t.default_key_size - ? parseInt(t.default_key_size, 10) - : 1024 - this.default_public_exponent = t.default_public_exponent || '010001' - this.log = t.log || false - this.key = null - } - t.prototype.setKey = function (t) { - if (this.log && this.key) - console.warn('A key was already set, overriding existing.') - this.key = new yt(t) - } - t.prototype.setPrivateKey = function (t) { - this.setKey(t) - } - t.prototype.setPublicKey = function (t) { - this.setKey(t) - } - t.prototype.decrypt = function (t) { - try { - return this.getKey().decrypt(v(t)) - } catch (t) { - return false - } - } - t.prototype.encrypt = function (t) { - try { - return this.getKey().encrypt(t) - } catch (t) { - return false - } - } - t.prototype.encryptLong = function (t) { - try { - return d(this.getKey().encryptLong(t)) - } catch (t) { - return false - } - } - t.prototype.decryptLong = function (t) { - try { - return this.getKey().decryptLong(t) - } catch (t) { - return false - } - } - t.prototype.sign = function (t, e, r) { - try { - return d(this.getKey().sign(t, e, r)) - } catch (t) { - return false - } - } - t.prototype.verify = function (t, e, r) { - try { - return this.getKey().verify(t, v(e), r) - } catch (t) { - return false - } - } - t.prototype.getKey = function (t) { - if (!this.key) { - this.key = new yt() - if (t && '[object Function]' === {}.toString.call(t)) { - this.key.generateAsync( - this.default_key_size, - this.default_public_exponent, - t - ) - return - } - this.key.generate( - this.default_key_size, - this.default_public_exponent - ) - } - return this.key - } - t.prototype.getPrivateKey = function () { - return this.getKey().getPrivateKey() - } - t.prototype.getPrivateKeyB64 = function () { - return this.getKey().getPrivateBaseKeyB64() - } - t.prototype.getPublicKey = function () { - return this.getKey().getPublicKey() - } - t.prototype.getPublicKeyB64 = function () { - return this.getKey().getPublicBaseKeyB64() - } - t.version = mt.i - return t - })() - const St = _t - }, - 2480: () => {}, - } - var e = {} - function r(i) { - var n = e[i] - if (void 0 !== n) return n.exports - var s = (e[i] = { exports: {} }) - t[i].call(s.exports, s, s.exports, r) - return s.exports - } - ;(() => { - r.d = (t, e) => { - for (var i in e) - if (r.o(e, i) && !r.o(t, i)) - Object.defineProperty(t, i, { enumerable: true, 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) => { - if ('undefined' !== typeof Symbol && Symbol.toStringTag) - Object.defineProperty(t, Symbol.toStringTag, { value: 'Module' }) - Object.defineProperty(t, '__esModule', { value: true }) - } - })() - var i = r(5987) - return i - })() -}) -//# sourceMappingURL=gtpush.map +(function t(e,r){if("object"===typeof exports&&"object"===typeof module)module.exports=r();else if("function"===typeof define&&define.amd)define([],r);else if("object"===typeof exports)exports["gtpush"]=r();else e["gtpush"]=r()})(self,(function(){return(()=>{var t={452:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.BlockCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=[];var c=[];var l=[];var f=[];var h=[];var d=[];var v=[];(function(){var t=[];for(var e=0;e<256;e++)if(e<128)t[e]=e<<1;else t[e]=e<<1^283;var r=0;var i=0;for(var e=0;e<256;e++){var n=i^i<<1^i<<2^i<<3^i<<4;n=n>>>8^255&n^99;s[r]=n;a[n]=r;var p=t[r];var g=t[p];var y=t[g];var m=257*t[n]^16843008*n;o[r]=m<<24|m>>>8;u[r]=m<<16|m>>>16;c[r]=m<<8|m>>>24;l[r]=m;var m=16843009*y^65537*g^257*p^16843008*r;f[n]=m<<24|m>>>8;h[n]=m<<16|m>>>16;d[n]=m<<8|m>>>24;v[n]=m;if(!r)r=i=1;else{r=p^t[t[t[y^p]]];i^=t[t[i]]}}})();var p=[0,1,2,4,8,16,32,64,128,27,54];var g=n.AES=i.extend({_doReset:function(){var t;if(this._nRounds&&this._keyPriorReset===this._key)return;var e=this._keyPriorReset=this._key;var r=e.words;var i=e.sigBytes/4;var n=this._nRounds=i+6;var a=4*(n+1);var o=this._keySchedule=[];for(var u=0;u>>24;t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];t^=p[u/i|0]<<24}else if(i>6&&u%i==4)t=s[t>>>24]<<24|s[t>>>16&255]<<16|s[t>>>8&255]<<8|s[255&t];o[u]=o[u-i]^t}var c=this._invKeySchedule=[];for(var l=0;l>>24]]^h[s[t>>>16&255]]^d[s[t>>>8&255]]^v[s[255&t]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,u,c,l,s)},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,f,h,d,v,a);var r=t[e+1];t[e+1]=t[e+3];t[e+3]=r},_doCryptBlock:function(t,e,r,i,n,s,a,o){var u=this._nRounds;var c=t[e]^r[0];var l=t[e+1]^r[1];var f=t[e+2]^r[2];var h=t[e+3]^r[3];var d=4;for(var v=1;v>>24]^n[l>>>16&255]^s[f>>>8&255]^a[255&h]^r[d++];var g=i[l>>>24]^n[f>>>16&255]^s[h>>>8&255]^a[255&c]^r[d++];var y=i[f>>>24]^n[h>>>16&255]^s[c>>>8&255]^a[255&l]^r[d++];var m=i[h>>>24]^n[c>>>16&255]^s[l>>>8&255]^a[255&f]^r[d++];c=p;l=g;f=y;h=m}var p=(o[c>>>24]<<24|o[l>>>16&255]<<16|o[f>>>8&255]<<8|o[255&h])^r[d++];var g=(o[l>>>24]<<24|o[f>>>16&255]<<16|o[h>>>8&255]<<8|o[255&c])^r[d++];var y=(o[f>>>24]<<24|o[h>>>16&255]<<16|o[c>>>8&255]<<8|o[255&l])^r[d++];var m=(o[h>>>24]<<24|o[c>>>16&255]<<16|o[l>>>8&255]<<8|o[255&f])^r[d++];t[e]=p;t[e+1]=g;t[e+2]=y;t[e+3]=m},keySize:256/32});e.AES=i._createHelper(g)})();return t.AES}))},5109:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(888))})(this,(function(t){t.lib.Cipher||function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=i.BufferedBlockAlgorithm;var o=r.enc;var u=o.Utf8;var c=o.Base64;var l=r.algo;var f=l.EvpKDF;var h=i.Cipher=a.extend({cfg:n.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){this._append(t);return this._process()},finalize:function(t){if(t)this._append(t);var e=this._doFinalize();return e},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){if("string"==typeof t)return A;else return w}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)}}}}()});var d=i.StreamCipher=h.extend({_doFinalize:function(){var t=this._process(!!"flush");return t},blockSize:1});var v=r.mode={};var p=i.BlockCipherMode=n.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}});var g=v.CBC=function(){var t=p.extend();t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n);i.encryptBlock(t,e);this._prevBlock=t.slice(e,e+n)}});t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);i.decryptBlock(t,e);r.call(this,t,e,n);this._prevBlock=s}});function r(t,r,i){var n;var s=this._iv;if(s){n=s;this._iv=e}else n=this._prevBlock;for(var a=0;a>>2];t.sigBytes-=e}};var _=i.BlockCipher=h.extend({cfg:h.cfg.extend({mode:g,padding:m}),reset:function(){var t;h.reset.call(this);var e=this.cfg;var r=e.iv;var i=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)t=i.createEncryptor;else{t=i.createDecryptor;this._minBufferSize=1}if(this._mode&&this._mode.__creator==t)this._mode.init(this,r&&r.words);else{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;var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);t=this._process(!!"flush")}else{t=this._process(!!"flush");e.unpad(t)}return t},blockSize:128/32});var S=i.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}});var E=r.format={};var b=E.OpenSSL={stringify:function(t){var e;var r=t.ciphertext;var i=t.salt;if(i)e=s.create([1398893684,1701076831]).concat(i).concat(r);else e=r;return e.toString(c)},parse:function(t){var e;var r=c.parse(t);var i=r.words;if(1398893684==i[0]&&1701076831==i[1]){e=s.create(i.slice(2,4));i.splice(0,4);r.sigBytes-=16}return S.create({ciphertext:r,salt:e})}};var w=i.SerializableCipher=n.extend({cfg:n.extend({format:b}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=t.createEncryptor(r,i);var s=n.finalize(e);var a=n.cfg;return S.create({ciphertext:s,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,r,i){i=this.cfg.extend(i);e=this._parse(e,i.format);var n=t.createDecryptor(r,i).finalize(e.ciphertext);return n},_parse:function(t,e){if("string"==typeof t)return e.parse(t,this);else return t}});var D=r.kdf={};var T=D.OpenSSL={execute:function(t,e,r,i){if(!i)i=s.random(64/8);var n=f.create({keySize:e+r}).compute(t,i);var a=s.create(n.words.slice(e),4*r);n.sigBytes=4*e;return S.create({key:n,iv:a,salt:i})}};var A=i.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:T}),encrypt:function(t,e,r,i){i=this.cfg.extend(i);var n=i.kdf.execute(r,t.keySize,t.ivSize);i.iv=n.iv;var s=w.encrypt.call(this,t,e,n.key,i);s.mixIn(n);return s},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.iv=n.iv;var s=w.decrypt.call(this,t,e,n.key,i);return s}})}()}))},8249:function(t,e,r){(function(r,i){if(true)t.exports=e=i()})(this,(function(){var t=t||function(t,e){var i;if("undefined"!==typeof window&&window.crypto)i=window.crypto;if("undefined"!==typeof self&&self.crypto)i=self.crypto;if("undefined"!==typeof globalThis&&globalThis.crypto)i=globalThis.crypto;if(!i&&"undefined"!==typeof window&&window.msCrypto)i=window.msCrypto;if(!i&&"undefined"!==typeof r.g&&r.g.crypto)i=r.g.crypto;if(!i&&"function"==="function")try{i=r(2480)}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.")};var s=Object.create||function(){function t(){}return function(e){var r;t.prototype=e;r=new t;t.prototype=null;return r}}();var a={};var o=a.lib={};var u=o.Base=function(){return{extend:function(t){var e=s(this);if(t)e.mixIn(t);if(!e.hasOwnProperty("init")||this.init===e.init)e.init=function(){e.$super.init.apply(this,arguments)};e.init.prototype=e;e.$super=this;return e},create:function(){var t=this.extend();t.init.apply(t,arguments);return t},init:function(){},mixIn:function(t){for(var e in t)if(t.hasOwnProperty(e))this[e]=t[e];if(t.hasOwnProperty("toString"))this.toString=t.toString},clone:function(){return this.init.prototype.extend(this)}}}();var c=o.WordArray=u.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=4*t.length},toString:function(t){return(t||f).stringify(this)},concat:function(t){var e=this.words;var r=t.words;var i=this.sigBytes;var n=t.sigBytes;this.clamp();if(i%4)for(var s=0;s>>2]>>>24-s%4*8&255;e[i+s>>>2]|=a<<24-(i+s)%4*8}else for(var o=0;o>>2]=r[o>>>2];this.sigBytes+=n;return this},clamp:function(){var e=this.words;var r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8;e.length=t.ceil(r/4)},clone:function(){var t=u.clone.call(this);t.words=this.words.slice(0);return t},random:function(t){var e=[];for(var r=0;r>>2]>>>24-n%4*8&255;i.push((s>>>4).toString(16));i.push((15&s).toString(16))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(r,e/2)}};var h=l.Latin1={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var i=0;i>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(r,e)}};var d=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(h.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return h.parse(unescape(encodeURIComponent(t)))}};var v=o.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init;this._nDataBytes=0},_append:function(t){if("string"==typeof t)t=d.parse(t);this._data.concat(t);this._nDataBytes+=t.sigBytes},_process:function(e){var r;var i=this._data;var n=i.words;var s=i.sigBytes;var a=this.blockSize;var o=4*a;var u=s/o;if(e)u=t.ceil(u);else u=t.max((0|u)-this._minBufferSize,0);var l=u*a;var f=t.min(4*l,s);if(l){for(var h=0;h>>2]>>>24-s%4*8&255;var o=e[s+1>>>2]>>>24-(s+1)%4*8&255;var u=e[s+2>>>2]>>>24-(s+2)%4*8&255;var c=a<<16|o<<8|u;for(var l=0;l<4&&s+.75*l>>6*(3-l)&63))}var f=i.charAt(64);if(f)while(n.length%4)n.push(f);return n.join("")},parse:function(t){var e=t.length;var r=this._map;var i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var n=0;n>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++}return i.create(n,s)}})();return t.enc.Base64}))},3786:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;var s=n.Base64url={stringify:function(t,e=true){var r=t.words;var i=t.sigBytes;var n=e?this._safe_map:this._map;t.clamp();var s=[];for(var a=0;a>>2]>>>24-a%4*8&255;var u=r[a+1>>>2]>>>24-(a+1)%4*8&255;var c=r[a+2>>>2]>>>24-(a+2)%4*8&255;var l=o<<16|u<<8|c;for(var f=0;f<4&&a+.75*f>>6*(3-f)&63))}var h=n.charAt(64);if(h)while(s.length%4)s.push(h);return s.join("")},parse:function(t,e=true){var r=t.length;var i=e?this._safe_map:this._map;var n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var s=0;s>>6-a%4*2;var c=o|u;n[s>>>2]|=c<<24-s%4*8;s++}return i.create(n,s)}})();return t.enc.Base64url}))},298:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.enc;var s=n.Utf16=n.Utf16BE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n>>1]|=t.charCodeAt(n)<<16-n%2*16;return i.create(r,2*e)}};n.Utf16LE={stringify:function(t){var e=t.words;var r=t.sigBytes;var i=[];for(var n=0;n>>2]>>>16-n%4*8&65535);i.push(String.fromCharCode(s))}return i.join("")},parse:function(t){var e=t.length;var r=[];for(var n=0;n>>1]|=a(t.charCodeAt(n)<<16-n%2*16);return i.create(r,2*e)}};function a(t){return t<<8&4278255360|t>>>8&16711935}})();return t.enc.Utf16}))},888:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(2783),r(9824))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.MD5;var o=s.EvpKDF=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r;var i=this.cfg;var s=i.hasher.create();var a=n.create();var o=a.words;var u=i.keySize;var c=i.iterations;while(o.lengthi)e=t.finalize(e);e.clamp();var n=this._oKey=e.clone();var a=this._iKey=e.clone();var o=n.words;var u=a.words;for(var c=0;c>>2]|=t[i]<<24-i%4*8;n.call(this,r,e)}else n.apply(this,arguments)};s.prototype=i})();return t.lib.WordArray}))},8214:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];(function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0})();var u=a.MD5=s.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;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s=this._hash.words;var a=t[e+0];var u=t[e+1];var d=t[e+2];var v=t[e+3];var p=t[e+4];var g=t[e+5];var y=t[e+6];var m=t[e+7];var _=t[e+8];var S=t[e+9];var E=t[e+10];var b=t[e+11];var w=t[e+12];var D=t[e+13];var T=t[e+14];var A=t[e+15];var M=s[0];var I=s[1];var R=s[2];var x=s[3];M=c(M,I,R,x,a,7,o[0]);x=c(x,M,I,R,u,12,o[1]);R=c(R,x,M,I,d,17,o[2]);I=c(I,R,x,M,v,22,o[3]);M=c(M,I,R,x,p,7,o[4]);x=c(x,M,I,R,g,12,o[5]);R=c(R,x,M,I,y,17,o[6]);I=c(I,R,x,M,m,22,o[7]);M=c(M,I,R,x,_,7,o[8]);x=c(x,M,I,R,S,12,o[9]);R=c(R,x,M,I,E,17,o[10]);I=c(I,R,x,M,b,22,o[11]);M=c(M,I,R,x,w,7,o[12]);x=c(x,M,I,R,D,12,o[13]);R=c(R,x,M,I,T,17,o[14]);I=c(I,R,x,M,A,22,o[15]);M=l(M,I,R,x,u,5,o[16]);x=l(x,M,I,R,y,9,o[17]);R=l(R,x,M,I,b,14,o[18]);I=l(I,R,x,M,a,20,o[19]);M=l(M,I,R,x,g,5,o[20]);x=l(x,M,I,R,E,9,o[21]);R=l(R,x,M,I,A,14,o[22]);I=l(I,R,x,M,p,20,o[23]);M=l(M,I,R,x,S,5,o[24]);x=l(x,M,I,R,T,9,o[25]);R=l(R,x,M,I,v,14,o[26]);I=l(I,R,x,M,_,20,o[27]);M=l(M,I,R,x,D,5,o[28]);x=l(x,M,I,R,d,9,o[29]);R=l(R,x,M,I,m,14,o[30]);I=l(I,R,x,M,w,20,o[31]);M=f(M,I,R,x,g,4,o[32]);x=f(x,M,I,R,_,11,o[33]);R=f(R,x,M,I,b,16,o[34]);I=f(I,R,x,M,T,23,o[35]);M=f(M,I,R,x,u,4,o[36]);x=f(x,M,I,R,p,11,o[37]);R=f(R,x,M,I,m,16,o[38]);I=f(I,R,x,M,E,23,o[39]);M=f(M,I,R,x,D,4,o[40]);x=f(x,M,I,R,a,11,o[41]);R=f(R,x,M,I,v,16,o[42]);I=f(I,R,x,M,y,23,o[43]);M=f(M,I,R,x,S,4,o[44]);x=f(x,M,I,R,w,11,o[45]);R=f(R,x,M,I,A,16,o[46]);I=f(I,R,x,M,d,23,o[47]);M=h(M,I,R,x,a,6,o[48]);x=h(x,M,I,R,m,10,o[49]);R=h(R,x,M,I,T,15,o[50]);I=h(I,R,x,M,g,21,o[51]);M=h(M,I,R,x,w,6,o[52]);x=h(x,M,I,R,v,10,o[53]);R=h(R,x,M,I,E,15,o[54]);I=h(I,R,x,M,u,21,o[55]);M=h(M,I,R,x,_,6,o[56]);x=h(x,M,I,R,A,10,o[57]);R=h(R,x,M,I,y,15,o[58]);I=h(I,R,x,M,D,21,o[59]);M=h(M,I,R,x,p,6,o[60]);x=h(x,M,I,R,b,10,o[61]);R=h(R,x,M,I,d,15,o[62]);I=h(I,R,x,M,S,21,o[63]);s[0]=s[0]+M|0;s[1]=s[1]+I|0;s[2]=s[2]+R|0;s[3]=s[3]+x|0},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;var s=e.floor(i/4294967296);var a=i;r[(n+64>>>9<<4)+15]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8);r[(n+64>>>9<<4)+14]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);t.sigBytes=4*(r.length+1);this._process();var o=this._hash;var u=o.words;for(var c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return o},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function c(t,e,r,i,n,s,a){var o=t+(e&r|~e&i)+n+a;return(o<>>32-s)+e}function l(t,e,r,i,n,s,a){var o=t+(e&i|r&~i)+n+a;return(o<>>32-s)+e}function f(t,e,r,i,n,s,a){var o=t+(e^r^i)+n+a;return(o<>>32-s)+e}function h(t,e,r,i,n,s,a){var o=t+(r^(e|~i))+n+a;return(o<>>32-s)+e}r.MD5=s._createHelper(u);r.HmacMD5=s._createHmacHelper(u)})(Math);return t.MD5}))},8568:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;r.call(this,t,e,n,i);this._prevBlock=t.slice(e,e+n)}});e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher;var n=i.blockSize;var s=t.slice(e,e+n);r.call(this,t,e,n,i);this._prevBlock=s}});function r(t,e,r,i){var n;var s=this._iv;if(s){n=s.slice(0);this._iv=void 0}else n=this._prevBlock;i.encryptBlock(n,0);for(var a=0;a>24&255)){var e=t>>16&255;var r=t>>8&255;var i=255&t;if(255===e){e=0;if(255===r){r=0;if(255===i)i=0;else++i}else++r}else++e;t=0;t+=e<<16;t+=r<<8;t+=i}else t+=1<<24;return t}function i(t){if(0===(t[0]=r(t[0])))t[1]=r(t[1]);return t}var n=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher;var n=r.blockSize;var s=this._iv;var a=this._counter;if(s){a=this._counter=s.slice(0);this._iv=void 0}i(a);var o=a.slice(0);r.encryptBlock(o,0);for(var u=0;u>>2]|=n<<24-s%4*8;t.sigBytes+=n},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};return t.pad.Ansix923}))},2807:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.Iso10126={pad:function(e,r){var i=4*r;var n=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(n-1)).concat(t.lib.WordArray.create([n<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}};return t.pad.Iso10126}))},1077:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1));t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e);e.sigBytes--}};return t.pad.Iso97971}))},6991:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.NoPadding={pad:function(){},unpad:function(){}};return t.pad.NoPadding}))},6475:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(5109))})(this,(function(t){t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp();t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words;var r=t.sigBytes-1;for(var r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}};return t.pad.ZeroPadding}))},2112:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(2783),r(9824))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Base;var n=r.WordArray;var s=e.algo;var a=s.SHA1;var o=s.HMAC;var u=s.PBKDF2=i.extend({cfg:i.extend({keySize:128/32,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r=this.cfg;var i=o.create(r.hasher,t);var s=n.create();var a=n.create([1]);var u=s.words;var c=a.words;var l=r.keySize;var f=r.iterations;while(u.length>>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];var i=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]];this._b=0;for(var n=0;n<4;n++)c.call(this);for(var n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;i[0]^=u;i[1]^=f;i[2]^=l;i[3]^=h;i[4]^=u;i[5]^=f;i[6]^=l;i[7]^=h;for(var n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i]}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0;this._b=e[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=i._createHelper(u)})();return t.RabbitLegacy}))},4454:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=[];var a=[];var o=[];var u=n.Rabbit=i.extend({_doReset:function(){var t=this._key.words;var e=this.cfg.iv;for(var 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];var 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]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(var r=0;r<8;r++)n[r]^=i[r+4&7];if(e){var s=e.words;var a=s[0];var o=s[1];var u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);var f=u>>>16|4294901760&l;var h=l<<16|65535&u;n[0]^=u;n[1]^=f;n[2]^=l;n[3]^=h;n[4]^=u;n[5]^=f;n[6]^=l;n[7]^=h;for(var r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this);s[0]=r[0]^r[5]>>>16^r[3]<<16;s[1]=r[2]^r[7]>>>16^r[5]<<16;s[2]=r[4]^r[1]>>>16^r[7]<<16;s[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++){s[i]=16711935&(s[i]<<8|s[i]>>>24)|4278255360&(s[i]<<24|s[i]>>>8);t[e+i]^=s[i]}},blockSize:128/32,ivSize:64/32});function c(){var t=this._X;var e=this._C;for(var r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0;e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0;e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0;e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0;e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0;e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0;e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0;e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0;this._b=e[7]>>>0>>0?1:0;for(var r=0;r<8;r++){var i=t[r]+e[r];var n=65535&i;var s=i>>>16;var u=((n*n>>>17)+n*s>>>15)+s*s;var c=((4294901760&i)*i|0)+((65535&i)*i|0);o[r]=u^c}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0;t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0;t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0;t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0;t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0;t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0;t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0;t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=i._createHelper(u)})();return t.Rabbit}))},1857:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.StreamCipher;var n=e.algo;var s=n.RC4=i.extend({_doReset:function(){var t=this._key;var e=t.words;var r=t.sigBytes;var i=this._S=[];for(var n=0;n<256;n++)i[n]=n;for(var n=0,s=0;n<256;n++){var a=n%r;var o=e[a>>>2]>>>24-a%4*8&255;s=(s+i[n]+o)%256;var u=i[n];i[n]=i[s];i[s]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:256/32,ivSize:0});function a(){var t=this._S;var e=this._i;var r=this._j;var i=0;for(var n=0;n<4;n++){e=(e+1)%256;r=(r+t[e])%256;var s=t[e];t[e]=t[r];t[r]=s;i|=t[(t[e]+t[r])%256]<<24-8*n}this._i=e;this._j=r;return i}e.RC4=i._createHelper(s);var o=n.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=i._createHelper(o)})();return t.RC4}))},706:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=n.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]);var u=n.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]);var c=n.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]);var l=n.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]);var f=n.create([0,1518500249,1859775393,2400959708,2840853838]);var h=n.create([1352829926,1548603684,1836072691,2053994217,0]);var d=a.RIPEMD160=s.extend({_doReset:function(){this._hash=n.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r;var n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var s=this._hash.words;var a=f.words;var d=h.words;var S=o.words;var E=u.words;var b=c.words;var w=l.words;var D,T,A,M,I;var R,x,B,C,O;R=D=s[0];x=T=s[1];B=A=s[2];C=M=s[3];O=I=s[4];var k;for(var r=0;r<80;r+=1){k=D+t[e+S[r]]|0;if(r<16)k+=v(T,A,M)+a[0];else if(r<32)k+=p(T,A,M)+a[1];else if(r<48)k+=g(T,A,M)+a[2];else if(r<64)k+=y(T,A,M)+a[3];else k+=m(T,A,M)+a[4];k|=0;k=_(k,b[r]);k=k+I|0;D=I;I=M;M=_(A,10);A=T;T=k;k=R+t[e+E[r]]|0;if(r<16)k+=m(x,B,C)+d[0];else if(r<32)k+=y(x,B,C)+d[1];else if(r<48)k+=g(x,B,C)+d[2];else if(r<64)k+=p(x,B,C)+d[3];else k+=v(x,B,C)+d[4];k|=0;k=_(k,w[r]);k=k+O|0;R=O;O=C;C=_(B,10);B=x;x=k}k=s[1]+A+C|0;s[1]=s[2]+M+O|0;s[2]=s[3]+I+R|0;s[3]=s[4]+D+x|0;s[4]=s[0]+T+B|0;s[0]=k},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);t.sigBytes=4*(e.length+1);this._process();var n=this._hash;var s=n.words;for(var a=0;a<5;a++){var o=s[a];s[a]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return n},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});function v(t,e,r){return t^e^r}function p(t,e,r){return t&e|~t&r}function g(t,e,r){return(t|~e)^r}function y(t,e,r){return t&r|e&~r}function m(t,e,r){return t^(e|~r)}function _(t,e){return t<>>32-e}r.RIPEMD160=s._createHelper(d);r.HmacRIPEMD160=s._createHmacHelper(d)})(Math);return t.RIPEMD160}))},2783:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.Hasher;var s=e.algo;var a=[];var o=s.SHA1=n.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var o=r[3];var u=r[4];for(var c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31}var f=(i<<5|i>>>27)+u+a[c];if(c<20)f+=(n&s|~n&o)+1518500249;else if(c<40)f+=(n^s^o)+1859775393;else if(c<60)f+=(n&s|n&o|s&o)-1894007588;else f+=(n^s^o)-899497514;u=o;o=s;s=n<<30|n>>>2;n=i;i=f}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+o|0;r[4]=r[4]+u|0},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+64>>>9<<4)+14]=Math.floor(r/4294967296);e[(i+64>>>9<<4)+15]=r;t.sigBytes=4*e.length;this._process();return this._hash},clone:function(){var t=n.clone.call(this);t._hash=this._hash.clone();return t}});e.SHA1=n._createHelper(o);e.HmacSHA1=n._createHmacHelper(o)})();return t.SHA1}))},7792:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(2153))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=e.algo;var s=n.SHA256;var a=n.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=s._doFinalize.call(this);t.sigBytes-=4;return t}});e.SHA224=s._createHelper(a);e.HmacSHA224=s._createHmacHelper(a)})();return t.SHA224}))},2153:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.algo;var o=[];var u=[];(function(){function t(t){var r=e.sqrt(t);for(var i=2;i<=r;i++)if(!(t%i))return false;return true}function r(t){return 4294967296*(t-(0|t))|0}var i=2;var n=0;while(n<64){if(t(i)){if(n<8)o[n]=r(e.pow(i,1/2));u[n]=r(e.pow(i,1/3));n++}i++}})();var c=[];var l=a.SHA256=s.extend({_doReset:function(){this._hash=new n.init(o.slice(0))},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var l=r[5];var f=r[6];var h=r[7];for(var d=0;d<64;d++){if(d<16)c[d]=0|t[e+d];else{var v=c[d-15];var p=(v<<25|v>>>7)^(v<<14|v>>>18)^v>>>3;var g=c[d-2];var y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=p+c[d-7]+y+c[d-16]}var m=o&l^~o&f;var _=i&n^i&s^n&s;var S=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22);var E=(o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25);var b=h+E+m+u[d]+c[d];var w=S+_;h=f;f=l;l=o;o=a+b|0;a=s;s=n;n=i;i=b+w|0}r[0]=r[0]+i|0;r[1]=r[1]+n|0;r[2]=r[2]+s|0;r[3]=r[3]+a|0;r[4]=r[4]+o|0;r[5]=r[5]+l|0;r[6]=r[6]+f|0;r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var n=8*t.sigBytes;r[n>>>5]|=128<<24-n%32;r[(n+64>>>9<<4)+14]=e.floor(i/4294967296);r[(n+64>>>9<<4)+15]=i;t.sigBytes=4*r.length;this._process();return this._hash},clone:function(){var t=s.clone.call(this);t._hash=this._hash.clone();return t}});r.SHA256=s._createHelper(l);r.HmacSHA256=s._createHmacHelper(l)})(Math);return t.SHA256}))},3327:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(4938))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.WordArray;var s=i.Hasher;var a=r.x64;var o=a.Word;var u=r.algo;var c=[];var l=[];var f=[];(function(){var t=1,e=0;for(var r=0;r<24;r++){c[t+5*e]=(r+1)*(r+2)/2%64;var i=e%5;var n=(2*t+3*e)%5;t=i;e=n}for(var t=0;t<5;t++)for(var e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;var s=1;for(var a=0;a<24;a++){var u=0;var h=0;for(var d=0;d<7;d++){if(1&s){var v=(1<>>24)|4278255360&(s<<24|s>>>8);a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var o=r[n];o.high^=a;o.low^=s}for(var u=0;u<24;u++){for(var d=0;d<5;d++){var v=0,p=0;for(var g=0;g<5;g++){var o=r[d+5*g];v^=o.high;p^=o.low}var y=h[d];y.high=v;y.low=p}for(var d=0;d<5;d++){var m=h[(d+4)%5];var _=h[(d+1)%5];var S=_.high;var E=_.low;var v=m.high^(S<<1|E>>>31);var p=m.low^(E<<1|S>>>31);for(var g=0;g<5;g++){var o=r[d+5*g];o.high^=v;o.low^=p}}for(var b=1;b<25;b++){var v;var p;var o=r[b];var w=o.high;var D=o.low;var T=c[b];if(T<32){v=w<>>32-T;p=D<>>32-T}else{v=D<>>64-T;p=w<>>64-T}var A=h[l[b]];A.high=v;A.low=p}var M=h[0];var I=r[0];M.high=I.high;M.low=I.low;for(var d=0;d<5;d++)for(var g=0;g<5;g++){var b=d+5*g;var o=r[b];var R=h[b];var x=h[(d+1)%5+5*g];var B=h[(d+2)%5+5*g];o.high=R.high^~x.high&B.high;o.low=R.low^~x.low&B.low}var o=r[0];var C=f[u];o.high^=C.high;o.low^=C.low}},_doFinalize:function(){var t=this._data;var r=t.words;var i=8*this._nDataBytes;var s=8*t.sigBytes;var a=32*this.blockSize;r[s>>>5]|=1<<24-s%32;r[(e.ceil((s+1)/a)*a>>>5)-1]|=128;t.sigBytes=4*r.length;this._process();var o=this._state;var u=this.cfg.outputLength/8;var c=u/8;var l=[];for(var f=0;f>>24)|4278255360&(d<<24|d>>>8);v=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8);l.push(v);l.push(d)}return new n.init(l,u)},clone:function(){var t=s.clone.call(this);var e=t._state=this._state.slice(0);for(var r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=s._createHelper(d);r.HmacSHA3=s._createHmacHelper(d)})(Math);return t.SHA3}))},7460:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(4938),r(34))})(this,(function(t){(function(){var e=t;var r=e.x64;var i=r.Word;var n=r.WordArray;var s=e.algo;var a=s.SHA512;var o=s.SHA384=a.extend({_doReset:function(){this._hash=new n.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);t.sigBytes-=16;return t}});e.SHA384=a._createHelper(o);e.HmacSHA384=a._createHmacHelper(o)})();return t.SHA384}))},34:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(4938))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.Hasher;var n=e.x64;var s=n.Word;var a=n.WordArray;var o=e.algo;function u(){return s.create.apply(s,arguments)}var c=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)];var l=[];(function(){for(var t=0;t<80;t++)l[t]=u()})();var f=o.SHA512=i.extend({_doReset:function(){this._hash=new a.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(t,e){var r=this._hash.words;var i=r[0];var n=r[1];var s=r[2];var a=r[3];var o=r[4];var u=r[5];var f=r[6];var h=r[7];var d=i.high;var v=i.low;var p=n.high;var g=n.low;var y=s.high;var m=s.low;var _=a.high;var S=a.low;var E=o.high;var b=o.low;var w=u.high;var D=u.low;var T=f.high;var A=f.low;var M=h.high;var I=h.low;var R=d;var x=v;var B=p;var C=g;var O=y;var k=m;var P=_;var N=S;var V=E;var H=b;var L=w;var K=D;var U=T;var j=A;var F=M;var z=I;for(var q=0;q<80;q++){var G;var Y;var W=l[q];if(q<16){Y=W.high=0|t[e+2*q];G=W.low=0|t[e+2*q+1]}else{var J=l[q-15];var $=J.high;var Z=J.low;var X=($>>>1|Z<<31)^($>>>8|Z<<24)^$>>>7;var Q=(Z>>>1|$<<31)^(Z>>>8|$<<24)^(Z>>>7|$<<25);var tt=l[q-2];var et=tt.high;var rt=tt.low;var it=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6;var nt=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26);var st=l[q-7];var at=st.high;var ot=st.low;var ut=l[q-16];var ct=ut.high;var lt=ut.low;G=Q+ot;Y=X+at+(G>>>0>>0?1:0);G+=nt;Y=Y+it+(G>>>0>>0?1:0);G+=lt;Y=Y+ct+(G>>>0>>0?1:0);W.high=Y;W.low=G}var ft=V&L^~V&U;var ht=H&K^~H&j;var dt=R&B^R&O^B&O;var vt=x&C^x&k^C&k;var pt=(R>>>28|x<<4)^(R<<30|x>>>2)^(R<<25|x>>>7);var gt=(x>>>28|R<<4)^(x<<30|R>>>2)^(x<<25|R>>>7);var yt=(V>>>14|H<<18)^(V>>>18|H<<14)^(V<<23|H>>>9);var mt=(H>>>14|V<<18)^(H>>>18|V<<14)^(H<<23|V>>>9);var _t=c[q];var St=_t.high;var Et=_t.low;var bt=z+mt;var wt=F+yt+(bt>>>0>>0?1:0);var bt=bt+ht;var wt=wt+ft+(bt>>>0>>0?1:0);var bt=bt+Et;var wt=wt+St+(bt>>>0>>0?1:0);var bt=bt+G;var wt=wt+Y+(bt>>>0>>0?1:0);var Dt=gt+vt;var Tt=pt+dt+(Dt>>>0>>0?1:0);F=U;z=j;U=L;j=K;L=V;K=H;H=N+bt|0;V=P+wt+(H>>>0>>0?1:0)|0;P=O;N=k;O=B;k=C;B=R;C=x;x=bt+Dt|0;R=wt+Tt+(x>>>0>>0?1:0)|0}v=i.low=v+x;i.high=d+R+(v>>>0>>0?1:0);g=n.low=g+C;n.high=p+B+(g>>>0>>0?1:0);m=s.low=m+k;s.high=y+O+(m>>>0>>0?1:0);S=a.low=S+N;a.high=_+P+(S>>>0>>0?1:0);b=o.low=b+H;o.high=E+V+(b>>>0>>0?1:0);D=u.low=D+K;u.high=w+L+(D>>>0>>0?1:0);A=f.low=A+j;f.high=T+U+(A>>>0>>0?1:0);I=h.low=I+z;h.high=M+F+(I>>>0>>0?1:0)},_doFinalize:function(){var t=this._data;var e=t.words;var r=8*this._nDataBytes;var i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32;e[(i+128>>>10<<5)+30]=Math.floor(r/4294967296);e[(i+128>>>10<<5)+31]=r;t.sigBytes=4*e.length;this._process();var n=this._hash.toX32();return n},clone:function(){var t=i.clone.call(this);t._hash=this._hash.clone();return t},blockSize:1024/32});e.SHA512=i._createHelper(f);e.HmacSHA512=i._createHmacHelper(f)})();return t.SHA512}))},4253:function(t,e,r){(function(i,n,s){if(true)t.exports=e=n(r(8249),r(8269),r(8214),r(888),r(5109))})(this,(function(t){(function(){var e=t;var r=e.lib;var i=r.WordArray;var n=r.BlockCipher;var s=e.algo;var a=[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];var o=[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];var u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28];var c=[{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}];var l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];var f=s.DES=n.extend({_doReset:function(){var t=this._key;var e=t.words;var r=[];for(var i=0;i<56;i++){var n=a[i]-1;r[i]=e[n>>>5]>>>31-n%32&1}var s=this._subKeys=[];for(var c=0;c<16;c++){var l=s[c]=[];var f=u[c];for(var i=0;i<24;i++){l[i/6|0]|=r[(o[i]-1+f)%28]<<31-i%6;l[4+(i/6|0)]|=r[28+(o[i+24]-1+f)%28]<<31-i%6}l[0]=l[0]<<1|l[0]>>>31;for(var i=1;i<7;i++)l[i]=l[i]>>>4*(i-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(var i=0;i<16;i++)h[i]=s[15-i]},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];h.call(this,4,252645135);h.call(this,16,65535);d.call(this,2,858993459);d.call(this,8,16711935);h.call(this,1,1431655765);for(var i=0;i<16;i++){var n=r[i];var s=this._lBlock;var a=this._rBlock;var o=0;for(var u=0;u<8;u++)o|=c[u][((a^n[u])&l[u])>>>0];this._lBlock=a;this._rBlock=s^o}var f=this._lBlock;this._lBlock=this._rBlock;this._rBlock=f;h.call(this,1,1431655765);d.call(this,8,16711935);d.call(this,2,858993459);h.call(this,16,65535);h.call(this,4,252645135);t[e]=this._lBlock;t[e+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r;this._lBlock^=r<>>t^this._lBlock)&e;this._lBlock^=r;this._rBlock^=r<192.");var r=e.slice(0,2);var n=e.length<4?e.slice(0,2):e.slice(2,4);var s=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(i.create(r));this._des2=f.createEncryptor(i.create(n));this._des3=f.createEncryptor(i.create(s))},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:192/32,ivSize:64/32,blockSize:64/32});e.TripleDES=n._createHelper(v)})();return t.TripleDES}))},4938:function(t,e,r){(function(i,n){if(true)t.exports=e=n(r(8249))})(this,(function(t){(function(e){var r=t;var i=r.lib;var n=i.Base;var s=i.WordArray;var a=r.x64={};var o=a.Word=n.extend({init:function(t,e){this.high=t;this.low=e}});var u=a.WordArray=n.extend({init:function(t,r){t=this.words=t||[];if(r!=e)this.sigBytes=r;else this.sigBytes=8*t.length},toX32:function(){var t=this.words;var e=t.length;var r=[];for(var i=0;i{"use strict";Object.defineProperty(e,"__esModule",{value:true});e.ErrorCode=void 0;var r;(function(t){t[t["SUCCESS"]=0]="SUCCESS";t[t["CLIENT_ID_NOT_FOUND"]=1]="CLIENT_ID_NOT_FOUND";t[t["OPERATION_TOO_OFTEN"]=2]="OPERATION_TOO_OFTEN";t[t["REPEAT_MESSAGE"]=3]="REPEAT_MESSAGE";t[t["TIME_OUT"]=4]="TIME_OUT"})(r=e.ErrorCode||(e.ErrorCode={}))},5987:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1901));const s=i(r(1754));const a=i(r(1237));var o;(function(t){function e(t){a.default.debugMode=t;a.default.info(`setDebugMode: ${t}`)}t.setDebugMode=e;function r(t){try{f(t.appid);n.default.init(t)}catch(t){a.default.error(`init error`,t)}}t.init=r;function i(t){try{n.default.setTag(t)}catch(t){a.default.error(`setTag error`,t)}}t.setTag=i;function o(t){try{n.default.bindAlias(t)}catch(t){a.default.error(`bindAlias error`,t)}}t.bindAlias=o;function u(t){try{n.default.unbindAlias(t)}catch(t){a.default.error(`unbindAlias error`,t)}}t.unbindAlias=u;function c(t){try{if(!t.url)throw new Error("invalid url");if(!t.key||!t.keyId)throw new Error("invalid key or keyId");s.default.socketUrl=t.url;s.default.publicKeyId=t.keyId;s.default.publicKey=t.key}catch(t){a.default.error(`setSocketServer error`,t)}}t.setSocketServer=c;function l(t){try{n.default.enableSocket(t)}catch(t){a.default.error(`enableSocket error`,t)}}t.enableSocket=l;function f(t){if(null==t||void 0==t||""==t.trim())throw new Error(`invalid appid ${t}`)}})(o||(o={}));e["default"]=o},127:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){t.SDK_VERSION="GTMP-1.0.0.0";t.DEFAULT_SOCKET_URL="wss://wshz.getui.net:5223/nws";t.SOCKET_PROTOCOL_VERSION="1.0";t.SERVER_PUBLIC_KEY="MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAJp1rROuvBF7sBSnvLaesj2iFhMcY8aXyLvpnNLKs2wjL3JmEnyr++SlVa35liUlzi83tnAFkn3A9GB7pHBNzawyUkBh8WUhq5bnFIkk2RaDa6+5MpG84DEv52p7RR+aWwIDAQAB";t.SERVER_PUBLIC_KEY_ID="69d747c4b9f641baf4004be4297e9f3b"})(r||(r={}));e["default"]=r},1901:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(3593));const s=i(r(1237));const a=r(3118);const o=i(r(1754));const u=i(r(3854));const c=i(r(9018));const l=i(r(5084));class f{static init(t){if(this.inited)return;try{this.inited=true;s.default.info(`init: appid=${t.appid}`);o.default.init(t);n.default.connect()}catch(t){this.inited=false}}static enableSocket(t){this.checkInit();n.default.allowReconnect=t;if(t)n.default.reconnect(0);else n.default.close(`enableSocket ${t}`)}static setTag(t){var e;this.checkInit();if(!o.default.cid){null===(e=t.setTagResult)||void 0===e||e.call(t.setTagResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}c.default.create(t.tags,t.setTagResult).send()}static bindAlias(t){var e,r;this.checkInit();if(!o.default.cid){null===(e=t.bindAliasResult)||void 0===e||e.call(t.bindAliasResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}let i=(new Date).getTime();if(i-o.default.lastAliasTime<1*1e3){s.default.error(`bind alias fail: alias option can only be called once a second`);null===(r=t.bindAliasResult)||void 0===r||r.call(t.bindAliasResult,{resultCode:a.ErrorCode.OPERATION_TOO_OFTEN,message:"alias option can only be called once a second"});return}u.default.create(t.alias,true,t.bindAliasResult).send();o.default.lastAliasTime=i}static unbindAlias(t){var e,r;this.checkInit();if(!o.default.cid){null===(e=t.unbindAliasResult)||void 0===e||e.call(t.unbindAliasResult,{resultCode:a.ErrorCode.CLIENT_ID_NOT_FOUND,message:"client id not found"});return}let i=(new Date).getTime();if(i-o.default.lastAliasTime<1*1e3){s.default.error(`unbindAlias alias fail: alias option can only be called once a second`);null===(r=t.unbindAliasResult)||void 0===r||r.call(t.unbindAliasResult,{resultCode:a.ErrorCode.OPERATION_TOO_OFTEN,message:"alias option can only be called once a second"});return}l.default.create(t.alias,t.onlySelf,t.unbindAliasResult).send();o.default.lastAliasTime=i}static turnOff(){}static turnOn(){}static checkInit(){if(!this.inited)throw new Error(`not init, please invoke init method firstly`)}}f.inited=false;e["default"]=f},1754:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(207));const a=i(r(127));const o=i(r(3593));const u=i(r(1237));const c=i(r(3270));class l{static init(t){var e;this.appid=t.appid;this.onClientId=t.onClientId;this.onlineState=t.onlineState;this.onPushMsg=t.onPushMsg;if(this.appid!=s.default.getSync(s.default.KEY_APPID,this.appid)){u.default.info("appid changed, clear session and cid");s.default.setSync(s.default.KEY_CID,"");s.default.setSync(s.default.KEY_SESSION,"")}s.default.setSync(s.default.KEY_APPID,this.appid);this.cid=s.default.getSync(s.default.KEY_CID,this.cid);if(this.cid)null===(e=this.onClientId)||void 0===e||e.call(this,{cid:l.cid});this.session=s.default.getSync(s.default.KEY_SESSION,this.session);this.deviceId=s.default.getSync(s.default.KEY_DEVICE_ID,this.deviceId);this.regId=s.default.getSync(s.default.KEY_REGID,this.regId);if(!this.regId){this.regId=this.createRegId();s.default.set({key:s.default.KEY_REGID,data:this.regId})}this.socketUrl=s.default.getSync(s.default.KEY_SOCKET_URL,this.socketUrl);let r=this;c.default.getNetworkType({success:t=>{r.networkType=t;r.networkConnected="none"!=r.networkType&&""!=r.networkType}});c.default.onNetworkStatusChange((t=>{r.networkConnected=t.isConnected;r.networkType=t.networkType;if(r.networkConnected)o.default.reconnect(0)}))}static createRegId(){return`M-V${n.default.md5Hex(this.getUuid())}-${(new Date).getTime()}`}static getUuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){let e=16*Math.random()|0,r="x"===t?e:3&e|8;return r.toString(16)}))}}l.appid="";l.cid="";l.regId="";l.session="";l.deviceId="";l.packetId=1;l.online=false;l.socketUrl=a.default.DEFAULT_SOCKET_URL;l.publicKeyId=a.default.SERVER_PUBLIC_KEY_ID;l.publicKey=a.default.SERVER_PUBLIC_KEY;l.lastAliasTime=0;l.networkConnected=true;l.networkType="none";e["default"]=l},9214:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(9800));const o=r(3118);const u=i(r(1754));class c extends a.default{constructor(){super(...arguments);this.actionMsgData=new l}static initActionMsg(t,...e){super.initMsg(t);t.command=a.default.Command.CLIENT_MSG;t.data=t.actionMsgData=l.create();return t}static parseActionMsg(t,e){super.parseMsg(t,e);t.actionMsgData=l.parse(t.data);return t}send(){let t=setTimeout((()=>{var t;if(c.waitingLoginMsgMap.has(this.actionMsgData.msgId)||c.waitingResponseMsgMap.has(this.actionMsgData.msgId)){c.waitingLoginMsgMap.delete(this.actionMsgData.msgId);c.waitingResponseMsgMap.delete(this.actionMsgData.msgId);null===(t=this.callback)||void 0===t||t.call(this.callback,{resultCode:o.ErrorCode.TIME_OUT,message:"waiting time out"})}}),1e4);if(!u.default.online){c.waitingLoginMsgMap.set(this.actionMsgData.msgId,this);return}if(this.actionMsgData.msgAction!=c.ClientAction.RECEIVED)c.waitingResponseMsgMap.set(this.actionMsgData.msgId,this);super.send()}receive(){}static sendWaitingMessages(){let t=this.waitingLoginMsgMap.keys();let e;while(e=t.next(),!e.done){let t=this.waitingLoginMsgMap.get(e.value);this.waitingLoginMsgMap.delete(e.value);null===t||void 0===t||t.send()}}static getWaitingResponseMessage(t){return c.waitingResponseMsgMap.get(t)}static removeWaitingResponseMessage(t){let e=c.waitingResponseMsgMap.get(t);if(e)c.waitingResponseMsgMap.delete(t);return e}}c.ServerAction=(n=class{},n.PUSH_MESSAGE="pushmessage",n.REDIRECT_SERVER="redirect_server",n.ADD_PHONE_INFO_RESULT="addphoneinfo",n.SET_MODE_RESULT="set_mode_result",n.SET_TAG_RESULT="settag_result",n.BIND_ALIAS_RESULT="response_bind",n.UNBIND_ALIAS_RESULT="response_unbind",n.FEED_BACK_RESULT="pushmessage_feedback",n.RECEIVED="received",n);c.ClientAction=(s=class{},s.ADD_PHONE_INFO="addphoneinfo",s.SET_MODE="set_mode",s.FEED_BACK="pushmessage_feedback",s.SET_TAGS="set_tag",s.BIND_ALIAS="bind_alias",s.UNBIND_ALIAS="unbind_alias",s.RECEIVED="received",s);c.waitingLoginMsgMap=new Map;c.waitingResponseMsgMap=new Map;class l{constructor(){this.appId="";this.cid="";this.msgId="";this.msgAction="";this.msgData="";this.msgExtraData=""}static create(){let t=new l;t.appId=u.default.appid;t.cid=u.default.cid;t.msgId=(new Date).getTime().toString().substr(4);return t}static parse(t){let e=new l;let r=JSON.parse(t);e.appId=r.appId;e.cid=r.cid;e.msgId=r.msgId;e.msgAction=r.msgAction;e.msgData=r.msgData;e.msgExtraData=r.msgExtraData;return e}}e["default"]=c},708:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(3270));const s=i(r(207));const a=i(r(127));const o=r(3118);const u=i(r(9214));const c=i(r(1754));class l extends u.default{constructor(){super(...arguments);this.addPhoneInfoData=new f}static create(){let t=new l;super.initActionMsg(t);t.callback=e=>{if(e.resultCode!=o.ErrorCode.SUCCESS&&e.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){t.send()}),30*1e3);else s.default.set({key:s.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})};t.actionMsgData.msgAction=u.default.ClientAction.ADD_PHONE_INFO;t.addPhoneInfoData=f.create();t.actionMsgData.msgData=JSON.stringify(t.addPhoneInfoData);return t}send(){let t=(new Date).getTime();let e=s.default.getSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);if(t-e<24*60*60*1e3)return;super.send()}}class f{constructor(){this.model="";this.brand="";this.system_version="";this.version="";this.device_token="";this.imei="";this.oaid="";this.mac="";this.idfa="";this.deviceid="";this.type="";this.extra={os:"",platform:"",platformVersion:"",platformId:"",appVersion:"",language:""}}static create(){let t=new f;t.model=n.default.model();t.brand=n.default.brand();t.system_version=n.default.osVersion();t.version=a.default.SDK_VERSION;t.device_token="";t.imei="";t.oaid="";t.mac="";t.idfa="";t.type="MINI";t.deviceid=`${t.type}-${c.default.deviceId}`;t.extra={os:n.default.os(),platform:n.default.platform(),platformVersion:n.default.platformVersion(),platformId:n.default.platformId(),appVersion:"",language:n.default.language()};return t}}e["default"]=l},3854:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.bindAliasTagData=new o}static create(t,e,r){let i=new a;super.initActionMsg(i);i.bindAliasTagData=o.create(t,e);i.callback=r;i.actionMsgData.msgAction=s.default.ClientAction.BIND_ALIAS;i.actionMsgData.msgData=JSON.stringify(i.bindAliasTagData);return i}}class o{constructor(){this.alias="";this.cid="";this.appid="";this.sn="";this.is_self=""}static create(t,e){let r=new o;r.alias=t;r.cid=n.default.cid;r.appid=n.default.appid;r.sn=(new Date).getTime().toString();r.is_self=e?"1":"0";return r}}e["default"]=a},652:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n,s;Object.defineProperty(e,"__esModule",{value:true});const a=i(r(1754));const o=r(3118);const u=i(r(9214));class c extends u.default{constructor(){super(...arguments);this.feedbackData=new l}static create(t,e){let r=new c;super.initActionMsg(r);r.callback=t=>{if(t.resultCode!=o.ErrorCode.SUCCESS&&t.resultCode!=o.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){r.send()}),30*1e3)};r.feedbackData=l.create(t,e);r.actionMsgData.msgAction=u.default.ClientAction.FEED_BACK;r.actionMsgData.msgData=JSON.stringify(r.feedbackData);return r}send(){super.send()}}c.ActionId=(n=class{},n.RECEIVE="0",n.MP_RECEIVE="210000",n.WEB_RECEIVE="220000",n.BEGIN="1",n);c.RESULT=(s=class{},s.OK="ok",s);class l{constructor(){this.messageid="";this.appkey="";this.appid="";this.taskid="";this.actionid="";this.result="";this.timestamp=""}static create(t,e){let r=new l;r.messageid=t.pushMessageData.messageid;r.appkey=t.pushMessageData.appKey;r.appid=a.default.appid;r.taskid=t.pushMessageData.taskId;r.actionid=e;r.result=c.RESULT.OK;r.timestamp=(new Date).getTime().toString();return r}}e["default"]=c},9018:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.setTagData=new o}static create(t,e){let r=new a;super.initActionMsg(r);r.setTagData=o.create(t);r.callback=e;r.actionMsgData.msgAction=s.default.ClientAction.SET_TAGS;r.actionMsgData.msgData=JSON.stringify(r.setTagData);return r}}class o{constructor(){this.appid="";this.tags="";this.sn=""}static create(t){let e=new o;e.appid=n.default.appid;e.tags=u(t);e.sn=(new Date).getTime().toString();return e}}function u(t){return encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}e["default"]=a},5084:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.unbindAliasData=new o}static create(t,e,r){let i=new a;super.initActionMsg(i);i.unbindAliasData=o.create(t,e);i.callback=r;i.actionMsgData.msgAction=s.default.ClientAction.UNBIND_ALIAS;i.actionMsgData.msgData=JSON.stringify(i.unbindAliasData);return i}}class o{constructor(){this.alias="";this.cid="";this.appid="";this.sn="";this.is_self=""}static create(t,e){let r=new o;r.alias=t;r.cid=n.default.cid;r.appid=n.default.appid;r.sn=(new Date).getTime().toString();r.is_self=e?"1":"0";return r}}e["default"]=a},6561:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));class s extends n.default{static create(){let t=new s;super.initMsg(t);t.command=n.default.Command.HEART_BEAT;return t}}e["default"]=s},358:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));const s=i(r(1754));const a=i(r(9800));class o extends a.default{constructor(){super(...arguments);this.keyNegotiateData=new u}static create(){let t=new o;super.initMsg(t);t.command=a.default.Command.KEY_NEGOTIATE;n.default.resetKey();t.data=t.keyNegotiateData=u.create();return t}send(){super.send()}}class u{constructor(){this.appId="";this.rsaPublicKeyId="";this.algorithm="";this.secretKey="";this.iv=""}static create(){let t=new u;t.appId=s.default.appid;t.rsaPublicKeyId=s.default.publicKeyId;t.algorithm="AES";t.secretKey=n.default.getEncryptedSecretKey();t.iv=n.default.getEncryptedIV();return t}}e["default"]=o},5301:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(323));const a=i(r(2544));class o extends n.default{constructor(){super(...arguments);this.keyNegotiateResultData=new u}static parse(t){let e=new o;super.parseMsg(e,t);e.keyNegotiateResultData=u.parse(e.data);return e}receive(){if(0!=this.keyNegotiateResultData.errorCode){console.error(`key negotiate fail: ${this.data}`);return}let t=this.keyNegotiateResultData.encryptType.split("/");if(!s.default.algorithmMap.has(t[0].trim().toLowerCase())||!s.default.modeMap.has(t[1].trim().toLowerCase())||!s.default.paddingMap.has(t[2].trim().toLowerCase())){console.error(`key negotiate fail: ${this.data}`);return}s.default.setEncryptParams(t[0].trim().toLowerCase(),t[1].trim().toLowerCase(),t[2].trim().toLowerCase());a.default.create().send()}}class u{constructor(){this.errorCode=-1;this.errorMsg="";this.encryptType=""}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.encryptType=r.encryptType;return e}}e["default"]=o},2544:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(323));const a=i(r(9800));const o=i(r(3527));class u extends a.default{constructor(){super(...arguments);this.loginData=new c}static create(){let t=new u;super.initMsg(t);t.command=a.default.Command.LOGIN;t.data=t.loginData=c.create();return t}send(){if(!this.loginData.session||n.default.cid!=s.default.md5Hex(this.loginData.session)){o.default.create().send();return}super.send()}}class c{constructor(){this.appId="";this.session=""}static create(){let t=new c;t.appId=n.default.appid;t.session=n.default.session;return t}}e["default"]=u},8734:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(207));const s=i(r(9800));const a=i(r(1754));const o=i(r(9214));const u=i(r(708));const c=i(r(2544));class l extends s.default{constructor(){super(...arguments);this.loginResultData=new f}static parse(t){let e=new l;super.parseMsg(e,t);e.loginResultData=f.parse(e.data);return e}receive(){var t;if(0!=this.loginResultData.errorCode){this.data;a.default.session=a.default.cid="";n.default.setSync(n.default.KEY_CID,"");n.default.setSync(n.default.KEY_SESSION,"");c.default.create().send();return}if(!a.default.online){a.default.online=true;null===(t=a.default.onlineState)||void 0===t||t.call(a.default.onlineState,{online:a.default.online})}o.default.sendWaitingMessages();u.default.create().send()}}class f{constructor(){this.errorCode=-1;this.errorMsg="";this.session=""}static parse(t){let e=new f;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.session=r.session;return e}}e["default"]=l},9800:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(350));const a=i(r(3593));const o=i(r(127));const u=i(r(1754));class c{constructor(){this.version="";this.command=0;this.packetId=0;this.timeStamp=0;this.data="";this.signature=""}static initMsg(t,...e){t.version=o.default.SOCKET_PROTOCOL_VERSION;t.command=0;t.timeStamp=(new Date).getTime();return t}static parseMsg(t,e){let r=JSON.parse(e);t.version=r.version;t.command=r.command;t.packetId=r.packetId;t.timeStamp=r.timeStamp;t.data=r.data;t.signature=r.signature;return t}stringify(){return JSON.stringify(this,["version","command","packetId","timeStamp","data","signature"])}send(){if(!a.default.isAvailable())return;this.packetId=u.default.packetId++;this.data=JSON.stringify(this.data);this.stringify();if(this.command!=c.Command.HEART_BEAT){s.default.sign(this);if(this.data&&this.command!=c.Command.KEY_NEGOTIATE)s.default.encrypt(this)}a.default.send(this.stringify())}}c.Command=(n=class{},n.HEART_BEAT=0,n.KEY_NEGOTIATE=1,n.KEY_NEGOTIATE_RESULT=16,n.REGISTER=2,n.REGISTER_RESULT=32,n.LOGIN=3,n.LOGIN_RESULT=48,n.LOGOUT=4,n.LOGOUT_RESULT=64,n.CLIENT_MSG=5,n.SERVER_MSG=80,n.SERVER_CLOSE=96,n);e["default"]=c},350:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(323));var s;(function(t){function e(t){t.data=n.default.encrypt(t.data)}t.encrypt=e;function r(t){t.data=n.default.decrypt(t.data)}t.decrypt=r;function i(t){t.signature=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`)}t.sign=i;function s(t){let e=n.default.sha256(`${t.timeStamp}${t.packetId}${t.command}${t.data}`);if(t.signature!=e)throw new Error(`msg signature vierfy failed`)}t.verify=s})(s||(s={}));e["default"]=s},1236:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(5301));const s=i(r(8734));const a=i(r(9800));const o=i(r(7078));const u=i(r(538));const c=i(r(7821));const l=i(r(217));const f=i(r(7156));const h=i(r(2535));const d=i(r(9214));const v=i(r(7303));const p=i(r(6063));const g=i(r(7923));const y=i(r(350));const m=i(r(9214));const _=i(r(6254));const S=i(r(5035));class E{static receiveMessage(t){let e=a.default.parseMsg(new a.default,t);if(e.command!=a.default.Command.KEY_NEGOTIATE_RESULT&&e.command!=a.default.Command.HEART_BEAT&&e.command!=a.default.Command.SERVER_CLOSE)y.default.decrypt(e);if(e.command!=a.default.Command.HEART_BEAT&&e.command!=a.default.Command.SERVER_CLOSE)y.default.verify(e);switch(e.command){case a.default.Command.KEY_NEGOTIATE_RESULT:n.default.parse(e.stringify()).receive();break;case a.default.Command.REGISTER_RESULT:o.default.parse(e.stringify()).receive();break;case a.default.Command.LOGIN_RESULT:s.default.parse(e.stringify()).receive();break;case a.default.Command.SERVER_MSG:this.receiveActionMsg(e.stringify());break;case a.default.Command.SERVER_CLOSE:S.default.parse(e.stringify()).receive();break;default:break}}static receiveActionMsg(t){let e=m.default.parseActionMsg(new m.default,t);if(e.actionMsgData.msgAction!=d.default.ServerAction.RECEIVED&&e.actionMsgData.msgAction!=d.default.ServerAction.REDIRECT_SERVER){let t=JSON.parse(e.actionMsgData.msgData);_.default.create(t.id).send()}switch(e.actionMsgData.msgAction){case d.default.ServerAction.PUSH_MESSAGE:f.default.parse(t).receive();break;case d.default.ServerAction.REDIRECT_SERVER:h.default.parse(t).receive();break;case d.default.ServerAction.ADD_PHONE_INFO_RESULT:u.default.parse(t).receive();break;case d.default.ServerAction.SET_MODE_RESULT:v.default.parse(t).receive();break;case d.default.ServerAction.SET_TAG_RESULT:p.default.parse(t).receive();break;case d.default.ServerAction.BIND_ALIAS_RESULT:c.default.parse(t).receive();break;case d.default.ServerAction.UNBIND_ALIAS_RESULT:g.default.parse(t).receive();break;case d.default.ServerAction.FEED_BACK_RESULT:l.default.parse(t).receive();break;case d.default.ServerAction.RECEIVED:_.default.parse(t).receive();break}}}e["default"]=E},6254:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(1754));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.receivedData=new u}static create(t){let e=new o;super.initActionMsg(e);e.callback=t=>{if(t.resultCode!=n.ErrorCode.SUCCESS&&t.resultCode!=n.ErrorCode.REPEAT_MESSAGE)setTimeout((function(){e.send()}),3*1e3)};e.actionMsgData.msgAction=a.default.ClientAction.RECEIVED;e.receivedData=u.create(t);e.actionMsgData.msgData=JSON.stringify(e.receivedData);return e}static parse(t){let e=new o;super.parseActionMsg(e,t);e.receivedData=u.parse(e.data);return e}receive(){var t;let e=a.default.getWaitingResponseMessage(this.actionMsgData.msgId);if(e&&e.actionMsgData.msgAction==a.default.ClientAction.ADD_PHONE_INFO||e&&e.actionMsgData.msgAction==a.default.ClientAction.FEED_BACK){a.default.removeWaitingResponseMessage(e.actionMsgData.msgId);null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"})}}send(){super.send()}}class u{constructor(){this.msgId="";this.cid=""}static create(t){let e=new u;e.cid=s.default.cid;e.msgId=t;return e}static parse(t){let e=new u;let r=JSON.parse(t);e.cid=r.cid;e.msgId=r.msgId;return e}}e["default"]=o},3527:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(1754));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.registerData=new o}static create(){let t=new a;super.initMsg(t);t.command=s.default.Command.REGISTER;t.data=t.registerData=o.create();return t}send(){super.send()}}class o{constructor(){this.appId="";this.regId=""}static create(){let t=new o;t.appId=n.default.appid;t.regId=n.default.regId;return t}}e["default"]=a},7078:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9800));const s=i(r(207));const a=i(r(1754));const o=i(r(2544));class u extends n.default{constructor(){super(...arguments);this.registerResultData=new c}static parse(t){let e=new u;super.parseMsg(e,t);e.registerResultData=c.parse(e.data);return e}receive(){var t;if(0!=this.registerResultData.errorCode||!this.registerResultData.cid||!this.registerResultData.session){console.error(`register fail: ${this.data}`);return}if(a.default.cid!=this.registerResultData.cid)s.default.setSync(s.default.KEY_ADD_PHONE_INFO_TIME,0);a.default.cid=this.registerResultData.cid;null===(t=a.default.onClientId)||void 0===t||t.call(a.default.onClientId,{cid:a.default.cid});s.default.set({key:s.default.KEY_CID,data:a.default.cid});a.default.session=this.registerResultData.session;s.default.set({key:s.default.KEY_SESSION,data:a.default.session});a.default.deviceId=this.registerResultData.deviceId;s.default.set({key:s.default.KEY_DEVICE_ID,data:a.default.deviceId});o.default.create().send()}}class c{constructor(){this.errorCode=-1;this.errorMsg="";this.cid="";this.session="";this.deviceId="";this.regId=""}static parse(t){let e=new c;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;e.cid=r.cid;e.session=r.session;e.deviceId=r.deviceId;e.regId=r.regId;return e}}e["default"]=u},5035:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(3593));const s=i(r(9800));class a extends s.default{constructor(){super(...arguments);this.serverCloseData=new o}static parse(t){let e=new a;super.parseMsg(e,t);e.serverCloseData=o.parse(e.data);return e}receive(){this.data;if(20==this.serverCloseData.code||23==this.serverCloseData.code||24==this.serverCloseData.code)n.default.allowReconnect=false;n.default.close()}}class o{constructor(){this.code=-1;this.msg=""}static parse(t){let e=new o;let r=JSON.parse(t);e.code=r.code;e.msg=r.msg;return e}}e["default"]=a},538:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(207));const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.addPhoneInfoResultData=new o}static parse(t){let e=new a;super.parseActionMsg(e,t);e.addPhoneInfoResultData=o.parse(e.actionMsgData.msgData);return e}receive(){var t;this.addPhoneInfoResultData;let e=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.addPhoneInfoResultData.errorCode,message:this.addPhoneInfoResultData.errorMsg});n.default.set({key:n.default.KEY_ADD_PHONE_INFO_TIME,data:(new Date).getTime()})}}class o{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new o;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=a},7821:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(207));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.bindAliasResultData=new u}static parse(t){let e=new o;super.parseActionMsg(e,t);e.bindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){var t;s.default.info(`bind alias result`,this.bindAliasResultData);let e=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.bindAliasResultData.errorCode,message:this.bindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class u{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o},217:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=r(3118);const s=i(r(9214));class a extends s.default{constructor(){super(...arguments);this.feedbackResultData=new o}static parse(t){let e=new a;super.parseActionMsg(e,t);e.feedbackResultData=o.parse(e.actionMsgData.msgData);return e}receive(){var t;this.feedbackResultData;let e=s.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:n.ErrorCode.SUCCESS,message:"received"})}}class o{constructor(){this.actionId="";this.taskId="";this.result=""}static parse(t){let e=new o;let r=JSON.parse(t);e.actionId=r.actionId;e.taskId=r.taskId;e.result=r.result;return e}}e["default"]=a},7156:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(1754));const a=i(r(9214));const o=i(r(652));class u extends a.default{constructor(){super(...arguments);this.pushMessageData=new c}static parse(t){let e=new u;super.parseActionMsg(e,t);e.pushMessageData=c.parse(e.actionMsgData.msgData);return e}receive(){var t;this.pushMessageData;if(this.pushMessageData.appId!=s.default.appid||!this.pushMessageData.messageid||!this.pushMessageData.taskId)this.stringify();o.default.create(this,o.default.ActionId.RECEIVE).send();o.default.create(this,o.default.ActionId.MP_RECEIVE).send();if(this.actionMsgData.msgExtraData&&s.default.onPushMsg)null===(t=s.default.onPushMsg)||void 0===t||t.call(s.default.onPushMsg,{message:this.actionMsgData.msgExtraData})}}class c{constructor(){this.id="";this.appKey="";this.appId="";this.messageid="";this.taskId="";this.actionChain=[];this.cdnType=""}static parse(t){let e=new c;let r=JSON.parse(t);e.id=r.id;e.appKey=r.appKey;e.appId=r.appId;e.messageid=r.messageid;e.taskId=r.taskId;e.actionChain=r.actionChain;e.cdnType=r.cdnType;return e}}class l{constructor(){this.type="";this.actionid="";this.do=""}}l.Type=(n=class{},n.GO_TO="goto",n.TRANSMIT="transmit",n);e["default"]=u},2535:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(3593));const s=i(r(1754));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.redirectServerData=new u}static parse(t){let e=new o;super.parseActionMsg(e,t);e.redirectServerData=u.parse(e.actionMsgData.msgData);return e}receive(){s.default.socketUrl=this.redirectServerData.addressList.split(",")[0];n.default.connect()}}class u{constructor(){this.addressList="";this.delay=0;this.location="";this.idConfig=""}static parse(t){let e=new u;let r=JSON.parse(t);e.addressList=r.addressList;e.delay=r.delay;e.location=r.location;e.idConfig=r.idConfig;return e}}e["default"]=o},7303:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(9214));class s extends n.default{constructor(){super(...arguments);this.setModeResultData=new a}static parse(t){let e=new s;super.parseActionMsg(e,t);e.setModeResultData=a.parse(e.actionMsgData.msgData);return e}receive(){var t;this.setModeResultData;let e=n.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.setModeResultData.errorCode,message:this.setModeResultData.errorMsg})}}class a{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new a;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=s},6063:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(207));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.setTagResultData=new u}static parse(t){let e=new o;super.parseActionMsg(e,t);e.setTagResultData=u.parse(e.actionMsgData.msgData);return e}receive(){var t;s.default.info(`set tag result`,this.setTagResultData);let e=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.setTagResultData.errorCode,message:this.setTagResultData.errorMsg});n.default.set({key:n.default.KEY_SET_TAG_TIME,data:(new Date).getTime()})}}class u{constructor(){this.errorCode=0;this.errorMsg=""}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o},7923:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(207));const s=i(r(1237));const a=i(r(9214));class o extends a.default{constructor(){super(...arguments);this.unbindAliasResultData=new u}static parse(t){let e=new o;super.parseActionMsg(e,t);e.unbindAliasResultData=u.parse(e.actionMsgData.msgData);return e}receive(){var t;s.default.info(`unbind alias result`,this.unbindAliasResultData);let e=a.default.removeWaitingResponseMessage(this.actionMsgData.msgId);if(e)null===(t=e.callback)||void 0===t||t.call(e.callback,{resultCode:this.unbindAliasResultData.errorCode,message:this.unbindAliasResultData.errorMsg});n.default.set({key:n.default.KEY_BIND_ALIAS_TIME,data:(new Date).getTime()})}}class u{constructor(){this.errorCode=-1;this.errorMsg=""}static parse(t){let e=new u;let r=JSON.parse(t);e.errorCode=r.errorCode;e.errorMsg=r.errorMsg;return e}}e["default"]=o},9285:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{constructor(t){this.delay=10;this.delay=t}start(){this.cancel();let t=this;this.timer=setInterval((function(){t.run()}),this.delay)}cancel(){if(this.timer)clearInterval(this.timer)}}e["default"]=r},1571:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};var n;Object.defineProperty(e,"__esModule",{value:true});const s=i(r(6561));const a=i(r(9285));class o extends a.default{static getInstance(){return o.InstanceHolder.instance}run(){s.default.create().send()}refresh(){this.delay=60*1e3;this.start()}}o.INTERVAL=60*1e3;o.InstanceHolder=(n=class{},n.instance=new o(o.INTERVAL),n);e["default"]=o},3270:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){let e;let r;try{e=uni.getSystemInfoSync();r=uni.getAccountInfoSync()}catch(t){}function i(){let t="";try{t=e?e.platform:""}catch(t){}return t?t:""}t.os=i;function n(){let t="";try{t=e?e.model:""}catch(t){}return t?t:""}t.model=n;function s(){let t="";try{t=e?e.brand:""}catch(t){}return t?t:""}t.brand=s;function a(){let t="";try{t=e?e.system:""; +// #ifdef MP-ALIPAY +let r=i();if(t&&r&&!t.toLocaleLowerCase().startsWith(r.toLowerCase()))t=i()+" "+t; +// #endif +}catch(t){}return t?t:""}t.osVersion=a;function o(){let t=""; +// #ifdef APP-PLUS +t="APP-PLUS"; +// #endif +// #ifdef APP-PLUS-NVUE +t="APP-PLUS-NVUE"; +// #endif +// #ifdef APP-NVUE +t="APP-NVUE"; +// #endif +// #ifdef H5 +t="H5"; +// #endif +// #ifdef MP-WEIXIN +t="MP-WEIXIN"; +// #endif +// #ifdef MP-ALIPAY +t="MP-ALIPAY"; +// #endif +// #ifdef MP-BAIDU +t="MP-BAIDU"; +// #endif +// #ifdef MP-TOUTIAO +t="MP-TOUTIAO"; +// #endif +// #ifdef MP-LARK +t="MP-LARK"; +// #endif +// #ifdef MP-QQ +t="MP-QQ"; +// #endif +// #ifdef MP-KUAISHOU +t="MP-KUAISHOU"; +// #endif +// #ifdef MP-360 +t="MP-360"; +// #endif +// #ifdef QUICKAPP-WEBVIEW +t="QUICKAPP-WEBVIEW"; +// #endif +// #ifdef QUICKAPP-WEBVIEW-UNION +t="QUICKAPP-WEBVIEW-UNION"; +// #endif +return t}t.platform=o;function u(){let t="";try{t=e?e.version:""}catch(t){}return t?t:""}t.platformVersion=u;function c(){let t="";try{t=r?r.miniProgram.appId:""}catch(t){}return t?t:""}t.platformId=c;function l(){let t="";try{t=e?e.language:""}catch(t){}return t?t:""}t.language=l;function f(){return""}t.imei=f;function h(){return""}t.oaid=h;function d(t){uni.getNetworkType({success:e=>{var r;null===(r=t.success)||void 0===r||r.call(t.success,e.networkType)},fail:e=>{var r;null===(r=t.fail)||void 0===r||r.call(t.fail,e)}})}t.getNetworkType=d;function v(t){uni.onNetworkStatusChange((e=>{t.call(t,e)}))}t.onNetworkStatusChange=v})(r||(r={}));e["default"]=r},3593:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(358));const s=i(r(1754));const a=i(r(1236));const o=i(r(1571));const u=i(r(1237));var c;(function(t){let e;let r=false;let i=false;t.allowReconnect=true;function c(){return r&&i}t.isAvailable=c;function l(e){if(!t.allowReconnect)return;setTimeout((function(){f()}),e)}t.reconnect=l;function f(){t.allowReconnect=true;if(!s.default.networkConnected){u.default.info(`connect failed, network is not available`);return}if(i||r)return;let n=s.default.socketUrl;e=uni.connectSocket({url:n,success:function(){i=true;h()},fail:function(){i=false;p("")}}); +// #ifdef MP-ALIPAY +uni.onSocketOpen(g);uni.onSocketMessage(y);uni.onSocketError(m);uni.onSocketClose(_); +// #endif +// #ifndef MP-ALIPAY +e.onOpen(g);e.onMessage(y);e.onError(m);e.onClose(_); +// #endif +}t.connect=f;function h(){if(i&&r){n.default.create().send();o.default.getInstance().start()}}function d(t){ +// #ifdef MP-ALIPAY +uni.closeSocket({reason:t,success:function(t){},fail:function(t){p(t)}}); +// #endif +// #ifndef MP-ALIPAY +e.close({reason:t,success:function(t){},fail:function(t){p(t)}}); +// #endif +}t.close=d;function v(t){if(r&&r){ +// #ifdef MP-ALIPAY +uni.sendSocketMessage({data:t,success:function(t){},fail:function(t){}}); +// #endif +// #ifndef MP-ALIPAY +e.send({data:t,success:function(t){},fail:function(t){}}); +// #endif +}else throw new Error(`socket not connect`)}t.send=v;function p(t){var e,n;i=false;r=false;o.default.getInstance().cancel();if(s.default.online){s.default.online=false;null===(e=s.default.onlineState)||void 0===e||e.call(s.default.onlineState,{online:s.default.online})}if(s.default.online){s.default.online=false;null===(n=s.default.onlineState)||void 0===n||n.call(s.default.onlineState,{online:s.default.online})}l(1e3)}let g=function(t){r=true;h()};let y=function(t){try{t.data;o.default.getInstance().refresh();a.default.receiveMessage(t.data)}catch(t){}};let m=function(t){d(`socket error`)};let _=function(t){p(t)}})(c||(c={}));e["default"]=c},207:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});var r;(function(t){t.KEY_APPID="appid";t.KEY_CID="cid";t.KEY_SESSION="session";t.KEY_REGID="regid";t.KEY_SOCKET_URL="socket_url";t.KEY_DEVICE_ID="deviceid";t.KEY_ADD_PHONE_INFO_TIME="api_time";t.KEY_BIND_ALIAS_TIME="ba_time";t.KEY_SET_TAG_TIME="st_time";function e(t,e){uni.setStorageSync(t,e)}t.setSync=e;function r(t){uni.setStorage({key:t.key,data:t.data,fail:()=>{var e;t.key,t.data;null===(e=t.fail)||void 0===e||e.call(t)}})}t.set=r;function i(t,e){let r=e;try{let e=uni.getStorageSync(t);if(e)r=e}catch(t){}return r}t.getSync=i;function n(t){uni.getStorage({key:t.key,success:e=>{var r;null===(r=t.success)||void 0===r||r.call(t,e.data)},fail:()=>{var e;t.key;null===(e=t.fail)||void 0===e||e.call(t)}})}t.get=n})(r||(r={}));e["default"]=r},323:function(t,e,r){"use strict";var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});const n=i(r(3357));const s=i(r(1354));const a=i(r(1754));var o;(function(t){let e;let r;let i;let o;let u=new n.default;let c=s.default.mode.CBC;let l=s.default.pad.Pkcs7;let f=s.default.AES;t.algorithmMap=new Map([["aes",s.default.AES]]);t.modeMap=new Map([["cbc",s.default.mode.CBC],["cfb",s.default.mode.CFB],["cfb128",s.default.mode.CFB],["ecb",s.default.mode.ECB],["ofb",s.default.mode.OFB]]);t.paddingMap=new Map([["nopadding",s.default.pad.NoPadding],["pkcs7",s.default.pad.Pkcs7]]);function h(){e=s.default.MD5((new Date).getTime().toString());r=s.default.MD5(e);u.setPublicKey(a.default.publicKey);e.toString(s.default.enc.Hex);r.toString(s.default.enc.Hex);i=u.encrypt(e.toString(s.default.enc.Hex));o=u.encrypt(r.toString(s.default.enc.Hex))}t.resetKey=h;function d(e,r,i){f=t.algorithmMap.get(e);c=t.modeMap.get(r);l=t.paddingMap.get(i)}t.setEncryptParams=d;function v(t){return f.encrypt(t,e,{iv:r,mode:c,padding:l}).toString()}t.encrypt=v;function p(t){return f.decrypt(t,e,{iv:r,mode:c,padding:l}).toString(s.default.enc.Utf8)}t.decrypt=p;function g(t){return s.default.SHA256(t).toString(s.default.enc.Base64)}t.sha256=g;function y(t){return s.default.MD5(t).toString(s.default.enc.Hex)}t.md5Hex=y;function m(){return i?i:""}t.getEncryptedSecretKey=m;function _(){return o?o:""}t.getEncryptedIV=_})(o||(o={}));e["default"]=o},1237:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:true});class r{static info(...t){if(this.debugMode)console.info(`[GtPush]`,t)}static error(...t){console.error(`[GtPush]`,t)}}r.debugMode=false;e["default"]=r},3357:(t,e,r)=>{"use strict";r.r(e);r.d(e,{JSEncrypt:()=>_t,default:()=>St});var i="0123456789abcdefghijklmnopqrstuvwxyz";function n(t){return i.charAt(t)}function s(t,e){return t&e}function a(t,e){return t|e}function o(t,e){return t^e}function u(t,e){return t&~e}function c(t){if(0==t)return-1;var e=0;if(0==(65535&t)){t>>=16;e+=16}if(0==(255&t)){t>>=8;e+=8}if(0==(15&t)){t>>=4;e+=4}if(0==(3&t)){t>>=2;e+=2}if(0==(1&t))++e;return e}function l(t){var e=0;while(0!=t){t&=t-1;++e}return e}var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var h="=";function d(t){var e;var r;var i="";for(e=0;e+3<=t.length;e+=3){r=parseInt(t.substring(e,e+3),16);i+=f.charAt(r>>6)+f.charAt(63&r)}if(e+1==t.length){r=parseInt(t.substring(e,e+1),16);i+=f.charAt(r<<2)}else if(e+2==t.length){r=parseInt(t.substring(e,e+2),16);i+=f.charAt(r>>2)+f.charAt((3&r)<<4)}while((3&i.length)>0)i+=h;return i}function v(t){var e="";var r;var i=0;var s=0;for(r=0;r>2);s=3&a;i=1}else if(1==i){e+=n(s<<2|a>>4);s=15&a;i=2}else if(2==i){e+=n(s);e+=n(a>>2);s=3&a;i=3}else{e+=n(s<<2|a>>4);e+=n(15&a);i=0}}if(1==i)e+=n(s<<2);return e}function p(t){var e=v(t);var r;var i=[];for(r=0;2*r=2){n[n.length]=s;s=0;a=0}else s<<=4}if(a)throw new Error("Hex encoding incomplete: 4 bits missing");return n}};var m;var _={decode:function(t){var e;if(void 0===m){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var i="= \f\n\r\t \u2028\u2029";m=Object.create(null);for(e=0;e<64;++e)m[r.charAt(e)]=e;m["-"]=62;m["_"]=63;for(e=0;e=4){n[n.length]=s>>16;n[n.length]=s>>8&255;n[n.length]=255&s;s=0;a=0}else s<<=6}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:n[n.length]=s>>10;break;case 3:n[n.length]=s>>16;n[n.length]=s>>8&255;break}return n},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=_.re.exec(t);if(e)if(e[1])t=e[1];else if(e[2])t=e[2];else throw new Error("RegExp out of sync");return _.decode(t)}};var S=1e13;var E=function(){function t(t){this.buf=[+t||0]}t.prototype.mulAdd=function(t,e){var r=this.buf;var i=r.length;var n;var s;for(n=0;n0)r[n]=e};t.prototype.sub=function(t){var e=this.buf;var r=e.length;var i;var n;for(i=0;i=0;--i)r+=(S+e[i]).toString().substring(1);return r};t.prototype.valueOf=function(){var t=this.buf;var e=0;for(var r=t.length-1;r>=0;--r)e=e*S+t[r];return e};t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this};return t}();var b="…";var w=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;var D=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function T(t,e){if(t.length>e)t=t.substring(0,e)+b;return t}var A=function(){function t(e,r){this.hexDigits="0123456789ABCDEF";if(e instanceof t){this.enc=e.enc;this.pos=e.pos}else{this.enc=e;this.pos=r}}t.prototype.get=function(t){if(void 0===t)t=this.pos++;if(t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"===typeof this.enc?this.enc.charCodeAt(t):this.enc[t]};t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)};t.prototype.hexDump=function(t,e,r){var i="";for(var n=t;n176)return false}return true};t.prototype.parseStringISO=function(t,e){var r="";for(var i=t;i191&&n<224)r+=String.fromCharCode((31&n)<<6|63&this.get(i++));else r+=String.fromCharCode((15&n)<<12|(63&this.get(i++))<<6|63&this.get(i++))}return r};t.prototype.parseStringBMP=function(t,e){var r="";var i;var n;for(var s=t;s127;var n=i?255:0;var s;var a="";while(r==n&&++t4){a=r;s<<=3;while(0==(128&(+a^n))){a=+a<<1;--s}a="("+s+" bit)\n"}if(i)r-=256;var o=new E(r);for(var u=t+1;u=c;--l)a+=u>>l&1?"1":"0";if(a.length>r)return s+T(a,r)}return s+a};t.prototype.parseOctetString=function(t,e,r){if(this.isASCII(t,e))return T(this.parseStringISO(t,e),r);var i=e-t;var n="("+i+" byte)\n";r/=2;if(i>r)e=t+r;for(var s=t;sr)n+=b;return n};t.prototype.parseOID=function(t,e,r){var i="";var n=new E;var s=0;for(var a=t;ar)return T(i,r);n=new E;s=0}}if(s>0)i+=".incomplete";return i};return t}();var M=function(){function t(t,e,r,i,n){if(!(i instanceof I))throw new Error("Invalid tag value.");this.stream=t;this.header=e;this.length=r;this.tag=i;this.sub=n}t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}};t.prototype.content=function(t){if(void 0===this.tag)return null;if(void 0===t)t=1/0;var e=this.posContent();var r=Math.abs(this.length);if(!this.tag.isUniversal()){if(null!==this.sub)return"("+this.sub.length+" elem)";return this.stream.parseOctetString(e,e+r,t)}switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+r);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+r,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+r,t);case 6:return this.stream.parseOID(e,e+r,t);case 16:case 17:if(null!==this.sub)return"("+this.sub.length+" elem)";else return"(no elem)";case 12:return T(this.stream.parseStringUTF(e,e+r),t);case 18:case 19:case 20:case 21:case 22:case 26:return T(this.stream.parseStringISO(e,e+r),t);case 30:return T(this.stream.parseStringBMP(e,e+r),t);case 23:case 24:return this.stream.parseTime(e,e+r,23==this.tag.tagNumber)}return null};t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"};t.prototype.toPrettyString=function(t){if(void 0===t)t="";var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0)e+="+";e+=this.length;if(this.tag.tagConstructed)e+=" (constructed)";else if(this.tag.isUniversal()&&(3==this.tag.tagNumber||4==this.tag.tagNumber)&&null!==this.sub)e+=" (encapsulates)";e+="\n";if(null!==this.sub){t+=" ";for(var r=0,i=this.sub.length;r6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===r)return null;e=0;for(var i=0;i>6;this.tagConstructed=0!==(32&e);this.tagNumber=31&e;if(31==this.tagNumber){var r=new E;do{e=t.get();r.mulAdd(128,127&e)}while(128&e);this.tagNumber=r.simplify()}}t.prototype.isUniversal=function(){return 0===this.tagClass};t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber};return t}();var R;var x=0xdeadbeefcafe;var B=15715070==(16777215&x);var C=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var O=(1<<26)/C[C.length-1];var k=function(){function t(t,e,r){if(null!=t)if("number"==typeof t)this.fromNumber(t,e,r);else if(null==e&&"string"!=typeof t)this.fromString(t,256);else this.fromString(t,e)}t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else if(4==t)e=2;else return this.toRadix(t);var r=(1<0){if(u>u)>0){s=true;a=n(i)}while(o>=0){if(u>(u+=this.DB-e)}else{i=this[o]>>(u-=e)&r;if(u<=0){u+=this.DB;--o}}if(i>0)s=true;if(s)a+=n(i)}}return s?a:"0"};t.prototype.negate=function(){var e=L();t.ZERO.subTo(this,e);return e};t.prototype.abs=function(){return this.s<0?this.negate():this};t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;e=r-t.t;if(0!=e)return this.s<0?-e:e;while(--r>=0)if(0!=(e=this[r]-t[r]))return e;return 0};t.prototype.bitLength=function(){if(this.t<=0)return 0;return this.DB*(this.t-1)+W(this[this.t-1]^this.s&this.DM)};t.prototype.mod=function(e){var r=L();this.abs().divRemTo(e,null,r);if(this.s<0&&r.compareTo(t.ZERO)>0)e.subTo(r,r);return r};t.prototype.modPowInt=function(t,e){var r;if(t<256||e.isEven())r=new N(e);else r=new V(e);return this.exp(t,r)};t.prototype.clone=function(){var t=L();this.copyTo(t);return t};t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;else if(0==this.t)return-1}else if(1==this.t)return this[0];else if(0==this.t)return 0;return(this[1]&(1<<32-this.DB)-1)<>24};t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16};t.prototype.signum=function(){if(this.s<0)return-1;else if(this.t<=0||1==this.t&&this[0]<=0)return 0;else return 1};t.prototype.toByteArray=function(){var t=this.t;var e=[];e[0]=this.s;var r=this.DB-t*this.DB%8;var i;var n=0;if(t-- >0){if(r>r)!=(this.s&this.DM)>>r)e[n++]=i|this.s<=0){if(r<8){i=(this[t]&(1<>(r+=this.DB-8)}else{i=this[t]>>(r-=8)&255;if(r<=0){r+=this.DB;--t}}if(0!=(128&i))i|=-256;if(0==n&&(128&this.s)!=(128&i))++n;if(n>0||i!=this.s)e[n++]=i}}return e};t.prototype.equals=function(t){return 0==this.compareTo(t)};t.prototype.min=function(t){return this.compareTo(t)<0?this:t};t.prototype.max=function(t){return this.compareTo(t)>0?this:t};t.prototype.and=function(t){var e=L();this.bitwiseTo(t,s,e);return e};t.prototype.or=function(t){var e=L();this.bitwiseTo(t,a,e);return e};t.prototype.xor=function(t){var e=L();this.bitwiseTo(t,o,e);return e};t.prototype.andNot=function(t){var e=L();this.bitwiseTo(t,u,e);return e};t.prototype.not=function(){var t=L();for(var e=0;e=this.t)return 0!=this.s;return 0!=(this[e]&1<1){var l=L();s.sqrTo(a[1],l);while(o<=c){a[o]=L();s.mulTo(l,a[o-2],a[o]);o+=2}}var f=t.t-1;var h;var d=true;var v=L();var p;r=W(t[f])-1;while(f>=0){if(r>=u)h=t[f]>>r-u&c;else{h=(t[f]&(1<0)h|=t[f-1]>>this.DB+r-u}o=i;while(0==(1&h)){h>>=1;--o}if((r-=o)<0){r+=this.DB;--f}if(d){a[h].copyTo(n);d=false}else{while(o>1){s.sqrTo(n,v);s.sqrTo(v,n);o-=2}if(o>0)s.sqrTo(n,v);else{p=n;n=v;v=p}s.mulTo(v,a[h],n)}while(f>=0&&0==(t[f]&1<=0){i.subTo(n,i);if(r)s.subTo(o,s);a.subTo(u,a)}else{n.subTo(i,n);if(r)o.subTo(s,o);u.subTo(a,u)}}if(0!=n.compareTo(t.ONE))return t.ZERO;if(u.compareTo(e)>=0)return u.subtract(e);if(u.signum()<0)u.addTo(e,u);else return u;if(u.signum()<0)return u.add(e);else return u};t.prototype.pow=function(t){return this.exp(t,new P)};t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone();var r=t.s<0?t.negate():t.clone();if(e.compareTo(r)<0){var i=e;e=r;r=i}var n=e.getLowestSetBit();var s=r.getLowestSetBit();if(s<0)return e;if(n0){e.rShiftTo(s,e);r.rShiftTo(s,r)}while(e.signum()>0){if((n=e.getLowestSetBit())>0)e.rShiftTo(n,e);if((n=r.getLowestSetBit())>0)r.rShiftTo(n,r);if(e.compareTo(r)>=0){e.subTo(r,e);e.rShiftTo(1,e)}else{r.subTo(e,r);r.rShiftTo(1,r)}}if(s>0)r.lShiftTo(s,r);return r};t.prototype.isProbablePrime=function(t){var e;var r=this.abs();if(1==r.t&&r[0]<=C[C.length-1]){for(e=0;e=0;--e)t[e]=this[e];t.t=this.t;t.s=this.s};t.prototype.fromInt=function(t){this.t=1;this.s=t<0?-1:0;if(t>0)this[0]=t;else if(t<-1)this[0]=t+this.DV;else this.t=0};t.prototype.fromString=function(e,r){var i;if(16==r)i=4;else if(8==r)i=3;else if(256==r)i=8;else if(2==r)i=1;else if(32==r)i=5;else if(4==r)i=2;else{this.fromRadix(e,r);return}this.t=0;this.s=0;var n=e.length;var s=false;var a=0;while(--n>=0){var o=8==i?255&+e[n]:G(e,n);if(o<0){if("-"==e.charAt(n))s=true;continue}s=false;if(0==a)this[this.t++]=o;else if(a+i>this.DB){this[this.t-1]|=(o&(1<>this.DB-a}else this[this.t-1]|=o<=this.DB)a-=this.DB}if(8==i&&0!=(128&+e[0])){this.s=-1;if(a>0)this[this.t-1]|=(1<0&&this[this.t-1]==t)--this.t};t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t;e.s=this.s};t.prototype.drShiftTo=function(t,e){for(var r=t;r=0;--o){e[o+s+1]=this[o]>>i|a;a=(this[o]&n)<=0;--o)e[o]=0;e[s]=a;e.t=this.t+s+1;e.s=this.s;e.clamp()};t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t){e.t=0;return}var i=t%this.DB;var n=this.DB-i;var s=(1<>i;for(var a=r+1;a>i}if(i>0)e[this.t-r-1]|=(this.s&s)<>=this.DB}if(t.t>=this.DB}i+=this.s}else{i+=this.s;while(r>=this.DB}i-=t.s}e.s=i<0?-1:0;if(i<-1)e[r++]=this.DV+i;else if(i>0)e[r++]=i;e.t=r;e.clamp()};t.prototype.multiplyTo=function(e,r){var i=this.abs();var n=e.abs();var s=i.t;r.t=s+n.t;while(--s>=0)r[s]=0;for(s=0;s=0)t[r]=0;for(r=0;r=e.DV){t[r+e.t]-=e.DV;t[r+e.t+1]=1}}if(t.t>0)t[t.t-1]+=e.am(r,e[r],t,2*r,0,1);t.s=0;t.clamp()};t.prototype.divRemTo=function(e,r,i){var n=e.abs();if(n.t<=0)return;var s=this.abs();if(s.t0){n.lShiftTo(c,a);s.lShiftTo(c,i)}else{n.copyTo(a);s.copyTo(i)}var l=a.t;var f=a[l-1];if(0==f)return;var h=f*(1<1?a[l-2]>>this.F2:0);var d=this.FV/h;var v=(1<=0){i[i.t++]=1;i.subTo(m,i)}t.ONE.dlShiftTo(l,m);m.subTo(a,a);while(a.t=0){var _=i[--g]==f?this.DM:Math.floor(i[g]*d+(i[g-1]+p)*v);if((i[g]+=a.am(0,_,i,y,0,l))<_){a.dlShiftTo(y,m);i.subTo(m,i);while(i[g]<--_)i.subTo(m,i)}}if(null!=r){i.drShiftTo(l,r);if(o!=u)t.ZERO.subTo(r,r)}i.t=l;i.clamp();if(c>0)i.rShiftTo(c,i);if(o<0)t.ZERO.subTo(i,i)};t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;e=e*(2-(15&t)*e)&15;e=e*(2-(255&t)*e)&255;e=e*(2-((65535&t)*e&65535))&65535;e=e*(2-t*e%this.DV)%this.DV;return e>0?this.DV-e:-e};t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)};t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=L();var n=L();var s=r.convert(this);var a=W(e)-1;s.copyTo(i);while(--a>=0){r.sqrTo(i,n);if((e&1<0)r.mulTo(n,s,i);else{var o=i;i=n;n=o}}return r.revert(i)};t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))};t.prototype.toRadix=function(t){if(null==t)t=10;if(0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t);var r=Math.pow(t,e);var i=Y(r);var n=L();var s=L();var a="";this.divRemTo(i,n,s);while(n.signum()>0){a=(r+s.intValue()).toString(t).substr(1)+a;n.divRemTo(i,n,s)}return s.intValue().toString(t)+a};t.prototype.fromRadix=function(e,r){this.fromInt(0);if(null==r)r=10;var i=this.chunkSize(r);var n=Math.pow(r,i);var s=false;var a=0;var o=0;for(var u=0;u=i){this.dMultiply(n);this.dAddOffset(o,0);a=0;o=0}}if(a>0){this.dMultiply(Math.pow(r,a));this.dAddOffset(o,0)}if(s)t.ZERO.subTo(this,this)};t.prototype.fromNumber=function(e,r,i){if("number"==typeof r)if(e<2)this.fromInt(1);else{this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(r)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(t.ONE.shiftLeft(e-1),this)}}else{var n=[];var s=7&e;n.length=(e>>3)+1;r.nextBytes(n);if(s>0)n[0]&=(1<>=this.DB}if(t.t>=this.DB}i+=this.s}else{i+=this.s;while(r>=this.DB}i+=t.s}e.s=i<0?-1:0;if(i>0)e[r++]=i;else if(i<-1)e[r++]=this.DV+i;e.t=r;e.clamp()};t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t);++this.t;this.clamp()};t.prototype.dAddOffset=function(t,e){if(0==t)return;while(this.t<=e)this[this.t++]=0;this[e]+=t;while(this[e]>=this.DV){this[e]-=this.DV;if(++e>=this.t)this[this.t++]=0;++this[e]}};t.prototype.multiplyLowerTo=function(t,e,r){var i=Math.min(this.t+t.t,e);r.s=0;r.t=i;while(i>0)r[--i]=0;for(var n=r.t-this.t;i=0)r[i]=0;for(i=Math.max(e-this.t,0);i0)if(0==e)r=this[0]%t;else for(var i=this.t-1;i>=0;--i)r=(e*r+this[i])%t;return r};t.prototype.millerRabin=function(e){var r=this.subtract(t.ONE);var i=r.getLowestSetBit();if(i<=0)return false;var n=r.shiftRight(i);e=e+1>>1;if(e>C.length)e=C.length;var s=L();for(var a=0;a0){r.rShiftTo(a,r);i.rShiftTo(a,i)}var o=function(){if((s=r.getLowestSetBit())>0)r.rShiftTo(s,r);if((s=i.getLowestSetBit())>0)i.rShiftTo(s,i);if(r.compareTo(i)>=0){r.subTo(i,r);r.rShiftTo(1,r)}else{i.subTo(r,i);i.rShiftTo(1,i)}if(!(r.signum()>0)){if(a>0)i.lShiftTo(a,i);setTimeout((function(){e(i)}),0)}else setTimeout(o,0)};setTimeout(o,10)};t.prototype.fromNumberAsync=function(e,r,i,n){if("number"==typeof r)if(e<2)this.fromInt(1);else{this.fromNumber(e,i);if(!this.testBit(e-1))this.bitwiseTo(t.ONE.shiftLeft(e-1),a,this);if(this.isEven())this.dAddOffset(1,0);var s=this;var o=function(){s.dAddOffset(2,0);if(s.bitLength()>e)s.subTo(t.ONE.shiftLeft(e-1),s);if(s.isProbablePrime(r))setTimeout((function(){n()}),0);else setTimeout(o,0)};setTimeout(o,0)}else{var u=[];var c=7&e;u.length=(e>>3)+1;r.nextBytes(u);if(c>0)u[0]&=(1<=0)return t.mod(this.m);else return t};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r)};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e)};return t}();var V=function(){function t(t){this.m=t;this.mp=t.invDigit();this.mpl=32767&this.mp;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(e,e);return e};t.prototype.revert=function(t){var e=L();t.copyTo(e);this.reduce(e);return e};t.prototype.reduce=function(t){while(t.t<=this.mt2)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;r=e+this.m.t;t[r]+=this.m.am(0,i,t,e,0,this.m.t);while(t[r]>=t.DV){t[r]-=t.DV;t[++r]++}}t.clamp();t.drShiftTo(this.m.t,t);if(t.compareTo(this.m)>=0)t.subTo(this.m,t)};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r)};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e)};return t}();var H=function(){function t(t){this.m=t;this.r2=L();this.q3=L();k.ONE.dlShiftTo(2*t.t,this.r2);this.mu=this.r2.divide(t)}t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);else if(t.compareTo(this.m)<0)return t;else{var e=L();t.copyTo(e);this.reduce(e);return e}};t.prototype.revert=function(t){return t};t.prototype.reduce=function(t){t.drShiftTo(this.m.t-1,this.r2);if(t.t>this.m.t+1){t.t=this.m.t+1;t.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(t.compareTo(this.r2)<0)t.dAddOffset(1,this.m.t+1);t.subTo(this.r2,t);while(t.compareTo(this.m)>=0)t.subTo(this.m,t)};t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r);this.reduce(r)};t.prototype.sqrTo=function(t,e){t.squareTo(e);this.reduce(e)};return t}();function L(){return new k(null)}function K(t,e){return new k(t,e)}var U="undefined"!==typeof navigator;if(U&&B&&"Microsoft Internet Explorer"==navigator.appName){k.prototype.am=function t(e,r,i,n,s,a){var o=32767&r;var u=r>>15;while(--a>=0){var c=32767&this[e];var l=this[e++]>>15;var f=u*c+l*o;c=o*c+((32767&f)<<15)+i[n]+(1073741823&s);s=(c>>>30)+(f>>>15)+u*l+(s>>>30);i[n++]=1073741823&c}return s};R=30}else if(U&&B&&"Netscape"!=navigator.appName){k.prototype.am=function t(e,r,i,n,s,a){while(--a>=0){var o=r*this[e++]+i[n]+s;s=Math.floor(o/67108864);i[n++]=67108863&o}return s};R=26}else{k.prototype.am=function t(e,r,i,n,s,a){var o=16383&r;var u=r>>14;while(--a>=0){var c=16383&this[e];var l=this[e++]>>14;var f=u*c+l*o;c=o*c+((16383&f)<<14)+i[n]+s;s=(c>>28)+(f>>14)+u*l;i[n++]=268435455&c}return s};R=28}k.prototype.DB=R;k.prototype.DM=(1<>>16)){t=r;e+=16}if(0!=(r=t>>8)){t=r;e+=8}if(0!=(r=t>>4)){t=r;e+=4}if(0!=(r=t>>2)){t=r;e+=2}if(0!=(r=t>>1)){t=r;e+=1}return e}k.ZERO=Y(0);k.ONE=Y(1);var J=function(){function t(){this.i=0;this.j=0;this.S=[]}t.prototype.init=function(t){var e;var r;var i;for(e=0;e<256;++e)this.S[e]=e;r=0;for(e=0;e<256;++e){r=r+this.S[e]+t[e%t.length]&255;i=this.S[e];this.S[e]=this.S[r];this.S[r]=i}this.i=0;this.j=0};t.prototype.next=function(){var t;this.i=this.i+1&255;this.j=this.j+this.S[this.i]&255;t=this.S[this.i];this.S[this.i]=this.S[this.j];this.S[this.j]=t;return this.S[t+this.S[this.i]&255]};return t}();function $(){return new J}var Z=256;var X;var Q=null;var tt;if(null==Q){Q=[];tt=0;var et=void 0;var rt=0;var it=function(t){rt=rt||0;if(rt>=256||tt>=rng_psize)return;try{var e=t.x+t.y;Q[tt++]=255&e;rt+=1}catch(t){}}}function nt(){if(null==X){X=$();while(tt=0&&e>0){var n=t.charCodeAt(i--);if(n<128)r[--e]=n;else if(n>127&&n<2048){r[--e]=63&n|128;r[--e]=n>>6|192}else{r[--e]=63&n|128;r[--e]=n>>6&63|128;r[--e]=n>>12|224}}r[--e]=0;var s=new st;var a=[];while(e>2){a[0]=0;while(0==a[0])s.nextBytes(a);r[--e]=a[0]}r[--e]=2;r[--e]=0;return new k(r)}var ut=function(){function t(){this.n=null;this.e=0;this.d=null;this.p=null;this.q=null;this.dmp1=null;this.dmq1=null;this.coeff=null}t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)};t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);var e=t.mod(this.p).modPow(this.dmp1,this.p);var r=t.mod(this.q).modPow(this.dmq1,this.q);while(e.compareTo(r)<0)e=e.add(this.p);return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)};t.prototype.setPublic=function(t,e){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16)}else console.error("Invalid RSA public key")};t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3;var r=ot(t,e);if(null==r)return null;var i=this.doPublic(r);if(null==i)return null;var n=i.toString(16);var s=n.length;for(var a=0;a<2*e-s;a++)n="0"+n;return n};t.prototype.setPrivate=function(t,e,r){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);this.d=K(r,16)}else console.error("Invalid RSA private key")};t.prototype.setPrivateEx=function(t,e,r,i,n,s,a,o){if(null!=t&&null!=e&&t.length>0&&e.length>0){this.n=K(t,16);this.e=parseInt(e,16);this.d=K(r,16);this.p=K(i,16);this.q=K(n,16);this.dmp1=K(s,16);this.dmq1=K(a,16);this.coeff=K(o,16)}else console.error("Invalid RSA private key")};t.prototype.generate=function(t,e){var r=new st;var i=t>>1;this.e=parseInt(e,16);var n=new k(e,16);for(;;){for(;;){this.p=new k(t-i,1,r);if(0==this.p.subtract(k.ONE).gcd(n).compareTo(k.ONE)&&this.p.isProbablePrime(10))break}for(;;){this.q=new k(i,1,r);if(0==this.q.subtract(k.ONE).gcd(n).compareTo(k.ONE)&&this.q.isProbablePrime(10))break}if(this.p.compareTo(this.q)<=0){var s=this.p;this.p=this.q;this.q=s}var a=this.p.subtract(k.ONE);var o=this.q.subtract(k.ONE);var u=a.multiply(o);if(0==u.gcd(n).compareTo(k.ONE)){this.n=this.p.multiply(this.q);this.d=n.modInverse(u);this.dmp1=this.d.mod(a);this.dmq1=this.d.mod(o);this.coeff=this.q.modInverse(this.p);break}}};t.prototype.decrypt=function(t){var e=K(t,16);var r=this.doPrivate(e);if(null==r)return null;return ct(r,this.n.bitLength()+7>>3)};t.prototype.generateAsync=function(t,e,r){var i=new st;var n=t>>1;this.e=parseInt(e,16);var s=new k(e,16);var a=this;var o=function(){var e=function(){if(a.p.compareTo(a.q)<=0){var t=a.p;a.p=a.q;a.q=t}var e=a.p.subtract(k.ONE);var i=a.q.subtract(k.ONE);var n=e.multiply(i);if(0==n.gcd(s).compareTo(k.ONE)){a.n=a.p.multiply(a.q);a.d=s.modInverse(n);a.dmp1=a.d.mod(e);a.dmq1=a.d.mod(i);a.coeff=a.q.modInverse(a.p);setTimeout((function(){r()}),0)}else setTimeout(o,0)};var u=function(){a.q=L();a.q.fromNumberAsync(n,1,i,(function(){a.q.subtract(k.ONE).gcda(s,(function(t){if(0==t.compareTo(k.ONE)&&a.q.isProbablePrime(10))setTimeout(e,0);else setTimeout(u,0)}))}))};var c=function(){a.p=L();a.p.fromNumberAsync(t-n,1,i,(function(){a.p.subtract(k.ONE).gcda(s,(function(t){if(0==t.compareTo(k.ONE)&&a.p.isProbablePrime(10))setTimeout(u,0);else setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(o,0)};t.prototype.sign=function(t,e,r){var i=ht(r);var n=i+e(t).toString();var s=at(n,this.n.bitLength()/4);if(null==s)return null;var a=this.doPrivate(s);if(null==a)return null;var o=a.toString(16);if(0==(1&o.length))return o;else return"0"+o};t.prototype.verify=function(t,e,r){var i=K(e,16);var n=this.doPublic(i);if(null==n)return null;var s=n.toString(16).replace(/^1f+00/,"");var a=dt(s);return a==r(t).toString()};t.prototype.encryptLong=function(t){var e=this;var r="";var i=(this.n.bitLength()+7>>3)-11;var n=this.setSplitChn(t,i);n.forEach((function(t){r+=e.encrypt(t)}));return r};t.prototype.decryptLong=function(t){var e="";var r=this.n.bitLength()+7>>3;var i=2*r;if(t.length>i){var n=t.match(new RegExp(".{1,"+i+"}","g"))||[];var s=[];for(var a=0;ae){var o=t.substring(0,s);r.push(o);return this.setSplitChn(t.substring(s),e,r)}}r.push(t);return r};return t}();function ct(t,e){var r=t.toByteArray();var i=0;while(i=r.length)return null;var n="";while(++i191&&s<224){n+=String.fromCharCode((31&s)<<6|63&r[i+1]);++i}else{n+=String.fromCharCode((15&s)<<12|(63&r[i+1])<<6|63&r[i+2]);i+=2}}return n}function lt(t,e){var r=[];for(var i=0;i=s.length)return null;r=r.concat(s.slice(a+1))}var o=r;var u=-1;var c="";while(++u191&&l<224){c+=String.fromCharCode((31&l)<<6|63&o[u+1]);++u}else{c+=String.fromCharCode((15&l)<<12|(63&o[u+1])<<6|63&o[u+2]);u+=2}}return c}var ft={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};function ht(t){return ft[t]||""}function dt(t){for(var e in ft)if(ft.hasOwnProperty(e)){var r=ft[e];var i=r.length;if(t.substr(0,i)==r)return t.substr(i)}return t}var vt={};vt.lang={extend:function(t,e,r){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that "+"all dependencies are included.");var i=function(){};i.prototype=e.prototype;t.prototype=new i;t.prototype.constructor=t;t.superclass=e.prototype;if(e.prototype.constructor==Object.prototype.constructor)e.prototype.constructor=e;if(r){var n;for(n in r)t.prototype[n]=r[n];var s=function(){},a=["toString","valueOf"];try{if(/MSIE/.test(navigator.userAgent))s=function(t,e){for(n=0;n15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);var i=128+r;return i.toString(16)+e}};this.getEncodedHex=function(){if(null==this.hTLV||this.isModified){this.hV=this.getFreshValueHex();this.hL=this.getLengthHexFromValue();this.hTLV=this.hT+this.hL+this.hV;this.isModified=false}return this.hTLV};this.getValueHex=function(){this.getEncodedHex();return this.hV};this.getFreshValueHex=function(){return""}};pt.asn1.DERAbstractString=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this);var e=null;var r=null;this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(this.s)};this.setStringHex=function(t){this.hTLV=null;this.isModified=true;this.s=null;this.hV=t};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("string"==typeof t)this.setString(t);else if("undefined"!=typeof t["str"])this.setString(t["str"]);else if("undefined"!=typeof t["hex"])this.setStringHex(t["hex"])};vt.lang.extend(pt.asn1.DERAbstractString,pt.asn1.ASN1Object);pt.asn1.DERAbstractTime=function(t){pt.asn1.DERAbstractTime.superclass.constructor.call(this);var e=null;var r=null;this.localDateToUTC=function(t){utc=t.getTime()+6e4*t.getTimezoneOffset();var e=new Date(utc);return e};this.formatDate=function(t,e,r){var i=this.zeroPadding;var n=this.localDateToUTC(t);var s=String(n.getFullYear());if("utc"==e)s=s.substr(2,2);var a=i(String(n.getMonth()+1),2);var o=i(String(n.getDate()),2);var u=i(String(n.getHours()),2);var c=i(String(n.getMinutes()),2);var l=i(String(n.getSeconds()),2);var f=s+a+o+u+c+l;if(true===r){var h=n.getMilliseconds();if(0!=h){var d=i(String(h),3);d=d.replace(/[0]+$/,"");f=f+"."+d}}return f+"Z"};this.zeroPadding=function(t,e){if(t.length>=e)return t;return new Array(e-t.length+1).join("0")+t};this.getString=function(){return this.s};this.setString=function(t){this.hTLV=null;this.isModified=true;this.s=t;this.hV=stohex(t)};this.setByDateValue=function(t,e,r,i,n,s){var a=new Date(Date.UTC(t,e-1,r,i,n,s,0));this.setByDate(a)};this.getFreshValueHex=function(){return this.hV}};vt.lang.extend(pt.asn1.DERAbstractTime,pt.asn1.ASN1Object);pt.asn1.DERAbstractStructured=function(t){pt.asn1.DERAbstractString.superclass.constructor.call(this);var e=null;this.setByASN1ObjectArray=function(t){this.hTLV=null;this.isModified=true;this.asn1Array=t};this.appendASN1Object=function(t){this.hTLV=null;this.isModified=true;this.asn1Array.push(t)};this.asn1Array=new Array;if("undefined"!=typeof t)if("undefined"!=typeof t["array"])this.asn1Array=t["array"]};vt.lang.extend(pt.asn1.DERAbstractStructured,pt.asn1.ASN1Object);pt.asn1.DERBoolean=function(){pt.asn1.DERBoolean.superclass.constructor.call(this);this.hT="01";this.hTLV="0101ff"};vt.lang.extend(pt.asn1.DERBoolean,pt.asn1.ASN1Object);pt.asn1.DERInteger=function(t){pt.asn1.DERInteger.superclass.constructor.call(this);this.hT="02";this.setByBigInteger=function(t){this.hTLV=null;this.isModified=true;this.hV=pt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)};this.setByInteger=function(t){var e=new k(String(t),10);this.setByBigInteger(e)};this.setValueHex=function(t){this.hV=t};this.getFreshValueHex=function(){return this.hV};if("undefined"!=typeof t)if("undefined"!=typeof t["bigint"])this.setByBigInteger(t["bigint"]);else if("undefined"!=typeof t["int"])this.setByInteger(t["int"]);else if("number"==typeof t)this.setByInteger(t);else if("undefined"!=typeof t["hex"])this.setValueHex(t["hex"])};vt.lang.extend(pt.asn1.DERInteger,pt.asn1.ASN1Object);pt.asn1.DERBitString=function(t){if(void 0!==t&&"undefined"!==typeof t.obj){var e=pt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}pt.asn1.DERBitString.superclass.constructor.call(this);this.hT="03";this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null;this.isModified=true;this.hV=t};this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7{}};var e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var s=e[i]={exports:{}};t[i].call(s.exports,s,s.exports,r);return s.exports}(()=>{r.d=(t,e)=>{for(var i in e)if(r.o(e,i)&&!r.o(t,i))Object.defineProperty(t,i,{enumerable:true,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=>{if("undefined"!==typeof Symbol&&Symbol.toStringTag)Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});Object.defineProperty(t,"__esModule",{value:true})}})();var i=r(5987);return i})()})); +//# sourceMappingURL=gtpush.map \ No newline at end of file