(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7997],{2101:(e,t,l)=>{"use strict";l.r(t),l.d(t,{PrecipIntensityBlock:()=>o,default:()=>s});var a=l(21102),r=l(59432),n=l(71458),i=l(76589);let o=e=>{let{locationEntry:t,locationProvider:l}=e,o="specified"===l,{specifiedLocationData:s,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,r.v)(t),u=o&&s&&t?(0,n.I)(s):void 0;return(0,a.jsx)(i.A,{location:u,initializing:o&&c,initialError:o?d:void 0})},s=o},3552:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HealthAndActivitiesBlock:()=>_,default:()=>P});var a=l(21102),r=l(42494),n=l(83037),i=l(73017),o=l(64566),s=l(20423),d=l(81078),c=l(52849),u=l(71535);let m=e=>{let{value:t,maxValue:l,strokeColor:r,heading:n,description:o,icon:m,href:h}=e,p=(0,i.c)("HealthAndActivities");return(0,a.jsxs)(s.default,{className:(0,u.cn)("flex items-center justify-between border-[#dedede] not-last:border-b-1","pt-[18px] pr-4 pb-[17px] pl-6"),href:h,children:[(0,a.jsx)(d.V,{value:t,maxValue:l,diameter:50,strokeWidth:4,strokeColor:r,icon:m,className:"min-w-[50px]"}),(0,a.jsxs)("div",{className:"ml-5 grow",children:[(0,a.jsx)("div",{className:"mb-1 text-lg leading-snug",children:p(n)}),(0,a.jsx)("div",{className:"text-sm leading-[1.25] text-[#6f7585]",children:p(o)})]}),(0,a.jsx)(c.c,{className:"ml-2.5 w-4 shrink-0"})]})},h=e=>{let{data:t=[]}=e,l=(0,i.c)("HealthAndActivities");return t.length?(0,a.jsxs)(o.Zp,{"data-testid":"HealthAndActivitiesModule","aria-label":l("healthAndActivities"),children:[(0,a.jsx)(o.aR,{text:l("healthActivities")}),(0,a.jsx)(o.Wu,{children:t.map(e=>(0,a.jsx)(m,{...e},e.heading))})]}):null};var p=l(89131),v=l(59946),x=l(32123),f=l(66188);let g=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"grass"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.366 2.062c.194.108.291.331.238.546-.751 3.018-.824 5.682-.714 7.753.492-1.662 1.312-3.691 2.919-5.446a.494.494 0 0 1 .605-.097c.2.11.296.345.232.564a25.4 25.4 0 0 0-.807 3.851c-.185 1.515-.185 3.022.205 4.113a.493.493 0 0 1-.928.328c-.47-1.312-.444-3.008-.254-4.56.066-.54.153-1.07.25-1.573-.966 1.698-1.384 3.427-1.696 4.715-.101.419-.191.79-.285 1.1a.492.492 0 0 1-.96-.084l-.001-.007c-.213-1.791-.582-4.891.033-8.718-.707 1.279-1.072 2.704-1.268 4.06-.144 1-.195 1.949-.23 2.758l-.012.309c-.027.659-.05 1.245-.127 1.635a.492.492 0 0 1-.97-.025c-.323-2.224-1.173-4.559-2.65-6.574.215.872.401 1.8.55 2.686.283 1.695.441 3.311.38 4.15a.492.492 0 0 1-.983-.072c.053-.711-.086-2.226-.37-3.917-.28-1.68-.693-3.466-1.16-4.71a.49.49 0 0 1 .192-.581.495.495 0 0 1 .613.059c1.71 1.653 2.894 3.65 3.626 5.698a23 23 0 0 1 .166-1.554c.303-2.095 1.007-4.496 2.815-6.323a.495.495 0 0 1 .591-.084",clipRule:"evenodd"})]})}),y=r.forwardRef((e,t)=>(0,a.jsx)(f.h,{ref:t,icon:g,...e}));y.displayName="Grass";var b=l(34679);let w={0:"None",1:"Low",2:"Moderate",3:"High",4:"VeryHigh"},j={0:"veryLowRisk",1:"lowRisk",2:"mediumRisk",3:"highRisk",4:"veryHighRisk"},N={0:"#00e838",1:"#a9eB02",2:"#ebbb02",3:"#f27200",4:"#ff0000"},C={0:"#D9DCFD",1:"#AEAFFF",2:"#868CFF",3:"#5151FF",4:"#17007E"};var T=l(66757);let A=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Flu"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M8.5 5.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M11 7.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M8 8.5a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1M9 10.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0M5.75 9a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M12.975 7.5H14v-1h1v3h-1v-1h-1.025a4.97 4.97 0 0 1-1.108 2.66l.719.719.707-.707.707.707L11.879 14l-.707-.707.707-.707-.719-.718a4.97 4.97 0 0 1-2.66 1.107V14h1v1h-3v-1h1v-1.025a4.97 4.97 0 0 1-2.66-1.107l-.719.718.707.707-.707.707L2 11.879l.707-.707.707.707.719-.718A4.97 4.97 0 0 1 3.025 8.5H2v1H1v-3h1v1h1.025a4.97 4.97 0 0 1 1.108-2.66l-.719-.719-.707.707L2 4.121 4.121 2l.707.707-.707.707.719.718A4.97 4.97 0 0 1 7.5 3.025V2h-1V1h3v1h-1v1.025a4.97 4.97 0 0 1 2.66 1.107l.719-.718-.707-.707.707-.707L14 4.121l-.707.707-.707-.707-.719.718A4.97 4.97 0 0 1 12.975 7.5m-7.197 3.826a4 4 0 1 0 4.444-6.652 4 4 0 0 0-4.444 6.652",clipRule:"evenodd"})]})]})}),S=r.forwardRef((e,t)=>(0,a.jsx)(f.h,{ref:t,icon:A,...e}));S.displayName="Flu";var M=l(17577);let I=e=>{let{location:t}=e,{effectiveLocation:l,isLocationLoading:r,locationError:i}=(0,n.s)({location:t}),{data:o,isLoading:s,error:d}=(e=>{let t=(0,b.useParams)(),l=null==t?void 0:t.locale,{data:a,error:r,isLoading:n}=(0,v.Ay)(e?["pollen",e.geocode,l]:null,e=>{let[t,l,a]=e;return(0,x.K)({geocode:l,language:a})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:i,error:o,isLoading:s}=(0,v.Ay)(e?["cognitiveHealth",e.geocode,l]:null,e=>{let[t,l,a]=e;return(0,T.Jh)({geocode:l,language:a,conditionType:"coldAndFlu"})},{revalidateOnFocus:!1,dedupingInterval:6e4}),d={locId:null==e?void 0:e.placeId,locale:l},c=(0,M.n)({key:"allergy",interpolationArgs:d}),u=a?function(e,t){let{pollenForecast12hour:l}=e,a=Object.entries({grass:l.grassPollenIndex[0]||0,ragweed:l.ragweedPollenIndex[0]||0,tree:l.treePollenIndex[0]||0}).sort((e,t)=>{let[l,a]=e,[r,n]=t;return n-a})[0][0],r=l["".concat(a,"PollenIndex")][0]||0,n=w[r],i="".concat(a,"Pollen").concat(n);return{value:r,maxValue:4,heading:"allergy",description:0!==r?i:"noPollenDetected",strokeColor:N[r],icon:y,href:t}}(a,c):void 0,m=(0,M.n)({key:"coldFlu",interpolationArgs:d});return{data:[u,i?function(e,t){let{riskLevel:l}=(null==e?void 0:e.coldAndFlu)||{},a=null==l?void 0:l[0];return null==a?null:{value:a,maxValue:4,heading:"coldFlu",description:"".concat(j[a],"ColdFlu"),strokeColor:C[a],icon:S,href:t}}(i,m):void 0].filter(Boolean),isLoading:n||s,error:r||o}})(l),c=s||r,u=d||i;return o?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.DebugCollector,{componentName:"HealthAndActivities",data:{props:{location:t},state:{effectiveLocation:l,isLocationLoading:r,isLoading:c,data:o,error:u,componentState:u&&"error"||c&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,a.jsx)(h,{data:o})]}):null};var R=l(59432),k=l(71458);let _=e=>{let{locationProvider:t,locationEntry:l}=e,r="specified"===t,{specifiedLocationData:n,specifiedLocationError:i,isSpecifiedLocationLoading:o}=(0,R.v)(r?l:null);return r&&o?(0,a.jsx)("div",{children:"Loading location data..."}):r&&i?(0,a.jsxs)("div",{children:["Error loading location data: ",i.message]}):r&&n&&l?(0,a.jsx)(I,{location:(0,k.I)(n)}):r?null:(0,a.jsx)(I,{})},P=_},4385:(e,t)=>{"use strict";var l,a,r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.PollutantType=t.AirQualityCategory=t.AirQualityForecastDuration=t.AirQualityScale=void 0,function(e){e.EPA="EPA",e.HJ6332012="HJ6332012",e.ATMO="ATMO",e.UBA="UBA",e.DAQI="DAQI",e.NAQI="NAQI",e.IMECA="IMECA",e.CAQI="CAQI"}(l||(t.AirQualityScale=l={})),function(e){e.TWELVE_HOUR="12hour",e.TWENTY_FOUR_HOUR="24hour",e.FORTY_EIGHT_HOUR="48hour",e.SEVENTY_TWO_HOUR="72hour"}(a||(t.AirQualityForecastDuration=a={})),function(e){e.GOOD="Good",e.MODERATE="Moderate",e.UNHEALTHY_FOR_SENSITIVE_GROUPS="Unhealthy for Sensitive Groups",e.UNHEALTHY="Unhealthy",e.VERY_UNHEALTHY="Very Unhealthy",e.HAZARDOUS="Hazardous"}(r||(t.AirQualityCategory=r={})),function(e){e.CO="CO",e.NO2="NO2",e.O3="O3",e.PM10="PM10",e.PM2_5="PM2.5",e.SO2="SO2"}(n||(t.PollutantType=n={}))},4499:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TwitterBlock:()=>i,default:()=>o});var a=l(21102),r=l(42494);let n="twitter-script-loaded",i=e=>{let{entryMethod:t,tweetURL:l,tweetId:i,showThread:o}=e,s=(0,r.useRef)(null),d=(0,r.useCallback)(()=>"id"===t&&i?"https://twitter.com/i/status/".concat(i):"url"===t&&l?l.replace("x.com","twitter.com"):null,[t,i,l]),{isLoaded:c}=function(){let[e,t]=(0,r.useState)(()=>!!(window.twttr&&window.twttr.widgets)),[l,a]=(0,r.useState)(null);return(0,r.useEffect)(()=>{if(e)return;if(!l){if(window.twttr&&window.twttr.widgets)return void t(!0);a(new Promise(e=>{if(window.twttr&&window.twttr.widgets){t(!0),e();return}let l=document.createElement("script");l.src="https://platform.twitter.com/widgets.js",l.async=!0,l.onload=()=>{t(!0);let l=new CustomEvent(n);window.dispatchEvent(l),e()},document.body.appendChild(l)}))}l&&l.then(()=>t(!0));let r=()=>t(!0);return window.addEventListener(n,r),()=>{window.removeEventListener(n,r)}},[e,l]),{isLoaded:e}}();return(0,r.useEffect)(()=>{let e=d();e&&(s.current&&(s.current.innerHTML='\n

\n \n
\n ')),c&&window.twttr&&window.twttr.widgets&&window.twttr.widgets.load(s.current))},[d,i,l,t,o,c]),(0,a.jsx)("div",{className:"flex items-center",ref:s})},o=i},5216:(e,t,l)=>{"use strict";l.r(t),l.d(t,{MorningBriefBlock:()=>G,default:()=>Z});var a=l(21102),r=l(42494),n=l(52748),i=l(93426),o=l(8900),s=l(34961),d=l(67058),c=l(59946),u=l(92105),m=l(56716),h=l(30068),p=l(1396),v=l(71535);function x(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB,{"data-slot":"command",className:(0,v.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...l})}function f(e){let{className:t,...l}=e;return(0,a.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[(0,a.jsx)(p.A,{className:"size-4 shrink-0 opacity-50"}),(0,a.jsx)(h.uB.Input,{"data-slot":"command-input",className:(0,v.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...l})]})}function g(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.List,{"data-slot":"command-list",className:(0,v.cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",t),...l})}function y(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.Group,{"data-slot":"command-group",className:(0,v.cn)("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...l})}function b(e){let{className:t,...l}=e;return(0,a.jsx)(h.uB.Item,{"data-slot":"command-item",className:(0,v.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...l})}l(39234);var w=l(84260),j=l(34679);function N(e){var t;let{label:l,placeholder:n,className:o,location:h,onChangeLocation:p}=e,N=(0,j.useParams)(),C=null==N?void 0:N.locale,[T,A]=(0,r.useState)(!1),[S,M]=(0,r.useState)(""),{isLoading:I,data:R}=function(e,t){let l=e.trim().length>0,{isLoading:a,data:r,error:n}=(0,c.Ay)(l?["search/locations",encodeURIComponent(e)]:null,async()=>await (0,d.SK)(e,t));return{isLoading:a,data:r,error:n}}((0,u.A)(S,300),C);return(0,a.jsxs)(m.AM,{open:T,onOpenChange:A,children:[(0,a.jsx)(m.Wv,{asChild:!0,children:(0,a.jsxs)(s.$n,{variant:"outline",role:"combobox",className:(0,v.cn)("text-muted-foreground flex w-full bg-white px-2 text-nowrap",o),children:[(0,a.jsx)("div",{children:I?(0,a.jsx)(i.A,{className:"animate-spin"}):(0,a.jsx)(w.A,{})}),(0,a.jsx)("div",{className:"flex flex-1 px-2 text-start",children:null!=(t=null==h?void 0:h.displayName)?t:l})]})}),(0,a.jsx)(m.hl,{className:"w-[var(--radix-popover-trigger-width)]",showArrow:!1,children:(0,a.jsxs)(x,{shouldFilter:!1,children:[(0,a.jsx)(f,{placeholder:n,value:S,onValueChange:M}),(0,a.jsx)(g,{children:(0,a.jsx)(y,{children:null==R?void 0:R.map(e=>(0,a.jsx)(b,{value:e.locId,onSelect:()=>{null==p||p(e),A(!1)},children:e.address},e.locId))})})]})})]})}var C=l(22793);function T(e){let{label:t,error:l,className:r,...n}=e;return(0,a.jsxs)("div",{className:"w-full",children:[t&&(0,a.jsx)("label",{className:"text-sm",children:t}),(0,a.jsx)(C.p,{...n,className:l?"".concat(r," border-red-500"):r})]})}var A=l(20423);let S={"{{terms}}":{text:"Terms",url:"https://".concat("weather.com","/legal")},"{{privacy}}":{text:"Privacy Policy",url:"https://".concat("weather.com","/en-US/twc/privacy-policy")}},M=/\{\{(.*?)\}\}/g;function I(){return(0,a.jsx)("div",{className:"mt-4 text-xs",children:"By signing up you agree to the {{terms}} & {{privacy}}. Unsubscribe at any time.".split(M).map((e,t)=>{let l=S["{{".concat(e,"}}")];return l?(0,a.jsx)(A.default,{href:l.url,className:"underline",children:l.text},t):(0,a.jsx)("span",{children:e},t)})})}let R={src:"/_next/static/media/morning-brief-logo.73126316.svg"},k={src:"/_next/static/media/ellipse.b0c8befa.png"};var _=l(17851),P=l(52166),E=l(61300),L=l(59103),F=l(11776),D=l(57809),V=l(90728);let B=(0,l(51107).tG)("emailPreferences",null,void 0,{getOnInit:!0});var H=l(66172),z=l(78639);let W=()=>{let[e,t]=(0,D.fp)(B),{user:l}=(0,H.J)(),a=(null==l?void 0:l.userID)||null,n=(null==l?void 0:l.isUserLoggedIn)||!1,i=(0,r.useCallback)(l=>{a&&t({userId:a,expiry:Date.now()+9e5,subscriptions:function(e,t){let l=(null==t?void 0:t.length)?t:z.J3,a={};return e?(null==l||l.forEach(e=>{a[e.subscriptionGroupName]=e}),e.forEach(e=>{a[e.subscriptionGroupName]=e}),Object.values(a)):l}(l,null==e?void 0:e.subscriptions)})},[a,t,null==e?void 0:e.subscriptions]),o=e&&e.userId===a&&e.expiry&&e.expiry>Date.now();return(0,c.Ay)(a&&n&&!o?"getEmailPreferencesStatus/".concat(a):void 0,()=>(0,V.j)(),{revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,errorRetryCount:2,onSuccess:e=>{a&&e&&i(e.subscriptions)}}),{subscriptions:a&&e?e.subscriptions:null,updateSubscriptions:i}};async function O(e,t){let{arg:l}=t,{email:a,location:r,locale:n,isAnonymous:i}=l,{location:o}=await (0,F.$M)(r.placeId,n).catch(()=>({location:null})),s={subscriptions:[{subscriptionGroupName:e,isSubscribed:!0,attributes:{location:r.placeId,latitude:r.latitude,longitude:r.longitude,dmaCode:(null==o?void 0:o.dmaCd)||null,adminDistrict:r.adminDistrict,adminDistrictCode:r.adminDistrictCode||null,postalCode:r.postalCode}}]};return i&&(s.email=a),await (0,P.p_)(s).then(e=>({...e,sentSubscriptions:s.subscriptions}))}var U=l(86892),q=l(94456),Q=l(35465);let G=()=>{var e,t;let l=(0,j.useParams)(),d=(0,j.useSearchParams)(),c=null==l?void 0:l.locale,{userProfile:u}=(0,H.J)(),[m,h]=(0,r.useState)(null!=(e=null==u?void 0:u.email)?e:""),[p,v]=(0,r.useState)(null),[x,f]=(0,r.useState)(!1),{data:g,loading:y,onSubmit:b,error:w}=function(){let{updateSubscriptions:e}=W(),t=(()=>{let e="alert-subscription-changed",t=(0,E.G)(),l=(0,L.N)();return(0,r.useCallback)(a=>{let{name:r,status:n}=a,i={...l,name:r,status:n?"enabled":"disabled"};if(!t)return void console.warn("MParticle is not initialized");try{var o,s,d,c;null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,e,null==(s=window.mParticle)||null==(o=s.EventType)?void 0:o.Other,i),console.debug('MParticle: Event "'.concat(e,'" tracked'),i)}catch(t){console.error('MParticle: Event "'.concat(e,'" failed'),t)}},[l,t])})(),{isMutating:l,trigger:a,data:n,error:i,reset:o}=(0,_.A)("newsletter/signup/daily-newsletters-1",(e,t)=>O("daily-newsletters-1",t));return{loading:l,error:i,data:n,onSubmit:(0,r.useCallback)(async l=>{let r=await a(l);if(r.sentSubscriptions&&e(r.sentSubscriptions),"success"===r.status){var n,i;t({name:"newsletter",status:(null==(i=r.sentSubscriptions)||null==(n=i[0])?void 0:n.isSubscribed)||!1})}return r},[t,a,e]),onReset:o}}(),C=d.get("cm_ven"),A=null==C?void 0:C.startsWith("dnt_newsletter"),{subscriptions:S}=W(),M=(0,U.c)(),P=(0,r.useMemo)(()=>(0,Q.C)(S,z.rn),[S]),F=(0,r.useCallback)(async e=>{e.preventDefault(),!y&&m.trim()&&p&&(f(!0),M({interactionElement:"morningbrief signup",interactionType:"click",moduleId:"morning-brief-block"}),await b({email:m,location:p,locale:c,isAnonymous:!(null==u?void 0:u.email)}))},[y,m,p,M,b,c,null==u?void 0:u.email]);return!x&&(null==P?void 0:P.isSubscribed)||A?null:(0,a.jsxs)("div",{"data-flatplan-id":"flatplan_signup_form",style:{backgroundImage:'url("'.concat(k.src,'")'),backgroundPosition:"right top",backgroundRepeat:"no-repeat",backgroundSize:"70px"},className:"my-4 space-y-2 rounded-xl bg-white py-5 pr-[30px] pl-5 shadow-[0_3px_20px_0_rgba(181,171,162,0.5)]",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-end sm:gap-3",children:[(0,a.jsx)(q.Ay,{src:R.src,alt:"",className:"m-0 w-37.5",rounded:!1}),(0,a.jsx)("div",{className:"mb-1.5 hidden min-h-[24px] min-w-[2px] bg-black sm:block"}),(0,a.jsx)("div",{className:"text-lg font-semibold",children:"Weather in your inbox"})]}),(null==g?void 0:g.status)==="success"?(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(n.A,{className:"h-6 w-6 text-green-500"}),(0,a.jsx)("div",{className:"text-sm text-gray-700",children:(0,a.jsx)("p",{children:"You are subscribed to the Morning Brief newsletter."})})]}):(0,a.jsxs)("form",{onSubmit:F,className:"flex flex-1 flex-col items-end gap-4 pt-4 lg:flex-row",children:[(0,a.jsx)(T,{id:"email",required:!0,type:"email",placeholder:"Email",className:"h-12",value:m,onChange:e=>h(e.target.value),error:!!(null==g?void 0:g.emailError),disabled:!!(null==u?void 0:u.email)}),(0,a.jsx)(N,{label:"Forecast Location",placeholder:"Search City or Zip Code",className:"h-12 items-center text-sm",location:p,onChangeLocation:v}),(0,a.jsx)("div",{children:(0,a.jsxs)(s.$n,{type:"submit",className:"flex h-12 items-center gap-1 text-nowrap",disabled:y||!(m&&p),children:[(0,a.jsx)("span",{children:"Sign Up"}),y&&(0,a.jsx)(i.A,{className:"animate-spin"})]})})]}),w&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(o.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:"Failed to subscribe, please try again."})]}),(null==g?void 0:g.status)==="error"&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-red-500",children:[(0,a.jsx)(o.A,{className:"h-6 w-6 text-red-500"}),(0,a.jsx)("div",{className:"text-sm",children:null!=(t=g.emailError)?t:g.error})]}),(0,a.jsx)(I,{})]})};G.displayName="MorningBriefBlock";let Z=G},6548:(e,t,l)=>{"use strict";l.d(t,{v:()=>b});var a=l(44182);let r=(0,a.h)("AdUtils"),n=async e=>{let{player:t,user:l,ctx:a={},isMobile:r=!1}=e;if(!t)return;if(null==l?void 0:l.isUserPremium)return void t.play();let n=await i(a,r);n?t.playAd(n):t.play()},i=async function(e){let t,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!c())return null;let a=s(e,l),n=o({},e.iab);window.__Helios.emit("UPDATE_AD_UNIT_PATH",a);try{var i,u,m;null==(m=window.__Helios.modules)||null==(u=m.iabc)||null==(i=u.update)||i.call(u,{page:n,site:{v1:["IAB15-10_Weather"],v3:["390_Weather"]}})}catch(e){r.error("Error updating IABC parameters",e)}try{t=await d()}catch(e){t=null,r.error("Error getting ad tag",e)}return window.__Helios.emit("UPDATE_AD_UNIT_PATH",a),t},o=(e,t)=>{let l={...e};for(let e in t)Array.isArray(t[e])?(l[e]=[...l[e]||[],...t[e]],l[e]=[...new Set(l[e])]):"object"==typeof t[e]&&null!==t[e]?l[e]=o(l[e]||{},t[e]):l[e]=t[e];return l},s=(e,t)=>{var l,a,r,n,i,o;let s=null==(a=window)||null==(l=a.__HeliosConfig)?void 0:l.generalConfig,d=null!=(i=null==s||null==(r=s.targeting)?void 0:r.networkCode)?i:"/7646",c=null!=(o=null==s||null==(n=s.targeting)?void 0:n.adUnits)?o:t?"mobile_smart_us":"web_weather_us",u=e.collectionAdZone||e.adzone||"video";return"".concat(d,"/").concat(c,"/").concat(u)},d=async()=>{let e=[];try{var t;e=await (null==(t=window)?void 0:t.__Helios.video.requestVideoBids())}catch(e){r.error("Error getting video bids",e)}return await window.__Helios.modules.videoTag.createAdTag(e)},c=()=>{try{var e,t,l,a,r;return"function"==typeof(null==(t=window.__Helios)||null==(e=t.video)?void 0:e.requestVideoBids)&&"function"==typeof(null==(r=window.__Helios)||null==(a=r.modules)||null==(l=a.videoTag)?void 0:l.createAdTag)}catch(e){return!1}},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"https";return e.replace(/^\/\//,"".concat(t,"://"))},m=e=>{let{collectionId:t,videoIndex:l,videoId:a}=e||{};return{videoCount:l,videoId:a,collectionId:t}},h=e=>"GDFP"===e||"AdSense/AdX"===e;l(21102),l(2346);var p=l(37811);let v=(0,a.h)("NewRelic");function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{var l,a,r;null==(r=window)||null==(a=r.NREUM)||null==(l=a.addPageAction)||l.call(a,e,{...f(t,"meta.")})}catch(e){v.error("New Relic: sendReumEvent error",e instanceof Error?e.message:String(e))}}p.env.NEW_RELIC_RUM_ACCOUNT_ID,p.env.NEW_RELIC_RUM_APP_ID,p.env.NEW_RELIC_RUM_LICENSE_KEY;let f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.fromEntries(Object.entries(e).map(e=>{let[l,a]=e;return["".concat(t).concat(l),a]}))},g=(0,a.h)("AdEvents"),y=new Set(["amznbid","crt_pb","hb_pb"]),b=[{eventName:"ready",callback:e=>{let{event:t}=e;x("videoReady",{isViewable:!!t.viewable,setupTime:t.setupTime})}},{eventName:"beforePlay",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:r,user:i,isMobile:o}=e;if(!(null==r?void 0:r.current))return;let s=a.getPlaylistItem(),d=null==s||null==(t=s.custom)?void 0:t.ctx;d&&(d.videoIndex=a.getPlaylistIndex()),x("videoBeforePlay",{...m(d),isViewable:!!l.viewable,playReason:l.playReason}),a.stop(),await n({player:a,user:i,ctx:d,isMobile:o}),r.current=!1}},{eventName:"adRequest",callback:e=>{var t;let{event:l,player:a}=e,r=a.getPlaylistItem(),n=null==r||null==(t=r.custom)?void 0:t.ctx,i={},o=m(n);try{let e=u(l.tag||""),t=new URL(e).searchParams.get("cust_params"),a=(e=>e?e.split("&").reduce((e,t)=>{let[l,a]=t.split("=");return l&&a&&(e[l]||(e[l]=[]),e[l].push(a)),e},{}):{})(t);for(let e of Object.keys(a))y.has(e)&&(i["".concat("kv_").concat(e)]="".concat(a[e]))}catch(e){g.error("Error parsing cust_params",e)}x("videoAdRequest",{...o,isViewable:!!l.viewable,roll:l.adposition,...i})}},{eventName:"adStarted",callback:e=>{var t,l,a,r,n,i;let{event:o,player:s}=e,d=s.getPlaylistItem(),c=null==d||null==(t=d.custom)?void 0:t.ctx,{duration:u,adposition:p}=o,v=m(c),f="";try{let e=null==(i=o.ima)||null==(n=i.ad)?void 0:n.data;e&&(f=(e=>{let{adSystem:t,adId:l,adWrapperSystems:a,adWrapperIds:r}={adSystem:"",adId:"",adWrapperSystems:[],adWrapperIds:[],...e};if(h(t))return l;let n=a.findIndex(h);return n>=0&&n{var t;let{event:l,player:a}=e,r=a.getPlaylistItem();x("videoStart",{...m(null==r||null==(t=r.custom)?void 0:t.ctx),isViewable:!!l.viewable,loadTime:l.loadTime})}},{eventName:"complete",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();x("videoComplete",{...m(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"adSkipped",callback:e=>{var t;let{player:l}=e,a=l.getPlaylistItem();x("videoAdSkip",{...m(null==a||null==(t=a.custom)?void 0:t.ctx)})}},{eventName:"playlistItem",callback:async e=>{var t;let{event:l,player:a,isFirstPlayRef:r,user:i,isMobile:o}=e;if(null==r?void 0:r.current)return;let{item:s}=l,d=null==s||null==(t=s.custom)?void 0:t.ctx;d.videoIndex=a.getPlaylistIndex(),a.stop(),await n({player:a,user:i,ctx:d,isMobile:o})}},{eventName:"adComplete",callback:async e=>{let{player:t}=e;t.play()}},{eventName:"adError",callback:async e=>{var t;let{event:l,player:a}=e,r=a.getPlaylistItem();x("videoAdError",{...m(null==r||null==(t=r.custom)?void 0:t.ctx),message:l.message,code:l.code,vastCode:l.vastCode,roll:l.adposition}),g.error("Ad error occurred",l),a.play()}},{eventName:"error",callback:async e=>{var t;let{event:l,player:a}=e,r=a.getPlaylistItem();x("videoError",{...m(null==r||null==(t=r.custom)?void 0:t.ctx),message:l.message,code:l.code}),g.error("Video Player error",l)}},{eventName:"setupError",callback:e=>{let{event:t}=e;x("videoSetupError",{message:t.message,code:t.code})}}]},6685:(e,t,l)=>{"use strict";l.d(t,{S:()=>d});var a=l(21102);l(42494);var r=l(71535),n=l(49820),i=l(87403),o=l(90267);let s=e=>{let{pressureTendencyCode:t,iconClassName:l}=e;return 1===t?(0,a.jsx)(n.D,{"data-testid":"PressureRisingIcon",className:(0,r.cn)("mr-1 inline-block h-4 w-4",l),"aria-label":"Pressure rising"}):2===t?(0,a.jsx)(i.y,{"data-testid":"PressureFallingIcon",className:(0,r.cn)("mr-1 inline-block h-4 w-4",l),"aria-label":"Pressure falling"}):null},d=e=>{let{className:t,unitsClassName:l,pressureAltimeter:n,pressureMeanSeaLevel:i,pressureTendencyCode:d,units:c,iconClassName:u}=e,m=c?(0,o.Bu)(c):null,h=null==m?void 0:m.pressure,p=(()=>{let e=n&&n>0||i&&i>0?n||i:null;return e?"e"===c?e.toFixed(2):e.toFixed(1):null})();return(0,a.jsx)("span",{"data-testid":"PressureValue",className:(0,r.cn)("inline-flex items-center",t),children:p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s,{pressureTendencyCode:d,iconClassName:u}),(0,a.jsx)("span",{children:p}),"\xa0",(0,a.jsx)("span",{className:(0,r.cn)(l),children:h})]}):"--"})}},8501:(e,t,l)=>{"use strict";l.d(t,{A:()=>g});var a=l(21102);l(42494);var r=l(75919),n=l(30684),i=l(36070),o=l(97889),s=l(59946),d=l(34961),c=l(34679),u=l(71535),m=l(80387),h=l(13206);let p=e=>{let{date:t,locale:l="en-US",timeZone:a}=e;if(!t)return null;let{cDate:r,cTimeZone:n}=(0,h.r)({date:t,locale:l,timeZone:a});return new Intl.DateTimeFormat(l,{weekday:"long",timeZone:n}).format(r)};var v=l(73017),x=l(26464),f=l(26763);let g=e=>{let{location:t,className:l,headlineClassName:h,showSubheadline:g=!1}=e,y=(0,c.useParams)(),b=null==y?void 0:y.locale,w=(0,v.c)("AlertHeadlines"),{data:j,error:N,isLoading:C}=(0,s.Ay)((null==t?void 0:t.geocode)?["alerts",t.geocode]:null,e=>{let[t,l]=e;return(0,r.Sn)({geocode:l,language:b})},{revalidateOnFocus:!1,dedupingInterval:6e4})||{},T=(null==j?void 0:j.alerts)&&j.alerts.length>0?j.alerts[0]:null,A=T?(()=>{if(!T)return null;let{productIdentifier:e,phenomena:t,significance:l}=T;if(!e||!t||!l)return null;let a=(0,n.F)({productIdentifier:e,phenomena:t,significance:l}),r=(0,i.t)({productIdentifier:e||"",phenomena:t,significance:l}),o={1:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"},2:{icon:"#000",fill:"#e6731f",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#25242299",buttonBackgroundColor:"#25242299"},3:{icon:"#000",fill:"#ebbb02",border:"#f0f0f0",textColor:"#ffffff",backgroundColor:"#25242299",buttonBackgroundColor:"#25242299"},4:{icon:"#fff",fill:"#a51ccb",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#25242299",buttonBackgroundColor:"#ffffff1a"},severe:{icon:"#fff",fill:"#ba0d00",border:"#f0f0f0",textColor:"#FFFFFF",backgroundColor:"#ba0d00",buttonBackgroundColor:"#ba0d00"}};return o[r?"severe":a]||o[4]})():null,S=T?(0,n.F)({productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance}):null,M=T?(0,i.t)({productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance}):null;if(C||N||!T)return null;let I=T.effectiveTimeLocalTimeZone||T.endTimeLocalTimeZone||"",R=(e=>{let{effectiveTimeLocal:t,endTimeLocal:l}=e,a="";switch(!0){case!!(t&&l):a="subheadlineTextWithStartAndEndTime";break;case!!(!t&&l):a="subheadlineTextWithoutStartTime";break;case!!(t&&!l):a="subheadlineTextWithoutEndTime";break;default:return""}return a})({effectiveTimeLocal:T.effectiveTimeLocal,endTimeLocal:T.endTimeLocal}),k=(0,f.k)({phenomena:T.phenomena,significance:T.significance,areaId:T.areaId,officeCode:T.officeCode,eventTrackingNumber:T.eventTrackingNumber,locId:(null==t?void 0:t.placeId)||""});return(0,a.jsxs)("a",{href:k,className:(0,u.cn)("flex items-center gap-4 rounded-sm px-2 py-2 text-sm",l),style:{backgroundColor:null==A?void 0:A.backgroundColor,color:null==A?void 0:A.textColor},role:"alert","aria-live":"polite",children:[(0,a.jsxs)("div",{className:"flex-1 flex-col",children:[(0,a.jsxs)("div",{className:"flex gap-2",children:[T&&(0,a.jsx)(o.AlertIcon,{productIdentifier:T.productIdentifier,phenomena:T.phenomena,significance:T.significance,className:"h-4 w-4 items-start","aria-hidden":"true"}),(0,a.jsx)("span",{className:(0,u.cn)("uppercase",h),children:T.eventDescription})]}),g&&(0,a.jsx)(x.Ay,{className:"mt-1 uppercase",variant:"Caption.S.Bold",color:"inverse",children:w(R,{[(null==T?void 0:T.effectiveTimeLocal)&&"startTime"]:(0,m.P)({date:T.effectiveTimeLocal,weekday:"short",locale:b,timeZone:T.ianaTimeZone,minutes:!0}),[(null==T?void 0:T.endTimeLocal)&&"endTime"]:(e=>{let{effectiveTimeLocal:t,endTimeLocal:l,locale:a,ianaTimeZone:r}=e,n=p({date:t,locale:a,timeZone:r}),i=p({date:l,locale:a,timeZone:r});return(0,m.P)({date:l,locale:a,weekday:n!==i&&"short"||void 0,timeZone:r,minutes:!0})})({effectiveTimeLocal:T.effectiveTimeLocal||"",endTimeLocal:T.endTimeLocal||"",locale:b,ianaTimeZone:T.ianaTimeZone||""}),timeZone:I})})]}),j&&j.alerts.length>1&&(0,a.jsxs)(d.$n,{variant:"outline",size:"sm",style:{backgroundColor:null==A?void 0:A.buttonBackgroundColor,...1===S||M?{outline:"solid 1px #ffffff"}:{}},className:"flex h-6 items-center justify-center rounded-xs border-0 px-2 py-2 text-xs text-white hover:bg-transparent hover:text-white","aria-label":"View ".concat(j.alerts.length-1," more alerts"),children:["+",j.alerts.length-1," MORE"]})]})}},8765:(e,t,l)=>{"use strict";l.d(t,{e:()=>i});var a=l(21102);l(42494);var r=l(71535),n=l(90267);let i=e=>{let t,l,{precipType:i="rain",rain:o,snow:s,qpf:d=0,qpfSnow:c=0,units:u,unitOverride:m,className:h,unitClass:p}=e,v=null!=o?o:d,x=null!=s?s:c,f=u?(0,n.Bu)(u):null;if("snow"===i)t=x,l="accumulation";else if("rain"===i)t=v,l="precip";else if("precip"===i){let e=Number(v)>=Number(x);t=e?v:x,l=e?"precip":"accumulation"}else t=v,l="precip";let g=null==f?void 0:f[l];return(0,a.jsxs)("span",{"data-testid":"AccumulationValue",className:(0,r.cn)(h),children:[(0,a.jsx)("span",{children:t})," ",(0,a.jsx)("span",{className:(0,r.cn)(p),children:m||g})]})}},9225:(e,t,l)=>{"use strict";l.d(t,{c:()=>a});let a={"@3xs":256,"@2xs":288,"@xs":320,"@sm":384,"@md":448,"@lg":512,"@xl":576,"@2xl":672,"@3xl":768,"@4xl":896,"@5xl":1024,"@6xl":1152,"@7xl":1280}},9959:(e,t,l)=>{"use strict";l.d(t,{A:()=>a});let a=()=>""},10229:(e,t,l)=>{"use strict";t.lh=void 0,t.$c=h,t.eH=p;let a=l(19318),r=l(56438),n=l(40919),i=l(31082),o=l(14527),s=l(78217),d=l(14527),c=l(20015),u=l(59488),m=l(4385);async function h(e){let l=(0,a.getHourlyForecastUrlConfig)(e),i=(0,r.urlFrom)(l),o=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}}),s=await (0,n.handleFetchResponse)(o);return(0,t.lh)(s)}async function p(e){let[t,l]=await Promise.all([h(e),(0,u.getHourlyAirQualityForecast)({geocode:e.geocode,language:e.language,scale:m.AirQualityScale.EPA,duration:function(e){switch(e){case o.HourlyForecastDuration.SIX_HOUR:case o.HourlyForecastDuration.TWELVE_HOUR:return m.AirQualityForecastDuration.TWELVE_HOUR;case o.HourlyForecastDuration.ONE_DAY:return m.AirQualityForecastDuration.TWENTY_FOUR_HOUR;case o.HourlyForecastDuration.TWO_DAY:return m.AirQualityForecastDuration.FORTY_EIGHT_HOUR;case o.HourlyForecastDuration.THREE_DAY:case o.HourlyForecastDuration.TEN_DAY:case o.HourlyForecastDuration.FIFTEEN_DAY:default:return m.AirQualityForecastDuration.SEVENTY_TWO_HOUR}}(e.duration)}).catch(()=>null)]);var a=t,r=l;if(!r)return a;let n=new Map(r.forecast.map(e=>[e.validTimeGmt,e]));return a.map(e=>{let t=n.get(e.validTimeUtc);return t?{...e,airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory}:e})}t.lh=(0,i.createTransformer)(e=>{var t,l,a,r,n,i,o,u,m,h,p,v,x,f,g,y,b,w,j,N,C,T,A,S,M,I,R,k,_;return{cloudCover:null!=(t=e.cloudCover)?t:0,dayOfWeek:null!=(l=e.dayOfWeek)?l:"",dayOrNight:null!=(a=e.dayOrNight)?a:d.DayOrNight.DAY,expirationTimeUtc:null!=(r=e.expirationTimeUtc)?r:0,iconCode:null!=(n=e.iconCode)?n:0,iconCodeExtend:null!=(i=e.iconCodeExtend)?i:0,precipChance:null!=(o=e.precipChance)?o:0,precipType:null!=(u=e.precipType)?u:s.PrecipType.RAIN,pressureMeanSeaLevel:null!=(m=e.pressureMeanSeaLevel)?m:0,qpf:null!=(h=e.qpf)?h:0,qpfSnow:null!=(p=e.qpfSnow)?p:0,relativeHumidity:null!=(v=e.relativeHumidity)?v:0,temperature:null!=(x=e.temperature)?x:0,temperatureDewPoint:null!=(f=e.temperatureDewPoint)?f:0,temperatureFeelsLike:null!=(g=e.temperatureFeelsLike)?g:0,temperatureHeatIndex:null!=(y=e.temperatureHeatIndex)?y:0,temperatureWindChill:null!=(b=e.temperatureWindChill)?b:0,uvDescription:null!=(w=e.uvDescription)?w:d.UVDescription.LOW,uvIndex:null!=(j=e.uvIndex)?j:0,validTimeLocal:null!=(N=e.validTimeLocal)?N:"",validTimeUtc:null!=(C=e.validTimeUtc)?C:0,visibility:null!=(T=e.visibility)?T:0,windDirection:null!=(A=e.windDirection)?A:0,windDirectionCardinal:(0,c.normalizeCardinal)(null!=(S=e.windDirectionCardinal)?S:d.WindDirectionCardinal.NORTH),windGust:null!=(M=e.windGust)?M:null,windSpeed:null!=(I=e.windSpeed)?I:0,wxPhraseLong:null!=(R=e.wxPhraseLong)?R:"",wxPhraseShort:null!=(k=e.wxPhraseShort)?k:"",wxSeverity:null!=(_=e.wxSeverity)?_:0}})},13206:(e,t,l)=>{"use strict";l.d(t,{r:()=>r});var a=l(27335);let r=e=>{let{date:t,timeZone:l}=e;return{cDate:new Date((0,a.$)(t)),cTimeZone:(e=>{try{return new Intl.DateTimeFormat("en-US",{timeZone:e}),e}catch(e){return"Etc/UTC"}})(l)}}},13247:(e,t,l)=>{"use strict";function a(e){return"object"==typeof e&&null!==e&&"url"in e&&("mimeType"in e||"seo"in e&&"altText"in e.seo)}l.d(t,{bt:()=>a})},14340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTileServerSeriesDynamicMapsUrlConfig=function(){return{host:"api.weather.com",protocol:"https",pathname:"/v3/TileServer/series/productSet/dynamicmaps",query:{apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},15065:(e,t,l)=>{"use strict";l.d(t,{Y:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Rain Drop"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M8 14.256a4.506 4.506 0 0 1-4.5-4.5 5 5 0 0 1 .747-2.478l3.33-5.303a.52.52 0 0 1 .847 0l3.314 5.278a5.03 5.03 0 0 1 .762 2.503 4.506 4.506 0 0 1-4.5 4.5M8 3.18 5.11 7.784a4 4 0 0 0-.61 1.972 3.5 3.5 0 0 0 7 0 4.03 4.03 0 0 0-.624-1.998z"}),(0,a.jsx)("path",{d:"M10.103 9.757a.5.5 0 0 1 .319.631 2.74 2.74 0 0 1-1.747 1.724.5.5 0 0 1-.313-.95c.615-.203.976-.68 1.11-1.086a.5.5 0 0 1 .63-.32"})]})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="RainDrop"},15238:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AirQualityIndexBlock:()=>w,default:()=>j});var a=l(21102),r=l(33650),n=l.n(r),i=l(81078),o=l(34961),s=l(8900),d=l(71535),c=l(26464),u=l(56716);let m=e=>{let{airQualityIndex:t,airQualityCategory:l,description:r="Air quality is acceptable; however, for some pollutants there may be a moderate health concern for a very small number of people who are unusually sensitive to air pollution.",source:m,disclaimer:h,detailsUrl:p,className:v}=e;return(0,a.jsxs)("div",{className:(0,d.cn)("bg-card flex flex-col gap-4 border-b border-gray-500 pb-6 pl-3",v),"data-testid":"AirQualityIndex",children:[(0,a.jsx)(c.EY,{variant:"Title.S",className:"pb-4",children:"Air Quality Index"}),(0,a.jsxs)("div",{className:"flex items-center gap-6",children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(i.V,{value:t,maxValue:500,diameter:80,strokeWidth:8,displayValue:t,textClassName:"text-[32px] font-light"})}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col gap-2",children:[(0,a.jsx)(c.EY,{elementType:"h2",className:"text-base leading-tight font-semibold text-gray-900 @md:text-lg @lg:text-xl @xl:text-2xl",children:l}),(0,a.jsxs)(c.EY,{elementType:"p",className:"text-sm font-normal text-gray-500 @md:text-base",children:[" ",r]})]})]}),p&&(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)(o.$n,{asChild:!0,className:"m-4 mb-0",children:(0,a.jsx)(n(),{href:p,children:"See details"})})}),(0,a.jsxs)(u.AM,{children:[(0,a.jsx)(u.Wv,{asChild:!0,className:"max-w-[140px]",children:(0,a.jsxs)("button",{className:"text-text-secondary hover:text-text-primary flex cursor-pointer items-center gap-2 text-sm transition-colors",children:[(0,a.jsx)(s.A,{className:"h-4 w-4"}),(0,a.jsx)(c.EY,{variant:"Caption.M",className:"text-gray-500",children:"Air Quality Index"})]})}),(0,a.jsx)(u.hl,{align:"start",className:"w-[320px] p-4",children:(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsxs)("div",{className:"max-w-[200px] flex-1",children:[(0,a.jsx)("h3",{className:"text-text-primary mb-3 text-sm font-semibold",children:"Levels"}),(0,a.jsx)("div",{className:"space-y-2",children:[{name:"Good",color:"#308020",range:"0-50"},{name:"Moderate",color:"#FFDE33",range:"51-100"},{name:"Unhealthy for Sensitive Groups",color:"#FF9933",range:"101-150"},{name:"Unhealthy",color:"#CC0033",range:"151-200"},{name:"Very Unhealthy",color:"#660099",range:"201-300"},{name:"Hazardous",color:"#660099",range:"301-500"}].map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("div",{className:"h-3 w-3 flex-shrink-0 rounded-full",style:{backgroundColor:e.color}}),(0,a.jsxs)("span",{className:"text-text-primary text-sm",children:[e.name," (",e.range,")"]})]},e.name))})]}),(m||h)&&(0,a.jsxs)("div",{className:"flex-1",children:[(0,a.jsx)("h3",{className:"text-text-primary mb-3 text-sm font-semibold",children:"Source"}),(0,a.jsxs)("div",{className:"text-text-secondary space-y-2 text-xs",children:[m&&(0,a.jsx)("p",{children:m}),h&&(0,a.jsx)("p",{children:h})]})]})]})})]})]})};var h=l(83037),p=l(34679),v=l(59946),x=l(59488),f=l(4385);let g=e=>{var t,l,r,n;let{location:i,initializing:o,initialError:s}=e,{effectiveLocation:d,isLocationLoading:c}=(0,h.s)({location:i}),u=null==(t=(0,p.useParams)())?void 0:t.locale,{airQualityData:g,error:y,isLoading:b}=(e=>{let{effectiveLocation:t,locale:l}=e,{data:a,error:r,isLoading:n}=(0,v.Ay)(t?["get-air-quality-forecast",t.geocode,f.AirQualityForecastDuration.TWENTY_FOUR_HOUR,f.AirQualityScale.EPA,l]:null,e=>{let[t,l,a,r,n]=e;return(0,x.getHourlyAirQualityForecast)({geocode:l,duration:a,scale:r,language:n})},{revalidateOnFocus:!1,dedupingInterval:6e4});return{airQualityData:a,error:r,isLoading:n}})({effectiveLocation:d,locale:u});if(o||b||c||!g)return(0,a.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,a.jsx)("div",{className:"text-text-secondary",children:"Loading air quality data..."})});if(s||y||!(null==g||null==(l=g.forecast)?void 0:l.length))return(0,a.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,a.jsx)("div",{className:"text-text-secondary",children:"Unable to load air quality data"})});let w=g.forecast[0];if(!w)return(0,a.jsx)("div",{className:"flex items-center justify-center p-6",children:(0,a.jsx)("div",{className:"text-text-secondary",children:"Unable to load air quality data"})});let j=d?"/".concat(u,"/forecast/air-quality/l/").concat(d.geocode):void 0;return(0,a.jsx)(m,{airQualityIndex:w.airQualityIndex,airQualityCategory:w.airQualityCategory,description:null==(n=w.messages)||null==(r=n.general)?void 0:r.text,source:g.source,disclaimer:g.disclaimer,detailsUrl:j})};var y=l(59432),b=l(71458);let w=e=>{let{locationProvider:t,locationEntry:l}=e,r="specified"===t,{specifiedLocationData:n,specifiedLocationError:i,isSpecifiedLocationLoading:o}=(0,y.v)(r?l:null),s=r&&n&&l?(0,b.I)(n):void 0;return(0,a.jsx)(g,{location:s,initializing:r&&o,initialError:r?i:void 0})},j=w},17081:(e,t,l)=>{"use strict";t.I=i;let a=l(56286),r=l(56438),n=l(40919);async function i(e){let t=(0,a.getSunV3WeatherInsightsUrlConfig)(e),l=(0,r.urlFrom)(t),i=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,n.handleFetchResponse)(i)}},18365:(e,t,l)=>{"use strict";l.d(t,{W:()=>c});var a=l(21102),r=l(33940),n=l(47460),i=l(15065),o=l(71535),s=l(48015),d=l(78217);let c=e=>{let{precipChance:t=null,precipType:l,showIcon:c=!0,displayMode:u="text",className:m,iconClassName:h,textClassName:p,progressClassName:v,progressBarClassName:x}=e;if((0,r.g)(t))return"--";let f=l===d.PrecipType.SNOW?n.D:i.Y;return(0,a.jsxs)(a.Fragment,{children:[("text"===u||"both"===u)&&(0,a.jsxs)("span",{className:(0,o.cn)(m,p),children:[c&&(0,a.jsx)(f,{className:(0,o.cn)("size-4",h)}),(0,a.jsx)(s.N,{value:t,className:"align-middle"})]}),("progress"===u||"both"===u)&&(0,a.jsxs)("div",{className:(0,o.cn)("relative inline-block h-5 w-26 overflow-hidden rounded-xl bg-[#e9e9e9] align-middle",m,v),children:[(0,a.jsx)("div",{className:(0,o.cn)("bg-brand-100 relative h-full w-full rounded-xl",x),style:{left:"".concat(t-100,"%")}}),(0,a.jsxs)("div",{className:"absolute top-0 bottom-0 flex h-full w-full items-center p-1",children:[c&&(0,a.jsx)(f,{className:(0,o.cn)("size-3.25",h)}),(0,a.jsx)(s.N,{value:t,className:"text-sm"})]})]})]})}},18637:(e,t,l)=>{"use strict";l.d(t,{A:()=>ee});var a=l(21102),r=l(42494),n=l(57809),i=l(85422),o=l(73017),s=l(80381),d=l(26464),c=l(2092),u=l(99721),m=l(9225),h=l(33940),p=l(35943),v=l(66188);let x=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Rain Snow Wintery Mix"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M7.982 1.833c-1.303 0-2.391 1.032-2.5 2.37l-.034.407-.405.049c-.67.08-1.209.672-1.209 1.41 0 .724.518 1.307 1.17 1.405l.217.015h4.896l.024.003q.087.008.175.008c1.01 0 1.851-.845 1.851-1.915 0-.946-.66-1.719-1.51-1.882l-.264-.051-.104-.248c-.386-.93-1.279-1.57-2.307-1.57M4.535 3.747C4.843 2.096 6.26.833 7.982.833c1.367 0 2.543.798 3.123 1.95 1.198.352 2.062 1.48 2.062 2.802 0 1.597-1.264 2.915-2.851 2.915a3 3 0 0 1-.245-.01H5.187l-.25-.018H4.92l-.034-.005c-1.168-.16-2.051-1.182-2.051-2.398 0-1.091.71-2.026 1.701-2.322",clipRule:"evenodd","data-figma-bg-blur-radius":20}),(0,a.jsx)("path",{d:"m7.954 9.295-.543 1.491a.5.5 0 0 0 .94.342l.543-1.491a.5.5 0 1 0-.94-.342M10.267 11.085l-.856 2.352a.5.5 0 0 0 .94.342l.856-2.352a.5.5 0 1 0-.94-.342M5.964 11.324a.25.25 0 0 1 .25.25v.152a.25.25 0 0 1 .297.396l-.297.297v2.092l.301.317a.25.25 0 0 1-.301.391v.207a.25.25 0 0 1-.5 0v-.212a.25.25 0 0 1-.309-.389l.309-.315v-2.092l-.307-.307a.25.25 0 0 1 .307-.39v-.147a.25.25 0 0 1 .25-.25"}),(0,a.jsx)("path",{d:"M7.816 12.41a.255.255 0 0 1-.092.345l-.182.107a.253.253 0 0 1-.272.383l-.264-.068-1.792 1.054-.153.366a.247.247 0 0 1-.46-.006l-.152.09a.245.245 0 0 1-.339-.09.255.255 0 0 1 .092-.345l.175-.103a.25.25 0 0 1-.04-.174.25.25 0 0 1 .279-.218l.351.045 1.792-1.054.085-.307a.247.247 0 0 1 .473-.02l.16-.095c.12-.07.271-.03.34.09"}),(0,a.jsx)("path",{d:"M7.815 14.59a.245.245 0 0 1-.339.09l-.16-.094a.247.247 0 0 1-.473-.02l-.084-.308-1.792-1.053-.352.045a.25.25 0 0 1-.279-.219.25.25 0 0 1 .04-.174l-.175-.102a.255.255 0 0 1-.092-.345c.068-.12.22-.16.339-.09l.152.089a.247.247 0 0 1 .46-.006l.154.367 1.791 1.053.265-.067a.25.25 0 0 1 .303.182.25.25 0 0 1-.032.2l.182.107c.119.07.16.225.092.345"})]})]})}),f=r.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:x,...e}));f.displayName="RainSnowWinteryMix";var g=l(47460),y=l(15065);let b=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Feels Like"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M10.889 4.163A2 2 0 1 0 13.11.837a2 2 0 0 0-2.222 3.326m.555-2.494a1 1 0 1 1 1.112 1.662 1 1 0 0 1-1.112-1.662M11 15h2a1.003 1.003 0 0 0 1-1v-3.5a1.003 1.003 0 0 0 1-1v-3A1.47 1.47 0 0 0 13.5 5h-3A1.473 1.473 0 0 0 9 6.5v3a1.003 1.003 0 0 0 1 1V14a1.003 1.003 0 0 0 1 1m-.696-8.97A.5.5 0 0 1 10.5 6h3a.473.473 0 0 1 .5.5v3h-1V14h-2V9.5h-1v-3a.47.47 0 0 1 .304-.47",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M5 10.092V6H4v4.092a1.5 1.5 0 1 0 1 0"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M2.563 14.417c.574.38 1.248.584 1.937.583A3.497 3.497 0 0 0 7 9.055V3.5a2.5 2.5 0 1 0-5 0v5.555a3.497 3.497 0 0 0 .563 5.362M3.44 2.44a1.5 1.5 0 0 1 2.12 0c.281.281.44.662.44 1.06v5.992l.166.149a2.5 2.5 0 1 1-3.332 0L3 9.49V3.5c0-.398.159-.779.44-1.06",clipRule:"evenodd"})]})]})}),w=r.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:b,...e}));w.displayName="FeelsLike";var j=l(49422),N=l(50143),C=l(41593),T=l(58239);let A=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Cloud Cover"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m11.109 11.591.06.006q.099.01.204.01c1.17 0 2.176-.984 2.176-2.269 0-1.133-.789-2.04-1.778-2.23l-.66-.128-.258-.62c-.488-1.174-1.607-1.967-2.88-1.967-1.614 0-2.987 1.28-3.125 2.974l-.083 1.017-1.013.122c-.707.085-1.303.718-1.303 1.538 0 .795.562 1.415 1.242 1.528l.276.02zm-7.185 1.25-.363-.025h-.003C2.226 12.633 1.2 11.461 1.2 10.044c0-1.434 1.05-2.616 2.403-2.779.189-2.309 2.073-4.122 4.37-4.122 1.812 0 3.366 1.127 4.035 2.737 1.59.305 2.792 1.737 2.792 3.458 0 1.944-1.534 3.519-3.426 3.519q-.165 0-.324-.016z",clipRule:"evenodd"})]})}),S=r.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:A,...e}));S.displayName="CloudCover";var M=l(22150);let I=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Wind Gust"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"m2.5 4.375 4-3a.63.63 0 0 1 .572-.093l11.25 3.75h.001a.624.624 0 0 1 0 1.186l-11.25 3.75a.63.63 0 0 1-.573-.093l-4-3V18.75H1.25V1.25H2.5zm13.75 9.375a2.5 2.5 0 0 1 0 5H7.5V17.5h8.75A1.25 1.25 0 1 0 15 16.25h-1.25a2.503 2.503 0 0 1 2.5-2.5M10 11.25a2.5 2.5 0 0 1 0 5H5V15h5a1.25 1.25 0 1 0-1.25-1.25H7.5a2.5 2.5 0 0 1 2.5-2.5M7.5 8.508l1.25-.417V3.159L7.5 2.742zM2.917 5.625l3.333 2.5v-5zM10 7.675l1.25-.417V3.992L10 3.575zm2.5-.834 3.648-1.216L12.5 4.409z"})]})}),R=r.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:I,...e}));R.displayName="WindGust";var k=l(49709),_=l(43874);let P=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"moonrise"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.5 14h-13a.5.5 0 0 0 0 1h13a.5.5 0 0 0 0-1M12.975 12.501c.027.275-.199.499-.475.499s-.497-.225-.531-.5a4 4 0 0 0-.678-1.774c-.158-.227-.143-.542.063-.726.205-.184.524-.168.687.055.523.717.846 1.562.934 2.446M8.03 12.5c-.034.274-.255.5-.531.5s-.502-.224-.475-.498a4.96 4.96 0 0 1 1.853-3.404 4.005 4.005 0 0 0-4.845 3.404c-.035.274-.256.498-.531.498-.277 0-.503-.225-.475-.5A5.006 5.006 0 0 1 8 8c.772 0 1.533.18 2.223.526a.5.5 0 0 1 0 .895A3.98 3.98 0 0 0 8.03 12.5M8.471 1.195a.667.667 0 0 0-.942 0L5.853 2.871a.499.499 0 0 0 .705.706L7.5 2.64v3.585a.5.5 0 0 0 1 0V2.639l.942.938a.499.499 0 0 0 .705-.706z"})})]})}),E=r.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:P,...e}));E.displayName="Moonrise";let L=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Foggy"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M9.984 3.633c-.602-.476-1.421-.8-2.464-.541-1.904.47-2.363 2.031-2.363 3.037v.5h-.5c-.252 0-.531.081-.783.199-.257.12-.429.25-.474.296a.5.5 0 1 1-.714-.699c.156-.16.442-.353.766-.504.21-.098.46-.19.729-.243.133-1.26.854-3.002 3.099-3.557 1.404-.347 2.534.103 3.324.729a4.6 4.6 0 0 1 1.27 1.568c.955.204 2.28.915 2.542 2.77.145 1.026-.165 1.816-.629 2.375a3.16 3.16 0 0 1-1.456.985.5.5 0 0 1-.29-.958c.26-.078.668-.293.976-.665.296-.356.512-.868.41-1.596-.205-1.445-1.28-1.888-1.97-1.967l-.326-.038-.095-.314c-.076-.25-.429-.883-1.052-1.377M1 12.703a.5.5 0 0 1 .5-.5h6.625a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1-.5-.5"}),(0,a.jsx)("path",{d:"M3.51 10.51a.5.5 0 0 1 .5-.5h6.625a.5.5 0 1 1 0 1H4.009a.5.5 0 0 1-.5-.5M1 8.414a.5.5 0 0 1 .5-.5h6.625a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1-.5-.5"})]})]})}),F=r.forwardRef((e,t)=>(0,a.jsx)(v.h,{ref:t,icon:L,...e}));F.displayName="Foggy";var D=l(70825),V=l(80387),B=l(59781),H=l(90267),z=l(85409),W=l(43673),O=l(48015),U=l(6685),q=l(75603),Q=l(43637),G=l(8765),Z=l(78117),Y=l(91851);let X=e=>!(0,h.g)(e)||null,$={derive:e=>{let{precipType:t}=e;return"precip"===t?f:"snow"===t?g.D:y.Y}},K={temperatureFeelsLike:{label:(e,t)=>{let{t:l}=t;return l("feelsLike")},icon:w,value:e=>{let{temperatureFeelsLike:t}=e;return X(t)&&(0,a.jsx)(z.B,{value:t})}},windSpeed:{label:(e,t)=>{let{t:l}=t;return l("wind")},icon:j.Z,value:(e,t)=>{let{windSpeed:l,windDirectionCardinal:r}=e,{unitName:n}=t,i=(0,H.xP)(n);return X(l)&&(0,a.jsx)(W.Z,{className:"whitespace-nowrap",windSpeed:l,windDirectionCardinal:r,units:i.code,displayMode:"directionalAndCardinal"})}},precipChance:{label:(e,t)=>{let{precipType:l}=e,{t:a}=t;return a("chanceOf".concat((0,p.Z)(null!=l?l:"")))},icon:$,value:e=>{let{precipChance:t}=e;return X(t)&&(0,a.jsx)(O.N,{value:t})}},relativeHumidity:{label:(e,t)=>{let{t:l}=t;return l("humidity")},icon:N.K,value:e=>{let{relativeHumidity:t}=e;return X(t)&&(0,a.jsx)(O.N,{value:t})}},pressureMeanSeaLevel:{label:(e,t)=>{let{t:l}=t;return l("pressure")},icon:C.S,value:e=>{let{pressureMeanSeaLevel:t}=e;return X(t)&&(0,a.jsx)(U.S,{pressureMeanSeaLevel:t})}},visibility:{label:(e,t)=>{let{t:l}=t;return l("visibility")},icon:D.S,value:(e,t)=>{let{visibility:l}=e,{unitName:r}=t;return X(l)&&(0,a.jsx)(q.b,{visibility:l,units:(0,H.xP)(r).code})}},uvIndex:{label:(e,t)=>{let{t:l}=t;return l("uvIndex")},icon:T.o,value:e=>{let{uvIndex:t}=e;return X(t)&&(0,a.jsx)(Q.M,{uvIndex:t})}},cloudCover:{label:(e,t)=>{let{t:l}=t;return l("cloudCover")},icon:S,value:e=>{let{cloudCover:t}=e;return X(t)&&(0,a.jsx)(O.N,{value:t})}},accumulation:{label:(e,t)=>{let{precipType:l}=e,{t:a}=t;return a("".concat(l,"Amount"))},icon:$,value:(e,t)=>{let{qpf:l,qpfSnow:r,precipType:n}=e,{unitName:i}=t;return X(l)||X(r)?(0,a.jsx)(G.e,{precipType:n,qpf:l,qpfSnow:r,units:(0,H.xP)(i).code}):null}},temperatureDewPoint:{label:(e,t)=>{let{t:l}=t;return l("dewPoint")},icon:M.$,value:e=>{let{temperatureDewPoint:t}=e;return X(t)&&(0,a.jsx)(z.B,{value:t})}},windGust:{label:(e,t)=>{let{t:l}=t;return l("windGust")},icon:R,value:(e,t)=>{let{windGust:l}=e,{unitName:r}=t;return(0,a.jsx)(W.Z,{windSpeed:null!=l?l:void 0,units:(0,H.xP)(r).code})}},sunrise:{label:(e,t)=>{let{t:l}=t;return l("sunrise")},icon:k.m,value:(e,t)=>{let{sunriseTimeLocal:l}=e,{locale:a}=t;return l?(0,V.P)({date:(0,B.r)(l),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},sunset:{label:(e,t)=>{let{t:l}=t;return l("sunset")},icon:_.d,value:(e,t)=>{let{sunsetTimeLocal:l}=e,{locale:a}=t;return l?(0,V.P)({date:(0,B.r)(l),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonrise:{label:(e,t)=>{let{t:l}=t;return l("moonrise")},icon:E,value:(e,t)=>{let{moonriseTimeLocal:l}=e,{locale:a}=t;return l?(0,V.P)({date:(0,B.r)(l),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonset:{label:(e,t)=>{let{t:l}=t;return l("moonset")},icon:E,value:(e,t)=>{let{moonsetTimeLocal:l}=e,{locale:a}=t;return l?(0,V.P)({date:(0,B.r)(l),timeZone:"Etc/GMT",locale:a,minutes:!0}):"--"}},moonPhase:{label:"",icon:{derive:e=>{let{moonPhaseCode:t}=e;return e=>(0,a.jsx)(Y.r,{...e,moonPhaseCode:t})}},value:e=>{let{moonPhase:t}=e;return X(t)&&t}},airQuality:{label:(e,t)=>{let{t:l}=t;return l("airQuality")},icon:F,value:e=>{let{airQualityIndex:t,airQualityCategory:l}=e;return X(t)&&(0,a.jsx)(Z.y,{airQualityIndex:t,airQualityCategory:l})}}},J=(0,i.F)("grid justify-between gap-1",{variants:{cols:{1:"grid-cols-[repeat(1,auto)]",2:"grid-cols-[repeat(2,auto)]",3:"grid-cols-[repeat(3,auto)]",4:"grid-cols-[repeat(4,auto)]",5:"grid-cols-[repeat(5,auto)]",6:"grid-cols-[repeat(6,auto)]"}}}),ee=(0,r.memo)(e=>{let{dataPoints:t,fields:l,locale:i,columns:h,children:p}=e,{small:v=2,medium:x=3,large:f=4}="object"==typeof h?h||{}:{small:h,medium:h,large:h},[g,y]=(0,u.r)(e=>e>=m.c["@xl"]?f:e>=m.c["@xs"]?x:v),b=g||x,w=(0,o.c)("DetailsTable"),j={unitName:(0,n.md)(c.Yt),t:w,locale:i},N=0;return(0,a.jsx)(s.Zp,{ref:y,className:"border-2xl @container/detailsTable h-full bg-gray-100 p-0",children:(0,a.jsxs)(s.Wu,{className:"px-4 py-4 @xl/detailsTable:px-6",children:[p&&(0,a.jsx)("div",{children:p}),(0,a.jsx)("ul",{className:J({cols:b}),children:l.map((e,n)=>{let i,o=K[e],s=null==o?void 0:o.value(t,j);if(!o||!s)return N++,null;let c="derive"in o.icon?o.icon.derive(t,j):o.icon,u="function"==typeof o.label?o.label(t,j):o.label,m=l.length-N,h=n-N,p=m%b;if(h===m-1&&0!==p){let e=b-p+1;i={gridColumn:"span ".concat(e," / span ").concat(e)}}return(0,a.jsxs)(r.Fragment,{children:[h>0&&h%b==0&&(0,a.jsx)("li",{className:"col-span-full py-3",children:(0,a.jsx)("div",{className:"border-b border-[#dedede]"})}),(0,a.jsxs)("li",{className:"flex gap-1 @md/detailsTable:gap-1.5 @xl/detailsTable:gap-2",style:i,children:[c&&(0,a.jsx)(c,{className:"size-4 @md/detailsTable:size-5"}),(0,a.jsxs)("div",{children:[u&&(0,a.jsx)(d.Ay,{variant:"Body.M",className:"mb-0.5 text-sm leading-normal @xl/detailsTable:text-base",children:u}),(0,a.jsx)(d.Ay,{elementType:"string"==typeof s?"p":"div",variant:"Body.L.Bold",className:"text-sm leading-normal @xl/detailsTable:text-base",children:s})]})]})]},u+h)})})]})})})},19318:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDailyForecastUrlConfig=function(e){let{geocode:t,units:l,language:r,duration:n=a.ForecastDuration.FIVE_DAY,cscCountryCode:i}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(n),query:{geocode:t,units:l,language:r,cscCountryCode:i||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getDailyCognitiveHealthForecastUrlConfig=function(e){let{geocode:t,language:l,conditionType:r,duration:n=a.ForecastDuration.FIVE_DAY}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/daily/".concat(n,"/cognitiveHealth"),query:{geocode:t,language:l,conditionType:r,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getHourlyForecastUrlConfig=function(e){let{geocode:t,units:l,language:r,duration:n=a.HourlyForecastDuration.TWO_DAY,cscCountryCode:i}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/hourly/".concat(n),query:{geocode:t,units:l,language:r,cscCountryCode:i||void 0,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getFifteenMinuteForecastUrlConfig=function(e){let{geocode:t,units:l,language:a}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/fifteenminute",query:{geocode:t,units:l,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getMinutelyPrecipitationForecastUrlConfig=function(e){let{geocode:t,units:l,language:a,duration:r="60minute"}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/forecast/minutely/precipitation/".concat(r),query:{geocode:t,units:l,language:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}},t.getWWIRForecastUrlConfig=function(e){let{geocode:t,postalCode:l,units:a,language:r}=e;return{host:"api.weather.com",protocol:"https",pathname:l?"/v1/location/".concat(l,"/forecast/wwir.json"):"/v1/geocode/".concat(null==t?void 0:t.replace(",","/"),"/forecast/wwir.json"),query:{units:a,language:r,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}};let a=l(14527)},19433:(e,t,l)=>{"use strict";l.r(t),l.d(t,{LiveblogEntriesBlock:()=>r,default:()=>n});var a=l(21102);l(42494);let r=()=>(0,a.jsx)("div",{children:"Live Blog Entries"}),n=r},20116:(e,t,l)=>{"use strict";l.d(t,{c:()=>s});var a=l(42494),r=l(59103),n=l(34679),i=l(14296),o=l(12474);let s=()=>{let e=(0,r.N)(),t=(0,o.A)(),l=(0,n.usePathname)();return(0,a.useCallback)(a=>{var r,n,o,s,d,c;let{eventName:u,eventAttributes:m={}}=a;if(!(null==(n=window.mParticle)||null==(r=n.isInitialized)?void 0:r.call(n)))return void console.warn("MParticle is not initialized");let h={...m,author:(null==t?void 0:t.author)||"",contentId:(null==t?void 0:t.contentId)||m.contentId,...e,url:l?(0,i.EY)(l):""};try{null==(c=window.mParticle)||null==(d=c.logEvent)||d.call(c,u,null==(s=window.mParticle)||null==(o=s.EventType)?void 0:o.Other,h),console.debug('MParticle: Video Event tracked - "'.concat(u,'"'),h)}catch(e){console.error('MParticle: Failed to track Video Event - "'.concat(u,'"'),e)}},[null==t?void 0:t.author,null==t?void 0:t.contentId,e,l])}},22150:(e,t,l)=>{"use strict";l.d(t,{$:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Dew Point"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:(0,a.jsx)("path",{d:"M10.889 4.663a2 2 0 1 0 2.222-3.326 2 2 0 0 0-2.222 3.326m.555-2.494a1 1 0 1 1 1.112 1.663 1 1 0 0 1-1.112-1.663M5.308 14.199A2.75 2.75 0 0 0 7.25 15 2.75 2.75 0 0 0 10 12.26c0-1.721-2.172-10.507-2.265-10.88a.5.5 0 0 0-.97 0C6.672 1.753 4.5 10.539 4.5 12.26c.002.728.293 1.425.808 1.939M5.5 12.26c0-1.056 1.02-5.57 1.75-8.638C7.98 6.69 9 11.205 9 12.26a1.75 1.75 0 1 1-3.5 0"})})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="DewPoint"},23141:(e,t,l)=>{"use strict";t.m=n;let a=l(56438),r=l(40919);async function n(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",l=(0,a.urlFrom)({host:"weather.com",protocol:"https",pathname:"/api/payload/v1/content/query",query:{assetId:e}}),n=await fetch(l,{headers:{"Accept-Encoding":"gzip","Accept-Language":t},next:{revalidate:300,tags:["content-by-asset-".concat(e)]}});return await (0,r.handleFetchResponse)(n)||[]}},24415:(e,t,l)=>{"use strict";l.d(t,{S:()=>P});var a=l(21102),r=l(94456),n=l(34961),i=l(42494),o=l(66188);let s=(0,i.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Video Player"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M7.265 5.978a.5.5 0 0 0-.765.424v3.196a.5.5 0 0 0 .765.424l2.557-1.598a.5.5 0 0 0 0-.848z"}),(0,a.jsx)("path",{d:"M14 3H2c-.552 0-1 .449-1 1v8c0 .551.448 1 1 1h12c.552 0 1-.449 1-1V4c0-.551-.448-1-1-1m0 8.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 .5.5z"})]})]})}),d=i.forwardRef((e,t)=>(0,a.jsx)(o.h,{ref:t,icon:s,...e}));d.displayName="VideoPlayer";let c=(0,i.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Play"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.5 14a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .741-.438l10 5.5a.5.5 0 0 1 0 .876l-10 5.5A.5.5 0 0 1 3.5 14"})]})}),u=i.forwardRef((e,t)=>(0,a.jsx)(o.h,{ref:t,icon:c,...e}));u.displayName="PlayFilledAlt";var m=l(20423),h=l(71535),p=l(26464);let v=e=>{let t=e.split(":");""===t[0]&&(t[0]="0");let l=parseInt(t[0]||"0",10).toString();if("0"===l&&3===t.length){let e=parseInt(t[1]||"0",10).toString();return"".concat(e,":").concat(t[2])}return[l,...t.slice(1)].join(":")};var x=l(85422);let f=(0,x.F)("group no-underline rounded flex gap-4 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600",{variants:{layout:{row:"flex-row items-center",column:"flex-col",overlay:"relative"},hoverEffect:{none:"",shadow:"",default:"hover:bg-gray-100 focus-visible:bg-gray-100",featured:"p-3 rounded hover:bg-gray-100 focus-visible:bg-gray-100",scaled:""},padding:{none:"",default:"p-3"}},defaultVariants:{layout:"column",hoverEffect:"scaled",padding:"none"}}),g=(0,x.F)("rounded-lg",{variants:{hoverEffect:{none:"",shadow:"transition-shadow duration-150 group-hover:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)] group-focus-visible:shadow-[0_4px_16px_0_rgba(9,86,124,0.4)]",default:"",featured:"transition-shadow duration-150 group-hover:shadow-lg group-focus-visible:shadow-lg",scaled:"transition-shadow duration-150 group-hover:shadow-lg group-focus-visible:shadow-lg"}},defaultVariants:{hoverEffect:"scaled"}}),y=(0,x.F)("",{variants:{hoverEffect:{none:"",shadow:"",default:"",featured:"transition-transform duration-150 group-hover:scale-105 group-focus-visible:scale-105",scaled:"transition-transform duration-150 group-hover:scale-105 group-focus-visible:scale-105"}},defaultVariants:{hoverEffect:"scaled"}}),b={sm:"Title.XS",md:"Title.S",lg:"Title.M",xl:"Title.L"},w={sm:"Body.S",md:"Body.M",lg:"Body.L",xl:"Body.L"},j={sm:"Body.S",md:"Body.S",lg:"Body.M",xl:"Body.M"},N=(0,x.F)("pb-0.5",{variants:{textSize:{sm:"mb-0.5",md:"mb-1",lg:"mb-1.5",xl:"mb-1.5"}},defaultVariants:{textSize:"md"}}),C=(0,x.F)("absolute inset-0",{variants:{overlayGradient:{bottom:"bg-[linear-gradient(to_bottom,rgba(17,30,55,0)_0%,rgba(17,30,55,0)_50%,rgba(17,30,55,0.4)_100%)]",horizontal:"bg-[linear-gradient(to_right,rgba(17,30,55,0.76)_0%,rgba(17,30,55,0.61)_33%,rgba(17,30,55,0)_100%)]",full:"bg-black/40"}},defaultVariants:{overlayGradient:"bottom"}}),T=e=>{let{src:t,alt:l="",aspectRatio:n="square",overlayGradient:i,partnerLogo:o,className:s,layout:d,hoverEffect:c,isFetchPriority:u}=e;return(0,a.jsxs)("div",{className:(0,h.cn)("relative overflow-hidden",g({hoverEffect:c}),"overlay"===d&&"w-full","row"===d&&"w-[50%] max-w-[320px] min-w-30",s),children:[(0,a.jsx)(r.Ay,{src:t,alt:l,aspectRatio:n,className:(0,h.cn)("scale-[1.01]",y({hoverEffect:c})),sizes:"auto",isFetchPriority:u}),(o||i)&&(0,a.jsx)("div",{className:C({overlayGradient:i})}),o&&(0,a.jsx)(r.Ay,{src:o.src,alt:o.altText,className:(0,h.cn)("absolute bottom-3 left-3 h-auto max-h-5 w-40 max-w-[70%] rounded-none object-contain object-left",o.forceWhite&&"brightness-0 invert"),sizes:"160px"})]})};T.displayName="MediaObject.Image";let A=e=>{let{children:t,className:l}=e;return(0,a.jsx)("div",{className:(0,h.cn)("flex w-full flex-col",l),children:t})};A.displayName="MediaObject.Content";let S=e=>{let{title:t,className:l,responsive:r,textSize:n="md",inverse:i=!1,lineClamp:o}=e;return(0,a.jsx)(p.EY,{elementType:"h2",variant:b[n],color:i?"inverse":void 0,responsive:r,className:(0,h.cn)(N({textSize:n}),l),lineClamp:o,children:t})};S.displayName="MediaObject.Title";let M=e=>{let{description:t,className:l,responsive:r,textSize:n="md",inverse:i=!1,lineClamp:o}=e;return(0,a.jsx)(p.EY,{elementType:"p",variant:w[n],color:i?"inverse":"secondary",responsive:r,className:(0,h.cn)("mb-2",l),lineClamp:o,children:t})};M.displayName="MediaObject.Description";let I={sm:"md",md:"md",lg:"lg",xl:"lg"},R=e=>{let{duration:t,className:l,responsive:r,textSize:n="md",iconSize:i,inverse:o=!1}=e;return(0,a.jsxs)("div",{className:(0,h.cn)("flex items-center gap-1",l),children:[(0,a.jsx)(d,{size:i||I[n],className:(0,h.cn)(o&&"text-white")}),(0,a.jsx)(p.EY,{variant:j[n],color:o?"inverse":void 0,responsive:r,children:v(t)})]})};R.displayName="MediaObject.Duration";let k=e=>{let{text:t,variant:l,duration:r,className:i,inverse:o=!1,size:s="sm"}=e;return(0,a.jsxs)("div",{className:(0,h.cn)("@container/button flex items-center gap-3",i),children:[(0,a.jsx)(n.$n,{asChild:!0,variant:l,size:s,children:(0,a.jsxs)("span",{children:[r&&(0,a.jsx)(u,{className:"mr-2",size:"sm",color:o?void 0:"inverse"}),t]})}),r&&(0,a.jsx)(p.EY,{className:"ml-2 hidden @[180px]/button:inline",elementType:"span",variant:"Body.M",color:o?"inverse":void 0,children:v(r)})]})};k.displayName="MediaObject.Button";let _=e=>{let t,{children:l,url:r,target:n,onClick:i,className:o,thumbnail:s,altText:d,aspectRatio:c="square",partnerLogo:u,overlayGradient:p,title:v,description:x,duration:g,button:y,responsive:b,isFetchPriority:w,lineClamp:j,textSize:N,layout:C="column",hoverEffect:I,padding:_}=e,P=(0,h.cn)(f({layout:C,hoverEffect:I,padding:_}),o);if(l)t=l;else{let e=!!(v||x||g||y),l="overlay"===C;t=(0,a.jsxs)(a.Fragment,{children:[s&&(0,a.jsx)(T,{src:s,alt:d,aspectRatio:c,overlayGradient:l?"full":p,partnerLogo:u,layout:C,hoverEffect:I,isFetchPriority:w}),e&&(0,a.jsxs)(A,{className:(0,h.cn)(l&&"min-w[300px] absolute bottom-[6%] left-[4%] w-[50%]"),children:[v&&(0,a.jsx)(S,{title:v,textSize:N,responsive:b,inverse:l,lineClamp:j}),x&&(0,a.jsx)(M,{description:x,textSize:N,responsive:b,inverse:l,lineClamp:j}),y?(0,a.jsx)(k,{text:y.text,duration:g,inverse:l,variant:y.variant||(l?"secondary":void 0)}):g?(0,a.jsx)(R,{duration:g,textSize:N,responsive:b,inverse:l}):null]})]})}return r?(0,a.jsx)(m.default,{className:P,href:r,target:n,children:t}):(0,a.jsx)("button",{className:(0,h.cn)("cursor-pointer text-left",P),onClick:i,children:t})};_.displayName="MediaObject";let P=Object.assign(_,{Image:T,Content:A,Title:S,Description:M,Duration:R,Button:k})},24505:(e,t,l)=>{"use strict";l.r(t),l.d(t,{AdBlock:()=>x,default:()=>g});var a=l(21102),r=l(42494),n=l(89131),i=l(71535),o=l(88737),s=l(66172),d=l(57809),c=l(77201);let u=(0,l(85422).F)("",{variants:{overflow:{hidden:"overflow-hidden",none:""},layout:{flex:"flex-1",block:"block",fixed:"block fixed w-full",fixedBelowBottomNav:"block fixed w-full bottom-[61px] sm:bottom-0 z-[101]",contentTopDiv:"region-contentTop",stickyTopRight:"sticky top-[82px] z-45",default:""},bg:{white:"bg-white",gray:"bg-[#dee0e3]",none:""},radius:{md:"rounded-md",lg:"rounded-lg",none:""},padding:{standard:"px-4 pb-4",noTop:"pt-0 px-4 pb-4",mobile:"p-2",none:""},margin:{bottomMd:"mb-4",bottomLg:"mb-5",topMd:"mt-3",topLg:"mt-4",none:""},shadow:{md:"shadow-md",none:""},special:{hidden:"hidden",none:""}},compoundVariants:[{layout:"flex",margin:"topMd",class:"-mb-3"}],defaultVariants:{overflow:"none",layout:"default",bg:"none",radius:"none",padding:"none",margin:"none",shadow:"none",special:"none"}}),m={WX_WindowShade:{layout:"contentTopDiv",overflow:"hidden",margin:"bottomMd"},WX_Leaderboard:{layout:"contentTopDiv",overflow:"hidden",margin:"bottomMd"},WX_BottomLeader:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_Bot300:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_PromoDriver1:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_MidLeader:{bg:"white",radius:"md",overflow:"hidden",padding:"standard",margin:"topLg"},WX_Top300Small:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"},WX_SpotLight:{overflow:"hidden",bg:"white",margin:"bottomMd"},WX_DriverUnit:{overflow:"hidden",bg:"white",margin:"bottomMd"},WX_Top300Variable:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"},MW_Position1:{layout:"fixedBelowBottomNav",bg:"gray",padding:"mobile"},MW_Position1_Samsung:{layout:"fixedBelowBottomNav",bg:"gray",padding:"mobile"},MW_Position3:{overflow:"hidden",margin:"bottomLg"},MW_Position4:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"},MW_Position5:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"},MW_Position2:{radius:"lg",overflow:"hidden",bg:"white",padding:"noTop"}},h=new Set(["MW_Position_ContentFeedAd","MW_Position_ContentFeedAd1","MW_Position_ContentFeedAd11","WX_ContentFeed","WX_ContentFeed1","WX_ContentFeedRadar"]),p=e=>h.has(e),v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"banner",l=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(p(e))return l?u({layout:"flex",margin:"topMd"}):"";if("WX_Hidden"===e||!l)return u({special:"hidden"});let r=m[e];return r||(r="banner"===t?{radius:"lg",overflow:"hidden",bg:"white",shadow:"md",margin:"bottomMd"}:{bg:"white",radius:"md",overflow:"hidden",padding:"standard"}),"WX_Top300Variable"===e&&a&&(r={...r,layout:"stickyTopRight"}),u(r)},x=e=>{let{user:t}=(0,s.J)(),l=(0,d.md)(c.a),r=e.adId||("object"==typeof e.adSlot?e.adSlot.slotTarget:void 0);return t.isUserPremium||l||!r?null:(0,a.jsx)(f,{...e,adId:r})},f=e=>{let{adId:t,variant:l="banner",title:s=null,titleAlignment:d="right",height:c="120px",className:u="",sticky:m=!1}=e,[h,x]=(0,r.useState)({loaded:!1,height:c,displayAd:!1}),[f,g]=(0,r.useState)(!1),y=(0,r.useRef)(null),b=(0,r.useRef)(!1),w=(0,r.useRef)(null),j=(0,r.useRef)({resize:null,adFrameMutation:null,adCreativeMutation:null}),N=h.displayAd&&!f,C=(0,r.useMemo)(()=>v(t,l,N,m),[t,l,N,m]),T=(0,r.useMemo)(()=>{let e=h.loaded?"visible":"invisible";return"".concat("text-center w-full h-full flex text-gray-600 text-base leading-none"," ").concat("WX_SpotLight"!==t?"justify-center":""," ").concat(e)},[t,h.loaded]),A=(0,r.useCallback)(e=>{for(let t of e){let e=t.contentRect.height;e>0&&x(t=>({...t,height:"".concat(e+10,"px"),loaded:!0}))}},[]),S=(0,r.useCallback)(e=>{let t=e.some(e=>"childList"===e.type&&e.addedNodes.length>0);x(e=>({...e,displayAd:t}))},[]),M=(0,r.useCallback)(e=>{let t=y.current;if(e.some(e=>{var t;return"childList"===e.type&&e.addedNodes.length>0&&((null==(t=e.addedNodes[0])?void 0:t.textContent)!=="Advertisement"||e.addedNodes.length>1)})&&t){var l,a,r;null==(l=j.current.resize)||l.observe(t),null==(a=j.current.adCreativeMutation)||a.observe(t,{childList:!0,subtree:!0}),x(e=>({...e,loaded:!0})),null==(r=j.current.adFrameMutation)||r.disconnect()}},[]);return(0,r.useEffect)(()=>{x({loaded:!1,height:c,displayAd:!1});let e=new ResizeObserver(A),t=new MutationObserver(S),l=new MutationObserver(M);j.current={resize:e,adCreativeMutation:t,adFrameMutation:l};let a=y.current;return a&&l.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect(),l.disconnect(),t.disconnect()}},[S,t,c,A,M]),(0,r.useEffect)(()=>{p(t)&&!b.current&&((e=>{try{let t=(e=>{if("MW_Position_ContentFeedAd11"===e)return{currContentFeedIndex:"21",baseNativeAdPosition:"MW_Position_ContentFeedAd1"};if("MW_Position_ContentFeedAd1"===e||"WX_ContentFeed1"===e){let t=e.match(/(\d+)$/);if(t)return{currContentFeedIndex:t[1],baseNativeAdPosition:e.substring(0,t.index)}}return console.error("Could not parse index from ContentFeed adId: ".concat(e)),null})(e);if(t){let{currContentFeedIndex:l,baseNativeAdPosition:a}=t,r=window.__HeliosConfig.slotsConfig[a];if(r){let t="".concat(r.adUnitPath,"/contentfeed").concat(l);window.__HeliosQ=window.__HeliosQ||[],window.__HeliosQ.push(()=>{window.__Helios.waitForEvent("AD_SLOTS_CONNECTED").then(()=>{window.__Helios.emit("AD_RENDER_CONTENT_FEED",{elementId:e,adUnitPath:t,baseNativeAdPosition:a})})})}else console.error("No config found for ".concat(e," at Helios.slotConfig.").concat(a))}}catch(e){console.error("Error rendering native ad",e)}})(t),b.current=!0)},[t]),(0,r.useEffect)(()=>{if("MW_Position1_Samsung"!==t)return;let e=Date.now();return w.current=setInterval(()=>{if(Date.now()-e>=1e4){w.current&&(clearInterval(w.current),w.current=null);return}(()=>{try{var e,t,l,a;let r=null==(e=window.__Helios)?void 0:e.adNodes;if(!r||0===r.length)return!1;let n=r.find(e=>{var t;return(null==e||null==(t=e.config)?void 0:t.pos)==="mw_adhd1"});if(!(null==n?void 0:n.slot))return!1;let i=null==(t=(l=n.slot).getHtml)?void 0:t.call(l);return null!=(a=null==i?void 0:i.includes('
'))&&a}catch(e){return!1}})()&&(g(!0),w.current&&(clearInterval(w.current),w.current=null))},500),()=>{w.current&&(clearInterval(w.current),w.current=null)}},[t]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.DebugCollector,{componentName:"AdBlock",data:{props:{adId:t,variant:l,title:s,titleAlignment:d,height:c,className:u},state:{loaded:h.loaded,height:h.height,displayAd:h.displayAd,isIMAdDetected:f},performance:{renderTime:Date.now()}}}),(0,a.jsxs)("div",{className:(0,i.cn)(C,u),children:[s&&h.loaded&&(0,a.jsx)("div",{className:"text-xxs w-full px-4 py-0.75 text-gray-400 text-".concat(d),children:s}),"WX_PromoDriver1"===t&&!s&&h.loaded&&h.displayAd&&(0,a.jsx)("h2",{className:"my-6 px-2 text-2xl font-bold",children:"Stay Safe"}),(0,a.jsx)("div",{id:t,"data-testid":t,className:T,style:{height:h.loaded?"100%":"0px"},ref:y})]}),"WX_PromoDriver1"===t&&(!h.loaded||!h.displayAd)&&(0,a.jsx)(o.default,{title:"Stay Safe",ctaStyle:"featured",linkUrl:"/",backgroundColor:"white",media:"https://s-dev.w-x.co/wxnext/img/Screenshot2025-04-17at44929PMpng"})]})},g=x},25090:(e,t,l)=>{"use strict";l.d(t,{j:()=>r,w:()=>n});var a=l(37811);let r=e=>{var t,l,r,n;let i,o=null==(t=null!=(l=a.env.VERCEL_TARGET_ENV)?l:"production")?void 0:t.toLowerCase();a.env.VERCEL_TARGET_ENV,"preview"!==o&&a.env.VERCEL_TARGET_ENV_URL;let s=null!=(r=a.env.VERCEL_BRANCH_URL)?r:"wx-next-web-git-main.vercel.weather.com",d=null!=(n=a.env.VERCEL_TARGET_ENV_URL)?n:"weather.com",c="true"===a.env.NEXT_DEV_SERVER_INSECURE||"true"===a.env.NEXT_PUBLIC_NEXT_DEV_SERVER_INSECURE;switch(o){case"preview":i="https://".concat(s);break;case"development":i=c?"http://".concat(d):"https://".concat(d);break;default:i="https://".concat(d)}return e?new URL(e,i).toString():i},n=e=>{var t,l;a.env.VERCEL_TARGET_ENV_PRODUCTION_URL;let r=null!=(t=a.env.VERCEL_TARGET_ENV_PRODUCTION_URL)?t:"weather.com",n=null!=(l=a.env.VERCEL_PROJECT_PRODUCTION_URL)?l:"wxnext.weather.com",i="https://".concat(null!=r?r:n);return e?new URL(e,i).toString():i}},25287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromCompactResponse=function(e){if(!e)return null;let t=Object.keys(e);return t.length&&t[0]&&void 0!==e[t[0]]&&Array.isArray(e[t[0]])?Array.from({length:e[t[0]].length},(l,a)=>{let r={};return t.forEach(t=>{let l=e[t];void 0!==l&&Array.isArray(l)&&a{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedAlerts=void 0,t.getSortedAlerts=e=>[...e].sort((e,t)=>e.displayRank>t.displayRank?1:e.displayRankt.eventTrackingNumber?1:(e.eventTrackingNumber{"use strict";t.k=void 0,t.k=e=>{let{phenomena:t,significance:l,areaId:a,officeCode:r,eventTrackingNumber:n,locId:i}=e;return"".concat("/weather/alerts/localalerts/l/".concat(i),"?phenomena=").concat(t,"&significance=").concat(l,"&areaid=").concat(a,"&office=").concat(r,"&etn=").concat(n)}},27335:(e,t,l)=>{"use strict";function a(e){if(!e)return"";let t=("number"==typeof e?new Date(e).toISOString():e instanceof Date?e.toISOString():e.replace(/GMT(?![+-])/,"GMT+0000")).replace(/\.\d+/,"").replace("Z","+0000").replace(/\s+/,"T").replace(/\s+/g,"").replace(/[A-Z]{3,}/,""),l=/([+-])(\d{2})(\d{2})$/;l.test(t)&&(t=t.replace(l,"$1$2:$3"));let a=t.replace(/(\d{4})-(\d{2})-(\d{2})/,"$1/$2/$3").replace("T"," ");return"Invalid Date"===new Date(a).toString()?"Invalid Date"!==new Date(t).toString()?t:"string"==typeof e?e:"":a}l.d(t,{$:()=>a})},29445:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HourlyForecastBlock:()=>ec,default:()=>eu});var a=l(21102),r=l(42494),n=l(73017),i=l(59946),o=l(10229),s=l(14527),d=l(83037),c=l(57809),u=l(2092),m=l(90267),h=l(34679),p=l(26464),v=l(34961),x=l(20423),f=l(64566),g=l(18637),y=l(80387),b=l(43673),w=l(85409),j=l(48015),N=l(23228),C=l(71535),T=l(18365),A=l(8765),S=l(38915);let M=["temperatureFeelsLike","accumulation","windSpeed","pressureMeanSeaLevel","cloudCover","temperatureDewPoint","uvIndex","visibility","airQuality","relativeHumidity","windGust"],I=e=>{let{text:t}=e;return(0,a.jsx)(p.Ay,{variant:"Caption.M",color:"secondary",className:"mb-1 font-bold @max-md/hourItem:hidden",children:t})},R=e=>{let{forecast:t,timeZone:l,locale:r,itemIndex:i,longPhraseInSet:o}=e,s=(0,n.c)("DetailsTable"),d=(0,c.md)(u.Yt),h=(0,m.xP)(d),v=0===i;return(0,a.jsxs)(N.As,{value:t.validTimeLocal,className:"border-grey-500 @container/hourItem gap-2 border-b py-3",children:[(0,a.jsx)(N.$m,{className:"items-end gap-1 p-0 @md/hourItem:gap-3",iconClassName:"mb-1 size-4",triggerContent:(0,a.jsxs)("div",{className:"flex w-full items-end justify-between gap-1",children:[(0,a.jsx)("div",{className:"min-w-[60px]",children:(0,a.jsx)(p.Ay,{className:(0,C.cn)("inline-block rounded-[100px] px-2 py-0.5 whitespace-nowrap","group-data-[state=open]:bg-blue-500 group-data-[state=open]:text-white"),children:(0,y.P)({date:t.validTimeLocal,locale:r,timeZone:l})})}),(0,a.jsx)("div",{className:"basis-[40px]",children:(0,a.jsx)(p.Ay,{variant:"Body.L.Bold",children:(0,a.jsx)(w.B,{value:t.temperature})})}),(0,a.jsxs)("div",{className:"relative flex h-6 items-center",children:[(0,a.jsx)(S.WxIcon,{iconCode:t.iconCode,className:"lightBG size-7 @md/hourItem:size-8",size:"lg",iconTheme:"lightBG","aria-label":t.wxPhraseLong||"Weather condition ".concat(t.iconCode)}),(0,a.jsx)(p.Ay,{variant:"Body.M",className:(0,C.cn)("pl-1.5 @max-2xl/hourItem:hidden",o?"min-w-[200px]":"min-w-[110px]"),children:t.wxPhraseLong})]}),(0,a.jsx)("div",{className:"min-w-[50px] items-end @lg/hourItem:min-w-[105px] @lg/hourItem:py-0.5",children:(0,a.jsx)(T.W,{precipChance:t.precipChance,displayMode:"both",textClassName:"@lg/hourItem:hidden",progressClassName:"@max-lg/hourItem:hidden",iconClassName:"@max-lg/hourItem:size-3"})}),(0,a.jsxs)("div",{className:"basis-[72px] items-end @max-md/hourItem:hidden",children:[v&&(0,a.jsx)(I,{text:s("humidity")}),(0,a.jsx)(p.Ay,{children:(0,a.jsx)(j.N,{value:t.relativeHumidity})})]}),(0,a.jsxs)("div",{className:"basis-[76px] items-end",children:[v&&(0,a.jsx)(I,{text:s("wind")}),(0,a.jsx)(p.Ay,{elementType:"div",children:(0,a.jsx)(b.Z,{windSpeed:t.windSpeed,windDirectionCardinal:t.windDirectionCardinal,units:h.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/hourItem:size-4"})})]}),(0,a.jsxs)("div",{className:"min-w-[76px] @max-md/hourItem:hidden",children:[v&&(0,a.jsx)(I,{text:s("precipitation")}),(0,a.jsx)(p.Ay,{children:(0,a.jsx)(A.e,{precipType:t.precipType,qpf:t.qpf,qpfSnow:t.qpfSnow,units:h.code})})]})]})}),(0,a.jsx)(N.ub,{className:"pt-2 pb-2 @md/hourItem:pt-4",children:(0,a.jsx)(g.A,{dataPoints:t,fields:M,locale:r})})]})};var k=l(35369);let _=e=>{let{skeletonColumns:t}=e;return(0,a.jsx)(a.Fragment,{children:Array(t).fill("").map((e,t)=>(0,a.jsx)("div",{className:"border-grey-500 gap-1 border-b py-3",children:(0,a.jsx)(k.A,{skeletonClassName:"mt-1 w-full "+(0===t?"h-69":"h-4")})},"hourly-forecast-skel-".concat(t)))})};var P=l(13206),E=l(8501),L=l(94977),F=l(49820),D=l(87403),V=l(66188);let B=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Sunny Day"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M7.5 13.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M7.5 1.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M13.5 8.5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1M1.5 8.5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1M11.536 12.243l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 0 0-.707.707M3.05 3.757l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 1 0-.707.707M12.243 4.464l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 0 0 .707.707M3.757 12.95l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 1 0 .707.707"}),(0,a.jsx)("path",{fillRule:"evenodd",d:"M8 10.667a2.667 2.667 0 1 0 0-5.334 2.667 2.667 0 0 0 0 5.334m0 1a3.667 3.667 0 1 0 0-7.334 3.667 3.667 0 0 0 0 7.334",clipRule:"evenodd"})]})]})}),H=r.forwardRef((e,t)=>(0,a.jsx)(V.h,{ref:t,icon:B,...e}));H.displayName="SunnyDay";let z=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Cloudy"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.063 3c1.877 0 3.35 1.456 3.457 3.53l.035.241.795.084.028.008c.482.124.891.343 1.182.674.295.337.44.757.44 1.227a1.9 1.9 0 0 1-.616 1.395c-.35.33-.838.56-1.457.656.046.156.073.322.073.495 0 .846-.605 1.548-1.388 1.658l-.107.014h-.103l-.006.001-7.808.006q-.111.01-.226.011C2.058 13 1 11.897 1 10.537c0-1.203.828-2.207 1.923-2.42l.701-.138.28-.683a3.49 3.49 0 0 1 1.769-1.858c.033-.45.257-.844.48-1.133.245-.32.53-.569.7-.699C7.454 3.15 8.216 3 9.064 3M7.029 6.019c-1.065 0-1.975.671-2.365 1.625l-.456 1.112-1.135.222c-.716.14-1.246.794-1.246 1.56 0 .864.677 1.587 1.535 1.587q.075 0 .149-.008l.038-.004 7.901-.006.054-.007a.79.79 0 0 0 .669-.79.79.79 0 0 0-.682-.792l-1.755-.216-.147-1.845c-.109-1.354-1.205-2.438-2.56-2.438m2.034-2.171c-.767 0-1.317.139-1.71.437a3 3 0 0 0-.543.541q-.136.177-.214.348.213-.03.433-.031c1.778 0 3.239 1.426 3.384 3.24l.09 1.132 1.083.132c.315.04.602.175.834.376a.4.4 0 0 1 .085-.013c.652-.04 1.067-.242 1.313-.473s.348-.514.348-.773c0-.284-.084-.497-.229-.662-.146-.167-.382-.314-.736-.41l-1.379-.146-.133-.936v-.02c-.078-1.668-1.222-2.742-2.626-2.742",clipRule:"evenodd"})]})}),W=r.forwardRef((e,t)=>(0,a.jsx)(V.h,{ref:t,icon:z,...e}));W.displayName="Cloudy";let O=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Rain Heavy"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M7.982 1.833c-1.303 0-2.391 1.032-2.5 2.37l-.034.407-.405.049c-.67.08-1.209.672-1.209 1.41 0 .724.518 1.307 1.17 1.405l.217.015h4.896l.024.003q.087.008.175.008c1.01 0 1.851-.845 1.851-1.915 0-.946-.66-1.719-1.51-1.882l-.264-.051-.104-.248c-.386-.93-1.279-1.57-2.307-1.57M4.535 3.747C4.843 2.096 6.26.833 7.982.833c1.367 0 2.543.798 3.123 1.95 1.198.352 2.062 1.48 2.062 2.802 0 1.597-1.264 2.915-2.851 2.915a3 3 0 0 1-.245-.01H5.187l-.25-.018H4.92l-.034-.005c-1.168-.16-2.051-1.182-2.051-2.398 0-1.091.71-2.026 1.701-2.322",clipRule:"evenodd","data-figma-bg-blur-radius":20}),(0,a.jsx)("path",{d:"m7.65 9.47-.711 1.954a.5.5 0 1 0 .94.342l.71-1.954a.5.5 0 1 0-.94-.342M4.882 10.816l-.803 2.205a.5.5 0 0 0 .94.342l.802-2.205a.5.5 0 0 0-.94-.342M10.179 10.918l-.766 2.103a.5.5 0 1 0 .94.342l.765-2.103a.5.5 0 0 0-.94-.342"})]})]})}),U=r.forwardRef((e,t)=>(0,a.jsx)(V.h,{ref:t,icon:O,...e}));U.displayName="RainHeavy";let q=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Clear Night"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M6.751 2.707a7.54 7.54 0 0 0 5.797 9.097A5.56 5.56 0 0 1 8.561 13.5q-.105.002-.21 0a5.547 5.547 0 0 1-1.6-10.792m.74-1.207a1 1 0 0 0-.088.008 6.548 6.548 0 0 0 .912 12.99c.082.004.164 0 .246 0a6.54 6.54 0 0 0 5.35-2.777.504.504 0 0 0-.391-.782A6.54 6.54 0 0 1 7.945 2.19a.507.507 0 0 0-.455-.69"})]})}),Q=r.forwardRef((e,t)=>(0,a.jsx)(V.h,{ref:t,icon:q,...e}));Q.displayName="ClearNight";let G=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.5 1.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M7.5 13.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0M2.5 8.5h-1a.5.5 0 0 1 0-1h1a.5.5 0 0 1 0 1M11.536 12.243l.707.707a.5.5 0 0 0 .707-.707l-.707-.707a.5.5 0 0 0-.707.707M3.757 4.464l-.707-.707a.5.5 0 1 1 .707-.707l.707.707a.5.5 0 0 1-.707.707M12.243 4.464l.707-.707a.5.5 0 1 0-.707-.707l-.707.707a.5.5 0 0 0 .707.707M4.464 12.243l-.707.707a.5.5 0 1 1-.707-.707l.707-.707a.5.5 0 1 1 .707.707M8.72 10.568A2.67 2.67 0 0 1 5.333 8 2.667 2.667 0 0 1 9.85 6.079c.25-.234.55-.414.883-.524a3.667 3.667 0 1 0-.125 5.021H9.217z"}),(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M11.489 5.9c-.985 0-1.795.747-1.913 1.71a1.25 1.25 0 0 0-1.01 1.231c0 .633.465 1.159 1.07 1.24l.007.002h.004l.148.01h2.97q.07.006.14.006c.845 0 1.528-.694 1.528-1.548 0-.738-.509-1.356-1.192-1.512a1.93 1.93 0 0 0-1.752-1.14m-1.203 1.847a1.22 1.22 0 0 1 1.203-1.133c.488 0 .92.301 1.108.749l.128.305.328.062c.365.07.66.402.66.82a.82.82 0 0 1-.883.831l-.03-.003H9.823l-.107-.007a.53.53 0 0 1-.429-.53.53.53 0 0 1 .455-.534l.503-.06z",clipRule:"evenodd"})]})}),Z=r.forwardRef((e,t)=>(0,a.jsx)(V.h,{ref:t,icon:G,...e}));Z.displayName="FairMostlyClearDay";var Y=l(97889);let X=e=>{let{insightHeadline:t,insightTextLong:l,className:r,headlineClass:n,textClass:i,background:o,weatherMode:s}=e;if(!t&&!l)return null;let d="";return s&&(d="severe"===s?"warning":"watch"),(0,a.jsxs)("div",{className:(0,C.cn)("nowrap flex items-center px-6.5 py-4",r,o&&"bg-[#f6f6f6]","watch"===d&&"bg-[#f6f6f6]","warning"===d&&"bg-[#ba0d00]"),children:[d?(0,a.jsx)(Y.A,{className:"mr-4 size-4.5 shrink-0"}):null,(0,a.jsxs)("div",{children:[t?(0,a.jsx)(p.Ay,{elementType:"h2",variant:"Body.M",className:(0,C.cn)("mb-2.5 text-base font-medium text-gray-500",n),children:t}):null,l?(0,a.jsx)(p.Ay,{variant:"Body.L.Bold",className:(0,C.cn)("font-semibold text-gray-800","watch"===d&&"text-sm text-white","warning"===d&&"text-sm text-[#ba0d00]",i),children:l}):null]})]})};var $=l(76589),K=l(42013);let J={up:F.D,down:D.y,sun:H,cloud:W,rain:U,clear:H,"clear-night":Q,fair:Z},ee=e=>{let{location:t,locale:l}=e,{insightTextLong:r}=(0,K.p)(t,l);return r?(0,a.jsx)(X,{className:"px-4 py-2",headlineClass:"hidden",textClass:"text-sm m-0",insightTextLong:r}):null},et=e=>{let{location:t,hourlyForecast:l,isLoading:i,error:o,locale:s,showDayLabel:d,canToggleMultipleItems:c,ctaLink:u,ctaText:m,enableAlertHeadlines:h,insight:g,insightIcon:y,showPrecipIntensity:b,simplifiedVersion:w}=e,j=(0,n.c)("HourlyForecast"),[C,T]=(0,r.useState)(!1),A=y&&J[y];return(0,a.jsxs)(f.Zp,{"aria-label":j("hourlyWeather"),className:"not-prose @container/hourly","data-testid":"hourly-forecast",children:[(0,a.jsx)(f.aR,{text:j("hourlyWeather")}),(0,a.jsxs)(f.Wu,{className:"p-0",children:[i?(0,a.jsx)(k.A,{skeletonClassName:"my-3 h-4 w-20 gap-1"}):g?(0,a.jsxs)("div",{className:"mt-2 mb-4 flex items-center gap-1",children:[A&&(0,a.jsx)("div",{children:(0,a.jsx)(A,{className:"text-brand-light size-5"})}),(0,a.jsx)(p.Ay,{variant:"Body.S.Bold",color:"brandLight",children:g})]}):"",h&&(0,a.jsx)("div",{children:(0,a.jsx)(E.A,{location:t,className:"mx-4 mb-3 inline-flex @lg/hourly:min-w-59"})}),b&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ee,{location:t,locale:s}),(0,a.jsx)("div",{className:"px-4 py-2",children:(0,a.jsx)($.A,{location:t,onlyChart:!0})})]}),(()=>{var e,n;if(o)return(0,a.jsx)(p.Ay,{variant:"Display.S",className:"flex min-h-48 items-center justify-center p-4",children:(null==o?void 0:o.message)||j("errorMsg")});let h=null!=(n=null==(e=l[0])?void 0:e.validTimeLocal)?n:void 0;return(0,a.jsxs)("div",{children:[(0,a.jsx)(N.nD,{...c?{type:"multiple",defaultValue:h?[h]:void 0}:{type:"single",defaultValue:h},children:i?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(_,{skeletonColumns:w?4:76})}):l.map((e,n)=>{var i;return!C&&e.wxPhraseLong.length>15&&T(!0),(0,a.jsxs)(r.Fragment,{children:[d&&(0===n||e.dayOfWeek!==((null==(i=l[n-1])?void 0:i.dayOfWeek)||""))&&(0,a.jsx)(p.Ay,{variant:"Body.L.Bold",className:"border-b border-[#dedede] p-4",children:(e=>{let{date:t,locale:l="en-US",timeZone:a}=e;if(!t)return"";let{cDate:r,cTimeZone:n}=(0,P.r)({date:t,locale:l,timeZone:a});return new Intl.DateTimeFormat(l,{weekday:"long",day:"numeric",month:"long",timeZone:n}).format(r)})({date:e.validTimeLocal,locale:s,timeZone:(null==t?void 0:t.ianaTimeZone)||""})}),(0,a.jsx)(R,{itemIndex:n,forecast:e,timeZone:(null==t?void 0:t.ianaTimeZone)||"",locale:s,longPhraseInSet:C})]},e.validTimeLocal)})},h),u&&m&&(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(v.$n,{asChild:!0,children:(0,a.jsx)(x.default,{href:u,children:m})})})]})})()]})]})};var el=l(21125),ea=l(66757),er=l(82915);let en=["trendingFeelsLikeInsight","trendingTemperatureInsight","trendingWindInsight","trendingUvIndexInsight"],ei=Math.floor(Math.random()*en.length),eo=e=>{var t,l;let{location:p,simplifiedVersion:v,initializing:x,initialError:f}=e,g=(0,h.useParams)(),y=(0,n.c)("HourlyForecast"),{effectiveLocation:b,isLocationLoading:w}=(0,d.s)({location:p}),j=(0,c.md)(u.Yt),N=null==(t=(0,m.xP)(j))?void 0:t.code,C=v?s.HourlyForecastDuration.ONE_DAY:s.HourlyForecastDuration.THREE_DAY,T=null==(l=(0,h.useParams)())?void 0:l.locale,{data:A=[],error:S,isLoading:M}=(0,i.Ay)(b?["get-hourly-forecast",b.geocode,N,C,T]:null,e=>{let[t,l,a,r,n]=e;return(0,o.eH)({geocode:l,units:a,duration:r,language:n})},{revalidateOnFocus:!1,dedupingInterval:6e4}),I=(0,r.useMemo)(()=>v?A.slice(0,4):A,[A,v]),{insight:R,insightIcon:k}=((e,t)=>{var l;let a=(0,c.md)(u.Yt),n=null==(l=(0,m.xP)(a))?void 0:l.code,{data:o,isLoading:d}=(0,er.r)({geoCode:(null==e?void 0:e.geocode)||null,insightType:L.InsightType.ALL,locale:t}),h=(0,r.useMemo)(()=>null==o?void 0:o.reduce((e,t)=>(e[t.insightType]=t,e),{}),[o]),{data:p=[],isLoading:v}=(0,i.Ay)(e?["get-daily-forecast",e.geocode,s.ForecastDuration.THREE_DAY,n,t]:null,e=>{let[t,l,a,r,n]=e;return(0,ea.v1)({geocode:l,units:r,duration:a,language:n})},{revalidateOnFocus:!1,dedupingInterval:6e5}),x=d||v,f=p[0],g=(0,r.useMemo)(()=>{var e,t,l,a,r,n;if(x)return"";let i=null==h||null==(t=h.significantWeatherTodayInsight)||null==(e=t.insightText)?void 0:e[0];if(i)return i;let o=null==f||null==(a=f.daypart)||null==(l=a[0])?void 0:l.narrative;if(o)return o.split(".")[0];let s=en[ei]||en[0];return(null==h||null==(n=h[s])||null==(r=n.insightText)?void 0:r[0])||""},[x,h,null==f?void 0:f.daypart]);return(0,r.useMemo)(()=>{let e=(0,el.B)(g,[" ","."]),t=e?(e=>{if(e){if(/(warmer|higher)/i.test(e))return"up";else if(/(cooler|lower)/i.test(e))return"down";else if(/(partly cloudy)/i.test(e)||/(sun)/i.test(e)&&/(cloud)/i.test(e))return"fair";else if(/(sunny|sunshine)/i.test(e))return"sun";else if(/(cloudy)/i.test(e))return"cloud";else if(/(shower|rain)/i.test(e))return"rain";else if(/(clear)/i.test(e))return/(night)/i.test(e)?"clear-night":"clear"}return null})(e):null;return{insight:e,insightIcon:t}},[g])})(b,T),_=x||M||w||!(null==I?void 0:I.length),P=v?"/weather/hourbyhour/l/".concat((null==b?void 0:b.placeId)||(null==g?void 0:g.locId)):"/weather/tenday/l/".concat((null==b?void 0:b.placeId)||(null==g?void 0:g.locId));return(0,a.jsx)(et,{location:b,hourlyForecast:I,locale:T,isLoading:_,error:f||S,showDayLabel:!v,canToggleMultipleItems:!v,ctaLink:P,ctaText:y(v?"next48":"10DayWeather"),enableAlertHeadlines:!v,insight:R,insightIcon:k,showPrecipIntensity:!v,simplifiedVersion:v})};var es=l(71458),ed=l(59432);let ec=e=>{let{locationProvider:t,locationEntry:l,simplifiedVersion:r}=e,n="specified"===t,{specifiedLocationData:i,specifiedLocationError:o,isSpecifiedLocationLoading:s}=(0,ed.v)(n?l:null),d=n&&i&&l?(0,es.I)(i):void 0;return(0,a.jsx)(eo,{location:d,simplifiedVersion:null!=r&&r,initializing:n&&s,initialError:n?o:void 0})},eu=ec},29900:(e,t,l)=>{"use strict";l.d(t,{A:()=>c,L:()=>s});var a=l(21102),r=l(42494),n=l(71535);let i={"top-left":"top-0 left-0 flex-row","top-right":"top-0 right-0 flex-row-reverse","bottom-left":"bottom-0 left-0 flex-row","bottom-right":"bottom-0 right-0 flex-row-reverse"},o={blue:"fill-brand-300",white:"fill-white"},s=e=>{let{position:t="bottom-right",color:l="blue",className:s="",linksClassName:c="",stack:u=!1}=e,[m,h]=(0,r.useState)(!1);return(0,a.jsxs)("div",{className:(0,n.cn)("absolute flex items-start gap-1",i[t],s),children:[(0,a.jsx)("div",{className:"flex items-center","data-testid":"MapboxAttribution",children:(0,a.jsx)("button",{type:"button",className:(0,n.cn)("cursor-pointer p-0",o[l]),onClick:()=>{h(e=>!e)},"aria-label":"Map Attribution","data-testid":"MapboxLinks",children:(0,a.jsx)(d,{})})},"logo"),(0,a.jsxs)("div",{className:(0,n.cn)("flex-wrap rounded bg-white/75 p-1.5 text-xs shadow-md",m?"flex":"hidden",u?"flex-col space-y-1":"flex-row items-center space-x-2",c),children:[(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://mapbox.com/about/maps",className:"text-blue-600 hover:underline",children:"\xa9 ".concat(new Date().getFullYear()," Mapbox")}),(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.openstreetmap.org/about",className:"text-blue-600 hover:underline",children:"\xa9 OpenStreetMap"}),!u&&(0,a.jsx)("span",{className:"text-gray-400",children:"|"}),(0,a.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.mapbox.com/map-feedback/",className:"text-blue-600 hover:underline",children:"Improve this map"})]},"links")]})},d=()=>(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 800 180",className:"w-18.75 opacity-75 drop-shadow-[0_0_2px_black]",children:[(0,a.jsx)("title",{children:"Mapbox Logo"}),(0,a.jsx)("path",{d:"M594.6 49.8c-9.9 0-19.4 4.1-26.3 11.3V23c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v103c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2v-7.1c6.9 7.2 16.3 11.3 26.3 11.3 20.9 0 37.8-18 37.8-40.2s-16.9-40.2-37.8-40.2zm-3.1 64.3c-12.7 0-23-10.6-23.1-23.8v-.6c.2-13.2 10.4-23.8 23.1-23.8 12.8 0 23.1 10.8 23.1 24.1s-10.4 24.1-23.1 24.1zM681.7 49.8c-22.6 0-40.9 18-40.9 40.2s18.3 40.2 40.9 40.2c22.6 0 40.9-18 40.9-40.2s-18.3-40.2-40.9-40.2zm-.1 64.3c-12.8 0-23.1-10.8-23.1-24.1s10.4-24.1 23.1-24.1 23.1 10.8 23.1 24.1-10.4 24.1-23.1 24.1zM431.6 51.8h-13.4c-1.2 0-2.2 1-2.2 2.2v7.1c-6.9-7.2-16.3-11.3-26.3-11.3-20.9 0-37.8 18-37.8 40.2s16.9 40.2 37.8 40.2c9.9 0 19.4-4.1 26.3-11.3v7.1c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V54c0-1.2-1-2.2-2.2-2.2zm-38.8 62.3c-12.8 0-23.1-10.8-23.1-24.1s10.4-24.1 23.1-24.1c12.7 0 23 10.6 23.1 23.8v.6c-.1 13.2-10.4 23.8-23.1 23.8zM498.5 49.8c-9.9 0-19.4 4.1-26.3 11.3V54c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v103c0 1.2 1 2.2 2.2 2.2H470c1.2 0 2.2-1 2.2-2.2v-38.1c6.9 7.2 16.3 11.3 26.3 11.3 20.9 0 37.8-18 37.8-40.2s-16.9-40.2-37.8-40.2zm-3.1 64.3c-12.7 0-23-10.6-23.1-23.8v-.6c.2-13.2 10.4-23.8 23.1-23.8 12.8 0 23.1 10.8 23.1 24.1s-10.3 24.1-23.1 24.1zM311.8 49.8c-10 .1-19.1 5.9-23.4 15-4.9-9.3-14.7-15.1-25.2-15-8.2 0-15.9 4-20.7 10.6V54c0-1.2-1-2.2-2.2-2.2h-13.4c-1.2 0-2.2 1-2.2 2.2v72c0 1.2 1 2.2 2.2 2.2h13.4c1.2 0 2.2-1 2.2-2.2V82.9c.5-9.6 7.2-17.3 15.4-17.3 8.5 0 15.6 7.1 15.6 16.4v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-44.8c1.2-8.8 7.5-15.6 15.2-15.6 8.5 0 15.6 7.1 15.6 16.4v44c0 1.2 1 2.2 2.2 2.2h13.5c1.2 0 2.2-1 2.2-2.2l-.1-49.5c0-14.8-12.6-26.7-28.1-26.7zM794.7 125.1l-23.2-35.3 23-35c.6-.9.3-2.2-.6-2.8-.3-.2-.7-.3-1.1-.3h-15.5c-1.2 0-2.3.6-2.9 1.6L760.9 76l-13.5-22.6c-.6-1-1.7-1.6-2.9-1.6H729c-1.1 0-2 .9-2 2 0 .4.1.8.3 1.1l23 35-23.2 35.3c-.6.9-.3 2.2.6 2.8.3.2.7.3 1.1.3h15.5c1.2 0 2.3-.6 2.9-1.6l13.8-23 13.8 23c.6 1 1.7 1.6 2.9 1.6H793c1.1 0 2-.9 2-2 0-.4-.1-.8-.3-1.2z"}),(0,a.jsxs)("g",{children:[(0,a.jsx)("path",{d:"M93.9 1.1C44.8 1.1 5 40.9 5 90s39.8 88.9 88.9 88.9 88.9-39.8 88.9-88.9c0-49.1-39.8-88.9-88.9-88.9zm42.2 110.7c-30.4 30.4-84.7 20.7-84.7 20.7s-9.8-54.2 20.7-84.7C89 30.9 117 31.6 134.7 49.2s18.3 45.7 1.4 62.6z"}),(0,a.jsx)("path",{d:"M104.1 53.2l-8.7 17.9-17.9 8.7 17.9 8.7 8.7 17.9 8.7-17.9 17.9-8.7-17.9-8.7z"})]})]}),c=(0,r.memo)(s)},31082:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createTransformer=function(e){return t=>((0,a.fromCompactResponse)(t)||[]).map((l,a)=>e(l,a,t))};let a=l(25287)},31501:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CurrentConditionsBlock:()=>em,default:()=>eh});var a=l(21102),r=l(42494),n=l(59946),i=l(83037),o=l(51135),s=l(66757),d=l(14527),c=l(89131),u=l(57809),m=l(2092),h=l(90267),p=l(34679),v=l(9959),x=l(59488),f=l(89575),g=l(4385),y=l(73017),b=l(26464),w=l(64566),j=l(70825),N=l(49422),C=l(50143),T=l(66188);let A=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.49 4.488a3.488 3.488 0 1 1-6.977 0 3.488 3.488 0 0 1 6.977 0m-1 0a2.488 2.488 0 1 1-4.977 0 2.488 2.488 0 0 1 4.977 0",clipRule:"evenodd"}),(0,a.jsx)("path",{fill:"currentColor",d:"M2 1.954a.5.5 0 1 0-1 0v.563C1 3.273 1.622 4 2.526 4h2.518a.5.5 0 0 0 0-1H2.526A.507.507 0 0 1 2 2.517zM1.5 7.543a.5.5 0 0 0 .5-.5V6.48c0-.228.199-.483.526-.483h2.518a.5.5 0 0 0 0-1H2.526C1.622 4.997 1 5.725 1 6.48v.562a.5.5 0 0 0 .5.501M6.01 12.506c0-1.275.94-2.496 2.55-2.496h2.947c1.376 0 2.504 1.17 2.504 2.496v1.989a.5.5 0 0 0 1 0v-1.989c0-1.868-1.566-3.496-3.504-3.496H8.559c-2.225 0-3.548 1.734-3.548 3.496v1.989a.5.5 0 0 0 1 0z"})]})}),S=r.forwardRef((e,t)=>(0,a.jsx)(T.h,{ref:t,icon:A,...e}));S.displayName="AirQuality";var M=l(22150),I=l(41593),R=l(58239),k=l(49709),_=l(43874),P=l(43673),E=l(48015),L=l(78117),F=l(6685),D=l(85409),V=l(43637),B=l(75603),H=l(80387),z=l(59781);let W=e=>{let{sunLocalTime:t,locale:l}=e;return(0,a.jsx)("span",{children:t?(0,H.P)({date:(0,z.r)(t),timeZone:"Etc/GMT",locale:l,minutes:!0}):"--"})};var O=l(91851);let U={temperatureMax:-1,temperatureMin:-1,windSpeed:-1,windDirection:-1,windDirectionCardinal:d.WindDirectionCardinal.NORTH_NORTHEAST,relativeHumidity:-1,temperatureDewPoint:-1,pressureAltimeter:-1,pressureTendencyCode:d.PressureTendencyCode.STEADY,uvIndex:-1,visibility:-1},q=e=>{var t;let{currentDetails:l,isLoading:n}=e,i=(0,y.c)("CurrentDetails"),o=(0,y.c)("DetailsTable"),s=(0,p.useParams)(),d=null==s?void 0:s.locale,c=(0,u.md)(m.Yt),v=null==(t=(0,h.xP)(c))?void 0:t.code,x=(0,r.useMemo)(()=>(e=>{let{data:t,t:l,unitCode:r,locale:n}=e;return[{Icon:N.Z,label:l("wind"),content:(0,a.jsx)(P.Z,{windSpeed:t.windSpeed,units:r,windDirection:t.windDirection,windDirectionCardinal:t.windDirectionCardinal,displayMode:"directionalAndCardinal"})},{Icon:C.K,label:l("humidity"),content:(0,a.jsx)(E.N,{value:t.relativeHumidity})},{Icon:S,label:l("airQuality"),content:(0,a.jsx)(L.y,{airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory})},{Icon:M.$,label:l("dewPoint"),content:(0,a.jsx)(D.B,{value:t.temperatureDewPoint})},{Icon:I.S,label:l("pressure"),content:(0,a.jsx)(F.S,{pressureAltimeter:t.pressureAltimeter,pressureTendencyCode:t.pressureTendencyCode,units:r})},{Icon:R.o,label:l("uvIndex"),content:(0,a.jsx)(V.M,{uvIndex:t.uvIndex})},{Icon:j.S,label:l("visibility"),content:(0,a.jsx)(B.b,{visibility:t.visibility,units:r})},{Icon:e=>(0,a.jsx)(O.r,{...e,moonPhaseCode:t.moonPhaseCode}),label:l("moonPhase"),content:t.moonPhase},{Icon:k.m,label:l("sunrise"),content:(0,a.jsx)(W,{sunLocalTime:t.sunriseTimeLocal,locale:n})},{Icon:_.d,label:l("sunset"),content:(0,a.jsx)(W,{sunLocalTime:t.sunsetTimeLocal,locale:n})}]})({data:n||!l?U:l,t:o,unitCode:v,locale:d}),[n,l,o,d,v]),f=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"grid grid-cols-2 gap-x-8 gap-y-0",children:x.map(e=>{let{Icon:t,label:r,content:i}=e;return(0,a.jsxs)("div",{className:"flex flex-row items-center gap-2 border-t py-3 first:border-none @max-sm:flex-wrap [&:nth-child(-n+2)]:border-none [&:nth-child(-n+2)]:pt-0 [&:nth-last-child(-n+2)]:pb-0",children:[(0,a.jsx)(t,{className:"size-4 @md/currentDetails:size-5"}),(0,a.jsx)(b.Ay,{variant:"Body.M",className:"grow-1 font-normal whitespace-nowrap",children:r}),(0,a.jsx)(b.Ay,{isLoading:n||!l,skeletonClassName:"h-6 w-20",variant:"Body.M",className:"text-right leading-[1.5] font-bold tracking-normal @max-sm:ml-6 @max-sm:basis-full @max-sm:text-left",children:i})]},r)})})});return(0,a.jsx)(w.Zp,{"aria-label":i("weatherToday"),radius:"lg",border:"none",variant:"outline",className:"@container/currentDetails mt-4 bg-gray-100","data-testid":"current-details",children:(0,a.jsx)(w.Wu,{className:"p-0",children:f})})};var Q=l(8501),G=l(71535);let Z=e=>{let{children:t,direction:l="horizontal",height:n,width:i,textVariant:o="Display.L",textColor:s="inverse",translateDistance:d,transitionDuration:c="500ms",className:u,transitionClassName:m,isLoading:h,skeletonClassName:p}=e,[v,x]=(0,r.useState)(!1);(0,r.useEffect)(()=>{v||h||setTimeout(()=>{x(!0)},0)},[v,h]);let f="horizontal"===l?"translateX":"translateY";return(0,a.jsx)(b.Ay,{isLoading:h,skeletonClassName:p,elementType:"div",className:(0,G.cn)("w-max overflow-hidden",u),variant:o,color:s,style:{height:n,width:i},children:(0,a.jsx)("span",{className:(0,G.cn)("transform: flex transition-transform",m),style:{transitionDuration:c,flexDirection:"horizontal"===l?"row":"column",transform:v?"".concat(f,"(-").concat(d,")"):"".concat(f,"(0px)")},children:t})})};var Y=l(38915);let X="https://s.w-x.co/WeatherImages_Web/WeatherImage_",$=[320,480,640,800],K=[{name:"Tornadoes",iconCodes:[0],dayVariants:2,nightVariants:2},{name:"TropicalStorms",iconCodes:[1,2],dayVariants:2,nightVariants:2},{name:"StrongStorms",iconCodes:[3,4],dayVariants:2,nightVariants:2},{name:"RainAndSnow",iconCodes:[5,7],dayVariants:2,nightVariants:2},{name:"RainAndSleet",iconCodes:[6,10,35],dayVariants:2,nightVariants:2},{name:"FreezingDrizzle",iconCodes:[8],dayVariants:2,nightVariants:2},{name:"Drizzle",iconCodes:[9,11,39],dayVariants:2,nightVariants:2},{name:"Rain",iconCodes:[12],dayVariants:2,nightVariants:2},{name:"Flurries",iconCodes:[13],dayVariants:2,nightVariants:2},{name:"SnowShowers",iconCodes:[14,16],dayVariants:2,nightVariants:2},{name:"BlowingSnow",iconCodes:[15,25],dayVariants:2,nightVariants:2},{name:"Hail",iconCodes:[17,18],dayVariants:2,nightVariants:2},{name:"BlowingSand",iconCodes:[19],dayVariants:2,nightVariants:2},{name:"Foggy",iconCodes:[20],dayVariants:2,nightVariants:2},{name:"Haze",iconCodes:[21],dayVariants:2,nightVariants:2},{name:"Smoke",iconCodes:[22],dayVariants:2,nightVariants:2},{name:"Breezy",iconCodes:[23,24],dayVariants:2,nightVariants:2},{name:"Cloudy",iconCodes:[26],dayVariants:2,nightVariants:2},{name:"MostlyCloudy",iconCodes:[27],dayVariants:null,nightVariants:2},{name:"MostlyCloudy",iconCodes:[28],dayVariants:5,nightVariants:null},{name:"PartlyCloudy",iconCodes:[29],dayVariants:null,nightVariants:2},{name:"PartlyCloudy",iconCodes:[30],dayVariants:5,nightVariants:null},{name:"Clear",iconCodes:[31],dayVariants:null,nightVariants:2},{name:"Sunny",iconCodes:[32,36],dayVariants:4,nightVariants:null},{name:"MostlyClear",iconCodes:[33],dayVariants:null,nightVariants:2},{name:"Fair",iconCodes:[34],dayVariants:2,nightVariants:null},{name:"IsolatedThunderstorms",iconCodes:[37],dayVariants:2,nightVariants:null},{name:"ScatteredThunderstorms",iconCodes:[38],dayVariants:2,nightVariants:null},{name:"HeavyRain",iconCodes:[40],dayVariants:2,nightVariants:2},{name:"ScatteredSnowShowers",iconCodes:[41],dayVariants:2,nightVariants:null},{name:"HeavySnow",iconCodes:[42,43],dayVariants:2,nightVariants:2},{name:"Unknown",iconCodes:[44],dayVariants:null,nightVariants:null},{name:"ScatteredShowers",iconCodes:[45],dayVariants:null,nightVariants:2},{name:"ScatteredSnowShowers",iconCodes:[46],dayVariants:null,nightVariants:2},{name:"Thunderstorms",iconCodes:[47],dayVariants:null,nightVariants:2}],J={"--color-blue-800":["BlowingSnow-night","Breezy-night","Clear-night","Fluries-night","HeavySnow-night","MostlyClear-night","PartlyCloudy-night","ScatteredSnowShowers-night","SnowShowers-night","Unknown.jpg"],"--color-teal-700":["BlowingSnow-day","Breezy-day","Fair-day","Flurries-day","HeavySnow-day","PartlyCloudy-day","ScatteredSnowShowers-day","SnowShowers-day","Sunny-day"],"--color-teal-800":["Drizzle-day","FreezingDrizzle-day","Hail-day","HeavyRain-day","IsolatedThunderstorms-day","Rain-day","RainAndSleet-day","RainAndSnow-day","ScatteredThunderstorms-day","StrongStorms-day","Tornadoes-day","TropicalStorms-day"],"--color-teal-900":["Drizzle-night","FreezingDrizzle-night","Hail-night","HeavyRain-night","Rain-night","RainAndSleet-night","RainAndSnow-night","ScatteredShowers-night","StrongStorms-night","Thunderstorms-night","Tornadoes-night","TropicalStorms-night"],"--color-violet-800":["BlowingSand-day","Cloudy-day","Foggy-day","Haze-day","MostlyCloudy-day","Smoke-day"],"--color-indigo-900":["BlowingSand-night","Cloudy-night","Foggy-night","Haze-night","MostlyCloudy-night","Smoke-night"]};var ee=l(67988);let et=function(){let{iconCode:e=44}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=K.find(t=>{var l,a;return null==t||null==(a=t.iconCodes)||null==(l=a.includes)?void 0:l.call(a,e)}),l=K.find(e=>(null==e?void 0:e.name)==="Unknown");return t||l},el=function(){let{width:e=320}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return $.reduce((t,l)=>Math.abs(l-e){let{location:t,weatherData:l,forecastData:r,isLoading:n,error:i}=e;return i?(0,a.jsx)(en,{error:i}):(0,a.jsx)(er,{isLoading:n,location:t,weatherData:l,forecastData:r})},er=e=>{let{isLoading:t,location:l,weatherData:r,forecastData:n}=e,i=function(){let{iconCode:e=44,dayPart:t="day",variant:l=0,width:a=800,isSevere:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={src:function(){let{iconCode:e=44,dayPart:t="day",variant:l=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=et({iconCode:e}),r=null==a?void 0:a["".concat(t,"Variants")];if(!r||l>r)return a=et({iconCode:44}),"".concat(X).concat(a.name,".jpg");let n=!!r&&0===l&&((e,t)=>{let l=Math.ceil(e);return Math.floor(Math.random()*(Math.floor(t)-l+1)+l)})(1,r),i="";return n?i="_".concat(n):l&&(i="_".concat(l)),"".concat(X).concat(a.name,"-").concat(t).concat(i,".jpg")}({iconCode:e,dayPart:t,variant:l}),width:el({width:a}),quality:70,format:"pjpg",autoWebP:!0,ratio:"16:9"};return r&&(n.saturation=-100),(0,ee.default)(n)}({iconCode:null==r?void 0:r.iconCode,dayPart:(null==r?void 0:r.dayOrNight)==="D"?"day":"night"}),o=t?"--color-white":(e=>Object.keys(J).find(t=>J[t].find(t=>{var l;return null==e||null==(l=e.includes)?void 0:l.call(e,t)}))||"--color-blue-800")(i),s=(0,y.c)("CurrentConditions");return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(w.Zp,{"aria-label":"Current Conditions",radius:"lg",border:t?"lt":"none",variant:"outline",className:"@container bg-cover bg-center bg-no-repeat","data-testid":"current-conditions",style:{backgroundColor:"var(".concat(o,")"),backgroundImage:t?"":"url(".concat(i,")")},children:(0,a.jsx)(w.Wu,{children:(0,a.jsx)("div",{className:"relative",children:(0,a.jsxs)("div",{className:"relative z-10 flex h-full flex-col text-white",children:[(0,a.jsxs)("div",{className:"mb-3 flex items-center gap-1",children:[(0,a.jsx)("div",{className:"flex h-16 w-16 items-center justify-center",children:(0,a.jsx)(Y.WxIcon,{isLoading:t,loadingIconClassName:"h-16 w-16",iconCode:(null==r?void 0:r.iconCode)||-1,className:"h-16 w-16","aria-label":null==r?void 0:r.wxPhraseLong,iconTheme:"lightBG"})}),(0,a.jsxs)(Z,{isLoading:t,skeletonClassName:"ml-1 h-16 w-22",direction:"vertical",height:"69px",translateDistance:"207px",children:[(0,a.jsx)("span",{children:s("now")}),(0,a.jsx)(D.B,{value:(null==r?void 0:r.temperature)?(null==r?void 0:r.temperature)+2:null}),(0,a.jsx)(D.B,{value:(null==r?void 0:r.temperature)?(null==r?void 0:r.temperature)+1:null}),(0,a.jsx)(b.Ay,{variant:"Display.L",color:"inverse",children:(0,a.jsx)(D.B,{value:null==r?void 0:r.temperature})})]})]}),(0,a.jsx)(b.Ay,{isLoading:t,skeletonClassName:"mt-1 h-6 w-30",variant:"Title.M",color:"inverse",children:null==r?void 0:r.wxPhraseLong}),(0,a.jsxs)(b.Ay,{isLoading:t,skeletonClassName:"mt-3 h-6 w-65",variant:"Body.M",color:"inverse",className:"mt-3","data-testid":"current-conditions-temperatures",children:[s("feelsLike")," ",(0,a.jsx)(D.B,{value:null==r?void 0:r.temperatureFeelsLike})," \xb7"," ",s("dayTempLabel")," ",(0,a.jsx)(D.B,{value:null==n?void 0:n.temperatureMax})," \xb7"," ",s("nightTempLabel")," ",(0,a.jsx)(D.B,{value:null==n?void 0:n.temperatureMin})]}),(0,a.jsx)(Q.A,{location:l,showSubheadline:!0,className:"mt-4",headlineClassName:"normal-case"})]})})})})})},en=e=>{let{error:t}=e;return(0,a.jsx)("div",{className:"overflow-hidden rounded-lg","data-testid":"current-conditions-error",children:(0,a.jsx)("div",{className:"flex min-h-[150px] flex-col bg-white p-8 text-white",children:(0,a.jsx)("div",{className:"flex flex-grow items-center justify-center",children:(0,a.jsx)(b.Ay,{variant:"Display.S",children:(null==t?void 0:t.message)||"Unable to load weather data"})})})})};var ei=l(59809);let eo=e=>{let{location:t}=e,l=(0,y.c)("CurrentConditions"),r=(0,ei.z)();return(0,a.jsx)(b.Ay,{isLoading:!t,variant:r?"Title.S":"Title.M",className:"mb-4",skeletonClassName:"mt-2 h-6 w-65",children:l("locationDisplayName",{presentationName:(null==t?void 0:t.presentationName)||""})})},es=e=>{let{location:t,weatherData:l,forecastData:r,isCurrentConditionsLoading:n,currentConditionsError:i,currentDetails:o,isCurrentDetailsLoading:s}=e;return(0,a.jsxs)("div",{"aria-label":"CurrentConditionsDetailsView",children:[(0,a.jsx)(eo,{location:t}),(0,a.jsx)(ea,{location:t,weatherData:l,forecastData:r,isLoading:n,error:i}),(0,a.jsx)(q,{currentDetails:o,isLoading:s})]})},ed=e=>{let{location:t}=e,{effectiveLocation:l,isLocationLoading:y,locationError:b}=(0,i.s)({location:t}),{weatherData:w,forecastData:j,isLoading:N,error:C}=function(e){var t,l,a,r,i;let c=(0,p.useParams)(),v=null==c?void 0:c.locale,x=(0,u.md)(m.Yt),f=null==(t=(0,h.xP)(x))?void 0:t.code,{data:g,error:y,isLoading:b}=(0,n.Ay)(e?["observations",e.geocode,f]:null,e=>{let[t,l,a]=e;return(0,o.z)({geocode:l,units:a,language:v})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:w,error:j,isLoading:N}=(0,n.Ay)(e?["daily-forecast",e.geocode,f]:null,t=>{let[l,a,r]=t;return e?(0,s.v1)({geocode:a,units:r,language:v}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),C=g?{temperature:g.temperature,temperatureFeelsLike:g.temperatureFeelsLike,wxPhraseLong:g.wxPhraseLong,iconName:d.ICON_CODE_MAP[g.iconCode]||"na",iconCode:g.iconCode,validTimeLocal:g.validTimeLocal,relativeHumidity:g.relativeHumidity,windSpeed:g.windSpeed,windDirectionCardinal:g.windDirectionCardinal,dayOrNight:g.dayOrNight}:void 0,T=w&&w.length>0?{temperatureMax:null!=(r=null==(l=w[0])?void 0:l.calendarDayTemperatureMax)?r:0,temperatureMin:null!=(i=null==(a=w[0])?void 0:a.calendarDayTemperatureMin)?i:0}:void 0;return{weatherData:C,forecastData:T,isLoading:b||!g||N||!w,error:y||j}}(l),T=N||y,A=C||b,{currentDetails:S,loading:M}=(e=>{var t,l,a,i;let c=(0,u.md)(m.Yt),y=null==(t=(0,h.xP)(c))?void 0:t.code,b=null==(l=(0,p.useParams)())?void 0:l.locale,w=(0,v.A)(),{data:j,error:N,isLoading:C}=(0,n.Ay)(e?["get-current-observations",e.geocode,y,b]:null,e=>{let[t,l,a,r]=e;return(0,o.z)({geocode:l,units:a,language:r})},{revalidateOnFocus:!1,dedupingInterval:6e4}),{data:T,error:A,isLoading:S}=(0,n.Ay)(e?["get-daily-forecast",e.geocode,d.ForecastDuration.THREE_DAY,y,b,"KR"===w?w:void 0]:null,e=>{let[t,l,a,r,n,i]=e;return(0,s.v1)({geocode:l,units:r,language:n,duration:a,cscCountryCode:i})},{revalidateOnFocus:!1,dedupingInterval:6e4}),M=(null==b||null==(i=b.split)||null==(a=i.call(b,"-"))?void 0:a[1])||"US",{data:I,error:R,isLoading:k}=(0,n.Ay)(e?["getHourlyAirQualityForecast",e.geocode]:null,t=>{let[l,a]=t;return e?(0,x.getHourlyAirQualityForecast)({geocode:a,language:b,scale:(0,f.o)({countryCode:M}),duration:g.AirQualityForecastDuration.TWELVE_HOUR}):null},{revalidateOnFocus:!1,dedupingInterval:6e4}),_=null==T?void 0:T[0];return{currentDetails:(0,r.useMemo)(()=>{var e,t,l;return j&&_&&{...j,temperatureMin:_.temperatureMin,temperatureMax:_.temperatureMax,moonPhase:_.moonPhase,moonPhaseCode:_.moonPhaseCode,airQualityIndex:null==I||null==(e=I.forecast[0])?void 0:e.airQualityIndex,airQualityCategory:null!=(l=null==I||null==(t=I.forecast[0])?void 0:t.airQualityCategory)?l:""}},[j,_,I]),loading:C||S||k,error:N||A||R}})(l),I=y||M||!S||!l;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.DebugCollector,{componentName:"CurrentConditionsDetails",data:{props:{location:t},state:{effectiveLocation:l,isLocationLoading:y,isCurrentConditionsLoading:T,weatherData:w,forecastData:j,currentConditionsError:A,componentState:A&&"error"||T&&"loading"||"ready"},performance:{renderCount:void 0}}}),(0,a.jsx)(es,{location:l,isCurrentConditionsLoading:T,currentConditionsError:A,weatherData:w,forecastData:j,isCurrentDetailsLoading:I,currentDetails:S})]})};var ec=l(59432),eu=l(71458);let em=e=>{let{locationProvider:t,locationEntry:l}=e,r="specified"===t,{specifiedLocationData:n,specifiedLocationError:i,isSpecifiedLocationLoading:o}=(0,ec.v)(r?l:null);return r&&o?(0,a.jsx)("div",{children:"Loading location data..."}):r&&i?(0,a.jsxs)("div",{children:["Error loading location data: ",i.message]}):r&&n&&l?(0,a.jsx)(ed,{location:(0,eu.I)(n)}):r?null:(0,a.jsx)(ed,{})},eh=ed},32123:(e,t,l)=>{"use strict";t.K=i;let a=l(95383),r=l(56438),n=l(40919);async function i(e){let t=(0,a.getPollenDaypartUrlConfig)(e),l=(0,r.urlFrom)(t),i=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,n.handleFetchResponse)(i)}},32201:(e,t,l)=>{"use strict";t.U=i;let a=l(19318),r=l(56438),n=l(40919);async function i(e){let t=(0,a.getWWIRForecastUrlConfig)(e),l=(0,r.urlFrom)(t),i=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return await (0,n.handleFetchResponse)(i)}},32279:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ContentMediaBlock:()=>b,default:()=>w});var a=l(21102),r=l(13501),n=l(64566),i=l(71535),o=l(24415),s=l(85422);let d=[1,2,3,4,5],c={1:"1 Column",2:"2 Columns",3:"3 Columns",4:"4 Columns",5:"5 Columns"};d.map(e=>({label:c[e],value:String(e)}));let u=(0,s.F)("",{variants:{columns:{1:"",2:"",3:"",4:"",5:""},items:{1:"",2:"",3:"",4:"",5:"",6:"",7:"",8:"",9:"",10:""}},compoundVariants:[{columns:1,items:1,class:"grid-cols-1"},{columns:1,items:2,class:"grid-cols-1"},{columns:2,items:2,class:"grid-cols-1 @md/grid:grid-cols-2"},{columns:1,items:3,class:"grid-cols-1"},{columns:3,items:3,class:"grid-cols-1 @lg/grid:grid-cols-3"},{columns:1,items:4,class:"grid-cols-1"},{columns:2,items:4,class:"grid-cols-1 @md/grid:grid-cols-2"},{columns:4,items:4,class:"grid-cols-1 @md/grid:grid-cols-2 @xl/grid:grid-cols-4"},{columns:1,items:5,class:"grid-cols-1"},{columns:5,items:5,class:"grid-cols-1 @2xl/grid:grid-cols-5"},{columns:1,items:6,class:"grid-cols-1"},{columns:2,items:6,class:"grid-cols-1 @md/grid:grid-cols-2"},{columns:3,items:6,class:"grid-cols-1 @md/grid:grid-cols-2 @lg/grid:grid-cols-3"},{columns:1,items:7,class:"grid-cols-1"},{columns:2,items:7,class:"grid-cols-1 @md/grid:grid-cols-2"},{columns:4,items:7,class:"grid-cols-1 @md/grid:grid-cols-2 @xl/grid:grid-cols-4"},{columns:1,items:8,class:"grid-cols-1"},{columns:2,items:8,class:"grid-cols-1 @md/grid:grid-cols-2"},{columns:4,items:8,class:"grid-cols-1 @md/grid:grid-cols-2 @xl/grid:grid-cols-4"},{columns:1,items:9,class:"grid-cols-1"},{columns:3,items:9,class:"grid-cols-1 @md/grid:grid-cols-2 @lg/grid:grid-cols-3"},{columns:1,items:10,class:"grid-cols-1"},{columns:2,items:10,class:"grid-cols-1 @md/grid:grid-cols-2"},{columns:5,items:10,class:"grid-cols-1 @md/grid:grid-cols-2 @2xl/grid:grid-cols-5"}]}),m=e=>{let{items:t,aspectRatio:l,gridColumns:r=3,isFetchPriority:n=!1}=e;if(0===t.length)return null;let s=Math.min(t.length,10),d=1===r,c=[3,5,9].includes(s);return(0,a.jsxs)("div",{className:"@container/grid",children:[!d&&(0,a.jsx)("div",{className:(0,i.cn)("flex flex-col gap-4",c?"@lg/grid:hidden":"@md/grid:hidden"),children:t.map(e=>(0,a.jsx)(o.S,{thumbnail:e.thumbnail,altText:e.altText,title:e.title,description:e.description,duration:e.duration,url:e.url,partnerLogo:e.partnerLogo,layout:"row",aspectRatio:l,textSize:"md",responsive:!0,isFetchPriority:n},e.id))}),(0,a.jsx)("div",{className:(0,i.cn)(d?"grid":c?"hidden @lg/grid:grid":"hidden @md/grid:grid","gap-4",u({columns:r,items:s})),children:t.map(e=>(0,a.jsx)(o.S,{thumbnail:e.thumbnail,altText:e.altText,title:e.title,description:e.description,duration:e.duration,url:e.url,partnerLogo:e.partnerLogo,layout:"column",aspectRatio:l,overlayGradient:"bottom",textSize:"md",responsive:!0,isFetchPriority:n},e.id))})]})},h=e=>{let{items:t,title:l,hideTitle:r=!1,gridColumns:o=2,aspectRatio:s="square",cardVariant:d="default",border:c="default",className:u}=e;return(0,a.jsxs)(n.Zp,{"aria-label":l,variant:d,border:c,className:(0,i.cn)(u),children:[!r&&(0,a.jsx)(n.aR,{text:l}),(0,a.jsx)(n.Wu,{children:(0,a.jsx)(m,{items:t,aspectRatio:s,gridColumns:o})})]})},p=e=>{let{items:t,title:l,hideTitle:r=!1,aspectRatio:s="square",cardVariant:d="default",border:c="default",className:u}=e;return(0,a.jsxs)(n.Zp,{"aria-label":l,variant:d,border:c,className:(0,i.cn)(u),children:[!r&&(0,a.jsx)(n.aR,{text:l}),(0,a.jsx)(n.Wu,{className:"flex flex-col gap-4",children:t.map(e=>(0,a.jsx)(o.S,{thumbnail:e.thumbnail,altText:e.altText,title:e.title,description:e.description,duration:e.duration,url:e.url,partnerLogo:e.partnerLogo,layout:"row",aspectRatio:s,textSize:"md",responsive:!0},e.id))})]})};var v=l(45226);let x=e=>{let{items:t,showDescription:l=!0}=e,r=t.map(e=>({id:e.id,url:e.overrideThumbnail||e.thumbnail||"",filename:e.overrideTitle||"",caption:l&&(e.overrideDescription||e.description)||"",seo:{altText:e.overrideTitle||e.title},createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}));return(0,a.jsx)("section",{className:"not-prose",children:(0,a.jsx)(v.A,{id:"content-media-slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:r,allSlides:r,slides:[],totalAssets:r.length,rounded:!0,sendTrackString:()=>{},blockType:"Slideshow"})})},f=e=>{var t;let{heroItem:l,secondaryItems:r=[],aspectRatio:n="square",gridColumns:s=3}=e,d=r.length>0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.S,{url:l.url,className:(0,i.cn)("@container/hero-item",d&&"mb-4"),children:(0,a.jsxs)("div",{className:"flex flex-col @xl/hero-item:relative",children:[(0,a.jsxs)("div",{className:"relative w-full overflow-hidden rounded-lg",children:[(0,a.jsx)(o.S.Image,{src:l.thumbnail,alt:l.altText,aspectRatio:"auto",hoverEffect:"scaled",className:"aspect-[8/5] max-h-[480px] w-full",isFetchPriority:!0}),(0,a.jsx)("div",{className:"absolute inset-0 hidden bg-black/40 @xl/hero-item:block"})]}),(0,a.jsxs)(o.S.Content,{className:(0,i.cn)("@xl/hero-item:absolute @xl/hero-item:bottom-[6%] @xl/hero-item:left-[4%] @xl/hero-item:w-1/2 @xl/hero-item:p-0"),children:[(null==(t=l.partnerLogo)?void 0:t.src)&&(0,a.jsx)("img",{src:l.partnerLogo.src,alt:l.partnerLogo.altText,className:(0,i.cn)("my-3 max-h-6 object-contain object-left",l.partnerLogo.forceWhite&&"@xl/hero-item:brightness-0 @xl/hero-item:invert")}),(0,a.jsx)(o.S.Title,{title:l.title,textSize:"xl",responsive:!0,className:"@xl/hero-item:text-white"}),l.description&&(0,a.jsx)(o.S.Description,{description:l.description,textSize:"xl",responsive:!0,className:"@xl/hero-item:text-white"}),(0,a.jsx)(o.S.Button,{text:l.duration?"Watch":"Read more",duration:l.duration,variant:"secondary",size:"lg",className:"hidden @xl/hero-item:block",inverse:!0})]})]})}),d&&(0,a.jsx)(m,{items:r,aspectRatio:n,gridColumns:s,isFetchPriority:!0})]})},g=e=>{var t;let{heroItem:l,secondaryItems:r=[],aspectRatio:n="square",gridColumns:s=3}=e,d=r.length>0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.S,{url:l.url,className:(0,i.cn)("@container/hero-item",d&&"mb-4"),children:(0,a.jsxs)("div",{className:(0,i.cn)("flex flex-col","@xl/hero-item:grid @xl/hero-item:grid-cols-3 @xl/hero-item:gap-6"),children:[(0,a.jsx)("div",{className:(0,i.cn)("relative w-full","@xl/hero-item:col-span-2"),children:(0,a.jsx)(o.S.Image,{src:l.thumbnail,alt:l.altText,aspectRatio:"8/5",hoverEffect:"scaled",isFetchPriority:!0})}),(0,a.jsxs)(o.S.Content,{className:(0,i.cn)("@xl/hero-item:col-span-1 @xl/hero-item:flex @xl/hero-item:flex-col @xl/hero-item:justify-center @xl/hero-item:p-0"),children:[(null==(t=l.partnerLogo)?void 0:t.src)&&(0,a.jsx)("img",{src:l.partnerLogo.src,alt:l.partnerLogo.altText,className:"my-3 max-h-6 object-contain object-left @xl/hero-item:block"}),(0,a.jsx)(o.S.Title,{title:l.title,textSize:"xl",responsive:!0,lineClamp:4}),l.description&&(0,a.jsx)(o.S.Description,{description:l.description,textSize:"xl",responsive:!0,lineClamp:3}),(0,a.jsx)(o.S.Button,{text:l.duration?"Watch":"Read more",duration:l.duration,size:"lg",className:"hidden @xl/hero-item:block"})]})]})}),d&&(0,a.jsx)(m,{items:r,aspectRatio:n,gridColumns:s,isFetchPriority:!0})]})},y=e=>{let{contentQuery:t,limit:l="4",title:i,showDescription:o,template:s="grid",gridColumns:c=3,aspectRatio:u="square",hideTitle:m=!1,cardVariant:v="default",border:y="default",displayPartnerLogo:b="enable"}=e,w="travel-hero"===s?3:function(e){let t="string"==typeof e?parseInt(e,10):e;if(t&&d.includes(t))return t}(c),j=(null==t?void 0:t.mergedContent)||[];if(!(0,r.J)(j))return null;let N="travel-hero"===s?"hero-overlay":s,C="travel-hero"===s?3:Number(l),T=j.slice(0,"hero-overlay"===N||"hero-sidebar"===N?C+1:C);if(T.every(e=>"image"===e.contentType))return(0,a.jsx)(x,{items:T,showDescription:o});let A=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.map((e,l)=>(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{showDescription:l=!0,displayPartnerLogo:a="enable",itemIndex:r=0}=t,n=(()=>{switch(a){case"disable":return!1;case"leader":return 0===r;default:return!0}})();return{id:e.id,thumbnail:e.overrideThumbnail||e.thumbnail||"/placeholder.svg",altText:"",title:e.overrideTitle||e.title,description:l&&(e.overrideDescription||e.description||e.caption)||void 0,duration:e.duration||void 0,url:e.url||"#",partnerLogo:n?function(e){var t,l;let a="object"==typeof e.provider&&e.provider?e.provider:null;if(!(null==a?void 0:a.partnerLogo))return;let r="object"==typeof a.partnerLogo?a.partnerLogo:null;if(null==r||null==(l=r.sizes)||null==(t=l.small)?void 0:t.url)return{src:r.sizes.small.url,forceWhite:!0,altText:a.name||""}}(e):void 0}})(e,{...t,itemIndex:l}))}(T,{showDescription:o,displayPartnerLogo:b}),S={title:null!=i?i:"",hideTitle:null!=m&&m,aspectRatio:null!=u?u:"square",cardVariant:null!=v?v:"default",border:null!=y?y:"default"};switch(N){case"list":return(0,a.jsx)(p,{items:A,...S});case"hero-overlay":case"hero-sidebar":{let e=A[0],t=A.slice(1,C+1);if(!e)return null;return(0,a.jsxs)(n.Zp,{variant:S.cardVariant,border:S.border,"aria-label":S.title,children:[!S.hideTitle&&(0,a.jsx)(n.aR,{text:S.title}),(0,a.jsx)(n.Wu,{children:(0,a.jsx)("hero-overlay"===N?f:g,{heroItem:e,secondaryItems:t,aspectRatio:S.aspectRatio,gridColumns:w})})]})}default:return(0,a.jsx)(h,{items:A,gridColumns:w,...S})}},b=e=>(0,a.jsx)(y,{...e}),w=b},33176:(e,t,l)=>{"use strict";t.M=i;let a=l(56438),r=l(40919),n=l(14340);async function i(){let e=(0,n.getTileServerSeriesDynamicMapsUrlConfig)(),t=(0,a.urlFrom)(e),l=await fetch(t,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(await (0,r.handleFetchResponse)(l)).seriesInfo}},35465:(e,t)=>{"use strict";t.C=void 0,t.C=(e,t,l)=>e&&Array.isArray(e)?e.find(e=>e.subscriptionGroupName===t)||l||null:l||null},36985:(e,t,l)=>{"use strict";t.$t=void 0,t.FA=c;let a=l(19318),r=l(56438),n=l(40919),i=l(31082),o=l(78217),s=l(14527),d=l(20015);async function c(e){let l=(0,a.getFifteenMinuteForecastUrlConfig)(e),i=(0,r.urlFrom)(l),o=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:60}}),s=await (0,n.handleFetchResponse)(o);return(0,t.$t)(s)}t.$t=(0,i.createTransformer)(e=>{var t,l,a,r,n,i,c,u,m,h,p,v,x,f,g,y,b;return{dayOfWeek:null!=(t=e.dayOfWeek)?t:"",iconCode:null!=(l=e.iconCode)?l:0,iconCodeExtend:null!=(a=e.iconCodeExtend)?a:0,precipChance:null!=(r=e.precipChance)?r:0,precipRate:null!=(n=e.precipRate)?n:0,precipType:null!=(i=e.precipType)?i:o.PrecipType.RAIN,relativeHumidity:null!=(c=e.relativeHumidity)?c:0,snowRate:null!=(u=e.snowRate)?u:0,temperature:null!=(m=e.temperature)?m:0,temperatureFeelsLike:null!=(h=e.temperatureFeelsLike)?h:0,validTimeLocal:null!=(p=e.validTimeLocal)?p:"",windDirection:null!=(v=e.windDirection)?v:0,windDirectionCardinal:(0,d.normalizeCardinal)(null!=(x=e.windDirectionCardinal)?x:s.WindDirectionCardinal.NORTH),windSpeed:null!=(f=e.windSpeed)?f:0,wxPhraseLong:null!=(g=e.wxPhraseLong)?g:"",wxPhraseShort:null!=(y=e.wxPhraseShort)?y:"",wxSeverity:null!=(b=e.wxSeverity)?b:0}})},40633:(e,t,l)=>{"use strict";l.r(t),l.d(t,{SlideshowBlock:()=>o,default:()=>s});var a=l(21102);l(42494);var r=l(45226),n=l(13247),i=l(13501);let o=e=>{let{slides:t=[],settings:l={},id:o}=e;if(!(0,i.J)(t))return null;let s=[];for(let e of t){var d;if(!e.imageAsset){console.error("Slide missing imageAsset:",e);continue}let t=(0,n.bt)(e.imageAsset)?e.imageAsset:null;if(!t||!t.url){console.error("Invalid imageAsset or missing URL:",t);continue}let l={...t,seo:{...t.seo,caption:e.imageCaption||t.caption||"",altText:e.imageTitle&&""!==e.imageTitle.trim()?e.imageTitle:(null==(d=t.seo)?void 0:d.altText)||""},...!e.imageTitle||""===e.imageTitle.trim()||/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e.imageTitle)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e.imageTitle)||/^[a-zA-Z0-9_-]+\d+$/i.test(e.imageTitle)||/[._][0-9]+/i.test(e.imageTitle)||/^[A-Z0-9_]+$/i.test(e.imageTitle)?{}:{filename:e.imageTitle}};s.push(l)}return 0===s.length?(console.error("SlideshowBlock - No valid assets after transformation"),(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Could not load images for the slideshow."})):(0,a.jsx)(r.A,{id:o||"slideshow-".concat(Math.random().toString(36).substring(2,9)),assets:s.slice(0,20),allSlides:s,totalAssets:s.length,rounded:(null==l?void 0:l.rounded)||!1,blockType:"Slideshow",slides:t,settings:l,sendTrackString:()=>{}})},s=o},41593:(e,t,l)=>{"use strict";l.d(t,{S:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"pressure"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.498 1.022a.5.5 0 0 1 .5.5v3.022H4.841l3.14 2.788 3.16-2.788h-1.13V1.522a.5.5 0 0 1 1 0v2.022h1.453a.5.5 0 0 1 .33.875L8.744 7.993l4.053 3.6a.5.5 0 0 1-.332.874h-1.473v2.022a.5.5 0 0 1-1 0v-3.022h1.157L8.008 8.68l-3.16 2.788h1.13v3.022a.5.5 0 0 1-1 0v-2.022H3.525a.5.5 0 0 1-.33-.875l4.052-3.574-4.054-3.6a.5.5 0 0 1 .332-.874h1.473V1.522a.5.5 0 0 1 .5-.5",clipRule:"evenodd"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="Pressure"},42013:(e,t,l)=>{"use strict";l.d(t,{p:()=>i});var a=l(94977),r=l(42494),n=l(82915);let i=(e,t)=>{var l;let{data:i,isLoading:o}=(0,n.r)({geoCode:null!=(l=null==e?void 0:e.geocode)?l:null,insightType:a.InsightType.PRECIP_INSIGHT,locale:t}),s=(0,r.useMemo)(()=>null==i?void 0:i.find(e=>{var t;return(null==e||null==(t=e.supplement)?void 0:t.precipSource)==="wwir"}),[i]);return{loadingInsight:o,insightHeadline:(null==s?void 0:s.insightHeadline[0])||"",insightTextLong:(null==s?void 0:s.insightTextLong[0])||""}}},43637:(e,t,l)=>{"use strict";l.d(t,{M:()=>i});var a=l(21102),r=l(71535),n=l(73017);let i=e=>{let t,{uvIndex:l,uvDescription:i,className:o,descriptionClassName:s}=e,d=(0,n.c)("DetailsTable");return t=!Number.isFinite(l)||l10?d("extreme"):i?l:t=d("uvIndexVal",{val:l,maxVal:11}),(0,a.jsxs)("span",{"data-testid":"UVIndexValue",className:(0,r.cn)(o),children:[t,i&&l{"use strict";l.d(t,{Z:()=>h});var a=l(21102),r=l(42494),n=l(71535),i=l(87403),o=l(49422),s=l(90267);let d={N:0,NNE:22.5,NE:45,ENE:67.5,E:90,ESE:112.5,SE:135,SSE:157.5,S:180,SSW:202.5,SW:225,WSW:247.5,W:270,WNW:292.5,NW:315,NNW:337.5},c=e=>{let{windDirection:t,windDirectionCardinal:l,iconClassName:r,iconColor:s,displayWindDirectionIcon:c,displayMode:u,afterSpeed:m,useWindIcon:h}=e;if(!t&&!l)return null;let p=((e,t)=>null!=e&&Number.isFinite(e)?e:t?d[t]:void 0)(t,l);if(!("directional"===u||"directionalAndCardinal"===u||void 0===u&&c||h)||!h&&!Number.isFinite(p))return null;let v=h?o.Z:i.y;return(0,a.jsx)(v,{className:(0,n.cn)("inline-block size-4 align-middle",m?"ml-0.5":"mr-0.5",r),color:s,style:h?void 0:{transform:"rotate(".concat(p,"deg)")},"aria-label":"Wind direction icon","data-testid":"WindDirectionIcon"})},u=e=>{let{windDirection:t,windDirectionCardinal:l,cardinalClassName:r,displayWindDirectionIcon:n,displayMode:i,beforeSpeed:o}=e;return(t||l)&&("cardinal"===i||"directionalAndCardinal"===i||void 0===i&&!n)&&l?(0,a.jsxs)("span",{className:r,children:[!o&&" ",l,o&&" "]}):null},m=e=>{let{units:t,windUnitClass:l}=e,r=t?(0,s.Bu)(t):null,i=null==r?void 0:r.speed;return(0,a.jsx)("span",{className:(0,n.cn)(l),children:i})},h=(0,r.memo)(e=>{let{windSpeed:t,units:l,className:r,windDirection:i,windDirectionCardinal:o,windSpeedClass:s,windUnitClass:d,iconClassName:h,iconColor:p,cardinalClassName:v,iconAfterSpeed:x,cardinalBeforeSpeed:f,spaceWindSpeedAndUnit:g=!0,displayWindDirectionIcon:y=!1,displayMode:b,useWindIcon:w}=e,j=(0,a.jsx)(c,{windDirection:i,windDirectionCardinal:o,iconClassName:h,iconColor:p,displayWindDirectionIcon:y,displayMode:b,afterSpeed:x,useWindIcon:w}),N=(0,a.jsx)(u,{windDirection:i,windDirectionCardinal:o,displayWindDirectionIcon:y,displayMode:b,beforeSpeed:f,cardinalClassName:v});return(0,a.jsxs)("span",{"data-testid":"Wind",className:(0,n.cn)(r),children:[!x&&j,f&&N,Number.isFinite(t)&&l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:(0,n.cn)(s),children:t}),g&&" ",(0,a.jsx)(m,{units:l,windUnitClass:d})]}):"--",!f&&N,x&&j]})})},43874:(e,t,l)=>{"use strict";l.d(t,{d:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Sunset"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.499 13.502a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1 0-1zM3 11.003a.5.5 0 0 1 0 1H1.5a.5.5 0 0 1 0-1zM14.5 11.003a.5.5 0 0 1 0 1H13a.5.5 0 0 1 0-1zM8 9a3 3 0 0 1 2.958 2.502c.046.272-.183.498-.459.498s-.493-.227-.562-.494A2.006 2.006 0 0 0 8 10a2.004 2.004 0 0 0-1.937 1.506c-.07.267-.287.494-.563.494s-.505-.226-.459-.498A3 3 0 0 1 8 9M3.05 7.053a.5.5 0 0 1 .707 0l1.046 1.046a.5.5 0 0 1-.707.707L3.05 7.76a.5.5 0 0 1 0-.707M12.242 7.053a.5.5 0 0 1 .707.707l-1.046 1.046a.5.5 0 0 1-.707-.707zM8 2.003a.5.5 0 0 1 .5.5v3.585l.941-.939a.5.5 0 0 1 .705.706L8.396 7.607a.56.56 0 0 1-.79 0L5.853 5.855a.5.5 0 0 1 .705-.706l.942.939V2.503a.5.5 0 0 1 .5-.5"})})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="Sunset"},45226:(e,t,l)=>{"use strict";l.d(t,{A:()=>m});var a=l(21102),r=l(42494);let n={src:"/_next/static/media/SlideshowIcon.2da11b0d.png"};var i=l(94456),o=l(26464),s=l(2899),d=l(32124);let c=e=>!!e&&""!==e.trim()&&(/\.(jpg|jpeg|png|gif|webp|bmp|tiff|svg)$/i.test(e)||/^[A-Z0-9_]+\d*\.[a-zA-Z]+$/i.test(e)||/^[a-zA-Z0-9_-]+\d+$/i.test(e)||/[._][0-9]+/i.test(e)||/^[A-Z0-9_]+$/i.test(e)),u=e=>{var t;let{id:l,assets:r,currentSlideIndex:u,totalAssets:m,previous:h,next:p,sendTrackString:v,rounded:x=!1}=e;if(!r.length||u=r.length)return null;let f=r[u],g="".concat(u+1,"/").concat(m),y=0===u,b=u===m-1;return(0,a.jsxs)("figure",{id:l,className:"relative mt-4 mb-4 w-full max-w-full",children:[(0,a.jsx)("div",{className:x?"overflow-hidden rounded-[16px]":"",children:(0,a.jsx)("div",{className:"relative w-full ".concat(x?"rounded-[16px]":""),children:(0,a.jsx)("div",{className:"relative w-full ".concat(x?"rounded-[16px]":""),style:{paddingTop:"56.25%"},children:(0,a.jsx)(i.Ay,{className:"absolute top-0 left-0 h-full w-full object-cover",src:f.url||"",alt:(null==(t=f.seo)?void 0:t.altText)||"",rounded:x,width:800,height:450,sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px"})})})}),(0,a.jsx)("figcaption",{children:(0,a.jsxs)("div",{className:"w-full",children:[(0,a.jsx)("div",{className:"flex items-center pt-2",children:(0,a.jsxs)("div",{className:"relative flex w-full items-center",children:[(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)(i.Ay,{src:n.src,alt:"Slideshow",width:20,height:20,className:"h-5 w-5",rounded:!1})}),(0,a.jsx)("div",{className:"mr-2 ml-2",children:(0,a.jsx)(o.EY,{variant:"Body.S",color:"primary",children:g})}),(0,a.jsx)("div",{className:"flex-grow"}),(0,a.jsx)("button",{type:"button","aria-label":"Previous",className:"mr-[10px] flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:y,onClick:()=>{v("wxnode_slideshow_link-previous"),h()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron left",children:(0,a.jsx)(s.A,{className:"h-5 w-5 ".concat(y?"text-gray-200":"text-blue-500")})})})}),(0,a.jsx)("button",{type:"button","aria-label":"Next",className:"ml-auto flex cursor-pointer items-center justify-center border-none bg-transparent p-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:b,onClick:()=>{v("wxnode_slideshow_link-next"),p()},children:(0,a.jsx)("span",{className:"flex items-center justify-center",children:(0,a.jsx)("span",{className:"flex items-center justify-center","aria-label":"chevron right",children:(0,a.jsx)(d.A,{className:"h-5 w-5 ".concat(b?"text-gray-200":"text-blue-500")})})})})]})}),f.filename&&!c(f.filename)&&(0,a.jsx)(o.EY,{variant:"Title.S",color:"primary",elementType:"h3",className:"mt-0 mb-1",children:f.filename}),f.caption&&(0,a.jsx)(o.EY,{variant:"Body.S",color:"primary",className:"py-1 pb-0 ".concat(f.filename&&!c(f.filename)?"":"mt-0 pt-0"),children:f.caption}),(0,a.jsx)("div",{className:"border-b border-gray-200 py-2"})]})})]})},m=e=>{let{id:t,assets:l=[],allSlides:n=[],totalAssets:i=n.length||0,loadNextSlideshowPage:o,sendTrackString:s=()=>{},rounded:d=!1}=e,c=(0,r.useId)(),m=t||"slideshow-".concat(c),h=n.length>0,[p,v]=(0,r.useState)(0),[x,f]=(0,r.useState)(1),[g,y]=(0,r.useState)(1),[b,w]=(0,r.useState)(h?n.slice(0,20):l),j=(0,r.useCallback)(e=>{if(!e)return!1;let{top:t}=e.getBoundingClientRect();return t>=-100&&t{if(p-1>=0){let e=p-1?Math.ceil((p-1)/20):1;v(p-1),f(e)}},[p]),C=(0,r.useCallback)(()=>{if(p+1=g){let e=20*x;if(e-3

l.length&&x>=g){let e=20*x;e-3

{if(j(document.querySelector("#".concat(m))))switch(e.key){case"ArrowLeft":N();break;case"ArrowRight":C()}},[m,j,N,C]);return(0,r.useEffect)(()=>(document.body.addEventListener("keydown",T),()=>{document.body.removeEventListener("keydown",T)}),[T]),(0,r.useEffect)(()=>{h&&0===b.length&&w(n.slice(0,20))},[h,n,b.length]),(0,a.jsx)(u,{id:m,assets:h?b:l,currentSlideIndex:p,totalAssets:i,previous:N,next:C,sendTrackString:s,rounded:d})}},45637:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DailyForecastBlock:()=>eo,default:()=>es});var a=l(21102),r=l(71458),n=l(59432),i=l(42494),o=l(73017),s=l(34679),d=l(83037),c=l(97349);let u=function(e,t){let l=(0,c.G)();return l?l.variant(e,t):t};var m=l(34961),h=l(71535),p=l(57809),v=l(2092),x=l(90267),f=l(26464),g=l(43673),y=l(85409),b=l(23228),w=l(18365),j=l(38915),N=l(18637),C=l(14527),T=l(59946),A=l(23141),S=l(60476),M=l(6548),I=l(91743),R=l(20116),k=l(66172),_=l(59809),P=l(77201),E=l(58761),L=l(44182),F=l(66188);let D=(0,i.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Play"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M5.5 11.5A.5.5 0 0 1 5 11V5a.5.5 0 0 1 .724-.447l6 3a.5.5 0 0 1 0 .894l-6 3a.5.5 0 0 1-.224.053M6 5.809v4.382L10.382 8z"}),(0,a.jsx)("path",{d:"M8 2a6 6 0 1 1 0 12A6 6 0 0 1 8 2m0-1a7 7 0 1 0 0 14A7 7 0 0 0 8 1"})]})]})}),V=i.forwardRef((e,t)=>(0,a.jsx)(F.h,{ref:t,icon:D,...e}));V.displayName="PlayOutline";let B=(0,L.h)("DailyForecast:EmbeddedContent"),H=e=>{let{playlist:t,events:l,disableAds:r,className:n}=e;return(0,a.jsx)("div",{className:n,children:(0,a.jsx)(S.h,{playlist:t,events:l,setupParams:{ads:!r}})})},z=e=>{let{title:t,className:l}=e;return(0,a.jsx)("p",{className:l,children:t||"Records In Jeopardy From Great Lakes To Northeast"})},W=()=>(0,a.jsx)("li",{className:"col-span-full list-none py-3",children:(0,a.jsx)("div",{className:"border-b border-[#dedede]"})}),O=e=>{let{contentQueryId:t}=e,[l,r]=(0,i.useState)(!1),n=(0,i.useRef)(!0),o=(0,k.J)(),s=(0,i.useMemo)(()=>(null==o?void 0:o.user)||{},[null==o?void 0:o.user]),d=(0,p.md)(P.a),c=!!(s.isUserPremium||d),u=(0,_.z)(),m=(0,R.c)(),h="string"==typeof t?t:null==t?void 0:t.id,{data:v,error:x}=(0,T.Ay)(h?["content-by-asset",h]:null,()=>(0,A.m)(h,"en-US"),{revalidateOnFocus:!1,dedupingInterval:3e5}),f=(0,i.useMemo)(()=>{var e,t;if(!(null==v?void 0:v.length))return B.info("No content data available"),null;let l=v.find(e=>"video"===e.contentType);if(!l)return B.info("No video found in content data"),null;B.info("Found video content:",{id:l.id,contentType:l.contentType,webVideoData:l.webVideoData,url:l.url});let a=(null==(e=l.webVideoData)?void 0:e.web)||(null==(t=l.webVideoData)?void 0:t.mweb)||l.url;if(!a)return B.warn("No valid video URL found",{webVideoData:l.webVideoData,url:l.url}),null;B.info("Using video URL:",a);try{new URL(a)}catch(e){return B.error("Invalid video URL format:",a,e),null}let r=l.overrideThumbnail||l.thumbnail||(0,E.e)(a),n=l.overrideTitle||l.title,i={file:a,image:r,title:n,description:l.overrideDescription||l.description||"",custom:{jwplayer:"",adzone:"",pcollid:""}};return B.info("Created playlist item:",{file:i.file,image:i.image,title:i.title}),i},[v]),g=(0,i.useMemo)(()=>f?[f]:[],[f]),y=(0,i.useMemo)(()=>[{eventName:"play",callback:()=>{r(!0)}},{eventName:"error",callback:e=>{let{event:t,player:l}=e;B.error("JWPlayer error occurred:",{message:t.message,code:t.code,type:t.type,sourceError:t.sourceError,playlistItem:l.getPlaylistItem(),playlistIndex:l.getPlaylistIndex()})}},{eventName:"setupError",callback:e=>{let{event:t}=e;B.error("JWPlayer setup error:",{message:t.message,code:t.code,type:t.type})}},...[...M.v,...I.yW].map(e=>{let{eventName:t,callback:l}=e;return{eventName:t,callback:e=>{let{event:a,player:r}=e;"time"!==t&&B.info("[".concat(t,"]:"),a),l({event:a,player:r,isFirstPlayRef:n,user:s,trackVideoEvent:m,isMobile:u})}}})],[s,m,u]);return v||x?x?(B.error("Failed to load content:",x),null):f&&0!==g.length?l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(H,{playlist:g,events:y,disableAds:c,className:"overflow-hidden rounded-lg"}),(0,a.jsx)("div",{className:"pt-3",children:(0,a.jsx)(z,{title:null==f?void 0:f.title,className:"text-sm leading-tight font-semibold text-gray-900"})})]}),(0,a.jsx)(W,{})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)(H,{playlist:g,events:y,disableAds:c,className:"w-[140px] flex-shrink-0 overflow-hidden rounded-lg"}),(0,a.jsxs)("div",{className:"flex flex-1 flex-col justify-center gap-1",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-sm text-gray-600",children:[(0,a.jsx)(V,{className:"size-4"}),(0,a.jsx)("span",{children:"Heads-up"})]}),(0,a.jsx)(z,{title:null==f?void 0:f.title,className:"text-sm leading-tight font-semibold text-gray-900"})]})]}),(0,a.jsx)(W,{})]}):(B.info("No video content found"),null):(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-gray-100",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-t-2 border-b-2 border-gray-900"})})},U=["relativeHumidity","uvIndex","sunrise","sunset"],q=["relativeHumidity","uvIndex","moonrise","moonset","moonPhase"],Q=e=>{let{data:t,locale:l,validTime:r,embedContent:n,embeddedContentQuery:i}=e,s=(0,o.c)("DailyForecast"),d=(0,p.md)(v.Yt),c=(0,x.xP)(d),u=t.dayOrNight===C.DayOrNight.DAY,m=u?"cols-start-1":"cols-start-2";return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:m+" row-start-1 mb-4",children:[(0,a.jsxs)("div",{className:"mb-2 flex justify-between gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsxs)(f.Ay,{children:[(0,a.jsx)("span",{className:"font-bold",children:r})," | ",s(u?"day":"night")]}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(f.Ay,{variant:"Title.XL",elementType:"span",children:(0,a.jsx)(y.B,{value:t.temperature})}),(0,a.jsx)(j.WxIcon,{iconCode:t.iconCode,iconCodeExtend:t.iconCodeExtend,className:"size-11"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col justify-end gap-1",children:[(0,a.jsx)(w.W,{precipChance:t.precipChance,precipType:t.precipType,iconClassName:"mr-1"}),(0,a.jsx)(g.Z,{windSpeed:t.windSpeed,windDirectionCardinal:t.windDirectionCardinal,units:c.code,iconClassName:"mr-1",cardinalBeforeSpeed:!0,useWindIcon:!0})]})]}),(0,a.jsx)(f.Ay,{children:t.narrative})]}),(0,a.jsx)("div",{className:m+" row-start-2 mb-4",children:(0,a.jsx)(N.A,{dataPoints:t,fields:u?U:q,locale:l,columns:2,children:n&&i&&(0,a.jsx)(O,{contentQueryId:i})})})]})};var G=l(75865);let Z=(e,t,l)=>{var a,r;if(!e)return"";let n=(0,G.V)(e,t,l),i=null==(a=n.find(e=>"day"===e.type))?void 0:a.value,o=null==(r=n.find(e=>"weekday"===e.type))?void 0:r.value;return"".concat(o," ").concat(i)},Y=e=>{let{dailyForecast:t,locale:l,timeZone:r,itemIndex:n,isKoreaCscLocation:s,locationDayDate:d,embedContent:c,embeddedContentQuery:u}=e,m=(0,p.md)(v.Yt),h=(0,x.xP)(m),N=(0,o.c)("DailyForecast"),C=t.daypart[0],T=t.daypart[1],A=null!=C?C:T,S=null==A?void 0:A.wxPhraseLong,M=(null==t?void 0:t.validTimeLocal)&&Z(t.validTimeLocal,l,r),I=(0,i.useMemo)(()=>s?d===M?N("today"):M:0===n&&(null==A?void 0:A.daypartName)?null==A?void 0:A.daypartName:M,[s,n,d,null==A?void 0:A.daypartName,M,N]);return M?(0,a.jsxs)(b.As,{value:t.validTimeLocal||"",className:"border-grey-500 @container/dailyItem gap-1 overflow-hidden border-b py-3",children:[(0,a.jsx)(b.$m,{className:"items-center gap-2 p-0",iconClassName:"size-4",triggerContent:(0,a.jsxs)("div",{className:"flex w-full items-center justify-between gap-1 [&>.openHide]:group-data-[state=open]:invisible",children:[(0,a.jsx)("div",{className:"min-w-[60px]",children:(0,a.jsx)(f.Ay,{className:"whitespace-nowrap group-data-[state=open]:font-bold @max-xs/dailyItem:text-sm",children:I})}),(0,a.jsx)("div",{className:"openHide basis-[90px]",children:(0,a.jsxs)(f.Ay,{variant:"Body.M",elementType:"span",className:"whitespace-nowrap",children:[(0,a.jsx)(f.Ay,{variant:"Body.L.Bold",elementType:"span",children:(0,a.jsx)(y.B,{value:t.temperatureMax})})," / ",(0,a.jsx)(y.B,{value:t.temperatureMin})]})}),(0,a.jsxs)("div",{className:"openHide relative flex h-6 items-center",children:[(0,a.jsx)(j.WxIcon,{iconCode:null==A?void 0:A.iconCode,className:"lightBG size-7",size:"lg",iconTheme:"lightBG","aria-label":S||"Weather condition ".concat(null==A?void 0:A.iconCode)}),(0,a.jsx)(f.Ay,{variant:"Body.M",className:"min-w-[200px] pl-1.5 @max-xl/dailyItem:hidden",children:S})]}),(0,a.jsx)("div",{className:"openHide basis-[60px]",children:(0,a.jsx)(w.W,{precipChance:null==A?void 0:A.precipChance,className:"whitespace-nowrap",iconClassName:"size-3"})}),(0,a.jsx)("div",{className:"openHide basis-[76px]",children:(0,a.jsx)(f.Ay,{elementType:"div",children:(0,a.jsx)(g.Z,{windSpeed:null==A?void 0:A.windSpeed,windDirectionCardinal:null==A?void 0:A.windDirectionCardinal,units:h.code,displayMode:"directional",className:"whitespace-nowrap",iconClassName:"size-3 @md/dailyItem:size-4"})})})]})}),(0,a.jsxs)(b.ub,{className:"mt-2 block auto-cols-[1fr_1fr] gap-x-6 @md/dailyItem:grid @xl/dailyItem:gap-x-8",children:[C&&(0,a.jsx)(Q,{data:C,locale:l,validTime:M,embedContent:c,embeddedContentQuery:u}),T&&(0,a.jsx)(Q,{data:T,locale:l,validTime:M,embedContent:C?void 0:c,embeddedContentQuery:C?void 0:u})]})]}):null};var X=l(35369);let $=e=>{let{skeletonColumns:t}=e;return(0,a.jsx)(a.Fragment,{children:Array(t).fill("").map((e,t)=>(0,a.jsx)("div",{className:"border-grey-500 gap-1 border-b py-3",children:(0,a.jsx)(X.A,{skeletonClassName:"mt-0.75 w-full "+(0===t?"h-91":"h-4")})},"daily-forecast-skel-".concat(t)))})};var K=l(64566),J=l(20423);let ee=(0,i.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Location"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8 1a5.507 5.507 0 0 0-5.5 5.5 5.44 5.44 0 0 0 1.108 3.3s.15.197.174.226L8 15l4.22-4.976c.022-.027.172-.224.172-.224v-.001A5.44 5.44 0 0 0 13.5 6.5 5.507 5.507 0 0 0 8 1m0 7.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})}),et=i.forwardRef((e,t)=>(0,a.jsx)(F.h,{ref:t,icon:ee,...e}));et.displayName="LocationFilled";let el=e=>{var t;let{location:l,isLoading:r,error:n,dailyForecasts:s,locale:d,isKoreaCscLocation:c,locationTime:u,canToggleMultipleItems:p,ctaText:v,ctaLink:x,reorderModule:g,simplifiedVersion:y,embedContent:w,embeddedContentQuery:j}=e,N=(0,o.c)("DailyForecast"),C=(null==l?void 0:l.ianaTimeZone)||"America/New_York",T=(0,i.useMemo)(()=>C?Z(u,d,C):"",[d,C,u]),A=null==s||null==(t=s[0])?void 0:t.validTimeLocal,S=(0,i.useMemo)(()=>u?((e,t)=>{if(!e)return"";try{let l=new Date(e),a={hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"};if(!t)return l.toLocaleTimeString("en-US",a);return l.toLocaleTimeString(t,a)}catch(e){return console.error("Error formatting time:",e),""}})(u,d):"",[u,d]);return(0,a.jsxs)(K.Zp,{className:(0,h.cn)("not-prose @container/daily",g?"-order-1":"order-0"),"aria-label":N("dailyForecast"),"data-testid":"daily-forecast",children:[(0,a.jsxs)(f.Ay,{elementType:"h1",variant:"Title.S",className:y?"pb-4":void 0,children:[N("dailyForecast"),(null==l?void 0:l.presentationName)&&S&&!y&&(0,a.jsxs)(f.Ay,{elementType:"span",variant:"Body.S",className:"flex items-center gap-1 pt-2",children:[(0,a.jsx)(et,{className:"size-4 text-gray-500"}),(0,a.jsx)(f.Ay,{elementType:"span",variant:"Body.S",color:"primary",children:null==l?void 0:l.presentationName}),(0,a.jsxs)(f.Ay,{elementType:"span",variant:"Body.S",color:"secondary",children:["\xb7 as of ",S]})]})]}),(0,a.jsx)(K.Wu,{className:"p-0",children:n?(0,a.jsx)("div",{className:"flex h-64 items-center justify-center p-6",children:(0,a.jsx)(f.Ay,{variant:"Display.S",children:(null==n?void 0:n.message)||N("unableToLoadData")})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b.nD,{...p?{type:"multiple",defaultValue:A?[A]:void 0}:{type:"single",defaultValue:A},children:r?(0,a.jsx)($,{skeletonColumns:y?4:15}):null==s?void 0:s.map((e,t)=>(0,a.jsx)(Y,{itemIndex:t,dailyForecast:e,locale:d,timeZone:C,isKoreaCscLocation:c,locationDayDate:T,embedContent:w,embeddedContentQuery:j},e.validTimeLocal))},A),x&&v&&(0,a.jsx)("div",{className:"pt-6",children:(0,a.jsx)(m.$n,{"data-testid":"next-48-hours",asChild:!0,children:(0,a.jsx)(J.default,{href:x,children:v})})})]})})]})};var ea=l(66757),er=l(27335),en=l(9959);let ei=e=>{let{location:t,simplifiedVersion:l,initializing:r,initialError:n,embedContent:c,embeddedContentQuery:m}=e,h=(0,s.useParams)(),f=null==h?void 0:h.locale,g=(0,o.c)("DailyForecast"),{value:y}=u("reorder-current-conditions-and-forecast","control"),{effectiveLocation:b,isLocationLoading:w}=(0,d.s)({location:t}),{dailyForecasts:j,error:N,isLoading:A,isKoreaCscLocation:S,locationTime:M}=((e,t)=>{var l;let a=(0,s.useParams)(),r=null==a?void 0:a.locale,n=(0,p.md)(v.Yt),o=null==(l=(0,x.xP)(n))?void 0:l.code,d=(0,en.A)(),c="KR"===d,u=c&&(null==e?void 0:e.countryCode)==="KR",m=null==e?void 0:e.ianaTimeZone,h=(0,i.useMemo)(()=>{let e;return m?(e=new Date,(0,er.$)(new Intl.DateTimeFormat("en-US",{timeZone:m,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1,timeZoneName:"longOffset"}).format(new Date(e)))):""},[m]),{data:f,error:g,isLoading:y}=(0,T.Ay)(e?["get-daily-forecast",e.geocode,t?C.ForecastDuration.THREE_DAY:C.ForecastDuration.FIFTEEN_DAY,o,r,c?d:void 0]:null,e=>{let[t,l,a,r,n,i]=e;return(0,ea.v1)({geocode:l,units:r,duration:a,language:n,cscCountryCode:i})},{revalidateOnFocus:!0,dedupingInterval:6e4});return{dailyForecasts:(0,i.useMemo)(()=>t?null==f?void 0:f.slice(0,4):f,[f,t]),error:g,isLoading:y,isKoreaCscLocation:u,locationTime:h}})(b,l);return(0,a.jsx)(el,{location:b,isLoading:r||A||w||!(null==j?void 0:j.length),error:n||N,dailyForecasts:j,locale:f,isKoreaCscLocation:S,locationTime:M,canToggleMultipleItems:!l,ctaText:l?g("bottomCtaButton"):void 0,ctaLink:l?"/weather/tenday/l/".concat((null==b?void 0:b.placeId)||(null==h?void 0:h.locId)):void 0,reorderModule:"treatment"===y,simplifiedVersion:l,embedContent:c,embeddedContentQuery:m})},eo=e=>{let{locationProvider:t,locationEntry:l,simplifiedVersion:i,embedContent:o,embeddedContentQuery:s}=e,d="specified"===t,{specifiedLocationData:c,specifiedLocationError:u,isSpecifiedLocationLoading:m}=(0,n.v)(d?l:null),h=d&&c&&l?(0,r.I)(c):void 0;return(0,a.jsx)(ei,{location:h,simplifiedVersion:null!=i&&i,initializing:d&&m,initialError:d?u:void 0,embedContent:null!=o?o:void 0,embeddedContentQuery:null!=s?s:void 0})},es=eo},47460:(e,t,l)=>{"use strict";l.d(t,{D:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Snowflake"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",children:[(0,a.jsx)("path",{d:"M8 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13A.5.5 0 0 1 8 1"}),(0,a.jsx)("path",{d:"M5.896 1.896a.5.5 0 0 1 .707 0L8 3.293l1.396-1.397a.5.5 0 1 1 .707.708L8 4.707 5.896 2.604a.5.5 0 0 1 0-.708M5.896 13.854a.5.5 0 0 0 .707 0L8 12.457l1.396 1.397a.5.5 0 0 0 .707-.708L8 11.043l-2.104 2.103a.5.5 0 0 0 0 .708M14.062 4.5a.5.5 0 0 1-.183.683l-11.259 6.5a.5.5 0 0 1-.5-.866l11.259-6.5a.5.5 0 0 1 .683.183"}),(0,a.jsx)("path",{d:"M12.234 3.126a.5.5 0 0 1 .353.613l-.51 1.907 1.907.512a.5.5 0 1 1-.26.965l-2.873-.77.77-2.873a.5.5 0 0 1 .613-.354M1.878 9.105a.5.5 0 0 0 .354.612l1.908.511-.512 1.908a.5.5 0 1 0 .966.259l.77-2.874-2.873-.77a.5.5 0 0 0-.613.354M14.062 11.5a.5.5 0 0 1-.683.183L2.12 5.183a.5.5 0 1 1 .5-.866l11.259 6.5a.5.5 0 0 1 .183.683"}),(0,a.jsx)("path",{d:"M14.337 9.23a.5.5 0 0 1-.353.612l-1.908.511.511 1.908a.5.5 0 1 1-.966.259l-.77-2.874 2.874-.77a.5.5 0 0 1 .612.354M3.982 3.251a.5.5 0 0 0-.354.613L4.14 5.77l-1.908.512a.5.5 0 1 0 .259.965l2.873-.77-.77-2.873a.5.5 0 0 0-.612-.354"})]})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="Snowflake"},48015:(e,t,l)=>{"use strict";l.d(t,{N:()=>i});var a=l(21102),r=l(42494),n=l(71535);let i=(0,r.memo)(e=>{let{value:t,className:l,roundValue:r}=e,i=r?function(e){return e%5>=2.5?5*parseInt(String(e/5),10)+5:5*parseInt(String(e/5),10)}(t):t;return(0,a.jsx)("span",{"data-testid":"PercentageValue",className:(0,n.cn)(l),children:Number.isFinite(i)&&i>=0?"".concat(i,"%"):"--"})})},48443:(e,t,l)=>{"use strict";l.r(t),l.d(t,{TaboolaBlock:()=>x,TaboolaBlockView:()=>f,default:()=>g});var a=l(21102),r=l(42494),n=l(34679),i=l(25090),o=l(89131),s=l(71535),d=l(80381),c=l(66172),u=l(57809),m=l(77201),h=l(15007);let p=function(){let{user:e}=(0,c.J)(),[t,l]=(0,r.useState)(!1),a=(0,u.md)(h.W);return(0,r.useEffect)(()=>{a&&l((()=>{try{var e,t,l,a;if(void 0!==(null==(e=window)?void 0:e.DprSdk)){let e=null==(l=window)||null==(t=l.DprSdk)?void 0:t.getFeatureFlags();return null==(a=null==e?void 0:e.taboola)||a}return!0}catch(e){return!0}})())},[a]),t&&!(null==e?void 0:e.isUserPremium)},v=(()=>{let e="",t=!1;return()=>({pushTaboolaCommand:(0,r.useCallback)((l,a,r)=>{window._taboola=window._taboola||[],a!==e&&(""===e||t||(window._taboola.push({notify:"newPageLoad"}),t=!0),e=a,t=!1),window._taboola.push({[r]:"auto",url:a}),window._taboola.push(l),window._taboola.push({flush:!0})},[])})})(),x=e=>{let{showTaboola:t=!0,...l}=e,{user:r}=(0,c.J)(),n=(0,u.md)(m.a),i=p();return r.isUserPremium||n||!i||!t?null:(0,a.jsx)(f,{...l})},f=e=>{let{taboolaId:t,taboolaUiMode:l,placementName:c,title:u="",pageType:m,taboolaType:h,loaderUrl:p}=e,x=(0,r.useRef)(null),[f,g]=(0,r.useState)("pending"),y=(0,n.usePathname)(),{isTaboolaLoaded:b}=(e=>{let[t,l]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{if(t)return;if(document.getElementById("tb_loader_script"))return void l(!0);window._taboola=window._taboola||[],window.performance&&"function"==typeof window.performance.mark&&window.performance.mark("tbl_ic");let a=document.createElement("script");a.src=e,a.id="tb_loader_script",a.async=!0,a.onload=()=>{l(!0)},a.onerror=()=>{console.error("Failed to load Taboola script.")},document.body.appendChild(a)},[t,e]),{isTaboolaLoaded:t}})(p),{pushTaboolaCommand:w}=v(),j=(0,r.useMemo)(()=>{let e=(0,i.j)();return"".concat(e).concat(y||"")},[y]),N="empty"!==f,C=(0,r.useMemo)(()=>{let e="taboola-below-content-thumbnails---video"===t||"taboola-below-content-thumbnails-video"===t;return{container:N?"generic"!==h?"wx-media-object gradient-overlay thirdparty-feed border":e?"gap-2 py-0 md:rounded-md max-sm:rounded-none":"gap-2 py-5":"hidden",headerContainer:e?"mx-4 px-0 pt-6 max-sm:border-t max-sm:border-gray-200":"px-4",header:e?"text-[20px] font-semibold":"text-xl font-semibold",contentContainer:"z-40 px-4"}},[t,h,N]);return((0,r.useEffect)(()=>{b&&"pending"===f&&w({mode:l,container:t,placement:c,target_type:"mix"},j,m)},[b,f,w,t,l,c,j,m]),(0,r.useEffect)(()=>{let e=x.current;if(!e||!b)return;let t=new MutationObserver((t,l)=>{try{e.hasChildNodes()?(g("populated"),l.disconnect()):"pending"!==f&&(g("empty"),l.disconnect())}catch(e){console.warn("Error in TaboolaBlock content observer",e)}});return t.observe(e,{childList:!0}),e.hasChildNodes()&&(g("populated"),t.disconnect()),()=>t.disconnect()},[b,f]),b)?"invisible"===h?(0,a.jsx)("div",{id:t,ref:x}):(0,a.jsxs)("section",{className:"@container",children:[(0,a.jsx)(o.DebugCollector,{componentName:"TaboolaBlock",data:{props:{taboolaId:t,taboolaUiMode:l,placementName:c,title:u,taboolaType:h,pageType:m,pageUrl:j,taboolaContentState:f,shouldShow:N}}}),"generic"===h?(0,a.jsxs)(d.Zp,{className:C.container,children:[u&&N&&(0,a.jsx)(d.aR,{className:C.headerContainer,children:(0,a.jsx)("h2",{className:C.header,children:u})}),(0,a.jsx)(d.Wu,{className:(0,s.cn)(C.contentContainer),children:(0,a.jsx)("div",{id:t,className:"bg-none",ref:x})})]}):(0,a.jsxs)("div",{className:C.container,children:[u&&N&&(0,a.jsx)("header",{"aria-label":"Taboola",className:"panel-heading mb-2",children:(0,a.jsx)("h2",{"data-testid":"taboolaHeading",className:"text-lg font-medium",children:u})}),(0,a.jsx)("div",{id:t,className:"flex min-h-[300px] w-full items-center justify-center",ref:x})]})]}):null},g=x},49422:(e,t,l)=>{"use strict";l.d(t,{Z:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Wind"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M8.333 4.626C8.575 3.757 9.41 3 10.648 3c1.497 0 2.39 1.095 2.39 2.165 0 1.069-.893 2.164-2.39 2.164H4.389c-.256 0-.463-.188-.463-.42s.207-.42.463-.42h6.259c.91 0 1.463-.649 1.463-1.324 0-.676-.552-1.325-1.463-1.325-.764 0-1.265.45-1.416.991-.063.225-.315.361-.563.304s-.398-.285-.336-.51M2 9.09c0-.232.207-.42.463-.42h9.148C13.107 8.67 14 9.766 14 10.835S13.107 13 11.61 13c-1.334 0-2.211-.882-2.364-1.694-.043-.228.127-.445.379-.484s.491.115.534.343c.082.435.598.996 1.452.996.91 0 1.462-.65 1.462-1.326 0-.675-.552-1.325-1.462-1.325H2.463C2.207 9.51 2 9.322 2 9.09",clipRule:"evenodd"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="Wind"},49709:(e,t,l)=>{"use strict";l.d(t,{m:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Sunrise"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("g",{fill:"currentColor",children:(0,a.jsx)("path",{d:"M14.499 13.5a.5.5 0 1 1 0 1H1.5a.5.5 0 0 1 0-1zM3 11a.5.5 0 0 1 0 1H1.5a.5.5 0 1 1 0-1zM8 9a3 3 0 0 1 2.958 2.502c.046.272-.183.497-.459.497s-.493-.227-.562-.494A2 2 0 0 0 8 10a2 2 0 0 0-1.937 1.505c-.069.267-.287.494-.563.494s-.504-.225-.459-.497A3 3 0 0 1 8 9M14.5 11a.5.5 0 0 1 0 1H13a.5.5 0 1 1 0-1zM3.05 7.05a.5.5 0 0 1 .708 0l1.045 1.046a.5.5 0 0 1-.707.707L3.05 7.757a.5.5 0 0 1 0-.707M12.242 7.05a.5.5 0 0 1 .707.707l-1.046 1.046a.5.5 0 0 1-.707-.707zM7.605 2.397a.56.56 0 0 1 .79 0l1.753 1.753a.5.5 0 0 1-.706.706L8.5 3.917v3.585a.5.5 0 0 1-1 0V3.917l-.942.939a.5.5 0 0 1-.705-.706z"})})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="Sunrise"},49820:(e,t,l)=>{"use strict";l.d(t,{D:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Arrow Up"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.353 6.647a.499.499 0 0 0 .705.706L7.5 3.915V13.5a.5.5 0 0 0 1 0V3.915l3.443 3.438a.499.499 0 0 0 .705-.706l-3.94-3.94a1 1 0 0 0-1.415 0z"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="ArrowUp"},50143:(e,t,l)=>{"use strict";l.d(t,{K:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"humidity"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{fillRule:"evenodd",d:"M8 13a3.5 3.5 0 0 0 3.5-3.5c0-.59-.276-1.34-.701-2.13-.309-.573-.637-1.068-.907-1.475a26 26 0 0 1-.267-.406 77 77 0 0 1-.564-.9c-.151-.244-.281-.453-.502-.796a43 43 0 0 1-.556-.885c-.14.229-.318.52-.55.883-.238.37-.371.587-.538.86-.13.212-.28.456-.515.832q-.159.25-.35.531c-.257.382-.549.816-.841 1.348C4.78 8.139 4.5 8.886 4.5 9.5A3.5 3.5 0 0 0 8 13m0 1a4.5 4.5 0 0 0 4.5-4.5c0-1.486-1.16-3.231-1.797-4.19q-.136-.206-.234-.358a80 80 0 0 1-.552-.88c-.16-.258-.3-.484-.518-.821-.243-.376-.426-.674-.57-.91-.425-.693-.514-.837-.829-.837s-.395.133-.814.822c-.144.237-.328.54-.575.925-.24.373-.382.606-.556.889-.131.214-.28.457-.503.812-.078.125-.18.276-.296.449C4.606 6.37 3.5 8.017 3.5 9.5A4.5 4.5 0 0 0 8 14",clipRule:"evenodd"}),(0,a.jsx)("path",{d:"M12.5 9.5a4.48 4.48 0 0 1-1.107 2.957L4.845 6.025c.283-.443.545-.814.707-1.073.517-.825.638-1.045 1.059-1.701.966-1.507.967-1.747 1.389-1.747s.438.259 1.399 1.747c.413.64.55.883 1.07 1.701S12.5 7.804 12.5 9.5"})]})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="Humidity"},51554:(e,t,l)=>{"use strict";l.r(t),l.d(t,{DynamicMapBlock:()=>B,default:()=>H});var a=l(21102),r=l(59432),n=l(71458),i=l(34679),o=l(83037),s=l(42494),d=l(59946),c=l(73017),u=l(57809),m=l(32201),h=l(33176),p=l(90267),v=l(2092),x=l(94977),f=l(9959);let g={width:568,height:320},y={sm:g,lg:{width:800,height:600}},b={0:{title:"Local Radar",layer:"twcRadarHcMosaic",style:"light",key:"radar",frames:1,frameRatio:2,attributionColor:"white"},1:{title:"Rain is in View",layer:"radarFcstV2",style:"light",key:"rainView",frames:13,frameRatio:2,attributionColor:"white"},2:{title:"Snow is in View",layer:"radarFcstV2",style:"light",key:"snowView",frames:12,frameRatio:2,attributionColor:"white"},3:{title:"Wintry Mix is in View",layer:"radarFcstV2",style:"light",key:"mixView",frames:13,frameRatio:2,attributionColor:"white"},4:{title:"Storms in View",layer:"radarFcstV2",style:"light",key:"stormView",frames:13,frameRatio:2,attributionColor:"white"},5:{title:"Lightning in View",layer:"radarFcstV2",vector:"600",style:"light",key:"lightningView",frames:13,frameRatio:2,attributionColor:"white"}};var w=l(80387),j=l(95121),N=l(79723);let C=(e,t)=>{let l=(0,N.W)(t);return Number(e.toFixed(l))},T=(e,t,l,a,r,n)=>{var i,o,s,d;let c;return"fts"===e&&0===l||"ts"===e&&l===t.ts.length-1?n:("fts"===e&&(c=(null!=(s=null==(i=t.fts)?void 0:i[l])?s:0)*1e3),"ts"===e&&(c=(null!=(d=null==(o=t.ts)?void 0:o[l])?d:0)*1e3),(0,w.P)({date:c,locale:a,timeZone:r,minutes:!0}))};var A=l(82915);let S={revalidateOnFocus:!1,dedupingInterval:6e4},M=function(e,t){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"sm",a=(0,c.c)("DynamicMap"),r=(0,u.md)(v.Yt),n=((0,p.xP)(r)||p.AF).code,i=(0,f.A)(),{ianaTimeZone:o,countryCode:w,geocode:N}=e||{},{data:C,isLoading:M,error:I}=(0,d.Ay)(N?["get-wwir-forecaset",N,n,t]:null,e=>{let[t,l,a,r]=e;return(0,m.U)({geocode:l,units:a,language:r})},S),{data:R,isLoading:k,error:_}=(0,d.Ay)(N?"get-dynamic-maps-tile-series":null,()=>(0,h.M)(),S),P=null==C?void 0:C.forecast,E=(0,s.useMemo)(()=>{var e;let t=null!=(e=null==P?void 0:P.overall_type)?e:0;return{...P,phrase:(null==P?void 0:P.phrase)||"",product:b[t]}},[P]),{data:L,isLoading:F}=(0,A.r)({geoCode:(null==e?void 0:e.geocode)||null,insightType:x.InsightType.PRECIP_INSIGHT,locale:t,par:"twc",cscCountryCode:i}),D=(null==L?void 0:L.length)?6:9,V=a("now"),B=(0,s.useMemo)(()=>N?((e,t,l)=>{if(!e)return[];let{mapImageSize:a,geocode:r,lod:n,locale:i,timeZone:o,countryCode:s,samsungMA:d,nowText:c}=l,u=t.product,{width:m,height:h}=y[a]||g,[p="",v=""]=r.split(",")||[],x=(0,j.S)(p,n),f=(0,j.S)(v,n),b=((e,t)=>{var l,a;let{layer:r,frameRatio:n,frames:i}=t,o=e[r],s=(null==(a=o.series)||null==(l=a[0])?void 0:l.fts)||null,d=o.series||[];if(s){let e=s.slice().reverse(),t=i>1?e.slice(0,2*i):e.slice(0,1);return n&&(t=((e,t)=>{let l=[];for(let a=0;a{let{geocode:t,lod:l}=e,r=(0,s.useMemo)(()=>{if(!(t&&l))return;let e=function(e,t){let[l="",a=""]=e.split(",")||[],r=parseFloat(l),n=parseFloat(a),i=C(r,t),o=C(n,t),s=r-i;return{dx:Math.abs(111.11*Math.cos((r-s/2)*Math.PI/180)*(n-o))/320*100,dy:Math.abs(111.11*s)/320*100}}(t,l),a={w:20,h:20};return{left:"calc(".concat(50+e.dx,"% - ").concat(a.w/2,"px)"),top:"calc(".concat(50-e.dy,"% - ").concat(a.h,"px)")}},[t,l]);return r?(0,a.jsx)("div",{className:"absolute h-[20px] w-[20px] rounded-full border-2 border-white bg-[#1944DE] opacity-95","data-testid":"LocationPin",style:r}):null},L=e=>{let{mapImages:t,frame:l}=e,r="absolute h-full w-full rounded-lg bg-[#9fcbf9]";return t.length?t.map((e,t)=>(0,a.jsx)("div",{className:"".concat(r," bg-cover bg-center opacity-0 ").concat(l===t?"!opacity-100":""),style:{backgroundImage:"url(".concat(e.url,")")}},e.id)):(0,a.jsx)("div",{className:r})};var F=l(93848);let D=e=>{let{mapImages:t,geocode:l,lod:r=7,wwir:n,ctaLink:i,isLoading:o,enableAnimation:d=!0,enableLocationPin:u=!0,enableWWIRPhrase:m=!0,showMapBoxAttribution:h=!0,title:p,animationTiming:v=500}=e,[x,f]=(0,s.useState)(0),g=(0,c.c)("DynamicMap"),{frames:y}=n.product,b=(0,s.useMemo)(()=>t.length{let e;if(!(d&&b.length>1))return void f(0);let t=setTimeout(()=>{e=setInterval(()=>{f(e=>(e+1)%b.length)},v)},1500);return()=>{clearTimeout(t),clearInterval(e)}},[b.length,d,v]);let j=n.product.attributionColor,N=i?k.default:"div";return(0,a.jsx)(R.Zp,{className:"@container/dynamicMap","aria-label":"".concat(p||g("radar")," - ").concat(n.phrase),"data-testid":"DynamicMap",children:(0,a.jsxs)(N,{href:i||"",className:"relative block h-80 @md/dynamicMap:h-100",children:[(0,a.jsx)(L,{mapImages:b,frame:x}),u&&t.length>0&&(0,a.jsx)(E,{geocode:l,lod:r}),o&&(0,a.jsx)(F.a,{className:"absolute top-1/2 left-1/2 -translate-1/2",variant:"white",size:"lg",label:"Loading"}),(0,a.jsxs)("div",{className:"absolute top-0 flex w-full items-start justify-between p-3",children:[(null==w?void 0:w.time)?(0,a.jsx)(_.Ay,{variant:"Body.S",className:"justify-center rounded-lg bg-[rgba(37,36,34,0.8)] px-3 py-2 text-white","data-testid":"DynamicMapTimeStamp",children:w.time}):(0,a.jsx)("span",{}),h&&(0,a.jsx)(P.A,{position:"top-right",color:j,className:"relative"})]}),(0,a.jsxs)("div",{className:(0,I.cn)("absolute bottom-0 flex w-full items-end justify-between gap-1 p-3","@max-md/dynamicMap:flex-col @max-md/dynamicMap:items-start"),children:[(0,a.jsx)("span",{}),m&&n.phrase&&(0,a.jsx)(_.Ay,{variant:"Body.S",className:"max-w-[300px] items-center rounded-xl bg-white/80 px-3 py-2 shadow-lg","data-testid":"DynamicMapWeatherPhrase",children:n.phrase})]})]})})},V=e=>{var t;let{location:l,initializing:r,initialError:n,enableLocationPin:s,enableWWIRPhrase:d,enableAnimation:c,mapImageSize:u,showMapBoxAttribution:m,title:h}=e,p=null==(t=(0,i.useParams)())?void 0:t.locale,{effectiveLocation:v,isLocationLoading:x}=(0,o.s)({location:l}),{loadingData:f,error:g,wwir:y,geocode:b,lod:w,ctaUrl:j,mapImages:N,ctaText:C,isDashboard:T}=M(v,p,null!=u?u:"sm");return n||g?null:(0,a.jsx)(D,{isLoading:r||x||f,enableLocationPin:null!=s?s:void 0,enableWWIRPhrase:null!=d?d:void 0,enableAnimation:null!=c?c:void 0,showMapBoxAttribution:null!=m?m:void 0,title:null!=h?h:void 0,wwir:y,geocode:b,lod:w,ctaLink:j,mapImages:N,ctaText:C,isDashboard:T})},B=e=>{let{enableLocationPin:t,enableWWIRPhrase:l,enableAnimation:i,locationEntry:o,locationProvider:s,mapImageSize:d,showMapBoxAttribution:c,title:u}=e,m="specified"===s,{specifiedLocationData:h,specifiedLocationError:p,isSpecifiedLocationLoading:v}=(0,r.v)(o),x=m&&h&&o?(0,n.I)(h):void 0;return(0,a.jsx)(V,{location:x,initializing:m&&v,initialError:m?p:void 0,enableLocationPin:t,enableWWIRPhrase:l,enableAnimation:i,mapImageSize:d,showMapBoxAttribution:c,title:u})},H=B},51870:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHourlyAirQualityForecastUrlConfig=function(e){let{geocode:t,language:l,scale:a,duration:r}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/wx/globalAirQuality/forecast/hourly/".concat(r),query:{geocode:t,language:l,scale:a,format:"json",apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},52166:(e,t,l)=>{"use strict";t.p_=i;let a=l(56438),r=l(40919),n=l(67330);async function i(e){let t=(0,n.getEmailPreferencesSetUrlConfig)(),l=(0,a.urlFrom)(t),i=JSON.stringify(function(e){let{subscriptions:t,email:l,mParticleId:a}=e,r={};return t&&(r.subscriptions=t),l&&(r.email=l),a&&(r.mParticleId=a),r}(e)),o=await fetch(l,{method:"PUT",credentials:"include",headers:{"Content-Type":"application/json"},body:i});if(200===o.status||400===o.status){let e=await o.json();return console.log({json:e}),e}return(0,r.handleFetchResponse)(o)}},54845:(e,t,l)=>{"use strict";l.r(t),l.d(t,{VideoBlock:()=>j,default:()=>N});var a=l(21102),r=l(42494),n=l(59946),i=l(60476),o=l(58761),s=l(6548),d=l(91743),c=l(20116),u=l(89131),m=l(13501),h=l(71535),p=l(66172),v=l(59809),x=l(57809),f=l(77201),g=l(44182);let y={src:"https://s.w-x.co/wxnext/video-placeholder.jpg"},b=(0,g.h)("video:events"),w=async e=>{let t=await fetch(e);if(!t.ok)throw Error("Failed to fetch video data from ".concat(e));return t.json()},j=e=>{var t;let{file:l,image:g,title:j,description:N,tracks:C=[],playlist:T,custom:A={},playerSettings:S,descriptionAttributes:M,videoReference:I,playlistsReference:R=[]}=e,k="video-player-".concat((0,r.useId)()),_=(0,r.useRef)(!0),P=(0,r.useRef)(null),E=(null==(t=(0,p.J)())?void 0:t.user)||{},L=(0,x.md)(f.a),F=E.isUserPremium||L,D=(0,v.z)(),V=null;I&&("string"==typeof I?V="/api/payload/videos/".concat(I):"object"==typeof I&&(V=(null==I?void 0:I.id)?"/api/payload/videos/".concat(I.id):null));let{data:B,error:H}=(0,n.Ay)(V,w,{revalidateOnFocus:!1,dedupingInterval:3e5}),z=(0,c.c)(),W=(0,r.useMemo)(()=>{let e=[];return!Array.isArray(C)&&(null==C?void 0:C.file)?e.push(C):Array.isArray(C)&&e.push(...C),e},[C]),O=(0,r.useMemo)(()=>B&&Object.keys(B).length>0||I&&"string"!=typeof I,[B,I]),U=(0,r.useMemo)(()=>B&&Object.keys(B).length>0?B:I&&"string"!=typeof I?I:null,[B,I]),q=(0,r.useMemo)(()=>{var e,t,a,r,n,i,o,s,d;return O&&(null==U||null==(t=U.content)||null==(e=t.videoFormatUrls)?void 0:e.length)>0?(null==U||null==(r=U.content)||null==(a=r.defaultFormat)?void 0:a.url)?null==U||null==(d=U.content)||null==(s=d.defaultFormat)?void 0:s.url:null==U||null==(o=U.content)||null==(i=o.videoFormatUrls)||null==(n=i[0])?void 0:n.url:l},[O,U,l]),Q=(0,r.useMemo)(()=>{if(O){var e,t,l;return(null==U||null==(e=U.content)?void 0:e.keyFrameImage)||(null==U||null==(l=U.seo)||null==(t=l.image)?void 0:t.url)||g}return g},[O,U,g]),G=(0,r.useMemo)(()=>O&&(null==U?void 0:U.title)||j,[O,U,j]),Z=(0,r.useMemo)(()=>{if(O&&(null==U?void 0:U.description)){var e,t,l;return(null==(l=U.description.root)||null==(t=l.children[0])||null==(e=t.children[0])?void 0:e.text)||N}return N},[O,U,N]),Y=(0,r.useMemo)(()=>{if(P.current&&JSON.stringify({file:q,image:Q,title:G,description:Z,tracks:W,playlist:T,custom:A})===JSON.stringify(P.current))return P.current;let e=Q||(q?(0,o.e)(q):null)||y.src,t={file:q,image:e,title:G,description:Z,tracks:W,custom:A};return P.current=t,t},[q,Q,G,Z,W,T,A]),X=(0,r.useMemo)(()=>{var e,t,l,a;let r=[];return T&&(r=((e,t)=>{var l;if(!(null==t?void 0:t.file))return[];if("string"==typeof e)return(null==t?void 0:t.file)?[t]:[];let a=Array.isArray(e)?e:[];return(null==t?void 0:t.file)&&(!(a.length>0)||(null==(l=a[0])?void 0:l.file)!==(null==t?void 0:t.file))?[t,...a.filter(e=>e.file!==t.file)]:a})(T,Y)||[]),R&&R.length,O&&(null==U||null==(e=U.content)?void 0:e.playlists)&&Array.isArray(null==U||null==(t=U.content)?void 0:t.playlists)&&(null==U||null==(a=U.content)||null==(l=a.playlists)||l.length),r.length>0?r:[Y]},[T,Y,R,U,O]);if((0,r.useEffect)(()=>{_.current=!0},[X]),I&&"string"==typeof I&&!B&&!H)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-gray-100",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-t-2 border-b-2 border-gray-900"})});if(H)return(0,a.jsx)("div",{className:"flex h-32 items-center justify-center bg-red-100 text-red-800",children:(0,a.jsx)("span",{children:"Failed to load video data"})});if(!q)return null;let $=[...s.v,...d.yW].map(e=>{let{eventName:t,callback:l}=e;return{eventName:t,callback:e=>{let{event:a,player:r}=e;"time"!==t&&b.info("[".concat(t,"]:"),a),l({event:a,player:r,isFirstPlayRef:_,user:E,trackVideoEvent:z,isMobile:D})}}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.DebugCollector,{componentName:"VideoBlock",data:{props:{file:l,image:g,title:j,description:N,tracksCount:(0,m.J)(W),hasPlaylist:!!T&&T.length>0,custom:A},state:{videoObject:Y,playlistItems:X.length,isFirstPlay:_.current,events:$.map(e=>e.eventName)},performance:{}}}),(0,a.jsx)("div",{className:"overflow-hidden rounded-lg",children:(0,a.jsx)(i.h,{playlist:X,events:$,setupParams:{ads:!F}},k)}),(null==S?void 0:S.showDescriptions)&&(0,a.jsx)("p",{...M,className:(0,h.cn)("my-2 text-sm",null==M?void 0:M.className),children:Y.title})]})},N=j},56286:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunV3WeatherInsightsUrlConfig=function(e){let{geocode:t,placeId:l,postalKey:r,insightType:n=a.InsightType.ALL,units:i,language:o,par:s,cscCountryCode:d}=e,c={format:"json",units:i,language:o,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061",insightType:n,par:s,cscCountryCode:d};return t?c.geocode=t:l?c.placeid=l:r&&(c.postalKey=r),{host:"api.weather.com",protocol:"https",pathname:"/v3/insights",query:c}};let a=l(94977)},58239:(e,t,l)=>{"use strict";l.d(t,{o:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Uv Index"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"m8.022 15.021-1.748-2.94-3.29.932.931-3.284L.977 8.01l2.936-1.72-.924-3.236 3.278.874L8.022.977l1.7 2.949 3.255-.861-.868 3.226 2.853 1.717-2.854 1.718L12.98 13l-3.265-.918zm1.216-4.112 2.325.654-.615-2.306 2.075-1.249-2.075-1.248.615-2.287-2.325.615-1.23-2.132L6.74 5.088l-2.305-.615.653 2.287-2.132 1.248 2.132 1.25-.653 2.305 2.305-.654 1.268 2.133z",clipRule:"evenodd"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="UvIndex"},58761:(e,t,l)=>{"use strict";l.d(t,{e:()=>r});let a="/placeholder-video-thumbnail.jpg",r=e=>{if(!e)return a;for(let t of[/(?:cdn\.jwplayer\.com\/(?:videos|manifests|previews)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:content\.jwplatform\.com\/(?:videos|manifests)\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/,/(?:players\.jwplayer\.com\/preview\/)([a-zA-Z0-9]+)(?:-[a-zA-Z0-9]+)?/]){let l=e.match(t);if(l&&l[1])return"https://cdn.jwplayer.com/v2/media/".concat(l[1],"/poster.jpg")}return a}},59432:(e,t,l)=>{"use strict";l.d(t,{v:()=>i});var a=l(59946),r=l(11776),n=l(34679);let i=e=>{let t=(0,n.useParams)(),l=null==t?void 0:t.locale,{data:i,error:o,isLoading:s}=(0,a.Ay)(e?["/v3/location/point",e,l]:null,()=>e?(0,r.PT)(e,l):null,{revalidateOnFocus:!1,dedupingInterval:3e5});return{specifiedLocationData:i,specifiedLocationError:o,isSpecifiedLocationLoading:s}}},59488:(e,t,l)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getHourlyAirQualityForecast=o,t.transformHourlyAirQualityForecast=s;let a=l(51870),r=l(56438),n=l(40919),i=l(31082);async function o(e){let t=(0,a.getHourlyAirQualityForecastUrlConfig)(e),l=(0,r.urlFrom)(t),i=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return s(await (0,n.handleFetchResponse)(i))}function s(e){let t=e.globalairquality,l={validTimeGmt:t.validTimeGmt,airQualityIndex:t.airQualityIndex,airQualityCategory:t.airQualityCategory,airQualityCategoryIndex:t.airQualityCategoryIndex,airQualityCategoryIndexColor:t.airQualityCategoryIndexColor,primaryPollutant:t.primaryPollutant},a=(0,i.createTransformer)((e,l)=>{var a,r;let n=e=>{var a,r,n,i;let o=t.pollutants[e];if(o)return{name:o.name,phrase:o.phrase,amount:null!=(a=o.amount[l])?a:0,unit:o.unit,category:null!=(r=o.category[l])?r:"",categoryIndex:null!=(n=o.categoryIndex[l])?n:0,index:null!=(i=o.index[l])?i:0}};return{...e,pollutants:{CO:n("CO"),NO2:n("NO2"),O3:n("O3"),PM10:n("PM10"),PM2_5:n("PM2.5"),SO2:n("SO2")},messages:{general:null!=(a=t.messages.General[l])?a:{title:"",text:""},sensitiveGroup:null!=(r=t.messages["Sensitive Group"][l])?r:{title:"",text:""}}}})(l);return{latitude:t.latitude,longitude:t.longitude,source:t.source,disclaimer:t.disclaimer,expireTimeGmt:t.expireTimeGmt,forecast:a}}},59781:(e,t,l)=>{"use strict";l.d(t,{r:()=>r});var a=l(27335);let r=e=>e?(0,a.$)(e).replace(/([+-]\d{2}:?\d{2})$/,"+0000"):""},60476:(e,t,l)=>{"use strict";l.d(t,{h:()=>h});var a=l(21102),r=l(42494),n=l(71535),i=l(2346);let o={autoplayadsmuted:!1,client:"googima",vpaidcontrols:!0};var s=l(44182),d=l(98132),c=l.n(d),u=l(94456);let m=(0,s.h)("JWPlayer"),h=e=>{var t,l;let{playlist:s,options:d={},setupParams:h={},events:p=[],className:v="",placeHolder:x}=e,f="player-".concat((0,r.useId)()),{playerId:g="IdNDrRWQ"}=h,y=(0,r.useMemo)(()=>({playlist:s,...(e=>{let{ads:t=!0,showDescriptions:l=!0}=e;return{aspectratio:"16:9",autostart:!0,backgroundLoading:!0,width:"100%",mute:!1,autoPause:{pauseAds:!0,viewability:!0},captions:{backgroundOpacity:50,fontSize:14},...t?{advertising:o}:{},...l?{displaytitle:!0,displaydescription:!0}:{displaytitle:!1,displaydescription:!1}}})({...h}),...d}),[s,h,d]),b=(0,r.useRef)(null),w=(0,r.useRef)(!1),j=null==s||null==(t=s[0])?void 0:t.file,[N,C]=(0,r.useState)(j?"loading":"error");(0,r.useEffect)(()=>{if(w.current||!("jwplayer"in window)||"ready"!==N||!j)return;let e=window.jwplayer(f);b.current=e,w.current=!0,m.info("initialized player"),e.setup(y),p.forEach(t=>{let{eventName:l,callback:a}=t;e.on(l,t=>{a({event:t,player:e})}),m.lifecycle("Registered event handler for ".concat(l))})},[y,p,j,f,N]),(0,r.useEffect)(()=>()=>{if(b.current)try{b.current.remove(),b.current=null,w.current=!1}catch(e){m.error("Error removing JW Player",e)}},[]);let T=x?null==s||null==(l=s[0])?void 0:l.image:"";return(0,a.jsxs)("div",{children:[j&&(0,a.jsx)(i.default,{src:"https://cdn.jwplayer.com/libraries/".concat(g,".js"),onLoad:()=>C("ready"),onReady:()=>C("ready"),onError:()=>C("error")}),(0,a.jsxs)("div",{className:(0,n.cn)("relative overflow-hidden",c().jwplayerContainer,v),children:[T&&(0,a.jsx)(u.Ay,{fetchPriority:"high",className:"absolute aspect-video w-full",src:T,alt:""}),"loading"===N&&j?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black",children:(0,a.jsx)("div",{className:"h-8 w-8 animate-spin rounded-full border-t-2 border-b-2 border-white"})}):"error"===N?(0,a.jsx)("div",{className:"flex aspect-video w-full items-center justify-center bg-black text-white",children:"Failed to initialize video player"}):(0,a.jsx)("div",{id:f,className:"aspect-video w-full bg-black"})]})]})}},62892:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BlueskyBlock:()=>d,default:()=>c});var a=l(21102),r=l(42494);let n=(0,l(44182).h)("payload:Bluesky:OEmbed");function i(e){try{if(e.startsWith("at://")){let t=e.match(/^at:\/\/([^/]+)\/app\.bsky\.feed\.post\/([^/?#]+)/);if(t){let e=t[1],l=t[2];if(e&&l)return{handle:e,postId:l}}return null}let t=new URL(e).pathname.split("/");if(t.length>=5&&"profile"===t[1]&&"post"===t[3]){let e=t[2],l=t[4];if(e&&l)return{handle:e,postId:l}}return null}catch(e){return null}}async function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{let l=i(e);if(!l)return{error:"invalid_url",message:"Invalid Bluesky URL format"};let a=new URL("https://embed.bsky.app/oembed");a.searchParams.set("url",e),n.debug("Fetching Bluesky oEmbed",{url:e,parsedUrl:l,options:t}),t.maxWidth&&a.searchParams.set("maxwidth",t.maxWidth.toString()),t.maxHeight&&a.searchParams.set("maxheight",t.maxHeight.toString());let r=await fetch(a.toString(),{method:"GET",headers:{Accept:"application/json","User-Agent":"wx-next/1.0"}});if(!r.ok)return{error:"api_error",message:"Bluesky API returned ".concat(r.status,": ").concat(r.statusText)};let o=await r.json();if("rich"!==o.type||!o.html)return{error:"invalid_response",message:"Invalid oEmbed response from Bluesky"};return o}catch(e){return{error:"fetch_error",message:e instanceof Error?e.message:"Unknown error occurred"}}}function s(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=i(e),a=l?"@".concat(l.handle):"Bluesky User";return'\n

\n
\n \n \n \n Bluesky Post\n
\n
\n Post by '.concat(a,'\n
\n \n ').concat(t?'
Thread view enabled
':"","\n
\n ")}let d=e=>{let{entryMethod:t,blueskyURL:l,postId:n,showThread:i=!1}=e,d=(0,r.useRef)(null),[c,u]=(0,r.useState)(!0),[m,h]=(0,r.useState)(null),p=(0,r.useCallback)(()=>"id"===t&&n?null:"url"===t&&l?l:null,[t,n,l]);return((0,r.useEffect)(()=>{(async()=>{let e=p();if(!e){h("No valid Bluesky URL provided"),u(!1);return}if(d.current){u(!0),h(null);try{let t=await o(e,{maxWidth:550,showThread:i});"error"in t?(console.warn("Bluesky oEmbed error:",t),d.current.innerHTML=s(e,i)):d.current.innerHTML=t.html}catch(t){console.error("Failed to load Bluesky embed:",t),d.current.innerHTML=s(e,i)}finally{u(!1)}}})()},[p,i]),c)?(0,a.jsx)("div",{className:"bluesky-embed-loading",style:{border:"1px solid #e1e8ed",borderRadius:"12px",padding:"16px",margin:"16px 0",maxWidth:"550px",background:"#f8f9fa",textAlign:"center"},children:(0,a.jsx)("div",{style:{color:"#536471"},children:"Loading Bluesky post..."})}):m?(0,a.jsxs)("div",{className:"bluesky-embed-error",style:{border:"1px solid #ff6b6b",borderRadius:"12px",padding:"16px",margin:"16px 0",maxWidth:"550px",background:"#fff5f5"},children:[(0,a.jsx)("div",{style:{color:"#d63031",fontWeight:"bold",marginBottom:"8px"},children:"Bluesky Embed Error"}),(0,a.jsx)("div",{style:{color:"#636e72"},children:m})]}):(0,a.jsx)("div",{className:"bluesky-embed-container",ref:d})},c=d},64566:(e,t,l)=>{"use strict";l.d(t,{Wu:()=>v,Zp:()=>h,aR:()=>p});var a=l(21102),r=l(42494),n=l(91731),i=l(85422),o=l(71535),s=l(26464),d=l(34961);let c={default:"Default",bottom:"Bottom Border",outline:"Outline",ghost:"Ghost (Transparent)"};["default","bottom","outline","ghost"].map(e=>({label:c[e],value:e}));let u={default:"Default",none:"None",lt:"Light",md:"Medium",dk:"Dark"};["default","none","lt","md","dk"].map(e=>({label:u[e],value:e}));let m=(0,i.F)("flex flex-col @container/card",{variants:{variant:{default:"bg-card text-card-foreground border-b pb-6",bottom:"bg-card text-card-foreground border-b pb-6",outline:"bg-card text-card-foreground overflow-hidden border",ghost:"bg-transparent"},padding:{default:"",none:"",sm:"p-2",md:"p-4",lg:"p-6"},border:{default:"",none:"border-0",lt:"border-gray-200",md:"border-gray-400",dk:"border-gray-600"},background:{default:"",none:"",lt:"bg-gray-100",md:"bg-gray-300",dk:"bg-gray-500"},radius:{none:"",default:"",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"},interactive:{true:"focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 hover:outline hover:outline-2 hover:outline-offset-2 hover:outline-blue-500",false:""}},defaultVariants:{variant:"default",padding:"default",border:"default",radius:"default",background:"default",interactive:!1},compoundVariants:[{variant:"default",padding:"default",border:"default",class:"border-gray-500"},{variant:"outline",radius:"default",class:"rounded-md"},{variant:"outline",border:"default",class:"border bg-gray-100"},{variant:"outline",padding:"default",class:"p-4"}]}),h=r.forwardRef((e,t)=>{let{className:l,variant:r,padding:i,radius:s,border:d,asChild:c=!1,children:u,testId:h,...p}=e,v=c?n.DX:"section";return(0,a.jsx)(v,{className:(0,o.cn)(m({variant:r,padding:i,radius:s,border:d,interactive:c}),l),ref:t,...p,children:u})});h.displayName="Card";let p=r.forwardRef((e,t)=>{let{className:l,textVariant:r="Title.S",text:n,children:i}=e;return(0,a.jsx)(a.Fragment,{children:n?(0,a.jsx)(s.EY,{ref:t,className:(0,o.cn)("flex pb-4",l),variant:r,children:n}):i})});p.displayName="CardHeader";let v=r.forwardRef((e,t)=>{let{className:l,children:r,...n}=e;return(0,a.jsx)("div",{className:(0,o.cn)("flex-1",l),ref:t,...n,children:r})});v.displayName="CardContent",r.forwardRef((e,t)=>{let{className:l,ctaText:r,ctaHref:n,ctaTarget:i="_self",children:s,...c}=e;return(0,a.jsx)("footer",{className:(0,o.cn)("flex items-center pt-4",l),ref:t,...c,children:s||(r&&n?(0,a.jsx)(d.$n,{variant:"default",size:"sm",asChild:!0,children:(0,a.jsx)("a",{href:n,target:i,children:r})}):null)})}).displayName="CardFooter"},66757:(e,t,l)=>{"use strict";t.vt=void 0,t.v1=s,t.Jh=d;let a=l(19318),r=l(56438),n=l(40919),i=l(31082),o=l(20015);async function s(e){let l=(0,a.getDailyForecastUrlConfig)(e),i=(0,r.urlFrom)(l),o=await fetch(i,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}}),s=await (0,n.handleFetchResponse)(o);return(0,t.vt)(s)}async function d(e){let t=(0,a.getDailyCognitiveHealthForecastUrlConfig)(e),l=(0,r.urlFrom)(t),i=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:1800}});return await (0,n.handleFetchResponse)(i)}t.vt=(0,i.createTransformer)((e,t,l)=>{var a,r,n,i,s,d,c,u,m,h,p,v,x,f,g,y,b,w,j,N,C,T;let A=2*t,S=A+1,{daypart:M}=l||{};return{calendarDayTemperatureMax:null!=(a=e.calendarDayTemperatureMax)?a:void 0,calendarDayTemperatureMin:null!=(r=e.calendarDayTemperatureMin)?r:void 0,dayOfWeek:null!=(n=e.dayOfWeek)?n:void 0,expirationTimeUtc:null!=(i=e.expirationTimeUtc)?i:void 0,moonPhase:null!=(s=e.moonPhase)?s:void 0,moonPhaseCode:null!=(d=e.moonPhaseCode)?d:void 0,moonPhaseDay:null!=(c=e.moonPhaseDay)?c:void 0,moonriseTimeLocal:null!=(u=e.moonriseTimeLocal)?u:void 0,moonriseTimeUtc:null!=(m=e.moonriseTimeUtc)?m:void 0,moonsetTimeLocal:null!=(h=e.moonsetTimeLocal)?h:void 0,moonsetTimeUtc:null!=(p=e.moonsetTimeUtc)?p:void 0,narrative:null!=(v=e.narrative)?v:void 0,qpf:null!=(x=e.qpf)?x:void 0,qpfSnow:null!=(f=e.qpfSnow)?f:void 0,sunriseTimeLocal:null!=(g=e.sunriseTimeLocal)?g:void 0,sunriseTimeUtc:null!=(y=e.sunriseTimeUtc)?y:void 0,sunsetTimeLocal:null!=(b=e.sunsetTimeLocal)?b:void 0,sunsetTimeUtc:null!=(w=e.sunsetTimeUtc)?w:void 0,temperatureMax:null!=(j=e.temperatureMax)?j:void 0,temperatureMin:null!=(N=e.temperatureMin)?N:void 0,validTimeLocal:null!=(C=e.validTimeLocal)?C:void 0,validTimeUtc:null!=(T=e.validTimeUtc)?T:void 0,daypart:[A,S].map((t,l)=>{var a,r,n,i,s,d,c,u,m,h,p,v,x,f,g,y,b,w,j,N,C,T,A,S,I,R,k,_,P,E,L,F,D,V,B,H,z,W,O,U,q,Q,G,Z,Y,X,$,K,J,ee,et,el,ea,er,en,ei,eo,es,ed;return(null==M||null==(r=M[0])||null==(a=r.daypartName)?void 0:a[t])?{cloudCover:null!=(E=null==(n=M[0].cloudCover)?void 0:n[t])?E:void 0,dayOrNight:null!=(L=null==(i=M[0].dayOrNight)?void 0:i[t])?L:void 0,daypartName:null!=(F=null==(s=M[0].daypartName)?void 0:s[t])?F:void 0,iconCode:null!=(D=null==(d=M[0].iconCode)?void 0:d[t])?D:void 0,iconCodeExtend:null!=(V=null==(c=M[0].iconCodeExtend)?void 0:c[t])?V:void 0,narrative:null!=(B=null==(u=M[0].narrative)?void 0:u[t])?B:void 0,precipChance:null!=(H=null==(m=M[0].precipChance)?void 0:m[t])?H:void 0,precipType:null!=(z=null==(h=M[0].precipType)?void 0:h[t])?z:void 0,qpf:null!=(W=null==(p=M[0].qpf)?void 0:p[t])?W:void 0,qpfSnow:null!=(O=null==(v=M[0].qpfSnow)?void 0:v[t])?O:void 0,qualifierCode:null!=(U=null==(x=M[0].qualifierCode)?void 0:x[t])?U:void 0,qualifierPhrase:null!=(q=null==(f=M[0].qualifierPhrase)?void 0:f[t])?q:void 0,relativeHumidity:null!=(Q=null==(g=M[0].relativeHumidity)?void 0:g[t])?Q:void 0,snowRange:null!=(G=null==(y=M[0].snowRange)?void 0:y[t])?G:void 0,temperature:null!=(Z=null==(b=M[0].temperature)?void 0:b[t])?Z:void 0,temperatureHeatIndex:(null==(w=M[0].temperatureHeatIndex)?void 0:w[t])||void 0,temperatureWindChill:(null==(j=M[0].temperatureWindChill)?void 0:j[t])||void 0,thunderCategory:null!=(Y=null==(N=M[0].thunderCategory)?void 0:N[t])?Y:void 0,thunderIndex:null!=(X=null==(C=M[0].thunderIndex)?void 0:C[t])?X:void 0,uvDescription:null!=($=null==(T=M[0].uvDescription)?void 0:T[t])?$:void 0,uvIndex:null!=(K=null==(A=M[0].uvIndex)?void 0:A[t])?K:void 0,windDirection:null!=(J=null==(S=M[0].windDirection)?void 0:S[t])?J:void 0,windDirectionCardinal:(null==(I=M[0].windDirectionCardinal)?void 0:I[t])?(0,o.normalizeCardinal)(M[0].windDirectionCardinal[t]):void 0,windPhrase:null!=(ee=null==(R=M[0].windPhrase)?void 0:R[t])?ee:void 0,windSpeed:null!=(et=null==(k=M[0].windSpeed)?void 0:k[t])?et:void 0,wxPhraseLong:null!=(el=null==(_=M[0].wxPhraseLong)?void 0:_[t])?el:void 0,wxPhraseShort:null!=(ea=null==(P=M[0].wxPhraseShort)?void 0:P[t])?ea:void 0,...0===l?{sunriseTimeLocal:null!=(er=e.sunriseTimeLocal)?er:void 0,sunsetTimeLocal:null!=(en=e.sunsetTimeLocal)?en:void 0}:{moonPhase:null!=(ei=e.moonPhase)?ei:void 0,moonPhaseCode:null!=(eo=e.moonPhaseCode)?eo:void 0,moonriseTimeLocal:null!=(es=e.moonriseTimeLocal)?es:void 0,moonsetTimeLocal:null!=(ed=e.moonsetTimeLocal)?ed:void 0}}:void 0})}})},67330:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getEmailPreferencesStatusUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/status"}},t.getEmailPreferencesSetUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/set"}},t.getEmailPreferencesChangeEmailUrlConfig=function(){return{host:"weather.com",protocol:"https",pathname:"/api/v1/email-preferences/change-email"}}},69265:(e,t,l)=>{"use strict";l.r(t),l.d(t,{BuyButtonBlock:()=>u,default:()=>m});var a=l(21102),r=l(42494),n=l(91731),i=l(85422),o=l(71535);let s=(0,i.F)("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 my-1 mx-1 py-2 px-4",{variants:{variant:{"bg-brand-200":"bg-brand-200 text-black hover:bg-brand-200/90","bg-brand-300":"bg-brand-300 text-white hover:bg-brand-300/90","bg-yellow-400":"bg-yellow-400 text-black hover:bg-yellow-400/90","bg-green-600":"bg-green-600 text-white hover:bg-green-500/90","bg-violet-500":"bg-violet-500 text-white hover:bg-violet-500/90","bg-gray-900":"bg-gray-900 text-white hover:bg-gray-900/90"},display:{block:"block",inline:"inline-block"}},defaultVariants:{variant:"bg-gray-900",display:"block"}}),d=r.forwardRef((e,t)=>{let{className:l,variant:r,display:i,inline:d=!1,asChild:c=!1,...u}=e,m=c?n.DX:"button";return(0,a.jsx)(m,{className:(0,o.cn)(s({variant:r,display:d?"inline":i,className:l})),ref:t,...u})});d.displayName="Button";var c=l(20423);let u=e=>{let{label:t,url:l,variant:r="bg-gray-900",inline:n=!1,isAffiliate:i=!0}=e;return(0,a.jsx)("div",{className:n?"inline-block":"block",children:(0,a.jsx)(c.default,{href:l,target:"_blank",rel:i?"nofollow noopener noreferrer":"noopener",children:(0,a.jsx)(d,{variant:r,inline:!1,className:"cursor-pointer whitespace-nowrap",children:t})})})},m=u},70716:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSunWeatherAlertHeadlinesUrlConfig=function(e){let{geocode:t,countryCode:l,areaId:a,adminDistrictCode:r,language:n}=e,i={format:"json",language:n,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"};return t&&(i.geocode=t),l&&(i.countryCode=l),a&&(i.areaId=a),r&&(i.adminDistrictCode=r),{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/headlines",query:i}},t.getSunWeatherAlertDetailUrlConfig=function(e){let{detailKey:t,language:l}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v3/alerts/detail",query:{alertId:t,format:"json",language:l,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},70825:(e,t,l)=>{"use strict";l.d(t,{S:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"View"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsxs)("g",{fill:"currentColor",children:[(0,a.jsx)("path",{d:"M15.47 7.83A8.35 8.35 0 0 0 8 2.5 8.35 8.35 0 0 0 .53 7.83a.5.5 0 0 0 0 .34A8.35 8.35 0 0 0 8 13.5a8.35 8.35 0 0 0 7.47-5.33.5.5 0 0 0 0-.34M8 12.5c-2.65 0-5.45-1.965-6.465-4.5C2.55 5.465 5.35 3.5 8 3.5s5.45 1.965 6.465 4.5C13.45 10.535 10.65 12.5 8 12.5"}),(0,a.jsx)("path",{d:"M8 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6m0 5a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})]})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="View"},71377:(e,t,l)=>{"use strict";l.r(t),l.d(t,{PromoDriverBlock:()=>o,default:()=>s});var a=l(21102);l(42494);var r=l(11926),n=l(20423),i=l(13247);let o=e=>{let{title:t,image:l,subtitle:o,bodyText:s,ctaButton:d}=e,c=(null==d?void 0:d.url)&&/^https?:\/\//i.test(d.url),u=(0,i.bt)(l)?l:null;return t||u&&(null==u?void 0:u.url)||o||s||d?(0,a.jsxs)("div",{className:"overflow-hidden rounded-lg bg-white",children:[t&&(0,a.jsx)("div",{className:"p-4",children:(0,a.jsx)("h3",{className:"text-xl font-semibold text-gray-900",children:t})}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(null==u?void 0:u.url)?(0,a.jsx)("div",{className:"relative aspect-[42/13] w-full overflow-hidden bg-white px-4 pt-4",children:(0,a.jsx)("div",{className:"relative h-full w-full overflow-hidden rounded-lg",children:(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)(r.default,{src:u.url,alt:t||"Promo image",fill:!0,className:"object-cover"})})})}):null,(o||s||d)&&(0,a.jsxs)("div",{className:"p-4",children:[o&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("h4",{className:"mb-2 text-base font-bold",children:o})}),s&&(0,a.jsx)("a",{href:d&&d.url||"#",children:(0,a.jsx)("p",{className:"mb-4 text-base",children:s})}),d&&(0,a.jsx)("div",{className:"flex justify-end",children:c?(0,a.jsx)("a",{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",rel:d.openInNewTab?"noopener noreferrer":"",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:d.text}):(0,a.jsx)(n.default,{href:d.url||"#",target:d.openInNewTab?"_blank":"_self",className:"inline-block max-w-[200px] overflow-hidden rounded-lg bg-black px-4 py-2 text-base font-normal text-ellipsis whitespace-nowrap text-white",children:d.text})})]})]})]}):null},s=o},71458:(e,t,l)=>{"use strict";l.d(t,{I:()=>n});var a=l(46844),r=l(59299);function n(e){return{displayName:e.location.displayName,adminDistrict:e.location.adminDistrict,geocode:(0,a.S)("".concat(e.location.latitude,",").concat(e.location.longitude)),placeId:e.location.placeId,city:e.location.city,countryCode:e.location.countryCode,adminDistrictCode:e.location.adminDistrictCode||"",presentationName:(0,r.LM)(e.location),ianaTimeZone:e.location.ianaTimeZone,postalCode:e.location.postalCode}}},75603:(e,t,l)=>{"use strict";l.d(t,{b:()=>i});var a=l(21102);l(42494);var r=l(71535),n=l(90267);let i=e=>{let{className:t,units:l,visibility:i,unitsClassName:o}=e,s=l?(0,n.Bu)(l):null,d=null==s?void 0:s.distance,c="";return c=0===i?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:"0"}),(0,a.jsxs)("span",{className:(0,r.cn)(o),children:[" ",d]})]}):!i||i10||"m"===l&&i>16?"Unlimited":(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:i}),(0,a.jsxs)("span",{className:(0,r.cn)(o),children:[" ",d]})]}),(0,a.jsx)("span",{"data-testid":"VisibilityValue",className:(0,r.cn)(t),children:c})}},75865:(e,t,l)=>{"use strict";l.d(t,{V:()=>i,w:()=>n});var a=l(13206);let r=(e,t,l,r)=>{let{cDate:n,cTimeZone:i}=(0,a.r)({date:e,locale:t,timeZone:l}),o=null!=r?r:{year:"numeric",month:"2-digit",day:"2-digit",weekday:"short"};return o.timeZone=i,{cDate:n,cTimeZone:i,formatOptions:o}},n=(e,t,l,a)=>{if(!e)return"";let{cDate:n,formatOptions:i}=r(e,t,l,a);return new Intl.DateTimeFormat(t,i).format(n)},i=(e,t,l,a)=>{if(!e)return[];let{cDate:n,formatOptions:i}=r(e,t,l,a);return new Intl.DateTimeFormat(t,i).formatToParts(n)}},75919:(e,t,l)=>{"use strict";t.Sn=o;let a=l(70716),r=l(56438),n=l(40919),i=l(25430);async function o(e){let{geocode:t,language:l="en-US"}=e,o=(0,r.urlFrom)((0,a.getSunWeatherAlertHeadlinesUrlConfig)({geocode:t,language:l})),s=await fetch(o,{headers:{"Accept-Encoding":"gzip"},cache:"no-store",next:{revalidate:0}}),d=await (0,n.handleFetchResponse)(s);return{...d,alerts:(0,i.getSortedAlerts)(d.alerts)}}},76589:(e,t,l)=>{"use strict";l.d(t,{A:()=>U});var a=l(21102),r=l(34679),n=l(83037),i=l(42494),o=l(57809),s=l(2092),d=l(90267),c=l(14527),u=l(59946),m=l(10229),h=l(36985),p=l(9959),v=l(27335);let x=["rain","freezing_rain"],f=["snow","sleet"],g="#47A25D",y="#65B0C3",b="#DD85A7",w={300:"rain",310:"rain",400:"rain",402:"rain",410:"rain",412:"rain",500:"rain",510:"rain",600:"rain",601:"rain",610:"rain",611:"rain",700:"sleet",701:"sleet",710:"sleet",711:"sleet",800:"freezing_rain",810:"freezing_rain",850:"freezing_rain",900:"rain",910:"rain",950:"rain",1e3:"freezing_rain",1001:"freezing_rain",1002:"freezing_rain",1010:"freezing_rain",1011:"freezing_rain",1012:"freezing_rain",1051:"freezing_rain",1100:"rain",1110:"rain",1140:"rain",1170:"rain",1200:"rain",1201:"rain",1210:"rain",1211:"rain",1240:"rain",1251:"rain",1270:"rain",1300:"snow",1310:"snow",1400:"snow",1410:"snow",1600:"snow",1601:"snow",1610:"snow",1611:"snow",1651:"snow",1800:"sleet",1801:"sleet",1810:"sleet",1811:"sleet",3700:"rain",3710:"rain",3800:"rain",3810:"rain",3900:"rain",3910:"rain",4e3:"rain",4010:"rain",4100:"snow",4110:"snow",4200:"snow",4210:"snow",4300:"snow",4500:"rain",4510:"rain",4600:"rain",4610:"rain",4700:"snow",4710:"snow",4800:"snow",4810:"snow",4900:"rain",4910:"rain",5e3:"snow",5100:"freezing_rain",5101:"freezing_rain",5110:"freezing_rain",5111:"freezing_rain",5200:"sleet",5210:"sleet",5300:"freezing_rain",5301:"freezing_rain",5302:"freezing_rain",5310:"freezing_rain",5311:"freezing_rain",5312:"freezing_rain",5351:"freezing_rain",5400:"snow",5500:"rain",5600:"snow",5610:"snow",5700:"rain",5710:"rain"},j=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;switch(!0){case e>1.65:return 9;case e>.72:return 8;case e>.32:return 7;case e>.14:return 6;case e>.06:return 5;case e>.03:return 4;case e>.01:return 3;case e>0:return 2;case 0===e:return .7;default:return 0}},N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;switch(!0){case e>1.52:return 9;case e>.48:return 8;case e>.17:return 7;case e>.07:return 6;case e>.03:return 5;case e>.02:return 4;case e>.01:return 3;case e>0:return 2;case 0===e:return .7;default:return 0}};var C=l(42013);let T={revalidateOnFocus:!1,dedupingInterval:6e4};var A=l(73017),S=l(64566),M=l(26464),I=l(20423),R=l(71535),k=l(80387),_=l(99721),P=l(9225),E=l(78217),L=l(65353);let F={id:"barBackground",beforeDatasetsDraw(e,t,l){let{ctx:a,chartArea:{top:r},scales:{y:n}}=e;if(!n)return;let i=e.getDatasetMeta(0),o=l.floatPoint||0;i.data.forEach(e=>{var t;let{x:i,width:s}=e.getProps(["x","width"],!0);a.save(),a.fillStyle=l.color||"transparent",function(e,t,l,a,r,n){let i=Math.min(n,a/2,r/2);e.beginPath(),e.moveTo(t+i,l),e.lineTo(t+a-i,l),e.quadraticCurveTo(t+a,l,t+a,l+i),e.lineTo(t+a,l+r-i),e.quadraticCurveTo(t+a,l+r,t+a-i,l+r),e.lineTo(t+i,l+r),e.quadraticCurveTo(t,l+r,t,l+r-i),e.lineTo(t,l+i),e.quadraticCurveTo(t,l,t+i,l),e.closePath(),e.fill()}(a,i-s/2,r,s,n.getPixelForValue(n.min+o)-r,null!=(t=l.borderRadius)?t:8),a.restore()})}},D={id:"extendXAxisLine",afterDraw(e,t,l){var a,r,n,i,o;let{ctx:s,scales:d}=e,c=d.x,u=d.y,m=null!=(a=l.offset)?a:20,h=(null!=(r=null==u?void 0:u.bottom)?r:0)+m;s.save(),s.beginPath(),s.strokeStyle=l.color||"black",s.lineWidth=null!=(n=l.lineWidth)?n:1,s.moveTo((null!=(i=null==c?void 0:c.left)?i:0)-200,h),s.lineTo((null!=(o=null==c?void 0:c.right)?o:0)+200,h),s.stroke(),s.restore()}},V={id:"transitionLines",afterDatasetsDraw(e,t,l){let{ctx:a,scales:{x:r,y:n}}=e;n&&(a.save(),a.lineWidth=1,a.setLineDash([2,2]),(0,L.v)(l.transitionPoints,(t,r)=>{var i;let o=+r,s=e.getDatasetMeta(0),d=s.data[o],c=s.data[o-1];if(!d||!c)return;let{x:u}=d.getProps(["x"],!0),{x:m}=c.getProps(["x"],!0),h=(m+u)/2;a.beginPath(),a.strokeStyle=t,a.moveTo(h,n.top),a.lineTo(h,n.getPixelForValue(n.min+(null!=(i=l.floatPoint)?i:0))),a.stroke()}),a.restore())}},B=e=>{let{data:t,ianaTimeZone:l,locale:r}=e,n=(0,A.c)("PrecipIntensity");return(0,a.jsxs)("table",{className:"hidden",children:[(0,a.jsx)("caption",{children:n("tableCaption")}),(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:n("time")}),(0,a.jsx)("th",{children:n("precipType")}),(0,a.jsx)("th",{children:n("precipLevel")})]})}),(0,a.jsx)("tbody",{children:null==t?void 0:t.map(e=>0!==e.level?(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,k.P)({date:e.validTimeLocal,locale:r,timeZone:l,minutes:!0})}),(0,a.jsx)("td",{children:e.precipType}),(0,a.jsx)("td",{children:e.level})]},e.validTimeLocal):null)})]})},H=e=>{let{rtl:t,isSamsungTheme:l,radius:r=4,legendTypes:n}=e,o=(0,A.c)("PrecipIntensity"),s=(0,i.useMemo)(()=>{let e=[{label:o("legendRain"),type:E.PrecipType.RAIN,color:g},{label:o("legendSnow"),type:E.PrecipType.SNOW,color:y},{label:o(l?"samsungLegendMix":"legendMix"),type:E.PrecipType.PRECIP,color:b}];return t?e.reverse():e},[l,t,o]);return(0,a.jsx)("div",{className:"mt-3 flex items-center justify-center gap-6",children:s.map(e=>{let{label:t,type:l,color:i}=e;return(!n||n[l])&&(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{style:{width:2*r,height:2*r,backgroundColor:i},className:"rounded-full"}),(0,a.jsx)("p",{className:"text-xs",children:t})]},l)})})},z=async()=>{let{Chart:e,CategoryScale:t,LinearScale:a,BarController:r,BarElement:n}=await Promise.all([l.e(9645),l.e(9731)]).then(l.bind(l,41911));return e.register(t,a,r,n),e},W=(0,i.memo)(e=>{let{chartData:t,hasChartData:l,ianaTimeZone:r,locale:n,rootClass:o,rtl:s=!1,removeTransitionLines:d}=e,c=(0,A.c)("PrecipIntensity"),u=(0,i.useRef)(null),m=(0,i.useRef)(null),[h,p]=(0,_.r)(e=>es?[...t].reverse():t,[t,s]),w=(0,i.useMemo)(()=>t.reduce((e,t)=>{let{precipType:l}=t;return e[l]=!0,e},{}),[t]),j=(0,i.useMemo)(()=>{let e=Object.values(E.PrecipType),t=0;for(let l of e)w[l]&&t++;return t>1},[w]),N=(0,i.useMemo)(()=>{let e=v.map(e=>e.level),t=v.map(e=>{let{validTimeLocal:t}=e;return t}),l=v.map(e=>{let{precipType:t}=e;return t===E.PrecipType.RAIN?g:t===E.PrecipType.SNOW?y:b});return{labels:t,datasets:[{label:c("chartTitle"),data:e,backgroundColor:l,borderWidth:0,maxBarThickness:h?4:8,categoryPercentage:1,stack:"stack1",borderRadius:12,borderSkipped:!1}]}},[h,v,c]),C=(0,i.useMemo)(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1},transitionLines:{floatPoint:.5,transitionPoints:d?void 0:v.reduce((e,t,l)=>{var a;if(l>0&&t.level>0&&v[l-1]&&t.precipType!==(null==(a=v[l-1])?void 0:a.precipType)){let a=b;x.includes(t.precipType)?a=g:f.includes(t.precipType)&&(a=y),e[l]=a}return e},{})},barBackground:{color:"#eeeeee",borderRadius:12,floatPoint:.5},extendXAxisLine:{color:"#eeeeee",lineWidth:1,offset:-2},datasets:{bar:{minBarLength:10}}},scales:{x:{stacked:!0,grid:{display:!0,drawOnChartArea:!1,drawTicks:!0,tickColor:"#676767",tickLength:3,tickWidth:1,tickBorderDashOffset:50,offset:!1},border:{display:!1},ticks:{major:{enabled:!0},display:!0,maxRotation:0,minRotation:0,autoSkip:!1,font:{size:h?12:14},color:"#676767",callback:function(e,t){var l;let a=new Date((null==(l=this.chart.data.labels)?void 0:l[t])||"");return 0===a.getMinutes()?(0,k.P)({date:a,locale:n,timeZone:r,showShortDayperiod:!0}):h?null:""}}},y:{stacked:!0,min:-.5,max:9,position:s?"right":"left",grid:{display:!1,drawBorder:!1},ticks:{count:10,autoSkip:!1,display:!0,crossAlign:"far",font:{size:h?12:14},callback:function(e,t){return 2===t?c("chartLight"):8===t?c("chartHeavy"):""}},border:{display:!1}}}}),[d,v,h,s,c,n,r]);return((0,i.useEffect)(()=>{let e=!1;return!async function(){var t;let l=await z(),a=null==(t=u.current)?void 0:t.getContext("2d");!e&&a&&l&&(m.current=new l(a,{type:"bar",data:N,options:C,plugins:[F,D,V]}))}(),()=>{var t;e=!0,null==(t=m.current)||t.destroy()}},[N,C]),l)?(0,a.jsxs)("div",{ref:p,className:(0,R.cn)("@container/precipChart",o),dir:s?"rtl":void 0,children:[(0,a.jsx)(B,{data:t,ianaTimeZone:r,locale:n}),(0,a.jsx)("div",{className:(0,R.cn)("relative h-26 text-sm text-gray-500 @md/precipChart:h-30",s?"pr-2 @md/precipChart:pr-3 @xl/precipChart:pr-4":"pl-2 @md/precipChart:pl-3 @xl/precipChart:pl-4"),children:(0,a.jsx)("canvas",{ref:u})}),j&&(0,a.jsx)(H,{rtl:s,legendTypes:w,isSamsungTheme:!1})]}):null}),O=e=>{let{location:t,locale:l,onlyChart:r,isLoading:n,chartData:i,hasChartData:o,rtl:s,removeTransitionLines:d,insightTextLong:c}=e,u=(0,A.c)("PrecipIntensity");if(n||!n&&!o)return null;let m=()=>(0,a.jsx)(W,{chartData:i,hasChartData:o,ianaTimeZone:null==t?void 0:t.ianaTimeZone,locale:l,rtl:s,removeTransitionLines:d});return r?m():o&&(0,a.jsxs)(S.Zp,{className:"relative min-h-[100px] overflow-hidden","aria-label":u("chartTitle"),children:[(0,a.jsxs)(S.Wu,{className:"p-0",children:[c&&(0,a.jsxs)(M.Ay,{variant:"Body.M",className:"mb-2",children:[(0,a.jsx)("span",{className:"font-bold",children:"Outlook:"})," ",c]}),m()]}),t&&(0,a.jsx)(I.default,{className:"absolute top-0 right-0 bottom-0 left-0",href:"/weather/hourbyhour/l/".concat(t.placeId),"aria-label":u("viewHourlyForecast"),children:"\xa0"})]})},U=e=>{var t;let{location:l,onlyChart:g,initializing:y,initialError:b}=e,A=null==(t=(0,r.useParams)())?void 0:t.locale,{effectiveLocation:S,isLocationLoading:M}=(0,n.s)({location:l}),{loadingForecast:I,chartData:R,hasChartData:k,insightTextLong:_}=((e,t)=>{let l=(0,o.md)(s.Yt),a=(0,d.xP)(l)||d.AF,r=a.code,n=(0,p.A)(),g="KR"===n,y=g&&(null==e?void 0:e.countryCode)==="KR",{data:b,isLoading:A}=(0,u.Ay)(e&&y?["get-hourly-forecast",e.geocode,r,t,g?n:void 0]:null,e=>{let[t,l,a,r,n]=e;return(0,m.$c)({geocode:l,units:a,language:r,cscCountryCode:n,duration:c.HourlyForecastDuration.TWO_DAY})},T),{data:S,isLoading:M}=(0,u.Ay)(e&&!y?["get-fifteen-minute-forecast",e.geocode,r,t]:null,e=>{let[t,l,a,r]=e;return(0,h.FA)({geocode:l,units:a,language:r})},T),I=y?b:S,R=(0,i.useMemo)(()=>((e,t)=>{if(!(null==e?void 0:e.length))return[];let l=e.map(e=>(0,v.$)(e.validTimeLocal));return t?l.slice(0,7):l})(I,y),[I,y]),k=(0,i.useMemo)(()=>((e,t,l,a)=>e?(a?(null==e?void 0:e.slice(0,7))||[]:e||[]).map((e,r)=>{let n=e.iconCodeExtend,i=e.precipType,o=(e=>{let{precipRate:t,iconCodeExtend:l,precipType:a,unitsSystem:r}=e,n=(null==r?void 0:r.precip)!=="in"?Number((t/25.4).toFixed(2)):t,i="precip"===a||0===t?w[l]:a;switch(!0){case x.includes(i):return j(n);case f.includes(i):return N(n);default:return 0}})({precipRate:a?e.qpf:e.precipRate,iconCodeExtend:n,precipType:i,unitsSystem:t});return{precipType:i,validTimeLocal:l[r],level:o}}):Array(7).fill({precipType:"",validTimeLocal:"",level:0}))(I,a,R,y)||[],[I,y,R,a]),_=(0,i.useMemo)(()=>(e=>!!(null==e?void 0:e.find(e=>{let{level:t}=e;return t>0})))(k),[k]),{loadingInsight:P,insightHeadline:E,insightTextLong:L}=(0,C.p)(e,t);return{loadingForecast:A||M,chartData:k,hasChartData:_,loadingInsight:P,insightHeadline:E,insightTextLong:L}})(S,A);return b?null:(0,a.jsx)(O,{location:S,locale:A,onlyChart:g,isLoading:y||M||I,chartData:R,hasChartData:k,insightTextLong:_})}},78117:(e,t,l)=>{"use strict";l.d(t,{y:()=>i});var a=l(21102),r=l(42494),n=l(33940);let i=(0,r.memo)(e=>{let t,{airQualityIndex:l,airQualityCategory:r,className:i}=e,o=!(0,n.g)(l)&&!Number.isNaN(l),s=!(0,n.g)(r)&&""!==r.trim();return t=o&&s?"".concat(l," - ").concat(r):o?"".concat(l):s?r:"--",(0,a.jsx)("span",{"data-testid":"AirQualityValue",className:i,children:t})})},78217:(e,t)=>{"use strict";var l,a,r,n,i;Object.defineProperty(t,"__esModule",{value:!0}),t.PrecipIntensityCode=t.PrecipTypeCode=t.ThunderCategory=t.PrecipType=t.MoonPhaseCode=void 0,function(e){e.WANING_GIBBOUS="WNG",e.WAXING_CRESCENT="WXC",e.FIRST_QUARTER="FQ",e.WANING_CRESCENT="WNC",e.LAST_QUARTER="LQ",e.FULL="F",e.WAXING_GIBBOUS="WXG",e.NEW="N"}(l||(t.MoonPhaseCode=l={})),function(e){e.RAIN="rain",e.SNOW="snow",e.PRECIP="precip"}(a||(t.PrecipType=a={})),function(e){e.NO_THUNDER="0",e.THUNDER_POSSIBLE="1",e.THUNDER_EXPECTED="2",e.SEVERE_THUNDERSTORMS_POSSIBLE="3",e.SEVERE_THUNDERSTORMS_LIKELY="4",e.HIGH_RISK_OF_SEVERE_THUNDERSTORMS="5"}(r||(t.ThunderCategory=r={})),function(e){e[e.NONE=0]="NONE",e[e.RAIN=1]="RAIN",e[e.SNOW=2]="SNOW",e[e.FREEZING_RAIN=3]="FREEZING_RAIN",e[e.THUNDER=4]="THUNDER",e[e.SLEET=5]="SLEET",e[e.HAIL=6]="HAIL"}(n||(t.PrecipTypeCode=n={})),function(e){e[e.NONE=0]="NONE",e[e.VERY_LIGHT=1]="VERY_LIGHT",e[e.LIGHT=2]="LIGHT",e[e.MODERATE=3]="MODERATE",e[e.HEAVY=4]="HEAVY"}(i||(t.PrecipIntensityCode=i={}))},78639:(e,t)=>{"use strict";t.J3=t.Ny=t.rn=void 0,t.rn="daily-newsletters-1",t.Ny="marketing-emails-1",t.J3=[{subscriptionGroupName:t.rn,subscriptionGroupId:"",isSubscribed:!1,attributes:{location:""}},{subscriptionGroupName:t.Ny,subscriptionGroupId:"",isSubscribed:!1}]},79723:(e,t,l)=>{"use strict";l.d(t,{W:()=>a});let a=e=>e=12?3:(console.error("Default to 0. Could not get precision for level of detail",e),0)},80360:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CurrentDetailsBlock:()=>o,default:()=>s});var a=l(21102),r=l(71458),n=l(59432);let i=()=>null,o=e=>{let{locationProvider:t,locationEntry:l}=e,o="specified"===t,{specifiedLocationData:s,specifiedLocationError:d,isSpecifiedLocationLoading:c}=(0,n.v)(o?l:null),u=o&&s&&l?(0,r.I)(s):void 0;return(0,a.jsx)(i,{location:u,initializing:o&&c,initialError:o?d:void 0})},s=o},80381:(e,t,l)=>{"use strict";l.d(t,{Wu:()=>o,Zp:()=>n,aR:()=>i});var a=l(21102);l(42494);var r=l(71535);function n(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card",className:(0,r.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl py-6",t),...l})}function i(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-header",className:(0,r.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",t),...l})}function o(e){let{className:t,...l}=e;return(0,a.jsx)("div",{"data-slot":"card-content",className:(0,r.cn)("px-6",t),...l})}},80387:(e,t,l)=>{"use strict";l.d(t,{P:()=>r});var a=l(13206);let r=e=>{var t,l,r,n,i,o,s,d,c;let{date:u,locale:m="en-US",timeZone:h,minutes:p,showTimeZone:v,showShortDayperiod:x,weekday:f}=e;if(!u)return"";let{cDate:g,cTimeZone:y}=(0,a.r)({date:u,locale:m,timeZone:h}),b={hour:"numeric",hour12:!0,timeZone:y};f&&(b.weekday=f),p&&(b.minute="2-digit"),"en-US"!==m&&"es-US"!==m&&(delete b.hour12,b.minute="2-digit",b.hourCycle="h23"),v&&(b.timeZoneName="short");let w=new Intl.DateTimeFormat(m,b);if(m.includes("-US")){let e=w.formatToParts(g),a=f&&(null==(t=e.find(e=>"weekday"===e.type))?void 0:t.value),o=null==(l=e.find(e=>"hour"===e.type))?void 0:l.value,s=p&&(null==(r=e.find(e=>"minute"===e.type))?void 0:r.value),d=null==(n=e.find(e=>"dayperiod"===e.type.toLowerCase()))?void 0:n.value.toLowerCase(),c=m.includes("en")?d:null==d?void 0:d.replace(/\./g,"").replace(/\s/g,""),u=x?"".concat(null==c?void 0:c[0]," "):" ".concat(c," "),h=v?null==(i=e.find(e=>"timeZoneName"===e.type))?void 0:i.value:"",y=f?"".concat(a," "):"";return"".concat(y).concat(o).concat(p?":".concat(s):"").concat(u).concat(h).trim()}if(x){let e=w.formatToParts(g),t=f&&(null==(o=e.find(e=>"weekday"===e.type))?void 0:o.value),l=null==(s=e.find(e=>"hour"===e.type))?void 0:s.value,a=p&&(null==(d=e.find(e=>"minute"===e.type))?void 0:d.value),r=v?null==(c=e.find(e=>"timeZoneName"===e.type))?void 0:c.value:"";return"".concat(f?"".concat(t," "):"").concat(l).concat(p?":".concat(a):""," ").concat(r).trim()}return w.format(g)}},81078:(e,t,l)=>{"use strict";l.d(t,{V:()=>n});var a=l(21102);l(42494);var r=l(71535);let n=e=>{let t,{value:l=0,diameter:n=60,strokeWidth:i=5,strokeColor:o,icon:s,iconSize:d,iconClassName:c,className:u,textClassName:m,displayValue:h,maxValue:p,useExtendedLinecap:v=!1,extendedLinecapProps:x={radius:7,strokeWidth:2},invert:f,textColor:g,textY:y="55%",strokeLinecap:b,railClassName:w}=e,j=n/2,N=j-i/2,C=2*Math.PI*N;t=p?C/100*(l/p*100):C/100*l;let T="".concat(t," ").concat(C),A=t/C*100,S={strokeWidth:i,strokeDasharray:T,stroke:o||((e,t)=>{if(500===t)switch(!0){case e>=0&&e=51&&e=101&&e=151&&e=201:return"#660099";default:return"#a0a0a0"}let l=t?e/t*100:e;switch(!0){case l>=0&&l=20&&l=40&&l=60&&l=80:return"#e82808";default:return"#a0a0a0"}})(l,p)},M="rotate(90 ".concat(j," ").concat(j,")"),I=()=>{if(h||0===h)return(0,a.jsx)("text",{x:"50%",y:y,dominantBaseline:"middle",alignmentBaseline:"middle",textAnchor:"middle",className:(0,r.cn)("fill-text-medium text-[36px] font-extralight",m),"data-testid":"DonutChartValue",fill:g,children:h});if(s){let e=d||Math.floor(j),t=Math.floor(j-e/2),l=Math.floor(j-e/2);return(0,a.jsx)("foreignObject",{x:t,y:l,width:e,height:e,children:(0,a.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,a.jsx)(s,{className:(0,r.cn)("h-full w-full",c),"aria-hidden":"true"})})})}return null};return(0,a.jsxs)("svg",{width:n,height:n,"data-testid":"DonutChart",className:(0,r.cn)("block overflow-visible rounded-full",u,{"scale-x-[-1]":f}),children:[(0,a.jsx)("circle",{r:N,cx:j,cy:j,transform:M,style:{strokeWidth:i},className:(0,r.cn)("fill-transparent stroke-[#E7ECF1]",w)}),l>=0?(0,a.jsx)("circle",{r:N,cx:j,cy:j,transform:M,strokeLinecap:b||"round",style:S,className:"fill-transparent transition-[stroke-dasharray] duration-300 ease-in-out"}):null,f&&I()?(0,a.jsx)("g",{transform:"translate(".concat(n,", 0) scale(-1, 1)"),children:I()}):I(),v&&(0,a.jsx)("circle",{r:x.radius,cx:j,style:{transform:"rotateZ(".concat(360*A/100,"deg)"),transformOrigin:"center"},fill:S.stroke,cy:j+N,strokeWidth:x.strokeWidth,className:"stroke-[var(--backgroundCard)] transition-transform duration-300 ease-in-out"})]})}},82915:(e,t,l)=>{"use strict";l.d(t,{r:()=>d});var a=l(59946),r=l(17081),n=l(57809),i=l(2092),o=l(90267);let s={revalidateOnFocus:!1,dedupingInterval:6e4},d=e=>{let{key:t="get-weather-insights",geoCode:l,insightType:d,locale:c,par:u="twc",cscCountryCode:m}=e,h=(0,n.md)(i.Yt),p=((0,o.xP)(h)||o.AF).code;return(0,a.Ay)(l?[t,d,l,p,u,c]:null,e=>{let[t,l,a,n,i,o]=e;return(0,r.I)({geocode:a,units:n,language:o,insightType:l,par:i,cscCountryCode:"KR"===m?"KR":void 0})},s)}},86983:(e,t,l)=>{"use strict";l.r(t),l.d(t,{HurricaneTrackerBlock:()=>R,default:()=>k});var a=l(21102),r=l(59432),n=l(71458),i=l(90267),o=l(42494),s=l(59946),d=l(57809),c=l(88915),u=l(2092),m=l(34679),h=l(95121),p=l(17577),v=l(75865);let x={lod:4,attr:0,format:"png",height:"320",width:"568",product:"9066",basemap:"dark",baseUrl:"https://api.weather.com/v2/maps/dynamic?"},f={revalidateOnFocus:!1,dedupingInterval:6e4};var g=l(73017),y=l(19373),b=l(64566),w=l(43673),j=l(29900),N=l(20423),C=l(93848),T=l(71535);let A={ts:"border-[#61c747] bg-[#224818]",l:"border-[#25bef7] bg-[#093b4d]",cat1:"text-[0.625rem] border-[#ebdb02] bg-[#494501]",cat2:"text-[0.625rem] border-[#ebb700] bg-[#524000]",cat3:"text-[0.625rem] border-[#fc8800] bg-[#502c02]",cat4:"text-[0.625rem] border-[#fc5e00] bg-[#511e00]",cat5:"text-[0.625rem] border-[#ed2325] bg-[#4f0c0d]"},S=e=>{var t;let{titleKey:l,outboundUrl:r,imageUrl:n,stormDetails:s,units:d,loading:c}=e,u=(0,g.c)("HurricaneTracker"),m=(0,g.c)("DetailsTable"),{advisoryTime:h,stormName:p,stormType:v,stormTypeCode:x,stormSubTypeCode:f,maxWind:S,direction:M,speed:I,pressure:R}=s||{},k=(null!=(t=(0,i.Bu)(d))?t:i.AF).speed,_=(0,o.useMemo)(()=>{let e="l";return f&&(e="cat".concat(f)),f||"TS"!==x||(e="ts"),e},[f,x]);return(0,a.jsxs)(b.Zp,{"data-testid":"HurricaneTracker","aria-label":u(l),children:[l&&(0,a.jsx)(b.aR,{text:u(l)}),(0,a.jsx)(b.Wu,{className:"p-0",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsxs)(N.default,{href:r,className:"block",children:[(0,a.jsx)("div",{className:"absolute h-full w-full rounded-lg bg-gradient-to-b from-black via-transparent to-black [background:linear-gradient(0deg,rgba(0,0,0,1)_0%,rgba(0,0,0,0)_20%,rgba(0,0,0,0)_80%,rgba(0,0,0,1)_100%)]"}),(0,a.jsx)("div",{className:"z-0 h-80 w-full rounded-lg bg-[#4d505b] bg-cover bg-center",style:n?{backgroundImage:"url(".concat(n,")")}:void 0}),(0,y.n)(p)&&(0,a.jsxs)("div",{className:"absolute top-0 z-[1] mt-3 ml-4 flex max-w-[60%] text-sm leading-[1.25] text-white",children:[(0,a.jsx)("div",{className:(0,T.cn)("box-border flex h-[35px] w-[35px] min-w-[35px] items-center justify-center rounded-full border-2 border-white bg-gray-500 p-0.5 text-center leading-none font-bold",A[_]),children:x}),(0,a.jsxs)("div",{className:"ml-2.5 flex flex-col",children:[(0,a.jsx)("div",{className:"text-base leading-[1.15] font-bold",children:"".concat(v," ").concat(p)}),(0,a.jsx)("div",{className:"text-xs",children:h})]})]}),(0,y.n)(I)&&(0,y.n)(M)&&(0,a.jsxs)("ul",{className:"absolute bottom-0 z-[1] box-border flex w-full list-none flex-row px-4 py-3 text-sm leading-[1.25] text-white",children:[(0,a.jsxs)("li",{className:"mr-8",children:[(0,a.jsx)("div",{className:"text-xs",children:u("maxWinds")}),(0,a.jsx)("div",{className:"font-bold",children:(0,a.jsx)(w.Z,{windSpeed:null!=S?S:void 0,units:d})})]}),(0,a.jsxs)("li",{className:"mr-8",children:[(0,a.jsx)("div",{className:"text-xs",children:u("movement")}),(0,a.jsx)("div",{className:"font-bold",children:u("directionSpeedUnit",{direction:M,speed:I,windUnit:k})})]}),(0,a.jsxs)("li",{className:"mr-0",children:[(0,a.jsx)("div",{className:"text-xs",children:m("pressure")}),(0,a.jsx)("div",{className:"font-bold",children:R?"".concat(R," mb"):"--"})]})]}),c&&(0,a.jsx)(C.a,{className:"absolute top-1/2 left-1/2 -translate-1/2",variant:"white",size:"lg",label:"Loading"})]}),(0,a.jsx)(j.L,{position:"top-right",color:"white",className:"!top-[13px] !right-4 z-[1] [&_button]:!p-0",stack:!0})]})})]})};var M=l(83037);let I=e=>{var t;let{location:l,titleKey:r,zoom:n,stormId:g,basin:y,showPT:b,initializing:w,initialError:j}=e,{effectiveLocation:N,isLocationLoading:C}=(0,M.s)({location:l}),T=(0,d.md)(u.Yt),A=null==(t=(0,i.xP)(T))?void 0:t.code,{imageUrl:I,interactiveMapUrl:R,stormDetails:k,isLoading:_,error:P}=(e=>{let{location:t,basin:l,showPT:a,stormId:r,overlays:n,zoom:g,stormIdSelectorName:y}=e,{countryCode:b,placeId:w,ianaTimeZone:j}=t||{},N=(0,m.useParams)().locale||"en-US",C=null==N?void 0:N.split("-")[0],T=(0,d.md)(u.Yt),A=((0,i.xP)(T)||i.AF).code,S=(0,p.n)({key:"radar",interpolationArgs:{locale:N,locId:w||""}}),{data:M,isLoading:I,error:R}=(0,s.Ay)(t?["getTropicalCurrentPosition",l||"all","default","false",A,N]:null,e=>{let[t,l,a,r,n,i]=e;return(0,c.x)({basin:l,source:a,nautical:r,units:n,language:i})},f),k=null==M?void 0:M.advisoryinfo,_=(0,o.useMemo)(()=>{if(!k||!k.length)return;let e=new Date(Date.now()),t=[];return k.forEach(l=>{var r;let n=null==l||null==(r=l.currentposition)?void 0:r.storm_type_cd;if("RO"===n||"PT"===n&&!a)return;let i=new Date(l.adv_dt_tm),o=((e,t)=>e&&t?Math.floor((Date.parse(t)-Date.parse(e))/864e5):0)(e.toString(),i.toString());(0===o||-1===o)&&("AL"===l.basin?t.unshift(l):t.push(l))}),t.length>0?t:void 0},[k,a]),P=(0,o.useMemo)(()=>{if(!_||!r)return null;let e=_.find(e=>e.storm_id.toLowerCase()===r.toLowerCase());if(e)return e;let t=_.find(e=>e.storm_name.toLowerCase()===r.toLowerCase());return t||null},[_,r]),E=(0,o.useMemo)(()=>P||y?P:!P&&_?_[0]:null,[_,P,y]),L=(0,o.useMemo)(()=>{var e,t,l,a,r,n,i,o,s,d;if(!E)return null;let c=null==(e=E.currentposition)?void 0:e.storm_type_cd,u=null==(t=E.currentposition)?void 0:t.storm_sub_type_cd,m=E.adv_dt_tm,h=null==(l=E.currentposition)?void 0:l.min_pressure;return h&&"e"===A&&(h=Math.round(33.8639*h)),h||(h=null),{advisoryTime:(e=>{let{date:t,locale:l="en-US",timeZone:a}=e;if(!t)return"";let r={month:"short",day:"numeric",hour:"numeric",hour12:!0,minute:"2-digit"};if(!l.includes("-US"))return delete r.hour12,r.hourCycle="h23",(0,v.w)(t,l,a);let n=(0,v.V)(t,l,a,r),i=n.find(e=>"month"===e.type).value,o=n.find(e=>"day"===e.type).value,s=n.find(e=>"hour"===e.type).value,d=n.find(e=>"minute"===e.type).value,c=n.find(e=>"dayperiod"===e.type.toLowerCase()).value.toLowerCase();return"".concat(i," ").concat(o,", ").concat(s,":").concat(d," ").concat(c)})({date:m,locale:N,timeZone:j||"UTC"}),maxWind:null==(a=E.currentposition)?void 0:a.max_sustained_wind,stormName:E.storm_name,stormSubType:null==(r=E.currentposition)?void 0:r.storm_sub_type,stormSubTypeCode:u,stormType:null==(n=E.currentposition)?void 0:n.storm_type,stormTypeCode:((e,t)=>t?"CAT ".concat(t):"TS"===e?"TS":"L")(c,u),direction:null==(o=E.currentposition)||null==(i=o.heading)?void 0:i.storm_dir_cardinal,speed:null==(d=E.currentposition)||null==(s=d.heading)?void 0:s.storm_spd,pressure:h}},[E,N,j,A]),F=(0,o.useMemo)(()=>{if(!E)return null;let{lod:e,attr:t,format:l,height:a,width:r,product:i,basemap:o,baseUrl:s}=x,d=n||i,c=g||e,u=(0,h.S)(E.currentposition.lat,c),m=(0,h.S)(E.currentposition.lon,c),p=C&&["en","fr","es","de","ru","zu"].indexOf(C)>=0?C:"en",v=null;return"IN"===b&&(v="&region=in"),"".concat(s,"geocode=").concat(u,",").concat(m,"&h=").concat(a,"&w=").concat(r,"&lod=").concat(c)+"&product=".concat(d,"&map=").concat(o,"&format=").concat(l,"&language=").concat(p)+"&apiKey=".concat("71f92ea9dd2f4790b92ea9dd2f779061","&a=").concat(t)+"".concat(v||"")},[E,C,b,n,g]),D=(0,o.useMemo)(()=>{if(!E)return null;let e=!w,t=e?"/redir":S,l=E.storm_name,a=g||6,r=new URLSearchParams;return e&&(r.set("page","radar"),r.set("id","autodetect")),r.set("base","roadsDark"),r.set("zoom",String(a)),l&&r.set("collection",l),"".concat(t,"?").concat(r.toString())},[E,w,S,g]);return{tropicalStorms:k,isLoading:I,error:R,allActiveStorms:_,queriedStorm:P,stormData:E,stormDetails:L,imageUrl:F,interactiveMapUrl:D}})({location:N,zoom:n||void 0,stormId:g||void 0,basin:y||void 0,showPT:b||void 0});return j||P?null:(0,a.jsx)(S,{titleKey:null!=r?r:"title",outboundUrl:null!=R?R:"",imageUrl:I,units:A,stormDetails:k,loading:_||w||C})},R=e=>{let{locationEntry:t,locationProvider:l,hideModule:i,...o}=e,s="specified"===l,{specifiedLocationData:d,specifiedLocationError:c,isSpecifiedLocationLoading:u}=(0,r.v)(i?null:t);if(i)return null;let m=s&&d&&t?(0,n.I)(d):void 0;return(0,a.jsx)(I,{...o,location:m,initializing:s&&u,initialError:s?c:void 0})},k=R},87403:(e,t,l)=>{"use strict";l.d(t,{y:()=>o});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Arrow Down"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M3.353 9.767a.499.499 0 0 1 .705-.706L7.5 12.5V2.914a.5.5 0 0 1 1 0V12.5l3.443-3.438a.499.499 0 0 1 .705.706l-3.94 3.94a1 1 0 0 1-1.415 0z"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="ArrowDown"},88737:(e,t,l)=>{"use strict";l.r(t),l.d(t,{CTABlock:()=>n,default:()=>i});var a=l(21102);l(42494);var r=l(94456);let n=e=>{let{title:t,subTitle:l,subText:n,ctaStyle:i,media:o,buttonText:s,linkUrl:d,openInNewTab:c,backgroundColor:u}=e,m=void 0!=o.url?o.url:"string"==typeof o?o:null;return(0,a.jsx)("section",{className:"not-prose @container mx-auto w-full max-w-4xl rounded-md ".concat({white:"bg-white","light-gray":"bg-gray-100","brand-blue":"bg-blue-500",accent:"bg-accent"}[u||"white"]," p-5 shadow-2xl"),children:(0,a.jsx)("div",{className:"cta-block ".concat(i),children:(0,a.jsxs)("div",{className:"cta-content text-black",children:[(0,a.jsx)("h2",{className:"mb-6 text-2xl font-bold",children:t}),m&&(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"mb-4 block overflow-hidden rounded-lg",children:(0,a.jsx)("div",{className:"relative w-full",children:(0,a.jsx)(r.Ay,{src:m,alt:t})})}),l&&(0,a.jsx)("h2",{className:"mb-2 text-lg font-bold",children:l}),n&&(0,a.jsx)("p",{className:"mb-4",children:n}),"standard"===i&&(0,a.jsx)("div",{className:"mt-4 flex justify-end",children:(0,a.jsx)("a",{href:d,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,className:"inline-block rounded-lg bg-black px-6 py-3 text-white transition-colors hover:bg-gray-800",children:s||"Learn More"})})]})})})},i=n},88915:(e,t,l)=>{"use strict";t.x=i;let a=l(90302),r=l(56438),n=l(40919);async function i(e){let t=(0,a.getTropicalObservationsCurrentPositionUrlConfig)(e),l=(0,r.urlFrom)(t),i=await fetch(l,{headers:{"Accept-Encoding":"gzip"},next:{revalidate:300}});return(0,n.handleFetchResponse)(i)}},89575:(e,t,l)=>{"use strict";t.o=void 0;let a=l(4385),r={US:a.AirQualityScale.EPA,CN:a.AirQualityScale.HJ6332012,FR:a.AirQualityScale.ATMO,DE:a.AirQualityScale.UBA,GB:a.AirQualityScale.DAQI,IN:a.AirQualityScale.NAQI,MX:a.AirQualityScale.IMECA,ES:a.AirQualityScale.CAQI};t.o=e=>{let{countryCode:t}=e;return r[t]||a.AirQualityScale.EPA}},90728:(e,t,l)=>{"use strict";t.j=i;let a=l(56438),r=l(40919),n=l(67330);async function i(){let e=(0,n.getEmailPreferencesStatusUrlConfig)(),t=(0,a.urlFrom)(e),l=await fetch(t,{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},next:{revalidate:60}});return(0,r.handleFetchResponse)(l)}},91743:(e,t,l)=>{"use strict";l.d(t,{yW:()=>b});var a=l(14296),r=l(19882);let n="",i="",o=1,s=0,d=0,c=0,u=0,m=!1,h=0,p={adImpression:!1,videoAttempt:!1,videoPlayed:!1,videoStarted:!1,videoCompleted:!1,videoEnd:!1},v={autostart:"auto",interaction:"click",external:"externalLink",playlist:"playlistClick","related-interaction":"nextClick","related-auto":"auto"};function x(e){var t;return null!=(t=v[e])?t:"click"}function f(e){let t=e.split(":").map(Number);if(2===t.length){let[e=0,l=0]=t,a=Math.floor(60*e+l);return isNaN(a)?0:a}if(3===t.length){let[e=0,l=0,a=0]=t,r=Math.floor(3600*e+60*l+a);return isNaN(r)?0:r}return 0}function g(){Object.keys(p).map(e=>{p[e]=!1}),s=0,d=0,i=""}function y(e,t){var l,n,i,o,s,d,c,u,m,h,p,v,x,f,g,y,b,w,j,N,C,T,A,S,M,I,R,k,_,P,E,L,F,D,V,B,H;let z=t||e.getPlaylistItem();return{adBlock:e.getAdBlock(),adsMetricsUnitAndZone:null==z||null==(n=z.custom)||null==(l=n.ctx)?void 0:l.adzone,aspectRatio:null==e||null==(i=e.getConfig())?void 0:i.aspectratio,assetName:(0,a.EY)(null!=(B=null==z||null==(s=z.custom)||null==(o=s.ctx)?void 0:o.assetName)?B:""),collection:null==z||null==(c=z.custom)||null==(d=c.ctx)?void 0:d.pcollid,collectionId:null==z||null==(m=z.custom)||null==(u=m.ctx)?void 0:u.pcollid,contentId:null==z||null==(p=z.custom)||null==(h=p.ctx)?void 0:h.id,entitlements:(0,r.X)(null!=(H=null==z||null==(x=z.custom)||null==(v=x.ctx)?void 0:v.entitlements)?H:[]),iabContent:(0,a.IA)((null==z||null==(g=z.custom)||null==(f=g.ctx)?void 0:f.iab)||{}),id:null==z||null==(b=z.custom)||null==(y=b.ctx)?void 0:y.id,duration:null==z||null==(j=z.custom)||null==(w=j.ctx)?void 0:w.duration,lastmodifieddate:null==z||null==(T=z.custom)||null==(C=T.ctx)||null==(N=C.lastmodifieddate)?void 0:N.toString(),muted:e.getMute(),premiumContent:null==z||null==(S=z.custom)||null==(A=S.ctx)?void 0:A.premium,publishdate:null==z||null==(R=z.custom)||null==(I=R.ctx)||null==(M=I.publishdate)?void 0:M.toString(),providerName:null==z||null==(_=z.custom)||null==(k=_.ctx)?void 0:k.providername,tagsGeo:(0,r.X)(null==z||null==(E=z.custom)||null==(P=E.ctx)?void 0:P.tagsGeo),tagsKeyword:(0,r.X)(null==z||null==(F=z.custom)||null==(L=F.ctx)?void 0:L.tagsKeyword),tagsStorm:(0,r.X)(null==z||null==(V=z.custom)||null==(D=V.ctx)?void 0:D.tagsStorm)}}let b=[{eventName:"ready",callback:e=>{let{player:t,trackVideoEvent:l}=e;window.addEventListener("beforeunload",()=>{if(p.videoStarted&&!p.videoEnd){var e,a;let r=t.getPlaylistItem(),d=f(null==r||null==(a=r.custom)||null==(e=a.ctx)?void 0:e.duration);r&&!p.videoAttempt&&l&&(l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:s,playReason:n,videoView:o,...y(t)}}),l({eventName:"video-ended",eventAttributes:{errorMessage:i,videoWatchedLength:s,playMethod:n,videoView:o,...y(t),videoLength:d,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"pageExit"}})),p.videoEnd=!0}})}},{eventName:"adImpression",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();if(i="",g(),console.debug("JW Player callback - adImpression eventSentFlags:",p),p.adImpression=!0,a&&!p.videoAttempt&&l){var r,s;let e=f(null==a||null==(s=a.custom)||null==(r=s.ctx)?void 0:r.duration);l({eventName:"video-attempt",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(t)}}),l({eventName:"video-attempted",eventAttributes:{errorMessage:i,playMethod:n,videoLength:e,videoView:o,...y(t)}}),p.videoAttempt=!0}a&&!p.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(t)}}),p.videoPlayed=!0)}},{eventName:"viewable",callback:async e=>{let{event:t}=e;o=null==t?void 0:t.viewable}},{eventName:"playlistItem",callback:async e=>{let{player:t,trackVideoEvent:l}=e;if(n=x("playlist"),p.videoStarted&&!p.videoCompleted&&!p.videoEnd){var a,r;let e=t.getPlaylistIndex(),d=t.getPlaylistItem(e-1),h=f(null==d||null==(r=d.custom)||null==(a=r.ctx)?void 0:a.duration);l({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:s,playReason:n,videoView:o,...y(t,d)}}),l({eventName:"video-ended",eventAttributes:{errorMessage:i,videoWatchedLength:s,playMethod:n,videoView:o,...y(t),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"nextVideo"}}),p.videoEnd=!0}}},{eventName:"playAttempt",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();if(p.adImpression||(i="",g()),console.debug("JW Player callback - playAttempt eventSentFlags:",p),a&&!p.videoAttempt&&l){var r,s;let e=f(null==a||null==(s=a.custom)||null==(r=s.ctx)?void 0:r.duration);p.videoAttempt=!0,l({eventName:"video-attempt",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(t)}}),l({eventName:"video-attempted",eventAttributes:{errorMessage:i,videoLength:e,playMethod:n,videoView:o,...y(t)}})}}},{eventName:"firstFrame",callback:async e=>{let{player:t,trackVideoEvent:l}=e;console.debug("JW Player callback - firstFrame eventSentFlags:",p);let a=t.getPlaylistItem();if(a&&!p.videoPlayed&&l&&(l({eventName:"video-played",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(t)}}),p.videoPlayed=!0),a&&!p.videoStarted&&l){var r,s;let e=f(null==a||null==(s=a.custom)||null==(r=s.ctx)?void 0:r.duration);l({eventName:"video-started",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(t)}}),l({eventName:"video-begin",eventAttributes:{errorMessage:i,playMethod:n,videoView:o,...y(t),videoLength:e,adLength:c,adWatchedLength:u,adSkipped:m}}),p.videoStarted=!0}}},{eventName:"complete",callback:async e=>{var t,l;let{player:a,trackVideoEvent:r}=e,d=a.getPlaylistItem(),h=f(null==d||null==(l=d.custom)||null==(t=l.ctx)?void 0:t.duration);console.debug("JW Player callback - complete eventSentFlags:",p),d&&!p.videoCompleted&&r&&(r({eventName:"video-completed",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(a)}}),p.videoCompleted=!0),p.videoStarted&&!p.videoEnd&&(r({eventName:"video-end",eventAttributes:{errorMessage:i,contentWatchedSeconds:s,playReason:n,videoView:o,...y(a)}}),r({eventName:"video-ended",eventAttributes:{errorMessage:i,videoWatchedLength:s,playMethod:n,videoView:o,...y(a),videoLength:h,adLength:c,adWatchedLength:u,adSkipped:m,exitReason:"complete"}}),p.videoEnd=!0)}},{eventName:"adStarted",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,r=l.getPlaylistItem();c=t.duration,console.debug("JW Player callback - adStarted eventSentFlags:",p),r&&a&&a({eventName:"ad-started",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(l)}})}},{eventName:"adSkipped",callback:async e=>{let{player:t,trackVideoEvent:l}=e,a=t.getPlaylistItem();m=!0,a&&l&&l({eventName:"ad-skipped",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(t)}})}},{eventName:"adComplete",callback:async e=>{let{event:t,player:l,trackVideoEvent:a}=e,r=l.getPlaylistItem();u=t.duration,console.debug("JW Player callback - adComplete eventSentFlags:",p),r&&a&&a({eventName:"ad-complete",eventAttributes:{errorMessage:i,playReason:n,videoView:o,...y(l)}})}},{eventName:"beforePlay",callback:async e=>{let{event:t}=e;n=x(null==t?void 0:t.playReason)}},{eventName:"adError",callback:async e=>{let{event:t}=e;console.error("Video ad error:",t)}},{eventName:"error",callback:async e=>{let{event:t}=e;i=null==t?void 0:t.message,console.error("Video Player error:",t)}},{eventName:"time",callback:e=>{let{event:t}=e;if("number"==typeof(null==t?void 0:t.position)){let e=t.position-d;s+=e,d=t.position}}},{eventName:"seek",callback:e=>{let{event:t}=e;"number"==typeof(null==t?void 0:t.offset)&&(d=t.offset)}},{eventName:"adTime",callback:async e=>{let{event:t}=e,l=Date.now();l-h>=1e3&&(u=parseFloat(t.position.toFixed(2)),h=l)}}]},91851:(e,t,l)=>{"use strict";l.d(t,{r:()=>C});var a=l(21102),r=l(42494),n=l(66188);let i=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"New Moon"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("circle",{cx:8,cy:7.613,r:6.4,fill:"currentColor"})]})}),o=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:i,...e}));o.displayName="NewMoon";let s=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Waxing Crescent"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.01 13.553q2.432 0 4.18-1.742 1.75-1.742 1.75-4.202 0-2.452-1.75-4.198-1.748-1.745-4.18-1.745 1.704 0 2.92 1.745t1.216 4.198q0 2.46-1.216 4.202t-2.92 1.742m-.014-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),d=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:s,...e}));d.displayName="WaxingCrescent";let c=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"First Quarter"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.004 13.552q2.446 0 4.19-1.745 1.746-1.745 1.746-4.198 0-2.452-1.745-4.198-1.745-1.745-4.191-1.745zm-.007-12.34q2.644 0 4.524 1.88t1.88 4.517q0 2.64-1.88 4.521-1.879 1.883-4.524 1.883-2.639 0-4.517-1.883Q1.6 10.247 1.6 7.61q0-2.64 1.88-4.518 1.878-1.88 4.517-1.88"})]})}),u=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:c,...e}));u.displayName="FirstQuarter";let m=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Waxing Gibbous"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.003 1.673q-1.38 0-2.367 1.745-.986 1.746-.986 4.198 0 2.454.986 4.198t2.367 1.745q2.439 0 4.188-1.745 1.748-1.744 1.748-4.198 0-2.452-1.748-4.198-1.749-1.745-4.188-1.745m0 12.34q-2.645 0-4.524-1.88-1.88-1.878-1.88-4.517t1.88-4.52q1.878-1.883 4.524-1.883 2.638 0 4.518 1.882Q14.4 4.978 14.4 7.616q0 2.64-1.88 4.518-1.878 1.879-4.517 1.879"})]})}),h=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:m,...e}));h.displayName="WaxingGibbous";let p=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Full Moon"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.996 13.553q2.445 0 4.195-1.742 1.748-1.742 1.748-4.202 0-2.452-1.748-4.198-1.749-1.745-4.195-1.745-2.452 0-4.198 1.745Q2.053 5.157 2.053 7.61q0 2.46 1.745 4.202t4.198 1.742m0-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),v=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:p,...e}));v.displayName="FullMoon";let x=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Waning Gibbous"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.996 13.553q1.374 0 2.36-1.742t.986-4.202q0-2.452-.986-4.198-.986-1.745-2.36-1.745-2.452 0-4.198 1.745Q2.053 5.157 2.053 7.61q0 2.46 1.745 4.202t4.198 1.742m0-12.34q2.64 0 4.521 1.882Q14.4 4.978 14.4 7.616q0 2.645-1.883 4.521t-4.52 1.876q-2.646 0-4.522-1.876Q1.6 10.262 1.6 7.617q0-2.64 1.875-4.522t4.521-1.882"})]})}),f=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:x,...e}));f.displayName="WaningGibbous";let g=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Last Quarter"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M7.997 1.673q-2.439 0-4.188 1.742-1.748 1.74-1.748 4.201 0 2.453 1.748 4.198 1.749 1.745 4.188 1.745zm.007 12.34q-2.64 0-4.521-1.883Q1.6 10.247 1.6 7.61q0-2.646 1.883-4.522 1.883-1.875 4.52-1.875 2.646 0 4.522 1.875Q14.4 4.964 14.4 7.61q0 2.64-1.875 4.521-1.876 1.883-4.521 1.883"})]})}),y=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:g,...e}));y.displayName="LastQuarter";let b=(0,r.forwardRef)((e,t)=>{let{title:l,titleId:r,desc:n,descId:i,...o}=e;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16",ref:t,"aria-labelledby":r,"aria-describedby":i,...o,children:[n?(0,a.jsx)("desc",{id:i,children:n}):null,void 0===l?(0,a.jsx)("title",{id:r,children:"Waning Crescent"}):l?(0,a.jsx)("title",{id:r,children:l}):null,(0,a.jsx)("path",{fill:"currentColor",d:"M8.01 1.673q-2.453 0-4.201 1.745-1.75 1.746-1.75 4.198 0 2.454 1.75 4.198 1.748 1.745 4.2 1.745-.975 0-1.676-1.745-.7-1.744-.7-4.198 0-2.452.7-4.198.701-1.745 1.677-1.745m-.007 12.34q-2.645 0-4.524-1.88-1.88-1.878-1.88-4.517t1.88-4.52q1.878-1.883 4.524-1.883 2.638 0 4.518 1.882Q14.4 4.978 14.4 7.616q0 2.64-1.88 4.518-1.878 1.879-4.517 1.879"})]})}),w=r.forwardRef((e,t)=>(0,a.jsx)(n.h,{ref:t,icon:b,...e}));w.displayName="WaningCrescent";var j=l(78217);let N={[j.MoonPhaseCode.NEW]:o,[j.MoonPhaseCode.WAXING_CRESCENT]:d,[j.MoonPhaseCode.FIRST_QUARTER]:u,[j.MoonPhaseCode.WAXING_GIBBOUS]:h,[j.MoonPhaseCode.FULL]:v,[j.MoonPhaseCode.WANING_GIBBOUS]:f,[j.MoonPhaseCode.LAST_QUARTER]:y,[j.MoonPhaseCode.WANING_CRESCENT]:w},C=e=>{var t;let{moonPhaseCode:l,...r}=e,n=null!=(t=l&&N[l])?t:o;return(0,a.jsx)(n,{...r})}},93848:(e,t,l)=>{"use strict";l.d(t,{a:()=>o});var a=l(21102),r=l(85422),n=l(71535);let i=(0,r.F)("inline-block rounded-full border-solid animate-spin box-border",{variants:{size:{sm:"w-4 h-4 border-[2px]",md:"w-6 h-6 border-[2px]",lg:"w-8 h-8 border-[3px]"},variant:{white:"border-white border-b-transparent",primary:"border-brand-400 border-b-transparent",black:"border-[#252422] border-b-transparent"}},defaultVariants:{size:"sm",variant:"black"}}),o=e=>{let{className:t,size:l,variant:r,label:o}=e;return(0,a.jsx)("div",{className:(0,n.cn)(i({size:l,variant:r}),t),"aria-label":o})}},94977:(e,t)=>{"use strict";var l;Object.defineProperty(t,"__esModule",{value:!0}),t.InsightType=void 0,function(e){e.ALL="all",e.BREAKING_VIDEO_INSIGHT="breakingVideoInsight",e.CHANCE_PRECIP_INSIGHT="chancePrecipInsight",e.SUNNY_DAY_INSIGHT="sunnyDayInsight",e.POLLEN_INSIGHT="pollenInsight",e.TEMPERATURE_CHANGE_INSIGHT="temperatureChangeInsight",e.TRENDING_TEMPERATURE_INSIGHT="trendingTemperatureInsight",e.SUN_INSIGHT="sunInsight",e.SHORT_TERM_PRECIP_INSIGHT="shortTermPrecipInsight",e.THUNDERSTORM_SOON_INSIGHT="thunderstormSoonInsight",e.SEVERE_STORM_INSIGHT="severeStormInsight",e.PRECIP_INSIGHT="precipInsight"}(l||(t.InsightType=l={}))},95121:(e,t,l)=>{"use strict";l.d(t,{S:()=>r});var a=l(79723);let r=(e,t)=>{let l=(0,a.W)(t),[r,n]=e.toString().split(".");if(void 0===n)return l>0?"".concat(r,".").concat("".padEnd(l,"0")):r;if(0===l)return r;let i=n.slice(0,l).split(""),o=parseInt(i[i.length-1],10);return o>0&&o{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPollenDaypartUrlConfig=function(e){let{geocode:t,language:l,duration:a="3day"}=e;return{host:"api.weather.com",protocol:"https",pathname:"/v2/indices/pollen/daypart/".concat(a),query:{geocode:t,format:"json",language:l,apiKey:"71f92ea9dd2f4790b92ea9dd2f779061"}}}},97651:(e,t,l)=>{"use strict";l.r(t),l.d(t,{ImageBlock:()=>d,default:()=>c});var a=l(21102),r=l(42494),n=l(20423),i=l(71535),o=l(94456);let s=r.forwardRef((e,t)=>{let{src:l,alt:r,caption:n,credit:s,width:d=320,height:c=180,shadow:u=!0,rounded:m=!0,className:h,sizes:p,priority:v,imageAttributes:x}=e,f=!!(n||s);return(0,a.jsxs)("figure",{ref:t,className:(0,i.cn)(h),children:[(0,a.jsx)(o._V,{src:l,alt:r,width:d,height:c,shadow:u,rounded:m,sizes:p,priority:v,...x}),f&&(0,a.jsxs)("figcaption",{className:"mt-2 text-sm leading-tight",children:[n&&(0,a.jsx)("p",{children:n}),s&&(0,a.jsxs)("p",{className:"m-0 text-gray-500",children:["(",s,")"]})]})]})});s.displayName="Figure";let d=e=>{var t,l;let{imageType:r,internalImageId:o,externalImageUrl:d,controls:c,altText:u,isPriorityImage:m,imageAttributes:h,linkUrl:p}=e;if(!r||!o&&!d)return(0,a.jsx)("div",{className:"text-center text-red-500",children:"Error: Missing data for the image block."});let v="internal"===r&&(e=>"object"==typeof e&&null!==e&&"url"in e)(o),x=v?(null==o?void 0:o.url)||"":d||"",f=v?(null==o||null==(t=o.seo)?void 0:t.altText)||"":u||"",g="",y="";(null==c?void 0:c.showCaption)&&((!v||(null==c?void 0:c.useImageCaption))&&"external"!==r?v&&(g=(null==o?void 0:o.caption)||"",y=(null==o||null==(l=o.seo)?void 0:l.credit)||""):(g=(null==c?void 0:c.caption)||"",y=(null==c?void 0:c.credit)||""));let b=(0,a.jsx)(s,{src:x,alt:f,caption:g,credit:y,priority:!!m,className:(0,i.cn)("my-4 flex flex-col",{"max-w-[480px]":(null==c?void 0:c.width)==="half"}),sizes:"(max-width: 767px) 91vw, (max-width: 1280px) 64vw, 800px",imageAttributes:h});return p?(0,a.jsx)(n.default,{href:p,target:"_blank",rel:"noopener noreferrer nofollow",children:b}):b},c=d},98132:e=>{e.exports={jwplayerContainer:"JWPlayer_jwplayerContainer__u4Psj"}},99721:(e,t,l)=>{"use strict";l.d(t,{r:()=>i});var a=l(42494),r=l(97521),n=l(17846);let i=e=>{let t=(0,a.useRef)(null),[l,i]=(0,a.useState)(n.A?e(window.innerWidth,window.innerHeight):null),o=(0,a.useRef)(!1),s=(0,r.X)(e);return(0,a.useEffect)(()=>{let e=t.current;if(!e||"undefined"==typeof ResizeObserver)return;let l=new ResizeObserver(e=>{for(let t of e){let{right:e,left:l,top:a,bottom:r}=t.contentRect,n=e+l,d=a+r,c=s.current(n,d);o.current=!0,i(c)}});return l.observe(e),()=>{l.disconnect()}},[t,s]),[l,t,o.current]}}}]);