25 lines
253 KiB
JavaScript
25 lines
253 KiB
JavaScript
|
!function(){"use strict";function N(e,t){var n=arguments;if(null==e)throw new TypeError("Cannot convert first argument to object");for(var r=Object(e),o=1;o<arguments.length;o++){var i=n[o];if(null!=i)for(var a=Object.keys(Object(i)),s=0,u=a.length;s<u;s++){var c=a[s],l=Object.getOwnPropertyDescriptor(i,c);void 0!==l&&l.enumerable&&(r[c]=i[c])}}return r}function P(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})}({assign:N,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:N})}}).polyfill();var R=setTimeout;function U(e){return Boolean(e&&void 0!==e.length)}function H(){}function i(e){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],q(e,this)}function F(n,r){for(;3===n._state;)n=n._value;0===n._state?n._deferreds.push(r):(n._handled=!0,i._immediateFn(function(){var e,t=1===n._state?r.onFulfilled:r.onRejected;if(null===t)(1===n._state?z:V)(r.promise,n._value);else{try{e=t(n._value)}catch(e){return void V(r.promise,e)}z(r.promise,e)}}))}function z(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof i)return t._state=3,t._value=e,void W(t);if("function"==typeof n)return void q((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,W(t)}catch(e){V(t,e)}var r,o}function V(e,t){e._state=2,e._value=t,W(e)}function W(e){2===e._state&&0===e._deferreds.length&&i._immediateFn(function(){e._handled||i._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)F(e,e._deferreds[t]);e._deferreds=null}function G(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function q(e,t){var n=!1;try{e(function(e){n||(n=!0,z(t,e))},function(e){n||(n=!0,V(t,e))})}catch(e){if(n)return;n=!0,V(t,e)}}i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){var n=new this.constructor(H);return F(this,new G(e,t,n)),n},i.prototype.finally=P,i.all=function(t){return new i(function(o,i){if(!U(t))return i(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return o([]);var s=a.length;for(var e=0;e<a.length;e++)!function t(n,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if("function"==typeof r)return void r.call(e,function(e){t(n,e)},i)}a[n]=e,0==--s&&o(a)}catch(e){i(e)}}(e,a[e])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(n){return new i(function(e,t){t(n)})},i.race=function(o){return new i(function(e,t){if(!U(o))return t(new TypeError("Promise.race accepts an array"));for(var n=0,r=o.length;n<r;n++)i.resolve(o[n]).then(e,t)})},i._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){R(e,0)},i._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var e=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"Promise"in e?e.Promise.prototype.finally||(e.Promise.prototype.finally=P):e.Promise=i;var X=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var Y=function(u){return function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[u?a:++r];if(!1===t(o[s],s,o))break}return e}}();var Z=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function K(e,t){return e(t={exports:{}},t.exports),t.exp
|
||
|
/*!
|
||
|
Copyright (c) 2017 Jed Watson.
|
||
|
Licensed under the MIT License (MIT), see
|
||
|
http://jedwatson.github.io/classnames
|
||
|
*/var u;u={}.hasOwnProperty,e.exports?e.exports=s.default=s:window.classNames=s});function mn(){return!!_("AMO_LIVECHAT_UUID")}function yn(){return _("AMO_LIVECHAT_USE_NAME")}var bn=function(e){return void 0===e},_=function(e){return bn(window[e])?null:window[e]},wn=0,xn=1,Cn=3,Tn=-1,En="closed",An="opened-fully",Sn=["picture","video","document"],Mn="welcomeMessageTempId";var kn=function(e,t,n){"__proto__"==t&&hn?hn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var On=function(e,t){return e===t||e!=e&&t!=t},In=Object.prototype.hasOwnProperty;var Bn=function(e,t,n){var r=e[t];In.call(e,t)&&On(r,n)&&(void 0!==n||t in e)||kn(e,t,n)};var Ln=function(e,t,n,r){for(var o=!n,i=(n=n||{},-1),a=t.length;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),(o?kn:Bn)(n,s,u)}return n};var jn=function(e,t,n){if(!m(n))return!1;var r=typeof t;return!!("number"==r?s(n)&&de(t,n.length):"string"==r&&t in n)&&On(n[t],e)};var Dn,u=function(s){return gn(function(e,t){var n=-1,r=t.length,o=1<r?t[r-1]:void 0,i=2<r?t[2]:void 0,o=3<s.length&&"function"==typeof o?(r--,o):void 0;for(i&&jn(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&s(e,a,n,o)}return e})},Nn=Object.prototype.hasOwnProperty,f=u(function(e,t){if(be(t)||s(t))Ln(t,Ee(t),e);else for(var n in t)Nn.call(t,n)&&Bn(e,n,t[n])}),l=(Dn="AMO_LIVECHAT_IFRAME",{subscribeToBus:function(n){function e(e){try{var t=JSON.parse(e.data);t.origin===_(Dn)&&n(t)}catch(e){throw new Error(e)}}return window.addEventListener("message",e),function(){return window.removeEventListener("message",e)}},sendBusMessage:function(e){window.parent.postMessage(JSON.stringify(m(e)?f({},e,{origin:_(Dn)}):e),"*")}}),Pn=l.subscribeToBus,d=l.sendBusMessage;function Rn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Un(e,r){var o=!0;return Ae(e,function(e,t,n){return o=!!r(e,t,n)}),o}var Hn=function(e,t){for(var n=e.length;n--;)if(On(e[n][0],t))return n;return-1},Fn=Array.prototype.splice;function zn(e){var t=this.__data__;return!((e=Hn(t,e))<0)&&(e==t.length-1?t.pop():Fn.call(t,e,1),--this.size,!0)}function Vn(e){var t=this.__data__;return(e=Hn(t,e))<0?void 0:t[e][1]}function Wn(e){return-1<Hn(this.__data__,e)}function Gn(e,t){var n=this.__data__,r=Hn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qn.prototype.clear=function(){this.__data__=[],this.size=0},qn.prototype.delete=zn,qn.prototype.get=Vn,qn.prototype.has=Wn,qn.prototype.set=Gn;var Xn=qn;function Yn(){this.__data__=new Xn,this.size=0}function Zn(e){var t=this.__data__,e=t.delete(e);return this.size=t.size,e}function Kn(e){return this.__data__.get(e)}function $n(e){return this.__data__.has(e)}var Qn=dn(o,"Map"),Jn=dn(Object,"create");function er(e){return e=this.has(e)&&delete this.__data__[e],this.size-=e?1:0,e}var tr=Object.prototype.hasOwnProperty;function nr(e){var t,n=this.__data__;return Jn?"__lodash_hash_undefined__"===(t=n[e])?void 0:t:tr.call(n,e)?n[e]:void 0}var rr=Object.prototype.hasOwnProperty;function or(e){var t=this.__data__;return Jn?void 0!==t[e]:rr.call(t,e)}function ir(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Jn&&void 0===t?"__lodash_hash_undefined__":t,this}function ar(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ar.prototype.clear=function(){this.__data__=Jn?Jn(null):{},this.size=0},ar.prototype.delete=er,ar.prototype.get=nr,ar.prototype.has=or,ar.prototype.set=ir;var sr=ar;var ur=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var cr=function(e,t){return e=e.__data__,ur(t)?e["string"==typeof t?"string":"hash"]:e.map};function lr(e){return e=cr(this,e).delete(e),this.size-=e?1:0,e}function fr(e){return cr(this,e).get(e)}function dr(e){return cr(this,e).has(e)}function hr(e,t){var n=cr(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function pr(e){var t=-1,n=null==e?0:e.length;for(this.clea
|
||
|
/*
|
||
|
* Fingerprintjs2 2.1.0 - Modern & flexible browser fingerprint library v2
|
||
|
* https://github.com/Valve/fingerprintjs2
|
||
|
* Copyright (c) 2015 Valentin Vasilyev (valentin.vasilyev@outlook.com)
|
||
|
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
|
||
|
*
|
||
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||
|
* ARE DISCLAIMED. IN NO EVENT SHALL VALENTIN VASILYEV BE LIABLE FOR ANY
|
||
|
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||
|
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||
|
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
|
*/
|
||
|
var t,n;t=M,n=function(){function f(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}function d(e,t){return 32===(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:[e[1]<<(t-=32)|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t]}function h(e,t){return 0===(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}function p(e){return e=g(e,[0,e[0]>>>1]),e=_(e,[4283543511,3981806797]),e=g(e,[0,e[0]>>>1]),e=_(e,[3301882366,444984403]),e=g(e,[0,e[0]>>>1])}function s(e,t){for(var n=(e=e||"").length%16,r=e.length-n,o=[0,t=t||0],i=[0,t],a=[0,0],s=[0,0],u=[2277735313,289559509],c=[1291169091,658871167],l=0;l<r;l+=16)a=[255&e.charCodeAt(l+4)|(255&e.charCodeAt(l+5))<<8|(255&e.charCodeAt(l+6))<<16|(255&e.charCodeAt(l+7))<<24,255&e.charCodeAt(l)|(255&e.charCodeAt(l+1))<<8|(255&e.charCodeAt(l+2))<<16|(255&e.charCodeAt(l+3))<<24],s=[255&e.charCodeAt(l+12)|(255&e.charCodeAt(l+13))<<8|(255&e.charCodeAt(l+14))<<16|(255&e.charCodeAt(l+15))<<24,255&e.charCodeAt(l+8)|(255&e.charCodeAt(l+9))<<8|(255&e.charCodeAt(l+10))<<16|(255&e.charCodeAt(l+11))<<24],a=_(a,u),a=d(a,31),a=_(a,c),o=g(o,a),o=d(o,27),o=f(o,i),o=f(_(o,[0,5]),[0,1390208809]),s=_(s,c),s=d(s,33),s=_(s,u),i=g(i,s),i=d(i,31),i=f(i,o),i=f(_(i,[0,5]),[0,944331445]);switch(a=[0,0],s=[0,0],n){case 15:s=g(s,h([0,e.charCodeAt(l+14)],48));case 14:s=g(s,h([0,e.charCodeAt(l+13)],40));case 13:s=g(s,h([0,e.charCodeAt(l+12)],32));case 12:s=g(s,h([0,e.charCodeAt(l+11)],24));case 11:s=g(s,h([0,e.charCodeAt(l+10)],16));case 10:s=g(s,h([0,e.charCodeAt(l+9)],8));case 9:s=g(s,[0,e.charCodeAt(l+8)]),s=_(s,c),s=d(s,33),s=_(s,u),i=g(i,s);case 8:a=g(a,h([0,e.charCodeAt(l+7)],56));case 7:a=g(a,h([0,e.charCodeAt(l+6)],48));case 6:a=g(a,h([0,e.charCodeAt(l+5)],40));case 5:a=g(a,h([0,e.charCodeAt(l+4)],32));case 4:a=g(a,h([0,e.charCodeAt(l+3)],24));case 3:a=g(a,h([0,e.charCodeAt(l+2)],16));case 2:a=g(a,h([0,e.charCodeAt(l+1)],8));case 1:a=g(a,[0,e.charCodeAt(l)]),a=_(a,u),a=d(a,31),a=_(a,c),o=g(o,a)}return o=g(o,[0,e.length]),i=g(i,[0,e.length]),o=f(o,i),i=f(i,o),o=p(o),i=p(i),o=f(o,i),i=f(i,o),("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(i[0]>>>0).toString(16)).slice(-8)+("00000000"+(i[1]>>>0).toString(16)).slice(-8)}function n(){var e;if(a())return e=m(),!!window.WebGLRenderingContext&&!!e}function r(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")}var _=function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]},g=function(e,t){return[e[0]^t[0],e[1]^t[1]]},e={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},extraComponents:[],excludes:{enumerateDevices:!0,pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"},v=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,r=e.length;n<r;n++)t(e[n],n,e);else for(var o in e)e.hasOwnProperty(o)&&t(e[o],o,e)},u=function(e,r){var o=[];return null==e?o:Array.prototype.map&&e.map===Array.prototype.map?e.map(r):(v(e,function(e,t,n){o.push(r(e,t,n))}),o)},o=function(e){if(null==navigator.plugins)return e.NOT_AVAILABLE;for(va
|