!function(){var e={init:function(){var e=localStorage.getItem("zigpoll-session-storage"),t=window.sessionStorage.getItem("zigpoll-session-key");function n(){e={data:{},updatedAt:new Date,sessionKey:t},localStorage.setItem("zigpoll-session-storage",JSON.stringify(e))}if(t||(t=function(e){e=e||10;for(var t="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=0;o3600&&e.sessionKey!==t?n():this.stamp()}catch(e){return n()}},stamp:function(){var e=localStorage.getItem("zigpoll-session-storage");return(e=JSON.parse(e)).updatedAt=new Date,e.sessionKey=window.sessionStorage.getItem("zigpoll-session-key"),localStorage.setItem("zigpoll-session-storage",JSON.stringify(e))},getItem:function(e){var t=localStorage.getItem("zigpoll-session-storage");return(t=JSON.parse(t)).data[e]},setItem:function(e,t){var n=localStorage.getItem("zigpoll-session-storage");return(n=JSON.parse(n)).data[e]=t,localStorage.setItem("zigpoll-session-storage",JSON.stringify(n))}};e.init();try{void 0===window.hasPrintedZigpollMessage&&(console.log("%c⚡ Surveys powered by Zigpoll [https://www.zigpoll.com]","font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 4px; border: 1px solid #dfdfdf;"),window.hasPrintedZigpollMessage=!0)}catch(e){}e.getItem("zigpoll-first-visit-timestamp")||e.setItem("zigpoll-first-visit-timestamp",new Date);var t=e.getItem("zigpoll-page-views")||0;function n(){document.cmpblockerCreateElement&&(document.createElement=document.cmpblockerCreateElement);var e,t,n,o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.src="//cdn.zigpoll.com/static/js/embed.js",document.head.appendChild(o),e="https://use.typekit.net/qke8lxz.css",t=document.getElementsByTagName("head")[0],(n=document.createElement("link")).rel="stylesheet",n.type="text/css",n.href=e,n.media="all",t.appendChild(n)}function o(){return(window.Zigpoll||{}).accountId}function i(){return(window.Zigpoll||{}).pollId}function a(){return(window.Zigpoll||{}).activityId}function s(t){var n={};o()&&(n.accountId=o()),i()&&(n.pollId=i()),a()&&(n.activityId=a()),n.path=window.location.pathname,n.href=window.document.location.href,n.pageViews=e.getItem("zigpoll-page-views"),n.sessions=localStorage.getItem("zigpoll-sessions"),n.lang=function(){if(document.documentElement.lang)return document.documentElement.lang.split("-").shift();let e=window.navigator.userLanguage||window.navigator.language;return e||(e="en"),e=e.split("-").shift(),e}();var s=new XMLHttpRequest;s.onreadystatechange=function(){if(4===s.readyState){var e=s.status;0===e||e>=200&&e<400?t(s.responseText):console.warn("[Zigpoll] Error sending shim request.")}},s.open("post","https://api.zigpoll.com/shim",!0),s.setRequestHeader("Accept","application/json"),s.setRequestHeader("Content-Type","text/plain"),s.send(JSON.stringify(n))}function r(e){console.error(`[Zigpoll] ${e}`),"function"==typeof window.Zigpoll.onload&&window.Zigpoll.onload(e)}e.setItem("zigpoll-page-views",++t),function(){if(!e.getItem("zigpoll-has-initialized-session")){var t=localStorage.getItem("zigpoll-sessions")||0;localStorage.setItem("zigpoll-sessions",++t),e.setItem("zigpoll-has-initialized-session",!0),e.setItem("zigpoll-original-referrer",document.referrer),e.setItem("zigpoll-landing-page",window.location.href);var n=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","utm_id","utm_source_platform","utm_creative_format","utm_marketing_tactic","ad_id","adset_id","campaign_id","ad_name","adset_name","campaign_name","placement","site_source_name","gad_source","_kx"],o=Object.fromEntries(new URLSearchParams(window.location.search));Object.keys(o).forEach((t=>{-1!==n.indexOf(t)&&e.setItem("zigpoll-"+t,o[t])}))}}();var l=[window.location.href.replace(window.location.hash,"")],g=!1;function d(){setTimeout((function(){const e=l[0],t=window.location.href.replace(window.location.hash,"");e!==t&&(l.unshift(t),window.Zigpoll.reload())}),0)}function c(){window.navigation&&window.navigation.removeEventListener?(window.navigation.removeEventListener("navigate",d),window.navigation.addEventListener("navigate",d)):(!function(){if(g)return;var e=history.pushState;history.pushState=function(){var t=e.apply(this,arguments);return window.dispatchEvent(new Event("navigate")),t};let t=history.replaceState;history.replaceState=function(){var e=t.apply(this,arguments);return window.dispatchEvent(new Event("navigate")),e},window.addEventListener("popstate",(()=>{window.dispatchEvent(new Event("navigate"))})),g=!0}(),window.removeEventListener("navigate",d),window.addEventListener("navigate",d))}function p(){s((function(e){try{var t=JSON.parse(e);t.error?r(t.error):t.warning?t.exitIntentPolls&&t.exitIntentPolls.length?n():(o=t.warning,"function"==typeof window.Zigpoll.onload&&window.Zigpoll.onload(o)):n()}catch(e){r(e)}var o}))}function w(){c(),p()}window._deferZigpoll?window._initZigpoll=w:(window.Zigpoll=window.Zigpoll||{},window.Zigpoll.reload=function(){window.Zigpoll.refresh?window.Zigpoll.refresh():p()},w())}();