In 2019, at age 38, I started taking Truvada. With the threat of contracting HIV drastically reduced, it rapidly became clear to me that my approach to love and sex had been dictated mostly by fear: Instead of conceiving of my love life as a romantic comedy, I thought of it as more of a horror movie. The result of this realization was the essay excerpted below, “Blood, Actually,” in which I tried to understand the effect HIV/AIDS had on my generation — especially our difficulty forging intimate connections.
I’m not alone in seeing horror, for good and for ill, as a quintessential part of the LGBTQ+ experience. Earlier this month, Feminist Press released an anthology calledIt Came from the Closet: Queer Reflections on Horror, in which I and 25 other queer and trans writers exhume and examine popular and lesser-known horror films. Guided by editor Joe Vallese, we poke, prod, and reanimate the horror films we love to explain moments of vulnerability and strength in our own lives. Each essay is a banger, exploring sometimes humorous, often heartbreaking themes, from growing up in hostile territory to looking for yourself in films that exclude and pathologize queerness.
Excellent film theory and historical analyses of gender and sexuality in horror films already exist, of course, and this strange little book is indebted to them. But It Came From the Closet forgoes simple conclusions in favor of much thornier, more difficult conversations with readers. The horror film becomes the tool, at some times blunt and other times sharp, that expands empathy for ourselves and other generations of queers, continuing the fabulous tradition with a new and diverse generation of writers.
EXCERPT FROM 'IT CAME FROM THE CLOSET: QUEER REFLECTIONS ON HORROR'
When my mother and father were still in love, we lived on the marshlands of the Intracoastal Waterway, and you could smell the sea and watch the buoys that marked our crab pots bob like severed heads in inky water. I was working up the nerve to check the pots on my own one day, even though I was scared of the crabs they imprisoned, when I heard my mother scream, “Cottonmouth!” from the deck. Terrified, I sprinted back toward the house. Our handsome collegiate gardener, my first crush, was trimming the azalea bushes in the front yard, but he grabbed a shovel and made his way to the back, where danger lay coiled, head shaped like an arrow, ready to strike. The sliding glass door framed him, and I enjoyed the long, uninterrupted view of him wearing not much more than work boots, a pair of tight jeans, and a thin layer of sweat. He looked just like Mark, the counselor from Friday the 13th Part 2. In one decisive motion, like Zeus hurling a thunderbolt, my hero severed the snake in two. Wiping the sweat from his brow with one gloved hand, he scooped the pieces into a garbage bag, and peace was restored. I wanted to thank him, to give him a kiss for his gallantry, but I resisted.
When my parents divorced, we moved to my mother’s home: a twist in the road, a clearing between tobacco and cotton fields. There were more snakes, no father, and no Mark to save us. Instead of counting out daffodil bulbs for her garden, she now counted her fears about all the ways she was afraid to ruin us. I collected her fears like she collected our baby teeth in her jewelry box: LSD-laced Cracker Jack tattoos, suffocating to death in a refrigerator, kidnapping, home invasion, the constant threat of poverty.
When I was 7, I came out to our neighbor, who told my mom, who confronted me. I denied it, pretending I didn’t know what she meant. I planned to hang myself from the banister with my white karate belt.
Whatever happened next is chained to the bottom of my memory, struggling to breathe, waiting to resurface. Everything fades to black.
EXT. CAMP CRYSTAL LAKE — EVENING
The screen door slams shut just as the rain begins to pummel the camp. Tiny ricochets turn to a constant roar as Mark, the beautiful brunette counselor in a wheelchair, glides down the ramp to search for Vickie, who wanted to change before they went off together to make love in an empty cabin. As she runs around in the rain in her brown satin sex panties, Mark starts to worry: What is taking her so long? Menacing music scores the moment that the machete appears from nowhere, slicing into his gorgeous face, the force of the blow so powerful that it sends him flying backward down not one but two flights of stairs, the latter impossibly long, descending into nothing. The screen freezes on the back of his head with the machete lodged in the front. Flash to white. Smash cut to the next teen sacrifice.
The murder of Mark, played by Tom McBride in Friday the 13th Part 2, an out gay actor and self-described “A-list gay” who went on to die of an AIDS-related illness in New York City, was not the first time I learned that sex equals death. On the way to school one day, my mother handed me and each of my brothers our own copies of People with Kimberly Bergalis on the cover. The photo of the thin sorority girl who’d allegedly contracted HIV from her homosexual dentist, David Acer, bore the title “The Dentist and the Patient: An AIDS Mystery.” My mother wanted each of us to read it so we could talk about it as a family. The article discussed how Kimberly’s mother worked with patients living with HIV and AIDS in a Florida clinic and recognized the hollow cheeks as a telltale sign that something was wrong with her daughter. No one knew how she could have contracted it because she claimed to be a virgin waiting for marriage and she didn’t use intravenous drugs. The only possibility: Her homosexual dentist must have intentionally infected his patients as an act of violence and rage motivated by his own impending death. This was never proven.
At this point, my sweet fantasy of marrying a Mark of my own and living together forever in a snake-free castle decayed into the tobacco fields we were passing on the way home. Whether the Bergalis family meant to ignite this gay panic or not, gay men were ripped from the shadows and elevated to public enemy. The word AIDS slashed across all the headlines, the bold red letters made every trip to the grocery store a test of endurance, avoidance. News programs showed Lady Diana visiting patients living with AIDS and all I could see was myself, my skeleton protruding through my thin skin, eyes sunken in, reaching for her hand. People applauded her for touching the patients and treating them like human beings as if she’d performed a feat of strength. President Reagan didn’t even acknowledge HIV/AIDS for six years, and only because Elizabeth Taylor manipulated him into it. The “personal responsibility” doctrine of the Reagan era taught Americans that fault lay with gay men and their enablers and AIDS was a just cure for their existence. Nancy Reagan stood by in her bloodred dresses, red as an AIDS ribbon, red as gore. Often the evening news featured our United States senator Jesse Helms, my mother’s favorite politician, suggesting that people with HIV should be quarantined or William F. Buckley calling for gay men to be identified and tattooed on the buttocks, and it taught me to hide my feelings. I would escape to my room, where I created elaborate versions of ways I would eventually die when it was my turn. Gay blood must be toxic, and I visualized it clogging my veins like black Jell-O.
At bedtime, every night, I petitioned Jesus not to let me die of AIDS. Sleep felt like a trapdoor for death, a time for all of my worst fears to creep in. Sometimes, in the darkness, I counted my heartbeats and wondered how many I had left. I lay awake thinking about my abdominal cavity, a butcher-shop case of throbbing organs writhing together. I categorized each spasm, waiting for my insides to turn on one another and then on me. I obsessively counted the number of times I might see my family members again in my lifetime, feeling guilty for wanting to run away from them all, dreading the day my mother would acknowledge my homosexuality and condemn me or when my pediatrician would out me by diagnosing me with HIV. I would brainstorm escape plans to New York, tracing the route I’d walk in an imaginary atlas. I wrote down lies in my diary with the flimsy lock to throw my mom off my path (I don’t think she ever read it). The only way to keep the trapdoor sealed was by staying up late reading V. C. Andrews novels about incest, madness, and damask. And when I was older, I watched horror movies.
I started with Nightmare on Elm Street, Halloween, Texas Chainsaw Massacre. I’d convince my mom or dad to let me rent whatever I wanted. They were too guilty or too tired to object to my selections. Entering the horror-movie section at Videomax, decorated with fiberglass and papier-mâché Dracula and Frankenstein’s monster and the Mummy, felt like the first exercise in bravery. Next came looking at the scary art on the box covers, then reading the descriptions. Every tiny step felt like training for the fear that I was learning to live with, incremental poisoning to gain immunity.
Each villain was deformed, disfigured by scars, and masked. Often these figures were the objects of early shame for some disability outside their control. Pushed to the fringes, they became experts in the behavior of their victims. There was something about the simplicity of Friday the 13th that especially appealed to me. In the original film, Jason’s mother is the killer. It opens by putting the audience into Ms. Voorhees’s point of view as she kills trysting counselors in the boathouse. Grief-stricken and unhinged, she attempted to assuage her grief about the accidental drowning of her son by murdering any new counselors who wanted to reopen Camp Crystal Lake. In her mind, all of the teens deserve their grisly fate — they should know better. After his mother is murdered by Alice at the end of the first film, Jason Voorhees takes over the blood feud, avenging her death. Armed with his relentless silence and tenacity and a white hockey mask, broad and pocked like the surface of the moon, he dispatches his victims, one or two at a time.
As I got braver, I watched all of the Friday the 13th films. Rather, I studied them. I memorized the names of the actors, the characters, and all of the creative ways that Jason would kill people. If I focused on the trivia long enough, I could escape the true horror that kept me awake at night. He has the most kills of any slasher series, and he lives in a dirty shed in the woods near “Camp Blood” (except when he went to Manhattan on a shitty cruise ship and when he went to space and when he went to hell), so creativity is necessary. Among Jason’s improvisational weapon choices: a pitchfork, an RV wall, a space anchor, an electrical box, a tent stake, a noisemaker, a trimmer with a saw-blade attachment, a flaming machete, a screwdriver, a tree pruner, a heroin needle, a fire poker, a wrench, a harpoon, a radio antenna, a scythe, a liquor bottle, a claw hammer, a fence post, a spaceship-hull breach, a camper-filled sleeping bag, an oil drum filled with trash water, hot stones from a sauna, a deep fryer, a bone saw, a signpost.
Slasher films gave me a way to order the violence and death that occupied most of my attention. My toxic blood seemed less terrifying when I saw fake blood spilled onscreen, knowing that it was probably chocolate sauce, corn syrup, or pixelated gore. If the blood was fake, then maybe, just maybe, all of reality was fabricated, and knives and ice picks always retract, bullets are always blanks, and no one is ever murdered by a machete-wielding killer. No one is ever really harmed. Anxiety is temporarily relieved as the credits roll, a vulgar catharsis. When real fear creeps back in, just rewind the film and start again.
Rewind the film. Start again. Go to Crystal Lake in your mind.
You might think that once you’ve seen one Friday the 13th, you’ve seen them all. But you would be incorrect. The finer points distinguishing each film may seem negligible to a layperson. The story is told repeatedly, repetitively, almost obsessively, every time. A group of attractive teenagers arrives at a reopened summer camp, no trace of the murders from the previous summer. Repainted cabins flank the lake, which seems to be impossibly high in naturally occurring lithium, given the chipper attitudes of each fresh set of victims. The endlessly refreshed archetypes are all guilty of something outside of their control. There’s always the funny one, the hot one, the stoner, the jock, the nerd, the biker, the clown — and they all want to get laid. Except for the “final girl.”
Everyone recognizes the final girl. The term is so commonly used that if you use it around even a moderate horror fan, you might see their eyes roll back in their heads. The final girl is beautiful — not too beautiful — smart, funny, charming, wholesome. But she’s often aloof or possesses some skill or ability or insight that ends up saving her in the end. Something she may or may not value about herself. She is the ideal victim. Does anyone want to be the final girl more than the young closeted queer? Brimming with unseen inner power, waiting to demonstrate her strength.
During the last act of each film, the final girl and Jason lock into a grisly pas de deux. Each makes their move, struggling for primacy. Each fulfills their function. The coda is almost always his unmasking, revealing the true, repulsive, unlovable face beneath the mask. But by enduring this horrific spectacle, her previous sense of safety is permanently annihilated. Once a part of the crowd, now permanently apart from the crowd, she will always be isolated by this experience, and now she must wear the mask. Her friends are all gone, and she must learn to live knowing that they are gone forever, victims of an unconscionable act of violence for which no one could prepare.
**
When I started taking PrEP, I had to mourn my past as I realized how much the fear of contracting HIV had affected all of my intimate partnerships, my sex life, and my self-perception. HIV and AIDS permanently shaped me. Now, I am one of the oldest participants enrolled in a groundbreaking medical study to develop an injectable prophylactic medication to prevent the spread. Now, HIV and AIDS are manageable conditions for those with access to care. Here in the Gulf, seroconversion rates are still alarmingly high; seeking care is still stigmatized. I struggle to locate and connect with the few elders from the generation most decimated. How can the younger queers I love understand what it was like? Is it better that they do not? I am grateful they are spared the horror.
As it turns out, being raised in a homophobic, misogynistic, racist culture forces you to behave in sociopathic ways. Nobody wants to be the poor, disfigured boy who grows up to be a serial killer. Even though I want to be a final girl, I’m more of a Jason Voorhees. They are both survivalists in their own ways, but I’ve used my improvised skills to hurt people deeply, to hide from my pain. My tongue is my machete. I can be just as nimble and industrious, constantly scanning the room for threats or potential lovers, sometimes treating both as opponents as they surface. I used to hunt in gay bars or gay.com, the library stacks in college, and now I hunt in Scruff profiles that showcase floating torsos and feet and round (and not so round) asses, trapped in orderly, grid-like graveyard plots. I built a persona out of pain. But the world has changed. Now that I live somewhere more tolerant and I have more sexual freedom, what do I do with my arsenal and killer instinct? Does Jason retire when he gets sick of the murder business? Does he just want privacy at Crystal Lake? Does he murder so he can finally take his mask off and be alone in his murder shed with his mother’s severed, screaming head? Maybe he’s just like me, bad at ending things, more comfortable being alone and pretending to be impenetrable.
From It Came From the Closet: Queer Reflections on Horror, edited by Joe Vallese. Excerpted with permission of the Feminist Press.
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();
// ]]