(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{178:(e,t,n)=>{Promise.resolve().then(n.bind(n,37404)),Promise.resolve().then(n.bind(n,17657)),Promise.resolve().then(n.bind(n,21671)),Promise.resolve().then(n.bind(n,92094)),Promise.resolve().then(n.bind(n,73893)),Promise.resolve().then(n.bind(n,1321)),Promise.resolve().then(n.bind(n,1410)),Promise.resolve().then(n.bind(n,52161)),Promise.resolve().then(n.bind(n,63082)),Promise.resolve().then(n.bind(n,830)),Promise.resolve().then(n.bind(n,87382)),Promise.resolve().then(n.bind(n,66696)),Promise.resolve().then(n.bind(n,55011)),Promise.resolve().then(n.bind(n,57689)),Promise.resolve().then(n.bind(n,86770)),Promise.resolve().then(n.bind(n,75214)),Promise.resolve().then(n.bind(n,11563)),Promise.resolve().then(n.bind(n,24405)),Promise.resolve().then(n.bind(n,43272)),Promise.resolve().then(n.bind(n,73585)),Promise.resolve().then(n.bind(n,26259)),Promise.resolve().then(n.bind(n,96063)),Promise.resolve().then(n.bind(n,58930)),Promise.resolve().then(n.t.bind(n,69243,23)),Promise.resolve().then(n.bind(n,55830)),Promise.resolve().then(n.bind(n,79661)),Promise.resolve().then(n.t.bind(n,53773,23)),Promise.resolve().then(n.t.bind(n,375,23)),Promise.resolve().then(n.t.bind(n,57446,23)),Promise.resolve().then(n.bind(n,19067)),Promise.resolve().then(n.bind(n,3461))},375:()=>{},2488:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var o=n(12115),s=n(28700);function i(e){let{id:t,type:n}=e,[i,a]=(0,o.useState)(!1),[l,r]=(0,o.useState)(!1),[c,d]=(0,o.useState)("");(0,o.useEffect)(()=>{let e=()=>{try{let e=document.cookie.match(/OptanonConsent=([^;]+)/);if(!e){a(!1),r(!0),d("");return}let o=decodeURIComponent(e[1]);if(o===c&&l)return;d(o);let i=o.match(/groups=([^&]+)/);if(!i){a(!1),r(!0);return}let p=decodeURIComponent(i[1]).split(","),u=s.hs[t];if("category"===n){let e=p.find(e=>e.startsWith("".concat(u,":")));if(e){let[,t]=e.split(":");a("1"===t)}else a(!1)}else a(!1);r(!0)}catch(e){console.error("Error checking consent:",e),a(!1),r(!0)}};e();let o=()=>{setTimeout(e,100)};window.addEventListener("OneTrustGroupsUpdated",o),window.addEventListener("consent.onetrust",o);let i=setInterval(e,250),p=window.OptanonWrapper;return window.OptanonWrapper=function(){p&&p(),setTimeout(e,200)},()=>{window.removeEventListener("OneTrustGroupsUpdated",o),window.removeEventListener("consent.onetrust",o),clearInterval(i),p&&(window.OptanonWrapper=p)}},[t,n,l,c]);let p=(0,o.useCallback)(()=>{window.cmpUtils&&"function"==typeof window.cmpUtils.emitEvent?window.cmpUtils.emitEvent("cmp.consent.submit"):console.warn("window.cmpUtils is not available to emit consent submit event")},[]);return{hasConsent:i,isReady:l,rejectAllConsent:(0,o.useCallback)(()=>{window.Optanon&&"function"==typeof window.Optanon.RejectAll&&window.Optanon.RejectAll()},[]),submitConsentChange:p}}},7177:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i});var o=n(12115);n(15012);let s=["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","RO","SK","SI","ES","SE"],i=function(){let[e,t]=(0,o.useState)({country:"",state:"",stateName:""}),[n,i]=(0,o.useState)(!0);(0,o.useEffect)(()=>{let e,n=0,o=()=>{var o;if(null==(o=window.OneTrust)?void 0:o.getGeolocationData){let n=window.OneTrust.getGeolocationData();if(n&&n.country)return t({country:n.country||"",state:n.state||"",stateName:n.stateName||""}),i(!1),e&&clearInterval(e),!0}return++n>=20&&(console.warn("OneTrust geolocation data not available after maximum attempts"),i(!1),e&&clearInterval(e)),!1};o()||(e=setInterval(o,500));let s=()=>{setTimeout(o,100)};return window.addEventListener("OneTrustLoaded",s),window.addEventListener("OneTrustGroupsUpdated",s),window.addEventListener("consent.onetrust",s),()=>{e&&clearInterval(e),window.removeEventListener("OneTrustLoaded",s),window.removeEventListener("OneTrustGroupsUpdated",s),window.removeEventListener("consent.onetrust",s)}},[]);let a="US"===e.country.toUpperCase(),l=s.includes(e.country.toUpperCase());return{geoData:e,isEU:l,isUS:a,loading:n}}},9353:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var o=n(22617);let s=async()=>{let e="_ga_clk",t=["fbclid","gclid","msclkid"],n=(()=>{for(let s of t){var e,n;let t=(0,o.K)(s);if(t&&(null==(n=window.gptLayer)||null==(e=n.utils)?void 0:e.MD5))return{hid:window.gptLayer.utils.MD5(t),id:t,type:s}}return null})()||(()=>{let t=(e=>{let t=document.cookie.split("; ").find(t=>t.startsWith("".concat(e,"=")));return t?decodeURIComponent(t.split("=")[1]):null})(e);try{return t?JSON.parse(t):null}catch(e){return null}})();return n?(((e,t,n)=>{let o=new Date;o.setTime(o.getTime()+60*n*6e4);let s=encodeURIComponent(t);document.cookie="".concat(e,"=").concat(s,"; expires=").concat(o.toUTCString(),"; path=/; SameSite=Lax")})(e,JSON.stringify(n),.5),n):{}}},11563:(e,t,n)=>{"use strict";n.d(t,{NitrousSetup:()=>r});var o=n(12115),s=n(93158),i=n(33289),a=n(39061),l=n(92568);let r=()=>((0,o.useEffect)(()=>{window.nitrousOnLoad=()=>{window.Nitrous.init({apiKey:s.h.NEXT_PUBLIC_AMPLITUDE_API_KEY,appName:"NextWeb",appVersion:s.h.NEXT_PUBLIC_VERSION,environment:i.O_?"production":"development"});let e=(0,a.N)();e&&window.Nitrous.setUserAttributes({mtid:e})},(0,l.A)("https://st.motortrend.com/nitrous/nitrous.js",void 0,{async:!0}).catch(e=>{console.error("Failed to load nitrous script:",e)})},[]),null)},20002:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var o=n(12115);let s=function(e,t){let n,s,i,a;return Object.values(t).some(o.isValidElement)?(n=e,s=t,n.split(/({(?:\w+)})/g).map((e,t)=>{let n=e.match(/{(\w+)}/);if(n){let i=n[1],a=s[i];return(0,o.isValidElement)(a)?(0,o.cloneElement)(a,{key:"".concat(i,"-").concat(t)}):null==a?e:String(a)}return e})):(i=e,a=t,i.replace(/{(\w+)}/g,(e,t)=>{let n=a[t];return null==n?e:String(n)}))}},22617:(e,t,n)=>{"use strict";n.d(t,{K:()=>s});var o=n(34692);let s=(e,t)=>{if(!o.A)return null;t=t||window.location.search;let n=e.replace(/[[]]/g,"\\$&"),s=new RegExp("[?&]".concat(n,"(=([^]*)|&|#|$)")).exec(t);return s?s[2]?decodeURIComponent(s[2].replace(/\+/g," ")):"":null}},24405:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var o=n(12115);let s=e=>{if(!e.origin.includes("onetrust"))return;let t=!1;try{let{requestTypes:n}=JSON.parse(e.data);n&&Array.isArray(n)&&(t=!0)}catch(e){console.error("failed to parse onetrust form submission data",e);return}t&&(window.scrollTo(0,0),console.warn("Consent being removed for user as OptOut form has been submitted."),setTimeout(()=>{window.OneTrust&&"function"==typeof window.OneTrust.RejectAll?window.OneTrust.RejectAll():console.warn("OneTrust.RejectAll is not available"),window.cmpUtils&&"function"==typeof window.cmpUtils.emitEvent?window.cmpUtils.emitEvent("cmp.consent.submit"):console.warn("window.cmpUtils is not available to emit consent submit event"),window.location.replace("/")},3e3))},i=()=>((0,o.useEffect)(()=>(window.addEventListener("message",s),()=>{window.removeEventListener("message",s)}),[]),null)},43272:(e,t,n)=>{"use strict";n.d(t,{Permutive:()=>a});var o=n(12115),s=n(28700),i=n(92568);let a=()=>((0,o.useEffect)(()=>{(0,i.A)("/ad-scripts/moapt-permutive.js",[s.Ok.ADVERTISEMENT],{async:!0}).catch(e=>{console.error("Failed to load ComScore script:",e)})},[]),null)},53773:()=>{},55011:(e,t,n)=>{"use strict";n.d(t,{default:()=>w});var o=n(95155),s=n(12115),i=n(55028),a=n(36203),l=n(28700),r=n(97893),c=n(95422),d=n(2488),p=n(95838),u=n(15012);let m=function(){let{hasConsent:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{setGeoLocationData:t}=(0,u.A)();(0,p.useQuery)({enabled:e,queryFn:async()=>{let e=await fetch("/nwapi/geolocation");if(!e.ok)throw Error("Failed to fetch geolocation data");let n=await e.json();return t(n),n},queryKey:["geolocation"]})},g=()=>((0,s.useEffect)(()=>{window.cmpUtils||function(){var e,t;(null==(e=performance)?void 0:e.mark)&&performance.mark("app.cmp.started");let n=document,o=window;o.cmpUtils={bypassed:!1,cmpQueue:[],consentInfo:{},debug:[],formRequestTypes:["Global DNS","Do Not Sell My Information","Delete My Personal Information","Access My Personal Information"],gcmDefaultsSet:!1,hasWwwInHostName:o.location.hostname.startsWith("www"),haveConsent:!1,interactionResponsWaitTime:100,locale:{site:"",user:""},timerStart:Date.now(),wrapperInit:!1,checkTCFApi(e,t){var n;let s=(n,s)=>{if(s&&("tcloaded"===n.eventStatus||"useractioncomplete"===n.eventStatus)){var i,a;let s=(null==n||null==(i=n.vendor)?void 0:i.consents)||{};null==(a=o.__tcfapi)||a.call(o,"removeEventListener",2,()=>{},n.listenerId),s&&o.cmpUtils.checkVendorConsent(s,e,()=>t({},!0),!1)}};null==(n=o.__tcfapi)||n.call(o,"ping",2,()=>{var e;null==(e=o.__tcfapi)||e.call(o,"addEventListener",2,s)})},checkVendorConsent(e,t,n){let s=!(arguments.length>3)||void 0===arguments[3]||arguments[3];return!0!==e[t]||o.CMP_GPP_OPTOUT||o.CMP_GPC_SET?(o.cmpUtils.log("cmpUtils - checkVendorConsent","consent DECLINED","vendorId ".concat(t," = ").concat(e[t])),s&&o.addEventListener("cmp.consent.change",()=>{o.cmpUtils.checkVendorConsent(e,t,()=>n({},!0),!1)},{once:!0}),!1):(o.cmpUtils.log("cmpUtils - checkVendorConsent","consent","vendorId ".concat(t," = ").concat(e[t])),n({},!0),!0)},emitEvent:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.dispatchEvent(new CustomEvent(e,{detail:t}))},formCompletionHandler(e){if(!e.origin.includes("onetrust"))return;o.cmpUtils.log("formCompletionHandler","event",e);let{data:t}=e,n=null;try{n=JSON.parse(t)}catch(e){if(e instanceof SyntaxError)return void o.cmpUtils.log("formCompletionHandler error","error",e)}if(n&&(o.scrollTo(0,0),o.cmpUtils.formRequestTypes.filter(e=>n.requestTypes.includes(e)).length>0)){var s;o.cmpUtils.emitEvent("cmp.consent.submit"),null==(s=o.Optanon)||s.RejectAll(),o.removeEventListener("click",o.cmpUtils.formCompletionHandler)}},getAlertBoxCookieValue:()=>o.cmpUtils.getCookieMatch("OptanonAlertBoxClosed"),getCookieMatch:e=>n.cookie.match("[; ]*".concat(e,"=([^;]+)")),getCMPConsent(e,t,n){let s=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=!o.GDPR&&!o.CMP_GPP_OPTOUT&&!o.CMP_GPC_SET,a=()=>{s&&o.addEventListener("cmp.consent.change",()=>{"function"==typeof n&&n(!0)},{once:!0})};if(!t)return"function"==typeof n&&n(!!i||!!o.CMP_CONSENT),a(),!0;switch(e){case"category":try{var l;if(i||(null==(l=o.CMP_CONSENT_GROUPS)?void 0:l.includes(String(t))))return o.cmpUtils.log("cmpUtils - getCMPConsent","category '".concat(t,"' consent"),!0),n&&n(!0),!0;a();break}catch(e){break}case"vendor":if(i&&n)return n(!0),!0;return void 0===o.__tcfapi?o.cmpUtils.cmpQueue.push([Number(t),()=>n&&n(!0)]):o.cmpUtils.checkTCFApi(Number(t),()=>n&&n(!0)),!0}return!1},getConsentGroups(){let e="",t=o.cmpUtils.getCookieMatch("OptanonConsent");if(t){let n=t[1].match(/groups=(.*?)(&|$)/);n&&decodeURIComponent(n[1]).split(",").forEach(function(t){if(t.includes(":")){let n=t.split(":");"1"===n[1]&&(e+=(e?",":"")+n[0])}})}return{cmpConsentGroups:e}},getGPCStatus:()=>!!navigator.globalPrivacyControl,getHdmCookie(e){let t=o.cmpUtils.getCookieMatch(e);return t?JSON.parse(t[1]):""},getUserCountry(){let e=o.cmpUtils.getHdmCookie("location_data"),t=null==e?void 0:e.country_code;return o.cmpUtils.log("cmpUtils","getUserCountry - countryCode",t||""),!!t&&t.toLowerCase()},gpp:{getOptOut(){let e=o.cmpUtils.getHdmCookie("hdm_cmp"),t=!1;if(e&&"object"==typeof e&&"gpp"in e){var n;t=null==(n=e.gpp)?void 0:n.optOut}return!!t&&(o.cmpUtils.log("cmpUtils - GPP","getOptOut - hdmCmp.gpp.optOut",!!t),!!t)},getSection:()=>o.cmpUtils.gpp.section,getSupportedAPISectionName(e,t){let[n]=e,o="";return t.forEach(e=>{let[t,s]=e.split(":");parseInt(t,10)===n&&(o=s)}),o},init(){var e;o.cmpUtils.log("cmpUtils - GPP","init",!0),null==(e=o.__gpp)||e.call(o,"addEventListener",o.cmpUtils.gpp.setOptOut),o.cmpUtils.gpp.listenerSet=!0},listenerSet:!1,section:void 0,setOptOut(e){o.cmpUtils.log("cmpUtils - GPP","setOptOut - evt",e);let{pingData:t}=e,n=!1;if(t&&"loaded"===t.cmpStatus){let{applicableSections:e,parsedSections:s,supportedAPIs:i}=t;o.cmpUtils.log("cmpUtils - GPP","setOptOut - applicableSections: ",e),o.cmpUtils.gpp.section=o.cmpUtils.gpp.getSupportedAPISectionName(e,i),o.cmpUtils.log("cmpUtils - GPP","setOptOut - section: ",o.cmpUtils.gpp.section);let a=s[o.cmpUtils.gpp.section];if(a){o.cmpUtils.log("cmpUtils - GPP","setOptOut - parsedInfo: ",a);let{PersonalDataConsents:e,SaleOptOut:t,SharingOptOut:s,TargetedAdvertisingOptOut:i}=a;n=1===t||1===s||1===e||1===i}o.cmpUtils.log("cmpUtils - GPP","setOptOut - optOut: ",n),o.cmpUtils.gpp.updateHdmCmpCookie(n)}},updateHdmCmpCookie(e){if(!o.cmpUtils.getHdmCookie("hdm_cmp")||o.CMP_GPP_OPTOUT!==e){let t={gpp:{optOut:e,section:o.cmpUtils.gpp.getSection(),usNatOptOut:e,uspNatOptOut:e}};o.CMP_GPP_OPTOUT=e,o.cmpUtils.setHdmCmpCookie(t)}}},hasModal:()=>!!n.querySelector("#onetrust-banner-sdk"),interactionResponse:()=>new Promise(e=>{setTimeout(e,o.cmpUtils.interactionResponsWaitTime),requestAnimationFrame(()=>{setTimeout(e,0)})}),isUSSiteAndUser:()=>"us"===o.cmpUtils.locale.site&&"us"===o.cmpUtils.locale.user,log(e,t,n){let s=Date.now()-o.cmpUtils.timerStart;o.cmpUtils.debug.push({evt:t,msg:n,name:e,ts:s})},setCookie(e){var t;let{minutes:n,name:s,value:i}=e,a="".concat(s,"=").concat(i);if(n){let e;e=new Date("delete"===n?0:Date.now()+60*n*1e3),a+="; expires=".concat(e.toUTCString())}let l=o.cmpUtils.hasWwwInHostName?o.location.hostname.replace(/(www-stage)|(www)/,""):"";a+=l?"; domain=".concat(l):"";let r=null==(t=o.__SITE)?void 0:t.locale_path;a+="; path=".concat(r?"/".concat(r,"/"):"/"),o.cmpUtils.log("cmpUtils - setCookie","cookie","".concat(a,";")),document.cookie="".concat(a,";")},setDeclinedConsentState(){o.cmpUtils.log("cmpUtils - setDeclinedConsentState","Optanon",!!o.Optanon),o.Optanon&&(o.cmpUtils.log("cmpUtils - setDeclinedConsentState","Reject All - Optanon",o.Optanon),o.Optanon.RejectAll())},setGlobalValues(){let e=!!o.CMP_CONSENT;o.cmpUtils.log("cmpUtils - setGlobalValues","currentConsent",e);let t=!!o.CMP_WITHDRAWN;o.cmpUtils.log("cmpUtils - setGlobalValues","currentWithdrawn",t),o.GDPR_CONSENT_MODAL=o.cmpUtils.hasModal,o.CMP_CONSENT_MODAL=o.cmpUtils.hasModal;let{cmpConsentGroups:n}=o.cmpUtils.getConsentGroups();o.cmpUtils.log("cmpUtils - setGlobalValues","cmpConsentGroups",n),o.GDPR_CONSENT_GROUPS=n,o.CMP_CONSENT_GROUPS=n,o.cmpUtils.isUSSiteAndUser()&&(o.CMP_GPP_OPTOUT=o.cmpUtils.gpp.getOptOut(),o.cmpUtils.log("cmpUtils - setGlobalValues","win.CMP_GPP_OPTOUT",o.CMP_GPP_OPTOUT)),o.CMP_GPC_SET=o.cmpUtils.getGPCStatus(),o.cmpUtils.log("cmpUtils - setGlobalValues","win.CMP_GPC_SET",o.CMP_GPC_SET),o.cmpUtils.haveConsent=!!/C0002|C0003|C0004|C0005/.test(n),o.cmpUtils.log("cmpUtils - setGlobalValues","cmpUtils.haveConsent",o.cmpUtils.haveConsent),o.GDPR_CONSENT=!!o.cmpUtils.haveConsent,o.CMP_CONSENT=!!o.cmpUtils.haveConsent,o.cmpUtils.log("cmpUtils - setGlobalValues","win.CMP_CONSENT",o.CMP_CONSENT);let s=o.cmpUtils.getAlertBoxCookieValue();o.GDPR_WITHDRAWN=!!(!o.cmpUtils.haveConsent&&s),o.CMP_WITHDRAWN=!!(!o.cmpUtils.haveConsent&&s),o.cmpUtils.log("cmpUtils - setGlobalValues","win.CMP_WITHDRAWN",o.CMP_WITHDRAWN),(o.CMP_CONSENT!==e||o.CMP_WITHDRAWN!==t)&&(o.cmpUtils.log("cmpUtils - setGlobalValues","event","cmp.consent.change"),o.cmpUtils.emitEvent("cmp.consent.change"))},setGoogleConsentModeDefaults(){var e,t;if(null==(t=window)||null==(e=t.gptLayer)?void 0:e.gcmDefaultsSet)return!1;let n=new Date;o.dataLayer=o.dataLayer||[],o.gtag=function(){o.dataLayer.push(arguments)},o.gtag("js",n);let s="granted",i={};o.GDPR&&(s="denied"),o.cmpUtils.isUSSiteAndUser()&&(i={region:["US"]});let a={ad_personalization:s,ad_storage:s,ad_user_data:s,analytics_storage:s,functionality_storage:s,personalization_storage:s,security_storage:s,wait_for_update:500,...i};return o.gtag("consent","default",a),o.cmpUtils.gcmDefaultsSet=!0,o.cmpUtils.log("cmpUtils - setGoogleConsentModeDefaults","defaults",a),!0},setHdmCmpCookie(e){if(!e)return;let t=o.cmpUtils.getHdmCookie("hdm_cmp"),n={minutes:525600,name:"hdm_cmp",value:JSON.stringify({..."object"==typeof t&&t?t:{},...e})};o.cmpUtils.log("cmpUtils - setHdmCmpCookie","cookieInfo",n),o.cmpUtils.setCookie(n)},useDeclinedConsentState(){var e,t,n,s;let i=(null==(s=o.HRST)||null==(n=s.adConfig)||null==(t=n.modules)||null==(e=t.oneTrust)?void 0:e.declinedConsentState)||!1;return o.cmpUtils.log("cmpUtils - useDeclinedConsentState","hasDeclinedConsentState",i),i},waitForOTCookie(e){let t=0;return new Promise(function n(s,i){t>=1e3&&i("".concat(e," does not exist")),o.cmpUtils.getCookieMatch(e)?s(!0):t<1e3&&(t+=100,setTimeout(n.bind(null,s,i),100))})},waitForTCF(){if(void 0!==o.__tcfapi){o.cmpUtils.cmpQueue.length&&(o.cmpUtils.cmpQueue.forEach(e=>{Array.isArray(e)&&o.cmpUtils.checkTCFApi(...e)}),o.cmpUtils.cmpQueue=[]);return}setTimeout(o.cmpUtils.waitForTCF,100)}},function(){var e,t,n;(null==(e=performance)?void 0:e.mark)&&performance.mark("app.cmp.logic.started");let o=window,s=document;o.cmpUtils.log("loadCmpScript - loaded","cmpUtils",o.cmpUtils),o.cmpUtils.locale={site:(null==(n=o.__SITE)||null==(t=n.locale)?void 0:t.split("-").pop())||"us",user:o.cmpUtils.getUserCountry()||"us"},o.cmpUtils.setGoogleConsentModeDefaults(),o.cmpUtils.setGlobalValues(),o.getCMPConsent=o.cmpUtils.getCMPConsent,window.GDPR&&o.cmpUtils.waitForTCF();let i=s.querySelector(".ot-sdk-show-settings");i&&i.addEventListener("click",async function(){await o.cmpUtils.interactionResponse(),o.cmpUtils.emitEvent("onetrust_pc_modal")},!1),o.OptanonWrapper=function(){o.cmpUtils.log("loadCmpScript - OptanonWrapper","started - cmpUtils.wrapperInit",o.cmpUtils.wrapperInit),o.cmpUtils.wrapperInit=!0,o.cmpUtils.waitForOTCookie("OptanonConsent").then(()=>{var e;let t=o.cmpUtils.getAlertBoxCookieValue();o.cmpUtils.useDeclinedConsentState()&&!t&&o.cmpUtils.setDeclinedConsentState(),o.cmpUtils.setGlobalValues();let n=t?new Date(t[1]).getTime():0,i=!!n&&Date.now()-n<250,a=/C0002|C0003|C0004|C0005/.test(o.OptanonActiveGroups||""),l=o.cmpUtils.hasModal();if(l){o.ga_modal_tracking||(o.ONETRUST_MODAL=!0,o.cmpUtils.log("loadCmpScript - OptanonWrapper","modal event","onetrust_modal"),o.cmpUtils.emitEvent("onetrust_modal"));let e=s.querySelector("#onetrust-pc-btn-handler");e&&e.addEventListener("click",function(){o.cmpUtils.log("loadCmpScript - OptanonWrapper","modal event","onetrust_pc_modal"),o.cmpUtils.emitEvent("onetrust_pc_modal")},{once:!0})}l&&i&&(a?(o.cmpUtils.log("loadCmpScript - OptanonWrapper","modal event","onetrust_accept"),o.cmpUtils.emitEvent("onetrust_accept")):(o.cmpUtils.log("loadCmpScript - OptanonWrapper","modal event","onetrust_reject"),o.cmpUtils.emitEvent("onetrust_reject"))),o.cmpUtils.consentInfo={consentGroups:o.CMP_CONSENT_GROUPS||"",gpcSet:o.CMP_GPC_SET||!1,haveConsent:!!o.cmpUtils.haveConsent},o.cmpUtils.isUSSiteAndUser()&&(o.cmpUtils.consentInfo.gpp={optOut:o.CMP_GPP_OPTOUT||!1,section:o.cmpUtils.gpp.getSection()||""}),o.cmpUtils.setHdmCmpCookie(o.cmpUtils.consentInfo),o.cmpUtils.emitEvent("gdpr.consent.set",o.cmpUtils.consentInfo),o.cmpUtils.emitEvent("cmp.consent.set",o.cmpUtils.consentInfo),(null==(e=performance)?void 0:e.mark)&&performance.mark("app.cmp.logic.finished")})},o.cmpUtils.wrapperInit||o.OptanonWrapper(),o.addEventListener("consent.onetrust",e=>{o.cmpUtils.log("loadCmpScript","Event - consent.onetrust - e",e)},!1),o.addEventListener("OneTrustGroupsUpdated",e=>{o.cmpUtils.isUSSiteAndUser()&&o.__gpp&&!o.cmpUtils.gpp.listenerSet&&(o.cmpUtils.gpp.init(),o.cmpUtils.log("loadCmpScript","Event - OneTrustGroupsUpdated - init GPP",!0)),o.cmpUtils.log("loadCmpScript","Event - OneTrustGroupsUpdated - e",e)},!1),o.addEventListener("message",o.cmpUtils.formCompletionHandler,!1)}(),o.cmpUtils.emitEvent("app.cmpScriptLoaded"),(null==(t=performance)?void 0:t.mark)&&performance.mark("app.cmp.end")}()},[]),null);var f=n(49110);let _=(0,i.default)(()=>n.e(6622).then(n.bind(n,56622)),{loadableGenerated:{webpack:()=>[56622]},ssr:!1}),w=(0,a.withErrorBoundary)(()=>{let{hasConsent:e}=(0,d.S)({id:l.Ok.PERSONALIZATION,type:"category"});return m({hasConsent:!!e}),(0,s.useEffect)(()=>{try{r.Y.initialize(),(0,c.G)(),r.Y.track("Application initialized successfully",{context:{timestamp:new Date().toISOString()},tags:["app-init"]})}catch(e){r.Y.error(e instanceof Error?e:Error("Initialization failed"),{tags:["app-init","error"]})}},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g,{}),(0,o.jsx)(_,{})]})},{FallbackComponent:f.c,onError:(e,t)=>{r.Y.error(e,{context:{componentStack:t.componentStack},tags:["app-init","error-boundary"]})}})},57446:()=>{},57689:(e,t,n)=>{"use strict";n.d(t,{default:()=>q});var o=n(95155),s=n(12115),i=n(35695),a=n(63554),l=n(36203),r=n(93158),c=n(82004),d=n(13623),p=n(22356),u=n(97071),m=n(15012),g=n(58273);let f=e=>{let t=m.A.getState()[g.yL][g.JE.RefreshIntervalId]||{};if(e)return void clearInterval(t[e]);Object.entries(t).forEach(e=>{let[,t]=e;clearInterval(t)})},_=e=>!!(e.getTargeting(c.t.IsCurrentlyVisible).indexOf("false")>-1||e.getTargeting("sponsored").indexOf("true")>-1||e.getTargeting("sect").indexOf("video")>-1||e.getTargeting("subs").indexOf("rankings")>-1||e.getTargeting("k").indexOf("buyersguide")>-1||e.getTargeting("fluid").indexOf("bottom_adhesion")>-1||e.getTargeting("sect").indexOf("homepage")>-1||e.getTargeting("slot").indexOf("nod")>-1),w=e=>!(e.getTargeting("sponsored").indexOf("true")>-1||e.getTargeting("sect").indexOf("video")>-1||e.getTargeting("subs").indexOf("rankings")>-1||e.getTargeting("k").indexOf("buyersguide")>-1||e.getTargeting("fluid").indexOf("bottom_adhesion")>-1||e.getTargeting("fluid").indexOf("stm")>-1||e.getTargeting("sect").indexOf("homepage")>-1||e.getTargeting("slot").indexOf("nod")>-1);var v=n(95422),U=n(30602);let h=e=>{let{slot:t}=e,n=t.getSlotElementId(),o=t.getAdUnitPath(),s=new Date;if(u.X.NEXT_PUBLIC_FEATURE_AD_REFRESH){f(n);let o=setInterval(()=>{_(t)||googletag.cmd.push(()=>{(0,U.S$)(t,U.IS.NoInteraction),googletag.pubads().refresh([t])})},r.h.NEXT_PUBLIC_AD_REFRESH_FREQUENCY);m.A.getState().setGptRefreshIntervalId(e,o),w(t)&&window.googletag.cmd.push(()=>{t.setTargeting(c.t.HasBecomeViewable,"true")})}m.A.getState().setGptImpressionViewableTime(e,s),(0,v.e)("ImpressionViewableEvent",{adPath:o,slotId:n})},C=e=>{let t=e.slot.getSlotElementId(),n=e.slot.getAdUnitPath();(0,v.e)("SlotOnLoad",{adPath:n,slotId:t})};var E=n(56589),T=n(57828);let S=e=>{let{slot:t}=e,n=t.getSlotElementId(),o=t.getAdUnitPath();(0,T.F)("mtAdRequested","true"),(0,v.e)("SlotRequested",{adPath:o,slotId:n}),u.X.NEXT_PUBLIC_FEATURE_AD_REFRESH&&(t.getTargeting(c.t.HasBecomeViewable).indexOf("true")>-1&&window.googletag.cmd.push(()=>{t.clearTargeting(c.t.HasBecomeViewable)}),t.getTargeting(c.t.HasLeftViewportOnce).indexOf("true")>-1&&window.googletag.cmd.push(()=>{t.clearTargeting(c.t.HasLeftViewportOnce)}))},P=e=>{let t=e.slot.getSlotElementId(),n=e.slot.getAdUnitPath(),{advertiserId:o,campaignId:s,creativeId:i,creativeTemplateId:a,lineItemId:l}=e.slot.getResponseInformation()||{};(0,v.e)("SlotResponseReceived",{adPath:n,advertiserId:o,campaignId:s,creativeId:i,creativeTemplateId:a,lineItemId:l,slotId:t})};var O=n(41003);let b=e=>{let{inViewPercentage:t,slot:n}=e,o=n.getSlotElementId();t>=50?(m.A.getState().setGptSlotVisibility(o,g.q8.Visible),(0,O.A)(n)):m.A.getState().setGptSlotVisibility(o,g.q8.NotVisible),u.X.NEXT_PUBLIC_FEATURE_AD_REFRESH&&u.X.NEXT_PUBLIC_AD_REFRESH_OUT_OF_VIEWPORT&&w(n)&&(0===t&&n.getTargeting(c.t.HasBecomeViewable).indexOf("true")>-1&&window.googletag.cmd.push(()=>{n.setTargeting(c.t.HasLeftViewportOnce,"true")}),n.getTargeting(c.t.HasLeftViewportOnce).indexOf("true")>-1&&t>0&&n.getTargeting(c.t.NoOutOfViewportRefresh).indexOf("false")>-1&&window.googletag.cmd.push(()=>{(0,U.S$)(n,U.IS.OutOfViewport),googletag.pubads().refresh([n]),(0,v.e)("SlotRefreshed",{slotId:o})})),t>=50?(n.setTargeting(c.t.IsCurrentlyVisible,"true"),m.A.getState().setGptImpressionViewableTime(e,new Date)):n.setTargeting(c.t.IsCurrentlyVisible,"false")};var A=n(34692),N=n(28700),I=n(92568),R=n(97148),y=n(9353);let L=async()=>{let{hid:e,type:t}=await (0,y.G)();"undefined"!=typeof googletag&&googletag.pubads&&e&&t&&googletag.cmd.push(()=>{googletag.pubads().setTargeting("clid","".concat(t,"-").concat(e))})};var x=n(33289),k=n(87186),D=n(9204),M=n(2488),G=n(7177),B=n(66945),V=n(40287),j=n.n(V),H=n(91959),F=n.n(H);let W=e=>{let t=googletag.pubads().getSlots();for(let n=0;n{let e=(0,i.usePathname)(),{hasConsent:t}=(0,M.S)({id:N.Ok.ADVERTISEMENT,type:"category"}),{isUS:n}=(0,G.Ay)(),l=(0,s.useRef)(void 0);return((0,s.useEffect)(()=>{!l.current||t||n||(googletag.cmd.push(()=>{googletag.destroySlots()}),window.location.reload()),l.current=t},[t,n]),(0,s.useEffect)(()=>{(0,p.A)(),function(){if(window.superHeroNativeAds)return;let e={createListeners:()=>{window.addEventListener("message",t=>{let{origin:n}=t;if(n.indexOf("googlesyndication")>-1){let o=t.data;"nauloaded"===o.task&&o.adUnit&&o.adUnit.indexOf("36117602")>-1&&e.handleAdMessage(t,n)}},!1)},getIframe(e){if(!e)return null;let t=document.getElementsByTagName("iframe");for(let n=0;n{let t=e.split("/").filter(e=>e);if(3!==t.length&&4!==t.length)return!1;let n="cars"===t[0],o=t[t.length-1],s=/^\d{4}$/.test(o)||/^[a-zA-Z0-9-]+$/.test(o);return n&&s})(e)||(e=>{let t=e.split("/").filter(e=>e);if(2!==t.length)return!1;let n="cars"===t[0],o=t[t.length-1],s=/^[a-zA-Z0-9-]+$/.test(o);return n&&s})(e)),o="/"===e;googletag.cmd.push(()=>{var e,s,i,a,l,d,p,u,m,g,f,_,w,v,U,h,C;googletag.destroySlots(),googletag.pubads().setTargeting(c.t.PhotoSlided,"false"),googletag.pubads().setTargeting(c.t.NoOutOfViewportRefresh,String(t)),googletag.pubads().setTargeting(c.t.NoTabSwitchRefresh,String(t)),googletag.pubads().setTargeting(c.t.NoUserActivityRefresh,String(t)),googletag.pubads().enableLazyLoad(n||o?z:Y),googletag.pubads().collapseEmptyDivs();let E=(0,k.T)();0!==Object.keys(E).length&&Object.entries({...E}).forEach(e=>{let[t,n]=e;googletag.pubads().setTargeting(t,n)}),L();let T=null!=(U=null==(a=window)||null==(i=a.HRST)||null==(s=i.article)||null==(e=s.tags)?void 0:e.filter(e=>null!=e))?U:[],S=null!=(h=null==(u=window)||null==(p=u.HRST)||null==(d=p.article)||null==(l=d.collection)?void 0:l.map(e=>null==e?void 0:e.url).filter(e=>null!=e))?h:[],P=null!=(C=null==(w=window)||null==(_=w.HRST)||null==(f=_.article)||null==(g=f.contextualTags)||null==(m=g.hctx)?void 0:m.filter(e=>null!=e))?C:[];googletag.pubads().setTargeting("cat",T||[]),googletag.pubads().setTargeting("clc",S||[]),googletag.pubads().setTargeting("hctx",P||[]),googletag.pubads().setTargeting("browserlanguage",(null==(v=navigator)?void 0:v.language)||"en-US");let O=function(){window.abValues=window.abValues||{};let e=window.abValues.rnd||(window.abValues.rnd=Math.ceil(10*Math.random()).toString()),t=window.abValues.rndSop||(window.abValues.rndSop=Math.ceil(100*Math.random()).toString());t=String(t).padStart(3,"0");let n="undefined"==typeof document?null:document.cookie.match("[; ]*".concat("gpt_session_ab","=([^;]+)")),o=n?n[1]:"s".concat(Math.ceil(10*Math.random()).toString()),s=new Date(Date.now()+18e5);return document.cookie="gpt_session_ab=".concat(o,"; expires=").concat(s.toUTCString(),"; path=/;"),[e,"sop".concat(t),o]}();O.length>0&&googletag.pubads().setTargeting("ab",O),Object.keys(E).some(e=>"test"===e.toLowerCase())||x.O_||googletag.pubads().setTargeting("test",r.h.NEXT_PUBLIC_AD_TEST_FIELD_VALUE),googletag.pubads().enableSingleRequest()}),(0,d.Y1)()},[e]),(()=>{let{setLastScrollTime:e}=(0,m.A)(),t=(0,s.useCallback)(()=>m.A.getState()[g.yL][g.JE.ImpressionViewableTime]||{},[]),n=(0,s.useCallback)(()=>{let n=new Date,o=t();googletag.cmd.push(()=>{let e=[];for(let[t,s]of Object.entries(o)){let o=new Date(s).getTime(),i=W(t);u.X.NEXT_PUBLIC_AD_REFRESH_ON_INTERACTION&&i&&n.getTime()-o>r.h.NEXT_PUBLIC_AD_REFRESH_FREQUENCY_ALT&&i.getTargeting(c.t.NoUserActivityRefresh).indexOf("false")>-1&&(e.push(t),f(t),_(i)||((0,U.S$)(i,U.IS.UserInteraction),googletag.pubads().refresh([i])))}e.forEach(e=>{m.A.getState().resetGptImpressionViewableTime(e)})}),e(n)},[e,t]),o=(0,s.useCallback)(()=>{n()},[n]),i=(0,s.useMemo)(()=>F()(()=>{n()},200,{leading:!0,trailing:!0}),[n]),a=(0,s.useCallback)(()=>{let e=t();document.hidden||googletag.cmd.push(()=>{let t=[];for(let n of Object.keys(e)){let e=W(n);e&&w(e)&&e.getTargeting(c.t.NoTabSwitchRefresh).indexOf("false")>-1&&(t.push(n),(0,U.S$)(e,U.IS.TabSwitch),googletag.pubads().refresh([e]))}t.forEach(e=>{m.A.getState().resetGptImpressionViewableTime(e)})})},[t]);(0,s.useEffect)(()=>{if(!x.fL){if(window.addEventListener("visibilitychange",a),u.X.NEXT_PUBLIC_FEATURE_AD_REFRESH){let e="onscrollend"in window,t=e?"scrollend":"scroll",n=e?o:i;return window.addEventListener(t,n),()=>{window.removeEventListener(t,n),i.cancel&&i.cancel()}}return()=>{window.removeEventListener("visibilitychange",a)}}},[i,o,a])})(),(()=>{let e=(e=>"2xl"===e?"xl":e)((0,B.dv)()),[t,n]=(0,s.useState)(e),o=(0,s.useMemo)(()=>j()(()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.cmd.push(function(){let e=window.googletag.pubads().getSlots();window.googletag.pubads().refresh(e,{changeCorrelator:!1})})},500),[]);(0,s.useEffect)(()=>{e!==t&&(o(),n(e))},[e,t,o])})(),(0,s.useEffect)(()=>((0,p.A)(),A.A&&(window.__iasPET=window.__iasPET||{},window.__iasPET.queue=window.__iasPET.queue||[],window.__iasPET.pubId="931688",(0,I.A)("https://cdn.adsafeprotected.com/iasPET.1.js",[N.Ok.PERSONALIZATION])),googletag.cmd.push(function(){r.h.NEXT_PUBLIC_AD_HEADER_BIDDING&&googletag.pubads().disableInitialLoad(),googletag.pubads().addEventListener("slotOnload",C),googletag.pubads().addEventListener("slotRequested",S),googletag.pubads().addEventListener("slotRenderEnded",E.A),googletag.pubads().addEventListener("slotResponseReceived",P),googletag.pubads().addEventListener("slotVisibilityChanged",b),googletag.pubads().addEventListener("impressionViewable",h)}),()=>{googletag.cmd.push(function(){googletag.pubads().removeEventListener("slotOnload",C),googletag.pubads().removeEventListener("slotVisibilityChanged",b),googletag.pubads().removeEventListener("slotRequested",S),googletag.pubads().removeEventListener("slotRenderEnded",E.A),googletag.pubads().removeEventListener("slotResponseReceived",P),googletag.pubads().removeEventListener("impressionViewable",h)})}),[]),t)?r.h.NEXT_PUBLIC_AD_HEADER_BIDDING&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(a.default,{"ccpa-opt-out-ids":"C0004","ccpa-opt-out-lspa":"true",onError:e=>{(0,R.CJ)(e)},onLoad:()=>{(0,R.Di)()},src:"/ad-scripts/moapt-bidder-pb-autos.9.29.0.js"}),(0,o.jsx)(a.default,{"ccpa-opt-out-ids":"C0004","ccpa-opt-out-lspa":"true",onError:R.dP,onLoad:R.ii,src:"https://static-assets.hearstapps.com/moapt/2.392.0/autos/motortrend/nod.js"}),(0,o.jsx)(a.default,{"ccpa-opt-out-ids":"C0004","ccpa-opt-out-lspa":"true",onError:R.Qn,onLoad:R.rX,src:"https://static-assets.hearstapps.com/moapt/2.392.0/autos/motortrend/suggestive-selling.js"}),(0,o.jsx)(a.default,{"ccpa-opt-out-ids":"C0004","ccpa-opt-out-lspa":"true",onError:e=>{(0,R.at)(e)},onLoad:()=>{(0,R.Rf)()},src:"https://c.amazon-adsystem.com/aax2/apstag.js"})]}):null},{FallbackComponent:X.c})},70052:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(58273);let s=e=>e[o.w4]},73585:(e,t,n)=>{"use strict";n.d(t,{PrivacyBanner:()=>h});var o=n(95155),s=n(12115),i=n(93158);let a="owner_transfer_banner_served=",l="us_mags_privacy_banner_served=",r="".concat(a,"true; Max-Age=").concat(86400*(i.h.NEXT_PUBLIC_PRIVACY_BANNER_RUN_DAYS||30),"; Path=/; SameSite=Lax"),c="".concat(l,"true; Max-Age=").concat(86400*(i.h.NEXT_PUBLIC_US_MAGS_PRIVACY_BANNER_RUN_DAYS||90),"; Path=/; SameSite=Lax"),d=(e,t)=>{let n=new Date(e);if(isNaN(n.getTime()))return!1;let o=new Date(n);o.setDate(n.getDate()+t);let s=new Date,i=new Date(s.getFullYear(),s.getMonth(),s.getDate());return i>=n&&i<=o};var p=n(7177),u=n(66945),m=n(52596),g=n(33374),f=n(20002),_=n(69588);let w=e=>{let{onManualClose:t}=e,[n,l]=(0,s.useState)(!0),[c,w]=(0,s.useState)(!1),{geoData:v}=(0,p.Ay)();if((0,s.useEffect)(()=>{var e;if(i.h.NEXT_PUBLIC_PRIVACY_BANNER_FEATURE&&(null==v||null==(e=v.country)?void 0:e.toUpperCase())==="US"&&d(i.h.NEXT_PUBLIC_PRIVACY_BANNER_START_DATE,i.h.NEXT_PUBLIC_PRIVACY_BANNER_RUN_DAYS)){if(document.cookie.split(";").map(e=>e.trim()).some(e=>e.startsWith(a)))return void l(!1);let{hostname:e}=window.location,t=e.split(".").slice(-2).join(".");document.cookie=(e=>e.includes(".")&&!e.endsWith("localhost")&&e.split(".").length>2)(e)?"".concat(r,"; Domain=.").concat(t):r;let n=setTimeout(()=>void l(!1),i.h.NEXT_PUBLIC_PRIVACY_BANNER_DISPLAY_MILLISEC+700);return w(!0),()=>clearTimeout(n)}},[null==v?void 0:v.country]),!n)return null;let U=(0,f.A)("".concat(_.Z2.OwnerTransferBanner.Welcome," {termsOfUse} ").concat(_.Z2.OwnerTransferBanner.IncludingOur," {disputeResolutionProcedures} ").concat(_.Z2.OwnerTransferBanner.AndYouAcknowledge," {privacyNotice} ").concat(_.Z2.OwnerTransferBanner.PleaseReadOur," {privacyNotice} ").concat(_.Z2.OwnerTransferBanner.ToLearnMore),{disputeResolutionProcedures:(0,o.jsx)(u.N_,{"data-id":g.Co.PrivacyDisputeResolutionLink,"data-parent":g.Co.PrivacyOwnerTransferBanner,href:"https://www.hearst.com/-/us-magazines-terms-of-use#_DISPUTE_RESOLUTION",children:_.Z2.OwnerTransferBanner.DisputeResolutionProcedures}),privacyNotice:(0,o.jsx)(u.N_,{"data-id":g.Co.PrivacyNoticeLink,"data-parent":g.Co.PrivacyOwnerTransferBanner,href:"https://www.hearst.com/-/us-magazines-privacy-notice",children:_.Z2.OwnerTransferBanner.PrivacyNotice}),termsOfUse:(0,o.jsx)(u.N_,{"data-id":g.Co.PrivacyTermsOfUseLink,"data-parent":g.Co.PrivacyOwnerTransferBanner,href:"https://www.hearst.com/-/us-magazines-terms-of-use",children:_.Z2.OwnerTransferBanner.TermsOfUse})});return(0,o.jsxs)(u.o5,{as:"div",className:(0,m.A)("bg-neutral-1 text-neutral-8 fixed bottom-0 left-0 z-50 flex w-full items-center px-6 py-4 text-center text-sm transition-all duration-500 md:px-6 md:py-4 md:text-base",c&&n?"translate-y-0":"translate-y-full"),children:[(0,o.jsx)("span",{className:"m-auto max-w-4xl md:flex-none",children:U}),(0,o.jsx)("button",{"aria-label":"Close",className:"ml-2 flex-shrink-0 cursor-pointer text-xl md:ml-4 md:text-2xl","data-id":g.Co.PrivacyOwnerTransferBannerCloseButton,"data-parent":g.Co.PrivacyOwnerTransferBanner,onClick:function(){l(!1),null==t||t()},children:"\xd7"})]})};var v=n(15012);let U=()=>{var e;let[t,n]=(0,s.useState)(!0),[a,r]=(0,s.useState)(!1),{geoData:w}=(0,p.Ay)(),U=(0,u.dv)(),{Sticky:h}=(0,v.A)(),C=(null!=(e=null==h?void 0:h.bottomAdhesion)?e:0)>0;function E(){n(!1)}if((0,s.useEffect)(()=>{var e;if(i.h.NEXT_PUBLIC_US_MAGS_PRIVACY_BANNER_FEATURE&&(null==w||null==(e=w.country)?void 0:e.toUpperCase())==="US"&&d(i.h.NEXT_PUBLIC_US_MAGS_PRIVACY_BANNER_START_DATE,i.h.NEXT_PUBLIC_US_MAGS_PRIVACY_BANNER_RUN_DAYS)){if(document.cookie.split(";").map(e=>e.trim()).some(e=>e.startsWith(l)))return void n(!1);let{hostname:e}=window.location,t=e.split(".").slice(-2).join(".");document.cookie=(e=>e.includes(".")&&!e.endsWith("localhost")&&e.split(".").length>2)(e)?"".concat(c,"; Domain=.").concat(t):c;let o=setTimeout(()=>E(),i.h.NEXT_PUBLIC_US_MAGS_PRIVACY_BANNER_DISPLAY_MILLISEC+700);return r(!0),()=>clearTimeout(o)}},[null==w?void 0:w.country]),!t)return null;let T=(0,f.A)(_.Z2.USMagazinesPrivacyBanner.MainText,{disputeResolution:(0,o.jsx)(u.N_,{"data-id":g.Co.PrivacyDisputeResolutionLink,"data-parent":g.Co.PrivacyNoticeLinkUSMags,href:"https://www.hearst.com/-/us-magazines-terms-of-use#_DISPUTE_RESOLUTION",target:"_blank",children:_.Z2.USMagazinesPrivacyBanner.DisputeResolution}),noticeLink:(0,o.jsx)(u.N_,{"data-id":g.Co.PrivacyNoticeLink,"data-parent":g.Co.PrivacyNoticeLinkUSMags,href:"https://www.hearst.com/-/us-magazines-privacy-notice",target:"_blank",children:_.Z2.USMagazinesPrivacyBanner.NoticeLink}),termsLink:(0,o.jsx)(u.N_,{"data-id":g.Co.PrivacyTermsOfUseLink,"data-parent":g.Co.PrivacyNoticeLinkUSMags,href:"https://www.hearst.com/-/us-magazines-terms-of-use",target:"_blank",children:_.Z2.USMagazinesPrivacyBanner.TermsLink})});return(0,o.jsxs)(u.o5,{as:"div",className:(0,m.A)("bg-neutral-1 text-neutral-8 fixed bottom-0 left-0 z-50 flex w-full items-center text-left text-sm transition-all duration-500 md:p-6 md:text-base","lg"!==U&&"xl"!==U&&"2xl"!==U&&C?"bottom-[55px] px-2 py-2":"bottom-0 px-6 py-4",a&&t?"translate-y-0":"translate-y-full"),children:[(0,o.jsx)("span",{className:"m-auto max-w-4xl md:flex-none",children:T}),(0,o.jsx)("button",{"aria-label":"Close",className:"ml-2 flex-shrink-0 cursor-pointer text-xl md:ml-4 md:text-2xl","data-id":g.Co.PrivacyMagsBannerCloseButton,"data-parent":g.Co.PrivacyNoticeLinkUSMags,onClick:E,children:"\xd7"})]})},h=()=>{let[e,t]=(0,s.useState)(!1),[n,r]=(0,s.useState)(!1),[c,d]=(0,s.useState)(!1),{geoData:u}=(0,p.Ay)();return((0,s.useEffect)(()=>{var e;if((null==u||null==(e=u.country)?void 0:e.toUpperCase())==="US"){let e=document.cookie.split(";").map(e=>e.trim()),n=e.some(e=>e.startsWith(a)),o=e.some(e=>e.startsWith(l));i.h.NEXT_PUBLIC_US_MAGS_PRIVACY_BANNER_FEATURE&&!o?(r(!0),d(!0)):n||o||(t(!0),d(!0))}},[null==u?void 0:u.country]),(0,s.useEffect)(()=>{if(e){let e=setTimeout(()=>{t(!1),setTimeout(()=>{r(!0)},100)},i.h.NEXT_PUBLIC_PRIVACY_BANNER_DISPLAY_MILLISEC);return()=>clearTimeout(e)}},[e]),(0,s.useEffect)(()=>{if(n){let e=setTimeout(()=>{r(!1)},i.h.NEXT_PUBLIC_US_MAGS_PRIVACY_BANNER_DISPLAY_MILLISEC);return()=>clearTimeout(e)}},[n]),c)?(0,o.jsxs)(o.Fragment,{children:[e&&(0,o.jsx)(w,{onManualClose:function(){t(!1),setTimeout(()=>{r(!0)},100)}}),n&&(0,o.jsx)(U,{})]}):null}},75214:(e,t,n)=>{"use strict";n.d(t,{default:()=>r});var o=n(12115),s=n(35695),i=n(36203),a=n(49110),l=n(15012);let r=(0,i.withErrorBoundary)(()=>{let{setNavigation:e}=(0,l.A)(),t=(0,s.usePathname)(),n=(0,o.useRef)(t);return(0,o.useEffect)(()=>{if(t!==n.current){var o;e({previousPath:null!=(o=n.current)?o:""}),n.current=t}},[t,e]),null},{FallbackComponent:a.c})},79661:(e,t,n)=>{"use strict";let o;n.d(t,{Providers:()=>w,ScriptProviders:()=>v});var s=n(95155),i=n(26715),a=n(12115),l=n(52775),r=n(52020);function c(){return new l.E({defaultOptions:{queries:{gcTime:9e5,refetchOnWindowFocus:!1,staleTime:6e4}}})}function d(e){let{children:t}=e,n=r.S$?(0,a.cache)(c)():(o||(o=c()),o);return(0,s.jsx)(i.QueryClientProvider,{client:n,children:t})}var p=n(16696),u=n(28700),m=n(15012),g=n(70052);let f=(0,a.createContext)(void 0),_=e=>{let{children:t}=e,{brand:n}=(0,m.A)(g.Z),[o,i]=(0,a.useState)({brand:p.mz.Motortrend,scriptId:u.z1});return(0,a.useEffect)(()=>{let e=u.z1,t=!1,o="30px";n===p.mz.Hotrod?(e=u.rJ,t=!0,o="0px"):e=u.z1;let s="/logo/".concat(n,"-og.png");i({brand:n,scriptId:e}),t&&(document.documentElement.style.setProperty("--brand-logo-url","url('".concat(s,"')")),document.documentElement.style.setProperty("--logo-margin-left",o))},[n]),(0,s.jsx)(f.Provider,{value:o,children:t})};function w(e){let{children:t}=e;return(0,s.jsx)(d,{children:t})}function v(e){let{children:t}=e;return(0,s.jsx)(_,{children:t})}},86770:(e,t,n)=>{"use strict";n.d(t,{HRSTSetupClient:()=>i});var o=n(12115),s=n(35695);let i=e=>{let{adConfig:t}=e,n=(0,s.usePathname)();return(0,o.useEffect)(()=>{let e={};try{var n,o;if(null==(n=window.__HRST_DATA__)?void 0:n.textContent){e=JSON.parse(window.__HRST_DATA__.textContent)||{};let n=null==(o=document.querySelector('link[rel="canonical"]'))?void 0:o.href;e={adConfig:t,...e,article:{canonicalUrl:n,pageUrl:window.location.href,...e.article||{}}}}}catch(e){}window.HRST=e},[n,t]),(0,o.useEffect)(()=>{let e=()=>{window.dispatchEvent(new CustomEvent("hrstandjamdataloaded"))};return window.addEventListener("jamdataloaded",e),()=>{window.removeEventListener("jamdataloaded",e)}},[]),null}}},e=>{e.O(0,[2508,4152,5779,9910,4747,6945,6554,4693,1686,4301,9588,3374,6696,5012,8885,3026,4315,8441,4573,5853,7358],()=>e(e.s=178)),_N_E=e.O()}]);
//# sourceMappingURL=layout-aa8f73b2192eabb6.js.map