/*! For license information please see tracker.js.LICENSE.txt */
!function(){var e={41:function(e){var n={utf8:{stringToBytes:function(e){return n.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(n.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],t=0;tc)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=g,u=p,o=d;var h=(1e4*(268435455&(g+=122192928e5))+p)%4294967296;l[s++]=h>>>24&255,l[s++]=h>>>16&255,l[s++]=h>>>8&255,l[s++]=255&h;var y=g/4294967296*1e4&268435455;l[s++]=y>>>8&255,l[s++]=255&y,l[s++]=y>>>24&15|16,l[s++]=y>>>16&255,l[s++]=d>>>8|128,l[s++]=255&d;for(var w=0;w<6;++w)l[s+w]=f[w];return n||a(l)}},296:function(e,n,t){var r=t(71),o=t(572),i=o;i.v1=r,i.v4=o,e.exports=i},417:function(e){for(var n=[],t=0;t<256;++t)n[t]=(t+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},561:function(e,n,t){var r,o,i,a;r=t(773),o=t(41).utf8,i=t(41).bin,(a=function(e,n){var t=r.wordsToBytes(function(e){e.constructor==String?e=o.stringToBytes(e):"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());var n=r.bytesToWords(e),t=8*e.length,i=[],a=1732584193,c=-271733879,u=-1732584194,s=271733878,l=-1009589776;n[t>>5]|=128<<24-t%32,n[15+(t+64>>>9<<4)]=t;for(var f=0;f>>31}var w=(a<<5|a>>>27)+l+(i[h]>>>0)+(h<20?1518500249+(c&u|~c&s):h<40?1859775393+(c^u^s):h<60?(c&u|c&s|u&s)-1894007588:(c^u^s)-899497514);l=s,s=u,u=c<<30|c>>>2,c=a,a=w}a+=d,c+=v,u+=g,s+=p,l+=m}return[a,c,u,s,l]}(e));return n&&n.asBytes?t:n&&n.asString?i.bytesToString(t):r.bytesToHex(t)})._blocksize=16,a._digestsize=20,e.exports=a},572:function(e,n,t){var r=t(584),o=t(417);e.exports=function(e,n,t){var i=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n)for(var c=0;c<16;++c)n[i+c]=a[c];return n||o(a)}},584:function(e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var t=new Uint8Array(16);e.exports=function(){return n(t),t}}else{var r=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)3&n||(e=4294967296*Math.random()),r[n]=e>>>((3&n)<<3)&255;return r}}},773:function(e){var n,t;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(e,n){return e<>>32-n},rotr:function(e,n){return e<<32-n|e>>>n},endian:function(e){if(e.constructor==Number)return 16711935&t.rotl(e,8)|4278255360&t.rotl(e,24);for(var n=0;n0;e--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(e){for(var n=[],t=0,r=0;t>>5]|=e[t]<<24-r%32;return n},wordsToBytes:function(e){for(var n=[],t=0;t<32*e.length;t+=8)n.push(e[t>>>5]>>>24-t%32&255);return n},bytesToHex:function(e){for(var n=[],t=0;t>>4).toString(16)),n.push((15&e[t]).toString(16));return n.join("")},hexToBytes:function(e){for(var n=[],t=0;t>>6*(3-i)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],r=0,o=0;r>>6-2*o);return t}},e.exports=t}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){"use strict";var e=function(){return e=Object.assign||function(e){for(var n,t=1,r=arguments.length;t>18&63,t=a>>12&63,r=a>>6&63,i=63&a,s[u++]=o.charAt(n)+o.charAt(t)+o.charAt(r)+o.charAt(i)}while(c>16&255,t=c>>8&255,r=255&c,f[l++]=64===i?String.fromCharCode(n):64===a?String.fromCharCode(n,t):String.fromCharCode(n,t,r)}while(s=s.warn&&"undefined"!=typeof console){var i=l+e;t?console.warn.apply(console,n([i+"\n",t],r,!1)):console.warn.apply(console,n([i],r,!1))}},error:function(e,t){for(var r=[],o=2;o=s.error&&"undefined"!=typeof console){var i=l+e+"\n";t?console.error.apply(console,n([i+"\n",t],r,!1)):console.error.apply(console,n([i],r,!1))}},debug:function(e){for(var t=[],r=1;r=s.debug&&"undefined"!=typeof console&&console.debug.apply(console,n([l+e],t,!1))},info:function(e){for(var t=[],r=1;r=s.info&&"undefined"!=typeof console&&console.info.apply(console,n([l+e],t,!1))}});function v(){var e=[],n=[];return{getGlobalPrimitives:function(){return e},getConditionalProviders:function(){return n},addGlobalContexts:function(t){for(var r=[],o=[],i=0,a=t;i0&&0===t}(e[0],r))return I(e[1],n,t,r);return[]}(e,n,t,r);if(o&&0!==o.length)return o}));return(o=[]).concat.apply(o,i.filter((function(e){return null!=e&&e.filter(Boolean)})))}(n,t,o,r);return i.push.apply(i,c),i}(t)}}}function g(e){var n=e.split(".");return!!(n&&n.length>1)&&function(e){if("*"===e[0]||"*"===e[1])return!1;if(e.slice(2).length>0){for(var n=!1,t=0,r=e.slice(2);t0&&t<=2}return!1}(e[0])&&(Array.isArray(e[1])?e[1].every(b):b(e[1]))}function x(e){return k(e)||S(e)}function T(e,n){if(!m(e))return!1;var t=p(e),r=function(e){var n=new RegExp("^iglu:([a-zA-Z0-9-_.]+)/([a-zA-Z0-9-_]+)/jsonschema/([1-9][0-9]*)-(0|[1-9][0-9]*)-(0|[1-9][0-9]*)$").exec(e);if(null!==n)return n.slice(1,6)}(n);if(t&&r){if(!function(e,n){var t=n.split("."),r=e.split(".");if(t&&r){if(t.length!==r.length)return!1;for(var o=0;o1?document.cookie=e+"="+encodeURIComponent(null!=n?n:"")+(t?"; Expires="+new Date(+new Date+1e3*t).toUTCString():"")+(r?"; Path="+r:"")+(o?"; Domain="+o:"")+(i?"; SameSite="+i:"")+(a?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}function X(e){if(null==e||"object"!=typeof e||Array.isArray(e))return function(){return!0};var n=Object.prototype.hasOwnProperty.call(e,"allowlist"),t=function(e){var n={},t=e.allowlist||e.denylist;if(t){Array.isArray(t)||(t=[t]);for(var r=0;r=55296&&r<=57343?(n+=4,t++):n+=r<65535?3:4}return n}Array.isArray(k)||(k=[]),n.outQueues.push(k),O&&i>1&&n.bufferFlushers.push((function(e){b||_(e)}));var B=function(e){return"object"==typeof e[0]&&"evt"in e[0]};function N(e,n){U(n,!0,!1).send(M(V([e.evt])))}function _(e){for(void 0===e&&(e=!1);k.length&&"string"!=typeof k[0]&&"object"!=typeof k[0];)k.shift();if(k.length){if(!R(y))throw"No collector configured";if(b=!0,h&&!S){var n=U(h,!1,e);return S=!0,n.timeout=l,n.onreadystatechange=function(){4===n.readyState&&_()},void n.send()}if(O){var r,o,i=void 0;B(k)?(r=U(i=y,!0,e),o=function(e){for(var n=0,t=0;n=a);)n+=1;return n}(k)):(i=z(k[0]),r=U(i,!1,e),o=1);var c=setTimeout((function(){r.abort(),b=!1}),l),u=function(e){for(var n=0;n=200&&(clearTimeout(c),r.status<300?v(o):(!((e=r.status)>=200&&e<300||!p.includes(e)&&m.includes(e))||(d.error("Status ".concat(r.status,", will not retry.")),u(o)),b=!1))},B(k)){var g=k.slice(0,o);if(g.length>0){var w=!1,x=g.map((function(e){return e.evt}));if(T){var C=new Blob([M(V(x))],{type:"application/json"});try{w=navigator.sendBeacon(i,C)}catch(e){w=!1}}!0===w?v(o):r.send(M(V(x)))}}else r.send()}else if(f||B(k))b=!1;else{var I=new Image(1,1),A=!0;I.onload=function(){A&&(A=!1,k.shift(),t&&D(P,JSON.stringify(k.slice(0,s))),_())},I.onerror=function(){A&&(A=!1,b=!1)},I.src=z(k[0]),setTimeout((function(){A&&b&&(A=!1,_())}),l)}}else b=!1}function U(e,n,t){var r=new XMLHttpRequest;for(var o in n?(r.open("POST",e,!t),r.setRequestHeader("Content-Type","application/json; charset=UTF-8")):r.open("GET",e,!t),r.withCredentials=g,f&&r.setRequestHeader("SP-Anonymous","*"),v)Object.prototype.hasOwnProperty.call(v,o)&&r.setRequestHeader(o,v[o]);return r}function M(e){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:e})}function V(e){for(var n=(new Date).getTime().toString(),t=0;t=a)return r(l.bytes,a),void N(l,y);k.push(l)}else{var u=function(e){var n="?",t={co:!0,cx:!0},r=!0;for(var o in e)e.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(r?r=!1:n+="&",n+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));for(var i in t)e.hasOwnProperty(i)&&t.hasOwnProperty(i)&&(n+="&"+i+"="+encodeURIComponent(e[i]));return n}(e);if(c>0){var l,f=L(z(u));if(f>=c)return r(f,c),void(O&&N(l=j(e),n+o))}k.push(u)}var v=!1;t&&(v=D(P,JSON.stringify(k.slice(0,s)))),b||v&&!(k.length>=i)||_()},executeQueue:function(){b||_()},setUseLocalStorage:function(e){t=e},setAnonymousTracking:function(e){f=e},setCollectorUrl:function(e){y=e+A},setBufferSize:function(e){i=e}}}function Q(e,n,t){var r,o,i;return"translate.googleusercontent.com"===e?(""===t&&(t=n),e=M(n=null!==(o=n,r=(i=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+))([?][^#]+)").exec(o))&&(null==i?void 0:i.length)>1?J("u",i[1]):null)&&void 0!==r?r:"")):"cc.bingj.com"!==e&&"webcache.googleusercontent.com"!==e||(e=M(n=document.links[0].href)),[e,n,t]}function Z(e,n){void 0===n&&(n={memorizedVisitCount:1});var t=n.memorizedVisitCount;te(e)?(e[7]=e[6],e[5]=e[4],e[3]++):e[3]=t;var o=(0,r.v4)();return e[6]=o,e[10]=0,e[8]="",e[9]=void 0,o}function $(e){e[4]=Math.round((new Date).getTime()/1e3)}function K(e,n,t){var r=e[9];return{userId:t?"00000000-0000-0000-0000-000000000000":e[1],sessionId:e[6],eventIndex:e[10],sessionIndex:e[3],previousSessionId:t?null:e[7]||null,storageMechanism:"localStorage"==n?"LOCAL_STORAGE":"COOKIE_1",firstEventId:e[8]||null,firstEventTimestamp:r?new Date(r).toISOString():null}}function ee(e){return e[6]}function ne(e){return e[3]}function te(e){return"0"===e[0]}var re="x";function oe(){return{viewport:ae(ie()),documentSize:ae((e=document.documentElement,n=document.body,t=n?Math.max(n.offsetHeight,n.scrollHeight):0,r=Math.max(e.clientWidth,e.offsetWidth,e.scrollWidth),o=Math.max(e.clientHeight,e.offsetHeight,e.scrollHeight,t),isNaN(r)||isNaN(o)?"":r+re+o)),resolution:ae(screen.width+re+screen.height),colorDepth:screen.colorDepth,devicePixelRatio:window.devicePixelRatio,cookiesEnabled:window.navigator.cookieEnabled,online:window.navigator.onLine,browserLanguage:navigator.language||navigator.userLanguage,documentLanguage:document.documentElement.lang,webdriver:window.navigator.webdriver,deviceMemory:window.navigator.deviceMemory,hardwareConcurrency:window.navigator.hardwareConcurrency};var e,n,t,r,o}function ie(){var e,n;if("innerWidth"in window)e=window.innerWidth,n=window.innerHeight;else{var t=document.documentElement||document.body;e=t.clientWidth,n=t.clientHeight}return e>=0&&n>=0?e+re+n:null}function ae(e){return e&&e.split(re).map((function(e){return Math.floor(Number(e))})).join(re)}function ce(t,o,c,s,l,f){void 0===f&&(f={});var g=[],p=function(t,o,c,s,l,f){var p,m,h,y,w,b,k,S,x,T,C,O,I,A,P,E,j,R,X,W,re,ie,ae,ce,ue,se,le,fe;f.eventMethod=null!==(p=f.eventMethod)&&void 0!==p?p:"post";var de,ve,ge=function(e){var n;return null!==(n=e.stateStorageStrategy)&&void 0!==n?n:"cookieAndLocalStorage"},pe=function(e){var n,t;return"boolean"!=typeof e.anonymousTracking&&null!==(t=!0===(null===(n=e.anonymousTracking)||void 0===n?void 0:n.withSessionTracking))&&void 0!==t&&t},me=function(e){var n,t;return"boolean"!=typeof e.anonymousTracking&&null!==(t=!0===(null===(n=e.anonymousTracking)||void 0===n?void 0:n.withServerAnonymisation))&&void 0!==t&&t},he=function(e){return!!e.anonymousTracking},ye=null!==(h=null===(m=null==f?void 0:f.contexts)||void 0===m?void 0:m.browser)&&void 0!==h&&h,we=null===(w=null===(y=null==f?void 0:f.contexts)||void 0===y?void 0:y.webPage)||void 0===w||w;g.push((de=function(e){return an?null:e},ve=function(e){return rn?e:de(e)},{beforeTrack:function(e){var n=An("ses"),t=zn(),r=0===function(e){return e[10]}(t);if(Ne=!!Ce&&!!q(Ce),en||Ne)Un();else{te(t)?(De=n||"none"==cn?ee(t):Z(t),sn=ne(t)):(new Date).getTime()-un>1e3*tn&&(sn++,De=Z(t,{memorizedVisitCount:sn})),$(t),function(e,n){if(0===e[10]){var t=n.build();e[8]=t.eid;var r=t.dtm||t.ttm;e[9]=r?parseInt(r):void 0}}(t,e),function(e){e[10]+=1}(t);var o=oe(),i=o.viewport,a=o.documentSize;e.add("vp",i),e.add("ds",a),e.add("vid",ve(sn)),e.add("sid",ve(De)),e.add("duid",de(function(e){return e[1]}(t))),e.add("uid",de(Be)),Sn(),e.add("refr",Cn(be||ze)),e.add("url",Cn(ke||Ve));var c=K(t,cn,an);if(!gn||an&&!rn||function(e,n){var t={schema:"iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",data:n};e.addContextEntity(t)}(e,c),"none"!=cn){Rn(t);var u=Nn();n&&!r||!u||!pn||mn||(pn(c),mn=!1)}un=(new Date).getTime()}}})),we&&g.push({contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:Fn()}}]}}),ye&&g.push({contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/1-0-0",data:e(e({},oe()),{tabId:Gn()})}]}}),g.push.apply(g,null!==(b=f.plugins)&&void 0!==b?b:[]);var be,ke,Se,xe,Te,Ce,Oe,Ie,Ae,Pe,Ee,je,Le,De,Be,Ne,Re=function(t){void 0===t&&(t={});var o=t.base64,i=t.corePlugins,c=t.callback,s=null!=i?i:[],l=function(e,t,o){var i=function(e){return{addPluginContexts:function(t){var r=t?n([],t,!0):[];return e.forEach((function(e){try{e.contexts&&r.push.apply(r,e.contexts())}catch(e){d.error("Error adding plugin contexts",e)}})),r}}}(t),c=v(),s=e,l={};function f(e,n){l[e]=n}return{track:function(e,n,u){e.withJsonProcessor(a(s)),e.add("eid",(0,r.v4)()),e.addDict(l);var f=function(e){return null==e?{type:"dtm",value:(new Date).getTime()}:"number"==typeof e?{type:"dtm",value:e}:"ttm"===e.type?{type:"ttm",value:e.value}:{type:"dtm",value:e.value||(new Date).getTime()}}(u);e.add(f.type,f.value.toString());var v=function(e){if(e&&e.length)return{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:e}}(function(e,n){var t=c.getApplicableContexts(e),r=[];return n&&n.length&&r.push.apply(r,n),t&&t.length&&r.push.apply(r,t),r}(e,i.addPluginContexts(n)));void 0!==v&&e.addJson("cx","co",v),t.forEach((function(n){try{n.beforeTrack&&n.beforeTrack(e)}catch(e){d.error("Plugin beforeTrack",e)}})),"function"==typeof o&&o(e);var g=e.build();return t.forEach((function(e){try{e.afterTrack&&e.afterTrack(g)}catch(e){d.error("Plugin afterTrack",e)}})),g},addPayloadPair:f,getBase64Encoding:function(){return s},setBase64Encoding:function(e){s=e},addPayloadDict:function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(l[n]=e[n])},resetPayloadPairs:function(e){l=u(e)?e:{}},setTrackerVersion:function(e){f("tv",e)},setTrackerNamespace:function(e){f("tna",e)},setAppId:function(e){f("aid",e)},setPlatform:function(e){f("p",e)},setUserId:function(e){f("uid",e)},setScreenResolution:function(e,n){f("res",e+"x"+n)},setViewport:function(e,n){f("vp",e+"x"+n)},setColorDepth:function(e){f("cd",e)},setTimezone:function(e){f("tz",e)},setLang:function(e){f("lang",e)},setIpAddress:function(e){f("ip",e)},setUseragent:function(e){f("ua",e)},addGlobalContexts:function(e){c.addGlobalContexts(e)},clearGlobalContexts:function(){c.clearGlobalContexts()},removeGlobalContexts:function(e){c.removeGlobalContexts(e)}}}(null==o||o,s,c),f=e(e({},l),{addPlugin:function(e){var n,t,r=e.plugin;s.push(r),null===(n=r.logger)||void 0===n||n.call(r,d),null===(t=r.activateCorePlugin)||void 0===t||t.call(r,f)}});return null==s||s.forEach((function(e){var n,t;null===(n=e.logger)||void 0===n||n.call(e,d),null===(t=e.activateCorePlugin)||void 0===t||t.call(e,f)})),f}({base64:f.encodeBase64,corePlugins:g,callback:function(e){en||Ne||ln.enqueueRequest(e.build(),Je)}}),_e=document.characterSet||document.charset,Ue=Q(window.location.hostname,window.location.href,z()),Me=V(Ue[0]),Ve=Ue[1],ze=Ue[2],He=null!==(k=f.platform)&&void 0!==k?k:"web",Je=Hn(s),Fe=null!==(S=f.postPath)&&void 0!==S?S:"/com.snowplowanalytics.snowplow/tp2",Ge=null!==(x=f.appId)&&void 0!==x?x:"",qe=document.title,Xe=null===(T=f.resetActivityTrackingOnPageView)||void 0===T||T,We=null!==(C=f.cookieName)&&void 0!==C?C:"_sp_",Ye=null!==(O=f.cookieDomain)&&void 0!==O?O:void 0,Qe="/",Ze=null!==(I=f.cookieSameSite)&&void 0!==I?I:"None",$e=null===(A=f.cookieSecure)||void 0===A||A,Ke=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,en=void 0!==f.respectDoNotTrack&&f.respectDoNotTrack&&("yes"===Ke||"1"===Ke),nn=null!==(P=f.cookieLifetime)&&void 0!==P?P:63072e3,tn=null!==(E=f.sessionCookieTimeout)&&void 0!==E?E:1800,rn=pe(f),on=me(f),an=he(f),cn=ge(f),un=(new Date).getTime(),sn=1,ln=Y(t,l,"localStorage"==cn||"cookieAndLocalStorage"==cn,f.eventMethod,Fe,null!==(j=f.bufferSize)&&void 0!==j?j:1,null!==(R=f.maxPostBytes)&&void 0!==R?R:4e4,null!==(X=f.maxGetBytes)&&void 0!==X?X:0,null===(W=f.useStm)||void 0===W||W,null!==(re=f.maxLocalStorageQueueSize)&&void 0!==re?re:1e3,null!==(ie=f.connectionTimeout)&&void 0!==ie?ie:5e3,on,null!==(ae=f.customHeaders)&&void 0!==ae?ae:{},null===(ce=f.withCredentials)||void 0===ce||ce,null!==(ue=f.retryStatusCodes)&&void 0!==ue?ue:[],(null!==(se=f.dontRetryStatusCodes)&&void 0!==se?se:[]).concat([400,401,403,410,422]),f.idService),fn=!1,dn=!1,vn={enabled:!1,installed:!1,configurations:{}},gn=null!==(fe=null===(le=f.contexts)||void 0===le?void 0:le.session)&&void 0!==fe&&fe,pn=f.onSessionUpdateCallback,mn=!1;f.hasOwnProperty("discoverRootDomain")&&f.discoverRootDomain&&(Ye=function(e,n){for(var t=window.location.hostname,r="_sp_root_domain_test_",o=r+(new Date).getTime(),i="_test_value_"+(new Date).getTime(),a=t.split("."),c=a.length-2;c>=0;c--){var u=a.slice(c).join(".");if(q(o,i,0,"/",u,e,n),q(o)===i){F(o,u,e,n);for(var s=G(r),l=0;lDate.now()?n.getItem(e):(n.removeItem(e),void n.removeItem(e+".expires"))}catch(e){return}}(n):"cookie"==cn||"cookieAndLocalStorage"==cn?q(n):void 0}function Pn(){Sn(),je=L()((Ye||Me)+(Qe||"/")).slice(0,4)}function En(){var e=new Date;Oe=e.getTime()}function jn(){!function(){var e=Ln(),n=e[0];nAe&&(Ae=n);var t=e[1];tEe&&(Ee=t)}(),En()}function Ln(){var e=document.documentElement;return e?[e.scrollLeft||window.pageXOffset,e.scrollTop||window.pageYOffset]:[0,0]}function Dn(){var e=Ln(),n=e[0];Ie=n,Ae=n;var t=e[1];Pe=t,Ee=t}function Bn(e){return Math.round(e)}function Nn(){return _n(In("ses"),"*",tn)}function Rn(e){var n=In("id"),t=function(e){return e.shift(),e.join(".")}(e);return _n(n,t,nn)}function _n(e,n,t){return!(an&&!rn)&&("localStorage"==cn?D(e,n,t):("cookie"==cn||"cookieAndLocalStorage"==cn)&&(q(e,n,t,Qe,Ye,Ze,$e),-1!==document.cookie.indexOf("".concat(e,"="))))}function Un(e){var n=In("id"),t=In("ses");B(n),B(t),F(n,Ye,Ze,$e),F(t,Ye,Ze,$e),(null==e?void 0:e.preserveSession)||(De=(0,r.v4)(),sn=1),(null==e?void 0:e.preserveUser)||(Le=an?"":(0,r.v4)(),Be=null)}function Mn(e){e&&e.stateStorageStrategy&&(f.stateStorageStrategy=e.stateStorageStrategy,cn=ge(f)),an=he(f),rn=pe(f),on=me(f),ln.setUseLocalStorage("localStorage"==cn||"cookieAndLocalStorage"==cn),ln.setAnonymousTracking(on)}function Vn(){if(!an||rn){var e="none"!=cn&&!!An("ses"),n=zn();Le=function(e,n){var t;return e[1]?t=e[1]:n?(t="",e[1]=t):(t=(0,r.v4)(),e[1]=t),t}(n,an),De=e?ee(n):Z(n),sn=ne(n),"none"!=cn&&(Nn(),$(n),Rn(n))}}function zn(){return"none"==cn?["1","",0,0,0,void 0,"","","",void 0,0]:function(e,n,t,o){var i,a=new Date,c=Math.round(a.getTime()/1e3);e?(i=e.split(".")).unshift("0"):i=["1",n,c,o,c,"",t],i[6]&&"undefined"!==i[6]||(i[6]=(0,r.v4)()),i[7]&&"undefined"!==i[7]||(i[7]=""),i[8]&&"undefined"!==i[8]||(i[8]=""),i[9]&&"undefined"!==i[9]||(i[9]=""),i[10]&&"undefined"!==i[10]||(i[10]=0);var u=function(e,n){var t=parseInt(e);return isNaN(t)?n:t},s=function(e){return e?u(e,void 0):void 0};return[i[0],i[1],u(i[2],c),u(i[3],o),u(i[4],c),s(i[5]),i[6],i[7],i[8],s(i[9]),u(i[10],0)]}(An("id")||void 0,Le,De,sn)}function Hn(e){return 0===e.indexOf("http")?e:("https:"===document.location.protocol?"https":"http")+"://"+e}function Jn(){fn&&null!=l.pageViewId||(l.pageViewId=(0,r.v4)())}function Fn(){return null==l.pageViewId&&(l.pageViewId=(0,r.v4)()),l.pageViewId}function Gn(){if("none"===cn||an||!we)return null;var e="_sp_tab_id",n=N(e);return n||(function(e,n){try{return window.sessionStorage.setItem(e,n),!0}catch(e){return!1}}(e,(0,r.v4)()),n=N(e)),n||null}function qn(e,n){return(e||[]).concat(n?n():[])}function Xn(e,n,t){var r=function(e,n){Sn(),e({context:n,pageViewId:Fn(),minXOffset:Ie,minYOffset:Pe,maxXOffset:Ae,maxYOffset:Ee}),Dn()},o=function(){var o=new Date;Oe+e.configHeartBeatTimer>o.getTime()&&r(e.callback,qn(n,t))};0===e.configMinimumVisitLength?e.activityInterval=window.setInterval(o,e.configHeartBeatTimer):e.activityInterval=window.setTimeout((function(){var i=new Date;Oe+e.configMinimumVisitLength>i.getTime()&&r(e.callback,qn(n,t)),e.activityInterval=window.setInterval(o,e.configHeartBeatTimer)}),e.configMinimumVisitLength)}function Wn(e){var n=e.minimumVisitLength,t=e.heartbeatDelay,r=e.callback;if(_(n)&&_(t))return{configMinimumVisitLength:1e3*n,configHeartBeatTimer:1e3*t,callback:r};d.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function Yn(e){var n=e.context,t=e.minXOffset,r=e.minYOffset,o=e.maxXOffset,a=e.maxYOffset,c=document.title;c!==qe&&(qe=c,Se=void 0),Re.track(function(e){var n=e.pageUrl,t=e.pageTitle,r=e.referrer,o=e.minXOffset,a=e.maxXOffset,c=e.minYOffset,u=e.maxYOffset,s=i();return s.add("e","pp"),s.add("url",n),s.add("page",t),s.add("refr",r),o&&!isNaN(Number(o))&&s.add("pp_mix",o.toString()),a&&!isNaN(Number(a))&&s.add("pp_max",a.toString()),c&&!isNaN(Number(c))&&s.add("pp_miy",c.toString()),u&&!isNaN(Number(u))&&s.add("pp_may",u.toString()),s}({pageUrl:Cn(ke||Ve),pageTitle:U(Se||qe),referrer:Cn(be||ze),minXOffset:Bn(t),maxXOffset:Bn(o),minYOffset:Bn(r),maxYOffset:Bn(a)}),n)}function Qn(e){var n=vn.configurations[e];0===(null==n?void 0:n.configMinimumVisitLength)?window.clearTimeout(null==n?void 0:n.activityInterval):window.clearInterval(null==n?void 0:n.activityInterval),vn.configurations[e]=void 0}Re.setTrackerVersion(c),Re.setTrackerNamespace(o),Re.setAppId(Ge),Re.setPlatform(He),Re.addPayloadPair("cookie",kn?"1":"0"),Re.addPayloadPair("cs",_e),Re.addPayloadPair("lang",yn),Re.addPayloadPair("res",wn),Re.addPayloadPair("cd",bn),Pn(),Vn(),f.crossDomainLinker&&Tn(f.crossDomainLinker);var Zn={getDomainSessionIndex:function(){return sn},getPageViewId:Fn,getTabId:Gn,newSession:function(){var e=zn();if(te(e)?(De="none"!=cn?Z(e):ee(e),sn=ne(e)):(sn++,De=Z(e,{memorizedVisitCount:sn})),$(e),"none"!=cn){var n=K(e,cn,an);Rn(e),Nn()&&pn&&(mn=!0,pn(n))}un=(new Date).getTime()},getCookieName:function(e){return In(e)},getUserId:function(){return Be},getDomainUserId:function(){return zn()[1]},getDomainUserInfo:function(){return zn()},setReferrerUrl:function(e){be=e},setCustomUrl:function(e){Sn(),ke=function(e,n){var t;return On(n)?n:"/"===n.slice(0,1)?On(e)+"://"+M(e)+n:((t=(e=Cn(e)).indexOf("?"))>=0&&(e=e.slice(0,t)),(t=e.lastIndexOf("/"))!==e.length-1&&(e=e.slice(0,t+1)),e+n)}(Ve,e)},setDocumentTitle:function(e){qe=document.title,Se=e},discardHashTag:function(e){xe=e},discardBrace:function(e){Te=e},setCookiePath:function(e){Qe=e,Pn()},setVisitorCookieTimeout:function(e){nn=e},crossDomainLinker:function(e){Tn(e)},enableActivityTracking:function(n){vn.configurations.pagePing||(vn.enabled=!0,vn.configurations.pagePing=Wn(e(e({},n),{callback:Yn})))},enableActivityTrackingCallback:function(e){vn.configurations.callback||(vn.enabled=!0,vn.configurations.callback=Wn(e))},disableActivityTracking:function(){Qn("pagePing")},disableActivityTrackingCallback:function(){Qn("callback")},updatePageActivity:function(){En()},setOptOutCookie:function(e){Ce=e},setUserId:function(e){Be=e},setUserIdFromLocation:function(e){Sn(),Be=J(e,Ve)},setUserIdFromReferrer:function(e){Sn(),Be=J(e,ze)},setUserIdFromCookie:function(e){Be=q(e)},setCollectorUrl:function(e){Je=Hn(e),ln.setCollectorUrl(Je)},setBufferSize:function(e){ln.setBufferSize(e)},flushBuffer:function(e){void 0===e&&(e={}),ln.executeQueue(),e.newBufferSize&&ln.setBufferSize(e.newBufferSize)},trackPageView:function(e){void 0===e&&(e={}),function(e){var n=e.title,t=e.context,r=e.timestamp,o=e.contextCallback;Sn(),dn&&Jn(),dn=!0,qe=document.title;var a=U((Se=n)||qe);Re.track(function(e){var n=e.pageUrl,t=e.pageTitle,r=e.referrer,o=i();return o.add("e","pv"),o.add("url",n),o.add("page",t),o.add("refr",r),o}({pageUrl:Cn(ke||Ve),pageTitle:a,referrer:Cn(be||ze)}),qn(t,o),r);var c=new Date,u=!1;if(vn.enabled&&!vn.installed){vn.installed=!0,u=!0;var s={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,n=Object.defineProperty({},"passive",{get:function(){e=!0},set:function(){}}),t=function(){};window.addEventListener("testPassiveEventSupport",t,n),window.removeEventListener("testPassiveEventSupport",t,n),s.hasSupport=e}}};s.update();var l="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(s,"hasSupport")?H(document,l,En,{passive:!0}):H(document,l,En),Dn();var f=function(e,n){return void 0===n&&(n=En),function(e){return H(document,e,n)}};["click","mouseup","mousedown","mousemove","keypress","keydown","keyup","touchend","touchstart"].forEach(f(document)),["resize","focus","blur"].forEach(f(window)),f(window,jn)("scroll")}if(vn.enabled&&(Xe||u)){Oe=c.getTime();var d=void 0;for(d in vn.configurations){var v=vn.configurations[d];v&&(window.clearInterval(v.activityInterval),Xn(v,t,o))}}}(e)},preservePageViewId:function(){fn=!0},disableAnonymousTracking:function(e){f.anonymousTracking=!1,Mn(e),Vn(),ln.executeQueue()},enableAnonymousTracking:function(e){var n;f.anonymousTracking=null===(n=e&&(null==e?void 0:e.options))||void 0===n||n,Mn(e),rn||Jn()},clearUserData:Un};return e(e({},Zn),{id:t,namespace:o,core:Re,sharedState:l})}(t,o,c,s,l,f),m=e(e({},p),{addPlugin:function(e){var n,t;m.core.addPlugin(e),null===(t=(n=e.plugin).activateBrowserPlugin)||void 0===t||t.call(n,m)}});return g.forEach((function(e){var n;null===(n=e.activateBrowserPlugin)||void 0===n||n.call(e,m)})),m}var ue={};function se(e,n){try{(t=null!=e?e:Object.keys(ue),le(t,ue)).forEach(n)}catch(e){d.error("Function failed",e)}var t}function le(e,n){for(var t=[],r=0,o=e;r{window.ub.consent&&window.ub.consent.addEventListener("change",(n=>{!0===n.detail.new.statistics?(de(""),document.cookie=`${e}=; path=/; SameSite=Lax; Max-Age=0;`):(de(e),document.cookie=`${e}=1; path=/; SameSite=Lax;`)}))},t=(()=>{const e=window.ub.page.usedAs;return()=>"main"===e})(),r=()=>{try{return t()?window.ub:window.parent.ub}catch(e){return}};(()=>{const e=r();if(!e||!e.page)return;const o={id:e.page.id,currentId:window.ub.page.id,variantId:e.page.variantId,selectedRoutingStrategy:e.routingStrategy,contentRoutingStrategy:e.contentRoutingStrategy},i=e=>(e?.href??"").indexOf("/clkg/")>=0,a=(e,n)=>({schema:"js_tracker_context_v1.2.json",data:{pageId:o.id,variantId:o.variantId,eventType:e??"",eventMetadata:n??[],routingStrategy:o.selectedRoutingStrategy,selectedRoutingStrategy:o.selectedRoutingStrategy,contentRoutingStrategy:o.contentRoutingStrategy}});var c,u,s,l,f;o.id&&(t()||o.id!==o.currentId)&&(s="sp-ub",l=`${document.location.protocol}//${document.location.hostname}/_ub`,void 0===(f={appId:"landing_page",platform:"web",eventMethod:"beacon",postPath:"/i",stateStorageStrategy:"none",plugins:[{activateBrowserPlugin:function(e){ge[e.id]=e}}]})&&(f={}),ve&&function(e,n,t,r,o,i){ue.hasOwnProperty(e)||(ue[e]=ce(e,n,t,r,o,i),ue[e])}(s,s,"js-".concat("3.15.0"),l,ve,f),c=e.visitorId,se(undefined,(function(e){e.setUserId(c)})),t()&&(u={context:[a("visit")]},se(void 0,(function(e){e.trackPageView(u)}))),window.ub.hooks.afterFormSubmit.push((e=>{const n=e.isConversionGoal?["conversion"]:[];!function(e){se(void 0,(function(n){n.core.track(A({event:e.event}),e.context,e.timestamp)}))}({event:{schema:"iglu:com.snowplowanalytics.snowplow/submit_form/jsonschema/1-0-0",data:{formId:"ub-form"}},context:[a("form-submission",n)]})})),me({options:{filter:i},pseudoClicks:!0,trackContent:!1,context:[a("link-click",["conversion"])]}),me({options:{filter:e=>!i(e)},pseudoClicks:!0,trackContent:!1,context:[a("link-click")]}),window.ubSnowplow=(e,n,t,r,o,i,c)=>{let u;u="boolean"==typeof c?c?[a("link-click",["conversion"])]:[a("link-click")]:c,"trackLinkClick"!==e?console.log("Unsupported event type."):he({targetUrl:n,elementId:t,elementClasses:r,elementTarget:o,elementContent:i,context:u})},n(),window.ubSnowplowInitialized=!0)})()}}()}();