Koreatown, LOS ANGELES—Resting inside one of the stone entryways of St. James Episcopal Church on St. Andrews Place, Josh Law heard a drunken man’s slurred speech and then the sound of an opening zipper. In 16 months of homelessness, Law had learned to sleep in an altered state of hypervigilance. He grabbed his makeshift bed of clothes and blankets—and dodged the stream of urine.

Sixteen long months of hell, Law says. Sixteen months of adjusting his nightly agenda to the event schedule of the church so that he wouldn’t block a doorway with his bed. Sometimes he stretched out at 8 p.m.; sometimes he waited until 10 p.m. He always made sure he was up at 4 a.m., before the garbage truck drivers passed. “I didn’t want people to see me and think: ‘Oh, what a lazy homeless bum,’ ” Law said.

But the number of homeless people in this country is steadily increasing; there are far too many for literal—or figurative—invisibility. The statistics extend gloomily from there. Advocates who work with the homeless estimate there are at least 2 million unhoused people in the United States. Between 2018 and 2019, according to the Los Angeles Homeless Services Authority’s count, the homeless population in the city of Los Angeles increased by 16 percent—bringing the estimated homeless population to 36,165, at least 27,200 of whom were living on the streets. Koreatown, a neighborhood that takes up just 2.7 square miles, contains nearly 600 unhoused residents.

Here, in Koreatown, while locals have protested the building of a homeless shelter, forcing the project to relocate half a mile away, the homeless live on sidewalks, in alleyways, parks—and anyplace else they can find. Dilapidated tents bound together with rope create strange formations amid the city’s mix of modern and Art Deco architecture. They awkwardly jut from the sidewalks like poorly crafted spaceships.



President Donald Trump has repeatedly suggested that he might try to implement some kind of police crackdown in California to clear its streets. And on Christmas Day, he tweeted that Gavin Newsom, California’s governor, was doing a “bad job” with “taking care of the homeless population in California.” “If he can’t fix the problem, the Federal Govt. will get involved!” the president wrote.

In November, I traveled to Los Angeles from Salt Lake City, where I had lived on the streets between 2014 and 2016. Salt Lake has relatively few homeless inhabitants compared with other major American cities. Even as some outlets have disputed this specific claim and I regularly see homeless people sleeping in tents on the sidewalks where I was once homeless, Salt Lake has been held up as a national symbol of a city that has “all but ended chronic homelessness.”

While I did not know what I would see or learn in my five days in L.A., I know how traumatizing it is to be homeless. And I wanted to witness how people—housed as well as unhoused—cope with this issue on such a devastating scale.

I met Law on a Saturday afternoon, in the parking lot of St. James Church, where he had just finished taking a shower inside a mobile shower van offered by Shower of Hope, a nonprofit organization that serves the homeless population in Los Angeles. Once a construction worker who says he made up to $50 an hour, Law lost his housing after being severely injured on the job—he fell and suffered a compound fracture to his tibia, he says, pulling his pants leg up to show a deep scar from surgery. The $1,347 a month he says he got from disability was nowhere near enough to cover the cost of an apartment, not even a studio, which averages $1,000 to $1,300 a month in Los Angeles. “No one would give me a lease where I was paying nearly 80 percent of my income toward rent,” Law said.

The 42-year-old hasn’t told his relatives back in Kentucky that he’s homeless, even though he says they have the means to help him out financially. A man has got to have his pride, Law says. When his daughter came to visit, he said, “I rented an Airbnb for four days so she would think I was housed.” These past 16 months have culminated, Law says, in six painful ulcers.

Law tells me he is paying for his food—“I refuse to go on food stamps,” he said—cellphone bill, storage unit, and other necessities by selling his plasma and by buying shirts at Goodwill stores and then reselling them. Yes, it’s a demanding, hardscrabble life. But the biggest stressor of being homeless, Law said, is “other people’s views of me.”

Despite the widespread myth that homeless people flock to Los Angeles to bask in the sunshine, most of the unhoused are people who have been living in the area for many years, according to a 2018 report from the Los Angeles Homeless Services Authority. Sixty-five percent of the homeless people in Los Angeles County have lived there for at least two decades, and three-quarters have lived in the county for at least 10 years. “Many of them are living in tents across the street from the apartments from which they have been evicted,” said homeless advocate Jane Nguyen.

Walking into a Subway shop in Koreatown, I was overcome not only by the homeless man looking directly into my eyes as he sits on a patch of pavement outside, but by the in-your-face smell of urine emanating from the doorway. “Ma’am, do you have any money so I can get a warm meal?” Suddenly, there is an agenda to tend to. Which shall it be? Mine—or his?

Even as a formerly homeless woman myself, I feel unsure how to cope with the flurry of emotions this request brings. I know what it’s like to lose everything and fall to the lowest rungs of society, a place so stigmatized that people keep a careful distance, rarely stepping close enough to ask how you are doing or what you might need. Yet two and a half years into my emergence, I sometimes freeze in survival mode, forgetting that I can spare a dime, or at the very least a smile. And so I walked guiltily past the man, without interacting with him. Like everyone else, I’m coping with the reality of living in a world where the need for self-preservation is as great as the need to help those in need.

In November, I talked with Johnny Lee, who owns a pizza restaurant in Koreatown: “Yesterday, I was riding my bike to work and I saw a man take his last breath and die. He was homeless.” Lee, 36, is also the co-founder of Koreatown for All, a small group of Los Angeles residents who have banded together to watch over their unhoused neighbors. In L.A., the death of the unhoused is becoming commonplace: An average of three homeless people die every day in Los Angeles County, according to a 2019 report from the Los Angeles County Department of Public Health.

The dying man Lee saw lay some 50 feet away from a Starbucks, next to a high rise filled with pricey condominiums, Lee said. Another man was pumping the homeless man’s chest with the palm of his hand. Lee saw a passerby, a man who looked like he was in his 30s, shake his head. He recalls hearing him say to no one in particular, “Oh, another dead guy.”

It was the oddest thing, says Lee. Everyone was doing their daily thing on that bright blue November morning: buying their juice, drinking their lattes, heading to work. “And all I could think was: ‘I just watched someone leave this earth,’ ” Lee said.

Koreatown is a neighborhood that prides itself on having created something out of nothing—in the 1960s it was a working-class area inhabited mostly by Korean immigrants who went on to establish many thriving businesses. Since then, it has become one of the most ethnically diverse neighborhoods in Los Angeles: Approximately 7.1 percent of the population is white, 51.8 percent is Hispanic, 4.9 percent is black, 33.6 percent is Asian, 1.5 percent is “mixed,” and 1.1 percent is “other,” according to information gathered from the U.S. 2010 census and from the 2012–16 American Community Survey.

Koreatown is now known for having one of the largest concentrations of nightclubs and 24-hour businesses and restaurants in the country. It’s undergoing the same gentrification process that has swept through Los Angeles and displaced many.

In May 2018, Lee staged a protest against a protest against the city of Los Angeles’ proposal to build a homeless shelter in Koreatown. More than 100 people showed up to oppose the homeless shelter proposal, Lee says. Some of them shouted stereotypes about homeless people, according to Lee—how they were dangerous and drug addicts—and said they didn’t want “people like that” around their children, he recalls. Lee stood in the midst of the angry chaos of the protest, holding a cardboard sign. “Koreatown Choose Love,” one side read. “Least of These,” read the other side—a partial quote from Jesus’ words in Matthew 25:40, “as ye have done it unto one of the least of these my brethren, ye have done it unto me.” It was a Sunday, and he hoped to catch the eye of his fellow Korean Christians leaving services. “Koreans have come a long way,” Lee says, “with many of them fighting … to finally ‘make it’ to middle class—only to push away the middle class.” But as a Korean American, he felt very sure that “all Koreatown residents were [not] against the homeless shelter.”

Lee hadn’t initially planned on anything broader than a one-off counterprotest. But people saw his photo on Twitter and on the news and started to contact him, telling him they wanted to join forces in support of Koreatown’s homeless population. And so Koreatown for All was born.

The group now has five core activists and hundreds of drop-in volunteers—all of whom walk the streets of Koreatown, acting as de facto case managers: talking with homeless people, keeping track of their needs, and connecting them to resources and information. The volunteers range from teenagers to senior citizens. Some are attorneys, some business owners. Another, Lee says, is a reality television producer.

One of them is Jane Nguyen. Nguyen says her entire life purpose shifted after she first saw a tweet about Lee and his protest. Before, she had a full-time office job. Now her entire focus is on helping the homeless. She gives her phone number to her unhoused neighbors, and she shared a slew of urgent texts from them with me:

“I’m homeless and a friend of mine said you could help me out. Any kind of help to make life a little easier. Text me back if you can help.”

On a Friday night in November, Nguyen drove me to East Eighth Street, to the tent where Lucrecia Macias, a 41-year-old woman with stage 3 lymphoma, is living.

“Home” was a row of half a dozen tents, surrounded by mounds of children’s toys—there was a pink-and-white plastic stove that looked a lot like the one I pretended to cook on when I was a child—and grown-up pots and pans and tools and bicycle frames and tires, one of which was hanging from the top branches of a tall oak tree above Macias’ tent. Everything was inexplicably random, perhaps the most familiar hallmark of homelessness.

Two days later, I went back to the encampment. The smell of bleach and lavender incense wafted through the air. The same young man in the gym suit told me Macias still wasn’t home. This time, there was an air of protectiveness about him. But when I told him Nguyen from Koreatown for All had sent me, he nodded and waved me past a mound of metal bicycle parts next to Macias’ tent.

I could hear her sweeping the cloth floor of her tent with a broom. Then she lifted the canvas door, inviting me inside. She had covered the tent’s holes with colorful scarves and butterfly appliqués, and there was a determined air of cheerfulness about her as she began to talk.

Yes, she had been in the hospital for a few days, she said, as the chemotherapy she’d undergone made her prone to viruses. But the medicine had helped her feel better, and the cancer was in remission, she said confidently.

Macias became homeless three years ago, because she had a meth addiction, she said. She said she removed herself from her home, as otherwise, her entire family would have been evicted. The substance abuse came after she filed a rape charge against her husband, who was deported as a result of her allegation, according to Macias. She thought the meth would help her keep up her energy, she told me. At the time, she was a live-in vocational nurse and a single mom. When she moved out, she said, she had to leave everyone behind.

Now she’s smoking only cannabis to deal with the pain from the cancer, she explained, and she’s ready to be back with her children. Until that happens, she cooks for the young people who live in the nearby tents. “They all call me ‘mom,’ ” she said proudly. Everyone, including Macias, takes turns staying up all night because they know they are never safe on the streets.

For Jodan Wischmeier, a woman living next to three garbage dumpsters off the intersection of Wilshire Boulevard and Berendo Street, coping with the danger of homelessness often looks like carrying a 4-inch switchblade in her purse. Other times, it looks like Wischmeier digging through her purse and taking a swig from a bottle of vodka. Especially, she says, after hearing the police tell her that she needs to move her home—a tent holding everything from her propane cooking stove to her bed to her Bible. “We’re always being told we have to move,” Wischmeier said, tears spilling from her eyes. “But where are we going to go?”

Wischmeier has a young face, with dirty-blond hair pulled back into a neat ponytail. She became homeless after fleeing a domestic violence situation, she said. With nowhere to go, she moved into her tent. Regardless, the 42-year-old said she feels “lucky,” as she is currently living across the street from a Chevron station, where most of the employees allow her to use the bathroom without telling her to buy something first. Plus, a couple of times a week, her boyfriend’s mother allows her to take a shower and do laundry.

She works odd jobs, she said, and those jobs allow her to buy food and pay for her cellphone. She doesn’t want to talk about what the jobs are. But the one thing she is willing to talk about is how she hasn’t found a way to navigate the anxiety that rushes through her on a regular basis. A doctor prescribed anti-anxiety medication, Wischmeier said, but the diagnosis left her feeling deeply ashamed. “I don’t see what I have to be that stressed about,” she said.

I told her that I recently reported and wrote a story for Slate about the constant stress of living on the streets, as well as the misdiagnosis and under acknowledgement of post-traumatic stress disorder in homelessness. Hearing her personal situation normalized, Wischmeier sobs openly. “Honestly, it’s getting harder and harder for me to leave this alley,” she said.

I remember that feeling—how, before my sudden plunge into homelessness—I had been a successful journalist who traveled the country reporting stories. Yet in the trauma of homelessness, which included being stalked, beaten, and sexually assaulted, my world shrank to a two-mile radius around the park bench where I slept. I coped by withdrawing into my own mind, where I prayed.

Five days after I met Wischmeier in the alleyway, California state Sen. Holly Mitchell held a campaign event at a pizzeria around the corner from Wischmeier’s tent. Nguyen invited Wischmeier to come. There, Wischmeier had the chance to talk to two candidates running for the Los Angeles County Board of Supervisors about the criminalization of the homeless. “It’s not every day that [the homeless] get to talk directly to elected officials,” Nguyen said. “It’s so important that politicians hear directly from [them].”

It was quarter past three on a Wednesday afternoon. A 61-year-old man, Javier Prado, was being evicted from his home of six years, as the city had deemed the building uninhabitable. “Do you want to go and meet him?” Nguyen asked me.

The two-story house on Lake Street, in a gentrifying neighborhood on the edges of Koreatown, looked decent enough on the outside. Inside, though, there were huge holes in the corners of ceilings, holes surrounded by what Prado’s attorney, Sean Chandra of Eviction Defense Network, said appeared to be a moldlike substance. The toilet that Prado shared with other housemates was broken, and the entire building stank of human waste. The landlord had been cited with failure to meet fire, safety, sanitation, and construction regulations.

Prado says that after the eviction notice came, but before he finished packing his belongings, he sat determinedly on the edge of his single bed, holding his guitar, strumming out a song about perseverance that he found on YouTube: “A Wooden Cross.” Prado sang along karaoke style, to cheer himself on.

He’d paid his rent on time and showed me receipts to prove it. But now he didn’t know where he would go. Prado is a street vendor who works seven days a week, eight hours a day, selling cellphone cases and batteries in downtown L.A. He says he makes between $125 and $150 a week—nowhere near the minimum needed to rent a studio apartment in Los Angeles.

Dressed in perfectly pressed black dress pants, spotless black shoes, and a shirt with cheerful lime and blue pinstripes, his thinning black hair carefully combed across his lined forehead, Prado looks to me like a picture of determined stoicism. “Many people I know in similar situations have gotten depressed and then become homeless—they live in tents on the streets,” he said. “I cannot allow myself to get depressed, even though I am sad and depressed.” Prado’s eviction notice said he needed to be out on Nov. 13—two days away. “I don’t know what I’m going to do,” he said.

Prado’s attorney says the judge allowed Prado’s landlord to evict him under a no-fault eviction. “There is a lot of lip service in this city about defending tenants’ rights,” Chandra said. “But if you look at what [the city] is doing behind the scenes, it’s ugly.”

The office of council member Herb Wesson, who represents Koreatown, said his schedule was too busy for an interview.

Meanwhile, the issue of homelessness in America has reached the federal level, where the Supreme Court decided in December against hearing an appeal to the case of Martin v. City of Boise. In that case, Robert Martin and five other homeless individuals challenged the city of Boise’s ability to fine them for violating an anti-camping ordinance, and won. In its appeal, the city of Boise argued that “the creation of a de facto constitutional right to live on sidewalks and in parks will cripple the ability of more than 1,600 municipalities in the Ninth Circuit to maintain the health and safety of their communities.”

In Los Angeles, Ordinance 85.02 expired Jan. 1. The legislation had made living in a vehicle in residential areas or within a one block radius of schools and parks illegal. There are approximately 16,500 people living in cars, vans or RVs in Los Angeles County, according to a 2019 LAHSA report. Also on Jan. 1, California enacted a 5 percent cap (plus inflation) on rent increases.

Despite these changes, Chandra says that the number of people he serves who are teetering on the brink of homelessness is increasing. One of his most recent cases involved a woman with a severely disabled 11-year-old child, as well as a 6-year-old. The woman had been burglarized and lost the money orders that she had been keeping to pay her rent.

Later that afternoon, on another quintessentially sunny California day, Sabrina Johnson, a Koreatown for All volunteer, talked with Prado outside his home, assuring him that she would help him move his things into storage, as well as make calls to the landlord’s attorney about compensation for the move. There was a feeling of extreme urgency between Johnson and Prado, as if a bomb were about to detonate. But no one knew how to stop it before it went off.

In January, a Koreatown for All volunteer said that Josh Law had suddenly moved away from the city, and he was not returning phone calls.

Jane Nguyen has been hired to participate in the Activist-in-Residence Program at UCLA, where she will be helping students to engage with the issue of homelessness. “As much as I would like a happy ending, things are getting worse,” she said.

Javier Prado received a relocation check for approximately $10,000 from the client trust account of the lawyer who evicted him. While that may sound like a great solution for Prado, it is really “a Band-Aid fix,” his attorney Chandra said, as the money will pay for less than a year of market-rate rent in a studio apartment—that is, if Prado can prove income to pay for the rent after the money runs out. Prado had not yet been approved for such an apartment; the last Chandra heard, Prado was staying with a friend.

Jodan Wischmeier told me on the phone that police had asked her to move her tent in late November. She now lives on a street a few hundred feet away from her original homesite in the alleyway. She told me that the news she gets on her phone tells her there are city services available for homeless people. But no one other than Nguyen has come out to her area to offer her anything, she said. “No one is helping with permanent housing,” Wischmeier told me. “We get wet when it rains, even though we have tarps. I don’t know how I’m doing. I just do every day.”

Readers like you make our work possible. Help us continue to provide the reporting, commentary, and criticism you won’t find anywhere else.

Slate is published by The Slate Group, a Graham Holdings Company. All contents © 2020 The Slate Group LLC. All rights reserved.

Slate relies on advertising to support our journalism. If you value our work, please disable your ad blocker.

By joining Slate Plus you support our work and get exclusive content. And you'll never see this message again.

'):""},t.getDefinedParams=function(e,t){return t.filter(function(t){return e[t]}).reduce(function(t,n){return i(t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,e[n]))},{})},t.isValidMediaTypes=function(e){var t=["banner","native","video"];return!!Object.keys(e).every(function(e){return J()(t,e)})&&(!e.video||!e.video.context||J()(["instream","outstream","adpod"],e.video.context))},t.getBidderRequest=function(e,t,n){return H()(e,function(e){return 0n[e]?-1:0}};var L=n(3),F=n(115),G=n.n(F),V=n(12),H=n.n(V),K=n(10),J=n.n(K),$=n(116);n.d(t,"deepAccess",function(){return $.a});var Y=n(117);n.d(t,"deepSetValue",function(){return Y.a});var Z,X=n(5),Q="Array",ee="String",te="Function",ne="Number",re="Object",ie="Boolean",oe=Object.prototype.toString,ae=Boolean(window.console),ue=Boolean(ae&&window.console.log),ce=Boolean(ae&&window.console.info),se=Boolean(ae&&window.console.warn),de=Boolean(ae&&window.console.error),fe={checkCookieSupport:M,createTrackPixelIframeHtml:k,getWindowSelf:f,getWindowTop:d,getWindowLocation:l,insertUserSyncIframe:O,insertElement:T,isFn:_,triggerPixel:C,logError:v,logWarn:h,logMessage:p,logInfo:g},le={},pe=function(e,t){return t}.bind(null,1,le)()===le?Function.prototype.bind:function(e){var t=this,n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,n.concat(Array.prototype.slice.call(arguments)))}},ge=(Z=0,function(){return++Z}),he=function(){if(Array.prototype.indexOf)return Array.prototype.indexOf}(),ve=N("timeToRespond",function(e,t){return t=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},101:function(e,t,n){"use strict";var r=n(102),i=n(72);e.exports=n(104)("Set",function(e){return function(t){return e(this,0>>0,o=0;if(t)n=t;else{for(;o=y.syncsPerBidder?s.logWarn('Number of user syncs exceeded for "'.concat(t,'"')):g.canBidderRegisterSync(e,t)?(h[e].push([t,n]),(r=b)[i=t]?r[i]+=1:r[i]=1,void(b=r)):s.logWarn('Bidder "'.concat(t,'" not permitted to register their "').concat(e,'" userSync pixels.')):s.logWarn("Bidder is required for registering sync"):s.logWarn('User sync type "'.concat(e,'" not supported'));var r,i},g.syncUsers=function(){var e=0Object(y.timestamp)()},R=function(e){return e&&(e.status&&!I()([T.BID_STATUS.RENDERED],e.status)||!e.status)},D=(v=A.a,m={},(b={}).setLatestAuctionForAdUnit=function(e,t){m[e]=t},b.resetPresetTargeting=function(e){if(Object(y.isGptPubadsDefined)()){var t=s(e),n=v.getAdUnits().filter(function(e){return I()(t,e.code)});window.googletag.pubads().getSlots().forEach(function(e){C.forEach(function(t){n.forEach(function(n){n.code!==e.getAdUnitPath()&&n.code!==e.getSlotElementId()||e.setTargeting(t,null)})})})}},b.resetPresetTargetingAST=function(e){s(e).forEach(function(e){var t=window.apntag.getTag(e);if(t&&t.keywords){var n=Object.keys(t.keywords),r={};n.forEach(function(e){I()(C,e.toLowerCase())||(r[e]=t.keywords[e])}),window.apntag.modifyTag(e,{keywords:r})}})},b.getAllTargeting=function(e){var t,n,p,v,m,A,w,x,E,j=1e.getTimeout()+b.b.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function a(e,t){var n=e.getBidRequests(),r=S()(n,function(e){return e.bidderCode===t.bidderCode});!function(e,t){var n;if(e.bidderCode&&(0n&&(t=!1)),!t}),t&&e.run(),t}function d(e,t){void 0===e[t]?e[t]=1:e[t]++}var l=this;g=C,s=Date.now();var m=I.makeBidRequests(W,s,K,$,L);E.logInfo("Bids Requested for Auction with id: ".concat(K),m),m.forEach(function(e){var t;t=e,G=G.concat(t)});var y={};if(m.lengtht.max?e:t},{max:0}),b=0,m=u()(t.buckets,function(t){if(e>v.max*n){var i=t.precision;void 0===i&&(i=s),r=(t.max*n).toFixed(i)}else{if(e=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},62:function(e,t,n){function r(){}var i=n(28),o=n(94),a=n(63),u=n(50)("IE_PROTO"),c="prototype",s=function(){var e,t=n(55)("iframe"),r=a.length;for(t.style.display="none",n(97).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("document.F=Object"),e.close(),s=e.F;r--;)delete s[c][a[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(r[c]=i(e),n=new r,r[c]=null,n[u]=e):n=s(),void 0===t?n:o(n,t)}},63:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},64:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},65:function(e,t,n){var r=n(20);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},66:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},67:function(e,t,n){var r=n(28);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},68:function(e,t,n){var r=n(30),i=n(14)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},69:function(e,t,n){var r=n(70),i=n(14)("iterator"),o=n(30);e.exports=n(16).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},7:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){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||null==u.return||u.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){var t=e.bidderCode,n=e.auctionId,r=e.bidderRequestId,o=e.adUnits,a=e.labels,u=e.src;return o.reduce(function(e,o){var c=Object(d.b)(Object(d.a)(o,a),o.mediaTypes,o.sizes),l=c.active,p=c.mediaTypes,g=c.filterResults;return l?g&&S.logInfo('Size mapping filtered adUnit "'.concat(o.code,'" banner sizes from '),g.before,"to ",g.after):S.logInfo('Size mapping disabled adUnit "'.concat(o.code,'"')),l&&e.push(o.bids.filter(function(e){return e.bidder===t}).reduce(function(e,t){var c=o.nativeParams||S.deepAccess(o,"mediaTypes.native");c&&(t=i({},t,{nativeParams:Object(f.g)(c)})),t=i({},t,Object(s.getDefinedParams)(o,["mediaType","renderer"]));var l=Object(d.b)(Object(d.a)(t,a),p),g=l.active,h=l.mediaTypes,v=l.filterResults;return g?v&&S.logInfo('Size mapping filtered adUnit "'.concat(o.code,'" bidder "').concat(t.bidder,'" banner sizes from '),v.before,"to ",v.after):S.logInfo('Size mapping deactivated adUnit "'.concat(o.code,'" bidder "').concat(t.bidder,'"')),S.isValidMediaTypes(h)?t=i({},t,{mediaTypes:h}):S.logError("mediaTypes is not correctly configured for adunit ".concat(o.code)),g&&e.push(i({},t,{adUnitCode:o.code,transactionId:o.transactionId,sizes:S.deepAccess(h,"banner.sizes")||S.deepAccess(h,"video.playerSize")||[],bidId:t.bid_id||S.getUniqueIdentifierStr(),bidderRequestId:r,auctionId:n,src:u,bidRequestsCount:y.a.getRequestsCounter(o.code),bidderRequestsCount:y.a.getBidderRequestsCounter(o.code,t.bidder),bidderWinsCount:y.a.getBidderWinsCounter(o.code,t.bidder)})),e},[])),e},[]).reduce(s.flatten,[]).filter(function(e){return""!==e})}function a(){return j&&j.enabled&&j.testing&&c}function u(e,t,n){try{var r=E[e].getSpec();r&&r[t]&&"function"==typeof r[t]&&(S.logInfo("Invoking ".concat(e,".").concat(t)),g.b.runWithBidder(e,s.bind.call(r[t],r,n)))}catch(n){S.logWarn("Error calling ".concat(t," of ").concat(e))}}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"gdprDataHandler",function(){return C}),n.d(t,"uspDataHandler",function(){return O}),t.setS2STestingModule=function(e){c=e};var c,s=n(0),d=n(75),f=n(26),l=n(1),p=n(4),g=n(3),h=n(10),v=n.n(h),b=n(12),m=n.n(b),y=n(76),_=n(31),S=n(0),A=n(5),w=n(8),x={},E=x.bidderRegistry={},I=x.aliasRegistry={},j={};g.b.getConfig("s2sConfig",function(e){j=e.s2sConfig});var T={},C={consentData:null,setConsentData:function(e){C.consentData=e},getConsentData:function(){return C.consentData}},O={consentData:null,setConsentData:function(e){O.consentData=e},getConsentData:function(){return O.consentData}};x.makeBidRequests=function(e,t,n,r,i){var u=[],d=Object(s.getBidderCodes)(e);g.b.getConfig("bidderSequence")===g.a&&(d=Object(s.shuffle)(d));var f,l,p,h,b=Object(_.b)(),y=d,w=[];if(j.enabled){if(a()){var x=c.getSourceBidderMap(e);w=x[c.CLIENT]}var I=j.bidders;y=d.filter(function(e){return!v()(I,e)||v()(w,e)}),Boolean(a()&&j.testServerOnly)&&(h=e,Boolean(m()(h,function(e){return m()(e.bids,function(e){return(e.bidSource||j.bidderControl&&j.bidderControl[e.bidder])&&e.finalSource===c.SERVER})})))&&(y.length=0);var T=(f=e,l=j.bidders,(p=S.deepClone(f)).forEach(function(e){e.bids=e.bids.filter(function(e){return v()(l,e.bidder)&&(!a()||e.finalSource!==c.CLIENT)}).map(function(e){return e.bid_id=S.getUniqueIdentifierStr(),e})}),p=p.filter(function(e){return 0!==e.bids.length})),k=S.generateUUID();I.forEach(function(e){var r=S.getUniqueIdentifierStr(),a={bidderCode:e,auctionId:n,bidderRequestId:r,tid:k,bids:o({bidderCode:e,auctionId:n,bidderRequestId:r,adUnits:S.deepClone(T),labels:i,src:A.S2S.SRC}),auctionStart:t,timeout:j.timeout,src:A.S2S.SRC,refererInfo:b};0!==a.bids.length&&u.push(a)}),T.forEach(function(e){var t=e.bids.filter(function(e){return m()(u,function(t){return m()(t.bids,function(t){return t.bidId===e.bid_id})})});e.bids=t}),u.forEach(function(e){e.adUnitsS2SCopy=T.filter(function(e){return 0<e.bids.length})})}var R,D,U=(R=e,(D=S.deepClone(R)).forEach(function(e){e.bids=e.bids.filter(function(e){return!a()||e.finalSource!==c.SERVER})}),D=D.filter(function(e){return 0!==e.bids.length}));return y.forEach(function(e){var a=S.getUniqueIdentifierStr(),c={bidderCode:e,auctionId:n,bidderRequestId:a,bids:o({bidderCode:e,auctionId:n,bidderRequestId:a,adUnits:S.deepClone(U),labels:i,src:"client"}),auctionStart:t,timeout:r,refererInfo:b},s=E[e];s||S.logError("Trying to make a request for bidder that does not exist: ".concat(e)),s&&c.bids&&0!==c.bids.length&&u.push(c)}),C.getConsentData()&&u.forEach(function(e){e.gdprConsent=C.getConsentData()}),O.getConsentData()&&u.forEach(function(e){e.uspConsent=O.getConsentData()}),u},x.callBids=function(e,t,n,i,o,a,u){if(t.length){var c=r(t.reduce(function(e,t){return e[Number(void 0!==t.src&&t.src===A.S2S.SRC)].push(t),e},[[],[]]),2),d=c[0],f=c[1];if(f.length){var l=Object(p.b)(a,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),h=j.bidders,b=E[j.adapter],m=f[0].tid,y=f[0].adUnitsS2SCopy;if(b){var _={tid:m,ad_units:y};if(_.ad_units.length){var x=f.map(function(e){return e.start=Object(s.timestamp)(),i.bind(e)}),I=_.ad_units.reduce(function(e,t){return e.concat((t.bids||[]).reduce(function(e,t){return e.concat(t.bidder)},[]))},[]);S.logMessage("CALLING S2S HEADER BIDDERS ==== ".concat(h.filter(function(e){return v()(I,e)}).join(","))),f.forEach(function(e){w.emit(A.EVENTS.BID_REQUESTED,e)}),b.callBids(_,f,function(e,t){var r=Object(s.getBidderRequest)(f,t.bidderCode,e);r&&n.call(r,e,t)},function(){return x.forEach(function(e){return e()})},l)}}else S.logError("missing "+j.adapter)}d.forEach(function(e){e.start=Object(s.timestamp)();var t=E[e.bidderCode];S.logMessage("CALLING BIDDER ======= ".concat(e.bidderCode)),w.emit(A.EVENTS.BID_REQUESTED,e);var r=Object(p.b)(a,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0);g.b.runWithBidder(e.bidderCode,s.bind.call(t.callBids,t,e,n.bind(e),i.bind(e),r,u,g.b.callbackWithBidder(e.bidderCode)))})}else S.logWarn("callBids executed with no bidRequests. Were they filtered by labels or sizing?")},x.videoAdapters=[],x.registerBidAdapter=function(e,t){var n=(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,r=void 0===n?[]:n;e&&t?"function"==typeof e.callBids?(E[t]=e,v()(r,"video")&&x.videoAdapters.push(t),v()(r,"native")&&f.e.push(t)):S.logError("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):S.logError("bidAdaptor or bidderCode not specified")},x.aliasBidAdapter=function(e,t){var n,r;if(void 0===E[t]){var o=E[e];if(void 0===o){var a=g.b.getConfig("s2sConfig"),u=a&&a.bidders;u&&v()(u,t)?I[t]=e:S.logError('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}else try{var c,s=(n=e,r=[],v()(x.videoAdapters,n)&&r.push("video"),v()(f.e,n)&&r.push("native"),r);if(o.constructor.prototype!=Object.prototype)(c=new o.constructor).setBidderCode(t);else{var d=o.getSpec();c=Object(l.newBidder)(i({},d,{code:t})),I[t]=e}x.registerBidAdapter(c,t,{supportedMediaTypes:s})}catch(t){S.logError(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else S.logMessage('alias name "'+t+'" has been already specified.')},x.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,T[n]=t):S.logError('Prebid Error: Analytics adaptor error for analytics "'.concat(n,'"n analytics adapter must implement an enableAnalytics() function')):S.logError("Prebid Error: analyticsAdapter or analyticsCode not specified")},x.enableAnalytics=function(e){S.isArray(e)||(e=[e]),S._each(e,function(e){var t=T[e.provider];t?t.enableAnalytics(e):S.logError("Prebid Error: no analytics adapter found in registry forn ".concat(e.provider,"."))})},x.getBidAdapter=function(e){return E[e]},x.callTimedOutBidders=function(e,t,n){t=t.map(function(t){return t.params=S.getUserConfiguredParams(e,t.adUnitCode,t.bidder),t.timeout=n,t}),t=S.groupBy(t,"bidder"),Object.keys(t).forEach(function(e){u(e,"onTimeout",t[e])})},x.callBidWonBidder=function(e,t,n){t.params=S.getUserConfiguredParams(n,t.adUnitCode,t.bidder),y.a.incrementBidderWinsCounter(t.adUnitCode,t.bidder),u(e,"onBidWon",t)},x.callSetTargetingBidder=function(e,t){u(e,"onSetTargeting",t)},t.default=x},70:function(e,t,n){var r=n(36),i=n(14)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},71:function(e,t,n){function r(e){u(e,i,{value:{i:"O"+ ++c,w:{}}})}var i=n(47)("meta"),o=n(17),a=n(29),u=n(19).f,c=0,s=Object.isExtensible||function(){return!0},d=!n(35)(function(){return s(Object.preventExtensions({}))}),f=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==(void 0===e?"undefined":_typeof(e))?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!s(e))return"F";if(!t)return"E";r(e)}return e[i].i},getWeak:function(e,t){if(!a(e,i)){if(!s(e))return!0;if(!t)return!1;r(e)}return e[i].w},onFreeze:function(e){return d&&f.NEED&&s(e)&&!a(e,i)&&r(e),e}}},72:function(e,t,n){var r=n(17);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},73:function(e,t,n){n(61),n(112),e.exports=n(16).Array.from},74:function(e,t,n){"use strict";t.a=function(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}},75:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)})(e)}function i(e){return e.reduce(function(e,t){if("object"===r(t)&&"string"==typeof t.mediaQuery){var n=!1;try{n=Object(a.getWindowTop)().matchMedia(t.mediaQuery).matches}catch(e){Object(a.logWarn)("Unfriendly iFrame blocks sizeConfig from being correctly evaluated"),n=matchMedia(t.mediaQuery).matches}n&&(Array.isArray(t.sizesSupported)&&(e.shouldFilter=!0),["labels","sizesSupported"].forEach(function(n){return(t[n]||[]).forEach(function(t){return e[n][t]=!0})}))}else Object(a.logWarn)('sizeConfig rule missing required property "mediaQuery"');return e},{labels:{},sizesSupported:{},shouldFilter:!1})}t.a=function(e,t){return e.labelAll?{labelAll:!0,labels:e.labelAll,activeLabels:t}:{labelAll:!1,labels:e.labelAny,activeLabels:t}},t.c=function(e){var t=i(1<arguments.length&&void 0!==arguments[1]?arguments[1]:s);return!t.shouldFilter||!!t.sizesSupported[e]},t.b=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.labels,n=void 0===t?[]:t,r=e.labelAll,o=void 0!==r&&r,u=e.activeLabels,d=void 0===u?[]:u,f=1<arguments.length?arguments[1]:void 0,l=2<arguments.length?arguments[2]:void 0,p=i(3<arguments.length&&void 0!==arguments[3]?arguments[3]:s);f=Object(a.isPlainObject)(f)?Object(a.deepClone)(f):l?{banner:{sizes:l}}:{};var g=Object(a.deepAccess)(f,"banner.sizes");p.shouldFilter&&g&&(f.banner.sizes=g.filter(function(e){return p.sizesSupported[e]}));var h=Object.keys(f),v={active:h.every(function(e){return"banner"!==e})||h.some(function(e){return"banner"===e})&&0<Object(a.deepAccess)(f,"banner.sizes.length")&&(0===n.length||!o&&(n.some(function(e){return p.labels[e]})||n.some(function(e){return c()(d,e)}))||o&&n.reduce(function(e,t){return e?p.labels[t]||c()(d,t):e},!0)),mediaTypes:f};return g&&g.length!==f.banner.sizes.length&&(v.filterResults={before:g,after:f.banner.sizes}),v};var o=n(3),a=n(0),u=n(10),c=n.n(u),s=[];o.b.getConfig("sizeConfig",function(e){return t=e.sizeConfig,void(s=t);var t})},76:function(e,t,n){"use strict";function r(e,t,n){var r,i,a,u=(i=n,a=o[r=e]=o[r]||{bidders:{}},i?a.bidders[i]=a.bidders[i]||{}:a);return u[t]=(u[t]||0)+1,u[t]}n.d(t,"a",function(){return a});var i=n(0),o={},a={incrementRequestsCounter:function(e){return r(e,"requestsCounter")},incrementBidderRequestsCounter:function(e,t){return r(e,"requestsCounter",t)},incrementBidderWinsCounter:function(e,t){return r(e,"winsCounter",t)},getRequestsCounter:function(e){return Object(i.deepAccess)(o,"".concat(e,".requestsCounter"))||0},getBidderRequestsCounter:function(e,t){return Object(i.deepAccess)(o,"".concat(e,".bidders.").concat(t,".requestsCounter"))||0},getBidderWinsCounter:function(e,t){return Object(i.deepAccess)(o,"".concat(e,".bidders.").concat(t,".winsCounter"))||0}}},77:function(e,t,n){n(156),e.exports=n(16).Array.findIndex},78:function(e,t,n){"use strict";function r(e){var t,n,r,i={type:"xml",value:e.vastXml?e.vastXml:(t=e.vastUrl,n=e.vastImpUrl,r=n?""):"",'n n n prebid.org wrappern n ").concat(r,"n n n n ")),ttlseconds:Number(e.ttl)};return o.b.getConfig("cache.vasttrack")&&(i.bidder=e.bidder,i.bidid=e.requestId),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(i.key=e.customCacheKey),i}t.b=function(e,t){var n={puts:e.map(r)};Object(i.a)(o.b.getConfig("cache.url"),function(e){return{success:function(t){var n;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: ".concat(t,": ").concat(JSON.stringify(n))),[])}}}(t),JSON.stringify(n),{contentType:"text/plain",withCredentials:!0})},t.a=function(e){return"".concat(o.b.getConfig("cache.url"),"?uuid=").concat(e)};var i=n(4),o=n(3)},79:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e,t,n){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=n)}function a(e){var t=g.a[e]().filter(E.bind.call(d.adUnitsFilter,this,g.a.getAdUnitCodes())),n=g.a.getLastAuctionId();return t.map(function(e){return e.adUnitCode}).filter(d.uniques).map(function(e){return t.filter(function(t){return t.auctionId===n&&t.adUnitCode===e})}).filter(function(e){return e&&e[0]&&e[0].adUnitCode}).map(function(e){return t={},n=e[0].adUnitCode,r={bids:e},n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t;var t,n,r}).reduce(function(e,t){return i(e,t)},{})}function u(e){var t=e.reason,n=e.message,r=e.bid,i=e.id,o={reason:t,message:n};r&&(o.bid=r),i&&(o.adId=i),E.logError(n),j.emit(U,o)}function c(e){e.forEach(function(e){if(void 0===e.called)try{e.call(), e.called=!0}catch(e){E.logError("Error processing command :","prebid.js",e)}})}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"checkAdUnitSetup",function(){return L});var s=n(22),d=n(0),f=n(159),l=n(32),p=n(3),g=n(23),h=n(34),v=n(13),b=n(160),m=n(10),y=n.n(m),_=n(76),S=n(11),A=n(27),w=Object(s.a)(),x=n(5),E=n(0),I=n(7).default,j=n(8),T=l.a.triggerUserSyncs,C=x.EVENTS,O=C.ADD_AD_UNITS,k=C.BID_WON,R=C.REQUEST_BIDS,D=C.SET_TARGETING,U=C.AD_RENDER_FAILED,B=x.AD_RENDER_FAILED_REASON,P=B.PREVENT_WRITING_ON_MAIN_DOCUMENT,N=B.NO_AD,z=B.EXCEPTION,M=B.CANNOT_FIND_AD,q=B.MISSING_DOC_OR_ADID,W={bidWon:function(e){var t=g.a.getBidsRequested().map(function(e){return e.bids.map(function(e){return e.adUnitCode})}).reduce(d.flatten).filter(d.uniques);return!!E.contains(t,e)||void E.logError('The "'+e+'" placement is not defined.')}};Object(b.a)(),w.bidderSettings=w.bidderSettings||{},w.libLoaded=!0,w.version="v3.1.0",E.logInfo("Prebid.js v3.1.0 loaded"),w.adUnits=w.adUnits||[],w.triggerUserSyncs=T;var L=Object(v.b)("sync",function(e){function t(e,t){var n=[];return E.isArray(e)&&(t?e.length===t:0<e.length)&&(e.every(function(e){return Object(d.isArrayOfNums)(e,2)})?n=e:Object(d.isArrayOfNums)(e,2)&&n.push(e)),n}return e.filter(function(e){var n=e.mediaTypes;if(!n||0===Object.keys(n).length)return E.logError("Detected adUnit.code '".concat(e.code,"' did not have a 'mediaTypes' object defined. This is a required field for the auction, so this adUnit has been removed.")),!1;if(n.banner){var r=t(n.banner.sizes);0<r.length?(n.banner.sizes=r,e.sizes=r):(E.logError("Detected a mediaTypes.banner object without a proper sizes field. Please ensure the sizes are listed like: [[300, 250], ...]. Removing invalid mediaTypes.banner object from request."),delete e.mediaTypes.banner)}if(n.video){var i=n.video;if(i.playerSize){var o="number"==typeof i.playerSize[0]?2:1,a=t(i.playerSize,o);0<a.length?e.sizes=i.playerSize=a:(E.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(n.native){var u=n.native;u.image&&u.image.sizes&&!Array.isArray(u.image.sizes)&&(E.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),u.image&&u.image.aspect_ratios&&!Array.isArray(u.image.aspect_ratios)&&(E.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),u.icon&&u.icon.sizes&&!Array.isArray(u.icon.sizes)&&(E.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)}return!0})},"checkAdUnitSetup");w.getAdserverTargetingForAdUnitCodeStr=function(e){if(E.logInfo("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=w.getAdserverTargetingForAdUnitCode(e);return E.transformAdServerTargetingObj(t)}E.logMessage("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},w.getAdserverTargetingForAdUnitCode=function(e){return w.getAdserverTargeting(e)[e]},w.getAdserverTargeting=function(e){return E.logInfo("Invoking pbjs.getAdserverTargeting",arguments),h.a.getAllTargeting(e)},w.getNoBids=function(){return E.logInfo("Invoking pbjs.getNoBids",arguments),a("getNoBids")},w.getBidResponses=function(){return E.logInfo("Invoking pbjs.getBidResponses",arguments),a("getBidsReceived")},w.getBidResponsesForAdUnitCode=function(e){return{bids:g.a.getBidsReceived().filter(function(t){return t.adUnitCode===e})}},w.setTargetingForGPTAsync=function(e,t){if(E.logInfo("Invoking pbjs.setTargetingForGPTAsync",arguments),Object(d.isGptPubadsDefined)()){var n=h.a.getAllTargeting(e);h.a.resetPresetTargeting(e),h.a.setTargetingForGPT(n,t),Object.keys(n).forEach(function(e){Object.keys(n[e]).forEach(function(t){"hb_adid"===t&&g.a.setStatusForBids(n[e][t],x.BID_STATUS.BID_TARGETING_SET)})}),j.emit(D,n)}else E.logError("window.googletag is not defined on the page")},w.setTargetingForAst=function(e){E.logInfo("Invoking pbjs.setTargetingForAn",arguments),h.a.isApntagDefined()?(h.a.setTargetingForAst(e),j.emit(D,h.a.getAllTargeting())):E.logError("window.apntag is not defined on the page")},w.renderAd=function(e,t){if(E.logInfo("Invoking pbjs.renderAd",arguments),E.logMessage("Calling renderAd with adId :"+t),e&&t)try{var n=g.a.findBidByAdId(t);if(n){n.ad=E.replaceAuctionPrice(n.ad,n.cpm),n.adUrl=E.replaceAuctionPrice(n.adUrl,n.cpm),g.a.addWinningBid(n),j.emit(k,n);var r=n.height,i=n.width,a=n.ad,c=n.mediaType,s=n.adUrl,d=n.renderer,f=document.createComment("Creative ".concat(n.creativeId," served by ").concat(n.bidder," Prebid.js Header Bidding"));if(E.insertElement(f,e,"body"),Object(S.c)(d))Object(S.b)(d,n);else if(e===document&&!E.inIframe()||"video"===c){var l="Error trying to write ad. Ad render call ad id ".concat(t," was prevented from writing to the main document.");u({reason:P,message:l,bid:n,id:t})}else if(a){if(navigator.userAgent&&-1<navigator.userAgent.toLowerCase().indexOf("firefox/")){var p=navigator.userAgent.toLowerCase().match(/firefox/([d.]+)/)[1];p&&parseInt(p,10)<67&&e.open("text/html","replace")}e.write(a),e.close(),o(e,i,r),E.callBurl(n)}else if(s){var h=E.createInvisibleIframe();h.height=r,h.width=i,h.style.display="inline",h.style.overflow="hidden",h.src=s,E.insertElement(h,e,"body"),o(e,i,r),E.callBurl(n)}else{var v="Error trying to write ad. No ad for bid response id: ".concat(t);u({reason:N,message:v,bid:n,id:t})}}else{var b="Error trying to write ad. Cannot find ad by given id : ".concat(t);u({reason:M,message:b,id:t})}}catch(e){var m="Error trying to write ad Id :".concat(t," to the page:").concat(e.message);u({reason:z,message:m,id:t})}else{var y="Error trying to write ad Id :".concat(t," to the page. Missing document or adId");u({reason:q,message:y,id:t})}},w.removeAdUnit=function(e){E.logInfo("Invoking pbjs.removeAdUnit",arguments),e?(E.isArray(e)?e:[e]).forEach(function(e){for(var t=w.adUnits.length-1;0<=t;t--)w.adUnits[t].code===e&&w.adUnits.splice(t,1)}):w.adUnits=[]},w.requestBids=Object(v.b)("async",function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,n=e.timeout,r=e.adUnits,i=e.adUnitCodes,o=e.labels,a=e.auctionId;j.emit(R);var u=n||p.b.getConfig("bidderTimeout");if(r=r||w.adUnits,E.logInfo("Invoking pbjs.requestBids",arguments),i&&i.length?r=r.filter(function(e){return y()(i,e.code)}):i=r&&r.map(function(e){return e.code}),(r=L(r)).forEach(function(e){var t=Object.keys(e.mediaTypes||{banner:"banner"}),n=e.bids.map(function(e){return e.bidder}),r=I.bidderRegistry,i=p.b.getConfig("s2sConfig"),o=i&&i.bidders,a=o?n.filter(function(e){return!y()(o,e)}):n;e.transactionId=E.generateUUID(),a.forEach(function(n){var i=r[n],o=i&&i.getSpec&&i.getSpec(),a=o&&o.supportedMediaTypes||["banner"];t.some(function(e){return y()(a,e)})?_.a.incrementBidderRequestsCounter(e.code,n):(E.logWarn(E.unsupportedBidderMessage(e,n)),e.bids=e.bids.filter(function(e){return e.bidder!==n}))}),_.a.incrementRequestsCounter(e.code)}),r&&0!==r.length){var c=g.a.createAuction({adUnits:r,adUnitCodes:i,callback:t,cbTimeout:u,labels:o,auctionId:a}),s=r.length;return 15<s&&E.logInfo("Current auction ".concat(c.getAuctionId()," contains ").concat(s," adUnits."),r),i.forEach(function(e){return h.a.setLatestAuctionForAdUnit(e,c.getAuctionId())}),c.callBids(),c}if(E.logMessage("No adUnits configured. No bids requested."),"function"==typeof t)try{t()}catch(e){E.logError("Error executing bidsBackHandler",null,e)}}),w.addAdUnits=function(e){E.logInfo("Invoking pbjs.addAdUnits",arguments),E.isArray(e)?w.adUnits.push.apply(w.adUnits,e):"object"===r(e)&&w.adUnits.push(e),j.emit(O)},w.onEvent=function(e,t,n){E.logInfo("Invoking pbjs.onEvent",arguments),E.isFn(t)?!n||W[e].call(null,n)?j.on(e,t,n):E.logError('The id provided is not valid for event "'+e+'" and no handler was set.'):E.logError('The event handler provided is not a function and was not set on event "'+e+'".')},w.offEvent=function(e,t,n){E.logInfo("Invoking pbjs.offEvent",arguments),n&&!W[e].call(null,n)||j.off(e,t,n)},w.registerBidAdapter=function(e,t){E.logInfo("Invoking pbjs.registerBidAdapter",arguments);try{I.registerBidAdapter(e(),t)}catch(e){E.logError("Error registering bidder adapter : "+e.message)}},w.registerAnalyticsAdapter=function(e){E.logInfo("Invoking pbjs.registerAnalyticsAdapter",arguments);try{I.registerAnalyticsAdapter(e)}catch(e){E.logError("Error registering analytics adapter : "+e.message)}},w.createBid=function(e){return E.logInfo("Invoking pbjs.createBid",arguments),Object(A.a)(e)},w.enableAnalytics=function(e){e&&!E.isEmpty(e)?(E.logInfo("Invoking pbjs.enableAnalytics for: ",e),I.enableAnalytics(e)):E.logError("pbjs.enableAnalytics should be called with option {}")},w.aliasBidder=function(e,t){E.logInfo("Invoking pbjs.aliasBidder",arguments),e&&t?I.aliasBidAdapter(e,t):E.logError("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},w.getAllWinningBids=function(){return g.a.getAllWinningBids()},w.getAllPrebidWinningBids=function(){return g.a.getBidsReceived().filter(function(e){return e.status===x.BID_STATUS.BID_TARGETING_SET})},w.getHighestCpmBids=function(e){return h.a.getWinningBids(e)},w.markWinningBidAsUsed=function(e){var t=[];e.adUnitCode&&e.adId?t=g.a.getBidsReceived().filter(function(t){return t.adId===e.adId&&t.adUnitCode===e.adUnitCode}):e.adUnitCode?t=h.a.getWinningBids(e.adUnitCode):e.adId?t=g.a.getBidsReceived().filter(function(t){return t.adId===e.adId}):E.logWarn("Inproper usage of markWinningBidAsUsed. It'll need an adUnitCode and/or adId to function."),0<t.length&&(t[0].status=x.BID_STATUS.RENDERED)},w.getConfig=p.b.getConfig,w.setConfig=p.b.setConfig,w.setBidderConfig=p.b.setBidderConfig,w.que.push(function(){return Object(f.a)()}),w.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){E.logError("Error processing command :",e.message,e.stack)}else E.logError("Commands written into pbjs.cmd.push must be wrapped in a function")},w.que.push=w.cmd.push,w.processQueue=function(){v.b.ready(),c(w.que),c(w.cmd)},t.default=w},8:function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i,o,a=n(0),u=n(5),c=Array.prototype.slice,s=Array.prototype.push,d=a._map(u.EVENTS,function(e){return e}),f=u.EVENT_ID_PATHS,l=[];e.exports=(i={},(o={}).on=function(e,t,n){if(o=e,a.contains(d,o)){var r=i[e]||{que:[]};n?(r[n]=r[n]||{que:[]},r[n].que.push(t)):r.que.push(t),i[e]=r}else a.logError("Wrong event name : "+e+" Valid event names :"+d);var o},o.emit=function(e){!function(e,t){a.logMessage("Emitting event for: "+e);var n=t[0]||{},r=n[f[e]],o=i[e]||{que:[]},u=a._map(o,function(e,t){return t}),c=[];l.push({eventType:e,args:n,id:r}),r&&a.contains(u,r)&&s.apply(c,o[r].que),s.apply(c,o.que),a._each(c,function(e){if(e)try{e.apply(null,t)}catch(e){a.logError("Error executing handler:","events.js",e)}})}(e,c.call(arguments,1))},o.off=function(e,t,n){var r=i[e];a.isEmpty(r)||a.isEmpty(r.que)&&a.isEmpty(r[n])||n&&(a.isEmpty(r[n])||a.isEmpty(r[n].que))||(n?a._each(r[n].que,function(e){var i=r[n].que;e===t&&i.splice(a.indexOf.call(i,e),1)}):a._each(r.que,function(e){var n=r.que;e===t&&n.splice(a.indexOf.call(n,e),1)}),i[e]=r)},o.get=function(){return i},o.getEvents=function(){var e=[];return a._each(l,function(t){var n=r({},t);e.push(n)}),e},o)},82:function(e,t,n){"use strict";var r=n(15),i=n(44)(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),n(39)(o)},83:function(e,t,n){e.exports=!n(21)&&!n(35)(function(){return 7!=Object.defineProperty(n(55)("div"),"a",{get:function(){return 7}}).a})},84:function(e,t,n){var r=n(17);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")}},85:function(e,t,n){var r=n(86);e.exports=function(e,t){return new(r(e))(t)}},86:function(e,t,n){var r=n(17),i=n(87),o=n(14)("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}},87:function(e,t,n){var r=n(36);e.exports=Array.isArray||function(e){return"Array"==r(e)}},88:function(e,t,n){"use strict";var r=n(15),i=n(59)(!0);r(r.P,"Array",{includes:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),n(39)("includes")},89:function(e,t,n){var r=n(46),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},9:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){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||null==u.return||u.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return e?e.replace(/^?/,"").split("&").reduce(function(e,t){var n=r(t.split("="),2),i=n[0],o=n[1];return/[]$/.test(i)?(e[i=i.replace("[]","")]=e[i]||[],e[i].push(o)):e[i]=o||"",e},{}):{}}function o(e){return Object.keys(e).map(function(t){return Array.isArray(e[t])?e[t].map(function(e){return"".concat(t,"[]=").concat(e)}).join("&"):"".concat(t,"=").concat(e[t])}).join("&")}t.d=i,t.b=o,t.c=function(e,t){var n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);var r=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!/)/,"/"),search:r?n.search:i(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}},t.a=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(o(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}},90:function(e,t){},91:function(e,t,n){var r=n(46),i=n(37);e.exports=function(e){return function(t,n){var o,a,u=String(i(t)),c=r(n),s=u.length;return c<0||s<=c?e?"":void 0:(o=u.charCodeAt(c))<55296||56319<o||c+1===s||(a=u.charCodeAt(c+1))<56320||57343<a?e?u.charAt(c):o:e?u.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},92:function(e,t,n){e.exports=n(20)},93:function(e,t,n){"use strict";var r=n(62),i=n(43),o=n(51),a={};n(20)(a,n(14)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},94:function(e,t,n){var r=n(19),i=n(28),o=n(95);e.exports=n(21)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),u=a.length,c=0;cc;)r(u,n=t[c++])&&(~o(s,n)||s.push(n));return s}},97:function(e,t,n){var r=n(18).document;e.exports=r&&r.documentElement},98:function(e,t,n){var r=n(29),i=n(45),o=n(50)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},99:function(e,t,n){n(100);for(var r=n(18),i=n(20),o=n(30),a=n(14)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var s=u[c],d=r[s],f=d&&d.prototype;f&&!f[a]&&i(f,a,s),o[s]=o.Array}}}),pbjsChunk([197],{181:function(e,t,n){e.exports=n(182)},182:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)})(e)}function i(){if(_&&"object"===r(window[y])&&"function"==typeof window[y].getInstance){for(var e=0;e<m.length;e++)m[e].call();m.push=function(e){e.call()},_=!1}f.logMessage("event count sent to Amplitude: "+S)}function o(e){var t={};return w.forEach(function(n){n in e&&(t[n]=e[n])}),t}function a(e){e&&e.bidderCode&&m.push(function(){var t=o(e);S++,window[y].logEvent("Prebid.js Requests",t)}),i()}function u(e){e&&e.bidderCode&&m.push(function(){if(0<e.cpm){var t=o(e);S++,window[y].logEvent("Prebid.js Bids",t)}}),i()}function c(e){m.push(function(){f._each(e,function(e){var t=o(e);S++,window[y].logEvent("Prebid.js Timeouts",t)})}),i()}function s(e){m.push(function(){var t=o(e);S++,window[y].logEvent("Prebid.js Wins",t)}),i()}Object.defineProperty(t,"__esModule",{value:!0});var d=n(8),f=n(0),l=n(5),p=n(7).default,g=l.EVENTS.BID_REQUESTED,h=l.EVENTS.BID_TIMEOUT,v=l.EVENTS.BID_RESPONSE,b=l.EVENTS.BID_WON,m=[],y=null,_=!0,S=0,A=!0,w=["bidder","bidderCode","size","cpm","statusMessage","timeToRespond","adUnitCode"],x={};x.enableAnalytics=function(e){var t=e.provider,n=e.options;if(y=t||"amplitude",A=void 0===n||void 0===n.sampling||Math.random()<parseFloat(n.sampling),n&&void 0!==n.global&&(y=n.global),A){var i=d.getEvents();f._each(i,function(e){if("object"===r(e)){var t=e.args;e.eventType===g?a(t):e.eventType===v?u(t):e.eventType===h?c(t):e.eventType===b&&s(t)}}),d.on(g,function(e){a(e)}),d.on(v,function(e){u(e)}),d.on(h,function(e){c(e)}),d.on(b,function(e){s(e)})}else f.logMessage("Prebid.js amplitude analytics disabled by sampling");this.enableAnalytics=function(){return f.logMessage("Analytics adapter already enabled, unnecessary call to `enableAnalytics`.")}},p.registerAnalyticsAdapter({adapter:x,code:"amplitude"}),t.default=x}},[181]),pbjsChunk([194],{191:function(e,t,n){e.exports=n(192)},192:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){return!!(_.isArray(e)&&0<e.length)}function u(e){a(e.value)&&""===e.value[0]&&delete e.value}function c(e){var t=e.match(z),n=null!=t&&1<=t.length,r=e.match(M),i=null!=r&&1<=r.length;return e.startsWith(N)&&i&&n}function s(e){var t,n,r={};if(r.sizes=d(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=d(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)){var o=_.transformBidderParamKeywords(e.params.keywords);0<o.length&&o.forEach(u),r.keywords=o}if((e.mediaType===w.c||_.deepAccess(e,"mediaTypes.".concat(w.c)))&&(r.ad_types.push(w.c),0===r.sizes.length&&(r.sizes=d([1,1])),e.nativeParams)){var a=(t=e.nativeParams,n={},Object.keys(t).forEach(function(e){var r=P[e]&&P[e].serverName||P[e]||e,o=P[e]&&P[e].requiredParams;if(n[r]=i({},o,t[e]),(r===P.image.serverName||r===P.icon.serverName)&&n[r].sizes){var a=n[r].sizes;(_.isArrayOfNums(a)||_.isArray(a)&&0<a.length&&a.every(function(e){return _.isArrayOfNums(e)}))&&(n[r].sizes=d(n[r].sizes))}r===P.privacyLink&&(n.privacy_supported=!0)}),n);r[w.c]={layouts:[a]}}var c=_.deepAccess(e,"mediaTypes.".concat(w.d)),s=_.deepAccess(e,"mediaTypes.video.context");e.mediaType!==w.d&&!c||r.ad_types.push(w.d),(e.mediaType===w.d||c&&"outstream"!==s)&&(r.require_asset_url=!0),e.params.video&&(r.video={},Object.keys(e.params.video).filter(function(e){return T()(R,e)}).forEach(function(t){return r.video[t]=e.params.video[t]})),e.renderer&&(r.video=i({},r.video,{custom_renderer_present:!0}));var f=I()(x.a.getAdUnits(),function(t){return e.transactionId===t.transactionId});return f&&f.mediaTypes&&f.mediaTypes.banner&&r.ad_types.push(w.b),0===r.ad_types.length&&delete r.ad_types,r}function d(e){var t=[],n={};if(_.isArray(e)&&2===e.length&&!_.isArray(e[0]))n.width=parseInt(e[0],10),n.height=parseInt(e[1],10),t.push(n);else if("object"===r(e))for(var i=0;i<e.length;i++){var o=e[i];(n={}).width=parseInt(o[0],10),n.height=parseInt(o[1],10),t.push(n)}return t}function f(e){return!!e.params.user}function l(e){return!!parseInt(e.params.member,10)}function p(e){if(e.params)return!!e.params.app}function g(e){return e.params&&e.params.app?!!e.params.app.id:!!e.params.app}function h(e){return!!e.debug}function v(e){return e.mediaTypes&&e.mediaTypes.video&&e.mediaTypes.video.context===w.a}function b(e,t,n){_.isEmpty(e.video)&&(e.video={}),e.video[t]=n}function m(e){e.renderer.push(function(){window.ANOutstreamVideo.renderAd({tagId:e.adResponse.tag_id,sizes:[e.getSize().split("x")],targetId:e.adUnitCode,uuid:e.adResponse.uuid,adResponse:e.adResponse,rendererOptions:e.renderer.getConfig()},function(e,t,n){e.renderer.handleVideoEvent({id:t,eventName:n})}.bind(null,e))})}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"spec",function(){return q});var y=n(11),_=n(0),S=n(3),A=n(1),w=n(2),x=n(23),E=n(12),I=n.n(E),j=n(10),T=n.n(j),C=n(33),O="appnexus",k="https://ib.adnxs.com/ut/v3/prebid",R=["id","mimes","minduration","maxduration","startdelay","skippable","playback_method","frameworks"],D=["age","externalUid","segments","gender","dnt","language"],U=["geo","device_id"],B=["enabled","dongle","member_id","debug_timeout"],P={body:"description",body2:"desc2",cta:"ctatext",image:{serverName:"main_image",requiredParams:{required:!0}},icon:{serverName:"icon",requiredParams:{required:!0}},sponsoredBy:"sponsored_by",privacyLink:"privacy_link",salePrice:"saleprice",displayUrl:"displayurl"},N="<script",z=///cdn.adnxs.com/v/,M="trk.js",q={code:O,aliases:["appnexusAst","brealtime","emxdigital","pagescience","defymedia","gourmetads","matomy","featureforward","oftmedia","districtm","adasta"],supportedMediaTypes:[w.b,w.d,w.c],isBidRequestValid:function(e){return!!(e.params.placementId||e.params.member&&e.params.invCode)},buildRequests:function(e,t){var n=e.map(s),r=I()(e,f),i={};!0===S.b.getConfig("coppa")&&(i={coppa:!0}),r&&Object.keys(r.params.user).filter(function(e){return T()(D,e)}).forEach(function(e){return i[e]=r.params.user[e]});var a,u=I()(e,p);u&&u.params&&u.params.app&&(a={},Object.keys(u.params.app).filter(function(e){return T()(U,e)}).forEach(function(e){return a[e]=u.params.app[e]}));var c,d=I()(e,g);d&&d.params&&u.params.app&&u.params.app.id&&(c={appid:d.params.app.id});var m={},y={},A=_.getCookie("apn_prebid_debug")||null;if(A)try{m=JSON.parse(A)}catch(e){_.logError("AppNexus Debug Auction Cookie Error:nn"+e)}else{var w=I()(e,h);w&&w.debug&&(m=w.debug)}m&&m.enabled&&Object.keys(m).filter(function(e){return T()(B,e)}).forEach(function(e){y[e]=m[e]});var x=I()(e,l),E=x?parseInt(x.params.member,10):0,j=e[0].schain,C={tags:o(n),user:i,sdk:{source:"pbjs",version:"3.1.0"},schain:j};if(0<E&&(C.member_id=E),u&&(C.device=a),d&&(C.app=c),S.b.getConfig("adpod.brandCategoryExclusion")&&(C.brand_category_uniqueness=!0),y.enabled&&(C.debug=y,_.logInfo("AppNexus Debug Auction Settings:nn"+JSON.stringify(y,null,4))),t&&t.gdprConsent&&(C.gdpr_consent={consent_string:t.gdprConsent.consentString,consent_required:t.gdprConsent.gdprApplies}),t&&t.uspConsent&&(C.us_privacy=t.uspConsent),t&&t.refererInfo){var R={rd_ref:encodeURIComponent(t.refererInfo.referer),rd_top:t.refererInfo.reachedTop,rd_ifs:t.refererInfo.numIframes,rd_stk:t.refererInfo.stack.map(function(e){return encodeURIComponent(e)}).join(",")};C.referrer_detection=R}I()(e,v)&&e.filter(v).forEach(function(e){var t=function(e,t){var n=t.mediaTypes.video,r=n.durationRangeSec,i=n.requireExactDuration,a=function(e){var t=e.adPodDurationSec,n=e.durationRangeSec,r=e.requireExactDuration,i=_.getMinValueFromArray(n),o=Math.floor(t/i);return r?Math.max(o,n.length):o}(t.mediaTypes.video),u=_.getMaxValueFromArray(r),c=e.filter(function(e){return e.uuid===t.bidId}),s=_.fill.apply(_,o(c).concat([a]));if(i){var d=Math.ceil(a/r.length),f=_.chunk(s,d);r.forEach(function(e,t){f[t].map(function(t){b(t,"minduration",e),b(t,"maxduration",e)})})}else s.map(function(e){return b(e,"maxduration",u)});return s}(n,e),r=C.tags.filter(function(t){return t.uuid!==e.bidId});C.tags=[].concat(o(r),o(t))});var P=_.deepAccess(e[0],"userId.criteortus.".concat(O,".userid"));if(P){var N=[];N.push({provider:"criteo",user_id:P}),C.tpuids=N}return function(e,t){var n=[];if(15<e.tags.length){var r=_.deepClone(e);_.chunk(e.tags,15).forEach(function(e){r.tags=e;var i=JSON.stringify(r);n.push({method:"POST",url:k,data:i,bidderRequest:t})})}else{var i=JSON.stringify(e);n={method:"POST",url:k,data:i,bidderRequest:t}}return n}(C,t)},interpretResponse:function(e,t){var n=this,r=t.bidderRequest;e=e.body;var o=[];if(!e||e.error){var a="in response for ".concat(r.bidderCode," adapter");return e&&e.error&&(a+=": ".concat(e.error)),_.logError(a),o}if(e.tags&&e.tags.forEach(function(e){var t,a,u=(t=e)&&t.ads&&t.ads.length&&I()(t.ads,function(e){return e.rtb});if(u&&0!==u.cpm&&T()(n.supportedMediaTypes,u.ad_type)){var c=function(e,t,n){var r=_.getBidRequest(e.uuid,[n]),o={requestId:e.uuid,cpm:t.cpm,creativeId:t.creative_id,dealId:t.deal_id,currency:"USD",netRevenue:!0,ttl:300,adUnitCode:r.adUnitCode,appnexus:{buyerMemberId:t.buyer_member_id,dealPriority:t.deal_priority,dealCode:t.deal_code}};if(t.advertiser_id&&(o.meta=i({},o.meta,{advertiserId:t.advertiser_id})),t.rtb.video)switch(i(o,{width:t.rtb.video.player_width,height:t.rtb.video.player_height,vastImpUrl:t.notify_url,ttl:3600}),_.deepAccess(r,"mediaTypes.video.context")){case w.a:var a=Object(A.getIabSubCategory)(r.bidder,t.brand_category_id);o.meta=i({},o.meta,{iabSubCatId:a});var u=t.rtb.dealPriority;o.video={context:w.a,durationSeconds:Math.floor(t.rtb.video.duration_ms/1e3),dealTier:u},o.vastUrl=t.rtb.video.asset_url;break;case C.b:if(o.adResponse=e,o.adResponse.ad=o.adResponse.ads[0],o.adResponse.ad.video=o.adResponse.ad.rtb.video,o.vastXml=t.rtb.video.content,t.renderer_url){var c=I()(n.bids,function(t){return t.bidId===e.uuid}),s=_.deepAccess(c,"renderer.options");o.renderer=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},r=y.a.install({id:t.renderer_id,url:t.renderer_url,config:n,loaded:!1,adUnitCode:e});try{r.setRender(m)}catch(e){_.logWarn("Prebid Error calling setRender on renderer",e)}return r.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("#".concat(e)).style.display="none"}}),r}(o.adUnitCode,t,s)}break;case C.a:o.vastUrl=t.notify_url+"&redir="+encodeURIComponent(t.rtb.video.asset_url)}else if(t.rtb[w.c]){var d=t.rtb[w.c],f=t.viewability.config.replace("src=","data-src="),l=d.javascript_trackers;null==l?l=f:_.isStr(l)?l=[l,f]:l.push(f),o[w.c]={title:d.title,body:d.desc,body2:d.desc2,cta:d.ctatext,rating:d.rating,sponsoredBy:d.sponsored,privacyLink:d.privacy_link,address:d.address,downloads:d.downloads,likes:d.likes,phone:d.phone,price:d.price,salePrice:d.saleprice,clickUrl:d.link.url,displayUrl:d.displayurl,clickTrackers:d.link.click_trackers,impressionTrackers:d.impression_trackers,javascriptTrackers:l},d.main_img&&(o.native.image={url:d.main_img.url,height:d.main_img.height,width:d.main_img.width}),d.icon&&(o.native.icon={url:d.icon.url,height:d.icon.height,width:d.icon.width})}else{i(o,{width:t.rtb.banner.width,height:t.rtb.banner.height,ad:t.rtb.banner.content});try{var p=t.rtb.trackers[0].impression_urls[0],g=_.createTrackPixelHtml(p);o.ad+=g}catch(t){_.logError("Error appending tracking pixel",t)}}return o}(e,u,r);c.mediaType=(a=u.ad_type)===w.d?w.d:a===w.c?w.c:w.b,o.push(c)}}),e.debug&&e.debug.debug_info){var u="AppNexus Debug Auction for Prebidnn"+e.debug.debug_info;u=u.replace(/(|)/gm,"t").replace(/(|)/gm,"n").replace(/^
/gm,"").replace(/(
n|
)/gm,"n").replace(/

(.*)

/gm,"nn===== $1 =====nn").replace(/(.*)/gm,"nn*** $1 ***nn").replace(/(]+)>)/gim,""),_.logMessage("https://console.appnexus.com/docs/understanding-the-debug-auction"),_.logMessage(u)}return o},getMappingFileInfo:function(){return{url:"https://acdn.adnxs.com/prebid/appnexus-mapping/mappings.json",refreshInDays:7}},getUserSyncs:function(e){if(e.iframeEnabled)return[{type:"iframe",url:"https://acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html"}]},transformBidParams:function(e,t){return e=_.convertTypes({member:"string",invCode:"string",placementId:"number",keywords:_.transformBidderParamKeywords},e),t&&(e.use_pmt_rule="boolean"==typeof e.usePaymentRule&&e.usePaymentRule,e.usePaymentRule&&delete e.usePaymentRule,a(e.keywords)&&e.keywords.forEach(u),Object.keys(e).forEach(function(t){var n=_.convertCamelToUnderscore(t);n!==t&&(e[n]=e[t],delete e[t])})),e},onBidWon:function(e){e.native&&function(e){var t=function(e){var t;if(_.isStr(e)&&c(e))t=e;else if(_.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];c(r)&&(t=r)}return t}(e.native.javascriptTrackers);if(t)for(var n="pbjs_adid="+e.adId+";pbjs_auc="+e.adUnitCode,r=function(e){var t=e.indexOf('src="')+5,n=e.indexOf('"',t);return e.substring(t,n)}(t),i=r.replace("dom_id=%native_dom_id%",n),o=document.getElementsByTagName("iframe"),a=!1,u=0;u<o.length&&!a;u++){var s=o[u];try{var d=s.contentDocument||s.contentWindow.document;if(d)for(var f=d.getElementsByTagName("script"),l=0;l<f.length&&!a;l++){var p=f[l];p.getAttribute("data-src")==r&&(p.setAttribute("src",i),p.setAttribute("data-src",""),p.removeAttribute&&p.removeAttribute("data-src"),a=!0)}}catch(e){if(!(e instanceof DOMException&&"SecurityError"===e.name))throw e}}}(e)}};Object(A.registerBidder)(q)}},[191]), pbjsChunk([174],{231:function(e,t,n){e.exports=n(232)},232:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)})(e)}function i(e,t){var n={context:this,args:[t],nextFn:e,adUnits:t.adUnits||pbjs.adUnits,bidsBackHandler:t.bidsBackHandler,haveExited:!1,timer:null};return g?c(null,n):y()(Object.keys(I),d)?(I[d].call(this,o,a,n),void(n.haveExited||(0===f?o(void 0,n):n.timer=setTimeout(function(e){a("CMP workflow exceeded timeout threshold.",e)}.bind(null,n),f)))):(h.logWarn("CMP framework (".concat(d,") is not a supported framework. Aborting consentManagement module and resuming auction.")),n.nextFn.apply(n.context,n.args))}function o(e,t){var n=e&&e.getConsentData&&e.getConsentData.gdprApplies;"boolean"==typeof n&&(!0!==n||h.isStr(e.getConsentData.consentData)&&h.isPlainObject(e.getVendorConsents)&&1<Object.keys(e.getVendorConsents).length)?(clearTimeout(t.timer),u(e),c(null,t)):a("CMP returned unexpected value during lookup process.",t,e)}function a(e,t,n){clearTimeout(t.timer),l&&u(void 0),c(e,t,n)}function u(e){g={consentString:e?e.getConsentData.consentData:void 0,vendorData:e?e.getVendorConsents:void 0,gdprApplies:e?e.getConsentData.gdprApplies:void 0},b.gdprDataHandler.setConsentData(g)}function c(e,t,n){if(!1===t.haveExited){t.haveExited=!0;var r=t.context,i=t.args,o=t.nextFn;e?l?(h.logWarn(e+" Resuming auction without consent data as per consentManagement config.",n),o.apply(r,i)):(h.logError(e+" Canceling auction as per consentManagement config.",n),"function"==typeof t.bidsBackHandler?t.bidsBackHandler():h.logError("Error executing bidsBackHandler")):o.apply(r,i)}}function s(e){(e=e.gdpr||e.usp?e.gdpr:e)&&"object"===r(e)?(h.isStr(e.cmpApi)?d=e.cmpApi:(d=A,h.logInfo("consentManagement config did not specify cmp. Using system default setting (".concat(A,")."))),h.isNumber(e.timeout)?f=e.timeout:(f=w,h.logInfo("consentManagement config did not specify timeout. Using system default setting (".concat(w,")."))),"boolean"==typeof e.allowAuctionWithoutConsent?l=e.allowAuctionWithoutConsent:(l=x,h.logInfo("consentManagement config did not specify allowAuctionWithoutConsent. Using system default setting (".concat(x,")."))),h.logInfo("consentManagement module has been activated..."),"static"===d&&(h.isPlainObject(e.consentData)?(p=e.consentData,f=0):h.logError("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),E||pbjs.requestBids.before(i,50),E=!0):h.logWarn("consentManagement config not defined, exiting consent manager")}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"userCMP",function(){return d}),n.d(t,"consentTimeout",function(){return f}),n.d(t,"allowAuction",function(){return l}),n.d(t,"staticConsentData",function(){return p}),t.requestBidsHook=i,t.resetConsentData=function(){g=void 0,d=void 0,b.gdprDataHandler.setConsentData(null)},t.setConsentConfig=s;var d,f,l,p,g,h=n(0),v=n(3),b=n(7),m=n(10),y=n.n(m),_=n(233),S=n.n(_),A="iab",w=1e4,x=!0,E=!1,I={iab:function(e,t,n){function r(e,t){var r=n.adUnits,i=1,o=1;if(Array.isArray(r)&&0<r.length){var a=h.getAdUnitSizes(r[0]);i=a[0][0],o=a[0][1]}window.$sf.ext.register(i,o,function(n,r){if("cmpReturn"===n){var i="getConsentData"===e?r.vendorConsentData:r.vendorConsents;t(i)}}),window.$sf.ext.cmp(e)}function i(e,t,n){function r(e){var t="string"==typeof e.data&&S()(e.data,"cmpReturn")?JSON.parse(e.data):e.data;if(t.__cmpReturn&&t.__cmpReturn.callId){var n=t.__cmpReturn;void 0!==u[n.callId]&&(u[n.callId](n.returnValue,n.success),delete u[n.callId])}}window.__cmp=function(e,n,r){var i=Math.random()+"",o={__cmpCall:{command:e,parameter:n,callId:i}};u[i]=r,t.postMessage(o,"*")},window.addEventListener("message",r,!1),window.__cmp(e,null,function(e){window.removeEventListener("message",r,!1),n(e)})}var o,a=function(){function t(){r.getConsentData&&r.getVendorConsents&&e(r,n)}var r={};return{consentDataCallback:function(e){r.getConsentData=e,t()},vendorConsentsCallback:function(e){r.getVendorConsents=e,t()}}}(),u={};try{o=window.__cmp||h.getWindowTop().__cmp}catch(e){}if(h.isFn(o))o("getConsentData",null,a.consentDataCallback),o("getVendorConsents",null,a.vendorConsentsCallback);else if(window.$sf&&window.$sf.ext&&"function"==typeof window.$sf.ext.cmp)r("getConsentData",a.consentDataCallback),r("getVendorConsents",a.vendorConsentsCallback);else{for(var c,s=window;!c;){try{s.frames.__cmpLocator&&(c=s)}catch(e){}if(s===window.top)break;s=s.parent}if(!c)return t("CMP not found.",n);i("getConsentData",c,a.consentDataCallback),i("getVendorConsents",c,a.vendorConsentsCallback)}},static:function(e,t,n){e(p,n)}};v.b.getConfig("consentManagement",function(e){return s(e.consentManagement)})}},[231]),pbjsChunk([173],{238:function(e,t,n){e.exports=n(239)},239:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)})(e)}function i(e,t){var n={context:this,args:[t],nextFn:e,adUnits:t.adUnits||pbjs.adUnits,bidsBackHandler:t.bidsBackHandler,haveExited:!1,timer:null};return f?u(null,n):m[s]?(m[s].call(this,o,a,n),void(n.haveExited||(0===d?o(void 0,n):n.timer=setTimeout(function(e){a("USPAPI workflow exceeded timeout threshold.",e)}.bind(null,n),d)))):(l.logWarn("USP framework (".concat(s,") is not a supported framework. Aborting consentManagement module and resuming auction.")),n.nextFn.apply(n.context,n.args))}function o(e,t){var n;e&&e.usPrivacy?(clearTimeout(t.timer),(n=e)&&n.usPrivacy&&(f=n.usPrivacy,g.uspDataHandler.setConsentData(f)),u(null,t)):a("UPSAPI returned unexpected value during lookup process.",t,e)}function a(e,t,n){clearTimeout(t.timer),u(e,t,n)}function u(e,t,n){if(!1===t.haveExited){t.haveExited=!0;var r=t.context,i=t.args,o=t.nextFn;e&&l.logWarn(e+" Resuming auction without consent data as per consentManagement config.",n),o.apply(r,i)}}function c(e){(e=e.usp)&&"object"===r(e)?(l.isStr(e.cmpApi)?s=e.cmpApi:(s=h,l.logInfo("consentManagement.usp config did not specify cmpApi. Using system default setting (".concat(h,")."))),l.isNumber(e.timeout)?d=e.timeout:(d=v,l.logInfo("consentManagement.usp config did not specify timeout. Using system default setting (".concat(v,")."))),l.logInfo("USPAPI consentManagement module has been activated..."),b||pbjs.requestBids.before(i,50),b=!0):l.logWarn("consentManagement.usp config not defined, exiting usp consent manager")}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"consentAPI",function(){return s}),n.d(t,"consentTimeout",function(){return d}),t.requestBidsHook=i,t.resetConsentData=function(){f=void 0,s=void 0,g.uspDataHandler.setConsentData(null)},t.setConsentConfig=c;var s,d,f,l=n(0),p=n(3),g=n(7),h="iab",v=50,b=!1,m={iab:function(e,t,n){var r=function(){var r={};return{consentDataCallback:function(i,o){o&&i.uspString&&(r.usPrivacy=i.uspString),r.usPrivacy?e(r,n):t("Unable to get USP consent string.",n)}}}(),i={};try{window.__uspapi("getUSPData",1,r.consentDataCallback)}catch(e){for(var o,a=window;!o;){try{a.frames.__uspapiLocator&&(o=a)}catch(e){}if(a===window.top)break;a=a.parent}if(!o)return t("USP CMP not found.",n);!function(e,t,n){function r(e){var t=e&&e.data&&e.data.__uspapiReturn;t&&t.callId&&void 0!==i[t.callId]&&(i[t.callId](t.returnValue,t.success),delete i[t.callId])}window.__uspapi=function(e,n,r){var o=Math.random()+"",a={__uspapiCall:{command:e,version:n,callId:o}};i[o]=r,t.postMessage(a,"*")},window.addEventListener("message",r,!1),window.__uspapi("getUSPData",1,function(e,t){window.removeEventListener("message",r,!1),n(e,t)})}(0,o,r.consentDataCallback)}}};p.b.getConfig("consentManagement",function(e){return c(e.consentManagement)})}},[238]),pbjsChunk([0],{248:function(e,t,n){e.exports=n(249)},249:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(){return"undefined"!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function o(e){return e[0]+"x"+e[1]}function a(e){return Array.isArray(e[0])?e.map(function(e){return o(e)}):[o(e)]}function u(e){return void 0!==g.deepAccess(e,"params.video")&&void 0!==g.deepAccess(e,"mediaTypes.video")}function c(){try{var e="criteo_fast_bid",t="// Hash: ",n=localStorage.getItem(e);if(null!==n){var r=n.indexOf("n"),i=n.substr(0,r).trim();if(i.substr(0,t.length)!==t)g.logWarn("No hash found in FastBid"),localStorage.removeItem(e);else{var o=i.substr(t.length),a=n.substr(r+1);if(Object(b.verify)(a,o,A,S)){g.logInfo("Using Criteo FastBid");var u=document.createElement("script");u.type="text/javascript",u.text=a,g.insertElement(u)}else g.logWarn("Invalid Criteo FastBid found"),localStorage.removeItem(e)}}}catch(e){}}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"ADAPTER_VERSION",function(){return m}),n.d(t,"PROFILE_ID_PUBLISHERTAG",function(){return _}),n.d(t,"spec",function(){return w}),t.tryGetCriteoFastBid=c;var s=n(52),d=n(1),f=n(3),l=n(2),p=n(9),g=n(0),h=n(12),v=n.n(h),b=n(250);n.n(b);var m=25,y="criteo",_=185,S=65537,A="ztQYwCE5BU7T9CDM5he6rKoabstXRmkzx54zFPZkWbK530dwtLBDeaWBMxHBUT55CYyboR/EZ4efghPi3CoNGfGWezpjko9P6p2EwGArtHEeS4slhu/SpSIFMjG6fdrpRoNuIAMhq1Z+Pr/+HOd1pThFKeGFr2/NhtAg+TXAzaU=",w={code:y,supportedMediaTypes:[l.b,l.d],isBidRequestValid:function(e){return!(!e||!e.params||!e.params.zoneId&&!e.params.networkId||u(e)&&!function(e){var t=!0;if(["mimes","playerSize","maxduration","protocols","api"].forEach(function(n){void 0===g.deepAccess(e,"mediaTypes.video."+n)&&(t=!1,g.logError("Criteo Bid Adapter: mediaTypes.video."+n+" is required"))}),["skip","placement","playbackmethod"].forEach(function(n){void 0===g.deepAccess(e,"params.video."+n)&&(t=!1,g.logError("Criteo Bid Adapter: params.video."+n+" is required"))}),t){if("instream"==e.mediaTypes.video.context&&1===e.params.video.placement)return!0;if("outstream"==e.mediaTypes.video.context&&1!==e.params.video.placement)return!0}return!1}(e))},buildRequests:function(e,t){var n,o;if(r(t,{ceh:f.b.getConfig("criteo.ceh")}),i()||(window.Criteo=window.Criteo||{},window.Criteo.usePrebidEvents=!1,c(),setTimeout(function(){Object(s.a)("//static.criteo.net/js/ld/publishertag.prebid.js",y)},t.timeout)),i()){var d=new Criteo.PubTag.Adapters.Prebid(_,m,e,t,"3.1.0");n=d.buildCdbUrl(),o=d.buildCdbRequest()}else{var l=function(e,t){var n="";t&&t.refererInfo&&(n=t.refererInfo.referer);var r=Object(p.c)(n).search,i={url:n,debug:"1"===r.pbt_debug,noLog:"1"===r.pbt_nolog,amp:!1};return e.forEach(function(e){"amp"===e.params.integrationMode&&(i.amp=!0)}),i}(e,t);n=function(e){var t="https://bidder.criteo.com/cdb";return t+="?profileId=207",t+="&av="+String(m),t+="&wv="+encodeURIComponent("3.1.0"),t+="&cb="+String(Math.floor(99999999999*Math.random())),e.amp&&(t+="&im=1"),e.debug&&(t+="&debug=1"),e.noLog&&(t+="&nolog=1"),t}(l),o=function(e,t,n){var r,i={publisher:{url:e.url},slots:t.map(function(e){r=e.params.networkId||r;var t,n,i={impid:e.adUnitCode,transactionid:e.transactionId,auctionId:e.auctionId,sizes:(t=e,a(g.deepAccess(t,"mediaTypes.banner.sizes")||t.sizes))};if(e.params.zoneId&&(i.zoneid=e.params.zoneId),e.params.publisherSubId&&(i.publishersubid=e.params.publisherSubId),e.params.nativeCallback&&(i.native=!0),u(e)){var o={playersizes:(n=e,a(g.deepAccess(n,"mediaTypes.video.playerSize"))),mimes:e.mediaTypes.video.mimes,protocols:e.mediaTypes.video.protocols,maxduration:e.mediaTypes.video.maxduration,api:e.mediaTypes.video.api};o.skip=e.params.video.skip,o.placement=e.params.video.placement,o.minduration=e.params.video.minduration,o.playbackmethod=e.params.video.playbackmethod,o.startdelay=e.params.video.startdelay,i.video=o}return i})};return r&&(i.publisher.networkid=r),i.user={},n&&n.ceh&&(i.user.ceh=n.ceh),n&&n.gdprConsent&&(i.gdprConsent={},void 0!==n.gdprConsent.gdprApplies&&(i.gdprConsent.gdprApplies=!!n.gdprConsent.gdprApplies),n.gdprConsent.vendorData&&n.gdprConsent.vendorData.vendorConsents&&void 0!==n.gdprConsent.vendorData.vendorConsents[91..toString(10)]&&(i.gdprConsent.consentGiven=!!n.gdprConsent.vendorData.vendorConsents[91..toString(10)]),void 0!==n.gdprConsent.consentString&&(i.gdprConsent.consentData=n.gdprConsent.consentString)),n&&n.uspConsent&&(i.user.uspIab=n.uspConsent),i}(l,e,t)}if(o)return{method:"POST",url:n,data:o,bidRequests:e}},interpretResponse:function(e,t){var n=e.body||e;if(i()){var r=Criteo.PubTag.Adapters.Prebid.GetAdapter(t);if(r)return r.interpretResponse(n,t)}var o=[];return n&&n.slots&&g.isArray(n.slots)&&n.slots.forEach(function(e){var n,r,i,a,u=v()(t.bidRequests,function(t){return t.adUnitCode===e.impid&&(!t.params.zoneId||parseInt(t.params.zoneId)===e.zoneid)}),c=u.bidId,s={requestId:c,adId:e.bidId||g.getUniqueIdentifierStr(),cpm:e.cpm,currency:e.currency,netRevenue:!0,ttl:e.ttl||60,creativeId:c,width:e.width,height:e.height,dealId:e.dealCode};e.native?s.ad=(n=c,r=e.native,i=u.params.nativeCallback,a="criteo_prebid_native_slots",window[a]=window[a]||{},window[a][n]={callback:i,payload:r},'nnfor (var i = 0; i < 10; ++i) {n var slots = window.parent.'.concat(a,';n if(!slots){continue;}n var responseSlot = slots["').concat(n,'"];n responseSlot.callback(responseSlot.payload);n break;n}n')):e.video?(s.vastUrl=e.displayurl,s.mediaType=l.d):s.ad=e.creative,o.push(s)}),o},onTimeout:function(e){i()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleBidTimeout()},onBidWon:function(e){i()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleBidWon(e)},onSetTargeting:function(e){i()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleSetTargeting(e)}};Object(d.registerBidder)(w)},250:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(251),i=n(252);t.verify=function(e,t,n,o){var a=new r.BigInteger(r.b64toHex(t)),u=new r.BigInteger(r.b64toHex(n)),c=a.modPowInt(o,u);return r.removeExtraSymbols(c.toHexString())===i.Sha256.hash(e)}},251:function(e,t,n){"use strict";function r(e){null!==e&&this.fromHexString(e)}function i(){return new l(null)}function o(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function a(e,t){var n=h[e.charCodeAt(t)];return null==n?-1:n}function u(e){return v.charAt(e)}function c(e){this.m=e}function s(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function d(e){var t=i();return t.fromHexString(e.toString()),t}var f;Object.defineProperty(t,"__esModule",{value:!0});var l=(r.prototype.toHexString=function(){if(this.s<0)return"-"+this.negate().toHexString();var e,t=!1,n="",r=this.t,i=this.DB-r*this.DB%4;if(0<r--)for(i<this.DB&&0>i)&&(t=!0,n=u(e));0<=r;)i<4?(e=(this[r]&(1<<i)-1)<>(i+=this.DB-4)):(e=this[r]>>(i-=4)&15,i<=0&&(i+=this.DB,--r)),0<e&&(t=!0),t&&(n+=u(e));return t?n:"0"},r.prototype.fromHexString=function(e){if(null!==e){this.t=0,this.s=0;for(var t=e.length,n=!1,i=0;0<=--t;){var o=a(e,t);othis.DB?(this[this.t-1]|=(o&(1<<this.DB-i)-1)<>this.DB-i):this[this.t-1]|=o<=this.DB&&(i-=this.DB))}this.clamp(),n&&r.ZERO.subTo(this,this)}},r.prototype.negate=function(){var e=i();return r.ZERO.subTo(this,e),e},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.mod=function(e){var t=i();return this.abs().divRemTo(e,null,t),this.s<0&&0<t.compareTo(r.ZERO)&&e.subTo(t,t),t},r.prototype.copyTo=function(e){for(var t=this.t-1;0<=t;--t)e[t]=this[t];e.t=this.t,e.s=this.s},r.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,u=this.t-1;0>r|a,a=(this[u]&i)<<n;for(u=o-1;0<=u;--u)t[u]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},r.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return 0<(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)?this.DV-t:-t},r.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;0<=n;--n)t[n+e]=this[n];for(n=e-1;0<=n;--n)t[n]=0;t.t=this.t+e,t.s=this.s},r.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;0<=--n;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}0<e.t&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},r.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),o=n.t;for(t.t=o+i.t;0<=--o;)t[o]=0;for(o=0;o<i.t;++o)t[o+n.t]=n.am(0,i[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&r.ZERO.subTo(t,t)},r.prototype.divRemTo=function(e,t,n){var a=e.abs();if(!(a.t<=0)){var u=this.abs();if(u.t<a.t)return null!=t&&t.fromHexString("0"),void(null!=n&&this.copyTo(n));null==n&&(n=i());var c=i(),s=this.s,d=e.s,f=this.DB-o(a[a.t-1]);0<f?(a.lShiftTo(f,c),u.lShiftTo(f,n)):(a.copyTo(c),u.copyTo(n));var l=c.t,p=c[l-1];if(0!=p){var g=p*(1<<this.F1)+(1>this.F2:0),h=this.FV/g,v=(1<<this.F1)/g,b=1<<this.F2,m=n.t,y=m-l,_=null==t?i():t;for(c.dlShiftTo(y,_),0<=n.compareTo(_)&&(n[n.t++]=1,n.subTo(_,n)),r.ONE.dlShiftTo(l,_),_.subTo(c,c);c.t<l;)c[c.t++]=0;for(;0<=--y;){var S=n[--m]==p?this.DM:Math.floor(n[m]*h+(n[m-1]+b)*v);if((n[m]+=c.am(0,S,n,y,0,l))<S)for(c.dlShiftTo(y,_),n.subTo(_,n);n[m]<--S;)n.subTo(_,n)}null!=t&&(n.drShiftTo(l,t),s!=d&&r.ZERO.subTo(t,t)),n.t=l,n.clamp(),0<f&&n.rShiftTo(f,n),s=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<>r;0<r&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},r.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},r.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n>=this.DB;if(e.t<this.t){for(r-=e.s;n>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:0<r&&(t[n++]=r),t.t=n,t.clamp()},r.prototype.clamp=function(){for(var e=this.s&this.DM;0<this.t&&this[this.t-1]==e;)--this.t},r.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new b(t):new m(t),this.exp(e,n)},r.prototype.exp=function(e,t){if(4294967295<e||e<1)return r.ONE;var n=i(),a=i(),u=t.convert(this),c=o(e)-1;for(u.copyTo(n);0<=--c;)if(t.sqrTo(n,a),0<(e&1<<c))t.mulTo(a,u,n);else{var s=n;n=a,a=s}return t.revert(n)},r.prototype.isEven=function(){return 0==(0<this.t?1&this[0]:this.s)},r.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;0<=--n;)if(0!=(t=this[n]-e[n]))return t;return 0},r.prototype.am1=function(e,t,n,r,i,o){for(;0>15;0>15,d=u*c+s*a;i=((c=a*c+((32767&d)<>>30)+(d>>>15)+u*s+(i>>>30),n[r++]=1073741823&c}return i},r.prototype.am3=function(e,t,n,r,i,o){for(var a=16383&t,u=t>>14;0>14,d=u*c+s*a;i=((c=a*c+((16383&d)<>28)+(d>>14)+u*s,n[r++]=268435455&c}return i},r);t.BigInteger=l,t.nbi=i,t.nbits=o;var p,g,h=[];for(p="0".charCodeAt(0),g=0;g<=9;++g)h[p++]=g;for(p="a".charCodeAt(0),g=10;g<36;++g)h[p++]=g;for(p="A".charCodeAt(0),g=10;g<36;++g)h[p++]=g;t.intAt=a;var v="0123456789abcdefghijklmnopqrstuvwxyz";t.int2char=u,t.b64toHex=function(e){var t,n="",r=0,i=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(t));o>2),i=3&o,1):1==r?(n+=u(i<>4),i=15&o,2):2==r?(n+=u(i),n+=u(o>>2),i=3&o,3):(n+=u(i<>4),n+=u(15&o),0))}return 1==r&&(n+=u(i<<2)),n},t.removeExtraSymbols=function(e){return e.replace(/^1f+00/,"").replace("3031300d060960864801650304020105000420","")};var b=(c.prototype.convert=function(e){return e.s<0||0<=e.compareTo(this.m)?e.mod(this.m):e},c.prototype.revert=function(e){return e},c.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},c.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},c.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},c),m=(s.prototype.convert=function(e){var t=i();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&0<t.compareTo(l.ZERO)&&this.m.subTo(t,t),t},s.prototype.revert=function(e){var t=i();return e.copyTo(t),this.reduce(t),t},s.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),0<=e.compareTo(this.m)&&e.subTo(this.m,e)},s.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},s.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},s);t.nbv=d,l.ZERO=d(0),l.ONE=d(1),f="Microsoft Internet Explorer"==navigator.appName?(l.prototype.am=l.prototype.am2,30):"Netscape"!=navigator.appName?(l.prototype.am=l.prototype.am1,26):(l.prototype.am=l.prototype.am3,28),l.prototype.DB=f,l.prototype.DM=(1<<f)-1,l.prototype.DV=1<<f,l.prototype.FV=Math.pow(2,52),l.prototype.F1=52-f,l.prototype.F2=2*f-52},252:function(e,t,n){"use strict";function r(){}Object.defineProperty(t,"__esModule",{value:!0});var i=(r.hash=function(e){e=r.utf8Encode(e||"");for(var t=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],n=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],i=(e+=String.fromCharCode(128)).length/4+2,o=Math.ceil(i/16),a=new Array(o),u=0;u<o;u++){a[u]=new Array(16);for(var c=0;c<16;c++)a[u][c]=e.charCodeAt(64*u+4*c)<<24|e.charCodeAt(64*u+4*c+1)<<16|e.charCodeAt(64*u+4*c+2)<<8|e.charCodeAt(64*u+4*c+3)<>>0;for(a[o-1][14]=Math.floor(s),a[o-1][15]=d,u=0;u<o;u++){for(var f=new Array(64),l=0;l<16;l++)f[l]=a[u][l];for(l=16;l>>0;var p=n[0],g=n[1],h=n[2],v=n[3],b=n[4],m=n[5],y=n[6],_=n[7];for(l=0;l>>0,v=h,h=g,g=p,p=S+A>>>0}n[0]=n[0]+p>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+v>>>0,n[4]=n[4]+b>>>0,n[5]=n[5]+m>>>0,n[6]=n[6]+y>>>0,n[7]=n[7]+_>>>0}var w=new Array(n.length);for(_=0;_>>e|t<>>3},r.q1=function(e){return r.ROTR(17,e)^r.ROTR(19,e)^e>>>10},r.Ch=function(e,t,n){return e&t^~e&n},r.Maj=function(e,t,n){return e&t^e&n^t&n},r);t.Sha256=i}},[248]),pbjsChunk([139],{321:function(e,t,n){e.exports=n(322)},322:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)})(e)}function i(e){var t=o(e);t.video=d.deepClone(e.params.video),t.video.w=e.params.size[0],t.video.h=e.params.size[1];var n=d.deepAccess(e,"mediaTypes.video.context");return n&&("instream"===n?t.video.placement=1:"outstream"===n?t.video.placement=4:d.logWarn("ix bidder params: video context '".concat(n,"' is not supported"))),t}function o(e){var t={};return t.id=e.bidId,t.ext={},t.ext.siteID=e.params.siteId,!e.params.hasOwnProperty("id")||"string"!=typeof e.params.id&&"number"!=typeof e.params.id?t.ext.sid="".concat(e.params.size[0],"x").concat(e.params.size[1]):t.ext.sid=String(e.params.id),e.params.hasOwnProperty("bidFloor")&&e.params.hasOwnProperty("bidFloorCur")&&(t.bidfloor=e.params.bidFloor,t.bidfloorcur=e.params.bidFloorCur),t}function a(e){return Array.isArray(e)&&2===e.length&&v()(e[0])&&v()(e[1])}function u(e,t){if(a(e))return e[0]===t[0]&&e[1]===t[1];for(var n=0;n<e.length;n++)if(e[n][0]===t[0]&&e[n][1]===t[1])return!0;return!1}function c(e,t){if(e)return p()(t,function(t){return t.id===e})}function s(e,t,n,i){var o=[];if(window.headertag&&"function"==typeof window.headertag.getIdentityInfo){var a=window.headertag.getIdentityInfo();if(a&&"object"===r(a))for(var u in a)if(a.hasOwnProperty(u)){var c=a[u];!c.responsePending&&c.data&&"object"===r(c.data)&&Object.keys(c.data).length&&o.push(c.data)}}var s={};if(s.id=e[0].bidderRequestId,s.imp=n,s.site={},s.ext={},s.ext.source="prebid",0<o.length&&(s.user={},s.user.eids=o),document.referrer&&""!==document.referrer&&(s.site.ref=document.referrer),t){if(t.gdprConsent){var d=t.gdprConsent;d.hasOwnProperty("gdprApplies")&&(s.regs={ext:{gdpr:d.gdprApplies?1:0}}),d.hasOwnProperty("consentString")&&(s.user=s.user||{},s.user.ext={consent:d.consentString||""})}t.refererInfo&&(s.site.page=t.refererInfo.referer)}var f={},l=g.b.getConfig("ix");if(l){if("object"===r(l.firstPartyData)){var p=l.firstPartyData,h="?";for(var v in p)p.hasOwnProperty(v)&&(h+="".concat(encodeURIComponent(v),"=").concat(encodeURIComponent(p[v]),"&"));h=h.slice(0,-1),s.site.page+=h}"number"==typeof l.timeout&&(f.t=l.timeout)}return f.s=e[0].params.siteId,f.v=i,f.r=JSON.stringify(s),f.ac="j",f.sd=1,8.1===i&&(f.nf=1),{method:"GET",url:"https://as-sec.casalemedia.com/cygnus",data:f}}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"spec",function(){return _});var d=n(0),f=n(2),l=n(12),p=n.n(l),g=n(3),h=n(323),v=n.n(h),b=n(1),m=[f.b,f.d],y={JPY:1},_={code:"ix",supportedMediaTypes:m,isBidRequestValid:function(e){if(!a(e.params.size))return d.logError("ix bidder params: bid size has invalid format."),!1;if(!u(e.sizes,e.params.size))return d.logError("ix bidder params: bid size is not included in ad unit sizes."),!1;if(e.hasOwnProperty("mediaType")&&!d.contains(m,e.mediaType))return!1;if(e.hasOwnProperty("mediaTypes")&&!d.deepAccess(e,"mediaTypes.banner.sizes")&&!d.deepAccess(e,"mediaTypes.video.playerSize"))return!1;if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return d.logError("ix bidder params: siteId must be string or number value."),!1;var t,n,r=e.params.hasOwnProperty("bidFloor"),i=e.params.hasOwnProperty("bidFloorCur");return!!(!r&&!i||r&&i&&(t=e.params.bidFloor,n=e.params.bidFloorCur,Boolean("number"==typeof t&&"string"==typeof n&&n.match(/^[A-Z]{3}$/))))||(d.logError("ix bidder params: bidFloor / bidFloorCur parameter has invalid format."),!1)},buildRequests:function(e,t){for(var n,r,a=[],c=[],l=[],p=null,g=0;g<e.length;g++)(p=e[g]).mediaType!==f.d&&!d.deepAccess(p,"mediaTypes.video")||(p.mediaType===f.d||u(p.mediaTypes.video.playerSize,p.params.size)?l.push(i(p)):d.logError("Bid size is not included in video playerSize")),p.mediaType!==f.b&&!d.deepAccess(p,"mediaTypes.banner")&&(p.mediaType||p.mediaTypes)||c.push((r=void 0,(r=o(n=p)).banner={},r.banner.w=n.params.size[0],r.banner.h=n.params.size[1],r.banner.topframe=d.inIframe()?0:1,r));return 0<c.length&&a.push(s(e,t,c,7.2)),0<l.length&&a.push(s(e,t,l,8.1)),a},interpretResponse:function(e,t){var n=[];if(!e.hasOwnProperty("body")||!e.body.hasOwnProperty("seatbid"))return n;for(var r,i,o,a,u=e.body,s=u.seatbid,l=0;l<s.length;l++)if(s[l].hasOwnProperty("bid"))for(var p=s[l].bid,g=JSON.parse(t.data.r),h=0;h<p.length;h++){var v=c(p[h].impid,g.imp);r=p[h],i=u.cur,o=v,a=void 0,a={},y.hasOwnProperty(i)?a.cpm=r.price/y[i]:a.cpm=r.price/100,a.requestId=r.impid,a.dealId=d.deepAccess(r,"ext.dealid"),a.netRevenue=!0,a.currency=i,a.creativeId=r.hasOwnProperty("crid")?r.crid:"-",d.deepAccess(r,"ext.vasturl")?(a.vastUrl=r.ext.vasturl,a.width=o.video.w,a.height=o.video.h,a.mediaType=f.d,a.ttl=3600):(a.ad=r.adm,a.width=r.w,a.height=r.h,a.mediaType=f.b,a.ttl=35),a.meta={},a.meta.networkId=d.deepAccess(r,"ext.dspid"),a.meta.brandId=d.deepAccess(r,"ext.advbrandid"),a.meta.brandName=d.deepAccess(r,"ext.advbrand"),n.push(a)}return n},transformBidParams:function(e){return d.convertTypes({siteID:"number"},e)}};Object(b.registerBidder)(_)}},[321]),pbjsChunk([136],{332:function(e,t,n){e.exports=n(333)},333:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"spec",function(){return d});var i,o,a,u=n(0),c=n(3),s=n(1),d={code:"kargo",isBidRequestValid:function(e){return!(!e||!e.params||!e.params.placementId)},buildRequests:function(e,t){var n,i=c.b.getConfig("currency"),o=i&&i.adServerCurrency||"USD",a={},s={};u._each(e,function(e){a[e.bidId]=e.params.placementId,s[e.bidId]=e.sizes}),0<e.length&&e[0].userId&&e[0].userId.tdid&&(n=e[0].userId.tdid);var f=r({},{sessionId:d._getSessionId(),requestCount:d._getRequestCount(),timeout:t.timeout,currency:o,cpmGranularity:1,timestamp:(new Date).getTime(),cpmRange:{floor:0,ceil:20},bidIDs:a,bidSizes:s,prebidRawBidRequests:e},d._getAllMetadata(n)),l=encodeURIComponent(JSON.stringify(f));return r({},t,{method:"GET",url:"".concat("https://krk.kargo.com","/api/v2/bid"),data:"json=".concat(l),currency:o})},interpretResponse:function(e,t){var n=e.body,r=[];for(var i in n){var o=n[i];r.push({requestId:i,cpm:Number(o.cpm),width:o.width,height:o.height,ad:o.adm,ttl:300,creativeId:o.id,dealId:o.targetingCustom,netRevenue:!0,currency:t.currency})}return r},getUserSyncs:function(e){var t=[],n=d._generateRandomUuid(),r=d._getClientId();if(e.iframeEnabled&&n&&r)for(var i=0;i<5;i++)t.push({type:"iframe",url:"https://crb.kargo.com/api/v1/initsyncrnd/{UUID}?seed={SEED}&idx={INDEX}".replace("{UUID}",r).replace("{SEED}",n).replace("{INDEX}",i)});return t},_readCookie:function(e){for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},_getCrbFromCookie:function(){try{var e=JSON.parse(decodeURIComponent(d._readCookie("krg_crb")));if(e&&e.v){var t=JSON.parse(atob(e.v));if(t)return t}return{}}catch(e){return{}}},_getCrbFromLocalStorage:function(){try{return JSON.parse(atob(d._getLocalStorageSafely("krg_crb")))}catch(e){return{}}},_getCrb:function(){ var e=d._getCrbFromLocalStorage();return Object.keys(e).length?e:d._getCrbFromCookie()},_getKruxUserId:function(){return d._getLocalStorageSafely("kxkar_user")},_getKruxSegments:function(){return d._getLocalStorageSafely("kxkar_segs")},_getKrux:function(){var e=d._getKruxSegments(),t=[];return e&&(t=e.split(",")),{userID:d._getKruxUserId(),segments:t}},_getLocalStorageSafely:function(e){try{return localStorage.getItem(e)}catch(e){return null}},_getUserIds:function(e){var t=d._getCrb(),n={kargoID:t.userId,clientID:t.clientId,crbIDs:t.syncIds||{},optOut:t.optOut};return e&&(n.tdID=e),n},_getClientId:function(){return d._getCrb().clientId},_getAllMetadata:function(e){return{userIDs:d._getUserIds(e),krux:d._getKrux(),pageURL:window.location.href,rawCRB:d._readCookie("krg_crb"),rawCRBLocalStorage:d._getLocalStorageSafely("krg_crb")}},_getSessionId:function(){return i=i||d._generateRandomUuid()},_getRequestCount:function(){return o===window.location.pathname?++a:(o=window.location.pathname,a=0)},_generateRandomUuid:function(){try{var e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=-177&e[6]|64,e[8]=-65&e[8]|128;var t=Array.prototype.map.call(new Uint8Array(e),function(e){return("00"+e.toString(16)).slice(-2)}).join("");return t.slice(0,8)+"-"+t.slice(8,12)+"-"+t.slice(12,16)+"-"+t.slice(16,20)+"-"+t.slice(20)}catch(e){return""}}};Object(s.registerBidder)(d)}},[332]),pbjsChunk([108],{396:function(e,t,n){e.exports=n(397)},397:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){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||null==u.return||u.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e,t){var n,r,i,a,c=u.inIframe();if(n={ju:o.b.getConfig("pageUrl")||t.refererInfo.referer,ch:document.charSet||document.characterSet,res:"".concat(screen.width,"x").concat(screen.height,"x").concat(screen.colorDepth),ifr:c,tz:(new Date).getTimezoneOffset(),tws:function(e){var t,n,r,i=window,o=document,a=o.documentElement;if(e){try{i=window.top,o=window.top.document}catch(e){return}a=o.documentElement,r=o.body,t=i.innerWidth||a.clientWidth||r.clientWidth,n=i.innerHeight||a.clientHeight||r.clientHeight}else a=o.documentElement,t=i.innerWidth||a.clientWidth,n=i.innerHeight||a.clientHeight;return"".concat(t,"x").concat(n)}(c),be:1,bc:e[0].params.bc||"".concat(f,"_").concat(l),dddid:u._map(e,function(e){return e.transactionId}).join(","),nocache:(new Date).getTime()},e[0].params.platform&&(n.ph=e[0].params.platform),t.gdprConsent){var s=t.gdprConsent;void 0!==s.consentString&&(n.gdpr_consent=s.consentString),void 0!==s.gdprApplies&&(n.gdpr=s.gdprApplies?1:0),"iab"===o.b.getConfig("consentManagement.cmpApi")&&(n.x_gdpr_f=1)}return t&&t.uspConsent&&(n.us_privacy=t.uspConsent),u.deepAccess(e[0],"crumbs.pubcid")&&u.deepSetValue(e[0],"userId.pubcid",u.deepAccess(e[0],"crumbs.pubcid")),r=n,i=e[0].userId,u._each(i,function(e,t){p.hasOwnProperty(t)&&(r[p[t]]=e)}),n=r,e[0].schain&&(n.schain=(a=e[0].schain,"".concat(a.ver,",").concat(a.complete,"!").concat(function(e){var t=["asi","sid","hp","rid","name","domain"];return e.map(function(e){return t.map(function(t){return e[t]||""}).join(",")}).join("!")}(a.nodes)))),n}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"spec",function(){return g});var o=n(3),a=n(1),u=n(0),c=n(2),s=n(9),d=[c.b,c.d],f="hb_pb",l="3.0.1",p={idl_env:"lre",pubcid:"pubcid",tdid:"ttduuid"},g={code:"openx",supportedMediaTypes:d,isBidRequestValid:function(e){var t=e.params.delDomain||e.params.platform;return u.deepAccess(e,"mediaTypes.banner")&&t?!!e.params.unit||0<u.deepAccess(e,"mediaTypes.banner.sizes.length"):!(!e.params.unit||!t)},buildRequests:function(e,t){if(0===e.length)return[];var n=[],a=r(e.reduce(function(e,t){var n;return n=t,u.deepAccess(n,"mediaTypes.video")&&!u.deepAccess(n,"mediaTypes.banner")||n.mediaType===c.d?e[0].push(t):e[1].push(t),e},[[],[]]),2),s=a[0],d=a[1];return 0<d.length&&n.push(function(e,t){var n=[],r=!1,a=i(e,t),c=u._map(e,function(e){return e.params.unit});a.aus=u._map(e,function(e){return u.parseSizesInput(e.mediaTypes.banner.sizes).join(",")}).join("|"),a.divIds=u._map(e,function(e){return encodeURIComponent(e.adUnitCode)}).join(","),c.some(function(e){return e})&&(a.auid=c.join(",")),e.some(function(e){return e.params.doNotTrack})&&(a.ns=1),!0!==o.b.getConfig("coppa")&&!e.some(function(e){return e.params.coppa})||(a.tfcd=1),e.forEach(function(e){if(e.params.customParams){var t=u._map(Object.keys(e.params.customParams),function(t){return function(e,t){var n=t[e];return u.isArray(n)&&(n=n.join(",")),(e.toLowerCase()+"="+n.toLowerCase()).replace("+",".").replace("/","_")}(t,e.params.customParams)}),i=window.btoa(t.join("&"));r=!0,n.push(i)}else n.push("")}),r&&(a.tps=n.join(","));var s=[],d=!1;return e.forEach(function(e){e.params.customFloor?(s.push(Math.round(100*e.params.customFloor)/100*1e3),d=!0):s.push(0)}),d&&(a.aumfs=s.join(",")),{method:"GET",url:a.ph?"https://u.openx.net/w/1.0/arj":"https://".concat(e[0].params.delDomain,"/w/1.0/arj"),data:a,payload:{bids:e,startTime:new Date}}}(d,t)),0<s.length&&s.forEach(function(e){var r,o;n.push({method:"GET",url:(o=function(e,t){var n,r,o=i([e],t),a=u.deepAccess(e,"params.video")||{},c=u.deepAccess(e,"mediaTypes.video.context"),s=u.deepAccess(e,"mediaTypes.video.playerSize");return u.isArray(e.sizes)&&2===e.sizes.length&&!u.isArray(e.sizes[0])?(n=parseInt(e.sizes[0],10),r=parseInt(e.sizes[1],10)):u.isArray(e.sizes)&&u.isArray(e.sizes[0])&&2===e.sizes[0].length?(n=parseInt(e.sizes[0][0],10),r=parseInt(e.sizes[0][1],10)):u.isArray(s)&&2===s.length&&(n=parseInt(s[0],10),r=parseInt(s[1],10)),Object.keys(a).forEach(function(e){"openrtb"===e?(a[e].w=n||a[e].w,a[e].v=r||a[e].v,o[e]=JSON.stringify(a[e])):e in o||"url"===e||(o[e]=a[e])}),o.auid=e.params.unit,o.vwd=n||a.vwd,o.vht=r||a.vht,"outstream"===c&&(o.vos="101"),a.mimes&&(o.vmimes=a.mimes),o}(r=e,t)).ph?"https://u.openx.net/v/1.0/avjp":"https://".concat(r.params.delDomain,"/v/1.0/avjp"),data:o,payload:{bid:r,startTime:new Date}})}),n},interpretResponse:function(e,t){var n=e.body;return(/avjp$/.test(t.url)?c.d:c.b)===c.d?function(e,t){var n=t.bid,r=(t.startTime,[]);if(void 0!==e&&""!==e.vastUrl&&""!==e.pub_rev){var i=Object(s.c)(e.vastUrl).search||{},o={};o.requestId=n.bidId,o.ttl=300,o.netRevenue=!0,o.currency=e.currency,o.cpm=Number(e.pub_rev)/1e3,o.width=e.width,o.height=e.height,o.creativeId=e.adid,o.vastUrl=e.vastUrl,o.mediaType=c.d,e.ph=i.ph,e.colo=i.colo,e.ts=i.ts,r.push(o)}return r}(n,t.payload):function(e,t){for(var n=t.bids,r=(t.startTime,e.ads.ad),i=[],o=0;o<r.length;o++){var a=r[o],u=parseInt(a.idx,10),c={};if(c.requestId=n[u].bidId,a.pub_rev){c.cpm=Number(a.pub_rev)/1e3;var s=a.creative[0];s&&(c.width=s.width,c.height=s.height),c.creativeId=s.id,c.ad=a.html,a.deal_id&&(c.dealId=a.deal_id),c.ttl=300,c.netRevenue=!0,c.currency=a.currency,a.tbd&&(c.tbd=a.tbd),c.ts=a.ts,c.meta={},a.brand_id&&(c.meta.brandId=a.brand_id),a.adv_id&&(c.meta.dspid=a.adv_id),i.push(c)}}return i}(n,t.payload)},getUserSyncs:function(e,t,n,r){if(e.iframeEnabled||e.pixelEnabled)return[{type:e.iframeEnabled?"iframe":"image",url:u.deepAccess(t,"0.body.ads.pixels")||u.deepAccess(t,"0.body.pixels")||function(e,t){var n=[];return e&&(n.push("gdpr="+(e.gdprApplies?1:0)),n.push("gdpr_consent="+encodeURIComponent(e.consentString||""))),t&&n.push("us_privacy="+encodeURIComponent(t)),"".concat("https://u.openx.net/w/1.0/pd").concat(0<n.length?"?"+n.join("&"):"")}(n,r)}]},transformBidParams:function(e){return u.convertTypes({unit:"string",customFloor:"number"},e)}};Object(a.registerBidder)(g)}},[396]),pbjsChunk([81],{469:function(e,t,n){e.exports=n(470)},470:function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){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||null==u.return||u.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return(a="function"==typeof Symbol&&"symbol"==_typeof(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof(e)})(e)}function u(e,t){var n,r=0<arguments.length&&void 0!==e?e:{},i=1<arguments.length?t:void 0;if(!i||!I[i])return null;var a=I[i],u=function(){var e=y.deepAccess(r,"userId.digitrustid.data");if(e)return e;var t=window.DigiTrust&&(S.b.getConfig("digiTrustId")||window.DigiTrust.getUser({member:"T9QSFKPDN9"}));return t&&t.success&&t.identity||null}();if(!u||u.privacy&&u.privacy.optout)return null;var c=(o(n={},a.id,u.id),o(n,a.keyv,u.keyv),n);return a.pref&&(c[a.pref]=0),c}function c(e,t){var n=S.b.getConfig("pageUrl");return n=e.params.referrer?e.params.referrer:n||t.refererInfo.referer,e.params.secure?n.replace(/^http:/i,"https:"):n}function s(e,t){var n=e.params;if("video"===t){var r=[];return n.video&&n.video.playerWidth&&n.video.playerHeight?r=[n.video.playerWidth,n.video.playerHeight]:Array.isArray(y.deepAccess(e,"mediaTypes.video.playerSize"))&&1===e.mediaTypes.video.playerSize.length?r=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&0<e.sizes.length&&Array.isArray(e.sizes[0])&&1<e.sizes[0].length&&(r=e.sizes[0]),r}var i=[];return Array.isArray(n.sizes)?i=n.sizes:void 0!==y.deepAccess(e,"mediaTypes.banner.sizes")?i=d(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&0<e.sizes.length?i=d(e.sizes):y.logWarn("Rubicon: no sizes are setup or found"),p(i)}function d(e){return y.parseSizesInput(e).reduce(function(e,t){var n=parseInt(j[t],10);return n&&e.push(n),e},[])}function f(e){return"object"===a(y.deepAccess(e,"params.video"))&&void 0!==y.deepAccess(e,"mediaTypes.".concat(A.d))}function l(e,t){var n=1<arguments.length&&void 0!==t&&t;return f(e)?-1===["outstream","instream"].indexOf(y.deepAccess(e,"mediaTypes.".concat(A.d,".context")))?void(n&&y.logError("Rubicon: mediaTypes.video.context must be outstream or instream")):s(e,"video").length<2?void(n&&y.logError("Rubicon: could not determine the playerSize of the video")):(n&&y.logMessage("Rubicon: making video request for adUnit",e.adUnitCode),"video"):0===s(e,"banner").length?void(n&&y.logError("Rubicon: could not determine the sizes for banner request")):(n&&y.logMessage("Rubicon: making banner request for adUnit",e.adUnitCode),"banner")}function p(e){var t=[15,2,9];return e.sort(function(e,n){var r=t.indexOf(e),i=t.indexOf(n);return-1<r||-1<i?-1===r?1:-1===i?-1:r-i:e-n})}function g(e){var t=parseInt(y.deepAccess(e,"params.video.size_id"));return isNaN(t)?"outstream"===y.deepAccess(e,"mediaTypes.".concat(A.d,".context"))?203:201:t}function h(e){return{ranges:{low:[{max:5,increment:.5}],medium:[{max:20,increment:.1}],high:[{max:20,increment:.01}],auto:[{max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}],dense:[{max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}],custom:e.getConfig("customPriceBucket")&&e.getConfig("customPriceBucket").buckets}[e.getConfig("priceGranularity")]}}function v(e){var t=!0,n=Object.prototype.toString.call([]),r=Object.prototype.toString.call(0),i={mimes:n,protocols:n,maxduration:r,linearity:r,api:n};return Object.keys(i).forEach(function(n){Object.prototype.toString.call(y.deepAccess(e,"mediaTypes.video."+n))!==i[n]&&(t=!1,y.logError("Rubicon: mediaTypes.video."+n+" is required and must be of type: "+i[n]))}),t}function b(e){var t=!1,n=["asi","sid","hp"];return e.nodes&&((t=e.nodes.reduce(function(e,t){return e?n.every(function(e){return t[e]}):e},!0))||y.logError("Rubicon: required schain params missing")),t}function m(e,t){return"rp_schain"===e?"rp_schain=".concat(t):"".concat(e,"=").concat(encodeURIComponent(t))}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"FASTLANE_ENDPOINT",function(){return w}),n.d(t,"VIDEO_ENDPOINT",function(){return x}),n.d(t,"SYNC_ENDPOINT",function(){return E}),n.d(t,"spec",function(){return T}),t.hasVideoMediaType=f,t.masSizeOrdering=p,t.determineRubiconVideoSizeId=g,t.getPriceGranularity=h,t.hasValidVideoParams=v,t.hasValidSupplyChainParams=b,t.encodeParam=m,t.resetUserSync=function(){C=!1};var y=n(0),_=n(1),S=n(3),A=n(2),w="https://fastlane.rubiconproject.com/a/api/fastlane.json",x="https://prebid-server.rubiconproject.com/openrtb2/auction",E="https://eus.rubiconproject.com/usync.html",I={FASTLANE:{id:"dt.id",keyv:"dt.keyv",pref:"dt.pref"},PREBID_SERVER:{id:"id",keyv:"keyv"}},j={1:"468x60",2:"728x90",5:"120x90",8:"120x600",9:"160x600",10:"300x600",13:"200x200",14:"250x250",15:"300x250",16:"336x280",17:"240x400",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",39:"750x100",40:"750x200",41:"750x300",42:"2x4",43:"320x50",44:"300x50",48:"300x300",53:"1024x768",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",64:"580x500",65:"640x480",66:"930x600",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",94:"970x310",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",105:"250x800",108:"320x240",113:"1000x300",117:"320x100",125:"800x250",126:"200x600",144:"980x600",145:"980x150",152:"1000x250",156:"640x320",159:"320x250",179:"250x600",195:"600x300",198:"640x360",199:"640x200",213:"1030x590",214:"980x360",221:"1x1",229:"320x180",232:"580x400",234:"6x6",251:"2x2",257:"400x600",264:"970x1000",265:"1920x1080",278:"320x500",288:"640x380"};y._each(j,function(e,t){return j[e]=t});var T={code:"rubicon",supportedMediaTypes:[A.b,A.d],isBidRequestValid:function(e){if("object"!==a(e.params))return!1;for(var t=0,n=["accountId","siteId","zoneId"];t<n.length;t++)if(e.params[n[t]]=parseInt(e.params[n[t]]),isNaN(e.params[n[t]]))return y.logError("Rubicon: wrong format of accountId or siteId or zoneId."),!1;var r=l(e,!0);return!!r&&("video"!==r||v(e))},buildRequests:function(e,t){var n=[],i=e.filter(function(e){return"video"===l(e)}).map(function(e){e.startTime=(new Date).getTime();var n={id:e.transactionId,test:S.b.getConfig("debug")?1:0,cur:["USD"],source:{tid:e.transactionId},tmax:S.b.getConfig("TTL")||1e3,imp:[{exp:300,id:e.adUnitCode,secure:1,ext:o({},e.bidder,e.params),video:y.deepAccess(e,"mediaTypes.video")||{}}],ext:{prebid:{cache:{vastxml:{returnCreative:!1}},targeting:{includewinners:!0,includebidderkeys:!1,pricegranularity:h(S.b)}}}};"rubicon"!==e.bidder&&(n.ext.prebid.aliases=o({},e.bidder,"rubicon"));var i=parseFloat(y.deepAccess(e,"params.floor"));isNaN(i)||(n.imp[0].bidfloor=i),n.imp[0].ext[e.bidder].video.size_id=g(e),function(e,t,n){e&&("object"===a(S.b.getConfig("app"))?e.app=S.b.getConfig("app"):e.site={page:c(t,n)},"object"===a(S.b.getConfig("device"))&&(e.device=S.b.getConfig("device")),t.params.video.language&&["site","device"].forEach(function(n){e[n]&&(e[n].content=r({language:t.params.video.language},e[n].content))}))}(n,e,t),function(e,t){"object"===a(e.imp[0].video)&&void 0===e.imp[0].video.skip&&(e.imp[0].video.skip=t.params.video.skip),"object"===a(e.imp[0].video)&&void 0===e.imp[0].video.skipafter&&(e.imp[0].video.skipafter=t.params.video.skipdelay),"object"===a(e.imp[0].video)&&void 0===e.imp[0].video.pos&&("atf"===t.params.position?e.imp[0].video.pos=1:"btf"===t.params.position&&(e.imp[0].video.pos=3));var n=s(t,"video");e.imp[0].video.w=n[0],e.imp[0].video.h=n[1]}(n,e);var d,f=u(e,"PREBID_SERVER");return f&&y.deepSetValue(n,"user.ext.digitrust",f),t.gdprConsent&&("boolean"==typeof t.gdprConsent.gdprApplies&&(d=t.gdprConsent.gdprApplies?1:0),y.deepSetValue(n,"regs.ext.gdpr",d),y.deepSetValue(n,"user.ext.consent",t.gdprConsent.consentString)),t.uspConsent&&y.deepSetValue(n,"regs.ext.us_privacy",t.uspConsent),e.userId&&"object"===a(e.userId)&&(e.userId.tdid||e.userId.pubcid||e.userId.lipb)&&(y.deepSetValue(n,"user.ext.eids",[]),e.userId.tdid&&n.user.ext.eids.push({source:"adserver.org",uids:[{id:e.userId.tdid,ext:{rtiPartner:"TDID"}}]}),e.userId.pubcid&&n.user.ext.eids.push({source:"pubcommon",uids:[{id:e.userId.pubcid}]}),e.userId.lipb&&e.userId.lipb.lipbid&&(n.user.ext.eids.push({source:"liveintent.com",uids:[{id:e.userId.lipb.lipbid}]}),n.user.ext.tpid={source:"liveintent.com",uid:e.userId.lipb.lipbid},Array.isArray(e.userId.lipb.segments)&&e.userId.lipb.segments.length&&y.deepSetValue(n,"rp.target.LIseg",e.userId.lipb.segments))),!0===S.b.getConfig("coppa")&&y.deepSetValue(n,"regs.coppa",1),e.schain&&b(e.schain)&&y.deepSetValue(n,"source.ext.schain",e.schain),{method:"POST",url:x,data:n,bidRequest:e}});if(!0!==S.b.getConfig("rubicon.singleRequest"))n=i.concat(e.filter(function(e){return"banner"===l(e)}).map(function(e){var n=T.createSlotParams(e,t);return{method:"GET",url:w,data:T.getOrderedParams(n).reduce(function(e,t){var r=n[t];return y.isStr(r)&&""!==r||y.isNumber(r)?"".concat(e).concat(m(t,r),"&"):e},"")+"slots=1&rand=".concat(Math.random()),bidRequest:e}}));else{var d=e.filter(function(e){return"banner"===l(e)}).reduce(function(e,t){return(e[t.params.siteId]=e[t.params.siteId]||[]).push(t),e},{});n=i.concat(Object.keys(d).reduce(function(e,n){var r,i;return(r=d[n],i=10,r.map(function(e,t){return t%i==0?r.slice(t,t+i):null}).filter(function(e){return e})).forEach(function(n){var r=T.combineSlotUrlParams(n.map(function(e){return T.createSlotParams(e,t)}));e.push({method:"GET",url:w,data:T.getOrderedParams(r).reduce(function(e,t){var n=r[t];return y.isStr(n)&&""!==n||y.isNumber(n)?"".concat(e).concat(m(t,n),"&"):e},"")+"slots=".concat(n.length,"&rand=").concat(Math.random()),bidRequest:n})}),e},[]))}return n},getOrderedParams:function(e){var t=/^tg_v/,n=/^tg_i/,r=["account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","us_privacy","rp_schain","tpid_tdid","tpid_liveintent.com","tg_v.LIseg","dt.id","dt.keyv","dt.pref","rf","p_geo.latitude","p_geo.longitude","kw"].concat(Object.keys(e).filter(function(e){return t.test(e)})).concat(Object.keys(e).filter(function(e){return n.test(e)})).concat(["tk_flint","x_source.tid","x_source.pchain","p_screen_res","rp_floor","rp_secure","tk_user_key"]);return r.concat(Object.keys(e).filter(function(e){return-1===r.indexOf(e)}))},combineSlotUrlParams:function(e){if(1===e.length)return e[0];var t=e.reduce(function(t,n,r){return Object.keys(n).forEach(function(i){t.hasOwnProperty(i)||(t[i]=new Array(e.length)),t[i].splice(r,1,n[i])}),t},{}),n=new RegExp("^([^;]*)(;\1)+$");return Object.keys(t).forEach(function(e){var r=t[e].join(";"),i=r.match(n);t[e]=i?i[1]:r}),t},createSlotParams:function(e,t){e.startTime=(new Date).getTime();var n=e.params,o=s(e,"banner"),d=i(n.latLong||[],2),f=d[0],l=d[1],p=S.b.getConfig("rubicon.int_type"),g={account_id:n.accountId,site_id:n.siteId,zone_id:n.zoneId,size_id:o[0],alt_size_ids:o.slice(1).join(",")||void 0,rp_floor:.01<(n.floor=parseFloat(n.floor))?n.floor:.01,rp_secure:"1",tk_flint:"".concat(p||"pbjs_lite","_v3.1.0"),"x_source.tid":e.transactionId,"x_source.pchain":n.pchain,p_screen_res:[window.screen.width,window.screen.height].join("x"),kw:Array.isArray(n.keywords)?n.keywords.join(","):"",tk_user_key:n.userId,"p_geo.latitude":isNaN(parseFloat(f))?void 0:parseFloat(f).toFixed(4),"p_geo.longitude":isNaN(parseFloat(l))?void 0:parseFloat(l).toFixed(4),"tg_fl.eid":e.code,rf:c(e,t)};g.p_pos="atf"===n.position||"btf"===n.position?n.position:"",e.userId&&(e.userId.tdid&&(g.tpid_tdid=e.userId.tdid),e.userId.lipb&&e.userId.lipb.lipbid&&(g["tpid_liveintent.com"]=e.userId.lipb.lipbid,Array.isArray(e.userId.lipb.segments)&&e.userId.lipb.segments.length&&(g["tg_v.LIseg"]=e.userId.lipb.segments.join(",")))),t.gdprConsent&&("boolean"==typeof t.gdprConsent.gdprApplies&&(g.gdpr=Number(t.gdprConsent.gdprApplies)),g.gdpr_consent=t.gdprConsent.consentString),t.uspConsent&&(g.us_privacy=encodeURIComponent(t.uspConsent)),null!==n.visitor&&"object"===a(n.visitor)&&Object.keys(n.visitor).forEach(function(e){null!=n.visitor[e]&&(g["tg_v.".concat(e)]=n.visitor[e].toString())}),null!==n.inventory&&"object"===a(n.inventory)&&Object.keys(n.inventory).forEach(function(e){null!=n.inventory[e]&&(g["tg_i.".concat(e)]=n.inventory[e].toString())});var h=u(e,"FASTLANE");return r(g,h),!0===S.b.getConfig("coppa")&&(g.coppa=1),e.schain&&b(e.schain)&&(g.rp_schain=T.serializeSupplyChain(e.schain)),g},serializeSupplyChain:function(e){if(!b(e))return"";var t=e.ver,n=e.complete,r=e.nodes;return"".concat(t,",").concat(n,"!").concat(T.serializeSupplyChainNodes(r))},serializeSupplyChainNodes:function(e){var t=["asi","sid","hp","rid","name","domain"];return e.map(function(e){return t.map(function(t){return encodeURIComponent(e[t]||"")}).join(",")}).join("!")},interpretResponse:function(e,t){var n=t.bidRequest;if(!(e=e.body)||"object"!==a(e))return[];if(e.seatbid){var r=y.deepAccess(e,"ext.errors.rubicon");Array.isArray(r)&&0<r.length&&y.logWarn("Rubicon: Error in video response");var o=[];return e.seatbid.forEach(function(t){(t.bid||[]).forEach(function(r){var i={requestId:n.bidId,currency:e.cur||"USD",creativeId:r.crid,cpm:r.price||0,bidderCode:t.seat,ttl:300,netRevenue:!1!==S.b.getConfig("rubicon.netRevenue"),width:r.w||y.deepAccess(n,"mediaTypes.video.w")||y.deepAccess(n,"params.video.playerWidth"),height:r.h||y.deepAccess(n,"mediaTypes.video.h")||y.deepAccess(n,"params.video.playerHeight")};r.id&&(i.seatBidId=r.id),r.dealid&&(i.dealId=r.dealid);var u=y.deepAccess(e,"ext.responsetimemillis.rubicon");if(n&&u&&(n.serverResponseTimeMs=u),y.deepAccess(r,"ext.prebid.type")===A.d){i.mediaType=A.d;var c=y.deepAccess(r,"ext.prebid.targeting");c&&"object"===a(c)&&(i.adserverTargeting=c),r.ext.prebid.cache&&"object"===a(r.ext.prebid.cache.vastXml)&&r.ext.prebid.cache.vastXml.cacheId&&r.ext.prebid.cache.vastXml.url?(i.videoCacheKey=r.ext.prebid.cache.vastXml.cacheId,i.vastUrl=r.ext.prebid.cache.vastXml.url):c&&c.hb_uuid&&c.hb_cache_host&&c.hb_cache_path&&(i.videoCacheKey=c.hb_uuid,i.vastUrl="https://".concat(c.hb_cache_host).concat(c.hb_cache_path,"?uuid=").concat(c.hb_uuid)),r.adm&&(i.vastXml=r.adm),r.nurl&&(i.vastUrl=r.nurl),!i.vastUrl&&r.nurl&&(i.vastUrl=r.nurl)}else y.logWarn("Rubicon: video response received non-video media type");o.push(i)})}),o}var u=e.ads;return"object"!==a(n)||Array.isArray(n)||"video"!==l(n)||"object"!==a(u)||(u=u[n.adUnitCode]),!Array.isArray(u)||u.length<1?[]:u.reduce(function(t,r,o){if("ok"!==r.status)return t;var u,c,s=Array.isArray(n)?n[o]:n;if(s&&"object"===a(s)){var d={requestId:s.bidId,currency:"USD",creativeId:r.creative_id||"".concat(r.network||"","-").concat(r.advertiser||""),cpm:r.cpm||0,dealId:r.deal,ttl:300,netRevenue:!1!==S.b.getConfig("rubicon.netRevenue"),rubicon:{advertiserId:r.advertiser,networkId:r.network},meta:{advertiserId:r.advertiser,networkId:r.network}};if(r.creative_type&&(d.mediaType=r.creative_type),r.creative_type===A.d)d.width=s.params.video.playerWidth,d.height=s.params.video.playerHeight,d.vastUrl=r.creative_depot_url,d.impression_id=r.impression_id,d.videoCacheKey=r.impression_id;else{d.ad=(u=r.script,c=r.impression_id,"ninDapIF=true;nnx3c!-- Rubicon Project Ad Tag --x3en
n").concat(u,"nnn

"));var f=i(j[r.size_id].split("x").map(function(e){return Number(e)}),2);d.width=f[0],d.height=f[1]}d.rubiconTargeting=(Array.isArray(r.targeting)?r.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:s.adUnitCode}),t.push(d)}else y.logError("Rubicon: bidRequest undefined at index position:".concat(o),n,e);return t},[]).sort(function(e,t){return(t.cpm||0)-(e.cpm||0)})},getUserSyncs:function(e,t,n,r){if(!C&&e.iframeEnabled){var i="";return n&&"string"==typeof n.consentString&&("boolean"==typeof n.gdprApplies?i+="?gdpr=".concat(Number(n.gdprApplies),"&gdpr_consent=").concat(n.consentString):i+="?gdpr_consent=".concat(n.consentString)),r&&(i+="".concat(i?"&":"?","us_privacy=").concat(encodeURIComponent(r))),C=!0,{type:"iframe",url:E+i}}},transformBidParams:function(e){return y.convertTypes({accountId:"number",siteId:"number",zoneId:"number"},e)}},C=!1;Object(_.registerBidder)(T)}},[469]),pbjsChunk([55],{535:function(e,t,n){e.exports=n(536)},536:function(e,t,n){"use strict";function r(e){var t;t=e.value,o.isArray(t)&&0-1}});var instance=window.Layzr({threshold:100});instance.on("src:before",function(e){e.addEventListener("load",function(t){e.parentElement.classList.add("loaded")})}),document.addEventListener("DOMContentLoaded",function(e){instance.update().check().handlers(!0)}),DS.service("teadsBackfill",["$window",function(e){e.teadsNoFill=function(e){var t,n=window.innerWidth>969,r=window.innerWidtht?e:t}function a(){S.forEach(s)}function u(e,t){var n=t.visiblePx,r=t.visiblePercent;n&&r>=e.shownThreshold&&!e.seen?(e.seen=!0,setTimeout(function(){e.trigger("shown",new _("shown",t))},15)):(!n||r=0&&r.left>=0&&r.bottom1&&(a+=h(o,Math.floor(t/r),n-1,r)),a}function v(e,t){return i(t,o(e.bottom,0))-i(o(e.top,0),t)}function b(e){for(var t=e.offsetLeft,n=e.offsetTop;e=e.offsetParent;)t+=e.offsetLeft,n+=e.offsetTop;return{left:t,top:n}}function m(t,r){var i,o;return t=t.split(","),o=n.filter(n.map(t,function(t){return(i=e.querySelector(t))&&new y(i).on("shown",function(){n.invokeMap(o,"destroy"),r()})}))}var y,_,S=[];y=function(e,t){t=t||{},this.el=e,this.seen=!1,this.preload=!1,this.preloadThreshhold=t&&t.preloadThreshhold||0,this.shownThreshold=t&&t.shownThreshold||0,this.hiddenThreshold=t&&i(t.shownThreshold,t.hiddenThreshold)||0,S.push(this),s(this)},y.prototype={destroy:function(){S.splice(S.indexOf(this),1)}},r.enable(y.prototype),_=function(e,t){this.type=e,n.assign(this,t)},e.addEventListener("scroll",n.throttle(a,200)),this.getPageOffset=b,this.getLinearSpacialHash=h,this.getVerticallyVisiblePixels=v,this.getViewportHeight=d,this.getViewportWidth=f,this.isElementNotHidden=l,this.isElementInViewport=p,this.watchForAny=m,this.Visible=y}]);"use strict";var _typeof="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};!function(){function e(t,n,o){function r(c,s){if(!n[c]){if(!t[c]){var a="function"==typeof require&&require;if(!s&&a)return a(c,!0);if(i)return i(c,!0);var u=new Error("Cannot find module '"+c+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[c]={exports:{}};t[c][0].call(l.exports,function(e){return r(t[c][1][e]||e)},l,l.exports,e,t,n,o)}return n[c].exports}for(var i="function"==typeof require&&require,c=0;c1){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=n.write?n.write(r,t):encodeURIComponent(String(r)).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 i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u]));return document.cookie=t+"="+r+a}t||(c={});for(var l=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,f=0;f-1&&(console.log("removing serviceworker"),a.unregister())}}catch(e){r=!0,n=e}finally{try{!t&&o.return&&o.return()}finally{if(r)throw n}}});var t=e("../../services/client/slate-amplitude");window.addEventListener("load",function(){navigator.serviceWorker.register("/sw.js").then(function(e){},function(e){console.error("ServiceWorker registration failed: ",e)})}),window.addEventListener("beforeinstallprompt",function(e){e.userChoice.then(function(e){"dismissed"===e.outcome?t.track("PWA - dismissed install prompt"):t.track("PWA - Added to Home Screen")})})}}()},{"../../services/client/slate-amplitude":2}],2:[function(e,t,r){var n=void 0,i=function(e){return n||(e=e||document.querySelectorAll("script.js-analytics-js-data")[0],n=JSON.parse(e.textContent))},o=function(e,t,r){var n=i(),o={};Object.assign(o,n,t),amplitude.getInstance().logEvent(e,o,r)},a=function(e,t){amplitude.getInstance().logEvent("Loaded a Page",e,t)};t.exports.getDomEventData=i,t.exports.page=a,t.exports.track=o},{}]},{},[1]);"use strict";var _typeof="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};!function(){function e(t,n,o){function r(c,s){if(!n[c]){if(!t[c]){var u="function"==typeof require&&require;if(!s&&u)return u(c,!0);if(i)return i(c,!0);var a=new Error("Cannot find module '"+c+"'");throw a.code="MODULE_NOT_FOUND",a}var f=n[c]={exports:{}};t[c][0].call(f.exports,function(e){return r(t[c][1][e]||e)},f,f.exports,e,t,n,o)}return n[c].exports}for(var i="function"==typeof require&&require,c=0;ct&&n-t1){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=n.write?n.write(r,t):encodeURIComponent(String(r)).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 u="";for(var a in i)i[a]&&(u+="; "+a,!0!==i[a]&&(u+="="+i[a]));return document.cookie=t+"="+r+u}t||(c={});for(var f=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,p=0;p2592e6&&(n=0),"article"!=e&&"coverstory"!=e&&"plus"!=e||(n+=1),1===n&&(o=i),r.set(U,{pv:n,first:o},{expires:365}),n}function p(e){var t=document.body.querySelector("."+e);if(t){var n=t.dataset.uri;if(n&&n.split("/")[2]===e)return t}}function v(e,n){var r=x.getDomEventData(n);r.search=window.location.search,r.amplitude_id=e.options?e.options.deviceId:"no options - no deviceId";var s=u();s&&(r.plan=s),N&&(r.signed_in_uuid=N),r.taboola_loaded=o(i()),r.taboola_eligible=o(a()),window.Scroll&&Scroll.config.detected&&(r.isScrollUser=!0),r.visitstart=o(l());try{r.adBlocker=o(I())}catch(e){console.error(e)}var d=f(n.dataset.pagetype);isNaN(d)||(r.Nth_pageview=d+""),c().length>0&&(r["Affiliate Link"]="✅"),p("product")&&(r["Product Component"]="✅");var v=p("newsletter-signup");r["Includes Newsletter Signup"]=o(v),v&&(r["Newsletter Signup Placement"]="In Content");var m=p("slate-plus-button");if(m){var g=m.querySelector(".slate-plus-button__basic");g&&(r["Slate Plus Button Component"]=g.innerText)}var b=!s&&p("slate-roadblock");r["Includes Slate Plus Roadblock"]=o(b),x.page(r),t.removeFromLocation()}function m(e){var t=u();t&&(e.plan=t)}function g(e){N&&(e.signed_in_uuid=N)}function b(e){var t=window.Scroll&&Scroll.config.detected;t&&(e.scrollUser=t)}function h(e){var t=r.get("AB");e.abTest=T(t)?t:"0"}function w(){var e=document.querySelector(".slate-paragraph--tombstone");if(e){var t=n.once(function(){x.track("Completed article"),C.track("ArticleCompletion"),document.removeEventListener("scroll",r)}),r=n.throttle(function(){var n="scrollY"in window?window.scrollY:window.pageYOffset;e.offsetTop+e.offsetHeight1){if(i=e({path:"/"},r.defaults,i),"number"==typeof i.expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*i.expires),i.expires=c}i.expires=i.expires?i.expires.toUTCString():"";try{a=JSON.stringify(o),/^[{[]/.test(a)&&(o=a)}catch(e){}o=n.write?n.write(o,t):encodeURIComponent(String(o)).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 s="";for(var u in i)i[u]&&(s+="; "+u,!0!==i[u]&&(s+="="+i[u]));return document.cookie=t+"="+o+s}t||(a={});for(var l=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,f=0;f1){if(i=e({path:"/"},r.defaults,i),"number"==typeof i.expires){var u=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*i.expires),i.expires=u}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(o),/^[{[]/.test(c)&&(o=c)}catch(e){}o=t.write?t.write(o,n):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[()]/g,escape);var f="";for(var s in i)i[s]&&(f+="; "+s,!0!==i[s]&&(f+="="+i[s]));return document.cookie=n+"="+o+f}n||(c={});for(var a=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,l=0;l1){if(i=e({path:"/"},r.defaults,i),"number"==typeof i.expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*i.expires),i.expires=s}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(o),/^[{[]/.test(c)&&(o=c)}catch(e){}o=n.write?n.write(o,t):encodeURIComponent(String(o)).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 u="";for(var a in i)i[a]&&(u+="; "+a,!0!==i[a]&&(u+="="+i[a]));return document.cookie=t+"="+o+u}t||(c={});for(var d=document.cookie?document.cookie.split("; "):[],f=/(%[0-9A-Z]{2})+/g,l=0;l

Cnc Machining Mobile Phone Spare Parts

Aluminum Parts, Fitness Equipment Parts, Forklift Parts, Massage Chair Parts - Hanye,https://www.hanye-plastic.com/