var e,t,n,i,o,r={};function a(){return new URL(e.src).origin+"/api/event"}function u(e){return Object.assign(e,{autoCapturePageviews:!1!==e.autoCapturePageviews,logging:!1!==e.logging,bindToWindow:!1!==e.bindToWindow})}function s(e){if(r.isInitialized)throw Error("plausible.init() can only be called once");if(!e||!e.domain)throw Error("plausible.init(): domain argument is required");e.endpoint||(e.endpoint="https://plausible.io/api/event"),Object.assign(r,e),r.isInitialized=!0}function c(e,t,n){window.fetch&&fetch(e,{method:"POST",headers:{"Content-Type":"text/plain"},keepalive:!0,body:JSON.stringify(t)}).then(function(e){n&&n.callback&&n.callback({status:e.status})}).catch(function(e){n&&n.callback&&n.callback({error:e})})}var l=!1,d={},f=-1,p=0,v=0;function m(){l&&(g(),i=E(),o=L())}function h(e){t=!1,n=e.u,d=e.p,f=-1,v=0,p=Date.now(),y()}function w(){t=!0}function g(){var e=k();if(!t&&(f=3e3)){f=o;var a={n:"engagement",sd:Math.round(o/i*100),d:r.domain,u:n,p:d,e:e,v:36};p=0,v=0,r.hashBasedRouting&&(a.h=1),c(r.endpoint,a)}}function b(){"visible"===document.visibilityState&&document.hasFocus()&&0===p?p=Date.now():"hidden"!==document.visibilityState&&document.hasFocus()||(v=k(),p=0,g())}function y(){l||(document.addEventListener("visibilitychange",b),window.addEventListener("blur",b),window.addEventListener("focus",b),l=!0)}function k(){return p?v+(Date.now()-p):v}function E(){var e=document.body||{},t=document.documentElement||{};return Math.max(e.scrollHeight||0,e.offsetHeight||0,e.clientHeight||0,t.scrollHeight||0,t.offsetHeight||0,t.clientHeight||0)}function L(){var e,t;return e=window.innerHeight,t=window.scrollY,i<=e?i:t+e}function S(){i=E(),o=L(),new ResizeObserver(function(){i=E()}).observe(document.documentElement),document.addEventListener("scroll",function(){var e=L();e>o&&(o=e)})}function track(e,t){if(!r.isInitialized)throw Error("plausible.track() can only be called after plausible.init()");var n,i="pageview"===e;if(i&&m(),!r.captureOnLocalhost){if(/^localhost$|^127(\.[0-9]+){0,2}\.[0-9]+$|^\[::1?\]$/.test(location.hostname)||"file:"===location.protocol)return x(e,t,"localhost");if((window._phantom||window.__nightmare||window.navigator.webdriver||window.Cypress)&&!window.__plausible)return x(e,t)}try{if("true"===window.localStorage.plausible_ignore)return x(e,t,"localStorage flag")}catch(e){}var o={};o.n=e,o.v=36;var a=t&&(t.u||t.url);if(o.u=a||location.href,o.d=r.domain,o.r=document.referrer||null,t&&t.props&&(o.p=t.props),t&&!1===t.interactive&&(o.i=!1),t&&t.revenue&&(o.$=t.revenue),r.customProperties){var n=r.customProperties;"function"==typeof n&&(n=r.customProperties(e)),"object"==typeof n&&(o.p=Object.assign({},n,o.p))}if(r.hashBasedRouting&&(o.h=1),"function"==typeof r.transformRequest&&!(o=r.transformRequest(o)))return x(e,t,"transformRequest");i&&h(o),c(r.endpoint,o,t)}function x(e,t,n){n&&r.logging&&console.warn("Ignoring Event: "+n),t&&t.callback&&t.callback(),"pageview"===e&&w()}var DEFAULT_FILE_TYPES=["pdf","xlsx","docx","txt","rtf","csv","exe","key","pps","ppt","pptx","7z","pkg","rar","gz","zip","avi","mov","mp4","mpeg","wmv","midi","mp3","wav","wma","dmg"],D=1,_=3,N=DEFAULT_FILE_TYPES;function P(e){for(;e&&(void 0===e.tagName||!C(e)||!e.href);)e=e.parentNode;return e}function C(e){return e&&e.tagName&&"a"===e.tagName.toLowerCase()}function R(e,t){if(e.defaultPrevented)return!1;var n=t.target;return(!n||"string"==typeof n&&!!n.match(/^_(self|parent|top)$/i))&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&"click"===e.type}function T(e){if("auxclick"!==e.type||e.button===D){var t=P(e.target),n=t&&"string"==typeof t.href&&t.href.split("?")[0];if(!I(t,0)){if(r.outboundLinks&&O(t))return F(e,t,{name:"Outbound Link: Click",props:{url:t.href}});if(r.fileDownloads&&z(n))return F(e,t,{name:"File Download",props:{url:n}})}}}function F(e,t,n){var i;(i={props:n.props}).revenue=n.revenue,track(n.name,i)}function O(e){return e&&"string"==typeof e.href&&e.host&&e.host!==location.host}function z(e){if(!e)return!1;var t=e.split(".").pop();return N.some(function(e){return e===t})}function H(e){var t=e&&e.classList;if(t){for(var n=0;n_)&&(!!H(e)||I(e.parentNode,t+1))}function j(e){var t=H(e)?e:e&&e.parentNode,n={name:null,props:{}};n.revenue={};var i=t&&t.classList;if(!i)return n;for(var o=0;o