(function() {window.PARSELY = window.PARSELY || {}; window.PARSELY.version = "1.5.0"; window.PARSELY.majorVersion = 1; window.PARSELY.hotfixName = ""; window.PARSELY.flavor = "engagedtime-slots-sync"; window.PARSELY.__template_track_tpcs = false; window.PARSELY.__template_track_ips = true; window.PARSELY.__template_heartbeat_should_honor_autotrack = undefined; window.PARSELY.__template_apikey = "medium.com"; })(); /*! parsely-js-api - v1.5.0 - 2020-04-01 * http://www.parsely.com/ * 2020 Parsely, Inc. */ window.PARSELY=window.PARSELY||{},function(){var e=function(){return function(e){this!==window&&void 0!==this&&(this.msgs.length>=100&&(this.msgs=this.msgs.slice(0,100)),this.msgs.push(e))}};PARSELY.console={"msgs":[],"log":e(),"dir":e()}}(),function(){var e,t=PARSELY.console,n=function(e){return e<10?"0"+e:""+e},i=new Date,r=i.getUTCFullYear()+"-"+n(i.getUTCMonth()+1)+"-"+n(i.getUTCDate())+"-"+n(i.getUTCHours());try{e=document.getElementById("parsely-cfg").getAttribute("data-parsely-site")}catch(u){e=null}var o=PARSELY.site||e||PARSELY.__template_apikey||"missing.parsely.com",a=document.location.protocol+"//"+(PARSELY.pixelhost||PARSELY.__template_pixelhost||"srv-"+r+".pixel.parsely.com");PARSELY.pInit=function(e){if(e.error===undefined){if(t.log("Static configuration loaded"),"object"==typeof PARSELY.config)for(var n in PARSELY.config)PARSELY.config.hasOwnProperty(n)&&(e[n]=PARSELY.config[n]);PARSELY.config=e,PARSELY.urls={"static":null,"config":null,"pixel":a},PARSELY._sync=!0,PARSELY.is_first_party=PARSELY.__template_is_first_party||!1}else t.log("Unable to load static configuration")},t.log("Loading configuration statically");var s={"apikey":o,"uuid":null,"network_uuid":null,"apikey_uuid":null,"settings":{"debug":!1,"widget":!1,"tracker":!0,"test":window._parselyIsTest||!1},"bundle":null,"customizations":null,"track_ip_addresses":PARSELY.__template_track_ips||!0,"track_third_party_cookies":PARSELY.__template_track_tpcs||!1,"heartbeat_should_honor_autotrack":PARSELY.__template_heartbeat_should_honor_autotrack||!1,"is_remote_config":!1};PARSELY.$LAB=null,PARSELY.pInit(s)}(),function(){function f(e){return e<10?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,i,r,o,a,s=gap,u=t[e];switch(u&&"object"==typeof u&&"function"==typeof u.toJSON&&(u=u.toJSON(e)),"function"==typeof rep&&(u=rep.call(t,e,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(u)){for(o=u.length,n=0;n0&&t-1 in e))}function i(e){var t;for(t in e)if(("data"!==t||!y.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function r(e,t,n,i){if(y.acceptData(e)){var r,o,a=y.expando,s=e.nodeType,u=s?y.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(i||u[l].data)||n!==undefined||"string"!=typeof t)return l||(l=s?e[a]=c.pop()||y.guid++:a),u[l]||(u[l]=s?{}:{"toJSON":y.noop}),"object"!=typeof t&&"function"!=typeof t||(i?u[l]=y.extend(u[l],t):u[l].data=y.extend(u[l].data,t)),o=u[l],i||(o.data||(o.data={}),o=o.data),n!==undefined&&(o[y.camelCase(t)]=n),"string"==typeof t?null==(r=o[t])&&(r=o[y.camelCase(t)]):r=o,r}}function o(){return!0}function a(){return!1}function s(){try{return w.activeElement}catch(e){}}function u(e,t,n,i){var r;if(y.isArray(t))y.each(t,function(t,r){n||D.test(e)?i(e,r):u(e+"["+("object"==typeof r?t:"")+"]",r,n,i)});else if(n||"object"!==y.type(t))i(e,t);else for(r in t)u(e+"["+r+"]",t[r],n,i)}var c=[],l=c.slice,d=(c.concat,c.push),f=(c.indexOf,{}),p=f.toString,g=f.hasOwnProperty,h={},v="1.11.1 -deprecated,-css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/isHidden,-css/var/rmargin,-css/var/rnumnonpx,-effects,-effects/Tween,-effects/animatedSelector,-effects/support,-dimensions,-offset,-ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl",y=function(e,t){return new y.fn.init(e,t)},m=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,_=/^-ms-/,S=/-([\da-z])/gi,b=function(e,t){return t.toUpperCase()};y.fn=y.prototype={"jquery":v,"constructor":y,"selector":"","length":0,"toArray":function(){return l.call(this)},"get":function(e){return null!=e?e<0?this[e+this.length]:this[e]:l.call(this)},"pushStack":function(e){var t=y.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},"each":function(e,t){return y.each(this,e,t)},"map":function(e){return this.pushStack(y.map(this,function(t,n){return e.call(t,n,t)}))},"slice":function(){return this.pushStack(l.apply(this,arguments))},"first":function(){return this.eq(0)},"last":function(){return this.eq(-1)},"eq":function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n=0},"isEmptyObject":function(e){var t;for(t in e)return!1;return!0},"isPlainObject":function(e){var t;if(!e||"object"!==y.type(e)||e.nodeType||y.isWindow(e))return!1;try{if(e.constructor&&!g.call(e,"constructor")&&!g.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(h.ownLast)for(t in e)return g.call(e,t);for(t in e);return t===undefined||g.call(e,t)},"type":function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[p.call(e)]||"object":typeof e},"camelCase":function(e){return e.replace(_,"ms-").replace(S,b)},"nodeName":function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"each":function(e,t,i){var r=0,o=e.length,a=n(e);if(i){if(a)for(;r(?:<\/\1>|)$/,w=e.document,k=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(y.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if((n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:k.exec(e))&&(n[1]||!t)){if(n[1]){if(t=t instanceof y?t[0]:t,y.merge(this,y.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:w,!0)),E.test(n[1])&&y.isPlainObject(t))for(n in t)y.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(i=w.getElementById(n[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=w,this.selector=e,this}}else{if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(y.isFunction(e))return"undefined"!=typeof x.ready?x.ready(e):e(y)}return e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),y.makeArray(e,this)}).prototype=y.fn,x=y(w);var P,A=/\S+/g,T=typeof undefined;for(P in y(h))break;h.ownLast="0"!==P,y.acceptData=function(e){var t=y.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)};y.extend({"cache":{},"noData":{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},"hasData":function(e){return!!(e=e.nodeType?y.cache[e[y.expando]]:e[y.expando])&&!i(e)},"data":function(e,t,n){return r(e,t,n)},"_data":function(e,t,n){return r(e,t,n,!0)}});!function(){var t,n,i=w.createElement("div");for(t in{"submit":!0,"change":!0,"focusin":!0})n="on"+t,(h[t+"Bubbles"]=n in e)||(i.setAttribute(n,"t"),h[t+"Bubbles"]=!1===i.attributes[n].expando);i=null}();var C=/^key/,L=/^(?:mouse|pointer|contextmenu)|click/,R=/^(?:focusinfocus|focusoutblur)$/,O=/^([^.]*)(?:\.(.+)|)$/;y.event={"global":{},"add":function(e,t,n,i,r){var o,a,s,u,c,l,d,f,p,g,h,v=y._data(e);if(v){for(n.handler&&(n=(u=n).handler,r=u.selector),n.guid||(n.guid=y.guid++),(a=v.events)||(a=v.events={}),(l=v.handle)||((l=v.handle=function(e){return typeof y===T||e&&y.event.triggered===e.type?undefined:y.event.dispatch.apply(l.elem,arguments)}).elem=e),s=(t=(t||"").match(A)||[""]).length;s--;)p=h=(o=O.exec(t[s])||[])[1],g=(o[2]||"").split(".").sort(),p&&(c=y.event.special[p]||{},p=(r?c.delegateType:c.bindType)||p,c=y.event.special[p]||{},d=y.extend({"type":p,"origType":h,"data":i,"handler":n,"guid":n.guid,"selector":r,"needsContext":r&&y.expr.match.needsContext.test(r),"namespace":g.join(".")},u),(f=a[p])||((f=a[p]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,g,l)||(e.addEventListener?e.addEventListener(p,l,!1):e.attachEvent&&e.attachEvent("on"+p,l))),c.add&&(c.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,d):f.push(d),y.event.global[p]=!0);e=null}},"trigger":function(t,n,i,r){var o,a,s,u,c,l,d,f=[i||w],p=g.call(t,"type")?t.type:t,h=g.call(t,"namespace")?t.namespace.split("."):[];if(s=l=i=i||w,3!==i.nodeType&&8!==i.nodeType&&!R.test(p+y.event.triggered)&&(p.indexOf(".")>=0&&(p=(h=p.split(".")).shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[y.expando]?t:new y.Event(p,"object"==typeof t&&t),t.isTrigger=r?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=i),n=null==n?[t]:y.makeArray(n,[t]),c=y.event.special[p]||{},r||!c.trigger||!1!==c.trigger.apply(i,n))){if(!r&&!c.noBubble&&!y.isWindow(i)){for(u=c.delegateType||p,R.test(u+p)||(s=s.parentNode);s;s=s.parentNode)f.push(s),l=s;l===(i.ownerDocument||w)&&f.push(l.defaultView||l.parentWindow||e)}for(d=0;(s=f[d++])&&!t.isPropagationStopped();)t.type=d>1?u:c.bindType||p,(o=(y._data(s,"events")||{})[t.type]&&y._data(s,"handle"))&&o.apply(s,n),(o=a&&s[a])&&o.apply&&y.acceptData(s)&&(t.result=o.apply(s,n),!1===t.result&&t.preventDefault());if(t.type=p,!r&&!t.isDefaultPrevented()&&(!c._default||!1===c._default.apply(f.pop(),n))&&y.acceptData(i)&&a&&i[p]&&!y.isWindow(i)){(l=i[a])&&(i[a]=null),y.event.triggered=p;try{i[p]()}catch(v){}y.event.triggered=undefined,l&&(i[a]=l)}return t.result}},"dispatch":function(e){e=y.event.fix(e);var t,n,i,r,o,a=[],s=l.call(arguments),u=(y._data(this,"events")||{})[e.type]||[],c=y.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(a=y.event.handlers.call(this,e,u),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,o=0;(i=r.handlers[o++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(i.namespace)||(e.handleObj=i,e.data=i.data,(n=((y.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,s))!==undefined&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},"handlers":function(e,t){var n,i,r,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(!0!==u.disabled||"click"!==e.type)){for(r=[],o=0;o=0:y.find(n,this,null,[u]).length),r[n]&&r.push(i);r.length&&a.push({"elem":u,"handlers":r})}return s0?this.on(t,null,e,n):this.trigger(t)}});var N=/%20/g,D=/\[\]$/;y.param=function(e,t){var n,i=[],r=function(e,t){t=y.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(t===undefined&&(t=y.ajaxSettings&&y.ajaxSettings.traditional),y.isArray(e)||e.jquery&&!y.isPlainObject(e))y.each(e,function(){r(this.name,this.value)});else for(n in e)u(n,e[n],t,r);return i.join("&").replace(N,"+")};var Y=e.jQuery,j=e.$;return y.noConflict=function(t){return e.$===y&&(e.$=j),t&&e.jQuery===y&&(e.jQuery=Y),y},typeof t===T&&(e.jQuery=e.$=y),y}),"undefined"==typeof window.PARSELY&&(window.PARSELY={}),function(e,t){window.PARSELY._lifecycle=t()}(0,function(){"use strict";var e=void 0;try{new EventTarget,e=!1}catch(t){e=!1}var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=function(){function e(e,t){for(var n=0;n-1&&n.splice(i,1)}},{"key":"dispatchEvent","value":function(e){return e.target=this,Object.freeze(e),this._getRegistry(e.type).forEach(function(t){return t(e)}),!0}},{"key":"_getRegistry","value":function(e){return this._registry[e]=this._registry[e]||[]}}]),e}(),s=e?EventTarget:a,u=e?Event:function S(e){n(this,S),this.type=e},c=function(e){function t(e,i){n(this,t);var r=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.newState=i.newState,r.oldState=i.oldState,r.originalEvent=i.originalEvent,r}return r(t,u),t}(),l="active",d="passive",f="hidden",p="frozen",g="terminated",h="object"===("undefined"==typeof safari?"undefined":t(safari))&&safari.pushNotification,v=["focus","blur","visibilitychange","freeze","resume","pageshow","onpageshow"in self?"pagehide":"unload"],y=function(e){return e.preventDefault(),e.returnValue="Are you sure?"},m=[[l,d,f,g],[l,d,f,p],[f,d,l],[p,f],[p,l],[p,d]].map(function(e){return e.reduce(function(e,t,n){return e[t]=n,e},{})}),_=function(){return document.visibilityState===f?f:document.hasFocus()?l:d};return new(function(e){function t(){n(this,t);var e=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),i=_();return e._state=i,e._unsavedChanges=[],e._handleEvents=e._handleEvents.bind(e),v.forEach(function(t){return addEventListener(t,e._handleEvents,!0)}),h&&addEventListener("beforeunload",function(t){e._safariBeforeUnloadTimeout=setTimeout(function(){t.defaultPrevented||t.returnValue.length>0||e._dispatchChangesIfNeeded(t,f)},0)}),e}return r(t,s),i(t,[{"key":"addUnsavedChanges","value":function(e){!this._unsavedChanges.indexOf(e)>-1&&(0===this._unsavedChanges.length&&addEventListener("beforeunload",y),this._unsavedChanges.push(e))}},{"key":"removeUnsavedChanges","value":function(e){var t=this._unsavedChanges.indexOf(e);t>-1&&(this._unsavedChanges.splice(t,1),0===this._unsavedChanges.length&&removeEventListener("beforeunload",y))}},{"key":"_dispatchChangesIfNeeded","value":function(e,t){if(t!==this._state)for(var n=function(e,t){for(var n,i=0;n=m[i];++i){var r=n[e],o=n[t];if(r>=0&&o>=0&&o>r)return Object.keys(n).slice(r,o+1)}return[]}(this._state,t),i=0;i-1&&navigator.userAgent&&-1===navigator.userAgent.indexOf("CriOS")&&-1===navigator.userAgent.indexOf("FxiOS")},e.isFirefox=function(){return"undefined"!=typeof InstallTrigger},e.makeUUID=function(){return"pid=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx".replace(/x/g,function(){return(16*Math.random()|0).toString(16)})}}(),function(e){"use strict";e.Cookies=function(t){var n=function(e,t,i){return 1===arguments.length?n.get(e):n.set(e,t,i)};return n._document=t.document,n._cacheKeyPrefix="cookey.",n._maxExpireDate=new Date("Fri, 31 Dec 9999 23:59:59 UTC"),n.defaults={"path":"/","secure":!1},n.get=function(e){return n._renewCache(),n._cache[n._cacheKeyPrefix+e]},n.getJSON=function(t){var i=n.get(t);return i===undefined?i:e.JSON.parse(i)},n.set=function(t,i,r){(r=n._getExtendedOptions(r)).expires=n._getExpiresDate(i===undefined?-1:r.expires);try{n._document.cookie=n._generateCookieString(t,i,r)}catch(o){e.console.log(o)}return n},n.setJSON=function(t,i,r){return n.set(t,e.JSON.stringify(i),r),n},n.extendExpiry=function(e,t){var i=n.get(e);if(i===undefined)return!1;n.set(e,i,t)},n.expire=function(e,t){if(e.constructor!==Array)return n.set(e,undefined,t);for(var i=0;ii)return t.expire(e),undefined}return n.value},t.getJSON=function(n){var i=t.get(n);return void 0===i?i:e.JSON.parse(i)},t.set=function(n,i,r){var o=t._keyPrefix+n;if(void 0===i)return delete t._store[o],t;r=e.Cookies._getExtendedOptions(r);var a,s=e.Cookies._getExpiresDate(r.expires);void 0!==s&&(s=s.getTime());try{a=t._serialize({"value":i,"expires":s})}catch(u){return console.log("Error serializing stored data for key "+n),t}return t._store[o]=a,t},t.setJSON=function(n,i,r){return t.set(n,e.JSON.stringify(i),r),t},t.extendExpiry=function(e,n){var i=t.get(e);if(void 0===i)return!1;t.set(e,i,n)},t.expire=function(e,n){return t.set(e,undefined,n)},t._serialize=function(e){return e.value+t._delimiter+e.expires},t._deserialize=function(e){var n=e.split(t._delimiter),i={"value":n[0]};return n.length>1&&(i.expires=n[1]),i},t._migrateCookie=function(n){var i=e.Cookies.get(n);if(e.Cookies.expire(n),void 0!==i){var r=e.ParselyStorage.defaults[n],o={};void 0!==r&&(o.expires=r),t.set(n,i,o)}},{"constructor":t,"get":t.get,"getJSON":t.getJSON,"set":t.set,"setJSON":t.setJSON,"extendExpiry":t.extendExpiry,"expire":t.expire}}();var n=function(){};n.prototype=function(){var n=new t,i=function(){var t=n._keyPrefix;try{return e.util.getWindow().localStorage.setItem(t,t),e.util.getWindow().localStorage.removeItem(t),!0}catch(i){return!1}}()&&function(){var t=!1,n=e.Cookies.get("_parsely_visitor");return void 0!==n&&"{"!==n.charAt(0)&&(t=!0),!!e.util.isSafari()||!0===e.use_localstorage&&!t}()?n:e.Cookies;return{"supportsCookies":"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1),"get":i.get,"getJSON":i.getJSON,"set":i.set,"setJSON":i.setJSON,"extendExpiry":i.extendExpiry,"expire":i.expire,"defaults":{"visitor":{"key":"_parsely_visitor","expires":34164e3,"secure":!1},"session":{"key":"_parsely_session","expires":1800,"secure":!1}}}}(),e.ParselyStorage=new n}(this.PARSELY),function(){var e=this.PARSELY,t=e.Class,n=e.ParselyStorage,i=e.console,r=e.JSON,o=["id"],a=t.extend({"init":function(){this.visitorCookieName=e.visitorCookieName||n.defaults.visitor.key,this.visitorCookieTimeoutSecs=e.visitorCookieTimeoutSecs||n.defaults.visitor.expires,this.visitorCookieSecure=e.visitorCookieSecure||n.defaults.visitor.secure,this.legacyVisitorCookieName=e.legacyVisitorCookieName||"parsely_uuid"},"getVisitorInfo":function(t){t=t||!1;var o=n.get(this.visitorCookieName);if(void 0===o){var a=n.get(this.legacyVisitorCookieName),s=e.config.apikey_uuid||e.config.uuid;!1!==e.optout_disabled_cookies&&void 0===a&&!1===n.supportsCookies&&(a="OPTOUT",i.log("Setting visitor ID to OPTOUT")),void 0===a&&null!==s?(a=s,i.log("No existing visitor ID found, using UUID from config: "+a)):i.log("Using existing value for visitor ID: "+a),o=this.initVisitor(a),n.expire("parsely_uuid")}else{var u=!1;try{o=r.parse(o),u=!0}catch(c){i.log('Unable to JSON parse visitorInfo "'+o+'", assuming ampid.'),o=this.initVisitor(o)}u&&t&&this.extendVisitorExpiry()}return e.config.parsely_site_uuid=o.id,o},"initVisitor":function(e){return this.setVisitorInfo({"id":e,"session_count":0,"last_session_ts":0})},"setVisitorInfo":function(e){for(var t=0;t=i||!e?null:"A"===e.nodeName?e:n(e.parentNode,t+1)}var i=(t=t||{}).maxHeight||5;return n(e,0)}var r=this.PARSELY,o=r.util,a=r.ParselyStorage,s="data-parsely-slot";if(r.slots=r.slots||{},document.querySelector){r.slots.discoverSlots=function(){r.slots.hasParselySlots=!!document.querySelector("["+s+"]"),r.slots.discoveryTime=(new Date).getTime()},r.slots.discoverSlots(),r.slots.reset=function(){r.slots.discoverSlots()};var u=1;o.objAddEventListener(document.body,"click",function(o){var s=i(o.target?o.target:o.srcElement);if(null===s)return!0;if(!n(s.getAttribute("href"))){var u=e(s),c=t(s),l={"url":r.util.getEventUrl(),"x":u[0],"y":u[1],"xpath":c,"href":s.href};a.setJSON("_parsely_slot_click",l)}})}else r.console("Slot tracking not supported on this browser")}(),function(e){"use strict";var t=e.$;e.Sampler=function(n){var i={};if(i._hasStartedSampling=!1,i._accumulators={},i._baseHeartbeatInterval=15e4,i._jitterRange=5e3,i._jitterFloor=0-i._jitterRange/2,t.isNumeric(e.secondsBetweenHeartbeats)){var r=i._baseHeartbeatInterval/1e3,o=e.secondsBetweenHeartbeatsr||o)&&(i._baseHeartbeatInterval=1e3*e.secondsBetweenHeartbeats)}return i.trackKey=function(e,t,r,o){if((void 0===t||"function"==typeof t)&&void 0!==r){if(!i._accumulators.hasOwnProperty(e)){var a=i._timeoutFromDuration(o);i._accumulators[e]={"ms":0,"totalMs":0,"firstSampleTime":(new Date).getTime(),"lastSampleTime":(new Date).getTime(),"lastPositiveSampleTime":undefined,"sampleFn":t,"heartbeatFn":r,"heartbeatInterval":a,"heartbeatTimer":undefined,"baseHeartbeatInterval":a,"duration":o}}!1===i._hasStartedSampling&&(n.setInterval(i._sample,100),i._hasStartedSampling=!0),i._setHeartbeatTimeout(e)}},i._setHeartbeatTimeout=function(e){var t=i._accumulators[e];"undefined"!=typeof t.heartbeatTimer&&i._unsetHeartbeatTimeout(e);var r=Math.random()*i._jitterRange+i._jitterFloor,o=t.heartbeatInterval+r;t.heartbeatTimer=n.setTimeout(function(){i.sendHeartbeat(e)},o)},i._unsetHeartbeatTimeout=function(e){var t=i._accumulators[e];n.clearTimeout(t.heartbeatTimer),t.heartbeatTimer=undefined},i._backoff=function(e,t){var n=.3*((t=void 0===t?(new Date).getTime()-e.firstSampleTime:t)/1e3+35),i=Math.min(36e5,n);e.heartbeatInterval=1e3*i},i._timeoutFromDuration=function(e){var t=i._baseHeartbeatInterval;if(void 0===e||0===e)return t;var n=e/5;return nn.baseHeartbeatInterval&&(n.heartbeatInterval=n.baseHeartbeatInterval,i._setHeartbeatTimeout(a)),n.lastPositiveSampleTime=e)},i.sendHeartbeat=function(e,t,n,r){var o=i._accumulators[e];if(void 0!==o){var a=void 0===t?o.ms/1e3:t,s=Math.round(a);s>0&&s<=3600&&o.heartbeatFn(s,undefined,o.totalMs,r),o.ms=0,r||i._backoff(o,n),i._setHeartbeatTimeout(e)}},i._sendHeartbeats=function(e,t){for(var n in i._accumulators)i.sendHeartbeat(n,e,t,!0)},i._setUnloadListeners=function(){e._lifecycle.addEventListener("statechange",function(e){"hidden"===e.newState.toLowerCase()&&i._sendHeartbeats()})},i._setUnloadListeners(),i}(e.util.getWindow())}(this.PARSELY),function(){var e=this.PARSELY,t=e.config.settings,n=e.Sampler,i=e.$,r=e.util;if("boolean"!=typeof e.enableHeartbeats||e.enableHeartbeats){var o=["focus","mousedown","mouseup","mousemove","scroll","keyup","keydown"],a=["active","passive"],s=5;i.isNumeric(e.activeTimeout)&&e.activeTimeout>=1&&e.activeTimeout<=60&&(s=e.activeTimeout);var u=(new Date).getTime();e.engagedTime=e.engagedTime||{},e._lastEventTime=u,e.isEngaged=!0,e.isInteracting=!0,e.focused=!0,e.videoPlaying=!1,e.ENGAGED_TIME_SAMPLER_KEY="engagedTime",!0===t.test&&(e._handleEngagementActivityCalls=0),!0!==e.fbInstantArticles&&e._lifecycle.addEventListener("statechange",function(t){var n=t.newState.toLowerCase();-1!==a.indexOf(n)?e.focused=!0:e.focused=!1});var c=function(){e._lastEventTime=(new Date).getTime(),!0===t.test&&e._handleEngagementActivityCalls++};!0!==e.fbInstantArticles?i.each(o,function(e,t){r.windowAddEventListener(t,c)}):setInterval(c,1e3*s),e.engagedTime.getParams=function(){return{"minActiveTimeout":1,"maxActiveTimeout":60,"activeTimeout":s}},e.engagedTime.sample=function(t,n,i,r){return t=void 0===t?(new Date).getTime():t,n=void 0===n?e._lastEventTime:n,i=void 0===i?e.videoPlaying:i,r=void 0===r?e.focused:r,e.isInteracting=t-n<1e3*s,e.isEngaged=e.isInteracting&&r||i,e.isEngaged},e.engagedTime.sendHeartbeat=function(t,n,o,a){t=void 0===t?0:t,n=void 0===n?e.enableHeartbeats:n,a=void 0!==a&&a,(void 0===n||!0===n)&&(!0!==e.config.heartbeat_should_honor_autotrack||e.autotrack)&&(PARSELY.beacon.pixel.beacon({"date":(new Date).toString(),"action":"heartbeat","inc":t,"tt":o,"url":r.getEventUrl(),"urlref":e.lastRequest?e.lastRequest.urlref:r.getWindow().document.referrer},undefined,a),i.isFunction(e.onHeartbeat)&&e.onHeartbeat(t))},e.engagedTime.startTracking=function(){var t=!0===e.fbInstantArticles?undefined:e.engagedTime.sample;n.trackKey(e.ENGAGED_TIME_SAMPLER_KEY,t,e.engagedTime.sendHeartbeat)},e.engagedTime.stopTracking=function(){n.dropKey(e.ENGAGED_TIME_SAMPLER_KEY)},e.engagedTime.initNewPage=function(){e.engagedTime.stopTracking(),e.engagedTime.startTracking()},e.engagedTime.startTracking()}}(),function(){var e=this.PARSELY,t=e.$,n=e.Class,i=e.JSON,r=e.console,o=e.config,a=e.urls,s=e.visitorManager,u=e.sessionManager,c=e.ParselyStorage,l=e.util.getWindow(),d=l.document,f=l.screen;PARSELY.Pixel=n.extend({"init":function(){var t=e.util.getEventUrl(),n=f.width+"x"+f.height+"|"+(f.availWidth+"x"+f.availHeight)+"|"+f.colorDepth;this.correlationIds={"pageview":"pvid","videostart":"vsid"},this.callbackName="parselyStartCallback",this.dashDomains=["https://dash.parsely.com","https://beta.parsely.com"],this.data={"idsite":o.apikey,"url":t,"urlref":d.referrer,"screen":n,"data":{}},o.hasOwnProperty("is_remote_config")&&!0!==o.is_remote_config||(this.data.data.parsely_uuid=o.network_uuid||o.uuid,this.data.data.parsely_site_uuid=o.parsely_site_uuid),this.remoteEndpoint=a.pixel+this.selectEndpoint(),this.thirdPartyBlockedCookieSettings={"name":"_parsely_tpa_blocked","timeoutSecs":43200,"flagAttribute":"tpab"}},"selectEndpoint":function(){var t=!1===e.is_first_party&&!0===o.track_third_party_cookies;return o.hasOwnProperty("is_remote_config")&&!1===o.is_remote_config?!1===o.track_ip_addresses?t?"/eventx/":"/px/":t?"/event/":"/plogger/":!1===o.track_ip_addresses?"/px/":"/plogger/"},"isThirdPartyAnalyticsBlocked":function(){if(!e.is_first_party)return undefined;var t=this.thirdPartyBlockedCookieSettings,n=c.getJSON(t.name);if(void 0!==n&&(this.third_party_analytics_is_blocked=n[t.flagAttribute]),"undefined"==typeof this.third_party_analytics_is_blocked&&"undefined"==typeof this.third_party_analytics_checked){this.third_party_analytics_checked=!0;var i=this,r=function(e){i.third_party_analytics_is_blocked=e;var n={};n[t.flagAttribute]=e,c.setJSON(t.name,n,{"expires":t.timeoutSecs})},o=new Image;o.onerror=function(){r(!0)},o.onload=function(){r(!1)},o.src="https://srv-1970-01-01-00.pixel.parsely.com/plogger/"}return this.third_party_analytics_is_blocked},"addDefaults":function(e){t.extend(!0,this.data,e)},"shouldFetchVisitorID":function(t){return!(!o.hasOwnProperty("is_remote_config")||!0===o.is_remote_config)&&(!1!==o.track_third_party_cookies&&(!t||!!e.updateVisitorIds&&0!==t.indexOf("pid=")))},"shouldGenerateVisitorID":function(e){return!(!o.hasOwnProperty("is_remote_config")||!0===o.is_remote_config)&&(!0!==o.track_third_party_cookies&&!e)},"saveVisitorID":function(e){var t=u.getSession(),n={"id":e,"session_count":t.sid,"last_session_ts":t.sts};c.setJSON(s.visitorCookieName,n,{"expires":s.visitorCookieTimeoutSecs,"secure":s.visitorCookieSecure}),u.getSession()},"generateVisitorID":function(){o.uuid=e.util.makeUUID(),this.saveVisitorID(o.uuid)},"sendEventAndFetchVisitorID":function(e){var n=this;l[this.callbackName]=function(i){o.uuid=i.set.length>0?i.set:i.got,n.saveVisitorID(o.uuid),t.isFunction(PARSELY.onBeacon)&&PARSELY.onBeacon(e)},e.callback=this.callbackName;var i=t.param(e),s=!1===o.track_ip_addresses?"x":"",u=a.pixel+"/start"+s+"/?"+i;r.log("beaconing to endpoint: "+u);var c=document.createElement("script");c.src=u,d.getElementsByTagName("head")[0].appendChild(c)},"sendEvent":function(n,i){r.log("beaconing to endpoint: "+this.remoteEndpoint),n.u=i,(new Image).src=this.buildEventRequestUrl(n),t.isFunction(e.onBeacon)&&e.onBeacon(n)},"requestFetch":function(n,i){return r.log("fetching endpoint: "+this.remoteEndpoint),"undefined"!=typeof l.fetch&&(n.u=i,fetch(this.buildEventRequestUrl(n),{"method":"GET","mode":"no-cors","keepalive":!0}),t.isFunction(e.onBeacon)&&e.onBeacon(n),!0)},"buildEventRequestUrl":function(e){var n=t.param(e);return this.remoteEndpoint+"?"+n},"generatePageloadId":function(){return"undefined"==typeof e.pageload_id&&(e.pageload_id=Math.floor(99999999*Math.random())),e.pageload_id},"getCorrelationIdKey":function(e){return"_"+e+"_correlation_id"},"generateEventCorrelationId":function(t,n){var i=this.getCorrelationIdKey(t);return!0===n&&(e[i]=Math.floor(99999999*Math.random())),e[i]},"beacon":function(n,c,f){var p=u.getSession(!0),g=(new Date).getTime(),h=this.generatePageloadId()||0,v=t.extend(!0,{"rand":g,"plid":h},this.data,p,n),y=e.visitorManager.getVisitorInfo();!0===this.isThirdPartyAnalyticsBlocked()&&(v.tpab=1),s.extendVisitorExpiry();var m;for(var _ in this.correlationIds)void 0!==(m=this.generateEventCorrelationId(_,_===v.action))&&(v[this.correlationIds[_]]=m);v.data=i.stringify(v.data),!0!==c&&(PARSELY.lastRequest=v),o.uuid=y.id;for(var S,b=0;b