(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,855602,e=>{"use strict";var t=e.i(297647),r=e.i(477716),i=e.i(1567),l=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:a,variant:n="frontend",children:o})=>{let s=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1),u=(0,r.useRef)(null),m=(0,i.useTrackModuleViewed)();return"admin"===n?(0,t.jsx)(t.Fragment,{children:o}):((0,r.useEffect)(()=>{if(c||!l.default||!s.current)return;let t=s.current,r=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=1?u.current||(u.current=setTimeout(()=>{m({moduleId:e,modulePosition:a}),d(!0),u.current=null},2e3)):u.current&&(clearTimeout(u.current),u.current=null)})},{threshold:1});r.observe(t);let i=t.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,o=window.innerWidth||document.documentElement.clientWidth;return i.top>=0&&i.left>=0&&i.bottom{m({moduleId:e,modulePosition:a}),d(!0),u.current=null},2e3)),()=>{u.current&&clearTimeout(u.current),r.disconnect()}},[c,e,a,m]),(0,t.jsx)("div",{ref:s,className:"hide-empty","data-module-id":e,children:o}))}])},590238,e=>{"use strict";var t=e.i(537989),r=e.i(827049),i=e.i(695203),l=e.i(604323),a=e.i(797770),n=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,n.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[r.pageLocaleAtom,e.pageLocale],[i.deviceClassAtom,e.deviceClass],[l.metricsArticleDataAtom,e.metricsArticleData],[a.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},703123,e=>{"use strict";let t=(0,e.i(751931).atom)({});e.s(["gsiEmailStatesAtom",0,t])},404893,e=>{"use strict";let t=(0,e.i(751931).atom)(!1);e.s(["googleLoginInitilizedAtom",0,t])},874905,e=>{"use strict";e.i(694914);var t=e.i(297647),r=e.i(241722),i=e.i(477716),l=e.i(475566),a=e.i(352194),n=e.i(671525),o=e.i(901351),s=e.i(310847),c=e.i(776169),d=e.i(422825),u=e.i(143851),m=e.i(703123),h=e.i(404893),g=e.i(367810),f=e.i(251392);function b({onLoad:e,prompt:b=!0,isUserLoggedIn:p}){let x=(0,a.useTranslations)("GoogleLogin"),v=(0,l.useSetAtom)(h.googleLoginInitilizedAtom),{loginWithGoogle:w,error:j,clearError:y}=function(){let e=(0,a.useTranslations)("GoogleLogin"),[t,r]=(0,i.useState)(null),h=(0,l.useSetAtom)(s.userHasLoggedInBeforeAtom),g=(0,l.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:f}=(0,d.useEmailPreferences)(),{refresh:b}=(0,n.usePageNavigation)(),{syncPreferencesFromUpsx:p}=(0,c.usePreferences)(),{authSuccess:x,authRedirect:v}=(0,u.useUserLogin)();return{loginWithGoogle:(0,i.useCallback)(async t=>{let{credential:i}=t;r(null);try{let e=await o.upsxClient.auth.loginWithGoogle({google_id_token:i}),t=e?.isFirstLogin;await x({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:r,weekly:l,marketing:a,alwaysSubscribe:n}=g||{};return(t||n)&&await f({newsletter:r,weekly:l,marketing:a}).catch(e=>{console.error("Failed to update email subscriptions",e)}),v(),!0}catch(t){console.error("Failed to login with Google",t);try{let i=t?.data,l=i?.messageCode;if(!l)throw Error("No Error Message");switch(l){case 1e3:case 1026:case 1033:r({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:r({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){r({header:e("somethingWentWrong")})}return!1}},[h,p,b,x,v,f,g]),error:t,clearError:(0,i.useCallback)(()=>{r(null)},[])}}(),k=(0,f.useRefMemo)(w);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{src:"https://accounts.google.com/gsi/client",onLoad:()=>{let t=window.google?.accounts?.id;t&&(t.initialize({client_id:"797231885346-rai9vgnvf4u38enai8bhginnnrh5uvch.apps.googleusercontent.com",context:"signin",ux_mode:"popup",use_fedcm_for_prompt:!0,callback:e=>{k.current?.(e)}}),v(!0)),e?.(),!p&&b&&t?.prompt()},id:"google-gsi-script"}),(0,t.jsx)(g.Dialog,{open:!!j,onOpenChange:e=>!e&&y(),children:(0,t.jsx)(g.BasicDialog,{showCloseButton:!1,title:j?.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:j?.body||""}}),primaryAction:{label:x("cancel")}})})]})}e.s(["GoogleAuthScript",()=>b],874905)},622958,e=>{"use strict";var t=e.i(297647),r=e.i(274432),i=e.i(632137),l=e.i(352194);let a=()=>{let e=(0,l.useTranslations)("Header");return(0,t.jsx)("div",{className:(0,i.cn)("relative z-105 mx-4 my-2 md:hidden"),children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("button",{style:{boxShadow:"0 4px 16px 0 rgba(0, 0, 0, 0.08), 0 0 32px 0 rgba(0, 0, 0, 0.12)"},className:(0,i.cn)("box-border flex h-12 w-full items-center rounded-3xl border-2 border-[#3A61CC00] bg-white! pl-9.5 text-gray-900 outline-0! transition-all hover:border-blue-500 focus-visible:border-blue-500 focus-visible:text-gray-400"),type:"button",onClick:()=>{document?.querySelector?.(".twcSearchTrigger")?.click?.()},children:e("searchPlaceholderText")}),(0,t.jsx)(r.Search,{className:"absolute top-1/2 left-4 flex size-4 -translate-y-1/2 transform items-center text-gray-900"})]})})};e.s(["FakeSearchBar",0,a,"default",0,a])},633647,e=>{"use strict";var t=e.i(297647),r=e.i(523084),i=e.i(47524),l=e.i(632137),a=e.i(477716);let n={left:r.ChevronLeft,right:i.ChevronRight};e.s(["default",0,({buttonClassName:e,containerClassName:r,onClick:i,tabIndex:o,direction:s,...c})=>{let[d,u]=(0,a.useState)(!1),m=n[s];return(0,t.jsx)("div",{className:(0,l.cn)("absolute",r),children:(0,t.jsx)("button",{className:(0,l.cn)("group/scroll-button absolute flex h-11 w-11 transform-[translate(-50%,-50%)] cursor-pointer items-center justify-center rounded-full bg-black opacity-80 transition-[opacity,height,width] duration-75 ease-linear hover:h-12 hover:w-12 hover:opacity-100",d&&"!h-11 !w-11"),onClick:()=>{u(!0),setTimeout(()=>u(!1),75),i?.()},tabIndex:o,...c,children:(0,t.jsx)(m,{className:(0,l.cn)("text-white transition-[height,width] duration-75 group-hover/scroll-button:h-7 group-hover/scroll-button:w-7",d&&"!h-6 !w-6")})})})}])},890972,e=>{"use strict";var t=e.i(297647),r=e.i(147732),i=e.i(477716),l=e.i(240058),a=e.i(375570),n=e.i(632137),o=e.i(475566),s=e.i(663333),c=e.i(633647);let d=(0,i.memo)(({links:e,basePath:d,className:u,mpa:m})=>{let[h,g]=(0,i.useState)(!1),[f,b]=(0,i.useState)(!1),[p,x]=(0,i.useState)(!1),v=(0,i.useRef)(null),w=(0,i.useRef)(null),j=(0,i.useRef)(null),y=(0,i.useRef)(null),k=(0,i.useRef)(!1),C=(0,o.useAtomValue)(s.deviceClassAtom),N="mobile"!==C&&"tablet"!==C,I=(0,a.usePathname)(),A=(()=>{if(I===d||I===`${d}/`)return 0;if(d.includes("/weather")){let t=e.findIndex(e=>{let t=e.slug.split("/")[0];return I.includes(`/weather/${t}/`)});return -1!==t?t:0}{let t=e.findIndex(e=>I.includes(`${d}/${e.slug}`));return -1!==t?t:0}})(),L=(0,i.useCallback)(()=>{let e=v.current;if(!e||!N){g(!1),b(!1);return}let{scrollLeft:t,scrollWidth:r,clientWidth:i}=e,l=Math.abs(t),a=l>2,n=l+i(0,r.debounce)(L,150),[L]),E=(0,i.useCallback)(()=>{null===j.current&&(j.current=requestAnimationFrame(()=>{L(),j.current=null}))},[L]);(0,i.useEffect)(()=>{let e=v.current;e&&(k.current="rtl"===getComputedStyle(e).direction),L();let t=v.current;return t&&(t.addEventListener("scroll",E),window.addEventListener("resize",S)),()=>{null!==j.current&&(cancelAnimationFrame(j.current),j.current=null),t&&t.removeEventListener("scroll",E),S.cancel(),window.removeEventListener("resize",S)}},[e,L,E,S]);let B=(0,i.useCallback)(()=>{null===y.current&&(y.current=requestAnimationFrame(()=>{w.current&&x(w.current.getBoundingClientRect().top(B(),window.addEventListener("scroll",B,{passive:!0}),()=>{null!==y.current&&(cancelAnimationFrame(y.current),y.current=null),window.removeEventListener("scroll",B)}),[B]);let P=(0,i.useCallback)(()=>{v.current?.scrollBy({left:-200,behavior:"smooth"})},[]),_=(0,i.useCallback)(()=>{v.current?.scrollBy({left:200,behavior:"smooth"})},[]);return(0,t.jsx)("div",{ref:w,className:"pointer-events-none sticky top-0 z-104 md:px-4 md:py-2 md:text-center",children:(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-auto overflow-hidden backdrop-blur-md max-md:bg-[linear-gradient(180deg,#FFF_0%,rgba(255,255,255,0.90)_50%,rgba(255,255,255,0.50)_100%)]","md:top-2 md:mx-auto md:w-fit md:max-w-[min(958px,100%)] md:rounded-[28px] md:bg-[#ffffffd6] md:p-1 md:transition-[box-shadow]",p&&"md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",u),"data-testid":"subnavigation",children:(0,t.jsxs)("div",{className:(0,n.cn)("relative max-md:py-2"),children:[(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-none absolute top-0 -left-25 z-[5] h-16 w-24 bg-gradient-to-r from-white from-0% via-white via-60% to-transparent transition-[left] md:-top-1 md:h-14 md:rounded-s-[28px]",{"-left-1":h}),"aria-hidden":"true"}),(0,t.jsx)(c.default,{containerClassName:(0,n.cn)("absolute top-[50%] -left-17.5 z-10 transition-[left]",{"left-9.5 md:left-6":h}),onClick:P,tabIndex:h?0:-1,"aria-hidden":!h,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{ref:v,className:(0,n.cn)("scrollbar-hide flex h-12 items-center gap-2 overflow-x-auto px-1 max-md:px-5"),children:e.map((e,r)=>{let i=A===r,a=e.href??("/"===e.slug?d||"/":`${d}/${e.slug}`),o=(0,n.cn)("h-11 rounded-full px-4 py-2 text-sm whitespace-nowrap transition-[outline-color,border-color,outline-width] duration-150 ease-out","border border-[#0000001a] bg-transparent text-black","inline-flex items-center focus-visible:ring-1 focus-visible:ring-black focus-visible:outline-none",i?"border-transparent font-semibold outline outline-2 outline-black":"font-semibold hover:border-transparent hover:outline hover:outline-2 hover:outline-black");return(0,t.jsx)(l.default,{href:a,mpa:m,className:o,"aria-current":i?"page":void 0,sourceModule:"subnavigation",children:e.label},e.slug)})}),(0,t.jsx)("div",{className:(0,n.cn)("pointer-events-none absolute top-0 -right-25 z-[5] h-16 w-24 bg-gradient-to-l from-white from-0% via-white via-60% to-transparent transition-[right] md:-top-1 md:h-14 md:rounded-e-[28px]",{"-right-1":f}),"aria-hidden":"true"}),(0,t.jsx)(c.default,{containerClassName:(0,n.cn)("absolute top-[50%] -right-17.5 z-10 transition-[right]",{"right-9.5 md:right-6":f}),onClick:_,tabIndex:f?0:-1,"aria-hidden":!f,"aria-label":"Scroll right",direction:"right"})]})})})},(e,t)=>e.basePath===t.basePath&&e.mpa===t.mpa&&e.links.length===t.links.length&&e.links.every((e,r)=>e.label===t.links[r]?.label&&e.slug===t.links[r]?.slug&&e.href===t.links[r]?.href));d.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,d])},275466,e=>{"use strict";var t=e.i(297647),r=e.i(477716),i=e.i(352194),l=e.i(959194),a=e.i(890972);function n({links:e,locale:n}){let o=(0,i.useTranslations)("ExploreSubnav"),s=(0,l.getPartner)(),c=o("topStories"),{navLinks:d,basePath:u}=(0,r.useMemo)(()=>({navLinks:[{label:c,slug:"/"},...e.map(e=>({...e,slug:`explore/${e.slug}`}))],basePath:"en-US"===n?"":`/${n}`}),[e,n,c]);return"samsung"===s?null:(0,t.jsx)(a.SubnavigationUI,{links:d,basePath:u})}e.s(["ExploreSubnav",()=>n])},499746,e=>{"use strict";var t=e.i(297647),r=e.i(477716),i=e.i(475566),l=e.i(405052),a=e.i(472737),n=e.i(147732),o=e.i(381477),s=e.i(240058),c=e.i(316078),d=e.i(180193),u=e.i(368847),m=e.i(889951),h=e.i(343277),g=e.i(674885),f=e.i(617874),b=e.i(375570),p=e.i(693796),x=e.i(747961);let v=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:l,...a},n)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:n,"aria-labelledby":r,"aria-describedby":l,...a,children:[i?(0,t.jsx)("desc",{id:l,children:i}):null,void 0===e?(0,t.jsx)("title",{id:r,children:"Current Location"}):e?(0,t.jsx)("title",{id:r,children:e}):null,(0,t.jsx)("path",{fill:"currentColor",d:"M2 6.491a.5.5 0 0 0 .315.473l4.8 1.92 1.92 4.801A.5.5 0 0 0 9.5 14h.008a.5.5 0 0 0 .462-.329l4-11a.5.5 0 0 0-.64-.64l-11 4A.5.5 0 0 0 2 6.49"})]})),w=r.default.forwardRef((e,r)=>(0,t.jsx)(x.BaseIcon,{ref:r,icon:v,...e}));w.displayName="CurrentLocationFilled";var j=e.i(222127);let y=({identifier:e})=>{let r=(0,b.useParams)(),l=r?.locale||"en-US",a=(0,i.useAtomValue)(g.userUnitPreferenceAtom),n=(0,f.unitsSystemByName)(a)?.code,{fromLocationPoint:x}=(0,p.useLocationData)(),v=e.geocode?["/v3/location/point/geocode",e.geocode,l]:e.placeId?["/v3/location/point/placeId",e.placeId,l]:null,{data:y,isLoading:k}=(0,o.default)(v,()=>e.geocode?(0,h.getLocationPointByGeocode)(e.geocode,l):e.placeId?(0,h.getLocationPointByPlaceId)(e.placeId,l):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),C=y?x(y):void 0,{data:N,isLoading:I}=(0,o.default)(C?.geocode?["observations",C.geocode,n,l]:null,([e,t,r,i])=>(0,m.getCurrentObservations)({geocode:t,units:r,language:i}),{revalidateOnFocus:!1,dedupingInterval:6e4}),A=y?.location?.placeId??e.placeId,{path:L,isGeolocationLoading:S}=(0,j.default)(A||""),E=k||I||!C||S,B=N?.temperature,P=N?.wxPhraseLong,_=N?.iconCode??-1,R=e.name||C?.name||C?.city||C?.displayName,T=(0,t.jsxs)("div",{className:"default-hover-box-shadow box-border w-fit max-w-90 cursor-pointer rounded-2xl border border-[#0000001a] transition-[box-shadow,border] hover:border-transparent","aria-label":R?`${R} weather`:"Location weather",children:[(0,t.jsxs)("div",{className:"flex h-16 flex-col justify-center px-3 md:hidden",children:[(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsxs)(u.default,{isLoading:E,skeletonClassName:"h-5 w-28",className:"truncate leading-[1.4] font-bold",children:[e?.isGeoIPLocation&&(0,t.jsx)(w,{className:"mr-2 h-4 w-4"}),R]}),(0,t.jsx)(c.WxIcon,{isLoading:E,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:_,className:"h-6 w-6 shrink-0","aria-hidden":"true",iconTheme:"lightBG"})]}),(0,t.jsxs)("div",{className:"flex text-sm",children:[(0,t.jsx)(u.default,{isLoading:E,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(d.Temperature,{value:B})})," ",(E||P)&&(0,t.jsx)(u.default,{isLoading:E,skeletonClassName:"h-4 w-22",color:"secondary",className:"truncate text-sm leading-normal",children:P})]})]}),(0,t.jsxs)("div",{className:"hidden h-20 items-center px-3 pl-4 md:flex",children:[(0,t.jsxs)("div",{className:"mr-2 flex min-w-0 flex-1 flex-col gap-0.5",children:[(0,t.jsxs)(u.default,{isLoading:E,skeletonClassName:"h-5 w-28",className:"truncate text-xl leading-normal font-bold",children:[e?.isGeoIPLocation&&(0,t.jsx)(w,{className:"mr-2 h-4 w-4"}),R]}),(E||P)&&(0,t.jsx)(u.default,{isLoading:E,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:P})]}),(0,t.jsx)(c.WxIcon,{isLoading:E,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:_,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(u.default,{isLoading:E,skeletonClassName:"h-8 w-12 shrink-0",className:"shrink-0 text-[40px] leading-none font-extrabold",children:(0,t.jsx)(d.Temperature,{value:B})})]})]});return L?(0,t.jsx)(s.default,{href:L,className:"no-underline md:block md:w-full",children:T}):T};var k=e.i(633647),C=e.i(632137);let N=({locationIdentifiers:e,showScrollButtons:i})=>{let[l,a]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),c=(0,r.useRef)(null),d=(0,r.useRef)(null),u=(0,r.useRef)(!1),m=(0,r.useCallback)(()=>{let e=c.current;if(!e||!i){a(!1),s(!1);return}let{scrollLeft:t,offsetWidth:r,scrollWidth:l}=e,n=Math.abs(t),o=n>0,d=n+r(0,n.debounce)(m,150),[m]);(0,r.useEffect)(()=>{let e=c.current;return e&&(u.current="rtl"===getComputedStyle(e).direction),m(),window.addEventListener("resize",h),()=>{null!==d.current&&cancelAnimationFrame(d.current),h.cancel(),window.removeEventListener("resize",h)}},[m,h]);let g=(0,r.useCallback)(()=>{null===d.current&&(d.current=requestAnimationFrame(()=>{m(),d.current=null}))},[m]),f=(0,r.useCallback)(()=>{c.current?.scrollBy({left:-200,behavior:"smooth"})},[]),b=(0,r.useCallback)(()=>{c.current?.scrollBy({left:200,behavior:"smooth"})},[]);return 0===e.length?null:(0,t.jsxs)("div",{className:"relative -mt-2 -mb-4 overflow-hidden",children:[i&&(0,t.jsx)(k.default,{containerClassName:(0,C.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":l}),onClick:f,tabIndex:l?0:-1,"aria-hidden":!l,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{className:"scrollbar-hide flex gap-2 overflow-x-auto p-4 py-6",role:"list","data-testid":"forecast-module",onScroll:g,ref:c,children:e.map((e,r)=>(0,t.jsx)("div",{role:"listitem",children:(0,t.jsx)(y,{identifier:e})},e.placeId??e.geocode??r))}),i&&(0,t.jsx)(k.default,{containerClassName:(0,C.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":o}),onClick:b,tabIndex:o?0:-1,"aria-hidden":!o,"aria-label":"Scroll right",direction:"right"})]})};var I=e.i(663333),A=e.i(145651);let L=()=>{let{effectiveLocation:e}=(0,a.useLocationSource)({}),{favoriteLocations:n,recentLocations:o}=(0,A.default)(),s=(0,i.useAtomValue)(I.deviceClassAtom),c=(0,r.useMemo)(()=>{let t=[],r=new Set;for(let i of(e&&(t.push({geocode:e.geocode,name:e.name??void 0,isGeoIPLocation:!0}),r.add(e.geocode)),n)){if(t.length>=5)break;if(!i.coordinate)continue;let e=(0,l.formatGeocode)(i.coordinate);r.has(e)||(t.push({geocode:e,placeId:i.placeID??void 0,name:i.name??void 0}),r.add(e))}for(let r of o.filter(t=>!n.some(e=>e.placeID===t)&&t!==e?.placeId)){if(t.length>=5)break;t.push({placeId:r})}return t},[n,o,e]);return 0===c.length?null:(0,t.jsx)(N,{locationIdentifiers:c,showScrollButtons:"mobile"!==s&&"tablet"!==s})};e.s(["ForecastModule",0,L,"default",0,L],499746)},711899,e=>{e.v(t=>Promise.all(["static/chunks/8198254d842f31ab.js"].map(t=>e.l(t))).then(()=>t(171714)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/775f6992a5490e4c.js"].map(t=>e.l(t))).then(()=>t(72990)))}]);