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

@snowplow/browser-tracker

Package Overview
Dependencies
Maintainers
3
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snowplow/browser-tracker - npm Package Compare versions

Comparing version 3.13.1 to 3.13.2-dev.0

2

dist/index.module.js
/*!
* Browser tracker for Snowplow v3.13.1 (http://bit.ly/sp-js)
* Browser tracker for Snowplow v3.13.2-dev.0 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -4,0 +4,0 @@ * Licensed under BSD-3-Clause

/*!
* Browser tracker for Snowplow v3.13.1 (http://bit.ly/sp-js)
* Browser tracker for Snowplow v3.13.2-dev.0 (http://bit.ly/sp-js)
* Copyright 2022 Snowplow Analytics Ltd, 2010 Anthon Pang

@@ -7,81 +7,82 @@ * Licensed under BSD-3-Clause

'use strict';(function(w,T){"object"===typeof exports&&"undefined"!==typeof module?T(exports):"function"===typeof define&&define.amd?define(["exports"],T):(w="undefined"!==typeof globalThis?globalThis:w||self,T(w.snowplowBrowserTracking={}))})(this,function(w){function T(a,b,c){if(c||2===arguments.length)for(var e=0,f=b.length,g;e<f;e++)!g&&e in b||(g||(g=Array.prototype.slice.call(b,0,e)),g[e]=b[e]);return a.concat(g||Array.prototype.slice.call(b))}function Jc(a){var b=0,c=0;var e="";var f=[];if(!a)return a;
a+="";do{var g=ma.indexOf(a.charAt(b++));var h=ma.indexOf(a.charAt(b++));e=ma.indexOf(a.charAt(b++));var m=ma.indexOf(a.charAt(b++));var r=g<<18|h<<12|e<<6|m;g=r>>16&255;h=r>>8&255;r&=255;64===e?f[c++]=String.fromCharCode(g):64===m?f[c++]=String.fromCharCode(g,h):f[c++]=String.fromCharCode(g,h,r)}while(b<a.length);e=f.join("");return function(n){return decodeURIComponent(n.split("").map(function(A){return"%"+("00"+A.charCodeAt(0).toString(16)).slice(-2)}).join(""))}(e.replace(/\0+$/,""))}function Ra(){var a=
'use strict';(function(w,U){"object"===typeof exports&&"undefined"!==typeof module?U(exports):"function"===typeof define&&define.amd?define(["exports"],U):(w="undefined"!==typeof globalThis?globalThis:w||self,U(w.snowplowBrowserTracking={}))})(this,function(w){function U(a,b,c){if(c||2===arguments.length)for(var e=0,f=b.length,g;e<f;e++)!g&&e in b||(g||(g=Array.prototype.slice.call(b,0,e)),g[e]=b[e]);return a.concat(g||Array.prototype.slice.call(b))}function Jc(a){var b=0,c=0;var e="";var f=[];if(!a)return a;
a+="";do{var g=na.indexOf(a.charAt(b++));var h=na.indexOf(a.charAt(b++));e=na.indexOf(a.charAt(b++));var m=na.indexOf(a.charAt(b++));var r=g<<18|h<<12|e<<6|m;g=r>>16&255;h=r>>8&255;r&=255;64===e?f[c++]=String.fromCharCode(g):64===m?f[c++]=String.fromCharCode(g,h):f[c++]=String.fromCharCode(g,h,r)}while(b<a.length);e=f.join("");return function(n){return decodeURIComponent(n.split("").map(function(z){return"%"+("00"+z.charCodeAt(0).toString(16)).slice(-2)}).join(""))}(e.replace(/\0+$/,""))}function Ua(){var a=
{},b=[],c=[],e=[],f,g=function(h,m){null!=m&&""!==m&&(a[h]=m)};return{add:g,addDict:function(h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&g(m,h[m])},addJson:function(h,m,r){r&&Xb(r)&&(h={keyIfEncoded:h,keyIfNotEncoded:m,json:r},c.push(h),b.push(h))},addContextEntity:function(h){e.push(h)},getPayload:function(){return a},getJson:function(){return b},withJsonProcessor:function(h){f=h},build:function(){null===f||void 0===f?void 0:f(this,c,e);return a}}}function Kc(a){return function(b,
c,e){for(var f=function(n,A,v){n=JSON.stringify(n);if(a){v=b.add;if(n){var t=0,k=0,x=[];if(n){n=unescape(encodeURIComponent(n));do{var I=n.charCodeAt(t++);var P=n.charCodeAt(t++);var G=n.charCodeAt(t++);var H=I<<16|P<<8|G;I=H>>18&63;P=H>>12&63;G=H>>6&63;H&=63;x[k++]=ma.charAt(I)+ma.charAt(P)+ma.charAt(G)+ma.charAt(H)}while(t<n.length);t=x.join("");n=n.length%3;n=(n?t.slice(0,n-3):t)+"===".slice(n||3)}n=n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}v.call(b,A,n)}else b.add(v,n)},g=function(n,
A){if(!n){var v=b.getPayload();if(a?v.cx:v.co){n=JSON;var t=n.parse;if(a){if(v=v.cx){switch(4-v.length%4){case 2:v+="==";break;case 3:v+="="}v=v.replace(/-/g,"+").replace(/_/g,"/");v=Jc(v)}}else v=v.co;n=t.call(n,v)}else n=void 0}n?n.data=n.data.concat(A.data):n=A;return n},h=void 0,m=0;m<c.length;m++){var r=c[m];"cx"===r.keyIfEncoded?h=g(h,r.json):f(r.json,r.keyIfEncoded,r.keyIfNotEncoded)}c.length=0;e.length&&(c={schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:T([],e,
!0)},h=g(h,c),e.length=0);h&&f(h,"cx","co")}}function Xb(a){if(!Yb(a))return!1;for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b))return!0;return!1}function Yb(a){return"undefined"!==typeof a&&null!==a&&(a.constructor==={}.constructor||a.constructor===[].constructor)}function Lc(){var a=[],b=[];return{getGlobalPrimitives:function(){return a},getConditionalProviders:function(){return b},addGlobalContexts:function(c){for(var e=[],f=[],g=0;g<c.length;g++){var h=c[g];Zb(h)?e.push(h):Ba(h)&&f.push(h)}a=
a.concat(f);b=b.concat(e)},clearGlobalContexts:function(){b=[];a=[]},removeGlobalContexts:function(c){for(var e=function(g){Zb(g)?b=b.filter(function(h){return JSON.stringify(h)!==JSON.stringify(g)}):Ba(g)&&(a=a.filter(function(h){return JSON.stringify(h)!==JSON.stringify(g)}))},f=0;f<c.length;f++)e(c[f])},getApplicableContexts:function(c){a:{var e=0;for(var f=c.getJson();e<f.length;e++){var g=f[e];if("ue_px"===g.keyIfEncoded&&"object"===typeof g.json.data&&(g=g.json.data.schema,"string"==typeof g)){e=
g;break a}}e=""}f=c.getPayload().e;g="string"===typeof f?f:"";f=[];var h=ib(a,c,g,e);f.push.apply(f,h);c=Mc(b,c,g,e);f.push.apply(f,c);return f}}}function Nc(a){return{addPluginContexts:function(b){var c=b?T([],b,!0):[];a.forEach(function(e){try{e.contexts&&c.push.apply(c,e.contexts())}catch(f){ba.error("Error adding plugin contexts",f)}});return c}}}function Oc(a){if("*"===a[0]||"*"===a[1])return!1;if(0<a.slice(2).length){var b=!1,c=0;for(a=a.slice(2);c<a.length;c++)if("*"===a[c])b=!0;else if(b)return!1;
return!0}return 2==a.length?!0:!1}function $b(a){return(a=a.split("."))&&1<a.length?Oc(a):!1}function ac(a){a=/^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(a);if(null!==a&&$b(a[1]))return a.slice(1,6)}function jb(a){if(a=ac(a)){var b=a[0];return 5===a.length&&$b(b)}return!1}function Pc(a){return Array.isArray(a)&&a.every(function(b){return"string"===typeof b})}function bc(a){return Pc(a)?a.every(function(b){return jb(b)}):
"string"===typeof a?jb(a):!1}function Ha(a){return Xb(a)&&"schema"in a&&"data"in a?"string"===typeof a.schema&&"object"===typeof a.data:!1}function Qc(a){var b=0;if(null!=a&&"object"===typeof a&&!Array.isArray(a)){if(Object.prototype.hasOwnProperty.call(a,"accept"))if(bc(a.accept))b+=1;else return!1;if(Object.prototype.hasOwnProperty.call(a,"reject"))if(bc(a.reject))b+=1;else return!1;return 0<b&&2>=b}return!1}function Sa(a){return"function"===typeof a&&1>=a.length}function Ba(a){return Sa(a)||Ha(a)}
function cc(a){return Array.isArray(a)&&2===a.length?Array.isArray(a[1])?Sa(a[0])&&a[1].every(Ba):Sa(a[0])&&Ba(a[1]):!1}function dc(a){return Array.isArray(a)&&2===a.length?Qc(a[0])?Array.isArray(a[1])?a[1].every(Ba):Ba(a[1]):!1:!1}function Zb(a){return cc(a)||dc(a)}function Rc(a,b){var c=0,e=0,f=a.accept;Array.isArray(f)?a.accept.some(function(g){return Ta(g,b)})&&e++:"string"===typeof f&&Ta(f,b)&&e++;f=a.reject;Array.isArray(f)?a.reject.some(function(g){return Ta(g,b)})&&c++:"string"===typeof f&&
Ta(f,b)&&c++;return 0<e&&0===c?!0:!1}function Ta(a,b){if(!jb(a))return!1;a=ac(a);b=/^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(b);b=null!==b?b.slice(1,6):void 0;if(a&&b){if(!Sc(a[0],b[0]))return!1;for(var c=1;5>c;c++)if(!ec(a[c],b[c]))return!1;return!0}return!1}function Sc(a,b){b=b.split(".");a=a.split(".");if(b&&a){if(b.length!==a.length)return!1;for(var c=0;c<a.length;c++)if(!ec(b[c],a[c]))return!1;return!0}return!1}function ec(a,
b){return a&&b&&"*"===a||a===b}function fc(a){return Array.isArray(a)?a:[a]}function ib(a,b,c,e){var f;a=fc(a).map(function(g){a:if(Ha(g))g=[g];else{if(Sa(g)){b:{var h=void 0;try{var m={event:b.getPayload(),eventType:c,eventSchema:e};h=g(m);if(Array.isArray(h)&&h.every(Ha)||Ha(h)){var r=h;break b}r=void 0;break b}catch(n){}r=void 0}if(Ha(r)){g=[r];break a}else if(Array.isArray(r)){g=r;break a}}g=void 0}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&&
g.filter(Boolean)}))}function Mc(a,b,c,e){var f;a=fc(a).map(function(g){a:{if(cc(g)){var h=g[0],m=!1;try{var r={event:b.getPayload(),eventType:c,eventSchema:e};m=h(r)}catch(n){m=!1}if(!0===m){g=ib(g[1],b,c,e);break a}}else if(dc(g)&&Rc(g[0],e)){g=ib(g[1],b,c,e);break a}g=[]}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&&g.filter(Boolean)}))}function Tc(a){return null==a?{type:"dtm",value:(new Date).getTime()}:"number"===typeof a?{type:"dtm",value:a}:
"ttm"===a.type?{type:"ttm",value:a.value}:{type:"dtm",value:a.value||(new Date).getTime()}}function Uc(a){void 0===a&&(a={});var b=a.base64,c=a.corePlugins,e=null!==c&&void 0!==c?c:[];a=function(g,h,m){function r(k,x){k=A.getApplicableContexts(k);var I=[];x&&x.length&&I.push.apply(I,x);k&&k.length&&I.push.apply(I,k);return I}var n=Nc(h),A=Lc(),v=g,t={};return{track:function(k,x,I){k.withJsonProcessor(Kc(v));k.add("eid",ia.v4());k.addDict(t);I=Tc(I);k.add(I.type,I.value.toString());x=r(k,n.addPluginContexts(x));
x=x&&x.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:x}:void 0;void 0!==x&&k.addJson("cx","co",x);h.forEach(function(G){try{G.beforeTrack&&G.beforeTrack(k)}catch(H){ba.error("Plugin beforeTrack",H)}});"function"===typeof m&&m(k);var P=k.build();h.forEach(function(G){try{G.afterTrack&&G.afterTrack(P)}catch(H){ba.error("Plugin afterTrack",H)}});return P},addPayloadPair:function(k,x){t[k]=x},getBase64Encoding:function(){return v},setBase64Encoding:function(k){v=
c,e){for(var f=function(n,z,v){n=JSON.stringify(n);if(a){v=b.add;if(n){var t=0,k=0,x=[];if(n){n=unescape(encodeURIComponent(n));do{var J=n.charCodeAt(t++);var P=n.charCodeAt(t++);var H=n.charCodeAt(t++);var N=J<<16|P<<8|H;J=N>>18&63;P=N>>12&63;H=N>>6&63;N&=63;x[k++]=na.charAt(J)+na.charAt(P)+na.charAt(H)+na.charAt(N)}while(t<n.length);t=x.join("");n=n.length%3;n=(n?t.slice(0,n-3):t)+"===".slice(n||3)}n=n.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}v.call(b,z,n)}else b.add(v,n)},g=function(n,
z){if(!n){var v=b.getPayload();if(a?v.cx:v.co){n=JSON;var t=n.parse;if(a){if(v=v.cx){switch(4-v.length%4){case 2:v+="==";break;case 3:v+="="}v=v.replace(/-/g,"+").replace(/_/g,"/");v=Jc(v)}}else v=v.co;n=t.call(n,v)}else n=void 0}n?n.data=n.data.concat(z.data):n=z;return n},h=void 0,m=0;m<c.length;m++){var r=c[m];"cx"===r.keyIfEncoded?h=g(h,r.json):f(r.json,r.keyIfEncoded,r.keyIfNotEncoded)}c.length=0;e.length&&(c={schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:U([],e,
!0)},h=g(h,c),e.length=0);h&&f(h,"cx","co")}}function Xb(a){if(!Yb(a))return!1;for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b))return!0;return!1}function Yb(a){return"undefined"!==typeof a&&null!==a&&(a.constructor==={}.constructor||a.constructor===[].constructor)}function Lc(){var a=[],b=[];return{getGlobalPrimitives:function(){return a},getConditionalProviders:function(){return b},addGlobalContexts:function(c){for(var e=[],f=[],g=0;g<c.length;g++){var h=c[g];Zb(h)?e.push(h):Aa(h)&&f.push(h)}a=
a.concat(f);b=b.concat(e)},clearGlobalContexts:function(){b=[];a=[]},removeGlobalContexts:function(c){for(var e=function(g){Zb(g)?b=b.filter(function(h){return JSON.stringify(h)!==JSON.stringify(g)}):Aa(g)&&(a=a.filter(function(h){return JSON.stringify(h)!==JSON.stringify(g)}))},f=0;f<c.length;f++)e(c[f])},getApplicableContexts:function(c){a:{var e=0;for(var f=c.getJson();e<f.length;e++){var g=f[e];if("ue_px"===g.keyIfEncoded&&"object"===typeof g.json.data&&(g=g.json.data.schema,"string"==typeof g)){e=
g;break a}}e=""}f=c.getPayload().e;g="string"===typeof f?f:"";f=[];var h=lb(a,c,g,e);f.push.apply(f,h);c=Mc(b,c,g,e);f.push.apply(f,c);return f}}}function Nc(a){return{addPluginContexts:function(b){var c=b?U([],b,!0):[];a.forEach(function(e){try{e.contexts&&c.push.apply(c,e.contexts())}catch(f){ba.error("Error adding plugin contexts",f)}});return c}}}function Oc(a){if("*"===a[0]||"*"===a[1])return!1;if(0<a.slice(2).length){var b=!1,c=0;for(a=a.slice(2);c<a.length;c++)if("*"===a[c])b=!0;else if(b)return!1;
return!0}return 2==a.length?!0:!1}function $b(a){return(a=a.split("."))&&1<a.length?Oc(a):!1}function ac(a){a=/^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(a);if(null!==a&&$b(a[1]))return a.slice(1,6)}function mb(a){if(a=ac(a)){var b=a[0];return 5===a.length&&$b(b)}return!1}function Pc(a){return Array.isArray(a)&&a.every(function(b){return"string"===typeof b})}function bc(a){return Pc(a)?a.every(function(b){return mb(b)}):
"string"===typeof a?mb(a):!1}function Ia(a){return Xb(a)&&"schema"in a&&"data"in a?"string"===typeof a.schema&&"object"===typeof a.data:!1}function Qc(a){var b=0;if(null!=a&&"object"===typeof a&&!Array.isArray(a)){if(Object.prototype.hasOwnProperty.call(a,"accept"))if(bc(a.accept))b+=1;else return!1;if(Object.prototype.hasOwnProperty.call(a,"reject"))if(bc(a.reject))b+=1;else return!1;return 0<b&&2>=b}return!1}function Va(a){return"function"===typeof a&&1>=a.length}function Aa(a){return Va(a)||Ia(a)}
function cc(a){return Array.isArray(a)&&2===a.length?Array.isArray(a[1])?Va(a[0])&&a[1].every(Aa):Va(a[0])&&Aa(a[1]):!1}function dc(a){return Array.isArray(a)&&2===a.length?Qc(a[0])?Array.isArray(a[1])?a[1].every(Aa):Aa(a[1]):!1:!1}function Zb(a){return cc(a)||dc(a)}function Rc(a,b){var c=0,e=0,f=a.accept;Array.isArray(f)?a.accept.some(function(g){return Wa(g,b)})&&e++:"string"===typeof f&&Wa(f,b)&&e++;f=a.reject;Array.isArray(f)?a.reject.some(function(g){return Wa(g,b)})&&c++:"string"===typeof f&&
Wa(f,b)&&c++;return 0<e&&0===c?!0:!1}function Wa(a,b){if(!mb(a))return!1;a=ac(a);b=/^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(b);b=null!==b?b.slice(1,6):void 0;if(a&&b){if(!Sc(a[0],b[0]))return!1;for(var c=1;5>c;c++)if(!ec(a[c],b[c]))return!1;return!0}return!1}function Sc(a,b){b=b.split(".");a=a.split(".");if(b&&a){if(b.length!==a.length)return!1;for(var c=0;c<a.length;c++)if(!ec(b[c],a[c]))return!1;return!0}return!1}function ec(a,
b){return a&&b&&"*"===a||a===b}function fc(a){return Array.isArray(a)?a:[a]}function lb(a,b,c,e){var f;a=fc(a).map(function(g){a:if(Ia(g))g=[g];else{if(Va(g)){b:{var h=void 0;try{var m={event:b.getPayload(),eventType:c,eventSchema:e};h=g(m);if(Array.isArray(h)&&h.every(Ia)||Ia(h)){var r=h;break b}r=void 0;break b}catch(n){}r=void 0}if(Ia(r)){g=[r];break a}else if(Array.isArray(r)){g=r;break a}}g=void 0}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&&
g.filter(Boolean)}))}function Mc(a,b,c,e){var f;a=fc(a).map(function(g){a:{if(cc(g)){var h=g[0],m=!1;try{var r={event:b.getPayload(),eventType:c,eventSchema:e};m=h(r)}catch(n){m=!1}if(!0===m){g=lb(g[1],b,c,e);break a}}else if(dc(g)&&Rc(g[0],e)){g=lb(g[1],b,c,e);break a}g=[]}if(g&&0!==g.length)return g});return(f=[]).concat.apply(f,a.filter(function(g){return null!=g&&g.filter(Boolean)}))}function Tc(a){return null==a?{type:"dtm",value:(new Date).getTime()}:"number"===typeof a?{type:"dtm",value:a}:
"ttm"===a.type?{type:"ttm",value:a.value}:{type:"dtm",value:a.value||(new Date).getTime()}}function Uc(a){void 0===a&&(a={});var b=a.base64,c=a.corePlugins,e=null!==c&&void 0!==c?c:[];a=function(g,h,m){function r(k,x){k=z.getApplicableContexts(k);var J=[];x&&x.length&&J.push.apply(J,x);k&&k.length&&J.push.apply(J,k);return J}var n=Nc(h),z=Lc(),v=g,t={};return{track:function(k,x,J){k.withJsonProcessor(Kc(v));k.add("eid",ja.v4());k.addDict(t);J=Tc(J);k.add(J.type,J.value.toString());x=r(k,n.addPluginContexts(x));
x=x&&x.length?{schema:"iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-0",data:x}:void 0;void 0!==x&&k.addJson("cx","co",x);h.forEach(function(H){try{H.beforeTrack&&H.beforeTrack(k)}catch(N){ba.error("Plugin beforeTrack",N)}});"function"===typeof m&&m(k);var P=k.build();h.forEach(function(H){try{H.afterTrack&&H.afterTrack(P)}catch(N){ba.error("Plugin afterTrack",N)}});return P},addPayloadPair:function(k,x){t[k]=x},getBase64Encoding:function(){return v},setBase64Encoding:function(k){v=
k},addPayloadDict:function(k){for(var x in k)Object.prototype.hasOwnProperty.call(k,x)&&(t[x]=k[x])},resetPayloadPairs:function(k){t=Yb(k)?k:{}},setTrackerVersion:function(k){t.tv=k},setTrackerNamespace:function(k){t.tna=k},setAppId:function(k){t.aid=k},setPlatform:function(k){t.p=k},setUserId:function(k){t.uid=k},setScreenResolution:function(k,x){t.res=k+"x"+x},setViewport:function(k,x){t.vp=k+"x"+x},setColorDepth:function(k){t.cd=k},setTimezone:function(k){t.tz=k},setLang:function(k){t.lang=k},
setIpAddress:function(k){t.ip=k},setUseragent:function(k){t.ua=k},addGlobalContexts:function(k){A.addGlobalContexts(k)},clearGlobalContexts:function(){A.clearGlobalContexts()},removeGlobalContexts:function(k){A.removeGlobalContexts(k)}}}(null!==b&&void 0!==b?b:!0,e,a.callback);var f=U(U({},a),{addPlugin:function(g){var h,m;g=g.plugin;e.push(g);null===(h=g.logger)||void 0===h?void 0:h.call(g,ba);null===(m=g.activateCorePlugin)||void 0===m?void 0:m.call(g,f)}});null===e||void 0===e?void 0:e.forEach(function(g){var h,
m;null===(h=g.logger)||void 0===h?void 0:h.call(g,ba);null===(m=g.activateCorePlugin)||void 0===m?void 0:m.call(g,f)});return f}function Vc(a){var b=a.pageUrl,c=a.pageTitle;a=a.referrer;var e=Ra();e.add("e","pv");e.add("url",b);e.add("page",c);e.add("refr",a);return e}function Ua(a,b,c){void 0===c&&(c=63072E3);try{var e=window.localStorage,f=Date.now()+1E3*c;e.setItem("".concat(a,".expires"),f.toString());e.setItem(a,b);return!0}catch(g){return!1}}function gc(a){try{var b=window.localStorage;b.removeItem(a);
b.removeItem(a+".expires");return!0}catch(c){return!1}}function hc(a){try{return window.sessionStorage.getItem(a)}catch(b){}}function ic(a){return Number.isInteger&&Number.isInteger(a)||"number"===typeof a&&isFinite(a)&&Math.floor(a)===a}function jc(a){if(!a||"string"!==typeof a.valueOf()){a=a.text||"";var b=document.getElementsByTagName("title");b&&null!=b[0]&&(a=b[0].text)}return a}function kb(a){var b=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(a);return b?b[1]:a}function kc(a){var b=a.length;
"."===a.charAt(--b)&&(a=a.slice(0,b));"*."===a.slice(0,2)&&(a=a.slice(1));return a}function lb(a){var b=window,c=Ia("referrer",b.location.href)||Ia("referer",b.location.href);if(c)return c;if(a)return a;try{if(b.top)return b.top.document.referrer;if(b.parent)return b.parent.document.referrer}catch(e){}return document.referrer}function na(a,b,c,e){if(a.addEventListener)return a.addEventListener(b,c,e),!0;if(a.attachEvent)return a.attachEvent("on"+b,c);a["on"+b]=c}function Ia(a,b){return(a=(new RegExp("^[^#]*[?&]"+
setIpAddress:function(k){t.ip=k},setUseragent:function(k){t.ua=k},addGlobalContexts:function(k){z.addGlobalContexts(k)},clearGlobalContexts:function(){z.clearGlobalContexts()},removeGlobalContexts:function(k){z.removeGlobalContexts(k)}}}(null!==b&&void 0!==b?b:!0,e,a.callback);var f=V(V({},a),{addPlugin:function(g){var h,m;g=g.plugin;e.push(g);null===(h=g.logger)||void 0===h?void 0:h.call(g,ba);null===(m=g.activateCorePlugin)||void 0===m?void 0:m.call(g,f)}});null===e||void 0===e?void 0:e.forEach(function(g){var h,
m;null===(h=g.logger)||void 0===h?void 0:h.call(g,ba);null===(m=g.activateCorePlugin)||void 0===m?void 0:m.call(g,f)});return f}function Vc(a){var b=a.pageUrl,c=a.pageTitle;a=a.referrer;var e=Ua();e.add("e","pv");e.add("url",b);e.add("page",c);e.add("refr",a);return e}function Xa(a,b,c){void 0===c&&(c=63072E3);try{var e=window.localStorage,f=Date.now()+1E3*c;e.setItem("".concat(a,".expires"),f.toString());e.setItem(a,b);return!0}catch(g){return!1}}function gc(a){try{var b=window.localStorage;b.removeItem(a);
b.removeItem(a+".expires");return!0}catch(c){return!1}}function hc(a){try{return window.sessionStorage.getItem(a)}catch(b){}}function ic(a){return Number.isInteger&&Number.isInteger(a)||"number"===typeof a&&isFinite(a)&&Math.floor(a)===a}function jc(a){if(!a||"string"!==typeof a.valueOf()){a=a.text||"";var b=document.getElementsByTagName("title");b&&null!=b[0]&&(a=b[0].text)}return a}function nb(a){var b=/^(?:(?:https?|ftp):)\/*(?:[^@]+@)?([^:/#]+)/.exec(a);return b?b[1]:a}function kc(a){var b=a.length;
"."===a.charAt(--b)&&(a=a.slice(0,b));"*."===a.slice(0,2)&&(a=a.slice(1));return a}function ob(a){var b=window,c=Ja("referrer",b.location.href)||Ja("referer",b.location.href);if(c)return c;if(a)return a;try{if(b.top)return b.top.document.referrer;if(b.parent)return b.parent.document.referrer}catch(e){}return document.referrer}function oa(a,b,c,e){if(a.addEventListener)return a.addEventListener(b,c,e),!0;if(a.attachEvent)return a.attachEvent("on"+b,c);a["on"+b]=c}function Ja(a,b){return(a=(new RegExp("^[^#]*[?&]"+
a+"=([^&#]*)")).exec(b))?decodeURIComponent(a[1].replace(/\+/g," ")):null}function Wc(a,b){for(var c=window.location.hostname,e="_sp_root_domain_test_"+(new Date).getTime(),f="_test_value_"+(new Date).getTime(),g=c.split("."),h=g.length-2;0<=h;h--){var m=g.slice(h).join(".");da(e,f,0,"/",m,a,b);if(da(e)===f){da(e,"",-1,"/",m,a,b);c=document.cookie.split("; ");e=[];for(f=0;f<c.length;f++)"_sp_root_domain_test_"===c[f].substring(0,21)&&e.push(c[f]);c=e;for(e=0;e<c.length;e++)da(c[e],"",-1,"/",m,a,b);
return m}}return c}function da(a,b,c,e,f,g,h){return 1<arguments.length?document.cookie=a+"="+encodeURIComponent(null!==b&&void 0!==b?b:"")+(c?"; Expires="+(new Date(+new Date+1E3*c)).toUTCString():"")+(e?"; Path="+e:"")+(f?"; Domain="+f:"")+(g?"; SameSite="+g:"")+(h?"; Secure":""):decodeURIComponent((("; "+document.cookie).split("; "+a+"=")[1]||"").split(";")[0])}function Xc(){try{var a=!!window.localStorage}catch(c){a=!0}if(!a)return!1;try{var b=window.localStorage;b.setItem("modernizr","modernizr");
b.removeItem("modernizr");return!0}catch(c){return!1}}function Yc(a,b,c,e,f,g,h,m,r,n,A,v,t,k,x,I){function P(q){var z=Object.keys(q).map(function(y){return[y,q[y]]}).reduce(function(y,u){y[u[0]]=u[1].toString();return y},{});return{evt:z,bytes:G(JSON.stringify(z))}}function G(q){for(var z=0,y=0;y<q.length;y++){var u=q.charCodeAt(y);127>=u?z+=1:2047>=u?z+=2:55296<=u&&57343>=u?(z+=4,y++):z=65535>u?z+3:z+4}return z}function H(q){for(void 0===q&&(q=!1);D.length&&"string"!==typeof D[0]&&"object"!==typeof D[0];)D.shift();
if(1>D.length)Q=!1;else{if(!V||"string"!==typeof V.valueOf())throw"No collector configured";Q=!0;if(sa){var z=function(M){for(var ca=0,Ca=0;ca<M.length&&!(Ca+=M[ca].bytes,Ca>=h);)ca+=1;return ca},y=void 0;if(ta(D)){y=V;var u=F(y,!0,q);var J=z(D)}else y=Ja(D[0]),u=F(y,!1,q),J=1;var N=setTimeout(function(){u.abort();Q=!1},A),ea=function(M){for(var ca=0;ca<M;ca++)D.shift();c&&Ua(ua,JSON.stringify(D.slice(0,n)))};u.onreadystatechange=function(){if(4===u.readyState&&200<=u.status)if(clearTimeout(N),300>
u.status)ea(J),H();else{var M=u.status;M=200<=M&&300>M?!1:x.includes(M)?!0:!I.includes(M);M||(ba.error("Status ".concat(u.status,", will not retry.")),ea(J));Q=!1}};if(ta(D)){if(z=D.slice(0,J),0<z.length){q=!1;z=z.map(function(M){return M.evt});if(Va){var Ka=new Blob([W(fa(z))],{type:"application/json"});try{q=navigator.sendBeacon(y,Ka)}catch(M){q=!1}}!0===q?(ea(J),H()):u.send(W(fa(z)))}}else u.send()}else if(v||ta(D))Q=!1;else{y=new Image(1,1);var ha=!0;y.onload=function(){ha&&(ha=!1,D.shift(),c&&
Ua(ua,JSON.stringify(D.slice(0,n))),H())};y.onerror=function(){ha&&(Q=ha=!1)};y.src=Ja(D[0]);setTimeout(function(){ha&&Q&&(ha=!1,H())},A)}}}function F(q,z,y){var u=new XMLHttpRequest;z?(u.open("POST",q,!y),u.setRequestHeader("Content-Type","application/json; charset=UTF-8")):u.open("GET",q,!y);u.withCredentials=k;v&&u.setRequestHeader("SP-Anonymous","*");for(var J in t)Object.prototype.hasOwnProperty.call(t,J)&&u.setRequestHeader(J,t[J]);return u}function W(q){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",
data:q})}function fa(q){for(var z=(new Date).getTime().toString(),y=0;y<q.length;y++)q[y].stm=z;return q}function Ja(q){return r?V+q.replace("?","?stm="+(new Date).getTime()+"&"):V+q}function Wa(q){function z(u,J,N){return(N=N.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))&&N.length?parseInt(N[0])<=u||parseInt(N[0])===u&&parseInt(N[1])<=J:!1}function y(u){return u.match("Version/.* Safari/")&&!u.match("Chrom(e|ium)")}return function(u,J){return(J=J.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&&
J.length?parseInt(J[0])<=u:!1}(13,q)||z(10,15,q)&&y(q)}var Q=!1,V,D=[];e="string"===typeof e?e.toLowerCase():e;var va=!0===e||"beacon"===e||"true"===e,Va=!(!(va&&window.navigator&&window.navigator.sendBeacon)||Wa(window.navigator.userAgent))&&va,sa=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),wa="get"!==e&&sa&&("post"===e||va),oa=wa?f:"/i",ua="snowplowOutQueue_".concat(a,"_").concat(wa?"post2":"get");va&&(t={});g=c&&Xc()&&wa&&g||1;if(c)try{var La=window.localStorage.getItem(ua);
D=La?JSON.parse(La):[]}catch(q){}Array.isArray(D)||(D=[]);b.outQueues.push(D);sa&&1<g&&b.bufferFlushers.push(function(q){Q||H(q)});var ta=function(q){return"object"===typeof q[0]};return{enqueueRequest:function(q,z){V=z+oa;if(wa){q=P(q);if(q.bytes>=h){ba.warn("Event ("+q.bytes+"B) too big, max is "+h);z=q;F(V,!0,!1).send(W(fa([z.evt])));return}D.push(q)}else{var y="?";var u={co:!0,cx:!0},J=!0,N;for(N in q)q.hasOwnProperty(N)&&!u.hasOwnProperty(N)&&(J?J=!1:y+="&",y+=encodeURIComponent(N)+"="+encodeURIComponent(q[N]));
for(var ea in u)q.hasOwnProperty(ea)&&u.hasOwnProperty(ea)&&(y+="&"+ea+"="+encodeURIComponent(q[ea]));if(0<m&&(u=Ja(y),u=G(u),u>=m)){ba.warn("Event ("+u+"B) too big, max is "+m);sa&&(q=P(q),F(z+f,!0,!1).send(W(fa([q.evt]))));return}D.push(y)}z=!1;c&&(z=Ua(ua,JSON.stringify(D.slice(0,n))));Q||z&&!(D.length>=g)||H()},executeQueue:function(){Q||H()},setUseLocalStorage:function(q){c=q},setAnonymousTracking:function(q){v=q},setCollectorUrl:function(q){V=q+oa},setBufferSize:function(q){g=q}}}function lc(a,
b,c){if("translate.googleusercontent.com"===a)""===c&&(c=b),a=(a=/^(?:https?|ftp)(?::\/*(?:[^?]+))([?][^#]+)/.exec(b))&&1<(null===a||void 0===a?void 0:a.length)?Ia("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=kb(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"===a)b=document.links[0].href,a=kb(b);return[a,b,c]}function Zc(a,b,c,e){var f=Math.round((new Date).getTime()/1E3);a?(a=a.split("."),a.unshift("0")):a=["1",b,f,e,f,"",c];a[6]&&"undefined"!==a[6]||(a[6]=ia.v4());a[7]&&"undefined"!==
a[7]||(a[7]="");a[8]&&"undefined"!==a[8]||(a[8]="");a[9]&&"undefined"!==a[9]||(a[9]="");a[10]&&"undefined"!==a[10]||(a[10]=0);var g=function(h,m){h=parseInt(h);return isNaN(h)?m:h};b=function(h){return h?g(h,void 0):void 0};return[a[0],a[1],g(a[2],f),g(a[3],e),g(a[4],f),b(a[5]),a[6],a[7],a[8],b(a[9]),g(a[10],0)]}function Ma(a,b){void 0===b&&(b={memorizedVisitCount:1});b=b.memorizedVisitCount;"0"===a[0]?(a[7]=a[6],a[5]=a[4],a[3]++):a[3]=b;b=ia.v4();a[6]=b;a[10]=0;a[8]="";a[9]=void 0;return b}function mb(a){a[4]=
Math.round((new Date).getTime()/1E3)}function mc(a,b,c){var e=a[9];return{userId:c?"00000000-0000-0000-0000-000000000000":a[1],sessionId:a[6],eventIndex:a[10],sessionIndex:a[3],previousSessionId:c?null:a[7]||null,storageMechanism:"localStorage"==b?"LOCAL_STORAGE":"COOKIE_1",firstEventId:a[8]||null,firstEventTimestamp:e?(new Date(e)).toISOString():null}}function nb(){var a=ob;if("innerWidth"in window){var b=window.innerWidth;var c=window.innerHeight}else c=document.documentElement||document.body,b=
c.clientWidth,c=c.clientHeight;a=a(0<=b&&0<=c?b+"x"+c:null);b=ob;var e=document.documentElement,f=document.body;c=Math.max(e.clientWidth,e.offsetWidth,e.scrollWidth);e=Math.max(e.clientHeight,e.offsetHeight,e.scrollHeight,f?Math.max(f.offsetHeight,f.scrollHeight):0);c=isNaN(c)||isNaN(e)?"":c+"x"+e;return{viewport:a,documentSize:b(c),resolution:ob(screen.width+"x"+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}}function ob(a){return a&&a.split("x").map(function(b){return Math.floor(Number(b))}).join("x")}function $c(a,b,c,e,f,g){void 0===g&&(g={});var h=[];a=function(r,n,A,v,t,k){function x(){xa=lc(window.location.hostname,window.location.href,lb());xa[1]!==pa&&(Na=
lb(pa));nc=kc(xa[0]);pa=xa[1]}function I(d){var l=(new Date).getTime();d=d.currentTarget;if(null===d||void 0===d?0:d.href){l="_sp="+(Xa+"."+l);var p=d.href.split("#"),B=p[0].split("?"),E=B.shift();if(B=B.join("?")){for(var L=!0,X=B.split("&"),R=0;R<X.length;R++)if("_sp="===X[R].substr(0,4)){L=!1;X[R]=l;B=X.join("&");break}L&&(B=l+"&"+B)}else B=l;p[0]=E+"?"+B;l=p.join("#");d.href=l}}function P(d){for(var l=0;l<document.links.length;l++){var p=document.links[l];!p.spDecorationEnabled&&d(p)&&(na(p,"click",
I,!0),na(p,"mousedown",I,!0),p.spDecorationEnabled=!0)}}function G(d){if(oc){var l=/#.*/;d=d.replace(l,"")}pc&&(l=/[{}]/g,d=d.replace(l,""));return d}function H(d){return(d=/^([a-z]+):/.exec(d))?d[1]:null}function F(d){d=Da+d+"."+ya;if("localStorage"==K){try{var l=window.localStorage,p=l.getItem(d+".expires");if(null===p||+p>Date.now())var B=l.getItem(d);else l.removeItem(d),l.removeItem(d+".expires"),B=void 0}catch(E){B=void 0}return B}if("cookie"==K||"cookieAndLocalStorage"==K)return da(d)}function W(){x();
ya=ad((Oa||nc)+(pb||"/")).slice(0,4)}function fa(){Ya=(new Date).getTime()}function Ja(){var d=Wa(),l=d[0];l<Za?Za=l:l>$a&&($a=l);d=d[1];d<ab?ab=d:d>bb&&(bb=d);fa()}function Wa(){var d=document.documentElement;return d?[d.scrollLeft||window.pageXOffset,d.scrollTop||window.pageYOffset]:[0,0]}function Q(){var d=Wa(),l=d[0];$a=Za=l;bb=ab=d=d[1]}function V(){return va(Da+"ses."+ya,"*",qc)}function D(d){var l=Da+"id."+ya;d.shift();d=d.join(".");return va(l,d,rc)}function va(d,l,p){return S&&!za?!1:"localStorage"==
K?Ua(d,l,p):"cookie"==K||"cookieAndLocalStorage"==K?(da(d,l,p,pb,Oa,cb,db),-1!==document.cookie.indexOf("".concat(d,"="))?!0:!1):!1}function Va(d){var l=Da+"id."+ya,p=Da+"ses."+ya;gc(l);gc(p);da(l,"",-1,"/",Oa,cb,db);da(p,"",-1,"/",Oa,cb,db);null!==d&&void 0!==d&&d.preserveSession||(ja=ia.v4(),Y=1);null!==d&&void 0!==d&&d.preserveUser||(Xa=S?"":ia.v4(),Aa=null)}function sa(d){d&&d.stateStorageStrategy&&(k.stateStorageStrategy=d.stateStorageStrategy,K=sc(k));S=!!k.anonymousTracking;za=tc(k);qb=uc(k);
qa.setUseLocalStorage("localStorage"==K||"cookieAndLocalStorage"==K);qa.setAnonymousTracking(qb)}function wa(){if(!S||za){var d="none"!=K&&!!F("ses"),l=oa();if(l[1])var p=l[1];else p=S?"":ia.v4(),l[1]=p;Xa=p;ja=d?l[6]:Ma(l);Y=l[3];"none"!=K&&(V(),mb(l),D(l))}}function oa(){if("none"==K)return["1","",0,0,0,void 0,"","","",void 0,0];var d=F("id")||void 0;return Zc(d,Xa,ja,Y)}function ua(d){return 0===d.indexOf("http")?d:("https:"===document.location.protocol?"https":"http")+"://"+d}function La(){vc&&
null!=t.pageViewId||(t.pageViewId=ia.v4())}function ta(){null==t.pageViewId&&(t.pageViewId=ia.v4());return t.pageViewId}function q(){if("none"===K||S||!wc)return null;var d=hc("_sp_tab_id");if(!d){d=ia.v4();try{window.sessionStorage.setItem("_sp_tab_id",d)}catch(l){}d=hc("_sp_tab_id")}return d||null}function z(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:ta()}}]}}}function y(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/1-0-0",
data:U(U({},nb()),{tabId:q()})}]}}}function u(d){var l=d.title,p=d.context,B=d.timestamp;d=d.contextCallback;x();xc&&La();xc=!0;Ea=document.title;Pa=l;l=jc(Pa||Ea);Z.track(Vc({pageUrl:G(Fa||pa),pageTitle:l,referrer:G(eb||Na)}),(p||[]).concat(d?d():[]),B);B=new Date;l=!1;if(aa.enabled&&!aa.installed){l=aa.installed=!0;var E={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var X=!1,R=Object.defineProperty({},"passive",{get:function(){X=!0},set:function(){}}),
Ga=function(){};window.addEventListener("testPassiveEventSupport",Ga,R);window.removeEventListener("testPassiveEventSupport",Ga,R);E.hasSupport=X}}};E.update();var L="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(E,"hasSupport")?na(document,L,fa,{passive:!0}):na(document,L,fa);Q();L=function(X,R){void 0===R&&(R=fa);return function(Ga){return na(document,Ga,R)}};"click mouseup mousedown mousemove keypress keydown keyup touchend touchstart".split(" ").forEach(L(document));
["resize","focus","blur"].forEach(L(window));L(window,Ja)("scroll")}if(aa.enabled&&(bd||l))for(B in Ya=B.getTime(),B=void 0,aa.configurations)if(l=aa.configurations[B])window.clearInterval(l.activityInterval),J(l,p,d)}function J(d,l,p){var B=function(L,X){x();L({context:X,pageViewId:ta(),minXOffset:Za,minYOffset:ab,maxXOffset:$a,maxYOffset:bb});Q()},E=function(){Ya+d.configHeartBeatTimer>(new Date).getTime()&&B(d.callback,(l||[]).concat(p?p():[]))};d.activityInterval=0!=d.configMinimumVisitLength?
window.setTimeout(function(){Ya+d.configMinimumVisitLength>(new Date).getTime()&&B(d.callback,(l||[]).concat(p?p():[]));d.activityInterval=window.setInterval(E,d.configHeartBeatTimer)},d.configMinimumVisitLength):window.setInterval(E,d.configHeartBeatTimer)}function N(d){var l=d.minimumVisitLength,p=d.heartbeatDelay;d=d.callback;if(ic(l)&&ic(p))return{configMinimumVisitLength:1E3*l,configHeartBeatTimer:1E3*p,callback:d};ba.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}
function ea(d){var l=d.context,p=d.minXOffset,B=d.minYOffset,E=d.maxXOffset,L=d.maxYOffset;d=document.title;d!==Ea&&(Ea=d,Pa=void 0);d=Z;var X=d.track,R=G(Fa||pa),Ga=jc(Pa||Ea),cd=G(eb||Na);p=Math.round(p);E=Math.round(E);B=Math.round(B);L=Math.round(L);var ka=Ra();ka.add("e","pp");ka.add("url",R);ka.add("page",Ga);ka.add("refr",cd);p&&!isNaN(Number(p))&&ka.add("pp_mix",p.toString());E&&!isNaN(Number(E))&&ka.add("pp_max",E.toString());B&&!isNaN(Number(B))&&ka.add("pp_miy",B.toString());L&&!isNaN(Number(L))&&
ka.add("pp_may",L.toString());X.call(d,ka,l)}var Ka,ha,M,ca,Ca,rb,sb,tb,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb;k.eventMethod=null!==(Ka=k.eventMethod)&&void 0!==Ka?Ka:"post";var sc=function(d){var l;return null!==(l=d.stateStorageStrategy)&&void 0!==l?l:"cookieAndLocalStorage"},tc=function(d){var l,p;return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(l=d.anonymousTracking)||void 0===l?void 0:l.withSessionTracking))&&void 0!==p?p:!1},uc=function(d){var l,p;
return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(l=d.anonymousTracking)||void 0===l?void 0:l.withServerAnonymisation))&&void 0!==p?p:!1},dd=null!==(M=null===(ha=null===k||void 0===k?void 0:k.contexts)||void 0===ha?void 0:ha.browser)&&void 0!==M?M:!1,wc=null!==(Ca=null===(ca=null===k||void 0===k?void 0:k.contexts)||void 0===ca?void 0:ca.webPage)&&void 0!==Ca?Ca:!0;h.push(function(){return{beforeTrack:function(d){var l=F("ses"),p=oa(),B=0===p[10];Ob=Pb?!!da(Pb):!1;if(yc||Ob)Va();
else{"0"===p[0]?(ja=l||"none"==K?p[6]:Ma(p),Y=p[3]):(new Date).getTime()-Qb>1E3*qc&&(Y++,ja=Ma(p,{memorizedVisitCount:Y}));mb(p);if(0===p[10]){var E=d.build();p[8]=E.eid;E=E.dtm||E.ttm;p[9]=E?parseInt(E):void 0}p[10]+=1;E=nb();var L=E.documentSize;d.add("vp",E.viewport);d.add("ds",L);d.add("vid",za?Y:S?null:Y);d.add("sid",za?ja:S?null:ja);d.add("duid",S?null:p[1]);d.add("uid",S?null:Aa);x();d.add("refr",G(eb||Na));d.add("url",G(Fa||pa));E=mc(p,K,S);!ed||S&&!za||d.addContextEntity({schema:"iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",
data:E});"none"!=K&&(D(p),d=V(),l&&!B||!d||!fb||Rb||(fb(E),Rb=!1));Qb=(new Date).getTime()}}}}());wc&&h.push(z());dd&&h.push(y());h.push.apply(h,null!==(rb=k.plugins)&&void 0!==rb?rb:[]);var Z=Uc({base64:k.encodeBase64,corePlugins:h,callback:function(d){yc||Ob||qa.enqueueRequest(d.build(),Sb)}}),fd=document.characterSet||document.charset,xa=lc(window.location.hostname,window.location.href,lb()),nc=kc(xa[0]),pa=xa[1],Na=xa[2],eb,gd=null!==(sb=k.platform)&&void 0!==sb?sb:"web",Sb=ua(v),hd=null!==(tb=
k.postPath)&&void 0!==tb?tb:"/com.snowplowanalytics.snowplow/tp2",id=null!==(ub=k.appId)&&void 0!==ub?ub:"",Fa,Ea=document.title,Pa,bd=null!==(vb=k.resetActivityTrackingOnPageView)&&void 0!==vb?vb:!0,oc,pc,Da=null!==(wb=k.cookieName)&&void 0!==wb?wb:"_sp_",Oa=null!==(xb=k.cookieDomain)&&void 0!==xb?xb:void 0,pb="/",cb=null!==(yb=k.cookieSameSite)&&void 0!==yb?yb:"None",db=null!==(zb=k.cookieSecure)&&void 0!==zb?zb:!0,zc=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,yc="undefined"!==
typeof k.respectDoNotTrack?k.respectDoNotTrack&&("yes"===zc||"1"===zc):!1,Pb,rc=null!==(Ab=k.cookieLifetime)&&void 0!==Ab?Ab:63072E3,qc=null!==(Bb=k.sessionCookieTimeout)&&void 0!==Bb?Bb:1800,za=tc(k),qb=uc(k),S=!!k.anonymousTracking,K=sc(k),Ya,Qb=(new Date).getTime(),Za,$a,ab,bb,ya,Xa,ja,Y=1,Aa,qa=Yc(r,t,"localStorage"==K||"cookieAndLocalStorage"==K,k.eventMethod,hd,null!==(Cb=k.bufferSize)&&void 0!==Cb?Cb:1,null!==(Db=k.maxPostBytes)&&void 0!==Db?Db:4E4,null!==(Eb=k.maxGetBytes)&&void 0!==Eb?Eb:
0,null!==(Fb=k.useStm)&&void 0!==Fb?Fb:!0,null!==(Gb=k.maxLocalStorageQueueSize)&&void 0!==Gb?Gb:1E3,null!==(Hb=k.connectionTimeout)&&void 0!==Hb?Hb:5E3,qb,null!==(Ib=k.customHeaders)&&void 0!==Ib?Ib:{},null!==(Jb=k.withCredentials)&&void 0!==Jb?Jb:!0,null!==(Kb=k.retryStatusCodes)&&void 0!==Kb?Kb:[],(null!==(Lb=k.dontRetryStatusCodes)&&void 0!==Lb?Lb:[]).concat([400,401,403,410,422])),vc=!1,xc=!1,aa={enabled:!1,installed:!1,configurations:{}},ed=null!==(Nb=null===(Mb=k.contexts)||void 0===Mb?void 0:
Mb.session)&&void 0!==Nb?Nb:!1,Ob,fb=k.onSessionUpdateCallback,Rb=!1;k.hasOwnProperty("discoverRootDomain")&&k.discoverRootDomain&&(Oa=Wc(cb,db));var gb=nb(),jd=gb.browserLanguage,kd=gb.resolution,ld=gb.colorDepth,md=gb.cookiesEnabled;Z.setTrackerVersion(A);Z.setTrackerNamespace(n);Z.setAppId(id);Z.setPlatform(gd);Z.addPayloadPair("cookie",md?"1":"0");Z.addPayloadPair("cs",fd);Z.addPayloadPair("lang",jd);Z.addPayloadPair("res",kd);Z.addPayloadPair("cd",ld);W();wa();k.crossDomainLinker&&P(k.crossDomainLinker);
return U(U({},{getDomainSessionIndex:function(){return Y},getPageViewId:ta,getTabId:q,newSession:function(){var d=oa();"0"===d[0]?(ja="none"!=K?Ma(d):d[6],Y=d[3]):(Y++,ja=Ma(d,{memorizedVisitCount:Y}));mb(d);if("none"!=K){var l=mc(d,K,S);D(d);V()&&fb&&(Rb=!0,fb(l))}Qb=(new Date).getTime()},getCookieName:function(d){return Da+d+"."+ya},getUserId:function(){return Aa},getDomainUserId:function(){return oa()[1]},getDomainUserInfo:function(){return oa()},setReferrerUrl:function(d){eb=d},setCustomUrl:function(d){x();
var l=pa,p;H(d)?Fa=d:"/"===d.slice(0,1)?Fa=H(l)+"://"+kb(l)+d:(l=G(l),0<=(p=l.indexOf("?"))&&(l=l.slice(0,p)),(p=l.lastIndexOf("/"))!==l.length-1&&(l=l.slice(0,p+1)),Fa=l+d)},setDocumentTitle:function(d){Ea=document.title;Pa=d},discardHashTag:function(d){oc=d},discardBrace:function(d){pc=d},setCookiePath:function(d){pb=d;W()},setVisitorCookieTimeout:function(d){rc=d},crossDomainLinker:function(d){P(d)},enableActivityTracking:function(d){aa.configurations.pagePing||(aa.enabled=!0,aa.configurations.pagePing=
N(U(U({},d),{callback:ea})))},enableActivityTrackingCallback:function(d){aa.configurations.callback||(aa.enabled=!0,aa.configurations.callback=N(d))},updatePageActivity:function(){fa()},setOptOutCookie:function(d){Pb=d},setUserId:function(d){Aa=d},setUserIdFromLocation:function(d){x();Aa=Ia(d,pa)},setUserIdFromReferrer:function(d){x();Aa=Ia(d,Na)},setUserIdFromCookie:function(d){Aa=da(d)},setCollectorUrl:function(d){Sb=ua(d);qa.setCollectorUrl(Sb)},setBufferSize:function(d){qa.setBufferSize(d)},flushBuffer:function(d){void 0===
d&&(d={});qa.executeQueue();d.newBufferSize&&qa.setBufferSize(d.newBufferSize)},trackPageView:function(d){void 0===d&&(d={});u(d)},preservePageViewId:function(){vc=!0},disableAnonymousTracking:function(d){k.anonymousTracking=!1;sa(d);wa();qa.executeQueue()},enableAnonymousTracking:function(d){var l;k.anonymousTracking=null!==(l=d&&(null===d||void 0===d?void 0:d.options))&&void 0!==l?l:!0;sa(d);za||La()},clearUserData:Va}),{id:r,namespace:n,core:Z,sharedState:t})}(a,b,c,e,f,g);var m=U(U({},a),{addPlugin:function(r){var n,
A;m.core.addPlugin(r);null===(A=(n=r.plugin).activateBrowserPlugin)||void 0===A?void 0:A.call(n,m)}});h.forEach(function(r){var n;null===(n=r.activateBrowserPlugin)||void 0===n?void 0:n.call(r,m)});return m}function C(a,b){try{var c=null!==a&&void 0!==a?a:Object.keys(Qa);a=Qa;for(var e=[],f=0;f<c.length;f++){var g=c[f];a.hasOwnProperty(g)?e.push(a[g]):ba.warn(g+" not configured")}e.forEach(b)}catch(h){ba.error("Function failed",h)}}function nd(){function a(){"hidden"==f.visibilityState&&e.bufferFlushers.forEach(function(h){h(!1)})}
function b(){var h;if(!e.hasLoaded)for(e.hasLoaded=!0,h=0;h<e.registeredOnLoadHandlers.length;h++)e.registeredOnLoadHandlers[h]();return!0}function c(){f.addEventListener?f.addEventListener("DOMContentLoaded",function m(){f.removeEventListener("DOMContentLoaded",m,!1);b()}):f.attachEvent&&f.attachEvent("onreadystatechange",function r(){"complete"===f.readyState&&(f.detachEvent("onreadystatechange",r),b())});na(g,"load",b,!1)}var e=new od,f=document,g=window;f.visibilityState&&na(f,"visibilitychange",
a,!1);na(g,"beforeunload",function(){e.bufferFlushers.forEach(function(h){h(!1)})},!1);"loading"===document.readyState?c():b();return e}var U=function(){U=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(a[f]=b[f])}return a};return U.apply(this,arguments)},ra={},Ac="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&
msCrypto.getRandomValues.bind(msCrypto);if(Ac){var Bc=new Uint8Array(16);ra=function(){Ac(Bc);return Bc}}else{var Cc=Array(16);ra=function(){for(var a=0,b;16>a;a++)0===(a&3)&&(b=4294967296*Math.random()),Cc[a]=b>>>((a&3)<<3)&255;return Cc}}for(var O=[],hb=0;256>hb;++hb)O[hb]=(hb+256).toString(16).substr(1);var Dc=function(a,b){b=b||0;return[O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],
O[a[b++]]].join("")},pd=ra,Ec,Tb,Ub=0,Vb=0,qd=ra;ra=function(a,b,c){c=b&&c||0;"string"==typeof a&&(b="binary"===a?Array(16):null,a=null);a=a||{};a=a.random||(a.rng||qd)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(b)for(var e=0;16>e;++e)b[c+e]=a[e];return b||Dc(a)};ra.v1=function(a,b,c){c=b&&c||0;var e=b||[];a=a||{};var f=a.node||Ec,g=void 0!==a.clockseq?a.clockseq:Tb;if(null==f||null==g){var h=pd();null==f&&(f=Ec=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]);null==g&&(g=Tb=(h[6]<<8|h[7])&16383)}h=void 0!==a.msecs?
a.msecs:(new Date).getTime();var m=void 0!==a.nsecs?a.nsecs:Vb+1,r=h-Ub+(m-Vb)/1E4;0>r&&void 0===a.clockseq&&(g=g+1&16383);(0>r||h>Ub)&&void 0===a.nsecs&&(m=0);if(1E4<=m)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Ub=h;Vb=m;Tb=g;h+=122192928E5;a=(1E4*(h&268435455)+m)%4294967296;e[c++]=a>>>24&255;e[c++]=a>>>16&255;e[c++]=a>>>8&255;e[c++]=a&255;a=h/4294967296*1E4&268435455;e[c++]=a>>>8&255;e[c++]=a&255;e[c++]=a>>>24&15|16;e[c++]=a>>>16&255;e[c++]=g>>>8|128;e[c++]=g&255;for(g=0;6>
g;++g)e[c+g]=f[g];return b?b:Dc(e)};var ia=ra.v4=ra,ma="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",la;(function(a){a[a.none=0]="none";a[a.error=1]="error";a[a.warn=2]="warn";a[a.debug=3]="debug";a[a.info=4]="info"})(la||(la={}));var ba=function(a){void 0===a&&(a=la.warn);return{setLogLevel:function(b){a=la[b]?b:la.warn},warn:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];a>=la.warn&&"undefined"!==typeof console&&(f="Snowplow: "+b,c?console.warn.apply(console,
T([f+"\n",c],e,!1)):console.warn.apply(console,T([f],e,!1)))},error:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];a>=la.error&&"undefined"!==typeof console&&(f="Snowplow: "+b+"\n",c?console.error.apply(console,T([f+"\n",c],e,!1)):console.error.apply(console,T([f],e,!1)))},debug:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=la.debug&&"undefined"!==typeof console&&console.debug.apply(console,T(["Snowplow: "+b],c,!1))},info:function(b){for(var c=
[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=la.info&&"undefined"!==typeof console&&console.info.apply(console,T(["Snowplow: "+b],c,!1))}}}(),Fc={},Gc={};(function(){var a={rotl:function(b,c){return b<<c|b>>>32-c},rotr:function(b,c){return b<<32-c|b>>>c},endian:function(b){if(b.constructor==Number)return a.rotl(b,8)&16711935|a.rotl(b,24)&4278255360;for(var c=0;c<b.length;c++)b[c]=a.endian(b[c]);return b},randomBytes:function(b){for(var c=[];0<b;b--)c.push(Math.floor(256*Math.random()));return c},
bytesToWords:function(b){for(var c=[],e=0,f=0;e<b.length;e++,f+=8)c[f>>>5]|=b[e]<<24-f%32;return c},wordsToBytes:function(b){for(var c=[],e=0;e<32*b.length;e+=8)c.push(b[e>>>5]>>>24-e%32&255);return c},bytesToHex:function(b){for(var c=[],e=0;e<b.length;e++)c.push((b[e]>>>4).toString(16)),c.push((b[e]&15).toString(16));return c.join("")},hexToBytes:function(b){for(var c=[],e=0;e<b.length;e+=2)c.push(parseInt(b.substr(e,2),16));return c},bytesToBase64:function(b){for(var c=[],e=0;e<b.length;e+=3)for(var f=
b[e]<<16|b[e+1]<<8|b[e+2],g=0;4>g;g++)8*e+6*g<=8*b.length?c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>>6*(3-g)&63)):c.push("=");return c.join("")},base64ToBytes:function(b){b=b.replace(/[^A-Z0-9+\/]/ig,"");for(var c=[],e=0,f=0;e<b.length;f=++e%4)0!=f&&c.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e-1))&Math.pow(2,-2*f+8)-1)<<2*f|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e))>>>
6-2*f);return c}};Gc=a})();var Wb={utf8:{stringToBytes:function(a){return Wb.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(Wb.bin.bytesToString(a)))}},bin:{stringToBytes:function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c)&255);return b},bytesToString:function(a){for(var b=[],c=0;c<a.length;c++)b.push(String.fromCharCode(a[c]));return b.join("")}}},Hc=Wb;(function(){var a=Gc,b=Hc.utf8,c=Hc.bin,e=function(f,g){var h=a.wordsToBytes,
m=f;m.constructor==String?m=b.stringToBytes(m):"undefined"!==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(m)?m=Array.prototype.slice.call(m,0):Array.isArray(m)||(m=m.toString());f=a.bytesToWords(m);var r=8*m.length;m=[];var n=1732584193,A=-271733879,v=-1732584194,t=271733878,k=-1009589776;f[r>>5]|=128<<24-r%32;f[(r+64>>>9<<4)+15]=r;for(r=0;r<f.length;r+=16){for(var x=n,I=A,P=v,G=t,H=k,F=0;80>F;F++){if(16>F)m[F]=f[r+F];else{var W=m[F-3]^m[F-8]^m[F-14]^m[F-16];m[F]=W<<1|W>>>31}W=
(n<<5|n>>>27)+k+(m[F]>>>0)+(20>F?(A&v|~A&t)+1518500249:40>F?(A^v^t)+1859775393:60>F?(A&v|A&t|v&t)-1894007588:(A^v^t)-899497514);k=t;t=v;v=A<<30|A>>>2;A=n;n=W}n+=x;A+=I;v+=P;t+=G;k+=H}h=h.call(a,[n,A,v,t,k]);return g&&g.asBytes?h:g&&g.asString?c.bytesToString(h):a.bytesToHex(h)};e._blocksize=16;e._digestsize=20;Fc=e})();var ad=Fc,Qa={},od=function(){return function(){this.outQueues=[];this.bufferFlushers=[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),Ic="undefined"!==typeof window?nd():
void 0;w.addGlobalContexts=function(a,b){C(b,function(c){c.core.addGlobalContexts(a)})};w.addPlugin=function(a,b){C(b,function(c){c.addPlugin(a)})};w.clearGlobalContexts=function(a){C(a,function(b){b.core.clearGlobalContexts()})};w.clearUserData=function(a,b){C(b,function(c){c.clearUserData(a)})};w.crossDomainLinker=function(a,b){C(b,function(c){c.crossDomainLinker(a)})};w.disableAnonymousTracking=function(a,b){C(b,function(c){c.disableAnonymousTracking(a)})};w.discardBrace=function(a,b){C(b,function(c){c.discardBrace(a)})};
b.removeItem("modernizr");return!0}catch(c){return!1}}function Yc(a,b,c,e,f,g,h,m,r,n,z,v,t,k,x,J,P){function H(q){var A=Object.keys(q).map(function(y){return[y,q[y]]}).reduce(function(y,u){y[u[0]]=u[1].toString();return y},{});return{evt:A,bytes:N(JSON.stringify(A))}}function N(q){for(var A=0,y=0;y<q.length;y++){var u=q.charCodeAt(y);127>=u?A+=1:2047>=u?A+=2:55296<=u&&57343>=u?(A+=4,y++):A=65535>u?A+3:A+4}return A}function E(q){for(void 0===q&&(q=!1);F.length&&"string"!==typeof F[0]&&"object"!==
typeof F[0];)F.shift();if(F.length){if(!W||"string"!==typeof W.valueOf())throw"No collector configured";Q=!0;if(P&&!Ka){var A=R(P,!1,q);Ka=!0;A.timeout=z;A.send();A.onreadystatechange=function(){4===A.readyState&&E()}}else if(ea){var y=function(M){for(var ca=0,Ba=0;ca<M.length&&!(Ba+=M[ca].bytes,Ba>=h);)ca+=1;return ca},u=void 0;if(La(F)){u=W;var G=R(u,!0,q);var I=y(F)}else u=Ca(F[0]),G=R(u,!1,q),I=1;var fa=setTimeout(function(){G.abort();Q=!1},z),ta=function(M){for(var ca=0;ca<M;ca++)F.shift();c&&
Xa(pa,JSON.stringify(F.slice(0,n)))};G.onreadystatechange=function(){if(4===G.readyState&&200<=G.status)if(clearTimeout(fa),300>G.status)ta(I),E();else{var M=G.status;M=200<=M&&300>M?!1:x.includes(M)?!0:!J.includes(M);M||(ba.error("Status ".concat(G.status,", will not retry.")),ta(I));Q=!1}};if(La(F)){if(y=F.slice(0,I),0<y.length){q=!1;y=y.map(function(M){return M.evt});if(Ya){var Ma=new Blob([ha(Da(y))],{type:"application/json"});try{q=navigator.sendBeacon(u,Ma)}catch(M){q=!1}}!0===q?(ta(I),E()):
G.send(ha(Da(y)))}}else G.send()}else if(v||La(F))Q=!1;else{u=new Image(1,1);var ia=!0;u.onload=function(){ia&&(ia=!1,F.shift(),c&&Xa(pa,JSON.stringify(F.slice(0,n))),E())};u.onerror=function(){ia&&(Q=ia=!1)};u.src=Ca(F[0]);setTimeout(function(){ia&&Q&&(ia=!1,E())},z)}}else Q=!1}function R(q,A,y){var u=new XMLHttpRequest;A?(u.open("POST",q,!y),u.setRequestHeader("Content-Type","application/json; charset=UTF-8")):u.open("GET",q,!y);u.withCredentials=k;v&&u.setRequestHeader("SP-Anonymous","*");for(var G in t)Object.prototype.hasOwnProperty.call(t,
G)&&u.setRequestHeader(G,t[G]);return u}function ha(q){return JSON.stringify({schema:"iglu:com.snowplowanalytics.snowplow/payload_data/jsonschema/1-0-4",data:q})}function Da(q){for(var A=(new Date).getTime().toString(),y=0;y<q.length;y++)q[y].stm=A;return q}function Ca(q){return r?W+q.replace("?","?stm="+(new Date).getTime()+"&"):W+q}function Za(q){function A(u,G,I){return(I=I.match("(Macintosh;.*Mac OS X (d+)_(d+)[_d]*.*) AppleWebKit/"))&&I.length?parseInt(I[0])<=u||parseInt(I[0])===u&&parseInt(I[1])<=
G:!1}function y(u){return u.match("Version/.* Safari/")&&!u.match("Chrom(e|ium)")}return function(u,G){return(G=G.match("(iP.+; CPU .*OS (d+)[_d]*.*) AppleWebKit/"))&&G.length?parseInt(G[0])<=u:!1}(13,q)||A(10,15,q)&&y(q)}var Q=!1,W,F=[],Ka=!1;e="string"===typeof e?e.toLowerCase():e;var ua=!0===e||"beacon"===e||"true"===e,Ya=!(!(ua&&window.navigator&&window.navigator.sendBeacon)||Za(window.navigator.userAgent))&&ua,ea=!!(window.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest),va="get"!==e&&
ea&&("post"===e||ua),Na=va?f:"/i",pa="snowplowOutQueue_".concat(a,"_").concat(va?"post2":"get");ua&&(t={});g=c&&Xc()&&va&&g||1;if(c)try{var Oa=window.localStorage.getItem(pa);F=Oa?JSON.parse(Oa):[]}catch(q){}Array.isArray(F)||(F=[]);b.outQueues.push(F);ea&&1<g&&b.bufferFlushers.push(function(q){Q||E(q)});var La=function(q){return"object"===typeof q[0]&&"evt"in q[0]};return{enqueueRequest:function(q,A){W=A+Na;if(va){q=H(q);if(q.bytes>=h){ba.warn("Event ("+q.bytes+"B) too big, max is "+h);A=q;R(W,!0,
!1).send(ha(Da([A.evt])));return}F.push(q)}else{var y="?";var u={co:!0,cx:!0},G=!0,I;for(I in q)q.hasOwnProperty(I)&&!u.hasOwnProperty(I)&&(G?G=!1:y+="&",y+=encodeURIComponent(I)+"="+encodeURIComponent(q[I]));for(var fa in u)q.hasOwnProperty(fa)&&u.hasOwnProperty(fa)&&(y+="&"+fa+"="+encodeURIComponent(q[fa]));if(0<m&&(u=Ca(y),u=N(u),u>=m)){ba.warn("Event ("+u+"B) too big, max is "+m);ea&&(q=H(q),R(A+f,!0,!1).send(ha(Da([q.evt]))));return}F.push(y)}A=!1;c&&(A=Xa(pa,JSON.stringify(F.slice(0,n))));Q||
A&&!(F.length>=g)||E()},executeQueue:function(){Q||E()},setUseLocalStorage:function(q){c=q},setAnonymousTracking:function(q){v=q},setCollectorUrl:function(q){W=q+Na},setBufferSize:function(q){g=q}}}function lc(a,b,c){if("translate.googleusercontent.com"===a)""===c&&(c=b),a=(a=/^(?:https?|ftp)(?::\/*(?:[^?]+))([?][^#]+)/.exec(b))&&1<(null===a||void 0===a?void 0:a.length)?Ja("u",a[1]):null,b=null!==a&&void 0!==a?a:"",a=nb(b);else if("cc.bingj.com"===a||"webcache.googleusercontent.com"===a)b=document.links[0].href,
a=nb(b);return[a,b,c]}function Zc(a,b,c,e){var f=Math.round((new Date).getTime()/1E3);a?(a=a.split("."),a.unshift("0")):a=["1",b,f,e,f,"",c];a[6]&&"undefined"!==a[6]||(a[6]=ja.v4());a[7]&&"undefined"!==a[7]||(a[7]="");a[8]&&"undefined"!==a[8]||(a[8]="");a[9]&&"undefined"!==a[9]||(a[9]="");a[10]&&"undefined"!==a[10]||(a[10]=0);var g=function(h,m){h=parseInt(h);return isNaN(h)?m:h};b=function(h){return h?g(h,void 0):void 0};return[a[0],a[1],g(a[2],f),g(a[3],e),g(a[4],f),b(a[5]),a[6],a[7],a[8],b(a[9]),
g(a[10],0)]}function Pa(a,b){void 0===b&&(b={memorizedVisitCount:1});b=b.memorizedVisitCount;"0"===a[0]?(a[7]=a[6],a[5]=a[4],a[3]++):a[3]=b;b=ja.v4();a[6]=b;a[10]=0;a[8]="";a[9]=void 0;return b}function pb(a){a[4]=Math.round((new Date).getTime()/1E3)}function mc(a,b,c){var e=a[9];return{userId:c?"00000000-0000-0000-0000-000000000000":a[1],sessionId:a[6],eventIndex:a[10],sessionIndex:a[3],previousSessionId:c?null:a[7]||null,storageMechanism:"localStorage"==b?"LOCAL_STORAGE":"COOKIE_1",firstEventId:a[8]||
null,firstEventTimestamp:e?(new Date(e)).toISOString():null}}function qb(){var a=rb;if("innerWidth"in window){var b=window.innerWidth;var c=window.innerHeight}else c=document.documentElement||document.body,b=c.clientWidth,c=c.clientHeight;a=a(0<=b&&0<=c?b+"x"+c:null);b=rb;var e=document.documentElement,f=document.body;c=Math.max(e.clientWidth,e.offsetWidth,e.scrollWidth);e=Math.max(e.clientHeight,e.offsetHeight,e.scrollHeight,f?Math.max(f.offsetHeight,f.scrollHeight):0);c=isNaN(c)||isNaN(e)?"":c+
"x"+e;return{viewport:a,documentSize:b(c),resolution:rb(screen.width+"x"+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}}function rb(a){return a&&
a.split("x").map(function(b){return Math.floor(Number(b))}).join("x")}function $c(a,b,c,e,f,g){void 0===g&&(g={});var h=[];a=function(r,n,z,v,t,k){function x(){wa=lc(window.location.hostname,window.location.href,ob());wa[1]!==qa&&(Qa=ob(qa));nc=kc(wa[0]);qa=wa[1]}function J(d){var l=(new Date).getTime();d=d.currentTarget;if(null===d||void 0===d?0:d.href){l="_sp="+($a+"."+l);var p=d.href.split("#"),B=p[0].split("?"),D=B.shift();if(B=B.join("?")){for(var L=!0,X=B.split("&"),S=0;S<X.length;S++)if("_sp="===
X[S].substr(0,4)){L=!1;X[S]=l;B=X.join("&");break}L&&(B=l+"&"+B)}else B=l;p[0]=D+"?"+B;l=p.join("#");d.href=l}}function P(d){for(var l=0;l<document.links.length;l++){var p=document.links[l];!p.spDecorationEnabled&&d(p)&&(oa(p,"click",J,!0),oa(p,"mousedown",J,!0),p.spDecorationEnabled=!0)}}function H(d){if(oc){var l=/#.*/;d=d.replace(l,"")}pc&&(l=/[{}]/g,d=d.replace(l,""));return d}function N(d){return(d=/^([a-z]+):/.exec(d))?d[1]:null}function E(d){d=Ea+d+"."+xa;if("localStorage"==K){try{var l=window.localStorage,
p=l.getItem(d+".expires");if(null===p||+p>Date.now())var B=l.getItem(d);else l.removeItem(d),l.removeItem(d+".expires"),B=void 0}catch(D){B=void 0}return B}if("cookie"==K||"cookieAndLocalStorage"==K)return da(d)}function R(){x();xa=ad((Ra||nc)+(sb||"/")).slice(0,4)}function ha(){ab=(new Date).getTime()}function Da(){var d=Ca(),l=d[0];l<bb?bb=l:l>cb&&(cb=l);d=d[1];d<db?db=d:d>eb&&(eb=d);ha()}function Ca(){var d=document.documentElement;return d?[d.scrollLeft||window.pageXOffset,d.scrollTop||window.pageYOffset]:
[0,0]}function Za(){var d=Ca(),l=d[0];cb=bb=l;eb=db=d=d[1]}function Q(){return F(Ea+"ses."+xa,"*",qc)}function W(d){var l=Ea+"id."+xa;d.shift();d=d.join(".");return F(l,d,rc)}function F(d,l,p){return T&&!ya?!1:"localStorage"==K?Xa(d,l,p):"cookie"==K||"cookieAndLocalStorage"==K?(da(d,l,p,sb,Ra,fb,gb),-1!==document.cookie.indexOf("".concat(d,"="))?!0:!1):!1}function Ka(d){var l=Ea+"id."+xa,p=Ea+"ses."+xa;gc(l);gc(p);da(l,"",-1,"/",Ra,fb,gb);da(p,"",-1,"/",Ra,fb,gb);null!==d&&void 0!==d&&d.preserveSession||
(ka=ja.v4(),Y=1);null!==d&&void 0!==d&&d.preserveUser||($a=T?"":ja.v4(),za=null)}function ua(d){d&&d.stateStorageStrategy&&(k.stateStorageStrategy=d.stateStorageStrategy,K=sc(k));T=!!k.anonymousTracking;ya=tc(k);tb=uc(k);ra.setUseLocalStorage("localStorage"==K||"cookieAndLocalStorage"==K);ra.setAnonymousTracking(tb)}function Ya(){if(!T||ya){var d="none"!=K&&!!E("ses"),l=ea();if(l[1])var p=l[1];else p=T?"":ja.v4(),l[1]=p;$a=p;ka=d?l[6]:Pa(l);Y=l[3];"none"!=K&&(Q(),pb(l),W(l))}}function ea(){if("none"==
K)return["1","",0,0,0,void 0,"","","",void 0,0];var d=E("id")||void 0;return Zc(d,$a,ka,Y)}function va(d){return 0===d.indexOf("http")?d:("https:"===document.location.protocol?"https":"http")+"://"+d}function Na(){vc&&null!=t.pageViewId||(t.pageViewId=ja.v4())}function pa(){null==t.pageViewId&&(t.pageViewId=ja.v4());return t.pageViewId}function Oa(){if("none"===K||T||!wc)return null;var d=hc("_sp_tab_id");if(!d){d=ja.v4();try{window.sessionStorage.setItem("_sp_tab_id",d)}catch(l){}d=hc("_sp_tab_id")}return d||
null}function La(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/web_page/jsonschema/1-0-0",data:{id:pa()}}]}}}function q(){return{contexts:function(){return[{schema:"iglu:com.snowplowanalytics.snowplow/browser_context/jsonschema/1-0-0",data:V(V({},qb()),{tabId:Oa()})}]}}}function A(d){var l=d.title,p=d.context,B=d.timestamp;d=d.contextCallback;x();xc&&Na();xc=!0;Fa=document.title;Sa=l;l=jc(Sa||Fa);Z.track(Vc({pageUrl:H(Ga||qa),pageTitle:l,referrer:H(hb||Qa)}),(p||
[]).concat(d?d():[]),B);B=new Date;l=!1;if(aa.enabled&&!aa.installed){l=aa.installed=!0;var D={update:function(){if("undefined"!==typeof window&&"function"===typeof window.addEventListener){var X=!1,S=Object.defineProperty({},"passive",{get:function(){X=!0},set:function(){}}),Ha=function(){};window.addEventListener("testPassiveEventSupport",Ha,S);window.removeEventListener("testPassiveEventSupport",Ha,S);D.hasSupport=X}}};D.update();var L="onwheel"in document.createElement("div")?"wheel":void 0!==
document.onmousewheel?"mousewheel":"DOMMouseScroll";Object.prototype.hasOwnProperty.call(D,"hasSupport")?oa(document,L,ha,{passive:!0}):oa(document,L,ha);Za();L=function(X,S){void 0===S&&(S=ha);return function(Ha){return oa(document,Ha,S)}};"click mouseup mousedown mousemove keypress keydown keyup touchend touchstart".split(" ").forEach(L(document));["resize","focus","blur"].forEach(L(window));L(window,Da)("scroll")}if(aa.enabled&&(bd||l))for(B in ab=B.getTime(),B=void 0,aa.configurations)if(l=aa.configurations[B])window.clearInterval(l.activityInterval),
y(l,p,d)}function y(d,l,p){var B=function(L,X){x();L({context:X,pageViewId:pa(),minXOffset:bb,minYOffset:db,maxXOffset:cb,maxYOffset:eb});Za()},D=function(){ab+d.configHeartBeatTimer>(new Date).getTime()&&B(d.callback,(l||[]).concat(p?p():[]))};d.activityInterval=0!=d.configMinimumVisitLength?window.setTimeout(function(){ab+d.configMinimumVisitLength>(new Date).getTime()&&B(d.callback,(l||[]).concat(p?p():[]));d.activityInterval=window.setInterval(D,d.configHeartBeatTimer)},d.configMinimumVisitLength):
window.setInterval(D,d.configHeartBeatTimer)}function u(d){var l=d.minimumVisitLength,p=d.heartbeatDelay;d=d.callback;if(ic(l)&&ic(p))return{configMinimumVisitLength:1E3*l,configHeartBeatTimer:1E3*p,callback:d};ba.error("Activity tracking minimumVisitLength & heartbeatDelay must be integers")}function G(d){var l=d.context,p=d.minXOffset,B=d.minYOffset,D=d.maxXOffset,L=d.maxYOffset;d=document.title;d!==Fa&&(Fa=d,Sa=void 0);d=Z;var X=d.track,S=H(Ga||qa),Ha=jc(Sa||Fa),cd=H(hb||Qa);p=Math.round(p);D=
Math.round(D);B=Math.round(B);L=Math.round(L);var la=Ua();la.add("e","pp");la.add("url",S);la.add("page",Ha);la.add("refr",cd);p&&!isNaN(Number(p))&&la.add("pp_mix",p.toString());D&&!isNaN(Number(D))&&la.add("pp_max",D.toString());B&&!isNaN(Number(B))&&la.add("pp_miy",B.toString());L&&!isNaN(Number(L))&&la.add("pp_may",L.toString());X.call(d,la,l)}var I,fa,ta,Ma,ia,M,ca,Ba,ub,vb,wb,xb,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Gb,Hb,Ib,Jb,Kb,Lb,Mb,Nb;k.eventMethod=null!==(I=k.eventMethod)&&void 0!==I?I:"post";var sc=
function(d){var l;return null!==(l=d.stateStorageStrategy)&&void 0!==l?l:"cookieAndLocalStorage"},tc=function(d){var l,p;return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(l=d.anonymousTracking)||void 0===l?void 0:l.withSessionTracking))&&void 0!==p?p:!1},uc=function(d){var l,p;return"boolean"===typeof d.anonymousTracking?!1:null!==(p=!0===(null===(l=d.anonymousTracking)||void 0===l?void 0:l.withServerAnonymisation))&&void 0!==p?p:!1},dd=null!==(ta=null===(fa=null===k||void 0===
k?void 0:k.contexts)||void 0===fa?void 0:fa.browser)&&void 0!==ta?ta:!1,wc=null!==(ia=null===(Ma=null===k||void 0===k?void 0:k.contexts)||void 0===Ma?void 0:Ma.webPage)&&void 0!==ia?ia:!0;h.push(function(){return{beforeTrack:function(d){var l=E("ses"),p=ea(),B=0===p[10];Ob=Pb?!!da(Pb):!1;if(yc||Ob)Ka();else{"0"===p[0]?(ka=l||"none"==K?p[6]:Pa(p),Y=p[3]):(new Date).getTime()-Qb>1E3*qc&&(Y++,ka=Pa(p,{memorizedVisitCount:Y}));pb(p);if(0===p[10]){var D=d.build();p[8]=D.eid;D=D.dtm||D.ttm;p[9]=D?parseInt(D):
void 0}p[10]+=1;D=qb();var L=D.documentSize;d.add("vp",D.viewport);d.add("ds",L);d.add("vid",ya?Y:T?null:Y);d.add("sid",ya?ka:T?null:ka);d.add("duid",T?null:p[1]);d.add("uid",T?null:za);x();d.add("refr",H(hb||Qa));d.add("url",H(Ga||qa));D=mc(p,K,T);!ed||T&&!ya||d.addContextEntity({schema:"iglu:com.snowplowanalytics.snowplow/client_session/jsonschema/1-0-2",data:D});"none"!=K&&(W(p),d=Q(),l&&!B||!d||!ib||Rb||(ib(D),Rb=!1));Qb=(new Date).getTime()}}}}());wc&&h.push(La());dd&&h.push(q());h.push.apply(h,
null!==(M=k.plugins)&&void 0!==M?M:[]);var Z=Uc({base64:k.encodeBase64,corePlugins:h,callback:function(d){yc||Ob||ra.enqueueRequest(d.build(),Sb)}}),fd=document.characterSet||document.charset,wa=lc(window.location.hostname,window.location.href,ob()),nc=kc(wa[0]),qa=wa[1],Qa=wa[2],hb,gd=null!==(ca=k.platform)&&void 0!==ca?ca:"web",Sb=va(v),hd=null!==(Ba=k.postPath)&&void 0!==Ba?Ba:"/com.snowplowanalytics.snowplow/tp2",id=null!==(ub=k.appId)&&void 0!==ub?ub:"",Ga,Fa=document.title,Sa,bd=null!==(vb=
k.resetActivityTrackingOnPageView)&&void 0!==vb?vb:!0,oc,pc,Ea=null!==(wb=k.cookieName)&&void 0!==wb?wb:"_sp_",Ra=null!==(xb=k.cookieDomain)&&void 0!==xb?xb:void 0,sb="/",fb=null!==(yb=k.cookieSameSite)&&void 0!==yb?yb:"None",gb=null!==(zb=k.cookieSecure)&&void 0!==zb?zb:!0,zc=navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,yc="undefined"!==typeof k.respectDoNotTrack?k.respectDoNotTrack&&("yes"===zc||"1"===zc):!1,Pb,rc=null!==(Ab=k.cookieLifetime)&&void 0!==Ab?Ab:63072E3,qc=null!==
(Bb=k.sessionCookieTimeout)&&void 0!==Bb?Bb:1800,ya=tc(k),tb=uc(k),T=!!k.anonymousTracking,K=sc(k),ab,Qb=(new Date).getTime(),bb,cb,db,eb,xa,$a,ka,Y=1,za,ra=Yc(r,t,"localStorage"==K||"cookieAndLocalStorage"==K,k.eventMethod,hd,null!==(Cb=k.bufferSize)&&void 0!==Cb?Cb:1,null!==(Db=k.maxPostBytes)&&void 0!==Db?Db:4E4,null!==(Eb=k.maxGetBytes)&&void 0!==Eb?Eb:0,null!==(Fb=k.useStm)&&void 0!==Fb?Fb:!0,null!==(Gb=k.maxLocalStorageQueueSize)&&void 0!==Gb?Gb:1E3,null!==(Hb=k.connectionTimeout)&&void 0!==
Hb?Hb:5E3,tb,null!==(Ib=k.customHeaders)&&void 0!==Ib?Ib:{},null!==(Jb=k.withCredentials)&&void 0!==Jb?Jb:!0,null!==(Kb=k.retryStatusCodes)&&void 0!==Kb?Kb:[],(null!==(Lb=k.dontRetryStatusCodes)&&void 0!==Lb?Lb:[]).concat([400,401,403,410,422]),k.idService),vc=!1,xc=!1,aa={enabled:!1,installed:!1,configurations:{}},ed=null!==(Nb=null===(Mb=k.contexts)||void 0===Mb?void 0:Mb.session)&&void 0!==Nb?Nb:!1,Ob,ib=k.onSessionUpdateCallback,Rb=!1;k.hasOwnProperty("discoverRootDomain")&&k.discoverRootDomain&&
(Ra=Wc(fb,gb));var jb=qb(),jd=jb.browserLanguage,kd=jb.resolution,ld=jb.colorDepth,md=jb.cookiesEnabled;Z.setTrackerVersion(z);Z.setTrackerNamespace(n);Z.setAppId(id);Z.setPlatform(gd);Z.addPayloadPair("cookie",md?"1":"0");Z.addPayloadPair("cs",fd);Z.addPayloadPair("lang",jd);Z.addPayloadPair("res",kd);Z.addPayloadPair("cd",ld);R();Ya();k.crossDomainLinker&&P(k.crossDomainLinker);return V(V({},{getDomainSessionIndex:function(){return Y},getPageViewId:pa,getTabId:Oa,newSession:function(){var d=ea();
"0"===d[0]?(ka="none"!=K?Pa(d):d[6],Y=d[3]):(Y++,ka=Pa(d,{memorizedVisitCount:Y}));pb(d);if("none"!=K){var l=mc(d,K,T);W(d);Q()&&ib&&(Rb=!0,ib(l))}Qb=(new Date).getTime()},getCookieName:function(d){return Ea+d+"."+xa},getUserId:function(){return za},getDomainUserId:function(){return ea()[1]},getDomainUserInfo:function(){return ea()},setReferrerUrl:function(d){hb=d},setCustomUrl:function(d){x();var l=qa,p;N(d)?Ga=d:"/"===d.slice(0,1)?Ga=N(l)+"://"+nb(l)+d:(l=H(l),0<=(p=l.indexOf("?"))&&(l=l.slice(0,
p)),(p=l.lastIndexOf("/"))!==l.length-1&&(l=l.slice(0,p+1)),Ga=l+d)},setDocumentTitle:function(d){Fa=document.title;Sa=d},discardHashTag:function(d){oc=d},discardBrace:function(d){pc=d},setCookiePath:function(d){sb=d;R()},setVisitorCookieTimeout:function(d){rc=d},crossDomainLinker:function(d){P(d)},enableActivityTracking:function(d){aa.configurations.pagePing||(aa.enabled=!0,aa.configurations.pagePing=u(V(V({},d),{callback:G})))},enableActivityTrackingCallback:function(d){aa.configurations.callback||
(aa.enabled=!0,aa.configurations.callback=u(d))},updatePageActivity:function(){ha()},setOptOutCookie:function(d){Pb=d},setUserId:function(d){za=d},setUserIdFromLocation:function(d){x();za=Ja(d,qa)},setUserIdFromReferrer:function(d){x();za=Ja(d,Qa)},setUserIdFromCookie:function(d){za=da(d)},setCollectorUrl:function(d){Sb=va(d);ra.setCollectorUrl(Sb)},setBufferSize:function(d){ra.setBufferSize(d)},flushBuffer:function(d){void 0===d&&(d={});ra.executeQueue();d.newBufferSize&&ra.setBufferSize(d.newBufferSize)},
trackPageView:function(d){void 0===d&&(d={});A(d)},preservePageViewId:function(){vc=!0},disableAnonymousTracking:function(d){k.anonymousTracking=!1;ua(d);Ya();ra.executeQueue()},enableAnonymousTracking:function(d){var l;k.anonymousTracking=null!==(l=d&&(null===d||void 0===d?void 0:d.options))&&void 0!==l?l:!0;ua(d);ya||Na()},clearUserData:Ka}),{id:r,namespace:n,core:Z,sharedState:t})}(a,b,c,e,f,g);var m=V(V({},a),{addPlugin:function(r){var n,z;m.core.addPlugin(r);null===(z=(n=r.plugin).activateBrowserPlugin)||
void 0===z?void 0:z.call(n,m)}});h.forEach(function(r){var n;null===(n=r.activateBrowserPlugin)||void 0===n?void 0:n.call(r,m)});return m}function C(a,b){try{var c=null!==a&&void 0!==a?a:Object.keys(Ta);a=Ta;for(var e=[],f=0;f<c.length;f++){var g=c[f];a.hasOwnProperty(g)?e.push(a[g]):ba.warn(g+" not configured")}e.forEach(b)}catch(h){ba.error("Function failed",h)}}function nd(){function a(){"hidden"==f.visibilityState&&e.bufferFlushers.forEach(function(h){h(!1)})}function b(){var h;if(!e.hasLoaded)for(e.hasLoaded=
!0,h=0;h<e.registeredOnLoadHandlers.length;h++)e.registeredOnLoadHandlers[h]();return!0}function c(){f.addEventListener?f.addEventListener("DOMContentLoaded",function m(){f.removeEventListener("DOMContentLoaded",m,!1);b()}):f.attachEvent&&f.attachEvent("onreadystatechange",function r(){"complete"===f.readyState&&(f.detachEvent("onreadystatechange",r),b())});oa(g,"load",b,!1)}var e=new od,f=document,g=window;f.visibilityState&&oa(f,"visibilitychange",a,!1);oa(g,"beforeunload",function(){e.bufferFlushers.forEach(function(h){h(!1)})},
!1);"loading"===document.readyState?c():b();return e}var V=function(){V=Object.assign||function(a){for(var b,c=1,e=arguments.length;c<e;c++){b=arguments[c];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&(a[f]=b[f])}return a};return V.apply(this,arguments)},sa={},Ac="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(Ac){var Bc=
new Uint8Array(16);sa=function(){Ac(Bc);return Bc}}else{var Cc=Array(16);sa=function(){for(var a=0,b;16>a;a++)0===(a&3)&&(b=4294967296*Math.random()),Cc[a]=b>>>((a&3)<<3)&255;return Cc}}for(var O=[],kb=0;256>kb;++kb)O[kb]=(kb+256).toString(16).substr(1);var Dc=function(a,b){b=b||0;return[O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],"-",O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]],O[a[b++]]].join("")},pd=sa,Ec,Tb,Ub=0,Vb=0,qd=
sa;sa=function(a,b,c){c=b&&c||0;"string"==typeof a&&(b="binary"===a?Array(16):null,a=null);a=a||{};a=a.random||(a.rng||qd)();a[6]=a[6]&15|64;a[8]=a[8]&63|128;if(b)for(var e=0;16>e;++e)b[c+e]=a[e];return b||Dc(a)};sa.v1=function(a,b,c){c=b&&c||0;var e=b||[];a=a||{};var f=a.node||Ec,g=void 0!==a.clockseq?a.clockseq:Tb;if(null==f||null==g){var h=pd();null==f&&(f=Ec=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]);null==g&&(g=Tb=(h[6]<<8|h[7])&16383)}h=void 0!==a.msecs?a.msecs:(new Date).getTime();var m=void 0!==a.nsecs?
a.nsecs:Vb+1,r=h-Ub+(m-Vb)/1E4;0>r&&void 0===a.clockseq&&(g=g+1&16383);(0>r||h>Ub)&&void 0===a.nsecs&&(m=0);if(1E4<=m)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");Ub=h;Vb=m;Tb=g;h+=122192928E5;a=(1E4*(h&268435455)+m)%4294967296;e[c++]=a>>>24&255;e[c++]=a>>>16&255;e[c++]=a>>>8&255;e[c++]=a&255;a=h/4294967296*1E4&268435455;e[c++]=a>>>8&255;e[c++]=a&255;e[c++]=a>>>24&15|16;e[c++]=a>>>16&255;e[c++]=g>>>8|128;e[c++]=g&255;for(g=0;6>g;++g)e[c+g]=f[g];return b?b:Dc(e)};var ja=sa.v4=sa,
na="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ma;(function(a){a[a.none=0]="none";a[a.error=1]="error";a[a.warn=2]="warn";a[a.debug=3]="debug";a[a.info=4]="info"})(ma||(ma={}));var ba=function(a){void 0===a&&(a=ma.warn);return{setLogLevel:function(b){a=ma[b]?b:ma.warn},warn:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];a>=ma.warn&&"undefined"!==typeof console&&(f="Snowplow: "+b,c?console.warn.apply(console,U([f+"\n",c],e,!1)):console.warn.apply(console,
U([f],e,!1)))},error:function(b,c){for(var e=[],f=2;f<arguments.length;f++)e[f-2]=arguments[f];a>=ma.error&&"undefined"!==typeof console&&(f="Snowplow: "+b+"\n",c?console.error.apply(console,U([f+"\n",c],e,!1)):console.error.apply(console,U([f],e,!1)))},debug:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];a>=ma.debug&&"undefined"!==typeof console&&console.debug.apply(console,U(["Snowplow: "+b],c,!1))},info:function(b){for(var c=[],e=1;e<arguments.length;e++)c[e-1]=arguments[e];
a>=ma.info&&"undefined"!==typeof console&&console.info.apply(console,U(["Snowplow: "+b],c,!1))}}}(),Fc={},Gc={};(function(){var a={rotl:function(b,c){return b<<c|b>>>32-c},rotr:function(b,c){return b<<32-c|b>>>c},endian:function(b){if(b.constructor==Number)return a.rotl(b,8)&16711935|a.rotl(b,24)&4278255360;for(var c=0;c<b.length;c++)b[c]=a.endian(b[c]);return b},randomBytes:function(b){for(var c=[];0<b;b--)c.push(Math.floor(256*Math.random()));return c},bytesToWords:function(b){for(var c=[],e=0,
f=0;e<b.length;e++,f+=8)c[f>>>5]|=b[e]<<24-f%32;return c},wordsToBytes:function(b){for(var c=[],e=0;e<32*b.length;e+=8)c.push(b[e>>>5]>>>24-e%32&255);return c},bytesToHex:function(b){for(var c=[],e=0;e<b.length;e++)c.push((b[e]>>>4).toString(16)),c.push((b[e]&15).toString(16));return c.join("")},hexToBytes:function(b){for(var c=[],e=0;e<b.length;e+=2)c.push(parseInt(b.substr(e,2),16));return c},bytesToBase64:function(b){for(var c=[],e=0;e<b.length;e+=3)for(var f=b[e]<<16|b[e+1]<<8|b[e+2],g=0;4>g;g++)8*
e+6*g<=8*b.length?c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(f>>>6*(3-g)&63)):c.push("=");return c.join("")},base64ToBytes:function(b){b=b.replace(/[^A-Z0-9+\/]/ig,"");for(var c=[],e=0,f=0;e<b.length;f=++e%4)0!=f&&c.push(("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e-1))&Math.pow(2,-2*f+8)-1)<<2*f|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b.charAt(e))>>>6-2*f);return c}};Gc=a})();var Wb=
{utf8:{stringToBytes:function(a){return Wb.bin.stringToBytes(unescape(encodeURIComponent(a)))},bytesToString:function(a){return decodeURIComponent(escape(Wb.bin.bytesToString(a)))}},bin:{stringToBytes:function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c)&255);return b},bytesToString:function(a){for(var b=[],c=0;c<a.length;c++)b.push(String.fromCharCode(a[c]));return b.join("")}}},Hc=Wb;(function(){var a=Gc,b=Hc.utf8,c=Hc.bin,e=function(f,g){var h=a.wordsToBytes,m=f;m.constructor==String?
m=b.stringToBytes(m):"undefined"!==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(m)?m=Array.prototype.slice.call(m,0):Array.isArray(m)||(m=m.toString());f=a.bytesToWords(m);var r=8*m.length;m=[];var n=1732584193,z=-271733879,v=-1732584194,t=271733878,k=-1009589776;f[r>>5]|=128<<24-r%32;f[(r+64>>>9<<4)+15]=r;for(r=0;r<f.length;r+=16){for(var x=n,J=z,P=v,H=t,N=k,E=0;80>E;E++){if(16>E)m[E]=f[r+E];else{var R=m[E-3]^m[E-8]^m[E-14]^m[E-16];m[E]=R<<1|R>>>31}R=(n<<5|n>>>27)+k+(m[E]>>>
0)+(20>E?(z&v|~z&t)+1518500249:40>E?(z^v^t)+1859775393:60>E?(z&v|z&t|v&t)-1894007588:(z^v^t)-899497514);k=t;t=v;v=z<<30|z>>>2;z=n;n=R}n+=x;z+=J;v+=P;t+=H;k+=N}h=h.call(a,[n,z,v,t,k]);return g&&g.asBytes?h:g&&g.asString?c.bytesToString(h):a.bytesToHex(h)};e._blocksize=16;e._digestsize=20;Fc=e})();var ad=Fc,Ta={},od=function(){return function(){this.outQueues=[];this.bufferFlushers=[];this.hasLoaded=!1;this.registeredOnLoadHandlers=[]}}(),Ic="undefined"!==typeof window?nd():void 0;w.addGlobalContexts=
function(a,b){C(b,function(c){c.core.addGlobalContexts(a)})};w.addPlugin=function(a,b){C(b,function(c){c.addPlugin(a)})};w.clearGlobalContexts=function(a){C(a,function(b){b.core.clearGlobalContexts()})};w.clearUserData=function(a,b){C(b,function(c){c.clearUserData(a)})};w.crossDomainLinker=function(a,b){C(b,function(c){c.crossDomainLinker(a)})};w.disableAnonymousTracking=function(a,b){C(b,function(c){c.disableAnonymousTracking(a)})};w.discardBrace=function(a,b){C(b,function(c){c.discardBrace(a)})};
w.discardHashTag=function(a,b){C(b,function(c){c.discardHashTag(a)})};w.enableActivityTracking=function(a,b){C(b,function(c){c.enableActivityTracking(a)})};w.enableActivityTrackingCallback=function(a,b){C(b,function(c){c.enableActivityTrackingCallback(a)})};w.enableAnonymousTracking=function(a,b){C(b,function(c){c.enableAnonymousTracking(a)})};w.flushBuffer=function(a,b){C(b,function(c){c.flushBuffer(a)})};w.newSession=function(a){C(a,function(b){b.newSession()})};w.newTracker=function(a,b,c){void 0===
c&&(c={});if(Ic){var e="js-".concat("3.13.1");Qa.hasOwnProperty(a)?a=null:(Qa[a]=$c(a,a,e,b,Ic,c),a=Qa[a]);return a}};w.preservePageViewId=function(a){C(a,function(b){b.preservePageViewId()})};w.removeGlobalContexts=function(a,b){C(b,function(c){c.core.removeGlobalContexts(a)})};w.setBufferSize=function(a,b){C(b,function(c){c.setBufferSize(a)})};w.setCollectorUrl=function(a,b){C(b,function(c){c.setCollectorUrl(a)})};w.setCookiePath=function(a,b){C(b,function(c){c.setCookiePath(a)})};w.setCustomUrl=
c&&(c={});if(Ic){var e="js-".concat("3.13.2-dev.0");Ta.hasOwnProperty(a)?a=null:(Ta[a]=$c(a,a,e,b,Ic,c),a=Ta[a]);return a}};w.preservePageViewId=function(a){C(a,function(b){b.preservePageViewId()})};w.removeGlobalContexts=function(a,b){C(b,function(c){c.core.removeGlobalContexts(a)})};w.setBufferSize=function(a,b){C(b,function(c){c.setBufferSize(a)})};w.setCollectorUrl=function(a,b){C(b,function(c){c.setCollectorUrl(a)})};w.setCookiePath=function(a,b){C(b,function(c){c.setCookiePath(a)})};w.setCustomUrl=
function(a,b){C(b,function(c){c.setCustomUrl(a)})};w.setDocumentTitle=function(a,b){C(b,function(c){c.setDocumentTitle(a)})};w.setOptOutCookie=function(a,b){C(b,function(c){c.setOptOutCookie(a)})};w.setReferrerUrl=function(a,b){C(b,function(c){c.setReferrerUrl(a)})};w.setUserId=function(a,b){C(b,function(c){c.setUserId(a)})};w.setUserIdFromCookie=function(a,b){C(b,function(c){c.setUserIdFromCookie(a)})};w.setUserIdFromLocation=function(a,b){C(b,function(c){c.setUserIdFromLocation(a)})};w.setUserIdFromReferrer=
function(a,b){C(b,function(c){c.setUserIdFromReferrer(a)})};w.setVisitorCookieTimeout=function(a,b){C(b,function(c){c.setVisitorCookieTimeout(a)})};w.trackPageView=function(a,b){C(b,function(c){c.trackPageView(a)})};w.trackSelfDescribingEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,f=a.event,g=f.schema,h=f.data;f=Ra();g={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:g,data:h}};f.add("e","ue");f.addJson("ue_px","ue_pr",g);e.call(c,f,a.context,
a.timestamp)})};w.trackStructEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,f=a.category,g=a.action,h=a.label,m=a.property,r=a.value,n=Ra();n.add("e","se");n.add("se_ca",f);n.add("se_ac",g);n.add("se_la",h);n.add("se_pr",m);n.add("se_va",null==r?void 0:r.toString());e.call(c,n,a.context,a.timestamp)})};w.updatePageActivity=function(a){C(a,function(b){b.updatePageActivity()})};w.version="3.13.1";Object.defineProperty(w,"__esModule",{value:!0})})
function(a,b){C(b,function(c){c.setUserIdFromReferrer(a)})};w.setVisitorCookieTimeout=function(a,b){C(b,function(c){c.setVisitorCookieTimeout(a)})};w.trackPageView=function(a,b){C(b,function(c){c.trackPageView(a)})};w.trackSelfDescribingEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,f=a.event,g=f.schema,h=f.data;f=Ua();g={schema:"iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0",data:{schema:g,data:h}};f.add("e","ue");f.addJson("ue_px","ue_pr",g);e.call(c,f,a.context,
a.timestamp)})};w.trackStructEvent=function(a,b){C(b,function(c){c=c.core;var e=c.track,f=a.category,g=a.action,h=a.label,m=a.property,r=a.value,n=Ua();n.add("e","se");n.add("se_ca",f);n.add("se_ac",g);n.add("se_la",h);n.add("se_pr",m);n.add("se_va",null==r?void 0:r.toString());e.call(c,n,a.context,a.timestamp)})};w.updatePageActivity=function(a){C(a,function(b){b.updatePageActivity()})};w.version="3.13.2-dev.0";Object.defineProperty(w,"__esModule",{value:!0})})
//# sourceMappingURL=index.umd.min.js.map
{
"name": "@snowplow/browser-tracker",
"version": "3.13.1",
"version": "3.13.2-dev.0",
"description": "Browser tracker for Snowplow",

@@ -35,4 +35,4 @@ "keywords": [

"dependencies": {
"@snowplow/browser-tracker-core": "3.13.1",
"@snowplow/tracker-core": "3.13.1",
"@snowplow/browser-tracker-core": "3.13.2-dev.0",
"@snowplow/tracker-core": "3.13.2-dev.0",
"tslib": "^2.3.1"

@@ -39,0 +39,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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