(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,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(426641);var t=e.i(648198),r=e.i(539922),i=e.i(13155),a=e.i(475566),n=e.i(547100),l=e.i(671525),s=e.i(901351),o=e.i(310847),c=e.i(776169),d=e.i(422825),u=e.i(143851),m=e.i(703123),h=e.i(404893),f=e.i(367810),g=e.i(792461);e.s(["GoogleAuthScript",0,function({onLoad:e,prompt:p=!0,isUserLoggedIn:b}){let x=(0,n.useTranslations)("GoogleLogin"),v=(0,a.useSetAtom)(h.googleLoginInitilizedAtom),{loginWithGoogle:w,error:k,clearError:y}=function(){let e=(0,n.useTranslations)("GoogleLogin"),[t,i]=(0,r.useState)(null),h=(0,a.useSetAtom)(o.userHasLoggedInBeforeAtom),f=(0,a.useAtomValue)(m.gsiEmailStatesAtom),{updateEmailSubscriptions:g}=(0,d.useEmailPreferences)(),{refresh:p}=(0,l.usePageNavigation)(),{syncPreferencesFromUpsx:b}=(0,c.usePreferences)(),{authSuccess:x,authRedirect:v}=(0,u.useUserLogin)();return{loginWithGoogle:(0,r.useCallback)(async t=>{let{credential:r}=t;i(null);try{let e=await s.upsxClient.auth.loginWithGoogle({google_id_token:r}),t=e?.isFirstLogin;await x({email:e.email,userID:e.userID,type:t?"signup":"login"},!1);let{newsletter:i,weekly:a,onYourRadar:n,marketing:l,alwaysSubscribe:o}=f||{};return(t||o)&&await g({newsletter:i,weekly:a,onYourRadar:n,marketing:l}).catch(e=>{console.error("Failed to update email subscriptions",e)}),v(),!0}catch(t){console.error("Failed to login with Google",t);try{let r=t?.data,a=r?.messageCode;if(!a)throw Error("No Error Message");switch(a){case 1e3:case 1026:case 1033:i({header:e("emailAlreadyUsedGoogleHeader"),body:e.raw("emailAlreadyUsedGoogleBody")});break;case 1027:case 1030:i({header:e("emailAlreadyRegisteredGoogleHeader"),body:e("emailAlreadyRegisteredGoogleBody")});break;default:throw Error("No Specific Error")}}catch(t){i({header:e("somethingWentWrong")})}return!1}},[h,b,p,x,v,g,f]),error:t,clearError:(0,r.useCallback)(()=>{i(null)},[])}}(),j=(0,g.useRefMemo)(w),C=(0,r.useRef)(null);k&&(C.current=k);let N=C.current;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.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=>{j.current?.(e)}}),v(!0)),e?.(),!b&&p&&t?.prompt()},id:"google-gsi-script"}),N&&(0,t.jsx)(f.Dialog,{open:!!k,onOpenChange:e=>!e&&y(),children:(0,t.jsx)(f.BasicDialog,{showCloseButton:!1,title:N.header||"",description:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:N.body||""}}),primaryAction:{label:x("cancel"),onClick:y}})})]})}],874905)},907303,e=>{"use strict";var t=e.i(648198),r=e.i(539922);e.s(["default",0,function({candidate:e,failedMessage:i="Authentication failed. Please try again.",protectMessage:a="Remove your adblocker.",fetch:n,refresh:l,getCustomAccountInfo:s}){let[o,c]=(0,r.useState)(""),[d,u]=(0,r.useState)(!1),[m,h]=(0,r.useState)(!1),[f,g]=(0,r.useState)(!1),p=(0,r.useRef)([]);(0,r.useEffect)(()=>{e.id!==p.current[0]&&(p.current=[e.id],e.transactIDs&&p.current.push(...e.transactIDs))},[e.id,e.transactIDs]);let b=(0,r.useCallback)(()=>{try{n("/?adm_get_token=1").then(e=>{e.ok&&l()}).catch(()=>{c(i)})}catch{c(i)}},[n,i,l]),x=(0,r.useMemo)(()=>"u">typeof window?window:{admiral:{}},[]);return(0,r.useEffect)(()=>{typeof window>"u"||(x.admiral=x.admiral||function(...e){(x.admiral.q=x.admiral.q||[]).push(e)},x.admiral("after","measure.detected",function(t){if("abr"==e.requirement)t.adblocking?(c(a),u(!0)):g(!0);else if("account"==e.requirement||"benefits"==e.requirement){let t=!!s;x.admiral("after","visitor.latest",function(r){var i;if("account"===e.requirement)(t?s().registered:r.status.registered)||m||(c(a),u(!0));else if("benefits"===e.requirement){let r=[];if(t)r=s().benefits;else{let e=document.cookie.split(";");e&&(r=(null==(i=e.find(e=>e.startsWith("admbenefits=")))?void 0:i.split(","))??[])}if(r){let t=e.benefits??[];if(0==t.length)return void g(!0);let i=!1;for(let e of t)r.includes(e)&&(i=!0);i?g(!0):(c(a),u(!0))}else c(a),u(!0)}})}}))},[]),(0,r.useEffect)(()=>{f&&(g(!1),b())},[f,b]),(0,r.useEffect)(()=>{m||!d||(h(!0),x.admiral("targeting","force",{candidateIDs:p.current}))},[m,d,p,x]),(0,t.jsxs)("div",{children:[o||null," "]})}])},590238,e=>{"use strict";var t=e.i(537989),r=e.i(827049),i=e.i(695203),a=e.i(604323),n=e.i(797770),l=e.i(991511);e.s(["AnalyticsBoundary",0,e=>((0,l.useRehydrateAtoms)([[t.pageIdAtom,e.pageId],[r.pageLocaleAtom,e.pageLocale],[i.deviceClassAtom,e.deviceClass],[a.metricsArticleDataAtom,e.metricsArticleData],[n.adsMetricsUnitAndZoneAtom,e.adsMetricsUnitAndZone??"non_monetized"]]),null)])},855602,e=>{"use strict";var t=e.i(648198),r=e.i(539922),i=e.i(1567),a=e.i(333350);e.s(["ModuleAnalytics",0,({moduleId:e,modulePosition:n,moduleKey:l,variant:s="frontend",children:o})=>{let c=(0,r.useRef)(null),[d,u]=(0,r.useState)(!1),m=(0,r.useRef)(null),h=(0,i.useTrackModuleViewed)();return"admin"===s?(0,t.jsx)(t.Fragment,{children:o}):((0,r.useEffect)(()=>{if(d||!a.default||!c.current)return;let t=c.current,r=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&t.intersectionRatio>=1?m.current||(m.current=setTimeout(()=>{h({moduleId:e,modulePosition:n}),u(!0),m.current=null},2e3)):m.current&&(clearTimeout(m.current),m.current=null)})},{threshold:1});r.observe(t);let i=t.getBoundingClientRect(),l=window.innerHeight||document.documentElement.clientHeight,s=window.innerWidth||document.documentElement.clientWidth;return i.top>=0&&i.left>=0&&i.bottom{h({moduleId:e,modulePosition:n}),u(!0),m.current=null},2e3)),()=>{m.current&&clearTimeout(m.current),r.disconnect()}},[d,e,n,h]),(0,t.jsx)("div",{ref:c,className:"hide-empty","data-module-id":e,"data-module-key":l,"data-item-position":n,children:o}))}])},670279,e=>{"use strict";var t=e.i(648198),r=e.i(539922),i=e.i(13155),a=e.i(204782);let n=({pageTemplate:e,pageDashboard:n})=>{let l=(0,a.default)();return((0,r.useEffect)(()=>{l&&e&&(window._newsroom=window._newsroom||[],window._newsroom.push({pageTemplate:e}),n&&window._newsroom.push({pageDashboard:n}),window._newsroom.push("auditClicks"),window._newsroom.push("trackPage"))},[l,e,n]),l&&e)?(0,t.jsx)(i.default,{src:"//c2.taboola.com/nr/theweatherchannel/newsroom.js",strategy:"beforeInteractive",id:"newsroom_loader_script"}):null};e.s(["Newsroom",0,n,"default",0,n])},622958,e=>{"use strict";var t=e.i(648198),r=e.i(274432),i=e.i(632137),a=e.i(547100);let n=()=>{let e=(0,a.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,n,"default",0,n])},633647,e=>{"use strict";var t=e.i(648198),r=e.i(523084),i=e.i(47524),a=e.i(632137),n=e.i(539922);let l={left:r.ChevronLeft,right:i.ChevronRight};e.s(["default",0,({buttonClassName:e,containerClassName:r,onClick:i,tabIndex:s,direction:o,...c})=>{let[d,u]=(0,n.useState)(!1),m=l[o];return(0,t.jsx)("div",{className:(0,a.cn)("absolute",r),children:(0,t.jsx)("button",{className:(0,a.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:s,...c,children:(0,t.jsx)(m,{className:(0,a.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(648198),r=e.i(147732),i=e.i(539922),a=e.i(240058),n=e.i(25681),l=e.i(632137),s=e.i(475566),o=e.i(663333),c=e.i(633647),d=e.i(88483);let u=(0,i.memo)(({links:e,basePath:u,className:m,mpa:h,showAtThreshold:f})=>{let[g,p]=(0,i.useState)(!1),[b,x]=(0,i.useState)(!1),[v,w]=(0,i.useState)(!1),[k,y]=(0,i.useState)(!1),j=(0,i.useRef)(null),C=(0,i.useRef)(null),N=(0,i.useRef)(null),I=(0,i.useRef)(null),A=(0,d.useForceCollapsedNavbar)(),S=(0,i.useRef)(!1),L=(0,s.useAtomValue)(o.deviceClassAtom),_="mobile"!==L&&"tablet"!==L,E=(0,n.usePathname)(),P=(()=>{if(E===u||E===`${u}/`)return 0;if(u.includes("/weather")){let t=e.findIndex(e=>{let t=e.slug.split("/")[0];return E.includes(`/weather/${t}/`)});return -1!==t?t:0}{let t=e.findIndex(e=>E.includes(`${u}/${e.slug}`));return -1!==t?t:0}})(),R=(0,i.useCallback)(()=>{let e=j.current;if(!e||!_){p(!1),x(!1);return}let{scrollLeft:t,scrollWidth:r,clientWidth:i}=e,a=Math.abs(t),n=a>2,l=a+i(0,r.debounce)(R,150),[R]),T=(0,i.useCallback)(()=>{null===N.current&&(N.current=requestAnimationFrame(()=>{R(),N.current=null}))},[R]);(0,i.useEffect)(()=>{let e=j.current;e&&(S.current="rtl"===getComputedStyle(e).direction),R();let t=j.current;return t&&(t.addEventListener("scroll",T),window.addEventListener("resize",B)),()=>{null!==N.current&&(cancelAnimationFrame(N.current),N.current=null),t&&t.removeEventListener("scroll",T),B.cancel(),window.removeEventListener("resize",B)}},[e,R,T,B]);let F=(0,i.useCallback)(()=>{null===I.current&&(I.current=requestAnimationFrame(()=>{y(!!(f&&window.scrollY>f)),C.current&&w(C.current.getBoundingClientRect().top(F(),window.addEventListener("scroll",F,{passive:!0}),()=>{null!==I.current&&(cancelAnimationFrame(I.current),I.current=null),window.removeEventListener("scroll",F)}),[F]);let M=(0,i.useCallback)(()=>{j.current?.scrollBy({left:-200,behavior:"smooth"})},[]),G=(0,i.useCallback)(()=>{j.current?.scrollBy({left:200,behavior:"smooth"})},[]);return(0,t.jsx)("div",{ref:C,className:(0,l.cn)("pointer-events-none sticky top-0 z-104 md:px-4 md:py-2 md:text-center",{"fixed w-full max-w-screen transform-[translateY(-100%)] transition-[transform] md:max-w-[calc(100vw-73px)]":f,"xl:max-w-[calc(100vw-261px)]":f&&!A,"transform-[translateY(0)]":f&&k}),children:(0,t.jsx)("div",{className:(0,l.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]",(v||f)&&"md:shadow-[0_4px_16px_0_rgba(0,0,0,0.08),_0_0_32px_0_rgba(0,0,0,0.12)]",m),"data-testid":"subnavigation",children:(0,t.jsxs)("div",{className:(0,l.cn)("relative max-md:py-2"),children:[(0,t.jsx)("div",{className:(0,l.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":g}),"aria-hidden":"true"}),(0,t.jsx)(c.default,{containerClassName:(0,l.cn)("absolute top-[50%] -left-17.5 z-10 transition-[left]",{"left-9.5 md:left-6":g}),onClick:M,tabIndex:g?0:-1,"aria-hidden":!g,"aria-label":"Scroll left",direction:"left"}),(0,t.jsx)("div",{ref:j,className:(0,l.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=P===r,n=e.href??("/"===e.slug?u||"/":`${u}/${e.slug}`),s=(0,l.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)(a.default,{href:n,mpa:h,className:s,"aria-current":i?"page":void 0,sourceModule:"subnavigation",children:e.label},e.slug)})}),(0,t.jsx)("div",{className:(0,l.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":b}),"aria-hidden":"true"}),(0,t.jsx)(c.default,{containerClassName:(0,l.cn)("absolute top-[50%] -right-17.5 z-10 transition-[right]",{"right-9.5 md:right-6":b}),onClick:G,tabIndex:b?0:-1,"aria-hidden":!b,"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));u.displayName="SubnavigationUI",e.s(["SubnavigationUI",0,u])},275466,e=>{"use strict";var t=e.i(648198),r=e.i(539922),i=e.i(547100),a=e.i(959194),n=e.i(890972);e.s(["ExploreSubnav",0,function({links:e,locale:l,showAtThreshold:s}){let o=(0,i.useTranslations)("ExploreSubnav"),c=(0,a.getPartner)(),d=o("topStories"),{navLinks:u,basePath:m}=(0,r.useMemo)(()=>({navLinks:[{label:d,slug:"/"},...e.map(e=>({...e,slug:`explore/${e.slug}`}))],basePath:"en-US"===l?"":`/${l}`}),[e,l,d]);return"samsung"===c?null:(0,t.jsx)(n.SubnavigationUI,{links:u,basePath:m,showAtThreshold:s})}])},499746,e=>{"use strict";var t=e.i(648198),r=e.i(539922),i=e.i(475566),a=e.i(405052),n=e.i(427309),l=e.i(147732),s=e.i(381477),o=e.i(240058),c=e.i(316078),d=e.i(180193),u=e.i(368847),m=e.i(889951),h=e.i(343277),f=e.i(674885),g=e.i(617874),p=e.i(25681),b=e.i(693796),x=e.i(747961);let v=(0,r.forwardRef)(({title:e,titleId:r,desc:i,descId:a,...n},l)=>(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:l,"aria-labelledby":r,"aria-describedby":a,...n,children:[i?(0,t.jsx)("desc",{id:a,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 k=e.i(222127);let y=({identifier:e})=>{let r=(0,p.useParams)(),a=r?.locale||"en-US",n=(0,i.useAtomValue)(f.userUnitPreferenceAtom),l=(0,g.unitsSystemByName)(n)?.code,{fromLocationPoint:x}=(0,b.useLocationData)(),v=e.geocode?["/v3/location/point/geocode",e.geocode,a]:e.placeId?["/v3/location/point/placeId",e.placeId,a]:null,{data:y,isLoading:j}=(0,s.default)(v,()=>e.geocode?(0,h.getLocationPointByGeocode)(e.geocode,a):e.placeId?(0,h.getLocationPointByPlaceId)(e.placeId,a):null,{revalidateOnFocus:!1,dedupingInterval:3e5}),C=y?x(y):void 0,{data:N,isLoading:I}=(0,s.default)(C&&["currentObservations",C.geocode,l,a],([e,t,r,i])=>(0,m.getCurrentObservations)({geocode:t,units:r,language:i}),{revalidateOnFocus:!1,dedupingInterval:6e4}),A=y?.location?.placeId??e.placeId,{path:S,isGeolocationLoading:L}=(0,k.default)(A||""),_=j||I||!C||L,E=N?.temperature,P=N?.wxPhraseLong,R=N?.iconCode??-1,B=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":B?`${B} 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:_,skeletonClassName:"h-5 w-28",className:"flex items-center leading-[1.4] font-bold",children:[e?.isGeoIPLocation&&(0,t.jsx)(w,{className:"mr-2 h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:B})]}),(0,t.jsx)(c.WxIcon,{isLoading:_,loadingIconClassName:"h-6 w-6 shrink-0",iconCode:R,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:_,skeletonClassName:"h-4 w-6 shrink-0",className:"shrink-0 text-sm leading-normal",color:"secondary",children:(0,t.jsx)(d.Temperature,{value:E})})," ",(_||P)&&(0,t.jsx)(u.default,{isLoading:_,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:_,skeletonClassName:"h-5 w-28",className:"flex items-center text-xl leading-normal font-bold",children:[e?.isGeoIPLocation&&(0,t.jsx)(w,{className:"mr-2 h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:B})]}),(_||P)&&(0,t.jsx)(u.default,{isLoading:_,skeletonClassName:"h-4 w-24",color:"secondary",className:"truncate text-sm leading-normal",children:P})]}),(0,t.jsx)(c.WxIcon,{isLoading:_,loadingIconClassName:"mr-1 h-12 w-12 shrink-0",iconCode:R,className:"mr-1 h-12 w-12 shrink-0","aria-hidden":"true",iconTheme:"lightBG"}),(0,t.jsx)(u.default,{isLoading:_,skeletonClassName:"h-8 w-12 shrink-0",className:"shrink-0 text-[40px] leading-none font-extrabold",children:(0,t.jsx)(d.Temperature,{value:E})})]})]});return S?(0,t.jsx)(o.default,{href:S,className:"no-underline md:block md:w-full",children:T}):T};var j=e.i(633647),C=e.i(632137);let N=({locationIdentifiers:e,showScrollButtons:i})=>{let[a,n]=(0,r.useState)(!1),[s,o]=(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){n(!1),o(!1);return}let{scrollLeft:t,offsetWidth:r,scrollWidth:a}=e,l=Math.abs(t),s=l>0,d=l+r(0,l.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 f=(0,r.useCallback)(()=>{null===d.current&&(d.current=requestAnimationFrame(()=>{m(),d.current=null}))},[m]),g=(0,r.useCallback)(()=>{c.current?.scrollBy({left:-200,behavior:"smooth"})},[]),p=(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)(j.default,{containerClassName:(0,C.cn)("absolute top-[50%] -left-14.5 transition-[left] md:-left-13.5",{"left-9.5 md:left-11":a}),onClick:g,tabIndex:a?0:-1,"aria-hidden":!a,"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:f,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)(j.default,{containerClassName:(0,C.cn)("absolute top-[50%] -right-14.5 transition-[right] md:-right-13.5",{"right-9.5 md:right-11":s}),onClick:p,tabIndex:s?0:-1,"aria-hidden":!s,"aria-label":"Scroll right",direction:"right"})]})};var I=e.i(663333),A=e.i(145651);let S=()=>{let e=(0,i.useAtomValue)(n.geoipGeocode),{favoriteLocations:l,recentLocations:s}=(0,A.default)(),o=(0,i.useAtomValue)(I.deviceClassAtom),c=(0,r.useMemo)(()=>{let t=[],r=new Set;for(let i of(e&&(t.push({geocode:e,isGeoIPLocation:!0}),r.add(e)),l)){if(t.length>=5)break;if(!i.coordinate)continue;let e=(0,a.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 e of s.filter(e=>!l.some(t=>t.placeID===e))){if(t.length>=5)break;t.push({placeId:e})}return t},[l,s,e]);return 0===c.length?null:(0,t.jsx)(N,{locationIdentifiers:c,showScrollButtons:"mobile"!==o&&"tablet"!==o})};e.s(["ForecastModule",0,S,"default",0,S],499746)},711899,e=>{e.v(t=>Promise.all(["static/chunks/0ypuq.ev5a56~.js"].map(t=>e.l(t))).then(()=>t(171714)))},137688,e=>{e.v(t=>Promise.all(["static/chunks/0vd2x9hh4402h.js"].map(t=>e.l(t))).then(()=>t(72990)))}]);