(function(){window.hj=window.hj||function(){(window.hj.q=window.hj.q||[]).push(arguments)};window._hjSettings=window._hjSettings||{};hj.defaults={host:"insights.hotjar.com",staticHost:"static.hotjar.com",varsHost:"vars.hotjar.com"};hj.host=_hjSettings.host||hj.defaults.host;hj.staticHost=_hjSettings.staticHost||hj.defaults.staticHost;hj.varsHost=_hjSettings.varsHost||hj.defaults.varsHost;hj.exceptions=function(){function m(){var d=setInterval(function(){if("undefined"!==typeof StackTrace)clearInterval(d), b="loaded",a();else if("loading"!=b){b="loading";var g=document.createElement("script");g.src=f;document.getElementsByTagName("head")[0].appendChild(g)}},10)}function a(l){l&&g.length",url:location.href,useragent:navigator.userAgent};StackTrace.fromError(d, {offline:!0}).then(function(k){var b=a.module;hj.hq.each(k,function(a,d){g+=d.source+"\n";b+=d.functionName});l.errorgroup=hj.md5(b,!0);l.errormessagegroup=hj.md5(d.message?d.message.toString().replace(/\s/g,""):"",!0);l.stacktrace=g;d.cause&&(l.cause=d.cause);h(l)})}function h(a){var d="undefined"!==typeof hj.log?hj.log.debug:function(){},g;d("Exception occurred","Exception",a);try{g={"http:":12080,"https:":12443}[location.protocol],hj.hq.ajax({url:"//graylog.hotjar.com:"+g+"/gelf",type:"POST", data:hj.json.stringify(a)})}catch(l){d("Failed to log exception: "+l,"Exception")}}var l={},f="https://"+hj.staticHost+"/static/vendor/stacktrace.js/1.0.1/stacktrace-with-polyfills.min.js",b="unloaded",g=[],d=10,q=0,p=1E3,k=!1;l.tryCatch=function(a,d){return function(){try{return a.apply(this,arguments)}catch(g){l.log(g,d||"Generic")}}};hj.tryCatch=l.tryCatch;l.log=function(d,l){var k={module:l||"",exception:d};"loaded"==b?a(k):(g.push(k),"unloaded"==b&&m())};l.getQueue=function(){return g};l.getStacktraceJSisLoaded= function(){return"loaded"==b};l.testWithStackTrace=function(){try{"test".push([])}catch(a){hj.exceptions.log(a,"exceptions")}};l.testThrottlingWithStackTrace=function(){for(var a=0;5>a;a++)l.testWithStackTrace()};l.testCallbackWrapper=function(){setTimeout(hj.tryCatch(l.testWithStackTrace,"Exceptions"),1E3)};return l}()})(); try{(function(m,a){var c=function(a){return new h(a)};c.isValidSelector=function(a){try{return hj.hq(a),!0}catch(f){return!1}};c.isEmptyObject=function(a){return Object.keys(a).length?!1:!0};c.isFunction=function(a){return"function"===typeof a};c.isWindow=function(a){return a===window};c.isDocument=function(a){return a===window.document};c.noop=function(){};c.each=function(a,f){var b,g;if("object"===typeof a&&"[object Array]"!==Object.prototype.toString.call(a))if((g=a[Object.keys(a)[0]])&&void 0!== g.nodeName)for(b in a){if(a.hasOwnProperty(b)&&"length"!==b&&!1===f(b,a[b],a))break}else for(b in a){if(a.hasOwnProperty(b)&&!1===f(b,a[b],a))break}else if("undefined"!==typeof a)for(b=0;bf.status?c.isFunction(a.success)&&a.success(f.responseText&&hj.json.parse(f.responseText),f):c.isFunction(a.error)&&a.error(f)};f.onerror=function(){c.isFunction(a.error)&&a.error(f)};c.isFunction(a.requestAnnotator)&& a.requestAnnotator(f);"POST"===a.type&&a.data?f.send(a.data):f.send()};c.get=function(a,f){var b=new XMLHttpRequest;b.open("GET",a,!0);b.onload=function(){200<=b.status&&400>b.status&&f&&f(b.responseText)};b.send()};c.eventHandlers={};c.selector="";var h=function(l){var f;c.selector=l;if(c.isWindow(l))this[0]=window,this.length=1;else if(c.isDocument(l))this[0]=a,this.length=1;else if("object"===typeof l)this[0]=l,this.length=1;else if("string"===typeof l&&"<"===l.charAt(0)&&">"===l.charAt(l.length- 1)&&3<=l.length)f=a.createElement("div"),f.innerHTML=l,this[0]=f.childNodes[0],this.length=1;else if("string"===typeof l){if(!isNaN(l.charAt(1))&&("."===l.charAt(0)||"#"===l.charAt(0)))l=l.charAt(0)+"\\3"+l.charAt(1)+" "+l.slice(2);try{f=a.querySelectorAll(l)}catch(b){return this.length=0,this}for(l=0;l=this[0].offsetWidth&&0>=this[0].offsetHeight);if(":hidden"===a)return 0>= this[0].offsetWidth&&0>=this[0].offsetHeight;if(":checked"===a)return this[0].checked;if(-1>>0};a.prototype.nodeId=function(d){var g=d[a.ID_PROP];g||(g=d[a.ID_PROP]=a.nextId_++);return g};a.prototype.set=function(a,d){var g=this.nodeId(a);this.nodes[g]=a;this.values[g]=d};a.prototype.get=function(a){a=this.nodeId(a);return this.values[a]};a.prototype.has=function(a){return this.nodeId(a)in this.nodes};a.prototype.deleteNode=function(a){a=this.nodeId(a); delete this.nodes[a];this.values[a]=void 0};a.prototype.keys=function(){var a=[],d;for(d in this.nodes)this.isIndex(d)&&a.push(this.nodes[d]);return a};a.ID_PROP="__hj_mutation_summary_node_map_id__";a.nextId_=1;return a}(),h;(function(a){a[a.STAYED_OUT=0]="STAYED_OUT";a[a.ENTERED=1]="ENTERED";a[a.STAYED_IN=2]="STAYED_IN";a[a.REPARENTED=3]="REPARENTED";a[a.REORDERED=4]="REORDERED";a[a.EXITED=5]="EXITED"})(h||(h={}));var l=function(){function a(d,g,k,b,f,c,q,h){"undefined"===typeof g&&(g=!1);"undefined"=== typeof k&&(k=!1);"undefined"===typeof b&&(b=!1);"undefined"===typeof f&&(f=null);"undefined"===typeof c&&(c=!1);"undefined"===typeof q&&(q=null);"undefined"===typeof h&&(h=null);this.node=d;this.childList=g;this.attributes=k;this.characterData=b;this.oldParentNode=f;this.added=c;this.attributeOldValues=q;this.characterDataOldValue=h;this.isCaseInsensitive=this.node.nodeType===Node.ELEMENT_NODE&&this.node instanceof HTMLElement&&this.node.ownerDocument instanceof HTMLDocument}a.prototype.getAttributeOldValue= function(a){if(this.attributeOldValues)return this.isCaseInsensitive&&(a=a.toLowerCase()),this.attributeOldValues[a]};a.prototype.getAttributeNamesMutated=function(){var a=[];if(!this.attributeOldValues)return a;for(var d in this.attributeOldValues)a.push(d);return a};a.prototype.attributeMutated=function(a,d){this.attributes=!0;this.attributeOldValues=this.attributeOldValues||{};a in this.attributeOldValues||(this.attributeOldValues[a]=d)};a.prototype.characterDataMutated=function(a){this.characterData|| (this.characterData=!0,this.characterDataOldValue=a)};a.prototype.removedFromParent=function(a){this.childList=!0;this.added||this.oldParentNode?this.added=!1:this.oldParentNode=a};a.prototype.insertedIntoParent=function(){this.added=this.childList=!0};a.prototype.getOldParent=function(){if(this.childList){if(this.oldParentNode)return this.oldParentNode;if(this.added)return null}return this.node.parentNode};return a}(),f=function(){return function(){this.added=new c;this.removed=new c;this.maybeMoved= new c;this.oldPrevious=new c;this.moved=void 0}}(),b=function(a){function d(g,k){a.call(this);this.rootNode=g;this.wasReachableCache=this.reachableCache=void 0;this.anyCharacterDataChanged=this.anyAttributesChanged=this.anyParentsChanged=!1;for(var b=0;bscreen.width?[screen.height,screen.width]:[screen.width,screen.height]:[screen.height,screen.width];"undefined"!== typeof c&&a.push(c);screen.availWidth&&screen.availHeight&&(h=this.options.detectScreenOrientation?screen.availHeight>screen.availWidth?[screen.availHeight,screen.availWidth]:[screen.availWidth,screen.availHeight]:[screen.availHeight,screen.availWidth]);"undefined"!==typeof h&&a.push(h);return a},timezoneOffsetKey:function(a){a.push((new Date(1979,3,13)).getTimezoneOffset());return a},sessionStorageKey:function(a){this.hasSessionStorage()&&a.push("sessionStorageKey");return a},localStorageKey:function(a){this.hasLocalStorage()&& a.push("localStorageKey");return a},indexedDbKey:function(a){this.hasIndexedDB()&&a.push("indexedDbKey");return a},addBehaviorKey:function(a){document.body&&document.body.addBehavior&&a.push("addBehaviorKey");return a},openDatabaseKey:function(a){window.openDatabase&&a.push("openDatabase");return a},cpuClassKey:function(a){a.push(this.getNavigatorCpuClass());return a},platformKey:function(a){a.push(this.getNavigatorPlatform());return a},doNotTrackKey:function(a){a.push(this.getDoNotTrack());return a}, adBlockKey:function(a){a.push(this.getAdBlock());return a},hasLiedLanguagesKey:function(a){a.push(this.getHasLiedLanguages());return a},hasLiedResolutionKey:function(a){a.push(this.getHasLiedResolution());return a},hasLiedOsKey:function(a){a.push(this.getHasLiedOs());return a},hasLiedBrowserKey:function(a){a.push(this.getHasLiedBrowser());return a},pluginsKey:function(a){this.isIE()||a.push(this.getRegularPluginsString());return a},getRegularPluginsString:function(){var a=[],c=["Shockwave Flash"]; if("undefined"===typeof navigator.plugins)return"no-plugins";for(var h=0,l=navigator.plugins.length;hc.indexOf(navigator.plugins[h].name)&&a.push(navigator.plugins[h]);this.pluginsShouldBeSorted()&&(a=a.sort(function(a,b){return a.name>b.name?1:a.name>>16,a[0]&65535,a[1]>>>16,a[1]&65535];c=[c[0]>>>16,c[0]&65535,c[1]>>>16,c[1]&65535];var h=[0, 0,0,0];h[3]+=a[3]+c[3];h[2]+=h[3]>>>16;h[3]&=65535;h[2]+=a[2]+c[2];h[1]+=h[2]>>>16;h[2]&=65535;h[1]+=a[1]+c[1];h[0]+=h[1]>>>16;h[1]&=65535;h[0]+=a[0]+c[0];h[0]&=65535;return[h[0]<<16|h[1],h[2]<<16|h[3]]},x64Multiply:function(a,c){a=[a[0]>>>16,a[0]&65535,a[1]>>>16,a[1]&65535];c=[c[0]>>>16,c[0]&65535,c[1]>>>16,c[1]&65535];var h=[0,0,0,0];h[3]+=a[3]*c[3];h[2]+=h[3]>>>16;h[3]&=65535;h[2]+=a[2]*c[3];h[1]+=h[2]>>>16;h[2]&=65535;h[2]+=a[3]*c[2];h[1]+=h[2]>>>16;h[2]&=65535;h[1]+=a[1]*c[3];h[0]+=h[1]>>>16; h[1]&=65535;h[1]+=a[2]*c[2];h[0]+=h[1]>>>16;h[1]&=65535;h[1]+=a[3]*c[1];h[0]+=h[1]>>>16;h[1]&=65535;h[0]+=a[0]*c[3]+a[1]*c[2]+a[2]*c[1]+a[3]*c[0];h[0]&=65535;return[h[0]<<16|h[1],h[2]<<16|h[3]]},x64Rotl:function(a,c){c%=64;if(32===c)return[a[1],a[0]];if(32>c)return[a[0]<>>32-c,a[1]<>>32-c];c-=32;return[a[1]<>>32-c,a[0]<>>32-c]},x64LeftShift:function(a,c){c%=64;return 0===c?a:32>c?[a[0]<>>32-c,a[1]<>>1]);a=this.x64Multiply(a,[4283543511,3981806797]);a=this.x64Xor(a,[0,a[0]>>>1]);a=this.x64Multiply(a,[3301882366,444984403]);return a=this.x64Xor(a,[0,a[0]>>>1])},x64hash128:function(a,c){a=a||"";c=c||0;for(var h=a.length%16,l=a.length-h,f=[0,c],b=[0,c],g=[0,0],d=[0,0],q=[2277735313,289559509],p=[1291169091,658871167],k=0;k>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)+("00000000"+(b[0]>>>0).toString(16)).slice(-8)+("00000000"+(b[1]>>>0).toString(16)).slice(-8)}};hj.fingerprinter.VERSION="0.7.1";return hj.fingerprinter},"fingerprinter")(); hj.tryCatch(function(m,a,c){hj.deviceDetection={getDevice:c(m,a)}}("categorizr",this,function(m,a){function c(){for(var a=h.length;a--;)g["is"+h[a]]=b(h[a].toLowerCase())}var h=["Tv","Desktop","Tablet","Mobile"],l=function(a){return a.match(/GoogleTV|SmartTV|Internet.TV|NetCast|NETTV|AppleTV|boxee|Kylo|Roku|DLNADOC|CE\-HTML/i)?"tv":a.match(/Xbox|PLAYSTATION.3|Wii/i)?"tv":a.match(/iPad/i)||a.match(/tablet/i)&&!a.match(/RX-34/i)||a.match(/FOLIO/i)?"tablet":a.match(/Linux/i)&&a.match(/Android/i)&&!a.match(/Fennec|mobi|HTC.Magic|HTCX06HT|Nexus.One|SC-02B|fone.945/i)? "tablet":a.match(/Kindle/i)||a.match(/Mac.OS/i)&&a.match(/Silk/i)?"tablet":a.match(/GT-P10|SC-01C|SHW-M180S|SGH-T849|SCH-I800|SHW-M180L|SPH-P100|SGH-I987|zt180|HTC(.Flyer|\_Flyer)|Sprint.ATP51|ViewPad7|pandigital(sprnova|nova)|Ideos.S7|Dell.Streak.7|Advent.Vega|A101IT|A70BHT|MID7015|Next2|nook/i)||a.match(/MB511/i)&&a.match(/RUTEM/i)?"tablet":a.match(/BOLT|Fennec|Iris|Maemo|Minimo|Mobi|mowser|NetFront|Novarra|Prism|RX-34|Skyfire|Tear|XV6875|XV6975|Google.Wireless.Transcoder/i)?"mobile":a.match(/Opera/i)&& a.match(/Windows.NT.5/i)&&a.match(/HTC|Xda|Mini|Vario|SAMSUNG\-GT\-i8000|SAMSUNG\-SGH\-i9/i)?"mobile":a.match(/Windows.(NT|XP|ME|9)/)&&!a.match(/Phone/i)||a.match(/Win(9|.9|NT)/i)?"desktop":a.match(/Macintosh|PowerPC/i)&&!a.match(/Silk/i)?"desktop":a.match(/Linux/i)&&a.match(/X11/i)?"desktop":a.match(/Solaris|SunOS|BSD/i)?"desktop":a.match(/Bot|Crawler|Spider|Yahoo|ia_archiver|Covario-IDS|findlinks|DataparkSearch|larbin|Mediapartners-Google|NG-Search|Snappy|Teoma|Jeeves|TinEye/i)&&!a.match(/Mobile/i)? "desktop":"mobile"},f=l(a.navigator?a.navigator.userAgent:a.request?a.request.headers["user-agent"]:"No User-Agent Provided"),b=function(a){return f===a},g=function(){var a=[].slice.call(arguments,0);2===a.length&&f===a[0]?(f=a[1],c()):1===a.length&&"string"===typeof a[0]&&(f=a[0],c());return f};g.is=b;g.test=l;c();return g}),"device-detection"); hj.tryCatch(function(){function m(g,d){var b=g[0],p=g[1],k=g[2],n=g[3],b=c(b,p,k,n,d[0],7,-680876936),n=c(n,b,p,k,d[1],12,-389564586),k=c(k,n,b,p,d[2],17,606105819),p=c(p,k,n,b,d[3],22,-1044525330),b=c(b,p,k,n,d[4],7,-176418897),n=c(n,b,p,k,d[5],12,1200080426),k=c(k,n,b,p,d[6],17,-1473231341),p=c(p,k,n,b,d[7],22,-45705983),b=c(b,p,k,n,d[8],7,1770035416),n=c(n,b,p,k,d[9],12,-1958414417),k=c(k,n,b,p,d[10],17,-42063),p=c(p,k,n,b,d[11],22,-1990404162),b=c(b,p,k,n,d[12],7,1804603682),n=c(n,b,p,k,d[13], 12,-40341101),k=c(k,n,b,p,d[14],17,-1502002290),p=c(p,k,n,b,d[15],22,1236535329),b=h(b,p,k,n,d[1],5,-165796510),n=h(n,b,p,k,d[6],9,-1069501632),k=h(k,n,b,p,d[11],14,643717713),p=h(p,k,n,b,d[0],20,-373897302),b=h(b,p,k,n,d[5],5,-701558691),n=h(n,b,p,k,d[10],9,38016083),k=h(k,n,b,p,d[15],14,-660478335),p=h(p,k,n,b,d[4],20,-405537848),b=h(b,p,k,n,d[9],5,568446438),n=h(n,b,p,k,d[14],9,-1019803690),k=h(k,n,b,p,d[3],14,-187363961),p=h(p,k,n,b,d[8],20,1163531501),b=h(b,p,k,n,d[13],5,-1444681467),n=h(n,b, p,k,d[2],9,-51403784),k=h(k,n,b,p,d[7],14,1735328473),p=h(p,k,n,b,d[12],20,-1926607734),b=a(p^k^n,b,p,d[5],4,-378558),n=a(b^p^k,n,b,d[8],11,-2022574463),k=a(n^b^p,k,n,d[11],16,1839030562),p=a(k^n^b,p,k,d[14],23,-35309556),b=a(p^k^n,b,p,d[1],4,-1530992060),n=a(b^p^k,n,b,d[4],11,1272893353),k=a(n^b^p,k,n,d[7],16,-155497632),p=a(k^n^b,p,k,d[10],23,-1094730640),b=a(p^k^n,b,p,d[13],4,681279174),n=a(b^p^k,n,b,d[0],11,-358537222),k=a(n^b^p,k,n,d[3],16,-722521979),p=a(k^n^b,p,k,d[6],23,76029189),b=a(p^k^ n,b,p,d[9],4,-640364487),n=a(b^p^k,n,b,d[12],11,-421815835),k=a(n^b^p,k,n,d[15],16,530742520),p=a(k^n^b,p,k,d[2],23,-995338651),b=l(b,p,k,n,d[0],6,-198630844),n=l(n,b,p,k,d[7],10,1126891415),k=l(k,n,b,p,d[14],15,-1416354905),p=l(p,k,n,b,d[5],21,-57434055),b=l(b,p,k,n,d[12],6,1700485571),n=l(n,b,p,k,d[3],10,-1894986606),k=l(k,n,b,p,d[10],15,-1051523),p=l(p,k,n,b,d[1],21,-2054922799),b=l(b,p,k,n,d[8],6,1873313359),n=l(n,b,p,k,d[15],10,-30611744),k=l(k,n,b,p,d[6],15,-1560198380),p=l(p,k,n,b,d[13],21, 1309151649),b=l(b,p,k,n,d[4],6,-145523070),n=l(n,b,p,k,d[11],10,-1120210379),k=l(k,n,b,p,d[2],15,718787259),p=l(p,k,n,b,d[9],21,-343485551);g[0]=f(b,g[0]);g[1]=f(p,g[1]);g[2]=f(k,g[2]);g[3]=f(n,g[3])}function a(a,d,b,c,k,h){d=f(f(d,a),f(c,h));return f(d<>>32-k,b)}function c(b,d,f,c,k,h,l){return a(d&f|~d&c,b,d,k,h,l)}function h(b,d,f,c,k,h,l){return a(d&c|f&~c,b,d,k,h,l)}function l(b,d,f,c,k,h,l){return a(f^(d|~c),b,d,k,h,l)}function f(a,b){return a+b&4294967295}if("undefined"!==typeof hj.scriptLoaded)window.console= window.console||{warn:function(){}},console.warn("Hotjar Tracking Warning: Multiple Hotjar tracking codes were detected on this page. Tracking will not work as expected."),hj.verifyInstall&&hj.notification.show("Hotjar installation invalid.","It appears you have more than one Hotjar tracking code set up on this page. Hotjar cannot work properly if multiple Hotjar scripts are loaded concurrently. Please make sure you only install the one tracking code provided for this site.","bad");else{window.hj= window.hj||function(){(window.hj.q=window.hj.q||[]).push(arguments)};window.hj.q=window.hj.q||[];hj.hostname=hj.host.split(":")[0];hj.secure="https:"==location.protocol;hj.port=hj.host.split(":")[1]||(hj.secure?"443":"80");hj.apiUrlBase=location.protocol+"//"+hj.host+"/api/v1";hj.includedInSample=!1;hj.isPreview=Boolean(_hjSettings.preview);hj.placeholderPolyfill=!1!==_hjSettings.hjPlaceholderPolyfill;hj.settings={};hj.userDeviceType=null;hj.optOut=!1;hj.windowSize=null;hj.scriptVersion=16041304; hj.currentDeferredPageContentId=null;hj.locationListener=function(){var a={},b="manual",f;a.setMode=hj.tryCatch(function(a){b=a;f&&clearInterval(f);"automatic_with_fragments"===b?f=setInterval(function(){var a=location.origin+location.pathname+location.search+location.hash;hj.currentUrl&&hj.currentUrl!=a&&hj._init.reinit(a)},200):"automatic"===b&&(f=setInterval(function(){var a=location.origin+location.pathname+location.search;hj.currentUrl&&hj.currentUrl.split("#")[0]!=a&&hj._init.reinit(a)},200))}); return a}();var b="0123456789abcdef".split("");hj.md5=function(a,d){var f="";try{var c=a,k=c.length,h=[1732584193,-271733879,-1732584194,271733878],l;for(l=64;l<=c.length;l+=64){for(var s=h,w=c.substring(l-64,l),u=[],t=void 0,t=0;64>t;t+=4)u[t>>2]=w.charCodeAt(t)+(w.charCodeAt(t+1)<<8)+(w.charCodeAt(t+2)<<16)+(w.charCodeAt(t+3)<<24);m(s,u)}c=c.substring(l-64);s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(l=0;l>2]|=c.charCodeAt(l)<<(l%4<<3);s[l>>2]|=128<<(l%4<<3);if(55l;l++)s[l]=0}s[14]=8*k;m(h,s);for(c=0;cw;w++)s+=b[v>>8*w+4&15]+b[v>>8*w&15];k[l]=s}f=h.join("")}catch(x){d?f="":hj.exceptions.log(x,"md5")}return f};hj.b64EncodeUnicode=function(a){return btoa(encodeURIComponent(a).replace(/%([0-9A-F]{2})/g,function(a,b){return String.fromCharCode("0x"+b)}))};"5d41402abc4b2a76b9719d911017c592"!=hj.md5("hello")&&(f=function(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535});hj.time=function(){var a= {},b=(new Date).getTime();a.reset=function(){b=(new Date).getTime()};a.getNow=function(){return(new Date).getTime()-b};return a}();hj.debug=function(){return{on:function(a){_hjSettings.hjdebug=!0;a&&hj.cookie.set("hjDebug",!0)},off:function(){_hjSettings.hjdebug=!1;hj.cookie.set("hjDebug",!1)},emit:function(a,b){"undefined"!==typeof _hjEmitters&&_hjEmitters.includes&&_hjEmitters.includes(a)&&window.postMessage({data:b,message:"hjDebug",type:a},"*")}}}();hj.url=function(){var a={};a.getParameter=hj.tryCatch(function(a){var b, g=[];for(a=RegExp("[^?&]?"+a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]")+"=([^&]+)","g");b=a.exec(location.search);)g.push(hj.url.tryDecodeURIComponent(b[1]));switch(g.length){case 0:return"";case 1:return g[0];default:return g}},"common");a.tryDecodeURIComponent=hj.tryCatch(function(a){try{return decodeURIComponent(a)}catch(b){return a}},"common");a.getUrlFromString=hj.tryCatch(function(a){a=a||window.location.href;a.startsWith("http")||(a.startsWith("/")||(a="/"+a),a=location.protocol+"//"+location.hostname+ (""!=location.port?":"+location.port:"")+a);return a},"common");return a}();hj.cookie=function(){var a={};a.get=hj.tryCatch(function(a){return(a=RegExp("(?:^|; )"+a+"=([^;]*)").exec(document.cookie))?a[1]:null},"common");a.set=hj.tryCatch(function(a,b,g){var k=new Date,c=g||365;a=a+"="+b+"; path=/; ";0!==g&&(k.setTime(k.getTime()+864E5*c),a+="expires="+k.toUTCString());document.cookie=a},"common");a.add=hj.tryCatch(function(a,b){var g=hj.cookie.get(a),g=g?g.split(","):[];hj.hq.inArray(b.toString(), g)||(g.push(b),hj.cookie.set(a,g.join(",")))},"common");a.find=hj.tryCatch(function(a,b){var g=hj.cookie.get(a),k,g=g?g.split(","):[];for(k=0;k()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)},"common");a.deviceType=hj.tryCatch(function(){hj.userDeviceType||(hj.userDeviceType= hj.deviceDetection.getDevice(),"mobile"===hj.userDeviceType&&(hj.userDeviceType="phone"));return hj.userDeviceType},"common");return a}();hj.rendering=function(){function a(b,g){hj.tryCatch(g,"Rendering")(b)}function b(a,g){hj.widgetDelay.set(function(){hj.tryCatch(g,"Rendering")(a)},1E3*a.display_delay)}function c(a,b,g){function d(){hj.tryCatch(b,"Rendering")(a);k.off("mousemove."+g);k.off("mouseout."+g)}var k=hj.hq(document),f=hj.hq(window),l=[];h.push(g);k.off("mousemove."+g);k.off("mouseout."+ g);k.on("mousemove."+g,hj.tryCatch(function(a){l.push({x:a.clientX,y:a.clientY});2=a.y)&&(a.x===b.x&&d(),b=(a.y-b.y)/(a.x-b.x),a=a.y-b*a.x,a=-a/b,0$1'); g=g.replace(/(^|[^\/])(www\.[\S]+(\b|$))/gim,'$1$2');d[c]=g}}}var h=[],l={},m={};l.clearAllAbandonEvents=hj.tryCatch(function(){h.forEach(function(a){hj.log.debug("Removing abandon events for "+a,"rendering");hj.hq(document).off("mousemove."+a);hj.hq(document).off("mouseout."+a)});h=[]},"common");l.renderTemplate=hj.tryCatch(function(a,b){var g=m[a];g||(g="var pieces=[],print=function(){pieces.push.apply(pieces,arguments);};with(obj){pieces.push('"+a.replace(/[\r\t\n]/g, " ").replace(/'(?=[^%]*%>)/g,"\t").split("'").join("\\'").split("\t").join("'").replace(/<%=(.+?)%>/g,"',$1,'").split("<%").join("');").split("%>").join("pieces.push('")+"');}return pieces.join('');",g=new Function("obj",g),m[a]=g);k(b);return g(b)},"common");l.addToDom=hj.tryCatch(function(a,b){hj.hq("#"+a).remove();hj.hq("body").append(b);return hj.hq("#"+a+">div")},"common");l.TrustedString=function(a){this.value=a};l.callAccordingToCondition=hj.tryCatch(function(k,h,l){var n={immediate:a,delay:b, abandon:c,scroll:f}[k.display_condition];hj.log.debug("Calling active item ("+h+"): "+k.display_condition,"rendering");if(n){var m=!0;"undefined"!==typeof k.targeting_percentage&&!hj.isPreview&&(m=(new hj.fingerprinter).compareRatio(k.targeting_percentage,!0));m&&hj.tryCatch(n,"Rendering")(k,l,h)}else throw Error('Unhandled display condition: "'+k.display_condition+'"');},"common");l.escapeHtml=function(a){var b={"&":"&","<":"<",">":">",'"':""","'":"'"};a=String(a).replace(/&(?!(amp|lt|gt|quot|#39);)/g, function(a){return b[a]});return a.replace(/[<>"']/g,function(a){return b[a]})};return l}();hj.survey=hj.tryCatch(function(){return{ctrl:void 0,data:void 0,model:{},activeLanguageDirection:"ltr"}},"common")();hj.ui=function(){var a={};a.getWindowSize=hj.tryCatch(function(){return{width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}},"common");a.getScrollPosition=hj.tryCatch(function(){return{left:hj.hq(window).scrollLeft(), top:hj.hq(window).scrollTop()}},"common");a.getBottomAsPercentage=hj.tryCatch(function(){var a=parseInt(1E3*(hj.hq(window).scrollTop()+hj.ui.getWindowSize().height)/hj.hq(document).height(),10);return Math.min(1E3,a)},"common");a.disableScrolling=hj.tryCatch(function(a){var b=hj.ui.getScrollPosition();hj.hq(document).on("scroll.hotjarDisable resize.hotjarDisable mousewheel.hotjarDisable DOMMouseScroll.hotjarDisable touchmove.hotjarDisable",hj.tryCatch(function(g){g.preventDefault();window.scrollTo(b.left, b.top);a&&a()},"common"))},"common");a.enableScrolling=hj.tryCatch(function(){hj.hq(document).off("scroll.hotjarDisable");hj.hq(document).off("resize.hotjarDisable");hj.hq(document).off("mousewheel.hotjarDisable");hj.hq(document).off("DOMMouseScroll.hotjarDisable");hj.hq(document).off("touchmove.hotjarDisable")},"common");return a}();hj.dom=function(){return{getCSSURLs:function(){var a=[],b=document.styleSheets;hj.log.debug("Getting CSS","dpc","Starting");b&&0\n"},"common");return b}();hj.features=function(){var a={};a.getFeatures=hj.tryCatch(function(){return hjSiteSettings.features||[]},"hj.features.getFeatures");a.haveFeature= hj.tryCatch(function(b){return 0<=a.getFeatures().indexOf(b)},"hj.features.haveFeature");return a}()}},"common")(); hj.tryCatch(function(){hj.xcom=hj.tryCatch(function(){var m={},a=[],c=1,h=location.protocol+"//"+hj.host+"/x",l,f=hj.tryCatch(function(){if(1==c){window.addEventListener?window.addEventListener("message",b,!1):window.attachEvent("onmessage",b);c=2;var a=document.createElement("iframe");a.style.position="fixed";a.style.top=-100;a.style.left=-100;a.width=1;a.height=1;a.id="_hjXcomProxyFrame";a.src=h;document.body.appendChild(a);l=document.getElementById("_hjXcomProxyFrame")}},"data");m.send=hj.tryCatch(function(b, d){10==c?l.contentWindow.postMessage({eventId:b,data:d},"*"):(a.push({eventId:b,data:d}),f())});var b=function(b){"knockknock"==b.data.eventId&&(c=10,a.forEach(function(a){m.send(a.eventId,a.data)}),a=[])};return m},"xcom")()},"xcom")(); hj.tryCatch(function(){var m=new hj.fingerprinter;hj.pageVisit=hj.tryCatch(function(){var a,c={},h={},l=!1,f=!1,b=!1;c.setup=hj.tryCatch(function(a){var b=hj.ui.getWindowSize();l=!1;h={window_width:b.width,window_height:b.height,included_in_sample:hj.includedInSample,url:a||document.location.href,fingerprint:m.get()};hj.debug.emit("pageVisit",a||document.location.href);c.property=hj.property.create();c.property.set("visitInfo",{pageVisitKey:c.property.key,pageUrl:h.url,urlHash:hj.md5(hj.b64EncodeUnicode(h.url)), windowWidth:h.window_width,windowHeight:h.window_height,userAgent:navigator.userAgent,siteId:hj.settings.site_id});hj.eventStream.expectEvents(c.property)},"data");c.requirePageVisitId=hj.tryCatch(function(){!b&&!c.property.get("pageInfo")&&(hj.log.debug("Page Visit ID is required. ","pageVisit"),b=!0,(l||!hj.includedInSample||hj.optOut)&&a())},"data");c.track=hj.tryCatch(function(b){b&&(h.url=b);hj.log.debug("Tracking "+h.url,"pageVisit");f=!0;a()},"data");a=hj.tryCatch(function(){l=!0;if((b||f)&& !hj.isPreview){var a={};Object.keys(h).forEach(function(b){a[b]=h[b]});a.insert_page_visit=b;a.insert_traffic_log_entry=f;hj.log.debug("Sending visit-data request. (Insert Page Visit: "+a.insert_page_visit+" / Insert Traffic Log Entry: "+a.insert_traffic_log_entry+")","pageVisit",a);var d=c.property;hj.ajax.post(hj.apiUrlBase+"/client/sites/"+hj.settings.site_id+"/visit-data?sv="+(_hjSettings.hjsv||0),a,hj.tryCatch(function(b){b.success&&(b.user_id&&d.set("userId",b.user_id),a.insert_page_visit&& d.set("pageInfo",{pageId:b.page_id,pageVisitId:b.page_visit_id,url:a.url,urlMD5:hj.md5(hj.b64EncodeUnicode(a.url))}))},"data"));f=b=!1}},"data");return c},"data")();hj.request=hj.tryCatch(function(){var a={};a.saveFeedbackResponse=hj.tryCatch(function(a){var h=hj.widget.feedbackData.id;hj.pageVisit.requirePageVisitId();hj.pageVisit.property.ready("pageInfo",function(l){a.action="feedback_widget_response";a.page_visit_id=l.get("pageInfo").pageVisitId;hj.ajax.post(hj.apiUrlBase+"/client/sites/"+hj.settings.site_id+ "/feedback/"+h,a)})},"data");a.savePollResponse=hj.tryCatch(function(a,h){var l=hj.widget.pollData.id;hj.pageVisit.requirePageVisitId();hj.pageVisit.property.ready("pageInfo",function(f){a.page_visit_id=f.get("pageInfo").pageVisitId;hj.ajax.post(hj.apiUrlBase+"/client/sites/"+hj.settings.site_id+"/polls/"+l,a,function(a){a.success&&a.poll_response_id&&hj.tryCatch(h,"Data")(a)})})},"data");a.saveTesterResponse=hj.tryCatch(function(a){var h=hj.widget.testersData.id;hj.pageVisit.requirePageVisitId(); hj.pageVisit.property.ready("pageInfo",function(l){a.page_visit_id=l.get("pageInfo").pageVisitId;hj.ajax.post(hj.apiUrlBase+"/client/sites/"+hj.settings.site_id+"/testers/"+h,a)})},"data");return a},"data")();hj.webSocket=hj.tryCatch(function(){var a,c,h,l,f,b={},g=!1,d=!1,q=!1,p=void 0,k=void 0,n=!1,r=null,s="";b.connect=hj.tryCatch(function(){!g&&!d&&(s=(hj.secure?"wss://":"ws://")+h()+"/api/v1/client/ws",l())},"data");b.disconnect=hj.tryCatch(function(){g&&(hj.log.debug("Disconnecting Web Socket.", "websocket"),hj.eventStream.flush(),d=g=!1,q=!0,r.close())},"data");b.isConnected=hj.tryCatch(function(){if(g){if(!k||6E5>=(new Date).getTime()-k)return!0;sessionStorage.removeItem("_hjRecordingEnabled");b.close()}return!1},"data");b.send=hj.tryCatch(function(a){k=(new Date).getTime();hj.log.debug("Sending data to Web Socket","websocket",a);r.send(a)},"data");b.close=hj.tryCatch(function(){hj.log.debug("Closing Web Socket.","websocket");r.close()},"data");l=hj.tryCatch(function(){q?(hj.log.debug("Unload event triggered, don't reconnect"), !1===n&&(n=!0,setTimeout(function(){n=q=!1},1E3))):(d=!0,hj.log.debug("Connecting to Web Socket ["+s+"]","websocket"),r=new WebSocket(s),r.onopen=a,r.onclose=c,window.addEventListener("beforeunload",hj.tryCatch(b.disconnect,"Data"),!1))},"data");f=hj.tryCatch(function(){g&&(hj.log.debug("Pinging Web Socket.","websocket"),r.send("ping"))},"data");a=hj.tryCatch(function(){hj.log.debug("Web Socket opened.","websocket");p=setInterval(f,3E4);g=!0;d=!1;hj.eventStream.flush()},"data");c=hj.tryCatch(function(a){hj.log.debug("Web Socket closed.", "websocket");a.wasClean||hj.log.warn("Websocket close was unclean: "+a.code);g&&(clearInterval(p),g=!1)},"data");h=hj.tryCatch(function(){var a;return hj.host===hj.defaults.host?(a=parseInt(m.get().slice(-10),16)%4+1,"ws"+a+".hotjar.com"):hj.host},"data");return b},"data")();hj.ajax=function(){var a={};a.get=hj.tryCatch(function(a,h,l){h=h||hj.hq.noop;if("XDomainRequest"in window&&null!==window.XDomainRequest&&10>hj.utils.ieVersion()){var f=new XDomainRequest;f._hjDontCapture=!1===l;f.open("get", a);f.onprogress=function(){};f.onload=function(){hj.tryCatch(h,"Data")(f.responseText&&hj.json.parse(f.responseText))};f.send()}else hj.hq.ajax({url:a,success:hj.tryCatch(h,"Data"),requestAnnotator:function(a){a._hjDontCapture=!1===l}})},"data");a.post=hj.tryCatch(function(a,h,l,f){l=l||hj.hq.noop;if("XDomainRequest"in window&&null!==window.XDomainRequest&&10>hj.utils.ieVersion()){var b=new XDomainRequest;b._hjDontCapture=!1===f;b.open("post",a);b.onprogress=function(){};b.onload=function(){hj.tryCatch(l, "Data")(b.responseText&&hj.json.parse(b.responseText))};b.send(hj.json.stringify(h))}else l=l||hj.hq.noop,hj.hq.ajax({url:a,type:"POST",data:hj.json.stringify(h),contentType:"application/json",success:hj.tryCatch(l,"Data"),requestAnnotator:hj.tryCatch(function(a){a._hjDontCapture=!1===f},"Data")})},"data");return a}();hj.eventStream=hj.tryCatch(function(){var a,c,h,l,f={},b=[],g="",d="",m={},p=void 0;f.expectEvents=hj.tryCatch(function(b){d!=b.key&&(d=b.key,a());b.ready("userId",function(a){g=a.get("userId"); f.flush()});b.ready("pageInfo",function(a){var b=a.get("pageInfo").pageVisitId;m[a.key]=b;f.flush()})},"data");f.expectPageContent=hj.tryCatch(function(a){var d=a.key;hj.globals.ready("pageContentId",function(){b.push({pageVisitKey:d,report_content:{page_content_id:hj.globals.get("pageContentId"),page_content_md5:hj.globals.get("pageContentMD5")}});f.flush()})});f.write=hj.tryCatch(function(a,d,g){var c;if(hj.isPreview)return f;hj.webSocket.connect();if("object"===typeof a)return hj.hq.each(a,function(a, b){f.write(a,b,!0)}),f;c=b.pop();g?c[a]=d:(c[a]=c[a]||[],c[a].push(d));b.push(c);return f},"data");f.flush=hj.tryCatch(function(){var b,d;p&&clearInterval(p);if(hj.webSocket.isConnected()&&""!=g){b=c();d=b.length;if(0 #'+c+", #"+c+' * { font-family: "Open Sans", Helvetica, Arial, sans-serif, Tahoma !important; } #'+c+" { transition-duration: .3s; opacity: 0; transform: scale(.9); } #"+ c+"."+c+"_active { opacity: 1; transform: scale(1); } #"+c+" { background: #263345; border-radius: 2px; position: fixed; z-index: 2147483646; top: 20px; left: 20px; width: 400px; padding: 25px; -webkit-box-shadow: 0 2px 4px 0 rgba(0,0,0,.3); -moz-box-shadow: 0 2px 4px 0 rgba(0,0,0,.3); box-shadow: 0 2px 4px 0 rgba(0,0,0,.3); } #"+ c+" ."+c+"_status { float: left; margin: 0 20px 0 0; border-radius: 50%; width: 50px; height: 50px; -webkit-box-shadow: 0 2px 4px 0 rgba(0,0,0,.3); -moz-box-shadow: 0 2px 4px 0 rgba(0,0,0,.3); box-shadow: 0 2px 4px 0 rgba(0,0,0,.3); } #"+ c+" ."+c+"_status_good { background: url(//<%= hjStaticHost %>/static/client/modules/assets/checkmark@2x.png) no-repeat 52% 53% #3ACC40; background-size: 25px 18px; } #"+c+" ."+c+"_status_bad { background: url(//<%= hjStaticHost %>/static/client/modules/assets/attention@2x.png) no-repeat center center #EA4031; background-size: 6px 30px; } #"+ c+" ."+c+"_status { float: left; } #"+c+" ."+c+"_content { float: left; color: #dedede; font-size: 13px; width: 78%; min-height: 50px; vertical-align: middle; } #"+ c+" ."+c+"_title { color: white; font-size: 16px; font-weight: bold; margin: 0 0 4px 0; display: inline-block } ."+c+"_close { position: absolute; top: 15px; right: 15px; font-size: 22px; color: white; cursor: pointer; line-height: 11px; } _hj-f5b2a1eb-9b07_clear { clear: both; } ", l='
×
<% if (status) { %>
">
<% } %>
<% if (title) { %> <%= title %> <% } %> <% if (message) { %>
<%= message %> <% } %>
'; a.show=function(a,b,g){a=hj.rendering.renderTemplate(h+l,{title:a,message:b,status:g||"good",hjStaticHost:new hj.rendering.TrustedString(hj.staticHost)});hj.rendering.addToDom(c,a);hj.hq("."+c+"_close").on("click",m);setTimeout(function(){hj.hq("#"+c).addClass(c+"_active")},1)};return a}()},"notifications")(); hj.tryCatch(function(){function m(a,h){var l=/(#|@|&|~|=|>|`|'|:|"|!|;|,|\?|\%|\}|\{|\.|\*|\+|\||\[|\]|\(|\)|\/|\^|\$)/g,f=h.ignoreUUIDClasses?/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/:{test:function(){return!1}},b=hj.tryCatch(function(a){var b=void 0===a.attr("data-hj-ignore-attributes"),c,f,h,l;h=function(a,b){f=hj.hq(b);for(c=0;c"+f+b)},"common"),d=function(a){var b=[];a=hj.hq.trim((a||"").replace(/\s\s+/g, " "));if("undefined"===typeof a||""===a||-1d&&(d=a,hj.eventStream.write("scroll_reach",{max_bottom:d},!0))}},"behavior-data.scrollReach.send");return a},"behavior-data.scrollReach")();m=hj.tryCatch(function(){var b={},d=!1,c=!1;b.listen=hj.tryCatch(function(){d||(hj.log.debug("Setting up scroll listeners.","events"),hj.hq(window).on("scroll",b.update),setInterval(b.send,100),0!==hj.ui.getScrollPosition().top&&b.update(), d=!0)},"behavior-data.scroll.listen");b.update=hj.tryCatch(function(){c=!0},"behavior-data.scroll.update");b.send=hj.tryCatch(function(){a&&c&&(hj.eventStream.write("scroll",{time:hj.time.getNow(),y:hj.ui.getScrollPosition().top}),c=!1)},"behavior-data.scroll.send");return b},"behavior-data.scroll")();u=hj.tryCatch(function(){var b={},d=!1,c;b.listen=hj.tryCatch(function(){d||(hj.log.debug("Setting up screen size change listeners.","events"),c=hj.ui.getWindowSize(),setInterval(b.checkResize,1E3), b.checkResize(),d=!0)},"behavior-data.viewportResize.listen");b.checkResize=hj.tryCatch(function(){var a=hj.ui.getWindowSize();if(a.width!==c.width||a.height!==c.height)c=a,b.send()},"behavior-data.viewportResize.checkResize");b.send=hj.tryCatch(function(){a&&hj.eventStream.write("viewport_resize",{time:hj.time.getNow(),w:c.width,h:c.height}).flush()},"behavior-data.viewportResize.send");return b},"behavior-data.viewportResize")();h=hj.tryCatch(function(){var b={},d=!1,c=!1,g=!1,f=[];b.listen=hj.tryCatch(function(){d|| (hj.log.debug("Setting up key press listeners.","events"),hj.hq(document).on("input","input",b.update),hj.hq(document).on("blur","input",b.send),hj.hq(document).on("input","textarea",b.update),hj.hq(document).on("blur","textarea",b.send),d=!0)},"behavior-data.keyPress.listen");b.update=hj.tryCatch(function(a){var b=hj.hq(a.target),d=b.val();g|=!1===hj.settings.recording_capture_keystrokes;g|=b.is("input[type=password]");g|=!isNaN(parseInt(d,10))&&12hj.utils.ieVersion()))&&(hj.hq.each(hj.hq("[data-hj-ignore-attributes]"),function(a,b){hj.hq(b).find("*").attr("data-hj-ignore-attributes","")}),hj.hq.each(hj.settings.heatmaps||[],function(a,d){hj.targeting.onMatch(d.targeting,function(){l.setup(d)},b)}),f.active=!1,hj.settings.record&&!(11>hj.utils.ieVersion()))){var d=!hj.features.haveFeature("always_on_rec_value")|| Math.random()<=hj.settings.rec_value,c="undefined"===typeof hj.settings.record_targeting_rules||!hj.settings.record_targeting_rules.length;a=!!sessionStorage.getItem("_hjRecordingEnabled");hj.log.debug("_hjRecordingEnabled is set to "+a,"recordings");hj.log.debug("Rec Value sampling at "+hj.settings.rec_value+"; Recording Sampled? "+d);if(a||c&&d)f.start();else if(d)hj.targeting.onMatch(hj.settings.record_targeting_rules,function(){f.start()},b)}},"behavior-data.run");hj.disableHeatmap=h.disableHeatmap; return m}(),!1)},"behavior-data")(); hj.tryCatch(function(){hj.loader.registerModule("UserBehavior",function(){var m={},a,c,h;hj.userBehavior=hj.tryCatch(function(){return{send:function(a){hj.behaviorData.tagRecording([a],!0)},setupEvents:function(){hj.features.haveFeature("user_behavior")&&(a.listen(),c.listen(),h.listen())}}},"user-behavior.userBehavior")();a=function(){var a,c;function b(){k=0;c=a=null}function g(d){if(!(document.body.clientWidth&&d.clientX>document.body.clientWidth||document.body.clientHeight&&d.clientY>document.body.clientHeight)){k++; n&&clearInterval(n);n=setTimeout(b,m.time);var g=d.clientY,h=Math.abs(d.clientX-a),g=Math.abs(g-c);Math.sqrt(Math.pow(h,2)+Math.pow(g,2))>m.distance&&b();a=d.clientX;c=d.clientY;k===m.clicks&&hj.userBehavior.send("rageclick")}}var d={},h={desktop:{time:500,distance:200,clicks:6},mobile:{time:500,distance:200,clicks:6},tablet:{time:500,distance:200,clicks:6}},m,k=0;c=a=null;var n;d.listen=function(){m=h[hj.deviceDetection.getDevice()];hj.hq(document).on("mousedown.user_behavior_rageclick",g)};d.disable= function(){hj.hq(document).on("mousedown.user_behavior_rageclick")};return d}();c=function(){function a(){h=0;m=!1}function c(){k&&clearInterval(k);k=setTimeout(a,d.time);var b=hj.hq(window).scrollTop(),f=0>n-b?"down":"up";m&&f!==m&&(h++,h===d.directionChanges&&hj.userBehavior.send("wildscroll"));m=f;n=b}var b={},g={desktop:{time:1E3,directionChanges:4},mobile:{time:1E3,directionChanges:4},tablet:{time:1E3,directionChanges:4}},d,h=0,m=!1,k,n=0;b.listen=function(){d=g[hj.deviceDetection.getDevice()]; hj.hq(document).on("scroll.user_behavior_wildscroll",c)};b.disable=function(){hj.hq(document).on("scroll.user_behavior_wildscroll")};return b}();h=function(){function a(){h=0;m.x=!1;m.y=!1}function c(b){b={x:b.clientX,y:b.clientY};var f={x:b.xa.length&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]);c=c||0;var d="#",f,h;for(h=0;3>h;h++)f=parseInt(a.substr(2*h,2),16),f=Math.round(Math.min(Math.max(0,f+255*c),255)).toString(16),d+=("00"+f).substr(f.length);return d},"common");m.disableSubmit=hj.tryCatch(function(){hj.widget.ctrl.find("#_hj-f5b2a1eb-9b07_action_submit").addClass("_hj-f5b2a1eb-9b07_btn_disabled")},"common");m.dismissWidget=hj.tryCatch(function(){hj.widget.setDone();hj.widget.ctrl.hide()},"common");m.init=hj.tryCatch(function(){hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_action_toggle_widget").on("click", hj.widget.toggleWidget);hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_action_open_widget").on("click",{state:"open"},hj.widget.changeState);hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_action_dismiss_widget").on("click",hj.widget.dismissWidget)},"common");m.enableSubmit=hj.tryCatch(function(){hj.widget.ctrl.find("#_hj-f5b2a1eb-9b07_action_submit").removeClass("_hj-f5b2a1eb-9b07_btn_disabled")},"common");m.isVeryNarrowScreen=hj.tryCatch(function(){return 450>=hj.hq(window).width()},"common");m.isNarrowScreen= hj.tryCatch(function(){return 768>hj.hq(window).width()},"common");m.isShortScreen=hj.tryCatch(function(){return 400>hj.hq(window).height()},"common");m.commonCSS=' '; return m}();hj.widgetDelay=function(){var m={},a=null;m.clear=hj.tryCatch(function(){clearTimeout(a);a=null},"hj.widgetDelay.clear");m.set=hj.tryCatch(function(c,h){m.clear();a=setTimeout(c,h)},"hj.widgetDelay.set");return m}()},"widgets")(); hj.tryCatch(function(){hj.loader.registerModule("Feedback",function(){function m(){var a,b={showMinimizedMessageTimer:function(){}},g=hj.isPreview?0:200,d=hj.hq("#_hj-f5b2a1eb-9b07_feedback_minimized_message"),h=hj.hq("#_hj-f5b2a1eb-9b07_action_submit");a=hj.hq("#_hj-f5b2a1eb-9b07_action_skip");var l=hj.hq("#_hj-f5b2a1eb-9b07_feedback");b.resetDataValues=hj.tryCatch(function(){return{comment:null,emotion:null,email:null,page_content:null,selectors:hj.widget.feedbackData.auto_screenshot?"html":null, viewport:[]}},"feedback");b.goToState=hj.tryCatch(function(a,c){c=c||0;b.currentState=a;0===c?l.attr("data-state",a):setTimeout(function(){l.attr("data-state",a)},c);switch(a){case "minimized":hj.hq("#_hj-f5b2a1eb-9b07_feedback_open").removeClass("fade");hj.widget.zIndexPositionReset();hj.widget.exitFullScreen();b.resetScreenshotState();setTimeout(function(){b.resetWidget()},c);break;case "emotion":hj.hq("#_hj-f5b2a1eb-9b07_feedback_open").addClass("fade");hj.widget.zIndexPositionTop();b.animateFaces(); b.setViewportContent();break;case "comment":(hj.widget.isPhoneOrTablet()||"phone"===hj.widget.feedbackData.previewDevice)&&hj.widget.enterFullScreen();hj.hq("#_hj-f5b2a1eb-9b07_feedback_open").addClass("fade");hj.hq("[data-emotion-option]").addClass("emotion_small");!hj.isPreview&&"desktop"===hj.utils.deviceType()&&hj.hq("#_hj-f5b2a1eb-9b07_emotion_comment").focus();break;case "email":hj.hq("#_hj-f5b2a1eb-9b07_feedback_open").addClass("fade"),b.resetScreenshotState(),h.addClass("_hj-f5b2a1eb-9b07_btn_disabled"), hj.isPreview||hj.hq("#_hj-f5b2a1eb-9b07_email").focus()}},"feedback");b.submitState=hj.tryCatch(function(a){a=a||b.currentState;switch(a){case "emotion":b.data.emotion=hj.hq("#_hj-f5b2a1eb-9b07_state-1").attr("data-chosen-emotion");b.canSendResponse=!0;b.setViewportContent();b.goToState("comment");break;case "comment":b.data.comment=hj.hq("#_hj-f5b2a1eb-9b07_emotion_comment").val();""===b.data.comment&&(b.data.comment=null);b.setViewportContent();!1===hj.widget.feedbackData.content.email?b.endIncomingFeedback(!0): b.goToState("email");break;case "email":b.validateCurrentState()&&(b.data.email=hj.hq('[data-bind="email"]').val(),b.endIncomingFeedback(!0))}},"feedback");b.skipCurrentState=hj.tryCatch(function(){"email"===b.currentState&&(b.data.email=null,b.endIncomingFeedback(!0))},"feedback");b.validateCurrentState=hj.tryCatch(function(){var a=!1,c=hj.hq('[data-bind="comment"]').val(),d=hj.hq('[data-bind="email"]').val();switch(b.currentState){case "comment":c&&(a=!0);break;case "email":d&&hj.utils.validateEmail(d)&& (a=!0)}return a},"feedback");b.startIncomingFeedback=hj.tryCatch(function(){var a=hj.widget.feedbackData.position,c=hj.cookie.get("_hjShownFeedbackMessage"),f=hj.isPreview?0:2E3;b.goToState("minimized");if(("bottom_left"===a||"bottom_right"===a)&&(!c||hj.isPreview))d.attr("data-message","initial"),b.showMinimizedMessageTimer=setTimeout(function(){b.setMinimizedMessageVisibility(!0);hj.isPreview||hj.cookie.set("_hjShownFeedbackMessage",!0,1)},f)},"feedback");b.endIncomingFeedback=hj.tryCatch(function(a){b.canSendResponse&& b.sendFeedbackResponse();b.goToState("minimized",g);a&&b.showThankYouMessage()},"feedback");b.sendFeedbackResponse=hj.tryCatch(function(){var a;a={response:{emotion:parseInt(b.data.emotion,10),message:b.data.comment,email:b.data.email}};null!==b.data.selectors&&(a.page_content=b.data.page_content,a.viewport=b.data.viewport,a.selectors=b.data.selectors);hj.isPreview||hj.request.saveFeedbackResponse(a)},"feedback");b.setViewportContent=hj.tryCatch(function(){var a=hj.hq("body").hasClass("_hj-f5b2a1eb-9b07_position_fixed"), c=hj.ui.getScrollPosition(),d=hj.ui.getWindowSize(),f=c.top,c=c.left,g=f+d.height,d=c+d.width;if(!a&&(b.data.viewport[0]!==f||b.data.viewport[1]!==c||b.data.viewport[2]!==g||b.data.viewport[3]!==d))b.data.page_content=hj.html.getPageContent("#_hj_feedback_container"),b.data.viewport=[f,c,g,d]},"feedback");b.setScreenshotState=hj.tryCatch(function(a){var c=hj.hq("body"),d=hj.hq("#_hj-f5b2a1eb-9b07_toolset_action_select");if(!hj.isPreview)switch(l.attr("data-screenshot",a),a){case "default":b.data.selectors= b.resetDataValues().selectors;l.removeAttr("data-screenshot");d.removeClass("_hj-f5b2a1eb-9b07_toolset_action_active");hj.widget.isPhoneOrTablet()&&c.addClass("_hj-f5b2a1eb-9b07_position_fixed");b.cancelElementHighlighting();hj.ui.enableScrolling();break;case "element":b.resetHighlight();b.enableElementHighlighting();hj.ui.enableScrolling();c.removeClass("_hj-f5b2a1eb-9b07_position_fixed");break;case "elementSelected":hj.widget.isPhoneOrTablet()&&(b.setViewportContent(),c.addClass("_hj-f5b2a1eb-9b07_position_fixed")), !hj.isPreview&&"desktop"===hj.utils.deviceType()&&hj.hq("#_hj-f5b2a1eb-9b07_emotion_comment").focus(),b.cancelElementHighlighting(),d.addClass("_hj-f5b2a1eb-9b07_toolset_action_active")}},"feedback");b.enableElementHighlighting=hj.tryCatch(function(){function a(c){var f=hj.hq(c)[0];d(c)&&b.highlightElement(f)}function c(a,d){b.data.selectors=[hj.selector().get(d)];b.setScreenshotState("elementSelected");hj.ui.disableScrolling(function(){b.highlightElement(hj.hq(a)[0])})}function d(a){return!hj.hq(a).hasClass("_hj-f5b2a1eb-9b07_feedback_selection_ignore")} var f=0,g=0;hj.hq("html").attr("data-hotjar-cursor-pointer","true");hj.hq("body *").on("mouseover.feedback",hj.tryCatch(function(b){b.stopPropagation();a(b.target);"desktop"===hj.utils.deviceType()&&(f=b.clientX,g=b.clientY)},"feedback"));hj.hq(document).on("scroll.feedback resize.feedback",hj.tryCatch(function(){a(document.elementFromPoint(f,g))},"feedback"));setTimeout(function(){hj.hq("body *").on("mousedown.feedback",hj.tryCatch(function(b){b.stopPropagation();b.preventDefault();d(b.target)&& (a(b.target),c(b.target,hj.hq(this)))},"feedback"))},0)},"feedback");b.cancelElementHighlighting=hj.tryCatch(function(){hj.hq("body *").off("mouseover.feedback mousedown.feedback");hj.hq(document).off("scroll.feedback resize.feedback");hj.hq("html").removeAttr("data-hotjar-cursor-pointer")},"feedback");b.resetHighlight=hj.tryCatch(function(){var a=document.getElementById("_hj-f5b2a1eb-9b07_feedback_content_dimmer_top"),b=document.getElementById("_hj-f5b2a1eb-9b07_feedback_content_dimmer_right"),c= document.getElementById("_hj-f5b2a1eb-9b07_feedback_content_dimmer_bottom"),d=document.getElementById("_hj-f5b2a1eb-9b07_feedback_content_dimmer_left"),f=document.getElementById("_hj-f5b2a1eb-9b07_feedback_content_highlighter");hj.hq(a).removeAttr("style");hj.hq(b).removeAttr("style");hj.hq(c).removeAttr("style");hj.hq(d).removeAttr("style");hj.hq(f).removeAttr("style")});b.highlightElement=hj.tryCatch(function(a){var b=a.getBoundingClientRect();a=b.top;var c=b.left,d=b.width,b=b.height,f=document.getElementById("_hj-f5b2a1eb-9b07_feedback_content_dimmer_top"), g=document.getElementById("_hj-f5b2a1eb-9b07_feedback_content_dimmer_right"),h=document.getElementById("_hj-f5b2a1eb-9b07_feedback_content_dimmer_bottom"),l=document.getElementById("_hj-f5b2a1eb-9b07_feedback_content_dimmer_left"),m=document.getElementById("_hj-f5b2a1eb-9b07_feedback_content_highlighter"),p=8,q=a-p,y=c-8,z=b+2*p,A=d+16;0>a&&(z=b+a+p,p=0,b+=a,q=a=1);f.style.top="0";f.style.right="0";f.style.left="0";f.style.height=Math.max(0,q)+"px";g.style.top=q+"px";g.style.right="0";g.style.left= y+A+"px";g.style.bottom="0";h.style.top=q+z+"px";h.style.width=Math.max(0,A)+"px";h.style.left=y+"px";h.style.bottom="0";l.style.top=q+"px";l.style.width=Math.max(0,y)+"px";l.style.left="0";l.style.bottom="0";0>b?m.style.top="-400px":(m.style.top=a-2-p+"px",m.style.left=c-2-p+"px",m.style.width=d-4+16+"px",m.style.height=b-4+2*p+"px")},"feedback");b.showThankYouMessage=hj.tryCatch(function(){var a=hj.isPreview?0:500;hj.widget.feedbackData.content.thankyou&&(d.attr("data-message","thankyou"),b.setMinimizedMessageVisibility(!0), setTimeout(function(){b.wink()},a),hj.isPreview||setTimeout(function(){b.setMinimizedMessageVisibility(!1)},5E3))},"feedback");b.setMinimizedMessageVisibility=hj.tryCatch(function(a){a?l.attr("data-show-message","true"):(clearTimeout(b.showMinimizedMessageTimer),l.removeAttr("data-show-message"))},"feedback");b.resetWidget=hj.tryCatch(function(){b.canSendResponse=!1;b.currentState=null;b.data=b.resetDataValues();hj.widget.enableSubmit();hj.widget.ctrl.find("#_hj-f5b2a1eb-9b07_state-1").removeAttr("data-chosen-emotion"); hj.hq("#_hj-f5b2a1eb-9b07_toolset_action_select").removeClass("_hj-f5b2a1eb-9b07_toolset_action_active");hj.hq("[data-emotion-option]").removeClass("fade").removeClass("fadeTransition").removeClass("emotion_small");h.addClass("_hj-f5b2a1eb-9b07_btn_disabled");hj.widget.ctrl.find('[data-bind="comment"]').val("");hj.widget.ctrl.find('[data-bind="email"]').val("");hj.hq("body *").off("mouseover.feedback mousedown.feedback");hj.hq(document).off("scroll.feedback resize.feedback")},"feedback");b.resetScreenshotState= hj.tryCatch(function(){l.attr("data-screenshot","");setTimeout(function(){l.removeAttr("data-screenshot")},g);hj.hq("html").removeAttr("data-hotjar-cursor-pointer");hj.ui.enableScrolling()},"feedback");b.animateFaces=hj.tryCatch(function(){var a=hj.hq("[data-emotion-option]");a.addClass("fadeTransition");setTimeout(function(){a.addClass("fade")},g);setTimeout(function(){a.removeClass("fadeTransition")},4*g)},"feedback");b.wink=hj.tryCatch(function(){var a=hj.hq("._hj-f5b2a1eb-9b07_hotjar_buddy"); a.attr("data-face","wink");setTimeout(function(){a.attr("data-face","happy")},800)},"feedback");hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_feedback_minimized_message_close").on("click",hj.tryCatch(function(a){a.stopPropagation();b.setMinimizedMessageVisibility(!1)},"feedback"));hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_hotjar_buddy, ._hj-f5b2a1eb-9b07_feedback_minimized_message, ._hj-f5b2a1eb-9b07_feedback_minimized_label").on("click",hj.tryCatch(function(){b.goToState("emotion");b.setMinimizedMessageVisibility(!1)}, "feedback"));hj.widget.ctrl.find("#_hj-f5b2a1eb-9b07_feedback_open_close, #_hj-f5b2a1eb-9b07_feedback_open_close_phone").on("click",hj.tryCatch(function(){b.endIncomingFeedback()},"feedback"));hj.widget.ctrl.find('[data-bind="emotion"]').on("click",hj.tryCatch(function(){var a=hj.hq(this).attr("data-emotion-option");hj.hq("#_hj-f5b2a1eb-9b07_state-1").attr("data-chosen-emotion",a);b.submitState("emotion")},"feedback"));h.on("click",hj.tryCatch(function(){hj.hq(this).hasClass("_hj-f5b2a1eb-9b07_btn_disabled")|| b.submitState()},"feedback"));a.on("click",hj.tryCatch(function(){b.skipCurrentState()},"feedback"));hj.widget.ctrl.find('[data-bind="email"]').on("keyup change",hj.tryCatch(function(a){b.validateCurrentState()?hj.widget.enableSubmit():hj.widget.disableSubmit();13===a.keyCode&&b.submitState()},"feedback"));hj.widget.ctrl.find('[data-bind="comment"]').on("keyup change",hj.tryCatch(function(){b.validateCurrentState()?hj.widget.enableSubmit():hj.widget.disableSubmit()},"feedback"));hj.widget.ctrl.find("#_hj-f5b2a1eb-9b07_feedback_content_highlighter, #_hj-f5b2a1eb-9b07_toolset_action_select").on("click", hj.tryCatch(function(){b.setScreenshotState("element")},"feedback"));hj.widget.ctrl.find("#_hj-f5b2a1eb-9b07_feedback_top_message_select_close span, #_hj-f5b2a1eb-9b07_feedback_content_highlighter_close").on("click",hj.tryCatch(function(a){b.setScreenshotState("default");a.stopPropagation()},"feedback"));a=hj.widget.feedbackData.activeStepInPreview;hj.isPreview&&(b.resetWidget(),hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_transition").addClass("_hj-f5b2a1eb-9b07_transition_duration_0"),"initial"===a|| !a?b.startIncomingFeedback():"thankYou"===a?b.endIncomingFeedback(!0):"email"===a&&!1===hj.widget.feedbackData.content.email?b.goToState("emotion"):b.goToState(a));hj.hq(window).on("resize",function(){hj.tryCatch(c(),"feedback")});hj.tryCatch(c(),"feedback");hj.isPreview||b.startIncomingFeedback()}function a(){var a=100', hj.widget.commonCSS,'
\x3c!-- Minimized State --\x3e
<%=hj.widget._("feedback")%>
<%= feedback.content.initial %> <%= feedback.content.thankyou %>
\x3c!-- Opened State --\x3e
\x3c!-- STEP 1: EMOTION --\x3e

<%= feedback.content.emotion %>

<%=hj.widget._("hate")%>
<%=hj.widget._("dislike")%>
<%=hj.widget._("neutral")%>
<%=hj.widget._("like")%>
<%=hj.widget._("love")%>
<%=hj.widget._("select_the_area")%>
\x3c!-- STEP 2: EMAIL --\x3e

<%= feedback.content.email %>

\x3c!-- FOOTER --\x3e
\x3c!-- PAGE HIGHLIGHTER --\x3e
<%=hj.widget._("select_the_area")%>
\x3c!-- DIMMERS (OVERLAY) + ELEMENT HIGHLIGHTER --\x3e
'].join(""); h.run=hj.tryCatch(function(c){11>hj.utils.ieVersion()||hj.hq.each(hj.settings.feedback_widgets||[],function(b,g){hj.targeting.onMatch(g.targeting,hj.tryCatch(function(){hj.log.debug("Feedback widget #"+g.id+" has matched.","feedback");hj.widget.data&&!(hj.widget.data.id===g.id&&"incoming"===hj.widget.data.type)?hj.log.debug("Another feedback widget is already present.","feedback"):(g.created_epoch_time-=31536E4,hj.widget.addMatchingWidget("incoming",g.id,g.created_epoch_time,function(){hj.widget.feedbackData= g;hj.rendering.callAccordingToCondition(hj.widget.feedbackData,"feedback",hj.tryCatch(a,"feedback"))},h.remove))}),c)})},"feedback");h.remove=hj.tryCatch(function(a){hj.widget.feedbackData?(0=k)k=0;else if(8>=k)k=1;else if(10>=k)k=2;else throw Error("Got unexpected NPS answer: "+a);b.push({question:c(f.text),answer:a,comment:null});break;case "single-open-ended-multiple-line":case "single-open-ended-single-line":a=h.find("input[name=_hj-f5b2a1eb-9b07_question_"+ hj.widget.currentQuestionIndex+"_answer]").val();k=null;void 0===a&&(a=h.find("textarea[name=_hj-f5b2a1eb-9b07_question_"+hj.widget.currentQuestionIndex+"_answer]").val()||"");b.push({question:c(f.text),answer:a,comment:null});break;default:throw Error("Unhandled question type: "+f.type);}a="undefined"===typeof g[d]?{action:"create_poll_response",utk:hj.cookie.get("hubspotutk"),response_content:hj.json.stringify({version:4,answers:b}),poll_index:d}:{action:"update_poll_response",utk:hj.cookie.get("hubspotutk"), response_content:hj.json.stringify({version:4,answers:b}),poll_response_id:g[d]};b&&(hj.isPreview||(hj.request.savePollResponse(a,function(a){g[a.poll_index]=a.poll_response_id}),hj.widget.setDone()),hj.widget.goToNextQuestion(k))}},"polls");hj.widget.goToNextQuestion=hj.tryCatch(function(a){var b=hj.widget.pollData.content.questions[hj.widget.currentQuestionIndex],c=hj.hq(hj.hq("#_hj-f5b2a1eb-9b07_question_content_"+hj.widget.currentQuestionIndex)[0]);switch(b.type){case "single-close-ended":case "multiple-close-ended":c.find("._hj-f5b2a1eb-9b07_button_radio_checkbox_active").removeClass("_hj-f5b2a1eb-9b07_button_radio_checkbox_active"); c.find("._hj-f5b2a1eb-9b07_with_comment").find("textarea").val("");break;case "net-promoter-score":c.find("._hj-f5b2a1eb-9b07_button_score_active").removeClass("_hj-f5b2a1eb-9b07_button_score_active");break;case "single-open-ended-multiple-line":case "single-open-ended-single-line":c.find("[name=_hj-f5b2a1eb-9b07_question_"+hj.widget.currentQuestionIndex+"_answer]").val("");break;default:throw Error("Unhandled question type: "+b.type);}if("thankYou"===b.next)hj.widget.goToQuestion("thankYou");else if("byAnswer"=== b.next)hj.widget.goToQuestion(b.nextByAnswer[a]);else if(0==b.next.indexOf("question:"))hj.widget.goToQuestion(b.next);else if("byOrder"===b.next||"undefined"===typeof b.next)hj.widget.goToQuestion("byOrder");else throw Error("Unknown question.next value: "+b.next);},"polls");hj.widget.goToQuestion=hj.tryCatch(function(a){switch(a){case "thankYou":hj.widget.changeState(!1,"thankyou");return;case "byOrder":if(hj.widget.pollData.content.questions.length===hj.widget.currentQuestionIndex+1){hj.widget.changeState(!1, "thankyou");return}a=hj.widget.currentQuestionIndex+1;break;default:a="string"===typeof a&&-1!==a.indexOf(":")?parseInt(a.split(":")[1],10):a}hj.widget.ctrl.find("#_hj-f5b2a1eb-9b07_question_text_"+hj.widget.currentQuestionIndex).addClass("_hj-f5b2a1eb-9b07_hidden");hj.widget.ctrl.find("#_hj-f5b2a1eb-9b07_question_content_"+hj.widget.currentQuestionIndex).addClass("_hj-f5b2a1eb-9b07_hidden");hj.widget.currentQuestionIndex=a;hj.widget.ctrl.find("#_hj-f5b2a1eb-9b07_question_text_"+hj.widget.currentQuestionIndex).removeClass("_hj-f5b2a1eb-9b07_hidden"); hj.widget.ctrl.find("#_hj-f5b2a1eb-9b07_question_content_"+hj.widget.currentQuestionIndex).removeClass("_hj-f5b2a1eb-9b07_hidden");hj.widget.disableSubmit()},"polls");hj.widget.setDone=hj.tryCatch(function(){hj.isPreview||"always"!==hj.widget.pollData.persist_condition&&hj.cookie.add("_hjDonePolls",hj.widget.pollData.id)},"polls");hj.widget.setMinimized=hj.tryCatch(function(){hj.isPreview||hj.cookie.add("_hjMinimizedPolls",hj.widget.pollData.id)},"polls");hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_button_radio_checkbox textarea").on("click", hj.tryCatch(function(a){a.stopPropagation()},"polls"));hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_button_radio").on("click",hj.tryCatch(function(){var b=hj.hq(this),c=b.find("._hj-f5b2a1eb-9b07_input_field");hj.hq(hj.hq("#_hj-f5b2a1eb-9b07_question_content_"+hj.widget.currentQuestionIndex)[0]).find("._hj-f5b2a1eb-9b07_button_radio_checkbox").removeClass("_hj-f5b2a1eb-9b07_button_radio_checkbox_active");b.addClass("_hj-f5b2a1eb-9b07_button_radio_checkbox_active");c.focus();setTimeout(function(){a()?hj.widget.enableSubmit(): hj.widget.disableSubmit()},0)},"polls"));hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_button_checkbox").on("click",hj.tryCatch(function(){var b=hj.hq(this),c=b.find("._hj-f5b2a1eb-9b07_input_field");b.toggleClass("_hj-f5b2a1eb-9b07_button_radio_checkbox_active");c.focus();setTimeout(function(){a()?hj.widget.enableSubmit():hj.widget.disableSubmit()},0)},"polls"));hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_button_score").on("click",hj.tryCatch(function(){var a=hj.hq(this);hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_button_score").removeClass("_hj-f5b2a1eb-9b07_button_score_active"); a.addClass("_hj-f5b2a1eb-9b07_button_score_active");hj.widget.enableSubmit()},"polls"));hj.widget.ctrl.find("._hj-f5b2a1eb-9b07_input_field").on("keyup",hj.tryCatch(function(){var b=hj.widget.ctrl.find("#_hj-f5b2a1eb-9b07_question_content_"+hj.widget.currentQuestionIndex);("single-open-ended-multiple-line"===b.attr("_hj_question_type")||"single-open-ended-single-line"===b.attr("_hj_question_type")?0"+a+"").text()}function h(a){hj.hq.each(a.content.questions,function(a,b){b.answers&&hj.hq.each(b.answers,function(a,b){b.index=a})})}function l(a){hj.hq.each(a.content.questions,function(a,b){b.randomize_answer_order&&hj.utils.shuffle(b.answers)})}var f={},b=[],g=[],d=0,q=['
', hj.widget.commonCSS,'

<% for (var q = 0; q < poll.questions.length; q++) { %> <%= poll.questions[q].text %> <% } %>

<% for (var q = 0; q < poll.questions.length; q++) { %>
<% if (poll.questions[q].type === "single-close-ended") { %>
<% for (var i = 0; i < poll.questions[q].answers.length; i++) { %>
<% if (poll.questions[q].answers.length > 1) { %> <%= poll.questions[q].answers[i].text %>
<% } %>
<% } %>
<% } else if (poll.questions[q].type === "multiple-close-ended") { %>
<% for (var i = 0; i < poll.questions[q].answers.length; i++) { %>
<% if (poll.questions[q].answers.length > 1) { %> <%= poll.questions[q].answers[i].text %>
<% } %>
<% } %>
<% } else if (poll.questions[q].type === "single-open-ended-single-line") { %>
" />
<% } else if (poll.questions[q].type === "single-open-ended-multiple-line") { %>
<% } else if (poll.questions[q].type === "net-promoter-score") { %>
    <% for (var i = 0; i < 11; i++) { %>
  • <%=i%>
  • <% } %>
<%= poll.questions[q].labels[0].text %>
<%= poll.questions[q].labels[1].text %>
<% } %>
<% } %>

<%= poll.thankyou %>

'].join(""); f.run=hj.tryCatch(function(b){hj.hq.each(hj.settings.polls||[],function(c,d){hj.targeting.onMatch(d.targeting,function(){hj.log.debug("Poll #"+d.id+" has matched.","poll");hj.cookie.find("_hjDonePolls",d.id)?hj.log.debug("Poll was already submitted.","poll"):hj.widget.addMatchingWidget("poll",d.id,d.created_epoch_time,function(){hj.tryCatch(h,"polls")(d);hj.tryCatch(l,"polls")(d);hj.widget.pollData=d;hj.tryCatch(hj.rendering.callAccordingToCondition,"polls")(hj.widget.pollData,"poll",a)},f.remove)}, b)})},"polls");f.remove=hj.tryCatch(function(a){hj.widget.pollData?(0hj.hq(window).width()?hj.survey.ctrl.addClass("_hj-f5b2a1eb-9b07_survey_full"):hj.survey.ctrl.removeClass("_hj-f5b2a1eb-9b07_survey_full")}var h={},l='
<%= survey.title %>
<%= survey.description %>
<%= survey.button %>
<% if (survey.effectiveShowBranding) { %>
Not using Hotjar yet?
<% } %>
'; h.run=hj.tryCatch(function(a){hj.hq.each(hj.settings.surveys||[],function(b,c){hj.targeting.onMatch(c.targeting,hj.tryCatch(function(){hj.log.debug("Survey #"+c.id+" has matched.","survey");hj.cookie.find("_hjClosedSurveyInvites",c.id)?hj.log.debug("Survey was already viewed.","survey"):hj.widget.addMatchingWidget("survey",c.id,c.created_epoch_time,function(){hj.survey.data=c;hj.rendering.callAccordingToCondition(hj.survey.data,"survey",m)},h.remove)},"surveys"),a)})},"surveys");h.remove=hj.tryCatch(function(a){hj.survey.data? (0',hj.widget.commonCSS,'

<%= testersWidget.invitation %>

<%= testersWidget.description %>

<% if (testersWidget.fields.name) { %> " data-bind /> <% } %>
class="<%=p%>_double_control" <% } %>> <% if (testersWidget.fields.age) { %> " data-bind /> <% } %> <% if (testersWidget.fields.city) { %> " data-bind /> <% } %>
<% if (testersWidget.fields.email) { %> " data-bind /> <% } %> <% if (testersWidget.fields.phone) { %> " data-bind /> <% } %> <% if (testersWidget.fields.sex) { %>
<%= hj.widget._("male")%>
<%= hj.widget._("female")%>
<% } %>

<%= testersWidget.thankyou %>

'].join(""); c.run=hj.tryCatch(function(h){hj.hq.each(hj.settings.testers_widgets||[],function(f,b){hj.targeting.onMatch(b.targeting,function(){hj.log.debug("Tester #"+b.id+" has matched.","tester");hj.cookie.find("_hjDoneTestersWidgets",b.id)?hj.log.debug("Tester was already submitted.","tester"):hj.widget.addMatchingWidget("tester",b.id,b.created_epoch_time,function(){hj.widget.testersData=b;hj.tryCatch(hj.rendering.callAccordingToCondition,"testers")(hj.widget.testersData,"testersWidget",a)},c.remove)},h)})}, "testers");c.remove=hj.tryCatch(function(a){hj.widget.testersData?(0parseInt(d);throw Error("Invalid selector_type: "+m.selector_type);},"forms"),d=hj.tryCatch(function(a){hj.log.debug("Saving forms using manual tracking: "+hj.json.stringify(a),"forms");sessionStorage.setItem("_hjFormsManualTracking",hj.json.stringify(a))}, "forms"),q=hj.tryCatch(function(){var a=hj.json.parse(sessionStorage.getItem("_hjFormsManualTracking"))||[];a.length&&hj.log.debug("Getting forms using manual tracking: "+hj.json.stringify(a),"forms");return a},"forms"),p=hj.tryCatch(function(a){hj.hq.inArray(a.id,h)||(h.push(a.id),hj.log.debug("Form using manual tracking added: form[id="+a.id+"]","forms"),d(h))},"forms"),k=hj.tryCatch(function(){hj.log.debug("Saving active form: form[id="+m.id+"]","forms");sessionStorage.setItem("_hjForm",hj.json.stringify(m))}, "forms"),n=hj.tryCatch(function(){return Boolean(sessionStorage.getItem("_hjForm"))},"forms"),r=hj.tryCatch(function(){var a=sessionStorage.getItem("_hjForm"),b;sessionStorage.removeItem("_hjForm");a=hj.json.parse(a);b=!g(a.selector,a.selector_type)&&hj.targeting.ruleMatches(a.targeting,document.referrer);s(a,b,!0)},"forms"),s=hj.tryCatch(function(a,b,c){c||p(m);if(!c||!hj.hq.inArray(a.id,h))hj.eventStream.write({form_id:a.id,form_event:b?"form_submit_successful":"form_submit_failed"}).flush()},"forms"), w=hj.tryCatch(function(){c=new Date},"forms"),u=hj.tryCatch(function(a,b){c&&(hj.eventStream.write({form_id:m.id,form_field_event:{form_field_id:b.id,interaction_time:new Date-c,content_hash:hj.md5(hj.hq(a).val())}}).flush(),c=null)},"forms"),t=hj.tryCatch(function(a,b){hj.eventStream.write({form_id:m.id,form_field_event:{form_field_id:b.id,interaction_time:null,content_hash:hj.md5(hj.hq(a).val())}}).flush()},"forms"),v=hj.tryCatch(function(a,b){var c=f(b),d=[],g;for(g=0;gh);k+=1)if(gb;++b){var c=a.trim(h[b]).match(/[^\.]+/i)[0];var d=a(this), k=c,c=f,d=g?d.data("events"):a._data(d[0]).events,k=d[k];g?c?d.live.unshift(d.live.pop()):k.unshift(k.pop()):(d=c?k.splice(k.delegateCount-1,1)[0]:k.pop(),k.splice(c?0:k.delegateCount||0,0,d))}})}function c(d){a.fn[d+"First"]=function(){var c=a.makeArray(arguments).shift();return c&&(a.fn[d].apply(this,arguments),b(this,c)),this}}var d=a.fn.jquery.split("."),f=parseInt(d[0]),d=parseInt(d[1]),g=1>f||1==f&&7>d;c("bind");c("one");a.fn.delegateFirst=function(){var c=a.makeArray(arguments),d=c[1];return d&& (c.splice(0,2),a.fn.delegate.apply(this,arguments),b(this,d,!0)),this};a.fn.liveFirst=function(){var b=a.makeArray(arguments);return b.unshift(this.selector),a.fn.delegateFirst.apply(a(document),b),this};g||(a.fn.onFirst=function(c,d){var f=a(this),g="string"==typeof d;if(a.fn.on.apply(f,arguments),"object"==typeof c)for(type in c)c.hasOwnProperty(type)&&b(f,type,g);else"string"==typeof c&&b(f,c,g);return f})}(jQuery),x(window.jQuery.fn.jquery,"1.7"))b.onFirst("submit",k);else x(window.jQuery.fn.jquery, "1.3")&&b.liveFirst("submit",k);else hj.hq(b).on("submit",k);else hj.log.debug('Could not find form with selector "'+m.selector+'".',"forms")},"forms");hj.forms=hj.tryCatch(function(){return{cmdFormSubmitSuccessful:function(){null!==m&&s(m,!0,!1)},cmdFormSubmitFailed:function(){null!==m&&s(m,!1,!1)}}},"forms")();a.run=hj.tryCatch(function(a){var c=n();if(hj.includedInSample&&(b(a),m||c))h=q(),hj.pageVisit.requirePageVisitId(),hj.eventStream.expectEvents(hj.pageVisit.property),hj.eventStream.write({form_id:m.id, form_event:"form_helo"}).flush(),c?r():m&&(l("focus",["*"],["checkbox","radio"],w),l("blur",["*"],["checkbox","radio"],u),l("change",["checkbox"],[],v),l("focus",["radio"],[],t),B())},"forms");return a}())},"forms")(); hj.tryCatch(function(){"undefined"===typeof hj.scriptLoaded&&(hj._init=hj.tryCatch(function(){var m={_determineIncludedInSample:function(){var a=new hj.fingerprinter,c=hj.url.getParameter("hjIncludeInSample"),h=hj.cookie.get("_hjIncludedInSample");if(h)hj.includedInSample="1"===h,hj.log.debug("User is included in sample","init");else switch(c){case "0":hj.includedInSample=!1;hj.log.debug("You have set includedInSample to false.","init");break;case "1":hj.includedInSample=!0;hj.cookie.set("_hjIncludedInSample", hj.includedInSample?"1":"0",0);hj.log.debug("You have set includedInSample to true.","init");break;default:hj.includedInSample=a.compareRatio(hj.settings.r||1),hj.includedInSample&&hj.cookie.set("_hjIncludedInSample","1",0),hj.log.debug("Included in sample: "+hj.includedInSample,"init",{r:hj.settings.r,fingerprintValue:a.getAsNumber()})}},_verifyInstallation:function(){var a=hj.url.getParameter("hjVerifyInstall"),c;try{c=sessionStorage.getItem("hjVerifyInstall")}catch(h){}if(a||c){hj.verifyInstall= parseInt(a||c);try{sessionStorage.setItem("hjVerifyInstall",a||c)}catch(l){}hj.includedInSample||hj.pageVisit.track();hj.verifyInstall===hjSiteSettings.site_id?(hj.notification.show("Hotjar installation verified.","The Hotjar tracking code has been properly installed on this page. Browse your site in this window if you wish to verify installation on any other pages.","good"),hj.xcom.send("scriptActive",[])):hj.notification.show("Hotjar installation invalid.","The tracking code you are trying to verify does not match the one installed on this page. Please make sure you install the correct tracking code provided for this site.", "bad")}}};m._browserIsSupported=hj.tryCatch(function(){return 9>hj.utils.ieVersion()?(hj.log.debug("IE < 9 is not supported.","init"),"1"===hj.url.getParameter("hjVerifyInstallation")&&hj.notification.show("Hotjar installation cannot be verified.","Sorry \u2013 your browser is not supported.","bad"),!1):!0},"init");m._checkDebug=hj.tryCatch(function(){var a=hj.url.getParameter("hjDebug");if(""!==a)if(!0==a)hj.debug.on(!0);else hj.debug.off();if("true"==hj.cookie.get("hjDebug"))hj.debug.on(!1)},"init"); m._canUseCookies=hj.tryCatch(function(){if(!navigator.cookieEnabled||!("cookie"in document))return!1;if(0hj.utils.ieVersion()&&hj.placeholderPolyfill&&c.push("https://"+hj.staticHost+"/static/vendor/placeholders/3.0.2/placeholders.min.js");hj.loader.loadScripts(c,hj.tryCatch(function(){m._runPage(a);m._verifyInstallation();hj.command.activate();"1"===hj.url.getParameter("hjIncludeInSample")&&hj.notification.show("Hotjar tracking active.", "Hotjar tracking is active for your session.","good")},"init.run"))})},"init");m.reinit=hj.tryCatch(function(a){hj.currentUrl=a;hj.widgetDelay.clear();hj.disableHeatmap();hj.widget.emptyMatchingWidgets();m._runPage(a)},"init");m._runPage=hj.tryCatch(function(a){hj.pageVisit.setup(a);hj.hq.each(hj.loader.getModules(),function(c,h){if(!hj.optOut||h.nonTracking)hj.log.debug("Running module "+h.name,"init"),h.module.run(a)});hj.widget.runLatestMatchingWidget();hj.includedInSample&&!hj.optOut&&hj.pageVisit.track(a)}, "init");return m},"init")(),hj.hq(document).ready(function(){hj.log.debug("Document is ready. Initializing...","init");hj.scriptContextId=hj.utils.uuid4();hj._init.run(location.href)}))},"init")();