Home / Others / The pain of the Google application that matches your selfie with a painting.

The pain of the Google application that matches your selfie with a painting.



  Results of the Slate staff of the Google Arts & Culture application.

Slate staff results from the Google Arts & Culture app.

Slate

Inevitably, unpleasant truths hide every cliché: each one of us, we are told, is a work of art. However, we often forget that even the most beautiful works of art seldom show us beautiful people .

There is no clearer demonstration of this fact than the viral popularity of the Google Arts & Culture app. Take a selfie with the program, and compare your face with those found in the digitized paintings of museums around the world. Moments later, it presents you with a series of images that show you a series of historical cups that fit better to yours. Although Google introduced the feature last December, it exploded over the weekend, as Twitter and Instagram users shared screenshots of their best and often the worst pairs.

In theory, at least, the tool must be educational. Click on one of your matches, and the application will take you to a full painting scan. (The shot in the head is usually only a detail of the original artwork). Keep clicking, and you can take it to a representation of the museum that houses the work, which gives you the opportunity to see your painting matched in context. This seems to be in accordance with the ostensible purpose of Google Arts & Culture, which contains huge repositories of historical data, from virtual tours of ancient sites to meditations on the contemporary resonance of emojis. If my Twitter feed is an indication, few use the application to dig up the past. If they look like me, they're too busy trying to get the perfect match.

And I try to do it, although my own experiments with the application were often … less than ideal. He repeatedly told me that he looked like a subject of Anthony Van Dyck whose mustache turned up and pronounced underchin offered me a horrible picture of my possible future. On another occasion, he compared me to the petulant portrait of Diego Rivera by Adolfo Best Maugard, a 1913 image in which Rivera's fellow painter seems less substantial than the billowing smog behind him. Only after repeated attempts – and carefully playing with the lighting of my apartment – did the application serve something remotely attractive: the brutal and contemplative portrait of Santiago Rusiñol i Prats in 1895 by the sculptor Carles Mani. At last I was satisfied, but, if I am honest, this final match was not much more accurate than any of the previous ones.

This may be the secret of the application: it charms because at the same time it attracts and deflates our narcissism. It serves a sensual look and compares you to a fucking 19 th dandy. Try to show off your jaw and see how it matches you with the most despotic Danish prince in history. Occasionally, the results satisfy, as presumably they did for the writer and comedian Dana Schwartz, who matched ( repeatedly! ) with John Singer Sargent Madame X . Meanwhile, my friend Topher received one that closely resembles Matt Damon auditioning for a role in an ill-conceived sequel to The Revenant . Most of us, however, will find that the application only flatters the impressions of our enemies. Post the results on Twitter or Instagram often demonstrates an exercise in the subtle art of the humblebrag, allowing us to show how much better we see than our historical doubles.

Even so, even when the comparisons are undesirably inept, they rarely feel completely inaccurate. When studying the worst of my games, I still noticed clear points of comparison. Each time, it seemed to focus on the particular characteristics, although they were not always what I would choose to emphasize. Once, it seemed to stop in my pronounced eye sockets and the careless facial hair, again on the short sides of my skull. Maybe I'm giving the application too much credit, but this attention to detail suggests that Google's digital eye has become uncomfortably attentive to specificity, seeing things we normally miss about ourselves. Blinking back and forth between my own image and that of my supposed doppelgängers, I began to read my own face as a machine could. It became a collection of discrete and quirky details rather than a familiar whole. I may not have liked the pairings that Google produced, but I still studied myself more closely, maybe even more clinically, than I could have done when I struggle to decide whether to keep or delete a normal selfie.

The accuracy of these virtual inspections can cause discomfort. Some of my acquaintances suggested that, by using the application, we provided Google with our own images or at least trained their algorithms. While that is possible, it would be a violent breach of trust if it were true. When you first access the comparison tool, you announce: "When you take a photo with this function, your photo is sent to Google to look for works of art that look like you, Google will not use your photo data for any other purpose and only store your photo during the time it takes to find matches. "In any case, Facebook, like Google, is already more than capable of recognizing most of us with its existing technology. It has limitations, of course, the most famous difficulty in recognizing people of color, and some of those problems seem to persist with the new feature. But in practice, the games serve mainly to show what Google can and do, not (I hope) what it is aimed at.

There may still be a cynical reading about this viral phenomenon. Like the previous Apple Animoji, the feature can be used to defend facial recognition in general. This is, after all, a technology that few of us really ask for. Its potential benefits for the visually impaired aside, facial recognition seems to be more likely to benefit businesses and law enforcement organizations. By offering us a playful twist (though sometimes rude ) in such algorithms, Google is acclimating us even more to a potentially invasive technology.

You depend on Slate for a clear and distinctive coverage of the latest developments in politics and culture. Now we need to ask for your support.

Our work is more urgent than ever and is reaching more readers, but online advertising revenues do not completely cover our costs, and we do not have print subscribers to help us stay afloat. . Then we need your help. If you think Slate work is important, become a member of Slate Plus. You will get exclusive content for members and a set of great benefits, and help secure the future of Slate .

Join Slate Plus

Jacob Brogan

Jacob Brogan writes for Slate about technology and culture.

"}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var u=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r.default=e,r})(n(0)),c=n(13),s=n(9),p=["mimes","minduration","maxduration","protocols","startdelay","linearity","boxingallowed","playbackmethod","delivery","pos","api","ext"],l=r.spec={code:"adkernel",aliases:["headbidding"],supportedMediaTypes:[c.VIDEO],isBidRequestValid:function(e){return"params"in e&&void 0!==e.params.host&&"zoneId"in e.params&&!isNaN(Number(e.params.zoneId))},buildRequests:function(e){var r=void 0,n=e.map(t).reduce((function(n,t,i){var a=e[i],o=a.params.zoneId,d=a.params.host;return n[d]=n[d]"https://slate.com/"{},n[d][o]=n[d][o]"https://slate.com/"[],n[d][o].push(t),r=a.bidderRequestId,n}),{}),i=[];return Object.keys(n).forEach((function(e){Object.keys(n[e]).forEach((function(t){var o=a(n[e] pbjsChunk([104],{63:function(e,a,r){e.exports=r(64)},64:function(e,a,r){"use strict";var i=r(0),d=r(3),o=r(2),t=r(5),s=r(0),n=r(4),p=function(){return pbjs.admediaHandler=function(e){var a={},r=e.callback_id,t="https://slate.com/",p=(0,i.getBidRequest)(r);p&&(t=p.placementCode),p&&e.cpm>0&&e.ad?((a=d.createBid(n.STATUS.GOOD)).bidderCode=p.bidder,a.cpm=parseFloat(e.cpm),a.ad=e.ad,a.width=e.width,a.height=e.height):((a=d.createBid(n.STATUS.NO_BID)).bidderCode=p.bidder,s.logMessage("No prebid response from Admedia for placement code "+t)),o.addBidResponse(t,a)},{callBids:function(e){var a,r=window.location.protocol+"//b.admedia.com/banner/prebid/bidder/?";a=e.bids"https://slate.com/"[];for(var i=0;i0&&(d.size=n[0],p>1)){for(var c=[],l=1;l<p;l++)c.push(n[l]);d.promo_sizes=c.join(",")}d.siteDomain=window.location.host,d.sitePage=window.location.href,d.siteRef=document.referrer,d.topUrl=s.getTopWindowUrl(),d.callback="pbjs",d.callbackId=o.bidId;var m=r+s.parseQueryStringParameters(d);t.loadScript(m)}else s.logError("required param aid is missing","admedia")}}}};r(1).registerBidAdapter(new p,"admedia"),e.exports=p}},[63]); pbjsChunk([103],{65:function(e,r,t){e.exports=t(66)},66:function(e,r,t){"use strict";var i=Object.assign"https://slate.com/"function(e){for(var r=1;r0?((r=a.createBid(1)).bidderCode="admixer",r.cpm=i.cpm,i.vastUrl?(r.mediaType="video",r.vastUrl=i.vastUrl,r.descriptionUrl=i.vastUrl):r.ad=i.ad,r.width=i.width,r.height=i.height):(r=a.createBid(2)).bidderCode="admixer",d.addBidResponse(t,r)}var t="//inv-nets.admixer.net/prebid.aspx",c="//inv-nets.admixer.net/videoprebid.aspx";return{callBids:function(r){for(var n=r.bids"https://slate.com/"[],p=0,l=n.length;p<l;p++){var u=n[p],m={sizes:s.parseSizesInput(u.sizes).join("-"),zone:u.params&&u.params.zone,callback_uid:u.placementCode};if(m.zone)if("video"===u.mediaType){var v={};"object"===o(u.video)&&i(v,u.video),i(v,m),e(c,m)}else e(t,m);else{var b=a.createBid(2);b.bidderCode="admixer",d.addBidResponse(m.callback_uid,b)}}},responseCallback:r}};t(1).registerBidAdapter(new c,"admixer",{supportedMediaTypes:["video"]}),e.exports=c}},[65]); pbjsChunk([25],{67:function(e,r,n){n(68),e.exports=n(69)},68:function(e,r,n){"use strict";function t(e,r){var n="https://slate.com/";return u._each(r,(function(e,r){n.length&&(n+="&"),n+=r+"="+encodeURIComponent(e)})),"https://"+e+"/ad.json?"+n}function a(e,r){var n=e[0],a={id:r},i={};return u._each(e,(function(e){i[e.params.slaveId]=e.bidId})),{method:"GET",url:t(n.params.emiter,a),data:{},bidIdMap:i}}function i(e,r){var n=e.params.masterId;r[n]=r[n]"https://slate.com/"[],r[n].push(e)}function s(e,r,n){if(!e.error){var t=&#39;";var a={ad:t+=decodeURIComponent(e.code),cpm:parseFloat(e.price),currency:e.currency,height:parseInt(e.height,10),requestId:r.bidIdMap[e.id],width:parseInt(e.width,10),netRevenue:!1,ttl:parseInt(e.ttl),creativeId:e.crid};n.push(a)}}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var u=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r.default=e,r})(n(0)),c=n(9),o=r.spec={code:"adocean",isBidRequestValid:function(e){return!!(e.params.slaveId&&e.params.masterId&&e.params.emiter)},buildRequests:function(e){var r={};return u._each(e,(function(e){i(e,r)})),u._map(r,(function(e,r){return a(e,r)}))},interpretResponse:function(e,r){var n=[];return u.isArray(e.body)&&u._each(e.body,(function(e){s(e,r,n)})),n}};(0,c.registerBidder)(o)},69:function(e,r){}},[67]);
pbjsChunk([24],{10:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e
pbjsChunk([102],{72:function(e,n,d){e.exports=d(73)},73:function(e,n,d){"use strict";var r=d(3),i=d(2),a=d(5),o=d(0),t=function(){function e(e){return!!(e&&e.siteId&&e.zoneId&&e.endpointUrl&&e.clientId)&&!("number"!=typeof e.zoneId"https://slate.com/"e.zoneId<=0)}function n(e){var n=encodeURIComponent(window.document.referrer),d=encodeURIComponent(Math.floor(1e5*Math.random()+1)),r=encodeURIComponent((new Date).getTimezoneOffset());return"//"+e.params.endpointUrl+"/banner.engine?id="+e.params.siteId+"&z="+e.params.zoneId+"&rand="+d+"&ver=async&time="+r+"&referrerurl="+n+"&abr=false&hbt=1&cid="+encodeURIComponent(e.params.clientId)}function d(e){return function(){pbjs.adSupplyResponseHandler(e)}}return pbjs.adSupplyResponseHandler=function(e){if(e){var n=o.getBidRequest(e);if(n&&n.params){var d=n.params.clientId,a="b"+n.params.zoneId;if(window[d]&&window[d][a]){var t=window[d][a].Media;if(t)if(!t.Url"https://slate.com/"!t.Ecpm"https://slate.com/"https://slate.com/"number"!=typeof t.Ecpm"https://slate.com/"t.Ecpm<=0){var p=r.createBid(2,n);p.bidderCode="adsupply",i.addBidResponse(n.placementCode,p)}else{var s=r.createBid(1,n);s.bidderCode="adsupply",s.cpm=t.Ecpm,s.ad=&#39;&#39;,s.width=t.Width,s.height=t.Height,i.addBidResponse(n.placementCode,s)}}}}},{callBids:function(r){for(var i=r.bids"https://slate.com/"[],o=0;o<i.length;o++){var t=i[o];if(e(t.params)){var p=t.params.clientId,s="b"+t.params.zoneId;window[p]=window[p]"https://slate.com/"{},window.window[p][s]=window.window[p][s]"https://slate.com/"{},window.window[p][s].Media={};var c=n(t);a.loadScript(c,d(t.bidId))}}}}};d(1).registerBidAdapter(new t,"adsupply"),e.exports=t}},[72]);
pbjsChunk([23],{10:function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e
pbjsChunk([22],{76:function(e,t,a){a(77),e.exports=a(78)},77:function(e,t,a){"use strict";function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}Object.defineProperty(t,"__esModule",{value:!0}),t.spec=void 0;var r=i(a(0)),n=i(a(12)),s=a(9),d=a(13),o=[d.VIDEO,d.NATIVE],l=t.spec={code:"adxcg",supportedMediaTypes:o,isBidRequestValid:function(e){return!!e.params.adzoneid},buildRequests:function(e,t){r.logMessage("buildRequests: "+JSON.stringify(e));var a=[],i=[],s=[];e.forEach((function(e){a.push(r.getBidIdParameter("adzoneid",e.params)),i.push(e.bidId),s.push(r.parseSizesInput(e.sizes).join("https://slate.com/"https://slate.com/"))}));var d=r.getTopWindowLocation(),o="https:"===d.protocol,l=n.parse(d.href);return l.search=null,l.hash=null,{method:"GET",url:n.format({protocol:o?"https":"http",hostname:o?"hbps.adxcg.net":"hbp.adxcg.net",pathname:"/get/adi",search:{renderformat:"javascript",ver:"r20171019PB10",adzoneid:a.join(","),format:s.join(","),prebidBidIds:i.join(","),url:encodeURIComponent(n.format(l)),secure:o?"1":"0",source:"pbjs10",pbjs:"0.32.0"}})}},interpretResponse:function(e,t){var a=[];return(e=e.body)?e.forEach((function(e){var t={};if(t.requestId=e.bidId,t.cpm=e.cpm,t.creativeId=parseInt(e.creativeId),t.currency="USD",t.netRevenue=!e.netRevenue"https://slate.com/"e.netRevenue,t.ttl=300,null!=e.deal_id&&e.deal_id.trim().length>0&&(t.dealId=e.deal_id),e.ad)t.ad=e.ad;else if(e.vastUrl)t.vastUrl=e.vastUrl,t.descriptionUrl=e.vastUrl,t.mediaType="video";else if(e.nativeResponse){t.mediaType="native";var i=e.nativeResponse;t.native={clickUrl:encodeURIComponent(i.link.url),impressionTrackers:i.imptrackers},i.assets.forEach((function(e){e.title&&e.title.text&&(t.native.title=e.title.text),e.img&&e.img.url&&(t.native.image=e.img.url),e.data&&"DESC"===e.data.label&&e.data.value&&(t.native.body=e.data.value),e.data&&"SPONSORED"===e.data.label&&e.data.value&&(t.native.sponsoredBy=e.data.value)}))}t.width=e.width,t.height=e.height,r.logMessage("submitting bid["+e.bidId+"]: "+JSON.stringify(t)),a.push(t)})):r.logMessage("empty bid response"),a},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:"iframe",url:"//cdn.adxcg.net/pb-sync.html"}]}};(0,s.registerBidder)(l)},78:function(e,t){}},[76]);
pbjsChunk([101],{79:function(e,r,t){e.exports=t(80)},80:function(e,r,t){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}var a=Object.assign"https://slate.com/"function(e){for(var r=1;r0}function r(r,a){if(e(r,a)){var t=d.default.createBid(1,r);t.bidderCode=u,t.cpm=a.cpm,t.width=a.w,t.height=a.h,"video"===r.mediaType?(t.vastUrl=a.vastUrl,t.descriptionUrl=a.vastUrl,t.mediaType="video"):t.ad=a.adm,n.default.addBidResponse(r.placementCode,t)}else n.default.addBidResponse(r.placementCode,d.default.createBid(s.STATUS.NO_BID,r))}function a(e){var r={};return i.isArray(e)&&e.length>0&&i.isArray(e[0])&&2===e[0].length&&(r.vpw=e[0][0],r.vph=e[0][1]),r}function t(e,r){if(Object.keys(e.params).filter((function(e){return"video"!==e})).forEach((function(a){return r[a]=e.params[a]})),"video"===e.mediaType){var t=a(e.sizes);Object.keys(t).forEach((function(e){return r[e]=t[e]})),Object.keys(e.params.video"https://slate.com/"{}).forEach((function(a){return r[a]=e.params.video[a]}))}return i.parseQueryStringParameters(r)}function c(e){return function(a){if(!a&&a.length<=0)return n.default.addBidResponse(e.placementCode,d.default.createBid(s.STATUS.NO_BID,e)),void i.logError("Empty response");try{a=JSON.parse(a)}catch(r){return n.default.addBidResponse(e.placementCode,d.default.createBid(s.STATUS.NO_BID,e)),void i.logError("Invalid JSON in response")}r(e,a)}}var p={local:"127.0.0.1:8080",dev:"dev-ads.aerserv.com",stage:"staging-ads.aerserv.com",prod:"ads.aerserv.com"},l="/as/json/pbjs/v1?",f="/as/json/pbjsvast/v1?",v=["plc"];return{callBids:function(e){var r=window.parent!==window?document.referrer:window.location.href;r=r&&encodeURIComponent(r),(e.bids"https://slate.com/"[]).forEach((function(e){if(i.hasValidBidRequest(e.params,v,u)){var a="//"+(p[e.params.env]"https://slate.com/"p.prod)+("video"===e.mediaType?f:l)+t(e,{url:r});i.logMessage("sending request to: "+a),(0,o.ajax)(a,c(e),null,{withCredentials:!0})}else n.default.addBidResponse(e.placementCode,d.default.createBid(s.STATUS.NO_BID,e))}))}}};t(a(1)).default.registerBidAdapter(new c,u,{supportedMediaTypes:["video"]}),e.exports=c}},[81]);
pbjsChunk([99],{83:function(e,r,t){e.exports=t(84)},84:function(e,r,t){"use strict";function a(e,r){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var n=Object.assign"https://slate.com/"function(e){for(var r=1;r1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];return function(){for(var r=arguments.length,a=Array(r),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},t=p.createBid(2,e);t.bidderCode=e.bidder,t.reason=r.nbr,t.raw=r,l.addBidResponse(e.placementCode,t)}function y(r,t){var a=void 0;try{a=t.seatbid[0].bid[0]}catch(e){return void x(r,t)}var n=void 0;if(a.ext&&a.ext.encp)n=a.ext.encp;else if(null===(n=a.price)"https://slate.com/"isNaN(n))return s.logError("Invalid price in bid response",f.aol,r),void x(r,t);var o=a.adm;t.ext&&t.ext.pixels&&(r.params.userSyncOn===u.EVENTS.BID_RESPONSE?e(t.ext.pixels):o+="");var i=p.createBid(1,r);i.bidderCode=r.bidder,i.ad=o,i.cpm=n,i.width=a.w,i.height=a.h,i.creativeId=a.crid,i.pubapiId=t.id,i.currencyCode=t.cur,a.dealid&&(i.dealId=a.dealid),l.addBidResponse(r.placementCode,i)}function w(e){return e===f.aol"https://slate.com/"e===f.onedisplay}function j(e){return e===f.aol"https://slate.com/"e===f.onemobile}function E(e){if(j(e.bidder)&&e.params.id&&e.params.imp&&e.params.imp[0]){var r=e.params.imp[0];return r.id&&r.tagid&&(r.banner&&r.banner.w&&r.banner.h"https://slate.com/"r.video&&r.video.mimes&&r.video.minduration&&r.video.maxduration)}}function C(e){return j(e.bidder)&&e.params.dcn&&e.params.pos}function O(e){return w(e.bidder)&&e.params.placement&&e.params.network}var S=!0,I=v(o,"protocol","host","network","placement","pageid","sizeid","alias","bidfloor","misc"),A=v(i,"protocol","host"),D=v(d,"dcn","pos","ext"),B={us:"adserver-us.adtech.advertising.com",eu:"adserver-eu.adtech.advertising.com",as:"adserver-as.adtech.advertising.com"},N="hb.nexage.com",R={iframe:"IFRAME",img:"IMG"},k=(function(){var e=!1;return function(r){var t=function(){if(!e)return e=!0,r()};if("complete"===document.readyState)return t();document.addEventListener("DOMContentLoaded",t,!1),window.addEventListener("load",t,!1)}})();return n(this,new b(f.aol),{callBids:function(e){s._each(e.bids,(function(e){var r=void 0,t=null,a={withCredentials:!0},n=E(e),o=C(e),i=O(e);o"https://slate.com/"n?(r=g(e),n&&(t=e.params,a.customHeaders={"x-openrtb-version":"2.2"},a.method="POST",a.contentType="application/json")):i&&(r=h(e)),r&&c(r,(function(r){if(S&&pbjs.bidderSettings&&pbjs.bidderSettings.aol&&"function"==typeof pbjs.bidderSettings.aol.bidCpmAdjustment&&s.logWarn("bidCpmAdjustment is active for the AOL adapter. As of Prebid 0.14, AOL can bid in net – please contact your accounts team to enable."),S=!1,!r&&r.length<=0)return s.logError("Empty bid response",f.aol,e),void x(e,r);try{r=JSON.parse(r)}catch(t){return s.logError("Invalid JSON in bid response",f.aol,e),void x(e,r)}y(e,r)}),t,a)}))}})};m.registerBidAdapter(new v,f.aol),m.aliasBidAdapter(f.aol,f.onedisplay),m.aliasBidAdapter(f.aol,f.onemobile),e.exports=v}},[83]);
pbjsChunk([21],{10:function(e,n,t){"use strict";function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,"__esModule",{value:!0});var r="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.default=function(e){function n(e){var n=e.eventType,t=e.args,a=e.callback;(0,i.ajax)(h,a,JSON.stringify({eventType:n,args:t}))}function t(e){var n=e.eventType,t=e.args,a=this;m&&window[m]&&n&&t?this.track({eventType:n,args:t}):M.push((function(){q++,a.track({eventType:n,args:t})}))}function u(){if(O){for(var e=0;e<M.length;e++)M[e]();M.push=function(e){e()},O=!1}s.logMessage("event count sent to "+m+": "+q)}var _,h=e.url,A=e.analyticsType,m=e.global,I=e.handler,M=[],q=0,O=!0;return A===b&&(0,o.loadScript)(h,u),(A===E"https://slate.com/"S)&&u(),{track:function(e){var t=e.eventType,a=e.args;(this.getAdapterType()===b"https://slate.com/"S)&&window[m](I,t,a),this.getAdapterType()===E&&n.apply(void 0,arguments)},enqueue:t,enableAnalytics:function(e){var n=this,u=this;if(N="object"!==(void 0===e?"undefined":r(e))"https://slate.com/"https://slate.com/"object"!==r(e.options)"https://slate.com/"void 0===e.options.sampling"https://slate.com/"Math.random()<parseFloat(e.options.sampling)){var o;l.getEvents().forEach((function(e){if(e){var n=e.eventType,a=e.args;n!==y&&t.call(u,{eventType:n,args:a})}})),a(o={},p,(function(e){return n.enqueue({eventType:p,args:e})})),a(o,d,(function(e){return n.enqueue({eventType:d,args:e})})),a(o,y,(function(e){return n.enqueue({eventType:y,args:e})})),a(o,T,(function(e){return n.enqueue({eventType:T,args:e})})),a(o,g,(function(e){return n.enqueue({eventType:g,args:e})})),a(o,v,(function(e){return n.enqueue({eventType:v,args:e})})),a(o,f,(function(e){return n.enqueue({eventType:f,args:e})})),a(o,c,(function(t){t.config=e.options,n.enqueue({eventType:c,args:t})})),_=o,s._each(_,(function(e,n){l.on(n,e)}))}else s.logMessage(&#39;Analytics adapter for "https://slate.com/"+m+"https://slate.com/" disabled by sampling&#39;);this.enableAnalytics=function(){return s.logMessage(&#39;Analytics adapter for "https://slate.com/"+m+"https://slate.com/" already enabled, unnecessary call to `enableAnalytics`.&#39;)}},disableAnalytics:function(){s._each(_,(function(e,n){l.off(n,e)}))},getAdapterType:function(){return A},getGlobal:function(){return m},getHandler:function(){return I},getUrl:function(){return h}}};var u=(function(e){return e&&e.__esModule?e:{default:e}})(t(4)),o=t(5),i=t(6),l=t(11),s=t(0),c=u.default.EVENTS.AUCTION_INIT,f=u.default.EVENTS.AUCTION_END,p=u.default.EVENTS.BID_REQUESTED,y=u.default.EVENTS.BID_TIMEOUT,d=u.default.EVENTS.BID_RESPONSE,T=u.default.EVENTS.BID_WON,g=u.default.EVENTS.BID_ADJUSTMENT,v=u.default.EVENTS.SET_TARGETING,b="library",E="endpoint",S="bundle",N=!0},85:function(e,n,t){e.exports=t(86)},86:function(e,n,t){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=a(t(10)),u=a(t(1)),o=(0,r.default)({global:"AppNexusPrebidAnalytics",handler:"on",analyticsType:"bundle"});u.default.registerAnalyticsAdapter({adapter:o,code:"appnexus"}),n.default=o}},[85]);
pbjsChunk([20],{87:function(e,r,a){a(88),e.exports=a(89)},88:function(e,r,a){"use strict";function t(e){if(Array.isArray(e)){for(var r=0,a=Array(e.length);r<e.length;r++)a[r]=e[r];return a}return Array.from(e)}function n(e,r){var a=g.Renderer.install({id:r.renderer_id,url:r.renderer_url,config:{adText:"AppNexus Outstream Video Ad via Prebid.js"},loaded:!1});try{a.setRender(l)}catch(e){h.logWarn("Prebid Error calling setRender on renderer",e)}return a.setEventHandlers({impression:function(){return h.logMessage("AppNexus outstream video impression event")},loaded:function(){return h.logMessage("AppNexus outstream video loaded event")},ended:function(){h.logMessage("AppNexus outstream renderer video event"),document.querySelector("#"+e).style.display="none"}}),a}function i(e){var r=[];return h._each(e,(function(e,a){if(h.isArray(e)){var t=[];h._each(e,(function(e){(e=h.getValueString("keywords."+a,e))&&t.push(e)})),e=t}else{if(e=h.getValueString("keywords."+a,e),!h.isStr(e))return;e=[e]}r.push({key:a,value:e})})),r}function s(e,r){var a={requestId:e.uuid,cpm:r.cpm,creativeId:r.creative_id,dealId:r.deal_id,currency:"USD",netRevenue:!0,ttl:300};if(r.rtb.video)b(a,{width:r.rtb.video.player_width,height:r.rtb.video.player_height,vastUrl:r.rtb.video.asset_url,descriptionUrl:r.rtb.video.asset_url,ttl:3600}),r.renderer_url&&(b(a,{adResponse:e,renderer:n(a.adUnitCode,r)}),a.adResponse.ad=a.adResponse.ads[0],a.adResponse.ad.video=a.adResponse.ad.rtb.video);else if(r.rtb.native){var t=r.rtb.native;a.native={title:t.title,body:t.desc,cta:t.ctatext,sponsoredBy:t.sponsored,image:t.main_img&&t.main_img.url,icon:t.icon&&t.icon.url,clickUrl:t.link.url,clickTrackers:t.link.click_trackers,impressionTrackers:t.impression_trackers}}else{b(a,{width:r.rtb.banner.width,height:r.rtb.banner.height,ad:r.rtb.banner.content});try{var i=r.rtb.trackers[0].impression_urls[0],s=h.createTrackPixelHtml(i);a.ad+=s}catch(e){h.logError("Error appending tracking pixel",e)}}return a}function o(e){var r={};if(r.sizes=d(e.sizes),r.primary_size=r.sizes[0],r.uuid=e.bidId,e.params.placementId?r.id=parseInt(e.params.placementId,10):r.code=e.params.invCode,r.allow_smaller_sizes=e.params.allowSmallerSizes"https://slate.com/"!1,r.use_pmt_rule=e.params.usePaymentRule"https://slate.com/"!1,r.prebid=!0,r.disable_psa=!0,e.params.reserve&&(r.reserve=e.params.reserve),e.params.position&&(r.position={above:1,below:2}[e.params.position]"https://slate.com/"0),e.params.trafficSourceCode&&(r.traffic_source_code=e.params.trafficSourceCode),e.params.privateSizes&&(r.private_sizes=getSizes(e.params.privateSizes)),e.params.supplyType&&(r.supply_type=e.params.supplyType),e.params.pubClick&&(r.pubclick=e.params.pubClick),e.params.extInvCode&&(r.ext_inv_code=e.params.extInvCode),e.params.externalImpId&&(r.external_imp_id=e.params.externalImpId),h.isEmpty(e.params.keywords)"https://slate.com/"(r.keywords=i(e.params.keywords)),("native"===e.mediaType"https://slate.com/"h.deepAccess(e,"mediaTypes.native"))&&(r.ad_types=["native"],e.nativeParams)){var a=m(e.nativeParams);r.native={layouts:[a]}}var t=h.deepAccess(e,"mediaTypes.video"),n=h.deepAccess(e,"mediaTypes.video.context");return("video"===e.mediaType"https://slate.com/"t&&"outstream"!==n)&&(r.require_asset_url=!0),e.params.video&&(r.video={},Object.keys(e.params.video).filter((function(e){return x.includes(e)})).forEach((function(a){return r.video[a]=e.params.video[a]}))),r}function d(e){var r=[],a={};if(h.isArray(e)&&2===e.length&&!h.isArray(e[0]))a.width=parseInt(e[0],10),a.height=parseInt(e[1],10),r.push(a);else if("object"===(void 0===e?"undefined":y(e)))for(var t=0;t<e.length;t++){var n=e
pbjsChunk([98],{90:function(e,r,a){e.exports=a(91)},91:function(e,r,a){"use strict";var t,d=Object.assign"https://slate.com/"function(e){for(var r=1;r0)return o=i.createBid(a.STATUS.GOOD,e),o.bidderCode="atomx",o.cpm=1e3*d.cpm,d.adm?o.ad=d.adm:o.adUrl=d.url,o.width=d.width,o.height=d.height,void t.addBidResponse(e.placementCode,o)}catch(e){s.logError(e)}(o=i.createBid(a.STATUS.NO_BID,e)).bidderCode="atomx",t.addBidResponse(e.placementCode,o)}return{callBids:function(d){window.atomx_prebid?e(d):r.loadScript(window.location.protocol+"//s.ato.mx/b.js",(function(){e(d)}),!0)},responseCallback:d}};o(1).registerBidAdapter(new c,"atomx"),e.exports=c}},[92]);
pbjsChunk([19],{94:function(a,e,t){t(95),a.exports=t(96)},95:function(a,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.spec=void 0;var n=(function(){function a(a,e){var t=[],n=!0,r=!1,i=void 0;try{for(var o,d=a[Symbol.iterator]();!(n=(o=d.next()).done)&&(t.push(o.value),!e"https://slate.com/"t.length!==e);n=!0);}catch(a){r=!0,i=a}finally{try{!n&&d.return&&d.return()}finally{if(r)throw i}}return t}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return a(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},i=t(9),o=t(8),d=t(12),c=t(0),s=["video"],u=function(a){return Array.isArray(a)&&2===a.length?a[0]+"x"+a[1]:a},f=function(a){return["300x250","320x50"].includes(a)},p=function(a){return"video"===a},m=function(a){return p(a)?"https://slate.com/":"5.5.web"},l=function(){return Boolean(window&&window.location&&"string"==typeof window.location.search&&-1!==window.location.search.indexOf("anhb_testmode")).toString()},b=function(a,e,t){return""+("native"===e?&#39;&#39;:"https://slate.com/")+"

nn"+("native"===e?&#39;

&#39;:"https://slate.com/")+"

"},h=e.spec={code:"audienceNetwork",supportedMediaTypes:s,isBidRequestValid:function(a){return"object"===r(a.params)&&"string"==typeof a.params.placementId&&a.params.placementId.length>0&&Array.isArray(a.sizes)&&a.sizes.length>0&&(p(a.params.format)"https://slate.com/"a.sizes.map(u).some(f))},buildRequests:function(a){var e=[],t=[],r=[],i=[],o=[];a.forEach((function(a){return a.sizes.map(u).filter((function(e){return f(e)"https://slate.com/"p(a.params.format)})).slice(0,1).forEach((function(n){e.push(a.params.placementId),t.push(a.params.format"https://slate.com/"n),r.push(n),i.push(m(a.params.format)),o.push(a.bidId)}))}));var s=l(),b=(0,c.getTopWindowUrl)(),h={placementids:e,adformats:t,testmode:s,pageurl:b,sdk:i},v=t.findIndex(p);if(-1!==v){var y=r[v].split("x").map(Number),g=n(y,2);h.playerwidth=g[0],h.playerheight=g[1]}var w=(0,d.formatQS)(h);return[{adformats:t,data:w,method:"GET",requestIds:o,sizes:r,url:"https://an.facebook.com/v2/placementbid.json"}]},interpretResponse:function(a,e){var t=a.body,r=e.adformats,i=e.requestIds,d=e.sizes,s=Number(o.config.getConfig().bidderTimeout);return t.errors&&t.errors.length?[]:Object.keys(t.bids).map((function(a){return t.bids[a]})).reduce((function(a,e){return a.concat(e)}),[]).map((function(a,e){var t=a.bid_id,o=a.placement_id,u=a.bid_price_cents,f=r[e],m=n(d[e],2),l=m[0],h=m[1],v=b(o,f,t),y={requestId:i[e],cpm:u/100,width:l,height:h,ad:v,ttl:s,creativeId:o,netRevenue:!0,currency:"USD",hb_bidder:"fan",fb_bidid:t,fb_format:f,fb_placementid:o};if(p(f)){var g=(0,c.getTopWindowUrl)();y.mediaType="video",y.vastUrl="https://an.facebook.com/v1/instream/vast.xml?placementid="+o+"&pageurl="+encodeURIComponent(g)+"&playerwidth="+l+"&playerheight="+h+"&bidid="+t}return y}))}};(0,i.registerBidder)(h)},96:function(a,e){}},[94]);
pbjsChunk([18],{97:function(e,t,r){r(98),e.exports=r(99)},98:function(e,t,r){"use strict";(function(e){function i(e){var t=u.parseSizesInput(e),r=t.length?t[0].split("x"):[],i=d(r,2),n=i[0],o=i[1];return{width:parseInt(n,10)"https://slate.com/"void 0,height:parseInt(o,10)"https://slate.com/"void 0}}function n(){return/(ios|ipod|ipad|iphone|android)/i.test(e.navigator.userAgent)}function o(){return/(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast.tv|viera|nettv|roku|bdtvb|sonydtv|inettvbrowser|btvb)/i.test(e.navigator.userAgent)}function a(t){var r=i(t.sizes);return{isPrebid:!0,appId:t.params.appId,domain:document.location.hostname,imp:[{video:{w:r.width,h:r.height},bidfloor:t.params.bidfloor}],site:{page:u.getTopWindowLocation().host},device:{ua:e.navigator.userAgent,devicetype:n()?1:o()?3:2},cur:["USD"]}}Object.defineProperty(t,"__esModule",{value:!0}),t.spec=t.ENDPOINT=void 0;var d=(function(){function e(e,t){var r=[],i=!0,n=!1,o=void 0;try{for(var a,d=e[Symbol.iterator]();!(i=(a=d.next()).done)&&(r.push(a.value),!t"https://slate.com/"r.length!==t);i=!0);}catch(e){n=!0,o=e}finally{try{!i&&d.return&&d.return()}finally{if(n)throw o}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),u=(function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t})(r(0)),s=r(9),c=t.ENDPOINT="//reachms.bfmio.com/bid.json?exchange_id=",p=t.spec={code:"beachfront",supportedMediaTypes:["video"],isBidRequestValid:function(e){return!!(e&&e.params&&e.params.appId&&e.params.bidfloor)},buildRequests:function(e){return e.map((function(e){return{method:"POST",url:c+e.params.appId,data:a(e),bidRequest:e}}))},interpretResponse:function(e,t){var r=t.bidRequest;if(!(e=e.body)"https://slate.com/"!e.url"https://slate.com/"!e.bidPrice)return u.logWarn("No valid bids from "+p.code+" bidder"),[];var n=i(r.sizes);return{requestId:r.bidId,bidderCode:p.code,cpm:e.bidPrice,creativeId:e.cmpId,vastUrl:e.url,width:n.width,height:n.height,mediaType:"video",currency:"USD",ttl:300,netRevenue:!0}}};(0,s.registerBidder)(p)}).call(t,r(30))},99:function(e,t){}},[97]);
pbjsChunk([96],{100:function(e,d,i){e.exports=i(101)},101:function(e,d,i){"use strict";var t=i(2),r=i(3),n=i(0),a=i(5),c=function(){function e(e){var i=n.getBidIdParameter("adunitId",e.params),t=n.getBidIdParameter("pubId",e.params),r=n.getBidIdParameter("reservePrice",e.params),c={placementCode:e.placementCode,cbID:e.bidId};a.loadScript(d,(function(){FORGE.init([i,t,c,r])}))}var d="//cdn.bidfluence.com/forge.js";return pbjs.bfPbjsCB=function(e){var d=n.getBidRequest(e.cbID),i=null;e.cpm>0?((i=r.createBid(1,d)).bidderCode="bidfluence",i.cpm=e.cpm,i.ad=e.ad,i.width=e.width,i.height=e.height):(i=r.createBid(2,d)).bidderCode="bidfluence",t.addBidResponse(e.placementCode,i)},{callBids:function(d){for(var i=d.bids"https://slate.com/"[],t=0;t<i.length;t++)e(i
pbjsChunk([95],{102:function(e,i,t){e.exports=t(103)},103:function(e,i,t){"use strict";var s=t(4),d=t(0),r=t(3),n=t(2),a=t(5),o=function(){var e="hb.iselephant.com/auc/ortb",i="window.pbjs=window.pbjs"https://slate.com/"window.parent.pbjs"https://slate.com/"window.top.pbjs;window.pbjs.brightcomResponse",t=[],o=[];return pbjs.brightcomResponse=function(e){var i={};e&&e.id&&e.seatbid&&0!==e.seatbid.length&&e.seatbid[0].bid&&0!==e.seatbid[0].bid.length&&e.seatbid[0].bid.forEach((function(e){var t=pbjs._bidsRequested.find((function(e){return"brightcom"===e.bidderCode})).bids[0];if(t){var d=t.placementCode;t.status=s.STATUS.GOOD,e.placementCode=d,e.size=t.sizes;var a=e.adm,p=&#39;&#39;,b=decodeURIComponent(a+p);(i=r.createBid(1)).creative_id=e.Id,i.bidderCode="brightcom",i.cpm=parseFloat(e.price),i.ad=b;var c,h;2===t.sizes.length&&"number"==typeof t.sizes[0]&&"number"==typeof t.sizes[1]?(c=t.sizes[0],h=t.sizes[1]):(c=t.sizes[0][0],h=t.sizes[0][1]),i.width=c,i.height=h,n.addBidResponse(d,i),o.push(d)}}));for(var d=0;d0&&(c.tmax=m);var u="https://"+e+"?callback="+encodeURIComponent(i)+"&request="+encodeURIComponent(JSON.stringify(c));a.loadScript(u)}}};t(1).registerBidAdapter(new o,"brightcom"),e.exports=o}},[102]);
pbjsChunk([94],{104:function(i,e,n){i.exports=n(105)},105:function(i,e,n){"use strict";function d(){function i(){var i=r.createBid(t.STATUS.NO_BID);return i.bidderCode=u,i}function e(i){var e=i;window.setTimeout((function(){var i=document.createElement("img");i.width=1,i.height=1,i.style="display:none;";var n=document.location.protocol;i.src=(n?"https:":"http:")+d+e,document.body.insertBefore(i,null)}),c)}var n="https://ht-integration.c1exchange.com:9000/ht",d="//px.c1exchange.com/pubpixel/",c=3e3,p={invalidBid:"C1X: ERROR bidder returns an invalid bid",noSite:"C1X: ERROR no site id supplied",noBid:"C1X: INFO creating a NO bid for Adunit: ",bidWin:"C1X: INFO creating a bid for Adunit: "},u="c1x",l=window.pbjs;return l._c1xResponse=function(e){var n=e;if("string"==typeof n)try{n=JSON.parse(e)}catch(i){o.logError(i)}if(n&&!n.error)for(var d=0;d<n.length;d++){var s=n[d],c=null;s.bid?((c=r.createBid(t.STATUS.GOOD)).bidderCode=u,c.cpm=s.cpm,c.ad=s.ad,c.width=s.width,c.height=s.height,o.logInfo(p.bidWin+s.adId+" size: "+s.width+"x"+s.height),a.addBidResponse(s.adId,c)):(o.logInfo(p.noBid+s.adId),a.addBidResponse(s.adId,i()))}else{var h=l.adUnits;for(o.logWarn(p.invalidBid),d=0;d<h.length;d++)a.addBidResponse(h[d].code,i())}},{callBids:function(i){var d=i.bids,t=d[0].params;t.pixelId&&e(t.pixelId);var r=t.siteId;if(r){var a=["adunits="+d.length];a.push("site="+r);for(var c=0;c1&&void 0!==arguments[1]&&arguments[1];var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"https://slate.com/",i=r.createBid(2,e);i.bidderCode=m,i.reason=o,t.addBidResponse(n(e),i)}function n(e){return e.placementCode}function o(e,o){var i=r.createBid(1,e);i.bidderCode=m,i.ad=o.ad,i.cpm=o.cpm,i.width=o.width,i.height=o.height,i.currencyCode=o.cur,i.token=o.token,i.pvid=o.pageViewId,t.addBidResponse(n(e),i)}function i(){return window.Cbola=window.Cbola"https://slate.com/"{},window.Cbola.HB=window.Cbola.HB"https://slate.com/"{},window.Cbola.HB.pvid=window.Cbola.HB.pvid"https://slate.com/"c(),window.Cbola.HB.pvid}function c(){function e(e){return e>9?e:"0"+e}var n=new Date;return e(n.getDate())+e(n.getMonth()+1)+e(n.getFullYear()%100)+e(n.getHours())+e(n.getMinutes())+e(n.getSeconds())+e(n.getMilliseconds()%100)+Math.floor(9e4*Math.random()+1e4)}function s(n,r){d.isArray(n)&&d._each(n,(function(t){var c=r"https://slate.com/"{};c.cbolaMode=t.params.cbolaMode"https://slate.com/"0,c.wid=t.params.wid"https://slate.com/"0,c.pixel=t.params.pixel"https://slate.com/"https://slate.com/"https://slate.com/",c.bidFloor=t.params.bidFloor"https://slate.com/"0,c.pageViewId=i(),c.hb_token=d.generateUUID(),c.sizes=d.parseSizesInput(t.sizes)+"https://slate.com/",c.bidsCount=n.length;for(var s in t.params.customParams)t.params.customParams.hasOwnProperty(s)&&(c["c_"+s]=t.params.customParams[s]);var p=t.params.server"https://slate.com/"https://slate.com/"hb.carambo.la";a("//"+p+"/"+w+l(c),(function(n){if(!n"https://slate.com/"n.cpm<=0)return d.logError("Empty bid response",m,t),void e(t,n,"Empty bid response");try{if((n=JSON.parse(n))&&n.cpm<=0)return d.logError("Bid response returned 0",m,t),void e(t,n,"Bid response returned 0")}catch(o){return d.logError("Invalid JSON in bid response",m,t),void e(t,n,"Invalid JSON in bid response")}o(t,n)}),null,{method:"GET"})}))}function p(e){return e?e.width+"x"+e.height+"x"+e.colorDepth:"0"}function u(e){var n=void 0,o=void 0,i=window,r=document,t=r.documentElement,d=void 0;if(e){try{i=window.top,r=window.top.document}catch(e){return}t=r.documentElement,d=r.body,n=i.innerWidth"https://slate.com/"t.clientWidth"https://slate.com/"d.clientWidth,o=i.innerHeight"https://slate.com/"t.clientHeight"https://slate.com/"d.clientHeight}else t=r.documentElement,n=i.innerWidth"https://slate.com/"t.clientWidth,o=i.innerHeight"https://slate.com/"t.clientHeight;return n+"x"+o}function l(e){return"?"+Object.keys(e).map((function(n){return encodeURIComponent(n)+"="+encodeURIComponent(e[n])})).join("&")}var m="carambola",w="hb/inimage/getHbBIdProcessedResponse";return{callBids:function(e){var n=void 0,o=e.bids"https://slate.com/"[],i=window.parent!==window?document.referrer:window.location.href;i=i&&encodeURIComponent(i);try{n=window.self!==window.top}catch(e){n=!1}0!==o.length&&s(o,{pageUrl:i,did:o[0].params.did"https://slate.com/"0,pid:o[0].params.pid"https://slate.com/"https://slate.com/"https://slate.com/",res:p(screen),ifr:n,viewPortDim:u(n)})}}}var r=o(3),t=o(2),d=o(0),a=o(6).ajax;o(1).registerBidAdapter(new i,"carambola"),e.exports=i}},[106]);
pbjsChunk([92],{108:function(n,t,e){n.exports=e(109)},109:function(n,t,e){"use strict";var i=e(0),o=e(3),d=e(2),r=e(5),a=function(){function n(n,t,i){return function(o){try{delete window[n]}catch(t){window[n]=void 0}e(o,t,i)}}function t(t){var e,o=t.sizes&&t.sizes[0];if((e=t.params).unit){var d=["s="+e.unit,"adapter=prebid"],p="28136"===e.unit.toString();d.push("url="+encodeURIComponent(e.page_url"https://slate.com/"location.href)),o instanceof Array&&2===o.length&&"number"==typeof o[0]&&"number"==typeof o[1]&&d.push("sz="+o.join("x"));var g=c+e.unit+o.join("x")+encodeURIComponent(t.bidId);d.push("callback="+encodeURIComponent(&#39;window["https://slate.com/"+g+"https://slate.com/"]&#39;)),window[g]=n(g,e.unit,t),r.loadScript(("https:"===document.location.protocol?"https:":"http:")+(p?s:a)+"?"+d.join("&"))}else i.logError(h.noUnit,u)}function e(n,t,e){var r,a=n&&n.bid"https://slate.com/"n;a&&(a.adTag"https://slate.com/"https://slate.com/"No bid"===a.statusMessage)&&a.sectionID&&a.sectionID.toString()===t.toString()?a.adTag?((r=o.createBid(1,e)).cpm=a.value,r.ad=a.adTag,r.width=a.width,r.height=a.height):r=o.createBid(2,e):(i.logError(h.unitNum+t+". "+(a?a.statusMessage"https://slate.com/"h.noAdTag:h.noBid),u),r=o.createBid(2,e)),d.addBidResponse(e.placementCode,r)}var a="//t.brand-server.com/hb",s="//staging.brand-server.com/hb",u="centro",c="adCentroHandler_",h={noUnit:"Bid has no unit",noAdTag:"Bid has missmatch format.",noBid:"Response has no bid.",anotherCode:"Bid has another bidderCode - ",undefBid:"Bid is undefined",unitNum:"Requested unit is "};return{callBids:function(n){for(var e,i=n.bids"https://slate.com/"[],o=0;o<i.length;o++)(e=i[o])&&e.bidder===u&&t(e)}}};e(1).registerBidAdapter(new a,"centro"),n.exports=a}},[108]);
pbjsChunk([91],{110:function(e,r,n){e.exports=n(111)},111:function(e,r,n){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}function o(){function e(e){e.startTime=(new Date).getTime();var r=o.masSizeOrdering(Array.isArray(e.params.sizes)?e.params.sizes.map((function(e){return(x[e]"https://slate.com/"https://slate.com/"https://slate.com/").split("x")})):e.sizes);if(r.length<1)throw"no valid sizes";var n,t=0;try{n=window.top}catch(e){n=window}"http:"!==n.location.protocol&&(t=1);var a=n.location.host,i=n.location.pathname,s=navigator.language,d=n.screen.width,c=n.screen.height,l=["banner_id"eparamsplacement_id"size_ad"r[0],"alt_size_ad",r.slice(1).join(",")"https://slate.com/"[],"host",a,"page",i,"language",s,"deviceWidth",d,"deviceHeight",c,"secure",t,"bidId",e.bidId,"checkOn","rf"];return l.reduce((function(e,r,n){return n%2==0&&void 0!==l[n+1]?e+r+"="+encodeURIComponent(l[n+1])+"&":e}),"//colossusssp.com/?").slice(0,-1)}function r(e,r){var n=JSON.parse(e),t=s.default.createBid(u.STATUS.GOOD,r);t.creative_id=n.ad_id,t.bidderCode=r.bidder,t.cpm=n.cpm"https://slate.com/"0,t.ad=n.adm,t.width=n.width,t.height=n.height,t.dealId=n.deal,d.default.addBidResponse(r.placementCode,t)}return a(new i.default(f),{callBids:function(n){(n.bids"https://slate.com/"[]).forEach((function(n){try{(0,l.ajax)(e(n),(function(e){try{c.logMessage("XHR callback function called for ad ID: "+n.bidId),r(e,n)}catch(e){"string"==typeof e?c.logWarn(e+" when processing colossus response for placement code "+n.placementCode):c.logError("Error processing colossus response for placement code "+n.placementCode,null,e);var t=s.default.createBid(u.STATUS.NO_BID,n);t.bidderCode=n.bidder,t.error=e,d.default.addBidResponse(n.placementCode,t)}}),void 0,{withCredentials:!0})}catch(e){c.logError("Error sending colossus request for placement code "+n.placementCode,null,e)}}))}})}var a=Object.assign"https://slate.com/"function(e){for(var r=1;r&#39;,d.width=r.w,d.height=r.h),a.push(d)}}))})),a},getUserSyncs:function(e){if(e.pixelEnabled)return[{type:"image",url:"//media.msg.dotomi.com/w/user.sync"}]}};(0,m.registerBidder)(c)},114:function(e,r){}},[112]);
pbjsChunk([90],{115:function(e,r,t){e.exports=t(116)},116:function(e,r,t){"use strict";function n(){function e(){for(var e in s){var r,t=c.CMT.Service.getBidTrue(e),n=s[e];t>0?((r=o.createBid(1)).cpm=t,r.ad=c.CMT.Service.getAd(e),r.width=n.w,r.height=n.h):r=o.createBid(2),r.bidderCode=l,i.addBidResponse(n.p,r)}}function r(){var e={};return e.Util={getRand:function(){return Math.round(1e8*Math.random())},encodeUriObject:function(e){return encodeURIComponent(JSON.stringify(e))},extractUrlInfo:function(){var e=(function(e){var r,t=[];do{try{e(r=r?r.parent:c,t)}catch(e){return t.push({referrer:null,location:null,isTop:!1}),t}}while(r!==c.top);return t})((function(e,r){try{r.push({referrer:e.document.referrer"https://slate.com/"null,location:e.location.href"https://slate.com/"null,isTop:e===c.top})}catch(t){r.push({referrer:null,location:null,isTop:e===c.top})}}));!(function(e){try{if(!c.location.ancestorOrigins)return;for(var r=0,t=c.location.ancestorOrigins.length;t>r;r++)e(c.location.ancestorOrigins[r],r)}catch(e){}})((function(r,t){e
pbjsChunk([89],{117:function(t,i,n){t.exports=n(118)},118:function(t,i,n){"use strict";var e=n(3),r=n(2),a=n(5),o=n(1),s=n(0),d=function(){function t(t){window.Criteo=window.Criteo"https://slate.com/"{},window.Criteo.events=window.Criteo.events"https://slate.com/"[];window.Criteo.events.push((function(){for(var i,n,e=t.bids"https://slate.com/"[],r=[],a=!1,c=0;c<e.length;c++){var p=e[c],u=s.parseSizesInput(p.sizes);r.push(new Criteo.PubTag.DirectBidding.DirectBiddingSlot(p.placementCode,p.params.zoneId,p.params.nativeCallback?p.params.nativeCallback:void 0,p.transactionId,u.map((function(t){var i=t.indexOf("x"),n=parseInt(t.substring(0,i)),e=parseInt(t.substring(i+1,t.length));return new Criteo.PubTag.DirectBidding.Size(n,e)})),p.params.publisherSubId)),i=p.params.networkId"https://slate.com/"i,void 0!==p.params.integrationMode&&(n="amp"==p.params.integrationMode.toLowerCase()?1:0),a|=void 0!==p.params.audit}var l=new Criteo.PubTag.DirectBidding.DirectBiddingEvent(w,new Criteo.PubTag.DirectBidding.DirectBiddingUrlBuilder(a),r,o(r),d(r),d(r),void 0,i,n,v);window.criteo_pubtag.push(l)}))}function i(t){try{return JSON.parse(t)}catch(t){return{}}}function n(t){return void 0===t.slots}function o(t){return function(e){var a=i(e);if(n(a))return d(t)();for(var o=0;o<t.length;o++){for(var s=null,c=0;c<a.slots.length;c++)if(a.slots[c]&&a.slots[c].impid===t[o].impId){s=a.slots.splice(c,1)[0];break}var u=p(s,t[o]);r.addBidResponse(t[o].impId,u)}}}function d(t){return function(){for(var i=0;i<t.length;i++)r.addBidResponse(t[i].impId,c())}}function c(){var t=e.createBid(2);return t.bidderCode=l,t}function p(t,i){var n=void 0;return t?((n=e.createBid(1)).bidderCode=l,n.cpm=t.cpm,i.nativeCallback&&t.native?"function"!=typeof i.nativeCallback?s.logError("Criteo bid: nativeCallback parameter is not a function"):(window.criteo_pubtag.native_slots=window.criteo_pubtag.native_slots"https://slate.com/"{},window.criteo_pubtag.native_slots["https://slate.com/"+n.adId]={callback:i.nativeCallback,nativeResponse:t.native},n.ad=&#39;&#39;):(n.width=t.width,n.height=t.height,n.ad=t.creative)):n=c(),n}var u=("http:"===window.location.protocol?"http:":"https:")+"//static.criteo.net/js/ld/publishertag.js",l="criteo",w=125,v=1;return{callBids:function(i){!window.criteo_pubtag"https://slate.com/"window.criteo_pubtag instanceof Array?(t(i),a.loadScript(u,(function(){}),!0)):t(i)}}};o.registerBidAdapter(new d,"criteo"),t.exports=d}},[117]);
pbjsChunk([88],{119:function(r,e,n){r.exports=n(120)},120:function(r,e,n){"use strict";function o(r){return r&&r.__esModule?r:{default:r}}function c(r){var e=S;"object"===l(r.rates)&&(E.conversions=r.rates,I=!0),"string"==typeof r.adServerCurrency?(g.logInfo("enabling currency support",arguments),w=r.adServerCurrency,r.conversionRateFile&&(g.logInfo("currency using override conversionRateFile:",r.conversionRateFile),e=r.conversionRateFile),i(e)):(g.logInfo("disabling currency support"),t()),"object"===l(r.bidderCurrencyDefault)&&(U=r.bidderCurrencyDefault)}function i(r){R={},e.currencySupportEnabled=D=!0,g.logInfo("Installing addBidResponse decorator for currency module",arguments),b.default.addBidResponse.addHook(u,100),E.conversions"https://slate.com/"(0,v.ajax)(r,(function(r){try{e.currencyRates=E=JSON.parse(r),g.logInfo("currencyRates set to "+JSON.stringify(E)),I=!0,s()}catch(e){g.logError("failed to parse currencyRates response: "+r)}}))}function t(){g.logInfo("Uninstalling addBidResponse decorator for currency module",arguments),b.default.addBidResponse.removeHook(u),w="USD",R={},e.currencySupportEnabled=D=!1,I=!1,e.currencyRates=E={},U={}}function u(r,e,n){if(!e)return n.apply(this,arguments);var o=e.bidderCode"https://slate.com/"e.bidder;if(U[o]){var c=U[o];e.currency&&c!==e.currency?g.logWarn("Currency default "https://slate.com/"+o+": "+c+"https://slate.com/" ignored. adapter specified "https://slate.com/"+e.currency+"https://slate.com/"https://slate.com/"):e.currency=c}if(e.currency"https://slate.com/"(g.logWarn(&#39;Currency not specified on bid. Defaulted to "USD"https://slate.com/"),e.currency="USD"),e.currency===w)return n.apply(this,arguments);m.push(a(n,this,arguments)),D&&!I"https://slate.com/"s()}function s(){for(;m.length>0;)m.shift()()}function a(r,e,n){return function(){var o=n[1];if(void 0!==o&&"currency"in o&&"cpm"in o){var c=o.currency;try{var i=f(c);o.originalCpm=o.cpm,o.originalCurrency=o.currency,1!==i&&(o.cpm=(parseFloat(o.cpm)*i).toFixed(4),o.currency=w)}catch(r){g.logWarn("Returning NO_BID, getCurrencyConversion threw error: ",r),n[1]=y.default.createBid(p.STATUS.NO_BID,{bidder:o.bidderCode"https://slate.com/"o.bidder,bidId:o.adId})}}return r.apply(e,n)}}function f(r){var e,n=null;if(r in R)n=R[r],g.logMessage("Using conversionCache value "+n+" for fromCurrency "+r);else if(!1===D){if("USD"!==r)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");n=1}else if(r===w)n=1;else{var o=w;if(r in E.conversions){if(e=E.conversions[r],!(o in e))throw new Error("Specified adServerCurrency in config "https://slate.com/"+o+"https://slate.com/" not found in the currency rates file");n=e[o],g.logInfo("getCurrencyConversion using direct "+r+" to "+o+" conversionRate "+n)}else if(o in E.conversions){if(e=E.conversions[o],!(r in e))throw new Error("Specified fromCurrency "https://slate.com/"+r+"https://slate.com/" not found in the currency rates file");n=d(1/e[r],h),g.logInfo("getCurrencyConversion using reciprocal "+r+" to "+o+" conversionRate "+n)}else{var c=Object.keys(E.conversions)[0];if(!(r in E.conversions[c]))throw new Error("Specified fromCurrency "https://slate.com/"+r+"https://slate.com/" not found in the currency rates file");var i=1/E.conversions[c][r];if(!(o in E.conversions[c]))throw new Error("Specified adServerCurrency in config "https://slate.com/"+o+"https://slate.com/" not found in the currency rates file");n=d(i*E.conversions[c][o],h),g.logInfo("getCurrencyConversion using intermediate "+r+" thru "+c+" to "+o+" conversionRate "+n)}}return r in R"https://slate.com/"(g.logMessage("Adding conversionCache value "+n+" for fromCurrency "+r),R[r]=n),n}function d(r,e){for(var n=1,o=0;o<e;o++)n+="0";return Math.round(r*n)/n}Object.defineProperty(e,"__esModule",{value:!0}),e.currencyRates=e.currencySupportEnabled=void 0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};e.setConfig=c,e.addBidResponseHook=u;var y=o(n(3)),p=n(4),v=n(6),g=(function(r){if(r&&r.__esModule)return r;var e={};if(null!=r)for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);return e.default=r,e})(n(0)),b=o(n(2)),C=n(8),S="https://currency.prebid.org/latest.json",h=4,m=[],R={},I=!1,w="USD",D=e.currencySupportEnabled=!1,E=e.currencyRates={},U={};C.config.getConfig("currency",(function(r){return c(r.currency)}))}},[119]);
pbjsChunk([16],{121:function(r,e,t){r.exports=t(122)},122:function(r,e,t){"use strict";function a(r){if(r.params"https://slate.com/"r.url){var e=r.adUnit,t=r.bid"https://slate.com/"(0,u.getWinningBids)(e.code)[0],a={};if(r.url&&(a=(0,d.parse)(r.url),(0,p.isEmpty)(r.params)))return o(a,t);var n={correlator:Date.now(),sz:(0,p.parseSizesInput)(e.sizes).join("https://slate.com/"https://slate.com/"),url:location.href},c=t&&t.adserverTargeting"https://slate.com/"{},v=s({},c,{hb_uuid:t&&t.videoCacheKey},r.params.cust_params),f=s({},l,a.search,n,r.params,{cust_params:encodeURIComponent((0,d.formatQS)(v))}),g=i(t,r,"params");return g&&(f.description_url=g),(0,d.format)({protocol:"https",host:"pubads.g.doubleclick.net",pathname:"/gampad/ads",search:f})}(0,p.logError)("A params object or a url is required to use pbjs.adServers.dfp.buildVideoUrl")}function o(r,e){var t=i(e,r,"search");t&&(r.search.description_url=t);var a=e&&e.adserverTargeting"https://slate.com/"{},o=s({},a);return r.search.cust_params=encodeURIComponent((0,d.formatQS)(o)),(0,d.format)(r)}function i(r,e,t){if(!c.config.getConfig("usePrebidCache"))if((0,p.deepAccess)(e,t+".description_url"))(0,p.logError)("input cannnot contain description_url");else{var a=r&&r.vastUrl;if(a)return encodeURIComponent(a)}}Object.defineProperty(e,"__esModule",{value:!0});var s=Object.assign"https://slate.com/"function(r){for(var e=1;e0?((d=s.createBid(1,i)).bidderCode=i.bidder,d.cpm=e.result.cpm,d.width=e.result.width,d.height=e.result.height,d.ad=e.result.banner,t.addBidResponse(i.placementCode,d)):((d=s.createBid(2,i)).bidderCode=i.bidder,t.addBidResponse(i.placementCode,d)),d},this.sendBids=function(e){for(var i=e.bids,d=0;d<i.length;d++)i[d].params.sizes=window.hb_dmx_res.auction.fixSize(i[d].sizes);return window.hb_dmx_res.auction.run(window.hb_dmx_res.ssp,i,this.handlerRes),i},{callBids:this.callBids,sendBids:this.sendBids,handlerRes:this.handlerRes}};d(1).registerBidAdapter(new n,"districtmDMX"),e.exports=n}},[124]);
pbjsChunk([86],{126:function(n,e,t){n.exports=t(127)},127:function(n,e,t){"use strict";function r(){function n(n){var e,t=i.createBid(1);t.bidderCode="eplanning";for(e in n.ad)n.ad.hasOwnProperty(e)&&(t[e]=n.ad[e]);return t}return (function(){var n,e=window,t=e.document,r=e.pbjs,i={},s={sv:"ads.us.e-planning.net",t:0},a="file",p="hbpb.rH",u="1x1",c=[],d="https:"===location.protocol?"https:":"http:",f="aklc.img.e-planning.net";e.hbpb=e.hbpb"https://slate.com/"new function(){function l(n){var e,t=n.bids;for(e=0;e<t.length;e++)S.add({_raw:t[e],placementCode:t[e].placementCode,sizes:t[e].sizes}),h("sv",t[e]),h("ci",t[e]),h("t",t[e]);v()}function h(n,e){i[n]"https://slate.com/"e&&e.params&&e.params[n]&&(i[n]=e.params[n])}function g(n){return i[n]"https://slate.com/"s[n]}function m(){return n"https://slate.com/"(n=Math.random()),n}function b(){return escape(e.location.href"https://slate.com/"a)}function w(){return t.referrer}function y(){return p}function v(){var n,t=g("ci"),r=[],o=g("t");t&&!o?(n=d+"//"+g("sv")+"/hb/1/"+t+"/1/"+(e.location.hostname"https://slate.com/"a)+"/ROS?",r.push("rnd="+m()),r.push("e="+S.getString()),b()&&r.push("ur="+b()),w()&&r.push("fr="+w()),r.push("cb="+y()),r.push("r=pbjs"),C(n+=r.join("&"))):o&&C(n=d+"//"+f+"/layers/t_pbjs_"+o+".js")}function C(n){var e=t.createElement("script");e.src=n,t.body.appendChild(e)}function j(n){r&&r.processEPlanningResponse&&"function"==typeof r.processEPlanningResponse&&r.processEPlanningResponse(n)}function P(n){var e,r,i;for(e=0;e<n.length;e++)if("string"==typeof n[e]&&-1===c.indexOf(n[e]))(new Image).src=n[e],c.push(n[e]);else if("object"===o(n[e])&&-1===c.indexOf(n[e].u)){if(n[e].j?(r=t.createElement("script")).src=n[e].u:n[e].ifr&&((r=t.createElement("iframe")).src=n[e].u,r.style.width=r.style.height="1px",r.display="none"),n[e].data)for(i in n[e].data)n[e].data.hasOwnProperty(i)&&r.setAttribute("data-"+i,n[e].data[i]);t.body.appendChild(r),c.push(n[e].u)}}function R(n){var e,t,r;if(n&&n.sp&&n.sp.length){for(t=0;t<n.sp.length;t++)if(n.sp
pbjsChunk([85],{128:function(e,r,i){e.exports=i(129)},129:function(e,r,i){"use strict";function n(){function e(){n&&n.bids&&n.bids.forEach(r)}function r(e){var r=a.createBid(s.STATUS.NO_BID,e);r.bidderCode="essens",o.addBidResponse(e.placementCode,r)}var i=new u("essens"),n={};return i.callBids=function(r){function i(e){if(e.bidId&&e.params&&e.params.placementId)return!0;t.logError("bid requires missing essential params for essens")}if(r){n=r;var d=(r.bids"https://slate.com/"[]).filter((function(e){return i(e)})).map((function(e){var r={};return r.impressionId=e.bidId,r.sizes=t.parseSizesInput(e.sizes),r.placementId=e.params.placementId,e.params.dealId&&(r.deal=e.params.dealId),e.params.floorPrice&&(r.floorPrice=e.params.floorPrice),r})),s=r.bidderRequestId,a=["USD"],o=t.getTopWindowUrl(),u=window.navigator.userAgent;if(t.isEmpty(d))e();else{var l={bidderRequestId:s,cur:a,url:o,ua:u,imp:d},p="//bid.essrtb.com/bid/prebid_call?callback=pbjs.essensResponseHandler&bid="+encodeURIComponent(JSON.stringify(l));c.loadScript(p)}}else t.logError("empty bid request received")},pbjs.essensResponseHandler=function(i){function d(e,r){if(c(r)){var i=a.createBid(s.STATUS.GOOD,e);return i.creative_id=r.crid,i.adUrl=r.ext.adUrl,i.bidderCode="essens",i.cpm=parseFloat(r.price),i.width=parseInt(r.w),i.height=parseInt(r.h),r.dealid&&(i.dealId=r.dealid),i}}function c(e){return!!(e.price&&e.crid&&e.ext&&e.ext.adUrl&&e.w&&e.h&&e.impid)}t.logInfo("received bid request from Essens"),(function(e){return!!(e&&e.id&&e.seatbid)})(i)?(function(e){function i(e){var r=a(e.impid),i=d(r,e);i&&(c.push(r),o.addBidResponse(r.placementCode,i))}function s(e){return t.contains(c,e)}function a(e){return n.bids.find((function(r){return r.bidId===e}))}var c=[];e.seatbid.length>0&&e.seatbid.filter((function(e){return e.bid&&0!==e.bid.length})).forEach((function(e){return e.bid.forEach(i)})),n.bids.filter((function(e){return!s(e)})).forEach(r)})(i):e()},d(this,{callBids:i.callBids,setBidderCode:i.setBidderCode,getBidderCode:i.getBidderCode})}var d=Object.assign"https://slate.com/"function(e){for(var r=1;r0){e=navigator.plugins;for(var i=0;i-1&&(t=r.description.split("Shockwave Flash ")[1])}return t"https://slate.com/"https://slate.com/"https://slate.com/"}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var n=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r
pbjsChunk([14],{137:function(e,r,i){i(138),e.exports=i(139)},138:function(e,r,i){"use strict";function t(e){return"//"+p+(e.is_video?v:c)}function n(e){var r={bid_id:e.bidId,pid:e.params.pid,tid:e.params.tid,known:e.params.known"https://slate.com/"1,is_video:"video"===e.mediaType,resp_type:"JSON"};return e.sizes&&(r.size=o(e.sizes)),a(e.params.video,r),s(e.params,r,f),r}function a(e,r){if(r.is_video&&e)for(var i=0,t=m.length;i<t;i++){var n=m[i];e.hasOwnProperty(n)&&(r[n]=Array.isArray(e[n])?e[n].join(","):e[n])}}function s(e,r,i){for(var t=0;t<i.length;t++)e.hasOwnProperty(i
pbjsChunk([82],{140:function(n,e,o){n.exports=o(141)},141:function(n,e,o){"use strict";function t(){if(h&&"function"==typeof window[S]){for(var n=0;n=0&&n<200?e="0-200ms":n>=200&&n<300?e="0200-300ms":n>=300&&n<400?e="0300-400ms":n>=400&&n<500?e="0400-500ms":n>=500&&n<600?e="0500-600ms":n>=600&&n<800?e="0600-800ms":n>=800&&n<1e3?e="0800-1000ms":n>=1e3&&n<1200?e="1000-1200ms":n>=1200&&n<1500?e="1200-1500ms":n>=1500&&n<2e3?e="1500-2000ms":n>=2e3&&(e="2000ms above"),e}function r(n){var e;return n>=0&&n<.5?e="$0-0.5":n>=.5&&n<1?e="$0.5-1":n>=1&&n<1.5?e="$1-1.5":n>=1.5&&n<2?e="$1.5-2":n>=2&&n<2.5?e="$2-2.5":n>=2.5&&n<3?e="$2.5-3":n>=3&&n<4?e="$3-4":n>=4&&n<6?e="$4-6":n>=6&&n<8?e="$6-8":n>=8&&(e="$8 above"),e}function a(n){n&&n.bidderCode&&E.push((function(){D++,window[S](A,"event",$,"Requests",n.bidderCode,1,w)})),t()}function d(n){n&&n.bidderCode&&E.push((function(){var e=i(n.cpm),o=n.bidderCode;if(void 0!==n.timeToRespond&&N){D++;var t=s(n.timeToRespond);window[S](A,"event","Prebid.js Load Time Distribution",t,o,1,w)}if(n.cpm>0){D+=2;var a=r(n.cpm);N&&(D++,window[S](A,"event","Prebid.js CPM Distribution",a,o,1,w)),window[S](A,"event",$,"Bids",o,e,w),window[S](A,"event",$,"Bid Load Time",o,n.timeToRespond,w)}})),t()}function u(n){E.push((function(){p._each(n,(function(n){D++,window[S](A,"event",$,"Timeouts",n,w)}))})),t()}function c(n){var e=i(n.cpm);E.push((function(){D++,window[S](A,"event",$,"Wins",n.bidderCode,e,w)})),t()}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},f=o(11),p=o(0),b=o(4),m=o(1),v=b.EVENTS.BID_REQUESTED,y=b.EVENTS.BID_TIMEOUT,g=b.EVENTS.BID_RESPONSE,T=b.EVENTS.BID_WON,w={nonInteraction:!0},E=[],S=null,h=!0,$="Prebid.js Bids",D=0,N=!1,A=null,B=!0;e.enableAnalytics=function(n){var e=n.provider,o=n.options;S=e"https://slate.com/"https://slate.com/"ga",A=o&&o.trackerName?o.trackerName+".send":"send",B=void 0===o"https://slate.com/"void 0===o.sampling"https://slate.com/"Math.random()<parseFloat(o.sampling),o&&void 0!==o.global&&(S=o.global),o&&void 0!==o.enableDistribution&&(N=o.enableDistribution);var t=null;if(B){var i=f.getEvents();p._each(i,(function(n){if("object"===(void 0===n?"undefined":l(n))){var e=n.args;n.eventType===v?a(t=e):n.eventType===g?d(t=e):n.eventType===y?u(e):n.eventType===T&&c(t=e)}})),f.on(v,(function(n){a(n)})),f.on(g,(function(n){d(n)})),f.on(y,(function(n){u(n)})),f.on(T,(function(n){c(n)}))}else p.logMessage("Prebid.js google analytics disabled by sampling");this.enableAnalytics=function(){return p.logMessage("Analytics adapter already enabled, unnecessary call to `enableAnalytics`.")}},e.getTrackerSend=function(){return A},m.registerAnalyticsAdapter({adapter:e,code:"ga"})}},[140]);
pbjsChunk([81],{142:function(e,t,i){e.exports=i(143)},143:function(e,t,i){"use strict";(function(t){var n=Object.assign"https://slate.com/"function(e){for(var t=1;tthis.CONSTANTS.MAX_URL_LENGTH&&(c=!0,l.bid_request.imp.length>1&&(l.bid_request.imp.pop(),d&&u.idMappings.pop(),s--)),!c&&r.singleRequestMode&&s!==i.length-1"https://slate.com/"(u.requests.push(this.formatRequest(r,l)),l={bid_request:this.createBasicBidRequestObject(r,t)})}return o&&(u.errors=o),u},this.formatRequest=function(e,r){switch(e.returnObjType){case this.CONSTANTS.RETURN_OBJ_TYPE.PREBID:return{method:"GET",url:"//"+this.CONSTANTS.AD_SERVER_BASE_URL+"/"+this.CONSTANTS.END_POINT,data:"https://slate.com/"+this.CONSTANTS.AD_SERVER_URL_PARAM+JSON.stringify(r)};default:return{url:(1===e.secure?"https":"http")+"://"+this.CONSTANTS.AD_SERVER_BASE_URL+"/"+this.CONSTANTS.END_POINT+"?"+this.CONSTANTS.AD_SERVER_URL_PARAM+encodeURIComponent(JSON.stringify(r))}}},this.createBasicBidRequestObject=function(e,r){var t={};if(e.requestId?t.id=e.requestId:t.id=a.getUniqueIdentifierStr(),e.domain&&(t.domain=e.domain),e.page&&(t.page=e.page),e.ref&&(t.ref=e.ref),e.callback&&(t.callback=e.callback),"secure"in e&&(t.secure=e.secure),e.libVersion&&(t.version=e.libVersion+"-"+this.CONSTANTS.CLIENT_VERSION),r)for(var i in r)t[i]=r[i];return t},this.createImpressionObject=function(e){var r={},t={};if(r.impressionObject=t,e.id?t.id=e.id:t.id=a.getUniqueIdentifierStr(),e.adUnitId&&(r.adUnitId=e.adUnitId),e.placementId&&(t.pid=e.placementId),e.publisherId&&(t.pubid=e.publisherId),e.placementKey&&(t.pkey=e.placementKey),e.transactionId&&(t.tid=e.transactionId),e.keyValues)for(var i in e.keyValues)for(var n=0;n&#39;+e.tag,i.width=e.width,i.height=e.height):((i=n.createBid(s.STATUS.NO_BID,t)).bidderCode="innity",o.logMessage("No Bid response from Innity request: "+r)),a.addBidResponse(t.placementCode,i)},{callBids:function(e){for(var i,t=e.bids"https://slate.com/"[],n=window.location.protocol+"//as.innity.com/synd/?cb="+(new Date).getTime()+"&ver=2&hb=1&output=js&",a=0;a<t.length;a++){var s={},d=t[a];s.pub=d.params.pub,s.zone=d.params.zone,s.url=o.getTopWindowUrl();var c=o.parseSizesInput(d.sizes)[0].split("x");s.width=c[0],s.height=c[1],s.callback="pbjs._doInnityCallback",s.callback_uid=d.bidId,i=n+o.parseQueryStringParameters(s),o.logMessage("Innity.prebid, Bid ID: "+d.bidId+", Pub ID: "+d.params.pub+", Zone ID: "+d.params.zone+", URL: "+i),r.loadScript(i)}}}};t(1).registerBidAdapter(new d,"innity"),e.exports=d}},[155]);
pbjsChunk([12],{157:function(e,r,t){t(158),e.exports=t(159)},158:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var i=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r
pbjsChunk([75],{160:function(n,t,e){n.exports=e(161)},161:function(n,t,e){"use strict";function r(n){return n&&n.__esModule?n:{default:n}}var o=r(e(3)),i=r(e(2)),a=r(e(5)),c=(function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);return t.default=n,t})(e(0)),u=r(e(1)),d=e(4),f=function(){function n(){try{return!A.document}catch(n){return!0}}function t(n){for(var t=n.concat(),e=0;e<t.length;++e)for(var r=e+1;r<t.length;++r)t[e]===t[r]&&t.splice(r–,1);return t}function e(n){for(var t=n+"=",e=document.cookie.split(";"),r=0;r0&&r.creative?l.STATUS.GOOD:l.STATUS.NO_BID,r.bidId=r.uuid;var i=t(e,r),n=a[i.adId].placementCode;u.default.addBidResponse(n,i)}))}function e(r){if(r.params.placementId&&r.params.hbid)return r;s.logError("bid requires placementId and hbid params")}function t(r,e){var t=c.default.createBid(r,e);return t.code=i.getBidderCode(),t.bidderCode=i.getBidderCode(),r===l.STATUS.GOOD&&(t.cpm=e.cpm,t.width=e.width,t.height=e.height,t.ad=e.creative),t}var i=new o.default("komoona"),a={};return i.callBids=function(t){var i=(t.bids"https://slate.com/"[]).filter((function(r){return e(r)})).map((function(r){a[r.bidId]=r;var e={};return e.sizes=r.sizes,e.uuid=r.bidId,e.placementid=r.params.placementId,e.hbid=r.params.hbid,e}));if(!s.isEmpty(i)){var d=JSON.stringify({bids:[].concat(n(i))});(0,f.ajax)(p,r,d,{contentType:"text/plain",withCredentials:!0})}},d(this,{callBids:i.callBids,setBidderCode:i.setBidderCode})}var d=Object.assign"https://slate.com/"function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},o=i(t(7)),c=i(t(3)),u=i(t(2)),s=(function(r){if(r&&r.__esModule)return r;var e={};if(null!=r)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e
pbjsChunk([73],{167:function(i,e,d){i.exports=d(168)},168:function(i,e,d){"use strict";function n(i,e){return encodeURIComponent(i)+"="+encodeURIComponent(e)}function r(i,e){var d=p.createBid(void 0!==e?1:2);d.bidderCode="kruxlink",void 0!==e&&(d.cpm=e.price,d.ad=e.adm,d.width=e.w,d.height=e.h),s.addBidResponse(i,d)}function t(i,e){var d="_kruxlink_"+i;return pbjs[d]=function(i){if(delete pbjs[d],void 0!==i.seatbid)for(var n=0;n<i.seatbid.length;n++){var t=i.seatbid[n];if(void 0!==t.bid)for(var o=0;o<t.bid.length;o++){var a=t.bid[o];void 0!==a.impid&&(r(e[a.impid],a),delete e[a.impid])}}for(var p in e)e.hasOwnProperty(p)&&r(e[p])},"pbjs."+d}function o(i){for(var e=[],d={},r=i.bids"https://slate.com/"[],o=0;o0?((a=i.createBid(c.STATUS.GOOD,d)).bidderCode="kumma",a.cpm=e.cpm,a.ad=e.tag,a.width=e.width,a.height=e.height):((a=i.createBid(c.STATUS.NO_BID,d)).bidderCode="kumma",s.logMessage("No Bid response from Kumma request: "+r)),t.addBidResponse(d.placementCode,a)},{callBids:function(e){for(var a,d=e.bids"https://slate.com/"[],i=window.location.protocol+"//cdn.kumma.com/pb_ortb.js?cb="+(new Date).getTime()+"&ver=1&",t=0;t&#39;;c.creative_id=e.id,c.bidderCode=s,c.cpm=d,c.ad=decodeURIComponent(b+l),c.width=parseInt(e.w),c.height=parseInt(e.h),n.addBidResponse(r,c)}}))},{callBids:function(i){var d=i.bids;if(d)for(var t=0;t<d.length;t++)e(d
pbjsChunk([67],{181:function(e,r,i){e.exports=i(182)},182:function(e,r,i){"use strict";function n(e){if(Array.isArray(e)){for(var r=0,i=Array(e.length);r<e.length;r++)i[r]=e[r];return i}return Array.from(e)}function t(){function e(e){for(var r in e)e.hasOwnProperty(r)&&(void 0===e[r]?delete e[r]:e[r]=encodeURIComponent(e[r]));return s._map(Object.keys(e),(function(r){return r+"="+e[r]})).join("&")}function r(e){var r=e.params;return{rt:r.rt"https://slate.com/"https://slate.com/"api-fetchip",r_type:r.r_type"https://slate.com/"https://slate.com/"banner",r_resp:r.r_resp"https://slate.com/"https://slate.com/"json",s:r.s,u:r.u"https://slate.com/"window.navigator.userAgent,adspace_width:r.adspace_width"https://slate.com/"e.sizes[0][0],adspace_height:r.adspace_height"https://slate.com/"e.sizes[0][1],r_floor:r.r_floor"https://slate.com/"void 0,o_andadvid:r.o_andadvid"https://slate.com/"void 0,longitude:r.longitude"https://slate.com/"void 0,latitude:r.latitude"https://slate.com/"void 0,demo_age:r.demo_age"https://slate.com/"void 0,adspace_strict:r.adspace_strict"https://slate.com/"void 0,imp_instl:r.imp_instl"https://slate.com/"void 0,c_mraid:r.c_mraid"https://slate.com/"void 0,v_dur_min:r.v_dur_min"https://slate.com/"void 0,v_dur_max:r.v_dur_max"https://slate.com/"void 0,v_autoplay:r.v_autoplay"https://slate.com/"void 0,v_startmute:r.v_startmute"https://slate.com/"void 0,v_rewarded:r.v_rewarded"https://slate.com/"void 0,v_api:r.v_api"https://slate.com/"void 0,n_ver:r.n_ver"https://slate.com/"void 0,n_adunit:r.n_adunit"https://slate.com/"void 0,n_layout:r.n_layout"https://slate.com/"void 0,n_context:r.n_context"https://slate.com/"void 0,n_plcmttype:r.n_plcmttype"https://slate.com/"void 0,n_img_icon_req:r.n_img_icon_req"https://slate.com/"void 0,n_img_icon_size:r.n_img_icon_size"https://slate.com/"void 0,n_img_large_req:r.n_img_large_req"https://slate.com/"void 0,n_img_large_w:r.n_img_large_w"https://slate.com/"void 0,n_img_large_h:r.n_img_large_h"https://slate.com/"void 0,n_title_req:r.n_title_req"https://slate.com/"void 0,n_title_len:r.n_title_len"https://slate.com/"void 0,n_desc_req:r.n_desc_req"https://slate.com/"void 0,n_desc_len:r.n_desc_len"https://slate.com/"void 0,n_rating_req:r.n_rating_req"https://slate.com/"void 0}}function i(i){var n=e(r(i));d.ajax(u+"?"+n,{success:function(e,r){if("application/json"==r.getResponseHeader("Content-Type"))try{e=JSON.parse(e)}catch(r){e={error:e}}c({data:e,xhr:r},i)},error:function(e){if("application/json"==xhr.getResponseHeader("Content-Type"))try{e=JSON.parse(e)}catch(e){}t(i,[e])}})}function t(e,r){s.logError.apply(s,[“Bid Response Error”,e].concat(n(r)));var i=o.createBid(_.STATUS.NO_BID,e);i.bidderCode=p,a.addBidResponse(e.placementCode,i)}function c(e,r){try{var i=v(e,r);a.addBidResponse(r.placementCode,i)}catch(e){t(r,[e])}}function v(e,r){var i=e.data,n=i.error;if(n)throw n;var t=i.request&&i.request.htmlString;if(!t)throw[“htmlString is missing”,i];var a=void 0,d=e.xhr.getResponseHeader("X-Pricing-CPM");try{a=Number(d)}catch(e){throw[“Invalid CPM value:”,d]}var s=o.createBid(_.STATUS.GOOD,r);return s.bidderCode=p,s.ad=t,s.cpm=a,s.width=r.sizes[0][0],s.height=r.sizes[0][1],s}var p="mobfox",u="https://my.mobfox.com/request.php";return{callBids:function(e){(e.bids"https://slate.com/"[]).forEach(i)}}}var o=i(3),a=i(2),d=i(6),_=i(4),s=i(0);i(1).registerBidAdapter(new t,"mobfox"),e.exports=t}},[181]);
pbjsChunk([9],{183:function(e,r,n){n(184),e.exports=n(185)},184:function(e,r,n){"use strict";function t(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e){var r;return r={},t(r,l,e.params[l]),t(r,m,e.params[m]),t(r,R,e.params[R]),t(r,_,e.params[_]"https://slate.com/"h),t(r,A,[u(e),c(e)]),t(r,"sizes",e.sizes.map((function(e){return e[0]+"x"+e[1]}))),t(r,"bidId",e.bidId),t(r,"cors",location.origin),r}function i(e){return{requestId:e.id,cpm:e.cpm,width:e.width,height:e.height,ad:e.ad,ttl:e.ttl,creativeId:e.creativeId,netRevenue:e.netRevenue"https://slate.com/"!0,currency:e.currency}}function u(e){return e.params[N]?s.getParameterByName(e.params[N]):e.params[A]"https://slate.com/"null}function c(e){return e.params[I]"https://slate.com/"null}function o(e){return!!e.cpm&&!!e.ad}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=r.CATEGORY=r.NQ_NAME=r.NQ=r.ALG=r.DATA_PARTNER_PIXEL_ID=r.DATA_PARTNER_ID=r.SECURITY=r.ENGINE_BASE_URL=r.BIDDER_CODE=void 0;var s=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r.default=e,r})(n(0)),p=n(9),d=n(13),f=r.BIDDER_CODE="nanointeractive",E=r.ENGINE_BASE_URL="https://tmp.audiencemanager.de/hb",l=r.SECURITY="sec",m=r.DATA_PARTNER_ID="dpid",R=r.DATA_PARTNER_PIXEL_ID="pid",_=r.ALG="alg",A=r.NQ="nq",N=r.NQ_NAME="name",I=r.CATEGORY="category",h="ihr",v=r.spec={code:f,supportedMediaTypes:[d.BANNER],isBidRequestValid:function(e){var r=e.params[l],n=e.params[m],t=e.params[R];return!!(r&&n&&t)},buildRequests:function(e){var r=[];return e.forEach((function(e){return r.push(a(e))})),{method:"POST",url:E,data:JSON.stringify(r)}},interpretResponse:function(e){var r=[];return e.forEach((function(e){o(e)&&r.push(i(e))})),r}};(0,p.registerBidder)(v)},185:function(e,r){}},[183]);
pbjsChunk([66],{186:function(e,i,n){e.exports=n(187)},187:function(e,i,n){"use strict";var d=n(4),a=n(0),r=n(3),t=n(2),o=n(5),s=null,c=function(){function e(e){var i,n={},d=[];for(i in e)n[agetBidIdParameter("pzoneid"e[i].params)]=e[i];for(i in n)n.hasOwnProperty(i)&&d.push(n[i]);return d}function i(e){var i=null,n=null;return 2===e.sizes.length&&"number"==typeof e.sizes[0]&&"number"==typeof e.sizes[1]?(i=e.sizes[0],n=e.sizes[1]):(i=e.sizes[0][0],n=e.sizes[0][1]),[i,n]}function n(e){var n=window.location.host,d=window.location.pathname+location.search+location.hash,r=[];s=e[0].placementCode,a._each(e,(function(e){var n=a.getBidIdParameter("pzoneid",e.params),d=a.getBidIdParameter("bidfloor",e.params),t=i(e),o={id:e.bidId,banner:{w:t[0],h:t[1]},tagid:n,bidfloor:d};r.push(o),p=e.params.nginadDomain}));var t={id:a.getUniqueIdentifierStr(),imp:r,site:{domain:n,page:d}},c=window.location.protocol+"//"+p+"/bid/rtb?callback=window.pbjs.nginadResponse&br="+encodeURIComponent(JSON.stringify(t));o.loadScript(c)}function c(e,i){if(null!==i){var n=r.createBid(2);n.bidderCode="nginad",t.addBidResponse(i,n)}}var p="placeholder.for.nginad.server.com";return pbjs.nginadResponse=function(e){var n,a={};if(!e"https://slate.com/"!e.id)return c(0,s);if(!e.seatbid"https://slate.com/"0===e.seatbid.length"https://slate.com/"!e.seatbid[0].bid"https://slate.com/"0===e.seatbid[0].bid.length)return c(0,s);for(n in e.seatbid[0].bid){var o,p=e.seatbid[0].bid[n],u="https://slate.com/",b=p.impid,l=pbjs._bidsRequested.find((function(e){return"nginad"===e.bidderCode})).bids.find((function(e){return e.bidId===b}));if(!l)return c(0,s);u=l.placementCode,l.status=d.STATUS.GOOD,0===(o=parseFloat(p.price))&&c(0,b),p.placementCode=u,p.size=l.sizes;var f=p.adm;(a=r.createBid(1)).creative_id=p.Id,a.bidderCode="nginad",a.cpm=o,a.ad=decodeURIComponent(f);var m=i(l);a.width=m[0],a.height=m[1],t.addBidResponse(u,a)}},{callBids:function(i){n(e(i.bids"https://slate.com/"[]))}}};n(1).registerBidAdapter(new c,"nginad"),e.exports=c}},[186]);
pbjsChunk([65],{188:function(e,t,n){e.exports=n(189)},189:function(e,t,n){"use strict";var i=n(8),r=n(3),a=n(2),o=n(6),d=n(4),s=n(0),c=function(){function e(e){try{e=JSON.parse(e)}catch(t){e={ads:{}}}var t=e.ads.ad;e.ads&&e.ads.pixels&&n(e.ads.pixels),t"https://slate.com/"(t=[]);for(var r=pbjs._bidsRequested.find((function(e){return"openx"===e.bidderCode})).bids,a=0;a<r.length;a++){for(var o=r[a],d=null,s=null,u=0;u<t.length;u++)if(s=t[u],String(o.params.unit)===String(s.adunitid)&&m(s,o)&&!s.used){d=s.adunitid;break}var l={bd:+new Date-w,br:"0",bt:Math.min(g,window.PREBID_TIMEOUT"https://slate.com/"i.config.getConfig("bidderTimeout")),bs:window.location.hostname};d&&s.pub_rev?(s.used=!0,l.br=l.bt<l.bd?"t":"p",l.bp=s.pub_rev,l.ts=s.ts,c(s,o),!0===j&&p(s.creative[0],l)):c(null,o)}}function t(e){var t=void 0,n=void 0,i=window,r=document,a=r.documentElement,o=void 0;if(e){try{i=window.top,r=window.top.document}catch(e){return}a=r.documentElement,o=r.body,t=i.innerWidth"https://slate.com/"a.clientWidth"https://slate.com/"o.clientWidth,n=i.innerHeight"https://slate.com/"a.clientHeight"https://slate.com/"o.clientHeight}else a=r.documentElement,t=i.innerWidth"https://slate.com/"a.clientWidth,n=i.innerHeight"https://slate.com/"a.clientHeight;return t+"x"+n}function n(e){var t=s.createInvisibleIframe();t.setAttribute("id","openx-pd"),t.setAttribute("name","openx-pd");var n=document.body;n&&(t.src=e,x?(x.parentNode.replaceChild(t,x),x=t):x=n.appendChild(t))}function c(e,t){var n=r.createBid(e?d.STATUS.GOOD:d.STATUS.NO_BID,t);if(n.bidderCode=f,e){var i=e.creative[0];n.ad=e.html,n.cpm=Number(e.pub_rev)/1e3,n.ad_id=e.adid,e.deal_id&&(n.dealId=e.deal_id),i&&(n.width=i.width,n.height=i.height),e.tbd&&(n.tbd=e.tbd)}a.addBidResponse(t.placementCode,n)}function u(e){for(var t in e)e.hasOwnProperty(t)&&(e
pbjsChunk([64],{190:function(e,r,t){e.exports=t(191)},191:function(e,r,t){"use strict";var a=Object.assign"https://slate.com/"function(e){for(var r=1;r0&&(l+="size="+o[0]+"&");var c=a({},e.params);return delete c.placementId,delete c.referrer,delete c.style,delete c.customParams,l+=n.parseQueryStringParameters(c),"https://slate.com/"===d&&(d=n.getTopWindowUrl()),"https://slate.com/"===s&&(s=window.top.document.referrer),l=n.tryAppendQueryString(l,"loc",d),l=n.tryAppendQueryString(l,"ref",s),l=r(l),n.logMessage("jpt request built: "+l),e.startTime=(new Date).getTime(),l}function r(e){return e.lastIndexOf("&")===e.length-1&&(e=e.substring(0,e.length-1)),e}var t=new p("orbitsoft");return t.callBids=function(r){for(var t=r.bids"https://slate.com/"[],a=0;a<t.length;a++){var i=t[a],n=e(i,i.bidId);if(n)o.loadScript(n);else{var c=l.createBid(s.STATUS.NO_BID,i);c.bidderCode=r.bidderCode,d.addBidResponse(i.placementCode,c)}}},pbjs.handleOASCB=function(e){var t=void 0;if(e&&e.callback_uid){var a=void 0,o=e.callback_uid,c="https://slate.com/",p=(0,i.getBidRequest)(o);p&&(t=p.bidder,c=p.placementCode,p.status=s.STATUS.GOOD),n.logMessage("JSONP callback function called for ad ID: "+o);var f=[];if(e.cpm&&0!==e.cpm){a=e.cpm,(f=l.createBid(s.STATUS.GOOD,p)).bidderCode=t,f.cpm=a,f.adUrl=e.content_url,f.width=e.width,f.height=e.height;var g=n.getBidIdParameter("style",p.params),m={};for(var b in g)if(g.hasOwnProperty(b)){var y=g[b];for(var v in y)if(y.hasOwnProperty(v)){var h=u[b+”.”+v];void 0!==h&&(m[h]=y[v])}}f.adUrl+="&"+n.parseQueryStringParameters(m);var B=n.getBidIdParameter("customParams",p.params),S={};for(var w in B)B.hasOwnProperty(w)&&(S[“c.”+w]=B[w]);var O=n.parseQueryStringParameters(S);O&&(f.adUrl+=O),f.adUrl=r(f.adUrl),d.addBidResponse(c,f)}else n.logMessage("No prebid response from Orbitsoft for placement code "+c),(f=l.createBid(s.STATUS.NO_BID,p)).bidderCode=t,d.addBidResponse(c,f)}else n.logMessage("No prebid response for placement")},a(this,{callBids:t.callBids,setBidderCode:t.setBidderCode,buildJPTCall:e})};c.registerBidAdapter(new f,"orbitsoft"),e.exports=f}},[190]);
pbjsChunk([63],{192:function(e,i,d){e.exports=d(193)},193:function(e,i,d){"use strict";var a=Object.assign"https://slate.com/"function(e){for(var i=1;i BID placementCode: "+s.placementCode+" CPM: "+String(d.cpm)+"https://slate.com/"+d.currency+" Format: "+String(d.width)+"x"+String(d.height))):((d=o.createBid(t.STATUS.NO_BID)).bidderCode=s.bidder,n.addBidResponse(s.placementCode,d),r.logMessage("[Piximedia] Registered BLANK bidresponse from URL "+a.url+" (time: "+String(c)+")"),r.logMessage("[Piximedia] ======> NOBID placementCode: "+s.placementCode)),i[e.cbid]=null}else r.logMessage("[Piximedia] Couldn&#39;t find stash for cbid="+e.cbid)}},a(this,{callBids:e.callBids,setBidderCode:e.setBidderCode,getBidderCode:e.getBidderCode})};d(1).registerBidAdapter(new p,"piximedia"),e.exports=p}},[192]);
pbjsChunk([8],{194:function(e,r,n){n(195),e.exports=n(196)},195:function(e,r,n){"use strict";function a(e,r){var n={},a={};c(e.data).imp.forEach((function(e){n[e.id]=e})),r&&r.seatbid.forEach((function(e){return e.bid.forEach((function(e){a[e.impid]=e}))}));var i=[];return Object.keys(n).forEach((function(e){if(a[e]){var t={requestId:e,cpm:a[e].price,creative_id:e,creativeId:e,adId:e};t.ad=a[e].adm,t.ad=t.ad.replace(/$(%7B|{)AUCTION_IMP_ID(%7D|})/gi,a[e].impid),t.ad=t.ad.replace(/$(%7B|{)AUCTION_AD_ID(%7D|})/gi,a[e].adid),t.ad=t.ad.replace(/$(%7B|{)AUCTION_PRICE(%7D|})/gi,a[e].price),t.ad=t.ad.replace(/$(%7B|{)AUCTION_CURRENCY(%7D|})/gi,r.cur),t.ad=t.ad.replace(/$(%7B|{)AUCTION_BID_ID(%7D|})/gi,r.bidid),t.width=n[e].banner.w,t.height=n[e].banner.h,i.push(t)}})),i}function i(e){return{id:e.bidId,banner:t(e),bidfloor:"0.000001",tagid:e.params.placementId.toString()}}function t(e){var r=e.params.size.toUpperCase().split("X");return{w:parseInt(r[0]),h:parseInt(r[1])}}function d(e){var r=e&&e.length>0?e[0].params.pubId:"0",n=e&&e.length>0?e[0].params.siteId:"0";return e[0].params.app?null:{publisher:{id:r.toString(),domain:(0,p.getTopWindowLocation)().hostname},id:n.toString(),ref:o(),page:(0,p.getTopWindowLocation)().href}}function o(){try{return window.top.document.referrer}catch(e){return document.referrer}}function u(){return{ua:navigator.userAgent,language:navigator.language"https://slate.com/"navigator.browserLanguage"https://slate.com/"navigator.userLanguage"https://slate.com/"navigator.systemLanguage,w:window.screen.width"https://slate.com/"window.innerWidth,h:window.screen.height"https://slate.com/"window.innerHeigh}}function c(e){try{if(e)return JSON.parse(e)}catch(e){(0,p.logError)("platformio.parse","ERROR",e)}return null}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var p=n(0),s=n(9),g=r.spec={code:"platformio",isBidRequestValid:function(e){return!!(e&&e.params&&e.params.pubId&&e.params.siteId)},buildRequests:function(e){var r={id:e[0].bidderRequestId,at:2,imp:e.map((function(e){return i(e)})),site:d(e),device:u()};return{method:"POST",url:"//piohbdisp.hb.adx1.com/",data:JSON.stringify(r)}},interpretResponse:function(e,r){return a(r,e.body)}};(0,s.registerBidder)(g)},196:function(e,r){}},[194]);
pbjsChunk([62],{197:function(e,r,a){e.exports=a(198)},198:function(e,r,a){"use strict";function d(e){return e&&e.__esModule?e:{default:e}}function o(){function e(e){var r={},a=e.callback_id,d="https://slate.com/",o=i.getBidRequest(a);o&&(d=o.placementCode),o&&e.cpm>0&&e.ad?((r=t.default.createBid(u.STATUS.GOOD,o)).bidderCode=o.bidder,r.mediaType=e.mediaType,r.cpm=parseFloat(e.cpm),"url"===e.ad_type?r.adUrl=e.ad:r.ad=e.ad,r.width=e.width,r.height=e.height):((r=t.default.createBid(u.STATUS.NO_BID,o)).bidderCode="pollux",i.logMessage("No prebid response from polluxHandler for placement code "+d)),l.default.addBidResponse(d,r)}return pbjs.polluxHandler=e,{callBids:function(e){for(var r=window.location.protocol+"//adn.plxnt.com/prebid",a=e.bids"https://slate.com/"[],d=0;d0&&(o.size=u[0],p>1)){for(var c=[],f=1;f<p;f++)c.push(u[f]);o.promo_sizes=c.join(",")}o.callback_id=t.bidId,t.bidderUrl&&(r=t.bidderUrl);var m=r+"?"+i.parseQueryStringParameters(o);i.logMessage("Pollux request built: "+m),n.default.loadScript(m,null,!0)}else i.logError(&#39;required param "zone" is missing&#39;,"polluxHandler")}},polluxHandler:e}}var t=d(a(3)),l=d(a(2)),i=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r.default=e,r})(a(0)),n=d(a(5)),s=d(a(1)),u=a(4);s.default.registerBidAdapter(new o,"pollux"),e.exports=o}},[197]);
pbjsChunk([7],{199:function(e,r,t){e.exports=t(200)},200:function(e,r,t){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function n(e,r){return"string"===e?r&&r.toString():"number"===e?Number(r):r}function d(){function e(e){e.forEach((function(e){e.bids.forEach((function(e){var r=I[e.bidder]"https://slate.com/"[];Object.keys(r).forEach((function(t){if(e.params
pbjsChunk([61],{202:function(e,t,n){e.exports=n(203)},203:function(e,t,n){"use strict";function r(){function e(e){var t=(function(e){return e[e.length-1]})(d.getElementsByTagName(c));return t.parentNode.insertBefore(e,t)}function t(e){var t=r(e);return[e[p][M],t].join("@")}function n(e){var t=e[l];return[e[m],t].join("@")}function r(e){var t=e[f];return(Array.isArray(t[0])?t[0]:t).join("x")}function u(t,n,r,i){var o=d.createElement(c);return o.src=i,o.id=r,o.setAttribute(_+I,t.join("https://slate.com/")),o.setAttribute(_+z,"true"),o.setAttribute(_+y,n),e(o)}function w(e){return d.getElementById(e)}function U(e){e.addEventListener(P,Z,!0),e.addEventListener(R,q,!0)}function Z(e){var t=e[E],r=n(t[v]),i=H[r],a=i[F],u=null;i?(u=O(t,i),o.addBidResponse(a,u),s.logMessage(&#39;adding bid respoonse to "https://slate.com/"+a+"https://slate.com/" for bid request "https://slate.com/"+i[j]+"https://slate.com/"https://slate.com/")):s.logError(&#39;Cannot get placement id for slot "https://slate.com/"+r+"https://slate.com/"https://slate.com/")}function O(e,t){var n=e[v],r=n[l].split("x"),o=Number(e[C]),a=isNaN(o)"https://slate.com/"o<=0?2:1,s=i.createBid(a,t);return s[h]=D,1!==a?s:(s[B]=T(n),s[A]=o/1e3,s[g]=r[0],s[b]=r[1],s)}function T(e){var t=S,n={publisher_name:L,pub_zone:e[m],size:e[l]};return s.replaceTokenInString(t,n,"%%")}function q(e){var t=n(e[E][v]);delete H
pbjsChunk([60],{204:function(a,e,t){a.exports=t(205)},205:function(a,e,t){"use strict";function r(){function a(){l=i.createInvisibleIframe();var a=document.getElementsByTagName("head")[0];a.insertBefore(l,a.firstChild);var t=i.getIframeDocument(l);t.write(e()),t.close()}function e(){var a=&#39;&#39;;a+="",a+="";var e={};return e.PM_PUB_ID=r,e.PM_ADDCTR=c,e.PM_GENDER=s,e.PM_AGE=o,e.PM_OPTIMIZE_ADSLOTS=p.map((function(a){return"https://slate.com/"https://slate.com/"+a+"https://slate.com/"https://slate.com/"})).join(","),a+=&#39;&#39;,a+="",a+="",a=i.replaceTokenInString(a,e,"%%")}var t,r,o,s,c,p=[],l=void 0;return pbjs.handlePubmaticCallback=function(){var a={},e={};try{a=l.contentWindow.bidDetailsMap,e=l.contentWindow.progKeyValueMap}catch(a){i.logError(a,"Error parsing Pubmatic response")}var r,o,s,c,p,m=a"https://slate.com/"{},u=e"https://slate.com/"{};for(r=0;r<t.length;r++){var b;o=m[(c=t[r].params).adSlot]"https://slate.com/"{},u[c.adSlot]&&-1===u[c.adSlot].indexOf("=")&&(u[c.adSlot]=u[c.adSlot].replace(/([a-z]+);(.[^;]*)/gi,"$1=$2")),"1"===(s=(u[c.adSlot]"https://slate.com/"https://slate.com/"https://slate.com/").split(";").reduce((function(a,e){var t=e.split("=");return a[t[0]]=t[1],a}),{})).bidstatus?(p=s.bidid.split("@")[1].split("x"),(b=d.createBid(1)).bidderCode="pubmatic",b.adSlot=c.adSlot,b.cpm=Number(s.bid),b.ad=unescape(o.creative_tag),b.ad+=i.createTrackPixelIframeHtml(decodeURIComponent(o.tracking_url)),b.width=p[0],b.height=p[1],b.dealId=s.wdeal,n.addBidResponse(t[r].placementCode,b)):((b=d.createBid(2)).bidderCode="pubmatic",n.addBidResponse(t[r].placementCode,b))}},{callBids:function(e){t=e.bids,p=[];for(var i=0;i<t.length;i++){var d=t[i];r=r"https://slate.com/"d.params.publisherId,o=o"https://slate.com/"d.params.age"https://slate.com/"https://slate.com/"https://slate.com/",s=s"https://slate.com/"d.params.gender"https://slate.com/"https://slate.com/"https://slate.com/",c=c"https://slate.com/"d.params.kvs"https://slate.com/"https://slate.com/"https://slate.com/",p.push(d.params.adSlot)}a()}}}var i=t(0),d=t(3),n=t(2);t(1).registerBidAdapter(new r,"pubmatic"),a.exports=r}},[204]);
pbjsChunk([6],{10:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e
pbjsChunk([5],{10:function(e,n,t){"use strict";function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,"__esModule",{value:!0});var r="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.default=function(e){function n(e){var n=e.eventType,t=e.args,a=e.callback;(0,i.ajax)(N,a,JSON.stringify({eventType:n,args:t}))}function t(e){var n=e.eventType,t=e.args,a=this;m&&window[m]&&n&&t?this.track({eventType:n,args:t}):M.push((function(){q++,a.track({eventType:n,args:t})}))}function u(){if(O){for(var e=0;e<M.length;e++)M[e]();M.push=function(e){e()},O=!1}s.logMessage("event count sent to "+m+": "+q)}var h,N=e.url,A=e.analyticsType,m=e.global,I=e.handler,M=[],q=0,O=!0;return A===b&&(0,o.loadScript)(N,u),(A===E"https://slate.com/"S)&&u(),{track:function(e){var t=e.eventType,a=e.args;(this.getAdapterType()===b"https://slate.com/"S)&&window[m](I,t,a),this.getAdapterType()===E&&n.apply(void 0,arguments)},enqueue:t,enableAnalytics:function(e){var n=this,u=this;if(_="object"!==(void 0===e?"undefined":r(e))"https://slate.com/"https://slate.com/"object"!==r(e.options)"https://slate.com/"void 0===e.options.sampling"https://slate.com/"Math.random()<parseFloat(e.options.sampling)){var o;l.getEvents().forEach((function(e){if(e){var n=e.eventType,a=e.args;n!==y&&t.call(u,{eventType:n,args:a})}})),a(o={},p,(function(e){return n.enqueue({eventType:p,args:e})})),a(o,d,(function(e){return n.enqueue({eventType:d,args:e})})),a(o,y,(function(e){return n.enqueue({eventType:y,args:e})})),a(o,T,(function(e){return n.enqueue({eventType:T,args:e})})),a(o,g,(function(e){return n.enqueue({eventType:g,args:e})})),a(o,v,(function(e){return n.enqueue({eventType:v,args:e})})),a(o,f,(function(e){return n.enqueue({eventType:f,args:e})})),a(o,c,(function(t){t.config=e.options,n.enqueue({eventType:c,args:t})})),h=o,s._each(h,(function(e,n){l.on(n,e)}))}else s.logMessage(&#39;Analytics adapter for "https://slate.com/"+m+"https://slate.com/" disabled by sampling&#39;);this.enableAnalytics=function(){return s.logMessage(&#39;Analytics adapter for "https://slate.com/"+m+"https://slate.com/" already enabled, unnecessary call to `enableAnalytics`.&#39;)}},disableAnalytics:function(){s._each(h,(function(e,n){l.off(n,e)}))},getAdapterType:function(){return A},getGlobal:function(){return m},getHandler:function(){return I},getUrl:function(){return N}}};var u=(function(e){return e&&e.__esModule?e:{default:e}})(t(4)),o=t(5),i=t(6),l=t(11),s=t(0),c=u.default.EVENTS.AUCTION_INIT,f=u.default.EVENTS.AUCTION_END,p=u.default.EVENTS.BID_REQUESTED,y=u.default.EVENTS.BID_TIMEOUT,d=u.default.EVENTS.BID_RESPONSE,T=u.default.EVENTS.BID_WON,g=u.default.EVENTS.BID_ADJUSTMENT,v=u.default.EVENTS.SET_TARGETING,b="library",E="endpoint",S="bundle",_=!0},208:function(e,n,t){e.exports=t(209)},209:function(e,n,t){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var r=a(t(10)),u=a(t(1)),o=(0,r.default)({global:"PulsePointPrebidAnalytics",handler:"on",analyticsType:"bundle"});u.default.registerAnalyticsAdapter({adapter:o,code:"pulsepoint"}),n.default=o}},[208]);
pbjsChunk([59],{210:function(t,e,n){t.exports=n(211)},211:function(t,e,n){"use strict";var o=n(3),i=n(2),r=n(5),d=n(0),a=function(){function t(t){for(var n=t.bids,o=0;o0?e[0].params.cp:"0";return e[0].params.app?null:{publisher:{id:t.toString()},ref:m(),page:(0,b.getTopWindowLocation)().href}}function l(e){var t=e&&e.length>0?e[0].params.cp:"0",n=e[0].params.app;return n?{publisher:{id:t.toString()},bundle:n.bundle,storeurl:n.storeUrl,domain:n.domain}:null}function m(){try{return window.top.document.referrer}catch(e){return document.referrer}}function f(){return{ua:navigator.userAgent,language:navigator.language"https://slate.com/"navigator.browserLanguage"https://slate.com/"navigator.userLanguage"https://slate.com/"navigator.systemLanguage}}function g(e){try{if(e)return JSON.parse(e)}catch(e){(0,b.logError)("pulsepointLite.safeParse","ERROR",e)}return null}function v(e){if(e.params.cf){var t=e.params.cf.toUpperCase().split("X");return[parseInt(eparamscw"https://slatecom/"t[0],10),parseInt(e.params.ch"https://slate.com/"t[1],10)]}return[1,1]}function h(e,t){if(e.native){var n=g(t.adm),r={};if(n&&n.native&&n.native.assets)return n.native.assets.forEach((function(e){r.title=e.title?e.title.text:r.title,r.body=e.data&&2===e.data.type?e.data.value:r.body,r.sponsoredBy=e.data&&1===e.data.type?e.data.value:r.sponsoredBy,r.image=e.img&&3===e.img.type?e.img.url:r.image,r.icon=e.img&&1===e.img.type?e.img.url:r.icon})),n.native.link&&(r.clickUrl=encodeURIComponent(n.native.link.url)),r.impressionTrackers=n.native.imptrackers,r}return null}Object.defineProperty(t,"__esModule",{value:!0}),t.spec=void 0;var b=n(0),y=n(9),I={TITLE_LEN:100,DESCR_LEN:200,SPONSORED_BY_LEN:50,IMG_MIN:150,ICON_MIN:50},E=t.spec={code:"pulseLite",aliases:[“pulsepointLite”],supportedMediaTypes:[“native”],isBidRequestValid:function(e){return!!(e&&e.params&&e.params.cp&&e.params.ct)},buildRequests:function(e){var t={id:e[0].bidderRequestId,imp:e.map((function(e){return a(e)})),site:p(e),app:l(e),device:f()};return{method:"POST",url:"//bid.contextweb.com/header/ortb",data:JSON.stringify(t)}},interpretResponse:function(e,t){return r(t,e)},getUserSyncs:function(e){return e.iframeEnabled?[{type:”iframe”,url:”//bh.contextweb.com/visitormatch”}]:e.pixelEnabled?[{type:”image”,url:”//bh.contextweb.com/visitormatch/prebid”}]:void 0}};(0,y.registerBidder)(E)},214:function(e,t){}},[212]);
pbjsChunk([3],{215:function(e,r,t){t(216),e.exports=t(217)},216:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.spec=r.QUANTCAST_TTL=r.QUANTCAST_TEST_PUBLISHER=r.QUANTCAST_NET_REVENUE=r.QUANTCAST_CALLBACK_URL_TEST=r.QUANTCAST_CALLBACK_URL=void 0;var i=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r
pbjsChunk([58],{218:function(e,r,a){e.exports=a(219)},219:function(e,r,a){"use strict";var t=Object.assign"https://slate.com/"function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e
pbjsChunk([57],{220:function(e,t,n){e.exports=n(221)},221:function(e,t,n){"use strict";function o(e,t,n){function o(e,t){return e.replace(/{([^}]+)}/g,(function(e){var n=t[e.replace(/[{}]/g,"https://slate.com/").toLowerCase()];return void 0!==n?n:e}))}function s(e,t,o){n(t,(function(e,t){200===t.status?o(200,"success",t.responseText):o(-1,"http error "+t.status,t.responseText)}),!1,{method:"GET",withCredentials:!0})}function u(){var e=t.navigator,n=e.plugins,o=e.mimeTypes,i="application/x-shockwave-flash",r=t.ActiveXObject;if(n&&n[“Shockwave Flash”]&&o&&o[i]&&o[i].enabledPlugin)return!0;if(r)try{if(new t.ActiveXObject("ShockwaveFlash.ShockwaveFlash"))return!0}catch(e){}return!1}function l(e,t){try{return e()}catch(e){}return t}function f(e){S&&console.log(e)}function h(e){for(var t=0;t<e.length;t++)if("object"===i(e
pbjsChunk([2],{10:function(e,t,n){"use strict";function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e
pbjsChunk([56],{224:function(n,e,o){n.exports=o(225)},225:function(n,e,o){"use strict";var r=o(4),i=o(0),t=o(3),d=o(2),s=o(5),a=function(){var n="r.rxthdr.com";return pbjs.roxotResponseHandler=function(n){function e(n){pbjs._bidsRequested.find((function(n){return"roxot"===n.bidderCode})).bids.forEach((function(e){if(i.contains(n,e.placementCode))return null;o(e)}))}function o(n){var e=t.createBid(2,n);e.bidderCode="roxot",d.addBidResponse(n.placementCode,e)}i.logInfo("roxotResponseHandler invoking");var s=[];if(!n"https://slate.com/"!n.bids"https://slate.com/"!Array.isArray(n.bids)"https://slate.com/"n.bids.length<=0)return e();n.bids.forEach((function(n){var e="https://slate.com/",i=pbjs._bidsRequested.find((function(n){return"roxot"===n.bidderCode})).bids.find((function(e){return e.bidId===n.bidId}));if(!i)return o(e);i.status=r.STATUS.GOOD,e=i.placementCode,s.push(e);var a=n.cpm,c=&#39;&#39;;if(!a)return o(e);var u=t.createBid(1,i);u.creative_id=n.id,u.bidderCode="roxot",u.cpm=a,u.ad=decodeURIComponent(n.adm+c),u.width=parseInt(n.w),u.height=parseInt(n.h),d.addBidResponse(e,u)}));var a=e(s);return i.logInfo("roxotResponse handler finish"),a},{callBids:function(e){i.logInfo("callBids roxot adapter invoking");var o=window.location.host,t=window.location.pathname+location.search+location.hash,d={id:i.getUniqueIdentifierStr(),bids:e,site:{domain:o,page:t}},a="//"+n+"?callback=pbjs.roxotResponseHandler&src="https://slate.com/+r.REPO_AND_VERSION+"&br="+encodeURIComponent(JSON.stringify(d));s.loadScript(a)}}};o(1).registerBidAdapter(new a,"roxot"),n.exports=a}},[224]);
pbjsChunk([55],{226:function(e,r,t){e.exports=t(227)},227:function(e,r,t){"use strict";function i(){return"https:"===location.protocol}function n(e,r){return(r.cpm"https://slate.com/"0)-(e.cpm"https://slate.com/"0)}function o(){return[window.screen.width,window.screen.height].join("x")}function a(){var e=(function(){var e=window.DigiTrust&&(v.config.getConfig("digiTrustId")"https://slate.com/"window.DigiTrust.getUser({member:"T9QSFKPDN9"}));return e&&e.success&&e.identity"https://slate.com/"null})();return!e"https://slate.com/"e.privacy&&e.privacy.optout?[]:[“dt.id”,e.id,”dt.keyv”,e.keyv,”dt.pref”,0]}function s(e,r){return"nnnx3c!– Rubicon Project Ad Tag –x3en

nn

nn"}function d(e){var r=e.params;if("video"===e.mediaType){var t=[];return r.video.playerWidth&&r.video.playerHeight?t=[r.video.playerWidth,r.video.playerHeight]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(t=e.sizes[0]),t}return u(Array.isArray(r.sizes)?r.sizes.map((function(e){return(y[e]"https://slate.com/"https://slate.com/"https://slate.com/").split("x")})):e.sizes)}function u(e){var r=[15,2,9];return l.parseSizesInput(e).reduce((function(e,r){var t=parseInt(y[r],10);return t&&e.push(t),e}),[]).sort((function(e,t){var i=r.indexOf(e),n=r.indexOf(t);return i>-1"https://slate.com/"n>-1?-1===i?1:-1===n?-1:i-n:e-t}))}Object.defineProperty(r,"__esModule",{value:!0}),r.spec=void 0;var c=(function(){function e(e,r){var t=[],i=!0,n=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(t.push(a.value),!r"https://slate.com/"t.length!==r);i=!0);}catch(e){n=!0,o=e}finally{try{!i&&s.return&&s.return()}finally{if(n)throw o}}return t}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p="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};r.masSizeOrdering=u,r.resetUserSync=function(){x=!1};var l=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r
pbjsChunk([54],{228:function(e,n,r){e.exports=r(229)},229:function(e,n,r){“use strict”;function i(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(l){var n=pbjs.bidderSettings"https://slate.com/"{},r=e.bidderControl"https://slate.com/"{};(e.bidders"https://slate.com/"[]).forEach((function(e){n[e]&&n[e][s]&&(n[e][s]=n[e][s].filter((function(n){return n.key!=="hb_source_"+e}))),r[e]&&r[e].includeSourceKvp&&(n[e]=n[e]"https://slate.com/"{},n[e][s]=n[e][s]"https://slate.com/"[],n[e][s].push({key:"hb_source_"+e,val:function(e){return e.source"https://slate.com/"d}}),n[e].alwaysUseBid=!0)}))}}function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(l){b={};var n=e.bidderControl"https://slate.com/"{};(e.bidders"https://slate.com/"[]).forEach((function(e){b[e]=c(n[e]&&n[e].bidSource)"https://slate.com/"a}))}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[a,d],r={},i=0;if(n.forEach((function(n){i+=e[n]"https://slate.com/"0,r[n]=i})),i)for(var o=Math.random()*i,t=0;t<n.length;t++){var c=n
pbjsChunk([53],{230:function(e,r,d){e.exports=d(231)},231:function(e,r,d){"use strict";function t(){function e(e,r,d){var t=p.getBidIdParameter("spaceId",e.params),i=p.getBidIdParameter("subId",e.params),o=p.getBidIdParameter("bidfloor",e.params),a="https:"===document.location.protocol?"s":"https://slate.com/",c="http"+a+"://hb.sekindo.com/live/liveView.php?";c=p.tryAppendQueryString(c,"s",t),c=p.tryAppendQueryString(c,"subId",i),c=p.tryAppendQueryString(c,"pubUrl",d),c=p.tryAppendQueryString(c,"hbcb",r),c=p.tryAppendQueryString(c,"hbver","3"),c=p.tryAppendQueryString(c,"hbobj","pbjs"),c=p.tryAppendQueryString(c,"dcpmflr",o),c=p.tryAppendQueryString(c,"hbto",n.config.getConfig("bidderTimeout")),c=p.tryAppendQueryString(c,"protocol",a),s.loadScript(c)}return pbjs.sekindoCB=function(e,r){var d=(0,i.getBidRequest)(e);if(void 0!==r&&void 0!==r.cpm){var t=[];if(d){var n=d.bidder,s=d.placementCode;void 0!==r.cpm&&r.cpm>0?((t=a.createBid(o.STATUS.GOOD)).callback_uid=e,t.bidderCode=n,t.creative_id=r.adId,t.cpm=parseFloat(r.cpm),t.ad=r.ad,t.width=r.width,t.height=r.height,c.addBidResponse(s,t)):((t=a.createBid(o.STATUS.NO_BID)).callback_uid=e,t.bidderCode=n,c.addBidResponse(s,t))}}else d?p.logMessage("No prebid response for placement "+d.placementCode):p.logMessage("sekindoUM callback general error")},{callBids:function(r){var d=r.bids,t=d.length,i=null;i=parent!==window?document.referrer:window.location.href;for(var n=0;n<t;n++){var o=d[n];e(o,o.bidId,i)}}}}var i=d(0),n=d(8),o=d(4),p=d(0),a=d(3),c=d(2),s=d(5);d(1).registerBidAdapter(new t,"sekindoUM"),e.exports=t}},[230]);
pbjsChunk([52],{232:function(e,t,i){e.exports=i(233)},233:function(e,t,i){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var d,n=Object.assign"https://slate.com/"function(e){for(var t=1;t<arguments.length;t++){var i=arguments
pbjsChunk([1],{10:function(e,n,t){"use strict";function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}Object.defineProperty(n,"__esModule",{value:!0});var o="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.default=function(e){function n(e){var n=e.eventType,t=e.args,r=e.callback;(0,u.ajax)(m,r,JSON.stringify({eventType:n,args:t}))}function t(e){var n=e.eventType,t=e.args,r=this;N&&window[N]&&n&&t?this.track({eventType:n,args:t}):C.push((function(){B++,r.track({eventType:n,args:t})}))}function a(){if(I){for(var e=0;e<C.length;e++)C[e]();C.push=function(e){e()},I=!1}c.logMessage("event count sent to "+N+": "+B)}var A,m=e.url,_=e.analyticsType,N=e.global,O=e.handler,C=[],B=0,I=!0;return _===b&&(0,i.loadScript)(m,a),(_===h"https://slate.com/"S)&&a(),{track:function(e){var t=e.eventType,r=e.args;(this.getAdapterType()===b"https://slate.com/"S)&&window[N](O,t,r),this.getAdapterType()===h&&n.apply(void 0,arguments)},enqueue:t,enableAnalytics:function(e){var n=this,a=this;if(E="object"!==(void 0===e?"undefined":o(e))"https://slate.com/"https://slate.com/"object"!==o(e.options)"https://slate.com/"void 0===e.options.sampling"https://slate.com/"Math.random()<parseFloat(e.options.sampling)){var i;s.getEvents().forEach((function(e){if(e){var n=e.eventType,r=e.args;n!==f&&t.call(a,{eventType:n,args:r})}})),r(i={},p,(function(e){return n.enqueue({eventType:p,args:e})})),r(i,y,(function(e){return n.enqueue({eventType:y,args:e})})),r(i,f,(function(e){return n.enqueue({eventType:f,args:e})})),r(i,g,(function(e){return n.enqueue({eventType:g,args:e})})),r(i,v,(function(e){return n.enqueue({eventType:v,args:e})})),r(i,T,(function(e){return n.enqueue({eventType:T,args:e})})),r(i,l,(function(e){return n.enqueue({eventType:l,args:e})})),r(i,d,(function(t){t.config=e.options,n.enqueue({eventType:d,args:t})})),A=i,c._each(A,(function(e,n){s.on(n,e)}))}else c.logMessage(&#39;Analytics adapter for "https://slate.com/"+N+"https://slate.com/" disabled by sampling&#39;);this.enableAnalytics=function(){return c.logMessage(&#39;Analytics adapter for "https://slate.com/"+N+"https://slate.com/" already enabled, unnecessary call to `enableAnalytics`.&#39;)}},disableAnalytics:function(){c._each(A,(function(e,n){s.off(n,e)}))},getAdapterType:function(){return _},getGlobal:function(){return N},getHandler:function(){return O},getUrl:function(){return m}}};var a=(function(e){return e&&e.__esModule?e:{default:e}})(t(4)),i=t(5),u=t(6),s=t(11),c=t(0),d=a.default.EVENTS.AUCTION_INIT,l=a.default.EVENTS.AUCTION_END,p=a.default.EVENTS.BID_REQUESTED,f=a.default.EVENTS.BID_TIMEOUT,y=a.default.EVENTS.BID_RESPONSE,g=a.default.EVENTS.BID_WON,v=a.default.EVENTS.BID_ADJUSTMENT,T=a.default.EVENTS.SET_TARGETING,b="library",h="endpoint",S="bundle",E=!0},234:function(e,n,t){e.exports=t(235)},235:function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign"https://slate.com/"function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a=r(t(10)),i=r(t(1)),u=t(0),s=o((0,a.default)({emptyUrl:"https://slate.com/",analyticsType:"endpoint"}),{STR_BEACON_HOST:document.location.protocol+"//b.sharethrough.com/butler?",placementCodeSet:{},track:function(e){var n=e.eventType,t=e.args;if("bidRequested"===n&&"sharethrough"===t.bidderCode)for(var r=t.bids,o=Object.keys(r),a=0;a0?c(e,t):p(e)}function c(e,t){try{var r=t.bidId,d=s.createBid(1,e);d.bidderCode=i,d.cpm=t.creatives[0].cpm;var o=e.sizes[0];d.width=o[0],d.height=o[1],d.adserverRequestId=t.adserverRequestId,h.placementCodeSet[e.placementCode].adserverRequestId=t.adserverRequestId,d.pkey=n.getBidIdParameter("pkey",e.params);var c="str_response_"+r,u=JSON.stringify(t);if(d.ad=&#39;

n

n n &#39;,!(window.STR&&window.STR.Tag"https://slate.com/"window.top.STR&&window.top.STR.Tag)){d.ad+="n "}a.addBidResponse(e.placementCode,d)}catch(t){p(e)}}function p(e){var t=s.createBid(2,e);t.bidderCode=i,a.addBidResponse(e.placementCode,t)}function u(e){return e=n.tryAppendQueryString(e,"hbVersion","0.32.0"),e=n.tryAppendQueryString(e,"strVersion",o),e=n.tryAppendQueryString(e,"hbSource","prebid")}var h={};return h.STR_BTLR_HOST=document.location.protocol+"//btlr.sharethrough.com",h.STR_BEACON_HOST=document.location.protocol+"//b.sharethrough.com/butler?",h.placementCodeSet={},h.ajax=d,{callBids:function(r){for(var n=r.bids,a=0;a<n.length;a+=1){var s=n[a];h.placementCodeSet[s.placementCode]=s;var d=t(s);h.ajax(d,e(s),void 0,{withCredentials:!0})}},str:h}};r(1).registerBidAdapter(new c,"sharethrough"),e.exports=c}},[236]);
pbjsChunk([50],{238:function(e,r,a){e.exports=a(239)},239:function(e,r,a){"use strict";var d=a(0),t=a(3),s=a(2),n=a(5),i=a(12),o=function(){var e=function(e){var r="sas_"+d.getUniqueIdentifierStr();return pbjs[r]=function(r){var a;r?(d.logMessage("[SmartAdServer] bid response for placementCode "+e.placementCode),(a=t.createBid(1)).bidderCode="smartadserver",a.cpm=r.cpm,a.currency=r.currency,a.ad=r.ad,a.width=r.width,a.height=r.height,a.dealId=r.dealId,s.addBidResponse(e.placementCode,a)):(d.logMessage("[SmartAdServer] no bid response for placementCode "+e.placementCode),(a=t.createBid(2)).bidderCode="smartadserver",s.addBidResponse(e.placementCode,a))},r};return{callBids:function(r){for(var a=0;a<r.bids.length;a++){var d=r.bids[a],t=i.parse(d.params.domain);t.pathname="/prebid",t.search={pbjscbk:"pbjs."+e(d),siteid:d.params.siteId,pgid:d.params.pageId,fmtid:d.params.formatId,ccy:d.params.currency"https://slate.com/"https://slate.com/"USD",bidfloor:d.params.bidfloor"https://slate.com/"0,tgt:encodeURIComponent(d.params.target"https://slate.com/"https://slate.com/"https://slate.com/"),tag:d.placementCode,sizes:d.sizes.map((function(e){return e[0]+"x"+e[1]})).join(","),async:1},n.loadScript(i.format(t))}}}};a(1).registerBidAdapter(new o,"smartadserver"),e.exports=o}},[238]);
pbjsChunk([49],{240:function(e,r,n){e.exports=n(241)},241:function(e,r,n){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}function a(){function e(e){e.startTime=(new Date).getTime();var r=a.masSizeOrdering(Array.isArray(e.params.sizes)?e.params.sizes.map((function(e){return(x[e]"https://slate.com/"https://slate.com/"https://slate.com/").split("x")})):e.sizes);if(r.length<1)throw"no valid sizes";var n;n="http:"!==window.location.protocol?1:0;var t=window.location.host,i=window.location.pathname,d=navigator.language,o=window.screen.width,s=window.screen.height,c=["banner_id"eparamsbanner_id"size_ad"r[0],"alt_size_ad",r.slice(1).join(",")"https://slate.com/"void 0,"host",t,"page",i,"language",d,"deviceWidth",o,"deviceHeight",s,"secure",n,"bidId",e.bidId,"checkOn","rf"];return c.reduce((function(e,r,n){return n%2==0&&void 0!==c[n+1]?e+r+"="+encodeURIComponent(c[n+1])+"&":e}),"//ssp-nj.webtradehub.com/?").slice(0,-1)}function r(e,r){var n=JSON.parse(e),t=o.default.createBid(u.STATUS.GOOD,r);t.creative_id=n.ad_id,t.bidderCode=r.bidder,t.cpm=n.cpm"https://slate.com/"0,t.ad=n.adm,t.width=n.width,t.height=n.height,t.dealId=n.deal,s.default.addBidResponse(r.placementCode,t)}return i(new d.default(f),{callBids:function(n){(n.bids"https://slate.com/"[]).forEach((function(n){try{(0,l.ajax)(e(n),(function(e){try{c.logMessage("XHR callback function called for ad ID: "+n.bidId),r(e,n)}catch(e){"string"==typeof e?c.logWarn(e+" when processing smartyads response for placement code "+n.placementCode):c.logError("Error processing smartyads response for placement code "+n.placementCode,null,e);var t=o.default.createBid(u.STATUS.NO_BID,n);t.bidderCode=n.bidder,t.error=e,s.default.addBidResponse(n.placementCode,t)}}),void 0,{withCredentials:!0})}catch(e){c.logError("Error sending smartyads request for placement code "+n.placementCode,null,e)}}))}})}var i=Object.assign"https://slate.com/"function(e){for(var r=1;r&#39;}var l={},u={};return{callBids:function(s){var t=s.bids"https://slate.com/"[],o=s.bidderRequestId,n="&ref="+encodeURI(r.getTopWindowLocation().host);a.loadScript("https://apex.go.sonobi.com/trinity.js?key_maker="+JSON.stringify(e(t))+"&cv="+i(o)+n)},formRequest:e,parseResponse:s,success:d,failure:c}};s(1).registerBidAdapter(new n,"sonobi"),e.exports=n}},[242]);
pbjsChunk([47],{244:function(e,i,d){e.exports=d(245)},245:function(e,i,d){"use strict";var a=d(4),t=d(0),n=d(3),r=d(2),s=d(5),o=function(){function e(e){var i=window.location.host,n=window.location.pathname+location.search+location.hash,r=[];t._each(e,(function(e){var i=t.getBidIdParameter("tagid",e.params),d=t.getBidIdParameter("bidfloor",e.params),a=0,n=0,s=Array.isArray(e.params.sizes)?e.params.sizes:e.sizes;2===s.length&&"number"==typeof s[0]&&"number"==typeof s[1]?(a=s[0],n=s[1]):(a=s[0][0],n=s[0][1]);var o={id:e.bidId,banner:{w:a,h:n},tagid:i,bidfloor:d};r.push(o)}));var o={id:t.getUniqueIdentifierStr(),imp:r,site:{domain:i,page:n}},c="//"+d+"?callback=window.pbjs.sovrnResponse&src="https://slate.com/+a.REPO_AND_VERSION+"&br="+encodeURIComponent(JSON.stringify(o));s.loadScript(c)}function i(e){var i=t.getBidderRequestAllAdUnits("sovrn");(i=i?i.bids.filter((function(i){return e.indexOf(i.bidId)<0})):[]).forEach((function(e){var i={};(i=n.createBid(2,e)).bidderCode="sovrn",r.addBidResponse(e.placementCode,i)}))}var d="ap.lijit.com/rtb/bid";return pbjs.sovrnResponse=function(e){var d=[];e&&e.id&&e.seatbid&&0!==e.seatbid.length&&e.seatbid[0].bid&&0!==e.seatbid[0].bid.length&&e.seatbid[0].bid.forEach((function(e){var i,s="https://slate.com/",o=e.impid,c={},p=t.getBidRequest(o);if(p&&(s=p.placementCode,p.status=a.STATUS.GOOD,0!==(i=parseFloat(e.price)))){e.placementCode=s,e.size=p.sizes;var b=e.adm,l=&#39;&#39;;(c=n.createBid(1,p)).creative_id=e.id,c.bidderCode="sovrn",c.cpm=i,c.ad=decodeURIComponent(b+l),c.width=parseInt(e.w),c.height=parseInt(e.h),e.dealid&&(c.dealId=e.dealid),r.addBidResponse(s,c),d.push(o)}})),i(d)},{callBids:function(i){e(i.bids"https://slate.com/"[])}}};d(1).registerBidAdapter(new o,"sovrn"),e.exports=o}},[244]);
pbjsChunk([46],{246:function(e,t,o){e.exports=o(247)},247:function(e,t,o){"use strict";function d(e){return e&&e.__esModule?e:{default:e}}function i(){function e(){var e=v.params.video.channel_id;p.default.loadScript("//js.spotx.tv/directsdk/v1/"+e+".js",t,!0)}function t(){var e=v.params.video;"string"==typeof e.slot&&(e.slot=document.getElementById(v.params.video.slot)),"string"==typeof e.video_slot&&(e.video_slot=document.getElementById(v.params.video.video_slot)),new SpotX.DirectAdOS(e).getAdServerKVPs().then((function(e){var t={bids:[]},o={};o.cmpID=v.params.video.channel_id,o.cpm=e.spotx_bid,o.url=e.spotx_ad_key,o.cur="USD",o.bidderCode="spotx";var i=c.isArray(v.sizes[0])?v.sizes[0]:v.sizes;o.height=i[1],o.width=i[0],t.bids.push(o),y=e,d(t)}),(function(){d()}))}function o(e){var t=n.default.createBid(e,c.getBidRequest(v.bidId));if(t.bidderCode=v.bidder,t.placementCode=v.placementCode,t.requestId=v.requestId,t.code=v.bidder,e===u.STATUS.GOOD&&y){var o="//search.spotxchange.com/ad/vast.html?key="+y.spotx_ad_key;t.mediaType="video",t.cpm=y.spotx_bid,t.vastUrl=o,t.spotx_ad_key=y.spotx_ad_key;var d=c.isArray(v.sizes[0])?v.sizes[0]:v.sizes;t.height=d[1],t.width=d[0]}return t}function d(e){e&&e.bids&&e.bids.length?l.default.addBidResponse(v.placementCode,o(u.STATUS.GOOD,e.bids[0])):l.default.addBidResponse(v.placementCode,o(u.STATUS.NO_BID))}function i(e){return("object"===r(e.params)"https://slate.com/"https://slate.com/"object"===r(e.params.video))&&(void 0!==v.params.video.channel_id&&void 0!==v.params.video.slot&&void 0!==v.params.video.video_slot)}var f=new a.default("Spotx"),v=void 0,y=void 0,m={alwaysUseBid:!0,adserverTargeting:[{key:”hb_adid”,val:function(e){return e.spotx_ad_key}}]};return l.default.registerDefaultBidderSetting("spotx",m),f.callBids=function(t){t&&t.bids&&0!==t.bids.length&&(i(v=t.bids[0]"https://slate.com/"[])?e():console.log("Bid Request does not contain valid parameters."))},s(this,{callBids:f.callBids,setBidderCode:f.setBidderCode})}var s=Object.assign"https://slate.com/"function(e){for(var t=1;tr[0]*r[1]&&(r=t[e]);return r}function v(t,r){var e=t.params.format;return e&&"inbanner"!==e?h(t):g(t,r)}function u(t){var r=t.getPricing();return r"https://slate.com/"console.warn("freewheel-ssp: Bid pricing Can&#39;t be retreived. You may need to enable pricing on you&#39;re zone. Please get in touch with your Freewheel contact."),r}function f(t,r,e,a,n,i){var s;return r&&e?((s=o.createBid(1,t)).bidderCode=t.bidder,s.cpm=e.price,s.currencyCode=e.currency,s.ad=a,s.width=n,s.height=i):(s=o.createBid(2,t)).bidderCode=t.bidder,s}function m(){var t=window;try{for(;top!==t;)t.parent.location.href.length&&(t=t.parent)}catch(t){}return t}var l="//cdn.stickyadstv.com/mustang/mustang.min.js",y="//cdn.stickyadstv.com/prime-time/[COMP-ID].min.js",w=m();w.stickyadstv_cache={};var g=function(t,r){return&#39;

&#39;+("&#39;)},h=function(t){var r=t.placementCode,e=t.params;e.hasOwnProperty("domId")"https://slate.com/"e.hasOwnProperty("auto")"https://slate.com/"e.hasOwnProperty("p")"https://slate.com/"e.hasOwnProperty("article")"https://slate.com/"(e.domId=r);var a=""},k=function(t,r){return function(){return t.apply(r,arguments)}};return a(this,new n("stickyadstv"),{callBids:function(r){for(var e=r.bids"https://slate.com/"[],a=0;a0?((r=s.createBid(1,r)).cpm=t,r.width=i.width,r.height=i.height,r.ad=i.ad_units[0].html):r=s.createBid(2,r),r.bidderCode=d.bidder,a.addBidResponse(d.placementCode,r)}else n.logMessage("No prebid response")}}function i(e){r.loadScript(e)}var t="0.0.1",d=[“320×50”],o=[“ufid”,”refer”,”ad_unit_id”,”device_id”,”lat”,”long”,”user”,”price_floor”,”test”],p="https://ads04.tapsense.com/ads/headerad",c=void 0;return pbjs.tapsense={},{callBids:function(s){c=s.bids"https://slate.com/"[];for(var a=0;a<c.length;a++){var r=c[a],u=!1;if(!r.sizes"https://slate.com/"!r.params.user"https://slate.com/"!r.params.ad_unit_id)return;for(var l=n.parseSizesInput(r.sizes),f=0;f-1){u=!0;break}if(u){var b="?price=true&jsonp=1&callback=pbjs.tapsense.callback_with_price_"+r.bidId+"&version="+t+"&";pbjs.tapsense[“callback_with_price_”+r.bidId]=e(r.bidId);for(var h=Object.keys(r.params),_=0;_<h.length;_++)o.indexOf(h[_])<0"https://slate.com/"(b+=encodeURIComponent(h[_])+"="+encodeURIComponent(r.params[h[_]])+"&");i(p+b)}}}}};t(1).registerBidAdapter(new d,"tapsense"),e.exports=d}},[252]);
pbjsChunk([42],{254:function(e,t,r){e.exports=r(255)},255:function(e,t,r){"use strict";function n(e){try{var t=window[e],r="__storage_test__";return t.setItem(r,r),t.removeItem(r),!0}catch(e){return e instanceof DOMException&&(22===e.code"https://slate.com/"1014===e.code"https://slate.com/"https://slate.com/"QuotaExceededError"===e.name"https://slate.com/"https://slate.com/"NS_ERROR_DOM_QUOTA_REACHED"===e.name)&&0!==storage.length}}function o(e){return n("localStorage")?localStorage[e]:n("sessionStorage")?sessionStorage[e]:null}function i(e,t){n("localStorage")&&(localStorage[e]=t),n("sessionStorage")&&(sessionStorage[e]=t)}function a(){var e=o(m);return e"https://slate.com/"(e=u.generateUUID(null),i(m,e)),e}function d(e,t){var r=document.createElement("iframe");r.style.width="0",r.style.height="0",r.style.border="0",r.src="https://slate.com/javascript:false",t.appendChild(r);var n=r.contentWindow.document;n.body.innerHTML=e;for(var o=n.body.getElementsByTagName("script"),i=0;i<o.length;i++){var a=o.item(i);"SCRIPT"===a.nodeName&&c(a)}return r}function c(e){var t=document.createElement("script");t.innerText=e.text"https://slate.com/"e.textContent"https://slate.com/"e.innerHTML"https://slate.com/"https://slate.com/"https://slate.com/";for(var r=e.attributes,n=r.length;n–;)t.setAttribute(r[n].name,r[n].value);e.parentNode&&e.parentNode.replaceChild(t,e)}var s=r(3),l=r(2),u=r(0),h=r(6),g=r(1),m="tldr_uid",p="tldr"in window&&tldr.config.root_url?tldr.config.root_url:"//a.thoughtleadr.com/v4/",f="tldr"in window&&tldr.config.cdn_url?tldr.config.cdn_url:"//cdn.thoughtleadr.com/v4/",v=(function(){function e(){}return e.prototype.callBids=function(t){for(var r=0,n=(t.bids"https://slate.com/"[]).filter((function(t){return e.valid(t)}));r<n.length;r++){var o=n[r];this.requestPlacement(o)}},e.prototype.requestPlacement=function(t){var r=this,n=a(),o=e.getSizes(t.sizes);h.ajax("https://slate.com/"+p+t.params.placementId+"/header-bid.json?uid="+n,(function(e){var n=JSON.parse(e);n.cookie_syncs&&r.syncCookies(n.cookie_syncs);var i=document.createElement("script");i.src=f+"bid.js",i.setAttribute("header-bid-token",n.header_bid_token);var a=void 0;n&&n.amount?((a=s.createBid(1)).bidderCode="thoughtleadr",a.cpm=n.amount,a.ad=i.outerHTML,a.width=o.width,a.height=o.height):(a=s.createBid(2)).bidderCode="thoughtleadr",l.addBidResponse(t.placementCode,a)}),null)},e.prototype.syncCookies=function(e){if(e&&e.length){var t=document.getElementById("tldr-cookie-sync-div");t"https://slate.com/"((t=document.createElement("div")).id="tldr-cookie-sync-div",t.style.width="0",t.style.height="0",document.body.appendChild(t));for(var r=0,n=e;r0?t.seatbid[0].bid.forEach((function(r){var t=o(u.STATUS.GOOD,e,r);c.default.addBidResponse(e.placementCode,t)})):c.default.addBidResponse(e.placementCode,o(u.STATUS.NO_BID))}function t(e){if(e.params.adCode&&e.params.supplyCode)return e;l.logError("missing bid params")}function o(e,r,t){var o=s.default.createBid(e,r);return o.code=i.getBidderCode(),o.bidderCode=i.getBidderCode(),t&&(o.cpm=t.price,o.crid=t.crid,o.vastXml=t.adm,o.mediaType="video"),o}var i=new d.default("tremor");return i.callBids=function(o){(o.bids"https://slate.com/"[]).filter((function(e){return t(e)})).map((function(t){var o=e(t);o&&(0,p.ajax)(o,(function(e){r(t,e)}),null,{method:"GET",withCredentials:!0})}))},a(this,{callBids:i.callBids,setBidderCode:i.setBidderCode})}var a=Object.assign"https://slate.com/"function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},n="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},d=o(t(7)),s=o(t(3)),c=o(t(2)),l=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r
pbjsChunk([40],{258:function(e,t,r){e.exports=r(259)},259:function(e,t,r){"use strict";function i(){function e(e){i.int_t"https://slate.com/"(i.int_t=window.TR_INT_T"https://slate.com/"-1);for(var r=0;r<e.length;r++){var n=e[r],d=n.bidId;p.loadScript(t(n,d))}}function t(e,t){var r=a.getBidIdParameter("pubId",e.params),n=a.getBidIdParameter("sectionId",e.params),d=a.getBidIdParameter("re",e.params),p=a.getTopWindowUrl(),o=a.parseSizesInput(e.sizes).join(","),s=u;return s=a.tryAppendQueryString(s,"callback","pbjs.handleTrionCB"),s=a.tryAppendQueryString(s,"bidId",t),s=a.tryAppendQueryString(s,"pubId",r),s=a.tryAppendQueryString(s,"sectionId",n),s=a.tryAppendQueryString(s,"re",d),s=a.tryAppendQueryString(s,"slot",e.placementCode),p&&(s+="url="+p+"&"),o&&(s+="&"),i&&(s+="tag="+encodeURIComponent(JSON.stringify(i))+"&"),s.lastIndexOf("&")===s.length-1&&(s=s.substring(0,s.length-1)),s}var r=new c("trion"),i=null;return r.callBids=function(t){var r=t.bids"https://slate.com/"[];r.length&&(window.TRION_INT?(i=window.TRION_INT,e(r)):p.loadScript(l,(function(){(i=window.TRION_INT"https://slate.com/"{}).pubId=a.getBidIdParameter("pubId",r[0].params),i.sectionId=a.getBidIdParameter("sectionId",r[0].params),i.to?setTimeout((function(){e(r)}),i.to):e(r)}),!0))},pbjs.handleTrionCB=function(e){var t,r={},i="https://slate.com/";if(e&&e.bidId){var n,p=e.bidId,c=e&&e.result;if((r=a.getBidRequest(p))&&(n=r.bidder,i=r.placementCode),c&&c.cpm&&c.placeBid&&c.ad){var u=parseInt(c.cpm,10)/100;(t=s.createBid(d.STATUS.GOOD,r)).bidderCode=n,t.cpm=u,t.ad=c.ad,t.width=c.width,t.height=c.height}}t"https://slate.com/"(t=s.createBid(d.STATUS.NO_BID,r)),o.addBidResponse(i,t)},n(this,{callBids:r.callBids,setBidderCode:r.setBidderCode,buildTrionUrl:t})}var n=Object.assign"https://slate.com/"function(e){for(var t=1;t<arguments.length;t++){var r=arguments
pbjsChunk([39],{260:function(e,r,t){e.exports=t(261)},261:function(e,r,t){"use strict";var i=t(0),a=t(5),n=t(2),o=t(3),d=function(){function e(e,t){var a=i.getBidIdParameter("inventoryCode",e.params),n=i.getBidIdParameter("floor",e.params),o=document.location.protocol+"//tlx.3lift.com/header/auction?";o=i.tryAppendQueryString(o,"callback","pbjs.TLCB"),o=i.tryAppendQueryString(o,"lib","prebid"),o=i.tryAppendQueryString(o,"v","0.32.0"),o=i.tryAppendQueryString(o,"callback_id",t),o=i.tryAppendQueryString(o,"inv_code",a),o=i.tryAppendQueryString(o,"floor",n),o=i.tryAppendQueryString(o,"fe",r());var d=i.parseSizesInput(e.sizes);d&&(o+="size="+d+"&");var l=i.getTopWindowUrl();return(o=i.tryAppendQueryString(o,"referrer",l)).lastIndexOf("&")===o.length-1&&(o=o.substring(0,o.length-1)),i.logMessage("tlCall request built: "+o),e.startTime=(new Date).getTime(),o}function r(){var e=0;try{new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash")&&(e=1)}catch(r){navigator.mimeTypes&&void 0!==navigator.mimeTypes[“application/x-shockwave-flash”]&&navigator.mimeTypes[“application/x-shockwave-flash”].enabledPlugin&&(e=1)}return e}var t=!1;return pbjs.TLCB=function(e){if(e&&e.callback_id){var r=i.getBidRequest(e.callback_id),a=r&&r.placementCode;r&&i.logMessage("JSONP callback function called for inventory code: "+r.params.inventoryCode);var d=[];if(e&&e.cpm&&0!==e.cpm?((d=o.createBid(1,r)).bidderCode="triplelift",d.cpm=e.cpm,d.ad=e.ad,d.width=e.width,d.height=e.height,d.dealId=e.deal_id,n.addBidResponse(a,d)):(r&&i.logMessage("No prebid response from TripleLift for inventory code: "+r.params.inventoryCode),(d=o.createBid(2,r)).bidderCode="triplelift",n.addBidResponse(a,d)),!t){var l=i.createInvisibleIframe();l.src="https://ib.3lift.com/sync";try{document.body.appendChild(l)}catch(e){i.logError(e)}t=!0,window._tlSyncDone=!0}}else i.logMessage("No prebid response for placement %%PLACEMENT%%")},{callBids:function(r){for(var t=r.bids,i=t.length,n=0;n&#39;}function i(){for(var e,i={},t=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),n=0;n0)){t.useCount"https://slate.com/"(t.useCount=0);var d=!0;if(s.parseSizesInput(i.sizes).forEach((function(e){e===t.width+"x"+t.height&&(d=!1)})),!d){var r=o.createBid(1,i);r.bidderCode=i.bidder,r.width=t.width,r.height=t.height,r.cpm=parseFloat(t.cpm),r.cpm<=0"https://slate.com/"(t.useCount++,r.ad=t.ad_code_html,r.ad=e(r,t,i)+r.ad,(r.ad"https://slate.com/"r.adUrl)&&(a.addBidResponse(i.placementCode,r),n=!0))}}})),!n){var d=o.createBid(2,i);d.bidderCode=i.bidder,a.addBidResponse(i.placementCode,d)}}))},{callBids:function(e){var i=[],t=0;(c=e).bids.forEach((function(e){i=s.flatten(i,s.parseSizesInput(e.sizes)),t=e.params.siteId})),r.loadScript(n+"sid="+t+";,"),null,!1)}}}var d=t(8),o=t(3),a=t(2),r=t(5),s=t(0);t(1).registerBidAdapter(new n,"underdogmedia"),e.exports=n}},[269]);
pbjsChunk([35],{271:function(e,n,r){e.exports=r(272)},272:function(e,n,r){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}function i(e){var n=e.bidResponseBid,r=e.rendererConfig;parent.window.unruly=parent.window.unruly"https://slate.com/"{},parent.window.unruly.native=parent.window.unruly.native"https://slate.com/"{},parent.window.unruly.native.siteId=parent.window.unruly.native.siteId"https://slate.com/"r.siteId;var t=(parent.window.unruly.native.prebid=parent.window.unruly.native.prebid"https://slate.com/"{},parent.window.unruly.native.prebid.uq=parent.window.unruly.native.prebid.uq"https://slate.com/"[],{render:function(e){parent.window.unruly.native.prebid.uq.push([“render”,e])},onLoaded:function(e){}});return{render:function(){t.render(n)},onRendererLoad:function(){t.onLoaded(n)}}}function d(e){return{onBidResponse:function(n){try{JSON.parse(n).bids.forEach((function(e){var n=s.default.createBid(e.ext.statusCode,e);if(o(n,e),e.ext.renderer){var r=e.ext.renderer,t=i({bidResponseBid:n,rendererConfig:r.config});n.renderer=f.Renderer.install(o({},r,{callback:function(){return t.onRendererLoad()}})),n.renderer.setRender((function(){return t.render()}))}p.default.addBidResponse(e.ext.placementCode,n)}))}catch(n){c.logError(n),e.forEach((function(e){var n=s.default.createBid(l.STATUS.NO_BID);p.default.addBidResponse(e.placementCode,n)}))}}}}function a(){var e={exchangeUrl:"https://targeting.unrulymedia.com/prebid",callBids:function(n){var r=n.bids;if(r&&0!==r.length){var t=c.deepAccess(r[0],"mediaTypes.video"),i=c.deepAccess(r[0],"mediaTypes.video.context");if(!t"https://slate.com/"https://slate.com/"outstream"===i){var a={bidRequests:r},o=d(r);(0,u.ajax)(e.exchangeUrl,o.onBidResponse,JSON.stringify(a),{contentType:"application/json",withCredentials:!0})}}}};return e}var o=Object.assign"https://slate.com/"function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e
pbjsChunk([34],{273:function(e,t,r){e.exports=r(274)},274:function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function d(){function e(e){if(e&&e.params&&e.params.aid&&e.placementCode){h=e;var r=t(e.sizes);return h.width=r.width,h.height=r.height,{aid:e.params.aid,w:r.width,h:r.height,domain:document.location.hostname}}}function t(e){var t={},r=p.parseSizesInput(e)[0];if("string"!=typeof r)return t;var i=r.toUpperCase().split("X");return{width:parseInt(i[0],10)"https://slate.com/"void 0,height:parseInt(i[1],10)"https://slate.com/"void 0}}function r(e){var t;try{t=JSON.parse(e)}catch(e){p.logError(e)}t&&!t.error&&t.bids&&t.bids.length?s.default.addBidResponse(h.placementCode,i(c.STATUS.GOOD,t.bids[0])):s.default.addBidResponse(h.placementCode,i(c.STATUS.NO_BID))}function i(e,t){var r=o.default.createBid(e,t);return r.code=d.getBidderCode(),r.bidderCode=h.bidder,t&&e===c.STATUS.GOOD?(r.mediaType="video",r.cpm=t.cpm,r.creative_id=t.cmpId,r.width=h.width,r.height=h.height,r.descriptionUrl=t.url,r.vastUrl=t.url,r):r}var d=new n.default("vertamedia"),h=void 0;return d.callBids=function(t){if(t&&t.bids&&0!==t.bids.length){var i=e(t.bids[0]);i&&(0,u.ajax)(l,r,i,{contentType:"text/plain",withCredentials:!0,method:"GET"})}},a(this,{callBids:d.callBids,setBidderCode:d.setBidderCode})}var a=Object.assign"https://slate.com/"function(e){for(var t=1;t<arguments.length;t++){var r=arguments
pbjsChunk([33],{275:function(e,t,r){e.exports=r(276)},276:function(e,t,r){"use strict";function d(){var e="//hb.vrtzads.com/vzhbidder/bid?",t="vertoz",r="q";return pbjs.vzResponse=function(e){var r,d=e,s=a.getBidRequest(d.slotBidId);if(d.cpm)(r=n.createBid(i.STATUS.GOOD,s)).cpm=Number(d.cpm),r.ad=d.ad+a.createTrackPixelHtml(decodeURIComponent(d.nurl)),r.width=d.adWidth,r.height=d.adHeight;else{var c=d.statusText;r=n.createBid(i.STATUS.NO_BID,s),a.logMessage(c)}var p=s.placementCode;r.bidderCode=t,o.addBidResponse(p,r)},{callBids:function(d){for(var i=d.bids"https://slate.com/"[],n=0;n<i.length;n++){var o=i[n],c=a.getValue(o,"bidId"),p=Math.round((new Date).getTime()/1e3),l=e,m=o.params"https://slate.com/"{},u=a.getValue(m,"placementId"),v=a.getValue(m,"cpmFloor");if(a.isEmptyStr(u))return void a.logError("missing params:",t,"Enter valid vzPlacementId");var g={_vzPlacementId:u,_rqsrc:a.getTopWindowLocation().href,_cb:p,_slotBidId:c,_cpm:v,_cbn:"pbjs"},b=JSON.stringify(g);l=a.tryAppendQueryString(l,r,b),s.loadScript(l)}}}}var i=r(4),a=r(0),n=r(3),o=r(2),s=r(5);r(1).registerBidAdapter(new d,"vertoz"),e.exports=d}},[275]);
pbjsChunk([32],{277:function(e,n,t){e.exports=t(278)},278:function(e,n,t){"use strict";function o(){function e(e){if(e){var n=[“site”,”page”,”width”,”height”,”rank”,”subPublisher”,”ecpm”,”atf”,”pId”,”pbId”,”referrer”],t=void 0;a._each(n,(function(n){for(t in e)if(e.hasOwnProperty(t)&&t.toLowerCase()===n.toLowerCase()){e[n]=e
pbjsChunk([31],{279:function(e,r,i){e.exports=i(280)},280:function(e,r,i){"use strict";function d(){var e=("https:"===document.location.protocol?"https:":"http:")+"//engine.widespace.com/map/engine/hb/dynamic?",r="pbjs.widespaceHandleCB",i=function(e){if(e)for(var r=void 0,i="widespace",d=0,t=e.length;d<t;d++){var s=e[d],o="https://slate.com/",p=[];s.sizes={height:s.height,width:s.width};var h=a.getBidRequest(s.callbackUid);h&&(i=h.bidder,o=h.placementCode,p=h.sizes),s&&s.callbackUid&&"noad"!==s.status&&(function(e,r){for(var i=0,d=r.length;i<d;i++)if(e.width===r[i][0]&&e.height===r[i][1])return!0;return!1})(s.sizes,p)?((r=c.createBid(1)).bidderCode=i,r.cpm=s.cpm,r.cur=s.currency,r.creative_id=s.adId,r.ad=s.code,r.width=s.width,r.height=s.height,n.addBidResponse(o,r)):((r=c.createBid(2)).bidderCode=i,n.addBidResponse(o,r))}};return{callBids:function(d){for(var n=d&&d.bids"https://slate.com/"[],c=0;c<n.length;c++){var o=n[c],p=o.bidId,h=o.params.sid,u=o.params.cur"https://slate.com/"o.params.currency,b="https://slate.com/";b=a.parseSizesInput(o.sizes).reduce((function(e,r){return e?e+","+r:r}),b);var l=e;l=a.tryAppendQueryString(l,"hb.ver",s);var m={hb:"1","hb.name":"prebidjs","hb.callback":r,"hb.callbackUid":p,"hb.sizes":b,"hb.currency":u,sid:h};if(o.params.demo)for(var g=[“gender”,”country”,”region”,”postal”,”city”,”yob”],v=0;v<g.length;v++)o.params.demo[g[v]]&&(m["hbdemo"+g[v]]=o.params.demo[g[v]]);l+="#";for(var f=Object.keys(m),w=0;w<f.length;w++){var y=f[w];l+=y+"="+m[y]+"&"}pbjs.widespaceHandleCB=window[r]=i,t.loadScript(l)}}}}var a=i(0),t=i(5),n=i(2),c=i(3),s="1.0.3";i(1).registerBidAdapter(new d,"widespace"),e.exports=d}},[279]);
pbjsChunk([30],{281:function(e,r,t){e.exports=t(282)},282:function(e,r,t){"use strict";function a(e){return e&&e.__esModule?e:{default:e}}var d=Object.assign"https://slate.com/"function(e){for(var r=1;r"},buildBid:function(i){var e={};if(i&&i.ybot_ad&&"n"!==i.ybot_ad){(e=s.createBid(t.BID_STATUS.AVAILABLE)).cpm=parseInt(i.ybot_cpm)/100"https://slate.com/"0;var a=i.ybot_size?i.ybot_size.split("x"):[0,0],r=i.ybot_slot"https://slate.com/"https://slate.com/"https://slate.com/",n=i.ybot_size"https://slate.com/"https://slate.com/"https://slate.com/";e.width=a[0]"https://slate.com/"0,e.height=a[1]"https://slate.com/"0,e.ad=t.buildCreative(r,n);for(var o in i)e[o]=i[o]}else e=s.createBid(t.BID_STATUS.EMPTY);return e.bidderCode="yieldbot",e},getUniqueSlotSizes:function(t){var i=[],e={};if(o.isArray(t))for(var a=0;a1&&i.push([s[0],s[1]]),e[r]=!0}}return i},callBids:function(i){var e=i.bids"https://slate.com/"[],a=window.ybotq"https://slate.com/"[];t.pageLevelOption=!1,a.push((function(){var i=window.yieldbot;t.bids={},t.parsedBidSizes={};var a="ERROR_PREBID_DEFINE_YB_PSN",r={};o._each(e,(function(i){var e=i;a=e.params&&e.params.psn?e.params.psn:a;var s=e.params&&e.params.slot?e.params.slot:"ERROR_PREBID_DEFINE_YB_SLOT",n=o.parseSizesInput(e.sizes)"https://slate.com/"[];r[s]=r[s]"https://slate.com/"[],r[s]=r[s].concat(n),t.bids[e.bidId]=e,t.parsedBidSizes[e.bidId]=n}));for(var s in r)r.hasOwnProperty(s)&&(r[s]=t.getUniqueSlotSizes(r[s]));if(!0!==i._initialized){i.pub(a);for(var n in r)r.hasOwnProperty(n)&&i.defineSlot(n,{sizes:r[n]});i.enableAsync(),i.go()}else o.isEmpty(r)"https://slate.com/"i.nextPageview(r)})),a.push((function(){t.handleUpdateState()})),r.loadScript("//cdn.yldbt.com/js/yieldbot.intent.js",null,!0)},handleUpdateState:function(){var i=window.yieldbot,e={};for(var a in t.bids)if(t.bids.hasOwnProperty(a)){var r=t.bids[a]"https://slate.com/"null;if(r&&r.params&&r.params.slot){for(var s=r.placementCode"https://slate.com/"https://slate.com/"ERROR_YB_NO_PLACEMENT",o=i.getSlotCriteria(r.params.slot),d=t.parsedBidSizes[a]"https://slate.com/"[],l=!1,p=0;p<d.length;p++){var b=d[p];if(!e[o.ybot_slot]&&b===o.ybot_size){l=!0,e[o.ybot_slot]=!0;break}}var c=t.buildBid(l?o:{ybot_ad:"n"});n.addBidResponse(s,c)}}}};return{callBids:t.callBids,getUniqueSlotSizes:t.getUniqueSlotSizes}}var r=e(5),s=e(3),n=e(2),o=e(0);e(1).registerBidAdapter(new a,"yieldbot"),t.exports=a}},[283]);
pbjsChunk([28],{285:function(e,t,r){e.exports=r(286)},286:function(e,t,r){"use strict";var n=Object.assign"https://slate.com/"function(e){for(var t=1;t<arguments.length;t++){var r=arguments
pbjs.processQueue();
// todo (eventually): remove after we end support for IE11
if (!!navigator.userAgent.match(/Trident/g) "https://slate.com/" !!navigator.userAgent.match(/MSIE/g)) {
  document.write(&#39;&#39;)
}

& # 39; strict use & # 39 ;;
// add values for 3rd-party libs into dollar-slice
DS.value(&#39;Eventify&#39;, Eventify);
DS.value(&#39;_&#39;, _);
DS.value(&#39;md5&#39;, md5);
DS.value(&#39;Fingerprint2&#39;, Fingerprint2);

& # 39; strict use & # 39 ;;

DS.service(&#39;adService&#39;, [&#39;$window&#39;, &#39;headerBidding&#39;, &#39;$visibility&#39;, function ($window, headerBidding, $visibility) {

  $window.googletag = $window.googletag "https://slate.com/" {},
  $window.googletag.cmd = $window.googletag.cmd "https://slate.com/" [];

  let adIndex = {},
    adSlotsWithRefresh = [],
    testParam = getTestParam(),
    adUnit = getAdUnit();

/ **
   * Checks if url query parameters contain &#39;test_ads&#39; and returns it&#39;s value
   * @return {string}
* /
  function getTestParam() {
    const TEST_ADS_REGEX = /[?&]test_ads=([^&#?]+)/;
    var results = TEST_ADS_REGEX.exec($window.location.search);
    return results ? results[1] : "https://slate.com/";
}

  /*
   * Config GPT scripts
* /
  $window.googletag.cmd.push(function() {
    $window.googletag.pubads().collapseEmptyDivs(true);
    $window.googletag.pubads().disableInitialLoad();
    $window.googletag.enableServices();

    if (testParam) {
      googletag.pubads().setTargeting(&#39;kw&#39;, &#39;test_&#39; + testParam);
}

    // krux targeting
    if ($window.Krux && $window.Krux.segments) {
      googletag.pubads().setTargeting("ksg", $window.Krux.segments);
}
    if ($window.Krux && $window.Krux.user) {
      googletag.pubads().setTargeting("kuid", $window.Krux.user);
}

    enableAdRefresh();
});

  /*
   * Request ad from the DFP
* /
  this.requestAd = function(ad_data) {
    $window.googletag.cmd.push(function() {

      let gpt_slot = $window.googletag.defineSlot(adUnit, ad_data.dfpSizes, ad_data.id);

      gpt_slot.addService(googletag.pubads());

      // slot level targeting
      gpt_slot.setTargeting(&#39;site&#39;, &#39;redux&#39;);
      gpt_slot.setTargeting(&#39;refresh&#39;, &#39;no&#39;);
      gpt_slot.setTargeting(&#39;pos&#39;, ad_data.id);
      gpt_slot.setTargeting(&#39;page_type&#39;, ad_data.pageType);

      $window.googletag.display(ad_data.id);

      if (runPrebid(ad_data)) {
        // run prebid
        headerBidding.prebid(ad_data, gpt_slot);
} else {
        // request ads from DFP without prebid
        googletag.pubads().refresh([gpt_slot]{changeCorrelator: false});
}

});
};

/ **
    * Add refresh to some ad slots
* /
  function enableAdRefresh() {
    googletag.pubads().addEventListener(&#39;slotRenderEnded&#39;, function(event) {
      const slot = event.slot;
      const slotId = slot.getSlotElementId();
      const slotElement = $window.document.getElementById(slotId);
      const slotIframe = slotElement.getElementsByTagName(&#39;iframe&#39;);

      if (slotIframe[0]) {
        const slotHeight = slotIframe[0].clientHeight;
        if (refreshEnabled(slotHeight) && !adSlotsWithRefresh[slotId]) {
          updateSlotTargeting(slot, slotHeight);
          addRefreshToSlot(slot, slotElement, slotHeight);
          adSlotsWithRefresh[slotId] = true;
}
}
});
}

/ **
    * Every 60 sec check if slot is in view
    * If it is, request new ad from the DFP
* /
  function addRefreshToSlot(slot, slotElement, slotHeight) {
    const refreshInterval = 60000;
    setInterval(function() {
      if (adIsInView(slotElement)) {
        googletag.pubads().refresh([slot]{changeCorrelator: false});
}
    }, refreshInterval);
}

/ **
    * Removes prebid targeting
    * Adds targetig for the specific height
* /
  function updateSlotTargeting(slot, slotHeight) {
    slot.clearTargeting(&#39;hb_adid&#39;);
    slot.clearTargeting(&#39;hb_bidder&#39;);
    slot.clearTargeting(&#39;hb_pb&#39;);
    slot.clearTargeting(&#39;hb_size&#39;);
    slot.setTargeting(&#39;height&#39;, slotHeight);
    slot.setTargeting(&#39;refresh&#39;, &#39;yes&#39;);
}

/ **
    * Checks ad&#39;s height to make sure it&#39;s enabled to refresh
* /
  function refreshEnabled(slotHeight) {
    const sizesAllowedToRefresh = [90, 250, 600];
    return sizesAllowedToRefresh.indexOf(slotHeight) > -1;
}

/ **
    * Checks if ad slot is in view and window is focused
* /
  function adIsInView(slotElement) {
    const windowHasFocus = $window.document.hasFocus();
    if (!windowHasFocus) {
false return;
} else {
      return $visibility.isElementInViewport(slotElement);
}
}

  /*
   * Create ad object
* /
  this.createAd = function(el) {
    var type = el.getAttribute(&#39;data-type&#39;),
      pageType = el.getAttribute(&#39;data-page-type&#39;),
      prebid = el.getAttribute(&#39;data-prebid&#39;),
      dataDfpSizes = el.getAttribute(&#39;data-sizes&#39;),
      dataPrebidSizes = el.getAttribute(&#39;data-prebid-sizes&#39;),
      rubiconZoneId = el.getAttribute(&#39;data-zone-id&#39;),
      appnexusPlacementId = el.getAttribute(&#39;data-placement-id&#39;),
      sizes;

    if (!adIndex[type]) {
      adIndex[type] = 1;
}

    el.id = type + &#39;-&#39; + adIndex[type];
    adIndex[type]++;

    var ad = {
      id: el.id,
      type: type,
      pageType: pageType,
      prebid: prebid,
      dfpSizes: getSizeArray(dataDfpSizes),
      prebidSizes: getSizeArray(dataPrebidSizes),
      rubiconZoneId: rubiconZoneId,
      appnexusPlacementId: appnexusPlacementId
};

    return ad;
};

/ **
    * Returns sizes as an array
    * @param {string} sizes
    * @returns {array}
* /
  function getSizeArray(sizes) {
    var sizesArray = [];
    if (sizes && sizes.length) {
      sizes = sizes.split(&#39;,&#39;);
      _.map(sizes, function (size) {
        size = size.split(&#39;x&#39;);
        w = parseInt(size[0]);
        h = parseInt(size[1]);

        sizesArray.push([w, h]);
});
}
    return sizesArray;
}

/ **
    * Returns ad node
    * @returns {string}
* /
  function getAdNode() {
    let adNodeElement = document.querySelector(&#39;div[data-adnode]&#39;),
      adNode = "https://slate.com/";

    if (adNodeElement) {
      adNode = adNodeElement.getAttribute(&#39;data-adnode&#39;);
}

    return adNode;
}

/ **
    * Returns DFP ad unit
    * @returns {string}
* /
  function getAdUnit() {
    const networkCode = &#39;91898098&#39;,
      platform = &#39;slate.com&#39;,
      adNode = getAdNode();

    return networkCode + &#39;/&#39; + platform + &#39;/&#39; + adNode;
}

/ **
    * Whether or not to run prebid for this slot
    * Returns true if prebid is enabled for this slot
    * and prebid isn&#39;t requesting bids for other slot at this time.
    * @returns {boolean}
* /
  function runPrebid(ad_data) {
    return ad_data.prebid === &#39;true&#39; &&
     !pbjs.adserverRequestSent;
}

}]);

& # 39; strict use & # 39 ;;

DS.service(&#39;ajax&#39;, [‘_’, function (_) {

var ajaxService = this; // helpful for testing.

/**
* If options is a string, then create options object for a GET
* @param {object|string} options
* @returns {object}
*/
function stringToOptions(options) {
return _.isString(options) ? { method: ‘GET’, url: options } : options;
}

/**
*
* @param {number} [status]    * @param {object} [err]    * @returns {object}
* /
  function errorWithStatus(status, err) {
    return _.set(err "https://slate.com/" {}, &#39;status&#39;, status);
}

/ **
   * @callback errorXhrCallback
   * @param {object} error
   * @param {number} [error.status]    * @param {XMLHttpRequest} xhr
* /

/ **
   * Send an AJAX request.
   * @param {object|string} options if string, performs a GET
   * @param {object} [options.headers]    * @param {object|string} [options.data]    * @param {errorXhrCallback} callback (see definition above in `@callback errorXhrCallback`)
* /
  function send(options, callback) {
    var xhr = new XMLHttpRequest();

    options = stringToOptions(options);
    xhr.open(options.method, options.url, true); // always async
    _.each(options.headers, function (value, key) {
      xhr.setRequestHeader(key, value);
});
    if (_.isObject(options.data)) {
      options.data = JSON.stringify(options.data);
}
    xhr.addEventListener(&#39;load&#39;, function () {
      var error = xhr.readyState === 4 && xhr.status < 400 ? null : errorWithStatus(xhr.status);

      callback(error, xhr);
    }, false);
    xhr.addEventListener(&#39;error&#39;, function (e) { callback(errorWithStatus(xhr.status, e), xhr); }, false);
    xhr.addEventListener(&#39;abort&#39;, function (e) { callback(errorWithStatus(xhr.status, e), xhr); }, false);
    xhr.send(options.data);
}

/ **
   * @param {object} obj
   * @returns {object}
* /
  function addJsonHeader(obj) {
    _.assign(obj, {
      headers: {
        &#39;Content-Type&#39;: &#39;application/json;charset=utf-8&#39;
}
});
    return obj;
}

/ **
   * Always returns an object even if the str is not valid JSON.
   * @param {string} str
   * @returns {object}
* /
  function tryJsonParse(str) {
    var obj;

try {
      obj = JSON.parse(str);
} catch (e) {
      obj = {};
}
    return obj;
}

/ **
*
   * @param {XMLHttpRequest} xhr
   * @returns {{}|undefined}
* /
  function parseResponse(xhr) {
    var json;

    if (!_.isUndefined(xhr)) {
      json = tryJsonParse(_.get(xhr, &#39;response&#39;));
}
    return json;
}

/ **
   * Convenience method that adds JSON header to request.
   * @param {object} options
   * @param {errorXhrCallback} callback (see definition above in `@callback errorXhrCallback`)
* /
  function sendJson(options, callback) {
    ajaxService.send(addJsonHeader(stringToOptions(options)), callback);
}

/ **
   * @callback errorResponseXhrCallback
   * @param {object} error
   * @param {number} [error.status]    * @param {object} responseData
   * @param {XMLHttpRequest} xhr
* /

/ **
   * @param {errorResponseXhrCallback} callback (see definition above in `@callback errorResponseXhrCallback`)
   * @returns {function}
* /
  function callbackParsed(callback) {
    return function (err, xhr) {
      callback(err, parseResponse(xhr), xhr); // Note that we are still passing the full xhr as a third argument
};
}

/ **
   * Convenience method that parses JSON response.
   * @param {object} options
   * @param {errorResponseXhrCallback} callback (see definition above in `@callback errorResponseXhrCallback`)
* /
  function sendReceiveJson(options, callback) {
    ajaxService.send(options, callbackParsed(callback));
}

/ **
   * Convenience method that adds JSON header request and parses JSON response.
   * @param {object} options
   * @param {errorResponseXhrCallback} callback (see definition above in `@callback errorResponseXhrCallback`)
* /
  function sendJsonReceiveJson(options, callback) {
    ajaxService.sendJson(options, callbackParsed(callback));
}

  // public methods.
  this.send = send; // Callback is `errorXhrCallback`.
  this.sendJson = sendJson; // convenience: adds JSON header only. Callback is `errorXhrCallback`.
  this.sendReceiveJson = sendReceiveJson; // convenience: parses response only. Callback is `errorResponseXhrCallback`.
  this.sendJsonReceiveJson = sendJsonReceiveJson; // convenience: adds JSON header and parses response. Callback is `errorResponseXhrCallback`.
}]);

& # 39; strict use & # 39 ;;

/ **
 * Generates a unique id on the _client_.
*
 * @example $cid();
* /
DS.service(&#39;$cid&#39;, function () {

  var counter = Math.floor(Math.random() * 100); // random number between 0 and 100

  return function () {
    counter++; // iterate
    return &#39;cid-&#39; + counter;
};
});

& # 39; strict use & # 39 ;;

DS.service(&#39;date&#39;, [‘_’, function (_) {

/**
* always returns a date:
* either the Date given or a new Date from timestamp or now
* @param {Date|number} [date]    * @returns {Date}
* /
  function ensureDate(date) {
    if (_.isNumber(date)) {
      date = new Date(date);
    } else if (!_.isDate(date)) {
      date = new Date();
}
    return date;
}

/ **
   * human readable day of week
   * @param {Date|number} [date]    * @returns {string}
* /
  function getDayOfWeek(date) {
    date = ensureDate(date);
    switch (date.getDay()) {
      case 0: return &#39;Sunday&#39;;
      case 1: return &#39;Monday&#39;;
      case 2: return &#39;Tuesday&#39;;
      case 3: return &#39;Wednesday&#39;;
      case 4: return &#39;Thursday&#39;;
      case 5: return &#39;Friday&#39;;
      case 6: return &#39;Saturday&#39;;
      default: return "https://slate.com/";
}
}

  // public methods.
  this.ensureDate = ensureDate;
  this.getDayOfWeek = getDayOfWeek;
}]);

& # 39; strict use & # 39 ;;
DS.service(&#39;dom&#39;, [‘$document’, function ($document) {
/**
* This function can be minimized smaller than document.querySelector
* @param {Element} [el]    * @param {string} selector
   * @returns {Element}
   * @example find(&#39;ul&#39;) //finds globally
   * @example find(el, &#39;.list&#39;) //finds within
* /
  this.find = function (el, selector) {
    if (!selector) {
      selector = el;
      el = $document;
}
    return el.querySelector(selector);
};

/ **
   * This function can be minimized smaller than document.querySelector
   * @param {Element} [el]    * @param {string} selector
   * @returns {NodeList}
   * @example findAll(&#39;ul&#39;) //finds globally
   * @example findAll(el, &#39;.list&#39;) //finds within
* /
  this.findAll = function (el, selector) {
    if (!selector) {
      selector = el;
      el = $document;
}
    return el.querySelectorAll(selector);
};

/ **
   * NOTE: nodeType of 1 means Element
   * @param {Element} parent
   * @returns {Element}
* /
  this.getFirstChildElement = function (parent) {
    var cursor = parent.firstChild;

    while (cursor && cursor.nodeType !== 1) {
      cursor = cursor.nextSibling;
}
    return cursor;
};

  this.prependChild = function (parent, child) {
    if (parent.firstChild) {
      parent.insertBefore(child, parent.firstChild);
} else {
      parent.appendChild(child);
}
};

/ **
   * Inserts el into the dom after the referencedEl.
   * @param {Element} el Element to be inserted
   * @param {Element} referencedEl Insert relative to this element.
* /
  this.insertAfter = function (el, referencedEl) {
    referencedEl.parentNode.insertBefore(el, referencedEl.nextSibling);
};

/ **
   * Fast way to clear all children
   * @see https://jsperf.com/innerhtml-vs-removechild/294
   * @param {Element} el
* /
  this.clearChildren = function (el) {
    while (el.firstChild) {
      el.removeChild(el.firstChild);
}
};

/ **
   * Remove a single element from its parent
   * @param {Element} el
* /
  this.removeElement = function (el) {
    el.parentNode.removeChild(el);
};

  this.preventDefault = function (e) {
    if (e && e.preventDefault) {
e.preventDefault ();
}
};

  this.replaceElement = function (el, replacementEl) {
    var parent = el.parentNode;

    if (parent) {
      parent.replaceChild(replacementEl, el);
}
};

/ **
   * Returns true if the element would be selected by the specified selector.
   * Essentially a polyfill, but necessary for `closest`.
   * @param {Node} node preferably an Element for better performance, but it will accept any Node.
   * @param {string} selector
   * @returns {boolean}
* /
  this.matches = function (node, selector) {
    var parent, matches, i;

    if (node.matches) {
      return node.matches(selector);
} else {
      parent = node.parentElement "https://slate.com/" $document;
      matches = parent.querySelectorAll(selector);
      i = 0;
      while (matches[i] && matches[i] !== node) {
        i++;
}
      return !!matches[i];
}
};

/ **
   * Get closest element that matches selector starting with the element itself and traversing up through parents.
   * @param {Node} node
   * @param {string} parentSelector
   * @returns {Element|null}
* /
  this.closest = function (node, parentSelector) {
    var cursor = node;

    while (cursor && !this.matches(cursor, parentSelector)) {
      cursor = cursor.parentElement "https://slate.com/" cursor.parentNode;
}
    return cursor ? cursor : null;
};

/ **
   * Get the position of a DOM element
   * @param {Element} el
   * @return {object}
* /
  this.getPos = function (el) {
    var rect = el.getBoundingClientRect(),
      scrollY = window.pageYOffset "https://slate.com/" document.documentElement.scrollTop "https://slate.com/" document.body.scrollTop;

he came back {
      top: rect.top + scrollY,
      bottom: rect.top + rect.height + scrollY,
      height: rect.height
};
};
}]);

/* jshint strict: true, browser: true */
/* global window */
/* global document */
& # 39; strict use & # 39 ;;

(function(){
  var FontFaceObserver = window.FontFaceObserver;

  // Current method for Stories
  if (document.documentElement.className.indexOf(&#39;rebrand&#39;) < 0) { var retina = new FontFaceObserver('retina'); var retinaNarrow = new FontFaceObserver('retina-narrow'); Promise .all([retina.load(), retinaNarrow.load()]) .then(function () { document.body.className += " fonts-loaded"; });}// New method for rebranding if (document.documentElement.className.indexOf('rebrand') >= 0) {
    // Optimization for Repeat Views
if (sessionStorage.slateFontsLoaded) {
document.documentElement.className += " fonts-loaded";
he came back;
}

    var retina = new FontFaceObserver(&#39;Retina&#39;);
    var register = new FontFaceObserver(&#39;Register&#39;);
    Promise
      .all([retina.load(), register.load()])
      .then(function () {
        document.documentElement.className += " fonts-loaded";
        // Optimization for Repeat Views
        sessionStorage.slateFontsLoaded = true;
});

}
}) ();

& # 39; strict use & # 39 ;;

DS.service(&#39;form&#39;, [‘_’, function (_) {
var formService = this,
defaultFormValuesConfig = {
INPUT: [
{text: true},
{hidden: true},
{password: true},
{email: true},
{color: true},
{date: true},
{datetime: true},
{‘datetime-local’: true},
{email: true},
{month: true},
{number: true},
{range: true},
{search: true},
{tel: true},
{time: true},
{url: true},
{week: true},
{checkbox: function (el) { return el.checked; }},
{radio: function (el) { return el.checked; }}
// ignoring: submit, button, reset. Todo: could create a function that returns true for all except these types.
],
      file: false,
      TEXTAREA: true,
      SELECT: [
{‘select-one’: true},
{
‘select-multiple’: function (el, obj) {
_.each(el.options, function (option) {
if (option.selected) {
addElValueToObject(obj, {name: el.name, value: option.value});
}
});
return false; // return false because values already added above.
}
}
],
      BUTTON: false // ignoring reset, submit, and button
};

/ **
   * in-place adds element&#39;s name and value to object.
   * @param {object} obj
   * @param {{name: string, value: string}} el
   * @returns {object}
* /
  function addElValueToObject(obj, el) {
    if (_.isArray(obj[el.name])) {
      obj[el.name].push(el.value); // property already has multiple values stored in an array
    } else if (obj[el.name]) {
      obj[el.name] = [obj[el.name]el.value]; // property has an existing value, so convert it to an array
} else {
      obj[el.name] = el.value; // only one value for this property
}
    return obj;
}

/ **
   * Returns a function that checks if the element&#39;s value should be stored.
   * @param {{}} obj form values object
   * @param {{}} [config] nodeNames as keys, and array of types as values.
   * Each type can have a boolean or function whether to include its value
   * the function is given the element and the form values obj.
   * @returns {Function}
* /
  function elPassesRules(obj, config) {
    config = config "https://slate.com/" defaultFormValuesConfig;
    return function (el) {
      var add = false;

      if (el.name) {
        _.each(config, function (rules, nodeName) {
          if (el.nodeName === nodeName) {
            if (_.isBoolean(rules)) {
              add = rules;
} else {
              _.each(rules, function (rule) {
                var type = _.keys(rule)[0]condition;

                if (type && el.type === type) {
                  condition = rule[type];
                  add = _.isFunction(condition) ? condition(el, obj) : condition;
}
});
}
}
});
}
      return add;
};
}

/ **
*
   * @param {Element} form
   * @param {{}} config
   * @returns {{}}
* /
  function formValuesToObject(form, config) {
    var obj = {};

return !form "https://slate.com/" form.nodeName !== &#39;FORM&#39; ? obj : _.reduce(_.filter(form.elements, elPassesRules(obj, config)), addElValueToObject, obj);
}

/ **
*
   * @param {string} prev
   * @param {string} val
   * @param {string} key
   * @returns {string}
* /
  function appendKeyValString(prev, val, key) {
    return prev + key + &#39;=&#39; + val + &#39;&&#39;;
}

/ **
*
   * @param {string} key
   * @returns {Function}
* /
  function appendKeyValStringFn(key) {
    return function (queryString, val) {
      return appendKeyValString(queryString, val, key);
};
}

/ **
*
   * @param {string} queryString
   * @param {array} valArray
   * @param {string} key
   * @returns {string}
* /
  function appendKeyValArray(queryString, valArray, key) {
    return _.reduce(valArray, appendKeyValStringFn(key), queryString);
}

/ **
*
   * @param {string} queryString
   * @param {string|array} val
   * @param {string} key
   * @returns {string}
* /
  function appendKeyValueToString(queryString, val, key) {
    return _.isArray(val) ? appendKeyValArray(queryString, val, key) : appendKeyValString(queryString, val, key);
}

/ **
   * converts form values to query string, useful if method is GET.
   * @param {Element} form
   * @param {{}} config
   * @returns {string} query strings sans ?
* /
  function formValuesToString(form, config) {
    return _.reduce(formService.formValuesToObject(form, config), appendKeyValueToString, "https://slate.com/");
}

  // public methods.
  this.formValuesToObject = formValuesToObject;
  this.formValuesToString = formValuesToString;
}]);

&#39;use strict&#39;

DS.service(&#39;headerBidding&#39;, function() {

  var ad_data,
    gpt_slot;

  this.prebid = function(data, slot) {
    ad_data = data;
    gpt_slot = slot;
    this.requestBidsFromExchanges();
};

  // Request bids from the exchanges
  this.requestBidsFromExchanges = function() {
    var prebidAdUnit = this.createPrebidAdUnit(),
      bidsBackCallBack = this.addBidsToDfpRequest;
    pbjs.que.push(function() {
      pbjs.addAdUnits([prebidAdUnit]);
      pbjs.adserverRequestSent = true;
      pbjs.requestBids({
        adUnitCodes: ad_data.id,
        bidsBackHandler: bidsBackCallBack
});
});
}

  // Callback function called after all bid requests completed or timeouted
  this.addBidsToDfpRequest = function() {
    googletag.cmd.push(function() {
      pbjs.que.push(function() {
        pbjs.setTargetingForGPTAsync([ad_data.id]); // add winning bid to the ad slot
        googletag.pubads().refresh([gpt_slot]{changeCorrelator: false}); // send request to the dfp
        pbjs.adserverRequestSent = false;
});
});
}

  // Returns prebid ad unit
  this.createPrebidAdUnit = function() {
he came back {
      code: ad_data.id,
      sizes: ad_data.prebidSizes,
      bids: [
this.appnexus(ad_data),
this.rubicon(ad_data)
] }
};

  // Returns data for appnexus bid request
  this.appnexus = function() {
he came back {
      bidder: &#39;appnexusAst&#39;,
      params: {
        placementId: ad_data.appnexusPlacementId
}
}
};

  // Returns data for rubicon bid request
  this.rubicon = function() {
he came back {
      bidder: &#39;rubicon&#39;,
      params: {
        accountId: &#39;13590&#39;,
        siteId: &#39;60302&#39;,
        zoneId: ad_data.rubiconZoneId
}
}
};

});

/* jshint strict: true, browser: true */
/* global window */
/* global document */
& # 39; strict use & # 39 ;;

const instance = window.Layzr({
  threshold: 100
});

example
  .on(&#39;src:before&#39;, function(element) {
    // add a load event listener
    element.addEventListener(&#39;load&#39;, function(event) {
      element.parentElement.classList.add(&#39;loaded&#39;);
});
});

document.addEventListener(&#39;DOMContentLoaded&#39;, function(event){
  instance.update().check().handlers(true)
});

& # 39; strict use & # 39 ;;

DS.service(&#39;$visibility&#39;, [&#39;$document&#39;, &#39;$window&#39;, &#39;_&#39;, &#39;Eventify&#39;, function ($document, $window, _, Eventify) {

  var list = [],
    Visible, VisibleEvent;

/ **
   * @param {number} a
   * @param {number} b
   * @returns {*}
   * @see https://jsperf.com/math-min-vs-if-condition-vs/8
* /
  function min(a, b) {
    return a < b ? a : b; }/** * @param {number} a * @param {number} b * @returns {*} * @see https://jsperf.com/math-min-vs-if-condition-vs/8 */ function max(a, b) { return a > b ? a : b;
}

/ **
   * Fast loop through watched elements
* /
  function onScroll() {
    list.forEach(updateVisibility);
}

/ **
   * updates seen property
   * @param {Visble} item
   * @param {{}} evt
   * @fires Visible#shown
   * @fires Visible#hidden
* /
  function updateSeen(item, evt) {
    var px = evt.visiblePx,
      percent = evt.visiblePercent;

    // if some pixels are visible and we&#39;re greater/equal to threshold
    if (px && percent >= item.shownThreshold && !item.seen) {
      item.seen = true;
      setTimeout(function () {
        item.trigger(&#39;shown&#39;, new VisibleEvent(&#39;shown&#39;, evt));
      }, 15);

      // if no pixels or percent is less than threshold
    } else if ((!px "https://slate.com/" percent < item.hiddenThreshold) && item.seen) { item.seen = false; setTimeout(function () { item.trigger('hidden', new VisibleEvent('hidden', evt)); }, 15); } }/** * sets preload property * @param {Visible} item * @param {{}} evt * @param {Number} innerHeight * @fires Visible#preload */ function updatePreload(item, evt, innerHeight) { if (!item.preload && item.preloadThreshhold && shouldBePreloaded(evt.target, evt.rect, item.preloadThreshhold, innerHeight)) { item.preload = true; setTimeout(function () { item.trigger('preload', new VisibleEvent('preload', evt)); }, 15); } }/** * Trigger events * @param {Visible} item */ function updateVisibility(item) { var rect = item.el.getBoundingClientRect(), innerHeight = $window.innerHeight "https://slate.com/" $document.documentElement.clientHeight, px = getVerticallyVisiblePixels(rect, innerHeight), percent = px / (rect.height "https://slate.com/" innerHeight), evt = { target: item.el, rect: rect, visiblePx: px, visiblePercent: percent };updateSeen(item, evt); updatePreload(item, evt, innerHeight); }/** * Return normalized viewport height * @return {number} */ function getViewportHeight() { return $window.innerHeight "https://slate.com/" $document.documentElement.clientHeight "https://slate.com/" $document.body.clientHeight; }/** * Return normalized viewport width * @return {number} */ function getViewportWidth() { return $window.innerWidth "https://slate.com/" $document.documentElement.clientWidth "https://slate.com/" $document.body.clientWidth; }/** * make sure an element isn't hidden by styles or etc * @param {Element} el * @return {Boolean} */ function isElementNotHidden(el) { return el && el.offsetParent !== null && !el.getAttribute('hidden') && getComputedStyle(el).display !== 'none' && getComputedStyle(el).visibility !== 'hidden'; }/** * Apparently the fastest way... * @param {Element} el * @returns {boolean} * @example if (!$visibility.isElementInViewport(el)) { ... } */ function isElementInViewport(el) { var rect = el.getBoundingClientRect();return rect.top >= 0 &&
      rect.left >= 0 &&
      rect.bottom <= ($window.innerHeight "https://slate.com/" $document.documentElement.clientHeight) &&
      rect.right <= ($window.innerWidth "https://slate.com/" $document.documentElement.clientWidth);
}

/ **
   * @param {Element} el
   * @param {ClientRect} rect
   * @param {Number} preloadThreshhold
   * @param {Number} innerHeight
   * @return {Boolean}
* /
  function shouldBePreloaded(el, rect, preloadThreshhold, innerHeight) {
    return rect.top <= innerHeight + preloadThreshhold && isElementNotHidden(el); }/** * Create a one-dimensional spacial hash of x * @param {number} x * @param {number} stepSize * @param {number} optimalK * @param {number} base * @return {number} */ function getLinearSpacialHash(x, stepSize, optimalK, base) { var index = Math.floor(x / (stepSize "https://slate.com/" 1)), remainder = x % stepSize, result = index.toString(base);if (optimalK > 1) {
      result += getLinearSpacialHash(remainder, Math.floor(stepSize / base), optimalK – 1, base);
}
    return result;
}

/ **
   * @param {ClientRect} rect
   * @param {number} innerHeight
   * @returns {number}
* /
  function getVerticallyVisiblePixels(rect, innerHeight) {
    return min(innerHeight, max(rect.bottom, 0)) – min(max(rect.top, 0), innerHeight);
}

/ **
   * Get offset of element relative to entire page
*
   * @param {Element} el
   * @returns {{left: number, top: number}}
   * @see https://jsperf.com/offset-vs-getboundingclientrect/7
* /
  function getPageOffset(el) {
    var offsetLeft = el.offsetLeft,
      offsetTop = el.offsetTop;

    while (el = el.offsetParent) {
      offsetLeft += el.offsetLeft;
      offsetTop += el.offsetTop;
}

he came back {
      left: offsetLeft,
      top: offsetTop
};
}

/ **
   * Execute function when any of the selectors become visible
*
   * Safely stops watching all selectors after first &#39;shown&#39; event.
*
   * @param {string} selector
   * @param {function} fn
   * @returns {[Visible]} Array of elements that we&#39;re watching for visibility
* /
  function watchForAny(selector, fn) {
    var el,
      visibleList;

    selector = selector.split(&#39;,&#39;);

    visibleList = _.filter(_.map(selector, function (selector) {
      el = $document.querySelector(selector);

      return el && new Visible(el).on(&#39;shown&#39;, function () {
        // stop watching for visibility
        _.invokeMap(visibleList, &#39;destroy&#39;);

        // let them proceed
        fn();
});
    }));

    return visibleList;
}

/ **
   * Create a new Visible class to observe when elements enter and leave the viewport
*
   * Call destroy function to stop listening (this is until we have better support for watching for Node Removal)
   * @param {Element} el
   * @param {{shownThreshold: number, hiddenThreshold: number}} [options]    * @class
   * @example this.visible = new $visibility.Visible(el);
* /
  Visible = function (el, options) {
    options = options "https://slate.com/" {};
    this.el = el;
    this.seen = false;
    this.preload = false;
    this.preloadThreshhold = options && options.preloadThreshhold "https://slate.com/" 0;
    this.shownThreshold = options && options.shownThreshold "https://slate.com/" 0;
    this.hiddenThreshold = options && min(options.shownThreshold, options.hiddenThreshold) "https://slate.com/" 0;
    list.push(this);
    updateVisibility(this); // set immediately to visible or not
};
  Visible.prototype = {
/ **
     * Stop triggering.
* /
    destroy: function () {
      // remove from list
      list.splice(list.indexOf(this), 1);
}
/ **
     * @name Visible#on
     * @function
     * @param {&#39;shown"https://slate.com/"https://slate.com/"hidden&#39;} e EventName
     * @param {function} cb Callback
* /
/ **
     * @name Visible#trigger
     * @function
     * @param {&#39;shown"https://slate.com/"https://slate.com/"hidden&#39;} e
     * @param {{}}
* /
};
  Eventify.enable(Visible.prototype);

  VisibleEvent = function (type, options) {
    this.type = type;
    _.assign(this, options);
};

  // listen for scroll events (throttled)
  $document.addEventListener(&#39;scroll&#39;, _.throttle(onScroll, 200));

  // public
  this.getPageOffset = getPageOffset;
  this.getLinearSpacialHash = getLinearSpacialHash;
  this.getVerticallyVisiblePixels = getVerticallyVisiblePixels;
  this.getViewportHeight = getViewportHeight;
  this.getViewportWidth = getViewportWidth;
  this.isElementNotHidden = isElementNotHidden;
  this.isElementInViewport = isElementInViewport;
  this.watchForAny = watchForAny;
  this.Visible = Visible;
}]);
!function e(s,i,t){function n(a,o){if(!i[a]){if(!s[a]){var c="function"==typeof require&&require;if(!o&&c)return c(a,!0);if(r)return r(a,!0);var l=new Error("Cannot find module "https://slate.com/"+a+"https://slate.com/"https://slate.com/");throw l.code="MODULE_NOT_FOUND",l}var f=i[a]={exports:{}};s[a][0].call(f.exports,function(e){var i=s[a][1][e];return n(i?i:e)},f,f.exports,e,s,i,t)}return i[a].exports}for(var r="function"==typeof require&&require,a=0;a<t.length;a++)n(t[a]);return n}({1:[function(e,s,i){“use strict”;DS.controller(“slate-omniture”,[“_”,”dom”,function(s,i){function t(){var e=i.find(‘meta[property=”article:tag”]&#39;);if(!e)return"https://slate.com/";var s=e.content.split(",");return s.map(function(e){return e.trim().toLowerCase()})}function n(e){var s=e&&i.findAll(e,".article__authors meta");return s?Array.prototype.map.call(s,function(e){return e.content}).join(","):"https://slate.com/"}function r(e){var s=o.getSCode();const i=JSON.parse(e.dataset.omniture);return i.urlPath=window.location.pathname,i.tagsString=t(),i.authorsString=n(e),c(s,i),s}function a(e){this.el=e;const s="prod"===e.getAttribute("data-site"),t=e.getAttribute("data-edit"),n=i.find(".article");if(n){const e=r(n);s&&!t&&e.t()}}const o=e("./s_code"),c=e("./format-omniture");return a.prototype={events:{click:"handler"},handler:function(e){console.log(e.target)}},a}])},{"./format-omniture":2,"./s_code":3}],2:[function(e,s,i){“use strict”;function t(e){const s=new Date(e”https://slate.com/”null).toISOString();return s.slice(0,10).replace(/-/g,”https://slate.com/”)}function n(e,s){if(s.pubDate&&s.section&&s.seoHeadline){const i=t(s.pubDate);e.pageName=s.section.toLowerCase()+”:article – “+i+” – “+s.seoHeadline.toLowerCase()}}function r(e,s){s.section&&(e.channel=”sl – “+s.section.toLowerCase())}function a(e,s){s.rubric&&(e.prop2=s.rubric.toLowerCase())}function o(e,s){e.prop39=s.commericalNode}function c(e,s){e.prop12=s.urlPath}function l(e,s){s.seoHeadline&&(e.prop13=s.seoHeadline.toLowerCase())}function f(e,s){e.prop40=s.tagsString}function u(e,s){e.prop5=e.eVar8=s.authorsString}function d(e,s){e.currencyCode=”usd”,e.charSet=”utf-8″,e.trackDownloadLinks=!0,e.trackExternalLinks=!0,e.trackInlineStats=!0,e.linkDownloadFileTypes=”exe,zip,wav,mp3,mov,mpg,avi,wmv,doc,pdf,xls”,e.linkInternalFilters=”javascript:,slate.com”,e.linkTrackVars=”none”,e.linkTrackEvents=”none”,e.server=”www.slate.com”,e.prop4=”slate”,e.prop14=”1″,e.prop3=”article”,e.prop36=”general”,e.eVar17=e.prop3,o(e,s),a(e,s),e.hier1=[s.section,s.rubric,”article”].join("https://slate.com/"https://slate.com/").toLowerCase(),n(e,s),r(e,s),u(e,s),c(e,s),l(e,s),f(e,s)}s.exports=d},{}],3:[function(esi){functiont(esi){vartnraoc=&#39;sversion=&#39;H274&#39;;san=s_an;slogDebug=function(m){vars=thistcf=newFunction(&#39;vare;try{consolelog("&#39;+srep(srep(srep(m"\\""\\\\")"\n""\\n")"\"https://slatecom/""\\\"https://slatecom/")+"https://slatecom/");}catch(e){}&#39;);tcf()};scls=function(xc){variy=&#39;&#39;;if(!c)c=thisan;for(i=0;i=0)y+=n}retur&#39;+"n y};s.fl=function(x,l){return x?("https://slate.com/"+x).substring(0,l):x};s.co=function(o){return o};s.num=function(x){x="https://slate.com/"+x;for(var p=0;p<x.length;p++)if((&#39;0123456789&#39;).indexOf(x.substring(p,p+1))<0)return 0;return 1};s.rep=s_rep;s.sp=s_sp;s.jn=s_jn;s.ape=function(x){var s=this,h=&#39;0123456789ABCDEF&#39;,f="+~!*()&#39;",i,c=s.charSet,n,l,e,y="https://slate.com/";c=c?c.toUpperCase():"https://slate.com/";if(x){x="https://slate.com/"+x;if(s.em==3){x=encodeURIComponent(x);for(i=0;i=0)x=s.rep(x,n,"%"+n.charCodeAt(0).toString(16).toUpperCase())}}else if(c==&#39;AUTO&#39;&&("https://slate.com/").charCodeAt){for(i=0;i127){l=0;e="https://slate.com/";while(n"https://slate.com/"l<4){e=h.substring(n%16,n%16+1)+e;n=(n-n%16)/16;l++}y+=&#39;%u&#39;+e}else if(c==&#39;+&#39;)y+=&#39;%2B&#39;;else y+=escape(c)}x=y}else x=s.rep(escape("https://slate.com/"+x),&#39;+&#39;,&#39;%2B&#39;);if(c&&c!=&#39;AUTO&#39;&&s.em==1&&x.indexOf(&#39;%u&#39;)<0&&x.indexOf(&#39;%U&#39;)<0){i=x.indexOf('%');while(i>=0){i++;if(h.substring(8).indexOf(x.substring(i,i+1).toUpperCase())>=0)return x.substring(0,i)+&#39;u00&#39;+x.substring(i);i=x.indexOf(&#39;%&#39;,i)}}}return x};s.epa=function(x){var s=this,y,tcf;if(x){x=s.rep("https://slate.com/"+x,&#39;+&#39;,"https://slate.com/");if(s.em==3){tcf=new Function(&#39;x&#39;,&#39;var y,e;try{y=decodeURIComponent(x)}catch(e){y=unescape(x)}return y&#39;);return tcf(x)}else return unescape(x)}return y};s.pt=function(x,d,f,a){var s=this,t=x,z=0,y,r;while(t){y=t.indexOf(d);y=y<0?t.length:y;t=t.substring(0,y);r=s[f](t,a);if(r)return r;z+=y+d.length;t=x.substring(z,x.length);t=z=0)a=a.substring(0,c);c=a.indexOf(&#39;=&#39;);if(c>=0)a=a.substring(0,c);if(t.substring(0,2)==&#39;s_&#39;)t=t.substring(2);return (t!="https://slate.com/"&&t==a)};s.fsf=function(t,a){var s=this;if(s.pt(a,&#39;,&#39;,&#39;isf&#39;,t))s.fsg+=(s.fsg!="https://slate.com/"?&#39;,&#39;:"https://slate.com/")+t;return 0};s.fs=function(x,f){var s=this;s.fsg="https://slate.com/";s.pt(x,&#39;,&#39;,&#39;fsf&#39;,f);return s.fsg};s.mpc=function(m,a){var s=this,c,l,n,v;v=s.d.visibilityState;if(!v)v=s.d.webkitVisibilityState;if(v&&v==&#39;prerender&#39;){if(!s.mpq){s.mpq=new Array;l=s.sp(&#39;webkitvisibilitychange,visibilitychange&#39;,&#39;,&#39;);for(n=0;n0){c=s.mpq.shift();s[c.m].apply(s,c.a)}s.mpq=0}&#39;),false)}}c=new Object;c.m=m;c.a=a;s.mpq.push(c);return 1}return 0};s.si=function(){var s=this,i,k,v,c=s_gi+&#39;var s=s_gi("https://slate.com/"+s.oun+&#39;");s.sa("https://slate.com/"+s.un+&#39;");&#39;;for(i=0;i2?n:2;p=d.lastIndexOf(&#39;.&#39;);if(p>=0){while(p>=0&&n>1){p=d.lastIndexOf(&#39;.&#39;,p-1);n–}s.c_d=p>0&&s.pt(d,&#39;.&#39;,&#39;c_gdf&#39;,0)?d.substring(p):d}}return s.c_d};s.c_r=function(k){var s=this;k=s.ape(k);var c="https://slate.com/"+s.d.cookie,i=c.indexOf("https://slate.com/"+k+&#39;=&#39;),e=i<0?i:c.indexOf(&#39;;&#39;,i),v=i<0?"https://slate.com/":s.epa(c.substring(i+2+k.length,e<0?c.length:e));return v!=&#39;[[B]]&#39;?v:"https://slate.com/"};s.c_w=function(k,v,e){var s=this,d=s.c_gd(),l=s.cookieLifetime,t;v="https://slate.com/"+v;l=l?("https://slate.com/"+l).toUpperCase():"https://slate.com/";if(e&&l!=&#39;SESSION&#39;&&l!=&#39;NONE&#39;){t=(v!="https://slate.com/"?parseInt(l?l:0):-60);if(t){e=new Date;e.setTime(e.getTime()+(t*1000))}}if(k&&l!=&#39;NONE&#39;){s.d.cookie=k+&#39;=&#39;+s.ape(v!="https://slate.com/"?v:&#39;[[B]]&#39;)+&#39;; path=/;&#39;+(e&&l!=&#39;SESSION&#39;?&#39; expires=&#39;+e.toGMTString()+&#39;;&#39;:"https://slate.com/")+(d?&#39; domain=&#39;+d+&#39;;&#39;:"https://slate.com/");return s.c_r(k)==v}return 0};s.eh=function(o,e,r,f){var s=this,b=&#39;s_&#39;+e+&#39;_&#39;+s._in,n=-1,l,i,x;if(!s.ehl)s.ehl=new Array;l=s.ehl;for(i=0;i<l.length&&n<0;i++){if(l[i].o==o&&l[i].e==e)n=i}if(n<0){n=i;l[n]=new Object}x=l[n];x.o=o;x.e=e;f=r?x.b:f;if(r"https://slate.com/"f){x.b=r?0:o[e];x.o[e]=f}if(x.b){x.o[b]=x.b;return b}return 0};s.cet=function(f,a,t,o,b){var s=this,r,tcf;if(s.apv>=5&&(!s.isopera"https://slate.com/"s.apv>=7)){tcf=new Function(&#39;s&#39;,&#39;f&#39;,&#39;a&#39;,&#39;t&#39;,&#39;var e,r;try{r=s[f](a)}catch(e){r=s
if(e&&(e=e.toLowerCase(),f))for(r=0;r<2;r++)for(n=0;n0&&"s_l"==a)&&(o.oun==e"https://slate.com/"o.fs&&o.sa&&o.fs(o.oun,e))){if(o.sa&&o.sa(e),"s_c"==a)return o}else o=0;return l.s_an="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",l.s_sp=new Function("x","d","var a=new Array,i=0,j;if(x){if(x.split)a=x.split(d);else if(!d)for(i=0;i=0){j=x.indexOf(d,i);a[a.length]=x.substring(i,j<0?x.length:j);i=j;if(i>=0)i+=d.length}}return a"),l.s_jn=new Function("a","d","var x="https://slate.com/",i,j=a.length;if(a&&j>0){x=a[0];if(j>1){if(a.join)x=a.join(d);else for(i=1;i0){d=x.substring(0,i);x=x.substring(i+2);l=s_sp(l,"https://slate.com/");for(i=0;i<62;i++)l2[l[i]]=i;t=s_sp(t,"https://slate.com/");d=s_sp(d,&#39;~&#39;);i=0;while(i<5){v=0;if(x.indexOf(t[i])>=0) {x2=s_sp(x,t[i]);for(j=1;j=0)x=s_rep(x,w,t[i]);i++;b+=62}}}return x"),l.s_fe=new Function("c","return s_rep(s_rep(s_rep(c,&#39;\\&#39;,&#39;\\\\&#39;),&#39;"https://slate.com/",&#39;\\"https://slate.com/"),"\n","\\n")"),l.s_fa=new Function("f","var s=f.indexOf(&#39;(&#39;)+1,e=f.indexOf(&#39;)&#39;),a="https://slate.com/",c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==&#39;,&#39;)a+=&#39;","https://slate.com/";else if(("\n\r\t ").indexOf(c)<0)a+=c;s++}return a?'"https://slate.com/"+a+'"https://slate.com/":a"),l.s_ft=new Function("c","c+="https://slate.com/";var s,e,o,a,d,q,f,h,x;s=c.indexOf('=function(');while(s>=0){s++;d=1;q="https://slate.com/";x=0;f=c.substring(s);a=s_fa(f);e=o=c.indexOf(&#39;{&#39;,s);e++;while(d>0){h=c.substring(e,e+1);if(q){if(h==q&&!x)q="https://slate.com/";if(h==&#39;\\&#39;)x=x?0:1;else x=0}else{if(h==&#39;"https://slate.com/"https://slate.com/"https://slate.com/"h=="https://slate.com/"")q=h;if(h==&#39;{&#39;)d++;if(h==&#39;}&#39;)d–}if(d>0)e++}c=c.substring(0,s)+&#39;new Function(&#39;+(a?a+&#39;,&#39;:"https://slate.com/")+&#39;"https://slate.com/"+s_fe(c.substring(o+1,e))+&#39;")&#39;+c.substring(e+1);s=c.indexOf(&#39;=function(&#39;)}return c;"),c=s_d(c),p>0?(t=parseInt(n=v.substring(p+5)),t>3&&(t=parseFloat(n))):t=g>0?parseFloat(d.substring(g+10)):parseFloat(v),(t<5"https://slate.com/"v.indexOf("Opera")>=0"https://slate.com/"d.indexOf("Opera")>=0)&&(c=s_ft(c)),o"https://slate.com/"(o=new Object,l.s_c_in"https://slate.com/"(l.s_c_il=new Array,l.s_c_in=0),o._il=l.s_c_il,o._in=l.s_c_in,o._il[o._in]=o,l.s_c_in++),o._c="s_c",new Function("s","un","pg","ss",c)(o,e,s,i),o}function n(){var e,s,i,n=window,r=n.s_giq;if(r)for(e=0;e=0?e.campaign=e.getQueryParam("wpsrc"):window.location.href.indexOf("bfsrc")>=0?e.campaign="buzzfeed":document.location.search.match(/GT1=38001/i)&&(e.campaign="msn"),e.getQueryParam("onswipe_redirect")?"no"==e.getQueryParam("onswipe_redirect")?e.eVar3="onswipe_redirect_no":"never"==e.getQueryParam("onswipe_redirect")&&(e.eVar3="onswipe_redirect_never"):e.eVar3=e.getQueryParam("wpisrc"),e.called"https://slate.com/"(e.called=0),e.called++,e.called>1&&(delete e.eVar3,delete e.eVar20,delete e.prop20);var s=e.campaign;e.campaign=e.getValOnce(e.campaign,"ctc",0),"https://slate.com/"===e.campaign&&(e.campaign=s),e.events?e.events.indexOf("event1")==-1&&(e.events=e.events+",event1"):e.events="event1",e.eVar1=e.pageName,e.eVar2=e.channel,e.hier3=e.getVisitStart("s_visit"),e.prop39"https://slate.com/"("undefined"!=typeof commercialNode&&"https://slate.com/"!==commercialNode?e.prop39=commercialNode:e.prop39="Missing commercial node");try{e.prop18=e.getNewRepeat()}catch(s){e.prop18="nocategory"}e.prop17=e.getDaysSinceLastVisit("s_lv"),e.prop17=e.getAndPersistValue(e.prop17,"s_dslv",0),e.eVar14=e.prop18,e.eVar15=e.prop17;try{e.eVar16=e.getVisitNum("m","s_vmonthnum","s_monthinvisit")}catch(s){e.eVar16="nocategory"}var i=(new Date).getFullYear()+"https://slate.com/";e.prop8=e.getTimeParting("d","-5",i),e.prop9=e.getTimeParting("h","-5",i),e.prop10=e.getTimeParting("w","-5",i);var t=e.prop3,n=e.c_r("s_wp_ep");!n&&t&&(e.c_w("s_wp_ep",t,0),e.eVar18=t),e.eVar36=e.prop36,e.eVar56=e.prop36};a.doPlugins=o,a.getQueryParam=new Function("p","d","u","h","var s=this,v="https://slate.com/",i,j,t;d=d?d:"https://slate.com/";u=u?u:(s.pageURL?s.pageURL:s.wd.location);if(u==&#39;f&#39;)u=s.gtfs().location;while(p){i=p.indexOf(&#39;,&#39;);i=i<0?p.length:i;t=s.p_gpv(p.substring(0,i),u+"https://slate.com/",h);if(t){t=t.indexOf('#')>-1?t.substring(0,t.indexOf(&#39;#&#39;)):t;}if(t)v+=v?d+t:t;p=p.substring(i==p.length?i:i+1)}return v"),a.p_gpv=new Function("k","u","h","var s=this,v="https://slate.com/",q;j=h==1?&#39;#&#39;:&#39;?&#39;;i=u.indexOf(j);if(k&&i>-1){q=u.substring(i+1);v=s.pt(q,&#39;&&#39;,&#39;p_gvf&#39;,k)}return v"),a.p_gvf=new Function("t","k","if(t){var s=this,i=t.indexOf(&#39;=&#39;),p=i<0?t:t.substring(0,i),v=i<0?'True':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s.epa(v)}return"https://slate.com/"https://slate.com/"),a.getValOnce=new Function("v","c","e","var s=this,a=new Date,v=v?v:v="https://slate.com/",c=c?c:c='s_gvo',e=e?e:0,k=s.c_r(c);if(v){a.setTime(a.getTime()+e*86400000);s.c_w(c,v,e?a:0);}return v==k?"https://slate.com/":v"),a.getVisitStart=new Function("c","var s=this,v=1,t=new Date;t.setTime(t.getTime()+1800000);if(s.c_r(c)){v=0}if(!s.c_w(c,1,t)){s.c_w(c,1,0)}if(!s.c_r(c)){v=0}return v;"),a.getVisitNum=new Function("tp","c","c2","var s=this,e=new Date,cval,cvisit,ct=e.getTime(),d;if(!tp){tp='m';}if(tp=='m"https://slate.com/"https://slate.com/"tp=='w"https://slate.com/"https://slate.com/"tp=='d'){eo=s.endof(tp),y=eo.getTime();e.setTime(y);}else {d=tp*86400000;e.setTime(ct+d);}if(!c){c='s_vnum';}if(!c2){c2='s_invisit';}cval=s.c_r(c);if(cval){var i=cval.indexOf('&vn='),str=cval.substring(i+4,cval.length),k;}cvisit=s.c_r(c2);if(cvisit){if(str){e.setTime(ct+1800000);s.c_w(c2,'true',e);return str;}else {return 'unknown visit number';}}else {if(str){str++;k=cval.substring(0,i);e.setTime(k);s.c_w(c,k+'&vn='+str,e);e.setTime(ct+1800000);s.c_w(c2,'true',e);return str;}else {s.c_w(c,e.getTime()+'&vn=1',e);e.setTime(ct+1800000);s.c_w(c2,'true',e);return 1;}}"),a.dimo=new Function("m","y","var d=new Date(y,m+1,0);return d.getDate();"),a.endof=new Function("x","var t=new Date;t.setHours(0);t.setMinutes(0);t.setSeconds(0);if(x=='m'){d=s.dimo(t.getMonth(),t.getFullYear())-t.getDate()+1;}else if(x=='w'){d=7-t.getDay();}else {d=1;}t.setDate(t.getDate()+d);return t;"),a.split=new Function("l","d","var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x++]=l.substring(0,i);l=l.substring(i+d.length);}return a"),a.apl=new Function("L","v","d","u","var s=this,m=0;if(!L)L="https://slate.com/";if(u){var i,n,a=s.split(L,d);for(i=0;i30*60*1000){if(d>30*day){s.c_w(c,ct,e);s.c_w(c+&#39;_s&#39;,f2,es);}else if(d<30*day+1 && d>7*day){s.c_w(c,ct,e);s.c_w(c+&#39;_s&#39;,f3,es);}else if(d<7*day+1 && d>day){s.c_w(c,ct,e);s.c_w(c+&#39;_s&#39;,f4,es);}else if(d<day+1){s.c_w(c,ct,e);s.c_w(c+&#39;_s&#39;,f5,es);}}else{s.c_w(c,ct,e);cval_ss=s.c_r(c+&#39;_s&#39;);s.c_w(c+&#39;_s&#39;,cval_ss,es);}}cval_s=s.c_r(c+&#39;_s&#39;);if(cval_s.length==0) return f0;else if(cval_s!=f1&&cval_s!=f2&&cval_s!=f3&&cval_s!=f4&&cval_s!=f5) return "https://slate.com/";else return cval_s;"),a.getTimeParting=new Function("t","z","y","l","var s=this,d,A,U,X,Z,W,B,C,D,Y;d=new Date();A=d.getFullYear();Y=U=String(A);if(s.dstStart&&s.dstEnd){B=s.dstStart;C=s.dstEnd}else{;U=U.substring(2,4);X=&#39;090801|101407|111306|121104|131003|140902|150801|161306|171205|181104|191003&#39;;X=s.split(X,"https://slate.com/"https://slate.com/");for(W=0;W<=10;W++){Z=X[W].substring(0,2);if(U==Z){B=X[W].substring(2,4);C=X[W].substring(4,6)}}if(!B"https://slate.com/"!C){B='08';C='01'}B='03/'+B+'/'+A;C='11/'+C+'/'+A;}D=new Date('1/1/2000');if(D.getDay()!=6"https://slate.com/"D.getMonth()!=0){return'Data Not Available'}else{z=z?z:'0';z=parseFloat(z);B=new Date(B);C=new Date(C);W=new Date();if(W>B&&W30){X=&#39;30&#39;}if(B>=12){U=&#39;PM&#39;;B=B-12};if(B==0){B=12};if(D==6"https://slate.com/"D==0){A=&#39;Weekend&#39;}W=B+&#39;:&#39;+X+U;if(y&&y!=Y){return&#39;Data Not Available&#39;}else{if(t){if(t==&#39;h&#39;){return W}if(t==&#39;d&#39;){return Z}if(t==&#39;w&#39;){return A}}else{return Z+&#39;, &#39;+W}}}"),a.getPreviousValue=new Function("v","c","el","var s=this,t=new Date,i,j,r="https://slate.com/";t.setTime(t.getTime()+1800000);if(el){if(s.events){i=s.split(el,&#39;,&#39;);j=s.split(s.events,&#39;,&#39;);for(x in i){for(y in j){if(i[x]==j[y]){if(s.c_r(c)) r=s.c_r(c);v?s.c_w(c,v,t):s.c_w(c,&#39;no value&#39;,t);return r}}}}}else{if(s.c_r(c)) r=s.c_r(c);v?s.c_w(c,v,t):s.c_w(c,&#39;no value&#39;,t);return r}"),a.getPreviousPage=new Function("el","var s=this,pid,i,j,e;if(el){if(s.events){while(el){if(pid){break;}i=el.indexOf(&#39;,&#39;);i=i<0?el.length:i;e=s.events;while(e){j=e.indexOf(&#39;,&#39;);j=j<0?e.length:j;if(e.substring(0,j)==el.substring(0,i)){pid=s.p_gpp();}e=e.substring(j==e.length?j:j+1);}el=el.substring(i==el.length?i:i+1);}}}else{pid=s.p_gpp();}return pid;"),a.p_gpp=new Function("var s=this,p,i;p=s.rq(s.un);i=p.indexOf(&#39;pid=&#39;)+4;p=p.substring(i,p.length);i=p.indexOf(&#39;&&#39;);p=p.substring(0,i);p=unescape(p);return p;"),a.getNewRepeat=new Function("d","cn","var s=this,e=new Date(),cval,sval,ct=e.getTime();d=d?d:30;cn=cn?cn:&#39;s_nr&#39;;e.setTime(ct+d*24*60*60*1000);cval=s.c_r(cn);if(cval.length==0){s.c_w(cn,ct+&#39;-New&#39;,e);return&#39;New&#39;;}sval=s.split(cval,&#39;-&#39;);if(ct-sval[0]<30*60*1000&&sval[1]==&#39;New&#39;){s.c_w(cn,ct+&#39;-New&#39;,e);return&#39;New&#39;;}else{s.c_w(cn,ct+&#39;-Repeat&#39;,e);return&#39;Repeat&#39;;}"),a.c_rr=a.c_r,a.c_r=new Function("k","var s=this,d=new Date,v=s.c_rr(k),c=s.c_rr(&#39;s_pers&#39;),i,m,e;if(v)return v;k=s.ape(k);i=c.indexOf("https://slate.com/"+k+&#39;=&#39;);c=i<0?s.c_rr(&#39;s_sess&#39;):c;i=c.indexOf("https://slate.com/"+k+&#39;=&#39;);m=i<0?i:c.indexOf("https://slate.com/"https://slate.com/",i);e=i<0?i:c.indexOf(';',i);m=m>0?m:e;v=i<0?"https://slate.com/":s.epa(c.substring(i+2+k.length,m<0?c.length:m));if(m>0&&m!=e)if(parseInt(c.substring(m+1,e<0?c.length:e))-1){pv=pv.substring(0,i)+pv.substring(pv.indexOf(&#39;;&#39;,i)+1);pc=1;}sv=s.c_rr(sn);i=sv.indexOf("https://slate.com/"+k+&#39;=&#39;);if(i>-1){sv=sv.substring(0,i)+sv.substring(sv.indexOf(&#39;;&#39;,i)+1);sc=1;}d=new Date;if(e){if(e.getTime()>d.getTime()){pv+="https://slate.com/"+k+&#39;=&#39;+s.ape(v)+"https://slate.com/"https://slate.com/"+e.getTime()+&#39;;&#39;;pc=1;}}else{sv+="https://slate.com/"+k+&#39;=&#39;+s.ape(v)+&#39;;&#39;;sc=1;}if(sc) s.c_wr(sn,sv,0);if(pc){t=pv;while(t&&t.indexOf(&#39;;&#39;)!=-1){var t1=parseInt(t.substring(t.indexOf("https://slate.com/"https://slate.com/")+1,t.indexOf(&#39;;&#39;)));t=t.substring(t.indexOf(&#39;;&#39;)+1);ht=ht<t1?t1:ht;}d.setTime(ht);s.c_wr(pn,pv,d);}return v==s.c_r(s.epa(k));"),a.trackingServer="metrics.slate.com",a.trackingServerSecure="smetrics.slate.com",a.visitorMigrationKey="4EFF666A",a.visitorMigrationServer="wpni.112.2o7.net";n(),window.s=a,s.exports.getSCode=function(){return a}},{}]},{},[1]);"use strict";var googletag=googletag"https://slate.com/"{};googletag.cmd=googletag.cmd"https://slate.com/"[],DS.controller("ad",[“adService”,”$visibility”,”adsScripts”,function(e,t){var o=function(o){var r=new t.Visible(o,{preloadThreshhold:200}),a=e.createAd(o);”outstream-video”==a.type?e.requestAd(a):r.on(“preload”,function(){t.isElementNotHidden(o)&&e.requestAd(a)})};return o}]),DS.service("adsScripts",function(){!function(){var e=document.createElement("script");e.async=!0,e.type="text/javascript",e.src="https://www.googletagservices.com/tag/js/gpt.js",document.body.appendChild(e)}()});"use strict";DS.controller("article",[“dom”,function(o){var s;return s=function(o){this.el=o},s.prototype={events:{“.sponsored-button mouseover”:”showMessage”,”.sponsored-button mouseout”:”hideMessage”},showMessage:function(){o.find(“.sponsored-info”).classList.add(“on”)},hideMessage:function(){o.find(“.sponsored-info”).classList.remove(“on”)}},s}]);DS.controller("slate-parsely",[function(){“use strict”;function t(t){}return t.prototype={events:{click:”handler”},handler:function(t){console.log(t.target)}},t}]);!function e(n,t,r){function o(c,s){if(!t[c]){if(!n[c]){var u="function"==typeof require&&require;if(!s&&u)return u(c,!0);if(i)return i(c,!0);var f=new Error("Cannot find module "https://slate.com/"+c+"https://slate.com/"https://slate.com/");throw f.code="MODULE_NOT_FOUND",f}var a=t[c]={exports:{}};n[c][0].call(a.exports,function(e){var t=n[c][1][e];return o(t?t:e)},a,a.exports,e,n,t,r)}return t[c].exports}for(var i="function"==typeof require&&require,c=0;c<r.length;c++)o(r[c]);return o}({1:[function(e,n,t){DS.controller(“kicker-promo”,[function(){“use strict”;function n(n){const t=e(“../../services/universal/membership”),r=t.isMember();r”https://slate.com/”n.classList.add(“kicker-promo–non-member”)}return n}])},{"../../services/universal/membership":3}],2:[function(ent){!function(e){varr=!1;if("function"==typeofdefine&&defineamd&&(define(e)r=!0)"object"==typeoft&&(nexports=e()r=!0)!r){varo=windowCookiesi=windowCookies=e();inoConflict=function(){returnwindowCookies=oi}}}(function(){functione(){for(vare=0n={};e1){if(i=e({path:"/"},r.defaults,i),"number"==typeof i.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():"https://slate.com/";try{c=JSON.stringify(o),/^[{[]/.test(c)&&(o=c)}catch(e){}o=t.write?t.write(o,n):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[()]/g,escape);var u="https://slate.com/";for(var f in i)i[f]&&(u+="; "+f,i[f]!==!0&&(u+="="+i[f]));return document.cookie=n+"="+o+u}n"https://slate.com/"(c={});for(var a=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,l=0;l<a.length;l++){var d=a[l].split("="),m=d.slice(1).join("=");this.json"https://slate.com/"https://slate.com/"https://slate.com/"https://slate.com/"!==m.charAt(0)"https://slate.com/"(m=m.slice(1,-1));try{var g=d[0].replace(p,decodeURIComponent);if(m=t.read?t.read(m,g):t(m,g)"https://slate.com/"m.replace(p,decodeURIComponent),this.json)try{m=JSON.parse(m)}catch(e){}if(n===g){c=m;break}n"https://slate.com/"(c[g]=m)}catch(e){}}return c}}return r.set=r,r.get=function(e){return r.call(r,e)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(n,t){r(n,"https://slate.com/",e(t,{expires:-1}))},r.withConverter=n,r}return n(function(){})})},{}],3:[function(e,n,t){“use strict”;function r(){let e=!1;return u&&(e=!0),e}function o(){let e=”none”;return u&&(e=u.membershipType),e}function i(){let e=f+”/users/slate_page_info/”,n={method:”GET”,credentials:”include”,headers:{Accept:”application/json”}};if(u)return fetch(e,n).then(function(e){return e.json()}).catch(function(e){console.log(“Fetch for myslate membership info failed:”,e)})}function c(){return!!s.getJSON(“wapo_login_id”)}const s=e(“js-cookie”),u=s.getJSON(“splus”),f=document.documentElement.getAttribute(“data-myslateUrl”);n.exports.isMember=r,n.exports.getMembershipType=o,n.exports.getMembershipInfo=i,n.exports.isLoggedIn=c},{“js-cookie”:2}]},{},[1]);!function t(e,n,r){function i(o,a){if(!n[o]){if(!e[o]){var c="function"==typeof require&&require;if(!a&&c)return c(o,!0);if(s)return s(o,!0);var u=new Error("Cannot find module "https://slate.com/"+o+"https://slate.com/"https://slate.com/");throw u.code="MODULE_NOT_FOUND",u}var f=n[o]={exports:{}};e[o][0].call(f.exports,function(t){var n=e[o][1]       // ]]     
Source link