Oakland Raiders head coach Jon Gruden speaks to reporters Wednesday. (AP Photo/Darron Cummings)
The Post’s reporters round up the latest rumblings from Indianapolis. Refresh the page for the latest update.
Latest update: 1:29 p.m.
Giants GM stresses team can’t miss on a QB at No. 2
INDIANAPOLIS — General manager Dave Gettleman is adamant Eli Manning remains a franchise quarterback, even though an eventual replacement could be in play when the Giants pick No. 2 overall in April. However, there doesn’t seem to be a sense of urgency to address the position as Gettleman heads into his first draft directing the Giants, and he could target a player at another position that could provide immediate help for a team that finished 3-13 last season.
“If [the quarterback prospect is] the right guy, if you think that guy can be a franchise quarterback like Eli has been, and still is as far as I’m concerned, then you do it,” Gettleman said. “You make a mistake on a quarterback, especially this high and even in the first round, it sets you back five years. It kills you. You’ve got to be right.”
Manning was benched for a game by former coach Ben McAdoo in November, ending a 210-game streak of regular season starts, but returned to the starting lineup the following week. The 14-year veteran threw for 3,468 yards with 19 touchdowns and 13 interceptions in 2017 and is in the twilight of his career, but that won’t force the front office to take a signal caller early.
“You have to look at the whole picture,” Gettleman said. “You cannot work in a vacuum. You’ve got to step back and look at your whole program. You’ve got to take everything into consideration.
“I’ve said it multiple times, [Manning] can still play.”
Quarterbacks are expected to come off the board early and often during the draft’s first round with the Browns, Giants, Bills, Jets and Cardinals all in the market at the position. Wyoming’s Josh Allen, USC’s Sam Darnold, UCLA’s Josh Rosen, Louisville’s Lamar Jackson and Oklahoma’s Baker Mayfield could all be top-10 selections.
New York signed five-year veteran Geno Smith, who started the single game in place of Manning, to a one-year deal before the 2017 season. Former third-round pick Davis Webb is entering his second season and is on a four-year rookie deal. — Kareem Copeland
Vance Joseph knows QB is an issue for Broncos, but it’s not the only one
INDIANAPOLIS — Vance Joseph spent his rookie season as an NFL head coach in Denver patching together the Broncos’ quarterback situation with Trevor Siemian, Paxton Lynch and Brock Osweiler. He knows that cannot happen again if the Broncos are going to be more successful than they were this past season.
“We played three quarterbacks last year,” Joseph said Wednesday at the NFL scouting combine. “No one wants to do that. You want one guy and one guy only. Obviously if someone gets injured, you want to have a capable backup. But you don’t want to play three quarterbacks. So I think all of us involved [know] we’ll get better by not playing three quarterbacks.”
Joseph was retained by the Broncos’ front office football czar, John Elway, after the Broncos’ 5-11 season. Elway’s next major task is to fix the team’s quarterback situation, perhaps by pursuing Kirk Cousins in free agency.
But whatever the Broncos do at quarterback, Joseph said Wednesday, they also must get improved play at other positions.
“We have to play better at quarterback,” Joseph said. “That’s apparent. But we have to also protect better. And we can play better defense, also. So it’s not just the quarterback position that we have to get better at. It’s a full team effort.” — Mark Maske
Jon Gruden returns to a changed NFL seeking to turn back the clock
INDIANAPOLIS — Jon Gruden may be the new guy on the head-coaching scene, but he’s determined to pick up right where he left off 20 years ago.
Asked about the proliferation of NFL teams relying heavily on advanced statistics, Gruden made it clear that he’s an old-school guy determined to get back to basics. His philosophy, he said, is to take things back. Way back.
“Are you talking about the analytics? The GPS? All the modern technology? Man, I’m trying to throw the game back to 1998. Really,” Gruden said Wednesday at the NFL Scouting Combine, when asked about the potential overload of information for teams using analytics.
This is Gruden’s first NFL scouting combine of his second go-round as a head coach, part of readjusting to life in the league after leaving ESPN’s “Monday Night Football” broadcast booth to return to the Oakland Raiders.
He previously coached the Raiders from 1998-2001 and last coached in 2008 with Tampa Bay, compiling a 57-55 record and winning Super Bowl XXXVII with the Buccaneers before his firing. Since then, Gruden has spent much of his time in the broadcast booth. And now he’s eager to get back on the sidelines and coach the “the old-fashioned way.”
“As a broadcaster, I went around and observed every team, asked a lot of questions, took a look at the facilities, how they’re doing business,” said Gruden, who signed a 10-year, $100 million contract with the Raiders in January. There’s a stack of analytical data … that people don’t even know how to read it. It’s one thing to have the data … It’s another thing to know how to read the damn thing.
“So, I’m not going to rely on GPSes and all the modern technology,” added Gruden. “I will certainly have some people who are professional who can help me from that regard. But I just think doing things the old-fashioned way is a good way. And we’re going to try to lean the needle that way.”
The influx and popularity of advanced analytics are just one way the league has changed since Gruden left its coaching ranks. Gruden said he is also struggling with the limitations on the amount of contact that he can have with his players in the early stages of the offseason under the terms of the current collective bargaining agreement.
“It’s a lot different because you’re not allowed to have any interaction with the players,” he said. “I’ve always complained about that since the new CBA came in place. A lot of players would come to see me in Tampa to get their football fix. So you’re not allowed to have contact with these guys. But what’s most discouraging to me is we’ve got to make some decisions on our roster, on salaries, on players and their futures, and you can’t even meet them. I don’t know these guys. I’ve never coached them. I’ve never met half of them. So that’s been very, very difficult for me. And I’ve been emotional about it at times.”
Gruden does know Raiders quarterback Derek Carr, having spent time with him before Carr was drafted as part of Gruden’s role as an ESPN analyst. Gruden said Wednesday that wide receiver Amari Cooper will be a “headliner” of the Raiders’ offense under Gruden. He sees an ongoing role, he said, for running back Marshawn Lynch, who came out of retirement before this past season to join the Raiders, Lynch’s hometown team.
“One of the reasons I’m excited to be with the Raiders is to join forces with Lynch,” Gruden said. “But we’ll see what happens. Obviously we’ve got to take a look at the entire roster. But I’m counting on him. I’m counting on him being a big part of our football team.”
Gruden said he will, by necessity, be a different coach than he was when he last coached in the NFL in 2008 with the Tampa Bay Buccaneers.
“You obviously have to change a little bit,” he said. “But I think the roots, the foundation of what I know is gonna stay in place. We’re gonna adapt to what the rules are and what our roster allows us to put out there every week. I think that’s the uncomfortable thing right now is I don’t know exactly what that’s gonna be. … We’ve got plenty of people to help me adapt. And that, we will do. But it’s frustrating right now because we don’t know exactly who’s going to be with us.”
After his extended absence from the league, Gruden knows the spotlight will be on him during his return and he’s embraced it so far.
“It’s been really cool,” Gruden said. “Not many people get a chance to go back and do it a second time. It’s a neat story for me because I want to take advantage of the opportunity. I know I have a lot to prove.”
Gruden said he will participate in the Raiders’ player-evaluation tasks this week at the combine. And he might have a night or two out on the town as well, he said.
“I might be out after curfew a few times this week,” Gruden said, “because I got a pass from my wife.” — Mark Maske and Kimberley Martin
NFL, NFLPA vow reduction in concussions for players
INDIANAPOLIS — Medical leaders of the NFL and the NFL Players Association said Wednesday they are committed to taking steps to attempt to curb the number of concussions suffered by players.
Concussions rose sharply this past season. Players suffered 291 concussions during the 2017 preseason and regular season, according to the league’s injury data, up 16 percent from the 250 concussions suffered by players in 2016.
“All of us want to take an aggressive approach toward: How can we reduce concussions?” said Thom Mayer, the NFLPA’s medical director.
Mayer’s comments came during a meeting of the NFL’s head, neck and spine committee, the first half-hour of which was opened to a small group of reporters.
Mayer told the group of doctors and other medical experts assembled for the meeting it is “imperative” that teams’ coaches be educated on how concussions are being suffered by players. That includes position coaches as well as head coaches, Mayer told the group.
Allen Sills, the NFL’s chief medical officer, said during the meeting that the increase in concussions is “a disappointment,” and told the group: “This, to me, is a call to action.”
A slide shown to committee members said potential steps to be taken toward reducing the number of concussions suffered by players include ensuring that more players wear better-performing helmets; focusing in particular on decreasing the number of concussions suffered by players during preseason practices; and studying issues related to the style of play.
Sills said each NFL team will be provided with its individual injury report, showing officials for each franchise how their team’s injury data compares to the league-wide averages.
When the NFL publicly released its preliminary injury data last month, it said there were 281 concussions suffered by players during the 2017 preseason and regular season, compared to 243 diagnosed concussions suffered by players during the 2016 preseason and regular season. — Mark Maske
This time, it’s other NFL owners (not Roger Goodell) vs. Jerry Jones
INDIANAPOLIS — One of the major off-field story lines of the turbulent 2017 NFL season was Jerry Jones vs. Roger Goodell. The Dallas Cowboys owner tried — unsuccessfully, as it turned out — to prevent the NFL commissioner’s five-year contract extension from being completed.
The fallout from that has continued this week, with the league planning to force Jones to reimburse more than $2 million in legal fees incurred by the owners’ compensation committee and the league in connection to Jones’s actions regarding Goodell’s contract extension and the six-game suspension of Cowboys running back Ezekiel Elliott under the NFL’s personal conduct policy.
Jones is contesting that order by the league and has requested an appeal hearing before Goodell, multiple people familiar with the sport’s inner workings said here Tuesday. Under league rules, the hearing will be conducted and the matter will be decided by Goodell or a person designated by him.
[Pizza Hut scores NFL sponsorship deal]
But, according to several people familiar with the case, it would be misguided to regard this penalty and the haggling over it as a revival of Goodell vs. Jones. Instead, they said, it is far more about other NFL owners vs. Jones. The impetus for the punishment of Jones being imposed came from owners, those people said.
One person with knowledge of the case said Tuesday that “numerous owners” were involved in the deliberations. The owners’ finance committee was made aware of the penalty, along with other owners. Another person familiar with the situation estimated that as many as 29 of the 32 owners are in favor of the approach being taken with Jones.
The league is utilizing a 1997 resolution that any owner who takes legal action against the league or fellow owners must pay both sides’ legal fees. A person familiar with the league’s inner workings said Tuesday that the resolution has been put into effect previously but refused to provide further details.
[NFL considers changing catch rule, imposing 15-yard limit for pass interference]
Jones never has been one to back down from a skirmish, as he demonstrated late last year when he said it was the wrong time to make such an enormous financial commitment to Goodell and more owners, in his view, should have input into the commissioner’s contract. If Jones remains combative on the issue, there could be more tempestuousness ahead for the league. — Mark Maske
Vikings have three free agent QBs and the Kirk Cousins rumors have begun
In a complex quarterback market in which teams are jockeying for position as free agency approaches, the Vikings reportedly are willing to let all three of their quarterbacks become free agents. That has left open the possibility of Minnesota chasing Kirk Cousins.
Minnesota wouldn’t be alone, though. A number of teams — the Jets, Broncos, Cardinals and others — need a quarterback and figure to line up to speak with Cousins’s agent, Mike McCartney, at the NFL Scouting Combine in Indianapolis this week. But the 49ers, who reached an agreement to keep Jimmy Garoppolo, and Jaguars, who have a deal in place to retain Blake Bortles, are not among them. Nor are the Saints likely to need a quarterback. Although Drew Brees can become a free agent, he is not expected to leave New Orleans. — Cindy Boren (Read full story)
Start-up football league picks up adidas partnership
INDIANAPOLIS — The start-up professional football league founded by prominent NFL player agent Don Yee has added some significant business backing. The fledgling league, Pacific Pro Football, and adidas announced Wednesday that they’d agreed to a partnership by which the sporting goods company becomes a founding partner in the league.
Yee, whose list of clients includes quarterbacks Tom Brady of the New England Patriots and Jimmy Garoppolo of the San Francisco 49ers, plans for the league to begin play in the summer of 2019 with four teams based in Southern California.
The league previously announced plans to employ players less than four years removed from high school graduation, potentially preparing them for future NFL careers.
“We are grateful for adidas’ belief in our vision that there is a need for an alternative path to the NFL,” Yee said in a written statement. “Adidas is one of the world’s great brands and innovators, and they will help us create many new jobs and a league that supports the proper development of football players.”
The league has no formal ties to the NFL. But at a time when NFL officials have expressed curiosity about the possibilities for exploring the establishment of a developmental league for young players, and quarterbacks in particular, the upstart league’s viability and staying power could be worth monitoring.
“We’re always looking to create new and different things for the industry,” Mark King, the president of adidas North America, said in a written statement. “With Pacific Pro Football, we’re doing something that’s never been done before. We’re providing innovative opportunities for aspiring professional athletes and creating new avenues for them to reach the pros. Together we’re shaping the future of the sport. This is a future we believe in, and we’re excited to help create it.” — Mark Maske
0 notes
‘:””},t.getDefinedParams=function(e,t){return t.filter((function(t){return e[t]})).reduce((function(t,n){return g(t,i({},n,e[n]))}),{})},t.isValidMediaTypes=function(e){var t=[“banner”,”native”,”video”],n=[“instream”,”outstream”];return!!Object.keys(e).every((function(e){return(0,m.default)(t,e)}))&&(!e.video||!e.video.context||(0,m.default)(n,e.video.context))},t.getBidderRequest=function(e,t,n){return(0,b.default)(e,(function(e){return e.bids.filter((function(e){return e.bidder===t&&e.adUnitCode===n})).length>0}))||{start:null,auctionId:null}},t.getOrigin=function(){return window.location.origin?window.location.origin:window.location.protocol+”//”+window.location.hostname+(window.location.port?”:”+window.location.port:””)},t.getDNT=function(){return”1″===navigator.doNotTrack||”1″===window.doNotTrack||”1″===navigator.msDoNotTrack||”yes”===navigator.doNotTrack},t.isAdUnitCodeMatchingSlot=function(e){return function(t){return C(e,t)}},t.isSlotMatchingAdUnitCode=function(e){return function(t){return C(t,e)}},t.unsupportedBidderMessage=function(e,t){var n=Object.keys(e.mediaTypes||{banner:”banner”}).join(“, “);return”\n “+e.code+” is a “+n+” ad unit\n containing bidders that don’t support “+n+”: “+t+”.\n This bidder won’t fetch demand.\n “},t.deletePropertyFromObject=function(e,t){var n=g({},e);return delete n[t],n},t.removeRequestId=function(e){return t.deletePropertyFromObject(e,”requestId”)},t.isInteger=function(e){return Number.isInteger?Number.isInteger(e):”number”==typeof e&&isFinite(e)&&Math.floor(e)===e};var v=n(2),y=r(n(61)),b=r(n(11)),m=r(n(8)),h=n(3),S=!1,E=Object.prototype.toString,T=null;try{T=console.info.bind(window.console)}catch(e){}t.replaceTokenInString=function(e,t,n){return this._each(t,(function(t,r){t=void 0===t?””:t;var i=n+r.toUpperCase()+n,o=new RegExp(i,”g”);e=e.replace(o,t)})),e};var A=(function(){var e=0;return function(){return++e}})();t.getUniqueIdentifierStr=o,t.generateUUID=function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){return t&&t[e]?t[e]:””},t.tryAppendQueryString=function(e,t,n){return n?e+=t+”=”+encodeURIComponent(n)+”&”:e},t.parseQueryStringParameters=function(e){var t=””;for(var n in e)e.hasOwnProperty(n)&&(t+=n+”=”+encodeURIComponent(e[n])+”&”);return t},t.transformAdServerTargetingObj=function(e){return e&&Object.getOwnPropertyNames(e).length>0?f(e).map((function(t){return t+”=”+encodeURIComponent(l(e,t))})).join(“&”):””},t.getTopWindowLocation=function(){var e=void 0;try{window.top.location.toString(),e=window.top.location}catch(t){e=window.location}return e},t.getTopWindowUrl=function(){var e=void 0;try{e=this.getTopWindowLocation().href}catch(t){e=””}return e},t.getTopWindowReferrer=function(){try{return window.top.document.referrer}catch(e){return document.referrer}},t.logWarn=function(e){I()&&console.warn&&console.warn(“WARNING: “+e)},t.logInfo=function(e,t){I()&&u()&&T&&(t&&0!==t.length||(t=””),T(“INFO: “+e+(“”===t?””:” : params : “),t))},t.logMessage=function(e){I()&&u()&&console.log(“MESSAGE: “+e)},t.hasConsoleLogger=u;var I=function(){if(!1===v.config.getConfig(“debug”)&&!1===S){var e=”TRUE”===_(h.DEBUG_MODE).toUpperCase();v.config.setConfig({debug:e}),S=!0}return!!v.config.getConfig(“debug”)};t.debugTurnedOn=I,t.logError=function(){I()&&d()&&console.error.apply(console,arguments)},t.createInvisibleIframe=function(){var e=document.createElement(“iframe”);return e.id=o(),e.height=0,e.width=0,e.border=”0px”,e.hspace=”0″,e.vspace=”0″,e.marginWidth=”0″,e.marginHeight=”0″,e.style.border=”0″,e.scrolling=”no”,e.frameBorder=”0″,e.src=”about:blank”,e.style.display=”none”,e};var _=function(e){var t=”[\\?&]”+e+”=([^]*)”,n=new RegExp(t).exec(window.location.search);return null===n?””:decodeURIComponent(n[1].replace(/\+/g,” “))};t.getParameterByName=_,t.hasValidBidRequest=function(e,t,n){for(var r=!1,i=0;i0);for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0},t.isEmptyStr=function(e){return this.isStr(e)&&(!e||0===e.length)},t._each=function(e,t){if(!this.isEmpty(e)){if(this.isFn(e.forEach))return e.forEach(t,this);var n=0,r=e.length;if(r>0)for(;n’},t.createTrackPixelIframeHtml=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:””;return e?(n&&(e=encodeURI(e)),r&&(r=’sandbox=”‘+r+'”‘),”‘):””},t.getIframeDocument=function(e){if(e){var t=void 0;try{t=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(e){this.logError(“Cannot get iframe document”,e)}return t}},t.getValueString=function(e,t,n){return void 0===t||null===t?n:this.isStr(t)?t:this.isNumber(t)?t.toString():void this.logWarn(“Unsuported type for param: “+e+” required type: String”)};var C=function(e,t){return e.getAdUnitPath()===t||e.getSlotElementId()===t}},1:function(e,t,n){“use strict”;function r(e){return e&&e.__esModule?e:{default:e}}function i(e){function t(t){if(e.getUserSyncs){var n=e.getUserSyncs({iframeEnabled:l.config.getConfig(“userSync.iframeEnabled”),pixelEnabled:l.config.getConfig(“userSync.pixelEnabled”)},t);n&&(Array.isArray(n)||(n=[n]),n.forEach((function(t){v.userSync.registerSync(t.type,e.code,t.url)})))}}function n(t){return!!e.isBidRequestValid(t)||((0,h.logWarn)(“Invalid bid sent to bidder “+e.code+”: “+JSON.stringify(t)),!1)}return s(new c.default(e.code),{getSpec:function(){return Object.freeze(e)},registerSyncs:t,callBids:function(r,i,o,u){function c(e,t){y[e]=!0,a(e,t,[r])&&i(e,t)}function f(e){var n=e&&e[0]&&e[0].mediaType&&”video”===e[0].mediaType,r=l.config.getConfig(“cache.url”);n&&r||o(),t(b)}function v(e){return e?”?”+(“object”===(void 0===e?”undefined”:d(e))?(0,h.parseQueryStringParameters)(e):e):””}if(Array.isArray(r.bids)){var y={},b=[],m=r.bids.filter(n);if(0!==m.length){var S={};m.forEach((function(e){S[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)}));var E=e.buildRequests(m,r);if(E&&0!==E.length){Array.isArray(E)||(E=[E]);var T=(0,h.delayExecution)(f,E.length);E.forEach((function(t){function n(n,r){function i(t){var n=S[t.requestId];if(n){var r=s(g.default.createBid(p.STATUS.GOOD,n),t);c(n.adUnitCode,r)}else(0,h.logWarn)(“Bidder “+e.code+” made bid for unknown request ID: “+t.requestId+”. Ignoring.”)}try{n=JSON.parse(n)}catch(e){}n={body:n,headers:{get:r.getResponseHeader.bind(r)}},b.push(n);var o=void 0;try{o=e.interpretResponse(n,t)}catch(t){return(0,h.logError)(“Bidder “+e.code+” failed to interpret the server’s response. Continuing without bids”,null,t),void T()}o&&(o.forEach?o.forEach(i):i(o)),T(o)}function r(t){(0,h.logError)(“Server call for “+e.code+” failed: “+t+”. Continuing without bids.”),T()}switch(t.method){case”GET”:u(“”+t.url+v(t.data),{success:n,error:r},void 0,s({method:”GET”,withCredentials:!0},t.options));break;case”POST”:u(t.url,{success:n,error:r},”string”==typeof t.data?t.data:JSON.stringify(t.data),s({method:”POST”,contentType:”text/plain”,withCredentials:!0},t.options));break;default:(0,h.logWarn)(“Skipping invalid request from “+e.code+”. Request type “+t.type+” must be GET or POST”),T()}}))}else f()}else f()}}})}function o(e,t,n){if((t.width||0===t.width)&&(t.height||0===t.height))return!0;var r=(0,h.getBidderRequest)(n,t.bidderCode,e),i=r&&r.bids&&r.bids[0]&&r.bids[0].sizes,o=(0,h.parseSizesInput)(i);if(1===o.length){var a=o[0].split(“x”),d=u(a,2),s=d[0],c=d[1];return t.width=s,t.height=c,!0}return!1}function a(e,t,n){function r(e){return”Invalid bid from “+t.bidderCode+”. Ignoring bid: “+e}return e?t?(function(){var e=Object.keys(t);return S.every((function(t){return(0,m.default)(e,t)}))})()?”native”!==t.mediaType||(0,y.nativeBidIsValid)(t,n)?”video”!==t.mediaType||(0,b.isValidVideoBid)(t,n)?!(“banner”===t.mediaType&&!o(e,t,n))||((0,h.logError)(r(“Banner bids require a width and height”)),!1):((0,h.logError)(r(“Video bid does not have required vastUrl or renderer property”)),!1):((0,h.logError)(r(“Native bid missing some required properties.”)),!1):((0,h.logError)(r(“Bidder “+t.bidderCode+” is missing required params. Check http://ift.tt/2F5yRWN for list of params.”)),!1):((0,h.logWarn)(“Some adapter tried to add an undefined bid for “+e+”.”),!1):((0,h.logWarn)(“No adUnitCode was supplied to addBidResponse.”),!1)}Object.defineProperty(t,”__esModule”,{value:!0});var u=(function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}})(),d=”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},s=Object.assign||function(e){for(var t=1;t=p.syncsPerBidder?a.logWarn(‘Number of user syncs exceeded for “{$bidder}”‘):p.enabledBidders&&p.enabledBidders.length&&p.enabledBidders.indexOf(t)0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(n,Number(e));n()},c.triggerUserSyncs=function(){p.enableOverride&&c.syncUsers()},c}Object.defineProperty(t,”__esModule”,{value:!0}),t.userSync=void 0;var i=(function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}})(),o=Object.assign||function(e){for(var t=1;te.getTimeout()+S.config.getConfig(“timeoutBuffer”)&&e.executeCallback(!0)}function o(e,t){O.emit(B.EVENTS.BID_RESPONSE,t),e.addBidReceived(t),i(e,t)}function a(e,t,n){var r=!0;S.config.getConfig(“cache.url”)&&(t.videoCacheKey?t.vastUrl||(w.logError(“videoCacheKey specified but not required vastUrl for video bid”),r=!1):(r=!1,(0,m.store)([t],(function(r,a){r?(w.logWarn(“Failed to save to the video cache: “+r+”. Video bid must be discarded.”),i(e,t)):(t.videoCacheKey=a[0].uuid,t.vastUrl||(t.vastUrl=(0,m.getCacheUrl)(t.videoCacheKey)),n.doneCbCallCount+=1,o(e,t),e.bidsBackAll())})))),r&&o(e,t)}function u(e){var t=e.adUnitCode,n=e.bid,r=e.bidRequest,i=e.auctionId,o=r.start,a=p({},n,{auctionId:i,responseTimestamp:(0,v.timestamp)(),requestTimestamp:o,cpm:parseFloat(n.cpm)||0,bidder:n.bidderCode,adUnitCode:t});a.timeToRespond=a.responseTimestamp-a.requestTimestamp,O.emit(B.EVENTS.BID_ADJUSTMENT,a);var u=r.bids&&r.bids[0]&&r.bids[0].renderer;u&&u.url&&(a.renderer=h.Renderer.install({url:u.url}),a.renderer.setRender(u.render));var d=(0,y.getPriceBucketString)(a.cpm,S.config.getConfig(“customPriceBucket”),S.config.getConfig(“currency.granularityMultiplier”));a.pbLg=d.low,a.pbMg=d.med,a.pbHg=d.high,a.pbAg=d.auto,a.pbDg=d.dense,a.pbCg=d.custom;var c;return a.bidderCode&&(a.cpm>0||a.dealId)&&(c=s(a.bidderCode,a)),a.adserverTargeting=p(a.adserverTargeting||{},c),a}function d(){var e=S.config.getConfig(“priceGranularity”),t=pbjs.bidderSettings;return t[B.JSON_MAPPING.BD_SETTING_STANDARD]||(t[B.JSON_MAPPING.BD_SETTING_STANDARD]={}),t[B.JSON_MAPPING.BD_SETTING_STANDARD][B.JSON_MAPPING.ADSERVER_TARGETING]||(t[B.JSON_MAPPING.BD_SETTING_STANDARD][B.JSON_MAPPING.ADSERVER_TARGETING]=[{key:”hb_bidder”,val:function(e){return e.bidderCode}},{key:”hb_adid”,val:function(e){return e.adId}},{key:”hb_pb”,val:function(t){return e===B.GRANULARITY_OPTIONS.AUTO?t.pbAg:e===B.GRANULARITY_OPTIONS.DENSE?t.pbDg:e===B.GRANULARITY_OPTIONS.LOW?t.pbLg:e===B.GRANULARITY_OPTIONS.MEDIUM?t.pbMg:e===B.GRANULARITY_OPTIONS.HIGH?t.pbHg:e===B.GRANULARITY_OPTIONS.CUSTOM?t.pbCg:void 0}},{key:”hb_size”,val:function(e){return e.size}},{key:”hb_deal”,val:function(e){return e.dealId}},{key:”hb_source”,val:function(e){return e.source}},{key:”hb_format”,val:function(e){return e.mediaType}}]),t[B.JSON_MAPPING.BD_SETTING_STANDARD]}function s(e,t){var n={},r=pbjs.bidderSettings;return t&&r&&c(n,d(),t),e&&t&&r&&r[e]&&r[e][B.JSON_MAPPING.ADSERVER_TARGETING]&&(c(n,r[e],t),t.sendStandardTargeting=r[e].sendStandardTargeting),t.native&&(n=p({},n,(0,b.getNativeTargeting)(t))),n}function c(e,t,n){var r=t[B.JSON_MAPPING.ADSERVER_TARGETING];return n.size=n.getSize(),w._each(r,(function(r){var i=r.key,o=r.val;if(e[i]&&w.logWarn(“The key: “+i+” is getting ovewritten”),w.isFn(o))try{o=o(n)}catch(e){w.logError(“bidmanager”,”ERROR”,e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&”hb_deal”!==i||!w.isEmptyStr(o)&&null!==o&&void 0!==o?e[i]=o:w.logInfo(“suppressing empty key ‘”+i+”‘ from adserver targeting”)})),e}function f(e){var t=e.bidderCode,n=e.cpm,r=void 0;if(pbjs.bidderSettings&&(t&&pbjs.bidderSettings[t]&&”function”==typeof pbjs.bidderSettings[t].bidCpmAdjustment?r=pbjs.bidderSettings[t].bidCpmAdjustment:pbjs.bidderSettings[B.JSON_MAPPING.BD_SETTING_STANDARD]&&”function”==typeof pbjs.bidderSettings[B.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment&&(r=pbjs.bidderSettings[B.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),r))try{n=r(e.cpm,p({},e))}catch(e){w.logError(“Error during bid adjustment”,”bidmanager.js”,e)}n>=0&&(e.cpm=n)}function l(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}function g(e,t){var n=e.filter((function(e){return!e.doneCbCallCount})).map((function(e){return e.bidderCode})).filter(v.uniques),r=t.map((function(e){return e.bidder})).filter(v.uniques),i=n.filter((function(e){return!(0,I.default)(r,e)}));return e.map((function(e){return(e.bids||[]).filter((function(e){return(0,I.default)(i,e.bidder)}))})).reduce(v.flatten,[]).map((function(e){return{bidId:e.bidId,bidder:e.bidder,adUnitCode:e.adUnitCode,auctionId:e.auctionId}}))}Object.defineProperty(t,”__esModule”,{value:!0}),t.addBidResponse=t.AUCTION_COMPLETED=t.AUCTION_IN_PROGRESS=t.AUCTION_STARTED=void 0;var p=Object.assign||function(e){for(var t=1;t=1}))&&(w.logInfo(“Bids Received for Auction with id: “+h,b),E=R,r(!1,!0))}var a=e.adUnits,u=e.adUnitCodes,d=e.callback,s=e.cbTimeout,c=a,f=e.labels,p=u,y=[],b=[],m=void 0,h=w.generateUUID(),E=void 0,T=d,I=void 0,P=s,k=void 0;return{addBidReceived:function(e){b=b.concat(e)},executeCallback:r,callBids:function(){n(),E=U;var e={timestamp:m=Date.now(),auctionId:h,timeout:P};O.emit(B.EVENTS.AUCTION_INIT,e);var r=C.makeBidRequests(c,m,h,P,f);w.logInfo(“Bids Requested for Auction with id: “+h,r),r.forEach((function(e){t(e)})),E=N,C.callBids(c,r,j.bind(this),i.bind(this))},bidsBackAll:o,setWinningBid:function(e){k=e},getWinningBid:function(){return k},getTimeout:function(){return P},getAuctionId:function(){return h},getAuctionStatus:function(){return E},getAdUnits:function(){return c},getAdUnitCodes:function(){return p},getBidRequests:function(){return y},getBidsReceived:function(){return b}}},t.getStandardBidderSettings=d,t.getKeyValueTargetingPairs=s,t.adjustBids=f;var v=n(0),y=n(28),b=n(14),m=n(148),h=n(20),S=n(2),E=n(13),T=n(19),A=r(n(11)),I=r(n(8)),_=E.userSync.syncUsers,w=n(0),C=n(5),O=n(9),B=n(3),U=t.AUCTION_STARTED=”started”,N=t.AUCTION_IN_PROGRESS=”inProgress”,R=t.AUCTION_COMPLETED=”completed”;O.on(B.EVENTS.BID_ADJUSTMENT,(function(e){f(e)}));var j=t.addBidResponse=(0,T.createHook)(“asyncSeries”,(function(e,t){var n=this,r=n.getBidRequests(),i=n.getAuctionId(),d=(0,v.getBidderRequest)(r,t.bidderCode,e),s=u({adUnitCode:e,bid:t,bidRequest:d,auctionId:i});”video”===s.mediaType?a(n,s,d):o(n,s)}),”addBidResponse”)},148:function(e,t,n){“use strict”;function r(e){return’\n \n \n prebid.org wrapper\n \n \n \n \n \n “}function i(e){return{type:”xml”,value:e.vastXml?e.vastXml:r(e.vastUrl)}}function o(e){return{success:function(t){var n=void 0;try{n=JSON.parse(t).responses}catch(t){return void e(t,[])}n?e(null,n):e(new Error(“The cache server didn’t respond with a responses property.”),[])},error:function(t,n){e(new Error(“Error storing video ad in the cache: “+t+”: “+JSON.stringify(n)),[])}}}Object.defineProperty(t,”__esModule”,{value:!0}),t.store=function(e,t){var n={puts:e.map(i)};(0,a.ajax)(u.config.getConfig(“cache.url”),o(t),JSON.stringify(n),{contentType:”text/plain”,withCredentials:!0})},t.getCacheUrl=function(e){return u.config.getConfig(“cache.url”)+”?uuid=”+e};var a=n(6),u=n(2)},15:function(e,t,n){“use strict”;function r(e,t){var n=t&&t.bidId||i.getUniqueIdentifierStr(),r=t&&t.src||”client”,o=e||0;this.bidderCode=t&&t.bidder||””,this.width=0,this.height=0,this.statusMessage=(function(){switch(o){case 0:return”Pending”;case 1:return”Bid available”;case 2:return”Bid returned empty or error response”;case 3:return”Bid timed out”}})(),this.adId=n,this.mediaType=”banner”,this.source=r,this.getStatusCode=function(){return o},this.getSize=function(){return this.width+”x”+this.height}}var i=n(0);t.createBid=function(e,t){return new r(e,t)}},16:function(e,t){var n=e.exports=”undefined”!=typeof window&&window.Math==Math?window:”undefined”!=typeof self&&self.Math==Math?self:Function(“return this”)();”number”==typeof __g&&(__g=n)},17:function(e,t){var n=e.exports={version:”2.5.1″};”number”==typeof __e&&(__e=n)},18:function(e,t){e.exports=function(e){return”object”==typeof e?null!==e:”function”==typeof e}},19:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0});var r=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:10;”function”==typeof e&&(a.push({fn:e,priority:t}),a.sort((function(e,t){return t.priority-e.priority})))},removeHook:function(e){a=a.filter((function(n){return n.fn===t||n.fn!==e}))}};return”string”==typeof n&&(o[n]=d),r((function(){for(var n=arguments.length,r=Array(n),i=0;i0;)try{this.cmd.shift().call()}catch(e){o.logError(“Error processing Renderer command: “,e)}}},21:function(e,t,n){var r=n(16),i=n(17),o=n(29),a=n(43),u=function(e,t,n){var d,s,c,f=e&u.F,l=e&u.G,g=e&u.S,p=e&u.P,v=e&u.B,y=e&u.W,b=l?i:i[t]||(i[t]={}),m=b.prototype,h=l?r:g?r[t]:(r[t]||{}).prototype;l&&(n=t);for(d in n)(s=!f&&h&&void 0!==h[d])&&d in b||(c=s?h[d]:n[d],b[d]=l&&”function”!=typeof h[d]?n[d]:v&&s?o(c,r):y&&h[d]==c?(function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t})(c):p&&”function”==typeof c?o(Function.call,c):c,p&&((b.virtual||(b.virtual={}))[d]=c,e&u.R&&m&&!m[d]&&a(m,d,c)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},22:function(e,t,n){e.exports=!n(30)((function(){return 7!=Object.defineProperty({},”a”,{get:function(){return 7}}).a}))},23:function(e,t){e.exports=function(){}},24:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.default=function(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}},25:function(e,t,n){n(94),e.exports=n(17).Array.findIndex},26:function(e,t){var n;n=(function(){return this})();try{n=n||Function(“return this”)()||(0,eval)(“this”)}catch(e){“object”==typeof window&&(n=window)}e.exports=n},27:function(e,t,n){“use strict”;function r(){function e(e){t.push(e)}var t=[],n={};return n.addWinningBid=function(e){var n=(0,a.default)(t,(function(t){return t.getAuctionId()===e.auctionId}));n?n.setWinningBid(e):utils.logWarn(“Auction not found when adding winning bid”)},n.getAllWinningBids=function(){return t.map((function(e){return e.getWinningBid()})).reduce(i.flatten,[])},n.getBidsRequested=function(){return t.map((function(e){return e.getBidRequests()})).reduce(i.flatten,[])},n.getBidsReceived=function(){return t.map((function(e){if(e.getAuctionStatus()===o.AUCTION_COMPLETED)return e.getBidsReceived()})).reduce(i.flatten,[]).filter((function(e){return e}))},n.getAdUnits=function(){return t.map((function(e){return e.getAdUnits()})).reduce(i.flatten,[])},n.getAdUnitCodes=function(){return t.map((function(e){return e.getAdUnitCodes()})).reduce(i.flatten,[]).filter(i.uniques)},n.createAuction=function(t){var n=t.adUnits,r=t.adUnitCodes,i=t.callback,a=t.cbTimeout,u=t.labels,d=(0,o.newAuction)({adUnits:n,adUnitCodes:r,callback:i,cbTimeout:a,labels:u});return e(d),d},n.findBidByAdId=function(e){return(0,a.default)(t.map((function(e){return e.getBidsReceived()})).reduce(i.flatten,[]),(function(t){return t.adId===e}))},n.getStandardBidderAdServerTargeting=function(){return(0,o.getStandardBidderSettings)()[u.JSON_MAPPING.ADSERVER_TARGETING]},n}Object.defineProperty(t,”__esModule”,{value:!0}),t.auctionManager=void 0,t.newAuctionManager=r;var i=n(0),o=n(147),a=(function(e){return e&&e.__esModule?e:{default:e}})(n(11)),u=n(3);t.auctionManager=r()},28:function(e,t,n){“use strict”;function r(e,t,n){var r=””;if(!i(t))return r;var u=t.buckets.reduce((function(e,t){return e.max>t.max?e:t}),{max:0}),s=(0,a.default)(t.buckets,(function(t){if(e>u.max*n){var i=t.precision;void 0===i&&(i=d),r=(t.max*n).toFixed(i)}else if(e=t.min*n)return t}));return s&&(r=o(e,s.increment,s.precision,n)),r}function i(e){if(u.isEmpty(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach((function(e){void 0!==e.min&&e.max&&e.increment||(t=!1)})),t}function o(e,t,n,r){void 0===n&&(n=d);var i=1/(t*r);return(Math.floor(e*i)/i).toFixed(n)}Object.defineProperty(t,”__esModule”,{value:!0}),t.isValidPriceConfig=t.getPriceBucketString=void 0;var a=(function(e){return e&&e.__esModule?e:{default:e}})(n(11)),u=n(0),d=2,s={buckets:[{min:0,max:5,increment:.5}]},c={buckets:[{min:0,max:20,increment:.1}]},f={buckets:[{min:0,max:20,increment:.01}]},l={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},g={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};t.getPriceBucketString=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=parseFloat(e);return isNaN(i)&&(i=””),{low:””===i?””:r(e,s,n),med:””===i?””:r(e,c,n),high:””===i?””:r(e,f,n),auto:””===i?””:r(e,g,n),dense:””===i?””:r(e,l,n),custom:””===i?””:r(e,t,n)}},t.isValidPriceConfig=i},29:function(e,t,n){var r=n(42);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},3:function(e,t){e.exports={JSON_MAPPING:{PL_CODE:”code”,PL_SIZE:”sizes”,PL_BIDS:”bids”,BD_BIDDER:”bidder”,BD_ID:”paramsd”,BD_PL_ID:”placementId”,ADSERVER_TARGETING:”adserverTargeting”,BD_SETTING_STANDARD:”standard”},REPO_AND_VERSION:”prebid_prebid_1.5.0-pre”,DEBUG_MODE:”pbjs_debug”,STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:”allRequestedBidsBack”,AD_UNIT_BIDS_BACK:”adUnitBidsBack”,BID_WON:”bidWon”,REQUEST_BIDS:”requestBids”}},EVENTS:{AUCTION_INIT:”auctionInit”,AUCTION_END:”auctionEnd”,BID_ADJUSTMENT:”bidAdjustment”,BID_TIMEOUT:”bidTimeout”,BID_REQUESTED:”bidRequested”,BID_RESPONSE:”bidResponse”,BID_WON:”bidWon”,SET_TARGETING:”setTargeting”,REQUEST_BIDS:”requestBids”,ADD_AD_UNITS:”addAdUnits”},EVENT_ID_PATHS:{bidWon:”adUnitCode”},GRANULARITY_OPTIONS:{LOW:”low”,MEDIUM:”medium”,HIGH:”high”,AUTO:”auto”,DENSE:”dense”,CUSTOM:”custom”},TARGETING_KEYS:[“hb_bidder”,”hb_adid”,”hb_pb”,”hb_size”,”hb_deal”,”hb_source”,”hb_format”],S2S:{SRC:”s2s”,SYNCED_BIDDERS_KEY:”pbjsSyncs”}}},30:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},31:function(e,t,n){var r=n(29),i=n(32),o=n(50),a=n(35),u=n(51);e.exports=function(e,t){var n=1==e,d=2==e,s=3==e,c=4==e,f=6==e,l=5==e||f,g=t||u;return function(t,u,p){for(var v,y,b=o(t),m=i(b),h=r(u,p,3),S=a(m.length),E=0,T=n?g(t,S):d?g(t,0):void 0;S>E;E++)if((l||E in m)&&(v=m[E],y=h(v,E,b),e))if(n)T[E]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return E;case 2:T.push(v)}else if(c)return!1;return f?-1:s||c?c:T}}},32:function(e,t,n){var r=n(33);e.exports=Object(“z”).propertyIsEnumerable(0)?Object:function(e){return”String”==r(e)?e.split(“”):Object(e)}},33:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},34:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError(“Can’t call method on “+e);return e}},35:function(e,t,n){var r=n(36),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},351:function(e,t,n){e.exports=n(352)},352: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[t]=n,e}function i(e,t,n){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=n)}function o(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){S.logError(“Error processing command :”,”prebid.js”,e)}}))}var a=”function”==typeof Symbol&&”symbol”==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&”function”==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?”symbol”:typeof e},u=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,n=e.timeout,r=e.adUnits,i=e.adUnitCodes,o=e.labels;A.emit(O);var a=n||g.config.getConfig(“bidderTimeout”);if(r=r||m.adUnits,S.logInfo(“Invoking pbjs.requestBids”,arguments),i&&i.length?r=r.filter((function(e){return(0,b.default)(i,e.code)})):i=r&&r.map((function(e){return e.code})),r.forEach((function(e){var t=Object.keys(e.mediaTypes||{banner:”banner”}),n=e.bids.map((function(e){return e.bidder})),r=E.bidderRegistry;n.forEach((function(n){var i=r[n],o=i&&i.getSpec&&i.getSpec(),a=o&&o.supportedMediaTypes||[“banner”];t.some((function(e){return(0,b.default)(a,e)}))||(S.logWarn(S.unsupportedBidderMessage(e,n)),e.bids=e.bids.filter((function(e){return e.bidder!==n})))}))})),r&&0!==r.length){var u=p.auctionManager.createAuction({adUnits:r,adUnitCodes:i,callback:t,cbTimeout:a,labels:o});return u.callBids(),u}if(S.logMessage(“No adUnits configured. No bids requested.”),”function”==typeof t)try{t()}catch(e){S.logError(“Error executing bidsBackHandler”,null,e)}})),m.addAdUnits=function(e){S.logInfo(“Invoking pbjs.addAdUnits”,arguments),S.isArray(e)?(e.forEach((function(e){return e.transactionId=S.generateUUID()})),m.adUnits.push.apply(m.adUnits,e)):”object”===(void 0===e?”undefined”:a(e))&&(e.transactionId=S.generateUUID(),m.adUnits.push(e)),A.emit(w)},m.onEvent=function(e,t,n){S.logInfo(“Invoking pbjs.onEvent”,arguments),S.isFn(t)?!n||U[e].call(null,n)?A.on(e,t,n):S.logError(‘The id provided is not valid for event “‘+e+'” and no handler was set.’):S.logError(‘The event handler provided is not a function and was not set on event “‘+e+'”.’)},m.offEvent=function(e,t,n){S.logInfo(“Invoking pbjs.offEvent”,arguments),n&&!U[e].call(null,n)||A.off(e,t,n)},m.registerBidAdapter=function(e,t){S.logInfo(“Invoking pbjs.registerBidAdapter”,arguments);try{E.registerBidAdapter(e(),t)}catch(e){S.logError(“Error registering bidder adapter : “+e.message)}},m.registerAnalyticsAdapter=function(e){S.logInfo(“Invoking pbjs.registerAnalyticsAdapter”,arguments);try{E.registerAnalyticsAdapter(e)}catch(e){S.logError(“Error registering analytics adapter : “+e.message)}},m.createBid=function(e){return S.logInfo(“Invoking pbjs.createBid”,arguments),T.createBid(e)},m.loadScript=function(e,t,n){S.logInfo(“Invoking pbjs.loadScript”,arguments),(0,l.loadScript)(e,t,n)},m.enableAnalytics=function(e){e&&!S.isEmpty(e)?(S.logInfo(“Invoking pbjs.enableAnalytics for: “,e),E.enableAnalytics(e)):S.logError(“pbjs.enableAnalytics should be called with option {}”)},m.aliasBidder=function(e,t){S.logInfo(“Invoking pbjs.aliasBidder”,arguments),e&&t?E.aliasBidAdapter(e,t):S.logError(“bidderCode and alias must be passed as arguments”,”pbjs.aliasBidder”)},m.getAllWinningBids=function(){return p.auctionManager.getAllWinningBids().map(s.removeRequestId)},m.getHighestCpmBids=function(e){return v.targeting.getWinningBids(e,p.auctionManager.getBidsReceived()).map(s.removeRequestId)},m.getConfig=g.config.getConfig,m.setConfig=g.config.setConfig,m.que.push((function(){return(0,c.listenMessagesFromCreative)()})),m.cmd.push=function(e){if(“function”==typeof e)try{e.call()}catch(e){S.logError(“Error processing command :”,e.message,e.stack)}else S.logError(“Commands written into pbjs.cmd.push must be wrapped in a function”)},m.que.push=m.cmd.push,m.processQueue=function(){o(m.que),o(m.cmd)}},353:function(e,t,n){“use strict”;function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e.message?”message”:”data”,n={};try{n=JSON.parse(e[t])}catch(e){return}if(n.adId){var r=(0,l.default)(f.auctionManager.getBidsReceived(),(function(e){return e.adId===n.adId}));”Prebid Request”===n.message&&(o(r,n.adServerDomain,e.source),f.auctionManager.addWinningBid(r),u.default.emit(g,r)),”Prebid Native”===n.message&&((0,d.fireNativeTrackers)(n,r),f.auctionManager.addWinningBid(r),u.default.emit(g,r))}}function o(e,t,n){var r=e.adId,i=e.ad,o=e.adUrl,u=e.width,d=e.height;r&&(a(e),n.postMessage(JSON.stringify({message:”Prebid Response”,ad:i,adUrl:o,adId:r,width:u,height:d}),t))}function a(e){var t=e.adUnitCode,n=e.width,r=e.height,i=document.getElementById((0,l.default)(window.googletag.pubads().getSlots().filter((0,c.isSlotMatchingAdUnitCode)(t)),(function(e){return e})).getSlotElementId()).querySelector(“iframe”);i.width=””+n,i.height=””+r}Object.defineProperty(t,”__esModule”,{value:!0}),t.listenMessagesFromCreative=function(){addEventListener(“message”,i,!1)};var u=r(n(9)),d=n(14),s=n(3),c=n(0),f=n(27),l=r(n(11)),g=s.EVENTS.BID_WON},36:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},37:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.getGlobal=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[]},38: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[t]=n,e}function i(e){function n(e){return e.map((function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].join(“, “))})).reduce((function(e,t){return o(t,e)}),{}))})).reduce((function(e,t){var n=Object.keys(t)[0];return e[n]=o({},e[n],t[n]),e}),{})}function i(t){return”string”==typeof t?[t]:f.isArray(t)?t:e.getAdUnitCodes()||[]}function s(){return e.getBidsReceived().filter(y).filter(t.isBidExpired)}function b(e,t){var n=w.getWinningBids(e,t);n.forEach((function(e){e.status=p}));var i=m();return n=n.map((function(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(t){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===i.indexOf(t)})).map((function(t){return r({},”hb_deal”===t?(t+”_”+e.bidderCode).substring(0,v):t.substring(0,v),[e.adserverTargeting[t]])})))}))}function m(){return e.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(l.TARGETING_KEYS).filter(a.uniques)}function h(e,t,n,r){function i(e){return function(n){f.isArray(n.adserverTargeting[e])||(n.adserverTargeting[e]=[n.adserverTargeting[e]]),n.adserverTargeting[e]=n.adserverTargeting[e].concat(t.adserverTargeting[e]).filter(a.uniques),delete t.adserverTargeting[e]}}function o(e){return function(n){return n.adUnitCode===t.adUnitCode&&n.adserverTargeting[e]}}return Object.keys(t.adserverTargeting).filter(S()).forEach((function(t){e.length&&e.filter(o(t)).forEach(i(t))})),e.push(t),e}function S(){var e=m();return function(t){return-1===e.indexOf(t)}}function E(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(S()).map((function(t){return r({},t.substring(0,v),[e.adserverTargeting[t]])})))}function T(e,t){return t.filter((function(t){return(0,c.default)(e,t.adUnitCode)})).map((function(e){return o({},e)})).reduce(h,[]).map(E).filter((function(e){return e}))}function A(e,t){var n=l.TARGETING_KEYS.concat(d.NATIVE_TARGETING_KEYS),i=[],o=(0,a.groupBy)(t,”adUnitCode”);return Object.keys(o).forEach((function(e){var t=(0,a.groupBy)(o[e],”bidderCode”);Object.keys(t).forEach((function(e){return i.push(t[e].reduce(a.getHighestCpm,_()))}))})),i.map((function(e){if(e.adserverTargeting)return r({},e.adUnitCode,I(e,n.filter((function(t){return void 0!==e.adserverTargeting[t]}))))})).filter((function(e){return e}))}function I(e,t){return t.map((function(t){return r({},(t+”_”+e.bidderCode).substring(0,v),[e.adserverTargeting[t]])}))}function _(e){return{adUnitCode:e,cpm:0,adserverTargeting:{},timeToRespond:0}}var w={};return w.resetPresetTargeting=function(t){if((0,a.isGptPubadsDefined)()){var n=i(t),r=e.getAdUnits().filter((function(e){return(0,c.default)(n,e.code)}));window.googletag.pubads().getSlots().forEach((function(e){g.forEach((function(t){r.forEach((function(n){n.code!==e.getAdUnitPath()&&n.code!==e.getSlotElementId()||e.setTargeting(t,null)}))}))}))}},w.getAllTargeting=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s(),r=i(e),o=b(r,t).concat(T(r,t)).concat(u.config.getConfig(“enableSendAllBids”)?A(0,t):[]);return o.map((function(e){Object.keys(e).map((function(t){e[t].map((function(e){-1===g.indexOf(Object.keys(e)[0])&&(g=Object.keys(e).concat(g))}))}))})),o=n(o)},w.setTargetingForGPT=function(e){window.googletag.pubads().getSlots().forEach((function(t){Object.keys(e).filter((0,a.isAdUnitCodeMatchingSlot)(t)).forEach((function(n){return Object.keys(e[n]).forEach((function(r){var i=e[n][r].split(“,”);(i=i.length>1?[i]:i).map((function(e){return f.logMessage(“Attempting to set key value for slot: “+t.getSlotElementId()+” key: “+r+” value: “+e),e})).forEach((function(e){t.setTargeting(r,e)}))}))}))}))},w.getWinningBids=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s(),n=i(e);return t.filter((function(e){return(0,c.default)(n,e.adUnitCode)})).filter((function(e){return e.cpm>0})).map((function(e){return e.adUnitCode})).filter(a.uniques).map((function(e){return t.filter((function(t){return t.adUnitCode===e?t:null})).reduce(a.getHighestCpm,_(e))}))},w.setTargetingForAst=function(){var e=w.getAllTargeting();Object.keys(e).forEach((function(t){return Object.keys(e[t]).forEach((function(n){if(f.logMessage(“Attempting to set targeting for targetId: “+t+” key: “+n+” value: ��+e[t][n]),f.isStr(e[t][n])||f.isArray(e[t][n])){var r={};r[“hb_adid”===n.substring(0,”hb_adid”.length)?n.toUpperCase():n]=e[t][n],window.apntag.setKeywords(t,r)}}))}))},w.isApntagDefined=function(){if(window.apntag&&f.isFn(window.apntag.setKeywords))return!0},w}Object.defineProperty(t,”__esModule”,{value:!0}),t.targeting=t.isBidExpired=t.BID_TARGETING_SET=void 0;var o=Object.assign||function(e){for(var t=1;t1?arguments[1]:void 0)}}),n(23)(“find”)},42:function(e,t){e.exports=function(e){if(“function”!=typeof e)throw TypeError(e+” is not a function!”);return e}},43:function(e,t,n){var r=n(44),i=n(49);e.exports=n(22)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},44:function(e,t,n){var r=n(45),i=n(46),o=n(48),a=Object.defineProperty;t.f=n(22)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if(“get”in n||”set”in n)throw TypeError(“Accessors not supported!”);return”value”in n&&(e[t]=n.value),e}},45:function(e,t,n){var r=n(18);e.exports=function(e){if(!r(e))throw TypeError(e+” is not an object!”);return e}},46:function(e,t,n){e.exports=!n(22)&&!n(30)((function(){return 7!=Object.defineProperty(n(47)(“div”),”a”,{get:function(){return 7}}).a}))},47:function(e,t,n){var r=n(18),i=n(16).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},48:function(e,t,n){var r=n(18);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&”function”==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if(“function”==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&”function”==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError(“Can’t convert object to primitive value”)}},49:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5:function(e,t,n){“use strict”;function r(e,t){return e.labelAll?{labelAll:!0,labels:e.labelAll,activeLabels:t}:{labelAll:!1,labels:e.labelAny,activeLabels:t}}function i(e){var t=e.bidderCode,n=e.auctionId,i=e.bidderRequestId,o=e.adUnits,a=e.labels;return o.reduce((function(e,o){var u=(0,g.resolveStatus)(r(o,a),o.sizes),d=u.active,s=u.sizes;return d&&e.push(o.bids.filter((function(e){return e.bidder===t})).reduce((function(e,t){o.mediaTypes&&(h.isValidMediaTypes(o.mediaTypes)?t=f({},t,{mediaTypes:o.mediaTypes}):h.logError(“mediaTypes is not correctly configured for adunit “+o.code));var u=o.nativeParams||h.deepAccess(o,”mediaTypes.native”);u&&(t=f({},t,{nativeParams:(0,p.processNativeAdUnitParams)(u)})),t=f({},t,(0,l.getDefinedParams)(o,[“mediaType”,”renderer”]));var d=(0,g.resolveStatus)(r(t,a),s),c=d.active,v=d.sizes;return c&&e.push(f({},t,{adUnitCode:o.code,transactionId:o.transactionId,sizes:v,bidId:t.bid_id||h.getUniqueIdentifierStr(),bidderRequestId:i,auctionId:n})),e}),[])),e}),[]).reduce(l.flatten,[]).filter((function(e){return””!==e}))}function o(e){var t=[];return h.parseSizesInput(e.sizes).forEach((function(e){var n=e.split(“x”),r={w:parseInt(n[0]),h:parseInt(n[1])};t.push(r)})),t}function a(e){var t=I.bidders,n=h.deepClone(e);return n.forEach((function(e){e.sizes=o(e),e.bids=e.bids.filter((function(e){return(0,m.default)(t,e.bidder)&&(!d()||e.finalSource!==T.CLIENT)})).map((function(e){return e.bid_id=h.getUniqueIdentifierStr(),e}))})),n=n.filter((function(e){return 0!==e.bids.length}))}function u(e){var t=h.deepClone(e);return t.forEach((function(e){e.bids=e.bids.filter((function(e){return!d()||e.finalSource!==T.SERVER}))})),t=t.filter((function(e){return 0!==e.bids.length}))}function d(){return I&&I.enabled&&I.testing&&T}function s(e){var n=[];return(0,m.default)(t.videoAdapters,e)&&n.push(“video”),(0,m.default)(p.nativeAdapters,e)&&n.push(“native”),n}var c=(function(){function e(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError(“Invalid attempt to destructure non-iterable instance”)}})(),f=Object.assign||function(e){for(var t=1;t (eg mediaTypes.banner.sizes).”);var t=e.mediaTypes;if(t&&t.banner){var n=t.banner;n.sizes?e.sizes=n.sizes:(h.logError(“Detected a mediaTypes.banner object did not include sizes. This is a required field for the mediaTypes.banner object. Removing invalid mediaTypes.banner object from request.”),delete e.mediaTypes.banner)}if(t&&t.video){var r=t.video;r.playerSize&&(Array.isArray(r.playerSize)&&2===r.playerSize.length&&h.isInteger(r.playerSize[0])&&h.isInteger(r.playerSize[1])?e.sizes=r.playerSize:(h.logError(“Detected incorrect configuration of mediaTypes.video.playerSize. Please specify only one set of dimensions in a format like: [640, 480]. Removing invalid mediaTypes.video.playerSize property from request.”),delete e.mediaTypes.video.playerSize))}if(t&&t.native){var i=t.native;i.image&&i.image.sizes&&!Array.isArray(i.image.sizes)&&(h.logError(“Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request.”),delete e.mediaTypes.native.image.sizes),i.image&&i.image.aspect_ratios&&!Array.isArray(i.image.aspect_ratios)&&(h.logError(“Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request.”),delete e.mediaTypes.native.image.aspect_ratios),i.icon&&i.icon.sizes&&!Array.isArray(i.icon.sizes)&&(h.logError(“Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request.”),delete e.mediaTypes.native.icon.sizes)}})),e},t.callBids=function(e,t,n,r){if(t.length){var i=(0,y.ajaxBuilder)(t[0].timeout),o=t.reduce((function(e,t){return e[Number(void 0!==t.src&&t.src===S.S2S.SRC)].push(t),e}),[[],[]]),a=c(o,2),u=a[0],d=a[1];if(d.length){var s=I.bidders,f=A[I.adapter],g=d[0].tid,p=d[0].adUnitsS2SCopy;if(f){var v={tid:g,ad_units:p};if(v.ad_units.length){var b=d.map((function(e){return e.start=(0,l.timestamp)(),e.doneCbCallCount=0,r(e.bidderRequestId)})),T=v.ad_units.reduce((function(e,t){return e.concat((t.bids||[]).reduce((function(e,t){return e.concat(t.bidder)}),[]))}),[]);h.logMessage(“CALLING S2S HEADER BIDDERS ==== “+s.filter((function(e){return(0,m.default)(T,e)})).join(“,”)),d.forEach((function(e){E.emit(S.EVENTS.BID_REQUESTED,e)})),f.callBids(v,d,n,(function(){return b.forEach((function(e){return e()}))}),i)}}}u.forEach((function(e){e.start=(0,l.timestamp)();var t=A[e.bidderCode];if(t){h.logMessage(“CALLING BIDDER ======= “+e.bidderCode),E.emit(S.EVENTS.BID_REQUESTED,e),e.doneCbCallCount=0;var o=r(e.bidderRequestId);t.callBids(e,n,o,i)}else h.logError(“Adapter trying to be called which does not exist: “+e.bidderCode+” adaptermanager.callBids”)}))}else h.logWarn(“callBids executed with no bidRequests. Were they filtered by labels or sizing?”)},t.videoAdapters=[],t.registerBidAdapter=function(e,n){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,i=void 0===r?[]:r;e&&n?”function”==typeof e.callBids?(A[n]=e,(0,m.default)(i,”video”)&&t.videoAdapters.push(n),(0,m.default)(i,”native”)&&p.nativeAdapters.push(n)):h.logError(“Bidder adaptor error for bidder code: “+n+”bidder must implement a callBids() function”):h.logError(“bidAdaptor or bidderCode not specified”)},t.aliasBidAdapter=function(e,t){if(void 0===A[t]){var n=A[e];if(void 0===n)h.logError(‘bidderCode “‘+e+'” is not an existing bidder.’,”adaptermanager.aliasBidAdapter”);else try{var r=void 0,i=s(e);if(n.constructor.prototype!=Object.prototype)(r=new n.constructor).setBidderCode(t);else{var o=n.getSpec();r=(0,v.newBidder)(f({},o,{code:t}))}this.registerBidAdapter(r,t,{supportedMediaTypes:i})}catch(t){h.logError(e+” bidder does not currently support aliasing.”,”adaptermanager.aliasBidAdapter”)}}else h.logMessage(‘alias name “‘+t+'” has been already specified.’)},t.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code;t&&n?”function”==typeof t.enableAnalytics?(t.code=n,_[n]=t):h.logError(‘Prebid Error: Analytics adaptor error for analytics “‘+n+'”\n analytics adapter must implement an enableAnalytics() function’):h.logError(“Prebid Error: analyticsAdapter or analyticsCode not specified”)},t.enableAnalytics=function(e){h.isArray(e)||(e=[e]),h._each(e,(function(e){var t=_[e.provider];t?t.enableAnalytics(e):h.logError(“Prebid Error: no analytics adapter found in registry for\n “+e.provider+”.”)}))},t.getBidAdapter=function(e){return A[e]},t.setS2STestingModule=function(e){T=e}},50:function(e,t,n){var r=n(34);e.exports=function(e){return Object(r(e))}},51:function(e,t,n){var r=n(52);e.exports=function(e,t){return new(r(e))(t)}},52:function(e,t,n){var r=n(18),i=n(53),o=n(54)(“species”);e.exports=function(e){var t;return i(e)&&(“function”!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},53:function(e,t,n){var r=n(33);e.exports=Array.isArray||function(e){return”Array”==r(e)}},54:function(e,t,n){var r=n(55)(“wks”),i=n(56),o=n(16).Symbol,a=”function”==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)(“Symbol.”+e))}).store=r},55:function(e,t,n){var r=n(16),i=r[“__core-js_shared__”]||(r[“__core-js_shared__”]={});e.exports=function(e){return i[e]||(i[e]={})}},56:function(e,t){var n=0,r=Math.random();e.exports=function(e){return”Symbol(“.concat(void 0===e?””:e,”)_”,(++n+r).toString(36))}},57:function(e,t,n){“use strict”;var r=n(21),i=n(58)(!0);r(r.P,”Array”,{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(23)(“includes”)},58:function(e,t,n){var r=n(59),i=n(35),o=n(60);e.exports=function(e){return function(t,n,a){var u,d=r(t),s=i(d.length),c=o(a,s);if(e&&n!=n){for(;s>c;)if((u=d[c++])!=u)return!0}else for(;s>c;c++)if((e||c in d)&&d[c]===n)return e||c||0;return!e&&-1}}},59:function(e,t,n){var r=n(32),i=n(34);e.exports=function(e){return r(i(e))}},6:function(e,t,n){“use strict”;function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3;return function(t,n,r){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var c=void 0,f=!1,l=s.method||(r?”POST”:”GET”),g=”object”===(void 0===n?”undefined”:o(n))?n:{success:function(){u.logMessage(“xhr success”)},error:function(e){u.logError(“xhr error”,null,e)}};if(“function”==typeof n&&(g.success=n),window.XMLHttpRequest?void 0===(c=new window.XMLHttpRequest).responseType&&(f=!0):f=!0,f?((c=new window.XDomainRequest).onload=function(){g.success(c.responseText,c)},c.onerror=function(){g.error(“error”,c)},c.ontimeout=function(){g.error(“timeout”,c)},c.onprogress=function(){u.logMessage(“xhr onprogress”)}):(c.onreadystatechange=function(){if(c.readyState===d){var e=c.status;e>=200&&e0&&void 0!==arguments[0]?arguments[0]:{},t=e.labels,n=void 0===t?[]:t,r=e.labelAll,o=void 0!==r&&r,a=e.activeLabels,u=void 0===a?[]:a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],f=i(arguments.length>2&&void 0!==arguments[2]?arguments[2]:s),l=void 0;return l=f.shouldFilter?c.filter((function(e){return f.sizesSupported[e]})):c,{active:l.length>0&&(0===n.length||!o&&(n.some((function(e){return f.labels[e]}))||n.some((function(e){return(0,d.default)(u,e)})))||o&&n.reduce((function(e,t){return e?f.labels[t]||(0,d.default)(u,t):e}),!0)),sizes:l}};var a=n(2),u=n(0),d=(function(e){return e&&e.__esModule?e:{default:e}})(n(8)),s=[];a.config.getConfig(“sizeConfig”,(function(e){return r(e.sizeConfig)}))},63:function(e,t,n){“use strict”;Object.defineProperty(t,”__esModule”,{value:!0}),t.hasNonVideoBidder=t.videoBidder=t.videoAdUnit=void 0,t.isValidVideoBid=function(e,t){var n=(0,i.getBidRequest)(e.adId,t),r=n&&(0,i.deepAccess)(n,”mediaTypes.video”),a=r&&(0,i.deepAccess)(r,”context”);return!n||r&&a!==u?o.config.getConfig(“cache.url”)||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.logError)(‘\n This bid contains only vastXml and will not work when a prebid cache url is not specified.\n Try enabling prebid cache with pbjs.setConfig({ cache: {url: “…”} });\n ‘),!1):a!==u||!(!e.renderer&&!n.renderer)};var r=n(5),i=n(0),o=n(2),a=(function(e){return e&&e.__esModule?e:{default:e}})(n(8)),u=”outstream”,d=(t.videoAdUnit=function(e){var t=”video”===e.mediaType,n=(0,i.deepAccess)(e,”mediaTypes.video”);return t||n},t.videoBidder=function(e){return(0,a.default)(r.videoAdapters,e.bidder)});t.hasNonVideoBidder=function(e){return e.bids.filter((function(e){return!d(e)})).length}},8:function(e,t,n){n(57),e.exports=n(17).Array.includes},9:function(e,t,n){“use strict”;var r=Object.assign||function(e){for(var t=1;t1?arguments[1]:void 0)}}),n(23)(o)}});
pbjsChunk([100],{103:function(n,e,t){n.exports=t(104)},104:function(n,e,t){“use strict”;function o(){if(T&&”object”===l(window[m])&&”function”==typeof window[m].getInstance){for(var n=0;n0){var e=i(n);h++,window[m].logEvent(“Prebid.js Bids”,e)}})),o()}function u(n){E.push((function(){d._each(n,(function(n){var e=i(n);h++,window[m].logEvent(“Prebid.js Timeouts”,e)}))})),o()}function c(n){E.push((function(){var e=i(n);h++,window[m].logEvent(“Prebid.js Wins”,e)})),o()}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},r=t(9),d=t(0),f=t(3),p=t(5),b=f.EVENTS.BID_REQUESTED,y=f.EVENTS.BID_TIMEOUT,v=f.EVENTS.BID_RESPONSE,g=f.EVENTS.BID_WON,E=[],m=null,T=!0,h=0,w=!0,S=[“bidder”,”bidderCode”,”size”,”cpm”,”statusMessage”,”timeToRespond”,”adUnitCode”];e.enableAnalytics=function(n){var e=n.provider,t=n.options;m=e||”amplitude”,w=void 0===t||void 0===t.sampling||Math.random()2&&void 0!==arguments[2]?arguments[2]:{},t=g.Renderer.install({id:r.renderer_id,url:r.renderer_url,config:a,loaded:!1});try{t.setRender(f)}catch(e){_.logWarn(“Prebid Error calling setRender on renderer”,e)}return t.setEventHandlers({impression:function(){return _.logMessage(“AppNexus outstream video impression event”)},loaded:function(){return _.logMessage(“AppNexus outstream video loaded event”)},ended:function(){_.logMessage(“AppNexus outstream renderer video event”),document.querySelector(“#”+e).style.display=”none”}}),t}function n(e){var r=[];return _._each(e,(function(e,a){if(_.isArray(e)){var t=[];_._each(e,(function(e){(e=_.getValueString(“keywords.”+a,e))&&t.push(e)})),e=t}else{if(e=_.getValueString(“keywords.”+a,e),!_.isStr(e))return;e=[e]}r.push({key:a,value:e})})),r}function d(e,r,a){var t={requestId:e.uuid,cpm:r.cpm,creativeId:r.creative_id,dealId:r.deal_id,currency:”USD”,netRevenue:!0,ttl:300,appnexus:{buyerMemberId:r.buyer_member_id}};if(r.rtb.video){if(h(t,{width:r.rtb.video.player_width,height:r.rtb.video.player_height,vastUrl:r.rtb.video.asset_url,ttl:3600}),r.renderer_url){var i=_.deepAccess(a.bids[0],”renderer.options”);h(t,{adResponse:e,renderer:s(t.adUnitCode,r,i)}),t.adResponse.ad=t.adResponse.ads[0],t.adResponse.ad.video=t.adResponse.ad.rtb.video}}else if(r.rtb[E.NATIVE]){var n=r.rtb[E.NATIVE];t[E.NATIVE]={title:n.title,body:n.desc,cta:n.ctatext,sponsoredBy:n.sponsored,clickUrl:n.link.url,clickTrackers:n.link.click_trackers,impressionTrackers:n.impression_trackers},n.main_img&&(t.native.image={url:n.main_img.url,height:n.main_img.height,width:n.main_img.width}),n.icon&&(t.native.icon={url:n.icon.url,height:n.icon.height,width:n.icon.width})}else{h(t,{width:r.rtb.banner.width,height:r.rtb.banner.height,ad:r.rtb.banner.content});try{var d=r.rtb.trackers[0].impression_urls[0],o=_.createTrackPixelHtml(d);t.ad+=o}catch(e){_.logError(“Error appending tracking pixel”,e)}}return t}function o(e){var r={};if(r.sizes=u(e.sizes),r.primary_size=r.sizes[0],r.ad_types=[],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||!1,r.use_pmt_rule=e.params.usePaymentRule||!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]||0),e.params.trafficSourceCode&&(r.traffic_source_code=e.params.trafficSourceCode),e.params.privateSizes&&(r.private_sizes=u(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),_.isEmpty(e.params.keywords)||(r.keywords=n(e.params.keywords)),(e.mediaType===E.NATIVE||_.deepAccess(e,”mediaTypes.”+E.NATIVE))&&(r.ad_types.push(E.NATIVE),e.nativeParams)){var a=l(e.nativeParams);r[E.NATIVE]={layouts:[a]}}var t=_.deepAccess(e,”mediaTypes.”+E.VIDEO),i=_.deepAccess(e,”mediaTypes.video.context”);return(e.mediaType===E.VIDEO||t)&&r.ad_types.push(E.VIDEO),(e.mediaType===E.VIDEO||t&&”outstream”!==i)&&(r.require_asset_url=!0),e.params.video&&(r.video={},Object.keys(e.params.video).filter((function(e){return(0,k.default)(T,e)})).forEach((function(a){return r.video[a]=e.params.video[a]}))),(_.isEmpty(e.mediaType)&&_.isEmpty(e.mediaTypes)||e.mediaType===E.BANNER||e.mediaTypes&&e.mediaTypes[E.BANNER])&&r.ad_types.push(E.BANNER),r}function u(e){var r=[],a={};if(_.isArray(e)&&2===e.length&&!_.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”:b(e)))for(var t=0;t0&&(u.member_id=d),{method:”POST”,url:”//ib.adnxs.com/ut/v3/prebid”,data:JSON.stringify(u),bidderRequest:r}},interpretResponse:function(e,r){var a=this,t=r.bidderRequest,i=[];if(!(e=e.body)||e.error){var s=”in response for “+t.bidderCode+” adapter”;return e&&e.error&&(s+=”: “+e.error),_.logError(s),i}return e.tags&&e.tags.forEach((function(e){var r=m(e);if(r&&0!==r.cpm&&(0,k.default)(a.supportedMediaTypes,r.ad_type)){var s=d(e,r,t);s.mediaType=v(r),i.push(s)}})),i},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:”iframe”,url:”//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html”}]}};(0,I.registerBidder)(R)},112:function(e,r){}},[110]);
pbjsChunk([99],{137:function(e,r,t){e.exports=t(138)},138:function(module,exports,__webpack_require__){“use strict”;function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function publisherTagAvailable(){return”undefined”!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function buildContext(e){var r=utils.getTopWindowUrl(),t=(0,_url.parse)(r).search,i={url:r,debug:”1″===t.pbt_debug,noLog:”1″===t.pbt_nolog,integrationMode:void 0};return e.forEach((function(e){e.params.integrationMode&&(i.integrationMode=e.params.integrationMode)})),i}function buildCdbUrl(e){var r=CDB_ENDPOINT;return r+=”?profileId=”+PROFILE_ID,r+=”&av=”+String(ADAPTER_VERSION),r+=”&cb=”+String(Math.floor(99999999999*Math.random())),e.integrationMode in INTEGRATION_MODES&&(r+=”&im=”+INTEGRATION_MODES[e.integrationMode]),e.debug&&(r+=”&debug=1″),e.noLog&&(r+=”&nolog=1″),r}function buildCdbRequest(e,r){var t=void 0,i={publisher:{url:e.url},slots:r.map((function(e){t=e.params.networkId||t;var r={impid:e.adUnitCode,transactionid:e.transactionId,auctionId:e.auctionId,sizes:e.sizes.map((function(e){return e[0]+”x”+e[1]}))};return e.params.zoneId&&(r.zoneid=e.params.zoneId),e.params.publisherSubId&&(r.publishersubid=e.params.publisherSubId),e.params.nativeCallback&&(r.native=!0),r}))};return t&&(i.publisher.networkid=t),i}function createNativeAd(e,r,t){return window.criteo_prebid_native_slots=window.criteo_prebid_native_slots||{},window.criteo_prebid_native_slots[e]={callback:t,payload:r},’
“}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 c(Array.isArray(r.sizes)?r.sizes:u(e.sizes))}function u(e){return f.parseSizesInput(e).reduce((function(e,r){var t=parseInt(m[r],10);return t&&e.push(t),e}),[])}function c(e){var r=[15,2,9];return e.sort((function(e,t){var i=r.indexOf(e),n=r.indexOf(t);return i>-1||n>-1?-1===i?1:-1===n?-1:i-n:e-t}))}Object.defineProperty(r,”__esModule”,{value:!0}),r.spec=void 0;var p=(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||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”)}})(),l=”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=c,r.resetUserSync=function(){h=!1};var f=(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[t]=e[t]);return r.default=e,r})(t(0)),v=t(1),y=t(2),m={1:”468×60″,2:”728×90″,5:”120×90″,8:”120×600″,9:”160×600″,10:”300×600″,13:”200×200″,14:”250×250″,15:”300×250″,16:”336×280″,19:”300×100″,31:”980×120″,32:”250×360″,33:”180×500″,35:”980×150″,37:”468×400″,38:”930×180″,43:”320×50″,44:”300×50″,48:”300×300″,54:”300×1050″,55:”970×90″,57:”970×250″,58:”1000×90″,59:”320×80″,60:”320×150″,61:”1000×1000″,65:”640×480″,67:”320×480″,68:”1800×1000″,72:”320×320″,73:”320×160″,78:”980×240″,79:”980×300″,80:”980×400″,83:”480×300″,94:”970×310″,96:”970×210″,101:”480×320″,102:”768×1024″,103:”480×280″,108:”320×240″,113:”1000×300″,117:”320×100″,125:”800×250″,126:”200×600″,144:”980×600″,195:”600×300″,199:”640×200″,213:”1030×590″,214:”980×360″};f._each(m,(function(e,r){return m[e]=r}));var x=r.spec={code:”rubicon”,aliases:[“rubiconLite”],supportedMediaTypes:[“banner”,”video”],isBidRequestValid:function(e){if(“object”!==l(e.params))return!1;var r=e.params;return!!/^\d+$/.test(r.accountId)&&(!(d(e).length.01?n.floor:.01,element_id:e.adUnitCode,name:e.adUnitCode,language:n.video.language,width:s[0],height:s[1],size_id:n.video.size_id};return n.inventory&&”object”===l(n.inventory)&&(c.inventory=n.inventory),n.keywords&&Array.isArray(n.keywords)&&(c.keywords=n.keywords),n.visitor&&”object”===l(n.visitor)&&(c.visitor=n.visitor),u.slots.push(c),{method:”POST”,url:”//fastlane-adv.rubiconproject.com/v1/auction/video”,data:u,bidRequest:e}}var p=e.params,v=p.accountId,m=p.siteId,x=p.zoneId,h=p.position,_=p.floor,b=p.keywords,g=p.visitor,w=p.inventory,j=p.userId;_=(_=parseFloat(_))>.01?_:.01,h=h||”btf”;var I=d(e),z=[“account_id”,v,”site_id”,m,”zone_id”,x,”size_id”,I[0],”alt_size_ids”,I.slice(1).join(“,”)||void 0,”p_pos”,h,”rp_floor”,_,”rp_secure”,i()?”1″:”0″,”tk_flint”,”pbjs_lite_v1.5.0-pre”,”x_source.tid”,e.transactionId,”p_screen_res”,o(),”kw”,b,”tk_user_key”,j];return null!==g&&”object”===(void 0===g?”undefined”:l(g))&&f._each(g,(function(e,r){return z.push(“tg_v.”+r,e)})),null!==w&&”object”===(void 0===w?”undefined”:l(w))&&f._each(w,(function(e,r){return z.push(“tg_i.”+r,e)})),z.push(“rand”,Math.random(),”rf”,t),z=z.concat(a()),z=z.reduce((function(e,r,t){return t%2==0&&void 0!==z[t+1]?e+r+”=”+encodeURIComponent(z[t+1])+”&”:e}),””).slice(0,-1),{method:”GET”,url:”//fastlane.rubiconproject.com/a/api/fastlane.json”,data:z,bidRequest:e}}))},interpretResponse:function(e,r){var t=r.bidRequest,i=(e=e.body).ads;return”object”!==(void 0===e?”undefined”:l(e))||”ok”!==e.status?[]:(“object”===(void 0===t?”undefined”:l(t))&&”video”===t.mediaType&&”object”===(void 0===i?”undefined”:l(i))&&(i=i[t.adUnitCode]),!Array.isArray(i)||i.length’}Object.defineProperty(r,”__esModule”,{value:!0}),r.spec=void 0;var u=Object.assign||function(e){for(var r=1;r’)
} /* globals window: false, document: false */
if (!window.URL || !window.URLSearchParams) { var script = document.createElement(‘script’); script.src = ‘/media/sites/slate-com/url-polyfill.min.js’; script.async = false document.head.appendChild(script);
} ‘use strict’;
// add values for 3rd-party libs into dollar-slice
DS.value(‘Eventify’, Eventify);
DS.value(‘_’, _);
DS.value(‘md5’, md5);
DS.value(‘Fingerprint2’, Fingerprint2); ‘use strict’; DS.service(‘adService’, [‘$window’, ‘headerBidding’, ‘$visibility’, function ($window, headerBidding, $visibility) { $window.googletag = $window.googletag || {}, $window.googletag.cmd = $window.googletag.cmd || []; $window.pbjs = $window.pbjs || {}; $window.pbjs.que = $window.pbjs.que || []; let adIndex = {}, adSlotsWithRefresh = [], testParam = getTestParam(), adUnit = getAdUnit(); /** * Checks if url query parameters contain ‘test_ads’ and returns it’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] : ”; } /* * Config GPT scripts */ $window.googletag.cmd.push(function() { $window.googletag.pubads().collapseEmptyDivs(true); $window.googletag.pubads().disableInitialLoad(); $window.googletag.enableServices(); var cacheBustValue = Math.floor(Math.random() * 10000000000000), cacheBustMeta = document.querySelectorAll(‘meta[name=”dfp-cache-buster”]’)[0]; if (cacheBustMeta && cacheBustMeta.content) { cacheBustValue = cacheBustMeta.content; } $window.googletag.pubads().setTargeting(“dfp_cache_buster”, cacheBustValue); if (testParam) { googletag.pubads().setTargeting(‘kw’, ‘test_’ + 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(‘site’, ‘redux’); gpt_slot.setTargeting(‘refresh’, ‘no’); gpt_slot.setTargeting(‘pos’, ad_data.id); gpt_slot.setTargeting(‘page_type’, 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(‘slotRenderEnded’, function(event) { const slot = event.slot; const slotId = slot.getSlotElementId(); const slotElement = $window.document.getElementById(slotId); const slotIframe = slotElement.getElementsByTagName(‘iframe’); 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(‘hb_adid’); slot.clearTargeting(‘hb_bidder’); slot.clearTargeting(‘hb_pb’); slot.clearTargeting(‘hb_size’); slot.setTargeting(‘height’, slotHeight); slot.setTargeting(‘refresh’, ‘yes’); } /** * Checks ad’s height to make sure it’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) { return false; } else { return $visibility.isElementInViewport(slotElement); } } /* * Create ad object */ this.createAd = function(el) { var type = el.getAttribute(‘data-type’), pageType = el.getAttribute(‘data-page-type’), prebid = el.getAttribute(‘data-prebid’), dataDfpSizes = el.getAttribute(‘data-sizes’), dataPrebidSizes = el.getAttribute(‘data-prebid-sizes’), rubiconZoneId = el.getAttribute(‘data-zone-id’), appnexusPlacementId = el.getAttribute(‘data-placement-id’), trustxId = el.getAttribute(‘data-trustx-id’), criteoZoneId = el.getAttribute(‘data-criteo-id’), sizes; if (!adIndex[type]) { adIndex[type] = 1; } el.id = type + ‘-‘ + 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, trustxId: trustxId, criteoZoneId: criteoZoneId }; return ad; }; /** * Returns sizes as an array * @param {string} sizes * @returns {array} */ function getSizeArray(sizes) { var sizesArray = []; if (sizes && sizes.length) { sizes = sizes.split(‘,’); _.map(sizes, function (size) { size = size.split(‘x’); 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(‘div[data-adnode]’), adNode = ”; if (adNodeElement) { adNode = adNodeElement.getAttribute(‘data-adnode’); } return adNode; } /** * Returns DFP ad unit * @returns {string} */ function getAdUnit() { const networkCode = ‘91898098’, platform = ‘slate.com’, adNode = getAdNode(); return networkCode + ‘/’ + platform + ‘/’ + adNode; } /** * Whether or not to run prebid for this slot * Returns true if prebid is enabled for this slot * and prebid isn’t requesting bids for other slot at this time. * @returns {boolean} */ function runPrebid(ad_data) { return ad_data.prebid === ‘true’ && !pbjs.adserverRequestSent; } }]); ‘use strict’; DS.service(‘ajax’, [‘_’, 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 || {}, ‘status’, 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(‘load’, function () { var error = xhr.readyState === 4 && xhr.status 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’re greater/equal to threshold if (px && percent >= item.shownThreshold && !item.seen) { item.seen = true; setTimeout(function () { item.trigger(‘shown’, new VisibleEvent(‘shown’, evt)); }, 15); // if no pixels or percent is less than threshold } else if ((!px || percent = 0 && rect.left >= 0 && rect.bottom 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 * @see http://ift.tt/2EoabaC */ function getPageOffset(el) { var offsetLeft = el.offsetLeft, offsetTop = el.offsetTop; while (el = el.offsetParent) { offsetLeft += el.offsetLeft; offsetTop += el.offsetTop; } return { left: offsetLeft, top: offsetTop }; } /** * Execute function when any of the selectors become visible * * Safely stops watching all selectors after first ‘shown’ event. * * @param {string} selector * @param {function} fn * @returns {[Visible]} Array of elements that we’re watching for visibility */ function watchForAny(selector, fn) { var el, visibleList; selector = selector.split(‘,’); visibleList = _.filter(_.map(selector, function (selector) { el = $document.querySelector(selector); return el && new Visible(el).on(‘shown’, function () { // stop watching for visibility _.invokeMap(visibleList, ‘destroy’); // 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 [options] * @class * @example this.visible = new $visibility.Visible(el); */ Visible = function (el, options) { options = options || {}; this.el = el; this.seen = false; this.preload = false; this.preloadThreshhold = options && options.preloadThreshhold || 0; this.shownThreshold = options && options.shownThreshold || 0; this.hiddenThreshold = options && min(options.shownThreshold, options.hiddenThreshold) || 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 {‘shown’|’hidden’} e EventName * @param {function} cb Callback */ /** * @name Visible#trigger * @function * @param {‘shown’|’hidden’} e * @param */ }; Eventify.enable(Visible.prototype); VisibleEvent = function (type, options) { this.type = type; _.assign(this, options); }; // listen for scroll events (throttled) $document.addEventListener(‘scroll’, _.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;
}]); “use strict”;var googletag=googletag||{};googletag.cmd=googletag.cmd||[],DS.controller(“ad”,[“adService”,”$visibility”,”adsScripts”,function(e,t){function o(e){return”outstream-video”==e.type||”mobile-outstream-video”==e.type}function n(o,n){t.isElementNotHidden(n)&&e.requestAd(o)}function a(o,n){var a=new t.Visible(n,{preloadThreshhold:200});a.on(“preload”,function(){t.isElementNotHidden(n)&&e.requestAd(o)})}var d=function(d){var i=e.createAd(d),r=document.querySelector(“div[data-adnode]”),c=!1,s=””,g=new Date,u=g.getDate(),l=g.getMonth()+1,m=g.getFullYear(),p=l+”/”+u+”/”+m;r&&(s=r.getAttribute(“data-adnode”),c=”homepage”===s),”1/18/2018″===p&&c?t.isElementNotHidden(d)&&e.requestAd(i):o(i)?n(i,d):a(i,d)};return d}]),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 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 ‘”+o+”‘”);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][t];return i(n?n:t)},f,f.exports,t,e,n,r)}return n[o].exports}for(var s=”function”==typeof require&&require,o=0;o1){if(i=e({path:”/”},o.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():””;try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(e){}r=t.write?t.write(r,n):encodeURIComponent(String(r)).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=””;for(var d in i)i[d]&&(u+=”; “+d,i[d]!==!0&&(u+=”=”+i[d]));return document.cookie=n+”=”+r+u}n||(c={});for(var a=document.cookie?document.cookie.split(“; “):[],l=/(%[0-9A-Z]{2})+/g,f=0;f10?void console.error(“RETRY LIMIT EXCEEDED”):void setTimeout(function(){f(e,t+1)},u)};return s}])},{“../../services/client/analytics-js”:3,”../../services/universal/membership”:4}],2:[function(e,t,n){!function(e){var o=!1;if(“function”==typeof define&&define.amd&&(define(e),o=!0),”object”==typeof n&&(t.exports=e(),o=!0),!o){var i=window.Cookies,r=window.Cookies=e();r.noConflict=function(){return window.Cookies=i,r}}}(function(){function e(){for(var e=0,t={};e1){if(r=e({path:”/”},o.defaults,r),”number”==typeof r.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*r.expires),r.expires=s}r.expires=r.expires?r.expires.toUTCString():””;try{c=JSON.stringify(i),/^[\{\[]/.test(c)&&(i=c)}catch(e){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var a=””;for(var u in r)r[u]&&(a+=”; “+u,r[u]!==!0&&(a+=”=”+r[u]));return document.cookie=t+”=”+i+a}t||(c={});for(var f=document.cookie?document.cookie.split(“; “):[],l=/(%[0-9A-Z]{2})+/g,p=0;p
0 notes