What Makes Us So Sure Sean Baker Can Sneak Anora Into the Oscars?
ByNate Jones,
a Vulture senior writer covering movies and pop culture
And nine other unanswered questions hovering over this Academy Awards season.
Photo: NEON
While Oscar hopefuls spend October jetting off to regional film festivals in the Hamptons, Mill Valley, and Middleburg, for the rest of us the month functions as a brief pause for breath. Almost all of the major contenders have screened, but they remain cosseted away in industry bubbles, unseen by the public at large. That ends this weekend, when Sean Baker’s Palme d’Or winner Anora opens in New York and Los Angeles. To commemorate the occasion, here are ten questions — one for each of GoldDerby’s top ten Best Picture contenders — that remain unanswered in this “phony war” period of the 2025 Oscar season.
1. What makes us so sure this is the year the Academy embraces Sean Baker?
Vanity Fair’s Richard Lawson has been throwing cold water on Anora enthusiasts by noting that — while the movie’s undoubtedly great — Sean Baker’s previous films The Florida Project and Red Rocket were pretty great, too, and garnered only a single Oscar nomination between them. The assumption that this time will be different rests on two data points: Anora’s Palme d’Or win, which was awarded by a jury of nine people, and its third-place finish at TIFF, which is another way of saying the Canadians liked it almost as much as they liked The Life of Chuck.
2. How many minutes will it take for out-of-context screenshots from Emilia Pérez to start going viral on social media?
And which angle of outrage will have the most valence: that the movie is a trans-empowerment narrative written and directed by a cis man, or that it’s a tale of Mexican-cartel violence made by a Frenchman?
3. Similarly, who will be most offended by Conclave …
Right-wing Catholics or members of a certain underrepresented community, who will find the movie gives them a different kind of representation than they bargained for?
4. Can The Brutalist survive on a preferential ballot?
One of the best pieces of awards-season wisdom I’ve ever heard came from a veteran campaign strategist, who told me that in the era of the preferential ballot, “most likable” beats “grandest achievement” nine times out of ten. That’s gonna be tough for a dour colossus like The Brutalist, which might as well be wearing a T-shirt that says “ASK ME ABOUT MY GRAND ACHIEVEMENT.” Can Brady Corbet’s film follow the same path as Oppenheimerwithout the benefit of a $900 million gross?
The heartfelt indie had a reportedly well-attended Academy screening in New York this week, and, in a move I don’t think I’ve ever seen before, its campaign also scheduled a fresh round of fall press screenings, almost as if the film had not already been released. The plan here appears to be to reprise the CODA playbook, and like that film, Sing Sing should benefit greatly from getting its entire cast together on the trail.
Steve McQueen’s war epic is the movie equivalent of jellied eels: While American critics are damning Blitz with faint praise, their British counterparts are breaking out their OEDs to find synonyms for “masterpiece.” (“Among the greatest war films ever made,” says the Telegraph.) Will the Academy’s considerable Brit contingent put their stiff upper lips behind Saoirse Ronan and make the four-time nominee a real threat in the Supporting Actress race?
7. Can Dune: Part Two equal its predecessor’s trophy count?
As the only big blockbuster in the 2022 Oscar race, Dune ran away with almost every single craft trophy. This year will bring more competition from Gladiator II, Wicked, Blitz, and others. In these circumstances, repeating the original’s six-trophy haul will be a tougher assignment, even if Part Two outdoes its predecessor’s ten noms by getting Denis Villeneuve into Best Director.
8. Does Scott Feinberg know something about September 5 that we don’t?
Ask most pundits about September 5, a docudrama about an American news crew grappling with the Munich hostage crisis, and they’ll peg it as a borderline Best Picture nominee that could sneak into Original Screenplay and maybe an acting race. Then there’s Scott Feinberg, who has used his perch at The Hollywood Reporter to herald the film as the second coming of Argo, and the current Best Picture front-runner. Feinberg’s coverage of September 5 has been hyperbolic enough — declaring that it “blew the roof off of” Venice and Telluride, when the actual response was more low-key positive — to raise eyebrows all across the internet. Is he just being a contrarian, or are the rest of us mired in groupthink and unable to see the potential here?
9. Can Nickel Boys keep the art-house streak going?
The Academy’s taste can be thermostatic. After the auteur-heavy lineup at the 2018 Oscars, voters fell hard for Green Book and Bohemian Rhapsody the following season, then gave Parasite Best Picture the very next year. Last March’s Oscars ended with challenging titles like The Zone of Interest and The Boy and the Heron winning gold. A bold, unsparing experiment like Nickel Boys will be hoping the art-house love is an enduring shift within the Academy and not a one-year trend.
10. Will history repeat with Gladiator II?
As my colleague Joe Reid explored on his podcast This Had Oscar Buzz, one reason a summer blockbuster like Gladiator was such a potent Oscar player was that many of the stately awards vehicles of fall 2000 — Pay It Forward, The Legend of Bagger Vance, All the Pretty Horses — utterly face-planted. This season hasn’t seen quite so many misfires, but a consensus is forming that the quality of the overall crop is lower than last year. Can Sir Ridley take advantage of a weakened field a II’nd time?
Oscar Futures: When the Moon Hits Your Eye Like a Big Cabbage Pie, That’s Anora
Every week between now and January 17, when the nominations for the Academy Awards are announced, Vulture will consult its crystal ball to determine the changing fortunes in this year’s Oscars race. In our “Oscar Futures” column, we’ll let you in on insider gossip, parse brand-new developments, and track industry buzz to figure out who’s up, who’s down, and who’s currently leading the race for a coveted Oscar nomination.
Best Picture
Up
Anora
If you believe in Anora, it’s because you believe it marks a leveling-up for Baker, the critics’ darling known for his sensitive but never precious depictions of life on the margins. Critics like Dana Stevens call the movie “a crowd-pleaser, funny and sexy and raucous, while also being startlingly wise and tender.” That likability should ensure Anora plays well on the preferential ballot, but there’s also a real message here about class and labor. It wasn’t so long ago that the Academy snubbed another well-regarded strip-club dramedy in Hustlers, but I think the power of the Palme should compel even the snobbiest Academy member to consider Anora.
Down
Saturday Night
By now it’s no longer breaking news whenever a would-be Oscar contender underperforms at the box office. It happens to lots of movies! Still, for a film that’s unlikely to get attention from critics’ groups, Saturday Night not making much of a splash in its first weekend wide narrows its path considerably.
Current Predix
A Real Pain, Anora, Blitz, The Brutalist, Conclave, Dune: Part Two, Emilia Pérez, Nickel Boys, September 5, Sing Sing
Best Director
Up
Sean Baker, Anora
Long considered an avatar of artistic purity in the indie scene, Baker got his “welcome to the club” moment when he was awarded the Palme from a Cannes jury helmed by Greta Gerwig. Anora sees him developing the themes he’s worked with his whole career — particularly the way sex work lays bare inequalities that operate more subtly in the “straight” economy — while also showing off a propulsive new narrative energy. I’d be surprised if Gerwig’s fellow Academy members didn’t welcome Baker into their own club come January.
Up
Anna Kendrick, Woman of the Hour
Because of the SAG strike, last year’s TIFF featured a bevy of projects directed by actors, and consensus had it that Kendrick’s true-crime drama was the only good one. That this retelling of serial killer Rodney Alcala’s appearance on The Dating Game is hitting Netflix over a year after its festival debut is a sign it probably won’t be an Oscar player, but still, not bad for the former scrappy little nobody.
Current Predix
Jacques Audiard, Emilia Pérez; Sean Baker, Anora; Brady Corbet, The Brutalist; Steve McQueen, Blitz; Denis Villeneuve, Dune: Part Two
Best Actor
Down
Sebastian Stan, The Apprentice
As with Saturday Night, The Apprentice will not live or die based on its opening weekend. But a disappointing tenth-place finish does underscore the film’s biggest hurdle: Namely, who is going to sit down and watch a movie about Donald Trump right now? Which is an issue if Stan hopes to follow in the footsteps of the late, great Hannibal Lecter.
Up
Joaquin Phoenix, Joker: Folie à Deux
In a stunning feat of investigative journalism, The Hollywood Reporter somehow got its hands on the Golden Globes placement for almost every single awards contender. With all the major male contenders competing on the Drama side of the ballot, the Best Actor in a Musical or Comedy award is there for the taking, and it would be hilariously Globes-y for the left-for-dead Phoenix to rise from the ashes and claim the trophy.
Current Predix
Adrien Brody, The Brutalist; Daniel Craig, Queer; Colman Domingo, Sing Sing; Ralph Feinnes, Conclave; Sebastian Stan, The Apprentice
Best Actress
Up
Mikey Madison, Anora
“Sometimes a movie actually earns the old cliché of a ‘star-making turn,’ and I’m here to say that Sean Baker’s Anora is this year’s star maker,” declares Alyssa Wilkinson, who calls Madison “mesmerizing” as a Brighton Beach stripper who goes toe-to-toe with the Russian elite’s hired help. (They’re not sending their best.) The 25-year-old Madison fits squarely in the mold of a Best Actress winner from the 2010s, when ingenues like Jennifer Lawrence, Brie Larson, and Emma Stone routinely pulled gold. However, since the Academy began expanding its membership to include more women, seasoned actresses like Frances McDormand and Michelle Yeoh have ruled the category. It will be fascinating to see which way this race goes.
Even
Cynthia Erivo, Wicked
Theater fans know that, besides being a powerhouse vocalist and an uncommonly empathetic performer, Cynthia Erivo is also a born poster. Thus they were not surprised this week when Erivo issued a powerful call-out over fans’ outrageous, offensive, and borderline defamatory move of … Photoshopping the Wicked movie poster to look like the Broadway version. In the words of Mark Harris, “She’s going to have a long season.” Perhaps the Wicked campaign can lean into their star’s distinctive online presence by putting Erivo in conversation with Joyce Carol Oates and Paul Schrader?
Current Predix
Karla Sofía Gascón, Emilia Pérez; Marianne Jean-Baptiste, Hard Truths; Angelina Jolie, Maria; Mikey Madison, Anora; Saoirse Ronan, The Outrun
Best Supporting Actor
Up
Mark Eydelshteyn, Anora
It is illegal for a film critic to file an Anora review without describing Eydelshteyn as “the Russian Timothée Chalamet,” though anyone expecting the next Call Me by Your Name might be disappointed. As an oligarch’s son who “acts as if Spring Breakers were an educational documentary,” as Adam Nayman put it, his performance’s strengths lie more in madcap energy than in depth. Madison looks formidable enough to pull in someone alongside her, but considering the Academy’s feelings towards young men, I wonder if another of her co-stars might offer a more compelling alternative …
Up
Yura Borisov, Anora
Borisov gradually comes to the fore in Anora’s second half, as his gruff goon becomes the heroine’s emotional foil. He’s giving a more subtle, reactive performance than Eydelshteyn, but perhaps one that’s easier to connect with. Having starred in the Finnish submission Compartment No. 6 a few years back, Borisov may also benefit from being more familiar to voters.
Current Predix
Kieran Culkin, A Real Pain; Clarence Maclin, Sing Sing; Guy Pearce, The Brutalist; Jeremy Strong, The Apprentice; Stanley Tucci, Conclave
Best Supporting Actress
Even
Everything
Absolutely nothing happened in Supporting Actress this week. Sorry!
Current Predix
Danielle Deadwyler, The Piano Lesson; Aujanue Ellis-Taylor, Nickel Boys; Felicity Jones, The Brutalist; Saoirse Ronan, Blitz; Zoe Saldana, Emilia Pérez
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();
// ]]