vendor: 16,770 bytes, line 1
1!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MTpushInterface=t():e.MTpushInterface=t()}(self,(()=>(()=>{var e={452:function(e,t,n){var i;e.exports=(i=n(249),n(269),n(214),n(888),n(109),function(){var e=i,t=e.lib.BlockCipher,n=e.algo,o=[],s=[],r=[],a=[],c=[],l=[],d=[],u=[],p=[],h=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,i=0;for(t=0;t<256;t++){var f=i^i<<1^i<<2^i<<3^i<<4;f=f>>>8^255&f^99,o[n]=f,s[f]=n;var m=e[n],g=e[m],b=e[g],w=257*e[f]^16843008*f;r[n]=w<<24|w>>>8,a[n]=w<<16|w>>>16,c[n]=w<<8|w>>>24,l[n]=w,w=16843009*b^65537*g^257*m^16843008*n,d[f]=w<<24|w>>>8,u[f]=w<<16|w>>>16,p[f]=w<<8|w>>>24,h[f]=w,n?(n=m^e[e[e[b^m]]],i^=e[e[i]]):n=i=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),s=this._keySchedule=[],r=0;r<i;r++)r<n?s[r]=t[r]:(l=s[r-1],r%n?n>6&&r%n==4&&(l=o[l>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l]):(l=o[(l=l<<8|l>>>24)>>>24]<<24|o[l>>>16&255]<<16|o[l>>>8&255]<<8|o[255&l],l^=f[r/n|0]<<24),s[r]=s[r-n]^l);for(var a=this._invKeySchedule=[],c=0;c<i;c++){if(r=i-c,c%4)var l=s[r];else l=s[r-4];a[c]=c<4||r<=4?l:d[o[l>>>24]]^u[o[l>>>16&255]]^p[o[l>>>8&255]]^h[o[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,r,a,c,l,o)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,d,u,p,h,s),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,i,o,s,r,a){for(var c=this._nRounds,l=e[t]^n[0],d=e[t+1]^n[1],u=e[t+2]^n[2],p=e[t+3]^n[3],h=4,f=1;f<c;f++){var m=i[l>>>24]^o[d>>>16&255]^s[u>>>8&255]^r[255&p]^n[h++],g=i[d>>>24]^o[u>>>16&255]^s[p>>>8&255]^r[255&l]^n[h++],b=i[u>>>24]^o[p>>>16&255]^s[l>>>8&255]^r[255&d]^n[h++],w=i[p>>>24]^o[l>>>16&255]^s[d>>>8&255]^r[255&u]^n[h++];l=m,d=g,u=b,p=w}m=(a[l>>>24]<<24|a[d>>>16&255]<<16|a[u>>>8&255]<<8|a[255&p])^n[h++],g=(a[d>>>24]<<24|a[u>>>16&255]<<16|a[p>>>8&255]<<8|a[255&l])^n[h++],b=(a[u>>>24]<<24|a[p>>>16&255]<<16|a[l>>>8&255]<<8|a[255&d])^n[h++],w=(a[p>>>24]<<24|a[l>>>16&255]<<16|a[d>>>8&255]<<8|a[255&u])^n[h++],e[t]=m,e[t+1]=g,e[t+2]=b,e[t+3]=w},keySize:8});e.AES=t._createHelper(m)}(),i.AES)},109:function(e,t,n){var i;e.exports=(i=n(249),n(888),void(i.lib.Cipher||function(e){var t=i,n=t.lib,o=n.Base,s=n.WordArray,r=n.BufferedBlockAlgorithm,a=t.enc,c=(a.Utf8,a.Base64),l=t.algo.EvpKDF,d=n.Cipher=r.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){r.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?v:b}return function(t){return{encrypt:function(n,i,o){return e(i).encrypt(t,n,i,o)},decrypt:function(n,i,o){return e(i).decrypt(t,n,i,o)}}}}()}),u=(n.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),p=n.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=u.CBC=function(){var t=p.extend();function n(t,n,i){var o,s=this._iv;s?(o=s,this._iv=e):o=this._prevBlock;for(var r=0;r<i;r++)t[n+r]^=o[r]}return t.Encryptor=t.extend({processBlock:function(e,t){var i=this._cipher,o=i.blockSize;n.call(this,e,t,o),i.encryptBlock(e,t),this._prevBlock=e.slice(t,t+o)}}),t.Decryptor=t.extend({processBlock:function(e,t){var i=this._cipher,o=i.blockSize,s=e.slice(t,t+o);i.decryptBlock(e,t),n.call(this,e,t,o),this._prevBlock=s}}),t}(),f=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,i=n-e.sigBytes%n,o=i<<24|i<<16|i<<8|i,r=[],a=0;a<i;a+=4)r.push(o);var c=s.create(r,i);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m=(n.BlockCipher=d.extend({cfg:d.cfg.extend({mode:h,padding:f}),reset:function(){var e;d.reset.call(this);var t=this.cfg,n=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=i.createEncryptor:(e=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(i,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),g=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?s.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(t=s.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:t})}},b=n.SerializableCipher=o.extend({cfg:o.extend({format:g}),encrypt:function(e,t,n,i){i=this.cfg.extend(i);var o=e.createEncryptor(n,i),s=o.finalize(t),r=o.cfg;return m.create({ciphertext:s,key:n,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:i.format})},decrypt:function(e,t,n,i){return i=this.cfg.extend(i),t=this._parse(t,i.format),e.createDecryptor(n,i).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=(t.kdf={}).OpenSSL={execute:function(e,t,n,i){i||(i=s.random(8));var o=l.create({keySize:t+n}).compute(e,i),r=s.create(o.words.slice(t),4*n);return o.sigBytes=4*t,m.create({key:o,iv:r,salt:i})}},v=n.PasswordBasedCipher=b.extend({cfg:b.cfg.extend({kdf:w}),encrypt:function(e,t,n,i){var o=(i=this.cfg.extend(i)).kdf.execute(n,e.keySize,e.ivSize);i.iv=o.iv;var s=b.encrypt.call(this,e,t,o.key,i);return s.mixIn(o),s},decrypt:function(e,t,n,i){i=this.cfg.extend(i),t=this._parse(t,i.format);var o=i.kdf.execute(n,e.keySize,e.ivSize,t.salt);return i.iv=o.iv,b.decrypt.call(this,e,t,o.key,i)}})}()))},249:function(e,t,n){var i;e.exports=(i=i||function(e,t){var i;if("undefined"!=typeof window&&window.crypto&&(i=window.crypto),"undefined"!=typeof self&&self.crypto&&(i=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!=typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&void 0!==n.g&&n.g.crypto&&(i=n.g.crypto),!i)try{i=n(480)}catch(e){}var o=function(){if(i){if("function"==typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},a=r.lib={},c=a.Base={extend:function(e){var t=s(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=c.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,o=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s<o;s++){var r=n[s>>>2]>>>24-s%4*8&255;t[i+s>>>2]|=r<<24-(i+s)%4*8}else for(var a=0;a<o;a+=4)t[i+a>>>2]=n[a>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(o());return new l.init(t,e)}}),d=r.enc={},u=d.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o++){var s=t[o>>>2]>>>24-o%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new l.init(n,t/2)}},p=d.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o++){var s=t[o>>>2]>>>24-o%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new l.init(n,t)}},h=d.Utf8={stringify:function(e){try{return decodeURIComponent(escape(p.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return p.parse(unescape(encodeURIComponent(e)))}},f=a.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,i=this._data,o=i.words,s=i.sigBytes,r=this.blockSize,a=s/(4*r),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*r,d=e.min(4*c,s);if(c){for(var u=0;u<c;u+=r)this._doProcessBlock(o,u);n=o.splice(0,c),i.sigBytes-=d}return new l.init(n,d)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),m=(a.Hasher=f.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new m.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math),i)},269:function(e,t,n){var i;e.exports=(i=n(249),function(){var e=i,t=e.lib.WordArray;function n(e,n,i){for(var o=[],s=0,r=0;r<n;r++)if(r%4){var a=i[e.charCodeAt(r-1)]<<r%4*2|i[e.charCodeAt(r)]>>>6-r%4*2;o[s>>>2]|=a<<24-s%4*8,s++}return t.create(o,s)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var o=[],s=0;s<n;s+=3)for(var r=(t[s>>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,a=0;a<4&&s+.75*a<n;a++)o.push(i.charAt(r>>>6*(3-a)&63));var c=i.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(e){var t=e.length,i=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var s=0;s<i.length;s++)o[i.charCodeAt(s)]=s}var r=i.charAt(64);if(r){var a=e.indexOf(r);-1!==a&&(t=a)}return n(e,t,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),i.enc.Base64)},743:function(e,t,n){var i;e.exports=(i=n(249),i.enc.Utf8)},888:function(e,t,n){var i,o,s,r,a,c,l,d;e.exports=(d=n(249),n(783),n(824),o=(i=d).lib,s=o.Base,r=o.WordArray,a=i.algo,c=a.MD5,l=a.EvpKDF=s.extend({cfg:s.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,i=this.cfg,o=i.hasher.create(),s=r.create(),a=s.words,c=i.keySize,l=i.iterations;a.length<c;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var d=1;d<l;d++)n=o.finalize(n),o.reset();s.concat(n)}return s.sigBytes=4*c,s}}),i.EvpKDF=function(e,t,n){return l.create(n).compute(e,t)},d.EvpKDF)},824:function(e,t,n){var i,o,s,r;e.exports=(i=n(249),s=(o=i).lib.Base,r=o.enc.Utf8,void(o.algo.HMAC=s.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),s=this._iKey=t.clone(),a=o.words,c=s.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;o.sigBytes=s.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},214:function(e,t,n){var i;e.exports=(i=n(249),function(e){var t=i,n=t.lib,o=n.WordArray,s=n.Hasher,r=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=r.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,o=e[i];e[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var s=this._hash.words,r=e[t+0],c=e[t+1],h=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],b=e[t+6],w=e[t+7],v=e[t+8],_=e[t+9],y=e[t+10],E=e[t+11],C=e[t+12],S=e[t+13],I=e[t+14],k=e[t+15],T=s[0],x=s[1],N=s[2],O=s[3];T=l(T,x,N,O,r,7,a[0]),O=l(O,T,x,N,c,12,a[1]),N=l(N,O,T,x,h,17,a[2]),x=l(x,N,O,T,f,22,a[3]),T=l(T,x,N,O,m,7,a[4]),O=l(O,T,x,N,g,12,a[5]),N=l(N,O,T,x,b,17,a[6]),x=l(x,N,O,T,w,22,a[7]),T=l(T,x,N,O,v,7,a[8]),O=l(O,T,x,N,_,12,a[9]),N=l(N,O,T,x,y,17,a[10]),x=l(x,N,O,T,E,22,a[11]),T=l(T,x,N,O,C,7,a[12]),O=l(O,T,x,N,S,12,a[13]),N=l(N,O,T,x,I,17,a[14]),T=d(T,x=l(x,N,O,T,k,22,a[15]),N,O,c,5,a[16]),O=d(O,T,x,N,b,9,a[17]),N=d(N,O,T,x,E,14,a[18]),x=d(x,N,O,T,r,20,a[19]),T=d(T,x,N,O,g,5,a[20]),O=d(O,T,x,N,y,9,a[21]),N=d(N,O,T,x,k,14,a[22]),x=d(x,N,O,T,m,20,a[23]),T=d(T,x,N,O,_,5,a[24]),O=d(O,T,x,N,I,9,a[25]),N=d(N,O,T,x,f,14,a[26]),x=d(x,N,O,T,v,20,a[27]),T=d(T,x,N,O,S,5,a[28]),O=d(O,T,x,N,h,9,a[29]),N=d(N,O,T,x,w,14,a[30]),T=u(T,x=d(x,N,O,T,C,20,a[31]),N,O,g,4,a[32]),O=u(O,T,x,N,v,11,a[33]),N=u(N,O,T,x,E,16,a[34]),x=u(x,N,O,T,I,23,a[35]),T=u(T,x,N,O,c,4,a[36]),O=u(O,T,x,N,m,11,a[37]),N=u(N,O,T,x,w,16,a[38]),x=u(x,N,O,T,y,23,a[39]),T=u(T,x,N,O,S,4,a[40]),O=u(O,T,x,N,r,11,a[41]),N=u(N,O,T,x,f,16,a[42]),x=u(x,N,O,T,b,23,a[43]),T=u(T,x,N,O,_,4,a[44]),O=u(O,T,x,N,C,11,a[45]),N=u(N,O,T,x,k,16,a[46]),T=p(T,x=u(x,N,O,T,h,23,a[47]),N,O,r,6,a[48]),O=p(O,T,x,N,w,10,a[49]),N=p(N,O,T,x,I,15,a[50]),x=p(x,N,O,T,g,21,a[51]),T=p(T,x,N,O,C,6,a[52]),O=p(O,T,x,N,f,10,a[53]),N=p(N,O,T,x,y,15,a[54]),x=p(x,N,O,T,c,21,a[55]),T=p(T,x,N,O,v,6,a[56]),O=p(O,T,x,N,k,10,a[57]),N=p(N,O,T,x,b,15,a[58]),x=p(x,N,O,T,S,21,a[59]),T=p(T,x,N,O,m,6,a[60]),O=p(O,T,x,N,E,10,a[61]),N=p(N,O,T,x,h,15,a[62]),x=p(x,N,O,T,_,21,a[63]),s[0]=s[0]+T|0,s[1]=s[1]+x|0,s[2]=s[2]+N|0,s[3]=s[3]+O|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var s=e.floor(i/4294967296),r=i;n[15+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var d=c[l];c[l]=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8)}return a},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,i,o,s,r){var a=e+(t&n|~t&i)+o+r;return(a<<s|a>>>32-s)+t}function d(e,t,n,i,o,s,r){var a=e+(t&i|n&~i)+o+r;return(a<<s|a>>>32-s)+t}function u(e,t,n,i,o,s,r){var a=e+(t^n^i)+o+r;return(a<<s|a>>>32-s)+t}function p(e,t,n,i,o,s,r){var a=e+(n^(t|~i))+o+r;return(a<<s|a>>>32-s)+t}t.MD5=s._createHelper(c),t.HmacMD5=s._createHmacHelper(c)}(Math),i.MD5)},783:function(e,t,n){var i,o,s,r,a,c,l,d;e.exports=(d=n(249),o=(i=d).lib,s=o.WordArray,r=o.Hasher,a=i.algo,c=[],l=a.SHA1=r.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],o=n[1],s=n[2],r=n[3],a=n[4],l=0;l<80;l++){if(l<16)c[l]=0|e[t+l];else{var d=c[l-3]^c[l-8]^c[l-14]^c[l-16];c[l]=d<<1|d>>>31}var u=(i<<5|i>>>27)+a+c[l];u+=l<20?1518500249+(o&s|~o&r):l<40?1859775393+(o^s^r):l<60?(o&s|o&r|s&r)-1894007588:(o^s^r)-899497514,a=r,r=s,s=o<<30|o>>>2,o=i,i=u}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+r|0,n[4]=n[4]+a|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,i=8*e.sigBytes;return t[i>>>5]|=128<<24-i%32,t[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(i+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}}),i.SHA1=r._createHelper(l),i.HmacSHA1=r._createHmacHelper(l),d.SHA1)},238:function(e,t,n){var i;!function(o,s){"use strict";var r="function",a="undefined",c="object",l="string",d="major",u="model",p="name",h="type",f="vendor",m="version",g
vendor: 4,169 bytes, line 1
1="architecture",b="console",w="mobile",v="tablet",_="smarttv",y="wearable",E="embedded",C="Amazon",S="Apple",I="ASUS",k="BlackBerry",T="Firefox",x="Google",N="Huawei",O="LG",R="Microsoft",A="Motorola",D="Opera",P="Samsung",M="Sharp",U="Sony",B="Xiaomi",z="Zebra",L="Facebook",F="Chromium OS",W="Mac OS",j=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},$=function(e,t){return typeof e===l&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===a?e:e.substring(0,500)},G=function(e,t){for(var n,i,o,a,l,d,u=0;u<t.length&&!l;){var p=t[u],h=t[u+1];for(n=i=0;n<p.length&&!l&&p[n];)if(l=p[n++].exec(e))for(o=0;o<h.length;o++)d=l[++i],typeof(a=h[o])===c&&a.length>0?2===a.length?typeof a[1]==r?this[a[0]]=a[1].call(this,d):this[a[0]]=a[1]:3===a.length?typeof a[1]!==r||a[1].exec&&a[1].test?this[a[0]]=d?d.replace(a[1],a[2]):s:this[a[0]]=d?a[1].call(this,d,a[2]):s:4===a.length&&(this[a[0]]=d?a[3].call(this,d.replace(a[1],a[2])):s):this[a]=d||s;u+=2}},K=function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var i=0;i<t[n].length;i++)if($(t[n][i],e))return"?"===n?s:n}else if($(t[n],e))return"?"===n?s:n;return e},q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,m],[/opios[\/ ]+([\w\.]+)/i],[m,[p,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[m,[p,D]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[p,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[p,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[p,"Smart Lenovo Browser"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure Browser"],m],[/\bfocus\/([\w\.]+)/i],[m,[p,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[m,[p,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[p,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[p,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[m,[p,T]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 Browser"]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 Browser"],m],[/samsungbrowser\/([\w\.]+)/i],[m,[p,"Samsung Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],m],[/metasr[\/ ]?([\d\.]+)/i],[m,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[p,m],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,L],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[p,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,"Chrome WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[p,"Android Browser"]],[/(chrome|omniweb|arora|[t
vendor: 4,183 bytes, line 1
1izenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[m,K,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[p,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[p,m],[/(cobalt)\/([\w\.]+)/i],[p,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,H]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,P],[h,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,P],[h,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[f,S],[h,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,S],[h,v]],[/(macintosh);/i],[u,[f,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,M],[h,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,N],[h,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[f,N],[h,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[f,B],[h,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,B],[h,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[h,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[h,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[h,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,A],[h,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,A],[h,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,O],[h,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,O],[h,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[h,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[h,w]],[/(pixel c)\b/i],[u,[f,x],[h,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,x],[h,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,U],[h,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,U],[h,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[h,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,C],[h,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+
vendor: 8,791 bytes, line 1
1)/g,"Fire Phone $1"],[f,C],[h,w]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[h,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,k],[h,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,I],[h,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,I],[h,w]],[/(nexus 9)/i],[u,[f,"HTC"],[h,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[h,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[h,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[h,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[f,"Ulefone"],[h,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[h,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[h,v]],[/(surface duo)/i],[u,[f,R],[h,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[h,w]],[/(u304aa)/i],[u,[f,"AT&T"],[h,w]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[h,w]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[h,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[h,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[h,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[h,v]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[h,v]],[/\b(k88) b/i],[u,[f,"ZTE"],[h,v]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[h,w]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[h,w]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[h,v]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[h,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[h,v]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[h,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[h,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[h,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[h,w]],[/\b(ph-1) /i],[u,[f,"Essential"],[h,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[h,v]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[h,v]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[h,v]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[h,v]],[/(sprint) (\w+)/i],[f,u,[h,w]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,R],[h,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,z],[h,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,z],[h,w]],[/smart-tv.+(samsung)/i],[f,[h,_]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,P],[h,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,O],[h,_]],[/(apple) ?tv/i],[f,[u,"Apple TV"],[h,_]],[/crkey/i],[[u,"Chromecast"],[f,x],[h,_]],[/droid.+aft(\w+)( bui|\))/i],[u,[f,C],[h,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[f,M],[h,_]],[/(bravia[\w ]+)( bui|\))/i],[u,[f,U],[h,_]],[/(mitv-\w{5}) bui/i],[u,[f,B],[h,_]],[/Hbbtv.*(technisat) (.*);/i],[f,u,[h,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[f,V],[u,V],[h,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[h,b]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[h,b]],[/(playstation [345portablevi]+)/i],[u,[f,U],[h,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,R],[h,b]],[/((pebble))app/i],[f,u,[h,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[f,S],[h,y]],[/droid.+; (glass) \d/i],[u,[f,x],[h,y]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,z],[h,y]],[/(quest( 2| pro)?)/i],[u,[f,L],[h,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[h,E]],[/(aeobc)\b/i],[u,[f,C],[h,E]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[h,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[h,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,w]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[m,K,q]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,K,q],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,W],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,m],[/\(bb(10);/i],[m,[p,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[p,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[p,"Chromecast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,F],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,m],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,m]]},X=function(e,t){if(typeof e===c&&(t=e,e=s),!(this instanceof X))return new X(e,t).getResult();var n=typeof o!==a&&o.navigator?o.navigator:s,i=e||(n&&n.userAgent?n.userAgent:""),d=n&&n.userAgentData?n.userAgentData:s,u=t?function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2==0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n}(J,t):J,p=n&&n.userAgent==i;return this.getBrowser=function(){var e,t={};return t.name=s,t.version=s,G.call(t,i,u.browser),t.major=typeof(e=t.version)===l?e.replace(/[^\d\.]/g,"").split(".")[0]:s,p&&n&&n.brave&&typeof n.brave.isBrave==r&&(t.name="Brave"),t},this.getCPU=function(){var e={};return e.architecture=s,G.call(e,i,u.cpu),e},this.getDevice=function(){var e={};return e.vendor=s,e.model=s,e.type=s,G.call(e,i,u.device),p&&!e.type&&d&&d.mobile&&(e.type=w),p&&"Macintosh"==e.model&&n&&typeof n.standalone!==a&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e.model="iPad",e.type=v),e},this.getEngine=function(){var e={};return e.name=s,e.version=s,G.call(e,i,u.engine),e},this.getOS=function(){var e={};return e.name=s,e.version=s,G.call(e,i,u.os),p&&!e.name&&d&&"Unknown"!=d.platform&&(e.name=d.platform.replace(/chrome os/i,F).replace(/macos/i,W)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=typeof e===l&&e.length>500?V(e,500):e,this},this.setUA(i),this};X.VERSION="1.0.37",X.BROWSER=j([p,m,d]),X.CPU=j([g]),X.DEVICE=j([u,f,h,b,w,_,v,y,E]),X.ENGINE=X.OS=j([p,m]),typeof t!==a?(e.exports&&(t=e.exports=X),t.UAParser=X):n.amdO?(i=function(){return X}.call(t,n,t,e))===s||(e.exports=i):typeof o!==a&&(o.UAParser=X);var Q=typeof o!==a&&(o.jQuery||o.Zepto);if(Q&&!Q.ua){var Z=new X;Q.ua=Z.getResult(),Q.ua.get=function(){return Z.getUA()},Q.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:this)},480:()=>{}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var s=t[i]={exports:{}};return e[i].call(s.exports,s,s.exports,n),s.exports}n.amdO={},n.n=e=>
1{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};return(()=>{"use strict";var e;function t(t=(()=>{}),n,i,o){const s=i?{scope:i}:void 0;if(null!=window.PushManager||null!=navigator.serviceWorker)if(n&&n.includes("https://"),"serviceWorker"in navigator){const i=n||"/sw.produce.min.3.3.5.js";navigator.serviceWorker.register(i,s).then((function(e){const n=e.installing;n?n.addEventListener("statechange",(function(n){var i;"activated"===(null===(i=n.target)||void 0===i?void 0:i.state)&&t(!0,e)})):t(!0,e)})).catch((function(n){o?function(t,n,i){const o=new URL(t,location.origin),s=o.pathname.split("/").map((e=>encodeURIComponent(e))).join("/");s!==o.pathname?(o.pathname=s,navigator.serviceWorker.register(o.toString()).then((function(e){const t=e.installing;t?t.addEventListener("statechange",(function(t){var i;"activated"===(null===(i=t.target)||void 0===i?void 0:i.state)&&n(!0,e)})):n(!0,e)})).catch((function(t){n(!1,"Service Worker registration failed.",e.SERVICE_WORKER_REGISTRATION_FAILED)}))):n(!1,"Service Worker registration failed.",e.SERVICE_WORKER_REGISTRATION_FAILED)}(i,t):t(!1,"Service Worker registration failed.",e.SERVICE_WORKER_REGISTRATION_FAILED)}))}else"http:"!==location.protocol||location.href.includes("localhost")?t(!1,"The browser does not support Service Worker.",e.SERVICE_WORKER_NOT_SUPPORTED):t(!1,"Service Worker does not support HTTP.",e.SERVICE_WORKER_INSECURE_CONTEXT);else t(!1,"The browser does not support Service Worker.",e.SERVICE_WORKER_NOT_SUPPORTED)}n.d(i,{default:()=>ot}),function(e){e[e.NOTIFICATION_NOT_SUPPORTED=0]="NOTIFICATION_NOT_SUPPORTED",e[e.PERM_GRANTED_AND_SUBSCRIBED=1]="PERM_GRANTED_AND_SUBSCRIBED",e[e.PERM_DENIED=2]="PERM_DENIED",e[e.PERM_PROMPT=3]="PERM_PROMPT",e[e.SERVICE_WORKER_NOT_SUPPORTED=-1]="SERVICE_WORKER_NOT_SUPPORTED",e[e.SERVICE_WORKER_INSECURE_CONTEXT=-2]="SERVICE_WORKER_INSECURE_CONTEXT",e[e.SERVICE_WORKER_REGISTRATION_FAILED=-3]="SERVICE_WORKER_REGISTRATION_FAILED",e[e.PERM_GRANTED_BUT_SUBSCRIPTION_FAILED=-4]="PERM_GRANTED_BUT_SUBSCRIPTION_FAILED",e[e.UN_SUBSCRIBED=-5]="UN_SUBSCRIBED"}(e||(e={}));var o=n(214),s=n.n(o),r=n(269),a=n.n(r),c=n(743),l=n.n(c),d=n(783),u=n.n(d),p=n(452),h=n.n(p);function f(e){return function(e){const t=e.length,n=new Uint8Array(t);for(let i=0,o=t;i<o;++i)n[i]=e.charCodeAt(i);return n}(function(e,t=!1){return t?atob(e):l().stringify(a().parse(e))}((e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),!0))}function m(e){return b((t=e,String.fromCharCode.apply(null,Array.from(new Uint8Array(t)))),!0);var t}function g(e,t){var n,i;"object"==typeof t&&(t=JSON.parse(JSON.stringify(t))),null===(i=null===(n=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===n?void 0:n.controller)||void 0===i||i.postMessage({code:e,msg:t})}function b(e,t=!1){return"string"!=typeof e&&(e=JSON.stringify(e)),t?btoa(e):a().stringify(l().parse(e))}function w(e){return l().parse("string"!=typeof e?JSON.stringify(e):e)}function v(e){return u()(e).toString()}function _(e,t,n){n=n||"";const i=function(){let e="";for(let t=0;t<16;t++)e+=Math.floor(16*Math.random()).toString(16);return e}(),o=function(e,t,n="iop203040506aPk!"){return h().encrypt("string"==typeof e?a().parse(e):e,w(t),{iv:w(n)})}(b(n),i).ciphertext;var r,c;return{authorization:b(e+":"+v(e+(r=t,s()(r).toString())+v(o))+":"+i),body:(c=o,f(a().stringify(c))).buffer}}function y(e,t){try{const n=document.createElement("textarea");n.value=e,n.style.position="fixed",n.style.left="-999999px",n.style.top="-999999px",document.body.appendChild(n),n.focus(),n.select();const i=document.execCommand("copy");document.body.removeChild(n),t(i)}catch(e){t(!1)}}function E(e,t="POST",n,i,o="json"){var s;const r=i||{};const a=Object.assign({cache:"no-cache",headers:{},redirect:"follow",mode:"cors"},{method:t}),c=Object.assign(a,r);if(c.method=null===(s=c.method)||void 0===s?void 0:s.toUpperCase(),"GET"===c.method){if(n){let t="";const i=/([?&])_=[^&]*/,o=/\?/;"object"==typeof n&&(t=function(e){let t="";for(const n in e)e.hasOwnProperty(n)&&(t+=n+"="+encodeURIComponent(e[n])+"&");return t.slice(0,-1)}(n)),e=i.test(e)?e.replace(i,"$1"+t):e+(o.test(e)?"&":"?")+t}}else[FormData,ArrayBuffer,Blob].filter((e=>n instanceof e)).length>0?c.body=n:(c.headers=Object.assign({"Content-Type":"application/json"},c.headers),n&&(c.body="string"==typeof n?n:JSON.stringify(n)));return fetch(e,c).then((e=>{const{status:t}=e;if(t>=200&&t<400){let t;switch(o){case"json":t=new Promise((t=>{e.text().then((e=>{try{t(JSON.parse(e))}catch(n){t(e)}}))}));break;case"text":t=e.text();break;case"blob":t=e.blob();break;case"arraybuffer":t=e.arrayBuffer();break;default:t=e.json()}return t}return Promise.reject(e)})).catch((e=>Promise.reject(e)))}const C={get:(e,t,n,i)=>E(e,"GET",t,n,i),post:(e,t,n,i)=>E(e,"POST",t,n,i),put:(e,t,n,i)=>E(e,"PUT",t,n,i),delete:(e,t,n,i)=>E(e,"DELETE",t,n,i),fetch:E},S={uid:"",passwd:""};function I(e,t){return S.uid=e,S.passwd=t,S}
1function k(e,t,n){if(S.uid&&S.passwd){const i=_(S.uid,S.passwd,n);return C[t](e,i.body,{headers:{Authorization:"Basic "+i.authorization}})}return Promise.reject("Uid or passwd is empty")}const T={post:(e,t)=>k(e,"post",t),put:(e,t)=>k(e,"put",t),delete:(e,t)=>k(e,"delete",t)},x="webpushinfoData",N="webPushTable";function O(e){const t=indexedDB.open(x);t.onupgradeneeded=function(e){var t;const n=null===(t=e.target)||void 0===t?void 0:t.result;if(!n.objectStoreNames.contains(N)){n.createObjectStore(N,{keyPath:"id"}).createIndex("name","name",{unique:!1})}},t.onerror=function(){},t.onsuccess=function(){e(t.result)}}function R(e=x){const t=indexedDB.deleteDatabase(e);t.onsuccess=function(){},t.onerror=function(){}}let A={baseUrl:{centerUrl:"https://global-websis.engagelab.com/v1/get-webaddr",prefix:".produce.min.3.3.5.js",version:"3.3.5",URL_POLLING:"",development:!1}.baseUrl,reportUrl:{centerUrl:"https://global-websis.engagelab.com/v1/get-webaddr",prefix:".produce.min.3.3.5.js",version:"3.3.5",URL_POLLING:"",development:!1}.reportUrl};function D(e={baseUrl:"",reportUrl:""},t=!1){A=Object.assign({},e),t&&(g(9965,A),function(e,t="userInfoData"){O((n=>{const i=n.transaction([N],"readwrite").objectStore(N).put({id:1,name:t,data:e});i.onerror=function(){},i.onsuccess=function(){}}))}(JSON.stringify(A)))}function P(){const e=A.baseUrl+"/v2/";return Object.assign(Object.assign({},A),{subscribeSuccess:e+"subscribe",auth:A.baseUrl+"/v1/auth",option:e+"notification_subscribe",tagalias:e+"webdevices",unsubscribe:e+"unsubscribe",safariSubscribe:e+"safari/subscribe",updateTag:A.baseUrl+"/v2/set/webdevices",tagList:A.baseUrl+"/v2/get/webdevices"})}function M(){var e;const t=(null===(e=Fe.data)||void 0===e?void 0:e.website_push_id)||"web.cn.jiguang";return{data:window.safari.pushNotification.permission(t),id:t}}function U(e,t){T.post(e,{endpoint:t.endpoint,keys:{p256dh:m(t.getKey("p256dh")),auth:m(t.getKey("auth"))}})}const B={SDK_VERSION:"3.3.5",LOG_TAG_PREFIX:"[MTush-P]",REQUEST:{WS_SUPPORT:!0,WS_HEART_BEAT:5e4,WS_RECONNECT_PERIOD:1e4,WS_RESP_TIMEOUT:3e4,WS_RETRY_TIMES:3,POLLING_URL:"",POLLING_SUPPORT:!1,POLLING_TIME_OUT:15e3},CMD:{INIT:"init",HEART_BEAT:"heartbeat",MESSAGE_RECIVER:"msgrecv",PUSH:"push",EXPIRED:"expired"},EVENT:{OPEN:"open",MESSAGE:"message",SEND:"send",DISCONNECT:"disconnect",NOT_SUPPORT:"not_supoort"}};var z;function L(e){return"string"!=typeof e||(!e||0==e.length)}function F(){let e=!0;if("undefined"!=typeof window&&window.navigator){if(e=window.navigator.onLine,"boolean"==typeof e)return e;e=!0}return e}!function(e){let t=!1;const n=B.LOG_TAG_PREFIX;e.setDebugMode=function(i){e.d(n,`setDebugMode:${i}`),t=i},e.d=function(e,t){},e.dd=function(e,n){t&&"undefined"!=typeof window&&window.console},e.ww=function(e,t){"undefined"!=typeof window&&window.console},e.ee=function(e,t){"undefined"!=typeof window&&window.console}}(z||(z={}));const W=0,j=1e3,$={INITING:1001,CONFIG_INVALID:1002,INIT_FAILED:1003,INIT_TIME_OUT:1004,NETWORK_ERROR:1005,NOT_SUPPORT:1006};function H(e){let t="";switch(e){case W:t="success";break;case j:t="unknown error";break;case $.INITING:t="initing , please try again later";break;case $.CONFIG_INVALID:t="invalid config";break;case $.INIT_FAILED:t="init failed";break;case $.INIT_TIME_OUT:t="init timeout";break;case $.NETWORK_ERROR:t="network error"}return t}function V(e,t){return{code:e,message:H(e),content:t}}class G{constructor(e){this.success=e.success,this.fail=e.fail}onSuccess(e){this.success&&"function"==typeof this.success&&this.success(e)}onFail(e){this.fail&&"function"==typeof this.fail&&this.fail(e)}}var K;!function(e){e[e.Initial=0]="Initial",e[e.Connecting=1]="Connecting",e[e.Connected=2]="Connected",e[e.Closing=3]="Closing",e[e.Closed=4]="Closed"}(K||(K={}));class q extends class{constructor(){this.sConnectionState=K.Initial}getConnectState(){return this.sConnectionState}}{constructor(e){super(),this.mUrl=e}connect(){z.d("WebSocketConnection",`${location.hostname} try to connect websocket:${this.mUrl}`),this.mWebSocket=new WebSocket(this.mUrl),this.mWebSocket.onopen=this.onOpen.bind(this),this.mWebSocket.onclose=this.onClose.bind(this),this.mWebSocket.onmessage=this.onMessage.bind(this)}disconnect(){this.mWebSocket.close()}onOpen(e){this.onopen(e)}onMessage(e){this.onmessage(e)}onClose(e){this.onclose(e)}sendMessage(e){this.mWebSocket.send(e)}getConnectState(){if(this.mWebSocket)switch(this.mWebSocket.readyState){case WebSocket.CLOSED:this.sConnectionState=K.Closed;break;case WebSocket.CLOSING:this.sConnectionState=K.Closing;break;case WebSocket.CONNECTING:this.sConnectionState=K.Connecting;break;case WebSocket.OPEN:this.sConnectionState=K.Connected}return this.sConnectionState}}const J="ConnectionController";class X{constructor(e=""){this.mAutoDiscon=!0,this.mDataCache="",this.url="",this._onOpen=this._onOpen.bind(this),this._onMessage=this._onMessage.bind(this),this._onClose=this._onClose.bind(this),this.sendMessage=this.sendMessage.bind(this),this.setupConnection=this.setupConnection.bind(this),this.url=e}setupConnection(){B.REQUEST.WS_SUPPORT&&"undefined"!=typeof WebSocket?(this.mConnection=new q(this.url||"ws://"+P().baseUrl.split("//")[1]),this.mConnection.onopen=this._onOpen,this.mConnection.onmessage=this._onMessage,this.mConnection.onclose
1=this._onClose,this.mAutoDiscon=!0,z.dd(J,"start connecting"),this.mConnection.connect()):this.onEvent({name:B.EVENT.NOT_SUPPORT})}_isConnect(){return this.mConnection&&(this.mConnection.getConnectState()===K.Connected||this.mConnection.getConnectState()===K.Connecting)}_onOpen(e){z.dd(J,"connection is opened"),this._sendEvent(B.EVENT.OPEN,e.event),this.sendMessage(this.mDataCache)}_onMessage(e){z.d(J,"connection is receive message"),this._sendEvent(B.EVENT.MESSAGE,e.data)}_onClose(e){z.dd(J,"connection close "+(this.mAutoDiscon?"auto":"manually")),this.mAutoDiscon&&this._scheduleReConnect(),this._sendEvent(B.EVENT.DISCONNECT,e)}_sendEvent(e,t){this.onEvent&&this.onEvent({name:e,data:t})}sendMessage(e){L(e)||(this.mConnection.getConnectState()===K.Connected?(this.mConnection.sendMessage(e),this.mDataCache="",this._sendEvent(B.EVENT.SEND,e)):this.mDataCache=e)}_scheduleReConnect(){var e;(e=B.REQUEST.WS_RECONNECT_PERIOD,new Promise((t=>setTimeout(t,e)))).then((()=>{this.mAutoDiscon&&(F()?(z.dd(J,"do reconnect"),this.setupConnection()):this._scheduleReConnect())}))}disconnect(){z.d(J,"disconnect"),this.mAutoDiscon=!1,this._isConnect()&&this.mConnection.disconnect()}reConnect(){z.d(J,"reconnect"),this.mAutoDiscon=!0,this._isConnect()?this.mConnection.disconnect():this.setupConnection()}}class Q{constructor(e){this.mInitConfig=e}setCmd(e){return this.mCmd=e,this}setSid(e){return this.mSid=e,this}setUserInfo(e){return this.mUserInfo=e,this}setPushMsgArray(e){return this.mMsgArr=e,this}build(){let e;switch(this.mCmd){case B.CMD.INIT:e=this.mInitConfig.auth;break;case B.CMD.HEART_BEAT:e={r:this.mUserInfo.regid,u:this.mInitConfig.auth.is_temporary};break;case B.CMD.MESSAGE_RECIVER:e={r:this.mUserInfo.regid,m:this.mMsgArr.map((e=>e.msg_id))}}let t=0;this.mSid?t=this.mSid+2:(t=Q.sid,Q.sid>1e8?Q.sid=0:Q.sid=Q.sid+4);return{cmd:this.mCmd,sid:t,time:Math.round(Date.now()/1e3),body:e?JSON.stringify(e):""}}}Q.sid=0;const Z="Channel";class Y{constructor(){this.mDataCache={},this.mMsgChache={}}init(e){this.mInitConfig=e,this.mConnectionController||(this.mConnectionController=new X(e.webSocketUrl),this.mConnectionController.onEvent=this.onEvent.bind(this)),this.mConnectionController.setupConnection()}onEvent(e){if(z.d(Z,"onEvent:"+e.name),e.name==B.EVENT.DISCONNECT){const e=this,t=Object.keys(e.mDataCache);t.length>0&&t.forEach((t=>{const n=e.mDataCache[t];n&&(n.cleanRespTimeout(),delete e.mDataCache[t])}))}if(e.name==B.EVENT.MESSAGE){const t=JSON.parse(e.data),n=t.cmd;z.dd(Z,`---<- cmd:${n}, data:${e.data}`),n==B.CMD.HEART_BEAT&&(t.body=JSON.stringify({code:0}));const i=JSON.parse(t.body);if(n==B.CMD.PUSH){const e=this._filterPushArr(t.sid,i.d);if(!(e.length>0))return;t.body=e}const o=this.mDataCache[t.sid+""];o&&(o.cleanRespTimeout(),delete this.mDataCache[t.sid+""],0!==i.code?o.fail&&o.fail(i):o.hook?o.hook(t,o.success):o.success&&o.success(i)),e.data=t}this.onevent(e)}_filterPushArr(e,t){if(!t)return[];const n=t.map((e=>JSON.parse(e)));this.send(B.CMD.MESSAGE_RECIVER,new Q(this.mInitConfig).setCmd(B.CMD.MESSAGE_RECIVER).setSid(e).setUserInfo(this.mUserInfo).setPushMsgArray(n).build());const i=n.map((e=>e.msg_id)),o=this.mMsgChache[this.mUserInfo.regid];let s=[];if(o){for(let e=0;e<i.length;e++){const t=i[e];o.indexOf(t)<0?(o.push(t),s.push(n[e])):z.dd(Z,"filter repeat msgid:"+t)}this.mMsgChache[this.mUserInfo.regid]=o}else this.mMsgChache[this.mUserInfo.regid]=i,s=n;return s}send(e,t){z.dd(Z,`---\x3e- cmd:${e}, data:${JSON.stringify(t)}`),this.mConnectionController.sendMessage(JSON.stringify(t))}updateUserInfo(e){this.mUserInfo=e}stop(){this.mConnectionController&&this.mConnectionController.disconnect()}reConnect(){this.mConnectionController&&this.mConnectionController.reConnect()}}class ee{constructor(e){this.mChannel=e,this.mTimes=1}setCmd(e){return this.mCmd=e,this}setData(e){return this.mData=e,this}onSuccess(e){return"function"==typeof e&&(this.success=e),this}onFail(e){return"function"==typeof e&&(this.fail=e),this}onTimeout(e){if("function"==typeof e){this.timeout=e;const t=this;this.respTimeoutTaskId=setTimeout((function(){t.respTimeoutTask()}),B.REQUEST.WS_RESP_TIMEOUT)}return this}addHook(e){return"function"==typeof e&&(this.hook=e),this}respTimeoutTask(){if(this.mTimes<B.REQUEST.WS_RETRY_TIMES){this.mChannel.send(this.mCmd,this.mData),this.mTimes++;const e=this;this.respTimeoutTaskId=setTimeout((function(){e.respTimeoutTask()}),B.REQUEST.WS_RESP_TIMEOUT)}else this.timeout&&this.timeout({rid:this.mRid,data:this.mData,response_timeout:!0}),delete this.mChannel.mDataCache[this.mRid];return this}cleanRespTimeout(){return this.respTimeoutTaskId&&clearTimeout(this.respTimeoutTaskId),this}
1send(){if(this.mCmd&&this.mData)return this.mRid=this.mData.sid+2+"",this.mChannel.send(this.mCmd,this.mData),this.mChannel.mDataCache[this.mRid]=this,this;z.d("MsgBuilder","send failï¼event and data can not empty")}}const te="MTpushInterface.mtPush";class ne{constructor(){this.mInitStatu=ne.INIT_FAIL,this.mAutoDiscon=!0,this.mIsNeedInit=!1,this.hasOnVisibilityState=!1}init(e,t){if(z.setDebugMode(e.debugMode||!1),this.mInitStatu==ne.INIT_ING)return void t.onFail(V($.INITING));const n=e.auth,i=n.is_temporary;!n||L(n.appkey)||L(n.random_str)||L(n.signature)||L(n.user_str)||L(i)||"t"!==i&&"n"!==i||!n.timestamp||"number"!=typeof n.timestamp?t.onFail(V($.CONFIG_INVALID)):(e.is_temporary=i,F()?(z.dd(te,"action:init - sdkVersion:"+B.SDK_VERSION),this.mInitCallback=t,e.sdkVersion=B.SDK_VERSION,this.mInitConfig=e,this.mChannel||(this.mChannel=new Y,this.mChannel.onevent=this._addEventListen.bind(this)),this.mInitStatu==ne.INIT_SUCC?(this.mIsNeedInit=!0,this.stopPush()):(this.mChannel.init(this.mInitConfig),this.mAutoDiscon=!0),this.mInitStatu=ne.INIT_ING):t.onFail(V($.NETWORK_ERROR)))}_init(){const e=this;new ee(this.mChannel).setCmd(B.CMD.INIT).setData(new Q(this.mInitConfig).setCmd(B.CMD.INIT).build()).onSuccess((function(t){e.mInitStatu=ne.INIT_SUCC,e.mUserInfo=t,e.mInitConfig.getInitInfo&&e.mInitConfig.getInitInfo(t),e.mChannel.updateUserInfo(e.mUserInfo),e.mInitCallback&&(e.mInitCallback.onSuccess(V(W)),e.mInitCallback=void 0),e._startHeartBeat(),e._onVisible()})).onFail((function(t){e._initFail(V($.INIT_FAILED,t))})).onTimeout((function(){e._initFail(V($.INIT_TIME_OUT))})).send()}_initFail(e){this.stopPush(),this.mInitCallback?(z.ww(te,"init fail:"+JSON.stringify(e)),this.mInitCallback.onFail(e),this.mInitCallback=void 0):this.mDisconnetFn&&(z.ww(te,"invalid reconnect,close"),this.mDisconnetFn())}onMsgReceive(e){this.mMsgReceiveFn=e}onExpired(e){this.mExpiredFn=e}onDisconnect(e){this.mDisconnetFn=e}getRegistrationID(){return this.mUserInfo?this.mUserInfo.regid:""}stopPush(){this.mAutoDiscon=!1,Q.sid=0,this._stopHearBeat(),this.mChannel&&this.mChannel.stop(),this.mInitStatu=ne.INIT_FAIL,this.mUserInfo=null}_addEventListen(e){if(e){if(z.d(te,"event:"+e.name),e.name==B.EVENT.NOT_SUPPORT)return this._initFail(V(j,"do not support websocket")),void(this.mInitStatu=ne.INIT_FAIL);if(e.name!=B.EVENT.OPEN){if(e.name==B.EVENT.DISCONNECT){if(Q.sid=0,this._stopHearBeat(),this.mIsNeedInit&&!this.mAutoDiscon)return z.dd(te,"reinit."),this.mChannel.init(this.mInitConfig),this.mIsNeedInit=!1,void(this.mAutoDiscon=!0);if(!this.mUserInfo&&this.mAutoDiscon)return void this._initFail(V($.NETWORK_ERROR))}if(e.name==B.EVENT.MESSAGE){const t=e.data.cmd;if(t==B.CMD.PUSH){const t=e.data.body;if(this.mMsgReceiveFn)return void this.mMsgReceiveFn({messages:t})}if(t==B.CMD.EXPIRED)return void(this.mExpiredFn&&this.mExpiredFn())}}else this._init()}}_startHeartBeat(){this.mHeartTimeOut&&clearTimeout(this.mHeartTimeOut),this.mHeartTimeOut=setTimeout((()=>{this._heartBeat()}),B.REQUEST.WS_HEART_BEAT)}_heartBeat(){const e=this;new ee(this.mChannel).setCmd(B.CMD.HEART_BEAT).setData(new Q(this.mInitConfig).setCmd(B.CMD.HEART_BEAT).setUserInfo(this.mUserInfo).build()).onSuccess((function(){e._startHeartBeat()})).onFail((function(){e._reconnect()})).onTimeout((function(){e._reconnect()})).send()}_reconnect(){z.ww(te,"wrong heartbeat,try reconnect"),this._stopHearBeat(),this.mChannel.reConnect()}_stopHearBeat(){this.mHeartTimeOut&&(clearTimeout(this.mHeartTimeOut),this.mHeartTimeOut=void 0)}_resetHeartBeat(){this.mHeartTimeOut&&(clearTimeout(this.mHeartTimeOut),this._startHeartBeat())}_onVisible(){const e=this;this.hasOnVisibilityState||"undefined"!=typeof document&&document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState&&new ee(e.mChannel).setCmd("active").setData(new Q(e.mInitConfig).setCmd("active").build()).send()}))}}ne.INIT_SUCC="INITSUCC",ne.INIT_ING="INITING",ne.INIT_FAIL="INITFAIL";const ie=new ne,oe={init:function(e){try{ie.init(e,new G(e))}catch(t){z.ww(te,"init failï¼"+t),e.fail(V(j))}},onMsgReceive:function(e){"function"==typeof e&&(z.dd(te,"set onMsgReceive"),ie.onMsgReceive(e))},onExpired:function(e){"function"==typeof e&&(z.dd(te,"set onExpired"),ie.onExpired(e))},onDisconnect:function(e){"function"==typeof e&&(z.dd(te,"set onDisconnect"),ie.onDisconnect(e))},stopPush:function(){z.dd(te,"stopPush"),ie.stopPush()},getRegistrationID(){const e=ie.getRegistrationID();return z.dd(te,"getRegistrationID:"+e),e},mtpush:ie};function se(e){return e?` style="color:${e};"`:""}const re={position:"left",title:"",titleColor:"",text:"",textColor:"",confirm:"",confirmColor:"",confirmBgc:"",cancel:"",cancelColor:"",src:""};function ae(e){const t=document.createElement("style");t.appendChild(document.createTextNode(e));document.getElementsByTagName("head")[0].appendChild(t)}const ce=["active_launch","active_terminate"];function le(e){const t=Number(localStorage.getItem(e)||"0");return isNaN(t)?0:t}function de(e,t="",n=!1){var i,o,s,r;if(Fe.data&&Fe.userOption){const a=Fe;let c=!1;if(e.forEach((e=>{const t=(new Date).getTime()/1e3|0;e.type&&ce.includes(e.type)&&(t-le(e.type)<30&&(c=!0),localStorage.setItem(e.type,t.toString())),e.itime=t,e.msg_id&&(e.msg_id=e.msg_id.toString())})),c)return;const l={platform:"b",uid:null===(i=a.data)||void 0===i?void 0:i.uid,app_key:null===(o=a.userOption)||void 0===o?void 0:o.appkey,channel:t,content:e,sdk_ver:"3.3.5"},d="Basic "+btoa((null===(s=a.data)||void 0===s?void 0:s.uid)+":"+(null===(r=a.data)||void 0===r?void 0:r.passwd));return n?{data:l,Authorization:d}:C.post(P().reportUrl||"",l,{headers:{Authorization:d}})}}function ue(e){return(new Date).getTime()/1e3-le(e)|0}function pe(e){ae(e.css);try{new Function("option","reqPer","apiVal","dataToolVal","userInfoDataVal","updateVal",e.html)(e.option,e.reqPer,e.api,e.dataTool,e.userInfoData,e.update)}catch(e){}}var he=n(238),fe=n.n(he);function me(e,t=!1){const n=document.createElement("div");n.innerHTML=e.content;const i=n.getElementsByTagName("script");
1if(i.length>0)for(let n=0;n<i.length;n++)if("mt_webpush_script"===i[n].id)try{new Function("messageItemData",i[n].innerHTML)(t?e:null);break}catch(e){}}function ge(e){const t=window.MAInterface;!function n(){t?t.listenNotificationStatus(e):setTimeout((()=>{n()}),1e4)}()}var be=function(e,t,n,i){return new(n||(n=Promise))((function(o,s){function r(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,a)}c((i=i.apply(e,t||[])).next())}))};let we=null;const ve="mtpush_regid_search",_e=`\n.${ve}_modal {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n}\n.${ve}_modal.${ve}_modal_hide {\n display: none;\n}\n.${ve}_content {\n width: 420px;\n background: #ffffff;\n box-shadow: 0px 24px 24px -6px rgba(37, 48, 68, 0.14), 0px 2px 6px 0px rgba(37, 48, 68, 0.12);\n border-radius: 4px;\n padding: 24px;\n position: relative;\n}\n.${ve}_title {\n font-size: 16px;\n color: #000;\n line-height: 24px;\n font-weight: bold;\n margin-bottom: 16px;\n}\n.${ve}_input_group {\n margin-bottom: 16px;\n}\n.${ve}_label {\n display: block;\n font-size: 14px;\n color: #333;\n margin-bottom: 8px;\n}\n.${ve}_input {\n width: 100%;\n height: 36px;\n padding: 0 12px;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n font-size: 14px;\n box-sizing: border-box;\n}\n.${ve}_input:focus {\n outline: none;\n border-color: #2c6bff;\n}\n.${ve}_error {\n color: #ff4d4f;\n font-size: 12px;\n margin-top: 4px;\n min-height: 18px;\n}\n.${ve}_result {\n margin-top: 16px;\n padding: 12px;\n background: #f5f5f5;\n border-radius: 4px;\n word-break: break-all;\n font-size: 14px;\n color: #333;\n display: none;\n}\n.${ve}_result.show {\n display: block;\n}\n.${ve}_result_label {\n font-weight: bold;\n margin-bottom: 8px;\n color: #000;\n}\n.${ve}_result_value {\n color: #666;\n}\n.${ve}_result_value_wrapper {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n.${ve}_copy_button {\n width: 20px;\n height: 20px;\n padding: 0;\n border: none;\n background: transparent;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n opacity: 0.6;\n transition: opacity 0.2s;\n}\n.${ve}_copy_button:hover {\n opacity: 1;\n}\n.${ve}_copy_button:active {\n opacity: 0.8;\n}\n.${ve}_copy_button svg {\n width: 100%;\n height: 100%;\n}\n.${ve}_copy_success_text {\n font-size: 12px;\n color: #52c41a;\n white-space: nowrap;\n display: none;\n}\n.${ve}_copy_success_text.show {\n display: block;\n}\n.${ve}_buttons {\n text-align: right;\n margin-top: 20px;\n}\n.${ve}_button {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 3px;\n padding: 0 16px;\n margin-left: 8px;\n cursor: pointer;\n border: none;\n font-size: 14px;\n}\n.${ve}_button_cancel {\n color: #666;\n background: #f5f5f5;\n}\n.${ve}_button_cancel:hover {\n background: #e8e8e8;\n}\n.${ve}_button_confirm {\n color: #fff;\n background: #2c6bff;\n}\n.${ve}_button_confirm:hover {\n background: #1e5ae6;\n}\n.${ve}_button_confirm:disabled {\n background: #d9d9d9;\n cursor: not-allowed;\n}\n`;function ye(){!function(e){const t=`${ve}_style`;let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,n.appendChild(document.createTextNode(e)),document.head.appendChild(n))}(_e);const e=document.createElement("div");e.className=`${ve}_modal ${ve}_modal_hide`;const t=document.createElement("div");t.className=`${ve}_content`;const n=document.createElement("div");n.className=`${ve}_title`,n.textContent="Query Registration ID";const i=document.createElement("div");i.className=`${ve}_input_group`;const o=document.createElement("label");o.className=`${ve}_label`,o.textContent="Please enter security verification code (Appkey)";const s=document.createElement("input");s.className=`${ve}_input`,s.type="text",s.placeholder="Please enter Appkey";const r=document.createElement("div");r.className=`${ve}_error`,i.appendChild(o),i.appendChild(s),i.appendChild(r);const a=document.createElement("div");a.className=`${ve}_result`;const c=document.createElement("div");c.className=`${ve}_result_label`,c.textContent="Registration ID:";const l=document.createElement("div");l.className=`${ve}_result_value_wrapper`;const d=document.createElement("div");d.className=`${ve}_result_value`;const u=document.createElement("button");u.className=`${ve}_copy_button`,u.setAttribute("aria-label","Copy Registration ID"),u.innerHTML='<svg t="1769484825488" class="icon" viewB
1ox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="12529" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M288 672c0 47.104 38.208 85.312 85.312 85.312h314.688V864c0 47.104-38.208 85.312-85.312 85.312H176A85.312 85.312 0 0 1 90.688 864V437.312c0-47.104 38.208-85.312 85.312-85.312H288v320z m570.688-576c47.104 0 85.312 38.208 85.312 85.312V608c0 47.104-38.208 85.312-85.312 85.312H432A85.312 85.312 0 0 1 346.688 608V181.312c0-47.104 38.208-85.312 85.312-85.312h426.688z m-426.688 512h426.688V181.312H432V608z" fill="#253044" fill-opacity=".52" p-id="12530"></path></svg>';const p=document.createElement("span");p.className=`${ve}_copy_success_text`,p.textContent="Copied!",u.addEventListener("click",(e=>be(this,void 0,void 0,(function*(){e.stopPropagation();const t=d.textContent||"";if(t){(yield(n=t,new Promise((e=>{n?navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(n).then((()=>{e(!0)})).catch((()=>{y(n,e)})):y(n,e):e(!1)}))))&&(u.style.display="none",p.classList.add("show"),setTimeout((()=>{p.classList.remove("show"),u.style.display="flex"}),2e3))}var n})))),l.appendChild(d),l.appendChild(u),l.appendChild(p),a.appendChild(c),a.appendChild(l);const h=document.createElement("div");h.className=`${ve}_buttons`;const f=document.createElement("button");f.className=`${ve}_button ${ve}_button_cancel`,f.textContent="Cancel";const m=document.createElement("button");function g(){e.classList.add(`${ve}_modal_hide`)}function b(){var e;const t=s.value.trim();if(r.textContent="",a.classList.remove("show"),!t)return void(r.textContent="Please enter Appkey");const n=null===(e=Fe.userOption)||void 0===e?void 0:e.appkey;if(!n)return void(r.textContent="SDK is not initialized, please initialize the SDK first");if(t!==n)return void(r.textContent="Appkey does not match, please enter the correct Appkey");const i=oe.getRegistrationID();if(!i)return void(r.textContent="Registration ID not obtained, please ensure the SDK has been successfully initialized and registration is complete");const o=a.querySelector(`.${ve}_result_value`);o&&(o.textContent=i),a.classList.add("show")}return m.className=`${ve}_button ${ve}_button_confirm`,m.textContent="Confirm",h.appendChild(f),h.appendChild(m),t.appendChild(n),t.appendChild(i),t.appendChild(a),t.appendChild(h),e.appendChild(t),document.body.appendChild(e),m.addEventListener("click",b),f.addEventListener("click",g),e.addEventListener("click",(t=>{t.target===e&&g()})),s.addEventListener("keydown",(e=>{"Enter"===e.key&&b()})),{showModal:function(){e.classList.remove(`${ve}_modal_hide`),s.focus(),s.value="",r.textContent="",a.classList.remove("show")},hideModal:g}}const Ee="mt_push_init_data",Ce=["report_url","baseUrl","userLang","safari_url","appkey","user_str","swUrl","is_temporary","debugMode","webSocketUrl","maOpen","maChannel","appName","userIdentity","openUrl","encodeSwUrl","regidSearchPath"];var Se,Ie;!function(e){e[e.NOTIFICATION=1]="NOTIFICATION",e[e.INAPP=7]="INAPP"}(Se||(Se={})),function(e){e.MTPUSH="MTPush",e.W3PUSH="W3Push"}(Ie||(Ie={}));const ke="webPushClickEvents",Te="clickEvents",xe="events",Ne=e=>new Promise(((t,n)=>{const i=indexedDB.open((e=>e?`webPushClickEvents_${e}`:ke)(e),1);i.onupgradeneeded=e=>{var t;const n=null===(t=e.target)||void 0===t?void 0:t.result;if(!n.objectStoreNames.contains(Te)){n.createObjectStore(Te,{keyPath:"key"}).createIndex("key","key",{unique:!0})}},i.onerror=()=>{n(i.error)},i.onsuccess=()=>{t(i.result)}})),Oe=e=>new Promise((t=>{Ne(e).then((e=>{const n=e.transaction([Te],"readonly").objectStore(Te).get(xe);n.onsuccess=()=>{const i=n.result;if(i&&i.data)try{const e=JSON.parse(i.data);Array.isArray(e)?t(e):t([])}catch(e){t([])}else t([]);e.close()},n.onerror=()=>{t([]),e.close()}})).catch((()=>{t([])}))})),Re=(e,t)=>new Promise(((n,i)=>{Ne(t).then((t=>{const o=t.transaction([Te],"readwrite").objectStore(Te).put({key:xe,data:JSON.stringify(e)});o.onerror=()=>{i(o.error),t.close()},o.onsuccess=()=>{n(),t.close()}})).catch(i)})),Ae=(e,t)=>{e.eventList.length>0&&t&&Oe(t).then((n=>{const i=n.findIndex((t=>Number(t.msgId)===Number(e.msgId)));return-1!==i?n[i].clickTime=e.clickTime:(n.push(e),n.length>1e3&&(n=n.slice(-1e3))),n=n.filter((e=>Array.isArray(e.eventList)&&e.eventList.length>0)),Re(n,t)})).catch((e=>{}))},De=e=>{const t=Array.isArray(e.eventList)?[...e.eventList].sort().join(","):e.eventList;return`${e.msgId}_${t}_${e.clickTime}`},Pe=(e,t)=>
1{e&&0!==e.length&&t&&Oe(t).then((n=>{const i=new Set;e.forEach((e=>{const t=De(e);i.add(t)}));const o=n.filter((e=>{const t=De(e);return!i.has(t)}));return Re(o,t)})).catch((e=>{}))};const Me={mtPush:{code:0,msg:""},webPush:{code:0,msg:""}};function Ue(){return Me.mtPush={INITSUCC:{code:1,msg:"MTpush channel initialization successful!"},INIT_ING:{code:-1,msg:"The MTpush channel is initializing, please try again later!"},INIT_FAIL:{code:0,msg:"MTpush channel initialization failed or stopped!"}}[oe.mtpush.mInitStatu]||{code:0,msg:""},JSON.parse(JSON.stringify(Me))}function Be(e,t=(()=>{})){const n=e.visit||0,i=e.delay||0,o=Number(window.localStorage.getItem("subscriptionVisit")||0);o>n-1?i>0?setTimeout(t,1e3*i):t():window.localStorage.setItem("subscriptionVisit",(o+1).toString())}function ze(n=(()=>{}),i,o){var s,r;function a(e,t){Me.webPush.code=e,Me.webPush.msg=t,n(e,t)}let c,l;if((null==Fe?void 0:Fe.service_worker)&&(null===(s=null==Fe?void 0:Fe.service_worker)||void 0===s?void 0:s.enable)){const e=function(e){return e?e.startsWith("/")?e.replace(/^\/+/,""):e.startsWith("./")||e.startsWith("../")?e.replace(/^(?:\.\/|\.{2}\/)+/,""):e:e}(Fe.service_worker.main_file_name);l=Fe.service_worker.scope,c=Fe.service_worker.path+e}else c=i.swUrl,l=void 0;t(((t,n,s)=>{var r;function c(t,o){1===t?function(e,t,n,i=(()=>{})){var o;let s=!1;if("safari"in window&&"pushNotification"in window.safari){s=!0;const e=M();if(e.data.deviceToken)return i(!0),void T.post(P().safariSubscribe,{appkey:null===(o=Fe.userOption)||void 0===o?void 0:o.appkey,device_token:e.data.deviceToken})}e.pushManager?e.pushManager.getSubscription().then((o=>{o?(i(!0),U(n,o)):e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:f(t)}).then((e=>{i(!0),U(n,e)})).catch((e=>{i(!1,e)}))})).catch((e=>{i(!1,e)})):i(s)}(n,i.VAPIDPublicKey,P().subscribeSuccess,(t=>{t?a(e.PERM_GRANTED_AND_SUBSCRIBED,"Notification permissions available, message subscription successful."):a(e.PERM_GRANTED_BUT_SUBSCRIPTION_FAILED,"Notification permission is available, but message subscription failed.")})):2===t?a(e.PERM_DENIED,"Notification permissions have been disabled, message subscription failed."):3===t&&a(e.PERM_PROMPT,"Notification permissions have not been confirmed, message subscription has not been performed.")}function l(){!function(e=$e){var t;let n="web.cn.jiguang";const i=Fe.userOption,o=((null==i?void 0:i.safari_url)||P().baseUrl)+"/webpush";function s(){const e=M(),t=e.data;n=e.id,r(t)}function r(t){var i,a;"default"===t.permission?(de([{type:"ntf_status",result:0,manufacturer:je.browser.name,lang:Fe.lan}]),window.safari.pushNotification.requestPermission(o,n,{appkey:null===(i=Fe.userOption)||void 0===i?void 0:i.appkey,uid:null===(a=Fe.data)||void 0===a?void 0:a.uid.toString(),origin:location.origin},r)):(document.body.removeEventListener("click",s),He(t.permission,e),ge({notification_status:"denied"!==t.permission}),"denied"===t.permission?de([{type:"ntf_status",result:2,manufacturer:je.browser.name,lang:Fe.lan}]):de([{type:"ntf_status",result:1,manufacturer:je.browser.name,lang:Fe.lan}]))}if(Ve())try{s()}catch(e){document.body.addEventListener("click",s)}else de([{type:"ntf_status",result:0,manufacturer:je.browser.name,lang:Fe.lan}]),null===(t=Notification.requestPermission())||void 0===t||t.then((function(t){He(t,e),ge({notification_status:"denied"!==t}),"denied"===t?(de([{type:"ntf_status",result:2,manufacturer:je.browser.name,lang:Fe.lan}]),T.post(P().unsubscribe)):de([{type:"ntf_status",result:1,manufacturer:je.browser.name,lang:Fe.lan}])}))}(((e,t)=>{c(e)}))}t?(null===(r=navigator.serviceWorker.controller)||void 0===r||r.postMessage({type:"STOREGE_INIT_CONFIG",value:{openUrl:Fe.openUrl||window.location.origin||"",maOpen:o.maOpen,appkey:o.appkey}}),Ge(((t,n)=>{3!==t&&setTimeout((()=>{de([{type:"ntf_status",result:t,manufacturer:We.browser.name,lang:Fe.lan}])}),2e3),1===t?c(t):3===t?T.post(P().option,{appkey:o.appkey}).then((e=>{const t=e.subscribe_config||{};if(2===e.subscribe_type)if(t.html){pe({option:t,reqPer:l,api:P,dataTool:T,userInfoData:Fe,html:t.html,update:!1,css:t.css})}else{const e=function(e,t=(()=>{}),n=(()=>{})){const i=Object.assign(re,e);i.position={left:"left:0",center:"left:50%;transform:translate(-50%,0)",right:"right:0"}[e.position]||"left:0";let o=(i.confirmColor?`color:${i.confirmColor};`:"")+(i.confirmBgc?`background-color:${i.confirmBgc};`:"");o=o?` style="${o}"`:"";const s=`<img src="${i.src||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAh1BMVEUAAAAsa/8sbP9FXP8lYf8sa/8sa/8ra/8s
1a/8ra/8sa/8sa/8sa/8sa/8sa/8sa/8rZf8sa/8sa/8sa/8sa/8sa/8sbP8ra/8sa/8sa/8oav8sa/8maP8sa/8rbP8sa/8sa/8sa/8oaP8rbP8sa/8ra/8ra/8ta/8sav8mav8sa/8ra/8taf/cU0AXAAAALXRSTlMA1tMCBMzQPsgzF76Zc25nCrqsW7e0jnpgTB8cDcXBr4BWEKeiY0Y5KhNqUiIjzI9vAAABjUlEQVRIx+2VW3OCMBCFOZAAIje5iYqKeNf+/9/X3RpKsZlOpn3qjN+D2dnk5OSsD1haJqGU4cUyZmGDsE+m5zsfH/iNoeAOFKvlDFgYChIgsqw5cDSN0Dv8GCKo/ESVZygmvaVfBc/nTxR0zYXIS3yy3QnurWnPG5/PeZA3vr3EiJJdbjzkxdOrUdCWk7BwOvcCIQKv3fDBmv/IKRVfPJYucOChtwA29AyF2LFkTtU1A+SQI6TXprTGAEIqBhraAg+jK4Cq717I70Krx9c543BOq6Y1oce+qWb0EKdTup/PjxXkMWPXCohVLwM40JHi0s4zzRrIH/6ZakmA8ggyuFsacrIg4wCQqmPDpYZHBo5OIDYAj9yF3WeQMf/yALW0j9fHMhq198BZLyDvg6ZNEa56wQooNG0XcPSCFPC/dx2oTPqtl+AlMBFELoxwYyWQMMT/ncPfWdaroTBhhnIoTJBAymvHKU3IgFp96g5Gghpwj02XuMDOSCC2UGTCMiJQiuxqGSLyvZT7XFj/g3cZFxJZ+tXnmgAAAABJRU5ErkJggg=="}"/>\n <h3${se(i.titleColor)}>${i.title}</h3>\n <p class="notic-user-tip-data"${se(i.textColor)}>${i.text}</p>\n <div class="button-warp">\n <span class="web-push-tip-cancel" ${se(i.cancelColor)}>${i.cancel}</span><span class="confirm" ${o}>${i.confirm}</span>\n </div>`;ae(".notic-user-tip-warp {\n width: 378px;\n min-height: 134px;\n background: #ffffff;\n box-shadow: 0px 24px 24px -6px rgba(37, 48, 68, 0.14), 0px 2px 6px 0px rgba(37, 48, 68, 0.12);\n border-radius: 4px;\n position: absolute;\n padding: 20px 20px 20px 72px;\n top: 0;\n z-index: 999;\n}\n.notic-user-tip-warp.notic-user-tip-warp-hide{display:none}\n.notic-user-tip-warp > img {\n position: absolute;\n width: 40px;\n left: 16px;\n top: 20px;\n}\n.notic-user-tip-warp > h3 {\n font-size: 14px;\n color: #000;\n line-height: 18px;\n padding-bottom: 2px;\n font-weight: bolder;\n}\n.notic-user-tip-warp > .notic-user-tip-data {\n font-size: 14px;\n line-height: 22px;\n color: #666;\n min-height: 44px;\n overflow: hidden;\n padding-bottom: 16px;\n word-spacing: pre-wrap;\n}\n.notic-user-tip-warp > .button-warp {\n text-align: right;\n}\n.notic-user-tip-warp > .button-warp > span {\n display: inline-block;\n height: 32px;\n line-height: 32px;\n border-radius: 3px;\n padding: 0 16px;\n margin-left: 8px;\n color: #cccccc;\n cursor: pointer;\n}\n.notic-user-tip-warp > .button-warp > .confirm {\n color: #fff;\n background: #2c6bff;\n}");const r=document.createElement("div");function a(e=!1){e?r.classList.add("notic-user-tip-warp-hide"):r.classList.remove("notic-user-tip-warp-hide")}return r.className="notic-user-tip-warp notic-user-tip-warp-hide",r.style.cssText=i.position,r.innerHTML=s,document.body.appendChild(r),r.addEventListener("click",(e=>{const i=e.target.classList;i.contains("confirm")&&(t(),a(!0)),i.contains("web-push-tip-cancel")&&(n(),a(!0))})),a}(t,l,(()=>{}));Be(t,(()=>{e()}))}else 3===e.subscribe_type?o.custom?o.custom(l):l():Be(t,l)})):a(e.PERM_DENIED,"Notification permissions have been disabled, message subscription failed.")}))):a(s,n)}),c,l,null!==(r=o.encodeSwUrl)&&void 0!==r&&r)}function Le(){}const Fe={data:null,userOption:null,lan:navigator.language,unSubscribe:!1,service_worker:null,openUrl:""},We=fe()(navigator.userAgent);const je=fe()(navigator.userAgent),$e=(e,t)=>{};function He(e,t=$e){switch(e){case"granted":t(1,"Notification available");break;case"denied":t(2,"Notification Permission has been disabled");break;default:t(3,"Notification Permission has not been confirmed yet!")}}function Ve(){return"safari"in window&&"pushNotification"in window.safari}function Ge(e=$e){if("undefined"==typeof Notification&&!Ve())return void e(0,"Browser does not support Notification API");He(Ve()?M().data.permission:Notification.permission,e)}function Ke(e){return!(!e||1!==e&&3!==e)}const qe={display:e=>{},click:e=>{}};function Je(e){"click"===e.actionType?qe.click(e.data):"display"===e.actionType&&qe.display(e.data)}function Xe(e,t,n={}){var i;"Notification"in window&&"granted"===Notification.permission&&(null===(i=navigator.serviceWorker)||void 0===i||i.getRegistration().then((function(i){if(null==i?void 0:i.showNotification)null==i||i.showNotification(e,t),qe.display(t.data),n&&n.msg_id&&de([{type:"msg_status",msg_id:n.msg_id,result:3018}],"MTPush");else{const i=new Notification(e,t);qe.display(t.data),n&&n.msg_id&&de([{type:"msg_status",msg_id:n.msg_id,result:3018}],"MTPush"),i.addEventListener("click",(()=>{qe.click(t.data),n&&n.msg_id&&de([{type:"msg_status",msg_id:n.msg_id,result:3002}],"MTPush");const e=n.url||(null==n?void 0:n.engagelab_url)||Fe.openUrl||window.location.origin||"";e&&window.open(e)}))}})))}window.MTpushInterfaceMsgCallback=qe,window.addEventListener("unload",(()=>{if(ue("active_launch")>0){const e=de([{type:"active_terminate",duration:ue("active_launch")}],"",!0);e&&g(9999,e)}}));let Qe=()=>{};function Ze(e,t){"function"==typeof Qe&&Qe({data:e,type:t})}let Ye=0;!function e(){setTimeout((()=>{Ye<20&&(Ye++,navigator.serviceWorker&&(Ye=100,navigator.serviceWorker.addEventListener("message",(e=>{var t,n,i,o;((null===(t=e.data.data)||void 0===t?void 0:t.engagelab_uid)||(null===(n=e.data.data)||void 0===n?void 0:n.mtpush_uid))===(null===(i=Fe.data)||void 0===i?void 0:i.uid)&&(e.data.actionType?Je(e.data):(Ze(e.data,1),Ke(null===(o=e.data.data)||void 0===o?void 0:o.ntf_or_msg)&&Je(Object.assign(Object.assign({},e.data),{actionType:"display"}))))}))),e())}),1e3)}(),oe.onMsgReceive((e=>{if(Ze(e,0),e.messages&&e.messages.length>0){7===e.messages[0].ntf_or_msg&&(e=>{e.forEach((e=>{me(e,!0)}))})(e.messages);const t=[];
1e.messages.forEach((e=>{t.push({type:"msg_status",msg_id:e.msg_id,result:3001}),Ke(e.ntf_or_msg)&&Xe(e.title,function(e){var t,n,i,o,s;const r={engagelab_appkey:null===(t=Fe.userOption)||void 0===t?void 0:t.appkey,engagelab_passwd:null===(n=Fe.data)||void 0===n?void 0:n.passwd,engagelab_uid:null===(i=Fe.data)||void 0===i?void 0:i.uid,engagelab_mesg_type:"MTPush",engagelab_m_str:"Exact",engagelab_a_str:"Navigate"},a=Object.assign({},e),c=["content","extras","msg_id","ntf_or_msg","st_web_buttons","strategy"];if(void 0!==e.content){if(a.body=e.content,a.tag=e.msg_id,(null==e?void 0:e.strategy)&&(r.engagelab_m_str=null===(o=e.strategy)||void 0===o?void 0:o.matching,r.engagelab_a_str=null===(s=e.strategy)||void 0===s?void 0:s.action),a.data=Object.assign(Object.assign({engagelab_ntf_or_msg:e.ntf_or_msg},r),{type:e.type,title:e.title,content:e.content,msg_id:e.msg_id,target_event:e.target_event}),e.url&&(a.data.engagelab_url=e.url),e.st_web_buttons){const t={},n=[];e.st_web_buttons.forEach((e=>{t[e.id]=e.url;const i={action:e.id,title:e.text};e.icon&&(i.icon=e.icon),n.push(i)})),a.actions=n,a.data.engagelab_action_urls=t}c.forEach((e=>{delete a[e]}))}return a}(Object.assign(Object.assign({},e),{type:0})),e)})),de(t,"MTPush")}}));const et={customClickReport(e,t="MTPush"){de([{type:"msg_status",msg_id:e,result:3028}],t="W3Push"!==t?"MTPush":t)},init:function(e){function t(t){!function(){var e,t;const n=window.location.pathname,i=null!==(t=null===(e=Fe.userOption)||void 0===e?void 0:e.regidSearchPath)&&void 0!==t?t:"/engagelab/regid";(n===i||n.endsWith(i)||window.location.href.endsWith(i))&&(we||(we=ye()),null==we||we.showModal())}(),I(t.uid.toString(),t.passwd),Fe.data=t;const n=(new Date).getTimezoneOffset()/-60|0;de([{type:"oversea_info",time_zone:n>0?"+"+n:n.toString(),lang:Fe.lan,contry:"",os:We.os.name,os_version:We.os.version,web_channel:We.browser.name,web_channel_version:We.browser.version}]),de([{type:"active_launch"}]),e.canGetInfo&&e.canGetInfo(t),"t"!==e.is_temporary&&function(e,t){ze(t.webPushcallback,{VAPIDPublicKey:e.vapid_pubkey,swUrl:t.swUrl},t)}(t,e)}function n(){C.post("https://global-websis.engagelab.com/v1/get-webaddr",{appkey:e.appkey}).then((t=>{var n;t.msg&&t.code&&(null===(n=e.fail)||void 0===n||n.call(e,{code:1006,message:"failed to get baseUrl and reportUrl",content:t.msg})),t.webgate_addr&&t.webgate_addr.length>0?i({baseUrl:t.webgate_addr[0],reportUrl:t.report_addr},!0):R()})).catch((t=>{var n;null===(n=e.fail)||void 0===n||n.call(e,{code:1006,message:"failed to get baseUrl and reportUrl",content:t.message})}))}function i(i,o=!1){D(i,o);const s=P().baseUrl;Fe.userOption=e,e.openUrl&&(Fe.openUrl=e.openUrl);const r=e.is_temporary||"n";(function(e,t,n,i="n"){return C.get(e,{user_str:t,appkey:n,is_temporary:i})})(P().auth,e.user_str,e.appkey,r).then((n=>{const i=s.split("//");let o="https:"===i[0]?"wss://":"ws://";o+=i[1],Fe.service_worker=null==n?void 0:n.service_worker,oe.init({webSocketUrl:e.webSocketUrl||o,auth:Object.assign(Object.assign({},n),{is_temporary:r}),success:e.success||Le,fail:e.fail||Le,getInitInfo(n){var i,o,s,r,a;e.maOpen&&function(e,t,n,i,o,s,r){var a;const c="https://websdk-res.engagelab.com/lib/ma-web.min.js";if(!document.getElementById(c)){const e=document.createElement("script");e.async=!0,e.src=c,e.id=c;const t=document.getElementsByTagName("script")[0];null===(a=t.parentNode)||void 0===a||a.insertBefore(e,t)}window.MAInterfaceReady=()=>{window.MAInterface.init({appKey:e,rid:t,debugMode:n,channel:i,appName:o,userIdentity:s,completion:r})}}(e.appkey,n.regid,null!==(i=e.debugMode)&&void 0!==i&&i,null!==(o=e.maChannel)&&void 0!==o?o:"",null!==(s=e.appName)&&void 0!==s?s:"",null!==(r=e.userIdentity)&&void 0!==r?r:{},null!==(a=e.maCompletion)&&void 0!==a?a:()=>{}),Fe.unSubscribe||(!function(){const e=localStorage.getItem("mt_webpush_message_catch");if(e)try{const t=JSON.parse(e);Array.isArray(t)&&t.length>0&&7==t[0].ntf_or_msg&&t[0].msg_id&&me(t[0])}catch(e){}}(),t(n))}})}),(t=>{var i;t.text&&"function"==typeof t.text?t.text().then((t=>{var i;const o=JSON.parse(t);let s=1007,r="authentication failed",a=o.message;7017===o.code&&(s=1008,r="region restricted",a=o.message),null===(i=e.fail)||void 0===i||i.call(e,{code:s,message:r,content:a}),400===o.code&&"APPKEY_NOT_FOUND"===o.message&&(R(),n())})):null===(i=e.fail)||void 0===i||i.call(e,{code:1007,message:"authentication failed",content:t.message})}))}e.userLang&&(Fe.lan=e.userLang),function(e){try{const t={};Ce.forEach((n=>{n in e&&void 0!==e[n]&&(t[n]=e[n])})),window.localStorage.setItem(Ee,JSON.stringify(t))}catch(e){}}(e),e.maOpen&&(e=>{var t,n;const i=null!==(n=null!=e?e:null===(t=Fe.userOption)||void 0===t?void 0:t.appkey)&&void 0!==n?n:"";if(!i)return Promise.resolve();const o=Math.floor((Date.now()-432e6)/1e3);Oe(i).then((e=>{const t=e.filter((e=>e.clickTime>=o));return Re(t,i)})).catch((e=>{}))})(e.appkey),1===Ue().mtPush.code&&Fe.data?t(Fe.data):e.report_url&&e.baseUrl?i({baseUrl:e.baseUrl,report
1Url:e.report_url},!0):function(e,t="userInfoData"){O((n=>{try{const i=n.transaction([N],"readonly");i.objectStore(N).index("name").get(t).onsuccess=function(t){t.target.result?e(t.target.result):e({})}}catch(t){R(),e({})}}))}((e=>{const t=JSON.parse(e.data||"{}");t.reportUrl?i(t):n()}))},getPushAuthority:Ue,getRegistrationID:oe.getRegistrationID,getWebPermission:()=>Notification.permission,mtPush:oe,onMsgReceive:e=>{Qe=e},webReport:e=>{const t=de([{type:"msg_status",msg_id:e.msg_id,result:e.code}],"",!0);t&&g(9999,t)},webPush:{displayNotification:Xe,permission:Ge,init:ze},setTagsAlias(e){function t(e,t){if(e)throw new Error(t)}if(Fe.userOption){const n=Fe.userOption;return t(!e.tags,"Missing tags attribute"),t(!e.alias,"Missing alias attribute"),t(!!(e.alias&&e.alias.length>40),"Alias can have up to 40 characters"),t(e.tags.length>1e3,"Set up to 1000 tags at a time!"),e.tags.forEach((e=>{t(e.length>40,"Tag can have up to 40 characters!")})),T.post(P().tagalias,Object.assign({temporary:"t"===n.is_temporary,appkey:n.appkey},e))}}
1,unSubscribe:()=>(Fe.unSubscribe=!0,Me.webPush.code=e.UN_SUBSCRIBED,Me.webPush.msg="Subscription has been canceled",T.post(P().unsubscribe)),promptPushCategories(){Ge(((e,t)=>{var n;1===e&&T.post(P().option,{appkey:null===(n=Fe.userOption)||void 0===n?void 0:n.appkey}).then((e=>{const t=e.subscribe_config||{};if(2===e.subscribe_type&&t.html){pe({option:t,reqPer:()=>{},api:P,dataTool:T,userInfoData:Fe,html:t.html,update:!0,css:t.css})}}))}))},onMsgDisplay(e){qe.display=e},onMsgClick(e){qe.click=e},listenTargetEvent:e=>{const t=(new Date).getTime()/1e3|0;(e=>{var t,n;const i=null!==(n=null===(t=Fe.userOption)||void 0===t?void 0:t.appkey)&&void 0!==n?n:"";return Oe(i).then((t=>{const n=Math.floor((Date.now()-432e6)/1e3),o=t.filter((t=>{const i=t.clickTime>=n,o=!!Array.isArray(t.eventList)&&t.eventList.includes(e);return i&&o}));return Pe(JSON.parse(JSON.stringify(o)),i),o})).catch((e=>[]))})(e).then((e=>{var n,i,o;const s={engagelab_appkey:null===(n=Fe.userOption)||void 0===n?void 0:n.appkey,engagelab_passwd:null===(i=Fe.data)||void 0===i?void 0:i.passwd,engagelab_uid:null===(o=Fe.data)||void 0===o?void 0:o.uid},r=e.reduce(((e,t)=>{var n;const i=null!==(n=t.channel)&&void 0!==n?n:Ie.W3PUSH;return e[i]||(e[i]=[]),e[i].push(t),e}),{});Object.entries(r).forEach((([e,n])=>{if(!n.length)return;g(9998,{data:n.map((e=>({type:"msg_status",msg_id:e.msgId,result:7===e.type?10135e3:3200,target_event_time:t,target_event:e.eventList}))),authorizationData:s,channel:e})}))}))},storeClickEventData:Ae},tt={},nt=["webpush_safari_url","msg_id","engagelab_uid","engagelab_appkey","engagelab_passwd","mtpush_uid","mtpush_appkey","mtpush_passwd","engagelab_target_event"];let it=0;if(location.search.slice(1).split("&").forEach((e=>{const t=e.split("=");nt.forEach((e=>{2===t.length&&e===t[0]&&(it+=1,tt[e]="engagelab_target_event"===e?function(e){if(!e)return[];try{let t=decodeURIComponent(e);t=t.replace(/\\"/g,'"'),(t.startsWith("'")&&t.endsWith("'")||t.startsWith('"')&&t.endsWith('"'))&&(t=t.slice(1,-1));const n=JSON.parse(t);return Array.isArray(n)?n:[]}catch(e){return[]}}(t[1]):t[1])}))})),tt.msg_id){Je({data:Object.assign({},tt),actionType:"display"}),Je({data:Object.assign({},tt),actionType:"click"});const e=function(){try{const e=window.localStorage.getItem(Ee);return e?JSON.parse(e):null}catch(e){return null}}();(null==e?void 0:e.maOpen)&&Ae({msgId:tt.msg_id,eventList:tt.engagelab_target_event||[],clickTime:(new Date).getTime()/1e3|0,type:1,channel:"W3PUSH"},tt.engagelab_appkey),g(6666,Object.assign({},tt)),tt.webpush_safari_url?window.location.href=tt.webpush_safari_url:(null==e?void 0:e.openUrl)&&(window.location.href=e.openUrl)}window&&window.MTpushInterfaceReady&&setTimeout((()=>{window.MTpushInterfaceReady()}),3);const ot=et})(),i=i.default})()));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.