!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){"object"==typeof window.Pepperjam&&null!==window.Pepperjam||(window.Pepperjam={})}]); !function(t){var e={};function i(a){if(e[a])return e[a].exports;var r=e[a]={i:a,l:!1,exports:{}};return t[a].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.d=function(t,e,a){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(a,r,function(e){return t[e]}.bind(null,r));return a},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=0)}([function(t,e,i){"use strict";function a(t){if(this.constructor===a)throw new Error("Cannot instantiate abstract class");this._data=null,this.window=t}function r(t,e,i){a.call(this,t),this._cookieName=e,this._cookieMaxAge=i;var r=this;return this.getCookieName=function(){return this._cookieName},this.getCookieMaxAge=function(){return this._cookieMaxAge},this.saveData=function(t){this._data=t,this.window.document.cookie=this._cookieName+"="+t+";path=/;max-age="+this._cookieMaxAge},this.getData=function(){var t=null;return this.window.document.cookie.split(";").forEach((function(e){var i=(e=e.trim()).split("="),a=i[0],o=i[1];a===r._cookieName&&(t=o)})),t},this}function o(t,e){return a.call(this,t),this._storageKey=e,this.getStorageKey=function(){return this._storageKey},this.saveData=function(e){this._data=e,t.localStorage.setItem(this._storageKey,e)},this.getData=function(){return t.localStorage.getItem(this._storageKey)},this}i.r(e),a.prototype.getData=function(){return this._data},a.prototype.setData=function(t){this._data=t},r.prototype=Object.create(a.prototype),Object.defineProperty(r.prototype,"constructor",{value:r,enumerable:!1,writable:!0}),o.prototype=Object.create(a.prototype),Object.defineProperty(o.prototype,"constructor",{value:o,enumerable:!1,writable:!0}),window.PepperjamTracking=function(t){var e=this;return this.window=t,this.clickIdQueryParamIframe="CLICK_ID",this.clickIdQueryParam="clickId",this.gclidQueryParam="gclid",this.cookieName="pjn-click",this.cookieMaxAge=5184e3,this.localStorageKey="pjnClickData",this.domains=["t.pepperjamnetwork.com"],this.messageNoCookies="pjn-no-cookies",this.messageCookiesOk="pjn-cookies-ok",this.pjPrefix="p",this.gclidPrefix="g",this.iframeAdded=!1,this.maxClicks=20,this.lookBackPeriod=60,this.platformKey="PLATFORM",this.platform="ITC2",this.parsedIframeClass="pjIframeParsed",this.cookieStorage=new r(this.window,this.cookieName,this.cookieMaxAge),this.localStorage=new o(this.window,this.localStorageKey),this.getAnchor=function(t){var e=this.window.document.createElement("a");return e.href=t,e},this.getQueryParam=function(t,e){for(var i=e.split("&"),a=0;a0){a=a.sort((function(t,e){return i.daySort(t,e)}));var o=[];a.forEach((function(t){var e=t.id;o.indexOf(e)<0&&(o.push(e),r.push(t))}))}return this.trimCookie(r,!1)},this.getTrackingIframeUrls=function(){for(var t=[],i=this.window.document.querySelectorAll("iframe"),a=0;a=0&&!r.className.match(s)&&(t.push(o),""===r.className?r.className=e.parsedIframeClass:r.className+=" "+e.parsedIframeClass)}return t},this.handleClickId=function(t,e){var i=t;if(i){for(var a=this.getToday(),r=this.getClickData(),o=!1,s=r,n=0;nthis.maxClicks&&(r=this.trimCookie(r,!0)),this.saveCookieData(JSON.stringify(r)))}},this.trimCookie=function(t,e){return t.length>this.maxClicks&&(t=e?(t=t.reverse().splice(0,this.maxClicks)).reverse():t.splice(0,this.maxClicks)),t},this.clickWithinLookback=function(t,e){return Math.abs(e-t.days)<=this.lookBackPeriod},this.handleConversion=function(t){var i=e.getAnchor(t.origin),a=e.domains.indexOf(i.hostname)>=0;if((t.data===e.messageNoCookies||t.data===e.messageCookiesOk)&&a){var r=e.getTrackingIframeUrls();r.length&&!e.iframeAdded&&(r.forEach((function(t,i){var a=e.window.document.createElement("iframe"),r=t.href,o=e.clickDataToQueryParam(e.getQueryParam("INT",t.search.substring(1))),s=e.getQueryParam(e.clickIdQueryParamIframe,t.search.substring(1).toUpperCase());if(s){var n=s.split(","),c=o?o.split(","):[],h=[],u=n.length,l=c.length,f=e.getPjClickData();if(e.getQueryParam("INT",t.search.substring(1))&&"dynamic"===e.getQueryParam("INT",t.search.substring(1)).toLowerCase()||0===f.length)for(i=0;i0&&(this.saveCookieData(JSON.stringify(t)),this.saveLocalStorageData(JSON.stringify(t)))},this.handle()},new window.PepperjamTracking(window)}]);