(()=>{var e;e=document.documentElement.className,document.documentElement.className=e.replace("no-js","")})(); window.lazySizesConfig=window.lazySizesConfig||{},window.lazySizesConfig.iframeLoadMode=1; /*! lazysizes - v5.3.2 */ !function(e){var t=function(w,N,x){"use strict";var s,W;if(function(){var e;var t={lazyWaitClass:"lazyloadwait",lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:true,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:true,ricTimeout:0,throttleDelay:125,expand:400};W=w.lazySizesConfig||w.lazysizesConfig||{};for(e in t){if(!(e in W)){W[e]=t[e]}}}(),!N||!N.getElementsByClassName){return{init:function(){},cfg:W,noSupport:true}}var L=N.documentElement,r=w.HTMLPictureElement,i="addEventListener",M="getAttribute",l=w[i].bind(w),S=w.setTimeout,o=w.requestAnimationFrame||S,f=w.requestIdleCallback,B=/^picture$/i,n=["load","error","lazyincluded","_lazyloaded"],a={},F=Array.prototype.forEach,T=function(e,t){if(!a[t]){a[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")}return a[t].test(e[M]("class")||"")&&a[t]},I=function(e,t){if(!T(e,t)){e.setAttribute("class",(e[M]("class")||"").trim()+" "+t)}},O=function(e,t){var a;if(a=T(e,t)){e.setAttribute("class",(e[M]("class")||"").replace(a," "))}},R=function(t,a,e){var r=e?i:"removeEventListener";if(e){R(t,a)}n.forEach(function(e){t[r](e,a)})},P=function(e,t,a,r,i){var n=N.createEvent("Event");if(!a){a={}}a.instance=s;n.initEvent(t,!r,!i);n.detail=a;e.dispatchEvent(n);return n},$=function(e,t){var a;if(!r&&(a=w.picturefill||W.pf)){if(t&&t.src&&!e[M]("srcset")){e.setAttribute("srcset",t.src)}a({reevaluate:true,elements:[e]})}else if(t&&t.src){e.src=t.src}},e=function(e,t){return(getComputedStyle(e,null)||{})[t]},u=function(e,t,a){a=a||e.offsetWidth;while(a1;if(!u||e){if(e){I(t,W.fastLoadedClass)}y(f);t._lazyCache=true;S(function(){if("_lazyCache"in t){delete t._lazyCache}},9)}if(t.loading=="lazy"){v--}},true)});var p=[];var C=function(e){if(e._lazyRace){return}var t;var a;var r=f.test(e.nodeName);var i=r&&(e[M](W.sizesAttr)||e[M]("sizes"));var n=i=="auto";if((n||!o)&&r&&(e[M]("src")||e.srcset)&&!e.complete&&!T(e,W.errorClass)&&T(e,W.lazyClass)){return}t=P(e,"lazyunveilread").detail;if(n){D.updateElem(e,true,e.offsetWidth)}e._lazyRace=true;v++;if((a=p.indexOf(e))!=-1){p.splice(a,1)}s.unobserve(e);l.unobserve(e);u(e,t,n,i,r)};var A=[];var b=q(function(){var e;while(A.length){e=A.shift();I(e,W.lazyWaitClass);O(e,W.lazyClass);if(e._lazyAdd){delete e._lazyAdd}}},true);var a=function(){var e,t,a;for(e=0,t=r.length;e{function e(){window.requestAnimationFrame(function(){return document.documentElement.classList.add("is-window-loaded")})}document.addEventListener("load",function(e){"SCRIPT"===e.target.tagName&&(e.target.dataset.loaded="loaded")},{capture:!0}),"complete"===document.readyState?e():window.addEventListener("load",e)})(); (()=>{var n=/[\-\.\+\*]/g;window.docCookies={getItem:function(e){var o=1{var x,n;function O(t){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(){"use strict";T=function(){return i};var u,i={},a=Object.prototype,s=a.hasOwnProperty,l=Object.defineProperty||function(t,e,n){t[e]=n.value},t="function"==typeof Symbol?Symbol:{},c=t.iterator||"@@iterator",d=t.asyncIterator||"@@asyncIterator",h=t.toStringTag||"@@toStringTag";function n(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{n({},"")}catch(u){n=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o,a,i,c,e=e&&e.prototype instanceof w?e:w,e=Object.create(e.prototype),r=new I(r||[]);return l(e,"_invoke",{value:(o=t,a=n,i=r,c=m,function(t,e){if(c===g)throw Error("Generator is already running");if(c===b){if("throw"===t)throw e;return{value:u,done:!0}}for(i.method=t,i.arg=e;;){var n=i.delegate;if(n){n=function t(e,n){var r=n.method,o=e.iterator[r];if(o===u)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=u,t(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;r=y(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,f;o=r.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=u),n.delegate=null,f):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,f)}(n,i);if(n){if(n===f)continue;return n}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(c===m)throw c=b,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);c=g;n=y(o,a,i);if("normal"===n.type){if(c=i.done?b:v,n.arg===f)continue;return{value:n.arg,done:i.done}}"throw"===n.type&&(c=b,i.method="throw",i.arg=n.arg)}})}),e}function y(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}i.wrap=p;var m="suspendedStart",v="suspendedYield",g="executing",b="completed",f={};function w(){}function L(){}function e(){}var t={},r=(n(t,c,function(){return this}),Object.getPrototypeOf),r=r&&r(r(j([]))),o=(r&&r!==a&&s.call(r,c)&&(t=r),e.prototype=w.prototype=Object.create(t));function x(t){["next","throw","return"].forEach(function(e){n(t,e,function(t){return this._invoke(e,t)})})}function E(i,c){var e;l(this,"_invoke",{value:function(n,r){function t(){return new c(function(t,e){!function e(t,n,r,o){var a,t=y(i[t],i,n);if("throw"!==t.type)return(n=(a=t.arg).value)&&"object"==O(n)&&s.call(n,"__await")?c.resolve(n.__await).then(function(t){e("next",t,r,o)},function(t){e("throw",t,r,o)}):c.resolve(n).then(function(t){a.value=t,r(a)},function(t){return e("throw",t,r,o)});o(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}})}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(e){if(e||""===e){var n,t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,i=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){i=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(i)throw o}}}}function S(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,c=[],u=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||d(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nDate.now()?!t||o:!1}catch(t){return console.error("Unable to parse ddmAccountCookie",t),!1}return!1},isVisibleElement:function(t){var o=1o)&&(clearInterval(r),x.debug.log("onFontLoad: ".concat(e?t:"timed out")),n())},200):(x.debug.log("onFontLoad browser unsupported"),n())},onLoad:function(t,e){"complete"===document.readyState?t():x.addEventListener("load",t,e||!1)},openWindow:function(t){var e=screen.width/2-417.5,n=screen.height/2-250;return x.open(t,"shareWindow","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=".concat("yes",", resizable=yes, copyhistory=no, width=").concat(835,", height=").concat(500,", top=").concat(n,", left=").concat(e))},promiseTimeout:function(t,e){return y.apply(this,arguments)},pushToDataLayer:function(e){return function(t){x.dataLayer=x.dataLayer||[],x.dataLayer.push(Object.assign({},e,t))}},ready:a,readyOrDeferred:function(e){var t=document.body,n=document.documentElement.contains(document.querySelector(".mntl-continuous-scroll"));a(function(){return e(t)}),n?document.addEventListener("continuous-article-loaded",function(t){e(t.detail)}):document.addEventListener("defer-batch-complete",function(t){t.detail.forEach(function(t){t=t.jquery||t.fn||t.init?t[0]:t;e(t)})})},refreshIdToken:function(){return s("/authentication/token-refresh")},resourceVersion:i,scrollToEl:h,scrollToElement:function(t,e,n){h(t[0],n,e)},scriptOnLoad:u,scriptsOnLoad:function(t,e,n){if(t.length){var r,o=x.Mntl.fnUtilities.curry(u,2),a=[],i=E(t);try{for(i.s();!(r=i.n()).done;){var c=r.value;a.push(o(c))}}catch(t){i.e(t)}finally{i.f()}return x.Mntl.fnUtilities.all(a,function(){e.apply(t,n||[])}),!0}return!1},stripHtml:function(t){var e=document.createElement("div");return e.innerHTML=t,e.textContent||e.innerText||""},isTouchDevice:e,callAsync:c,callAsyncUI:p,callbackAsync:function(t,e){return function(){c(t,e)}},callbackAsyncUI:function(t,e){return function(){p(t,e)}}},x.Mntl.utilities=Object.assign({},x.Mntl.utilities||{},n)})(); (()=>{function t(n){return n}function e(e,n,r){var o=n||t,i=r||t;return Object.keys(e).reduce(function(n,r){var t=o(r);return t&&(n[t]=i(e[r])),n},{})}window.Mntl=window.Mntl||{},Mntl.fnUtilities={all:function(n,r){var t=n.length;n.forEach(function(n){n(function(){0==--t&&r()})})},curry:function(t){var i=1=i?t.apply(void 0,o):function(){for(var n=arguments.length,r=new Array(n),t=0;t{function e(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;c=!1}else for(;!(c=(r=i.call(e)).done)&&(l.push(r.value),l.length!==n);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(t,n)||function(t,n){if(t){if("string"==typeof t)return r(t,n);var e={}.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e{function r(n){var e=n.indexOf("_");return-1!=e?n.substr(0,e):n}window.Mntl=window.Mntl||{},Mntl.trackingUtilities={createEventObject:function(){return{event:"ddm_standard_event",event_params:{event_category:null,event_metadata:null,event_subcategory:null,event_subtype:null,event_target_url:null,event_type:null}}},cleanContainerId:r,getClickEventInfo:function(n){var e,t,i="",a="",l="";return"native-ad"==r(n.linkContainerId)?(l="Advertisement",a=n.linkId||n.linkText||"No Text or ID",e=n.nativeAdTitle,t=n.nativeAdCampaignId,i=e?t?e+" (Native Ad Campaign ID: "+t+")":e+" (Native Ad Campaign ID: Unknown)":t?"Unknown (Native Ad Campaign ID: "+t+")":"Unidentified Campaign"):(e=n.linkTargetURL||null,t=n.linkPinURL,e&&"#"!=e||!t||(e=t),l=n.linkContainerId?r(n.linkContainerId):"Link Click (No Tracked Container)",i=n.linkText||n.linkId||n.linkLabel||"No Text or ID",a=e||null),{eventAction:i,eventLabel:a,eventCategory:l}}}})(); window.Mntl=window.Mntl||{},window.Mntl.throttle=function(i){var l,u,a=1{function t(){var t="";return window.matchMedia("(max-width: ".concat(window.Mntl.breakpoints.mntlBpSm,")")).matches&&(t="base"),window.matchMedia("(min-width: ".concat(window.Mntl.breakpoints.mntlBpSm,")")).matches&&(t="small"),window.matchMedia("(min-width: ".concat(window.Mntl.breakpoints.mntlBpMd,")")).matches&&(t="medium"),window.matchMedia("(min-width: ".concat(window.Mntl.breakpoints.mntlBpLg,")")).matches&&(t="large"),t=window.matchMedia("(min-width: ".concat(window.Mntl.breakpoints.mntlBpXl,")")).matches?"extraLarge":t}window.People=window.People||{},window.Mntl=window.Mntl||{},window.dataLayer=window.dataLayer||[],window.People.utilities={getW:window.Mntl.utilities.getW=t,inProctorTest:function(t,e){for(var n,a,i=0;i{var t,o;function i(e){o===e?window.debug.log("Mntl.csrf: token reset with the same value."):(o=e,window.debug.log("Mntl.csrf: updating token references."),window.document.querySelectorAll('input[type="hidden"][name="CSRFToken"]').forEach(function(e){return e.setAttribute("value",o)}))}function r(){return window.debug.log("Mntl.csrf: providing token."),null===o&&window.debug.error("Mntl.csrf: token requested but was never initialized."),o}window.Mntl=window.Mntl||{},window.Mntl.csrfInit=(t=window.Mntl.utilities,o=null,function(e,n){return window.debug.log("Mntl.csrf: initializing token."),null===o?(o=e,n&&(window.debug.log("Mntl.csrf: checking for stale token."),e=window.docCookies.getItem("CSRFToken"),!(n=!window.docCookies.getItem("Mint"))&&e&&e!==o?(window.debug.log("Mntl.csrf: resetting token from prior session."),i(e)):n&&t.ready(function(){window.debug.log("Mntl.csrf: making contact to create new session."),t.ajaxPromiseGetCall("/csrf-session/refresh?et=".concat((new Date).getTime()),"failed to refresh session",3e4).then(function(e){try{var n=JSON.parse(e);n.csrfToken?(window.debug.log("Mntl.csrf: resetting token with new session."),i(n.csrfToken)):window.debug.error("Mntl.csrf: server responded with an invalid token.")}catch(e){window.debug.error("Mntl.csrf: failed to reset token with new session.",e)}}).catch(function(e){return window.debug.error("Mntl.csrf: ".concat(e,"."))})}))):window.debug.error("Mntl.csrf: token can only be initialized once."),r})})(); (()=>{var r;function i(){}function t(t){this.events=t.reduce(function(t,e){return t[e]=[],t},{})}window.Mntl=window.Mntl||{},window.Mntl.PubSub=(r="once",t.prototype.what=function(){return Object.keys(this.events).join(", ")},t.prototype.addEvent=function(t){return!this.events.hasOwnProperty(t)&&(this.events[t]=[],!0)},t.prototype.deleteEvent=function(t){return!!this.events.hasOwnProperty(t)&&(delete this.events[t],!0)},t.prototype.publish=function(t,e){if(!this.events.hasOwnProperty(t))throw new ReferenceError("Attempted to publish an event that doesn't exist");(e=e||{}).type=e.type||t,this.events[t].forEach(function(t){t.instigator&&t.instigator!==e.instigator||(t.callback(e),t.frequency===r&&(t.callback=i,t.frequency=null))})},t.prototype.subscribe=function(t,e,n,o){if(!this.events.hasOwnProperty(t))throw new ReferenceError("Attempted to subscribe to an event that doesn't exist");if(-1===["on",r].indexOf(o))throw new ReferenceError('Attempted to listen to an event at an incorrect frequency. Please use "on" or "once".');return n=this.events[t].push({callback:n,frequency:o,instigator:e})-1,{unSubscribe:function(t,e){this.events[t][e].callback=i,this.events[t][e].frequency=null}.bind(this,t,n)}},t.prototype.on=function(t,e,n){this.subscribe(t,e,n,"on")},t.prototype.once=function(t,e,n){this.subscribe(t,e,n,r)},t)})(); (()=>{var c,t,i,d,s,n,h,e,l,r,f,o,a;function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(){"use strict";k=function(){return a};var c,a={},i=Object.prototype,s=i.hasOwnProperty,l=Object.defineProperty||function(t,n,e){t[n]=e.value},t="function"==typeof Symbol?Symbol:{},u=t.iterator||"@@iterator",d=t.asyncIterator||"@@asyncIterator",h=t.toStringTag||"@@toStringTag";function e(t,n,e){return Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{e({},"")}catch(c){e=function(t,n,e){return t[n]=e}}function p(t,n,e,r){var o,i,a,u,n=n&&n.prototype instanceof b?n:b,n=Object.create(n.prototype),r=new P(r||[]);return l(n,"_invoke",{value:(o=t,i=e,a=r,u=g,function(t,n){if(u===m)throw Error("Generator is already running");if(u===w){if("throw"===t)throw n;return{value:c,done:!0}}for(a.method=t,a.arg=n;;){var e=a.delegate;if(e){e=function t(n,e){var r=e.method,o=n.iterator[r];if(o===c)return e.delegate=null,"throw"===r&&n.iterator.return&&(e.method="return",e.arg=c,t(n,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;r=y(o,n.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;o=r.arg;return o?o.done?(e[n.resultName]=o.value,e.next=n.nextLoc,"return"!==e.method&&(e.method="next",e.arg=c),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}(e,a);if(e){if(e===f)continue;return e}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(u===g)throw u=w,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=m;e=y(o,i,a);if("normal"===e.type){if(u=a.done?w:v,e.arg===f)continue;return{value:e.arg,done:a.done}}"throw"===e.type&&(u=w,a.method="throw",a.arg=e.arg)}})}),n}function y(t,n,e){try{return{type:"normal",arg:t.call(n,e)}}catch(t){return{type:"throw",arg:t}}}a.wrap=p;var g="suspendedStart",v="suspendedYield",m="executing",w="completed",f={};function b(){}function C(){}function n(){}var t={},r=(e(t,u,function(){return this}),Object.getPrototypeOf),r=r&&r(r(x([]))),o=(r&&r!==i&&s.call(r,u)&&(t=r),n.prototype=b.prototype=Object.create(t));function L(t){["next","throw","return"].forEach(function(n){e(t,n,function(t){return this._invoke(n,t)})})}function M(a,u){var n;l(this,"_invoke",{value:function(e,r){function t(){return new u(function(t,n){!function n(t,e,r,o){var i,t=y(a[t],a,e);if("throw"!==t.type)return(e=(i=t.arg).value)&&"object"==E(e)&&s.call(e,"__await")?u.resolve(e.__await).then(function(t){n("next",t,r,o)},function(t){n("throw",t,r,o)}):u.resolve(e).then(function(t){i.value=t,r(i)},function(t){return n("throw",t,r,o)});o(t.arg)}(e,r,t,n)})}return n=n?n.then(t,t):t()}})}function O(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function S(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function x(n){if(n||""===n){var e,t=n[u];if(t)return t.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length))return e=-1,(t=function t(){for(;++et.length)&&(n=t.length);for(var e=0,r=Array(n);e=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}(new URLSearchParams(t).entries());try{for(i.s();!(r=i.n()).done;){var a=y(r.value,2),u=a[0],c=a[1];void 0===o[u]?o[u]=c:o[u]instanceof Array?o[u].push(c):o[u]=[o[u],c]}}catch(t){i.e(t)}finally{i.f()}t="1"===o.isGpcEnabled;if(!t&&e&&f)return!1;if(!o.groups)return!Mntl.CMP.isOptInConsent();e=-1===o.groups.indexOf("4:0");return"US"===n&&!e&&!t&&null===docCookies.getItem(s)||("US"===n||-1!==o.groups.indexOf("4:1"))&&e}function b(){return e}function C(){var u;return u=k().mark(function t(){var o;return k().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(Mntl.CMP.supportsTCData()){t.next=2;break}return t.abrupt("return",Mntl.CMP.hasTargetingConsent());case 2:return t.prev=2,t.next=5,new Promise(function(e,r){"failed"!==i?(__tcfapi("addEventListener",2,function(t,n){!n||"tcloaded"!==t.eventStatus&&"useractioncomplete"!==t.eventStatus?r(new Error("Failed to get TCData")):e(t)}),"loading"===i&&a.once("onFail",!1,function(){r(new Error("CMP library failed to load or timed out"))})):r(new Error("CMP library failed to load or timed out"))});case 5:return o=t.sent,t.abrupt("return",(e="purpose",r="1",(n=o)&&n[e]&&n[e].consents&&n[e].consents[r]));case 9:return t.prev=9,t.t0=t.catch(2),t.abrupt("return",(n=t.t0,window.debug.error(n.message),!1));case 12:case"end":return t.stop()}var n,e,r},t,null,[[2,9]])}),(C=function(){var t=this,a=arguments;return new Promise(function(n,e){var r=u.apply(t,a);function o(t){p(r,n,e,o,i,"next",t)}function i(t){p(r,n,e,o,i,"throw",t)}o(void 0)})}).apply(this,arguments)}function u(){a.publish("onConsentChange")}function L(){return"loading"===i}function M(){return"failed"===i}function O(){var t=document.getElementById("onetrust-script");document.getElementById("onetrust-banner-sdk").classList.remove("show-banner"),t&&t.parentNode.removeChild(t)}function S(){window.debug.log("CMP loaded"),i="loaded",a.publish("onLoad")}function P(){window.debug.log("CMP timeout"),i="failed",a.publish("onFail")}window.Mntl=window.Mntl||{},window.OptanonWrapper=function(){var t=document.querySelector(".onetrust-pc-dark-filter"),n=document.querySelector("#onetrust-banner-sdk");function e(){t.style.display="none"}window.debug.log("OptanonWrapper called"),Mntl.CMP.hasFailedToLoad()||(Mntl.CMP.isLoading()&&Mntl.CMP.onLoad(),OneTrust.OnConsentChanged(Mntl.CMP.triggerConsentChange),Mntl.CMP.isOptInConsent()&&(Mntl.CMP.broadcastPreexistingConsent(),Mntl.CMP.showBannerOneTrustFallback(),n.classList.contains("show-banner")&&"none"!==window.getComputedStyle(n).display||e(),"none"!==n.style.display&&"hidden"!==n.style.visibility&&(t.style.display="block"),n.classList.contains("show-banner")&&"none"===window.getComputedStyle(n).display&&e()),document.addEventListener("click",function(t){(t.target.closest("#onetrust-accept-btn-handler")||t.target.closest(".onetrust-close-btn-handler"))&&e(),t.target.closest(".ot-pref-trigger")&&(t.stopImmediatePropagation(),t.preventDefault(),OneTrust.ToggleInfoDisplay())}),Mntl.CMP.trackBannerLogicScenarios(),Mntl.CMP.sdkLoaded())},Mntl.CMP=(c=Mntl.utilities||{},t=Mntl.fnUtilities||{},s="OptanonAlertBoxClosed",n=["gdpr"],l=null,o=f=r=e=!(h=["gdpr"]),a=new Mntl.PubSub(["onConsentChange","onLoad","onFail","onSdkLoaded"]),{broadcastPreexistingConsent:t.once(function(){var t=r,n=Mntl.CMP.isOptInConsent()&&m(),t=t||n;Mntl.CMP.isOptInConsent()&&t||u()}),hasFailedToLoad:M,hasPurposeOneConsent:function(){return C.apply(this,arguments)},hasTargetingConsent:w,init:function(t){var n;i="loading",e=t.isConsentRequired,l=t.oneTrustTemplateName,f=t.isCcpaApplicableRequest,o=t.isTcfEnabled,r=t.showConsentBanner,d=t.scriptTimeout,r&&document.addEventListener("click",function(t){if(t.target.closest("#onetrust-consent-sdk")&&"loaded"!==i){if(M())return O(),void u();n||"BUTTON"!==t.target.nodeName&&"A"!==t.target.nodeName||(n=t,window.debug.log("A click was queued up: ".concat(t.target.id))),a.once("onLoad",!1,function(){n&&(n.target.click(),window.debug.log("A click was replayed: ".concat(n.target.id)))}),a.once("onFail",!1,function(){O(),u()}),setTimeout(function(){L()&&P()},d)}},{once:!0}),Mntl.CMP.isOptInConsent()||S()},hasRejectedUserConsent:function(t){return(window.OneTrust&&window.OneTrust.geolocationResponse.regionCode)===t&&!w()},isConsentRequired:b,isAlertBoxClosed:function(){return null!==docCookies.getItem(s)},isLoading:L,isOptInConsent:function(){return e&&n.includes(l)},onLoad:S,onError:function(){window.debug.log("CMP error"),i="failed",a.publish("onFail")},onTimeout:P,onConsentChange:function(t){e?1{var h,s,d,n,e,c,r,o,g,u,p,f,m,b,a,i,t,w,y,v,P,T,C,M,S,B,j;function A(e){return(A="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})(e)}function D(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||R(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,o,r,a,s=[],d=!0,c=!1;try{if(r=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;d=!1}else for(;!(d=(n=r.call(i)).done)&&(s.push(n.value),s.length!==t);d=!0);}catch(e){c=!0,o=e}finally{try{if(!d&&null!=i.return&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||R(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){var i,n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=R(e))||t&&e&&"number"==typeof e.length)return n&&(e=n),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){a=!0,o=e},f:function(){try{r||null==n.return||n.return()}finally{if(a)throw o}}}}function R(e,t){if(e){if("string"==typeof e)return I(e,t);var i={}.toString.call(e).slice(8,-1);return"Map"===(i="Object"===i&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i{function n(t){this._v=t}window.Mntl=window.Mntl||{},Mntl.Maybe=(n.of=function(t){return new n(t)},n.prototype.isNothing=function(){return null===this._v||void 0===this._v},n.prototype.map=function(t){return this.isNothing()?n.of(null):n.of(t(this._v))},n.prototype.flatMap=function(t){return this.isNothing()?null:t(this._v)},n.prototype.orElse=function(t){return this.isNothing()?t:this._v},n)})(); (()=>{var d,i,o,u,a,e,y,w,m,f,n,p,h,v,S,T,l,b,r,t,E,M;function A(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)),i}function s(i){for(var t=1;tt.length)&&(e=t.length);for(var n=0,i=Array(e);n[\]\s]/gi,""),n=!0):"number"!=typeof t&&"boolean"!=typeof t||(e=String(t)),n&&t!==e&&window.debug.log('Targeting value "'.concat(t,'" was incorrectly formatted, converted to "').concat(e,'"')),e}function j(){var t=Mntl.utilities.getQueryParams(),t=t.kw||t.adTestKeyValues;if(!t)return{};var t=t.split("-"),n={};return t.forEach(function(t){var t=L(t.split(","),2),e=t[0],t=t[1];t?n[e]=t:n.kw=e}),n}function F(t){return m[t.config.id].gptSlot}function D(t){for(var e=[],n=0,i=t.length;nt.height*t.width?{height:e.getHeight(),width:e.getWidth()}:t},{height:50,width:50}),n=document.createElement("div");null!==e&&(n.style.backgroundColor="#e8e8e8",n.style.width="".concat(t.width,"px"),n.style.height="".concat(t.height,"px"),e.parentNode.setAttribute("data-ad-height",t.height),e.parentNode.setAttribute("data-ad-width",t.width),e.appendChild(n))}):(n=T,t=(i=L(t.reduce(function(t,e){return(e.config.waitForThirdParty&&!n?t[0]:t[1]).push(F(e)),t},[[],[]]),2))[0],0<(e=i[1]).length&&googletag.cmd.push(R(I().mark(function t(){return I().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,d;case 2:window.debug.log("Rendering slots",e),N(e,{changeCorrelator:!1});case 4:case"end":return t.stop()}},t)}))),0localStorage.ddmAdSessionTTL)&&(e=!0,localStorage.setItem("ddmAdSessionTTL",t+432e5)),e||null===localStorage.getItem("ddmAdPageCount")||(n=parseInt(localStorage.ddmAdPageCount,10)),n++,localStorage.setItem("ddmAdPageCount",n)}catch(t){debug.log("Mntl.GPT: error loading pv from localStorage",t)}return n}()),b.pageTargeting.category=(t=b.baseSlotTargeting,r="/"===window.location.pathname?"homepage":"",g((t=(t.tax1||r).split("_"))[t.length-1].replace(/ /g,""))),Object.assign(b.pageTargeting,j()),void 0===b.auctionFloors.other&&(b.auctionFloors.other=p),b.publisherProvidedId&&(b.pageTargeting.muid=b.publisherProvidedId),b.baseSlotTargeting.type=(t=(r=b).useOxygen,i=r.templateName,o=r.baseSlotTargeting,r=r.pageTargeting,t?(t=i,"homepage"===r.category?"taxonomy":-1!==["taxonomy","taxonomysc","structuredcontent","listsc","recipesc"].indexOf(t)?t:"other"):{taxonomy:"category",bio:"category",list:"slideshow",howto:"project",jwplayer:"video"}[i=(i=o.type).replace(" ","")]||i||"none"),r=b.pageTargeting,a={dd:["path","pv","mtax"],lmd:["dc_ref"]}[b.useLmdFormat?"lmd":"dd"],Mntl.fnUtilities.iterate(r,function(t,e){-1e.targeting.priority?1:e.targeting.priority>t.targeting.priority?-1:0:0})},isSingleRequest:function(){return b.singleRequest},isMobile:function(){return b.isMobile},isTablet:function(){return b.isTablet},isDesktop:function(){return b.isDesktop},getSlotById:U,updateBaseSlotTargeting:_,updatePageTargeting:lt,getPageTargeting:function(){return b.pageTargeting},registerCallback:function(t,o){function r(t){y.hasOwnProperty(t)?y[t].fn.push(o):y[t]={},y[t].rendered&&o(y[t].args)}window.debug.log("Registering callback",t,o),t.forEach(function(t){var n,i,e;-1{var n;function i(t){window.debug.log("Mntl.Targeting: Targeting key '".concat(t,"' was blocked from the ad call"))}window.Mntl=window.Mntl||{},Mntl.Targeting=(n=["aid","bts","category","child","ctype","dload","gtemplate","microtags","parent","path","pos","priority","rtd_ias_id","sbj","stax","tile"],{removeBlocklistedSlotTargeting:function(t){t.forEach(function(e){var t=e.getTargetingKeys();t&&t.forEach(function(t){n.includes(t)&&(e.clearTargeting(t),i(t))})})},getBlocklist:function(){return n},logBlocklistedKeys:i})})(); (()=>{var t,y,h,g,E,f,w,S;function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var a,r,o,i,l=[],s=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(a=o.call(n)).done)&&(l.push(a.value),l.length!==e);s=!0);}catch(t){c=!0,r=t}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw r}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return a(t,e);var n={}.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=Array(e);nm,l=n[r],s=E.of((s=(s=l).getElementsByClassName("scads-to-load")).length?s:null),u&&(s=s.map(function(t){return Array.prototype.filter.call(t,function(t){return!t.classList.contains("right-rail__item")||d.set(t)})})),o.push({adSlotBlockEl:i,content:l,ads:s,lazyLoad:c}),f?(i=getComputedStyle(l.querySelector(".mm-ads-gpt-adunit")||l),y+=l.offsetHeight+parseInt(i.marginTop,10)+parseInt(i.marginBottom,10),r++):(A(o),o.shift()),t.shift())}return f&&A(o),1}function C(t,e){t=t.getElementsByClassName(w);e.reset(),Array.prototype.forEach.call(t,function(t){t.classList.contains("right-rail__item")&&e.set(t)})}function e(t){t=t||document;var e,n,u,a,r,d,f,o,m,i=E.of(t.querySelectorAll("[data-sc-content-positions]")[0]||t.dataset&&t.dataset.scContentPositions&&t),p=E.of(t),l=h.curry(y.getData),s=E.of(t.classList&&t.classList.contains("sc-ad-container")&&t||t.getElementsByClassName("sc-ad-container")[0]||t.getElementsByClassName("mntl-sc-page")[0]),c=M(i.map(l("scMinTrackHeight")).orElse(250),i.map(l("scMaxTrackHeight")).orElse(0),i.map(l("scAdTrackSpacing")).orElse(100),i.map(l("scAdLabelHeight")).orElse(0),i.map(l("scAdBottomOffset")).orElse(0));t.querySelector(".article-right-rail")&&0{var c,d,f;function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],u=!0,S=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){S=!0,o=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(S)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n={}.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n{function e(e){var l;null!==e.size&&1!==e.size[0]&&1!==e.size[1]||(-1!==e.id.indexOf("leaderboard")?l="leaderboard":-1!==e.id.indexOf("square")&&(l="square"),e=document.getElementById(e.id),window.People.utilities.closest(e,".".concat(l)).className+=" collapsed")}window.People=window.People||{},window.Mntl=window.Mntl||{},window.People.GPT=(window.Mntl.GPT.registerCallback(["leaderboard*","square*"],e),window.Mntl.GPT.registerCallback(["native"],function(e){null!==e.size&&1!==e.size[0]&&1!==e.size[1]||(e=document.getElementById(e.id),window.People.utilities.closest(e,".mntl-sc-block-adslot").classList.add("collapsed"))}),{generateSlotId:function(e){return 0===e.chapter&&0<=e.index?e.id:"".concat(e.type,"-").concat(e.chapter,"-").concat(e.index,"-d")},collapseAd:e})})(); (()=>{var e,n,o,i;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){var n=t;return Mntl.fnUtilities.iterate(t,function(t,e){r(o[e])===r(t[e])||""===t[e]||""===o[e]&&"number"==typeof t[e]||("string"==typeof o[e]&&(n[e]=String(n[e])),"number"==typeof o[e]&&(n[e]=parseInt(t[e],10)))}),n}window.Mntl=window.Mntl||{},window.dataLayer=window.dataLayer||[],Mntl.PageView=(e=window.docCookies,n="".concat(window.location.href.substring(window.location.href.indexOf("."),window.location.href.indexOf(".com")),".com"),i=!(o={event:"unifiedPageview"}),Mntl.utilities.onLoad(function(){e.removeItem("pageEntryType","/",n)}),{pushToDataLayer:function(t){return i?(t&&(e=a(t),Object.keys(o).forEach(function(t){e.hasOwnProperty(t)&&(o[t]=e[t])})),dataLayer.push(Mntl.fnUtilities.deepExtend({},o))):(debug.warn("Mntl.PageView not initialized with default values. Cannot push data."),!1);var e},setEntryType:function(t){e.setItem("pageEntryType",t,null,"/",n)},logContinuousScrollPageView:function(t,n,o){t="".concat(window.Mntl.domUtilities.getResourceRootUrl(),"/servemodel/model.json?modelId=gtmPageView&url=").concat(t,"&isContinuousScroll=true"),window.Mntl.utilities.ajaxPromiseGetCall(t).then(function(t){var t=a(JSON.parse(t)),e=(n.event=o,Mntl.GPT.getPageTargeting());e.rid=t.internalRequestId,Mntl.GPT.updatePageTargeting(e),dataLayer.push(Mntl.fnUtilities.deepExtend(t,n))}).catch(function(t){window.debug.error("Error fetching gtmPageView: ",t)})},init:function(t){return!i&&(o=Mntl.fnUtilities.deepExtend(o,t),i=!0,dataLayer.push(Mntl.fnUtilities.deepExtend({},o)))}})})(); (()=>{var d,n,a,c;function u(t,e){return t.getAttribute(e)||""}function i(t){t=u(t,"href");return 0===t.indexOf("//")?t=window.location.protocol+t:0===t.indexOf("/")&&(t="".concat(window.location.protocol,"//").concat(window.location.host).concat(t)),t}window.Mntl=window.Mntl||{},window.dataLayer=window.dataLayer||[],d=window.Mntl.fnUtilities||{},n=window.Mntl.Maybe||{},a=window.Mntl.trackingUtilities||{},c=window.Mntl.utilities||{},Mntl.clickTracking={getPixelsFromContent:function(t){var e=document.querySelector("main")||document.getElementById("main");return e?((e=Mntl.clickTracking.getAbsoluteCoordinates(e)).top=window.scrollY,{top:t.top-e.top,left:t.left-e.left}):{top:"",left:""}},getAbsoluteCoordinates:function(t){var t=t.getBoundingClientRect(),e=window.scrollY,n=window.scrollX;return{left:t.left+n,top:t.top+e}},trackClick:function(t,e,n,i,a){var r,l={event:"linkClick",linkId:u(e,"id"),linkText:u(e,"data-click-action")||(c=e,(l=t).target!==c&&""!==d.trimAllWhitespace(l.target.textContent.replace(/<[^>]*>?/gm,""))?d.trimAllWhitespace(l.target.textContent.replace(/<[^>]*>?/gm,"")):c?d.trimAllWhitespace(c.textContent.replace(/<[^>]*>?/gm,"")||""):""),linkLabel:u(e,"title")||u(e,"aria-label"),pageWidth:document.body.clientWidth,pageHeight:document.body.clientHeight},c=Mntl.clickTracking.getAbsoluteCoordinates(e),o=Mntl.clickTracking.getPixelsFromContent(c);return(l=Mntl.clickTracking.linkData(e,l)).dataOrdinal=n,l.linkContainerId=i,l.domAncestorIds=a.reverse(),l.pixelsFromTopOfPage=c.top,l.pixelsFromLeftOfPage=c.left,l.pixelsFromTopOfMainContainer=o.top,l.pixelsFromLeftOfMainContainer=o.left,r=l,Array.prototype.forEach.call(e.attributes,function(t){var e;0===t.name.indexOf("data-")&&(e=t.value,t=t.name.replace(/-([a-z])/g,function(t){return t[1].toUpperCase()}),r[t]=e)}),l=r,Mntl.clickTracking.fireEvent(l,t,e)},searchDom:function(t){var e,n,i=t.path||null,a=t.target,r=null,l=[],c="",o="";function d(t){return"false"===t.dataset.clickTracked}function u(t){var e,n;return!d(t)&&(t.hasAttribute&&(""===c&&(c=t.dataset.ordinal||""),""===o&&(n="",o=n="true"===(e=t).dataset.trackingContainer?e.dataset.trackingId||e.getAttribute("id"):n),t.hasAttribute("id")&&l.push(t.getAttribute("id")),"A"!==t.nodeName&&"BUTTON"!==t.nodeName&&"true"!==t.getAttribute("data-click-tracked")||null!==r||(r=t)),1)}if(t.target.wasTracked)return!0;if(window.Mntl.utilities.isTouchDevice()&&!0===Mntl.clickTracking.dragging)return!0;if(d(a))return!1;if(i&&2{var e,t,r,a,o,c,d,y,s,h,p,u,g,l,i,m;function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,l=[],c=!0,d=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){d=!0,a=e}finally{try{if(!c&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(d)throw a}}return l}}(e,t)||S(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=S(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,o=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){o=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(o)throw a}}}}function S(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=u-50){d.appendChild(s);break}}}catch(e){c.e(e)}finally{c.f()}}}function A(e,t){e.style.height="auto",e.dataset.noSticky="",n(e,t)}function q(e,t){e=e.querySelector(".mm-ads-gpt-adunit .wrapper[data-sizes]");e&&(g=E()}function L(e,t){return e<=t}function I(){return document.querySelector(".article-right-rail").offsetHeight-y}function j(e){var t=e.classList.contains("mm-ads-native"),e=e.classList.contains("dynamic-inline");return t||e}function T(e,t){var n,r;u&&0 .mntl-block:empty:not(.mm-ads-inline-ad-removed)"))?a.appendChild(e):console.error("We are attempting to append another ad in a block that cannot exist, we should review why we have more ads than blocks avaliable"))):(m.push({ad:e,index:t}),e.parentNode&&(e.parentNode.innerHTML=""))}function R(){var e,t;c?(t=c,e=I(),d+=e=(c=e)-t,(t=document.querySelector("[data-no-sticky]"))&&t.offsetHeight{var a,r;function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function n(t,i){for(var e=0;ethis.rightRailTotalHeight&&(this.usesResizeInfiniteAds||(this.usesResizeInfiniteAds=!0),this.currentRightRailSpace+=t-this.rightRailTotalHeight,this.rightRailTotalHeight=t,window.debug.log("Mntl.InfiniteRightRailManager: Usable right rail space is now ".concat(this.currentRightRailSpace,"px")),this.mostRecentInfiniteAdHasLoaded()&&(this.attemptToPlaceNewRightRailAd(),Mntl.LazyAds.init()))}},{key:"mostRecentInfiniteAdHasLoaded",value:function(){var t=document.querySelectorAll(".infinite-ad-unit-container");if(0===t.length)return!0;t=t[t.length-1];return t.classList.contains("is-requested")||t.classList.contains("js-immediate-ad")||t.classList.contains("infinite-lazy-ad-skipped")}},{key:"attemptToPlaceNewRightRailAd",value:function(){var t=Mntl.RightRail,i=t.roomForAd,t=t.roomForStickyFunctionality;this.usesResizeInfiniteAds&&t(this.maxHeightPadding,this.currentRightRailSpace,this.offset)?(this.placeNewRightRailBillboard(!1),window.debug.log("Mntl.InfiniteRightRailManager: Decrementing space by ".concat(this.maxHeightPadding,"px")),this.currentRightRailSpace-=this.maxHeightPadding):!this.usesResizeInfiniteAds&&i(this.currentRightRailSpace)?(i=t(this.maxHeightPadding,this.currentRightRailSpace,this.offset),this.placeNewRightRailBillboard(!i),t=i?this.maxHeightPadding:this.minHeightPadding,window.debug.log("Mntl.InfiniteRightRailManager: Decrementing space by ".concat(t)),this.currentRightRailSpace-=t):window.debug.log("Mntl.InfiniteRightRailManager: No room for a new Desktop Load and Destroy Ad unit"),window.debug.log("Mntl.InfiniteRightRailManager: Only ".concat(this.currentRightRailSpace,"px of space remains of ").concat(this.rightRailTotalHeight,"px"))}},{key:"_destroyRightRailAd",value:function(){var t=document.querySelectorAll(".article-right-rail .square:not(.infinite-lazy-ad-skipped) .wrapper.gpt-requested");8<=t.length&&(Mntl.GPT.destroySlotById(t[0].id),t[0].parentElement.remove()),this.attemptToPlaceNewRightRailAd()}},{key:"placeNewRightRailBillboard",value:function(t){var i,e=this,n=new r(this.billboardAdBlueprint.cloneNode(!0),t,++this.rightRailAdUnitIndex,this.currentRightRailSpace,this.usesResizeInfiniteAds);new Promise(function(t){i=t,n.wrapper.addEventListener("slotRequested",i)}).then(function(t){t.detail&&t.detail.skipDestroy?e.attemptToPlaceNewRightRailAd():e._destroyRightRailAd(t),n.wrapper.removeEventListener("slotRequested",i)}).catch(function(t){return console.log(t)}),n.placeInRightRail(),Mntl.ScLockBillboards.addStickyBillboardListener([n.wrapper])}}])}())})();