/*! * Commit SHA: c289997 * Commit timestamp: "2022-05-25 15:27:38 -0400" * Build timestamp: 2022-06-01 12:17:40 -0400 * simonjs 2.0.0 * https://www.simondata.com * (c) 2017 Simon Data */ !function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var p=n[a]={exports:{}};t[a][0].call(p.exports,function(e){var n=t[a][1][e];return i(n||e)},p,p.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a=2&&(!t||t&&0===a[0].indexOf("sd_"))){var s=a.slice(1).join("=");n[a[0]]=s}}return n},this.getUrlEmail=function(){for(var t,n=["sd_email","WT.dscvid","cm_emid","vid","email"],r=/^([_\.\-\+a-zA-Z0-9]+)@([\.\-a-zA-Z0-9]+)\.([A-Za-z]{2,})$/,i=/\+/g,o=/([^&=]+)=?([^&]*)/g,a=function(e){return decodeURIComponent(e.replace(i," "))},s=e.location.search.substring(1),c={},u=0;t=o.exec(s);)c[a(t[1])]=a(t[2]),u++;var p,d;if(u>0){for(var l=0;l-1&&e.navigator.userAgent&&!e.navigator.userAgent.match("CriOS")},this.createHtmlAsChild=function(t,n){var r=e.document.createElement("div");r.innerHTML=t;for(var i=r.childNodes,o=0;o0?n[0]:void 0}}},{}],4:[function(e,t,n){"use strict";t.exports=function(e,t,n){function r(t,n,r){return function(){try{return t.apply(this,arguments)}catch(t){if(e.debug)throw t;n.logError(t)}}}e.addListener("exception",function(e){n.sendError(e)}),this.logError=function(n){t.isDefined(n)&&e.call("exception",{name:n.name,message:n.message,stacktrace:n.stack||n.stacktrace})},this.wrap=function(e){if(t.isFunction(e))return r(e,this);if(t.isObject(e)){for(var n in e){var i=e[n];t.isFunction(i)&&(e[n]=r(i,this))}return e}}}},{}],5:[function(e,t,n){"use strict";var r=e("./SimonError");t.exports=function(e,t,n,i,o,a){function s(){var e=Array.prototype.shift.apply(arguments),t=Array.prototype.shift.apply(arguments)||{};n.isString(e)&&n.isObject(t)&&o.sendEvent(e,{properties:t})}function c(){var e=Array.prototype.shift.apply(arguments),r=Array.prototype.shift.apply(arguments)||{};if(n.isString(e)&&n.isObject(r)){var i={userId:e,traits:r};t.setIdentityData(i),o.sendIdentity("identify",i)}}function u(){return{send:function(){switch(Array.prototype.shift.apply(arguments)){case"track":s.apply(null,arguments);break;case"identify":c.apply(null,arguments)}},identify:c,track:s}}this.init=function(){var o=e[e.SimonData],c=new u;if(e[e.SimonData]=c,!n.isDefined(o))throw new r("Global SimonData object is undefined. Possible corrupted simon.js script tag.");var p=t.getClientId();if(p?i.createCookie(i.CookieNames.CLIENT_ID_COOKIE,p,730):t.createClientId(),o.q)for(var d=0;d<\/script>',n)}},this.createTags=function(){t.getTags(this.getTagsResolver)}}},{}],10:[function(e,t,n){"use strict";var r=e("uuid/v4");t.exports=function(e){Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(r.prototype=this.prototype),i.prototype=new r,i}),this.isObject=function(e){return"[object Object]"===Object.prototype.toString.call(e)},this.isString=function(e){return"[object String]"===Object.prototype.toString.call(e)},this.isArray=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},this.isFunction=function(e){return"[object Function]"===Object.prototype.toString.call(e)},this.isValue=function(e){return!this.isArray(e)&&!this.isObject(e)&&!this.isFunction(e)},this.isDefined=function(e){return null!==e&&void 0!==e},this.isGoodValue=function(e){return this.isDefined(e)&&""!==e},this.isMinimumIE=function(t){var n=e.navigator.userAgent.toLowerCase();return-1!=n.indexOf("msie")&&parseInt(n.split("msie")[1])>=t},this.newUuid=function(){return r()},this.deepCopy=function(e){return JSON.parse(JSON.stringify(e))},this.mergeObjects=function(e,t){var n=this.deepCopy(e);for(var r in t)if(t.hasOwnProperty(r)&&this.isGoodValue(t[r])){var i=t[r],o=n[r];this.isObject(o)&&this.isObject(i)?n[r]=this.mergeObjects(o,i):n[r]=t[r]}return n}}},{"uuid/v4":14}],11:[function(e,t,n){"use strict";t.exports=function(e){function t(e,n,r){for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];if(o&&!(i in n))return console.error("Error validating event: "+e+"; property not found: "+i),!1;if(Array.isArray(o)){var a=n[i];if(!Array.isArray(a))return console.error("Error validating event: "+e+"; property: "+i+" must be an array"),!1;for(var s=0;s>>((3&t)<<3)&255;return o}}t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],14:[function(e,t,n){var r=e("./lib/rng"),i=e("./lib/bytesToUuid");t.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||i(a)}},{"./lib/bytesToUuid":12,"./lib/rng":13}],15:[function(e,t,n){t.exports={name:"simonjs",version:"2.0.0",description:"Simon Data JavaScript Tracker",license:"UNLICENSED",repository:{type:"git",url:"git@github.com:Radico/simonjs.git"},devDependencies:{brfs:"^1.4.3","browserify-shim":"^3.8.14",grunt:"1.0.1","grunt-browserify":"4.0.1","grunt-contrib-clean":"1.1.0","grunt-contrib-compress":"1.4.3","grunt-contrib-concat":"1.0.1","grunt-contrib-copy":"1.0.0","grunt-contrib-jshint":"1.1.0","grunt-contrib-uglify":"3.0.1","grunt-gitinfo":"0.1.8","grunt-karma":"2.0.0","grunt-serve":"0.1.6","jasmine-core":"2.6.3",karma:"1.7.0","karma-browserify":"5.1.1","karma-chrome-launcher":"2.1.1","karma-jasmine":"1.1.0","karma-phantomjs-launcher":"1.0.4",lodash:"4.17.4",matchdep:"1.0.1","package-json-versionify":"1.0.4","phantomjs-prebuilt":"2.1.14",uuid:"3.0.1"},engines:{node:"6.11.0"},"browserify-shim":{external:"global:External"}}},{}]},{},[7]);