Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gitlab/application-sdk-browser

Package Overview
Dependencies
Maintainers
0
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitlab/application-sdk-browser - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

30

dist/gl-sdk.cjs.js

@@ -1,38 +0,38 @@

"use strict";var n=function(){return n=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},n.apply(this,arguments)};function e(n,e,t){if(t||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return n.concat(r||Array.prototype.slice.call(e))}var t={exports:{}},r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var o=new Uint8Array(16);t.exports=function(){return r(o),o}}else{var i=new Array(16);t.exports=function(){for(var n,e=0;e<16;e++)0==(3&e)&&(n=4294967296*Math.random()),i[e]=n>>>((3&e)<<3)&255;return i}}for(var a=[],c=0;c<256;++c)a[c]=(c+256).toString(16).substr(1);var u,s,l=function(n,e){var t=e||0,r=a;return[r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]]].join("")},f=t.exports,d=l,g=0,v=0;var p=function(n,e,t){var r=e&&t||0,o=e||[],i=(n=n||{}).node||u,a=void 0!==n.clockseq?n.clockseq:s;if(null==i||null==a){var c=f();null==i&&(i=u=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==a&&(a=s=16383&(c[6]<<8|c[7]))}var l=void 0!==n.msecs?n.msecs:(new Date).getTime(),p=void 0!==n.nsecs?n.nsecs:v+1,m=l-g+(p-v)/1e4;if(m<0&&void 0===n.clockseq&&(a=a+1&16383),(m<0||l>g)&&void 0===n.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");g=l,v=p,s=a;var h=(1e4*(268435455&(l+=122192928e5))+p)%4294967296;o[r++]=h>>>24&255,o[r++]=h>>>16&255,o[r++]=h>>>8&255,o[r++]=255&h;var y=l/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=255&y,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var w=0;w<6;++w)o[r+w]=i[w];return e||d(o)},m=t.exports,h=l;var y=function(n,e,t){var r=e&&t||0;"string"==typeof n&&(e="binary"===n?new Array(16):null,n=null);var o=(n=n||{}).random||(n.rng||m)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;++i)e[r+i]=o[i];return e||h(o)},w=p,b=y,k=b;k.v1=w,k.v4=b;var S=k;
"use strict";var e=function(){return e=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},e.apply(this,arguments)};function n(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}var t={exports:{}},r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var o=new Uint8Array(16);t.exports=function(){return r(o),o}}else{var i=new Array(16);t.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),i[n]=e>>>((3&n)<<3)&255;return i}}for(var a=[],c=0;c<256;++c)a[c]=(c+256).toString(16).substr(1);var u,s,l=function(e,n){var t=n||0,r=a;return[r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]]].join("")},f=t.exports,d=l,v=0,g=0;var p=function(e,n,t){var r=n&&t||0,o=n||[],i=(e=e||{}).node||u,a=void 0!==e.clockseq?e.clockseq:s;if(null==i||null==a){var c=f();null==i&&(i=u=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==a&&(a=s=16383&(c[6]<<8|c[7]))}var l=void 0!==e.msecs?e.msecs:(new Date).getTime(),p=void 0!==e.nsecs?e.nsecs:g+1,m=l-v+(p-g)/1e4;if(m<0&&void 0===e.clockseq&&(a=a+1&16383),(m<0||l>v)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=l,g=p,s=a;var h=(1e4*(268435455&(l+=122192928e5))+p)%4294967296;o[r++]=h>>>24&255,o[r++]=h>>>16&255,o[r++]=h>>>8&255,o[r++]=255&h;var y=l/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=255&y,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var w=0;w<6;++w)o[r+w]=i[w];return n||d(o)},m=t.exports,h=l;var y=function(e,n,t){var r=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||m)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,n)for(var i=0;i<16;++i)n[r+i]=o[i];return n||h(o)},w=p,b=y,k=b;k.v1=w,k.v4=b;var S=k;
/*!
* Core functionality for Snowplow JavaScript trackers v3.12.0 (http://bit.ly/sp-js)
* Core functionality for Snowplow JavaScript trackers v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/function T(n){if(!n)return n;switch(4-n.length%4){case 2:n+="==";break;case 3:n+="="}return function(n){var e,t,r,o,i,a,c=function(n){return decodeURIComponent(n.split("").map((function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)})).join(""))},u=0,s=0,l="",f=[];if(!n)return n;n+="";do{e=(a=C.indexOf(n.charAt(u++))<<18|C.indexOf(n.charAt(u++))<<12|(o=C.indexOf(n.charAt(u++)))<<6|(i=C.indexOf(n.charAt(u++))))>>16&255,t=a>>8&255,r=255&a,f[s++]=64===o?String.fromCharCode(e):64===i?String.fromCharCode(e,t):String.fromCharCode(e,t,r)}while(u<n.length);return l=f.join(""),c(l.replace(/\0+$/,""))}(n.replace(/-/g,"+").replace(/_/g,"/"))}function x(n){if(!n)return n;var e=function(n){var e,t,r,o,i,a=0,c=0,u=[];if(!n)return n;n=unescape(encodeURIComponent(n));do{e=(i=n.charCodeAt(a++)<<16|n.charCodeAt(a++)<<8|n.charCodeAt(a++))>>18&63,t=i>>12&63,r=i>>6&63,o=63&i,u[c++]=C.charAt(e)+C.charAt(t)+C.charAt(r)+C.charAt(o)}while(a<n.length);var s=u.join(""),l=n.length%3;return(l?s.slice(0,l-3):s)+"===".slice(l||3)}(n);return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function E(){var n,e={},t=[],r=[],o=[],i=function(n,t){null!=t&&""!==t&&(e[n]=t)};return{add:i,addDict:function(n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&i(e,n[e])},addJson:function(n,e,o){if(o&&O(o)){var i={keyIfEncoded:n,keyIfNotEncoded:e,json:o};r.push(i),t.push(i)}},addContextEntity:function(n){o.push(n)},getPayload:function(){return e},getJson:function(){return t},withJsonProcessor:function(e){n=e},build:function(){return null==n||n(this,r,o),e}}}function A(n){return function(t,r,o){for(var i=function(e,r,o){var i=JSON.stringify(e);n?t.add(r,x(i)):t.add(o,i)},a=function(e,r){var o=e||function(){var e=t.getPayload();if(n?e.cx:e.co)return JSON.parse(n?T(e.cx):e.co)}();return o?o.data=o.data.concat(r.data):o=r,o},c=void 0,u=0,s=r;u<s.length;u++){var l=s[u];"cx"===l.keyIfEncoded?c=a(c,l.json):i(l.json,l.keyIfEncoded,l.keyIfNotEncoded)}(r.length=0,o.length)&&(c=a(c,{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:e([],o,!0)}),o.length=0);c&&i(c,"cx","co")}}function O(n){if(!P(n))return!1;for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e))return!0;return!1}function P(n){return null!=n&&(n.constructor==={}.constructor||n.constructor===[].constructor)}var I,L="Snowplow: ";!function(n){n[n.none=0]="none",n[n.error=1]="error",n[n.warn=2]="warn",n[n.debug=3]="debug",n[n.info=4]="info"}(I||(I={}));var j=function(n){void 0===n&&(n=I.warn);return{setLogLevel:function(e){n=I[e]?e:I.warn},warn:function(t,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(n>=I.warn&&"undefined"!=typeof console){var a=L+t;r?console.warn.apply(console,e([a+"\n",r],o,!1)):console.warn.apply(console,e([a],o,!1))}},error:function(t,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(n>=I.error&&"undefined"!=typeof console){var a=L+t+"\n";r?console.error.apply(console,e([a+"\n",r],o,!1)):console.error.apply(console,e([a],o,!1))}},debug:function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];n>=I.debug&&"undefined"!=typeof console&&console.debug.apply(console,e([L+t],r,!1))},info:function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];n>=I.info&&"undefined"!=typeof console&&console.info.apply(console,e([L+t],r,!1))}}}();function D(){var n=[],e=[],t=function(t){var r=function(n){for(var e=n.getJson(),t=0,r=e;t<r.length;t++){var o=r[t];if("ue_px"===o.keyIfEncoded&&"object"==typeof o.json.data){var i=o.json.data.schema;if("string"==typeof i)return i}}return""}(t),o=function(n){var e=n.getPayload().e;return"string"==typeof e?e:""}(t),i=[],a=X(n,t,o,r);i.push.apply(i,a);var c=function(n,e,t,r){var o,i=q(n),a=function(n){var o=function(n,e,t,r){if(H(n)){var o=n[0],i=!1;try{i=o({event:e.getPayload(),eventType:t,eventSchema:r})}catch(n){i=!1}if(!0===i)return X(n[1],e,t,r)}else if(z(n)&&function(n,e){var t=0,r=0,o=n.accept;Array.isArray(o)?n.accept.some((function(n){return F(n,e)}))&&r++:"string"==typeof o&&F(o,e)&&r++;var i=n.reject;Array.isArray(i)?n.reject.some((function(n){return F(n,e)}))&&t++:"string"==typeof i&&F(i,e)&&t++;if(r>0&&0===t)return!0;if(0===r&&t>0)return!1;return!1}(n[0],r))return X(n[1],e,t,r);return[]}(n,e,t,r);if(o&&0!==o.length)return o},c=i.map(a);return(o=[]).concat.apply(o,c.filter((function(n){return null!=n&&n.filter(Boolean)})))}(e,t,o,r);return i.push.apply(i,c),i};return{getGlobalPrimitives:function(){return n},getConditionalProviders:function(){return e},addGlobalContexts:function(t){for(var r=[],o=[],i=0,a=t;i<a.length;i++){var c=a[i];J(c)?r.push(c):M(c)&&o.push(c)}n=n.concat(o),e=e.concat(r)},clearGlobalContexts:function(){e=[],n=[]},removeGlobalContexts:function(t){for(var r=function(t){J(t)?e=e.filter((function(n){return JSON.stringify(n)!==JSON.stringify(t)})):M(t)&&(n=n.filter((function(n){return JSON.stringify(n)!==JSON.stringify(t)})))},o=0,i=t;o<i.length;o++){r(i[o])}},getApplicableContexts:function(n){return t(n)}}}function N(n){var e=n.split(".");return!!(e&&e.length>1)&&function(n){if("*"===n[0]||"*"===n[1])return!1;if(n.slice(2).length>0){for(var e=!1,t=0,r=n.slice(2);t<r.length;t++)if("*"===r[t])e=!0;else if(e)return!1;return!0}return 2==n.length}(e)}function U(n){var e=new RegExp("^iglu:((?:(?:[a-zA-Z0-9-_]+|\\*).)+(?:[a-zA-Z0-9-_]+|\\*))/([a-zA-Z0-9-_.]+|\\*)/jsonschema/([1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)$").exec(n);if(null!==e&&N(e[1]))return e.slice(1,6)}function B(n){var e=U(n);if(e){var t=e[0];return 5===e.length&&N(t)}return!1}function _(n){return function(n){return Array.isArray(n)&&n.every((function(n){return"string"==typeof n}))}(n)?n.every((function(n){return B(n)})):"string"==typeof n&&B(n)}function R(n){var e=n;return!!(O(e)&&"schema"in e&&"data"in e)&&("string"==typeof e.schema&&"object"==typeof e.data)}function V(n){return"function"==typeof n&&n.length<=1}function M(n){return V(n)||R(n)}function H(n){return!(!Array.isArray(n)||2!==n.length)&&(Array.isArray(n[1])?V(n[0])&&n[1].every(M):V(n[0])&&M(n[1]))}function z(n){return!(!Array.isArray(n)||2!==n.length)&&(!!function(n){var e=n,t=0;if(null!=n&&"object"==typeof n&&!Array.isArray(n)){if(Object.prototype.hasOwnProperty.call(e,"accept")){if(!_(e.accept))return!1;t+=1}if(Object.prototype.hasOwnProperty.call(e,"reject")){if(!_(e.reject))return!1;t+=1}return t>0&&t<=2}return!1}(n[0])&&(Array.isArray(n[1])?n[1].every(M):M(n[1])))}function J(n){return H(n)||z(n)}function F(n,e){if(!B(n))return!1;var t=U(n),r=function(n){var e=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(n);if(null!==e)return e.slice(1,6)}(e);if(t&&r){if(!function(n,e){var t=e.split("."),r=n.split(".");if(t&&r){if(t.length!==r.length)return!1;for(var o=0;o<r.length;o++)if(!G(t[o],r[o]))return!1;return!0}return!1}(t[0],r[0]))return!1;for(var o=1;o<5;o++)if(!G(t[o],r[o]))return!1;return!0}return!1}function G(n,e){return n&&e&&"*"===n||n===e}function q(n){return Array.isArray(n)?n:Array.of(n)}function X(n,e,t,r){var o,i=q(n).map((function(n){var o=function(n,e,t,r){if(R(n))return[n];if(V(n)){var o=function(n,e,t,r){var o=void 0;try{return o=n({event:e.getPayload(),eventType:t,eventSchema:r}),Array.isArray(o)&&o.every(R)||R(o)?o:void 0}catch(n){o=void 0}return o}(n,e,t,r);if(R(o))return[o];if(Array.isArray(o))return o}return}(n,e,t,r);if(o&&0!==o.length)return o}));return(o=[]).concat.apply(o,i.filter((function(n){return null!=n&&n.filter(Boolean)})))}function W(t){void 0===t&&(t={});var r=t.base64,o=t.corePlugins,i=t.callback,a=null!=o?o:[],c=function(n,t,r){var o=function(n){return{addPluginContexts:function(t){var r=t?e([],t,!0):[];return n.forEach((function(n){try{n.contexts&&r.push.apply(r,n.contexts())}catch(n){j.error("Error adding plugin contexts",n)}})),r}}}(t),i=D(),a=n,c={};function u(n,e){c[n]=e}var s={track:function(n,e,u){n.withJsonProcessor(A(a)),n.add("eid",S.v4()),n.addDict(c);var s=function(n){return null==n?{type:"dtm",value:(new Date).getTime()}:"number"==typeof n?{type:"dtm",value:n}:"ttm"===n.type?{type:"ttm",value:n.value}:{type:"dtm",value:n.value||(new Date).getTime()}}(u);n.add(s.type,s.value.toString());var l=function(n){if(n&&n.length)return{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:n}}(function(n,e){var t=i.getApplicableContexts(n),r=[];return e&&e.length&&r.push.apply(r,e),t&&t.length&&r.push.apply(r,t),r}(n,o.addPluginContexts(e)));void 0!==l&&n.addJson("cx","co",l),t.forEach((function(e){try{e.beforeTrack&&e.beforeTrack(n)}catch(n){j.error("Plugin beforeTrack",n)}})),"function"==typeof r&&r(n);var f=n.build();return t.forEach((function(n){try{n.afterTrack&&n.afterTrack(f)}catch(n){j.error("Plugin afterTrack",n)}})),f},addPayloadPair:u,getBase64Encoding:function(){return a},setBase64Encoding:function(n){a=n},addPayloadDict:function(n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(c[e]=n[e])},resetPayloadPairs:function(n){c=P(n)?n:{}},setTrackerVersion:function(n){u("tv",n)},setTrackerNamespace:function(n){u("tna",n)},setAppId:function(n){u("aid",n)},setPlatform:function(n){u("p",n)},setUserId:function(n){u("uid",n)},setScreenResolution:function(n,e){u("res",n+"x"+e)},setViewport:function(n,e){u("vp",n+"x"+e)},setColorDepth:function(n){u("cd",n)},setTimezone:function(n){u("tz",n)},setLang:function(n){u("lang",n)},setIpAddress:function(n){u("ip",n)},setUseragent:function(n){u("ua",n)},addGlobalContexts:function(n){i.addGlobalContexts(n)},clearGlobalContexts:function(){i.clearGlobalContexts()},removeGlobalContexts:function(n){i.removeGlobalContexts(n)}};return s}(null==r||r,a,i),u=n(n({},c),{addPlugin:function(n){var e,t,r=n.plugin;a.push(r),null===(e=r.logger)||void 0===e||e.call(r,j),null===(t=r.activateCorePlugin)||void 0===t||t.call(r,u)}});return null==a||a.forEach((function(n){var e,t;null===(e=n.logger)||void 0===e||e.call(n,j),null===(t=n.activateCorePlugin)||void 0===t||t.call(n,u)})),u}function Y(n){var e=n.event,t=e.schema,r=e.data,o=E(),i={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:t,data:r}};return o.add("e","ue"),o.addJson("ue_px","ue_pr",i),o}function Q(n,e){void 0===e&&(e={});var t={};for(var r in n)(e[r]||null!==n[r]&&void 0!==n[r])&&(t[r]=n[r]);return t}var Z,K,$={exports:{}},nn={exports:{}};Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K={rotl:function(n,e){return n<<e|n>>>32-e},rotr:function(n,e){return n<<32-e|n>>>e},endian:function(n){if(n.constructor==Number)return 16711935&K.rotl(n,8)|4278255360&K.rotl(n,24);for(var e=0;e<n.length;e++)n[e]=K.endian(n[e]);return n},randomBytes:function(n){for(var e=[];n>0;n--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(n){for(var e=[],t=0,r=0;t<n.length;t++,r+=8)e[r>>>5]|=n[t]<<24-r%32;return e},wordsToBytes:function(n){for(var e=[],t=0;t<32*n.length;t+=8)e.push(n[t>>>5]>>>24-t%32&255);return e},bytesToHex:function(n){for(var e=[],t=0;t<n.length;t++)e.push((n[t]>>>4).toString(16)),e.push((15&n[t]).toString(16));return e.join("")},hexToBytes:function(n){for(var e=[],t=0;t<n.length;t+=2)e.push(parseInt(n.substr(t,2),16));return e},bytesToBase64:function(n){for(var e=[],t=0;t<n.length;t+=3)for(var r=n[t]<<16|n[t+1]<<8|n[t+2],o=0;o<4;o++)8*t+6*o<=8*n.length?e.push(Z.charAt(r>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],t=0,r=0;t<n.length;r=++t%4)0!=r&&e.push((Z.indexOf(n.charAt(t-1))&Math.pow(2,-2*r+8)-1)<<2*r|Z.indexOf(n.charAt(t))>>>6-2*r);return e}},nn.exports=K;var en={utf8:{stringToBytes:function(n){return en.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(en.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var e=[],t=0;t<n.length;t++)e.push(255&n.charCodeAt(t));return e},bytesToString:function(n){for(var e=[],t=0;t<n.length;t++)e.push(String.fromCharCode(n[t]));return e.join("")}}},tn=en;function rn(n,e,t){void 0===t&&(t=63072e3);try{var r=window.localStorage,o=Date.now()+1e3*t;return r.setItem("".concat(n,".expires"),o.toString()),r.setItem(n,e),!0}catch(n){return!1}}function on(n){try{var e=window.localStorage;return e.removeItem(n),e.removeItem(n+".expires"),!0}catch(n){return!1}}function an(n){try{return window.sessionStorage.getItem(n)}catch(n){return}}function cn(n){return!(!n||"string"!=typeof n.valueOf())}function un(n){return Number.isInteger&&Number.isInteger(n)||"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}function sn(n){return!(!n||"function"!=typeof n)}function ln(n){if(!cn(n)){n=n.text||"";var e=document.getElementsByTagName("title");e&&null!=e[0]&&(n=e[0].text)}return n}function fn(n){var e=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)").exec(n);return e?e[1]:n}function dn(n){var e=n.length;return"."===n.charAt(--e)&&(n=n.slice(0,e)),"*."===n.slice(0,2)&&(n=n.slice(1)),n}function gn(n){var e=window,t=pn("referrer",e.location.href)||pn("referer",e.location.href);if(t)return t;if(n)return n;try{if(e.top)return e.top.document.referrer;if(e.parent)return e.parent.document.referrer}catch(n){}return document.referrer}function vn(n,e,t,r){return n.addEventListener?(n.addEventListener(e,t,r),!0):n.attachEvent?n.attachEvent("on"+e,t):void(n["on"+e]=t)}function pn(n,e){var t=new RegExp("^[^#]*[?&]"+n+"=([^&#]*)").exec(e);return t?decodeURIComponent(t[1].replace(/\+/g," ")):null}function mn(n,e,t,r){yn(n,"",-1,"/",e,t,r)}function hn(n){for(var e=document.cookie.split("; "),t=[],r=0;r<e.length;r++)e[r].substring(0,n.length)===n&&t.push(e[r]);return t}function yn(n,e,t,r,o,i,a){return arguments.length>1?document.cookie=n+"="+encodeURIComponent(null!=e?e:"")+(t?"; Expires="+new Date(+new Date+1e3*t).toUTCString():"")+(r?"; Path="+r:"")+(o?"; Domain="+o:"")+(i?"; SameSite="+i:"")+(a?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+n+"=")[1]||"").split(";")[0])}function wn(n){if(null==n||"object"!=typeof n||Array.isArray(n))return function(){return!0};var e=Object.prototype.hasOwnProperty.call(n,"allowlist"),t=function(n){var e={},t=n.allowlist||n.denylist;if(t){Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++)e[t[r]]=!0}return e}(n);return function(n,e){if(n.hasOwnProperty("filter")&&n.filter)return n.filter;return e}(n,(function(n){return function(n,e){for(var t=bn(n),r=0,o=t;r<o.length;r++){if(e[o[r]])return!0}return!1}(n,t)===e}))}function bn(n){return n.className.match(/\S+/g)||[]}function kn(){var n="modernizr";if(!function(){try{return!!window.localStorage}catch(n){return!0}}())return!1;try{var e=window.localStorage;return e.setItem(n,n),e.removeItem(n),!0}catch(n){return!1}}!function(){var n=nn.exports,e=tn.utf8,t=tn.bin,r=function(r,o){var i=n.wordsToBytes(function(t){t.constructor==String?t=e.stringToBytes(t):"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());var r=n.bytesToWords(t),o=8*t.length,i=[],a=1732584193,c=-271733879,u=-1732584194,s=271733878,l=-1009589776;r[o>>5]|=128<<24-o%32,r[15+(o+64>>>9<<4)]=o;for(var f=0;f<r.length;f+=16){for(var d=a,g=c,v=u,p=s,m=l,h=0;h<80;h++){if(h<16)i[h]=r[f+h];else{var y=i[h-3]^i[h-8]^i[h-14]^i[h-16];i[h]=y<<1|y>>>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+=g,u+=v,s+=p,l+=m}return[a,c,u,s,l]}(r));return o&&o.asBytes?i:o&&o.asString?t.bytesToString(i):n.bytesToHex(i)};r._blocksize=16,r._digestsize=20,$.exports=r}();var Sn="iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",Tn="iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/1-0-0",xn="iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",Cn="iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4";function En(n,e,t,r,o,i,a,c,u,s,l,f,d,g,v,p){var m,h,y=!1,w=[],b=!0===(r="string"==typeof r?r.toLowerCase():r)||"beacon"===r||"true"===r,k=Boolean(b&&window.navigator&&window.navigator.sendBeacon&&!(function(n,e){var t=e.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/");return!(!t||!t.length)&&parseInt(t[0])<=n}(13,h=window.navigator.userAgent)||function(n,e,t){var r=t.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/");return!(!r||!r.length)&&(parseInt(r[0])<=n||parseInt(r[0])===n&&parseInt(r[1])<=e)}(10,15,h)&&function(n){return n.match("Version/.* Safari/")&&!function(n){return n.match("Chrom(e|ium)")}(n)}(h)))&&b,S="get"===r,T=Boolean(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),x=!S&&T&&("post"===r||b),C=x?o:"/i",E="snowplowOutQueue_".concat(n,"_").concat(x?"post2":"get");if(b&&(d={}),i=t&&kn()&&x&&i||1,t)try{var A=window.localStorage.getItem(E);w=A?JSON.parse(A):[]}catch(n){}function O(n){var e=Object.keys(n).map((function(e){return[e,n[e]]})).reduce((function(n,e){var t=e[0],r=e[1];return n[t]=r.toString(),n}),{});return{evt:e,bytes:P(JSON.stringify(e))}}function P(n){for(var e=0,t=0;t<n.length;t++){var r=n.charCodeAt(t);r<=127?e+=1:r<=2047?e+=2:r>=55296&&r<=57343?(e+=4,t++):e+=r<65535?3:4}return e}Array.isArray(w)||(w=[]),e.outQueues.push(w),T&&i>1&&e.bufferFlushers.push((function(n){y||D(n)}));var I=function(n){return"object"==typeof n[0]};function L(n,e){N(e,!0,!1).send(U(B([n.evt])))}function D(n){for(void 0===n&&(n=!1);w.length&&"string"!=typeof w[0]&&"object"!=typeof w[0];)w.shift();if(w.length<1)y=!1;else{if(!cn(m))throw"No collector configured";if(y=!0,T){var e,r,o=void 0;I(w)?(e=N(o=m,!0,n),r=function(n){for(var e=0,t=0;e<n.length&&!((t+=n[e].bytes)>=a);)e+=1;return e}(w)):(o=_(w[0]),e=N(o,!1,n),r=1);var i=setTimeout((function(){e.abort(),y=!1}),l),c=function(n){for(var e=0;e<n;e++)w.shift();t&&rn(E,JSON.stringify(w.slice(0,s)))},u=function(n){c(n),D()};if(e.onreadystatechange=function(){4===e.readyState&&e.status>=200&&(clearTimeout(i),e.status<300?u(r):(function(n){if(n>=200&&n<300)return!1;if(v.includes(n))return!0;return!p.includes(n)}(e.status)||(j.error("Status ".concat(e.status,", will not retry.")),c(r)),y=!1))},I(w)){var d=w.slice(0,r);if(d.length>0){var g=!1,h=d.map((function(n){return n.evt}));if(k){var b=new Blob([U(B(h))],{type:"application/json"});try{g=navigator.sendBeacon(o,b)}catch(n){g=!1}}!0===g?u(r):e.send(U(B(h)))}}else e.send()}else if(f||I(w))y=!1;else{var S=new Image(1,1),x=!0;S.onload=function(){x&&(x=!1,w.shift(),t&&rn(E,JSON.stringify(w.slice(0,s))),D())},S.onerror=function(){x&&(x=!1,y=!1)},S.src=_(w[0]),setTimeout((function(){x&&y&&(x=!1,D())}),l)}}}function N(n,e,t){var r=new XMLHttpRequest;for(var o in e?(r.open("POST",n,!t),r.setRequestHeader("Content-Type","application/json; charset=UTF-8")):r.open("GET",n,!t),r.withCredentials=g,f&&r.setRequestHeader("SP-Anonymous","*"),d)Object.prototype.hasOwnProperty.call(d,o)&&r.setRequestHeader(o,d[o]);return r}function U(n){return JSON.stringify({schema:Cn,data:n})}function B(n){for(var e=(new Date).getTime().toString(),t=0;t<n.length;t++)n[t].stm=e;return n}function _(n){return u?m+n.replace("?","?stm="+(new Date).getTime()+"&"):m+n}return{enqueueRequest:function(n,e){m=e+C;var r=function(n,e){return j.warn("Event ("+n+"B) too big, max is "+e)};if(x){if((f=O(n)).bytes>=a)return r(f.bytes,a),void L(f,m);w.push(f)}else{var u=function(n){var e="?",t={co:!0,cx:!0},r=!0;for(var o in n)n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(r?r=!1:e+="&",e+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));for(var i in t)n.hasOwnProperty(i)&&t.hasOwnProperty(i)&&(e+="&"+i+"="+encodeURIComponent(n[i]));return e}(n);if(c>0){var l=P(_(u));if(l>=c){var f;if(r(l,c),T)L(f=O(n),e+o);return}}w.push(u)}var d=!1;t&&(d=rn(E,JSON.stringify(w.slice(0,s)))),y||d&&!(w.length>=i)||D()},executeQueue:function(){y||D()},setUseLocalStorage:function(n){t=n},setAnonymousTracking:function(n){f=n},setCollectorUrl:function(n){m=n+C},setBufferSize:function(n){i=n}}}function An(n,e,t){var r,o,i,a;return"translate.googleusercontent.com"===n?(""===t&&(t=e),n=fn(e=null!==(o=e,i="u",r=(a=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+))([?][^#]+)").exec(o))&&(null==a?void 0:a.length)>1?pn(i,a[1]):null)&&void 0!==r?r:"")):"cc.bingj.com"!==n&&"webcache.googleusercontent.com"!==n||(n=fn(e=document.links[0].href)),[n,e,t]}var On=0,Pn=1,In=2,Ln=3,jn=4,Dn=5,Nn=6,Un=7,Bn=8,_n=9,Rn=10;function Vn(e,t){var r=n({memorizedVisitCount:1},t),o=r.memorizedVisitCount,i=r.configStateStorageStrategy,a=r.configAnonymousTracking,c=r.onSessionUpdateCallback;Fn(e)?(e[Un]=e[Nn],e[Dn]=e[jn],e[Ln]++):e[Ln]=o;var u=S.v4();return e[Nn]=u,e[Rn]=0,e[Bn]="",e[_n]=void 0,c&&c(Hn(e,i,a)),u}function Mn(n){n[jn]=Math.round((new Date).getTime()/1e3)}function Hn(n,e,t){var r=n[_n];return{userId:t?"00000000-0000-0000-0000-000000000000":n[Pn],sessionId:n[Nn],eventIndex:n[Rn],sessionIndex:n[Ln],previousSessionId:t?null:n[Un]||null,storageMechanism:"localStorage"==e?"LOCAL_STORAGE":"COOKIE_1",firstEventId:n[Bn]||null,firstEventTimestamp:r?new Date(r).toISOString():null}}function zn(n){return n[Nn]}function Jn(n){return n[Ln]}function Fn(n){return"0"===n[On]}var Gn="x";function qn(){return{viewport:Wn(Xn()),documentSize:Wn((n=document.documentElement,e=document.body,t=e?Math.max(e.offsetHeight,e.scrollHeight):0,r=Math.max(n.clientWidth,n.offsetWidth,n.scrollWidth),o=Math.max(n.clientHeight,n.offsetHeight,n.scrollHeight,t),isNaN(r)||isNaN(o)?"":r+Gn+o)),resolution:Wn(screen.width+Gn+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 n,e,t,r,o}function Xn(){var n,e;if("innerWidth"in window)n=window.innerWidth,e=window.innerHeight;else{var t=document.documentElement||document.body;n=t.clientWidth,e=t.clientHeight}return n>=0&&e>=0?n+Gn+e:null}function Wn(n){return n&&n.split(Gn).map((function(n){return Math.floor(Number(n))})).join(Gn)}function Yn(e,t,r,o,i,a){void 0===a&&(a={});var c=[],u=function(e,t,r,o,i,a){var u,s,l,f,d,g,v,p,m,h,y,w,b,k,T,x,C,A,O,P,I,L,D,N,U,B,_,R;a.eventMethod=null!==(u=a.eventMethod)&&void 0!==u?u:"post";var V,M,H=function(n){var e;return null!==(e=n.stateStorageStrategy)&&void 0!==e?e:"cookieAndLocalStorage"},z=function(n){var e,t;return"boolean"!=typeof n.anonymousTracking&&(null!==(t=!0===(null===(e=n.anonymousTracking)||void 0===e?void 0:e.withSessionTracking))&&void 0!==t&&t)},J=function(n){var e,t;return"boolean"!=typeof n.anonymousTracking&&(null!==(t=!0===(null===(e=n.anonymousTracking)||void 0===e?void 0:e.withServerAnonymisation))&&void 0!==t&&t)},F=function(n){return!!n.anonymousTracking},G=null!==(l=null===(s=null==a?void 0:a.contexts)||void 0===s?void 0:s.browser)&&void 0!==l&&l,q=null===(d=null===(f=null==a?void 0:a.contexts)||void 0===f?void 0:f.webPage)||void 0===d||d;c.push((V=function(n){return he?null:n},M=function(n){return pe?n:V(n)},{beforeTrack:function(n){var e=Re("ses"),t=Ze();if(Xn=!!nn&&!!yn(nn),de||Xn)We();else{Fn(t)?(Cn=e||"none"==ye?zn(t):Vn(t,{configStateStorageStrategy:ye,configAnonymousTracking:he,onSessionUpdateCallback:Ee}),be=Jn(t)):(new Date).getTime()-we>1e3*ve&&(be++,Cn=Vn(t,{configStateStorageStrategy:ye,configAnonymousTracking:he,memorizedVisitCount:be,onSessionUpdateCallback:Ee})),Mn(t),function(n,e){if(0===n[Rn]){var t=e.build();n[Bn]=t.eid;var r=t.dtm||t.ttm;n[_n]=r?parseInt(r):void 0}}(t,n),function(n){n[Rn]+=1}(t);var r=qn(),o=r.viewport,i=r.documentSize;n.add("vp",o),n.add("ds",i),n.add("vid",M(be)),n.add("sid",M(Cn)),n.add("duid",V(function(n){return n[Pn]}(t))),n.add("uid",V(Gn)),je(),n.add("refr",Ue(X||$n)),n.add("url",Ue(Y||Kn)),!Ce||he&&!pe||function(n,e){var t={schema:xn,data:e};n.addContextEntity(t)}(n,Hn(t,ye,he)),"none"!=ye&&(qe(t),Ge()),we=(new Date).getTime()}}})),q&&c.push({contexts:function(){return[{schema:Sn,data:{id:nt()}}]}}),G&&c.push({contexts:function(){return[{schema:Tn,data:n(n({},qn()),{tabId:et()})}]}}),c.push.apply(c,null!==(g=a.plugins)&&void 0!==g?g:[]);var X,Y,Q,Z,K,nn,en,tn,cn,sn,wn,bn,kn,Cn,Gn,Xn,Wn=W({base64:a.encodeBase64,corePlugins:c,callback:function(n){de||Xn||ke.enqueueRequest(n.build(),ee)}}),Yn=document.characterSet||document.charset,Qn=An(window.location.hostname,window.location.href,gn()),Zn=dn(Qn[0]),Kn=Qn[1],$n=Qn[2],ne=null!==(v=a.platform)&&void 0!==v?v:"web",ee=Ke(o),te=null!==(p=a.postPath)&&void 0!==p?p:"/com.snowplowanalytics.snowplow/tp2",re=null!==(m=a.appId)&&void 0!==m?m:"",oe=document.title,ie=null===(h=a.resetActivityTrackingOnPageView)||void 0===h||h,ae=null!==(y=a.cookieName)&&void 0!==y?y:"_sp_",ce=null!==(w=a.cookieDomain)&&void 0!==w?w:void 0,ue="/",se=null!==(b=a.cookieSameSite)&&void 0!==b?b:"None",le=null===(k=a.cookieSecure)||void 0===k||k,fe=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,de=void 0!==a.respectDoNotTrack&&(a.respectDoNotTrack&&("yes"===fe||"1"===fe)),ge=null!==(T=a.cookieLifetime)&&void 0!==T?T:63072e3,ve=null!==(x=a.sessionCookieTimeout)&&void 0!==x?x:1800,pe=z(a),me=J(a),he=F(a),ye=H(a),we=(new Date).getTime(),be=1,ke=En(e,i,"localStorage"==ye||"cookieAndLocalStorage"==ye,a.eventMethod,te,null!==(C=a.bufferSize)&&void 0!==C?C:1,null!==(A=a.maxPostBytes)&&void 0!==A?A:4e4,null!==(O=a.maxGetBytes)&&void 0!==O?O:0,null===(P=a.useStm)||void 0===P||P,null!==(I=a.maxLocalStorageQueueSize)&&void 0!==I?I:1e3,null!==(L=a.connectionTimeout)&&void 0!==L?L:5e3,me,null!==(D=a.customHeaders)&&void 0!==D?D:{},null===(N=a.withCredentials)||void 0===N||N,null!==(U=a.retryStatusCodes)&&void 0!==U?U:[],(null!==(B=a.dontRetryStatusCodes)&&void 0!==B?B:[]).concat([400,401,403,410,422])),Se=!1,Te=!1,xe={enabled:!1,installed:!1,configurations:{}},Ce=null!==(R=null===(_=a.contexts)||void 0===_?void 0:_.session)&&void 0!==R&&R,Ee=a.onSessionUpdateCallback;a.hasOwnProperty("discoverRootDomain")&&a.discoverRootDomain&&(ce=function(n,e){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(yn(o,i,0,"/",u,n,e),yn(o)===i){mn(o,u,n,e);for(var s=hn(r),l=0;l<s.length;l++)mn(s[l],u,n,e);return u}}return t}(se,le));var Ae=qn(),Oe=Ae.browserLanguage,Pe=Ae.resolution,Ie=Ae.colorDepth,Le=Ae.cookiesEnabled;function je(){(Qn=An(window.location.hostname,window.location.href,gn()))[1]!==Kn&&($n=gn(Kn)),Zn=dn(Qn[0]),Kn=Qn[1]}function De(n){var e=(new Date).getTime(),t=n.currentTarget;(null==t?void 0:t.href)&&(t.href=function(n,e,t){var r=e+"="+t,o=n.split("#"),i=o[0].split("?"),a=i.shift(),c=i.join("?");if(c){for(var u=!0,s=c.split("&"),l=0;l<s.length;l++)if(s[l].substr(0,e.length+1)===e+"="){u=!1,s[l]=r,c=s.join("&");break}u&&(c=r+"&"+c)}else c=r;return o[0]=a+"?"+c,o.join("#")}(t.href,"_sp",kn+"."+e))}function Ne(n){for(var e=0;e<document.links.length;e++){var t=document.links[e];!t.spDecorationEnabled&&n(t)&&(vn(t,"click",De,!0),vn(t,"mousedown",De,!0),t.spDecorationEnabled=!0)}}function Ue(n){var e;return Z&&(e=new RegExp("#.*"),n=n.replace(e,"")),K&&(e=new RegExp("[{}]","g"),n=n.replace(e,"")),n}function Be(n){var e=new RegExp("^([a-z]+):").exec(n);return e?e[1]:null}function _e(n){return ae+n+"."+bn}function Re(n){var e=_e(n);return"localStorage"==ye?
*/function T(e){if(!e)return e;switch(4-e.length%4){case 2:e+="==";break;case 3:e+="="}return function(e){var n,t,r,o,i,a,c=function(e){return decodeURIComponent(e.split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))},u=0,s=0,l="",f=[];if(!e)return e;e+="";do{n=(a=E.indexOf(e.charAt(u++))<<18|E.indexOf(e.charAt(u++))<<12|(o=E.indexOf(e.charAt(u++)))<<6|(i=E.indexOf(e.charAt(u++))))>>16&255,t=a>>8&255,r=255&a,f[s++]=64===o?String.fromCharCode(n):64===i?String.fromCharCode(n,t):String.fromCharCode(n,t,r)}while(u<e.length);return l=f.join(""),c(l.replace(/\0+$/,""))}(e.replace(/-/g,"+").replace(/_/g,"/"))}function x(e){if(!e)return e;var n=function(e){var n,t,r,o,i,a=0,c=0,u=[];if(!e)return e;e=unescape(encodeURIComponent(e));do{n=(i=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,t=i>>12&63,r=i>>6&63,o=63&i,u[c++]=E.charAt(n)+E.charAt(t)+E.charAt(r)+E.charAt(o)}while(a<e.length);var s=u.join(""),l=e.length%3;return(l?s.slice(0,l-3):s)+"===".slice(l||3)}(e);return n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function C(){var e,n={},t=[],r=[],o=[],i=function(e,t){null!=t&&""!==t&&(n[e]=t)};return{add:i,addDict:function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&i(n,e[n])},addJson:function(e,n,o){if(o&&I(o)){var i={keyIfEncoded:e,keyIfNotEncoded:n,json:o};r.push(i),t.push(i)}},addContextEntity:function(e){o.push(e)},getPayload:function(){return n},getJson:function(){return t},withJsonProcessor:function(n){e=n},build:function(){return null==e||e(this,r,o),n}}}function A(e){return function(t,r,o){for(var i=function(n,r,o){var i=JSON.stringify(n);e?t.add(r,x(i)):t.add(o,i)},a=function(n,r){var o=n||function(){var n=t.getPayload();if(e?n.cx:n.co)return JSON.parse(e?T(n.cx):n.co)}();return o?o.data=o.data.concat(r.data):o=r,o},c=void 0,u=0,s=r;u<s.length;u++){var l=s[u];"cx"===l.keyIfEncoded?c=a(c,l.json):i(l.json,l.keyIfEncoded,l.keyIfNotEncoded)}(r.length=0,o.length)&&(c=a(c,{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:n([],o,!0)}),o.length=0);c&&i(c,"cx","co")}}function I(e){if(!O(e))return!1;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))return!0;return!1}function O(e){return null!=e&&(e.constructor==={}.constructor||e.constructor===[].constructor)}var P,L="Snowplow: ";!function(e){e[e.none=0]="none",e[e.error=1]="error",e[e.warn=2]="warn",e[e.debug=3]="debug",e[e.info=4]="info"}(P||(P={}));var j=function(e){void 0===e&&(e=P.warn);return{setLogLevel:function(n){e=P[n]?n:P.warn},warn:function(t,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(e>=P.warn&&"undefined"!=typeof console){var a=L+t;r?console.warn.apply(console,n([a+"\n",r],o,!1)):console.warn.apply(console,n([a],o,!1))}},error:function(t,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(e>=P.error&&"undefined"!=typeof console){var a=L+t+"\n";r?console.error.apply(console,n([a+"\n",r],o,!1)):console.error.apply(console,n([a],o,!1))}},debug:function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e>=P.debug&&"undefined"!=typeof console&&console.debug.apply(console,n([L+t],r,!1))},info:function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e>=P.info&&"undefined"!=typeof console&&console.info.apply(console,n([L+t],r,!1))}}}();function D(){var e=[],n=[],t=function(t){var r=function(e){for(var n=e.getJson(),t=0,r=n;t<r.length;t++){var o=r[t];if("ue_px"===o.keyIfEncoded&&"object"==typeof o.json.data){var i=o.json.data.schema;if("string"==typeof i)return i}}return""}(t),o=function(e){var n=e.getPayload().e;return"string"==typeof n?n:""}(t),i=[],a=X(e,t,o,r);i.push.apply(i,a);var c=function(e,n,t,r){var o,i=G(e),a=function(e){var o=function(e,n,t,r){if(z(e)){var o=e[0],i=!1;try{i=o({event:n.getPayload(),eventType:t,eventSchema:r})}catch(e){i=!1}if(!0===i)return X(e[1],n,t,r)}else if(H(e)&&function(e,n){var t=0,r=0,o=e.accept;Array.isArray(o)?e.accept.some((function(e){return J(e,n)}))&&r++:"string"==typeof o&&J(o,n)&&r++;var i=e.reject;Array.isArray(i)?e.reject.some((function(e){return J(e,n)}))&&t++:"string"==typeof i&&J(i,n)&&t++;if(r>0&&0===t)return!0;if(0===r&&t>0)return!1;return!1}(e[0],r))return X(e[1],n,t,r);return[]}(e,n,t,r);if(o&&0!==o.length)return o},c=i.map(a);return(o=[]).concat.apply(o,c.filter((function(e){return null!=e&&e.filter(Boolean)})))}(n,t,o,r);return i.push.apply(i,c),i};return{getGlobalPrimitives:function(){return e},getConditionalProviders:function(){return n},addGlobalContexts:function(t){for(var r=[],o=[],i=0,a=t;i<a.length;i++){var c=a[i];F(c)?r.push(c):M(c)&&o.push(c)}e=e.concat(o),n=n.concat(r)},clearGlobalContexts:function(){n=[],e=[]},removeGlobalContexts:function(t){for(var r=function(t){F(t)?n=n.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)})):M(t)&&(e=e.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)})))},o=0,i=t;o<i.length;o++){r(i[o])}},getApplicableContexts:function(e){return t(e)}}}function U(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);t<r.length;t++)if("*"===r[t])n=!0;else if(n)return!1;return!0}return 2==e.length}(n)}function N(e){var n=new RegExp("^iglu:((?:(?:[a-zA-Z0-9-_]+|\\*).)+(?:[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&&U(n[1]))return n.slice(1,6)}function R(e){var n=N(e);if(n){var t=n[0];return 5===n.length&&U(t)}return!1}function B(e){return function(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}(e)?e.every((function(e){return R(e)})):"string"==typeof e&&R(e)}function V(e){var n=e;return!!(I(n)&&"schema"in n&&"data"in n)&&("string"==typeof n.schema&&"object"==typeof n.data)}function _(e){return"function"==typeof e&&e.length<=1}function M(e){return _(e)||V(e)}function z(e){return!(!Array.isArray(e)||2!==e.length)&&(Array.isArray(e[1])?_(e[0])&&e[1].every(M):_(e[0])&&M(e[1]))}function H(e){return!(!Array.isArray(e)||2!==e.length)&&(!!function(e){var n=e,t=0;if(null!=e&&"object"==typeof e&&!Array.isArray(e)){if(Object.prototype.hasOwnProperty.call(n,"accept")){if(!B(n.accept))return!1;t+=1}if(Object.prototype.hasOwnProperty.call(n,"reject")){if(!B(n.reject))return!1;t+=1}return t>0&&t<=2}return!1}(e[0])&&(Array.isArray(e[1])?e[1].every(M):M(e[1])))}function F(e){return z(e)||H(e)}function J(e,n){if(!R(e))return!1;var t=N(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;o<r.length;o++)if(!q(t[o],r[o]))return!1;return!0}return!1}(t[0],r[0]))return!1;for(var o=1;o<5;o++)if(!q(t[o],r[o]))return!1;return!0}return!1}function q(e,n){return e&&n&&"*"===e||e===n}function G(e){return Array.isArray(e)?e:Array.of(e)}function X(e,n,t,r){var o,i=G(e).map((function(e){var o=function(e,n,t,r){if(V(e))return[e];if(_(e)){var o=function(e,n,t,r){var o=void 0;try{return o=e({event:n.getPayload(),eventType:t,eventSchema:r}),Array.isArray(o)&&o.every(V)||V(o)?o:void 0}catch(e){o=void 0}return o}(e,n,t,r);if(V(o))return[o];if(Array.isArray(o))return o}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)})))}function W(t){void 0===t&&(t={});var r=t.base64,o=t.corePlugins,i=t.callback,a=null!=o?o:[],c=function(e,t,r){var o=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){j.error("Error adding plugin contexts",e)}})),r}}}(t),i=D(),a=e,c={};function u(e,n){c[e]=n}var s={track:function(e,n,u){e.withJsonProcessor(A(a)),e.add("eid",S.v4()),e.addDict(c);var s=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(s.type,s.value.toString());var l=function(e){if(e&&e.length)return{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:e}}(function(e,n){var t=i.getApplicableContexts(e),r=[];return n&&n.length&&r.push.apply(r,n),t&&t.length&&r.push.apply(r,t),r}(e,o.addPluginContexts(n)));void 0!==l&&e.addJson("cx","co",l),t.forEach((function(n){try{n.beforeTrack&&n.beforeTrack(e)}catch(e){j.error("Plugin beforeTrack",e)}})),"function"==typeof r&&r(e);var f=e.build();return t.forEach((function(e){try{e.afterTrack&&e.afterTrack(f)}catch(e){j.error("Plugin afterTrack",e)}})),f},addPayloadPair:u,getBase64Encoding:function(){return a},setBase64Encoding:function(e){a=e},addPayloadDict:function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(c[n]=e[n])},resetPayloadPairs:function(e){c=O(e)?e:{}},setTrackerVersion:function(e){u("tv",e)},setTrackerNamespace:function(e){u("tna",e)},setAppId:function(e){u("aid",e)},setPlatform:function(e){u("p",e)},setUserId:function(e){u("uid",e)},setScreenResolution:function(e,n){u("res",e+"x"+n)},setViewport:function(e,n){u("vp",e+"x"+n)},setColorDepth:function(e){u("cd",e)},setTimezone:function(e){u("tz",e)},setLang:function(e){u("lang",e)},setIpAddress:function(e){u("ip",e)},setUseragent:function(e){u("ua",e)},addGlobalContexts:function(e){i.addGlobalContexts(e)},clearGlobalContexts:function(){i.clearGlobalContexts()},removeGlobalContexts:function(e){i.removeGlobalContexts(e)}};return s}(null==r||r,a,i),u=e(e({},c),{addPlugin:function(e){var n,t,r=e.plugin;a.push(r),null===(n=r.logger)||void 0===n||n.call(r,j),null===(t=r.activateCorePlugin)||void 0===t||t.call(r,u)}});return null==a||a.forEach((function(e){var n,t;null===(n=e.logger)||void 0===n||n.call(e,j),null===(t=e.activateCorePlugin)||void 0===t||t.call(e,u)})),u}function Y(e){var n=e.event,t=n.schema,r=n.data,o=C(),i={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:t,data:r}};return o.add("e","ue"),o.addJson("ue_px","ue_pr",i),o}function Q(e,n){void 0===n&&(n={});var t={};for(var r in e)(n[r]||null!==e[r]&&void 0!==e[r])&&(t[r]=e[r]);return t}var Z,K,$={exports:{}},ee={exports:{}};Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K={rotl:function(e,n){return e<<n|e>>>32-n},rotr:function(e,n){return e<<32-n|e>>>n},endian:function(e){if(e.constructor==Number)return 16711935&K.rotl(e,8)|4278255360&K.rotl(e,24);for(var n=0;n<e.length;n++)e[n]=K.endian(e[n]);return e},randomBytes:function(e){for(var n=[];e>0;e--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(e){for(var n=[],t=0,r=0;t<e.length;t++,r+=8)n[r>>>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<e.length;t++)n.push((e[t]>>>4).toString(16)),n.push((15&e[t]).toString(16));return n.join("")},hexToBytes:function(e){for(var n=[],t=0;t<e.length;t+=2)n.push(parseInt(e.substr(t,2),16));return n},bytesToBase64:function(e){for(var n=[],t=0;t<e.length;t+=3)for(var r=e[t]<<16|e[t+1]<<8|e[t+2],o=0;o<4;o++)8*t+6*o<=8*e.length?n.push(Z.charAt(r>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],t=0,r=0;t<e.length;r=++t%4)0!=r&&n.push((Z.indexOf(e.charAt(t-1))&Math.pow(2,-2*r+8)-1)<<2*r|Z.indexOf(e.charAt(t))>>>6-2*r);return n}},ee.exports=K;var ne={utf8:{stringToBytes:function(e){return ne.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ne.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],t=0;t<e.length;t++)n.push(255&e.charCodeAt(t));return n},bytesToString:function(e){for(var n=[],t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return n.join("")}}},te=ne;function re(e,n,t){void 0===t&&(t=63072e3);try{var r=window.localStorage,o=Date.now()+1e3*t;return r.setItem("".concat(e,".expires"),o.toString()),r.setItem(e,n),!0}catch(e){return!1}}function oe(e){try{var n=window.localStorage;return n.removeItem(e),n.removeItem(e+".expires"),!0}catch(e){return!1}}function ie(e){try{return window.sessionStorage.getItem(e)}catch(e){return}}!function(){var e=ee.exports,n=te.utf8,t=te.bin,r=function(r,o){var i=e.wordsToBytes(function(t){t.constructor==String?t=n.stringToBytes(t):"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());var r=e.bytesToWords(t),o=8*t.length,i=[],a=1732584193,c=-271733879,u=-1732584194,s=271733878,l=-1009589776;r[o>>5]|=128<<24-o%32,r[15+(o+64>>>9<<4)]=o;for(var f=0;f<r.length;f+=16){for(var d=a,v=c,g=u,p=s,m=l,h=0;h<80;h++){if(h<16)i[h]=r[f+h];else{var y=i[h-3]^i[h-8]^i[h-14]^i[h-16];i[h]=y<<1|y>>>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]}(r));return o&&o.asBytes?i:o&&o.asString?t.bytesToString(i):e.bytesToHex(i)};r._blocksize=16,r._digestsize=20,$.exports=r}();var ae={sessionId:!0,sourceId:!0,sourcePlatform:!1,userId:!1,reason:!1};function ce(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"")}function ue(e){return!(!e||"string"!=typeof e.valueOf())}function se(e){return Number.isInteger&&Number.isInteger(e)||"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function le(e){return!(!e||"function"!=typeof e)}function fe(e){if(!ue(e)){e=e.text||"";var n=document.getElementsByTagName("title");n&&null!=n[0]&&(e=n[0].text)}return e}function de(e){var n=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)").exec(e);return n?n[1]:e}function ve(e){var n=e.length;return"."===e.charAt(--n)&&(e=e.slice(0,n)),"*."===e.slice(0,2)&&(e=e.slice(1)),e}function ge(e){var n=window,t=me("referrer",n.location.href)||me("referer",n.location.href);if(t)return t;if(e)return e;try{if(n.top)return n.top.document.referrer;if(n.parent)return n.parent.document.referrer}catch(e){}return document.referrer}function pe(e,n,t,r){return e.addEventListener?(e.addEventListener(n,t,r),!0):e.attachEvent?e.attachEvent("on"+n,t):void(e["on"+n]=t)}function me(e,n){var t=new RegExp("^[^#]*[?&]"+e+"=([^&#]*)").exec(n);return t?decodeURIComponent(t[1].replace(/\+/g," ")):null}function he(e,n,t,r){we(e,"",-1,"/",n,t,r)}function ye(e){for(var n=document.cookie.split("; "),t=[],r=0;r<n.length;r++)n[r].substring(0,e.length)===e&&t.push(n[r]);return t}function we(e,n,t,r,o,i,a){return arguments.length>1?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 be(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<t.length;r++)n[t[r]]=!0}return n}(e);return function(e,n){if(e.hasOwnProperty("filter")&&e.filter)return e.filter;return n}(e,(function(e){return function(e,n){for(var t=ke(e),r=0,o=t;r<o.length;r++){if(n[o[r]])return!0}return!1}(e,t)===n}))}function ke(e){return e.className.match(/\S+/g)||[]}function Se(){var e="modernizr";if(!function(){try{return!!window.localStorage}catch(e){return!0}}())return!1;try{var n=window.localStorage;return n.setItem(e,e),n.removeItem(e),!0}catch(e){return!1}}var Te="iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",xe="iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/2-0-0",Ee="iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",Ce="iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4";function Ae(e,n,t,r,o,i,a,c,u,s,l,f,d,v,g,p,m,h,y,w){void 0===h&&(h=!0);var b,k,S=!1,T=[],x=!1,E=!0===(r="string"==typeof r?r.toLowerCase():r)||"beacon"===r||"true"===r,C=Boolean(E&&window.navigator&&"function"==typeof window.navigator.sendBeacon&&!(function(e,n){var t=n.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/");return!(!t||!t.length)&&parseInt(t[0])<=e}(13,k=window.navigator.userAgent)||function(e,n,t){var r=t.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/");return!(!r||!r.length)&&(parseInt(r[0])<=e||parseInt(r[0])===e&&parseInt(r[1])<=n)}(10,15,k)&&function(e){return e.match("Version/.* Safari/")&&!function(e){return e.match("Chrom(e|ium)")}(e)}(k)))&&E,A="get"===r,I=Boolean(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),O=!A&&I&&("post"===r||E),P=O?o:"/i",L="snowplowOutQueue_".concat(e,"_").concat(O?"post2":"get");if(E&&(d={}),i=t&&Se()&&O&&i||1,t)try{var D=window.localStorage.getItem(L);T=D?JSON.parse(D):[]}catch(e){}function U(e){var n=Object.keys(e).map((function(n){return[n,e[n]]})).reduce((function(e,n){var t=n[0],r=n[1];return e[t]=r.toString(),e}),{});return{evt:n,bytes:N(JSON.stringify(n))}}function N(e){for(var n=0,t=0;t<e.length;t++){var r=e.charCodeAt(t);r<=127?n+=1:r<=2047?n+=2:r>=55296&&r<=57343?(n+=4,t++):n+=r<65535?3:4}return n}Array.isArray(T)||(T=[]),n.outQueues.push(T),I&&i>1&&n.bufferFlushers.push((function(e){S||M(e)}));var R=function(e){return"object"==typeof e[0]&&"evt"in e[0]};function B(e,n){var t=H(n,!0,!1),r=J([e.evt]);t.onreadystatechange=function(){4===t.readyState&&(z(t.status)?null==y||y(r):null==w||w({status:t.status,message:t.statusText,events:r,willRetry:!1}))},t.send(F(r))}function V(e){for(var n=0;n<e;n++)T.shift();t&&re(L,JSON.stringify(T.slice(0,s)))}function _(e,n,t){e.onreadystatechange=function(){if(4===e.readyState)if(clearTimeout(r),z(e.status))V(n),null==y||y(t),M();else{var o=function(e){if(z(e))return!1;if(!h)return!1;if(g.includes(e))return!0;return!p.includes(e)}(e.status);o||(j.error("Status ".concat(e.status,", will not retry.")),V(n)),null==w||w({status:e.status,message:e.statusText,events:t,willRetry:o}),S=!1}};var r=setTimeout((function(){e.abort(),h||V(n),null==w||w({status:0,message:"timeout",events:t,willRetry:h}),S=!1}),l)}function M(e){for(void 0===e&&(e=!1);T.length&&"string"!=typeof T[0]&&"object"!=typeof T[0];)T.shift();if(T.length){if(!ue(b))throw"No collector configured";if(S=!0,m&&!x){var n=H(m,!1,e);return x=!0,n.timeout=l,n.onreadystatechange=function(){4===n.readyState&&M()},void n.send()}if(I){var r=void 0,o=void 0,i=void 0;if(R(T)?(o=H(r=b,!0,e),i=function(e){for(var n=0,t=0;n<e.length&&!((t+=e[n].bytes)>=a);)n+=1;return n}(T)):(o=H(r=q(T[0]),!1,e),i=1),R(T)){var c=T.slice(0,i);if(c.length>0){var u=!1,d=c.map((function(e){return e.evt}));if(C){var v=new Blob([F(J(d))],{type:"application/json"});try{u=window.navigator.sendBeacon(r,v)}catch(e){u=!1}}if(!0===u)V(i),null==y||y(c),M();else{var g=J(d);_(o,i,g),o.send(F(g))}}}else _(o,i,[r]),o.send()}else if(f||R(T))S=!1;else{var p=new Image(1,1),h=!0;p.onload=function(){h&&(h=!1,T.shift(),t&&re(L,JSON.stringify(T.slice(0,s))),M())},p.onerror=function(){h&&(h=!1,S=!1)},p.src=q(T[0]),setTimeout((function(){h&&S&&(h=!1,M())}),l)}}else S=!1}function z(e){return e>=200&&e<300}function H(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=v,f&&r.setRequestHeader("SP-Anonymous","*"),d)Object.prototype.hasOwnProperty.call(d,o)&&r.setRequestHeader(o,d[o]);return r}function F(e){return JSON.stringify({schema:Ce,data:e})}function J(e){for(var n=(new Date).getTime().toString(),t=0;t<e.length;t++)e[t].stm=n;return e}function q(e){return u?b+e.replace("?","?stm="+(new Date).getTime()+"&"):b+e}return{enqueueRequest:function(e,n){b=n+P;var r=function(e,n){return j.warn("Event ("+e+"B) too big, max is "+n)};if(O){if((f=U(e)).bytes>=a)return r(f.bytes,a),void B(f,b);T.push(f)}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=N(q(u));if(l>=c){var f;if(r(l,c),I)B(f=U(e),n+o);return}}T.push(u)}var d=!1;t&&(d=re(L,JSON.stringify(T.slice(0,s)))),S||d&&!(T.length>=i)||M()},executeQueue:function(){S||M()},setUseLocalStorage:function(e){t=e},setAnonymousTracking:function(e){f=e},setCollectorUrl:function(e){b=e+P},setBufferSize:function(e){i=e}}}function Ie(e,n,t){var r,o,i,a;return"translate.googleusercontent.com"===e?(""===t&&(t=n),e=de(n=null!==(o=n,i="u",r=(a=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+))([?][^#]+)").exec(o))&&(null==a?void 0:a.length)>1?me(i,a[1]):null)&&void 0!==r?r:"")):"cc.bingj.com"!==e&&"webcache.googleusercontent.com"!==e||(e=de(n=document.links[0].href)),[e,n,t]}var Oe=0,Pe=1,Le=2,je=3,De=4,Ue=5,Ne=6,Re=7,Be=8,Ve=9,_e=10;function Me(e,n){void 0===n&&(n={memorizedVisitCount:1});var t=n.memorizedVisitCount;qe(e)?(e[Re]=e[Ne],e[Ue]=e[De],e[je]++):e[je]=t;var r=S.v4();return e[Ne]=r,e[_e]=0,e[Be]="",e[Ve]=void 0,r}function ze(e){e[De]=Math.round((new Date).getTime()/1e3)}function He(e,n,t){var r=e[Ve];return{userId:t?"00000000-0000-0000-0000-000000000000":e[Pe],sessionId:e[Ne],eventIndex:e[_e],sessionIndex:e[je],previousSessionId:t?null:e[Re]||null,storageMechanism:"localStorage"==n?"LOCAL_STORAGE":"COOKIE_1",firstEventId:e[Be]||null,firstEventTimestamp:r?new Date(r).toISOString():null}}function Fe(e){return e[Ne]}function Je(e){return e[je]}function qe(e){return"0"===e[Oe]}var Ge,Xe=!1;var We="x";function Ye(){return"ResizeObserver"in window?(Ge||(Ge=Qe()),function(){if(!Xe&&document&&document.body&&document.documentElement){Xe=!0;var e=new ResizeObserver((function(e){for(var n=0,t=e;n<t.length;n++){var r=t[n];r.target!==document.body&&r.target!==document.documentElement||(Ge=Qe())}}));e.observe(document.body),e.observe(document.documentElement)}}(),Ge):Qe()}function Qe(){return{viewport:Ke(Ze()),documentSize:Ke((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+We+o)),resolution:Ke(screen.width+We+screen.height),colorDepth:screen.colorDepth,devicePixelRatio:window.devicePixelRatio,cookiesEnabled:window.navigator.cookieEnabled,online:window.navigator.onLine,browserLanguage:window.navigator.language||window.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 Ze(){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+We+n:null}function Ke(e){return e&&e.split(We).map((function(e){return Math.floor(Number(e))})).join(We)}function $e(t,r,o,i,a,c){void 0===c&&(c={});var u=[],s=function(t,r,o,i,a,c){var s,l,f,d,v,g,p,m,h,y,w,b,k,T,x,E,A,I,O,P,L,D,U,N,R,B,V,_,M;c.eventMethod=null!==(s=c.eventMethod)&&void 0!==s?s:"post";var z,H,F=function(e){var n;return null!==(n=e.stateStorageStrategy)&&void 0!==n?n:"cookieAndLocalStorage"},J=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)},q=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)},G=function(e){return!!e.anonymousTracking},X=null!==(f=null===(l=null==c?void 0:c.contexts)||void 0===l?void 0:l.browser)&&void 0!==f&&f,Y=null===(v=null===(d=null==c?void 0:c.contexts)||void 0===d?void 0:d.webPage)||void 0===v||v;u.push((z=function(e){return Tn?null:e},H=function(e){return kn?e:z(e)},{beforeTrack:function(e){var n=Yn("ses"),t=ut(),r=0===function(e){return e[_e]}(t);if(Qe=!!te&&!!we(te),yn||Qe)it();else{qe(t)?(Xe=n||"none"==xn?Fe(t):Me(t),Cn=Je(t)):(new Date).getTime()-En>1e3*bn&&(Cn++,Xe=Me(t,{memorizedVisitCount:Cn})),ze(t),function(e,n){if(0===e[_e]){var t=n.build();e[Be]=t.eid;var r=t.dtm||t.ttm;e[Ve]=r?parseInt(r):void 0}}(t,e),function(e){e[_e]+=1}(t);var o=Ye(),i=o.viewport,a=o.documentSize;e.add("vp",i),e.add("ds",a),e.add("vid",H(Cn)),e.add("sid",H(Xe)),e.add("duid",z(function(e){return e[Pe]}(t))),e.add("uid",z(We)),Fn(),e.add("refr",Gn(Q||rn)),e.add("url",Gn(Z||tn));var c=He(t,xn,Tn);if(!jn||Tn&&!kn||function(e,n){var t={schema:Ee,data:n};e.addContextEntity(t)}(e,c),"none"!=xn){rt(t);var u=tt();n&&!r||!u||!Dn||Un||(Dn(c),Un=!1)}En=(new Date).getTime()}}})),Y&&u.push({contexts:function(){return[{schema:Te,data:{id:ft()}}]}}),X&&u.push({contexts:function(){return[{schema:xe,data:e(e({},Ye()),{tabId:dt()})}]}}),u.push.apply(u,null!==(g=c.plugins)&&void 0!==g?g:[]);var Q,Z,K,ee,ne,te,ue,le,be,ke,Se,Ce,Ge,Xe,We,Qe,Ze,Ke=W({base64:c.encodeBase64,corePlugins:u,callback:function(e){yn||Qe||An.enqueueRequest(e.build(),an)}}),$e=document.characterSet||document.charset,en=Ie(window.location.hostname,window.location.href,ge()),nn=ve(en[0]),tn=en[1],rn=en[2],on=null!==(p=c.platform)&&void 0!==p?p:"web",an=st(i),cn=null!==(m=c.postPath)&&void 0!==m?m:"/com.snowplowanalytics.snowplow/tp2",un=null!==(h=c.appId)&&void 0!==h?h:"",sn=document.title,ln=!1,fn=null===(y=c.resetActivityTrackingOnPageView)||void 0===y||y,dn=null!==(w=c.cookieName)&&void 0!==w?w:"_sp_",vn=null!==(b=c.cookieDomain)&&void 0!==b?b:void 0,gn="/",pn=null!==(k=c.cookieSameSite)&&void 0!==k?k:"None",mn=null===(T=c.cookieSecure)||void 0===T||T,hn=window.navigator.doNotTrack||window.navigator.msDoNotTrack||window.doNotTrack,yn=void 0!==c.respectDoNotTrack&&(c.respectDoNotTrack&&("yes"===hn||"1"===hn)),wn=null!==(x=c.cookieLifetime)&&void 0!==x?x:63072e3,bn=null!==(E=c.sessionCookieTimeout)&&void 0!==E?E:1800,kn=J(c),Sn=q(c),Tn=G(c),xn=F(c),En=(new Date).getTime(),Cn=1,An=Ae(t,a,"localStorage"==xn||"cookieAndLocalStorage"==xn,c.eventMethod,cn,null!==(A=c.bufferSize)&&void 0!==A?A:1,null!==(I=c.maxPostBytes)&&void 0!==I?I:4e4,null!==(O=c.maxGetBytes)&&void 0!==O?O:0,null===(P=c.useStm)||void 0===P||P,null!==(L=c.maxLocalStorageQueueSize)&&void 0!==L?L:1e3,null!==(D=c.connectionTimeout)&&void 0!==D?D:5e3,Sn,null!==(U=c.customHeaders)&&void 0!==U?U:{},null===(N=c.withCredentials)||void 0===N||N,null!==(R=c.retryStatusCodes)&&void 0!==R?R:[],(null!==(B=c.dontRetryStatusCodes)&&void 0!==B?B:[]).concat([400,401,403,410,422]),c.idService,c.retryFailedRequests,c.onRequestSuccess,c.onRequestFailure),In=!1,On=null!==(V=c.preservePageViewIdForUrl)&&void 0!==V&&V,Pn=void 0,Ln={enabled:!1,installed:!1,configurations:{}},jn=null!==(M=null===(_=c.contexts)||void 0===_?void 0:_.session)&&void 0!==M&&M,Dn=c.onSessionUpdateCallback,Un=!1,Nn="boolean"==typeof(Ze=c.useExtendedCrossDomainLinker||!1)?{useExtendedCrossDomainLinker:Ze}:{useExtendedCrossDomainLinker:!0,collectCrossDomainAttributes:Ze},Rn=Nn.useExtendedCrossDomainLinker,Bn=Nn.collectCrossDomainAttributes;c.hasOwnProperty("discoverRootDomain")&&c.discoverRootDomain&&(vn=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(we(o,i,0,"/",u,e,n),we(o)===i){he(o,u,e,n);for(var s=ye(r),l=0;l<s.length;l++)he(s[l],u,e,n);return u}}return t}(pn,mn));var Vn=Ye(),_n=Vn.browserLanguage,Mn=Vn.resolution,zn=Vn.colorDepth,Hn=Vn.cookiesEnabled;function Fn(){(en=Ie(window.location.hostname,window.location.href,ge()))[1]!==tn&&(rn=ge(tn)),nn=ve(en[0]),tn=en[1]}function Jn(n){return function(t){var r=t.currentTarget,o=function(n,t,r){var o,i=(new Date).getTime(),a=e(e({},ae),t),c=r.domainUserId,u=r.userId,s=r.sessionId,l=r.sourceId,f=r.sourcePlatform,d=r.event,v=d.currentTarget,g="function"==typeof a.reason?a.reason(d):null===(o=null==v?void 0:v.textContent)||void 0===o?void 0:o.trim();return n?[c,i,a.sessionId&&s,a.userId&&ce(u||""),a.sourceId&&ce(l||""),a.sourcePlatform&&f,a.reason&&ce(g||"")].map((function(e){return e||""})).join(".").replace(/([.]*$)/,""):r.domainUserId+"."+i}(n,Bn,{domainUserId:Ge,userId:We||void 0,sessionId:Xe,sourceId:un,sourcePlatform:on,event:t});(null==r?void 0:r.href)&&(r.href=function(e,n,t){var r=n+"="+t,o=e.split("#"),i=o[0].split("?"),a=i.shift(),c=i.join("?");if(c){for(var u=!0,s=c.split("&"),l=0;l<s.length;l++)if(s[l].substr(0,n.length+1)===n+"="){u=!1,s[l]=r,c=s.join("&");break}u&&(c=r+"&"+c)}else c=r;return o[0]=a+"?"+c,o.join("#")}(r.href,"_sp",o))}}function qn(e){for(var n=Jn(Rn),t=0;t<document.links.length;t++){var r=document.links[t];!r.spDecorationEnabled&&e(r)&&(r.addEventListener("click",n,!0),r.addEventListener("mousedown",n,!0),r.spDecorationEnabled=!0)}}function Gn(e){var n;return ee&&(n=new RegExp("#.*"),e=e.replace(n,"")),ne&&(n=new RegExp("[{}]","g"),e=e.replace(n,"")),e}function Xn(e){var n=new RegExp("^([a-z]+):").exec(e);return n?n[1]:null}function Wn(e){return dn+e+"."+Ce}function Yn(e){var n=Wn(e);return"localStorage"==xn?
/*!
* Core functionality for Snowplow Browser trackers v3.12.0 (http://bit.ly/sp-js)
* Core functionality for Snowplow Browser trackers v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/
function(n){try{var e=window.localStorage,t=e.getItem(n+".expires");return null===t||+t>Date.now()?e.getItem(n):(e.removeItem(n),void e.removeItem(n+".expires"))}catch(n){return}}(e):"cookie"==ye||"cookieAndLocalStorage"==ye?yn(e):void 0}function Ve(){je(),bn=$.exports((ce||Zn)+(ue||"/")).slice(0,4)}function Me(){var n=new Date;en=n.getTime()}function He(){!function(){var n=ze(),e=n[0];e<tn?tn=e:e>cn&&(cn=e);var t=n[1];t<sn?sn=t:t>wn&&(wn=t)}(),Me()}function ze(){var n=document.documentElement;return n?[n.scrollLeft||window.pageXOffset,n.scrollTop||window.pageYOffset]:[0,0]}function Je(){var n=ze(),e=n[0];tn=e,cn=e;var t=n[1];sn=t,wn=t}function Fe(n){return Math.round(n)}function Ge(){Xe(_e("ses"),"*",ve)}function qe(n){var e=_e("id"),t=function(n){return n.shift(),n.join(".")}(n);Xe(e,t,ge)}function Xe(n,e,t){he&&!pe||("localStorage"==ye?rn(n,e,t):"cookie"!=ye&&"cookieAndLocalStorage"!=ye||yn(n,e,t,ue,ce,se,le))}function We(n){var e=_e("id"),t=_e("ses");on(e),on(t),mn(e,ce,se,le),mn(t,ce,se,le),(null==n?void 0:n.preserveSession)||(Cn=S.v4(),be=1),(null==n?void 0:n.preserveUser)||(kn=he?"":S.v4(),Gn=null)}function Ye(n){n&&n.stateStorageStrategy&&(a.stateStorageStrategy=n.stateStorageStrategy,ye=H(a)),he=F(a),pe=z(a),me=J(a),ke.setUseLocalStorage("localStorage"==ye||"cookieAndLocalStorage"==ye),ke.setAnonymousTracking(me)}function Qe(){if(!he||pe){var n="none"!=ye&&!!Re("ses"),e=Ze();kn=function(n,e){var t;return n[Pn]?t=n[Pn]:e?(t="",n[Pn]=t):(t=S.v4(),n[Pn]=t),t}(e,he),Cn=n?zn(e):Vn(e,{configStateStorageStrategy:ye,configAnonymousTracking:he,onSessionUpdateCallback:Ee}),be=Jn(e),"none"!=ye&&(Ge(),Mn(e),qe(e))}}function Ze(){return"none"==ye?["1","",0,0,0,void 0,"","","",void 0,0]:function(n,e,t,r){var o,i=new Date,a=Math.round(i.getTime()/1e3);n?(o=n.split(".")).unshift("0"):o=["1",e,a,r,a,"",t],o[Nn]&&"undefined"!==o[Nn]||(o[Nn]=S.v4()),o[Un]&&"undefined"!==o[Un]||(o[Un]=""),o[Bn]&&"undefined"!==o[Bn]||(o[Bn]=""),o[_n]&&"undefined"!==o[_n]||(o[_n]=""),o[Rn]&&"undefined"!==o[Rn]||(o[Rn]=0);var c=function(n,e){var t=parseInt(n);return isNaN(t)?e:t},u=function(n){return n?c(n,void 0):void 0};return[o[On],o[Pn],c(o[In],a),c(o[Ln],r),c(o[jn],a),u(o[Dn]),o[Nn],o[Un],o[Bn],u(o[_n]),c(o[Rn],0)]}(Re("id")||void 0,kn,Cn,be)}function Ke(n){return 0===n.indexOf("http")?n:("https:"===document.location.protocol?"https":"http")+"://"+n}function $e(){Se&&null!=i.pageViewId||(i.pageViewId=S.v4())}function nt(){return null==i.pageViewId&&(i.pageViewId=S.v4()),i.pageViewId}function et(){if("none"===ye||he||!q)return null;var n="_sp_tab_id",e=an(n);return e||(!function(n,e){try{return window.sessionStorage.setItem(n,e),!0}catch(n){return!1}}(n,S.v4()),e=an(n)),e||null}function tt(n,e){return(n||[]).concat(e?e():[])}function rt(n){var e=n.title,t=n.context,r=n.timestamp,o=n.contextCallback;je(),Te&&$e(),Te=!0,oe=document.title;var i=ln((Q=e)||oe);Wn.track(function(n){var e=n.pageUrl,t=n.pageTitle,r=n.referrer,o=E();return o.add("e","pv"),o.add("url",e),o.add("page",t),o.add("refr",r),o}({pageUrl:Ue(Y||Kn),pageTitle:i,referrer:Ue(X||$n)}),tt(t,o),r);var a=new Date,c=!1;if(xe.enabled&&!xe.installed){xe.installed=!0,c=!0;var u={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var n=!1,e=Object.defineProperty({},"passive",{get:function(){n=!0},set:function(){}}),t=function(){};window.addEventListener("testPassiveEventSupport",t,e),window.removeEventListener("testPassiveEventSupport",t,e),u.hasSupport=n}}};u.update();var s="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(u,"hasSupport")?vn(document,s,Me,{passive:!0}):vn(document,s,Me),Je();var l=function(n,e){return void 0===e&&(e=Me),function(n){return vn(document,n,e)}};["click","mouseup","mousedown","mousemove","keypress","keydown","keyup","touchend","touchstart"].forEach(l(document)),["resize","focus","blur"].forEach(l(window)),l(window,He)("scroll")}if(xe.enabled&&(ie||c)){en=a.getTime();var f=void 0;for(f in xe.configurations){var d=xe.configurations[f];d&&(window.clearInterval(d.activityInterval),ot(d,t,o))}}}function ot(n,e,t){var r=function(n,e){je(),n({context:e,pageViewId:nt(),minXOffset:tn,minYOffset:sn,maxXOffset:cn,maxYOffset:wn}),Je()},o=function(){var o=new Date;en+n.configHeartBeatTimer>o.getTime()&&r(n.callback,tt(e,t))};0!=n.configMinimumVisitLength?n.activityInterval=window.setTimeout((function(){var i=new Date;en+n.configMinimumVisitLength>i.getTime()&&r(n.callback,tt(e,t)),n.activityInterval=window.setInterval(o,n.configHeartBeatTimer)}),n.configMinimumVisitLength):n.activityInterval=window.setInterval(o,n.configHeartBeatTimer)}function it(n){var e=n.minimumVisitLength,t=n.heartbeatDelay,r=n.callback;if(un(e)&&un(t))return{configMinimumVisitLength:1e3*e,configHeartBeatTimer:1e3*t,callback:r};j.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function at(n){var e=n.context,t=n.minXOffset,r=n.minYOffset,o=n.maxXOffset,i=n.maxYOffset,a=document.title;a!==oe&&(oe=a,Q=void 0),Wn.track(function(n){var e=n.pageUrl,t=n.pageTitle,r=n.referrer,o=n.minXOffset,i=n.maxXOffset,a=n.minYOffset,c=n.maxYOffset,u=E();return u.add("e","pp"),u.add("url",e),u.add("page",t),u.add("refr",r),o&&!isNaN(Number(o))&&u.add("pp_mix",o.toString()),i&&!isNaN(Number(i))&&u.add("pp_max",i.toString()),a&&!isNaN(Number(a))&&u.add("pp_miy",a.toString()),c&&!isNaN(Number(c))&&u.add("pp_may",c.toString()),u}({pageUrl:Ue(Y||Kn),pageTitle:ln(Q||oe),referrer:Ue(X||$n),minXOffset:Fe(t),maxXOffset:Fe(o),minYOffset:Fe(r),maxYOffset:Fe(i)}),e)}Wn.setTrackerVersion(r),Wn.setTrackerNamespace(t),Wn.setAppId(re),Wn.setPlatform(ne),Wn.addPayloadPair("cookie",Le?"1":"0"),Wn.addPayloadPair("cs",Yn),Wn.addPayloadPair("lang",Oe),Wn.addPayloadPair("res",Pe),Wn.addPayloadPair("cd",Ie),Ve(),Qe(),a.crossDomainLinker&&Ne(a.crossDomainLinker);var ct={getDomainSessionIndex:function(){return be},getPageViewId:nt,getTabId:et,newSession:function(){var n=Ze();Fn(n)?(Cn="none"!=ye?Vn(n,{configStateStorageStrategy:ye,configAnonymousTracking:he,onSessionUpdateCallback:Ee}):zn(n),be=Jn(n),Ge()):(be++,Cn=Vn(n,{configStateStorageStrategy:ye,configAnonymousTracking:he,memorizedVisitCount:be,onSessionUpdateCallback:Ee})),Mn(n),"none"!=ye&&(qe(n),Ge()),we=(new Date).getTime()},getCookieName:function(n){return _e(n)},getUserId:function(){return Gn},getDomainUserId:function(){return Ze()[1]},getDomainUserInfo:function(){return Ze()},setReferrerUrl:function(n){X=n},setCustomUrl:function(n){je(),Y=function(n,e){var t;return Be(e)?e:"/"===e.slice(0,1)?Be(n)+"://"+fn(n)+e:((t=(n=Ue(n)).indexOf("?"))>=0&&(n=n.slice(0,t)),(t=n.lastIndexOf("/"))!==n.length-1&&(n=n.slice(0,t+1)),n+e)}(Kn,n)},setDocumentTitle:function(n){oe=document.title,Q=n},discardHashTag:function(n){Z=n},discardBrace:function(n){K=n},setCookiePath:function(n){ue=n,Ve()},setVisitorCookieTimeout:function(n){ge=n},crossDomainLinker:function(n){Ne(n)},enableActivityTracking:function(e){xe.configurations.pagePing||(xe.enabled=!0,xe.configurations.pagePing=it(n(n({},e),{callback:at})))},enableActivityTrackingCallback:function(n){xe.configurations.callback||(xe.enabled=!0,xe.configurations.callback=it(n))},updatePageActivity:function(){Me()},setOptOutCookie:function(n){nn=n},setUserId:function(n){Gn=n},setUserIdFromLocation:function(n){je(),Gn=pn(n,Kn)},setUserIdFromReferrer:function(n){je(),Gn=pn(n,$n)},setUserIdFromCookie:function(n){Gn=yn(n)},setCollectorUrl:function(n){ee=Ke(n),ke.setCollectorUrl(ee)},setBufferSize:function(n){ke.setBufferSize(n)},flushBuffer:function(n){void 0===n&&(n={}),ke.executeQueue(),n.newBufferSize&&ke.setBufferSize(n.newBufferSize)},trackPageView:function(n){void 0===n&&(n={}),rt(n)},preservePageViewId:function(){Se=!0},disableAnonymousTracking:function(n){a.anonymousTracking=!1,Ye(n),Qe(),ke.executeQueue()},enableAnonymousTracking:function(n){var e;a.anonymousTracking=null===(e=n&&(null==n?void 0:n.options))||void 0===e||e,Ye(n),pe||$e()},clearUserData:We};return n(n({},ct),{id:e,namespace:t,core:Wn,sharedState:i})}(e,t,r,o,i,a),s=n(n({},u),{addPlugin:function(n){var e,t;s.core.addPlugin(n),null===(t=(e=n.plugin).activateBrowserPlugin)||void 0===t||t.call(e,s)}});return c.forEach((function(n){var e;null===(e=n.activateBrowserPlugin)||void 0===e||e.call(n,s)})),s}var Qn={};function Zn(n,e){try{(t=null!=n?n:Object.keys(Qn),Kn(t,Qn)).forEach(e)}catch(n){j.error("Function failed",n)}var t}function Kn(n,e){for(var t=[],r=0,o=n;r<o.length;r++){var i=o[r];e.hasOwnProperty(i)?t.push(e[i]):j.warn(i+" not configured")}return t}var $n=function(){this.outQueues=[],this.bufferFlushers=[],this.hasLoaded=!1,this.registeredOnLoadHandlers=[]};function ne(n,e){Zn(e,(function(e){e.enableActivityTracking(n)}))}var ee="undefined"!=typeof window?function(){var n=new $n,e=document,t=window;function r(){var e;if(!n.hasLoaded)for(n.hasLoaded=!0,e=0;e<n.registeredOnLoadHandlers.length;e++)n.registeredOnLoadHandlers[e]();return!0}return e.visibilityState&&vn(e,"visibilitychange",(function(){"hidden"==e.visibilityState&&n.bufferFlushers.forEach((function(n){n(!1)}))}),!1),vn(t,"beforeunload",(function(){n.bufferFlushers.forEach((function(n){n(!1)}))}),!1),"loading"===document.readyState?(e.addEventListener?e.addEventListener("DOMContentLoaded",(function n(){e.removeEventListener("DOMContentLoaded",n,!1),r()})):e.attachEvent&&e.attachEvent("onreadystatechange",(function n(){"complete"===e.readyState&&(e.detachEvent("onreadystatechange",n),r())})),vn(t,"load",r,!1)):r(),n}
function(e){try{var n=window.localStorage,t=n.getItem(e+".expires");return null===t||+t>Date.now()?n.getItem(e):(n.removeItem(e),void n.removeItem(e+".expires"))}catch(e){return}}(n):"cookie"==xn||"cookieAndLocalStorage"==xn?we(n):void 0}function Qn(){Fn(),Ce=$.exports((vn||nn)+(gn||"/")).slice(0,4)}function Zn(){var e=new Date;ue=e.getTime()}function Kn(){!function(){var e=$n(),n=e[0];n<le?le=n:n>be&&(be=n);var t=e[1];t<ke?ke=t:t>Se&&(Se=t)}(),Zn()}function $n(){var e=document.documentElement;return e?[e.scrollLeft||window.pageXOffset,e.scrollTop||window.pageYOffset]:[0,0]}function et(){var e=$n(),n=e[0];le=n,be=n;var t=e[1];ke=t,Se=t}function nt(e){return Math.round(e)}function tt(){return ot(Wn("ses"),"*",bn)}function rt(e){var t=Wn("id"),r=function(e,t){var r=n([],e,!0);return t&&(r[Pe]="",r[Re]=""),r.shift(),r.join(".")}(e,Tn);return ot(t,r,wn)}function ot(e,n,t){return!(Tn&&!kn)&&("localStorage"==xn?re(e,n,t):("cookie"==xn||"cookieAndLocalStorage"==xn)&&(we(e,n,t,gn,vn,pn,mn),-1!==document.cookie.indexOf("".concat(e,"="))))}function it(e){var n=Wn("id"),t=Wn("ses");oe(n),oe(t),he(n,vn,pn,mn),he(t,vn,pn,mn),(null==e?void 0:e.preserveSession)||(Xe=S.v4(),Cn=1),(null==e?void 0:e.preserveUser)||(Ge=Tn?"":S.v4(),We=null)}function at(e){e&&e.stateStorageStrategy&&(c.stateStorageStrategy=e.stateStorageStrategy,xn=F(c)),Tn=G(c),kn=J(c),Sn=q(c),An.setUseLocalStorage("localStorage"==xn||"cookieAndLocalStorage"==xn),An.setAnonymousTracking(Sn)}function ct(){if(!Tn||kn){var e="none"!=xn&&!!Yn("ses"),n=ut();Ge=function(e,n){var t;return e[Pe]?t=e[Pe]:n?(t="",e[Pe]=t):(t=S.v4(),e[Pe]=t),t}(n,Tn),Xe=e?Fe(n):Me(n),Cn=Je(n),"none"!=xn&&(tt(),ze(n),rt(n))}}function ut(){return"none"==xn?["1","",0,0,0,void 0,"","","",void 0,0]:function(e,n,t,r){var o,i=new Date,a=Math.round(i.getTime()/1e3);e?(o=e.split(".")).unshift("0"):o=["1",n,a,r,a,"",t],o[Ne]&&"undefined"!==o[Ne]||(o[Ne]=S.v4()),o[Re]&&"undefined"!==o[Re]||(o[Re]=""),o[Be]&&"undefined"!==o[Be]||(o[Be]=""),o[Ve]&&"undefined"!==o[Ve]||(o[Ve]=""),o[_e]&&"undefined"!==o[_e]||(o[_e]=0);var c=function(e,n){var t=parseInt(e);return isNaN(t)?n:t},u=function(e){return e?c(e,void 0):void 0};return[o[Oe],o[Pe],c(o[Le],a),c(o[je],r),c(o[De],a),u(o[Ue]),o[Ne],o[Re],o[Be],u(o[Ve]),c(o[_e],0)]}(Yn("id")||void 0,Ge,Xe,Cn)}function st(e){return 0===e.indexOf("http")?e:("https:"===document.location.protocol?"https":"http")+"://"+e}function lt(){In&&null!=a.pageViewId||(a.pageViewId=S.v4(),a.pageViewUrl=Z||tn)}function ft(){return function(){if(null==a.pageViewId)return!0;if(In||!On)return!1;if(void 0===a.pageViewUrl)return!0;var e=Z||tn;if(!0===On||"full"==On||!("URL"in window))return a.pageViewUrl!=e;var n=new URL(e),t=new URL(a.pageViewUrl);if("pathname"==On)return n.pathname!=t.pathname;if("pathnameAndSearch"==On)return n.pathname!=t.pathname||n.search!=t.search;return!1}()&&(a.pageViewId=S.v4(),a.pageViewUrl=Z||tn),a.pageViewId}function dt(){if("none"===xn||Tn||!Y)return null;var e="_sp_tab_id",n=ie(e);return n||(!function(e,n){try{return window.sessionStorage.setItem(e,n),!0}catch(e){return!1}}(e,S.v4()),n=ie(e)),n||null}function vt(e,n){return(e||[]).concat(n?n():[])}function gt(e){var n=e.title,t=e.context,r=e.timestamp,o=e.contextCallback;Fn(),Pn&&Pn==ft()&&lt(),Pn=ft(),sn=document.title,n?(K=n,ln=!0):ln&&(K=null);var i=fe(K||sn);Ke.track(function(e){var n=e.pageUrl,t=e.pageTitle,r=e.referrer,o=C();return o.add("e","pv"),o.add("url",n),o.add("page",t),o.add("refr",r),o}({pageUrl:Gn(Z||tn),pageTitle:i,referrer:Gn(Q||rn)}),vt(t,o),r);var a=new Date,c=!1;if(Ln.enabled&&!Ln.installed){Ln.installed=!0,c=!0;var u={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),u.hasSupport=e}}};u.update();var s="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(u,"hasSupport")?pe(document,s,Zn,{passive:!0}):pe(document,s,Zn),et();var l=function(e,n){return void 0===n&&(n=Zn),function(e){return pe(document,e,n)}};["click","mouseup","mousedown","mousemove","keypress","keydown","keyup","touchend","touchstart"].forEach(l(document)),["resize","focus","blur"].forEach(l(window)),l(window,Kn)("scroll")}if(Ln.enabled&&(fn||c)){ue=a.getTime();var f=void 0;for(f in Ln.configurations){var d=Ln.configurations[f];d&&(window.clearInterval(d.activityInterval),pt(d,t,o))}}}function pt(e,n,t){var r=function(e,n){Fn(),e({context:n,pageViewId:ft(),minXOffset:le,minYOffset:ke,maxXOffset:be,maxYOffset:Se}),et()},o=function(){var o=new Date;ue+e.configHeartBeatTimer>o.getTime()&&r(e.callback,vt(n,t))};0===e.configMinimumVisitLength?e.activityInterval=window.setInterval(o,e.configHeartBeatTimer):e.activityInterval=window.setTimeout((function(){var i=new Date;ue+e.configMinimumVisitLength>i.getTime()&&r(e.callback,vt(n,t)),e.activityInterval=window.setInterval(o,e.configHeartBeatTimer)}),e.configMinimumVisitLength)}function mt(e){var n=e.minimumVisitLength,t=e.heartbeatDelay,r=e.callback;if(se(n)&&se(t))return{configMinimumVisitLength:1e3*n,configHeartBeatTimer:1e3*t,callback:r};j.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function ht(e){var n=e.context,t=e.minXOffset,r=e.minYOffset,o=e.maxXOffset,i=e.maxYOffset,a=document.title;a!==sn&&(sn=a,K=void 0),Ke.track(function(e){var n=e.pageUrl,t=e.pageTitle,r=e.referrer,o=e.minXOffset,i=e.maxXOffset,a=e.minYOffset,c=e.maxYOffset,u=C();return u.add("e","pp"),u.add("url",n),u.add("page",t),u.add("refr",r),o&&!isNaN(Number(o))&&u.add("pp_mix",o.toString()),i&&!isNaN(Number(i))&&u.add("pp_max",i.toString()),a&&!isNaN(Number(a))&&u.add("pp_miy",a.toString()),c&&!isNaN(Number(c))&&u.add("pp_may",c.toString()),u}({pageUrl:Gn(Z||tn),pageTitle:fe(K||sn),referrer:Gn(Q||rn),minXOffset:nt(t),maxXOffset:nt(o),minYOffset:nt(r),maxYOffset:nt(i)}),n)}function yt(e){var n=Ln.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),Ln.configurations[e]=void 0}Ke.setTrackerVersion(o),Ke.setTrackerNamespace(r),Ke.setAppId(un),Ke.setPlatform(on),Ke.addPayloadPair("cookie",Hn?"1":"0"),Ke.addPayloadPair("cs",$e),Ke.addPayloadPair("lang",_n),Ke.addPayloadPair("res",Mn),Ke.addPayloadPair("cd",zn),Qn(),ct(),c.crossDomainLinker&&qn(c.crossDomainLinker);var wt={getDomainSessionIndex:function(){return Cn},getPageViewId:ft,getTabId:dt,newSession:function(){var e=ut();if(qe(e)?(Xe="none"!=xn?Me(e):Fe(e),Cn=Je(e)):(Cn++,Xe=Me(e,{memorizedVisitCount:Cn})),ze(e),"none"!=xn){var n=He(e,xn,Tn);rt(e),tt()&&Dn&&(Un=!0,Dn(n))}En=(new Date).getTime()},getCookieName:function(e){return Wn(e)},getUserId:function(){return We},getDomainUserId:function(){return ut()[1]},getDomainUserInfo:function(){return ut()},setReferrerUrl:function(e){Q=e},setCustomUrl:function(e){Fn(),Z=function(e,n){var t;return Xn(n)?n:"/"===n.slice(0,1)?Xn(e)+"://"+de(e)+n:((t=(e=Gn(e)).indexOf("?"))>=0&&(e=e.slice(0,t)),(t=e.lastIndexOf("/"))!==e.length-1&&(e=e.slice(0,t+1)),e+n)}(tn,e)},setDocumentTitle:function(e){sn=document.title,K=e,ln=!1},discardHashTag:function(e){ee=e},discardBrace:function(e){ne=e},setCookiePath:function(e){gn=e,Qn()},setVisitorCookieTimeout:function(e){wn=e},crossDomainLinker:function(e){qn(e)},enableActivityTracking:function(n){Ln.configurations.pagePing||(Ln.enabled=!0,Ln.configurations.pagePing=mt(e(e({},n),{callback:ht})))},enableActivityTrackingCallback:function(e){Ln.configurations.callback||(Ln.enabled=!0,Ln.configurations.callback=mt(e))},disableActivityTracking:function(){yt("pagePing")},disableActivityTrackingCallback:function(){yt("callback")},updatePageActivity:function(){Zn()},setOptOutCookie:function(e){te=e},setUserId:function(e){We=e},setUserIdFromLocation:function(e){Fn(),We=me(e,tn)},setUserIdFromReferrer:function(e){Fn(),We=me(e,rn)},setUserIdFromCookie:function(e){We=we(e)},setCollectorUrl:function(e){an=st(e),An.setCollectorUrl(an)},setBufferSize:function(e){An.setBufferSize(e)},flushBuffer:function(e){void 0===e&&(e={}),An.executeQueue(),e.newBufferSize&&An.setBufferSize(e.newBufferSize)},trackPageView:function(e){void 0===e&&(e={}),gt(e)},preservePageViewId:function(){In=!0},preservePageViewIdForUrl:function(e){On=e},disableAnonymousTracking:function(e){c.anonymousTracking=!1,at(e),ct(),An.executeQueue()},enableAnonymousTracking:function(e){var n;c.anonymousTracking=null===(n=e&&(null==e?void 0:e.options))||void 0===n||n,at(e),kn||lt()},clearUserData:it};return e(e({},wt),{id:t,namespace:r,core:Ke,sharedState:a})}(t,r,o,i,a,c),l=e(e({},s),{addPlugin:function(e){var n,t;l.core.addPlugin(e),null===(t=(n=e.plugin).activateBrowserPlugin)||void 0===t||t.call(n,l)}});return u.forEach((function(e){var n;null===(n=e.activateBrowserPlugin)||void 0===n||n.call(e,l)})),l}var en={};function nn(e,n){try{(t=null!=e?e:Object.keys(en),tn(t,en)).forEach(n)}catch(e){j.error("Function failed",e)}var t}function tn(e,n){for(var t=[],r=0,o=e;r<o.length;r++){var i=o[r];n.hasOwnProperty(i)?t.push(n[i]):j.warn(i+" not configured")}return t}var rn=function(){this.outQueues=[],this.bufferFlushers=[],this.hasLoaded=!1,this.registeredOnLoadHandlers=[]};function on(e,n){nn(n,(function(n){n.enableActivityTracking(e)}))}var an="undefined"!=typeof window?function(){var e=new rn,n=document,t=window;function r(){var n;if(!e.hasLoaded)for(e.hasLoaded=!0,n=0;n<e.registeredOnLoadHandlers.length;n++)e.registeredOnLoadHandlers[n]();return!0}return n.visibilityState&&pe(n,"visibilitychange",(function(){"hidden"==n.visibilityState&&e.bufferFlushers.forEach((function(e){e(!1)}))}),!1),pe(t,"beforeunload",(function(){e.bufferFlushers.forEach((function(e){e(!1)}))}),!1),"loading"===document.readyState?(n.addEventListener?n.addEventListener("DOMContentLoaded",(function e(){n.removeEventListener("DOMContentLoaded",e,!1),r()})):n.attachEvent&&n.attachEvent("onreadystatechange",(function e(){"complete"===n.readyState&&(n.detachEvent("onreadystatechange",e),r())})),pe(t,"load",r,!1)):r(),e}
/*!
* Browser tracker for Snowplow v3.12.0 (http://bit.ly/sp-js)
* Browser tracker for Snowplow v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/():void 0;function te(n,e,t){return void 0===t&&(t={}),ee?function(n,e,t,r,o,i){return Qn.hasOwnProperty(n)?null:(Qn[n]=Yn(n,e,t,r,o,i),Qn[n])}(n,n,"js-".concat("3.12.0"),e,ee,t):void 0}
*/():void 0;function cn(e,n,t){return void 0===t&&(t={}),an?function(e,n,t,r,o,i){return en.hasOwnProperty(e)?null:(en[e]=$e(e,n,t,r,o,i),en[e])}(e,e,"js-".concat("3.24.2"),n,an,t):void 0}
/*!
* Link Click tracking for Snowplow v3.12.0 (http://bit.ly/sp-js)
* Link Click tracking for Snowplow v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/var re={},oe={};function ie(){return{activateBrowserPlugin:function(n){re[n.id]=n}}}function ae(n){void 0===n&&(n=Object.keys(re)),n.forEach((function(n){re[n]&&(re[n].sharedState.hasLoaded?le(n):re[n].sharedState.registeredOnLoadHandlers.push((function(){le(n)})))}))}function ce(n,e,t){for(var r,o,i,a,c,u;null!==(r=e.parentElement)&&null!=r&&"A"!==(o=e.tagName.toUpperCase())&&"AREA"!==o;)e=r;var s,l=e;if(null!=l.href){var f=l.hostname||fn(l.href),d=f.toLowerCase(),g=l.href.replace(f,d);new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i").test(g)||(i=l.id,a=bn(l),c=l.target,u=oe[n.id].linkTrackingContent?l.innerHTML:void 0,g=unescape(g),n.core.track(Y({event:{schema:"iglu:com.snowplowanalytics.snowplow/link_click/jsonschema/1-0-1",data:Q({targetUrl:(s={targetUrl:g,elementId:i,elementClasses:a,elementTarget:c,elementContent:u}).targetUrl,elementId:s.elementId,elementClasses:s.elementClasses,elementTarget:s.elementTarget,elementContent:s.elementContent})}}),function(n){for(var e,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return null!==(e=null==n?void 0:n.map((function(n){if("function"!=typeof n)return n;try{return n.apply(void 0,t)}catch(n){return}})).filter(Boolean))&&void 0!==e?e:[]}(t,e)))}}function ue(n,e){return function(t){var r,o;r=(t=t||window.event).which||t.button,o=t.target||t.srcElement,"click"===t.type?o&&ce(re[n],o,e):"mousedown"===t.type?1!==r&&2!==r||!o?oe[n].lastButton=oe[n].lastTarget=null:(oe[n].lastButton=r,oe[n].lastTarget=o):"mouseup"===t.type&&(r===oe[n].lastButton&&o===oe[n].lastTarget&&ce(re[n],o,e),oe[n].lastButton=oe[n].lastTarget=null)}}function se(n,e){var t=void 0===n?{}:n,r=t.options,o=t.pseudoClicks,i=t.trackContent,a=t.context;oe[e]={linkTrackingContent:i,linkTrackingContext:a,linkTrackingPseudoClicks:o,linkTrackingFilter:wn(r)}}function le(n){var e,t,r,o,i,a=document.links;for(r=0;r<a.length;r++)(null===(t=(e=oe[n]).linkTrackingFilter)||void 0===t?void 0:t.call(e,a[r]))&&!a[r][n]&&(o=n,i=a[r],oe[o].linkTrackingPseudoClicks?(vn(i,"mouseup",ue(o,oe[o].linkTrackingContext),!1),vn(i,"mousedown",ue(o,oe[o].linkTrackingContext),!1)):vn(i,"click",ue(o,oe[o].linkTrackingContext),!1),a[r][n]=!0)}
*/var un={},sn={};function ln(){return{activateBrowserPlugin:function(e){un[e.id]=e}}}function fn(e){void 0===e&&(e=Object.keys(un)),e.forEach((function(e){un[e]&&(un[e].sharedState.hasLoaded?pn(e):un[e].sharedState.registeredOnLoadHandlers.push((function(){pn(e)})))}))}function dn(e,n,t){for(var r,o,i,a,c,u;null!==(r=n.parentElement)&&null!=r&&"A"!==(o=n.tagName.toUpperCase())&&"AREA"!==o;)n=r;var s,l=n;if(null!=l.href){var f=l.hostname||de(l.href),d=f.toLowerCase(),v=l.href.replace(f,d);new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript):","i").test(v)||(i=l.id,a=ke(l),c=l.target,u=sn[e.id].linkTrackingContent?l.innerHTML:void 0,v=unescape(v),e.core.track(Y({event:{schema:"iglu:com.snowplowanalytics.snowplow/link_click/jsonschema/1-0-1",data:Q({targetUrl:(s={targetUrl:v,elementId:i,elementClasses:a,elementTarget:c,elementContent:u}).targetUrl,elementId:s.elementId,elementClasses:s.elementClasses,elementTarget:s.elementTarget,elementContent:s.elementContent})}}),function(e){for(var n,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return null!==(n=null==e?void 0:e.map((function(e){if("function"!=typeof e)return e;try{return e.apply(void 0,t)}catch(e){return}})).filter(Boolean))&&void 0!==n?n:[]}(t,n)))}}function vn(e,n){return function(t){var r,o;r=(t=t||window.event).which||t.button,o=t.target||t.srcElement,"click"===t.type?o&&dn(un[e],o,n):"mousedown"===t.type?1!==r&&2!==r||!o?sn[e].lastButton=sn[e].lastTarget=null:(sn[e].lastButton=r,sn[e].lastTarget=o):"mouseup"===t.type&&(r===sn[e].lastButton&&o===sn[e].lastTarget&&dn(un[e],o,n),sn[e].lastButton=sn[e].lastTarget=null)}}function gn(e,n){var t=void 0===e?{}:e,r=t.options,o=t.pseudoClicks,i=t.trackContent,a=t.context;sn[n]={linkTrackingContent:i,linkTrackingContext:a,linkTrackingPseudoClicks:o,linkTrackingFilter:be(r)}}function pn(e){var n,t,r,o,i,a=document.links;for(r=0;r<a.length;r++)(null===(t=(n=sn[e]).linkTrackingFilter)||void 0===t?void 0:t.call(n,a[r]))&&!a[r][e]&&(o=e,i=a[r],sn[o].linkTrackingPseudoClicks?(pe(i,"mouseup",vn(o,sn[o].linkTrackingContext),!1),pe(i,"mousedown",vn(o,sn[o].linkTrackingContext),!1)):pe(i,"click",vn(o,sn[o].linkTrackingContext),!1),a[r][e]=!0)}
/*!
* Error tracking for Snowplow v3.12.0 (http://bit.ly/sp-js)
* Error tracking for Snowplow v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/var fe={};function de(){return{activateBrowserPlugin:function(n){fe[n.id]=n}}}function ge(n,e){void 0===e&&(e=Object.keys(fe));var t=n.message,r=n.filename,o=n.lineno,i=n.colno,a=n.error,c=n.context,u=n.timestamp,s=a&&a.stack?a.stack:null;!function(n,e,t){try{Kn(null!=n?n:Object.keys(e),e).forEach(t)}catch(n){j.error("Function failed",n)}}(e,fe,(function(n){n.core.track(Y({event:{schema:"iglu:com.snowplowanalytics.snowplow/application_error/jsonschema/1-0-1",data:{programmingLanguage:"JAVASCRIPT",message:null!=t?t:"JS Exception. Browser doesn't support ErrorEvent API",stackTrace:s,lineNumber:o,lineColumn:i,fileName:r}}}),c,u)}))}function ve(n,e){void 0===n&&(n={}),void 0===e&&(e=Object.keys(fe));var t=n.filter,r=n.contextAdder,o=n.context;vn(window,"error",(function(n){(t&&sn(t)&&t(n)||null==t)&&function(n,e){var t=n.errorEvent,r=n.commonContext,o=n.contextAdder,i=r||[];o&&sn(o)&&(i=i.concat(o(t)));ge({message:t.message,filename:t.filename,lineno:t.lineno,colno:t.colno,error:t.error,context:i},e)}({errorEvent:n,commonContext:o,contextAdder:r},e)}),!0)}function pe(){if("undefined"==typeof window)return!1;const{doNotTrack:n,navigator:e}=window,t=n||e.doNotTrack||e.msDoNotTrack||function(){var n;const{external:e}=window;return void 0!==e&&"msTrackingProtectionEnabled"in e&&"function"==typeof e.msTrackingProtectionEnabled&&(null==(n=e.msTrackingProtectionEnabled)?void 0:n.call(e))}();return!!t&&(!0===t||1===t||"yes"===t||"string"==typeof t&&"1"===t.charAt(0))}const me=Object.freeze({CUSTOM_EVENT:"iglu:com.gitlab/custom_event/jsonschema/1-0-0",USER_CONTEXT:"iglu:com.gitlab/user_context/jsonschema/1-0-0"}),he="gitlab",ye=Object.freeze({minimumVisitLength:30,heartbeatDelay:30});
*/function mn(e,n){return void 0===n&&(n=8192),e&&e.length>n?e.substring(0,n):e}var hn={};function yn(){return{activateBrowserPlugin:function(e){hn[e.id]=e}}}function wn(e,n){void 0===n&&(n=Object.keys(hn));var t=e.message,r=e.filename,o=e.lineno,i=e.colno,a=e.error,c=e.context,u=e.timestamp,s=a&&mn(a.stack,8192),l=t&&mn(t,2048);!function(e,n,t){try{tn(null!=e?e:Object.keys(n),n).forEach(t)}catch(e){j.error("Function failed",e)}}(n,hn,(function(e){e.core.track(Y({event:{schema:"iglu:com.snowplowanalytics.snowplow/application_error/jsonschema/1-0-1",data:{programmingLanguage:"JAVASCRIPT",message:null!=l?l:"JS Exception. Browser doesn't support ErrorEvent API",stackTrace:s,lineNumber:o,lineColumn:i,fileName:r}}}),c,u)}))}function bn(e,n){void 0===e&&(e={}),void 0===n&&(n=Object.keys(hn));var t=e.filter,r=e.contextAdder,o=e.context;pe(window,"error",(function(e){(t&&le(t)&&t(e)||null==t)&&function(e,n){var t=e.errorEvent,r=e.commonContext,o=e.contextAdder,i=r||[];o&&le(o)&&(i=i.concat(o(t)));wn({message:t.message,filename:t.filename,lineno:t.lineno,colno:t.colno,error:t.error,context:i},n)}({errorEvent:e,commonContext:o,contextAdder:r},n)}),!0)}function kn(){if("undefined"==typeof window)return!1;const{doNotTrack:e,navigator:n}=window,t=e||n.doNotTrack||n.msDoNotTrack||function(){var e;const{external:n}=window;return void 0!==n&&"msTrackingProtectionEnabled"in n&&"function"==typeof n.msTrackingProtectionEnabled&&(null==(e=n.msTrackingProtectionEnabled)?void 0:e.call(n))}();return!!t&&(!0===t||1===t||"yes"===t||"string"==typeof t&&"1"===t.charAt(0))}const Sn=Object.freeze({CUSTOM_EVENT:"iglu:com.gitlab/custom_event/jsonschema/1-0-0",USER_CONTEXT:"iglu:com.gitlab/user_context/jsonschema/1-0-0"}),Tn="gitlab",xn=Object.freeze({minimumVisitLength:30,heartbeatDelay:30});
/*!
* Attaches Client Hints to Snowplow events v3.12.0 (http://bit.ly/sp-js)
* Attaches Client Hints to Snowplow events v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/
var we;function be(n){return{activateBrowserPlugin:function(){var e,t;we||(t=navigator).userAgentData&&(we={isMobile:t.userAgentData.mobile,brands:(e=t.userAgentData.brands,Array.isArray(e)?e:Object.keys(e).map((function(n){return e[n]})))},n&&t.userAgentData.getHighEntropyValues&&t.userAgentData.getHighEntropyValues(["platform","platformVersion","architecture","model","uaFullVersion"]).then((function(n){we.architecture=n.architecture,we.model=n.model,we.platform=n.platform,we.uaFullVersion=n.uaFullVersion,we.platformVersion=n.platformVersion})))},contexts:function(){return we?[{schema:"iglu:org.ietf/http_client_hints/jsonschema/1-0-0",data:we}]:[]}}}
var En;function Cn(e){var n=function(){var n,t,r,o,i=navigator.userAgentData;i&&(n={isMobile:i.mobile,brands:(o=i.brands,r=Array.isArray(o)?o:"[object Object]"===Object.prototype.toString.call(o)?Object.keys(o).map((function(e){return o[e]})):[],r.map((function(e){return{brand:e.brand,version:e.version}})))},e&&i.getHighEntropyValues&&i.getHighEntropyValues(["platform","platformVersion","architecture","model","uaFullVersion"]).then((function(e){n.architecture=e.architecture,n.model=e.model,n.platform=e.platform,n.uaFullVersion=e.uaFullVersion,n.platformVersion=e.platformVersion})),(t=n)&&"boolean"==typeof t.isMobile&&Array.isArray(t.brands)&&0!==t.brands.length&&!t.brands.some((function(e){return"string"!=typeof e.brand||"string"!=typeof e.version}))&&(En=n))};return{activateBrowserPlugin:function(){En||n()},contexts:function(){return En?[{schema:"iglu:org.ietf/http_client_hints/jsonschema/1-0-0",data:En}]:[]}}}
/*!
* Attaches Performance Timing data to Snowplow events v3.12.0 (http://bit.ly/sp-js)
* Attaches Performance Timing data to Snowplow events v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/function ke(){return{contexts:function(){return n=window,e=n.performance||n.mozPerformance||n.msPerformance||n.webkitPerformance,t=e.timing,e?[{schema:"iglu:org.w3/PerformanceTiming/jsonschema/1-0-0",data:{navigationStart:t.navigationStart,redirectStart:t.redirectStart,redirectEnd:t.redirectEnd,fetchStart:t.fetchStart,domainLookupStart:t.domainLookupStart,domainLookupEnd:t.domainLookupEnd,connectStart:t.connectStart,secureConnectionStart:t.secureConnectionStart,connectEnd:t.connectEnd,requestStart:t.requestStart,responseStart:t.responseStart,responseEnd:t.responseEnd,unloadEventStart:t.unloadEventStart,unloadEventEnd:t.unloadEventEnd,domLoading:t.domLoading,domInteractive:t.domInteractive,domContentLoadedEventStart:t.domContentLoadedEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domComplete:t.domComplete,loadEventStart:t.loadEventStart,loadEventEnd:t.loadEventEnd,msFirstPaint:t.msFirstPaint,chromeFirstPaint:t.chromeFirstPaint,requestEnd:t.requestEnd,proxyStart:t.proxyStart,proxyEnd:t.proxyEnd}}]:[];var n,e,t}}}class Se{constructor(n){var e,t,r;if(this.snowplow=null,this.options={appId:"",host:"",hasCookieConsent:!1,trackerId:he,pagePingTracking:!0},this.defaultPlugins={clientHints:!0,linkTracking:!0,performanceTiming:!0,errorTracking:!0},this.refreshLinkClickTracking=ae.bind(this),this.options={...this.options,...n},this.options.plugins={...this.defaultPlugins,...null!=(e=null==n?void 0:n.plugins)?e:{}},!this.trackingEnabled)return;const{appId:o,host:i,hasCookieConsent:a=!1,trackerId:c=he,pagePingTracking:u,plugins:s}=this.options;if(!o)return void console.warn("GitLab: No appId was provided");if(!i)return void console.warn("GitLab: No host was provided");const l=function(n,e,t){const r={clientHints:be,linkTracking:ie,performanceTiming:ke,errorTracking:de},o={appId:n,plugins:Object.entries(t).filter((([,n])=>n)).map((([n])=>r[n]())),maxLocalStorageQueueSize:100,customHeaders:{"X-GitLab-AppId":n},contexts:{webPage:!0,browser:!0}};return e?o:{...o,anonymousTracking:{withServerAnonymisation:!0},stateStorageStrategy:"none",eventMethod:"post"}}(o,a,s);this.snowplow=te(c,i,l),"boolean"==typeof u&&u?ne(ye):"object"==typeof u&&ne({minimumVisitLength:null!=(t=u.minimumVisitLength)?t:ye.minimumVisitLength,heartbeatDelay:null!=(r=u.heartbeatDelay)?r:ye.heartbeatDelay});const{linkTracking:f,errorTracking:d}=s;var g,v;f&&(void 0===g&&(g={}),void 0===v&&(v=Object.keys(re)),v.forEach((function(n){re[n]&&(re[n].sharedState.hasLoaded?(se(g,n),le(n)):re[n].sharedState.registeredOnLoadHandlers.push((function(){se(g,n),le(n)})))}))),d&&ve()}get trackingEnabled(){return!pe()}track(n,{...e}={}){var t,r;this.trackingEnabled&&(t={event:{schema:me.CUSTOM_EVENT,data:{name:n,props:{...e}}}},Zn(r,(function(n){n.core.track(Y({event:t.event}),t.context,t.timestamp)})))}trackError({...n}){var e;this.trackingEnabled&&((null==(e=this.options.plugins)?void 0:e.errorTracking)?ge({...n}):console.warn("GitLab: Error tracking plugin is not enabled"))}addCookieConsent(){var n,e;n={stateStorageStrategy:"cookieAndLocalStorage"},Zn(e,(function(e){e.disableAnonymousTracking(n)}))}page(n){this.trackingEnabled&&function(n,e){Zn(e,(function(e){e.trackPageView(n)}))}(n)}identify(n,e={}){var t,r,o;if(this.trackingEnabled&&(function(n,e){Zn(e,(function(e){e.setUserId(n)}))}(n),(o=e)&&("string"==typeof o||Array.isArray(o)?0!==o.length:"object"!=typeof o||0!==Object.keys(o).length))){let n={schema:me.USER_CONTEXT,data:e};t=[n],Zn(r,(function(n){n.core.addGlobalContexts(t)}))}}setCustomUrl(n){this.trackingEnabled&&function(n,e){Zn(e,(function(e){e.setCustomUrl(n)}))}(n)}setReferrerUrl(n){this.trackingEnabled&&function(n,e){Zn(e,(function(e){e.setReferrerUrl(n)}))}(n)}setDocumentTitle(n){this.trackingEnabled&&function(n,e){Zn(e,(function(e){e.setDocumentTitle(n)}))}(n)}}exports.glClientSDK=function(n){return new Se(n)};
*/function An(){return{contexts:function(){return e=window,n=e.performance||e.mozPerformance||e.msPerformance||e.webkitPerformance,t=n.timing,n?[{schema:"iglu:org.w3/PerformanceTiming/jsonschema/1-0-0",data:{navigationStart:t.navigationStart,redirectStart:t.redirectStart,redirectEnd:t.redirectEnd,fetchStart:t.fetchStart,domainLookupStart:t.domainLookupStart,domainLookupEnd:t.domainLookupEnd,connectStart:t.connectStart,secureConnectionStart:t.secureConnectionStart,connectEnd:t.connectEnd,requestStart:t.requestStart,responseStart:t.responseStart,responseEnd:t.responseEnd,unloadEventStart:t.unloadEventStart,unloadEventEnd:t.unloadEventEnd,domLoading:t.domLoading,domInteractive:t.domInteractive,domContentLoadedEventStart:t.domContentLoadedEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domComplete:t.domComplete,loadEventStart:t.loadEventStart,loadEventEnd:t.loadEventEnd,msFirstPaint:t.msFirstPaint,chromeFirstPaint:t.chromeFirstPaint,requestEnd:t.requestEnd,proxyStart:t.proxyStart,proxyEnd:t.proxyEnd}}]:[];var e,n,t}}}class In{constructor(e){var n,t,r;if(this.snowplow=null,this.options={appId:"",host:"",hasCookieConsent:!1,trackerId:Tn,pagePingTracking:!0},this.defaultPlugins={clientHints:!0,linkTracking:!0,performanceTiming:!0,errorTracking:!0},this.refreshLinkClickTracking=fn.bind(this),this.options={...this.options,...e},this.options.plugins={...this.defaultPlugins,...null!=(n=null==e?void 0:e.plugins)?n:{}},!this.trackingEnabled)return;const{appId:o,host:i,hasCookieConsent:a=!1,trackerId:c=Tn,pagePingTracking:u,plugins:s}=this.options;if(!o)return void console.warn("GitLab: No appId was provided");if(!i)return void console.warn("GitLab: No host was provided");const l=function(e,n,t){const r={clientHints:Cn,linkTracking:ln,performanceTiming:An,errorTracking:yn},o={appId:e,plugins:Object.entries(t).filter((([,e])=>e)).map((([e])=>r[e]())),maxLocalStorageQueueSize:100,customHeaders:{"X-GitLab-AppId":e},contexts:{webPage:!0,browser:!0}};return n?o:{...o,anonymousTracking:{withServerAnonymisation:!0},stateStorageStrategy:"none",eventMethod:"post"}}(o,a,s);this.snowplow=cn(c,i,l),"boolean"==typeof u&&u?on(xn):"object"==typeof u&&on({minimumVisitLength:null!=(t=u.minimumVisitLength)?t:xn.minimumVisitLength,heartbeatDelay:null!=(r=u.heartbeatDelay)?r:xn.heartbeatDelay});const{linkTracking:f,errorTracking:d}=s;var v,g;f&&(void 0===v&&(v={}),void 0===g&&(g=Object.keys(un)),g.forEach((function(e){un[e]&&(un[e].sharedState.hasLoaded?(gn(v,e),pn(e)):un[e].sharedState.registeredOnLoadHandlers.push((function(){gn(v,e),pn(e)})))}))),d&&bn()}get trackingEnabled(){return!kn()}track(e,{...n}={}){var t,r;this.trackingEnabled&&(t={event:{schema:Sn.CUSTOM_EVENT,data:{name:e,props:{...n}}}},nn(r,(function(e){e.core.track(Y({event:t.event}),t.context,t.timestamp)})))}trackError({...e}){var n;this.trackingEnabled&&((null==(n=this.options.plugins)?void 0:n.errorTracking)?wn({...e}):console.warn("GitLab: Error tracking plugin is not enabled"))}addCookieConsent(){var e,n;e={stateStorageStrategy:"cookieAndLocalStorage"},nn(n,(function(n){n.disableAnonymousTracking(e)}))}page(e){this.trackingEnabled&&function(e,n){nn(n,(function(n){n.trackPageView(e)}))}(e)}identify(e,n={}){var t,r,o;if(this.trackingEnabled&&(function(e,n){nn(n,(function(n){n.setUserId(e)}))}(e),(o=n)&&("string"==typeof o||Array.isArray(o)?0!==o.length:"object"!=typeof o||0!==Object.keys(o).length))){let e={schema:Sn.USER_CONTEXT,data:n};t=[e],nn(r,(function(e){e.core.addGlobalContexts(t)}))}}setCustomUrl(e){this.trackingEnabled&&function(e,n){nn(n,(function(n){n.setCustomUrl(e)}))}(e)}setReferrerUrl(e){this.trackingEnabled&&function(e,n){nn(n,(function(n){n.setReferrerUrl(e)}))}(e)}setDocumentTitle(e){this.trackingEnabled&&function(e,n){nn(n,(function(n){n.setDocumentTitle(e)}))}(e)}}exports.glClientSDK=function(e){return new In(e)};

@@ -1,38 +0,38 @@

var n=function(){return n=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},n.apply(this,arguments)};function e(n,e,t){if(t||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return n.concat(r||Array.prototype.slice.call(e))}var t={exports:{}},r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var o=new Uint8Array(16);t.exports=function(){return r(o),o}}else{var i=new Array(16);t.exports=function(){for(var n,e=0;e<16;e++)0==(3&e)&&(n=4294967296*Math.random()),i[e]=n>>>((3&e)<<3)&255;return i}}for(var a=[],c=0;c<256;++c)a[c]=(c+256).toString(16).substr(1);var u,s,l=function(n,e){var t=e||0,r=a;return[r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]]].join("")},f=t.exports,d=l,g=0,v=0;var p=function(n,e,t){var r=e&&t||0,o=e||[],i=(n=n||{}).node||u,a=void 0!==n.clockseq?n.clockseq:s;if(null==i||null==a){var c=f();null==i&&(i=u=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==a&&(a=s=16383&(c[6]<<8|c[7]))}var l=void 0!==n.msecs?n.msecs:(new Date).getTime(),p=void 0!==n.nsecs?n.nsecs:v+1,m=l-g+(p-v)/1e4;if(m<0&&void 0===n.clockseq&&(a=a+1&16383),(m<0||l>g)&&void 0===n.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");g=l,v=p,s=a;var h=(1e4*(268435455&(l+=122192928e5))+p)%4294967296;o[r++]=h>>>24&255,o[r++]=h>>>16&255,o[r++]=h>>>8&255,o[r++]=255&h;var y=l/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=255&y,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var w=0;w<6;++w)o[r+w]=i[w];return e||d(o)},m=t.exports,h=l;var y=function(n,e,t){var r=e&&t||0;"string"==typeof n&&(e="binary"===n?new Array(16):null,n=null);var o=(n=n||{}).random||(n.rng||m)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;++i)e[r+i]=o[i];return e||h(o)},w=p,b=y,k=b;k.v1=w,k.v4=b;var S=k;
var e=function(){return e=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},e.apply(this,arguments)};function n(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}var t={exports:{}},r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var o=new Uint8Array(16);t.exports=function(){return r(o),o}}else{var i=new Array(16);t.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),i[n]=e>>>((3&n)<<3)&255;return i}}for(var a=[],c=0;c<256;++c)a[c]=(c+256).toString(16).substr(1);var u,s,l=function(e,n){var t=n||0,r=a;return[r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]]].join("")},f=t.exports,d=l,v=0,g=0;var p=function(e,n,t){var r=n&&t||0,o=n||[],i=(e=e||{}).node||u,a=void 0!==e.clockseq?e.clockseq:s;if(null==i||null==a){var c=f();null==i&&(i=u=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==a&&(a=s=16383&(c[6]<<8|c[7]))}var l=void 0!==e.msecs?e.msecs:(new Date).getTime(),p=void 0!==e.nsecs?e.nsecs:g+1,m=l-v+(p-g)/1e4;if(m<0&&void 0===e.clockseq&&(a=a+1&16383),(m<0||l>v)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=l,g=p,s=a;var h=(1e4*(268435455&(l+=122192928e5))+p)%4294967296;o[r++]=h>>>24&255,o[r++]=h>>>16&255,o[r++]=h>>>8&255,o[r++]=255&h;var y=l/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=255&y,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var w=0;w<6;++w)o[r+w]=i[w];return n||d(o)},m=t.exports,h=l;var y=function(e,n,t){var r=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||m)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,n)for(var i=0;i<16;++i)n[r+i]=o[i];return n||h(o)},w=p,b=y,k=b;k.v1=w,k.v4=b;var S=k;
/*!
* Core functionality for Snowplow JavaScript trackers v3.12.0 (http://bit.ly/sp-js)
* Core functionality for Snowplow JavaScript trackers v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/function T(n){if(!n)return n;switch(4-n.length%4){case 2:n+="==";break;case 3:n+="="}return function(n){var e,t,r,o,i,a,c=function(n){return decodeURIComponent(n.split("").map((function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)})).join(""))},u=0,s=0,l="",f=[];if(!n)return n;n+="";do{e=(a=C.indexOf(n.charAt(u++))<<18|C.indexOf(n.charAt(u++))<<12|(o=C.indexOf(n.charAt(u++)))<<6|(i=C.indexOf(n.charAt(u++))))>>16&255,t=a>>8&255,r=255&a,f[s++]=64===o?String.fromCharCode(e):64===i?String.fromCharCode(e,t):String.fromCharCode(e,t,r)}while(u<n.length);return l=f.join(""),c(l.replace(/\0+$/,""))}(n.replace(/-/g,"+").replace(/_/g,"/"))}function x(n){if(!n)return n;var e=function(n){var e,t,r,o,i,a=0,c=0,u=[];if(!n)return n;n=unescape(encodeURIComponent(n));do{e=(i=n.charCodeAt(a++)<<16|n.charCodeAt(a++)<<8|n.charCodeAt(a++))>>18&63,t=i>>12&63,r=i>>6&63,o=63&i,u[c++]=C.charAt(e)+C.charAt(t)+C.charAt(r)+C.charAt(o)}while(a<n.length);var s=u.join(""),l=n.length%3;return(l?s.slice(0,l-3):s)+"===".slice(l||3)}(n);return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function E(){var n,e={},t=[],r=[],o=[],i=function(n,t){null!=t&&""!==t&&(e[n]=t)};return{add:i,addDict:function(n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&i(e,n[e])},addJson:function(n,e,o){if(o&&O(o)){var i={keyIfEncoded:n,keyIfNotEncoded:e,json:o};r.push(i),t.push(i)}},addContextEntity:function(n){o.push(n)},getPayload:function(){return e},getJson:function(){return t},withJsonProcessor:function(e){n=e},build:function(){return null==n||n(this,r,o),e}}}function A(n){return function(t,r,o){for(var i=function(e,r,o){var i=JSON.stringify(e);n?t.add(r,x(i)):t.add(o,i)},a=function(e,r){var o=e||function(){var e=t.getPayload();if(n?e.cx:e.co)return JSON.parse(n?T(e.cx):e.co)}();return o?o.data=o.data.concat(r.data):o=r,o},c=void 0,u=0,s=r;u<s.length;u++){var l=s[u];"cx"===l.keyIfEncoded?c=a(c,l.json):i(l.json,l.keyIfEncoded,l.keyIfNotEncoded)}(r.length=0,o.length)&&(c=a(c,{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:e([],o,!0)}),o.length=0);c&&i(c,"cx","co")}}function O(n){if(!P(n))return!1;for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e))return!0;return!1}function P(n){return null!=n&&(n.constructor==={}.constructor||n.constructor===[].constructor)}var I,L="Snowplow: ";!function(n){n[n.none=0]="none",n[n.error=1]="error",n[n.warn=2]="warn",n[n.debug=3]="debug",n[n.info=4]="info"}(I||(I={}));var j=function(n){void 0===n&&(n=I.warn);return{setLogLevel:function(e){n=I[e]?e:I.warn},warn:function(t,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(n>=I.warn&&"undefined"!=typeof console){var a=L+t;r?console.warn.apply(console,e([a+"\n",r],o,!1)):console.warn.apply(console,e([a],o,!1))}},error:function(t,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(n>=I.error&&"undefined"!=typeof console){var a=L+t+"\n";r?console.error.apply(console,e([a+"\n",r],o,!1)):console.error.apply(console,e([a],o,!1))}},debug:function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];n>=I.debug&&"undefined"!=typeof console&&console.debug.apply(console,e([L+t],r,!1))},info:function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];n>=I.info&&"undefined"!=typeof console&&console.info.apply(console,e([L+t],r,!1))}}}();function D(){var n=[],e=[],t=function(t){var r=function(n){for(var e=n.getJson(),t=0,r=e;t<r.length;t++){var o=r[t];if("ue_px"===o.keyIfEncoded&&"object"==typeof o.json.data){var i=o.json.data.schema;if("string"==typeof i)return i}}return""}(t),o=function(n){var e=n.getPayload().e;return"string"==typeof e?e:""}(t),i=[],a=X(n,t,o,r);i.push.apply(i,a);var c=function(n,e,t,r){var o,i=q(n),a=function(n){var o=function(n,e,t,r){if(H(n)){var o=n[0],i=!1;try{i=o({event:e.getPayload(),eventType:t,eventSchema:r})}catch(n){i=!1}if(!0===i)return X(n[1],e,t,r)}else if(z(n)&&function(n,e){var t=0,r=0,o=n.accept;Array.isArray(o)?n.accept.some((function(n){return F(n,e)}))&&r++:"string"==typeof o&&F(o,e)&&r++;var i=n.reject;Array.isArray(i)?n.reject.some((function(n){return F(n,e)}))&&t++:"string"==typeof i&&F(i,e)&&t++;if(r>0&&0===t)return!0;if(0===r&&t>0)return!1;return!1}(n[0],r))return X(n[1],e,t,r);return[]}(n,e,t,r);if(o&&0!==o.length)return o},c=i.map(a);return(o=[]).concat.apply(o,c.filter((function(n){return null!=n&&n.filter(Boolean)})))}(e,t,o,r);return i.push.apply(i,c),i};return{getGlobalPrimitives:function(){return n},getConditionalProviders:function(){return e},addGlobalContexts:function(t){for(var r=[],o=[],i=0,a=t;i<a.length;i++){var c=a[i];J(c)?r.push(c):M(c)&&o.push(c)}n=n.concat(o),e=e.concat(r)},clearGlobalContexts:function(){e=[],n=[]},removeGlobalContexts:function(t){for(var r=function(t){J(t)?e=e.filter((function(n){return JSON.stringify(n)!==JSON.stringify(t)})):M(t)&&(n=n.filter((function(n){return JSON.stringify(n)!==JSON.stringify(t)})))},o=0,i=t;o<i.length;o++){r(i[o])}},getApplicableContexts:function(n){return t(n)}}}function N(n){var e=n.split(".");return!!(e&&e.length>1)&&function(n){if("*"===n[0]||"*"===n[1])return!1;if(n.slice(2).length>0){for(var e=!1,t=0,r=n.slice(2);t<r.length;t++)if("*"===r[t])e=!0;else if(e)return!1;return!0}return 2==n.length}(e)}function U(n){var e=new RegExp("^iglu:((?:(?:[a-zA-Z0-9-_]+|\\*).)+(?:[a-zA-Z0-9-_]+|\\*))/([a-zA-Z0-9-_.]+|\\*)/jsonschema/([1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)$").exec(n);if(null!==e&&N(e[1]))return e.slice(1,6)}function B(n){var e=U(n);if(e){var t=e[0];return 5===e.length&&N(t)}return!1}function _(n){return function(n){return Array.isArray(n)&&n.every((function(n){return"string"==typeof n}))}(n)?n.every((function(n){return B(n)})):"string"==typeof n&&B(n)}function R(n){var e=n;return!!(O(e)&&"schema"in e&&"data"in e)&&("string"==typeof e.schema&&"object"==typeof e.data)}function V(n){return"function"==typeof n&&n.length<=1}function M(n){return V(n)||R(n)}function H(n){return!(!Array.isArray(n)||2!==n.length)&&(Array.isArray(n[1])?V(n[0])&&n[1].every(M):V(n[0])&&M(n[1]))}function z(n){return!(!Array.isArray(n)||2!==n.length)&&(!!function(n){var e=n,t=0;if(null!=n&&"object"==typeof n&&!Array.isArray(n)){if(Object.prototype.hasOwnProperty.call(e,"accept")){if(!_(e.accept))return!1;t+=1}if(Object.prototype.hasOwnProperty.call(e,"reject")){if(!_(e.reject))return!1;t+=1}return t>0&&t<=2}return!1}(n[0])&&(Array.isArray(n[1])?n[1].every(M):M(n[1])))}function J(n){return H(n)||z(n)}function F(n,e){if(!B(n))return!1;var t=U(n),r=function(n){var e=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(n);if(null!==e)return e.slice(1,6)}(e);if(t&&r){if(!function(n,e){var t=e.split("."),r=n.split(".");if(t&&r){if(t.length!==r.length)return!1;for(var o=0;o<r.length;o++)if(!G(t[o],r[o]))return!1;return!0}return!1}(t[0],r[0]))return!1;for(var o=1;o<5;o++)if(!G(t[o],r[o]))return!1;return!0}return!1}function G(n,e){return n&&e&&"*"===n||n===e}function q(n){return Array.isArray(n)?n:Array.of(n)}function X(n,e,t,r){var o,i=q(n).map((function(n){var o=function(n,e,t,r){if(R(n))return[n];if(V(n)){var o=function(n,e,t,r){var o=void 0;try{return o=n({event:e.getPayload(),eventType:t,eventSchema:r}),Array.isArray(o)&&o.every(R)||R(o)?o:void 0}catch(n){o=void 0}return o}(n,e,t,r);if(R(o))return[o];if(Array.isArray(o))return o}return}(n,e,t,r);if(o&&0!==o.length)return o}));return(o=[]).concat.apply(o,i.filter((function(n){return null!=n&&n.filter(Boolean)})))}function W(t){void 0===t&&(t={});var r=t.base64,o=t.corePlugins,i=t.callback,a=null!=o?o:[],c=function(n,t,r){var o=function(n){return{addPluginContexts:function(t){var r=t?e([],t,!0):[];return n.forEach((function(n){try{n.contexts&&r.push.apply(r,n.contexts())}catch(n){j.error("Error adding plugin contexts",n)}})),r}}}(t),i=D(),a=n,c={};function u(n,e){c[n]=e}var s={track:function(n,e,u){n.withJsonProcessor(A(a)),n.add("eid",S.v4()),n.addDict(c);var s=function(n){return null==n?{type:"dtm",value:(new Date).getTime()}:"number"==typeof n?{type:"dtm",value:n}:"ttm"===n.type?{type:"ttm",value:n.value}:{type:"dtm",value:n.value||(new Date).getTime()}}(u);n.add(s.type,s.value.toString());var l=function(n){if(n&&n.length)return{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:n}}(function(n,e){var t=i.getApplicableContexts(n),r=[];return e&&e.length&&r.push.apply(r,e),t&&t.length&&r.push.apply(r,t),r}(n,o.addPluginContexts(e)));void 0!==l&&n.addJson("cx","co",l),t.forEach((function(e){try{e.beforeTrack&&e.beforeTrack(n)}catch(n){j.error("Plugin beforeTrack",n)}})),"function"==typeof r&&r(n);var f=n.build();return t.forEach((function(n){try{n.afterTrack&&n.afterTrack(f)}catch(n){j.error("Plugin afterTrack",n)}})),f},addPayloadPair:u,getBase64Encoding:function(){return a},setBase64Encoding:function(n){a=n},addPayloadDict:function(n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(c[e]=n[e])},resetPayloadPairs:function(n){c=P(n)?n:{}},setTrackerVersion:function(n){u("tv",n)},setTrackerNamespace:function(n){u("tna",n)},setAppId:function(n){u("aid",n)},setPlatform:function(n){u("p",n)},setUserId:function(n){u("uid",n)},setScreenResolution:function(n,e){u("res",n+"x"+e)},setViewport:function(n,e){u("vp",n+"x"+e)},setColorDepth:function(n){u("cd",n)},setTimezone:function(n){u("tz",n)},setLang:function(n){u("lang",n)},setIpAddress:function(n){u("ip",n)},setUseragent:function(n){u("ua",n)},addGlobalContexts:function(n){i.addGlobalContexts(n)},clearGlobalContexts:function(){i.clearGlobalContexts()},removeGlobalContexts:function(n){i.removeGlobalContexts(n)}};return s}(null==r||r,a,i),u=n(n({},c),{addPlugin:function(n){var e,t,r=n.plugin;a.push(r),null===(e=r.logger)||void 0===e||e.call(r,j),null===(t=r.activateCorePlugin)||void 0===t||t.call(r,u)}});return null==a||a.forEach((function(n){var e,t;null===(e=n.logger)||void 0===e||e.call(n,j),null===(t=n.activateCorePlugin)||void 0===t||t.call(n,u)})),u}function Y(n){var e=n.event,t=e.schema,r=e.data,o=E(),i={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:t,data:r}};return o.add("e","ue"),o.addJson("ue_px","ue_pr",i),o}function Q(n,e){void 0===e&&(e={});var t={};for(var r in n)(e[r]||null!==n[r]&&void 0!==n[r])&&(t[r]=n[r]);return t}var Z,K,$={exports:{}},nn={exports:{}};Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K={rotl:function(n,e){return n<<e|n>>>32-e},rotr:function(n,e){return n<<32-e|n>>>e},endian:function(n){if(n.constructor==Number)return 16711935&K.rotl(n,8)|4278255360&K.rotl(n,24);for(var e=0;e<n.length;e++)n[e]=K.endian(n[e]);return n},randomBytes:function(n){for(var e=[];n>0;n--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(n){for(var e=[],t=0,r=0;t<n.length;t++,r+=8)e[r>>>5]|=n[t]<<24-r%32;return e},wordsToBytes:function(n){for(var e=[],t=0;t<32*n.length;t+=8)e.push(n[t>>>5]>>>24-t%32&255);return e},bytesToHex:function(n){for(var e=[],t=0;t<n.length;t++)e.push((n[t]>>>4).toString(16)),e.push((15&n[t]).toString(16));return e.join("")},hexToBytes:function(n){for(var e=[],t=0;t<n.length;t+=2)e.push(parseInt(n.substr(t,2),16));return e},bytesToBase64:function(n){for(var e=[],t=0;t<n.length;t+=3)for(var r=n[t]<<16|n[t+1]<<8|n[t+2],o=0;o<4;o++)8*t+6*o<=8*n.length?e.push(Z.charAt(r>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],t=0,r=0;t<n.length;r=++t%4)0!=r&&e.push((Z.indexOf(n.charAt(t-1))&Math.pow(2,-2*r+8)-1)<<2*r|Z.indexOf(n.charAt(t))>>>6-2*r);return e}},nn.exports=K;var en={utf8:{stringToBytes:function(n){return en.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(en.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var e=[],t=0;t<n.length;t++)e.push(255&n.charCodeAt(t));return e},bytesToString:function(n){for(var e=[],t=0;t<n.length;t++)e.push(String.fromCharCode(n[t]));return e.join("")}}},tn=en;function rn(n,e,t){void 0===t&&(t=63072e3);try{var r=window.localStorage,o=Date.now()+1e3*t;return r.setItem("".concat(n,".expires"),o.toString()),r.setItem(n,e),!0}catch(n){return!1}}function on(n){try{var e=window.localStorage;return e.removeItem(n),e.removeItem(n+".expires"),!0}catch(n){return!1}}function an(n){try{return window.sessionStorage.getItem(n)}catch(n){return}}function cn(n){return!(!n||"string"!=typeof n.valueOf())}function un(n){return Number.isInteger&&Number.isInteger(n)||"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}function sn(n){return!(!n||"function"!=typeof n)}function ln(n){if(!cn(n)){n=n.text||"";var e=document.getElementsByTagName("title");e&&null!=e[0]&&(n=e[0].text)}return n}function fn(n){var e=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)").exec(n);return e?e[1]:n}function dn(n){var e=n.length;return"."===n.charAt(--e)&&(n=n.slice(0,e)),"*."===n.slice(0,2)&&(n=n.slice(1)),n}function gn(n){var e=window,t=pn("referrer",e.location.href)||pn("referer",e.location.href);if(t)return t;if(n)return n;try{if(e.top)return e.top.document.referrer;if(e.parent)return e.parent.document.referrer}catch(n){}return document.referrer}function vn(n,e,t,r){return n.addEventListener?(n.addEventListener(e,t,r),!0):n.attachEvent?n.attachEvent("on"+e,t):void(n["on"+e]=t)}function pn(n,e){var t=new RegExp("^[^#]*[?&]"+n+"=([^&#]*)").exec(e);return t?decodeURIComponent(t[1].replace(/\+/g," ")):null}function mn(n,e,t,r){yn(n,"",-1,"/",e,t,r)}function hn(n){for(var e=document.cookie.split("; "),t=[],r=0;r<e.length;r++)e[r].substring(0,n.length)===n&&t.push(e[r]);return t}function yn(n,e,t,r,o,i,a){return arguments.length>1?document.cookie=n+"="+encodeURIComponent(null!=e?e:"")+(t?"; Expires="+new Date(+new Date+1e3*t).toUTCString():"")+(r?"; Path="+r:"")+(o?"; Domain="+o:"")+(i?"; SameSite="+i:"")+(a?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+n+"=")[1]||"").split(";")[0])}function wn(n){if(null==n||"object"!=typeof n||Array.isArray(n))return function(){return!0};var e=Object.prototype.hasOwnProperty.call(n,"allowlist"),t=function(n){var e={},t=n.allowlist||n.denylist;if(t){Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++)e[t[r]]=!0}return e}(n);return function(n,e){if(n.hasOwnProperty("filter")&&n.filter)return n.filter;return e}(n,(function(n){return function(n,e){for(var t=bn(n),r=0,o=t;r<o.length;r++){if(e[o[r]])return!0}return!1}(n,t)===e}))}function bn(n){return n.className.match(/\S+/g)||[]}function kn(){var n="modernizr";if(!function(){try{return!!window.localStorage}catch(n){return!0}}())return!1;try{var e=window.localStorage;return e.setItem(n,n),e.removeItem(n),!0}catch(n){return!1}}!function(){var n=nn.exports,e=tn.utf8,t=tn.bin,r=function(r,o){var i=n.wordsToBytes(function(t){t.constructor==String?t=e.stringToBytes(t):"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());var r=n.bytesToWords(t),o=8*t.length,i=[],a=1732584193,c=-271733879,u=-1732584194,s=271733878,l=-1009589776;r[o>>5]|=128<<24-o%32,r[15+(o+64>>>9<<4)]=o;for(var f=0;f<r.length;f+=16){for(var d=a,g=c,v=u,p=s,m=l,h=0;h<80;h++){if(h<16)i[h]=r[f+h];else{var y=i[h-3]^i[h-8]^i[h-14]^i[h-16];i[h]=y<<1|y>>>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+=g,u+=v,s+=p,l+=m}return[a,c,u,s,l]}(r));return o&&o.asBytes?i:o&&o.asString?t.bytesToString(i):n.bytesToHex(i)};r._blocksize=16,r._digestsize=20,$.exports=r}();var Sn="iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",Tn="iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/1-0-0",xn="iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",Cn="iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4";function En(n,e,t,r,o,i,a,c,u,s,l,f,d,g,v,p){var m,h,y=!1,w=[],b=!0===(r="string"==typeof r?r.toLowerCase():r)||"beacon"===r||"true"===r,k=Boolean(b&&window.navigator&&window.navigator.sendBeacon&&!(function(n,e){var t=e.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/");return!(!t||!t.length)&&parseInt(t[0])<=n}(13,h=window.navigator.userAgent)||function(n,e,t){var r=t.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/");return!(!r||!r.length)&&(parseInt(r[0])<=n||parseInt(r[0])===n&&parseInt(r[1])<=e)}(10,15,h)&&function(n){return n.match("Version/.* Safari/")&&!function(n){return n.match("Chrom(e|ium)")}(n)}(h)))&&b,S="get"===r,T=Boolean(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),x=!S&&T&&("post"===r||b),C=x?o:"/i",E="snowplowOutQueue_".concat(n,"_").concat(x?"post2":"get");if(b&&(d={}),i=t&&kn()&&x&&i||1,t)try{var A=window.localStorage.getItem(E);w=A?JSON.parse(A):[]}catch(n){}function O(n){var e=Object.keys(n).map((function(e){return[e,n[e]]})).reduce((function(n,e){var t=e[0],r=e[1];return n[t]=r.toString(),n}),{});return{evt:e,bytes:P(JSON.stringify(e))}}function P(n){for(var e=0,t=0;t<n.length;t++){var r=n.charCodeAt(t);r<=127?e+=1:r<=2047?e+=2:r>=55296&&r<=57343?(e+=4,t++):e+=r<65535?3:4}return e}Array.isArray(w)||(w=[]),e.outQueues.push(w),T&&i>1&&e.bufferFlushers.push((function(n){y||D(n)}));var I=function(n){return"object"==typeof n[0]};function L(n,e){N(e,!0,!1).send(U(B([n.evt])))}function D(n){for(void 0===n&&(n=!1);w.length&&"string"!=typeof w[0]&&"object"!=typeof w[0];)w.shift();if(w.length<1)y=!1;else{if(!cn(m))throw"No collector configured";if(y=!0,T){var e,r,o=void 0;I(w)?(e=N(o=m,!0,n),r=function(n){for(var e=0,t=0;e<n.length&&!((t+=n[e].bytes)>=a);)e+=1;return e}(w)):(o=_(w[0]),e=N(o,!1,n),r=1);var i=setTimeout((function(){e.abort(),y=!1}),l),c=function(n){for(var e=0;e<n;e++)w.shift();t&&rn(E,JSON.stringify(w.slice(0,s)))},u=function(n){c(n),D()};if(e.onreadystatechange=function(){4===e.readyState&&e.status>=200&&(clearTimeout(i),e.status<300?u(r):(function(n){if(n>=200&&n<300)return!1;if(v.includes(n))return!0;return!p.includes(n)}(e.status)||(j.error("Status ".concat(e.status,", will not retry.")),c(r)),y=!1))},I(w)){var d=w.slice(0,r);if(d.length>0){var g=!1,h=d.map((function(n){return n.evt}));if(k){var b=new Blob([U(B(h))],{type:"application/json"});try{g=navigator.sendBeacon(o,b)}catch(n){g=!1}}!0===g?u(r):e.send(U(B(h)))}}else e.send()}else if(f||I(w))y=!1;else{var S=new Image(1,1),x=!0;S.onload=function(){x&&(x=!1,w.shift(),t&&rn(E,JSON.stringify(w.slice(0,s))),D())},S.onerror=function(){x&&(x=!1,y=!1)},S.src=_(w[0]),setTimeout((function(){x&&y&&(x=!1,D())}),l)}}}function N(n,e,t){var r=new XMLHttpRequest;for(var o in e?(r.open("POST",n,!t),r.setRequestHeader("Content-Type","application/json; charset=UTF-8")):r.open("GET",n,!t),r.withCredentials=g,f&&r.setRequestHeader("SP-Anonymous","*"),d)Object.prototype.hasOwnProperty.call(d,o)&&r.setRequestHeader(o,d[o]);return r}function U(n){return JSON.stringify({schema:Cn,data:n})}function B(n){for(var e=(new Date).getTime().toString(),t=0;t<n.length;t++)n[t].stm=e;return n}function _(n){return u?m+n.replace("?","?stm="+(new Date).getTime()+"&"):m+n}return{enqueueRequest:function(n,e){m=e+C;var r=function(n,e){return j.warn("Event ("+n+"B) too big, max is "+e)};if(x){if((f=O(n)).bytes>=a)return r(f.bytes,a),void L(f,m);w.push(f)}else{var u=function(n){var e="?",t={co:!0,cx:!0},r=!0;for(var o in n)n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(r?r=!1:e+="&",e+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));for(var i in t)n.hasOwnProperty(i)&&t.hasOwnProperty(i)&&(e+="&"+i+"="+encodeURIComponent(n[i]));return e}(n);if(c>0){var l=P(_(u));if(l>=c){var f;if(r(l,c),T)L(f=O(n),e+o);return}}w.push(u)}var d=!1;t&&(d=rn(E,JSON.stringify(w.slice(0,s)))),y||d&&!(w.length>=i)||D()},executeQueue:function(){y||D()},setUseLocalStorage:function(n){t=n},setAnonymousTracking:function(n){f=n},setCollectorUrl:function(n){m=n+C},setBufferSize:function(n){i=n}}}function An(n,e,t){var r,o,i,a;return"translate.googleusercontent.com"===n?(""===t&&(t=e),n=fn(e=null!==(o=e,i="u",r=(a=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+))([?][^#]+)").exec(o))&&(null==a?void 0:a.length)>1?pn(i,a[1]):null)&&void 0!==r?r:"")):"cc.bingj.com"!==n&&"webcache.googleusercontent.com"!==n||(n=fn(e=document.links[0].href)),[n,e,t]}var On=0,Pn=1,In=2,Ln=3,jn=4,Dn=5,Nn=6,Un=7,Bn=8,_n=9,Rn=10;function Vn(e,t){var r=n({memorizedVisitCount:1},t),o=r.memorizedVisitCount,i=r.configStateStorageStrategy,a=r.configAnonymousTracking,c=r.onSessionUpdateCallback;Fn(e)?(e[Un]=e[Nn],e[Dn]=e[jn],e[Ln]++):e[Ln]=o;var u=S.v4();return e[Nn]=u,e[Rn]=0,e[Bn]="",e[_n]=void 0,c&&c(Hn(e,i,a)),u}function Mn(n){n[jn]=Math.round((new Date).getTime()/1e3)}function Hn(n,e,t){var r=n[_n];return{userId:t?"00000000-0000-0000-0000-000000000000":n[Pn],sessionId:n[Nn],eventIndex:n[Rn],sessionIndex:n[Ln],previousSessionId:t?null:n[Un]||null,storageMechanism:"localStorage"==e?"LOCAL_STORAGE":"COOKIE_1",firstEventId:n[Bn]||null,firstEventTimestamp:r?new Date(r).toISOString():null}}function zn(n){return n[Nn]}function Jn(n){return n[Ln]}function Fn(n){return"0"===n[On]}var Gn="x";function qn(){return{viewport:Wn(Xn()),documentSize:Wn((n=document.documentElement,e=document.body,t=e?Math.max(e.offsetHeight,e.scrollHeight):0,r=Math.max(n.clientWidth,n.offsetWidth,n.scrollWidth),o=Math.max(n.clientHeight,n.offsetHeight,n.scrollHeight,t),isNaN(r)||isNaN(o)?"":r+Gn+o)),resolution:Wn(screen.width+Gn+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 n,e,t,r,o}function Xn(){var n,e;if("innerWidth"in window)n=window.innerWidth,e=window.innerHeight;else{var t=document.documentElement||document.body;n=t.clientWidth,e=t.clientHeight}return n>=0&&e>=0?n+Gn+e:null}function Wn(n){return n&&n.split(Gn).map((function(n){return Math.floor(Number(n))})).join(Gn)}function Yn(e,t,r,o,i,a){void 0===a&&(a={});var c=[],u=function(e,t,r,o,i,a){var u,s,l,f,d,g,v,p,m,h,y,w,b,k,T,x,C,A,O,P,I,L,D,N,U,B,_,R;a.eventMethod=null!==(u=a.eventMethod)&&void 0!==u?u:"post";var V,M,H=function(n){var e;return null!==(e=n.stateStorageStrategy)&&void 0!==e?e:"cookieAndLocalStorage"},z=function(n){var e,t;return"boolean"!=typeof n.anonymousTracking&&(null!==(t=!0===(null===(e=n.anonymousTracking)||void 0===e?void 0:e.withSessionTracking))&&void 0!==t&&t)},J=function(n){var e,t;return"boolean"!=typeof n.anonymousTracking&&(null!==(t=!0===(null===(e=n.anonymousTracking)||void 0===e?void 0:e.withServerAnonymisation))&&void 0!==t&&t)},F=function(n){return!!n.anonymousTracking},G=null!==(l=null===(s=null==a?void 0:a.contexts)||void 0===s?void 0:s.browser)&&void 0!==l&&l,q=null===(d=null===(f=null==a?void 0:a.contexts)||void 0===f?void 0:f.webPage)||void 0===d||d;c.push((V=function(n){return he?null:n},M=function(n){return pe?n:V(n)},{beforeTrack:function(n){var e=Re("ses"),t=Ze();if(Xn=!!nn&&!!yn(nn),de||Xn)We();else{Fn(t)?(Cn=e||"none"==ye?zn(t):Vn(t,{configStateStorageStrategy:ye,configAnonymousTracking:he,onSessionUpdateCallback:Ee}),be=Jn(t)):(new Date).getTime()-we>1e3*ve&&(be++,Cn=Vn(t,{configStateStorageStrategy:ye,configAnonymousTracking:he,memorizedVisitCount:be,onSessionUpdateCallback:Ee})),Mn(t),function(n,e){if(0===n[Rn]){var t=e.build();n[Bn]=t.eid;var r=t.dtm||t.ttm;n[_n]=r?parseInt(r):void 0}}(t,n),function(n){n[Rn]+=1}(t);var r=qn(),o=r.viewport,i=r.documentSize;n.add("vp",o),n.add("ds",i),n.add("vid",M(be)),n.add("sid",M(Cn)),n.add("duid",V(function(n){return n[Pn]}(t))),n.add("uid",V(Gn)),je(),n.add("refr",Ue(X||$n)),n.add("url",Ue(Y||Kn)),!Ce||he&&!pe||function(n,e){var t={schema:xn,data:e};n.addContextEntity(t)}(n,Hn(t,ye,he)),"none"!=ye&&(qe(t),Ge()),we=(new Date).getTime()}}})),q&&c.push({contexts:function(){return[{schema:Sn,data:{id:nt()}}]}}),G&&c.push({contexts:function(){return[{schema:Tn,data:n(n({},qn()),{tabId:et()})}]}}),c.push.apply(c,null!==(g=a.plugins)&&void 0!==g?g:[]);var X,Y,Q,Z,K,nn,en,tn,cn,sn,wn,bn,kn,Cn,Gn,Xn,Wn=W({base64:a.encodeBase64,corePlugins:c,callback:function(n){de||Xn||ke.enqueueRequest(n.build(),ee)}}),Yn=document.characterSet||document.charset,Qn=An(window.location.hostname,window.location.href,gn()),Zn=dn(Qn[0]),Kn=Qn[1],$n=Qn[2],ne=null!==(v=a.platform)&&void 0!==v?v:"web",ee=Ke(o),te=null!==(p=a.postPath)&&void 0!==p?p:"/com.snowplowanalytics.snowplow/tp2",re=null!==(m=a.appId)&&void 0!==m?m:"",oe=document.title,ie=null===(h=a.resetActivityTrackingOnPageView)||void 0===h||h,ae=null!==(y=a.cookieName)&&void 0!==y?y:"_sp_",ce=null!==(w=a.cookieDomain)&&void 0!==w?w:void 0,ue="/",se=null!==(b=a.cookieSameSite)&&void 0!==b?b:"None",le=null===(k=a.cookieSecure)||void 0===k||k,fe=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,de=void 0!==a.respectDoNotTrack&&(a.respectDoNotTrack&&("yes"===fe||"1"===fe)),ge=null!==(T=a.cookieLifetime)&&void 0!==T?T:63072e3,ve=null!==(x=a.sessionCookieTimeout)&&void 0!==x?x:1800,pe=z(a),me=J(a),he=F(a),ye=H(a),we=(new Date).getTime(),be=1,ke=En(e,i,"localStorage"==ye||"cookieAndLocalStorage"==ye,a.eventMethod,te,null!==(C=a.bufferSize)&&void 0!==C?C:1,null!==(A=a.maxPostBytes)&&void 0!==A?A:4e4,null!==(O=a.maxGetBytes)&&void 0!==O?O:0,null===(P=a.useStm)||void 0===P||P,null!==(I=a.maxLocalStorageQueueSize)&&void 0!==I?I:1e3,null!==(L=a.connectionTimeout)&&void 0!==L?L:5e3,me,null!==(D=a.customHeaders)&&void 0!==D?D:{},null===(N=a.withCredentials)||void 0===N||N,null!==(U=a.retryStatusCodes)&&void 0!==U?U:[],(null!==(B=a.dontRetryStatusCodes)&&void 0!==B?B:[]).concat([400,401,403,410,422])),Se=!1,Te=!1,xe={enabled:!1,installed:!1,configurations:{}},Ce=null!==(R=null===(_=a.contexts)||void 0===_?void 0:_.session)&&void 0!==R&&R,Ee=a.onSessionUpdateCallback;a.hasOwnProperty("discoverRootDomain")&&a.discoverRootDomain&&(ce=function(n,e){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(yn(o,i,0,"/",u,n,e),yn(o)===i){mn(o,u,n,e);for(var s=hn(r),l=0;l<s.length;l++)mn(s[l],u,n,e);return u}}return t}(se,le));var Ae=qn(),Oe=Ae.browserLanguage,Pe=Ae.resolution,Ie=Ae.colorDepth,Le=Ae.cookiesEnabled;function je(){(Qn=An(window.location.hostname,window.location.href,gn()))[1]!==Kn&&($n=gn(Kn)),Zn=dn(Qn[0]),Kn=Qn[1]}function De(n){var e=(new Date).getTime(),t=n.currentTarget;(null==t?void 0:t.href)&&(t.href=function(n,e,t){var r=e+"="+t,o=n.split("#"),i=o[0].split("?"),a=i.shift(),c=i.join("?");if(c){for(var u=!0,s=c.split("&"),l=0;l<s.length;l++)if(s[l].substr(0,e.length+1)===e+"="){u=!1,s[l]=r,c=s.join("&");break}u&&(c=r+"&"+c)}else c=r;return o[0]=a+"?"+c,o.join("#")}(t.href,"_sp",kn+"."+e))}function Ne(n){for(var e=0;e<document.links.length;e++){var t=document.links[e];!t.spDecorationEnabled&&n(t)&&(vn(t,"click",De,!0),vn(t,"mousedown",De,!0),t.spDecorationEnabled=!0)}}function Ue(n){var e;return Z&&(e=new RegExp("#.*"),n=n.replace(e,"")),K&&(e=new RegExp("[{}]","g"),n=n.replace(e,"")),n}function Be(n){var e=new RegExp("^([a-z]+):").exec(n);return e?e[1]:null}function _e(n){return ae+n+"."+bn}function Re(n){var e=_e(n);return"localStorage"==ye?
*/function T(e){if(!e)return e;switch(4-e.length%4){case 2:e+="==";break;case 3:e+="="}return function(e){var n,t,r,o,i,a,c=function(e){return decodeURIComponent(e.split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))},u=0,s=0,l="",f=[];if(!e)return e;e+="";do{n=(a=E.indexOf(e.charAt(u++))<<18|E.indexOf(e.charAt(u++))<<12|(o=E.indexOf(e.charAt(u++)))<<6|(i=E.indexOf(e.charAt(u++))))>>16&255,t=a>>8&255,r=255&a,f[s++]=64===o?String.fromCharCode(n):64===i?String.fromCharCode(n,t):String.fromCharCode(n,t,r)}while(u<e.length);return l=f.join(""),c(l.replace(/\0+$/,""))}(e.replace(/-/g,"+").replace(/_/g,"/"))}function x(e){if(!e)return e;var n=function(e){var n,t,r,o,i,a=0,c=0,u=[];if(!e)return e;e=unescape(encodeURIComponent(e));do{n=(i=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,t=i>>12&63,r=i>>6&63,o=63&i,u[c++]=E.charAt(n)+E.charAt(t)+E.charAt(r)+E.charAt(o)}while(a<e.length);var s=u.join(""),l=e.length%3;return(l?s.slice(0,l-3):s)+"===".slice(l||3)}(e);return n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function C(){var e,n={},t=[],r=[],o=[],i=function(e,t){null!=t&&""!==t&&(n[e]=t)};return{add:i,addDict:function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&i(n,e[n])},addJson:function(e,n,o){if(o&&I(o)){var i={keyIfEncoded:e,keyIfNotEncoded:n,json:o};r.push(i),t.push(i)}},addContextEntity:function(e){o.push(e)},getPayload:function(){return n},getJson:function(){return t},withJsonProcessor:function(n){e=n},build:function(){return null==e||e(this,r,o),n}}}function A(e){return function(t,r,o){for(var i=function(n,r,o){var i=JSON.stringify(n);e?t.add(r,x(i)):t.add(o,i)},a=function(n,r){var o=n||function(){var n=t.getPayload();if(e?n.cx:n.co)return JSON.parse(e?T(n.cx):n.co)}();return o?o.data=o.data.concat(r.data):o=r,o},c=void 0,u=0,s=r;u<s.length;u++){var l=s[u];"cx"===l.keyIfEncoded?c=a(c,l.json):i(l.json,l.keyIfEncoded,l.keyIfNotEncoded)}(r.length=0,o.length)&&(c=a(c,{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:n([],o,!0)}),o.length=0);c&&i(c,"cx","co")}}function I(e){if(!O(e))return!1;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))return!0;return!1}function O(e){return null!=e&&(e.constructor==={}.constructor||e.constructor===[].constructor)}var P,L="Snowplow: ";!function(e){e[e.none=0]="none",e[e.error=1]="error",e[e.warn=2]="warn",e[e.debug=3]="debug",e[e.info=4]="info"}(P||(P={}));var j=function(e){void 0===e&&(e=P.warn);return{setLogLevel:function(n){e=P[n]?n:P.warn},warn:function(t,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(e>=P.warn&&"undefined"!=typeof console){var a=L+t;r?console.warn.apply(console,n([a+"\n",r],o,!1)):console.warn.apply(console,n([a],o,!1))}},error:function(t,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(e>=P.error&&"undefined"!=typeof console){var a=L+t+"\n";r?console.error.apply(console,n([a+"\n",r],o,!1)):console.error.apply(console,n([a],o,!1))}},debug:function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e>=P.debug&&"undefined"!=typeof console&&console.debug.apply(console,n([L+t],r,!1))},info:function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e>=P.info&&"undefined"!=typeof console&&console.info.apply(console,n([L+t],r,!1))}}}();function D(){var e=[],n=[],t=function(t){var r=function(e){for(var n=e.getJson(),t=0,r=n;t<r.length;t++){var o=r[t];if("ue_px"===o.keyIfEncoded&&"object"==typeof o.json.data){var i=o.json.data.schema;if("string"==typeof i)return i}}return""}(t),o=function(e){var n=e.getPayload().e;return"string"==typeof n?n:""}(t),i=[],a=X(e,t,o,r);i.push.apply(i,a);var c=function(e,n,t,r){var o,i=G(e),a=function(e){var o=function(e,n,t,r){if(z(e)){var o=e[0],i=!1;try{i=o({event:n.getPayload(),eventType:t,eventSchema:r})}catch(e){i=!1}if(!0===i)return X(e[1],n,t,r)}else if(H(e)&&function(e,n){var t=0,r=0,o=e.accept;Array.isArray(o)?e.accept.some((function(e){return J(e,n)}))&&r++:"string"==typeof o&&J(o,n)&&r++;var i=e.reject;Array.isArray(i)?e.reject.some((function(e){return J(e,n)}))&&t++:"string"==typeof i&&J(i,n)&&t++;if(r>0&&0===t)return!0;if(0===r&&t>0)return!1;return!1}(e[0],r))return X(e[1],n,t,r);return[]}(e,n,t,r);if(o&&0!==o.length)return o},c=i.map(a);return(o=[]).concat.apply(o,c.filter((function(e){return null!=e&&e.filter(Boolean)})))}(n,t,o,r);return i.push.apply(i,c),i};return{getGlobalPrimitives:function(){return e},getConditionalProviders:function(){return n},addGlobalContexts:function(t){for(var r=[],o=[],i=0,a=t;i<a.length;i++){var c=a[i];F(c)?r.push(c):M(c)&&o.push(c)}e=e.concat(o),n=n.concat(r)},clearGlobalContexts:function(){n=[],e=[]},removeGlobalContexts:function(t){for(var r=function(t){F(t)?n=n.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)})):M(t)&&(e=e.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)})))},o=0,i=t;o<i.length;o++){r(i[o])}},getApplicableContexts:function(e){return t(e)}}}function U(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);t<r.length;t++)if("*"===r[t])n=!0;else if(n)return!1;return!0}return 2==e.length}(n)}function N(e){var n=new RegExp("^iglu:((?:(?:[a-zA-Z0-9-_]+|\\*).)+(?:[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&&U(n[1]))return n.slice(1,6)}function R(e){var n=N(e);if(n){var t=n[0];return 5===n.length&&U(t)}return!1}function B(e){return function(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}(e)?e.every((function(e){return R(e)})):"string"==typeof e&&R(e)}function V(e){var n=e;return!!(I(n)&&"schema"in n&&"data"in n)&&("string"==typeof n.schema&&"object"==typeof n.data)}function _(e){return"function"==typeof e&&e.length<=1}function M(e){return _(e)||V(e)}function z(e){return!(!Array.isArray(e)||2!==e.length)&&(Array.isArray(e[1])?_(e[0])&&e[1].every(M):_(e[0])&&M(e[1]))}function H(e){return!(!Array.isArray(e)||2!==e.length)&&(!!function(e){var n=e,t=0;if(null!=e&&"object"==typeof e&&!Array.isArray(e)){if(Object.prototype.hasOwnProperty.call(n,"accept")){if(!B(n.accept))return!1;t+=1}if(Object.prototype.hasOwnProperty.call(n,"reject")){if(!B(n.reject))return!1;t+=1}return t>0&&t<=2}return!1}(e[0])&&(Array.isArray(e[1])?e[1].every(M):M(e[1])))}function F(e){return z(e)||H(e)}function J(e,n){if(!R(e))return!1;var t=N(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;o<r.length;o++)if(!q(t[o],r[o]))return!1;return!0}return!1}(t[0],r[0]))return!1;for(var o=1;o<5;o++)if(!q(t[o],r[o]))return!1;return!0}return!1}function q(e,n){return e&&n&&"*"===e||e===n}function G(e){return Array.isArray(e)?e:Array.of(e)}function X(e,n,t,r){var o,i=G(e).map((function(e){var o=function(e,n,t,r){if(V(e))return[e];if(_(e)){var o=function(e,n,t,r){var o=void 0;try{return o=e({event:n.getPayload(),eventType:t,eventSchema:r}),Array.isArray(o)&&o.every(V)||V(o)?o:void 0}catch(e){o=void 0}return o}(e,n,t,r);if(V(o))return[o];if(Array.isArray(o))return o}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)})))}function W(t){void 0===t&&(t={});var r=t.base64,o=t.corePlugins,i=t.callback,a=null!=o?o:[],c=function(e,t,r){var o=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){j.error("Error adding plugin contexts",e)}})),r}}}(t),i=D(),a=e,c={};function u(e,n){c[e]=n}var s={track:function(e,n,u){e.withJsonProcessor(A(a)),e.add("eid",S.v4()),e.addDict(c);var s=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(s.type,s.value.toString());var l=function(e){if(e&&e.length)return{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:e}}(function(e,n){var t=i.getApplicableContexts(e),r=[];return n&&n.length&&r.push.apply(r,n),t&&t.length&&r.push.apply(r,t),r}(e,o.addPluginContexts(n)));void 0!==l&&e.addJson("cx","co",l),t.forEach((function(n){try{n.beforeTrack&&n.beforeTrack(e)}catch(e){j.error("Plugin beforeTrack",e)}})),"function"==typeof r&&r(e);var f=e.build();return t.forEach((function(e){try{e.afterTrack&&e.afterTrack(f)}catch(e){j.error("Plugin afterTrack",e)}})),f},addPayloadPair:u,getBase64Encoding:function(){return a},setBase64Encoding:function(e){a=e},addPayloadDict:function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(c[n]=e[n])},resetPayloadPairs:function(e){c=O(e)?e:{}},setTrackerVersion:function(e){u("tv",e)},setTrackerNamespace:function(e){u("tna",e)},setAppId:function(e){u("aid",e)},setPlatform:function(e){u("p",e)},setUserId:function(e){u("uid",e)},setScreenResolution:function(e,n){u("res",e+"x"+n)},setViewport:function(e,n){u("vp",e+"x"+n)},setColorDepth:function(e){u("cd",e)},setTimezone:function(e){u("tz",e)},setLang:function(e){u("lang",e)},setIpAddress:function(e){u("ip",e)},setUseragent:function(e){u("ua",e)},addGlobalContexts:function(e){i.addGlobalContexts(e)},clearGlobalContexts:function(){i.clearGlobalContexts()},removeGlobalContexts:function(e){i.removeGlobalContexts(e)}};return s}(null==r||r,a,i),u=e(e({},c),{addPlugin:function(e){var n,t,r=e.plugin;a.push(r),null===(n=r.logger)||void 0===n||n.call(r,j),null===(t=r.activateCorePlugin)||void 0===t||t.call(r,u)}});return null==a||a.forEach((function(e){var n,t;null===(n=e.logger)||void 0===n||n.call(e,j),null===(t=e.activateCorePlugin)||void 0===t||t.call(e,u)})),u}function Y(e){var n=e.event,t=n.schema,r=n.data,o=C(),i={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:t,data:r}};return o.add("e","ue"),o.addJson("ue_px","ue_pr",i),o}function Q(e,n){void 0===n&&(n={});var t={};for(var r in e)(n[r]||null!==e[r]&&void 0!==e[r])&&(t[r]=e[r]);return t}var Z,K,$={exports:{}},ee={exports:{}};Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",K={rotl:function(e,n){return e<<n|e>>>32-n},rotr:function(e,n){return e<<32-n|e>>>n},endian:function(e){if(e.constructor==Number)return 16711935&K.rotl(e,8)|4278255360&K.rotl(e,24);for(var n=0;n<e.length;n++)e[n]=K.endian(e[n]);return e},randomBytes:function(e){for(var n=[];e>0;e--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(e){for(var n=[],t=0,r=0;t<e.length;t++,r+=8)n[r>>>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<e.length;t++)n.push((e[t]>>>4).toString(16)),n.push((15&e[t]).toString(16));return n.join("")},hexToBytes:function(e){for(var n=[],t=0;t<e.length;t+=2)n.push(parseInt(e.substr(t,2),16));return n},bytesToBase64:function(e){for(var n=[],t=0;t<e.length;t+=3)for(var r=e[t]<<16|e[t+1]<<8|e[t+2],o=0;o<4;o++)8*t+6*o<=8*e.length?n.push(Z.charAt(r>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],t=0,r=0;t<e.length;r=++t%4)0!=r&&n.push((Z.indexOf(e.charAt(t-1))&Math.pow(2,-2*r+8)-1)<<2*r|Z.indexOf(e.charAt(t))>>>6-2*r);return n}},ee.exports=K;var ne={utf8:{stringToBytes:function(e){return ne.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ne.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],t=0;t<e.length;t++)n.push(255&e.charCodeAt(t));return n},bytesToString:function(e){for(var n=[],t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return n.join("")}}},te=ne;function re(e,n,t){void 0===t&&(t=63072e3);try{var r=window.localStorage,o=Date.now()+1e3*t;return r.setItem("".concat(e,".expires"),o.toString()),r.setItem(e,n),!0}catch(e){return!1}}function oe(e){try{var n=window.localStorage;return n.removeItem(e),n.removeItem(e+".expires"),!0}catch(e){return!1}}function ie(e){try{return window.sessionStorage.getItem(e)}catch(e){return}}!function(){var e=ee.exports,n=te.utf8,t=te.bin,r=function(r,o){var i=e.wordsToBytes(function(t){t.constructor==String?t=n.stringToBytes(t):"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());var r=e.bytesToWords(t),o=8*t.length,i=[],a=1732584193,c=-271733879,u=-1732584194,s=271733878,l=-1009589776;r[o>>5]|=128<<24-o%32,r[15+(o+64>>>9<<4)]=o;for(var f=0;f<r.length;f+=16){for(var d=a,v=c,g=u,p=s,m=l,h=0;h<80;h++){if(h<16)i[h]=r[f+h];else{var y=i[h-3]^i[h-8]^i[h-14]^i[h-16];i[h]=y<<1|y>>>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]}(r));return o&&o.asBytes?i:o&&o.asString?t.bytesToString(i):e.bytesToHex(i)};r._blocksize=16,r._digestsize=20,$.exports=r}();var ae={sessionId:!0,sourceId:!0,sourcePlatform:!1,userId:!1,reason:!1};function ce(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"")}function ue(e){return!(!e||"string"!=typeof e.valueOf())}function se(e){return Number.isInteger&&Number.isInteger(e)||"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function le(e){return!(!e||"function"!=typeof e)}function fe(e){if(!ue(e)){e=e.text||"";var n=document.getElementsByTagName("title");n&&null!=n[0]&&(e=n[0].text)}return e}function de(e){var n=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)").exec(e);return n?n[1]:e}function ve(e){var n=e.length;return"."===e.charAt(--n)&&(e=e.slice(0,n)),"*."===e.slice(0,2)&&(e=e.slice(1)),e}function ge(e){var n=window,t=me("referrer",n.location.href)||me("referer",n.location.href);if(t)return t;if(e)return e;try{if(n.top)return n.top.document.referrer;if(n.parent)return n.parent.document.referrer}catch(e){}return document.referrer}function pe(e,n,t,r){return e.addEventListener?(e.addEventListener(n,t,r),!0):e.attachEvent?e.attachEvent("on"+n,t):void(e["on"+n]=t)}function me(e,n){var t=new RegExp("^[^#]*[?&]"+e+"=([^&#]*)").exec(n);return t?decodeURIComponent(t[1].replace(/\+/g," ")):null}function he(e,n,t,r){we(e,"",-1,"/",n,t,r)}function ye(e){for(var n=document.cookie.split("; "),t=[],r=0;r<n.length;r++)n[r].substring(0,e.length)===e&&t.push(n[r]);return t}function we(e,n,t,r,o,i,a){return arguments.length>1?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 be(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<t.length;r++)n[t[r]]=!0}return n}(e);return function(e,n){if(e.hasOwnProperty("filter")&&e.filter)return e.filter;return n}(e,(function(e){return function(e,n){for(var t=ke(e),r=0,o=t;r<o.length;r++){if(n[o[r]])return!0}return!1}(e,t)===n}))}function ke(e){return e.className.match(/\S+/g)||[]}function Se(){var e="modernizr";if(!function(){try{return!!window.localStorage}catch(e){return!0}}())return!1;try{var n=window.localStorage;return n.setItem(e,e),n.removeItem(e),!0}catch(e){return!1}}var Te="iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",xe="iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/2-0-0",Ee="iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",Ce="iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4";function Ae(e,n,t,r,o,i,a,c,u,s,l,f,d,v,g,p,m,h,y,w){void 0===h&&(h=!0);var b,k,S=!1,T=[],x=!1,E=!0===(r="string"==typeof r?r.toLowerCase():r)||"beacon"===r||"true"===r,C=Boolean(E&&window.navigator&&"function"==typeof window.navigator.sendBeacon&&!(function(e,n){var t=n.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/");return!(!t||!t.length)&&parseInt(t[0])<=e}(13,k=window.navigator.userAgent)||function(e,n,t){var r=t.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/");return!(!r||!r.length)&&(parseInt(r[0])<=e||parseInt(r[0])===e&&parseInt(r[1])<=n)}(10,15,k)&&function(e){return e.match("Version/.* Safari/")&&!function(e){return e.match("Chrom(e|ium)")}(e)}(k)))&&E,A="get"===r,I=Boolean(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),O=!A&&I&&("post"===r||E),P=O?o:"/i",L="snowplowOutQueue_".concat(e,"_").concat(O?"post2":"get");if(E&&(d={}),i=t&&Se()&&O&&i||1,t)try{var D=window.localStorage.getItem(L);T=D?JSON.parse(D):[]}catch(e){}function U(e){var n=Object.keys(e).map((function(n){return[n,e[n]]})).reduce((function(e,n){var t=n[0],r=n[1];return e[t]=r.toString(),e}),{});return{evt:n,bytes:N(JSON.stringify(n))}}function N(e){for(var n=0,t=0;t<e.length;t++){var r=e.charCodeAt(t);r<=127?n+=1:r<=2047?n+=2:r>=55296&&r<=57343?(n+=4,t++):n+=r<65535?3:4}return n}Array.isArray(T)||(T=[]),n.outQueues.push(T),I&&i>1&&n.bufferFlushers.push((function(e){S||M(e)}));var R=function(e){return"object"==typeof e[0]&&"evt"in e[0]};function B(e,n){var t=H(n,!0,!1),r=J([e.evt]);t.onreadystatechange=function(){4===t.readyState&&(z(t.status)?null==y||y(r):null==w||w({status:t.status,message:t.statusText,events:r,willRetry:!1}))},t.send(F(r))}function V(e){for(var n=0;n<e;n++)T.shift();t&&re(L,JSON.stringify(T.slice(0,s)))}function _(e,n,t){e.onreadystatechange=function(){if(4===e.readyState)if(clearTimeout(r),z(e.status))V(n),null==y||y(t),M();else{var o=function(e){if(z(e))return!1;if(!h)return!1;if(g.includes(e))return!0;return!p.includes(e)}(e.status);o||(j.error("Status ".concat(e.status,", will not retry.")),V(n)),null==w||w({status:e.status,message:e.statusText,events:t,willRetry:o}),S=!1}};var r=setTimeout((function(){e.abort(),h||V(n),null==w||w({status:0,message:"timeout",events:t,willRetry:h}),S=!1}),l)}function M(e){for(void 0===e&&(e=!1);T.length&&"string"!=typeof T[0]&&"object"!=typeof T[0];)T.shift();if(T.length){if(!ue(b))throw"No collector configured";if(S=!0,m&&!x){var n=H(m,!1,e);return x=!0,n.timeout=l,n.onreadystatechange=function(){4===n.readyState&&M()},void n.send()}if(I){var r=void 0,o=void 0,i=void 0;if(R(T)?(o=H(r=b,!0,e),i=function(e){for(var n=0,t=0;n<e.length&&!((t+=e[n].bytes)>=a);)n+=1;return n}(T)):(o=H(r=q(T[0]),!1,e),i=1),R(T)){var c=T.slice(0,i);if(c.length>0){var u=!1,d=c.map((function(e){return e.evt}));if(C){var v=new Blob([F(J(d))],{type:"application/json"});try{u=window.navigator.sendBeacon(r,v)}catch(e){u=!1}}if(!0===u)V(i),null==y||y(c),M();else{var g=J(d);_(o,i,g),o.send(F(g))}}}else _(o,i,[r]),o.send()}else if(f||R(T))S=!1;else{var p=new Image(1,1),h=!0;p.onload=function(){h&&(h=!1,T.shift(),t&&re(L,JSON.stringify(T.slice(0,s))),M())},p.onerror=function(){h&&(h=!1,S=!1)},p.src=q(T[0]),setTimeout((function(){h&&S&&(h=!1,M())}),l)}}else S=!1}function z(e){return e>=200&&e<300}function H(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=v,f&&r.setRequestHeader("SP-Anonymous","*"),d)Object.prototype.hasOwnProperty.call(d,o)&&r.setRequestHeader(o,d[o]);return r}function F(e){return JSON.stringify({schema:Ce,data:e})}function J(e){for(var n=(new Date).getTime().toString(),t=0;t<e.length;t++)e[t].stm=n;return e}function q(e){return u?b+e.replace("?","?stm="+(new Date).getTime()+"&"):b+e}return{enqueueRequest:function(e,n){b=n+P;var r=function(e,n){return j.warn("Event ("+e+"B) too big, max is "+n)};if(O){if((f=U(e)).bytes>=a)return r(f.bytes,a),void B(f,b);T.push(f)}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=N(q(u));if(l>=c){var f;if(r(l,c),I)B(f=U(e),n+o);return}}T.push(u)}var d=!1;t&&(d=re(L,JSON.stringify(T.slice(0,s)))),S||d&&!(T.length>=i)||M()},executeQueue:function(){S||M()},setUseLocalStorage:function(e){t=e},setAnonymousTracking:function(e){f=e},setCollectorUrl:function(e){b=e+P},setBufferSize:function(e){i=e}}}function Ie(e,n,t){var r,o,i,a;return"translate.googleusercontent.com"===e?(""===t&&(t=n),e=de(n=null!==(o=n,i="u",r=(a=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+))([?][^#]+)").exec(o))&&(null==a?void 0:a.length)>1?me(i,a[1]):null)&&void 0!==r?r:"")):"cc.bingj.com"!==e&&"webcache.googleusercontent.com"!==e||(e=de(n=document.links[0].href)),[e,n,t]}var Oe=0,Pe=1,Le=2,je=3,De=4,Ue=5,Ne=6,Re=7,Be=8,Ve=9,_e=10;function Me(e,n){void 0===n&&(n={memorizedVisitCount:1});var t=n.memorizedVisitCount;qe(e)?(e[Re]=e[Ne],e[Ue]=e[De],e[je]++):e[je]=t;var r=S.v4();return e[Ne]=r,e[_e]=0,e[Be]="",e[Ve]=void 0,r}function ze(e){e[De]=Math.round((new Date).getTime()/1e3)}function He(e,n,t){var r=e[Ve];return{userId:t?"00000000-0000-0000-0000-000000000000":e[Pe],sessionId:e[Ne],eventIndex:e[_e],sessionIndex:e[je],previousSessionId:t?null:e[Re]||null,storageMechanism:"localStorage"==n?"LOCAL_STORAGE":"COOKIE_1",firstEventId:e[Be]||null,firstEventTimestamp:r?new Date(r).toISOString():null}}function Fe(e){return e[Ne]}function Je(e){return e[je]}function qe(e){return"0"===e[Oe]}var Ge,Xe=!1;var We="x";function Ye(){return"ResizeObserver"in window?(Ge||(Ge=Qe()),function(){if(!Xe&&document&&document.body&&document.documentElement){Xe=!0;var e=new ResizeObserver((function(e){for(var n=0,t=e;n<t.length;n++){var r=t[n];r.target!==document.body&&r.target!==document.documentElement||(Ge=Qe())}}));e.observe(document.body),e.observe(document.documentElement)}}(),Ge):Qe()}function Qe(){return{viewport:Ke(Ze()),documentSize:Ke((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+We+o)),resolution:Ke(screen.width+We+screen.height),colorDepth:screen.colorDepth,devicePixelRatio:window.devicePixelRatio,cookiesEnabled:window.navigator.cookieEnabled,online:window.navigator.onLine,browserLanguage:window.navigator.language||window.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 Ze(){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+We+n:null}function Ke(e){return e&&e.split(We).map((function(e){return Math.floor(Number(e))})).join(We)}function $e(t,r,o,i,a,c){void 0===c&&(c={});var u=[],s=function(t,r,o,i,a,c){var s,l,f,d,v,g,p,m,h,y,w,b,k,T,x,E,A,I,O,P,L,D,U,N,R,B,V,_,M;c.eventMethod=null!==(s=c.eventMethod)&&void 0!==s?s:"post";var z,H,F=function(e){var n;return null!==(n=e.stateStorageStrategy)&&void 0!==n?n:"cookieAndLocalStorage"},J=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)},q=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)},G=function(e){return!!e.anonymousTracking},X=null!==(f=null===(l=null==c?void 0:c.contexts)||void 0===l?void 0:l.browser)&&void 0!==f&&f,Y=null===(v=null===(d=null==c?void 0:c.contexts)||void 0===d?void 0:d.webPage)||void 0===v||v;u.push((z=function(e){return Tn?null:e},H=function(e){return kn?e:z(e)},{beforeTrack:function(e){var n=Yn("ses"),t=ut(),r=0===function(e){return e[_e]}(t);if(Qe=!!te&&!!we(te),yn||Qe)it();else{qe(t)?(Xe=n||"none"==xn?Fe(t):Me(t),Cn=Je(t)):(new Date).getTime()-En>1e3*bn&&(Cn++,Xe=Me(t,{memorizedVisitCount:Cn})),ze(t),function(e,n){if(0===e[_e]){var t=n.build();e[Be]=t.eid;var r=t.dtm||t.ttm;e[Ve]=r?parseInt(r):void 0}}(t,e),function(e){e[_e]+=1}(t);var o=Ye(),i=o.viewport,a=o.documentSize;e.add("vp",i),e.add("ds",a),e.add("vid",H(Cn)),e.add("sid",H(Xe)),e.add("duid",z(function(e){return e[Pe]}(t))),e.add("uid",z(We)),Fn(),e.add("refr",Gn(Q||rn)),e.add("url",Gn(Z||tn));var c=He(t,xn,Tn);if(!jn||Tn&&!kn||function(e,n){var t={schema:Ee,data:n};e.addContextEntity(t)}(e,c),"none"!=xn){rt(t);var u=tt();n&&!r||!u||!Dn||Un||(Dn(c),Un=!1)}En=(new Date).getTime()}}})),Y&&u.push({contexts:function(){return[{schema:Te,data:{id:ft()}}]}}),X&&u.push({contexts:function(){return[{schema:xe,data:e(e({},Ye()),{tabId:dt()})}]}}),u.push.apply(u,null!==(g=c.plugins)&&void 0!==g?g:[]);var Q,Z,K,ee,ne,te,ue,le,be,ke,Se,Ce,Ge,Xe,We,Qe,Ze,Ke=W({base64:c.encodeBase64,corePlugins:u,callback:function(e){yn||Qe||An.enqueueRequest(e.build(),an)}}),$e=document.characterSet||document.charset,en=Ie(window.location.hostname,window.location.href,ge()),nn=ve(en[0]),tn=en[1],rn=en[2],on=null!==(p=c.platform)&&void 0!==p?p:"web",an=st(i),cn=null!==(m=c.postPath)&&void 0!==m?m:"/com.snowplowanalytics.snowplow/tp2",un=null!==(h=c.appId)&&void 0!==h?h:"",sn=document.title,ln=!1,fn=null===(y=c.resetActivityTrackingOnPageView)||void 0===y||y,dn=null!==(w=c.cookieName)&&void 0!==w?w:"_sp_",vn=null!==(b=c.cookieDomain)&&void 0!==b?b:void 0,gn="/",pn=null!==(k=c.cookieSameSite)&&void 0!==k?k:"None",mn=null===(T=c.cookieSecure)||void 0===T||T,hn=window.navigator.doNotTrack||window.navigator.msDoNotTrack||window.doNotTrack,yn=void 0!==c.respectDoNotTrack&&(c.respectDoNotTrack&&("yes"===hn||"1"===hn)),wn=null!==(x=c.cookieLifetime)&&void 0!==x?x:63072e3,bn=null!==(E=c.sessionCookieTimeout)&&void 0!==E?E:1800,kn=J(c),Sn=q(c),Tn=G(c),xn=F(c),En=(new Date).getTime(),Cn=1,An=Ae(t,a,"localStorage"==xn||"cookieAndLocalStorage"==xn,c.eventMethod,cn,null!==(A=c.bufferSize)&&void 0!==A?A:1,null!==(I=c.maxPostBytes)&&void 0!==I?I:4e4,null!==(O=c.maxGetBytes)&&void 0!==O?O:0,null===(P=c.useStm)||void 0===P||P,null!==(L=c.maxLocalStorageQueueSize)&&void 0!==L?L:1e3,null!==(D=c.connectionTimeout)&&void 0!==D?D:5e3,Sn,null!==(U=c.customHeaders)&&void 0!==U?U:{},null===(N=c.withCredentials)||void 0===N||N,null!==(R=c.retryStatusCodes)&&void 0!==R?R:[],(null!==(B=c.dontRetryStatusCodes)&&void 0!==B?B:[]).concat([400,401,403,410,422]),c.idService,c.retryFailedRequests,c.onRequestSuccess,c.onRequestFailure),In=!1,On=null!==(V=c.preservePageViewIdForUrl)&&void 0!==V&&V,Pn=void 0,Ln={enabled:!1,installed:!1,configurations:{}},jn=null!==(M=null===(_=c.contexts)||void 0===_?void 0:_.session)&&void 0!==M&&M,Dn=c.onSessionUpdateCallback,Un=!1,Nn="boolean"==typeof(Ze=c.useExtendedCrossDomainLinker||!1)?{useExtendedCrossDomainLinker:Ze}:{useExtendedCrossDomainLinker:!0,collectCrossDomainAttributes:Ze},Rn=Nn.useExtendedCrossDomainLinker,Bn=Nn.collectCrossDomainAttributes;c.hasOwnProperty("discoverRootDomain")&&c.discoverRootDomain&&(vn=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(we(o,i,0,"/",u,e,n),we(o)===i){he(o,u,e,n);for(var s=ye(r),l=0;l<s.length;l++)he(s[l],u,e,n);return u}}return t}(pn,mn));var Vn=Ye(),_n=Vn.browserLanguage,Mn=Vn.resolution,zn=Vn.colorDepth,Hn=Vn.cookiesEnabled;function Fn(){(en=Ie(window.location.hostname,window.location.href,ge()))[1]!==tn&&(rn=ge(tn)),nn=ve(en[0]),tn=en[1]}function Jn(n){return function(t){var r=t.currentTarget,o=function(n,t,r){var o,i=(new Date).getTime(),a=e(e({},ae),t),c=r.domainUserId,u=r.userId,s=r.sessionId,l=r.sourceId,f=r.sourcePlatform,d=r.event,v=d.currentTarget,g="function"==typeof a.reason?a.reason(d):null===(o=null==v?void 0:v.textContent)||void 0===o?void 0:o.trim();return n?[c,i,a.sessionId&&s,a.userId&&ce(u||""),a.sourceId&&ce(l||""),a.sourcePlatform&&f,a.reason&&ce(g||"")].map((function(e){return e||""})).join(".").replace(/([.]*$)/,""):r.domainUserId+"."+i}(n,Bn,{domainUserId:Ge,userId:We||void 0,sessionId:Xe,sourceId:un,sourcePlatform:on,event:t});(null==r?void 0:r.href)&&(r.href=function(e,n,t){var r=n+"="+t,o=e.split("#"),i=o[0].split("?"),a=i.shift(),c=i.join("?");if(c){for(var u=!0,s=c.split("&"),l=0;l<s.length;l++)if(s[l].substr(0,n.length+1)===n+"="){u=!1,s[l]=r,c=s.join("&");break}u&&(c=r+"&"+c)}else c=r;return o[0]=a+"?"+c,o.join("#")}(r.href,"_sp",o))}}function qn(e){for(var n=Jn(Rn),t=0;t<document.links.length;t++){var r=document.links[t];!r.spDecorationEnabled&&e(r)&&(r.addEventListener("click",n,!0),r.addEventListener("mousedown",n,!0),r.spDecorationEnabled=!0)}}function Gn(e){var n;return ee&&(n=new RegExp("#.*"),e=e.replace(n,"")),ne&&(n=new RegExp("[{}]","g"),e=e.replace(n,"")),e}function Xn(e){var n=new RegExp("^([a-z]+):").exec(e);return n?n[1]:null}function Wn(e){return dn+e+"."+Ce}function Yn(e){var n=Wn(e);return"localStorage"==xn?
/*!
* Core functionality for Snowplow Browser trackers v3.12.0 (http://bit.ly/sp-js)
* Core functionality for Snowplow Browser trackers v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/
function(n){try{var e=window.localStorage,t=e.getItem(n+".expires");return null===t||+t>Date.now()?e.getItem(n):(e.removeItem(n),void e.removeItem(n+".expires"))}catch(n){return}}(e):"cookie"==ye||"cookieAndLocalStorage"==ye?yn(e):void 0}function Ve(){je(),bn=$.exports((ce||Zn)+(ue||"/")).slice(0,4)}function Me(){var n=new Date;en=n.getTime()}function He(){!function(){var n=ze(),e=n[0];e<tn?tn=e:e>cn&&(cn=e);var t=n[1];t<sn?sn=t:t>wn&&(wn=t)}(),Me()}function ze(){var n=document.documentElement;return n?[n.scrollLeft||window.pageXOffset,n.scrollTop||window.pageYOffset]:[0,0]}function Je(){var n=ze(),e=n[0];tn=e,cn=e;var t=n[1];sn=t,wn=t}function Fe(n){return Math.round(n)}function Ge(){Xe(_e("ses"),"*",ve)}function qe(n){var e=_e("id"),t=function(n){return n.shift(),n.join(".")}(n);Xe(e,t,ge)}function Xe(n,e,t){he&&!pe||("localStorage"==ye?rn(n,e,t):"cookie"!=ye&&"cookieAndLocalStorage"!=ye||yn(n,e,t,ue,ce,se,le))}function We(n){var e=_e("id"),t=_e("ses");on(e),on(t),mn(e,ce,se,le),mn(t,ce,se,le),(null==n?void 0:n.preserveSession)||(Cn=S.v4(),be=1),(null==n?void 0:n.preserveUser)||(kn=he?"":S.v4(),Gn=null)}function Ye(n){n&&n.stateStorageStrategy&&(a.stateStorageStrategy=n.stateStorageStrategy,ye=H(a)),he=F(a),pe=z(a),me=J(a),ke.setUseLocalStorage("localStorage"==ye||"cookieAndLocalStorage"==ye),ke.setAnonymousTracking(me)}function Qe(){if(!he||pe){var n="none"!=ye&&!!Re("ses"),e=Ze();kn=function(n,e){var t;return n[Pn]?t=n[Pn]:e?(t="",n[Pn]=t):(t=S.v4(),n[Pn]=t),t}(e,he),Cn=n?zn(e):Vn(e,{configStateStorageStrategy:ye,configAnonymousTracking:he,onSessionUpdateCallback:Ee}),be=Jn(e),"none"!=ye&&(Ge(),Mn(e),qe(e))}}function Ze(){return"none"==ye?["1","",0,0,0,void 0,"","","",void 0,0]:function(n,e,t,r){var o,i=new Date,a=Math.round(i.getTime()/1e3);n?(o=n.split(".")).unshift("0"):o=["1",e,a,r,a,"",t],o[Nn]&&"undefined"!==o[Nn]||(o[Nn]=S.v4()),o[Un]&&"undefined"!==o[Un]||(o[Un]=""),o[Bn]&&"undefined"!==o[Bn]||(o[Bn]=""),o[_n]&&"undefined"!==o[_n]||(o[_n]=""),o[Rn]&&"undefined"!==o[Rn]||(o[Rn]=0);var c=function(n,e){var t=parseInt(n);return isNaN(t)?e:t},u=function(n){return n?c(n,void 0):void 0};return[o[On],o[Pn],c(o[In],a),c(o[Ln],r),c(o[jn],a),u(o[Dn]),o[Nn],o[Un],o[Bn],u(o[_n]),c(o[Rn],0)]}(Re("id")||void 0,kn,Cn,be)}function Ke(n){return 0===n.indexOf("http")?n:("https:"===document.location.protocol?"https":"http")+"://"+n}function $e(){Se&&null!=i.pageViewId||(i.pageViewId=S.v4())}function nt(){return null==i.pageViewId&&(i.pageViewId=S.v4()),i.pageViewId}function et(){if("none"===ye||he||!q)return null;var n="_sp_tab_id",e=an(n);return e||(!function(n,e){try{return window.sessionStorage.setItem(n,e),!0}catch(n){return!1}}(n,S.v4()),e=an(n)),e||null}function tt(n,e){return(n||[]).concat(e?e():[])}function rt(n){var e=n.title,t=n.context,r=n.timestamp,o=n.contextCallback;je(),Te&&$e(),Te=!0,oe=document.title;var i=ln((Q=e)||oe);Wn.track(function(n){var e=n.pageUrl,t=n.pageTitle,r=n.referrer,o=E();return o.add("e","pv"),o.add("url",e),o.add("page",t),o.add("refr",r),o}({pageUrl:Ue(Y||Kn),pageTitle:i,referrer:Ue(X||$n)}),tt(t,o),r);var a=new Date,c=!1;if(xe.enabled&&!xe.installed){xe.installed=!0,c=!0;var u={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var n=!1,e=Object.defineProperty({},"passive",{get:function(){n=!0},set:function(){}}),t=function(){};window.addEventListener("testPassiveEventSupport",t,e),window.removeEventListener("testPassiveEventSupport",t,e),u.hasSupport=n}}};u.update();var s="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(u,"hasSupport")?vn(document,s,Me,{passive:!0}):vn(document,s,Me),Je();var l=function(n,e){return void 0===e&&(e=Me),function(n){return vn(document,n,e)}};["click","mouseup","mousedown","mousemove","keypress","keydown","keyup","touchend","touchstart"].forEach(l(document)),["resize","focus","blur"].forEach(l(window)),l(window,He)("scroll")}if(xe.enabled&&(ie||c)){en=a.getTime();var f=void 0;for(f in xe.configurations){var d=xe.configurations[f];d&&(window.clearInterval(d.activityInterval),ot(d,t,o))}}}function ot(n,e,t){var r=function(n,e){je(),n({context:e,pageViewId:nt(),minXOffset:tn,minYOffset:sn,maxXOffset:cn,maxYOffset:wn}),Je()},o=function(){var o=new Date;en+n.configHeartBeatTimer>o.getTime()&&r(n.callback,tt(e,t))};0!=n.configMinimumVisitLength?n.activityInterval=window.setTimeout((function(){var i=new Date;en+n.configMinimumVisitLength>i.getTime()&&r(n.callback,tt(e,t)),n.activityInterval=window.setInterval(o,n.configHeartBeatTimer)}),n.configMinimumVisitLength):n.activityInterval=window.setInterval(o,n.configHeartBeatTimer)}function it(n){var e=n.minimumVisitLength,t=n.heartbeatDelay,r=n.callback;if(un(e)&&un(t))return{configMinimumVisitLength:1e3*e,configHeartBeatTimer:1e3*t,callback:r};j.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function at(n){var e=n.context,t=n.minXOffset,r=n.minYOffset,o=n.maxXOffset,i=n.maxYOffset,a=document.title;a!==oe&&(oe=a,Q=void 0),Wn.track(function(n){var e=n.pageUrl,t=n.pageTitle,r=n.referrer,o=n.minXOffset,i=n.maxXOffset,a=n.minYOffset,c=n.maxYOffset,u=E();return u.add("e","pp"),u.add("url",e),u.add("page",t),u.add("refr",r),o&&!isNaN(Number(o))&&u.add("pp_mix",o.toString()),i&&!isNaN(Number(i))&&u.add("pp_max",i.toString()),a&&!isNaN(Number(a))&&u.add("pp_miy",a.toString()),c&&!isNaN(Number(c))&&u.add("pp_may",c.toString()),u}({pageUrl:Ue(Y||Kn),pageTitle:ln(Q||oe),referrer:Ue(X||$n),minXOffset:Fe(t),maxXOffset:Fe(o),minYOffset:Fe(r),maxYOffset:Fe(i)}),e)}Wn.setTrackerVersion(r),Wn.setTrackerNamespace(t),Wn.setAppId(re),Wn.setPlatform(ne),Wn.addPayloadPair("cookie",Le?"1":"0"),Wn.addPayloadPair("cs",Yn),Wn.addPayloadPair("lang",Oe),Wn.addPayloadPair("res",Pe),Wn.addPayloadPair("cd",Ie),Ve(),Qe(),a.crossDomainLinker&&Ne(a.crossDomainLinker);var ct={getDomainSessionIndex:function(){return be},getPageViewId:nt,getTabId:et,newSession:function(){var n=Ze();Fn(n)?(Cn="none"!=ye?Vn(n,{configStateStorageStrategy:ye,configAnonymousTracking:he,onSessionUpdateCallback:Ee}):zn(n),be=Jn(n),Ge()):(be++,Cn=Vn(n,{configStateStorageStrategy:ye,configAnonymousTracking:he,memorizedVisitCount:be,onSessionUpdateCallback:Ee})),Mn(n),"none"!=ye&&(qe(n),Ge()),we=(new Date).getTime()},getCookieName:function(n){return _e(n)},getUserId:function(){return Gn},getDomainUserId:function(){return Ze()[1]},getDomainUserInfo:function(){return Ze()},setReferrerUrl:function(n){X=n},setCustomUrl:function(n){je(),Y=function(n,e){var t;return Be(e)?e:"/"===e.slice(0,1)?Be(n)+"://"+fn(n)+e:((t=(n=Ue(n)).indexOf("?"))>=0&&(n=n.slice(0,t)),(t=n.lastIndexOf("/"))!==n.length-1&&(n=n.slice(0,t+1)),n+e)}(Kn,n)},setDocumentTitle:function(n){oe=document.title,Q=n},discardHashTag:function(n){Z=n},discardBrace:function(n){K=n},setCookiePath:function(n){ue=n,Ve()},setVisitorCookieTimeout:function(n){ge=n},crossDomainLinker:function(n){Ne(n)},enableActivityTracking:function(e){xe.configurations.pagePing||(xe.enabled=!0,xe.configurations.pagePing=it(n(n({},e),{callback:at})))},enableActivityTrackingCallback:function(n){xe.configurations.callback||(xe.enabled=!0,xe.configurations.callback=it(n))},updatePageActivity:function(){Me()},setOptOutCookie:function(n){nn=n},setUserId:function(n){Gn=n},setUserIdFromLocation:function(n){je(),Gn=pn(n,Kn)},setUserIdFromReferrer:function(n){je(),Gn=pn(n,$n)},setUserIdFromCookie:function(n){Gn=yn(n)},setCollectorUrl:function(n){ee=Ke(n),ke.setCollectorUrl(ee)},setBufferSize:function(n){ke.setBufferSize(n)},flushBuffer:function(n){void 0===n&&(n={}),ke.executeQueue(),n.newBufferSize&&ke.setBufferSize(n.newBufferSize)},trackPageView:function(n){void 0===n&&(n={}),rt(n)},preservePageViewId:function(){Se=!0},disableAnonymousTracking:function(n){a.anonymousTracking=!1,Ye(n),Qe(),ke.executeQueue()},enableAnonymousTracking:function(n){var e;a.anonymousTracking=null===(e=n&&(null==n?void 0:n.options))||void 0===e||e,Ye(n),pe||$e()},clearUserData:We};return n(n({},ct),{id:e,namespace:t,core:Wn,sharedState:i})}(e,t,r,o,i,a),s=n(n({},u),{addPlugin:function(n){var e,t;s.core.addPlugin(n),null===(t=(e=n.plugin).activateBrowserPlugin)||void 0===t||t.call(e,s)}});return c.forEach((function(n){var e;null===(e=n.activateBrowserPlugin)||void 0===e||e.call(n,s)})),s}var Qn={};function Zn(n,e){try{(t=null!=n?n:Object.keys(Qn),Kn(t,Qn)).forEach(e)}catch(n){j.error("Function failed",n)}var t}function Kn(n,e){for(var t=[],r=0,o=n;r<o.length;r++){var i=o[r];e.hasOwnProperty(i)?t.push(e[i]):j.warn(i+" not configured")}return t}var $n=function(){this.outQueues=[],this.bufferFlushers=[],this.hasLoaded=!1,this.registeredOnLoadHandlers=[]};function ne(n,e){Zn(e,(function(e){e.enableActivityTracking(n)}))}var ee="undefined"!=typeof window?function(){var n=new $n,e=document,t=window;function r(){var e;if(!n.hasLoaded)for(n.hasLoaded=!0,e=0;e<n.registeredOnLoadHandlers.length;e++)n.registeredOnLoadHandlers[e]();return!0}return e.visibilityState&&vn(e,"visibilitychange",(function(){"hidden"==e.visibilityState&&n.bufferFlushers.forEach((function(n){n(!1)}))}),!1),vn(t,"beforeunload",(function(){n.bufferFlushers.forEach((function(n){n(!1)}))}),!1),"loading"===document.readyState?(e.addEventListener?e.addEventListener("DOMContentLoaded",(function n(){e.removeEventListener("DOMContentLoaded",n,!1),r()})):e.attachEvent&&e.attachEvent("onreadystatechange",(function n(){"complete"===e.readyState&&(e.detachEvent("onreadystatechange",n),r())})),vn(t,"load",r,!1)):r(),n}
function(e){try{var n=window.localStorage,t=n.getItem(e+".expires");return null===t||+t>Date.now()?n.getItem(e):(n.removeItem(e),void n.removeItem(e+".expires"))}catch(e){return}}(n):"cookie"==xn||"cookieAndLocalStorage"==xn?we(n):void 0}function Qn(){Fn(),Ce=$.exports((vn||nn)+(gn||"/")).slice(0,4)}function Zn(){var e=new Date;ue=e.getTime()}function Kn(){!function(){var e=$n(),n=e[0];n<le?le=n:n>be&&(be=n);var t=e[1];t<ke?ke=t:t>Se&&(Se=t)}(),Zn()}function $n(){var e=document.documentElement;return e?[e.scrollLeft||window.pageXOffset,e.scrollTop||window.pageYOffset]:[0,0]}function et(){var e=$n(),n=e[0];le=n,be=n;var t=e[1];ke=t,Se=t}function nt(e){return Math.round(e)}function tt(){return ot(Wn("ses"),"*",bn)}function rt(e){var t=Wn("id"),r=function(e,t){var r=n([],e,!0);return t&&(r[Pe]="",r[Re]=""),r.shift(),r.join(".")}(e,Tn);return ot(t,r,wn)}function ot(e,n,t){return!(Tn&&!kn)&&("localStorage"==xn?re(e,n,t):("cookie"==xn||"cookieAndLocalStorage"==xn)&&(we(e,n,t,gn,vn,pn,mn),-1!==document.cookie.indexOf("".concat(e,"="))))}function it(e){var n=Wn("id"),t=Wn("ses");oe(n),oe(t),he(n,vn,pn,mn),he(t,vn,pn,mn),(null==e?void 0:e.preserveSession)||(Xe=S.v4(),Cn=1),(null==e?void 0:e.preserveUser)||(Ge=Tn?"":S.v4(),We=null)}function at(e){e&&e.stateStorageStrategy&&(c.stateStorageStrategy=e.stateStorageStrategy,xn=F(c)),Tn=G(c),kn=J(c),Sn=q(c),An.setUseLocalStorage("localStorage"==xn||"cookieAndLocalStorage"==xn),An.setAnonymousTracking(Sn)}function ct(){if(!Tn||kn){var e="none"!=xn&&!!Yn("ses"),n=ut();Ge=function(e,n){var t;return e[Pe]?t=e[Pe]:n?(t="",e[Pe]=t):(t=S.v4(),e[Pe]=t),t}(n,Tn),Xe=e?Fe(n):Me(n),Cn=Je(n),"none"!=xn&&(tt(),ze(n),rt(n))}}function ut(){return"none"==xn?["1","",0,0,0,void 0,"","","",void 0,0]:function(e,n,t,r){var o,i=new Date,a=Math.round(i.getTime()/1e3);e?(o=e.split(".")).unshift("0"):o=["1",n,a,r,a,"",t],o[Ne]&&"undefined"!==o[Ne]||(o[Ne]=S.v4()),o[Re]&&"undefined"!==o[Re]||(o[Re]=""),o[Be]&&"undefined"!==o[Be]||(o[Be]=""),o[Ve]&&"undefined"!==o[Ve]||(o[Ve]=""),o[_e]&&"undefined"!==o[_e]||(o[_e]=0);var c=function(e,n){var t=parseInt(e);return isNaN(t)?n:t},u=function(e){return e?c(e,void 0):void 0};return[o[Oe],o[Pe],c(o[Le],a),c(o[je],r),c(o[De],a),u(o[Ue]),o[Ne],o[Re],o[Be],u(o[Ve]),c(o[_e],0)]}(Yn("id")||void 0,Ge,Xe,Cn)}function st(e){return 0===e.indexOf("http")?e:("https:"===document.location.protocol?"https":"http")+"://"+e}function lt(){In&&null!=a.pageViewId||(a.pageViewId=S.v4(),a.pageViewUrl=Z||tn)}function ft(){return function(){if(null==a.pageViewId)return!0;if(In||!On)return!1;if(void 0===a.pageViewUrl)return!0;var e=Z||tn;if(!0===On||"full"==On||!("URL"in window))return a.pageViewUrl!=e;var n=new URL(e),t=new URL(a.pageViewUrl);if("pathname"==On)return n.pathname!=t.pathname;if("pathnameAndSearch"==On)return n.pathname!=t.pathname||n.search!=t.search;return!1}()&&(a.pageViewId=S.v4(),a.pageViewUrl=Z||tn),a.pageViewId}function dt(){if("none"===xn||Tn||!Y)return null;var e="_sp_tab_id",n=ie(e);return n||(!function(e,n){try{return window.sessionStorage.setItem(e,n),!0}catch(e){return!1}}(e,S.v4()),n=ie(e)),n||null}function vt(e,n){return(e||[]).concat(n?n():[])}function gt(e){var n=e.title,t=e.context,r=e.timestamp,o=e.contextCallback;Fn(),Pn&&Pn==ft()&&lt(),Pn=ft(),sn=document.title,n?(K=n,ln=!0):ln&&(K=null);var i=fe(K||sn);Ke.track(function(e){var n=e.pageUrl,t=e.pageTitle,r=e.referrer,o=C();return o.add("e","pv"),o.add("url",n),o.add("page",t),o.add("refr",r),o}({pageUrl:Gn(Z||tn),pageTitle:i,referrer:Gn(Q||rn)}),vt(t,o),r);var a=new Date,c=!1;if(Ln.enabled&&!Ln.installed){Ln.installed=!0,c=!0;var u={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),u.hasSupport=e}}};u.update();var s="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(u,"hasSupport")?pe(document,s,Zn,{passive:!0}):pe(document,s,Zn),et();var l=function(e,n){return void 0===n&&(n=Zn),function(e){return pe(document,e,n)}};["click","mouseup","mousedown","mousemove","keypress","keydown","keyup","touchend","touchstart"].forEach(l(document)),["resize","focus","blur"].forEach(l(window)),l(window,Kn)("scroll")}if(Ln.enabled&&(fn||c)){ue=a.getTime();var f=void 0;for(f in Ln.configurations){var d=Ln.configurations[f];d&&(window.clearInterval(d.activityInterval),pt(d,t,o))}}}function pt(e,n,t){var r=function(e,n){Fn(),e({context:n,pageViewId:ft(),minXOffset:le,minYOffset:ke,maxXOffset:be,maxYOffset:Se}),et()},o=function(){var o=new Date;ue+e.configHeartBeatTimer>o.getTime()&&r(e.callback,vt(n,t))};0===e.configMinimumVisitLength?e.activityInterval=window.setInterval(o,e.configHeartBeatTimer):e.activityInterval=window.setTimeout((function(){var i=new Date;ue+e.configMinimumVisitLength>i.getTime()&&r(e.callback,vt(n,t)),e.activityInterval=window.setInterval(o,e.configHeartBeatTimer)}),e.configMinimumVisitLength)}function mt(e){var n=e.minimumVisitLength,t=e.heartbeatDelay,r=e.callback;if(se(n)&&se(t))return{configMinimumVisitLength:1e3*n,configHeartBeatTimer:1e3*t,callback:r};j.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function ht(e){var n=e.context,t=e.minXOffset,r=e.minYOffset,o=e.maxXOffset,i=e.maxYOffset,a=document.title;a!==sn&&(sn=a,K=void 0),Ke.track(function(e){var n=e.pageUrl,t=e.pageTitle,r=e.referrer,o=e.minXOffset,i=e.maxXOffset,a=e.minYOffset,c=e.maxYOffset,u=C();return u.add("e","pp"),u.add("url",n),u.add("page",t),u.add("refr",r),o&&!isNaN(Number(o))&&u.add("pp_mix",o.toString()),i&&!isNaN(Number(i))&&u.add("pp_max",i.toString()),a&&!isNaN(Number(a))&&u.add("pp_miy",a.toString()),c&&!isNaN(Number(c))&&u.add("pp_may",c.toString()),u}({pageUrl:Gn(Z||tn),pageTitle:fe(K||sn),referrer:Gn(Q||rn),minXOffset:nt(t),maxXOffset:nt(o),minYOffset:nt(r),maxYOffset:nt(i)}),n)}function yt(e){var n=Ln.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),Ln.configurations[e]=void 0}Ke.setTrackerVersion(o),Ke.setTrackerNamespace(r),Ke.setAppId(un),Ke.setPlatform(on),Ke.addPayloadPair("cookie",Hn?"1":"0"),Ke.addPayloadPair("cs",$e),Ke.addPayloadPair("lang",_n),Ke.addPayloadPair("res",Mn),Ke.addPayloadPair("cd",zn),Qn(),ct(),c.crossDomainLinker&&qn(c.crossDomainLinker);var wt={getDomainSessionIndex:function(){return Cn},getPageViewId:ft,getTabId:dt,newSession:function(){var e=ut();if(qe(e)?(Xe="none"!=xn?Me(e):Fe(e),Cn=Je(e)):(Cn++,Xe=Me(e,{memorizedVisitCount:Cn})),ze(e),"none"!=xn){var n=He(e,xn,Tn);rt(e),tt()&&Dn&&(Un=!0,Dn(n))}En=(new Date).getTime()},getCookieName:function(e){return Wn(e)},getUserId:function(){return We},getDomainUserId:function(){return ut()[1]},getDomainUserInfo:function(){return ut()},setReferrerUrl:function(e){Q=e},setCustomUrl:function(e){Fn(),Z=function(e,n){var t;return Xn(n)?n:"/"===n.slice(0,1)?Xn(e)+"://"+de(e)+n:((t=(e=Gn(e)).indexOf("?"))>=0&&(e=e.slice(0,t)),(t=e.lastIndexOf("/"))!==e.length-1&&(e=e.slice(0,t+1)),e+n)}(tn,e)},setDocumentTitle:function(e){sn=document.title,K=e,ln=!1},discardHashTag:function(e){ee=e},discardBrace:function(e){ne=e},setCookiePath:function(e){gn=e,Qn()},setVisitorCookieTimeout:function(e){wn=e},crossDomainLinker:function(e){qn(e)},enableActivityTracking:function(n){Ln.configurations.pagePing||(Ln.enabled=!0,Ln.configurations.pagePing=mt(e(e({},n),{callback:ht})))},enableActivityTrackingCallback:function(e){Ln.configurations.callback||(Ln.enabled=!0,Ln.configurations.callback=mt(e))},disableActivityTracking:function(){yt("pagePing")},disableActivityTrackingCallback:function(){yt("callback")},updatePageActivity:function(){Zn()},setOptOutCookie:function(e){te=e},setUserId:function(e){We=e},setUserIdFromLocation:function(e){Fn(),We=me(e,tn)},setUserIdFromReferrer:function(e){Fn(),We=me(e,rn)},setUserIdFromCookie:function(e){We=we(e)},setCollectorUrl:function(e){an=st(e),An.setCollectorUrl(an)},setBufferSize:function(e){An.setBufferSize(e)},flushBuffer:function(e){void 0===e&&(e={}),An.executeQueue(),e.newBufferSize&&An.setBufferSize(e.newBufferSize)},trackPageView:function(e){void 0===e&&(e={}),gt(e)},preservePageViewId:function(){In=!0},preservePageViewIdForUrl:function(e){On=e},disableAnonymousTracking:function(e){c.anonymousTracking=!1,at(e),ct(),An.executeQueue()},enableAnonymousTracking:function(e){var n;c.anonymousTracking=null===(n=e&&(null==e?void 0:e.options))||void 0===n||n,at(e),kn||lt()},clearUserData:it};return e(e({},wt),{id:t,namespace:r,core:Ke,sharedState:a})}(t,r,o,i,a,c),l=e(e({},s),{addPlugin:function(e){var n,t;l.core.addPlugin(e),null===(t=(n=e.plugin).activateBrowserPlugin)||void 0===t||t.call(n,l)}});return u.forEach((function(e){var n;null===(n=e.activateBrowserPlugin)||void 0===n||n.call(e,l)})),l}var en={};function nn(e,n){try{(t=null!=e?e:Object.keys(en),tn(t,en)).forEach(n)}catch(e){j.error("Function failed",e)}var t}function tn(e,n){for(var t=[],r=0,o=e;r<o.length;r++){var i=o[r];n.hasOwnProperty(i)?t.push(n[i]):j.warn(i+" not configured")}return t}var rn=function(){this.outQueues=[],this.bufferFlushers=[],this.hasLoaded=!1,this.registeredOnLoadHandlers=[]};function on(e,n){nn(n,(function(n){n.enableActivityTracking(e)}))}var an="undefined"!=typeof window?function(){var e=new rn,n=document,t=window;function r(){var n;if(!e.hasLoaded)for(e.hasLoaded=!0,n=0;n<e.registeredOnLoadHandlers.length;n++)e.registeredOnLoadHandlers[n]();return!0}return n.visibilityState&&pe(n,"visibilitychange",(function(){"hidden"==n.visibilityState&&e.bufferFlushers.forEach((function(e){e(!1)}))}),!1),pe(t,"beforeunload",(function(){e.bufferFlushers.forEach((function(e){e(!1)}))}),!1),"loading"===document.readyState?(n.addEventListener?n.addEventListener("DOMContentLoaded",(function e(){n.removeEventListener("DOMContentLoaded",e,!1),r()})):n.attachEvent&&n.attachEvent("onreadystatechange",(function e(){"complete"===n.readyState&&(n.detachEvent("onreadystatechange",e),r())})),pe(t,"load",r,!1)):r(),e}
/*!
* Browser tracker for Snowplow v3.12.0 (http://bit.ly/sp-js)
* Browser tracker for Snowplow v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/():void 0;function te(n,e,t){return void 0===t&&(t={}),ee?function(n,e,t,r,o,i){return Qn.hasOwnProperty(n)?null:(Qn[n]=Yn(n,e,t,r,o,i),Qn[n])}(n,n,"js-".concat("3.12.0"),e,ee,t):void 0}
*/():void 0;function cn(e,n,t){return void 0===t&&(t={}),an?function(e,n,t,r,o,i){return en.hasOwnProperty(e)?null:(en[e]=$e(e,n,t,r,o,i),en[e])}(e,e,"js-".concat("3.24.2"),n,an,t):void 0}
/*!
* Link Click tracking for Snowplow v3.12.0 (http://bit.ly/sp-js)
* Link Click tracking for Snowplow v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/var re={},oe={};function ie(){return{activateBrowserPlugin:function(n){re[n.id]=n}}}function ae(n){void 0===n&&(n=Object.keys(re)),n.forEach((function(n){re[n]&&(re[n].sharedState.hasLoaded?le(n):re[n].sharedState.registeredOnLoadHandlers.push((function(){le(n)})))}))}function ce(n,e,t){for(var r,o,i,a,c,u;null!==(r=e.parentElement)&&null!=r&&"A"!==(o=e.tagName.toUpperCase())&&"AREA"!==o;)e=r;var s,l=e;if(null!=l.href){var f=l.hostname||fn(l.href),d=f.toLowerCase(),g=l.href.replace(f,d);new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i").test(g)||(i=l.id,a=bn(l),c=l.target,u=oe[n.id].linkTrackingContent?l.innerHTML:void 0,g=unescape(g),n.core.track(Y({event:{schema:"iglu:com.snowplowanalytics.snowplow/link_click/jsonschema/1-0-1",data:Q({targetUrl:(s={targetUrl:g,elementId:i,elementClasses:a,elementTarget:c,elementContent:u}).targetUrl,elementId:s.elementId,elementClasses:s.elementClasses,elementTarget:s.elementTarget,elementContent:s.elementContent})}}),function(n){for(var e,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return null!==(e=null==n?void 0:n.map((function(n){if("function"!=typeof n)return n;try{return n.apply(void 0,t)}catch(n){return}})).filter(Boolean))&&void 0!==e?e:[]}(t,e)))}}function ue(n,e){return function(t){var r,o;r=(t=t||window.event).which||t.button,o=t.target||t.srcElement,"click"===t.type?o&&ce(re[n],o,e):"mousedown"===t.type?1!==r&&2!==r||!o?oe[n].lastButton=oe[n].lastTarget=null:(oe[n].lastButton=r,oe[n].lastTarget=o):"mouseup"===t.type&&(r===oe[n].lastButton&&o===oe[n].lastTarget&&ce(re[n],o,e),oe[n].lastButton=oe[n].lastTarget=null)}}function se(n,e){var t=void 0===n?{}:n,r=t.options,o=t.pseudoClicks,i=t.trackContent,a=t.context;oe[e]={linkTrackingContent:i,linkTrackingContext:a,linkTrackingPseudoClicks:o,linkTrackingFilter:wn(r)}}function le(n){var e,t,r,o,i,a=document.links;for(r=0;r<a.length;r++)(null===(t=(e=oe[n]).linkTrackingFilter)||void 0===t?void 0:t.call(e,a[r]))&&!a[r][n]&&(o=n,i=a[r],oe[o].linkTrackingPseudoClicks?(vn(i,"mouseup",ue(o,oe[o].linkTrackingContext),!1),vn(i,"mousedown",ue(o,oe[o].linkTrackingContext),!1)):vn(i,"click",ue(o,oe[o].linkTrackingContext),!1),a[r][n]=!0)}
*/var un={},sn={};function ln(){return{activateBrowserPlugin:function(e){un[e.id]=e}}}function fn(e){void 0===e&&(e=Object.keys(un)),e.forEach((function(e){un[e]&&(un[e].sharedState.hasLoaded?pn(e):un[e].sharedState.registeredOnLoadHandlers.push((function(){pn(e)})))}))}function dn(e,n,t){for(var r,o,i,a,c,u;null!==(r=n.parentElement)&&null!=r&&"A"!==(o=n.tagName.toUpperCase())&&"AREA"!==o;)n=r;var s,l=n;if(null!=l.href){var f=l.hostname||de(l.href),d=f.toLowerCase(),v=l.href.replace(f,d);new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript):","i").test(v)||(i=l.id,a=ke(l),c=l.target,u=sn[e.id].linkTrackingContent?l.innerHTML:void 0,v=unescape(v),e.core.track(Y({event:{schema:"iglu:com.snowplowanalytics.snowplow/link_click/jsonschema/1-0-1",data:Q({targetUrl:(s={targetUrl:v,elementId:i,elementClasses:a,elementTarget:c,elementContent:u}).targetUrl,elementId:s.elementId,elementClasses:s.elementClasses,elementTarget:s.elementTarget,elementContent:s.elementContent})}}),function(e){for(var n,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return null!==(n=null==e?void 0:e.map((function(e){if("function"!=typeof e)return e;try{return e.apply(void 0,t)}catch(e){return}})).filter(Boolean))&&void 0!==n?n:[]}(t,n)))}}function vn(e,n){return function(t){var r,o;r=(t=t||window.event).which||t.button,o=t.target||t.srcElement,"click"===t.type?o&&dn(un[e],o,n):"mousedown"===t.type?1!==r&&2!==r||!o?sn[e].lastButton=sn[e].lastTarget=null:(sn[e].lastButton=r,sn[e].lastTarget=o):"mouseup"===t.type&&(r===sn[e].lastButton&&o===sn[e].lastTarget&&dn(un[e],o,n),sn[e].lastButton=sn[e].lastTarget=null)}}function gn(e,n){var t=void 0===e?{}:e,r=t.options,o=t.pseudoClicks,i=t.trackContent,a=t.context;sn[n]={linkTrackingContent:i,linkTrackingContext:a,linkTrackingPseudoClicks:o,linkTrackingFilter:be(r)}}function pn(e){var n,t,r,o,i,a=document.links;for(r=0;r<a.length;r++)(null===(t=(n=sn[e]).linkTrackingFilter)||void 0===t?void 0:t.call(n,a[r]))&&!a[r][e]&&(o=e,i=a[r],sn[o].linkTrackingPseudoClicks?(pe(i,"mouseup",vn(o,sn[o].linkTrackingContext),!1),pe(i,"mousedown",vn(o,sn[o].linkTrackingContext),!1)):pe(i,"click",vn(o,sn[o].linkTrackingContext),!1),a[r][e]=!0)}
/*!
* Error tracking for Snowplow v3.12.0 (http://bit.ly/sp-js)
* Error tracking for Snowplow v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/var fe={};function de(){return{activateBrowserPlugin:function(n){fe[n.id]=n}}}function ge(n,e){void 0===e&&(e=Object.keys(fe));var t=n.message,r=n.filename,o=n.lineno,i=n.colno,a=n.error,c=n.context,u=n.timestamp,s=a&&a.stack?a.stack:null;!function(n,e,t){try{Kn(null!=n?n:Object.keys(e),e).forEach(t)}catch(n){j.error("Function failed",n)}}(e,fe,(function(n){n.core.track(Y({event:{schema:"iglu:com.snowplowanalytics.snowplow/application_error/jsonschema/1-0-1",data:{programmingLanguage:"JAVASCRIPT",message:null!=t?t:"JS Exception. Browser doesn't support ErrorEvent API",stackTrace:s,lineNumber:o,lineColumn:i,fileName:r}}}),c,u)}))}function ve(n,e){void 0===n&&(n={}),void 0===e&&(e=Object.keys(fe));var t=n.filter,r=n.contextAdder,o=n.context;vn(window,"error",(function(n){(t&&sn(t)&&t(n)||null==t)&&function(n,e){var t=n.errorEvent,r=n.commonContext,o=n.contextAdder,i=r||[];o&&sn(o)&&(i=i.concat(o(t)));ge({message:t.message,filename:t.filename,lineno:t.lineno,colno:t.colno,error:t.error,context:i},e)}({errorEvent:n,commonContext:o,contextAdder:r},e)}),!0)}function pe(){if("undefined"==typeof window)return!1;const{doNotTrack:n,navigator:e}=window,t=n||e.doNotTrack||e.msDoNotTrack||function(){var n;const{external:e}=window;return void 0!==e&&"msTrackingProtectionEnabled"in e&&"function"==typeof e.msTrackingProtectionEnabled&&(null==(n=e.msTrackingProtectionEnabled)?void 0:n.call(e))}();return!!t&&(!0===t||1===t||"yes"===t||"string"==typeof t&&"1"===t.charAt(0))}const me=Object.freeze({CUSTOM_EVENT:"iglu:com.gitlab/custom_event/jsonschema/1-0-0",USER_CONTEXT:"iglu:com.gitlab/user_context/jsonschema/1-0-0"}),he="gitlab",ye=Object.freeze({minimumVisitLength:30,heartbeatDelay:30});
*/function mn(e,n){return void 0===n&&(n=8192),e&&e.length>n?e.substring(0,n):e}var hn={};function yn(){return{activateBrowserPlugin:function(e){hn[e.id]=e}}}function wn(e,n){void 0===n&&(n=Object.keys(hn));var t=e.message,r=e.filename,o=e.lineno,i=e.colno,a=e.error,c=e.context,u=e.timestamp,s=a&&mn(a.stack,8192),l=t&&mn(t,2048);!function(e,n,t){try{tn(null!=e?e:Object.keys(n),n).forEach(t)}catch(e){j.error("Function failed",e)}}(n,hn,(function(e){e.core.track(Y({event:{schema:"iglu:com.snowplowanalytics.snowplow/application_error/jsonschema/1-0-1",data:{programmingLanguage:"JAVASCRIPT",message:null!=l?l:"JS Exception. Browser doesn't support ErrorEvent API",stackTrace:s,lineNumber:o,lineColumn:i,fileName:r}}}),c,u)}))}function bn(e,n){void 0===e&&(e={}),void 0===n&&(n=Object.keys(hn));var t=e.filter,r=e.contextAdder,o=e.context;pe(window,"error",(function(e){(t&&le(t)&&t(e)||null==t)&&function(e,n){var t=e.errorEvent,r=e.commonContext,o=e.contextAdder,i=r||[];o&&le(o)&&(i=i.concat(o(t)));wn({message:t.message,filename:t.filename,lineno:t.lineno,colno:t.colno,error:t.error,context:i},n)}({errorEvent:e,commonContext:o,contextAdder:r},n)}),!0)}function kn(){if("undefined"==typeof window)return!1;const{doNotTrack:e,navigator:n}=window,t=e||n.doNotTrack||n.msDoNotTrack||function(){var e;const{external:n}=window;return void 0!==n&&"msTrackingProtectionEnabled"in n&&"function"==typeof n.msTrackingProtectionEnabled&&(null==(e=n.msTrackingProtectionEnabled)?void 0:e.call(n))}();return!!t&&(!0===t||1===t||"yes"===t||"string"==typeof t&&"1"===t.charAt(0))}const Sn=Object.freeze({CUSTOM_EVENT:"iglu:com.gitlab/custom_event/jsonschema/1-0-0",USER_CONTEXT:"iglu:com.gitlab/user_context/jsonschema/1-0-0"}),Tn="gitlab",xn=Object.freeze({minimumVisitLength:30,heartbeatDelay:30});
/*!
* Attaches Client Hints to Snowplow events v3.12.0 (http://bit.ly/sp-js)
* Attaches Client Hints to Snowplow events v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/
var we;function be(n){return{activateBrowserPlugin:function(){var e,t;we||(t=navigator).userAgentData&&(we={isMobile:t.userAgentData.mobile,brands:(e=t.userAgentData.brands,Array.isArray(e)?e:Object.keys(e).map((function(n){return e[n]})))},n&&t.userAgentData.getHighEntropyValues&&t.userAgentData.getHighEntropyValues(["platform","platformVersion","architecture","model","uaFullVersion"]).then((function(n){we.architecture=n.architecture,we.model=n.model,we.platform=n.platform,we.uaFullVersion=n.uaFullVersion,we.platformVersion=n.platformVersion})))},contexts:function(){return we?[{schema:"iglu:org.ietf/http_client_hints/jsonschema/1-0-0",data:we}]:[]}}}
var En;function Cn(e){var n=function(){var n,t,r,o,i=navigator.userAgentData;i&&(n={isMobile:i.mobile,brands:(o=i.brands,r=Array.isArray(o)?o:"[object Object]"===Object.prototype.toString.call(o)?Object.keys(o).map((function(e){return o[e]})):[],r.map((function(e){return{brand:e.brand,version:e.version}})))},e&&i.getHighEntropyValues&&i.getHighEntropyValues(["platform","platformVersion","architecture","model","uaFullVersion"]).then((function(e){n.architecture=e.architecture,n.model=e.model,n.platform=e.platform,n.uaFullVersion=e.uaFullVersion,n.platformVersion=e.platformVersion})),(t=n)&&"boolean"==typeof t.isMobile&&Array.isArray(t.brands)&&0!==t.brands.length&&!t.brands.some((function(e){return"string"!=typeof e.brand||"string"!=typeof e.version}))&&(En=n))};return{activateBrowserPlugin:function(){En||n()},contexts:function(){return En?[{schema:"iglu:org.ietf/http_client_hints/jsonschema/1-0-0",data:En}]:[]}}}
/*!
* Attaches Performance Timing data to Snowplow events v3.12.0 (http://bit.ly/sp-js)
* Attaches Performance Timing data to Snowplow events v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/function ke(){return{contexts:function(){return n=window,e=n.performance||n.mozPerformance||n.msPerformance||n.webkitPerformance,t=e.timing,e?[{schema:"iglu:org.w3/PerformanceTiming/jsonschema/1-0-0",data:{navigationStart:t.navigationStart,redirectStart:t.redirectStart,redirectEnd:t.redirectEnd,fetchStart:t.fetchStart,domainLookupStart:t.domainLookupStart,domainLookupEnd:t.domainLookupEnd,connectStart:t.connectStart,secureConnectionStart:t.secureConnectionStart,connectEnd:t.connectEnd,requestStart:t.requestStart,responseStart:t.responseStart,responseEnd:t.responseEnd,unloadEventStart:t.unloadEventStart,unloadEventEnd:t.unloadEventEnd,domLoading:t.domLoading,domInteractive:t.domInteractive,domContentLoadedEventStart:t.domContentLoadedEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domComplete:t.domComplete,loadEventStart:t.loadEventStart,loadEventEnd:t.loadEventEnd,msFirstPaint:t.msFirstPaint,chromeFirstPaint:t.chromeFirstPaint,requestEnd:t.requestEnd,proxyStart:t.proxyStart,proxyEnd:t.proxyEnd}}]:[];var n,e,t}}}function Se(n){return new Te(n)}class Te{constructor(n){var e,t,r;if(this.snowplow=null,this.options={appId:"",host:"",hasCookieConsent:!1,trackerId:he,pagePingTracking:!0},this.defaultPlugins={clientHints:!0,linkTracking:!0,performanceTiming:!0,errorTracking:!0},this.refreshLinkClickTracking=ae.bind(this),this.options={...this.options,...n},this.options.plugins={...this.defaultPlugins,...null!=(e=null==n?void 0:n.plugins)?e:{}},!this.trackingEnabled)return;const{appId:o,host:i,hasCookieConsent:a=!1,trackerId:c=he,pagePingTracking:u,plugins:s}=this.options;if(!o)return void console.warn("GitLab: No appId was provided");if(!i)return void console.warn("GitLab: No host was provided");const l=function(n,e,t){const r={clientHints:be,linkTracking:ie,performanceTiming:ke,errorTracking:de},o={appId:n,plugins:Object.entries(t).filter((([,n])=>n)).map((([n])=>r[n]())),maxLocalStorageQueueSize:100,customHeaders:{"X-GitLab-AppId":n},contexts:{webPage:!0,browser:!0}};return e?o:{...o,anonymousTracking:{withServerAnonymisation:!0},stateStorageStrategy:"none",eventMethod:"post"}}(o,a,s);this.snowplow=te(c,i,l),"boolean"==typeof u&&u?ne(ye):"object"==typeof u&&ne({minimumVisitLength:null!=(t=u.minimumVisitLength)?t:ye.minimumVisitLength,heartbeatDelay:null!=(r=u.heartbeatDelay)?r:ye.heartbeatDelay});const{linkTracking:f,errorTracking:d}=s;var g,v;f&&(void 0===g&&(g={}),void 0===v&&(v=Object.keys(re)),v.forEach((function(n){re[n]&&(re[n].sharedState.hasLoaded?(se(g,n),le(n)):re[n].sharedState.registeredOnLoadHandlers.push((function(){se(g,n),le(n)})))}))),d&&ve()}get trackingEnabled(){return!pe()}track(n,{...e}={}){var t,r;this.trackingEnabled&&(t={event:{schema:me.CUSTOM_EVENT,data:{name:n,props:{...e}}}},Zn(r,(function(n){n.core.track(Y({event:t.event}),t.context,t.timestamp)})))}trackError({...n}){var e;this.trackingEnabled&&((null==(e=this.options.plugins)?void 0:e.errorTracking)?ge({...n}):console.warn("GitLab: Error tracking plugin is not enabled"))}addCookieConsent(){var n,e;n={stateStorageStrategy:"cookieAndLocalStorage"},Zn(e,(function(e){e.disableAnonymousTracking(n)}))}page(n){this.trackingEnabled&&function(n,e){Zn(e,(function(e){e.trackPageView(n)}))}(n)}identify(n,e={}){var t,r,o;if(this.trackingEnabled&&(function(n,e){Zn(e,(function(e){e.setUserId(n)}))}(n),(o=e)&&("string"==typeof o||Array.isArray(o)?0!==o.length:"object"!=typeof o||0!==Object.keys(o).length))){let n={schema:me.USER_CONTEXT,data:e};t=[n],Zn(r,(function(n){n.core.addGlobalContexts(t)}))}}setCustomUrl(n){this.trackingEnabled&&function(n,e){Zn(e,(function(e){e.setCustomUrl(n)}))}(n)}setReferrerUrl(n){this.trackingEnabled&&function(n,e){Zn(e,(function(e){e.setReferrerUrl(n)}))}(n)}setDocumentTitle(n){this.trackingEnabled&&function(n,e){Zn(e,(function(e){e.setDocumentTitle(n)}))}(n)}}export{Se as glClientSDK};
*/function An(){return{contexts:function(){return e=window,n=e.performance||e.mozPerformance||e.msPerformance||e.webkitPerformance,t=n.timing,n?[{schema:"iglu:org.w3/PerformanceTiming/jsonschema/1-0-0",data:{navigationStart:t.navigationStart,redirectStart:t.redirectStart,redirectEnd:t.redirectEnd,fetchStart:t.fetchStart,domainLookupStart:t.domainLookupStart,domainLookupEnd:t.domainLookupEnd,connectStart:t.connectStart,secureConnectionStart:t.secureConnectionStart,connectEnd:t.connectEnd,requestStart:t.requestStart,responseStart:t.responseStart,responseEnd:t.responseEnd,unloadEventStart:t.unloadEventStart,unloadEventEnd:t.unloadEventEnd,domLoading:t.domLoading,domInteractive:t.domInteractive,domContentLoadedEventStart:t.domContentLoadedEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domComplete:t.domComplete,loadEventStart:t.loadEventStart,loadEventEnd:t.loadEventEnd,msFirstPaint:t.msFirstPaint,chromeFirstPaint:t.chromeFirstPaint,requestEnd:t.requestEnd,proxyStart:t.proxyStart,proxyEnd:t.proxyEnd}}]:[];var e,n,t}}}function In(e){return new On(e)}class On{constructor(e){var n,t,r;if(this.snowplow=null,this.options={appId:"",host:"",hasCookieConsent:!1,trackerId:Tn,pagePingTracking:!0},this.defaultPlugins={clientHints:!0,linkTracking:!0,performanceTiming:!0,errorTracking:!0},this.refreshLinkClickTracking=fn.bind(this),this.options={...this.options,...e},this.options.plugins={...this.defaultPlugins,...null!=(n=null==e?void 0:e.plugins)?n:{}},!this.trackingEnabled)return;const{appId:o,host:i,hasCookieConsent:a=!1,trackerId:c=Tn,pagePingTracking:u,plugins:s}=this.options;if(!o)return void console.warn("GitLab: No appId was provided");if(!i)return void console.warn("GitLab: No host was provided");const l=function(e,n,t){const r={clientHints:Cn,linkTracking:ln,performanceTiming:An,errorTracking:yn},o={appId:e,plugins:Object.entries(t).filter((([,e])=>e)).map((([e])=>r[e]())),maxLocalStorageQueueSize:100,customHeaders:{"X-GitLab-AppId":e},contexts:{webPage:!0,browser:!0}};return n?o:{...o,anonymousTracking:{withServerAnonymisation:!0},stateStorageStrategy:"none",eventMethod:"post"}}(o,a,s);this.snowplow=cn(c,i,l),"boolean"==typeof u&&u?on(xn):"object"==typeof u&&on({minimumVisitLength:null!=(t=u.minimumVisitLength)?t:xn.minimumVisitLength,heartbeatDelay:null!=(r=u.heartbeatDelay)?r:xn.heartbeatDelay});const{linkTracking:f,errorTracking:d}=s;var v,g;f&&(void 0===v&&(v={}),void 0===g&&(g=Object.keys(un)),g.forEach((function(e){un[e]&&(un[e].sharedState.hasLoaded?(gn(v,e),pn(e)):un[e].sharedState.registeredOnLoadHandlers.push((function(){gn(v,e),pn(e)})))}))),d&&bn()}get trackingEnabled(){return!kn()}track(e,{...n}={}){var t,r;this.trackingEnabled&&(t={event:{schema:Sn.CUSTOM_EVENT,data:{name:e,props:{...n}}}},nn(r,(function(e){e.core.track(Y({event:t.event}),t.context,t.timestamp)})))}trackError({...e}){var n;this.trackingEnabled&&((null==(n=this.options.plugins)?void 0:n.errorTracking)?wn({...e}):console.warn("GitLab: Error tracking plugin is not enabled"))}addCookieConsent(){var e,n;e={stateStorageStrategy:"cookieAndLocalStorage"},nn(n,(function(n){n.disableAnonymousTracking(e)}))}page(e){this.trackingEnabled&&function(e,n){nn(n,(function(n){n.trackPageView(e)}))}(e)}identify(e,n={}){var t,r,o;if(this.trackingEnabled&&(function(e,n){nn(n,(function(n){n.setUserId(e)}))}(e),(o=n)&&("string"==typeof o||Array.isArray(o)?0!==o.length:"object"!=typeof o||0!==Object.keys(o).length))){let e={schema:Sn.USER_CONTEXT,data:n};t=[e],nn(r,(function(e){e.core.addGlobalContexts(t)}))}}setCustomUrl(e){this.trackingEnabled&&function(e,n){nn(n,(function(n){n.setCustomUrl(e)}))}(e)}setReferrerUrl(e){this.trackingEnabled&&function(e,n){nn(n,(function(n){n.setReferrerUrl(e)}))}(e)}setDocumentTitle(e){this.trackingEnabled&&function(e,n){nn(n,(function(n){n.setDocumentTitle(e)}))}(e)}}export{In as glClientSDK};

@@ -1,38 +0,38 @@

!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((n="undefined"!=typeof globalThis?globalThis:n||self).glSDK={})}(this,(function(n){"use strict";var e=function(){return e=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n},e.apply(this,arguments)};function t(n,e,t){if(t||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return n.concat(r||Array.prototype.slice.call(e))}var r={exports:{}},o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(o){var i=new Uint8Array(16);r.exports=function(){return o(i),i}}else{var a=new Array(16);r.exports=function(){for(var n,e=0;e<16;e++)0==(3&e)&&(n=4294967296*Math.random()),a[e]=n>>>((3&e)<<3)&255;return a}}for(var c=[],u=0;u<256;++u)c[u]=(u+256).toString(16).substr(1);var s,l,f=function(n,e){var t=e||0,r=c;return[r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],"-",r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]],r[n[t++]]].join("")},d=r.exports,g=f,v=0,p=0;var m=function(n,e,t){var r=e&&t||0,o=e||[],i=(n=n||{}).node||s,a=void 0!==n.clockseq?n.clockseq:l;if(null==i||null==a){var c=d();null==i&&(i=s=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==a&&(a=l=16383&(c[6]<<8|c[7]))}var u=void 0!==n.msecs?n.msecs:(new Date).getTime(),f=void 0!==n.nsecs?n.nsecs:p+1,m=u-v+(f-p)/1e4;if(m<0&&void 0===n.clockseq&&(a=a+1&16383),(m<0||u>v)&&void 0===n.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=u,p=f,l=a;var h=(1e4*(268435455&(u+=122192928e5))+f)%4294967296;o[r++]=h>>>24&255,o[r++]=h>>>16&255,o[r++]=h>>>8&255,o[r++]=255&h;var y=u/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=255&y,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var w=0;w<6;++w)o[r+w]=i[w];return e||g(o)},h=r.exports,y=f;var w=function(n,e,t){var r=e&&t||0;"string"==typeof n&&(e="binary"===n?new Array(16):null,n=null);var o=(n=n||{}).random||(n.rng||h)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;++i)e[r+i]=o[i];return e||y(o)},b=m,k=w,S=k;S.v1=b,S.v4=k;var T=S;
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).glSDK={})}(this,(function(e){"use strict";var n=function(){return n=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},n.apply(this,arguments)};function t(e,n,t){if(t||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}var r={exports:{}},o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(o){var i=new Uint8Array(16);r.exports=function(){return o(i),i}}else{var a=new Array(16);r.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),a[n]=e>>>((3&n)<<3)&255;return a}}for(var c=[],u=0;u<256;++u)c[u]=(u+256).toString(16).substr(1);var s,l,f=function(e,n){var t=n||0,r=c;return[r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]]].join("")},d=r.exports,v=f,g=0,p=0;var m=function(e,n,t){var r=n&&t||0,o=n||[],i=(e=e||{}).node||s,a=void 0!==e.clockseq?e.clockseq:l;if(null==i||null==a){var c=d();null==i&&(i=s=[1|c[0],c[1],c[2],c[3],c[4],c[5]]),null==a&&(a=l=16383&(c[6]<<8|c[7]))}var u=void 0!==e.msecs?e.msecs:(new Date).getTime(),f=void 0!==e.nsecs?e.nsecs:p+1,m=u-g+(f-p)/1e4;if(m<0&&void 0===e.clockseq&&(a=a+1&16383),(m<0||u>g)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");g=u,p=f,l=a;var h=(1e4*(268435455&(u+=122192928e5))+f)%4294967296;o[r++]=h>>>24&255,o[r++]=h>>>16&255,o[r++]=h>>>8&255,o[r++]=255&h;var y=u/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=255&y,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=a>>>8|128,o[r++]=255&a;for(var w=0;w<6;++w)o[r+w]=i[w];return n||v(o)},h=r.exports,y=f;var w=function(e,n,t){var r=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||h)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,n)for(var i=0;i<16;++i)n[r+i]=o[i];return n||y(o)},b=m,k=w,S=k;S.v1=b,S.v4=k;var T=S;
/*!
* Core functionality for Snowplow JavaScript trackers v3.12.0 (http://bit.ly/sp-js)
* Core functionality for Snowplow JavaScript trackers v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/function x(n){if(!n)return n;switch(4-n.length%4){case 2:n+="==";break;case 3:n+="="}return function(n){var e,t,r,o,i,a,c=function(n){return decodeURIComponent(n.split("").map((function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)})).join(""))},u=0,s=0,l="",f=[];if(!n)return n;n+="";do{e=(a=E.indexOf(n.charAt(u++))<<18|E.indexOf(n.charAt(u++))<<12|(o=E.indexOf(n.charAt(u++)))<<6|(i=E.indexOf(n.charAt(u++))))>>16&255,t=a>>8&255,r=255&a,f[s++]=64===o?String.fromCharCode(e):64===i?String.fromCharCode(e,t):String.fromCharCode(e,t,r)}while(u<n.length);return l=f.join(""),c(l.replace(/\0+$/,""))}(n.replace(/-/g,"+").replace(/_/g,"/"))}function C(n){if(!n)return n;var e=function(n){var e,t,r,o,i,a=0,c=0,u=[];if(!n)return n;n=unescape(encodeURIComponent(n));do{e=(i=n.charCodeAt(a++)<<16|n.charCodeAt(a++)<<8|n.charCodeAt(a++))>>18&63,t=i>>12&63,r=i>>6&63,o=63&i,u[c++]=E.charAt(e)+E.charAt(t)+E.charAt(r)+E.charAt(o)}while(a<n.length);var s=u.join(""),l=n.length%3;return(l?s.slice(0,l-3):s)+"===".slice(l||3)}(n);return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function A(){var n,e={},t=[],r=[],o=[],i=function(n,t){null!=t&&""!==t&&(e[n]=t)};return{add:i,addDict:function(n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&i(e,n[e])},addJson:function(n,e,o){if(o&&P(o)){var i={keyIfEncoded:n,keyIfNotEncoded:e,json:o};r.push(i),t.push(i)}},addContextEntity:function(n){o.push(n)},getPayload:function(){return e},getJson:function(){return t},withJsonProcessor:function(e){n=e},build:function(){return null==n||n(this,r,o),e}}}function O(n){return function(e,r,o){for(var i=function(t,r,o){var i=JSON.stringify(t);n?e.add(r,C(i)):e.add(o,i)},a=function(t,r){var o=t||function(){var t=e.getPayload();if(n?t.cx:t.co)return JSON.parse(n?x(t.cx):t.co)}();return o?o.data=o.data.concat(r.data):o=r,o},c=void 0,u=0,s=r;u<s.length;u++){var l=s[u];"cx"===l.keyIfEncoded?c=a(c,l.json):i(l.json,l.keyIfEncoded,l.keyIfNotEncoded)}(r.length=0,o.length)&&(c=a(c,{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:t([],o,!0)}),o.length=0);c&&i(c,"cx","co")}}function P(n){if(!I(n))return!1;for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e))return!0;return!1}function I(n){return null!=n&&(n.constructor==={}.constructor||n.constructor===[].constructor)}var L,j="Snowplow: ";!function(n){n[n.none=0]="none",n[n.error=1]="error",n[n.warn=2]="warn",n[n.debug=3]="debug",n[n.info=4]="info"}(L||(L={}));var D=function(n){void 0===n&&(n=L.warn);return{setLogLevel:function(e){n=L[e]?e:L.warn},warn:function(e,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(n>=L.warn&&"undefined"!=typeof console){var a=j+e;r?console.warn.apply(console,t([a+"\n",r],o,!1)):console.warn.apply(console,t([a],o,!1))}},error:function(e,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(n>=L.error&&"undefined"!=typeof console){var a=j+e+"\n";r?console.error.apply(console,t([a+"\n",r],o,!1)):console.error.apply(console,t([a],o,!1))}},debug:function(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];n>=L.debug&&"undefined"!=typeof console&&console.debug.apply(console,t([j+e],r,!1))},info:function(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];n>=L.info&&"undefined"!=typeof console&&console.info.apply(console,t([j+e],r,!1))}}}();function N(){var n=[],e=[],t=function(t){var r=function(n){for(var e=n.getJson(),t=0,r=e;t<r.length;t++){var o=r[t];if("ue_px"===o.keyIfEncoded&&"object"==typeof o.json.data){var i=o.json.data.schema;if("string"==typeof i)return i}}return""}(t),o=function(n){var e=n.getPayload().e;return"string"==typeof e?e:""}(t),i=[],a=W(n,t,o,r);i.push.apply(i,a);var c=function(n,e,t,r){var o,i=X(n),a=function(n){var o=function(n,e,t,r){if(z(n)){var o=n[0],i=!1;try{i=o({event:e.getPayload(),eventType:t,eventSchema:r})}catch(n){i=!1}if(!0===i)return W(n[1],e,t,r)}else if(J(n)&&function(n,e){var t=0,r=0,o=n.accept;Array.isArray(o)?n.accept.some((function(n){return G(n,e)}))&&r++:"string"==typeof o&&G(o,e)&&r++;var i=n.reject;Array.isArray(i)?n.reject.some((function(n){return G(n,e)}))&&t++:"string"==typeof i&&G(i,e)&&t++;if(r>0&&0===t)return!0;if(0===r&&t>0)return!1;return!1}(n[0],r))return W(n[1],e,t,r);return[]}(n,e,t,r);if(o&&0!==o.length)return o},c=i.map(a);return(o=[]).concat.apply(o,c.filter((function(n){return null!=n&&n.filter(Boolean)})))}(e,t,o,r);return i.push.apply(i,c),i};return{getGlobalPrimitives:function(){return n},getConditionalProviders:function(){return e},addGlobalContexts:function(t){for(var r=[],o=[],i=0,a=t;i<a.length;i++){var c=a[i];F(c)?r.push(c):H(c)&&o.push(c)}n=n.concat(o),e=e.concat(r)},clearGlobalContexts:function(){e=[],n=[]},removeGlobalContexts:function(t){for(var r=function(t){F(t)?e=e.filter((function(n){return JSON.stringify(n)!==JSON.stringify(t)})):H(t)&&(n=n.filter((function(n){return JSON.stringify(n)!==JSON.stringify(t)})))},o=0,i=t;o<i.length;o++){r(i[o])}},getApplicableContexts:function(n){return t(n)}}}function U(n){var e=n.split(".");return!!(e&&e.length>1)&&function(n){if("*"===n[0]||"*"===n[1])return!1;if(n.slice(2).length>0){for(var e=!1,t=0,r=n.slice(2);t<r.length;t++)if("*"===r[t])e=!0;else if(e)return!1;return!0}return 2==n.length}(e)}function B(n){var e=new RegExp("^iglu:((?:(?:[a-zA-Z0-9-_]+|\\*).)+(?:[a-zA-Z0-9-_]+|\\*))/([a-zA-Z0-9-_.]+|\\*)/jsonschema/([1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)-(0|[1-9][0-9]*|\\*)$").exec(n);if(null!==e&&U(e[1]))return e.slice(1,6)}function _(n){var e=B(n);if(e){var t=e[0];return 5===e.length&&U(t)}return!1}function R(n){return function(n){return Array.isArray(n)&&n.every((function(n){return"string"==typeof n}))}(n)?n.every((function(n){return _(n)})):"string"==typeof n&&_(n)}function V(n){var e=n;return!!(P(e)&&"schema"in e&&"data"in e)&&("string"==typeof e.schema&&"object"==typeof e.data)}function M(n){return"function"==typeof n&&n.length<=1}function H(n){return M(n)||V(n)}function z(n){return!(!Array.isArray(n)||2!==n.length)&&(Array.isArray(n[1])?M(n[0])&&n[1].every(H):M(n[0])&&H(n[1]))}function J(n){return!(!Array.isArray(n)||2!==n.length)&&(!!function(n){var e=n,t=0;if(null!=n&&"object"==typeof n&&!Array.isArray(n)){if(Object.prototype.hasOwnProperty.call(e,"accept")){if(!R(e.accept))return!1;t+=1}if(Object.prototype.hasOwnProperty.call(e,"reject")){if(!R(e.reject))return!1;t+=1}return t>0&&t<=2}return!1}(n[0])&&(Array.isArray(n[1])?n[1].every(H):H(n[1])))}function F(n){return z(n)||J(n)}function G(n,e){if(!_(n))return!1;var t=B(n),r=function(n){var e=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(n);if(null!==e)return e.slice(1,6)}(e);if(t&&r){if(!function(n,e){var t=e.split("."),r=n.split(".");if(t&&r){if(t.length!==r.length)return!1;for(var o=0;o<r.length;o++)if(!q(t[o],r[o]))return!1;return!0}return!1}(t[0],r[0]))return!1;for(var o=1;o<5;o++)if(!q(t[o],r[o]))return!1;return!0}return!1}function q(n,e){return n&&e&&"*"===n||n===e}function X(n){return Array.isArray(n)?n:Array.of(n)}function W(n,e,t,r){var o,i=X(n).map((function(n){var o=function(n,e,t,r){if(V(n))return[n];if(M(n)){var o=function(n,e,t,r){var o=void 0;try{return o=n({event:e.getPayload(),eventType:t,eventSchema:r}),Array.isArray(o)&&o.every(V)||V(o)?o:void 0}catch(n){o=void 0}return o}(n,e,t,r);if(V(o))return[o];if(Array.isArray(o))return o}return}(n,e,t,r);if(o&&0!==o.length)return o}));return(o=[]).concat.apply(o,i.filter((function(n){return null!=n&&n.filter(Boolean)})))}function Y(n){void 0===n&&(n={});var r=n.base64,o=n.corePlugins,i=n.callback,a=null!=o?o:[],c=function(n,e,r){var o=function(n){return{addPluginContexts:function(e){var r=e?t([],e,!0):[];return n.forEach((function(n){try{n.contexts&&r.push.apply(r,n.contexts())}catch(n){D.error("Error adding plugin contexts",n)}})),r}}}(e),i=N(),a=n,c={};function u(n,e){c[n]=e}var s={track:function(n,t,u){n.withJsonProcessor(O(a)),n.add("eid",T.v4()),n.addDict(c);var s=function(n){return null==n?{type:"dtm",value:(new Date).getTime()}:"number"==typeof n?{type:"dtm",value:n}:"ttm"===n.type?{type:"ttm",value:n.value}:{type:"dtm",value:n.value||(new Date).getTime()}}(u);n.add(s.type,s.value.toString());var l=function(n){if(n&&n.length)return{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:n}}(function(n,e){var t=i.getApplicableContexts(n),r=[];return e&&e.length&&r.push.apply(r,e),t&&t.length&&r.push.apply(r,t),r}(n,o.addPluginContexts(t)));void 0!==l&&n.addJson("cx","co",l),e.forEach((function(e){try{e.beforeTrack&&e.beforeTrack(n)}catch(n){D.error("Plugin beforeTrack",n)}})),"function"==typeof r&&r(n);var f=n.build();return e.forEach((function(n){try{n.afterTrack&&n.afterTrack(f)}catch(n){D.error("Plugin afterTrack",n)}})),f},addPayloadPair:u,getBase64Encoding:function(){return a},setBase64Encoding:function(n){a=n},addPayloadDict:function(n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(c[e]=n[e])},resetPayloadPairs:function(n){c=I(n)?n:{}},setTrackerVersion:function(n){u("tv",n)},setTrackerNamespace:function(n){u("tna",n)},setAppId:function(n){u("aid",n)},setPlatform:function(n){u("p",n)},setUserId:function(n){u("uid",n)},setScreenResolution:function(n,e){u("res",n+"x"+e)},setViewport:function(n,e){u("vp",n+"x"+e)},setColorDepth:function(n){u("cd",n)},setTimezone:function(n){u("tz",n)},setLang:function(n){u("lang",n)},setIpAddress:function(n){u("ip",n)},setUseragent:function(n){u("ua",n)},addGlobalContexts:function(n){i.addGlobalContexts(n)},clearGlobalContexts:function(){i.clearGlobalContexts()},removeGlobalContexts:function(n){i.removeGlobalContexts(n)}};return s}(null==r||r,a,i),u=e(e({},c),{addPlugin:function(n){var e,t,r=n.plugin;a.push(r),null===(e=r.logger)||void 0===e||e.call(r,D),null===(t=r.activateCorePlugin)||void 0===t||t.call(r,u)}});return null==a||a.forEach((function(n){var e,t;null===(e=n.logger)||void 0===e||e.call(n,D),null===(t=n.activateCorePlugin)||void 0===t||t.call(n,u)})),u}function Q(n){var e=n.event,t=e.schema,r=e.data,o=A(),i={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:t,data:r}};return o.add("e","ue"),o.addJson("ue_px","ue_pr",i),o}function Z(n,e){void 0===e&&(e={});var t={};for(var r in n)(e[r]||null!==n[r]&&void 0!==n[r])&&(t[r]=n[r]);return t}var K,$,nn={exports:{}},en={exports:{}};K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$={rotl:function(n,e){return n<<e|n>>>32-e},rotr:function(n,e){return n<<32-e|n>>>e},endian:function(n){if(n.constructor==Number)return 16711935&$.rotl(n,8)|4278255360&$.rotl(n,24);for(var e=0;e<n.length;e++)n[e]=$.endian(n[e]);return n},randomBytes:function(n){for(var e=[];n>0;n--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(n){for(var e=[],t=0,r=0;t<n.length;t++,r+=8)e[r>>>5]|=n[t]<<24-r%32;return e},wordsToBytes:function(n){for(var e=[],t=0;t<32*n.length;t+=8)e.push(n[t>>>5]>>>24-t%32&255);return e},bytesToHex:function(n){for(var e=[],t=0;t<n.length;t++)e.push((n[t]>>>4).toString(16)),e.push((15&n[t]).toString(16));return e.join("")},hexToBytes:function(n){for(var e=[],t=0;t<n.length;t+=2)e.push(parseInt(n.substr(t,2),16));return e},bytesToBase64:function(n){for(var e=[],t=0;t<n.length;t+=3)for(var r=n[t]<<16|n[t+1]<<8|n[t+2],o=0;o<4;o++)8*t+6*o<=8*n.length?e.push(K.charAt(r>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],t=0,r=0;t<n.length;r=++t%4)0!=r&&e.push((K.indexOf(n.charAt(t-1))&Math.pow(2,-2*r+8)-1)<<2*r|K.indexOf(n.charAt(t))>>>6-2*r);return e}},en.exports=$;var tn={utf8:{stringToBytes:function(n){return tn.bin.stringToBytes(unescape(encodeURIComponent(n)))},bytesToString:function(n){return decodeURIComponent(escape(tn.bin.bytesToString(n)))}},bin:{stringToBytes:function(n){for(var e=[],t=0;t<n.length;t++)e.push(255&n.charCodeAt(t));return e},bytesToString:function(n){for(var e=[],t=0;t<n.length;t++)e.push(String.fromCharCode(n[t]));return e.join("")}}},rn=tn;function on(n,e,t){void 0===t&&(t=63072e3);try{var r=window.localStorage,o=Date.now()+1e3*t;return r.setItem("".concat(n,".expires"),o.toString()),r.setItem(n,e),!0}catch(n){return!1}}function an(n){try{var e=window.localStorage;return e.removeItem(n),e.removeItem(n+".expires"),!0}catch(n){return!1}}function cn(n){try{return window.sessionStorage.getItem(n)}catch(n){return}}function un(n){return!(!n||"string"!=typeof n.valueOf())}function sn(n){return Number.isInteger&&Number.isInteger(n)||"number"==typeof n&&isFinite(n)&&Math.floor(n)===n}function ln(n){return!(!n||"function"!=typeof n)}function fn(n){if(!un(n)){n=n.text||"";var e=document.getElementsByTagName("title");e&&null!=e[0]&&(n=e[0].text)}return n}function dn(n){var e=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)").exec(n);return e?e[1]:n}function gn(n){var e=n.length;return"."===n.charAt(--e)&&(n=n.slice(0,e)),"*."===n.slice(0,2)&&(n=n.slice(1)),n}function vn(n){var e=window,t=mn("referrer",e.location.href)||mn("referer",e.location.href);if(t)return t;if(n)return n;try{if(e.top)return e.top.document.referrer;if(e.parent)return e.parent.document.referrer}catch(n){}return document.referrer}function pn(n,e,t,r){return n.addEventListener?(n.addEventListener(e,t,r),!0):n.attachEvent?n.attachEvent("on"+e,t):void(n["on"+e]=t)}function mn(n,e){var t=new RegExp("^[^#]*[?&]"+n+"=([^&#]*)").exec(e);return t?decodeURIComponent(t[1].replace(/\+/g," ")):null}function hn(n,e,t,r){wn(n,"",-1,"/",e,t,r)}function yn(n){for(var e=document.cookie.split("; "),t=[],r=0;r<e.length;r++)e[r].substring(0,n.length)===n&&t.push(e[r]);return t}function wn(n,e,t,r,o,i,a){return arguments.length>1?document.cookie=n+"="+encodeURIComponent(null!=e?e:"")+(t?"; Expires="+new Date(+new Date+1e3*t).toUTCString():"")+(r?"; Path="+r:"")+(o?"; Domain="+o:"")+(i?"; SameSite="+i:"")+(a?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+n+"=")[1]||"").split(";")[0])}function bn(n){if(null==n||"object"!=typeof n||Array.isArray(n))return function(){return!0};var e=Object.prototype.hasOwnProperty.call(n,"allowlist"),t=function(n){var e={},t=n.allowlist||n.denylist;if(t){Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++)e[t[r]]=!0}return e}(n);return function(n,e){if(n.hasOwnProperty("filter")&&n.filter)return n.filter;return e}(n,(function(n){return function(n,e){for(var t=kn(n),r=0,o=t;r<o.length;r++){if(e[o[r]])return!0}return!1}(n,t)===e}))}function kn(n){return n.className.match(/\S+/g)||[]}function Sn(){var n="modernizr";if(!function(){try{return!!window.localStorage}catch(n){return!0}}())return!1;try{var e=window.localStorage;return e.setItem(n,n),e.removeItem(n),!0}catch(n){return!1}}!function(){var n=en.exports,e=rn.utf8,t=rn.bin,r=function(r,o){var i=n.wordsToBytes(function(t){t.constructor==String?t=e.stringToBytes(t):"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());var r=n.bytesToWords(t),o=8*t.length,i=[],a=1732584193,c=-271733879,u=-1732584194,s=271733878,l=-1009589776;r[o>>5]|=128<<24-o%32,r[15+(o+64>>>9<<4)]=o;for(var f=0;f<r.length;f+=16){for(var d=a,g=c,v=u,p=s,m=l,h=0;h<80;h++){if(h<16)i[h]=r[f+h];else{var y=i[h-3]^i[h-8]^i[h-14]^i[h-16];i[h]=y<<1|y>>>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+=g,u+=v,s+=p,l+=m}return[a,c,u,s,l]}(r));return o&&o.asBytes?i:o&&o.asString?t.bytesToString(i):n.bytesToHex(i)};r._blocksize=16,r._digestsize=20,nn.exports=r}();var Tn="iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",xn="iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/1-0-0",Cn="iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",En="iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4";function An(n,e,t,r,o,i,a,c,u,s,l,f,d,g,v,p){var m,h,y=!1,w=[],b=!0===(r="string"==typeof r?r.toLowerCase():r)||"beacon"===r||"true"===r,k=Boolean(b&&window.navigator&&window.navigator.sendBeacon&&!(function(n,e){var t=e.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/");return!(!t||!t.length)&&parseInt(t[0])<=n}(13,h=window.navigator.userAgent)||function(n,e,t){var r=t.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/");return!(!r||!r.length)&&(parseInt(r[0])<=n||parseInt(r[0])===n&&parseInt(r[1])<=e)}(10,15,h)&&function(n){return n.match("Version/.* Safari/")&&!function(n){return n.match("Chrom(e|ium)")}(n)}(h)))&&b,S="get"===r,T=Boolean(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),x=!S&&T&&("post"===r||b),C=x?o:"/i",E="snowplowOutQueue_".concat(n,"_").concat(x?"post2":"get");if(b&&(d={}),i=t&&Sn()&&x&&i||1,t)try{var A=window.localStorage.getItem(E);w=A?JSON.parse(A):[]}catch(n){}function O(n){var e=Object.keys(n).map((function(e){return[e,n[e]]})).reduce((function(n,e){var t=e[0],r=e[1];return n[t]=r.toString(),n}),{});return{evt:e,bytes:P(JSON.stringify(e))}}function P(n){for(var e=0,t=0;t<n.length;t++){var r=n.charCodeAt(t);r<=127?e+=1:r<=2047?e+=2:r>=55296&&r<=57343?(e+=4,t++):e+=r<65535?3:4}return e}Array.isArray(w)||(w=[]),e.outQueues.push(w),T&&i>1&&e.bufferFlushers.push((function(n){y||j(n)}));var I=function(n){return"object"==typeof n[0]};function L(n,e){N(e,!0,!1).send(U(B([n.evt])))}function j(n){for(void 0===n&&(n=!1);w.length&&"string"!=typeof w[0]&&"object"!=typeof w[0];)w.shift();if(w.length<1)y=!1;else{if(!un(m))throw"No collector configured";if(y=!0,T){var e,r,o=void 0;I(w)?(e=N(o=m,!0,n),r=function(n){for(var e=0,t=0;e<n.length&&!((t+=n[e].bytes)>=a);)e+=1;return e}(w)):(o=_(w[0]),e=N(o,!1,n),r=1);var i=setTimeout((function(){e.abort(),y=!1}),l),c=function(n){for(var e=0;e<n;e++)w.shift();t&&on(E,JSON.stringify(w.slice(0,s)))},u=function(n){c(n),j()};if(e.onreadystatechange=function(){4===e.readyState&&e.status>=200&&(clearTimeout(i),e.status<300?u(r):(function(n){if(n>=200&&n<300)return!1;if(v.includes(n))return!0;return!p.includes(n)}(e.status)||(D.error("Status ".concat(e.status,", will not retry.")),c(r)),y=!1))},I(w)){var d=w.slice(0,r);if(d.length>0){var g=!1,h=d.map((function(n){return n.evt}));if(k){var b=new Blob([U(B(h))],{type:"application/json"});try{g=navigator.sendBeacon(o,b)}catch(n){g=!1}}!0===g?u(r):e.send(U(B(h)))}}else e.send()}else if(f||I(w))y=!1;else{var S=new Image(1,1),x=!0;S.onload=function(){x&&(x=!1,w.shift(),t&&on(E,JSON.stringify(w.slice(0,s))),j())},S.onerror=function(){x&&(x=!1,y=!1)},S.src=_(w[0]),setTimeout((function(){x&&y&&(x=!1,j())}),l)}}}function N(n,e,t){var r=new XMLHttpRequest;for(var o in e?(r.open("POST",n,!t),r.setRequestHeader("Content-Type","application/json; charset=UTF-8")):r.open("GET",n,!t),r.withCredentials=g,f&&r.setRequestHeader("SP-Anonymous","*"),d)Object.prototype.hasOwnProperty.call(d,o)&&r.setRequestHeader(o,d[o]);return r}function U(n){return JSON.stringify({schema:En,data:n})}function B(n){for(var e=(new Date).getTime().toString(),t=0;t<n.length;t++)n[t].stm=e;return n}function _(n){return u?m+n.replace("?","?stm="+(new Date).getTime()+"&"):m+n}return{enqueueRequest:function(n,e){m=e+C;var r=function(n,e){return D.warn("Event ("+n+"B) too big, max is "+e)};if(x){if((f=O(n)).bytes>=a)return r(f.bytes,a),void L(f,m);w.push(f)}else{var u=function(n){var e="?",t={co:!0,cx:!0},r=!0;for(var o in n)n.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(r?r=!1:e+="&",e+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));for(var i in t)n.hasOwnProperty(i)&&t.hasOwnProperty(i)&&(e+="&"+i+"="+encodeURIComponent(n[i]));return e}(n);if(c>0){var l=P(_(u));if(l>=c){var f;if(r(l,c),T)L(f=O(n),e+o);return}}w.push(u)}var d=!1;t&&(d=on(E,JSON.stringify(w.slice(0,s)))),y||d&&!(w.length>=i)||j()},executeQueue:function(){y||j()},setUseLocalStorage:function(n){t=n},setAnonymousTracking:function(n){f=n},setCollectorUrl:function(n){m=n+C},setBufferSize:function(n){i=n}}}function On(n,e,t){var r,o,i,a;return"translate.googleusercontent.com"===n?(""===t&&(t=e),n=dn(e=null!==(o=e,i="u",r=(a=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+))([?][^#]+)").exec(o))&&(null==a?void 0:a.length)>1?mn(i,a[1]):null)&&void 0!==r?r:"")):"cc.bingj.com"!==n&&"webcache.googleusercontent.com"!==n||(n=dn(e=document.links[0].href)),[n,e,t]}var Pn=0,In=1,Ln=2,jn=3,Dn=4,Nn=5,Un=6,Bn=7,_n=8,Rn=9,Vn=10;function Mn(n,t){var r=e({memorizedVisitCount:1},t),o=r.memorizedVisitCount,i=r.configStateStorageStrategy,a=r.configAnonymousTracking,c=r.onSessionUpdateCallback;Gn(n)?(n[Bn]=n[Un],n[Nn]=n[Dn],n[jn]++):n[jn]=o;var u=T.v4();return n[Un]=u,n[Vn]=0,n[_n]="",n[Rn]=void 0,c&&c(zn(n,i,a)),u}function Hn(n){n[Dn]=Math.round((new Date).getTime()/1e3)}function zn(n,e,t){var r=n[Rn];return{userId:t?"00000000-0000-0000-0000-000000000000":n[In],sessionId:n[Un],eventIndex:n[Vn],sessionIndex:n[jn],previousSessionId:t?null:n[Bn]||null,storageMechanism:"localStorage"==e?"LOCAL_STORAGE":"COOKIE_1",firstEventId:n[_n]||null,firstEventTimestamp:r?new Date(r).toISOString():null}}function Jn(n){return n[Un]}function Fn(n){return n[jn]}function Gn(n){return"0"===n[Pn]}var qn="x";function Xn(){return{viewport:Yn(Wn()),documentSize:Yn((n=document.documentElement,e=document.body,t=e?Math.max(e.offsetHeight,e.scrollHeight):0,r=Math.max(n.clientWidth,n.offsetWidth,n.scrollWidth),o=Math.max(n.clientHeight,n.offsetHeight,n.scrollHeight,t),isNaN(r)||isNaN(o)?"":r+qn+o)),resolution:Yn(screen.width+qn+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 n,e,t,r,o}function Wn(){var n,e;if("innerWidth"in window)n=window.innerWidth,e=window.innerHeight;else{var t=document.documentElement||document.body;n=t.clientWidth,e=t.clientHeight}return n>=0&&e>=0?n+qn+e:null}function Yn(n){return n&&n.split(qn).map((function(n){return Math.floor(Number(n))})).join(qn)}function Qn(n,t,r,o,i,a){void 0===a&&(a={});var c=[],u=function(n,t,r,o,i,a){var u,s,l,f,d,g,v,p,m,h,y,w,b,k,S,x,C,E,O,P,I,L,j,N,U,B,_,R;a.eventMethod=null!==(u=a.eventMethod)&&void 0!==u?u:"post";var V,M,H=function(n){var e;return null!==(e=n.stateStorageStrategy)&&void 0!==e?e:"cookieAndLocalStorage"},z=function(n){var e,t;return"boolean"!=typeof n.anonymousTracking&&(null!==(t=!0===(null===(e=n.anonymousTracking)||void 0===e?void 0:e.withSessionTracking))&&void 0!==t&&t)},J=function(n){var e,t;return"boolean"!=typeof n.anonymousTracking&&(null!==(t=!0===(null===(e=n.anonymousTracking)||void 0===e?void 0:e.withServerAnonymisation))&&void 0!==t&&t)},F=function(n){return!!n.anonymousTracking},G=null!==(l=null===(s=null==a?void 0:a.contexts)||void 0===s?void 0:s.browser)&&void 0!==l&&l,q=null===(d=null===(f=null==a?void 0:a.contexts)||void 0===f?void 0:f.webPage)||void 0===d||d;c.push((V=function(n){return he?null:n},M=function(n){return pe?n:V(n)},{beforeTrack:function(n){var e=Re("ses"),t=Ze();if(qn=!!$&&!!wn($),de||qn)We();else{Gn(t)?(Sn=e||"none"==ye?Jn(t):Mn(t,{configStateStorageStrategy:ye,configAnonymousTracking:he,onSessionUpdateCallback:Ee}),be=Fn(t)):(new Date).getTime()-we>1e3*ve&&(be++,Sn=Mn(t,{configStateStorageStrategy:ye,configAnonymousTracking:he,memorizedVisitCount:be,onSessionUpdateCallback:Ee})),Hn(t),function(n,e){if(0===n[Vn]){var t=e.build();n[_n]=t.eid;var r=t.dtm||t.ttm;n[Rn]=r?parseInt(r):void 0}}(t,n),function(n){n[Vn]+=1}(t);var r=Xn(),o=r.viewport,i=r.documentSize;n.add("vp",o),n.add("ds",i),n.add("vid",M(be)),n.add("sid",M(Sn)),n.add("duid",V(function(n){return n[In]}(t))),n.add("uid",V(En)),je(),n.add("refr",Ue(X||$n)),n.add("url",Ue(W||Kn)),!Ce||he&&!pe||function(n,e){var t={schema:Cn,data:e};n.addContextEntity(t)}(n,zn(t,ye,he)),"none"!=ye&&(qe(t),Ge()),we=(new Date).getTime()}}})),q&&c.push({contexts:function(){return[{schema:Tn,data:{id:nt()}}]}}),G&&c.push({contexts:function(){return[{schema:xn,data:e(e({},Xn()),{tabId:et()})}]}}),c.push.apply(c,null!==(g=a.plugins)&&void 0!==g?g:[]);var X,W,Q,Z,K,$,en,tn,rn,un,ln,bn,kn,Sn,En,qn,Wn=Y({base64:a.encodeBase64,corePlugins:c,callback:function(n){de||qn||ke.enqueueRequest(n.build(),ee)}}),Yn=document.characterSet||document.charset,Qn=On(window.location.hostname,window.location.href,vn()),Zn=gn(Qn[0]),Kn=Qn[1],$n=Qn[2],ne=null!==(v=a.platform)&&void 0!==v?v:"web",ee=Ke(o),te=null!==(p=a.postPath)&&void 0!==p?p:"/com.snowplowanalytics.snowplow/tp2",re=null!==(m=a.appId)&&void 0!==m?m:"",oe=document.title,ie=null===(h=a.resetActivityTrackingOnPageView)||void 0===h||h,ae=null!==(y=a.cookieName)&&void 0!==y?y:"_sp_",ce=null!==(w=a.cookieDomain)&&void 0!==w?w:void 0,ue="/",se=null!==(b=a.cookieSameSite)&&void 0!==b?b:"None",le=null===(k=a.cookieSecure)||void 0===k||k,fe=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,de=void 0!==a.respectDoNotTrack&&(a.respectDoNotTrack&&("yes"===fe||"1"===fe)),ge=null!==(S=a.cookieLifetime)&&void 0!==S?S:63072e3,ve=null!==(x=a.sessionCookieTimeout)&&void 0!==x?x:1800,pe=z(a),me=J(a),he=F(a),ye=H(a),we=(new Date).getTime(),be=1,ke=An(n,i,"localStorage"==ye||"cookieAndLocalStorage"==ye,a.eventMethod,te,null!==(C=a.bufferSize)&&void 0!==C?C:1,null!==(E=a.maxPostBytes)&&void 0!==E?E:4e4,null!==(O=a.maxGetBytes)&&void 0!==O?O:0,null===(P=a.useStm)||void 0===P||P,null!==(I=a.maxLocalStorageQueueSize)&&void 0!==I?I:1e3,null!==(L=a.connectionTimeout)&&void 0!==L?L:5e3,me,null!==(j=a.customHeaders)&&void 0!==j?j:{},null===(N=a.withCredentials)||void 0===N||N,null!==(U=a.retryStatusCodes)&&void 0!==U?U:[],(null!==(B=a.dontRetryStatusCodes)&&void 0!==B?B:[]).concat([400,401,403,410,422])),Se=!1,Te=!1,xe={enabled:!1,installed:!1,configurations:{}},Ce=null!==(R=null===(_=a.contexts)||void 0===_?void 0:_.session)&&void 0!==R&&R,Ee=a.onSessionUpdateCallback;a.hasOwnProperty("discoverRootDomain")&&a.discoverRootDomain&&(ce=function(n,e){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(wn(o,i,0,"/",u,n,e),wn(o)===i){hn(o,u,n,e);for(var s=yn(r),l=0;l<s.length;l++)hn(s[l],u,n,e);return u}}return t}(se,le));var Ae=Xn(),Oe=Ae.browserLanguage,Pe=Ae.resolution,Ie=Ae.colorDepth,Le=Ae.cookiesEnabled;function je(){(Qn=On(window.location.hostname,window.location.href,vn()))[1]!==Kn&&($n=vn(Kn)),Zn=gn(Qn[0]),Kn=Qn[1]}function De(n){var e=(new Date).getTime(),t=n.currentTarget;(null==t?void 0:t.href)&&(t.href=function(n,e,t){var r=e+"="+t,o=n.split("#"),i=o[0].split("?"),a=i.shift(),c=i.join("?");if(c){for(var u=!0,s=c.split("&"),l=0;l<s.length;l++)if(s[l].substr(0,e.length+1)===e+"="){u=!1,s[l]=r,c=s.join("&");break}u&&(c=r+"&"+c)}else c=r;return o[0]=a+"?"+c,o.join("#")}(t.href,"_sp",kn+"."+e))}function Ne(n){for(var e=0;e<document.links.length;e++){var t=document.links[e];!t.spDecorationEnabled&&n(t)&&(pn(t,"click",De,!0),pn(t,"mousedown",De,!0),t.spDecorationEnabled=!0)}}function Ue(n){var e;return Z&&(e=new RegExp("#.*"),n=n.replace(e,"")),K&&(e=new RegExp("[{}]","g"),n=n.replace(e,"")),n}function Be(n){var e=new RegExp("^([a-z]+):").exec(n);return e?e[1]:null}function _e(n){return ae+n+"."+bn}function Re(n){var e=_e(n);return"localStorage"==ye?
*/function x(e){if(!e)return e;switch(4-e.length%4){case 2:e+="==";break;case 3:e+="="}return function(e){var n,t,r,o,i,a,c=function(e){return decodeURIComponent(e.split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))},u=0,s=0,l="",f=[];if(!e)return e;e+="";do{n=(a=C.indexOf(e.charAt(u++))<<18|C.indexOf(e.charAt(u++))<<12|(o=C.indexOf(e.charAt(u++)))<<6|(i=C.indexOf(e.charAt(u++))))>>16&255,t=a>>8&255,r=255&a,f[s++]=64===o?String.fromCharCode(n):64===i?String.fromCharCode(n,t):String.fromCharCode(n,t,r)}while(u<e.length);return l=f.join(""),c(l.replace(/\0+$/,""))}(e.replace(/-/g,"+").replace(/_/g,"/"))}function E(e){if(!e)return e;var n=function(e){var n,t,r,o,i,a=0,c=0,u=[];if(!e)return e;e=unescape(encodeURIComponent(e));do{n=(i=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,t=i>>12&63,r=i>>6&63,o=63&i,u[c++]=C.charAt(n)+C.charAt(t)+C.charAt(r)+C.charAt(o)}while(a<e.length);var s=u.join(""),l=e.length%3;return(l?s.slice(0,l-3):s)+"===".slice(l||3)}(e);return n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function A(){var e,n={},t=[],r=[],o=[],i=function(e,t){null!=t&&""!==t&&(n[e]=t)};return{add:i,addDict:function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&i(n,e[n])},addJson:function(e,n,o){if(o&&O(o)){var i={keyIfEncoded:e,keyIfNotEncoded:n,json:o};r.push(i),t.push(i)}},addContextEntity:function(e){o.push(e)},getPayload:function(){return n},getJson:function(){return t},withJsonProcessor:function(n){e=n},build:function(){return null==e||e(this,r,o),n}}}function I(e){return function(n,r,o){for(var i=function(t,r,o){var i=JSON.stringify(t);e?n.add(r,E(i)):n.add(o,i)},a=function(t,r){var o=t||function(){var t=n.getPayload();if(e?t.cx:t.co)return JSON.parse(e?x(t.cx):t.co)}();return o?o.data=o.data.concat(r.data):o=r,o},c=void 0,u=0,s=r;u<s.length;u++){var l=s[u];"cx"===l.keyIfEncoded?c=a(c,l.json):i(l.json,l.keyIfEncoded,l.keyIfNotEncoded)}(r.length=0,o.length)&&(c=a(c,{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:t([],o,!0)}),o.length=0);c&&i(c,"cx","co")}}function O(e){if(!P(e))return!1;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))return!0;return!1}function P(e){return null!=e&&(e.constructor==={}.constructor||e.constructor===[].constructor)}var L,j="Snowplow: ";!function(e){e[e.none=0]="none",e[e.error=1]="error",e[e.warn=2]="warn",e[e.debug=3]="debug",e[e.info=4]="info"}(L||(L={}));var D=function(e){void 0===e&&(e=L.warn);return{setLogLevel:function(n){e=L[n]?n:L.warn},warn:function(n,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(e>=L.warn&&"undefined"!=typeof console){var a=j+n;r?console.warn.apply(console,t([a+"\n",r],o,!1)):console.warn.apply(console,t([a],o,!1))}},error:function(n,r){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];if(e>=L.error&&"undefined"!=typeof console){var a=j+n+"\n";r?console.error.apply(console,t([a+"\n",r],o,!1)):console.error.apply(console,t([a],o,!1))}},debug:function(n){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e>=L.debug&&"undefined"!=typeof console&&console.debug.apply(console,t([j+n],r,!1))},info:function(n){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e>=L.info&&"undefined"!=typeof console&&console.info.apply(console,t([j+n],r,!1))}}}();function U(){var e=[],n=[],t=function(t){var r=function(e){for(var n=e.getJson(),t=0,r=n;t<r.length;t++){var o=r[t];if("ue_px"===o.keyIfEncoded&&"object"==typeof o.json.data){var i=o.json.data.schema;if("string"==typeof i)return i}}return""}(t),o=function(e){var n=e.getPayload().e;return"string"==typeof n?n:""}(t),i=[],a=W(e,t,o,r);i.push.apply(i,a);var c=function(e,n,t,r){var o,i=X(e),a=function(e){var o=function(e,n,t,r){if(H(e)){var o=e[0],i=!1;try{i=o({event:n.getPayload(),eventType:t,eventSchema:r})}catch(e){i=!1}if(!0===i)return W(e[1],n,t,r)}else if(F(e)&&function(e,n){var t=0,r=0,o=e.accept;Array.isArray(o)?e.accept.some((function(e){return q(e,n)}))&&r++:"string"==typeof o&&q(o,n)&&r++;var i=e.reject;Array.isArray(i)?e.reject.some((function(e){return q(e,n)}))&&t++:"string"==typeof i&&q(i,n)&&t++;if(r>0&&0===t)return!0;if(0===r&&t>0)return!1;return!1}(e[0],r))return W(e[1],n,t,r);return[]}(e,n,t,r);if(o&&0!==o.length)return o},c=i.map(a);return(o=[]).concat.apply(o,c.filter((function(e){return null!=e&&e.filter(Boolean)})))}(n,t,o,r);return i.push.apply(i,c),i};return{getGlobalPrimitives:function(){return e},getConditionalProviders:function(){return n},addGlobalContexts:function(t){for(var r=[],o=[],i=0,a=t;i<a.length;i++){var c=a[i];J(c)?r.push(c):z(c)&&o.push(c)}e=e.concat(o),n=n.concat(r)},clearGlobalContexts:function(){n=[],e=[]},removeGlobalContexts:function(t){for(var r=function(t){J(t)?n=n.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)})):z(t)&&(e=e.filter((function(e){return JSON.stringify(e)!==JSON.stringify(t)})))},o=0,i=t;o<i.length;o++){r(i[o])}},getApplicableContexts:function(e){return t(e)}}}function N(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);t<r.length;t++)if("*"===r[t])n=!0;else if(n)return!1;return!0}return 2==e.length}(n)}function R(e){var n=new RegExp("^iglu:((?:(?:[a-zA-Z0-9-_]+|\\*).)+(?:[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&&N(n[1]))return n.slice(1,6)}function B(e){var n=R(e);if(n){var t=n[0];return 5===n.length&&N(t)}return!1}function V(e){return function(e){return Array.isArray(e)&&e.every((function(e){return"string"==typeof e}))}(e)?e.every((function(e){return B(e)})):"string"==typeof e&&B(e)}function _(e){var n=e;return!!(O(n)&&"schema"in n&&"data"in n)&&("string"==typeof n.schema&&"object"==typeof n.data)}function M(e){return"function"==typeof e&&e.length<=1}function z(e){return M(e)||_(e)}function H(e){return!(!Array.isArray(e)||2!==e.length)&&(Array.isArray(e[1])?M(e[0])&&e[1].every(z):M(e[0])&&z(e[1]))}function F(e){return!(!Array.isArray(e)||2!==e.length)&&(!!function(e){var n=e,t=0;if(null!=e&&"object"==typeof e&&!Array.isArray(e)){if(Object.prototype.hasOwnProperty.call(n,"accept")){if(!V(n.accept))return!1;t+=1}if(Object.prototype.hasOwnProperty.call(n,"reject")){if(!V(n.reject))return!1;t+=1}return t>0&&t<=2}return!1}(e[0])&&(Array.isArray(e[1])?e[1].every(z):z(e[1])))}function J(e){return H(e)||F(e)}function q(e,n){if(!B(e))return!1;var t=R(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;o<r.length;o++)if(!G(t[o],r[o]))return!1;return!0}return!1}(t[0],r[0]))return!1;for(var o=1;o<5;o++)if(!G(t[o],r[o]))return!1;return!0}return!1}function G(e,n){return e&&n&&"*"===e||e===n}function X(e){return Array.isArray(e)?e:Array.of(e)}function W(e,n,t,r){var o,i=X(e).map((function(e){var o=function(e,n,t,r){if(_(e))return[e];if(M(e)){var o=function(e,n,t,r){var o=void 0;try{return o=e({event:n.getPayload(),eventType:t,eventSchema:r}),Array.isArray(o)&&o.every(_)||_(o)?o:void 0}catch(e){o=void 0}return o}(e,n,t,r);if(_(o))return[o];if(Array.isArray(o))return o}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)})))}function Y(e){void 0===e&&(e={});var r=e.base64,o=e.corePlugins,i=e.callback,a=null!=o?o:[],c=function(e,n,r){var o=function(e){return{addPluginContexts:function(n){var r=n?t([],n,!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}}}(n),i=U(),a=e,c={};function u(e,n){c[e]=n}var s={track:function(e,t,u){e.withJsonProcessor(I(a)),e.add("eid",T.v4()),e.addDict(c);var s=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(s.type,s.value.toString());var l=function(e){if(e&&e.length)return{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:e}}(function(e,n){var t=i.getApplicableContexts(e),r=[];return n&&n.length&&r.push.apply(r,n),t&&t.length&&r.push.apply(r,t),r}(e,o.addPluginContexts(t)));void 0!==l&&e.addJson("cx","co",l),n.forEach((function(n){try{n.beforeTrack&&n.beforeTrack(e)}catch(e){D.error("Plugin beforeTrack",e)}})),"function"==typeof r&&r(e);var f=e.build();return n.forEach((function(e){try{e.afterTrack&&e.afterTrack(f)}catch(e){D.error("Plugin afterTrack",e)}})),f},addPayloadPair:u,getBase64Encoding:function(){return a},setBase64Encoding:function(e){a=e},addPayloadDict:function(e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(c[n]=e[n])},resetPayloadPairs:function(e){c=P(e)?e:{}},setTrackerVersion:function(e){u("tv",e)},setTrackerNamespace:function(e){u("tna",e)},setAppId:function(e){u("aid",e)},setPlatform:function(e){u("p",e)},setUserId:function(e){u("uid",e)},setScreenResolution:function(e,n){u("res",e+"x"+n)},setViewport:function(e,n){u("vp",e+"x"+n)},setColorDepth:function(e){u("cd",e)},setTimezone:function(e){u("tz",e)},setLang:function(e){u("lang",e)},setIpAddress:function(e){u("ip",e)},setUseragent:function(e){u("ua",e)},addGlobalContexts:function(e){i.addGlobalContexts(e)},clearGlobalContexts:function(){i.clearGlobalContexts()},removeGlobalContexts:function(e){i.removeGlobalContexts(e)}};return s}(null==r||r,a,i),u=n(n({},c),{addPlugin:function(e){var n,t,r=e.plugin;a.push(r),null===(n=r.logger)||void 0===n||n.call(r,D),null===(t=r.activateCorePlugin)||void 0===t||t.call(r,u)}});return null==a||a.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,u)})),u}function Q(e){var n=e.event,t=n.schema,r=n.data,o=A(),i={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:t,data:r}};return o.add("e","ue"),o.addJson("ue_px","ue_pr",i),o}function Z(e,n){void 0===n&&(n={});var t={};for(var r in e)(n[r]||null!==e[r]&&void 0!==e[r])&&(t[r]=e[r]);return t}var K,$,ee={exports:{}},ne={exports:{}};K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$={rotl:function(e,n){return e<<n|e>>>32-n},rotr:function(e,n){return e<<32-n|e>>>n},endian:function(e){if(e.constructor==Number)return 16711935&$.rotl(e,8)|4278255360&$.rotl(e,24);for(var n=0;n<e.length;n++)e[n]=$.endian(e[n]);return e},randomBytes:function(e){for(var n=[];e>0;e--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(e){for(var n=[],t=0,r=0;t<e.length;t++,r+=8)n[r>>>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<e.length;t++)n.push((e[t]>>>4).toString(16)),n.push((15&e[t]).toString(16));return n.join("")},hexToBytes:function(e){for(var n=[],t=0;t<e.length;t+=2)n.push(parseInt(e.substr(t,2),16));return n},bytesToBase64:function(e){for(var n=[],t=0;t<e.length;t+=3)for(var r=e[t]<<16|e[t+1]<<8|e[t+2],o=0;o<4;o++)8*t+6*o<=8*e.length?n.push(K.charAt(r>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],t=0,r=0;t<e.length;r=++t%4)0!=r&&n.push((K.indexOf(e.charAt(t-1))&Math.pow(2,-2*r+8)-1)<<2*r|K.indexOf(e.charAt(t))>>>6-2*r);return n}},ne.exports=$;var te={utf8:{stringToBytes:function(e){return te.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(te.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],t=0;t<e.length;t++)n.push(255&e.charCodeAt(t));return n},bytesToString:function(e){for(var n=[],t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return n.join("")}}},re=te;function oe(e,n,t){void 0===t&&(t=63072e3);try{var r=window.localStorage,o=Date.now()+1e3*t;return r.setItem("".concat(e,".expires"),o.toString()),r.setItem(e,n),!0}catch(e){return!1}}function ie(e){try{var n=window.localStorage;return n.removeItem(e),n.removeItem(e+".expires"),!0}catch(e){return!1}}function ae(e){try{return window.sessionStorage.getItem(e)}catch(e){return}}!function(){var e=ne.exports,n=re.utf8,t=re.bin,r=function(r,o){var i=e.wordsToBytes(function(t){t.constructor==String?t=n.stringToBytes(t):"undefined"!=typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());var r=e.bytesToWords(t),o=8*t.length,i=[],a=1732584193,c=-271733879,u=-1732584194,s=271733878,l=-1009589776;r[o>>5]|=128<<24-o%32,r[15+(o+64>>>9<<4)]=o;for(var f=0;f<r.length;f+=16){for(var d=a,v=c,g=u,p=s,m=l,h=0;h<80;h++){if(h<16)i[h]=r[f+h];else{var y=i[h-3]^i[h-8]^i[h-14]^i[h-16];i[h]=y<<1|y>>>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]}(r));return o&&o.asBytes?i:o&&o.asString?t.bytesToString(i):e.bytesToHex(i)};r._blocksize=16,r._digestsize=20,ee.exports=r}();var ce={sessionId:!0,sourceId:!0,sourcePlatform:!1,userId:!1,reason:!1};function ue(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=+$/,"")}function se(e){return!(!e||"string"!=typeof e.valueOf())}function le(e){return Number.isInteger&&Number.isInteger(e)||"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function fe(e){return!(!e||"function"!=typeof e)}function de(e){if(!se(e)){e=e.text||"";var n=document.getElementsByTagName("title");n&&null!=n[0]&&(e=n[0].text)}return e}function ve(e){var n=new RegExp("^(?:(?:https?|ftp):)/*(?:[^@]+@)?([^:/#]+)").exec(e);return n?n[1]:e}function ge(e){var n=e.length;return"."===e.charAt(--n)&&(e=e.slice(0,n)),"*."===e.slice(0,2)&&(e=e.slice(1)),e}function pe(e){var n=window,t=he("referrer",n.location.href)||he("referer",n.location.href);if(t)return t;if(e)return e;try{if(n.top)return n.top.document.referrer;if(n.parent)return n.parent.document.referrer}catch(e){}return document.referrer}function me(e,n,t,r){return e.addEventListener?(e.addEventListener(n,t,r),!0):e.attachEvent?e.attachEvent("on"+n,t):void(e["on"+n]=t)}function he(e,n){var t=new RegExp("^[^#]*[?&]"+e+"=([^&#]*)").exec(n);return t?decodeURIComponent(t[1].replace(/\+/g," ")):null}function ye(e,n,t,r){be(e,"",-1,"/",n,t,r)}function we(e){for(var n=document.cookie.split("; "),t=[],r=0;r<n.length;r++)n[r].substring(0,e.length)===e&&t.push(n[r]);return t}function be(e,n,t,r,o,i,a){return arguments.length>1?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 ke(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<t.length;r++)n[t[r]]=!0}return n}(e);return function(e,n){if(e.hasOwnProperty("filter")&&e.filter)return e.filter;return n}(e,(function(e){return function(e,n){for(var t=Se(e),r=0,o=t;r<o.length;r++){if(n[o[r]])return!0}return!1}(e,t)===n}))}function Se(e){return e.className.match(/\S+/g)||[]}function Te(){var e="modernizr";if(!function(){try{return!!window.localStorage}catch(e){return!0}}())return!1;try{var n=window.localStorage;return n.setItem(e,e),n.removeItem(e),!0}catch(e){return!1}}var xe="iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",Ee="iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/2-0-0",Ce="iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",Ae="iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4";function Ie(e,n,t,r,o,i,a,c,u,s,l,f,d,v,g,p,m,h,y,w){void 0===h&&(h=!0);var b,k,S=!1,T=[],x=!1,E=!0===(r="string"==typeof r?r.toLowerCase():r)||"beacon"===r||"true"===r,C=Boolean(E&&window.navigator&&"function"==typeof window.navigator.sendBeacon&&!(function(e,n){var t=n.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/");return!(!t||!t.length)&&parseInt(t[0])<=e}(13,k=window.navigator.userAgent)||function(e,n,t){var r=t.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/");return!(!r||!r.length)&&(parseInt(r[0])<=e||parseInt(r[0])===e&&parseInt(r[1])<=n)}(10,15,k)&&function(e){return e.match("Version/.* Safari/")&&!function(e){return e.match("Chrom(e|ium)")}(e)}(k)))&&E,A="get"===r,I=Boolean(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),O=!A&&I&&("post"===r||E),P=O?o:"/i",L="snowplowOutQueue_".concat(e,"_").concat(O?"post2":"get");if(E&&(d={}),i=t&&Te()&&O&&i||1,t)try{var j=window.localStorage.getItem(L);T=j?JSON.parse(j):[]}catch(e){}function U(e){var n=Object.keys(e).map((function(n){return[n,e[n]]})).reduce((function(e,n){var t=n[0],r=n[1];return e[t]=r.toString(),e}),{});return{evt:n,bytes:N(JSON.stringify(n))}}function N(e){for(var n=0,t=0;t<e.length;t++){var r=e.charCodeAt(t);r<=127?n+=1:r<=2047?n+=2:r>=55296&&r<=57343?(n+=4,t++):n+=r<65535?3:4}return n}Array.isArray(T)||(T=[]),n.outQueues.push(T),I&&i>1&&n.bufferFlushers.push((function(e){S||M(e)}));var R=function(e){return"object"==typeof e[0]&&"evt"in e[0]};function B(e,n){var t=H(n,!0,!1),r=J([e.evt]);t.onreadystatechange=function(){4===t.readyState&&(z(t.status)?null==y||y(r):null==w||w({status:t.status,message:t.statusText,events:r,willRetry:!1}))},t.send(F(r))}function V(e){for(var n=0;n<e;n++)T.shift();t&&oe(L,JSON.stringify(T.slice(0,s)))}function _(e,n,t){e.onreadystatechange=function(){if(4===e.readyState)if(clearTimeout(r),z(e.status))V(n),null==y||y(t),M();else{var o=function(e){if(z(e))return!1;if(!h)return!1;if(g.includes(e))return!0;return!p.includes(e)}(e.status);o||(D.error("Status ".concat(e.status,", will not retry.")),V(n)),null==w||w({status:e.status,message:e.statusText,events:t,willRetry:o}),S=!1}};var r=setTimeout((function(){e.abort(),h||V(n),null==w||w({status:0,message:"timeout",events:t,willRetry:h}),S=!1}),l)}function M(e){for(void 0===e&&(e=!1);T.length&&"string"!=typeof T[0]&&"object"!=typeof T[0];)T.shift();if(T.length){if(!se(b))throw"No collector configured";if(S=!0,m&&!x){var n=H(m,!1,e);return x=!0,n.timeout=l,n.onreadystatechange=function(){4===n.readyState&&M()},void n.send()}if(I){var r=void 0,o=void 0,i=void 0;if(R(T)?(o=H(r=b,!0,e),i=function(e){for(var n=0,t=0;n<e.length&&!((t+=e[n].bytes)>=a);)n+=1;return n}(T)):(o=H(r=q(T[0]),!1,e),i=1),R(T)){var c=T.slice(0,i);if(c.length>0){var u=!1,d=c.map((function(e){return e.evt}));if(C){var v=new Blob([F(J(d))],{type:"application/json"});try{u=window.navigator.sendBeacon(r,v)}catch(e){u=!1}}if(!0===u)V(i),null==y||y(c),M();else{var g=J(d);_(o,i,g),o.send(F(g))}}}else _(o,i,[r]),o.send()}else if(f||R(T))S=!1;else{var p=new Image(1,1),h=!0;p.onload=function(){h&&(h=!1,T.shift(),t&&oe(L,JSON.stringify(T.slice(0,s))),M())},p.onerror=function(){h&&(h=!1,S=!1)},p.src=q(T[0]),setTimeout((function(){h&&S&&(h=!1,M())}),l)}}else S=!1}function z(e){return e>=200&&e<300}function H(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=v,f&&r.setRequestHeader("SP-Anonymous","*"),d)Object.prototype.hasOwnProperty.call(d,o)&&r.setRequestHeader(o,d[o]);return r}function F(e){return JSON.stringify({schema:Ae,data:e})}function J(e){for(var n=(new Date).getTime().toString(),t=0;t<e.length;t++)e[t].stm=n;return e}function q(e){return u?b+e.replace("?","?stm="+(new Date).getTime()+"&"):b+e}return{enqueueRequest:function(e,n){b=n+P;var r=function(e,n){return D.warn("Event ("+e+"B) too big, max is "+n)};if(O){if((f=U(e)).bytes>=a)return r(f.bytes,a),void B(f,b);T.push(f)}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=N(q(u));if(l>=c){var f;if(r(l,c),I)B(f=U(e),n+o);return}}T.push(u)}var d=!1;t&&(d=oe(L,JSON.stringify(T.slice(0,s)))),S||d&&!(T.length>=i)||M()},executeQueue:function(){S||M()},setUseLocalStorage:function(e){t=e},setAnonymousTracking:function(e){f=e},setCollectorUrl:function(e){b=e+P},setBufferSize:function(e){i=e}}}function Oe(e,n,t){var r,o,i,a;return"translate.googleusercontent.com"===e?(""===t&&(t=n),e=ve(n=null!==(o=n,i="u",r=(a=new RegExp("^(?:https?|ftp)(?::/*(?:[^?]+))([?][^#]+)").exec(o))&&(null==a?void 0:a.length)>1?he(i,a[1]):null)&&void 0!==r?r:"")):"cc.bingj.com"!==e&&"webcache.googleusercontent.com"!==e||(e=ve(n=document.links[0].href)),[e,n,t]}var Pe=0,Le=1,je=2,De=3,Ue=4,Ne=5,Re=6,Be=7,Ve=8,_e=9,Me=10;function ze(e,n){void 0===n&&(n={memorizedVisitCount:1});var t=n.memorizedVisitCount;Ge(e)?(e[Be]=e[Re],e[Ne]=e[Ue],e[De]++):e[De]=t;var r=T.v4();return e[Re]=r,e[Me]=0,e[Ve]="",e[_e]=void 0,r}function He(e){e[Ue]=Math.round((new Date).getTime()/1e3)}function Fe(e,n,t){var r=e[_e];return{userId:t?"00000000-0000-0000-0000-000000000000":e[Le],sessionId:e[Re],eventIndex:e[Me],sessionIndex:e[De],previousSessionId:t?null:e[Be]||null,storageMechanism:"localStorage"==n?"LOCAL_STORAGE":"COOKIE_1",firstEventId:e[Ve]||null,firstEventTimestamp:r?new Date(r).toISOString():null}}function Je(e){return e[Re]}function qe(e){return e[De]}function Ge(e){return"0"===e[Pe]}var Xe,We=!1;var Ye="x";function Qe(){return"ResizeObserver"in window?(Xe||(Xe=Ze()),function(){if(!We&&document&&document.body&&document.documentElement){We=!0;var e=new ResizeObserver((function(e){for(var n=0,t=e;n<t.length;n++){var r=t[n];r.target!==document.body&&r.target!==document.documentElement||(Xe=Ze())}}));e.observe(document.body),e.observe(document.documentElement)}}(),Xe):Ze()}function Ze(){return{viewport:$e(Ke()),documentSize:$e((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+Ye+o)),resolution:$e(screen.width+Ye+screen.height),colorDepth:screen.colorDepth,devicePixelRatio:window.devicePixelRatio,cookiesEnabled:window.navigator.cookieEnabled,online:window.navigator.onLine,browserLanguage:window.navigator.language||window.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 Ke(){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+Ye+n:null}function $e(e){return e&&e.split(Ye).map((function(e){return Math.floor(Number(e))})).join(Ye)}function en(e,r,o,i,a,c){void 0===c&&(c={});var u=[],s=function(e,r,o,i,a,c){var s,l,f,d,v,g,p,m,h,y,w,b,k,S,x,E,C,I,O,P,L,j,U,N,R,B,V,_,M;c.eventMethod=null!==(s=c.eventMethod)&&void 0!==s?s:"post";var z,H,F=function(e){var n;return null!==(n=e.stateStorageStrategy)&&void 0!==n?n:"cookieAndLocalStorage"},J=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)},q=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)},G=function(e){return!!e.anonymousTracking},X=null!==(f=null===(l=null==c?void 0:c.contexts)||void 0===l?void 0:l.browser)&&void 0!==f&&f,W=null===(v=null===(d=null==c?void 0:c.contexts)||void 0===d?void 0:d.webPage)||void 0===v||v;u.push((z=function(e){return Tn?null:e},H=function(e){return kn?e:z(e)},{beforeTrack:function(e){var n=Yn("ses"),t=ut(),r=0===function(e){return e[Me]}(t);if(Ye=!!te&&!!be(te),yn||Ye)it();else{Ge(t)?(Xe=n||"none"==xn?Je(t):ze(t),Cn=qe(t)):(new Date).getTime()-En>1e3*bn&&(Cn++,Xe=ze(t,{memorizedVisitCount:Cn})),He(t),function(e,n){if(0===e[Me]){var t=n.build();e[Ve]=t.eid;var r=t.dtm||t.ttm;e[_e]=r?parseInt(r):void 0}}(t,e),function(e){e[Me]+=1}(t);var o=Qe(),i=o.viewport,a=o.documentSize;e.add("vp",i),e.add("ds",a),e.add("vid",H(Cn)),e.add("sid",H(Xe)),e.add("duid",z(function(e){return e[Le]}(t))),e.add("uid",z(We)),Fn(),e.add("refr",Gn(Q||rn)),e.add("url",Gn(Z||tn));var c=Fe(t,xn,Tn);if(!jn||Tn&&!kn||function(e,n){var t={schema:Ce,data:n};e.addContextEntity(t)}(e,c),"none"!=xn){rt(t);var u=tt();n&&!r||!u||!Dn||Un||(Dn(c),Un=!1)}En=(new Date).getTime()}}})),W&&u.push({contexts:function(){return[{schema:xe,data:{id:ft()}}]}}),X&&u.push({contexts:function(){return[{schema:Ee,data:n(n({},Qe()),{tabId:dt()})}]}}),u.push.apply(u,null!==(g=c.plugins)&&void 0!==g?g:[]);var Q,Z,K,$,ne,te,re,se,fe,ke,Se,Te,Ae,Xe,We,Ye,Ze,Ke=Y({base64:c.encodeBase64,corePlugins:u,callback:function(e){yn||Ye||An.enqueueRequest(e.build(),an)}}),$e=document.characterSet||document.charset,en=Oe(window.location.hostname,window.location.href,pe()),nn=ge(en[0]),tn=en[1],rn=en[2],on=null!==(p=c.platform)&&void 0!==p?p:"web",an=st(i),cn=null!==(m=c.postPath)&&void 0!==m?m:"/com.snowplowanalytics.snowplow/tp2",un=null!==(h=c.appId)&&void 0!==h?h:"",sn=document.title,ln=!1,fn=null===(y=c.resetActivityTrackingOnPageView)||void 0===y||y,dn=null!==(w=c.cookieName)&&void 0!==w?w:"_sp_",vn=null!==(b=c.cookieDomain)&&void 0!==b?b:void 0,gn="/",pn=null!==(k=c.cookieSameSite)&&void 0!==k?k:"None",mn=null===(S=c.cookieSecure)||void 0===S||S,hn=window.navigator.doNotTrack||window.navigator.msDoNotTrack||window.doNotTrack,yn=void 0!==c.respectDoNotTrack&&(c.respectDoNotTrack&&("yes"===hn||"1"===hn)),wn=null!==(x=c.cookieLifetime)&&void 0!==x?x:63072e3,bn=null!==(E=c.sessionCookieTimeout)&&void 0!==E?E:1800,kn=J(c),Sn=q(c),Tn=G(c),xn=F(c),En=(new Date).getTime(),Cn=1,An=Ie(e,a,"localStorage"==xn||"cookieAndLocalStorage"==xn,c.eventMethod,cn,null!==(C=c.bufferSize)&&void 0!==C?C:1,null!==(I=c.maxPostBytes)&&void 0!==I?I:4e4,null!==(O=c.maxGetBytes)&&void 0!==O?O:0,null===(P=c.useStm)||void 0===P||P,null!==(L=c.maxLocalStorageQueueSize)&&void 0!==L?L:1e3,null!==(j=c.connectionTimeout)&&void 0!==j?j:5e3,Sn,null!==(U=c.customHeaders)&&void 0!==U?U:{},null===(N=c.withCredentials)||void 0===N||N,null!==(R=c.retryStatusCodes)&&void 0!==R?R:[],(null!==(B=c.dontRetryStatusCodes)&&void 0!==B?B:[]).concat([400,401,403,410,422]),c.idService,c.retryFailedRequests,c.onRequestSuccess,c.onRequestFailure),In=!1,On=null!==(V=c.preservePageViewIdForUrl)&&void 0!==V&&V,Pn=void 0,Ln={enabled:!1,installed:!1,configurations:{}},jn=null!==(M=null===(_=c.contexts)||void 0===_?void 0:_.session)&&void 0!==M&&M,Dn=c.onSessionUpdateCallback,Un=!1,Nn="boolean"==typeof(Ze=c.useExtendedCrossDomainLinker||!1)?{useExtendedCrossDomainLinker:Ze}:{useExtendedCrossDomainLinker:!0,collectCrossDomainAttributes:Ze},Rn=Nn.useExtendedCrossDomainLinker,Bn=Nn.collectCrossDomainAttributes;c.hasOwnProperty("discoverRootDomain")&&c.discoverRootDomain&&(vn=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(be(o,i,0,"/",u,e,n),be(o)===i){ye(o,u,e,n);for(var s=we(r),l=0;l<s.length;l++)ye(s[l],u,e,n);return u}}return t}(pn,mn));var Vn=Qe(),_n=Vn.browserLanguage,Mn=Vn.resolution,zn=Vn.colorDepth,Hn=Vn.cookiesEnabled;function Fn(){(en=Oe(window.location.hostname,window.location.href,pe()))[1]!==tn&&(rn=pe(tn)),nn=ge(en[0]),tn=en[1]}function Jn(e){return function(t){var r=t.currentTarget,o=function(e,t,r){var o,i=(new Date).getTime(),a=n(n({},ce),t),c=r.domainUserId,u=r.userId,s=r.sessionId,l=r.sourceId,f=r.sourcePlatform,d=r.event,v=d.currentTarget,g="function"==typeof a.reason?a.reason(d):null===(o=null==v?void 0:v.textContent)||void 0===o?void 0:o.trim();return e?[c,i,a.sessionId&&s,a.userId&&ue(u||""),a.sourceId&&ue(l||""),a.sourcePlatform&&f,a.reason&&ue(g||"")].map((function(e){return e||""})).join(".").replace(/([.]*$)/,""):r.domainUserId+"."+i}(e,Bn,{domainUserId:Ae,userId:We||void 0,sessionId:Xe,sourceId:un,sourcePlatform:on,event:t});(null==r?void 0:r.href)&&(r.href=function(e,n,t){var r=n+"="+t,o=e.split("#"),i=o[0].split("?"),a=i.shift(),c=i.join("?");if(c){for(var u=!0,s=c.split("&"),l=0;l<s.length;l++)if(s[l].substr(0,n.length+1)===n+"="){u=!1,s[l]=r,c=s.join("&");break}u&&(c=r+"&"+c)}else c=r;return o[0]=a+"?"+c,o.join("#")}(r.href,"_sp",o))}}function qn(e){for(var n=Jn(Rn),t=0;t<document.links.length;t++){var r=document.links[t];!r.spDecorationEnabled&&e(r)&&(r.addEventListener("click",n,!0),r.addEventListener("mousedown",n,!0),r.spDecorationEnabled=!0)}}function Gn(e){var n;return $&&(n=new RegExp("#.*"),e=e.replace(n,"")),ne&&(n=new RegExp("[{}]","g"),e=e.replace(n,"")),e}function Xn(e){var n=new RegExp("^([a-z]+):").exec(e);return n?n[1]:null}function Wn(e){return dn+e+"."+Te}function Yn(e){var n=Wn(e);return"localStorage"==xn?
/*!
* Core functionality for Snowplow Browser trackers v3.12.0 (http://bit.ly/sp-js)
* Core functionality for Snowplow Browser trackers v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/
function(n){try{var e=window.localStorage,t=e.getItem(n+".expires");return null===t||+t>Date.now()?e.getItem(n):(e.removeItem(n),void e.removeItem(n+".expires"))}catch(n){return}}(e):"cookie"==ye||"cookieAndLocalStorage"==ye?wn(e):void 0}function Ve(){je(),bn=nn.exports((ce||Zn)+(ue||"/")).slice(0,4)}function Me(){var n=new Date;en=n.getTime()}function He(){!function(){var n=ze(),e=n[0];e<tn?tn=e:e>rn&&(rn=e);var t=n[1];t<un?un=t:t>ln&&(ln=t)}(),Me()}function ze(){var n=document.documentElement;return n?[n.scrollLeft||window.pageXOffset,n.scrollTop||window.pageYOffset]:[0,0]}function Je(){var n=ze(),e=n[0];tn=e,rn=e;var t=n[1];un=t,ln=t}function Fe(n){return Math.round(n)}function Ge(){Xe(_e("ses"),"*",ve)}function qe(n){var e=_e("id"),t=function(n){return n.shift(),n.join(".")}(n);Xe(e,t,ge)}function Xe(n,e,t){he&&!pe||("localStorage"==ye?on(n,e,t):"cookie"!=ye&&"cookieAndLocalStorage"!=ye||wn(n,e,t,ue,ce,se,le))}function We(n){var e=_e("id"),t=_e("ses");an(e),an(t),hn(e,ce,se,le),hn(t,ce,se,le),(null==n?void 0:n.preserveSession)||(Sn=T.v4(),be=1),(null==n?void 0:n.preserveUser)||(kn=he?"":T.v4(),En=null)}function Ye(n){n&&n.stateStorageStrategy&&(a.stateStorageStrategy=n.stateStorageStrategy,ye=H(a)),he=F(a),pe=z(a),me=J(a),ke.setUseLocalStorage("localStorage"==ye||"cookieAndLocalStorage"==ye),ke.setAnonymousTracking(me)}function Qe(){if(!he||pe){var n="none"!=ye&&!!Re("ses"),e=Ze();kn=function(n,e){var t;return n[In]?t=n[In]:e?(t="",n[In]=t):(t=T.v4(),n[In]=t),t}(e,he),Sn=n?Jn(e):Mn(e,{configStateStorageStrategy:ye,configAnonymousTracking:he,onSessionUpdateCallback:Ee}),be=Fn(e),"none"!=ye&&(Ge(),Hn(e),qe(e))}}function Ze(){return"none"==ye?["1","",0,0,0,void 0,"","","",void 0,0]:function(n,e,t,r){var o,i=new Date,a=Math.round(i.getTime()/1e3);n?(o=n.split(".")).unshift("0"):o=["1",e,a,r,a,"",t],o[Un]&&"undefined"!==o[Un]||(o[Un]=T.v4()),o[Bn]&&"undefined"!==o[Bn]||(o[Bn]=""),o[_n]&&"undefined"!==o[_n]||(o[_n]=""),o[Rn]&&"undefined"!==o[Rn]||(o[Rn]=""),o[Vn]&&"undefined"!==o[Vn]||(o[Vn]=0);var c=function(n,e){var t=parseInt(n);return isNaN(t)?e:t},u=function(n){return n?c(n,void 0):void 0};return[o[Pn],o[In],c(o[Ln],a),c(o[jn],r),c(o[Dn],a),u(o[Nn]),o[Un],o[Bn],o[_n],u(o[Rn]),c(o[Vn],0)]}(Re("id")||void 0,kn,Sn,be)}function Ke(n){return 0===n.indexOf("http")?n:("https:"===document.location.protocol?"https":"http")+"://"+n}function $e(){Se&&null!=i.pageViewId||(i.pageViewId=T.v4())}function nt(){return null==i.pageViewId&&(i.pageViewId=T.v4()),i.pageViewId}function et(){if("none"===ye||he||!q)return null;var n="_sp_tab_id",e=cn(n);return e||(!function(n,e){try{return window.sessionStorage.setItem(n,e),!0}catch(n){return!1}}(n,T.v4()),e=cn(n)),e||null}function tt(n,e){return(n||[]).concat(e?e():[])}function rt(n){var e=n.title,t=n.context,r=n.timestamp,o=n.contextCallback;je(),Te&&$e(),Te=!0,oe=document.title;var i=fn((Q=e)||oe);Wn.track(function(n){var e=n.pageUrl,t=n.pageTitle,r=n.referrer,o=A();return o.add("e","pv"),o.add("url",e),o.add("page",t),o.add("refr",r),o}({pageUrl:Ue(W||Kn),pageTitle:i,referrer:Ue(X||$n)}),tt(t,o),r);var a=new Date,c=!1;if(xe.enabled&&!xe.installed){xe.installed=!0,c=!0;var u={update:function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var n=!1,e=Object.defineProperty({},"passive",{get:function(){n=!0},set:function(){}}),t=function(){};window.addEventListener("testPassiveEventSupport",t,e),window.removeEventListener("testPassiveEventSupport",t,e),u.hasSupport=n}}};u.update();var s="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(u,"hasSupport")?pn(document,s,Me,{passive:!0}):pn(document,s,Me),Je();var l=function(n,e){return void 0===e&&(e=Me),function(n){return pn(document,n,e)}};["click","mouseup","mousedown","mousemove","keypress","keydown","keyup","touchend","touchstart"].forEach(l(document)),["resize","focus","blur"].forEach(l(window)),l(window,He)("scroll")}if(xe.enabled&&(ie||c)){en=a.getTime();var f=void 0;for(f in xe.configurations){var d=xe.configurations[f];d&&(window.clearInterval(d.activityInterval),ot(d,t,o))}}}function ot(n,e,t){var r=function(n,e){je(),n({context:e,pageViewId:nt(),minXOffset:tn,minYOffset:un,maxXOffset:rn,maxYOffset:ln}),Je()},o=function(){var o=new Date;en+n.configHeartBeatTimer>o.getTime()&&r(n.callback,tt(e,t))};0!=n.configMinimumVisitLength?n.activityInterval=window.setTimeout((function(){var i=new Date;en+n.configMinimumVisitLength>i.getTime()&&r(n.callback,tt(e,t)),n.activityInterval=window.setInterval(o,n.configHeartBeatTimer)}),n.configMinimumVisitLength):n.activityInterval=window.setInterval(o,n.configHeartBeatTimer)}function it(n){var e=n.minimumVisitLength,t=n.heartbeatDelay,r=n.callback;if(sn(e)&&sn(t))return{configMinimumVisitLength:1e3*e,configHeartBeatTimer:1e3*t,callback:r};D.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function at(n){var e=n.context,t=n.minXOffset,r=n.minYOffset,o=n.maxXOffset,i=n.maxYOffset,a=document.title;a!==oe&&(oe=a,Q=void 0),Wn.track(function(n){var e=n.pageUrl,t=n.pageTitle,r=n.referrer,o=n.minXOffset,i=n.maxXOffset,a=n.minYOffset,c=n.maxYOffset,u=A();return u.add("e","pp"),u.add("url",e),u.add("page",t),u.add("refr",r),o&&!isNaN(Number(o))&&u.add("pp_mix",o.toString()),i&&!isNaN(Number(i))&&u.add("pp_max",i.toString()),a&&!isNaN(Number(a))&&u.add("pp_miy",a.toString()),c&&!isNaN(Number(c))&&u.add("pp_may",c.toString()),u}({pageUrl:Ue(W||Kn),pageTitle:fn(Q||oe),referrer:Ue(X||$n),minXOffset:Fe(t),maxXOffset:Fe(o),minYOffset:Fe(r),maxYOffset:Fe(i)}),e)}Wn.setTrackerVersion(r),Wn.setTrackerNamespace(t),Wn.setAppId(re),Wn.setPlatform(ne),Wn.addPayloadPair("cookie",Le?"1":"0"),Wn.addPayloadPair("cs",Yn),Wn.addPayloadPair("lang",Oe),Wn.addPayloadPair("res",Pe),Wn.addPayloadPair("cd",Ie),Ve(),Qe(),a.crossDomainLinker&&Ne(a.crossDomainLinker);var ct={getDomainSessionIndex:function(){return be},getPageViewId:nt,getTabId:et,newSession:function(){var n=Ze();Gn(n)?(Sn="none"!=ye?Mn(n,{configStateStorageStrategy:ye,configAnonymousTracking:he,onSessionUpdateCallback:Ee}):Jn(n),be=Fn(n),Ge()):(be++,Sn=Mn(n,{configStateStorageStrategy:ye,configAnonymousTracking:he,memorizedVisitCount:be,onSessionUpdateCallback:Ee})),Hn(n),"none"!=ye&&(qe(n),Ge()),we=(new Date).getTime()},getCookieName:function(n){return _e(n)},getUserId:function(){return En},getDomainUserId:function(){return Ze()[1]},getDomainUserInfo:function(){return Ze()},setReferrerUrl:function(n){X=n},setCustomUrl:function(n){je(),W=function(n,e){var t;return Be(e)?e:"/"===e.slice(0,1)?Be(n)+"://"+dn(n)+e:((t=(n=Ue(n)).indexOf("?"))>=0&&(n=n.slice(0,t)),(t=n.lastIndexOf("/"))!==n.length-1&&(n=n.slice(0,t+1)),n+e)}(Kn,n)},setDocumentTitle:function(n){oe=document.title,Q=n},discardHashTag:function(n){Z=n},discardBrace:function(n){K=n},setCookiePath:function(n){ue=n,Ve()},setVisitorCookieTimeout:function(n){ge=n},crossDomainLinker:function(n){Ne(n)},enableActivityTracking:function(n){xe.configurations.pagePing||(xe.enabled=!0,xe.configurations.pagePing=it(e(e({},n),{callback:at})))},enableActivityTrackingCallback:function(n){xe.configurations.callback||(xe.enabled=!0,xe.configurations.callback=it(n))},updatePageActivity:function(){Me()},setOptOutCookie:function(n){$=n},setUserId:function(n){En=n},setUserIdFromLocation:function(n){je(),En=mn(n,Kn)},setUserIdFromReferrer:function(n){je(),En=mn(n,$n)},setUserIdFromCookie:function(n){En=wn(n)},setCollectorUrl:function(n){ee=Ke(n),ke.setCollectorUrl(ee)},setBufferSize:function(n){ke.setBufferSize(n)},flushBuffer:function(n){void 0===n&&(n={}),ke.executeQueue(),n.newBufferSize&&ke.setBufferSize(n.newBufferSize)},trackPageView:function(n){void 0===n&&(n={}),rt(n)},preservePageViewId:function(){Se=!0},disableAnonymousTracking:function(n){a.anonymousTracking=!1,Ye(n),Qe(),ke.executeQueue()},enableAnonymousTracking:function(n){var e;a.anonymousTracking=null===(e=n&&(null==n?void 0:n.options))||void 0===e||e,Ye(n),pe||$e()},clearUserData:We};return e(e({},ct),{id:n,namespace:t,core:Wn,sharedState:i})}(n,t,r,o,i,a),s=e(e({},u),{addPlugin:function(n){var e,t;s.core.addPlugin(n),null===(t=(e=n.plugin).activateBrowserPlugin)||void 0===t||t.call(e,s)}});return c.forEach((function(n){var e;null===(e=n.activateBrowserPlugin)||void 0===e||e.call(n,s)})),s}var Zn={};function Kn(n,e){try{(t=null!=n?n:Object.keys(Zn),$n(t,Zn)).forEach(e)}catch(n){D.error("Function failed",n)}var t}function $n(n,e){for(var t=[],r=0,o=n;r<o.length;r++){var i=o[r];e.hasOwnProperty(i)?t.push(e[i]):D.warn(i+" not configured")}return t}var ne=function(){this.outQueues=[],this.bufferFlushers=[],this.hasLoaded=!1,this.registeredOnLoadHandlers=[]};function ee(n,e){Kn(e,(function(e){e.enableActivityTracking(n)}))}var te="undefined"!=typeof window?function(){var n=new ne,e=document,t=window;function r(){var e;if(!n.hasLoaded)for(n.hasLoaded=!0,e=0;e<n.registeredOnLoadHandlers.length;e++)n.registeredOnLoadHandlers[e]();return!0}return e.visibilityState&&pn(e,"visibilitychange",(function(){"hidden"==e.visibilityState&&n.bufferFlushers.forEach((function(n){n(!1)}))}),!1),pn(t,"beforeunload",(function(){n.bufferFlushers.forEach((function(n){n(!1)}))}),!1),"loading"===document.readyState?(e.addEventListener?e.addEventListener("DOMContentLoaded",(function n(){e.removeEventListener("DOMContentLoaded",n,!1),r()})):e.attachEvent&&e.attachEvent("onreadystatechange",(function n(){"complete"===e.readyState&&(e.detachEvent("onreadystatechange",n),r())})),pn(t,"load",r,!1)):r(),n}
function(e){try{var n=window.localStorage,t=n.getItem(e+".expires");return null===t||+t>Date.now()?n.getItem(e):(n.removeItem(e),void n.removeItem(e+".expires"))}catch(e){return}}(n):"cookie"==xn||"cookieAndLocalStorage"==xn?be(n):void 0}function Qn(){Fn(),Te=ee.exports((vn||nn)+(gn||"/")).slice(0,4)}function Zn(){var e=new Date;re=e.getTime()}function Kn(){!function(){var e=$n(),n=e[0];n<se?se=n:n>fe&&(fe=n);var t=e[1];t<ke?ke=t:t>Se&&(Se=t)}(),Zn()}function $n(){var e=document.documentElement;return e?[e.scrollLeft||window.pageXOffset,e.scrollTop||window.pageYOffset]:[0,0]}function et(){var e=$n(),n=e[0];se=n,fe=n;var t=e[1];ke=t,Se=t}function nt(e){return Math.round(e)}function tt(){return ot(Wn("ses"),"*",bn)}function rt(e){var n=Wn("id"),r=function(e,n){var r=t([],e,!0);return n&&(r[Le]="",r[Be]=""),r.shift(),r.join(".")}(e,Tn);return ot(n,r,wn)}function ot(e,n,t){return!(Tn&&!kn)&&("localStorage"==xn?oe(e,n,t):("cookie"==xn||"cookieAndLocalStorage"==xn)&&(be(e,n,t,gn,vn,pn,mn),-1!==document.cookie.indexOf("".concat(e,"="))))}function it(e){var n=Wn("id"),t=Wn("ses");ie(n),ie(t),ye(n,vn,pn,mn),ye(t,vn,pn,mn),(null==e?void 0:e.preserveSession)||(Xe=T.v4(),Cn=1),(null==e?void 0:e.preserveUser)||(Ae=Tn?"":T.v4(),We=null)}function at(e){e&&e.stateStorageStrategy&&(c.stateStorageStrategy=e.stateStorageStrategy,xn=F(c)),Tn=G(c),kn=J(c),Sn=q(c),An.setUseLocalStorage("localStorage"==xn||"cookieAndLocalStorage"==xn),An.setAnonymousTracking(Sn)}function ct(){if(!Tn||kn){var e="none"!=xn&&!!Yn("ses"),n=ut();Ae=function(e,n){var t;return e[Le]?t=e[Le]:n?(t="",e[Le]=t):(t=T.v4(),e[Le]=t),t}(n,Tn),Xe=e?Je(n):ze(n),Cn=qe(n),"none"!=xn&&(tt(),He(n),rt(n))}}function ut(){return"none"==xn?["1","",0,0,0,void 0,"","","",void 0,0]:function(e,n,t,r){var o,i=new Date,a=Math.round(i.getTime()/1e3);e?(o=e.split(".")).unshift("0"):o=["1",n,a,r,a,"",t],o[Re]&&"undefined"!==o[Re]||(o[Re]=T.v4()),o[Be]&&"undefined"!==o[Be]||(o[Be]=""),o[Ve]&&"undefined"!==o[Ve]||(o[Ve]=""),o[_e]&&"undefined"!==o[_e]||(o[_e]=""),o[Me]&&"undefined"!==o[Me]||(o[Me]=0);var c=function(e,n){var t=parseInt(e);return isNaN(t)?n:t},u=function(e){return e?c(e,void 0):void 0};return[o[Pe],o[Le],c(o[je],a),c(o[De],r),c(o[Ue],a),u(o[Ne]),o[Re],o[Be],o[Ve],u(o[_e]),c(o[Me],0)]}(Yn("id")||void 0,Ae,Xe,Cn)}function st(e){return 0===e.indexOf("http")?e:("https:"===document.location.protocol?"https":"http")+"://"+e}function lt(){In&&null!=a.pageViewId||(a.pageViewId=T.v4(),a.pageViewUrl=Z||tn)}function ft(){return function(){if(null==a.pageViewId)return!0;if(In||!On)return!1;if(void 0===a.pageViewUrl)return!0;var e=Z||tn;if(!0===On||"full"==On||!("URL"in window))return a.pageViewUrl!=e;var n=new URL(e),t=new URL(a.pageViewUrl);if("pathname"==On)return n.pathname!=t.pathname;if("pathnameAndSearch"==On)return n.pathname!=t.pathname||n.search!=t.search;return!1}()&&(a.pageViewId=T.v4(),a.pageViewUrl=Z||tn),a.pageViewId}function dt(){if("none"===xn||Tn||!W)return null;var e="_sp_tab_id",n=ae(e);return n||(!function(e,n){try{return window.sessionStorage.setItem(e,n),!0}catch(e){return!1}}(e,T.v4()),n=ae(e)),n||null}function vt(e,n){return(e||[]).concat(n?n():[])}function gt(e){var n=e.title,t=e.context,r=e.timestamp,o=e.contextCallback;Fn(),Pn&&Pn==ft()&&lt(),Pn=ft(),sn=document.title,n?(K=n,ln=!0):ln&&(K=null);var i=de(K||sn);Ke.track(function(e){var n=e.pageUrl,t=e.pageTitle,r=e.referrer,o=A();return o.add("e","pv"),o.add("url",n),o.add("page",t),o.add("refr",r),o}({pageUrl:Gn(Z||tn),pageTitle:i,referrer:Gn(Q||rn)}),vt(t,o),r);var a=new Date,c=!1;if(Ln.enabled&&!Ln.installed){Ln.installed=!0,c=!0;var u={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),u.hasSupport=e}}};u.update();var s="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(u,"hasSupport")?me(document,s,Zn,{passive:!0}):me(document,s,Zn),et();var l=function(e,n){return void 0===n&&(n=Zn),function(e){return me(document,e,n)}};["click","mouseup","mousedown","mousemove","keypress","keydown","keyup","touchend","touchstart"].forEach(l(document)),["resize","focus","blur"].forEach(l(window)),l(window,Kn)("scroll")}if(Ln.enabled&&(fn||c)){re=a.getTime();var f=void 0;for(f in Ln.configurations){var d=Ln.configurations[f];d&&(window.clearInterval(d.activityInterval),pt(d,t,o))}}}function pt(e,n,t){var r=function(e,n){Fn(),e({context:n,pageViewId:ft(),minXOffset:se,minYOffset:ke,maxXOffset:fe,maxYOffset:Se}),et()},o=function(){var o=new Date;re+e.configHeartBeatTimer>o.getTime()&&r(e.callback,vt(n,t))};0===e.configMinimumVisitLength?e.activityInterval=window.setInterval(o,e.configHeartBeatTimer):e.activityInterval=window.setTimeout((function(){var i=new Date;re+e.configMinimumVisitLength>i.getTime()&&r(e.callback,vt(n,t)),e.activityInterval=window.setInterval(o,e.configHeartBeatTimer)}),e.configMinimumVisitLength)}function mt(e){var n=e.minimumVisitLength,t=e.heartbeatDelay,r=e.callback;if(le(n)&&le(t))return{configMinimumVisitLength:1e3*n,configHeartBeatTimer:1e3*t,callback:r};D.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function ht(e){var n=e.context,t=e.minXOffset,r=e.minYOffset,o=e.maxXOffset,i=e.maxYOffset,a=document.title;a!==sn&&(sn=a,K=void 0),Ke.track(function(e){var n=e.pageUrl,t=e.pageTitle,r=e.referrer,o=e.minXOffset,i=e.maxXOffset,a=e.minYOffset,c=e.maxYOffset,u=A();return u.add("e","pp"),u.add("url",n),u.add("page",t),u.add("refr",r),o&&!isNaN(Number(o))&&u.add("pp_mix",o.toString()),i&&!isNaN(Number(i))&&u.add("pp_max",i.toString()),a&&!isNaN(Number(a))&&u.add("pp_miy",a.toString()),c&&!isNaN(Number(c))&&u.add("pp_may",c.toString()),u}({pageUrl:Gn(Z||tn),pageTitle:de(K||sn),referrer:Gn(Q||rn),minXOffset:nt(t),maxXOffset:nt(o),minYOffset:nt(r),maxYOffset:nt(i)}),n)}function yt(e){var n=Ln.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),Ln.configurations[e]=void 0}Ke.setTrackerVersion(o),Ke.setTrackerNamespace(r),Ke.setAppId(un),Ke.setPlatform(on),Ke.addPayloadPair("cookie",Hn?"1":"0"),Ke.addPayloadPair("cs",$e),Ke.addPayloadPair("lang",_n),Ke.addPayloadPair("res",Mn),Ke.addPayloadPair("cd",zn),Qn(),ct(),c.crossDomainLinker&&qn(c.crossDomainLinker);var wt={getDomainSessionIndex:function(){return Cn},getPageViewId:ft,getTabId:dt,newSession:function(){var e=ut();if(Ge(e)?(Xe="none"!=xn?ze(e):Je(e),Cn=qe(e)):(Cn++,Xe=ze(e,{memorizedVisitCount:Cn})),He(e),"none"!=xn){var n=Fe(e,xn,Tn);rt(e),tt()&&Dn&&(Un=!0,Dn(n))}En=(new Date).getTime()},getCookieName:function(e){return Wn(e)},getUserId:function(){return We},getDomainUserId:function(){return ut()[1]},getDomainUserInfo:function(){return ut()},setReferrerUrl:function(e){Q=e},setCustomUrl:function(e){Fn(),Z=function(e,n){var t;return Xn(n)?n:"/"===n.slice(0,1)?Xn(e)+"://"+ve(e)+n:((t=(e=Gn(e)).indexOf("?"))>=0&&(e=e.slice(0,t)),(t=e.lastIndexOf("/"))!==e.length-1&&(e=e.slice(0,t+1)),e+n)}(tn,e)},setDocumentTitle:function(e){sn=document.title,K=e,ln=!1},discardHashTag:function(e){$=e},discardBrace:function(e){ne=e},setCookiePath:function(e){gn=e,Qn()},setVisitorCookieTimeout:function(e){wn=e},crossDomainLinker:function(e){qn(e)},enableActivityTracking:function(e){Ln.configurations.pagePing||(Ln.enabled=!0,Ln.configurations.pagePing=mt(n(n({},e),{callback:ht})))},enableActivityTrackingCallback:function(e){Ln.configurations.callback||(Ln.enabled=!0,Ln.configurations.callback=mt(e))},disableActivityTracking:function(){yt("pagePing")},disableActivityTrackingCallback:function(){yt("callback")},updatePageActivity:function(){Zn()},setOptOutCookie:function(e){te=e},setUserId:function(e){We=e},setUserIdFromLocation:function(e){Fn(),We=he(e,tn)},setUserIdFromReferrer:function(e){Fn(),We=he(e,rn)},setUserIdFromCookie:function(e){We=be(e)},setCollectorUrl:function(e){an=st(e),An.setCollectorUrl(an)},setBufferSize:function(e){An.setBufferSize(e)},flushBuffer:function(e){void 0===e&&(e={}),An.executeQueue(),e.newBufferSize&&An.setBufferSize(e.newBufferSize)},trackPageView:function(e){void 0===e&&(e={}),gt(e)},preservePageViewId:function(){In=!0},preservePageViewIdForUrl:function(e){On=e},disableAnonymousTracking:function(e){c.anonymousTracking=!1,at(e),ct(),An.executeQueue()},enableAnonymousTracking:function(e){var n;c.anonymousTracking=null===(n=e&&(null==e?void 0:e.options))||void 0===n||n,at(e),kn||lt()},clearUserData:it};return n(n({},wt),{id:e,namespace:r,core:Ke,sharedState:a})}(e,r,o,i,a,c),l=n(n({},s),{addPlugin:function(e){var n,t;l.core.addPlugin(e),null===(t=(n=e.plugin).activateBrowserPlugin)||void 0===t||t.call(n,l)}});return u.forEach((function(e){var n;null===(n=e.activateBrowserPlugin)||void 0===n||n.call(e,l)})),l}var nn={};function tn(e,n){try{(t=null!=e?e:Object.keys(nn),rn(t,nn)).forEach(n)}catch(e){D.error("Function failed",e)}var t}function rn(e,n){for(var t=[],r=0,o=e;r<o.length;r++){var i=o[r];n.hasOwnProperty(i)?t.push(n[i]):D.warn(i+" not configured")}return t}var on=function(){this.outQueues=[],this.bufferFlushers=[],this.hasLoaded=!1,this.registeredOnLoadHandlers=[]};function an(e,n){tn(n,(function(n){n.enableActivityTracking(e)}))}var cn="undefined"!=typeof window?function(){var e=new on,n=document,t=window;function r(){var n;if(!e.hasLoaded)for(e.hasLoaded=!0,n=0;n<e.registeredOnLoadHandlers.length;n++)e.registeredOnLoadHandlers[n]();return!0}return n.visibilityState&&me(n,"visibilitychange",(function(){"hidden"==n.visibilityState&&e.bufferFlushers.forEach((function(e){e(!1)}))}),!1),me(t,"beforeunload",(function(){e.bufferFlushers.forEach((function(e){e(!1)}))}),!1),"loading"===document.readyState?(n.addEventListener?n.addEventListener("DOMContentLoaded",(function e(){n.removeEventListener("DOMContentLoaded",e,!1),r()})):n.attachEvent&&n.attachEvent("onreadystatechange",(function e(){"complete"===n.readyState&&(n.detachEvent("onreadystatechange",e),r())})),me(t,"load",r,!1)):r(),e}
/*!
* Browser tracker for Snowplow v3.12.0 (http://bit.ly/sp-js)
* Browser tracker for Snowplow v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/():void 0;function re(n,e,t){return void 0===t&&(t={}),te?function(n,e,t,r,o,i){return Zn.hasOwnProperty(n)?null:(Zn[n]=Qn(n,e,t,r,o,i),Zn[n])}(n,n,"js-".concat("3.12.0"),e,te,t):void 0}
*/():void 0;function un(e,n,t){return void 0===t&&(t={}),cn?function(e,n,t,r,o,i){return nn.hasOwnProperty(e)?null:(nn[e]=en(e,n,t,r,o,i),nn[e])}(e,e,"js-".concat("3.24.2"),n,cn,t):void 0}
/*!
* Link Click tracking for Snowplow v3.12.0 (http://bit.ly/sp-js)
* Link Click tracking for Snowplow v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/var oe={},ie={};function ae(){return{activateBrowserPlugin:function(n){oe[n.id]=n}}}function ce(n){void 0===n&&(n=Object.keys(oe)),n.forEach((function(n){oe[n]&&(oe[n].sharedState.hasLoaded?fe(n):oe[n].sharedState.registeredOnLoadHandlers.push((function(){fe(n)})))}))}function ue(n,e,t){for(var r,o,i,a,c,u;null!==(r=e.parentElement)&&null!=r&&"A"!==(o=e.tagName.toUpperCase())&&"AREA"!==o;)e=r;var s,l=e;if(null!=l.href){var f=l.hostname||dn(l.href),d=f.toLowerCase(),g=l.href.replace(f,d);new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript|mailto):","i").test(g)||(i=l.id,a=kn(l),c=l.target,u=ie[n.id].linkTrackingContent?l.innerHTML:void 0,g=unescape(g),n.core.track(Q({event:{schema:"iglu:com.snowplowanalytics.snowplow/link_click/jsonschema/1-0-1",data:Z({targetUrl:(s={targetUrl:g,elementId:i,elementClasses:a,elementTarget:c,elementContent:u}).targetUrl,elementId:s.elementId,elementClasses:s.elementClasses,elementTarget:s.elementTarget,elementContent:s.elementContent})}}),function(n){for(var e,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return null!==(e=null==n?void 0:n.map((function(n){if("function"!=typeof n)return n;try{return n.apply(void 0,t)}catch(n){return}})).filter(Boolean))&&void 0!==e?e:[]}(t,e)))}}function se(n,e){return function(t){var r,o;r=(t=t||window.event).which||t.button,o=t.target||t.srcElement,"click"===t.type?o&&ue(oe[n],o,e):"mousedown"===t.type?1!==r&&2!==r||!o?ie[n].lastButton=ie[n].lastTarget=null:(ie[n].lastButton=r,ie[n].lastTarget=o):"mouseup"===t.type&&(r===ie[n].lastButton&&o===ie[n].lastTarget&&ue(oe[n],o,e),ie[n].lastButton=ie[n].lastTarget=null)}}function le(n,e){var t=void 0===n?{}:n,r=t.options,o=t.pseudoClicks,i=t.trackContent,a=t.context;ie[e]={linkTrackingContent:i,linkTrackingContext:a,linkTrackingPseudoClicks:o,linkTrackingFilter:bn(r)}}function fe(n){var e,t,r,o,i,a=document.links;for(r=0;r<a.length;r++)(null===(t=(e=ie[n]).linkTrackingFilter)||void 0===t?void 0:t.call(e,a[r]))&&!a[r][n]&&(o=n,i=a[r],ie[o].linkTrackingPseudoClicks?(pn(i,"mouseup",se(o,ie[o].linkTrackingContext),!1),pn(i,"mousedown",se(o,ie[o].linkTrackingContext),!1)):pn(i,"click",se(o,ie[o].linkTrackingContext),!1),a[r][n]=!0)}
*/var sn={},ln={};function fn(){return{activateBrowserPlugin:function(e){sn[e.id]=e}}}function dn(e){void 0===e&&(e=Object.keys(sn)),e.forEach((function(e){sn[e]&&(sn[e].sharedState.hasLoaded?mn(e):sn[e].sharedState.registeredOnLoadHandlers.push((function(){mn(e)})))}))}function vn(e,n,t){for(var r,o,i,a,c,u;null!==(r=n.parentElement)&&null!=r&&"A"!==(o=n.tagName.toUpperCase())&&"AREA"!==o;)n=r;var s,l=n;if(null!=l.href){var f=l.hostname||ve(l.href),d=f.toLowerCase(),v=l.href.replace(f,d);new RegExp("^(javascript|vbscript|jscript|mocha|livescript|ecmascript):","i").test(v)||(i=l.id,a=Se(l),c=l.target,u=ln[e.id].linkTrackingContent?l.innerHTML:void 0,v=unescape(v),e.core.track(Q({event:{schema:"iglu:com.snowplowanalytics.snowplow/link_click/jsonschema/1-0-1",data:Z({targetUrl:(s={targetUrl:v,elementId:i,elementClasses:a,elementTarget:c,elementContent:u}).targetUrl,elementId:s.elementId,elementClasses:s.elementClasses,elementTarget:s.elementTarget,elementContent:s.elementContent})}}),function(e){for(var n,t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return null!==(n=null==e?void 0:e.map((function(e){if("function"!=typeof e)return e;try{return e.apply(void 0,t)}catch(e){return}})).filter(Boolean))&&void 0!==n?n:[]}(t,n)))}}function gn(e,n){return function(t){var r,o;r=(t=t||window.event).which||t.button,o=t.target||t.srcElement,"click"===t.type?o&&vn(sn[e],o,n):"mousedown"===t.type?1!==r&&2!==r||!o?ln[e].lastButton=ln[e].lastTarget=null:(ln[e].lastButton=r,ln[e].lastTarget=o):"mouseup"===t.type&&(r===ln[e].lastButton&&o===ln[e].lastTarget&&vn(sn[e],o,n),ln[e].lastButton=ln[e].lastTarget=null)}}function pn(e,n){var t=void 0===e?{}:e,r=t.options,o=t.pseudoClicks,i=t.trackContent,a=t.context;ln[n]={linkTrackingContent:i,linkTrackingContext:a,linkTrackingPseudoClicks:o,linkTrackingFilter:ke(r)}}function mn(e){var n,t,r,o,i,a=document.links;for(r=0;r<a.length;r++)(null===(t=(n=ln[e]).linkTrackingFilter)||void 0===t?void 0:t.call(n,a[r]))&&!a[r][e]&&(o=e,i=a[r],ln[o].linkTrackingPseudoClicks?(me(i,"mouseup",gn(o,ln[o].linkTrackingContext),!1),me(i,"mousedown",gn(o,ln[o].linkTrackingContext),!1)):me(i,"click",gn(o,ln[o].linkTrackingContext),!1),a[r][e]=!0)}
/*!
* Error tracking for Snowplow v3.12.0 (http://bit.ly/sp-js)
* Error tracking for Snowplow v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/var de={};function ge(){return{activateBrowserPlugin:function(n){de[n.id]=n}}}function ve(n,e){void 0===e&&(e=Object.keys(de));var t=n.message,r=n.filename,o=n.lineno,i=n.colno,a=n.error,c=n.context,u=n.timestamp,s=a&&a.stack?a.stack:null;!function(n,e,t){try{$n(null!=n?n:Object.keys(e),e).forEach(t)}catch(n){D.error("Function failed",n)}}(e,de,(function(n){n.core.track(Q({event:{schema:"iglu:com.snowplowanalytics.snowplow/application_error/jsonschema/1-0-1",data:{programmingLanguage:"JAVASCRIPT",message:null!=t?t:"JS Exception. Browser doesn't support ErrorEvent API",stackTrace:s,lineNumber:o,lineColumn:i,fileName:r}}}),c,u)}))}function pe(n,e){void 0===n&&(n={}),void 0===e&&(e=Object.keys(de));var t=n.filter,r=n.contextAdder,o=n.context;pn(window,"error",(function(n){(t&&ln(t)&&t(n)||null==t)&&function(n,e){var t=n.errorEvent,r=n.commonContext,o=n.contextAdder,i=r||[];o&&ln(o)&&(i=i.concat(o(t)));ve({message:t.message,filename:t.filename,lineno:t.lineno,colno:t.colno,error:t.error,context:i},e)}({errorEvent:n,commonContext:o,contextAdder:r},e)}),!0)}function me(){if("undefined"==typeof window)return!1;const{doNotTrack:n,navigator:e}=window,t=n||e.doNotTrack||e.msDoNotTrack||function(){var n;const{external:e}=window;return void 0!==e&&"msTrackingProtectionEnabled"in e&&"function"==typeof e.msTrackingProtectionEnabled&&(null==(n=e.msTrackingProtectionEnabled)?void 0:n.call(e))}();return!!t&&(!0===t||1===t||"yes"===t||"string"==typeof t&&"1"===t.charAt(0))}const he=Object.freeze({CUSTOM_EVENT:"iglu:com.gitlab/custom_event/jsonschema/1-0-0",USER_CONTEXT:"iglu:com.gitlab/user_context/jsonschema/1-0-0"}),ye="gitlab",we=Object.freeze({minimumVisitLength:30,heartbeatDelay:30});
*/function hn(e,n){return void 0===n&&(n=8192),e&&e.length>n?e.substring(0,n):e}var yn={};function wn(){return{activateBrowserPlugin:function(e){yn[e.id]=e}}}function bn(e,n){void 0===n&&(n=Object.keys(yn));var t=e.message,r=e.filename,o=e.lineno,i=e.colno,a=e.error,c=e.context,u=e.timestamp,s=a&&hn(a.stack,8192),l=t&&hn(t,2048);!function(e,n,t){try{rn(null!=e?e:Object.keys(n),n).forEach(t)}catch(e){D.error("Function failed",e)}}(n,yn,(function(e){e.core.track(Q({event:{schema:"iglu:com.snowplowanalytics.snowplow/application_error/jsonschema/1-0-1",data:{programmingLanguage:"JAVASCRIPT",message:null!=l?l:"JS Exception. Browser doesn't support ErrorEvent API",stackTrace:s,lineNumber:o,lineColumn:i,fileName:r}}}),c,u)}))}function kn(e,n){void 0===e&&(e={}),void 0===n&&(n=Object.keys(yn));var t=e.filter,r=e.contextAdder,o=e.context;me(window,"error",(function(e){(t&&fe(t)&&t(e)||null==t)&&function(e,n){var t=e.errorEvent,r=e.commonContext,o=e.contextAdder,i=r||[];o&&fe(o)&&(i=i.concat(o(t)));bn({message:t.message,filename:t.filename,lineno:t.lineno,colno:t.colno,error:t.error,context:i},n)}({errorEvent:e,commonContext:o,contextAdder:r},n)}),!0)}function Sn(){if("undefined"==typeof window)return!1;const{doNotTrack:e,navigator:n}=window,t=e||n.doNotTrack||n.msDoNotTrack||function(){var e;const{external:n}=window;return void 0!==n&&"msTrackingProtectionEnabled"in n&&"function"==typeof n.msTrackingProtectionEnabled&&(null==(e=n.msTrackingProtectionEnabled)?void 0:e.call(n))}();return!!t&&(!0===t||1===t||"yes"===t||"string"==typeof t&&"1"===t.charAt(0))}const Tn=Object.freeze({CUSTOM_EVENT:"iglu:com.gitlab/custom_event/jsonschema/1-0-0",USER_CONTEXT:"iglu:com.gitlab/user_context/jsonschema/1-0-0"}),xn="gitlab",En=Object.freeze({minimumVisitLength:30,heartbeatDelay:30});
/*!
* Attaches Client Hints to Snowplow events v3.12.0 (http://bit.ly/sp-js)
* Attaches Client Hints to Snowplow events v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/
var be;function ke(n){return{activateBrowserPlugin:function(){var e,t;be||(t=navigator).userAgentData&&(be={isMobile:t.userAgentData.mobile,brands:(e=t.userAgentData.brands,Array.isArray(e)?e:Object.keys(e).map((function(n){return e[n]})))},n&&t.userAgentData.getHighEntropyValues&&t.userAgentData.getHighEntropyValues(["platform","platformVersion","architecture","model","uaFullVersion"]).then((function(n){be.architecture=n.architecture,be.model=n.model,be.platform=n.platform,be.uaFullVersion=n.uaFullVersion,be.platformVersion=n.platformVersion})))},contexts:function(){return be?[{schema:"iglu:org.ietf/http_client_hints/jsonschema/1-0-0",data:be}]:[]}}}
var Cn;function An(e){var n=function(){var n,t,r,o,i=navigator.userAgentData;i&&(n={isMobile:i.mobile,brands:(o=i.brands,r=Array.isArray(o)?o:"[object Object]"===Object.prototype.toString.call(o)?Object.keys(o).map((function(e){return o[e]})):[],r.map((function(e){return{brand:e.brand,version:e.version}})))},e&&i.getHighEntropyValues&&i.getHighEntropyValues(["platform","platformVersion","architecture","model","uaFullVersion"]).then((function(e){n.architecture=e.architecture,n.model=e.model,n.platform=e.platform,n.uaFullVersion=e.uaFullVersion,n.platformVersion=e.platformVersion})),(t=n)&&"boolean"==typeof t.isMobile&&Array.isArray(t.brands)&&0!==t.brands.length&&!t.brands.some((function(e){return"string"!=typeof e.brand||"string"!=typeof e.version}))&&(Cn=n))};return{activateBrowserPlugin:function(){Cn||n()},contexts:function(){return Cn?[{schema:"iglu:org.ietf/http_client_hints/jsonschema/1-0-0",data:Cn}]:[]}}}
/*!
* Attaches Performance Timing data to Snowplow events v3.12.0 (http://bit.ly/sp-js)
* Attaches Performance Timing data to Snowplow events v3.24.2 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang
* Licensed under BSD-3-Clause
*/function Se(){return{contexts:function(){return n=window,e=n.performance||n.mozPerformance||n.msPerformance||n.webkitPerformance,t=e.timing,e?[{schema:"iglu:org.w3/PerformanceTiming/jsonschema/1-0-0",data:{navigationStart:t.navigationStart,redirectStart:t.redirectStart,redirectEnd:t.redirectEnd,fetchStart:t.fetchStart,domainLookupStart:t.domainLookupStart,domainLookupEnd:t.domainLookupEnd,connectStart:t.connectStart,secureConnectionStart:t.secureConnectionStart,connectEnd:t.connectEnd,requestStart:t.requestStart,responseStart:t.responseStart,responseEnd:t.responseEnd,unloadEventStart:t.unloadEventStart,unloadEventEnd:t.unloadEventEnd,domLoading:t.domLoading,domInteractive:t.domInteractive,domContentLoadedEventStart:t.domContentLoadedEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domComplete:t.domComplete,loadEventStart:t.loadEventStart,loadEventEnd:t.loadEventEnd,msFirstPaint:t.msFirstPaint,chromeFirstPaint:t.chromeFirstPaint,requestEnd:t.requestEnd,proxyStart:t.proxyStart,proxyEnd:t.proxyEnd}}]:[];var n,e,t}}}class Te{constructor(n){var e,t,r;if(this.snowplow=null,this.options={appId:"",host:"",hasCookieConsent:!1,trackerId:ye,pagePingTracking:!0},this.defaultPlugins={clientHints:!0,linkTracking:!0,performanceTiming:!0,errorTracking:!0},this.refreshLinkClickTracking=ce.bind(this),this.options={...this.options,...n},this.options.plugins={...this.defaultPlugins,...null!=(e=null==n?void 0:n.plugins)?e:{}},!this.trackingEnabled)return;const{appId:o,host:i,hasCookieConsent:a=!1,trackerId:c=ye,pagePingTracking:u,plugins:s}=this.options;if(!o)return void console.warn("GitLab: No appId was provided");if(!i)return void console.warn("GitLab: No host was provided");const l=function(n,e,t){const r={clientHints:ke,linkTracking:ae,performanceTiming:Se,errorTracking:ge},o={appId:n,plugins:Object.entries(t).filter((([,n])=>n)).map((([n])=>r[n]())),maxLocalStorageQueueSize:100,customHeaders:{"X-GitLab-AppId":n},contexts:{webPage:!0,browser:!0}};return e?o:{...o,anonymousTracking:{withServerAnonymisation:!0},stateStorageStrategy:"none",eventMethod:"post"}}(o,a,s);this.snowplow=re(c,i,l),"boolean"==typeof u&&u?ee(we):"object"==typeof u&&ee({minimumVisitLength:null!=(t=u.minimumVisitLength)?t:we.minimumVisitLength,heartbeatDelay:null!=(r=u.heartbeatDelay)?r:we.heartbeatDelay});const{linkTracking:f,errorTracking:d}=s;var g,v;f&&(void 0===g&&(g={}),void 0===v&&(v=Object.keys(oe)),v.forEach((function(n){oe[n]&&(oe[n].sharedState.hasLoaded?(le(g,n),fe(n)):oe[n].sharedState.registeredOnLoadHandlers.push((function(){le(g,n),fe(n)})))}))),d&&pe()}get trackingEnabled(){return!me()}track(n,{...e}={}){var t,r;this.trackingEnabled&&(t={event:{schema:he.CUSTOM_EVENT,data:{name:n,props:{...e}}}},Kn(r,(function(n){n.core.track(Q({event:t.event}),t.context,t.timestamp)})))}trackError({...n}){var e;this.trackingEnabled&&((null==(e=this.options.plugins)?void 0:e.errorTracking)?ve({...n}):console.warn("GitLab: Error tracking plugin is not enabled"))}addCookieConsent(){var n,e;n={stateStorageStrategy:"cookieAndLocalStorage"},Kn(e,(function(e){e.disableAnonymousTracking(n)}))}page(n){this.trackingEnabled&&function(n,e){Kn(e,(function(e){e.trackPageView(n)}))}(n)}identify(n,e={}){var t,r,o;if(this.trackingEnabled&&(function(n,e){Kn(e,(function(e){e.setUserId(n)}))}(n),(o=e)&&("string"==typeof o||Array.isArray(o)?0!==o.length:"object"!=typeof o||0!==Object.keys(o).length))){let n={schema:he.USER_CONTEXT,data:e};t=[n],Kn(r,(function(n){n.core.addGlobalContexts(t)}))}}setCustomUrl(n){this.trackingEnabled&&function(n,e){Kn(e,(function(e){e.setCustomUrl(n)}))}(n)}setReferrerUrl(n){this.trackingEnabled&&function(n,e){Kn(e,(function(e){e.setReferrerUrl(n)}))}(n)}setDocumentTitle(n){this.trackingEnabled&&function(n,e){Kn(e,(function(e){e.setDocumentTitle(n)}))}(n)}}n.glClientSDK=function(n){return new Te(n)}}));
*/function In(){return{contexts:function(){return e=window,n=e.performance||e.mozPerformance||e.msPerformance||e.webkitPerformance,t=n.timing,n?[{schema:"iglu:org.w3/PerformanceTiming/jsonschema/1-0-0",data:{navigationStart:t.navigationStart,redirectStart:t.redirectStart,redirectEnd:t.redirectEnd,fetchStart:t.fetchStart,domainLookupStart:t.domainLookupStart,domainLookupEnd:t.domainLookupEnd,connectStart:t.connectStart,secureConnectionStart:t.secureConnectionStart,connectEnd:t.connectEnd,requestStart:t.requestStart,responseStart:t.responseStart,responseEnd:t.responseEnd,unloadEventStart:t.unloadEventStart,unloadEventEnd:t.unloadEventEnd,domLoading:t.domLoading,domInteractive:t.domInteractive,domContentLoadedEventStart:t.domContentLoadedEventStart,domContentLoadedEventEnd:t.domContentLoadedEventEnd,domComplete:t.domComplete,loadEventStart:t.loadEventStart,loadEventEnd:t.loadEventEnd,msFirstPaint:t.msFirstPaint,chromeFirstPaint:t.chromeFirstPaint,requestEnd:t.requestEnd,proxyStart:t.proxyStart,proxyEnd:t.proxyEnd}}]:[];var e,n,t}}}class On{constructor(e){var n,t,r;if(this.snowplow=null,this.options={appId:"",host:"",hasCookieConsent:!1,trackerId:xn,pagePingTracking:!0},this.defaultPlugins={clientHints:!0,linkTracking:!0,performanceTiming:!0,errorTracking:!0},this.refreshLinkClickTracking=dn.bind(this),this.options={...this.options,...e},this.options.plugins={...this.defaultPlugins,...null!=(n=null==e?void 0:e.plugins)?n:{}},!this.trackingEnabled)return;const{appId:o,host:i,hasCookieConsent:a=!1,trackerId:c=xn,pagePingTracking:u,plugins:s}=this.options;if(!o)return void console.warn("GitLab: No appId was provided");if(!i)return void console.warn("GitLab: No host was provided");const l=function(e,n,t){const r={clientHints:An,linkTracking:fn,performanceTiming:In,errorTracking:wn},o={appId:e,plugins:Object.entries(t).filter((([,e])=>e)).map((([e])=>r[e]())),maxLocalStorageQueueSize:100,customHeaders:{"X-GitLab-AppId":e},contexts:{webPage:!0,browser:!0}};return n?o:{...o,anonymousTracking:{withServerAnonymisation:!0},stateStorageStrategy:"none",eventMethod:"post"}}(o,a,s);this.snowplow=un(c,i,l),"boolean"==typeof u&&u?an(En):"object"==typeof u&&an({minimumVisitLength:null!=(t=u.minimumVisitLength)?t:En.minimumVisitLength,heartbeatDelay:null!=(r=u.heartbeatDelay)?r:En.heartbeatDelay});const{linkTracking:f,errorTracking:d}=s;var v,g;f&&(void 0===v&&(v={}),void 0===g&&(g=Object.keys(sn)),g.forEach((function(e){sn[e]&&(sn[e].sharedState.hasLoaded?(pn(v,e),mn(e)):sn[e].sharedState.registeredOnLoadHandlers.push((function(){pn(v,e),mn(e)})))}))),d&&kn()}get trackingEnabled(){return!Sn()}track(e,{...n}={}){var t,r;this.trackingEnabled&&(t={event:{schema:Tn.CUSTOM_EVENT,data:{name:e,props:{...n}}}},tn(r,(function(e){e.core.track(Q({event:t.event}),t.context,t.timestamp)})))}trackError({...e}){var n;this.trackingEnabled&&((null==(n=this.options.plugins)?void 0:n.errorTracking)?bn({...e}):console.warn("GitLab: Error tracking plugin is not enabled"))}addCookieConsent(){var e,n;e={stateStorageStrategy:"cookieAndLocalStorage"},tn(n,(function(n){n.disableAnonymousTracking(e)}))}page(e){this.trackingEnabled&&function(e,n){tn(n,(function(n){n.trackPageView(e)}))}(e)}identify(e,n={}){var t,r,o;if(this.trackingEnabled&&(function(e,n){tn(n,(function(n){n.setUserId(e)}))}(e),(o=n)&&("string"==typeof o||Array.isArray(o)?0!==o.length:"object"!=typeof o||0!==Object.keys(o).length))){let e={schema:Tn.USER_CONTEXT,data:n};t=[e],tn(r,(function(e){e.core.addGlobalContexts(t)}))}}setCustomUrl(e){this.trackingEnabled&&function(e,n){tn(n,(function(n){n.setCustomUrl(e)}))}(e)}setReferrerUrl(e){this.trackingEnabled&&function(e,n){tn(n,(function(n){n.setReferrerUrl(e)}))}(e)}setDocumentTitle(e){this.trackingEnabled&&function(e,n){tn(n,(function(n){n.setDocumentTitle(e)}))}(e)}}e.glClientSDK=function(e){return new On(e)}}));
{
"name": "@gitlab/application-sdk-browser",
"version": "0.3.2",
"version": "0.3.3",
"description": "Client side Browser SDK for GitLab Application services",

@@ -58,8 +58,8 @@ "license": "MIT",

"dependencies": {
"@snowplow/browser-plugin-client-hints": "^3.9.0",
"@snowplow/browser-plugin-error-tracking": "^3.9.0",
"@snowplow/browser-plugin-link-click-tracking": "^3.9.0",
"@snowplow/browser-plugin-performance-timing": "^3.9.0",
"@snowplow/browser-tracker": "^3.9.0"
"@snowplow/browser-plugin-client-hints": "^3.24.2",
"@snowplow/browser-plugin-error-tracking": "^3.24.2",
"@snowplow/browser-plugin-link-click-tracking": "^3.24.2",
"@snowplow/browser-plugin-performance-timing": "^3.24.2",
"@snowplow/browser-tracker": "^3.24.2"
}
}

@@ -21,5 +21,5 @@ # GitLab Application SDK - Browser

```
```bash
yarn examples:install
yarn examples:serve
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc