!function(){var t,n,e,i=document.currentScript,o={};function a(t,n,e){window.fetch&&fetch(t,{method:"POST",headers:{"Content-Type":"text/plain"},keepalive:!0,body:JSON.stringify(n)}).then(function(t){e&&e.callback&&e.callback({status:t.status})}).catch(function(t){e&&e.callback&&e.callback({error:t})})}var c=!1,l=location.href,r={},d=-1,u=0,s=0;function w(){var i=v();if(!t&&(d<e||i>=3e3)){d=e;var c={n:"engagement",sd:Math.round(e/n*100),d:o.domain,u:l,p:r,e:i,v:32};u=0,s=0,a(o.endpoint,c)}}function p(){"visible"===document.visibilityState&&document.hasFocus()&&0===u?u=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(s=v(),u=0,w())}function v(){return u?s+(Date.now()-u):s}function f(){var t=document.body||{},n=document.documentElement||{};return Math.max(t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0,n.scrollHeight||0,n.offsetHeight||0,n.clientHeight||0)}function h(){var t=document.body||{},e=document.documentElement||{},i=window.innerHeight||e.clientHeight||0,o=window.scrollY||e.scrollTop||t.scrollTop||0;return n<=i?n:o+i}function g(i,v){var g="pageview"===i;if(g&&c&&(w(),n=f(),e=h()),/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(location.hostname)||"file:"===location.protocol)return m(i,v,"localhost");if((window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)&&!window.__plausible)return m(i,v);try{if("true"===window.localStorage.plausible_ignore)return m(i,v,"localStorage flag")}catch(t){}var b={};b.n=i,b.v=32,b.u=location.href,b.d=o.domain,b.r=document.referrer||null,v&&v.meta&&(b.m=JSON.stringify(v.meta)),v&&v.props&&(b.p=v.props),v&&!1===v.interactive&&(b.i=!1),g&&(t=!1,l=b.u,r=b.p,d=-1,s=0,u=Date.now(),c||(document.addEventListener("visibilitychange",p),window.addEventListener("blur",p),window.addEventListener("focus",p),c=!0)),a(o.endpoint,b,v)}function m(n,e,i){i&&o.logging&&console.warn("Ignoring Event: "+i),e&&e.callback&&e.callback(),"pageview"===n&&(t=!0)}!function t(a){o.endpoint=i.getAttribute("data-api")||new URL(i.src).origin+"/api/event",o.domain=i.getAttribute("data-domain"),o.logging=!0,n=f(),e=h(),window.addEventListener("load",function(){n=f();var t=0,e=setInterval(function(){n=f(),15==++t&&clearInterval(e)},200)}),document.addEventListener("scroll",function(){n=f();var t=h();t>e&&(e=t)}),function(t){function n(n){n&&e===location.pathname||(e=location.pathname,t("pageview"))}var e,i=function(){n(!0)},o=window.history;if(o.pushState){var a=o.pushState;o.pushState=function(){a.apply(this,arguments),i()},window.addEventListener("popstate",i)}"hidden"===document.visibilityState||"prerender"===document.visibilityState?document.addEventListener("visibilitychange",function(){e||"visible"!==document.visibilityState||n()}):n(),window.addEventListener("pageshow",function(t){t.persisted&&n()})}(g);for(var c=window.plausible&&window.plausible.q||[],l=0;l<c.length;l++)g.apply(this,c[l]);window.plausible=g,window.plausible.init=t,window.plausible.v=32,window.plausible.l=!0}()}();