function saveScore(a){var b=String(a);try{"undefined"!=typeof Storage&&("string"==typeof window.localStorage.setItem?window.localStorage[GC.scoreVarName]=b:window.localStorage.setItem(GC.scoreVarName,b))}catch(c){}return a}function getScore(){var a=0;try{"undefined"!=typeof Storage&&(a=parseInt(window.localStorage.getItem(GC.scoreVarName),10),isNaN(a)&&(a=0))}catch(b){a=0}return a}function compatibilityTry(){try{Math.sign(1)}catch(a){Math.sign=Math.sign||function(a){return a=+a,0===a||isNaN(a)?a:a>0?1:-1}}Object.keys||(Object.keys=function(){"use strict";var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=c.length;return function(e){if("object"!=typeof e&&("function"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var f,g,h=[];for(f in e)a.call(e,f)&&h.push(f);if(b)for(g=0;g0&&(document.body.scrollTop=0)},!0)}function startGame(){var a=game.engine.state.getCurrentScene();a.startGame()}function pauseUnpause(){var a=game.engine.state.getCurrentScene();a.handleKeyPress({charCode:112})}function sponsorLinkOpenLogo(){sponsorLinkOpen("logo")}function sponsorLinkOpenMoreGames(){sponsorLinkOpen("more_games")}function sponsorLinkOpenSplash(){splashActive&&sponsorLinkOpen("splashscreen")}function sponsorLinkOpen(a){void 0===a&&(a="logo");var b=document.referrer;top!==self?(b=b.indexOf("://")>-1?b.split("/")[2]:b.split("/")[0],b=b.split(":")[0]):b=window.location.host,(() => {})()}!function(){function a(a,b,c){return a.call.apply(a.bind,arguments)}function b(a,b,c){if(!a)throw Error();if(2parseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return da}function J(a,b,c){for(var d in ca)if(ca.hasOwnProperty(d)&&b===a.f[ca[d]]&&c===a.f[ca[d]])return!0;return!1}function K(a){var b,c=a.g.a.offsetWidth,d=a.h.a.offsetWidth;(b=c===a.f.serif&&d===a.f["sans-serif"])||(b=I()&&J(a,c,d)),b?aa()-a.A>=a.w?I()&&J(a,c,d)&&(null===a.u||a.u.hasOwnProperty(a.a.c))?M(a,a.v):M(a,a.B):L(a):M(a,a.v)}function L(a){setTimeout(c(function(){K(this)},a),50)}function M(a,b){setTimeout(c(function(){g(this.g.a),g(this.h.a),g(this.j.a),g(this.m.a),b(this.a)},a),0)}function N(a,b,c){this.c=a,this.a=b,this.f=0,this.m=this.j=!1,this.s=c}function O(a){0==--a.f&&a.j&&(a.m?(a=a.a,a.g&&h(a.f,[a.a.c("wf","active")],[a.a.c("wf","loading"),a.a.c("wf","inactive")]),A(a,"active")):z(a.a))}function P(a){this.j=a,this.a=new B,this.h=0,this.f=this.g=!0}function Q(a,b,d,e,f){var g=0==--a.h;(a.f||a.g)&&setTimeout(function(){var a=f||null,i=e||null||{};if(0===d.length&&g)z(b.a);else{b.f+=d.length,g&&(b.j=g);var j,k=[];for(j=0;j=b.f?e():a.fonts.load(s(b.a),b.h).then(function(a){1<=a.length?d():setTimeout(f,25)},function(){e()})}f()}),e=null,f=new Promise(function(a,c){e=setTimeout(c,b.f)});Promise.race([f,d]).then(function(){e&&(clearTimeout(e),e=null),b.g(b.a)},function(){b.j(b.a)})};var ca={D:"serif",C:"sans-serif"},da=null;H.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=aa(),K(this)};var ea=null;N.prototype.g=function(a){var b=this.a;b.g&&h(b.f,[b.a.c("wf",a.c,u(a).toString(),"active")],[b.a.c("wf",a.c,u(a).toString(),"loading"),b.a.c("wf",a.c,u(a).toString(),"inactive")]),A(b,"fontactive",a),this.m=!0,O(this)},N.prototype.h=function(a){var b=this.a;if(b.g){var c=i(b.f,b.a.c("wf",a.c,u(a).toString(),"active")),d=[],e=[b.a.c("wf",a.c,u(a).toString(),"loading")];c||d.push(b.a.c("wf",a.c,u(a).toString(),"inactive")),h(b.f,d,e)}A(b,"fontinactive",a),O(this)},P.prototype.load=function(a){this.c=new d(this.j,a.context||this.j),this.g=!1!==a.events,this.f=!1!==a.classes,R(this,new x(this.c,a),a)},S.prototype.load=function(a){function b(){if(f["__mti_fntLst"+d]){var c,e=f["__mti_fntLst"+d](),g=[];if(e)for(var h=0;he;e++)b[d+e>>>2]|=(c[e>>>2]>>>24-8*(e%4)&255)<<24-8*((d+e)%4);else if(65535e;e+=4)b[d+e>>>2]=c[e>>>2];else b.push.apply(b,c);return this.sigBytes+=a,this},clamp:function(){var b=this.words,c=this.sigBytes;b[c>>>2]&=4294967295<<32-8*(c%4),b.length=a.ceil(c/4)},clone:function(){var a=f.clone.call(this);return a.words=this.words.slice(0),a},random:function(b){for(var c=[],d=0;b>d;d+=4)c.push(4294967296*a.random()|0);return new g.init(c,b)}}),h=c.enc={},i=h.Hex={stringify:function(a){var b=a.words;a=a.sigBytes;for(var c=[],d=0;a>d;d++){var e=b[d>>>2]>>>24-8*(d%4)&255;c.push((e>>>4).toString(16)),c.push((15&e).toString(16))}return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;b>d;d+=2)c[d>>>3]|=parseInt(a.substr(d,2),16)<<24-4*(d%8);return new g.init(c,b/2)}},j=h.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var c=[],d=0;a>d;d++)c.push(String.fromCharCode(b[d>>>2]>>>24-8*(d%4)&255));return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;b>d;d++)c[d>>>2]|=(255&a.charCodeAt(d))<<24-8*(d%4);return new g.init(c,b)}},k=h.Utf8={stringify:function(a){try{return decodeURIComponent(escape(j.stringify(a)))}catch(b){throw Error("Malformed UTF-8 data")}},parse:function(a){return j.parse(unescape(encodeURIComponent(a)))}},l=d.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=k.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(b){var c=this._data,d=c.words,e=c.sigBytes,f=this.blockSize,h=e/(4*f),h=b?a.ceil(h):a.max((0|h)-this._minBufferSize,0);if(b=h*f,e=a.min(4*b,e),b){for(var i=0;b>i;i+=f)this._doProcessBlock(d,i);i=d.splice(0,b),c.sigBytes-=e}return new g.init(i,e)},clone:function(){var a=f.clone.call(this);return a._data=this._data.clone(),a},_minBufferSize:0});d.Hasher=l.extend({cfg:f.extend(),init:function(a){this.cfg=this.cfg.extend(a),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(a){return this._append(a),this._process(),this},finalize:function(a){return a&&this._append(a),this._doFinalize()},blockSize:16,_createHelper:function(a){return function(b,c){return new a.init(c).finalize(b)}},_createHmacHelper:function(a){return function(b,c){return new m.HMAC.init(a,c).finalize(b)}}});var m=c.algo={};return c}(Math);!function(a){for(var b=CryptoJS,c=b.lib,d=c.WordArray,e=c.Hasher,c=b.algo,f=[],g=[],h=function(a){return 4294967296*(a-(0|a))|0},i=2,j=0;64>j;){var k;a:{k=i;for(var l=a.sqrt(k),m=2;l>=m;m++)if(!(k%m)){k=!1;break a}k=!0}k&&(8>j&&(f[j]=h(a.pow(i,.5))),g[j]=h(a.pow(i,1/3)),j++),i++}var n=[],c=c.SHA256=e.extend({_doReset:function(){this._hash=new d.init(f.slice(0))},_doProcessBlock:function(a,b){for(var c=this._hash.words,d=c[0],e=c[1],f=c[2],h=c[3],i=c[4],j=c[5],k=c[6],l=c[7],m=0;64>m;m++){if(16>m)n[m]=0|a[b+m];else{var o=n[m-15],p=n[m-2];n[m]=((o<<25|o>>>7)^(o<<14|o>>>18)^o>>>3)+n[m-7]+((p<<15|p>>>17)^(p<<13|p>>>19)^p>>>10)+n[m-16]}o=l+((i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25))+(i&j^~i&k)+g[m]+n[m],p=((d<<30|d>>>2)^(d<<19|d>>>13)^(d<<10|d>>>22))+(d&e^d&f^e&f),l=k,k=j,j=i,i=h+o|0,h=f,f=e,e=d,d=o+p|0}c[0]=c[0]+d|0,c[1]=c[1]+e|0,c[2]=c[2]+f|0,c[3]=c[3]+h|0,c[4]=c[4]+i|0,c[5]=c[5]+j|0,c[6]=c[6]+k|0,c[7]=c[7]+l|0},_doFinalize:function(){var b=this._data,c=b.words,d=8*this._nDataBytes,e=8*b.sigBytes;return c[e>>>5]|=128<<24-e%32,c[(e+64>>>9<<4)+14]=a.floor(d/4294967296),c[(e+64>>>9<<4)+15]=d,b.sigBytes=4*c.length,this._process(),this._hash},clone:function(){var a=e.clone.call(this);return a._hash=this._hash.clone(),a}});b.SHA256=e._createHelper(c),b.HmacSHA256=e._createHmacHelper(c)}(Math),function(){var a=CryptoJS,b=a.enc.Utf8;a.algo.HMAC=a.lib.Base.extend({init:function(a,c){a=this._hasher=new a.init,"string"==typeof c&&(c=b.parse(c));var d=a.blockSize,e=4*d;c.sigBytes>e&&(c=a.finalize(c)),c.clamp();for(var f=this._oKey=c.clone(),g=this._iKey=c.clone(),h=f.words,i=g.words,j=0;d>j;j++)h[j]^=1549556828,i[j]^=909522486;f.sigBytes=g.sigBytes=e,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var b=this._hasher;return a=b.finalize(a),b.reset(),b.finalize(this._oKey.clone().concat(a))}})}(),function(){var a=CryptoJS,b=a.lib.WordArray;a.enc.Base64={stringify:function(a){var b=a.words,c=a.sigBytes,d=this._map;a.clamp(),a=[];for(var e=0;c>e;e+=3)for(var f=(b[e>>>2]>>>24-8*(e%4)&255)<<16|(b[e+1>>>2]>>>24-8*((e+1)%4)&255)<<8|b[e+2>>>2]>>>24-8*((e+2)%4)&255,g=0;4>g&&c>e+.75*g;g++)a.push(d.charAt(f>>>6*(3-g)&63));if(b=d.charAt(64))for(;a.length%4;)a.push(b);return a.join("")},parse:function(a){var c=a.length,d=this._map,e=d.charAt(64);e&&(e=a.indexOf(e),-1!=e&&(c=e));for(var e=[],f=0,g=0;c>g;g++)if(g%4){var h=d.indexOf(a.charAt(g-1))<<2*(g%4),i=d.indexOf(a.charAt(g))>>>6-2*(g%4);e[f>>>2]|=(h|i)<<24-8*(f%4),f++}return b.create(e,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}();var GA;!function(a){!function(a){a[a.ios=0]="ios",a[a.android=1]="android",a[a.windows=2]="windows",a[a.windows_phone=3]="windows_phone",a[a.blackberry=4]="blackberry",a[a.roku=5]="roku",a[a.tizen=6]="tizen",a[a.nacl=7]="nacl",a[a.mac_osx=8]="mac_osx",a[a.webplayer=9]="webplayer"}(a.Platform||(a.Platform={})),a.Platform,!function(a){a[a.male=0]="male",a[a.female=1]="female"}(a.Gender||(a.Gender={})),a.Gender}(GA||(GA={}));var GA;!function(a){var b;!function(a){var b=/^[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}$/,c=function(){function a(a,c,d,e,f,g){if(this.category=1,this.transaction_num=0,!a||null===a.match(b))throw new Error("Invalid event_id supplied for BusinessEvent");if(this.event_id=a,this.amount=c,!d||null===d.match(/^[A-Z]{3}$/))throw new Error("Invalid currency supplied for BusinessEvent");if(this.currency=d,this.transaction_num=e,f){if(f.length>32)throw new Error("A too long cart_type was supplied, should be max 32 characters");this.cart_type=f}void 0!==g&&(this.receipt_info=g)}return a}();a.Business=c}(b=a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){var b=/^[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}(:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}){0,4}$/,c=function(){function a(a,c){if(this.category=0,null===a.match(b))throw new Error("Invalid event_id supplied for DesignEvent");this.event_id=a,void 0!==c&&(this.value=c)}return a}();a.Design=c}(b=a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){!function(a){a[a.design=0]="design",a[a.business=1]="business",a[a.error=2]="error",a[a.user=3]="user",a[a.session_end=4]="session_end",a[a.progression=5]="progression",a[a.resource=6]="resource"}(a.Category||(a.Category={})),a.Category}(b=a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){!function(a){a[a.debug=0]="debug",a[a.info=1]="info",a[a.warning=2]="warning",a[a.error=3]="error",a[a.critical=4]="critical"}(a.ErrorSeverity||(a.ErrorSeverity={}));var b=a.ErrorSeverity,c=function(){function a(a,c){this.category=2,this.message="",this.severity=b[a],void 0!==c&&(this.message=c.substr(0,8192))}return a}();a.Exception=c}(b=a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){var b=function(){function a(){}return a}();a.InitResponse=b;var c=function(){function a(a){this.data=a}return a.prototype.toString=function(){return JSON.stringify(this.data)},a}();a.Init=c}(b=a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){var b=/^(Start|Fail|Complete):[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}(:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}){0,2}$/,c=function(){function a(a,c,d){if(this.category=5,null===a.match(b))throw new Error("Invalid event_id supplied for ProgressionEvent");this.event_id=a,void 0!==c&&(this.attempt_num=c),void 0!==d&&(this.score=d)}return a}();a.Progression=c}(b=a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){var b=/^(Sink|Source):[A-Za-z]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}/,c=function(){function a(a,c){if(this.category=6,null===a.match(b))throw new Error("Invalid event_id supplied for ResourceEvent");this.event_id=a,this.amount=c}return a}();a.Resource=c}(b=a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){var b=function(){function a(a){this.category=4,this.length=0,this.length=a}return a}();a.SessionEnd=b}(b=a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){var b=function(){function a(){this.category=3}return a}();a.User=b}(b=a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){function b(){return null===c.instance&&(c.instance=new c),c.instance}a.getInstance=b;var c=function(){function b(){this.sessionId=a.Utils.createUniqueId(),this.messageQueue=new a.Utils.MessageQueue,this.enabled=!1,this.initProcessed=!1,this.timeoutId=0,this.timeOffset=0}return b.prototype.init=function(c,d,e,f){var g=this;if(null===b.instance)throw new Error("No instance Available!");this.gameKey=c,this.secretKey=d,this.build=e,this.user=f,this.incrementSessionNum(f);var h=new a.Events.Init(a.Utils.getBaseAnnotations());return this.sendEvent(h.toString(),"init",function(a){g.initProcessed=!0,a.enabled===!0&&(g.enabled=!0,g.timeOffset=(Date.now()/1e3|0)-a.server_ts)}),this.scheduleSendData(b.SCHEDULE_TIME),window.addEventListener("beforeunload",function(){g.sendData()}),this},b.prototype.incrementSessionNum=function(b){var c=a.Utils.LocalStorage.getItem(b.user_id);c?a.Utils.LocalStorage.setItem(b.user_id,(parseInt(c)+1).toString()):(c="1",a.Utils.LocalStorage.setItem(b.user_id,c))},b.prototype.addEvent=function(c){if(null===b.instance)throw new Error("No instance Available!");var d=new a.Utils.Message(c,a.Utils.getDefaultAnnotations(this.user,this.sessionId,this.build,this.timeOffset));return this.messageQueue.push(d),this},b.prototype.sendData=function(){if(this.initProcessed===!1)return this.scheduleSendData(1e3),this;if(this.enabled===!1)return this;if(null===b.instance)throw new Error("No instance Available!");for(var a=[],c="";this.messageQueue.length>0;){var d=this.messageQueue.pop();a.push(d.data)}if(0===a.length)return this.scheduleSendData(b.SCHEDULE_TIME),this;try{c=JSON.stringify(a)}catch(e){}return this.sendEvent(c,"events"),this.scheduleSendData(b.SCHEDULE_TIME),this},b.prototype.scheduleSendData=function(a){var b=this;clearTimeout(this.timeoutId),this.timeoutId=setTimeout(function(){b.sendData()},a)},b.prototype.sendEvent=function(c,d,e){if(void 0===e&&(e=null),null===b.instance&&null===this.gameKey)throw new Error("No instance Available!");if(!(c.length<1)){var f=CryptoJS.HmacSHA256(c,this.secretKey),g=CryptoJS.enc.Base64.stringify(f),h=b.API_URL+this.gameKey+"/"+d;a.Utils.postRequest(h,c,g,function(a){if(a.success===!1&&window.console&&void 0,null!=e){var b="";try{b=JSON.parse(a.message)}catch(c){}e(b)}})}},b.SCHEDULE_TIME=15e3,b.SDK_VERSION="rest api v2",b.API_URL='',b.instance=null,b}();a.GameAnalytics=c}(GA||(GA={}));var GA;!function(a){var b=function(){function b(b,c,d,e){if(this.user_id="",b)this.user_id=b;else{var f=a.Utils.LocalStorage.getItem("user");this.user_id=f||a.Utils.createUniqueUserId()}c&&c.length>0&&(this.facebook_id=c,this.user_id=c),a.Utils.LocalStorage.setItem("user",this.user_id),1!==d&&0!==d||(this.gender=d),e&&e.toString().match(/^[0-9]{4}$/gi)&&(this.birth_year=e)}return b}();a.User=b}(GA||(GA={}));var GA;!function(a){var b;!function(b){function c(b,c,d,f){var g={sdk_version:a.GameAnalytics.SDK_VERSION,platform:a.Platform[2],os_version:a.Platform[2]+" 8",device:"unknown",v:2,user_id:b.user_id,client_ts:(Date.now()/1e3|0)+f,manufacturer:"unknown",session_id:c,session_num:e(b.user_id),build:d};b.facebook_id&&(g.facebook_id=b.facebook_id),0!==b.gender&&1!==b.gender||(g.gender=a.Gender[b.gender]),b.birth_year&&(g.birth_year=b.birth_year);var h=navigator.userAgent;return h.match(/iPad|iPod|iPhone/i)?(g.platform=a.Platform[0],g.device=h.match(/iPad|iPod|iPhone/i)[0],g.manufacturer="Apple",g.os_version=a.Platform[0]+" "+h.match(/OS (\b[0-9]+_[0-9]+(?:_[0-9]+)?\b)/)[1].replace(/_/gi,".")):h.match(/Android/i)?(g.platform=a.Platform[1],g.device=h.match(/Mobile/i)?"Phone":"Tablet",g.os_version=a.Platform[1]+" "+h.match(/Android (\d+(?:\.\d+)+);/)[1]):h.match(/Windows Phone/i)&&(g.platform=a.Platform[2],g.device="Windows Phone",g.os_version=a.Platform[2]+" "+h.match(/Phone (\d+(?:\.\d+)+);/)[1]),g}function d(){var b={sdk_version:a.GameAnalytics.SDK_VERSION,platform:"unknown",os_version:"unknown"},c=navigator.userAgent;return c.match(/iPad|iPod|iPhone/i)?(b.platform=a.Platform[0],b.os_version=a.Platform[0]+" "+c.match(/OS (\b[0-9]+_[0-9]+(?:_[0-9]+)?\b)/)[1].replace(/_/gi,".")):c.match(/Android/i)?(b.platform=a.Platform[1],b.os_version=a.Platform[1]+" "+c.match(/Android (\d+(?:\.\d+)+);/)[1]):c.match(/Windows Phone/i)&&(b.platform=a.Platform[2],b.os_version=a.Platform[2]+" "+c.match(/Phone (\d+(?:\.\d+)+);/)[1]),b}function e(a){var c=b.LocalStorage.getItem(a);return c?parseInt(c):1}b.getDefaultAnnotations=c,b.getBaseAnnotations=d}(b=a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){var b=function(){function a(){}return a.getItem=function(b){return a.Available?localStorage.getItem(a.CacheKey+b):void 0},a.setItem=function(b,c){a.Available&&localStorage.setItem(a.CacheKey+b,c)},a.Available=!1,a.CacheKey="GA:",a}();a.LocalStorage=b;try{"object"==typeof localStorage&&(localStorage.setItem("testingLocalStorage","yes"),localStorage.removeItem("testingLocalStorage"),b.Available=!0)}catch(c){}}(b=a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){var b;!function(b){var c=function(){function b(a,b){this.event=a,this.annotations=b}return Object.defineProperty(b.prototype,"data",{get:function(){for(var b in this.event)this.event.hasOwnProperty(b)&&("category"===b?this.annotations[b]=a.Events.Category[this.event[b]]:this.annotations[b]=this.event[b]);return this.annotations},enumerable:!0,configurable:!0}),b}();b.Message=c}(b=a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){var b=function(){function a(){this.queue=[],this.load()}return a.prototype.push=function(a){this.queue.push(a)},a.prototype.pop=function(){return this.queue.pop()},Object.defineProperty(a.prototype,"length",{get:function(){return this.queue.length},enumerable:!0,configurable:!0}),a.prototype.save=function(){},a.prototype.load=function(){},a}();a.MessageQueue=b}(b=a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){function b(a,b,c,d){var e;if(!window.XMLHttpRequest)return void d({success:!1,message:"Error: Unable to send request, XMLHttpRequest not supported"});e=new XMLHttpRequest,e.onreadystatechange=function(){4==e.readyState&&(200===e.status?d({success:!0,message:e.responseText}):e.status>0&&d({success:!1,message:"Error: There was a problem with the request: status "+e.status}))};try{e.open("POST",a,!0),e.setRequestHeader("Authorization",c),e.setRequestHeader("Content-Type","application/json"),e.send(b)}catch(f){d({success:!1,message:"Error: Unable to send request, CORS not allowed."})}}var c=function(){function a(){this.success=!1,this.message=""}return a}();a.Response=c,a.postRequest=b}(b=a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){var b;!function(a){function b(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0,c="x"==a?b:3&b|8;return c.toString(16)})}function c(){return b()}a.createUniqueId=b,a.createUniqueUserId=c}(b=a.Utils||(a.Utils={}))}(GA||(GA={})),!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=!!a&&"length"in a&&a.length,c=na.type(a);return"function"!==c&&!na.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a,b,c){if(na.isFunction(b))return na.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return na.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(xa.test(b))return na.filter(b,a,c);b=na.filter(b,a)}return na.grep(a,function(a){return na.inArray(a,b)>-1!==c})}function e(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}function f(a){var b={};return na.each(a.match(Da)||[],function(a,c){b[c]=!0}),b}function g(){da.addEventListener?(da.removeEventListener("DOMContentLoaded",h),a.removeEventListener("load",h)):(da.detachEvent("onreadystatechange",h), a.detachEvent("onload",h))}function h(){(da.addEventListener||"load"===a.event.type||"complete"===da.readyState)&&(g(),na.ready())}function i(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(Ia,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c||"false"!==c&&("null"===c?null:+c+""===c?+c:Ha.test(c)?na.parseJSON(c):c)}catch(e){}na.data(a,b,c)}else c=void 0}return c}function j(a){var b;for(b in a)if(("data"!==b||!na.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function k(a,b,c,d){if(Ga(a)){var e,f,g=na.expando,h=a.nodeType,i=h?na.cache:a,j=h?a[g]:a[g]&&g;if(j&&i[j]&&(d||i[j].data)||void 0!==c||"string"!=typeof b)return j||(j=h?a[g]=ca.pop()||na.guid++:g),i[j]||(i[j]=h?{}:{toJSON:na.noop}),("object"==typeof b||"function"==typeof b)&&(d?i[j]=na.extend(i[j],b):i[j].data=na.extend(i[j].data,b)),f=i[j],d||(f.data||(f.data={}),f=f.data),void 0!==c&&(f[na.camelCase(b)]=c),"string"==typeof b?(e=f[b],null==e&&(e=f[na.camelCase(b)])):e=f,e}}function l(a,b,c){if(Ga(a)){var d,e,f=a.nodeType,g=f?na.cache:a,h=f?a[na.expando]:na.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){na.isArray(b)?b=b.concat(na.map(b,na.camelCase)):b in d?b=[b]:(b=na.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;for(;e--;)delete d[b[e]];if(c?!j(d):!na.isEmptyObject(d))return}(c||(delete g[h].data,j(g[h])))&&(f?na.cleanData([a],!0):la.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}function m(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return na.css(a,b,"")},i=h(),j=c&&c[3]||(na.cssNumber[b]?"":"px"),k=(na.cssNumber[b]||"px"!==j&&+i)&&Ka.exec(na.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,na.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}function n(a){var b=Sa.split("|"),c=a.createDocumentFragment();if(c.createElement)for(;b.length;)c.createElement(b.pop());return c}function o(a,b){var c,d,e=0,f="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||na.nodeName(d,b)?f.push(d):na.merge(f,o(d,b));return void 0===b||b&&na.nodeName(a,b)?na.merge([a],f):f}function p(a,b){for(var c,d=0;null!=(c=a[d]);d++)na._data(c,"globalEval",!b||na._data(b[d],"globalEval"))}function q(a){Oa.test(a.type)&&(a.defaultChecked=a.checked)}function r(a,b,c,d,e){for(var f,g,h,i,j,k,l,m=a.length,r=n(b),s=[],t=0;m>t;t++)if(g=a[t],g||0===g)if("object"===na.type(g))na.merge(s,g.nodeType?[g]:g);else if(Ua.test(g)){for(i=i||r.appendChild(b.createElement("div")),j=(Pa.exec(g)||["",""])[1].toLowerCase(),l=Ta[j]||Ta._default,i.innerHTML=l[1]+na.htmlPrefilter(g)+l[2],f=l[0];f--;)i=i.lastChild;if(!la.leadingWhitespace&&Ra.test(g)&&s.push(b.createTextNode(Ra.exec(g)[0])),!la.tbody)for(g="table"!==j||Va.test(g)?""!==l[1]||Va.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;f--;)na.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k);for(na.merge(s,i.childNodes),i.textContent="";i.firstChild;)i.removeChild(i.firstChild);i=r.lastChild}else s.push(b.createTextNode(g));for(i&&r.removeChild(i),la.appendChecked||na.grep(o(s,"input"),q),t=0;g=s[t++];)if(d&&na.inArray(g,d)>-1)e&&e.push(g);else if(h=na.contains(g.ownerDocument,g),i=o(r.appendChild(g),"script"),h&&p(i),c)for(f=0;g=i[f++];)Qa.test(g.type||"")&&c.push(g);return i=null,r}function s(){return!0}function t(){return!1}function u(){try{return da.activeElement}catch(a){}}function v(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)v(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),e===!1)e=t;else if(!e)return a;return 1===f&&(g=e,e=function(a){return na().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=na.guid++)),a.each(function(){na.event.add(this,b,e,d,c)})}function w(a,b){return na.nodeName(a,"table")&&na.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function x(a){return a.type=(null!==na.find.attr(a,"type"))+"/"+a.type,a}function y(a){var b=eb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function z(a,b){if(1===b.nodeType&&na.hasData(a)){var c,d,e,f=na._data(a),g=na._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)na.event.add(b,c,h[c][d])}g.data&&(g.data=na.extend({},g.data))}}function A(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!la.noCloneEvent&&b[na.expando]){e=na._data(b);for(d in e.events)na.removeEvent(b,d,e.handle);b.removeAttribute(na.expando)}"script"===c&&b.text!==a.text?(x(b).text=a.text,y(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),la.html5Clone&&a.innerHTML&&!na.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Oa.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}function B(a,b,c,d){b=fa.apply([],b);var e,f,g,h,i,j,k=0,l=a.length,m=l-1,n=b[0],p=na.isFunction(n);if(p||l>1&&"string"==typeof n&&!la.checkClone&&db.test(n))return a.each(function(e){var f=a.eq(e);p&&(b[0]=n.call(this,e,f.html())),B(f,b,c,d)});if(l&&(j=r(b,a[0].ownerDocument,!1,a,d),e=j.firstChild,1===j.childNodes.length&&(j=e),e||d)){for(h=na.map(o(j,"script"),x),g=h.length;l>k;k++)f=j,k!==m&&(f=na.clone(f,!0,!0),g&&na.merge(h,o(f,"script"))),c.call(a[k],f,k);if(g)for(i=h[h.length-1].ownerDocument,na.map(h,y),k=0;g>k;k++)f=h[k],Qa.test(f.type||"")&&!na._data(f,"globalEval")&&na.contains(i,f)&&(f.src?na._evalUrl&&na._evalUrl(f.src):na.globalEval((f.text||f.textContent||f.innerHTML||"").replace(fb,"")));j=e=null}return a}function C(a,b,c){for(var d,e=b?na.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||na.cleanData(o(d)),d.parentNode&&(c&&na.contains(d.ownerDocument,d)&&p(o(d,"script")),d.parentNode.removeChild(d));return a}function D(a,b){var c=na(b.createElement(a)).appendTo(b.body),d=na.css(c[0],"display");return c.detach(),d}function E(a){var b=da,c=jb[a];return c||(c=D(a,b),"none"!==c&&c||(ib=(ib||na("