"use strict";function _toConsumableArray(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b0)for(var d=0;d>>2]|=(c[e>>>2]>>>24-8*(e%4)&255)<<24-8*((d+e)%4);else if(65535>>2]=c[e>>>2];else b.push.apply(b,c);return this.sigBytes+=a,this},clamp:function(){var b=this.words,c=this.sigBytes;b[c>>>2]&=4294967295<<32-8*(c%4),b.length=a.ceil(c/4)},clone:function(){var a=f.clone.call(this);return a.words=this.words.slice(0),a},random:function(b){for(var c=[],d=0;d>>2]>>>24-8*(d%4)&255;c.push((e>>>4).toString(16)),c.push((15&e).toString(16))}return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;d>>3]|=parseInt(a.substr(d,2),16)<<24-4*(d%8);return new g.init(c,b/2)}},j=h.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var c=[],d=0;d>>2]>>>24-8*(d%4)&255));return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;d>>2]|=(255&a.charCodeAt(d))<<24-8*(d%4);return new g.init(c,b)}},k=h.Utf8={stringify:function(a){try{return decodeURIComponent(escape(j.stringify(a)))}catch(a){throw Error("Malformed UTF-8 data")}},parse:function(a){return j.parse(unescape(encodeURIComponent(a)))}},l=d.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=k.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(b){var c=this._data,d=c.words,e=c.sigBytes,f=this.blockSize,h=e/(4*f),h=b?a.ceil(h):a.max((0|h)-this._minBufferSize,0);if(b=h*f,e=a.min(4*b,e),b){for(var i=0;ij;j++){if(16>j)e[j]=0|a[b+j];else{var k=e[j-3]^e[j-8]^e[j-14]^e[j-16];e[j]=k<<1|k>>>31}k=(d<<5|d>>>27)+i+e[j],k=20>j?k+((f&g|~f&h)+1518500249):40>j?k+((f^g^h)+1859775393):60>j?k+((f&g|f&h|g&h)-1894007588):k+((f^g^h)-899497514),i=h,h=g,g=f<<30|f>>>2,f=d,d=k}c[0]=c[0]+d|0,c[1]=c[1]+f|0,c[2]=c[2]+g|0,c[3]=c[3]+h|0,c[4]=c[4]+i|0},_doFinalize:function(){var a=this._data,b=a.words,c=8*this._nDataBytes,d=8*a.sigBytes;return b[d>>>5]|=128<<24-d%32,b[(d+64>>>9<<4)+14]=Math.floor(c/4294967296),b[(d+64>>>9<<4)+15]=c,a.sigBytes=4*b.length,this._process(),this._hash},clone:function(){var a=d.clone.call(this);return a._hash=this._hash.clone(),a}});a.SHA1=d._createHelper(b),a.HmacSHA1=d._createHmacHelper(b)}(),function(){var a=CryptoJS,b=a.enc.Utf8;a.algo.HMAC=a.lib.Base.extend({init:function(a,c){a=this._hasher=new a.init,"string"==typeof c&&(c=b.parse(c));var d=a.blockSize,e=4*d;c.sigBytes>e&&(c=a.finalize(c)),c.clamp();for(var f=this._oKey=c.clone(),g=this._iKey=c.clone(),h=f.words,i=g.words,j=0;j>>2]>>>24-f%4*8&255,h=b[f+1>>>2]>>>24-(f+1)%4*8&255,i=b[f+2>>>2]>>>24-(f+2)%4*8&255,j=g<<16|h<<8|i,k=0;k<4&&f+.75*k>>6*(3-k)&63));var l=d.charAt(64);if(l)for(;e.length%4;)e.push(l);return e.join("")},parse:function(a){var b=a.length,d=this._map,e=d.charAt(64);if(e){var f=a.indexOf(e);f!=-1&&(b=f)}for(var g=[],h=0,i=0;i>>6-i%4*2;g[h>>>2]|=(j|k)<<24-h%4*8,h++}return c.create(g,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),window.aggrego=window.aggrego||{},window.aggrego.utils=window.aggrego.utils||{},window.aggrego.currentyFetchingWidget=window.aggrego.currentyFetchingWidget||!1,window.aggrego.utils.getAndSaveLiftIgniterPosts=function(a,b,c,d,e){if(window.aggrego.currentyFetchingWidget)return void setTimeout(window.aggrego.utils.getAndSaveLiftIgniterPosts,50,a,b,c,d,e);window.aggrego.currentyFetchingWidget=!0,$p("setRequestFields",["title","url","thumbnail","thumbnail_focal_x","thumbnail_focal_y","thumbnail_width","thumbnail_height"]),$p("setRequestFieldsAON",!0);var f=getAppropriateChatterDomain(e),g=function(a){if(window.location.host.includes("pantheonsite.io")||window.location.host.includes(".wordpress."))return void console.log("not tracking this LI widget");var b=window.location.host,c=new RegExp(".*sports-chatter..*|sportschatter.com"),e=new RegExp(".*celeb-chatter..*|celebchatter.com"),f=new RegExp(".*politics-chatter..*|politicschatter.com"),g=new RegExp(".*odd-chatter..*|oddchatter.com"),h=new RegExp(".*travel-chatter..*|travelchatter.net");return c.test(b)?void console.log("not tracking this LI widget"):e.test(b)?void console.log("not tracking this LI widget"):f.test(b)?void console.log("not tracking this LI widget"):g.test(b)?void console.log("not tracking this LI widget"):h.test(b)?void console.log("not tracking this LI widget"):(console.log("tracking this LI widget, algo: "+a),void $p("track",{elements:document.querySelectorAll("#"+d+" .agg-collage-post"),name:"default-widget",source:a,opts:{page:'"'+Math.random()+'"'},_debug:!1}))},h=function(h){h<50?($p("register",{max:a,widget:"default-widget",opts:{resultType:"cross-domain",domainType:f},callback:function(a){window.aggrego[c].posts=parseLiftIgniterReponse(a,e),window.aggrego.utils.insertContent(b,c,window.aggrego.utils.getContentString(c),d),g("LI"),loadGA(c,b,d)}}),$p("fetch")):(window.aggrego.currentyFetchingWidget=!1,console.log("\ninserting base content"),window.aggrego.utils.insertContent(b,c,window.aggrego.utils.getContentString(c),d),console.log("\ntracking base content"),g("base"),loadGA(c,b,d))};$p("abTestSlice",{callback:h})},window.aggrego.utils.getContentString=function(a){var b=window.aggrego[a].posts,c=window.aggrego.utils.postsToHTMLStrings(b,a),d=[].concat(_toConsumableArray(c)),e=window.aggrego[a].version;return'\n
\n
\n
\n '+d.join("")+"\n
\n
\n
"},window.aggrego.utils.postsToHTMLStrings=function(a,b){var c=window.aggrego[b],d=c.widget_anchor_id,e=c.version,f=c.blog_name,g=0,h=[],i=!0,j=!1,k=void 0;try{for(var l,m=a[Symbol.iterator]();!(i=(l=m.next()).done);i=!0){var n=l.value;h.push(window.aggrego.utils.postToHTMLString(n,d,e,f,++g))}}catch(a){j=!0,k=a}finally{try{!i&&m.return&&m.return()}finally{if(j)throw k}}return 0==window.aggrego[b].version.localeCompare("five_pack_plus_ad")&&h.push('
'),h},window.aggrego.utils.postToHTMLString=function(a,b,c,d,e){var f=a.title,g=a.url,h=a.thumbnail,i=g.split("://")[1].split("/");i.shift(),i="/"+i.join("/");var j=5==e&&0==c.localeCompare("five_pack_plus_ad"),k=400,l=void 0;if(0==c.localeCompare("mid_article_three_pack"))l=400;else if(window.innerWidth>=768)if(j){var m=h.height/h.width;m>=1?(k=400,l=k*m):l=250}else l=400;else l=200;var n=window.aggrego.utils.stringifyPostThumbnail(h,k,l,j?"agg-collage-fifth-tile-img":""),o=j?"agg-collage-widget-title-overlay":"",p=j?"agg-collage-fifth-tile-title":"",q=j?"agg-collage-fifth-tile-source":"",r=window.aggrego.utils.stringifyPostDetails(f,d,o,p,q);return'\n
\n \n "+n+"\n "+r+"\n \n
\n"},window.aggrego.utils.stringifyPostThumbnail=function(a,b,c){var d=arguments.length<=3||void 0===arguments[3]?"":arguments[3],e=a.url,f=a.width,g=a.height,h=a.focal_x,i=a.focal_y,j=f/g;e=window.aggrego.utils.buildImageUrl(e,h,i,b,c);var k="";return'\n
\n '+k+"\n
\n"},window.aggrego.utils.stringifyPostDetails=function(a,b){var c=arguments.length<=2||void 0===arguments[2]?"":arguments[2],d=arguments.length<=3||void 0===arguments[3]?"":arguments[3],e=arguments.length<=4||void 0===arguments[4]?"":arguments[4];return'\n
\n '+a+'\n '+b+"\n
\n"},window.aggrego.utils.buildImageUrl=function(a,b,c,d,e){if(!a)return"";a=a.replace("s3.amazonaws.com","bullseye-prod.aggrego.org"),a=a.replace("-600x400","");var f=JSON.stringify({x:b,y:c,width:d,height:e}),g=encodeURIComponent(btoa(f)),h="12345678901234561234567890123456",i=a.split("/"),j=["wp-ag",i[i.length-1],g].join("/"),k=encodeURIComponent(btoa(CryptoJS.HmacSHA1(j,h).toString()));return a+"?o="+g+"&s="+k},window.aggrego.utils.insertContent=function(a,b,c,d){var e=document.getElementById(d);return e?(e.innerHTML=c,void window.aggrego.utils.makeStylingAdjustments(a,d)):void console.log('Could not find the DOM element of id "'+d+'". Please provide a valid value for the "anchorID" HTTP parameter in the embed request. See relevant documentation for more details.')},window.aggrego.utils.importStylesheet=function(a){var b=document.head,c=document.createElement("link");c.type="text/css",c.rel="stylesheet",a=a.split("//"),a=window.location.protocol+"//"+a[1],c.href=a,b.appendChild(c)},window.aggrego.utils.showError=function(a){var b={1:'Please include a valid "version" HTTP parameter key and value pair in the embed request. ',2:'Please include a valid "widgetAnchorID" HTTP parameter ley and value pair in the embed request. '},c=b[a]||"An unknown error occurred. ";console.log(c+"See relevant documentation for more details.")},window.aggrego.utils.makeStylingAdjustments=function(a,b){document.addEventListener("scroll",function(c){if(0==a.localeCompare("four_pack")&&document.getElementById(b).offsetWidth<500&&window.innerWidth>=768){var d=window.document.styleSheets[0];d.insertRule("#"+b+" .agg-collage-post:nth-child(1) { display: none; }",d.cssRules?d.cssRules.length:0),d.insertRule("#"+b+" .agg-collage-post { width: 30% !important; }",d.cssRules?d.cssRules.length:0)}if(0==a.localeCompare("five_pack_plus_ad")){var e=document.getElementById(b),f=e.getElementsByClassName("agg-collage-content")[0].offsetWidth;if(f<580&&window.innerWidth>=768&&e.getElementsByClassName("agg-collage-post").length>=4){e.getElementsByClassName("agg-collage-post")[3].style.display="none",e.getElementsByClassName("agg-collage-post")[4].style.display="none";var g=window.document.styleSheets[0];g.insertRule("#"+b+" .agg-collage-post { width: 30% !important; }",g.cssRules?g.cssRules.length:0)}if(f>=580&&window.innerWidth>=768){var h=e.getElementsByClassName("agg-collage-fifth-tile-img");if(h&&h.length>0){h=h[0];var i=h.getAttribute("data-img-dim-ratio");if(i<=1){var j=h.offsetWidth,k=j/i,l=k-250,m=h.getAttribute("data-img-focal-y");h.style.marginTop="-"+l*m+"px"}else{h.getElementsByTagName("img")[0].style.height="250px",h.getElementsByTagName("img")[0].style.width="auto";var n=h.offsetWidth,o=n-400,p=h.getAttribute("data-img-focal-x"),q=o*p,r=h.style.marginLeft.replace("px",""),s=Math.abs(r-q)>5;s&&(h.style.marginLeft=q+"px")}e.getElementsByClassName("agg-collage-widget-title-overlay")[0].style.left="0",e.getElementsByClassName("agg-collage-widget-title-overlay")[0].style.right="0",e.getElementsByClassName("agg-collage-widget-title-overlay")[0].style.margin="0 auto"}}}})};var aggUTILS={insertCSS:function(a,b){var c=document.createElement("style");return c.appendChild(document.createTextNode("")),c.setAttribute("data-collage-css-name",b),c.type="text/css",c.innerHTML=a,document.head.appendChild(c),c},insertCSSIfNotPresent:function(a,b){document.querySelector("style[data-collage-css-name='"+b+"']")||this.insertCSS(a,b)},insertContent:function(a,b){var c=document.getElementById(b);return c?void(c.innerHTML=a):void console.log('Could not find the DOM element of id "'+b+'". Please provide a valid value for the "anchorID" HTTP parameter in the embed request. See relevant documentation for more details.')}};window.aggrego["embed_widget_57d819a0da15d"] = {}; window.aggrego.embed_widget_57d819a0da15d.version="mid_article_three_pack"; window.aggrego.embed_widget_57d819a0da15d.widget_anchor_id="agg-collage-sports-23474"; window.aggrego.embed_widget_57d819a0da15d.ad_anchor_id="aggrego-widget-57d819a0da0af"; window.aggrego.embed_widget_57d819a0da15d.blog_name="SportsChatter"; window.aggrego.embed_widget_57d819a0da15d.domain="suntimes-sports-chatter.suntimes.com"; liftIgniterBeacon("suntimes-sports-chatter.suntimes.com");window.aggrego.embed_widget_57d819a0da15d.posts=JSON.parse("[{\"title\":\"Aaron Rodgers, Jack Del Rio, fake Tom Brady highlight Week 1 in the NFL\",\"url\":\"http:\\/\\/suntimes-sports-chatter.suntimes.com\\/sports-talk\\/slideshow\\/aaron-rodgers-jack-del-rio-fake-tom-brady-highlight-week-one-nfl\\/\",\"thumbnail\":{\"url\":\"https:\\/\\/s3.amazonaws.com\\/wp-ag\\/wp-content\\/uploads\\/dev-sportschatter\\/2016\\/09\\/12143927\\/CsHKwp5W8AETjuc.jpg\",\"width\":1200,\"height\":882,\"focal_x\":0.5,\"focal_y\":0.5}},{\"title\":\"Fresh-faced models vie for Sports Illustrated’s 2017 swimsuit issue\",\"url\":\"http:\\/\\/suntimes-sports-chatter.suntimes.com\\/sports-talk\\/slideshow\\/sports-illustrated-2017-swimsuit-issue\\/\",\"thumbnail\":{\"url\":\"https:\\/\\/s3.amazonaws.com\\/wp-ag\\/wp-content\\/uploads\\/dev-sportschatter\\/2016\\/09\\/08142822\\/Screen-Shot-2016-09-08-at-2.27.40-PM.jpg\",\"width\":1130,\"height\":1186,\"focal_x\":0.49126887038073,\"focal_y\":0.12763595721119}},{\"title\":\"The 19 fastest players in the NFL\",\"url\":\"http:\\/\\/suntimes-sports-chatter.suntimes.com\\/sports-talk\\/slideshow\\/fastest-players-nfl\\/\",\"thumbnail\":{\"url\":\"https:\\/\\/s3.amazonaws.com\\/wp-ag\\/wp-content\\/uploads\\/dev-sportschatter\\/2016\\/09\\/12162147\\/GettyImages-492299966.jpg\",\"width\":3000,\"height\":2019,\"focal_x\":0.5,\"focal_y\":0.5}}]"); window.aggrego.utils.getAndSaveLiftIgniterPosts(3, "mid_article_three_pack", "embed_widget_57d819a0da15d", "agg-collage-sports-23474", "suntimes-sports-chatter.suntimes.com"); window.aggrego.utils.importStylesheet("http://live-sportschatter.aggrego.com/wp-content/themes/special-k/embed/embed-version4.css?ver=1.4.1881.4.212");