try { !function(e){var t={};function a(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.l=!0,i.exports}a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s=1)}([function(e,t,a){"use strict";var n;a.r(t),a.d(t,"v1",(function(){return v})),a.d(t,"v3",(function(){return E})),a.d(t,"v4",(function(){return k})),a.d(t,"v5",(function(){return A})),a.d(t,"NIL",(function(){return C})),a.d(t,"version",(function(){return I})),a.d(t,"validate",(function(){return s})),a.d(t,"stringify",(function(){return h})),a.d(t,"parse",(function(){return g}));var i=new Uint8Array(16);function r(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)}var o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&o.test(e)},d=[],c=0;c<256;++c)d.push((c+256).toString(16).substr(1));var u,l,h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=(d[e[t+0]]+d[e[t+1]]+d[e[t+2]]+d[e[t+3]]+"-"+d[e[t+4]]+d[e[t+5]]+"-"+d[e[t+6]]+d[e[t+7]]+"-"+d[e[t+8]]+d[e[t+9]]+"-"+d[e[t+10]]+d[e[t+11]]+d[e[t+12]]+d[e[t+13]]+d[e[t+14]]+d[e[t+15]]).toLowerCase();if(!s(a))throw TypeError("Stringified UUID is invalid");return a},f=0,p=0;var v=function(e,t,a){var n=t&&a||0,i=t||new Array(16),o=(e=e||{}).node||u,s=void 0!==e.clockseq?e.clockseq:l;if(null==o||null==s){var d=e.random||(e.rng||r)();null==o&&(o=u=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==s&&(s=l=16383&(d[6]<<8|d[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:p+1,g=c-f+(v-p)/1e4;if(g<0&&void 0===e.clockseq&&(s=s+1&16383),(g<0||c>f)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=c,p=v,l=s;var y=(1e4*(268435455&(c+=122192928e5))+v)%4294967296;i[n++]=y>>>24&255,i[n++]=y>>>16&255,i[n++]=y>>>8&255,i[n++]=255&y;var w=c/4294967296*1e4&268435455;i[n++]=w>>>8&255,i[n++]=255&w,i[n++]=w>>>24&15|16,i[n++]=w>>>16&255,i[n++]=s>>>8|128,i[n++]=255&s;for(var m=0;m<6;++m)i[n+m]=o[m];return t||h(i)};var g=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,a=new Uint8Array(16);return a[0]=(t=parseInt(e.slice(0,8),16))>>>24,a[1]=t>>>16&255,a[2]=t>>>8&255,a[3]=255&t,a[4]=(t=parseInt(e.slice(9,13),16))>>>8,a[5]=255&t,a[6]=(t=parseInt(e.slice(14,18),16))>>>8,a[7]=255&t,a[8]=(t=parseInt(e.slice(19,23),16))>>>8,a[9]=255&t,a[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,a[11]=t/4294967296&255,a[12]=t>>>24&255,a[13]=t>>>16&255,a[14]=t>>>8&255,a[15]=255&t,a};var y=function(e,t,a){function n(e,n,i,r){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],a=0;a>>9<<4)+1}function m(e,t){var a=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(a>>16)<<16|65535&a}function _(e,t,a,n,i,r){return m((o=m(m(t,e),m(n,r)))<<(s=i)|o>>>32-s,a);var o,s}function b(e,t,a,n,i,r,o){return _(t&a|~t&n,e,t,i,r,o)}function D(e,t,a,n,i,r,o){return _(t&n|a&~n,e,t,i,r,o)}function x(e,t,a,n,i,r,o){return _(t^a^n,e,t,i,r,o)}function P(e,t,a,n,i,r,o){return _(a^(t|~n),e,t,i,r,o)}var E=y("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var a=0;a>5]>>>n%32&255,r=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);t.push(r)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<>>32-t}var A=y("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],a=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var i=0;i>>0;m=w,w=y,y=z(g,30)>>>0,g=v,v=D}a[0]=a[0]+v>>>0,a[1]=a[1]+g>>>0,a[2]=a[2]+y>>>0,a[3]=a[3]+w>>>0,a[4]=a[4]+m>>>0}return[a[0]>>24&255,a[0]>>16&255,a[0]>>8&255,255&a[0],a[1]>>24&255,a[1]>>16&255,a[1]>>8&255,255&a[1],a[2]>>24&255,a[2]>>16&255,a[2]>>8&255,255&a[2],a[3]>>24&255,a[3]>>16&255,a[3]>>8&255,255&a[3],a[4]>>24&255,a[4]>>16&255,a[4]>>8&255,255&a[4]]})),C="00000000-0000-0000-0000-000000000000";var I=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},function(e,t,n){"use strict";function i(e,t){for(var a=0;a iframe","ins > div[id^='aswift_'] > iframe"]),new o("dfp",["iframe[id^='google_ads_iframe_']"]),new o("outbrain",[".OUTBRAIN > .ob-widget"]),new o("taboola",["div[id^='taboola-'] > .trc_rbox_container"]),new o("zergnet",["div[id^='zergnet-widget-']","div.zergnet-widget"]),new o("sovrn",["div.sovrn-onetag-ad"]),new o("content.ad",["div[id^='ac_'] > .ac_adbox"]),new o("media net",["iframe[id^='_mN_main_']","iframe[id^='_mN_dy_']"]),new o("tynt",["div.tynt-ad-container"]),new o("my6",["div[class*='my6_widget']"]),new o("spot.im",["div[data-spotim-module='recirculation']"]),new o("proper media",["iframe[id^='proper-ad-']"]),new o("revcontent",["div.rc-wc.rc-bp","div[id^='rc_cont']"]),new o("mgid",["div[class^='mgid-ad-']"]),new o("amazon native",["div[id^='amzn-native-ad-']"]),new o("spotx",["div[id^='spotx_content_container']"]),new o("ligatus",["div[id^='ligatusframe']"]),new o("adhese",["div[id^='adheseVisibleDiv']"]),new o("infolinks",["div.IL_BASE"]),new o("disqus",["div#disqus_thread > iframe[src*='disqusads']"]),new o("triplelift",["div.tlod > div"]),new o("lockerdome",["div[id*='ld-'] > iframe"])];function d(e,t){for(var a=0;a0&&e.offsetHeight>0})),u(l,"isAncestorOfClass",(function(e,t){for(;e.parentNode&&"body"!==e.parentNode.tagName.toLowerCase()&&"html"!==e.parentNode.tagName.toLowerCase();)if((e=e.parentNode).className.indexOf(t)>0)return!0;return!1}));var f=function(){function e(t,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=t,this.y=a}var t,a,n;return t=e,(a=[{key:"add",value:function(t){return new e(this.x+t.x,this.y+t.y)}},{key:"equals",value:function(e){return this.x===e.x&&this.y===e.y}},{key:"withinRect",value:function(e,t){if(this.equals(e)||this.equals(t))return!0;var a=Math.max(e.x,t.x),n=Math.max(e.y,t.y),i=Math.min(e.x,t.x),r=Math.min(e.y,t.y);return!(this.x>a||this.xn|this.y=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 r,o=!0,s=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return o=e.done,e},e:function(e){s=!0,r=e},f:function(){try{o||null==a.return||a.return()}finally{if(s)throw r}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a=0||ezoTemplate.indexOf("old_site")>=0?this.platformID=2:this.platformID=1}var t,a,n;return t=e,n=[{key:"_fireData",value:function(e,t){(new Image).src=e+"?d="+encodeURIComponent(JSON.stringify(t))}},{key:"getPixelURL",value:function(e){return("undefined"==typeof ezoTemplate||"undefined"!=typeof ezJsu&&1==ezJsu||"undefined"!=typeof _ez_sa&&1==_ez_sa||"undefined"!=typeof isAmp&&!0===isAmp||"undefined"!=typeof ezWp&&!0===ezWp)&&(e="//g.ezoic.net"+e),e}},{key:"_setEzaqData",value:function(e){e.pageview_id=_ezaq.page_view_id,e.domain=l.getDomain(_ezaq.url),e.url=_ezaq.url,e.form_factor_id=_ezaq.form_factor_id}}],(a=[{key:"run",value:function(){this._firePlaceholdersEarly(),this._attachEvents()}},{key:"_firePlaceholdersEarly",value:function(){var e=this,t=function(){document.body&&(e._findPlaceholders(),e._firePlaceholderData(),e._observePlaceholders())};"loading"===document.readyState?l.attachEvent(document,"DOMContentLoaded",t):t()}},{key:"_observePlaceholders",value:function(){var e=this;this._placeholderObserver||(this._placeholderObserver=new MutationObserver((function(t){var a,n=!1,i=p(t);try{for(i.s();!(a=i.n()).done;){var r,o=p(a.value.addedNodes);try{for(o.s();!(r=o.n()).done;){var s=r.value;if(1===s.nodeType&&(s.id&&s.id.startsWith("ezoic-pub-ad-placeholder-")||s.querySelector&&s.querySelector("[id^='ezoic-pub-ad-placeholder-']"))){n=!0;break}}}catch(e){o.e(e)}finally{o.f()}if(n)break}}catch(e){i.e(e)}finally{i.f()}n&&(e._findPlaceholders(),e._firePlaceholderData())})),this._placeholderObserver.observe(document.body,{childList:!0,subtree:!0}))}},{key:"_resetIfNewPageview",value:function(){var e="undefined"!=typeof _ezaq?_ezaq.page_view_id:null;e&&this._lastPageviewId!==e&&(this._lastPageviewId=e,this.pageviewData={},this.impressionData={},this.adCoordinates={},this.lastRecordedDensityData={},this.placeholderData={},this.adsFound=0)}},{key:"_run",value:function(){document.body&&(this._resetIfNewPageview(),this.pageWidth=Math.max(document.body.scrollWidth,document.body.offsetWidth,document.documentElement.clientWidth,document.documentElement.scrollWidth,document.documentElement.offsetWidth),this.pageHeight=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight),this._log("Running ad density"),this._findAds(),this._findPlaceholders(),this._gatherData(),this._fire())}},{key:"_attachEvents",value:function(){var e=this;"complete"===document.readyState?this._run():l.attachEvent(document,"readystatechange",(function(){"complete"===document.readyState&&e._run()})),l.attachEvent(document,"blur",this._run.bind(this)),l.attachEvent(document,"unload",this._run.bind(this)),l.attachEvent(document,"pagehide",this._run.bind(this)),l.attachEvent(window,"blur",this._run.bind(this)),l.attachEvent(window,"unload",this._run.bind(this)),l.attachEvent(window,"pagehide",this._run.bind(this))}},{key:"_findAds",value:function(){var e=this;s.forEach((function(t){t.selectors.forEach((function(a){document.querySelectorAll(a).forEach((function(a){e._handleFoundAd(a,t.name)}))}))})),this._log("Have found ".concat(this.adsFound," ads"))}},{key:"_findPlaceholders",value:function(){var e=this;this._resetIfNewPageview(),document.querySelectorAll("[id^='ezoic-pub-ad-placeholder-']").forEach((function(t){var a=t.id.replace("ezoic-pub-ad-placeholder-",""),n=parseInt(a,10);if(!isNaN(n)&&!e.placeholderData.hasOwnProperty(n)){var i=t.getBoundingClientRect(),r=Math.round(i.left+window.scrollX),o=Math.round(i.top+window.scrollY);r<0||o<0||(e.placeholderData[n]={ap:n,x:r,y:o},e._log("Found placeholder ".concat(n," at (").concat(r,", ").concat(o,")")),e._debug_placeholder(t,n))}})),this._log("Have found ".concat(Object.keys(this.placeholderData).length," placeholders"))}},{key:"_handleFoundAd",value:function(e,t){var a="ezdensity-".concat(this.adsFound),n=l.getAbsolutePosition(e),i=new f(n.x,n.y),r=i.toString();if(e.className.indexOf("ezdensity")>=0||this.adCoordinates.hasOwnProperty(r))this._debug_ad(e);else if(!(n.x<0||n.x>this.pageWidth||n.y<0||n.y>this.pageHeight)&&l.isVisible(e)){var o=window.getComputedStyle(e);if("none"!==o.display)if(l.isAncestorOfClass(e,"ezdensity"))this._debug_ad(e);else{for(var s=0,d=Object.keys(this.adCoordinates);s0||(this._log("Gathering pageview data"),this._setPageviewData(this.pageviewData))}},{key:"_setPageviewData",value:function(t){t.platform_id=this.platformID,1===this.platformID||2===this.platformID?e._setEzaqData(t):(this.pageviewData.hasOwnProperty("pageview_id")?t.pageview_id=this.pageviewData.pageview_id:t.pageview_id=y(),this.pageviewData.hasOwnProperty("domain")?t.domain=this.pageviewData.domain:t.domain=l.getDomain(window.location),this.pageviewData.hasOwnProperty("url")?t.url=this.pageviewData.url:t.url=window.location.protocol+"//"+window.location.hostname+window.location.pathname)}},{key:"_isPageviewDataDirty",value:function(){for(var e in this.pageviewData)if(this.pageviewData[e]!==this.lastRecordedDensityData[e])return!0;return!1}},{key:"_savePageviewDataCheckpoint",value:function(){this.lastRecordedDensityData=Object.assign({},this.pageviewData)}},{key:"_fire",value:function(){var t=this;this._isPageviewDataDirty()&&(this._savePageviewDataCheckpoint(),this._log("Firing pageview data with pixel count ".concat(this.pageviewData.page_pixel_count," and ad density of ").concat(this.pageviewData.ad_density)),e._fireData(e.getPixelURL("/detroitchicago/dpv.gif"),this.pageviewData));var a={data:[]};Object.keys(this.impressionData).forEach((function(e){t.impressionData[e].fired||(t._log("Adding imp data for ".concat(e)),a.data.push(t.impressionData[e]))})),a.data.length>0&&(this._setPageviewData(a),this._log("Firing imp data"),e._fireData(e.getPixelURL("/detroitchicago/dimp.gif"),a),Object.keys(this.impressionData).forEach((function(e){t.impressionData[e].fired=!0})))}},{key:"_firePlaceholderData",value:function(){var t=this,a={d:[]};Object.keys(this.placeholderData).forEach((function(e){t.placeholderData[e].fired||a.d.push(t.placeholderData[e])})),a.d.length>0&&(a.pi=this.platformID,1===this.platformID||2===this.platformID?(a.pv=_ezaq.page_view_id,a.dm=l.getDomain(_ezaq.url),a.u=_ezaq.url,a.ff=_ezaq.form_factor_id):(a.pv=this.pageviewData.hasOwnProperty("pageview_id")?this.pageviewData.pageview_id:y(),a.dm=this.pageviewData.hasOwnProperty("domain")?this.pageviewData.domain:l.getDomain(window.location),a.u=this.pageviewData.hasOwnProperty("url")?this.pageviewData.url:window.location.protocol+"//"+window.location.hostname+window.location.pathname),this._log("Firing placeholder data for ".concat(a.d.length," placeholders")),e._fireData(e.getPixelURL("/detroitchicago/dph.gif"),a),Object.keys(this.placeholderData).forEach((function(e){t.placeholderData[e].fired=!0})))}},{key:"_calculateDensity",value:function(){var e=this,t=Math.round(this.pageWidth*this.pageHeight);this._log("Running on page with width ".concat(this.pageWidth," height ").concat(this.pageHeight," with ").concat(t," total pixels"));var a=0;Object.keys(this.impressionData).forEach((function(t){a+=e.impressionData[t].ad_width*e.impressionData[t].ad_height}));var n=this.getMergedAdsHeight();this.headerHeight=window.innerHeight/2,this.footerHeight=window.innerHeight/2;var i=this.pageHeight-(this.headerHeight+this.footerHeight);this.pageviewData.page_pixel_height=i,this.pageviewData.ad_pixel_height=n,this.pageviewData.ad_density_height=100*n/i,this.pageviewData.page_pixel_count=t,this.pageviewData.ad_pixel_count=a,this.pageviewData.ad_density=100*a/t,this._log("Page has an ad density of ".concat(this.pageviewData.ad_density))}},{key:"getMergedAdsHeight",value:function(){var e=0,t=0,a=[],n=this.headerHeight,i=this.pageHeight-this.footerHeight;for(var r in this.impressionData){var o=this.impressionData[r],s=Math.max(o.pos_y,n),d=Math.min(o.pos_y+o.ad_height,i);if(!(d<=n||s>=i||s>=d)){var c={entered:!1};a.push({y:s,edgeState:c}),a.push({y:d,edgeState:c})}}a.sort((function(e,t){return e.y-t.y}));for(var u=0,l=0,h=a;l