Alan Cumming is reshaping the idea of a reality TV host with his unbending performance as the mad king of Traitors.
ByRebecca Alter,
a staff writer who covers comedy and pop culture
Photo: Beth Sacca. Stylist: Sam Spector. Groomer: Michael Moreno. Officine cape, Aknvas pants, Greats boots.
Photo: Beth Sacca. Stylist: Sam Spector. Groomer: Michael Moreno. Officine cape, Aknvas pants, Greats boots.
This article was published on March 7, 2024. At the 2024 Emmys, The Traitors won the award for Outstanding Reality Competition Program.
On a grayish Thursday afternoon in the East Village, Alan Cumming can be found at — where else? — Club Cumming. It’s a bar–cum–performance space–cum–queer community space, and it’s the rare indispensable celebrity side-hustle drinking establishment in a city full of dispensable ones. Club Cumming hosts popular drag shows and showcases young queer comics, and, on lucky nights, Cumming himself performs, but during the weekday, it’s dark and quiet, the bentwood chairs all empty around him. Cumming is finishing his green juice (he is famously vegan) and the remains of an energy bar (he even more famously has a great body at 59) when he ushers me over to the best seat in the house, a table pressed right up against the stage. He bundles up his big, fluffy white coat and lays it on the bench next to him as a bed for his longtime television co-star, his little black silky-haired rescue dog named Lala.
Cumming just got back from a gay cruise where he’d been performing his show, “Och & Oy!,” with Ari Shapiro. The last time he performed on a cruise, it was “like a zombie film, where instead of zombies it’s boys in jockstraps coming for you.” But this year’s cruise “was more sort of murder-mystery gays. Don’t get me wrong, I love them both.” If “murder-mystery gays” are a type, then Cumming has superseded Jessica Fletcher as their king thanks to his role as the host of Peacock’s breakout castle-intrigue reality show, The Traitors. Cumming could have easily coasted into the job on existing star power and the delicious way he purrs about murrrrder and treachery. Instead, he’s giving what might be his juiciest onscreen performance in years, a hybrid acting role that is part narrator, part mediator, and part Scottish Jigsaw, turning what could have been any other “bunch of people living and fighting together in a big house” competition series into one of Peacock’s biggest-ever hits and one of the most-watched unscripted series on streaming so far this year.
“They came to me with this, and I was like, What the fuck? Why?” It’s true that Cumming isn’t the most obvious choice for a Probstian reality host. In an interview with The Guardian in 2019, he said, “I just wish everyone would go on a reality TV show, so we’ll all have done it and we can get it out of our system and move on.” But now that he’s done it, he’s got no plans of moving on.Cumming calls himself a bit of a contrarian; if his team tells him he probably shouldn’t do something, it immediately piques his curiosity. And so, decades into a career that has spanned Edinburgh Fringe to Broadway, art house to X-Men, gay-rights advocacy, children’s-book authorship, fragrance sciences, and a late-career turn as a barman, Cumming is adjudicating scavenger hunts and presiding over D-list-on-D-list-violence. “People are likely to ask me to do weird things because I’ve done weird things in the past. Eclecticism breeds eclecticism.”
For those who are living under a rock or without a Peacock subscription, the premise of The Traitors is the children’s game Mafia on a theatrical scale. Of the 20-some cast members in total, a small number have been secretly assigned the role of “Traitor” and must work in concert to eliminate the majority, the “Faithfuls.” The Faithfuls are aware of the Traitors’ existence but not their identities, and over the course of several weeks, endeavor to sniff them out. The game alternates between phases of Traitor mischief and Faithful strategizing, all of which ultimately looks the same: Players get voted out of the game and are forced to leave the Scottish Highlands castle in which the competition takes place. Currently, there are 22 international versions of The Traitors, including iterations in Flemish, Quebecois French, and one illegal, unsanctioned Russian version. But back when producers approached Cumming to host the series, there was only the Dutch original, which premiered in 2021. Cumming found the premise compelling, and the producers of the American version explained how they would heighten it: “Do it in a big castle, make it so much more glamorous and theatrical. I said, ‘You kind of want me to be a James Bond villain?’ And they were like, ‘Yes!’ I decided that it should be ‘my’ castle. I live in the castle and I’ve invited people to my castle. I made this narrative for myself for it to be able to work.” The castle in question is Ardross, located in the Scottish Highlands, and Cumming’s regal bearing on the show is convincing enough that at least two of my colleagues thought Cumming really did own the joint (he does not).
Cumming arrives at “his” castle for rehearsal a few days before the contestants, and filming takes just under a month. Cumming oversees every step of the game onscreen: interviewing contestants; selecting Traitors; moderating challenges, banishments, and conspiratory Traitor sessions in the castle turret; refereeing the occasional fight; and narrating all of the above to viewers. Henever breaks character when interacting with the cast, which is made up this season of miscellaneous minor celebrities and reality stars from established mega-franchises like The Bachelorand Survivor. Early into filming the first season, he figured out who his character was by playing off the cast. “He came to be this stern daddy. He’s cheeky, but also, don’t fuck with him.” And to Cumming’s amusement, the cast seems genuinely scared of him at times, treating him as an almost omniscient voice of God on the show. “I love when they’re in a big, heated argument, and they’re like, ‘Alan said that, blah blah,’ trying to pick up bits of nuance and looking for clues. I love being a part of the narrative.”
Cumming hosted the cast at Club Cumming the other week, getting everyone together for drinks, and he was tickled by their reactions to meeting the “real” him for the first time. “It’s like when you see your therapist on the street, like, Oh! They can stand up!” Very occasionally, a cast member has burst that bubble. He remembers toward the beginning of season one, “I was very nervous, trying to keep my distance from them and play this character, and as Brandi Glanville went past, she goes, ‘I saw Cabaret on Broadway!’”He teases a moment in tonight’s finale where a mishap made him break character briefly with the cast — “You see it a bit in the trailers; we were on this ship, and something happened where I actually did have to engage with them for a little longer than I would have liked” — but reveals no more about the episode.
In addition to hosting, Cumming is credited as a producer on the series. Though he’s not designing endurance challenges like this season’s live burial or last season’s cursed fairground, he informs the playful Gothic style and tone of the series. He works with the writers to script his florid spiels, which he delivers while bidding murdered players adieu (players are “murdered” at night with a note left for them by the Traitors, and they leave before breakfast the next morning), presiding over banishment ceremonies at the roundtable, and introducing elaborate challenges.
“In a way, I am in drag as the host of this show.” Photo: Euan Cherry/Peacock.
“In a way, I am in drag as the host of this show.” Photo: Euan Cherry/Peacock.
In season one, he fought to quote Shakespeare and Plato, even though the writers thought it wouldn’t click for American audiences. Many of his improvisations have become crucial to the series’ formula; when I tell him that Traitors U.K. host Claudia Winkleman copied his invention of smashing the latest murder victim’s portrait on the floor at breakfast, he gasps, “Bitch stole my look!” Also informing the show’s tone, and often stealing the show entirely, is Cumming’s wardrobe, a collaboration with stylist Sam Spector in which they invented a “dandy Scottish Laird” character for Cumming to play by augmenting jewel-toned tartans and tams — many of them from his own closet — with extravagant flourishes like brooches, ruffles, and sashes. In one birdcall-themed challenge, he wears a floppy beret sprouting peacock feathers, a masterstroke of brand integration. Before Cumming even opens his mouth, the clothes invite viewers to enter a weird little world of fantasy-reality and inform the way Cumming plays the part of game master. “In a way, I am in drag as the host of this show.”
Other producerial duties? Putting out fires when tensions among contestants get too high, probing them for moments of great dialogue (Traitor and former Real Housewife of Atlanta Phaedra Parks makes for an excellent scene partner), and helping decide who the season’s Traitors will be and how many. A good Traitor is never the first person viewers would expect, but they have to be totally committed to scheming and trickery, too. Sometimes, that means a quiet strategist. Other times, it’s just someone who will be fun for the audience to spend a lot of time with. This year, Cumming and the other producers decided to shake up the amount of Traitors chosen during the first ceremony so the cast couldn’t identify tropes and patterns from the previous season. They also introduced preselection interviews between Cumming and each cast member to gauge whether they’d make a compelling Traitor or if they even wanted to be one. “There’s got to be drama. People would think Dan was prime Traitor material; Phaedra, absolutely not, but she had good meme potential. That was the rationale, the surprise element: the double bluff of Dan and the mix of shock and she would bring it of Phaedra. What is good telly and what is a good game? Most often, they coincide.” The producers decided on their Traitors shortly after the interviews, a couple of hours before the tapping-on-the-shoulder ceremony.
Cumming admits this is the most nerve-racking thing to film. “It’s my least favorite part of the whole show. First of all, we go around the whole table and I tap everybody so they’ve got it all on-camera. It makes everyone feel like It could be me! Then I go round and round and round. It’s so quiet. I stop. I squeak my shoes. I make noises with the fabric of my sleeve. Last year, I went around backwards. It’s really so terrifying for me because I feel the tension.” For the record, this is probably the part of the show that most resembles a game of Mafia you might’ve played at summer camp; it’s remarkable how much drama the show can wring from something so lo-fi. “I’m always worried that I could fuck it up if I bash the wrong person. There’s 21 of them squashed in at that table. Johnny Bananas was sitting really close to Phaedra and it was hard to get my arm in.”
Oftentimes, Cumming feels like a viewer of the TV show as it’s unfolding in front of him, watching players make bad decisions, unable to stop them. He compares the show to a sociological experiment, an exercise in pack mentality. He points to how Parks fiercely clung to and defended a clique of former Bravo stars, citing their shared experience as a reason to trust one another. “It was Lord of the Flies: Housewives. The way Phaedra’s like, ‘Don’t come for the Housewives,’ is so counterintuitive to what the game’s about. It encourages a very open alliance purely because they were on the same network. Bravo against the others.” When alliances in the game are built on long-standing personal histories, it makes those moments of fissure — like when current RHOA cast member Shereé Whitfield wisens up to Parks and votes her out — that much more impactful. “But it’s juicy as anything,” says Cumming.
The flip side comes in those moments when he can watch contestants come into their own and upend expectations. This season, he points to Peter Weber, who led efforts to get Traitors Dan Gheesling and Parvati Shallow eliminated and rejected an offer to be recruited by them. Shallow is an example of someone who might have been too obvious a choice of Traitor, having earned a reputation as a fierce tactical player on multiple seasons of Survivor;whenParks and Gheesling recruited her early on in the season, it seemed like she could go all the way, but Weber was onto her from the jump. “I think Pilot Pete has confounded the notion that people who are good at games like Survivor are going to have an advantage. He’s the pretty boy from The Bachelor, and he’s the one who has done great strategy and kind of nailed it.”
“People would think Dan was prime Traitor material; Phaedra, absolutely not, but she had good meme potential.”
Photo: Euan Cherry/Peacock
One major upgrade for season two was the “big telly” in Cumming’s castle changing room, where he had a behind-the-scenes live feed of every room to spy on contestants scheming and socializing between challenges. “I can hear what they’re saying at breakfast: what the mood is, who’s freaking out. I can hear them talking about me. It’s sort of my villain’s lair.” He uses this info to “turn the screws a bit,” getting quotes out of players and catching them off guard. There’s magic in the show’s high-low contrast; one minute, Cumming will be reciting a poetic adage about death, and the next, he’s laughing watching contestants getting snatched up in giant nets in the woods, Looney Toons–style. He enjoys watching the show up the ante as it goes, citing a recent challenge where bugs were dumped on players in the dark. “They were all so exhausted. They have to do all these physical things, and they don’t get to sleep much. It’s sleep deprivation, physical exhaustion, and mental mindfuck …” There’s a wicked gleam in his eye. “It’s hilarious.”
There’s a misconception about reality TV, that drama and action are all manufactured and drummed up in the edit. In Cumming’s telling, things are far more dramatic in person. The season-one finale, in which traitor Cirie Fields fooled everyone, making her way to the end and taking the entire cash prize, was “heavily edited because it was so awful. They really turned on her.” Cumming had already left the bonfire set where the finale was filming, but production rushed him back to defuse the situation. “I had to give her a hug — she just won this fucking thing, and she said this money was really going to change her family’s life! She was being pounded with guilt and really mean words by two very wounded people: Quentin was just furious, and Andie was devastated because of their personal friendship with Cirie. This went on for quite a while before they brought me back.”
But these are the twists that make The Traitors so addicting. Cumming attributes its success to people’s fascination with lying, and also the old-school weekly release schedule. “It’s the water cooler — we haven’t had that for years! Things to do with mystery and intrigue and obsession are better when they’re collective, because you get to talk with other people and obsess with them. Maybe our days of binging are ebbing.” Cumming’s as obsessed with the series as everyone else, and he’s both “lonely” and “crazy with power” as the season airs and he’s sitting on spoiler-filled tea. But he’ll soon have a distraction in season three, which begins filming this spring. “There will be more Lala content next season,” Cumming teases, as the starlet quietly stands up to let us know it’s time for her walk. “Producer Sam Rees-Jones said, ‘I know we need more Lala content, believe me, that’s been discussed with the studio,’ when all she does is just sit there in a kilt.” Cumming dons his fluffy white coat, gets Lala leashed up, and heads out. It’s a Thursday: He’ll go home, make dinner for himself and his husband, and set it up in front of the TV. Traitors is on.
By submitting your email, you agree to our
Terms and Privacy Notice
and to receive email correspondence from us. This site is protected by reCAPTCHA and the Google
Privacy Policy and
Terms of Service apply.
or
Already a subscriber?
What is your email?
This email will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
Password must be at least 8 characters and contain:
Lower case letters (a-z)
Upper case letters (A-Z)
Numbers (0-9)
Special Characters (!@#$%^&*)
This password will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
You’re in!
As part of your account, you’ll receive occasional updates and offers from New York, which you can opt out of anytime.
or
Already a subscriber?
What is your email?
This email will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
Password must be at least 8 characters and contain:
Lower case letters (a-z)
Upper case letters (A-Z)
Numbers (0-9)
Special Characters (!@#$%^&*)
This password will be used to sign into all New York sites. By submitting your email, you agree to our Terms and Privacy Policy and to receive email correspondence from us.
You’re in!
As part of your account, you’ll receive occasional updates and offers from New York, which you can opt out of anytime.
Already a subscriber?
Already a subscriber?
`;
// integrate Sub(x) scripts and elements
if (hostname !== 'subs.nymag.com') { // do not integrate on this subdomain
document.head.appendChild(trackingScript);
document.body.insertAdjacentHTML('beforeend', subXAnimationElements);
}
There was an error processing the request. Please try again later."}).catch(e=>console.error("Error verifying email: ",e)))(r.querySelector(".content"),o.bannerCTAVerification)})):(l.remove(),s.remove()),o.dismissable||n.remove(),o.useAlertIcon||a.remove(),r.classList.add("show"),n.addEventListener("click",()=>{u(),r.classList.remove("show")})}else r.remove()}});
}, {"1":1,"6":6,"12":12,"35":35,"40":40}];
window.modules["global-nav.client"] = [function(require,module,exports){"use strict";const dom=require(3),auth=require(12),signInButton=dom.find(".user-signin"),signOutButton=dom.find(".user-signout"),globalNav=dom.find('[class^="global-nav"]'),body=dom.find("body"),dropdownItems=dom.findAll(".dropdown-wrap"),gtm=require(1),appendLandingPageParams=require(136),pageUri=require(124).getPageUri(),subscriptionPromoLinks=dom.findAll(".persist-params"),searchString=window.location.search||"";function closeDropdowns(e){let n=globalNav.querySelectorAll(".dropdown.open");dropdownItems.forEach(function(t){let o=t.querySelector(".dropdown");!n||t.contains(e.target)&&27!==e.keyCode||o.classList.remove("open")})}function gtmSendReport(e,n,t){let o={eventCategory:"ecommerce",eventAction:"componentClick",brand:e,dimension23:"global-nav",list:pageUri,pageZone:"header",variant:"nav-link"};"global-nav-link"===t&&(o.eventLabel=n.href),gtm.reportNow(o)}function updateElementTargetUrlsIfQueryStrings(e){if(searchString){const n=new URLSearchParams(searchString);let t=e.href;if(t.includes("?")){const o=t.split("?"),i=new URLSearchParams(o[1]);for(let e of n.entries())i.set(e[0],e[1]);t=`${o[0]}?${i.toString()}`,e.href=t}else e.href=`${t}?${n.toString()}`}}function init(e){const n=e.querySelectorAll(".to-landing-page");window.addEventListener("auth:init",()=>{signInButton.addEventListener("click",function(e){e.preventDefault(),auth.showEmbeddedLoginFlow("top navigation")}),signOutButton.addEventListener("click",function(e){e.preventDefault(),gtmSendReport("Sign Out",e.target,"user-info-link"),auth.logout()}),auth.isAuthenticated()&&e.classList.add("signed-in"),auth.isSubscriber()&&e.classList.add("subscribed"),e.querySelectorAll(".user-link").forEach(e=>{e.classList.add("active")}),subscriptionPromoLinks.forEach(e=>{updateElementTargetUrlsIfQueryStrings(e)}),appendLandingPageParams(n)})}dropdownItems.forEach(function(e){e.addEventListener("click",function(){e.querySelector(".dropdown").classList.toggle("open")})}),body.addEventListener("click",closeDropdowns),document.addEventListener("keydown",closeDropdowns),globalNav.addEventListener("click",function(e){let n=e.target;n.classList.contains("global-nav-track")&>mSendReport(n.text,n,"global-nav-link")}),module.exports=init;
}, {"1":1,"3":3,"12":12,"124":124,"136":136}];
window.modules["aaa-module-mounting.legacy"] = [function(require,module,exports){"use strict";const _pickBy=require(221),_each=require(408),Fingerprint2=require(407),DS=require(406),Eventify=require(246);function registerGlobals(){window.DS=DS,window.Eventify=Eventify,window.Fingerprint2=Fingerprint2,DS.value("Eventify",Eventify),DS.value("Fingerprint2",Fingerprint2),DS.value("$document",window.document),DS.value("$window",window)}function mountDollarSliceComponents(){DS.service("components",["$document","$module",function(e,n){var o=_pickBy(n.definitions,e=>e.providerStrategy===n.providers.controller),r=Object.keys(o);function t(e){return o=>{try{n.get(e,o)}catch(e){logMountError(o,e)}}}_each(r,n=>{var o=e.querySelectorAll('[data-uri*="/_components/'+n+'/"]'),r=e.querySelectorAll('[data-uri$="/_components/'+n+'"]');_each(o,t(n)),_each(r,t(n))}),this.components=r}]),DS.get("components")}function logMountError(e,n){const o=e.outerHTML.slice(0,e.outerHTML.indexOf(e.innerHTML));console.error("Error attaching controller to "+o,n)}registerGlobals(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>{mountDollarSliceComponents()}):mountDollarSliceComponents();
}, {"221":221,"246":246,"406":406,"407":407,"408":408}];
window.modules["ads.legacy"] = [function(require,module,exports){"use strict";const _map=require(118),_forEach=require(107),_isString=require(268),_intersectionWith=require(409),_isEqual=require(274),_each=require(408),_debounce=require(182),_sortBy=require(205),page=require(124),visit=require(114);DS.service("adService",["Eventify","$cid","$document","$window",function(e,t,a,i){var o,n,s,r,d,c,u,l,g={},p=this,h=[],f=visit.getQueryParamsObject(["utm_campaign"]),m=document.querySelector('script[data-type="ad-a9"]'),b=[],w=!1,v=[],y=document.querySelector('script[data-name="ad-doubleverify"]');document.querySelector('script[data-name="concert-ads"]')||(i.NYM={},i.NYM.analytics={},i.NYM.analytics.adStartTime=i.performance.now(),i.googletag=i.googletag||{},i.googletag.cmd=i.googletag.cmd||[],u=i.googletag,(m||y)&&(i.googletag.cmd=i.googletag.cmd||[],i.googletag.cmd.push(function(){i.googletag.pubads().disableInitialLoad()})),m&&(l=i.setInterval(function(){void 0!==window.apstag&&void 0!==window.apstag.timeout&&(i.clearInterval(l),window.apstag.cleared=!0,l=null)},10),setTimeout(function(){l&&(i.clearInterval(l),i.googletag.pubads().refresh(),window.apstag||console.log("MESSAGE: Timeout for A9 load exceeded, aborting"))},500)),y&&(b.push(new Promise(function(e){w?e():v.push(e)})),c=i.setTimeout(T,2500)),o=function(e){var t,a,o=e.data,n=[];return o.loaded?e:(o.loaded=!0,t=null,(t=o.sizes?u.defineSlot(o.name,o.sizes,o.id).addService(u.pubads()):u.defineOutOfPageSlot(o.name,o.id).addService(u.pubads())).setTargeting("adid",o.id),f.hasOwnProperty("utm_campaign")&&t.setTargeting("utmcamp",f.utm_campaign),a=p.getAdCount(o.label),t.setTargeting("label",o.label+"_"+o.site+"-"+a),u.display(o.id),u.pubads().addEventListener("slotOnload",function(){i.NYM.analytics.firstAdLoadTime||(i.NYM.analytics.firstAdLoadTime=i.performance.now(),i.NYM.analytics.firstAdLoadLabel=e.data.label)}),n=_(o),Promise.all(b).then(function(){n?window.apstag&&window.apstag.cleared?window.apstag.fetchBids({slots:[n],timeout:window.apstag.timeout},function(){u.cmd.push(function(){window.apstag.setDisplayBids(),u.pubads().refresh([t],{changeCorrelator:!1})})}):y&&u.pubads().refresh([t],{changeCorrelator:!1}):u.pubads().refresh([t],{changeCorrelator:!1})}),e.slot=t,e)},n=function(e){var a,i,o,n=t(),s=e.getAttribute("data-name"),r=e.getAttribute("data-sizes"),d=e.getAttribute("data-label"),c=e.getAttribute("data-site");n=e.id,r&&r.length?(r=r.split(","),a=[],_map(r,function(e){e=e.split("x"),i=parseInt(e[0]),o=parseInt(e[1]),a.push([i,o])})):(e.classList.add("oop"),a=!1),this.data={id:n,name:s,sizes:a,loaded:!1,label:d,site:c},g[n]=this},r=function(e){u.cmd.push(function(){var t=o(e);g[e.data.id]=t})},s=function(e){var t=[];e.slot?(t=_(e))&&window.apstag&&window.apstag.cleared&&window.apstag.fetchBids({slots:[t],timeout:window.apstag.timeout},function(){u.cmd.push(function(){window.apstag.setDisplayBids(),u.pubads().refresh([e.slot],{changeCorrelator:!1})})}):e&&r(e)},u.cmd.push(function(){var e,t,o,n=page.getMeta("article:tag"),s=page.getMeta("author"),r=i.location.href,d=(e=a.head.querySelector(".head-gtm"),t=a.body.querySelector(".gtm"),e&&"top"===e.getAttribute("data-gtm")?"gtmtop":t&&"bottom"===t.getAttribute("data-gtm")?"gtmbottom":"");o=[],_forEach([n,s,d],function(e){_forEach(e.split(","),function(e){(e=e.trim().toLowerCase().replace(/\s/g,"-").replace(/\'|\’/g,"")).length&&o.push(e)})}),u.pubads().setTargeting("kw",o),u.pubads().setTargeting("entry_group",o),r=r.slice(r.lastIndexOf("/")+1),u.pubads().setTargeting("pn",r),u.companionAds().setRefreshUnfilledSlots(!0),u.pubads().enableAsyncRendering(),u.enableServices()}),this.load=r,this.create=function(e){return new n(e)},this.refresh=function(e){var t;_isString(e)?(t=this.getById(e),s(t)):s(e)},this.remove=function(e){var t=e.data.id;a.getElementById(t).innerHTML=""},this.getAdCount=function(e){var t,a=0,i=Object.keys(g);return _each(i,function(i){(t=g[i]).data.loaded&&t.data.label===e&&a++}),a},this.getById=function(e){return g[e]},d=_debounce(function(){var e={TopLeaderboard:1,RightColTopMPU:2,outOfPage:99,"homepageTakeover/TopLeaderboard":1},t=_sortBy(h,function(t){return e[t.data.label]||10});_forEach(t,function(e){return e.data.sizes?r(e):i.setTimeout(function(){r(e)},2e3)}),y&&window.PQ.cmd.push(()=>{try{window.PQ.loadSignals(["ids","bsc","vlp"],T)}catch(e){T(),console.error(`There has been an error loading Double Verify signals: ${e}`)}}),h=[]},10),this.addToPageLoadQueue=function(e){h.push(e),d()});function _(e){var t,a=e.sizes;return a=_intersectionWith(a,[[970,250],[970,90],[728,90],[300,600],[300,250],[320,100],[320,50]],_isEqual),e.sizes&&e.sizes.length&&(t={slotID:e.id,sizes:a,slotName:e.label}),t}function T(){i.clearTimeout(c),w=!0,_forEach(v,function(e){e()})}}]);
}, {"107":107,"114":114,"118":118,"124":124,"182":182,"205":205,"268":268,"274":274,"408":408,"409":409}];
window.modules["cid.legacy"] = [function(require,module,exports){"use strict";DS.service("$cid",function(){var r=Math.floor(100*Math.random());return function(){return"cid-"+ ++r}});
}, {}];
window.modules["client.legacy"] = [function(require,module,exports){"use strict";require("cid.legacy"),require("ads.legacy"),require("facebook.legacy"),require("aaa-module-mounting.legacy");
}, {"cid.legacy":"cid.legacy","aaa-module-mounting.legacy":"aaa-module-mounting.legacy","ads.legacy":"ads.legacy","facebook.legacy":"facebook.legacy"}];
window.modules["facebook.legacy"] = [function(require,module,exports){"use strict";DS.service("facebook",[function(){this.fb=function(i){window.FB&&window.FB[i].apply(this,Array.prototype.slice.call(arguments,1))}}]);
}, {}];
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o typeof key === 'string' && key.match(/\.legacy$/)).forEach(key => window.require(key));
}
function tryToMount(fn, el, name) {
try {
fn(el); // init the controller
} catch (e) {
const elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML));
console.error(`Error initializing controller for "${name}" on "${elementTag}"`, e);
}
}
/**
* mount client.js component controllers
*/
function mountComponentModules() {
Object.keys(window.modules).filter(key => typeof key === 'string' && key.match(/\.client$/)).forEach(key => {
let controllerFn = window.require(key);
if (typeof controllerFn === 'function') {
const name = key.replace('.client', ''),
instancesSelector = `[data-uri*="_components/${name}/"]`,
defaultSelector = `[data-uri$="_components${name}"]`,
instances = document.querySelectorAll(instancesSelector),
defaults = document.querySelectorAll(defaultSelector);
for (let el of instances) {
tryToMount(controllerFn, el, name);
}
for (let el of defaults) {
tryToMount(controllerFn, el, name);
}
}
});
}
// Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies,
// services, or components that could require it
// note: the `` value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js
window.process = window.process || {};
window.process.env = window.process.env || {};
if (!window.process.env.NODE_ENV) {
window.process.env.NODE_ENV = '';
}
// note: legacy controllers that require legacy services (e.g. dollar-slice) must
// wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first
mountLegacyServices();
mountComponentModules();
// ]]