kaggle-ConnectX/Research/MuZero_ The Walkthrough (Pa.../p.js

7 lines
48 KiB
JavaScript

(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;n<o;n+=1)a[n]=str(n,u)||"null";return r=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,r}if(rep&&"object"==typeof rep)for(o=rep.length,n=0;n<o;n+=1)"string"==typeof(i=rep[n])&&(r=str(i,u))&&a.push(quote(i)+(gap?": ":":")+r);else for(i in u)Object.hasOwnProperty.call(u,i)&&(r=str(i,u))&&a.push(quote(i)+(gap?": ":":")+r);return r=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,r}}this.PARSELY||(this.PARSELY={});var root=this.PARSELY;root.JSON||(root.JSON=window.JSON||{}),"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof root.JSON.stringify&&(root.JSON.stringify=function(e,t,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;i<n;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof root.JSON.parse&&(root.JSON.parse=function(text,reviver){function walk(e,t){var n,i,r=e[t];if(r&&"object"==typeof r)for(n in r)Object.hasOwnProperty.call(r,n)&&((i=walk(r,n))!==undefined?r[n]=i:delete r[n]);return reviver.call(e,t,r)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}(),function(){this.PARSELY||(this.PARSELY={});var e=this.PARSELY,t=!1,n=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;e.Class=function(){},e.Class.extend=function(e){function i(){!t&&this.init&&this.init.apply(this,arguments)}var r=this.prototype;t=!0;var o=new this;t=!1;for(var a in e)o[a]="function"==typeof e[a]&&"function"==typeof r[a]&&n.test(e[a])?function(e,t){return function(){var n=this._super;this._super=r[e];var i=t.apply(this,arguments);return this._super=n,i}}(a,e[a]):e[a];return i.prototype=o,i.constructor=i,i.extend=arguments.callee,i}}(),function(e,t){"undefined"==typeof PARSELY&&(PARSELY={}),"object"==typeof module&&"object"==typeof module.exports?(module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)},PARSELY.$=PARSELY.jQuery=t(e,!0)):PARSELY.$=PARSELY.jQuery=t(e,!1)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=y.type(e);return"function"!==n&&!y.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&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<t?[this[n]]:[])},"end":function(){return this.prevObject||this.constructor(null)},"push":d,"sort":c.sort,"splice":c.splice},y.extend=y.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||y.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(r=arguments[s]))for(i in r)e=a[i],a!==(n=r[i])&&(c&&n&&(y.isPlainObject(n)||(t=y.isArray(n)))?(t?(t=!1,o=e&&y.isArray(e)?e:[]):o=e&&y.isPlainObject(e)?e:{},a[i]=y.extend(c,o,n)):n!==undefined&&(a[i]=n));return a},y.extend({"expando":"jQuery"+(v+Math.random()).replace(/\D/g,""),"isReady":!0,"error":function(e){throw new Error(e)},"noop":function(){},"isFunction":function(e){return"function"===y.type(e)},"isArray":Array.isArray||function(e){return"array"===y.type(e)},"isWindow":function(e){return null!=e&&e==e.window},"isNumeric":function(e){return!y.isArray(e)&&e-parseFloat(e)>=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<o&&!1!==t.apply(e[r],i);r++);else for(r in e)if(!1===t.apply(e[r],i))break}else if(a)for(;r<o&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},"trim":function(e){return null==e?"":(e+"").replace(m,"")},"makeArray":function(e,t){var i=t||[];return null!=e&&(n(Object(e))?y.merge(i,"string"==typeof e?[e]:e):d.call(i,e)),i},"guid":1,"now":function(){return+new Date},"support":h}),y.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()});var x,E=/^<(\w+)\s*\/?>(?:<\/\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<s;o++)r[n=(i=t[o]).selector+" "]===undefined&&(r[n]=i.needsContext?y(n,this).index(u)>=0:y.find(n,this,null,[u]).length),r[n]&&r.push(i);r.length&&a.push({"elem":u,"handlers":r})}return s<t.length&&a.push({"elem":this,"handlers":t.slice(s)}),a},"fix":function(e){if(e[y.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=L.test(r)?this.mouseHooks:C.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new y.Event(o),t=i.length;t--;)e[n=i[t]]=o[n];return e.target||(e.target=o.srcElement||w),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},"props":"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),"fixHooks":{},"special":{"load":{"noBubble":!0},"focus":{"trigger":function(){if(this!==s()&&this.focus)try{return this.focus(),!1}catch(e){}},"delegateType":"focusin"},"blur":{"trigger":function(){if(this===s()&&this.blur)return this.blur(),!1},"delegateType":"focusout"}}},y.Event=function(e,t){if(!(this instanceof y.Event))return new y.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&!1===e.returnValue?o:a):this.type=e,t&&y.extend(this,t),this.timeStamp=e&&e.timeStamp||y.now(),this[y.expando]=!0},y.Event.prototype={"isDefaultPrevented":a,"isPropagationStopped":a,"isImmediatePropagationStopped":a,"stopPropagation":function(){var e=this.originalEvent;this.isPropagationStopped=o,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},"stopImmediatePropagation":function(){var e=this.originalEvent;this.isImmediatePropagationStopped=o,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},y.fn.extend({"on":function(e,t,n,i,r){var o,s;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=undefined);for(o in e)this.on(o,t,n,e[o],r);return this}if(null==n&&null==i?(i=t,n=t=undefined):null==i&&("string"==typeof t?(i=n,n=undefined):(i=n,n=t,t=undefined)),!1===i)i=a;else if(!i)return this;return 1===r&&(s=i,(i=function(e){return y().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=y.guid++)),this.each(function(){y.event.add(this,e,i,n,t)})},"trigger":function(e,t){return this.each(function(){y.event.trigger(e,t,this)})},"triggerHandler":function(e,t){var n=this[0];if(n)return y.event.trigger(e,t,n,!0)}});h.getSetAttribute,h.input;y.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){y.fn[t]=function(e,n){return arguments.length>0?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<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{"constructor":{"value":e,"enumerable":!1,"writable":!0,"configurable":!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},a=function(){function e(){n(this,e),this._registry={}}return i(e,[{"key":"addEventListener","value":function(e,t){this._getRegistry(e).push(t)}},{"key":"removeEventListener","value":function(e,t){var n=this._getRegistry(e),i=n.indexOf(t);i>-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<n.length-1;++i){var r=n[i],o=n[i+1];this._state=o,this.dispatchEvent(new c("statechange",{"oldState":r,"newState":o,"originalEvent":e}))}}},{"key":"_handleEvents","value":function(e){switch(h&&clearTimeout(this._safariBeforeUnloadTimeout),e.type){case"pageshow":case"resume":this._dispatchChangesIfNeeded(e,_());break;case"focus":this._dispatchChangesIfNeeded(e,l);break;case"blur":this._state===l&&this._dispatchChangesIfNeeded(e,_());break;case"pagehide":case"unload":this._dispatchChangesIfNeeded(e,e.persisted?p:g);break;case"visibilitychange":this._state!==p&&this._state!==g&&this._dispatchChangesIfNeeded(e,_());break;case"freeze":this._dispatchChangesIfNeeded(e,p)}}},{"key":"state","get":function(){return this._state}},{"key":"pageWasDiscarded","get":function(){return document.wasDiscarded||!1}}]),t}())}),function(){this.PARSELY=this.PARSELY||{};var e,t=this.PARSELY;t.util={},(e=t.util).getWindow=function(){if(t.getWindow&&"function"==typeof t.getWindow)return t.getWindow();try{return window.top.document.cookie,window.top}catch(e){try{return window.parent.document.cookie,window.parent}catch(n){return window}}},e.windowSetFunction=function(t,n){var i=e.getWindow(),r=i[t];i[t]=function(){n(),"function"==typeof r&&r()}},e.windowAddEventListener=function(e,t){var n=!1;try{addEventListener("test",null,Object.defineProperty({},"passive",{"get":function(){n=!0}}))}catch(r){}var i=!1;return n&&(i={"passive":!0,"capture":!1}),"undefined"!=typeof window.addEventListener?window.addEventListener(e,t,i):"undefined"!=typeof document.attachEvent&&document.attachEvent("on"+e,t)},e.objAddEventListener=function(e,t,n,i){return i=void 0!==i&&i,"undefined"!=typeof e.addEventListener?e.addEventListener(t,n,i):"undefined"!=typeof e.attachEvent&&e.attachEvent("on"+t,n)},e.getRandomInt=function(e,t){return Math.floor(Math.random()*(t-e+1))+e},e.getEventUrl=function(){return t.config.eventUrl?t.config.eventUrl:t.lastRequest?t.lastRequest.url:e.getWindow().location.href},e.isSafari=function(){return navigator.vendor&&navigator.vendor.indexOf("Apple")>-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;i<e.length;i++)n.set(e[i],undefined,t)},n._getExtendedOptions=function(e){return{"path":e&&e.path||n.defaults.path,"domain":e&&e.domain||n.defaults.domain,"expires":e&&e.expires||n.defaults.expires,"secure":e&&e.secure!==undefined?e.secure:n.defaults.secure}},n._isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},n._getExpiresDate=function(e,t){if(t=t||new Date,"number"==typeof e?e=e===Infinity?n._maxExpireDate:new Date(t.getTime()+1e3*e):"string"==typeof e&&(e=new Date(e)),e&&!n._isValidDate(e))throw new Error("`expires` parameter cannot be converted to a valid Date instance");return e},n._generateCookieString=function(t,i,r){t=(t=t.replace(/[^#$&+\^`|]/g,encodeURIComponent)).replace(/\(/g,"%28").replace(/\)/g,"%29"),i=(i+"").replace(/[^!#$&-+\--:<-\[\]-~]/g,encodeURIComponent);var o=(r=r||{}).domain||e.cookieDomain||n._autoCookieDomain,a=t+"="+i;return a+=r.path?";path="+r.path:"",a+=o?";domain="+o:"",a+=r.expires?";expires="+r.expires.toUTCString():"",a+=r.secure?";secure":""},n._getCacheFromString=function(e){for(var t={},i=e?e.split("; "):[],r=0;r<i.length;r++){var o=n._getKeyValuePairFromCookieString(i[r]);if(null!=o){var a=n._cacheKeyPrefix+o.key;t[a]===undefined&&(t[a]=o.value)}}return t},n._getKeyValuePairFromCookieString=function(e){var t=e.indexOf("=");t=t<0?e.length:t;var n=e.substr(0,t),i=e.substr(t+1);try{n=decodeURIComponent(n),i=decodeURIComponent(i)}catch(r){return null}return{"key":n,"value":i}},n._renewCache=function(){try{n._cachedDocumentCookie!==n._document.cookie&&(n._cache=n._getCacheFromString(n._document.cookie),n._cachedDocumentCookie=n._document.cookie)}catch(t){e.console.log(t)}},n._isValidDomain=function(e){var t="cookies.js_dtest",i="1"===n.set(t,1,{"domain":e}).get(t);return n.expire(t,{"domain":e}),i},n._getAutoCookieDomain=function(){var t=e.util.getWindow().location.hostname;if(!isNaN(parseInt(t.replace(".",""),10)))return n._isValidDomain(t)?t:null;var i=t.split(".");if(1===i.length)return t;for(var r,o=2;o<=i.length;o++){var a=i.slice(-o).join(".");if(n._isValidDomain(a)){r=a;break}}return r||t},n._autoCookieDomain=n._getAutoCookieDomain(),n}(e.util.getWindow())}(this.PARSELY),function(e){"use strict";var t=function(){};t.prototype=function(){var t=function(e,n,i){return 1===arguments.length?t.get(e):t.set(e,n,i)};t._keyPrefix="pStore-",t._delimiter="|^";try{t._store=e.util.getWindow().localStorage}catch(n){t._store=undefined}return t._baseDomain=null,t.get=function(e){t._migrateCookie(e);var n=t._store[t._keyPrefix+e];if(void 0===n)return undefined;try{n=t._deserialize(n)}catch(r){return console.log("Error deserializing stored data for key "+e),t.expire(e),undefined}if("undefined"!=typeof n.expires){var i=parseInt(n.expires,10);if(!isNaN(i)&&(new Date).getTime()>i)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<o.length;t++){var i=o[t];if("undefined"==typeof e[i]||null===e[i])return!1}return n.setJSON(this.visitorCookieName,e,{"expires":this.visitorCookieTimeoutSecs,"secure":this.visitorCookieSecure}),e},"extendVisitorExpiry":function(){n.extendExpiry(this.visitorCookieName,{"expires":this.visitorCookieTimeoutSecs,"secure":this.visitorCookieSecure})}});e.visitorManager=new a}(),function(){var e=this.PARSELY,t=e.util,n=e.Class,i=e.ParselyStorage,r=e.console,o=e.visitorManager,a=n.extend({"init":function(){this.windowAlias=t.getWindow(),this.documentAlias=this.windowAlias.document,this.sessionCookieName=e.sessionCookieName||i.defaults.session.key,this.sessionCookieTimeoutSecs=i.defaults.session.expires,this.sessionCookieSecure=e.sessionCookieSecure||i.defaults.session.secure,r.log("Initializing session."),this.getSession(!1)},"getSession":function(n){n=n||!1;var a=o.getVisitorInfo(),s=i.getJSON(this.sessionCookieName);if(void 0===s){var u,c;!1===a?(u=1,c=0):(a.session_count++,u=a.session_count,c=a.last_session_ts);var l=new Date;s={"sid":u,"surl":t.getEventUrl(),"sref":e.lastRequest?e.lastRequest.urlref:this.documentAlias.referrer,"sts":l.getTime(),"slts":c},r.log("Session expired/never existed, creating new session with "+this.sessionCookieTimeoutSecs+"s timeout: "+e.JSON.stringify(s)),i.setJSON(this.sessionCookieName,s,{"expires":this.sessionCookieTimeoutSecs,"secure":this.sessionCookieSecure}),a.last_session_ts=s.sts,o.setVisitorInfo(a)}else n&&this.extendSessionExpiry();return s},"extendSessionExpiry":function(){i.extendExpiry(this.sessionCookieName,{"expires":this.sessionCookieTimeoutSecs,"secure":this.sessionCookieSecure})}});e.sessionManager=new a}(),function(){var e=this.PARSELY,t=e.util,n=e.JSON,i=e.$,r=t.getWindow().document;PARSELY.getLdJsonMetas=function(){for(var e=r.getElementsByTagName("script"),t=0;t<e.length;t++){var i=e[t];if("application/ld+json"===i.getAttribute("type")){var o;try{o=n.parse(i.innerHTML)}catch(a){return null}return{"type":"NewsArticle"===o["@type"]?"post":"sectionpage","title":o.headline,"link":o.url,"image_url":o.thumbnailUrl,"pub_date":o.dateCreated,"section":o.articleSection,"authors":o.creator,"tags":o.keywords}}}return null},PARSELY.getRepeatedMetaMetas=function(){for(var e={},t=r.getElementsByTagName("meta"),n={"parsely-title":"title","parsely-link":"link","parsely-image-url":"image_url","parsely-type":"type","parsely-post-id":"post_id","parsely-pub-date":"pub_date","parsely-section":"section","parsely-author":"authors","parsely-tags":"tags"},o=0;o<t.length;o++){var a=t[o],s=n[a.getAttribute("name")];if(void 0!==s){var u=a.getAttribute("content");"authors"===s?"undefined"==typeof e[s]?e[s]=[u]:e[s].push(u):e[s]="tags"===s?u.split(","):u}}return i.isEmptyObject(e)?null:e},PARSELY.getParselyPageMetas=function(){for(var e=r.getElementsByTagName("meta"),t=0;t<e.length;t++){var i=e[t];if("parsely-page"===i.getAttribute("name")){var o=i.getAttribute("value")||i.getAttribute("content");try{return n.parse(o)}catch(a){return null}}}return null},PARSELY.getMetas=function(){return this.getRepeatedMetaMetas()||this.getParselyPageMetas()||this.getLdJsonMetas()}}(),function(){function e(e){for(var t=0,n=0;e;)t+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent;return[t,n]}function t(e){var n=r.slots.hasParselySlots?s:"id";if(null!==e.getAttribute(n))return"//*[@"+n+'="'+e.getAttribute(n)+'"]';if(e===document.body)return"//"+e.tagName.toLowerCase();for(var i=0,o=e.parentNode.childNodes,a=0;a<o.length;a++){var c=o[a];if(c===e)return t(e.parentNode)+"/"+e.tagName.toLowerCase()+"["+(i+1)+"]";c.nodeType===u&&c.tagName===e.tagName&&i++}}function n(e){if(!e||0===e.indexOf("#")||0===e.indexOf("javascript"))return!0;var t=window.location.href;return e===t||0===e.indexOf(t+"#")}function i(e,t){function n(e,t){return e===document||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.secondsBetweenHeartbeats<r&&!0===n._parselyIsTest;(e.secondsBetweenHeartbeats>r||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 n<t/2?e/5:n<t?t/2:t},i.dropKey=function(e){delete i._accumulators[e]},i._sample=function(e,t){e=void 0===e?(new Date).getTime():e;var n,r,o;for(var a in i._accumulators)n=i._accumulators[a],o=e-(void 0===t?n.lastSampleTime:t),r="undefined"==typeof n.sampleFn||n.sampleFn(e),n.ms+=r?o:0,n.totalMs+=r?o:0,n.lastSampleTime=e,r&&(e-n.lastPositiveSampleTime>n.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<this.dashDomains.length;b++)if(S=this.dashDomains[b],0===d.location.href.indexOf(S))try{l.postMessage(v,S)}catch(E){r.log("Failed to postMessage to Dash domain "+S)}if(this.shouldGenerateVisitorID(y.id)&&this.generateVisitorID(),!0===f&&(e.util.isFirefox()||e.util.isSafari())&&(f=!1),this.remoteEndpoint=a.pixel+this.selectEndpoint(),this.shouldFetchVisitorID(y.id))this.sendEventAndFetchVisitorID(v);else{var x=!1;!0===f&&(x=this.requestFetch(v,o.uuid)),!1===x&&this.sendEvent(v,o.uuid)}}})}(),function(){var e=this.PARSELY,t=e.$,n=e.$LAB,i=e.console,r=e.Class,o=e.JSON,a=e.ParselyStorage,s=e.util.getWindow().document;PARSELY.Beacon=r.extend({"init":function(){this.pixel=new PARSELY.Pixel},"trackPageView":function(n,r){var u={"title":s.title,"date":(new Date).toString(),"action":"pageview","url":e.util.getEventUrl(),"urlref":s.referrer};e.hasOwnProperty("metadata")&&(u.hasOwnProperty("metadata")?u.metadata=o.stringify(t.extend(u.metadata,e.metadata.get())):u.metadata=o.stringify(e.metadata.get()));var c=a.getJSON("_parsely_slot_click");c&&(a.expire("_parsely_slot_click"),i.log("Valid slot click found"),u.sl_xp=c.xpath,u.sl_x=c.x,u.sl_y=c.y,u.sl_h=c.href,c.url!==u.urlref&&i.log("urlref overridden by slot data as "+c.url),u.urlref=c.url),n&&t.extend(u,n),this.pixel.beacon(u,r)},"trackConversion":function(e){window.console.warn("[WARN] `PARSELY.beacon.trackConversion()` is being deprecated."),window.console.warn("[WARN] Please consult https://www.parse.ly/help/integration/conversions/ to update to the new Conversions js-API.");var n=["active","lead","customer"],r={"label":undefined};e&&e.category?-1===n.indexOf(e.category)?i.log("'"+e.category+"' is not a valid conversion category; must be one of: "+n.join(", ")):(t.extend(r,e),this.trackPageView({"action":"conversion","data":{"_conversion_type":e.category,"_conversion_label":e.label}})):i.log("No category specified; category required for conversion events")},"loadCustomizations":function(){if(e.config){var t=e.config.customizations;if(t){i.log("Found customizations; loading.");var r=e.urls["static"],o=this;n.script(r+t).wait(function(){"undefined"!=typeof PARSELY.pCustom&&(PARSELY.pCustom(o),i.log("pCustom function called"))})}}},"start":function(){this.startTime=(new Date).getTime(),this.autotrack="undefined"==typeof PARSELY.autotrack||PARSELY.autotrack,this.autotrack?(i.log("autotrack enabled; doing automatic pageview beacon"),this.trackPageView()):i.log("autotrack disabled; beacon loaded but no data sent"),this.loadCustomizations()}})}(),function(){var e=PARSELY.config.settings,t=PARSELY.console,n=PARSELY.$;if(PARSELY.updateDefaults=function(e){return PARSELY.beacon.pixel.addDefaults(e)},PARSELY.setConfigOptions=function(e){for(var t=["track_ip_addresses","track_third_party_cookies"],n=0;n<t.length;n++)e.hasOwnProperty(t[n])&&(PARSELY.config[t[n]]=e[t[n]])},PARSELY.initNewPage=function(){"undefined"!=typeof PARSELY.Sampler&&PARSELY.Sampler._sendHeartbeats(),"undefined"!=typeof PARSELY.engagedTime&&PARSELY.engagedTime.initNewPage(),"undefined"!=typeof PARSELY.video&&PARSELY.video.clear(),"undefined"!=typeof PARSELY.slots&&PARSELY.slots.reset(),delete PARSELY.lastRequest,PARSELY.beacon.start(),PARSELY.autotrack&&PARSELY.video&&!1!==PARSELY.video.autotrack&&PARSELY.video.detectVideos()},e.tracker){t.log("tracker enabled, create Beacon");var i=new PARSELY.Beacon;PARSELY.beacon=i,i.start(),n.isFunction(PARSELY.onReady)&&PARSELY.onReady()}try{if("undefined"!=typeof Storage&&localStorage.getItem("parsely-overlay")){var r=document.createElement("script");r.setAttribute("src","https://dash.parsely.com/static/build/overlay.js?v="+(new Date).getTime()),document.body.appendChild(r)}}catch(o){PARSELY.console.log(o)}}(),function(){var e=PARSELY.onload,t=PARSELY.console;if("function"==typeof e)try{e()}catch(n){t.dir({"info":"hook threw exception","error":n})}t.log("Final load stage completed successfully"),PARSELY.loaded=!0}();