!function(){"use strict";!function(t){var e=t.screen,n=e.width,r=e.height,a=t.navigator.language,i=t.location,o=t.localStorage,u=t.document,c=t.history,s=i.hostname,f=i.pathname,l=i.search,d=u.currentScript;if(d){var m="data-",p=d.getAttribute.bind(d),v=p(m+"website-id"),h=p(m+"host-url"),g="false"!==p(m+"auto-track"),b=p(m+"do-not-track"),y=p(m+"domains")||"",S=y.split(",").map((function(t){return t.trim()})),k=(h?h.replace(/\/$/,""):d.src.split("/").slice(0,-1).join("/"))+"/api/send",j=n+"x"+r,w=/data-umami-event-([\w-_]+)/,N=m+"umami-event",T=300,A=function(t,e,n){var r=t[e];return function(){for(var e=[],a=arguments.length;a--;)e[a]=arguments[a];return n.apply(null,e),r.apply(t,e)}},x=function(){return{website:v,hostname:s,screen:j,language:a,title:M,url:I,referrer:J}},E=function(){return o&&o.getItem("umami.disabled")||b&&function(){var e=t.doNotTrack,n=t.navigator,r=t.external,a="msTrackingProtectionEnabled",i=e||n.doNotTrack||n.msDoNotTrack||r&&a in r&&r[a]();return"1"==i||"yes"===i}()||y&&!S.includes(s)},O=function(t,e,n){n&&(J=I,(I=function(t){return"http"===t.substring(0,4)?"/"+t.split("/").splice(3).join("/"):t}(n.toString()))!==J&&setTimeout(K,T))},D=function(t,e){if(void 0===e&&(e="event"),!E()){var n={"Content-Type":"application/json"};return void 0!==L&&(n["x-umami-cache"]=L),fetch(k,{method:"POST",body:JSON.stringify({type:e,payload:t}),headers:n}).then((function(t){return t.text()})).then((function(t){return L=t}))}},K=function(t,e){return D("string"==typeof t?Object.assign({},x(),{name:t,data:"object"==typeof e?e:void 0}):"object"==typeof t?t:"function"==typeof t?t(x()):x())};t.umami||(t.umami={track:K,identify:function(t){return D(Object.assign({},x(),{data:t}),"identify")}});var L,P,_,q,C,I=""+f+l,J=u.referrer,M=u.title;if(g&&!E()){c.pushState=A(c,"pushState",O),c.replaceState=A(c,"replaceState",O),C=function(t){var e=t.getAttribute.bind(t),n=e(N);if(n){var r={};return t.getAttributeNames().forEach((function(t){var n=t.match(w);n&&(r[n[1]]=e(t))})),K(n,r)}return Promise.resolve()},u.addEventListener("click",(function(t){var e=t.target,n="A"===e.tagName?e:function(t,e){for(var n=t,r=0;r title"))&&_.observe(q,{subtree:!0,characterData:!0,childList:!0});var $=function(){"complete"!==u.readyState||P||(K(),P=!0)};u.addEventListener("readystatechange",$,!0),$()}}}(window)}();